@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250608.0 → 0.0.0-nightly-20250609.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 +4 -4
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x3e391a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1c41d5,_0x1cce23){super(),this['id']=_0x1cce23['id'],this['type']=_0x1cce23['type'],this['subType']=_0x1cce23['subType']||null,this['author']=_0x1cce23['author'],this['creator']=_0x1cce23['creator']||_0x1cce23['author'],this['isExternal']=Boolean(_0x1cce23['attributes']&&_0x1cce23['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1cce23['originalSuggestionId']||null,this['_model']=_0x1c41d5,this['_onAccept']=_0x1cce23['onAccept'],this['_onDiscard']=_0x1cce23['onDiscard'],this['_onAttributesChange']=_0x1cce23['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1cce23['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 _0x1897e1=this;for(;_0x1897e1['previous'];)_0x1897e1=_0x1897e1['previous'];return _0x1897e1;}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'](_0x2f5e2f){this['_markerNames']['add'](_0x2f5e2f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x509fb2=>this['_model']['markers']['get'](_0x509fb2))['filter'](_0x3e336d=>_0x3e336d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b70f9=>{for(const _0x398620 of this['getMarkers']())_0x2b70f9['removeMarker'](_0x398620);}),this['_markerNames']['clear']();}['removeMarker'](_0x23bf3f){this['_model']['change'](_0x4b898a=>{_0x4b898a['removeMarker'](_0x23bf3f);}),this['_markerNames']['delete'](_0x23bf3f);}['addRange'](_0x3f3565){const _0x2a2d10='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x2a2d10),this['_model']['change'](_0xb56f64=>{_0xb56f64['addMarker'](_0x2a2d10,{'range':_0x3f3565,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x39be88){for(const _0x14bc85 of this['getRanges']())if(_0x14bc85['isIntersecting'](_0x39be88))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x52e57a=>_0x52e57a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x596c4b,_0x3582a0)=>[..._0x596c4b,..._0x3582a0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x19a36f=this['getRanges']();if(0x1!=_0x19a36f['length'])return null;const _0x1140c7=_0x19a36f[0x0],_0x39acc4=_0x1140c7['start']['nodeAfter'],_0x2a7e36=_0x1140c7['end']['nodeBefore'];return _0x39acc4 instanceof _0x1c7c63?_0x39acc4!=_0x2a7e36?null:_0x39acc4: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 _0x2f657e=[];let _0xd050a0=this['head'];for(;_0xd050a0;)_0x2f657e['push'](_0xd050a0),_0xd050a0=_0xd050a0['next'];return _0x2f657e;}['setAttribute'](_0x38e793,_0x4547d3){const _0x41139a=_0x41887c(this['attributes']);_0x43cd48(_0x41139a,_0x38e793,_0x4547d3),_0x31f67f(_0x41139a,this['attributes'])||(this['attributes']=_0x41139a,this['_onAttributesChange'](_0x41139a));}['removeAttribute'](_0x143a67){const _0x150452=_0x41887c(this['attributes']);_0x8c8f5a(_0x150452,_0x143a67),_0x31f67f(_0x150452,this['attributes'])||(this['attributes']=_0x150452,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 _0x370ed3()['substr'](0x1,0x5);}}function o(_0x5c67bc,_0x39f884,_0x548109){const _0x6625e8=_0x5c67bc['t'],t=_0x5c67bc['t'];switch(_0x39f884){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',_0x548109);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x548109);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x548109);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x548109);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x548109);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',_0x548109);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x548109);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',_0x548109);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x548109);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x548109);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x548109);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x548109);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x548109);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x548109);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x548109);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x548109);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x548109);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x548109);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x548109);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x548109);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x548109);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x548109);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x548109);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x548109);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x548109);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'},_0x548109);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x548109);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x548109);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x548109);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x548109);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x548109);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x548109);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x548109);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'},_0x548109);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x548109);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x548109);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x548109);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x548109);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'},_0x548109);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x548109);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'},_0x548109);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'},_0x548109);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x548109);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'},_0x548109);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x548109);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'},_0x548109);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x548109);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x548109);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'},_0x548109);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x548109);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 _0x6625e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x548109);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x6625e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x548109);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x548109);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'},_0x548109);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'},_0x548109);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'},_0x548109);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x39f884;}}class O{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x595120,_0x5b584e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x595120,this['_locale']=_0x5b584e;}['getDescriptions'](_0xee55d0){const _0x41cd71=[],_0x8960c5=new Set(),_0x237a7e=new Set();for(let _0x65913a=0x0;_0x65913a<_0xee55d0['length'];_0x65913a++){const _0x845fc0=_0xee55d0[_0x65913a];if(!_0x845fc0['isInContent'])continue;const _0x49208f=this['_handleCustomCallbackDescription'](_0x845fc0);if(_0x49208f){if(null!=_0x845fc0['subType']){if(_0x8960c5['has'](_0x845fc0['subType']))continue;_0x8960c5['add'](_0x845fc0['subType']);}_0x41cd71['push'](_0x49208f);}else{if('attribute'!=_0x845fc0['type'])'insertion'!=_0x845fc0['type']&&'deletion'!=_0x845fc0['type']||this['_handleInsertRemoveSuggestionDescription'](_0x41cd71,_0x845fc0,_0xee55d0[_0x65913a+0x1]);else{const _0xbbfe86=_0x845fc0['data']['key'];if(_0x237a7e['has'](_0xbbfe86))continue;_0x237a7e['add'](_0x845fc0['data']['key']),_0xbbfe86==m?this['_handleRenameSuggestionDescription'](_0x41cd71,_0x845fc0):this['_handleAttributeSuggestionDescription'](_0x41cd71,_0x845fc0);}}}return this['_resolveDescriptionItems'](_0x41cd71);}['registerDescriptionCallback'](_0x4cd58a){this['_customCallbacks']['push'](_0x4cd58a);}['registerElementLabel'](_0x3f46a5,_0x523586,_0x115549=_0x4066a6['normal']){'function'==typeof _0x3f46a5?_0x108dfb(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3f46a5,'label':_0x523586,'priority':_0x115549}):this['_itemLabels']['set'](_0x3f46a5,_0x523586);}['registerAttributeLabel'](_0x187ba6,_0x25687a){this['_attributeLabels']['set'](_0x187ba6,_0x25687a);}['getItemLabel'](_0x5d59bb,_0x5c6a70=0x1){let _0x4c408a;for(const _0xad878a of this['_itemLabelsCallbacks'])if(_0xad878a['matchingCallback'](_0x5d59bb)){_0x4c408a=_0xad878a['label'];break;}return _0x4c408a||(_0x4c408a=this['_itemLabels']['get'](_0x5d59bb['name'])),_0x4c408a?_0x4c408a(_0x5c6a70):0x1!==_0x5c6a70?_0x5c6a70+'\x20'+_0x5d59bb['name']+'s':''+_0x5d59bb['name'];}['_addDescriptionItems'](_0x1db36e,_0x4382db){const _0x372908=_0x4382db['getFirstRange']()['getWalker'](),_0x4604ed='insertion'==_0x4382db['type']?'add':'remove';for(const _0x133310 of _0x372908){const _0x45f835=_0x133310['item'],_0x46cc84=_0x1db36e[_0x1db36e['length']-0x1];if(_0x45f835['is']('$textProxy'))_0x46cc84&&_0x46cc84['type']['indexOf']('Container')>-0x1&&_0x1db36e['pop'](),_0x46cc84&&'text'==_0x46cc84['type']?_0x46cc84[_0x4604ed]+=_0x45f835['data']:_0x1db36e['push']({'type':'text','add':'add'==_0x4604ed?_0x45f835['data']:'','remove':'remove'==_0x4604ed?_0x45f835['data']:''});else{if(this['_schema']['isObject'](_0x45f835)){const _0x45fa40=_0x45f835;if(_0x46cc84&&_0x46cc84['type']['indexOf']('Container')>-0x1&&_0x1db36e['pop'](),'elementEnd'==_0x133310['type'])continue;_0x46cc84&&_0x46cc84['type']==_0x4604ed+'Object'&&_0x46cc84['element']['name']==_0x45fa40['name']?_0x46cc84['quantity']++:_0x1db36e['push']({'type':_0x4604ed+'Object','element':_0x45fa40,'quantity':0x1}),_0x372908['skip'](_0x142329=>!('elementEnd'==_0x142329['type']&&_0x142329['item']==_0x45f835));}else{if(this['_schema']['checkChild'](_0x45f835,'$text')||_0x45f835['is']('element','softBreak')){const _0x36dab4=_0x45f835;if('add'==_0x4604ed&&'elementStart'==_0x133310['type']||'remove'==_0x4604ed&&'elementEnd'==_0x133310['type'])continue;if(_0x46cc84&&-0x1==_0x46cc84['type']['indexOf']('Container')){'text'==_0x46cc84['type']&&(_0x46cc84[_0x4604ed]+='\x0a');continue;}let _0x2c1160;if(_0x2c1160='add'==_0x4604ed?_0x36dab4['nextSibling']&&!this['_schema']['isObject'](_0x36dab4['nextSibling'])?_0x36dab4['nextSibling']:null:_0x36dab4['previousSibling']&&!this['_schema']['isObject'](_0x36dab4['previousSibling'])?_0x36dab4['previousSibling']:null,_0x36dab4['isEmpty']||_0x2c1160&&_0x2c1160['isEmpty']){const _0x2c8878=_0x2c1160&&_0x2c1160['isEmpty']?_0x2c1160:_0x36dab4;_0x46cc84&&_0x46cc84['type']==_0x4604ed+'EmptyContainer'&&_0x46cc84['element']['name']==_0x2c8878['name']?_0x46cc84['quantity']++:_0x1db36e['push']({'type':_0x4604ed+'EmptyContainer','element':_0x2c8878,'quantity':0x1});}else _0x1db36e['push']({'type':_0x4604ed+'Container','element':_0x36dab4});}}}}}['_resolveDescriptionItems'](_0x3f37e0){const _0x35ff0e=this['_locale'],_0x28c6d4=[],_0x355ca8=[],_0xbe8cf5=[];for(const _0x28f661 of _0x3f37e0)switch(_0x28f661['type']){case'text':if(_0x28f661['add']=_0x28f661['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x28f661['remove']=_0x28f661['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x28f661['add']&&''!=_0x28f661['remove']){_0x28c6d4['push']({'type':'replace','content':o(_0x35ff0e,'REPLACE_TEXT',['\x22'+_0x28f661['remove']+'\x22','\x22'+_0x28f661['add']+'\x22'])});continue;}if(null!=_0x28f661['add']['match'](/^ +$/)){_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Insert:*\x20%0',o(_0x35ff0e,'ELEMENT_SPACE',_0x28f661['add']['length']))});continue;}if(null!=_0x28f661['remove']['match'](/^ +$/)){_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Remove:*\x20%0',o(_0x35ff0e,'ELEMENT_SPACE',_0x28f661['remove']['length']))});continue;}if(''!=_0x28f661['add']){_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Insert:*\x20%0','\x22'+_0x28f661['add']+'\x22')});continue;}_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Remove:*\x20%0','\x22'+_0x28f661['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Insert:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Remove:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'addContainer':_0x28c6d4['push']({'type':'insertion','content':o(_0x35ff0e,'*Split:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'removeContainer':_0x28c6d4['push']({'type':'deletion','content':o(_0x35ff0e,'*Merge:*\x20%0',this['getItemLabel'](_0x28f661['element'],_0x28f661['quantity']))});continue;case'addFormat':_0x355ca8['push'](_0x28f661['key']);continue;case'removeFormat':_0xbe8cf5['push'](_0x28f661['key']);continue;default:_0x28c6d4['push'](_0x28f661);}if(_0x355ca8['length']){const _0x164e70=_0x355ca8['map'](_0x2c561a=>this['_attributeLabels']['has'](_0x2c561a)?this['_attributeLabels']['get'](_0x2c561a):_0x2c561a)['join'](',\x20');_0x28c6d4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x164e70)});}if(_0xbe8cf5['length']){const _0x5bb70f=_0xbe8cf5['map'](_0x244e31=>this['_attributeLabels']['has'](_0x244e31)?this['_attributeLabels']['get'](_0x244e31):_0x244e31)['join'](',\x20');_0x28c6d4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5bb70f)});}return _0x28c6d4;}['_handleCustomCallbackDescription'](_0x248921){for(const _0x489570 of this['_customCallbacks']){const _0xf3cae6=_0x489570(_0x248921);if(_0xf3cae6&&'type'in _0xf3cae6)return _0xf3cae6;}}['_handleAttributeSuggestionDescription'](_0x1cb9d8,_0x291917){const _0x28b4bc=_0x291917['data'],_0x2d72e9=void 0x0===_0x28b4bc['newValue']?'removeFormat':'addFormat';_0x1cb9d8['push']({'type':_0x2d72e9,'key':_0x28b4bc['key']});}['_handleRenameSuggestionDescription'](_0xaf977e,_0x56a535){_0xaf977e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x56a535['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x26ed9e,_0x3b8c65,_0x359986){if(this['_addDescriptionItems'](_0x26ed9e,_0x3b8c65),_0x359986&&_0x359986['getFirstRange']()&&!_0x3b8c65['getFirstRange']()['end']['isEqual'](_0x359986['getFirstRange']()['start'])){const _0x46f26a=_0x26ed9e[_0x26ed9e['length']-0x1],_0x424d62='insertion'==_0x3b8c65['type']?'add':'remove';_0x46f26a&&'text'==_0x46f26a['type']&&(_0x46f26a[_0x424d62]+='\x0a');}}}class R extends _0x28b250{['afterInit'](){const _0x1d55de=this['editor'],_0x5d342f=_0x1d55de['plugins']['get']('TrackChangesEditing');_0x1d55de['commands']['get']('showAIAssistant')&&_0x5d342f['enableCommand']('showAIAssistant');}}class E extends _0x28b250{['afterInit'](){const _0x3bc11b=this['editor'],_0x162539=_0x3bc11b['locale'];if(!_0x3bc11b['plugins']['has']('AlignmentEditing'))return;const _0x31c642=_0x3bc11b['plugins']['get']('TrackChangesEditing');_0x31c642['enableDefaultAttributesIntegration']('alignment'),_0x31c642['registerBlockAttribute']('alignment'),_0x31c642['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x162539,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23408e=this['editor'],_0x504c98=_0x23408e['locale'];_0x23408e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc6244d=>{if('formatBlock'!=_0xc6244d['type'])return;const {data:_0x46f38b}=_0xc6244d;if(_0x46f38b&&'alignment'==_0x46f38b['commandName']){const _0x4c77b6=_0x46f38b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x504c98,'*Format:*\x20%0',function(_0x59678f){switch(_0x59678f){case'left':return o(_0x504c98,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x504c98,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x504c98,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x504c98,'FORMAT_JUSTIFY_TEXT');}}(_0x4c77b6))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x28b250{['afterInit'](){const _0x58d9da=this['editor'],_0x2c0d79=_0x58d9da['plugins']['get']('TrackChangesEditing'),_0x1aa8fc=_0x58d9da['locale'];for(const _0x5f5bab of Xt){if(!_0x58d9da['plugins']['has'](_0x5f5bab))continue;const _0xf8f6e8=_0x5f5bab['slice'](0x0,-0x7)['toLowerCase'](),_0x4c77c8='FORMAT_'+_0xf8f6e8['toUpperCase']();_0x2c0d79['enableDefaultAttributesIntegration'](_0xf8f6e8),_0x2c0d79['registerInlineAttribute'](_0xf8f6e8),_0x2c0d79['descriptionFactory']['registerAttributeLabel'](_0xf8f6e8,o(_0x1aa8fc,_0x4c77c8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2c79=this['editor'],_0x5c9ff4=_0x1f2c79['locale'],_0x37c072=_0x1f2c79['plugins']['get']('TrackChangesEditing');function _0x1b04a1(_0x3412d2,_0xd4cf39){_0x37c072['descriptionFactory']['registerDescriptionCallback'](_0x5755e2=>{if('formatInline'!=_0x5755e2['type'])return;const {data:_0x5da336}=_0x5755e2;return _0x5da336&&_0x5da336['commandName']===_0x3412d2?_0x5da336['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c9ff4,'*Format:*\x20%0',_0xd4cf39)}:{'type':'format','content':o(_0x5c9ff4,'*Remove\x20format:*\x20%0',_0xd4cf39)}:void 0x0;});}_0x1b04a1('bold',o(_0x5c9ff4,'FORMAT_BOLD')),_0x1b04a1('italic',o(_0x5c9ff4,'FORMAT_ITALIC')),_0x1b04a1('underline',o(_0x5c9ff4,'FORMAT_UNDERLINE')),_0x1b04a1('code',o(_0x5c9ff4,'FORMAT_CODE')),_0x1b04a1('strikethrough',o(_0x5c9ff4,'FORMAT_STRIKETHROUGH')),_0x1b04a1('subscript',o(_0x5c9ff4,'FORMAT_SUBSCRIPT')),_0x1b04a1('superscript',o(_0x5c9ff4,'FORMAT_SUPERSCRIPT'));}}class V extends _0x28b250{['afterInit'](){const _0x106f7d=this['editor'],_0x779f8d=_0x106f7d['locale'];if(!_0x106f7d['plugins']['has']('BlockQuoteEditing'))return;const _0x35e422=_0x106f7d['plugins']['get']('TrackChangesEditing'),_0x16c411=this['editor']['commands']['get']('blockQuote');_0x35e422['enableCommand']('blockQuote',(_0x2581bf,_0x7ad518={})=>{const _0x4a5a0f=this['editor']['model']['document']['selection'],_0x47e11b=_0x7ad518&&void 0x0!==_0x7ad518['forceValue']?_0x7ad518['forceValue']:!_0x16c411['value'];let _0x36ab7a=[];if(_0x47e11b){const _0x3c6901=Array['from'](_0x4a5a0f['getSelectedBlocks']())['filter'](_0x239dfe=>Zt(_0x239dfe)||function(_0x5330ae,_0x15ffd8){const _0x366bf9=_0x15ffd8['checkChild'](_0x5330ae['parent'],'blockQuote'),_0x506c5c=_0x15ffd8['checkChild'](['$root','blockQuote'],_0x5330ae);return _0x366bf9&&_0x506c5c;}(_0x239dfe,this['editor']['model']['schema']));_0x36ab7a=Yt(_0x3c6901,_0x106f7d['model']);}else{const _0x483d9a=Array['from'](_0x4a5a0f['getSelectedBlocks']())['filter'](_0x198322=>Zt(_0x198322));_0x36ab7a=Yt(_0x483d9a,_0x106f7d['model']);}_0x106f7d['model']['change'](()=>{for(const _0x2fc41d of _0x36ab7a)_0x35e422['markBlockFormat'](_0x2fc41d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x47e11b}]});});}),_0x35e422['descriptionFactory']['registerDescriptionCallback'](_0xe9f89a=>{const {data:_0x7bccc7}=_0xe9f89a;if(_0x7bccc7&&'blockQuote'==_0x7bccc7['commandName']){const _0x474654=o(_0x779f8d,'ELEMENT_BLOCK_QUOTE');return _0x7bccc7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x779f8d,'*Set\x20format:*\x20%0',_0x474654)}:{'type':'format','content':o(_0x779f8d,'*Remove\x20format:*\x20%0',_0x474654)};}});}}function Zt(_0x4e3e1a){return'blockQuote'==_0x4e3e1a['parent']['name'];}class F extends _0x28b250{['afterInit'](){const _0x4c5691=this['editor'],_0x25a35d=_0x4c5691['locale'],_0x8ff9e2=_0x4c5691['plugins']['get']('TrackChangesEditing');_0x4c5691['plugins']['has']('BookmarkEditing')&&(_0x8ff9e2['enableCommand']('insertBookmark'),_0x8ff9e2['enableDefaultAttributesIntegration']('updateBookmark'),_0x8ff9e2['registerBlockAttribute']('bookmarkId'),_0x8ff9e2['descriptionFactory']['registerDescriptionCallback'](_0x23123a=>{if('insertion'!=_0x23123a['type']&&'deletion'!=_0x23123a['type']&&'attribute'!=_0x23123a['type'])return;const _0xbe003d=_0x23123a['getContainedElement']();if(null==_0xbe003d)return;if(!_0xbe003d['is']('element','bookmark'))return;const _0x161b7b=_0xbe003d['getAttribute']('bookmarkId');if('insertion'==_0x23123a['type'])return{'type':'insertion','content':o(_0x25a35d,'*Insert:*\x20%0','\x22'+_0x161b7b+'\x22\x20'+o(_0x25a35d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23123a['type'])return{'type':'deletion','content':o(_0x25a35d,'*Remove:*\x20%0','\x22'+_0x161b7b+'\x22\x20'+o(_0x25a35d,'ELEMENT_BOOKMARK'))};const {data:_0x2372a9}=_0x23123a;if(!_0x2372a9||'bookmarkId'!=_0x2372a9['key'])return;return{'type':'format','content':o(_0x25a35d,'*Set\x20bookmark:*\x20%0','\x22'+_0x2372a9['newValue']+'\x22')};}));}}class G extends _0x28b250{['afterInit'](){const _0x188a57=this['editor'];_0x188a57['plugins']['has']('CaseChange')&&(_0x188a57['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x188a57['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x188a57['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class L extends _0x28b250{['afterInit'](){const _0x44828f=this['editor'];_0x44828f['commands']['get']('ckbox')&&_0x44828f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x28b250{['afterInit'](){const _0x3bbd20=this['editor'];if(!_0x3bbd20['plugins']['has']('CodeBlock'))return;const _0x104474=_0x3bbd20['plugins']['get']('TrackChangesEditing'),_0x28965e=_0x3bbd20['locale'],_0x377804=_0x3bbd20['config']['get']('codeBlock')['languages'],_0x5966a3=_0x3bbd20['commands']['get']('codeBlock');_0x104474['enableCommand']('indentCodeBlock'),_0x104474['enableCommand']('outdentCodeBlock'),_0x104474['enableCommand']('codeBlock',(_0x3dccbb,_0x1639ad={})=>{const _0x35a04a=_0x3bbd20['model'],_0x3a5b12=_0x3bbd20['model']['document']['selection'],_0xad7343=_0x1639ad&&void 0x0!==_0x1639ad['forceValue']?_0x1639ad['forceValue']:!_0x5966a3['value'];let _0x5cf071;_0x1639ad['language']||(_0x1639ad['language']=_0x377804[0x0]['language']),_0x5cf071=_0xad7343?Array['from'](_0x3a5b12['getSelectedBlocks']())['filter'](_0x11a70c=>oo(_0x11a70c)||function(_0x571c5a,_0x5a8756){if(_0x571c5a['is']('rootElement')||_0x5a8756['isLimit'](_0x571c5a))return!0x1;return _0x5a8756['checkChild'](_0x571c5a['parent'],'codeBlock');}(_0x11a70c,_0x35a04a['schema'])):Array['from'](_0x3a5b12['getSelectedBlocks']())['filter'](_0x3a58ed=>oo(_0x3a58ed));const _0x3df170=Yt(_0x5cf071,_0x35a04a);_0x35a04a['change'](()=>{for(const _0x4e06d8 of _0x3df170)_0x104474['markBlockFormat'](_0x4e06d8,{'commandName':'codeBlock','commandParams':[{..._0x1639ad,'forceValue':_0xad7343}],'formatGroupId':'blockName'});});}),(_0x104474['descriptionFactory']['registerElementLabel']('codeBlock',_0xee5539=>o(_0x28965e,'ELEMENT_CODE_BLOCK',_0xee5539)),_0x104474['descriptionFactory']['registerDescriptionCallback'](_0x4852bc=>{if('formatBlock'!=_0x4852bc['type'])return;const _0x4c24c=_0x28965e['t'],{data:_0x492cbf}=_0x4852bc;if(!_0x492cbf||'codeBlock'!=_0x492cbf['commandName'])return;const _0x26c0ee=_0x492cbf['commandParams'][0x0]['language'],_0x31a02f=_0x4c24c(_0x377804['find'](_0x195f4f=>_0x195f4f['language']===_0x26c0ee)['label'])['toLowerCase']();return _0x492cbf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28965e,'*Set\x20format:*\x20%0',o(_0x28965e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x31a02f+')')}:{'type':'format','content':o(_0x28965e,'*Remove\x20format:*\x20%0',o(_0x28965e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x1f26ab){return'codeBlock'==_0x1f26ab['name'];}class K extends _0x28b250{['afterInit'](){const _0x5c7966=this['editor'];if(!_0x5c7966['plugins']['has']('CommentsEditing'))return;_0x5c7966['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4bda0b,_0x161bee,_0x49a3e7){const _0x5ad157=[];for(const _0x5592ab of _0x161bee['getItems']())_0x5592ab['hasAttribute'](_0x4bda0b)&&_0x5ad157['push'](_0x49a3e7['createRangeOn'](_0x5592ab));return _0x5ad157;}function Fe(_0x142ab0,_0x2a5594,{showActiveMarker:_0x4d8384=!0x0}={}){const _0x7a991a=_0x142ab0['plugins']['get']('TrackChangesEditing');return(_0x6b4b91,_0xbf814a,_0x1664fd)=>{if(!_0x1664fd['consumable']['test'](_0xbf814a['markerRange'],_0x6b4b91['name']))return;const _0x2d934e=_0xbf814a['markerRange']['getWalker'](),_0x30f46e=_0xbf814a['markerRange']['start'],_0x2bde5b=_0x142ab0['model']['schema'];let _0xa8da58=null,_0xc457b8=null,_0x1b4d00=!0x1,_0x48fbbf=!0x1;for(const _0x3afcdc of _0x2d934e){const _0x57a440=_0x3afcdc['item'];_0x1b4d00=_0x1b4d00||_0x2bde5b['isContent'](_0x57a440);const _0x3e64df=_0x1664fd['mapper']['toViewElement'](_0x57a440);if(_0x3e64df&&_0x3e64df['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3afcdc['type']&&(_0x2bde5b['isBlock'](_0x57a440)&&!_0x2bde5b['isLimit'](_0x57a440)&&(_0x57a440['nextSibling']||_0x30f46e['isAtEnd']?_0xa8da58&&_0xa8da58['parent']==_0x57a440||(_0xa8da58=_0x57a440,_0x301b9b(_0x3afcdc['previousPosition']),_0x48fbbf=!0x0):_0xc457b8=_0xc457b8||_0x3afcdc['previousPosition']));}function _0x301b9b(_0x4b1722){const {id:_0x4ba3e5,authorId:_0xbe4ab4}=_0x7a991a['_splitMarkerName'](_0xbf814a['markerName']),_0x227f01=_0x1664fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2a5594,'data-suggestion':_0x4ba3e5,'data-author-id':_0xbe4ab4}),_0x8ca2e5=_0x1664fd['mapper']['toViewPosition'](_0x4b1722);_0x4d8384&&_0x7a991a['activeMarkers']['includes'](_0xbf814a['markerName'])&&_0x1664fd['writer']['addClass']('ck-suggestion-marker--active',_0x227f01),_0x1664fd['writer']['insert'](_0x8ca2e5,_0x227f01),_0x1664fd['mapper']['bindElementToMarker'](_0x227f01,_0xbf814a['markerName']);}_0x1b4d00||_0x48fbbf||!_0xc457b8||_0x301b9b(_0xc457b8);};}class H extends _0x28b250{static get['requires'](){return[_0x51d717];}['init'](){const _0x1f0eea=this['editor'],_0x14b9d7=_0x1f0eea['plugins']['get']('TrackChangesEditing');_0x14b9d7['enableCommand']('delete');const _0xa4b12b=_0x1f0eea['commands']['get']('deleteForward');_0x14b9d7['enableCommand']('deleteForward',(_0x94528c,_0x1739cd={})=>{const _0x43becf=_0x1f0eea['model']['createSelection'](_0x1f0eea['model']['document']['selection']);_0x43becf['isCollapsed']&&_0x1f0eea['model']['modifySelection'](_0x43becf,{'direction':'forward','unit':_0x1739cd['unit']});const _0x417123=_0x43becf['getFirstRange'](),_0x51fc3b=_0xc2db3f['fromRange'](_0x417123);let _0x4faaa2;_0x94528c(_0x1739cd),_0x4faaa2='$graveyard'==_0x51fc3b['root']['rootName']?_0x1f0eea['model']['createRange'](_0x417123['start']):_0x1f0eea['model']['createRange'](_0x51fc3b['start'],_0x51fc3b['end']),_0x51fc3b['detach'](),_0x1f0eea['model']['enqueueChange'](_0xa4b12b['buffer']['batch'],_0x1a632b=>{_0xa4b12b['buffer']['lock'](),_0x1a632b['setSelection'](_0x1a632b['createRange'](_0x4faaa2['end'])),_0xa4b12b['buffer']['unlock']();});}),_0x1f0eea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x1f0eea,'merge'),{'priority':'high'}),_0x1f0eea['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5106da,_0x425a6f,_0x352e57)=>{_0x352e57['options']['showSuggestionHighlights']&&Fe(_0x1f0eea,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5106da,_0x425a6f,_0x352e57);},{'priority':'high'}),_0x1f0eea['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4081c0,_0x23beef,_0xb3fb30)=>{const _0x4a201e=_0xb3fb30['mapper']['markerNameToElements'](_0x23beef['markerName']);if(_0x4a201e){for(const _0x499dc5 of _0x4a201e)_0x499dc5['is']('uiElement')&&(_0xb3fb30['mapper']['unbindElementFromMarkerName'](_0x499dc5,_0x23beef['markerName']),_0xb3fb30['writer']['remove'](_0x499dc5));}},{'priority':'high'});}}class q extends _0x28b250{['afterInit'](){const _0x32e913=this['editor'];if(!_0x32e913['plugins']['has']('ListEditing'))return;const _0x41ee7a=_0x32e913['locale'],_0xeaf92f=_0x32e913['plugins']['get']('TrackChangesEditing'),_0x46cc55=_0x32e913['plugins']['has']('TodoListEditing'),_0x359c08=!!_0x32e913['config']['get']('list.multiBlock');function _0x81c897(_0x35608e){return{'type':'format','content':''+o(_0x41ee7a,'*Set\x20format:*\x20%0',_0x35608e)};}function _0x2678ba(_0x3a4b3d){return{'type':'format','content':''+o(_0x41ee7a,'*Remove\x20format:*\x20%0',_0x3a4b3d)};}_0xeaf92f['enableDefaultAttributesIntegration']('numberedList'),_0xeaf92f['enableDefaultAttributesIntegration']('bulletedList'),_0xeaf92f['enableDefaultAttributesIntegration']('customNumberedList'),_0xeaf92f['enableDefaultAttributesIntegration']('customBulletedList'),_0xeaf92f['enableDefaultAttributesIntegration']('indentList'),_0xeaf92f['enableDefaultAttributesIntegration']('outdentList'),_0xeaf92f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xeaf92f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xeaf92f['registerBlockAttribute']('listItemId'),_0xeaf92f['registerBlockAttribute']('listType'),_0xeaf92f['registerBlockAttribute']('listIndent'),_0x359c08&&(_0xeaf92f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xeaf92f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x46cc55&&(_0xeaf92f['enableDefaultAttributesIntegration']('todoList'),_0xeaf92f['enableDefaultAttributesIntegration']('checkTodoList'),_0xeaf92f['registerBlockAttribute']('todoListChecked'),_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x5a8d6c=>{const {data:_0x34248e}=_0x5a8d6c;if(_0x34248e&&'todoListChecked'==_0x34248e['key'])return{'type':'format','content':_0x34248e['newValue']?o(_0x41ee7a,'*Check\x20item*'):o(_0x41ee7a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a4a6d=>{if(_0x4a4a6d['batch']['isUndo'])return!0x1;let _0x266237=!0x1;const _0x26e455=_0xeaf92f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2830fd=>'todoListChecked'===_0xeaf92f['_getAttributeKey'](_0x2830fd));for(const _0x547873 of _0x26e455){'todo'!=_0x547873['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xeaf92f['_findSuggestions'](_0x547873['getFirstRange'](),'attribute')['find'](_0x48c846=>'listType'===_0xeaf92f['_getAttributeKey'](_0x48c846['suggestion']))||(_0x4a4a6d['removeMarker'](_0x547873['getFirstMarker']()),_0x266237=!0x0));}return _0x266237;})),_0xeaf92f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x41ee7a,'FORMAT_INDENT'));const _0x386fe2={'type':'format','content':''};_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x1fd801=>{const {data:_0x4520d8}=_0x1fd801;if(!_0x4520d8||'listType'!=_0x4520d8['key'])return;let _0x5aed25=_0x1fd801['head'];for(;_0x5aed25;){if(_0x5aed25['data']&&(('listStyle'==_0x5aed25['data']['key']||'listMarkerStyle'==_0x5aed25['data']['key'])&&(_0x5aed25['data']['newValue']&&'default'!=_0x5aed25['data']['newValue']||'default'!=_0x5aed25['data']['oldValue']&&!_0x4520d8['newValue'])||!_0x359c08&&_0x5aed25['data']['key']==m))return _0x386fe2;_0x5aed25=_0x5aed25['next'];}if(null==_0x4520d8['newValue'])switch(_0x4520d8['oldValue']){case'bulleted':return _0x2678ba(o(_0x41ee7a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2678ba(o(_0x41ee7a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2678ba(o(_0x41ee7a,'ELEMENT_TODO_LIST'));}switch(_0x4520d8['newValue']){case'bulleted':return _0x81c897(o(_0x41ee7a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x81c897(o(_0x41ee7a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x81c897(o(_0x41ee7a,'ELEMENT_TODO_LIST'));}}),_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x14d2ec=>{const {data:_0xc87a31}=_0x14d2ec;if(_0xc87a31&&'listIndent'==_0xc87a31['key'])return null==_0xc87a31['newValue']||null==_0xc87a31['oldValue']&&0x0==_0xc87a31['newValue']?_0x386fe2:void 0x0;}),_0xeaf92f['descriptionFactory']['registerDescriptionCallback'](_0x18d4de=>{if('attribute'!=_0x18d4de['type'])return;const {data:_0x25b731}=_0x18d4de;if(!_0x25b731||'listItemId'!=_0x25b731['key'])return;const _0x521f4e=Te(_0x18d4de);return'newValue'==_0x521f4e?{'type':'format','content':o(_0x41ee7a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x521f4e?{'type':'format','content':o(_0x41ee7a,'*Split:*\x20list\x20item')}:_0x386fe2;}),_0x32e913['model']['document']['registerPostFixer'](_0xef0dda=>this['listItemIdFixer'](_0xef0dda)),_0x32e913['model']['document']['registerPostFixer'](_0xe3b8d3=>this['noTrackChangesFixer'](_0xe3b8d3)),_0x32e913['model']['document']['on']('change:data',(_0x29195a,_0xfac65b)=>{if(_0xfac65b['isUndo']||!_0xfac65b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3a38a9){if(_0x3a38a9['batch']['isUndo']||!_0x3a38a9['batch']['isLocal'])return!0x1;let _0x98be52=!0x1;const _0x357c44=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa9c4f4=>_0xa9c4f4['data']&&'listItemId'==_0xa9c4f4['data']['key'])['filter'](_0x5b4160=>_0x5b4160['data']['newValue']&&_0x5b4160['data']['oldValue']);for(const _0x1bf7f7 of _0x357c44)Te(_0x1bf7f7)||(_0x3a38a9['removeMarker'](_0x1bf7f7['getFirstMarker']()),_0x98be52=!0x0);return _0x98be52;}['noTrackChangesFixer'](_0x40c43e){if(_0x40c43e['batch']['isUndo']||!_0x40c43e['batch']['isLocal'])return!0x1;const _0x11b225=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x11b225['trackChangesCommand']['value'])return!0x1;let _0x24436e=!0x1;const _0x37152d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xc9d51c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x372a71=>'attribute'==_0x372a71['type'])['filter'](_0x166b75=>_0x37152d['includes'](_0x166b75['attributeKey']));if(0x0==_0xc9d51c['length'])return _0x24436e;for(const _0x12fd34 of _0xc9d51c){const _0x2a2e03=_0x11b225['_findSuggestions'](_0x12fd34['range'],'attribute')['filter'](_0x47a4b3=>!_0x47a4b3['meta']['isNextTo'])['map'](_0x597449=>_0x597449['suggestion'])['filter'](_0x488de8=>{const _0x17f8ba=_0x11b225['_getAttributeKey'](_0x488de8);return _0x37152d['includes'](_0x17f8ba);});if(_0x2a2e03['length']){for(const _0x1cff99 of _0x2a2e03)_0x40c43e['removeMarker'](_0x1cff99['getFirstMarker']());_0x24436e=!0x0;}}return _0x24436e;}['assureChains'](){const _0x5105f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15b212=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x50e033;const _0x47cb85=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fcf63=>{if(_0x3fcf63['data']['oldRange']||!_0x3fcf63['data']['newRange'])return null;if(!_0x3fcf63['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1b0214}=_0x5105f9['_splitMarkerName'](_0x3fcf63['name']);if(!_0x5105f9['hasSuggestion'](_0x1b0214))return null;const _0x51d34f=_0x5105f9['getSuggestion'](_0x1b0214);return _0x15b212['includes'](_0x51d34f['data']['key']);})['map'](_0x11a96b=>{const {id:_0x54af79}=_0x5105f9['_splitMarkerName'](_0x11a96b['name']),_0x288929=_0x5105f9['getSuggestion'](_0x54af79);return _0x50e033=_0x288929['attributes']['groupId'],_0x288929['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x47cb85['size'])return;const _0x52b00d=_0x5105f9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf08d15=>'attribute'==_0xf08d15['type']&&_0xf08d15['data']&&_0x15b212['includes'](_0xf08d15['data']['key'])&&_0xf08d15['attributes']['groupId']!=_0x50e033)['map'](_0x27a9b2=>({'listItem':_0x27a9b2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x27a9b2['attributes']['groupId']})),_0x352f55=new Set();for(const {groupId:_0x2b150f,listItem:_0x2dbdf5}of _0x52b00d)_0x47cb85['has'](_0x2dbdf5)&&_0x352f55['add'](_0x2b150f);for(const _0x955faf of _0x5105f9['getSuggestions']())_0x352f55['has'](_0x955faf['attributes']['groupId'])&&_0x955faf['setAttribute']('groupId',_0x50e033);}['_supportLegacySuggestions'](){const _0x4aa604=this['editor'],_0x72f75c=_0x4aa604['locale'],_0x41e520=_0x4aa604['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41e520['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xf10898,_0x39a13e){const _0x41cc45=[];for(let _0x429752 of _0xf10898)_0x429752['start']['nodeAfter']===_0x429752['end']['parent']&&(_0x429752=_0x4aa604['model']['createRange'](_0x4aa604['model']['createPositionAt'](_0x429752['start']['nodeAfter'],0x0))),_0x41cc45['push'](_0x429752);_0x4aa604['model']['change'](_0x370f17=>{const _0x36519d=_0x4aa604['model']['document']['selection'],_0x15d0c0=Array['from'](_0x36519d['getRanges']())['map'](_0x1efdb2=>_0xc2db3f['fromRange'](_0x1efdb2));_0x370f17['setSelection'](_0x41cc45),_0x4aa604['commands']['get'](_0x39a13e['commandName'])['refresh'](),_0x39a13e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4aa604['execute'](_0x39a13e['commandName'],..._0x39a13e['commandParams']),_0x370f17['setSelection'](_0x15d0c0);for(const _0x30d2c5 of _0x15d0c0)_0x30d2c5['detach']();});}),_0x41e520['descriptionFactory']['registerElementLabel'](function(_0x3683fc){const _0x4e94ad=!_0x4aa604['model']['schema']['isObject'](_0x3683fc),_0x52e90a=_0x3683fc['previousSibling'],_0x50436d=_0x3683fc['nextSibling'],_0xb23181=_0x3683fc['getAttribute']('listItemId'),_0x34b822=!_0x52e90a||_0x52e90a['getAttribute']('listItemId')!==_0xb23181,_0x1c00d1=!_0x50436d||_0x50436d['getAttribute']('listItemId')!==_0xb23181;return _0x4e94ad&&Boolean(_0xb23181)&&_0x34b822&&_0x1c00d1;},_0x88df77=>o(_0x72f75c,'ELEMENT_LIST_ITEM',_0x88df77));}['_registerLegacyDescription'](){const _0x24a5dd=this['editor'],_0x3172b1=_0x24a5dd['locale'];function _0x1a2dea(_0x9cb6eb){const _0xe9602c=_0x24a5dd['commands']['get']('bulletedList')['value'],_0x48880b=_0x24a5dd['commands']['get']('numberedList')['value'];return'numberedList'===_0x9cb6eb?_0xe9602c:_0x48880b;}_0x24a5dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1cb343){if('formatBlock'!=_0x1cb343['type'])return;const {data:_0x51a488}=_0x1cb343;if(!_0x51a488)return;let _0x543af0,_0x12495f,_0x134c44,_0x421c22;switch(_0x51a488['commandName']){case'bulletedList':_0x134c44=_0x51a488['commandParams'][0x0]['forceValue'],_0x421c22=_0x1a2dea(_0x51a488['commandName']),_0x543af0=_0x134c44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x421c22&&_0x24a5dd['config']['get']('list.multiBlock')||(_0x543af0='*Change\x20to:*\x20%0'),_0x12495f={'type':'format','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x134c44=_0x51a488['commandParams'][0x0]['forceValue'],_0x421c22=_0x1a2dea(_0x51a488['commandName']),_0x543af0=_0x134c44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x421c22&&_0x24a5dd['config']['get']('list.multiBlock')||(_0x543af0='*Change\x20to:*\x20%0'),_0x12495f={'type':'format','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x543af0='*Indent:*\x20%0',_0x12495f={'type':'format','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x543af0=function(_0x47c769){const _0x2b40db=_0x47c769['getFirstRange']();let _0x25995e=_0x2b40db['start']['nodeAfter'];for(;_0x25995e&&_0x2b40db['containsItem'](_0x25995e);){if(_0x25995e['getAttribute']('listIndent')>0x0)return!0x1;_0x25995e=_0x25995e['nextSibling'];}return!0x0;}(_0x1cb343)?o(_0x3172b1,'*Format:*\x20remove\x20from\x20%0',o(_0x3172b1,function(_0x11c368){return'ELEMENT_'+_0x11c368['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1cb343))):o(_0x3172b1,'*Outdent:*\x20%0',o(_0x3172b1,'ELEMENT_LIST_ITEM')),_0x12495f={'type':'format','content':_0x543af0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x51a488['multipleBlocks']&&(_0x543af0='*Merge:*\x20%0',_0x12495f={'type':'deletion','content':o(_0x3172b1,_0x543af0,o(_0x3172b1,'ELEMENT_LIST_ITEM'))});}return _0x12495f;});}}function Te(_0xfccaa3){let _0x34b6e7=_0xfccaa3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34b6e7;){const _0x395a28=_0x34b6e7['getAttribute']('listItemId');if(!_0x395a28)return!0x1;if(_0x395a28==_0xfccaa3['data']['newValue'])return'newValue';if(_0x395a28==_0xfccaa3['data']['oldValue'])return'oldValue';_0x34b6e7=_0x34b6e7['previousSibling'];}return!0x1;}class z extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x441278=this['editor']['config']['get']('list.properties'),_0x6b9862=this['editor']['plugins']['get']('TrackChangesEditing');_0x441278['styles']&&(_0x6b9862['enableDefaultAttributesIntegration']('listStyle'),_0x6b9862['registerBlockAttribute']('listStyle')),_0x441278['reversed']&&(_0x6b9862['enableDefaultAttributesIntegration']('listReversed'),_0x6b9862['registerBlockAttribute']('listReversed')),_0x441278['startIndex']&&(_0x6b9862['enableDefaultAttributesIntegration']('listStart'),_0x6b9862['registerBlockAttribute']('listStart'));const _0x2f2ee2={'type':'format','content':''};_0x6b9862['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2f98f6=this['editor']['locale'];_0x6b9862['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2f98f6,'FORMAT_LIST_REVERSED')),_0x6b9862['descriptionFactory']['registerDescriptionCallback'](_0x290a34=>{const {data:_0x26493c}=_0x290a34;if(_0x26493c&&'listReversed'==_0x26493c['key'])return null==_0x26493c['newValue']||0x0==_0x26493c['newValue']&&null==_0x26493c['oldValue']?_0x2f2ee2:void 0x0;}),_0x6b9862['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2f98f6,'FORMAT_LIST_START')),_0x6b9862['descriptionFactory']['registerDescriptionCallback'](_0x4fc36d=>{const {data:_0x4a0601}=_0x4fc36d;if(_0x4a0601&&'listStart'==_0x4a0601['key'])return null==_0x4a0601['newValue']||0x1==_0x4a0601['newValue']&&null==_0x4a0601['oldValue']?_0x2f2ee2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x323a1=>{if(_0x323a1['batch']['isUndo'])return!0x1;let _0x353335=!0x1;const _0x2c229b=_0x6b9862['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x502758=>{const _0x1a5daa=_0x6b9862['_getAttributeKey'](_0x502758);return'listStart'==_0x1a5daa||'listReversed'==_0x1a5daa;});for(const _0x2de121 of _0x2c229b){const _0x1638d7=_0x2de121['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1638d7||'customNumbered'==_0x1638d7)continue;_0x6b9862['_findSuggestions'](_0x2de121['getFirstRange'](),'attribute')['find'](_0x5efe2f=>'listType'==_0x6b9862['_getAttributeKey'](_0x5efe2f['suggestion']))||(_0x323a1['removeMarker'](_0x2de121['getFirstMarker']()),_0x353335=!0x0);}return _0x353335;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4395db){const _0x3b73c3=this['editor']['locale'],{data:_0x245be7}=_0x4395db,_0x5c7ef2={'type':'format','content':''};if(!_0x245be7||'listStyle'!=_0x245be7['key'])return;if(!_0x245be7['oldValue'])return'default'==_0x245be7['newValue']?_0x5c7ef2:{'type':'format','content':''+o(_0x3b73c3,'*Set\x20format:*\x20%0',o(_0x3b73c3,this['_getTranslationKeyForListStyle'](_0x245be7['newValue'])))};if(!_0x245be7['newValue']){if('default'==_0x245be7['oldValue'])return _0x5c7ef2;let _0x48f497=_0x4395db['head'];for(;_0x48f497;){if(_0x48f497['data']&&'listType'==_0x48f497['data']['key']&&_0x48f497['data']['newValue'])return _0x5c7ef2;_0x48f497=_0x48f497['next'];}return{'type':'format','content':''+o(_0x3b73c3,'*Remove\x20format:*\x20%0',o(_0x3b73c3,this['_getTranslationKeyForListStyle'](_0x245be7['oldValue'])))};}if('default'!=_0x245be7['newValue'])return{'type':'format','content':''+o(_0x3b73c3,'*Set\x20format:*\x20%0',o(_0x3b73c3,this['_getTranslationKeyForListStyle'](_0x245be7['newValue'])))};let _0xe3944=_0x4395db['head'];for(;_0xe3944;){if(_0xe3944['data']&&'listType'==_0xe3944['data']['key']&&_0xe3944['data']['newValue']&&_0xe3944['data']['oldValue'])return _0x5c7ef2;_0xe3944=_0xe3944['next'];}return{'type':'format','content':o(_0x3b73c3,'*Set\x20format:*\x20%0',o(_0x3b73c3,'ELEMENT_'+_0x4395db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x18f914=this['editor'],_0x39afb9=_0x18f914['locale'];_0x18f914['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x963fef=>{if('formatBlock'!=_0x963fef['type'])return;const {data:_0x2e56fa}=_0x963fef;if(!_0x2e56fa)return;let _0x52bb72,_0x22ad3c;switch(_0x2e56fa['commandName']){case'listStyle':_0x52bb72='*Change\x20to:*\x20%0',_0x22ad3c={'type':'format','content':o(_0x39afb9,_0x52bb72,o(_0x39afb9,this['_getTranslationKeyForListStyle'](_0x2e56fa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52bb72=_0x2e56fa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x22ad3c={'type':'format','content':o(_0x39afb9,_0x52bb72)};break;case'listStart':_0x52bb72='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x22ad3c={'type':'format','content':o(_0x39afb9,_0x52bb72,_0x2e56fa['commandParams'][0x0]['startIndex'])};}return _0x22ad3c;});}['_getTranslationKeyForListStyle'](_0x3cfe54){return'ELEMENT_'+function(_0x1f5262){if(Se['includes'](_0x1f5262))return'bulleted';if(_e['includes'](_0x1f5262))return'numbered';return null;}(_0x3cfe54)['toUpperCase']()+'_LIST_'+_0x3cfe54['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x28b250{['afterInit'](){const _0x1eb345=this['editor'];_0x1eb345['commands']['get']('emoji')&&_0x1eb345['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Q extends _0x28b250{static get['requires'](){return[_0x242bbd];}['init'](){const _0x504e9f=this['editor'],_0x50930e=_0x504e9f['plugins']['get']('TrackChangesEditing'),_0x2b81cd=_0x504e9f['commands']['get']('enter');_0x50930e['enableCommand']('enter',()=>{_0x504e9f['model']['change'](_0x2658e3=>{const _0x15c531=_0x504e9f['model']['document']['selection'],_0x493e26=_0x15c531['getFirstPosition'](),_0x2c2b7f=_0xc2db3f['fromRange'](_0x15c531['getFirstRange']());if(_0x2b81cd['enterBlock'](_0x2658e3)){const _0x48cbba=_0x504e9f['model']['createPositionAt'](_0x493e26['parent']['nextSibling'],0x0),_0x19ed64=_0x2658e3['createRange'](_0x493e26,_0x48cbba);_0x50930e['markInsertion'](_0x19ed64);}else _0x2658e3['setSelection'](_0x2658e3['createRange'](_0x2c2b7f['end']));_0x2c2b7f['detach'](),_0x2b81cd['fire']('afterExecute',{'writer':_0x2658e3});});}),_0x504e9f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x504e9f,'split'),{'priority':'high'}),_0x504e9f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1d880c,_0x1db5c1,_0x563eee)=>{const _0x4cc0e3=_0x563eee['mapper']['markerNameToElements'](_0x1db5c1['markerName']);if(_0x4cc0e3){for(const _0xf4c0c of _0x4cc0e3)_0xf4c0c['hasClass']('ck-suggestion-marker-split')&&(_0x563eee['mapper']['unbindElementFromMarkerName'](_0xf4c0c,_0x1db5c1['markerName']),_0x563eee['writer']['remove'](_0xf4c0c));}},{'priority':'high'}),_0x504e9f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54899b,_0xeab2b6,_0xf29999)=>{_0xf29999['options']['showSuggestionHighlights']&&Fe(_0x504e9f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54899b,_0xeab2b6,_0xf29999);},{'priority':'high'});}}class X extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x122e72=this['editor']['plugins']['get']('TrackChangesEditing');_0x122e72['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x122e72['enableCommand']('findNext'),_0x122e72['enableCommand']('findPrevious'),_0x122e72['enableCommand']('replace'),_0x122e72['enableCommand']('replaceAll');}['handleFindCommand'](_0x476dc5,_0x37425c,_0x3f98c4={}){const _0x3e3279=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x476dc5(_0x2758a4=>{let _0x1fd71b=('string'==typeof _0x37425c?_0x3e3279['findByTextCallback'](_0x37425c,_0x3f98c4):_0x37425c)(_0x2758a4);Array['isArray'](_0x1fd71b)&&(_0x1fd71b={'results':_0x1fd71b,'searchText':'string'==typeof _0x37425c?_0x37425c:''});const _0x4d73af=_0x1fd71b['results']['filter'](_0x3af71e=>!0x1===this['_isInDeletionRange'](_0x3af71e,_0x2758a4['item']));return{..._0x1fd71b,'results':_0x4d73af};},_0x3f98c4);}['_isInDeletionRange'](_0x58781c,_0x4f09c5){const _0x348ec3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f09c5,_0x58781c['start']),this['editor']['model']['createPositionAt'](_0x4f09c5,_0x58781c['end']));for(const _0x1edc98 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x348ec3['getIntersection'](_0x1edc98['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x28b250{['afterInit'](){const _0x246cfe=this['editor']['locale'],_0x3800fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5bf1f5,commandName:_0x195335}of no)this['editor']['plugins']['has'](_0x5bf1f5)&&(_0x3800fb['enableDefaultAttributesIntegration'](_0x195335),_0x3800fb['registerInlineAttribute'](_0x195335));_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x246cfe,'FORMAT_FONT_SIZE')),_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x246cfe,'FORMAT_FONT_FAMILY')),_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x246cfe,'FORMAT_FONT_COLOR')),_0x3800fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x246cfe,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21e916=this['editor'],_0x53b08b=_0x21e916['locale'];_0x21e916['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d1114=>{const _0x533f29=_0x53b08b['t'];if('formatInline'!=_0x1d1114['type'])return;const {data:_0x4339c2}=_0x1d1114;if(null!=_0x4339c2){if('fontSize'==_0x4339c2['commandName']){const _0x3e918b=_0x4339c2['commandParams'][0x0]['value'];if(_0x3e918b){const _0x1e0bfe=_0x533f29(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3ba881=>_0x3ba881['model']==_0x3e918b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20size:*\x20%0',_0x1e0bfe)};}return{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4339c2['commandName']){const _0x411b85=_0x4339c2['commandParams'][0x0]['value'];return _0x411b85?{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20family:*\x20%0',_0x411b85)}:{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4339c2['commandName']){const _0x7ae0e8=_0x4339c2['commandParams'][0x0]['value'];if(_0x7ae0e8){const _0x537b5b=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5e6774=>_0x5e6774['model']==_0x7ae0e8);let _0x10bf5c=_0x7ae0e8,_0x1401fb='';return _0x537b5b&&(_0x10bf5c=_0x537b5b['label'],_0x1401fb=_0x533f29(_0x10bf5c)['toLowerCase']()),{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20color:*\x20%0',_0x1401fb)['trim'](),'color':{'value':_0x7ae0e8,'title':_0x1401fb||_0x10bf5c}};}return{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4339c2['commandName']){const _0x13a367=_0x4339c2['commandParams'][0x0]['value'];if(_0x13a367){const _0x18be71=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x10d786=>_0x10d786['model']==_0x13a367);let _0x4f7f4d=_0x13a367,_0x5cd6a7='';return _0x18be71&&(_0x4f7f4d=_0x18be71['label'],_0x5cd6a7=_0x533f29(_0x4f7f4d)['toLowerCase']()),{'type':'format','content':o(_0x53b08b,'*Set\x20font\x20background\x20color:*\x20%0',_0x5cd6a7)['trim'](),'color':{'value':_0x13a367,'title':_0x5cd6a7||_0x4f7f4d}};}return{'type':'format','content':o(_0x53b08b,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x28b250{['afterInit'](){const _0x3b3236=this['editor'],_0x32d36c=_0x3b3236['plugins']['get']('TrackChangesEditing'),_0x42f33b=_0x3b3236['commands']['get']('copyFormat'),_0xc5a3ee=_0x3b3236['commands']['get']('pasteFormat');_0x42f33b&&_0xc5a3ee&&(_0x32d36c['enableDefaultAttributesIntegration']('pasteFormat'),_0x32d36c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x480389=this['editor'],_0x3a972c=_0x480389['locale'];_0x480389['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a72b6=>{if('formatBlock'!=_0x4a72b6['type']&&'formatInline'!=_0x4a72b6['type'])return;const {data:_0x17453d}=_0x4a72b6;if(_0x17453d&&'pasteFormat'===_0x17453d['commandName']){const _0x573a5e=[],_0x1e1e68=_0x17453d['commandParams'][0x0];for(const [_0x100c47,_0xa1e276]of Object['entries'](_0x1e1e68))_0x573a5e['push'](ro(_0x480389,_0x100c47,_0xa1e276));return _0x573a5e['length']?{'type':'format','content':o(_0x3a972c,'*Set\x20format\x20to:*\x20%0',_0x573a5e['join'](',\x20'))}:{'type':'format','content':o(_0x3a972c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x27d67b,_0x332c11,_0x5c3e42){const _0x35b582=_0x27d67b['locale']['t'],_0x2ffdbd=_0x332c11['split'](/(?=[A-Z])/)['join']('\x20'),_0x2264cb=_0x35b582(_0x2ffdbd['charAt'](0x0)['toUpperCase']()+_0x2ffdbd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5c3e42)return _0x2264cb;if('fontColor'===_0x332c11||'fontBackgroundColor'===_0x332c11){const _0x38ef17=to(_0x27d67b['config']['get']('fontColor.colors'))['find'](_0x122a8c=>_0x122a8c['model']==_0x5c3e42);return _0x2264cb+'\x20('+(_0x38ef17?_0x35b582(_0x38ef17['label'])['toLowerCase']():_0x5c3e42)+')';}if('fontSize'===_0x332c11&&isNaN(parseFloat(_0x5c3e42))){const _0x5386f1=_0x27d67b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x27d67b['config']['get']('fontSize.options'))['find'](_0x118837=>_0x118837['model']==_0x5c3e42);return _0x2264cb+'\x20('+(_0x5386f1?_0x35b582(_0x5386f1['title'])['toLowerCase']():_0x5c3e42)+')';}return _0x2264cb+'\x20('+_0x5c3e42+')';}class tt extends _0x28b250{['_headingOptions'];['afterInit'](){const _0x5f127f=this['editor'];if(!_0x5f127f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f127f['config']['get']('heading.options');const _0x4b26e9=_0x5f127f['locale'],_0xafab8b=_0x5f127f['plugins']['get']('TrackChangesEditing');_0xafab8b['enableDefaultAttributesIntegration']('heading');for(const _0x41e281 of this['_headingOptions'])'paragraph'!=_0x41e281['model']&&_0xafab8b['descriptionFactory']['registerElementLabel'](_0x41e281['model'],_0x1afe08=>{const _0x2dc2c0=this['_getHeadingLevel'](_0x41e281['model']);return null!==_0x2dc2c0?_0x5be7c1(_0x1afe08,_0x2dc2c0):_0x164549(_0x1afe08,_0x41e281['title']);});function _0x5be7c1(_0x5cb076,_0x327d7d){return o(_0x4b26e9,'ELEMENT_HEADING',[_0x5cb076,_0x327d7d]);}function _0x164549(_0x5e00ba,_0x55da18){return o(_0x4b26e9,'ELEMENT_HEADING_CUSTOM',[_0x5e00ba,_0x55da18]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ce038=this['editor'],_0x471b0b=_0x5ce038['locale'];function _0x11615d(_0x36589d,_0x404672){return o(_0x471b0b,'ELEMENT_HEADING_CUSTOM',[_0x36589d,_0x404672]);}_0x5ce038['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53191d=>{if('formatBlock'!=_0x53191d['type'])return;const {data:_0x8e546d}=_0x53191d;if(_0x8e546d&&'heading'==_0x8e546d['commandName']){const _0x76301b=_0x8e546d['commandParams'][0x0]['value'],_0xa6b41e=this['_getHeadingLevel'](_0x76301b);if(null!==_0xa6b41e)return{'type':'format','content':o(_0x471b0b,'*Change\x20to:*\x20%0',(_0x218ccb=0x1,_0x23e4c5=_0xa6b41e,o(_0x471b0b,'ELEMENT_HEADING',[_0x218ccb,_0x23e4c5])))};const _0x32e393=this['_headingOptions']['find'](_0x4995ed=>_0x4995ed['model']===_0x76301b)['title'];return{'type':'format','content':o(_0x471b0b,'*Change\x20to:*\x20%0',_0x11615d(0x1,_0x32e393))};}var _0x218ccb,_0x23e4c5;});}['_getHeadingLevel'](_0x198640){const _0x138aa1=_0x198640['match'](/^heading(\d+)/);if(_0x138aa1)return _0x138aa1[0x1];const _0x34a6f6=this['_headingOptions']?.['find'](_0x1d3ac2=>_0x1d3ac2['model']==_0x198640);if(_0x34a6f6&&_0x34a6f6['view']){const _0x5629a8=_0x34a6f6['view'],_0x4aa9d2=(_0x5629a8['name']??_0x5629a8)['match'](/^h(\d+)/);if(_0x4aa9d2)return _0x4aa9d2[0x1];}return null;}}class it extends _0x28b250{['afterInit'](){const _0x1a3174=this['editor'];if(!_0x1a3174['plugins']['has']('HighlightEditing'))return;const _0x1dd600=_0x1a3174['plugins']['get']('TrackChangesEditing'),_0x22b209=_0x1a3174['locale'];_0x1dd600['enableDefaultAttributesIntegration']('highlight'),_0x1dd600['registerInlineAttribute']('highlight'),_0x1dd600['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x22b209,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x148612=this['editor'],_0x73f1c2=_0x148612['locale'];_0x148612['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e023e=>{if('formatInline'!=_0x4e023e['type'])return;const {data:_0x47dded}=_0x4e023e;if(_0x47dded&&'highlight'==_0x47dded['commandName']){const _0x5b15a2=_0x73f1c2['t'],_0x4eda42=_0x47dded['commandParams'][0x0]['value'];if(_0x4eda42){const _0x278161=_0x148612['config']['get']('highlight.options')['find'](_0x22515c=>_0x22515c['model']==_0x4eda42),_0x22d1d1=_0x5b15a2(_0x278161['title'])['toLowerCase']();return{'type':'format','content':o(_0x73f1c2,'*Set\x20highlight:*\x20%0',_0x22d1d1),'color':{'value':_0x278161['color'],'title':_0x278161['title']}};}return{'type':'format','content':o(_0x73f1c2,'*Remove\x20highlight*',o(_0x73f1c2,'FORMAT_HIGHLIGHT'))};}});}}class nt extends _0x28b250{['afterInit'](){const _0x3cb028=this['editor'];if(!_0x3cb028['plugins']['has']('HorizontalLineEditing'))return;_0x3cb028['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x192873=_0x3cb028['plugins']['get']('TrackChangesEditing'),_0x38a555=_0x3cb028['locale'];_0x192873['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3c9b9e=>o(_0x38a555,'ELEMENT_HORIZONTAL_LINE',_0x3c9b9e)),_0x3cb028['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x14d59b,{writer:_0x103dba,options:_0x1d4875})=>{if(!_0x1d4875['showSuggestionHighlights'])return null;const _0x2ce26f=_0x103dba['createContainerElement']('div'),_0x531fa2=_0x103dba['createEmptyElement']('hr');return _0x103dba['addClass']('ck-horizontal-line',_0x2ce26f),_0x103dba['insert'](_0x103dba['createPositionAt'](_0x2ce26f,0x0),_0x531fa2),_0x2ce26f;},'converterPriority':'high'});}}class et extends _0x28b250{['afterInit'](){const _0x2bf621=this['editor'];if(!_0x2bf621['plugins']['has']('HtmlEmbed'))return;const _0x25b6bb=_0x2bf621['plugins']['get']('TrackChangesEditing'),_0x154788=_0x2bf621['locale'];_0x25b6bb['descriptionFactory']['registerElementLabel']('rawHtml',_0x18c0cd=>o(_0x154788,'ELEMENT_HTML_EMBED',_0x18c0cd)),_0x25b6bb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x25b6bb['registerBlockAttribute']('value'),_0x25b6bb['descriptionFactory']['registerDescriptionCallback'](_0x1e49ae=>{if('attribute'!=_0x1e49ae['type'])return;const {data:_0x388d8b}=_0x1e49ae;if(_0x388d8b&&'value'==_0x388d8b['key']&&_0x1e49ae['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x22f6db=o(_0x154788,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x154788,'*Change\x20%0\x20content*',_0x22f6db)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1219a7=this['editor'],_0x1837ea=_0x1219a7['locale'];_0x1219a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b5cff=>{if('formatBlock'!=_0x5b5cff['type'])return;const {data:_0x5abad8}=_0x5b5cff;if(_0x5abad8&&'htmlEmbed'==_0x5abad8['commandName']){const _0x26f017=o(_0x1837ea,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1837ea,'*Change\x20%0\x20content*',_0x26f017)};}});}}class st extends _0x28b250{['afterInit'](){const _0xc28387=this['editor'];if(!_0xc28387['plugins']['has']('ImageEditing'))return;const _0x25eb8d=_0xc28387['plugins']['get']('TrackChangesEditing'),_0x55d200=_0xc28387['plugins']['get']('ImageUtils'),_0x3e3641=_0xc28387['locale'];_0x25eb8d['enableCommand']('insertImage'),_0x25eb8d['descriptionFactory']['registerElementLabel']('imageBlock',_0x5163c0=>o(_0x3e3641,'ELEMENT_IMAGE',_0x5163c0)),_0x25eb8d['descriptionFactory']['registerElementLabel']('imageInline',_0x174a4d=>o(_0x3e3641,'ELEMENT_INLINE_IMAGE',_0x174a4d)),_0x25eb8d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3e3641,'ELEMENT_CAPTION')),_0xc28387['plugins']['has']('ImageUploadEditing')&&_0x25eb8d['enableCommand']('uploadImage'),_0xc28387['plugins']['has']('ImageBlockEditing')&&_0xc28387['plugins']['has']('ImageInlineEditing')&&(_0x25eb8d['enableCommand']('imageTypeInline',(_0x45af91,_0x59e44c)=>{const _0x3180ea=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']);_0xc28387['model']['change'](()=>{_0x25eb8d['markBlockFormat'](_0x3180ea,{'commandName':'imageTypeInline','commandParams':[_0x59e44c]},[],'convertBlockImageToInline');});}),_0x25eb8d['enableCommand']('imageTypeBlock',(_0x1656f3,_0x41a0c2)=>{_0xc28387['model']['change'](_0xd37d14=>{let _0x3541b6=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0x521af9=_0xd37d14['createRangeOn'](_0x3541b6);const _0x59beab=_0x30cdb6['fromPosition'](_0x521af9['start'],'toPrevious'),_0x9affc4=_0x30cdb6['fromPosition'](_0x521af9['end'],'toNext');_0x25eb8d['forceDefaultExecution'](()=>_0x1656f3(_0x41a0c2)),_0x3541b6=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0x521af9=_0xd37d14['createRangeOn'](_0x3541b6);const _0x4452bb=_0xd37d14['createRange'](_0x59beab,_0x9affc4);_0x59beab['detach'](),_0x9affc4['detach'](),_0x25eb8d['markBlockFormat'](_0x3541b6,{'commandName':'imageTypeInline','commandParams':[_0x41a0c2]},[],'convertInlineImageToBlock'),_0x4452bb['start']['isBefore'](_0x521af9['start'])&&_0x25eb8d['markInsertion'](_0xd37d14['createRange'](_0x4452bb['start'],_0x521af9['start']),'convertInlineImageToBlock'),_0x521af9['end']['isBefore'](_0x4452bb['end'])&&_0x25eb8d['markInsertion'](_0xd37d14['createRange'](_0x521af9['end'],_0x4452bb['end']),'convertInlineImageToBlock');});}),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25eb8d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xc25858])=>{const _0x3f9afe=_0x25eb8d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x24a4cc=_0xc25858['start'],_0x18e891=_0xc25858['end'];const _0x4380f0=_0xc28387['model']['schema']['getNearestSelectionRange'](_0x24a4cc,'backward'),_0x1d1288=_0xc28387['model']['schema']['getNearestSelectionRange'](_0x18e891,'forward');_0x4380f0['isCollapsed']&&(_0x24a4cc=_0x4380f0['start']),_0x1d1288['isCollapsed']&&(_0x18e891=_0x1d1288['end']),_0x3f9afe([_0xc28387['model']['createRange'](_0x24a4cc,_0x18e891)]);}),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x59bf45),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x59bf45)),_0xc28387['plugins']['has']('ImageCaptionEditing')&&(_0x25eb8d['enableCommand']('toggleImageCaption',(_0x643318,_0x8db4bb)=>{const _0x44fec5=_0xc28387['plugins']['get']('ImageCaptionUtils');let _0x3e014f=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0xf3a41c=_0x44fec5['getCaptionFromImageModelElement'](_0x3e014f);_0xc28387['model']['change'](()=>{if(_0xf3a41c)return void _0x25eb8d['markDeletion'](_0xc28387['model']['createRangeOn'](_0xf3a41c));const _0x3bdd14=_0x55d200['isBlockImage'](_0x3e014f);_0x643318(_0x8db4bb),_0x3e014f=_0x55d200['getClosestSelectedImageElement'](_0xc28387['model']['document']['selection']),_0xf3a41c=_0x44fec5['getCaptionFromImageModelElement'](_0x3e014f),_0x25eb8d['markInsertion'](_0xc28387['model']['createRangeOn'](_0xf3a41c),_0x3bdd14?null:'imageCaption');});}),_0x25eb8d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x59bf45));const _0x441b03=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f419c(_0xc669eb,_0x1fff75){const _0x267683=_0x441b03['findIndex'](({type:_0x3b1782,subType:_0x55cd2d})=>_0xc669eb['type']==_0x3b1782&&_0xc669eb['subType']==_0x55cd2d),_0x304986=_0x441b03['findIndex'](({type:_0x311074,subType:_0xedfb07})=>_0x1fff75['type']==_0x311074&&_0x1fff75['subType']==_0xedfb07);if(_0x267683<0x0||_0x304986<0x0)return!0x1;const _0x573d69=_0xc669eb['getFirstRange'](),_0x4461bf=_0x1fff75['getFirstRange']();if((0x0==_0x267683||0x1==_0x267683)&&0x2==_0x304986&&_0x573d69['isIntersecting'](_0x4461bf))return!0x0;if(0x2==_0x267683&&0x3==_0x304986){const _0x37f155=_0x25eb8d['_findSuggestions'](_0x573d69,'insertion')['filter'](({suggestion:_0x3ccff1,meta:_0x43a56d})=>_0x43a56d['isOwn']&&'convertInlineImageToBlock'==_0x3ccff1['subType']);if(_0x37f155['length']>0x1&&_0x4461bf['end']['isEqual'](_0x573d69['start']))return!0x0;if(0x1==_0x37f155['length']&&(_0x573d69['start']['isEqual'](_0x4461bf['end'])||_0x573d69['end']['isEqual'](_0x4461bf['start'])))return!0x0;}if(0x3==_0x267683&&0x3==_0x304986&&_0x573d69['start']['isBefore'](_0x4461bf['start'])){const _0x38420d=_0x573d69['end']['nodeAfter'],_0x3c3a02=_0x4461bf['start']['nodeBefore'];return _0x55d200['isBlockImage'](_0x38420d)&&_0x38420d===_0x3c3a02;}return!0x1;}function _0x59bf45(_0x524d27,_0x303561){return _0x2f419c(_0x524d27,_0x303561)?[_0x524d27,_0x303561]:_0x2f419c(_0x303561,_0x524d27)?[_0x303561,_0x524d27]:null;}_0xc28387['plugins']['has']('ImageResize')&&(_0x25eb8d['enableDefaultAttributesIntegration']('resizeImage'),_0x25eb8d['registerBlockAttribute']('resizedWidth'),_0x25eb8d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3e3641,'FORMAT_IMAGE_SIZE'))),_0xc28387['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25eb8d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25eb8d['registerBlockAttribute']('alt')),_0xc28387['plugins']['has']('PictureEditing')&&(_0x25eb8d['registerBlockAttribute']('sources'),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x31fa74=>{if('attribute'!=_0x31fa74['type'])return;const {data:_0x4a8b64}=_0x31fa74;return _0x4a8b64&&'sources'==_0x4a8b64['key']?{'type':'format','content':''}:void 0x0;})),_0xc28387['plugins']['has']('ImageSizeAttributes')&&(_0x25eb8d['registerBlockAttribute']('width'),_0x25eb8d['registerBlockAttribute']('height'),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x5dd80a=>{if('attribute'!=_0x5dd80a['type'])return;const {data:_0x444b0e}=_0x5dd80a;return!_0x444b0e||'width'!=_0x444b0e['key']&&'height'!=_0x444b0e['key']?void 0x0:{'type':'format','content':''};})),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x397c55=>{if(!!_0x441b03['find'](({type:_0x45c737,subType:_0x51dcce})=>_0x397c55['type']==_0x45c737&&_0x397c55['subType']==_0x51dcce))return _0x397c55['previous']?{}:void 0x0;}),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x63d94f=>{if('insertion'==_0x63d94f['type']||'deletion'==_0x63d94f['type']){const _0x510ac2=_0x63d94f['getContainedElement']();if(_0x510ac2&&_0x510ac2['is']('element','caption'))return{'type':'insertion'==_0x63d94f['type']?'addObject':'removeObject','element':_0x510ac2,'quantity':0x1};}}),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x3424ee=>'formatBlock'==_0x3424ee['type']&&'convertInlineImageToBlock'==_0x3424ee['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3424ee['type']&&'convertBlockImageToInline'==_0x3424ee['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25eb8d['descriptionFactory']['registerDescriptionCallback'](_0x3e361c=>{if('attribute'!=_0x3e361c['type'])return;const {data:_0x3d0b1d}=_0x3e361c;if(!_0x3d0b1d||'alt'!=_0x3d0b1d['key'])return;const _0x22a17e=_0x3d0b1d['newValue'];return _0x22a17e?{'type':'format','content':o(_0x3e3641,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22a17e+'\x22')}:{'type':'format','content':o(_0x3e3641,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491270=this['editor'],_0x1668af=_0x491270['locale'];_0x491270['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a335a=>{if('formatBlock'!=_0x5a335a['type']&&'formatInline'!=_0x5a335a['type'])return;const {data:_0x11170b}=_0x5a335a;if(_0x11170b){if('imageTextAlternative'==_0x11170b['commandName']){const _0x3915da=_0x11170b['commandParams'][0x0]['newValue'];return _0x3915da?{'type':'format','content':o(_0x1668af,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3915da+'\x22')}:{'type':'format','content':o(_0x1668af,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x11170b['commandName']){const _0x3ecd40=_0x11170b['commandParams'][0x0]['width'];return _0x3ecd40?{'type':'format','content':o(_0x1668af,'*Set\x20image\x20width:*\x20%0',_0x3ecd40)}:{'type':'format','content':o(_0x1668af,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3b7ed3=this['editor']['locale'],_0x1507c8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1507c8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1507c8['registerBlockAttribute']('src'),_0x1507c8['descriptionFactory']['registerDescriptionCallback'](_0x594769=>{if('attribute'!=_0x594769['type'])return;const {data:_0x5157f7}=_0x594769;return _0x5157f7&&'src'==_0x5157f7['key']?_0x5157f7['newValue']&&_0x5157f7['oldValue']?{'type':'format','content':o(_0x3b7ed3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xeca685=this['editor']['plugins']['get']('TrackChangesEditing');_0xeca685['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xeca685['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xeca685['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xeca685['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31fa68=this['editor'],_0x2ed856=_0x31fa68['locale'];_0x31fa68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a128=>{if('formatBlock'!=_0x40a128['type']&&'formatInline'!=_0x40a128['type'])return;const {data:_0x229bea}=_0x40a128;if(!_0x229bea||'replaceImageSource'!=_0x229bea['commandName'])return;return{'type':'format','content':o(_0x2ed856,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x28b250{['afterInit'](){const _0x473101=this['editor'];if(!_0x473101['plugins']['has']('ImageStyleEditing'))return;const _0x759f7e=_0x473101['plugins']['get']('TrackChangesEditing'),_0x1b8596=_0x473101['plugins']['get']('ImageUtils'),_0x253c86={};_0x759f7e['enableCommand']('imageStyle',(_0x4f76e8,_0x1d5c68)=>{const _0x421bca=_0x473101['plugins']['get']('Users')['me'],_0x549a50=_0x473101['commands']['get']('imageStyle');let _0x564536=_0x1b8596['getClosestSelectedImageElement'](_0x473101['model']['document']['selection']),_0xb083e5=_0x473101['model']['createRangeOn'](_0x564536),_0x2165e4=_0x549a50['value'];if(_0x2165e4==_0x1d5c68['value'])return;const _0x2b2a74={'commandName':'imageStyle','commandParams':[_0x1d5c68],'formatGroupId':_0x370ed3()};_0x473101['model']['change'](()=>{if(_0x759f7e['getSuggestions']()['filter'](_0x1f9dea=>_0x1f9dea['isInContent']&&_0x421bca==_0x1f9dea['author']&&('formatBlock'==_0x1f9dea['type']||'formatInline'==_0x1f9dea['type'])&&('imageStylePreApply'==_0x1f9dea['subType']||'imageStylePostApply'==_0x1f9dea['subType'])&&_0x1f9dea['getFirstRange']()['isEqual'](_0xb083e5))['forEach'](_0x337286=>_0x759f7e['discardSuggestion'](_0x337286['head'])),_0x564536=_0x1b8596['getClosestSelectedImageElement'](_0x473101['model']['document']['selection']),_0xb083e5=_0x473101['model']['createRangeOn'](_0x564536),_0x549a50['refresh'](),_0x473101['commands']['get']('imageTypeInline')['refresh'](),_0x473101['commands']['get']('imageTypeBlock')['refresh'](),_0x2165e4=_0x549a50['value'],_0x2165e4!=_0x1d5c68['value'])return _0x1b8596['isInlineImage'](_0x564536)&&_0x549a50['shouldConvertImageType'](_0x1d5c68['value'],_0x564536)?(_0x4f76e8({..._0x1d5c68,'setImageSizes':!0x1}),_0x564536=_0x1b8596['getClosestSelectedImageElement'](_0x473101['model']['document']['selection']),void _0x759f7e['markBlockFormat'](_0x564536,{..._0x2b2a74,'commandReversedParams':[{'value':_0x2165e4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1b8596['isBlockImage'](_0x564536)?_0x759f7e['markBlockFormat'](_0x564536,_0x2b2a74,[],'imageStylePostApply'):_0x759f7e['markInlineFormat'](_0xb083e5,_0x2b2a74,'imageStylePostApply'));});});for(const _0x2a9198 of _0x473101['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x253c86[_0x2a9198['name']]=_0x2a9198['title']['toLowerCase']();_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b9ac4])=>{_0x1b8596['setImageNaturalSizeAttributes'](_0x4b9ac4['getContainedElement']());}),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x29fe23,_0x21cb1d)=>{_0x759f7e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x29fe23,{'commandName':_0x21cb1d['commandName'],'commandParams':_0x21cb1d['commandReversedParams']});}),_0x759f7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4ec3b1,_0x4cf52d){if(_0xb9ddcc(_0x4ec3b1,_0x4cf52d))return[_0x4ec3b1,_0x4cf52d];if(_0xb9ddcc(_0x4cf52d,_0x4ec3b1))return[_0x4cf52d,_0x4ec3b1];return null;});const _0x41332b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb9ddcc(_0x3d5804,_0x5b626f){const _0x2ed07c=_0x41332b['findIndex'](({type:_0x320923,subType:_0x5a6d20})=>_0x3d5804['type']==_0x320923&&_0x3d5804['subType']==_0x5a6d20),_0x2bbee2=_0x41332b['findIndex'](({type:_0x42b61f,subType:_0x4d04d0})=>_0x5b626f['type']==_0x42b61f&&_0x5b626f['subType']==_0x4d04d0);if(_0x2ed07c<0x0||_0x2bbee2<0x0)return!0x1;const _0x87202f=_0x3d5804['getFirstRange'](),_0x19d8d=_0x5b626f['getFirstRange']();if((0x0==_0x2ed07c||0x1==_0x2ed07c)&&0x2==_0x2bbee2&&_0x87202f['isIntersecting'](_0x19d8d))return!0x0;if(0x2==_0x2ed07c&&0x3==_0x2bbee2){const _0x3ad0ec=_0x759f7e['_findSuggestions'](_0x87202f,'insertion')['filter'](({suggestion:_0x1068c1,meta:_0x17163f})=>_0x17163f['isOwn']&&'convertInlineImageToBlock'==_0x1068c1['subType']);if(_0x3ad0ec['length']>0x1&&_0x19d8d['end']['isEqual'](_0x87202f['start']))return!0x0;if(0x1==_0x3ad0ec['length']&&(_0x87202f['start']['isEqual'](_0x19d8d['end'])||_0x87202f['end']['isEqual'](_0x19d8d['start'])))return!0x0;}if(0x3==_0x2ed07c&&0x3==_0x2bbee2&&_0x87202f['start']['isBefore'](_0x19d8d['start'])){const _0x2d02a8=_0x87202f['end']['nodeAfter'],_0x2ec4f5=_0x19d8d['start']['nodeBefore'];return _0x1b8596['isBlockImage'](_0x2d02a8)&&_0x2d02a8===_0x2ec4f5;}return!0x1;}_0x473101['model']['document']['registerPostFixer'](()=>{let _0x2f1900=!0x1;const _0xb2f7c6=Array['from'](_0x473101['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a7183,data:_0x3d814e}of _0xb2f7c6){const {group:_0x5946ff,type:_0x2d5123,subType:_0x34305d,id:_0x5e4463}=_0x759f7e['_splitMarkerName'](_0x2a7183);if('suggestion'==_0x5946ff&&_0x759f7e['hasSuggestion'](_0x5e4463)){if('formatBlock'==_0x2d5123&&('imageStylePreApply'==_0x34305d||'imageStylePostApply'==_0x34305d)){const _0x1630c9=_0x759f7e['getSuggestion'](_0x5e4463);if(_0x3d814e['newRange']){const _0x3cc882=_0x1630c9['getFirstRange']()['getContainedElement']();if(_0x1b8596['isBlockImage'](_0x3cc882))continue;_0x759f7e['discardSuggestion'](_0x1630c9),_0x2f1900=!0x0;}}if('insertion'==_0x2d5123&&'imageCaption'==_0x34305d&&!_0x3d814e['newRange']){const _0x12ce0e=_0x759f7e['getSuggestion'](_0x5e4463);_0x12ce0e['next']&&_0x12ce0e['next']['isInContent']&&(_0x759f7e['discardSuggestion'](_0x12ce0e['next']),_0x2f1900=!0x0);}}}return _0x2f1900;}),this['_registerLegacyDescription'](_0x253c86);}['_registerLegacyDescription'](_0x3bf0c7){const _0x20451e=this['editor'],_0x1b6bcd=_0x20451e['locale'];_0x20451e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1280fe=>{if('formatBlock'!=_0x1280fe['type']&&'formatInline'!=_0x1280fe['type'])return;const {data:_0x2e0527}=_0x1280fe;if(!_0x2e0527||'imageStyle'!=_0x2e0527['commandName'])return;const _0x5335b6=_0x2e0527['commandParams'][0x0]['value'];return _0x492576('side'===_0x5335b6?o(_0x1b6bcd,'FORMAT_SIDE_IMAGE'):_0x3bf0c7[_0x5335b6]||_0x5335b6);function _0x492576(_0x89d390){return{'type':'format','content':o(_0x1b6bcd,'*Format:*\x20%0',_0x89d390)};}});}}class at extends _0x28b250{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3bbe81){super(_0x3bbe81),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3b9d30=this['editor'],_0x9b254=_0x3b9d30['commands']['get']('importWord'),_0x1c0ccd=_0x3b9d30['commands']['get']('trackChanges');_0x9b254&&(_0x9b254['on']('execute',(_0x5c6c85,[,_0x10536a])=>{this['_trackChangesValueDuringImport']=_0x1c0ccd['value'],_0x10536a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x9b254,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x9b254,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1c0ccd['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3b9d30['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3dbd7d,_0x567a4f){const {suggestions:_0x17da43}=_0x567a4f,_0x5a4b6c=this['editor']['commands']['get']('trackChanges'),_0x58068d=_0x5a4b6c['value'];this['_trackChangesValueDuringImport']!==_0x58068d&&(_0x5a4b6c['execute'](),this['_trackChangesExecuted']=!0x0),_0x17da43&&_0x17da43['forEach'](({id:_0x3bc8dd,type:_0xae69e1,author:_0x18352d,created_at:_0x20f550})=>{const _0x2f16bd={'id':_0x3bc8dd,'type':_0xae69e1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x18352d,'createdAt':_0x20f550?new Date(_0x20f550):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2f16bd);});}}class ct extends _0x28b250{['afterInit'](){const _0x2518fb=this['editor'],_0x2e6680=_0x2518fb['plugins']['get']('TrackChangesEditing');if(_0x2518fb['plugins']['has']('IndentEditing')&&(_0x2e6680['enableCommand']('indent'),_0x2e6680['enableCommand']('outdent')),_0x2518fb['plugins']['has']('IndentBlock')){for(const _0x1f1142 of['indentBlock','outdentBlock'])_0x2e6680['enableDefaultAttributesIntegration'](_0x1f1142);}const _0x419597=_0x2518fb['locale'];_0x2e6680['registerBlockAttribute']('blockIndent'),_0x2e6680['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x419597,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39716d=this['editor'],_0x4fccb0=_0x39716d['locale'],_0x3bdeef=_0x39716d['plugins']['get']('TrackChangesEditing');_0x3bdeef['descriptionFactory']['registerDescriptionCallback'](_0x221166=>{if('formatBlock'!=_0x221166['type'])return;const {data:_0x45fa20}=_0x221166;if(!_0x45fa20)return;if('indentBlock'!=_0x45fa20['commandName']&&'outdentBlock'!=_0x45fa20['commandName'])return;const _0x5d0949=_0x221166['getItems']()[0x0],_0x563bcb=_0x3bdeef['descriptionFactory']['getItemLabel'](_0x5d0949);return'indentBlock'==_0x45fa20['commandName']?{'type':'format','content':o(_0x4fccb0,'*Indent:*\x20%0',_0x563bcb)}:'outdentBlock'==_0x45fa20['commandName']?{'type':'format','content':o(_0x4fccb0,'*Outdent:*\x20%0',_0x563bcb)}:void 0x0;});}}class ut extends _0x28b250{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ft extends _0x28b250{['afterInit'](){const _0x4e0b9c=this['editor'];if(!_0x4e0b9c['plugins']['has']('LinkEditing'))return;const _0x4d3fe6=_0x4e0b9c['plugins']['get']('TrackChangesEditing'),_0x3ca90f=_0x4e0b9c['commands']['get']('link');_0x4d3fe6['enableDefaultAttributesIntegration']('link'),_0x4d3fe6['enableDefaultAttributesIntegration']('unlink'),_0x4d3fe6['registerInlineAttribute']('linkHref');for(const _0x2a7799 of _0x3ca90f['manualDecorators'])_0x4d3fe6['registerInlineAttribute'](_0x2a7799['id']),_0x4d3fe6['descriptionFactory']['registerAttributeLabel'](_0x2a7799['id'],'link\x20('+_0x2a7799['label']['toLowerCase']()+')');_0x4d3fe6['descriptionFactory']['registerDescriptionCallback'](_0x5e6cf5=>{if('attribute'!=_0x5e6cf5['type'])return;const {data:_0x43b060}=_0x5e6cf5;if(!_0x43b060||'linkHref'!=_0x43b060['key'])return;const _0x131071=_0x43b060['newValue'],_0x3b80e9=_0x4e0b9c['locale'];return{'type':'format','content':null==_0x131071?o(_0x3b80e9,'*Remove\x20link*'):o(_0x3b80e9,'*Set\x20link:*\x20%0','\x22'+_0x131071+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x276046=this['editor'],_0x2bab53=_0x276046['locale'];_0x276046['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203f7b=>{if('formatInline'!=_0x203f7b['type'])return;const {data:_0x976251}=_0x203f7b;if(_0x976251){if('link'==_0x976251['commandName']){const _0x3e8a4e=_0x976251['commandParams'][0x0];return{'type':'format','content':o(_0x2bab53,'*Set\x20link:*\x20%0','\x22'+_0x3e8a4e+'\x22')};}return'unlink'==_0x976251['commandName']?{'type':'format','content':o(_0x2bab53,'*Remove\x20link*')}:void 0x0;}});}}class ht extends _0x28b250{['afterInit'](){const _0x552677=this['editor'],_0x47766b=_0x552677['locale'];if(!_0x552677['plugins']['has']('LegacyListEditing'))return;const _0x25af9e=_0x552677['plugins']['get']('TrackChangesEditing'),_0x37ece9=_0x552677['plugins']['has']('LegacyTodoListEditing');function _0x4df840(_0x4f945e){return()=>{const _0xf0b40b=_0x552677['model']['document']['selection'],_0x3198a0=_0x552677['commands']['get'](_0x4f945e);if(_0x3198a0['value'])return void _0x552677['execute']('paragraph',{});const _0x26c466=_0x4f945e['slice'](0x0,-0x4),_0x2bb33b=function(_0x1b8f65,_0x406ea6,_0x4e0a9f){let _0x3c9b71=Array['from'](_0x1b8f65)['filter'](_0x9df6d=>function(_0x33c216,_0x3ab4b3){return _0x3ab4b3['checkChild'](_0x33c216['parent'],'listItem')&&!_0x3ab4b3['isObject'](_0x33c216);}(_0x9df6d,_0x4e0a9f));_0x3c9b71=_0x3c9b71['filter'](_0x2024a6=>!_0x2024a6['is']('element','listItem')||_0x2024a6['getAttribute']('listType')!=_0x406ea6);const _0x7f9e35=new Set();for(const _0x1a91d7 of _0x3c9b71)_0x1a91d7['is']('element','listItem')?_0x7f9e35['add'](Le(_0x1a91d7)):_0x7f9e35['add'](_0x1a91d7);return Array['from'](_0x7f9e35);}(_0xf0b40b['getSelectedBlocks'](),_0x26c466,_0x552677['model']['schema']);_0x552677['model']['change'](()=>{for(const _0x5a99fb of _0x2bb33b)_0x25af9e['markBlockFormat'](_0x5a99fb,{'commandName':_0x4f945e,'commandParams':[{'forceValue':!_0x3198a0['value']}],'formatGroupId':'blockName'},Ee(_0x5a99fb));});};}function _0x5d1cd6(_0x468e52){return()=>{const _0x1f1937=function(_0x37f3b9){let _0x3cebfd=Array['from'](_0x37f3b9);const _0x3180f2=_0x3cebfd['findIndex'](_0x6776d9=>'listItem'!=_0x6776d9['name']);return _0x3180f2>-0x1&&(_0x3cebfd=_0x3cebfd['slice'](0x0,_0x3180f2)),_0x3cebfd;}(_0x552677['model']['document']['selection']['getSelectedBlocks']()),_0x3abfa6=_0x552677['model']['createRange'](_0x552677['model']['createPositionAt'](_0x1f1937[0x0],'before'),_0x552677['model']['createPositionAt'](_0x1f1937[_0x1f1937['length']-0x1],'end'));_0x552677['model']['change'](()=>{_0x25af9e['markBlockFormat'](_0x3abfa6,{'commandName':_0x468e52,'commandParams':[],'formatGroupId':'listIndent'},function(_0x470d80){const _0x172e29=new Set();for(const _0x5c889e of _0x470d80){let _0x46a8e5=_0x5c889e['nextSibling'];for(;_0x46a8e5&&_0x46a8e5['getAttribute']('listIndent')>_0x5c889e['getAttribute']('listIndent');)_0x172e29['add'](_0x46a8e5),_0x46a8e5=_0x46a8e5['nextSibling'];}return Array['from'](_0x172e29);}(_0x1f1937));});};}_0x25af9e['enableCommand']('numberedList',_0x4df840('numberedList')),_0x25af9e['enableCommand']('bulletedList',_0x4df840('bulletedList')),_0x37ece9&&_0x25af9e['enableCommand']('todoList',_0x4df840('todoList')),_0x25af9e['enableCommand']('indentList',_0x5d1cd6('indentList')),_0x25af9e['enableCommand']('outdentList',_0x5d1cd6('outdentList')),_0x37ece9&&_0x25af9e['enableCommand']('checkTodoList',()=>{const _0xdd6aad=_0x552677['commands']['get']('checkTodoList'),_0x40abb7=Array['from'](_0xdd6aad['_selectedElements']);_0x40abb7['filter'](_0x256ed9=>_0x256ed9['getAttribute']('todoListChecked')!=_0xdd6aad['value']),_0x552677['model']['change'](()=>{for(const _0x5d09e7 of _0x40abb7)_0x25af9e['markBlockFormat'](_0x5d09e7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xdd6aad['value']}]});});}),_0x25af9e['descriptionFactory']['registerElementLabel']('listItem',_0x555fbd=>o(_0x47766b,'ELEMENT_LIST_ITEM',_0x555fbd)),_0x25af9e['descriptionFactory']['registerDescriptionCallback'](_0x4029cc=>{if('formatBlock'!=_0x4029cc['type']&&'formatInline'!=_0x4029cc['type'])return;const {data:_0x58954e}=_0x4029cc;if(_0x58954e){if('numberedList'==_0x58954e['commandName']||'bulletedList'==_0x58954e['commandName']||'todoList'==_0x58954e['commandName'])switch(_0x58954e['commandName']['replace']('List','')){case'bulleted':return _0x598db1(o(_0x47766b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x598db1(o(_0x47766b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x598db1(o(_0x47766b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x58954e['commandName'])return{'type':'format','content':o(_0x47766b,'*Indent:*\x20%0',o(_0x47766b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x58954e['commandName'])return{'type':'format','content':o(_0x47766b,'*Outdent:*\x20%0',o(_0x47766b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x58954e['commandName'])return _0x58954e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47766b,'*Check\x20item*')}:{'type':'format','content':o(_0x47766b,'*Uncheck\x20item*')};}function _0x598db1(_0x50931c){return{'type':'format','content':o(_0x47766b,'*Change\x20to:*\x20%0',_0x50931c)};}});}}function Le(_0x1a4365){const _0x1bd777=_0x1a4365['getAttribute']('listIndent');if(0x0==_0x1bd777)return _0x1a4365;let _0x109875=_0x1a4365;for(;_0x1a4365['previousSibling']&&_0x1a4365['previousSibling']['is']('element','listItem');){const _0x9a574e=_0x1a4365['previousSibling']['getAttribute']('listIndent');if(_0x9a574e==_0x1bd777)_0x109875=_0x1a4365['previousSibling'];else{if(_0x9a574e<_0x1bd777)break;}_0x1a4365=_0x1a4365['previousSibling'];}return _0x109875;}function Ee(_0x48b1b6){const _0x424acf=[];if(_0x48b1b6['is']('element','listItem')&&_0x48b1b6['getAttribute']('listIndent')>0x0){let _0x24f02b=_0x48b1b6['nextSibling'];for(;_0x24f02b&&'listItem'==_0x24f02b['name']&&_0x24f02b['getAttribute']('listIndent')==_0x48b1b6['getAttribute']('listIndent');)_0x424acf['push'](_0x24f02b),_0x24f02b=_0x24f02b['nextSibling'];}return _0x424acf;}class gt extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x981be4=this['editor']['config']['get']('list.properties'),_0x1017b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x981be4['styles']&&_0x1017b8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x981be4['reversed']&&_0x1017b8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x981be4['startIndex']&&_0x1017b8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1017b8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x131727,_0x30099e={}){const _0x1e18c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb41226=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e18c4['markMultiRangeBlockFormat'](_0xb41226,{'commandName':'listStyle','commandParams':[{'type':_0x30099e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38fc66,_0x17c60d={}){const _0x2cc512=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28a624=this['_getSuggestionBlocks'](_0x23e525=>_0x23e525['is']('element','listItem')&&'numbered'===_0x23e525['getAttribute']('listType'));if(_0x28a624['length']<0x1)return;const _0x2ff5b9=_0x28a624['map'](_0x4c53e7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c53e7,'before'),this['editor']['model']['createPositionAt'](_0x4c53e7,0x0)));this['editor']['model']['change'](()=>{_0x2cc512['markMultiRangeBlockFormat'](_0x2ff5b9,{'commandName':'listReversed','commandParams':[{'reversed':_0x17c60d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5cfaaf,_0x20baa1={}){const _0x274be9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4853ea=this['_getSuggestionBlocks'](_0x1be80e=>_0x1be80e['is']('element','listItem')&&'numbered'===_0x1be80e['getAttribute']('listType'));if(_0x4853ea['length']<0x1)return;const _0x1e1422=_0x4853ea['map'](_0x26d0ae=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26d0ae,'before'),this['editor']['model']['createPositionAt'](_0x26d0ae,0x0)));this['editor']['model']['change'](()=>{_0x274be9['markMultiRangeBlockFormat'](_0x1e1422,{'commandName':'listStart','commandParams':[{'startIndex':_0x20baa1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x309282){if('formatBlock'!=_0x309282['type']&&'formatInline'!=_0x309282['type'])return;const _0x349e79=this['editor']['locale'],{data:_0x41265b}=_0x309282;if(!_0x41265b)return;let _0xb47a75,_0x1aac1e;switch(_0x41265b['commandName']){case'listStyle':_0xb47a75='*Change\x20to:*\x20%0',_0x1aac1e={'type':'format','content':o(_0x349e79,_0xb47a75,o(_0x349e79,this['_getTranslationKeyForListStyle'](_0x41265b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb47a75=_0x41265b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1aac1e={'type':'format','content':o(_0x349e79,_0xb47a75)};break;case'listStart':_0xb47a75='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1aac1e={'type':'format','content':o(_0x349e79,_0xb47a75,_0x41265b['commandParams'][0x0]['startIndex'])};}return _0x1aac1e;}['_getSuggestionBlocksForListStyle'](){const _0x1acb9b=this['editor']['plugins']['get']('LegacyListUtils');let _0x155c10=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x155c10[0x0]?.['is']('element','listItem')&&_0x155c10['unshift'](..._0x1acb9b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x155c10[_0x155c10['length']-0x1]?.['is']('element','listItem')&&_0x155c10['push'](..._0x1acb9b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x155c10=[...new Set(_0x155c10)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x155c10=_0x155c10['filter'](_0x33b8e6=>_0x33b8e6['is']('element','listItem'))),_0x155c10;}['_getSuggestionBlocks'](_0x29a594){const _0xd4d36=this['editor']['plugins']['get']('LegacyListUtils');let _0x4acb50=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x29a594)['map'](_0x502eab=>{const _0xc0bbae=this['editor']['model']['createPositionAt'](_0x502eab,0x0);return[..._0xd4d36['getSiblingNodes'](_0xc0bbae,'backward'),..._0xd4d36['getSiblingNodes'](_0xc0bbae,'forward')];})['flat']();return _0x4acb50=[...new Set(_0x4acb50)],_0x4acb50;}['_getTranslationKeyForListStyle'](_0x582c1e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x582c1e)||'default')['toUpperCase']()+'_LIST_'+_0x582c1e['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x28b250{['afterInit'](){const _0xaaa6b6=this['editor'];if(!_0xaaa6b6['plugins']['has']('MediaEmbedEditing'))return;const _0x391df4=_0xaaa6b6['plugins']['get']('TrackChangesEditing'),_0xe1f974=_0xaaa6b6['locale'];_0x391df4['enableCommand']('mediaEmbed'),_0x391df4['descriptionFactory']['registerElementLabel']('media',_0x525633=>o(_0xe1f974,'ELEMENT_MEDIA',_0x525633)),_0xaaa6b6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x8d4d0c,{writer:_0x5c2df8,options:_0x577c7f})=>{if(_0x577c7f['showSuggestionHighlights'])return _0x5c2df8['createEmptyElement']('div');},'converterPriority':'high'}),_0xaaa6b6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3cc081,_0x312808,_0x4bfdfb)=>{_0x4bfdfb['options']['showSuggestionHighlights']&&_0x3cc081['stop']();},{'priority':'high'});}}class dt extends _0x28b250{['afterInit'](){const _0x1063c5=this['editor'];_0x1063c5['plugins']['has']('MentionEditing')&&_0x1063c5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class mt extends _0x28b250{['afterInit'](){const _0x5c9032=this['editor'];if(!_0x5c9032['plugins']['has']('MergeFieldsEditing'))return;const _0x66d5a8=_0x5c9032['plugins']['get']('TrackChangesEditing'),_0xff0efc=_0x5c9032['locale'];_0x66d5a8['enableCommand']('insertMergeField'),_0x66d5a8['enableCommand']('insertMergeFieldBlock'),_0x66d5a8['enableCommand']('insertMergeFieldImage'),_0x66d5a8['descriptionFactory']['registerElementLabel']('mergeField',_0xe9312a=>o(_0xff0efc,'ELEMENT_MERGE_FIELD',_0xe9312a)),_0x66d5a8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x303b4e=>o(_0xff0efc,'ELEMENT_MERGE_FIELD',_0x303b4e)),_0x66d5a8['descriptionFactory']['registerDescriptionCallback'](_0x2ee1bc=>{if('insertion'!=_0x2ee1bc['type']&&'deletion'!=_0x2ee1bc['type'])return;const _0x5cf787=_0x2ee1bc['getContainedElement']();if(null==_0x5cf787)return;const _0x161cc9=_0x5c9032['plugins']['get']('MergeFieldsEditing');let _0x4a4e77;switch(_0x161cc9['getMergeFieldType'](_0x5cf787)){case null:return;case'image':{const _0x147235=_0x161cc9['unwrapAffixes'](_0x5cf787['getAttribute']('src'));_0x4a4e77=_0x161cc9['getLabel'](_0x147235)||_0x147235;break;}default:{const _0x1932e7=_0x5cf787['getAttribute']('id');_0x4a4e77=_0x161cc9['getLabel'](_0x1932e7)||_0x1932e7;break;}}return'insertion'==_0x2ee1bc['type']?{'type':'insertion','content':o(_0xff0efc,'*Insert:*\x20%0','\x22'+_0x4a4e77+'\x22\x20'+o(_0xff0efc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xff0efc,'*Remove:*\x20%0','\x22'+_0x4a4e77+'\x22\x20'+o(_0xff0efc,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x28b250{['afterInit'](){const _0x2c2c40=this['editor'],_0xab3db6=_0x2c2c40['plugins']['get']('TrackChangesEditing');_0x2c2c40['plugins']['has']('MultiLevelList')&&(_0xab3db6['enableDefaultAttributesIntegration']('multiLevelList'),_0xab3db6['registerBlockAttribute']('listMarkerStyle'),_0xab3db6['descriptionFactory']['registerDescriptionCallback'](_0x400e4a=>this['handleDescriptions'](_0x400e4a)));}['handleDescriptions'](_0x4d424b){const _0x559b12=this['editor']['locale'],{data:_0xc3211b}=_0x4d424b,_0x398cfa={'type':'format','content':''};if(_0xc3211b&&'listMarkerStyle'==_0xc3211b['key']){if(!_0xc3211b['oldValue'])return{'type':'format','content':o(_0x559b12,'*Set\x20format:*\x20%0',o(_0x559b12,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc3211b['newValue']+')'};if(!_0xc3211b['newValue']){let _0x14c7ef=_0x4d424b['head'];for(;_0x14c7ef;){if(_0x14c7ef['data']&&'listType'==_0x14c7ef['data']['key']&&_0x14c7ef['data']['newValue'])return _0x398cfa;_0x14c7ef=_0x14c7ef['next'];}return{'type':'format','content':o(_0x559b12,'*Remove\x20format:*\x20%0',o(_0x559b12,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc3211b['oldValue']+')'};}}}}class kt extends _0x28b250{['afterInit'](){const _0x30d9be=this['editor'];if(!_0x30d9be['plugins']['has']('PageBreakEditing'))return;_0x30d9be['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1dde8b=_0x30d9be['plugins']['get']('TrackChangesEditing'),_0x3b0ad4=_0x30d9be['locale'];_0x1dde8b['descriptionFactory']['registerElementLabel']('pageBreak',_0x51fe37=>o(_0x3b0ad4,'ELEMENT_PAGE_BREAK',_0x51fe37));}}class wt extends _0x28b250{['afterInit'](){const _0x18143b=this['editor'];if(!_0x18143b['plugins']['has']('Paragraph'))return;const _0x4b6a46=_0x18143b['locale'],_0x2cdbd6=_0x18143b['plugins']['get']('TrackChangesEditing');_0x2cdbd6['descriptionFactory']['registerElementLabel']('paragraph',_0x3c9c34=>o(_0x4b6a46,'ELEMENT_PARAGRAPH',_0x3c9c34)),_0x2cdbd6['enableDefaultAttributesIntegration']('paragraph'),_0x2cdbd6['enableCommand']('insertParagraph'),_0x18143b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x18143b),{'priority':'highest'}),_0x18143b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xcdf140,_0x13b969,_0x54ff21)=>{_0x54ff21['options']['showSuggestionHighlights']&&nr(_0x18143b,{'showActiveMarker':!0x1})(_0xcdf140,_0x13b969,_0x54ff21);},{'priority':'highest'});const _0x2e473d=_0x2cdbd6['descriptionFactory'];_0x2e473d['registerDescriptionCallback'](_0x2c3f35=>{if('insertion'!==_0x2c3f35['type'])return;const {start:_0x1195eb,end:_0x3cfe6e}=_0x2c3f35['getFirstRange']();if(!_0x1195eb['isTouching'](_0x3cfe6e)||!_0x1195eb['nodeAfter'])return;const _0x5045d5=_0x18143b['model']['schema'],_0x38f8f2=_0x1195eb['nodeAfter'];return _0x5045d5['isBlock'](_0x38f8f2)&&!_0x5045d5['isLimit'](_0x38f8f2)&&_0x5045d5['checkChild'](_0x38f8f2,'$text')?{'type':'insertion','content':o(_0x4b6a46,'*Insert:*\x20%0',_0x2e473d['getItemLabel'](_0x38f8f2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x74ea76=this['editor'],_0x4084d1=_0x74ea76['locale'];_0x74ea76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30748d=>{if('formatBlock'!=_0x30748d['type'])return;const {data:_0x3c260e}=_0x30748d;return _0x3c260e&&'paragraph'==_0x3c260e['commandName']?{'type':'format','content':o(_0x4084d1,'*Change\x20to:*\x20%0',o(_0x4084d1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5e1c60,{showActiveMarker:_0x1e17f1=!0x0}={}){return(_0x1dddbd,_0x56f1c1,_0x1ea162)=>{const _0x39a759=_0x5e1c60['plugins']['get']('TrackChangesEditing'),_0x26c47f=_0x56f1c1['markerRange']['start'],_0x45820f=_0x56f1c1['markerRange']['end'],_0x114c3f=_0x5e1c60['model']['schema'];if(!_0x26c47f['isTouching'](_0x45820f)||!_0x26c47f['nodeAfter'])return;const _0xf2362b=_0x26c47f['nodeAfter'];if(_0x114c3f['isBlock'](_0xf2362b)&&!_0x114c3f['isLimit'](_0xf2362b)&&_0x114c3f['checkChild'](_0xf2362b,'$text')){if(!_0x1ea162['consumable']['consume'](_0x56f1c1['markerRange'],_0x1dddbd['name']))return;const {id:_0x4d0a7d,authorId:_0x50afbd}=_0x39a759['_splitMarkerName'](_0x56f1c1['markerName']),_0x7d8785=_0x1ea162['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4d0a7d,'data-author-id':_0x50afbd}),_0x1f9d02=_0x1ea162['mapper']['toViewPosition'](_0x45820f);_0x1e17f1&&_0x39a759['activeMarkers']['includes'](_0x56f1c1['markerName'])&&_0x1ea162['writer']['addClass']('ck-suggestion-marker--active',_0x7d8785),_0x1ea162['writer']['insert'](_0x1f9d02,_0x7d8785),_0x1ea162['mapper']['bindElementToMarker'](_0x7d8785,_0x56f1c1['markerName']);}};}class bt extends _0x28b250{['afterInit'](){const _0x216a42=this['editor'];_0x216a42['commands']['get']('replaceSource')&&_0x216a42['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class yt extends _0x28b250{['afterInit'](){const _0x344e3c=this['editor'];if(!_0x344e3c['plugins']['has']('RemoveFormatEditing'))return;_0x344e3c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1966a5=this['editor'];_0x1966a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504e78=>{if('formatBlock'!=_0x504e78['type']&&'formatInline'!=_0x504e78['type'])return;const {data:_0x192cc5}=_0x504e78;return _0x192cc5&&'removeFormat'==_0x192cc5['commandName']?{'type':'format','content':o(_0x1966a5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x28b250{['afterInit'](){const _0x597d2a=this['editor'];if(!_0x597d2a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5b54f4=_0x597d2a['plugins']['get']('TrackChangesEditing');_0x5b54f4['enableCommand']('goToPreviousRestrictedEditingException'),_0x5b54f4['enableCommand']('goToNextRestrictedEditingException');const _0x34f250=_0x597d2a['plugins']['get']('RestrictedEditingModeEditing');_0x34f250['enableCommand']('trackChanges'),_0x34f250['enableCommand']('acceptSuggestion'),_0x34f250['enableCommand']('discardSuggestion'),_0x34f250['enableCommand']('acceptAllSuggestions'),_0x34f250['enableCommand']('discardAllSuggestions'),_0x34f250['enableCommand']('acceptSelectedSuggestions'),_0x34f250['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x28b250{['afterInit'](){const _0x3100f8=this['editor'];if(!_0x3100f8['plugins']['has']('ShiftEnter'))return;const _0x223b70=_0x3100f8['plugins']['get']('TrackChangesEditing');_0x223b70['enableCommand']('shiftEnter'),_0x3100f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3100f8),{'priority':'high'}),_0x3100f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3100f8),{'priority':'high'}),_0x3100f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9240f4,_0x48f82c,_0x4f4486)=>{_0x4f4486['options']['showSuggestionHighlights']&&je(_0x3100f8,{'showActiveMarker':!0x1})(_0x9240f4,_0x48f82c,_0x4f4486);}),_0x223b70['descriptionFactory']['registerElementLabel']('softBreak',_0xa9e4ae=>o(_0x3100f8['locale'],'ELEMENT_LINE_BREAK',_0xa9e4ae));}}function je(_0x1bcc7c,{showActiveMarker:_0x39ff01=!0x0}={}){return(_0x187dc1,_0x451538,_0x1989bd)=>{const _0x2d8c83=_0x1bcc7c['plugins']['get']('TrackChangesEditing');if(!_0x1989bd['consumable']['test'](_0x451538['markerRange'],_0x187dc1['name']))return;const _0x1feb7c=_0x1bcc7c['model'];for(const _0x36936b of _0x451538['markerRange']['getItems']()){if(!_0x36936b['is']('element','softBreak'))continue;const _0x562250='deletion'==_0x451538['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2fd6fc,authorId:_0x1bfe05}=_0x2d8c83['_splitMarkerName'](_0x451538['markerName']),_0x3cf13f=_0x1989bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x562250,'data-suggestion':_0x2fd6fc,'data-author-id':_0x1bfe05}),_0x3b533c=_0x1989bd['mapper']['toViewPosition'](_0x1feb7c['createPositionBefore'](_0x36936b));_0x39ff01&&_0x2d8c83['activeMarkers']['includes'](_0x451538['markerName'])&&_0x1989bd['writer']['addClass']('ck-suggestion-marker--active',_0x3cf13f),_0x1989bd['writer']['insert'](_0x3b533c,_0x3cf13f),_0x1989bd['mapper']['bindElementToMarker'](_0x3cf13f,_0x451538['markerName']);}};}class It extends _0x28b250{['afterInit'](){const _0x305571=this['editor'],_0x233c9d=_0x305571['model'],_0x4e0db0=_0x305571['locale'];if(!_0x305571['plugins']['has']('StandardEditingModeEditing'))return;const _0x52c688=_0x305571['plugins']['get']('TrackChangesEditing'),_0x9b6fb4='restrictedEditingException',_0xf2989e=_0x305571['commands']['get'](_0x9b6fb4);_0x52c688['enableCommand'](_0x9b6fb4,(_0x27b667,_0x38a8a3={})=>{const _0x30bf2c=_0x233c9d['document']['selection'];if(_0x30bf2c['isCollapsed'])return void _0x27b667(_0x38a8a3);const _0x3b2de2=void 0x0!==_0x38a8a3['forceValue']?_0x38a8a3['forceValue']:!_0xf2989e['value'];_0x233c9d['change'](()=>{const _0x4b4aee=Array['from'](_0x30bf2c['getRanges']());for(const _0x1d5a1e of _0x4b4aee){const _0x437c6e=_0x3b2de2?[_0x1d5a1e]:io(_0x9b6fb4,_0x1d5a1e,_0x233c9d);for(const _0x20e424 of _0x437c6e)_0x52c688['markInlineFormat'](_0x20e424,{'commandName':_0x9b6fb4,'commandParams':[{'forceValue':_0x3b2de2}]});}});}),_0x52c688['descriptionFactory']['registerDescriptionCallback'](_0x18aafc=>{if('formatBlock'!=_0x18aafc['type']&&'formatInline'!=_0x18aafc['type'])return;const {data:_0x260731}=_0x18aafc;return _0x260731&&_0x260731['commandName']==_0x9b6fb4?_0x260731['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e0db0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4e0db0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x28b250{['afterInit'](){const _0x36b9d3=this['editor'];if(!_0x36b9d3['plugins']['has']('Style')||!_0x36b9d3['plugins']['has']('DataSchema'))return;const _0x3de6d1=_0x36b9d3['plugins']['get']('TrackChangesEditing'),_0x590bf5=_0x36b9d3['locale'],_0x286bc0=_0x36b9d3['config']['get']('style')||{},_0x1eb466=_0x36b9d3['plugins']['get']('GeneralHtmlSupport'),_0x39d6c4=_0x36b9d3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x36b9d3['plugins']['get']('DataSchema'),_0x286bc0['definitions']);_0x3de6d1['enableDefaultAttributesIntegration']('style');const _0x305e39=new Set();for(const _0x32c757 of _0x39d6c4['block']){const _0xfd34ab=_0x1eb466['getGhsAttributeNameForElement'](_0x32c757['element']);_0x305e39['add'](_0xfd34ab);}const _0x1ad16c=new Set();for(const _0x46fe50 of _0x39d6c4['inline']){const _0x36b84f=_0x1eb466['getGhsAttributeNameForElement'](_0x46fe50['element']);_0x1ad16c['add'](_0x36b84f);for(const _0x52df80 of _0x46fe50['ghsAttributes'])_0x1ad16c['add'](_0x52df80);}for(const _0xefc101 of _0x305e39)_0x3de6d1['registerBlockAttribute'](_0xefc101),_0x3de6d1['descriptionFactory']['registerAttributeLabel'](_0xefc101,o(_0x590bf5,'FORMAT_STYLE'));for(const _0x35aa82 of _0x1ad16c)_0x3de6d1['registerInlineAttribute'](_0x35aa82),_0x3de6d1['descriptionFactory']['registerAttributeLabel'](_0x35aa82,o(_0x590bf5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e9f3b=this['editor'],_0x5c63b5=_0x4e9f3b['locale'];_0x4e9f3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e8601=>{if('formatBlock'!=_0x3e8601['type']&&'formatInline'!=_0x3e8601['type'])return;const {data:_0xf58859}=_0x3e8601;return _0xf58859&&'style'===_0xf58859['commandName']?_0xf58859['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c63b5,'*Set\x20format:*\x20%0',_0xf58859['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5c63b5,'*Remove\x20format:*\x20%0',_0xf58859['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x28b250{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b7e75){super(_0x4b7e75),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3f8d5b=this['editor'],_0x500155=_0x3f8d5b['model']['document']['selection'];if(!_0x3f8d5b['plugins']['has']('TableEditing'))return;const _0x2bee76=_0x3f8d5b['locale'],_0x40e363=_0x3f8d5b['plugins']['get']('TrackChangesEditing'),_0x5c661f=_0x3f8d5b['plugins']['get']('TableUtils');_0x40e363['descriptionFactory']['registerElementLabel']('table',_0x319927=>o(_0x2bee76,'ELEMENT_TABLE',_0x319927)),this['_setupColumnsRowsFixing'](),_0x40e363['enableCommand']('insertTable'),_0x40e363['enableCommand']('selectTableRow'),_0x40e363['enableCommand']('selectTableColumn');for(const _0x38186a of['insertTableRowAbove','insertTableRowBelow']){const _0x488416=_0x3f8d5b['commands']['get'](_0x38186a);_0x40e363['enableCommand'](_0x38186a,_0x9d5723=>{_0x3f8d5b['model']['change'](_0x5936ab=>{_0x9d5723();const _0x4ec13b='above'===_0x488416['order'],_0xab4d71=_0x5c661f['getSelectionAffectedTableCells'](_0x500155),_0x5e49eb=_0x5c661f['getRowIndexes'](_0xab4d71),_0x562da3=_0x4ec13b?_0x5e49eb['first']-0x1:_0x5e49eb['last']+0x1,_0x55b8dc=_0xab4d71[0x0]['findAncestor']('table'),_0x3fe33a=_0x5c661f['createTableWalker'](_0x55b8dc,{'startRow':_0x562da3,'endRow':_0x562da3}),_0x346532=Array['from'](_0x3fe33a)['map'](_0x255c32=>_0x5936ab['createRangeOn'](_0x255c32['cell']));_0x40e363['markMultiRangeInsertion'](_0x346532,'tableRow');});});}for(const _0x213470 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4fa693=_0x3f8d5b['commands']['get'](_0x213470);_0x40e363['enableCommand'](_0x213470,_0x33ff28=>{_0x3f8d5b['model']['change'](_0x47d5fa=>{_0x33ff28();const _0x4b2fc2='left'===_0x4fa693['order'],_0xd00473=_0x5c661f['getSelectionAffectedTableCells'](_0x500155),_0x2b1219=_0x5c661f['getColumnIndexes'](_0xd00473),_0x403748=_0x4b2fc2?_0x2b1219['first']-0x1:_0x2b1219['last']+0x1,_0x55bf8f=_0xd00473[0x0]['findAncestor']('table'),_0x256d45=_0x5c661f['createTableWalker'](_0x55bf8f,{'startRow':0x0,'column':_0x403748,'includeAllSlots':!0x1}),_0xae357d=Array['from'](_0x256d45)['map'](_0x5dd0d4=>_0x47d5fa['createRangeOn'](_0x5dd0d4['cell']));_0x40e363['markMultiRangeInsertion'](_0xae357d,'tableColumn');});});}for(const _0x587235 of['removeTableRow','removeTableColumn']){const _0x54916a=_0x587235['substr'](0xb),_0x4d8a40=_0x54916a['toLowerCase'](),_0x42c43e=_0x4d8a40['substr'](0x0,0x3)+'span',_0x3eaadb='table'+_0x54916a,_0x4858ca='min'+_0x54916a,_0x4b2e6b='max'+_0x54916a;_0x40e363['enableCommand'](_0x587235,()=>{_0x3f8d5b['model']['change'](_0x127d7f=>{const _0x5d450f=_0x5c661f['getSelectionAffectedTableCells'](_0x500155),_0x5b93e8=_0x5d450f[0x0]['findAncestor']('table');let _0x371b1c;if('removeTableRow'==_0x587235){const _0x132ba4=_0x5c661f['getRowIndexes'](_0x5d450f);_0x371b1c={'startRow':_0x132ba4['first'],'endRow':_0x132ba4['last'],'includeAllSlots':!0x0};}else{const _0x4521a3=_0x5c661f['getColumnIndexes'](_0x5d450f);_0x371b1c={'startColumn':_0x4521a3['first'],'endColumn':_0x4521a3['last'],'includeAllSlots':!0x0};}const _0x414e54=_0x5c661f['createTableWalker'](_0x5b93e8,_0x371b1c),_0x104bfe=Array['from'](_0x414e54)['map'](({cell:_0x4d5f92})=>_0x4d5f92),_0x586237=Ne(_0x104bfe['filter'](_0x383af3=>_0x383af3['hasAttribute'](_0x42c43e))),_0x120530=Ne(_0x104bfe['filter'](_0xdbcaa5=>!_0xdbcaa5['hasAttribute'](_0x42c43e)))['map'](_0x502952=>_0x127d7f['createRangeOn'](_0x502952)),_0x2e8575=_0x40e363['markMultiRangeDeletion'](_0x120530,_0x3eaadb);if(_0x2e8575&&('tableRow'==_0x2e8575['subType']||'tableColumn'==_0x2e8575['subType'])){const _0x5c8c9d=this['_getSuggestionCoords'](_0x2e8575);for(const _0x3f75f7 of _0x586237){const _0x156968=_0x127d7f['createRangeOn'](_0x3f75f7),_0x11a0cc=_0x5c661f['getCellLocation'](_0x3f75f7),_0xd51949=_0x3f75f7['getAttribute'](_0x42c43e)-0x1,_0x32d1f0=_0x5c8c9d[_0x4858ca],_0x260afa=_0x5c8c9d[_0x4b2e6b];_0x32d1f0<=_0x11a0cc[_0x4d8a40]&&_0x11a0cc[_0x4d8a40]+_0xd51949<=_0x260afa&&_0x2e8575['addRange'](_0x156968);}}});});}function _0x347770(_0x43b11b){const _0x2c2f84=Array['from'](_0x500155['getRanges']())['map'](_0x54e170=>_0xc2db3f['fromRange'](_0x54e170));_0x3f8d5b['model']['change'](_0x72d225=>{const _0x5ce0c2=_0x72d225['batch'];_0x43b11b=_0x43b11b['filter'](_0x666240=>'$graveyard'!=_0x666240['root']['rootName']),_0x72d225['setSelection'](_0x43b11b),_0x3f8d5b['commands']['get']('removeTableRow')['refresh'](),_0x3f8d5b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3f8d5b['model']['enqueueChange'](()=>{_0x3f8d5b['model']['enqueueChange'](_0x5ce0c2,_0x27b86d=>{const _0x21e7e7=_0x2c2f84['filter'](_0x137fa6=>'$graveyard'!=_0x137fa6['root']['rootName']);_0x21e7e7['length']>0x0&&_0x27b86d['setSelection'](_0x21e7e7);for(const _0x3b90f6 of _0x2c2f84)_0x3b90f6['detach']();});});});}function _0x334299(_0x391d36){_0x3f8d5b['model']['change'](_0x23ed2e=>{const _0x26397a=Array['from'](_0x500155['getRanges']())['map'](_0x25f269=>_0xc2db3f['fromRange'](_0x25f269)),_0xd942e3=[];for(const _0x402af3 of _0x391d36)for(const _0x301adf of _0x402af3['getItems']({'shallow':!0x0}))_0xd942e3['push'](_0x301adf);for(const _0x2862d2 of _0xd942e3)'$graveyard'!=_0x2862d2['root']['rootName']&&(_0x23ed2e['setSelection'](_0x23ed2e['createPositionAt'](_0x2862d2,0x0)),_0x3f8d5b['commands']['get']('removeTableColumn')['refresh'](),_0x3f8d5b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x48950c=_0x26397a['filter'](_0x51cdfc=>'$graveyard'!=_0x51cdfc['root']['rootName']);_0x48950c['length']>0x0&&_0x23ed2e['setSelection'](_0x48950c);for(const _0x439f47 of _0x26397a)_0x439f47['detach']();});}function _0x4e9f53(_0x492105,_0x2cdec3){return _0x2cdec3['every'](_0x18f102=>_0x492105['some'](_0x468628=>_0x468628['end']['isEqual'](_0x18f102['start'])||_0x18f102['end']['isEqual'](_0x468628['start'])));}function _0x3276a2(_0x8055ff,_0x2ce879){return!_0x8055ff['some'](_0x352ae7=>_0x2ce879['some'](_0x329714=>_0x352ae7['isIntersecting'](_0x329714)))&&_0x8055ff['some'](_0x28a1dc=>_0x2ce879['some'](_0x51a73a=>_0x28a1dc['end']['isTouching'](_0x51a73a['start'])));}_0x3f8d5b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2337e3,_0x4c0a4b,_0x4e0b6b)=>{if(!_0x4e0b6b['options']['showSuggestionHighlights'])return;const _0x359a38=_0x4c0a4b['item'];if(!_0x359a38||!_0x359a38['is']('element','tableCell'))return;const _0x15bae3=_0x4e0b6b['mapper']['toViewElement'](_0x359a38);if(_0x15bae3){const {id:_0x2deb77,authorId:_0x589c19}=_0x40e363['_splitMarkerName'](_0x4c0a4b['markerName']);_0x11d210(_0x15bae3,_0x4e0b6b['writer'],(_0x16da4c,_0x498dee,_0x5ec999)=>{_0x5ec999['addClass'](_0x384868(_0x498dee['classes']),_0x16da4c),_0x5ec999['setAttribute']('data-suggestion-id',_0x2deb77,_0x16da4c),_0x5ec999['setAttribute']('data-author-id',_0x589c19,_0x16da4c);},(_0x444714,_0x2d10af,_0x492a41)=>{_0x492a41['removeClass'](_0x384868(_0x2d10af['classes']),_0x444714),_0x492a41['removeAttribute']('data-suggestion-id',_0x444714),_0x492a41['removeAttribute']('data-author-id',_0x444714);});}},{'priority':'highest'}),_0x40e363['descriptionFactory']['registerDescriptionCallback'](_0x222c94=>{if('insertion'!=_0x222c94['type']&&'deletion'!=_0x222c94['type'])return;const _0xd335c0=_0x222c94['getContainedElement']();if(null!=_0xd335c0&&_0xd335c0['is']('element','table')){if('insertion'==_0x222c94['type']){const _0x539521=_0x222c94['getItems']()['filter'](_0x1c3b40=>_0x1c3b40['is']('$textProxy'))['map'](_0x49f2c1=>_0x49f2c1['data']);if(_0x539521['length'])return{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x539521['join']('\x20')+'\x22'))};}if('deletion'==_0x222c94['type']){const _0x558479=_0x222c94['getItems']()['filter'](_0x1b76f8=>_0x1b76f8['is']('$textProxy'))['map'](_0x287a5f=>_0x287a5f['data']);if(_0x558479['length'])return{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x558479['join']('\x20')+'\x22'))};}}}),_0x40e363['descriptionFactory']['registerDescriptionCallback'](_0x57e423=>{if('tableRow'==_0x57e423['subType']){const _0xf4d61d=_0x57e423['getItems']()['filter'](_0x117589=>_0x117589['is']('$textProxy'))['map'](_0x412826=>_0x412826['data']),_0x3a08c1=this['_getSuggestionCoords'](_0x57e423),_0x14f061=_0x3a08c1['maxRow']-_0x3a08c1['minRow']+0x1;if('insertion'==_0x57e423['type'])return _0xf4d61d['length']?{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14f061,'\x22'+_0xf4d61d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW',_0x14f061))};if('deletion'==_0x57e423['type'])return _0xf4d61d['length']?{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14f061,'\x22'+_0xf4d61d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_ROW',_0x14f061))};}if('tableColumn'==_0x57e423['subType']){const _0x511939=_0x57e423['getItems']()['filter'](_0x562b30=>_0x562b30['is']('$textProxy'))['map'](_0x510f53=>_0x510f53['data']),_0x79095e=this['_getSuggestionCoords'](_0x57e423),_0x14f81d=_0x79095e['maxColumn']-_0x79095e['minColumn']+0x1;if('insertion'==_0x57e423['type'])return _0x511939['length']?{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x14f81d,'\x22'+_0x511939['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2bee76,'*Insert:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN',_0x14f81d))};if('deletion'==_0x57e423['type'])return _0x511939['length']?{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x14f81d,'\x22'+_0x511939['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2bee76,'*Remove:*\x20%0',o(_0x2bee76,'ELEMENT_TABLE_COLUMN',_0x14f81d))};}}),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x347770),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x347770),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x334299),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x334299),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4e9f53),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4e9f53),_0x40e363['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3276a2),_0x40e363['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3276a2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x366750=this['editor'],_0x30ba06=_0x366750['model']['document']['selection'];return(_0x46a943,_0x3d8e68)=>{_0x366750['model']['change'](_0x3174b7=>{const {commandName:_0xb52239,commandParams:_0x4eddea}=_0x3d8e68;let _0x565371=_0x46a943[0x0]['end']['nodeBefore'];_0x4eddea&&_0x4eddea[0x0]&&!0x1===_0x4eddea[0x0]['forceValue']&&(_0x565371=_0x46a943[0x0]['start']['nodeAfter']);const _0x508390=_0x3174b7['createRangeIn'](_0x565371);if('$graveyard'==_0x508390['root']['rootName'])return;const _0x17158f=Array['from'](_0x30ba06['getRanges']())['map'](_0x12b8df=>_0xc2db3f['fromRange'](_0x12b8df));_0x3174b7['setSelection'](_0x508390),_0x366750['commands']['get'](_0xb52239)['refresh'](),_0x4eddea['push']({'forceDefaultExecution':!0x0}),_0x366750['execute'](_0xb52239,..._0x4eddea);const _0x1e03c8=_0x17158f['filter'](_0x515127=>'$graveyard'!=_0x515127['root']['rootName']);_0x1e03c8['length']>0x0&&_0x3174b7['setSelection'](_0x1e03c8);for(const _0x585a51 of _0x17158f)_0x585a51['detach']();});};}['_getCoordsForCells'](_0x446b32){const _0x3ba89b=this['editor']['plugins']['get']('TableUtils');let _0xf53cda=Number['MAX_SAFE_INTEGER'],_0x57337c=Number['MIN_SAFE_INTEGER'],_0x27eef0=Number['MAX_SAFE_INTEGER'],_0x1cef1a=Number['MIN_SAFE_INTEGER'];for(const _0x5af5d0 of _0x446b32){if('$graveyard'==_0x5af5d0['root']['rootName'])continue;const {row:_0x587274,column:_0x1c2fb3}=_0x3ba89b['getCellLocation'](_0x5af5d0),_0x4feb4b=_0x5af5d0['hasAttribute']('rowspan')?_0x5af5d0['getAttribute']('rowspan')-0x1:0x0,_0x244889=_0x5af5d0['hasAttribute']('colspan')?_0x5af5d0['getAttribute']('colspan')-0x1:0x0;_0xf53cda=_0x587274<_0xf53cda?_0x587274:_0xf53cda,_0x57337c=_0x587274+_0x4feb4b>_0x57337c?_0x587274+_0x4feb4b:_0x57337c,_0x27eef0=_0x1c2fb3<_0x27eef0?_0x1c2fb3:_0x27eef0,_0x1cef1a=_0x1c2fb3+_0x244889>_0x1cef1a?_0x1c2fb3+_0x244889:_0x1cef1a;}return{'minRow':_0xf53cda,'maxRow':_0x57337c,'minColumn':_0x27eef0,'maxColumn':_0x1cef1a};}['_setupColumnsRowsFixing'](){const _0x32b238=this['editor'],_0x2674ae=_0x32b238['plugins']['get']('TrackChangesEditing'),_0x4d7659=_0x32b238['plugins']['get']('TableUtils');_0x32b238['model']['document']['on']('change:data',()=>{const _0x40f50c=Array['from'](_0x32b238['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7d21c9,data:_0x165fbc}of _0x40f50c){const {group:_0x2765c0,id:_0x4ea422,subType:_0x109d83}=_0x2674ae['_splitMarkerName'](_0x7d21c9);if('suggestion'!=_0x2765c0)continue;if(null!=_0x165fbc['oldRange'])continue;const _0x26474d=_0x2674ae['getSuggestion'](_0x4ea422);this['_tablePostFixingSubtypes']['includes'](_0x109d83)&&this['_tableSuggestions']['add'](_0x26474d);}},{'priority':'low'});const _0x461d18=(_0x4dff07,_0x21b2b1)=>{let _0x108fee=!0x1;const _0x4bb568=_0x21b2b1['createRangeOn'](_0x4dff07),_0x152029=_0x4dff07['findAncestor']('table'),_0x2aa36d=_0x4d7659['getCellLocation'](_0x4dff07);for(const _0x5378e2 of this['_tableSuggestions']){const _0x1f5e3e=_0x5378e2['subType'],_0x36ab81=_0x1f5e3e['startsWith']('tablePaste'),_0x11cc85=_0x1f5e3e['substr'](_0x36ab81?0xa:0x5),_0x39ef84=_0x11cc85['toLowerCase'](),_0x5dde10=_0x39ef84['substr'](0x0,0x3)+'span',_0x4c53f7='min'+_0x11cc85,_0x4549c7='max'+_0x11cc85;if(!_0x5378e2['isInContent'])continue;if(_0x152029!=_0x5378e2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5378e2['isIntersectingWithRange'](_0x4bb568))continue;const _0x28e47f=_0x4dff07['hasAttribute'](_0x5dde10)?_0x4dff07['getAttribute'](_0x5dde10)-0x1:0x0,_0x203d95=this['_getSuggestionCoords'](_0x5378e2),_0x315414=_0x203d95[_0x4c53f7],_0x1b0157=_0x203d95[_0x4549c7];_0x315414<=_0x2aa36d[_0x39ef84]&&_0x2aa36d[_0x39ef84]+_0x28e47f<=_0x1b0157&&(_0x5378e2['addRange'](_0x4bb568),_0x108fee=!0x0);}return _0x108fee;};_0x32b238['model']['document']['registerPostFixer'](_0x6b33b=>{let _0x239939=!0x1;for(const _0x252f34 of _0x32b238['model']['document']['differ']['getChanges']())if('insert'==_0x252f34['type']){if('tableRow'==_0x252f34['name']){for(const _0x17ad81 of _0x252f34['position']['nodeAfter']['getChildren']())_0x239939=_0x239939||_0x461d18(_0x17ad81,_0x6b33b);}else'tableCell'==_0x252f34['name']&&(_0x239939=_0x239939||_0x461d18(_0x252f34['position']['nodeAfter'],_0x6b33b));}return _0x239939;});}['_getSuggestionCoords'](_0x4b09b3){return this['_getCoordsForCells'](_0x4b09b3['getRanges']()['map'](_0x3b7f5c=>_0x3b7f5c['start']['nodeAfter']));}}function Ne(_0x2634b8){return Array['from'](new Set(_0x2634b8)['values']());}class Ct extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0xed6017=this['editor'],_0x22bfdb=_0xed6017['model']['document']['selection'],_0x1fc7a6=_0xed6017['locale'];if(!_0xed6017['plugins']['has']('TableEditing'))return;const _0x3ebcd7=_0xed6017['plugins']['get']('TrackChangesEditing'),_0x5d9954=_0xed6017['plugins']['get']('TableUtils'),_0x177be9=_0xed6017['plugins']['get'](_t);_0x177be9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3ebcd7['enableCommand']('mergeTableCells',()=>{const _0xf1b9f5=_0x5d9954['getSelectionAffectedTableCells'](_0xed6017['model']['document']['selection']);_0xed6017['model']['change'](()=>{_0x3ebcd7['markMultiRangeBlockFormat'](_0xf1b9f5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xed6017['commands']['get']('mergeTableCells')['on']('execute',(_0xf675d1,_0x4ed674)=>{_0xed6017['commands']['get']('trackChanges')['value']&&(_0x4ed674['length']>0x0&&_0x4ed674[_0x4ed674['length']-0x1]&&_0x4ed674[_0x4ed674['length']-0x1]['forceDefaultExecution']||_0x3ebcd7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf675d1['stop']());},{'priority':'highest'});for(const _0x424f93 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x33a51a=_0xed6017['commands']['get'](_0x424f93);_0x3ebcd7['enableCommand'](_0x424f93,()=>{const _0x3e841d=_0xed6017['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x167aa2=>_0x167aa2['is']('element','tableCell')),_0x15ef56=_0x33a51a['value'];_0xed6017['model']['change'](()=>{_0x3ebcd7['markMultiRangeBlockFormat']([_0x3e841d,_0x15ef56],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x537615 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x929386=_0xed6017['commands']['get'](_0x537615);_0x3ebcd7['enableCommand'](_0x537615,()=>{const _0x32d8b6=_0x5d9954['getSelectionAffectedTableCells'](_0xed6017['model']['document']['selection'])[0x0],_0x162a01=_0x32d8b6['findAncestor']('table'),{column:_0x417c95,row:_0x4ac1e7}=_0x5d9954['getCellLocation'](_0x32d8b6);let _0x32eaa2=[];if('horizontally'==_0x929386['direction']){const _0xa0076d=_0x5d9954['createTableWalker'](_0x162a01,{'startRow':_0x4ac1e7,'endRow':_0x4ac1e7,'includeAllSlots':!0x0});_0x32eaa2=Array['from'](_0xa0076d)['map'](_0x33586d=>_0x33586d['cell']);}else{const _0x33a64b=_0x5d9954['createTableWalker'](_0x162a01,{'column':_0x417c95,'includeAllSlots':!0x0});_0x32eaa2=Array['from'](_0x33a64b)['map'](_0xd5c60f=>_0xd5c60f['cell']);}_0xed6017['model']['change'](_0x506edf=>{_0x3ebcd7['markBlockFormat'](_0x506edf['createRangeOn'](_0x32d8b6),{'commandName':_0x537615,'commandParams':[]},_0x32eaa2,_0x537615);});});}_0x3ebcd7['descriptionFactory']['registerDescriptionCallback'](_0x2d9020=>{if('formatBlock'!=_0x2d9020['type']&&'formatInline'!=_0x2d9020['type'])return;const {data:_0x51af02}=_0x2d9020;return _0x51af02&&'mergeTableCells'==_0x51af02['commandName']?{'type':'format','content':o(_0x1fc7a6,'*Merge\x20cells*')}:void 0x0;}),_0x3ebcd7['descriptionFactory']['registerDescriptionCallback'](_0xb0b0af=>{if('formatBlock'!=_0xb0b0af['type']&&'formatInline'!=_0xb0b0af['type'])return;const {data:_0x14c050}=_0xb0b0af;return _0x14c050?'splitTableCellVertically'==_0x14c050['commandName']?{'type':'format','content':o(_0x1fc7a6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14c050['commandName']?{'type':'format','content':o(_0x1fc7a6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3df816=_0x177be9['_acceptFormatSuggestionCallbackFactory']();for(const _0x2369b8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3ebcd7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2369b8,'accept',_0x3df816);for(const _0x4fb6d9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3ebcd7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4fb6d9,'accept',_0x3df816);_0x3ebcd7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x12a54d=>{_0xed6017['model']['change'](_0x140778=>{const _0x55df32=Array['from'](_0x22bfdb['getRanges']())['map'](_0x4c10ed=>_0xc2db3f['fromRange'](_0x4c10ed));_0x140778['setSelection'](_0x12a54d),_0xed6017['commands']['get']('mergeTableCells')['refresh'](),_0xed6017['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x549b83=_0x55df32['filter'](_0x232fe7=>'$graveyard'!=_0x232fe7['root']['rootName']);_0x549b83['length']>0x0&&_0x140778['setSelection'](_0x549b83);for(const _0x5a0689 of _0x55df32)_0x5a0689['detach']();});});for(const _0x27b497 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13fa6d=_0xed6017['commands']['get'](_0x27b497);_0x13fa6d['on']('set:isEnabled',(_0x4d4dde,_0x4907b8,_0x112432)=>{if(_0x112432){const _0x306fb0=_0xed6017['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e0887=>_0x2e0887['is']('element','tableCell'));this['_areMergableCells'](_0x13fa6d['value'],_0x306fb0)||(_0x4d4dde['return']=!0x1,_0x4d4dde['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2dc302=this['editor']['commands']['get']('mergeTableCells'),_0x4c23cc=this['editor']['plugins']['get']('TableUtils');if(!_0x2dc302['isEnabled'])return!0x1;const _0x1170c4=_0x4c23cc['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b3d4c of _0x1170c4)for(const _0x58a502 of _0x1170c4)if(_0x2b3d4c!=_0x58a502&&!this['_areMergableCells'](_0x2b3d4c,_0x58a502))return!0x1;return!0x0;}['_areMergableCells'](_0x2b3911,_0x287083){const _0x501f31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d81ca=this['editor']['model']['createRangeOn'](_0x2b3911),_0x16b51a=this['editor']['model']['createRangeOn'](_0x287083),_0x339584=new Set(),_0x482767=new Set();for(const _0x4d4b8a of _0x501f31['getSuggestions']())if(('insertion'==_0x4d4b8a['type']||'deletion'==_0x4d4b8a['type']||'mergeTableCells'==_0x4d4b8a['subType'])&&_0x4d4b8a['isInContent']){for(const _0x39f588 of _0x4d4b8a['getRanges']())_0x39f588['containsRange'](_0x1d81ca,!0x0)&&_0x339584['add'](_0x4d4b8a['type']+':'+_0x4d4b8a['author']['id']),_0x39f588['containsRange'](_0x16b51a,!0x0)&&_0x482767['add'](_0x4d4b8a['type']+':'+_0x4d4b8a['author']['id']);}if(_0x339584['size']!=_0x482767['size'])return!0x1;for(const _0x2df0cf of _0x339584)if(!_0x482767['has'](_0x2df0cf))return!0x1;return!0x0;}}class vt extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0x3eaa5d=this['editor'];if(!_0x3eaa5d['plugins']['has']('TableEditing'))return;const _0xcc6848=_0x3eaa5d['locale'],_0x448b77=_0x3eaa5d['plugins']['get']('TrackChangesEditing');_0x448b77['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x448b77['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x448b77['registerBlockAttribute']('headingRows'),_0x448b77['registerBlockAttribute']('headingColumns'),_0x448b77['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xcc6848,'FORMAT_HEADER_ROW')),_0x448b77['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xcc6848,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4037af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x584710=this['editor']['plugins']['get']('TableUtils'),_0x2535b7=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0xc032ac({showActiveMarker:_0x222161=!0x0,setDataAttribute:_0x2021e7=!0x0}={}){return(_0x539586,_0x31f2ad,_0x17e165)=>{const {type:_0x1579f8,id:_0x4e839e}=_0x4037af['_splitMarkerName'](_0x31f2ad['markerName']),_0x4544f=_0x4037af['getSuggestion'](_0x4e839e),_0x3b8ba1=_0x4544f['data'];if('formatBlock'!=_0x4544f['type']||!_0x3b8ba1||'setTableColumnHeader'!=_0x3b8ba1['commandName'])return;if(_0x31f2ad['item'])return void _0x539586['stop']();if(!_0x17e165['consumable']['consume'](_0x31f2ad['markerRange'],_0x539586['name']))return;const _0x1972b3=_0x31f2ad['markerRange']['start']['nodeAfter'],_0x5c6c91=_0x31f2ad['markerRange']['end']['nodeBefore'],_0x5a8d62=_0x1972b3['parent']['parent'],{column:_0xb4ce4e}=_0x584710['getCellLocation'](_0x1972b3),{column:_0x2186f4}=_0x584710['getCellLocation'](_0x5c6c91);for(let _0x3e112a=_0xb4ce4e;_0x3e112a<=_0x2186f4;_0x3e112a++){const _0x441428=_0x584710['createTableWalker'](_0x5a8d62,{'column':_0x3e112a,'includeAllSlots':!0x1});for(const _0x54f164 of _0x441428){const _0x36762e=_0x54f164['cell'],_0x82a496=_0x17e165['mapper']['toViewElement'](_0x36762e);_0x17e165['writer']['addClass']('ck-suggestion-marker-'+_0x1579f8,_0x82a496),_0x2021e7&&_0x17e165['writer']['setAttribute']('data-suggestion',_0x4e839e,_0x82a496),_0x17e165['mapper']['bindElementToMarker'](_0x82a496,_0x31f2ad['markerName']),_0x222161&&(_0x4037af['activeMarkers']['includes'](_0x31f2ad['markerName'])?_0x17e165['writer']['addClass']('ck-suggestion-marker--active',_0x82a496):_0x17e165['writer']['removeClass']('ck-suggestion-marker--active',_0x82a496));}}};}_0x4037af['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2535b7),_0x4037af['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2535b7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc032ac(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ba8dc,_0x570d21,_0x1302f1)=>{_0x1302f1['options']['showSuggestionHighlights']&&_0xc032ac({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ba8dc,_0x570d21,_0x1302f1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2878dc,_0x5f279a,_0xdf96de)=>{const {type:_0xefb397,id:_0x87db4d}=_0x4037af['_splitMarkerName'](_0x5f279a['markerName']),_0x162973=_0x4037af['getSuggestion'](_0x87db4d),_0x4b00e2=_0x162973['data'];if('formatBlock'!=_0x162973['type']||!_0x4b00e2||'setTableColumnHeader'!=_0x4b00e2['commandName'])return;const _0x1398be=_0xdf96de['mapper']['markerNameToElements'](_0x5f279a['markerName']);if(_0x1398be){for(const _0x31f5f9 of _0x1398be)_0xdf96de['writer']['removeClass']('ck-suggestion-marker-'+_0xefb397,_0x31f5f9),_0xdf96de['writer']['removeClass']('ck-suggestion-marker--active',_0x31f5f9),_0xdf96de['writer']['removeAttribute']('data-suggestion',_0x31f5f9),_0xdf96de['mapper']['unbindElementFromMarkerName'](_0x31f5f9,_0x5f279a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9b94=this['editor'],_0x254282=_0x3c9b94['locale'];function _0x3cf6b9(_0x52152c){return{'type':'format','content':o(_0x254282,'*Format:*\x20%0',_0x52152c)};}_0x3c9b94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eb68f=>{if('formatBlock'!=_0x3eb68f['type'])return;const {data:_0x1a94dd}=_0x3eb68f;if(_0x1a94dd){if('setTableRowHeader'==_0x1a94dd['commandName']){const _0x4e3df6=_0x1a94dd['commandParams'][0x0]['forceValue'];return _0x3cf6b9(o(_0x254282,_0x4e3df6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a94dd['commandName']){const _0x412c09=_0x1a94dd['commandParams'][0x0]['forceValue'];return _0x3cf6b9(o(_0x254282,_0x412c09?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Nt extends _0x28b250{['afterInit'](){const _0x2a6a85=this['editor'],_0x16a726=_0x2a6a85['locale'],_0x3c3e19=_0x2a6a85['plugins']['get']('TrackChangesEditing');function _0x3cb4f2(_0x3becf3){return{'type':'format','content':''+o(_0x16a726,'*Set\x20table\x20type:*\x20%0',_0x3becf3)};}_0x2a6a85['plugins']['has']('TableLayout')&&(_0x3c3e19['enableCommand']('insertTableLayout'),_0x3c3e19['enableDefaultAttributesIntegration']('tableType'),_0x3c3e19['registerBlockAttribute']('tableType'),_0x3c3e19['descriptionFactory']['registerElementLabel'](_0x4ea473=>_0x4ea473['is']('element','table')&&'layout'===_0x4ea473['getAttribute']('tableType'),_0x4892b5=>o(_0x16a726,'ELEMENT_LAYOUT_TABLE',_0x4892b5)),_0x3c3e19['descriptionFactory']['registerDescriptionCallback'](_0x20de4b=>{const {data:_0x82b91f}=_0x20de4b;if(_0x82b91f&&'tableType'==_0x82b91f['key'])switch(_0x82b91f['newValue']){case'layout':return _0x3cb4f2(o(_0x16a726,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3cb4f2(o(_0x16a726,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](xe['map'](_0x4211d9=>[_0x4211d9,null]));class Dt extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0x331a2c=this['editor'];if(!_0x331a2c['plugins']['has']('TableClipboard'))return;const _0x34f6ee=_0x331a2c['plugins']['get']('TrackChangesEditing'),_0x2a240d=_0x331a2c['plugins']['get']('TableUtils'),_0x2a1280=_0x331a2c['plugins']['get'](_t),_0x5551e5=_0x331a2c['plugins']['get']('TableClipboard'),_0x2ce826=_0x331a2c['plugins']['get']('TableSelection'),_0x247c0f=_0x331a2c['plugins']['get'](_0x5ed61e);_0x2a1280['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x331a2c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x331a2c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xcde454=null,_0x22fb4a=!0x1;_0x247c0f['on']('contentInsertion',(_0x2d7897,_0x280e3b)=>{_0x22fb4a='paste'===_0x280e3b['method'];}),_0x331a2c['model']['on']('insertContent',(_0x5d6963,_0x2fe273)=>{if(!_0x22fb4a&&null===_0x2ce826['getSelectedTableCells']())return;const [_0x2179f0,_0x48fd16]=_0x2fe273,_0x26b00d=_0x2fe273[_0x2fe273['length']-0x1];_0x26b00d&&_0x26b00d['forceDefaultExecution']||_0x34f6ee['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x170a02,_0x3dd728,_0x542df5,_0x3b8893,_0x4d2415){if(_0x3dd728&&!_0x3dd728['is']('documentSelection'))return!0x1;const _0x187209=_0x4d2415['getTableIfOnlyTableInContent'](_0x170a02,_0x542df5);if(!_0x187209||!De(_0x187209,void 0x0,_0x3b8893))return!0x1;const _0x12a5cb=_0x3b8893['getSelectionAffectedTableCells'](_0x542df5['document']['selection']);if(!_0x12a5cb['length'])return!0x1;const _0x9feec8=_0x12a5cb[0x0]['findAncestor']('table'),_0x48f647=_0x3b8893['getRowIndexes'](_0x12a5cb),_0x244f6a=_0x3b8893['getColumnIndexes'](_0x12a5cb),_0x594e16={'startRow':_0x48f647['first'],'endRow':_0x48f647['last'],'startColumn':_0x244f6a['first'],'endColumn':_0x244f6a['last']};return 0x1==_0x12a5cb['length']&&(_0x594e16['endRow']+=_0x3b8893['getRows'](_0x187209)-0x1,_0x594e16['endColumn']+=_0x3b8893['getColumns'](_0x187209)-0x1),De(_0x9feec8,_0x594e16,_0x3b8893);}(_0x2179f0,_0x48fd16,_0x331a2c['model'],_0x2a240d,_0x5551e5)&&(_0x5d6963['stop'](),_0xcde454={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x331a2c['model']['change'](()=>{_0x331a2c['model']['insertContent'](_0x2fe273[0x0],_0x2fe273[0x1],_0x2fe273[0x2],{'forceDefaultExecution':!0x0});const _0x4bd841=_0x370ed3(),{rowInsertionRanges:_0x4257cc,columnInsertionRanges:_0xe3d595,insertionRanges:_0xd0cfe5,deletionRanges:_0xe15881,cells:_0x24be74}=_0xcde454;_0x4257cc['length']&&_0x34f6ee['markMultiRangeInsertion'](_0x4257cc,'tablePasteRow',{'tablePasteChainId':_0x4bd841}),_0xe3d595['length']&&_0x34f6ee['markMultiRangeInsertion'](_0xe3d595,'tablePasteColumn',{'tablePasteChainId':_0x4bd841}),_0xd0cfe5['length']&&(_0x34f6ee['markMultiRangeInsertion'](_0xd0cfe5,'tablePaste',{'tablePasteChainId':_0x4bd841,'skipNestingCheck':!0x0}),_0xd0cfe5['forEach'](_0x4fc9d3=>_0x4fc9d3['detach']?.())),_0xe15881['length']&&(_0x34f6ee['markMultiRangeDeletion'](_0xe15881,'tablePaste',{'tablePasteChainId':_0x4bd841,'skipNestingCheck':!0x0}),_0xe15881['forEach'](_0x2f4ef3=>_0x2f4ef3['detach']?.()));const _0x5e4582=_0x34f6ee['markMultiRangeBlockFormat'](_0x24be74['map'](({element:_0x1aea8a})=>_0x1aea8a),{'formatGroupId':_0x370ed3()},[],'tablePasteCell',{'tablePasteChainId':_0x4bd841});if(_0x5e4582){const _0x2dccac=_0x5e4582['getMarkers'](),_0x2fa7f9=[];for(const {element:_0x24cfa7,attributes:_0x211692}of _0x24be74){if(!_0x211692)continue;const _0x123e10=_0x331a2c['model']['createRangeOn'](_0x24cfa7),_0x190e58=_0x2dccac['find'](_0x4c5589=>_0x4c5589['getRange']()['isEqual'](_0x123e10));_0x190e58&&_0x2fa7f9['push']([_0x190e58['name'],_0x211692]);}_0x2fa7f9['length']&&_0x5e4582['setAttribute']('markerAttributes',Object['fromEntries'](_0x2fa7f9));}_0xcde454=null;}));},{'priority':_0x4066a6['high']+0xa}),_0x247c0f['on']('contentInsertion',()=>{_0x22fb4a=!0x1;},{'priority':'lowest'}),_0x331a2c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2eb3ca,_0x43d0f1)=>{const [_0x543220,_0x27251c,,_0x3e4015]=_0x43d0f1;if(!_0xcde454)return;_0x2eb3ca['stop']();const _0x1e2ccf=_0x543220['cell'],_0x2ad0e6=_0x27251c,_0x49b210=Ue(_0x1e2ccf),_0x51ecea=Ue(_0x2ad0e6);_0x2eb3ca['return']=_0x1e2ccf;let _0x27e39a=null,_0x11f917=null;if(_0x51ecea||_0x49b210){if(_0x49b210&&!_0x51ecea){_0x3e4015['remove'](_0x1e2ccf['getChild'](0x0));for(const _0xb532e6 of Array['from'](_0x2ad0e6['getChildren']()))_0x3e4015['insert'](_0xb532e6,_0x1e2ccf,'end');const _0x50d6ac=_0xcde454['rowInsertionIndexes']['includes'](_0x543220['row']),_0x367f82=_0xcde454['columnInsertionIndexes']['includes'](_0x543220['column']);_0x50d6ac||_0x367f82||(_0x27e39a=_0xc2db3f['fromRange'](_0x3e4015['createRangeIn'](_0x1e2ccf)));}else _0x51ecea&&!_0x49b210&&(_0x11f917=_0x3e4015['createRangeIn'](_0x1e2ccf));}else{const _0x2878c9=_0x3e4015['createElement']('tableCellSuggestion'),_0x5af19b=_0x3e4015['createElement']('tableCellSuggestion');_0x3e4015['wrap'](_0x3e4015['createRangeIn'](_0x1e2ccf),_0x5af19b),_0x3e4015['insert'](_0x2878c9,_0x1e2ccf,0x0);for(const _0x3319d1 of Array['from'](_0x2ad0e6['getChildren']()))_0x3e4015['insert'](_0x3319d1,_0x2878c9,'end');_0x27e39a=_0xc2db3f['fromRange'](_0x3e4015['createRangeOn'](_0x2878c9)),_0x11f917=_0xc2db3f['fromRange'](_0x3e4015['createRangeOn'](_0x5af19b));}const _0x1cdab6=Array['from'](_0x2ad0e6['getAttributes']())['filter'](([_0x42be05])=>xe['includes'](_0x42be05));_0xcde454['cells']['push']({'element':_0x1e2ccf,'attributes':_0x1cdab6['length']?Object['fromEntries'](_0x1cdab6):null}),_0x27e39a&&_0xcde454['insertionRanges']['push'](_0x27e39a),_0x11f917&&_0xcde454['deletionRanges']['push'](_0x11f917);},{'priority':'high'}),_0x2a240d['on']('insertColumns',(_0x261f4b,_0x2e69a1)=>{const [_0x423f2a,_0x2c5215={}]=_0x2e69a1;if(!_0xcde454)return;const _0x37de1e=_0x2c5215['at']||0x0,_0x25376c=_0x2c5215['columns']||0x1;_0xcde454['columnInsertionIndexes']=new Array(_0x25376c)['fill'](_0x37de1e)['map']((_0x57a8bd,_0x51ad50)=>_0x57a8bd+_0x51ad50);for(const {cell:_0x1b4cfa}of _0x2a240d['createTableWalker'](_0x423f2a,{'startColumn':_0x37de1e,'endColumn':_0x37de1e+_0x25376c-0x1}))_0xcde454['columnInsertionRanges']['push'](_0x331a2c['model']['createRangeOn'](_0x1b4cfa));},{'priority':'low'}),_0x2a240d['on']('insertRows',(_0x584cb8,_0x2d2abf)=>{const [_0xa272bc,_0x244305={}]=_0x2d2abf;if(!_0xcde454)return;const _0x8dbb61=_0x244305['at']||0x0,_0x198ded=_0x244305['rows']||0x1;_0xcde454['rowInsertionIndexes']=new Array(_0x198ded)['fill'](_0x8dbb61)['map']((_0xd59abf,_0x2d2c13)=>_0xd59abf+_0x2d2c13);for(const {cell:_0x374911}of _0x2a240d['createTableWalker'](_0xa272bc,{'startRow':_0x8dbb61,'endRow':_0x8dbb61+_0x198ded-0x1}))_0xcde454['rowInsertionRanges']['push'](_0x331a2c['model']['createRangeOn'](_0x374911));},{'priority':'low'}),_0x34f6ee['descriptionFactory']['registerDescriptionCallback'](_0x57eeac=>{if(_0x57eeac['subType']&&_0x57eeac['subType']['startsWith']('tablePaste'))return _0x57eeac['previous']?{}:{'type':'insertion','content':o(_0x331a2c['locale'],'*Replace\x20table\x20cells*')};});const _0x4d20f8=()=>!0x1;for(const _0x59fc78 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x34f6ee['_suggestionFactory']['registerCustomCallback']('insertion',_0x59fc78,'join',_0x4d20f8),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('deletion',_0x59fc78,'join',_0x4d20f8),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59fc78,'join',_0x4d20f8);_0x34f6ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4d20f8),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x517bc9,_0x3aceb2,_0x4abfdc)=>{const _0x2fc01a=_0x517bc9['map'](_0x130942=>_0x130942['getContainedElement']())['filter'](_0xd41033=>_0xd41033),_0x29847a=new Map(_0x2fc01a['map'](_0x3dc831=>[_0x3dc831,null]));if(_0xcde454){for(const {element:_0xa5837,attributes:_0xbd339f}of _0xcde454['cells'])_0xbd339f&&_0x29847a['set'](_0xa5837,_0xbd339f);}else{if(_0x4abfdc&&_0x4abfdc['markerAttributes'])for(const [_0x21f6ef,_0xc631cd]of Object['entries'](_0x4abfdc['markerAttributes'])){const _0x1a6853=_0x331a2c['model']['markers']['get'](_0x21f6ef),_0x5c9303=_0x1a6853?_0x1a6853['getRange']()['getContainedElement']():null;_0x5c9303&&_0x29847a['set'](_0x5c9303,_0xc631cd);}}_0x331a2c['model']['change'](_0x495465=>{for(const [_0xdb9b96,_0x3d92a1]of _0x29847a)_0x495465['setAttributes']({...Oe,..._0x3d92a1},_0xdb9b96);});});const _0x136379=(_0x5b12ea,_0xdc4890)=>{_0x34f6ee['_suggestionFactory']['registerCustomCallback'](_0x5b12ea,'tablePaste',_0xdc4890,(_0x2b3ef5,_0x2a49b8,_0x522437)=>{_0x331a2c['model']['change'](_0x1eeca9=>{const _0x3017ed=[];for(const _0x3e6658 of _0x2b3ef5){const _0x4f9800=_0x3e6658['start']['nodeAfter'];_0x4f9800['is']('element','tableCellSuggestion')&&_0x3017ed['push'](_0x4f9800);}_0x34f6ee['_suggestionFactory']['getSuggestionCallback'](_0x5b12ea,null,_0xdc4890)(_0x2b3ef5,_0x2a49b8,_0x522437);for(const _0x42a9d9 of _0x3017ed)'$graveyard'!=_0x42a9d9['root']['rootName']&&_0x1eeca9['unwrap'](_0x42a9d9);});});};_0x136379('insertion','accept'),_0x136379('insertion','discard'),_0x136379('deletion','accept'),_0x136379('deletion','discard'),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x23c772=>{const _0x893efa=_0x23c772['map'](_0x54680f=>_0x54680f['getContainedElement']()),_0xaace25=_0x893efa[0x0]['findAncestor']('table'),{minRow:_0x1c4359,maxRow:_0x5b2f43}=_0x2a1280['_getCoordsForCells'](_0x893efa);_0x2a240d['removeRows'](_0xaace25,{'at':_0x1c4359,'rows':_0x5b2f43-_0x1c4359+0x1});}),_0x34f6ee['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b4b57=>{const _0x264416=_0x4b4b57['map'](_0x560993=>_0x560993['getContainedElement']()),_0xf546e9=_0x264416[0x0]['findAncestor']('table'),{minColumn:_0x10624d,maxColumn:_0x39f34e}=_0x2a1280['_getCoordsForCells'](_0x264416);_0x2a240d['removeColumns'](_0xf546e9,{'at':_0x10624d,'columns':_0x39f34e-_0x10624d+0x1});});const _0x212812=(_0x1d3fd9,_0xaab406)=>{if(!_0xaab406['subType']||!_0xaab406['subType']['startsWith']('tablePaste'))return;const _0x47c21c=_0xaab406['attributes']['tablePasteChainId'],_0x42e82b=_0x34f6ee['getSuggestions']()['filter'](_0x368744=>_0x368744['isInContent']&&_0x368744['attributes']&&_0x368744['attributes']['tablePasteChainId']==_0x47c21c);_0x42e82b['length']&&_0xaab406['getAllAdjacentSuggestions']()['length']!=_0x42e82b['length']&&_0x42e82b['reduce']((_0xef2d76,_0x29717c)=>(_0xef2d76['next']=_0x29717c,_0x29717c['previous']=_0xef2d76,_0x29717c));};function _0x141b92(_0x19da0d,_0x23c3c7=!0x0){const {id:_0x5b2186,authorId:_0xca8a17}=_0x34f6ee['_splitMarkerName'](_0x19da0d['markerName']),_0x2fcc72=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x33f016=_0x34f6ee['activeMarkers']['includes'](_0x19da0d['markerName']);return _0x33f016&&_0x2fcc72['push']('ck-suggestion-marker--active'),{'classes':_0x2fcc72,'attributes':{'data-suggestion':_0x5b2186,'data-author-id':_0xca8a17},'priority':_0x33f016&&_0x23c3c7?0xbc2:0xbb8};}_0x34f6ee['on']('suggestionLoaded',_0x212812,{'priority':'high'}),_0x34f6ee['on']('suggestionUnloaded',_0x212812,{'priority':'high'}),_0x331a2c['model']['document']['registerPostFixer'](()=>{let _0x40c1f6=!0x1;const _0x29a30c=Array['from'](_0x331a2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2756af,data:_0x4c0f4f}of _0x29a30c){const {group:_0x50a8e4,type:_0x46fa3a,id:_0x452c5f}=_0x34f6ee['_splitMarkerName'](_0x2756af);if('suggestion'!=_0x50a8e4||'deletion'!=_0x46fa3a||_0x4c0f4f['oldRange'])continue;if(!_0x34f6ee['hasSuggestion'](_0x452c5f))continue;const _0x364521=_0x34f6ee['getSuggestion'](_0x452c5f)['getRanges'](),_0x3c3b4e=_0x331a2c['plugins']['get']('Users')['me'];for(const _0xcb0ce2 of _0x34f6ee['getSuggestions']()){if(!_0xcb0ce2['isInContent']||_0xcb0ce2['author']!=_0x3c3b4e)continue;if('formatBlock'!=_0xcb0ce2['type']||'tablePasteCell'!=_0xcb0ce2['subType'])continue;if(_0xcb0ce2['getRanges']()['every'](_0x3c47f2=>_0x364521['some'](_0x5659ea=>_0x5659ea['containsRange'](_0x3c47f2,!0x0)))){for(const _0xbdf1cf of _0xcb0ce2['getAllAdjacentSuggestions']())_0xbdf1cf['isInContent']&&(_0xbdf1cf['discard'](),_0x40c1f6=!0x0);}}}return _0x40c1f6;}),_0x331a2c['model']['document']['registerPostFixer'](_0x1ad89a=>{const _0x98e094=_0x331a2c['commands']['get']('redo');if(!_0x98e094||!_0x98e094['_createdBatches']['has'](_0x1ad89a['batch']))return!0x1;let _0xf297fb=!0x1;const _0x2f43a5=_0x331a2c['plugins']['get']('Users')['me'],_0xee3328=_0x331a2c['model']['document']['differ']['getChanges'](),_0x11fed7=Array['from'](_0x331a2c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xb00982,data:_0x4e7634})=>{const {group:_0x4e5d50,subType:_0x2062a0,authorId:_0x2ae342}=_0x34f6ee['_splitMarkerName'](_0xb00982);return'suggestion'==_0x4e5d50&&'tablePaste'==_0x2062a0&&_0x2ae342==_0x2f43a5['id']&&!_0x4e7634['oldRange'];});for(const _0x32f477 of _0xee3328){if('insert'!=_0x32f477['type']||'tableCellSuggestion'!=_0x32f477['name']||0x1!=_0x32f477['length'])continue;const _0x3c7002=_0x1ad89a['createRange'](_0x32f477['position'],_0x32f477['position']['getShiftedBy'](0x1));if(!_0x11fed7['find'](({data:_0x50ccf7})=>_0x50ccf7['newRange']['isEqual'](_0x3c7002))){for(const {name:_0x13d095,data:_0x393f5f}of _0x11fed7)if(_0x3c7002['containsRange'](_0x393f5f['newRange'])){_0x1ad89a['updateMarker'](_0x13d095,{'range':_0x3c7002}),_0xf297fb=!0x0;break;}}}return _0xf297fb;}),_0x331a2c['model']['document']['registerPostFixer'](_0x4442a6=>{let _0x24b5f3=!0x1;const _0x285712=_0x331a2c['plugins']['get']('Users')['me'],_0x3f8b81=_0x34f6ee['getSuggestions']()['filter'](_0x1f62e3=>_0x1f62e3['isInContent']&&_0x1f62e3['author']==_0x285712),_0x1ff4a6=new Set(),_0x45ff71=new Set();for(const _0x2108f6 of _0x3f8b81)if('tablePaste'==_0x2108f6['subType'])for(const _0x455684 of _0x2108f6['getMarkers']()){const _0x2a7871=_0x455684['getRange']()['getContainedElement']();if(_0x2a7871){if(_0x2a7871['is']('element','tableCellSuggestion')&&Ue(_0x2a7871)){_0x2108f6['removeMarker'](_0x455684['name']),_0x1ff4a6['add'](_0x2a7871),_0x24b5f3=!0x0;const _0x4fbd96=_0x2a7871['nextSibling'],_0x373ae4=_0x2a7871['previousSibling'],_0x184d78=_0x4fbd96&&_0x4fbd96['is']('element','tableCellSuggestion'),_0x193b37=_0x373ae4&&_0x373ae4['is']('element','tableCellSuggestion');_0x184d78&&!_0x1ff4a6['has'](_0x4fbd96)&&_0x45ff71['add'](_0x4fbd96),_0x193b37&&!_0x1ff4a6['has'](_0x373ae4)&&_0x45ff71['add'](_0x373ae4);}else _0x2a7871['is']('element','paragraph')&&_0x2a7871['isEmpty']&&(_0x2108f6['removeMarker'](_0x455684['name']),_0x24b5f3=!0x0);}}else{if('tablePasteCell'==_0x2108f6['subType']){if(!_0x2108f6['attributes']||!_0x2108f6['attributes']['tablePasteChainId'])continue;const _0x22dc13=_0x2108f6['attributes']['markerAttributes'];if(_0x22dc13&&Object['keys'](_0x22dc13)['length'])continue;const _0x28b39c=_0x2108f6['attributes']['tablePasteChainId'];let _0x384da3=!0x0,_0x539376=!0x0;for(const _0x3382ee of _0x3f8b81)if(_0x3382ee['subType']&&_0x3382ee['subType']['startsWith']('tablePaste')){if(!_0x3382ee['attributes']['tablePasteChainId']){_0x539376=!0x1;break;}if(_0x3382ee['id']!=_0x2108f6['id']&&_0x3382ee['attributes']['tablePasteChainId']==_0x28b39c){_0x384da3=!0x1;break;}}_0x539376&&_0x384da3&&(_0x2108f6['removeMarkers'](),_0x24b5f3=!0x0);}}for(const _0x595dc8 of _0x1ff4a6)_0x4442a6['remove'](_0x595dc8);for(const _0x47bd93 of _0x45ff71)_0x4442a6['unwrap'](_0x47bd93);return _0x24b5f3;}),_0x331a2c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b80ae=>_0x141b92(_0x1b80ae),'converterPriority':'high'}),_0x331a2c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x51b55f,_0x7e731b)=>_0x7e731b['options']['showSuggestionHighlights']?_0x141b92(_0x51b55f,!0x1):null,'converterPriority':'high'});const _0x3e1d68=_0x331a2c['editing']['view'];this['listenTo'](_0x3e1d68['document'],'clipboardOutput',(_0x313dcf,_0x1b3547)=>{const _0x387663=[];for(const _0x401fd8 of _0x3e1d68['createRangeIn'](_0x1b3547['content'])['getItems']())_0x401fd8['is']('element','suggestion-td')&&_0x387663['push'](_0x401fd8);_0x3e1d68['change'](_0x1645ad=>{for(const _0x25927b of _0x387663)_0x1645ad['move'](_0x1645ad['createRangeIn'](_0x25927b),_0x1645ad['createPositionBefore'](_0x25927b)),_0x1645ad['remove'](_0x25927b);});});}}function Ue(_0x254bc8){if(_0x254bc8['isEmpty'])return!0x0;const _0x4bb306=_0x254bc8['getChild'](0x0);return _0x4bb306['is']('element','paragraph')&&_0x4bb306['isEmpty'];}function De(_0x43562c,_0x570ef3={},_0x567192){for(const {isAnchor:_0x58689f,cellHeight:_0xaa0117,cellWidth:_0x1c64d4}of _0x567192['createTableWalker'](_0x43562c,{'includeAllSlots':!0x0,..._0x570ef3}))if(!_0x58689f||0x1!=_0xaa0117||0x1!=_0x1c64d4)return!0x1;return!0x0;}class Mt extends _0x28b250{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54c522=this['editor']['plugins']['get']('TrackChangesEditing');_0x54c522['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54c522['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54c522['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54c522['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54c522['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54c522['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1b170a,_0x4cc9c6){const _0x40d91d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x243162=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x327aff=_0x4cc9c6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3cd6b3=_0x243162['getColumnGroupElement'](_0x327aff);let _0x550446=_0x3cd6b3?_0x243162['getTableColumnsWidths'](_0x3cd6b3):null,_0x41bc8=_0x327aff['getAttribute']('tableWidth')||null;const _0x3d03b0=_0x4cc9c6['tableWidth']||_0x41bc8,_0x22f560=_0x4cc9c6['columnWidths']||_0x550446,_0x13cc99=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bb4a1 of _0x40d91d['getSuggestions']()){const _0x5c44d6=_0x3bb4a1['getContainedElement']();if('resizeTable'===_0x3bb4a1['subType']&&_0x5c44d6===_0x327aff){_0x3bb4a1['author']!==_0x13cc99&&_0x3bb4a1['discard']();const _0x1518cf=_0x3bb4a1['data']['commandParams'];_0x41bc8=_0x1518cf[0x0]['tableWidth'],_0x550446=_0x1518cf[0x0]['columnWidths'];break;}}_0x1b170a({'table':_0x327aff,'tableWidth':_0x3d03b0,'columnWidths':_0x22f560}),_0x40d91d['markBlockFormat'](_0x327aff,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x41bc8,'columnWidths':_0x550446}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x19f4a1){if('formatBlock'!=_0x19f4a1['type']&&'formatInline'!=_0x19f4a1['type'])return;const {data:_0xdeda9b}=_0x19f4a1;if(_0xdeda9b&&'resizeTable'===_0xdeda9b['formatGroupId']){const _0xdddb2d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xdddb2d)};}}}class $t extends _0x28b250{['afterInit'](){const _0x36096f=this['editor'];_0x36096f['plugins']['has']('Template')&&_0x36096f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x28b250{['afterInit'](){const _0x203e1c=this['editor'];if(!_0x203e1c['commands']['get']('insertTableOfContents'))return;_0x203e1c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x18e94a=_0x203e1c['plugins']['get']('TrackChangesEditing'),_0x895a45=_0x203e1c['locale'];_0x18e94a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d8016=>o(_0x895a45,'ELEMENT_TABLE_OF_CONTENTS',_0x5d8016));}}class Tt extends _0x28b250{['afterInit'](){const _0x90a43d=this['editor'];if(!_0x90a43d['plugins']['has']('Title'))return;const _0x207a35=_0x90a43d['plugins']['get']('TrackChangesEditing');_0x207a35['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x90a43d['locale'],'ELEMENT_TITLE')),_0x90a43d['model']['document']['registerPostFixer'](_0x41557c=>{let _0x170b89=!0x1;const _0xcb023a=Array['from'](_0x90a43d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6380ac,data:_0x17e7af}of _0xcb023a){const {group:_0x33afd3}=_0x207a35['_splitMarkerName'](_0x6380ac);if('suggestion'!==_0x33afd3||!_0x17e7af['newRange'])continue;const _0x117edf=_0x17e7af['newRange'],_0xe0e9bf=_0x117edf['end']['nodeBefore'];if(!_0xe0e9bf||!_0xe0e9bf['is']('element','title-content'))continue;if(!_0x117edf['start']['isTouching'](_0x117edf['end']))continue;const _0x46fdc2=_0x90a43d['model']['schema']['getNearestSelectionRange'](_0x117edf['end'],'forward');if(_0x46fdc2&&_0x46fdc2['isCollapsed']){const _0x5da359=_0x41557c['createRange'](_0x117edf['start'],_0x46fdc2['start']);_0x5da359['isEqual'](_0x117edf)||(_0x41557c['updateMarker'](_0x6380ac,{'range':_0x5da359}),_0x170b89=!0x0);}_0x170b89||(_0x41557c['removeMarker'](_0x6380ac),_0x170b89=!0x0);}return _0x170b89;});}}class xt extends _0x28b250{['afterInit'](){const _0x559e66=this['editor'],_0x2d187e=_0x559e66['plugins']['get']('TrackChangesEditing');_0x559e66['plugins']['has']('Uploadcare')&&(_0x2d187e['enableCommand']('uploadcare'),_0x559e66['plugins']['has']('UploadcareImageEdit')&&(_0x2d187e['enableCommand']('uploadcareImageEdit'),_0x2d187e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2d187e['registerBlockAttribute']('uploadcareImageId'),_0x2d187e['descriptionFactory']['registerDescriptionCallback'](_0x5434ff=>{if('attribute'!=_0x5434ff['type'])return;const {data:_0x34798e}=_0x5434ff;return _0x34798e&&'uploadcareImageId'==_0x34798e['key']?{'type':'format','content':''}:void 0x0;})));}}class Ot extends _0x28b250{['afterInit'](){const _0x7d61a6=this['editor'],_0x4966e8=_0x7d61a6['plugins']['get']('TrackChangesEditing');_0x7d61a6['plugins']['has']('UndoEditing')&&(_0x4966e8['enableCommand']('undo'),_0x4966e8['enableCommand']('redo'));}}class Rt extends _0x28b250{static get['requires'](){return[_t];}['afterInit'](){const _0x45da15=this['editor'];if(!_0x45da15['plugins']['has']('TableCaptionEditing'))return;_0x45da15['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x28b250{['tableProperties'];['tableCellProperties'];constructor(_0x20e27a){super(_0x20e27a),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 _0x4be923=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x421fd9 of this['tableProperties'])_0x4be923['enableCommand'](_0x421fd9,(_0x209ead,_0x3477e1)=>{const _0x32fd04=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x421fd9,[_0x32fd04],this['tableProperties'],'tableProperties',_0x209ead,_0x3477e1);});_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4be923['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3a24f0,_0x10307f)=>this['handleDiscardAction'](this['tableProperties'],_0x3a24f0,_0x10307f)),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x53e764 of this['tableCellProperties'])_0x4be923['enableCommand'](_0x53e764,(_0x3cdf6b,_0x58124f)=>{const _0x47e5aa=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x53e764,_0x47e5aa,this['tableCellProperties'],'tableCellProperties',_0x3cdf6b,_0x58124f);});_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4be923['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3ac0d8,_0x3ec10f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3ac0d8,_0x3ec10f)),_0x4be923['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4be923['descriptionFactory']['registerDescriptionCallback'](_0x3d2e95=>this['handleSuggestionDescription'](_0x3d2e95));}['_handlePropertyChange'](_0x13fe75,_0x1aac79,_0x3b1c95,_0x3dd696,_0x20f9c5,_0x34b472){const _0x5c8406=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x34b472['batch'],()=>{for(const _0x161d33 of _0x1aac79){if(this['_getSuggestion'](_0x161d33,_0x3dd696))_0x20f9c5(_0x34b472);else{const _0x251957={};for(const _0x5b3aa1 of _0x3b1c95){const _0x58d079=_0x161d33['getAttribute'](_0x5b3aa1);void 0x0!==_0x58d079&&(_0x251957[_0x5b3aa1]=_0x58d079);}_0x20f9c5(_0x34b472),_0x5c8406['markBlockFormat'](_0x161d33,{'commandParams':[_0x251957]},[],_0x3dd696);}}});}['handleDiscardAction'](_0x4ce04c,_0x2d2cb8,_0x444129){const _0x57501c=_0x2d2cb8[0x0]['start']['nodeAfter'],_0x2efd7=_0x444129['commandParams'][0x0];this['editor']['model']['change'](_0x1874fa=>{for(const _0x54e235 of _0x4ce04c)void 0x0!==_0x2efd7[_0x54e235]?_0x1874fa['setAttribute'](_0x54e235,_0x2efd7[_0x54e235],_0x57501c):_0x1874fa['removeAttribute'](_0x54e235,_0x57501c);});}['handleSuggestionDescription'](_0x4ae024){if(_0x4ae024['data'])switch(_0x4ae024['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'](_0x459f40,_0x37b883){const _0xe389c2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x23b92f of _0xe389c2['getSuggestions']({'skipNotAttached':!0x0})){const _0x5f4bc2=_0x23b92f['getContainedElement']();if(_0x23b92f['subType']===_0x37b883&&_0x5f4bc2===_0x459f40)return _0x23b92f;}return null;}}const m='$elementName';class d extends _0x28b250{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x148996,_0x305085,R,E,U,V,F,L,G,J,K,H,W,Q,X,Y,Z,tt,it,nt,et,st,rt,ot,at,ct,ut,ht,gt,pt,ft,q,z,lt,dt,mt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Nt,Rt,Dt,Mt,Bt,Et,$t,Tt,xt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3322eb){super(_0x3322eb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59bf40,_0x4e7081,_0x4b8054,_0x5763b8)=>{this['_model']['change'](()=>{for(const _0x48510b of[..._0x5763b8,..._0x4b8054])this['_model']['markers']['has'](_0x48510b)&&_0x3322eb['editing']['reconvertMarker'](_0x48510b);});}),this['descriptionFactory']=new O(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3322eb['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(),_0x3322eb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3322eb['config']['get']('trackChanges.trackFormatChanges'),_0x3322eb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3322eb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new D(_0x3322eb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x30804d=this['editor'],_0x2f7a22=(_0x395b8c,_0x18911e)=>{if('attribute'!=_0x395b8c)return'ck-suggestion-marker-'+_0x395b8c;const _0x1f3a25=_0x18911e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1f3a25)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x30804d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2343fb=>{const {id:_0x328bcd,authorId:_0x457972,type:_0x4d865c,subType:_0x3927db}=this['_splitMarkerName'](_0x2343fb['markerName']),_0x50b12e=['ck-suggestion-marker',_0x2f7a22(_0x4d865c,_0x3927db)];let _0x323090=0xbb8;return this['activeMarkers']['includes'](_0x2343fb['markerName'])&&(_0x50b12e['push']('ck-suggestion-marker--active'),_0x323090=0xbc2),'deletion'==_0x4d865c&&(_0x323090+=0x5),{'classes':_0x50b12e,'attributes':{'data-suggestion':_0x328bcd,'data-author-id':_0x457972},'priority':_0x323090};}}),_0x30804d['conversion']['for']('dataDowncast')['add'](_0x176016=>{_0x176016['on']('addMarker:suggestion',(_0x44bd95,_0x401b9e,_0x103460)=>{if(!_0x103460['options']['showSuggestionHighlights'])return;const _0x417896=_0x401b9e['item'];if(!_0x417896)return;const _0x32d3d0=_0x103460['mapper']['toViewElement'](_0x417896);_0x30804d['model']['schema']['isObject'](_0x417896)&&_0x32d3d0&&!_0x32d3d0['getCustomProperty']('widget')&&_0x32d3d0['is']('containerElement')&&_0x5b3197(_0x32d3d0,_0x103460['writer']);},{'priority':'high'});}),_0x30804d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d9324,_0x4e1e67)=>{if(!_0x4e1e67['options']['showSuggestionHighlights'])return null;const {id:_0x50bfee,authorId:_0x125d99,type:_0x4c923b,subType:_0x9e9c96}=this['_splitMarkerName'](_0x5d9324['markerName']);return{'classes':['ck-suggestion-marker',_0x2f7a22(_0x4c923b,_0x9e9c96)],'priority':0xbb8,'attributes':{'data-suggestion':_0x50bfee,'data-author-id':_0x125d99}};}});const _0x5981b5=({showActiveMarkers:_0xda0220=!0x0,isAttributeSuggestion:_0x4763c4=!0x1}={})=>(_0x1ada13,_0x53325b,_0x24ef38)=>{if(!_0x53325b['item'])return;const {id:_0x22e76a,authorId:_0x58b4cb}=this['_splitMarkerName'](_0x53325b['markerName']);if(_0x4763c4){const _0x258966=this['_suggestions']['get'](_0x22e76a),_0x3e7665=this['_getAttributeKey'](_0x258966);if(!this['_isBlockAttribute'](_0x3e7665))return;}if(_0x53325b['item']['is']('selection'))return void _0x24ef38['consumable']['consume'](_0x53325b['item'],_0x1ada13['name']);const _0x1b38ab=_0x24ef38['mapper']['toViewElement'](_0x53325b['item']);if(_0x53325b['item']['is']('element')&&_0x30804d['model']['schema']['isBlock'](_0x53325b['item'])&&!_0x1b38ab['getCustomProperty']('addHighlight')){_0x24ef38['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1b38ab),_0x24ef38['writer']['setAttribute']('data-suggestion',_0x22e76a,_0x1b38ab),_0x24ef38['writer']['setAttribute']('data-author-id',_0x58b4cb,_0x1b38ab),_0x24ef38['mapper']['bindElementToMarker'](_0x1b38ab,_0x53325b['markerName']),_0xda0220&&(this['activeMarkers']['includes'](_0x53325b['markerName'])?_0x24ef38['writer']['addClass']('ck-suggestion-marker--active',_0x1b38ab):_0x24ef38['writer']['removeClass']('ck-suggestion-marker--active',_0x1b38ab));for(const _0x19a12d of _0x30804d['model']['createRangeIn'](_0x53325b['item'])['getItems']())_0x24ef38['consumable']['consume'](_0x19a12d,_0x1ada13['name']);_0x24ef38['consumable']['consume'](_0x53325b['item'],_0x1ada13['name']);}};_0x30804d['conversion']['for']('dataDowncast')['add'](_0x199c2e=>{_0x199c2e['on']('addMarker:suggestion:formatBlock',(_0x452f63,_0x2b7676,_0x19148c)=>{_0x19148c['options']['showSuggestionHighlights']&&_0x5981b5({'showActiveMarkers':!0x1})(_0x452f63,_0x2b7676,_0x19148c);},{'priority':'highest'});}),_0x30804d['conversion']['for']('dataDowncast')['add'](_0x1caca3=>{_0x1caca3['on']('addMarker:suggestion:attribute',(_0x4b5f95,_0x1f0ed7,_0x322b85)=>{_0x322b85['options']['showSuggestionHighlights']&&_0x5981b5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4b5f95,_0x1f0ed7,_0x322b85);},{'priority':'highest'});}),_0x30804d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x56eda9,_0x1100f3)=>{if(_0x1100f3['options']['showSuggestionHighlights']){const {id:_0x5a3f9a,authorId:_0xc6f669}=this['_splitMarkerName'](_0x56eda9);return _0x56eda9['includes'](':split')||_0x56eda9['includes'](':merge')?{'group':'suggestion','name':_0x56eda9['substr'](0xb),'attributes':{'data-suggestion':_0x5a3f9a,'data-author-id':_0xc6f669}}:null;}return{'group':'suggestion','name':_0x56eda9['substr'](0xb)};}}),_0x30804d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xa104ea,{writer:_0x704d5a})=>{let _0x562929='suggestion:'+_0xa104ea['getAttribute']('suggestion-type')+':'+_0xa104ea['getAttribute']('id');return _0xa104ea['getAttribute']('marker-count')&&(_0x562929+=':'+_0xa104ea['getAttribute']('marker-count')),_0x704d5a['createElement']('$marker',{'data-name':_0x562929});}}),_0x30804d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x5c4404=>{_0x5c4404['on']('addMarker:suggestion:formatBlock',_0x5981b5(),{'priority':'high'});}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x3ecedb=>{_0x3ecedb['on']('addMarker:suggestion:attribute',_0x5981b5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x14c532=>{_0x14c532['on']('removeMarker:suggestion:formatBlock',(_0x394b9c,_0x4934bf,_0x2549d9)=>{const _0x26bc28=_0x2549d9['mapper']['markerNameToElements'](_0x4934bf['markerName']);if(_0x26bc28){for(const _0x113e91 of _0x26bc28)_0x113e91['getCustomProperty']('addHighlight')||(_0x2549d9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x113e91),_0x2549d9['writer']['removeAttribute']('data-suggestion',_0x113e91),_0x2549d9['writer']['removeAttribute']('data-author-id',_0x113e91),_0x2549d9['mapper']['unbindElementFromMarkerName'](_0x113e91,_0x4934bf['markerName']));}},{'priority':'high'});}),_0x30804d['conversion']['for']('editingDowncast')['add'](_0x2d98a5=>{_0x2d98a5['on']('removeMarker:suggestion:attribute',(_0x49c639,_0x212373,_0x5e9295)=>{const _0x3c9f30=_0x5e9295['mapper']['markerNameToElements'](_0x212373['markerName']);if(!_0x3c9f30)return;const {id:_0x110ef5}=this['_splitMarkerName'](_0x212373['markerName']),_0x13b684=this['_suggestions']['get'](_0x110ef5),_0x75a639=this['_getAttributeKey'](_0x13b684);if(this['_isBlockAttribute'](_0x75a639)){for(const _0x290850 of _0x3c9f30)_0x290850['getCustomProperty']('addHighlight')||(_0x5e9295['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x290850),_0x5e9295['writer']['removeAttribute']('data-suggestion',_0x290850),_0x5e9295['writer']['removeAttribute']('data-author-id',_0x290850),_0x5e9295['mapper']['unbindElementFromMarkerName'](_0x290850,_0x212373['markerName']));}},{'priority':'high'});}),_0x30804d['model']['document']['registerPostFixer'](_0x8aed8c=>{let _0x3f0bcc=!0x1;const _0x8c19a3=Array['from'](_0x30804d['model']['document']['differ']['getChangedMarkers']()),_0x4a2303=new Set();for(const {name:_0x3e6e5d,data:_0xafbb48}of _0x8c19a3){const {group:_0x5aa178,type:_0x17353b,subType:_0x539a10,id:_0x21a7eb}=this['_splitMarkerName'](_0x3e6e5d);if('suggestion'!==_0x5aa178)continue;const _0x10bc48=this['_suggestions']['get'](_0x21a7eb);if(null!=_0xafbb48['newRange']){'formatInline'==_0x17353b&&(_0x3f0bcc=_0x3f0bcc||Gt(_0xafbb48['newRange'],_0x3e6e5d,_0x8aed8c,_0x30804d['model']['schema']));const _0x393bc8='attribute'==_0x17353b&&this['_isBlockAttribute'](_0x539a10['split']('|')[0x0]);if(_0xafbb48['newRange']['isCollapsed']||'$graveyard'==_0xafbb48['newRange']['root']['rootName']||'formatBlock'==_0x17353b&&!Jt(_0xafbb48['newRange'])||_0x393bc8&&!Jt(_0xafbb48['newRange'])||'deletion'==_0x17353b&&!(!Pt(_0x565699=_0xafbb48['newRange'])&&!function(_0x19790b){return _0x19790b['start']['parent']==_0x19790b['end']['nodeBefore']&&_0x19790b['start']['isAtEnd'];}(_0x565699)))_0x8aed8c['removeMarker'](_0x3e6e5d),_0x3f0bcc=!0x0;else{if(!_0x10bc48||!_0x10bc48['isInContent'])continue;if(_0xafbb48['newRange']&&_0xafbb48['oldRange']&&_0xafbb48['newRange']['isEqual'](_0xafbb48['oldRange']))continue;_0x4a2303['add'](_0x10bc48);}}}var _0x565699;return _0x4a2303['size']>0x0&&(_0x3f0bcc=!!this['_joinWithAdjacentSuggestions'](_0x4a2303)||_0x3f0bcc),_0x3f0bcc;}),_0x30804d['model']['document']['registerPostFixer'](_0x2d46ad=>{let _0x210286=!0x1;for(const _0x236775 of _0x30804d['model']['document']['differ']['getChanges']())if('insert'==_0x236775['type'])for(const _0x54e775 of this['_suggestions']['values']()){if(_0x54e775['isMultiRange']||!_0x54e775['isInContent'])continue;const _0x4e71a3='formatBlock'==_0x54e775['type'],_0x5d597b=this['_getAttributeKey'](_0x54e775),_0x56da5a=_0x5d597b&&this['_isBlockAttribute'](_0x5d597b);if(!_0x4e71a3&&!_0x56da5a)continue;const _0xcc6376=_0x54e775['getFirstRange']();if(_0xcc6376['start']['parent']!=_0xcc6376['end']['parent']&&!_0xcc6376['end']['isAtEnd']){const _0x3d75f4=_0x30804d['model']['createPositionAt'](_0xcc6376['start']['nodeAfter'],'end'),_0x12992e=_0x30804d['model']['createRange'](_0xcc6376['start'],_0x3d75f4);_0x2d46ad['updateMarker'](_0x54e775['getFirstMarker'](),{'range':_0x12992e}),_0x210286=!0x0;}}return _0x210286;}),_0x30804d['model']['document']['registerPostFixer'](_0x262954=>this['_processAttributeChanges'](_0x262954)),_0x30804d['model']['document']['registerPostFixer'](_0x24588e=>!_0x24588e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x24588e)),_0x30804d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x30804d['model']['document']['on']('change:data',(_0x105a9e,_0x55e050)=>{if(!_0x55e050['isLocal']||_0x55e050['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xd3e023=_0x30804d['model']['document']['differ']['getChanges']();if(0x0==_0xd3e023['length'])return;const _0xedf205=[],_0x1b9b2a=_0xd3e023['filter'](_0x15e37a=>'attribute'==_0x15e37a['type']),_0x9eb926=_0xd3e023['filter'](_0x331125=>'insert'==_0x331125['type']&&'$text'!=_0x331125['name']);for(const _0x49ae1a of _0x1b9b2a)this['_isRegisteredAttribute'](_0x49ae1a['attributeKey'])&&_0xedf205['push']({'key':_0x49ae1a['attributeKey'],'newValue':_0x49ae1a['attributeNewValue'],'oldValue':_0x49ae1a['attributeOldValue'],'range':Kt(_0x49ae1a['range'],_0x30804d['model'])});for(const _0xcc6821 of _0x9eb926){if('rename'!=_0xcc6821['action']&&'refresh'!=_0xcc6821['action'])continue;const _0x2cac07=Ht(_0xcc6821['position']['nodeAfter'],_0x30804d['model']),_0x23fb14=_0xcc6821['before'];'rename'==_0xcc6821['action']&&_0xedf205['push']({'key':m,'newValue':_0xcc6821['name'],'oldValue':_0x23fb14['name'],'range':_0x2cac07});for(const [_0x585fb3,_0x20bd86]of _0x23fb14['attributes']){if(!this['_isRegisteredAttribute'](_0x585fb3))continue;const _0x2b52b9=_0xcc6821['attributes']['get'](_0x585fb3);_0x20bd86!==_0x2b52b9&&_0xedf205['push']({'key':_0x585fb3,'newValue':_0x2b52b9,'oldValue':_0x20bd86,'range':_0x2cac07});}for(const [_0xe8df64,_0x26d045]of _0xcc6821['attributes'])this['_isRegisteredAttribute'](_0xe8df64)&&(_0x23fb14['attributes']['has'](_0xe8df64)||_0xedf205['push']({'key':_0xe8df64,'newValue':_0x26d045,'oldValue':null,'range':_0x2cac07}));}0x0!=_0xedf205['length']&&_0x30804d['model']['enqueueChange'](_0x55e050,_0x59dacd=>{const _0x4b415e=_0x370ed3();for(const {range:_0x18fd9e,key:_0x46bb3a,oldValue:_0x76b6f6,newValue:_0x2b4912}of _0xedf205)this['markAttributeChange'](_0x18fd9e,_0x46bb3a,_0x76b6f6,_0x2b4912,{'groupId':_0x4b415e});this['_reduceExistingSuggestions'](_0x59dacd,_0xedf205);});},{'priority':'lowest'}),_0x30804d['model']['markers']['on']('update:suggestion',(_0x35350b,_0x45f78f,_0x1a7d60)=>{if(null==_0x1a7d60){const {id:_0x5438c7}=this['_splitMarkerName'](_0x45f78f['name']),_0x3f2208=this['_suggestions']['get'](_0x5438c7);_0x3f2208&&_0x3f2208['addMarkerName'](_0x45f78f['name']);}}),_0x30804d['model']['document']['on']('change:data',()=>{const _0x253b5=Array['from'](_0x30804d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23217f=>'suggestion'===this['_splitMarkerName'](_0x23217f['name'])['group']);if(0x0===_0x253b5['length'])return;_0x253b5['sort']((_0x159d19,_0x3edcd9)=>{const _0x4cb2f9=_0x159d19['data']['oldRange'],_0x164c5f=_0x3edcd9['data']['oldRange'];return null===_0x4cb2f9&&null===_0x164c5f?0x0:null===_0x4cb2f9&&null!==_0x164c5f?-0x1:null!==_0x4cb2f9&&null===_0x164c5f?0x1:_0x4cb2f9['start']['isBefore'](_0x164c5f['start'])?-0x1:0x1;});const _0x5a64f9=new Set(),_0xee4263=new Set();for(const {name:_0x41e058,data:_0x4ebd9a}of _0x253b5){const {id:_0x326757}=this['_splitMarkerName'](_0x41e058);if(null===_0x4ebd9a['oldRange']){const _0x5f2890=this['_handleNewSuggestionMarker'](_0x41e058);_0xee4263['add'](_0x5f2890);}else{const _0x5deb72=this['_suggestions']['get'](_0x326757);null!==_0x4ebd9a['newRange']||_0x5deb72['isInContent']?(_0x5a64f9['add'](_0x5deb72['head']),_0xee4263['add'](_0x5deb72)):this['_removeSuggestion'](_0x5deb72);}}_0xee4263['size']>0x0&&this['_refreshSuggestionsChain'](_0xee4263);for(const _0x3d218f of _0x5a64f9)this['fire']('suggestionChanged',_0x3d218f);}),_0x30804d['model']['on']('applyOperation',(_0x130b49,_0x5ddeb6)=>{const _0x511274=_0x5ddeb6[0x0];if(!this['_suggestions']['size'])return;if(!_0x511274['isDocumentOperation'])return;if(_0x511274['batch']['isUndo']||!_0x511274['batch']['isLocal'])return;let _0x57002c,_0x43f3fd;switch(_0x511274['type']){case'insert':_0x57002c=_0x30804d['model']['createPositionAt'](_0x511274['position']),_0x43f3fd=_0x57002c['getShiftedBy'](_0x511274['howMany']);break;case'split':_0x57002c=_0x30804d['model']['createPositionAt'](_0x511274['splitPosition']),_0x43f3fd=_0x30804d['model']['createPositionAt'](_0x511274['moveTargetPosition']);break;case'move':_0x57002c=_0x30804d['model']['createPositionAt'](_0x511274['targetPosition']),_0x43f3fd=_0x57002c['getShiftedBy'](_0x511274['howMany']);break;default:return;}const _0x4a5b32=_0x30804d['model']['createRange'](_0x57002c,_0x43f3fd);_0x30804d['model']['change'](()=>{for(const {suggestion:_0x27a6ce,meta:_0x1158bb}of this['_findSuggestions'](_0x4a5b32)){if(_0x27a6ce['isMultiRange'])continue;if('formatInline'==_0x27a6ce['type'])continue;const _0x516050=this['_getAttributeKey'](_0x27a6ce);if(_0x516050&&this['_isBlockAttribute'](_0x516050)&&'split'!=_0x511274['type'])continue;const _0x2e559a=_0x27a6ce['data']&&_0x27a6ce['data']['multipleBlocks'];('formatBlock'!=_0x27a6ce['type']||'split'==_0x511274['type']&&!_0x2e559a)&&(_0x1158bb['containsRangeInObject']||'insertion'==_0x27a6ce['type']&&_0x1158bb['isOwn']||_0x27a6ce['getFirstRange']()['containsRange'](_0x4a5b32)&&this['_breakSuggestionMarker'](_0x27a6ce,_0x57002c,_0x43f3fd));}});},{'priority':'lowest'}),_0x30804d['model']['on']('deleteContent',(_0x581ff7,_0x6968cb)=>{const _0x49577d=_0x6968cb[0x0],_0x4ea21a=_0x6968cb[0x1];if(_0x4ea21a&&_0x4ea21a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x49577d['isCollapsed'])return;const _0x2e6371=_0x30804d['model']['schema'],{start:_0x43936f,end:_0x80d442}=_0x49577d['getFirstRange'](),_0x7895fb=_0x43936f['nodeAfter']&&_0x2e6371['isLimit'](_0x43936f['nodeAfter'])?null:_0x2e6371['getNearestSelectionRange'](_0x43936f,'forward'),_0x50631b=_0x80d442['nodeBefore']&&_0x2e6371['isLimit'](_0x80d442['nodeBefore'])?null:_0x2e6371['getNearestSelectionRange'](_0x80d442,'backward'),_0x50e193=_0x30804d['model']['createRange'](_0x7895fb?_0x7895fb['start']:_0x43936f,_0x50631b?_0x50631b['end']:_0x80d442);_0x30804d['model']['change'](_0x5bee86=>{this['markDeletion'](_0x50e193);const _0xc1175c=_0x30804d['model']['schema']['getNearestSelectionRange'](_0x50e193['start']);_0x49577d['is']('documentSelection')?_0x5bee86['setSelection'](_0xc1175c):_0x49577d['setTo'](_0xc1175c);}),_0x581ff7['stop']();},{'priority':_0x4066a6['normal']+0xa}),_0x30804d['model']['on']('insertContent',(_0xf9402a,_0x5b1988)=>{const _0x47cf15=_0x5b1988[_0x5b1988['length']-0x1];_0x47cf15&&_0x47cf15['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x30804d['model']['change'](()=>{let _0x70b6e1=_0x30804d['model']['insertContent'](_0x5b1988[0x0],_0x5b1988[0x1],_0x5b1988[0x2],{'forceDefaultExecution':!0x0});if(!_0x70b6e1)return;_0xf9402a['return']=_0x70b6e1['clone']();const _0x3cf28d=_0x70b6e1['end']['nodeBefore'],_0x24e2db=_0x30804d['model']['schema'];_0x3cf28d&&_0x24e2db['isBlock'](_0x3cf28d)&&!_0x24e2db['isObject'](_0x3cf28d)&&(_0x70b6e1=_0x30804d['model']['createRange'](_0x70b6e1['start'],_0x30804d['model']['createPositionAt'](_0x3cf28d,'end'))),this['markInsertion'](_0x70b6e1);}),_0xf9402a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x28ea65=new M(_0x30804d,this['_suggestions']);_0x30804d['commands']['add']('acceptSuggestion',_0x28ea65),this['enableCommand']('acceptSuggestion');const _0x3c6040=new $(_0x30804d,this['_suggestions']);_0x30804d['commands']['add']('discardSuggestion',_0x3c6040),this['enableCommand']('discardSuggestion'),_0x30804d['commands']['add']('acceptAllSuggestions',new B(_0x30804d,_0x28ea65,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x30804d['commands']['add']('discardAllSuggestions',new B(_0x30804d,_0x3c6040,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x30804d['commands']['add']('acceptSelectedSuggestions',new T(_0x30804d,_0x28ea65,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x30804d['commands']['add']('discardSelectedSuggestions',new T(_0x30804d,_0x3c6040,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5bb1d2=_0x30804d['plugins']['get']('CommentsRepository');this['listenTo'](_0x5bb1d2,'addComment',(_0x2f73b4,{threadId:_0x2c4087})=>{const _0x3d7ca5=this['_suggestions']['get'](_0x2c4087);_0x3d7ca5&&_0x3d7ca5['commentThread']&&0x1===_0x3d7ca5['commentThread']['length']&&this['_updateSuggestionData'](_0x2c4087,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5bb1d2,'removeComment',(_0x500963,{threadId:_0xbe4adb})=>{const _0x3a3c15=this['_suggestions']['get'](_0xbe4adb);_0x3a3c15&&_0x3a3c15['commentThread']&&!_0x3a3c15['commentThread']['length']&&this['_updateSuggestionData'](_0xbe4adb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3c49e8){const _0x5203e1=_0x29d374([0x79,0x4a,0x61,0x55,0x35,0x41,0x38,0x30,0x4b,0x37,0x68,0x58,0x4e,0x44,0x66,0x31,0x33,0x4c,0x52,0x6c,0x59,0x42,0x64,0x32,0x48,0x49,0x74,0x67,0x65,0x62,0x45,0x50,0x72,0x34,0x77,0x54,0x46,0x70,0x76,0x69,0x5a,0x75,0x6e,0x36,0x73,0x6d,0x47,0x6f,0x51,0x71,0x6b,0x6a,0x39,0x63,0x57,0x4f,0x78,0x56,0x53,0x43,0x7a,0x4d]),_0x53649d=0x32316185,_0x1ce0fc=0x32360bad^_0x53649d,_0x51fe0a=window[_0x29d374([0x44,0x61,0x74,0x65])][_0x29d374([0x6e,0x6f,0x77])](),_0x337019=_0x3c49e8[_0x29d374([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x139c39=new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x397562=>{_0x337019[_0x29d374([0x6f,0x6e,0x63,0x65])](_0x29d374([0x72,0x65,0x61,0x64,0x79]),_0x397562);}),_0xd7bf9f={[_0x29d374([0x6b,0x74,0x79])]:_0x29d374([0x45,0x43]),[_0x29d374([0x75,0x73,0x65])]:_0x29d374([0x73,0x69,0x67]),[_0x29d374([0x63,0x72,0x76])]:_0x29d374([0x50,0x2d,0x32,0x35,0x36]),[_0x29d374([0x78])]:_0x29d374([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]),[_0x29d374([0x79])]:_0x29d374([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]),[_0x29d374([0x61,0x6c,0x67])]:_0x29d374([0x45,0x53,0x32,0x35,0x36])},_0x2ffcf9=_0x337019[_0x29d374([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29d374([0x67,0x65,0x74])](_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb4461(){let _0x5a7c1b,_0x453517=null,_0x4730e1=null;try{if(_0x2ffcf9==_0x29d374([0x47,0x50,0x4c]))return _0x29d374([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a7c1b=_0x421170(),!_0x5a7c1b)return _0x29d374([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a7c1b[_0x29d374([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4730e1=_0x365602(_0x5a7c1b[_0x29d374([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a7c1b[_0x29d374([0x6a,0x74,0x69])])),await _0x481037()?_0x2cd4cc()?_0x4306d4()?_0x29d374([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb6c353()?(_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29d374([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x453517=_0x4f5f97(_0x29d374([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29d374([0x74,0x72,0x69,0x61,0x6c])&&(_0x453517=_0x4f5f97(_0x29d374([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x114c49()):_0x29d374([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29d374([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29d374([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29d374([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4306d4(){const _0x23129d=[_0x29d374([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29d374([0x74,0x72,0x69,0x61,0x6c])][_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51fe0a/0x3e8:0xe10*_0x1ce0fc;return _0x5a7c1b[_0x29d374([0x65,0x78,0x70])]<_0x23129d;}function _0x2cd4cc(){const _0x4a8072=_0x5a7c1b[_0x29d374([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a8072)return!0x1;if(_0x4a8072[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x2a])))return!0x0;if(_0x4a8072[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x54,0x43])))return!0x0;if(_0x4a8072[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x52,0x54,0x43]))){if(_0x596f32())return!0x0;if(_0x565eca()||_0x5aa2e0())return!0x0;}return!0x1;}function _0xb6c353(){const _0x401760=_0x5a7c1b[_0x29d374([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x401760||0x0==_0x401760[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10a161}=new URL(window[_0x29d374([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x401760[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a161))return!0x0;const _0x2bb96e=_0x10a161[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e]));return _0x401760[_0x29d374([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x361128=>_0x361128[_0x29d374([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d374([0x2a])))[_0x29d374([0x6d,0x61,0x70])](_0x459f38=>_0x459f38[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e])))[_0x29d374([0x73,0x6f,0x6d,0x65])](_0xf79a2e=>_0x2bb96e[_0x29d374([0x65,0x76,0x65,0x72,0x79])]((_0x4ccb4b,_0x34a94d)=>_0xf79a2e[_0x34a94d]===_0x4ccb4b||_0xf79a2e[_0x34a94d]===_0x29d374([0x2a])));}function _0x114c49(){return _0x453517&&_0x4730e1?new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17f056,_0x19588b)=>{_0x453517[_0x29d374([0x74,0x68,0x65,0x6e])](_0x17f056,_0x19588b),_0x4730e1[_0x29d374([0x74,0x68,0x65,0x6e])](_0x2fb2ad=>{_0x2fb2ad!=_0x29d374([0x56,0x61,0x6c,0x69,0x64])&&_0x17f056(_0x2fb2ad);},_0x19588b);}):_0x453517||_0x4730e1||_0x29d374([0x56,0x61,0x6c,0x69,0x64]);}}function _0x365602(_0x3c192e,_0x21acf2){return new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x326581=>{if(_0xc07f92())return _0x326581(_0x29d374([0x56,0x61,0x6c,0x69,0x64]));_0x4eaf87(),_0x337019[_0x29d374([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29d374([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2bca29=!0x1;const _0x510d1b=_0x370ed3();function _0x34168d(_0x5b5b8a){return!!_0x5b5b8a&&(typeof _0x5b5b8a===_0x29d374([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b5b8a===_0x29d374([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b5b8a[_0x29d374([0x74,0x68,0x65,0x6e])]===_0x29d374([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b5b8a[_0x29d374([0x63,0x61,0x74,0x63,0x68])]===_0x29d374([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7eba59(_0x4377e4){_0x173c18(_0x4377e4)[_0x29d374([0x74,0x68,0x65,0x6e])](_0x36dc1c=>{if(!_0x36dc1c||_0x36dc1c[_0x29d374([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29d374([0x6f,0x6b]))return _0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1255d5(_0x5de6c0(_0x510d1b+_0x21acf2))!=_0x36dc1c[_0x29d374([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29d374([0x56,0x61,0x6c,0x69,0x64]);})[_0x29d374([0x74,0x68,0x65,0x6e])](_0x2b6f81=>(_0x2b6830(),_0x2b6f81),()=>{const _0x2952f7=_0xa1f65a();return null==_0x2952f7?(_0x2b6830(),_0x29d374([0x56,0x61,0x6c,0x69,0x64])):_0x29d374(_0x51fe0a-_0x2952f7>(0x163de585^_0x53649d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29d374([0x74,0x68,0x65,0x6e])](_0x326581)[_0x29d374([0x63,0x61,0x74,0x63,0x68])](()=>{_0x326581(_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d0b78=0x32078f05^_0x53649d;function _0x2b6830(){const _0x4a96f2=_0x29d374([0x6c,0x6c,0x63,0x74,0x2d])+_0x1255d5(_0x5de6c0(_0x3c192e)),_0x3513be=_0x1aa936(_0x1255d5(window[_0x29d374([0x4d,0x61,0x74,0x68])][_0x29d374([0x63,0x65,0x69,0x6c])](_0x51fe0a/_0x4d0b78)));window[_0x29d374([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29d374([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a96f2,_0x3513be);}function _0xa1f65a(){const _0x2e000=_0x29d374([0x6c,0x6c,0x63,0x74,0x2d])+_0x1255d5(_0x5de6c0(_0x3c192e)),_0x148ccf=window[_0x29d374([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29d374([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e000);return _0x148ccf?window[_0x29d374([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1aa936(_0x148ccf),0x10)*_0x4d0b78:null;}function _0x173c18(_0x4d6912){return new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55c0d7,_0x1fdb14)=>{_0x4d6912[_0x29d374([0x74,0x68,0x65,0x6e])](_0x55c0d7,_0x1fdb14),window[_0x29d374([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fdb14,0x3230b545^_0x53649d);});}}_0x337019[_0x29d374([0x6f,0x6e])](_0x29d374([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfc931a,_0x1946f1)=>{if(_0x1946f1[0x0]!=_0x3c192e)return _0x326581(_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1946f1[0x1]={..._0x1946f1[0x1],[_0x29d374([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x510d1b};},{[_0x29d374([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29d374([0x68,0x69,0x67,0x68])}),_0x337019[_0x29d374([0x6f,0x6e])](_0x29d374([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e07c2=>{_0x34168d(_0x1e07c2[_0x29d374([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2bca29=!0x0,_0x7eba59(_0x1e07c2[_0x29d374([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29d374([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29d374([0x6c,0x6f,0x77])}),_0x139c39[_0x29d374([0x74,0x68,0x65,0x6e])](()=>{_0x2bca29||_0x326581(_0x29d374([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc07f92(){return _0x337019[_0x29d374([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29d374([0x76,0x69,0x65,0x77])][_0x29d374([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29d374([0x61,0x75,0x74,0x6f]);}function _0x4eaf87(){_0x337019[_0x29d374([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29d374([0x76,0x69,0x65,0x77])][_0x29d374([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29d374([0x61,0x75,0x74,0x6f]);}}function _0x4f5f97(_0x22b709){const _0x250753=[new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f816f=>setTimeout(_0x1f816f,0x32385f49^_0x53649d)),_0x139c39[_0x29d374([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f4533=>{let _0x4c18d5=0x0;_0x337019[_0x29d374([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d374([0x6f,0x6e])](_0x29d374([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2827dd,_0x544d79)=>{_0x544d79[0x0][_0x29d374([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c18d5++,_0x4c18d5==(0x3231607d^_0x53649d)&&(_0x5f4533(),_0x2827dd[_0x29d374([0x6f,0x66,0x66])]());});}))];return window[_0x29d374([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29d374([0x72,0x61,0x63,0x65])](_0x250753)[_0x29d374([0x74,0x68,0x65,0x6e])](()=>_0x22b709);}async function _0x2ae01f(){await _0x139c39,_0x337019[_0x29d374([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d374([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x51ffa6,_0x337019[_0x29d374([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d374([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x51ffa6,_0x337019[_0x29d374([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29d374([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x596f32(){return _0x54929d(_0x29d374([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ad443(_0x29d374([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29d374([0x73,0x74,0x61,0x74,0x65])]==_0x29d374([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x565eca(){return _0x54929d(_0x29d374([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 _0x5aa2e0(){return _0x54929d(_0x29d374([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x53eb32(_0x4996aa){const _0x572fd0=_0x46c96a();_0x337019[_0x572fd0]=_0x29d374([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4996aa,_0x4996aa!=_0x29d374([0x56,0x61,0x6c,0x69,0x64])&&_0x2ae01f();}function _0x46c96a(){const _0x27414e=window[_0x29d374([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29d374([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29d374([0x6e,0x6f,0x77])]())[_0x29d374([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29d374([0x2e]),'');let _0x3142ce=_0x29d374([0x79]);for(let _0x49bd2c=0x0;_0x49bd2c<_0x27414e[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49bd2c+=0x2){let _0x12d538=window[_0x29d374([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27414e[_0x29d374([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49bd2c,_0x49bd2c+0x2));_0x12d538>=_0x5203e1[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12d538-=_0x5203e1[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3142ce+=_0x5203e1[_0x12d538];}return _0x3142ce;}function _0x421170(){const _0x168c80=_0x2ffcf9[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e]));if(0x3!=_0x168c80[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4746d7(_0x168c80[0x1]);function _0x4746d7(_0x1fc145){const _0x13e359=_0x5ab959(_0x1fc145);return _0x13e359&&_0x44a3b0()?_0x13e359:null;function _0x44a3b0(){const _0x35e94f=_0x13e359[_0x29d374([0x6a,0x74,0x69])],_0x223cd9=window[_0x29d374([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35e94f[_0x29d374([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35e94f[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28df26={..._0x13e359,[_0x29d374([0x6a,0x74,0x69])]:_0x35e94f[_0x29d374([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x35e94f[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28df26[_0x29d374([0x76,0x63])],_0x5de6c0(_0x28df26)==_0x223cd9;}}}async function _0x481037(){let _0x4e8f03=!0x0;try{const _0x56471d=_0x2ffcf9[_0x29d374([0x73,0x70,0x6c,0x69,0x74])](_0x29d374([0x2e])),[_0xa14cd1,_0xe96bbf,_0x1659ff]=_0x56471d;return _0x1c7822(_0xa14cd1),await _0x4b4628(_0xa14cd1,_0xe96bbf,_0x1659ff),_0x4e8f03;}catch{return!0x1;}function _0x1c7822(_0x1243c6){const _0x2f715d=_0x5ab959(_0x1243c6);_0x2f715d&&_0x2f715d[_0x29d374([0x61,0x6c,0x67])]==_0x29d374([0x45,0x53,0x32,0x35,0x36])||(_0x4e8f03=!0x1);}async function _0x4b4628(_0x4e190a,_0x1eab07,_0x234ce4){const _0x257074=window[_0x29d374([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29d374([0x66,0x72,0x6f,0x6d])](_0x1eff8c(_0x234ce4),_0x33f429=>_0x33f429[_0x29d374([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b79=new window[(_0x29d374([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29d374([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e190a+_0x29d374([0x2e])+_0x1eab07),_0x595562=window[_0x29d374([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29d374([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x595562)return;const _0x4d5f00=await _0x595562[_0x29d374([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29d374([0x6a,0x77,0x6b]),_0xd7bf9f,{[_0x29d374([0x6e,0x61,0x6d,0x65])]:_0x29d374([0x45,0x43,0x44,0x53,0x41]),[_0x29d374([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29d374([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29d374([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x595562[_0x29d374([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29d374([0x6e,0x61,0x6d,0x65])]:_0x29d374([0x45,0x43,0x44,0x53,0x41]),[_0x29d374([0x68,0x61,0x73,0x68])]:{[_0x29d374([0x6e,0x61,0x6d,0x65])]:_0x29d374([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d5f00,_0x257074,_0x5b79)||(_0x4e8f03=!0x1);}}function _0x5ab959(_0x5dfa2c){return _0x5dfa2c[_0x29d374([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29d374([0x65,0x79]))?JSON[_0x29d374([0x70,0x61,0x72,0x73,0x65])](_0x1eff8c(_0x5dfa2c)):null;}function _0x1eff8c(_0xefabe9){return window[_0x29d374([0x61,0x74,0x6f,0x62])](_0xefabe9[_0x29d374([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29d374([0x2b]))[_0x29d374([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29d374([0x2f])));}function _0x5de6c0(_0x531f16){let _0x1dd929=0x1505;function _0x4b0af6(_0x1c8245){for(let _0x44a367=0x0;_0x44a367<_0x1c8245[_0x29d374([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44a367++){const _0x382c12=_0x1c8245[_0x29d374([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44a367);_0x1dd929=(_0x1dd929<<0x5)+_0x1dd929+_0x382c12,_0x1dd929&=_0x1dd929;}}function _0x4daa69(_0x99ca71){Array[_0x29d374([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x99ca71)?_0x99ca71[_0x29d374([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4daa69):_0x99ca71&&typeof _0x99ca71==_0x29d374([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29d374([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x99ca71)[_0x29d374([0x73,0x6f,0x72,0x74])]()[_0x29d374([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27b768,_0x3627f1])=>{_0x4b0af6(_0x27b768),_0x4daa69(_0x3627f1);}):_0x4b0af6(window[_0x29d374([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x99ca71));}return _0x4daa69(_0x531f16),_0x1dd929>>>0x0;}function _0x1255d5(_0x1351fd){return _0x1351fd[_0x29d374([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29d374([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29d374([0x30]));}function _0x1aa936(_0x2a81ee){return _0x2a81ee[_0x29d374([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29d374([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29d374([0x6a,0x6f,0x69,0x6e])]('');}function _0x54929d(_0x5233d5){return _0x337019[_0x29d374([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29d374([0x68,0x61,0x73])](_0x5233d5);}function _0x5ad443(_0x48b64b){return _0x337019[_0x29d374([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29d374([0x67,0x65,0x74])](_0x48b64b);}function _0x51ffa6(){}function _0x29d374(_0x9cac38){return _0x9cac38['map'](_0x347ba5=>String['fromCharCode'](_0x347ba5))['join']('');}_0x53eb32(await _0xb4461());}(this);}set['adapter'](_0x496b89){if(this['_adapter'])throw new _0x4ee9c2('track-changes-adapter-already-set',this);this['_adapter']=_0x496b89;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x24903e=!0x1,toJSON:_0x4df183=!0x1}={}){const _0x152266=[];for(const _0x32ecf2 of this['_suggestions']['values']())_0x24903e&&!_0x32ecf2['isInContent']||_0x152266['push'](_0x32ecf2);return _0x4df183?_0x152266['map'](_0x3d3429=>_0x3d3429['toJSON']()):_0x152266;}['getSuggestion'](_0x4d3a13){const _0x48ee63=this['_suggestions']['get'](_0x4d3a13);if(!_0x48ee63)throw new _0x4ee9c2('track-changes-suggestion-not-found',this);return _0x48ee63;}['hasSuggestion'](_0x517b1c){return this['_suggestions']['has'](_0x517b1c);}['addSuggestionData'](_0x449786){const {authorId:_0x4dc4a3,id:_0x1c20ff,originalSuggestionId:_0x1b7bb3,attributes:_0x311f0a}=_0x449786,[_0x20a212,_0x122611]=_0x449786['type']['split'](':'),_0x1ac812=this['_suggestions']['get'](_0x1c20ff)||this['_createSuggestion'](_0x20a212,_0x122611,_0x1c20ff,_0x4dc4a3,_0x311f0a,_0x1b7bb3);if(this['_addThreadToSuggestion'](_0x1ac812),this['_checkSuggestionCorrectness'](_0x1ac812,_0x20a212,_0x122611||null,_0x4dc4a3),_0x1ac812['createdAt']=_0x449786['createdAt'],_0x1ac812['_isDataLoaded']=!0x0,_0x311f0a&&_0x311f0a['@external']){const _0x15c39f=_0x311f0a['@external'],_0x44cbc2=this['_getExternalAuthor'](_0x15c39f['authorName']);_0x1ac812['authoredAt']=_0x15c39f['createdAt'],_0x1ac812['author']=_0x44cbc2,_0x1ac812['isExternal']=!0x0;}else _0x1ac812['authoredAt']=_0x449786['createdAt'];switch(_0x449786['data']&&(_0x1ac812['data']=_0x449786['data']),_0x449786['attributes']&&(_0x1ac812['attributes']=_0x449786['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1ac812['_saved']=!0x0),this['_suggestionState']['get'](_0x1ac812)){case'notReady':this['_suggestionState']['set'](_0x1ac812,'dataReady');break;case'markerReady':_0x1ac812['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1ac812])),this['_refreshSuggestionsChain'](new Set([_0x1ac812])),this['_suggestionState']['set'](_0x1ac812,'ready'),this['fire']('suggestionLoaded',_0x1ac812)):this['_suggestionState']['set'](_0x1ac812,'removed');}return _0x1ac812;}['acceptSuggestion'](_0x1802c3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x37f3b5 of _0x1802c3['getAllAdjacentSuggestions']())_0x37f3b5['accept']();});});}['discardSuggestion'](_0x1fc569){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4593c4 of _0x1fc569['getAllAdjacentSuggestions']())_0x4593c4['discard']();});});}['enableCommand'](_0xb1b8c3,_0x2d38a5){const _0x3ac729=this['editor']['commands']['get'](_0xb1b8c3);if(!_0x3ac729)throw new _0x4ee9c2('track-changes-command-not-found',this,{'commandName':_0xb1b8c3});if(this['_enabledCommands']['has'](_0x3ac729))throw new _0x4ee9c2('track-changes-enable-command-twice',this,{'commandName':_0xb1b8c3});this['_enabledCommands']['add'](_0x3ac729),_0x2d38a5&&_0x3ac729['on']('execute',(_0x4e7582,_0x498780)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x498780['length']>0x0&&_0x498780[_0x498780['length']-0x1]&&_0x498780[_0x498780['length']-0x1]['forceDefaultExecution']?_0x498780['pop']():(_0x4e7582['return']=_0x2d38a5((..._0x54cc4f)=>_0x3ac729['execute'](..._0x54cc4f,{'forceDefaultExecution':!0x0}),..._0x498780),_0x4e7582['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a5de0){let _0x751324,_0x5df7f7;const _0x4a7530=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x751324=_0x4a5de0();}catch(_0x272887){_0x5df7f7=_0x272887;}return _0x4a7530||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5df7f7&&_0x4ee9c2['rethrowUnexpectedError'](_0x5df7f7,this),_0x751324;}['markInsertion'](_0x43757d,_0x19a7e5=null,_0x11d63d={}){if(_0x43757d['isCollapsed'])return null;const _0x4ca7b8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x11d63d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b1779,meta:_0x259a37}of this['_findSuggestions'](_0x43757d,'insertion'))if(_0x259a37['isOwn']){if(!_0x259a37['isNextTo']){if(_0x259a37['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x4b1779,_0x11d63d))continue;return _0x4b1779;}if(Wt(_0x4b1779,_0x11d63d))return _0x4b1779;this['_breakSuggestionMarker'](_0x4b1779,_0x43757d['start'],_0x43757d['end']);break;}if(_0x19a7e5==_0x4b1779['subType']&&Wt(_0x4b1779,_0x11d63d)){const _0x4a3e4b=_0x4b1779['getFirstRange']();return _0x4a3e4b['start']['isEqual'](_0x43757d['end'])?this['_setSuggestionRange'](_0x4b1779,this['_model']['createRange'](_0x43757d['start'],_0x4a3e4b['end'])):this['_setSuggestionRange'](_0x4b1779,this['_model']['createRange'](_0x4a3e4b['start'],_0x43757d['end'])),_0x4b1779;}}const _0x2d6f2f=_0x370ed3(),_0x2a1546=_0x4ca7b8['id'],_0x3b5826=_0x19a7e5?'insertion:'+_0x19a7e5:'insertion',_0x19cf38=this['_setSuggestionData']({'id':_0x2d6f2f,'type':_0x3b5826,'createdAt':new Date(),'authorId':_0x2a1546,'attributes':_0x11d63d});return this['_addSuggestionMarker'](_0x3b5826,_0x2d6f2f,_0x2a1546,_0x43757d),_0x19cf38;}['markMultiRangeInsertion'](_0x55c413,_0xc3dee9='multi',_0x45c8eb={}){const _0xe441bd=this['editor']['plugins']['get']('Users')['me'],_0x16c05e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xc3dee9,'join');this['_trackingSessionId']&&(_0x45c8eb['trackingSessionId']=this['_trackingSessionId']);for(const _0x32f331 of this['getSuggestions']())if(_0x32f331['author']['id']==_0xe441bd['id']&&'insertion'==_0x32f331['type']&&_0x32f331['subType']==_0xc3dee9&&Wt(_0x32f331,_0x45c8eb)&&(_0x16c05e(_0x32f331['getRanges'](),_0x55c413)||_0x16c05e(_0x55c413,_0x32f331['getRanges']()))){for(const _0x52e57c of _0x55c413)_0x32f331['addRange'](_0x52e57c);return _0x32f331;}for(const {suggestion:_0xe0c132,meta:_0x184158}of this['_findSuggestions'](_0x55c413,'insertion')){if(!_0x184158['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x184158['containsRangeInObject'])continue;if(!Wt(_0xe0c132,_0x45c8eb))continue;let _0x510a07=!0x0;for(const _0x10f42f of _0xe0c132['getRanges']())for(const _0x56a3d0 of _0x55c413)if(!_0x10f42f['containsRange'](_0x56a3d0)){_0x510a07=!0x1;break;}if(_0x510a07)return _0xe0c132;}const _0x4d439f=_0x370ed3(),_0x4d0135=_0xe441bd['id'],_0x223162='insertion:'+_0xc3dee9,_0x1e48ed=this['_setSuggestionData']({'id':_0x4d439f,'type':_0x223162,'createdAt':new Date(),'authorId':_0x4d0135,'attributes':_0x45c8eb});for(const _0x4f4507 of _0x55c413)this['_addSuggestionMarker'](_0x223162,_0x4d439f,_0x4d0135,_0x4f4507,x['getMultiRangeId']());return _0x1e48ed;}['markInlineFormat'](_0x519b46,_0x52b761,_0x4aec1b=null,_0x424dc7={}){if(_0x4aec1b=_0x4aec1b||Lt(_0x52b761),_0x519b46['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x424dc7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c557b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4aec1b,'accept');return this['forceDefaultExecution'](()=>_0x5c557b([_0x519b46],_0x52b761,_0x424dc7)),null;}const _0xdf81fb=this['editor']['plugins']['get']('Users')['me'],_0x4306fd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4dc87c,meta:_0x232b2b}of this['_findSuggestions'](_0x519b46,'insertion'))_0x232b2b['isOwn']&&!_0x232b2b['isInsideObject']&&_0x4306fd['push'](..._0x4dc87c['getRanges']());}const _0x1c84d6=function(_0x1e4092,_0x383e6d){const _0x5b635f=[];for(const _0x24a58b of _0x383e6d){const _0x593940=_0x1e4092['getIntersection'](_0x24a58b);_0x593940&&_0x5b635f['push'](_0x593940);}return _0x5b635f;}(_0x519b46,_0x4306fd),_0x34129f=function(_0x3fde15,_0x12a992){const _0x4ad16e=[_0x3fde15];for(const _0x3f7bea of _0x12a992){let _0x5db6a3=0x0;for(;_0x5db6a3<_0x4ad16e['length'];){const _0x3635fd=_0x4ad16e[_0x5db6a3]['getDifference'](_0x3f7bea);_0x4ad16e['splice'](_0x5db6a3,0x1,..._0x3635fd),_0x5db6a3+=_0x3635fd['length'];}}return _0x4ad16e;}(_0x519b46,_0x4306fd);_0x1c84d6['length']&&this['_model']['change'](()=>{for(const _0xd6a8d6 of _0x1c84d6){const _0x59ff32=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4aec1b,'accept');this['forceDefaultExecution'](()=>_0x59ff32([_0xd6a8d6],_0x52b761,_0x424dc7));}});for(const _0x5bcc0a of _0x34129f){let _0x3d895a=null,_0x57a35e=_0x5bcc0a['start'],_0x3555e6=_0x5bcc0a['end'];for(const {suggestion:_0x476bc4,meta:_0x2590c3}of this['_findSuggestions'](_0x5bcc0a,'formatInline')){if(!_0x2590c3['isOwn'])continue;if(_0x476bc4['subType']!=_0x4aec1b)continue;if(!Wt(_0x476bc4,_0x424dc7))continue;const _0x129b03=_0x476bc4['getFirstRange']();if(_0x129b03['containsRange'](_0x5bcc0a,!0x0))return null;_0x57a35e=_0x57a35e['isBefore'](_0x129b03['start'])?_0x57a35e:_0x129b03['start'],_0x3555e6=_0x3555e6['isAfter'](_0x129b03['end'])?_0x3555e6:_0x129b03['end'],_0x3d895a?_0x129b03['start']['isBefore'](_0x3d895a['getFirstRange']()['start'])?(_0x3d895a['removeMarkers'](),_0x3d895a=_0x476bc4):_0x476bc4['removeMarkers']():_0x3d895a=_0x476bc4;}const _0x55b670=this['_model']['createRange'](_0x57a35e,_0x3555e6);if(_0x3d895a)this['_setSuggestionRange'](_0x3d895a,_0x55b670);else{const _0x59732f=_0x370ed3(),_0x2c5662=_0xdf81fb['id'];this['_setSuggestionData']({'id':_0x59732f,'type':'formatInline:'+_0x4aec1b,'data':_0x52b761,'createdAt':new Date(),'authorId':_0x2c5662,'attributes':_0x424dc7}),this['_addSuggestionMarker']('formatInline:'+_0x4aec1b,_0x59732f,_0x2c5662,_0x55b670);}}return null;}['markBlockFormat'](_0x1c06cd,_0x54558f,_0x171acf=[],_0x3ff868=null,_0x1babe7={}){_0x54558f['formatGroupId']||(_0x54558f['formatGroupId']=_0x54558f['commandName']),_0x54558f['multipleBlocks']=_0x1c06cd['is']('range'),_0x3ff868=_0x3ff868||Lt(_0x54558f);const _0x274fe2=_0x171acf['map'](_0x576827=>Ht(_0x576827,this['_model'])),_0x68cb5=_0x1c06cd['is']('range')?_0x1c06cd:Ht(_0x1c06cd,this['_model']);if(this['_trackingSessionId']&&(_0x1babe7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x44cd37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff868,'accept');return this['forceDefaultExecution'](()=>_0x44cd37([_0x68cb5],_0x54558f,_0x1babe7)),null;}_0x274fe2['push'](_0x68cb5);let _0x5e3288=!0x0;for(const _0x597f90 of _0x274fe2)if(!this['_rangeIsInLocalUserInsertion'](_0x597f90)){_0x5e3288=!0x1;break;}if(_0x5e3288&&'always'!==this['_trackFormatChanges']){const _0x54ae5b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ff868,'accept');return this['forceDefaultExecution'](()=>_0x54ae5b([_0x68cb5],_0x54558f,_0x1babe7)),null;}let _0x503722=null,_0x1d642b=_0x68cb5['start'],_0x3084f6=_0x68cb5['end'];for(const {suggestion:_0x5017ec,meta:_0x27fa5e}of this['_findSuggestions'](_0x68cb5,'formatBlock')){if(!_0x27fa5e['isOwn'])continue;if(_0x27fa5e['isNextTo']||_0x27fa5e['containsRangeInObject']||_0x27fa5e['isInsideObject'])continue;if(_0x5017ec['data']['formatGroupId']!=_0x54558f['formatGroupId'])continue;if(!Wt(_0x5017ec,_0x1babe7))continue;const _0x3e31b0=_0x5017ec['getFirstRange']();if(_0x5017ec['subType']==_0x3ff868){if(_0x3e31b0['containsRange'](_0x68cb5,!0x0))return null;_0x1d642b=_0x1d642b['isBefore'](_0x3e31b0['start'])?_0x1d642b:_0x3e31b0['start'],_0x3084f6=_0x3084f6['isAfter'](_0x3e31b0['end'])?_0x3084f6:_0x3e31b0['end'],_0x503722?_0x3e31b0['start']['isBefore'](_0x503722['getFirstRange']()['start'])?(_0x503722['removeMarkers'](),_0x503722=_0x5017ec):_0x5017ec['removeMarkers']():_0x503722=_0x5017ec;}else{const _0x4c50fe=_0x68cb5['getIntersection'](_0x3e31b0);this['_cutOutSuggestionMarker'](_0x5017ec,_0x4c50fe);}}const _0x37627f=this['editor']['plugins']['get']('Users')['me'],_0x5cbec9=_0x370ed3(),_0x8f2d26=_0x37627f['id'];if(_0x503722)return this['_setSuggestionRange'](_0x503722,this['_model']['createRange'](_0x1d642b,_0x3084f6)),_0x503722;{const _0x1ca3c8=this['_setSuggestionData']({'id':_0x5cbec9,'type':'formatBlock:'+_0x3ff868,'data':_0x54558f,'createdAt':new Date(),'authorId':_0x8f2d26,'attributes':_0x1babe7});return this['_addSuggestionMarker']('formatBlock:'+_0x3ff868,_0x5cbec9,_0x8f2d26,this['_model']['createRange'](_0x1d642b,_0x3084f6)),_0x1ca3c8;}}['markMultiRangeBlockFormat'](_0x368e27,_0x8ba51f,_0x3c6b74=[],_0x3b8973=null,_0xff7f41={}){_0x8ba51f['formatGroupId']||(_0x8ba51f['formatGroupId']=_0x8ba51f['commandName']);const _0x4720ac=_0x368e27[0x0];_0x8ba51f['multipleBlocks']=_0x4720ac['is']('range'),_0x3b8973=_0x3b8973||Lt(_0x8ba51f);const _0x3fdf52=_0x3c6b74['map'](_0x5d87e3=>Ht(_0x5d87e3,this['_model'])),_0x578a2b=_0x4720ac['is']('range')?_0x368e27:_0x368e27['map'](_0xa3df8e=>Ht(_0xa3df8e,this['_model']));if(this['_trackingSessionId']&&(_0xff7f41['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4e4879=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b8973,'accept');return this['forceDefaultExecution'](()=>_0x4e4879(_0x578a2b,_0x8ba51f,_0xff7f41)),null;}_0x3fdf52['push'](..._0x578a2b);let _0x27f685=!0x0;for(const _0x4af17f of _0x3fdf52)if(!this['_rangeIsInLocalUserInsertion'](_0x4af17f)){_0x27f685=!0x1;break;}if(_0x27f685&&'always'!==this['_trackFormatChanges']){const _0x4fbdd3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b8973,'accept');return this['forceDefaultExecution'](()=>_0x4fbdd3(_0x578a2b,_0x8ba51f,_0xff7f41)),null;}const _0x2b61b6=this['editor']['plugins']['get']('Users')['me'];for(const _0xeaf8df of this['getSuggestions']()){if(_0xeaf8df['author']['id']!=_0x2b61b6['id'])continue;if('formatBlock'!=_0xeaf8df['type']||_0xeaf8df['data']['formatGroupId']!=_0x8ba51f['formatGroupId'])continue;if(!Wt(_0xeaf8df,_0xff7f41))continue;const _0x581e17=_0xeaf8df['subType']==_0x3b8973;for(let _0x6e9da9=0x0;_0x6e9da9<_0x578a2b['length'];_0x6e9da9++){const _0x41b970=_0x578a2b[_0x6e9da9];for(const _0xd46dd9 of _0xeaf8df['getMarkers']()){const _0x48f2f8=_0xd46dd9['getRange']();if(_0x41b970['isEqual'](_0x48f2f8)){_0x581e17?(_0x578a2b['splice'](_0x6e9da9,0x1),_0x6e9da9--):_0xeaf8df['removeMarker'](_0xd46dd9['name']);break;}}}}if(0x0==_0x578a2b['length'])return null;const _0x2db93b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b8973,'join');for(const _0x2545fe of this['getSuggestions']())if(_0x2545fe['author']['id']==_0x2b61b6['id']&&'formatBlock'==_0x2545fe['type']&&_0x2545fe['data']['formatGroupId']==_0x8ba51f['formatGroupId']&&_0x2545fe['subType']==_0x3b8973&&Wt(_0x2545fe,_0xff7f41)&&(_0x2db93b(_0x2545fe['getRanges'](),_0x578a2b)||_0x2db93b(_0x578a2b,_0x2545fe['getRanges']()))){for(const _0x278db7 of _0x578a2b)_0x2545fe['addRange'](_0x278db7);return _0x2545fe;}const _0x40feac=_0x370ed3(),_0x3e5431=_0x2b61b6['id'],_0x390e45='formatBlock:'+_0x3b8973,_0x3008ce=this['_setSuggestionData']({'id':_0x40feac,'type':_0x390e45,'data':_0x8ba51f,'createdAt':new Date(),'authorId':_0x3e5431,'attributes':_0xff7f41});for(const _0x597606 of _0x578a2b)this['_addSuggestionMarker'](_0x390e45,_0x40feac,_0x3e5431,_0x597606,x['getMultiRangeId']());return _0x3008ce;}['markDeletion'](_0x3970ca,_0x1d1035=null,_0x1cde61={}){if(_0x3970ca['isCollapsed'])return null;const _0x9025f8=this['editor']['plugins']['get']('Users')['me'],_0x3bce63=new _0xc2db3f(_0x3970ca['start'],_0x3970ca['end']);this['_trackingSessionId']&&(_0x1cde61['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x6ba96d,meta:_0x51b274}of this['_findSuggestions'](_0x3bce63,'insertion'))if(_0x51b274['isOwn']&&!_0x51b274['isNextTo']){if(_0x6ba96d['isMultiRange']){const _0x31516=_0x6ba96d['getRanges']()['filter'](_0x1881a1=>'$graveyard'!=_0x1881a1['root']['rootName']);_0x31516['every'](_0x132f6a=>_0x3bce63['containsRange'](_0x132f6a,!0x0))&&_0x6ba96d['discard']();if(_0x31516['some'](_0x2f9f91=>_0x2f9f91['containsRange'](_0x3bce63,!0x0))){const _0x1a074c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1d1035,'accept');return this['forceDefaultExecution'](()=>_0x1a074c([_0x3bce63],null,_0x1cde61)),null;}}else{const _0x1fb148=_0x3bce63['getIntersection'](_0x6ba96d['getFirstRange']());null!==_0x1fb148&&_0x6ba96d['_onDiscard']([_0x1fb148],null,_0x1cde61);}}if(_0x3bce63['detach'](),_0x3bce63['isCollapsed']||'$graveyard'==_0x3bce63['root']['rootName'])return null;let _0x33372a=null,_0x4b530d=_0x3bce63['start'],_0x1b7fbf=_0x3bce63['end'];const _0x4c7a9c=this['_findSuggestions'](_0x3bce63,'deletion');for(const {suggestion:_0x2a9b5f,meta:_0x1022ab}of _0x4c7a9c){const _0x5e1222=this['_model']['createRange'](_0x4b530d,_0x1b7fbf);if(_0x1022ab['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1022ab['containsRangeInObject']&&!_0x1022ab['isInsideObject'])){if(_0x2a9b5f['isMultiRange']){if(!Wt(_0x2a9b5f,_0x1cde61))continue;let _0x585c0f=!0x0;for(const _0x1a5a51 of _0x2a9b5f['getRanges']()){if(_0x1a5a51['containsRange'](_0x5e1222,!0x0))return _0x2a9b5f;_0x5e1222['containsRange'](_0x1a5a51)||(_0x585c0f=!0x1);}_0x585c0f&&_0x2a9b5f['discard']();}else{const _0x5c478d=_0x2a9b5f['getFirstRange']();if(_0x5c478d['containsRange'](_0x5e1222,!0x0))return _0x2a9b5f;if(!Wt(_0x2a9b5f,_0x1cde61)){_0x5e1222['containsRange'](_0x5c478d)?_0x2a9b5f['removeMarkers']():_0x5c478d['containsPosition'](_0x4b530d)?_0x4b530d=_0x5c478d['end']:_0x5c478d['containsPosition'](_0x1b7fbf)&&(_0x1b7fbf=_0x5c478d['start']);continue;}_0x4b530d=_0x4b530d['isBefore'](_0x5c478d['start'])?_0x4b530d:_0x5c478d['start'],_0x1b7fbf=_0x1b7fbf['isAfter'](_0x5c478d['end'])?_0x1b7fbf:_0x5c478d['end'],_0x1cde61=Object['assign']({},_0x2a9b5f['attributes']),_0x33372a?_0x5c478d['start']['isBefore'](_0x33372a['getFirstRange']()['start'])?(_0x33372a['removeMarkers'](),_0x33372a=_0x2a9b5f):_0x2a9b5f['removeMarkers']():_0x33372a=_0x2a9b5f;}}}if(_0x33372a)return this['_setSuggestionRange'](_0x33372a,this['_model']['createRange'](_0x4b530d,_0x1b7fbf)),_0x33372a;{const _0x2321f9=_0x370ed3(),_0x40c39e=this['_model']['createRange'](_0x4b530d,_0x1b7fbf),_0x7a94b5=_0x9025f8['id'],_0x2df468=_0x1d1035?'deletion:'+_0x1d1035:'deletion',_0x319dce=this['_setSuggestionData']({'id':_0x2321f9,'type':_0x2df468,'createdAt':new Date(),'authorId':_0x7a94b5,'attributes':_0x1cde61});return this['_addSuggestionMarker'](_0x2df468,_0x2321f9,_0x7a94b5,_0x40c39e),_0x319dce;}}['markMultiRangeDeletion'](_0x11c90e,_0x136188='multi',_0x18614c={}){const _0x4d03a0=this['editor']['plugins']['get']('Users')['me'],_0x24d469=_0x11c90e['map'](_0x583e48=>new _0xc2db3f(_0x583e48['start'],_0x583e48['end'])),_0x4ff76b=new Set();this['_trackingSessionId']&&(_0x18614c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x49fc74,meta:_0x145d9e}of this['_findSuggestions'](_0x24d469,'insertion'))_0x145d9e['isOwn']&&!_0x145d9e['isNextTo']&&_0x4ff76b['add'](_0x49fc74);for(const _0x3bfa5c of _0x4ff76b)if(_0x3bfa5c['isMultiRange']){const _0x6d5752=_0x3bfa5c['getRanges']();(!_0x3bfa5c['attributes']||!_0x3bfa5c['attributes']['skipNestingCheck'])&&(_0x6d5752['every'](_0x22eaa6=>_0x24d469['some'](_0x471742=>_0x471742['containsRange'](_0x22eaa6,!0x0)))&&_0x3bfa5c['discard']());if(_0x24d469['every'](_0x18fc5b=>_0x6d5752['some'](_0x7cfa=>_0x7cfa['containsRange'](_0x18fc5b,!0x0)))){const _0x1c672e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x136188,'accept');return this['forceDefaultExecution'](()=>_0x1c672e(_0x11c90e,null,_0x18614c)),null;}}else{const _0x434cc7=_0x3bfa5c['getFirstRange']();_0x24d469['some'](_0x28e6c0=>_0x28e6c0['containsRange'](_0x434cc7,!0x0))&&_0x3bfa5c['discard']();if(_0x24d469['every'](_0xac8958=>_0x434cc7['containsRange'](_0xac8958,!0x0))){const _0x5ea591=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x136188,'accept');return this['forceDefaultExecution'](()=>_0x5ea591(_0x24d469,null,_0x18614c)),null;}}const _0xfbbdc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x136188,'join');let _0x1fe3da=null;for(const _0x1325e5 of this['getSuggestions']())if(_0x1325e5['author']['id']==_0x4d03a0['id']&&_0x1325e5['isInContent']&&'deletion'==_0x1325e5['type']&&_0x1325e5['subType']==_0x136188&&Wt(_0x1325e5,_0x18614c)&&(_0xfbbdc(_0x1325e5['getRanges'](),_0x24d469)||_0xfbbdc(_0x24d469,_0x1325e5['getRanges']()))){if(_0x1fe3da){if(_0x1325e5['commentThread']&&_0x1325e5['commentThread']['length'])continue;for(const _0x18c704 of _0x1325e5['getRanges']())_0x1fe3da['isIntersectingWithRange'](_0x18c704)||_0x1fe3da['addRange'](_0x18c704);_0x1325e5['removeMarkers']();}else{_0x1fe3da=_0x1325e5;for(const _0x32734d of _0x24d469)_0x1325e5['isIntersectingWithRange'](_0x32734d)||_0x1325e5['addRange'](_0x32734d);}}if(_0x1fe3da)return _0x1fe3da;_0x4ff76b['clear']();for(const {suggestion:_0x4ae75d,meta:_0x53ffa1}of this['_findSuggestions'](_0x24d469,'deletion'))_0x53ffa1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53ffa1['containsRangeInObject']&&!_0x53ffa1['isInsideObject'])&&Wt(_0x4ae75d,_0x18614c)&&_0x4ff76b['add'](_0x4ae75d);for(const _0x14939b of _0x4ff76b){const _0x1a14f9=_0x14939b['getRanges']();if(!_0x18614c||!_0x18614c['skipNestingCheck']){if(_0x24d469['every'](_0xa05582=>_0x1a14f9['some'](_0x1f5317=>_0x1f5317['containsRange'](_0xa05582,!0x0))))return _0x14939b;}(!_0x14939b['attributes']||!_0x14939b['attributes']['skipNestingCheck'])&&(_0x1a14f9['every'](_0x12cc86=>_0x24d469['some'](_0x2a34f8=>_0x2a34f8['containsRange'](_0x12cc86,!0x0)))&&_0x14939b['discard']());}const _0x27252a=_0x370ed3(),_0x183ffa=_0x4d03a0['id'],_0xe2d805='deletion:'+_0x136188,_0x3ae489=this['_setSuggestionData']({'id':_0x27252a,'type':_0xe2d805,'createdAt':new Date(),'authorId':_0x183ffa,'attributes':_0x18614c});for(const _0x1dd927 of _0x24d469)_0x1dd927['detach'](),_0x1dd927['isCollapsed']||'$graveyard'==_0x1dd927['root']['rootName']||this['_addSuggestionMarker'](_0xe2d805,_0x27252a,_0x183ffa,_0x1dd927,x['getMultiRangeId']());return _0x3ae489;}['markAttributeChange'](_0x5190bc,_0x38e7d8,_0x3739c2,_0x28fbc0,_0x4fab57){if(_0x5190bc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5bba8c=this['editor']['plugins']['get']('Users')['me']['id'],_0x223470=Array['from'](this['_suggestions']['values']())['filter'](_0x2ccad6=>'attribute'==_0x2ccad6['type']&&_0x2ccad6['data']['key']==_0x38e7d8&&_0x2ccad6['isIntersectingWithRange'](_0x5190bc));if(this['_trackingSessionId']&&(_0x4fab57['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2076dd=this['_findSuggestions'](_0x5190bc,'insertion')['filter'](({meta:_0xc9b557})=>_0xc9b557['isOwn']&&!_0xc9b557['isInsideObject']&&!_0xc9b557['isNextTo'])['map'](({suggestion:_0x393889})=>_0x393889);_0x223470['unshift'](..._0x2076dd);}const _0x3df293=new Map([[_0x5190bc,_0x3739c2]]);for(const _0x51323f of _0x223470){const _0x18c53f='attribute'==_0x51323f['type']?_0x51323f['data']['oldValue']:void 0x0,_0x14a7b1=_0x51323f['getFirstRange'](),_0x282909=Array['from'](_0x3df293['keys']())['find'](_0x2e6dee=>_0x2e6dee['isIntersecting'](_0x14a7b1));if(!_0x282909)continue;const _0x454377=_0x282909['getDifference'](_0x14a7b1);this['_isBlockAttribute'](_0x38e7d8)&&'insertion'==_0x51323f['type']&&0x0!=_0x454377['length']||(_0x3df293['delete'](_0x282909),_0x454377['forEach'](_0x1ac8e5=>{_0x3df293['set'](_0x1ac8e5,_0x3739c2);}),'insertion'!=_0x51323f['type']&&_0x18c53f!=_0x28fbc0&&_0x3df293['set'](_0x282909['getIntersection'](_0x14a7b1),_0x18c53f));}const _0x12e5ab=[];for(const [_0x454acc,_0x55c5bc]of _0x3df293){const _0x195a43=_0x370ed3(),_0x5df497={'key':_0x38e7d8,'oldValue':_0x55c5bc,'newValue':_0x28fbc0};_0x38e7d8['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':_0x38e7d8});const _0x404358=('attribute:'+(_0x38e7d8+'|'+Lt({'newValue':_0x28fbc0})))['substring'](0x0,0x3c),_0x3def28=this['_setSuggestionData']({'id':_0x195a43,'type':_0x404358,'data':_0x5df497,'createdAt':new Date(),'authorId':_0x5bba8c,'attributes':_0x4fab57});_0x12e5ab['push'](_0x3def28),this['_addSuggestionMarker'](_0x404358,_0x195a43,_0x5bba8c,_0x454acc);}return _0x12e5ab;}['enableDefaultAttributesIntegration'](_0x5db50e){this['enableCommand'](_0x5db50e,(_0x7a4068,..._0x44e8bc)=>{this['_recordAttributeChanges'](()=>{_0x7a4068(..._0x44e8bc);});});}['registerBlockAttribute'](_0x151526){this['_blockAttributeKeys']['add'](_0x151526);}['registerInlineAttribute'](_0x2e7fa3){this['_inlineAttributeKeys']['add'](_0x2e7fa3);}['startTrackingSession'](_0x323498){return this['_trackingSessionId']=void 0x0!==_0x323498?_0x323498:_0x370ed3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4bfe61){return'attribute'==_0x4bfe61['type']?_0x4bfe61['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x782d4d,_0x83f73){const _0x325e88=_0x782d4d['getFirstMarker']();this['_model']['change'](_0x73b693=>{_0x73b693['updateMarker'](_0x325e88,{'range':_0x83f73});});}['_addThreadToSuggestion'](_0x34c49a){const _0x312c1b=_0x34c49a['id'],_0x5b4d84=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x312c1b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5b4d84,'threadId':_0x312c1b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x334337=this['_commentsRepository']['getCommentThread'](_0x312c1b);_0x334337['unbind']('isRemovable'),_0x334337['isRemovable']=!0x1,_0x34c49a['commentThread']=_0x334337;}['_checkSuggestionCorrectness'](_0x26b931,_0x40bd81,_0x104518,_0x843479){if(_0x26b931['type']!=_0x40bd81||_0x26b931['subType']!=_0x104518||_0x26b931['creator']['id']!=_0x843479)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ee9c2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3c9963,_0x542b1d){const _0x250c2d=_0x3c9963['getFirstRange']();if(_0x542b1d['isEqual'](_0x250c2d))_0x3c9963['removeMarkers']();else{if(_0x250c2d['containsRange'](_0x542b1d)){const _0x42ec19=this['_model']['createPositionAt'](_0x542b1d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c9963,this['_model']['createRange'](_0x250c2d['start'],_0x42ec19));const _0x468c93=_0x370ed3(),_0xd9367d=_0x3c9963['creator']['id'],_0x49407a=_0x3c9963['type']+':'+_0x3c9963['subType'];this['_setSuggestionData']({'id':_0x468c93,'type':_0x49407a,'createdAt':new Date(),'authorId':_0xd9367d,'data':_0x3c9963['data'],'attributes':_0x3c9963['attributes']});const _0x39ef78=this['_model']['createPositionAt'](_0x542b1d['end']['parent'],'after'),_0x4b852b=this['_model']['createRange'](_0x39ef78,_0x250c2d['end']);this['_addSuggestionMarker'](_0x49407a,_0x468c93,_0xd9367d,_0x4b852b);}else{if(_0x250c2d['containsPosition'](_0x542b1d['start'])){const _0x40ca28=this['_model']['createPositionAt'](_0x542b1d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c9963,this['_model']['createRange'](_0x250c2d['start'],_0x40ca28));}else{const _0x5b011e=this['_model']['createPositionAt'](_0x542b1d['end']['parent'],'after');this['_setSuggestionRange'](_0x3c9963,this['_model']['createRange'](_0x5b011e,_0x250c2d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2c421c){for(const {suggestion:_0x419ece,meta:_0x4b3c60}of this['_findSuggestions'](_0x2c421c,'insertion')){if(!_0x4b3c60['isOwn'])continue;const _0x24a0ff=_0x419ece['getRanges']();for(const _0x572050 of _0x24a0ff)if(!_0x2c421c['getDifference'](_0x572050)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1e5b6d){const _0x6a0fab=this['editor']['plugins']['get']('Users')['getUser'](_0x1e5b6d);if(!_0x6a0fab)throw new _0x4ee9c2('track-changes-user-not-found',this);return _0x6a0fab;}['_getExternalAuthor'](_0x292b6e){const _0x52a9eb=this['editor']['plugins']['get']('Users'),_0x145c04=_0x3e24bc('external:'+_0x292b6e),_0x1cfdfd=_0x52a9eb['getUser'](_0x145c04);return _0x1cfdfd||_0x52a9eb['addUser']({'id':_0x145c04,'name':_0x292b6e});}['_createSuggestion'](_0x5a1a21,_0x2e4f9a,_0x584286,_0x4fc5f6,_0x3f5703,_0x5013bb){const _0x1e4c08=this['_getAuthorFromId'](_0x4fc5f6),_0x1266d7=this['_suggestionFactory']['buildSuggestion'](_0x5a1a21,_0x2e4f9a,_0x584286,_0x1e4c08,_0x3f5703,_0xf85daa=>{this['_updateSuggestionData'](_0x584286,{'attributes':_0xf85daa});const _0x23c5ba=this['getSuggestion'](_0x584286);this['_joinWithAdjacentSuggestions'](new Set([_0x23c5ba])),this['_refreshSuggestionsChain'](new Set([_0x23c5ba]));},_0x5013bb);return this['listenTo'](_0x1266d7,'accept',()=>{this['_updateSuggestionData'](_0x584286,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1266d7,'discard',()=>{this['_updateSuggestionData'](_0x584286,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x584286,_0x1266d7),this['_suggestionState']['set'](_0x1266d7,'notReady'),_0x1266d7;}['_splitMarkerName'](_0x2fc46c){const _0x482910=_0x2fc46c['split'](':');return{'group':_0x482910[0x0],'type':_0x482910[0x1],'subType':_0x482910['length']>=0x5?_0x482910[0x2]:null,'id':_0x482910['length']<0x5?_0x482910[0x2]:_0x482910[0x3],'authorId':_0x482910['length']<0x5?_0x482910[0x3]:_0x482910[0x4],'markerCount':0x6==_0x482910['length']?_0x482910[0x5]:null};}['_breakSuggestionMarker'](_0xd1e458,_0x59eedb,_0x431331){const _0x103600=_0xd1e458['getFirstRange'](),_0x3d6e22=_0x103600['start'],_0x1136b2=_0x103600['end'];this['_setSuggestionRange'](_0xd1e458,this['_model']['createRange'](_0x3d6e22,_0x59eedb));const _0x1fdf49=_0x370ed3(),_0x30b39e=_0xd1e458['creator']['id'],_0x36214a=_0xd1e458['type']+(_0xd1e458['subType']?':'+_0xd1e458['subType']:'');this['_setSuggestionData']({'id':_0x1fdf49,'type':_0x36214a,'createdAt':new Date(),'authorId':_0x30b39e,'originalSuggestionId':_0xd1e458['_originalSuggestionId']||_0xd1e458['id'],'attributes':_0xd1e458['attributes'],'data':_0xd1e458['data']});const _0x1e1807=this['_getAttributeKey'](_0xd1e458);('formatBlock'==_0xd1e458['type']||_0x1e1807&&this['_isBlockAttribute'](_0x1e1807))&&(_0x431331=this['_model']['createPositionBefore'](_0x431331['parent'])),this['_addSuggestionMarker'](_0x36214a,_0x1fdf49,_0x30b39e,this['_model']['createRange'](_0x431331,_0x1136b2));}['_findSuggestions'](_0x25611b,_0x11e143=null){const _0x3bc31b=[],_0xa93af3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25611b)||(_0x25611b=[_0x25611b]);for(const _0x22fd37 of this['getSuggestions']()){if(!_0x22fd37['isInContent'])continue;if(_0x11e143&&_0x22fd37['type']!=_0x11e143)continue;let _0x199adf=!0x1;for(const _0xa66742 of _0x22fd37['getRanges']()){for(const _0x1e693e of _0x25611b){const _0x512580=_0x1e693e['start']['isEqual'](_0xa66742['end'])||_0x1e693e['end']['isEqual'](_0xa66742['start']);if(_0x512580||_0x1e693e['getIntersection'](_0xa66742)){const _0x5079ac=_0x1e693e['containsRange'](_0xa66742)&&Ft(this['_model']['schema'],_0xa66742['start'],_0x1e693e),_0x44d8b0=_0xa66742['containsRange'](_0x1e693e)&&Ft(this['_model']['schema'],_0x1e693e['start'],_0xa66742);_0x3bc31b['push']({'suggestion':_0x22fd37,'meta':{'isOwn':_0xa93af3==_0x22fd37['author'],'isNextTo':_0x512580,'isInsideObject':_0x5079ac,'containsRangeInObject':_0x44d8b0}}),_0x199adf=!0x0;break;}}if(_0x199adf)break;}}return _0x3bc31b;}['_addSuggestionMarker'](_0x21db7e,_0x5215a8,_0x5e371e,_0x3348d3,_0x2f21ac){this['_model']['change'](_0x5945ee=>{let _0x595f70='suggestion:'+_0x21db7e+':'+_0x5215a8+':'+_0x5e371e;_0x2f21ac&&(_0x595f70=_0x595f70+':'+_0x2f21ac),_0x5945ee['addMarker'](_0x595f70,{'range':_0x3348d3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1da785){const _0x32a54b=_0x1da785['previous'],_0x10f41d=_0x1da785['next'];_0x1da785['previous']=null,_0x1da785['next']=null,null!=_0x32a54b&&_0x32a54b['next']==_0x1da785&&(_0x32a54b['next']=_0x10f41d),null!=_0x10f41d&&_0x10f41d['previous']==_0x1da785&&(_0x10f41d['previous']=_0x32a54b),'ready'==this['_suggestionState']['get'](_0x1da785)&&(this['_suggestionState']['set'](_0x1da785,'removed'),this['fire']('suggestionUnloaded',_0x1da785,_0x32a54b,_0x10f41d));}['_setSuggestionData'](_0x4aa09d){const _0x3bb5fe=_0x4aa09d['id'],_0x379a39=this['addSuggestionData'](_0x4aa09d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x49a399=this['editor']['plugins']['get']('PendingActions'),_0xafb16e=_0x379a39['hasComments'],_0x385f43=_0x379a39['subType']?_0x379a39['type']+':'+_0x379a39['subType']:_0x379a39['type'],_0x3d247d=this['editor']['locale'],_0x503d80=_0x49a399['add'](o(_0x3d247d,'PENDING_ACTION_SUGGESTION')),_0x3166e3={'id':_0x3bb5fe,'type':_0x385f43,'hasComments':_0xafb16e,'data':_0x4aa09d['data']||null,'originalSuggestionId':_0x4aa09d['originalSuggestionId']||null,'attributes':_0x379a39['attributes']};this['_adapter']['addSuggestion'](_0x3166e3)['then'](_0x4a9806=>{_0x379a39['_saved']=!0x0,_0x49a399['remove'](_0x503d80),_0x4a9806&&_0x4a9806['createdAt']&&(this['_suggestions']['get'](_0x3bb5fe)['createdAt']=_0x4a9806['createdAt']);})['catch'](_0x399e3d=>{throw _0x2d38e9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x379a39['discard']();}),_0x379a39['stopListening'](),this['_suggestions']['delete'](_0x379a39['id']),this['_suggestionState']['delete'](_0x379a39),_0x399e3d;});}return _0x379a39;}['_isBlockAttribute'](_0x1f6d58){return this['_blockAttributeKeys']['has'](_0x1f6d58);}['_updateSuggestionData'](_0xeac410,_0x4ab9f7){const _0x1ab289=this['editor']['plugins']['get']('PendingActions'),_0xfaeb5d=this['getSuggestion'](_0xeac410);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xfaeb5d['_saved']){const _0x542f5b=_0x1ab289['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xeac410,_0x4ab9f7)['then'](()=>{_0x1ab289['remove'](_0x542f5b);});}else _0xfaeb5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xeac410,_0x4ab9f7);});}}['_getSuggestionData'](_0x572ed5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ee9c2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x572ed5);}['_handleNewSuggestionMarker'](_0x11e283){const {id:_0x8c6a29,type:_0x19bf55,subType:_0x57b875,authorId:_0x265eab}=this['_splitMarkerName'](_0x11e283),_0x1ce753=this['_suggestions']['get'](_0x8c6a29)||this['_createSuggestion'](_0x19bf55,_0x57b875,_0x8c6a29,_0x265eab,{});switch(this['_checkSuggestionCorrectness'](_0x1ce753,_0x19bf55,_0x57b875,_0x265eab),this['_suggestionState']['get'](_0x1ce753)){case'notReady':this['_getSuggestionData'](_0x8c6a29)['then'](_0x448497=>{let _0x304d6f=Promise['resolve']();_0x448497['hasComments']&&(_0x304d6f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x8c6a29})),_0x304d6f['then'](()=>{this['addSuggestionData'](_0x448497)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1ce753,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x8c6a29,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1ce753,'ready'),this['fire']('suggestionLoaded',_0x1ce753);break;case'ready':this['fire']('suggestionChanged',_0x1ce753);}return _0x1ce753['addMarkerName'](_0x11e283),_0x1ce753;}['_refreshSuggestionsChain'](_0x1ee585){const _0x3f33b6=Array['from'](_0x1ee585),_0x51c451=_0x3f33b6['filter'](_0x4ba041=>'attribute'==_0x4ba041['type']);this['_refreshAttributeSuggestionsChain'](_0x51c451);const _0x53c377=_0x3f33b6['filter'](_0x25ce7f=>!_0x25ce7f['isMultiRange']&&'attribute'!=_0x25ce7f['type']),_0x3cd3df=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ec4a0=>!_0x5ec4a0['isMultiRange']&&'attribute'!=_0x5ec4a0['type']),_0x1edfd2=_0x3cd3df['filter'](_0x4d49cf=>!_0x1ee585['has'](_0x4d49cf)),_0x188eac=new Map(_0x3cd3df['map'](_0x2adc55=>[_0x2adc55,this['_suggestionFactory']['getSuggestionCallback'](_0x2adc55['type'],_0x2adc55['subType'],'chain')])),_0x572c21=new Map(_0x3cd3df['map'](_0x27a4fc=>[_0x27a4fc,_0x27a4fc['getFirstRange']()])),_0x1dc9a4=new Set(),_0x455031=new Set();for(let _0x35ac8b=0x0;_0x35ac8b<_0x53c377['length'];_0x35ac8b++)_0x2156b8(_0x53c377[_0x35ac8b],_0x53c377,_0x35ac8b+0x1);for(let _0x2214c2=0x0;_0x2214c2<_0x53c377['length'];_0x2214c2++)_0x2156b8(_0x53c377[_0x2214c2],_0x1edfd2,0x0);const _0xb2ba50=new Set();for(let _0x3fc7d0=0x0;_0x3fc7d0<_0x53c377['length'];_0x3fc7d0++){const _0x21d69e=_0x53c377[_0x3fc7d0];!_0x455031['has'](_0x21d69e)&&_0x21d69e['previous']&&(_0xb2ba50['add'](_0x21d69e['previous']),_0x21d69e['previous']['next']===_0x21d69e&&(_0x21d69e['previous']['next']=null),_0x21d69e['previous']=null),!_0x1dc9a4['has'](_0x21d69e)&&_0x21d69e['next']&&(_0xb2ba50['add'](_0x21d69e['next']),_0x21d69e['next']['previous']===_0x21d69e&&(_0x21d69e['next']['previous']=null),_0x21d69e['next']=null);}function _0x2156b8(_0x17ad9a,_0x4c4ba5,_0x106a6f){for(let _0x13e7b1=_0x106a6f;_0x13e7b1<_0x4c4ba5['length'];_0x13e7b1++){const _0x30e723=_0x26b194(_0x17ad9a,_0x4c4ba5[_0x13e7b1]);_0x30e723&&(_0x30e723[0x0]['next']=_0x30e723[0x1],_0x30e723[0x1]['previous']=_0x30e723[0x0],_0x1dc9a4['add'](_0x30e723[0x0]),_0x455031['add'](_0x30e723[0x1]));}}function _0x26b194(_0x50e70e,_0x145a54){if(_0x50e70e['author']['id']!==_0x145a54['author']['id'])return null;const _0x1585e4=_0x188eac['get'](_0x50e70e)(_0x50e70e,_0x145a54,_0x572c21['get'](_0x50e70e),_0x572c21['get'](_0x145a54));if(!_0x1585e4)return null;return _0x188eac['get'](_0x145a54)(_0x50e70e,_0x145a54,_0x572c21['get'](_0x50e70e),_0x572c21['get'](_0x145a54))?_0x1585e4[0x1]['commentThread']&&_0x1585e4[0x1]['commentThread']['length']?null:_0x1585e4:null;}_0xb2ba50['size']&&this['_refreshSuggestionsChain'](_0xb2ba50);}['_refreshAttributeSuggestionsChain'](_0x7a7c67){if(0x0==_0x7a7c67['length'])return;const _0x19238d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27cc14=>'attribute'==_0x27cc14['type']&&_0x27cc14['_isDataLoaded']),_0x59d44a=[],_0x20abbe=new Map();for(const _0x4401d2 of _0x19238d){const _0x44f064=_0x3e24bc(_0x4401d2['attributes']);_0x20abbe['has'](_0x44f064)||(_0x20abbe['set'](_0x44f064,_0x59d44a['length']),_0x59d44a['push']([]));const _0x1a431a=_0x20abbe['get'](_0x44f064);_0x59d44a[_0x1a431a]['push'](_0x4401d2);}!(function(){_0x59d44a['sort']((_0x484694,_0x165c34)=>{const _0x50da97=_0x484694[0x0]['createdAt'],_0x2184c3=_0x165c34[0x0]['createdAt'];return _0x50da97==_0x2184c3?_0x484694[0x0]['attributes']['groupId']<_0x165c34[0x0]['attributes']['groupId']?-0x1:0x1:_0x50da97<_0x2184c3?-0x1:0x1;});for(const _0x1dd2fd of _0x59d44a)_0x1dd2fd['sort']((_0x2410e7,_0x3c83fb)=>_0x2410e7['id']<_0x3c83fb['id']?-0x1:0x1);}());for(let _0x9a3d16=0x0;_0x9a3d16<_0x59d44a['length'];_0x9a3d16++){if(0x0==_0x59d44a[_0x9a3d16]['length'])continue;const _0x15f8ea=[];for(let _0x29a470=_0x9a3d16+0x1;_0x29a470<_0x59d44a['length'];_0x29a470++)0x0!=_0x59d44a[_0x29a470]['length']&&_0x3115ed(_0x59d44a[_0x9a3d16],_0x59d44a[_0x29a470])&&_0x15f8ea['push'](_0x29a470);for(const _0x8b4fb4 of _0x15f8ea)_0x59d44a[_0x9a3d16]=_0x59d44a[_0x9a3d16]['concat'](_0x59d44a[_0x8b4fb4]),_0x59d44a[_0x8b4fb4]=[];}for(const _0x3f017f of _0x59d44a)for(let _0x3dcc3c=0x0;_0x3dcc3c<_0x3f017f['length'];_0x3dcc3c++){const _0x592a39=_0x3f017f[_0x3dcc3c+0x1]||null;_0x3f017f[_0x3dcc3c]['next']!==_0x592a39&&(_0x3f017f[_0x3dcc3c]['next']=_0x592a39);}for(const _0x472827 of _0x59d44a)for(let _0xabc66=0x0;_0xabc66<_0x472827['length'];_0xabc66++){const _0x7d22c2=_0x472827[_0xabc66-0x1]||null;_0x472827[_0xabc66]['previous']!==_0x7d22c2&&(_0x472827[_0xabc66]['previous']=_0x7d22c2);}function _0x3115ed(_0x3c7984,_0x245368){if(_0x3c7984[0x0]['attributes']['groupId']!==_0x245368[0x0]['attributes']['groupId']&&_0x3c7984[0x0]['author']!==_0x245368[0x0]['author'])return!0x1;if(!function(_0x1b6c2b,_0x38aae7){if(!_0x1b6c2b['hasComments']&&!_0x38aae7['hasComments'])return!0x0;if(_0x1b6c2b['hasComments']&&_0x38aae7['hasComments'])return!0x1;if(_0x1b6c2b['hasComments']&&_0x38aae7['createdAt']<_0x1b6c2b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x38aae7['hasComments']&&_0x1b6c2b['createdAt']<_0x38aae7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c7984[0x0],_0x245368[0x0]))return!0x1;const _0x2c8088=Ut(_0x3c7984[0x0]['attributes'],['groupId','trackingSessionId']),_0xe472be=Ut(_0x245368[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x31f67f(_0x2c8088,_0xe472be))return!0x1;if(_0x3c7984[0x0]['attributes']['groupId']==_0x245368[0x0]['attributes']['groupId'])return!0x0;if(_0x3c7984[0x0]['attributes']['trackingSessionId']!==_0x245368[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3c7984['every'](_0x2d3a34=>_0x245368['some'](_0x4ec898=>_0x2d3a34['getFirstRange']()['isEqual'](_0x4ec898['getFirstRange']())))&&_0x245368['every'](_0x3baf9c=>_0x3c7984['some'](_0x364ee2=>_0x3baf9c['getFirstRange']()['isEqual'](_0x364ee2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x59af70){const _0x587b0f=Array['from'](_0x59af70),_0x59a665=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ba268=_0x59a665['filter'](_0x351599=>!_0x59af70['has'](_0x351599)),_0x1ddde0=new Map(_0x587b0f['map'](_0x47a963=>[_0x47a963,this['_suggestionFactory']['getSuggestionCallback'](_0x47a963['type'],_0x47a963['subType'],'join')])),_0x4d16f9=new Map(_0x59a665['map'](_0x5bb41c=>[_0x5bb41c,_0x5bb41c['getRanges']()]));for(let _0x458745=0x0;_0x458745<_0x587b0f['length'];_0x458745++){if(_0xe1fffb(this,_0x587b0f[_0x458745],_0x587b0f,_0x458745+0x1))return!0x0;}for(let _0x20e84a=0x0;_0x20e84a<_0x587b0f['length'];_0x20e84a++){if(_0xe1fffb(this,_0x587b0f[_0x20e84a],_0x3ba268,0x0))return!0x0;}return!0x1;function _0xe1fffb(_0x2ec2df,_0xa7901c,_0x34a419,_0x3e7ac4){for(let _0x34397e=_0x3e7ac4;_0x34397e<_0x34a419['length'];_0x34397e++){const _0x127aac=_0x34a419[_0x34397e];if(_0x127aac['type']!==_0xa7901c['type']||_0x127aac['author']['id']!==_0xa7901c['author']['id']||_0x127aac['subType']!==_0xa7901c['subType'])continue;if(!zt(_0xa7901c,_0x127aac))continue;if('attribute'==_0xa7901c['type']&&_0xa7901c['data']['oldValue']!=_0x127aac['data']['oldValue'])continue;if('attribute'==_0xa7901c['type']&&_0x2ec2df['_isBlockAttribute'](_0xa7901c['data']['key']))continue;if('formatBlock'==_0xa7901c['type']){const _0x1e6fda=_0x2ec2df['editor']['model'],_0x279fed=_0xa7901c['getContainedElement']();if(_0x279fed&&(_0x1e6fda['schema']['isObject'](_0x279fed)||_0x1e6fda['schema']['isLimit'](_0x279fed)))continue;}const _0xcbc402=_0x1ddde0['get'](_0xa7901c),_0x4c880c=_0x4d16f9['get'](_0xa7901c),_0x1a2f9b=_0x4d16f9['get'](_0x127aac),_0x3346b7=_0xa7901c['commentThread']&&_0xa7901c['commentThread']['length'],_0xfb1176=_0x127aac['commentThread']&&_0x127aac['commentThread']['length'];if(!_0x3346b7&&_0xcbc402(_0x1a2f9b,_0x4c880c))return _0x2ec2df['_joinSuggestions'](_0x127aac,_0xa7901c),_0x4d16f9['delete'](_0xa7901c),!0x0;if(!_0xfb1176&&_0xcbc402(_0x4c880c,_0x1a2f9b))return _0x2ec2df['_joinSuggestions'](_0xa7901c,_0x127aac),_0x4d16f9['delete'](_0x127aac),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c6842,_0x5e2ab1){if(_0x5c6842['isMultiRange']){for(const _0x4da020 of _0x5e2ab1['getRanges']())_0x5c6842['addRange'](_0x4da020);}else{const _0x2d411e=_0x5e2ab1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c6842,this['_model']['createRange'](_0x5c6842['getFirstRange']()['start'],_0x2d411e));}_0x5e2ab1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x30d2db,_0x5aca62,_0x51035b){const _0x14672c=_0x30d2db['startsWith']('format')||_0x30d2db['startsWith']('attribute')?'FORMATTING':_0x30d2db['toUpperCase']();return o(this['editor']['locale'],_0x5aca62+'_'+_0x14672c+'_SUGGESTION_ANNOUNCEMENT',_0x51035b);}['_initAriaMarkerChangeAnnouncements'](){const _0x299094=this['editor'];if(!_0x299094['ui'])return;const {ariaLiveAnnouncer:_0x3cd5eb}=_0x299094['ui'];_0x46fc19(this['_model'],({left:_0x4b60fa,entered:_0x593ee3})=>{for(const _0x2d9ec9 of _0x4b60fa){const {group:_0x3722e7,type:_0x24e501}=this['_splitMarkerName'](_0x2d9ec9['name']);if('suggestion'===_0x3722e7){_0x3cd5eb['announce'](this['_getMarkerAnnouncementText'](_0x24e501,'LEAVE'));break;}}for(const _0x5126b7 of _0x593ee3){const {group:_0x21ecf2,type:_0x43f4b8}=this['_splitMarkerName'](_0x5126b7['name']);if('suggestion'===_0x21ecf2){_0x3cd5eb['announce'](this['_getMarkerAnnouncementText'](_0x43f4b8,'ENTER',_0x278c74(_0x837e7b)));break;}}});}['_processAttributeChanges'](_0x51028e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x357c43=this['editor'],_0x1e3b00=_0x357c43['model']['document']['differ']['getChanges']();if(0x0==_0x1e3b00['length'])return!0x1;const _0x20e316=[],_0x295ea1=_0x1e3b00['filter'](_0x3aa3bf=>'attribute'==_0x3aa3bf['type']),_0x22baac=_0x1e3b00['filter'](_0x17b05c=>'insert'==_0x17b05c['type']&&'$text'!=_0x17b05c['name']),_0x11d887=_0x1e3b00['filter'](_0x1a200f=>'remove'==_0x1a200f['type']&&'$text'!=_0x1a200f['name']);for(const _0x2d812c of _0x295ea1)_0x20e316['push']({'key':_0x2d812c['attributeKey'],'newValue':_0x2d812c['attributeNewValue'],'oldValue':_0x2d812c['attributeOldValue'],'range':Kt(_0x2d812c['range'],_0x357c43['model'])});for(const _0x2a0958 of _0x22baac){const _0x565fb7=_0x11d887['find'](_0x5686f0=>_0x5686f0['position']['isEqual'](_0x2a0958['position']));_0x565fb7&&_0x20e316['push']({'key':m,'newValue':_0x2a0958['name'],'oldValue':_0x565fb7['name'],'range':_0x357c43['model']['createRangeOn'](_0x2a0958['position']['nodeAfter'])});}return 0x0!=_0x20e316['length']&&this['_reduceExistingSuggestions'](_0x51028e,_0x20e316);}['_processAttributeSuggestions'](_0x4722c6){let _0x156e95=!0x1;const _0x5bdbe3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d9e53=>_0x1d9e53['data']['newRange']&&_0x1d9e53['name']['startsWith']('suggestion:attribute:'));for(const _0x80f2f0 of _0x5bdbe3){const {subType:_0x1143c4,id:_0x51ceac}=this['_splitMarkerName'](_0x80f2f0['name']),_0x4db0f8=_0x1143c4['split']('|')[0x0];for(const _0x1527be of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1527be['id']!=_0x51ceac&&'attribute'==_0x1527be['type']&&_0x1527be['data']&&_0x1527be['data']['key']==_0x4db0f8&&_0x1527be['getFirstRange']()['isIntersecting'](_0x80f2f0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1527be,_0x80f2f0['data']['newRange'],_0x4722c6),_0x156e95=!0x0);}return _0x156e95;}['_recordAttributeChanges'](_0x4643f1){this['_recordAttributeSuggestions']=!0x0,_0x4643f1();}['_isRegisteredAttribute'](_0x2f5c29){const _0xfdda96=this['_isBlockAttribute'](_0x2f5c29),_0xaf6e45=this['_inlineAttributeKeys']['has'](_0x2f5c29);return _0xfdda96||_0xaf6e45;}['_reduceExistingSuggestions'](_0x2feaf1,_0xcdaa81){if(0x0==_0xcdaa81['length'])return!0x1;let _0x291b7b=!0x1;for(const _0x3be5a5 of _0xcdaa81){const _0x4e8ebf=this['_findSuggestions'](_0x3be5a5['range'],'attribute')['filter'](_0x4b1317=>!_0x4b1317['meta']['isNextTo'])['map'](_0x58c369=>_0x58c369['suggestion']),_0x2b7c30=_0x3e24bc({'newValue':_0x3be5a5['newValue']});_0x4e8ebf['filter'](_0x1ea0d4=>{const [_0x194178,_0x4f936b]=_0x1ea0d4['subType']['split']('|');return _0x194178==_0x3be5a5['key']&&_0x4f936b!=_0x2b7c30;})['forEach'](_0x3292e7=>{this['_reduceSuggestionAttributeRange'](_0x3292e7,_0x3be5a5['range'],_0x2feaf1),_0x291b7b=!0x0;});}return _0x291b7b;}['_reduceSuggestionAttributeRange'](_0x3b28ce,_0x1859ca,_0x3eb901){const _0x1f8d34=_0x3b28ce['getFirstRange']()['getDifference'](_0x1859ca);0x0!==_0x1f8d34['length']?0x1!==_0x1f8d34['length']?this['_breakSuggestionMarker'](_0x3b28ce,_0x1859ca['start'],_0x1859ca['end']):this['_setSuggestionRange'](_0x3b28ce,_0x1f8d34[0x0]):_0x3eb901['removeMarker'](_0x3b28ce['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x417b6e){this['_editor']=_0x417b6e,this['_model']=_0x417b6e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x112696,_0xf164f6,_0x13ce26,_0x210ae4,_0x27e2b4,_0x5c1a60,_0x42fa26){return new x(this['_model'],{'type':_0x112696,'subType':_0xf164f6,'id':_0x13ce26,'originalSuggestionId':_0x42fa26,'author':_0x210ae4,'creator':_0x210ae4,'attributes':_0x27e2b4,'onAttributesChange':_0x5c1a60,'onAccept':(..._0x23558a)=>this['getSuggestionCallback'](_0x112696,_0xf164f6,'accept')(..._0x23558a),'onDiscard':(..._0x1c2de4)=>this['getSuggestionCallback'](_0x112696,_0xf164f6,'discard')(..._0x1c2de4)});}['registerCustomCallback'](_0x54437c,_0x1b4700,_0x3947cd,_0x942931){const _0x239a69=_0x54437c+':'+_0x1b4700+':'+_0x3947cd;this['_customCallbacks']['set'](_0x239a69,_0x942931);}['getSuggestionCallback'](_0x3ad725,_0x445b8d,_0x14e006){const _0x7d9c50=_0x3ad725+':'+_0x445b8d+':'+_0x14e006;return this['_customCallbacks']['get'](_0x7d9c50)||this['_defaultCallbacks']['get'](_0x3ad725+':'+_0x14e006);}['_registerDefaultCallbacks'](){const _0x5e4874=()=>!0x1,_0x24ecbd=_0x53d5c4=>{_0x53d5c4['sort']((_0x2ab14c,_0x578017)=>_0x2ab14c['start']['isBefore'](_0x578017['start'])?0x1:-0x1),this['_model']['change'](_0x5762b3=>{for(const _0x810f25 of _0x53d5c4){let _0x1d4b7d;_0x1d4b7d=_0x810f25['end']['isAtEnd']&&_0x810f25['end']['parent']==_0x810f25['start']['nodeAfter']?_0x5762b3['createSelection'](_0x810f25['start']['nodeAfter'],'on'):_0x5762b3['createSelection'](_0x810f25),this['_model']['deleteContent'](_0x1d4b7d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x523370=(_0xb763be,_0x3b27f6)=>{_0x3b27f6&&this['_model']['change'](_0x44db2d=>{const {commandName:_0x5c933e,commandParams:_0x33d657=[]}=_0x3b27f6,_0x80ef4c=_0xb763be['map'](_0x2c22b6=>(Pt(_0x2c22b6)&&(_0x2c22b6=this['_model']['createRange'](_0x2c22b6['end'])),_0x2c22b6))['filter'](_0x41d7e6=>'$graveyard'!==_0x41d7e6['root']['rootName']);if(_0x80ef4c['length']<0x1)return;const _0x37fcda=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b5d98=>_0xc2db3f['fromRange'](_0x3b5d98));_0x44db2d['setSelection'](_0x80ef4c);for(const _0x11ecff of this['_editor']['commands']['commands']())_0x11ecff['refresh']();_0x33d657['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c933e,..._0x33d657);const _0x952d16=_0x37fcda['filter'](_0x28e8a5=>'$graveyard'!=_0x28e8a5['root']['rootName']);_0x952d16['length']>0x0&&_0x44db2d['setSelection'](_0x952d16);for(const _0x4731d6 of _0x37fcda)_0x4731d6['detach']();});},_0x13da8e=(_0x58003f,_0x27a687)=>0x1==_0x58003f['length']&&0x1==_0x27a687['length']&&_0x58003f[0x0]['end']['isEqual'](_0x27a687[0x0]['start']),_0x39c4eb=(_0x35eea2,_0x3041d4,_0x2a26ca,_0x4ad47f)=>qt(_0x35eea2,_0x3041d4,_0x2a26ca,_0x4ad47f)?[_0x35eea2,_0x3041d4]:qt(_0x3041d4,_0x35eea2,_0x4ad47f,_0x2a26ca)?[_0x3041d4,_0x35eea2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e4874),this['_defaultCallbacks']['set']('insertion:discard',_0x24ecbd),this['_defaultCallbacks']['set']('insertion:join',_0x13da8e),this['_defaultCallbacks']['set']('insertion:chain',_0x39c4eb),this['_defaultCallbacks']['set']('deletion:accept',_0x24ecbd),this['_defaultCallbacks']['set']('deletion:discard',_0x5e4874),this['_defaultCallbacks']['set']('deletion:join',_0x13da8e),this['_defaultCallbacks']['set']('deletion:chain',_0x39c4eb),this['_defaultCallbacks']['set']('formatInline:accept',_0x523370),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e4874),this['_defaultCallbacks']['set']('formatInline:join',_0x13da8e),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e4874),this['_defaultCallbacks']['set']('formatBlock:accept',_0x523370),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e4874),this['_defaultCallbacks']['set']('formatBlock:join',_0x13da8e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e4874),this['_defaultCallbacks']['set']('attribute:accept',_0x5e4874),this['_defaultCallbacks']['set']('attribute:discard',(_0x54db2c,_0xe906ee)=>{if(!_0xe906ee)return;const _0x403985=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2b11d7=>{if(_0xe906ee['key']==m)for(const _0x18d16e of _0x54db2c){const _0x23994f=_0x18d16e['start']['nodeAfter'],_0x16bcc3=_0xe906ee['oldValue'];_0x2b11d7['rename'](_0x23994f,_0x16bcc3);}else{if(_0x403985['_isBlockAttribute'](_0xe906ee['key'])){for(const _0xbf0564 of _0x54db2c)void 0x0!==_0xe906ee['oldValue']?_0x2b11d7['setAttribute'](_0xe906ee['key'],_0xe906ee['oldValue'],_0xbf0564['start']['nodeAfter']):_0x2b11d7['removeAttribute'](_0xe906ee['key'],_0xbf0564['start']['nodeAfter']);}else{for(const _0x28c2ac of _0x54db2c)_0xe906ee['oldValue']?_0x2b11d7['setAttribute'](_0xe906ee['key'],_0xe906ee['oldValue'],_0x28c2ac):_0x2b11d7['removeAttribute'](_0xe906ee['key'],_0x28c2ac);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x13da8e);}}function Ft(_0x4d4627,_0xae1461,_0x4a8192){for(const _0x59dc95 of _0xae1461['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x59dc95['root']==_0x59dc95)return!0x1;if(!_0x4a8192['containsItem'](_0x59dc95))return!0x1;if(_0x4d4627['isObject'](_0x59dc95)||_0x4d4627['isLimit'](_0x59dc95))return!0x0;}return!0x1;}function Pt(_0x148fe6){return _0x148fe6['end']['parent']==_0x148fe6['start']['nodeAfter']&&_0x148fe6['end']['isAtStart'];}function Gt(_0x17a037,_0x1cceec,_0x101767,_0x4919e6){const _0x27972a=_0x4db726=>!_0x4db726['item']['is']('$textProxy')&&!_0x4919e6['isObject'](_0x4db726['item']),_0x5cd4f0=_0x17a037['start']['getLastMatchingPosition'](_0x27972a),_0x49fd59=_0x17a037['end']['getLastMatchingPosition'](_0x27972a,{'direction':'backward'});return(!_0x17a037['start']['isEqual'](_0x5cd4f0)||!_0x17a037['end']['isEqual'](_0x49fd59))&&(_0x5cd4f0['isBefore'](_0x49fd59)?_0x101767['updateMarker'](_0x1cceec,{'range':_0x101767['createRange'](_0x5cd4f0,_0x49fd59)}):_0x101767['removeMarker'](_0x1cceec),!0x0);}function Lt(_0x8130f6){return _0x3e24bc(_0x8130f6);}function Jt(_0x17916c){const _0x2a6b48=_0x17916c['start']['nodeAfter'];return _0x2a6b48&&_0x2a6b48['is']('element');}function Kt(_0x4b35fe,_0x320edc){return null==_0x4b35fe['end']['nodeBefore']&&_0x4b35fe['end']['parent']==_0x4b35fe['start']['nodeAfter']?Ht(_0x4b35fe['start']['nodeAfter'],_0x320edc):_0x4b35fe;}function Ht(_0x6ca0e6,_0x3cdcad){const _0x408f1f=_0x3cdcad['schema']['isObject'](_0x6ca0e6)||_0x3cdcad['schema']['isSelectable'](_0x6ca0e6);return _0x3cdcad['createRange'](_0x3cdcad['createPositionAt'](_0x6ca0e6,'before'),_0x408f1f?_0x3cdcad['createPositionAfter'](_0x6ca0e6):_0x3cdcad['createPositionAt'](_0x6ca0e6,'end'));}function qt(_0x479a63,_0x5d2be7,_0x152cd0,_0x3baf98){return!!zt(_0x479a63,_0x5d2be7)&&_0x152cd0['end']['isEqual'](_0x3baf98['start']);}function zt(_0x13d16e,_0x16f6e9){if(!_0x13d16e['_isDataLoaded']||!_0x16f6e9['_isDataLoaded'])return!0x1;const _0x38bbe4=new Set(Object['keys'](_0x13d16e['attributes'])),_0x3856b5=new Set(Object['keys'](_0x16f6e9['attributes']));if(_0x38bbe4['delete']('groupId'),_0x3856b5['delete']('groupId'),0x0==_0x38bbe4['size']&&0x0==_0x3856b5['size'])return!0x0;if(_0x38bbe4['size']!=_0x3856b5['size'])return!0x1;const _0xd8f60f={..._0x13d16e['attributes']},_0x50782e={..._0x16f6e9['attributes']};return delete _0xd8f60f['groupId'],delete _0x50782e['groupId'],JSON['stringify'](_0xd8f60f)==JSON['stringify'](_0x50782e);}function Wt(_0x24a416,_0x907312){const _0x326bc7=Qt(_0x24a416['attributes']),_0x30c61d=Qt(_0x907312);if(!_0x24a416['_isDataLoaded'])return!0x1;for(const _0x441c92 of Object['keys'](_0x30c61d))if(!_0x31f67f(_0x326bc7[_0x441c92],_0x30c61d[_0x441c92]))return!0x1;return!0x0;}function Qt(_0x122069){const _0x35588b=Object['assign']({},_0x122069);return delete _0x35588b['skipNestingCheck'],delete _0x35588b['tablePasteChainId'],_0x35588b;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x3e391a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3e70ed,_0x4cca3d,_0x314f54,_0x239ed8){super(),this['model']=_0x4cca3d,this['view']=_0x314f54,this['commentThreadController']=_0x239ed8,this['_editor']=_0x3e70ed,this['_acceptCommand']=_0x3e70ed['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3e70ed['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2f0cda,_0x215a8e)=>_0x2f0cda||_0x215a8e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x41bd98=>_0x41bd98&&this['_editor']['model']['canEditAt'](_0x4cca3d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x261eed=>_0x261eed&&this['_editor']['model']['canEditAt'](_0x4cca3d['getRanges']())),this['_pendingAction']=null,_0x314f54['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x314f54,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x314f54,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x314f54,'change:isDirty',()=>{_0x314f54['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 _0x3c0b14=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c0b14);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x56481a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x267eb3,_0x44d04a,_0x36640d,_0x5310d8){super(_0x267eb3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x25c525(_0x267eb3,o(_0x267eb3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x44d04a['authoredAt']),this['bind']('authoredAt')['to'](_0x44d04a),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',_0x44d04a,'authoredAt',this,'descriptionParts',(_0x159eac,_0x57dc60,_0x233aaf)=>{const _0x2233a8=_0x233aaf['map'](_0x12ec6b=>ls(_0x12ec6b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x159eac-0x1,_0x44d04a['author']['name'],_0x57dc60?_0x5310d8['formatDateTime'](_0x57dc60):'',new DOMParser()['parseFromString'](_0x2233a8,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2bdb44(),this['focusTracker']=new _0xebdde7(),this['keystrokes']=new _0x485de4(),this['focusCycler']=new _0x2a3b0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2f9ce3=>_0x2f9ce3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x44d04a,this['_localUser']=_0x36640d,this['_config']=_0x5310d8,_0x5310d8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x581dea(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5d6687}=this['_config'];this['commentsListView']=new _0x5d6687(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',_0x5dee55=>_0x5dee55+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2576b1,_0x3e1216)=>_0x2576b1||!!_0x3e1216);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fe55f}=this['_config'],_0x391094=new _0x2fe55f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xa9bded=_0x391094['commentInputView'];return _0x391094['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xa9bded,'value',(_0x4250cb,_0x3127ed,_0x5f27d2)=>!!_0x5f27d2||_0x4250cb&&!_0x3127ed),_0xa9bded['on']('submit',(_0x438430,_0x20f570)=>{this['fire']('addComment',_0x20f570),_0xa9bded['editor']['setData']('');}),_0xa9bded['on']('cancel',()=>this['focus']()),_0xa9bded['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x391094;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x29f334,_0x3edb8b,_0x1e57ca,_0xd1552a){super(_0x29f334,_0x3edb8b,_0x1e57ca,_0xd1552a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x460b96=>_0x460b96&&_0x460b96[0x0]?_0x460b96[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x297adf,_0x5a076d)=>{let _0x961a7e='';for(const _0x23df74 of _0x297adf)_0x961a7e+='<p>'+ls(_0x23df74['content'],_0x23df74['color'])+'</p>';return _0x5a076d?_0x961a7e:_0x4dbf21(_0x961a7e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd1552a['SuggestionView'](_0x29f334,_0x3edb8b,{'formatDateTime':_0xd1552a['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 _0x312fe5=this['bindTemplate'],_0x57e58a=[this['suggestionView']];return this['commentsListView']&&_0x57e58a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x57e58a['push'](this['commentThreadInputView']),_0x57e58a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x312fe5['if']('isActive','ck-suggestion-wrapper--active'),_0x312fe5['to']('type',_0x26c8a3=>'ck-suggestion-'+_0x26c8a3),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':_0x312fe5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x57e58a};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x56481a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2579ce,_0xd6c211,_0x133829){super(_0x2579ce),this['_model']=_0xd6c211,this['_config']=_0x133829,this['set']('description',''),this['bind']('authoredAt')['to'](_0xd6c211),this['acceptButton']=this['_createButton'](o(_0x2579ce,'Accept\x20suggestion'),_0x4e2f88,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2579ce,'Discard\x20suggestion'),_0x11f7a8,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x251d08(_0x2579ce,_0xd6c211['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2bdb44([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xebdde7(),this['keystrokes']=new _0x485de4(),this['focusCycler']=new _0x2a3b0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x311485=>_0x311485['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x60313f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x60313f['innerHTML']=this['description'],this['on']('change:description',(_0x5d0d2d,_0x10e285,_0x543d5d)=>{_0x60313f['innerHTML']=_0x543d5d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3c330e=this['bindTemplate'],_0x3a0931=[{'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':_0x3c330e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3c330e['to']('authoredAt',_0x4799f8=>this['_config']['formatDateTime'](_0x4799f8))}]}]},{'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']&&_0x3a0931['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':_0x3a0931}]};}['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'](_0x38c83b,_0x563c6b,_0x14bc70,_0x2cea63,_0x477419){const _0x5615aa=new _0x2ae706(this['locale']);return _0x5615aa['set']({'label':_0x38c83b,'icon':_0x563c6b,'tooltip':!0x0,'tooltipPosition':_0x477419}),_0x5615aa['extendTemplate']({'attributes':{'class':_0x14bc70}}),_0x5615aa['on']('execute',()=>{this['fire'](_0x2cea63,this['_model']['id']);}),_0x5615aa;}['_setupKeyboardNavigation'](){const _0x2de529=this['element'];this['keystrokes']['listenTo'](_0x2de529);for(const _0x755239 of this['focusables'])this['focusTracker']['add'](_0x755239['element']),this['keystrokes']['listenTo'](_0x755239['element']);this['keystrokes']['set']('enter',(_0x3442d5,_0x2baa36)=>{_0x2de529===_0x3442d5['target']&&(this['focusCycler']['focusFirst'](),_0x2baa36());}),this['keystrokes']['set']('esc',(_0x2cd303,_0x3a7cdd)=>{_0x2de529!==_0x2cd303['target']&&(this['focus'](),_0x3a7cdd());});}}class u extends _0x28b250{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x148996,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27aedc){super(_0x27aedc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x149b17=this['editor']['config'];_0x149b17['define']('trackChanges.SuggestionThreadView',fe),_0x149b17['define']('trackChanges.SuggestionView',we),_0x149b17['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x149b17['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x472db8,_0x29d5d3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1ec483,_0x50eaf3]of this['_handleControllerBuffer']){const _0x5d7d25=this['_suggestionToController']['has'](_0x1ec483);_0x5d7d25||_0x50eaf3?_0x5d7d25&&_0x50eaf3&&this['_destroyController'](_0x1ec483):this['_initializeController'](_0x1ec483);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x472db8,_0x29d5d3);}['init'](){const _0x298bc7=this['editor'],_0x15ae43=_0x298bc7['plugins']['get']('TrackChangesEditing'),_0x4c303b=_0x298bc7['plugins']['get']('Annotations'),_0x2507be=_0x298bc7['plugins']['get']('EditorAnnotations'),_0xa3fda0=_0x298bc7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2507be['addSourceCollector'](()=>{const _0x8a13b4=[];for(const [_0x4a4e14,_0x6c8eac]of Array['from'](this['_suggestionToController'])){const _0x551811=_0x4a4e14['getAllAdjacentSuggestions'](),_0x21658d=[];for(const _0xfd7860 of _0x551811){if(!_0xfd7860['isInContent'])continue;if(_0xfd7860['isMultiRange']){_0x21658d['push'](..._0xfd7860['getRanges']());continue;}const _0x36968c=_0xfd7860['getFirstRange']();if(_0x21658d['length']>0x0){const _0x36ebba=_0x21658d[0x0]['getJoined'](_0x36968c);if(_0x36ebba){_0x21658d[0x0]=_0x36ebba;continue;}}_0x21658d['push'](_0x36968c);}_0x8a13b4['push']([_0x6c8eac['view'],_0x21658d]);}return _0x8a13b4;}),this['listenTo'](_0x15ae43,'suggestionLoaded',(_0x5aee79,_0x5b3058)=>{this['listenTo'](_0x5b3058,'change:previous',(_0x4faa9f,_0x3acb93,_0x37c9b2,_0x50307f)=>{_0x5b3058['isInContent']&&(null==_0x37c9b2?(this['_updateController'](_0x50307f['head']),this['_handleSuggestionControllerDelayed'](_0x5b3058,!0x1)):(this['_updateController'](_0x37c9b2['head']),null==_0x50307f&&this['_handleSuggestionControllerDelayed'](_0x5b3058,!0x0)));}),null!==_0x5b3058['previous']?this['_updateController'](_0x5b3058['head']):this['_handleSuggestionControllerDelayed'](_0x5b3058,!0x1);}),this['listenTo'](_0x15ae43,'suggestionUnloaded',(_0x3ccec3,_0x1b0085,_0x486350)=>{this['stopListening'](_0x1b0085,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1b0085),this['_suggestionToController']['has'](_0x1b0085)&&this['_destroyController'](_0x1b0085),_0x486350&&this['_updateController'](_0x486350['head']);}),this['listenTo'](_0x15ae43,'suggestionChanged',(_0xf40afc,_0x397778)=>{this['_updateController'](_0x397778);}),this['listenTo'](_0x4c303b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xa3fda0,'addComment',(_0x1b9be4,{threadId:_0x176a1b,isFromAdapter:_0x10776c})=>{if(_0x10776c||!_0x15ae43['hasSuggestion'](_0x176a1b))return;const _0x4c75da=_0x15ae43['getSuggestion'](_0x176a1b);this['_suggestionToController']['get'](_0x4c75da)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x56118f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e8b5e;for(const _0x43573b in _0x56118f){const _0x2edbcb=_0x43573b,_0x143465=_0x56118f[_0x2edbcb];if('trackChangesLicenseKeyValid'==_0x143465||'trackChangesLicenseKeyInvalid'==_0x143465||'trackChangesLicenseKeyExpired'==_0x143465||'trackChangesLicenseKeyDomainLimit'==_0x143465||'trackChangesLicenseKeyNotAllowed'==_0x143465||'trackChangesLicenseKeyEvaluationLimit'==_0x143465||'trackChangesLicenseKeyTrialLimit'==_0x143465||'trackChangesLicenseKeyUsageLimit'==_0x143465){delete _0x56118f[_0x2edbcb],_0x1e8b5e=_0x143465,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1e8b5e&&_0x56118f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1e8b5e&&_0x56118f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1e8b5e&&_0x56118f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1e8b5e&&_0x56118f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x517358=this['editor']['plugins']['get']('Annotations'),_0x1c6daf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56f003=Array['from'](_0x517358['activeAnnotations'],_0x252e37=>_0x252e37['innerView'])['filter'](_0x5d5214=>this['_viewToController']['has'](_0x5d5214)),_0x1f0187=[];for(const _0x15e5f4 of _0x56f003){const _0x5867eb=this['_viewToController']['get'](_0x15e5f4)['model']['getAllAdjacentSuggestions']();_0x1f0187['push'](..._0x5867eb['reduce']((_0x523278,_0xcd5a02)=>[..._0x523278,..._0xcd5a02['getMarkerNames']()],[]));}_0x1c6daf['activeMarkers']=_0x1f0187;}['_addUIComponentsToFactory'](){const _0x2e1d86=this['editor'],_0x3c9622=_0x2e1d86['locale'],_0x545fbe=o(_0x3c9622,'Track\x20changes'),_0x4ae05a=new _0x558e28([{'type':'switchbutton','model':new _0x5b6ffb({'withText':!0x0,'isToggleable':!0x0,'label':_0x545fbe,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2e1d86['plugins']['has']('TrackChangesPreview')&&_0x4ae05a['addMany']([{'type':'separator'},{'type':'button','model':new _0x5b6ffb({'withText':!0x0,'label':o(_0x3c9622,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x9a84dd of _0x4ae05a)if(ke(_0x9a84dd)){const _0x1cad90=_0x2e1d86['commands']['get'](_0x9a84dd['model']['commandName']);_0x9a84dd['model']['bind']('isOn','isEnabled')['to'](_0x1cad90,'value','isEnabled');}_0x2e1d86['ui']['componentFactory']['add']('trackChanges',_0x26de98=>this['_createToolbarButton'](_0x26de98,_0x4ae05a,_0x545fbe)),_0x2e1d86['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2329dd=>this['_createMenuBarMenu'](_0x2329dd,_0x4ae05a,_0x545fbe));}['_createToolbarButton'](_0x14e4d6,_0x4dc51c,_0x229930){const _0x3f34ed=_0x6ae726(_0x14e4d6,_0x1f0b07),_0x4c5b9a=this['editor']['commands']['get']('trackChanges');_0x3f34ed['buttonView']['set']({'tooltip':_0x229930,'label':_0x229930,'icon':_0xc8e2e5}),_0x3f34ed['buttonView']['bind']('isOn')['to'](_0x4c5b9a,'value'),_0x3f34ed['buttonView']['on']('execute',()=>{_0x4c5b9a['execute'](),this['editor']['editing']['view']['focus']();}),_0x6a29f5(_0x3f34ed,_0x4dc51c,{'role':'menu'});const _0x1a6990=[];for(const _0x3f69d8 of _0x4dc51c)ke(_0x3f69d8)&&_0x1a6990['push'](this['editor']['commands']['get'](_0x3f69d8['model']['commandName']));const _0x4a8b29=_0x3f34ed['buttonView'];return _0x4a8b29['actionView']['unbind']('isEnabled'),_0x4a8b29['arrowView']['unbind']('isEnabled'),_0x4a8b29['actionView']['bind']('isEnabled')['to'](_0x4c5b9a,'isEnabled'),_0x4a8b29['arrowView']['bind']('isEnabled')['toMany'](_0x1a6990,'isEnabled',(..._0x540ecf)=>_0x540ecf['some'](_0x1e6fb3=>_0x1e6fb3)),_0x3f34ed['on']('execute',_0x379716=>{this['editor']['execute'](_0x379716['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f34ed;}['_createMenuBarMenu'](_0x2d52a5,_0x493dc4,_0x40026c){const _0x4ec88e=new _0x79c27f(_0x2d52a5),_0x30de69=this['editor']['commands']['get']('trackChanges');_0x4ec88e['buttonView']['set']({'label':_0x40026c,'icon':_0xc8e2e5});const _0xc2de4f=new _0x17d1da(_0x2d52a5);for(const _0x67f673 of _0x493dc4){if('separator'==_0x67f673['type']){_0xc2de4f['items']['add'](new _0x425f2a(_0x2d52a5));continue;}const _0x2b81d2=new _0x2e0880(_0x2d52a5,_0x4ec88e),_0x301049=new _0x24f457(_0x2d52a5),_0x3d21c7=_0x67f673['model'];_0x301049['bind'](...Object['keys'](_0x3d21c7))['to'](_0x3d21c7),_0x301049['delegate']('execute')['to'](_0x4ec88e),_0x301049['on']('execute',()=>{this['editor']['execute'](_0x3d21c7['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b81d2['children']['add'](_0x301049),_0xc2de4f['items']['add'](_0x2b81d2);}return _0x4ec88e['bind']('isEnabled')['to'](_0x30de69,'isEnabled'),_0x4ec88e['panelView']['children']['add'](_0xc2de4f),_0x4ec88e;}['_initializeController'](_0xa4e388){const _0x2ab5d1=this['editor'],_0xd5abaa=_0x2ab5d1['config'],_0x2abd41=_0x2ab5d1['plugins']['get']('Annotations'),_0x3a3956=_0x2ab5d1['plugins']['get']('CommentsRepository'),_0x3d4441=_0x2ab5d1['plugins']['get']('EditorAnnotations'),_0x5670ba=_0x2ab5d1['plugins']['get'](_0x148996)['me'],_0x4a5631=_0xd5abaa['get']('trackChanges')['SuggestionThreadView'],_0x48afb9=_0xd5abaa['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x532465,CommentThreadInputView:_0x58761a}=_0x2ab5d1['plugins']['get']('CommentsUI');let _0x27adb4,_0x2927bc,_0x3358e6;this['_annotationViews']['has'](_0xa4e388['id'])?(_0x2927bc=this['_annotationViews']['get'](_0xa4e388['id']),_0x27adb4=_0x2927bc['mainView']):(_0x27adb4=new _0x4a5631(_0x2ab5d1['locale'],_0xa4e388,_0x5670ba,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd5abaa['get']('comments.editorConfig'),'licenseKey':_0xd5abaa['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd5abaa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd5abaa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd5abaa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1ba8e4(_0xd5abaa['get']('locale'),_0x2ab5d1['locale']),'CommentView':_0xd5abaa['get']('comments')['CommentView'],'CommentsListView':_0x532465,'CommentThreadInputView':_0x58761a,'SuggestionView':_0x48afb9}),_0x27adb4['suggestionView']['acceptButton']['on']('execute',()=>{_0x2ab5d1['editing']['view']['focus']();}),_0x27adb4['suggestionView']['discardButton']['on']('execute',()=>{_0x2ab5d1['editing']['view']['focus']();}),_0x2927bc=_0x2abd41['createAnnotationView'](this['editor']['locale'],_0x27adb4),_0x2927bc['bind']('isDirty')['to'](_0x27adb4,'isDirty'),_0x2927bc['bind']('length')['to'](_0x27adb4),_0x2927bc['bind']('type')['to'](_0x27adb4,'type',_0x5d46f7=>'suggestion-'+_0x5d46f7),_0x27adb4['on']('escape',()=>{_0x3358e6['fire']('escape');}),this['_annotationViews']['set'](_0xa4e388['id'],_0x2927bc));const _0xecf06=_0x3a3956['createCommentThreadController'](_0xa4e388['commentThread'],_0x27adb4),_0x2c6891=new pe(_0x2ab5d1,_0xa4e388,_0x27adb4,_0xecf06),_0x4690d8=_0xa4e388['getAllAdjacentSuggestions']()['filter'](_0x7eb407=>_0x7eb407['isInContent']);_0x27adb4['descriptionParts']=_0x2ab5d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4690d8),this['_suggestionToController']['set'](_0xa4e388,_0x2c6891),this['_viewToController']['set'](_0x27adb4,_0x2c6891),_0x3358e6=_0x2abd41['createAnnotation']({'view':_0x2927bc,'target':()=>{const _0x5d0765=[],_0x4ffe8b=_0xa4e388['getAllAdjacentSuggestions']()['filter'](_0x4053c9=>_0x4053c9['isInContent']);for(const _0x160694 of _0x4ffe8b)_0x5d0765['push'](..._0x160694['getMarkers']());return _0x391156(_0x2ab5d1['editing'],_0x5d0765);},'type':()=>'suggestion-'+_0x2c6891['view']['type']}),_0x3a3956['_bindAnnotationToEditors'](_0x27adb4,_0x3358e6),_0x2abd41['add'](_0x3358e6),_0x3d4441['registerAnnotation'](_0x3358e6);}['_destroyController'](_0x31d2b8){const _0x154aad=this['editor']['plugins']['get']('CommentsRepository'),_0x30691a=this['editor']['plugins']['get']('Annotations'),_0x4086ea=this['_suggestionToController']['get'](_0x31d2b8),_0x3cdd5f=_0x4086ea['view'],_0x20d946=_0x30691a['getByInnerView'](_0x3cdd5f);_0x154aad['_unbindEditors'](_0x3cdd5f),_0x20d946&&_0x30691a['remove'](_0x20d946),this['_suggestionToController']['delete'](_0x31d2b8),this['_viewToController']['delete'](_0x3cdd5f),_0x4086ea['destroy']();}['_updateController'](_0x3f051e){if(!_0x3f051e['isInContent']||!this['_suggestionToController']['has'](_0x3f051e))return;const _0x1cac2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47734f=this['_suggestionToController']['get'](_0x3f051e),_0x34d2d5=_0x3f051e['getAllAdjacentSuggestions']();_0x47734f['view']['descriptionParts']=_0x1cac2b['descriptionFactory']['getDescriptions'](_0x34d2d5);}['destroy'](){for(const _0x1f1c9c of this['_suggestionToController']['keys']())this['_destroyController'](_0x1f1c9c);for(const _0x24c3a9 of this['_annotationViews']['values']())_0x24c3a9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x19e49f){return'model'in _0x19e49f;}class Ge extends _0x28b250{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54a84d){this['editor']['plugins']['get'](d)['adapter']=_0x54a84d;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x472c65){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x472c65);}['getSuggestions']({skipNotAttached:_0x2e092f=!0x1,toJSON:_0x325aa6=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2e092f,'toJSON':_0x325aa6});}['getSuggestion'](_0x212e9c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x212e9c);}}const p=['Pagination'];class re extends _0x28b250{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4dace6=this['editor'];if(_0x4dace6['config']['define']('trackChangesData.editorCreator',_0x3c89f5=>{const _0x1d66df=_0x4dace6['model']['document']['getRootNames']()['reduce']((_0x24b1b9,_0x36b89f)=>(_0x24b1b9[_0x36b89f]='',_0x24b1b9),{});return _0x4dace6['constructor']['create'](_0x1d66df,_0x3c89f5);}),'function'!=typeof _0x4dace6['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ee9c2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x40464a){return w(this['editor'],!0x0,_0x40464a);}['getDataWithDiscardedSuggestions'](_0x5d94b5){return w(this['editor'],!0x1,_0x5d94b5);}}class k extends _0x28b250{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd7694e){function _0x4efc5b(_0x597790){return _0x597790['map'](_0x1066c0=>String['fromCharCode'](_0x1066c0))['join']('');}super(_0xd7694e),this['result']='end',_0xd7694e[_0x4efc5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4efc5b([0x76,0x69,0x65,0x77])][_0x4efc5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4efc5b([0x61,0x75,0x74,0x6f]),_0xd7694e[_0x4efc5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4efc5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4efc5b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4efc5b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4efc5b([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 $e(_0x13702c){return void 0x0!==_0x13702c['getRootsAttributes'];}async function w(_0x28f28c,_0x494f91,_0x89456){const _0x1c8427=_0x3ce4c0(_0x28f28c,p);_0x1c8427['plugins']['push'](d,k),_0x1c8427['rootsAttributes']=$e(_0x28f28c)?_0x28f28c['getRootsAttributes']():void 0x0;const _0x41b26d=document['createDocumentFragment'](),_0x526da9=_0x28f28c['config']['get']('trackChangesData')['editorCreator'],_0x12ea8e=await _0x526da9(_0x1c8427,()=>function(_0x53fb91){const _0x405fc6=document['createElement']('div');return _0x53fb91['appendChild'](_0x405fc6),_0x405fc6;}(_0x41b26d));!function(_0x4314e5,_0x3d3821){const _0x4c0301=_0x4314e5['model']['document']['getRootNames']()['reduce']((_0x5a9f5d,_0x361a29)=>(_0x5a9f5d[_0x361a29]=_0x4314e5['data']['get']({'rootName':_0x361a29}),_0x5a9f5d),{}),_0x4dbe1f=_0x4314e5['plugins']['get']('Users')['users']['map'](_0x5b5fe4=>({'id':_0x5b5fe4['id'],'name':_0x5b5fe4['name']})),_0x29dd9c=_0x4314e5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x40d3c4=_0x4314e5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3eefd4=_0x3d3821['plugins']['get']('Users'),_0x3d2399=_0x3d3821['plugins']['get']('TrackChangesEditing'),_0x5ed927=_0x3d3821['plugins']['get']('CommentsRepository');for(const _0xafadfa of _0x5ed927['getCommentThreads']())_0xafadfa['remove']();for(const _0x2461ba of _0x4dbe1f)_0x3eefd4['getUser'](_0x2461ba['id'])||_0x3eefd4['addUser'](_0x2461ba);_0x3eefd4['me']||_0x3eefd4['useAnonymousUser']();for(const _0xb41d1b of _0x40d3c4)_0x5ed927['addCommentThread'](_0xb41d1b);for(const _0x3ec8cb of _0x29dd9c)_0x3d2399['addSuggestionData'](_0x3ec8cb);_0x3d3821['data']['set'](_0x4c0301);}(_0x28f28c,_0x12ea8e),_0x12ea8e['execute'](_0x494f91?'acceptAllSuggestions':'discardAllSuggestions');const _0xeed579=$e(_0x12ea8e)?_0x12ea8e['getFullData'](_0x89456):_0x12ea8e['data']['get'](_0x89456);return await _0x12ea8e['destroy'](),_0xeed579;}class Me extends _0x56481a{['options'];constructor(_0x148ea2,_0x5d7c1e){super(_0x148ea2),this['options']=_0x5d7c1e,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'](_0x43400a,_0x21220e){if(!this['element'])return;const _0x2317d3=[];for(const [_0x5f1f0b,_0x3a402a]of _0x43400a){const _0x328e45=document['createElement']('div');_0x328e45['setAttribute']('data-ck-root-name',_0x5f1f0b),_0x328e45['className']=_0x3a402a['classes']+'\x20ck-track-changes-preview__root-container',_0x328e45['innerHTML']=_0x3a402a['content'],_0x2317d3['push'](_0x328e45);}_0x21220e(this['element'],_0x2317d3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5cf6aa{constructor(_0x5ca113){super(_0x5ca113),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x130214=this['editor'],_0x324632=_0x130214['locale'],_0x5854e9=_0x130214['plugins']['get']('Dialog');let _0x38a290;const _0x114f50=function(_0x18b3c7){const _0x15305d={};if('editables'in _0x18b3c7['ui']['view']){for(const [_0x75c011,_0x1c4dda]of Object['entries'](_0x18b3c7['ui']['view']['editables']))_0x15305d[_0x75c011]=_0x1c4dda['element'];}else _0x15305d[_0x18b3c7['model']['document']['getRootNames']()[0x0]]=_0x18b3c7['ui']['view']['editable']['element'];return _0x15305d;}(_0x130214),_0x1bc933=function(_0x4a5752){let _0x493ba6=0x0;for(const _0x4f9da5 of Object['values'](_0x4a5752))_0x493ba6=Math['max'](_0x493ba6,_0x4f9da5['getBoundingClientRect']()['width']);let _0x544619=0x0;for(const _0x22c13b of Object['values'](_0x4a5752))_0x544619+=_0x22c13b['getBoundingClientRect']()['height'];const _0x5193e1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x59a5ca=Math['min'](_0x544619,_0x5193e1);return{'width':_0x493ba6,'height':_0x59a5ca};}(_0x114f50);_0x5854e9['show']({'id':'finalContentPreview','title':o(_0x324632,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x324632,{'dialogRects':_0x1bc933}),'onHide':()=>{_0x38a290['detachFromDom']();},'onShow':()=>{_0x130214['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x538085=>{const _0x2565a9=this['_standarizeRootsData'](_0x538085,_0x130214,_0x114f50);_0x5854e9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2565a9,_0x130214['config']['get']('trackChanges.preview.renderFunction'));}),_0x38a290=new _0x36f7c3(_0x324632,[_0x5854e9['view']]),_0x38a290['attachToDom'](),_0x38a290['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x130214['once']('destroy',()=>{_0x38a290['detachFromDom']();});const _0x5a4298=_0x5854e9['view']['headerView']['class'];_0x5854e9['view']['headerView']['class']=_0x5a4298?_0x5a4298+'\x20ck-reset_all':'ck-reset_all',_0x5854e9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5854e9['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3e0417=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x36d87a=_0x3e0417['previewMode'],_0x2dbd8b={};if('$labels'===_0x36d87a){for(const _0x3529d3 of _0x3e0417['getMergeFieldsIds']())_0x2dbd8b[_0x3529d3]=_0x3e0417['getLabel'](_0x3529d3)||_0x3529d3;}else{const _0x36ed91='$defaultValues'===_0x36d87a?_0x3e0417['getDefaultValues']():_0x3e0417['getDataSetValues'](_0x36d87a,!0x0);for(const _0x561c00 of Object['entries'](_0x36ed91)){const [_0x893289,_0x4b44a8]=_0x561c00;_0x2dbd8b[_0x893289]=null!==_0x4b44a8?_0x4b44a8:_0x3e0417['getLabel'](_0x893289)||_0x893289;}}return{'mergeFieldsData':_0x2dbd8b};}['_standarizeRootsData'](_0x1d1b49,_0x979fe7,_0xa90a44){let _0x21d212;if('string'==typeof _0x1d1b49){const _0x5bf5ff=_0x979fe7['model']['document']['getRootNames']()[0x0];_0x21d212={[_0x5bf5ff]:_0x1d1b49};}else _0x21d212=_0x1d1b49;const _0x400046=this['_fixMediaEmbeds'](_0x21d212,_0x979fe7),_0xa82111=function(_0x55a0d0,_0x238522){for(const [_0x2bd71b,_0x3a3833]of _0x55a0d0)_0x3a3833['classes']=_0x238522[_0x2bd71b]['classList']['value']['replace']('ck-focused','');return _0x55a0d0;}(this['_sortRoots'](_0x979fe7)['reduce']((_0x50ccce,_0x2ee11e)=>(_0x50ccce['push']([_0x2ee11e,{'content':_0x400046[_0x2ee11e],'classes':''}]),_0x50ccce),[]),_0xa90a44);return _0xa82111;}['_fixMediaEmbeds'](_0x47b443,_0x583129){if(!_0x583129['plugins']['has']('MediaEmbedEditing'))return _0x47b443;const _0x3ac887=_0x583129['plugins']['get']('MediaEmbedEditing');for(const [_0xe791d4,_0x343517]of Object['entries'](_0x47b443)){const _0x54c4b4=document['createElement']('div');_0x54c4b4['innerHTML']=_0x343517,(_0x54c4b4['querySelectorAll']('figure.media')['forEach'](_0x5a1226=>{const _0x5d8e40=_0x5a1226['querySelector']('oembed');if(_0x5d8e40){const _0x318370=_0x5d8e40['getAttribute']('url');if(_0x318370){const _0x1b436c=_0x3ac887['registry']['getMediaViewElement'](new _0x5400db(_0x583129['editing']['view']['document']),_0x318370,{'elementName':'','renderForEditingView':!0x0}),_0x499b5d=document['createElement']('div');_0x499b5d['classList']['add']('ck-media__wrapper'),_0x1b436c['render'](_0x499b5d,_0x583129['editing']['view']['domConverter']),_0x5d8e40['replaceWith'](_0x499b5d);}}}),_0x47b443[_0xe791d4]=_0x54c4b4['innerHTML']);}return _0x47b443;}['_sortRoots'](_0x5d9872){if(!function(_0x1de823){return void 0x0!==_0x1de823['getRootsAttributes'];}(_0x5d9872))return _0x5d9872['model']['document']['getRootNames']();const _0x46deb9=[],_0x66fef5=new Map();for(const _0x29a865 of _0x5d9872['model']['document']['getRootNames']()){const _0x5146d2=_0x5d9872['editing']['view']['getDomRoot'](_0x29a865)['getClientRects']()['item'](0x0);_0x46deb9['push'](_0x29a865),_0x66fef5['set'](_0x29a865,_0x5146d2);}return _0x46deb9['sort']((_0x416b27,_0x4f1c67)=>{const _0x1d075e=_0x66fef5['get'](_0x416b27),_0x208276=_0x66fef5['get'](_0x4f1c67);return _0x1d075e['y']-_0x208276['y']||_0x1d075e['x']-_0x208276['x'];}),_0x46deb9;}}class He extends _0x28b250{static get['requires'](){return[re,_0x4fa047];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ae5d2){super(_0x5ae5d2),_0x5ae5d2['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5ae5d2['config']['define']('trackChanges.preview.renderFunction',(_0x2f30b3,_0x184178)=>{for(const _0x3bd584 of _0x184178)_0x2f30b3['appendChild'](_0x3bd584);});}}export{M as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,T as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,fe as SuggestionThreadView,we as SuggestionView,Ge as TrackChanges,D as TrackChangesCommand,re as TrackChangesData,d as TrackChangesEditing,He as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x17b867,Plugin as _0x48beba,PendingActions as _0x2ad438}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2bc211,ObservableMixin as _0x75aa98,uid as _0x165ef7,priorities as _0xe29e00,insertToPriorityArray as _0x2df912,toArray as _0x3846ac,logWarning as _0x4add95,getEnvKeystrokeText as _0x3b42e3,FocusTracker as _0x4f2077,KeystrokeHandler as _0x3f37e0,Collection as _0xe2ebaf}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x524563,IconCancel as _0x35fe8b,IconTrackChanges as _0x3de21c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as to,View as _0x308426,ViewCollection as _0x1c3cb1,FocusCycler as _0x28af08,ViewModel as _0x335e7f,createDropdown as _0x4ca3ee,SplitButtonView as _0x1fe5f5,addListToDropdown as _0x268f8f,MenuBarMenuView as _0x27e948,MenuBarMenuListView as _0x1b512c,ListSeparatorView as _0x4e2a1f,MenuBarMenuListItemView as _0x5a6f68,MenuBarMenuListItemButtonView as _0x1e4da2,BodyCollection as _0x4acdd8,Dialog as _0x17ba05}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x16bab2,hashObject as _0x218c4d,surroundingMarkersDetector as _0x53b897,FOCUS_ANNOTATION_KEYSTROKE as _0x332cb9,AriaDescriptionView as _0x91aae8,setupThreadKeyboardNavigation as _0x48e5a1,trimHtml as _0x1bfc31,UserView as _0x5b5037,LateFocusButtonView as _0x424151,getDateTimeFormatter as _0x25988d,getAllMarkersDomElementsSorted as _0x4a13ae,sanitizeEditorConfig as _0x5ba9c5}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2d197a,LiveRange as _0x246516,LivePosition as _0x24623,DowncastWriter as _0x2d66e3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4e5bda,toWidget as _0x126106}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x253a87,set as _0x3f9068,isEqual as _0x2863d8,unset as _0x455693,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2b319e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4df91e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x111d6d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class D extends _0x17b867{['_enabledCommands'];constructor(_0x366c8a,_0x779775){super(_0x366c8a),this['_enabledCommands']=_0x779775,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 _0x4e494f of this['editor']['commands']['commands']())_0x4e494f['affectsData']&&!this['_enabledCommands']['has'](_0x4e494f)&&_0x4e494f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5192ad of this['editor']['commands']['commands']())_0x5192ad['affectsData']&&!this['_enabledCommands']['has'](_0x5192ad)&&_0x5192ad['clearForceDisabled']('TrackChangesCommand');}}class M extends _0x17b867{['_suggestions'];constructor(_0x5e863d,_0x468e67){super(_0x5e863d),this['_suggestions']=_0x468e67,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5cc52c){const _0x43381b=this['_suggestions']['get'](_0x5cc52c);if(!_0x43381b)throw new _0x2bc211('track-changes-accept-suggestion-not-found',this);const _0x18a76e=_0x43381b['getRanges']();this['editor']['model']['canEditAt'](_0x18a76e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x43381b);}}class $ extends _0x17b867{['_suggestions'];constructor(_0x4fb95b,_0x4fa509){super(_0x4fb95b),this['_suggestions']=_0x4fa509,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1f7d27){const _0x2d70bb=this['_suggestions']['get'](_0x1f7d27);if(!_0x2d70bb)throw new _0x2bc211('track-changes-discard-suggestion-not-found',this);const _0x5f309b=_0x2d70bb['getRanges']();this['editor']['model']['canEditAt'](_0x5f309b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2d70bb);}}function ls(_0x582d7a,_0x96d6f9){let _0x5a389d='';return _0x5a389d+=_0x582d7a['split']('*')['map']((_0x164978,_0x50e46f)=>_0x50e46f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x164978)+'</span>':nn(_0x164978))['join'](''),_0x96d6f9&&(_0x5a389d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x96d6f9['value']+'\x22\x20title=\x22'+_0x96d6f9['title']+'\x22></span>'),_0x5a389d;}function nn(_0x29dbc7){const _0x7bdc65=document['createElement']('span');return _0x7bdc65['innerText']=_0x29dbc7,_0x7bdc65['innerHTML'];}function ts(_0x1db74b){return _0x1db74b['sort']((_0x453f76,_0x28df09)=>'deletion'==_0x453f76['type']&&'deletion'!=_0x28df09['type']?-0x1:'deletion'!=_0x453f76['type']&&'deletion'==_0x28df09['type']?0x1:0x0);}function Yt(_0x1f1ec8,_0x44c5be){let _0x6be706,_0x333f2c=0x0;const _0x16e8c5=[],_0x3afb6e=_0x44c5be['schema'];for(;_0x333f2c<_0x1f1ec8['length'];){const _0x488bee=_0x1f1ec8[_0x333f2c],_0x2627b1=_0x1f1ec8[_0x333f2c+0x1];_0x6be706||(_0x6be706=_0x44c5be['createPositionBefore'](_0x488bee)),on(_0x44c5be,_0x488bee,_0x2627b1)||(_0x16e8c5['push'](_0x44c5be['createRange'](_0x6be706,_0x3afb6e['isObject'](_0x488bee)?_0x44c5be['createPositionAfter'](_0x488bee):_0x44c5be['createPositionAt'](_0x488bee,'end'))),_0x6be706=null),_0x333f2c++;}return _0x16e8c5;}function on(_0x15650e,_0xadb4b3,_0x4cc2f5){if(!_0x4cc2f5)return!0x1;const _0x366ed1=_0x15650e['createPositionAfter'](_0xadb4b3),_0x5ac461=_0x15650e['createPositionBefore'](_0x4cc2f5);return _0x366ed1['isTouching'](_0x5ac461);}function rs(_0x4c8511,_0x599475,_0x15f3de){for(;_0x15f3de['length'];){const _0x23e237=_0x15f3de['splice'](0x0,0x64);_0x4c8511['change'](()=>{for(const _0x1a79c3 of _0x23e237)_0x1a79c3['isInContent']&&_0x599475['execute'](_0x1a79c3['id']);});}}class B extends _0x17b867{['_command'];['_suggestions'];constructor(_0x4ad379,_0x5c32ec,_0x1960d1){super(_0x4ad379),this['_command']=_0x5c32ec,this['_suggestions']=_0x1960d1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3703ad=Array['from'](this['_suggestions']['values']())['some'](_0x190f92=>_0x190f92['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3703ad;}['execute'](){const _0x2adb16=ts(Array['from'](this['_suggestions']['values']()));for(const _0xc48490 of _0x2adb16){const _0x1506c5=_0xc48490['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1506c5))return;}rs(this['editor']['model'],this['_command'],_0x2adb16);}}class T extends _0x17b867{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2c5f44,_0x2a5807,_0x76e390){super(_0x2c5f44),this['_command']=_0x2a5807,this['_suggestions']=_0x76e390,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x29b4b8=this['editor']['model']['document']['selection'],_0x1a97ef=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3c30de,_0x3b5517){const _0x110d6e=Array['from'](_0x3c30de['getRanges']()),_0x54220d=new Set();for(const _0x3761ea of _0x3b5517)if(_0x3761ea['isInContent']){for(const _0x56fd55 of _0x110d6e)for(const _0x570a4d of _0x3761ea['getRanges']())(_0x56fd55['isIntersecting'](_0x570a4d)||_0x3c30de['isCollapsed']&&!_0x3761ea['isMultiRange']&&_0x3761ea['next']&&_0x570a4d['end']['isTouching'](_0x56fd55['start']))&&_0x54220d['add'](_0x3761ea);}return _0x54220d;}(_0x29b4b8,_0x1a97ef),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2220a1=ts(Array['from'](this['_selectedSuggestions']));for(const _0x303846 of _0x2220a1){const _0x2bfd97=_0x303846['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2bfd97))return;}rs(this['editor']['model'],this['_command'],_0x2220a1);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x75aa98(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3111cb,_0x3a5899){super(),this['id']=_0x3a5899['id'],this['type']=_0x3a5899['type'],this['subType']=_0x3a5899['subType']||null,this['author']=_0x3a5899['author'],this['creator']=_0x3a5899['creator']||_0x3a5899['author'],this['isExternal']=Boolean(_0x3a5899['attributes']&&_0x3a5899['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x3a5899['originalSuggestionId']||null,this['_model']=_0x3111cb,this['_onAccept']=_0x3a5899['onAccept'],this['_onDiscard']=_0x3a5899['onDiscard'],this['_onAttributesChange']=_0x3a5899['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3a5899['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 _0x3d4994=this;for(;_0x3d4994['previous'];)_0x3d4994=_0x3d4994['previous'];return _0x3d4994;}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'](_0x487bfb){this['_markerNames']['add'](_0x487bfb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1be130=>this['_model']['markers']['get'](_0x1be130))['filter'](_0x1ec919=>_0x1ec919);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x30842f=>{for(const _0x59edb6 of this['getMarkers']())_0x30842f['removeMarker'](_0x59edb6);}),this['_markerNames']['clear']();}['removeMarker'](_0x41f34a){this['_model']['change'](_0x9ed347=>{_0x9ed347['removeMarker'](_0x41f34a);}),this['_markerNames']['delete'](_0x41f34a);}['addRange'](_0x3d1ad1){const _0x1365b1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x1365b1),this['_model']['change'](_0x1aeced=>{_0x1aeced['addMarker'](_0x1365b1,{'range':_0x3d1ad1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e908e){for(const _0x5f4334 of this['getRanges']())if(_0x5f4334['isIntersecting'](_0x3e908e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3c436c=>_0x3c436c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x47a66d,_0x49e7da)=>[..._0x47a66d,..._0x49e7da['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ba048=this['getRanges']();if(0x1!=_0x1ba048['length'])return null;const _0x2ab173=_0x1ba048[0x0],_0x454c79=_0x2ab173['start']['nodeAfter'],_0x29f37e=_0x2ab173['end']['nodeBefore'];return _0x454c79 instanceof _0x2d197a?_0x454c79!=_0x29f37e?null:_0x454c79: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 _0x35ecbd=[];let _0x15f3c7=this['head'];for(;_0x15f3c7;)_0x35ecbd['push'](_0x15f3c7),_0x15f3c7=_0x15f3c7['next'];return _0x35ecbd;}['setAttribute'](_0x22d7c9,_0x297346){const _0x3da9fb=_0x253a87(this['attributes']);_0x3f9068(_0x3da9fb,_0x22d7c9,_0x297346),_0x2863d8(_0x3da9fb,this['attributes'])||(this['attributes']=_0x3da9fb,this['_onAttributesChange'](_0x3da9fb));}['removeAttribute'](_0x43edfc){const _0x481566=_0x253a87(this['attributes']);_0x455693(_0x481566,_0x43edfc),_0x2863d8(_0x481566,this['attributes'])||(this['attributes']=_0x481566,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 _0x165ef7()['substr'](0x1,0x5);}}function o(_0x236a9b,_0x442951,_0x5da559){const _0x3a61b1=_0x236a9b['t'],t=_0x236a9b['t'];switch(_0x442951){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',_0x5da559);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5da559);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5da559);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5da559);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5da559);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',_0x5da559);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5da559);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',_0x5da559);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5da559);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5da559);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5da559);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5da559);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5da559);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5da559);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5da559);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5da559);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5da559);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5da559);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5da559);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5da559);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5da559);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5da559);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5da559);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5da559);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5da559);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'},_0x5da559);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5da559);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5da559);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5da559);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5da559);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5da559);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5da559);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5da559);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'},_0x5da559);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5da559);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5da559);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5da559);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5da559);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'},_0x5da559);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5da559);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'},_0x5da559);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'},_0x5da559);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5da559);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'},_0x5da559);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5da559);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'},_0x5da559);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5da559);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5da559);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'},_0x5da559);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5da559);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 _0x3a61b1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5da559);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3a61b1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5da559);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5da559);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'},_0x5da559);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'},_0x5da559);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'},_0x5da559);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x442951;}}class O{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x348a00,_0x83f4f6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x348a00,this['_locale']=_0x83f4f6;}['getDescriptions'](_0x2e3f64){const _0x5bb0ab=[],_0x318b81=new Set(),_0x45b480=new Set();for(let _0x64317d=0x0;_0x64317d<_0x2e3f64['length'];_0x64317d++){const _0x391036=_0x2e3f64[_0x64317d];if(!_0x391036['isInContent'])continue;const _0x565ea4=this['_handleCustomCallbackDescription'](_0x391036);if(_0x565ea4){if(null!=_0x391036['subType']){if(_0x318b81['has'](_0x391036['subType']))continue;_0x318b81['add'](_0x391036['subType']);}_0x5bb0ab['push'](_0x565ea4);}else{if('attribute'!=_0x391036['type'])'insertion'!=_0x391036['type']&&'deletion'!=_0x391036['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5bb0ab,_0x391036,_0x2e3f64[_0x64317d+0x1]);else{const _0x5e73d5=_0x391036['data']['key'];if(_0x45b480['has'](_0x5e73d5))continue;_0x45b480['add'](_0x391036['data']['key']),_0x5e73d5==m?this['_handleRenameSuggestionDescription'](_0x5bb0ab,_0x391036):this['_handleAttributeSuggestionDescription'](_0x5bb0ab,_0x391036);}}}return this['_resolveDescriptionItems'](_0x5bb0ab);}['registerDescriptionCallback'](_0x28b574){this['_customCallbacks']['push'](_0x28b574);}['registerElementLabel'](_0x135903,_0x226d46,_0x17242c=_0xe29e00['normal']){'function'==typeof _0x135903?_0x2df912(this['_itemLabelsCallbacks'],{'matchingCallback':_0x135903,'label':_0x226d46,'priority':_0x17242c}):this['_itemLabels']['set'](_0x135903,_0x226d46);}['registerAttributeLabel'](_0x1fd60c,_0x4c1b2d){this['_attributeLabels']['set'](_0x1fd60c,_0x4c1b2d);}['getItemLabel'](_0x44813b,_0xf06a26=0x1){let _0x3de531;for(const _0x4542b2 of this['_itemLabelsCallbacks'])if(_0x4542b2['matchingCallback'](_0x44813b)){_0x3de531=_0x4542b2['label'];break;}return _0x3de531||(_0x3de531=this['_itemLabels']['get'](_0x44813b['name'])),_0x3de531?_0x3de531(_0xf06a26):0x1!==_0xf06a26?_0xf06a26+'\x20'+_0x44813b['name']+'s':''+_0x44813b['name'];}['_addDescriptionItems'](_0x28cc00,_0x5508a9){const _0x400655=_0x5508a9['getFirstRange']()['getWalker'](),_0x17fab9='insertion'==_0x5508a9['type']?'add':'remove';for(const _0x1ce0e8 of _0x400655){const _0x2d02da=_0x1ce0e8['item'],_0x1b16a0=_0x28cc00[_0x28cc00['length']-0x1];if(_0x2d02da['is']('$textProxy'))_0x1b16a0&&_0x1b16a0['type']['indexOf']('Container')>-0x1&&_0x28cc00['pop'](),_0x1b16a0&&'text'==_0x1b16a0['type']?_0x1b16a0[_0x17fab9]+=_0x2d02da['data']:_0x28cc00['push']({'type':'text','add':'add'==_0x17fab9?_0x2d02da['data']:'','remove':'remove'==_0x17fab9?_0x2d02da['data']:''});else{if(this['_schema']['isObject'](_0x2d02da)){const _0xfe54af=_0x2d02da;if(_0x1b16a0&&_0x1b16a0['type']['indexOf']('Container')>-0x1&&_0x28cc00['pop'](),'elementEnd'==_0x1ce0e8['type'])continue;_0x1b16a0&&_0x1b16a0['type']==_0x17fab9+'Object'&&_0x1b16a0['element']['name']==_0xfe54af['name']?_0x1b16a0['quantity']++:_0x28cc00['push']({'type':_0x17fab9+'Object','element':_0xfe54af,'quantity':0x1}),_0x400655['skip'](_0x58231c=>!('elementEnd'==_0x58231c['type']&&_0x58231c['item']==_0x2d02da));}else{if(this['_schema']['checkChild'](_0x2d02da,'$text')||_0x2d02da['is']('element','softBreak')){const _0x52d863=_0x2d02da;if('add'==_0x17fab9&&'elementStart'==_0x1ce0e8['type']||'remove'==_0x17fab9&&'elementEnd'==_0x1ce0e8['type'])continue;if(_0x1b16a0&&-0x1==_0x1b16a0['type']['indexOf']('Container')){'text'==_0x1b16a0['type']&&(_0x1b16a0[_0x17fab9]+='\x0a');continue;}let _0x56f665;if(_0x56f665='add'==_0x17fab9?_0x52d863['nextSibling']&&!this['_schema']['isObject'](_0x52d863['nextSibling'])?_0x52d863['nextSibling']:null:_0x52d863['previousSibling']&&!this['_schema']['isObject'](_0x52d863['previousSibling'])?_0x52d863['previousSibling']:null,_0x52d863['isEmpty']||_0x56f665&&_0x56f665['isEmpty']){const _0x460121=_0x56f665&&_0x56f665['isEmpty']?_0x56f665:_0x52d863;_0x1b16a0&&_0x1b16a0['type']==_0x17fab9+'EmptyContainer'&&_0x1b16a0['element']['name']==_0x460121['name']?_0x1b16a0['quantity']++:_0x28cc00['push']({'type':_0x17fab9+'EmptyContainer','element':_0x460121,'quantity':0x1});}else _0x28cc00['push']({'type':_0x17fab9+'Container','element':_0x52d863});}}}}}['_resolveDescriptionItems'](_0x1274fa){const _0x4e9732=this['_locale'],_0x4e60b1=[],_0x132cf1=[],_0x5b5cef=[];for(const _0x81fec8 of _0x1274fa)switch(_0x81fec8['type']){case'text':if(_0x81fec8['add']=_0x81fec8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x81fec8['remove']=_0x81fec8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x81fec8['add']&&''!=_0x81fec8['remove']){_0x4e60b1['push']({'type':'replace','content':o(_0x4e9732,'REPLACE_TEXT',['\x22'+_0x81fec8['remove']+'\x22','\x22'+_0x81fec8['add']+'\x22'])});continue;}if(null!=_0x81fec8['add']['match'](/^ +$/)){_0x4e60b1['push']({'type':'insertion','content':o(_0x4e9732,'*Insert:*\x20%0',o(_0x4e9732,'ELEMENT_SPACE',_0x81fec8['add']['length']))});continue;}if(null!=_0x81fec8['remove']['match'](/^ +$/)){_0x4e60b1['push']({'type':'deletion','content':o(_0x4e9732,'*Remove:*\x20%0',o(_0x4e9732,'ELEMENT_SPACE',_0x81fec8['remove']['length']))});continue;}if(''!=_0x81fec8['add']){_0x4e60b1['push']({'type':'insertion','content':o(_0x4e9732,'*Insert:*\x20%0','\x22'+_0x81fec8['add']+'\x22')});continue;}_0x4e60b1['push']({'type':'deletion','content':o(_0x4e9732,'*Remove:*\x20%0','\x22'+_0x81fec8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4e60b1['push']({'type':'insertion','content':o(_0x4e9732,'*Insert:*\x20%0',this['getItemLabel'](_0x81fec8['element'],_0x81fec8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4e60b1['push']({'type':'deletion','content':o(_0x4e9732,'*Remove:*\x20%0',this['getItemLabel'](_0x81fec8['element'],_0x81fec8['quantity']))});continue;case'addContainer':_0x4e60b1['push']({'type':'insertion','content':o(_0x4e9732,'*Split:*\x20%0',this['getItemLabel'](_0x81fec8['element'],_0x81fec8['quantity']))});continue;case'removeContainer':_0x4e60b1['push']({'type':'deletion','content':o(_0x4e9732,'*Merge:*\x20%0',this['getItemLabel'](_0x81fec8['element'],_0x81fec8['quantity']))});continue;case'addFormat':_0x132cf1['push'](_0x81fec8['key']);continue;case'removeFormat':_0x5b5cef['push'](_0x81fec8['key']);continue;default:_0x4e60b1['push'](_0x81fec8);}if(_0x132cf1['length']){const _0xad9c1a=_0x132cf1['map'](_0x4eb0e4=>this['_attributeLabels']['has'](_0x4eb0e4)?this['_attributeLabels']['get'](_0x4eb0e4):_0x4eb0e4)['join'](',\x20');_0x4e60b1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xad9c1a)});}if(_0x5b5cef['length']){const _0x1d410e=_0x5b5cef['map'](_0x1b2c78=>this['_attributeLabels']['has'](_0x1b2c78)?this['_attributeLabels']['get'](_0x1b2c78):_0x1b2c78)['join'](',\x20');_0x4e60b1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d410e)});}return _0x4e60b1;}['_handleCustomCallbackDescription'](_0x571570){for(const _0x5a58d6 of this['_customCallbacks']){const _0x5268b8=_0x5a58d6(_0x571570);if(_0x5268b8&&'type'in _0x5268b8)return _0x5268b8;}}['_handleAttributeSuggestionDescription'](_0x323de1,_0x180910){const _0x217387=_0x180910['data'],_0x40a8ac=void 0x0===_0x217387['newValue']?'removeFormat':'addFormat';_0x323de1['push']({'type':_0x40a8ac,'key':_0x217387['key']});}['_handleRenameSuggestionDescription'](_0x5e4f36,_0x331716){_0x5e4f36['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x331716['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1741e6,_0x25a612,_0x2fcbd9){if(this['_addDescriptionItems'](_0x1741e6,_0x25a612),_0x2fcbd9&&_0x2fcbd9['getFirstRange']()&&!_0x25a612['getFirstRange']()['end']['isEqual'](_0x2fcbd9['getFirstRange']()['start'])){const _0x1af043=_0x1741e6[_0x1741e6['length']-0x1],_0x1f7037='insertion'==_0x25a612['type']?'add':'remove';_0x1af043&&'text'==_0x1af043['type']&&(_0x1af043[_0x1f7037]+='\x0a');}}}class R extends _0x48beba{['afterInit'](){const _0x1c6f56=this['editor'],_0x2ce4a9=_0x1c6f56['plugins']['get']('TrackChangesEditing');_0x1c6f56['commands']['get']('showAIAssistant')&&_0x2ce4a9['enableCommand']('showAIAssistant');}}class E extends _0x48beba{['afterInit'](){const _0x2f3599=this['editor'],_0x7667a2=_0x2f3599['locale'];if(!_0x2f3599['plugins']['has']('AlignmentEditing'))return;const _0x4bf9e3=_0x2f3599['plugins']['get']('TrackChangesEditing');_0x4bf9e3['enableDefaultAttributesIntegration']('alignment'),_0x4bf9e3['registerBlockAttribute']('alignment'),_0x4bf9e3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x7667a2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b760f=this['editor'],_0x557ae4=_0x1b760f['locale'];_0x1b760f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16b020=>{if('formatBlock'!=_0x16b020['type'])return;const {data:_0x55bd60}=_0x16b020;if(_0x55bd60&&'alignment'==_0x55bd60['commandName']){const _0xbbd7e9=_0x55bd60['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x557ae4,'*Format:*\x20%0',function(_0x57dabb){switch(_0x57dabb){case'left':return o(_0x557ae4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x557ae4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x557ae4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x557ae4,'FORMAT_JUSTIFY_TEXT');}}(_0xbbd7e9))};}});}}const Xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x48beba{['afterInit'](){const _0xaad51b=this['editor'],_0xf3b90=_0xaad51b['plugins']['get']('TrackChangesEditing'),_0x4af45a=_0xaad51b['locale'];for(const _0x2b6f4f of Xt){if(!_0xaad51b['plugins']['has'](_0x2b6f4f))continue;const _0x6676bf=_0x2b6f4f['slice'](0x0,-0x7)['toLowerCase'](),_0x1a501a='FORMAT_'+_0x6676bf['toUpperCase']();_0xf3b90['enableDefaultAttributesIntegration'](_0x6676bf),_0xf3b90['registerInlineAttribute'](_0x6676bf),_0xf3b90['descriptionFactory']['registerAttributeLabel'](_0x6676bf,o(_0x4af45a,_0x1a501a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xeb603f=this['editor'],_0x3b1009=_0xeb603f['locale'],_0x599f5e=_0xeb603f['plugins']['get']('TrackChangesEditing');function _0x3c78f8(_0x36c7ec,_0x52767b){_0x599f5e['descriptionFactory']['registerDescriptionCallback'](_0x244a8d=>{if('formatInline'!=_0x244a8d['type'])return;const {data:_0x4a0755}=_0x244a8d;return _0x4a0755&&_0x4a0755['commandName']===_0x36c7ec?_0x4a0755['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b1009,'*Format:*\x20%0',_0x52767b)}:{'type':'format','content':o(_0x3b1009,'*Remove\x20format:*\x20%0',_0x52767b)}:void 0x0;});}_0x3c78f8('bold',o(_0x3b1009,'FORMAT_BOLD')),_0x3c78f8('italic',o(_0x3b1009,'FORMAT_ITALIC')),_0x3c78f8('underline',o(_0x3b1009,'FORMAT_UNDERLINE')),_0x3c78f8('code',o(_0x3b1009,'FORMAT_CODE')),_0x3c78f8('strikethrough',o(_0x3b1009,'FORMAT_STRIKETHROUGH')),_0x3c78f8('subscript',o(_0x3b1009,'FORMAT_SUBSCRIPT')),_0x3c78f8('superscript',o(_0x3b1009,'FORMAT_SUPERSCRIPT'));}}class V extends _0x48beba{['afterInit'](){const _0x57d55a=this['editor'],_0x195d2e=_0x57d55a['locale'];if(!_0x57d55a['plugins']['has']('BlockQuoteEditing'))return;const _0x62156e=_0x57d55a['plugins']['get']('TrackChangesEditing'),_0x1b50fb=this['editor']['commands']['get']('blockQuote');_0x62156e['enableCommand']('blockQuote',(_0x481b79,_0x2bd96d={})=>{const _0x28bd4f=this['editor']['model']['document']['selection'],_0x2148d9=_0x2bd96d&&void 0x0!==_0x2bd96d['forceValue']?_0x2bd96d['forceValue']:!_0x1b50fb['value'];let _0x34f9b1=[];if(_0x2148d9){const _0x2f9d70=Array['from'](_0x28bd4f['getSelectedBlocks']())['filter'](_0x23869d=>Zt(_0x23869d)||function(_0x3f0964,_0x17a915){const _0x45a24a=_0x17a915['checkChild'](_0x3f0964['parent'],'blockQuote'),_0x12088d=_0x17a915['checkChild'](['$root','blockQuote'],_0x3f0964);return _0x45a24a&&_0x12088d;}(_0x23869d,this['editor']['model']['schema']));_0x34f9b1=Yt(_0x2f9d70,_0x57d55a['model']);}else{const _0x1403e5=Array['from'](_0x28bd4f['getSelectedBlocks']())['filter'](_0x22678f=>Zt(_0x22678f));_0x34f9b1=Yt(_0x1403e5,_0x57d55a['model']);}_0x57d55a['model']['change'](()=>{for(const _0xf4f9cb of _0x34f9b1)_0x62156e['markBlockFormat'](_0xf4f9cb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2148d9}]});});}),_0x62156e['descriptionFactory']['registerDescriptionCallback'](_0x3e7abd=>{const {data:_0x570659}=_0x3e7abd;if(_0x570659&&'blockQuote'==_0x570659['commandName']){const _0x4c1a76=o(_0x195d2e,'ELEMENT_BLOCK_QUOTE');return _0x570659['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x195d2e,'*Set\x20format:*\x20%0',_0x4c1a76)}:{'type':'format','content':o(_0x195d2e,'*Remove\x20format:*\x20%0',_0x4c1a76)};}});}}function Zt(_0x34d47d){return'blockQuote'==_0x34d47d['parent']['name'];}class F extends _0x48beba{['afterInit'](){const _0x45a3a2=this['editor'],_0x4e67c5=_0x45a3a2['locale'],_0xba913=_0x45a3a2['plugins']['get']('TrackChangesEditing');_0x45a3a2['plugins']['has']('BookmarkEditing')&&(_0xba913['enableCommand']('insertBookmark'),_0xba913['enableDefaultAttributesIntegration']('updateBookmark'),_0xba913['registerBlockAttribute']('bookmarkId'),_0xba913['descriptionFactory']['registerDescriptionCallback'](_0x121539=>{if('insertion'!=_0x121539['type']&&'deletion'!=_0x121539['type']&&'attribute'!=_0x121539['type'])return;const _0x5ac66b=_0x121539['getContainedElement']();if(null==_0x5ac66b)return;if(!_0x5ac66b['is']('element','bookmark'))return;const _0x504735=_0x5ac66b['getAttribute']('bookmarkId');if('insertion'==_0x121539['type'])return{'type':'insertion','content':o(_0x4e67c5,'*Insert:*\x20%0','\x22'+_0x504735+'\x22\x20'+o(_0x4e67c5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x121539['type'])return{'type':'deletion','content':o(_0x4e67c5,'*Remove:*\x20%0','\x22'+_0x504735+'\x22\x20'+o(_0x4e67c5,'ELEMENT_BOOKMARK'))};const {data:_0x427e9e}=_0x121539;if(!_0x427e9e||'bookmarkId'!=_0x427e9e['key'])return;return{'type':'format','content':o(_0x4e67c5,'*Set\x20bookmark:*\x20%0','\x22'+_0x427e9e['newValue']+'\x22')};}));}}class G extends _0x48beba{['afterInit'](){const _0x5089c8=this['editor'];_0x5089c8['plugins']['has']('CaseChange')&&(_0x5089c8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5089c8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5089c8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class L extends _0x48beba{['afterInit'](){const _0x1d897b=this['editor'];_0x1d897b['commands']['get']('ckbox')&&_0x1d897b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x48beba{['afterInit'](){const _0x51c2e5=this['editor'];if(!_0x51c2e5['plugins']['has']('CodeBlock'))return;const _0x50f791=_0x51c2e5['plugins']['get']('TrackChangesEditing'),_0x44b463=_0x51c2e5['locale'],_0x32df6a=_0x51c2e5['config']['get']('codeBlock')['languages'],_0x22c6ab=_0x51c2e5['commands']['get']('codeBlock');_0x50f791['enableCommand']('indentCodeBlock'),_0x50f791['enableCommand']('outdentCodeBlock'),_0x50f791['enableCommand']('codeBlock',(_0x2bde2d,_0x203f70={})=>{const _0x5464fd=_0x51c2e5['model'],_0x33faa0=_0x51c2e5['model']['document']['selection'],_0x5b760f=_0x203f70&&void 0x0!==_0x203f70['forceValue']?_0x203f70['forceValue']:!_0x22c6ab['value'];let _0xd71e9c;_0x203f70['language']||(_0x203f70['language']=_0x32df6a[0x0]['language']),_0xd71e9c=_0x5b760f?Array['from'](_0x33faa0['getSelectedBlocks']())['filter'](_0x14054a=>oo(_0x14054a)||function(_0x3fdf73,_0xb5e7b8){if(_0x3fdf73['is']('rootElement')||_0xb5e7b8['isLimit'](_0x3fdf73))return!0x1;return _0xb5e7b8['checkChild'](_0x3fdf73['parent'],'codeBlock');}(_0x14054a,_0x5464fd['schema'])):Array['from'](_0x33faa0['getSelectedBlocks']())['filter'](_0x8ee745=>oo(_0x8ee745));const _0x18c9ff=Yt(_0xd71e9c,_0x5464fd);_0x5464fd['change'](()=>{for(const _0x37068c of _0x18c9ff)_0x50f791['markBlockFormat'](_0x37068c,{'commandName':'codeBlock','commandParams':[{..._0x203f70,'forceValue':_0x5b760f}],'formatGroupId':'blockName'});});}),(_0x50f791['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d7322=>o(_0x44b463,'ELEMENT_CODE_BLOCK',_0x3d7322)),_0x50f791['descriptionFactory']['registerDescriptionCallback'](_0x2da426=>{if('formatBlock'!=_0x2da426['type'])return;const _0x21979d=_0x44b463['t'],{data:_0x4e9433}=_0x2da426;if(!_0x4e9433||'codeBlock'!=_0x4e9433['commandName'])return;const _0xcd0e81=_0x4e9433['commandParams'][0x0]['language'],_0x5824ea=_0x21979d(_0x32df6a['find'](_0x2d8dd2=>_0x2d8dd2['language']===_0xcd0e81)['label'])['toLowerCase']();return _0x4e9433['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44b463,'*Set\x20format:*\x20%0',o(_0x44b463,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5824ea+')')}:{'type':'format','content':o(_0x44b463,'*Remove\x20format:*\x20%0',o(_0x44b463,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x440831){return'codeBlock'==_0x440831['name'];}class K extends _0x48beba{['afterInit'](){const _0x118aab=this['editor'];if(!_0x118aab['plugins']['has']('CommentsEditing'))return;_0x118aab['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x55869f,_0x5e65ec,_0xb7e02){const _0x1e5b8f=[];for(const _0x23fed9 of _0x5e65ec['getItems']())_0x23fed9['hasAttribute'](_0x55869f)&&_0x1e5b8f['push'](_0xb7e02['createRangeOn'](_0x23fed9));return _0x1e5b8f;}function Fe(_0x56986b,_0x7abf7e,{showActiveMarker:_0x131dff=!0x0}={}){const _0x4eeee6=_0x56986b['plugins']['get']('TrackChangesEditing');return(_0x223918,_0x3bda83,_0xc76b2c)=>{if(!_0xc76b2c['consumable']['test'](_0x3bda83['markerRange'],_0x223918['name']))return;const _0x517b59=_0x3bda83['markerRange']['getWalker'](),_0x813641=_0x3bda83['markerRange']['start'],_0x33285d=_0x56986b['model']['schema'];let _0x42d199=null,_0x485187=null,_0x546c38=!0x1,_0x108ee7=!0x1;for(const _0xcb61b3 of _0x517b59){const _0x17af66=_0xcb61b3['item'];_0x546c38=_0x546c38||_0x33285d['isContent'](_0x17af66);const _0xd48ae8=_0xc76b2c['mapper']['toViewElement'](_0x17af66);if(_0xd48ae8&&_0xd48ae8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xcb61b3['type']&&(_0x33285d['isBlock'](_0x17af66)&&!_0x33285d['isLimit'](_0x17af66)&&(_0x17af66['nextSibling']||_0x813641['isAtEnd']?_0x42d199&&_0x42d199['parent']==_0x17af66||(_0x42d199=_0x17af66,_0x24c465(_0xcb61b3['previousPosition']),_0x108ee7=!0x0):_0x485187=_0x485187||_0xcb61b3['previousPosition']));}function _0x24c465(_0x53e7cc){const {id:_0x2af489,authorId:_0x3c691f}=_0x4eeee6['_splitMarkerName'](_0x3bda83['markerName']),_0x1b6a10=_0xc76b2c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7abf7e,'data-suggestion':_0x2af489,'data-author-id':_0x3c691f}),_0x5d5cf2=_0xc76b2c['mapper']['toViewPosition'](_0x53e7cc);_0x131dff&&_0x4eeee6['activeMarkers']['includes'](_0x3bda83['markerName'])&&_0xc76b2c['writer']['addClass']('ck-suggestion-marker--active',_0x1b6a10),_0xc76b2c['writer']['insert'](_0x5d5cf2,_0x1b6a10),_0xc76b2c['mapper']['bindElementToMarker'](_0x1b6a10,_0x3bda83['markerName']);}_0x546c38||_0x108ee7||!_0x485187||_0x24c465(_0x485187);};}class H extends _0x48beba{static get['requires'](){return[_0x2b319e];}['init'](){const _0x42e104=this['editor'],_0x196ac0=_0x42e104['plugins']['get']('TrackChangesEditing');_0x196ac0['enableCommand']('delete');const _0x26d3d7=_0x42e104['commands']['get']('deleteForward');_0x196ac0['enableCommand']('deleteForward',(_0x3d3f3f,_0x225fd2={})=>{const _0x46ab1f=_0x42e104['model']['createSelection'](_0x42e104['model']['document']['selection']);_0x46ab1f['isCollapsed']&&_0x42e104['model']['modifySelection'](_0x46ab1f,{'direction':'forward','unit':_0x225fd2['unit']});const _0x288d2a=_0x46ab1f['getFirstRange'](),_0x5aeba7=_0x246516['fromRange'](_0x288d2a);let _0x4954e3;_0x3d3f3f(_0x225fd2),_0x4954e3='$graveyard'==_0x5aeba7['root']['rootName']?_0x42e104['model']['createRange'](_0x288d2a['start']):_0x42e104['model']['createRange'](_0x5aeba7['start'],_0x5aeba7['end']),_0x5aeba7['detach'](),_0x42e104['model']['enqueueChange'](_0x26d3d7['buffer']['batch'],_0x231f52=>{_0x26d3d7['buffer']['lock'](),_0x231f52['setSelection'](_0x231f52['createRange'](_0x4954e3['end'])),_0x26d3d7['buffer']['unlock']();});}),_0x42e104['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x42e104,'merge'),{'priority':'high'}),_0x42e104['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x346c83,_0x426b9f,_0x375d5b)=>{_0x375d5b['options']['showSuggestionHighlights']&&Fe(_0x42e104,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x346c83,_0x426b9f,_0x375d5b);},{'priority':'high'}),_0x42e104['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5f4ce8,_0x35821e,_0x30d26f)=>{const _0x31769f=_0x30d26f['mapper']['markerNameToElements'](_0x35821e['markerName']);if(_0x31769f){for(const _0x3b4f6e of _0x31769f)_0x3b4f6e['is']('uiElement')&&(_0x30d26f['mapper']['unbindElementFromMarkerName'](_0x3b4f6e,_0x35821e['markerName']),_0x30d26f['writer']['remove'](_0x3b4f6e));}},{'priority':'high'});}}class q extends _0x48beba{['afterInit'](){const _0x2b1fd3=this['editor'];if(!_0x2b1fd3['plugins']['has']('ListEditing'))return;const _0x219a9c=_0x2b1fd3['locale'],_0x19ca56=_0x2b1fd3['plugins']['get']('TrackChangesEditing'),_0x34d562=_0x2b1fd3['plugins']['has']('TodoListEditing'),_0x7cb28c=!!_0x2b1fd3['config']['get']('list.multiBlock');function _0x34b6b8(_0x5d0cd0){return{'type':'format','content':''+o(_0x219a9c,'*Set\x20format:*\x20%0',_0x5d0cd0)};}function _0x1aa553(_0x1b1e29){return{'type':'format','content':''+o(_0x219a9c,'*Remove\x20format:*\x20%0',_0x1b1e29)};}_0x19ca56['enableDefaultAttributesIntegration']('numberedList'),_0x19ca56['enableDefaultAttributesIntegration']('bulletedList'),_0x19ca56['enableDefaultAttributesIntegration']('customNumberedList'),_0x19ca56['enableDefaultAttributesIntegration']('customBulletedList'),_0x19ca56['enableDefaultAttributesIntegration']('indentList'),_0x19ca56['enableDefaultAttributesIntegration']('outdentList'),_0x19ca56['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19ca56['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x19ca56['registerBlockAttribute']('listItemId'),_0x19ca56['registerBlockAttribute']('listType'),_0x19ca56['registerBlockAttribute']('listIndent'),_0x7cb28c&&(_0x19ca56['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19ca56['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x34d562&&(_0x19ca56['enableDefaultAttributesIntegration']('todoList'),_0x19ca56['enableDefaultAttributesIntegration']('checkTodoList'),_0x19ca56['registerBlockAttribute']('todoListChecked'),_0x19ca56['descriptionFactory']['registerDescriptionCallback'](_0x3303be=>{const {data:_0x3bd0e4}=_0x3303be;if(_0x3bd0e4&&'todoListChecked'==_0x3bd0e4['key'])return{'type':'format','content':_0x3bd0e4['newValue']?o(_0x219a9c,'*Check\x20item*'):o(_0x219a9c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xf9985e=>{if(_0xf9985e['batch']['isUndo'])return!0x1;let _0x4aef7d=!0x1;const _0x4b179d=_0x19ca56['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x528334=>'todoListChecked'===_0x19ca56['_getAttributeKey'](_0x528334));for(const _0x12c962 of _0x4b179d){'todo'!=_0x12c962['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19ca56['_findSuggestions'](_0x12c962['getFirstRange'](),'attribute')['find'](_0x31caa9=>'listType'===_0x19ca56['_getAttributeKey'](_0x31caa9['suggestion']))||(_0xf9985e['removeMarker'](_0x12c962['getFirstMarker']()),_0x4aef7d=!0x0));}return _0x4aef7d;})),_0x19ca56['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x219a9c,'FORMAT_INDENT'));const _0x673d1e={'type':'format','content':''};_0x19ca56['descriptionFactory']['registerDescriptionCallback'](_0x4ec9b1=>{const {data:_0x18fa90}=_0x4ec9b1;if(!_0x18fa90||'listType'!=_0x18fa90['key'])return;let _0x295ec3=_0x4ec9b1['head'];for(;_0x295ec3;){if(_0x295ec3['data']&&(('listStyle'==_0x295ec3['data']['key']||'listMarkerStyle'==_0x295ec3['data']['key'])&&(_0x295ec3['data']['newValue']&&'default'!=_0x295ec3['data']['newValue']||'default'!=_0x295ec3['data']['oldValue']&&!_0x18fa90['newValue'])||!_0x7cb28c&&_0x295ec3['data']['key']==m))return _0x673d1e;_0x295ec3=_0x295ec3['next'];}if(null==_0x18fa90['newValue'])switch(_0x18fa90['oldValue']){case'bulleted':return _0x1aa553(o(_0x219a9c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1aa553(o(_0x219a9c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1aa553(o(_0x219a9c,'ELEMENT_TODO_LIST'));}switch(_0x18fa90['newValue']){case'bulleted':return _0x34b6b8(o(_0x219a9c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34b6b8(o(_0x219a9c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34b6b8(o(_0x219a9c,'ELEMENT_TODO_LIST'));}}),_0x19ca56['descriptionFactory']['registerDescriptionCallback'](_0x5f31b6=>{const {data:_0x4c0af8}=_0x5f31b6;if(_0x4c0af8&&'listIndent'==_0x4c0af8['key'])return null==_0x4c0af8['newValue']||null==_0x4c0af8['oldValue']&&0x0==_0x4c0af8['newValue']?_0x673d1e:void 0x0;}),_0x19ca56['descriptionFactory']['registerDescriptionCallback'](_0x402f9f=>{if('attribute'!=_0x402f9f['type'])return;const {data:_0x5ceee9}=_0x402f9f;if(!_0x5ceee9||'listItemId'!=_0x5ceee9['key'])return;const _0x44d743=Te(_0x402f9f);return'newValue'==_0x44d743?{'type':'format','content':o(_0x219a9c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x44d743?{'type':'format','content':o(_0x219a9c,'*Split:*\x20list\x20item')}:_0x673d1e;}),_0x2b1fd3['model']['document']['registerPostFixer'](_0x32eb6b=>this['listItemIdFixer'](_0x32eb6b)),_0x2b1fd3['model']['document']['registerPostFixer'](_0x3b2799=>this['noTrackChangesFixer'](_0x3b2799)),_0x2b1fd3['model']['document']['on']('change:data',(_0x10731d,_0x4b631c)=>{if(_0x4b631c['isUndo']||!_0x4b631c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x355b19){if(_0x355b19['batch']['isUndo']||!_0x355b19['batch']['isLocal'])return!0x1;let _0x42e880=!0x1;const _0x373b96=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ba366=>_0x4ba366['data']&&'listItemId'==_0x4ba366['data']['key'])['filter'](_0x273a4d=>_0x273a4d['data']['newValue']&&_0x273a4d['data']['oldValue']);for(const _0x298cfb of _0x373b96)Te(_0x298cfb)||(_0x355b19['removeMarker'](_0x298cfb['getFirstMarker']()),_0x42e880=!0x0);return _0x42e880;}['noTrackChangesFixer'](_0x368713){if(_0x368713['batch']['isUndo']||!_0x368713['batch']['isLocal'])return!0x1;const _0x3941df=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3941df['trackChangesCommand']['value'])return!0x1;let _0x1a90b1=!0x1;const _0x59e26c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ab710=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x17a743=>'attribute'==_0x17a743['type'])['filter'](_0x137814=>_0x59e26c['includes'](_0x137814['attributeKey']));if(0x0==_0x3ab710['length'])return _0x1a90b1;for(const _0x577ce0 of _0x3ab710){const _0x5f0a3b=_0x3941df['_findSuggestions'](_0x577ce0['range'],'attribute')['filter'](_0x47d751=>!_0x47d751['meta']['isNextTo'])['map'](_0x4f1352=>_0x4f1352['suggestion'])['filter'](_0x360d29=>{const _0x525ce8=_0x3941df['_getAttributeKey'](_0x360d29);return _0x59e26c['includes'](_0x525ce8);});if(_0x5f0a3b['length']){for(const _0x3101bf of _0x5f0a3b)_0x368713['removeMarker'](_0x3101bf['getFirstMarker']());_0x1a90b1=!0x0;}}return _0x1a90b1;}['assureChains'](){const _0x69d975=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54ea2b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x40c7bd;const _0x593b4d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe2a407=>{if(_0xe2a407['data']['oldRange']||!_0xe2a407['data']['newRange'])return null;if(!_0xe2a407['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5a75b6}=_0x69d975['_splitMarkerName'](_0xe2a407['name']);if(!_0x69d975['hasSuggestion'](_0x5a75b6))return null;const _0x2509eb=_0x69d975['getSuggestion'](_0x5a75b6);return _0x54ea2b['includes'](_0x2509eb['data']['key']);})['map'](_0xb98dd1=>{const {id:_0x241d61}=_0x69d975['_splitMarkerName'](_0xb98dd1['name']),_0x347bb9=_0x69d975['getSuggestion'](_0x241d61);return _0x40c7bd=_0x347bb9['attributes']['groupId'],_0x347bb9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x593b4d['size'])return;const _0x27b4a0=_0x69d975['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3aea81=>'attribute'==_0x3aea81['type']&&_0x3aea81['data']&&_0x54ea2b['includes'](_0x3aea81['data']['key'])&&_0x3aea81['attributes']['groupId']!=_0x40c7bd)['map'](_0x41d2c6=>({'listItem':_0x41d2c6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x41d2c6['attributes']['groupId']})),_0x498db8=new Set();for(const {groupId:_0x4207c9,listItem:_0x44e129}of _0x27b4a0)_0x593b4d['has'](_0x44e129)&&_0x498db8['add'](_0x4207c9);for(const _0x11a878 of _0x69d975['getSuggestions']())_0x498db8['has'](_0x11a878['attributes']['groupId'])&&_0x11a878['setAttribute']('groupId',_0x40c7bd);}['_supportLegacySuggestions'](){const _0x848024=this['editor'],_0x1f1c1f=_0x848024['locale'],_0x68f7f6=_0x848024['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x68f7f6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4c6114,_0xf5d8d1){const _0x3523ef=[];for(let _0x21a9dd of _0x4c6114)_0x21a9dd['start']['nodeAfter']===_0x21a9dd['end']['parent']&&(_0x21a9dd=_0x848024['model']['createRange'](_0x848024['model']['createPositionAt'](_0x21a9dd['start']['nodeAfter'],0x0))),_0x3523ef['push'](_0x21a9dd);_0x848024['model']['change'](_0x2da28b=>{const _0x37566c=_0x848024['model']['document']['selection'],_0x38e19a=Array['from'](_0x37566c['getRanges']())['map'](_0x52040e=>_0x246516['fromRange'](_0x52040e));_0x2da28b['setSelection'](_0x3523ef),_0x848024['commands']['get'](_0xf5d8d1['commandName'])['refresh'](),_0xf5d8d1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x848024['execute'](_0xf5d8d1['commandName'],..._0xf5d8d1['commandParams']),_0x2da28b['setSelection'](_0x38e19a);for(const _0xde96f6 of _0x38e19a)_0xde96f6['detach']();});}),_0x68f7f6['descriptionFactory']['registerElementLabel'](function(_0x2137f0){const _0x29a7c7=!_0x848024['model']['schema']['isObject'](_0x2137f0),_0x4a7a6b=_0x2137f0['previousSibling'],_0x392bd8=_0x2137f0['nextSibling'],_0x38579e=_0x2137f0['getAttribute']('listItemId'),_0x353f18=!_0x4a7a6b||_0x4a7a6b['getAttribute']('listItemId')!==_0x38579e,_0x522b4f=!_0x392bd8||_0x392bd8['getAttribute']('listItemId')!==_0x38579e;return _0x29a7c7&&Boolean(_0x38579e)&&_0x353f18&&_0x522b4f;},_0x153dc3=>o(_0x1f1c1f,'ELEMENT_LIST_ITEM',_0x153dc3));}['_registerLegacyDescription'](){const _0x69903e=this['editor'],_0x38b08a=_0x69903e['locale'];function _0x463dec(_0x4f80c0){const _0x43c86e=_0x69903e['commands']['get']('bulletedList')['value'],_0x4d3851=_0x69903e['commands']['get']('numberedList')['value'];return'numberedList'===_0x4f80c0?_0x43c86e:_0x4d3851;}_0x69903e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x9be257){if('formatBlock'!=_0x9be257['type'])return;const {data:_0x5a6b0f}=_0x9be257;if(!_0x5a6b0f)return;let _0x587230,_0x134a68,_0x3cf0b9,_0x2e0953;switch(_0x5a6b0f['commandName']){case'bulletedList':_0x3cf0b9=_0x5a6b0f['commandParams'][0x0]['forceValue'],_0x2e0953=_0x463dec(_0x5a6b0f['commandName']),_0x587230=_0x3cf0b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e0953&&_0x69903e['config']['get']('list.multiBlock')||(_0x587230='*Change\x20to:*\x20%0'),_0x134a68={'type':'format','content':o(_0x38b08a,_0x587230,o(_0x38b08a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3cf0b9=_0x5a6b0f['commandParams'][0x0]['forceValue'],_0x2e0953=_0x463dec(_0x5a6b0f['commandName']),_0x587230=_0x3cf0b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2e0953&&_0x69903e['config']['get']('list.multiBlock')||(_0x587230='*Change\x20to:*\x20%0'),_0x134a68={'type':'format','content':o(_0x38b08a,_0x587230,o(_0x38b08a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x587230='*Indent:*\x20%0',_0x134a68={'type':'format','content':o(_0x38b08a,_0x587230,o(_0x38b08a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x587230=function(_0x193d06){const _0x4262b0=_0x193d06['getFirstRange']();let _0x503352=_0x4262b0['start']['nodeAfter'];for(;_0x503352&&_0x4262b0['containsItem'](_0x503352);){if(_0x503352['getAttribute']('listIndent')>0x0)return!0x1;_0x503352=_0x503352['nextSibling'];}return!0x0;}(_0x9be257)?o(_0x38b08a,'*Format:*\x20remove\x20from\x20%0',o(_0x38b08a,function(_0x4eb639){return'ELEMENT_'+_0x4eb639['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x9be257))):o(_0x38b08a,'*Outdent:*\x20%0',o(_0x38b08a,'ELEMENT_LIST_ITEM')),_0x134a68={'type':'format','content':_0x587230};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5a6b0f['multipleBlocks']&&(_0x587230='*Merge:*\x20%0',_0x134a68={'type':'deletion','content':o(_0x38b08a,_0x587230,o(_0x38b08a,'ELEMENT_LIST_ITEM'))});}return _0x134a68;});}}function Te(_0xc79062){let _0x437357=_0xc79062['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x437357;){const _0x4c0eb5=_0x437357['getAttribute']('listItemId');if(!_0x4c0eb5)return!0x1;if(_0x4c0eb5==_0xc79062['data']['newValue'])return'newValue';if(_0x4c0eb5==_0xc79062['data']['oldValue'])return'oldValue';_0x437357=_0x437357['previousSibling'];}return!0x1;}class z extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x134e60=this['editor']['config']['get']('list.properties'),_0x5f5898=this['editor']['plugins']['get']('TrackChangesEditing');_0x134e60['styles']&&(_0x5f5898['enableDefaultAttributesIntegration']('listStyle'),_0x5f5898['registerBlockAttribute']('listStyle')),_0x134e60['reversed']&&(_0x5f5898['enableDefaultAttributesIntegration']('listReversed'),_0x5f5898['registerBlockAttribute']('listReversed')),_0x134e60['startIndex']&&(_0x5f5898['enableDefaultAttributesIntegration']('listStart'),_0x5f5898['registerBlockAttribute']('listStart'));const _0x4d09dc={'type':'format','content':''};_0x5f5898['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4bd5f6=this['editor']['locale'];_0x5f5898['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4bd5f6,'FORMAT_LIST_REVERSED')),_0x5f5898['descriptionFactory']['registerDescriptionCallback'](_0x119549=>{const {data:_0x42f81f}=_0x119549;if(_0x42f81f&&'listReversed'==_0x42f81f['key'])return null==_0x42f81f['newValue']||0x0==_0x42f81f['newValue']&&null==_0x42f81f['oldValue']?_0x4d09dc:void 0x0;}),_0x5f5898['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4bd5f6,'FORMAT_LIST_START')),_0x5f5898['descriptionFactory']['registerDescriptionCallback'](_0x302e0b=>{const {data:_0x5439ed}=_0x302e0b;if(_0x5439ed&&'listStart'==_0x5439ed['key'])return null==_0x5439ed['newValue']||0x1==_0x5439ed['newValue']&&null==_0x5439ed['oldValue']?_0x4d09dc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xa3d711=>{if(_0xa3d711['batch']['isUndo'])return!0x1;let _0x2c8caf=!0x1;const _0x4ca3d2=_0x5f5898['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e3655=>{const _0xe3ce35=_0x5f5898['_getAttributeKey'](_0x2e3655);return'listStart'==_0xe3ce35||'listReversed'==_0xe3ce35;});for(const _0x303e07 of _0x4ca3d2){const _0x54558f=_0x303e07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x54558f||'customNumbered'==_0x54558f)continue;_0x5f5898['_findSuggestions'](_0x303e07['getFirstRange'](),'attribute')['find'](_0x5d4dd7=>'listType'==_0x5f5898['_getAttributeKey'](_0x5d4dd7['suggestion']))||(_0xa3d711['removeMarker'](_0x303e07['getFirstMarker']()),_0x2c8caf=!0x0);}return _0x2c8caf;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xf901db){const _0x38c9f9=this['editor']['locale'],{data:_0xf55b53}=_0xf901db,_0x3c8925={'type':'format','content':''};if(!_0xf55b53||'listStyle'!=_0xf55b53['key'])return;if(!_0xf55b53['oldValue'])return'default'==_0xf55b53['newValue']?_0x3c8925:{'type':'format','content':''+o(_0x38c9f9,'*Set\x20format:*\x20%0',o(_0x38c9f9,this['_getTranslationKeyForListStyle'](_0xf55b53['newValue'])))};if(!_0xf55b53['newValue']){if('default'==_0xf55b53['oldValue'])return _0x3c8925;let _0x2f835c=_0xf901db['head'];for(;_0x2f835c;){if(_0x2f835c['data']&&'listType'==_0x2f835c['data']['key']&&_0x2f835c['data']['newValue'])return _0x3c8925;_0x2f835c=_0x2f835c['next'];}return{'type':'format','content':''+o(_0x38c9f9,'*Remove\x20format:*\x20%0',o(_0x38c9f9,this['_getTranslationKeyForListStyle'](_0xf55b53['oldValue'])))};}if('default'!=_0xf55b53['newValue'])return{'type':'format','content':''+o(_0x38c9f9,'*Set\x20format:*\x20%0',o(_0x38c9f9,this['_getTranslationKeyForListStyle'](_0xf55b53['newValue'])))};let _0x29ff7b=_0xf901db['head'];for(;_0x29ff7b;){if(_0x29ff7b['data']&&'listType'==_0x29ff7b['data']['key']&&_0x29ff7b['data']['newValue']&&_0x29ff7b['data']['oldValue'])return _0x3c8925;_0x29ff7b=_0x29ff7b['next'];}return{'type':'format','content':o(_0x38c9f9,'*Set\x20format:*\x20%0',o(_0x38c9f9,'ELEMENT_'+_0xf901db['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x160da5=this['editor'],_0x59a84e=_0x160da5['locale'];_0x160da5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc2dfb0=>{if('formatBlock'!=_0xc2dfb0['type'])return;const {data:_0x366d58}=_0xc2dfb0;if(!_0x366d58)return;let _0x14f354,_0x40574b;switch(_0x366d58['commandName']){case'listStyle':_0x14f354='*Change\x20to:*\x20%0',_0x40574b={'type':'format','content':o(_0x59a84e,_0x14f354,o(_0x59a84e,this['_getTranslationKeyForListStyle'](_0x366d58['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14f354=_0x366d58['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40574b={'type':'format','content':o(_0x59a84e,_0x14f354)};break;case'listStart':_0x14f354='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40574b={'type':'format','content':o(_0x59a84e,_0x14f354,_0x366d58['commandParams'][0x0]['startIndex'])};}return _0x40574b;});}['_getTranslationKeyForListStyle'](_0x4a661f){return'ELEMENT_'+function(_0x3403dd){if(Se['includes'](_0x3403dd))return'bulleted';if(_e['includes'](_0x3403dd))return'numbered';return null;}(_0x4a661f)['toUpperCase']()+'_LIST_'+_0x4a661f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x48beba{['afterInit'](){const _0x38acfb=this['editor'];_0x38acfb['commands']['get']('emoji')&&_0x38acfb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Q extends _0x48beba{static get['requires'](){return[_0x4df91e];}['init'](){const _0x53d2c1=this['editor'],_0x11a8c8=_0x53d2c1['plugins']['get']('TrackChangesEditing'),_0x5ede1e=_0x53d2c1['commands']['get']('enter');_0x11a8c8['enableCommand']('enter',()=>{_0x53d2c1['model']['change'](_0x127f25=>{const _0x3ee731=_0x53d2c1['model']['document']['selection'],_0x4f1047=_0x3ee731['getFirstPosition'](),_0x17992b=_0x246516['fromRange'](_0x3ee731['getFirstRange']());if(_0x5ede1e['enterBlock'](_0x127f25)){const _0x2f7924=_0x53d2c1['model']['createPositionAt'](_0x4f1047['parent']['nextSibling'],0x0),_0x106f0c=_0x127f25['createRange'](_0x4f1047,_0x2f7924);_0x11a8c8['markInsertion'](_0x106f0c);}else _0x127f25['setSelection'](_0x127f25['createRange'](_0x17992b['end']));_0x17992b['detach'](),_0x5ede1e['fire']('afterExecute',{'writer':_0x127f25});});}),_0x53d2c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x53d2c1,'split'),{'priority':'high'}),_0x53d2c1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x25198f,_0x3d8128,_0x297f3b)=>{const _0x5657b7=_0x297f3b['mapper']['markerNameToElements'](_0x3d8128['markerName']);if(_0x5657b7){for(const _0x305911 of _0x5657b7)_0x305911['hasClass']('ck-suggestion-marker-split')&&(_0x297f3b['mapper']['unbindElementFromMarkerName'](_0x305911,_0x3d8128['markerName']),_0x297f3b['writer']['remove'](_0x305911));}},{'priority':'high'}),_0x53d2c1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x55c525,_0x64d79d,_0xae2fa6)=>{_0xae2fa6['options']['showSuggestionHighlights']&&Fe(_0x53d2c1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x55c525,_0x64d79d,_0xae2fa6);},{'priority':'high'});}}class X extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x506886=this['editor']['plugins']['get']('TrackChangesEditing');_0x506886['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x506886['enableCommand']('findNext'),_0x506886['enableCommand']('findPrevious'),_0x506886['enableCommand']('replace'),_0x506886['enableCommand']('replaceAll');}['handleFindCommand'](_0x3c0ac0,_0x5c10f5,_0x1b9ab8={}){const _0x150b88=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3c0ac0(_0x2f5d67=>{let _0x17845f=('string'==typeof _0x5c10f5?_0x150b88['findByTextCallback'](_0x5c10f5,_0x1b9ab8):_0x5c10f5)(_0x2f5d67);Array['isArray'](_0x17845f)&&(_0x17845f={'results':_0x17845f,'searchText':'string'==typeof _0x5c10f5?_0x5c10f5:''});const _0xd80e76=_0x17845f['results']['filter'](_0x5a39af=>!0x1===this['_isInDeletionRange'](_0x5a39af,_0x2f5d67['item']));return{..._0x17845f,'results':_0xd80e76};},_0x1b9ab8);}['_isInDeletionRange'](_0x4d4399,_0x16e167){const _0x561e9a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16e167,_0x4d4399['start']),this['editor']['model']['createPositionAt'](_0x16e167,_0x4d4399['end']));for(const _0x4caf3f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x561e9a['getIntersection'](_0x4caf3f['getRange']()))return!0x0;return!0x1;}}const no=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x48beba{['afterInit'](){const _0x31cdb9=this['editor']['locale'],_0x51f135=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3934c9,commandName:_0x34d9df}of no)this['editor']['plugins']['has'](_0x3934c9)&&(_0x51f135['enableDefaultAttributesIntegration'](_0x34d9df),_0x51f135['registerInlineAttribute'](_0x34d9df));_0x51f135['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x31cdb9,'FORMAT_FONT_SIZE')),_0x51f135['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x31cdb9,'FORMAT_FONT_FAMILY')),_0x51f135['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x31cdb9,'FORMAT_FONT_COLOR')),_0x51f135['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x31cdb9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x217a86=this['editor'],_0x33f73e=_0x217a86['locale'];_0x217a86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25a03b=>{const _0x5ec286=_0x33f73e['t'];if('formatInline'!=_0x25a03b['type'])return;const {data:_0xf1f8e8}=_0x25a03b;if(null!=_0xf1f8e8){if('fontSize'==_0xf1f8e8['commandName']){const _0x2f699c=_0xf1f8e8['commandParams'][0x0]['value'];if(_0x2f699c){const _0x3d26a1=_0x5ec286(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x17e30b=>_0x17e30b['model']==_0x2f699c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x33f73e,'*Set\x20font\x20size:*\x20%0',_0x3d26a1)};}return{'type':'format','content':o(_0x33f73e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xf1f8e8['commandName']){const _0x3fa7b1=_0xf1f8e8['commandParams'][0x0]['value'];return _0x3fa7b1?{'type':'format','content':o(_0x33f73e,'*Set\x20font\x20family:*\x20%0',_0x3fa7b1)}:{'type':'format','content':o(_0x33f73e,'*Reset\x20font\x20family*')};}if('fontColor'==_0xf1f8e8['commandName']){const _0x45b36d=_0xf1f8e8['commandParams'][0x0]['value'];if(_0x45b36d){const _0x86a65=to(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f2a92=>_0x5f2a92['model']==_0x45b36d);let _0x394925=_0x45b36d,_0x35a26f='';return _0x86a65&&(_0x394925=_0x86a65['label'],_0x35a26f=_0x5ec286(_0x394925)['toLowerCase']()),{'type':'format','content':o(_0x33f73e,'*Set\x20font\x20color:*\x20%0',_0x35a26f)['trim'](),'color':{'value':_0x45b36d,'title':_0x35a26f||_0x394925}};}return{'type':'format','content':o(_0x33f73e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xf1f8e8['commandName']){const _0x2442ca=_0xf1f8e8['commandParams'][0x0]['value'];if(_0x2442ca){const _0x4fe518=to(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4abd7c=>_0x4abd7c['model']==_0x2442ca);let _0x5dd8bf=_0x2442ca,_0x4a7326='';return _0x4fe518&&(_0x5dd8bf=_0x4fe518['label'],_0x4a7326=_0x5ec286(_0x5dd8bf)['toLowerCase']()),{'type':'format','content':o(_0x33f73e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4a7326)['trim'](),'color':{'value':_0x2442ca,'title':_0x4a7326||_0x5dd8bf}};}return{'type':'format','content':o(_0x33f73e,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x48beba{['afterInit'](){const _0x13230e=this['editor'],_0x1f0148=_0x13230e['plugins']['get']('TrackChangesEditing'),_0x649b8f=_0x13230e['commands']['get']('copyFormat'),_0x158648=_0x13230e['commands']['get']('pasteFormat');_0x649b8f&&_0x158648&&(_0x1f0148['enableDefaultAttributesIntegration']('pasteFormat'),_0x1f0148['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4948f5=this['editor'],_0x491d44=_0x4948f5['locale'];_0x4948f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de2a3=>{if('formatBlock'!=_0x3de2a3['type']&&'formatInline'!=_0x3de2a3['type'])return;const {data:_0x2409fd}=_0x3de2a3;if(_0x2409fd&&'pasteFormat'===_0x2409fd['commandName']){const _0x5cc419=[],_0x2010e5=_0x2409fd['commandParams'][0x0];for(const [_0x2b097c,_0x50e7ab]of Object['entries'](_0x2010e5))_0x5cc419['push'](ro(_0x4948f5,_0x2b097c,_0x50e7ab));return _0x5cc419['length']?{'type':'format','content':o(_0x491d44,'*Set\x20format\x20to:*\x20%0',_0x5cc419['join'](',\x20'))}:{'type':'format','content':o(_0x491d44,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x406bda,_0x10a03a,_0x5150ad){const _0x34a261=_0x406bda['locale']['t'],_0x384071=_0x10a03a['split'](/(?=[A-Z])/)['join']('\x20'),_0x5d5674=_0x34a261(_0x384071['charAt'](0x0)['toUpperCase']()+_0x384071['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5150ad)return _0x5d5674;if('fontColor'===_0x10a03a||'fontBackgroundColor'===_0x10a03a){const _0x2ccd65=to(_0x406bda['config']['get']('fontColor.colors'))['find'](_0x1cf8fb=>_0x1cf8fb['model']==_0x5150ad);return _0x5d5674+'\x20('+(_0x2ccd65?_0x34a261(_0x2ccd65['label'])['toLowerCase']():_0x5150ad)+')';}if('fontSize'===_0x10a03a&&isNaN(parseFloat(_0x5150ad))){const _0x28f1c3=_0x406bda['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x406bda['config']['get']('fontSize.options'))['find'](_0x2130d5=>_0x2130d5['model']==_0x5150ad);return _0x5d5674+'\x20('+(_0x28f1c3?_0x34a261(_0x28f1c3['title'])['toLowerCase']():_0x5150ad)+')';}return _0x5d5674+'\x20('+_0x5150ad+')';}class tt extends _0x48beba{['_headingOptions'];['afterInit'](){const _0x19b1f4=this['editor'];if(!_0x19b1f4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x19b1f4['config']['get']('heading.options');const _0xa22ce1=_0x19b1f4['locale'],_0x272157=_0x19b1f4['plugins']['get']('TrackChangesEditing');_0x272157['enableDefaultAttributesIntegration']('heading');for(const _0x3d0912 of this['_headingOptions'])'paragraph'!=_0x3d0912['model']&&_0x272157['descriptionFactory']['registerElementLabel'](_0x3d0912['model'],_0x330afd=>{const _0x5acdde=this['_getHeadingLevel'](_0x3d0912['model']);return null!==_0x5acdde?_0x4c79a7(_0x330afd,_0x5acdde):_0x34af20(_0x330afd,_0x3d0912['title']);});function _0x4c79a7(_0x1570b2,_0x209ae2){return o(_0xa22ce1,'ELEMENT_HEADING',[_0x1570b2,_0x209ae2]);}function _0x34af20(_0x59cde6,_0xe756){return o(_0xa22ce1,'ELEMENT_HEADING_CUSTOM',[_0x59cde6,_0xe756]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a401c=this['editor'],_0x1bbdd5=_0x1a401c['locale'];function _0x460c57(_0x4add3b,_0x1dd69e){return o(_0x1bbdd5,'ELEMENT_HEADING_CUSTOM',[_0x4add3b,_0x1dd69e]);}_0x1a401c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16dc33=>{if('formatBlock'!=_0x16dc33['type'])return;const {data:_0x13c94b}=_0x16dc33;if(_0x13c94b&&'heading'==_0x13c94b['commandName']){const _0x4ec8d6=_0x13c94b['commandParams'][0x0]['value'],_0x533040=this['_getHeadingLevel'](_0x4ec8d6);if(null!==_0x533040)return{'type':'format','content':o(_0x1bbdd5,'*Change\x20to:*\x20%0',(_0x2b7777=0x1,_0x3dc4c2=_0x533040,o(_0x1bbdd5,'ELEMENT_HEADING',[_0x2b7777,_0x3dc4c2])))};const _0x1e28a3=this['_headingOptions']['find'](_0x1cdaaa=>_0x1cdaaa['model']===_0x4ec8d6)['title'];return{'type':'format','content':o(_0x1bbdd5,'*Change\x20to:*\x20%0',_0x460c57(0x1,_0x1e28a3))};}var _0x2b7777,_0x3dc4c2;});}['_getHeadingLevel'](_0x1aeefc){const _0x2c3831=_0x1aeefc['match'](/^heading(\d+)/);if(_0x2c3831)return _0x2c3831[0x1];const _0x5ed7e0=this['_headingOptions']?.['find'](_0x2d7679=>_0x2d7679['model']==_0x1aeefc);if(_0x5ed7e0&&_0x5ed7e0['view']){const _0x6cb3da=_0x5ed7e0['view'],_0x30aab4=(_0x6cb3da['name']??_0x6cb3da)['match'](/^h(\d+)/);if(_0x30aab4)return _0x30aab4[0x1];}return null;}}class it extends _0x48beba{['afterInit'](){const _0x45c5dc=this['editor'];if(!_0x45c5dc['plugins']['has']('HighlightEditing'))return;const _0x27cdf4=_0x45c5dc['plugins']['get']('TrackChangesEditing'),_0x200a71=_0x45c5dc['locale'];_0x27cdf4['enableDefaultAttributesIntegration']('highlight'),_0x27cdf4['registerInlineAttribute']('highlight'),_0x27cdf4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x200a71,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14b875=this['editor'],_0x38933b=_0x14b875['locale'];_0x14b875['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x277aee=>{if('formatInline'!=_0x277aee['type'])return;const {data:_0x499752}=_0x277aee;if(_0x499752&&'highlight'==_0x499752['commandName']){const _0x221a46=_0x38933b['t'],_0x316a96=_0x499752['commandParams'][0x0]['value'];if(_0x316a96){const _0x59a1b7=_0x14b875['config']['get']('highlight.options')['find'](_0x3d240b=>_0x3d240b['model']==_0x316a96),_0x5931cc=_0x221a46(_0x59a1b7['title'])['toLowerCase']();return{'type':'format','content':o(_0x38933b,'*Set\x20highlight:*\x20%0',_0x5931cc),'color':{'value':_0x59a1b7['color'],'title':_0x59a1b7['title']}};}return{'type':'format','content':o(_0x38933b,'*Remove\x20highlight*',o(_0x38933b,'FORMAT_HIGHLIGHT'))};}});}}class nt extends _0x48beba{['afterInit'](){const _0x3e5838=this['editor'];if(!_0x3e5838['plugins']['has']('HorizontalLineEditing'))return;_0x3e5838['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x59dffe=_0x3e5838['plugins']['get']('TrackChangesEditing'),_0xd39290=_0x3e5838['locale'];_0x59dffe['descriptionFactory']['registerElementLabel']('horizontalLine',_0x295e34=>o(_0xd39290,'ELEMENT_HORIZONTAL_LINE',_0x295e34)),_0x3e5838['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1dc67d,{writer:_0x146dde,options:_0x556803})=>{if(!_0x556803['showSuggestionHighlights'])return null;const _0x1a02c9=_0x146dde['createContainerElement']('div'),_0xe1bf54=_0x146dde['createEmptyElement']('hr');return _0x146dde['addClass']('ck-horizontal-line',_0x1a02c9),_0x146dde['insert'](_0x146dde['createPositionAt'](_0x1a02c9,0x0),_0xe1bf54),_0x1a02c9;},'converterPriority':'high'});}}class et extends _0x48beba{['afterInit'](){const _0xb70d7c=this['editor'];if(!_0xb70d7c['plugins']['has']('HtmlEmbed'))return;const _0x23a371=_0xb70d7c['plugins']['get']('TrackChangesEditing'),_0x12ab8d=_0xb70d7c['locale'];_0x23a371['descriptionFactory']['registerElementLabel']('rawHtml',_0x1d5ed9=>o(_0x12ab8d,'ELEMENT_HTML_EMBED',_0x1d5ed9)),_0x23a371['enableDefaultAttributesIntegration']('htmlEmbed'),_0x23a371['registerBlockAttribute']('value'),_0x23a371['descriptionFactory']['registerDescriptionCallback'](_0x25ac3b=>{if('attribute'!=_0x25ac3b['type'])return;const {data:_0x156379}=_0x25ac3b;if(_0x156379&&'value'==_0x156379['key']&&_0x25ac3b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3cd859=o(_0x12ab8d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x12ab8d,'*Change\x20%0\x20content*',_0x3cd859)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b7dd6=this['editor'],_0x235a96=_0x4b7dd6['locale'];_0x4b7dd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x370042=>{if('formatBlock'!=_0x370042['type'])return;const {data:_0x12816e}=_0x370042;if(_0x12816e&&'htmlEmbed'==_0x12816e['commandName']){const _0x4c12a6=o(_0x235a96,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x235a96,'*Change\x20%0\x20content*',_0x4c12a6)};}});}}class st extends _0x48beba{['afterInit'](){const _0x3fe543=this['editor'];if(!_0x3fe543['plugins']['has']('ImageEditing'))return;const _0x10fc5b=_0x3fe543['plugins']['get']('TrackChangesEditing'),_0x31f821=_0x3fe543['plugins']['get']('ImageUtils'),_0x5ed5ce=_0x3fe543['locale'];_0x10fc5b['enableCommand']('insertImage'),_0x10fc5b['descriptionFactory']['registerElementLabel']('imageBlock',_0x56ad9a=>o(_0x5ed5ce,'ELEMENT_IMAGE',_0x56ad9a)),_0x10fc5b['descriptionFactory']['registerElementLabel']('imageInline',_0x38b9f2=>o(_0x5ed5ce,'ELEMENT_INLINE_IMAGE',_0x38b9f2)),_0x10fc5b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5ed5ce,'ELEMENT_CAPTION')),_0x3fe543['plugins']['has']('ImageUploadEditing')&&_0x10fc5b['enableCommand']('uploadImage'),_0x3fe543['plugins']['has']('ImageBlockEditing')&&_0x3fe543['plugins']['has']('ImageInlineEditing')&&(_0x10fc5b['enableCommand']('imageTypeInline',(_0x53fc7c,_0x36490f)=>{const _0x1de885=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']);_0x3fe543['model']['change'](()=>{_0x10fc5b['markBlockFormat'](_0x1de885,{'commandName':'imageTypeInline','commandParams':[_0x36490f]},[],'convertBlockImageToInline');});}),_0x10fc5b['enableCommand']('imageTypeBlock',(_0x340698,_0x3ce2b5)=>{_0x3fe543['model']['change'](_0x5f2b06=>{let _0x750efa=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']),_0x1a2733=_0x5f2b06['createRangeOn'](_0x750efa);const _0x6416ed=_0x24623['fromPosition'](_0x1a2733['start'],'toPrevious'),_0x5f4d34=_0x24623['fromPosition'](_0x1a2733['end'],'toNext');_0x10fc5b['forceDefaultExecution'](()=>_0x340698(_0x3ce2b5)),_0x750efa=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']),_0x1a2733=_0x5f2b06['createRangeOn'](_0x750efa);const _0x26baa4=_0x5f2b06['createRange'](_0x6416ed,_0x5f4d34);_0x6416ed['detach'](),_0x5f4d34['detach'](),_0x10fc5b['markBlockFormat'](_0x750efa,{'commandName':'imageTypeInline','commandParams':[_0x3ce2b5]},[],'convertInlineImageToBlock'),_0x26baa4['start']['isBefore'](_0x1a2733['start'])&&_0x10fc5b['markInsertion'](_0x5f2b06['createRange'](_0x26baa4['start'],_0x1a2733['start']),'convertInlineImageToBlock'),_0x1a2733['end']['isBefore'](_0x26baa4['end'])&&_0x10fc5b['markInsertion'](_0x5f2b06['createRange'](_0x1a2733['end'],_0x26baa4['end']),'convertInlineImageToBlock');});}),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x10fc5b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x12d174])=>{const _0xbb845c=_0x10fc5b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x218dc5=_0x12d174['start'],_0x390c31=_0x12d174['end'];const _0x31d7b4=_0x3fe543['model']['schema']['getNearestSelectionRange'](_0x218dc5,'backward'),_0x1defb2=_0x3fe543['model']['schema']['getNearestSelectionRange'](_0x390c31,'forward');_0x31d7b4['isCollapsed']&&(_0x218dc5=_0x31d7b4['start']),_0x1defb2['isCollapsed']&&(_0x390c31=_0x1defb2['end']),_0xbb845c([_0x3fe543['model']['createRange'](_0x218dc5,_0x390c31)]);}),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c6e7e),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c6e7e)),_0x3fe543['plugins']['has']('ImageCaptionEditing')&&(_0x10fc5b['enableCommand']('toggleImageCaption',(_0x490416,_0x377aab)=>{const _0x4e1560=_0x3fe543['plugins']['get']('ImageCaptionUtils');let _0x30ec60=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']),_0x3fbd96=_0x4e1560['getCaptionFromImageModelElement'](_0x30ec60);_0x3fe543['model']['change'](()=>{if(_0x3fbd96)return void _0x10fc5b['markDeletion'](_0x3fe543['model']['createRangeOn'](_0x3fbd96));const _0xab27fd=_0x31f821['isBlockImage'](_0x30ec60);_0x490416(_0x377aab),_0x30ec60=_0x31f821['getClosestSelectedImageElement'](_0x3fe543['model']['document']['selection']),_0x3fbd96=_0x4e1560['getCaptionFromImageModelElement'](_0x30ec60),_0x10fc5b['markInsertion'](_0x3fe543['model']['createRangeOn'](_0x3fbd96),_0xab27fd?null:'imageCaption');});}),_0x10fc5b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c6e7e));const _0x1ae7c9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ba047(_0x2e5470,_0x5ccb1b){const _0x405f0c=_0x1ae7c9['findIndex'](({type:_0x317ffb,subType:_0x2e8d04})=>_0x2e5470['type']==_0x317ffb&&_0x2e5470['subType']==_0x2e8d04),_0x1eea71=_0x1ae7c9['findIndex'](({type:_0x5e42fa,subType:_0x3e2d57})=>_0x5ccb1b['type']==_0x5e42fa&&_0x5ccb1b['subType']==_0x3e2d57);if(_0x405f0c<0x0||_0x1eea71<0x0)return!0x1;const _0x259cce=_0x2e5470['getFirstRange'](),_0x313aa5=_0x5ccb1b['getFirstRange']();if((0x0==_0x405f0c||0x1==_0x405f0c)&&0x2==_0x1eea71&&_0x259cce['isIntersecting'](_0x313aa5))return!0x0;if(0x2==_0x405f0c&&0x3==_0x1eea71){const _0x30a0fb=_0x10fc5b['_findSuggestions'](_0x259cce,'insertion')['filter'](({suggestion:_0x2017e8,meta:_0x5994df})=>_0x5994df['isOwn']&&'convertInlineImageToBlock'==_0x2017e8['subType']);if(_0x30a0fb['length']>0x1&&_0x313aa5['end']['isEqual'](_0x259cce['start']))return!0x0;if(0x1==_0x30a0fb['length']&&(_0x259cce['start']['isEqual'](_0x313aa5['end'])||_0x259cce['end']['isEqual'](_0x313aa5['start'])))return!0x0;}if(0x3==_0x405f0c&&0x3==_0x1eea71&&_0x259cce['start']['isBefore'](_0x313aa5['start'])){const _0x356228=_0x259cce['end']['nodeAfter'],_0x3053be=_0x313aa5['start']['nodeBefore'];return _0x31f821['isBlockImage'](_0x356228)&&_0x356228===_0x3053be;}return!0x1;}function _0x2c6e7e(_0x1180bd,_0x3fb153){return _0x5ba047(_0x1180bd,_0x3fb153)?[_0x1180bd,_0x3fb153]:_0x5ba047(_0x3fb153,_0x1180bd)?[_0x3fb153,_0x1180bd]:null;}_0x3fe543['plugins']['has']('ImageResize')&&(_0x10fc5b['enableDefaultAttributesIntegration']('resizeImage'),_0x10fc5b['registerBlockAttribute']('resizedWidth'),_0x10fc5b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5ed5ce,'FORMAT_IMAGE_SIZE'))),_0x3fe543['plugins']['has']('ImageTextAlternativeEditing')&&(_0x10fc5b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x10fc5b['registerBlockAttribute']('alt')),_0x3fe543['plugins']['has']('PictureEditing')&&(_0x10fc5b['registerBlockAttribute']('sources'),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0x14e71b=>{if('attribute'!=_0x14e71b['type'])return;const {data:_0x109674}=_0x14e71b;return _0x109674&&'sources'==_0x109674['key']?{'type':'format','content':''}:void 0x0;})),_0x3fe543['plugins']['has']('ImageSizeAttributes')&&(_0x10fc5b['registerBlockAttribute']('width'),_0x10fc5b['registerBlockAttribute']('height'),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0x226c0e=>{if('attribute'!=_0x226c0e['type'])return;const {data:_0x5ed6e8}=_0x226c0e;return!_0x5ed6e8||'width'!=_0x5ed6e8['key']&&'height'!=_0x5ed6e8['key']?void 0x0:{'type':'format','content':''};})),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0x4ccc6d=>{if(!!_0x1ae7c9['find'](({type:_0x5570c7,subType:_0x3bb652})=>_0x4ccc6d['type']==_0x5570c7&&_0x4ccc6d['subType']==_0x3bb652))return _0x4ccc6d['previous']?{}:void 0x0;}),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0xf7863a=>{if('insertion'==_0xf7863a['type']||'deletion'==_0xf7863a['type']){const _0xa1be3e=_0xf7863a['getContainedElement']();if(_0xa1be3e&&_0xa1be3e['is']('element','caption'))return{'type':'insertion'==_0xf7863a['type']?'addObject':'removeObject','element':_0xa1be3e,'quantity':0x1};}}),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0x5f07ac=>'formatBlock'==_0x5f07ac['type']&&'convertInlineImageToBlock'==_0x5f07ac['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5f07ac['type']&&'convertBlockImageToInline'==_0x5f07ac['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x10fc5b['descriptionFactory']['registerDescriptionCallback'](_0xe46c1c=>{if('attribute'!=_0xe46c1c['type'])return;const {data:_0x560cdd}=_0xe46c1c;if(!_0x560cdd||'alt'!=_0x560cdd['key'])return;const _0x38eb9e=_0x560cdd['newValue'];return _0x38eb9e?{'type':'format','content':o(_0x5ed5ce,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x38eb9e+'\x22')}:{'type':'format','content':o(_0x5ed5ce,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcf54=this['editor'],_0x1acd94=_0x1fcf54['locale'];_0x1fcf54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32bafb=>{if('formatBlock'!=_0x32bafb['type']&&'formatInline'!=_0x32bafb['type'])return;const {data:_0x475e4d}=_0x32bafb;if(_0x475e4d){if('imageTextAlternative'==_0x475e4d['commandName']){const _0x574803=_0x475e4d['commandParams'][0x0]['newValue'];return _0x574803?{'type':'format','content':o(_0x1acd94,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x574803+'\x22')}:{'type':'format','content':o(_0x1acd94,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x475e4d['commandName']){const _0x3a4a26=_0x475e4d['commandParams'][0x0]['width'];return _0x3a4a26?{'type':'format','content':o(_0x1acd94,'*Set\x20image\x20width:*\x20%0',_0x3a4a26)}:{'type':'format','content':o(_0x1acd94,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x24f24a=this['editor']['locale'],_0x13f225=this['editor']['plugins']['get']('TrackChangesEditing');_0x13f225['enableDefaultAttributesIntegration']('replaceImageSource'),_0x13f225['registerBlockAttribute']('src'),_0x13f225['descriptionFactory']['registerDescriptionCallback'](_0xf1a4ad=>{if('attribute'!=_0xf1a4ad['type'])return;const {data:_0x3cfc74}=_0xf1a4ad;return _0x3cfc74&&'src'==_0x3cfc74['key']?_0x3cfc74['newValue']&&_0x3cfc74['oldValue']?{'type':'format','content':o(_0x24f24a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a164c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a164c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a164c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a164c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a164c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490759=this['editor'],_0x35a615=_0x490759['locale'];_0x490759['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39e24b=>{if('formatBlock'!=_0x39e24b['type']&&'formatInline'!=_0x39e24b['type'])return;const {data:_0x264e3c}=_0x39e24b;if(!_0x264e3c||'replaceImageSource'!=_0x264e3c['commandName'])return;return{'type':'format','content':o(_0x35a615,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x48beba{['afterInit'](){const _0x453dfb=this['editor'];if(!_0x453dfb['plugins']['has']('ImageStyleEditing'))return;const _0x242dc7=_0x453dfb['plugins']['get']('TrackChangesEditing'),_0x2c53e3=_0x453dfb['plugins']['get']('ImageUtils'),_0x42b03a={};_0x242dc7['enableCommand']('imageStyle',(_0x4676f5,_0x45574a)=>{const _0xdd1cde=_0x453dfb['plugins']['get']('Users')['me'],_0x324a71=_0x453dfb['commands']['get']('imageStyle');let _0x407e82=_0x2c53e3['getClosestSelectedImageElement'](_0x453dfb['model']['document']['selection']),_0x115edd=_0x453dfb['model']['createRangeOn'](_0x407e82),_0x2cf8c9=_0x324a71['value'];if(_0x2cf8c9==_0x45574a['value'])return;const _0x1debba={'commandName':'imageStyle','commandParams':[_0x45574a],'formatGroupId':_0x165ef7()};_0x453dfb['model']['change'](()=>{if(_0x242dc7['getSuggestions']()['filter'](_0x6810ae=>_0x6810ae['isInContent']&&_0xdd1cde==_0x6810ae['author']&&('formatBlock'==_0x6810ae['type']||'formatInline'==_0x6810ae['type'])&&('imageStylePreApply'==_0x6810ae['subType']||'imageStylePostApply'==_0x6810ae['subType'])&&_0x6810ae['getFirstRange']()['isEqual'](_0x115edd))['forEach'](_0x44f551=>_0x242dc7['discardSuggestion'](_0x44f551['head'])),_0x407e82=_0x2c53e3['getClosestSelectedImageElement'](_0x453dfb['model']['document']['selection']),_0x115edd=_0x453dfb['model']['createRangeOn'](_0x407e82),_0x324a71['refresh'](),_0x453dfb['commands']['get']('imageTypeInline')['refresh'](),_0x453dfb['commands']['get']('imageTypeBlock')['refresh'](),_0x2cf8c9=_0x324a71['value'],_0x2cf8c9!=_0x45574a['value'])return _0x2c53e3['isInlineImage'](_0x407e82)&&_0x324a71['shouldConvertImageType'](_0x45574a['value'],_0x407e82)?(_0x4676f5({..._0x45574a,'setImageSizes':!0x1}),_0x407e82=_0x2c53e3['getClosestSelectedImageElement'](_0x453dfb['model']['document']['selection']),void _0x242dc7['markBlockFormat'](_0x407e82,{..._0x1debba,'commandReversedParams':[{'value':_0x2cf8c9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c53e3['isBlockImage'](_0x407e82)?_0x242dc7['markBlockFormat'](_0x407e82,_0x1debba,[],'imageStylePostApply'):_0x242dc7['markInlineFormat'](_0x115edd,_0x1debba,'imageStylePostApply'));});});for(const _0x3a2017 of _0x453dfb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x42b03a[_0x3a2017['name']]=_0x3a2017['title']['toLowerCase']();_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2dff37])=>{_0x2c53e3['setImageNaturalSizeAttributes'](_0x2dff37['getContainedElement']());}),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x53cfad,_0x4cbe9)=>{_0x242dc7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x53cfad,{'commandName':_0x4cbe9['commandName'],'commandParams':_0x4cbe9['commandReversedParams']});}),_0x242dc7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x53d86c,_0x329285){if(_0x2b7c7e(_0x53d86c,_0x329285))return[_0x53d86c,_0x329285];if(_0x2b7c7e(_0x329285,_0x53d86c))return[_0x329285,_0x53d86c];return null;});const _0x100e07=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b7c7e(_0x18c03c,_0x41a137){const _0x4d08ef=_0x100e07['findIndex'](({type:_0x45e167,subType:_0x4dedcc})=>_0x18c03c['type']==_0x45e167&&_0x18c03c['subType']==_0x4dedcc),_0x563194=_0x100e07['findIndex'](({type:_0x5e87ee,subType:_0x51e710})=>_0x41a137['type']==_0x5e87ee&&_0x41a137['subType']==_0x51e710);if(_0x4d08ef<0x0||_0x563194<0x0)return!0x1;const _0x11effd=_0x18c03c['getFirstRange'](),_0x43a605=_0x41a137['getFirstRange']();if((0x0==_0x4d08ef||0x1==_0x4d08ef)&&0x2==_0x563194&&_0x11effd['isIntersecting'](_0x43a605))return!0x0;if(0x2==_0x4d08ef&&0x3==_0x563194){const _0x165d37=_0x242dc7['_findSuggestions'](_0x11effd,'insertion')['filter'](({suggestion:_0x57ecad,meta:_0x308e54})=>_0x308e54['isOwn']&&'convertInlineImageToBlock'==_0x57ecad['subType']);if(_0x165d37['length']>0x1&&_0x43a605['end']['isEqual'](_0x11effd['start']))return!0x0;if(0x1==_0x165d37['length']&&(_0x11effd['start']['isEqual'](_0x43a605['end'])||_0x11effd['end']['isEqual'](_0x43a605['start'])))return!0x0;}if(0x3==_0x4d08ef&&0x3==_0x563194&&_0x11effd['start']['isBefore'](_0x43a605['start'])){const _0x1811f8=_0x11effd['end']['nodeAfter'],_0x20712a=_0x43a605['start']['nodeBefore'];return _0x2c53e3['isBlockImage'](_0x1811f8)&&_0x1811f8===_0x20712a;}return!0x1;}_0x453dfb['model']['document']['registerPostFixer'](()=>{let _0x25720e=!0x1;const _0x4b6227=Array['from'](_0x453dfb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c79aa,data:_0x4c090e}of _0x4b6227){const {group:_0x47f4da,type:_0x3bac66,subType:_0x12210e,id:_0x1c8e00}=_0x242dc7['_splitMarkerName'](_0x5c79aa);if('suggestion'==_0x47f4da&&_0x242dc7['hasSuggestion'](_0x1c8e00)){if('formatBlock'==_0x3bac66&&('imageStylePreApply'==_0x12210e||'imageStylePostApply'==_0x12210e)){const _0x1979e5=_0x242dc7['getSuggestion'](_0x1c8e00);if(_0x4c090e['newRange']){const _0x4c0a24=_0x1979e5['getFirstRange']()['getContainedElement']();if(_0x2c53e3['isBlockImage'](_0x4c0a24))continue;_0x242dc7['discardSuggestion'](_0x1979e5),_0x25720e=!0x0;}}if('insertion'==_0x3bac66&&'imageCaption'==_0x12210e&&!_0x4c090e['newRange']){const _0x2c5015=_0x242dc7['getSuggestion'](_0x1c8e00);_0x2c5015['next']&&_0x2c5015['next']['isInContent']&&(_0x242dc7['discardSuggestion'](_0x2c5015['next']),_0x25720e=!0x0);}}}return _0x25720e;}),this['_registerLegacyDescription'](_0x42b03a);}['_registerLegacyDescription'](_0x3bd222){const _0x12e57d=this['editor'],_0x3e2471=_0x12e57d['locale'];_0x12e57d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x788c68=>{if('formatBlock'!=_0x788c68['type']&&'formatInline'!=_0x788c68['type'])return;const {data:_0x1abfd0}=_0x788c68;if(!_0x1abfd0||'imageStyle'!=_0x1abfd0['commandName'])return;const _0x5c350c=_0x1abfd0['commandParams'][0x0]['value'];return _0x574ac5('side'===_0x5c350c?o(_0x3e2471,'FORMAT_SIDE_IMAGE'):_0x3bd222[_0x5c350c]||_0x5c350c);function _0x574ac5(_0x351802){return{'type':'format','content':o(_0x3e2471,'*Format:*\x20%0',_0x351802)};}});}}class at extends _0x48beba{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x21f133){super(_0x21f133),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x95b5d2=this['editor'],_0x5a2b5b=_0x95b5d2['commands']['get']('importWord'),_0x451b1f=_0x95b5d2['commands']['get']('trackChanges');_0x5a2b5b&&(_0x5a2b5b['on']('execute',(_0x3e834a,[,_0x5ac29a])=>{this['_trackChangesValueDuringImport']=_0x451b1f['value'],_0x5ac29a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5a2b5b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5a2b5b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x451b1f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x95b5d2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5b48b8,_0xcd8f3){const {suggestions:_0x1dc2ef}=_0xcd8f3,_0x295c22=this['editor']['commands']['get']('trackChanges'),_0x5f1980=_0x295c22['value'];this['_trackChangesValueDuringImport']!==_0x5f1980&&(_0x295c22['execute'](),this['_trackChangesExecuted']=!0x0),_0x1dc2ef&&_0x1dc2ef['forEach'](({id:_0x44cee3,type:_0x49a028,author:_0x5b9ca4,created_at:_0x73318f})=>{const _0xbff285={'id':_0x44cee3,'type':_0x49a028,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5b9ca4,'createdAt':_0x73318f?new Date(_0x73318f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xbff285);});}}class ct extends _0x48beba{['afterInit'](){const _0x19a15f=this['editor'],_0x3021ff=_0x19a15f['plugins']['get']('TrackChangesEditing');if(_0x19a15f['plugins']['has']('IndentEditing')&&(_0x3021ff['enableCommand']('indent'),_0x3021ff['enableCommand']('outdent')),_0x19a15f['plugins']['has']('IndentBlock')){for(const _0xbb87c3 of['indentBlock','outdentBlock'])_0x3021ff['enableDefaultAttributesIntegration'](_0xbb87c3);}const _0x95a8b3=_0x19a15f['locale'];_0x3021ff['registerBlockAttribute']('blockIndent'),_0x3021ff['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x95a8b3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x280082=this['editor'],_0x5e7dc=_0x280082['locale'],_0x27f843=_0x280082['plugins']['get']('TrackChangesEditing');_0x27f843['descriptionFactory']['registerDescriptionCallback'](_0xc5f0e1=>{if('formatBlock'!=_0xc5f0e1['type'])return;const {data:_0x563a0e}=_0xc5f0e1;if(!_0x563a0e)return;if('indentBlock'!=_0x563a0e['commandName']&&'outdentBlock'!=_0x563a0e['commandName'])return;const _0x13a0ce=_0xc5f0e1['getItems']()[0x0],_0x209ae6=_0x27f843['descriptionFactory']['getItemLabel'](_0x13a0ce);return'indentBlock'==_0x563a0e['commandName']?{'type':'format','content':o(_0x5e7dc,'*Indent:*\x20%0',_0x209ae6)}:'outdentBlock'==_0x563a0e['commandName']?{'type':'format','content':o(_0x5e7dc,'*Outdent:*\x20%0',_0x209ae6)}:void 0x0;});}}class ut extends _0x48beba{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ft extends _0x48beba{['afterInit'](){const _0x560a02=this['editor'];if(!_0x560a02['plugins']['has']('LinkEditing'))return;const _0x25a176=_0x560a02['plugins']['get']('TrackChangesEditing'),_0x2fa549=_0x560a02['commands']['get']('link');_0x25a176['enableDefaultAttributesIntegration']('link'),_0x25a176['enableDefaultAttributesIntegration']('unlink'),_0x25a176['registerInlineAttribute']('linkHref');for(const _0x42664c of _0x2fa549['manualDecorators'])_0x25a176['registerInlineAttribute'](_0x42664c['id']),_0x25a176['descriptionFactory']['registerAttributeLabel'](_0x42664c['id'],'link\x20('+_0x42664c['label']['toLowerCase']()+')');_0x25a176['descriptionFactory']['registerDescriptionCallback'](_0x40e093=>{if('attribute'!=_0x40e093['type'])return;const {data:_0x405a79}=_0x40e093;if(!_0x405a79||'linkHref'!=_0x405a79['key'])return;const _0x25812a=_0x405a79['newValue'],_0x4d5df8=_0x560a02['locale'];return{'type':'format','content':null==_0x25812a?o(_0x4d5df8,'*Remove\x20link*'):o(_0x4d5df8,'*Set\x20link:*\x20%0','\x22'+_0x25812a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f4d90=this['editor'],_0x4c2a3a=_0x3f4d90['locale'];_0x3f4d90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c7318=>{if('formatInline'!=_0x2c7318['type'])return;const {data:_0x283e85}=_0x2c7318;if(_0x283e85){if('link'==_0x283e85['commandName']){const _0xddae56=_0x283e85['commandParams'][0x0];return{'type':'format','content':o(_0x4c2a3a,'*Set\x20link:*\x20%0','\x22'+_0xddae56+'\x22')};}return'unlink'==_0x283e85['commandName']?{'type':'format','content':o(_0x4c2a3a,'*Remove\x20link*')}:void 0x0;}});}}class ht extends _0x48beba{['afterInit'](){const _0x1ad05d=this['editor'],_0x5d3fe8=_0x1ad05d['locale'];if(!_0x1ad05d['plugins']['has']('LegacyListEditing'))return;const _0x2a7e58=_0x1ad05d['plugins']['get']('TrackChangesEditing'),_0x398341=_0x1ad05d['plugins']['has']('LegacyTodoListEditing');function _0x3da558(_0x27a283){return()=>{const _0x47f1b1=_0x1ad05d['model']['document']['selection'],_0x2a7bbb=_0x1ad05d['commands']['get'](_0x27a283);if(_0x2a7bbb['value'])return void _0x1ad05d['execute']('paragraph',{});const _0x3d4ad9=_0x27a283['slice'](0x0,-0x4),_0x470430=function(_0x50fe96,_0x3fc8cf,_0x5cfc20){let _0xfdd5d7=Array['from'](_0x50fe96)['filter'](_0x4b534a=>function(_0x4af0fe,_0x5d5fea){return _0x5d5fea['checkChild'](_0x4af0fe['parent'],'listItem')&&!_0x5d5fea['isObject'](_0x4af0fe);}(_0x4b534a,_0x5cfc20));_0xfdd5d7=_0xfdd5d7['filter'](_0xafb085=>!_0xafb085['is']('element','listItem')||_0xafb085['getAttribute']('listType')!=_0x3fc8cf);const _0x46bbd8=new Set();for(const _0x6ece28 of _0xfdd5d7)_0x6ece28['is']('element','listItem')?_0x46bbd8['add'](Le(_0x6ece28)):_0x46bbd8['add'](_0x6ece28);return Array['from'](_0x46bbd8);}(_0x47f1b1['getSelectedBlocks'](),_0x3d4ad9,_0x1ad05d['model']['schema']);_0x1ad05d['model']['change'](()=>{for(const _0x2d56b0 of _0x470430)_0x2a7e58['markBlockFormat'](_0x2d56b0,{'commandName':_0x27a283,'commandParams':[{'forceValue':!_0x2a7bbb['value']}],'formatGroupId':'blockName'},Ee(_0x2d56b0));});};}function _0x4ec192(_0x2dfd37){return()=>{const _0x1c089b=function(_0x30832a){let _0x3226a7=Array['from'](_0x30832a);const _0x3919b6=_0x3226a7['findIndex'](_0x51a161=>'listItem'!=_0x51a161['name']);return _0x3919b6>-0x1&&(_0x3226a7=_0x3226a7['slice'](0x0,_0x3919b6)),_0x3226a7;}(_0x1ad05d['model']['document']['selection']['getSelectedBlocks']()),_0x18759d=_0x1ad05d['model']['createRange'](_0x1ad05d['model']['createPositionAt'](_0x1c089b[0x0],'before'),_0x1ad05d['model']['createPositionAt'](_0x1c089b[_0x1c089b['length']-0x1],'end'));_0x1ad05d['model']['change'](()=>{_0x2a7e58['markBlockFormat'](_0x18759d,{'commandName':_0x2dfd37,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5434c8){const _0x52639c=new Set();for(const _0x2a16e7 of _0x5434c8){let _0x2a615a=_0x2a16e7['nextSibling'];for(;_0x2a615a&&_0x2a615a['getAttribute']('listIndent')>_0x2a16e7['getAttribute']('listIndent');)_0x52639c['add'](_0x2a615a),_0x2a615a=_0x2a615a['nextSibling'];}return Array['from'](_0x52639c);}(_0x1c089b));});};}_0x2a7e58['enableCommand']('numberedList',_0x3da558('numberedList')),_0x2a7e58['enableCommand']('bulletedList',_0x3da558('bulletedList')),_0x398341&&_0x2a7e58['enableCommand']('todoList',_0x3da558('todoList')),_0x2a7e58['enableCommand']('indentList',_0x4ec192('indentList')),_0x2a7e58['enableCommand']('outdentList',_0x4ec192('outdentList')),_0x398341&&_0x2a7e58['enableCommand']('checkTodoList',()=>{const _0x116a0c=_0x1ad05d['commands']['get']('checkTodoList'),_0x177217=Array['from'](_0x116a0c['_selectedElements']);_0x177217['filter'](_0x442aca=>_0x442aca['getAttribute']('todoListChecked')!=_0x116a0c['value']),_0x1ad05d['model']['change'](()=>{for(const _0x51299e of _0x177217)_0x2a7e58['markBlockFormat'](_0x51299e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x116a0c['value']}]});});}),_0x2a7e58['descriptionFactory']['registerElementLabel']('listItem',_0x3102c8=>o(_0x5d3fe8,'ELEMENT_LIST_ITEM',_0x3102c8)),_0x2a7e58['descriptionFactory']['registerDescriptionCallback'](_0x28e756=>{if('formatBlock'!=_0x28e756['type']&&'formatInline'!=_0x28e756['type'])return;const {data:_0x4f6d01}=_0x28e756;if(_0x4f6d01){if('numberedList'==_0x4f6d01['commandName']||'bulletedList'==_0x4f6d01['commandName']||'todoList'==_0x4f6d01['commandName'])switch(_0x4f6d01['commandName']['replace']('List','')){case'bulleted':return _0x195ef9(o(_0x5d3fe8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x195ef9(o(_0x5d3fe8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x195ef9(o(_0x5d3fe8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4f6d01['commandName'])return{'type':'format','content':o(_0x5d3fe8,'*Indent:*\x20%0',o(_0x5d3fe8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4f6d01['commandName'])return{'type':'format','content':o(_0x5d3fe8,'*Outdent:*\x20%0',o(_0x5d3fe8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4f6d01['commandName'])return _0x4f6d01['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d3fe8,'*Check\x20item*')}:{'type':'format','content':o(_0x5d3fe8,'*Uncheck\x20item*')};}function _0x195ef9(_0x4fb934){return{'type':'format','content':o(_0x5d3fe8,'*Change\x20to:*\x20%0',_0x4fb934)};}});}}function Le(_0x389cf8){const _0x31ee63=_0x389cf8['getAttribute']('listIndent');if(0x0==_0x31ee63)return _0x389cf8;let _0x385c84=_0x389cf8;for(;_0x389cf8['previousSibling']&&_0x389cf8['previousSibling']['is']('element','listItem');){const _0x3fb76d=_0x389cf8['previousSibling']['getAttribute']('listIndent');if(_0x3fb76d==_0x31ee63)_0x385c84=_0x389cf8['previousSibling'];else{if(_0x3fb76d<_0x31ee63)break;}_0x389cf8=_0x389cf8['previousSibling'];}return _0x385c84;}function Ee(_0x582fde){const _0x247130=[];if(_0x582fde['is']('element','listItem')&&_0x582fde['getAttribute']('listIndent')>0x0){let _0x2287f4=_0x582fde['nextSibling'];for(;_0x2287f4&&'listItem'==_0x2287f4['name']&&_0x2287f4['getAttribute']('listIndent')==_0x582fde['getAttribute']('listIndent');)_0x247130['push'](_0x2287f4),_0x2287f4=_0x2287f4['nextSibling'];}return _0x247130;}class gt extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4d44b6=this['editor']['config']['get']('list.properties'),_0x20944f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d44b6['styles']&&_0x20944f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4d44b6['reversed']&&_0x20944f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4d44b6['startIndex']&&_0x20944f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x20944f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x91f0fc,_0x4fb095={}){const _0xf780ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x950b8d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf780ea['markMultiRangeBlockFormat'](_0x950b8d,{'commandName':'listStyle','commandParams':[{'type':_0x4fb095['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x20c5f4,_0x833b1f={}){const _0x54d5ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x109a68=this['_getSuggestionBlocks'](_0x5bdad4=>_0x5bdad4['is']('element','listItem')&&'numbered'===_0x5bdad4['getAttribute']('listType'));if(_0x109a68['length']<0x1)return;const _0x4d98cf=_0x109a68['map'](_0x147d80=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x147d80,'before'),this['editor']['model']['createPositionAt'](_0x147d80,0x0)));this['editor']['model']['change'](()=>{_0x54d5ad['markMultiRangeBlockFormat'](_0x4d98cf,{'commandName':'listReversed','commandParams':[{'reversed':_0x833b1f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x181d25,_0x1edba9={}){const _0x1af9cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x986d24=this['_getSuggestionBlocks'](_0x3256e8=>_0x3256e8['is']('element','listItem')&&'numbered'===_0x3256e8['getAttribute']('listType'));if(_0x986d24['length']<0x1)return;const _0x552c2a=_0x986d24['map'](_0x362bcb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x362bcb,'before'),this['editor']['model']['createPositionAt'](_0x362bcb,0x0)));this['editor']['model']['change'](()=>{_0x1af9cf['markMultiRangeBlockFormat'](_0x552c2a,{'commandName':'listStart','commandParams':[{'startIndex':_0x1edba9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x51b1b3){if('formatBlock'!=_0x51b1b3['type']&&'formatInline'!=_0x51b1b3['type'])return;const _0x4c74d1=this['editor']['locale'],{data:_0x2a1059}=_0x51b1b3;if(!_0x2a1059)return;let _0xe0d7d6,_0x4983d6;switch(_0x2a1059['commandName']){case'listStyle':_0xe0d7d6='*Change\x20to:*\x20%0',_0x4983d6={'type':'format','content':o(_0x4c74d1,_0xe0d7d6,o(_0x4c74d1,this['_getTranslationKeyForListStyle'](_0x2a1059['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe0d7d6=_0x2a1059['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4983d6={'type':'format','content':o(_0x4c74d1,_0xe0d7d6)};break;case'listStart':_0xe0d7d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4983d6={'type':'format','content':o(_0x4c74d1,_0xe0d7d6,_0x2a1059['commandParams'][0x0]['startIndex'])};}return _0x4983d6;}['_getSuggestionBlocksForListStyle'](){const _0x2ff8d6=this['editor']['plugins']['get']('LegacyListUtils');let _0x25dffc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x25dffc[0x0]?.['is']('element','listItem')&&_0x25dffc['unshift'](..._0x2ff8d6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x25dffc[_0x25dffc['length']-0x1]?.['is']('element','listItem')&&_0x25dffc['push'](..._0x2ff8d6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x25dffc=[...new Set(_0x25dffc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x25dffc=_0x25dffc['filter'](_0x5087ac=>_0x5087ac['is']('element','listItem'))),_0x25dffc;}['_getSuggestionBlocks'](_0x3cf988){const _0x87aff4=this['editor']['plugins']['get']('LegacyListUtils');let _0x49215b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3cf988)['map'](_0x40c6a5=>{const _0x388d2c=this['editor']['model']['createPositionAt'](_0x40c6a5,0x0);return[..._0x87aff4['getSiblingNodes'](_0x388d2c,'backward'),..._0x87aff4['getSiblingNodes'](_0x388d2c,'forward')];})['flat']();return _0x49215b=[...new Set(_0x49215b)],_0x49215b;}['_getTranslationKeyForListStyle'](_0x10d2f6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x10d2f6)||'default')['toUpperCase']()+'_LIST_'+_0x10d2f6['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x48beba{['afterInit'](){const _0x4bdf12=this['editor'];if(!_0x4bdf12['plugins']['has']('MediaEmbedEditing'))return;const _0x44aa51=_0x4bdf12['plugins']['get']('TrackChangesEditing'),_0x101593=_0x4bdf12['locale'];_0x44aa51['enableCommand']('mediaEmbed'),_0x44aa51['descriptionFactory']['registerElementLabel']('media',_0x49149d=>o(_0x101593,'ELEMENT_MEDIA',_0x49149d)),_0x4bdf12['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4b769d,{writer:_0x33bbaf,options:_0x17fb47})=>{if(_0x17fb47['showSuggestionHighlights'])return _0x33bbaf['createEmptyElement']('div');},'converterPriority':'high'}),_0x4bdf12['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1fbfc8,_0x447a6c,_0x4ebd48)=>{_0x4ebd48['options']['showSuggestionHighlights']&&_0x1fbfc8['stop']();},{'priority':'high'});}}class dt extends _0x48beba{['afterInit'](){const _0x529e22=this['editor'];_0x529e22['plugins']['has']('MentionEditing')&&_0x529e22['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class mt extends _0x48beba{['afterInit'](){const _0x3daade=this['editor'];if(!_0x3daade['plugins']['has']('MergeFieldsEditing'))return;const _0x41e815=_0x3daade['plugins']['get']('TrackChangesEditing'),_0x27e1dc=_0x3daade['locale'];_0x41e815['enableCommand']('insertMergeField'),_0x41e815['enableCommand']('insertMergeFieldBlock'),_0x41e815['enableCommand']('insertMergeFieldImage'),_0x41e815['descriptionFactory']['registerElementLabel']('mergeField',_0x1a2aeb=>o(_0x27e1dc,'ELEMENT_MERGE_FIELD',_0x1a2aeb)),_0x41e815['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xf078aa=>o(_0x27e1dc,'ELEMENT_MERGE_FIELD',_0xf078aa)),_0x41e815['descriptionFactory']['registerDescriptionCallback'](_0x39c3fa=>{if('insertion'!=_0x39c3fa['type']&&'deletion'!=_0x39c3fa['type'])return;const _0x1fc959=_0x39c3fa['getContainedElement']();if(null==_0x1fc959)return;const _0x872933=_0x3daade['plugins']['get']('MergeFieldsEditing');let _0x42f130;switch(_0x872933['getMergeFieldType'](_0x1fc959)){case null:return;case'image':{const _0x48160c=_0x872933['unwrapAffixes'](_0x1fc959['getAttribute']('src'));_0x42f130=_0x872933['getLabel'](_0x48160c)||_0x48160c;break;}default:{const _0x36b73d=_0x1fc959['getAttribute']('id');_0x42f130=_0x872933['getLabel'](_0x36b73d)||_0x36b73d;break;}}return'insertion'==_0x39c3fa['type']?{'type':'insertion','content':o(_0x27e1dc,'*Insert:*\x20%0','\x22'+_0x42f130+'\x22\x20'+o(_0x27e1dc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x27e1dc,'*Remove:*\x20%0','\x22'+_0x42f130+'\x22\x20'+o(_0x27e1dc,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x48beba{['afterInit'](){const _0x514600=this['editor'],_0x2133ac=_0x514600['plugins']['get']('TrackChangesEditing');_0x514600['plugins']['has']('MultiLevelList')&&(_0x2133ac['enableDefaultAttributesIntegration']('multiLevelList'),_0x2133ac['registerBlockAttribute']('listMarkerStyle'),_0x2133ac['descriptionFactory']['registerDescriptionCallback'](_0x54d7cd=>this['handleDescriptions'](_0x54d7cd)));}['handleDescriptions'](_0x4d9017){const _0xbe9d91=this['editor']['locale'],{data:_0x1f2d92}=_0x4d9017,_0x3b31bb={'type':'format','content':''};if(_0x1f2d92&&'listMarkerStyle'==_0x1f2d92['key']){if(!_0x1f2d92['oldValue'])return{'type':'format','content':o(_0xbe9d91,'*Set\x20format:*\x20%0',o(_0xbe9d91,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f2d92['newValue']+')'};if(!_0x1f2d92['newValue']){let _0x40280b=_0x4d9017['head'];for(;_0x40280b;){if(_0x40280b['data']&&'listType'==_0x40280b['data']['key']&&_0x40280b['data']['newValue'])return _0x3b31bb;_0x40280b=_0x40280b['next'];}return{'type':'format','content':o(_0xbe9d91,'*Remove\x20format:*\x20%0',o(_0xbe9d91,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f2d92['oldValue']+')'};}}}}class kt extends _0x48beba{['afterInit'](){const _0x2c5393=this['editor'];if(!_0x2c5393['plugins']['has']('PageBreakEditing'))return;_0x2c5393['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x682fd3=_0x2c5393['plugins']['get']('TrackChangesEditing'),_0x1977c2=_0x2c5393['locale'];_0x682fd3['descriptionFactory']['registerElementLabel']('pageBreak',_0x55a8f7=>o(_0x1977c2,'ELEMENT_PAGE_BREAK',_0x55a8f7));}}class wt extends _0x48beba{['afterInit'](){const _0x422d64=this['editor'];if(!_0x422d64['plugins']['has']('Paragraph'))return;const _0x291c1b=_0x422d64['locale'],_0x403234=_0x422d64['plugins']['get']('TrackChangesEditing');_0x403234['descriptionFactory']['registerElementLabel']('paragraph',_0x48a0ca=>o(_0x291c1b,'ELEMENT_PARAGRAPH',_0x48a0ca)),_0x403234['enableDefaultAttributesIntegration']('paragraph'),_0x403234['enableCommand']('insertParagraph'),_0x422d64['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x422d64),{'priority':'highest'}),_0x422d64['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3b90f1,_0x351a69,_0x2df93c)=>{_0x2df93c['options']['showSuggestionHighlights']&&nr(_0x422d64,{'showActiveMarker':!0x1})(_0x3b90f1,_0x351a69,_0x2df93c);},{'priority':'highest'});const _0x4c143d=_0x403234['descriptionFactory'];_0x4c143d['registerDescriptionCallback'](_0x265a00=>{if('insertion'!==_0x265a00['type'])return;const {start:_0x24a8a7,end:_0x2fbbf8}=_0x265a00['getFirstRange']();if(!_0x24a8a7['isTouching'](_0x2fbbf8)||!_0x24a8a7['nodeAfter'])return;const _0x2db86d=_0x422d64['model']['schema'],_0x1ff70e=_0x24a8a7['nodeAfter'];return _0x2db86d['isBlock'](_0x1ff70e)&&!_0x2db86d['isLimit'](_0x1ff70e)&&_0x2db86d['checkChild'](_0x1ff70e,'$text')?{'type':'insertion','content':o(_0x291c1b,'*Insert:*\x20%0',_0x4c143d['getItemLabel'](_0x1ff70e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39b819=this['editor'],_0x1deb44=_0x39b819['locale'];_0x39b819['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2484f3=>{if('formatBlock'!=_0x2484f3['type'])return;const {data:_0x2c9df8}=_0x2484f3;return _0x2c9df8&&'paragraph'==_0x2c9df8['commandName']?{'type':'format','content':o(_0x1deb44,'*Change\x20to:*\x20%0',o(_0x1deb44,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x47c2bc,{showActiveMarker:_0x26f520=!0x0}={}){return(_0x4e81cc,_0x23553f,_0x847f9e)=>{const _0x1ffc6b=_0x47c2bc['plugins']['get']('TrackChangesEditing'),_0x56e9b7=_0x23553f['markerRange']['start'],_0x2eee02=_0x23553f['markerRange']['end'],_0x3c7045=_0x47c2bc['model']['schema'];if(!_0x56e9b7['isTouching'](_0x2eee02)||!_0x56e9b7['nodeAfter'])return;const _0x5e4930=_0x56e9b7['nodeAfter'];if(_0x3c7045['isBlock'](_0x5e4930)&&!_0x3c7045['isLimit'](_0x5e4930)&&_0x3c7045['checkChild'](_0x5e4930,'$text')){if(!_0x847f9e['consumable']['consume'](_0x23553f['markerRange'],_0x4e81cc['name']))return;const {id:_0x1483ae,authorId:_0x35626a}=_0x1ffc6b['_splitMarkerName'](_0x23553f['markerName']),_0x2886ce=_0x847f9e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1483ae,'data-author-id':_0x35626a}),_0x1058b5=_0x847f9e['mapper']['toViewPosition'](_0x2eee02);_0x26f520&&_0x1ffc6b['activeMarkers']['includes'](_0x23553f['markerName'])&&_0x847f9e['writer']['addClass']('ck-suggestion-marker--active',_0x2886ce),_0x847f9e['writer']['insert'](_0x1058b5,_0x2886ce),_0x847f9e['mapper']['bindElementToMarker'](_0x2886ce,_0x23553f['markerName']);}};}class bt extends _0x48beba{['afterInit'](){const _0x4c5527=this['editor'];_0x4c5527['commands']['get']('replaceSource')&&_0x4c5527['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class yt extends _0x48beba{['afterInit'](){const _0x18fe4f=this['editor'];if(!_0x18fe4f['plugins']['has']('RemoveFormatEditing'))return;_0x18fe4f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e58cc=this['editor'];_0x2e58cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bf12a=>{if('formatBlock'!=_0x3bf12a['type']&&'formatInline'!=_0x3bf12a['type'])return;const {data:_0xce774f}=_0x3bf12a;return _0xce774f&&'removeFormat'==_0xce774f['commandName']?{'type':'format','content':o(_0x2e58cc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x48beba{['afterInit'](){const _0x52fc31=this['editor'];if(!_0x52fc31['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x54d98f=_0x52fc31['plugins']['get']('TrackChangesEditing');_0x54d98f['enableCommand']('goToPreviousRestrictedEditingException'),_0x54d98f['enableCommand']('goToNextRestrictedEditingException');const _0x1bb6a3=_0x52fc31['plugins']['get']('RestrictedEditingModeEditing');_0x1bb6a3['enableCommand']('trackChanges'),_0x1bb6a3['enableCommand']('acceptSuggestion'),_0x1bb6a3['enableCommand']('discardSuggestion'),_0x1bb6a3['enableCommand']('acceptAllSuggestions'),_0x1bb6a3['enableCommand']('discardAllSuggestions'),_0x1bb6a3['enableCommand']('acceptSelectedSuggestions'),_0x1bb6a3['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x48beba{['afterInit'](){const _0x2c1ed4=this['editor'];if(!_0x2c1ed4['plugins']['has']('ShiftEnter'))return;const _0x40815f=_0x2c1ed4['plugins']['get']('TrackChangesEditing');_0x40815f['enableCommand']('shiftEnter'),_0x2c1ed4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2c1ed4),{'priority':'high'}),_0x2c1ed4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2c1ed4),{'priority':'high'}),_0x2c1ed4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29b078,_0x3a3ee9,_0x1562b3)=>{_0x1562b3['options']['showSuggestionHighlights']&&je(_0x2c1ed4,{'showActiveMarker':!0x1})(_0x29b078,_0x3a3ee9,_0x1562b3);}),_0x40815f['descriptionFactory']['registerElementLabel']('softBreak',_0x55437a=>o(_0x2c1ed4['locale'],'ELEMENT_LINE_BREAK',_0x55437a));}}function je(_0x4bb0b1,{showActiveMarker:_0x59c20f=!0x0}={}){return(_0x3d81b8,_0x53b365,_0x5f023d)=>{const _0x452062=_0x4bb0b1['plugins']['get']('TrackChangesEditing');if(!_0x5f023d['consumable']['test'](_0x53b365['markerRange'],_0x3d81b8['name']))return;const _0xf1e0e0=_0x4bb0b1['model'];for(const _0x480374 of _0x53b365['markerRange']['getItems']()){if(!_0x480374['is']('element','softBreak'))continue;const _0x50f2b0='deletion'==_0x53b365['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x409190,authorId:_0x51b995}=_0x452062['_splitMarkerName'](_0x53b365['markerName']),_0x2107a2=_0x5f023d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50f2b0,'data-suggestion':_0x409190,'data-author-id':_0x51b995}),_0x4fe24f=_0x5f023d['mapper']['toViewPosition'](_0xf1e0e0['createPositionBefore'](_0x480374));_0x59c20f&&_0x452062['activeMarkers']['includes'](_0x53b365['markerName'])&&_0x5f023d['writer']['addClass']('ck-suggestion-marker--active',_0x2107a2),_0x5f023d['writer']['insert'](_0x4fe24f,_0x2107a2),_0x5f023d['mapper']['bindElementToMarker'](_0x2107a2,_0x53b365['markerName']);}};}class It extends _0x48beba{['afterInit'](){const _0xe49f6f=this['editor'],_0xe6d68c=_0xe49f6f['model'],_0x50efc3=_0xe49f6f['locale'];if(!_0xe49f6f['plugins']['has']('StandardEditingModeEditing'))return;const _0x5da75d=_0xe49f6f['plugins']['get']('TrackChangesEditing'),_0x15334b='restrictedEditingException',_0x49d63b=_0xe49f6f['commands']['get'](_0x15334b);_0x5da75d['enableCommand'](_0x15334b,(_0x9468a8,_0x57d15d={})=>{const _0x2b7678=_0xe6d68c['document']['selection'];if(_0x2b7678['isCollapsed'])return void _0x9468a8(_0x57d15d);const _0xe6e8ce=void 0x0!==_0x57d15d['forceValue']?_0x57d15d['forceValue']:!_0x49d63b['value'];_0xe6d68c['change'](()=>{const _0x5b3068=Array['from'](_0x2b7678['getRanges']());for(const _0xb76295 of _0x5b3068){const _0x4ec547=_0xe6e8ce?[_0xb76295]:io(_0x15334b,_0xb76295,_0xe6d68c);for(const _0x465fb7 of _0x4ec547)_0x5da75d['markInlineFormat'](_0x465fb7,{'commandName':_0x15334b,'commandParams':[{'forceValue':_0xe6e8ce}]});}});}),_0x5da75d['descriptionFactory']['registerDescriptionCallback'](_0x2d2d4e=>{if('formatBlock'!=_0x2d2d4e['type']&&'formatInline'!=_0x2d2d4e['type'])return;const {data:_0x147efa}=_0x2d2d4e;return _0x147efa&&_0x147efa['commandName']==_0x15334b?_0x147efa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x50efc3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x50efc3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x48beba{['afterInit'](){const _0x17837e=this['editor'];if(!_0x17837e['plugins']['has']('Style')||!_0x17837e['plugins']['has']('DataSchema'))return;const _0x49ebf5=_0x17837e['plugins']['get']('TrackChangesEditing'),_0x1bbc04=_0x17837e['locale'],_0x1956c6=_0x17837e['config']['get']('style')||{},_0x44e82a=_0x17837e['plugins']['get']('GeneralHtmlSupport'),_0x448162=_0x17837e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x17837e['plugins']['get']('DataSchema'),_0x1956c6['definitions']);_0x49ebf5['enableDefaultAttributesIntegration']('style');const _0x5f95cb=new Set();for(const _0x12599d of _0x448162['block']){const _0x140e74=_0x44e82a['getGhsAttributeNameForElement'](_0x12599d['element']);_0x5f95cb['add'](_0x140e74);}const _0x3d3432=new Set();for(const _0x1d6b95 of _0x448162['inline']){const _0x39867c=_0x44e82a['getGhsAttributeNameForElement'](_0x1d6b95['element']);_0x3d3432['add'](_0x39867c);for(const _0x2585cd of _0x1d6b95['ghsAttributes'])_0x3d3432['add'](_0x2585cd);}for(const _0x4044c3 of _0x5f95cb)_0x49ebf5['registerBlockAttribute'](_0x4044c3),_0x49ebf5['descriptionFactory']['registerAttributeLabel'](_0x4044c3,o(_0x1bbc04,'FORMAT_STYLE'));for(const _0x505840 of _0x3d3432)_0x49ebf5['registerInlineAttribute'](_0x505840),_0x49ebf5['descriptionFactory']['registerAttributeLabel'](_0x505840,o(_0x1bbc04,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x64030a=this['editor'],_0x4b55d3=_0x64030a['locale'];_0x64030a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5867e7=>{if('formatBlock'!=_0x5867e7['type']&&'formatInline'!=_0x5867e7['type'])return;const {data:_0x5c0505}=_0x5867e7;return _0x5c0505&&'style'===_0x5c0505['commandName']?_0x5c0505['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b55d3,'*Set\x20format:*\x20%0',_0x5c0505['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4b55d3,'*Remove\x20format:*\x20%0',_0x5c0505['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x48beba{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xaaa941){super(_0xaaa941),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x17113e=this['editor'],_0x374cb8=_0x17113e['model']['document']['selection'];if(!_0x17113e['plugins']['has']('TableEditing'))return;const _0x5bc52f=_0x17113e['locale'],_0x49de2e=_0x17113e['plugins']['get']('TrackChangesEditing'),_0x141a86=_0x17113e['plugins']['get']('TableUtils');_0x49de2e['descriptionFactory']['registerElementLabel']('table',_0x196c1b=>o(_0x5bc52f,'ELEMENT_TABLE',_0x196c1b)),this['_setupColumnsRowsFixing'](),_0x49de2e['enableCommand']('insertTable'),_0x49de2e['enableCommand']('selectTableRow'),_0x49de2e['enableCommand']('selectTableColumn');for(const _0x1eb642 of['insertTableRowAbove','insertTableRowBelow']){const _0x54dbf4=_0x17113e['commands']['get'](_0x1eb642);_0x49de2e['enableCommand'](_0x1eb642,_0x24b84a=>{_0x17113e['model']['change'](_0x2e5724=>{_0x24b84a();const _0x43a1d5='above'===_0x54dbf4['order'],_0x16f8db=_0x141a86['getSelectionAffectedTableCells'](_0x374cb8),_0x617c65=_0x141a86['getRowIndexes'](_0x16f8db),_0x78e8af=_0x43a1d5?_0x617c65['first']-0x1:_0x617c65['last']+0x1,_0x2d3c64=_0x16f8db[0x0]['findAncestor']('table'),_0x4157ad=_0x141a86['createTableWalker'](_0x2d3c64,{'startRow':_0x78e8af,'endRow':_0x78e8af}),_0x2d1706=Array['from'](_0x4157ad)['map'](_0xdc2190=>_0x2e5724['createRangeOn'](_0xdc2190['cell']));_0x49de2e['markMultiRangeInsertion'](_0x2d1706,'tableRow');});});}for(const _0x3bba8e of['insertTableColumnLeft','insertTableColumnRight']){const _0x18c104=_0x17113e['commands']['get'](_0x3bba8e);_0x49de2e['enableCommand'](_0x3bba8e,_0x4a7e59=>{_0x17113e['model']['change'](_0x4fc496=>{_0x4a7e59();const _0x455af5='left'===_0x18c104['order'],_0x1d8650=_0x141a86['getSelectionAffectedTableCells'](_0x374cb8),_0x357f74=_0x141a86['getColumnIndexes'](_0x1d8650),_0x310e5b=_0x455af5?_0x357f74['first']-0x1:_0x357f74['last']+0x1,_0x244aa5=_0x1d8650[0x0]['findAncestor']('table'),_0x209f83=_0x141a86['createTableWalker'](_0x244aa5,{'startRow':0x0,'column':_0x310e5b,'includeAllSlots':!0x1}),_0x27e209=Array['from'](_0x209f83)['map'](_0x1ef4db=>_0x4fc496['createRangeOn'](_0x1ef4db['cell']));_0x49de2e['markMultiRangeInsertion'](_0x27e209,'tableColumn');});});}for(const _0x401e4b of['removeTableRow','removeTableColumn']){const _0x3534d9=_0x401e4b['substr'](0xb),_0x6e24a3=_0x3534d9['toLowerCase'](),_0x5b64cc=_0x6e24a3['substr'](0x0,0x3)+'span',_0x1a77eb='table'+_0x3534d9,_0x428d9a='min'+_0x3534d9,_0x43b24c='max'+_0x3534d9;_0x49de2e['enableCommand'](_0x401e4b,()=>{_0x17113e['model']['change'](_0x561fa2=>{const _0x2d26c2=_0x141a86['getSelectionAffectedTableCells'](_0x374cb8),_0x166fb1=_0x2d26c2[0x0]['findAncestor']('table');let _0x11c595;if('removeTableRow'==_0x401e4b){const _0x459ff6=_0x141a86['getRowIndexes'](_0x2d26c2);_0x11c595={'startRow':_0x459ff6['first'],'endRow':_0x459ff6['last'],'includeAllSlots':!0x0};}else{const _0x5b8cdb=_0x141a86['getColumnIndexes'](_0x2d26c2);_0x11c595={'startColumn':_0x5b8cdb['first'],'endColumn':_0x5b8cdb['last'],'includeAllSlots':!0x0};}const _0x262d68=_0x141a86['createTableWalker'](_0x166fb1,_0x11c595),_0x4fa036=Array['from'](_0x262d68)['map'](({cell:_0x14785e})=>_0x14785e),_0x57e622=Ne(_0x4fa036['filter'](_0xd60f3f=>_0xd60f3f['hasAttribute'](_0x5b64cc))),_0x55b0dd=Ne(_0x4fa036['filter'](_0x4cf9e2=>!_0x4cf9e2['hasAttribute'](_0x5b64cc)))['map'](_0x2d479d=>_0x561fa2['createRangeOn'](_0x2d479d)),_0x571866=_0x49de2e['markMultiRangeDeletion'](_0x55b0dd,_0x1a77eb);if(_0x571866&&('tableRow'==_0x571866['subType']||'tableColumn'==_0x571866['subType'])){const _0x5a27cb=this['_getSuggestionCoords'](_0x571866);for(const _0x5edbe3 of _0x57e622){const _0x52e029=_0x561fa2['createRangeOn'](_0x5edbe3),_0x391a99=_0x141a86['getCellLocation'](_0x5edbe3),_0x360010=_0x5edbe3['getAttribute'](_0x5b64cc)-0x1,_0x1809c7=_0x5a27cb[_0x428d9a],_0x2ac18a=_0x5a27cb[_0x43b24c];_0x1809c7<=_0x391a99[_0x6e24a3]&&_0x391a99[_0x6e24a3]+_0x360010<=_0x2ac18a&&_0x571866['addRange'](_0x52e029);}}});});}function _0x398af3(_0x5f72ef){const _0x3f65ef=Array['from'](_0x374cb8['getRanges']())['map'](_0x34a99b=>_0x246516['fromRange'](_0x34a99b));_0x17113e['model']['change'](_0x2aac9f=>{const _0x34f1d6=_0x2aac9f['batch'];_0x5f72ef=_0x5f72ef['filter'](_0x1c23f0=>'$graveyard'!=_0x1c23f0['root']['rootName']),_0x2aac9f['setSelection'](_0x5f72ef),_0x17113e['commands']['get']('removeTableRow')['refresh'](),_0x17113e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x17113e['model']['enqueueChange'](()=>{_0x17113e['model']['enqueueChange'](_0x34f1d6,_0x35c196=>{const _0x10abb1=_0x3f65ef['filter'](_0x1d64eb=>'$graveyard'!=_0x1d64eb['root']['rootName']);_0x10abb1['length']>0x0&&_0x35c196['setSelection'](_0x10abb1);for(const _0x43cdfe of _0x3f65ef)_0x43cdfe['detach']();});});});}function _0x55515d(_0xb735ee){_0x17113e['model']['change'](_0x3030f8=>{const _0x31b87c=Array['from'](_0x374cb8['getRanges']())['map'](_0x7aef6c=>_0x246516['fromRange'](_0x7aef6c)),_0x446d1d=[];for(const _0x5bdcc8 of _0xb735ee)for(const _0x384adc of _0x5bdcc8['getItems']({'shallow':!0x0}))_0x446d1d['push'](_0x384adc);for(const _0x1e8900 of _0x446d1d)'$graveyard'!=_0x1e8900['root']['rootName']&&(_0x3030f8['setSelection'](_0x3030f8['createPositionAt'](_0x1e8900,0x0)),_0x17113e['commands']['get']('removeTableColumn')['refresh'](),_0x17113e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x27ed8a=_0x31b87c['filter'](_0x30b651=>'$graveyard'!=_0x30b651['root']['rootName']);_0x27ed8a['length']>0x0&&_0x3030f8['setSelection'](_0x27ed8a);for(const _0x8a658c of _0x31b87c)_0x8a658c['detach']();});}function _0xfda9f5(_0x11ea37,_0x4c7880){return _0x4c7880['every'](_0x569c50=>_0x11ea37['some'](_0x2ac234=>_0x2ac234['end']['isEqual'](_0x569c50['start'])||_0x569c50['end']['isEqual'](_0x2ac234['start'])));}function _0x413f69(_0x3c7a43,_0x1afb1f){return!_0x3c7a43['some'](_0x91d7c4=>_0x1afb1f['some'](_0x2960be=>_0x91d7c4['isIntersecting'](_0x2960be)))&&_0x3c7a43['some'](_0x544552=>_0x1afb1f['some'](_0x5ca94b=>_0x544552['end']['isTouching'](_0x5ca94b['start'])));}_0x17113e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x368a11,_0x2e0950,_0x212b8c)=>{if(!_0x212b8c['options']['showSuggestionHighlights'])return;const _0x4ddd46=_0x2e0950['item'];if(!_0x4ddd46||!_0x4ddd46['is']('element','tableCell'))return;const _0x477faa=_0x212b8c['mapper']['toViewElement'](_0x4ddd46);if(_0x477faa){const {id:_0x49f6e1,authorId:_0x279c82}=_0x49de2e['_splitMarkerName'](_0x2e0950['markerName']);_0x4e5bda(_0x477faa,_0x212b8c['writer'],(_0x2f9bc6,_0xc169a8,_0xcb3c4d)=>{_0xcb3c4d['addClass'](_0x3846ac(_0xc169a8['classes']),_0x2f9bc6),_0xcb3c4d['setAttribute']('data-suggestion-id',_0x49f6e1,_0x2f9bc6),_0xcb3c4d['setAttribute']('data-author-id',_0x279c82,_0x2f9bc6);},(_0x335590,_0x3f8bc4,_0x527f99)=>{_0x527f99['removeClass'](_0x3846ac(_0x3f8bc4['classes']),_0x335590),_0x527f99['removeAttribute']('data-suggestion-id',_0x335590),_0x527f99['removeAttribute']('data-author-id',_0x335590);});}},{'priority':'highest'}),_0x49de2e['descriptionFactory']['registerDescriptionCallback'](_0x5bba9e=>{if('insertion'!=_0x5bba9e['type']&&'deletion'!=_0x5bba9e['type'])return;const _0x1fc42e=_0x5bba9e['getContainedElement']();if(null!=_0x1fc42e&&_0x1fc42e['is']('element','table')){if('insertion'==_0x5bba9e['type']){const _0x3f0a84=_0x5bba9e['getItems']()['filter'](_0x3b7c62=>_0x3b7c62['is']('$textProxy'))['map'](_0x2b15b9=>_0x2b15b9['data']);if(_0x3f0a84['length'])return{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f0a84['join']('\x20')+'\x22'))};}if('deletion'==_0x5bba9e['type']){const _0x2920e9=_0x5bba9e['getItems']()['filter'](_0x47a29a=>_0x47a29a['is']('$textProxy'))['map'](_0xe394ad=>_0xe394ad['data']);if(_0x2920e9['length'])return{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2920e9['join']('\x20')+'\x22'))};}}}),_0x49de2e['descriptionFactory']['registerDescriptionCallback'](_0xfb43d9=>{if('tableRow'==_0xfb43d9['subType']){const _0x3c1aa5=_0xfb43d9['getItems']()['filter'](_0x18b0ca=>_0x18b0ca['is']('$textProxy'))['map'](_0x2ea66e=>_0x2ea66e['data']),_0x3b3b33=this['_getSuggestionCoords'](_0xfb43d9),_0x3a8de2=_0x3b3b33['maxRow']-_0x3b3b33['minRow']+0x1;if('insertion'==_0xfb43d9['type'])return _0x3c1aa5['length']?{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a8de2,'\x22'+_0x3c1aa5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_ROW',_0x3a8de2))};if('deletion'==_0xfb43d9['type'])return _0x3c1aa5['length']?{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a8de2,'\x22'+_0x3c1aa5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_ROW',_0x3a8de2))};}if('tableColumn'==_0xfb43d9['subType']){const _0x2b8bcd=_0xfb43d9['getItems']()['filter'](_0x138199=>_0x138199['is']('$textProxy'))['map'](_0x5d8b61=>_0x5d8b61['data']),_0x1cb97c=this['_getSuggestionCoords'](_0xfb43d9),_0x474693=_0x1cb97c['maxColumn']-_0x1cb97c['minColumn']+0x1;if('insertion'==_0xfb43d9['type'])return _0x2b8bcd['length']?{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x474693,'\x22'+_0x2b8bcd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5bc52f,'*Insert:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_COLUMN',_0x474693))};if('deletion'==_0xfb43d9['type'])return _0x2b8bcd['length']?{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x474693,'\x22'+_0x2b8bcd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5bc52f,'*Remove:*\x20%0',o(_0x5bc52f,'ELEMENT_TABLE_COLUMN',_0x474693))};}}),_0x49de2e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x398af3),_0x49de2e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x398af3),_0x49de2e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x55515d),_0x49de2e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x55515d),_0x49de2e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xfda9f5),_0x49de2e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xfda9f5),_0x49de2e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x413f69),_0x49de2e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x413f69);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1b0446=this['editor'],_0x2bb8f8=_0x1b0446['model']['document']['selection'];return(_0x540f9f,_0x476a63)=>{_0x1b0446['model']['change'](_0x3ccb28=>{const {commandName:_0x338a9a,commandParams:_0xcbdfc2}=_0x476a63;let _0x41b693=_0x540f9f[0x0]['end']['nodeBefore'];_0xcbdfc2&&_0xcbdfc2[0x0]&&!0x1===_0xcbdfc2[0x0]['forceValue']&&(_0x41b693=_0x540f9f[0x0]['start']['nodeAfter']);const _0x5261d1=_0x3ccb28['createRangeIn'](_0x41b693);if('$graveyard'==_0x5261d1['root']['rootName'])return;const _0x1e294e=Array['from'](_0x2bb8f8['getRanges']())['map'](_0x45e9e4=>_0x246516['fromRange'](_0x45e9e4));_0x3ccb28['setSelection'](_0x5261d1),_0x1b0446['commands']['get'](_0x338a9a)['refresh'](),_0xcbdfc2['push']({'forceDefaultExecution':!0x0}),_0x1b0446['execute'](_0x338a9a,..._0xcbdfc2);const _0x2ef657=_0x1e294e['filter'](_0x2c7252=>'$graveyard'!=_0x2c7252['root']['rootName']);_0x2ef657['length']>0x0&&_0x3ccb28['setSelection'](_0x2ef657);for(const _0x4c6153 of _0x1e294e)_0x4c6153['detach']();});};}['_getCoordsForCells'](_0x56e409){const _0x2f377e=this['editor']['plugins']['get']('TableUtils');let _0x3631c7=Number['MAX_SAFE_INTEGER'],_0x2d1345=Number['MIN_SAFE_INTEGER'],_0x464bbd=Number['MAX_SAFE_INTEGER'],_0x1a2eaf=Number['MIN_SAFE_INTEGER'];for(const _0xce88e8 of _0x56e409){if('$graveyard'==_0xce88e8['root']['rootName'])continue;const {row:_0x3ee376,column:_0x59729c}=_0x2f377e['getCellLocation'](_0xce88e8),_0xc69ad3=_0xce88e8['hasAttribute']('rowspan')?_0xce88e8['getAttribute']('rowspan')-0x1:0x0,_0x13d7eb=_0xce88e8['hasAttribute']('colspan')?_0xce88e8['getAttribute']('colspan')-0x1:0x0;_0x3631c7=_0x3ee376<_0x3631c7?_0x3ee376:_0x3631c7,_0x2d1345=_0x3ee376+_0xc69ad3>_0x2d1345?_0x3ee376+_0xc69ad3:_0x2d1345,_0x464bbd=_0x59729c<_0x464bbd?_0x59729c:_0x464bbd,_0x1a2eaf=_0x59729c+_0x13d7eb>_0x1a2eaf?_0x59729c+_0x13d7eb:_0x1a2eaf;}return{'minRow':_0x3631c7,'maxRow':_0x2d1345,'minColumn':_0x464bbd,'maxColumn':_0x1a2eaf};}['_setupColumnsRowsFixing'](){const _0x38cedf=this['editor'],_0x4b10a8=_0x38cedf['plugins']['get']('TrackChangesEditing'),_0xcc3beb=_0x38cedf['plugins']['get']('TableUtils');_0x38cedf['model']['document']['on']('change:data',()=>{const _0x545fb2=Array['from'](_0x38cedf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23565b,data:_0x294b58}of _0x545fb2){const {group:_0x28355f,id:_0x2e5d3a,subType:_0x8cbd07}=_0x4b10a8['_splitMarkerName'](_0x23565b);if('suggestion'!=_0x28355f)continue;if(null!=_0x294b58['oldRange'])continue;const _0x64a15d=_0x4b10a8['getSuggestion'](_0x2e5d3a);this['_tablePostFixingSubtypes']['includes'](_0x8cbd07)&&this['_tableSuggestions']['add'](_0x64a15d);}},{'priority':'low'});const _0x37b12c=(_0x1bd596,_0xc4b060)=>{let _0x49e3d8=!0x1;const _0x58c687=_0xc4b060['createRangeOn'](_0x1bd596),_0xf41d7e=_0x1bd596['findAncestor']('table'),_0x378e62=_0xcc3beb['getCellLocation'](_0x1bd596);for(const _0x4ab2ed of this['_tableSuggestions']){const _0x1d6579=_0x4ab2ed['subType'],_0x53396f=_0x1d6579['startsWith']('tablePaste'),_0xaf3c65=_0x1d6579['substr'](_0x53396f?0xa:0x5),_0x59c0ab=_0xaf3c65['toLowerCase'](),_0x355327=_0x59c0ab['substr'](0x0,0x3)+'span',_0x3fa84f='min'+_0xaf3c65,_0x139f6c='max'+_0xaf3c65;if(!_0x4ab2ed['isInContent'])continue;if(_0xf41d7e!=_0x4ab2ed['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ab2ed['isIntersectingWithRange'](_0x58c687))continue;const _0x11f2fa=_0x1bd596['hasAttribute'](_0x355327)?_0x1bd596['getAttribute'](_0x355327)-0x1:0x0,_0xb2272b=this['_getSuggestionCoords'](_0x4ab2ed),_0x4bf349=_0xb2272b[_0x3fa84f],_0xab5901=_0xb2272b[_0x139f6c];_0x4bf349<=_0x378e62[_0x59c0ab]&&_0x378e62[_0x59c0ab]+_0x11f2fa<=_0xab5901&&(_0x4ab2ed['addRange'](_0x58c687),_0x49e3d8=!0x0);}return _0x49e3d8;};_0x38cedf['model']['document']['registerPostFixer'](_0x7248c5=>{let _0x1edb68=!0x1;for(const _0x363bbc of _0x38cedf['model']['document']['differ']['getChanges']())if('insert'==_0x363bbc['type']){if('tableRow'==_0x363bbc['name']){for(const _0x1ee3d7 of _0x363bbc['position']['nodeAfter']['getChildren']())_0x1edb68=_0x1edb68||_0x37b12c(_0x1ee3d7,_0x7248c5);}else'tableCell'==_0x363bbc['name']&&(_0x1edb68=_0x1edb68||_0x37b12c(_0x363bbc['position']['nodeAfter'],_0x7248c5));}return _0x1edb68;});}['_getSuggestionCoords'](_0x2bdb21){return this['_getCoordsForCells'](_0x2bdb21['getRanges']()['map'](_0x3e6bb5=>_0x3e6bb5['start']['nodeAfter']));}}function Ne(_0x2f022d){return Array['from'](new Set(_0x2f022d)['values']());}class Ct extends _0x48beba{static get['requires'](){return[_t];}['afterInit'](){const _0x387ae9=this['editor'],_0x55990e=_0x387ae9['model']['document']['selection'],_0x3ac020=_0x387ae9['locale'];if(!_0x387ae9['plugins']['has']('TableEditing'))return;const _0x185495=_0x387ae9['plugins']['get']('TrackChangesEditing'),_0x2e718a=_0x387ae9['plugins']['get']('TableUtils'),_0x48d6db=_0x387ae9['plugins']['get'](_t);_0x48d6db['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x185495['enableCommand']('mergeTableCells',()=>{const _0x10bb1a=_0x2e718a['getSelectionAffectedTableCells'](_0x387ae9['model']['document']['selection']);_0x387ae9['model']['change'](()=>{_0x185495['markMultiRangeBlockFormat'](_0x10bb1a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x387ae9['commands']['get']('mergeTableCells')['on']('execute',(_0x156d32,_0x45c5ac)=>{_0x387ae9['commands']['get']('trackChanges')['value']&&(_0x45c5ac['length']>0x0&&_0x45c5ac[_0x45c5ac['length']-0x1]&&_0x45c5ac[_0x45c5ac['length']-0x1]['forceDefaultExecution']||_0x185495['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x156d32['stop']());},{'priority':'highest'});for(const _0x2da29a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x430f72=_0x387ae9['commands']['get'](_0x2da29a);_0x185495['enableCommand'](_0x2da29a,()=>{const _0x57bdef=_0x387ae9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38b4dc=>_0x38b4dc['is']('element','tableCell')),_0x31b844=_0x430f72['value'];_0x387ae9['model']['change'](()=>{_0x185495['markMultiRangeBlockFormat']([_0x57bdef,_0x31b844],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x128543 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x405f7d=_0x387ae9['commands']['get'](_0x128543);_0x185495['enableCommand'](_0x128543,()=>{const _0x1c9ffe=_0x2e718a['getSelectionAffectedTableCells'](_0x387ae9['model']['document']['selection'])[0x0],_0x16a9e5=_0x1c9ffe['findAncestor']('table'),{column:_0x378b67,row:_0x3ded2a}=_0x2e718a['getCellLocation'](_0x1c9ffe);let _0x2834dd=[];if('horizontally'==_0x405f7d['direction']){const _0x124a88=_0x2e718a['createTableWalker'](_0x16a9e5,{'startRow':_0x3ded2a,'endRow':_0x3ded2a,'includeAllSlots':!0x0});_0x2834dd=Array['from'](_0x124a88)['map'](_0x58d5dd=>_0x58d5dd['cell']);}else{const _0x3883ba=_0x2e718a['createTableWalker'](_0x16a9e5,{'column':_0x378b67,'includeAllSlots':!0x0});_0x2834dd=Array['from'](_0x3883ba)['map'](_0x183da5=>_0x183da5['cell']);}_0x387ae9['model']['change'](_0x1d229f=>{_0x185495['markBlockFormat'](_0x1d229f['createRangeOn'](_0x1c9ffe),{'commandName':_0x128543,'commandParams':[]},_0x2834dd,_0x128543);});});}_0x185495['descriptionFactory']['registerDescriptionCallback'](_0x421e86=>{if('formatBlock'!=_0x421e86['type']&&'formatInline'!=_0x421e86['type'])return;const {data:_0x1a5a52}=_0x421e86;return _0x1a5a52&&'mergeTableCells'==_0x1a5a52['commandName']?{'type':'format','content':o(_0x3ac020,'*Merge\x20cells*')}:void 0x0;}),_0x185495['descriptionFactory']['registerDescriptionCallback'](_0x58f50e=>{if('formatBlock'!=_0x58f50e['type']&&'formatInline'!=_0x58f50e['type'])return;const {data:_0x1a0d6b}=_0x58f50e;return _0x1a0d6b?'splitTableCellVertically'==_0x1a0d6b['commandName']?{'type':'format','content':o(_0x3ac020,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1a0d6b['commandName']?{'type':'format','content':o(_0x3ac020,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x524568=_0x48d6db['_acceptFormatSuggestionCallbackFactory']();for(const _0x408740 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x185495['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x408740,'accept',_0x524568);for(const _0x5b5cd2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x185495['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b5cd2,'accept',_0x524568);_0x185495['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1846eb=>{_0x387ae9['model']['change'](_0x89a93=>{const _0x4f3fe2=Array['from'](_0x55990e['getRanges']())['map'](_0x26317a=>_0x246516['fromRange'](_0x26317a));_0x89a93['setSelection'](_0x1846eb),_0x387ae9['commands']['get']('mergeTableCells')['refresh'](),_0x387ae9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4f50ac=_0x4f3fe2['filter'](_0x22f06c=>'$graveyard'!=_0x22f06c['root']['rootName']);_0x4f50ac['length']>0x0&&_0x89a93['setSelection'](_0x4f50ac);for(const _0x530ffa of _0x4f3fe2)_0x530ffa['detach']();});});for(const _0x45d293 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2747f9=_0x387ae9['commands']['get'](_0x45d293);_0x2747f9['on']('set:isEnabled',(_0x31206a,_0x4285e7,_0x1a6a1f)=>{if(_0x1a6a1f){const _0x497e4b=_0x387ae9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f6947=>_0x2f6947['is']('element','tableCell'));this['_areMergableCells'](_0x2747f9['value'],_0x497e4b)||(_0x31206a['return']=!0x1,_0x31206a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x56c4ae=this['editor']['commands']['get']('mergeTableCells'),_0x24606b=this['editor']['plugins']['get']('TableUtils');if(!_0x56c4ae['isEnabled'])return!0x1;const _0x5dd804=_0x24606b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x31876b of _0x5dd804)for(const _0x1b5afa of _0x5dd804)if(_0x31876b!=_0x1b5afa&&!this['_areMergableCells'](_0x31876b,_0x1b5afa))return!0x1;return!0x0;}['_areMergableCells'](_0x35e3aa,_0x2327c4){const _0x550d19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x236f4b=this['editor']['model']['createRangeOn'](_0x35e3aa),_0x2c6d00=this['editor']['model']['createRangeOn'](_0x2327c4),_0x4ca1c8=new Set(),_0x538790=new Set();for(const _0x33c654 of _0x550d19['getSuggestions']())if(('insertion'==_0x33c654['type']||'deletion'==_0x33c654['type']||'mergeTableCells'==_0x33c654['subType'])&&_0x33c654['isInContent']){for(const _0xaa5d2 of _0x33c654['getRanges']())_0xaa5d2['containsRange'](_0x236f4b,!0x0)&&_0x4ca1c8['add'](_0x33c654['type']+':'+_0x33c654['author']['id']),_0xaa5d2['containsRange'](_0x2c6d00,!0x0)&&_0x538790['add'](_0x33c654['type']+':'+_0x33c654['author']['id']);}if(_0x4ca1c8['size']!=_0x538790['size'])return!0x1;for(const _0x41d3f2 of _0x4ca1c8)if(!_0x538790['has'](_0x41d3f2))return!0x1;return!0x0;}}class vt extends _0x48beba{static get['requires'](){return[_t];}['afterInit'](){const _0x16bbdb=this['editor'];if(!_0x16bbdb['plugins']['has']('TableEditing'))return;const _0x42d436=_0x16bbdb['locale'],_0x4aee97=_0x16bbdb['plugins']['get']('TrackChangesEditing');_0x4aee97['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4aee97['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4aee97['registerBlockAttribute']('headingRows'),_0x4aee97['registerBlockAttribute']('headingColumns'),_0x4aee97['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x42d436,'FORMAT_HEADER_ROW')),_0x4aee97['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x42d436,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59c730=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39bba1=this['editor']['plugins']['get']('TableUtils'),_0x4b1cba=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x12fe51({showActiveMarker:_0x461510=!0x0,setDataAttribute:_0x5d19ed=!0x0}={}){return(_0x118b51,_0x332209,_0x4275ef)=>{const {type:_0x443229,id:_0x5a6f93}=_0x59c730['_splitMarkerName'](_0x332209['markerName']),_0x43bf63=_0x59c730['getSuggestion'](_0x5a6f93),_0x48f2b4=_0x43bf63['data'];if('formatBlock'!=_0x43bf63['type']||!_0x48f2b4||'setTableColumnHeader'!=_0x48f2b4['commandName'])return;if(_0x332209['item'])return void _0x118b51['stop']();if(!_0x4275ef['consumable']['consume'](_0x332209['markerRange'],_0x118b51['name']))return;const _0x5c57f4=_0x332209['markerRange']['start']['nodeAfter'],_0x5eaa79=_0x332209['markerRange']['end']['nodeBefore'],_0x264bae=_0x5c57f4['parent']['parent'],{column:_0x406075}=_0x39bba1['getCellLocation'](_0x5c57f4),{column:_0x215cc5}=_0x39bba1['getCellLocation'](_0x5eaa79);for(let _0x58de2e=_0x406075;_0x58de2e<=_0x215cc5;_0x58de2e++){const _0xc855a9=_0x39bba1['createTableWalker'](_0x264bae,{'column':_0x58de2e,'includeAllSlots':!0x1});for(const _0x441c49 of _0xc855a9){const _0x143fce=_0x441c49['cell'],_0x347189=_0x4275ef['mapper']['toViewElement'](_0x143fce);_0x4275ef['writer']['addClass']('ck-suggestion-marker-'+_0x443229,_0x347189),_0x5d19ed&&_0x4275ef['writer']['setAttribute']('data-suggestion',_0x5a6f93,_0x347189),_0x4275ef['mapper']['bindElementToMarker'](_0x347189,_0x332209['markerName']),_0x461510&&(_0x59c730['activeMarkers']['includes'](_0x332209['markerName'])?_0x4275ef['writer']['addClass']('ck-suggestion-marker--active',_0x347189):_0x4275ef['writer']['removeClass']('ck-suggestion-marker--active',_0x347189));}}};}_0x59c730['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b1cba),_0x59c730['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b1cba),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x12fe51(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c10f1,_0x56b49f,_0x34b85b)=>{_0x34b85b['options']['showSuggestionHighlights']&&_0x12fe51({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5c10f1,_0x56b49f,_0x34b85b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5453dc,_0x3d46c6,_0x2ec195)=>{const {type:_0x5e90a9,id:_0x187225}=_0x59c730['_splitMarkerName'](_0x3d46c6['markerName']),_0x1a5a69=_0x59c730['getSuggestion'](_0x187225),_0x229633=_0x1a5a69['data'];if('formatBlock'!=_0x1a5a69['type']||!_0x229633||'setTableColumnHeader'!=_0x229633['commandName'])return;const _0x473aaf=_0x2ec195['mapper']['markerNameToElements'](_0x3d46c6['markerName']);if(_0x473aaf){for(const _0x29cbe8 of _0x473aaf)_0x2ec195['writer']['removeClass']('ck-suggestion-marker-'+_0x5e90a9,_0x29cbe8),_0x2ec195['writer']['removeClass']('ck-suggestion-marker--active',_0x29cbe8),_0x2ec195['writer']['removeAttribute']('data-suggestion',_0x29cbe8),_0x2ec195['mapper']['unbindElementFromMarkerName'](_0x29cbe8,_0x3d46c6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d63b2=this['editor'],_0x2988f0=_0x5d63b2['locale'];function _0x478075(_0x8c9e95){return{'type':'format','content':o(_0x2988f0,'*Format:*\x20%0',_0x8c9e95)};}_0x5d63b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d87a9=>{if('formatBlock'!=_0x2d87a9['type'])return;const {data:_0x483b26}=_0x2d87a9;if(_0x483b26){if('setTableRowHeader'==_0x483b26['commandName']){const _0x3712a0=_0x483b26['commandParams'][0x0]['forceValue'];return _0x478075(o(_0x2988f0,_0x3712a0?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x483b26['commandName']){const _0x27302f=_0x483b26['commandParams'][0x0]['forceValue'];return _0x478075(o(_0x2988f0,_0x27302f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Nt extends _0x48beba{['afterInit'](){const _0x2ae6af=this['editor'],_0x1c33f1=_0x2ae6af['locale'],_0x2d5eff=_0x2ae6af['plugins']['get']('TrackChangesEditing');function _0x3ce21d(_0x212464){return{'type':'format','content':''+o(_0x1c33f1,'*Set\x20table\x20type:*\x20%0',_0x212464)};}_0x2ae6af['plugins']['has']('TableLayout')&&(_0x2d5eff['enableCommand']('insertTableLayout'),_0x2d5eff['enableDefaultAttributesIntegration']('tableType'),_0x2d5eff['registerBlockAttribute']('tableType'),_0x2d5eff['descriptionFactory']['registerElementLabel'](_0x6de93a=>_0x6de93a['is']('element','table')&&'layout'===_0x6de93a['getAttribute']('tableType'),_0x582d71=>o(_0x1c33f1,'ELEMENT_LAYOUT_TABLE',_0x582d71)),_0x2d5eff['descriptionFactory']['registerDescriptionCallback'](_0x456ba3=>{const {data:_0x4d989f}=_0x456ba3;if(_0x4d989f&&'tableType'==_0x4d989f['key'])switch(_0x4d989f['newValue']){case'layout':return _0x3ce21d(o(_0x1c33f1,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3ce21d(o(_0x1c33f1,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](xe['map'](_0x875578=>[_0x875578,null]));class Dt extends _0x48beba{static get['requires'](){return[_t];}['afterInit'](){const _0xd82244=this['editor'];if(!_0xd82244['plugins']['has']('TableClipboard'))return;const _0x31ec3b=_0xd82244['plugins']['get']('TrackChangesEditing'),_0xab9694=_0xd82244['plugins']['get']('TableUtils'),_0x7a8c8c=_0xd82244['plugins']['get'](_t),_0x4a32cb=_0xd82244['plugins']['get']('TableClipboard'),_0xaf1342=_0xd82244['plugins']['get']('TableSelection'),_0x156e19=_0xd82244['plugins']['get'](_0x111d6d);_0x7a8c8c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xd82244['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xd82244['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x220d26=null,_0x39dda3=!0x1;_0x156e19['on']('contentInsertion',(_0x2bf196,_0x5922eb)=>{_0x39dda3='paste'===_0x5922eb['method'];}),_0xd82244['model']['on']('insertContent',(_0x247a6d,_0x2577c6)=>{if(!_0x39dda3&&null===_0xaf1342['getSelectedTableCells']())return;const [_0x5867b7,_0x2090b9]=_0x2577c6,_0x5086bb=_0x2577c6[_0x2577c6['length']-0x1];_0x5086bb&&_0x5086bb['forceDefaultExecution']||_0x31ec3b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x51feaf,_0x1f0ddf,_0x21a42b,_0x23dbad,_0x133fe8){if(_0x1f0ddf&&!_0x1f0ddf['is']('documentSelection'))return!0x1;const _0x54d8d0=_0x133fe8['getTableIfOnlyTableInContent'](_0x51feaf,_0x21a42b);if(!_0x54d8d0||!De(_0x54d8d0,void 0x0,_0x23dbad))return!0x1;const _0x540398=_0x23dbad['getSelectionAffectedTableCells'](_0x21a42b['document']['selection']);if(!_0x540398['length'])return!0x1;const _0x481d13=_0x540398[0x0]['findAncestor']('table'),_0x11b88e=_0x23dbad['getRowIndexes'](_0x540398),_0x3b5f84=_0x23dbad['getColumnIndexes'](_0x540398),_0x33064b={'startRow':_0x11b88e['first'],'endRow':_0x11b88e['last'],'startColumn':_0x3b5f84['first'],'endColumn':_0x3b5f84['last']};return 0x1==_0x540398['length']&&(_0x33064b['endRow']+=_0x23dbad['getRows'](_0x54d8d0)-0x1,_0x33064b['endColumn']+=_0x23dbad['getColumns'](_0x54d8d0)-0x1),De(_0x481d13,_0x33064b,_0x23dbad);}(_0x5867b7,_0x2090b9,_0xd82244['model'],_0xab9694,_0x4a32cb)&&(_0x247a6d['stop'](),_0x220d26={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xd82244['model']['change'](()=>{_0xd82244['model']['insertContent'](_0x2577c6[0x0],_0x2577c6[0x1],_0x2577c6[0x2],{'forceDefaultExecution':!0x0});const _0x1dcb3f=_0x165ef7(),{rowInsertionRanges:_0x3183bb,columnInsertionRanges:_0x28a14f,insertionRanges:_0x48c717,deletionRanges:_0x247887,cells:_0x3d19cc}=_0x220d26;_0x3183bb['length']&&_0x31ec3b['markMultiRangeInsertion'](_0x3183bb,'tablePasteRow',{'tablePasteChainId':_0x1dcb3f}),_0x28a14f['length']&&_0x31ec3b['markMultiRangeInsertion'](_0x28a14f,'tablePasteColumn',{'tablePasteChainId':_0x1dcb3f}),_0x48c717['length']&&(_0x31ec3b['markMultiRangeInsertion'](_0x48c717,'tablePaste',{'tablePasteChainId':_0x1dcb3f,'skipNestingCheck':!0x0}),_0x48c717['forEach'](_0x4a08a8=>_0x4a08a8['detach']?.())),_0x247887['length']&&(_0x31ec3b['markMultiRangeDeletion'](_0x247887,'tablePaste',{'tablePasteChainId':_0x1dcb3f,'skipNestingCheck':!0x0}),_0x247887['forEach'](_0x4289b4=>_0x4289b4['detach']?.()));const _0x2f998e=_0x31ec3b['markMultiRangeBlockFormat'](_0x3d19cc['map'](({element:_0x515b07})=>_0x515b07),{'formatGroupId':_0x165ef7()},[],'tablePasteCell',{'tablePasteChainId':_0x1dcb3f});if(_0x2f998e){const _0x40b760=_0x2f998e['getMarkers'](),_0xe49faf=[];for(const {element:_0x529b07,attributes:_0x458c39}of _0x3d19cc){if(!_0x458c39)continue;const _0x58028a=_0xd82244['model']['createRangeOn'](_0x529b07),_0x4bacec=_0x40b760['find'](_0x2a7b02=>_0x2a7b02['getRange']()['isEqual'](_0x58028a));_0x4bacec&&_0xe49faf['push']([_0x4bacec['name'],_0x458c39]);}_0xe49faf['length']&&_0x2f998e['setAttribute']('markerAttributes',Object['fromEntries'](_0xe49faf));}_0x220d26=null;}));},{'priority':_0xe29e00['high']+0xa}),_0x156e19['on']('contentInsertion',()=>{_0x39dda3=!0x1;},{'priority':'lowest'}),_0xd82244['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xbb8d9a,_0x289193)=>{const [_0x1a4d0e,_0x1bd786,,_0x90bd79]=_0x289193;if(!_0x220d26)return;_0xbb8d9a['stop']();const _0x2621af=_0x1a4d0e['cell'],_0x20720c=_0x1bd786,_0x26fbd6=Ue(_0x2621af),_0x267f29=Ue(_0x20720c);_0xbb8d9a['return']=_0x2621af;let _0x5b1970=null,_0x2f4503=null;if(_0x267f29||_0x26fbd6){if(_0x26fbd6&&!_0x267f29){_0x90bd79['remove'](_0x2621af['getChild'](0x0));for(const _0x2bcfd2 of Array['from'](_0x20720c['getChildren']()))_0x90bd79['insert'](_0x2bcfd2,_0x2621af,'end');const _0x6aad66=_0x220d26['rowInsertionIndexes']['includes'](_0x1a4d0e['row']),_0x2fa4af=_0x220d26['columnInsertionIndexes']['includes'](_0x1a4d0e['column']);_0x6aad66||_0x2fa4af||(_0x5b1970=_0x246516['fromRange'](_0x90bd79['createRangeIn'](_0x2621af)));}else _0x267f29&&!_0x26fbd6&&(_0x2f4503=_0x90bd79['createRangeIn'](_0x2621af));}else{const _0x23336b=_0x90bd79['createElement']('tableCellSuggestion'),_0x4c0b63=_0x90bd79['createElement']('tableCellSuggestion');_0x90bd79['wrap'](_0x90bd79['createRangeIn'](_0x2621af),_0x4c0b63),_0x90bd79['insert'](_0x23336b,_0x2621af,0x0);for(const _0x422715 of Array['from'](_0x20720c['getChildren']()))_0x90bd79['insert'](_0x422715,_0x23336b,'end');_0x5b1970=_0x246516['fromRange'](_0x90bd79['createRangeOn'](_0x23336b)),_0x2f4503=_0x246516['fromRange'](_0x90bd79['createRangeOn'](_0x4c0b63));}const _0x18e0c3=Array['from'](_0x20720c['getAttributes']())['filter'](([_0x28e146])=>xe['includes'](_0x28e146));_0x220d26['cells']['push']({'element':_0x2621af,'attributes':_0x18e0c3['length']?Object['fromEntries'](_0x18e0c3):null}),_0x5b1970&&_0x220d26['insertionRanges']['push'](_0x5b1970),_0x2f4503&&_0x220d26['deletionRanges']['push'](_0x2f4503);},{'priority':'high'}),_0xab9694['on']('insertColumns',(_0x5638ec,_0x3d7185)=>{const [_0xff5925,_0x577077={}]=_0x3d7185;if(!_0x220d26)return;const _0x27b73e=_0x577077['at']||0x0,_0x4bc829=_0x577077['columns']||0x1;_0x220d26['columnInsertionIndexes']=new Array(_0x4bc829)['fill'](_0x27b73e)['map']((_0x42197,_0x4cb6ca)=>_0x42197+_0x4cb6ca);for(const {cell:_0x2e4be9}of _0xab9694['createTableWalker'](_0xff5925,{'startColumn':_0x27b73e,'endColumn':_0x27b73e+_0x4bc829-0x1}))_0x220d26['columnInsertionRanges']['push'](_0xd82244['model']['createRangeOn'](_0x2e4be9));},{'priority':'low'}),_0xab9694['on']('insertRows',(_0x2b60e8,_0x52c8ce)=>{const [_0xb30c9b,_0xc297bb={}]=_0x52c8ce;if(!_0x220d26)return;const _0x38f102=_0xc297bb['at']||0x0,_0x4650f7=_0xc297bb['rows']||0x1;_0x220d26['rowInsertionIndexes']=new Array(_0x4650f7)['fill'](_0x38f102)['map']((_0x3a7d1b,_0x48f9be)=>_0x3a7d1b+_0x48f9be);for(const {cell:_0x28c210}of _0xab9694['createTableWalker'](_0xb30c9b,{'startRow':_0x38f102,'endRow':_0x38f102+_0x4650f7-0x1}))_0x220d26['rowInsertionRanges']['push'](_0xd82244['model']['createRangeOn'](_0x28c210));},{'priority':'low'}),_0x31ec3b['descriptionFactory']['registerDescriptionCallback'](_0x20ef06=>{if(_0x20ef06['subType']&&_0x20ef06['subType']['startsWith']('tablePaste'))return _0x20ef06['previous']?{}:{'type':'insertion','content':o(_0xd82244['locale'],'*Replace\x20table\x20cells*')};});const _0x459c37=()=>!0x1;for(const _0x2433b8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x31ec3b['_suggestionFactory']['registerCustomCallback']('insertion',_0x2433b8,'join',_0x459c37),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('deletion',_0x2433b8,'join',_0x459c37),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2433b8,'join',_0x459c37);_0x31ec3b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x459c37),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1f92a0,_0x36f79c,_0x4111de)=>{const _0xc68375=_0x1f92a0['map'](_0xb591b5=>_0xb591b5['getContainedElement']())['filter'](_0x3d5d03=>_0x3d5d03),_0x39fa28=new Map(_0xc68375['map'](_0x37ccee=>[_0x37ccee,null]));if(_0x220d26){for(const {element:_0x4e36fa,attributes:_0x1c72a8}of _0x220d26['cells'])_0x1c72a8&&_0x39fa28['set'](_0x4e36fa,_0x1c72a8);}else{if(_0x4111de&&_0x4111de['markerAttributes'])for(const [_0x34b86f,_0x41699d]of Object['entries'](_0x4111de['markerAttributes'])){const _0x2ba787=_0xd82244['model']['markers']['get'](_0x34b86f),_0x2f5f7e=_0x2ba787?_0x2ba787['getRange']()['getContainedElement']():null;_0x2f5f7e&&_0x39fa28['set'](_0x2f5f7e,_0x41699d);}}_0xd82244['model']['change'](_0x187894=>{for(const [_0x20c3e3,_0x3c942e]of _0x39fa28)_0x187894['setAttributes']({...Oe,..._0x3c942e},_0x20c3e3);});});const _0x491b68=(_0x3e699f,_0x46eb9d)=>{_0x31ec3b['_suggestionFactory']['registerCustomCallback'](_0x3e699f,'tablePaste',_0x46eb9d,(_0x54bc0c,_0x1b9061,_0x59d53f)=>{_0xd82244['model']['change'](_0x1a2e75=>{const _0x3e1f1e=[];for(const _0x115c49 of _0x54bc0c){const _0x94672f=_0x115c49['start']['nodeAfter'];_0x94672f['is']('element','tableCellSuggestion')&&_0x3e1f1e['push'](_0x94672f);}_0x31ec3b['_suggestionFactory']['getSuggestionCallback'](_0x3e699f,null,_0x46eb9d)(_0x54bc0c,_0x1b9061,_0x59d53f);for(const _0x4994eb of _0x3e1f1e)'$graveyard'!=_0x4994eb['root']['rootName']&&_0x1a2e75['unwrap'](_0x4994eb);});});};_0x491b68('insertion','accept'),_0x491b68('insertion','discard'),_0x491b68('deletion','accept'),_0x491b68('deletion','discard'),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x16a34f=>{const _0x2f289a=_0x16a34f['map'](_0x37e5c3=>_0x37e5c3['getContainedElement']()),_0x66698=_0x2f289a[0x0]['findAncestor']('table'),{minRow:_0x1e0c64,maxRow:_0x39218e}=_0x7a8c8c['_getCoordsForCells'](_0x2f289a);_0xab9694['removeRows'](_0x66698,{'at':_0x1e0c64,'rows':_0x39218e-_0x1e0c64+0x1});}),_0x31ec3b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe5c02d=>{const _0x4f7e3e=_0xe5c02d['map'](_0x312d46=>_0x312d46['getContainedElement']()),_0x1061a9=_0x4f7e3e[0x0]['findAncestor']('table'),{minColumn:_0x5909db,maxColumn:_0x1748c1}=_0x7a8c8c['_getCoordsForCells'](_0x4f7e3e);_0xab9694['removeColumns'](_0x1061a9,{'at':_0x5909db,'columns':_0x1748c1-_0x5909db+0x1});});const _0x4255cc=(_0x38dbd9,_0x1744ff)=>{if(!_0x1744ff['subType']||!_0x1744ff['subType']['startsWith']('tablePaste'))return;const _0xc0544a=_0x1744ff['attributes']['tablePasteChainId'],_0xb217c9=_0x31ec3b['getSuggestions']()['filter'](_0x1aadbd=>_0x1aadbd['isInContent']&&_0x1aadbd['attributes']&&_0x1aadbd['attributes']['tablePasteChainId']==_0xc0544a);_0xb217c9['length']&&_0x1744ff['getAllAdjacentSuggestions']()['length']!=_0xb217c9['length']&&_0xb217c9['reduce']((_0xafb1bb,_0x401400)=>(_0xafb1bb['next']=_0x401400,_0x401400['previous']=_0xafb1bb,_0x401400));};function _0x412ebf(_0xa9b9e6,_0x270ffb=!0x0){const {id:_0xf51844,authorId:_0xaa2133}=_0x31ec3b['_splitMarkerName'](_0xa9b9e6['markerName']),_0x13fadf=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ccfd7=_0x31ec3b['activeMarkers']['includes'](_0xa9b9e6['markerName']);return _0x4ccfd7&&_0x13fadf['push']('ck-suggestion-marker--active'),{'classes':_0x13fadf,'attributes':{'data-suggestion':_0xf51844,'data-author-id':_0xaa2133},'priority':_0x4ccfd7&&_0x270ffb?0xbc2:0xbb8};}_0x31ec3b['on']('suggestionLoaded',_0x4255cc,{'priority':'high'}),_0x31ec3b['on']('suggestionUnloaded',_0x4255cc,{'priority':'high'}),_0xd82244['model']['document']['registerPostFixer'](()=>{let _0x420dba=!0x1;const _0x3cc09e=Array['from'](_0xd82244['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e5c84,data:_0x2cd8e5}of _0x3cc09e){const {group:_0x35b6a5,type:_0x4ddb59,id:_0x131b20}=_0x31ec3b['_splitMarkerName'](_0x2e5c84);if('suggestion'!=_0x35b6a5||'deletion'!=_0x4ddb59||_0x2cd8e5['oldRange'])continue;if(!_0x31ec3b['hasSuggestion'](_0x131b20))continue;const _0x753c8f=_0x31ec3b['getSuggestion'](_0x131b20)['getRanges'](),_0x381849=_0xd82244['plugins']['get']('Users')['me'];for(const _0x1d667 of _0x31ec3b['getSuggestions']()){if(!_0x1d667['isInContent']||_0x1d667['author']!=_0x381849)continue;if('formatBlock'!=_0x1d667['type']||'tablePasteCell'!=_0x1d667['subType'])continue;if(_0x1d667['getRanges']()['every'](_0x16ce5d=>_0x753c8f['some'](_0x102c3a=>_0x102c3a['containsRange'](_0x16ce5d,!0x0)))){for(const _0x130f49 of _0x1d667['getAllAdjacentSuggestions']())_0x130f49['isInContent']&&(_0x130f49['discard'](),_0x420dba=!0x0);}}}return _0x420dba;}),_0xd82244['model']['document']['registerPostFixer'](_0x3a5c19=>{const _0xdeebc2=_0xd82244['commands']['get']('redo');if(!_0xdeebc2||!_0xdeebc2['_createdBatches']['has'](_0x3a5c19['batch']))return!0x1;let _0x201831=!0x1;const _0x1b36bf=_0xd82244['plugins']['get']('Users')['me'],_0x305d2e=_0xd82244['model']['document']['differ']['getChanges'](),_0x16ca22=Array['from'](_0xd82244['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x231504,data:_0x16e51e})=>{const {group:_0x4544e5,subType:_0x5d840c,authorId:_0x2d7f79}=_0x31ec3b['_splitMarkerName'](_0x231504);return'suggestion'==_0x4544e5&&'tablePaste'==_0x5d840c&&_0x2d7f79==_0x1b36bf['id']&&!_0x16e51e['oldRange'];});for(const _0x3ebd74 of _0x305d2e){if('insert'!=_0x3ebd74['type']||'tableCellSuggestion'!=_0x3ebd74['name']||0x1!=_0x3ebd74['length'])continue;const _0x3b343f=_0x3a5c19['createRange'](_0x3ebd74['position'],_0x3ebd74['position']['getShiftedBy'](0x1));if(!_0x16ca22['find'](({data:_0x1e8323})=>_0x1e8323['newRange']['isEqual'](_0x3b343f))){for(const {name:_0x4610dd,data:_0x506b1e}of _0x16ca22)if(_0x3b343f['containsRange'](_0x506b1e['newRange'])){_0x3a5c19['updateMarker'](_0x4610dd,{'range':_0x3b343f}),_0x201831=!0x0;break;}}}return _0x201831;}),_0xd82244['model']['document']['registerPostFixer'](_0x2039a4=>{let _0x25d0d8=!0x1;const _0xe64929=_0xd82244['plugins']['get']('Users')['me'],_0x49fe09=_0x31ec3b['getSuggestions']()['filter'](_0x58aeed=>_0x58aeed['isInContent']&&_0x58aeed['author']==_0xe64929),_0x2fecde=new Set(),_0x1fd832=new Set();for(const _0x26ce12 of _0x49fe09)if('tablePaste'==_0x26ce12['subType'])for(const _0x2a1d73 of _0x26ce12['getMarkers']()){const _0x2d898b=_0x2a1d73['getRange']()['getContainedElement']();if(_0x2d898b){if(_0x2d898b['is']('element','tableCellSuggestion')&&Ue(_0x2d898b)){_0x26ce12['removeMarker'](_0x2a1d73['name']),_0x2fecde['add'](_0x2d898b),_0x25d0d8=!0x0;const _0x574406=_0x2d898b['nextSibling'],_0x1d0b95=_0x2d898b['previousSibling'],_0x58064f=_0x574406&&_0x574406['is']('element','tableCellSuggestion'),_0x22b469=_0x1d0b95&&_0x1d0b95['is']('element','tableCellSuggestion');_0x58064f&&!_0x2fecde['has'](_0x574406)&&_0x1fd832['add'](_0x574406),_0x22b469&&!_0x2fecde['has'](_0x1d0b95)&&_0x1fd832['add'](_0x1d0b95);}else _0x2d898b['is']('element','paragraph')&&_0x2d898b['isEmpty']&&(_0x26ce12['removeMarker'](_0x2a1d73['name']),_0x25d0d8=!0x0);}}else{if('tablePasteCell'==_0x26ce12['subType']){if(!_0x26ce12['attributes']||!_0x26ce12['attributes']['tablePasteChainId'])continue;const _0x3fcf32=_0x26ce12['attributes']['markerAttributes'];if(_0x3fcf32&&Object['keys'](_0x3fcf32)['length'])continue;const _0x856ead=_0x26ce12['attributes']['tablePasteChainId'];let _0x2b2860=!0x0,_0x2921c6=!0x0;for(const _0x7de3e3 of _0x49fe09)if(_0x7de3e3['subType']&&_0x7de3e3['subType']['startsWith']('tablePaste')){if(!_0x7de3e3['attributes']['tablePasteChainId']){_0x2921c6=!0x1;break;}if(_0x7de3e3['id']!=_0x26ce12['id']&&_0x7de3e3['attributes']['tablePasteChainId']==_0x856ead){_0x2b2860=!0x1;break;}}_0x2921c6&&_0x2b2860&&(_0x26ce12['removeMarkers'](),_0x25d0d8=!0x0);}}for(const _0x1f8d86 of _0x2fecde)_0x2039a4['remove'](_0x1f8d86);for(const _0x315fb7 of _0x1fd832)_0x2039a4['unwrap'](_0x315fb7);return _0x25d0d8;}),_0xd82244['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x8a7c63=>_0x412ebf(_0x8a7c63),'converterPriority':'high'}),_0xd82244['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x145808,_0x3b7892)=>_0x3b7892['options']['showSuggestionHighlights']?_0x412ebf(_0x145808,!0x1):null,'converterPriority':'high'});const _0x16005d=_0xd82244['editing']['view'];this['listenTo'](_0x16005d['document'],'clipboardOutput',(_0xcaf59b,_0x5a9017)=>{const _0x16d9fd=[];for(const _0xadf06a of _0x16005d['createRangeIn'](_0x5a9017['content'])['getItems']())_0xadf06a['is']('element','suggestion-td')&&_0x16d9fd['push'](_0xadf06a);_0x16005d['change'](_0x500900=>{for(const _0x83204 of _0x16d9fd)_0x500900['move'](_0x500900['createRangeIn'](_0x83204),_0x500900['createPositionBefore'](_0x83204)),_0x500900['remove'](_0x83204);});});}}function Ue(_0x4d9243){if(_0x4d9243['isEmpty'])return!0x0;const _0x340959=_0x4d9243['getChild'](0x0);return _0x340959['is']('element','paragraph')&&_0x340959['isEmpty'];}function De(_0x1cb89a,_0x1f38ba={},_0x8abc71){for(const {isAnchor:_0xcec468,cellHeight:_0x28181b,cellWidth:_0x32efa0}of _0x8abc71['createTableWalker'](_0x1cb89a,{'includeAllSlots':!0x0,..._0x1f38ba}))if(!_0xcec468||0x1!=_0x28181b||0x1!=_0x32efa0)return!0x1;return!0x0;}class Mt extends _0x48beba{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3c6004=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6004['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3c6004['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3c6004['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c6004['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3c6004['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3c6004['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x57bfea,_0x5d4878){const _0x4a1b79=this['editor']['plugins']['get']('TrackChangesEditing'),_0x495706=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x13c2fa=_0x5d4878['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xa9c82d=_0x495706['getColumnGroupElement'](_0x13c2fa);let _0x4af029=_0xa9c82d?_0x495706['getTableColumnsWidths'](_0xa9c82d):null,_0x4ba920=_0x13c2fa['getAttribute']('tableWidth')||null;const _0x570d7a=_0x5d4878['tableWidth']||_0x4ba920,_0x38d255=_0x5d4878['columnWidths']||_0x4af029,_0x29e90c=this['editor']['plugins']['get']('Users')['me'];for(const _0x2708f0 of _0x4a1b79['getSuggestions']()){const _0x5c5e0d=_0x2708f0['getContainedElement']();if('resizeTable'===_0x2708f0['subType']&&_0x5c5e0d===_0x13c2fa){_0x2708f0['author']!==_0x29e90c&&_0x2708f0['discard']();const _0x5152a5=_0x2708f0['data']['commandParams'];_0x4ba920=_0x5152a5[0x0]['tableWidth'],_0x4af029=_0x5152a5[0x0]['columnWidths'];break;}}_0x57bfea({'table':_0x13c2fa,'tableWidth':_0x570d7a,'columnWidths':_0x38d255}),_0x4a1b79['markBlockFormat'](_0x13c2fa,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4ba920,'columnWidths':_0x4af029}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x17d2ce){if('formatBlock'!=_0x17d2ce['type']&&'formatInline'!=_0x17d2ce['type'])return;const {data:_0x4e7717}=_0x17d2ce;if(_0x4e7717&&'resizeTable'===_0x4e7717['formatGroupId']){const _0x31c4f3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x31c4f3)};}}}class $t extends _0x48beba{['afterInit'](){const _0xdbfe39=this['editor'];_0xdbfe39['plugins']['has']('Template')&&_0xdbfe39['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x48beba{['afterInit'](){const _0x24d76f=this['editor'];if(!_0x24d76f['commands']['get']('insertTableOfContents'))return;_0x24d76f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2bbbfd=_0x24d76f['plugins']['get']('TrackChangesEditing'),_0x23dc50=_0x24d76f['locale'];_0x2bbbfd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x189ece=>o(_0x23dc50,'ELEMENT_TABLE_OF_CONTENTS',_0x189ece));}}class Tt extends _0x48beba{['afterInit'](){const _0x3af07f=this['editor'];if(!_0x3af07f['plugins']['has']('Title'))return;const _0x27a184=_0x3af07f['plugins']['get']('TrackChangesEditing');_0x27a184['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3af07f['locale'],'ELEMENT_TITLE')),_0x3af07f['model']['document']['registerPostFixer'](_0x231f62=>{let _0x3ad8d2=!0x1;const _0x5772c1=Array['from'](_0x3af07f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x369a8e,data:_0x3a1ea3}of _0x5772c1){const {group:_0x60c78a}=_0x27a184['_splitMarkerName'](_0x369a8e);if('suggestion'!==_0x60c78a||!_0x3a1ea3['newRange'])continue;const _0x3165e1=_0x3a1ea3['newRange'],_0x102004=_0x3165e1['end']['nodeBefore'];if(!_0x102004||!_0x102004['is']('element','title-content'))continue;if(!_0x3165e1['start']['isTouching'](_0x3165e1['end']))continue;const _0x3c4640=_0x3af07f['model']['schema']['getNearestSelectionRange'](_0x3165e1['end'],'forward');if(_0x3c4640&&_0x3c4640['isCollapsed']){const _0x342c1d=_0x231f62['createRange'](_0x3165e1['start'],_0x3c4640['start']);_0x342c1d['isEqual'](_0x3165e1)||(_0x231f62['updateMarker'](_0x369a8e,{'range':_0x342c1d}),_0x3ad8d2=!0x0);}_0x3ad8d2||(_0x231f62['removeMarker'](_0x369a8e),_0x3ad8d2=!0x0);}return _0x3ad8d2;});}}class xt extends _0x48beba{['afterInit'](){const _0x27a3dc=this['editor'],_0x30378d=_0x27a3dc['plugins']['get']('TrackChangesEditing');_0x27a3dc['plugins']['has']('Uploadcare')&&(_0x30378d['enableCommand']('uploadcare'),_0x27a3dc['plugins']['has']('UploadcareImageEdit')&&(_0x30378d['enableCommand']('uploadcareImageEdit'),_0x30378d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x30378d['registerBlockAttribute']('uploadcareImageId'),_0x30378d['descriptionFactory']['registerDescriptionCallback'](_0x3c45c8=>{if('attribute'!=_0x3c45c8['type'])return;const {data:_0x1cbc3a}=_0x3c45c8;return _0x1cbc3a&&'uploadcareImageId'==_0x1cbc3a['key']?{'type':'format','content':''}:void 0x0;})));}}class Ot extends _0x48beba{['afterInit'](){const _0x1513eb=this['editor'],_0x1814d0=_0x1513eb['plugins']['get']('TrackChangesEditing');_0x1513eb['plugins']['has']('UndoEditing')&&(_0x1814d0['enableCommand']('undo'),_0x1814d0['enableCommand']('redo'));}}class Rt extends _0x48beba{static get['requires'](){return[_t];}['afterInit'](){const _0x5c08f8=this['editor'];if(!_0x5c08f8['plugins']['has']('TableCaptionEditing'))return;_0x5c08f8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x48beba{['tableProperties'];['tableCellProperties'];constructor(_0x249e84){super(_0x249e84),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 _0x3410a8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d57a8 of this['tableProperties'])_0x3410a8['enableCommand'](_0x1d57a8,(_0x2358d4,_0x359d6c)=>{const _0x5e071b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d57a8,[_0x5e071b],this['tableProperties'],'tableProperties',_0x2358d4,_0x359d6c);});_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3410a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x6c8d53,_0x537531)=>this['handleDiscardAction'](this['tableProperties'],_0x6c8d53,_0x537531)),_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x48ac41 of this['tableCellProperties'])_0x3410a8['enableCommand'](_0x48ac41,(_0x4f0d76,_0x3b5657)=>{const _0x2ae42a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x48ac41,_0x2ae42a,this['tableCellProperties'],'tableCellProperties',_0x4f0d76,_0x3b5657);});_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3410a8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x509c98,_0x2ce6ad)=>this['handleDiscardAction'](this['tableCellProperties'],_0x509c98,_0x2ce6ad)),_0x3410a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3410a8['descriptionFactory']['registerDescriptionCallback'](_0x4985a5=>this['handleSuggestionDescription'](_0x4985a5));}['_handlePropertyChange'](_0xfb5e36,_0x283a4a,_0x93e600,_0x23be3d,_0x25e1fb,_0x2e143f){const _0x1465dc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2e143f['batch'],()=>{for(const _0x4eeac2 of _0x283a4a){if(this['_getSuggestion'](_0x4eeac2,_0x23be3d))_0x25e1fb(_0x2e143f);else{const _0xc693ed={};for(const _0x20f2a3 of _0x93e600){const _0x13fa1b=_0x4eeac2['getAttribute'](_0x20f2a3);void 0x0!==_0x13fa1b&&(_0xc693ed[_0x20f2a3]=_0x13fa1b);}_0x25e1fb(_0x2e143f),_0x1465dc['markBlockFormat'](_0x4eeac2,{'commandParams':[_0xc693ed]},[],_0x23be3d);}}});}['handleDiscardAction'](_0x5c2593,_0x21d811,_0xe17b69){const _0x1d3f8d=_0x21d811[0x0]['start']['nodeAfter'],_0xbd6024=_0xe17b69['commandParams'][0x0];this['editor']['model']['change'](_0x10251d=>{for(const _0x52aca5 of _0x5c2593)void 0x0!==_0xbd6024[_0x52aca5]?_0x10251d['setAttribute'](_0x52aca5,_0xbd6024[_0x52aca5],_0x1d3f8d):_0x10251d['removeAttribute'](_0x52aca5,_0x1d3f8d);});}['handleSuggestionDescription'](_0x1905db){if(_0x1905db['data'])switch(_0x1905db['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'](_0x4aa636,_0x1d14d3){const _0x2256ab=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5278d9 of _0x2256ab['getSuggestions']({'skipNotAttached':!0x0})){const _0x328973=_0x5278d9['getContainedElement']();if(_0x5278d9['subType']===_0x1d14d3&&_0x328973===_0x4aa636)return _0x5278d9;}return null;}}const m='$elementName';class d extends _0x48beba{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x16bab2,_0x2ad438,R,E,U,V,F,L,G,J,K,H,W,Q,X,Y,Z,tt,it,nt,et,st,rt,ot,at,ct,ut,ht,gt,pt,ft,q,z,lt,dt,mt,kt,wt,bt,yt,St,jt,It,At,_t,Ct,vt,Nt,Rt,Dt,Mt,Bt,Et,$t,Tt,xt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x446708){super(_0x446708),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x409b69,_0x1a773d,_0x114472,_0x311f79)=>{this['_model']['change'](()=>{for(const _0x1bad59 of[..._0x311f79,..._0x114472])this['_model']['markers']['has'](_0x1bad59)&&_0x446708['editing']['reconvertMarker'](_0x1bad59);});}),this['descriptionFactory']=new O(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x446708['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(),_0x446708['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x446708['config']['get']('trackChanges.trackFormatChanges'),_0x446708['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x446708['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new D(_0x446708,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d34df=this['editor'],_0x4ef21c=(_0x3fea7c,_0x15aae2)=>{if('attribute'!=_0x3fea7c)return'ck-suggestion-marker-'+_0x3fea7c;const _0x1c8bb7=_0x15aae2['split']('|')[0x0];return this['_isBlockAttribute'](_0x1c8bb7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d34df['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xbd68da=>{const {id:_0x8b14e8,authorId:_0x1e412d,type:_0x1e151d,subType:_0x3031fd}=this['_splitMarkerName'](_0xbd68da['markerName']),_0x26c7c6=['ck-suggestion-marker',_0x4ef21c(_0x1e151d,_0x3031fd)];let _0x42e046=0xbb8;return this['activeMarkers']['includes'](_0xbd68da['markerName'])&&(_0x26c7c6['push']('ck-suggestion-marker--active'),_0x42e046=0xbc2),'deletion'==_0x1e151d&&(_0x42e046+=0x5),{'classes':_0x26c7c6,'attributes':{'data-suggestion':_0x8b14e8,'data-author-id':_0x1e412d},'priority':_0x42e046};}}),_0x3d34df['conversion']['for']('dataDowncast')['add'](_0x1c86ae=>{_0x1c86ae['on']('addMarker:suggestion',(_0xa4a1d5,_0x4fc6fb,_0x3cf25f)=>{if(!_0x3cf25f['options']['showSuggestionHighlights'])return;const _0x523cc6=_0x4fc6fb['item'];if(!_0x523cc6)return;const _0x21eee6=_0x3cf25f['mapper']['toViewElement'](_0x523cc6);_0x3d34df['model']['schema']['isObject'](_0x523cc6)&&_0x21eee6&&!_0x21eee6['getCustomProperty']('widget')&&_0x21eee6['is']('containerElement')&&_0x126106(_0x21eee6,_0x3cf25f['writer']);},{'priority':'high'});}),_0x3d34df['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x149331,_0x22cf11)=>{if(!_0x22cf11['options']['showSuggestionHighlights'])return null;const {id:_0x3d68be,authorId:_0x524a11,type:_0x1add6a,subType:_0x2c641b}=this['_splitMarkerName'](_0x149331['markerName']);return{'classes':['ck-suggestion-marker',_0x4ef21c(_0x1add6a,_0x2c641b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3d68be,'data-author-id':_0x524a11}};}});const _0x924f49=({showActiveMarkers:_0x291c15=!0x0,isAttributeSuggestion:_0x3e5aa3=!0x1}={})=>(_0x5aa7bf,_0x30f4e0,_0x1386c9)=>{if(!_0x30f4e0['item'])return;const {id:_0x23d49a,authorId:_0x5b61e5}=this['_splitMarkerName'](_0x30f4e0['markerName']);if(_0x3e5aa3){const _0x35568e=this['_suggestions']['get'](_0x23d49a),_0x5f3d7b=this['_getAttributeKey'](_0x35568e);if(!this['_isBlockAttribute'](_0x5f3d7b))return;}if(_0x30f4e0['item']['is']('selection'))return void _0x1386c9['consumable']['consume'](_0x30f4e0['item'],_0x5aa7bf['name']);const _0x552331=_0x1386c9['mapper']['toViewElement'](_0x30f4e0['item']);if(_0x30f4e0['item']['is']('element')&&_0x3d34df['model']['schema']['isBlock'](_0x30f4e0['item'])&&!_0x552331['getCustomProperty']('addHighlight')){_0x1386c9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x552331),_0x1386c9['writer']['setAttribute']('data-suggestion',_0x23d49a,_0x552331),_0x1386c9['writer']['setAttribute']('data-author-id',_0x5b61e5,_0x552331),_0x1386c9['mapper']['bindElementToMarker'](_0x552331,_0x30f4e0['markerName']),_0x291c15&&(this['activeMarkers']['includes'](_0x30f4e0['markerName'])?_0x1386c9['writer']['addClass']('ck-suggestion-marker--active',_0x552331):_0x1386c9['writer']['removeClass']('ck-suggestion-marker--active',_0x552331));for(const _0x42ab18 of _0x3d34df['model']['createRangeIn'](_0x30f4e0['item'])['getItems']())_0x1386c9['consumable']['consume'](_0x42ab18,_0x5aa7bf['name']);_0x1386c9['consumable']['consume'](_0x30f4e0['item'],_0x5aa7bf['name']);}};_0x3d34df['conversion']['for']('dataDowncast')['add'](_0x1912af=>{_0x1912af['on']('addMarker:suggestion:formatBlock',(_0x21c549,_0x5d1581,_0x20816d)=>{_0x20816d['options']['showSuggestionHighlights']&&_0x924f49({'showActiveMarkers':!0x1})(_0x21c549,_0x5d1581,_0x20816d);},{'priority':'highest'});}),_0x3d34df['conversion']['for']('dataDowncast')['add'](_0x1b1412=>{_0x1b1412['on']('addMarker:suggestion:attribute',(_0x552616,_0x19d875,_0x106b59)=>{_0x106b59['options']['showSuggestionHighlights']&&_0x924f49({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x552616,_0x19d875,_0x106b59);},{'priority':'highest'});}),_0x3d34df['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x281c76,_0x58d5b4)=>{if(_0x58d5b4['options']['showSuggestionHighlights']){const {id:_0xb35415,authorId:_0x31883e}=this['_splitMarkerName'](_0x281c76);return _0x281c76['includes'](':split')||_0x281c76['includes'](':merge')?{'group':'suggestion','name':_0x281c76['substr'](0xb),'attributes':{'data-suggestion':_0xb35415,'data-author-id':_0x31883e}}:null;}return{'group':'suggestion','name':_0x281c76['substr'](0xb)};}}),_0x3d34df['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd5fdf5,{writer:_0xe1b6a5})=>{let _0x50dc5a='suggestion:'+_0xd5fdf5['getAttribute']('suggestion-type')+':'+_0xd5fdf5['getAttribute']('id');return _0xd5fdf5['getAttribute']('marker-count')&&(_0x50dc5a+=':'+_0xd5fdf5['getAttribute']('marker-count')),_0xe1b6a5['createElement']('$marker',{'data-name':_0x50dc5a});}}),_0x3d34df['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d34df['conversion']['for']('editingDowncast')['add'](_0x4b2b5e=>{_0x4b2b5e['on']('addMarker:suggestion:formatBlock',_0x924f49(),{'priority':'high'});}),_0x3d34df['conversion']['for']('editingDowncast')['add'](_0x5bb783=>{_0x5bb783['on']('addMarker:suggestion:attribute',_0x924f49({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d34df['conversion']['for']('editingDowncast')['add'](_0x56c9a0=>{_0x56c9a0['on']('removeMarker:suggestion:formatBlock',(_0x53434e,_0x1fa19a,_0x41e869)=>{const _0x21a8e0=_0x41e869['mapper']['markerNameToElements'](_0x1fa19a['markerName']);if(_0x21a8e0){for(const _0x2fca2e of _0x21a8e0)_0x2fca2e['getCustomProperty']('addHighlight')||(_0x41e869['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2fca2e),_0x41e869['writer']['removeAttribute']('data-suggestion',_0x2fca2e),_0x41e869['writer']['removeAttribute']('data-author-id',_0x2fca2e),_0x41e869['mapper']['unbindElementFromMarkerName'](_0x2fca2e,_0x1fa19a['markerName']));}},{'priority':'high'});}),_0x3d34df['conversion']['for']('editingDowncast')['add'](_0x32e709=>{_0x32e709['on']('removeMarker:suggestion:attribute',(_0x304748,_0x4b827a,_0x110ef5)=>{const _0x44aa09=_0x110ef5['mapper']['markerNameToElements'](_0x4b827a['markerName']);if(!_0x44aa09)return;const {id:_0x1c248c}=this['_splitMarkerName'](_0x4b827a['markerName']),_0x59bbf7=this['_suggestions']['get'](_0x1c248c),_0x26f3c6=this['_getAttributeKey'](_0x59bbf7);if(this['_isBlockAttribute'](_0x26f3c6)){for(const _0x4f932f of _0x44aa09)_0x4f932f['getCustomProperty']('addHighlight')||(_0x110ef5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4f932f),_0x110ef5['writer']['removeAttribute']('data-suggestion',_0x4f932f),_0x110ef5['writer']['removeAttribute']('data-author-id',_0x4f932f),_0x110ef5['mapper']['unbindElementFromMarkerName'](_0x4f932f,_0x4b827a['markerName']));}},{'priority':'high'});}),_0x3d34df['model']['document']['registerPostFixer'](_0x199c13=>{let _0x2c0f16=!0x1;const _0x90a778=Array['from'](_0x3d34df['model']['document']['differ']['getChangedMarkers']()),_0x390570=new Set();for(const {name:_0x3aa39a,data:_0x242058}of _0x90a778){const {group:_0x5c2e59,type:_0x1c350a,subType:_0x41c7c6,id:_0x25b081}=this['_splitMarkerName'](_0x3aa39a);if('suggestion'!==_0x5c2e59)continue;const _0x5a0d10=this['_suggestions']['get'](_0x25b081);if(null!=_0x242058['newRange']){'formatInline'==_0x1c350a&&(_0x2c0f16=_0x2c0f16||Gt(_0x242058['newRange'],_0x3aa39a,_0x199c13,_0x3d34df['model']['schema']));const _0x1fd265='attribute'==_0x1c350a&&this['_isBlockAttribute'](_0x41c7c6['split']('|')[0x0]);if(_0x242058['newRange']['isCollapsed']||'$graveyard'==_0x242058['newRange']['root']['rootName']||'formatBlock'==_0x1c350a&&!Jt(_0x242058['newRange'])||_0x1fd265&&!Jt(_0x242058['newRange'])||'deletion'==_0x1c350a&&!(!Pt(_0x499430=_0x242058['newRange'])&&!function(_0x3d044b){return _0x3d044b['start']['parent']==_0x3d044b['end']['nodeBefore']&&_0x3d044b['start']['isAtEnd'];}(_0x499430)))_0x199c13['removeMarker'](_0x3aa39a),_0x2c0f16=!0x0;else{if(!_0x5a0d10||!_0x5a0d10['isInContent'])continue;if(_0x242058['newRange']&&_0x242058['oldRange']&&_0x242058['newRange']['isEqual'](_0x242058['oldRange']))continue;_0x390570['add'](_0x5a0d10);}}}var _0x499430;return _0x390570['size']>0x0&&(_0x2c0f16=!!this['_joinWithAdjacentSuggestions'](_0x390570)||_0x2c0f16),_0x2c0f16;}),_0x3d34df['model']['document']['registerPostFixer'](_0x3cc9b0=>{let _0x5de06f=!0x1;for(const _0x11b779 of _0x3d34df['model']['document']['differ']['getChanges']())if('insert'==_0x11b779['type'])for(const _0x2d6914 of this['_suggestions']['values']()){if(_0x2d6914['isMultiRange']||!_0x2d6914['isInContent'])continue;const _0x89c1a4='formatBlock'==_0x2d6914['type'],_0x512155=this['_getAttributeKey'](_0x2d6914),_0x1b6a08=_0x512155&&this['_isBlockAttribute'](_0x512155);if(!_0x89c1a4&&!_0x1b6a08)continue;const _0x408dd1=_0x2d6914['getFirstRange']();if(_0x408dd1['start']['parent']!=_0x408dd1['end']['parent']&&!_0x408dd1['end']['isAtEnd']){const _0x51feb8=_0x3d34df['model']['createPositionAt'](_0x408dd1['start']['nodeAfter'],'end'),_0x1b7354=_0x3d34df['model']['createRange'](_0x408dd1['start'],_0x51feb8);_0x3cc9b0['updateMarker'](_0x2d6914['getFirstMarker'](),{'range':_0x1b7354}),_0x5de06f=!0x0;}}return _0x5de06f;}),_0x3d34df['model']['document']['registerPostFixer'](_0x26b63b=>this['_processAttributeChanges'](_0x26b63b)),_0x3d34df['model']['document']['registerPostFixer'](_0x4010b6=>!_0x4010b6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4010b6)),_0x3d34df['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d34df['model']['document']['on']('change:data',(_0x383214,_0xefc099)=>{if(!_0xefc099['isLocal']||_0xefc099['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5b00bd=_0x3d34df['model']['document']['differ']['getChanges']();if(0x0==_0x5b00bd['length'])return;const _0x39f50c=[],_0x2f1bdf=_0x5b00bd['filter'](_0x51ed1d=>'attribute'==_0x51ed1d['type']),_0x4f6062=_0x5b00bd['filter'](_0x4920dc=>'insert'==_0x4920dc['type']&&'$text'!=_0x4920dc['name']);for(const _0x3e4ee9 of _0x2f1bdf)this['_isRegisteredAttribute'](_0x3e4ee9['attributeKey'])&&_0x39f50c['push']({'key':_0x3e4ee9['attributeKey'],'newValue':_0x3e4ee9['attributeNewValue'],'oldValue':_0x3e4ee9['attributeOldValue'],'range':Kt(_0x3e4ee9['range'],_0x3d34df['model'])});for(const _0x1622fa of _0x4f6062){if('rename'!=_0x1622fa['action']&&'refresh'!=_0x1622fa['action'])continue;const _0x7e1ff5=Ht(_0x1622fa['position']['nodeAfter'],_0x3d34df['model']),_0x8e6eb1=_0x1622fa['before'];'rename'==_0x1622fa['action']&&_0x39f50c['push']({'key':m,'newValue':_0x1622fa['name'],'oldValue':_0x8e6eb1['name'],'range':_0x7e1ff5});for(const [_0x18b905,_0x553567]of _0x8e6eb1['attributes']){if(!this['_isRegisteredAttribute'](_0x18b905))continue;const _0x1187d2=_0x1622fa['attributes']['get'](_0x18b905);_0x553567!==_0x1187d2&&_0x39f50c['push']({'key':_0x18b905,'newValue':_0x1187d2,'oldValue':_0x553567,'range':_0x7e1ff5});}for(const [_0xe9e60d,_0x46bdab]of _0x1622fa['attributes'])this['_isRegisteredAttribute'](_0xe9e60d)&&(_0x8e6eb1['attributes']['has'](_0xe9e60d)||_0x39f50c['push']({'key':_0xe9e60d,'newValue':_0x46bdab,'oldValue':null,'range':_0x7e1ff5}));}0x0!=_0x39f50c['length']&&_0x3d34df['model']['enqueueChange'](_0xefc099,_0x5db5b5=>{const _0xf9a982=_0x165ef7();for(const {range:_0x4ee925,key:_0x58e5c2,oldValue:_0x4ebeb3,newValue:_0x307671}of _0x39f50c)this['markAttributeChange'](_0x4ee925,_0x58e5c2,_0x4ebeb3,_0x307671,{'groupId':_0xf9a982});this['_reduceExistingSuggestions'](_0x5db5b5,_0x39f50c);});},{'priority':'lowest'}),_0x3d34df['model']['markers']['on']('update:suggestion',(_0x567e9a,_0x1cc5de,_0x5b30a1)=>{if(null==_0x5b30a1){const {id:_0x5ecf65}=this['_splitMarkerName'](_0x1cc5de['name']),_0x4fb1b6=this['_suggestions']['get'](_0x5ecf65);_0x4fb1b6&&_0x4fb1b6['addMarkerName'](_0x1cc5de['name']);}}),_0x3d34df['model']['document']['on']('change:data',()=>{const _0x3ca3a0=Array['from'](_0x3d34df['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4e30c9=>'suggestion'===this['_splitMarkerName'](_0x4e30c9['name'])['group']);if(0x0===_0x3ca3a0['length'])return;_0x3ca3a0['sort']((_0x449129,_0x39195b)=>{const _0x4d851f=_0x449129['data']['oldRange'],_0x36e95e=_0x39195b['data']['oldRange'];return null===_0x4d851f&&null===_0x36e95e?0x0:null===_0x4d851f&&null!==_0x36e95e?-0x1:null!==_0x4d851f&&null===_0x36e95e?0x1:_0x4d851f['start']['isBefore'](_0x36e95e['start'])?-0x1:0x1;});const _0x32eeed=new Set(),_0x4667c5=new Set();for(const {name:_0x3b0252,data:_0x2c03ad}of _0x3ca3a0){const {id:_0x301623}=this['_splitMarkerName'](_0x3b0252);if(null===_0x2c03ad['oldRange']){const _0xd891c4=this['_handleNewSuggestionMarker'](_0x3b0252);_0x4667c5['add'](_0xd891c4);}else{const _0x52211e=this['_suggestions']['get'](_0x301623);null!==_0x2c03ad['newRange']||_0x52211e['isInContent']?(_0x32eeed['add'](_0x52211e['head']),_0x4667c5['add'](_0x52211e)):this['_removeSuggestion'](_0x52211e);}}_0x4667c5['size']>0x0&&this['_refreshSuggestionsChain'](_0x4667c5);for(const _0x31323e of _0x32eeed)this['fire']('suggestionChanged',_0x31323e);}),_0x3d34df['model']['on']('applyOperation',(_0x128263,_0x5d489c)=>{const _0x5e504b=_0x5d489c[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e504b['isDocumentOperation'])return;if(_0x5e504b['batch']['isUndo']||!_0x5e504b['batch']['isLocal'])return;let _0x89f4ca,_0x29b261;switch(_0x5e504b['type']){case'insert':_0x89f4ca=_0x3d34df['model']['createPositionAt'](_0x5e504b['position']),_0x29b261=_0x89f4ca['getShiftedBy'](_0x5e504b['howMany']);break;case'split':_0x89f4ca=_0x3d34df['model']['createPositionAt'](_0x5e504b['splitPosition']),_0x29b261=_0x3d34df['model']['createPositionAt'](_0x5e504b['moveTargetPosition']);break;case'move':_0x89f4ca=_0x3d34df['model']['createPositionAt'](_0x5e504b['targetPosition']),_0x29b261=_0x89f4ca['getShiftedBy'](_0x5e504b['howMany']);break;default:return;}const _0x5f45fd=_0x3d34df['model']['createRange'](_0x89f4ca,_0x29b261);_0x3d34df['model']['change'](()=>{for(const {suggestion:_0x3a30a4,meta:_0x323020}of this['_findSuggestions'](_0x5f45fd)){if(_0x3a30a4['isMultiRange'])continue;if('formatInline'==_0x3a30a4['type'])continue;const _0x4e4592=this['_getAttributeKey'](_0x3a30a4);if(_0x4e4592&&this['_isBlockAttribute'](_0x4e4592)&&'split'!=_0x5e504b['type'])continue;const _0xb8a3f6=_0x3a30a4['data']&&_0x3a30a4['data']['multipleBlocks'];('formatBlock'!=_0x3a30a4['type']||'split'==_0x5e504b['type']&&!_0xb8a3f6)&&(_0x323020['containsRangeInObject']||'insertion'==_0x3a30a4['type']&&_0x323020['isOwn']||_0x3a30a4['getFirstRange']()['containsRange'](_0x5f45fd)&&this['_breakSuggestionMarker'](_0x3a30a4,_0x89f4ca,_0x29b261));}});},{'priority':'lowest'}),_0x3d34df['model']['on']('deleteContent',(_0x517937,_0x17cbb0)=>{const _0x86cabf=_0x17cbb0[0x0],_0x6656d0=_0x17cbb0[0x1];if(_0x6656d0&&_0x6656d0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x86cabf['isCollapsed'])return;const _0x435983=_0x3d34df['model']['schema'],{start:_0x40acbb,end:_0x4f9554}=_0x86cabf['getFirstRange'](),_0x1b24c5=_0x40acbb['nodeAfter']&&_0x435983['isLimit'](_0x40acbb['nodeAfter'])?null:_0x435983['getNearestSelectionRange'](_0x40acbb,'forward'),_0x1003ed=_0x4f9554['nodeBefore']&&_0x435983['isLimit'](_0x4f9554['nodeBefore'])?null:_0x435983['getNearestSelectionRange'](_0x4f9554,'backward'),_0x18c123=_0x3d34df['model']['createRange'](_0x1b24c5?_0x1b24c5['start']:_0x40acbb,_0x1003ed?_0x1003ed['end']:_0x4f9554);_0x3d34df['model']['change'](_0x158009=>{this['markDeletion'](_0x18c123);const _0xcf7c98=_0x3d34df['model']['schema']['getNearestSelectionRange'](_0x18c123['start']);_0x86cabf['is']('documentSelection')?_0x158009['setSelection'](_0xcf7c98):_0x86cabf['setTo'](_0xcf7c98);}),_0x517937['stop']();},{'priority':_0xe29e00['normal']+0xa}),_0x3d34df['model']['on']('insertContent',(_0x2c202e,_0x3214c5)=>{const _0x253871=_0x3214c5[_0x3214c5['length']-0x1];_0x253871&&_0x253871['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d34df['model']['change'](()=>{let _0x433d17=_0x3d34df['model']['insertContent'](_0x3214c5[0x0],_0x3214c5[0x1],_0x3214c5[0x2],{'forceDefaultExecution':!0x0});if(!_0x433d17)return;_0x2c202e['return']=_0x433d17['clone']();const _0x5a20c9=_0x433d17['end']['nodeBefore'],_0x307f85=_0x3d34df['model']['schema'];_0x5a20c9&&_0x307f85['isBlock'](_0x5a20c9)&&!_0x307f85['isObject'](_0x5a20c9)&&(_0x433d17=_0x3d34df['model']['createRange'](_0x433d17['start'],_0x3d34df['model']['createPositionAt'](_0x5a20c9,'end'))),this['markInsertion'](_0x433d17);}),_0x2c202e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d7b43=new M(_0x3d34df,this['_suggestions']);_0x3d34df['commands']['add']('acceptSuggestion',_0x1d7b43),this['enableCommand']('acceptSuggestion');const _0x11e5b5=new $(_0x3d34df,this['_suggestions']);_0x3d34df['commands']['add']('discardSuggestion',_0x11e5b5),this['enableCommand']('discardSuggestion'),_0x3d34df['commands']['add']('acceptAllSuggestions',new B(_0x3d34df,_0x1d7b43,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d34df['commands']['add']('discardAllSuggestions',new B(_0x3d34df,_0x11e5b5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d34df['commands']['add']('acceptSelectedSuggestions',new T(_0x3d34df,_0x1d7b43,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d34df['commands']['add']('discardSelectedSuggestions',new T(_0x3d34df,_0x11e5b5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x56615b=_0x3d34df['plugins']['get']('CommentsRepository');this['listenTo'](_0x56615b,'addComment',(_0x33b9ad,{threadId:_0xe5cdb8})=>{const _0x5ea9a4=this['_suggestions']['get'](_0xe5cdb8);_0x5ea9a4&&_0x5ea9a4['commentThread']&&0x1===_0x5ea9a4['commentThread']['length']&&this['_updateSuggestionData'](_0xe5cdb8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x56615b,'removeComment',(_0x23dc2b,{threadId:_0x2a8b5b})=>{const _0x3a1b3=this['_suggestions']['get'](_0x2a8b5b);_0x3a1b3&&_0x3a1b3['commentThread']&&!_0x3a1b3['commentThread']['length']&&this['_updateSuggestionData'](_0x2a8b5b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x214ff0){const _0x5ea989=_0xbfdf40([0x50,0x72,0x79,0x46,0x4d,0x73,0x39,0x44,0x69,0x6b,0x36,0x43,0x30,0x70,0x67,0x7a,0x6c,0x31,0x58,0x5a,0x53,0x78,0x4a,0x41,0x4f,0x33,0x55,0x63,0x75,0x74,0x47,0x4c,0x6f,0x37,0x38,0x57,0x54,0x68,0x66,0x52,0x48,0x6a,0x4b,0x71,0x56,0x77,0x42,0x51,0x49,0x6d,0x61,0x34,0x59,0x4e,0x45,0x6e,0x65,0x32,0x76,0x35,0x64,0x62]),_0x51757d=0x3389b3f,_0x1438e7=0x33ff17f^_0x51757d,_0x4bbd7f=window[_0xbfdf40([0x44,0x61,0x74,0x65])][_0xbfdf40([0x6e,0x6f,0x77])](),_0x7e9711=_0x214ff0[_0xbfdf40([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39eb39=new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eccff=>{_0x7e9711[_0xbfdf40([0x6f,0x6e,0x63,0x65])](_0xbfdf40([0x72,0x65,0x61,0x64,0x79]),_0x4eccff);}),_0x433830={[_0xbfdf40([0x6b,0x74,0x79])]:_0xbfdf40([0x45,0x43]),[_0xbfdf40([0x75,0x73,0x65])]:_0xbfdf40([0x73,0x69,0x67]),[_0xbfdf40([0x63,0x72,0x76])]:_0xbfdf40([0x50,0x2d,0x32,0x35,0x36]),[_0xbfdf40([0x78])]:_0xbfdf40([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]),[_0xbfdf40([0x79])]:_0xbfdf40([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]),[_0xbfdf40([0x61,0x6c,0x67])]:_0xbfdf40([0x45,0x53,0x32,0x35,0x36])},_0x129a76=_0x7e9711[_0xbfdf40([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xbfdf40([0x67,0x65,0x74])](_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2cd274(){let _0x21d0ce,_0x58402e=null,_0xf326f1=null;try{if(_0x129a76==_0xbfdf40([0x47,0x50,0x4c]))return _0xbfdf40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21d0ce=_0x2b8598(),!_0x21d0ce)return _0xbfdf40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21d0ce[_0xbfdf40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf326f1=_0xc233c8(_0x21d0ce[_0xbfdf40([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21d0ce[_0xbfdf40([0x6a,0x74,0x69])])),await _0x1567fd()?_0x2f50c7()?_0x4deefb()?_0xbfdf40([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ab48e()?(_0x21d0ce[_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbfdf40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58402e=_0x316037(_0xbfdf40([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21d0ce[_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xbfdf40([0x74,0x72,0x69,0x61,0x6c])&&(_0x58402e=_0x316037(_0xbfdf40([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4690f8()):_0xbfdf40([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xbfdf40([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xbfdf40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xbfdf40([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4deefb(){const _0x554253=[_0xbfdf40([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xbfdf40([0x74,0x72,0x69,0x61,0x6c])][_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21d0ce[_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4bbd7f/0x3e8:0xe10*_0x1438e7;return _0x21d0ce[_0xbfdf40([0x65,0x78,0x70])]<_0x554253;}function _0x2f50c7(){const _0x104fa4=_0x21d0ce[_0xbfdf40([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x104fa4)return!0x1;if(_0x104fa4[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfdf40([0x2a])))return!0x0;if(_0x104fa4[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfdf40([0x54,0x43])))return!0x0;if(_0x104fa4[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfdf40([0x52,0x54,0x43]))){if(_0x3f6914())return!0x0;if(_0x1fc212()||_0x579d6e())return!0x0;}return!0x1;}function _0x1ab48e(){const _0x4475cd=_0x21d0ce[_0xbfdf40([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4475cd||0x0==_0x4475cd[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x248f77}=new URL(window[_0xbfdf40([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4475cd[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x248f77))return!0x0;const _0x5cdbaa=_0x248f77[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])](_0xbfdf40([0x2e]));return _0x4475cd[_0xbfdf40([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x513fa3=>_0x513fa3[_0xbfdf40([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbfdf40([0x2a])))[_0xbfdf40([0x6d,0x61,0x70])](_0x1c5d49=>_0x1c5d49[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])](_0xbfdf40([0x2e])))[_0xbfdf40([0x73,0x6f,0x6d,0x65])](_0x49bbe0=>_0x5cdbaa[_0xbfdf40([0x65,0x76,0x65,0x72,0x79])]((_0x40b299,_0x218571)=>_0x49bbe0[_0x218571]===_0x40b299||_0x49bbe0[_0x218571]===_0xbfdf40([0x2a])));}function _0x4690f8(){return _0x58402e&&_0xf326f1?new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48cd80,_0x255798)=>{_0x58402e[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x48cd80,_0x255798),_0xf326f1[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x4fb705=>{_0x4fb705!=_0xbfdf40([0x56,0x61,0x6c,0x69,0x64])&&_0x48cd80(_0x4fb705);},_0x255798);}):_0x58402e||_0xf326f1||_0xbfdf40([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc233c8(_0x529c84,_0x5fc05c){return new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8db3e=>{if(_0x1c5027())return _0x8db3e(_0xbfdf40([0x56,0x61,0x6c,0x69,0x64]));_0x11a37c(),_0x7e9711[_0xbfdf40([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xbfdf40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1f6fc7=!0x1;const _0x550aff=_0x165ef7();function _0x39f31f(_0x1e491a){return!!_0x1e491a&&(typeof _0x1e491a===_0xbfdf40([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e491a===_0xbfdf40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e491a[_0xbfdf40([0x74,0x68,0x65,0x6e])]===_0xbfdf40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e491a[_0xbfdf40([0x63,0x61,0x74,0x63,0x68])]===_0xbfdf40([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38d25a(_0x183e39){_0x204ade(_0x183e39)[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x811309=>{if(!_0x811309||_0x811309[_0xbfdf40([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xbfdf40([0x6f,0x6b]))return _0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c066c(_0x5b8f86(_0x550aff+_0x5fc05c))!=_0x811309[_0xbfdf40([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xbfdf40([0x56,0x61,0x6c,0x69,0x64]);})[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x1e0ec9=>(_0x3c755c(),_0x1e0ec9),()=>{const _0x38a904=_0x2c0ca4();return null==_0x38a904?(_0x3c755c(),_0xbfdf40([0x56,0x61,0x6c,0x69,0x64])):_0xbfdf40(_0x4bbd7f-_0x38a904>(0x27341f3f^_0x51757d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x8db3e)[_0xbfdf40([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8db3e(_0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x547207=0x30e75bf^_0x51757d;function _0x3c755c(){const _0x10ece1=_0xbfdf40([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c066c(_0x5b8f86(_0x529c84)),_0x3198ab=_0x53c5cb(_0x5c066c(window[_0xbfdf40([0x4d,0x61,0x74,0x68])][_0xbfdf40([0x63,0x65,0x69,0x6c])](_0x4bbd7f/_0x547207)));window[_0xbfdf40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbfdf40([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10ece1,_0x3198ab);}function _0x2c0ca4(){const _0x3e9bb8=_0xbfdf40([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c066c(_0x5b8f86(_0x529c84)),_0x5cd46d=window[_0xbfdf40([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xbfdf40([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e9bb8);return _0x5cd46d?window[_0xbfdf40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c5cb(_0x5cd46d),0x10)*_0x547207:null;}function _0x204ade(_0x549146){return new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1dfe3f,_0x20c46d)=>{_0x549146[_0xbfdf40([0x74,0x68,0x65,0x6e])](_0x1dfe3f,_0x20c46d),window[_0xbfdf40([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20c46d,0x3394fff^_0x51757d);});}}_0x7e9711[_0xbfdf40([0x6f,0x6e])](_0xbfdf40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6e7b5f,_0x291a7e)=>{if(_0x291a7e[0x0]!=_0x529c84)return _0x8db3e(_0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x291a7e[0x1]={..._0x291a7e[0x1],[_0xbfdf40([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x550aff};},{[_0xbfdf40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbfdf40([0x68,0x69,0x67,0x68])}),_0x7e9711[_0xbfdf40([0x6f,0x6e])](_0xbfdf40([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e0d0c=>{_0x39f31f(_0x3e0d0c[_0xbfdf40([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1f6fc7=!0x0,_0x38d25a(_0x3e0d0c[_0xbfdf40([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xbfdf40([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xbfdf40([0x6c,0x6f,0x77])}),_0x39eb39[_0xbfdf40([0x74,0x68,0x65,0x6e])](()=>{_0x1f6fc7||_0x8db3e(_0xbfdf40([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c5027(){return _0x7e9711[_0xbfdf40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbfdf40([0x76,0x69,0x65,0x77])][_0xbfdf40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xbfdf40([0x61,0x75,0x74,0x6f]);}function _0x11a37c(){_0x7e9711[_0xbfdf40([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xbfdf40([0x76,0x69,0x65,0x77])][_0xbfdf40([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xbfdf40([0x61,0x75,0x74,0x6f]);}}function _0x316037(_0x5da01f){const _0x24ce47=[new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36fc22=>setTimeout(_0x36fc22,0x331a5f3^_0x51757d)),_0x39eb39[_0xbfdf40([0x74,0x68,0x65,0x6e])](()=>new window[(_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ec6d9=>{let _0x2d6342=0x0;_0x7e9711[_0xbfdf40([0x6d,0x6f,0x64,0x65,0x6c])][_0xbfdf40([0x6f,0x6e])](_0xbfdf40([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22ad9b,_0xf3f09d)=>{_0xf3f09d[0x0][_0xbfdf40([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d6342++,_0x2d6342==(0x3389ac7^_0x51757d)&&(_0x2ec6d9(),_0x22ad9b[_0xbfdf40([0x6f,0x66,0x66])]());});}))];return window[_0xbfdf40([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xbfdf40([0x72,0x61,0x63,0x65])](_0x24ce47)[_0xbfdf40([0x74,0x68,0x65,0x6e])](()=>_0x5da01f);}async function _0x44f05b(){await _0x39eb39,_0x7e9711[_0xbfdf40([0x6d,0x6f,0x64,0x65,0x6c])][_0xbfdf40([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x6b3af,_0x7e9711[_0xbfdf40([0x6d,0x6f,0x64,0x65,0x6c])][_0xbfdf40([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x6b3af,_0x7e9711[_0xbfdf40([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xbfdf40([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f6914(){return _0xaf6ac1(_0xbfdf40([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc864c2(_0xbfdf40([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xbfdf40([0x73,0x74,0x61,0x74,0x65])]==_0xbfdf40([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1fc212(){return _0xaf6ac1(_0xbfdf40([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 _0x579d6e(){return _0xaf6ac1(_0xbfdf40([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x271b99(_0x4bf96d){const _0x5ed96e=_0x1fffb8();_0x7e9711[_0x5ed96e]=_0xbfdf40([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4bf96d,_0x4bf96d!=_0xbfdf40([0x56,0x61,0x6c,0x69,0x64])&&_0x44f05b();}function _0x1fffb8(){const _0x206b98=window[_0xbfdf40([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xbfdf40([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xbfdf40([0x6e,0x6f,0x77])]())[_0xbfdf40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xbfdf40([0x2e]),'');let _0x58d677=_0xbfdf40([0x50]);for(let _0x17f6fd=0x0;_0x17f6fd<_0x206b98[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17f6fd+=0x2){let _0x275f6b=window[_0xbfdf40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x206b98[_0xbfdf40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17f6fd,_0x17f6fd+0x2));_0x275f6b>=_0x5ea989[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x275f6b-=_0x5ea989[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58d677+=_0x5ea989[_0x275f6b];}return _0x58d677;}function _0x2b8598(){const _0x158288=_0x129a76[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])](_0xbfdf40([0x2e]));if(0x3!=_0x158288[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d65fd(_0x158288[0x1]);function _0x5d65fd(_0x194db4){const _0xd51e52=_0xa3df28(_0x194db4);return _0xd51e52&&_0x50cbbb()?_0xd51e52:null;function _0x50cbbb(){const _0x353aed=_0xd51e52[_0xbfdf40([0x6a,0x74,0x69])],_0x55d8b8=window[_0xbfdf40([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x353aed[_0xbfdf40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x353aed[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33d6d4={..._0xd51e52,[_0xbfdf40([0x6a,0x74,0x69])]:_0x353aed[_0xbfdf40([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x353aed[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33d6d4[_0xbfdf40([0x76,0x63])],_0x5b8f86(_0x33d6d4)==_0x55d8b8;}}}async function _0x1567fd(){let _0x315c28=!0x0;try{const _0x407c28=_0x129a76[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])](_0xbfdf40([0x2e])),[_0x4ae5cc,_0x44cf73,_0x2cbe57]=_0x407c28;return _0x1679eb(_0x4ae5cc),await _0x37b719(_0x4ae5cc,_0x44cf73,_0x2cbe57),_0x315c28;}catch{return!0x1;}function _0x1679eb(_0x2c4c1c){const _0x1ccf02=_0xa3df28(_0x2c4c1c);_0x1ccf02&&_0x1ccf02[_0xbfdf40([0x61,0x6c,0x67])]==_0xbfdf40([0x45,0x53,0x32,0x35,0x36])||(_0x315c28=!0x1);}async function _0x37b719(_0x54ae69,_0x36ca03,_0x132055){const _0x8ffc37=window[_0xbfdf40([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xbfdf40([0x66,0x72,0x6f,0x6d])](_0x4831e6(_0x132055),_0x291b3c=>_0x291b3c[_0xbfdf40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5eb3b0=new window[(_0xbfdf40([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xbfdf40([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54ae69+_0xbfdf40([0x2e])+_0x36ca03),_0x5db283=window[_0xbfdf40([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xbfdf40([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5db283)return;const _0x436f99=await _0x5db283[_0xbfdf40([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xbfdf40([0x6a,0x77,0x6b]),_0x433830,{[_0xbfdf40([0x6e,0x61,0x6d,0x65])]:_0xbfdf40([0x45,0x43,0x44,0x53,0x41]),[_0xbfdf40([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xbfdf40([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xbfdf40([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5db283[_0xbfdf40([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xbfdf40([0x6e,0x61,0x6d,0x65])]:_0xbfdf40([0x45,0x43,0x44,0x53,0x41]),[_0xbfdf40([0x68,0x61,0x73,0x68])]:{[_0xbfdf40([0x6e,0x61,0x6d,0x65])]:_0xbfdf40([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x436f99,_0x8ffc37,_0x5eb3b0)||(_0x315c28=!0x1);}}function _0xa3df28(_0x16eb93){return _0x16eb93[_0xbfdf40([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xbfdf40([0x65,0x79]))?JSON[_0xbfdf40([0x70,0x61,0x72,0x73,0x65])](_0x4831e6(_0x16eb93)):null;}function _0x4831e6(_0x2f680b){return window[_0xbfdf40([0x61,0x74,0x6f,0x62])](_0x2f680b[_0xbfdf40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xbfdf40([0x2b]))[_0xbfdf40([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xbfdf40([0x2f])));}function _0x5b8f86(_0x4b38da){let _0x27f35a=0x1505;function _0x5632d2(_0x4aa939){for(let _0x55c7d0=0x0;_0x55c7d0<_0x4aa939[_0xbfdf40([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55c7d0++){const _0x41aa01=_0x4aa939[_0xbfdf40([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55c7d0);_0x27f35a=(_0x27f35a<<0x5)+_0x27f35a+_0x41aa01,_0x27f35a&=_0x27f35a;}}function _0x362e91(_0x36e604){Array[_0xbfdf40([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36e604)?_0x36e604[_0xbfdf40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x362e91):_0x36e604&&typeof _0x36e604==_0xbfdf40([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xbfdf40([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36e604)[_0xbfdf40([0x73,0x6f,0x72,0x74])]()[_0xbfdf40([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a7fae,_0x100d1f])=>{_0x5632d2(_0x1a7fae),_0x362e91(_0x100d1f);}):_0x5632d2(window[_0xbfdf40([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36e604));}return _0x362e91(_0x4b38da),_0x27f35a>>>0x0;}function _0x5c066c(_0x3f0638){return _0x3f0638[_0xbfdf40([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xbfdf40([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xbfdf40([0x30]));}function _0x53c5cb(_0x1361de){return _0x1361de[_0xbfdf40([0x73,0x70,0x6c,0x69,0x74])]('')[_0xbfdf40([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xbfdf40([0x6a,0x6f,0x69,0x6e])]('');}function _0xaf6ac1(_0x7756a7){return _0x7e9711[_0xbfdf40([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xbfdf40([0x68,0x61,0x73])](_0x7756a7);}function _0xc864c2(_0x55a8d2){return _0x7e9711[_0xbfdf40([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xbfdf40([0x67,0x65,0x74])](_0x55a8d2);}function _0x6b3af(){}function _0xbfdf40(_0x2c507f){return _0x2c507f['map'](_0x4033e5=>String['fromCharCode'](_0x4033e5))['join']('');}_0x271b99(await _0x2cd274());}(this);}set['adapter'](_0x5e7019){if(this['_adapter'])throw new _0x2bc211('track-changes-adapter-already-set',this);this['_adapter']=_0x5e7019;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x198d26=!0x1,toJSON:_0x46f6db=!0x1}={}){const _0x116963=[];for(const _0x1ce731 of this['_suggestions']['values']())_0x198d26&&!_0x1ce731['isInContent']||_0x116963['push'](_0x1ce731);return _0x46f6db?_0x116963['map'](_0x961a08=>_0x961a08['toJSON']()):_0x116963;}['getSuggestion'](_0x3e67d8){const _0x3b6012=this['_suggestions']['get'](_0x3e67d8);if(!_0x3b6012)throw new _0x2bc211('track-changes-suggestion-not-found',this);return _0x3b6012;}['hasSuggestion'](_0x5116e2){return this['_suggestions']['has'](_0x5116e2);}['addSuggestionData'](_0x18c77f){const {authorId:_0x53d2ac,id:_0x16cf43,originalSuggestionId:_0x5302c7,attributes:_0x107a5e}=_0x18c77f,[_0x4aa2ee,_0xf3a5a1]=_0x18c77f['type']['split'](':'),_0x2cacb7=this['_suggestions']['get'](_0x16cf43)||this['_createSuggestion'](_0x4aa2ee,_0xf3a5a1,_0x16cf43,_0x53d2ac,_0x107a5e,_0x5302c7);if(this['_addThreadToSuggestion'](_0x2cacb7),this['_checkSuggestionCorrectness'](_0x2cacb7,_0x4aa2ee,_0xf3a5a1||null,_0x53d2ac),_0x2cacb7['createdAt']=_0x18c77f['createdAt'],_0x2cacb7['_isDataLoaded']=!0x0,_0x107a5e&&_0x107a5e['@external']){const _0x3fcd18=_0x107a5e['@external'],_0x41df39=this['_getExternalAuthor'](_0x3fcd18['authorName']);_0x2cacb7['authoredAt']=_0x3fcd18['createdAt'],_0x2cacb7['author']=_0x41df39,_0x2cacb7['isExternal']=!0x0;}else _0x2cacb7['authoredAt']=_0x18c77f['createdAt'];switch(_0x18c77f['data']&&(_0x2cacb7['data']=_0x18c77f['data']),_0x18c77f['attributes']&&(_0x2cacb7['attributes']=_0x18c77f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2cacb7['_saved']=!0x0),this['_suggestionState']['get'](_0x2cacb7)){case'notReady':this['_suggestionState']['set'](_0x2cacb7,'dataReady');break;case'markerReady':_0x2cacb7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2cacb7])),this['_refreshSuggestionsChain'](new Set([_0x2cacb7])),this['_suggestionState']['set'](_0x2cacb7,'ready'),this['fire']('suggestionLoaded',_0x2cacb7)):this['_suggestionState']['set'](_0x2cacb7,'removed');}return _0x2cacb7;}['acceptSuggestion'](_0x2d6396){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x9c8296 of _0x2d6396['getAllAdjacentSuggestions']())_0x9c8296['accept']();});});}['discardSuggestion'](_0x363a73){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3de650 of _0x363a73['getAllAdjacentSuggestions']())_0x3de650['discard']();});});}['enableCommand'](_0x554ad8,_0x2bb103){const _0x223b6f=this['editor']['commands']['get'](_0x554ad8);if(!_0x223b6f)throw new _0x2bc211('track-changes-command-not-found',this,{'commandName':_0x554ad8});if(this['_enabledCommands']['has'](_0x223b6f))throw new _0x2bc211('track-changes-enable-command-twice',this,{'commandName':_0x554ad8});this['_enabledCommands']['add'](_0x223b6f),_0x2bb103&&_0x223b6f['on']('execute',(_0x34bc71,_0x4a77ee)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4a77ee['length']>0x0&&_0x4a77ee[_0x4a77ee['length']-0x1]&&_0x4a77ee[_0x4a77ee['length']-0x1]['forceDefaultExecution']?_0x4a77ee['pop']():(_0x34bc71['return']=_0x2bb103((..._0x53ace6)=>_0x223b6f['execute'](..._0x53ace6,{'forceDefaultExecution':!0x0}),..._0x4a77ee),_0x34bc71['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x123fb4){let _0xa6fb07,_0x66574b;const _0xc33f62=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xa6fb07=_0x123fb4();}catch(_0x50f23d){_0x66574b=_0x50f23d;}return _0xc33f62||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x66574b&&_0x2bc211['rethrowUnexpectedError'](_0x66574b,this),_0xa6fb07;}['markInsertion'](_0x3f984f,_0x10acc5=null,_0x25a45e={}){if(_0x3f984f['isCollapsed'])return null;const _0x1da037=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x25a45e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5004f0,meta:_0xd4098b}of this['_findSuggestions'](_0x3f984f,'insertion'))if(_0xd4098b['isOwn']){if(!_0xd4098b['isNextTo']){if(_0xd4098b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x5004f0,_0x25a45e))continue;return _0x5004f0;}if(Wt(_0x5004f0,_0x25a45e))return _0x5004f0;this['_breakSuggestionMarker'](_0x5004f0,_0x3f984f['start'],_0x3f984f['end']);break;}if(_0x10acc5==_0x5004f0['subType']&&Wt(_0x5004f0,_0x25a45e)){const _0x389255=_0x5004f0['getFirstRange']();return _0x389255['start']['isEqual'](_0x3f984f['end'])?this['_setSuggestionRange'](_0x5004f0,this['_model']['createRange'](_0x3f984f['start'],_0x389255['end'])):this['_setSuggestionRange'](_0x5004f0,this['_model']['createRange'](_0x389255['start'],_0x3f984f['end'])),_0x5004f0;}}const _0x38006=_0x165ef7(),_0x1be462=_0x1da037['id'],_0x3868c5=_0x10acc5?'insertion:'+_0x10acc5:'insertion',_0x2c498e=this['_setSuggestionData']({'id':_0x38006,'type':_0x3868c5,'createdAt':new Date(),'authorId':_0x1be462,'attributes':_0x25a45e});return this['_addSuggestionMarker'](_0x3868c5,_0x38006,_0x1be462,_0x3f984f),_0x2c498e;}['markMultiRangeInsertion'](_0x519df5,_0x237b98='multi',_0x13ec80={}){const _0x2841f4=this['editor']['plugins']['get']('Users')['me'],_0x217db7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x237b98,'join');this['_trackingSessionId']&&(_0x13ec80['trackingSessionId']=this['_trackingSessionId']);for(const _0xf0a349 of this['getSuggestions']())if(_0xf0a349['author']['id']==_0x2841f4['id']&&'insertion'==_0xf0a349['type']&&_0xf0a349['subType']==_0x237b98&&Wt(_0xf0a349,_0x13ec80)&&(_0x217db7(_0xf0a349['getRanges'](),_0x519df5)||_0x217db7(_0x519df5,_0xf0a349['getRanges']()))){for(const _0x52fb1b of _0x519df5)_0xf0a349['addRange'](_0x52fb1b);return _0xf0a349;}for(const {suggestion:_0x2d6132,meta:_0x19c2bb}of this['_findSuggestions'](_0x519df5,'insertion')){if(!_0x19c2bb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x19c2bb['containsRangeInObject'])continue;if(!Wt(_0x2d6132,_0x13ec80))continue;let _0x1e7f7f=!0x0;for(const _0x1edc33 of _0x2d6132['getRanges']())for(const _0xb33c00 of _0x519df5)if(!_0x1edc33['containsRange'](_0xb33c00)){_0x1e7f7f=!0x1;break;}if(_0x1e7f7f)return _0x2d6132;}const _0x441ac2=_0x165ef7(),_0x2f64ec=_0x2841f4['id'],_0x5a222d='insertion:'+_0x237b98,_0x2961e2=this['_setSuggestionData']({'id':_0x441ac2,'type':_0x5a222d,'createdAt':new Date(),'authorId':_0x2f64ec,'attributes':_0x13ec80});for(const _0x1bb45d of _0x519df5)this['_addSuggestionMarker'](_0x5a222d,_0x441ac2,_0x2f64ec,_0x1bb45d,x['getMultiRangeId']());return _0x2961e2;}['markInlineFormat'](_0x273ad6,_0x31c58f,_0x236688=null,_0x34c6db={}){if(_0x236688=_0x236688||Lt(_0x31c58f),_0x273ad6['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x34c6db['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2333cd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x236688,'accept');return this['forceDefaultExecution'](()=>_0x2333cd([_0x273ad6],_0x31c58f,_0x34c6db)),null;}const _0x2b0efa=this['editor']['plugins']['get']('Users')['me'],_0x5c01b2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3fb4f9,meta:_0x2f0767}of this['_findSuggestions'](_0x273ad6,'insertion'))_0x2f0767['isOwn']&&!_0x2f0767['isInsideObject']&&_0x5c01b2['push'](..._0x3fb4f9['getRanges']());}const _0x4e493a=function(_0x369c7d,_0x214ded){const _0x11c919=[];for(const _0x551403 of _0x214ded){const _0x56aedb=_0x369c7d['getIntersection'](_0x551403);_0x56aedb&&_0x11c919['push'](_0x56aedb);}return _0x11c919;}(_0x273ad6,_0x5c01b2),_0x490f5a=function(_0x345832,_0x2a9d72){const _0x2c0464=[_0x345832];for(const _0x4f7569 of _0x2a9d72){let _0xbf1068=0x0;for(;_0xbf1068<_0x2c0464['length'];){const _0x114cad=_0x2c0464[_0xbf1068]['getDifference'](_0x4f7569);_0x2c0464['splice'](_0xbf1068,0x1,..._0x114cad),_0xbf1068+=_0x114cad['length'];}}return _0x2c0464;}(_0x273ad6,_0x5c01b2);_0x4e493a['length']&&this['_model']['change'](()=>{for(const _0x407134 of _0x4e493a){const _0x5ac8ee=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x236688,'accept');this['forceDefaultExecution'](()=>_0x5ac8ee([_0x407134],_0x31c58f,_0x34c6db));}});for(const _0x508751 of _0x490f5a){let _0x370727=null,_0x22253b=_0x508751['start'],_0x957c72=_0x508751['end'];for(const {suggestion:_0x370dcb,meta:_0x1ecb15}of this['_findSuggestions'](_0x508751,'formatInline')){if(!_0x1ecb15['isOwn'])continue;if(_0x370dcb['subType']!=_0x236688)continue;if(!Wt(_0x370dcb,_0x34c6db))continue;const _0x280400=_0x370dcb['getFirstRange']();if(_0x280400['containsRange'](_0x508751,!0x0))return null;_0x22253b=_0x22253b['isBefore'](_0x280400['start'])?_0x22253b:_0x280400['start'],_0x957c72=_0x957c72['isAfter'](_0x280400['end'])?_0x957c72:_0x280400['end'],_0x370727?_0x280400['start']['isBefore'](_0x370727['getFirstRange']()['start'])?(_0x370727['removeMarkers'](),_0x370727=_0x370dcb):_0x370dcb['removeMarkers']():_0x370727=_0x370dcb;}const _0x2832af=this['_model']['createRange'](_0x22253b,_0x957c72);if(_0x370727)this['_setSuggestionRange'](_0x370727,_0x2832af);else{const _0x3a0236=_0x165ef7(),_0x606ba9=_0x2b0efa['id'];this['_setSuggestionData']({'id':_0x3a0236,'type':'formatInline:'+_0x236688,'data':_0x31c58f,'createdAt':new Date(),'authorId':_0x606ba9,'attributes':_0x34c6db}),this['_addSuggestionMarker']('formatInline:'+_0x236688,_0x3a0236,_0x606ba9,_0x2832af);}}return null;}['markBlockFormat'](_0x1f9957,_0x3d6572,_0x33bfa9=[],_0x2b97b0=null,_0x533fed={}){_0x3d6572['formatGroupId']||(_0x3d6572['formatGroupId']=_0x3d6572['commandName']),_0x3d6572['multipleBlocks']=_0x1f9957['is']('range'),_0x2b97b0=_0x2b97b0||Lt(_0x3d6572);const _0x40db74=_0x33bfa9['map'](_0x4fb5b0=>Ht(_0x4fb5b0,this['_model'])),_0x53fcfb=_0x1f9957['is']('range')?_0x1f9957:Ht(_0x1f9957,this['_model']);if(this['_trackingSessionId']&&(_0x533fed['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x6987a0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b97b0,'accept');return this['forceDefaultExecution'](()=>_0x6987a0([_0x53fcfb],_0x3d6572,_0x533fed)),null;}_0x40db74['push'](_0x53fcfb);let _0x73f8d3=!0x0;for(const _0x429a70 of _0x40db74)if(!this['_rangeIsInLocalUserInsertion'](_0x429a70)){_0x73f8d3=!0x1;break;}if(_0x73f8d3&&'always'!==this['_trackFormatChanges']){const _0x2c20fc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b97b0,'accept');return this['forceDefaultExecution'](()=>_0x2c20fc([_0x53fcfb],_0x3d6572,_0x533fed)),null;}let _0x19c037=null,_0x4671c8=_0x53fcfb['start'],_0x23f5d5=_0x53fcfb['end'];for(const {suggestion:_0xefda7b,meta:_0xbe2f96}of this['_findSuggestions'](_0x53fcfb,'formatBlock')){if(!_0xbe2f96['isOwn'])continue;if(_0xbe2f96['isNextTo']||_0xbe2f96['containsRangeInObject']||_0xbe2f96['isInsideObject'])continue;if(_0xefda7b['data']['formatGroupId']!=_0x3d6572['formatGroupId'])continue;if(!Wt(_0xefda7b,_0x533fed))continue;const _0x3a2974=_0xefda7b['getFirstRange']();if(_0xefda7b['subType']==_0x2b97b0){if(_0x3a2974['containsRange'](_0x53fcfb,!0x0))return null;_0x4671c8=_0x4671c8['isBefore'](_0x3a2974['start'])?_0x4671c8:_0x3a2974['start'],_0x23f5d5=_0x23f5d5['isAfter'](_0x3a2974['end'])?_0x23f5d5:_0x3a2974['end'],_0x19c037?_0x3a2974['start']['isBefore'](_0x19c037['getFirstRange']()['start'])?(_0x19c037['removeMarkers'](),_0x19c037=_0xefda7b):_0xefda7b['removeMarkers']():_0x19c037=_0xefda7b;}else{const _0x2ddce9=_0x53fcfb['getIntersection'](_0x3a2974);this['_cutOutSuggestionMarker'](_0xefda7b,_0x2ddce9);}}const _0x2398ad=this['editor']['plugins']['get']('Users')['me'],_0x2718e8=_0x165ef7(),_0x436189=_0x2398ad['id'];if(_0x19c037)return this['_setSuggestionRange'](_0x19c037,this['_model']['createRange'](_0x4671c8,_0x23f5d5)),_0x19c037;{const _0x57d43e=this['_setSuggestionData']({'id':_0x2718e8,'type':'formatBlock:'+_0x2b97b0,'data':_0x3d6572,'createdAt':new Date(),'authorId':_0x436189,'attributes':_0x533fed});return this['_addSuggestionMarker']('formatBlock:'+_0x2b97b0,_0x2718e8,_0x436189,this['_model']['createRange'](_0x4671c8,_0x23f5d5)),_0x57d43e;}}['markMultiRangeBlockFormat'](_0x41c12c,_0xab2bc7,_0x333ef2=[],_0x4fe909=null,_0x52f41c={}){_0xab2bc7['formatGroupId']||(_0xab2bc7['formatGroupId']=_0xab2bc7['commandName']);const _0x3e494f=_0x41c12c[0x0];_0xab2bc7['multipleBlocks']=_0x3e494f['is']('range'),_0x4fe909=_0x4fe909||Lt(_0xab2bc7);const _0x2f9647=_0x333ef2['map'](_0x2d7719=>Ht(_0x2d7719,this['_model'])),_0x53c82a=_0x3e494f['is']('range')?_0x41c12c:_0x41c12c['map'](_0x4f4a8b=>Ht(_0x4f4a8b,this['_model']));if(this['_trackingSessionId']&&(_0x52f41c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35ac2d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fe909,'accept');return this['forceDefaultExecution'](()=>_0x35ac2d(_0x53c82a,_0xab2bc7,_0x52f41c)),null;}_0x2f9647['push'](..._0x53c82a);let _0x34fdf1=!0x0;for(const _0x32e562 of _0x2f9647)if(!this['_rangeIsInLocalUserInsertion'](_0x32e562)){_0x34fdf1=!0x1;break;}if(_0x34fdf1&&'always'!==this['_trackFormatChanges']){const _0x2f39b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fe909,'accept');return this['forceDefaultExecution'](()=>_0x2f39b8(_0x53c82a,_0xab2bc7,_0x52f41c)),null;}const _0x555ed8=this['editor']['plugins']['get']('Users')['me'];for(const _0xed8f of this['getSuggestions']()){if(_0xed8f['author']['id']!=_0x555ed8['id'])continue;if('formatBlock'!=_0xed8f['type']||_0xed8f['data']['formatGroupId']!=_0xab2bc7['formatGroupId'])continue;if(!Wt(_0xed8f,_0x52f41c))continue;const _0x3250d5=_0xed8f['subType']==_0x4fe909;for(let _0x523c50=0x0;_0x523c50<_0x53c82a['length'];_0x523c50++){const _0x18cb92=_0x53c82a[_0x523c50];for(const _0x17c5c2 of _0xed8f['getMarkers']()){const _0x1345d3=_0x17c5c2['getRange']();if(_0x18cb92['isEqual'](_0x1345d3)){_0x3250d5?(_0x53c82a['splice'](_0x523c50,0x1),_0x523c50--):_0xed8f['removeMarker'](_0x17c5c2['name']);break;}}}}if(0x0==_0x53c82a['length'])return null;const _0x44ad10=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fe909,'join');for(const _0x47b2ec of this['getSuggestions']())if(_0x47b2ec['author']['id']==_0x555ed8['id']&&'formatBlock'==_0x47b2ec['type']&&_0x47b2ec['data']['formatGroupId']==_0xab2bc7['formatGroupId']&&_0x47b2ec['subType']==_0x4fe909&&Wt(_0x47b2ec,_0x52f41c)&&(_0x44ad10(_0x47b2ec['getRanges'](),_0x53c82a)||_0x44ad10(_0x53c82a,_0x47b2ec['getRanges']()))){for(const _0x529daf of _0x53c82a)_0x47b2ec['addRange'](_0x529daf);return _0x47b2ec;}const _0x382e6c=_0x165ef7(),_0x704aa9=_0x555ed8['id'],_0x10d9c2='formatBlock:'+_0x4fe909,_0x2421c4=this['_setSuggestionData']({'id':_0x382e6c,'type':_0x10d9c2,'data':_0xab2bc7,'createdAt':new Date(),'authorId':_0x704aa9,'attributes':_0x52f41c});for(const _0x2a815e of _0x53c82a)this['_addSuggestionMarker'](_0x10d9c2,_0x382e6c,_0x704aa9,_0x2a815e,x['getMultiRangeId']());return _0x2421c4;}['markDeletion'](_0x69575a,_0x21755f=null,_0x388e20={}){if(_0x69575a['isCollapsed'])return null;const _0x502a84=this['editor']['plugins']['get']('Users')['me'],_0x2109e8=new _0x246516(_0x69575a['start'],_0x69575a['end']);this['_trackingSessionId']&&(_0x388e20['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x57c409,meta:_0x4dd627}of this['_findSuggestions'](_0x2109e8,'insertion'))if(_0x4dd627['isOwn']&&!_0x4dd627['isNextTo']){if(_0x57c409['isMultiRange']){const _0x4163fb=_0x57c409['getRanges']()['filter'](_0x2df587=>'$graveyard'!=_0x2df587['root']['rootName']);_0x4163fb['every'](_0x3b1e37=>_0x2109e8['containsRange'](_0x3b1e37,!0x0))&&_0x57c409['discard']();if(_0x4163fb['some'](_0x1a88c6=>_0x1a88c6['containsRange'](_0x2109e8,!0x0))){const _0x439670=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x21755f,'accept');return this['forceDefaultExecution'](()=>_0x439670([_0x2109e8],null,_0x388e20)),null;}}else{const _0x20bc8e=_0x2109e8['getIntersection'](_0x57c409['getFirstRange']());null!==_0x20bc8e&&_0x57c409['_onDiscard']([_0x20bc8e],null,_0x388e20);}}if(_0x2109e8['detach'](),_0x2109e8['isCollapsed']||'$graveyard'==_0x2109e8['root']['rootName'])return null;let _0xf8bcbc=null,_0x51f81a=_0x2109e8['start'],_0x10b5e0=_0x2109e8['end'];const _0x257cb8=this['_findSuggestions'](_0x2109e8,'deletion');for(const {suggestion:_0x286ae7,meta:_0x43caf9}of _0x257cb8){const _0x4fc79e=this['_model']['createRange'](_0x51f81a,_0x10b5e0);if(_0x43caf9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43caf9['containsRangeInObject']&&!_0x43caf9['isInsideObject'])){if(_0x286ae7['isMultiRange']){if(!Wt(_0x286ae7,_0x388e20))continue;let _0x361eb7=!0x0;for(const _0x22653d of _0x286ae7['getRanges']()){if(_0x22653d['containsRange'](_0x4fc79e,!0x0))return _0x286ae7;_0x4fc79e['containsRange'](_0x22653d)||(_0x361eb7=!0x1);}_0x361eb7&&_0x286ae7['discard']();}else{const _0x43be74=_0x286ae7['getFirstRange']();if(_0x43be74['containsRange'](_0x4fc79e,!0x0))return _0x286ae7;if(!Wt(_0x286ae7,_0x388e20)){_0x4fc79e['containsRange'](_0x43be74)?_0x286ae7['removeMarkers']():_0x43be74['containsPosition'](_0x51f81a)?_0x51f81a=_0x43be74['end']:_0x43be74['containsPosition'](_0x10b5e0)&&(_0x10b5e0=_0x43be74['start']);continue;}_0x51f81a=_0x51f81a['isBefore'](_0x43be74['start'])?_0x51f81a:_0x43be74['start'],_0x10b5e0=_0x10b5e0['isAfter'](_0x43be74['end'])?_0x10b5e0:_0x43be74['end'],_0x388e20=Object['assign']({},_0x286ae7['attributes']),_0xf8bcbc?_0x43be74['start']['isBefore'](_0xf8bcbc['getFirstRange']()['start'])?(_0xf8bcbc['removeMarkers'](),_0xf8bcbc=_0x286ae7):_0x286ae7['removeMarkers']():_0xf8bcbc=_0x286ae7;}}}if(_0xf8bcbc)return this['_setSuggestionRange'](_0xf8bcbc,this['_model']['createRange'](_0x51f81a,_0x10b5e0)),_0xf8bcbc;{const _0x2d4854=_0x165ef7(),_0x28ecde=this['_model']['createRange'](_0x51f81a,_0x10b5e0),_0x1b03bc=_0x502a84['id'],_0x45641c=_0x21755f?'deletion:'+_0x21755f:'deletion',_0x4c8314=this['_setSuggestionData']({'id':_0x2d4854,'type':_0x45641c,'createdAt':new Date(),'authorId':_0x1b03bc,'attributes':_0x388e20});return this['_addSuggestionMarker'](_0x45641c,_0x2d4854,_0x1b03bc,_0x28ecde),_0x4c8314;}}['markMultiRangeDeletion'](_0x1847cc,_0x39014e='multi',_0x2f65f8={}){const _0x5db0e8=this['editor']['plugins']['get']('Users')['me'],_0x39ee53=_0x1847cc['map'](_0x4a0458=>new _0x246516(_0x4a0458['start'],_0x4a0458['end'])),_0x555bbe=new Set();this['_trackingSessionId']&&(_0x2f65f8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x455bdf,meta:_0x8542ed}of this['_findSuggestions'](_0x39ee53,'insertion'))_0x8542ed['isOwn']&&!_0x8542ed['isNextTo']&&_0x555bbe['add'](_0x455bdf);for(const _0x555781 of _0x555bbe)if(_0x555781['isMultiRange']){const _0x168526=_0x555781['getRanges']();(!_0x555781['attributes']||!_0x555781['attributes']['skipNestingCheck'])&&(_0x168526['every'](_0x3910af=>_0x39ee53['some'](_0x2b2315=>_0x2b2315['containsRange'](_0x3910af,!0x0)))&&_0x555781['discard']());if(_0x39ee53['every'](_0x1d76d5=>_0x168526['some'](_0x1f7d30=>_0x1f7d30['containsRange'](_0x1d76d5,!0x0)))){const _0x2895fd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39014e,'accept');return this['forceDefaultExecution'](()=>_0x2895fd(_0x1847cc,null,_0x2f65f8)),null;}}else{const _0x374bf0=_0x555781['getFirstRange']();_0x39ee53['some'](_0x18bbae=>_0x18bbae['containsRange'](_0x374bf0,!0x0))&&_0x555781['discard']();if(_0x39ee53['every'](_0x5bf008=>_0x374bf0['containsRange'](_0x5bf008,!0x0))){const _0x303651=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39014e,'accept');return this['forceDefaultExecution'](()=>_0x303651(_0x39ee53,null,_0x2f65f8)),null;}}const _0x2e3888=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39014e,'join');let _0x260c52=null;for(const _0x44fa7a of this['getSuggestions']())if(_0x44fa7a['author']['id']==_0x5db0e8['id']&&_0x44fa7a['isInContent']&&'deletion'==_0x44fa7a['type']&&_0x44fa7a['subType']==_0x39014e&&Wt(_0x44fa7a,_0x2f65f8)&&(_0x2e3888(_0x44fa7a['getRanges'](),_0x39ee53)||_0x2e3888(_0x39ee53,_0x44fa7a['getRanges']()))){if(_0x260c52){if(_0x44fa7a['commentThread']&&_0x44fa7a['commentThread']['length'])continue;for(const _0x16dae3 of _0x44fa7a['getRanges']())_0x260c52['isIntersectingWithRange'](_0x16dae3)||_0x260c52['addRange'](_0x16dae3);_0x44fa7a['removeMarkers']();}else{_0x260c52=_0x44fa7a;for(const _0x433fd0 of _0x39ee53)_0x44fa7a['isIntersectingWithRange'](_0x433fd0)||_0x44fa7a['addRange'](_0x433fd0);}}if(_0x260c52)return _0x260c52;_0x555bbe['clear']();for(const {suggestion:_0x2c7d24,meta:_0x3e9743}of this['_findSuggestions'](_0x39ee53,'deletion'))_0x3e9743['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3e9743['containsRangeInObject']&&!_0x3e9743['isInsideObject'])&&Wt(_0x2c7d24,_0x2f65f8)&&_0x555bbe['add'](_0x2c7d24);for(const _0x41385a of _0x555bbe){const _0x2c4a45=_0x41385a['getRanges']();if(!_0x2f65f8||!_0x2f65f8['skipNestingCheck']){if(_0x39ee53['every'](_0x357cd=>_0x2c4a45['some'](_0x1abbbd=>_0x1abbbd['containsRange'](_0x357cd,!0x0))))return _0x41385a;}(!_0x41385a['attributes']||!_0x41385a['attributes']['skipNestingCheck'])&&(_0x2c4a45['every'](_0x4657f3=>_0x39ee53['some'](_0x2609a0=>_0x2609a0['containsRange'](_0x4657f3,!0x0)))&&_0x41385a['discard']());}const _0x134679=_0x165ef7(),_0x5f534f=_0x5db0e8['id'],_0x431a11='deletion:'+_0x39014e,_0x5429f2=this['_setSuggestionData']({'id':_0x134679,'type':_0x431a11,'createdAt':new Date(),'authorId':_0x5f534f,'attributes':_0x2f65f8});for(const _0x325c1e of _0x39ee53)_0x325c1e['detach'](),_0x325c1e['isCollapsed']||'$graveyard'==_0x325c1e['root']['rootName']||this['_addSuggestionMarker'](_0x431a11,_0x134679,_0x5f534f,_0x325c1e,x['getMultiRangeId']());return _0x5429f2;}['markAttributeChange'](_0x23e098,_0x5771cb,_0x4db682,_0xf4a091,_0x4f0e0c){if(_0x23e098['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2aa222=this['editor']['plugins']['get']('Users')['me']['id'],_0x9da36d=Array['from'](this['_suggestions']['values']())['filter'](_0x3a862f=>'attribute'==_0x3a862f['type']&&_0x3a862f['data']['key']==_0x5771cb&&_0x3a862f['isIntersectingWithRange'](_0x23e098));if(this['_trackingSessionId']&&(_0x4f0e0c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2a88c4=this['_findSuggestions'](_0x23e098,'insertion')['filter'](({meta:_0x55e456})=>_0x55e456['isOwn']&&!_0x55e456['isInsideObject']&&!_0x55e456['isNextTo'])['map'](({suggestion:_0x10ce37})=>_0x10ce37);_0x9da36d['unshift'](..._0x2a88c4);}const _0x3ed58a=new Map([[_0x23e098,_0x4db682]]);for(const _0x4c8a80 of _0x9da36d){const _0x138698='attribute'==_0x4c8a80['type']?_0x4c8a80['data']['oldValue']:void 0x0,_0x3ac552=_0x4c8a80['getFirstRange'](),_0x2c117d=Array['from'](_0x3ed58a['keys']())['find'](_0x54d893=>_0x54d893['isIntersecting'](_0x3ac552));if(!_0x2c117d)continue;const _0x16834b=_0x2c117d['getDifference'](_0x3ac552);this['_isBlockAttribute'](_0x5771cb)&&'insertion'==_0x4c8a80['type']&&0x0!=_0x16834b['length']||(_0x3ed58a['delete'](_0x2c117d),_0x16834b['forEach'](_0x526704=>{_0x3ed58a['set'](_0x526704,_0x4db682);}),'insertion'!=_0x4c8a80['type']&&_0x138698!=_0xf4a091&&_0x3ed58a['set'](_0x2c117d['getIntersection'](_0x3ac552),_0x138698));}const _0xe67e71=[];for(const [_0x4e075a,_0x35b079]of _0x3ed58a){const _0x5dd227=_0x165ef7(),_0xea9d69={'key':_0x5771cb,'oldValue':_0x35b079,'newValue':_0xf4a091};_0x5771cb['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':_0x5771cb});const _0x1a490c=('attribute:'+(_0x5771cb+'|'+Lt({'newValue':_0xf4a091})))['substring'](0x0,0x3c),_0x433c19=this['_setSuggestionData']({'id':_0x5dd227,'type':_0x1a490c,'data':_0xea9d69,'createdAt':new Date(),'authorId':_0x2aa222,'attributes':_0x4f0e0c});_0xe67e71['push'](_0x433c19),this['_addSuggestionMarker'](_0x1a490c,_0x5dd227,_0x2aa222,_0x4e075a);}return _0xe67e71;}['enableDefaultAttributesIntegration'](_0x14f2a2){this['enableCommand'](_0x14f2a2,(_0x18b11c,..._0x42a1d5)=>{this['_recordAttributeChanges'](()=>{_0x18b11c(..._0x42a1d5);});});}['registerBlockAttribute'](_0x191c13){this['_blockAttributeKeys']['add'](_0x191c13);}['registerInlineAttribute'](_0x10dda6){this['_inlineAttributeKeys']['add'](_0x10dda6);}['startTrackingSession'](_0x37e430){return this['_trackingSessionId']=void 0x0!==_0x37e430?_0x37e430:_0x165ef7(),this['_trackingSessionId'];}['_getAttributeKey'](_0x291590){return'attribute'==_0x291590['type']?_0x291590['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2859e6,_0xcef5be){const _0x4506be=_0x2859e6['getFirstMarker']();this['_model']['change'](_0x50768b=>{_0x50768b['updateMarker'](_0x4506be,{'range':_0xcef5be});});}['_addThreadToSuggestion'](_0xea31d0){const _0x3a3b1f=_0xea31d0['id'],_0x2d0857=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a3b1f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2d0857,'threadId':_0x3a3b1f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3e6d75=this['_commentsRepository']['getCommentThread'](_0x3a3b1f);_0x3e6d75['unbind']('isRemovable'),_0x3e6d75['isRemovable']=!0x1,_0xea31d0['commentThread']=_0x3e6d75;}['_checkSuggestionCorrectness'](_0x57f67b,_0x27c700,_0x144709,_0x1ccca2){if(_0x57f67b['type']!=_0x27c700||_0x57f67b['subType']!=_0x144709||_0x57f67b['creator']['id']!=_0x1ccca2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2bc211('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2713cf,_0xfa9d29){const _0x189b5c=_0x2713cf['getFirstRange']();if(_0xfa9d29['isEqual'](_0x189b5c))_0x2713cf['removeMarkers']();else{if(_0x189b5c['containsRange'](_0xfa9d29)){const _0x599540=this['_model']['createPositionAt'](_0xfa9d29['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2713cf,this['_model']['createRange'](_0x189b5c['start'],_0x599540));const _0x2ef2e7=_0x165ef7(),_0x57d9e5=_0x2713cf['creator']['id'],_0x304860=_0x2713cf['type']+':'+_0x2713cf['subType'];this['_setSuggestionData']({'id':_0x2ef2e7,'type':_0x304860,'createdAt':new Date(),'authorId':_0x57d9e5,'data':_0x2713cf['data'],'attributes':_0x2713cf['attributes']});const _0x443d0e=this['_model']['createPositionAt'](_0xfa9d29['end']['parent'],'after'),_0x1707f9=this['_model']['createRange'](_0x443d0e,_0x189b5c['end']);this['_addSuggestionMarker'](_0x304860,_0x2ef2e7,_0x57d9e5,_0x1707f9);}else{if(_0x189b5c['containsPosition'](_0xfa9d29['start'])){const _0x22b1fe=this['_model']['createPositionAt'](_0xfa9d29['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2713cf,this['_model']['createRange'](_0x189b5c['start'],_0x22b1fe));}else{const _0x3384c1=this['_model']['createPositionAt'](_0xfa9d29['end']['parent'],'after');this['_setSuggestionRange'](_0x2713cf,this['_model']['createRange'](_0x3384c1,_0x189b5c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13b9e3){for(const {suggestion:_0x2d5ab2,meta:_0x51d746}of this['_findSuggestions'](_0x13b9e3,'insertion')){if(!_0x51d746['isOwn'])continue;const _0x423db4=_0x2d5ab2['getRanges']();for(const _0x494c98 of _0x423db4)if(!_0x13b9e3['getDifference'](_0x494c98)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x546a7e){const _0x2fa2b3=this['editor']['plugins']['get']('Users')['getUser'](_0x546a7e);if(!_0x2fa2b3)throw new _0x2bc211('track-changes-user-not-found',this);return _0x2fa2b3;}['_getExternalAuthor'](_0xaba032){const _0x515aa4=this['editor']['plugins']['get']('Users'),_0x498e69=_0x218c4d('external:'+_0xaba032),_0x56aaea=_0x515aa4['getUser'](_0x498e69);return _0x56aaea||_0x515aa4['addUser']({'id':_0x498e69,'name':_0xaba032});}['_createSuggestion'](_0x4084c3,_0x41a711,_0x2eae1f,_0x1ae058,_0x2c39f4,_0x31c2db){const _0x2ee02b=this['_getAuthorFromId'](_0x1ae058),_0x35d094=this['_suggestionFactory']['buildSuggestion'](_0x4084c3,_0x41a711,_0x2eae1f,_0x2ee02b,_0x2c39f4,_0x143fc8=>{this['_updateSuggestionData'](_0x2eae1f,{'attributes':_0x143fc8});const _0x15391a=this['getSuggestion'](_0x2eae1f);this['_joinWithAdjacentSuggestions'](new Set([_0x15391a])),this['_refreshSuggestionsChain'](new Set([_0x15391a]));},_0x31c2db);return this['listenTo'](_0x35d094,'accept',()=>{this['_updateSuggestionData'](_0x2eae1f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x35d094,'discard',()=>{this['_updateSuggestionData'](_0x2eae1f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2eae1f,_0x35d094),this['_suggestionState']['set'](_0x35d094,'notReady'),_0x35d094;}['_splitMarkerName'](_0x4209f8){const _0x545e65=_0x4209f8['split'](':');return{'group':_0x545e65[0x0],'type':_0x545e65[0x1],'subType':_0x545e65['length']>=0x5?_0x545e65[0x2]:null,'id':_0x545e65['length']<0x5?_0x545e65[0x2]:_0x545e65[0x3],'authorId':_0x545e65['length']<0x5?_0x545e65[0x3]:_0x545e65[0x4],'markerCount':0x6==_0x545e65['length']?_0x545e65[0x5]:null};}['_breakSuggestionMarker'](_0x418706,_0x27c19f,_0x4f0419){const _0x2319f0=_0x418706['getFirstRange'](),_0x43c170=_0x2319f0['start'],_0x4b5d76=_0x2319f0['end'];this['_setSuggestionRange'](_0x418706,this['_model']['createRange'](_0x43c170,_0x27c19f));const _0x5892df=_0x165ef7(),_0x1e5db0=_0x418706['creator']['id'],_0x2d7220=_0x418706['type']+(_0x418706['subType']?':'+_0x418706['subType']:'');this['_setSuggestionData']({'id':_0x5892df,'type':_0x2d7220,'createdAt':new Date(),'authorId':_0x1e5db0,'originalSuggestionId':_0x418706['_originalSuggestionId']||_0x418706['id'],'attributes':_0x418706['attributes'],'data':_0x418706['data']});const _0x4c9745=this['_getAttributeKey'](_0x418706);('formatBlock'==_0x418706['type']||_0x4c9745&&this['_isBlockAttribute'](_0x4c9745))&&(_0x4f0419=this['_model']['createPositionBefore'](_0x4f0419['parent'])),this['_addSuggestionMarker'](_0x2d7220,_0x5892df,_0x1e5db0,this['_model']['createRange'](_0x4f0419,_0x4b5d76));}['_findSuggestions'](_0x334c72,_0x227c2c=null){const _0x3b911a=[],_0x1febeb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x334c72)||(_0x334c72=[_0x334c72]);for(const _0x539253 of this['getSuggestions']()){if(!_0x539253['isInContent'])continue;if(_0x227c2c&&_0x539253['type']!=_0x227c2c)continue;let _0x1f42ae=!0x1;for(const _0x2fcacb of _0x539253['getRanges']()){for(const _0x1d4c69 of _0x334c72){const _0x52a2f5=_0x1d4c69['start']['isEqual'](_0x2fcacb['end'])||_0x1d4c69['end']['isEqual'](_0x2fcacb['start']);if(_0x52a2f5||_0x1d4c69['getIntersection'](_0x2fcacb)){const _0x47ce83=_0x1d4c69['containsRange'](_0x2fcacb)&&Ft(this['_model']['schema'],_0x2fcacb['start'],_0x1d4c69),_0x429f98=_0x2fcacb['containsRange'](_0x1d4c69)&&Ft(this['_model']['schema'],_0x1d4c69['start'],_0x2fcacb);_0x3b911a['push']({'suggestion':_0x539253,'meta':{'isOwn':_0x1febeb==_0x539253['author'],'isNextTo':_0x52a2f5,'isInsideObject':_0x47ce83,'containsRangeInObject':_0x429f98}}),_0x1f42ae=!0x0;break;}}if(_0x1f42ae)break;}}return _0x3b911a;}['_addSuggestionMarker'](_0x3c1965,_0x18563b,_0x285c42,_0x13552a,_0x2bf91e){this['_model']['change'](_0x2b16d1=>{let _0x19e845='suggestion:'+_0x3c1965+':'+_0x18563b+':'+_0x285c42;_0x2bf91e&&(_0x19e845=_0x19e845+':'+_0x2bf91e),_0x2b16d1['addMarker'](_0x19e845,{'range':_0x13552a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3b5c4c){const _0x2fa57d=_0x3b5c4c['previous'],_0x92d8b0=_0x3b5c4c['next'];_0x3b5c4c['previous']=null,_0x3b5c4c['next']=null,null!=_0x2fa57d&&_0x2fa57d['next']==_0x3b5c4c&&(_0x2fa57d['next']=_0x92d8b0),null!=_0x92d8b0&&_0x92d8b0['previous']==_0x3b5c4c&&(_0x92d8b0['previous']=_0x2fa57d),'ready'==this['_suggestionState']['get'](_0x3b5c4c)&&(this['_suggestionState']['set'](_0x3b5c4c,'removed'),this['fire']('suggestionUnloaded',_0x3b5c4c,_0x2fa57d,_0x92d8b0));}['_setSuggestionData'](_0x5a36cc){const _0x24e3d4=_0x5a36cc['id'],_0x73baf3=this['addSuggestionData'](_0x5a36cc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x539dbb=this['editor']['plugins']['get']('PendingActions'),_0x29cf13=_0x73baf3['hasComments'],_0x4e34ee=_0x73baf3['subType']?_0x73baf3['type']+':'+_0x73baf3['subType']:_0x73baf3['type'],_0x40872b=this['editor']['locale'],_0x510f9b=_0x539dbb['add'](o(_0x40872b,'PENDING_ACTION_SUGGESTION')),_0x4db904={'id':_0x24e3d4,'type':_0x4e34ee,'hasComments':_0x29cf13,'data':_0x5a36cc['data']||null,'originalSuggestionId':_0x5a36cc['originalSuggestionId']||null,'attributes':_0x73baf3['attributes']};this['_adapter']['addSuggestion'](_0x4db904)['then'](_0x1e7e7f=>{_0x73baf3['_saved']=!0x0,_0x539dbb['remove'](_0x510f9b),_0x1e7e7f&&_0x1e7e7f['createdAt']&&(this['_suggestions']['get'](_0x24e3d4)['createdAt']=_0x1e7e7f['createdAt']);})['catch'](_0x33d9ec=>{throw _0x4add95('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x73baf3['discard']();}),_0x73baf3['stopListening'](),this['_suggestions']['delete'](_0x73baf3['id']),this['_suggestionState']['delete'](_0x73baf3),_0x33d9ec;});}return _0x73baf3;}['_isBlockAttribute'](_0x36cdfe){return this['_blockAttributeKeys']['has'](_0x36cdfe);}['_updateSuggestionData'](_0x2db625,_0x29078c){const _0x447d6c=this['editor']['plugins']['get']('PendingActions'),_0x2c0665=this['getSuggestion'](_0x2db625);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2c0665['_saved']){const _0x3f42fd=_0x447d6c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2db625,_0x29078c)['then'](()=>{_0x447d6c['remove'](_0x3f42fd);});}else _0x2c0665['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2db625,_0x29078c);});}}['_getSuggestionData'](_0xc09874){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2bc211('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xc09874);}['_handleNewSuggestionMarker'](_0x9ff17f){const {id:_0x46c74f,type:_0xfa4fa9,subType:_0x5a751c,authorId:_0x52aaa0}=this['_splitMarkerName'](_0x9ff17f),_0x5d101c=this['_suggestions']['get'](_0x46c74f)||this['_createSuggestion'](_0xfa4fa9,_0x5a751c,_0x46c74f,_0x52aaa0,{});switch(this['_checkSuggestionCorrectness'](_0x5d101c,_0xfa4fa9,_0x5a751c,_0x52aaa0),this['_suggestionState']['get'](_0x5d101c)){case'notReady':this['_getSuggestionData'](_0x46c74f)['then'](_0x7f670b=>{let _0x5b5f1e=Promise['resolve']();_0x7f670b['hasComments']&&(_0x5b5f1e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x46c74f})),_0x5b5f1e['then'](()=>{this['addSuggestionData'](_0x7f670b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5d101c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x46c74f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5d101c,'ready'),this['fire']('suggestionLoaded',_0x5d101c);break;case'ready':this['fire']('suggestionChanged',_0x5d101c);}return _0x5d101c['addMarkerName'](_0x9ff17f),_0x5d101c;}['_refreshSuggestionsChain'](_0x141d48){const _0x570452=Array['from'](_0x141d48),_0x3c6749=_0x570452['filter'](_0x5c27a2=>'attribute'==_0x5c27a2['type']);this['_refreshAttributeSuggestionsChain'](_0x3c6749);const _0x4b6b2c=_0x570452['filter'](_0xe7f539=>!_0xe7f539['isMultiRange']&&'attribute'!=_0xe7f539['type']),_0x441f98=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a05b8=>!_0x1a05b8['isMultiRange']&&'attribute'!=_0x1a05b8['type']),_0x4a298c=_0x441f98['filter'](_0x311452=>!_0x141d48['has'](_0x311452)),_0x1527ca=new Map(_0x441f98['map'](_0xe4ff66=>[_0xe4ff66,this['_suggestionFactory']['getSuggestionCallback'](_0xe4ff66['type'],_0xe4ff66['subType'],'chain')])),_0x20e1b=new Map(_0x441f98['map'](_0x14ee75=>[_0x14ee75,_0x14ee75['getFirstRange']()])),_0x4b5f4b=new Set(),_0x5a31ec=new Set();for(let _0x4e664e=0x0;_0x4e664e<_0x4b6b2c['length'];_0x4e664e++)_0x2ee3e9(_0x4b6b2c[_0x4e664e],_0x4b6b2c,_0x4e664e+0x1);for(let _0x6ffd5=0x0;_0x6ffd5<_0x4b6b2c['length'];_0x6ffd5++)_0x2ee3e9(_0x4b6b2c[_0x6ffd5],_0x4a298c,0x0);const _0x45c2ef=new Set();for(let _0xfbe32e=0x0;_0xfbe32e<_0x4b6b2c['length'];_0xfbe32e++){const _0xed0247=_0x4b6b2c[_0xfbe32e];!_0x5a31ec['has'](_0xed0247)&&_0xed0247['previous']&&(_0x45c2ef['add'](_0xed0247['previous']),_0xed0247['previous']['next']===_0xed0247&&(_0xed0247['previous']['next']=null),_0xed0247['previous']=null),!_0x4b5f4b['has'](_0xed0247)&&_0xed0247['next']&&(_0x45c2ef['add'](_0xed0247['next']),_0xed0247['next']['previous']===_0xed0247&&(_0xed0247['next']['previous']=null),_0xed0247['next']=null);}function _0x2ee3e9(_0x49ac35,_0x1816f8,_0x419b3c){for(let _0x279d05=_0x419b3c;_0x279d05<_0x1816f8['length'];_0x279d05++){const _0x3cde9d=_0x9305f4(_0x49ac35,_0x1816f8[_0x279d05]);_0x3cde9d&&(_0x3cde9d[0x0]['next']=_0x3cde9d[0x1],_0x3cde9d[0x1]['previous']=_0x3cde9d[0x0],_0x4b5f4b['add'](_0x3cde9d[0x0]),_0x5a31ec['add'](_0x3cde9d[0x1]));}}function _0x9305f4(_0x56e90a,_0x1fa9e1){if(_0x56e90a['author']['id']!==_0x1fa9e1['author']['id'])return null;const _0x439808=_0x1527ca['get'](_0x56e90a)(_0x56e90a,_0x1fa9e1,_0x20e1b['get'](_0x56e90a),_0x20e1b['get'](_0x1fa9e1));if(!_0x439808)return null;return _0x1527ca['get'](_0x1fa9e1)(_0x56e90a,_0x1fa9e1,_0x20e1b['get'](_0x56e90a),_0x20e1b['get'](_0x1fa9e1))?_0x439808[0x1]['commentThread']&&_0x439808[0x1]['commentThread']['length']?null:_0x439808:null;}_0x45c2ef['size']&&this['_refreshSuggestionsChain'](_0x45c2ef);}['_refreshAttributeSuggestionsChain'](_0x50781c){if(0x0==_0x50781c['length'])return;const _0x25d09b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cb7d7=>'attribute'==_0x1cb7d7['type']&&_0x1cb7d7['_isDataLoaded']),_0x1a60e3=[],_0x416674=new Map();for(const _0x340ae3 of _0x25d09b){const _0x51b87f=_0x218c4d(_0x340ae3['attributes']);_0x416674['has'](_0x51b87f)||(_0x416674['set'](_0x51b87f,_0x1a60e3['length']),_0x1a60e3['push']([]));const _0x2ff0b9=_0x416674['get'](_0x51b87f);_0x1a60e3[_0x2ff0b9]['push'](_0x340ae3);}!(function(){_0x1a60e3['sort']((_0x2ec85d,_0x3b8f75)=>{const _0x23773f=_0x2ec85d[0x0]['createdAt'],_0x1686d5=_0x3b8f75[0x0]['createdAt'];return _0x23773f==_0x1686d5?_0x2ec85d[0x0]['attributes']['groupId']<_0x3b8f75[0x0]['attributes']['groupId']?-0x1:0x1:_0x23773f<_0x1686d5?-0x1:0x1;});for(const _0x236b2c of _0x1a60e3)_0x236b2c['sort']((_0x3ea84c,_0x1950f2)=>_0x3ea84c['id']<_0x1950f2['id']?-0x1:0x1);}());for(let _0x2eb830=0x0;_0x2eb830<_0x1a60e3['length'];_0x2eb830++){if(0x0==_0x1a60e3[_0x2eb830]['length'])continue;const _0x5d446e=[];for(let _0x5acea7=_0x2eb830+0x1;_0x5acea7<_0x1a60e3['length'];_0x5acea7++)0x0!=_0x1a60e3[_0x5acea7]['length']&&_0xb70995(_0x1a60e3[_0x2eb830],_0x1a60e3[_0x5acea7])&&_0x5d446e['push'](_0x5acea7);for(const _0x5ea3fe of _0x5d446e)_0x1a60e3[_0x2eb830]=_0x1a60e3[_0x2eb830]['concat'](_0x1a60e3[_0x5ea3fe]),_0x1a60e3[_0x5ea3fe]=[];}for(const _0x14de8b of _0x1a60e3)for(let _0x23ab7b=0x0;_0x23ab7b<_0x14de8b['length'];_0x23ab7b++){const _0x3b737d=_0x14de8b[_0x23ab7b+0x1]||null;_0x14de8b[_0x23ab7b]['next']!==_0x3b737d&&(_0x14de8b[_0x23ab7b]['next']=_0x3b737d);}for(const _0x223e18 of _0x1a60e3)for(let _0x1e1231=0x0;_0x1e1231<_0x223e18['length'];_0x1e1231++){const _0x9b94e1=_0x223e18[_0x1e1231-0x1]||null;_0x223e18[_0x1e1231]['previous']!==_0x9b94e1&&(_0x223e18[_0x1e1231]['previous']=_0x9b94e1);}function _0xb70995(_0x53c8f3,_0x5f3cbf){if(_0x53c8f3[0x0]['attributes']['groupId']!==_0x5f3cbf[0x0]['attributes']['groupId']&&_0x53c8f3[0x0]['author']!==_0x5f3cbf[0x0]['author'])return!0x1;if(!function(_0x2cd7b7,_0x4b7e7a){if(!_0x2cd7b7['hasComments']&&!_0x4b7e7a['hasComments'])return!0x0;if(_0x2cd7b7['hasComments']&&_0x4b7e7a['hasComments'])return!0x1;if(_0x2cd7b7['hasComments']&&_0x4b7e7a['createdAt']<_0x2cd7b7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4b7e7a['hasComments']&&_0x2cd7b7['createdAt']<_0x4b7e7a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x53c8f3[0x0],_0x5f3cbf[0x0]))return!0x1;const _0x1cf52b=Ut(_0x53c8f3[0x0]['attributes'],['groupId','trackingSessionId']),_0x10ac24=Ut(_0x5f3cbf[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2863d8(_0x1cf52b,_0x10ac24))return!0x1;if(_0x53c8f3[0x0]['attributes']['groupId']==_0x5f3cbf[0x0]['attributes']['groupId'])return!0x0;if(_0x53c8f3[0x0]['attributes']['trackingSessionId']!==_0x5f3cbf[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x53c8f3['every'](_0x3ec849=>_0x5f3cbf['some'](_0x426615=>_0x3ec849['getFirstRange']()['isEqual'](_0x426615['getFirstRange']())))&&_0x5f3cbf['every'](_0xa5cafe=>_0x53c8f3['some'](_0x20e175=>_0xa5cafe['getFirstRange']()['isEqual'](_0x20e175['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x531149){const _0x23cf81=Array['from'](_0x531149),_0x64c6e3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2b9812=_0x64c6e3['filter'](_0x50f599=>!_0x531149['has'](_0x50f599)),_0x359429=new Map(_0x23cf81['map'](_0x587642=>[_0x587642,this['_suggestionFactory']['getSuggestionCallback'](_0x587642['type'],_0x587642['subType'],'join')])),_0x448259=new Map(_0x64c6e3['map'](_0x1b1c5e=>[_0x1b1c5e,_0x1b1c5e['getRanges']()]));for(let _0x3fd92f=0x0;_0x3fd92f<_0x23cf81['length'];_0x3fd92f++){if(_0x1410ad(this,_0x23cf81[_0x3fd92f],_0x23cf81,_0x3fd92f+0x1))return!0x0;}for(let _0x2f9ef1=0x0;_0x2f9ef1<_0x23cf81['length'];_0x2f9ef1++){if(_0x1410ad(this,_0x23cf81[_0x2f9ef1],_0x2b9812,0x0))return!0x0;}return!0x1;function _0x1410ad(_0xd74579,_0x195f07,_0x307e1d,_0x477d61){for(let _0x5f5dcf=_0x477d61;_0x5f5dcf<_0x307e1d['length'];_0x5f5dcf++){const _0x56628e=_0x307e1d[_0x5f5dcf];if(_0x56628e['type']!==_0x195f07['type']||_0x56628e['author']['id']!==_0x195f07['author']['id']||_0x56628e['subType']!==_0x195f07['subType'])continue;if(!zt(_0x195f07,_0x56628e))continue;if('attribute'==_0x195f07['type']&&_0x195f07['data']['oldValue']!=_0x56628e['data']['oldValue'])continue;if('attribute'==_0x195f07['type']&&_0xd74579['_isBlockAttribute'](_0x195f07['data']['key']))continue;if('formatBlock'==_0x195f07['type']){const _0x33d6a8=_0xd74579['editor']['model'],_0x91c3ab=_0x195f07['getContainedElement']();if(_0x91c3ab&&(_0x33d6a8['schema']['isObject'](_0x91c3ab)||_0x33d6a8['schema']['isLimit'](_0x91c3ab)))continue;}const _0x94aa28=_0x359429['get'](_0x195f07),_0x20ff71=_0x448259['get'](_0x195f07),_0x5bc1b2=_0x448259['get'](_0x56628e),_0x396ab6=_0x195f07['commentThread']&&_0x195f07['commentThread']['length'],_0xcf7670=_0x56628e['commentThread']&&_0x56628e['commentThread']['length'];if(!_0x396ab6&&_0x94aa28(_0x5bc1b2,_0x20ff71))return _0xd74579['_joinSuggestions'](_0x56628e,_0x195f07),_0x448259['delete'](_0x195f07),!0x0;if(!_0xcf7670&&_0x94aa28(_0x20ff71,_0x5bc1b2))return _0xd74579['_joinSuggestions'](_0x195f07,_0x56628e),_0x448259['delete'](_0x56628e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1cc84f,_0x160c5a){if(_0x1cc84f['isMultiRange']){for(const _0x18fcc1 of _0x160c5a['getRanges']())_0x1cc84f['addRange'](_0x18fcc1);}else{const _0x1a4aac=_0x160c5a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1cc84f,this['_model']['createRange'](_0x1cc84f['getFirstRange']()['start'],_0x1a4aac));}_0x160c5a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x57bec7,_0x41b05c,_0x257ab2){const _0x368f15=_0x57bec7['startsWith']('format')||_0x57bec7['startsWith']('attribute')?'FORMATTING':_0x57bec7['toUpperCase']();return o(this['editor']['locale'],_0x41b05c+'_'+_0x368f15+'_SUGGESTION_ANNOUNCEMENT',_0x257ab2);}['_initAriaMarkerChangeAnnouncements'](){const _0x23feca=this['editor'];if(!_0x23feca['ui'])return;const {ariaLiveAnnouncer:_0x1accd3}=_0x23feca['ui'];_0x53b897(this['_model'],({left:_0x21944b,entered:_0x3f0ba2})=>{for(const _0x14bf11 of _0x21944b){const {group:_0x4bc9d7,type:_0x3f932d}=this['_splitMarkerName'](_0x14bf11['name']);if('suggestion'===_0x4bc9d7){_0x1accd3['announce'](this['_getMarkerAnnouncementText'](_0x3f932d,'LEAVE'));break;}}for(const _0x311f6b of _0x3f0ba2){const {group:_0x43bad8,type:_0x547833}=this['_splitMarkerName'](_0x311f6b['name']);if('suggestion'===_0x43bad8){_0x1accd3['announce'](this['_getMarkerAnnouncementText'](_0x547833,'ENTER',_0x3b42e3(_0x332cb9)));break;}}});}['_processAttributeChanges'](_0xf0229b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x21e988=this['editor'],_0x11ef0b=_0x21e988['model']['document']['differ']['getChanges']();if(0x0==_0x11ef0b['length'])return!0x1;const _0x3bc0fb=[],_0x2e3189=_0x11ef0b['filter'](_0x789264=>'attribute'==_0x789264['type']),_0x19d9c8=_0x11ef0b['filter'](_0x555222=>'insert'==_0x555222['type']&&'$text'!=_0x555222['name']),_0x18fa49=_0x11ef0b['filter'](_0xc9196b=>'remove'==_0xc9196b['type']&&'$text'!=_0xc9196b['name']);for(const _0x5be7c8 of _0x2e3189)_0x3bc0fb['push']({'key':_0x5be7c8['attributeKey'],'newValue':_0x5be7c8['attributeNewValue'],'oldValue':_0x5be7c8['attributeOldValue'],'range':Kt(_0x5be7c8['range'],_0x21e988['model'])});for(const _0x1e09d3 of _0x19d9c8){const _0x3f6cdf=_0x18fa49['find'](_0x50958=>_0x50958['position']['isEqual'](_0x1e09d3['position']));_0x3f6cdf&&_0x3bc0fb['push']({'key':m,'newValue':_0x1e09d3['name'],'oldValue':_0x3f6cdf['name'],'range':_0x21e988['model']['createRangeOn'](_0x1e09d3['position']['nodeAfter'])});}return 0x0!=_0x3bc0fb['length']&&this['_reduceExistingSuggestions'](_0xf0229b,_0x3bc0fb);}['_processAttributeSuggestions'](_0x5eda4a){let _0x397f87=!0x1;const _0x205be7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd4957a=>_0xd4957a['data']['newRange']&&_0xd4957a['name']['startsWith']('suggestion:attribute:'));for(const _0x2c01df of _0x205be7){const {subType:_0x19ca77,id:_0x581a3a}=this['_splitMarkerName'](_0x2c01df['name']),_0x318cb5=_0x19ca77['split']('|')[0x0];for(const _0x47b51e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x47b51e['id']!=_0x581a3a&&'attribute'==_0x47b51e['type']&&_0x47b51e['data']&&_0x47b51e['data']['key']==_0x318cb5&&_0x47b51e['getFirstRange']()['isIntersecting'](_0x2c01df['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x47b51e,_0x2c01df['data']['newRange'],_0x5eda4a),_0x397f87=!0x0);}return _0x397f87;}['_recordAttributeChanges'](_0x4540e3){this['_recordAttributeSuggestions']=!0x0,_0x4540e3();}['_isRegisteredAttribute'](_0x146eb1){const _0x583a97=this['_isBlockAttribute'](_0x146eb1),_0x550d23=this['_inlineAttributeKeys']['has'](_0x146eb1);return _0x583a97||_0x550d23;}['_reduceExistingSuggestions'](_0x3d9545,_0x4fc1b7){if(0x0==_0x4fc1b7['length'])return!0x1;let _0x1678aa=!0x1;for(const _0x3d9b13 of _0x4fc1b7){const _0x50f272=this['_findSuggestions'](_0x3d9b13['range'],'attribute')['filter'](_0x358fa4=>!_0x358fa4['meta']['isNextTo'])['map'](_0x5de16f=>_0x5de16f['suggestion']),_0x53637a=_0x218c4d({'newValue':_0x3d9b13['newValue']});_0x50f272['filter'](_0x4de121=>{const [_0x4397dc,_0x247e5e]=_0x4de121['subType']['split']('|');return _0x4397dc==_0x3d9b13['key']&&_0x247e5e!=_0x53637a;})['forEach'](_0x913024=>{this['_reduceSuggestionAttributeRange'](_0x913024,_0x3d9b13['range'],_0x3d9545),_0x1678aa=!0x0;});}return _0x1678aa;}['_reduceSuggestionAttributeRange'](_0x5bead7,_0x5245ce,_0x59b855){const _0x1dc52b=_0x5bead7['getFirstRange']()['getDifference'](_0x5245ce);0x0!==_0x1dc52b['length']?0x1!==_0x1dc52b['length']?this['_breakSuggestionMarker'](_0x5bead7,_0x5245ce['start'],_0x5245ce['end']):this['_setSuggestionRange'](_0x5bead7,_0x1dc52b[0x0]):_0x59b855['removeMarker'](_0x5bead7['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xb2e3d0){this['_editor']=_0xb2e3d0,this['_model']=_0xb2e3d0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3f760d,_0x5d5fcc,_0x1edb16,_0x553179,_0x6d383f,_0x146ced,_0x51432d){return new x(this['_model'],{'type':_0x3f760d,'subType':_0x5d5fcc,'id':_0x1edb16,'originalSuggestionId':_0x51432d,'author':_0x553179,'creator':_0x553179,'attributes':_0x6d383f,'onAttributesChange':_0x146ced,'onAccept':(..._0x291071)=>this['getSuggestionCallback'](_0x3f760d,_0x5d5fcc,'accept')(..._0x291071),'onDiscard':(..._0x562a77)=>this['getSuggestionCallback'](_0x3f760d,_0x5d5fcc,'discard')(..._0x562a77)});}['registerCustomCallback'](_0x533a35,_0x118e7f,_0x28d9c4,_0x3cc9bf){const _0x4ad75f=_0x533a35+':'+_0x118e7f+':'+_0x28d9c4;this['_customCallbacks']['set'](_0x4ad75f,_0x3cc9bf);}['getSuggestionCallback'](_0x6ef2f6,_0x50c222,_0x75ad68){const _0x366163=_0x6ef2f6+':'+_0x50c222+':'+_0x75ad68;return this['_customCallbacks']['get'](_0x366163)||this['_defaultCallbacks']['get'](_0x6ef2f6+':'+_0x75ad68);}['_registerDefaultCallbacks'](){const _0x19bb0f=()=>!0x1,_0xf9cc49=_0x74e144=>{_0x74e144['sort']((_0x385c81,_0x33757c)=>_0x385c81['start']['isBefore'](_0x33757c['start'])?0x1:-0x1),this['_model']['change'](_0x57587d=>{for(const _0x1848df of _0x74e144){let _0x21f112;_0x21f112=_0x1848df['end']['isAtEnd']&&_0x1848df['end']['parent']==_0x1848df['start']['nodeAfter']?_0x57587d['createSelection'](_0x1848df['start']['nodeAfter'],'on'):_0x57587d['createSelection'](_0x1848df),this['_model']['deleteContent'](_0x21f112,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x58657a=(_0x139675,_0x966837)=>{_0x966837&&this['_model']['change'](_0x2c6b1c=>{const {commandName:_0x4e1e95,commandParams:_0x13a758=[]}=_0x966837,_0x4527eb=_0x139675['map'](_0x2e4bef=>(Pt(_0x2e4bef)&&(_0x2e4bef=this['_model']['createRange'](_0x2e4bef['end'])),_0x2e4bef))['filter'](_0x14e93f=>'$graveyard'!==_0x14e93f['root']['rootName']);if(_0x4527eb['length']<0x1)return;const _0x2cbfe4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4ad22c=>_0x246516['fromRange'](_0x4ad22c));_0x2c6b1c['setSelection'](_0x4527eb);for(const _0x2c9b2a of this['_editor']['commands']['commands']())_0x2c9b2a['refresh']();_0x13a758['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4e1e95,..._0x13a758);const _0x197a3a=_0x2cbfe4['filter'](_0x356cde=>'$graveyard'!=_0x356cde['root']['rootName']);_0x197a3a['length']>0x0&&_0x2c6b1c['setSelection'](_0x197a3a);for(const _0x47622d of _0x2cbfe4)_0x47622d['detach']();});},_0x52d5fe=(_0x25af0d,_0x380d6e)=>0x1==_0x25af0d['length']&&0x1==_0x380d6e['length']&&_0x25af0d[0x0]['end']['isEqual'](_0x380d6e[0x0]['start']),_0x4bffb7=(_0x4dfc9a,_0xc8f845,_0x2f7b1c,_0x10dd65)=>qt(_0x4dfc9a,_0xc8f845,_0x2f7b1c,_0x10dd65)?[_0x4dfc9a,_0xc8f845]:qt(_0xc8f845,_0x4dfc9a,_0x10dd65,_0x2f7b1c)?[_0xc8f845,_0x4dfc9a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x19bb0f),this['_defaultCallbacks']['set']('insertion:discard',_0xf9cc49),this['_defaultCallbacks']['set']('insertion:join',_0x52d5fe),this['_defaultCallbacks']['set']('insertion:chain',_0x4bffb7),this['_defaultCallbacks']['set']('deletion:accept',_0xf9cc49),this['_defaultCallbacks']['set']('deletion:discard',_0x19bb0f),this['_defaultCallbacks']['set']('deletion:join',_0x52d5fe),this['_defaultCallbacks']['set']('deletion:chain',_0x4bffb7),this['_defaultCallbacks']['set']('formatInline:accept',_0x58657a),this['_defaultCallbacks']['set']('formatInline:discard',_0x19bb0f),this['_defaultCallbacks']['set']('formatInline:join',_0x52d5fe),this['_defaultCallbacks']['set']('formatInline:chain',_0x19bb0f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x58657a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x19bb0f),this['_defaultCallbacks']['set']('formatBlock:join',_0x52d5fe),this['_defaultCallbacks']['set']('formatBlock:chain',_0x19bb0f),this['_defaultCallbacks']['set']('attribute:accept',_0x19bb0f),this['_defaultCallbacks']['set']('attribute:discard',(_0x34dad5,_0x5cb8e1)=>{if(!_0x5cb8e1)return;const _0x2f7171=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4af47f=>{if(_0x5cb8e1['key']==m)for(const _0x58eed3 of _0x34dad5){const _0x28214a=_0x58eed3['start']['nodeAfter'],_0x36f871=_0x5cb8e1['oldValue'];_0x4af47f['rename'](_0x28214a,_0x36f871);}else{if(_0x2f7171['_isBlockAttribute'](_0x5cb8e1['key'])){for(const _0x4c71c2 of _0x34dad5)void 0x0!==_0x5cb8e1['oldValue']?_0x4af47f['setAttribute'](_0x5cb8e1['key'],_0x5cb8e1['oldValue'],_0x4c71c2['start']['nodeAfter']):_0x4af47f['removeAttribute'](_0x5cb8e1['key'],_0x4c71c2['start']['nodeAfter']);}else{for(const _0x30f0f6 of _0x34dad5)_0x5cb8e1['oldValue']?_0x4af47f['setAttribute'](_0x5cb8e1['key'],_0x5cb8e1['oldValue'],_0x30f0f6):_0x4af47f['removeAttribute'](_0x5cb8e1['key'],_0x30f0f6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52d5fe);}}function Ft(_0x257898,_0x45e6ff,_0x56846c){for(const _0x20a966 of _0x45e6ff['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x20a966['root']==_0x20a966)return!0x1;if(!_0x56846c['containsItem'](_0x20a966))return!0x1;if(_0x257898['isObject'](_0x20a966)||_0x257898['isLimit'](_0x20a966))return!0x0;}return!0x1;}function Pt(_0x3d90aa){return _0x3d90aa['end']['parent']==_0x3d90aa['start']['nodeAfter']&&_0x3d90aa['end']['isAtStart'];}function Gt(_0x4ce13b,_0x2efe77,_0x34b964,_0x240c31){const _0x2dc77b=_0x54f00c=>!_0x54f00c['item']['is']('$textProxy')&&!_0x240c31['isObject'](_0x54f00c['item']),_0xd5aee0=_0x4ce13b['start']['getLastMatchingPosition'](_0x2dc77b),_0x7047f5=_0x4ce13b['end']['getLastMatchingPosition'](_0x2dc77b,{'direction':'backward'});return(!_0x4ce13b['start']['isEqual'](_0xd5aee0)||!_0x4ce13b['end']['isEqual'](_0x7047f5))&&(_0xd5aee0['isBefore'](_0x7047f5)?_0x34b964['updateMarker'](_0x2efe77,{'range':_0x34b964['createRange'](_0xd5aee0,_0x7047f5)}):_0x34b964['removeMarker'](_0x2efe77),!0x0);}function Lt(_0x198016){return _0x218c4d(_0x198016);}function Jt(_0x2fa64a){const _0x3e2a97=_0x2fa64a['start']['nodeAfter'];return _0x3e2a97&&_0x3e2a97['is']('element');}function Kt(_0x524cb6,_0x32e1d1){return null==_0x524cb6['end']['nodeBefore']&&_0x524cb6['end']['parent']==_0x524cb6['start']['nodeAfter']?Ht(_0x524cb6['start']['nodeAfter'],_0x32e1d1):_0x524cb6;}function Ht(_0x574f4a,_0x32ab42){const _0x570313=_0x32ab42['schema']['isObject'](_0x574f4a)||_0x32ab42['schema']['isSelectable'](_0x574f4a);return _0x32ab42['createRange'](_0x32ab42['createPositionAt'](_0x574f4a,'before'),_0x570313?_0x32ab42['createPositionAfter'](_0x574f4a):_0x32ab42['createPositionAt'](_0x574f4a,'end'));}function qt(_0x7a5426,_0x3130b5,_0x12e23c,_0x486c65){return!!zt(_0x7a5426,_0x3130b5)&&_0x12e23c['end']['isEqual'](_0x486c65['start']);}function zt(_0xa6664b,_0x3d5938){if(!_0xa6664b['_isDataLoaded']||!_0x3d5938['_isDataLoaded'])return!0x1;const _0x3ec46a=new Set(Object['keys'](_0xa6664b['attributes'])),_0x3d0ebd=new Set(Object['keys'](_0x3d5938['attributes']));if(_0x3ec46a['delete']('groupId'),_0x3d0ebd['delete']('groupId'),0x0==_0x3ec46a['size']&&0x0==_0x3d0ebd['size'])return!0x0;if(_0x3ec46a['size']!=_0x3d0ebd['size'])return!0x1;const _0xaa7b50={..._0xa6664b['attributes']},_0x3f313f={..._0x3d5938['attributes']};return delete _0xaa7b50['groupId'],delete _0x3f313f['groupId'],JSON['stringify'](_0xaa7b50)==JSON['stringify'](_0x3f313f);}function Wt(_0x387f47,_0x29c6a5){const _0x1918c1=Qt(_0x387f47['attributes']),_0x3369e4=Qt(_0x29c6a5);if(!_0x387f47['_isDataLoaded'])return!0x1;for(const _0x528632 of Object['keys'](_0x3369e4))if(!_0x2863d8(_0x1918c1[_0x528632],_0x3369e4[_0x528632]))return!0x1;return!0x0;}function Qt(_0x5ed687){const _0x16a94d=Object['assign']({},_0x5ed687);return delete _0x16a94d['skipNestingCheck'],delete _0x16a94d['tablePasteChainId'],_0x16a94d;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x75aa98(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x36d007,_0x4726f0,_0xf10213,_0x3183e7){super(),this['model']=_0x4726f0,this['view']=_0xf10213,this['commentThreadController']=_0x3183e7,this['_editor']=_0x36d007,this['_acceptCommand']=_0x36d007['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x36d007['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f6685,_0x17e883)=>_0x1f6685||_0x17e883),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x538ba7=>_0x538ba7&&this['_editor']['model']['canEditAt'](_0x4726f0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56af01=>_0x56af01&&this['_editor']['model']['canEditAt'](_0x4726f0['getRanges']())),this['_pendingAction']=null,_0xf10213['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf10213,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf10213,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf10213,'change:isDirty',()=>{_0xf10213['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 _0x164c69=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x164c69);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x308426{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c5211,_0x18d70e,_0x36cd93,_0x1e5a1d){super(_0x4c5211),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x91aae8(_0x4c5211,o(_0x4c5211,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x18d70e['authoredAt']),this['bind']('authoredAt')['to'](_0x18d70e),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',_0x18d70e,'authoredAt',this,'descriptionParts',(_0x5d1033,_0x499fdd,_0x5e2f13)=>{const _0x2aea29=_0x5e2f13['map'](_0x4a98bd=>ls(_0x4a98bd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5d1033-0x1,_0x18d70e['author']['name'],_0x499fdd?_0x1e5a1d['formatDateTime'](_0x499fdd):'',new DOMParser()['parseFromString'](_0x2aea29,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c3cb1(),this['focusTracker']=new _0x4f2077(),this['keystrokes']=new _0x3f37e0(),this['focusCycler']=new _0x28af08({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5f2f70=>_0x5f2f70['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x18d70e,this['_localUser']=_0x36cd93,this['_config']=_0x1e5a1d,_0x1e5a1d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x48e5a1(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x518c67}=this['_config'];this['commentsListView']=new _0x518c67(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',_0xe7dffe=>_0xe7dffe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x846742,_0x5a0409)=>_0x846742||!!_0x5a0409);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3faf88}=this['_config'],_0x3991f8=new _0x3faf88(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x13e12f=_0x3991f8['commentInputView'];return _0x3991f8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x13e12f,'value',(_0x403117,_0x224c02,_0x47036f)=>!!_0x47036f||_0x403117&&!_0x224c02),_0x13e12f['on']('submit',(_0x96f644,_0x3a0f50)=>{this['fire']('addComment',_0x3a0f50),_0x13e12f['editor']['setData']('');}),_0x13e12f['on']('cancel',()=>this['focus']()),_0x13e12f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3991f8;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0xd58331,_0x3e68cd,_0x337eca,_0x251184){super(_0xd58331,_0x3e68cd,_0x337eca,_0x251184),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1ce9f7=>_0x1ce9f7&&_0x1ce9f7[0x0]?_0x1ce9f7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2de0fb,_0x54fe3f)=>{let _0xd1d859='';for(const _0x49d637 of _0x2de0fb)_0xd1d859+='<p>'+ls(_0x49d637['content'],_0x49d637['color'])+'</p>';return _0x54fe3f?_0xd1d859:_0x1bfc31(_0xd1d859,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x251184['SuggestionView'](_0xd58331,_0x3e68cd,{'formatDateTime':_0x251184['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 _0xa98458=this['bindTemplate'],_0x5be66c=[this['suggestionView']];return this['commentsListView']&&_0x5be66c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5be66c['push'](this['commentThreadInputView']),_0x5be66c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xa98458['if']('isActive','ck-suggestion-wrapper--active'),_0xa98458['to']('type',_0x442056=>'ck-suggestion-'+_0x442056),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':_0xa98458['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5be66c};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x308426{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x205d6b,_0x16f06e,_0x203e26){super(_0x205d6b),this['_model']=_0x16f06e,this['_config']=_0x203e26,this['set']('description',''),this['bind']('authoredAt')['to'](_0x16f06e),this['acceptButton']=this['_createButton'](o(_0x205d6b,'Accept\x20suggestion'),_0x524563,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x205d6b,'Discard\x20suggestion'),_0x35fe8b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5b5037(_0x205d6b,_0x16f06e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1c3cb1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4f2077(),this['keystrokes']=new _0x3f37e0(),this['focusCycler']=new _0x28af08({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3a37d8=>_0x3a37d8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3f40e0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3f40e0['innerHTML']=this['description'],this['on']('change:description',(_0x21a4b0,_0x510111,_0x1cc6a1)=>{_0x3f40e0['innerHTML']=_0x1cc6a1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2b55ae=this['bindTemplate'],_0x3119a7=[{'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':_0x2b55ae['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2b55ae['to']('authoredAt',_0x15cf5e=>this['_config']['formatDateTime'](_0x15cf5e))}]}]},{'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']&&_0x3119a7['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':_0x3119a7}]};}['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'](_0x2e4bdb,_0x2acf7f,_0x494e82,_0x50dcdb,_0x40be36){const _0x4b1299=new _0x424151(this['locale']);return _0x4b1299['set']({'label':_0x2e4bdb,'icon':_0x2acf7f,'tooltip':!0x0,'tooltipPosition':_0x40be36}),_0x4b1299['extendTemplate']({'attributes':{'class':_0x494e82}}),_0x4b1299['on']('execute',()=>{this['fire'](_0x50dcdb,this['_model']['id']);}),_0x4b1299;}['_setupKeyboardNavigation'](){const _0x1b7a2d=this['element'];this['keystrokes']['listenTo'](_0x1b7a2d);for(const _0x500813 of this['focusables'])this['focusTracker']['add'](_0x500813['element']),this['keystrokes']['listenTo'](_0x500813['element']);this['keystrokes']['set']('enter',(_0x8b6ba7,_0x3b64a1)=>{_0x1b7a2d===_0x8b6ba7['target']&&(this['focusCycler']['focusFirst'](),_0x3b64a1());}),this['keystrokes']['set']('esc',(_0x29b14e,_0x59f87f)=>{_0x1b7a2d!==_0x29b14e['target']&&(this['focus'](),_0x59f87f());});}}class u extends _0x48beba{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x16bab2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1857b6){super(_0x1857b6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x443c29=this['editor']['config'];_0x443c29['define']('trackChanges.SuggestionThreadView',fe),_0x443c29['define']('trackChanges.SuggestionView',we),_0x443c29['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x443c29['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1ece98,_0x412bf8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44dfb7,_0x77927f]of this['_handleControllerBuffer']){const _0x437c0c=this['_suggestionToController']['has'](_0x44dfb7);_0x437c0c||_0x77927f?_0x437c0c&&_0x77927f&&this['_destroyController'](_0x44dfb7):this['_initializeController'](_0x44dfb7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ece98,_0x412bf8);}['init'](){const _0x481a9f=this['editor'],_0x5bf8df=_0x481a9f['plugins']['get']('TrackChangesEditing'),_0x56e690=_0x481a9f['plugins']['get']('Annotations'),_0x3f099e=_0x481a9f['plugins']['get']('EditorAnnotations'),_0x4ac753=_0x481a9f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3f099e['addSourceCollector'](()=>{const _0x4c4baa=[];for(const [_0xba3d4a,_0x24b0f9]of Array['from'](this['_suggestionToController'])){const _0x27cad6=_0xba3d4a['getAllAdjacentSuggestions'](),_0x5d4116=[];for(const _0x5d8b28 of _0x27cad6){if(!_0x5d8b28['isInContent'])continue;if(_0x5d8b28['isMultiRange']){_0x5d4116['push'](..._0x5d8b28['getRanges']());continue;}const _0x2f078b=_0x5d8b28['getFirstRange']();if(_0x5d4116['length']>0x0){const _0x43cf1b=_0x5d4116[0x0]['getJoined'](_0x2f078b);if(_0x43cf1b){_0x5d4116[0x0]=_0x43cf1b;continue;}}_0x5d4116['push'](_0x2f078b);}_0x4c4baa['push']([_0x24b0f9['view'],_0x5d4116]);}return _0x4c4baa;}),this['listenTo'](_0x5bf8df,'suggestionLoaded',(_0x10447a,_0x4c2163)=>{this['listenTo'](_0x4c2163,'change:previous',(_0x4caa3d,_0xac867c,_0x5a14ab,_0x54cd84)=>{_0x4c2163['isInContent']&&(null==_0x5a14ab?(this['_updateController'](_0x54cd84['head']),this['_handleSuggestionControllerDelayed'](_0x4c2163,!0x1)):(this['_updateController'](_0x5a14ab['head']),null==_0x54cd84&&this['_handleSuggestionControllerDelayed'](_0x4c2163,!0x0)));}),null!==_0x4c2163['previous']?this['_updateController'](_0x4c2163['head']):this['_handleSuggestionControllerDelayed'](_0x4c2163,!0x1);}),this['listenTo'](_0x5bf8df,'suggestionUnloaded',(_0x33f1e5,_0x4d025d,_0x5eddf4)=>{this['stopListening'](_0x4d025d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4d025d),this['_suggestionToController']['has'](_0x4d025d)&&this['_destroyController'](_0x4d025d),_0x5eddf4&&this['_updateController'](_0x5eddf4['head']);}),this['listenTo'](_0x5bf8df,'suggestionChanged',(_0x35de27,_0x2706e4)=>{this['_updateController'](_0x2706e4);}),this['listenTo'](_0x56e690,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ac753,'addComment',(_0x37955b,{threadId:_0x5cba9a,isFromAdapter:_0x11dccd})=>{if(_0x11dccd||!_0x5bf8df['hasSuggestion'](_0x5cba9a))return;const _0x40e77c=_0x5bf8df['getSuggestion'](_0x5cba9a);this['_suggestionToController']['get'](_0x40e77c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f8dde=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30285b;for(const _0x35a83c in _0x1f8dde){const _0x2993b0=_0x35a83c,_0x19a017=_0x1f8dde[_0x2993b0];if('trackChangesLicenseKeyValid'==_0x19a017||'trackChangesLicenseKeyInvalid'==_0x19a017||'trackChangesLicenseKeyExpired'==_0x19a017||'trackChangesLicenseKeyDomainLimit'==_0x19a017||'trackChangesLicenseKeyNotAllowed'==_0x19a017||'trackChangesLicenseKeyEvaluationLimit'==_0x19a017||'trackChangesLicenseKeyTrialLimit'==_0x19a017||'trackChangesLicenseKeyUsageLimit'==_0x19a017){delete _0x1f8dde[_0x2993b0],_0x30285b=_0x19a017,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x30285b&&_0x1f8dde['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x30285b&&_0x1f8dde['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x30285b&&_0x1f8dde['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x30285b&&_0x1f8dde['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x30285b&&_0x1f8dde['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x30285b&&_0x1f8dde['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x30285b&&_0x1f8dde['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x523d73=this['editor']['plugins']['get']('Annotations'),_0x1812d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45becc=Array['from'](_0x523d73['activeAnnotations'],_0x39e7ea=>_0x39e7ea['innerView'])['filter'](_0xb02f42=>this['_viewToController']['has'](_0xb02f42)),_0x20c06b=[];for(const _0x43f659 of _0x45becc){const _0x5cec16=this['_viewToController']['get'](_0x43f659)['model']['getAllAdjacentSuggestions']();_0x20c06b['push'](..._0x5cec16['reduce']((_0x1657a5,_0x435c8f)=>[..._0x1657a5,..._0x435c8f['getMarkerNames']()],[]));}_0x1812d3['activeMarkers']=_0x20c06b;}['_addUIComponentsToFactory'](){const _0x4e795c=this['editor'],_0xf45bd7=_0x4e795c['locale'],_0x5f35ba=o(_0xf45bd7,'Track\x20changes'),_0x4a43d9=new _0xe2ebaf([{'type':'switchbutton','model':new _0x335e7f({'withText':!0x0,'isToggleable':!0x0,'label':_0x5f35ba,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4e795c['plugins']['has']('TrackChangesPreview')&&_0x4a43d9['addMany']([{'type':'separator'},{'type':'button','model':new _0x335e7f({'withText':!0x0,'label':o(_0xf45bd7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x330cae of _0x4a43d9)if(ke(_0x330cae)){const _0x246866=_0x4e795c['commands']['get'](_0x330cae['model']['commandName']);_0x330cae['model']['bind']('isOn','isEnabled')['to'](_0x246866,'value','isEnabled');}_0x4e795c['ui']['componentFactory']['add']('trackChanges',_0x59c72b=>this['_createToolbarButton'](_0x59c72b,_0x4a43d9,_0x5f35ba)),_0x4e795c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5ecf55=>this['_createMenuBarMenu'](_0x5ecf55,_0x4a43d9,_0x5f35ba));}['_createToolbarButton'](_0x4b5702,_0x54ddbd,_0x34d0e8){const _0x32c363=_0x4ca3ee(_0x4b5702,_0x1fe5f5),_0x4884e5=this['editor']['commands']['get']('trackChanges');_0x32c363['buttonView']['set']({'tooltip':_0x34d0e8,'label':_0x34d0e8,'icon':_0x3de21c}),_0x32c363['buttonView']['bind']('isOn')['to'](_0x4884e5,'value'),_0x32c363['buttonView']['on']('execute',()=>{_0x4884e5['execute'](),this['editor']['editing']['view']['focus']();}),_0x268f8f(_0x32c363,_0x54ddbd,{'role':'menu'});const _0x31b7d8=[];for(const _0x24996c of _0x54ddbd)ke(_0x24996c)&&_0x31b7d8['push'](this['editor']['commands']['get'](_0x24996c['model']['commandName']));const _0x21c8e6=_0x32c363['buttonView'];return _0x21c8e6['actionView']['unbind']('isEnabled'),_0x21c8e6['arrowView']['unbind']('isEnabled'),_0x21c8e6['actionView']['bind']('isEnabled')['to'](_0x4884e5,'isEnabled'),_0x21c8e6['arrowView']['bind']('isEnabled')['toMany'](_0x31b7d8,'isEnabled',(..._0xf747f6)=>_0xf747f6['some'](_0x415653=>_0x415653)),_0x32c363['on']('execute',_0xca024f=>{this['editor']['execute'](_0xca024f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x32c363;}['_createMenuBarMenu'](_0x34380d,_0x1b5ff4,_0x2fc2f0){const _0x5685b9=new _0x27e948(_0x34380d),_0x7561a4=this['editor']['commands']['get']('trackChanges');_0x5685b9['buttonView']['set']({'label':_0x2fc2f0,'icon':_0x3de21c});const _0x18894d=new _0x1b512c(_0x34380d);for(const _0x31d685 of _0x1b5ff4){if('separator'==_0x31d685['type']){_0x18894d['items']['add'](new _0x4e2a1f(_0x34380d));continue;}const _0x3ecb5d=new _0x5a6f68(_0x34380d,_0x5685b9),_0x267241=new _0x1e4da2(_0x34380d),_0x1a371d=_0x31d685['model'];_0x267241['bind'](...Object['keys'](_0x1a371d))['to'](_0x1a371d),_0x267241['delegate']('execute')['to'](_0x5685b9),_0x267241['on']('execute',()=>{this['editor']['execute'](_0x1a371d['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ecb5d['children']['add'](_0x267241),_0x18894d['items']['add'](_0x3ecb5d);}return _0x5685b9['bind']('isEnabled')['to'](_0x7561a4,'isEnabled'),_0x5685b9['panelView']['children']['add'](_0x18894d),_0x5685b9;}['_initializeController'](_0x21bc73){const _0xc14451=this['editor'],_0x112ba4=_0xc14451['config'],_0x13c346=_0xc14451['plugins']['get']('Annotations'),_0x554871=_0xc14451['plugins']['get']('CommentsRepository'),_0xe80891=_0xc14451['plugins']['get']('EditorAnnotations'),_0x4303a8=_0xc14451['plugins']['get'](_0x16bab2)['me'],_0x5118ca=_0x112ba4['get']('trackChanges')['SuggestionThreadView'],_0x3010b2=_0x112ba4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51049f,CommentThreadInputView:_0x101a8f}=_0xc14451['plugins']['get']('CommentsUI');let _0x1ccc8f,_0x742e19,_0x27c934;this['_annotationViews']['has'](_0x21bc73['id'])?(_0x742e19=this['_annotationViews']['get'](_0x21bc73['id']),_0x1ccc8f=_0x742e19['mainView']):(_0x1ccc8f=new _0x5118ca(_0xc14451['locale'],_0x21bc73,_0x4303a8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x112ba4['get']('comments.editorConfig'),'licenseKey':_0x112ba4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x112ba4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x112ba4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x112ba4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25988d(_0x112ba4['get']('locale'),_0xc14451['locale']),'CommentView':_0x112ba4['get']('comments')['CommentView'],'CommentsListView':_0x51049f,'CommentThreadInputView':_0x101a8f,'SuggestionView':_0x3010b2}),_0x1ccc8f['suggestionView']['acceptButton']['on']('execute',()=>{_0xc14451['editing']['view']['focus']();}),_0x1ccc8f['suggestionView']['discardButton']['on']('execute',()=>{_0xc14451['editing']['view']['focus']();}),_0x742e19=_0x13c346['createAnnotationView'](this['editor']['locale'],_0x1ccc8f),_0x742e19['bind']('isDirty')['to'](_0x1ccc8f,'isDirty'),_0x742e19['bind']('length')['to'](_0x1ccc8f),_0x742e19['bind']('type')['to'](_0x1ccc8f,'type',_0x3702ec=>'suggestion-'+_0x3702ec),_0x1ccc8f['on']('escape',()=>{_0x27c934['fire']('escape');}),this['_annotationViews']['set'](_0x21bc73['id'],_0x742e19));const _0x129189=_0x554871['createCommentThreadController'](_0x21bc73['commentThread'],_0x1ccc8f),_0x585860=new pe(_0xc14451,_0x21bc73,_0x1ccc8f,_0x129189),_0x9aed6c=_0x21bc73['getAllAdjacentSuggestions']()['filter'](_0x22c4db=>_0x22c4db['isInContent']);_0x1ccc8f['descriptionParts']=_0xc14451['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x9aed6c),this['_suggestionToController']['set'](_0x21bc73,_0x585860),this['_viewToController']['set'](_0x1ccc8f,_0x585860),_0x27c934=_0x13c346['createAnnotation']({'view':_0x742e19,'target':()=>{const _0x32da7a=[],_0x135709=_0x21bc73['getAllAdjacentSuggestions']()['filter'](_0x5d742e=>_0x5d742e['isInContent']);for(const _0x3165db of _0x135709)_0x32da7a['push'](..._0x3165db['getMarkers']());return _0x4a13ae(_0xc14451['editing'],_0x32da7a);},'type':()=>'suggestion-'+_0x585860['view']['type']}),_0x554871['_bindAnnotationToEditors'](_0x1ccc8f,_0x27c934),_0x13c346['add'](_0x27c934),_0xe80891['registerAnnotation'](_0x27c934);}['_destroyController'](_0x23ca39){const _0x438d93=this['editor']['plugins']['get']('CommentsRepository'),_0x13b113=this['editor']['plugins']['get']('Annotations'),_0x458198=this['_suggestionToController']['get'](_0x23ca39),_0x868695=_0x458198['view'],_0x3cacac=_0x13b113['getByInnerView'](_0x868695);_0x438d93['_unbindEditors'](_0x868695),_0x3cacac&&_0x13b113['remove'](_0x3cacac),this['_suggestionToController']['delete'](_0x23ca39),this['_viewToController']['delete'](_0x868695),_0x458198['destroy']();}['_updateController'](_0x531864){if(!_0x531864['isInContent']||!this['_suggestionToController']['has'](_0x531864))return;const _0x4a8819=this['editor']['plugins']['get']('TrackChangesEditing'),_0x769657=this['_suggestionToController']['get'](_0x531864),_0x2fab58=_0x531864['getAllAdjacentSuggestions']();_0x769657['view']['descriptionParts']=_0x4a8819['descriptionFactory']['getDescriptions'](_0x2fab58);}['destroy'](){for(const _0x2ad729 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2ad729);for(const _0x505eba of this['_annotationViews']['values']())_0x505eba['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x436e94){return'model'in _0x436e94;}class Ge extends _0x48beba{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x449809){this['editor']['plugins']['get'](d)['adapter']=_0x449809;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x46cc33){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x46cc33);}['getSuggestions']({skipNotAttached:_0x107743=!0x1,toJSON:_0x2d7a8f=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x107743,'toJSON':_0x2d7a8f});}['getSuggestion'](_0x412397){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x412397);}}const p=['Pagination'];class re extends _0x48beba{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ba488=this['editor'];if(_0x4ba488['config']['define']('trackChangesData.editorCreator',_0x559032=>{const _0x300764=_0x4ba488['model']['document']['getRootNames']()['reduce']((_0x102e74,_0x2a0a8e)=>(_0x102e74[_0x2a0a8e]='',_0x102e74),{});return _0x4ba488['constructor']['create'](_0x300764,_0x559032);}),'function'!=typeof _0x4ba488['config']['get']('trackChangesData')['editorCreator'])throw new _0x2bc211('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x451c57){return w(this['editor'],!0x0,_0x451c57);}['getDataWithDiscardedSuggestions'](_0x3e49d6){return w(this['editor'],!0x1,_0x3e49d6);}}class k extends _0x48beba{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1626ca){function _0x38ec0b(_0x686720){return _0x686720['map'](_0x150134=>String['fromCharCode'](_0x150134))['join']('');}super(_0x1626ca),this['result']='end',_0x1626ca[_0x38ec0b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38ec0b([0x76,0x69,0x65,0x77])][_0x38ec0b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38ec0b([0x61,0x75,0x74,0x6f]),_0x1626ca[_0x38ec0b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x38ec0b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38ec0b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x38ec0b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x38ec0b([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 $e(_0x278aae){return void 0x0!==_0x278aae['getRootsAttributes'];}async function w(_0xbb86a4,_0x48181a,_0x3110b2){const _0x72e6b9=_0x5ba9c5(_0xbb86a4,p);_0x72e6b9['plugins']['push'](d,k),_0x72e6b9['rootsAttributes']=$e(_0xbb86a4)?_0xbb86a4['getRootsAttributes']():void 0x0;const _0x3fc75c=document['createDocumentFragment'](),_0x1e8c80=_0xbb86a4['config']['get']('trackChangesData')['editorCreator'],_0x1ef52d=await _0x1e8c80(_0x72e6b9,()=>function(_0x312a79){const _0xc0546e=document['createElement']('div');return _0x312a79['appendChild'](_0xc0546e),_0xc0546e;}(_0x3fc75c));!function(_0xd5cf5e,_0x2bd822){const _0x51a4cc=_0xd5cf5e['model']['document']['getRootNames']()['reduce']((_0x45cb07,_0x37a816)=>(_0x45cb07[_0x37a816]=_0xd5cf5e['data']['get']({'rootName':_0x37a816}),_0x45cb07),{}),_0x37dd60=_0xd5cf5e['plugins']['get']('Users')['users']['map'](_0x202a35=>({'id':_0x202a35['id'],'name':_0x202a35['name']})),_0x83c22a=_0xd5cf5e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39119c=_0xd5cf5e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5257a0=_0x2bd822['plugins']['get']('Users'),_0xc83f4d=_0x2bd822['plugins']['get']('TrackChangesEditing'),_0x472eb6=_0x2bd822['plugins']['get']('CommentsRepository');for(const _0x2f7cac of _0x472eb6['getCommentThreads']())_0x2f7cac['remove']();for(const _0x2eb7c5 of _0x37dd60)_0x5257a0['getUser'](_0x2eb7c5['id'])||_0x5257a0['addUser'](_0x2eb7c5);_0x5257a0['me']||_0x5257a0['useAnonymousUser']();for(const _0x2a63d9 of _0x39119c)_0x472eb6['addCommentThread'](_0x2a63d9);for(const _0x453cfb of _0x83c22a)_0xc83f4d['addSuggestionData'](_0x453cfb);_0x2bd822['data']['set'](_0x51a4cc);}(_0xbb86a4,_0x1ef52d),_0x1ef52d['execute'](_0x48181a?'acceptAllSuggestions':'discardAllSuggestions');const _0x9d89fc=$e(_0x1ef52d)?_0x1ef52d['getFullData'](_0x3110b2):_0x1ef52d['data']['get'](_0x3110b2);return await _0x1ef52d['destroy'](),_0x9d89fc;}class Me extends _0x308426{['options'];constructor(_0x2d98c8,_0x13ac1d){super(_0x2d98c8),this['options']=_0x13ac1d,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'](_0x2b4477,_0x5c8542){if(!this['element'])return;const _0x10d68a=[];for(const [_0x18568b,_0x2b8916]of _0x2b4477){const _0x5ae400=document['createElement']('div');_0x5ae400['setAttribute']('data-ck-root-name',_0x18568b),_0x5ae400['className']=_0x2b8916['classes']+'\x20ck-track-changes-preview__root-container',_0x5ae400['innerHTML']=_0x2b8916['content'],_0x10d68a['push'](_0x5ae400);}_0x5c8542(this['element'],_0x10d68a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x17b867{constructor(_0x446f2a){super(_0x446f2a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4e5f13=this['editor'],_0x3eec56=_0x4e5f13['locale'],_0x52f0bf=_0x4e5f13['plugins']['get']('Dialog');let _0x3bcc9a;const _0x2dbb2c=function(_0x51115b){const _0x289165={};if('editables'in _0x51115b['ui']['view']){for(const [_0x340b26,_0x1538a9]of Object['entries'](_0x51115b['ui']['view']['editables']))_0x289165[_0x340b26]=_0x1538a9['element'];}else _0x289165[_0x51115b['model']['document']['getRootNames']()[0x0]]=_0x51115b['ui']['view']['editable']['element'];return _0x289165;}(_0x4e5f13),_0x28ea3c=function(_0x4364d3){let _0x56645c=0x0;for(const _0x19d4e0 of Object['values'](_0x4364d3))_0x56645c=Math['max'](_0x56645c,_0x19d4e0['getBoundingClientRect']()['width']);let _0x21aebf=0x0;for(const _0x2d0fc7 of Object['values'](_0x4364d3))_0x21aebf+=_0x2d0fc7['getBoundingClientRect']()['height'];const _0x6c2875=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x39e9d2=Math['min'](_0x21aebf,_0x6c2875);return{'width':_0x56645c,'height':_0x39e9d2};}(_0x2dbb2c);_0x52f0bf['show']({'id':'finalContentPreview','title':o(_0x3eec56,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3eec56,{'dialogRects':_0x28ea3c}),'onHide':()=>{_0x3bcc9a['detachFromDom']();},'onShow':()=>{_0x4e5f13['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x37c7f6=>{const _0x61ad40=this['_standarizeRootsData'](_0x37c7f6,_0x4e5f13,_0x2dbb2c);_0x52f0bf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x61ad40,_0x4e5f13['config']['get']('trackChanges.preview.renderFunction'));}),_0x3bcc9a=new _0x4acdd8(_0x3eec56,[_0x52f0bf['view']]),_0x3bcc9a['attachToDom'](),_0x3bcc9a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4e5f13['once']('destroy',()=>{_0x3bcc9a['detachFromDom']();});const _0x16371a=_0x52f0bf['view']['headerView']['class'];_0x52f0bf['view']['headerView']['class']=_0x16371a?_0x16371a+'\x20ck-reset_all':'ck-reset_all',_0x52f0bf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x52f0bf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x227765=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x337d0e=_0x227765['previewMode'],_0x324a0b={};if('$labels'===_0x337d0e){for(const _0x25c5e9 of _0x227765['getMergeFieldsIds']())_0x324a0b[_0x25c5e9]=_0x227765['getLabel'](_0x25c5e9)||_0x25c5e9;}else{const _0x468546='$defaultValues'===_0x337d0e?_0x227765['getDefaultValues']():_0x227765['getDataSetValues'](_0x337d0e,!0x0);for(const _0x8da04c of Object['entries'](_0x468546)){const [_0x3a99d0,_0x4b9e0a]=_0x8da04c;_0x324a0b[_0x3a99d0]=null!==_0x4b9e0a?_0x4b9e0a:_0x227765['getLabel'](_0x3a99d0)||_0x3a99d0;}}return{'mergeFieldsData':_0x324a0b};}['_standarizeRootsData'](_0x5d76fc,_0x409e35,_0x54f7c5){let _0x57536c;if('string'==typeof _0x5d76fc){const _0x4e7a73=_0x409e35['model']['document']['getRootNames']()[0x0];_0x57536c={[_0x4e7a73]:_0x5d76fc};}else _0x57536c=_0x5d76fc;const _0x393265=this['_fixMediaEmbeds'](_0x57536c,_0x409e35),_0x25a957=function(_0x10d6ea,_0x190e3c){for(const [_0x586787,_0x5d903b]of _0x10d6ea)_0x5d903b['classes']=_0x190e3c[_0x586787]['classList']['value']['replace']('ck-focused','');return _0x10d6ea;}(this['_sortRoots'](_0x409e35)['reduce']((_0x3b373f,_0x2e24f4)=>(_0x3b373f['push']([_0x2e24f4,{'content':_0x393265[_0x2e24f4],'classes':''}]),_0x3b373f),[]),_0x54f7c5);return _0x25a957;}['_fixMediaEmbeds'](_0x238929,_0x2dc392){if(!_0x2dc392['plugins']['has']('MediaEmbedEditing'))return _0x238929;const _0x491a95=_0x2dc392['plugins']['get']('MediaEmbedEditing');for(const [_0x5265d8,_0x52a3af]of Object['entries'](_0x238929)){const _0x25561c=document['createElement']('div');_0x25561c['innerHTML']=_0x52a3af,(_0x25561c['querySelectorAll']('figure.media')['forEach'](_0x54aeb9=>{const _0x1a8c52=_0x54aeb9['querySelector']('oembed');if(_0x1a8c52){const _0x62afae=_0x1a8c52['getAttribute']('url');if(_0x62afae){const _0x121a90=_0x491a95['registry']['getMediaViewElement'](new _0x2d66e3(_0x2dc392['editing']['view']['document']),_0x62afae,{'elementName':'','renderForEditingView':!0x0}),_0x491225=document['createElement']('div');_0x491225['classList']['add']('ck-media__wrapper'),_0x121a90['render'](_0x491225,_0x2dc392['editing']['view']['domConverter']),_0x1a8c52['replaceWith'](_0x491225);}}}),_0x238929[_0x5265d8]=_0x25561c['innerHTML']);}return _0x238929;}['_sortRoots'](_0x3c6c70){if(!function(_0x2d374d){return void 0x0!==_0x2d374d['getRootsAttributes'];}(_0x3c6c70))return _0x3c6c70['model']['document']['getRootNames']();const _0x234ecf=[],_0x50435c=new Map();for(const _0x1c1961 of _0x3c6c70['model']['document']['getRootNames']()){const _0x3fcfde=_0x3c6c70['editing']['view']['getDomRoot'](_0x1c1961)['getClientRects']()['item'](0x0);_0x234ecf['push'](_0x1c1961),_0x50435c['set'](_0x1c1961,_0x3fcfde);}return _0x234ecf['sort']((_0x1a9f9c,_0x33f86c)=>{const _0x1bdf5c=_0x50435c['get'](_0x1a9f9c),_0x18509a=_0x50435c['get'](_0x33f86c);return _0x1bdf5c['y']-_0x18509a['y']||_0x1bdf5c['x']-_0x18509a['x'];}),_0x234ecf;}}class He extends _0x48beba{static get['requires'](){return[re,_0x17ba05];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b74a1){super(_0x1b74a1),_0x1b74a1['commands']['add']('previewFinalContent',new te(this['editor'])),_0x1b74a1['config']['define']('trackChanges.preview.renderFunction',(_0x14c9e1,_0x853f3e)=>{for(const _0x360830 of _0x853f3e)_0x14c9e1['appendChild'](_0x360830);});}}export{M as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,T as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,fe as SuggestionThreadView,we as SuggestionView,Ge as TrackChanges,D as TrackChangesCommand,re as TrackChangesData,d as TrackChangesEditing,He as TrackChangesPreview};
|