@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250215.0 → 0.0.0-nightly-next-20250216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +26 -26
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x109372(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x521407,_0x331f33){super(),this['id']=_0x331f33['id'],this['type']=_0x331f33['type'],this['subType']=_0x331f33['subType']||null,this['author']=_0x331f33['author'],this['creator']=_0x331f33['creator']||_0x331f33['author'],this['isExternal']=Boolean(_0x331f33['attributes']&&_0x331f33['attributes']['@external']),this['data']=null,this['_model']=_0x521407,this['_onAccept']=_0x331f33['onAccept'],this['_onDiscard']=_0x331f33['onDiscard'],this['_onAttributesChange']=_0x331f33['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x331f33['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 _0x3788d4=this;for(;_0x3788d4['previous'];)_0x3788d4=_0x3788d4['previous'];return _0x3788d4;}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'](_0x54fa2d){this['_markerNames']['add'](_0x54fa2d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x456b2c=>this['_model']['markers']['get'](_0x456b2c))['filter'](_0x333777=>_0x333777);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5691ed=>{for(const _0x2d0e32 of this['getMarkers']())_0x5691ed['removeMarker'](_0x2d0e32);}),this['_markerNames']['clear']();}['removeMarker'](_0xfeb7ff){this['_model']['change'](_0x130c34=>{_0x130c34['removeMarker'](_0xfeb7ff);}),this['_markerNames']['delete'](_0xfeb7ff);}['addRange'](_0x333a6f){const _0x348159='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x348159),this['_model']['change'](_0x1d7165=>{_0x1d7165['addMarker'](_0x348159,{'range':_0x333a6f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x167218){for(const _0x49fcd5 of this['getRanges']())if(_0x49fcd5['isIntersecting'](_0x167218))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x57f3ac=>_0x57f3ac['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2e12d7,_0x196603)=>[..._0x2e12d7,..._0x196603['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5e8a39=this['getRanges']();if(0x1!=_0x5e8a39['length'])return null;const _0x5391e4=_0x5e8a39[0x0],_0x49090e=_0x5391e4['start']['nodeAfter'],_0x4e5dea=_0x5391e4['end']['nodeBefore'];return _0x49090e instanceof _0x23afc7?_0x49090e!=_0x4e5dea?null:_0x49090e: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 _0x8ce7b8=[];let _0x39f9ed=this['head'];for(;_0x39f9ed;)_0x8ce7b8['push'](_0x39f9ed),_0x39f9ed=_0x39f9ed['next'];return _0x8ce7b8;}['setAttribute'](_0x1ee58c,_0x49bddd){const _0x247107=_0x54d4d7(this['attributes']);_0x3f326c(_0x247107,_0x1ee58c,_0x49bddd),_0x12a927(_0x247107,this['attributes'])||(this['attributes']=_0x247107,this['_onAttributesChange'](_0x247107));}['removeAttribute'](_0x2549f4){const _0x4d929a=_0x54d4d7(this['attributes']);_0x2a7556(_0x4d929a,_0x2549f4),_0x12a927(_0x4d929a,this['attributes'])||(this['attributes']=_0x4d929a,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 _0x54ee4c()['substr'](0x1,0x5);}}function c(_0x57e30d,_0x20c89b,_0x248c85){const _0x118361=_0x57e30d['t'],t=_0x57e30d['t'];switch(_0x20c89b){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',_0x248c85);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x248c85);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x248c85);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x248c85);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x248c85);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',_0x248c85);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x248c85);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',_0x248c85);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x248c85);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x248c85);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x248c85);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x248c85);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x248c85);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x248c85);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x248c85);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x248c85);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x248c85);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x248c85);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x248c85);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x248c85);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x248c85);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x248c85);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x248c85);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x248c85);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'},_0x248c85);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x248c85);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x248c85);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x248c85);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x248c85);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x248c85);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'},_0x248c85);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x248c85);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x248c85);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x248c85);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x248c85);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'},_0x248c85);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x248c85);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'},_0x248c85);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'},_0x248c85);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x248c85);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'},_0x248c85);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x248c85);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'},_0x248c85);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x248c85);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x248c85);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'},_0x248c85);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x248c85);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 _0x118361({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x248c85);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x118361({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x248c85);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x248c85);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'},_0x248c85);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'},_0x248c85);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'},_0x248c85);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x20c89b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x24b6c5,_0x9c2148){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x24b6c5,this['_locale']=_0x9c2148;}['getDescriptions'](_0x1e4148){const _0x1face9=[],_0x40a2f9=new Set(),_0x2d7c93=new Set();for(let _0x340388=0x0;_0x340388<_0x1e4148['length'];_0x340388++){const _0x477114=_0x1e4148[_0x340388];if(!_0x477114['isInContent'])continue;const _0x315a54=this['_handleCustomCallbackDescription'](_0x477114);if(_0x315a54){if(null!=_0x477114['subType']){if(_0x40a2f9['has'](_0x477114['subType']))continue;_0x40a2f9['add'](_0x477114['subType']);}_0x1face9['push'](_0x315a54);}else{if('attribute'!=_0x477114['type'])'insertion'!=_0x477114['type']&&'deletion'!=_0x477114['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1face9,_0x477114,_0x1e4148[_0x340388+0x1]);else{const _0x52076f=_0x477114['data']['key'];if(_0x2d7c93['has'](_0x52076f))continue;_0x2d7c93['add'](_0x477114['data']['key']),_0x52076f==u?this['_handleRenameSuggestionDescription'](_0x1face9,_0x477114):this['_handleAttributeSuggestionDescription'](_0x1face9,_0x477114);}}}return this['_resolveDescriptionItems'](_0x1face9);}['registerDescriptionCallback'](_0x31aec6){this['_customCallbacks']['push'](_0x31aec6);}['registerElementLabel'](_0x64328b,_0x43d4da,_0x25a511=_0x317f6e['normal']){'function'==typeof _0x64328b?_0x1ea8de(this['_itemLabelsCallbacks'],{'matchingCallback':_0x64328b,'label':_0x43d4da,'priority':_0x25a511}):this['_itemLabels']['set'](_0x64328b,_0x43d4da);}['registerAttributeLabel'](_0x4bcc37,_0x1a0aa0){this['_attributeLabels']['set'](_0x4bcc37,_0x1a0aa0);}['getItemLabel'](_0x2c025f,_0x99c8cf=0x1){let _0x112132;for(const _0x291ab6 of this['_itemLabelsCallbacks'])if(_0x291ab6['matchingCallback'](_0x2c025f)){_0x112132=_0x291ab6['label'];break;}return _0x112132||(_0x112132=this['_itemLabels']['get'](_0x2c025f['name'])),_0x112132?_0x112132(_0x99c8cf):0x1!==_0x99c8cf?_0x99c8cf+'\x20'+_0x2c025f['name']+'s':''+_0x2c025f['name'];}['_addDescriptionItems'](_0x5245d6,_0x248b97){const _0x4613dc=_0x248b97['getFirstRange']()['getWalker'](),_0x3df2dd='insertion'==_0x248b97['type']?'add':'remove';for(const _0x43a82c of _0x4613dc){const _0x22caee=_0x43a82c['item'],_0x5912ff=_0x5245d6[_0x5245d6['length']-0x1];if(_0x22caee['is']('$textProxy'))_0x5912ff&&_0x5912ff['type']['indexOf']('Container')>-0x1&&_0x5245d6['pop'](),_0x5912ff&&'text'==_0x5912ff['type']?_0x5912ff[_0x3df2dd]+=_0x22caee['data']:_0x5245d6['push']({'type':'text','add':'add'==_0x3df2dd?_0x22caee['data']:'','remove':'remove'==_0x3df2dd?_0x22caee['data']:''});else{if(this['_schema']['isObject'](_0x22caee)){const _0x48daa2=_0x22caee;if(_0x5912ff&&_0x5912ff['type']['indexOf']('Container')>-0x1&&_0x5245d6['pop'](),'elementEnd'==_0x43a82c['type'])continue;_0x5912ff&&_0x5912ff['type']==_0x3df2dd+'Object'&&_0x5912ff['element']['name']==_0x48daa2['name']?_0x5912ff['quantity']++:_0x5245d6['push']({'type':_0x3df2dd+'Object','element':_0x48daa2,'quantity':0x1}),_0x4613dc['skip'](_0x1bb270=>!('elementEnd'==_0x1bb270['type']&&_0x1bb270['item']==_0x22caee));}else{if(this['_schema']['checkChild'](_0x22caee,'$text')||_0x22caee['is']('element','softBreak')){const _0x37aac7=_0x22caee;if('add'==_0x3df2dd&&'elementStart'==_0x43a82c['type']||'remove'==_0x3df2dd&&'elementEnd'==_0x43a82c['type'])continue;if(_0x5912ff&&-0x1==_0x5912ff['type']['indexOf']('Container')){'text'==_0x5912ff['type']&&(_0x5912ff[_0x3df2dd]+='\x0a');continue;}let _0x485851;if(_0x485851='add'==_0x3df2dd?_0x37aac7['nextSibling']&&!this['_schema']['isObject'](_0x37aac7['nextSibling'])?_0x37aac7['nextSibling']:null:_0x37aac7['previousSibling']&&!this['_schema']['isObject'](_0x37aac7['previousSibling'])?_0x37aac7['previousSibling']:null,_0x37aac7['isEmpty']||_0x485851&&_0x485851['isEmpty']){const _0x13b95d=_0x485851&&_0x485851['isEmpty']?_0x485851:_0x37aac7;_0x5912ff&&_0x5912ff['type']==_0x3df2dd+'EmptyContainer'&&_0x5912ff['element']['name']==_0x13b95d['name']?_0x5912ff['quantity']++:_0x5245d6['push']({'type':_0x3df2dd+'EmptyContainer','element':_0x13b95d,'quantity':0x1});}else _0x5245d6['push']({'type':_0x3df2dd+'Container','element':_0x37aac7});}}}}}['_resolveDescriptionItems'](_0x2d87a7){const _0x188e18=this['_locale'],_0x592a0a=[],_0x32b8c4=[],_0x136be9=[];for(const _0x21c1da of _0x2d87a7)switch(_0x21c1da['type']){case'text':if(_0x21c1da['add']=_0x21c1da['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x21c1da['remove']=_0x21c1da['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x21c1da['add']&&''!=_0x21c1da['remove']){_0x592a0a['push']({'type':'replace','content':c(_0x188e18,'REPLACE_TEXT',['\x22'+_0x21c1da['remove']+'\x22','\x22'+_0x21c1da['add']+'\x22'])});continue;}if(null!=_0x21c1da['add']['match'](/^ +$/)){_0x592a0a['push']({'type':'insertion','content':c(_0x188e18,'*Insert:*\x20%0',c(_0x188e18,'ELEMENT_SPACE',_0x21c1da['add']['length']))});continue;}if(null!=_0x21c1da['remove']['match'](/^ +$/)){_0x592a0a['push']({'type':'deletion','content':c(_0x188e18,'*Remove:*\x20%0',c(_0x188e18,'ELEMENT_SPACE',_0x21c1da['remove']['length']))});continue;}if(''!=_0x21c1da['add']){_0x592a0a['push']({'type':'insertion','content':c(_0x188e18,'*Insert:*\x20%0','\x22'+_0x21c1da['add']+'\x22')});continue;}_0x592a0a['push']({'type':'deletion','content':c(_0x188e18,'*Remove:*\x20%0','\x22'+_0x21c1da['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x592a0a['push']({'type':'insertion','content':c(_0x188e18,'*Insert:*\x20%0',this['getItemLabel'](_0x21c1da['element'],_0x21c1da['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x592a0a['push']({'type':'deletion','content':c(_0x188e18,'*Remove:*\x20%0',this['getItemLabel'](_0x21c1da['element'],_0x21c1da['quantity']))});continue;case'addContainer':_0x592a0a['push']({'type':'insertion','content':c(_0x188e18,'*Split:*\x20%0',this['getItemLabel'](_0x21c1da['element'],_0x21c1da['quantity']))});continue;case'removeContainer':_0x592a0a['push']({'type':'deletion','content':c(_0x188e18,'*Merge:*\x20%0',this['getItemLabel'](_0x21c1da['element'],_0x21c1da['quantity']))});continue;case'addFormat':_0x32b8c4['push'](_0x21c1da['key']);continue;case'removeFormat':_0x136be9['push'](_0x21c1da['key']);continue;default:_0x592a0a['push'](_0x21c1da);}if(_0x32b8c4['length']){const _0x3a9113=_0x32b8c4['map'](_0x2ca98f=>this['_attributeLabels']['has'](_0x2ca98f)?this['_attributeLabels']['get'](_0x2ca98f):_0x2ca98f)['join'](',\x20');_0x592a0a['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3a9113)});}if(_0x136be9['length']){const _0x20ff85=_0x136be9['map'](_0x20a0e5=>this['_attributeLabels']['has'](_0x20a0e5)?this['_attributeLabels']['get'](_0x20a0e5):_0x20a0e5)['join'](',\x20');_0x592a0a['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x20ff85)});}return _0x592a0a;}['_handleCustomCallbackDescription'](_0x461a39){for(const _0x566ebb of this['_customCallbacks']){const _0x4310cd=_0x566ebb(_0x461a39);if(_0x4310cd&&'type'in _0x4310cd)return _0x4310cd;}}['_handleAttributeSuggestionDescription'](_0x71579b,_0x150112){const _0x17e6c9=_0x150112['data'],_0x1d5629=void 0x0===_0x17e6c9['newValue']?'removeFormat':'addFormat';_0x71579b['push']({'type':_0x1d5629,'key':_0x17e6c9['key']});}['_handleRenameSuggestionDescription'](_0x4aa056,_0x3e2b50){_0x4aa056['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3e2b50['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3cc20b,_0xbffe72,_0x363abe){if(this['_addDescriptionItems'](_0x3cc20b,_0xbffe72),_0x363abe&&_0x363abe['getFirstRange']()&&!_0xbffe72['getFirstRange']()['end']['isEqual'](_0x363abe['getFirstRange']()['start'])){const _0x151178=_0x3cc20b[_0x3cc20b['length']-0x1],_0x4866ac='insertion'==_0xbffe72['type']?'add':'remove';_0x151178&&'text'==_0x151178['type']&&(_0x151178[_0x4866ac]+='\x0a');}}}class U extends _0x17dcce{['afterInit'](){const _0x5e0d7e=this['editor'],_0x404582=_0x5e0d7e['plugins']['get']('TrackChangesEditing');_0x5e0d7e['commands']['get']('showAIAssistant')&&_0x404582['enableCommand']('showAIAssistant');}}class V extends _0x17dcce{['afterInit'](){const _0x1480bd=this['editor'],_0x4f4fe9=_0x1480bd['locale'];if(!_0x1480bd['plugins']['has']('AlignmentEditing'))return;const _0x45c9e4=_0x1480bd['plugins']['get']('TrackChangesEditing');_0x45c9e4['enableDefaultAttributesIntegration']('alignment'),_0x45c9e4['registerBlockAttribute']('alignment'),_0x45c9e4['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4f4fe9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d5cf5=this['editor'],_0x27bd9f=_0x5d5cf5['locale'];_0x5d5cf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x947558=>{if('formatBlock'!=_0x947558['type'])return;const {data:_0x100546}=_0x947558;if(_0x100546&&'alignment'==_0x100546['commandName']){const _0x5f337f=_0x100546['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x27bd9f,'*Format:*\x20%0',function(_0x1d3ce4){switch(_0x1d3ce4){case'left':return c(_0x27bd9f,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x27bd9f,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x27bd9f,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x27bd9f,'FORMAT_JUSTIFY_TEXT');}}(_0x5f337f))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x17dcce{['afterInit'](){const _0x1810cf=this['editor'],_0xcfa696=_0x1810cf['plugins']['get']('TrackChangesEditing'),_0x22c987=_0x1810cf['locale'];for(const _0x39ee2d of Qt){if(!_0x1810cf['plugins']['has'](_0x39ee2d))continue;const _0x116099=_0x39ee2d['slice'](0x0,-0x7)['toLowerCase'](),_0x314e2f='FORMAT_'+_0x116099['toUpperCase']();_0xcfa696['enableDefaultAttributesIntegration'](_0x116099),_0xcfa696['registerInlineAttribute'](_0x116099),_0xcfa696['descriptionFactory']['registerAttributeLabel'](_0x116099,c(_0x22c987,_0x314e2f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1565d1=this['editor'],_0x3f2569=_0x1565d1['locale'],_0x426567=_0x1565d1['plugins']['get']('TrackChangesEditing');function _0x447b95(_0x52344b,_0x1bbed0){_0x426567['descriptionFactory']['registerDescriptionCallback'](_0x1acec1=>{if('formatInline'!=_0x1acec1['type'])return;const {data:_0x16950b}=_0x1acec1;return _0x16950b&&_0x16950b['commandName']===_0x52344b?_0x16950b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f2569,'*Format:*\x20%0',_0x1bbed0)}:{'type':'format','content':c(_0x3f2569,'*Remove\x20format:*\x20%0',_0x1bbed0)}:void 0x0;});}_0x447b95('bold',c(_0x3f2569,'FORMAT_BOLD')),_0x447b95('italic',c(_0x3f2569,'FORMAT_ITALIC')),_0x447b95('underline',c(_0x3f2569,'FORMAT_UNDERLINE')),_0x447b95('code',c(_0x3f2569,'FORMAT_CODE')),_0x447b95('strikethrough',c(_0x3f2569,'FORMAT_STRIKETHROUGH')),_0x447b95('subscript',c(_0x3f2569,'FORMAT_SUBSCRIPT')),_0x447b95('superscript',c(_0x3f2569,'FORMAT_SUPERSCRIPT'));}}class G extends _0x17dcce{['afterInit'](){const _0x5454b9=this['editor'],_0x1b5ed6=_0x5454b9['locale'];if(!_0x5454b9['plugins']['has']('BlockQuoteEditing'))return;const _0x2c2557=_0x5454b9['plugins']['get']('TrackChangesEditing'),_0x26ead7=this['editor']['commands']['get']('blockQuote');_0x2c2557['enableCommand']('blockQuote',(_0x3aef4d,_0x1fbfeb={})=>{const _0x34652b=this['editor']['model']['document']['selection'],_0x11c7b1=_0x1fbfeb&&void 0x0!==_0x1fbfeb['forceValue']?_0x1fbfeb['forceValue']:!_0x26ead7['value'];let _0x2f59e2=[];if(_0x11c7b1){const _0x32f3c2=Array['from'](_0x34652b['getSelectedBlocks']())['filter'](_0x4659ca=>Yt(_0x4659ca)||function(_0x4685d9,_0x46f349){const _0x1187c1=_0x46f349['checkChild'](_0x4685d9['parent'],'blockQuote'),_0x403563=_0x46f349['checkChild'](['$root','blockQuote'],_0x4685d9);return _0x1187c1&&_0x403563;}(_0x4659ca,this['editor']['model']['schema']));_0x2f59e2=Xt(_0x32f3c2,_0x5454b9['model']);}else{const _0x5dd3b3=Array['from'](_0x34652b['getSelectedBlocks']())['filter'](_0x97d2f6=>Yt(_0x97d2f6));_0x2f59e2=Xt(_0x5dd3b3,_0x5454b9['model']);}_0x5454b9['model']['change'](()=>{for(const _0x12bb04 of _0x2f59e2)_0x2c2557['markBlockFormat'](_0x12bb04,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x11c7b1}]});});}),_0x2c2557['descriptionFactory']['registerDescriptionCallback'](_0x13ae05=>{const {data:_0xa6711a}=_0x13ae05;if(_0xa6711a&&'blockQuote'==_0xa6711a['commandName']){const _0x825149=c(_0x1b5ed6,'ELEMENT_BLOCK_QUOTE');return _0xa6711a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1b5ed6,'*Set\x20format:*\x20%0',_0x825149)}:{'type':'format','content':c(_0x1b5ed6,'*Remove\x20format:*\x20%0',_0x825149)};}});}}function Yt(_0x328764){return'blockQuote'==_0x328764['parent']['name'];}class L extends _0x17dcce{['afterInit'](){const _0xf8d7d5=this['editor'],_0x1af3bc=_0xf8d7d5['locale'],_0x26ee5b=_0xf8d7d5['plugins']['get']('TrackChangesEditing');_0xf8d7d5['plugins']['has']('BookmarkEditing')&&(_0x26ee5b['enableCommand']('insertBookmark'),_0x26ee5b['enableDefaultAttributesIntegration']('updateBookmark'),_0x26ee5b['registerBlockAttribute']('bookmarkId'),_0x26ee5b['descriptionFactory']['registerDescriptionCallback'](_0x58cb8d=>{if('insertion'!=_0x58cb8d['type']&&'deletion'!=_0x58cb8d['type']&&'attribute'!=_0x58cb8d['type'])return;const _0x3207eb=_0x58cb8d['getContainedElement']();if(null==_0x3207eb)return;if(!_0x3207eb['is']('element','bookmark'))return;const _0x1fc551=_0x3207eb['getAttribute']('bookmarkId');if('insertion'==_0x58cb8d['type'])return{'type':'insertion','content':c(_0x1af3bc,'*Insert:*\x20%0','\x22'+_0x1fc551+'\x22\x20'+c(_0x1af3bc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x58cb8d['type'])return{'type':'deletion','content':c(_0x1af3bc,'*Remove:*\x20%0','\x22'+_0x1fc551+'\x22\x20'+c(_0x1af3bc,'ELEMENT_BOOKMARK'))};const {data:_0x2f53ca}=_0x58cb8d;if(!_0x2f53ca||'bookmarkId'!=_0x2f53ca['key'])return;return{'type':'format','content':c(_0x1af3bc,'*Set\x20bookmark:*\x20%0','\x22'+_0x2f53ca['newValue']+'\x22')};}));}}class J extends _0x17dcce{['afterInit'](){const _0x19bdf1=this['editor'];_0x19bdf1['plugins']['has']('CaseChange')&&(_0x19bdf1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19bdf1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19bdf1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x17dcce{['afterInit'](){const _0x499618=this['editor'];_0x499618['commands']['get']('ckbox')&&_0x499618['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x17dcce{['afterInit'](){const _0x57905a=this['editor'];if(!_0x57905a['plugins']['has']('CodeBlock'))return;const _0xfdd447=_0x57905a['plugins']['get']('TrackChangesEditing'),_0x37a927=_0x57905a['locale'],_0xf8ee73=_0x57905a['config']['get']('codeBlock')['languages'],_0x5a79c5=_0x57905a['commands']['get']('codeBlock');_0xfdd447['enableCommand']('indentCodeBlock'),_0xfdd447['enableCommand']('outdentCodeBlock'),_0xfdd447['enableCommand']('codeBlock',(_0x499c64,_0x8c355d={})=>{const _0x1be57e=_0x57905a['model'],_0x11b823=_0x57905a['model']['document']['selection'],_0x99498b=_0x8c355d&&void 0x0!==_0x8c355d['forceValue']?_0x8c355d['forceValue']:!_0x5a79c5['value'];let _0x2a3628;_0x8c355d['language']||(_0x8c355d['language']=_0xf8ee73[0x0]['language']),_0x2a3628=_0x99498b?Array['from'](_0x11b823['getSelectedBlocks']())['filter'](_0x43550c=>oo(_0x43550c)||function(_0x382b20,_0x17ae27){if(_0x382b20['is']('rootElement')||_0x17ae27['isLimit'](_0x382b20))return!0x1;return _0x17ae27['checkChild'](_0x382b20['parent'],'codeBlock');}(_0x43550c,_0x1be57e['schema'])):Array['from'](_0x11b823['getSelectedBlocks']())['filter'](_0x165ae9=>oo(_0x165ae9));const _0x154a31=Xt(_0x2a3628,_0x1be57e);_0x1be57e['change'](()=>{for(const _0x101a63 of _0x154a31)_0xfdd447['markBlockFormat'](_0x101a63,{'commandName':'codeBlock','commandParams':[{..._0x8c355d,'forceValue':_0x99498b}],'formatGroupId':'blockName'});});}),(_0xfdd447['descriptionFactory']['registerElementLabel']('codeBlock',_0x1cd4cf=>c(_0x37a927,'ELEMENT_CODE_BLOCK',_0x1cd4cf)),_0xfdd447['descriptionFactory']['registerDescriptionCallback'](_0x392d8b=>{if('formatBlock'!=_0x392d8b['type'])return;const _0x52ebbd=_0x37a927['t'],{data:_0x244867}=_0x392d8b;if(!_0x244867||'codeBlock'!=_0x244867['commandName'])return;const _0x394304=_0x244867['commandParams'][0x0]['language'],_0x26a44f=_0x52ebbd(_0xf8ee73['find'](_0x11fa9b=>_0x11fa9b['language']===_0x394304)['label'])['toLowerCase']();return _0x244867['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x37a927,'*Set\x20format:*\x20%0',c(_0x37a927,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x26a44f+')')}:{'type':'format','content':c(_0x37a927,'*Remove\x20format:*\x20%0',c(_0x37a927,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x6b40e){return'codeBlock'==_0x6b40e['name'];}class q extends _0x17dcce{['afterInit'](){const _0x365eef=this['editor'];if(!_0x365eef['plugins']['has']('CommentsEditing'))return;_0x365eef['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x4c4a4f,_0x51e339,_0x1cec70){const _0xcc2ec6=[];for(const _0x1937d9 of _0x51e339['getItems']())_0x1937d9['hasAttribute'](_0x4c4a4f)&&_0xcc2ec6['push'](_0x1cec70['createRangeOn'](_0x1937d9));return _0xcc2ec6;}function De(_0x25b713,_0xda041,{showActiveMarker:_0x2ae1a9=!0x0}={}){const _0x35be03=_0x25b713['plugins']['get']('TrackChangesEditing');return(_0x12c57f,_0x361d53,_0x6ec63c)=>{if(!_0x6ec63c['consumable']['test'](_0x361d53['markerRange'],_0x12c57f['name']))return;const _0x3793fd=_0x361d53['markerRange']['getWalker'](),_0x1a235f=_0x361d53['markerRange']['start'],_0x20d9a7=_0x25b713['model']['schema'];let _0x514218=null,_0x3046c3=null,_0x13d6e5=!0x1,_0x3ee24d=!0x1;for(const _0x221864 of _0x3793fd){const _0x5628d6=_0x221864['item'];_0x13d6e5=_0x13d6e5||_0x20d9a7['isContent'](_0x5628d6);const _0x3f518c=_0x6ec63c['mapper']['toViewElement'](_0x5628d6);if(_0x3f518c&&_0x3f518c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x221864['type']&&(_0x20d9a7['isBlock'](_0x5628d6)&&!_0x20d9a7['isLimit'](_0x5628d6)&&(_0x5628d6['nextSibling']||_0x1a235f['isAtEnd']?_0x514218&&_0x514218['parent']==_0x5628d6||(_0x514218=_0x5628d6,_0x1a988c(_0x221864['previousPosition']),_0x3ee24d=!0x0):_0x3046c3=_0x3046c3||_0x221864['previousPosition']));}function _0x1a988c(_0x192833){const {authorId:_0x38b316}=_0x35be03['_splitMarkerName'](_0x361d53['markerName']),_0x2d7cda=_0x6ec63c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xda041,'data-author-id':_0x38b316}),_0x74ed4c=_0x6ec63c['mapper']['toViewPosition'](_0x192833);_0x2ae1a9&&_0x35be03['activeMarkers']['includes'](_0x361d53['markerName'])&&_0x6ec63c['writer']['addClass']('ck-suggestion-marker--active',_0x2d7cda),_0x6ec63c['writer']['insert'](_0x74ed4c,_0x2d7cda),_0x6ec63c['mapper']['bindElementToMarker'](_0x2d7cda,_0x361d53['markerName']);}_0x13d6e5||_0x3ee24d||!_0x3046c3||_0x1a988c(_0x3046c3);};}class z extends _0x17dcce{static get['requires'](){return[_0x3b311d];}['init'](){const _0x66123b=this['editor'],_0x38b2f5=_0x66123b['plugins']['get']('TrackChangesEditing');_0x38b2f5['enableCommand']('delete');const _0x158bb9=_0x66123b['commands']['get']('deleteForward');_0x38b2f5['enableCommand']('deleteForward',(_0x15c054,_0x4f0525={})=>{const _0x1f7bfd=_0x66123b['model']['createSelection'](_0x66123b['model']['document']['selection']);_0x1f7bfd['isCollapsed']&&_0x66123b['model']['modifySelection'](_0x1f7bfd,{'direction':'forward','unit':_0x4f0525['unit']});const _0x3c7804=_0x1f7bfd['getFirstRange'](),_0x1d5086=_0x2887d8['fromRange'](_0x3c7804);let _0x1b0e50;_0x15c054(_0x4f0525),_0x1b0e50='$graveyard'==_0x1d5086['root']['rootName']?_0x66123b['model']['createRange'](_0x3c7804['start']):_0x66123b['model']['createRange'](_0x1d5086['start'],_0x1d5086['end']),_0x1d5086['detach'](),_0x66123b['model']['enqueueChange'](_0x158bb9['buffer']['batch'],_0x30293d=>{_0x158bb9['buffer']['lock'](),_0x30293d['setSelection'](_0x30293d['createRange'](_0x1b0e50['end'])),_0x158bb9['buffer']['unlock']();});}),_0x66123b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x66123b,'merge'),{'priority':'high'}),_0x66123b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3abbdd,_0x47edc0,_0x59166d)=>{_0x59166d['options']['showSuggestionHighlights']&&De(_0x66123b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3abbdd,_0x47edc0,_0x59166d);},{'priority':'high'}),_0x66123b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x52d96b,_0x4aa28d,_0x483dc1)=>{const _0x335762=_0x483dc1['mapper']['markerNameToElements'](_0x4aa28d['markerName']);if(_0x335762){for(const _0x1adfe8 of _0x335762)_0x1adfe8['is']('uiElement')&&(_0x483dc1['mapper']['unbindElementFromMarkerName'](_0x1adfe8,_0x4aa28d['markerName']),_0x483dc1['writer']['remove'](_0x1adfe8));}},{'priority':'high'});}}class W extends _0x17dcce{['afterInit'](){const _0x4b2508=this['editor'];if(!_0x4b2508['plugins']['has']('ListEditing'))return;const _0x235eb4=_0x4b2508['locale'],_0x2eea0e=_0x4b2508['plugins']['get']('TrackChangesEditing'),_0x5693c3=_0x4b2508['plugins']['has']('TodoListEditing'),_0x4a284d=!!_0x4b2508['config']['get']('list.multiBlock');function _0x26481e(_0x564bd6){return{'type':'format','content':''+c(_0x235eb4,'*Set\x20format:*\x20%0',_0x564bd6)};}function _0x3a73c3(_0x134d3c){return{'type':'format','content':''+c(_0x235eb4,'*Remove\x20format:*\x20%0',_0x134d3c)};}_0x2eea0e['enableDefaultAttributesIntegration']('numberedList'),_0x2eea0e['enableDefaultAttributesIntegration']('bulletedList'),_0x2eea0e['enableDefaultAttributesIntegration']('customNumberedList'),_0x2eea0e['enableDefaultAttributesIntegration']('customBulletedList'),_0x2eea0e['enableDefaultAttributesIntegration']('indentList'),_0x2eea0e['enableDefaultAttributesIntegration']('outdentList'),_0x2eea0e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2eea0e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2eea0e['registerBlockAttribute']('listItemId'),_0x2eea0e['registerBlockAttribute']('listType'),_0x2eea0e['registerBlockAttribute']('listIndent'),_0x4a284d&&(_0x2eea0e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2eea0e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5693c3&&(_0x2eea0e['enableDefaultAttributesIntegration']('todoList'),_0x2eea0e['enableDefaultAttributesIntegration']('checkTodoList'),_0x2eea0e['registerBlockAttribute']('todoListChecked'),_0x2eea0e['descriptionFactory']['registerDescriptionCallback'](_0x1b6289=>{const {data:_0x518455}=_0x1b6289;if(_0x518455&&'todoListChecked'==_0x518455['key'])return{'type':'format','content':_0x518455['newValue']?c(_0x235eb4,'*Check\x20item*'):c(_0x235eb4,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5c3156=>{if(_0x5c3156['batch']['isUndo'])return!0x1;let _0x2189ee=!0x1;const _0x38b57c=_0x2eea0e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1250f0=>'todoListChecked'===_0x2eea0e['_getAttributeKey'](_0x1250f0));for(const _0x2bcabe of _0x38b57c){'todo'!=_0x2bcabe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2eea0e['_findSuggestions'](_0x2bcabe['getFirstRange'](),'attribute')['find'](_0x3b4131=>'listType'===_0x2eea0e['_getAttributeKey'](_0x3b4131['suggestion']))||(_0x5c3156['removeMarker'](_0x2bcabe['getFirstMarker']()),_0x2189ee=!0x0));}return _0x2189ee;})),_0x2eea0e['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x235eb4,'FORMAT_INDENT'));const _0x38c9a9={'type':'format','content':''};_0x2eea0e['descriptionFactory']['registerDescriptionCallback'](_0x7421e4=>{const {data:_0xb7845b}=_0x7421e4;if(!_0xb7845b||'listType'!=_0xb7845b['key'])return;let _0x10e804=_0x7421e4['head'];for(;_0x10e804;){if(_0x10e804['data']&&(('listStyle'==_0x10e804['data']['key']||'listMarkerStyle'==_0x10e804['data']['key'])&&(_0x10e804['data']['newValue']&&'default'!=_0x10e804['data']['newValue']||'default'!=_0x10e804['data']['oldValue']&&!_0xb7845b['newValue'])||!_0x4a284d&&_0x10e804['data']['key']==u))return _0x38c9a9;_0x10e804=_0x10e804['next'];}if(null==_0xb7845b['newValue'])switch(_0xb7845b['oldValue']){case'bulleted':return _0x3a73c3(c(_0x235eb4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a73c3(c(_0x235eb4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a73c3(c(_0x235eb4,'ELEMENT_TODO_LIST'));}switch(_0xb7845b['newValue']){case'bulleted':return _0x26481e(c(_0x235eb4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x26481e(c(_0x235eb4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x26481e(c(_0x235eb4,'ELEMENT_TODO_LIST'));}}),_0x2eea0e['descriptionFactory']['registerDescriptionCallback'](_0x594f9c=>{const {data:_0x3735f0}=_0x594f9c;if(_0x3735f0&&'listIndent'==_0x3735f0['key'])return null==_0x3735f0['newValue']||null==_0x3735f0['oldValue']&&0x0==_0x3735f0['newValue']?_0x38c9a9:void 0x0;}),_0x2eea0e['descriptionFactory']['registerDescriptionCallback'](_0x175293=>{if('attribute'!=_0x175293['type'])return;const {data:_0x281076}=_0x175293;if(!_0x281076||'listItemId'!=_0x281076['key'])return;const _0x12c6b1=Te(_0x175293);return'newValue'==_0x12c6b1?{'type':'format','content':c(_0x235eb4,'*Merge:*\x20list\x20item')}:'oldValue'==_0x12c6b1?{'type':'format','content':c(_0x235eb4,'*Split:*\x20list\x20item')}:_0x38c9a9;}),_0x4b2508['model']['document']['registerPostFixer'](_0x38a730=>this['listItemIdFixer'](_0x38a730)),_0x4b2508['model']['document']['registerPostFixer'](_0x385287=>this['noTrackChangesFixer'](_0x385287)),_0x4b2508['model']['document']['on']('change:data',(_0x303f12,_0x5e2123)=>{if(_0x5e2123['isUndo']||!_0x5e2123['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x580651){if(_0x580651['batch']['isUndo']||!_0x580651['batch']['isLocal'])return!0x1;let _0x43d98e=!0x1;const _0x2a68f0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54205e=>_0x54205e['data']&&'listItemId'==_0x54205e['data']['key'])['filter'](_0x4f270e=>_0x4f270e['data']['newValue']&&_0x4f270e['data']['oldValue']);for(const _0x5bfd41 of _0x2a68f0)Te(_0x5bfd41)||(_0x580651['removeMarker'](_0x5bfd41['getFirstMarker']()),_0x43d98e=!0x0);return _0x43d98e;}['noTrackChangesFixer'](_0x48b026){if(_0x48b026['batch']['isUndo']||!_0x48b026['batch']['isLocal'])return!0x1;const _0xb8efda=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb8efda['trackChangesCommand']['value'])return!0x1;let _0x23f4b0=!0x1;const _0x1caaec=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x264db8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x41a1bb=>'attribute'==_0x41a1bb['type'])['filter'](_0x49af91=>_0x1caaec['includes'](_0x49af91['attributeKey']));if(0x0==_0x264db8['length'])return _0x23f4b0;for(const _0x263391 of _0x264db8){const _0x6ed7b3=_0xb8efda['_findSuggestions'](_0x263391['range'],'attribute')['filter'](_0x28befc=>!_0x28befc['meta']['isNextTo'])['map'](_0x1d3049=>_0x1d3049['suggestion'])['filter'](_0x4153c2=>{const _0x920702=_0xb8efda['_getAttributeKey'](_0x4153c2);return _0x1caaec['includes'](_0x920702);});if(_0x6ed7b3['length']){for(const _0x29de52 of _0x6ed7b3)_0x48b026['removeMarker'](_0x29de52['getFirstMarker']());_0x23f4b0=!0x0;}}return _0x23f4b0;}['assureChains'](){const _0x1e86d9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c5a6c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2e9d1f;const _0x28074f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ce7cf=>{if(_0x1ce7cf['data']['oldRange']||!_0x1ce7cf['data']['newRange'])return null;if(!_0x1ce7cf['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e7aac}=_0x1e86d9['_splitMarkerName'](_0x1ce7cf['name']);if(!_0x1e86d9['hasSuggestion'](_0x1e7aac))return null;const _0x2349bb=_0x1e86d9['getSuggestion'](_0x1e7aac);return _0x1c5a6c['includes'](_0x2349bb['data']['key']);})['map'](_0x429171=>{const {id:_0x3ee148}=_0x1e86d9['_splitMarkerName'](_0x429171['name']),_0xd58e33=_0x1e86d9['getSuggestion'](_0x3ee148);return _0x2e9d1f=_0xd58e33['attributes']['groupId'],_0xd58e33['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x28074f['size'])return;const _0x11ac07=_0x1e86d9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21240a=>'attribute'==_0x21240a['type']&&_0x21240a['data']&&_0x1c5a6c['includes'](_0x21240a['data']['key'])&&_0x21240a['attributes']['groupId']!=_0x2e9d1f)['map'](_0x50b83b=>({'listItem':_0x50b83b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x50b83b['attributes']['groupId']})),_0x4ce2c5=new Set();for(const {groupId:_0x5b890e,listItem:_0xd1bb8c}of _0x11ac07)_0x28074f['has'](_0xd1bb8c)&&_0x4ce2c5['add'](_0x5b890e);for(const _0x24e16b of _0x1e86d9['getSuggestions']())_0x4ce2c5['has'](_0x24e16b['attributes']['groupId'])&&_0x24e16b['setAttribute']('groupId',_0x2e9d1f);}['_supportLegacySuggestions'](){const _0x33084f=this['editor'],_0x5df8ab=_0x33084f['locale'],_0x5d2ef9=_0x33084f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d2ef9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5c807e,_0x556610){const _0x214e76=[];for(let _0x348917 of _0x5c807e)_0x348917['start']['nodeAfter']===_0x348917['end']['parent']&&(_0x348917=_0x33084f['model']['createRange'](_0x33084f['model']['createPositionAt'](_0x348917['start']['nodeAfter'],0x0))),_0x214e76['push'](_0x348917);_0x33084f['model']['change'](_0x465a06=>{const _0x1b83c0=_0x33084f['model']['document']['selection'],_0x55a705=Array['from'](_0x1b83c0['getRanges']())['map'](_0x2f7101=>_0x2887d8['fromRange'](_0x2f7101));_0x465a06['setSelection'](_0x214e76),_0x33084f['commands']['get'](_0x556610['commandName'])['refresh'](),_0x556610['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x33084f['execute'](_0x556610['commandName'],..._0x556610['commandParams']),_0x465a06['setSelection'](_0x55a705);for(const _0x17d962 of _0x55a705)_0x17d962['detach']();});}),_0x5d2ef9['descriptionFactory']['registerElementLabel'](function(_0x2c710e){const _0x1a86b7=!_0x33084f['model']['schema']['isObject'](_0x2c710e),_0x4cdf30=_0x2c710e['previousSibling'],_0x1b5462=_0x2c710e['nextSibling'],_0x1bbbf4=_0x2c710e['getAttribute']('listItemId'),_0x45cb83=!_0x4cdf30||_0x4cdf30['getAttribute']('listItemId')!==_0x1bbbf4,_0x4f3625=!_0x1b5462||_0x1b5462['getAttribute']('listItemId')!==_0x1bbbf4;return _0x1a86b7&&Boolean(_0x1bbbf4)&&_0x45cb83&&_0x4f3625;},_0xbf90db=>c(_0x5df8ab,'ELEMENT_LIST_ITEM',_0xbf90db));}['_registerLegacyDescription'](){const _0x22f369=this['editor'],_0x14de1c=_0x22f369['locale'];function _0x5411bf(_0x5e82f9){const _0x55b9aa=_0x22f369['commands']['get']('bulletedList')['value'],_0x2b8c41=_0x22f369['commands']['get']('numberedList')['value'];return'numberedList'===_0x5e82f9?_0x55b9aa:_0x2b8c41;}_0x22f369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3f2844){if('formatBlock'!=_0x3f2844['type'])return;const {data:_0x22a659}=_0x3f2844;if(!_0x22a659)return;let _0x26bb7b,_0x7e5234,_0x171c77,_0x1d1688;switch(_0x22a659['commandName']){case'bulletedList':_0x171c77=_0x22a659['commandParams'][0x0]['forceValue'],_0x1d1688=_0x5411bf(_0x22a659['commandName']),_0x26bb7b=_0x171c77?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d1688&&_0x22f369['config']['get']('list.multiBlock')||(_0x26bb7b='*Change\x20to:*\x20%0'),_0x7e5234={'type':'format','content':c(_0x14de1c,_0x26bb7b,c(_0x14de1c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x171c77=_0x22a659['commandParams'][0x0]['forceValue'],_0x1d1688=_0x5411bf(_0x22a659['commandName']),_0x26bb7b=_0x171c77?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d1688&&_0x22f369['config']['get']('list.multiBlock')||(_0x26bb7b='*Change\x20to:*\x20%0'),_0x7e5234={'type':'format','content':c(_0x14de1c,_0x26bb7b,c(_0x14de1c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x26bb7b='*Indent:*\x20%0',_0x7e5234={'type':'format','content':c(_0x14de1c,_0x26bb7b,c(_0x14de1c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x26bb7b=function(_0x41ba70){const _0xf2919f=_0x41ba70['getFirstRange']();let _0x48671a=_0xf2919f['start']['nodeAfter'];for(;_0x48671a&&_0xf2919f['containsItem'](_0x48671a);){if(_0x48671a['getAttribute']('listIndent')>0x0)return!0x1;_0x48671a=_0x48671a['nextSibling'];}return!0x0;}(_0x3f2844)?c(_0x14de1c,'*Format:*\x20remove\x20from\x20%0',c(_0x14de1c,function(_0x49cea8){return'ELEMENT_'+_0x49cea8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3f2844))):c(_0x14de1c,'*Outdent:*\x20%0',c(_0x14de1c,'ELEMENT_LIST_ITEM')),_0x7e5234={'type':'format','content':_0x26bb7b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x22a659['multipleBlocks']&&(_0x26bb7b='*Merge:*\x20%0',_0x7e5234={'type':'deletion','content':c(_0x14de1c,_0x26bb7b,c(_0x14de1c,'ELEMENT_LIST_ITEM'))});}return _0x7e5234;});}}function Te(_0xfd331b){let _0x467f5c=_0xfd331b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x467f5c;){const _0x1af889=_0x467f5c['getAttribute']('listItemId');if(!_0x1af889)return!0x1;if(_0x1af889==_0xfd331b['data']['newValue'])return'newValue';if(_0x1af889==_0xfd331b['data']['oldValue'])return'oldValue';_0x467f5c=_0x467f5c['previousSibling'];}return!0x1;}class Se extends _0x17dcce{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x344746=this['editor']['config']['get']('list.properties'),_0x20aadc=this['editor']['plugins']['get']('TrackChangesEditing');_0x344746['styles']&&(_0x20aadc['enableDefaultAttributesIntegration']('listStyle'),_0x20aadc['registerBlockAttribute']('listStyle')),_0x344746['reversed']&&(_0x20aadc['enableDefaultAttributesIntegration']('listReversed'),_0x20aadc['registerBlockAttribute']('listReversed')),_0x344746['startIndex']&&(_0x20aadc['enableDefaultAttributesIntegration']('listStart'),_0x20aadc['registerBlockAttribute']('listStart'));const _0x22265e={'type':'format','content':''};_0x20aadc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x143c71=this['editor']['locale'];_0x20aadc['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x143c71,'FORMAT_LIST_REVERSED')),_0x20aadc['descriptionFactory']['registerDescriptionCallback'](_0x3b99d3=>{const {data:_0x1f8474}=_0x3b99d3;if(_0x1f8474&&'listReversed'==_0x1f8474['key'])return null==_0x1f8474['newValue']||0x0==_0x1f8474['newValue']&&null==_0x1f8474['oldValue']?_0x22265e:void 0x0;}),_0x20aadc['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x143c71,'FORMAT_LIST_START')),_0x20aadc['descriptionFactory']['registerDescriptionCallback'](_0x162626=>{const {data:_0xf1102d}=_0x162626;if(_0xf1102d&&'listStart'==_0xf1102d['key'])return null==_0xf1102d['newValue']||0x1==_0xf1102d['newValue']&&null==_0xf1102d['oldValue']?_0x22265e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b429d=>{if(_0x4b429d['batch']['isUndo'])return!0x1;let _0x1190de=!0x1;const _0x381107=_0x20aadc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20bc91=>{const _0x186d59=_0x20aadc['_getAttributeKey'](_0x20bc91);return'listStart'==_0x186d59||'listReversed'==_0x186d59;});for(const _0x521350 of _0x381107){const _0x5d230b=_0x521350['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5d230b||'customNumbered'==_0x5d230b)continue;_0x20aadc['_findSuggestions'](_0x521350['getFirstRange'](),'attribute')['find'](_0xe08429=>'listType'==_0x20aadc['_getAttributeKey'](_0xe08429['suggestion']))||(_0x4b429d['removeMarker'](_0x521350['getFirstMarker']()),_0x1190de=!0x0);}return _0x1190de;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5620d7){const _0x286c9f=this['editor']['locale'],{data:_0x3f290a}=_0x5620d7,_0x5ee143={'type':'format','content':''};if(!_0x3f290a||'listStyle'!=_0x3f290a['key'])return;if(!_0x3f290a['oldValue'])return'default'==_0x3f290a['newValue']?_0x5ee143:{'type':'format','content':''+c(_0x286c9f,'*Set\x20format:*\x20%0',c(_0x286c9f,this['_getTranslationKeyForListStyle'](_0x3f290a['newValue'])))};if(!_0x3f290a['newValue']){if('default'==_0x3f290a['oldValue'])return _0x5ee143;let _0x182306=_0x5620d7['head'];for(;_0x182306;){if(_0x182306['data']&&'listType'==_0x182306['data']['key']&&_0x182306['data']['newValue'])return _0x5ee143;_0x182306=_0x182306['next'];}return{'type':'format','content':''+c(_0x286c9f,'*Remove\x20format:*\x20%0',c(_0x286c9f,this['_getTranslationKeyForListStyle'](_0x3f290a['oldValue'])))};}if('default'!=_0x3f290a['newValue'])return{'type':'format','content':''+c(_0x286c9f,'*Set\x20format:*\x20%0',c(_0x286c9f,this['_getTranslationKeyForListStyle'](_0x3f290a['newValue'])))};let _0x18ab9d=_0x5620d7['head'];for(;_0x18ab9d;){if(_0x18ab9d['data']&&'listType'==_0x18ab9d['data']['key']&&_0x18ab9d['data']['newValue']&&_0x18ab9d['data']['oldValue'])return _0x5ee143;_0x18ab9d=_0x18ab9d['next'];}return{'type':'format','content':c(_0x286c9f,'*Set\x20format:*\x20%0',c(_0x286c9f,'ELEMENT_'+_0x5620d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xffa390=this['editor'],_0x5daf6e=_0xffa390['locale'];_0xffa390['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ad933=>{if('formatBlock'!=_0x5ad933['type'])return;const {data:_0x3bac14}=_0x5ad933;if(!_0x3bac14)return;let _0x1d9f07,_0xf40715;switch(_0x3bac14['commandName']){case'listStyle':_0x1d9f07='*Change\x20to:*\x20%0',_0xf40715={'type':'format','content':c(_0x5daf6e,_0x1d9f07,c(_0x5daf6e,this['_getTranslationKeyForListStyle'](_0x3bac14['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d9f07=_0x3bac14['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf40715={'type':'format','content':c(_0x5daf6e,_0x1d9f07)};break;case'listStart':_0x1d9f07='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf40715={'type':'format','content':c(_0x5daf6e,_0x1d9f07,_0x3bac14['commandParams'][0x0]['startIndex'])};}return _0xf40715;});}['_getTranslationKeyForListStyle'](_0x3516e5){return'ELEMENT_'+function(_0x3e411f){if(_e['includes'](_0x3e411f))return'bulleted';if(Re['includes'](_0x3e411f))return'numbered';return null;}(_0x3516e5)['toUpperCase']()+'_LIST_'+_0x3516e5['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x17dcce{static get['requires'](){return[_0x4c591b];}['init'](){const _0x1558e0=this['editor'],_0x13fdc5=_0x1558e0['plugins']['get']('TrackChangesEditing'),_0x4a6706=_0x1558e0['commands']['get']('enter');_0x13fdc5['enableCommand']('enter',()=>{_0x1558e0['model']['change'](_0x411f60=>{const _0x36eea6=_0x1558e0['model']['document']['selection'],_0x4f2e92=_0x36eea6['getFirstPosition'](),_0x34eb4d=_0x2887d8['fromRange'](_0x36eea6['getFirstRange']());if(_0x4a6706['enterBlock'](_0x411f60)){const _0x415400=_0x1558e0['model']['createPositionAt'](_0x4f2e92['parent']['nextSibling'],0x0),_0x1cf912=_0x411f60['createRange'](_0x4f2e92,_0x415400);_0x13fdc5['markInsertion'](_0x1cf912);}else _0x411f60['setSelection'](_0x411f60['createRange'](_0x34eb4d['end']));_0x34eb4d['detach'](),_0x4a6706['fire']('afterExecute',{'writer':_0x411f60});});}),_0x1558e0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1558e0,'split'),{'priority':'high'}),_0x1558e0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3a63bf,_0x284dac,_0x339709)=>{const _0x24f440=_0x339709['mapper']['markerNameToElements'](_0x284dac['markerName']);if(_0x24f440){for(const _0x5aeb00 of _0x24f440)_0x5aeb00['hasClass']('ck-suggestion-marker-split')&&(_0x339709['mapper']['unbindElementFromMarkerName'](_0x5aeb00,_0x284dac['markerName']),_0x339709['writer']['remove'](_0x5aeb00));}},{'priority':'high'}),_0x1558e0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x295fa3,_0x4a184f,_0x16a947)=>{_0x16a947['options']['showSuggestionHighlights']&&De(_0x1558e0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x295fa3,_0x4a184f,_0x16a947);},{'priority':'high'});}}class Y extends _0x17dcce{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x55ae65=this['editor']['plugins']['get']('TrackChangesEditing');_0x55ae65['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x55ae65['enableCommand']('findNext'),_0x55ae65['enableCommand']('findPrevious'),_0x55ae65['enableCommand']('replace'),_0x55ae65['enableCommand']('replaceAll');}['handleFindCommand'](_0x282c63,_0x2c5cd3,_0x3e78ef={}){const _0x10ac64=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x282c63(_0x46b47b=>{let _0xcfa812=('string'==typeof _0x2c5cd3?_0x10ac64['findByTextCallback'](_0x2c5cd3,_0x3e78ef):_0x2c5cd3)(_0x46b47b);Array['isArray'](_0xcfa812)&&(_0xcfa812={'results':_0xcfa812,'searchText':'string'==typeof _0x2c5cd3?_0x2c5cd3:''});const _0x571937=_0xcfa812['results']['filter'](_0x58bba3=>!0x1===this['_isInDeletionRange'](_0x58bba3,_0x46b47b['item']));return{..._0xcfa812,'results':_0x571937};},_0x3e78ef);}['_isInDeletionRange'](_0x51494c,_0x5be3c0){const _0x127814=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5be3c0,_0x51494c['start']),this['editor']['model']['createPositionAt'](_0x5be3c0,_0x51494c['end']));for(const _0x5067e8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x127814['getIntersection'](_0x5067e8['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x17dcce{['afterInit'](){const _0xdb0ce6=this['editor']['locale'],_0x42bdf3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x26d635,commandName:_0x18f2d2}of to)this['editor']['plugins']['has'](_0x26d635)&&(_0x42bdf3['enableDefaultAttributesIntegration'](_0x18f2d2),_0x42bdf3['registerInlineAttribute'](_0x18f2d2));_0x42bdf3['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xdb0ce6,'FORMAT_FONT_SIZE')),_0x42bdf3['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xdb0ce6,'FORMAT_FONT_FAMILY')),_0x42bdf3['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xdb0ce6,'FORMAT_FONT_COLOR')),_0x42bdf3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xdb0ce6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25bc89=this['editor'],_0x4b99b3=_0x25bc89['locale'];_0x25bc89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1596b3=>{const _0x5d9f3a=_0x4b99b3['t'];if('formatInline'!=_0x1596b3['type'])return;const {data:_0x4e2b44}=_0x1596b3;if(null!=_0x4e2b44){if('fontSize'==_0x4e2b44['commandName']){const _0x21ab26=_0x4e2b44['commandParams'][0x0]['value'];if(_0x21ab26){const _0x3de393=_0x5d9f3a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2f58c7=>_0x2f58c7['model']==_0x21ab26)['title'])['toLowerCase']();return{'type':'format','content':c(_0x4b99b3,'*Set\x20font\x20size:*\x20%0',_0x3de393)};}return{'type':'format','content':c(_0x4b99b3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4e2b44['commandName']){const _0x11f2f0=_0x4e2b44['commandParams'][0x0]['value'];return _0x11f2f0?{'type':'format','content':c(_0x4b99b3,'*Set\x20font\x20family:*\x20%0',_0x11f2f0)}:{'type':'format','content':c(_0x4b99b3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4e2b44['commandName']){const _0xd869b9=_0x4e2b44['commandParams'][0x0]['value'];if(_0xd869b9){const _0x478b4c=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0x30c58c=>_0x30c58c['model']==_0xd869b9);let _0x159414=_0xd869b9,_0x56d84e='';return _0x478b4c&&(_0x159414=_0x478b4c['label'],_0x56d84e=_0x5d9f3a(_0x159414)['toLowerCase']()),{'type':'format','content':c(_0x4b99b3,'*Set\x20font\x20color:*\x20%0',_0x56d84e)['trim'](),'color':{'value':_0xd869b9,'title':_0x56d84e||_0x159414}};}return{'type':'format','content':c(_0x4b99b3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4e2b44['commandName']){const _0x3924e2=_0x4e2b44['commandParams'][0x0]['value'];if(_0x3924e2){const _0xec96a0=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x86cd32=>_0x86cd32['model']==_0x3924e2);let _0x577249=_0x3924e2,_0x42386a='';return _0xec96a0&&(_0x577249=_0xec96a0['label'],_0x42386a=_0x5d9f3a(_0x577249)['toLowerCase']()),{'type':'format','content':c(_0x4b99b3,'*Set\x20font\x20background\x20color:*\x20%0',_0x42386a)['trim'](),'color':{'value':_0x3924e2,'title':_0x42386a||_0x577249}};}return{'type':'format','content':c(_0x4b99b3,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x17dcce{['afterInit'](){const _0x2b689f=this['editor'],_0x4ce052=_0x2b689f['plugins']['get']('TrackChangesEditing'),_0x1c8fcc=_0x2b689f['commands']['get']('copyFormat'),_0x38af1b=_0x2b689f['commands']['get']('pasteFormat');_0x1c8fcc&&_0x38af1b&&(_0x4ce052['enableDefaultAttributesIntegration']('pasteFormat'),_0x4ce052['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x43bc6d=this['editor'],_0x39e827=_0x43bc6d['locale'];_0x43bc6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x589178=>{if('formatBlock'!=_0x589178['type']&&'formatInline'!=_0x589178['type'])return;const {data:_0x3adfe3}=_0x589178;if(_0x3adfe3&&'pasteFormat'===_0x3adfe3['commandName']){const _0x112ad3=[],_0x685a92=_0x3adfe3['commandParams'][0x0];for(const [_0x13a2f5,_0x233f99]of Object['entries'](_0x685a92))_0x112ad3['push'](ro(_0x43bc6d,_0x13a2f5,_0x233f99));return _0x112ad3['length']?{'type':'format','content':c(_0x39e827,'*Set\x20format\x20to:*\x20%0',_0x112ad3['join'](',\x20'))}:{'type':'format','content':c(_0x39e827,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x53b02f,_0x1e4bd4,_0x47e5fe){const _0x4bd35f=_0x53b02f['locale']['t'],_0xb714e=_0x1e4bd4['split'](/(?=[A-Z])/)['join']('\x20'),_0x4d83bb=_0x4bd35f(_0xb714e['charAt'](0x0)['toUpperCase']()+_0xb714e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x47e5fe)return _0x4d83bb;if('fontColor'===_0x1e4bd4||'fontBackgroundColor'===_0x1e4bd4){const _0x38b8a5=Zt(_0x53b02f['config']['get']('fontColor.colors'))['find'](_0x32c8ed=>_0x32c8ed['model']==_0x47e5fe);return _0x4d83bb+'\x20('+(_0x38b8a5?_0x4bd35f(_0x38b8a5['label'])['toLowerCase']():_0x47e5fe)+')';}if('fontSize'===_0x1e4bd4&&isNaN(parseFloat(_0x47e5fe))){const _0x592d7f=_0x53b02f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x53b02f['config']['get']('fontSize.options'))['find'](_0x31e152=>_0x31e152['model']==_0x47e5fe);return _0x4d83bb+'\x20('+(_0x592d7f?_0x4bd35f(_0x592d7f['title'])['toLowerCase']():_0x47e5fe)+')';}return _0x4d83bb+'\x20('+_0x47e5fe+')';}class et extends _0x17dcce{['_headingOptions'];['afterInit'](){const _0x29880f=this['editor'];if(!_0x29880f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29880f['config']['get']('heading.options');const _0xdd8bc3=_0x29880f['locale'],_0x46a904=_0x29880f['plugins']['get']('TrackChangesEditing');_0x46a904['enableDefaultAttributesIntegration']('heading');for(const _0x20de82 of this['_headingOptions'])'paragraph'!=_0x20de82['model']&&_0x46a904['descriptionFactory']['registerElementLabel'](_0x20de82['model'],_0xaecacf=>{const _0x31be25=this['_getHeadingLevel'](_0x20de82['model']);return null!==_0x31be25?_0x1e3428(_0xaecacf,_0x31be25):_0x328046(_0xaecacf,_0x20de82['title']);});function _0x1e3428(_0x284d78,_0x4ad035){return c(_0xdd8bc3,'ELEMENT_HEADING',[_0x284d78,_0x4ad035]);}function _0x328046(_0x270923,_0x356ef1){return c(_0xdd8bc3,'ELEMENT_HEADING_CUSTOM',[_0x270923,_0x356ef1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6ac53=this['editor'],_0x15839a=_0xb6ac53['locale'];function _0x2ea094(_0x23b98c,_0xa843d7){return c(_0x15839a,'ELEMENT_HEADING_CUSTOM',[_0x23b98c,_0xa843d7]);}_0xb6ac53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274535=>{if('formatBlock'!=_0x274535['type'])return;const {data:_0x54bf29}=_0x274535;if(_0x54bf29&&'heading'==_0x54bf29['commandName']){const _0x46b6be=_0x54bf29['commandParams'][0x0]['value'],_0x5d4e88=this['_getHeadingLevel'](_0x46b6be);if(null!==_0x5d4e88)return{'type':'format','content':c(_0x15839a,'*Change\x20to:*\x20%0',(_0x4d42ad=0x1,_0x232b24=_0x5d4e88,c(_0x15839a,'ELEMENT_HEADING',[_0x4d42ad,_0x232b24])))};const _0x534335=this['_headingOptions']['find'](_0x1b3a06=>_0x1b3a06['model']===_0x46b6be)['title'];return{'type':'format','content':c(_0x15839a,'*Change\x20to:*\x20%0',_0x2ea094(0x1,_0x534335))};}var _0x4d42ad,_0x232b24;});}['_getHeadingLevel'](_0x34dd50){const _0x2fb04f=_0x34dd50['match'](/^heading(\d+)/);if(_0x2fb04f)return _0x2fb04f[0x1];const _0x44b20b=this['_headingOptions']?.['find'](_0x3d2685=>_0x3d2685['model']==_0x34dd50);if(_0x44b20b&&_0x44b20b['view']){const _0x513297=_0x44b20b['view'],_0x288383=(_0x513297['name']??_0x513297)['match'](/^h(\d+)/);if(_0x288383)return _0x288383[0x1];}return null;}}class nt extends _0x17dcce{['afterInit'](){const _0x14b01d=this['editor'];if(!_0x14b01d['plugins']['has']('HighlightEditing'))return;const _0xdaf63c=_0x14b01d['plugins']['get']('TrackChangesEditing'),_0x59e229=_0x14b01d['locale'];_0xdaf63c['enableDefaultAttributesIntegration']('highlight'),_0xdaf63c['registerInlineAttribute']('highlight'),_0xdaf63c['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x59e229,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e4f08=this['editor'],_0x5cbb7f=_0x3e4f08['locale'];_0x3e4f08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23ba5f=>{if('formatInline'!=_0x23ba5f['type'])return;const {data:_0x3c7b7b}=_0x23ba5f;if(_0x3c7b7b&&'highlight'==_0x3c7b7b['commandName']){const _0x5bafc4=_0x5cbb7f['t'],_0x8c80a7=_0x3c7b7b['commandParams'][0x0]['value'];if(_0x8c80a7){const _0x360077=_0x3e4f08['config']['get']('highlight.options')['find'](_0x5137c8=>_0x5137c8['model']==_0x8c80a7),_0x324fa8=_0x5bafc4(_0x360077['title'])['toLowerCase']();return{'type':'format','content':c(_0x5cbb7f,'*Set\x20highlight:*\x20%0',_0x324fa8),'color':{'value':_0x360077['color'],'title':_0x360077['title']}};}return{'type':'format','content':c(_0x5cbb7f,'*Remove\x20highlight*',c(_0x5cbb7f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x17dcce{['afterInit'](){const _0x1e87f5=this['editor'];if(!_0x1e87f5['plugins']['has']('HorizontalLineEditing'))return;_0x1e87f5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4bcc00=_0x1e87f5['plugins']['get']('TrackChangesEditing'),_0x11df0c=_0x1e87f5['locale'];_0x4bcc00['descriptionFactory']['registerElementLabel']('horizontalLine',_0x53d53b=>c(_0x11df0c,'ELEMENT_HORIZONTAL_LINE',_0x53d53b)),_0x1e87f5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x290908,{writer:_0x2fb70a,options:_0x5aba82})=>{if(!_0x5aba82['showSuggestionHighlights'])return null;const _0x3c62f5=_0x2fb70a['createContainerElement']('div'),_0x4403e4=_0x2fb70a['createEmptyElement']('hr');return _0x2fb70a['addClass']('ck-horizontal-line',_0x3c62f5),_0x2fb70a['insert'](_0x2fb70a['createPositionAt'](_0x3c62f5,0x0),_0x4403e4),_0x3c62f5;},'converterPriority':'high'});}}class st extends _0x17dcce{['afterInit'](){const _0x1be826=this['editor'];if(!_0x1be826['plugins']['has']('HtmlEmbed'))return;const _0x8af73e=_0x1be826['plugins']['get']('TrackChangesEditing'),_0x58a2a0=_0x1be826['locale'];_0x8af73e['descriptionFactory']['registerElementLabel']('rawHtml',_0x32fcd6=>c(_0x58a2a0,'ELEMENT_HTML_EMBED',_0x32fcd6)),_0x8af73e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x8af73e['registerBlockAttribute']('value'),_0x8af73e['descriptionFactory']['registerDescriptionCallback'](_0x2898a1=>{if('attribute'!=_0x2898a1['type'])return;const {data:_0x1dfe8b}=_0x2898a1;if(_0x1dfe8b&&'value'==_0x1dfe8b['key']&&_0x2898a1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46ee4b=c(_0x58a2a0,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x58a2a0,'*Change\x20%0\x20content*',_0x46ee4b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4670d6=this['editor'],_0x3e790b=_0x4670d6['locale'];_0x4670d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2763e9=>{if('formatBlock'!=_0x2763e9['type'])return;const {data:_0x341598}=_0x2763e9;if(_0x341598&&'htmlEmbed'==_0x341598['commandName']){const _0x26954a=c(_0x3e790b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3e790b,'*Change\x20%0\x20content*',_0x26954a)};}});}}class ot extends _0x17dcce{['afterInit'](){const _0x1fd958=this['editor'];if(!_0x1fd958['plugins']['has']('ImageEditing'))return;const _0x38a017=_0x1fd958['plugins']['get']('TrackChangesEditing'),_0x2ce34c=_0x1fd958['plugins']['get']('ImageUtils'),_0x5212b2=_0x1fd958['locale'];_0x38a017['enableCommand']('insertImage'),_0x38a017['descriptionFactory']['registerElementLabel']('imageBlock',_0x33b52a=>c(_0x5212b2,'ELEMENT_IMAGE',_0x33b52a)),_0x38a017['descriptionFactory']['registerElementLabel']('imageInline',_0x1b29e2=>c(_0x5212b2,'ELEMENT_INLINE_IMAGE',_0x1b29e2)),_0x38a017['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5212b2,'ELEMENT_CAPTION')),_0x1fd958['plugins']['has']('ImageUploadEditing')&&_0x38a017['enableCommand']('uploadImage'),_0x1fd958['plugins']['has']('ImageBlockEditing')&&_0x1fd958['plugins']['has']('ImageInlineEditing')&&(_0x38a017['enableCommand']('imageTypeInline',(_0x26f6cb,_0x5d5e22)=>{const _0x2a2168=_0x2ce34c['getClosestSelectedImageElement'](_0x1fd958['model']['document']['selection']);_0x1fd958['model']['change'](()=>{_0x38a017['markBlockFormat'](_0x2a2168,{'commandName':'imageTypeInline','commandParams':[_0x5d5e22]},[],'convertBlockImageToInline');});}),_0x38a017['enableCommand']('imageTypeBlock',(_0x3ea767,_0x1b4a03)=>{_0x1fd958['model']['change'](_0x32534e=>{let _0x4d9b17=_0x2ce34c['getClosestSelectedImageElement'](_0x1fd958['model']['document']['selection']),_0x9194e=_0x32534e['createRangeOn'](_0x4d9b17);const _0x147e71=_0x4e8ea1['fromPosition'](_0x9194e['start'],'toPrevious'),_0x560c30=_0x4e8ea1['fromPosition'](_0x9194e['end'],'toNext');_0x38a017['forceDefaultExecution'](()=>_0x3ea767(_0x1b4a03)),_0x4d9b17=_0x2ce34c['getClosestSelectedImageElement'](_0x1fd958['model']['document']['selection']),_0x9194e=_0x32534e['createRangeOn'](_0x4d9b17);const _0x6274bb=_0x32534e['createRange'](_0x147e71,_0x560c30);_0x147e71['detach'](),_0x560c30['detach'](),_0x38a017['markBlockFormat'](_0x4d9b17,{'commandName':'imageTypeInline','commandParams':[_0x1b4a03]},[],'convertInlineImageToBlock'),_0x6274bb['start']['isBefore'](_0x9194e['start'])&&_0x38a017['markInsertion'](_0x32534e['createRange'](_0x6274bb['start'],_0x9194e['start']),'convertInlineImageToBlock'),_0x9194e['end']['isBefore'](_0x6274bb['end'])&&_0x38a017['markInsertion'](_0x32534e['createRange'](_0x9194e['end'],_0x6274bb['end']),'convertInlineImageToBlock');});}),_0x38a017['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x38a017['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x38a017['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x38a017['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x38a017['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x38a017['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3fed9d])=>{const _0x3a007e=_0x38a017['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5dfda8=_0x3fed9d['start'],_0xbb2869=_0x3fed9d['end'];const _0x4dc11e=_0x1fd958['model']['schema']['getNearestSelectionRange'](_0x5dfda8,'backward'),_0x347c0e=_0x1fd958['model']['schema']['getNearestSelectionRange'](_0xbb2869,'forward');_0x4dc11e['isCollapsed']&&(_0x5dfda8=_0x4dc11e['start']),_0x347c0e['isCollapsed']&&(_0xbb2869=_0x347c0e['end']),_0x3a007e([_0x1fd958['model']['createRange'](_0x5dfda8,_0xbb2869)]);}),_0x38a017['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4e20fd),_0x38a017['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4e20fd)),_0x1fd958['plugins']['has']('ImageCaptionEditing')&&(_0x38a017['enableCommand']('toggleImageCaption',(_0x3e69b2,_0x35510a)=>{const _0x26578f=_0x1fd958['plugins']['get']('ImageCaptionUtils');let _0x448f64=_0x2ce34c['getClosestSelectedImageElement'](_0x1fd958['model']['document']['selection']),_0x52cdaa=_0x26578f['getCaptionFromImageModelElement'](_0x448f64);_0x1fd958['model']['change'](()=>{if(_0x52cdaa)return void _0x38a017['markDeletion'](_0x1fd958['model']['createRangeOn'](_0x52cdaa));const _0x17d8a1=_0x2ce34c['isBlockImage'](_0x448f64);_0x3e69b2(_0x35510a),_0x448f64=_0x2ce34c['getClosestSelectedImageElement'](_0x1fd958['model']['document']['selection']),_0x52cdaa=_0x26578f['getCaptionFromImageModelElement'](_0x448f64),_0x38a017['markInsertion'](_0x1fd958['model']['createRangeOn'](_0x52cdaa),_0x17d8a1?null:'imageCaption');});}),_0x38a017['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4e20fd));const _0x3a61ea=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e09a2(_0xd7eae2,_0x3cc587){const _0x2bac1e=_0x3a61ea['findIndex'](({type:_0x1d734c,subType:_0x517f7f})=>_0xd7eae2['type']==_0x1d734c&&_0xd7eae2['subType']==_0x517f7f),_0x264e9e=_0x3a61ea['findIndex'](({type:_0x10542e,subType:_0xcb39a0})=>_0x3cc587['type']==_0x10542e&&_0x3cc587['subType']==_0xcb39a0);if(_0x2bac1e<0x0||_0x264e9e<0x0)return!0x1;const _0x4c7009=_0xd7eae2['getFirstRange'](),_0x1b1b5f=_0x3cc587['getFirstRange']();if((0x0==_0x2bac1e||0x1==_0x2bac1e)&&0x2==_0x264e9e&&_0x4c7009['isIntersecting'](_0x1b1b5f))return!0x0;if(0x2==_0x2bac1e&&0x3==_0x264e9e){const _0xdb6cd0=_0x38a017['_findSuggestions'](_0x4c7009,'insertion')['filter'](({suggestion:_0x4f795a,meta:_0x31009c})=>_0x31009c['isOwn']&&'convertInlineImageToBlock'==_0x4f795a['subType']);if(_0xdb6cd0['length']>0x1&&_0x1b1b5f['end']['isEqual'](_0x4c7009['start']))return!0x0;if(0x1==_0xdb6cd0['length']&&(_0x4c7009['start']['isEqual'](_0x1b1b5f['end'])||_0x4c7009['end']['isEqual'](_0x1b1b5f['start'])))return!0x0;}if(0x3==_0x2bac1e&&0x3==_0x264e9e&&_0x4c7009['start']['isBefore'](_0x1b1b5f['start'])){const _0x12a969=_0x4c7009['end']['nodeAfter'],_0x5263d2=_0x1b1b5f['start']['nodeBefore'];return _0x2ce34c['isBlockImage'](_0x12a969)&&_0x12a969===_0x5263d2;}return!0x1;}function _0x4e20fd(_0x9078dd,_0x27eb06){return _0x4e09a2(_0x9078dd,_0x27eb06)?[_0x9078dd,_0x27eb06]:_0x4e09a2(_0x27eb06,_0x9078dd)?[_0x27eb06,_0x9078dd]:null;}_0x1fd958['plugins']['has']('ImageResize')&&(_0x38a017['enableDefaultAttributesIntegration']('resizeImage'),_0x38a017['registerBlockAttribute']('resizedWidth'),_0x38a017['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5212b2,'FORMAT_IMAGE_SIZE'))),_0x1fd958['plugins']['has']('ImageTextAlternativeEditing')&&(_0x38a017['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x38a017['registerBlockAttribute']('alt')),_0x1fd958['plugins']['has']('PictureEditing')&&(_0x38a017['registerBlockAttribute']('sources'),_0x38a017['descriptionFactory']['registerDescriptionCallback'](_0x4a906b=>{if('attribute'!=_0x4a906b['type'])return;const {data:_0x2fa0c9}=_0x4a906b;return _0x2fa0c9&&'sources'==_0x2fa0c9['key']?{'type':'format','content':''}:void 0x0;})),_0x1fd958['plugins']['has']('ImageSizeAttributes')&&(_0x38a017['registerBlockAttribute']('width'),_0x38a017['registerBlockAttribute']('height'),_0x38a017['descriptionFactory']['registerDescriptionCallback'](_0x29e9b3=>{if('attribute'!=_0x29e9b3['type'])return;const {data:_0x449a14}=_0x29e9b3;return!_0x449a14||'width'!=_0x449a14['key']&&'height'!=_0x449a14['key']?void 0x0:{'type':'format','content':''};})),_0x38a017['descriptionFactory']['registerDescriptionCallback'](_0x264dbc=>{if(!!_0x3a61ea['find'](({type:_0x220211,subType:_0x4ff6a6})=>_0x264dbc['type']==_0x220211&&_0x264dbc['subType']==_0x4ff6a6))return _0x264dbc['previous']?{}:void 0x0;}),_0x38a017['descriptionFactory']['registerDescriptionCallback'](_0x80eba4=>{if('insertion'==_0x80eba4['type']||'deletion'==_0x80eba4['type']){const _0x33fbfd=_0x80eba4['getContainedElement']();if(_0x33fbfd&&_0x33fbfd['is']('element','caption'))return{'type':'insertion'==_0x80eba4['type']?'addObject':'removeObject','element':_0x33fbfd,'quantity':0x1};}}),_0x38a017['descriptionFactory']['registerDescriptionCallback'](_0x2882ed=>'formatBlock'==_0x2882ed['type']&&'convertInlineImageToBlock'==_0x2882ed['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2882ed['type']&&'convertBlockImageToInline'==_0x2882ed['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x38a017['descriptionFactory']['registerDescriptionCallback'](_0x425c81=>{if('attribute'!=_0x425c81['type'])return;const {data:_0x3d121c}=_0x425c81;if(!_0x3d121c||'alt'!=_0x3d121c['key'])return;const _0x236724=_0x3d121c['newValue'];return _0x236724?{'type':'format','content':c(_0x5212b2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x236724+'\x22')}:{'type':'format','content':c(_0x5212b2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7859d6=this['editor'],_0x1052eb=_0x7859d6['locale'];_0x7859d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x588864=>{if('formatBlock'!=_0x588864['type']&&'formatInline'!=_0x588864['type'])return;const {data:_0x37ceb9}=_0x588864;if(_0x37ceb9){if('imageTextAlternative'==_0x37ceb9['commandName']){const _0x5c0480=_0x37ceb9['commandParams'][0x0]['newValue'];return _0x5c0480?{'type':'format','content':c(_0x1052eb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c0480+'\x22')}:{'type':'format','content':c(_0x1052eb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x37ceb9['commandName']){const _0x4f2590=_0x37ceb9['commandParams'][0x0]['width'];return _0x4f2590?{'type':'format','content':c(_0x1052eb,'*Set\x20image\x20width:*\x20%0',_0x4f2590)}:{'type':'format','content':c(_0x1052eb,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x17dcce{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4bd205=this['editor']['locale'],_0xb3a600=this['editor']['plugins']['get']('TrackChangesEditing');_0xb3a600['enableDefaultAttributesIntegration']('replaceImageSource'),_0xb3a600['registerBlockAttribute']('src'),_0xb3a600['descriptionFactory']['registerDescriptionCallback'](_0x3ca62c=>{if('attribute'!=_0x3ca62c['type'])return;const {data:_0x42ee9b}=_0x3ca62c;return _0x42ee9b&&'src'==_0x42ee9b['key']?_0x42ee9b['newValue']&&_0x42ee9b['oldValue']?{'type':'format','content':c(_0x4bd205,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x23567b=this['editor']['plugins']['get']('TrackChangesEditing');_0x23567b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x23567b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x23567b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x23567b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27c8f2=this['editor'],_0x1dc01c=_0x27c8f2['locale'];_0x27c8f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ec7ae=>{if('formatBlock'!=_0x1ec7ae['type']&&'formatInline'!=_0x1ec7ae['type'])return;const {data:_0x59f42b}=_0x1ec7ae;if(!_0x59f42b||'replaceImageSource'!=_0x59f42b['commandName'])return;return{'type':'format','content':c(_0x1dc01c,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x17dcce{['afterInit'](){const _0xfe5ac6=this['editor'];if(!_0xfe5ac6['plugins']['has']('ImageStyleEditing'))return;const _0x2e5445=_0xfe5ac6['plugins']['get']('TrackChangesEditing'),_0x431f15=_0xfe5ac6['plugins']['get']('ImageUtils'),_0x3a2a7f={};_0x2e5445['enableCommand']('imageStyle',(_0x4966df,_0x2c3305)=>{const _0x263ee9=_0xfe5ac6['plugins']['get']('Users')['me'],_0x1facf6=_0xfe5ac6['commands']['get']('imageStyle');let _0x756d3b=_0x431f15['getClosestSelectedImageElement'](_0xfe5ac6['model']['document']['selection']),_0x3b73c4=_0xfe5ac6['model']['createRangeOn'](_0x756d3b),_0x1c8033=_0x1facf6['value'];if(_0x1c8033==_0x2c3305['value'])return;const _0x5f122e={'commandName':'imageStyle','commandParams':[_0x2c3305],'formatGroupId':_0x54ee4c()};_0xfe5ac6['model']['change'](()=>{if(_0x2e5445['getSuggestions']()['filter'](_0x20bbbf=>_0x20bbbf['isInContent']&&_0x263ee9==_0x20bbbf['author']&&('formatBlock'==_0x20bbbf['type']||'formatInline'==_0x20bbbf['type'])&&('imageStylePreApply'==_0x20bbbf['subType']||'imageStylePostApply'==_0x20bbbf['subType'])&&_0x20bbbf['getFirstRange']()['isEqual'](_0x3b73c4))['forEach'](_0x379795=>_0x2e5445['discardSuggestion'](_0x379795['head'])),_0x756d3b=_0x431f15['getClosestSelectedImageElement'](_0xfe5ac6['model']['document']['selection']),_0x3b73c4=_0xfe5ac6['model']['createRangeOn'](_0x756d3b),_0x1facf6['refresh'](),_0xfe5ac6['commands']['get']('imageTypeInline')['refresh'](),_0xfe5ac6['commands']['get']('imageTypeBlock')['refresh'](),_0x1c8033=_0x1facf6['value'],_0x1c8033!=_0x2c3305['value'])return _0x431f15['isInlineImage'](_0x756d3b)&&_0x1facf6['shouldConvertImageType'](_0x2c3305['value'],_0x756d3b)?(_0x4966df({..._0x2c3305,'setImageSizes':!0x1}),_0x756d3b=_0x431f15['getClosestSelectedImageElement'](_0xfe5ac6['model']['document']['selection']),void _0x2e5445['markBlockFormat'](_0x756d3b,{..._0x5f122e,'commandReversedParams':[{'value':_0x1c8033||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x431f15['isBlockImage'](_0x756d3b)?_0x2e5445['markBlockFormat'](_0x756d3b,_0x5f122e,[],'imageStylePostApply'):_0x2e5445['markInlineFormat'](_0x3b73c4,_0x5f122e,'imageStylePostApply'));});});for(const _0x722a0a of _0xfe5ac6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3a2a7f[_0x722a0a['name']]=_0x722a0a['title']['toLowerCase']();_0x2e5445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2e5445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2e5445['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2e5445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3c3bd7])=>{_0x431f15['setImageNaturalSizeAttributes'](_0x3c3bd7['getContainedElement']());}),_0x2e5445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x30e42a,_0x217f72)=>{_0x2e5445['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x30e42a,{'commandName':_0x217f72['commandName'],'commandParams':_0x217f72['commandReversedParams']});}),_0x2e5445['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x23db8e,_0x50f468){if(_0x7cd681(_0x23db8e,_0x50f468))return[_0x23db8e,_0x50f468];if(_0x7cd681(_0x50f468,_0x23db8e))return[_0x50f468,_0x23db8e];return null;});const _0x547663=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x7cd681(_0x172e5d,_0xa2b784){const _0x5296d6=_0x547663['findIndex'](({type:_0x456bdc,subType:_0x42400a})=>_0x172e5d['type']==_0x456bdc&&_0x172e5d['subType']==_0x42400a),_0x37bf4a=_0x547663['findIndex'](({type:_0x145702,subType:_0x5f06d2})=>_0xa2b784['type']==_0x145702&&_0xa2b784['subType']==_0x5f06d2);if(_0x5296d6<0x0||_0x37bf4a<0x0)return!0x1;const _0x1d36f3=_0x172e5d['getFirstRange'](),_0x447722=_0xa2b784['getFirstRange']();if((0x0==_0x5296d6||0x1==_0x5296d6)&&0x2==_0x37bf4a&&_0x1d36f3['isIntersecting'](_0x447722))return!0x0;if(0x2==_0x5296d6&&0x3==_0x37bf4a){const _0x14a8fe=_0x2e5445['_findSuggestions'](_0x1d36f3,'insertion')['filter'](({suggestion:_0x23c9b8,meta:_0x14111c})=>_0x14111c['isOwn']&&'convertInlineImageToBlock'==_0x23c9b8['subType']);if(_0x14a8fe['length']>0x1&&_0x447722['end']['isEqual'](_0x1d36f3['start']))return!0x0;if(0x1==_0x14a8fe['length']&&(_0x1d36f3['start']['isEqual'](_0x447722['end'])||_0x1d36f3['end']['isEqual'](_0x447722['start'])))return!0x0;}if(0x3==_0x5296d6&&0x3==_0x37bf4a&&_0x1d36f3['start']['isBefore'](_0x447722['start'])){const _0x5ec5fc=_0x1d36f3['end']['nodeAfter'],_0x471078=_0x447722['start']['nodeBefore'];return _0x431f15['isBlockImage'](_0x5ec5fc)&&_0x5ec5fc===_0x471078;}return!0x1;}_0xfe5ac6['model']['document']['registerPostFixer'](()=>{let _0x4fbe10=!0x1;const _0x31003d=Array['from'](_0xfe5ac6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x565dd3,data:_0x348987}of _0x31003d){const {group:_0x1ac817,type:_0x3a58df,subType:_0xbc938d,id:_0x55d63a}=_0x2e5445['_splitMarkerName'](_0x565dd3);if('suggestion'==_0x1ac817&&_0x2e5445['hasSuggestion'](_0x55d63a)){if('formatBlock'==_0x3a58df&&('imageStylePreApply'==_0xbc938d||'imageStylePostApply'==_0xbc938d)){const _0x48b7f6=_0x2e5445['getSuggestion'](_0x55d63a);if(_0x348987['newRange']){const _0x3b15ac=_0x48b7f6['getFirstRange']()['getContainedElement']();if(_0x431f15['isBlockImage'](_0x3b15ac))continue;_0x2e5445['discardSuggestion'](_0x48b7f6),_0x4fbe10=!0x0;}}if('insertion'==_0x3a58df&&'imageCaption'==_0xbc938d&&!_0x348987['newRange']){const _0x5732d4=_0x2e5445['getSuggestion'](_0x55d63a);_0x5732d4['next']&&_0x5732d4['next']['isInContent']&&(_0x2e5445['discardSuggestion'](_0x5732d4['next']),_0x4fbe10=!0x0);}}}return _0x4fbe10;}),this['_registerLegacyDescription'](_0x3a2a7f);}['_registerLegacyDescription'](_0x4f3ca2){const _0x21feae=this['editor'],_0x1578d7=_0x21feae['locale'];_0x21feae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e2030=>{if('formatBlock'!=_0x5e2030['type']&&'formatInline'!=_0x5e2030['type'])return;const {data:_0xbbeeb1}=_0x5e2030;if(!_0xbbeeb1||'imageStyle'!=_0xbbeeb1['commandName'])return;const _0x1ddcff=_0xbbeeb1['commandParams'][0x0]['value'];return _0x4b28a3('side'===_0x1ddcff?c(_0x1578d7,'FORMAT_SIDE_IMAGE'):_0x4f3ca2[_0x1ddcff]||_0x1ddcff);function _0x4b28a3(_0x4e813f){return{'type':'format','content':c(_0x1578d7,'*Format:*\x20%0',_0x4e813f)};}});}}class ct extends _0x17dcce{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4da7e8){super(_0x4da7e8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x14eaef=this['editor'],_0x5d1210=_0x14eaef['commands']['get']('importWord'),_0xe982fb=_0x14eaef['commands']['get']('trackChanges');_0x5d1210&&(_0x5d1210['on']('execute',(_0x3dc551,[,_0x5896dc])=>{this['_trackChangesValueDuringImport']=_0xe982fb['value'],_0x5896dc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5d1210,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5d1210,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe982fb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x14eaef['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x41b1dd,_0x40c5b0){const {suggestions:_0x58c209}=_0x40c5b0,_0x529193=this['editor']['commands']['get']('trackChanges'),_0x2aec89=_0x529193['value'];this['_trackChangesValueDuringImport']!==_0x2aec89&&(_0x529193['execute'](),this['_trackChangesExecuted']=!0x0),_0x58c209&&_0x58c209['forEach'](({id:_0x5e5b05,type:_0x3be604,author:_0x132e6a,created_at:_0x1f9375})=>{const _0x241c80={'id':_0x5e5b05,'type':_0x3be604,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x132e6a,'createdAt':_0x1f9375?new Date(_0x1f9375):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x241c80);});}}class ut extends _0x17dcce{['afterInit'](){const _0x329d46=this['editor'],_0x1ab76e=_0x329d46['plugins']['get']('TrackChangesEditing');if(_0x329d46['plugins']['has']('IndentEditing')&&(_0x1ab76e['enableCommand']('indent'),_0x1ab76e['enableCommand']('outdent')),_0x329d46['plugins']['has']('IndentBlock')){for(const _0x216190 of['indentBlock','outdentBlock'])_0x1ab76e['enableDefaultAttributesIntegration'](_0x216190);}const _0x18dcc=_0x329d46['locale'];_0x1ab76e['registerBlockAttribute']('blockIndent'),_0x1ab76e['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x18dcc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bef07=this['editor'],_0x42dc1d=_0x5bef07['locale'],_0x2a11c6=_0x5bef07['plugins']['get']('TrackChangesEditing');_0x2a11c6['descriptionFactory']['registerDescriptionCallback'](_0x4c99c1=>{if('formatBlock'!=_0x4c99c1['type'])return;const {data:_0x2ab047}=_0x4c99c1;if(!_0x2ab047)return;if('indentBlock'!=_0x2ab047['commandName']&&'outdentBlock'!=_0x2ab047['commandName'])return;const _0xc279f0=_0x4c99c1['getItems']()[0x0],_0x526b3d=_0x2a11c6['descriptionFactory']['getItemLabel'](_0xc279f0);return'indentBlock'==_0x2ab047['commandName']?{'type':'format','content':c(_0x42dc1d,'*Indent:*\x20%0',_0x526b3d)}:'outdentBlock'==_0x2ab047['commandName']?{'type':'format','content':c(_0x42dc1d,'*Outdent:*\x20%0',_0x526b3d)}:void 0x0;});}}class ft extends _0x17dcce{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x17dcce{['afterInit'](){const _0x5e216e=this['editor'];if(!_0x5e216e['plugins']['has']('LinkEditing'))return;const _0x21be93=_0x5e216e['plugins']['get']('TrackChangesEditing'),_0x4461c3=_0x5e216e['commands']['get']('link');_0x21be93['enableDefaultAttributesIntegration']('link'),_0x21be93['enableDefaultAttributesIntegration']('unlink'),_0x21be93['registerInlineAttribute']('linkHref');for(const _0x14133e of _0x4461c3['manualDecorators'])_0x21be93['registerInlineAttribute'](_0x14133e['id']),_0x21be93['descriptionFactory']['registerAttributeLabel'](_0x14133e['id'],'link\x20('+_0x14133e['label']['toLowerCase']()+')');_0x21be93['descriptionFactory']['registerDescriptionCallback'](_0x152290=>{if('attribute'!=_0x152290['type'])return;const {data:_0x3a2306}=_0x152290;if(!_0x3a2306||'linkHref'!=_0x3a2306['key'])return;const _0x1c1133=_0x3a2306['newValue'],_0x4335a7=_0x5e216e['locale'];return{'type':'format','content':null==_0x1c1133?c(_0x4335a7,'*Remove\x20link*'):c(_0x4335a7,'*Set\x20link:*\x20%0','\x22'+_0x1c1133+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eb0fe=this['editor'],_0x413746=_0x5eb0fe['locale'];_0x5eb0fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46b5e5=>{if('formatInline'!=_0x46b5e5['type'])return;const {data:_0x4caa00}=_0x46b5e5;if(_0x4caa00){if('link'==_0x4caa00['commandName']){const _0x566216=_0x4caa00['commandParams'][0x0];return{'type':'format','content':c(_0x413746,'*Set\x20link:*\x20%0','\x22'+_0x566216+'\x22')};}return'unlink'==_0x4caa00['commandName']?{'type':'format','content':c(_0x413746,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x17dcce{['afterInit'](){const _0x3d0f81=this['editor'],_0x160b9=_0x3d0f81['locale'];if(!_0x3d0f81['plugins']['has']('LegacyListEditing'))return;const _0x5aea5c=_0x3d0f81['plugins']['get']('TrackChangesEditing'),_0x2821d4=_0x3d0f81['plugins']['has']('LegacyTodoListEditing');function _0x5e3553(_0x18c00c){return()=>{const _0x4144f8=_0x3d0f81['model']['document']['selection'],_0x46f38b=_0x3d0f81['commands']['get'](_0x18c00c);if(_0x46f38b['value'])return void _0x3d0f81['execute']('paragraph',{});const _0x2bcee=_0x18c00c['slice'](0x0,-0x4),_0x125dd4=function(_0x4cc06a,_0x5056be,_0x5a77fa){let _0x46b310=Array['from'](_0x4cc06a)['filter'](_0x1293d6=>function(_0x22ac7d,_0x2c7d0f){return _0x2c7d0f['checkChild'](_0x22ac7d['parent'],'listItem')&&!_0x2c7d0f['isObject'](_0x22ac7d);}(_0x1293d6,_0x5a77fa));_0x46b310=_0x46b310['filter'](_0x7ffbbb=>!_0x7ffbbb['is']('element','listItem')||_0x7ffbbb['getAttribute']('listType')!=_0x5056be);const _0x39260f=new Set();for(const _0x4438ae of _0x46b310)_0x4438ae['is']('element','listItem')?_0x39260f['add'](Le(_0x4438ae)):_0x39260f['add'](_0x4438ae);return Array['from'](_0x39260f);}(_0x4144f8['getSelectedBlocks'](),_0x2bcee,_0x3d0f81['model']['schema']);_0x3d0f81['model']['change'](()=>{for(const _0x1e2f77 of _0x125dd4)_0x5aea5c['markBlockFormat'](_0x1e2f77,{'commandName':_0x18c00c,'commandParams':[{'forceValue':!_0x46f38b['value']}],'formatGroupId':'blockName'},Ee(_0x1e2f77));});};}function _0x10bb7a(_0x4fbdd8){return()=>{const _0xb4524c=function(_0x510403){let _0xd5a1d8=Array['from'](_0x510403);const _0x5521a9=_0xd5a1d8['findIndex'](_0x234965=>'listItem'!=_0x234965['name']);return _0x5521a9>-0x1&&(_0xd5a1d8=_0xd5a1d8['slice'](0x0,_0x5521a9)),_0xd5a1d8;}(_0x3d0f81['model']['document']['selection']['getSelectedBlocks']()),_0x30a8d8=_0x3d0f81['model']['createRange'](_0x3d0f81['model']['createPositionAt'](_0xb4524c[0x0],'before'),_0x3d0f81['model']['createPositionAt'](_0xb4524c[_0xb4524c['length']-0x1],'end'));_0x3d0f81['model']['change'](()=>{_0x5aea5c['markBlockFormat'](_0x30a8d8,{'commandName':_0x4fbdd8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28e590){const _0x38fcee=new Set();for(const _0x2ff943 of _0x28e590){let _0x54133f=_0x2ff943['nextSibling'];for(;_0x54133f&&_0x54133f['getAttribute']('listIndent')>_0x2ff943['getAttribute']('listIndent');)_0x38fcee['add'](_0x54133f),_0x54133f=_0x54133f['nextSibling'];}return Array['from'](_0x38fcee);}(_0xb4524c));});};}_0x5aea5c['enableCommand']('numberedList',_0x5e3553('numberedList')),_0x5aea5c['enableCommand']('bulletedList',_0x5e3553('bulletedList')),_0x2821d4&&_0x5aea5c['enableCommand']('todoList',_0x5e3553('todoList')),_0x5aea5c['enableCommand']('indentList',_0x10bb7a('indentList')),_0x5aea5c['enableCommand']('outdentList',_0x10bb7a('outdentList')),_0x2821d4&&_0x5aea5c['enableCommand']('checkTodoList',()=>{const _0x2f9c29=_0x3d0f81['commands']['get']('checkTodoList'),_0x5467ae=Array['from'](_0x2f9c29['_selectedElements']);_0x5467ae['filter'](_0x27b9e3=>_0x27b9e3['getAttribute']('todoListChecked')!=_0x2f9c29['value']),_0x3d0f81['model']['change'](()=>{for(const _0x257ad4 of _0x5467ae)_0x5aea5c['markBlockFormat'](_0x257ad4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f9c29['value']}]});});}),_0x5aea5c['descriptionFactory']['registerElementLabel']('listItem',_0x1b4759=>c(_0x160b9,'ELEMENT_LIST_ITEM',_0x1b4759)),_0x5aea5c['descriptionFactory']['registerDescriptionCallback'](_0x2cbcdb=>{if('formatBlock'!=_0x2cbcdb['type']&&'formatInline'!=_0x2cbcdb['type'])return;const {data:_0x3c7d7d}=_0x2cbcdb;if(_0x3c7d7d){if('numberedList'==_0x3c7d7d['commandName']||'bulletedList'==_0x3c7d7d['commandName']||'todoList'==_0x3c7d7d['commandName'])switch(_0x3c7d7d['commandName']['replace']('List','')){case'bulleted':return _0x12b7c5(c(_0x160b9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12b7c5(c(_0x160b9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12b7c5(c(_0x160b9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3c7d7d['commandName'])return{'type':'format','content':c(_0x160b9,'*Indent:*\x20%0',c(_0x160b9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3c7d7d['commandName'])return{'type':'format','content':c(_0x160b9,'*Outdent:*\x20%0',c(_0x160b9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3c7d7d['commandName'])return _0x3c7d7d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x160b9,'*Check\x20item*')}:{'type':'format','content':c(_0x160b9,'*Uncheck\x20item*')};}function _0x12b7c5(_0x27f272){return{'type':'format','content':c(_0x160b9,'*Change\x20to:*\x20%0',_0x27f272)};}});}}function Le(_0x1380c4){const _0x110913=_0x1380c4['getAttribute']('listIndent');if(0x0==_0x110913)return _0x1380c4;let _0x1cb50c=_0x1380c4;for(;_0x1380c4['previousSibling']&&_0x1380c4['previousSibling']['is']('element','listItem');){const _0x54e8d2=_0x1380c4['previousSibling']['getAttribute']('listIndent');if(_0x54e8d2==_0x110913)_0x1cb50c=_0x1380c4['previousSibling'];else{if(_0x54e8d2<_0x110913)break;}_0x1380c4=_0x1380c4['previousSibling'];}return _0x1cb50c;}function Ee(_0x21704e){const _0x464373=[];if(_0x21704e['is']('element','listItem')&&_0x21704e['getAttribute']('listIndent')>0x0){let _0x41faba=_0x21704e['nextSibling'];for(;_0x41faba&&'listItem'==_0x41faba['name']&&_0x41faba['getAttribute']('listIndent')==_0x21704e['getAttribute']('listIndent');)_0x464373['push'](_0x41faba),_0x41faba=_0x41faba['nextSibling'];}return _0x464373;}class Q extends _0x17dcce{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5b2122=this['editor']['config']['get']('list.properties'),_0x70691e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b2122['styles']&&_0x70691e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5b2122['reversed']&&_0x70691e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5b2122['startIndex']&&_0x70691e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x70691e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3c5971,_0x59e851={}){const _0x2d89dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f59bc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2d89dc['markMultiRangeBlockFormat'](_0x5f59bc,{'commandName':'listStyle','commandParams':[{'type':_0x59e851['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1af8a3,_0x1693b1={}){const _0x59267d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56b958=this['_getSuggestionBlocks'](_0x2178fa=>_0x2178fa['is']('element','listItem')&&'numbered'===_0x2178fa['getAttribute']('listType'));if(_0x56b958['length']<0x1)return;const _0x3df0af=_0x56b958['map'](_0x448302=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x448302,'before'),this['editor']['model']['createPositionAt'](_0x448302,0x0)));this['editor']['model']['change'](()=>{_0x59267d['markMultiRangeBlockFormat'](_0x3df0af,{'commandName':'listReversed','commandParams':[{'reversed':_0x1693b1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x17b2a0,_0x40447e={}){const _0x4295a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47e043=this['_getSuggestionBlocks'](_0x447f56=>_0x447f56['is']('element','listItem')&&'numbered'===_0x447f56['getAttribute']('listType'));if(_0x47e043['length']<0x1)return;const _0x432da9=_0x47e043['map'](_0x5af1ea=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5af1ea,'before'),this['editor']['model']['createPositionAt'](_0x5af1ea,0x0)));this['editor']['model']['change'](()=>{_0x4295a2['markMultiRangeBlockFormat'](_0x432da9,{'commandName':'listStart','commandParams':[{'startIndex':_0x40447e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x40d1fa){if('formatBlock'!=_0x40d1fa['type']&&'formatInline'!=_0x40d1fa['type'])return;const _0xa179cd=this['editor']['locale'],{data:_0x3e496f}=_0x40d1fa;if(!_0x3e496f)return;let _0x265896,_0x3d92d2;switch(_0x3e496f['commandName']){case'listStyle':_0x265896='*Change\x20to:*\x20%0',_0x3d92d2={'type':'format','content':c(_0xa179cd,_0x265896,c(_0xa179cd,this['_getTranslationKeyForListStyle'](_0x3e496f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x265896=_0x3e496f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3d92d2={'type':'format','content':c(_0xa179cd,_0x265896)};break;case'listStart':_0x265896='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3d92d2={'type':'format','content':c(_0xa179cd,_0x265896,_0x3e496f['commandParams'][0x0]['startIndex'])};}return _0x3d92d2;}['_getSuggestionBlocksForListStyle'](){const _0xf191c3=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e6c4a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3e6c4a[0x0]?.['is']('element','listItem')&&_0x3e6c4a['unshift'](..._0xf191c3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3e6c4a[_0x3e6c4a['length']-0x1]?.['is']('element','listItem')&&_0x3e6c4a['push'](..._0xf191c3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3e6c4a=[...new Set(_0x3e6c4a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3e6c4a=_0x3e6c4a['filter'](_0x38bffa=>_0x38bffa['is']('element','listItem'))),_0x3e6c4a;}['_getSuggestionBlocks'](_0x13abdb){const _0x4c9d6b=this['editor']['plugins']['get']('LegacyListUtils');let _0x13e7f1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x13abdb)['map'](_0x2bf20a=>{const _0x17ae77=this['editor']['model']['createPositionAt'](_0x2bf20a,0x0);return[..._0x4c9d6b['getSiblingNodes'](_0x17ae77,'backward'),..._0x4c9d6b['getSiblingNodes'](_0x17ae77,'forward')];})['flat']();return _0x13e7f1=[...new Set(_0x13e7f1)],_0x13e7f1;}['_getTranslationKeyForListStyle'](_0x3afde0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3afde0)||'default')['toUpperCase']()+'_LIST_'+_0x3afde0['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x17dcce{['afterInit'](){const _0x2c9a93=this['editor'];if(!_0x2c9a93['plugins']['has']('MediaEmbedEditing'))return;const _0x50f7f1=_0x2c9a93['plugins']['get']('TrackChangesEditing'),_0xd91287=_0x2c9a93['locale'];_0x50f7f1['enableCommand']('mediaEmbed'),_0x50f7f1['descriptionFactory']['registerElementLabel']('media',_0x43a214=>c(_0xd91287,'ELEMENT_MEDIA',_0x43a214)),_0x2c9a93['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x22f99b,{writer:_0x3fed53,options:_0x1a2cd3})=>{if(_0x1a2cd3['showSuggestionHighlights'])return _0x3fed53['createEmptyElement']('div');},'converterPriority':'high'}),_0x2c9a93['data']['downcastDispatcher']['on']('attribute:url:media',(_0x578a22,_0x5d1c29,_0x25faa5)=>{_0x25faa5['options']['showSuggestionHighlights']&&_0x578a22['stop']();},{'priority':'high'});}}class mt extends _0x17dcce{['afterInit'](){const _0xdce82c=this['editor'];_0xdce82c['plugins']['has']('MentionEditing')&&_0xdce82c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x17dcce{['afterInit'](){const _0x5d4250=this['editor'];if(!_0x5d4250['plugins']['has']('MergeFieldsEditing'))return;const _0x3abc3d=_0x5d4250['plugins']['get']('TrackChangesEditing'),_0x11e260=_0x5d4250['locale'];_0x3abc3d['enableCommand']('insertMergeField'),_0x3abc3d['enableCommand']('insertMergeFieldBlock'),_0x3abc3d['enableCommand']('insertMergeFieldImage'),_0x3abc3d['descriptionFactory']['registerElementLabel']('mergeField',_0x4740f4=>c(_0x11e260,'ELEMENT_MERGE_FIELD',_0x4740f4)),_0x3abc3d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x137aa2=>c(_0x11e260,'ELEMENT_MERGE_FIELD',_0x137aa2)),_0x3abc3d['descriptionFactory']['registerDescriptionCallback'](_0x28eefc=>{if('insertion'!=_0x28eefc['type']&&'deletion'!=_0x28eefc['type'])return;const _0x516bda=_0x28eefc['getContainedElement']();if(null==_0x516bda)return;const _0x5b3b04=_0x5d4250['plugins']['get']('MergeFieldsEditing');let _0x5c3e98;switch(_0x5b3b04['getMergeFieldType'](_0x516bda)){case null:return;case'image':{const _0x3a89d2=_0x5b3b04['unwrapAffixes'](_0x516bda['getAttribute']('src'));_0x5c3e98=_0x5b3b04['getLabel'](_0x3a89d2)||_0x3a89d2;break;}default:{const _0x1f2478=_0x516bda['getAttribute']('id');_0x5c3e98=_0x5b3b04['getLabel'](_0x1f2478)||_0x1f2478;break;}}return'insertion'==_0x28eefc['type']?{'type':'insertion','content':c(_0x11e260,'*Insert:*\x20%0','\x22'+_0x5c3e98+'\x22\x20'+c(_0x11e260,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x11e260,'*Remove:*\x20%0','\x22'+_0x5c3e98+'\x22\x20'+c(_0x11e260,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x17dcce{['afterInit'](){const _0x3d9bb4=this['editor'],_0x542c8f=_0x3d9bb4['plugins']['get']('TrackChangesEditing');_0x3d9bb4['plugins']['has']('MultiLevelList')&&(_0x542c8f['enableDefaultAttributesIntegration']('multiLevelList'),_0x542c8f['registerBlockAttribute']('listMarkerStyle'),_0x542c8f['descriptionFactory']['registerDescriptionCallback'](_0x5ed564=>this['handleDescriptions'](_0x5ed564)));}['handleDescriptions'](_0x34991f){const _0x557791=this['editor']['locale'],{data:_0x1a2fbf}=_0x34991f,_0x5f45b3={'type':'format','content':''};if(_0x1a2fbf&&'listMarkerStyle'==_0x1a2fbf['key']){if(!_0x1a2fbf['oldValue'])return{'type':'format','content':c(_0x557791,'*Set\x20format:*\x20%0',c(_0x557791,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a2fbf['newValue']+')'};if(!_0x1a2fbf['newValue']){let _0x314a1f=_0x34991f['head'];for(;_0x314a1f;){if(_0x314a1f['data']&&'listType'==_0x314a1f['data']['key']&&_0x314a1f['data']['newValue'])return _0x5f45b3;_0x314a1f=_0x314a1f['next'];}return{'type':'format','content':c(_0x557791,'*Remove\x20format:*\x20%0',c(_0x557791,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a2fbf['oldValue']+')'};}}}}class kt extends _0x17dcce{['afterInit'](){const _0xc2afe=this['editor'];if(!_0xc2afe['plugins']['has']('PageBreakEditing'))return;_0xc2afe['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3216a8=_0xc2afe['plugins']['get']('TrackChangesEditing'),_0x1e6bdc=_0xc2afe['locale'];_0x3216a8['descriptionFactory']['registerElementLabel']('pageBreak',_0x515de9=>c(_0x1e6bdc,'ELEMENT_PAGE_BREAK',_0x515de9));}}class bt extends _0x17dcce{['afterInit'](){const _0x4aebb9=this['editor'];if(!_0x4aebb9['plugins']['has']('Paragraph'))return;const _0xe81b25=_0x4aebb9['locale'],_0x507457=_0x4aebb9['plugins']['get']('TrackChangesEditing');_0x507457['descriptionFactory']['registerElementLabel']('paragraph',_0x5ce32a=>c(_0xe81b25,'ELEMENT_PARAGRAPH',_0x5ce32a)),_0x507457['enableDefaultAttributesIntegration']('paragraph'),_0x507457['enableCommand']('insertParagraph'),_0x4aebb9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4aebb9),{'priority':'highest'}),_0x4aebb9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38c1ea,_0x214867,_0x3d14bd)=>{_0x3d14bd['options']['showSuggestionHighlights']&&nr(_0x4aebb9,{'showActiveMarker':!0x1})(_0x38c1ea,_0x214867,_0x3d14bd);},{'priority':'highest'});const _0x15d1a7=_0x507457['descriptionFactory'];_0x15d1a7['registerDescriptionCallback'](_0x457c76=>{if('insertion'!==_0x457c76['type'])return;const {start:_0x27fd0f,end:_0x1e9018}=_0x457c76['getFirstRange']();if(!_0x27fd0f['isTouching'](_0x1e9018)||!_0x27fd0f['nodeAfter'])return;const _0x569cdb=_0x4aebb9['model']['schema'],_0x437c1b=_0x27fd0f['nodeAfter'];return _0x569cdb['isBlock'](_0x437c1b)&&!_0x569cdb['isLimit'](_0x437c1b)&&_0x569cdb['checkChild'](_0x437c1b,'$text')?{'type':'insertion','content':c(_0xe81b25,'*Insert:*\x20%0',_0x15d1a7['getItemLabel'](_0x437c1b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b695a=this['editor'],_0x461d60=_0x5b695a['locale'];_0x5b695a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f301=>{if('formatBlock'!=_0x38f301['type'])return;const {data:_0x467c73}=_0x38f301;return _0x467c73&&'paragraph'==_0x467c73['commandName']?{'type':'format','content':c(_0x461d60,'*Change\x20to:*\x20%0',c(_0x461d60,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xef69e8,{showActiveMarker:_0x5191cf=!0x0}={}){return(_0x4c0d2c,_0xcf9561,_0x13f6f2)=>{const _0x5a991d=_0xef69e8['plugins']['get']('TrackChangesEditing'),_0x1cc005=_0xcf9561['markerRange']['start'],_0x53190e=_0xcf9561['markerRange']['end'],_0x43f86b=_0xef69e8['model']['schema'];if(!_0x1cc005['isTouching'](_0x53190e)||!_0x1cc005['nodeAfter'])return;const _0x37a3f7=_0x1cc005['nodeAfter'];if(_0x43f86b['isBlock'](_0x37a3f7)&&!_0x43f86b['isLimit'](_0x37a3f7)&&_0x43f86b['checkChild'](_0x37a3f7,'$text')){if(!_0x13f6f2['consumable']['consume'](_0xcf9561['markerRange'],_0x4c0d2c['name']))return;const {authorId:_0x278e3d}=_0x5a991d['_splitMarkerName'](_0xcf9561['markerName']),_0x59bb84=_0x13f6f2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x278e3d}),_0x255670=_0x13f6f2['mapper']['toViewPosition'](_0x53190e);_0x5191cf&&_0x5a991d['activeMarkers']['includes'](_0xcf9561['markerName'])&&_0x13f6f2['writer']['addClass']('ck-suggestion-marker--active',_0x59bb84),_0x13f6f2['writer']['insert'](_0x255670,_0x59bb84),_0x13f6f2['mapper']['bindElementToMarker'](_0x59bb84,_0xcf9561['markerName']);}};}class yt extends _0x17dcce{['afterInit'](){const _0x4d7cb8=this['editor'];if(!_0x4d7cb8['plugins']['has']('RemoveFormatEditing'))return;_0x4d7cb8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c2730=this['editor'];_0x1c2730['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9590=>{if('formatBlock'!=_0x3c9590['type']&&'formatInline'!=_0x3c9590['type'])return;const {data:_0xd6a402}=_0x3c9590;return _0xd6a402&&'removeFormat'==_0xd6a402['commandName']?{'type':'format','content':c(_0x1c2730['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x17dcce{['afterInit'](){const _0x49e99e=this['editor'];if(!_0x49e99e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c74b3=_0x49e99e['plugins']['get']('TrackChangesEditing');_0x4c74b3['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c74b3['enableCommand']('goToNextRestrictedEditingException');const _0x3ed4e6=_0x49e99e['plugins']['get']('RestrictedEditingModeEditing');_0x3ed4e6['enableCommand']('trackChanges'),_0x3ed4e6['enableCommand']('acceptSuggestion'),_0x3ed4e6['enableCommand']('discardSuggestion'),_0x3ed4e6['enableCommand']('acceptAllSuggestions'),_0x3ed4e6['enableCommand']('discardAllSuggestions'),_0x3ed4e6['enableCommand']('acceptSelectedSuggestions'),_0x3ed4e6['enableCommand']('discardSelectedSuggestions');}}class St extends _0x17dcce{static get['requires'](){return[_0x24480f];}['init'](){const _0x5c62f4=this['editor'],_0x5e287c=_0x5c62f4['plugins']['get']('TrackChangesEditing');_0x5e287c['enableCommand']('shiftEnter'),_0x5c62f4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5c62f4),{'priority':'high'}),_0x5c62f4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5c62f4),{'priority':'high'}),_0x5c62f4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x535330,_0x32679a,_0x24161f)=>{_0x24161f['options']['showSuggestionHighlights']&&je(_0x5c62f4,{'showActiveMarker':!0x1})(_0x535330,_0x32679a,_0x24161f);}),_0x5e287c['descriptionFactory']['registerElementLabel']('softBreak',_0x4a9404=>c(_0x5c62f4['locale'],'ELEMENT_LINE_BREAK',_0x4a9404));}}function je(_0x40a3e3,{showActiveMarker:_0x2526dc=!0x0}={}){return(_0x2e011d,_0x1281da,_0x47f640)=>{const _0x47fac1=_0x40a3e3['plugins']['get']('TrackChangesEditing');if(!_0x47f640['consumable']['test'](_0x1281da['markerRange'],_0x2e011d['name']))return;const _0xb0a72=_0x40a3e3['model'];for(const _0x1210d5 of _0x1281da['markerRange']['getItems']()){if(!_0x1210d5['is']('element','softBreak'))continue;const _0x44f855='deletion'==_0x1281da['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2932c5}=_0x47fac1['_splitMarkerName'](_0x1281da['markerName']),_0x1a311e=_0x47f640['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x44f855,'data-author-id':_0x2932c5}),_0x4a6294=_0x47f640['mapper']['toViewPosition'](_0xb0a72['createPositionBefore'](_0x1210d5));_0x2526dc&&_0x47fac1['activeMarkers']['includes'](_0x1281da['markerName'])&&_0x47f640['writer']['addClass']('ck-suggestion-marker--active',_0x1a311e),_0x47f640['writer']['insert'](_0x4a6294,_0x1a311e),_0x47f640['mapper']['bindElementToMarker'](_0x1a311e,_0x1281da['markerName']);}};}class At extends _0x17dcce{['afterInit'](){const _0x3d0a03=this['editor'],_0x2d1a36=_0x3d0a03['model'],_0x381bcc=_0x3d0a03['locale'];if(!_0x3d0a03['plugins']['has']('StandardEditingModeEditing'))return;const _0x1c7b32=_0x3d0a03['plugins']['get']('TrackChangesEditing'),_0x39ddd1='restrictedEditingException',_0x1d1d13=_0x3d0a03['commands']['get'](_0x39ddd1);_0x1c7b32['enableCommand'](_0x39ddd1,(_0x2ff1a9,_0x2c88a8={})=>{const _0x36a02d=_0x2d1a36['document']['selection'];if(_0x36a02d['isCollapsed'])return void _0x2ff1a9(_0x2c88a8);const _0x11d3d1=void 0x0!==_0x2c88a8['forceValue']?_0x2c88a8['forceValue']:!_0x1d1d13['value'];_0x2d1a36['change'](()=>{const _0x5cadd2=Array['from'](_0x36a02d['getRanges']());for(const _0x4231d1 of _0x5cadd2){const _0x77a204=_0x11d3d1?[_0x4231d1]:no(_0x39ddd1,_0x4231d1,_0x2d1a36);for(const _0x2ff06a of _0x77a204)_0x1c7b32['markInlineFormat'](_0x2ff06a,{'commandName':_0x39ddd1,'commandParams':[{'forceValue':_0x11d3d1}]});}});}),_0x1c7b32['descriptionFactory']['registerDescriptionCallback'](_0x157cb2=>{if('formatBlock'!=_0x157cb2['type']&&'formatInline'!=_0x157cb2['type'])return;const {data:_0x1febb0}=_0x157cb2;return _0x1febb0&&_0x1febb0['commandName']==_0x39ddd1?_0x1febb0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x381bcc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x381bcc,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x17dcce{['afterInit'](){const _0x497dd2=this['editor'];if(!_0x497dd2['plugins']['has']('Style')||!_0x497dd2['plugins']['has']('DataSchema'))return;const _0x112831=_0x497dd2['plugins']['get']('TrackChangesEditing'),_0x5a1129=_0x497dd2['locale'],_0x3b6a71=_0x497dd2['config']['get']('style')||{},_0x491f2d=_0x497dd2['plugins']['get']('GeneralHtmlSupport'),_0x15ed3b=_0x497dd2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x497dd2['plugins']['get']('DataSchema'),_0x3b6a71['definitions']);_0x112831['enableDefaultAttributesIntegration']('style');const _0x75c6ea=new Set();for(const _0x5c9a39 of _0x15ed3b['block']){const _0x13e3f1=_0x491f2d['getGhsAttributeNameForElement'](_0x5c9a39['element']);_0x75c6ea['add'](_0x13e3f1);}const _0x1edc6b=new Set();for(const _0x1c44e3 of _0x15ed3b['inline']){const _0x8519b7=_0x491f2d['getGhsAttributeNameForElement'](_0x1c44e3['element']);_0x1edc6b['add'](_0x8519b7);for(const _0x36b5fa of _0x1c44e3['ghsAttributes'])_0x1edc6b['add'](_0x36b5fa);}for(const _0x2a35e3 of _0x75c6ea)_0x112831['registerBlockAttribute'](_0x2a35e3),_0x112831['descriptionFactory']['registerAttributeLabel'](_0x2a35e3,c(_0x5a1129,'FORMAT_STYLE'));for(const _0x43cf58 of _0x1edc6b)_0x112831['registerInlineAttribute'](_0x43cf58),_0x112831['descriptionFactory']['registerAttributeLabel'](_0x43cf58,c(_0x5a1129,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b3705=this['editor'],_0x161854=_0x5b3705['locale'];_0x5b3705['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ecbf0=>{if('formatBlock'!=_0x3ecbf0['type']&&'formatInline'!=_0x3ecbf0['type'])return;const {data:_0x108966}=_0x3ecbf0;return _0x108966&&'style'===_0x108966['commandName']?_0x108966['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x161854,'*Set\x20format:*\x20%0',_0x108966['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x161854,'*Remove\x20format:*\x20%0',_0x108966['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x17dcce{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x145626){super(_0x145626),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x597d0d=this['editor'],_0x5648b1=_0x597d0d['model']['document']['selection'];if(!_0x597d0d['plugins']['has']('TableEditing'))return;const _0x291c59=_0x597d0d['locale'],_0x2ca2f6=_0x597d0d['plugins']['get']('TrackChangesEditing'),_0x599970=_0x597d0d['plugins']['get']('TableUtils');_0x2ca2f6['descriptionFactory']['registerElementLabel']('table',_0x2281c4=>c(_0x291c59,'ELEMENT_TABLE',_0x2281c4)),this['_setupColumnsRowsFixing'](),_0x2ca2f6['enableCommand']('insertTable'),_0x2ca2f6['enableCommand']('selectTableRow'),_0x2ca2f6['enableCommand']('selectTableColumn');for(const _0x408979 of['insertTableRowAbove','insertTableRowBelow']){const _0x38bdf7=_0x597d0d['commands']['get'](_0x408979);_0x2ca2f6['enableCommand'](_0x408979,_0x48f85f=>{_0x597d0d['model']['change'](_0x24d057=>{_0x48f85f();const _0x25e089='above'===_0x38bdf7['order'],_0x223656=_0x599970['getSelectionAffectedTableCells'](_0x5648b1),_0x4f9664=_0x599970['getRowIndexes'](_0x223656),_0x27691e=_0x25e089?_0x4f9664['first']-0x1:_0x4f9664['last']+0x1,_0xe09723=_0x223656[0x0]['findAncestor']('table'),_0x211d74=_0x599970['createTableWalker'](_0xe09723,{'startRow':_0x27691e,'endRow':_0x27691e}),_0x293524=Array['from'](_0x211d74)['map'](_0x29c8b9=>_0x24d057['createRangeOn'](_0x29c8b9['cell']));_0x2ca2f6['markMultiRangeInsertion'](_0x293524,'tableRow');});});}for(const _0x1bd326 of['insertTableColumnLeft','insertTableColumnRight']){const _0xe5691=_0x597d0d['commands']['get'](_0x1bd326);_0x2ca2f6['enableCommand'](_0x1bd326,_0x57ee90=>{_0x597d0d['model']['change'](_0x289dd5=>{_0x57ee90();const _0x56d42c='left'===_0xe5691['order'],_0x2ac981=_0x599970['getSelectionAffectedTableCells'](_0x5648b1),_0x3c44a2=_0x599970['getColumnIndexes'](_0x2ac981),_0x40beac=_0x56d42c?_0x3c44a2['first']-0x1:_0x3c44a2['last']+0x1,_0x47a311=_0x2ac981[0x0]['findAncestor']('table'),_0x2e9ff1=_0x599970['createTableWalker'](_0x47a311,{'startRow':0x0,'column':_0x40beac,'includeAllSlots':!0x1}),_0x1db626=Array['from'](_0x2e9ff1)['map'](_0x3f9d89=>_0x289dd5['createRangeOn'](_0x3f9d89['cell']));_0x2ca2f6['markMultiRangeInsertion'](_0x1db626,'tableColumn');});});}for(const _0x524ab0 of['removeTableRow','removeTableColumn']){const _0x5e5041=_0x524ab0['substr'](0xb),_0x5cb9f4=_0x5e5041['toLowerCase'](),_0x23e389=_0x5cb9f4['substr'](0x0,0x3)+'span',_0x3cb1da='table'+_0x5e5041,_0x61aed4='min'+_0x5e5041,_0x2971fa='max'+_0x5e5041;_0x2ca2f6['enableCommand'](_0x524ab0,()=>{_0x597d0d['model']['change'](_0xf86d25=>{const _0x1afdfb=_0x599970['getSelectionAffectedTableCells'](_0x5648b1),_0x47e47e=_0x1afdfb[0x0]['findAncestor']('table');let _0xab45eb;if('removeTableRow'==_0x524ab0){const _0x4f0a24=_0x599970['getRowIndexes'](_0x1afdfb);_0xab45eb={'startRow':_0x4f0a24['first'],'endRow':_0x4f0a24['last'],'includeAllSlots':!0x0};}else{const _0x4a177a=_0x599970['getColumnIndexes'](_0x1afdfb);_0xab45eb={'startColumn':_0x4a177a['first'],'endColumn':_0x4a177a['last'],'includeAllSlots':!0x0};}const _0xb9383c=_0x599970['createTableWalker'](_0x47e47e,_0xab45eb),_0x363f10=Array['from'](_0xb9383c)['map'](({cell:_0x3e213e})=>_0x3e213e),_0x12d4eb=Ne(_0x363f10['filter'](_0xe4c34f=>_0xe4c34f['hasAttribute'](_0x23e389))),_0x217b4b=Ne(_0x363f10['filter'](_0x132b89=>!_0x132b89['hasAttribute'](_0x23e389)))['map'](_0x39141f=>_0xf86d25['createRangeOn'](_0x39141f)),_0x326b90=_0x2ca2f6['markMultiRangeDeletion'](_0x217b4b,_0x3cb1da);if(_0x326b90&&('tableRow'==_0x326b90['subType']||'tableColumn'==_0x326b90['subType'])){const _0x8e0f1b=this['_getSuggestionCoords'](_0x326b90);for(const _0x374d1f of _0x12d4eb){const _0x374c38=_0xf86d25['createRangeOn'](_0x374d1f),_0x466e66=_0x599970['getCellLocation'](_0x374d1f),_0x56e8ce=_0x374d1f['getAttribute'](_0x23e389)-0x1,_0x51c513=_0x8e0f1b[_0x61aed4],_0x306a03=_0x8e0f1b[_0x2971fa];_0x51c513<=_0x466e66[_0x5cb9f4]&&_0x466e66[_0x5cb9f4]+_0x56e8ce<=_0x306a03&&_0x326b90['addRange'](_0x374c38);}}});});}function _0x138aac(_0x4996f5){const _0x141c5c=Array['from'](_0x5648b1['getRanges']())['map'](_0x16aae2=>_0x2887d8['fromRange'](_0x16aae2));_0x597d0d['model']['change'](_0x561933=>{const _0x1a1369=_0x561933['batch'];_0x4996f5=_0x4996f5['filter'](_0x97ecbd=>'$graveyard'!=_0x97ecbd['root']['rootName']),_0x561933['setSelection'](_0x4996f5),_0x597d0d['commands']['get']('removeTableRow')['refresh'](),_0x597d0d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x597d0d['model']['enqueueChange'](()=>{_0x597d0d['model']['enqueueChange'](_0x1a1369,_0x2d06b3=>{const _0x522ab2=_0x141c5c['filter'](_0x14fbe3=>'$graveyard'!=_0x14fbe3['root']['rootName']);_0x522ab2['length']>0x0&&_0x2d06b3['setSelection'](_0x522ab2);for(const _0x18ce26 of _0x141c5c)_0x18ce26['detach']();});});});}function _0x545949(_0x559aa3){_0x597d0d['model']['change'](_0x29c0ec=>{const _0x76a220=Array['from'](_0x5648b1['getRanges']())['map'](_0x30b6c1=>_0x2887d8['fromRange'](_0x30b6c1)),_0x1099f1=[];for(const _0x2b0601 of _0x559aa3)for(const _0x37be1d of _0x2b0601['getItems']({'shallow':!0x0}))_0x1099f1['push'](_0x37be1d);for(const _0x27e312 of _0x1099f1)'$graveyard'!=_0x27e312['root']['rootName']&&(_0x29c0ec['setSelection'](_0x29c0ec['createPositionAt'](_0x27e312,0x0)),_0x597d0d['commands']['get']('removeTableColumn')['refresh'](),_0x597d0d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3742d3=_0x76a220['filter'](_0x3ac473=>'$graveyard'!=_0x3ac473['root']['rootName']);_0x3742d3['length']>0x0&&_0x29c0ec['setSelection'](_0x3742d3);for(const _0x4a37ba of _0x76a220)_0x4a37ba['detach']();});}function _0x4da614(_0x422f94,_0x454114){return _0x454114['every'](_0x32b57b=>_0x422f94['some'](_0x3d47aa=>_0x3d47aa['end']['isEqual'](_0x32b57b['start'])||_0x32b57b['end']['isEqual'](_0x3d47aa['start'])));}function _0x3ba5c3(_0x40fd0e,_0x32d124){return!_0x40fd0e['some'](_0x16d0d3=>_0x32d124['some'](_0x11a080=>_0x16d0d3['isIntersecting'](_0x11a080)))&&_0x40fd0e['some'](_0xa8e8bc=>_0x32d124['some'](_0x51e523=>_0xa8e8bc['end']['isTouching'](_0x51e523['start'])));}_0x597d0d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ba2f1,_0x3b9895,_0x11979f)=>{if(!_0x11979f['options']['showSuggestionHighlights'])return;const _0x325796=_0x3b9895['item'];if(!_0x325796)return;const _0xccd1d8=_0x11979f['mapper']['toViewElement'](_0x325796);function _0x4fb31a(_0x1759ec){return Array['isArray'](_0x1759ec)?_0x1759ec:[_0x1759ec];}_0xccd1d8&&'tableCell'===_0x325796['name']&&_0x20af48(_0xccd1d8,_0x11979f['writer'],(_0x3bf50d,_0x408823,_0x38ad8c)=>_0x38ad8c['addClass'](_0x4fb31a(_0x408823['classes']),_0x3bf50d),(_0x53f7ce,_0x4d3328,_0x21cd4c)=>_0x21cd4c['removeClass'](_0x4fb31a(_0x4d3328['classes']),_0x53f7ce));},{'priority':'highest'}),_0x2ca2f6['descriptionFactory']['registerDescriptionCallback'](_0x393890=>{if('insertion'!=_0x393890['type']&&'deletion'!=_0x393890['type'])return;const _0x4bfb23=_0x393890['getContainedElement']();if(null!=_0x4bfb23&&_0x4bfb23['is']('element','table')){if('insertion'==_0x393890['type']){const _0x2fdcaa=_0x393890['getItems']()['filter'](_0x3fff5d=>_0x3fff5d['is']('$textProxy'))['map'](_0x15c8c3=>_0x15c8c3['data']);if(_0x2fdcaa['length'])return{'type':'insertion','content':c(_0x291c59,'*Insert:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2fdcaa['join']('\x20')+'\x22'))};}if('deletion'==_0x393890['type']){const _0x692832=_0x393890['getItems']()['filter'](_0x1360c4=>_0x1360c4['is']('$textProxy'))['map'](_0x2ac4cc=>_0x2ac4cc['data']);if(_0x692832['length'])return{'type':'deletion','content':c(_0x291c59,'*Remove:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x692832['join']('\x20')+'\x22'))};}}}),_0x2ca2f6['descriptionFactory']['registerDescriptionCallback'](_0x24ff93=>{if('tableRow'==_0x24ff93['subType']){const _0x2c274e=_0x24ff93['getItems']()['filter'](_0x250c91=>_0x250c91['is']('$textProxy'))['map'](_0x5a99aa=>_0x5a99aa['data']),_0x509ac7=this['_getSuggestionCoords'](_0x24ff93),_0x22c966=_0x509ac7['maxRow']-_0x509ac7['minRow']+0x1;if('insertion'==_0x24ff93['type'])return _0x2c274e['length']?{'type':'insertion','content':c(_0x291c59,'*Insert:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22c966,'\x22'+_0x2c274e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x291c59,'*Insert:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_ROW',_0x22c966))};if('deletion'==_0x24ff93['type'])return _0x2c274e['length']?{'type':'deletion','content':c(_0x291c59,'*Remove:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x22c966,'\x22'+_0x2c274e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x291c59,'*Remove:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_ROW',_0x22c966))};}if('tableColumn'==_0x24ff93['subType']){const _0x200ac8=_0x24ff93['getItems']()['filter'](_0x2c2a78=>_0x2c2a78['is']('$textProxy'))['map'](_0x4d6477=>_0x4d6477['data']),_0x352bd2=this['_getSuggestionCoords'](_0x24ff93),_0x198051=_0x352bd2['maxColumn']-_0x352bd2['minColumn']+0x1;if('insertion'==_0x24ff93['type'])return _0x200ac8['length']?{'type':'insertion','content':c(_0x291c59,'*Insert:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x198051,'\x22'+_0x200ac8['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x291c59,'*Insert:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_COLUMN',_0x198051))};if('deletion'==_0x24ff93['type'])return _0x200ac8['length']?{'type':'deletion','content':c(_0x291c59,'*Remove:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x198051,'\x22'+_0x200ac8['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x291c59,'*Remove:*\x20%0',c(_0x291c59,'ELEMENT_TABLE_COLUMN',_0x198051))};}}),_0x2ca2f6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x138aac),_0x2ca2f6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x138aac),_0x2ca2f6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x545949),_0x2ca2f6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x545949),_0x2ca2f6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4da614),_0x2ca2f6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4da614),_0x2ca2f6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3ba5c3),_0x2ca2f6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3ba5c3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x58f1ca=this['editor'],_0x204b3c=_0x58f1ca['model']['document']['selection'];return(_0x55d19d,_0x133019)=>{_0x58f1ca['model']['change'](_0x5533eb=>{const {commandName:_0x33b12a,commandParams:_0x2705ee}=_0x133019;let _0x5dab59=_0x55d19d[0x0]['end']['nodeBefore'];_0x2705ee&&_0x2705ee[0x0]&&!0x1===_0x2705ee[0x0]['forceValue']&&(_0x5dab59=_0x55d19d[0x0]['start']['nodeAfter']);const _0x4c7d69=_0x5533eb['createRangeIn'](_0x5dab59);if('$graveyard'==_0x4c7d69['root']['rootName'])return;const _0x248a6e=Array['from'](_0x204b3c['getRanges']())['map'](_0x2c7377=>_0x2887d8['fromRange'](_0x2c7377));_0x5533eb['setSelection'](_0x4c7d69),_0x58f1ca['commands']['get'](_0x33b12a)['refresh'](),_0x2705ee['push']({'forceDefaultExecution':!0x0}),_0x58f1ca['execute'](_0x33b12a,..._0x2705ee);const _0x50e599=_0x248a6e['filter'](_0x558ec6=>'$graveyard'!=_0x558ec6['root']['rootName']);_0x50e599['length']>0x0&&_0x5533eb['setSelection'](_0x50e599);for(const _0xa435de of _0x248a6e)_0xa435de['detach']();});};}['_getCoordsForCells'](_0x1cced5){const _0x4c1fea=this['editor']['plugins']['get']('TableUtils');let _0x254ab6=Number['MAX_SAFE_INTEGER'],_0x3ccc64=Number['MIN_SAFE_INTEGER'],_0x27232f=Number['MAX_SAFE_INTEGER'],_0x533512=Number['MIN_SAFE_INTEGER'];for(const _0x104a33 of _0x1cced5){if('$graveyard'==_0x104a33['root']['rootName'])continue;const {row:_0x405940,column:_0x39afc8}=_0x4c1fea['getCellLocation'](_0x104a33),_0x184d32=_0x104a33['hasAttribute']('rowspan')?_0x104a33['getAttribute']('rowspan')-0x1:0x0,_0x454ba9=_0x104a33['hasAttribute']('colspan')?_0x104a33['getAttribute']('colspan')-0x1:0x0;_0x254ab6=_0x405940<_0x254ab6?_0x405940:_0x254ab6,_0x3ccc64=_0x405940+_0x184d32>_0x3ccc64?_0x405940+_0x184d32:_0x3ccc64,_0x27232f=_0x39afc8<_0x27232f?_0x39afc8:_0x27232f,_0x533512=_0x39afc8+_0x454ba9>_0x533512?_0x39afc8+_0x454ba9:_0x533512;}return{'minRow':_0x254ab6,'maxRow':_0x3ccc64,'minColumn':_0x27232f,'maxColumn':_0x533512};}['_setupColumnsRowsFixing'](){const _0x21ee0c=this['editor'],_0x3e64ac=_0x21ee0c['plugins']['get']('TrackChangesEditing'),_0x421fd3=_0x21ee0c['plugins']['get']('TableUtils');_0x21ee0c['model']['document']['on']('change:data',()=>{const _0x53e19a=Array['from'](_0x21ee0c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c5789,data:_0x5f2801}of _0x53e19a){const {group:_0x49f740,id:_0x4c7632,subType:_0x1714b3}=_0x3e64ac['_splitMarkerName'](_0x3c5789);if('suggestion'!=_0x49f740)continue;if(null!=_0x5f2801['oldRange'])continue;const _0x2b1b9a=_0x3e64ac['getSuggestion'](_0x4c7632);this['_tablePostFixingSubtypes']['includes'](_0x1714b3)&&this['_tableSuggestions']['add'](_0x2b1b9a);}},{'priority':'low'});const _0x35c8cd=(_0x55b49b,_0x725616)=>{let _0x43c29e=!0x1;const _0x25589d=_0x725616['createRangeOn'](_0x55b49b),_0xad1085=_0x55b49b['findAncestor']('table'),_0x564215=_0x421fd3['getCellLocation'](_0x55b49b);for(const _0x32e446 of this['_tableSuggestions']){const _0x18b273=_0x32e446['subType'],_0x3dedfa=_0x18b273['startsWith']('tablePaste'),_0xa89658=_0x18b273['substr'](_0x3dedfa?0xa:0x5),_0x245f3a=_0xa89658['toLowerCase'](),_0x2ef2af=_0x245f3a['substr'](0x0,0x3)+'span',_0x3201cc='min'+_0xa89658,_0x29191a='max'+_0xa89658;if(!_0x32e446['isInContent'])continue;if(_0xad1085!=_0x32e446['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x32e446['isIntersectingWithRange'](_0x25589d))continue;const _0x514fac=_0x55b49b['hasAttribute'](_0x2ef2af)?_0x55b49b['getAttribute'](_0x2ef2af)-0x1:0x0,_0x8663b6=this['_getSuggestionCoords'](_0x32e446),_0x4bbcc6=_0x8663b6[_0x3201cc],_0x4202e3=_0x8663b6[_0x29191a];_0x4bbcc6<=_0x564215[_0x245f3a]&&_0x564215[_0x245f3a]+_0x514fac<=_0x4202e3&&(_0x32e446['addRange'](_0x25589d),_0x43c29e=!0x0);}return _0x43c29e;};_0x21ee0c['model']['document']['registerPostFixer'](_0x323270=>{let _0x4587b1=!0x1;for(const _0x4a8437 of _0x21ee0c['model']['document']['differ']['getChanges']())if('insert'==_0x4a8437['type']){if('tableRow'==_0x4a8437['name']){for(const _0x2cdc29 of _0x4a8437['position']['nodeAfter']['getChildren']())_0x4587b1=_0x4587b1||_0x35c8cd(_0x2cdc29,_0x323270);}else'tableCell'==_0x4a8437['name']&&(_0x4587b1=_0x4587b1||_0x35c8cd(_0x4a8437['position']['nodeAfter'],_0x323270));}return _0x4587b1;});}['_getSuggestionCoords'](_0x4b115b){return this['_getCoordsForCells'](_0x4b115b['getRanges']()['map'](_0x110dcf=>_0x110dcf['start']['nodeAfter']));}}function Ne(_0x5b31b3){return Array['from'](new Set(_0x5b31b3)['values']());}class vt extends _0x17dcce{static get['requires'](){return[_t];}['afterInit'](){const _0x1c48d6=this['editor'],_0xae8431=_0x1c48d6['model']['document']['selection'],_0x504611=_0x1c48d6['locale'];if(!_0x1c48d6['plugins']['has']('TableEditing'))return;const _0x899117=_0x1c48d6['plugins']['get']('TrackChangesEditing'),_0x303ae9=_0x1c48d6['plugins']['get']('TableUtils'),_0x5585d8=_0x1c48d6['plugins']['get'](_t);_0x5585d8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x899117['enableCommand']('mergeTableCells',()=>{const _0x1d9f9c=_0x303ae9['getSelectionAffectedTableCells'](_0x1c48d6['model']['document']['selection']);_0x1c48d6['model']['change'](()=>{_0x899117['markMultiRangeBlockFormat'](_0x1d9f9c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1c48d6['commands']['get']('mergeTableCells')['on']('execute',(_0xd30adf,_0x52ad9d)=>{_0x1c48d6['commands']['get']('trackChanges')['value']&&(_0x52ad9d['length']>0x0&&_0x52ad9d[_0x52ad9d['length']-0x1]&&_0x52ad9d[_0x52ad9d['length']-0x1]['forceDefaultExecution']||_0x899117['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xd30adf['stop']());},{'priority':'highest'});for(const _0xab5118 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x42f15a=_0x1c48d6['commands']['get'](_0xab5118);_0x899117['enableCommand'](_0xab5118,()=>{const _0x3f68a4=_0x1c48d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f2bfd=>_0x2f2bfd['is']('element','tableCell')),_0x59d228=_0x42f15a['value'];_0x1c48d6['model']['change'](()=>{_0x899117['markMultiRangeBlockFormat']([_0x3f68a4,_0x59d228],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x21cef0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x506c7a=_0x1c48d6['commands']['get'](_0x21cef0);_0x899117['enableCommand'](_0x21cef0,()=>{const _0x41fe87=_0x303ae9['getSelectionAffectedTableCells'](_0x1c48d6['model']['document']['selection'])[0x0],_0x47c21f=_0x41fe87['findAncestor']('table'),{column:_0x396795,row:_0x277a7f}=_0x303ae9['getCellLocation'](_0x41fe87);let _0x3a4173=[];if('horizontally'==_0x506c7a['direction']){const _0x1f1b57=_0x303ae9['createTableWalker'](_0x47c21f,{'startRow':_0x277a7f,'endRow':_0x277a7f,'includeAllSlots':!0x0});_0x3a4173=Array['from'](_0x1f1b57)['map'](_0x235cca=>_0x235cca['cell']);}else{const _0x16b62d=_0x303ae9['createTableWalker'](_0x47c21f,{'column':_0x396795,'includeAllSlots':!0x0});_0x3a4173=Array['from'](_0x16b62d)['map'](_0x307d0b=>_0x307d0b['cell']);}_0x1c48d6['model']['change'](_0xb1fb90=>{_0x899117['markBlockFormat'](_0xb1fb90['createRangeOn'](_0x41fe87),{'commandName':_0x21cef0,'commandParams':[]},_0x3a4173,_0x21cef0);});});}_0x899117['descriptionFactory']['registerDescriptionCallback'](_0x179cb1=>{if('formatBlock'!=_0x179cb1['type']&&'formatInline'!=_0x179cb1['type'])return;const {data:_0x42ccbe}=_0x179cb1;return _0x42ccbe&&'mergeTableCells'==_0x42ccbe['commandName']?{'type':'format','content':c(_0x504611,'*Merge\x20cells*')}:void 0x0;}),_0x899117['descriptionFactory']['registerDescriptionCallback'](_0x27ba64=>{if('formatBlock'!=_0x27ba64['type']&&'formatInline'!=_0x27ba64['type'])return;const {data:_0x591f52}=_0x27ba64;return _0x591f52?'splitTableCellVertically'==_0x591f52['commandName']?{'type':'format','content':c(_0x504611,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x591f52['commandName']?{'type':'format','content':c(_0x504611,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x25f074=_0x5585d8['_acceptFormatSuggestionCallbackFactory']();for(const _0x26a37d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x899117['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x26a37d,'accept',_0x25f074);for(const _0x101e45 of['splitTableCellVertically','splitTableCellHorizontally'])_0x899117['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x101e45,'accept',_0x25f074);_0x899117['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x25f2a6=>{_0x1c48d6['model']['change'](_0xe72a2f=>{const _0x892afa=Array['from'](_0xae8431['getRanges']())['map'](_0x53698e=>_0x2887d8['fromRange'](_0x53698e));_0xe72a2f['setSelection'](_0x25f2a6),_0x1c48d6['commands']['get']('mergeTableCells')['refresh'](),_0x1c48d6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1ecb6f=_0x892afa['filter'](_0x197a53=>'$graveyard'!=_0x197a53['root']['rootName']);_0x1ecb6f['length']>0x0&&_0xe72a2f['setSelection'](_0x1ecb6f);for(const _0x345048 of _0x892afa)_0x345048['detach']();});});for(const _0x4b70b8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xa8d9eb=_0x1c48d6['commands']['get'](_0x4b70b8);_0xa8d9eb['on']('set:isEnabled',(_0x444df8,_0x32fff4,_0x3fcb02)=>{if(_0x3fcb02){const _0x14ca1e=_0x1c48d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e833c=>_0x1e833c['is']('element','tableCell'));this['_areMergableCells'](_0xa8d9eb['value'],_0x14ca1e)||(_0x444df8['return']=!0x1,_0x444df8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x15d271=this['editor']['commands']['get']('mergeTableCells'),_0x9e208f=this['editor']['plugins']['get']('TableUtils');if(!_0x15d271['isEnabled'])return!0x1;const _0x34ca37=_0x9e208f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x190d05 of _0x34ca37)for(const _0xaee219 of _0x34ca37)if(_0x190d05!=_0xaee219&&!this['_areMergableCells'](_0x190d05,_0xaee219))return!0x1;return!0x0;}['_areMergableCells'](_0x488ebb,_0x4c2e50){const _0x232e09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20feb2=this['editor']['model']['createRangeOn'](_0x488ebb),_0x1a333d=this['editor']['model']['createRangeOn'](_0x4c2e50),_0x117b30=new Set(),_0x4bb4e2=new Set();for(const _0x3ea176 of _0x232e09['getSuggestions']())if(('insertion'==_0x3ea176['type']||'deletion'==_0x3ea176['type']||'mergeTableCells'==_0x3ea176['subType'])&&_0x3ea176['isInContent']){for(const _0x4e1215 of _0x3ea176['getRanges']())_0x4e1215['containsRange'](_0x20feb2,!0x0)&&_0x117b30['add'](_0x3ea176['type']+':'+_0x3ea176['author']['id']),_0x4e1215['containsRange'](_0x1a333d,!0x0)&&_0x4bb4e2['add'](_0x3ea176['type']+':'+_0x3ea176['author']['id']);}if(_0x117b30['size']!=_0x4bb4e2['size'])return!0x1;for(const _0x1af735 of _0x117b30)if(!_0x4bb4e2['has'](_0x1af735))return!0x1;return!0x0;}}class Ct extends _0x17dcce{static get['requires'](){return[_t];}['afterInit'](){const _0x43abed=this['editor'];if(!_0x43abed['plugins']['has']('TableEditing'))return;const _0x29e88b=_0x43abed['locale'],_0xeb652b=_0x43abed['plugins']['get']('TrackChangesEditing');_0xeb652b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xeb652b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xeb652b['registerBlockAttribute']('headingRows'),_0xeb652b['registerBlockAttribute']('headingColumns'),_0xeb652b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x29e88b,'FORMAT_HEADER_ROW')),_0xeb652b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x29e88b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x211c8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51a3b9=this['editor']['plugins']['get']('TableUtils'),_0x25941f=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x31b3a7({showActiveMarker:_0x19de81=!0x0,setDataAttribute:_0x599deb=!0x0}={}){return(_0x46d30b,_0x40ce9b,_0x4a2fec)=>{const {type:_0x3f7a6f,id:_0x17e543}=_0x211c8b['_splitMarkerName'](_0x40ce9b['markerName']),_0x2fedcd=_0x211c8b['getSuggestion'](_0x17e543),_0x3ac21d=_0x2fedcd['data'];if('formatBlock'!=_0x2fedcd['type']||!_0x3ac21d||'setTableColumnHeader'!=_0x3ac21d['commandName'])return;if(_0x40ce9b['item'])return void _0x46d30b['stop']();if(!_0x4a2fec['consumable']['consume'](_0x40ce9b['markerRange'],_0x46d30b['name']))return;const _0x4ae973=_0x40ce9b['markerRange']['start']['nodeAfter'],_0x34a321=_0x40ce9b['markerRange']['end']['nodeBefore'],_0x5ddd1d=_0x4ae973['parent']['parent'],{column:_0x3748c1}=_0x51a3b9['getCellLocation'](_0x4ae973),{column:_0x2da04}=_0x51a3b9['getCellLocation'](_0x34a321);for(let _0x30af3d=_0x3748c1;_0x30af3d<=_0x2da04;_0x30af3d++){const _0x378cbc=_0x51a3b9['createTableWalker'](_0x5ddd1d,{'column':_0x30af3d,'includeAllSlots':!0x1});for(const _0x603fda of _0x378cbc){const _0x47d145=_0x603fda['cell'],_0xf6a6cd=_0x4a2fec['mapper']['toViewElement'](_0x47d145);_0x4a2fec['writer']['addClass']('ck-suggestion-marker-'+_0x3f7a6f,_0xf6a6cd),_0x599deb&&_0x4a2fec['writer']['setAttribute']('data-suggestion',_0x17e543,_0xf6a6cd),_0x4a2fec['mapper']['bindElementToMarker'](_0xf6a6cd,_0x40ce9b['markerName']),_0x19de81&&(_0x211c8b['activeMarkers']['includes'](_0x40ce9b['markerName'])?_0x4a2fec['writer']['addClass']('ck-suggestion-marker--active',_0xf6a6cd):_0x4a2fec['writer']['removeClass']('ck-suggestion-marker--active',_0xf6a6cd));}}};}_0x211c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x25941f),_0x211c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x25941f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x31b3a7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25c3e6,_0x352187,_0x182b56)=>{_0x182b56['options']['showSuggestionHighlights']&&_0x31b3a7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x25c3e6,_0x352187,_0x182b56);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2b5467,_0x22f3e2,_0x5e4fdc)=>{const {type:_0x469c64,id:_0x83a79c}=_0x211c8b['_splitMarkerName'](_0x22f3e2['markerName']),_0x3e3a51=_0x211c8b['getSuggestion'](_0x83a79c),_0x3cced2=_0x3e3a51['data'];if('formatBlock'!=_0x3e3a51['type']||!_0x3cced2||'setTableColumnHeader'!=_0x3cced2['commandName'])return;const _0xd9b143=_0x5e4fdc['mapper']['markerNameToElements'](_0x22f3e2['markerName']);if(_0xd9b143){for(const _0x5810d4 of _0xd9b143)_0x5e4fdc['writer']['removeClass']('ck-suggestion-marker-'+_0x469c64,_0x5810d4),_0x5e4fdc['writer']['removeClass']('ck-suggestion-marker--active',_0x5810d4),_0x5e4fdc['writer']['removeAttribute']('data-suggestion',_0x5810d4),_0x5e4fdc['mapper']['unbindElementFromMarkerName'](_0x5810d4,_0x22f3e2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f33c1=this['editor'],_0x31c795=_0x4f33c1['locale'];function _0x2816a4(_0x3d8eac){return{'type':'format','content':c(_0x31c795,'*Format:*\x20%0',_0x3d8eac)};}_0x4f33c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b5ed=>{if('formatBlock'!=_0x34b5ed['type'])return;const {data:_0xa862e5}=_0x34b5ed;if(_0xa862e5){if('setTableRowHeader'==_0xa862e5['commandName']){const _0x3c6917=_0xa862e5['commandParams'][0x0]['forceValue'];return _0x2816a4(c(_0x31c795,_0x3c6917?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa862e5['commandName']){const _0x178362=_0xa862e5['commandParams'][0x0]['forceValue'];return _0x2816a4(c(_0x31c795,_0x178362?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x45448=>[_0x45448,null]));class Nt extends _0x17dcce{static get['requires'](){return[_t];}['afterInit'](){const _0x4a4f9d=this['editor'];if(!_0x4a4f9d['plugins']['has']('TableClipboard'))return;const _0x206dd1=_0x4a4f9d['plugins']['get']('TrackChangesEditing'),_0x4d65ae=_0x4a4f9d['plugins']['get']('TableUtils'),_0x172118=_0x4a4f9d['plugins']['get'](_t),_0x43bb92=_0x4a4f9d['plugins']['get']('TableClipboard');_0x172118['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4a4f9d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4a4f9d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x574619=null;_0x4a4f9d['model']['on']('insertContent',(_0x133387,_0x41ef34)=>{const [_0x5b84d5,_0x22885c]=_0x41ef34,_0x50093d=_0x41ef34[_0x41ef34['length']-0x1];_0x50093d&&_0x50093d['forceDefaultExecution']||_0x206dd1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x463daf,_0x294d0a,_0x29ef31,_0x56ebba,_0x1fc5d5){if(_0x294d0a&&!_0x294d0a['is']('documentSelection'))return!0x1;const _0x568bde=_0x1fc5d5['getTableIfOnlyTableInContent'](_0x463daf,_0x29ef31);if(!_0x568bde||!Ue(_0x568bde,void 0x0,_0x56ebba))return!0x1;const _0x4c6420=_0x56ebba['getSelectionAffectedTableCells'](_0x29ef31['document']['selection']);if(!_0x4c6420['length'])return!0x1;const _0x468bdf=_0x4c6420[0x0]['findAncestor']('table'),_0x5bfdf7=_0x56ebba['getRowIndexes'](_0x4c6420),_0x3e6ed6=_0x56ebba['getColumnIndexes'](_0x4c6420),_0x26d200={'startRow':_0x5bfdf7['first'],'endRow':_0x5bfdf7['last'],'startColumn':_0x3e6ed6['first'],'endColumn':_0x3e6ed6['last']};return 0x1==_0x4c6420['length']&&(_0x26d200['endRow']+=_0x56ebba['getRows'](_0x568bde)-0x1,_0x26d200['endColumn']+=_0x56ebba['getColumns'](_0x568bde)-0x1),Ue(_0x468bdf,_0x26d200,_0x56ebba);}(_0x5b84d5,_0x22885c,_0x4a4f9d['model'],_0x4d65ae,_0x43bb92)&&(_0x133387['stop'](),_0x574619={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a4f9d['model']['change'](()=>{_0x4a4f9d['model']['insertContent'](_0x41ef34[0x0],_0x41ef34[0x1],_0x41ef34[0x2],{'forceDefaultExecution':!0x0});const _0x1bc401=_0x54ee4c(),{rowInsertionRanges:_0xba0401,columnInsertionRanges:_0x1bd961,insertionRanges:_0x150062,deletionRanges:_0x3b6191,cells:_0x2fb991}=_0x574619;_0xba0401['length']&&_0x206dd1['markMultiRangeInsertion'](_0xba0401,'tablePasteRow',{'tablePasteChainId':_0x1bc401}),_0x1bd961['length']&&_0x206dd1['markMultiRangeInsertion'](_0x1bd961,'tablePasteColumn',{'tablePasteChainId':_0x1bc401}),_0x150062['length']&&(_0x206dd1['markMultiRangeInsertion'](_0x150062,'tablePaste',{'tablePasteChainId':_0x1bc401,'skipNestingCheck':!0x0}),_0x150062['forEach'](_0x98f400=>_0x98f400['detach']?.())),_0x3b6191['length']&&(_0x206dd1['markMultiRangeDeletion'](_0x3b6191,'tablePaste',{'tablePasteChainId':_0x1bc401,'skipNestingCheck':!0x0}),_0x3b6191['forEach'](_0xcee380=>_0xcee380['detach']?.()));const _0x439067=_0x206dd1['markMultiRangeBlockFormat'](_0x2fb991['map'](({element:_0x2c2345})=>_0x2c2345),{'formatGroupId':_0x54ee4c()},[],'tablePasteCell',{'tablePasteChainId':_0x1bc401});if(_0x439067){const _0x2ec1e2=_0x439067['getMarkers'](),_0x19d814=[];for(const {element:_0x3dd2b7,attributes:_0x5bcbf7}of _0x2fb991){if(!_0x5bcbf7)continue;const _0x465e03=_0x4a4f9d['model']['createRangeOn'](_0x3dd2b7),_0x1e72ec=_0x2ec1e2['find'](_0x539c7b=>_0x539c7b['getRange']()['isEqual'](_0x465e03));_0x1e72ec&&_0x19d814['push']([_0x1e72ec['name'],_0x5bcbf7]);}_0x19d814['length']&&_0x439067['setAttribute']('markerAttributes',Object['fromEntries'](_0x19d814));}_0x574619=null;}));},{'priority':_0x317f6e['high']+0xa}),_0x4a4f9d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4e143f,_0x42b1ef)=>{const [_0x41c4c3,_0x3df6e3,,_0x48e6ab]=_0x42b1ef;if(!_0x574619)return;_0x4e143f['stop']();const _0x4ab4ef=_0x41c4c3['cell'],_0x176748=_0x3df6e3,_0x50d55c=Oe(_0x4ab4ef),_0x1b044b=Oe(_0x176748);_0x4e143f['return']=_0x4ab4ef;let _0x8e391b=null,_0x5586a7=null;if(_0x1b044b||_0x50d55c){if(_0x50d55c&&!_0x1b044b){_0x48e6ab['remove'](_0x4ab4ef['getChild'](0x0));for(const _0x2e1d6e of Array['from'](_0x176748['getChildren']()))_0x48e6ab['insert'](_0x2e1d6e,_0x4ab4ef,'end');const _0x200b3d=_0x574619['rowInsertionIndexes']['includes'](_0x41c4c3['row']),_0x398572=_0x574619['columnInsertionIndexes']['includes'](_0x41c4c3['column']);_0x200b3d||_0x398572||(_0x8e391b=_0x2887d8['fromRange'](_0x48e6ab['createRangeIn'](_0x4ab4ef)));}else _0x1b044b&&!_0x50d55c&&(_0x5586a7=_0x48e6ab['createRangeIn'](_0x4ab4ef));}else{const _0x49c909=_0x48e6ab['createElement']('tableCellSuggestion'),_0x355e42=_0x48e6ab['createElement']('tableCellSuggestion');_0x48e6ab['wrap'](_0x48e6ab['createRangeIn'](_0x4ab4ef),_0x355e42),_0x48e6ab['insert'](_0x49c909,_0x4ab4ef,0x0);for(const _0x3e42f1 of Array['from'](_0x176748['getChildren']()))_0x48e6ab['insert'](_0x3e42f1,_0x49c909,'end');_0x8e391b=_0x2887d8['fromRange'](_0x48e6ab['createRangeOn'](_0x49c909)),_0x5586a7=_0x2887d8['fromRange'](_0x48e6ab['createRangeOn'](_0x355e42));}const _0x155b03=Array['from'](_0x176748['getAttributes']())['filter'](([_0x35b21])=>Be['includes'](_0x35b21));_0x574619['cells']['push']({'element':_0x4ab4ef,'attributes':_0x155b03['length']?Object['fromEntries'](_0x155b03):null}),_0x8e391b&&_0x574619['insertionRanges']['push'](_0x8e391b),_0x5586a7&&_0x574619['deletionRanges']['push'](_0x5586a7);},{'priority':'high'}),_0x4d65ae['on']('insertColumns',(_0x2aa516,_0x1be59c)=>{const [_0x2a1eb2,_0x1d77ec={}]=_0x1be59c;if(!_0x574619)return;const _0x4be8b0=_0x1d77ec['at']||0x0,_0x1de3f4=_0x1d77ec['columns']||0x1;_0x574619['columnInsertionIndexes']=new Array(_0x1de3f4)['fill'](_0x4be8b0)['map']((_0x3618a9,_0x16bdb5)=>_0x3618a9+_0x16bdb5);for(const {cell:_0x5c4926}of _0x4d65ae['createTableWalker'](_0x2a1eb2,{'startColumn':_0x4be8b0,'endColumn':_0x4be8b0+_0x1de3f4-0x1}))_0x574619['columnInsertionRanges']['push'](_0x4a4f9d['model']['createRangeOn'](_0x5c4926));},{'priority':'low'}),_0x4d65ae['on']('insertRows',(_0x256b2d,_0x259d49)=>{const [_0x3f16e1,_0x418518={}]=_0x259d49;if(!_0x574619)return;const _0x5db5d1=_0x418518['at']||0x0,_0x19dac7=_0x418518['rows']||0x1;_0x574619['rowInsertionIndexes']=new Array(_0x19dac7)['fill'](_0x5db5d1)['map']((_0x78aa51,_0x271972)=>_0x78aa51+_0x271972);for(const {cell:_0x1c21d7}of _0x4d65ae['createTableWalker'](_0x3f16e1,{'startRow':_0x5db5d1,'endRow':_0x5db5d1+_0x19dac7-0x1}))_0x574619['rowInsertionRanges']['push'](_0x4a4f9d['model']['createRangeOn'](_0x1c21d7));},{'priority':'low'}),_0x206dd1['descriptionFactory']['registerDescriptionCallback'](_0x19d862=>{if(_0x19d862['subType']&&_0x19d862['subType']['startsWith']('tablePaste'))return _0x19d862['previous']?{}:{'type':'insertion','content':c(_0x4a4f9d['locale'],'*Replace\x20table\x20cells*')};});const _0x2a199e=()=>!0x1;for(const _0x37c530 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x206dd1['_suggestionFactory']['registerCustomCallback']('insertion',_0x37c530,'join',_0x2a199e),_0x206dd1['_suggestionFactory']['registerCustomCallback']('deletion',_0x37c530,'join',_0x2a199e),_0x206dd1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x37c530,'join',_0x2a199e);_0x206dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2a199e),_0x206dd1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48e3bf,_0x4c2b15,_0x48b07)=>{const _0x440c51=_0x48e3bf['map'](_0x132be7=>_0x132be7['getContainedElement']())['filter'](_0x4d759e=>_0x4d759e),_0x34a206=new Map(_0x440c51['map'](_0x29cea9=>[_0x29cea9,null]));if(_0x574619){for(const {element:_0x3af3fc,attributes:_0x48375e}of _0x574619['cells'])_0x48375e&&_0x34a206['set'](_0x3af3fc,_0x48375e);}else{if(_0x48b07&&_0x48b07['markerAttributes'])for(const [_0x489329,_0x32d369]of Object['entries'](_0x48b07['markerAttributes'])){const _0x5a19ca=_0x4a4f9d['model']['markers']['get'](_0x489329),_0x5bc256=_0x5a19ca?_0x5a19ca['getRange']()['getContainedElement']():null;_0x5bc256&&_0x34a206['set'](_0x5bc256,_0x32d369);}}_0x4a4f9d['model']['change'](_0x22f340=>{for(const [_0x10ba23,_0x3b5968]of _0x34a206)_0x22f340['setAttributes']({...xe,..._0x3b5968},_0x10ba23);});});const _0x25d21e=(_0x5371fc,_0xb45bfe)=>{_0x206dd1['_suggestionFactory']['registerCustomCallback'](_0x5371fc,'tablePaste',_0xb45bfe,(_0x38269a,_0x33a03c,_0x29a260)=>{_0x4a4f9d['model']['change'](_0x2ad2d6=>{const _0x1ecf5d=[];for(const _0x2f7a15 of _0x38269a){const _0x54f994=_0x2f7a15['start']['nodeAfter'];_0x54f994['is']('element','tableCellSuggestion')&&_0x1ecf5d['push'](_0x54f994);}_0x206dd1['_suggestionFactory']['getSuggestionCallback'](_0x5371fc,null,_0xb45bfe)(_0x38269a,_0x33a03c,_0x29a260);for(const _0x48bde4 of _0x1ecf5d)'$graveyard'!=_0x48bde4['root']['rootName']&&_0x2ad2d6['unwrap'](_0x48bde4);});});};_0x25d21e('insertion','accept'),_0x25d21e('insertion','discard'),_0x25d21e('deletion','accept'),_0x25d21e('deletion','discard'),_0x206dd1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x6801c8=>{const _0x4d70b8=_0x6801c8['map'](_0x4dadda=>_0x4dadda['getContainedElement']()),_0x16ba35=_0x4d70b8[0x0]['findAncestor']('table'),{minRow:_0xf14e1c,maxRow:_0x25c92b}=_0x172118['_getCoordsForCells'](_0x4d70b8);_0x4d65ae['removeRows'](_0x16ba35,{'at':_0xf14e1c,'rows':_0x25c92b-_0xf14e1c+0x1});}),_0x206dd1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x49764a=>{const _0x1afe29=_0x49764a['map'](_0x750ef3=>_0x750ef3['getContainedElement']()),_0x28f89d=_0x1afe29[0x0]['findAncestor']('table'),{minColumn:_0x16c4ce,maxColumn:_0x4a55f7}=_0x172118['_getCoordsForCells'](_0x1afe29);_0x4d65ae['removeColumns'](_0x28f89d,{'at':_0x16c4ce,'columns':_0x4a55f7-_0x16c4ce+0x1});});const _0x2fb07e=(_0x1fd3f3,_0xa0feb)=>{if(!_0xa0feb['subType']||!_0xa0feb['subType']['startsWith']('tablePaste'))return;const _0x3f28d3=_0xa0feb['attributes']['tablePasteChainId'],_0x28d59a=_0x206dd1['getSuggestions']()['filter'](_0x57e738=>_0x57e738['isInContent']&&_0x57e738['attributes']&&_0x57e738['attributes']['tablePasteChainId']==_0x3f28d3);_0x28d59a['length']&&_0xa0feb['getAllAdjacentSuggestions']()['length']!=_0x28d59a['length']&&_0x28d59a['reduce']((_0x5aabf1,_0x44e8d0)=>(_0x5aabf1['next']=_0x44e8d0,_0x44e8d0['previous']=_0x5aabf1,_0x44e8d0));};function _0x2fbae8(_0x1453c7,_0x2d048a=!0x0){const {id:_0x53b25f,authorId:_0x1c7889}=_0x206dd1['_splitMarkerName'](_0x1453c7['markerName']),_0x58de6a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x597960=_0x206dd1['activeMarkers']['includes'](_0x1453c7['markerName']);return _0x597960&&_0x58de6a['push']('ck-suggestion-marker--active'),{'classes':_0x58de6a,'attributes':{'data-suggestion':_0x53b25f,'data-author-id':_0x1c7889},'priority':_0x597960&&_0x2d048a?0xbc2:0xbb8};}_0x206dd1['on']('suggestionLoaded',_0x2fb07e,{'priority':'high'}),_0x206dd1['on']('suggestionUnloaded',_0x2fb07e,{'priority':'high'}),_0x4a4f9d['model']['document']['registerPostFixer'](()=>{let _0x205caf=!0x1;const _0x540901=Array['from'](_0x4a4f9d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb5cff,data:_0x4b4f7b}of _0x540901){const {group:_0x11a34e,type:_0x42cb19,id:_0x39ccd8}=_0x206dd1['_splitMarkerName'](_0xb5cff);if('suggestion'!=_0x11a34e||'deletion'!=_0x42cb19||_0x4b4f7b['oldRange'])continue;if(!_0x206dd1['hasSuggestion'](_0x39ccd8))continue;const _0x49b610=_0x206dd1['getSuggestion'](_0x39ccd8)['getRanges'](),_0x287e11=_0x4a4f9d['plugins']['get']('Users')['me'];for(const _0x359628 of _0x206dd1['getSuggestions']()){if(!_0x359628['isInContent']||_0x359628['author']!=_0x287e11)continue;if('formatBlock'!=_0x359628['type']||'tablePasteCell'!=_0x359628['subType'])continue;if(_0x359628['getRanges']()['every'](_0x3329af=>_0x49b610['some'](_0x36c57c=>_0x36c57c['containsRange'](_0x3329af,!0x0)))){for(const _0x36aec0 of _0x359628['getAllAdjacentSuggestions']())_0x36aec0['isInContent']&&(_0x36aec0['discard'](),_0x205caf=!0x0);}}}return _0x205caf;}),_0x4a4f9d['model']['document']['registerPostFixer'](_0x552094=>{const _0x59690e=_0x4a4f9d['commands']['get']('redo');if(!_0x59690e||!_0x59690e['_createdBatches']['has'](_0x552094['batch']))return!0x1;let _0x565a47=!0x1;const _0x69f695=_0x4a4f9d['plugins']['get']('Users')['me'],_0x52e8bb=_0x4a4f9d['model']['document']['differ']['getChanges'](),_0x5bbfd2=Array['from'](_0x4a4f9d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x41e70d,data:_0x4d9c77})=>{const {group:_0x6c375e,subType:_0x532fe0,authorId:_0x6549ce}=_0x206dd1['_splitMarkerName'](_0x41e70d);return'suggestion'==_0x6c375e&&'tablePaste'==_0x532fe0&&_0x6549ce==_0x69f695['id']&&!_0x4d9c77['oldRange'];});for(const _0x42ccfb of _0x52e8bb){if('insert'!=_0x42ccfb['type']||'tableCellSuggestion'!=_0x42ccfb['name']||0x1!=_0x42ccfb['length'])continue;const _0x38a608=_0x552094['createRange'](_0x42ccfb['position'],_0x42ccfb['position']['getShiftedBy'](0x1));if(!_0x5bbfd2['find'](({data:_0x207ff6})=>_0x207ff6['newRange']['isEqual'](_0x38a608))){for(const {name:_0x584deb,data:_0x13ab5a}of _0x5bbfd2)if(_0x38a608['containsRange'](_0x13ab5a['newRange'])){_0x552094['updateMarker'](_0x584deb,{'range':_0x38a608}),_0x565a47=!0x0;break;}}}return _0x565a47;}),_0x4a4f9d['model']['document']['registerPostFixer'](_0x136860=>{let _0x1d2ca4=!0x1;const _0x4ea587=_0x4a4f9d['plugins']['get']('Users')['me'],_0xc7a191=_0x206dd1['getSuggestions']()['filter'](_0x35107a=>_0x35107a['isInContent']&&_0x35107a['author']==_0x4ea587),_0x16bca4=new Set(),_0x340562=new Set();for(const _0x585983 of _0xc7a191)if('tablePaste'==_0x585983['subType'])for(const _0x3e47df of _0x585983['getMarkers']()){const _0x23ebad=_0x3e47df['getRange']()['getContainedElement']();if(_0x23ebad){if(_0x23ebad['is']('element','tableCellSuggestion')&&Oe(_0x23ebad)){_0x585983['removeMarker'](_0x3e47df['name']),_0x16bca4['add'](_0x23ebad),_0x1d2ca4=!0x0;const _0x1854db=_0x23ebad['nextSibling'],_0x3ce6ff=_0x23ebad['previousSibling'],_0x3cfc99=_0x1854db&&_0x1854db['is']('element','tableCellSuggestion'),_0x3c7ecf=_0x3ce6ff&&_0x3ce6ff['is']('element','tableCellSuggestion');_0x3cfc99&&!_0x16bca4['has'](_0x1854db)&&_0x340562['add'](_0x1854db),_0x3c7ecf&&!_0x16bca4['has'](_0x3ce6ff)&&_0x340562['add'](_0x3ce6ff);}else _0x23ebad['is']('element','paragraph')&&_0x23ebad['isEmpty']&&(_0x585983['removeMarker'](_0x3e47df['name']),_0x1d2ca4=!0x0);}}else{if('tablePasteCell'==_0x585983['subType']){if(!_0x585983['attributes']||!_0x585983['attributes']['tablePasteChainId'])continue;const _0x1615c8=_0x585983['attributes']['markerAttributes'];if(_0x1615c8&&Object['keys'](_0x1615c8)['length'])continue;const _0x12a925=_0x585983['attributes']['tablePasteChainId'];let _0x543410=!0x0,_0x2c3340=!0x0;for(const _0x3a76ed of _0xc7a191)if(_0x3a76ed['subType']&&_0x3a76ed['subType']['startsWith']('tablePaste')){if(!_0x3a76ed['attributes']['tablePasteChainId']){_0x2c3340=!0x1;break;}if(_0x3a76ed['id']!=_0x585983['id']&&_0x3a76ed['attributes']['tablePasteChainId']==_0x12a925){_0x543410=!0x1;break;}}_0x2c3340&&_0x543410&&(_0x585983['removeMarkers'](),_0x1d2ca4=!0x0);}}for(const _0x19e09c of _0x16bca4)_0x136860['remove'](_0x19e09c);for(const _0x20306e of _0x340562)_0x136860['unwrap'](_0x20306e);return _0x1d2ca4;}),_0x4a4f9d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x460cfd=>_0x2fbae8(_0x460cfd),'converterPriority':'high'}),_0x4a4f9d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x44a7cb,_0x3b43de)=>_0x3b43de['options']['showSuggestionHighlights']?_0x2fbae8(_0x44a7cb,!0x1):null,'converterPriority':'high'});const _0x38a7cd=_0x4a4f9d['editing']['view'];this['listenTo'](_0x38a7cd['document'],'clipboardOutput',(_0x3fee58,_0x158f74)=>{const _0x3e9e4a=[];for(const _0x5da0dd of _0x38a7cd['createRangeIn'](_0x158f74['content'])['getItems']())_0x5da0dd['is']('element','suggestion-td')&&_0x3e9e4a['push'](_0x5da0dd);_0x38a7cd['change'](_0x57b50d=>{for(const _0x1028ed of _0x3e9e4a)_0x57b50d['move'](_0x57b50d['createRangeIn'](_0x1028ed),_0x57b50d['createPositionBefore'](_0x1028ed)),_0x57b50d['remove'](_0x1028ed);});});}}function Oe(_0x33f5e7){if(_0x33f5e7['isEmpty'])return!0x0;const _0x43c4b6=_0x33f5e7['getChild'](0x0);return _0x43c4b6['is']('element','paragraph')&&_0x43c4b6['isEmpty'];}function Ue(_0x4956aa,_0x607e9e={},_0xfa3018){for(const {isAnchor:_0x2bf6a1,cellHeight:_0x61ae5d,cellWidth:_0x41f7fc}of _0xfa3018['createTableWalker'](_0x4956aa,{'includeAllSlots':!0x0,..._0x607e9e}))if(!_0x2bf6a1||0x1!=_0x61ae5d||0x1!=_0x41f7fc)return!0x1;return!0x0;}class Dt extends _0x17dcce{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xb46658=this['editor']['plugins']['get']('TrackChangesEditing');_0xb46658['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xb46658['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xb46658['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb46658['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xb46658['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xb46658['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x466884,_0x2b4049){const _0x1ce2db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cde35=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x70aedb=_0x2b4049['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x19dc91=_0x1cde35['getColumnGroupElement'](_0x70aedb);let _0x76056=_0x19dc91?_0x1cde35['getTableColumnsWidths'](_0x19dc91):null,_0x5588b7=_0x70aedb['getAttribute']('tableWidth')||null;const _0xbc29f2=_0x2b4049['tableWidth']||_0x5588b7,_0x2903ba=_0x2b4049['columnWidths']||_0x76056,_0x263a1d=this['editor']['plugins']['get']('Users')['me'];for(const _0x45fa78 of _0x1ce2db['getSuggestions']()){const _0x10b0aa=_0x45fa78['getContainedElement']();if('resizeTable'===_0x45fa78['subType']&&_0x10b0aa===_0x70aedb){_0x45fa78['author']!==_0x263a1d&&_0x45fa78['discard']();const _0x3b9936=_0x45fa78['data']['commandParams'];_0x5588b7=_0x3b9936[0x0]['tableWidth'],_0x76056=_0x3b9936[0x0]['columnWidths'];break;}}_0x466884({'table':_0x70aedb,'tableWidth':_0xbc29f2,'columnWidths':_0x2903ba}),_0x1ce2db['markBlockFormat'](_0x70aedb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5588b7,'columnWidths':_0x76056}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3bb1a3){if('formatBlock'!=_0x3bb1a3['type']&&'formatInline'!=_0x3bb1a3['type'])return;const {data:_0x130312}=_0x3bb1a3;if(_0x130312&&'resizeTable'===_0x130312['formatGroupId']){const _0x418b6d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x418b6d)};}}}class Mt extends _0x17dcce{['afterInit'](){const _0x5726a2=this['editor'];_0x5726a2['plugins']['has']('Template')&&_0x5726a2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x17dcce{['afterInit'](){const _0x54a4d8=this['editor'];if(!_0x54a4d8['commands']['get']('insertTableOfContents'))return;_0x54a4d8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4e120f=_0x54a4d8['plugins']['get']('TrackChangesEditing'),_0x5626bc=_0x54a4d8['locale'];_0x4e120f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3fb790=>c(_0x5626bc,'ELEMENT_TABLE_OF_CONTENTS',_0x3fb790));}}class Bt extends _0x17dcce{['afterInit'](){const _0x22f932=this['editor'];if(!_0x22f932['plugins']['has']('Title'))return;const _0x25dceb=_0x22f932['plugins']['get']('TrackChangesEditing');_0x25dceb['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x22f932['locale'],'ELEMENT_TITLE')),_0x22f932['model']['document']['registerPostFixer'](_0x46eea8=>{let _0x1f47c6=!0x1;const _0x15a165=Array['from'](_0x22f932['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ab90f,data:_0x361a85}of _0x15a165){const {group:_0x15718b}=_0x25dceb['_splitMarkerName'](_0x4ab90f);if('suggestion'!==_0x15718b||!_0x361a85['newRange'])continue;const _0xd2afd4=_0x361a85['newRange'],_0x29c7b7=_0xd2afd4['end']['nodeBefore'];if(!_0x29c7b7||!_0x29c7b7['is']('element','title-content'))continue;if(!_0xd2afd4['start']['isTouching'](_0xd2afd4['end']))continue;const _0xc2c14a=_0x22f932['model']['schema']['getNearestSelectionRange'](_0xd2afd4['end'],'forward');if(_0xc2c14a&&_0xc2c14a['isCollapsed']){const _0x16ac88=_0x46eea8['createRange'](_0xd2afd4['start'],_0xc2c14a['start']);_0x16ac88['isEqual'](_0xd2afd4)||(_0x46eea8['updateMarker'](_0x4ab90f,{'range':_0x16ac88}),_0x1f47c6=!0x0);}_0x1f47c6||(_0x46eea8['removeMarker'](_0x4ab90f),_0x1f47c6=!0x0);}return _0x1f47c6;});}}class Ot extends _0x17dcce{['afterInit'](){const _0x4921ac=this['editor'],_0x5208f0=_0x4921ac['plugins']['get']('TrackChangesEditing');_0x4921ac['plugins']['has']('Uploadcare')&&(_0x5208f0['enableCommand']('uploadcare'),_0x4921ac['plugins']['has']('UploadcareImageEdit')&&(_0x5208f0['enableCommand']('uploadcareImageEdit'),_0x5208f0['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5208f0['registerBlockAttribute']('uploadcareImageId'),_0x5208f0['descriptionFactory']['registerDescriptionCallback'](_0x107942=>{if('attribute'!=_0x107942['type'])return;const {data:_0x542417}=_0x107942;return _0x542417&&'uploadcareImageId'==_0x542417['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x17dcce{['afterInit'](){const _0x3d05a8=this['editor'],_0x271cc1=_0x3d05a8['plugins']['get']('TrackChangesEditing');_0x3d05a8['plugins']['has']('UndoEditing')&&(_0x271cc1['enableCommand']('undo'),_0x271cc1['enableCommand']('redo'));}}class xt extends _0x17dcce{static get['requires'](){return[_t];}['afterInit'](){const _0x1d7ac0=this['editor'];if(!_0x1d7ac0['plugins']['has']('TableCaptionEditing'))return;_0x1d7ac0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x17dcce{['tableProperties'];['tableCellProperties'];constructor(_0x158d0b){super(_0x158d0b),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 _0xe54f0b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5d25a7 of this['tableProperties'])_0xe54f0b['enableCommand'](_0x5d25a7,(_0x4365a8,_0x2d9157)=>{const _0x328861=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5d25a7,[_0x328861],this['tableProperties'],'tableProperties',_0x4365a8,_0x2d9157);});_0xe54f0b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xe54f0b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe54f0b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c43ec,_0x4d292c)=>this['handleDiscardAction'](this['tableProperties'],_0x2c43ec,_0x4d292c)),_0xe54f0b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x273e87 of this['tableCellProperties'])_0xe54f0b['enableCommand'](_0x273e87,(_0x30bda4,_0x1762fd)=>{const _0x3a85a2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x273e87,_0x3a85a2,this['tableCellProperties'],'tableCellProperties',_0x30bda4,_0x1762fd);});_0xe54f0b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xe54f0b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe54f0b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x165034,_0x27ca18)=>this['handleDiscardAction'](this['tableCellProperties'],_0x165034,_0x27ca18)),_0xe54f0b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xe54f0b['descriptionFactory']['registerDescriptionCallback'](_0x20dce6=>this['handleSuggestionDescription'](_0x20dce6));}['_handlePropertyChange'](_0x56b499,_0x2ba203,_0x19ea11,_0x5e46b6,_0x3e80b1,_0x12743c){const _0x1306a0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x12743c['batch'],()=>{for(const _0xbba7ff of _0x2ba203){if(this['_getSuggestion'](_0xbba7ff,_0x5e46b6))_0x3e80b1(_0x12743c);else{const _0x450b5c={};for(const _0xfbe326 of _0x19ea11){const _0x576f5b=_0xbba7ff['getAttribute'](_0xfbe326);void 0x0!==_0x576f5b&&(_0x450b5c[_0xfbe326]=_0x576f5b);}_0x3e80b1(_0x12743c),_0x1306a0['markBlockFormat'](_0xbba7ff,{'commandParams':[_0x450b5c]},[],_0x5e46b6);}}});}['handleDiscardAction'](_0x3fff2b,_0x4b6027,_0x40b906){const _0x22ab34=_0x4b6027[0x0]['start']['nodeAfter'],_0x32f96b=_0x40b906['commandParams'][0x0];this['editor']['model']['change'](_0x19ddc8=>{for(const _0x517b2f of _0x3fff2b)void 0x0!==_0x32f96b[_0x517b2f]?_0x19ddc8['setAttribute'](_0x517b2f,_0x32f96b[_0x517b2f],_0x22ab34):_0x19ddc8['removeAttribute'](_0x517b2f,_0x22ab34);});}['handleSuggestionDescription'](_0x453a67){if(_0x453a67['data'])switch(_0x453a67['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x34b41c,_0x265e15){const _0x5d441d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xa4e324 of _0x5d441d['getSuggestions']({'skipNotAttached':!0x0})){const _0x31758e=_0xa4e324['getContainedElement']();if(_0xa4e324['subType']===_0x265e15&&_0x31758e===_0x34b41c)return _0xa4e324;}return null;}}const u='$elementName';class p extends _0x17dcce{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x247faa,_0x43ff45,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d8c8c){super(_0x2d8c8c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x34daf8,_0x4c6098,_0x4954c4,_0x3380e6)=>{this['_model']['change'](()=>{for(const _0x55cc6f of[..._0x3380e6,..._0x4954c4])this['_model']['markers']['has'](_0x55cc6f)&&_0x2d8c8c['editing']['reconvertMarker'](_0x55cc6f);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2d8c8c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2d8c8c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2d8c8c['config']['get']('trackChanges.trackFormatChanges'),_0x2d8c8c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2d8c8c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2d8c8c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5ddfb8=this['editor'],_0x2d7ec0=(_0x5f1882,_0x1dd0c0)=>{if('attribute'!=_0x5f1882)return'ck-suggestion-marker-'+_0x5f1882;const _0x5e778d=_0x1dd0c0['split']('|')[0x0];return this['_isBlockAttribute'](_0x5e778d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5ddfb8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x14bd63=>{const {id:_0x13e053,authorId:_0x4cc205,type:_0x2f585a,subType:_0x5bd0fa}=this['_splitMarkerName'](_0x14bd63['markerName']),_0x3d83c7=['ck-suggestion-marker',_0x2d7ec0(_0x2f585a,_0x5bd0fa)];let _0x1a9993=0xbb8;return this['activeMarkers']['includes'](_0x14bd63['markerName'])&&(_0x3d83c7['push']('ck-suggestion-marker--active'),_0x1a9993=0xbc2),'deletion'==_0x2f585a&&(_0x1a9993+=0x5),{'classes':_0x3d83c7,'attributes':{'data-suggestion':_0x13e053,'data-author-id':_0x4cc205},'priority':_0x1a9993};}}),_0x5ddfb8['conversion']['for']('dataDowncast')['add'](_0x3b1b71=>{_0x3b1b71['on']('addMarker:suggestion',(_0x351c52,_0x19e07f,_0x51ed00)=>{if(!_0x51ed00['options']['showSuggestionHighlights'])return;const _0x347905=_0x19e07f['item'];if(!_0x347905)return;const _0x2673c1=_0x51ed00['mapper']['toViewElement'](_0x347905);_0x5ddfb8['model']['schema']['isObject'](_0x347905)&&_0x2673c1&&!_0x2673c1['getCustomProperty']('widget')&&_0x2673c1['is']('containerElement')&&_0x5284c0(_0x2673c1,_0x51ed00['writer']);},{'priority':'high'});}),_0x5ddfb8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xf09648,_0x3ea3a8)=>{if(!_0x3ea3a8['options']['showSuggestionHighlights'])return null;const {type:_0x18eb0a,subType:_0x4ee4b0}=this['_splitMarkerName'](_0xf09648['markerName']);return{'classes':['ck-suggestion-marker',_0x2d7ec0(_0x18eb0a,_0x4ee4b0)],'priority':0xbb8};}});const _0x182147=({showActiveMarkers:_0x1c38a5=!0x0,isAttributeSuggestion:_0x3da7d8=!0x1}={})=>(_0x107e0b,_0x666d28,_0x13d9ee)=>{if(!_0x666d28['item'])return;const {id:_0x271a80,authorId:_0x3de8cf}=this['_splitMarkerName'](_0x666d28['markerName']);if(_0x3da7d8){const _0x5cf06b=this['_suggestions']['get'](_0x271a80),_0x298395=this['_getAttributeKey'](_0x5cf06b);if(!this['_isBlockAttribute'](_0x298395))return;}if(_0x666d28['item']['is']('selection'))return void _0x13d9ee['consumable']['consume'](_0x666d28['item'],_0x107e0b['name']);const _0x6051f3=_0x13d9ee['mapper']['toViewElement'](_0x666d28['item']);if(_0x666d28['item']['is']('element')&&_0x5ddfb8['model']['schema']['isBlock'](_0x666d28['item'])&&!_0x6051f3['getCustomProperty']('addHighlight')){_0x13d9ee['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x6051f3),_0x13d9ee['writer']['setAttribute']('data-suggestion',_0x271a80,_0x6051f3),_0x13d9ee['writer']['setAttribute']('data-author-id',_0x3de8cf,_0x6051f3),_0x13d9ee['mapper']['bindElementToMarker'](_0x6051f3,_0x666d28['markerName']),_0x1c38a5&&(this['activeMarkers']['includes'](_0x666d28['markerName'])?_0x13d9ee['writer']['addClass']('ck-suggestion-marker--active',_0x6051f3):_0x13d9ee['writer']['removeClass']('ck-suggestion-marker--active',_0x6051f3));for(const _0x27601a of _0x5ddfb8['model']['createRangeIn'](_0x666d28['item'])['getItems']())_0x13d9ee['consumable']['consume'](_0x27601a,_0x107e0b['name']);_0x13d9ee['consumable']['consume'](_0x666d28['item'],_0x107e0b['name']);}};_0x5ddfb8['conversion']['for']('dataDowncast')['add'](_0x543cad=>{_0x543cad['on']('addMarker:suggestion:formatBlock',(_0x42fd89,_0xfbcf69,_0x2751de)=>{_0x2751de['options']['showSuggestionHighlights']&&_0x182147({'showActiveMarkers':!0x1})(_0x42fd89,_0xfbcf69,_0x2751de);},{'priority':'highest'});}),_0x5ddfb8['conversion']['for']('dataDowncast')['add'](_0x14c482=>{_0x14c482['on']('addMarker:suggestion:attribute',(_0x288d5d,_0xbb42a1,_0x13da35)=>{_0x13da35['options']['showSuggestionHighlights']&&_0x182147({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x288d5d,_0xbb42a1,_0x13da35);},{'priority':'highest'});}),_0x5ddfb8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3e1e48,_0x406c4a)=>_0x406c4a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3e1e48['substr'](0xb)}}),_0x5ddfb8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x297e1a,{writer:_0x263c64})=>{let _0x379ebf='suggestion:'+_0x297e1a['getAttribute']('suggestion-type')+':'+_0x297e1a['getAttribute']('id');return _0x297e1a['getAttribute']('marker-count')&&(_0x379ebf+=':'+_0x297e1a['getAttribute']('marker-count')),_0x263c64['createElement']('$marker',{'data-name':_0x379ebf});}}),_0x5ddfb8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5ddfb8['conversion']['for']('editingDowncast')['add'](_0x1c81f4=>{_0x1c81f4['on']('addMarker:suggestion:formatBlock',_0x182147(),{'priority':'high'});}),_0x5ddfb8['conversion']['for']('editingDowncast')['add'](_0x3a1921=>{_0x3a1921['on']('addMarker:suggestion:attribute',_0x182147({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5ddfb8['conversion']['for']('editingDowncast')['add'](_0x450a41=>{_0x450a41['on']('removeMarker:suggestion:formatBlock',(_0x3a54e9,_0x2355ae,_0x2644b6)=>{const _0x352e31=_0x2644b6['mapper']['markerNameToElements'](_0x2355ae['markerName']);if(_0x352e31){for(const _0x27415e of _0x352e31)_0x27415e['getCustomProperty']('addHighlight')||(_0x2644b6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x27415e),_0x2644b6['writer']['removeAttribute']('data-suggestion',_0x27415e),_0x2644b6['writer']['removeAttribute']('data-author-id',_0x27415e),_0x2644b6['mapper']['unbindElementFromMarkerName'](_0x27415e,_0x2355ae['markerName']));}},{'priority':'high'});}),_0x5ddfb8['conversion']['for']('editingDowncast')['add'](_0x8b5857=>{_0x8b5857['on']('removeMarker:suggestion:attribute',(_0x5cbb5d,_0x433267,_0x17951e)=>{const _0x3d52e8=_0x17951e['mapper']['markerNameToElements'](_0x433267['markerName']);if(!_0x3d52e8)return;const {id:_0x4649ca}=this['_splitMarkerName'](_0x433267['markerName']),_0x2d3344=this['_suggestions']['get'](_0x4649ca),_0x5bd9a8=this['_getAttributeKey'](_0x2d3344);if(this['_isBlockAttribute'](_0x5bd9a8)){for(const _0x52f080 of _0x3d52e8)_0x52f080['getCustomProperty']('addHighlight')||(_0x17951e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x52f080),_0x17951e['writer']['removeAttribute']('data-suggestion',_0x52f080),_0x17951e['writer']['removeAttribute']('data-author-id',_0x52f080),_0x17951e['mapper']['unbindElementFromMarkerName'](_0x52f080,_0x433267['markerName']));}},{'priority':'high'});}),_0x5ddfb8['model']['document']['registerPostFixer'](_0x51fd58=>{let _0x224dc5=!0x1;const _0x360203=Array['from'](_0x5ddfb8['model']['document']['differ']['getChangedMarkers']()),_0x232a75=new Set();for(const {name:_0x490a98,data:_0x5c5b4c}of _0x360203){const {group:_0x9a27b8,type:_0x1d7ef2,subType:_0x6c4b89,id:_0x3362bc}=this['_splitMarkerName'](_0x490a98);if('suggestion'!==_0x9a27b8)continue;const _0x1a3108=this['_suggestions']['get'](_0x3362bc);if(null!=_0x5c5b4c['newRange']){'formatInline'==_0x1d7ef2&&(_0x224dc5=_0x224dc5||Pt(_0x5c5b4c['newRange'],_0x490a98,_0x51fd58,_0x5ddfb8['model']['schema']));const _0x1ebec8='attribute'==_0x1d7ef2&&this['_isBlockAttribute'](_0x6c4b89['split']('|')[0x0]);if(_0x5c5b4c['newRange']['isCollapsed']||'$graveyard'==_0x5c5b4c['newRange']['root']['rootName']||'formatBlock'==_0x1d7ef2&&!Lt(_0x5c5b4c['newRange'])||_0x1ebec8&&!Lt(_0x5c5b4c['newRange'])||'deletion'==_0x1d7ef2&&!(!Ft(_0x55cb54=_0x5c5b4c['newRange'])&&!function(_0x5a31e3){return _0x5a31e3['start']['parent']==_0x5a31e3['end']['nodeBefore']&&_0x5a31e3['start']['isAtEnd'];}(_0x55cb54)))_0x51fd58['removeMarker'](_0x490a98),_0x224dc5=!0x0;else{if(!_0x1a3108||!_0x1a3108['isInContent'])continue;if(_0x5c5b4c['newRange']&&_0x5c5b4c['oldRange']&&_0x5c5b4c['newRange']['isEqual'](_0x5c5b4c['oldRange']))continue;_0x232a75['add'](_0x1a3108);}}}var _0x55cb54;return _0x232a75['size']>0x0&&(_0x224dc5=!!this['_joinWithAdjacentSuggestions'](_0x232a75)||_0x224dc5),_0x224dc5;}),_0x5ddfb8['model']['document']['registerPostFixer'](_0x3dbacc=>{let _0x5155c4=!0x1;for(const _0xccc9b8 of _0x5ddfb8['model']['document']['differ']['getChanges']())if('insert'==_0xccc9b8['type'])for(const _0x5b061d of this['_suggestions']['values']()){if(_0x5b061d['isMultiRange']||!_0x5b061d['isInContent'])continue;const _0x1583ac='formatBlock'==_0x5b061d['type'],_0x294494=this['_getAttributeKey'](_0x5b061d),_0x2ddaf6=_0x294494&&this['_isBlockAttribute'](_0x294494);if(!_0x1583ac&&!_0x2ddaf6)continue;const _0x2a5990=_0x5b061d['getFirstRange']();if(_0x2a5990['start']['parent']!=_0x2a5990['end']['parent']&&!_0x2a5990['end']['isAtEnd']){const _0x2b38e7=_0x5ddfb8['model']['createPositionAt'](_0x2a5990['start']['nodeAfter'],'end'),_0x1dc191=_0x5ddfb8['model']['createRange'](_0x2a5990['start'],_0x2b38e7);_0x3dbacc['updateMarker'](_0x5b061d['getFirstMarker'](),{'range':_0x1dc191}),_0x5155c4=!0x0;}}return _0x5155c4;}),_0x5ddfb8['model']['document']['registerPostFixer'](_0x5b7a24=>this['_processAttributeChanges'](_0x5b7a24)),_0x5ddfb8['model']['document']['registerPostFixer'](_0xcc19f2=>!_0xcc19f2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xcc19f2)),_0x5ddfb8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5ddfb8['model']['document']['on']('change:data',(_0x2df279,_0x6ae03d)=>{if(!_0x6ae03d['isLocal']||_0x6ae03d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1687a9=_0x5ddfb8['model']['document']['differ']['getChanges']();if(0x0==_0x1687a9['length'])return;const _0x2cbde3=[],_0x3b1312=_0x1687a9['filter'](_0x1ef7f6=>'attribute'==_0x1ef7f6['type']),_0x1b0999=_0x1687a9['filter'](_0x46afd0=>'insert'==_0x46afd0['type']&&'$text'!=_0x46afd0['name']);for(const _0x26dd03 of _0x3b1312)this['_isRegisteredAttribute'](_0x26dd03['attributeKey'])&&_0x2cbde3['push']({'key':_0x26dd03['attributeKey'],'newValue':_0x26dd03['attributeNewValue'],'oldValue':_0x26dd03['attributeOldValue'],'range':Jt(_0x26dd03['range'],_0x5ddfb8['model'])});for(const _0x1d33b3 of _0x1b0999){if('rename'!=_0x1d33b3['action']&&'refresh'!=_0x1d33b3['action'])continue;const _0x2ac60d=Kt(_0x1d33b3['position']['nodeAfter'],_0x5ddfb8['model']),_0x2aca5f=_0x1d33b3['before'];'rename'==_0x1d33b3['action']&&_0x2cbde3['push']({'key':u,'newValue':_0x1d33b3['name'],'oldValue':_0x2aca5f['name'],'range':_0x2ac60d});for(const [_0x5ac9ee,_0x3b9e01]of _0x2aca5f['attributes']){if(!this['_isRegisteredAttribute'](_0x5ac9ee))continue;const _0x441df8=_0x1d33b3['attributes']['get'](_0x5ac9ee);_0x3b9e01!==_0x441df8&&_0x2cbde3['push']({'key':_0x5ac9ee,'newValue':_0x441df8,'oldValue':_0x3b9e01,'range':_0x2ac60d});}for(const [_0x208884,_0x56a117]of _0x1d33b3['attributes'])this['_isRegisteredAttribute'](_0x208884)&&(_0x2aca5f['attributes']['has'](_0x208884)||_0x2cbde3['push']({'key':_0x208884,'newValue':_0x56a117,'oldValue':null,'range':_0x2ac60d}));}0x0!=_0x2cbde3['length']&&_0x5ddfb8['model']['enqueueChange'](_0x6ae03d,_0x4565a5=>{const _0x3de770=_0x54ee4c();for(const {range:_0x17b7f9,key:_0x28cae4,oldValue:_0x568a30,newValue:_0x1b133d}of _0x2cbde3)this['markAttributeChange'](_0x17b7f9,_0x28cae4,_0x568a30,_0x1b133d,{'groupId':_0x3de770});this['_reduceExistingSuggestions'](_0x4565a5,_0x2cbde3);});},{'priority':'lowest'}),_0x5ddfb8['model']['markers']['on']('update:suggestion',(_0x10975f,_0x460b4d,_0x628806)=>{if(null==_0x628806){const {id:_0x2ae7e4}=this['_splitMarkerName'](_0x460b4d['name']),_0x30ba6e=this['_suggestions']['get'](_0x2ae7e4);_0x30ba6e&&_0x30ba6e['addMarkerName'](_0x460b4d['name']);}}),_0x5ddfb8['model']['document']['on']('change:data',()=>{const _0x1458ce=Array['from'](_0x5ddfb8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x7acd5f=>'suggestion'===this['_splitMarkerName'](_0x7acd5f['name'])['group']);if(0x0===_0x1458ce['length'])return;_0x1458ce['sort']((_0x366e4b,_0x3e1ab4)=>{const _0x42c6e7=_0x366e4b['data']['oldRange'],_0x3604cb=_0x3e1ab4['data']['oldRange'];return null===_0x42c6e7&&null===_0x3604cb?0x0:null===_0x42c6e7&&null!==_0x3604cb?-0x1:null!==_0x42c6e7&&null===_0x3604cb?0x1:_0x42c6e7['start']['isBefore'](_0x3604cb['start'])?-0x1:0x1;});const _0x50cd90=new Set(),_0x392cce=new Set();for(const {name:_0x46e9cb,data:_0x2737f8}of _0x1458ce){const {id:_0x343086}=this['_splitMarkerName'](_0x46e9cb);if(null===_0x2737f8['oldRange']){const _0x584f4f=this['_handleNewSuggestionMarker'](_0x46e9cb);_0x392cce['add'](_0x584f4f);}else{const _0x516b33=this['_suggestions']['get'](_0x343086);null!==_0x2737f8['newRange']||_0x516b33['isInContent']?(_0x50cd90['add'](_0x516b33['head']),_0x392cce['add'](_0x516b33)):this['_removeSuggestion'](_0x516b33);}}_0x392cce['size']>0x0&&this['_refreshSuggestionsChain'](_0x392cce);for(const _0x1fc3ca of _0x50cd90)this['fire']('suggestionChanged',_0x1fc3ca);}),_0x5ddfb8['model']['on']('applyOperation',(_0x502002,_0x2323ee)=>{const _0x14f39c=_0x2323ee[0x0];if(!this['_suggestions']['size'])return;if(!_0x14f39c['isDocumentOperation'])return;if(_0x14f39c['batch']['isUndo']||!_0x14f39c['batch']['isLocal'])return;let _0x3e5e65,_0x401d90;switch(_0x14f39c['type']){case'insert':_0x3e5e65=_0x5ddfb8['model']['createPositionAt'](_0x14f39c['position']),_0x401d90=_0x3e5e65['getShiftedBy'](_0x14f39c['howMany']);break;case'split':_0x3e5e65=_0x5ddfb8['model']['createPositionAt'](_0x14f39c['splitPosition']),_0x401d90=_0x5ddfb8['model']['createPositionAt'](_0x14f39c['moveTargetPosition']);break;case'move':_0x3e5e65=_0x5ddfb8['model']['createPositionAt'](_0x14f39c['targetPosition']),_0x401d90=_0x3e5e65['getShiftedBy'](_0x14f39c['howMany']);break;default:return;}const _0x14da19=_0x5ddfb8['model']['createRange'](_0x3e5e65,_0x401d90);_0x5ddfb8['model']['change'](()=>{for(const {suggestion:_0x5bc593,meta:_0x3763c5}of this['_findSuggestions'](_0x14da19)){if(_0x5bc593['isMultiRange'])continue;if('formatInline'==_0x5bc593['type'])continue;const _0x574d12=this['_getAttributeKey'](_0x5bc593);if(_0x574d12&&this['_isBlockAttribute'](_0x574d12)&&'split'!=_0x14f39c['type'])continue;const _0xd47968=_0x5bc593['data']&&_0x5bc593['data']['multipleBlocks'];('formatBlock'!=_0x5bc593['type']||'split'==_0x14f39c['type']&&!_0xd47968)&&(_0x3763c5['containsRangeInObject']||'insertion'==_0x5bc593['type']&&_0x3763c5['isOwn']||_0x5bc593['getFirstRange']()['containsRange'](_0x14da19)&&this['_breakSuggestionMarker'](_0x5bc593,_0x3e5e65,_0x401d90));}});},{'priority':'lowest'}),_0x5ddfb8['model']['on']('deleteContent',(_0x3afa08,_0x2fbd06)=>{const _0x50be42=_0x2fbd06[0x0],_0x5b1e98=_0x2fbd06[0x1];if(_0x5b1e98&&_0x5b1e98['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x50be42['isCollapsed'])return;const _0x218a52=_0x5ddfb8['model']['schema'],{start:_0xa7a670,end:_0x5521e2}=_0x50be42['getFirstRange'](),_0x41c25b=_0xa7a670['nodeAfter']&&_0x218a52['isLimit'](_0xa7a670['nodeAfter'])?null:_0x218a52['getNearestSelectionRange'](_0xa7a670,'forward'),_0x5ebbc2=_0x5521e2['nodeBefore']&&_0x218a52['isLimit'](_0x5521e2['nodeBefore'])?null:_0x218a52['getNearestSelectionRange'](_0x5521e2,'backward'),_0x225dcb=_0x5ddfb8['model']['createRange'](_0x41c25b?_0x41c25b['start']:_0xa7a670,_0x5ebbc2?_0x5ebbc2['end']:_0x5521e2);_0x5ddfb8['model']['change'](_0x2375c7=>{this['markDeletion'](_0x225dcb);const _0x3db4af=_0x5ddfb8['model']['schema']['getNearestSelectionRange'](_0x225dcb['start']);_0x50be42['is']('documentSelection')?_0x2375c7['setSelection'](_0x3db4af):_0x50be42['setTo'](_0x3db4af);}),_0x3afa08['stop']();},{'priority':_0x317f6e['normal']+0xa}),_0x5ddfb8['model']['on']('insertContent',(_0x5d30c5,_0x4596a9)=>{const _0x21b6c2=_0x4596a9[_0x4596a9['length']-0x1];_0x21b6c2&&_0x21b6c2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5ddfb8['model']['change'](()=>{let _0x5b7faf=_0x5ddfb8['model']['insertContent'](_0x4596a9[0x0],_0x4596a9[0x1],_0x4596a9[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b7faf)return;_0x5d30c5['return']=_0x5b7faf['clone']();const _0x1788fb=_0x5b7faf['end']['nodeBefore'],_0x1bc4fb=_0x5ddfb8['model']['schema'];_0x1788fb&&_0x1bc4fb['isBlock'](_0x1788fb)&&!_0x1bc4fb['isObject'](_0x1788fb)&&(_0x5b7faf=_0x5ddfb8['model']['createRange'](_0x5b7faf['start'],_0x5ddfb8['model']['createPositionAt'](_0x1788fb,'end'))),this['markInsertion'](_0x5b7faf);}),_0x5d30c5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4e5d4c=new O(_0x5ddfb8,this['_suggestions']);_0x5ddfb8['commands']['add']('acceptSuggestion',_0x4e5d4c),this['enableCommand']('acceptSuggestion');const _0x360188=new R(_0x5ddfb8,this['_suggestions']);_0x5ddfb8['commands']['add']('discardSuggestion',_0x360188),this['enableCommand']('discardSuggestion'),_0x5ddfb8['commands']['add']('acceptAllSuggestions',new x(_0x5ddfb8,_0x4e5d4c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5ddfb8['commands']['add']('discardAllSuggestions',new x(_0x5ddfb8,_0x360188,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5ddfb8['commands']['add']('acceptSelectedSuggestions',new E(_0x5ddfb8,_0x4e5d4c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5ddfb8['commands']['add']('discardSelectedSuggestions',new E(_0x5ddfb8,_0x360188,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x29b8e8=_0x5ddfb8['plugins']['get']('CommentsRepository');this['listenTo'](_0x29b8e8,'addComment',(_0x196350,{threadId:_0x4a3f3b})=>{const _0x43602e=this['_suggestions']['get'](_0x4a3f3b);_0x43602e&&_0x43602e['commentThread']&&0x1===_0x43602e['commentThread']['length']&&this['_updateSuggestionData'](_0x4a3f3b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x29b8e8,'removeComment',(_0x2f9d38,{threadId:_0x3d2bf9})=>{const _0x2085da=this['_suggestions']['get'](_0x3d2bf9);_0x2085da&&_0x2085da['commentThread']&&!_0x2085da['commentThread']['length']&&this['_updateSuggestionData'](_0x3d2bf9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xc56729){const _0x12aef4=_0x4e0046([0x7a,0x53,0x35,0x32,0x73,0x45,0x62,0x4f,0x63,0x58,0x30,0x67,0x6d,0x6e,0x72,0x66,0x75,0x43,0x4c,0x65,0x37,0x61,0x46,0x71,0x5a,0x70,0x47,0x41,0x77,0x68,0x6f,0x6b,0x57,0x52,0x33,0x31,0x74,0x55,0x4d,0x59,0x54,0x4a,0x36,0x42,0x48,0x4e,0x4b,0x76,0x78,0x64,0x79,0x49,0x39,0x6c,0x44,0x38,0x6a,0x56,0x69,0x50,0x51,0x34]),_0xf02eb2=0x68512e19,_0x5aa71b=0x68567189^_0xf02eb2,_0x504232=window[_0x4e0046([0x44,0x61,0x74,0x65])][_0x4e0046([0x6e,0x6f,0x77])](),_0x30fd6b=_0xc56729[_0x4e0046([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42a7e1=new window[(_0x4e0046([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ad92e=>{_0x30fd6b[_0x4e0046([0x6f,0x6e,0x63,0x65])](_0x4e0046([0x72,0x65,0x61,0x64,0x79]),_0x4ad92e);}),_0x2d2716={[_0x4e0046([0x6b,0x74,0x79])]:_0x4e0046([0x45,0x43]),[_0x4e0046([0x75,0x73,0x65])]:_0x4e0046([0x73,0x69,0x67]),[_0x4e0046([0x63,0x72,0x76])]:_0x4e0046([0x50,0x2d,0x32,0x35,0x36]),[_0x4e0046([0x78])]:_0x4e0046([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]),[_0x4e0046([0x79])]:_0x4e0046([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]),[_0x4e0046([0x61,0x6c,0x67])]:_0x4e0046([0x45,0x53,0x32,0x35,0x36])},_0x55f4e9=_0x30fd6b[_0x4e0046([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e0046([0x67,0x65,0x74])](_0x4e0046([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x532094(){let _0x29b504,_0x1cd4fa=null,_0x43cb61=null;try{if(_0x55f4e9==_0x4e0046([0x47,0x50,0x4c]))return _0x4e0046([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x29b504=_0x4970dd(),!_0x29b504)return _0x4e0046([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x29b504[_0x4e0046([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43cb61=_0x2ef5dc(_0x29b504[_0x4e0046([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x29b504[_0x4e0046([0x6a,0x74,0x69])])),await _0x3b7d26()?_0x3b8f8b()?_0x4d0acb()?_0x4e0046([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18f928()?(_0x29b504[_0x4e0046([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e0046([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1cd4fa=_0x259fa1(_0x4e0046([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x29b504[_0x4e0046([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e0046([0x74,0x72,0x69,0x61,0x6c])&&(_0x1cd4fa=_0x259fa1(_0x4e0046([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x437bd9()):_0x4e0046([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e0046([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e0046([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46b9e){return _0x4e0046([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d0acb(){const _0x4d2edf=[_0x4e0046([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e0046([0x74,0x72,0x69,0x61,0x6c])][_0x4e0046([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b504[_0x4e0046([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x504232/0x3e8:0xe10*_0x5aa71b;return _0x29b504[_0x4e0046([0x65,0x78,0x70])]<_0x4d2edf;}function _0x3b8f8b(){const _0x24aff4=_0x29b504[_0x4e0046([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x24aff4)return!0x1;if(_0x24aff4[_0x4e0046([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e0046([0x2a])))return!0x0;if(_0x24aff4[_0x4e0046([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e0046([0x54,0x43])))return!0x0;if(_0x24aff4[_0x4e0046([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e0046([0x52,0x54,0x43]))){if(_0x566f5b())return!0x0;if(_0x24f733()||_0x54883c())return!0x0;}return!0x1;}function _0x18f928(){const _0x163035=_0x29b504[_0x4e0046([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x163035||0x0==_0x163035[_0x4e0046([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21bfec}=new URL(window[_0x4e0046([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x163035[_0x4e0046([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21bfec))return!0x0;const _0x3ab29c=_0x21bfec[_0x4e0046([0x73,0x70,0x6c,0x69,0x74])](_0x4e0046([0x2e]));return _0x163035[_0x4e0046([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ee05b=>_0x2ee05b[_0x4e0046([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e0046([0x2a])))[_0x4e0046([0x6d,0x61,0x70])](_0x3e456b=>_0x3e456b[_0x4e0046([0x73,0x70,0x6c,0x69,0x74])](_0x4e0046([0x2e])))[_0x4e0046([0x73,0x6f,0x6d,0x65])](_0x54f6d1=>_0x3ab29c[_0x4e0046([0x65,0x76,0x65,0x72,0x79])]((_0x3576ec,_0x596411)=>_0x54f6d1[_0x596411]===_0x3576ec||_0x54f6d1[_0x596411]===_0x4e0046([0x2a])));}function _0x437bd9(){return _0x1cd4fa&&_0x43cb61?new window[(_0x4e0046([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30503a,_0x2b5752)=>{_0x1cd4fa[_0x4e0046([0x74,0x68,0x65,0x6e])](_0x30503a,_0x2b5752),_0x43cb61[_0x4e0046([0x74,0x68,0x65,0x6e])](_0x1b0b39=>{_0x1b0b39!=_0x4e0046([0x56,0x61,0x6c,0x69,0x64])&&_0x30503a(_0x1b0b39);},_0x2b5752);}):_0x1cd4fa||_0x43cb61||_0x4e0046([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ef5dc(_0x344adc,_0x3227d3){return new window[(_0x4e0046([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e75e8=>{if(_0xe851d5())return _0x3e75e8(_0x4e0046([0x56,0x61,0x6c,0x69,0x64]));_0x50a7ef(),_0x30fd6b[_0x4e0046([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e0046([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ccab2=!0x1;const _0x3178b6=_0x54ee4c();function _0x208047(_0x4b37f1){return!!_0x4b37f1&&(typeof _0x4b37f1===_0x4e0046([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b37f1===_0x4e0046([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b37f1[_0x4e0046([0x74,0x68,0x65,0x6e])]===_0x4e0046([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b37f1[_0x4e0046([0x63,0x61,0x74,0x63,0x68])]===_0x4e0046([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x474c52(_0x2a7234){_0x1541ef(_0x2a7234)[_0x4e0046([0x74,0x68,0x65,0x6e])](_0x54f7fa=>{if(!_0x54f7fa||_0x54f7fa[_0x4e0046([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e0046([0x6f,0x6b]))return _0x4e0046([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59223d(_0x4665cb(_0x3178b6+_0x3227d3))!=_0x54f7fa[_0x4e0046([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e0046([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e0046([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e0046([0x74,0x68,0x65,0x6e])](_0xb6dd41=>(_0x3b0b37(),_0xb6dd41),()=>{const _0x4b08e8=_0x564126();return null==_0x4b08e8?(_0x3b0b37(),_0x4e0046([0x56,0x61,0x6c,0x69,0x64])):_0x4e0046(_0x504232-_0x4b08e8>(0x4c5daa19^_0xf02eb2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e0046([0x74,0x68,0x65,0x6e])](_0x3e75e8)[_0x4e0046([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e75e8(_0x4e0046([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f3111=0x6867c099^_0xf02eb2;function _0x3b0b37(){const _0x4b1b69=_0x4e0046([0x6c,0x6c,0x63,0x74,0x2d])+_0x59223d(_0x4665cb(_0x344adc)),_0x379176=_0x4fe4f8(_0x59223d(window[_0x4e0046([0x4d,0x61,0x74,0x68])][_0x4e0046([0x63,0x65,0x69,0x6c])](_0x504232/_0x1f3111)));window[_0x4e0046([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e0046([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b1b69,_0x379176);}function _0x564126(){const _0x7e211d=_0x4e0046([0x6c,0x6c,0x63,0x74,0x2d])+_0x59223d(_0x4665cb(_0x344adc)),_0x13a29e=window[_0x4e0046([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e0046([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7e211d);return _0x13a29e?window[_0x4e0046([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fe4f8(_0x13a29e),0x10)*_0x1f3111:null;}function _0x1541ef(_0x2aa62c){return new window[(_0x4e0046([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b593b,_0x3b5429)=>{_0x2aa62c[_0x4e0046([0x74,0x68,0x65,0x6e])](_0x3b593b,_0x3b5429),window[_0x4e0046([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b5429,0x6850fad9^_0xf02eb2);});}}_0x30fd6b[_0x4e0046([0x6f,0x6e])](_0x4e0046([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5839d3,_0x23f17e)=>{if(_0x23f17e[0x0]!=_0x344adc)return _0x3e75e8(_0x4e0046([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23f17e[0x1]={..._0x23f17e[0x1],[_0x4e0046([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3178b6};},{[_0x4e0046([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e0046([0x68,0x69,0x67,0x68])}),_0x30fd6b[_0x4e0046([0x6f,0x6e])](_0x4e0046([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3af637=>{_0x208047(_0x3af637[_0x4e0046([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ccab2=!0x0,_0x474c52(_0x3af637[_0x4e0046([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e0046([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e0046([0x6c,0x6f,0x77])}),_0x42a7e1[_0x4e0046([0x74,0x68,0x65,0x6e])](()=>{_0x5ccab2||_0x3e75e8(_0x4e0046([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe851d5(){return _0x30fd6b[_0x4e0046([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e0046([0x76,0x69,0x65,0x77])][_0x4e0046([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e0046([0x61,0x75,0x74,0x6f]);}function _0x50a7ef(){_0x30fd6b[_0x4e0046([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e0046([0x76,0x69,0x65,0x77])][_0x4e0046([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e0046([0x61,0x75,0x74,0x6f]);}}function _0x259fa1(_0x2b2737){const _0x53b1df=[new window[(_0x4e0046([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17ad3d=>setTimeout(_0x17ad3d,0x685810d5^_0xf02eb2)),_0x42a7e1[_0x4e0046([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e0046([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42bf1a=>{let _0x42db15=0x0;_0x30fd6b[_0x4e0046([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e0046([0x6f,0x6e])](_0x4e0046([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fd3bc,_0x49bdd1)=>{_0x49bdd1[0x0][_0x4e0046([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42db15++,_0x42db15==(0x68512fe1^_0xf02eb2)&&(_0x42bf1a(),_0x4fd3bc[_0x4e0046([0x6f,0x66,0x66])]());});}))];return window[_0x4e0046([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e0046([0x72,0x61,0x63,0x65])](_0x53b1df)[_0x4e0046([0x74,0x68,0x65,0x6e])](()=>_0x2b2737);}async function _0xe7cf11(){await _0x42a7e1,_0x30fd6b[_0x4e0046([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e0046([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c6037,_0x30fd6b[_0x4e0046([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e0046([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c6037,_0x30fd6b[_0x4e0046([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e0046([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x566f5b(){return _0x370dc1(_0x4e0046([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x12ae1d(_0x4e0046([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4e0046([0x73,0x74,0x61,0x74,0x65])]==_0x4e0046([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x24f733(){return _0x370dc1(_0x4e0046([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 _0x54883c(){return _0x370dc1(_0x4e0046([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x228319(_0x20631e){const _0x567ea3=_0x40c31e();_0x30fd6b[_0x567ea3]=_0x4e0046([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x20631e,_0x20631e!=_0x4e0046([0x56,0x61,0x6c,0x69,0x64])&&_0xe7cf11();}function _0x40c31e(){const _0x5d393e=window[_0x4e0046([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e0046([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e0046([0x6e,0x6f,0x77])]())[_0x4e0046([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e0046([0x2e]),'');let _0x103e26=_0x4e0046([0x7a]);for(let _0x22f0d8=0x0;_0x22f0d8<_0x5d393e[_0x4e0046([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22f0d8+=0x2){let _0xe9ccfd=window[_0x4e0046([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d393e[_0x4e0046([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22f0d8,_0x22f0d8+0x2));_0xe9ccfd>=_0x12aef4[_0x4e0046([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe9ccfd-=_0x12aef4[_0x4e0046([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x103e26+=_0x12aef4[_0xe9ccfd];}return _0x103e26;}function _0x4970dd(){const _0x11bf31=_0x55f4e9[_0x4e0046([0x73,0x70,0x6c,0x69,0x74])](_0x4e0046([0x2e]));if(0x3!=_0x11bf31[_0x4e0046([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5472be(_0x11bf31[0x1]);function _0x5472be(_0x4c3220){const _0x20b6c9=_0x5e471e(_0x4c3220);return _0x20b6c9&&_0x32545f()?_0x20b6c9:null;function _0x32545f(){const _0x22706b=_0x20b6c9[_0x4e0046([0x6a,0x74,0x69])],_0x25c45e=window[_0x4e0046([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22706b[_0x4e0046([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22706b[_0x4e0046([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x65787a={..._0x20b6c9,[_0x4e0046([0x6a,0x74,0x69])]:_0x22706b[_0x4e0046([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22706b[_0x4e0046([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x65787a[_0x4e0046([0x76,0x63])],_0x4665cb(_0x65787a)==_0x25c45e;}}}async function _0x3b7d26(){let _0x1529e9=!0x0;try{const _0x4fdb01=_0x55f4e9[_0x4e0046([0x73,0x70,0x6c,0x69,0x74])](_0x4e0046([0x2e])),[_0x231966,_0x40203e,_0x204b36]=_0x4fdb01;return _0x5aa5af(_0x231966),await _0x3c0c6a(_0x231966,_0x40203e,_0x204b36),_0x1529e9;}catch(_0x21eaa9){return!0x1;}function _0x5aa5af(_0x4be6ac){const _0x4b8cd8=_0x5e471e(_0x4be6ac);_0x4b8cd8&&_0x4b8cd8[_0x4e0046([0x61,0x6c,0x67])]==_0x4e0046([0x45,0x53,0x32,0x35,0x36])||(_0x1529e9=!0x1);}async function _0x3c0c6a(_0x592a5d,_0x5035d0,_0x64ffde){const _0x299624=window[_0x4e0046([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e0046([0x66,0x72,0x6f,0x6d])](_0x3632b1(_0x64ffde),_0xd89f6d=>_0xd89f6d[_0x4e0046([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x275660=new window[(_0x4e0046([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e0046([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x592a5d+_0x4e0046([0x2e])+_0x5035d0),_0x18f0d5=window[_0x4e0046([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e0046([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18f0d5)return;const _0xb752cc=await _0x18f0d5[_0x4e0046([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e0046([0x6a,0x77,0x6b]),_0x2d2716,{[_0x4e0046([0x6e,0x61,0x6d,0x65])]:_0x4e0046([0x45,0x43,0x44,0x53,0x41]),[_0x4e0046([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e0046([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e0046([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18f0d5[_0x4e0046([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e0046([0x6e,0x61,0x6d,0x65])]:_0x4e0046([0x45,0x43,0x44,0x53,0x41]),[_0x4e0046([0x68,0x61,0x73,0x68])]:{[_0x4e0046([0x6e,0x61,0x6d,0x65])]:_0x4e0046([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb752cc,_0x299624,_0x275660)||(_0x1529e9=!0x1);}}function _0x5e471e(_0x165bc4){return _0x165bc4[_0x4e0046([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e0046([0x65,0x79]))?JSON[_0x4e0046([0x70,0x61,0x72,0x73,0x65])](_0x3632b1(_0x165bc4)):null;}function _0x3632b1(_0x1c47eb){return window[_0x4e0046([0x61,0x74,0x6f,0x62])](_0x1c47eb[_0x4e0046([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e0046([0x2b]))[_0x4e0046([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e0046([0x2f])));}function _0x4665cb(_0x410a71){let _0x41a950=0x1505;function _0x54240b(_0x8d3dc0){for(let _0x4fb26e=0x0;_0x4fb26e<_0x8d3dc0[_0x4e0046([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fb26e++){const _0x3a291a=_0x8d3dc0[_0x4e0046([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4fb26e);_0x41a950=(_0x41a950<<0x5)+_0x41a950+_0x3a291a,_0x41a950&=_0x41a950;}}function _0x27c345(_0x45a14c){Array[_0x4e0046([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45a14c)?_0x45a14c[_0x4e0046([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x27c345):_0x45a14c&&typeof _0x45a14c==_0x4e0046([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e0046([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45a14c)[_0x4e0046([0x73,0x6f,0x72,0x74])]()[_0x4e0046([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x851607,_0x3b189e])=>{_0x54240b(_0x851607),_0x27c345(_0x3b189e);}):_0x54240b(window[_0x4e0046([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45a14c));}return _0x27c345(_0x410a71),_0x41a950>>>0x0;}function _0x59223d(_0x1ce6e4){return _0x1ce6e4[_0x4e0046([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e0046([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e0046([0x30]));}function _0x4fe4f8(_0x3a9a80){return _0x3a9a80[_0x4e0046([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e0046([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e0046([0x6a,0x6f,0x69,0x6e])]('');}function _0x370dc1(_0xdc2afd){return _0x30fd6b[_0x4e0046([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e0046([0x68,0x61,0x73])](_0xdc2afd);}function _0x12ae1d(_0x2eb0f6){return _0x30fd6b[_0x4e0046([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e0046([0x67,0x65,0x74])](_0x2eb0f6);}function _0x4c6037(){}function _0x4e0046(_0x28d08f){return _0x28d08f['map'](_0x3ed9dd=>String['fromCharCode'](_0x3ed9dd))['join']('');}_0x228319(await _0x532094());}(this);}set['adapter'](_0x4ede90){if(this['_adapter'])throw new _0x1a483c('track-changes-adapter-already-set',this);this['_adapter']=_0x4ede90;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5cc5f3=!0x1,toJSON:_0x45998c=!0x1}={}){const _0xc2e963=[];for(const _0x368061 of this['_suggestions']['values']())_0x5cc5f3&&!_0x368061['isInContent']||_0xc2e963['push'](_0x368061);return _0x45998c?_0xc2e963['map'](_0x573d6a=>_0x573d6a['toJSON']()):_0xc2e963;}['getSuggestion'](_0x45a3a7){const _0x519656=this['_suggestions']['get'](_0x45a3a7);if(!_0x519656)throw new _0x1a483c('track-changes-suggestion-not-found',this);return _0x519656;}['hasSuggestion'](_0x984b22){return this['_suggestions']['has'](_0x984b22);}['addSuggestionData'](_0x230df7){const {authorId:_0x2c10c4,id:_0x9cfffa,attributes:_0x5c64d8}=_0x230df7,[_0x3e0918,_0xe8a2db]=_0x230df7['type']['split'](':'),_0x2bcef3=this['_suggestions']['get'](_0x9cfffa)||this['_createSuggestion'](_0x3e0918,_0xe8a2db,_0x9cfffa,_0x2c10c4,_0x5c64d8);if(this['_addThreadToSuggestion'](_0x2bcef3),this['_checkSuggestionCorrectness'](_0x2bcef3,_0x3e0918,_0xe8a2db||null,_0x2c10c4),_0x2bcef3['createdAt']=_0x230df7['createdAt'],_0x2bcef3['_isDataLoaded']=!0x0,_0x5c64d8&&_0x5c64d8['@external']){const _0x530050=_0x5c64d8['@external'],_0xbe29af=this['_getExternalAuthor'](_0x530050['authorName']);_0x2bcef3['authoredAt']=_0x530050['createdAt'],_0x2bcef3['author']=_0xbe29af,_0x2bcef3['isExternal']=!0x0;}else _0x2bcef3['authoredAt']=_0x230df7['createdAt'];switch(_0x230df7['data']&&(_0x2bcef3['data']=_0x230df7['data']),_0x230df7['attributes']&&(_0x2bcef3['attributes']=_0x230df7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2bcef3['_saved']=!0x0),this['_suggestionState']['get'](_0x2bcef3)){case'notReady':this['_suggestionState']['set'](_0x2bcef3,'dataReady');break;case'markerReady':_0x2bcef3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2bcef3])),this['_refreshSuggestionsChain'](new Set([_0x2bcef3])),this['_suggestionState']['set'](_0x2bcef3,'ready'),this['fire']('suggestionLoaded',_0x2bcef3)):this['_suggestionState']['set'](_0x2bcef3,'removed');}return _0x2bcef3;}['acceptSuggestion'](_0x369289){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4e222f of _0x369289['getAllAdjacentSuggestions']())_0x4e222f['accept']();});});}['discardSuggestion'](_0x2aaf43){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f1c09 of _0x2aaf43['getAllAdjacentSuggestions']())_0x1f1c09['discard']();});});}['enableCommand'](_0x5058fb,_0x555111){const _0x2a7ccb=this['editor']['commands']['get'](_0x5058fb);if(!_0x2a7ccb)throw new _0x1a483c('track-changes-command-not-found',this,{'commandName':_0x5058fb});if(this['_enabledCommands']['has'](_0x2a7ccb))throw new _0x1a483c('track-changes-enable-command-twice',this,{'commandName':_0x5058fb});this['_enabledCommands']['add'](_0x2a7ccb),_0x555111&&_0x2a7ccb['on']('execute',(_0x5f5c9f,_0x3fd716)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3fd716['length']>0x0&&_0x3fd716[_0x3fd716['length']-0x1]&&_0x3fd716[_0x3fd716['length']-0x1]['forceDefaultExecution']?_0x3fd716['pop']():(_0x5f5c9f['return']=_0x555111((..._0x5cbef7)=>_0x2a7ccb['execute'](..._0x5cbef7,{'forceDefaultExecution':!0x0}),..._0x3fd716),_0x5f5c9f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2f671d){let _0x42c746,_0x2144f9;const _0x2b1fc8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x42c746=_0x2f671d();}catch(_0x5aebe8){_0x2144f9=_0x5aebe8;}return _0x2b1fc8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2144f9&&_0x1a483c['rethrowUnexpectedError'](_0x2144f9,this),_0x42c746;}['markInsertion'](_0x69ad5f,_0x2e0bbb=null,_0x26f03f={}){if(_0x69ad5f['isCollapsed'])return null;const _0x60b888=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d65f1,meta:_0x25b8f5}of this['_findSuggestions'](_0x69ad5f,'insertion'))if(_0x25b8f5['isOwn']){if(!_0x25b8f5['isNextTo']){if(_0x25b8f5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x1d65f1,_0x26f03f))continue;return _0x1d65f1;}if(zt(_0x1d65f1,_0x26f03f))return _0x1d65f1;this['_breakSuggestionMarker'](_0x1d65f1,_0x69ad5f['start'],_0x69ad5f['end']);break;}if(_0x2e0bbb==_0x1d65f1['subType']&&zt(_0x1d65f1,_0x26f03f)){const _0x6f108b=_0x1d65f1['getFirstRange']();return _0x6f108b['start']['isEqual'](_0x69ad5f['end'])?this['_setSuggestionRange'](_0x1d65f1,this['_model']['createRange'](_0x69ad5f['start'],_0x6f108b['end'])):this['_setSuggestionRange'](_0x1d65f1,this['_model']['createRange'](_0x6f108b['start'],_0x69ad5f['end'])),_0x1d65f1;}}const _0x30a824=_0x54ee4c(),_0x45a999=_0x60b888['id'],_0x245153=_0x2e0bbb?'insertion:'+_0x2e0bbb:'insertion',_0x1401e7=this['_setSuggestionData']({'id':_0x30a824,'type':_0x245153,'createdAt':new Date(),'authorId':_0x45a999,'attributes':_0x26f03f});return this['_addSuggestionMarker'](_0x245153,_0x30a824,_0x45a999,_0x69ad5f),_0x1401e7;}['markMultiRangeInsertion'](_0x38115d,_0x4be4db='multi',_0x165a69={}){const _0x26d870=this['editor']['plugins']['get']('Users')['me'],_0x4b86c4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4be4db,'join');for(const _0x5a2e26 of this['getSuggestions']())if(_0x5a2e26['author']['id']==_0x26d870['id']&&'insertion'==_0x5a2e26['type']&&_0x5a2e26['subType']==_0x4be4db&&zt(_0x5a2e26,_0x165a69)&&(_0x4b86c4(_0x5a2e26['getRanges'](),_0x38115d)||_0x4b86c4(_0x38115d,_0x5a2e26['getRanges']()))){for(const _0x105a35 of _0x38115d)_0x5a2e26['addRange'](_0x105a35);return _0x5a2e26;}for(const {suggestion:_0x24b22f,meta:_0x58c4b3}of this['_findSuggestions'](_0x38115d,'insertion')){if(!_0x58c4b3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x58c4b3['containsRangeInObject'])continue;if(!zt(_0x24b22f,_0x165a69))continue;let _0x246c3a=!0x0;for(const _0x201310 of _0x24b22f['getRanges']())for(const _0x2e8285 of _0x38115d)if(!_0x201310['containsRange'](_0x2e8285)){_0x246c3a=!0x1;break;}if(_0x246c3a)return _0x24b22f;}const _0x4277d0=_0x54ee4c(),_0x4c9c9a=_0x26d870['id'],_0x3a5177='insertion:'+_0x4be4db,_0x108d18=this['_setSuggestionData']({'id':_0x4277d0,'type':_0x3a5177,'createdAt':new Date(),'authorId':_0x4c9c9a,'attributes':_0x165a69});for(const _0x52b79b of _0x38115d)this['_addSuggestionMarker'](_0x3a5177,_0x4277d0,_0x4c9c9a,_0x52b79b,o['getMultiRangeId']());return _0x108d18;}['markInlineFormat'](_0x526d81,_0x28a513,_0x279d35=null,_0x3dd8af={}){if(_0x279d35=_0x279d35||Gt(_0x28a513),_0x526d81['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x438373=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x279d35,'accept');return this['forceDefaultExecution'](()=>_0x438373([_0x526d81],_0x28a513,_0x3dd8af)),null;}const _0x438083=this['editor']['plugins']['get']('Users')['me'],_0x511049=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x42e658,meta:_0x511d09}of this['_findSuggestions'](_0x526d81,'insertion'))_0x511d09['isOwn']&&!_0x511d09['isInsideObject']&&_0x511049['push'](..._0x42e658['getRanges']());}const _0x34cb15=function(_0x585484,_0x9f79c){const _0x35215c=[];for(const _0x2b28a1 of _0x9f79c){const _0x1b2581=_0x585484['getIntersection'](_0x2b28a1);_0x1b2581&&_0x35215c['push'](_0x1b2581);}return _0x35215c;}(_0x526d81,_0x511049),_0x4ee0fc=function(_0x3b3385,_0x56b7b4){const _0x152e97=[_0x3b3385];for(const _0x500a21 of _0x56b7b4){let _0x1dec74=0x0;for(;_0x1dec74<_0x152e97['length'];){const _0x44d068=_0x152e97[_0x1dec74]['getDifference'](_0x500a21);_0x152e97['splice'](_0x1dec74,0x1,..._0x44d068),_0x1dec74+=_0x44d068['length'];}}return _0x152e97;}(_0x526d81,_0x511049);_0x34cb15['length']&&this['_model']['change'](()=>{for(const _0x5ab55c of _0x34cb15){const _0x2ddf5c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x279d35,'accept');this['forceDefaultExecution'](()=>_0x2ddf5c([_0x5ab55c],_0x28a513,_0x3dd8af));}});for(const _0x3fd82e of _0x4ee0fc){let _0x3c5437=null,_0x102a05=_0x3fd82e['start'],_0xa115da=_0x3fd82e['end'];for(const {suggestion:_0x4d0150,meta:_0x287b84}of this['_findSuggestions'](_0x3fd82e,'formatInline')){if(!_0x287b84['isOwn'])continue;if(_0x4d0150['subType']!=_0x279d35)continue;if(!zt(_0x4d0150,_0x3dd8af))continue;const _0x49ce2d=_0x4d0150['getFirstRange']();if(_0x49ce2d['containsRange'](_0x3fd82e,!0x0))return null;_0x102a05=_0x102a05['isBefore'](_0x49ce2d['start'])?_0x102a05:_0x49ce2d['start'],_0xa115da=_0xa115da['isAfter'](_0x49ce2d['end'])?_0xa115da:_0x49ce2d['end'],_0x3c5437?_0x49ce2d['start']['isBefore'](_0x3c5437['getFirstRange']()['start'])?(_0x3c5437['removeMarkers'](),_0x3c5437=_0x4d0150):_0x4d0150['removeMarkers']():_0x3c5437=_0x4d0150;}const _0x3ea838=this['_model']['createRange'](_0x102a05,_0xa115da);if(_0x3c5437)this['_setSuggestionRange'](_0x3c5437,_0x3ea838);else{const _0x265db6=_0x54ee4c(),_0x18252c=_0x438083['id'];this['_setSuggestionData']({'id':_0x265db6,'type':'formatInline:'+_0x279d35,'data':_0x28a513,'createdAt':new Date(),'authorId':_0x18252c,'attributes':_0x3dd8af}),this['_addSuggestionMarker']('formatInline:'+_0x279d35,_0x265db6,_0x18252c,_0x3ea838);}}return null;}['markBlockFormat'](_0x5c1abd,_0x2d3612,_0x419634=[],_0x1ec820=null,_0x4670bd={}){_0x2d3612['formatGroupId']||(_0x2d3612['formatGroupId']=_0x2d3612['commandName']),_0x2d3612['multipleBlocks']=_0x5c1abd['is']('range'),_0x1ec820=_0x1ec820||Gt(_0x2d3612);const _0x4f0065=_0x419634['map'](_0x3a128f=>Kt(_0x3a128f,this['_model'])),_0x38de5f=_0x5c1abd['is']('range')?_0x5c1abd:Kt(_0x5c1abd,this['_model']);if('never'===this['_trackFormatChanges']){const _0xb9eab6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ec820,'accept');return this['forceDefaultExecution'](()=>_0xb9eab6([_0x38de5f],_0x2d3612,_0x4670bd)),null;}_0x4f0065['push'](_0x38de5f);let _0x1ed276=!0x0;for(const _0x1e959b of _0x4f0065)if(!this['_rangeIsInLocalUserInsertion'](_0x1e959b)){_0x1ed276=!0x1;break;}if(_0x1ed276&&'always'!==this['_trackFormatChanges']){const _0x424366=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ec820,'accept');return this['forceDefaultExecution'](()=>_0x424366([_0x38de5f],_0x2d3612,_0x4670bd)),null;}let _0x47e69a=null,_0x3c47b5=_0x38de5f['start'],_0x25e7d3=_0x38de5f['end'];for(const {suggestion:_0x24c294,meta:_0xe46479}of this['_findSuggestions'](_0x38de5f,'formatBlock')){if(!_0xe46479['isOwn'])continue;if(_0xe46479['isNextTo']||_0xe46479['containsRangeInObject']||_0xe46479['isInsideObject'])continue;if(_0x24c294['data']['formatGroupId']!=_0x2d3612['formatGroupId'])continue;if(!zt(_0x24c294,_0x4670bd))continue;const _0xd502fe=_0x24c294['getFirstRange']();if(_0x24c294['subType']==_0x1ec820){if(_0xd502fe['containsRange'](_0x38de5f,!0x0))return null;_0x3c47b5=_0x3c47b5['isBefore'](_0xd502fe['start'])?_0x3c47b5:_0xd502fe['start'],_0x25e7d3=_0x25e7d3['isAfter'](_0xd502fe['end'])?_0x25e7d3:_0xd502fe['end'],_0x47e69a?_0xd502fe['start']['isBefore'](_0x47e69a['getFirstRange']()['start'])?(_0x47e69a['removeMarkers'](),_0x47e69a=_0x24c294):_0x24c294['removeMarkers']():_0x47e69a=_0x24c294;}else{const _0x57d3a2=_0x38de5f['getIntersection'](_0xd502fe);this['_cutOutSuggestionMarker'](_0x24c294,_0x57d3a2);}}const _0x1fb67b=this['editor']['plugins']['get']('Users')['me'],_0xea3973=_0x54ee4c(),_0x433720=_0x1fb67b['id'];if(_0x47e69a)return this['_setSuggestionRange'](_0x47e69a,this['_model']['createRange'](_0x3c47b5,_0x25e7d3)),_0x47e69a;{const _0x2207b8=this['_setSuggestionData']({'id':_0xea3973,'type':'formatBlock:'+_0x1ec820,'data':_0x2d3612,'createdAt':new Date(),'authorId':_0x433720,'attributes':_0x4670bd});return this['_addSuggestionMarker']('formatBlock:'+_0x1ec820,_0xea3973,_0x433720,this['_model']['createRange'](_0x3c47b5,_0x25e7d3)),_0x2207b8;}}['markMultiRangeBlockFormat'](_0x5997c9,_0x5cdad0,_0x403e2f=[],_0x4bc115=null,_0x76fd12={}){_0x5cdad0['formatGroupId']||(_0x5cdad0['formatGroupId']=_0x5cdad0['commandName']);const _0x4fb9be=_0x5997c9[0x0];_0x5cdad0['multipleBlocks']=_0x4fb9be['is']('range'),_0x4bc115=_0x4bc115||Gt(_0x5cdad0);const _0x4e8581=_0x403e2f['map'](_0x5988c8=>Kt(_0x5988c8,this['_model'])),_0xa0b951=_0x4fb9be['is']('range')?_0x5997c9:_0x5997c9['map'](_0x277688=>Kt(_0x277688,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2bd573=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4bc115,'accept');return this['forceDefaultExecution'](()=>_0x2bd573(_0xa0b951,_0x5cdad0,_0x76fd12)),null;}_0x4e8581['push'](..._0xa0b951);let _0x18f997=!0x0;for(const _0x2cfd8e of _0x4e8581)if(!this['_rangeIsInLocalUserInsertion'](_0x2cfd8e)){_0x18f997=!0x1;break;}if(_0x18f997&&'always'!==this['_trackFormatChanges']){const _0x34707e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4bc115,'accept');return this['forceDefaultExecution'](()=>_0x34707e(_0xa0b951,_0x5cdad0,_0x76fd12)),null;}const _0x392656=this['editor']['plugins']['get']('Users')['me'];for(const _0x5f27cb of this['getSuggestions']()){if(_0x5f27cb['author']['id']!=_0x392656['id'])continue;if('formatBlock'!=_0x5f27cb['type']||_0x5f27cb['data']['formatGroupId']!=_0x5cdad0['formatGroupId'])continue;if(!zt(_0x5f27cb,_0x76fd12))continue;const _0x501480=_0x5f27cb['subType']==_0x4bc115;for(let _0x26b683=0x0;_0x26b683<_0xa0b951['length'];_0x26b683++){const _0x242771=_0xa0b951[_0x26b683];for(const _0x305f02 of _0x5f27cb['getMarkers']()){const _0xff8269=_0x305f02['getRange']();if(_0x242771['isEqual'](_0xff8269)){_0x501480?(_0xa0b951['splice'](_0x26b683,0x1),_0x26b683--):_0x5f27cb['removeMarker'](_0x305f02['name']);break;}}}}if(0x0==_0xa0b951['length'])return null;const _0x44d43b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4bc115,'join');for(const _0x3ac95e of this['getSuggestions']())if(_0x3ac95e['author']['id']==_0x392656['id']&&'formatBlock'==_0x3ac95e['type']&&_0x3ac95e['data']['formatGroupId']==_0x5cdad0['formatGroupId']&&_0x3ac95e['subType']==_0x4bc115&&zt(_0x3ac95e,_0x76fd12)&&(_0x44d43b(_0x3ac95e['getRanges'](),_0xa0b951)||_0x44d43b(_0xa0b951,_0x3ac95e['getRanges']()))){for(const _0x2202ad of _0xa0b951)_0x3ac95e['addRange'](_0x2202ad);return _0x3ac95e;}const _0xcce02c=_0x54ee4c(),_0x277a7c=_0x392656['id'],_0x513802='formatBlock:'+_0x4bc115,_0x539c83=this['_setSuggestionData']({'id':_0xcce02c,'type':_0x513802,'data':_0x5cdad0,'createdAt':new Date(),'authorId':_0x277a7c,'attributes':_0x76fd12});for(const _0x1c0760 of _0xa0b951)this['_addSuggestionMarker'](_0x513802,_0xcce02c,_0x277a7c,_0x1c0760,o['getMultiRangeId']());return _0x539c83;}['markDeletion'](_0x45fe6a,_0x254788=null,_0x923698={}){if(_0x45fe6a['isCollapsed'])return null;const _0x927d13=this['editor']['plugins']['get']('Users')['me'],_0x1aabe4=new _0x2887d8(_0x45fe6a['start'],_0x45fe6a['end']);for(const {suggestion:_0x315ebe,meta:_0x23e3d5}of this['_findSuggestions'](_0x1aabe4,'insertion'))if(_0x23e3d5['isOwn']&&!_0x23e3d5['isNextTo']){if(_0x315ebe['isMultiRange']){const _0x2e6b86=_0x315ebe['getRanges']()['filter'](_0x1d2146=>'$graveyard'!=_0x1d2146['root']['rootName']);_0x2e6b86['every'](_0x3210e7=>_0x1aabe4['containsRange'](_0x3210e7,!0x0))&&_0x315ebe['discard']();if(_0x2e6b86['some'](_0x587001=>_0x587001['containsRange'](_0x1aabe4,!0x0))){const _0x5d8d84=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x254788,'accept');return this['forceDefaultExecution'](()=>_0x5d8d84([_0x1aabe4],null,_0x923698)),null;}}else{const _0x351f74=_0x1aabe4['getIntersection'](_0x315ebe['getFirstRange']());null!==_0x351f74&&_0x315ebe['_onDiscard']([_0x351f74],null,_0x923698);}}if(_0x1aabe4['detach'](),_0x1aabe4['isCollapsed']||'$graveyard'==_0x1aabe4['root']['rootName'])return null;let _0x131afd=null,_0x5923e7=_0x1aabe4['start'],_0x16b40a=_0x1aabe4['end'];const _0x6289f7=this['_findSuggestions'](_0x1aabe4,'deletion');for(const {suggestion:_0x52f8fd,meta:_0x2b6115}of _0x6289f7){const _0x39891e=this['_model']['createRange'](_0x5923e7,_0x16b40a);if(_0x2b6115['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2b6115['containsRangeInObject']&&!_0x2b6115['isInsideObject'])){if(_0x52f8fd['isMultiRange']){if(!zt(_0x52f8fd,_0x923698))continue;let _0x541af3=!0x0;for(const _0x183635 of _0x52f8fd['getRanges']()){if(_0x183635['containsRange'](_0x39891e,!0x0))return _0x52f8fd;_0x39891e['containsRange'](_0x183635)||(_0x541af3=!0x1);}_0x541af3&&_0x52f8fd['discard']();}else{const _0x49dfd8=_0x52f8fd['getFirstRange']();if(_0x49dfd8['containsRange'](_0x39891e,!0x0))return _0x52f8fd;if(!zt(_0x52f8fd,_0x923698)){_0x39891e['containsRange'](_0x49dfd8)?_0x52f8fd['removeMarkers']():_0x49dfd8['containsPosition'](_0x5923e7)?_0x5923e7=_0x49dfd8['end']:_0x49dfd8['containsPosition'](_0x16b40a)&&(_0x16b40a=_0x49dfd8['start']);continue;}_0x5923e7=_0x5923e7['isBefore'](_0x49dfd8['start'])?_0x5923e7:_0x49dfd8['start'],_0x16b40a=_0x16b40a['isAfter'](_0x49dfd8['end'])?_0x16b40a:_0x49dfd8['end'],_0x923698=Object['assign']({},_0x52f8fd['attributes']),_0x131afd?_0x49dfd8['start']['isBefore'](_0x131afd['getFirstRange']()['start'])?(_0x131afd['removeMarkers'](),_0x131afd=_0x52f8fd):_0x52f8fd['removeMarkers']():_0x131afd=_0x52f8fd;}}}if(_0x131afd)return this['_setSuggestionRange'](_0x131afd,this['_model']['createRange'](_0x5923e7,_0x16b40a)),_0x131afd;{const _0x435d84=_0x54ee4c(),_0x2b0a2d=this['_model']['createRange'](_0x5923e7,_0x16b40a),_0x497137=_0x927d13['id'],_0x1ba658=_0x254788?'deletion:'+_0x254788:'deletion',_0x16506b=this['_setSuggestionData']({'id':_0x435d84,'type':_0x1ba658,'createdAt':new Date(),'authorId':_0x497137,'attributes':_0x923698});return this['_addSuggestionMarker'](_0x1ba658,_0x435d84,_0x497137,_0x2b0a2d),_0x16506b;}}['markMultiRangeDeletion'](_0x4a0c3e,_0x39221e='multi',_0x3032ce={}){const _0x3eb6dd=this['editor']['plugins']['get']('Users')['me'],_0x389ff7=_0x4a0c3e['map'](_0x253a5e=>new _0x2887d8(_0x253a5e['start'],_0x253a5e['end'])),_0x3301fe=new Set();for(const {suggestion:_0xbcea60,meta:_0xe094b0}of this['_findSuggestions'](_0x389ff7,'insertion'))_0xe094b0['isOwn']&&!_0xe094b0['isNextTo']&&_0x3301fe['add'](_0xbcea60);for(const _0x4f5f08 of _0x3301fe)if(_0x4f5f08['isMultiRange']){const _0xced85e=_0x4f5f08['getRanges']();(!_0x4f5f08['attributes']||!_0x4f5f08['attributes']['skipNestingCheck'])&&(_0xced85e['every'](_0x36577e=>_0x389ff7['some'](_0x4d4820=>_0x4d4820['containsRange'](_0x36577e,!0x0)))&&_0x4f5f08['discard']());if(_0x389ff7['every'](_0x55b00a=>_0xced85e['some'](_0x53d95b=>_0x53d95b['containsRange'](_0x55b00a,!0x0)))){const _0x23dcd2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39221e,'accept');return this['forceDefaultExecution'](()=>_0x23dcd2(_0x4a0c3e,null,_0x3032ce)),null;}}else{const _0x5482b7=_0x4f5f08['getFirstRange']();_0x389ff7['some'](_0x4af384=>_0x4af384['containsRange'](_0x5482b7,!0x0))&&_0x4f5f08['discard']();if(_0x389ff7['every'](_0x46a26b=>_0x5482b7['containsRange'](_0x46a26b,!0x0))){const _0x1461ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39221e,'accept');return this['forceDefaultExecution'](()=>_0x1461ee(_0x389ff7,null,_0x3032ce)),null;}}const _0x106961=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39221e,'join');let _0xef7a81=null;for(const _0x38f6c8 of this['getSuggestions']())if(_0x38f6c8['author']['id']==_0x3eb6dd['id']&&_0x38f6c8['isInContent']&&'deletion'==_0x38f6c8['type']&&_0x38f6c8['subType']==_0x39221e&&zt(_0x38f6c8,_0x3032ce)&&(_0x106961(_0x38f6c8['getRanges'](),_0x389ff7)||_0x106961(_0x389ff7,_0x38f6c8['getRanges']()))){if(_0xef7a81){if(_0x38f6c8['commentThread']&&_0x38f6c8['commentThread']['length'])continue;for(const _0x9a3796 of _0x38f6c8['getRanges']())_0xef7a81['isIntersectingWithRange'](_0x9a3796)||_0xef7a81['addRange'](_0x9a3796);_0x38f6c8['removeMarkers']();}else{_0xef7a81=_0x38f6c8;for(const _0x2c20fa of _0x389ff7)_0x38f6c8['isIntersectingWithRange'](_0x2c20fa)||_0x38f6c8['addRange'](_0x2c20fa);}}if(_0xef7a81)return _0xef7a81;_0x3301fe['clear']();for(const {suggestion:_0x37db14,meta:_0x1421e5}of this['_findSuggestions'](_0x389ff7,'deletion'))_0x1421e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1421e5['containsRangeInObject']&&!_0x1421e5['isInsideObject'])&&zt(_0x37db14,_0x3032ce)&&_0x3301fe['add'](_0x37db14);for(const _0x3be211 of _0x3301fe){const _0x3ae031=_0x3be211['getRanges']();if(!_0x3032ce||!_0x3032ce['skipNestingCheck']){if(_0x389ff7['every'](_0x1c7286=>_0x3ae031['some'](_0x36f51a=>_0x36f51a['containsRange'](_0x1c7286,!0x0))))return _0x3be211;}(!_0x3be211['attributes']||!_0x3be211['attributes']['skipNestingCheck'])&&(_0x3ae031['every'](_0x180002=>_0x389ff7['some'](_0x2f7bf5=>_0x2f7bf5['containsRange'](_0x180002,!0x0)))&&_0x3be211['discard']());}const _0x52dbd4=_0x54ee4c(),_0x3fc50c=_0x3eb6dd['id'],_0x13b693='deletion:'+_0x39221e,_0x26faa6=this['_setSuggestionData']({'id':_0x52dbd4,'type':_0x13b693,'createdAt':new Date(),'authorId':_0x3fc50c,'attributes':_0x3032ce});for(const _0x14f967 of _0x389ff7)_0x14f967['detach'](),_0x14f967['isCollapsed']||'$graveyard'==_0x14f967['root']['rootName']||this['_addSuggestionMarker'](_0x13b693,_0x52dbd4,_0x3fc50c,_0x14f967,o['getMultiRangeId']());return _0x26faa6;}['markAttributeChange'](_0x1ca8d6,_0x20e838,_0xc91c10,_0x5ed479,_0x4a7ba3){if(_0x1ca8d6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x21b605=this['editor']['plugins']['get']('Users')['me']['id'],_0x37c145=Array['from'](this['_suggestions']['values']())['filter'](_0x3d2f91=>'attribute'==_0x3d2f91['type']&&_0x3d2f91['data']['key']==_0x20e838&&_0x3d2f91['isIntersectingWithRange'](_0x1ca8d6));if('default'===this['_trackFormatChanges']){const _0x21ce17=this['_findSuggestions'](_0x1ca8d6,'insertion')['filter'](({meta:_0xcd47e1})=>_0xcd47e1['isOwn']&&!_0xcd47e1['isInsideObject']&&!_0xcd47e1['isNextTo'])['map'](({suggestion:_0x2377d8})=>_0x2377d8);_0x37c145['unshift'](..._0x21ce17);}const _0x5150f2=new Map([[_0x1ca8d6,_0xc91c10]]);for(const _0x2f2850 of _0x37c145){const _0x21eb16='attribute'==_0x2f2850['type']?_0x2f2850['data']['oldValue']:void 0x0,_0x223366=_0x2f2850['getFirstRange'](),_0x5b3711=Array['from'](_0x5150f2['keys']())['find'](_0x54ba40=>_0x54ba40['isIntersecting'](_0x223366));if(!_0x5b3711)continue;const _0x24245a=_0x5b3711['getDifference'](_0x223366);this['_isBlockAttribute'](_0x20e838)&&'insertion'==_0x2f2850['type']&&0x0!=_0x24245a['length']||(_0x5150f2['delete'](_0x5b3711),_0x24245a['forEach'](_0x4d3cb7=>{_0x5150f2['set'](_0x4d3cb7,_0xc91c10);}),'insertion'!=_0x2f2850['type']&&_0x21eb16!=_0x5ed479&&_0x5150f2['set'](_0x5b3711['getIntersection'](_0x223366),_0x21eb16));}const _0xbfa015=[];for(const [_0x369c5e,_0x2bcbaf]of _0x5150f2){const _0xdc4043=_0x54ee4c(),_0x4636a9={'key':_0x20e838,'oldValue':_0x2bcbaf,'newValue':_0x5ed479};_0x20e838['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':_0x20e838});const _0x549b1f=('attribute:'+(_0x20e838+'|'+Gt({'newValue':_0x5ed479})))['substring'](0x0,0x3c),_0x11f00d=this['_setSuggestionData']({'id':_0xdc4043,'type':_0x549b1f,'data':_0x4636a9,'createdAt':new Date(),'authorId':_0x21b605,'attributes':_0x4a7ba3});_0xbfa015['push'](_0x11f00d),this['_addSuggestionMarker'](_0x549b1f,_0xdc4043,_0x21b605,_0x369c5e);}return _0xbfa015;}['enableDefaultAttributesIntegration'](_0x356be7){this['enableCommand'](_0x356be7,(_0x507261,..._0x469d56)=>{this['_recordAttributeChanges'](()=>{_0x507261(..._0x469d56);});});}['registerBlockAttribute'](_0x5c2d45){this['_blockAttributeKeys']['add'](_0x5c2d45);}['registerInlineAttribute'](_0xcfa2f1){this['_inlineAttributeKeys']['add'](_0xcfa2f1);}['_getAttributeKey'](_0x616714){return'attribute'==_0x616714['type']?_0x616714['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x26fdd5,_0x167713){const _0x1b95ec=_0x26fdd5['getFirstMarker']();this['_model']['change'](_0x3a0f48=>{_0x3a0f48['updateMarker'](_0x1b95ec,{'range':_0x167713});});}['_addThreadToSuggestion'](_0x1a0708){const _0x323bab=_0x1a0708['id'],_0x38a0e2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x323bab)||this['_commentsRepository']['addCommentThread']({'channelId':_0x38a0e2,'threadId':_0x323bab,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x35b63c=this['_commentsRepository']['getCommentThread'](_0x323bab);_0x35b63c['unbind']('isRemovable'),_0x35b63c['isRemovable']=!0x1,_0x1a0708['commentThread']=_0x35b63c;}['_checkSuggestionCorrectness'](_0x4efa16,_0x18fa2b,_0x437d42,_0x5a8588){if(_0x4efa16['type']!=_0x18fa2b||_0x4efa16['subType']!=_0x437d42||_0x4efa16['creator']['id']!=_0x5a8588)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a483c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4b967e,_0x403565){const _0x359bc2=_0x4b967e['getFirstRange']();if(_0x403565['isEqual'](_0x359bc2))_0x4b967e['removeMarkers']();else{if(_0x359bc2['containsRange'](_0x403565)){const _0x23b729=this['_model']['createPositionAt'](_0x403565['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b967e,this['_model']['createRange'](_0x359bc2['start'],_0x23b729));const _0x4688a1=_0x54ee4c(),_0x51efd7=_0x4b967e['creator']['id'],_0x5703ba=_0x4b967e['type']+':'+_0x4b967e['subType'];this['_setSuggestionData']({'id':_0x4688a1,'type':_0x5703ba,'createdAt':new Date(),'authorId':_0x51efd7,'data':_0x4b967e['data'],'attributes':_0x4b967e['attributes']});const _0x22c193=this['_model']['createPositionAt'](_0x403565['end']['parent'],'after'),_0xb726b8=this['_model']['createRange'](_0x22c193,_0x359bc2['end']);this['_addSuggestionMarker'](_0x5703ba,_0x4688a1,_0x51efd7,_0xb726b8);}else{if(_0x359bc2['containsPosition'](_0x403565['start'])){const _0x4c0329=this['_model']['createPositionAt'](_0x403565['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4b967e,this['_model']['createRange'](_0x359bc2['start'],_0x4c0329));}else{const _0x1b04cb=this['_model']['createPositionAt'](_0x403565['end']['parent'],'after');this['_setSuggestionRange'](_0x4b967e,this['_model']['createRange'](_0x1b04cb,_0x359bc2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x468e4b){for(const {suggestion:_0x26b52c,meta:_0x49c1ca}of this['_findSuggestions'](_0x468e4b,'insertion')){if(!_0x49c1ca['isOwn'])continue;const _0x316291=_0x26b52c['getRanges']();for(const _0x53b95a of _0x316291)if(!_0x468e4b['getDifference'](_0x53b95a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3eac14){const _0x353d0d=this['editor']['plugins']['get']('Users')['getUser'](_0x3eac14);if(!_0x353d0d)throw new _0x1a483c('track-changes-user-not-found',this);return _0x353d0d;}['_getExternalAuthor'](_0x55d10b){const _0x4c4e0c=this['editor']['plugins']['get']('Users'),_0x1aa675=_0x1ec344('external:'+_0x55d10b),_0x225911=_0x4c4e0c['getUser'](_0x1aa675);return _0x225911||_0x4c4e0c['addUser']({'id':_0x1aa675,'name':_0x55d10b});}['_createSuggestion'](_0x36d98f,_0x15893d,_0x1d6e49,_0x4cfb78,_0x22b024){const _0x596d1b=this['_getAuthorFromId'](_0x4cfb78),_0x5ceafd=this['_suggestionFactory']['buildSuggestion'](_0x36d98f,_0x15893d,_0x1d6e49,_0x596d1b,_0x22b024,_0x21e149=>{this['_updateSuggestionData'](_0x1d6e49,{'attributes':_0x21e149});const _0x453d22=this['getSuggestion'](_0x1d6e49);this['_joinWithAdjacentSuggestions'](new Set([_0x453d22])),this['_refreshSuggestionsChain'](new Set([_0x453d22]));});return this['listenTo'](_0x5ceafd,'accept',()=>{this['_updateSuggestionData'](_0x1d6e49,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5ceafd,'discard',()=>{this['_updateSuggestionData'](_0x1d6e49,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d6e49,_0x5ceafd),this['_suggestionState']['set'](_0x5ceafd,'notReady'),_0x5ceafd;}['_splitMarkerName'](_0x103d65){const _0x2f9404=_0x103d65['split'](':');return{'group':_0x2f9404[0x0],'type':_0x2f9404[0x1],'subType':_0x2f9404['length']>=0x5?_0x2f9404[0x2]:null,'id':_0x2f9404['length']<0x5?_0x2f9404[0x2]:_0x2f9404[0x3],'authorId':_0x2f9404['length']<0x5?_0x2f9404[0x3]:_0x2f9404[0x4],'markerCount':0x6==_0x2f9404['length']?_0x2f9404[0x5]:null};}['_breakSuggestionMarker'](_0x1a676d,_0x15bac1,_0x5504b7){const _0x1acea2=_0x1a676d['getFirstRange'](),_0x13ec9f=_0x1acea2['start'],_0x38c239=_0x1acea2['end'];this['_setSuggestionRange'](_0x1a676d,this['_model']['createRange'](_0x13ec9f,_0x15bac1));const _0x26dcbc=_0x54ee4c(),_0x536f34=_0x1a676d['creator']['id'],_0x38e1fd=_0x1a676d['type']+(_0x1a676d['subType']?':'+_0x1a676d['subType']:'');this['_setSuggestionData']({'id':_0x26dcbc,'type':_0x38e1fd,'createdAt':new Date(),'authorId':_0x536f34,'originalSuggestionId':_0x1a676d['id'],'attributes':_0x1a676d['attributes'],'data':_0x1a676d['data']});const _0x202f1a=this['_getAttributeKey'](_0x1a676d);('formatBlock'==_0x1a676d['type']||_0x202f1a&&this['_isBlockAttribute'](_0x202f1a))&&(_0x5504b7=this['_model']['createPositionBefore'](_0x5504b7['parent'])),this['_addSuggestionMarker'](_0x38e1fd,_0x26dcbc,_0x536f34,this['_model']['createRange'](_0x5504b7,_0x38c239));}['_findSuggestions'](_0x54c9e0,_0x1a70ef=null){const _0x3eac0a=[],_0x25a44d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x54c9e0)||(_0x54c9e0=[_0x54c9e0]);for(const _0x221081 of this['getSuggestions']()){if(!_0x221081['isInContent'])continue;if(_0x1a70ef&&_0x221081['type']!=_0x1a70ef)continue;let _0x43017c=!0x1;for(const _0xcef1ec of _0x221081['getRanges']()){for(const _0x30980e of _0x54c9e0){const _0x5d845e=_0x30980e['start']['isEqual'](_0xcef1ec['end'])||_0x30980e['end']['isEqual'](_0xcef1ec['start']);if(_0x5d845e||_0x30980e['getIntersection'](_0xcef1ec)){const _0x422ef0=_0x30980e['containsRange'](_0xcef1ec)&&Vt(this['_model']['schema'],_0xcef1ec['start'],_0x30980e),_0x264d65=_0xcef1ec['containsRange'](_0x30980e)&&Vt(this['_model']['schema'],_0x30980e['start'],_0xcef1ec);_0x3eac0a['push']({'suggestion':_0x221081,'meta':{'isOwn':_0x25a44d==_0x221081['author'],'isNextTo':_0x5d845e,'isInsideObject':_0x422ef0,'containsRangeInObject':_0x264d65}}),_0x43017c=!0x0;break;}}if(_0x43017c)break;}}return _0x3eac0a;}['_addSuggestionMarker'](_0x4812c5,_0x58ede5,_0x2ebcce,_0x3b22ad,_0x22af89){this['_model']['change'](_0x4ed8f0=>{let _0x323403='suggestion:'+_0x4812c5+':'+_0x58ede5+':'+_0x2ebcce;_0x22af89&&(_0x323403=_0x323403+':'+_0x22af89),_0x4ed8f0['addMarker'](_0x323403,{'range':_0x3b22ad,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ad289){const _0x1069b3=_0x3ad289['previous'],_0x176c21=_0x3ad289['next'];_0x3ad289['previous']=null,_0x3ad289['next']=null,null!=_0x1069b3&&_0x1069b3['next']==_0x3ad289&&(_0x1069b3['next']=_0x176c21),null!=_0x176c21&&_0x176c21['previous']==_0x3ad289&&(_0x176c21['previous']=_0x1069b3),'ready'==this['_suggestionState']['get'](_0x3ad289)&&(this['_suggestionState']['set'](_0x3ad289,'removed'),this['fire']('suggestionUnloaded',_0x3ad289,_0x1069b3,_0x176c21));}['_setSuggestionData'](_0x2bacf4){const _0x4323f2=_0x2bacf4['id'],_0x25eff8=this['addSuggestionData'](_0x2bacf4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5c9135=this['editor']['plugins']['get']('PendingActions'),_0x58e05f=_0x25eff8['hasComments'],_0x87b248=_0x25eff8['subType']?_0x25eff8['type']+':'+_0x25eff8['subType']:_0x25eff8['type'],_0x4d90f4=this['editor']['locale'],_0x1b3f12=_0x5c9135['add'](c(_0x4d90f4,'PENDING_ACTION_SUGGESTION')),_0x29add2={'id':_0x4323f2,'type':_0x87b248,'hasComments':_0x58e05f,'data':_0x2bacf4['data']||null,'originalSuggestionId':_0x2bacf4['originalSuggestionId']||null,'attributes':_0x25eff8['attributes']};this['_adapter']['addSuggestion'](_0x29add2)['then'](_0x2760ab=>{_0x25eff8['_saved']=!0x0,_0x5c9135['remove'](_0x1b3f12),_0x2760ab&&_0x2760ab['createdAt']&&(this['_suggestions']['get'](_0x4323f2)['createdAt']=_0x2760ab['createdAt']);})['catch'](_0x4cb825=>{throw _0x3cf3d4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25eff8['discard']();}),_0x25eff8['stopListening'](),this['_suggestions']['delete'](_0x25eff8['id']),this['_suggestionState']['delete'](_0x25eff8),_0x4cb825;});}return _0x25eff8;}['_isBlockAttribute'](_0x5d5689){return this['_blockAttributeKeys']['has'](_0x5d5689);}['_updateSuggestionData'](_0x4e148c,_0xaf5329){const _0xa01913=this['editor']['plugins']['get']('PendingActions'),_0x302247=this['getSuggestion'](_0x4e148c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x302247['_saved']){const _0x1cd227=_0xa01913['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4e148c,_0xaf5329)['then'](()=>{_0xa01913['remove'](_0x1cd227);});}else _0x302247['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4e148c,_0xaf5329);});}}['_getSuggestionData'](_0x4c143b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a483c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4c143b);}['_handleNewSuggestionMarker'](_0x40d6a7){const {id:_0x19751c,type:_0x133ad6,subType:_0x24151c,authorId:_0x32db86}=this['_splitMarkerName'](_0x40d6a7),_0x2e5d40=this['_suggestions']['get'](_0x19751c)||this['_createSuggestion'](_0x133ad6,_0x24151c,_0x19751c,_0x32db86,{});switch(this['_checkSuggestionCorrectness'](_0x2e5d40,_0x133ad6,_0x24151c,_0x32db86),this['_suggestionState']['get'](_0x2e5d40)){case'notReady':this['_getSuggestionData'](_0x19751c)['then'](_0x435156=>{let _0x399b14=Promise['resolve']();_0x435156['hasComments']&&(_0x399b14=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x19751c})),_0x399b14['then'](()=>{this['addSuggestionData'](_0x435156)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2e5d40,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x19751c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2e5d40,'ready'),this['fire']('suggestionLoaded',_0x2e5d40);break;case'ready':this['fire']('suggestionChanged',_0x2e5d40);}return _0x2e5d40['addMarkerName'](_0x40d6a7),_0x2e5d40;}['_refreshSuggestionsChain'](_0x1cc9fa){const _0x12274f=Array['from'](_0x1cc9fa),_0x326fa4=_0x12274f['filter'](_0x5ddfea=>'attribute'==_0x5ddfea['type']);this['_refreshAttributeSuggestionsChain'](_0x326fa4);const _0x13c38e=_0x12274f['filter'](_0x45e884=>!_0x45e884['isMultiRange']&&'attribute'!=_0x45e884['type']),_0x1f6706=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45193c=>!_0x45193c['isMultiRange']&&'attribute'!=_0x45193c['type']),_0x3de18c=_0x1f6706['filter'](_0x4faebe=>!_0x1cc9fa['has'](_0x4faebe)),_0x12a0c1=new Map(_0x1f6706['map'](_0x15cf75=>[_0x15cf75,this['_suggestionFactory']['getSuggestionCallback'](_0x15cf75['type'],_0x15cf75['subType'],'chain')])),_0x3653d3=new Map(_0x1f6706['map'](_0x4069a0=>[_0x4069a0,_0x4069a0['getFirstRange']()])),_0x5823d3=new Set(),_0x2e75f3=new Set();for(let _0x3bb70a=0x0;_0x3bb70a<_0x13c38e['length'];_0x3bb70a++)_0x2e455e(_0x13c38e[_0x3bb70a],_0x13c38e,_0x3bb70a+0x1);for(let _0x339850=0x0;_0x339850<_0x13c38e['length'];_0x339850++)_0x2e455e(_0x13c38e[_0x339850],_0x3de18c,0x0);const _0x58b4c1=new Set();for(let _0x151e8c=0x0;_0x151e8c<_0x13c38e['length'];_0x151e8c++){const _0x3e89a9=_0x13c38e[_0x151e8c];!_0x2e75f3['has'](_0x3e89a9)&&_0x3e89a9['previous']&&(_0x58b4c1['add'](_0x3e89a9['previous']),_0x3e89a9['previous']['next']===_0x3e89a9&&(_0x3e89a9['previous']['next']=null),_0x3e89a9['previous']=null),!_0x5823d3['has'](_0x3e89a9)&&_0x3e89a9['next']&&(_0x58b4c1['add'](_0x3e89a9['next']),_0x3e89a9['next']['previous']===_0x3e89a9&&(_0x3e89a9['next']['previous']=null),_0x3e89a9['next']=null);}function _0x2e455e(_0x53396a,_0x2ca90f,_0x5628bb){for(let _0x4d945c=_0x5628bb;_0x4d945c<_0x2ca90f['length'];_0x4d945c++){const _0x4608fb=_0x34967a(_0x53396a,_0x2ca90f[_0x4d945c]);_0x4608fb&&(_0x4608fb[0x0]['next']=_0x4608fb[0x1],_0x4608fb[0x1]['previous']=_0x4608fb[0x0],_0x5823d3['add'](_0x4608fb[0x0]),_0x2e75f3['add'](_0x4608fb[0x1]));}}function _0x34967a(_0x475ccf,_0x2fa264){if(_0x475ccf['author']['id']!==_0x2fa264['author']['id'])return null;const _0x1e07f0=_0x12a0c1['get'](_0x475ccf)(_0x475ccf,_0x2fa264,_0x3653d3['get'](_0x475ccf),_0x3653d3['get'](_0x2fa264));if(!_0x1e07f0)return null;return _0x12a0c1['get'](_0x2fa264)(_0x475ccf,_0x2fa264,_0x3653d3['get'](_0x475ccf),_0x3653d3['get'](_0x2fa264))?_0x1e07f0[0x1]['commentThread']&&_0x1e07f0[0x1]['commentThread']['length']?null:_0x1e07f0:null;}_0x58b4c1['size']&&this['_refreshSuggestionsChain'](_0x58b4c1);}['_refreshAttributeSuggestionsChain'](_0x1df8eb){if(0x0==_0x1df8eb['length'])return;const _0x4de664=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a7d97=>'attribute'==_0x3a7d97['type']&&_0x3a7d97['_isDataLoaded']),_0x24041f=[],_0x2cf505=new Map();for(const _0x1b97a9 of _0x4de664){const _0x2a8be8=_0x1ec344(_0x1b97a9['attributes']);_0x2cf505['has'](_0x2a8be8)||(_0x2cf505['set'](_0x2a8be8,_0x24041f['length']),_0x24041f['push']([]));const _0x344fd9=_0x2cf505['get'](_0x2a8be8);_0x24041f[_0x344fd9]['push'](_0x1b97a9);}!(function(){_0x24041f['sort']((_0x2573f0,_0x28f5a2)=>{const _0x122f60=_0x2573f0[0x0]['createdAt'],_0x323631=_0x28f5a2[0x0]['createdAt'];return _0x122f60==_0x323631?_0x2573f0[0x0]['attributes']['groupId']<_0x28f5a2[0x0]['attributes']['groupId']?-0x1:0x1:_0x122f60<_0x323631?-0x1:0x1;});for(const _0x1512ac of _0x24041f)_0x1512ac['sort']((_0x49d38a,_0x15b833)=>_0x49d38a['id']<_0x15b833['id']?-0x1:0x1);}());for(let _0x1c1ed7=0x0;_0x1c1ed7<_0x24041f['length'];_0x1c1ed7++){if(0x0==_0x24041f[_0x1c1ed7]['length'])continue;const _0x408505=[];for(let _0x3a0f9b=_0x1c1ed7+0x1;_0x3a0f9b<_0x24041f['length'];_0x3a0f9b++)0x0!=_0x24041f[_0x3a0f9b]['length']&&_0x578495(_0x24041f[_0x1c1ed7],_0x24041f[_0x3a0f9b])&&_0x408505['push'](_0x3a0f9b);for(const _0x3fa9e8 of _0x408505)_0x24041f[_0x1c1ed7]=_0x24041f[_0x1c1ed7]['concat'](_0x24041f[_0x3fa9e8]),_0x24041f[_0x3fa9e8]=[];}for(const _0x2df69c of _0x24041f)for(let _0x223e28=0x0;_0x223e28<_0x2df69c['length'];_0x223e28++){const _0x501ed5=_0x2df69c[_0x223e28+0x1]||null;_0x2df69c[_0x223e28]['next']!==_0x501ed5&&(_0x2df69c[_0x223e28]['next']=_0x501ed5);}for(const _0x2837cf of _0x24041f)for(let _0x1344cb=0x0;_0x1344cb<_0x2837cf['length'];_0x1344cb++){const _0x3e894b=_0x2837cf[_0x1344cb-0x1]||null;_0x2837cf[_0x1344cb]['previous']!==_0x3e894b&&(_0x2837cf[_0x1344cb]['previous']=_0x3e894b);}function _0x578495(_0x1ca1f1,_0x5d0e1e){if(_0x1ca1f1[0x0]['attributes']['groupId']!==_0x5d0e1e[0x0]['attributes']['groupId']&&_0x1ca1f1[0x0]['author']!==_0x5d0e1e[0x0]['author'])return!0x1;if(!function(_0x180274,_0x1ecb57){if(!_0x180274['hasComments']&&!_0x1ecb57['hasComments'])return!0x0;if(_0x180274['hasComments']&&_0x1ecb57['hasComments'])return!0x1;if(_0x180274['hasComments']&&_0x1ecb57['createdAt']<_0x180274['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1ecb57['hasComments']&&_0x180274['createdAt']<_0x1ecb57['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1ca1f1[0x0],_0x5d0e1e[0x0]))return!0x1;const _0x23c969=Et(_0x1ca1f1[0x0]['attributes'],'groupId'),_0x4a8f84=Et(_0x5d0e1e[0x0]['attributes'],'groupId');if(!_0x12a927(_0x23c969,_0x4a8f84))return!0x1;return!!_0x1ca1f1['every'](_0x782b92=>_0x5d0e1e['some'](_0x5da320=>_0x782b92['getFirstRange']()['isEqual'](_0x5da320['getFirstRange']())))&&_0x5d0e1e['every'](_0x414ce4=>_0x1ca1f1['some'](_0x4b1974=>_0x414ce4['getFirstRange']()['isEqual'](_0x4b1974['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3d6cba){const _0x142230=Array['from'](_0x3d6cba),_0x5bba63=this['getSuggestions']({'skipNotAttached':!0x0}),_0xf45225=_0x5bba63['filter'](_0x362de1=>!_0x3d6cba['has'](_0x362de1)),_0x4a2e8b=new Map(_0x142230['map'](_0x2c5a0a=>[_0x2c5a0a,this['_suggestionFactory']['getSuggestionCallback'](_0x2c5a0a['type'],_0x2c5a0a['subType'],'join')])),_0x18e4bf=new Map(_0x5bba63['map'](_0x564574=>[_0x564574,_0x564574['getRanges']()]));for(let _0x47bf90=0x0;_0x47bf90<_0x142230['length'];_0x47bf90++){if(_0x1cef6a(this,_0x142230[_0x47bf90],_0x142230,_0x47bf90+0x1))return!0x0;}for(let _0xce4d30=0x0;_0xce4d30<_0x142230['length'];_0xce4d30++){if(_0x1cef6a(this,_0x142230[_0xce4d30],_0xf45225,0x0))return!0x0;}return!0x1;function _0x1cef6a(_0x51a446,_0x5ec414,_0x40c87d,_0x53e6a4){for(let _0x5d101c=_0x53e6a4;_0x5d101c<_0x40c87d['length'];_0x5d101c++){const _0x1a4241=_0x40c87d[_0x5d101c];if(_0x1a4241['type']!==_0x5ec414['type']||_0x1a4241['author']['id']!==_0x5ec414['author']['id']||_0x1a4241['subType']!==_0x5ec414['subType'])continue;if(!qt(_0x5ec414,_0x1a4241))continue;if('attribute'==_0x5ec414['type']&&_0x5ec414['data']['oldValue']!=_0x1a4241['data']['oldValue'])continue;if('attribute'==_0x5ec414['type']&&_0x51a446['_isBlockAttribute'](_0x5ec414['data']['key']))continue;if('formatBlock'==_0x5ec414['type']){const _0x23d6b9=_0x51a446['editor']['model'],_0x58a5e3=_0x5ec414['getContainedElement']();if(_0x58a5e3&&(_0x23d6b9['schema']['isObject'](_0x58a5e3)||_0x23d6b9['schema']['isLimit'](_0x58a5e3)))continue;}const _0x593817=_0x4a2e8b['get'](_0x5ec414),_0x598eeb=_0x18e4bf['get'](_0x5ec414),_0xf2953e=_0x18e4bf['get'](_0x1a4241),_0xe9dedf=_0x5ec414['commentThread']&&_0x5ec414['commentThread']['length'],_0x1259e9=_0x1a4241['commentThread']&&_0x1a4241['commentThread']['length'];if(!_0xe9dedf&&_0x593817(_0xf2953e,_0x598eeb))return _0x51a446['_joinSuggestions'](_0x1a4241,_0x5ec414),_0x18e4bf['delete'](_0x5ec414),!0x0;if(!_0x1259e9&&_0x593817(_0x598eeb,_0xf2953e))return _0x51a446['_joinSuggestions'](_0x5ec414,_0x1a4241),_0x18e4bf['delete'](_0x1a4241),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1f3aaa,_0xa00559){if(_0x1f3aaa['isMultiRange']){for(const _0x539acb of _0xa00559['getRanges']())_0x1f3aaa['addRange'](_0x539acb);}else{const _0x3bed97=_0xa00559['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1f3aaa,this['_model']['createRange'](_0x1f3aaa['getFirstRange']()['start'],_0x3bed97));}_0xa00559['removeMarkers']();}['_getMarkerAnnouncementText'](_0x242d62,_0x488f90,_0xd5645b){const _0x1e9818=_0x242d62['startsWith']('format')||_0x242d62['startsWith']('attribute')?'FORMATTING':_0x242d62['toUpperCase']();return c(this['editor']['locale'],_0x488f90+'_'+_0x1e9818+'_SUGGESTION_ANNOUNCEMENT',_0xd5645b);}['_initAriaMarkerChangeAnnouncements'](){const _0x321c08=this['editor'];if(!_0x321c08['ui'])return;const {ariaLiveAnnouncer:_0x55af66}=_0x321c08['ui'];_0x28d0ff(this['_model'],({left:_0x436194,entered:_0x58cc14})=>{for(const _0x4d3a89 of _0x436194){const {group:_0x545fd9,type:_0x53474e}=this['_splitMarkerName'](_0x4d3a89['name']);if('suggestion'===_0x545fd9){_0x55af66['announce'](this['_getMarkerAnnouncementText'](_0x53474e,'LEAVE'));break;}}for(const _0x54e11d of _0x58cc14){const {group:_0x5b2f4d,type:_0x4068b6}=this['_splitMarkerName'](_0x54e11d['name']);if('suggestion'===_0x5b2f4d){_0x55af66['announce'](this['_getMarkerAnnouncementText'](_0x4068b6,'ENTER',_0x3a405d(_0x7bb93f)));break;}}});}['_processAttributeChanges'](_0x5b4047){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2fd544=this['editor'],_0x30cd95=_0x2fd544['model']['document']['differ']['getChanges']();if(0x0==_0x30cd95['length'])return!0x1;const _0x346732=[],_0x4399f2=_0x30cd95['filter'](_0x4278a4=>'attribute'==_0x4278a4['type']),_0x5a9dee=_0x30cd95['filter'](_0x3d01ae=>'insert'==_0x3d01ae['type']&&'$text'!=_0x3d01ae['name']),_0x30e62d=_0x30cd95['filter'](_0xf398af=>'remove'==_0xf398af['type']&&'$text'!=_0xf398af['name']);for(const _0x3af19e of _0x4399f2)_0x346732['push']({'key':_0x3af19e['attributeKey'],'newValue':_0x3af19e['attributeNewValue'],'oldValue':_0x3af19e['attributeOldValue'],'range':Jt(_0x3af19e['range'],_0x2fd544['model'])});for(const _0x5c180a of _0x5a9dee){const _0x3b441c=_0x30e62d['find'](_0x2a2980=>_0x2a2980['position']['isEqual'](_0x5c180a['position']));_0x3b441c&&_0x346732['push']({'key':u,'newValue':_0x5c180a['name'],'oldValue':_0x3b441c['name'],'range':_0x2fd544['model']['createRangeOn'](_0x5c180a['position']['nodeAfter'])});}return 0x0!=_0x346732['length']&&this['_reduceExistingSuggestions'](_0x5b4047,_0x346732);}['_processAttributeSuggestions'](_0x3f7b01){let _0x86bcf9=!0x1;const _0x378cd7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39df75=>_0x39df75['data']['newRange']&&_0x39df75['name']['startsWith']('suggestion:attribute:'));for(const _0x26b575 of _0x378cd7){const {subType:_0x57bb22,id:_0x5c9238}=this['_splitMarkerName'](_0x26b575['name']),_0x3fdf1c=_0x57bb22['split']('|')[0x0];for(const _0x483619 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x483619['id']!=_0x5c9238&&'attribute'==_0x483619['type']&&_0x483619['data']&&_0x483619['data']['key']==_0x3fdf1c&&_0x483619['getFirstRange']()['isIntersecting'](_0x26b575['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x483619,_0x26b575['data']['newRange'],_0x3f7b01),_0x86bcf9=!0x0);}return _0x86bcf9;}['_recordAttributeChanges'](_0x1860fa){this['_recordAttributeSuggestions']=!0x0,_0x1860fa();}['_isRegisteredAttribute'](_0x323ee5){const _0x451a91=this['_isBlockAttribute'](_0x323ee5),_0xd293e2=this['_inlineAttributeKeys']['has'](_0x323ee5);return _0x451a91||_0xd293e2;}['_reduceExistingSuggestions'](_0x3e8d2f,_0x339873){if(0x0==_0x339873['length'])return!0x1;let _0x3a7e7b=!0x1;for(const _0x4b3941 of _0x339873){const _0x222157=this['_findSuggestions'](_0x4b3941['range'],'attribute')['filter'](_0xa46f08=>!_0xa46f08['meta']['isNextTo'])['map'](_0x326cd3=>_0x326cd3['suggestion']),_0x3ea3eb=_0x1ec344({'newValue':_0x4b3941['newValue']});_0x222157['filter'](_0x319432=>{const [_0xffaabf,_0x1bbe06]=_0x319432['subType']['split']('|');return _0xffaabf==_0x4b3941['key']&&_0x1bbe06!=_0x3ea3eb;})['forEach'](_0x550b11=>{this['_reduceSuggestionAttributeRange'](_0x550b11,_0x4b3941['range'],_0x3e8d2f),_0x3a7e7b=!0x0;});}return _0x3a7e7b;}['_reduceSuggestionAttributeRange'](_0x1706ad,_0x5f436f,_0x5b2e16){const _0x3ade68=_0x1706ad['getFirstRange']()['getDifference'](_0x5f436f);0x0!==_0x3ade68['length']?0x1!==_0x3ade68['length']?this['_breakSuggestionMarker'](_0x1706ad,_0x5f436f['start'],_0x5f436f['end']):this['_setSuggestionRange'](_0x1706ad,_0x3ade68[0x0]):_0x5b2e16['removeMarker'](_0x1706ad['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1e6635){this['_editor']=_0x1e6635,this['_model']=_0x1e6635['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e0564,_0x368fce,_0x3c5ce9,_0xa362f2,_0xd77957,_0x5fdb69){return new o(this['_model'],{'type':_0x2e0564,'subType':_0x368fce,'id':_0x3c5ce9,'author':_0xa362f2,'creator':_0xa362f2,'attributes':_0xd77957,'onAttributesChange':_0x5fdb69,'onAccept':(..._0x3f206a)=>this['getSuggestionCallback'](_0x2e0564,_0x368fce,'accept')(..._0x3f206a),'onDiscard':(..._0x5d18af)=>this['getSuggestionCallback'](_0x2e0564,_0x368fce,'discard')(..._0x5d18af)});}['registerCustomCallback'](_0x44d5ff,_0x1fca21,_0x55c65b,_0x2e993c){const _0x58a62e=_0x44d5ff+':'+_0x1fca21+':'+_0x55c65b;this['_customCallbacks']['set'](_0x58a62e,_0x2e993c);}['getSuggestionCallback'](_0xfe3e60,_0x2a1d03,_0x3e12f6){const _0x26e6ed=_0xfe3e60+':'+_0x2a1d03+':'+_0x3e12f6;return this['_customCallbacks']['get'](_0x26e6ed)||this['_defaultCallbacks']['get'](_0xfe3e60+':'+_0x3e12f6);}['_registerDefaultCallbacks'](){const _0x2b2cf6=()=>!0x1,_0x2158e1=_0x109b39=>{_0x109b39['sort']((_0x19eeb6,_0x48e780)=>_0x19eeb6['start']['isBefore'](_0x48e780['start'])?0x1:-0x1),this['_model']['change'](_0x2128bd=>{for(const _0x311ddd of _0x109b39){let _0x45b89b;_0x45b89b=_0x311ddd['end']['isAtEnd']&&_0x311ddd['end']['parent']==_0x311ddd['start']['nodeAfter']?_0x2128bd['createSelection'](_0x311ddd['start']['nodeAfter'],'on'):_0x2128bd['createSelection'](_0x311ddd),this['_model']['deleteContent'](_0x45b89b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x72e7b7=(_0x223cac,_0xd739ee)=>{_0xd739ee&&this['_model']['change'](_0x39d8dc=>{const {commandName:_0x23b20f,commandParams:_0x3cba3e=[]}=_0xd739ee,_0x35b649=_0x223cac['map'](_0x4588ee=>(Ft(_0x4588ee)&&(_0x4588ee=this['_model']['createRange'](_0x4588ee['end'])),_0x4588ee))['filter'](_0x250ceb=>'$graveyard'!==_0x250ceb['root']['rootName']);if(_0x35b649['length']<0x1)return;const _0x1b6b56=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x32a245=>_0x2887d8['fromRange'](_0x32a245));_0x39d8dc['setSelection'](_0x35b649);for(const _0x5c88f2 of this['_editor']['commands']['commands']())_0x5c88f2['refresh']();_0x3cba3e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x23b20f,..._0x3cba3e);const _0x4d3880=_0x1b6b56['filter'](_0x1376ae=>'$graveyard'!=_0x1376ae['root']['rootName']);_0x4d3880['length']>0x0&&_0x39d8dc['setSelection'](_0x4d3880);for(const _0x417157 of _0x1b6b56)_0x417157['detach']();});},_0x5b3aeb=(_0x1865c2,_0x57e64c)=>0x1==_0x1865c2['length']&&0x1==_0x57e64c['length']&&_0x1865c2[0x0]['end']['isEqual'](_0x57e64c[0x0]['start']),_0x559746=(_0x4ae4d1,_0x391b79,_0x4e0290,_0x4346b0)=>Ht(_0x4ae4d1,_0x391b79,_0x4e0290,_0x4346b0)?[_0x4ae4d1,_0x391b79]:Ht(_0x391b79,_0x4ae4d1,_0x4346b0,_0x4e0290)?[_0x391b79,_0x4ae4d1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b2cf6),this['_defaultCallbacks']['set']('insertion:discard',_0x2158e1),this['_defaultCallbacks']['set']('insertion:join',_0x5b3aeb),this['_defaultCallbacks']['set']('insertion:chain',_0x559746),this['_defaultCallbacks']['set']('deletion:accept',_0x2158e1),this['_defaultCallbacks']['set']('deletion:discard',_0x2b2cf6),this['_defaultCallbacks']['set']('deletion:join',_0x5b3aeb),this['_defaultCallbacks']['set']('deletion:chain',_0x559746),this['_defaultCallbacks']['set']('formatInline:accept',_0x72e7b7),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b2cf6),this['_defaultCallbacks']['set']('formatInline:join',_0x5b3aeb),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b2cf6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x72e7b7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b2cf6),this['_defaultCallbacks']['set']('formatBlock:join',_0x5b3aeb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b2cf6),this['_defaultCallbacks']['set']('attribute:accept',_0x2b2cf6),this['_defaultCallbacks']['set']('attribute:discard',(_0x4a8fa3,_0x28659d)=>{if(!_0x28659d)return;const _0x2b0250=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4ae5ff=>{if(_0x28659d['key']==u)for(const _0x477ff8 of _0x4a8fa3){const _0x31aa10=_0x477ff8['start']['nodeAfter'],_0x181916=_0x28659d['oldValue'];_0x4ae5ff['rename'](_0x31aa10,_0x181916);}else{if(_0x2b0250['_isBlockAttribute'](_0x28659d['key'])){for(const _0x1538cc of _0x4a8fa3)void 0x0!==_0x28659d['oldValue']?_0x4ae5ff['setAttribute'](_0x28659d['key'],_0x28659d['oldValue'],_0x1538cc['start']['nodeAfter']):_0x4ae5ff['removeAttribute'](_0x28659d['key'],_0x1538cc['start']['nodeAfter']);}else{for(const _0x3f7f0c of _0x4a8fa3)_0x28659d['oldValue']?_0x4ae5ff['setAttribute'](_0x28659d['key'],_0x28659d['oldValue'],_0x3f7f0c):_0x4ae5ff['removeAttribute'](_0x28659d['key'],_0x3f7f0c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5b3aeb);}}function Vt(_0x407996,_0x30fafe,_0x5006f0){for(const _0x1216f7 of _0x30fafe['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1216f7['root']==_0x1216f7)return!0x1;if(!_0x5006f0['containsItem'](_0x1216f7))return!0x1;if(_0x407996['isObject'](_0x1216f7)||_0x407996['isLimit'](_0x1216f7))return!0x0;}return!0x1;}function Ft(_0x1a370f){return _0x1a370f['end']['parent']==_0x1a370f['start']['nodeAfter']&&_0x1a370f['end']['isAtStart'];}function Pt(_0x3e861d,_0x596fc4,_0x4e5dbc,_0x23abba){const _0x1a755f=_0x3265ef=>!_0x3265ef['item']['is']('$textProxy')&&!_0x23abba['isObject'](_0x3265ef['item']),_0x32346c=_0x3e861d['start']['getLastMatchingPosition'](_0x1a755f),_0x4a6da9=_0x3e861d['end']['getLastMatchingPosition'](_0x1a755f,{'direction':'backward'});return(!_0x3e861d['start']['isEqual'](_0x32346c)||!_0x3e861d['end']['isEqual'](_0x4a6da9))&&(_0x32346c['isBefore'](_0x4a6da9)?_0x4e5dbc['updateMarker'](_0x596fc4,{'range':_0x4e5dbc['createRange'](_0x32346c,_0x4a6da9)}):_0x4e5dbc['removeMarker'](_0x596fc4),!0x0);}function Gt(_0x44fad5){return _0x1ec344(_0x44fad5);}function Lt(_0x31c030){const _0x597666=_0x31c030['start']['nodeAfter'];return _0x597666&&_0x597666['is']('element');}function Jt(_0x402df8,_0x59de50){return null==_0x402df8['end']['nodeBefore']&&_0x402df8['end']['parent']==_0x402df8['start']['nodeAfter']?Kt(_0x402df8['start']['nodeAfter'],_0x59de50):_0x402df8;}function Kt(_0x1cf593,_0x4c2938){const _0x3416b4=_0x4c2938['schema']['isObject'](_0x1cf593)||_0x4c2938['schema']['isSelectable'](_0x1cf593);return _0x4c2938['createRange'](_0x4c2938['createPositionAt'](_0x1cf593,'before'),_0x3416b4?_0x4c2938['createPositionAfter'](_0x1cf593):_0x4c2938['createPositionAt'](_0x1cf593,'end'));}function Ht(_0x368066,_0x22d2bb,_0x4c562f,_0x345222){return!!qt(_0x368066,_0x22d2bb)&&_0x4c562f['end']['isEqual'](_0x345222['start']);}function qt(_0x1e8948,_0x2414bf){if(!_0x1e8948['_isDataLoaded']||!_0x2414bf['_isDataLoaded'])return!0x1;const _0x2a37f2=new Set(Object['keys'](_0x1e8948['attributes'])),_0x1fdfac=new Set(Object['keys'](_0x2414bf['attributes']));if(_0x2a37f2['delete']('groupId'),_0x1fdfac['delete']('groupId'),0x0==_0x2a37f2['size']&&0x0==_0x1fdfac['size'])return!0x0;if(_0x2a37f2['size']!=_0x1fdfac['size'])return!0x1;const _0x16db43={..._0x1e8948['attributes']},_0x5477e1={..._0x2414bf['attributes']};return delete _0x16db43['groupId'],delete _0x5477e1['groupId'],JSON['stringify'](_0x16db43)==JSON['stringify'](_0x5477e1);}function zt(_0x59b66b,_0x24816a){const _0x3c9300=Wt(_0x59b66b['attributes']),_0x2ee92c=Wt(_0x24816a);if(!_0x59b66b['_isDataLoaded'])return!0x1;for(const _0x53896e of Object['keys'](_0x2ee92c))if(!_0x12a927(_0x3c9300[_0x53896e],_0x2ee92c[_0x53896e]))return!0x1;return!0x0;}function Wt(_0x47195a){const _0x22ad94=Object['assign']({},_0x47195a);return delete _0x22ad94['skipNestingCheck'],delete _0x22ad94['tablePasteChainId'],_0x22ad94;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x109372(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x539401,_0xdd8ecb,_0x15d163,_0xa32077){super(),this['model']=_0xdd8ecb,this['view']=_0x15d163,this['commentThreadController']=_0xa32077,this['_editor']=_0x539401,this['_acceptCommand']=_0x539401['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x539401['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3425e9,_0x417f46)=>_0x3425e9||_0x417f46),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35abf8=>_0x35abf8&&this['_editor']['model']['canEditAt'](_0xdd8ecb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x526ce9=>_0x526ce9&&this['_editor']['model']['canEditAt'](_0xdd8ecb['getRanges']())),this['_pendingAction']=null,_0x15d163['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x15d163,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x15d163,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x15d163,'change:isDirty',()=>{_0x15d163['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 _0x59849e=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x59849e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5d96fb{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5bd11b,_0xe89413,_0x3aa696,_0x5bcec2){super(_0x5bd11b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xb9fb6c(_0x5bd11b,c(_0x5bd11b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xe89413['authoredAt']),this['bind']('authoredAt')['to'](_0xe89413),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',_0xe89413,'authoredAt',this,'descriptionParts',(_0x34ace8,_0x54adbd,_0x1c2ed2)=>{const _0x2a756d=_0x1c2ed2['map'](_0x24f42e=>ls(_0x24f42e['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x34ace8-0x1,_0xe89413['author']['name'],_0x54adbd?_0x5bcec2['formatDateTime'](_0x54adbd):'',new DOMParser()['parseFromString'](_0x2a756d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4f2284(),this['focusTracker']=new _0x3f3afb(),this['keystrokes']=new _0x1b48cf(),this['focusCycler']=new _0x69c8d1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x21682c=>_0x21682c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xe89413,this['_localUser']=_0x3aa696,this['_config']=_0x5bcec2,_0x5bcec2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4f3b76(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3ce589}=this['_config'];this['commentsListView']=new _0x3ce589(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',_0x116a51=>_0x116a51+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4d5338,_0x21772d)=>_0x4d5338||!!_0x21772d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xb50d53}=this['_config'],_0x3eee2d=new _0xb50d53(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15d85d=_0x3eee2d['commentInputView'];return _0x3eee2d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15d85d,'value',(_0x115b88,_0x2fca1a,_0x2f3937)=>!!_0x2f3937||_0x115b88&&!_0x2fca1a),_0x15d85d['on']('submit',(_0x35757e,_0xa0fd30)=>{this['fire']('addComment',_0xa0fd30),_0x15d85d['editor']['setData']('');}),_0x15d85d['on']('cancel',()=>this['focus']()),_0x15d85d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3eee2d;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x46d0e8,_0x5a97c4,_0xb1b4fc,_0x3fe9f3){super(_0x46d0e8,_0x5a97c4,_0xb1b4fc,_0x3fe9f3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2f0e81=>_0x2f0e81&&_0x2f0e81[0x0]?_0x2f0e81[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1c368f,_0x524688)=>{let _0x1e293f='';for(const _0x531940 of _0x1c368f)_0x1e293f+='<p>'+ls(_0x531940['content'],_0x531940['color'])+'</p>';return _0x524688?_0x1e293f:ti(_0x1e293f,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3fe9f3['SuggestionView'](_0x46d0e8,_0x5a97c4,{'formatDateTime':_0x3fe9f3['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 _0x21b847=this['bindTemplate'],_0x5ae256=[this['suggestionView']];return this['commentsListView']&&_0x5ae256['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5ae256['push'](this['commentThreadInputView']),_0x5ae256['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x21b847['if']('isActive','ck-suggestion-wrapper--active'),_0x21b847['to']('type',_0x2970b4=>'ck-suggestion-'+_0x2970b4),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':_0x21b847['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5ae256};}['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 _0x5d96fb{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4dc3bd,_0x35ae56,_0x4b14dc){super(_0x4dc3bd),this['_model']=_0x35ae56,this['_config']=_0x4b14dc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x35ae56),this['acceptButton']=this['_createButton'](c(_0x4dc3bd,'Accept\x20suggestion'),_0x4b0d8e,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4dc3bd,'Discard\x20suggestion'),_0x3d8b20,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x36bf97(_0x4dc3bd,_0x35ae56['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4f2284([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3f3afb(),this['keystrokes']=new _0x1b48cf(),this['focusCycler']=new _0x69c8d1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x591ad4=>_0x591ad4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5a3f59=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5a3f59['innerHTML']=this['description'],this['on']('change:description',(_0x20b989,_0x46efdf,_0x4fbd28)=>{_0x5a3f59['innerHTML']=_0x4fbd28;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xd86d87=this['bindTemplate'],_0x5bba45=[{'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':_0xd86d87['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xd86d87['to']('authoredAt',_0xd49c0b=>this['_config']['formatDateTime'](_0xd49c0b))}]}]},{'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']&&_0x5bba45['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':_0x5bba45}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x31f1cf,_0x25d0f0,_0x2987d9,_0x5cc070,_0x56c081){const _0x2ebccd=new _0x1a3695(this['locale']);return _0x2ebccd['set']({'label':_0x31f1cf,'icon':_0x25d0f0,'tooltip':!0x0,'tooltipPosition':_0x56c081}),_0x2ebccd['extendTemplate']({'attributes':{'class':_0x2987d9}}),_0x2ebccd['on']('execute',()=>{this['fire'](_0x5cc070,this['_model']['id']);}),_0x2ebccd;}['_setupKeyboardNavigation'](){const _0x58b969=this['element'];this['keystrokes']['listenTo'](_0x58b969);for(const _0x6f565d of this['focusables'])this['focusTracker']['add'](_0x6f565d['element']),this['keystrokes']['listenTo'](_0x6f565d['element']);this['keystrokes']['set']('enter',(_0x584b3b,_0x4fa606)=>{_0x58b969===_0x584b3b['target']&&(this['focusCycler']['focusFirst'](),_0x4fa606());}),this['keystrokes']['set']('esc',(_0x56dc20,_0x21a4b5)=>{_0x58b969!==_0x56dc20['target']&&(this['focus'](),_0x21a4b5());});}}class d extends _0x17dcce{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x247faa,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ff9f3){super(_0x1ff9f3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x51157f=this['editor']['config'];_0x51157f['define']('trackChanges.SuggestionThreadView',fe),_0x51157f['define']('trackChanges.SuggestionView',we),_0x51157f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x51157f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5a8c6b,_0x41db8a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x573044,_0x147416]of this['_handleControllerBuffer']){const _0x236816=this['_suggestionToController']['has'](_0x573044);_0x236816||_0x147416?_0x236816&&_0x147416&&this['_destroyController'](_0x573044):this['_initializeController'](_0x573044);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5a8c6b,_0x41db8a);}['init'](){const _0x5e7bdf=this['editor'],_0x3ae76f=_0x5e7bdf['plugins']['get']('TrackChangesEditing'),_0x179b41=_0x5e7bdf['plugins']['get']('Annotations'),_0x4f848a=_0x5e7bdf['plugins']['get']('EditorAnnotations'),_0x4e2e54=_0x5e7bdf['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4f848a['addSourceCollector'](()=>{const _0x177d92=[];for(const [_0x2f409d,_0x5e203c]of Array['from'](this['_suggestionToController'])){const _0x100199=_0x2f409d['getAllAdjacentSuggestions'](),_0x5c6746=[];for(const _0x1f682b of _0x100199){if(!_0x1f682b['isInContent'])continue;if(_0x1f682b['isMultiRange']){_0x5c6746['push'](..._0x1f682b['getRanges']());continue;}const _0x191d5b=_0x1f682b['getFirstRange']();if(_0x5c6746['length']>0x0){const _0x3e652d=_0x5c6746[0x0]['getJoined'](_0x191d5b);if(_0x3e652d){_0x5c6746[0x0]=_0x3e652d;continue;}}_0x5c6746['push'](_0x191d5b);}_0x177d92['push']([_0x5e203c['view'],_0x5c6746]);}return _0x177d92;}),this['listenTo'](_0x3ae76f,'suggestionLoaded',(_0x355f9c,_0xb18ffd)=>{this['listenTo'](_0xb18ffd,'change:previous',(_0x3363df,_0x43ca33,_0x55eec5,_0x1c1b8a)=>{_0xb18ffd['isInContent']&&(null==_0x55eec5?(this['_updateController'](_0x1c1b8a['head']),this['_handleSuggestionControllerDelayed'](_0xb18ffd,!0x1)):(this['_updateController'](_0x55eec5['head']),null==_0x1c1b8a&&this['_handleSuggestionControllerDelayed'](_0xb18ffd,!0x0)));}),null!==_0xb18ffd['previous']?this['_updateController'](_0xb18ffd['head']):this['_handleSuggestionControllerDelayed'](_0xb18ffd,!0x1);}),this['listenTo'](_0x3ae76f,'suggestionUnloaded',(_0xb7f35a,_0xc6df3a,_0x40e7b5)=>{this['stopListening'](_0xc6df3a,'change:previous'),this['_handleControllerBuffer']['delete'](_0xc6df3a),this['_suggestionToController']['has'](_0xc6df3a)&&this['_destroyController'](_0xc6df3a),_0x40e7b5&&this['_updateController'](_0x40e7b5['head']);}),this['listenTo'](_0x3ae76f,'suggestionChanged',(_0x5e45ce,_0x5571a5)=>{this['_updateController'](_0x5571a5);}),this['listenTo'](_0x179b41,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e2e54,'addComment',(_0x219368,{threadId:_0x39cd04,isFromAdapter:_0x3664ef})=>{if(_0x3664ef||!_0x3ae76f['hasSuggestion'](_0x39cd04))return;const _0x76a992=_0x3ae76f['getSuggestion'](_0x39cd04);this['_suggestionToController']['get'](_0x76a992)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x26039c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x188c5d;for(const _0xe7b029 in _0x26039c){const _0x30d45e=_0xe7b029,_0x5f367e=_0x26039c[_0x30d45e];if('trackChangesLicenseKeyValid'==_0x5f367e||'trackChangesLicenseKeyInvalid'==_0x5f367e||'trackChangesLicenseKeyExpired'==_0x5f367e||'trackChangesLicenseKeyDomainLimit'==_0x5f367e||'trackChangesLicenseKeyNotAllowed'==_0x5f367e||'trackChangesLicenseKeyEvaluationLimit'==_0x5f367e||'trackChangesLicenseKeyTrialLimit'==_0x5f367e||'trackChangesLicenseKeyUsageLimit'==_0x5f367e){delete _0x26039c[_0x30d45e],_0x188c5d=_0x5f367e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x188c5d&&_0x26039c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x188c5d&&_0x26039c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x188c5d&&_0x26039c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x188c5d&&_0x26039c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x188c5d&&_0x26039c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x188c5d&&_0x26039c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x188c5d&&_0x26039c['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2e61d4=this['editor']['plugins']['get']('Annotations'),_0x4a43d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcd7545=Array['from'](_0x2e61d4['activeAnnotations'],_0x22976b=>_0x22976b['innerView'])['filter'](_0x380983=>this['_viewToController']['has'](_0x380983)),_0x2f57ee=[];for(const _0x14fe34 of _0xcd7545){const _0x183f1c=this['_viewToController']['get'](_0x14fe34)['model']['getAllAdjacentSuggestions']();_0x2f57ee['push'](..._0x183f1c['reduce']((_0x3e984d,_0x416f3b)=>[..._0x3e984d,..._0x416f3b['getMarkerNames']()],[]));}_0x4a43d6['activeMarkers']=_0x2f57ee;}['_addUIComponentsToFactory'](){const _0x474de5=this['editor'],_0x2f5cef=_0x474de5['locale'],_0x59a20f=c(_0x2f5cef,'Track\x20changes'),_0x31ab76=new _0x4effc3([{'type':'switchbutton','model':new _0x3a31fd({'withText':!0x0,'isToggleable':!0x0,'label':_0x59a20f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a31fd({'withText':!0x0,'label':c(_0x2f5cef,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a31fd({'withText':!0x0,'label':c(_0x2f5cef,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a31fd({'withText':!0x0,'label':c(_0x2f5cef,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a31fd({'withText':!0x0,'label':c(_0x2f5cef,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x474de5['plugins']['has']('TrackChangesPreview')&&_0x31ab76['addMany']([{'type':'separator'},{'type':'button','model':new _0x3a31fd({'withText':!0x0,'label':c(_0x2f5cef,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x529dd4 of _0x31ab76)if(ke(_0x529dd4)){const _0x16eac4=_0x474de5['commands']['get'](_0x529dd4['model']['commandName']);_0x529dd4['model']['bind']('isOn','isEnabled')['to'](_0x16eac4,'value','isEnabled');}_0x474de5['ui']['componentFactory']['add']('trackChanges',_0x18c3e2=>this['_createToolbarButton'](_0x18c3e2,_0x31ab76,_0x59a20f)),_0x474de5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x23ec53=>this['_createMenuBarMenu'](_0x23ec53,_0x31ab76,_0x59a20f));}['_createToolbarButton'](_0x5b5910,_0x2a8934,_0x1eb8b4){const _0xc5fbe1=_0x497697(_0x5b5910,_0x398ea0),_0x5298ac=this['editor']['commands']['get']('trackChanges');_0xc5fbe1['buttonView']['set']({'tooltip':_0x1eb8b4,'label':_0x1eb8b4,'icon':_0x5a92b1}),_0xc5fbe1['buttonView']['bind']('isOn')['to'](_0x5298ac,'value'),_0xc5fbe1['buttonView']['on']('execute',()=>{_0x5298ac['execute'](),this['editor']['editing']['view']['focus']();}),_0xc3788b(_0xc5fbe1,_0x2a8934,{'role':'menu'});const _0x389b4f=[];for(const _0x4e27cb of _0x2a8934)ke(_0x4e27cb)&&_0x389b4f['push'](this['editor']['commands']['get'](_0x4e27cb['model']['commandName']));const _0x5dac3b=_0xc5fbe1['buttonView'];return _0x5dac3b['actionView']['unbind']('isEnabled'),_0x5dac3b['arrowView']['unbind']('isEnabled'),_0x5dac3b['actionView']['bind']('isEnabled')['to'](_0x5298ac,'isEnabled'),_0x5dac3b['arrowView']['bind']('isEnabled')['toMany'](_0x389b4f,'isEnabled',(..._0x371e03)=>_0x371e03['some'](_0x1f0037=>_0x1f0037)),_0xc5fbe1['on']('execute',_0x1a93bc=>{this['editor']['execute'](_0x1a93bc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xc5fbe1;}['_createMenuBarMenu'](_0x20e90d,_0x383e11,_0x5b980e){const _0xc3e92a=new _0x3100e6(_0x20e90d),_0x1a5e34=this['editor']['commands']['get']('trackChanges');_0xc3e92a['buttonView']['set']({'label':_0x5b980e,'icon':_0x5a92b1});const _0x5ecf77=new _0x19d0d1(_0x20e90d);for(const _0x1787b6 of _0x383e11){if('separator'==_0x1787b6['type']){_0x5ecf77['items']['add'](new _0x4870f0(_0x20e90d));continue;}const _0x336740=new _0x5c58d4(_0x20e90d,_0xc3e92a),_0x4260d8=new _0x1e4034(_0x20e90d),_0x404914=_0x1787b6['model'];_0x4260d8['bind'](...Object['keys'](_0x404914))['to'](_0x404914),_0x4260d8['delegate']('execute')['to'](_0xc3e92a),_0x4260d8['on']('execute',()=>{this['editor']['execute'](_0x404914['commandName']),this['editor']['editing']['view']['focus']();}),_0x336740['children']['add'](_0x4260d8),_0x5ecf77['items']['add'](_0x336740);}return _0xc3e92a['bind']('isEnabled')['to'](_0x1a5e34,'isEnabled'),_0xc3e92a['panelView']['children']['add'](_0x5ecf77),_0xc3e92a;}['_initializeController'](_0x21a5ee){const _0x4002c3=this['editor'],_0x50d145=_0x4002c3['config'],_0xe5c7c2=_0x4002c3['plugins']['get']('Annotations'),_0x297f10=_0x4002c3['plugins']['get']('CommentsRepository'),_0x4e2db9=_0x4002c3['plugins']['get']('EditorAnnotations'),_0x54e85=_0x4002c3['plugins']['get'](_0x247faa)['me'],_0x5898e3=_0x50d145['get']('trackChanges')['SuggestionThreadView'],_0x51656a=_0x50d145['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2ec1c6,CommentThreadInputView:_0x1958fe}=_0x4002c3['plugins']['get']('CommentsUI');let _0x59a22e,_0x2da2ce,_0x54a714;this['_annotationViews']['has'](_0x21a5ee['id'])?(_0x2da2ce=this['_annotationViews']['get'](_0x21a5ee['id']),_0x59a22e=_0x2da2ce['mainView']):(_0x59a22e=new _0x5898e3(_0x4002c3['locale'],_0x21a5ee,_0x54e85,{'disableComments':this['_disableComments'],'editorConfig':{..._0x50d145['get']('comments.editorConfig'),'licenseKey':_0x50d145['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x50d145['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x50d145['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x50d145['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x322169(_0x50d145['get']('locale')),'CommentView':_0x50d145['get']('comments')['CommentView'],'CommentsListView':_0x2ec1c6,'CommentThreadInputView':_0x1958fe,'SuggestionView':_0x51656a}),_0x59a22e['suggestionView']['acceptButton']['on']('execute',()=>{_0x4002c3['editing']['view']['focus']();}),_0x59a22e['suggestionView']['discardButton']['on']('execute',()=>{_0x4002c3['editing']['view']['focus']();}),_0x2da2ce=_0xe5c7c2['createAnnotationView'](this['editor']['locale'],_0x59a22e),_0x2da2ce['bind']('isDirty')['to'](_0x59a22e,'isDirty'),_0x2da2ce['bind']('length')['to'](_0x59a22e),_0x2da2ce['bind']('type')['to'](_0x59a22e,'type',_0x2eb885=>'suggestion-'+_0x2eb885),_0x59a22e['on']('escape',()=>{_0x54a714['fire']('escape');}),this['_annotationViews']['set'](_0x21a5ee['id'],_0x2da2ce));const _0x30b295=_0x297f10['createCommentThreadController'](_0x21a5ee['commentThread'],_0x59a22e),_0x4f3e2d=new pe(_0x4002c3,_0x21a5ee,_0x59a22e,_0x30b295),_0x362383=_0x21a5ee['getAllAdjacentSuggestions']()['filter'](_0x1dcdf6=>_0x1dcdf6['isInContent']);_0x59a22e['descriptionParts']=_0x4002c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x362383),this['_suggestionToController']['set'](_0x21a5ee,_0x4f3e2d),this['_viewToController']['set'](_0x59a22e,_0x4f3e2d),_0x54a714=_0xe5c7c2['createAnnotation']({'view':_0x2da2ce,'target':()=>{const _0x4d8d1f=[],_0x284842=_0x21a5ee['getAllAdjacentSuggestions']()['filter'](_0x3834e2=>_0x3834e2['isInContent']);for(const _0x2663a6 of _0x284842)_0x4d8d1f['push'](..._0x2663a6['getMarkers']());return _0x2f966f(_0x4002c3['editing'],_0x4d8d1f);},'type':()=>'suggestion-'+_0x4f3e2d['view']['type']}),_0x297f10['_bindAnnotationToEditors'](_0x59a22e,_0x54a714),_0xe5c7c2['add'](_0x54a714),_0x4e2db9['registerAnnotation'](_0x54a714);}['_destroyController'](_0x21ca2a){const _0x5962e0=this['editor']['plugins']['get']('CommentsRepository'),_0x34c5c5=this['editor']['plugins']['get']('Annotations'),_0x10178=this['_suggestionToController']['get'](_0x21ca2a),_0x266085=_0x10178['view'],_0x25a71f=_0x34c5c5['getByInnerView'](_0x266085);_0x5962e0['_unbindEditors'](_0x266085),_0x25a71f&&_0x34c5c5['remove'](_0x25a71f),this['_suggestionToController']['delete'](_0x21ca2a),this['_viewToController']['delete'](_0x266085),_0x10178['destroy']();}['_updateController'](_0x586277){if(!_0x586277['isInContent']||!this['_suggestionToController']['has'](_0x586277))return;const _0x1b333e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a43bf=this['_suggestionToController']['get'](_0x586277),_0x5146d6=_0x586277['getAllAdjacentSuggestions']();_0x4a43bf['view']['descriptionParts']=_0x1b333e['descriptionFactory']['getDescriptions'](_0x5146d6);}['destroy'](){for(const _0x4b60e5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4b60e5);for(const _0x1e897d of this['_annotationViews']['values']())_0x1e897d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5991c5){return'model'in _0x5991c5;}class k extends _0x17dcce{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1b6b9e){this['editor']['plugins']['get'](p)['adapter']=_0x1b6b9e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4b8ab4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4b8ab4);}['getSuggestions']({skipNotAttached:_0x1128cb=!0x1,toJSON:_0x33708f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1128cb,'toJSON':_0x33708f});}['getSuggestion'](_0x3e0868){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3e0868);}}const w=['Pagination'];class T extends _0x17dcce{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4f1a1d=this['editor'];if(_0x4f1a1d['config']['define']('trackChangesData.editorCreator',_0x240893=>{const _0x237b1c=_0x4f1a1d['model']['document']['getRootNames']()['reduce']((_0x179118,_0x5db76c)=>(_0x179118[_0x5db76c]='',_0x179118),{});return _0x4f1a1d['constructor']['create'](_0x237b1c,_0x240893);}),'function'!=typeof _0x4f1a1d['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a483c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xb938ab){return N(this['editor'],!0x0,_0xb938ab);}['getDataWithDiscardedSuggestions'](_0xb2962d){return N(this['editor'],!0x1,_0xb2962d);}}class D extends _0x17dcce{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2280b8){function _0x37966a(_0x55f2ce){return _0x55f2ce['map'](_0xb402f0=>String['fromCharCode'](_0xb402f0))['join']('');}super(_0x2280b8),this['result']='end',_0x2280b8[_0x37966a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37966a([0x76,0x69,0x65,0x77])][_0x37966a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37966a([0x61,0x75,0x74,0x6f]),_0x2280b8[_0x37966a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x37966a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37966a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x37966a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x37966a([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x1a4008){return void 0x0!==_0x1a4008['getRootsAttributes'];}async function N(_0x4bf5f8,_0x1e3ddd,_0xd42e26){const _0x59b8fe=_0x39b514(_0x4bf5f8,w);_0x59b8fe['plugins']['push'](p,D),_0x59b8fe['rootsAttributes']=Fe(_0x4bf5f8)?_0x4bf5f8['getRootsAttributes']():void 0x0;const _0x4d5875=document['createDocumentFragment'](),_0x29c4aa=_0x4bf5f8['config']['get']('trackChangesData')['editorCreator'],_0x1814a4=await _0x29c4aa(_0x59b8fe,()=>function(_0x5c9a16){const _0x26556d=document['createElement']('div');return _0x5c9a16['appendChild'](_0x26556d),_0x26556d;}(_0x4d5875));!function(_0x3d490c,_0xfb697){const _0x362b0a=_0x3d490c['model']['document']['getRootNames']()['reduce']((_0xd9603a,_0x9d6a55)=>(_0xd9603a[_0x9d6a55]=_0x3d490c['data']['get']({'rootName':_0x9d6a55}),_0xd9603a),{}),_0x5f0f11=_0x3d490c['plugins']['get']('Users')['users']['map'](_0x39093c=>({'id':_0x39093c['id'],'name':_0x39093c['name']})),_0x3c0c1b=_0x3d490c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf0bc93=_0x3d490c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x463436=_0xfb697['plugins']['get']('Users'),_0x386c47=_0xfb697['plugins']['get']('TrackChangesEditing'),_0x52d4c9=_0xfb697['plugins']['get']('CommentsRepository');for(const _0x591e53 of _0x52d4c9['getCommentThreads']())_0x591e53['remove']();for(const _0x57d9c9 of _0x5f0f11)_0x463436['getUser'](_0x57d9c9['id'])||_0x463436['addUser'](_0x57d9c9);_0x463436['me']||_0x463436['useAnonymousUser']();for(const _0xbb5bcf of _0xf0bc93)_0x52d4c9['addCommentThread'](_0xbb5bcf);for(const _0x3c0834 of _0x3c0c1b)_0x386c47['addSuggestionData'](_0x3c0834);_0xfb697['data']['set'](_0x362b0a);}(_0x4bf5f8,_0x1814a4),_0x1814a4['execute'](_0x1e3ddd?'acceptAllSuggestions':'discardAllSuggestions');const _0x7f0f58=Fe(_0x1814a4)?_0x1814a4['getFullData'](_0xd42e26):_0x1814a4['data']['get'](_0xd42e26);return await _0x1814a4['destroy'](),_0x7f0f58;}class Me extends _0x5d96fb{['options'];constructor(_0x4092fb,_0x449b8b){super(_0x4092fb),this['options']=_0x449b8b,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'](_0x3fe741,_0x261dc0){if(!this['element'])return;const _0x2a9231=[];for(const [_0x46b58a,_0x550048]of _0x3fe741){const _0x1182ed=document['createElement']('div');_0x1182ed['setAttribute']('data-ck-root-name',_0x46b58a),_0x1182ed['className']=_0x550048['classes']+'\x20ck-track-changes-preview__root-container',_0x1182ed['innerHTML']=_0x550048['content'],_0x2a9231['push'](_0x1182ed);}_0x261dc0(this['element'],_0x2a9231),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2fea5f{constructor(_0x359c52){super(_0x359c52),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3dac3b=this['editor'],_0x803f1d=_0x3dac3b['locale'],_0x1a11df=_0x3dac3b['plugins']['get']('Dialog');let _0x4f71af;const _0x27b736=function(_0x2e1cc6){const _0x5d6a56={};if('editables'in _0x2e1cc6['ui']['view']){for(const [_0x3c90e9,_0x589889]of Object['entries'](_0x2e1cc6['ui']['view']['editables']))_0x5d6a56[_0x3c90e9]=_0x589889['element'];}else _0x5d6a56[_0x2e1cc6['model']['document']['getRootNames']()[0x0]]=_0x2e1cc6['ui']['view']['editable']['element'];return _0x5d6a56;}(_0x3dac3b),_0xdcc9e9=function(_0x23af95){let _0x6719d5=0x0;for(const _0x1040a6 of Object['values'](_0x23af95))_0x6719d5=Math['max'](_0x6719d5,_0x1040a6['getBoundingClientRect']()['width']);let _0x52f536=0x0;for(const _0x378479 of Object['values'](_0x23af95))_0x52f536+=_0x378479['getBoundingClientRect']()['height'];const _0x47f32c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4ef654=Math['min'](_0x52f536,_0x47f32c);return{'width':_0x6719d5,'height':_0x4ef654};}(_0x27b736);_0x1a11df['show']({'id':'finalContentPreview','title':c(_0x803f1d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x803f1d,{'dialogRects':_0xdcc9e9}),'onHide':()=>{_0x4f71af['detachFromDom']();},'onShow':()=>{_0x3dac3b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x39bc23=>{const _0x6a3208=this['_standarizeRootsData'](_0x39bc23,_0x3dac3b,_0x27b736);_0x1a11df['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x6a3208,_0x3dac3b['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f71af=new _0x3358fd(_0x803f1d,[_0x1a11df['view']]),_0x4f71af['attachToDom'](),_0x4f71af['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3dac3b['once']('destroy',()=>{_0x4f71af['detachFromDom']();});const _0x2c939b=_0x1a11df['view']['headerView']['class'];_0x1a11df['view']['headerView']['class']=_0x2c939b?_0x2c939b+'\x20ck-reset_all':'ck-reset_all',_0x1a11df['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1a11df['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x37e0e2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1dfe93=_0x37e0e2['previewMode'],_0x88b452={};if('$labels'===_0x1dfe93){for(const _0x24d9d8 of _0x37e0e2['getMergeFieldsIds']())_0x88b452[_0x24d9d8]=_0x37e0e2['getLabel'](_0x24d9d8)||_0x24d9d8;}else{const _0x5bedac='$defaultValues'===_0x1dfe93?_0x37e0e2['getDefaultValues']():_0x37e0e2['getDataSetValues'](_0x1dfe93,!0x0);for(const _0x3bc5d0 of Object['entries'](_0x5bedac)){const [_0x2d812d,_0x4dbe18]=_0x3bc5d0;_0x88b452[_0x2d812d]=null!==_0x4dbe18?_0x4dbe18:_0x37e0e2['getLabel'](_0x2d812d)||_0x2d812d;}}return{'mergeFieldsData':_0x88b452};}['_standarizeRootsData'](_0x4a41b8,_0xd94080,_0x287da8){let _0x24e8a0;if('string'==typeof _0x4a41b8){const _0x183d26=_0xd94080['model']['document']['getRootNames']()[0x0];_0x24e8a0={[_0x183d26]:_0x4a41b8};}else _0x24e8a0=_0x4a41b8;const _0x4c74c9=this['_fixMediaEmbeds'](_0x24e8a0,_0xd94080),_0x78c948=function(_0x3466c6,_0x395624){for(const [_0x3606b0,_0x1a1cdf]of _0x3466c6)_0x1a1cdf['classes']=_0x395624[_0x3606b0]['classList']['value']['replace']('ck-focused','');return _0x3466c6;}(this['_sortRoots'](_0xd94080)['reduce']((_0x161e2e,_0x527e3d)=>(_0x161e2e['push']([_0x527e3d,{'content':_0x4c74c9[_0x527e3d],'classes':''}]),_0x161e2e),[]),_0x287da8);return _0x78c948;}['_fixMediaEmbeds'](_0x50be64,_0x207dc7){if(!_0x207dc7['plugins']['has']('MediaEmbedEditing'))return _0x50be64;const _0x3214f6=_0x207dc7['plugins']['get']('MediaEmbedEditing');for(const [_0xeecbaf,_0xc579e7]of Object['entries'](_0x50be64)){const _0x976ac1=document['createElement']('div');_0x976ac1['innerHTML']=_0xc579e7,(_0x976ac1['querySelectorAll']('figure.media')['forEach'](_0x2e34c5=>{const _0xbffca2=_0x2e34c5['querySelector']('oembed');if(_0xbffca2){const _0x42a56=_0xbffca2['getAttribute']('url');if(_0x42a56){const _0x68bf80=_0x3214f6['registry']['getMediaViewElement'](new _0x3623df(_0x207dc7['editing']['view']['document']),_0x42a56,{'elementName':'','renderForEditingView':!0x0}),_0xfc318f=document['createElement']('div');_0xfc318f['classList']['add']('ck-media__wrapper'),_0x68bf80['render'](_0xfc318f,_0x207dc7['editing']['view']['domConverter']),_0xbffca2['replaceWith'](_0xfc318f);}}}),_0x50be64[_0xeecbaf]=_0x976ac1['innerHTML']);}return _0x50be64;}['_sortRoots'](_0x24d0b5){if(!function(_0x3708b8){return void 0x0!==_0x3708b8['getRootsAttributes'];}(_0x24d0b5))return _0x24d0b5['model']['document']['getRootNames']();const _0x4a1e60=[],_0x213b1b=new Map();for(const _0x4b9d9a of _0x24d0b5['model']['document']['getRootNames']()){const _0x2f99a0=_0x24d0b5['editing']['view']['getDomRoot'](_0x4b9d9a)['getClientRects']()['item'](0x0);_0x4a1e60['push'](_0x4b9d9a),_0x213b1b['set'](_0x4b9d9a,_0x2f99a0);}return _0x4a1e60['sort']((_0x139b4a,_0x174773)=>{const _0x340536=_0x213b1b['get'](_0x139b4a),_0x40c02d=_0x213b1b['get'](_0x174773);return _0x340536['y']-_0x40c02d['y']||_0x340536['x']-_0x40c02d['x'];}),_0x4a1e60;}}class te extends _0x17dcce{static get['requires'](){return[T,_0x25bbc7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16eaf1){super(_0x16eaf1),_0x16eaf1['commands']['add']('previewFinalContent',new re(this['editor'])),_0x16eaf1['config']['define']('trackChanges.preview.renderFunction',(_0x4487a0,_0x497c2c)=>{for(const _0x157ed7 of _0x497c2c)_0x4487a0['appendChild'](_0x157ed7);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x5aed8f,Plugin as _0x159581,PendingActions as _0xa7d8f2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x281979,ObservableMixin as _0x1c3a2a,uid as _0x4adad1,priorities as _0x5b0b49,insertToPriorityArray as _0x3a1467,logWarning as _0x3ac62c,getEnvKeystrokeText as _0x190f4e,FocusTracker as _0x411045,KeystrokeHandler as _0x39057c,Collection as _0x3a1819}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x255fc4,IconCancel as _0x55351e,IconTrackChanges as _0x2b2b02}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x16318d,ViewCollection as _0x413220,FocusCycler as _0x5dbed0,ViewModel as _0x2efb49,createDropdown as _0x5a3954,SplitButtonView as _0x18f9d3,addListToDropdown as _0x6ad703,MenuBarMenuView as _0x5f0b44,MenuBarMenuListView as _0x1a6e2d,ListSeparatorView as _0x2b253d,MenuBarMenuListItemView as _0x88bd30,MenuBarMenuListItemButtonView as _0x39ecdf,BodyCollection as _0x558bee,Dialog as _0x2ec598}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x446c4e,hashObject as _0x13f274,surroundingMarkersDetector as _0x3a51b7,FOCUS_ANNOTATION_KEYSTROKE as _0x28a231,AriaDescriptionView as _0xe7cc15,setupThreadKeyboardNavigation as _0x2e580c,trimHtml as ti,UserView as _0x32732e,LateFocusButtonView as _0x24e13f,getDateTimeFormatter as _0xefdbc1,getAllMarkersDomElementsSorted as _0x57aaf5,sanitizeEditorConfig as _0x5502fd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4e8365,LiveRange as _0x31bd77,LivePosition as _0x37a8ec,DowncastWriter as _0x21e3ff}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x25f4ad,toWidget as _0xcf9d12}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x588df1,set as _0x45514f,isEqual as _0x382b4a,unset as _0x1b1cda,omit as Et}from'es-toolkit/compat';import{Delete as _0x38f06d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1692c2,ShiftEnter as _0x2f0e86}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x5aed8f{['_enabledCommands'];constructor(_0x34ce9c,_0x135c77){super(_0x34ce9c),this['_enabledCommands']=_0x135c77,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 _0x2b06f7 of this['editor']['commands']['commands']())_0x2b06f7['affectsData']&&!this['_enabledCommands']['has'](_0x2b06f7)&&_0x2b06f7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4de874 of this['editor']['commands']['commands']())_0x4de874['affectsData']&&!this['_enabledCommands']['has'](_0x4de874)&&_0x4de874['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5aed8f{['_suggestions'];constructor(_0x2c9c62,_0x338ade){super(_0x2c9c62),this['_suggestions']=_0x338ade,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36b571){const _0x55dfa6=this['_suggestions']['get'](_0x36b571);if(!_0x55dfa6)throw new _0x281979('track-changes-accept-suggestion-not-found',this);const _0x572b83=_0x55dfa6['getRanges']();this['editor']['model']['canEditAt'](_0x572b83)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x55dfa6);}}class R extends _0x5aed8f{['_suggestions'];constructor(_0xb3ab17,_0x5e1a32){super(_0xb3ab17),this['_suggestions']=_0x5e1a32,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1fb093){const _0x1862c9=this['_suggestions']['get'](_0x1fb093);if(!_0x1862c9)throw new _0x281979('track-changes-discard-suggestion-not-found',this);const _0x1f54b6=_0x1862c9['getRanges']();this['editor']['model']['canEditAt'](_0x1f54b6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1862c9);}}function ls(_0x4adcb2,_0x577360){let _0x1d80c4='';return _0x1d80c4+=_0x4adcb2['split']('*')['map']((_0x3fa54a,_0x36f2f0)=>_0x36f2f0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3fa54a)+'</span>':nn(_0x3fa54a))['join'](''),_0x577360&&(_0x1d80c4+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x577360['value']+'\x22\x20title=\x22'+_0x577360['title']+'\x22></span>'),_0x1d80c4;}function nn(_0x4990b6){const _0x93f6ee=document['createElement']('span');return _0x93f6ee['innerText']=_0x4990b6,_0x93f6ee['innerHTML'];}function ts(_0x250bde){return _0x250bde['sort']((_0x58dd4b,_0x18f60d)=>'deletion'==_0x58dd4b['type']&&'deletion'!=_0x18f60d['type']?-0x1:'deletion'!=_0x58dd4b['type']&&'deletion'==_0x18f60d['type']?0x1:0x0);}function Xt(_0x41e859,_0x1adfb1){let _0x26dd75,_0x2e1545=0x0;const _0x12b7fa=[],_0xb4115=_0x1adfb1['schema'];for(;_0x2e1545<_0x41e859['length'];){const _0x2a8176=_0x41e859[_0x2e1545],_0xdd7016=_0x41e859[_0x2e1545+0x1];_0x26dd75||(_0x26dd75=_0x1adfb1['createPositionBefore'](_0x2a8176)),on(_0x1adfb1,_0x2a8176,_0xdd7016)||(_0x12b7fa['push'](_0x1adfb1['createRange'](_0x26dd75,_0xb4115['isObject'](_0x2a8176)?_0x1adfb1['createPositionAfter'](_0x2a8176):_0x1adfb1['createPositionAt'](_0x2a8176,'end'))),_0x26dd75=null),_0x2e1545++;}return _0x12b7fa;}function on(_0x4575cc,_0x19e064,_0x28c699){if(!_0x28c699)return!0x1;const _0xf1a1dd=_0x4575cc['createPositionAfter'](_0x19e064),_0x3d2e2b=_0x4575cc['createPositionBefore'](_0x28c699);return _0xf1a1dd['isTouching'](_0x3d2e2b);}function rs(_0x4dedd9,_0x4be82f,_0xc19727){for(;_0xc19727['length'];){const _0x5b3c18=_0xc19727['splice'](0x0,0x64);_0x4dedd9['change'](()=>{for(const _0x29e689 of _0x5b3c18)_0x29e689['isInContent']&&_0x4be82f['execute'](_0x29e689['id']);});}}class x extends _0x5aed8f{['_command'];['_suggestions'];constructor(_0x21df6f,_0x8a3c9b,_0x53c87a){super(_0x21df6f),this['_command']=_0x8a3c9b,this['_suggestions']=_0x53c87a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x330b68=Array['from'](this['_suggestions']['values']())['some'](_0x5953ff=>_0x5953ff['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x330b68;}['execute'](){const _0x168dd1=ts(Array['from'](this['_suggestions']['values']()));for(const _0x29b271 of _0x168dd1){const _0x9a2991=_0x29b271['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9a2991))return;}rs(this['editor']['model'],this['_command'],_0x168dd1);}}class E extends _0x5aed8f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x52d6ee,_0x5b648f,_0x198049){super(_0x52d6ee),this['_command']=_0x5b648f,this['_suggestions']=_0x198049,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2bf1fa=this['editor']['model']['document']['selection'],_0x1f953e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4215d2,_0x36cfef){const _0x7bba8e=Array['from'](_0x4215d2['getRanges']()),_0xc552be=new Set();for(const _0x9ab3f2 of _0x36cfef)if(_0x9ab3f2['isInContent']){for(const _0x442c47 of _0x7bba8e)for(const _0x22b6c9 of _0x9ab3f2['getRanges']())(_0x442c47['isIntersecting'](_0x22b6c9)||_0x4215d2['isCollapsed']&&!_0x9ab3f2['isMultiRange']&&_0x9ab3f2['next']&&_0x22b6c9['end']['isTouching'](_0x442c47['start']))&&_0xc552be['add'](_0x9ab3f2);}return _0xc552be;}(_0x2bf1fa,_0x1f953e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x44bcce=ts(Array['from'](this['_selectedSuggestions']));for(const _0x490899 of _0x44bcce){const _0x26775c=_0x490899['getRanges']();if(!this['editor']['model']['canEditAt'](_0x26775c))return;}rs(this['editor']['model'],this['_command'],_0x44bcce);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1c3a2a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3f279f,_0x19e9db){super(),this['id']=_0x19e9db['id'],this['type']=_0x19e9db['type'],this['subType']=_0x19e9db['subType']||null,this['author']=_0x19e9db['author'],this['creator']=_0x19e9db['creator']||_0x19e9db['author'],this['isExternal']=Boolean(_0x19e9db['attributes']&&_0x19e9db['attributes']['@external']),this['data']=null,this['_model']=_0x3f279f,this['_onAccept']=_0x19e9db['onAccept'],this['_onDiscard']=_0x19e9db['onDiscard'],this['_onAttributesChange']=_0x19e9db['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x19e9db['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 _0x1e23c5=this;for(;_0x1e23c5['previous'];)_0x1e23c5=_0x1e23c5['previous'];return _0x1e23c5;}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'](_0x41958e){this['_markerNames']['add'](_0x41958e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b90d2=>this['_model']['markers']['get'](_0x2b90d2))['filter'](_0x1c87bc=>_0x1c87bc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x18c656=>{for(const _0x30c3e2 of this['getMarkers']())_0x18c656['removeMarker'](_0x30c3e2);}),this['_markerNames']['clear']();}['removeMarker'](_0x5e2d34){this['_model']['change'](_0x2a4f94=>{_0x2a4f94['removeMarker'](_0x5e2d34);}),this['_markerNames']['delete'](_0x5e2d34);}['addRange'](_0x308462){const _0x3f0625='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x3f0625),this['_model']['change'](_0x20a2a5=>{_0x20a2a5['addMarker'](_0x3f0625,{'range':_0x308462,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4fc9cb){for(const _0x4e708b of this['getRanges']())if(_0x4e708b['isIntersecting'](_0x4fc9cb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x450bb0=>_0x450bb0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16b330,_0x59b85e)=>[..._0x16b330,..._0x59b85e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x532ae0=this['getRanges']();if(0x1!=_0x532ae0['length'])return null;const _0x5447a4=_0x532ae0[0x0],_0x416c38=_0x5447a4['start']['nodeAfter'],_0x51a4b9=_0x5447a4['end']['nodeBefore'];return _0x416c38 instanceof _0x4e8365?_0x416c38!=_0x51a4b9?null:_0x416c38: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 _0x1fe757=[];let _0x432e9e=this['head'];for(;_0x432e9e;)_0x1fe757['push'](_0x432e9e),_0x432e9e=_0x432e9e['next'];return _0x1fe757;}['setAttribute'](_0x2365f1,_0x32d6e1){const _0x22103a=_0x588df1(this['attributes']);_0x45514f(_0x22103a,_0x2365f1,_0x32d6e1),_0x382b4a(_0x22103a,this['attributes'])||(this['attributes']=_0x22103a,this['_onAttributesChange'](_0x22103a));}['removeAttribute'](_0x3105ff){const _0xfd48e4=_0x588df1(this['attributes']);_0x1b1cda(_0xfd48e4,_0x3105ff),_0x382b4a(_0xfd48e4,this['attributes'])||(this['attributes']=_0xfd48e4,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 _0x4adad1()['substr'](0x1,0x5);}}function c(_0x4bae39,_0x471a25,_0x354184){const _0x214f31=_0x4bae39['t'],t=_0x4bae39['t'];switch(_0x471a25){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',_0x354184);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x354184);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x354184);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x354184);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x354184);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',_0x354184);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x354184);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',_0x354184);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x354184);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x354184);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x354184);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x354184);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x354184);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x354184);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x354184);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x354184);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x354184);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x354184);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x354184);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x354184);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x354184);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x354184);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x354184);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x354184);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'},_0x354184);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x354184);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x354184);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x354184);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x354184);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x354184);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'},_0x354184);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x354184);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x354184);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x354184);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x354184);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'},_0x354184);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x354184);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'},_0x354184);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'},_0x354184);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x354184);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'},_0x354184);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x354184);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'},_0x354184);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x354184);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x354184);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'},_0x354184);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x354184);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 _0x214f31({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x354184);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x214f31({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x354184);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x354184);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'},_0x354184);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'},_0x354184);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'},_0x354184);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x471a25;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x494a77,_0x200340){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x494a77,this['_locale']=_0x200340;}['getDescriptions'](_0x42c7aa){const _0x471888=[],_0x101e8f=new Set(),_0x19d96=new Set();for(let _0x485bd9=0x0;_0x485bd9<_0x42c7aa['length'];_0x485bd9++){const _0xd2c0bd=_0x42c7aa[_0x485bd9];if(!_0xd2c0bd['isInContent'])continue;const _0x25d61a=this['_handleCustomCallbackDescription'](_0xd2c0bd);if(_0x25d61a){if(null!=_0xd2c0bd['subType']){if(_0x101e8f['has'](_0xd2c0bd['subType']))continue;_0x101e8f['add'](_0xd2c0bd['subType']);}_0x471888['push'](_0x25d61a);}else{if('attribute'!=_0xd2c0bd['type'])'insertion'!=_0xd2c0bd['type']&&'deletion'!=_0xd2c0bd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x471888,_0xd2c0bd,_0x42c7aa[_0x485bd9+0x1]);else{const _0x50c202=_0xd2c0bd['data']['key'];if(_0x19d96['has'](_0x50c202))continue;_0x19d96['add'](_0xd2c0bd['data']['key']),_0x50c202==u?this['_handleRenameSuggestionDescription'](_0x471888,_0xd2c0bd):this['_handleAttributeSuggestionDescription'](_0x471888,_0xd2c0bd);}}}return this['_resolveDescriptionItems'](_0x471888);}['registerDescriptionCallback'](_0x5c4ef1){this['_customCallbacks']['push'](_0x5c4ef1);}['registerElementLabel'](_0x21e25e,_0x45b261,_0x27eb53=_0x5b0b49['normal']){'function'==typeof _0x21e25e?_0x3a1467(this['_itemLabelsCallbacks'],{'matchingCallback':_0x21e25e,'label':_0x45b261,'priority':_0x27eb53}):this['_itemLabels']['set'](_0x21e25e,_0x45b261);}['registerAttributeLabel'](_0x3d57ff,_0x449e1e){this['_attributeLabels']['set'](_0x3d57ff,_0x449e1e);}['getItemLabel'](_0x18a219,_0x1ae084=0x1){let _0x5209dc;for(const _0x3219af of this['_itemLabelsCallbacks'])if(_0x3219af['matchingCallback'](_0x18a219)){_0x5209dc=_0x3219af['label'];break;}return _0x5209dc||(_0x5209dc=this['_itemLabels']['get'](_0x18a219['name'])),_0x5209dc?_0x5209dc(_0x1ae084):0x1!==_0x1ae084?_0x1ae084+'\x20'+_0x18a219['name']+'s':''+_0x18a219['name'];}['_addDescriptionItems'](_0x3a6dc9,_0x48e8d7){const _0x5595b2=_0x48e8d7['getFirstRange']()['getWalker'](),_0x2ceb21='insertion'==_0x48e8d7['type']?'add':'remove';for(const _0x1c14b0 of _0x5595b2){const _0x5a3554=_0x1c14b0['item'],_0x1c3f75=_0x3a6dc9[_0x3a6dc9['length']-0x1];if(_0x5a3554['is']('$textProxy'))_0x1c3f75&&_0x1c3f75['type']['indexOf']('Container')>-0x1&&_0x3a6dc9['pop'](),_0x1c3f75&&'text'==_0x1c3f75['type']?_0x1c3f75[_0x2ceb21]+=_0x5a3554['data']:_0x3a6dc9['push']({'type':'text','add':'add'==_0x2ceb21?_0x5a3554['data']:'','remove':'remove'==_0x2ceb21?_0x5a3554['data']:''});else{if(this['_schema']['isObject'](_0x5a3554)){const _0x11c861=_0x5a3554;if(_0x1c3f75&&_0x1c3f75['type']['indexOf']('Container')>-0x1&&_0x3a6dc9['pop'](),'elementEnd'==_0x1c14b0['type'])continue;_0x1c3f75&&_0x1c3f75['type']==_0x2ceb21+'Object'&&_0x1c3f75['element']['name']==_0x11c861['name']?_0x1c3f75['quantity']++:_0x3a6dc9['push']({'type':_0x2ceb21+'Object','element':_0x11c861,'quantity':0x1}),_0x5595b2['skip'](_0xf3750e=>!('elementEnd'==_0xf3750e['type']&&_0xf3750e['item']==_0x5a3554));}else{if(this['_schema']['checkChild'](_0x5a3554,'$text')||_0x5a3554['is']('element','softBreak')){const _0x169391=_0x5a3554;if('add'==_0x2ceb21&&'elementStart'==_0x1c14b0['type']||'remove'==_0x2ceb21&&'elementEnd'==_0x1c14b0['type'])continue;if(_0x1c3f75&&-0x1==_0x1c3f75['type']['indexOf']('Container')){'text'==_0x1c3f75['type']&&(_0x1c3f75[_0x2ceb21]+='\x0a');continue;}let _0x4e06a5;if(_0x4e06a5='add'==_0x2ceb21?_0x169391['nextSibling']&&!this['_schema']['isObject'](_0x169391['nextSibling'])?_0x169391['nextSibling']:null:_0x169391['previousSibling']&&!this['_schema']['isObject'](_0x169391['previousSibling'])?_0x169391['previousSibling']:null,_0x169391['isEmpty']||_0x4e06a5&&_0x4e06a5['isEmpty']){const _0x381fe7=_0x4e06a5&&_0x4e06a5['isEmpty']?_0x4e06a5:_0x169391;_0x1c3f75&&_0x1c3f75['type']==_0x2ceb21+'EmptyContainer'&&_0x1c3f75['element']['name']==_0x381fe7['name']?_0x1c3f75['quantity']++:_0x3a6dc9['push']({'type':_0x2ceb21+'EmptyContainer','element':_0x381fe7,'quantity':0x1});}else _0x3a6dc9['push']({'type':_0x2ceb21+'Container','element':_0x169391});}}}}}['_resolveDescriptionItems'](_0x5eba6d){const _0x19bdee=this['_locale'],_0x1b8933=[],_0x275841=[],_0x2dc5bd=[];for(const _0x43a4ff of _0x5eba6d)switch(_0x43a4ff['type']){case'text':if(_0x43a4ff['add']=_0x43a4ff['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x43a4ff['remove']=_0x43a4ff['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x43a4ff['add']&&''!=_0x43a4ff['remove']){_0x1b8933['push']({'type':'replace','content':c(_0x19bdee,'REPLACE_TEXT',['\x22'+_0x43a4ff['remove']+'\x22','\x22'+_0x43a4ff['add']+'\x22'])});continue;}if(null!=_0x43a4ff['add']['match'](/^ +$/)){_0x1b8933['push']({'type':'insertion','content':c(_0x19bdee,'*Insert:*\x20%0',c(_0x19bdee,'ELEMENT_SPACE',_0x43a4ff['add']['length']))});continue;}if(null!=_0x43a4ff['remove']['match'](/^ +$/)){_0x1b8933['push']({'type':'deletion','content':c(_0x19bdee,'*Remove:*\x20%0',c(_0x19bdee,'ELEMENT_SPACE',_0x43a4ff['remove']['length']))});continue;}if(''!=_0x43a4ff['add']){_0x1b8933['push']({'type':'insertion','content':c(_0x19bdee,'*Insert:*\x20%0','\x22'+_0x43a4ff['add']+'\x22')});continue;}_0x1b8933['push']({'type':'deletion','content':c(_0x19bdee,'*Remove:*\x20%0','\x22'+_0x43a4ff['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1b8933['push']({'type':'insertion','content':c(_0x19bdee,'*Insert:*\x20%0',this['getItemLabel'](_0x43a4ff['element'],_0x43a4ff['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1b8933['push']({'type':'deletion','content':c(_0x19bdee,'*Remove:*\x20%0',this['getItemLabel'](_0x43a4ff['element'],_0x43a4ff['quantity']))});continue;case'addContainer':_0x1b8933['push']({'type':'insertion','content':c(_0x19bdee,'*Split:*\x20%0',this['getItemLabel'](_0x43a4ff['element'],_0x43a4ff['quantity']))});continue;case'removeContainer':_0x1b8933['push']({'type':'deletion','content':c(_0x19bdee,'*Merge:*\x20%0',this['getItemLabel'](_0x43a4ff['element'],_0x43a4ff['quantity']))});continue;case'addFormat':_0x275841['push'](_0x43a4ff['key']);continue;case'removeFormat':_0x2dc5bd['push'](_0x43a4ff['key']);continue;default:_0x1b8933['push'](_0x43a4ff);}if(_0x275841['length']){const _0x322741=_0x275841['map'](_0x3442b5=>this['_attributeLabels']['has'](_0x3442b5)?this['_attributeLabels']['get'](_0x3442b5):_0x3442b5)['join'](',\x20');_0x1b8933['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x322741)});}if(_0x2dc5bd['length']){const _0x316fd3=_0x2dc5bd['map'](_0x599324=>this['_attributeLabels']['has'](_0x599324)?this['_attributeLabels']['get'](_0x599324):_0x599324)['join'](',\x20');_0x1b8933['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x316fd3)});}return _0x1b8933;}['_handleCustomCallbackDescription'](_0x5f21c0){for(const _0x3c690c of this['_customCallbacks']){const _0x2884fb=_0x3c690c(_0x5f21c0);if(_0x2884fb&&'type'in _0x2884fb)return _0x2884fb;}}['_handleAttributeSuggestionDescription'](_0x11e281,_0x5a58bf){const _0x550e92=_0x5a58bf['data'],_0x107d5b=void 0x0===_0x550e92['newValue']?'removeFormat':'addFormat';_0x11e281['push']({'type':_0x107d5b,'key':_0x550e92['key']});}['_handleRenameSuggestionDescription'](_0x3c9808,_0x1d251b){_0x3c9808['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1d251b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a06b4,_0x4cccbd,_0x31c20e){if(this['_addDescriptionItems'](_0x1a06b4,_0x4cccbd),_0x31c20e&&_0x31c20e['getFirstRange']()&&!_0x4cccbd['getFirstRange']()['end']['isEqual'](_0x31c20e['getFirstRange']()['start'])){const _0x509e69=_0x1a06b4[_0x1a06b4['length']-0x1],_0x11a340='insertion'==_0x4cccbd['type']?'add':'remove';_0x509e69&&'text'==_0x509e69['type']&&(_0x509e69[_0x11a340]+='\x0a');}}}class U extends _0x159581{['afterInit'](){const _0x5dd180=this['editor'],_0x7d8eb1=_0x5dd180['plugins']['get']('TrackChangesEditing');_0x5dd180['commands']['get']('showAIAssistant')&&_0x7d8eb1['enableCommand']('showAIAssistant');}}class V extends _0x159581{['afterInit'](){const _0x7fcb8f=this['editor'],_0x417438=_0x7fcb8f['locale'];if(!_0x7fcb8f['plugins']['has']('AlignmentEditing'))return;const _0xd722c7=_0x7fcb8f['plugins']['get']('TrackChangesEditing');_0xd722c7['enableDefaultAttributesIntegration']('alignment'),_0xd722c7['registerBlockAttribute']('alignment'),_0xd722c7['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x417438,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2801e1=this['editor'],_0x1d81b5=_0x2801e1['locale'];_0x2801e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a47c0=>{if('formatBlock'!=_0x5a47c0['type'])return;const {data:_0x175954}=_0x5a47c0;if(_0x175954&&'alignment'==_0x175954['commandName']){const _0x39f840=_0x175954['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1d81b5,'*Format:*\x20%0',function(_0x125a0b){switch(_0x125a0b){case'left':return c(_0x1d81b5,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1d81b5,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1d81b5,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1d81b5,'FORMAT_JUSTIFY_TEXT');}}(_0x39f840))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x159581{['afterInit'](){const _0x2a6184=this['editor'],_0x5d6906=_0x2a6184['plugins']['get']('TrackChangesEditing'),_0x3e14cd=_0x2a6184['locale'];for(const _0xf299f2 of Qt){if(!_0x2a6184['plugins']['has'](_0xf299f2))continue;const _0x2ae949=_0xf299f2['slice'](0x0,-0x7)['toLowerCase'](),_0x4bad6b='FORMAT_'+_0x2ae949['toUpperCase']();_0x5d6906['enableDefaultAttributesIntegration'](_0x2ae949),_0x5d6906['registerInlineAttribute'](_0x2ae949),_0x5d6906['descriptionFactory']['registerAttributeLabel'](_0x2ae949,c(_0x3e14cd,_0x4bad6b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48095d=this['editor'],_0x4060a6=_0x48095d['locale'],_0x4d92e5=_0x48095d['plugins']['get']('TrackChangesEditing');function _0x1232b3(_0x29e0d3,_0x482821){_0x4d92e5['descriptionFactory']['registerDescriptionCallback'](_0x27cdf5=>{if('formatInline'!=_0x27cdf5['type'])return;const {data:_0x13f91d}=_0x27cdf5;return _0x13f91d&&_0x13f91d['commandName']===_0x29e0d3?_0x13f91d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4060a6,'*Format:*\x20%0',_0x482821)}:{'type':'format','content':c(_0x4060a6,'*Remove\x20format:*\x20%0',_0x482821)}:void 0x0;});}_0x1232b3('bold',c(_0x4060a6,'FORMAT_BOLD')),_0x1232b3('italic',c(_0x4060a6,'FORMAT_ITALIC')),_0x1232b3('underline',c(_0x4060a6,'FORMAT_UNDERLINE')),_0x1232b3('code',c(_0x4060a6,'FORMAT_CODE')),_0x1232b3('strikethrough',c(_0x4060a6,'FORMAT_STRIKETHROUGH')),_0x1232b3('subscript',c(_0x4060a6,'FORMAT_SUBSCRIPT')),_0x1232b3('superscript',c(_0x4060a6,'FORMAT_SUPERSCRIPT'));}}class G extends _0x159581{['afterInit'](){const _0x525dec=this['editor'],_0x41e908=_0x525dec['locale'];if(!_0x525dec['plugins']['has']('BlockQuoteEditing'))return;const _0x49cab0=_0x525dec['plugins']['get']('TrackChangesEditing'),_0x15fe20=this['editor']['commands']['get']('blockQuote');_0x49cab0['enableCommand']('blockQuote',(_0x4f3a49,_0x11d161={})=>{const _0x5b189d=this['editor']['model']['document']['selection'],_0xe3c038=_0x11d161&&void 0x0!==_0x11d161['forceValue']?_0x11d161['forceValue']:!_0x15fe20['value'];let _0x1bdd12=[];if(_0xe3c038){const _0x4b8fe3=Array['from'](_0x5b189d['getSelectedBlocks']())['filter'](_0x3fb471=>Yt(_0x3fb471)||function(_0x2f903c,_0x12bc6e){const _0x1b0fc8=_0x12bc6e['checkChild'](_0x2f903c['parent'],'blockQuote'),_0x488b73=_0x12bc6e['checkChild'](['$root','blockQuote'],_0x2f903c);return _0x1b0fc8&&_0x488b73;}(_0x3fb471,this['editor']['model']['schema']));_0x1bdd12=Xt(_0x4b8fe3,_0x525dec['model']);}else{const _0xb8d6a=Array['from'](_0x5b189d['getSelectedBlocks']())['filter'](_0x459b31=>Yt(_0x459b31));_0x1bdd12=Xt(_0xb8d6a,_0x525dec['model']);}_0x525dec['model']['change'](()=>{for(const _0x4894b2 of _0x1bdd12)_0x49cab0['markBlockFormat'](_0x4894b2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xe3c038}]});});}),_0x49cab0['descriptionFactory']['registerDescriptionCallback'](_0x386d71=>{const {data:_0x559a1d}=_0x386d71;if(_0x559a1d&&'blockQuote'==_0x559a1d['commandName']){const _0x385ab9=c(_0x41e908,'ELEMENT_BLOCK_QUOTE');return _0x559a1d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x41e908,'*Set\x20format:*\x20%0',_0x385ab9)}:{'type':'format','content':c(_0x41e908,'*Remove\x20format:*\x20%0',_0x385ab9)};}});}}function Yt(_0x18e637){return'blockQuote'==_0x18e637['parent']['name'];}class L extends _0x159581{['afterInit'](){const _0x44bdef=this['editor'],_0x4d87d6=_0x44bdef['locale'],_0x11f333=_0x44bdef['plugins']['get']('TrackChangesEditing');_0x44bdef['plugins']['has']('BookmarkEditing')&&(_0x11f333['enableCommand']('insertBookmark'),_0x11f333['enableDefaultAttributesIntegration']('updateBookmark'),_0x11f333['registerBlockAttribute']('bookmarkId'),_0x11f333['descriptionFactory']['registerDescriptionCallback'](_0x11304c=>{if('insertion'!=_0x11304c['type']&&'deletion'!=_0x11304c['type']&&'attribute'!=_0x11304c['type'])return;const _0x4c4e7c=_0x11304c['getContainedElement']();if(null==_0x4c4e7c)return;if(!_0x4c4e7c['is']('element','bookmark'))return;const _0x4b29d2=_0x4c4e7c['getAttribute']('bookmarkId');if('insertion'==_0x11304c['type'])return{'type':'insertion','content':c(_0x4d87d6,'*Insert:*\x20%0','\x22'+_0x4b29d2+'\x22\x20'+c(_0x4d87d6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x11304c['type'])return{'type':'deletion','content':c(_0x4d87d6,'*Remove:*\x20%0','\x22'+_0x4b29d2+'\x22\x20'+c(_0x4d87d6,'ELEMENT_BOOKMARK'))};const {data:_0x57145a}=_0x11304c;if(!_0x57145a||'bookmarkId'!=_0x57145a['key'])return;return{'type':'format','content':c(_0x4d87d6,'*Set\x20bookmark:*\x20%0','\x22'+_0x57145a['newValue']+'\x22')};}));}}class J extends _0x159581{['afterInit'](){const _0x3c5deb=this['editor'];_0x3c5deb['plugins']['has']('CaseChange')&&(_0x3c5deb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3c5deb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3c5deb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x159581{['afterInit'](){const _0xfdaf51=this['editor'];_0xfdaf51['commands']['get']('ckbox')&&_0xfdaf51['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x159581{['afterInit'](){const _0x2c92fc=this['editor'];if(!_0x2c92fc['plugins']['has']('CodeBlock'))return;const _0x35f54c=_0x2c92fc['plugins']['get']('TrackChangesEditing'),_0x46bf6e=_0x2c92fc['locale'],_0x1cdc80=_0x2c92fc['config']['get']('codeBlock')['languages'],_0x2356b7=_0x2c92fc['commands']['get']('codeBlock');_0x35f54c['enableCommand']('indentCodeBlock'),_0x35f54c['enableCommand']('outdentCodeBlock'),_0x35f54c['enableCommand']('codeBlock',(_0x4bb643,_0x46f25c={})=>{const _0x53dd54=_0x2c92fc['model'],_0x3cff63=_0x2c92fc['model']['document']['selection'],_0x480df0=_0x46f25c&&void 0x0!==_0x46f25c['forceValue']?_0x46f25c['forceValue']:!_0x2356b7['value'];let _0x12292;_0x46f25c['language']||(_0x46f25c['language']=_0x1cdc80[0x0]['language']),_0x12292=_0x480df0?Array['from'](_0x3cff63['getSelectedBlocks']())['filter'](_0x1e3afd=>oo(_0x1e3afd)||function(_0x1bbf31,_0x1daf92){if(_0x1bbf31['is']('rootElement')||_0x1daf92['isLimit'](_0x1bbf31))return!0x1;return _0x1daf92['checkChild'](_0x1bbf31['parent'],'codeBlock');}(_0x1e3afd,_0x53dd54['schema'])):Array['from'](_0x3cff63['getSelectedBlocks']())['filter'](_0x4c7c13=>oo(_0x4c7c13));const _0x2f0522=Xt(_0x12292,_0x53dd54);_0x53dd54['change'](()=>{for(const _0x3714ff of _0x2f0522)_0x35f54c['markBlockFormat'](_0x3714ff,{'commandName':'codeBlock','commandParams':[{..._0x46f25c,'forceValue':_0x480df0}],'formatGroupId':'blockName'});});}),(_0x35f54c['descriptionFactory']['registerElementLabel']('codeBlock',_0x4de01a=>c(_0x46bf6e,'ELEMENT_CODE_BLOCK',_0x4de01a)),_0x35f54c['descriptionFactory']['registerDescriptionCallback'](_0x1bca0b=>{if('formatBlock'!=_0x1bca0b['type'])return;const _0x587b48=_0x46bf6e['t'],{data:_0x3a05a7}=_0x1bca0b;if(!_0x3a05a7||'codeBlock'!=_0x3a05a7['commandName'])return;const _0xc1eccf=_0x3a05a7['commandParams'][0x0]['language'],_0x53d14e=_0x587b48(_0x1cdc80['find'](_0x10e775=>_0x10e775['language']===_0xc1eccf)['label'])['toLowerCase']();return _0x3a05a7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x46bf6e,'*Set\x20format:*\x20%0',c(_0x46bf6e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x53d14e+')')}:{'type':'format','content':c(_0x46bf6e,'*Remove\x20format:*\x20%0',c(_0x46bf6e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x214016){return'codeBlock'==_0x214016['name'];}class q extends _0x159581{['afterInit'](){const _0x47eb24=this['editor'];if(!_0x47eb24['plugins']['has']('CommentsEditing'))return;_0x47eb24['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x43cb11,_0x5a1b56,_0x400da3){const _0x473971=[];for(const _0x33534c of _0x5a1b56['getItems']())_0x33534c['hasAttribute'](_0x43cb11)&&_0x473971['push'](_0x400da3['createRangeOn'](_0x33534c));return _0x473971;}function De(_0x1d9436,_0xe798d2,{showActiveMarker:_0x343bda=!0x0}={}){const _0x3e0886=_0x1d9436['plugins']['get']('TrackChangesEditing');return(_0x3508c9,_0x10b6e8,_0x2d760e)=>{if(!_0x2d760e['consumable']['test'](_0x10b6e8['markerRange'],_0x3508c9['name']))return;const _0x13b120=_0x10b6e8['markerRange']['getWalker'](),_0xd2ac70=_0x10b6e8['markerRange']['start'],_0x4ea8f8=_0x1d9436['model']['schema'];let _0x217282=null,_0xffcae3=null,_0x5f40a0=!0x1,_0x4ae070=!0x1;for(const _0x5a2d6c of _0x13b120){const _0x2e6d29=_0x5a2d6c['item'];_0x5f40a0=_0x5f40a0||_0x4ea8f8['isContent'](_0x2e6d29);const _0x41f985=_0x2d760e['mapper']['toViewElement'](_0x2e6d29);if(_0x41f985&&_0x41f985['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5a2d6c['type']&&(_0x4ea8f8['isBlock'](_0x2e6d29)&&!_0x4ea8f8['isLimit'](_0x2e6d29)&&(_0x2e6d29['nextSibling']||_0xd2ac70['isAtEnd']?_0x217282&&_0x217282['parent']==_0x2e6d29||(_0x217282=_0x2e6d29,_0x5306c5(_0x5a2d6c['previousPosition']),_0x4ae070=!0x0):_0xffcae3=_0xffcae3||_0x5a2d6c['previousPosition']));}function _0x5306c5(_0x290c92){const {authorId:_0x311eaf}=_0x3e0886['_splitMarkerName'](_0x10b6e8['markerName']),_0x3d3649=_0x2d760e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe798d2,'data-author-id':_0x311eaf}),_0x15dbcd=_0x2d760e['mapper']['toViewPosition'](_0x290c92);_0x343bda&&_0x3e0886['activeMarkers']['includes'](_0x10b6e8['markerName'])&&_0x2d760e['writer']['addClass']('ck-suggestion-marker--active',_0x3d3649),_0x2d760e['writer']['insert'](_0x15dbcd,_0x3d3649),_0x2d760e['mapper']['bindElementToMarker'](_0x3d3649,_0x10b6e8['markerName']);}_0x5f40a0||_0x4ae070||!_0xffcae3||_0x5306c5(_0xffcae3);};}class z extends _0x159581{static get['requires'](){return[_0x38f06d];}['init'](){const _0x10818b=this['editor'],_0x505697=_0x10818b['plugins']['get']('TrackChangesEditing');_0x505697['enableCommand']('delete');const _0x538fe0=_0x10818b['commands']['get']('deleteForward');_0x505697['enableCommand']('deleteForward',(_0x45a9ed,_0x4d299d={})=>{const _0x30aef6=_0x10818b['model']['createSelection'](_0x10818b['model']['document']['selection']);_0x30aef6['isCollapsed']&&_0x10818b['model']['modifySelection'](_0x30aef6,{'direction':'forward','unit':_0x4d299d['unit']});const _0x324664=_0x30aef6['getFirstRange'](),_0x4c608e=_0x31bd77['fromRange'](_0x324664);let _0x2c013f;_0x45a9ed(_0x4d299d),_0x2c013f='$graveyard'==_0x4c608e['root']['rootName']?_0x10818b['model']['createRange'](_0x324664['start']):_0x10818b['model']['createRange'](_0x4c608e['start'],_0x4c608e['end']),_0x4c608e['detach'](),_0x10818b['model']['enqueueChange'](_0x538fe0['buffer']['batch'],_0x14e2e0=>{_0x538fe0['buffer']['lock'](),_0x14e2e0['setSelection'](_0x14e2e0['createRange'](_0x2c013f['end'])),_0x538fe0['buffer']['unlock']();});}),_0x10818b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x10818b,'merge'),{'priority':'high'}),_0x10818b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4779ad,_0x5c579b,_0x5a0da1)=>{_0x5a0da1['options']['showSuggestionHighlights']&&De(_0x10818b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4779ad,_0x5c579b,_0x5a0da1);},{'priority':'high'}),_0x10818b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x263293,_0x245dca,_0x2b556f)=>{const _0x40cd87=_0x2b556f['mapper']['markerNameToElements'](_0x245dca['markerName']);if(_0x40cd87){for(const _0xb73205 of _0x40cd87)_0xb73205['is']('uiElement')&&(_0x2b556f['mapper']['unbindElementFromMarkerName'](_0xb73205,_0x245dca['markerName']),_0x2b556f['writer']['remove'](_0xb73205));}},{'priority':'high'});}}class W extends _0x159581{['afterInit'](){const _0x3c69f4=this['editor'];if(!_0x3c69f4['plugins']['has']('ListEditing'))return;const _0x958e8f=_0x3c69f4['locale'],_0x2a34c4=_0x3c69f4['plugins']['get']('TrackChangesEditing'),_0x143f6c=_0x3c69f4['plugins']['has']('TodoListEditing'),_0x359950=!!_0x3c69f4['config']['get']('list.multiBlock');function _0x5a7b12(_0x358651){return{'type':'format','content':''+c(_0x958e8f,'*Set\x20format:*\x20%0',_0x358651)};}function _0x1333bf(_0x2a7231){return{'type':'format','content':''+c(_0x958e8f,'*Remove\x20format:*\x20%0',_0x2a7231)};}_0x2a34c4['enableDefaultAttributesIntegration']('numberedList'),_0x2a34c4['enableDefaultAttributesIntegration']('bulletedList'),_0x2a34c4['enableDefaultAttributesIntegration']('customNumberedList'),_0x2a34c4['enableDefaultAttributesIntegration']('customBulletedList'),_0x2a34c4['enableDefaultAttributesIntegration']('indentList'),_0x2a34c4['enableDefaultAttributesIntegration']('outdentList'),_0x2a34c4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2a34c4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2a34c4['registerBlockAttribute']('listItemId'),_0x2a34c4['registerBlockAttribute']('listType'),_0x2a34c4['registerBlockAttribute']('listIndent'),_0x359950&&(_0x2a34c4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2a34c4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x143f6c&&(_0x2a34c4['enableDefaultAttributesIntegration']('todoList'),_0x2a34c4['enableDefaultAttributesIntegration']('checkTodoList'),_0x2a34c4['registerBlockAttribute']('todoListChecked'),_0x2a34c4['descriptionFactory']['registerDescriptionCallback'](_0x2613da=>{const {data:_0x58dadb}=_0x2613da;if(_0x58dadb&&'todoListChecked'==_0x58dadb['key'])return{'type':'format','content':_0x58dadb['newValue']?c(_0x958e8f,'*Check\x20item*'):c(_0x958e8f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4ca96a=>{if(_0x4ca96a['batch']['isUndo'])return!0x1;let _0x1843c7=!0x1;const _0x7a0abd=_0x2a34c4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb90560=>'todoListChecked'===_0x2a34c4['_getAttributeKey'](_0xb90560));for(const _0x184026 of _0x7a0abd){'todo'!=_0x184026['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2a34c4['_findSuggestions'](_0x184026['getFirstRange'](),'attribute')['find'](_0x4fbeab=>'listType'===_0x2a34c4['_getAttributeKey'](_0x4fbeab['suggestion']))||(_0x4ca96a['removeMarker'](_0x184026['getFirstMarker']()),_0x1843c7=!0x0));}return _0x1843c7;})),_0x2a34c4['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x958e8f,'FORMAT_INDENT'));const _0x23e5ae={'type':'format','content':''};_0x2a34c4['descriptionFactory']['registerDescriptionCallback'](_0x49880d=>{const {data:_0x273105}=_0x49880d;if(!_0x273105||'listType'!=_0x273105['key'])return;let _0x5cba3c=_0x49880d['head'];for(;_0x5cba3c;){if(_0x5cba3c['data']&&(('listStyle'==_0x5cba3c['data']['key']||'listMarkerStyle'==_0x5cba3c['data']['key'])&&(_0x5cba3c['data']['newValue']&&'default'!=_0x5cba3c['data']['newValue']||'default'!=_0x5cba3c['data']['oldValue']&&!_0x273105['newValue'])||!_0x359950&&_0x5cba3c['data']['key']==u))return _0x23e5ae;_0x5cba3c=_0x5cba3c['next'];}if(null==_0x273105['newValue'])switch(_0x273105['oldValue']){case'bulleted':return _0x1333bf(c(_0x958e8f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1333bf(c(_0x958e8f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1333bf(c(_0x958e8f,'ELEMENT_TODO_LIST'));}switch(_0x273105['newValue']){case'bulleted':return _0x5a7b12(c(_0x958e8f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a7b12(c(_0x958e8f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a7b12(c(_0x958e8f,'ELEMENT_TODO_LIST'));}}),_0x2a34c4['descriptionFactory']['registerDescriptionCallback'](_0x2310a6=>{const {data:_0x499d73}=_0x2310a6;if(_0x499d73&&'listIndent'==_0x499d73['key'])return null==_0x499d73['newValue']||null==_0x499d73['oldValue']&&0x0==_0x499d73['newValue']?_0x23e5ae:void 0x0;}),_0x2a34c4['descriptionFactory']['registerDescriptionCallback'](_0x5fa79=>{if('attribute'!=_0x5fa79['type'])return;const {data:_0x259f12}=_0x5fa79;if(!_0x259f12||'listItemId'!=_0x259f12['key'])return;const _0x44e41e=Te(_0x5fa79);return'newValue'==_0x44e41e?{'type':'format','content':c(_0x958e8f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x44e41e?{'type':'format','content':c(_0x958e8f,'*Split:*\x20list\x20item')}:_0x23e5ae;}),_0x3c69f4['model']['document']['registerPostFixer'](_0x324c04=>this['listItemIdFixer'](_0x324c04)),_0x3c69f4['model']['document']['registerPostFixer'](_0x3df655=>this['noTrackChangesFixer'](_0x3df655)),_0x3c69f4['model']['document']['on']('change:data',(_0xbda3aa,_0x3dd76b)=>{if(_0x3dd76b['isUndo']||!_0x3dd76b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x111e85){if(_0x111e85['batch']['isUndo']||!_0x111e85['batch']['isLocal'])return!0x1;let _0x3fc3bd=!0x1;const _0x607fec=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494008=>_0x494008['data']&&'listItemId'==_0x494008['data']['key'])['filter'](_0x269963=>_0x269963['data']['newValue']&&_0x269963['data']['oldValue']);for(const _0x4fde72 of _0x607fec)Te(_0x4fde72)||(_0x111e85['removeMarker'](_0x4fde72['getFirstMarker']()),_0x3fc3bd=!0x0);return _0x3fc3bd;}['noTrackChangesFixer'](_0xee02a3){if(_0xee02a3['batch']['isUndo']||!_0xee02a3['batch']['isLocal'])return!0x1;const _0x514f32=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x514f32['trackChangesCommand']['value'])return!0x1;let _0x3b853f=!0x1;const _0x1eee2e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4dc9c6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f4a02=>'attribute'==_0x3f4a02['type'])['filter'](_0x2a3963=>_0x1eee2e['includes'](_0x2a3963['attributeKey']));if(0x0==_0x4dc9c6['length'])return _0x3b853f;for(const _0x1f872 of _0x4dc9c6){const _0x3f7a92=_0x514f32['_findSuggestions'](_0x1f872['range'],'attribute')['filter'](_0x39dd31=>!_0x39dd31['meta']['isNextTo'])['map'](_0x15b4d3=>_0x15b4d3['suggestion'])['filter'](_0x4a23e0=>{const _0x1e0919=_0x514f32['_getAttributeKey'](_0x4a23e0);return _0x1eee2e['includes'](_0x1e0919);});if(_0x3f7a92['length']){for(const _0x32058d of _0x3f7a92)_0xee02a3['removeMarker'](_0x32058d['getFirstMarker']());_0x3b853f=!0x0;}}return _0x3b853f;}['assureChains'](){const _0x407203=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3043=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x56c4b6;const _0x12af76=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x238425=>{if(_0x238425['data']['oldRange']||!_0x238425['data']['newRange'])return null;if(!_0x238425['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xbacc7c}=_0x407203['_splitMarkerName'](_0x238425['name']);if(!_0x407203['hasSuggestion'](_0xbacc7c))return null;const _0x1e9472=_0x407203['getSuggestion'](_0xbacc7c);return _0x2d3043['includes'](_0x1e9472['data']['key']);})['map'](_0x4b5554=>{const {id:_0x4b2e26}=_0x407203['_splitMarkerName'](_0x4b5554['name']),_0x487d8a=_0x407203['getSuggestion'](_0x4b2e26);return _0x56c4b6=_0x487d8a['attributes']['groupId'],_0x487d8a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x12af76['size'])return;const _0x348ba1=_0x407203['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c37f2=>'attribute'==_0x3c37f2['type']&&_0x3c37f2['data']&&_0x2d3043['includes'](_0x3c37f2['data']['key'])&&_0x3c37f2['attributes']['groupId']!=_0x56c4b6)['map'](_0x50c6c5=>({'listItem':_0x50c6c5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x50c6c5['attributes']['groupId']})),_0x585e88=new Set();for(const {groupId:_0x531470,listItem:_0x3cbfad}of _0x348ba1)_0x12af76['has'](_0x3cbfad)&&_0x585e88['add'](_0x531470);for(const _0x582431 of _0x407203['getSuggestions']())_0x585e88['has'](_0x582431['attributes']['groupId'])&&_0x582431['setAttribute']('groupId',_0x56c4b6);}['_supportLegacySuggestions'](){const _0x3ffeeb=this['editor'],_0x22128=_0x3ffeeb['locale'],_0x395001=_0x3ffeeb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x395001['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x53272a,_0x5dda30){const _0x201d2d=[];for(let _0x58dc3c of _0x53272a)_0x58dc3c['start']['nodeAfter']===_0x58dc3c['end']['parent']&&(_0x58dc3c=_0x3ffeeb['model']['createRange'](_0x3ffeeb['model']['createPositionAt'](_0x58dc3c['start']['nodeAfter'],0x0))),_0x201d2d['push'](_0x58dc3c);_0x3ffeeb['model']['change'](_0x54da33=>{const _0x14d1be=_0x3ffeeb['model']['document']['selection'],_0x310e53=Array['from'](_0x14d1be['getRanges']())['map'](_0x3ebc4a=>_0x31bd77['fromRange'](_0x3ebc4a));_0x54da33['setSelection'](_0x201d2d),_0x3ffeeb['commands']['get'](_0x5dda30['commandName'])['refresh'](),_0x5dda30['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3ffeeb['execute'](_0x5dda30['commandName'],..._0x5dda30['commandParams']),_0x54da33['setSelection'](_0x310e53);for(const _0x366e54 of _0x310e53)_0x366e54['detach']();});}),_0x395001['descriptionFactory']['registerElementLabel'](function(_0x5638e7){const _0x2ec6c3=!_0x3ffeeb['model']['schema']['isObject'](_0x5638e7),_0xa5b5a=_0x5638e7['previousSibling'],_0x2157b6=_0x5638e7['nextSibling'],_0x3b479c=_0x5638e7['getAttribute']('listItemId'),_0x4da311=!_0xa5b5a||_0xa5b5a['getAttribute']('listItemId')!==_0x3b479c,_0x9bf0b1=!_0x2157b6||_0x2157b6['getAttribute']('listItemId')!==_0x3b479c;return _0x2ec6c3&&Boolean(_0x3b479c)&&_0x4da311&&_0x9bf0b1;},_0x4b6e5d=>c(_0x22128,'ELEMENT_LIST_ITEM',_0x4b6e5d));}['_registerLegacyDescription'](){const _0x364dfb=this['editor'],_0x408edb=_0x364dfb['locale'];function _0x595822(_0x54f28e){const _0x52878d=_0x364dfb['commands']['get']('bulletedList')['value'],_0x4db2d6=_0x364dfb['commands']['get']('numberedList')['value'];return'numberedList'===_0x54f28e?_0x52878d:_0x4db2d6;}_0x364dfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2df848){if('formatBlock'!=_0x2df848['type'])return;const {data:_0x5ce058}=_0x2df848;if(!_0x5ce058)return;let _0x20569b,_0x5a65d5,_0x1d5439,_0x2b1ece;switch(_0x5ce058['commandName']){case'bulletedList':_0x1d5439=_0x5ce058['commandParams'][0x0]['forceValue'],_0x2b1ece=_0x595822(_0x5ce058['commandName']),_0x20569b=_0x1d5439?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b1ece&&_0x364dfb['config']['get']('list.multiBlock')||(_0x20569b='*Change\x20to:*\x20%0'),_0x5a65d5={'type':'format','content':c(_0x408edb,_0x20569b,c(_0x408edb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d5439=_0x5ce058['commandParams'][0x0]['forceValue'],_0x2b1ece=_0x595822(_0x5ce058['commandName']),_0x20569b=_0x1d5439?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b1ece&&_0x364dfb['config']['get']('list.multiBlock')||(_0x20569b='*Change\x20to:*\x20%0'),_0x5a65d5={'type':'format','content':c(_0x408edb,_0x20569b,c(_0x408edb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x20569b='*Indent:*\x20%0',_0x5a65d5={'type':'format','content':c(_0x408edb,_0x20569b,c(_0x408edb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x20569b=function(_0x109817){const _0x4d50d3=_0x109817['getFirstRange']();let _0x4eb422=_0x4d50d3['start']['nodeAfter'];for(;_0x4eb422&&_0x4d50d3['containsItem'](_0x4eb422);){if(_0x4eb422['getAttribute']('listIndent')>0x0)return!0x1;_0x4eb422=_0x4eb422['nextSibling'];}return!0x0;}(_0x2df848)?c(_0x408edb,'*Format:*\x20remove\x20from\x20%0',c(_0x408edb,function(_0x30814a){return'ELEMENT_'+_0x30814a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2df848))):c(_0x408edb,'*Outdent:*\x20%0',c(_0x408edb,'ELEMENT_LIST_ITEM')),_0x5a65d5={'type':'format','content':_0x20569b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5ce058['multipleBlocks']&&(_0x20569b='*Merge:*\x20%0',_0x5a65d5={'type':'deletion','content':c(_0x408edb,_0x20569b,c(_0x408edb,'ELEMENT_LIST_ITEM'))});}return _0x5a65d5;});}}function Te(_0x22fe33){let _0x10f672=_0x22fe33['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10f672;){const _0x239a6d=_0x10f672['getAttribute']('listItemId');if(!_0x239a6d)return!0x1;if(_0x239a6d==_0x22fe33['data']['newValue'])return'newValue';if(_0x239a6d==_0x22fe33['data']['oldValue'])return'oldValue';_0x10f672=_0x10f672['previousSibling'];}return!0x1;}class Se extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3103df=this['editor']['config']['get']('list.properties'),_0x288264=this['editor']['plugins']['get']('TrackChangesEditing');_0x3103df['styles']&&(_0x288264['enableDefaultAttributesIntegration']('listStyle'),_0x288264['registerBlockAttribute']('listStyle')),_0x3103df['reversed']&&(_0x288264['enableDefaultAttributesIntegration']('listReversed'),_0x288264['registerBlockAttribute']('listReversed')),_0x3103df['startIndex']&&(_0x288264['enableDefaultAttributesIntegration']('listStart'),_0x288264['registerBlockAttribute']('listStart'));const _0x317c99={'type':'format','content':''};_0x288264['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x525973=this['editor']['locale'];_0x288264['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x525973,'FORMAT_LIST_REVERSED')),_0x288264['descriptionFactory']['registerDescriptionCallback'](_0x84c62f=>{const {data:_0x441f9b}=_0x84c62f;if(_0x441f9b&&'listReversed'==_0x441f9b['key'])return null==_0x441f9b['newValue']||0x0==_0x441f9b['newValue']&&null==_0x441f9b['oldValue']?_0x317c99:void 0x0;}),_0x288264['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x525973,'FORMAT_LIST_START')),_0x288264['descriptionFactory']['registerDescriptionCallback'](_0x1d7998=>{const {data:_0x1d6deb}=_0x1d7998;if(_0x1d6deb&&'listStart'==_0x1d6deb['key'])return null==_0x1d6deb['newValue']||0x1==_0x1d6deb['newValue']&&null==_0x1d6deb['oldValue']?_0x317c99:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4a747b=>{if(_0x4a747b['batch']['isUndo'])return!0x1;let _0x289d00=!0x1;const _0x81b8fd=_0x288264['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19145e=>{const _0x3ba4c8=_0x288264['_getAttributeKey'](_0x19145e);return'listStart'==_0x3ba4c8||'listReversed'==_0x3ba4c8;});for(const _0xb60e01 of _0x81b8fd){const _0x456678=_0xb60e01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x456678||'customNumbered'==_0x456678)continue;_0x288264['_findSuggestions'](_0xb60e01['getFirstRange'](),'attribute')['find'](_0xabd48d=>'listType'==_0x288264['_getAttributeKey'](_0xabd48d['suggestion']))||(_0x4a747b['removeMarker'](_0xb60e01['getFirstMarker']()),_0x289d00=!0x0);}return _0x289d00;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x26bd55){const _0xd6ef84=this['editor']['locale'],{data:_0x40183f}=_0x26bd55,_0x3d027c={'type':'format','content':''};if(!_0x40183f||'listStyle'!=_0x40183f['key'])return;if(!_0x40183f['oldValue'])return'default'==_0x40183f['newValue']?_0x3d027c:{'type':'format','content':''+c(_0xd6ef84,'*Set\x20format:*\x20%0',c(_0xd6ef84,this['_getTranslationKeyForListStyle'](_0x40183f['newValue'])))};if(!_0x40183f['newValue']){if('default'==_0x40183f['oldValue'])return _0x3d027c;let _0x52417b=_0x26bd55['head'];for(;_0x52417b;){if(_0x52417b['data']&&'listType'==_0x52417b['data']['key']&&_0x52417b['data']['newValue'])return _0x3d027c;_0x52417b=_0x52417b['next'];}return{'type':'format','content':''+c(_0xd6ef84,'*Remove\x20format:*\x20%0',c(_0xd6ef84,this['_getTranslationKeyForListStyle'](_0x40183f['oldValue'])))};}if('default'!=_0x40183f['newValue'])return{'type':'format','content':''+c(_0xd6ef84,'*Set\x20format:*\x20%0',c(_0xd6ef84,this['_getTranslationKeyForListStyle'](_0x40183f['newValue'])))};let _0xb93dc0=_0x26bd55['head'];for(;_0xb93dc0;){if(_0xb93dc0['data']&&'listType'==_0xb93dc0['data']['key']&&_0xb93dc0['data']['newValue']&&_0xb93dc0['data']['oldValue'])return _0x3d027c;_0xb93dc0=_0xb93dc0['next'];}return{'type':'format','content':c(_0xd6ef84,'*Set\x20format:*\x20%0',c(_0xd6ef84,'ELEMENT_'+_0x26bd55['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1e92d3=this['editor'],_0x552c64=_0x1e92d3['locale'];_0x1e92d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44de0d=>{if('formatBlock'!=_0x44de0d['type'])return;const {data:_0x50c5fb}=_0x44de0d;if(!_0x50c5fb)return;let _0x462f0c,_0x3df61a;switch(_0x50c5fb['commandName']){case'listStyle':_0x462f0c='*Change\x20to:*\x20%0',_0x3df61a={'type':'format','content':c(_0x552c64,_0x462f0c,c(_0x552c64,this['_getTranslationKeyForListStyle'](_0x50c5fb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x462f0c=_0x50c5fb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3df61a={'type':'format','content':c(_0x552c64,_0x462f0c)};break;case'listStart':_0x462f0c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3df61a={'type':'format','content':c(_0x552c64,_0x462f0c,_0x50c5fb['commandParams'][0x0]['startIndex'])};}return _0x3df61a;});}['_getTranslationKeyForListStyle'](_0x55dfa3){return'ELEMENT_'+function(_0x47ad00){if(_e['includes'](_0x47ad00))return'bulleted';if(Re['includes'](_0x47ad00))return'numbered';return null;}(_0x55dfa3)['toUpperCase']()+'_LIST_'+_0x55dfa3['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x159581{static get['requires'](){return[_0x1692c2];}['init'](){const _0x5a707a=this['editor'],_0x24ce9d=_0x5a707a['plugins']['get']('TrackChangesEditing'),_0x2e8f6d=_0x5a707a['commands']['get']('enter');_0x24ce9d['enableCommand']('enter',()=>{_0x5a707a['model']['change'](_0x8b4248=>{const _0x301da5=_0x5a707a['model']['document']['selection'],_0x4b2f87=_0x301da5['getFirstPosition'](),_0x218a9b=_0x31bd77['fromRange'](_0x301da5['getFirstRange']());if(_0x2e8f6d['enterBlock'](_0x8b4248)){const _0x34836a=_0x5a707a['model']['createPositionAt'](_0x4b2f87['parent']['nextSibling'],0x0),_0x4df5a7=_0x8b4248['createRange'](_0x4b2f87,_0x34836a);_0x24ce9d['markInsertion'](_0x4df5a7);}else _0x8b4248['setSelection'](_0x8b4248['createRange'](_0x218a9b['end']));_0x218a9b['detach'](),_0x2e8f6d['fire']('afterExecute',{'writer':_0x8b4248});});}),_0x5a707a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5a707a,'split'),{'priority':'high'}),_0x5a707a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1ec950,_0x185d7a,_0x9e1bac)=>{const _0x45cc34=_0x9e1bac['mapper']['markerNameToElements'](_0x185d7a['markerName']);if(_0x45cc34){for(const _0x5351a0 of _0x45cc34)_0x5351a0['hasClass']('ck-suggestion-marker-split')&&(_0x9e1bac['mapper']['unbindElementFromMarkerName'](_0x5351a0,_0x185d7a['markerName']),_0x9e1bac['writer']['remove'](_0x5351a0));}},{'priority':'high'}),_0x5a707a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x455401,_0x9f36de,_0x2bfa8b)=>{_0x2bfa8b['options']['showSuggestionHighlights']&&De(_0x5a707a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x455401,_0x9f36de,_0x2bfa8b);},{'priority':'high'});}}class Y extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3677d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3677d4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3677d4['enableCommand']('findNext'),_0x3677d4['enableCommand']('findPrevious'),_0x3677d4['enableCommand']('replace'),_0x3677d4['enableCommand']('replaceAll');}['handleFindCommand'](_0x15c59c,_0x2470b1,_0x383d99={}){const _0x291891=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x15c59c(_0x2ee99d=>{let _0x264fc4=('string'==typeof _0x2470b1?_0x291891['findByTextCallback'](_0x2470b1,_0x383d99):_0x2470b1)(_0x2ee99d);Array['isArray'](_0x264fc4)&&(_0x264fc4={'results':_0x264fc4,'searchText':'string'==typeof _0x2470b1?_0x2470b1:''});const _0x1517f3=_0x264fc4['results']['filter'](_0x36d1e2=>!0x1===this['_isInDeletionRange'](_0x36d1e2,_0x2ee99d['item']));return{..._0x264fc4,'results':_0x1517f3};},_0x383d99);}['_isInDeletionRange'](_0x1111c4,_0x1cce6c){const _0x1f5c5c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1cce6c,_0x1111c4['start']),this['editor']['model']['createPositionAt'](_0x1cce6c,_0x1111c4['end']));for(const _0x14433e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1f5c5c['getIntersection'](_0x14433e['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x159581{['afterInit'](){const _0x526fb7=this['editor']['locale'],_0x2627ac=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5e2944,commandName:_0xf49473}of to)this['editor']['plugins']['has'](_0x5e2944)&&(_0x2627ac['enableDefaultAttributesIntegration'](_0xf49473),_0x2627ac['registerInlineAttribute'](_0xf49473));_0x2627ac['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x526fb7,'FORMAT_FONT_SIZE')),_0x2627ac['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x526fb7,'FORMAT_FONT_FAMILY')),_0x2627ac['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x526fb7,'FORMAT_FONT_COLOR')),_0x2627ac['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x526fb7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x407dc2=this['editor'],_0x1806ac=_0x407dc2['locale'];_0x407dc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36fadb=>{const _0x28eb8d=_0x1806ac['t'];if('formatInline'!=_0x36fadb['type'])return;const {data:_0x2ea280}=_0x36fadb;if(null!=_0x2ea280){if('fontSize'==_0x2ea280['commandName']){const _0x51b664=_0x2ea280['commandParams'][0x0]['value'];if(_0x51b664){const _0x574281=_0x28eb8d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5e168e=>_0x5e168e['model']==_0x51b664)['title'])['toLowerCase']();return{'type':'format','content':c(_0x1806ac,'*Set\x20font\x20size:*\x20%0',_0x574281)};}return{'type':'format','content':c(_0x1806ac,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2ea280['commandName']){const _0xdaa981=_0x2ea280['commandParams'][0x0]['value'];return _0xdaa981?{'type':'format','content':c(_0x1806ac,'*Set\x20font\x20family:*\x20%0',_0xdaa981)}:{'type':'format','content':c(_0x1806ac,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2ea280['commandName']){const _0x30e680=_0x2ea280['commandParams'][0x0]['value'];if(_0x30e680){const _0x2d6a2f=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1f3dec=>_0x1f3dec['model']==_0x30e680);let _0x3169cb=_0x30e680,_0x2dff4c='';return _0x2d6a2f&&(_0x3169cb=_0x2d6a2f['label'],_0x2dff4c=_0x28eb8d(_0x3169cb)['toLowerCase']()),{'type':'format','content':c(_0x1806ac,'*Set\x20font\x20color:*\x20%0',_0x2dff4c)['trim'](),'color':{'value':_0x30e680,'title':_0x2dff4c||_0x3169cb}};}return{'type':'format','content':c(_0x1806ac,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2ea280['commandName']){const _0x5da213=_0x2ea280['commandParams'][0x0]['value'];if(_0x5da213){const _0x36468a=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x54c101=>_0x54c101['model']==_0x5da213);let _0xaf6bc4=_0x5da213,_0x9941ba='';return _0x36468a&&(_0xaf6bc4=_0x36468a['label'],_0x9941ba=_0x28eb8d(_0xaf6bc4)['toLowerCase']()),{'type':'format','content':c(_0x1806ac,'*Set\x20font\x20background\x20color:*\x20%0',_0x9941ba)['trim'](),'color':{'value':_0x5da213,'title':_0x9941ba||_0xaf6bc4}};}return{'type':'format','content':c(_0x1806ac,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x159581{['afterInit'](){const _0x8076f7=this['editor'],_0x1a59e7=_0x8076f7['plugins']['get']('TrackChangesEditing'),_0x3802b0=_0x8076f7['commands']['get']('copyFormat'),_0x39487d=_0x8076f7['commands']['get']('pasteFormat');_0x3802b0&&_0x39487d&&(_0x1a59e7['enableDefaultAttributesIntegration']('pasteFormat'),_0x1a59e7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xaef49a=this['editor'],_0xd9e377=_0xaef49a['locale'];_0xaef49a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x351f90=>{if('formatBlock'!=_0x351f90['type']&&'formatInline'!=_0x351f90['type'])return;const {data:_0x4286f4}=_0x351f90;if(_0x4286f4&&'pasteFormat'===_0x4286f4['commandName']){const _0x41d751=[],_0x5a539e=_0x4286f4['commandParams'][0x0];for(const [_0x15db02,_0x4c0c51]of Object['entries'](_0x5a539e))_0x41d751['push'](ro(_0xaef49a,_0x15db02,_0x4c0c51));return _0x41d751['length']?{'type':'format','content':c(_0xd9e377,'*Set\x20format\x20to:*\x20%0',_0x41d751['join'](',\x20'))}:{'type':'format','content':c(_0xd9e377,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2fb96c,_0x2c9472,_0x566ae1){const _0x531ec0=_0x2fb96c['locale']['t'],_0x38c895=_0x2c9472['split'](/(?=[A-Z])/)['join']('\x20'),_0x5913ec=_0x531ec0(_0x38c895['charAt'](0x0)['toUpperCase']()+_0x38c895['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x566ae1)return _0x5913ec;if('fontColor'===_0x2c9472||'fontBackgroundColor'===_0x2c9472){const _0x3e087d=Zt(_0x2fb96c['config']['get']('fontColor.colors'))['find'](_0x55e8e6=>_0x55e8e6['model']==_0x566ae1);return _0x5913ec+'\x20('+(_0x3e087d?_0x531ec0(_0x3e087d['label'])['toLowerCase']():_0x566ae1)+')';}if('fontSize'===_0x2c9472&&isNaN(parseFloat(_0x566ae1))){const _0x569636=_0x2fb96c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2fb96c['config']['get']('fontSize.options'))['find'](_0x3c5c43=>_0x3c5c43['model']==_0x566ae1);return _0x5913ec+'\x20('+(_0x569636?_0x531ec0(_0x569636['title'])['toLowerCase']():_0x566ae1)+')';}return _0x5913ec+'\x20('+_0x566ae1+')';}class et extends _0x159581{['_headingOptions'];['afterInit'](){const _0x198c8c=this['editor'];if(!_0x198c8c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x198c8c['config']['get']('heading.options');const _0x1baa46=_0x198c8c['locale'],_0x5e39fc=_0x198c8c['plugins']['get']('TrackChangesEditing');_0x5e39fc['enableDefaultAttributesIntegration']('heading');for(const _0x1cca48 of this['_headingOptions'])'paragraph'!=_0x1cca48['model']&&_0x5e39fc['descriptionFactory']['registerElementLabel'](_0x1cca48['model'],_0x4110af=>{const _0x7a249=this['_getHeadingLevel'](_0x1cca48['model']);return null!==_0x7a249?_0x458449(_0x4110af,_0x7a249):_0x371811(_0x4110af,_0x1cca48['title']);});function _0x458449(_0x386399,_0x5b74ca){return c(_0x1baa46,'ELEMENT_HEADING',[_0x386399,_0x5b74ca]);}function _0x371811(_0x207411,_0x737e8a){return c(_0x1baa46,'ELEMENT_HEADING_CUSTOM',[_0x207411,_0x737e8a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e9af4=this['editor'],_0x1a41d2=_0x5e9af4['locale'];function _0xbc92d8(_0x55ee5b,_0x2b3d1b){return c(_0x1a41d2,'ELEMENT_HEADING_CUSTOM',[_0x55ee5b,_0x2b3d1b]);}_0x5e9af4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a5696=>{if('formatBlock'!=_0x3a5696['type'])return;const {data:_0x550e4a}=_0x3a5696;if(_0x550e4a&&'heading'==_0x550e4a['commandName']){const _0x4e725f=_0x550e4a['commandParams'][0x0]['value'],_0x408076=this['_getHeadingLevel'](_0x4e725f);if(null!==_0x408076)return{'type':'format','content':c(_0x1a41d2,'*Change\x20to:*\x20%0',(_0x5c7f57=0x1,_0x118081=_0x408076,c(_0x1a41d2,'ELEMENT_HEADING',[_0x5c7f57,_0x118081])))};const _0x5ee40b=this['_headingOptions']['find'](_0x38779e=>_0x38779e['model']===_0x4e725f)['title'];return{'type':'format','content':c(_0x1a41d2,'*Change\x20to:*\x20%0',_0xbc92d8(0x1,_0x5ee40b))};}var _0x5c7f57,_0x118081;});}['_getHeadingLevel'](_0x628432){const _0x22b623=_0x628432['match'](/^heading(\d+)/);if(_0x22b623)return _0x22b623[0x1];const _0x24fb90=this['_headingOptions']?.['find'](_0x43afcd=>_0x43afcd['model']==_0x628432);if(_0x24fb90&&_0x24fb90['view']){const _0x45157f=_0x24fb90['view'],_0x2deee3=(_0x45157f['name']??_0x45157f)['match'](/^h(\d+)/);if(_0x2deee3)return _0x2deee3[0x1];}return null;}}class nt extends _0x159581{['afterInit'](){const _0x7ba166=this['editor'];if(!_0x7ba166['plugins']['has']('HighlightEditing'))return;const _0x173267=_0x7ba166['plugins']['get']('TrackChangesEditing'),_0x4b7690=_0x7ba166['locale'];_0x173267['enableDefaultAttributesIntegration']('highlight'),_0x173267['registerInlineAttribute']('highlight'),_0x173267['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4b7690,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e9713=this['editor'],_0x521a60=_0x1e9713['locale'];_0x1e9713['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c270f=>{if('formatInline'!=_0x2c270f['type'])return;const {data:_0x23a910}=_0x2c270f;if(_0x23a910&&'highlight'==_0x23a910['commandName']){const _0x494cc=_0x521a60['t'],_0x5eaae8=_0x23a910['commandParams'][0x0]['value'];if(_0x5eaae8){const _0x33302e=_0x1e9713['config']['get']('highlight.options')['find'](_0x245a02=>_0x245a02['model']==_0x5eaae8),_0x4f1055=_0x494cc(_0x33302e['title'])['toLowerCase']();return{'type':'format','content':c(_0x521a60,'*Set\x20highlight:*\x20%0',_0x4f1055),'color':{'value':_0x33302e['color'],'title':_0x33302e['title']}};}return{'type':'format','content':c(_0x521a60,'*Remove\x20highlight*',c(_0x521a60,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x159581{['afterInit'](){const _0x274ce0=this['editor'];if(!_0x274ce0['plugins']['has']('HorizontalLineEditing'))return;_0x274ce0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3398a9=_0x274ce0['plugins']['get']('TrackChangesEditing'),_0x3260f7=_0x274ce0['locale'];_0x3398a9['descriptionFactory']['registerElementLabel']('horizontalLine',_0xe3bf44=>c(_0x3260f7,'ELEMENT_HORIZONTAL_LINE',_0xe3bf44)),_0x274ce0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40e3ad,{writer:_0xb498fc,options:_0x56f74b})=>{if(!_0x56f74b['showSuggestionHighlights'])return null;const _0x541fe1=_0xb498fc['createContainerElement']('div'),_0x55b35c=_0xb498fc['createEmptyElement']('hr');return _0xb498fc['addClass']('ck-horizontal-line',_0x541fe1),_0xb498fc['insert'](_0xb498fc['createPositionAt'](_0x541fe1,0x0),_0x55b35c),_0x541fe1;},'converterPriority':'high'});}}class st extends _0x159581{['afterInit'](){const _0x29e0b2=this['editor'];if(!_0x29e0b2['plugins']['has']('HtmlEmbed'))return;const _0x13f16c=_0x29e0b2['plugins']['get']('TrackChangesEditing'),_0x5dcafc=_0x29e0b2['locale'];_0x13f16c['descriptionFactory']['registerElementLabel']('rawHtml',_0x34d94d=>c(_0x5dcafc,'ELEMENT_HTML_EMBED',_0x34d94d)),_0x13f16c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x13f16c['registerBlockAttribute']('value'),_0x13f16c['descriptionFactory']['registerDescriptionCallback'](_0x3c4054=>{if('attribute'!=_0x3c4054['type'])return;const {data:_0xa9f952}=_0x3c4054;if(_0xa9f952&&'value'==_0xa9f952['key']&&_0x3c4054['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56036b=c(_0x5dcafc,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5dcafc,'*Change\x20%0\x20content*',_0x56036b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e7ef=this['editor'],_0xc226c4=_0x53e7ef['locale'];_0x53e7ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8745ec=>{if('formatBlock'!=_0x8745ec['type'])return;const {data:_0x186fb5}=_0x8745ec;if(_0x186fb5&&'htmlEmbed'==_0x186fb5['commandName']){const _0x39f959=c(_0xc226c4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xc226c4,'*Change\x20%0\x20content*',_0x39f959)};}});}}class ot extends _0x159581{['afterInit'](){const _0x1c116c=this['editor'];if(!_0x1c116c['plugins']['has']('ImageEditing'))return;const _0x3099f8=_0x1c116c['plugins']['get']('TrackChangesEditing'),_0x148cfc=_0x1c116c['plugins']['get']('ImageUtils'),_0x1a7554=_0x1c116c['locale'];_0x3099f8['enableCommand']('insertImage'),_0x3099f8['descriptionFactory']['registerElementLabel']('imageBlock',_0x543c0b=>c(_0x1a7554,'ELEMENT_IMAGE',_0x543c0b)),_0x3099f8['descriptionFactory']['registerElementLabel']('imageInline',_0x2d689c=>c(_0x1a7554,'ELEMENT_INLINE_IMAGE',_0x2d689c)),_0x3099f8['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x1a7554,'ELEMENT_CAPTION')),_0x1c116c['plugins']['has']('ImageUploadEditing')&&_0x3099f8['enableCommand']('uploadImage'),_0x1c116c['plugins']['has']('ImageBlockEditing')&&_0x1c116c['plugins']['has']('ImageInlineEditing')&&(_0x3099f8['enableCommand']('imageTypeInline',(_0x446b3b,_0x2a0b18)=>{const _0x259bda=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']);_0x1c116c['model']['change'](()=>{_0x3099f8['markBlockFormat'](_0x259bda,{'commandName':'imageTypeInline','commandParams':[_0x2a0b18]},[],'convertBlockImageToInline');});}),_0x3099f8['enableCommand']('imageTypeBlock',(_0x3dcf4c,_0x5deeb0)=>{_0x1c116c['model']['change'](_0x4eeaf1=>{let _0x3e4a82=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']),_0x592f5f=_0x4eeaf1['createRangeOn'](_0x3e4a82);const _0x3c906d=_0x37a8ec['fromPosition'](_0x592f5f['start'],'toPrevious'),_0x567ab8=_0x37a8ec['fromPosition'](_0x592f5f['end'],'toNext');_0x3099f8['forceDefaultExecution'](()=>_0x3dcf4c(_0x5deeb0)),_0x3e4a82=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']),_0x592f5f=_0x4eeaf1['createRangeOn'](_0x3e4a82);const _0x5283e0=_0x4eeaf1['createRange'](_0x3c906d,_0x567ab8);_0x3c906d['detach'](),_0x567ab8['detach'](),_0x3099f8['markBlockFormat'](_0x3e4a82,{'commandName':'imageTypeInline','commandParams':[_0x5deeb0]},[],'convertInlineImageToBlock'),_0x5283e0['start']['isBefore'](_0x592f5f['start'])&&_0x3099f8['markInsertion'](_0x4eeaf1['createRange'](_0x5283e0['start'],_0x592f5f['start']),'convertInlineImageToBlock'),_0x592f5f['end']['isBefore'](_0x5283e0['end'])&&_0x3099f8['markInsertion'](_0x4eeaf1['createRange'](_0x592f5f['end'],_0x5283e0['end']),'convertInlineImageToBlock');});}),_0x3099f8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3099f8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3099f8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3099f8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3099f8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3099f8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x17b1fa])=>{const _0x9f6c2e=_0x3099f8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x404f5f=_0x17b1fa['start'],_0x20c85c=_0x17b1fa['end'];const _0x2dc6bd=_0x1c116c['model']['schema']['getNearestSelectionRange'](_0x404f5f,'backward'),_0x5ec553=_0x1c116c['model']['schema']['getNearestSelectionRange'](_0x20c85c,'forward');_0x2dc6bd['isCollapsed']&&(_0x404f5f=_0x2dc6bd['start']),_0x5ec553['isCollapsed']&&(_0x20c85c=_0x5ec553['end']),_0x9f6c2e([_0x1c116c['model']['createRange'](_0x404f5f,_0x20c85c)]);}),_0x3099f8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3365f1),_0x3099f8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3365f1)),_0x1c116c['plugins']['has']('ImageCaptionEditing')&&(_0x3099f8['enableCommand']('toggleImageCaption',(_0x28d80f,_0x314a45)=>{const _0x1a10ed=_0x1c116c['plugins']['get']('ImageCaptionUtils');let _0x5edd85=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']),_0x250ef0=_0x1a10ed['getCaptionFromImageModelElement'](_0x5edd85);_0x1c116c['model']['change'](()=>{if(_0x250ef0)return void _0x3099f8['markDeletion'](_0x1c116c['model']['createRangeOn'](_0x250ef0));const _0x4370ba=_0x148cfc['isBlockImage'](_0x5edd85);_0x28d80f(_0x314a45),_0x5edd85=_0x148cfc['getClosestSelectedImageElement'](_0x1c116c['model']['document']['selection']),_0x250ef0=_0x1a10ed['getCaptionFromImageModelElement'](_0x5edd85),_0x3099f8['markInsertion'](_0x1c116c['model']['createRangeOn'](_0x250ef0),_0x4370ba?null:'imageCaption');});}),_0x3099f8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3365f1));const _0x1c91af=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b7a2d(_0x31906c,_0x214c4f){const _0x3701ae=_0x1c91af['findIndex'](({type:_0x38bd57,subType:_0xda0deb})=>_0x31906c['type']==_0x38bd57&&_0x31906c['subType']==_0xda0deb),_0x8bf6fb=_0x1c91af['findIndex'](({type:_0x31a251,subType:_0x15a816})=>_0x214c4f['type']==_0x31a251&&_0x214c4f['subType']==_0x15a816);if(_0x3701ae<0x0||_0x8bf6fb<0x0)return!0x1;const _0x15fc5d=_0x31906c['getFirstRange'](),_0x5a7c40=_0x214c4f['getFirstRange']();if((0x0==_0x3701ae||0x1==_0x3701ae)&&0x2==_0x8bf6fb&&_0x15fc5d['isIntersecting'](_0x5a7c40))return!0x0;if(0x2==_0x3701ae&&0x3==_0x8bf6fb){const _0x32f32e=_0x3099f8['_findSuggestions'](_0x15fc5d,'insertion')['filter'](({suggestion:_0xd085f,meta:_0x528731})=>_0x528731['isOwn']&&'convertInlineImageToBlock'==_0xd085f['subType']);if(_0x32f32e['length']>0x1&&_0x5a7c40['end']['isEqual'](_0x15fc5d['start']))return!0x0;if(0x1==_0x32f32e['length']&&(_0x15fc5d['start']['isEqual'](_0x5a7c40['end'])||_0x15fc5d['end']['isEqual'](_0x5a7c40['start'])))return!0x0;}if(0x3==_0x3701ae&&0x3==_0x8bf6fb&&_0x15fc5d['start']['isBefore'](_0x5a7c40['start'])){const _0x42d12c=_0x15fc5d['end']['nodeAfter'],_0x2a5f5c=_0x5a7c40['start']['nodeBefore'];return _0x148cfc['isBlockImage'](_0x42d12c)&&_0x42d12c===_0x2a5f5c;}return!0x1;}function _0x3365f1(_0x3ba519,_0x35c20f){return _0x2b7a2d(_0x3ba519,_0x35c20f)?[_0x3ba519,_0x35c20f]:_0x2b7a2d(_0x35c20f,_0x3ba519)?[_0x35c20f,_0x3ba519]:null;}_0x1c116c['plugins']['has']('ImageResize')&&(_0x3099f8['enableDefaultAttributesIntegration']('resizeImage'),_0x3099f8['registerBlockAttribute']('resizedWidth'),_0x3099f8['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x1a7554,'FORMAT_IMAGE_SIZE'))),_0x1c116c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3099f8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3099f8['registerBlockAttribute']('alt')),_0x1c116c['plugins']['has']('PictureEditing')&&(_0x3099f8['registerBlockAttribute']('sources'),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x5a4331=>{if('attribute'!=_0x5a4331['type'])return;const {data:_0x1baf1c}=_0x5a4331;return _0x1baf1c&&'sources'==_0x1baf1c['key']?{'type':'format','content':''}:void 0x0;})),_0x1c116c['plugins']['has']('ImageSizeAttributes')&&(_0x3099f8['registerBlockAttribute']('width'),_0x3099f8['registerBlockAttribute']('height'),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x4d0e14=>{if('attribute'!=_0x4d0e14['type'])return;const {data:_0x5cd508}=_0x4d0e14;return!_0x5cd508||'width'!=_0x5cd508['key']&&'height'!=_0x5cd508['key']?void 0x0:{'type':'format','content':''};})),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x333b28=>{if(!!_0x1c91af['find'](({type:_0x2097c4,subType:_0x43ae2e})=>_0x333b28['type']==_0x2097c4&&_0x333b28['subType']==_0x43ae2e))return _0x333b28['previous']?{}:void 0x0;}),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x1df4ea=>{if('insertion'==_0x1df4ea['type']||'deletion'==_0x1df4ea['type']){const _0x5673da=_0x1df4ea['getContainedElement']();if(_0x5673da&&_0x5673da['is']('element','caption'))return{'type':'insertion'==_0x1df4ea['type']?'addObject':'removeObject','element':_0x5673da,'quantity':0x1};}}),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x4ae09f=>'formatBlock'==_0x4ae09f['type']&&'convertInlineImageToBlock'==_0x4ae09f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4ae09f['type']&&'convertBlockImageToInline'==_0x4ae09f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3099f8['descriptionFactory']['registerDescriptionCallback'](_0x38a6be=>{if('attribute'!=_0x38a6be['type'])return;const {data:_0x539195}=_0x38a6be;if(!_0x539195||'alt'!=_0x539195['key'])return;const _0x18a741=_0x539195['newValue'];return _0x18a741?{'type':'format','content':c(_0x1a7554,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x18a741+'\x22')}:{'type':'format','content':c(_0x1a7554,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d678e=this['editor'],_0x2c1f7d=_0x2d678e['locale'];_0x2d678e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49b334=>{if('formatBlock'!=_0x49b334['type']&&'formatInline'!=_0x49b334['type'])return;const {data:_0x4382a8}=_0x49b334;if(_0x4382a8){if('imageTextAlternative'==_0x4382a8['commandName']){const _0x419db1=_0x4382a8['commandParams'][0x0]['newValue'];return _0x419db1?{'type':'format','content':c(_0x2c1f7d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x419db1+'\x22')}:{'type':'format','content':c(_0x2c1f7d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4382a8['commandName']){const _0x1361b1=_0x4382a8['commandParams'][0x0]['width'];return _0x1361b1?{'type':'format','content':c(_0x2c1f7d,'*Set\x20image\x20width:*\x20%0',_0x1361b1)}:{'type':'format','content':c(_0x2c1f7d,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bd706=this['editor']['locale'],_0x4f9c41=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f9c41['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4f9c41['registerBlockAttribute']('src'),_0x4f9c41['descriptionFactory']['registerDescriptionCallback'](_0x5bfaa8=>{if('attribute'!=_0x5bfaa8['type'])return;const {data:_0x3db7a6}=_0x5bfaa8;return _0x3db7a6&&'src'==_0x3db7a6['key']?_0x3db7a6['newValue']&&_0x3db7a6['oldValue']?{'type':'format','content':c(_0x2bd706,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5809fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5809fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5809fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5809fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5809fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fd343=this['editor'],_0x4c4d89=_0x1fd343['locale'];_0x1fd343['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f68ee=>{if('formatBlock'!=_0x3f68ee['type']&&'formatInline'!=_0x3f68ee['type'])return;const {data:_0x122471}=_0x3f68ee;if(!_0x122471||'replaceImageSource'!=_0x122471['commandName'])return;return{'type':'format','content':c(_0x4c4d89,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x159581{['afterInit'](){const _0x1e3713=this['editor'];if(!_0x1e3713['plugins']['has']('ImageStyleEditing'))return;const _0x4934cf=_0x1e3713['plugins']['get']('TrackChangesEditing'),_0x4ab64c=_0x1e3713['plugins']['get']('ImageUtils'),_0x46bfd4={};_0x4934cf['enableCommand']('imageStyle',(_0x52faab,_0x39e4bf)=>{const _0x14bd40=_0x1e3713['plugins']['get']('Users')['me'],_0xd0a6f9=_0x1e3713['commands']['get']('imageStyle');let _0x2bed46=_0x4ab64c['getClosestSelectedImageElement'](_0x1e3713['model']['document']['selection']),_0x396324=_0x1e3713['model']['createRangeOn'](_0x2bed46),_0x43f66d=_0xd0a6f9['value'];if(_0x43f66d==_0x39e4bf['value'])return;const _0x4ea9de={'commandName':'imageStyle','commandParams':[_0x39e4bf],'formatGroupId':_0x4adad1()};_0x1e3713['model']['change'](()=>{if(_0x4934cf['getSuggestions']()['filter'](_0xa4efaf=>_0xa4efaf['isInContent']&&_0x14bd40==_0xa4efaf['author']&&('formatBlock'==_0xa4efaf['type']||'formatInline'==_0xa4efaf['type'])&&('imageStylePreApply'==_0xa4efaf['subType']||'imageStylePostApply'==_0xa4efaf['subType'])&&_0xa4efaf['getFirstRange']()['isEqual'](_0x396324))['forEach'](_0x36f0cf=>_0x4934cf['discardSuggestion'](_0x36f0cf['head'])),_0x2bed46=_0x4ab64c['getClosestSelectedImageElement'](_0x1e3713['model']['document']['selection']),_0x396324=_0x1e3713['model']['createRangeOn'](_0x2bed46),_0xd0a6f9['refresh'](),_0x1e3713['commands']['get']('imageTypeInline')['refresh'](),_0x1e3713['commands']['get']('imageTypeBlock')['refresh'](),_0x43f66d=_0xd0a6f9['value'],_0x43f66d!=_0x39e4bf['value'])return _0x4ab64c['isInlineImage'](_0x2bed46)&&_0xd0a6f9['shouldConvertImageType'](_0x39e4bf['value'],_0x2bed46)?(_0x52faab({..._0x39e4bf,'setImageSizes':!0x1}),_0x2bed46=_0x4ab64c['getClosestSelectedImageElement'](_0x1e3713['model']['document']['selection']),void _0x4934cf['markBlockFormat'](_0x2bed46,{..._0x4ea9de,'commandReversedParams':[{'value':_0x43f66d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ab64c['isBlockImage'](_0x2bed46)?_0x4934cf['markBlockFormat'](_0x2bed46,_0x4ea9de,[],'imageStylePostApply'):_0x4934cf['markInlineFormat'](_0x396324,_0x4ea9de,'imageStylePostApply'));});});for(const _0x28e3aa of _0x1e3713['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x46bfd4[_0x28e3aa['name']]=_0x28e3aa['title']['toLowerCase']();_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x121034])=>{_0x4ab64c['setImageNaturalSizeAttributes'](_0x121034['getContainedElement']());}),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xb56f6e,_0xd7535c)=>{_0x4934cf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xb56f6e,{'commandName':_0xd7535c['commandName'],'commandParams':_0xd7535c['commandReversedParams']});}),_0x4934cf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x42221d,_0x43ab75){if(_0x16e216(_0x42221d,_0x43ab75))return[_0x42221d,_0x43ab75];if(_0x16e216(_0x43ab75,_0x42221d))return[_0x43ab75,_0x42221d];return null;});const _0x3cf5e6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16e216(_0x5b8abe,_0x270b54){const _0x56a57a=_0x3cf5e6['findIndex'](({type:_0x6ce80d,subType:_0xefd51b})=>_0x5b8abe['type']==_0x6ce80d&&_0x5b8abe['subType']==_0xefd51b),_0x432b4b=_0x3cf5e6['findIndex'](({type:_0x63910e,subType:_0x155cfd})=>_0x270b54['type']==_0x63910e&&_0x270b54['subType']==_0x155cfd);if(_0x56a57a<0x0||_0x432b4b<0x0)return!0x1;const _0x395e92=_0x5b8abe['getFirstRange'](),_0x5bed25=_0x270b54['getFirstRange']();if((0x0==_0x56a57a||0x1==_0x56a57a)&&0x2==_0x432b4b&&_0x395e92['isIntersecting'](_0x5bed25))return!0x0;if(0x2==_0x56a57a&&0x3==_0x432b4b){const _0x110643=_0x4934cf['_findSuggestions'](_0x395e92,'insertion')['filter'](({suggestion:_0xc2fe8,meta:_0x387323})=>_0x387323['isOwn']&&'convertInlineImageToBlock'==_0xc2fe8['subType']);if(_0x110643['length']>0x1&&_0x5bed25['end']['isEqual'](_0x395e92['start']))return!0x0;if(0x1==_0x110643['length']&&(_0x395e92['start']['isEqual'](_0x5bed25['end'])||_0x395e92['end']['isEqual'](_0x5bed25['start'])))return!0x0;}if(0x3==_0x56a57a&&0x3==_0x432b4b&&_0x395e92['start']['isBefore'](_0x5bed25['start'])){const _0x4f419a=_0x395e92['end']['nodeAfter'],_0x1be179=_0x5bed25['start']['nodeBefore'];return _0x4ab64c['isBlockImage'](_0x4f419a)&&_0x4f419a===_0x1be179;}return!0x1;}_0x1e3713['model']['document']['registerPostFixer'](()=>{let _0xce210a=!0x1;const _0x56ca65=Array['from'](_0x1e3713['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43acbc,data:_0x390e91}of _0x56ca65){const {group:_0x1a7281,type:_0x4db9c7,subType:_0x14b237,id:_0x59d6b0}=_0x4934cf['_splitMarkerName'](_0x43acbc);if('suggestion'==_0x1a7281&&_0x4934cf['hasSuggestion'](_0x59d6b0)){if('formatBlock'==_0x4db9c7&&('imageStylePreApply'==_0x14b237||'imageStylePostApply'==_0x14b237)){const _0x5b6b4b=_0x4934cf['getSuggestion'](_0x59d6b0);if(_0x390e91['newRange']){const _0x2b5212=_0x5b6b4b['getFirstRange']()['getContainedElement']();if(_0x4ab64c['isBlockImage'](_0x2b5212))continue;_0x4934cf['discardSuggestion'](_0x5b6b4b),_0xce210a=!0x0;}}if('insertion'==_0x4db9c7&&'imageCaption'==_0x14b237&&!_0x390e91['newRange']){const _0x5e7334=_0x4934cf['getSuggestion'](_0x59d6b0);_0x5e7334['next']&&_0x5e7334['next']['isInContent']&&(_0x4934cf['discardSuggestion'](_0x5e7334['next']),_0xce210a=!0x0);}}}return _0xce210a;}),this['_registerLegacyDescription'](_0x46bfd4);}['_registerLegacyDescription'](_0x5cee80){const _0x56fa2f=this['editor'],_0x141eb6=_0x56fa2f['locale'];_0x56fa2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x316947=>{if('formatBlock'!=_0x316947['type']&&'formatInline'!=_0x316947['type'])return;const {data:_0xe33b7b}=_0x316947;if(!_0xe33b7b||'imageStyle'!=_0xe33b7b['commandName'])return;const _0x257bb1=_0xe33b7b['commandParams'][0x0]['value'];return _0x13aeea('side'===_0x257bb1?c(_0x141eb6,'FORMAT_SIDE_IMAGE'):_0x5cee80[_0x257bb1]||_0x257bb1);function _0x13aeea(_0x50a6ed){return{'type':'format','content':c(_0x141eb6,'*Format:*\x20%0',_0x50a6ed)};}});}}class ct extends _0x159581{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x297688){super(_0x297688),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x49383f=this['editor'],_0x25fa0e=_0x49383f['commands']['get']('importWord'),_0x3e2ea9=_0x49383f['commands']['get']('trackChanges');_0x25fa0e&&(_0x25fa0e['on']('execute',(_0x48d4ab,[,_0x41e17d])=>{this['_trackChangesValueDuringImport']=_0x3e2ea9['value'],_0x41e17d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x25fa0e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x25fa0e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3e2ea9['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x49383f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4c7da1,_0x3881b7){const {suggestions:_0xd12943}=_0x3881b7,_0x25af34=this['editor']['commands']['get']('trackChanges'),_0x5203f1=_0x25af34['value'];this['_trackChangesValueDuringImport']!==_0x5203f1&&(_0x25af34['execute'](),this['_trackChangesExecuted']=!0x0),_0xd12943&&_0xd12943['forEach'](({id:_0x44cb57,type:_0x47f53b,author:_0x45f3e1,created_at:_0x46599c})=>{const _0x4c48c5={'id':_0x44cb57,'type':_0x47f53b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x45f3e1,'createdAt':_0x46599c?new Date(_0x46599c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c48c5);});}}class ut extends _0x159581{['afterInit'](){const _0x26f60f=this['editor'],_0x202436=_0x26f60f['plugins']['get']('TrackChangesEditing');if(_0x26f60f['plugins']['has']('IndentEditing')&&(_0x202436['enableCommand']('indent'),_0x202436['enableCommand']('outdent')),_0x26f60f['plugins']['has']('IndentBlock')){for(const _0x561cd1 of['indentBlock','outdentBlock'])_0x202436['enableDefaultAttributesIntegration'](_0x561cd1);}const _0x291fae=_0x26f60f['locale'];_0x202436['registerBlockAttribute']('blockIndent'),_0x202436['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x291fae,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d47c0=this['editor'],_0x24a4da=_0x6d47c0['locale'],_0x2ba0a9=_0x6d47c0['plugins']['get']('TrackChangesEditing');_0x2ba0a9['descriptionFactory']['registerDescriptionCallback'](_0x1384ce=>{if('formatBlock'!=_0x1384ce['type'])return;const {data:_0x1f4543}=_0x1384ce;if(!_0x1f4543)return;if('indentBlock'!=_0x1f4543['commandName']&&'outdentBlock'!=_0x1f4543['commandName'])return;const _0x3d93aa=_0x1384ce['getItems']()[0x0],_0xfd48ca=_0x2ba0a9['descriptionFactory']['getItemLabel'](_0x3d93aa);return'indentBlock'==_0x1f4543['commandName']?{'type':'format','content':c(_0x24a4da,'*Indent:*\x20%0',_0xfd48ca)}:'outdentBlock'==_0x1f4543['commandName']?{'type':'format','content':c(_0x24a4da,'*Outdent:*\x20%0',_0xfd48ca)}:void 0x0;});}}class ft extends _0x159581{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x159581{['afterInit'](){const _0x138530=this['editor'];if(!_0x138530['plugins']['has']('LinkEditing'))return;const _0x4682ee=_0x138530['plugins']['get']('TrackChangesEditing'),_0x323576=_0x138530['commands']['get']('link');_0x4682ee['enableDefaultAttributesIntegration']('link'),_0x4682ee['enableDefaultAttributesIntegration']('unlink'),_0x4682ee['registerInlineAttribute']('linkHref');for(const _0x50d654 of _0x323576['manualDecorators'])_0x4682ee['registerInlineAttribute'](_0x50d654['id']),_0x4682ee['descriptionFactory']['registerAttributeLabel'](_0x50d654['id'],'link\x20('+_0x50d654['label']['toLowerCase']()+')');_0x4682ee['descriptionFactory']['registerDescriptionCallback'](_0x39b89b=>{if('attribute'!=_0x39b89b['type'])return;const {data:_0x43cc63}=_0x39b89b;if(!_0x43cc63||'linkHref'!=_0x43cc63['key'])return;const _0x58384e=_0x43cc63['newValue'],_0x50f23c=_0x138530['locale'];return{'type':'format','content':null==_0x58384e?c(_0x50f23c,'*Remove\x20link*'):c(_0x50f23c,'*Set\x20link:*\x20%0','\x22'+_0x58384e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbee7bc=this['editor'],_0x5a4dd3=_0xbee7bc['locale'];_0xbee7bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x458951=>{if('formatInline'!=_0x458951['type'])return;const {data:_0x445377}=_0x458951;if(_0x445377){if('link'==_0x445377['commandName']){const _0xd300fb=_0x445377['commandParams'][0x0];return{'type':'format','content':c(_0x5a4dd3,'*Set\x20link:*\x20%0','\x22'+_0xd300fb+'\x22')};}return'unlink'==_0x445377['commandName']?{'type':'format','content':c(_0x5a4dd3,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x159581{['afterInit'](){const _0x58d26a=this['editor'],_0x4db9da=_0x58d26a['locale'];if(!_0x58d26a['plugins']['has']('LegacyListEditing'))return;const _0x8bc3de=_0x58d26a['plugins']['get']('TrackChangesEditing'),_0x588457=_0x58d26a['plugins']['has']('LegacyTodoListEditing');function _0x34f4f2(_0x4e29d9){return()=>{const _0x3c6092=_0x58d26a['model']['document']['selection'],_0x4a53f8=_0x58d26a['commands']['get'](_0x4e29d9);if(_0x4a53f8['value'])return void _0x58d26a['execute']('paragraph',{});const _0x1821e0=_0x4e29d9['slice'](0x0,-0x4),_0x73e250=function(_0x21a81f,_0x139480,_0x1fe78c){let _0x471f77=Array['from'](_0x21a81f)['filter'](_0x3dd507=>function(_0x150c98,_0x14faf2){return _0x14faf2['checkChild'](_0x150c98['parent'],'listItem')&&!_0x14faf2['isObject'](_0x150c98);}(_0x3dd507,_0x1fe78c));_0x471f77=_0x471f77['filter'](_0x3511e7=>!_0x3511e7['is']('element','listItem')||_0x3511e7['getAttribute']('listType')!=_0x139480);const _0xcb036f=new Set();for(const _0x4351e2 of _0x471f77)_0x4351e2['is']('element','listItem')?_0xcb036f['add'](Le(_0x4351e2)):_0xcb036f['add'](_0x4351e2);return Array['from'](_0xcb036f);}(_0x3c6092['getSelectedBlocks'](),_0x1821e0,_0x58d26a['model']['schema']);_0x58d26a['model']['change'](()=>{for(const _0xf6e549 of _0x73e250)_0x8bc3de['markBlockFormat'](_0xf6e549,{'commandName':_0x4e29d9,'commandParams':[{'forceValue':!_0x4a53f8['value']}],'formatGroupId':'blockName'},Ee(_0xf6e549));});};}function _0x1a1454(_0x1ac1fa){return()=>{const _0x4230e3=function(_0x4ff8a5){let _0x28681b=Array['from'](_0x4ff8a5);const _0x4a7b38=_0x28681b['findIndex'](_0x4238d0=>'listItem'!=_0x4238d0['name']);return _0x4a7b38>-0x1&&(_0x28681b=_0x28681b['slice'](0x0,_0x4a7b38)),_0x28681b;}(_0x58d26a['model']['document']['selection']['getSelectedBlocks']()),_0xc9e167=_0x58d26a['model']['createRange'](_0x58d26a['model']['createPositionAt'](_0x4230e3[0x0],'before'),_0x58d26a['model']['createPositionAt'](_0x4230e3[_0x4230e3['length']-0x1],'end'));_0x58d26a['model']['change'](()=>{_0x8bc3de['markBlockFormat'](_0xc9e167,{'commandName':_0x1ac1fa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a111f){const _0x3ef7bb=new Set();for(const _0x3f2dd8 of _0x1a111f){let _0x56e790=_0x3f2dd8['nextSibling'];for(;_0x56e790&&_0x56e790['getAttribute']('listIndent')>_0x3f2dd8['getAttribute']('listIndent');)_0x3ef7bb['add'](_0x56e790),_0x56e790=_0x56e790['nextSibling'];}return Array['from'](_0x3ef7bb);}(_0x4230e3));});};}_0x8bc3de['enableCommand']('numberedList',_0x34f4f2('numberedList')),_0x8bc3de['enableCommand']('bulletedList',_0x34f4f2('bulletedList')),_0x588457&&_0x8bc3de['enableCommand']('todoList',_0x34f4f2('todoList')),_0x8bc3de['enableCommand']('indentList',_0x1a1454('indentList')),_0x8bc3de['enableCommand']('outdentList',_0x1a1454('outdentList')),_0x588457&&_0x8bc3de['enableCommand']('checkTodoList',()=>{const _0x5309b6=_0x58d26a['commands']['get']('checkTodoList'),_0x3cd7d7=Array['from'](_0x5309b6['_selectedElements']);_0x3cd7d7['filter'](_0x58d5d3=>_0x58d5d3['getAttribute']('todoListChecked')!=_0x5309b6['value']),_0x58d26a['model']['change'](()=>{for(const _0x278935 of _0x3cd7d7)_0x8bc3de['markBlockFormat'](_0x278935,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5309b6['value']}]});});}),_0x8bc3de['descriptionFactory']['registerElementLabel']('listItem',_0x17bd77=>c(_0x4db9da,'ELEMENT_LIST_ITEM',_0x17bd77)),_0x8bc3de['descriptionFactory']['registerDescriptionCallback'](_0x5acde6=>{if('formatBlock'!=_0x5acde6['type']&&'formatInline'!=_0x5acde6['type'])return;const {data:_0x2c9fdf}=_0x5acde6;if(_0x2c9fdf){if('numberedList'==_0x2c9fdf['commandName']||'bulletedList'==_0x2c9fdf['commandName']||'todoList'==_0x2c9fdf['commandName'])switch(_0x2c9fdf['commandName']['replace']('List','')){case'bulleted':return _0x1739f7(c(_0x4db9da,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1739f7(c(_0x4db9da,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1739f7(c(_0x4db9da,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2c9fdf['commandName'])return{'type':'format','content':c(_0x4db9da,'*Indent:*\x20%0',c(_0x4db9da,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2c9fdf['commandName'])return{'type':'format','content':c(_0x4db9da,'*Outdent:*\x20%0',c(_0x4db9da,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2c9fdf['commandName'])return _0x2c9fdf['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4db9da,'*Check\x20item*')}:{'type':'format','content':c(_0x4db9da,'*Uncheck\x20item*')};}function _0x1739f7(_0x158f8c){return{'type':'format','content':c(_0x4db9da,'*Change\x20to:*\x20%0',_0x158f8c)};}});}}function Le(_0x473f71){const _0x33d0d5=_0x473f71['getAttribute']('listIndent');if(0x0==_0x33d0d5)return _0x473f71;let _0x265179=_0x473f71;for(;_0x473f71['previousSibling']&&_0x473f71['previousSibling']['is']('element','listItem');){const _0x354c3a=_0x473f71['previousSibling']['getAttribute']('listIndent');if(_0x354c3a==_0x33d0d5)_0x265179=_0x473f71['previousSibling'];else{if(_0x354c3a<_0x33d0d5)break;}_0x473f71=_0x473f71['previousSibling'];}return _0x265179;}function Ee(_0x7bc91c){const _0x9b9ef7=[];if(_0x7bc91c['is']('element','listItem')&&_0x7bc91c['getAttribute']('listIndent')>0x0){let _0x30c9d0=_0x7bc91c['nextSibling'];for(;_0x30c9d0&&'listItem'==_0x30c9d0['name']&&_0x30c9d0['getAttribute']('listIndent')==_0x7bc91c['getAttribute']('listIndent');)_0x9b9ef7['push'](_0x30c9d0),_0x30c9d0=_0x30c9d0['nextSibling'];}return _0x9b9ef7;}class Q extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f869e=this['editor']['config']['get']('list.properties'),_0x3a3edf=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f869e['styles']&&_0x3a3edf['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f869e['reversed']&&_0x3a3edf['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f869e['startIndex']&&_0x3a3edf['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a3edf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x33c2ac,_0x1c4145={}){const _0x502db0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aca72=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x502db0['markMultiRangeBlockFormat'](_0x1aca72,{'commandName':'listStyle','commandParams':[{'type':_0x1c4145['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x58751a,_0x11c7e8={}){const _0x49e95d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x559085=this['_getSuggestionBlocks'](_0x2ce4a4=>_0x2ce4a4['is']('element','listItem')&&'numbered'===_0x2ce4a4['getAttribute']('listType'));if(_0x559085['length']<0x1)return;const _0x51637e=_0x559085['map'](_0x13fa49=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x13fa49,'before'),this['editor']['model']['createPositionAt'](_0x13fa49,0x0)));this['editor']['model']['change'](()=>{_0x49e95d['markMultiRangeBlockFormat'](_0x51637e,{'commandName':'listReversed','commandParams':[{'reversed':_0x11c7e8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2f55bc,_0x4acd97={}){const _0x18f331=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b6706=this['_getSuggestionBlocks'](_0x1dbce2=>_0x1dbce2['is']('element','listItem')&&'numbered'===_0x1dbce2['getAttribute']('listType'));if(_0x2b6706['length']<0x1)return;const _0x3fa320=_0x2b6706['map'](_0x443fb2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x443fb2,'before'),this['editor']['model']['createPositionAt'](_0x443fb2,0x0)));this['editor']['model']['change'](()=>{_0x18f331['markMultiRangeBlockFormat'](_0x3fa320,{'commandName':'listStart','commandParams':[{'startIndex':_0x4acd97['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4a9619){if('formatBlock'!=_0x4a9619['type']&&'formatInline'!=_0x4a9619['type'])return;const _0x1271dd=this['editor']['locale'],{data:_0x2c67a6}=_0x4a9619;if(!_0x2c67a6)return;let _0x15b983,_0x1ac370;switch(_0x2c67a6['commandName']){case'listStyle':_0x15b983='*Change\x20to:*\x20%0',_0x1ac370={'type':'format','content':c(_0x1271dd,_0x15b983,c(_0x1271dd,this['_getTranslationKeyForListStyle'](_0x2c67a6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15b983=_0x2c67a6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ac370={'type':'format','content':c(_0x1271dd,_0x15b983)};break;case'listStart':_0x15b983='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ac370={'type':'format','content':c(_0x1271dd,_0x15b983,_0x2c67a6['commandParams'][0x0]['startIndex'])};}return _0x1ac370;}['_getSuggestionBlocksForListStyle'](){const _0x337122=this['editor']['plugins']['get']('LegacyListUtils');let _0x293d0a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x293d0a[0x0]?.['is']('element','listItem')&&_0x293d0a['unshift'](..._0x337122['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x293d0a[_0x293d0a['length']-0x1]?.['is']('element','listItem')&&_0x293d0a['push'](..._0x337122['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x293d0a=[...new Set(_0x293d0a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x293d0a=_0x293d0a['filter'](_0x2028b9=>_0x2028b9['is']('element','listItem'))),_0x293d0a;}['_getSuggestionBlocks'](_0x5efcb6){const _0x16ba41=this['editor']['plugins']['get']('LegacyListUtils');let _0x2f1cb4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5efcb6)['map'](_0x44e920=>{const _0x1248dc=this['editor']['model']['createPositionAt'](_0x44e920,0x0);return[..._0x16ba41['getSiblingNodes'](_0x1248dc,'backward'),..._0x16ba41['getSiblingNodes'](_0x1248dc,'forward')];})['flat']();return _0x2f1cb4=[...new Set(_0x2f1cb4)],_0x2f1cb4;}['_getTranslationKeyForListStyle'](_0x3e5f72){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3e5f72)||'default')['toUpperCase']()+'_LIST_'+_0x3e5f72['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x159581{['afterInit'](){const _0x4094b1=this['editor'];if(!_0x4094b1['plugins']['has']('MediaEmbedEditing'))return;const _0x156e26=_0x4094b1['plugins']['get']('TrackChangesEditing'),_0x21496e=_0x4094b1['locale'];_0x156e26['enableCommand']('mediaEmbed'),_0x156e26['descriptionFactory']['registerElementLabel']('media',_0x40f8dc=>c(_0x21496e,'ELEMENT_MEDIA',_0x40f8dc)),_0x4094b1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x865df5,{writer:_0x50986e,options:_0x56dc7a})=>{if(_0x56dc7a['showSuggestionHighlights'])return _0x50986e['createEmptyElement']('div');},'converterPriority':'high'}),_0x4094b1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1a2b01,_0x20678a,_0x2e6697)=>{_0x2e6697['options']['showSuggestionHighlights']&&_0x1a2b01['stop']();},{'priority':'high'});}}class mt extends _0x159581{['afterInit'](){const _0xbab6e9=this['editor'];_0xbab6e9['plugins']['has']('MentionEditing')&&_0xbab6e9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x159581{['afterInit'](){const _0x4cf4a0=this['editor'];if(!_0x4cf4a0['plugins']['has']('MergeFieldsEditing'))return;const _0x48dd3e=_0x4cf4a0['plugins']['get']('TrackChangesEditing'),_0x463cb8=_0x4cf4a0['locale'];_0x48dd3e['enableCommand']('insertMergeField'),_0x48dd3e['enableCommand']('insertMergeFieldBlock'),_0x48dd3e['enableCommand']('insertMergeFieldImage'),_0x48dd3e['descriptionFactory']['registerElementLabel']('mergeField',_0x528d91=>c(_0x463cb8,'ELEMENT_MERGE_FIELD',_0x528d91)),_0x48dd3e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4cf73c=>c(_0x463cb8,'ELEMENT_MERGE_FIELD',_0x4cf73c)),_0x48dd3e['descriptionFactory']['registerDescriptionCallback'](_0x77472f=>{if('insertion'!=_0x77472f['type']&&'deletion'!=_0x77472f['type'])return;const _0x46333c=_0x77472f['getContainedElement']();if(null==_0x46333c)return;const _0x3997dc=_0x4cf4a0['plugins']['get']('MergeFieldsEditing');let _0x44cd81;switch(_0x3997dc['getMergeFieldType'](_0x46333c)){case null:return;case'image':{const _0x109235=_0x3997dc['unwrapAffixes'](_0x46333c['getAttribute']('src'));_0x44cd81=_0x3997dc['getLabel'](_0x109235)||_0x109235;break;}default:{const _0x9c227c=_0x46333c['getAttribute']('id');_0x44cd81=_0x3997dc['getLabel'](_0x9c227c)||_0x9c227c;break;}}return'insertion'==_0x77472f['type']?{'type':'insertion','content':c(_0x463cb8,'*Insert:*\x20%0','\x22'+_0x44cd81+'\x22\x20'+c(_0x463cb8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x463cb8,'*Remove:*\x20%0','\x22'+_0x44cd81+'\x22\x20'+c(_0x463cb8,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x159581{['afterInit'](){const _0x55c1ce=this['editor'],_0x43d049=_0x55c1ce['plugins']['get']('TrackChangesEditing');_0x55c1ce['plugins']['has']('MultiLevelList')&&(_0x43d049['enableDefaultAttributesIntegration']('multiLevelList'),_0x43d049['registerBlockAttribute']('listMarkerStyle'),_0x43d049['descriptionFactory']['registerDescriptionCallback'](_0x40543f=>this['handleDescriptions'](_0x40543f)));}['handleDescriptions'](_0x14a003){const _0x2154dc=this['editor']['locale'],{data:_0x5205df}=_0x14a003,_0xb56167={'type':'format','content':''};if(_0x5205df&&'listMarkerStyle'==_0x5205df['key']){if(!_0x5205df['oldValue'])return{'type':'format','content':c(_0x2154dc,'*Set\x20format:*\x20%0',c(_0x2154dc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5205df['newValue']+')'};if(!_0x5205df['newValue']){let _0x114da9=_0x14a003['head'];for(;_0x114da9;){if(_0x114da9['data']&&'listType'==_0x114da9['data']['key']&&_0x114da9['data']['newValue'])return _0xb56167;_0x114da9=_0x114da9['next'];}return{'type':'format','content':c(_0x2154dc,'*Remove\x20format:*\x20%0',c(_0x2154dc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5205df['oldValue']+')'};}}}}class kt extends _0x159581{['afterInit'](){const _0x2ebf73=this['editor'];if(!_0x2ebf73['plugins']['has']('PageBreakEditing'))return;_0x2ebf73['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4a539e=_0x2ebf73['plugins']['get']('TrackChangesEditing'),_0x11198e=_0x2ebf73['locale'];_0x4a539e['descriptionFactory']['registerElementLabel']('pageBreak',_0xbda97c=>c(_0x11198e,'ELEMENT_PAGE_BREAK',_0xbda97c));}}class bt extends _0x159581{['afterInit'](){const _0x176746=this['editor'];if(!_0x176746['plugins']['has']('Paragraph'))return;const _0xf41eea=_0x176746['locale'],_0x49f835=_0x176746['plugins']['get']('TrackChangesEditing');_0x49f835['descriptionFactory']['registerElementLabel']('paragraph',_0x13f091=>c(_0xf41eea,'ELEMENT_PARAGRAPH',_0x13f091)),_0x49f835['enableDefaultAttributesIntegration']('paragraph'),_0x49f835['enableCommand']('insertParagraph'),_0x176746['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x176746),{'priority':'highest'}),_0x176746['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b6b6d,_0x4b0cf1,_0x280106)=>{_0x280106['options']['showSuggestionHighlights']&&nr(_0x176746,{'showActiveMarker':!0x1})(_0x2b6b6d,_0x4b0cf1,_0x280106);},{'priority':'highest'});const _0x1377b6=_0x49f835['descriptionFactory'];_0x1377b6['registerDescriptionCallback'](_0x577f74=>{if('insertion'!==_0x577f74['type'])return;const {start:_0x2d2889,end:_0x1779cf}=_0x577f74['getFirstRange']();if(!_0x2d2889['isTouching'](_0x1779cf)||!_0x2d2889['nodeAfter'])return;const _0x4e7008=_0x176746['model']['schema'],_0x5f5b6d=_0x2d2889['nodeAfter'];return _0x4e7008['isBlock'](_0x5f5b6d)&&!_0x4e7008['isLimit'](_0x5f5b6d)&&_0x4e7008['checkChild'](_0x5f5b6d,'$text')?{'type':'insertion','content':c(_0xf41eea,'*Insert:*\x20%0',_0x1377b6['getItemLabel'](_0x5f5b6d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd9ce=this['editor'],_0xcb9228=_0x5bd9ce['locale'];_0x5bd9ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23c5c0=>{if('formatBlock'!=_0x23c5c0['type'])return;const {data:_0x19c23c}=_0x23c5c0;return _0x19c23c&&'paragraph'==_0x19c23c['commandName']?{'type':'format','content':c(_0xcb9228,'*Change\x20to:*\x20%0',c(_0xcb9228,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2b6f86,{showActiveMarker:_0xaac1ad=!0x0}={}){return(_0x3a4a37,_0xbf7c4e,_0x3be664)=>{const _0x214c96=_0x2b6f86['plugins']['get']('TrackChangesEditing'),_0x3eb58e=_0xbf7c4e['markerRange']['start'],_0x5ec58c=_0xbf7c4e['markerRange']['end'],_0x3c276c=_0x2b6f86['model']['schema'];if(!_0x3eb58e['isTouching'](_0x5ec58c)||!_0x3eb58e['nodeAfter'])return;const _0x4ecc88=_0x3eb58e['nodeAfter'];if(_0x3c276c['isBlock'](_0x4ecc88)&&!_0x3c276c['isLimit'](_0x4ecc88)&&_0x3c276c['checkChild'](_0x4ecc88,'$text')){if(!_0x3be664['consumable']['consume'](_0xbf7c4e['markerRange'],_0x3a4a37['name']))return;const {authorId:_0xea21fe}=_0x214c96['_splitMarkerName'](_0xbf7c4e['markerName']),_0x32f4b0=_0x3be664['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xea21fe}),_0x2b62e1=_0x3be664['mapper']['toViewPosition'](_0x5ec58c);_0xaac1ad&&_0x214c96['activeMarkers']['includes'](_0xbf7c4e['markerName'])&&_0x3be664['writer']['addClass']('ck-suggestion-marker--active',_0x32f4b0),_0x3be664['writer']['insert'](_0x2b62e1,_0x32f4b0),_0x3be664['mapper']['bindElementToMarker'](_0x32f4b0,_0xbf7c4e['markerName']);}};}class yt extends _0x159581{['afterInit'](){const _0x31db6e=this['editor'];if(!_0x31db6e['plugins']['has']('RemoveFormatEditing'))return;_0x31db6e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5aeca1=this['editor'];_0x5aeca1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x500778=>{if('formatBlock'!=_0x500778['type']&&'formatInline'!=_0x500778['type'])return;const {data:_0x19a47e}=_0x500778;return _0x19a47e&&'removeFormat'==_0x19a47e['commandName']?{'type':'format','content':c(_0x5aeca1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x159581{['afterInit'](){const _0x1fbeae=this['editor'];if(!_0x1fbeae['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5f5151=_0x1fbeae['plugins']['get']('TrackChangesEditing');_0x5f5151['enableCommand']('goToPreviousRestrictedEditingException'),_0x5f5151['enableCommand']('goToNextRestrictedEditingException');const _0xb8bf36=_0x1fbeae['plugins']['get']('RestrictedEditingModeEditing');_0xb8bf36['enableCommand']('trackChanges'),_0xb8bf36['enableCommand']('acceptSuggestion'),_0xb8bf36['enableCommand']('discardSuggestion'),_0xb8bf36['enableCommand']('acceptAllSuggestions'),_0xb8bf36['enableCommand']('discardAllSuggestions'),_0xb8bf36['enableCommand']('acceptSelectedSuggestions'),_0xb8bf36['enableCommand']('discardSelectedSuggestions');}}class St extends _0x159581{static get['requires'](){return[_0x2f0e86];}['init'](){const _0x13288a=this['editor'],_0x32febf=_0x13288a['plugins']['get']('TrackChangesEditing');_0x32febf['enableCommand']('shiftEnter'),_0x13288a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x13288a),{'priority':'high'}),_0x13288a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x13288a),{'priority':'high'}),_0x13288a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d3335,_0x16b1d1,_0xb80e71)=>{_0xb80e71['options']['showSuggestionHighlights']&&je(_0x13288a,{'showActiveMarker':!0x1})(_0x5d3335,_0x16b1d1,_0xb80e71);}),_0x32febf['descriptionFactory']['registerElementLabel']('softBreak',_0x4c7107=>c(_0x13288a['locale'],'ELEMENT_LINE_BREAK',_0x4c7107));}}function je(_0x328536,{showActiveMarker:_0x5ea08e=!0x0}={}){return(_0x25f9ff,_0x46891a,_0x72c5f4)=>{const _0x51a49c=_0x328536['plugins']['get']('TrackChangesEditing');if(!_0x72c5f4['consumable']['test'](_0x46891a['markerRange'],_0x25f9ff['name']))return;const _0x29591d=_0x328536['model'];for(const _0x172d2a of _0x46891a['markerRange']['getItems']()){if(!_0x172d2a['is']('element','softBreak'))continue;const _0x1bb9dd='deletion'==_0x46891a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4e18db}=_0x51a49c['_splitMarkerName'](_0x46891a['markerName']),_0x61e79e=_0x72c5f4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1bb9dd,'data-author-id':_0x4e18db}),_0x62cb27=_0x72c5f4['mapper']['toViewPosition'](_0x29591d['createPositionBefore'](_0x172d2a));_0x5ea08e&&_0x51a49c['activeMarkers']['includes'](_0x46891a['markerName'])&&_0x72c5f4['writer']['addClass']('ck-suggestion-marker--active',_0x61e79e),_0x72c5f4['writer']['insert'](_0x62cb27,_0x61e79e),_0x72c5f4['mapper']['bindElementToMarker'](_0x61e79e,_0x46891a['markerName']);}};}class At extends _0x159581{['afterInit'](){const _0x51290a=this['editor'],_0xa5eb7e=_0x51290a['model'],_0x110b66=_0x51290a['locale'];if(!_0x51290a['plugins']['has']('StandardEditingModeEditing'))return;const _0x2429f2=_0x51290a['plugins']['get']('TrackChangesEditing'),_0x445412='restrictedEditingException',_0x4a3823=_0x51290a['commands']['get'](_0x445412);_0x2429f2['enableCommand'](_0x445412,(_0x47acb7,_0x1a99a6={})=>{const _0x1e4e2f=_0xa5eb7e['document']['selection'];if(_0x1e4e2f['isCollapsed'])return void _0x47acb7(_0x1a99a6);const _0x4c8e19=void 0x0!==_0x1a99a6['forceValue']?_0x1a99a6['forceValue']:!_0x4a3823['value'];_0xa5eb7e['change'](()=>{const _0x450466=Array['from'](_0x1e4e2f['getRanges']());for(const _0x5590ea of _0x450466){const _0x2691eb=_0x4c8e19?[_0x5590ea]:no(_0x445412,_0x5590ea,_0xa5eb7e);for(const _0x4a286e of _0x2691eb)_0x2429f2['markInlineFormat'](_0x4a286e,{'commandName':_0x445412,'commandParams':[{'forceValue':_0x4c8e19}]});}});}),_0x2429f2['descriptionFactory']['registerDescriptionCallback'](_0x3260f1=>{if('formatBlock'!=_0x3260f1['type']&&'formatInline'!=_0x3260f1['type'])return;const {data:_0x39f5db}=_0x3260f1;return _0x39f5db&&_0x39f5db['commandName']==_0x445412?_0x39f5db['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x110b66,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x110b66,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x159581{['afterInit'](){const _0x4a4116=this['editor'];if(!_0x4a4116['plugins']['has']('Style')||!_0x4a4116['plugins']['has']('DataSchema'))return;const _0x68b219=_0x4a4116['plugins']['get']('TrackChangesEditing'),_0x545eea=_0x4a4116['locale'],_0x3507d3=_0x4a4116['config']['get']('style')||{},_0x5601a8=_0x4a4116['plugins']['get']('GeneralHtmlSupport'),_0x65e438=_0x4a4116['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4a4116['plugins']['get']('DataSchema'),_0x3507d3['definitions']);_0x68b219['enableDefaultAttributesIntegration']('style');const _0x27c524=new Set();for(const _0x445d75 of _0x65e438['block']){const _0x131543=_0x5601a8['getGhsAttributeNameForElement'](_0x445d75['element']);_0x27c524['add'](_0x131543);}const _0xbf6d5d=new Set();for(const _0x3c643e of _0x65e438['inline']){const _0x4b2043=_0x5601a8['getGhsAttributeNameForElement'](_0x3c643e['element']);_0xbf6d5d['add'](_0x4b2043);for(const _0x724b32 of _0x3c643e['ghsAttributes'])_0xbf6d5d['add'](_0x724b32);}for(const _0x5c5138 of _0x27c524)_0x68b219['registerBlockAttribute'](_0x5c5138),_0x68b219['descriptionFactory']['registerAttributeLabel'](_0x5c5138,c(_0x545eea,'FORMAT_STYLE'));for(const _0x407319 of _0xbf6d5d)_0x68b219['registerInlineAttribute'](_0x407319),_0x68b219['descriptionFactory']['registerAttributeLabel'](_0x407319,c(_0x545eea,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc74657=this['editor'],_0x3aa41f=_0xc74657['locale'];_0xc74657['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x127b2b=>{if('formatBlock'!=_0x127b2b['type']&&'formatInline'!=_0x127b2b['type'])return;const {data:_0x2c092f}=_0x127b2b;return _0x2c092f&&'style'===_0x2c092f['commandName']?_0x2c092f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3aa41f,'*Set\x20format:*\x20%0',_0x2c092f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3aa41f,'*Remove\x20format:*\x20%0',_0x2c092f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x159581{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1cdf1a){super(_0x1cdf1a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2f2970=this['editor'],_0x9da624=_0x2f2970['model']['document']['selection'];if(!_0x2f2970['plugins']['has']('TableEditing'))return;const _0x582bc3=_0x2f2970['locale'],_0x81a652=_0x2f2970['plugins']['get']('TrackChangesEditing'),_0x4f4a57=_0x2f2970['plugins']['get']('TableUtils');_0x81a652['descriptionFactory']['registerElementLabel']('table',_0x435e99=>c(_0x582bc3,'ELEMENT_TABLE',_0x435e99)),this['_setupColumnsRowsFixing'](),_0x81a652['enableCommand']('insertTable'),_0x81a652['enableCommand']('selectTableRow'),_0x81a652['enableCommand']('selectTableColumn');for(const _0x2b1431 of['insertTableRowAbove','insertTableRowBelow']){const _0x267fc2=_0x2f2970['commands']['get'](_0x2b1431);_0x81a652['enableCommand'](_0x2b1431,_0x4c957e=>{_0x2f2970['model']['change'](_0x3b2a44=>{_0x4c957e();const _0x93a031='above'===_0x267fc2['order'],_0x3a749d=_0x4f4a57['getSelectionAffectedTableCells'](_0x9da624),_0x301901=_0x4f4a57['getRowIndexes'](_0x3a749d),_0x3fa5cf=_0x93a031?_0x301901['first']-0x1:_0x301901['last']+0x1,_0x5835e8=_0x3a749d[0x0]['findAncestor']('table'),_0x12e55b=_0x4f4a57['createTableWalker'](_0x5835e8,{'startRow':_0x3fa5cf,'endRow':_0x3fa5cf}),_0x38c002=Array['from'](_0x12e55b)['map'](_0x281b95=>_0x3b2a44['createRangeOn'](_0x281b95['cell']));_0x81a652['markMultiRangeInsertion'](_0x38c002,'tableRow');});});}for(const _0x2eb11a of['insertTableColumnLeft','insertTableColumnRight']){const _0x47aad6=_0x2f2970['commands']['get'](_0x2eb11a);_0x81a652['enableCommand'](_0x2eb11a,_0x55806e=>{_0x2f2970['model']['change'](_0x45be29=>{_0x55806e();const _0x414fdc='left'===_0x47aad6['order'],_0x26e4d1=_0x4f4a57['getSelectionAffectedTableCells'](_0x9da624),_0x46b6a4=_0x4f4a57['getColumnIndexes'](_0x26e4d1),_0x473d5a=_0x414fdc?_0x46b6a4['first']-0x1:_0x46b6a4['last']+0x1,_0x565654=_0x26e4d1[0x0]['findAncestor']('table'),_0x14cd07=_0x4f4a57['createTableWalker'](_0x565654,{'startRow':0x0,'column':_0x473d5a,'includeAllSlots':!0x1}),_0xaf770a=Array['from'](_0x14cd07)['map'](_0x57fa47=>_0x45be29['createRangeOn'](_0x57fa47['cell']));_0x81a652['markMultiRangeInsertion'](_0xaf770a,'tableColumn');});});}for(const _0x45b772 of['removeTableRow','removeTableColumn']){const _0x14cb8b=_0x45b772['substr'](0xb),_0x584469=_0x14cb8b['toLowerCase'](),_0x2fa724=_0x584469['substr'](0x0,0x3)+'span',_0x3d2642='table'+_0x14cb8b,_0x1c75f3='min'+_0x14cb8b,_0xcdca3='max'+_0x14cb8b;_0x81a652['enableCommand'](_0x45b772,()=>{_0x2f2970['model']['change'](_0x554ecd=>{const _0x58dcce=_0x4f4a57['getSelectionAffectedTableCells'](_0x9da624),_0x3a8646=_0x58dcce[0x0]['findAncestor']('table');let _0x5b472d;if('removeTableRow'==_0x45b772){const _0x1e3324=_0x4f4a57['getRowIndexes'](_0x58dcce);_0x5b472d={'startRow':_0x1e3324['first'],'endRow':_0x1e3324['last'],'includeAllSlots':!0x0};}else{const _0x30e9ec=_0x4f4a57['getColumnIndexes'](_0x58dcce);_0x5b472d={'startColumn':_0x30e9ec['first'],'endColumn':_0x30e9ec['last'],'includeAllSlots':!0x0};}const _0x2c53d4=_0x4f4a57['createTableWalker'](_0x3a8646,_0x5b472d),_0x47258c=Array['from'](_0x2c53d4)['map'](({cell:_0x325ea7})=>_0x325ea7),_0xcf211e=Ne(_0x47258c['filter'](_0x13ec64=>_0x13ec64['hasAttribute'](_0x2fa724))),_0x54a7a5=Ne(_0x47258c['filter'](_0x48ad9a=>!_0x48ad9a['hasAttribute'](_0x2fa724)))['map'](_0x1aec74=>_0x554ecd['createRangeOn'](_0x1aec74)),_0x21673=_0x81a652['markMultiRangeDeletion'](_0x54a7a5,_0x3d2642);if(_0x21673&&('tableRow'==_0x21673['subType']||'tableColumn'==_0x21673['subType'])){const _0x494c14=this['_getSuggestionCoords'](_0x21673);for(const _0x517ce7 of _0xcf211e){const _0x464ed5=_0x554ecd['createRangeOn'](_0x517ce7),_0x1c056d=_0x4f4a57['getCellLocation'](_0x517ce7),_0x47b7a2=_0x517ce7['getAttribute'](_0x2fa724)-0x1,_0x561cf0=_0x494c14[_0x1c75f3],_0x5d5c37=_0x494c14[_0xcdca3];_0x561cf0<=_0x1c056d[_0x584469]&&_0x1c056d[_0x584469]+_0x47b7a2<=_0x5d5c37&&_0x21673['addRange'](_0x464ed5);}}});});}function _0x34c7b0(_0x519a47){const _0x51fc3d=Array['from'](_0x9da624['getRanges']())['map'](_0x5eb4cf=>_0x31bd77['fromRange'](_0x5eb4cf));_0x2f2970['model']['change'](_0x5e2f90=>{const _0xc8a2c0=_0x5e2f90['batch'];_0x519a47=_0x519a47['filter'](_0x2d1a67=>'$graveyard'!=_0x2d1a67['root']['rootName']),_0x5e2f90['setSelection'](_0x519a47),_0x2f2970['commands']['get']('removeTableRow')['refresh'](),_0x2f2970['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2f2970['model']['enqueueChange'](()=>{_0x2f2970['model']['enqueueChange'](_0xc8a2c0,_0x21a4a8=>{const _0x5618b7=_0x51fc3d['filter'](_0x4fef48=>'$graveyard'!=_0x4fef48['root']['rootName']);_0x5618b7['length']>0x0&&_0x21a4a8['setSelection'](_0x5618b7);for(const _0x5d2f5e of _0x51fc3d)_0x5d2f5e['detach']();});});});}function _0x38cb0c(_0x3e8946){_0x2f2970['model']['change'](_0x4b0a3a=>{const _0x4ff544=Array['from'](_0x9da624['getRanges']())['map'](_0x57473b=>_0x31bd77['fromRange'](_0x57473b)),_0x369570=[];for(const _0x4ee681 of _0x3e8946)for(const _0x1772ec of _0x4ee681['getItems']({'shallow':!0x0}))_0x369570['push'](_0x1772ec);for(const _0x1e5e53 of _0x369570)'$graveyard'!=_0x1e5e53['root']['rootName']&&(_0x4b0a3a['setSelection'](_0x4b0a3a['createPositionAt'](_0x1e5e53,0x0)),_0x2f2970['commands']['get']('removeTableColumn')['refresh'](),_0x2f2970['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x21a2db=_0x4ff544['filter'](_0x528ee1=>'$graveyard'!=_0x528ee1['root']['rootName']);_0x21a2db['length']>0x0&&_0x4b0a3a['setSelection'](_0x21a2db);for(const _0x3cb4c3 of _0x4ff544)_0x3cb4c3['detach']();});}function _0x4d83f2(_0x4594b2,_0x5d232f){return _0x5d232f['every'](_0x4298b9=>_0x4594b2['some'](_0x22138e=>_0x22138e['end']['isEqual'](_0x4298b9['start'])||_0x4298b9['end']['isEqual'](_0x22138e['start'])));}function _0x3f4a90(_0x3b8b55,_0x523b3f){return!_0x3b8b55['some'](_0x31bc48=>_0x523b3f['some'](_0x1a53fd=>_0x31bc48['isIntersecting'](_0x1a53fd)))&&_0x3b8b55['some'](_0x49bd77=>_0x523b3f['some'](_0x4ff58=>_0x49bd77['end']['isTouching'](_0x4ff58['start'])));}_0x2f2970['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27417f,_0x348cf4,_0xc68378)=>{if(!_0xc68378['options']['showSuggestionHighlights'])return;const _0x91d56a=_0x348cf4['item'];if(!_0x91d56a)return;const _0x497716=_0xc68378['mapper']['toViewElement'](_0x91d56a);function _0xb9ee38(_0x397006){return Array['isArray'](_0x397006)?_0x397006:[_0x397006];}_0x497716&&'tableCell'===_0x91d56a['name']&&_0x25f4ad(_0x497716,_0xc68378['writer'],(_0x402431,_0x1a3c74,_0x563881)=>_0x563881['addClass'](_0xb9ee38(_0x1a3c74['classes']),_0x402431),(_0x31b236,_0x43d2e4,_0xf03596)=>_0xf03596['removeClass'](_0xb9ee38(_0x43d2e4['classes']),_0x31b236));},{'priority':'highest'}),_0x81a652['descriptionFactory']['registerDescriptionCallback'](_0x292a99=>{if('insertion'!=_0x292a99['type']&&'deletion'!=_0x292a99['type'])return;const _0x2524a8=_0x292a99['getContainedElement']();if(null!=_0x2524a8&&_0x2524a8['is']('element','table')){if('insertion'==_0x292a99['type']){const _0x18edb0=_0x292a99['getItems']()['filter'](_0x508dc1=>_0x508dc1['is']('$textProxy'))['map'](_0x16afc4=>_0x16afc4['data']);if(_0x18edb0['length'])return{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x18edb0['join']('\x20')+'\x22'))};}if('deletion'==_0x292a99['type']){const _0x5a642=_0x292a99['getItems']()['filter'](_0x144503=>_0x144503['is']('$textProxy'))['map'](_0x37791b=>_0x37791b['data']);if(_0x5a642['length'])return{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a642['join']('\x20')+'\x22'))};}}}),_0x81a652['descriptionFactory']['registerDescriptionCallback'](_0x32004c=>{if('tableRow'==_0x32004c['subType']){const _0x1aff94=_0x32004c['getItems']()['filter'](_0x2810c7=>_0x2810c7['is']('$textProxy'))['map'](_0x2212b8=>_0x2212b8['data']),_0x53ea2a=this['_getSuggestionCoords'](_0x32004c),_0x5a1569=_0x53ea2a['maxRow']-_0x53ea2a['minRow']+0x1;if('insertion'==_0x32004c['type'])return _0x1aff94['length']?{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5a1569,'\x22'+_0x1aff94['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_ROW',_0x5a1569))};if('deletion'==_0x32004c['type'])return _0x1aff94['length']?{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5a1569,'\x22'+_0x1aff94['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_ROW',_0x5a1569))};}if('tableColumn'==_0x32004c['subType']){const _0x245bb5=_0x32004c['getItems']()['filter'](_0x234047=>_0x234047['is']('$textProxy'))['map'](_0x313d66=>_0x313d66['data']),_0x5c765c=this['_getSuggestionCoords'](_0x32004c),_0xebd8ff=_0x5c765c['maxColumn']-_0x5c765c['minColumn']+0x1;if('insertion'==_0x32004c['type'])return _0x245bb5['length']?{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xebd8ff,'\x22'+_0x245bb5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x582bc3,'*Insert:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_COLUMN',_0xebd8ff))};if('deletion'==_0x32004c['type'])return _0x245bb5['length']?{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xebd8ff,'\x22'+_0x245bb5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x582bc3,'*Remove:*\x20%0',c(_0x582bc3,'ELEMENT_TABLE_COLUMN',_0xebd8ff))};}}),_0x81a652['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x34c7b0),_0x81a652['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x34c7b0),_0x81a652['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x38cb0c),_0x81a652['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x38cb0c),_0x81a652['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4d83f2),_0x81a652['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4d83f2),_0x81a652['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f4a90),_0x81a652['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f4a90);}['_acceptFormatSuggestionCallbackFactory'](){const _0x11d716=this['editor'],_0xccc406=_0x11d716['model']['document']['selection'];return(_0x2ece92,_0x7d2ef2)=>{_0x11d716['model']['change'](_0x5219c3=>{const {commandName:_0x4aad1a,commandParams:_0x10dd93}=_0x7d2ef2;let _0x37b033=_0x2ece92[0x0]['end']['nodeBefore'];_0x10dd93&&_0x10dd93[0x0]&&!0x1===_0x10dd93[0x0]['forceValue']&&(_0x37b033=_0x2ece92[0x0]['start']['nodeAfter']);const _0x5c8f9b=_0x5219c3['createRangeIn'](_0x37b033);if('$graveyard'==_0x5c8f9b['root']['rootName'])return;const _0x336246=Array['from'](_0xccc406['getRanges']())['map'](_0x4cb239=>_0x31bd77['fromRange'](_0x4cb239));_0x5219c3['setSelection'](_0x5c8f9b),_0x11d716['commands']['get'](_0x4aad1a)['refresh'](),_0x10dd93['push']({'forceDefaultExecution':!0x0}),_0x11d716['execute'](_0x4aad1a,..._0x10dd93);const _0x339b70=_0x336246['filter'](_0x20b9c8=>'$graveyard'!=_0x20b9c8['root']['rootName']);_0x339b70['length']>0x0&&_0x5219c3['setSelection'](_0x339b70);for(const _0x2b4cf2 of _0x336246)_0x2b4cf2['detach']();});};}['_getCoordsForCells'](_0x4c0dc0){const _0x53fe03=this['editor']['plugins']['get']('TableUtils');let _0x36b3de=Number['MAX_SAFE_INTEGER'],_0x33c71c=Number['MIN_SAFE_INTEGER'],_0x10aaf6=Number['MAX_SAFE_INTEGER'],_0xdbb903=Number['MIN_SAFE_INTEGER'];for(const _0x522166 of _0x4c0dc0){if('$graveyard'==_0x522166['root']['rootName'])continue;const {row:_0x3cdf8f,column:_0x3e2c8d}=_0x53fe03['getCellLocation'](_0x522166),_0x5352b7=_0x522166['hasAttribute']('rowspan')?_0x522166['getAttribute']('rowspan')-0x1:0x0,_0x221232=_0x522166['hasAttribute']('colspan')?_0x522166['getAttribute']('colspan')-0x1:0x0;_0x36b3de=_0x3cdf8f<_0x36b3de?_0x3cdf8f:_0x36b3de,_0x33c71c=_0x3cdf8f+_0x5352b7>_0x33c71c?_0x3cdf8f+_0x5352b7:_0x33c71c,_0x10aaf6=_0x3e2c8d<_0x10aaf6?_0x3e2c8d:_0x10aaf6,_0xdbb903=_0x3e2c8d+_0x221232>_0xdbb903?_0x3e2c8d+_0x221232:_0xdbb903;}return{'minRow':_0x36b3de,'maxRow':_0x33c71c,'minColumn':_0x10aaf6,'maxColumn':_0xdbb903};}['_setupColumnsRowsFixing'](){const _0x2904c6=this['editor'],_0x3ec95e=_0x2904c6['plugins']['get']('TrackChangesEditing'),_0x15ef6c=_0x2904c6['plugins']['get']('TableUtils');_0x2904c6['model']['document']['on']('change:data',()=>{const _0xcc4551=Array['from'](_0x2904c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1872ac,data:_0x47d494}of _0xcc4551){const {group:_0x3a6eab,id:_0x1bac0c,subType:_0x21da2a}=_0x3ec95e['_splitMarkerName'](_0x1872ac);if('suggestion'!=_0x3a6eab)continue;if(null!=_0x47d494['oldRange'])continue;const _0x250dda=_0x3ec95e['getSuggestion'](_0x1bac0c);this['_tablePostFixingSubtypes']['includes'](_0x21da2a)&&this['_tableSuggestions']['add'](_0x250dda);}},{'priority':'low'});const _0x2c9969=(_0x1d3699,_0x12cff2)=>{let _0x242a32=!0x1;const _0x5aff85=_0x12cff2['createRangeOn'](_0x1d3699),_0x1c5211=_0x1d3699['findAncestor']('table'),_0x4c3522=_0x15ef6c['getCellLocation'](_0x1d3699);for(const _0x3b03a of this['_tableSuggestions']){const _0x5e4759=_0x3b03a['subType'],_0x573568=_0x5e4759['startsWith']('tablePaste'),_0x18aff4=_0x5e4759['substr'](_0x573568?0xa:0x5),_0x3adb7a=_0x18aff4['toLowerCase'](),_0x317707=_0x3adb7a['substr'](0x0,0x3)+'span',_0x365f3e='min'+_0x18aff4,_0x1582f7='max'+_0x18aff4;if(!_0x3b03a['isInContent'])continue;if(_0x1c5211!=_0x3b03a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3b03a['isIntersectingWithRange'](_0x5aff85))continue;const _0x27b5fb=_0x1d3699['hasAttribute'](_0x317707)?_0x1d3699['getAttribute'](_0x317707)-0x1:0x0,_0x35c765=this['_getSuggestionCoords'](_0x3b03a),_0x10720b=_0x35c765[_0x365f3e],_0x2b3b0d=_0x35c765[_0x1582f7];_0x10720b<=_0x4c3522[_0x3adb7a]&&_0x4c3522[_0x3adb7a]+_0x27b5fb<=_0x2b3b0d&&(_0x3b03a['addRange'](_0x5aff85),_0x242a32=!0x0);}return _0x242a32;};_0x2904c6['model']['document']['registerPostFixer'](_0x4683fe=>{let _0x53e0e1=!0x1;for(const _0x5f55f2 of _0x2904c6['model']['document']['differ']['getChanges']())if('insert'==_0x5f55f2['type']){if('tableRow'==_0x5f55f2['name']){for(const _0x2f8071 of _0x5f55f2['position']['nodeAfter']['getChildren']())_0x53e0e1=_0x53e0e1||_0x2c9969(_0x2f8071,_0x4683fe);}else'tableCell'==_0x5f55f2['name']&&(_0x53e0e1=_0x53e0e1||_0x2c9969(_0x5f55f2['position']['nodeAfter'],_0x4683fe));}return _0x53e0e1;});}['_getSuggestionCoords'](_0x4aeffa){return this['_getCoordsForCells'](_0x4aeffa['getRanges']()['map'](_0x1c4b06=>_0x1c4b06['start']['nodeAfter']));}}function Ne(_0x35333a){return Array['from'](new Set(_0x35333a)['values']());}class vt extends _0x159581{static get['requires'](){return[_t];}['afterInit'](){const _0x2d3d27=this['editor'],_0x17952f=_0x2d3d27['model']['document']['selection'],_0x186081=_0x2d3d27['locale'];if(!_0x2d3d27['plugins']['has']('TableEditing'))return;const _0x34f05b=_0x2d3d27['plugins']['get']('TrackChangesEditing'),_0x5c6dc3=_0x2d3d27['plugins']['get']('TableUtils'),_0x318af0=_0x2d3d27['plugins']['get'](_t);_0x318af0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x34f05b['enableCommand']('mergeTableCells',()=>{const _0x35fe2f=_0x5c6dc3['getSelectionAffectedTableCells'](_0x2d3d27['model']['document']['selection']);_0x2d3d27['model']['change'](()=>{_0x34f05b['markMultiRangeBlockFormat'](_0x35fe2f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d3d27['commands']['get']('mergeTableCells')['on']('execute',(_0x1985e2,_0x2e826c)=>{_0x2d3d27['commands']['get']('trackChanges')['value']&&(_0x2e826c['length']>0x0&&_0x2e826c[_0x2e826c['length']-0x1]&&_0x2e826c[_0x2e826c['length']-0x1]['forceDefaultExecution']||_0x34f05b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1985e2['stop']());},{'priority':'highest'});for(const _0x825ea8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2282da=_0x2d3d27['commands']['get'](_0x825ea8);_0x34f05b['enableCommand'](_0x825ea8,()=>{const _0x483fe3=_0x2d3d27['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4be851=>_0x4be851['is']('element','tableCell')),_0x3b645d=_0x2282da['value'];_0x2d3d27['model']['change'](()=>{_0x34f05b['markMultiRangeBlockFormat']([_0x483fe3,_0x3b645d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x221761 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x218421=_0x2d3d27['commands']['get'](_0x221761);_0x34f05b['enableCommand'](_0x221761,()=>{const _0x2a157e=_0x5c6dc3['getSelectionAffectedTableCells'](_0x2d3d27['model']['document']['selection'])[0x0],_0x540a59=_0x2a157e['findAncestor']('table'),{column:_0x27a152,row:_0x27720c}=_0x5c6dc3['getCellLocation'](_0x2a157e);let _0x488264=[];if('horizontally'==_0x218421['direction']){const _0x4949cc=_0x5c6dc3['createTableWalker'](_0x540a59,{'startRow':_0x27720c,'endRow':_0x27720c,'includeAllSlots':!0x0});_0x488264=Array['from'](_0x4949cc)['map'](_0x4f35ea=>_0x4f35ea['cell']);}else{const _0x47633a=_0x5c6dc3['createTableWalker'](_0x540a59,{'column':_0x27a152,'includeAllSlots':!0x0});_0x488264=Array['from'](_0x47633a)['map'](_0x3d6aa2=>_0x3d6aa2['cell']);}_0x2d3d27['model']['change'](_0x536fd3=>{_0x34f05b['markBlockFormat'](_0x536fd3['createRangeOn'](_0x2a157e),{'commandName':_0x221761,'commandParams':[]},_0x488264,_0x221761);});});}_0x34f05b['descriptionFactory']['registerDescriptionCallback'](_0x54de2b=>{if('formatBlock'!=_0x54de2b['type']&&'formatInline'!=_0x54de2b['type'])return;const {data:_0x21b8c6}=_0x54de2b;return _0x21b8c6&&'mergeTableCells'==_0x21b8c6['commandName']?{'type':'format','content':c(_0x186081,'*Merge\x20cells*')}:void 0x0;}),_0x34f05b['descriptionFactory']['registerDescriptionCallback'](_0x4b56de=>{if('formatBlock'!=_0x4b56de['type']&&'formatInline'!=_0x4b56de['type'])return;const {data:_0x1d178b}=_0x4b56de;return _0x1d178b?'splitTableCellVertically'==_0x1d178b['commandName']?{'type':'format','content':c(_0x186081,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1d178b['commandName']?{'type':'format','content':c(_0x186081,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x9aad1e=_0x318af0['_acceptFormatSuggestionCallbackFactory']();for(const _0x30815b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x34f05b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30815b,'accept',_0x9aad1e);for(const _0x2136ee of['splitTableCellVertically','splitTableCellHorizontally'])_0x34f05b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2136ee,'accept',_0x9aad1e);_0x34f05b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21ab41=>{_0x2d3d27['model']['change'](_0x3ed08c=>{const _0x55590b=Array['from'](_0x17952f['getRanges']())['map'](_0x14fcba=>_0x31bd77['fromRange'](_0x14fcba));_0x3ed08c['setSelection'](_0x21ab41),_0x2d3d27['commands']['get']('mergeTableCells')['refresh'](),_0x2d3d27['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c1f1e=_0x55590b['filter'](_0x322d15=>'$graveyard'!=_0x322d15['root']['rootName']);_0x3c1f1e['length']>0x0&&_0x3ed08c['setSelection'](_0x3c1f1e);for(const _0x459da9 of _0x55590b)_0x459da9['detach']();});});for(const _0x35e505 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x386c19=_0x2d3d27['commands']['get'](_0x35e505);_0x386c19['on']('set:isEnabled',(_0x27033e,_0x46916d,_0x3bb617)=>{if(_0x3bb617){const _0x4f8e9b=_0x2d3d27['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1714a1=>_0x1714a1['is']('element','tableCell'));this['_areMergableCells'](_0x386c19['value'],_0x4f8e9b)||(_0x27033e['return']=!0x1,_0x27033e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3e6b85=this['editor']['commands']['get']('mergeTableCells'),_0x4bdf65=this['editor']['plugins']['get']('TableUtils');if(!_0x3e6b85['isEnabled'])return!0x1;const _0x1e81e3=_0x4bdf65['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x530e4a of _0x1e81e3)for(const _0x35a934 of _0x1e81e3)if(_0x530e4a!=_0x35a934&&!this['_areMergableCells'](_0x530e4a,_0x35a934))return!0x1;return!0x0;}['_areMergableCells'](_0x166cf1,_0x1c7f2e){const _0x377578=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52618d=this['editor']['model']['createRangeOn'](_0x166cf1),_0x1e1ea3=this['editor']['model']['createRangeOn'](_0x1c7f2e),_0x44eb5a=new Set(),_0xe7b54b=new Set();for(const _0x3cdb73 of _0x377578['getSuggestions']())if(('insertion'==_0x3cdb73['type']||'deletion'==_0x3cdb73['type']||'mergeTableCells'==_0x3cdb73['subType'])&&_0x3cdb73['isInContent']){for(const _0x467557 of _0x3cdb73['getRanges']())_0x467557['containsRange'](_0x52618d,!0x0)&&_0x44eb5a['add'](_0x3cdb73['type']+':'+_0x3cdb73['author']['id']),_0x467557['containsRange'](_0x1e1ea3,!0x0)&&_0xe7b54b['add'](_0x3cdb73['type']+':'+_0x3cdb73['author']['id']);}if(_0x44eb5a['size']!=_0xe7b54b['size'])return!0x1;for(const _0x533796 of _0x44eb5a)if(!_0xe7b54b['has'](_0x533796))return!0x1;return!0x0;}}class Ct extends _0x159581{static get['requires'](){return[_t];}['afterInit'](){const _0x5363ff=this['editor'];if(!_0x5363ff['plugins']['has']('TableEditing'))return;const _0x490779=_0x5363ff['locale'],_0x57f34b=_0x5363ff['plugins']['get']('TrackChangesEditing');_0x57f34b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x57f34b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x57f34b['registerBlockAttribute']('headingRows'),_0x57f34b['registerBlockAttribute']('headingColumns'),_0x57f34b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x490779,'FORMAT_HEADER_ROW')),_0x57f34b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x490779,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x516d68=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e2d4b=this['editor']['plugins']['get']('TableUtils'),_0x5011b7=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0xa5e824({showActiveMarker:_0x362832=!0x0,setDataAttribute:_0x5eda36=!0x0}={}){return(_0x5f3c72,_0x15df15,_0x5dd704)=>{const {type:_0x54e850,id:_0x53d87c}=_0x516d68['_splitMarkerName'](_0x15df15['markerName']),_0x2f14bb=_0x516d68['getSuggestion'](_0x53d87c),_0x52e736=_0x2f14bb['data'];if('formatBlock'!=_0x2f14bb['type']||!_0x52e736||'setTableColumnHeader'!=_0x52e736['commandName'])return;if(_0x15df15['item'])return void _0x5f3c72['stop']();if(!_0x5dd704['consumable']['consume'](_0x15df15['markerRange'],_0x5f3c72['name']))return;const _0x2736af=_0x15df15['markerRange']['start']['nodeAfter'],_0x31345a=_0x15df15['markerRange']['end']['nodeBefore'],_0x461610=_0x2736af['parent']['parent'],{column:_0x3428fa}=_0x3e2d4b['getCellLocation'](_0x2736af),{column:_0x11acc3}=_0x3e2d4b['getCellLocation'](_0x31345a);for(let _0x35b3a2=_0x3428fa;_0x35b3a2<=_0x11acc3;_0x35b3a2++){const _0x22a85c=_0x3e2d4b['createTableWalker'](_0x461610,{'column':_0x35b3a2,'includeAllSlots':!0x1});for(const _0xd9b1c3 of _0x22a85c){const _0x47bfbc=_0xd9b1c3['cell'],_0x5bae73=_0x5dd704['mapper']['toViewElement'](_0x47bfbc);_0x5dd704['writer']['addClass']('ck-suggestion-marker-'+_0x54e850,_0x5bae73),_0x5eda36&&_0x5dd704['writer']['setAttribute']('data-suggestion',_0x53d87c,_0x5bae73),_0x5dd704['mapper']['bindElementToMarker'](_0x5bae73,_0x15df15['markerName']),_0x362832&&(_0x516d68['activeMarkers']['includes'](_0x15df15['markerName'])?_0x5dd704['writer']['addClass']('ck-suggestion-marker--active',_0x5bae73):_0x5dd704['writer']['removeClass']('ck-suggestion-marker--active',_0x5bae73));}}};}_0x516d68['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5011b7),_0x516d68['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5011b7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xa5e824(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x506ee1,_0x4a67cb,_0x59a41f)=>{_0x59a41f['options']['showSuggestionHighlights']&&_0xa5e824({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x506ee1,_0x4a67cb,_0x59a41f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3514cb,_0x481ff3,_0x2430a1)=>{const {type:_0x250f02,id:_0x131e20}=_0x516d68['_splitMarkerName'](_0x481ff3['markerName']),_0x13a717=_0x516d68['getSuggestion'](_0x131e20),_0x3814b0=_0x13a717['data'];if('formatBlock'!=_0x13a717['type']||!_0x3814b0||'setTableColumnHeader'!=_0x3814b0['commandName'])return;const _0x209740=_0x2430a1['mapper']['markerNameToElements'](_0x481ff3['markerName']);if(_0x209740){for(const _0xe581d5 of _0x209740)_0x2430a1['writer']['removeClass']('ck-suggestion-marker-'+_0x250f02,_0xe581d5),_0x2430a1['writer']['removeClass']('ck-suggestion-marker--active',_0xe581d5),_0x2430a1['writer']['removeAttribute']('data-suggestion',_0xe581d5),_0x2430a1['mapper']['unbindElementFromMarkerName'](_0xe581d5,_0x481ff3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cdf02=this['editor'],_0x486dea=_0x1cdf02['locale'];function _0x231b37(_0x4ed954){return{'type':'format','content':c(_0x486dea,'*Format:*\x20%0',_0x4ed954)};}_0x1cdf02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b94b3=>{if('formatBlock'!=_0x1b94b3['type'])return;const {data:_0x5787db}=_0x1b94b3;if(_0x5787db){if('setTableRowHeader'==_0x5787db['commandName']){const _0xaf6d4c=_0x5787db['commandParams'][0x0]['forceValue'];return _0x231b37(c(_0x486dea,_0xaf6d4c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5787db['commandName']){const _0x4a96af=_0x5787db['commandParams'][0x0]['forceValue'];return _0x231b37(c(_0x486dea,_0x4a96af?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3eed58=>[_0x3eed58,null]));class Nt extends _0x159581{static get['requires'](){return[_t];}['afterInit'](){const _0x42f033=this['editor'];if(!_0x42f033['plugins']['has']('TableClipboard'))return;const _0x2bc3e0=_0x42f033['plugins']['get']('TrackChangesEditing'),_0xf353f8=_0x42f033['plugins']['get']('TableUtils'),_0x54609a=_0x42f033['plugins']['get'](_t),_0x2f139c=_0x42f033['plugins']['get']('TableClipboard');_0x54609a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x42f033['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x42f033['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4ae6e8=null;_0x42f033['model']['on']('insertContent',(_0x2a2977,_0x5f5dd3)=>{const [_0x2fd0fb,_0x4de156]=_0x5f5dd3,_0x1467f8=_0x5f5dd3[_0x5f5dd3['length']-0x1];_0x1467f8&&_0x1467f8['forceDefaultExecution']||_0x2bc3e0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2e00fa,_0x3b1f3f,_0xad4fc1,_0x19891c,_0x53c7e2){if(_0x3b1f3f&&!_0x3b1f3f['is']('documentSelection'))return!0x1;const _0x46aa0c=_0x53c7e2['getTableIfOnlyTableInContent'](_0x2e00fa,_0xad4fc1);if(!_0x46aa0c||!Ue(_0x46aa0c,void 0x0,_0x19891c))return!0x1;const _0x1bf834=_0x19891c['getSelectionAffectedTableCells'](_0xad4fc1['document']['selection']);if(!_0x1bf834['length'])return!0x1;const _0x333637=_0x1bf834[0x0]['findAncestor']('table'),_0x5a949f=_0x19891c['getRowIndexes'](_0x1bf834),_0x182923=_0x19891c['getColumnIndexes'](_0x1bf834),_0x3cd49c={'startRow':_0x5a949f['first'],'endRow':_0x5a949f['last'],'startColumn':_0x182923['first'],'endColumn':_0x182923['last']};return 0x1==_0x1bf834['length']&&(_0x3cd49c['endRow']+=_0x19891c['getRows'](_0x46aa0c)-0x1,_0x3cd49c['endColumn']+=_0x19891c['getColumns'](_0x46aa0c)-0x1),Ue(_0x333637,_0x3cd49c,_0x19891c);}(_0x2fd0fb,_0x4de156,_0x42f033['model'],_0xf353f8,_0x2f139c)&&(_0x2a2977['stop'](),_0x4ae6e8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x42f033['model']['change'](()=>{_0x42f033['model']['insertContent'](_0x5f5dd3[0x0],_0x5f5dd3[0x1],_0x5f5dd3[0x2],{'forceDefaultExecution':!0x0});const _0x2869e2=_0x4adad1(),{rowInsertionRanges:_0x361324,columnInsertionRanges:_0x1ab07b,insertionRanges:_0x449ac3,deletionRanges:_0x130b48,cells:_0x48d6b6}=_0x4ae6e8;_0x361324['length']&&_0x2bc3e0['markMultiRangeInsertion'](_0x361324,'tablePasteRow',{'tablePasteChainId':_0x2869e2}),_0x1ab07b['length']&&_0x2bc3e0['markMultiRangeInsertion'](_0x1ab07b,'tablePasteColumn',{'tablePasteChainId':_0x2869e2}),_0x449ac3['length']&&(_0x2bc3e0['markMultiRangeInsertion'](_0x449ac3,'tablePaste',{'tablePasteChainId':_0x2869e2,'skipNestingCheck':!0x0}),_0x449ac3['forEach'](_0x1ff599=>_0x1ff599['detach']?.())),_0x130b48['length']&&(_0x2bc3e0['markMultiRangeDeletion'](_0x130b48,'tablePaste',{'tablePasteChainId':_0x2869e2,'skipNestingCheck':!0x0}),_0x130b48['forEach'](_0x270b47=>_0x270b47['detach']?.()));const _0x1815b5=_0x2bc3e0['markMultiRangeBlockFormat'](_0x48d6b6['map'](({element:_0xb1ace2})=>_0xb1ace2),{'formatGroupId':_0x4adad1()},[],'tablePasteCell',{'tablePasteChainId':_0x2869e2});if(_0x1815b5){const _0x549674=_0x1815b5['getMarkers'](),_0x419d5e=[];for(const {element:_0x4f6878,attributes:_0x3fa735}of _0x48d6b6){if(!_0x3fa735)continue;const _0x1e141e=_0x42f033['model']['createRangeOn'](_0x4f6878),_0xf04121=_0x549674['find'](_0x1c287e=>_0x1c287e['getRange']()['isEqual'](_0x1e141e));_0xf04121&&_0x419d5e['push']([_0xf04121['name'],_0x3fa735]);}_0x419d5e['length']&&_0x1815b5['setAttribute']('markerAttributes',Object['fromEntries'](_0x419d5e));}_0x4ae6e8=null;}));},{'priority':_0x5b0b49['high']+0xa}),_0x42f033['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x426f99,_0x6d447b)=>{const [_0xe02dac,_0x449a61,,_0x5c1783]=_0x6d447b;if(!_0x4ae6e8)return;_0x426f99['stop']();const _0x2cc7b2=_0xe02dac['cell'],_0x4c8511=_0x449a61,_0x483e0f=Oe(_0x2cc7b2),_0x3eade7=Oe(_0x4c8511);_0x426f99['return']=_0x2cc7b2;let _0x497a8e=null,_0x58606c=null;if(_0x3eade7||_0x483e0f){if(_0x483e0f&&!_0x3eade7){_0x5c1783['remove'](_0x2cc7b2['getChild'](0x0));for(const _0x433a42 of Array['from'](_0x4c8511['getChildren']()))_0x5c1783['insert'](_0x433a42,_0x2cc7b2,'end');const _0xc956bd=_0x4ae6e8['rowInsertionIndexes']['includes'](_0xe02dac['row']),_0x4c98f3=_0x4ae6e8['columnInsertionIndexes']['includes'](_0xe02dac['column']);_0xc956bd||_0x4c98f3||(_0x497a8e=_0x31bd77['fromRange'](_0x5c1783['createRangeIn'](_0x2cc7b2)));}else _0x3eade7&&!_0x483e0f&&(_0x58606c=_0x5c1783['createRangeIn'](_0x2cc7b2));}else{const _0x33828a=_0x5c1783['createElement']('tableCellSuggestion'),_0x3e9bc9=_0x5c1783['createElement']('tableCellSuggestion');_0x5c1783['wrap'](_0x5c1783['createRangeIn'](_0x2cc7b2),_0x3e9bc9),_0x5c1783['insert'](_0x33828a,_0x2cc7b2,0x0);for(const _0x4c7f6b of Array['from'](_0x4c8511['getChildren']()))_0x5c1783['insert'](_0x4c7f6b,_0x33828a,'end');_0x497a8e=_0x31bd77['fromRange'](_0x5c1783['createRangeOn'](_0x33828a)),_0x58606c=_0x31bd77['fromRange'](_0x5c1783['createRangeOn'](_0x3e9bc9));}const _0x101716=Array['from'](_0x4c8511['getAttributes']())['filter'](([_0x476fe0])=>Be['includes'](_0x476fe0));_0x4ae6e8['cells']['push']({'element':_0x2cc7b2,'attributes':_0x101716['length']?Object['fromEntries'](_0x101716):null}),_0x497a8e&&_0x4ae6e8['insertionRanges']['push'](_0x497a8e),_0x58606c&&_0x4ae6e8['deletionRanges']['push'](_0x58606c);},{'priority':'high'}),_0xf353f8['on']('insertColumns',(_0x119793,_0x2bdd2d)=>{const [_0x2e7afe,_0x5545a4={}]=_0x2bdd2d;if(!_0x4ae6e8)return;const _0x5a9c1a=_0x5545a4['at']||0x0,_0x3f494d=_0x5545a4['columns']||0x1;_0x4ae6e8['columnInsertionIndexes']=new Array(_0x3f494d)['fill'](_0x5a9c1a)['map']((_0xbf3b0b,_0x4c0cab)=>_0xbf3b0b+_0x4c0cab);for(const {cell:_0x5c4605}of _0xf353f8['createTableWalker'](_0x2e7afe,{'startColumn':_0x5a9c1a,'endColumn':_0x5a9c1a+_0x3f494d-0x1}))_0x4ae6e8['columnInsertionRanges']['push'](_0x42f033['model']['createRangeOn'](_0x5c4605));},{'priority':'low'}),_0xf353f8['on']('insertRows',(_0x4ee2a8,_0x5b6fc0)=>{const [_0x9f4dd0,_0x40e129={}]=_0x5b6fc0;if(!_0x4ae6e8)return;const _0xb1fdac=_0x40e129['at']||0x0,_0x3a3a3b=_0x40e129['rows']||0x1;_0x4ae6e8['rowInsertionIndexes']=new Array(_0x3a3a3b)['fill'](_0xb1fdac)['map']((_0x49da97,_0x271efc)=>_0x49da97+_0x271efc);for(const {cell:_0x418048}of _0xf353f8['createTableWalker'](_0x9f4dd0,{'startRow':_0xb1fdac,'endRow':_0xb1fdac+_0x3a3a3b-0x1}))_0x4ae6e8['rowInsertionRanges']['push'](_0x42f033['model']['createRangeOn'](_0x418048));},{'priority':'low'}),_0x2bc3e0['descriptionFactory']['registerDescriptionCallback'](_0x2d0c61=>{if(_0x2d0c61['subType']&&_0x2d0c61['subType']['startsWith']('tablePaste'))return _0x2d0c61['previous']?{}:{'type':'insertion','content':c(_0x42f033['locale'],'*Replace\x20table\x20cells*')};});const _0x23f314=()=>!0x1;for(const _0x408a47 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('insertion',_0x408a47,'join',_0x23f314),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('deletion',_0x408a47,'join',_0x23f314),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x408a47,'join',_0x23f314);_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x23f314),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x47878b,_0x5379fc,_0x3e1a76)=>{const _0x26735d=_0x47878b['map'](_0x239dcd=>_0x239dcd['getContainedElement']())['filter'](_0x5205b4=>_0x5205b4),_0x342764=new Map(_0x26735d['map'](_0x5f2a79=>[_0x5f2a79,null]));if(_0x4ae6e8){for(const {element:_0x1ae437,attributes:_0x49a739}of _0x4ae6e8['cells'])_0x49a739&&_0x342764['set'](_0x1ae437,_0x49a739);}else{if(_0x3e1a76&&_0x3e1a76['markerAttributes'])for(const [_0x66df52,_0x3de0ed]of Object['entries'](_0x3e1a76['markerAttributes'])){const _0x4a8dcd=_0x42f033['model']['markers']['get'](_0x66df52),_0x10c736=_0x4a8dcd?_0x4a8dcd['getRange']()['getContainedElement']():null;_0x10c736&&_0x342764['set'](_0x10c736,_0x3de0ed);}}_0x42f033['model']['change'](_0x331505=>{for(const [_0x3f2cef,_0x23f013]of _0x342764)_0x331505['setAttributes']({...xe,..._0x23f013},_0x3f2cef);});});const _0x210bcf=(_0x42f520,_0x12e302)=>{_0x2bc3e0['_suggestionFactory']['registerCustomCallback'](_0x42f520,'tablePaste',_0x12e302,(_0x3caf29,_0x4bf355,_0x508306)=>{_0x42f033['model']['change'](_0x4069e0=>{const _0x1f96bc=[];for(const _0x93ccd4 of _0x3caf29){const _0x56971f=_0x93ccd4['start']['nodeAfter'];_0x56971f['is']('element','tableCellSuggestion')&&_0x1f96bc['push'](_0x56971f);}_0x2bc3e0['_suggestionFactory']['getSuggestionCallback'](_0x42f520,null,_0x12e302)(_0x3caf29,_0x4bf355,_0x508306);for(const _0x23b67f of _0x1f96bc)'$graveyard'!=_0x23b67f['root']['rootName']&&_0x4069e0['unwrap'](_0x23b67f);});});};_0x210bcf('insertion','accept'),_0x210bcf('insertion','discard'),_0x210bcf('deletion','accept'),_0x210bcf('deletion','discard'),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x9860d7=>{const _0xc1cd1d=_0x9860d7['map'](_0x164b6d=>_0x164b6d['getContainedElement']()),_0x4e7cb5=_0xc1cd1d[0x0]['findAncestor']('table'),{minRow:_0xa5ad87,maxRow:_0x5b19db}=_0x54609a['_getCoordsForCells'](_0xc1cd1d);_0xf353f8['removeRows'](_0x4e7cb5,{'at':_0xa5ad87,'rows':_0x5b19db-_0xa5ad87+0x1});}),_0x2bc3e0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xf3b34c=>{const _0x1ecebf=_0xf3b34c['map'](_0x3000b9=>_0x3000b9['getContainedElement']()),_0x49b8a9=_0x1ecebf[0x0]['findAncestor']('table'),{minColumn:_0xcfcc4d,maxColumn:_0x29be70}=_0x54609a['_getCoordsForCells'](_0x1ecebf);_0xf353f8['removeColumns'](_0x49b8a9,{'at':_0xcfcc4d,'columns':_0x29be70-_0xcfcc4d+0x1});});const _0x5a0934=(_0x583b34,_0x3e65b6)=>{if(!_0x3e65b6['subType']||!_0x3e65b6['subType']['startsWith']('tablePaste'))return;const _0x2c0298=_0x3e65b6['attributes']['tablePasteChainId'],_0x317b8e=_0x2bc3e0['getSuggestions']()['filter'](_0x591809=>_0x591809['isInContent']&&_0x591809['attributes']&&_0x591809['attributes']['tablePasteChainId']==_0x2c0298);_0x317b8e['length']&&_0x3e65b6['getAllAdjacentSuggestions']()['length']!=_0x317b8e['length']&&_0x317b8e['reduce']((_0x5046c9,_0x3c5f4a)=>(_0x5046c9['next']=_0x3c5f4a,_0x3c5f4a['previous']=_0x5046c9,_0x3c5f4a));};function _0x280855(_0x10255f,_0x479d97=!0x0){const {id:_0x9c68c8,authorId:_0x10c6a2}=_0x2bc3e0['_splitMarkerName'](_0x10255f['markerName']),_0x1023c2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x184fa9=_0x2bc3e0['activeMarkers']['includes'](_0x10255f['markerName']);return _0x184fa9&&_0x1023c2['push']('ck-suggestion-marker--active'),{'classes':_0x1023c2,'attributes':{'data-suggestion':_0x9c68c8,'data-author-id':_0x10c6a2},'priority':_0x184fa9&&_0x479d97?0xbc2:0xbb8};}_0x2bc3e0['on']('suggestionLoaded',_0x5a0934,{'priority':'high'}),_0x2bc3e0['on']('suggestionUnloaded',_0x5a0934,{'priority':'high'}),_0x42f033['model']['document']['registerPostFixer'](()=>{let _0x404a27=!0x1;const _0x2f915d=Array['from'](_0x42f033['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41906b,data:_0x4c35da}of _0x2f915d){const {group:_0x3abce3,type:_0x19ba45,id:_0x1222d5}=_0x2bc3e0['_splitMarkerName'](_0x41906b);if('suggestion'!=_0x3abce3||'deletion'!=_0x19ba45||_0x4c35da['oldRange'])continue;if(!_0x2bc3e0['hasSuggestion'](_0x1222d5))continue;const _0x203601=_0x2bc3e0['getSuggestion'](_0x1222d5)['getRanges'](),_0x391f86=_0x42f033['plugins']['get']('Users')['me'];for(const _0x2a4b85 of _0x2bc3e0['getSuggestions']()){if(!_0x2a4b85['isInContent']||_0x2a4b85['author']!=_0x391f86)continue;if('formatBlock'!=_0x2a4b85['type']||'tablePasteCell'!=_0x2a4b85['subType'])continue;if(_0x2a4b85['getRanges']()['every'](_0x20efd3=>_0x203601['some'](_0xd073f9=>_0xd073f9['containsRange'](_0x20efd3,!0x0)))){for(const _0x3df38e of _0x2a4b85['getAllAdjacentSuggestions']())_0x3df38e['isInContent']&&(_0x3df38e['discard'](),_0x404a27=!0x0);}}}return _0x404a27;}),_0x42f033['model']['document']['registerPostFixer'](_0x2a2b62=>{const _0x4097c9=_0x42f033['commands']['get']('redo');if(!_0x4097c9||!_0x4097c9['_createdBatches']['has'](_0x2a2b62['batch']))return!0x1;let _0x2e4a36=!0x1;const _0x2c8895=_0x42f033['plugins']['get']('Users')['me'],_0x1194f7=_0x42f033['model']['document']['differ']['getChanges'](),_0x59c791=Array['from'](_0x42f033['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x413ca1,data:_0x134a1c})=>{const {group:_0x41b9c6,subType:_0x267756,authorId:_0x121d6d}=_0x2bc3e0['_splitMarkerName'](_0x413ca1);return'suggestion'==_0x41b9c6&&'tablePaste'==_0x267756&&_0x121d6d==_0x2c8895['id']&&!_0x134a1c['oldRange'];});for(const _0x1cc71a of _0x1194f7){if('insert'!=_0x1cc71a['type']||'tableCellSuggestion'!=_0x1cc71a['name']||0x1!=_0x1cc71a['length'])continue;const _0x2dfe0e=_0x2a2b62['createRange'](_0x1cc71a['position'],_0x1cc71a['position']['getShiftedBy'](0x1));if(!_0x59c791['find'](({data:_0xa9a07b})=>_0xa9a07b['newRange']['isEqual'](_0x2dfe0e))){for(const {name:_0x111c96,data:_0x5e4157}of _0x59c791)if(_0x2dfe0e['containsRange'](_0x5e4157['newRange'])){_0x2a2b62['updateMarker'](_0x111c96,{'range':_0x2dfe0e}),_0x2e4a36=!0x0;break;}}}return _0x2e4a36;}),_0x42f033['model']['document']['registerPostFixer'](_0x39212e=>{let _0x6b3254=!0x1;const _0x5bf104=_0x42f033['plugins']['get']('Users')['me'],_0x44c30e=_0x2bc3e0['getSuggestions']()['filter'](_0xd13436=>_0xd13436['isInContent']&&_0xd13436['author']==_0x5bf104),_0x5aa830=new Set(),_0x53e419=new Set();for(const _0x580aa0 of _0x44c30e)if('tablePaste'==_0x580aa0['subType'])for(const _0x17bb44 of _0x580aa0['getMarkers']()){const _0x57617d=_0x17bb44['getRange']()['getContainedElement']();if(_0x57617d){if(_0x57617d['is']('element','tableCellSuggestion')&&Oe(_0x57617d)){_0x580aa0['removeMarker'](_0x17bb44['name']),_0x5aa830['add'](_0x57617d),_0x6b3254=!0x0;const _0x28b36f=_0x57617d['nextSibling'],_0xb58017=_0x57617d['previousSibling'],_0x526efb=_0x28b36f&&_0x28b36f['is']('element','tableCellSuggestion'),_0x18e66d=_0xb58017&&_0xb58017['is']('element','tableCellSuggestion');_0x526efb&&!_0x5aa830['has'](_0x28b36f)&&_0x53e419['add'](_0x28b36f),_0x18e66d&&!_0x5aa830['has'](_0xb58017)&&_0x53e419['add'](_0xb58017);}else _0x57617d['is']('element','paragraph')&&_0x57617d['isEmpty']&&(_0x580aa0['removeMarker'](_0x17bb44['name']),_0x6b3254=!0x0);}}else{if('tablePasteCell'==_0x580aa0['subType']){if(!_0x580aa0['attributes']||!_0x580aa0['attributes']['tablePasteChainId'])continue;const _0x302e04=_0x580aa0['attributes']['markerAttributes'];if(_0x302e04&&Object['keys'](_0x302e04)['length'])continue;const _0x471b6d=_0x580aa0['attributes']['tablePasteChainId'];let _0x29f93a=!0x0,_0x35916a=!0x0;for(const _0x1ab06e of _0x44c30e)if(_0x1ab06e['subType']&&_0x1ab06e['subType']['startsWith']('tablePaste')){if(!_0x1ab06e['attributes']['tablePasteChainId']){_0x35916a=!0x1;break;}if(_0x1ab06e['id']!=_0x580aa0['id']&&_0x1ab06e['attributes']['tablePasteChainId']==_0x471b6d){_0x29f93a=!0x1;break;}}_0x35916a&&_0x29f93a&&(_0x580aa0['removeMarkers'](),_0x6b3254=!0x0);}}for(const _0x20ea05 of _0x5aa830)_0x39212e['remove'](_0x20ea05);for(const _0x360489 of _0x53e419)_0x39212e['unwrap'](_0x360489);return _0x6b3254;}),_0x42f033['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x27c913=>_0x280855(_0x27c913),'converterPriority':'high'}),_0x42f033['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x324406,_0x2c3c7d)=>_0x2c3c7d['options']['showSuggestionHighlights']?_0x280855(_0x324406,!0x1):null,'converterPriority':'high'});const _0x45d967=_0x42f033['editing']['view'];this['listenTo'](_0x45d967['document'],'clipboardOutput',(_0x4a9a03,_0x2a2225)=>{const _0x3d8da0=[];for(const _0x1cb4b1 of _0x45d967['createRangeIn'](_0x2a2225['content'])['getItems']())_0x1cb4b1['is']('element','suggestion-td')&&_0x3d8da0['push'](_0x1cb4b1);_0x45d967['change'](_0x12b8ad=>{for(const _0x5d8d82 of _0x3d8da0)_0x12b8ad['move'](_0x12b8ad['createRangeIn'](_0x5d8d82),_0x12b8ad['createPositionBefore'](_0x5d8d82)),_0x12b8ad['remove'](_0x5d8d82);});});}}function Oe(_0x2a91d9){if(_0x2a91d9['isEmpty'])return!0x0;const _0x236f89=_0x2a91d9['getChild'](0x0);return _0x236f89['is']('element','paragraph')&&_0x236f89['isEmpty'];}function Ue(_0x85bfaa,_0x9c6c4a={},_0x2e9e1e){for(const {isAnchor:_0x245692,cellHeight:_0x24a582,cellWidth:_0xf45cfc}of _0x2e9e1e['createTableWalker'](_0x85bfaa,{'includeAllSlots':!0x0,..._0x9c6c4a}))if(!_0x245692||0x1!=_0x24a582||0x1!=_0xf45cfc)return!0x1;return!0x0;}class Dt extends _0x159581{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3b842e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b842e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3b842e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3b842e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b842e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3b842e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3b842e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1dcb17,_0x500724){const _0x521b9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x442bc2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e9bda=_0x500724['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3eedc4=_0x442bc2['getColumnGroupElement'](_0x1e9bda);let _0x211a08=_0x3eedc4?_0x442bc2['getTableColumnsWidths'](_0x3eedc4):null,_0x19efe8=_0x1e9bda['getAttribute']('tableWidth')||null;const _0x15a79a=_0x500724['tableWidth']||_0x19efe8,_0x51510b=_0x500724['columnWidths']||_0x211a08,_0x231618=this['editor']['plugins']['get']('Users')['me'];for(const _0x314742 of _0x521b9f['getSuggestions']()){const _0x8ac68b=_0x314742['getContainedElement']();if('resizeTable'===_0x314742['subType']&&_0x8ac68b===_0x1e9bda){_0x314742['author']!==_0x231618&&_0x314742['discard']();const _0x4d4ebf=_0x314742['data']['commandParams'];_0x19efe8=_0x4d4ebf[0x0]['tableWidth'],_0x211a08=_0x4d4ebf[0x0]['columnWidths'];break;}}_0x1dcb17({'table':_0x1e9bda,'tableWidth':_0x15a79a,'columnWidths':_0x51510b}),_0x521b9f['markBlockFormat'](_0x1e9bda,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x19efe8,'columnWidths':_0x211a08}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1e142f){if('formatBlock'!=_0x1e142f['type']&&'formatInline'!=_0x1e142f['type'])return;const {data:_0xa874cf}=_0x1e142f;if(_0xa874cf&&'resizeTable'===_0xa874cf['formatGroupId']){const _0x173150='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x173150)};}}}class Mt extends _0x159581{['afterInit'](){const _0x126f34=this['editor'];_0x126f34['plugins']['has']('Template')&&_0x126f34['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x159581{['afterInit'](){const _0x31bfdd=this['editor'];if(!_0x31bfdd['commands']['get']('insertTableOfContents'))return;_0x31bfdd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5ec625=_0x31bfdd['plugins']['get']('TrackChangesEditing'),_0x1ec8c5=_0x31bfdd['locale'];_0x5ec625['descriptionFactory']['registerElementLabel']('tableOfContents',_0x19b85e=>c(_0x1ec8c5,'ELEMENT_TABLE_OF_CONTENTS',_0x19b85e));}}class Bt extends _0x159581{['afterInit'](){const _0x681c77=this['editor'];if(!_0x681c77['plugins']['has']('Title'))return;const _0x1b4d4a=_0x681c77['plugins']['get']('TrackChangesEditing');_0x1b4d4a['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x681c77['locale'],'ELEMENT_TITLE')),_0x681c77['model']['document']['registerPostFixer'](_0x3ed349=>{let _0x45e62f=!0x1;const _0x193fbe=Array['from'](_0x681c77['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13cd5a,data:_0xd9be0b}of _0x193fbe){const {group:_0x44ef39}=_0x1b4d4a['_splitMarkerName'](_0x13cd5a);if('suggestion'!==_0x44ef39||!_0xd9be0b['newRange'])continue;const _0x5cfa35=_0xd9be0b['newRange'],_0x123524=_0x5cfa35['end']['nodeBefore'];if(!_0x123524||!_0x123524['is']('element','title-content'))continue;if(!_0x5cfa35['start']['isTouching'](_0x5cfa35['end']))continue;const _0x5c71a9=_0x681c77['model']['schema']['getNearestSelectionRange'](_0x5cfa35['end'],'forward');if(_0x5c71a9&&_0x5c71a9['isCollapsed']){const _0x4fa4b7=_0x3ed349['createRange'](_0x5cfa35['start'],_0x5c71a9['start']);_0x4fa4b7['isEqual'](_0x5cfa35)||(_0x3ed349['updateMarker'](_0x13cd5a,{'range':_0x4fa4b7}),_0x45e62f=!0x0);}_0x45e62f||(_0x3ed349['removeMarker'](_0x13cd5a),_0x45e62f=!0x0);}return _0x45e62f;});}}class Ot extends _0x159581{['afterInit'](){const _0x46b093=this['editor'],_0x30cc02=_0x46b093['plugins']['get']('TrackChangesEditing');_0x46b093['plugins']['has']('Uploadcare')&&(_0x30cc02['enableCommand']('uploadcare'),_0x46b093['plugins']['has']('UploadcareImageEdit')&&(_0x30cc02['enableCommand']('uploadcareImageEdit'),_0x30cc02['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x30cc02['registerBlockAttribute']('uploadcareImageId'),_0x30cc02['descriptionFactory']['registerDescriptionCallback'](_0xb1cb97=>{if('attribute'!=_0xb1cb97['type'])return;const {data:_0x2c4b45}=_0xb1cb97;return _0x2c4b45&&'uploadcareImageId'==_0x2c4b45['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x159581{['afterInit'](){const _0x287172=this['editor'],_0x5684ed=_0x287172['plugins']['get']('TrackChangesEditing');_0x287172['plugins']['has']('UndoEditing')&&(_0x5684ed['enableCommand']('undo'),_0x5684ed['enableCommand']('redo'));}}class xt extends _0x159581{static get['requires'](){return[_t];}['afterInit'](){const _0x5db3c8=this['editor'];if(!_0x5db3c8['plugins']['has']('TableCaptionEditing'))return;_0x5db3c8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x159581{['tableProperties'];['tableCellProperties'];constructor(_0x28b6fd){super(_0x28b6fd),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 _0x27c610=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x14557f of this['tableProperties'])_0x27c610['enableCommand'](_0x14557f,(_0x4ac7e2,_0x2fdc44)=>{const _0x1c6ae0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x14557f,[_0x1c6ae0],this['tableProperties'],'tableProperties',_0x4ac7e2,_0x2fdc44);});_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x27c610['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c0493,_0x2a3ece)=>this['handleDiscardAction'](this['tableProperties'],_0x5c0493,_0x2a3ece)),_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x517501 of this['tableCellProperties'])_0x27c610['enableCommand'](_0x517501,(_0x41040b,_0x5ef978)=>{const _0x4c0442=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x517501,_0x4c0442,this['tableCellProperties'],'tableCellProperties',_0x41040b,_0x5ef978);});_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x27c610['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x47fca0,_0x26b7e0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x47fca0,_0x26b7e0)),_0x27c610['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x27c610['descriptionFactory']['registerDescriptionCallback'](_0xfb7f19=>this['handleSuggestionDescription'](_0xfb7f19));}['_handlePropertyChange'](_0x4efb2e,_0x1534d7,_0x506fb7,_0x5f3258,_0x3a4d2e,_0x554154){const _0x5df0c5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x554154['batch'],()=>{for(const _0x3881f0 of _0x1534d7){if(this['_getSuggestion'](_0x3881f0,_0x5f3258))_0x3a4d2e(_0x554154);else{const _0xbf0681={};for(const _0x1965d2 of _0x506fb7){const _0x4ad07b=_0x3881f0['getAttribute'](_0x1965d2);void 0x0!==_0x4ad07b&&(_0xbf0681[_0x1965d2]=_0x4ad07b);}_0x3a4d2e(_0x554154),_0x5df0c5['markBlockFormat'](_0x3881f0,{'commandParams':[_0xbf0681]},[],_0x5f3258);}}});}['handleDiscardAction'](_0x1cca0a,_0x392279,_0x55a255){const _0x58e8b5=_0x392279[0x0]['start']['nodeAfter'],_0xf954c9=_0x55a255['commandParams'][0x0];this['editor']['model']['change'](_0x42aae7=>{for(const _0x11bc9f of _0x1cca0a)void 0x0!==_0xf954c9[_0x11bc9f]?_0x42aae7['setAttribute'](_0x11bc9f,_0xf954c9[_0x11bc9f],_0x58e8b5):_0x42aae7['removeAttribute'](_0x11bc9f,_0x58e8b5);});}['handleSuggestionDescription'](_0x32d0f5){if(_0x32d0f5['data'])switch(_0x32d0f5['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x54090d,_0x3d0161){const _0x5e271c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x528b3c of _0x5e271c['getSuggestions']({'skipNotAttached':!0x0})){const _0x4b17d2=_0x528b3c['getContainedElement']();if(_0x528b3c['subType']===_0x3d0161&&_0x4b17d2===_0x54090d)return _0x528b3c;}return null;}}const u='$elementName';class p extends _0x159581{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x446c4e,_0xa7d8f2,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x227fc6){super(_0x227fc6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2d3a1a,_0x49fa7c,_0x28149c,_0x1acbdf)=>{this['_model']['change'](()=>{for(const _0x2557c2 of[..._0x1acbdf,..._0x28149c])this['_model']['markers']['has'](_0x2557c2)&&_0x227fc6['editing']['reconvertMarker'](_0x2557c2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x227fc6['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x227fc6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x227fc6['config']['get']('trackChanges.trackFormatChanges'),_0x227fc6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x227fc6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x227fc6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x140390=this['editor'],_0x271198=(_0xc14cbf,_0x4fb9b3)=>{if('attribute'!=_0xc14cbf)return'ck-suggestion-marker-'+_0xc14cbf;const _0x1be1df=_0x4fb9b3['split']('|')[0x0];return this['_isBlockAttribute'](_0x1be1df)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x140390['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x540d04=>{const {id:_0x44db75,authorId:_0x4dc8b2,type:_0x1942cc,subType:_0x392da9}=this['_splitMarkerName'](_0x540d04['markerName']),_0x4e61a1=['ck-suggestion-marker',_0x271198(_0x1942cc,_0x392da9)];let _0x15c1fa=0xbb8;return this['activeMarkers']['includes'](_0x540d04['markerName'])&&(_0x4e61a1['push']('ck-suggestion-marker--active'),_0x15c1fa=0xbc2),'deletion'==_0x1942cc&&(_0x15c1fa+=0x5),{'classes':_0x4e61a1,'attributes':{'data-suggestion':_0x44db75,'data-author-id':_0x4dc8b2},'priority':_0x15c1fa};}}),_0x140390['conversion']['for']('dataDowncast')['add'](_0x26baa6=>{_0x26baa6['on']('addMarker:suggestion',(_0x274954,_0x2b7b5e,_0x28df1f)=>{if(!_0x28df1f['options']['showSuggestionHighlights'])return;const _0x100e6c=_0x2b7b5e['item'];if(!_0x100e6c)return;const _0x494121=_0x28df1f['mapper']['toViewElement'](_0x100e6c);_0x140390['model']['schema']['isObject'](_0x100e6c)&&_0x494121&&!_0x494121['getCustomProperty']('widget')&&_0x494121['is']('containerElement')&&_0xcf9d12(_0x494121,_0x28df1f['writer']);},{'priority':'high'});}),_0x140390['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4327f2,_0x492276)=>{if(!_0x492276['options']['showSuggestionHighlights'])return null;const {type:_0x4119de,subType:_0x486e40}=this['_splitMarkerName'](_0x4327f2['markerName']);return{'classes':['ck-suggestion-marker',_0x271198(_0x4119de,_0x486e40)],'priority':0xbb8};}});const _0x478204=({showActiveMarkers:_0x5e6e09=!0x0,isAttributeSuggestion:_0x5f07f8=!0x1}={})=>(_0x5a7245,_0x1c2ef0,_0x227e6f)=>{if(!_0x1c2ef0['item'])return;const {id:_0x295f31,authorId:_0x390519}=this['_splitMarkerName'](_0x1c2ef0['markerName']);if(_0x5f07f8){const _0x53e543=this['_suggestions']['get'](_0x295f31),_0x56a805=this['_getAttributeKey'](_0x53e543);if(!this['_isBlockAttribute'](_0x56a805))return;}if(_0x1c2ef0['item']['is']('selection'))return void _0x227e6f['consumable']['consume'](_0x1c2ef0['item'],_0x5a7245['name']);const _0x296115=_0x227e6f['mapper']['toViewElement'](_0x1c2ef0['item']);if(_0x1c2ef0['item']['is']('element')&&_0x140390['model']['schema']['isBlock'](_0x1c2ef0['item'])&&!_0x296115['getCustomProperty']('addHighlight')){_0x227e6f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x296115),_0x227e6f['writer']['setAttribute']('data-suggestion',_0x295f31,_0x296115),_0x227e6f['writer']['setAttribute']('data-author-id',_0x390519,_0x296115),_0x227e6f['mapper']['bindElementToMarker'](_0x296115,_0x1c2ef0['markerName']),_0x5e6e09&&(this['activeMarkers']['includes'](_0x1c2ef0['markerName'])?_0x227e6f['writer']['addClass']('ck-suggestion-marker--active',_0x296115):_0x227e6f['writer']['removeClass']('ck-suggestion-marker--active',_0x296115));for(const _0x374547 of _0x140390['model']['createRangeIn'](_0x1c2ef0['item'])['getItems']())_0x227e6f['consumable']['consume'](_0x374547,_0x5a7245['name']);_0x227e6f['consumable']['consume'](_0x1c2ef0['item'],_0x5a7245['name']);}};_0x140390['conversion']['for']('dataDowncast')['add'](_0x224817=>{_0x224817['on']('addMarker:suggestion:formatBlock',(_0x501173,_0x430d70,_0x31c906)=>{_0x31c906['options']['showSuggestionHighlights']&&_0x478204({'showActiveMarkers':!0x1})(_0x501173,_0x430d70,_0x31c906);},{'priority':'highest'});}),_0x140390['conversion']['for']('dataDowncast')['add'](_0x1c5790=>{_0x1c5790['on']('addMarker:suggestion:attribute',(_0x380108,_0x46f9ab,_0x5a1cd6)=>{_0x5a1cd6['options']['showSuggestionHighlights']&&_0x478204({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x380108,_0x46f9ab,_0x5a1cd6);},{'priority':'highest'});}),_0x140390['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x472411,_0x247aec)=>_0x247aec['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x472411['substr'](0xb)}}),_0x140390['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x86ac11,{writer:_0x39434f})=>{let _0x423bf0='suggestion:'+_0x86ac11['getAttribute']('suggestion-type')+':'+_0x86ac11['getAttribute']('id');return _0x86ac11['getAttribute']('marker-count')&&(_0x423bf0+=':'+_0x86ac11['getAttribute']('marker-count')),_0x39434f['createElement']('$marker',{'data-name':_0x423bf0});}}),_0x140390['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x140390['conversion']['for']('editingDowncast')['add'](_0x1f0813=>{_0x1f0813['on']('addMarker:suggestion:formatBlock',_0x478204(),{'priority':'high'});}),_0x140390['conversion']['for']('editingDowncast')['add'](_0x8c3a94=>{_0x8c3a94['on']('addMarker:suggestion:attribute',_0x478204({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x140390['conversion']['for']('editingDowncast')['add'](_0x37108b=>{_0x37108b['on']('removeMarker:suggestion:formatBlock',(_0x5ae4f2,_0x34a3b2,_0x3de2e2)=>{const _0x5487b8=_0x3de2e2['mapper']['markerNameToElements'](_0x34a3b2['markerName']);if(_0x5487b8){for(const _0x2df3c8 of _0x5487b8)_0x2df3c8['getCustomProperty']('addHighlight')||(_0x3de2e2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2df3c8),_0x3de2e2['writer']['removeAttribute']('data-suggestion',_0x2df3c8),_0x3de2e2['writer']['removeAttribute']('data-author-id',_0x2df3c8),_0x3de2e2['mapper']['unbindElementFromMarkerName'](_0x2df3c8,_0x34a3b2['markerName']));}},{'priority':'high'});}),_0x140390['conversion']['for']('editingDowncast')['add'](_0x56b780=>{_0x56b780['on']('removeMarker:suggestion:attribute',(_0x2033c4,_0x141103,_0xf616bb)=>{const _0x4e0bd5=_0xf616bb['mapper']['markerNameToElements'](_0x141103['markerName']);if(!_0x4e0bd5)return;const {id:_0x525b1a}=this['_splitMarkerName'](_0x141103['markerName']),_0x45b9ed=this['_suggestions']['get'](_0x525b1a),_0x38cdbe=this['_getAttributeKey'](_0x45b9ed);if(this['_isBlockAttribute'](_0x38cdbe)){for(const _0x1f3b20 of _0x4e0bd5)_0x1f3b20['getCustomProperty']('addHighlight')||(_0xf616bb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f3b20),_0xf616bb['writer']['removeAttribute']('data-suggestion',_0x1f3b20),_0xf616bb['writer']['removeAttribute']('data-author-id',_0x1f3b20),_0xf616bb['mapper']['unbindElementFromMarkerName'](_0x1f3b20,_0x141103['markerName']));}},{'priority':'high'});}),_0x140390['model']['document']['registerPostFixer'](_0x5b10cf=>{let _0x576527=!0x1;const _0x20bb83=Array['from'](_0x140390['model']['document']['differ']['getChangedMarkers']()),_0x6360ce=new Set();for(const {name:_0x1c30b0,data:_0x4d9908}of _0x20bb83){const {group:_0x31a161,type:_0xb22bb7,subType:_0xb83067,id:_0x5d8297}=this['_splitMarkerName'](_0x1c30b0);if('suggestion'!==_0x31a161)continue;const _0x3c6c4a=this['_suggestions']['get'](_0x5d8297);if(null!=_0x4d9908['newRange']){'formatInline'==_0xb22bb7&&(_0x576527=_0x576527||Pt(_0x4d9908['newRange'],_0x1c30b0,_0x5b10cf,_0x140390['model']['schema']));const _0x1111ae='attribute'==_0xb22bb7&&this['_isBlockAttribute'](_0xb83067['split']('|')[0x0]);if(_0x4d9908['newRange']['isCollapsed']||'$graveyard'==_0x4d9908['newRange']['root']['rootName']||'formatBlock'==_0xb22bb7&&!Lt(_0x4d9908['newRange'])||_0x1111ae&&!Lt(_0x4d9908['newRange'])||'deletion'==_0xb22bb7&&!(!Ft(_0x376760=_0x4d9908['newRange'])&&!function(_0xb63ee9){return _0xb63ee9['start']['parent']==_0xb63ee9['end']['nodeBefore']&&_0xb63ee9['start']['isAtEnd'];}(_0x376760)))_0x5b10cf['removeMarker'](_0x1c30b0),_0x576527=!0x0;else{if(!_0x3c6c4a||!_0x3c6c4a['isInContent'])continue;if(_0x4d9908['newRange']&&_0x4d9908['oldRange']&&_0x4d9908['newRange']['isEqual'](_0x4d9908['oldRange']))continue;_0x6360ce['add'](_0x3c6c4a);}}}var _0x376760;return _0x6360ce['size']>0x0&&(_0x576527=!!this['_joinWithAdjacentSuggestions'](_0x6360ce)||_0x576527),_0x576527;}),_0x140390['model']['document']['registerPostFixer'](_0x12e762=>{let _0x308464=!0x1;for(const _0x367a14 of _0x140390['model']['document']['differ']['getChanges']())if('insert'==_0x367a14['type'])for(const _0x44ab48 of this['_suggestions']['values']()){if(_0x44ab48['isMultiRange']||!_0x44ab48['isInContent'])continue;const _0xf5756b='formatBlock'==_0x44ab48['type'],_0x546547=this['_getAttributeKey'](_0x44ab48),_0x9bfb7e=_0x546547&&this['_isBlockAttribute'](_0x546547);if(!_0xf5756b&&!_0x9bfb7e)continue;const _0x1b9b35=_0x44ab48['getFirstRange']();if(_0x1b9b35['start']['parent']!=_0x1b9b35['end']['parent']&&!_0x1b9b35['end']['isAtEnd']){const _0x4a286b=_0x140390['model']['createPositionAt'](_0x1b9b35['start']['nodeAfter'],'end'),_0x2c6653=_0x140390['model']['createRange'](_0x1b9b35['start'],_0x4a286b);_0x12e762['updateMarker'](_0x44ab48['getFirstMarker'](),{'range':_0x2c6653}),_0x308464=!0x0;}}return _0x308464;}),_0x140390['model']['document']['registerPostFixer'](_0x3b4865=>this['_processAttributeChanges'](_0x3b4865)),_0x140390['model']['document']['registerPostFixer'](_0x109476=>!_0x109476['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x109476)),_0x140390['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x140390['model']['document']['on']('change:data',(_0x80efc4,_0x26af9b)=>{if(!_0x26af9b['isLocal']||_0x26af9b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x438c0d=_0x140390['model']['document']['differ']['getChanges']();if(0x0==_0x438c0d['length'])return;const _0x5268ad=[],_0xbf9cbb=_0x438c0d['filter'](_0x1f8de7=>'attribute'==_0x1f8de7['type']),_0x59af2c=_0x438c0d['filter'](_0x5ecbb0=>'insert'==_0x5ecbb0['type']&&'$text'!=_0x5ecbb0['name']);for(const _0x27a3a7 of _0xbf9cbb)this['_isRegisteredAttribute'](_0x27a3a7['attributeKey'])&&_0x5268ad['push']({'key':_0x27a3a7['attributeKey'],'newValue':_0x27a3a7['attributeNewValue'],'oldValue':_0x27a3a7['attributeOldValue'],'range':Jt(_0x27a3a7['range'],_0x140390['model'])});for(const _0x467a58 of _0x59af2c){if('rename'!=_0x467a58['action']&&'refresh'!=_0x467a58['action'])continue;const _0x331c59=Kt(_0x467a58['position']['nodeAfter'],_0x140390['model']),_0x74b964=_0x467a58['before'];'rename'==_0x467a58['action']&&_0x5268ad['push']({'key':u,'newValue':_0x467a58['name'],'oldValue':_0x74b964['name'],'range':_0x331c59});for(const [_0x541314,_0x537dd9]of _0x74b964['attributes']){if(!this['_isRegisteredAttribute'](_0x541314))continue;const _0x2c665c=_0x467a58['attributes']['get'](_0x541314);_0x537dd9!==_0x2c665c&&_0x5268ad['push']({'key':_0x541314,'newValue':_0x2c665c,'oldValue':_0x537dd9,'range':_0x331c59});}for(const [_0x31db89,_0x2554af]of _0x467a58['attributes'])this['_isRegisteredAttribute'](_0x31db89)&&(_0x74b964['attributes']['has'](_0x31db89)||_0x5268ad['push']({'key':_0x31db89,'newValue':_0x2554af,'oldValue':null,'range':_0x331c59}));}0x0!=_0x5268ad['length']&&_0x140390['model']['enqueueChange'](_0x26af9b,_0x209861=>{const _0x5a5e61=_0x4adad1();for(const {range:_0x4649cd,key:_0x4cab43,oldValue:_0x283dfe,newValue:_0x891fc0}of _0x5268ad)this['markAttributeChange'](_0x4649cd,_0x4cab43,_0x283dfe,_0x891fc0,{'groupId':_0x5a5e61});this['_reduceExistingSuggestions'](_0x209861,_0x5268ad);});},{'priority':'lowest'}),_0x140390['model']['markers']['on']('update:suggestion',(_0x2fb3ab,_0x75db68,_0x1ed64d)=>{if(null==_0x1ed64d){const {id:_0xab455}=this['_splitMarkerName'](_0x75db68['name']),_0x2a98c4=this['_suggestions']['get'](_0xab455);_0x2a98c4&&_0x2a98c4['addMarkerName'](_0x75db68['name']);}}),_0x140390['model']['document']['on']('change:data',()=>{const _0x29b72c=Array['from'](_0x140390['model']['document']['differ']['getChangedMarkers']())['filter'](_0x54d4c1=>'suggestion'===this['_splitMarkerName'](_0x54d4c1['name'])['group']);if(0x0===_0x29b72c['length'])return;_0x29b72c['sort']((_0x1b557d,_0x315759)=>{const _0x372ac2=_0x1b557d['data']['oldRange'],_0x2dc7b9=_0x315759['data']['oldRange'];return null===_0x372ac2&&null===_0x2dc7b9?0x0:null===_0x372ac2&&null!==_0x2dc7b9?-0x1:null!==_0x372ac2&&null===_0x2dc7b9?0x1:_0x372ac2['start']['isBefore'](_0x2dc7b9['start'])?-0x1:0x1;});const _0x8bce2f=new Set(),_0x20b0a9=new Set();for(const {name:_0x2c92c7,data:_0x40b4bb}of _0x29b72c){const {id:_0x4ae3d5}=this['_splitMarkerName'](_0x2c92c7);if(null===_0x40b4bb['oldRange']){const _0x5675f0=this['_handleNewSuggestionMarker'](_0x2c92c7);_0x20b0a9['add'](_0x5675f0);}else{const _0x2d1647=this['_suggestions']['get'](_0x4ae3d5);null!==_0x40b4bb['newRange']||_0x2d1647['isInContent']?(_0x8bce2f['add'](_0x2d1647['head']),_0x20b0a9['add'](_0x2d1647)):this['_removeSuggestion'](_0x2d1647);}}_0x20b0a9['size']>0x0&&this['_refreshSuggestionsChain'](_0x20b0a9);for(const _0x2efbda of _0x8bce2f)this['fire']('suggestionChanged',_0x2efbda);}),_0x140390['model']['on']('applyOperation',(_0x32bf22,_0x4044f6)=>{const _0x561bf2=_0x4044f6[0x0];if(!this['_suggestions']['size'])return;if(!_0x561bf2['isDocumentOperation'])return;if(_0x561bf2['batch']['isUndo']||!_0x561bf2['batch']['isLocal'])return;let _0x4a01b9,_0x3e27e8;switch(_0x561bf2['type']){case'insert':_0x4a01b9=_0x140390['model']['createPositionAt'](_0x561bf2['position']),_0x3e27e8=_0x4a01b9['getShiftedBy'](_0x561bf2['howMany']);break;case'split':_0x4a01b9=_0x140390['model']['createPositionAt'](_0x561bf2['splitPosition']),_0x3e27e8=_0x140390['model']['createPositionAt'](_0x561bf2['moveTargetPosition']);break;case'move':_0x4a01b9=_0x140390['model']['createPositionAt'](_0x561bf2['targetPosition']),_0x3e27e8=_0x4a01b9['getShiftedBy'](_0x561bf2['howMany']);break;default:return;}const _0xd372e3=_0x140390['model']['createRange'](_0x4a01b9,_0x3e27e8);_0x140390['model']['change'](()=>{for(const {suggestion:_0x21953f,meta:_0x1caeea}of this['_findSuggestions'](_0xd372e3)){if(_0x21953f['isMultiRange'])continue;if('formatInline'==_0x21953f['type'])continue;const _0x316007=this['_getAttributeKey'](_0x21953f);if(_0x316007&&this['_isBlockAttribute'](_0x316007)&&'split'!=_0x561bf2['type'])continue;const _0x4f0943=_0x21953f['data']&&_0x21953f['data']['multipleBlocks'];('formatBlock'!=_0x21953f['type']||'split'==_0x561bf2['type']&&!_0x4f0943)&&(_0x1caeea['containsRangeInObject']||'insertion'==_0x21953f['type']&&_0x1caeea['isOwn']||_0x21953f['getFirstRange']()['containsRange'](_0xd372e3)&&this['_breakSuggestionMarker'](_0x21953f,_0x4a01b9,_0x3e27e8));}});},{'priority':'lowest'}),_0x140390['model']['on']('deleteContent',(_0x132f71,_0x38c3fc)=>{const _0x4a79b7=_0x38c3fc[0x0],_0x463c63=_0x38c3fc[0x1];if(_0x463c63&&_0x463c63['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4a79b7['isCollapsed'])return;const _0x2163a5=_0x140390['model']['schema'],{start:_0x53acf7,end:_0x4539fe}=_0x4a79b7['getFirstRange'](),_0x5bacc6=_0x53acf7['nodeAfter']&&_0x2163a5['isLimit'](_0x53acf7['nodeAfter'])?null:_0x2163a5['getNearestSelectionRange'](_0x53acf7,'forward'),_0x11f67d=_0x4539fe['nodeBefore']&&_0x2163a5['isLimit'](_0x4539fe['nodeBefore'])?null:_0x2163a5['getNearestSelectionRange'](_0x4539fe,'backward'),_0x22ee64=_0x140390['model']['createRange'](_0x5bacc6?_0x5bacc6['start']:_0x53acf7,_0x11f67d?_0x11f67d['end']:_0x4539fe);_0x140390['model']['change'](_0x59ca98=>{this['markDeletion'](_0x22ee64);const _0x2dd31a=_0x140390['model']['schema']['getNearestSelectionRange'](_0x22ee64['start']);_0x4a79b7['is']('documentSelection')?_0x59ca98['setSelection'](_0x2dd31a):_0x4a79b7['setTo'](_0x2dd31a);}),_0x132f71['stop']();},{'priority':_0x5b0b49['normal']+0xa}),_0x140390['model']['on']('insertContent',(_0x5ab8c0,_0x5738b0)=>{const _0x1e163d=_0x5738b0[_0x5738b0['length']-0x1];_0x1e163d&&_0x1e163d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x140390['model']['change'](()=>{let _0x2cf980=_0x140390['model']['insertContent'](_0x5738b0[0x0],_0x5738b0[0x1],_0x5738b0[0x2],{'forceDefaultExecution':!0x0});if(!_0x2cf980)return;_0x5ab8c0['return']=_0x2cf980['clone']();const _0x4f9e34=_0x2cf980['end']['nodeBefore'],_0x3b14df=_0x140390['model']['schema'];_0x4f9e34&&_0x3b14df['isBlock'](_0x4f9e34)&&!_0x3b14df['isObject'](_0x4f9e34)&&(_0x2cf980=_0x140390['model']['createRange'](_0x2cf980['start'],_0x140390['model']['createPositionAt'](_0x4f9e34,'end'))),this['markInsertion'](_0x2cf980);}),_0x5ab8c0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x447c71=new O(_0x140390,this['_suggestions']);_0x140390['commands']['add']('acceptSuggestion',_0x447c71),this['enableCommand']('acceptSuggestion');const _0x3bbae6=new R(_0x140390,this['_suggestions']);_0x140390['commands']['add']('discardSuggestion',_0x3bbae6),this['enableCommand']('discardSuggestion'),_0x140390['commands']['add']('acceptAllSuggestions',new x(_0x140390,_0x447c71,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x140390['commands']['add']('discardAllSuggestions',new x(_0x140390,_0x3bbae6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x140390['commands']['add']('acceptSelectedSuggestions',new E(_0x140390,_0x447c71,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x140390['commands']['add']('discardSelectedSuggestions',new E(_0x140390,_0x3bbae6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1b2ee3=_0x140390['plugins']['get']('CommentsRepository');this['listenTo'](_0x1b2ee3,'addComment',(_0x3f25a5,{threadId:_0x42faab})=>{const _0x3daf0c=this['_suggestions']['get'](_0x42faab);_0x3daf0c&&_0x3daf0c['commentThread']&&0x1===_0x3daf0c['commentThread']['length']&&this['_updateSuggestionData'](_0x42faab,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1b2ee3,'removeComment',(_0x514449,{threadId:_0x5b856d})=>{const _0x2b2b32=this['_suggestions']['get'](_0x5b856d);_0x2b2b32&&_0x2b2b32['commentThread']&&!_0x2b2b32['commentThread']['length']&&this['_updateSuggestionData'](_0x5b856d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x50fa06){const _0x3c5163=_0x22c365([0x4a,0x6d,0x30,0x54,0x32,0x6e,0x55,0x64,0x68,0x34,0x62,0x45,0x58,0x65,0x51,0x5a,0x53,0x78,0x59,0x48,0x72,0x76,0x69,0x42,0x46,0x41,0x38,0x31,0x56,0x44,0x37,0x71,0x66,0x35,0x52,0x6c,0x7a,0x6a,0x79,0x4c,0x4b,0x50,0x61,0x74,0x4d,0x6b,0x75,0x49,0x77,0x36,0x33,0x47,0x70,0x4f,0x4e,0x67,0x73,0x57,0x63,0x43,0x6f,0x39]),_0x4f02cc=0x623e6598,_0x2c0a80=0x62393a30^_0x4f02cc,_0x11abbf=window[_0x22c365([0x44,0x61,0x74,0x65])][_0x22c365([0x6e,0x6f,0x77])](),_0x7eaa82=_0x50fa06[_0x22c365([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42f496=new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df2aa=>{_0x7eaa82[_0x22c365([0x6f,0x6e,0x63,0x65])](_0x22c365([0x72,0x65,0x61,0x64,0x79]),_0x3df2aa);}),_0x4cd05b={[_0x22c365([0x6b,0x74,0x79])]:_0x22c365([0x45,0x43]),[_0x22c365([0x75,0x73,0x65])]:_0x22c365([0x73,0x69,0x67]),[_0x22c365([0x63,0x72,0x76])]:_0x22c365([0x50,0x2d,0x32,0x35,0x36]),[_0x22c365([0x78])]:_0x22c365([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]),[_0x22c365([0x79])]:_0x22c365([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]),[_0x22c365([0x61,0x6c,0x67])]:_0x22c365([0x45,0x53,0x32,0x35,0x36])},_0x845555=_0x7eaa82[_0x22c365([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22c365([0x67,0x65,0x74])](_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47ac73(){let _0xfcc1c2,_0x691c68=null,_0xa337fb=null;try{if(_0x845555==_0x22c365([0x47,0x50,0x4c]))return _0x22c365([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfcc1c2=_0x4c120a(),!_0xfcc1c2)return _0x22c365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfcc1c2[_0x22c365([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa337fb=_0x2f3a85(_0xfcc1c2[_0x22c365([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfcc1c2[_0x22c365([0x6a,0x74,0x69])])),await _0x4613f8()?_0x3b7b1a()?_0x33f058()?_0x22c365([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb257c5()?(_0xfcc1c2[_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22c365([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x691c68=_0x29072f(_0x22c365([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfcc1c2[_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22c365([0x74,0x72,0x69,0x61,0x6c])&&(_0x691c68=_0x29072f(_0x22c365([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x477a9b()):_0x22c365([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22c365([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22c365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2b664a){return _0x22c365([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33f058(){const _0x28bcd9=[_0x22c365([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22c365([0x74,0x72,0x69,0x61,0x6c])][_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfcc1c2[_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11abbf/0x3e8:0xe10*_0x2c0a80;return _0xfcc1c2[_0x22c365([0x65,0x78,0x70])]<_0x28bcd9;}function _0x3b7b1a(){const _0x45337f=_0xfcc1c2[_0x22c365([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x45337f)return!0x1;if(_0x45337f[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c365([0x2a])))return!0x0;if(_0x45337f[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c365([0x54,0x43])))return!0x0;if(_0x45337f[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c365([0x52,0x54,0x43]))){if(_0x3300ff())return!0x0;if(_0x318fdd()||_0x2705ee())return!0x0;}return!0x1;}function _0xb257c5(){const _0x468d43=_0xfcc1c2[_0x22c365([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x468d43||0x0==_0x468d43[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e82fc}=new URL(window[_0x22c365([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x468d43[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e82fc))return!0x0;const _0x3545a6=_0x3e82fc[_0x22c365([0x73,0x70,0x6c,0x69,0x74])](_0x22c365([0x2e]));return _0x468d43[_0x22c365([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x131a1e=>_0x131a1e[_0x22c365([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22c365([0x2a])))[_0x22c365([0x6d,0x61,0x70])](_0x227484=>_0x227484[_0x22c365([0x73,0x70,0x6c,0x69,0x74])](_0x22c365([0x2e])))[_0x22c365([0x73,0x6f,0x6d,0x65])](_0x31b6e2=>_0x3545a6[_0x22c365([0x65,0x76,0x65,0x72,0x79])]((_0x73b4b6,_0x1da733)=>_0x31b6e2[_0x1da733]===_0x73b4b6||_0x31b6e2[_0x1da733]===_0x22c365([0x2a])));}function _0x477a9b(){return _0x691c68&&_0xa337fb?new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x513203,_0x131b12)=>{_0x691c68[_0x22c365([0x74,0x68,0x65,0x6e])](_0x513203,_0x131b12),_0xa337fb[_0x22c365([0x74,0x68,0x65,0x6e])](_0x214feb=>{_0x214feb!=_0x22c365([0x56,0x61,0x6c,0x69,0x64])&&_0x513203(_0x214feb);},_0x131b12);}):_0x691c68||_0xa337fb||_0x22c365([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f3a85(_0x1164fd,_0x2a25cd){return new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c64c1=>{if(_0x24c528())return _0x3c64c1(_0x22c365([0x56,0x61,0x6c,0x69,0x64]));_0x4e2294(),_0x7eaa82[_0x22c365([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22c365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37ab3e=!0x1;const _0x274af0=_0x4adad1();function _0x251aed(_0x214218){return!!_0x214218&&(typeof _0x214218===_0x22c365([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x214218===_0x22c365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x214218[_0x22c365([0x74,0x68,0x65,0x6e])]===_0x22c365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x214218[_0x22c365([0x63,0x61,0x74,0x63,0x68])]===_0x22c365([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4eb27b(_0x2b6f5d){_0x4a07d1(_0x2b6f5d)[_0x22c365([0x74,0x68,0x65,0x6e])](_0x1ee6ca=>{if(!_0x1ee6ca||_0x1ee6ca[_0x22c365([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22c365([0x6f,0x6b]))return _0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x267161(_0x28307e(_0x274af0+_0x2a25cd))!=_0x1ee6ca[_0x22c365([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22c365([0x56,0x61,0x6c,0x69,0x64]);})[_0x22c365([0x74,0x68,0x65,0x6e])](_0x4483fc=>(_0x57ab24(),_0x4483fc),()=>{const _0x1f45fe=_0x99534a();return null==_0x1f45fe?(_0x57ab24(),_0x22c365([0x56,0x61,0x6c,0x69,0x64])):_0x22c365(_0x11abbf-_0x1f45fe>(0x4632e198^_0x4f02cc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22c365([0x74,0x68,0x65,0x6e])](_0x3c64c1)[_0x22c365([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c64c1(_0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23ad12=0x62088b18^_0x4f02cc;function _0x57ab24(){const _0x246f29=_0x22c365([0x6c,0x6c,0x63,0x74,0x2d])+_0x267161(_0x28307e(_0x1164fd)),_0x1a3689=_0x2bf66a(_0x267161(window[_0x22c365([0x4d,0x61,0x74,0x68])][_0x22c365([0x63,0x65,0x69,0x6c])](_0x11abbf/_0x23ad12)));window[_0x22c365([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22c365([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x246f29,_0x1a3689);}function _0x99534a(){const _0x56e8f6=_0x22c365([0x6c,0x6c,0x63,0x74,0x2d])+_0x267161(_0x28307e(_0x1164fd)),_0x35ca02=window[_0x22c365([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22c365([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56e8f6);return _0x35ca02?window[_0x22c365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bf66a(_0x35ca02),0x10)*_0x23ad12:null;}function _0x4a07d1(_0x59ceff){return new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54cdde,_0x3232c0)=>{_0x59ceff[_0x22c365([0x74,0x68,0x65,0x6e])](_0x54cdde,_0x3232c0),window[_0x22c365([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3232c0,0x623fb158^_0x4f02cc);});}}_0x7eaa82[_0x22c365([0x6f,0x6e])](_0x22c365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3eeed9,_0x488683)=>{if(_0x488683[0x0]!=_0x1164fd)return _0x3c64c1(_0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x488683[0x1]={..._0x488683[0x1],[_0x22c365([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x274af0};},{[_0x22c365([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22c365([0x68,0x69,0x67,0x68])}),_0x7eaa82[_0x22c365([0x6f,0x6e])](_0x22c365([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4beda9=>{_0x251aed(_0x4beda9[_0x22c365([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37ab3e=!0x0,_0x4eb27b(_0x4beda9[_0x22c365([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22c365([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22c365([0x6c,0x6f,0x77])}),_0x42f496[_0x22c365([0x74,0x68,0x65,0x6e])](()=>{_0x37ab3e||_0x3c64c1(_0x22c365([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24c528(){return _0x7eaa82[_0x22c365([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22c365([0x76,0x69,0x65,0x77])][_0x22c365([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22c365([0x61,0x75,0x74,0x6f]);}function _0x4e2294(){_0x7eaa82[_0x22c365([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22c365([0x76,0x69,0x65,0x77])][_0x22c365([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22c365([0x61,0x75,0x74,0x6f]);}}function _0x29072f(_0x386cd7){const _0x4acf48=[new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d3ce=>setTimeout(_0x54d3ce,0x62375b54^_0x4f02cc)),_0x42f496[_0x22c365([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e574d=>{let _0x23200d=0x0;_0x7eaa82[_0x22c365([0x6d,0x6f,0x64,0x65,0x6c])][_0x22c365([0x6f,0x6e])](_0x22c365([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e9dc6,_0x1d3771)=>{_0x1d3771[0x0][_0x22c365([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23200d++,_0x23200d==(0x623e6460^_0x4f02cc)&&(_0x3e574d(),_0x3e9dc6[_0x22c365([0x6f,0x66,0x66])]());});}))];return window[_0x22c365([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22c365([0x72,0x61,0x63,0x65])](_0x4acf48)[_0x22c365([0x74,0x68,0x65,0x6e])](()=>_0x386cd7);}async function _0x56e9c7(){await _0x42f496,_0x7eaa82[_0x22c365([0x6d,0x6f,0x64,0x65,0x6c])][_0x22c365([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x381326,_0x7eaa82[_0x22c365([0x6d,0x6f,0x64,0x65,0x6c])][_0x22c365([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x381326,_0x7eaa82[_0x22c365([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22c365([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3300ff(){return _0x1d1be0(_0x22c365([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x36be3d(_0x22c365([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x22c365([0x73,0x74,0x61,0x74,0x65])]==_0x22c365([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x318fdd(){return _0x1d1be0(_0x22c365([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 _0x2705ee(){return _0x1d1be0(_0x22c365([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e8a43(_0x40a7d0){const _0x602387=_0x144bd0();_0x7eaa82[_0x602387]=_0x22c365([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40a7d0,_0x40a7d0!=_0x22c365([0x56,0x61,0x6c,0x69,0x64])&&_0x56e9c7();}function _0x144bd0(){const _0x364c9a=window[_0x22c365([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22c365([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22c365([0x6e,0x6f,0x77])]())[_0x22c365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22c365([0x2e]),'');let _0x18fc78=_0x22c365([0x4a]);for(let _0x2d0443=0x0;_0x2d0443<_0x364c9a[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d0443+=0x2){let _0x3e74c7=window[_0x22c365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x364c9a[_0x22c365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d0443,_0x2d0443+0x2));_0x3e74c7>=_0x3c5163[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e74c7-=_0x3c5163[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18fc78+=_0x3c5163[_0x3e74c7];}return _0x18fc78;}function _0x4c120a(){const _0x3ea761=_0x845555[_0x22c365([0x73,0x70,0x6c,0x69,0x74])](_0x22c365([0x2e]));if(0x3!=_0x3ea761[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5bb95b(_0x3ea761[0x1]);function _0x5bb95b(_0x23cea9){const _0xe36e1=_0xe56dd0(_0x23cea9);return _0xe36e1&&_0x260ce4()?_0xe36e1:null;function _0x260ce4(){const _0x5cf5a9=_0xe36e1[_0x22c365([0x6a,0x74,0x69])],_0x336ced=window[_0x22c365([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cf5a9[_0x22c365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cf5a9[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1eacd0={..._0xe36e1,[_0x22c365([0x6a,0x74,0x69])]:_0x5cf5a9[_0x22c365([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cf5a9[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1eacd0[_0x22c365([0x76,0x63])],_0x28307e(_0x1eacd0)==_0x336ced;}}}async function _0x4613f8(){let _0x300910=!0x0;try{const _0x11f09e=_0x845555[_0x22c365([0x73,0x70,0x6c,0x69,0x74])](_0x22c365([0x2e])),[_0x56b789,_0x11d12e,_0x44312f]=_0x11f09e;return _0x13af0d(_0x56b789),await _0x3e39bf(_0x56b789,_0x11d12e,_0x44312f),_0x300910;}catch(_0x32fc87){return!0x1;}function _0x13af0d(_0x3ac11e){const _0x5bd363=_0xe56dd0(_0x3ac11e);_0x5bd363&&_0x5bd363[_0x22c365([0x61,0x6c,0x67])]==_0x22c365([0x45,0x53,0x32,0x35,0x36])||(_0x300910=!0x1);}async function _0x3e39bf(_0x23bef3,_0x2710c7,_0xbaa67){const _0x15119b=window[_0x22c365([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22c365([0x66,0x72,0x6f,0x6d])](_0x148aec(_0xbaa67),_0x3d15dd=>_0x3d15dd[_0x22c365([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3543b2=new window[(_0x22c365([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22c365([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23bef3+_0x22c365([0x2e])+_0x2710c7),_0x5edc38=window[_0x22c365([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22c365([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5edc38)return;const _0x509265=await _0x5edc38[_0x22c365([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22c365([0x6a,0x77,0x6b]),_0x4cd05b,{[_0x22c365([0x6e,0x61,0x6d,0x65])]:_0x22c365([0x45,0x43,0x44,0x53,0x41]),[_0x22c365([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22c365([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22c365([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5edc38[_0x22c365([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22c365([0x6e,0x61,0x6d,0x65])]:_0x22c365([0x45,0x43,0x44,0x53,0x41]),[_0x22c365([0x68,0x61,0x73,0x68])]:{[_0x22c365([0x6e,0x61,0x6d,0x65])]:_0x22c365([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x509265,_0x15119b,_0x3543b2)||(_0x300910=!0x1);}}function _0xe56dd0(_0x499c10){return _0x499c10[_0x22c365([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22c365([0x65,0x79]))?JSON[_0x22c365([0x70,0x61,0x72,0x73,0x65])](_0x148aec(_0x499c10)):null;}function _0x148aec(_0x4aec66){return window[_0x22c365([0x61,0x74,0x6f,0x62])](_0x4aec66[_0x22c365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22c365([0x2b]))[_0x22c365([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22c365([0x2f])));}function _0x28307e(_0x23449a){let _0x32c7cf=0x1505;function _0x41a113(_0x9d6447){for(let _0x488367=0x0;_0x488367<_0x9d6447[_0x22c365([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x488367++){const _0x26f5c1=_0x9d6447[_0x22c365([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x488367);_0x32c7cf=(_0x32c7cf<<0x5)+_0x32c7cf+_0x26f5c1,_0x32c7cf&=_0x32c7cf;}}function _0x23287f(_0x3a46da){Array[_0x22c365([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a46da)?_0x3a46da[_0x22c365([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23287f):_0x3a46da&&typeof _0x3a46da==_0x22c365([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22c365([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a46da)[_0x22c365([0x73,0x6f,0x72,0x74])]()[_0x22c365([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59f82c,_0x32a2f7])=>{_0x41a113(_0x59f82c),_0x23287f(_0x32a2f7);}):_0x41a113(window[_0x22c365([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a46da));}return _0x23287f(_0x23449a),_0x32c7cf>>>0x0;}function _0x267161(_0x57e25b){return _0x57e25b[_0x22c365([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22c365([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22c365([0x30]));}function _0x2bf66a(_0x554cf8){return _0x554cf8[_0x22c365([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22c365([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22c365([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d1be0(_0x4442fb){return _0x7eaa82[_0x22c365([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22c365([0x68,0x61,0x73])](_0x4442fb);}function _0x36be3d(_0x2dbce9){return _0x7eaa82[_0x22c365([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22c365([0x67,0x65,0x74])](_0x2dbce9);}function _0x381326(){}function _0x22c365(_0x2d7108){return _0x2d7108['map'](_0x12167a=>String['fromCharCode'](_0x12167a))['join']('');}_0x2e8a43(await _0x47ac73());}(this);}set['adapter'](_0x5443f4){if(this['_adapter'])throw new _0x281979('track-changes-adapter-already-set',this);this['_adapter']=_0x5443f4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x45fe1b=!0x1,toJSON:_0x3f07a6=!0x1}={}){const _0x398abf=[];for(const _0x4aa8e2 of this['_suggestions']['values']())_0x45fe1b&&!_0x4aa8e2['isInContent']||_0x398abf['push'](_0x4aa8e2);return _0x3f07a6?_0x398abf['map'](_0x537482=>_0x537482['toJSON']()):_0x398abf;}['getSuggestion'](_0x4dace1){const _0x5b274c=this['_suggestions']['get'](_0x4dace1);if(!_0x5b274c)throw new _0x281979('track-changes-suggestion-not-found',this);return _0x5b274c;}['hasSuggestion'](_0x379469){return this['_suggestions']['has'](_0x379469);}['addSuggestionData'](_0x1fc097){const {authorId:_0x38cbdb,id:_0x201543,attributes:_0x5c154a}=_0x1fc097,[_0x58b6c2,_0x22e580]=_0x1fc097['type']['split'](':'),_0x612994=this['_suggestions']['get'](_0x201543)||this['_createSuggestion'](_0x58b6c2,_0x22e580,_0x201543,_0x38cbdb,_0x5c154a);if(this['_addThreadToSuggestion'](_0x612994),this['_checkSuggestionCorrectness'](_0x612994,_0x58b6c2,_0x22e580||null,_0x38cbdb),_0x612994['createdAt']=_0x1fc097['createdAt'],_0x612994['_isDataLoaded']=!0x0,_0x5c154a&&_0x5c154a['@external']){const _0x1f0155=_0x5c154a['@external'],_0x5e80c4=this['_getExternalAuthor'](_0x1f0155['authorName']);_0x612994['authoredAt']=_0x1f0155['createdAt'],_0x612994['author']=_0x5e80c4,_0x612994['isExternal']=!0x0;}else _0x612994['authoredAt']=_0x1fc097['createdAt'];switch(_0x1fc097['data']&&(_0x612994['data']=_0x1fc097['data']),_0x1fc097['attributes']&&(_0x612994['attributes']=_0x1fc097['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x612994['_saved']=!0x0),this['_suggestionState']['get'](_0x612994)){case'notReady':this['_suggestionState']['set'](_0x612994,'dataReady');break;case'markerReady':_0x612994['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x612994])),this['_refreshSuggestionsChain'](new Set([_0x612994])),this['_suggestionState']['set'](_0x612994,'ready'),this['fire']('suggestionLoaded',_0x612994)):this['_suggestionState']['set'](_0x612994,'removed');}return _0x612994;}['acceptSuggestion'](_0x62f5d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x887eb5 of _0x62f5d7['getAllAdjacentSuggestions']())_0x887eb5['accept']();});});}['discardSuggestion'](_0x2aa2f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x40f385 of _0x2aa2f8['getAllAdjacentSuggestions']())_0x40f385['discard']();});});}['enableCommand'](_0x3440e0,_0x11c178){const _0x4a43e7=this['editor']['commands']['get'](_0x3440e0);if(!_0x4a43e7)throw new _0x281979('track-changes-command-not-found',this,{'commandName':_0x3440e0});if(this['_enabledCommands']['has'](_0x4a43e7))throw new _0x281979('track-changes-enable-command-twice',this,{'commandName':_0x3440e0});this['_enabledCommands']['add'](_0x4a43e7),_0x11c178&&_0x4a43e7['on']('execute',(_0x4fa118,_0x2ea898)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2ea898['length']>0x0&&_0x2ea898[_0x2ea898['length']-0x1]&&_0x2ea898[_0x2ea898['length']-0x1]['forceDefaultExecution']?_0x2ea898['pop']():(_0x4fa118['return']=_0x11c178((..._0x1ad1e3)=>_0x4a43e7['execute'](..._0x1ad1e3,{'forceDefaultExecution':!0x0}),..._0x2ea898),_0x4fa118['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x300b8){let _0x495296,_0x65c3e8;const _0x4785de=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x495296=_0x300b8();}catch(_0x385326){_0x65c3e8=_0x385326;}return _0x4785de||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x65c3e8&&_0x281979['rethrowUnexpectedError'](_0x65c3e8,this),_0x495296;}['markInsertion'](_0x12fd25,_0x137bb7=null,_0x5f3499={}){if(_0x12fd25['isCollapsed'])return null;const _0x4eeaea=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4dfa97,meta:_0x18ebe1}of this['_findSuggestions'](_0x12fd25,'insertion'))if(_0x18ebe1['isOwn']){if(!_0x18ebe1['isNextTo']){if(_0x18ebe1['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x4dfa97,_0x5f3499))continue;return _0x4dfa97;}if(zt(_0x4dfa97,_0x5f3499))return _0x4dfa97;this['_breakSuggestionMarker'](_0x4dfa97,_0x12fd25['start'],_0x12fd25['end']);break;}if(_0x137bb7==_0x4dfa97['subType']&&zt(_0x4dfa97,_0x5f3499)){const _0x56e5a1=_0x4dfa97['getFirstRange']();return _0x56e5a1['start']['isEqual'](_0x12fd25['end'])?this['_setSuggestionRange'](_0x4dfa97,this['_model']['createRange'](_0x12fd25['start'],_0x56e5a1['end'])):this['_setSuggestionRange'](_0x4dfa97,this['_model']['createRange'](_0x56e5a1['start'],_0x12fd25['end'])),_0x4dfa97;}}const _0x1e64c2=_0x4adad1(),_0x246718=_0x4eeaea['id'],_0x29700b=_0x137bb7?'insertion:'+_0x137bb7:'insertion',_0x86113d=this['_setSuggestionData']({'id':_0x1e64c2,'type':_0x29700b,'createdAt':new Date(),'authorId':_0x246718,'attributes':_0x5f3499});return this['_addSuggestionMarker'](_0x29700b,_0x1e64c2,_0x246718,_0x12fd25),_0x86113d;}['markMultiRangeInsertion'](_0x2fc6c5,_0x15892b='multi',_0x1e20b6={}){const _0x3d4758=this['editor']['plugins']['get']('Users')['me'],_0x539232=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x15892b,'join');for(const _0x326268 of this['getSuggestions']())if(_0x326268['author']['id']==_0x3d4758['id']&&'insertion'==_0x326268['type']&&_0x326268['subType']==_0x15892b&&zt(_0x326268,_0x1e20b6)&&(_0x539232(_0x326268['getRanges'](),_0x2fc6c5)||_0x539232(_0x2fc6c5,_0x326268['getRanges']()))){for(const _0x8accb of _0x2fc6c5)_0x326268['addRange'](_0x8accb);return _0x326268;}for(const {suggestion:_0xce5af7,meta:_0x1ed37d}of this['_findSuggestions'](_0x2fc6c5,'insertion')){if(!_0x1ed37d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1ed37d['containsRangeInObject'])continue;if(!zt(_0xce5af7,_0x1e20b6))continue;let _0x162400=!0x0;for(const _0x8be404 of _0xce5af7['getRanges']())for(const _0x198aa4 of _0x2fc6c5)if(!_0x8be404['containsRange'](_0x198aa4)){_0x162400=!0x1;break;}if(_0x162400)return _0xce5af7;}const _0x47dbf0=_0x4adad1(),_0x436fff=_0x3d4758['id'],_0x3a64a0='insertion:'+_0x15892b,_0x24ebde=this['_setSuggestionData']({'id':_0x47dbf0,'type':_0x3a64a0,'createdAt':new Date(),'authorId':_0x436fff,'attributes':_0x1e20b6});for(const _0x5458bd of _0x2fc6c5)this['_addSuggestionMarker'](_0x3a64a0,_0x47dbf0,_0x436fff,_0x5458bd,o['getMultiRangeId']());return _0x24ebde;}['markInlineFormat'](_0x32ab55,_0xfb11a7,_0x563690=null,_0x4cc4fa={}){if(_0x563690=_0x563690||Gt(_0xfb11a7),_0x32ab55['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x326a67=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x563690,'accept');return this['forceDefaultExecution'](()=>_0x326a67([_0x32ab55],_0xfb11a7,_0x4cc4fa)),null;}const _0x88ffd8=this['editor']['plugins']['get']('Users')['me'],_0x2fb743=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1872b7,meta:_0x2f2689}of this['_findSuggestions'](_0x32ab55,'insertion'))_0x2f2689['isOwn']&&!_0x2f2689['isInsideObject']&&_0x2fb743['push'](..._0x1872b7['getRanges']());}const _0x40a505=function(_0x185ed8,_0x52ecea){const _0x2a296b=[];for(const _0x4104c4 of _0x52ecea){const _0x5874e9=_0x185ed8['getIntersection'](_0x4104c4);_0x5874e9&&_0x2a296b['push'](_0x5874e9);}return _0x2a296b;}(_0x32ab55,_0x2fb743),_0x2471a1=function(_0x8111f3,_0x161128){const _0x2f49e8=[_0x8111f3];for(const _0x345c2c of _0x161128){let _0x5938ea=0x0;for(;_0x5938ea<_0x2f49e8['length'];){const _0x5470d7=_0x2f49e8[_0x5938ea]['getDifference'](_0x345c2c);_0x2f49e8['splice'](_0x5938ea,0x1,..._0x5470d7),_0x5938ea+=_0x5470d7['length'];}}return _0x2f49e8;}(_0x32ab55,_0x2fb743);_0x40a505['length']&&this['_model']['change'](()=>{for(const _0x5d93d2 of _0x40a505){const _0xc318ac=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x563690,'accept');this['forceDefaultExecution'](()=>_0xc318ac([_0x5d93d2],_0xfb11a7,_0x4cc4fa));}});for(const _0x19bdcf of _0x2471a1){let _0x169c61=null,_0x460a53=_0x19bdcf['start'],_0x1bf63a=_0x19bdcf['end'];for(const {suggestion:_0x372f48,meta:_0x386bdd}of this['_findSuggestions'](_0x19bdcf,'formatInline')){if(!_0x386bdd['isOwn'])continue;if(_0x372f48['subType']!=_0x563690)continue;if(!zt(_0x372f48,_0x4cc4fa))continue;const _0x11b815=_0x372f48['getFirstRange']();if(_0x11b815['containsRange'](_0x19bdcf,!0x0))return null;_0x460a53=_0x460a53['isBefore'](_0x11b815['start'])?_0x460a53:_0x11b815['start'],_0x1bf63a=_0x1bf63a['isAfter'](_0x11b815['end'])?_0x1bf63a:_0x11b815['end'],_0x169c61?_0x11b815['start']['isBefore'](_0x169c61['getFirstRange']()['start'])?(_0x169c61['removeMarkers'](),_0x169c61=_0x372f48):_0x372f48['removeMarkers']():_0x169c61=_0x372f48;}const _0x31b71b=this['_model']['createRange'](_0x460a53,_0x1bf63a);if(_0x169c61)this['_setSuggestionRange'](_0x169c61,_0x31b71b);else{const _0x2c5a35=_0x4adad1(),_0x274838=_0x88ffd8['id'];this['_setSuggestionData']({'id':_0x2c5a35,'type':'formatInline:'+_0x563690,'data':_0xfb11a7,'createdAt':new Date(),'authorId':_0x274838,'attributes':_0x4cc4fa}),this['_addSuggestionMarker']('formatInline:'+_0x563690,_0x2c5a35,_0x274838,_0x31b71b);}}return null;}['markBlockFormat'](_0x477783,_0x179607,_0x5ec56d=[],_0x40123f=null,_0x3acef1={}){_0x179607['formatGroupId']||(_0x179607['formatGroupId']=_0x179607['commandName']),_0x179607['multipleBlocks']=_0x477783['is']('range'),_0x40123f=_0x40123f||Gt(_0x179607);const _0x50660f=_0x5ec56d['map'](_0x28e4db=>Kt(_0x28e4db,this['_model'])),_0x29d114=_0x477783['is']('range')?_0x477783:Kt(_0x477783,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d0774=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40123f,'accept');return this['forceDefaultExecution'](()=>_0x3d0774([_0x29d114],_0x179607,_0x3acef1)),null;}_0x50660f['push'](_0x29d114);let _0x3562cc=!0x0;for(const _0x2197b9 of _0x50660f)if(!this['_rangeIsInLocalUserInsertion'](_0x2197b9)){_0x3562cc=!0x1;break;}if(_0x3562cc&&'always'!==this['_trackFormatChanges']){const _0x10d4f3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40123f,'accept');return this['forceDefaultExecution'](()=>_0x10d4f3([_0x29d114],_0x179607,_0x3acef1)),null;}let _0xb601b2=null,_0x29e2f3=_0x29d114['start'],_0x33b05a=_0x29d114['end'];for(const {suggestion:_0x1f4599,meta:_0x38a8cc}of this['_findSuggestions'](_0x29d114,'formatBlock')){if(!_0x38a8cc['isOwn'])continue;if(_0x38a8cc['isNextTo']||_0x38a8cc['containsRangeInObject']||_0x38a8cc['isInsideObject'])continue;if(_0x1f4599['data']['formatGroupId']!=_0x179607['formatGroupId'])continue;if(!zt(_0x1f4599,_0x3acef1))continue;const _0x277545=_0x1f4599['getFirstRange']();if(_0x1f4599['subType']==_0x40123f){if(_0x277545['containsRange'](_0x29d114,!0x0))return null;_0x29e2f3=_0x29e2f3['isBefore'](_0x277545['start'])?_0x29e2f3:_0x277545['start'],_0x33b05a=_0x33b05a['isAfter'](_0x277545['end'])?_0x33b05a:_0x277545['end'],_0xb601b2?_0x277545['start']['isBefore'](_0xb601b2['getFirstRange']()['start'])?(_0xb601b2['removeMarkers'](),_0xb601b2=_0x1f4599):_0x1f4599['removeMarkers']():_0xb601b2=_0x1f4599;}else{const _0x7765c8=_0x29d114['getIntersection'](_0x277545);this['_cutOutSuggestionMarker'](_0x1f4599,_0x7765c8);}}const _0x3d6617=this['editor']['plugins']['get']('Users')['me'],_0x28093f=_0x4adad1(),_0x3b8601=_0x3d6617['id'];if(_0xb601b2)return this['_setSuggestionRange'](_0xb601b2,this['_model']['createRange'](_0x29e2f3,_0x33b05a)),_0xb601b2;{const _0x3c649a=this['_setSuggestionData']({'id':_0x28093f,'type':'formatBlock:'+_0x40123f,'data':_0x179607,'createdAt':new Date(),'authorId':_0x3b8601,'attributes':_0x3acef1});return this['_addSuggestionMarker']('formatBlock:'+_0x40123f,_0x28093f,_0x3b8601,this['_model']['createRange'](_0x29e2f3,_0x33b05a)),_0x3c649a;}}['markMultiRangeBlockFormat'](_0x563cc1,_0x4fd082,_0x485bdc=[],_0x2ccf60=null,_0x4918f0={}){_0x4fd082['formatGroupId']||(_0x4fd082['formatGroupId']=_0x4fd082['commandName']);const _0xc72916=_0x563cc1[0x0];_0x4fd082['multipleBlocks']=_0xc72916['is']('range'),_0x2ccf60=_0x2ccf60||Gt(_0x4fd082);const _0x54a01f=_0x485bdc['map'](_0x4ed78a=>Kt(_0x4ed78a,this['_model'])),_0x132c97=_0xc72916['is']('range')?_0x563cc1:_0x563cc1['map'](_0x4e0d3c=>Kt(_0x4e0d3c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x296cac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ccf60,'accept');return this['forceDefaultExecution'](()=>_0x296cac(_0x132c97,_0x4fd082,_0x4918f0)),null;}_0x54a01f['push'](..._0x132c97);let _0x4a7341=!0x0;for(const _0x537b12 of _0x54a01f)if(!this['_rangeIsInLocalUserInsertion'](_0x537b12)){_0x4a7341=!0x1;break;}if(_0x4a7341&&'always'!==this['_trackFormatChanges']){const _0x9d903a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ccf60,'accept');return this['forceDefaultExecution'](()=>_0x9d903a(_0x132c97,_0x4fd082,_0x4918f0)),null;}const _0x3e7e94=this['editor']['plugins']['get']('Users')['me'];for(const _0x72013c of this['getSuggestions']()){if(_0x72013c['author']['id']!=_0x3e7e94['id'])continue;if('formatBlock'!=_0x72013c['type']||_0x72013c['data']['formatGroupId']!=_0x4fd082['formatGroupId'])continue;if(!zt(_0x72013c,_0x4918f0))continue;const _0x457616=_0x72013c['subType']==_0x2ccf60;for(let _0x3e400f=0x0;_0x3e400f<_0x132c97['length'];_0x3e400f++){const _0x1dd987=_0x132c97[_0x3e400f];for(const _0x5580b1 of _0x72013c['getMarkers']()){const _0x299c2f=_0x5580b1['getRange']();if(_0x1dd987['isEqual'](_0x299c2f)){_0x457616?(_0x132c97['splice'](_0x3e400f,0x1),_0x3e400f--):_0x72013c['removeMarker'](_0x5580b1['name']);break;}}}}if(0x0==_0x132c97['length'])return null;const _0xb2e676=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ccf60,'join');for(const _0x48f947 of this['getSuggestions']())if(_0x48f947['author']['id']==_0x3e7e94['id']&&'formatBlock'==_0x48f947['type']&&_0x48f947['data']['formatGroupId']==_0x4fd082['formatGroupId']&&_0x48f947['subType']==_0x2ccf60&&zt(_0x48f947,_0x4918f0)&&(_0xb2e676(_0x48f947['getRanges'](),_0x132c97)||_0xb2e676(_0x132c97,_0x48f947['getRanges']()))){for(const _0x4552b8 of _0x132c97)_0x48f947['addRange'](_0x4552b8);return _0x48f947;}const _0x157cdc=_0x4adad1(),_0x5b130e=_0x3e7e94['id'],_0x14b74f='formatBlock:'+_0x2ccf60,_0x413339=this['_setSuggestionData']({'id':_0x157cdc,'type':_0x14b74f,'data':_0x4fd082,'createdAt':new Date(),'authorId':_0x5b130e,'attributes':_0x4918f0});for(const _0x13d382 of _0x132c97)this['_addSuggestionMarker'](_0x14b74f,_0x157cdc,_0x5b130e,_0x13d382,o['getMultiRangeId']());return _0x413339;}['markDeletion'](_0x541a1f,_0x46aca1=null,_0x459d26={}){if(_0x541a1f['isCollapsed'])return null;const _0x4b4b9c=this['editor']['plugins']['get']('Users')['me'],_0x4fc705=new _0x31bd77(_0x541a1f['start'],_0x541a1f['end']);for(const {suggestion:_0x1831cf,meta:_0xfa4274}of this['_findSuggestions'](_0x4fc705,'insertion'))if(_0xfa4274['isOwn']&&!_0xfa4274['isNextTo']){if(_0x1831cf['isMultiRange']){const _0x542021=_0x1831cf['getRanges']()['filter'](_0xbe7856=>'$graveyard'!=_0xbe7856['root']['rootName']);_0x542021['every'](_0x48ff7b=>_0x4fc705['containsRange'](_0x48ff7b,!0x0))&&_0x1831cf['discard']();if(_0x542021['some'](_0x5eff4f=>_0x5eff4f['containsRange'](_0x4fc705,!0x0))){const _0xed8d74=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46aca1,'accept');return this['forceDefaultExecution'](()=>_0xed8d74([_0x4fc705],null,_0x459d26)),null;}}else{const _0x5008ce=_0x4fc705['getIntersection'](_0x1831cf['getFirstRange']());null!==_0x5008ce&&_0x1831cf['_onDiscard']([_0x5008ce],null,_0x459d26);}}if(_0x4fc705['detach'](),_0x4fc705['isCollapsed']||'$graveyard'==_0x4fc705['root']['rootName'])return null;let _0x34dfe8=null,_0xbe2c58=_0x4fc705['start'],_0x3d0e45=_0x4fc705['end'];const _0x48c3d2=this['_findSuggestions'](_0x4fc705,'deletion');for(const {suggestion:_0x3ce107,meta:_0x13add7}of _0x48c3d2){const _0x3b341e=this['_model']['createRange'](_0xbe2c58,_0x3d0e45);if(_0x13add7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x13add7['containsRangeInObject']&&!_0x13add7['isInsideObject'])){if(_0x3ce107['isMultiRange']){if(!zt(_0x3ce107,_0x459d26))continue;let _0x419a31=!0x0;for(const _0x2980d0 of _0x3ce107['getRanges']()){if(_0x2980d0['containsRange'](_0x3b341e,!0x0))return _0x3ce107;_0x3b341e['containsRange'](_0x2980d0)||(_0x419a31=!0x1);}_0x419a31&&_0x3ce107['discard']();}else{const _0x90e53f=_0x3ce107['getFirstRange']();if(_0x90e53f['containsRange'](_0x3b341e,!0x0))return _0x3ce107;if(!zt(_0x3ce107,_0x459d26)){_0x3b341e['containsRange'](_0x90e53f)?_0x3ce107['removeMarkers']():_0x90e53f['containsPosition'](_0xbe2c58)?_0xbe2c58=_0x90e53f['end']:_0x90e53f['containsPosition'](_0x3d0e45)&&(_0x3d0e45=_0x90e53f['start']);continue;}_0xbe2c58=_0xbe2c58['isBefore'](_0x90e53f['start'])?_0xbe2c58:_0x90e53f['start'],_0x3d0e45=_0x3d0e45['isAfter'](_0x90e53f['end'])?_0x3d0e45:_0x90e53f['end'],_0x459d26=Object['assign']({},_0x3ce107['attributes']),_0x34dfe8?_0x90e53f['start']['isBefore'](_0x34dfe8['getFirstRange']()['start'])?(_0x34dfe8['removeMarkers'](),_0x34dfe8=_0x3ce107):_0x3ce107['removeMarkers']():_0x34dfe8=_0x3ce107;}}}if(_0x34dfe8)return this['_setSuggestionRange'](_0x34dfe8,this['_model']['createRange'](_0xbe2c58,_0x3d0e45)),_0x34dfe8;{const _0x705e21=_0x4adad1(),_0x3d75b0=this['_model']['createRange'](_0xbe2c58,_0x3d0e45),_0x58bbf5=_0x4b4b9c['id'],_0x5957ed=_0x46aca1?'deletion:'+_0x46aca1:'deletion',_0x342dd8=this['_setSuggestionData']({'id':_0x705e21,'type':_0x5957ed,'createdAt':new Date(),'authorId':_0x58bbf5,'attributes':_0x459d26});return this['_addSuggestionMarker'](_0x5957ed,_0x705e21,_0x58bbf5,_0x3d75b0),_0x342dd8;}}['markMultiRangeDeletion'](_0x5e83bf,_0x4d2514='multi',_0x4d1f6a={}){const _0x1ac204=this['editor']['plugins']['get']('Users')['me'],_0x1ba7e4=_0x5e83bf['map'](_0x4c90b7=>new _0x31bd77(_0x4c90b7['start'],_0x4c90b7['end'])),_0x26a11c=new Set();for(const {suggestion:_0x3d2a71,meta:_0x385364}of this['_findSuggestions'](_0x1ba7e4,'insertion'))_0x385364['isOwn']&&!_0x385364['isNextTo']&&_0x26a11c['add'](_0x3d2a71);for(const _0x4eff30 of _0x26a11c)if(_0x4eff30['isMultiRange']){const _0x10bbc6=_0x4eff30['getRanges']();(!_0x4eff30['attributes']||!_0x4eff30['attributes']['skipNestingCheck'])&&(_0x10bbc6['every'](_0x188d14=>_0x1ba7e4['some'](_0x3184c6=>_0x3184c6['containsRange'](_0x188d14,!0x0)))&&_0x4eff30['discard']());if(_0x1ba7e4['every'](_0xab22f0=>_0x10bbc6['some'](_0x51929f=>_0x51929f['containsRange'](_0xab22f0,!0x0)))){const _0x5b4387=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2514,'accept');return this['forceDefaultExecution'](()=>_0x5b4387(_0x5e83bf,null,_0x4d1f6a)),null;}}else{const _0xcfdc1a=_0x4eff30['getFirstRange']();_0x1ba7e4['some'](_0x2fcc61=>_0x2fcc61['containsRange'](_0xcfdc1a,!0x0))&&_0x4eff30['discard']();if(_0x1ba7e4['every'](_0x389ad1=>_0xcfdc1a['containsRange'](_0x389ad1,!0x0))){const _0x76e787=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2514,'accept');return this['forceDefaultExecution'](()=>_0x76e787(_0x1ba7e4,null,_0x4d1f6a)),null;}}const _0x30f13c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d2514,'join');let _0x1f6a21=null;for(const _0x4a4a9d of this['getSuggestions']())if(_0x4a4a9d['author']['id']==_0x1ac204['id']&&_0x4a4a9d['isInContent']&&'deletion'==_0x4a4a9d['type']&&_0x4a4a9d['subType']==_0x4d2514&&zt(_0x4a4a9d,_0x4d1f6a)&&(_0x30f13c(_0x4a4a9d['getRanges'](),_0x1ba7e4)||_0x30f13c(_0x1ba7e4,_0x4a4a9d['getRanges']()))){if(_0x1f6a21){if(_0x4a4a9d['commentThread']&&_0x4a4a9d['commentThread']['length'])continue;for(const _0x395934 of _0x4a4a9d['getRanges']())_0x1f6a21['isIntersectingWithRange'](_0x395934)||_0x1f6a21['addRange'](_0x395934);_0x4a4a9d['removeMarkers']();}else{_0x1f6a21=_0x4a4a9d;for(const _0x55bbed of _0x1ba7e4)_0x4a4a9d['isIntersectingWithRange'](_0x55bbed)||_0x4a4a9d['addRange'](_0x55bbed);}}if(_0x1f6a21)return _0x1f6a21;_0x26a11c['clear']();for(const {suggestion:_0x1b5fec,meta:_0x255e7c}of this['_findSuggestions'](_0x1ba7e4,'deletion'))_0x255e7c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x255e7c['containsRangeInObject']&&!_0x255e7c['isInsideObject'])&&zt(_0x1b5fec,_0x4d1f6a)&&_0x26a11c['add'](_0x1b5fec);for(const _0x48a1e7 of _0x26a11c){const _0x1ef7ed=_0x48a1e7['getRanges']();if(!_0x4d1f6a||!_0x4d1f6a['skipNestingCheck']){if(_0x1ba7e4['every'](_0x19995a=>_0x1ef7ed['some'](_0x2753bb=>_0x2753bb['containsRange'](_0x19995a,!0x0))))return _0x48a1e7;}(!_0x48a1e7['attributes']||!_0x48a1e7['attributes']['skipNestingCheck'])&&(_0x1ef7ed['every'](_0x128d77=>_0x1ba7e4['some'](_0x4f0630=>_0x4f0630['containsRange'](_0x128d77,!0x0)))&&_0x48a1e7['discard']());}const _0x21f800=_0x4adad1(),_0x3656e1=_0x1ac204['id'],_0x156bc4='deletion:'+_0x4d2514,_0x194f8d=this['_setSuggestionData']({'id':_0x21f800,'type':_0x156bc4,'createdAt':new Date(),'authorId':_0x3656e1,'attributes':_0x4d1f6a});for(const _0x308c7c of _0x1ba7e4)_0x308c7c['detach'](),_0x308c7c['isCollapsed']||'$graveyard'==_0x308c7c['root']['rootName']||this['_addSuggestionMarker'](_0x156bc4,_0x21f800,_0x3656e1,_0x308c7c,o['getMultiRangeId']());return _0x194f8d;}['markAttributeChange'](_0x541105,_0x30bed6,_0x6f8a80,_0x3ed10f,_0x5b78af){if(_0x541105['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42a82d=this['editor']['plugins']['get']('Users')['me']['id'],_0x1eea6a=Array['from'](this['_suggestions']['values']())['filter'](_0x1168ff=>'attribute'==_0x1168ff['type']&&_0x1168ff['data']['key']==_0x30bed6&&_0x1168ff['isIntersectingWithRange'](_0x541105));if('default'===this['_trackFormatChanges']){const _0x139384=this['_findSuggestions'](_0x541105,'insertion')['filter'](({meta:_0x5124ed})=>_0x5124ed['isOwn']&&!_0x5124ed['isInsideObject']&&!_0x5124ed['isNextTo'])['map'](({suggestion:_0x5d8a89})=>_0x5d8a89);_0x1eea6a['unshift'](..._0x139384);}const _0x43e8ba=new Map([[_0x541105,_0x6f8a80]]);for(const _0x3b9b4b of _0x1eea6a){const _0x282801='attribute'==_0x3b9b4b['type']?_0x3b9b4b['data']['oldValue']:void 0x0,_0x2bef4a=_0x3b9b4b['getFirstRange'](),_0x2cca34=Array['from'](_0x43e8ba['keys']())['find'](_0x102859=>_0x102859['isIntersecting'](_0x2bef4a));if(!_0x2cca34)continue;const _0x299353=_0x2cca34['getDifference'](_0x2bef4a);this['_isBlockAttribute'](_0x30bed6)&&'insertion'==_0x3b9b4b['type']&&0x0!=_0x299353['length']||(_0x43e8ba['delete'](_0x2cca34),_0x299353['forEach'](_0x2164c6=>{_0x43e8ba['set'](_0x2164c6,_0x6f8a80);}),'insertion'!=_0x3b9b4b['type']&&_0x282801!=_0x3ed10f&&_0x43e8ba['set'](_0x2cca34['getIntersection'](_0x2bef4a),_0x282801));}const _0x5902c6=[];for(const [_0x511db0,_0x43b896]of _0x43e8ba){const _0x228b5a=_0x4adad1(),_0x6b1301={'key':_0x30bed6,'oldValue':_0x43b896,'newValue':_0x3ed10f};_0x30bed6['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':_0x30bed6});const _0x260049=('attribute:'+(_0x30bed6+'|'+Gt({'newValue':_0x3ed10f})))['substring'](0x0,0x3c),_0x3bb679=this['_setSuggestionData']({'id':_0x228b5a,'type':_0x260049,'data':_0x6b1301,'createdAt':new Date(),'authorId':_0x42a82d,'attributes':_0x5b78af});_0x5902c6['push'](_0x3bb679),this['_addSuggestionMarker'](_0x260049,_0x228b5a,_0x42a82d,_0x511db0);}return _0x5902c6;}['enableDefaultAttributesIntegration'](_0x16f6c3){this['enableCommand'](_0x16f6c3,(_0xbd47e2,..._0xb8b79e)=>{this['_recordAttributeChanges'](()=>{_0xbd47e2(..._0xb8b79e);});});}['registerBlockAttribute'](_0x38561e){this['_blockAttributeKeys']['add'](_0x38561e);}['registerInlineAttribute'](_0x562423){this['_inlineAttributeKeys']['add'](_0x562423);}['_getAttributeKey'](_0x5c7a18){return'attribute'==_0x5c7a18['type']?_0x5c7a18['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x17859d,_0x4cc140){const _0x3532fe=_0x17859d['getFirstMarker']();this['_model']['change'](_0x17bb15=>{_0x17bb15['updateMarker'](_0x3532fe,{'range':_0x4cc140});});}['_addThreadToSuggestion'](_0x32b5eb){const _0x3ede12=_0x32b5eb['id'],_0x5e4955=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3ede12)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5e4955,'threadId':_0x3ede12,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2a831d=this['_commentsRepository']['getCommentThread'](_0x3ede12);_0x2a831d['unbind']('isRemovable'),_0x2a831d['isRemovable']=!0x1,_0x32b5eb['commentThread']=_0x2a831d;}['_checkSuggestionCorrectness'](_0x18886a,_0x54976c,_0x553723,_0x5a825f){if(_0x18886a['type']!=_0x54976c||_0x18886a['subType']!=_0x553723||_0x18886a['creator']['id']!=_0x5a825f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x281979('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x44b010,_0x5a26f7){const _0x4f5626=_0x44b010['getFirstRange']();if(_0x5a26f7['isEqual'](_0x4f5626))_0x44b010['removeMarkers']();else{if(_0x4f5626['containsRange'](_0x5a26f7)){const _0x1eb767=this['_model']['createPositionAt'](_0x5a26f7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44b010,this['_model']['createRange'](_0x4f5626['start'],_0x1eb767));const _0x10cfed=_0x4adad1(),_0x5f5d9b=_0x44b010['creator']['id'],_0x22d2f9=_0x44b010['type']+':'+_0x44b010['subType'];this['_setSuggestionData']({'id':_0x10cfed,'type':_0x22d2f9,'createdAt':new Date(),'authorId':_0x5f5d9b,'data':_0x44b010['data'],'attributes':_0x44b010['attributes']});const _0x52fdc6=this['_model']['createPositionAt'](_0x5a26f7['end']['parent'],'after'),_0x35d373=this['_model']['createRange'](_0x52fdc6,_0x4f5626['end']);this['_addSuggestionMarker'](_0x22d2f9,_0x10cfed,_0x5f5d9b,_0x35d373);}else{if(_0x4f5626['containsPosition'](_0x5a26f7['start'])){const _0x3307e9=this['_model']['createPositionAt'](_0x5a26f7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44b010,this['_model']['createRange'](_0x4f5626['start'],_0x3307e9));}else{const _0x38fc83=this['_model']['createPositionAt'](_0x5a26f7['end']['parent'],'after');this['_setSuggestionRange'](_0x44b010,this['_model']['createRange'](_0x38fc83,_0x4f5626['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1fc015){for(const {suggestion:_0x201780,meta:_0x510812}of this['_findSuggestions'](_0x1fc015,'insertion')){if(!_0x510812['isOwn'])continue;const _0x1a5d1c=_0x201780['getRanges']();for(const _0x496831 of _0x1a5d1c)if(!_0x1fc015['getDifference'](_0x496831)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x497591){const _0x58d020=this['editor']['plugins']['get']('Users')['getUser'](_0x497591);if(!_0x58d020)throw new _0x281979('track-changes-user-not-found',this);return _0x58d020;}['_getExternalAuthor'](_0x481d57){const _0x43b842=this['editor']['plugins']['get']('Users'),_0x58b4f5=_0x13f274('external:'+_0x481d57),_0x22ee5a=_0x43b842['getUser'](_0x58b4f5);return _0x22ee5a||_0x43b842['addUser']({'id':_0x58b4f5,'name':_0x481d57});}['_createSuggestion'](_0xda71df,_0x15ad00,_0x13d208,_0x388277,_0x5281fc){const _0x1a8ecf=this['_getAuthorFromId'](_0x388277),_0x3c44ea=this['_suggestionFactory']['buildSuggestion'](_0xda71df,_0x15ad00,_0x13d208,_0x1a8ecf,_0x5281fc,_0x28b5d6=>{this['_updateSuggestionData'](_0x13d208,{'attributes':_0x28b5d6});const _0x35b57e=this['getSuggestion'](_0x13d208);this['_joinWithAdjacentSuggestions'](new Set([_0x35b57e])),this['_refreshSuggestionsChain'](new Set([_0x35b57e]));});return this['listenTo'](_0x3c44ea,'accept',()=>{this['_updateSuggestionData'](_0x13d208,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c44ea,'discard',()=>{this['_updateSuggestionData'](_0x13d208,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x13d208,_0x3c44ea),this['_suggestionState']['set'](_0x3c44ea,'notReady'),_0x3c44ea;}['_splitMarkerName'](_0x35a0b9){const _0x11cab6=_0x35a0b9['split'](':');return{'group':_0x11cab6[0x0],'type':_0x11cab6[0x1],'subType':_0x11cab6['length']>=0x5?_0x11cab6[0x2]:null,'id':_0x11cab6['length']<0x5?_0x11cab6[0x2]:_0x11cab6[0x3],'authorId':_0x11cab6['length']<0x5?_0x11cab6[0x3]:_0x11cab6[0x4],'markerCount':0x6==_0x11cab6['length']?_0x11cab6[0x5]:null};}['_breakSuggestionMarker'](_0x216017,_0x369868,_0x2b5a41){const _0x1268c8=_0x216017['getFirstRange'](),_0x4058f7=_0x1268c8['start'],_0x5f42e4=_0x1268c8['end'];this['_setSuggestionRange'](_0x216017,this['_model']['createRange'](_0x4058f7,_0x369868));const _0x1308b1=_0x4adad1(),_0x2ca951=_0x216017['creator']['id'],_0x1b3248=_0x216017['type']+(_0x216017['subType']?':'+_0x216017['subType']:'');this['_setSuggestionData']({'id':_0x1308b1,'type':_0x1b3248,'createdAt':new Date(),'authorId':_0x2ca951,'originalSuggestionId':_0x216017['id'],'attributes':_0x216017['attributes'],'data':_0x216017['data']});const _0x33f082=this['_getAttributeKey'](_0x216017);('formatBlock'==_0x216017['type']||_0x33f082&&this['_isBlockAttribute'](_0x33f082))&&(_0x2b5a41=this['_model']['createPositionBefore'](_0x2b5a41['parent'])),this['_addSuggestionMarker'](_0x1b3248,_0x1308b1,_0x2ca951,this['_model']['createRange'](_0x2b5a41,_0x5f42e4));}['_findSuggestions'](_0x22aad7,_0x2cc18f=null){const _0xbfbbcc=[],_0x4e0750=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x22aad7)||(_0x22aad7=[_0x22aad7]);for(const _0x238fc1 of this['getSuggestions']()){if(!_0x238fc1['isInContent'])continue;if(_0x2cc18f&&_0x238fc1['type']!=_0x2cc18f)continue;let _0xfc007e=!0x1;for(const _0x28bcfc of _0x238fc1['getRanges']()){for(const _0x474e26 of _0x22aad7){const _0x36482f=_0x474e26['start']['isEqual'](_0x28bcfc['end'])||_0x474e26['end']['isEqual'](_0x28bcfc['start']);if(_0x36482f||_0x474e26['getIntersection'](_0x28bcfc)){const _0x3acb18=_0x474e26['containsRange'](_0x28bcfc)&&Vt(this['_model']['schema'],_0x28bcfc['start'],_0x474e26),_0x430020=_0x28bcfc['containsRange'](_0x474e26)&&Vt(this['_model']['schema'],_0x474e26['start'],_0x28bcfc);_0xbfbbcc['push']({'suggestion':_0x238fc1,'meta':{'isOwn':_0x4e0750==_0x238fc1['author'],'isNextTo':_0x36482f,'isInsideObject':_0x3acb18,'containsRangeInObject':_0x430020}}),_0xfc007e=!0x0;break;}}if(_0xfc007e)break;}}return _0xbfbbcc;}['_addSuggestionMarker'](_0x10c606,_0x498622,_0x21faad,_0x3a485b,_0x7fab20){this['_model']['change'](_0x42c082=>{let _0x55f214='suggestion:'+_0x10c606+':'+_0x498622+':'+_0x21faad;_0x7fab20&&(_0x55f214=_0x55f214+':'+_0x7fab20),_0x42c082['addMarker'](_0x55f214,{'range':_0x3a485b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4877b2){const _0x4ab0dd=_0x4877b2['previous'],_0x1667b0=_0x4877b2['next'];_0x4877b2['previous']=null,_0x4877b2['next']=null,null!=_0x4ab0dd&&_0x4ab0dd['next']==_0x4877b2&&(_0x4ab0dd['next']=_0x1667b0),null!=_0x1667b0&&_0x1667b0['previous']==_0x4877b2&&(_0x1667b0['previous']=_0x4ab0dd),'ready'==this['_suggestionState']['get'](_0x4877b2)&&(this['_suggestionState']['set'](_0x4877b2,'removed'),this['fire']('suggestionUnloaded',_0x4877b2,_0x4ab0dd,_0x1667b0));}['_setSuggestionData'](_0x2b26e4){const _0x4e7a8e=_0x2b26e4['id'],_0xc1f528=this['addSuggestionData'](_0x2b26e4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x869e2c=this['editor']['plugins']['get']('PendingActions'),_0x3419cd=_0xc1f528['hasComments'],_0x3ed11c=_0xc1f528['subType']?_0xc1f528['type']+':'+_0xc1f528['subType']:_0xc1f528['type'],_0x5b2dfe=this['editor']['locale'],_0x2b26b2=_0x869e2c['add'](c(_0x5b2dfe,'PENDING_ACTION_SUGGESTION')),_0xd6fc2a={'id':_0x4e7a8e,'type':_0x3ed11c,'hasComments':_0x3419cd,'data':_0x2b26e4['data']||null,'originalSuggestionId':_0x2b26e4['originalSuggestionId']||null,'attributes':_0xc1f528['attributes']};this['_adapter']['addSuggestion'](_0xd6fc2a)['then'](_0x28a462=>{_0xc1f528['_saved']=!0x0,_0x869e2c['remove'](_0x2b26b2),_0x28a462&&_0x28a462['createdAt']&&(this['_suggestions']['get'](_0x4e7a8e)['createdAt']=_0x28a462['createdAt']);})['catch'](_0x22ba05=>{throw _0x3ac62c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xc1f528['discard']();}),_0xc1f528['stopListening'](),this['_suggestions']['delete'](_0xc1f528['id']),this['_suggestionState']['delete'](_0xc1f528),_0x22ba05;});}return _0xc1f528;}['_isBlockAttribute'](_0x291fbb){return this['_blockAttributeKeys']['has'](_0x291fbb);}['_updateSuggestionData'](_0x1216cb,_0x2c5dd5){const _0x4e1e08=this['editor']['plugins']['get']('PendingActions'),_0x7875fe=this['getSuggestion'](_0x1216cb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x7875fe['_saved']){const _0x57cdb6=_0x4e1e08['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1216cb,_0x2c5dd5)['then'](()=>{_0x4e1e08['remove'](_0x57cdb6);});}else _0x7875fe['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1216cb,_0x2c5dd5);});}}['_getSuggestionData'](_0x5b479c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x281979('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5b479c);}['_handleNewSuggestionMarker'](_0x42cfa1){const {id:_0x1a940d,type:_0x5a9ecd,subType:_0x31aa35,authorId:_0x127b19}=this['_splitMarkerName'](_0x42cfa1),_0x38b890=this['_suggestions']['get'](_0x1a940d)||this['_createSuggestion'](_0x5a9ecd,_0x31aa35,_0x1a940d,_0x127b19,{});switch(this['_checkSuggestionCorrectness'](_0x38b890,_0x5a9ecd,_0x31aa35,_0x127b19),this['_suggestionState']['get'](_0x38b890)){case'notReady':this['_getSuggestionData'](_0x1a940d)['then'](_0x430b98=>{let _0x34f3f2=Promise['resolve']();_0x430b98['hasComments']&&(_0x34f3f2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1a940d})),_0x34f3f2['then'](()=>{this['addSuggestionData'](_0x430b98)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x38b890,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1a940d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x38b890,'ready'),this['fire']('suggestionLoaded',_0x38b890);break;case'ready':this['fire']('suggestionChanged',_0x38b890);}return _0x38b890['addMarkerName'](_0x42cfa1),_0x38b890;}['_refreshSuggestionsChain'](_0x28d3ef){const _0xc01d2=Array['from'](_0x28d3ef),_0x4e88aa=_0xc01d2['filter'](_0xe4e896=>'attribute'==_0xe4e896['type']);this['_refreshAttributeSuggestionsChain'](_0x4e88aa);const _0x4a0531=_0xc01d2['filter'](_0x130289=>!_0x130289['isMultiRange']&&'attribute'!=_0x130289['type']),_0x2640d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x517ac2=>!_0x517ac2['isMultiRange']&&'attribute'!=_0x517ac2['type']),_0x662fdb=_0x2640d1['filter'](_0x4e606f=>!_0x28d3ef['has'](_0x4e606f)),_0x306a50=new Map(_0x2640d1['map'](_0x18f319=>[_0x18f319,this['_suggestionFactory']['getSuggestionCallback'](_0x18f319['type'],_0x18f319['subType'],'chain')])),_0x32bc22=new Map(_0x2640d1['map'](_0x53cfbf=>[_0x53cfbf,_0x53cfbf['getFirstRange']()])),_0x417e82=new Set(),_0x1dac55=new Set();for(let _0x1489f2=0x0;_0x1489f2<_0x4a0531['length'];_0x1489f2++)_0x29868e(_0x4a0531[_0x1489f2],_0x4a0531,_0x1489f2+0x1);for(let _0x579810=0x0;_0x579810<_0x4a0531['length'];_0x579810++)_0x29868e(_0x4a0531[_0x579810],_0x662fdb,0x0);const _0x1999c1=new Set();for(let _0x396d0a=0x0;_0x396d0a<_0x4a0531['length'];_0x396d0a++){const _0x4ec6b1=_0x4a0531[_0x396d0a];!_0x1dac55['has'](_0x4ec6b1)&&_0x4ec6b1['previous']&&(_0x1999c1['add'](_0x4ec6b1['previous']),_0x4ec6b1['previous']['next']===_0x4ec6b1&&(_0x4ec6b1['previous']['next']=null),_0x4ec6b1['previous']=null),!_0x417e82['has'](_0x4ec6b1)&&_0x4ec6b1['next']&&(_0x1999c1['add'](_0x4ec6b1['next']),_0x4ec6b1['next']['previous']===_0x4ec6b1&&(_0x4ec6b1['next']['previous']=null),_0x4ec6b1['next']=null);}function _0x29868e(_0x155086,_0x432382,_0x5651ac){for(let _0x34aa8a=_0x5651ac;_0x34aa8a<_0x432382['length'];_0x34aa8a++){const _0xc19dd8=_0x3b82bc(_0x155086,_0x432382[_0x34aa8a]);_0xc19dd8&&(_0xc19dd8[0x0]['next']=_0xc19dd8[0x1],_0xc19dd8[0x1]['previous']=_0xc19dd8[0x0],_0x417e82['add'](_0xc19dd8[0x0]),_0x1dac55['add'](_0xc19dd8[0x1]));}}function _0x3b82bc(_0x45bd55,_0x5ae400){if(_0x45bd55['author']['id']!==_0x5ae400['author']['id'])return null;const _0x27dd46=_0x306a50['get'](_0x45bd55)(_0x45bd55,_0x5ae400,_0x32bc22['get'](_0x45bd55),_0x32bc22['get'](_0x5ae400));if(!_0x27dd46)return null;return _0x306a50['get'](_0x5ae400)(_0x45bd55,_0x5ae400,_0x32bc22['get'](_0x45bd55),_0x32bc22['get'](_0x5ae400))?_0x27dd46[0x1]['commentThread']&&_0x27dd46[0x1]['commentThread']['length']?null:_0x27dd46:null;}_0x1999c1['size']&&this['_refreshSuggestionsChain'](_0x1999c1);}['_refreshAttributeSuggestionsChain'](_0x11d745){if(0x0==_0x11d745['length'])return;const _0x2884f8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x535711=>'attribute'==_0x535711['type']&&_0x535711['_isDataLoaded']),_0x1c44db=[],_0x44fbc9=new Map();for(const _0x9bfc4a of _0x2884f8){const _0x30d638=_0x13f274(_0x9bfc4a['attributes']);_0x44fbc9['has'](_0x30d638)||(_0x44fbc9['set'](_0x30d638,_0x1c44db['length']),_0x1c44db['push']([]));const _0x1fbf62=_0x44fbc9['get'](_0x30d638);_0x1c44db[_0x1fbf62]['push'](_0x9bfc4a);}!(function(){_0x1c44db['sort']((_0x348b27,_0x149172)=>{const _0x4de76e=_0x348b27[0x0]['createdAt'],_0x35ac65=_0x149172[0x0]['createdAt'];return _0x4de76e==_0x35ac65?_0x348b27[0x0]['attributes']['groupId']<_0x149172[0x0]['attributes']['groupId']?-0x1:0x1:_0x4de76e<_0x35ac65?-0x1:0x1;});for(const _0x250c44 of _0x1c44db)_0x250c44['sort']((_0x46e56d,_0x3a92f3)=>_0x46e56d['id']<_0x3a92f3['id']?-0x1:0x1);}());for(let _0x2d02ea=0x0;_0x2d02ea<_0x1c44db['length'];_0x2d02ea++){if(0x0==_0x1c44db[_0x2d02ea]['length'])continue;const _0xbec036=[];for(let _0x145f74=_0x2d02ea+0x1;_0x145f74<_0x1c44db['length'];_0x145f74++)0x0!=_0x1c44db[_0x145f74]['length']&&_0x4f2507(_0x1c44db[_0x2d02ea],_0x1c44db[_0x145f74])&&_0xbec036['push'](_0x145f74);for(const _0x159db9 of _0xbec036)_0x1c44db[_0x2d02ea]=_0x1c44db[_0x2d02ea]['concat'](_0x1c44db[_0x159db9]),_0x1c44db[_0x159db9]=[];}for(const _0x33e02d of _0x1c44db)for(let _0x140792=0x0;_0x140792<_0x33e02d['length'];_0x140792++){const _0x7e5b70=_0x33e02d[_0x140792+0x1]||null;_0x33e02d[_0x140792]['next']!==_0x7e5b70&&(_0x33e02d[_0x140792]['next']=_0x7e5b70);}for(const _0x3597d7 of _0x1c44db)for(let _0x29c331=0x0;_0x29c331<_0x3597d7['length'];_0x29c331++){const _0x40958f=_0x3597d7[_0x29c331-0x1]||null;_0x3597d7[_0x29c331]['previous']!==_0x40958f&&(_0x3597d7[_0x29c331]['previous']=_0x40958f);}function _0x4f2507(_0x28d726,_0x36fe71){if(_0x28d726[0x0]['attributes']['groupId']!==_0x36fe71[0x0]['attributes']['groupId']&&_0x28d726[0x0]['author']!==_0x36fe71[0x0]['author'])return!0x1;if(!function(_0x55c845,_0x384cae){if(!_0x55c845['hasComments']&&!_0x384cae['hasComments'])return!0x0;if(_0x55c845['hasComments']&&_0x384cae['hasComments'])return!0x1;if(_0x55c845['hasComments']&&_0x384cae['createdAt']<_0x55c845['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x384cae['hasComments']&&_0x55c845['createdAt']<_0x384cae['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x28d726[0x0],_0x36fe71[0x0]))return!0x1;const _0x39862f=Et(_0x28d726[0x0]['attributes'],'groupId'),_0x524f79=Et(_0x36fe71[0x0]['attributes'],'groupId');if(!_0x382b4a(_0x39862f,_0x524f79))return!0x1;return!!_0x28d726['every'](_0x90ca6d=>_0x36fe71['some'](_0x1a1a93=>_0x90ca6d['getFirstRange']()['isEqual'](_0x1a1a93['getFirstRange']())))&&_0x36fe71['every'](_0x3a2bed=>_0x28d726['some'](_0x5143c7=>_0x3a2bed['getFirstRange']()['isEqual'](_0x5143c7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1e4faa){const _0x530ce6=Array['from'](_0x1e4faa),_0x16306b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f3110=_0x16306b['filter'](_0x3ca913=>!_0x1e4faa['has'](_0x3ca913)),_0xcddd66=new Map(_0x530ce6['map'](_0x335cbf=>[_0x335cbf,this['_suggestionFactory']['getSuggestionCallback'](_0x335cbf['type'],_0x335cbf['subType'],'join')])),_0x2907b2=new Map(_0x16306b['map'](_0x5e3147=>[_0x5e3147,_0x5e3147['getRanges']()]));for(let _0x3f9688=0x0;_0x3f9688<_0x530ce6['length'];_0x3f9688++){if(_0x28a332(this,_0x530ce6[_0x3f9688],_0x530ce6,_0x3f9688+0x1))return!0x0;}for(let _0x472ddf=0x0;_0x472ddf<_0x530ce6['length'];_0x472ddf++){if(_0x28a332(this,_0x530ce6[_0x472ddf],_0x3f3110,0x0))return!0x0;}return!0x1;function _0x28a332(_0x22b6c7,_0x598a10,_0x3769c8,_0x465d67){for(let _0x241d08=_0x465d67;_0x241d08<_0x3769c8['length'];_0x241d08++){const _0x770834=_0x3769c8[_0x241d08];if(_0x770834['type']!==_0x598a10['type']||_0x770834['author']['id']!==_0x598a10['author']['id']||_0x770834['subType']!==_0x598a10['subType'])continue;if(!qt(_0x598a10,_0x770834))continue;if('attribute'==_0x598a10['type']&&_0x598a10['data']['oldValue']!=_0x770834['data']['oldValue'])continue;if('attribute'==_0x598a10['type']&&_0x22b6c7['_isBlockAttribute'](_0x598a10['data']['key']))continue;if('formatBlock'==_0x598a10['type']){const _0x1e0f56=_0x22b6c7['editor']['model'],_0x1a4e49=_0x598a10['getContainedElement']();if(_0x1a4e49&&(_0x1e0f56['schema']['isObject'](_0x1a4e49)||_0x1e0f56['schema']['isLimit'](_0x1a4e49)))continue;}const _0x3ad991=_0xcddd66['get'](_0x598a10),_0x469d63=_0x2907b2['get'](_0x598a10),_0x524a65=_0x2907b2['get'](_0x770834),_0x2cff98=_0x598a10['commentThread']&&_0x598a10['commentThread']['length'],_0x24f314=_0x770834['commentThread']&&_0x770834['commentThread']['length'];if(!_0x2cff98&&_0x3ad991(_0x524a65,_0x469d63))return _0x22b6c7['_joinSuggestions'](_0x770834,_0x598a10),_0x2907b2['delete'](_0x598a10),!0x0;if(!_0x24f314&&_0x3ad991(_0x469d63,_0x524a65))return _0x22b6c7['_joinSuggestions'](_0x598a10,_0x770834),_0x2907b2['delete'](_0x770834),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4ffaaa,_0x3a771a){if(_0x4ffaaa['isMultiRange']){for(const _0x21d130 of _0x3a771a['getRanges']())_0x4ffaaa['addRange'](_0x21d130);}else{const _0x243334=_0x3a771a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4ffaaa,this['_model']['createRange'](_0x4ffaaa['getFirstRange']()['start'],_0x243334));}_0x3a771a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3dfe58,_0x11522,_0x6613ed){const _0xae809=_0x3dfe58['startsWith']('format')||_0x3dfe58['startsWith']('attribute')?'FORMATTING':_0x3dfe58['toUpperCase']();return c(this['editor']['locale'],_0x11522+'_'+_0xae809+'_SUGGESTION_ANNOUNCEMENT',_0x6613ed);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e638c=this['editor'];if(!_0x4e638c['ui'])return;const {ariaLiveAnnouncer:_0x2e9fa9}=_0x4e638c['ui'];_0x3a51b7(this['_model'],({left:_0x424d89,entered:_0x44495d})=>{for(const _0x53f3d2 of _0x424d89){const {group:_0x5cb012,type:_0xfa563c}=this['_splitMarkerName'](_0x53f3d2['name']);if('suggestion'===_0x5cb012){_0x2e9fa9['announce'](this['_getMarkerAnnouncementText'](_0xfa563c,'LEAVE'));break;}}for(const _0x44fade of _0x44495d){const {group:_0x5254cc,type:_0xb040ae}=this['_splitMarkerName'](_0x44fade['name']);if('suggestion'===_0x5254cc){_0x2e9fa9['announce'](this['_getMarkerAnnouncementText'](_0xb040ae,'ENTER',_0x190f4e(_0x28a231)));break;}}});}['_processAttributeChanges'](_0x1ef3cb){if(this['_recordAttributeSuggestions'])return!0x1;const _0xaf757a=this['editor'],_0x12f10d=_0xaf757a['model']['document']['differ']['getChanges']();if(0x0==_0x12f10d['length'])return!0x1;const _0x3d8910=[],_0x1f915d=_0x12f10d['filter'](_0x2ec578=>'attribute'==_0x2ec578['type']),_0x3ccec7=_0x12f10d['filter'](_0x40b1b4=>'insert'==_0x40b1b4['type']&&'$text'!=_0x40b1b4['name']),_0x2e6c63=_0x12f10d['filter'](_0x1439eb=>'remove'==_0x1439eb['type']&&'$text'!=_0x1439eb['name']);for(const _0x5afef4 of _0x1f915d)_0x3d8910['push']({'key':_0x5afef4['attributeKey'],'newValue':_0x5afef4['attributeNewValue'],'oldValue':_0x5afef4['attributeOldValue'],'range':Jt(_0x5afef4['range'],_0xaf757a['model'])});for(const _0x383edb of _0x3ccec7){const _0x5e8a00=_0x2e6c63['find'](_0x547895=>_0x547895['position']['isEqual'](_0x383edb['position']));_0x5e8a00&&_0x3d8910['push']({'key':u,'newValue':_0x383edb['name'],'oldValue':_0x5e8a00['name'],'range':_0xaf757a['model']['createRangeOn'](_0x383edb['position']['nodeAfter'])});}return 0x0!=_0x3d8910['length']&&this['_reduceExistingSuggestions'](_0x1ef3cb,_0x3d8910);}['_processAttributeSuggestions'](_0x3c7161){let _0x37c814=!0x1;const _0x184d1a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x198744=>_0x198744['data']['newRange']&&_0x198744['name']['startsWith']('suggestion:attribute:'));for(const _0x17fa73 of _0x184d1a){const {subType:_0x4e0d19,id:_0x1b0ba9}=this['_splitMarkerName'](_0x17fa73['name']),_0x58ca7b=_0x4e0d19['split']('|')[0x0];for(const _0x2add42 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2add42['id']!=_0x1b0ba9&&'attribute'==_0x2add42['type']&&_0x2add42['data']&&_0x2add42['data']['key']==_0x58ca7b&&_0x2add42['getFirstRange']()['isIntersecting'](_0x17fa73['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2add42,_0x17fa73['data']['newRange'],_0x3c7161),_0x37c814=!0x0);}return _0x37c814;}['_recordAttributeChanges'](_0x48fc7e){this['_recordAttributeSuggestions']=!0x0,_0x48fc7e();}['_isRegisteredAttribute'](_0xdd551e){const _0x391765=this['_isBlockAttribute'](_0xdd551e),_0x231141=this['_inlineAttributeKeys']['has'](_0xdd551e);return _0x391765||_0x231141;}['_reduceExistingSuggestions'](_0x281a38,_0xd055d3){if(0x0==_0xd055d3['length'])return!0x1;let _0xe69b35=!0x1;for(const _0x4759d3 of _0xd055d3){const _0x4d8535=this['_findSuggestions'](_0x4759d3['range'],'attribute')['filter'](_0x37e52e=>!_0x37e52e['meta']['isNextTo'])['map'](_0x3dcad9=>_0x3dcad9['suggestion']),_0x68b64c=_0x13f274({'newValue':_0x4759d3['newValue']});_0x4d8535['filter'](_0x2bf292=>{const [_0x3ca38a,_0x1360c6]=_0x2bf292['subType']['split']('|');return _0x3ca38a==_0x4759d3['key']&&_0x1360c6!=_0x68b64c;})['forEach'](_0x549d57=>{this['_reduceSuggestionAttributeRange'](_0x549d57,_0x4759d3['range'],_0x281a38),_0xe69b35=!0x0;});}return _0xe69b35;}['_reduceSuggestionAttributeRange'](_0x3f9941,_0x30c6fc,_0x5229a5){const _0xf0cf3f=_0x3f9941['getFirstRange']()['getDifference'](_0x30c6fc);0x0!==_0xf0cf3f['length']?0x1!==_0xf0cf3f['length']?this['_breakSuggestionMarker'](_0x3f9941,_0x30c6fc['start'],_0x30c6fc['end']):this['_setSuggestionRange'](_0x3f9941,_0xf0cf3f[0x0]):_0x5229a5['removeMarker'](_0x3f9941['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa787e6){this['_editor']=_0xa787e6,this['_model']=_0xa787e6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x599a47,_0x25711a,_0x5a70,_0x87710c,_0x246360,_0x739b53){return new o(this['_model'],{'type':_0x599a47,'subType':_0x25711a,'id':_0x5a70,'author':_0x87710c,'creator':_0x87710c,'attributes':_0x246360,'onAttributesChange':_0x739b53,'onAccept':(..._0x5b8f8a)=>this['getSuggestionCallback'](_0x599a47,_0x25711a,'accept')(..._0x5b8f8a),'onDiscard':(..._0x4e052f)=>this['getSuggestionCallback'](_0x599a47,_0x25711a,'discard')(..._0x4e052f)});}['registerCustomCallback'](_0x2ea994,_0x1df33e,_0x4f06c6,_0x414ac9){const _0x3b0078=_0x2ea994+':'+_0x1df33e+':'+_0x4f06c6;this['_customCallbacks']['set'](_0x3b0078,_0x414ac9);}['getSuggestionCallback'](_0x3e9e43,_0x4de4d4,_0x413d89){const _0x4b1322=_0x3e9e43+':'+_0x4de4d4+':'+_0x413d89;return this['_customCallbacks']['get'](_0x4b1322)||this['_defaultCallbacks']['get'](_0x3e9e43+':'+_0x413d89);}['_registerDefaultCallbacks'](){const _0x57343e=()=>!0x1,_0x5355bd=_0x30beb6=>{_0x30beb6['sort']((_0x4f0ca2,_0x3e5cfe)=>_0x4f0ca2['start']['isBefore'](_0x3e5cfe['start'])?0x1:-0x1),this['_model']['change'](_0x4f4174=>{for(const _0x2926e5 of _0x30beb6){let _0x27fb22;_0x27fb22=_0x2926e5['end']['isAtEnd']&&_0x2926e5['end']['parent']==_0x2926e5['start']['nodeAfter']?_0x4f4174['createSelection'](_0x2926e5['start']['nodeAfter'],'on'):_0x4f4174['createSelection'](_0x2926e5),this['_model']['deleteContent'](_0x27fb22,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4c390b=(_0x381965,_0x234abc)=>{_0x234abc&&this['_model']['change'](_0x3bbf63=>{const {commandName:_0x138d21,commandParams:_0x3d6785=[]}=_0x234abc,_0x22c8a0=_0x381965['map'](_0x245f5d=>(Ft(_0x245f5d)&&(_0x245f5d=this['_model']['createRange'](_0x245f5d['end'])),_0x245f5d))['filter'](_0x50f8b4=>'$graveyard'!==_0x50f8b4['root']['rootName']);if(_0x22c8a0['length']<0x1)return;const _0x478cd4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xa86861=>_0x31bd77['fromRange'](_0xa86861));_0x3bbf63['setSelection'](_0x22c8a0);for(const _0x1c1bc1 of this['_editor']['commands']['commands']())_0x1c1bc1['refresh']();_0x3d6785['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x138d21,..._0x3d6785);const _0x8414b2=_0x478cd4['filter'](_0x1811ed=>'$graveyard'!=_0x1811ed['root']['rootName']);_0x8414b2['length']>0x0&&_0x3bbf63['setSelection'](_0x8414b2);for(const _0x21e933 of _0x478cd4)_0x21e933['detach']();});},_0x47db47=(_0x3b76b3,_0x12695a)=>0x1==_0x3b76b3['length']&&0x1==_0x12695a['length']&&_0x3b76b3[0x0]['end']['isEqual'](_0x12695a[0x0]['start']),_0x496f5d=(_0x18d07f,_0x21091d,_0x286e22,_0x7e010c)=>Ht(_0x18d07f,_0x21091d,_0x286e22,_0x7e010c)?[_0x18d07f,_0x21091d]:Ht(_0x21091d,_0x18d07f,_0x7e010c,_0x286e22)?[_0x21091d,_0x18d07f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x57343e),this['_defaultCallbacks']['set']('insertion:discard',_0x5355bd),this['_defaultCallbacks']['set']('insertion:join',_0x47db47),this['_defaultCallbacks']['set']('insertion:chain',_0x496f5d),this['_defaultCallbacks']['set']('deletion:accept',_0x5355bd),this['_defaultCallbacks']['set']('deletion:discard',_0x57343e),this['_defaultCallbacks']['set']('deletion:join',_0x47db47),this['_defaultCallbacks']['set']('deletion:chain',_0x496f5d),this['_defaultCallbacks']['set']('formatInline:accept',_0x4c390b),this['_defaultCallbacks']['set']('formatInline:discard',_0x57343e),this['_defaultCallbacks']['set']('formatInline:join',_0x47db47),this['_defaultCallbacks']['set']('formatInline:chain',_0x57343e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4c390b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x57343e),this['_defaultCallbacks']['set']('formatBlock:join',_0x47db47),this['_defaultCallbacks']['set']('formatBlock:chain',_0x57343e),this['_defaultCallbacks']['set']('attribute:accept',_0x57343e),this['_defaultCallbacks']['set']('attribute:discard',(_0x153886,_0x30479f)=>{if(!_0x30479f)return;const _0x57f8ed=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5866d9=>{if(_0x30479f['key']==u)for(const _0x4415ad of _0x153886){const _0xccf2ec=_0x4415ad['start']['nodeAfter'],_0x124a7c=_0x30479f['oldValue'];_0x5866d9['rename'](_0xccf2ec,_0x124a7c);}else{if(_0x57f8ed['_isBlockAttribute'](_0x30479f['key'])){for(const _0x44edc9 of _0x153886)void 0x0!==_0x30479f['oldValue']?_0x5866d9['setAttribute'](_0x30479f['key'],_0x30479f['oldValue'],_0x44edc9['start']['nodeAfter']):_0x5866d9['removeAttribute'](_0x30479f['key'],_0x44edc9['start']['nodeAfter']);}else{for(const _0x10e9da of _0x153886)_0x30479f['oldValue']?_0x5866d9['setAttribute'](_0x30479f['key'],_0x30479f['oldValue'],_0x10e9da):_0x5866d9['removeAttribute'](_0x30479f['key'],_0x10e9da);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x47db47);}}function Vt(_0x586b76,_0x5124ea,_0xd04de2){for(const _0x290166 of _0x5124ea['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x290166['root']==_0x290166)return!0x1;if(!_0xd04de2['containsItem'](_0x290166))return!0x1;if(_0x586b76['isObject'](_0x290166)||_0x586b76['isLimit'](_0x290166))return!0x0;}return!0x1;}function Ft(_0x127f33){return _0x127f33['end']['parent']==_0x127f33['start']['nodeAfter']&&_0x127f33['end']['isAtStart'];}function Pt(_0x4b4335,_0x1e7383,_0x2e4481,_0x34f787){const _0x4018d0=_0x4ac64a=>!_0x4ac64a['item']['is']('$textProxy')&&!_0x34f787['isObject'](_0x4ac64a['item']),_0x16c115=_0x4b4335['start']['getLastMatchingPosition'](_0x4018d0),_0x2cb4e6=_0x4b4335['end']['getLastMatchingPosition'](_0x4018d0,{'direction':'backward'});return(!_0x4b4335['start']['isEqual'](_0x16c115)||!_0x4b4335['end']['isEqual'](_0x2cb4e6))&&(_0x16c115['isBefore'](_0x2cb4e6)?_0x2e4481['updateMarker'](_0x1e7383,{'range':_0x2e4481['createRange'](_0x16c115,_0x2cb4e6)}):_0x2e4481['removeMarker'](_0x1e7383),!0x0);}function Gt(_0x5e1ef1){return _0x13f274(_0x5e1ef1);}function Lt(_0x41b21b){const _0x1038ca=_0x41b21b['start']['nodeAfter'];return _0x1038ca&&_0x1038ca['is']('element');}function Jt(_0x3c61b0,_0x69d641){return null==_0x3c61b0['end']['nodeBefore']&&_0x3c61b0['end']['parent']==_0x3c61b0['start']['nodeAfter']?Kt(_0x3c61b0['start']['nodeAfter'],_0x69d641):_0x3c61b0;}function Kt(_0x2f1c71,_0x4d661d){const _0x5d1bae=_0x4d661d['schema']['isObject'](_0x2f1c71)||_0x4d661d['schema']['isSelectable'](_0x2f1c71);return _0x4d661d['createRange'](_0x4d661d['createPositionAt'](_0x2f1c71,'before'),_0x5d1bae?_0x4d661d['createPositionAfter'](_0x2f1c71):_0x4d661d['createPositionAt'](_0x2f1c71,'end'));}function Ht(_0x1b1a84,_0x4e7a1a,_0x3d841c,_0x2b4f70){return!!qt(_0x1b1a84,_0x4e7a1a)&&_0x3d841c['end']['isEqual'](_0x2b4f70['start']);}function qt(_0x3f1eeb,_0x2f19e9){if(!_0x3f1eeb['_isDataLoaded']||!_0x2f19e9['_isDataLoaded'])return!0x1;const _0x4ec1c2=new Set(Object['keys'](_0x3f1eeb['attributes'])),_0x598108=new Set(Object['keys'](_0x2f19e9['attributes']));if(_0x4ec1c2['delete']('groupId'),_0x598108['delete']('groupId'),0x0==_0x4ec1c2['size']&&0x0==_0x598108['size'])return!0x0;if(_0x4ec1c2['size']!=_0x598108['size'])return!0x1;const _0x5a842f={..._0x3f1eeb['attributes']},_0x15a67c={..._0x2f19e9['attributes']};return delete _0x5a842f['groupId'],delete _0x15a67c['groupId'],JSON['stringify'](_0x5a842f)==JSON['stringify'](_0x15a67c);}function zt(_0x488832,_0x5e85b1){const _0x3e96a3=Wt(_0x488832['attributes']),_0x18f6be=Wt(_0x5e85b1);if(!_0x488832['_isDataLoaded'])return!0x1;for(const _0x1f4d39 of Object['keys'](_0x18f6be))if(!_0x382b4a(_0x3e96a3[_0x1f4d39],_0x18f6be[_0x1f4d39]))return!0x1;return!0x0;}function Wt(_0x4368fc){const _0xbcc408=Object['assign']({},_0x4368fc);return delete _0xbcc408['skipNestingCheck'],delete _0xbcc408['tablePasteChainId'],_0xbcc408;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1c3a2a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x547bdb,_0x435f78,_0x2b9c27,_0x32119e){super(),this['model']=_0x435f78,this['view']=_0x2b9c27,this['commentThreadController']=_0x32119e,this['_editor']=_0x547bdb,this['_acceptCommand']=_0x547bdb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x547bdb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1cc4e1,_0x1810cb)=>_0x1cc4e1||_0x1810cb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3fc3c2=>_0x3fc3c2&&this['_editor']['model']['canEditAt'](_0x435f78['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x33357a=>_0x33357a&&this['_editor']['model']['canEditAt'](_0x435f78['getRanges']())),this['_pendingAction']=null,_0x2b9c27['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2b9c27,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2b9c27,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2b9c27,'change:isDirty',()=>{_0x2b9c27['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 _0x5f41db=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5f41db);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x16318d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x79a75,_0x358fe2,_0x58cbae,_0x106c5d){super(_0x79a75),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xe7cc15(_0x79a75,c(_0x79a75,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x358fe2['authoredAt']),this['bind']('authoredAt')['to'](_0x358fe2),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',_0x358fe2,'authoredAt',this,'descriptionParts',(_0x47544c,_0x40d023,_0x45a9f0)=>{const _0x118a0c=_0x45a9f0['map'](_0x331fe5=>ls(_0x331fe5['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x47544c-0x1,_0x358fe2['author']['name'],_0x40d023?_0x106c5d['formatDateTime'](_0x40d023):'',new DOMParser()['parseFromString'](_0x118a0c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x413220(),this['focusTracker']=new _0x411045(),this['keystrokes']=new _0x39057c(),this['focusCycler']=new _0x5dbed0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x28bb39=>_0x28bb39['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x358fe2,this['_localUser']=_0x58cbae,this['_config']=_0x106c5d,_0x106c5d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2e580c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x18cb5c}=this['_config'];this['commentsListView']=new _0x18cb5c(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',_0x44967e=>_0x44967e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5d2c10,_0x317cbd)=>_0x5d2c10||!!_0x317cbd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x129eae}=this['_config'],_0x534fe6=new _0x129eae(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35cd0f=_0x534fe6['commentInputView'];return _0x534fe6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35cd0f,'value',(_0x711aa9,_0x59806b,_0x55d9df)=>!!_0x55d9df||_0x711aa9&&!_0x59806b),_0x35cd0f['on']('submit',(_0x5d6475,_0x5a5b4e)=>{this['fire']('addComment',_0x5a5b4e),_0x35cd0f['editor']['setData']('');}),_0x35cd0f['on']('cancel',()=>this['focus']()),_0x35cd0f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x534fe6;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5cc1fa,_0x5675bd,_0x2d70b7,_0x548cbc){super(_0x5cc1fa,_0x5675bd,_0x2d70b7,_0x548cbc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4632ec=>_0x4632ec&&_0x4632ec[0x0]?_0x4632ec[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe95ea5,_0x2dfb41)=>{let _0x859010='';for(const _0x37a106 of _0xe95ea5)_0x859010+='<p>'+ls(_0x37a106['content'],_0x37a106['color'])+'</p>';return _0x2dfb41?_0x859010:ti(_0x859010,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x548cbc['SuggestionView'](_0x5cc1fa,_0x5675bd,{'formatDateTime':_0x548cbc['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 _0x919878=this['bindTemplate'],_0x651850=[this['suggestionView']];return this['commentsListView']&&_0x651850['push'](this['commentsListView']),this['commentThreadInputView']&&_0x651850['push'](this['commentThreadInputView']),_0x651850['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x919878['if']('isActive','ck-suggestion-wrapper--active'),_0x919878['to']('type',_0x9728ff=>'ck-suggestion-'+_0x9728ff),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':_0x919878['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x651850};}['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 _0x16318d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a44ef,_0xae1fa5,_0x4d0b21){super(_0x2a44ef),this['_model']=_0xae1fa5,this['_config']=_0x4d0b21,this['set']('description',''),this['bind']('authoredAt')['to'](_0xae1fa5),this['acceptButton']=this['_createButton'](c(_0x2a44ef,'Accept\x20suggestion'),_0x255fc4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x2a44ef,'Discard\x20suggestion'),_0x55351e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x32732e(_0x2a44ef,_0xae1fa5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x413220([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x411045(),this['keystrokes']=new _0x39057c(),this['focusCycler']=new _0x5dbed0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4e0a8c=>_0x4e0a8c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x23f286=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x23f286['innerHTML']=this['description'],this['on']('change:description',(_0x4637b0,_0x17e6d8,_0x5553bc)=>{_0x23f286['innerHTML']=_0x5553bc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5e8246=this['bindTemplate'],_0x5eb0c5=[{'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':_0x5e8246['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e8246['to']('authoredAt',_0x55fae2=>this['_config']['formatDateTime'](_0x55fae2))}]}]},{'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']&&_0x5eb0c5['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':_0x5eb0c5}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x28103a,_0x7e5e56,_0x2e4d7f,_0x13d3fc,_0x193990){const _0xbc2ccd=new _0x24e13f(this['locale']);return _0xbc2ccd['set']({'label':_0x28103a,'icon':_0x7e5e56,'tooltip':!0x0,'tooltipPosition':_0x193990}),_0xbc2ccd['extendTemplate']({'attributes':{'class':_0x2e4d7f}}),_0xbc2ccd['on']('execute',()=>{this['fire'](_0x13d3fc,this['_model']['id']);}),_0xbc2ccd;}['_setupKeyboardNavigation'](){const _0x40278c=this['element'];this['keystrokes']['listenTo'](_0x40278c);for(const _0x19eb56 of this['focusables'])this['focusTracker']['add'](_0x19eb56['element']),this['keystrokes']['listenTo'](_0x19eb56['element']);this['keystrokes']['set']('enter',(_0x589f0d,_0x14a531)=>{_0x40278c===_0x589f0d['target']&&(this['focusCycler']['focusFirst'](),_0x14a531());}),this['keystrokes']['set']('esc',(_0x4ddda1,_0x4eb37c)=>{_0x40278c!==_0x4ddda1['target']&&(this['focus'](),_0x4eb37c());});}}class d extends _0x159581{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x446c4e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5675c9){super(_0x5675c9),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4d10f9=this['editor']['config'];_0x4d10f9['define']('trackChanges.SuggestionThreadView',fe),_0x4d10f9['define']('trackChanges.SuggestionView',we),_0x4d10f9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4d10f9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x55c465,_0x5038d6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf3b948,_0x9c1b5b]of this['_handleControllerBuffer']){const _0x58249d=this['_suggestionToController']['has'](_0xf3b948);_0x58249d||_0x9c1b5b?_0x58249d&&_0x9c1b5b&&this['_destroyController'](_0xf3b948):this['_initializeController'](_0xf3b948);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x55c465,_0x5038d6);}['init'](){const _0x38ee42=this['editor'],_0x3bffb2=_0x38ee42['plugins']['get']('TrackChangesEditing'),_0x87e33e=_0x38ee42['plugins']['get']('Annotations'),_0x5389db=_0x38ee42['plugins']['get']('EditorAnnotations'),_0x5b46e9=_0x38ee42['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5389db['addSourceCollector'](()=>{const _0x326a27=[];for(const [_0xfc2de0,_0x4f3799]of Array['from'](this['_suggestionToController'])){const _0x1e5174=_0xfc2de0['getAllAdjacentSuggestions'](),_0x3dafa5=[];for(const _0x514d23 of _0x1e5174){if(!_0x514d23['isInContent'])continue;if(_0x514d23['isMultiRange']){_0x3dafa5['push'](..._0x514d23['getRanges']());continue;}const _0x153211=_0x514d23['getFirstRange']();if(_0x3dafa5['length']>0x0){const _0x208e9=_0x3dafa5[0x0]['getJoined'](_0x153211);if(_0x208e9){_0x3dafa5[0x0]=_0x208e9;continue;}}_0x3dafa5['push'](_0x153211);}_0x326a27['push']([_0x4f3799['view'],_0x3dafa5]);}return _0x326a27;}),this['listenTo'](_0x3bffb2,'suggestionLoaded',(_0x309737,_0x271cf1)=>{this['listenTo'](_0x271cf1,'change:previous',(_0x3a254d,_0x453756,_0x1c5deb,_0xde3203)=>{_0x271cf1['isInContent']&&(null==_0x1c5deb?(this['_updateController'](_0xde3203['head']),this['_handleSuggestionControllerDelayed'](_0x271cf1,!0x1)):(this['_updateController'](_0x1c5deb['head']),null==_0xde3203&&this['_handleSuggestionControllerDelayed'](_0x271cf1,!0x0)));}),null!==_0x271cf1['previous']?this['_updateController'](_0x271cf1['head']):this['_handleSuggestionControllerDelayed'](_0x271cf1,!0x1);}),this['listenTo'](_0x3bffb2,'suggestionUnloaded',(_0x566c23,_0xb74118,_0x169b5a)=>{this['stopListening'](_0xb74118,'change:previous'),this['_handleControllerBuffer']['delete'](_0xb74118),this['_suggestionToController']['has'](_0xb74118)&&this['_destroyController'](_0xb74118),_0x169b5a&&this['_updateController'](_0x169b5a['head']);}),this['listenTo'](_0x3bffb2,'suggestionChanged',(_0x275110,_0x51864f)=>{this['_updateController'](_0x51864f);}),this['listenTo'](_0x87e33e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5b46e9,'addComment',(_0x1c4a37,{threadId:_0x1ddb0d,isFromAdapter:_0x3889cc})=>{if(_0x3889cc||!_0x3bffb2['hasSuggestion'](_0x1ddb0d))return;const _0x2cc53f=_0x3bffb2['getSuggestion'](_0x1ddb0d);this['_suggestionToController']['get'](_0x2cc53f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16868e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cad85;for(const _0x3b4189 in _0x16868e){const _0x2ffd6b=_0x3b4189,_0x1438e0=_0x16868e[_0x2ffd6b];if('trackChangesLicenseKeyValid'==_0x1438e0||'trackChangesLicenseKeyInvalid'==_0x1438e0||'trackChangesLicenseKeyExpired'==_0x1438e0||'trackChangesLicenseKeyDomainLimit'==_0x1438e0||'trackChangesLicenseKeyNotAllowed'==_0x1438e0||'trackChangesLicenseKeyEvaluationLimit'==_0x1438e0||'trackChangesLicenseKeyTrialLimit'==_0x1438e0||'trackChangesLicenseKeyUsageLimit'==_0x1438e0){delete _0x16868e[_0x2ffd6b],_0x5cad85=_0x1438e0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5cad85&&_0x16868e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5cad85&&_0x16868e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5cad85&&_0x16868e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5cad85&&_0x16868e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5cad85&&_0x16868e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5cad85&&_0x16868e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5cad85&&_0x16868e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x855ed6=this['editor']['plugins']['get']('Annotations'),_0x33d11a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e64df=Array['from'](_0x855ed6['activeAnnotations'],_0x54b6f1=>_0x54b6f1['innerView'])['filter'](_0x11468a=>this['_viewToController']['has'](_0x11468a)),_0x50605e=[];for(const _0x2c1b34 of _0x4e64df){const _0x389fd3=this['_viewToController']['get'](_0x2c1b34)['model']['getAllAdjacentSuggestions']();_0x50605e['push'](..._0x389fd3['reduce']((_0x3fc825,_0x22e619)=>[..._0x3fc825,..._0x22e619['getMarkerNames']()],[]));}_0x33d11a['activeMarkers']=_0x50605e;}['_addUIComponentsToFactory'](){const _0x4f71a2=this['editor'],_0x89b9fb=_0x4f71a2['locale'],_0x2abad7=c(_0x89b9fb,'Track\x20changes'),_0x59f6dc=new _0x3a1819([{'type':'switchbutton','model':new _0x2efb49({'withText':!0x0,'isToggleable':!0x0,'label':_0x2abad7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4f71a2['plugins']['has']('TrackChangesPreview')&&_0x59f6dc['addMany']([{'type':'separator'},{'type':'button','model':new _0x2efb49({'withText':!0x0,'label':c(_0x89b9fb,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x20666a of _0x59f6dc)if(ke(_0x20666a)){const _0x454db7=_0x4f71a2['commands']['get'](_0x20666a['model']['commandName']);_0x20666a['model']['bind']('isOn','isEnabled')['to'](_0x454db7,'value','isEnabled');}_0x4f71a2['ui']['componentFactory']['add']('trackChanges',_0xa9e39b=>this['_createToolbarButton'](_0xa9e39b,_0x59f6dc,_0x2abad7)),_0x4f71a2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x14960e=>this['_createMenuBarMenu'](_0x14960e,_0x59f6dc,_0x2abad7));}['_createToolbarButton'](_0x22a000,_0x3abd98,_0x542ffa){const _0x2d0032=_0x5a3954(_0x22a000,_0x18f9d3),_0x3d20db=this['editor']['commands']['get']('trackChanges');_0x2d0032['buttonView']['set']({'tooltip':_0x542ffa,'label':_0x542ffa,'icon':_0x2b2b02}),_0x2d0032['buttonView']['bind']('isOn')['to'](_0x3d20db,'value'),_0x2d0032['buttonView']['on']('execute',()=>{_0x3d20db['execute'](),this['editor']['editing']['view']['focus']();}),_0x6ad703(_0x2d0032,_0x3abd98,{'role':'menu'});const _0x55ff5e=[];for(const _0x278b4f of _0x3abd98)ke(_0x278b4f)&&_0x55ff5e['push'](this['editor']['commands']['get'](_0x278b4f['model']['commandName']));const _0x5ae757=_0x2d0032['buttonView'];return _0x5ae757['actionView']['unbind']('isEnabled'),_0x5ae757['arrowView']['unbind']('isEnabled'),_0x5ae757['actionView']['bind']('isEnabled')['to'](_0x3d20db,'isEnabled'),_0x5ae757['arrowView']['bind']('isEnabled')['toMany'](_0x55ff5e,'isEnabled',(..._0x5d83e5)=>_0x5d83e5['some'](_0x4736c7=>_0x4736c7)),_0x2d0032['on']('execute',_0x1d6ab8=>{this['editor']['execute'](_0x1d6ab8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d0032;}['_createMenuBarMenu'](_0x36e344,_0x21b44d,_0x408ec1){const _0x377ae8=new _0x5f0b44(_0x36e344),_0xcfa13=this['editor']['commands']['get']('trackChanges');_0x377ae8['buttonView']['set']({'label':_0x408ec1,'icon':_0x2b2b02});const _0x1b4fd5=new _0x1a6e2d(_0x36e344);for(const _0x4aaa82 of _0x21b44d){if('separator'==_0x4aaa82['type']){_0x1b4fd5['items']['add'](new _0x2b253d(_0x36e344));continue;}const _0x4014f7=new _0x88bd30(_0x36e344,_0x377ae8),_0x15827d=new _0x39ecdf(_0x36e344),_0x5b372d=_0x4aaa82['model'];_0x15827d['bind'](...Object['keys'](_0x5b372d))['to'](_0x5b372d),_0x15827d['delegate']('execute')['to'](_0x377ae8),_0x15827d['on']('execute',()=>{this['editor']['execute'](_0x5b372d['commandName']),this['editor']['editing']['view']['focus']();}),_0x4014f7['children']['add'](_0x15827d),_0x1b4fd5['items']['add'](_0x4014f7);}return _0x377ae8['bind']('isEnabled')['to'](_0xcfa13,'isEnabled'),_0x377ae8['panelView']['children']['add'](_0x1b4fd5),_0x377ae8;}['_initializeController'](_0x304e43){const _0x369063=this['editor'],_0x9958c9=_0x369063['config'],_0x1bfab9=_0x369063['plugins']['get']('Annotations'),_0x16c6e5=_0x369063['plugins']['get']('CommentsRepository'),_0xacddf6=_0x369063['plugins']['get']('EditorAnnotations'),_0x5beed9=_0x369063['plugins']['get'](_0x446c4e)['me'],_0x274ebe=_0x9958c9['get']('trackChanges')['SuggestionThreadView'],_0x310bb9=_0x9958c9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x481b51,CommentThreadInputView:_0x1544f6}=_0x369063['plugins']['get']('CommentsUI');let _0x5b8ba9,_0x428ed1,_0x528413;this['_annotationViews']['has'](_0x304e43['id'])?(_0x428ed1=this['_annotationViews']['get'](_0x304e43['id']),_0x5b8ba9=_0x428ed1['mainView']):(_0x5b8ba9=new _0x274ebe(_0x369063['locale'],_0x304e43,_0x5beed9,{'disableComments':this['_disableComments'],'editorConfig':{..._0x9958c9['get']('comments.editorConfig'),'licenseKey':_0x9958c9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x9958c9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x9958c9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x9958c9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xefdbc1(_0x9958c9['get']('locale')),'CommentView':_0x9958c9['get']('comments')['CommentView'],'CommentsListView':_0x481b51,'CommentThreadInputView':_0x1544f6,'SuggestionView':_0x310bb9}),_0x5b8ba9['suggestionView']['acceptButton']['on']('execute',()=>{_0x369063['editing']['view']['focus']();}),_0x5b8ba9['suggestionView']['discardButton']['on']('execute',()=>{_0x369063['editing']['view']['focus']();}),_0x428ed1=_0x1bfab9['createAnnotationView'](this['editor']['locale'],_0x5b8ba9),_0x428ed1['bind']('isDirty')['to'](_0x5b8ba9,'isDirty'),_0x428ed1['bind']('length')['to'](_0x5b8ba9),_0x428ed1['bind']('type')['to'](_0x5b8ba9,'type',_0x59fd5f=>'suggestion-'+_0x59fd5f),_0x5b8ba9['on']('escape',()=>{_0x528413['fire']('escape');}),this['_annotationViews']['set'](_0x304e43['id'],_0x428ed1));const _0x3a9a43=_0x16c6e5['createCommentThreadController'](_0x304e43['commentThread'],_0x5b8ba9),_0x563e37=new pe(_0x369063,_0x304e43,_0x5b8ba9,_0x3a9a43),_0x2658b9=_0x304e43['getAllAdjacentSuggestions']()['filter'](_0x57d3ed=>_0x57d3ed['isInContent']);_0x5b8ba9['descriptionParts']=_0x369063['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2658b9),this['_suggestionToController']['set'](_0x304e43,_0x563e37),this['_viewToController']['set'](_0x5b8ba9,_0x563e37),_0x528413=_0x1bfab9['createAnnotation']({'view':_0x428ed1,'target':()=>{const _0x4dcc0e=[],_0xeee1f6=_0x304e43['getAllAdjacentSuggestions']()['filter'](_0x319fc9=>_0x319fc9['isInContent']);for(const _0x59a8b1 of _0xeee1f6)_0x4dcc0e['push'](..._0x59a8b1['getMarkers']());return _0x57aaf5(_0x369063['editing'],_0x4dcc0e);},'type':()=>'suggestion-'+_0x563e37['view']['type']}),_0x16c6e5['_bindAnnotationToEditors'](_0x5b8ba9,_0x528413),_0x1bfab9['add'](_0x528413),_0xacddf6['registerAnnotation'](_0x528413);}['_destroyController'](_0x24b9c2){const _0x3d99dc=this['editor']['plugins']['get']('CommentsRepository'),_0x30050b=this['editor']['plugins']['get']('Annotations'),_0x44da10=this['_suggestionToController']['get'](_0x24b9c2),_0x34d1ea=_0x44da10['view'],_0x5cbd80=_0x30050b['getByInnerView'](_0x34d1ea);_0x3d99dc['_unbindEditors'](_0x34d1ea),_0x5cbd80&&_0x30050b['remove'](_0x5cbd80),this['_suggestionToController']['delete'](_0x24b9c2),this['_viewToController']['delete'](_0x34d1ea),_0x44da10['destroy']();}['_updateController'](_0x119b74){if(!_0x119b74['isInContent']||!this['_suggestionToController']['has'](_0x119b74))return;const _0x2494a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17c182=this['_suggestionToController']['get'](_0x119b74),_0x131b4a=_0x119b74['getAllAdjacentSuggestions']();_0x17c182['view']['descriptionParts']=_0x2494a6['descriptionFactory']['getDescriptions'](_0x131b4a);}['destroy'](){for(const _0xc68572 of this['_suggestionToController']['keys']())this['_destroyController'](_0xc68572);for(const _0x5c406c of this['_annotationViews']['values']())_0x5c406c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x36cddb){return'model'in _0x36cddb;}class k extends _0x159581{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x540c8b){this['editor']['plugins']['get'](p)['adapter']=_0x540c8b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x35eb51){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x35eb51);}['getSuggestions']({skipNotAttached:_0xc59571=!0x1,toJSON:_0x676bbf=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xc59571,'toJSON':_0x676bbf});}['getSuggestion'](_0x44d627){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x44d627);}}const w=['Pagination'];class T extends _0x159581{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x35103d=this['editor'];if(_0x35103d['config']['define']('trackChangesData.editorCreator',_0x1e187b=>{const _0x60d7b5=_0x35103d['model']['document']['getRootNames']()['reduce']((_0x2826fd,_0xe3f97a)=>(_0x2826fd[_0xe3f97a]='',_0x2826fd),{});return _0x35103d['constructor']['create'](_0x60d7b5,_0x1e187b);}),'function'!=typeof _0x35103d['config']['get']('trackChangesData')['editorCreator'])throw new _0x281979('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5c2386){return N(this['editor'],!0x0,_0x5c2386);}['getDataWithDiscardedSuggestions'](_0x2a413e){return N(this['editor'],!0x1,_0x2a413e);}}class D extends _0x159581{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe382f1){function _0x1f1366(_0x5e9b70){return _0x5e9b70['map'](_0x5d896d=>String['fromCharCode'](_0x5d896d))['join']('');}super(_0xe382f1),this['result']='end',_0xe382f1[_0x1f1366([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1366([0x76,0x69,0x65,0x77])][_0x1f1366([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1366([0x61,0x75,0x74,0x6f]),_0xe382f1[_0x1f1366([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1f1366([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1366([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1f1366([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1f1366([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x4d0c73){return void 0x0!==_0x4d0c73['getRootsAttributes'];}async function N(_0xb25bb8,_0x4c1fec,_0x5c8c5e){const _0x826da8=_0x5502fd(_0xb25bb8,w);_0x826da8['plugins']['push'](p,D),_0x826da8['rootsAttributes']=Fe(_0xb25bb8)?_0xb25bb8['getRootsAttributes']():void 0x0;const _0x2bd8fb=document['createDocumentFragment'](),_0x2e8f23=_0xb25bb8['config']['get']('trackChangesData')['editorCreator'],_0x558d60=await _0x2e8f23(_0x826da8,()=>function(_0x1f7dfb){const _0x1eaf27=document['createElement']('div');return _0x1f7dfb['appendChild'](_0x1eaf27),_0x1eaf27;}(_0x2bd8fb));!function(_0xab0d2,_0x5cffd2){const _0x520cd0=_0xab0d2['model']['document']['getRootNames']()['reduce']((_0x5f8e21,_0x399d8b)=>(_0x5f8e21[_0x399d8b]=_0xab0d2['data']['get']({'rootName':_0x399d8b}),_0x5f8e21),{}),_0x4316ee=_0xab0d2['plugins']['get']('Users')['users']['map'](_0x3c9e56=>({'id':_0x3c9e56['id'],'name':_0x3c9e56['name']})),_0x5aafff=_0xab0d2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x436f57=_0xab0d2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ee500=_0x5cffd2['plugins']['get']('Users'),_0x48bc95=_0x5cffd2['plugins']['get']('TrackChangesEditing'),_0x4de507=_0x5cffd2['plugins']['get']('CommentsRepository');for(const _0x15d30a of _0x4de507['getCommentThreads']())_0x15d30a['remove']();for(const _0x4afd9e of _0x4316ee)_0x4ee500['getUser'](_0x4afd9e['id'])||_0x4ee500['addUser'](_0x4afd9e);_0x4ee500['me']||_0x4ee500['useAnonymousUser']();for(const _0xe67d9d of _0x436f57)_0x4de507['addCommentThread'](_0xe67d9d);for(const _0xc5c7ea of _0x5aafff)_0x48bc95['addSuggestionData'](_0xc5c7ea);_0x5cffd2['data']['set'](_0x520cd0);}(_0xb25bb8,_0x558d60),_0x558d60['execute'](_0x4c1fec?'acceptAllSuggestions':'discardAllSuggestions');const _0x531f98=Fe(_0x558d60)?_0x558d60['getFullData'](_0x5c8c5e):_0x558d60['data']['get'](_0x5c8c5e);return await _0x558d60['destroy'](),_0x531f98;}class Me extends _0x16318d{['options'];constructor(_0x2b5bdb,_0xd3c9d5){super(_0x2b5bdb),this['options']=_0xd3c9d5,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'](_0x34c107,_0x254258){if(!this['element'])return;const _0x5858ca=[];for(const [_0x2d13aa,_0x2602bf]of _0x34c107){const _0x456bb5=document['createElement']('div');_0x456bb5['setAttribute']('data-ck-root-name',_0x2d13aa),_0x456bb5['className']=_0x2602bf['classes']+'\x20ck-track-changes-preview__root-container',_0x456bb5['innerHTML']=_0x2602bf['content'],_0x5858ca['push'](_0x456bb5);}_0x254258(this['element'],_0x5858ca),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5aed8f{constructor(_0x372356){super(_0x372356),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x299c17=this['editor'],_0x2eda62=_0x299c17['locale'],_0x364895=_0x299c17['plugins']['get']('Dialog');let _0x25432c;const _0x26dc39=function(_0x31ab22){const _0x5799b4={};if('editables'in _0x31ab22['ui']['view']){for(const [_0x4dada1,_0x33aaee]of Object['entries'](_0x31ab22['ui']['view']['editables']))_0x5799b4[_0x4dada1]=_0x33aaee['element'];}else _0x5799b4[_0x31ab22['model']['document']['getRootNames']()[0x0]]=_0x31ab22['ui']['view']['editable']['element'];return _0x5799b4;}(_0x299c17),_0x30df84=function(_0x65b013){let _0x40bea1=0x0;for(const _0x4c46d3 of Object['values'](_0x65b013))_0x40bea1=Math['max'](_0x40bea1,_0x4c46d3['getBoundingClientRect']()['width']);let _0x2d66b4=0x0;for(const _0x259340 of Object['values'](_0x65b013))_0x2d66b4+=_0x259340['getBoundingClientRect']()['height'];const _0x273d52=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x589eb3=Math['min'](_0x2d66b4,_0x273d52);return{'width':_0x40bea1,'height':_0x589eb3};}(_0x26dc39);_0x364895['show']({'id':'finalContentPreview','title':c(_0x2eda62,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2eda62,{'dialogRects':_0x30df84}),'onHide':()=>{_0x25432c['detachFromDom']();},'onShow':()=>{_0x299c17['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x272884=>{const _0x58cb99=this['_standarizeRootsData'](_0x272884,_0x299c17,_0x26dc39);_0x364895['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x58cb99,_0x299c17['config']['get']('trackChanges.preview.renderFunction'));}),_0x25432c=new _0x558bee(_0x2eda62,[_0x364895['view']]),_0x25432c['attachToDom'](),_0x25432c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x299c17['once']('destroy',()=>{_0x25432c['detachFromDom']();});const _0x859fc=_0x364895['view']['headerView']['class'];_0x364895['view']['headerView']['class']=_0x859fc?_0x859fc+'\x20ck-reset_all':'ck-reset_all',_0x364895['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x364895['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2e5cfb=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1dd6f2=_0x2e5cfb['previewMode'],_0x2eebf1={};if('$labels'===_0x1dd6f2){for(const _0x4cce5e of _0x2e5cfb['getMergeFieldsIds']())_0x2eebf1[_0x4cce5e]=_0x2e5cfb['getLabel'](_0x4cce5e)||_0x4cce5e;}else{const _0x26aaf2='$defaultValues'===_0x1dd6f2?_0x2e5cfb['getDefaultValues']():_0x2e5cfb['getDataSetValues'](_0x1dd6f2,!0x0);for(const _0x1c6612 of Object['entries'](_0x26aaf2)){const [_0x77b88a,_0x26e5bb]=_0x1c6612;_0x2eebf1[_0x77b88a]=null!==_0x26e5bb?_0x26e5bb:_0x2e5cfb['getLabel'](_0x77b88a)||_0x77b88a;}}return{'mergeFieldsData':_0x2eebf1};}['_standarizeRootsData'](_0x285d32,_0x31eb9b,_0x1d4227){let _0x1f8bef;if('string'==typeof _0x285d32){const _0x401c2b=_0x31eb9b['model']['document']['getRootNames']()[0x0];_0x1f8bef={[_0x401c2b]:_0x285d32};}else _0x1f8bef=_0x285d32;const _0x502697=this['_fixMediaEmbeds'](_0x1f8bef,_0x31eb9b),_0x1476f0=function(_0x1bf371,_0x106ef9){for(const [_0x294884,_0x7ffed1]of _0x1bf371)_0x7ffed1['classes']=_0x106ef9[_0x294884]['classList']['value']['replace']('ck-focused','');return _0x1bf371;}(this['_sortRoots'](_0x31eb9b)['reduce']((_0x5bcee3,_0x1b7df0)=>(_0x5bcee3['push']([_0x1b7df0,{'content':_0x502697[_0x1b7df0],'classes':''}]),_0x5bcee3),[]),_0x1d4227);return _0x1476f0;}['_fixMediaEmbeds'](_0x42d096,_0x9b59c6){if(!_0x9b59c6['plugins']['has']('MediaEmbedEditing'))return _0x42d096;const _0x5832f5=_0x9b59c6['plugins']['get']('MediaEmbedEditing');for(const [_0xd07438,_0x274ee8]of Object['entries'](_0x42d096)){const _0x19a653=document['createElement']('div');_0x19a653['innerHTML']=_0x274ee8,(_0x19a653['querySelectorAll']('figure.media')['forEach'](_0x289bd9=>{const _0xe4387f=_0x289bd9['querySelector']('oembed');if(_0xe4387f){const _0x394d73=_0xe4387f['getAttribute']('url');if(_0x394d73){const _0x2c3d11=_0x5832f5['registry']['getMediaViewElement'](new _0x21e3ff(_0x9b59c6['editing']['view']['document']),_0x394d73,{'elementName':'','renderForEditingView':!0x0}),_0x286a6e=document['createElement']('div');_0x286a6e['classList']['add']('ck-media__wrapper'),_0x2c3d11['render'](_0x286a6e,_0x9b59c6['editing']['view']['domConverter']),_0xe4387f['replaceWith'](_0x286a6e);}}}),_0x42d096[_0xd07438]=_0x19a653['innerHTML']);}return _0x42d096;}['_sortRoots'](_0x182741){if(!function(_0x543a9f){return void 0x0!==_0x543a9f['getRootsAttributes'];}(_0x182741))return _0x182741['model']['document']['getRootNames']();const _0x5dd54e=[],_0x3515e2=new Map();for(const _0x109f03 of _0x182741['model']['document']['getRootNames']()){const _0xf04bce=_0x182741['editing']['view']['getDomRoot'](_0x109f03)['getClientRects']()['item'](0x0);_0x5dd54e['push'](_0x109f03),_0x3515e2['set'](_0x109f03,_0xf04bce);}return _0x5dd54e['sort']((_0x236211,_0x5e0a01)=>{const _0x168b81=_0x3515e2['get'](_0x236211),_0x1275da=_0x3515e2['get'](_0x5e0a01);return _0x168b81['y']-_0x1275da['y']||_0x168b81['x']-_0x1275da['x'];}),_0x5dd54e;}}class te extends _0x159581{static get['requires'](){return[T,_0x2ec598];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x363727){super(_0x363727),_0x363727['commands']['add']('previewFinalContent',new re(this['editor'])),_0x363727['config']['define']('trackChanges.preview.renderFunction',(_0x19d9f2,_0x376c5d)=>{for(const _0x47d1b2 of _0x376c5d)_0x19d9f2['appendChild'](_0x47d1b2);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|