@ckeditor/ckeditor5-track-changes 45.0.0-alpha.3 → 45.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x2ec9e0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2df218,_0x2689d1){super(),this['id']=_0x2689d1['id'],this['type']=_0x2689d1['type'],this['subType']=_0x2689d1['subType']||null,this['author']=_0x2689d1['author'],this['creator']=_0x2689d1['creator']||_0x2689d1['author'],this['isExternal']=Boolean(_0x2689d1['attributes']&&_0x2689d1['attributes']['@external']),this['data']=null,this['_model']=_0x2df218,this['_onAccept']=_0x2689d1['onAccept'],this['_onDiscard']=_0x2689d1['onDiscard'],this['_onAttributesChange']=_0x2689d1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2689d1['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 _0x114f78=this;for(;_0x114f78['previous'];)_0x114f78=_0x114f78['previous'];return _0x114f78;}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'](_0x503f77){this['_markerNames']['add'](_0x503f77);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x50998e=>this['_model']['markers']['get'](_0x50998e))['filter'](_0x246e32=>_0x246e32);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xe482cc=>{for(const _0x52c92f of this['getMarkers']())_0xe482cc['removeMarker'](_0x52c92f);}),this['_markerNames']['clear']();}['removeMarker'](_0x8588ab){this['_model']['change'](_0x1b6a71=>{_0x1b6a71['removeMarker'](_0x8588ab);}),this['_markerNames']['delete'](_0x8588ab);}['addRange'](_0x59e58c){const _0x9ce662='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x9ce662),this['_model']['change'](_0x5a4078=>{_0x5a4078['addMarker'](_0x9ce662,{'range':_0x59e58c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1f5276){for(const _0x4e9e89 of this['getRanges']())if(_0x4e9e89['isIntersecting'](_0x1f5276))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5a3d8c=>_0x5a3d8c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3bf81f,_0x5e442d)=>[..._0x3bf81f,..._0x5e442d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x342cf5=this['getRanges']();if(0x1!=_0x342cf5['length'])return null;const _0x52f7c7=_0x342cf5[0x0],_0x5ced18=_0x52f7c7['start']['nodeAfter'],_0x290689=_0x52f7c7['end']['nodeBefore'];return _0x5ced18 instanceof _0x3c242c?_0x5ced18!=_0x290689?null:_0x5ced18: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 _0x4e1e63=[];let _0x93212b=this['head'];for(;_0x93212b;)_0x4e1e63['push'](_0x93212b),_0x93212b=_0x93212b['next'];return _0x4e1e63;}['setAttribute'](_0x461301,_0x1b363d){const _0x2c4560=_0x4006cb(this['attributes']);_0x4ce143(_0x2c4560,_0x461301,_0x1b363d),_0x3e9ffc(_0x2c4560,this['attributes'])||(this['attributes']=_0x2c4560,this['_onAttributesChange'](_0x2c4560));}['removeAttribute'](_0x44f2c2){const _0x31ae76=_0x4006cb(this['attributes']);_0x441703(_0x31ae76,_0x44f2c2),_0x3e9ffc(_0x31ae76,this['attributes'])||(this['attributes']=_0x31ae76,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 _0x2397a2()['substr'](0x1,0x5);}}function c(_0x35ab2d,_0x47cc2d,_0x4e1cdc){const _0x4ed9fd=_0x35ab2d['t'],t=_0x35ab2d['t'];switch(_0x47cc2d){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',_0x4e1cdc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4e1cdc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4e1cdc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4e1cdc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4e1cdc);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',_0x4e1cdc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4e1cdc);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',_0x4e1cdc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4e1cdc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4e1cdc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4e1cdc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4e1cdc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4e1cdc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4e1cdc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4e1cdc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4e1cdc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4e1cdc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4e1cdc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4e1cdc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4e1cdc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4e1cdc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4e1cdc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4e1cdc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4e1cdc);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4e1cdc);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4e1cdc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4e1cdc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4e1cdc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4e1cdc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4e1cdc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4e1cdc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4e1cdc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4e1cdc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4e1cdc);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'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4e1cdc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4e1cdc);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'},_0x4e1cdc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4e1cdc);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 _0x4ed9fd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4e1cdc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ed9fd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4e1cdc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4e1cdc);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'},_0x4e1cdc);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'},_0x4e1cdc);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'},_0x4e1cdc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x47cc2d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5619b1,_0xa8bca8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5619b1,this['_locale']=_0xa8bca8;}['getDescriptions'](_0x50917f){const _0x57371b=[],_0x2ce068=new Set(),_0x4a921c=new Set();for(let _0x2da971=0x0;_0x2da971<_0x50917f['length'];_0x2da971++){const _0x2a5554=_0x50917f[_0x2da971];if(!_0x2a5554['isInContent'])continue;const _0x56f1df=this['_handleCustomCallbackDescription'](_0x2a5554);if(_0x56f1df){if(null!=_0x2a5554['subType']){if(_0x2ce068['has'](_0x2a5554['subType']))continue;_0x2ce068['add'](_0x2a5554['subType']);}_0x57371b['push'](_0x56f1df);}else{if('attribute'!=_0x2a5554['type'])'insertion'!=_0x2a5554['type']&&'deletion'!=_0x2a5554['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57371b,_0x2a5554,_0x50917f[_0x2da971+0x1]);else{const _0x38b493=_0x2a5554['data']['key'];if(_0x4a921c['has'](_0x38b493))continue;_0x4a921c['add'](_0x2a5554['data']['key']),_0x38b493==u?this['_handleRenameSuggestionDescription'](_0x57371b,_0x2a5554):this['_handleAttributeSuggestionDescription'](_0x57371b,_0x2a5554);}}}return this['_resolveDescriptionItems'](_0x57371b);}['registerDescriptionCallback'](_0x30a59e){this['_customCallbacks']['push'](_0x30a59e);}['registerElementLabel'](_0xecade5,_0x51c667,_0x299575=_0x1a62d1['normal']){'function'==typeof _0xecade5?_0xf30c45(this['_itemLabelsCallbacks'],{'matchingCallback':_0xecade5,'label':_0x51c667,'priority':_0x299575}):this['_itemLabels']['set'](_0xecade5,_0x51c667);}['registerAttributeLabel'](_0x7837b6,_0x1c51a0){this['_attributeLabels']['set'](_0x7837b6,_0x1c51a0);}['getItemLabel'](_0x3352fc,_0xbe799b=0x1){let _0x2e8060;for(const _0x155637 of this['_itemLabelsCallbacks'])if(_0x155637['matchingCallback'](_0x3352fc)){_0x2e8060=_0x155637['label'];break;}return _0x2e8060||(_0x2e8060=this['_itemLabels']['get'](_0x3352fc['name'])),_0x2e8060?_0x2e8060(_0xbe799b):0x1!==_0xbe799b?_0xbe799b+'\x20'+_0x3352fc['name']+'s':''+_0x3352fc['name'];}['_addDescriptionItems'](_0x205cce,_0x56ffcc){const _0x4d8a96=_0x56ffcc['getFirstRange']()['getWalker'](),_0xacfab1='insertion'==_0x56ffcc['type']?'add':'remove';for(const _0x181486 of _0x4d8a96){const _0x3c9007=_0x181486['item'],_0x3bcca0=_0x205cce[_0x205cce['length']-0x1];if(_0x3c9007['is']('$textProxy'))_0x3bcca0&&_0x3bcca0['type']['indexOf']('Container')>-0x1&&_0x205cce['pop'](),_0x3bcca0&&'text'==_0x3bcca0['type']?_0x3bcca0[_0xacfab1]+=_0x3c9007['data']:_0x205cce['push']({'type':'text','add':'add'==_0xacfab1?_0x3c9007['data']:'','remove':'remove'==_0xacfab1?_0x3c9007['data']:''});else{if(this['_schema']['isObject'](_0x3c9007)){const _0x2618da=_0x3c9007;if(_0x3bcca0&&_0x3bcca0['type']['indexOf']('Container')>-0x1&&_0x205cce['pop'](),'elementEnd'==_0x181486['type'])continue;_0x3bcca0&&_0x3bcca0['type']==_0xacfab1+'Object'&&_0x3bcca0['element']['name']==_0x2618da['name']?_0x3bcca0['quantity']++:_0x205cce['push']({'type':_0xacfab1+'Object','element':_0x2618da,'quantity':0x1}),_0x4d8a96['skip'](_0x1cd714=>!('elementEnd'==_0x1cd714['type']&&_0x1cd714['item']==_0x3c9007));}else{if(this['_schema']['checkChild'](_0x3c9007,'$text')||_0x3c9007['is']('element','softBreak')){const _0x3f6d66=_0x3c9007;if('add'==_0xacfab1&&'elementStart'==_0x181486['type']||'remove'==_0xacfab1&&'elementEnd'==_0x181486['type'])continue;if(_0x3bcca0&&-0x1==_0x3bcca0['type']['indexOf']('Container')){'text'==_0x3bcca0['type']&&(_0x3bcca0[_0xacfab1]+='\x0a');continue;}let _0x47cfd6;if(_0x47cfd6='add'==_0xacfab1?_0x3f6d66['nextSibling']&&!this['_schema']['isObject'](_0x3f6d66['nextSibling'])?_0x3f6d66['nextSibling']:null:_0x3f6d66['previousSibling']&&!this['_schema']['isObject'](_0x3f6d66['previousSibling'])?_0x3f6d66['previousSibling']:null,_0x3f6d66['isEmpty']||_0x47cfd6&&_0x47cfd6['isEmpty']){const _0x22b399=_0x47cfd6&&_0x47cfd6['isEmpty']?_0x47cfd6:_0x3f6d66;_0x3bcca0&&_0x3bcca0['type']==_0xacfab1+'EmptyContainer'&&_0x3bcca0['element']['name']==_0x22b399['name']?_0x3bcca0['quantity']++:_0x205cce['push']({'type':_0xacfab1+'EmptyContainer','element':_0x22b399,'quantity':0x1});}else _0x205cce['push']({'type':_0xacfab1+'Container','element':_0x3f6d66});}}}}}['_resolveDescriptionItems'](_0x52f3d0){const _0x2d803c=this['_locale'],_0x1fe9a0=[],_0x1689b1=[],_0x42e99c=[];for(const _0x33fa3c of _0x52f3d0)switch(_0x33fa3c['type']){case'text':if(_0x33fa3c['add']=_0x33fa3c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x33fa3c['remove']=_0x33fa3c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x33fa3c['add']&&''!=_0x33fa3c['remove']){_0x1fe9a0['push']({'type':'replace','content':c(_0x2d803c,'REPLACE_TEXT',['\x22'+_0x33fa3c['remove']+'\x22','\x22'+_0x33fa3c['add']+'\x22'])});continue;}if(null!=_0x33fa3c['add']['match'](/^ +$/)){_0x1fe9a0['push']({'type':'insertion','content':c(_0x2d803c,'*Insert:*\x20%0',c(_0x2d803c,'ELEMENT_SPACE',_0x33fa3c['add']['length']))});continue;}if(null!=_0x33fa3c['remove']['match'](/^ +$/)){_0x1fe9a0['push']({'type':'deletion','content':c(_0x2d803c,'*Remove:*\x20%0',c(_0x2d803c,'ELEMENT_SPACE',_0x33fa3c['remove']['length']))});continue;}if(''!=_0x33fa3c['add']){_0x1fe9a0['push']({'type':'insertion','content':c(_0x2d803c,'*Insert:*\x20%0','\x22'+_0x33fa3c['add']+'\x22')});continue;}_0x1fe9a0['push']({'type':'deletion','content':c(_0x2d803c,'*Remove:*\x20%0','\x22'+_0x33fa3c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1fe9a0['push']({'type':'insertion','content':c(_0x2d803c,'*Insert:*\x20%0',this['getItemLabel'](_0x33fa3c['element'],_0x33fa3c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1fe9a0['push']({'type':'deletion','content':c(_0x2d803c,'*Remove:*\x20%0',this['getItemLabel'](_0x33fa3c['element'],_0x33fa3c['quantity']))});continue;case'addContainer':_0x1fe9a0['push']({'type':'insertion','content':c(_0x2d803c,'*Split:*\x20%0',this['getItemLabel'](_0x33fa3c['element'],_0x33fa3c['quantity']))});continue;case'removeContainer':_0x1fe9a0['push']({'type':'deletion','content':c(_0x2d803c,'*Merge:*\x20%0',this['getItemLabel'](_0x33fa3c['element'],_0x33fa3c['quantity']))});continue;case'addFormat':_0x1689b1['push'](_0x33fa3c['key']);continue;case'removeFormat':_0x42e99c['push'](_0x33fa3c['key']);continue;default:_0x1fe9a0['push'](_0x33fa3c);}if(_0x1689b1['length']){const _0x45a38d=_0x1689b1['map'](_0x578696=>this['_attributeLabels']['has'](_0x578696)?this['_attributeLabels']['get'](_0x578696):_0x578696)['join'](',\x20');_0x1fe9a0['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x45a38d)});}if(_0x42e99c['length']){const _0x537aa9=_0x42e99c['map'](_0x5d2607=>this['_attributeLabels']['has'](_0x5d2607)?this['_attributeLabels']['get'](_0x5d2607):_0x5d2607)['join'](',\x20');_0x1fe9a0['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x537aa9)});}return _0x1fe9a0;}['_handleCustomCallbackDescription'](_0x37d0c5){for(const _0x4c1572 of this['_customCallbacks']){const _0x401eeb=_0x4c1572(_0x37d0c5);if(_0x401eeb&&'type'in _0x401eeb)return _0x401eeb;}}['_handleAttributeSuggestionDescription'](_0x49007b,_0x2a5794){const _0x69bfc7=_0x2a5794['data'],_0x7597a1=void 0x0===_0x69bfc7['newValue']?'removeFormat':'addFormat';_0x49007b['push']({'type':_0x7597a1,'key':_0x69bfc7['key']});}['_handleRenameSuggestionDescription'](_0x5e3d3b,_0x22199c){_0x5e3d3b['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x22199c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1b3c18,_0x57d4a4,_0x4af803){if(this['_addDescriptionItems'](_0x1b3c18,_0x57d4a4),_0x4af803&&_0x4af803['getFirstRange']()&&!_0x57d4a4['getFirstRange']()['end']['isEqual'](_0x4af803['getFirstRange']()['start'])){const _0x20f57b=_0x1b3c18[_0x1b3c18['length']-0x1],_0x323dc9='insertion'==_0x57d4a4['type']?'add':'remove';_0x20f57b&&'text'==_0x20f57b['type']&&(_0x20f57b[_0x323dc9]+='\x0a');}}}class U extends _0x1667de{['afterInit'](){const _0x55d47c=this['editor'],_0x4c35e9=_0x55d47c['plugins']['get']('TrackChangesEditing');_0x55d47c['commands']['get']('showAIAssistant')&&_0x4c35e9['enableCommand']('showAIAssistant');}}class V extends _0x1667de{['afterInit'](){const _0xba4c55=this['editor'],_0x4e896f=_0xba4c55['locale'];if(!_0xba4c55['plugins']['has']('AlignmentEditing'))return;const _0xddb5d4=_0xba4c55['plugins']['get']('TrackChangesEditing');_0xddb5d4['enableDefaultAttributesIntegration']('alignment'),_0xddb5d4['registerBlockAttribute']('alignment'),_0xddb5d4['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4e896f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c595c=this['editor'],_0x28f251=_0x1c595c['locale'];_0x1c595c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fe5bc=>{if('formatBlock'!=_0x1fe5bc['type'])return;const {data:_0x23ba46}=_0x1fe5bc;if(_0x23ba46&&'alignment'==_0x23ba46['commandName']){const _0x43ea7e=_0x23ba46['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x28f251,'*Format:*\x20%0',function(_0x57c828){switch(_0x57c828){case'left':return c(_0x28f251,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x28f251,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x28f251,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x28f251,'FORMAT_JUSTIFY_TEXT');}}(_0x43ea7e))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x1667de{['afterInit'](){const _0x121f8b=this['editor'],_0x41326a=_0x121f8b['plugins']['get']('TrackChangesEditing'),_0x440bf3=_0x121f8b['locale'];for(const _0x5647fb of Zt){if(!_0x121f8b['plugins']['has'](_0x5647fb))continue;const _0x4f414e=_0x5647fb['slice'](0x0,-0x7)['toLowerCase'](),_0x3b7045='FORMAT_'+_0x4f414e['toUpperCase']();_0x41326a['enableDefaultAttributesIntegration'](_0x4f414e),_0x41326a['registerInlineAttribute'](_0x4f414e),_0x41326a['descriptionFactory']['registerAttributeLabel'](_0x4f414e,c(_0x440bf3,_0x3b7045));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ef92c=this['editor'],_0x3f49fd=_0x4ef92c['locale'],_0x337771=_0x4ef92c['plugins']['get']('TrackChangesEditing');function _0x4d6c1e(_0x18f210,_0x1ba34b){_0x337771['descriptionFactory']['registerDescriptionCallback'](_0x35f257=>{if('formatInline'!=_0x35f257['type'])return;const {data:_0x1dad31}=_0x35f257;return _0x1dad31&&_0x1dad31['commandName']===_0x18f210?_0x1dad31['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f49fd,'*Format:*\x20%0',_0x1ba34b)}:{'type':'format','content':c(_0x3f49fd,'*Remove\x20format:*\x20%0',_0x1ba34b)}:void 0x0;});}_0x4d6c1e('bold',c(_0x3f49fd,'FORMAT_BOLD')),_0x4d6c1e('italic',c(_0x3f49fd,'FORMAT_ITALIC')),_0x4d6c1e('underline',c(_0x3f49fd,'FORMAT_UNDERLINE')),_0x4d6c1e('code',c(_0x3f49fd,'FORMAT_CODE')),_0x4d6c1e('strikethrough',c(_0x3f49fd,'FORMAT_STRIKETHROUGH')),_0x4d6c1e('subscript',c(_0x3f49fd,'FORMAT_SUBSCRIPT')),_0x4d6c1e('superscript',c(_0x3f49fd,'FORMAT_SUPERSCRIPT'));}}class G extends _0x1667de{['afterInit'](){const _0x1453b9=this['editor'],_0x4dc2eb=_0x1453b9['locale'];if(!_0x1453b9['plugins']['has']('BlockQuoteEditing'))return;const _0x470695=_0x1453b9['plugins']['get']('TrackChangesEditing'),_0x470c68=this['editor']['commands']['get']('blockQuote');_0x470695['enableCommand']('blockQuote',(_0x40a3e0,_0x111ea5={})=>{const _0x451935=this['editor']['model']['document']['selection'],_0x66259=_0x111ea5&&void 0x0!==_0x111ea5['forceValue']?_0x111ea5['forceValue']:!_0x470c68['value'];let _0x43d458=[];if(_0x66259){const _0x2c4e8b=Array['from'](_0x451935['getSelectedBlocks']())['filter'](_0x4b8887=>oo(_0x4b8887)||function(_0x5aa7b5,_0x1f074a){const _0x2c6e9c=_0x1f074a['checkChild'](_0x5aa7b5['parent'],'blockQuote'),_0x3222ec=_0x1f074a['checkChild'](['$root','blockQuote'],_0x5aa7b5);return _0x2c6e9c&&_0x3222ec;}(_0x4b8887,this['editor']['model']['schema']));_0x43d458=to(_0x2c4e8b,_0x1453b9['model']);}else{const _0x4cb49e=Array['from'](_0x451935['getSelectedBlocks']())['filter'](_0x46f42c=>oo(_0x46f42c));_0x43d458=to(_0x4cb49e,_0x1453b9['model']);}_0x1453b9['model']['change'](()=>{for(const _0x445981 of _0x43d458)_0x470695['markBlockFormat'](_0x445981,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x66259}]});});}),_0x470695['descriptionFactory']['registerDescriptionCallback'](_0x5e8dbb=>{const {data:_0x4c8216}=_0x5e8dbb;if(_0x4c8216&&'blockQuote'==_0x4c8216['commandName']){const _0x1ad1fe=c(_0x4dc2eb,'ELEMENT_BLOCK_QUOTE');return _0x4c8216['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4dc2eb,'*Set\x20format:*\x20%0',_0x1ad1fe)}:{'type':'format','content':c(_0x4dc2eb,'*Remove\x20format:*\x20%0',_0x1ad1fe)};}});}}function oo(_0x4a66d4){return'blockQuote'==_0x4a66d4['parent']['name'];}class L extends _0x1667de{['afterInit'](){const _0x41575e=this['editor'],_0x23d2c2=_0x41575e['locale'],_0x564d65=_0x41575e['plugins']['get']('TrackChangesEditing');_0x41575e['plugins']['has']('BookmarkEditing')&&(_0x564d65['enableCommand']('insertBookmark'),_0x564d65['enableDefaultAttributesIntegration']('updateBookmark'),_0x564d65['registerBlockAttribute']('bookmarkId'),_0x564d65['descriptionFactory']['registerDescriptionCallback'](_0x4dc482=>{if('insertion'!=_0x4dc482['type']&&'deletion'!=_0x4dc482['type']&&'attribute'!=_0x4dc482['type'])return;const _0x1e3c54=_0x4dc482['getContainedElement']();if(null==_0x1e3c54)return;if(!_0x1e3c54['is']('element','bookmark'))return;const _0x5b6ef5=_0x1e3c54['getAttribute']('bookmarkId');if('insertion'==_0x4dc482['type'])return{'type':'insertion','content':c(_0x23d2c2,'*Insert:*\x20%0','\x22'+_0x5b6ef5+'\x22\x20'+c(_0x23d2c2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4dc482['type'])return{'type':'deletion','content':c(_0x23d2c2,'*Remove:*\x20%0','\x22'+_0x5b6ef5+'\x22\x20'+c(_0x23d2c2,'ELEMENT_BOOKMARK'))};const {data:_0x22c806}=_0x4dc482;if(!_0x22c806||'bookmarkId'!=_0x22c806['key'])return;return{'type':'format','content':c(_0x23d2c2,'*Set\x20bookmark:*\x20%0','\x22'+_0x22c806['newValue']+'\x22')};}));}}class J extends _0x1667de{['afterInit'](){const _0x1dcd4e=this['editor'];_0x1dcd4e['plugins']['has']('CaseChange')&&(_0x1dcd4e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1dcd4e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1dcd4e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x1667de{['afterInit'](){const _0x1000fe=this['editor'];_0x1000fe['commands']['get']('ckbox')&&_0x1000fe['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x1667de{['afterInit'](){const _0x4e73a0=this['editor'];if(!_0x4e73a0['plugins']['has']('CodeBlock'))return;const _0x3d3e06=_0x4e73a0['plugins']['get']('TrackChangesEditing'),_0x59e949=_0x4e73a0['locale'],_0x1df9ea=_0x4e73a0['config']['get']('codeBlock')['languages'],_0x414231=_0x4e73a0['commands']['get']('codeBlock');_0x3d3e06['enableCommand']('indentCodeBlock'),_0x3d3e06['enableCommand']('outdentCodeBlock'),_0x3d3e06['enableCommand']('codeBlock',(_0x572146,_0x4d19de={})=>{const _0x378484=_0x4e73a0['model'],_0x262a21=_0x4e73a0['model']['document']['selection'],_0x138914=_0x4d19de&&void 0x0!==_0x4d19de['forceValue']?_0x4d19de['forceValue']:!_0x414231['value'];let _0x7fd15e;_0x4d19de['language']||(_0x4d19de['language']=_0x1df9ea[0x0]['language']),_0x7fd15e=_0x138914?Array['from'](_0x262a21['getSelectedBlocks']())['filter'](_0x45ad10=>eo(_0x45ad10)||function(_0x1ccdf6,_0x8f66b5){if(_0x1ccdf6['is']('rootElement')||_0x8f66b5['isLimit'](_0x1ccdf6))return!0x1;return _0x8f66b5['checkChild'](_0x1ccdf6['parent'],'codeBlock');}(_0x45ad10,_0x378484['schema'])):Array['from'](_0x262a21['getSelectedBlocks']())['filter'](_0x21506a=>eo(_0x21506a));const _0x2fbd05=to(_0x7fd15e,_0x378484);_0x378484['change'](()=>{for(const _0x2ae8e4 of _0x2fbd05)_0x3d3e06['markBlockFormat'](_0x2ae8e4,{'commandName':'codeBlock','commandParams':[{..._0x4d19de,'forceValue':_0x138914}],'formatGroupId':'blockName'});});}),(_0x3d3e06['descriptionFactory']['registerElementLabel']('codeBlock',_0x967b67=>c(_0x59e949,'ELEMENT_CODE_BLOCK',_0x967b67)),_0x3d3e06['descriptionFactory']['registerDescriptionCallback'](_0x2eac23=>{if('formatBlock'!=_0x2eac23['type'])return;const _0x39215c=_0x59e949['t'],{data:_0x5d19fc}=_0x2eac23;if(!_0x5d19fc||'codeBlock'!=_0x5d19fc['commandName'])return;const _0x50a649=_0x5d19fc['commandParams'][0x0]['language'],_0x28c7a8=_0x39215c(_0x1df9ea['find'](_0x520d3c=>_0x520d3c['language']===_0x50a649)['label'])['toLowerCase']();return _0x5d19fc['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59e949,'*Set\x20format:*\x20%0',c(_0x59e949,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x28c7a8+')')}:{'type':'format','content':c(_0x59e949,'*Remove\x20format:*\x20%0',c(_0x59e949,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x287443){return'codeBlock'==_0x287443['name'];}class q extends _0x1667de{['afterInit'](){const _0x6a8721=this['editor'];if(!_0x6a8721['plugins']['has']('CommentsEditing'))return;_0x6a8721['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x34940a,_0x474251,_0x525474){const _0x3a4dd=[];for(const _0x40aead of _0x474251['getItems']())_0x40aead['hasAttribute'](_0x34940a)&&_0x3a4dd['push'](_0x525474['createRangeOn'](_0x40aead));return _0x3a4dd;}function Fe(_0x2f69a3,_0x54ddb4,{showActiveMarker:_0x431d52=!0x0}={}){const _0x2fb0ea=_0x2f69a3['plugins']['get']('TrackChangesEditing');return(_0x5a6573,_0x40adb8,_0x3b482f)=>{if(!_0x3b482f['consumable']['test'](_0x40adb8['markerRange'],_0x5a6573['name']))return;const _0x4d2496=_0x40adb8['markerRange']['getWalker'](),_0x391c70=_0x40adb8['markerRange']['start'],_0x1cddd9=_0x2f69a3['model']['schema'];let _0x81615e=null,_0x1728ba=null,_0x507aed=!0x1,_0x213aa1=!0x1;for(const _0x422f3c of _0x4d2496){const _0x40d7a4=_0x422f3c['item'];_0x507aed=_0x507aed||_0x1cddd9['isContent'](_0x40d7a4);const _0x13e12b=_0x3b482f['mapper']['toViewElement'](_0x40d7a4);if(_0x13e12b&&_0x13e12b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x422f3c['type']&&(_0x1cddd9['isBlock'](_0x40d7a4)&&!_0x1cddd9['isLimit'](_0x40d7a4)&&(_0x40d7a4['nextSibling']||_0x391c70['isAtEnd']?_0x81615e&&_0x81615e['parent']==_0x40d7a4||(_0x81615e=_0x40d7a4,_0x161ff3(_0x422f3c['previousPosition']),_0x213aa1=!0x0):_0x1728ba=_0x1728ba||_0x422f3c['previousPosition']));}function _0x161ff3(_0x101d51){const {authorId:_0x5a2cf7}=_0x2fb0ea['_splitMarkerName'](_0x40adb8['markerName']),_0x28e974=_0x3b482f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54ddb4,'data-author-id':_0x5a2cf7}),_0x1f1b3b=_0x3b482f['mapper']['toViewPosition'](_0x101d51);_0x431d52&&_0x2fb0ea['activeMarkers']['includes'](_0x40adb8['markerName'])&&_0x3b482f['writer']['addClass']('ck-suggestion-marker--active',_0x28e974),_0x3b482f['writer']['insert'](_0x1f1b3b,_0x28e974),_0x3b482f['mapper']['bindElementToMarker'](_0x28e974,_0x40adb8['markerName']);}_0x507aed||_0x213aa1||!_0x1728ba||_0x161ff3(_0x1728ba);};}class z extends _0x1667de{static get['requires'](){return[_0x2220cc];}['init'](){const _0x2e30d5=this['editor'],_0x48cdf6=_0x2e30d5['plugins']['get']('TrackChangesEditing');_0x48cdf6['enableCommand']('delete');const _0x20ecd5=_0x2e30d5['commands']['get']('deleteForward');_0x48cdf6['enableCommand']('deleteForward',(_0x50c1ce,_0x20a668={})=>{const _0x7f3b5c=_0x2e30d5['model']['createSelection'](_0x2e30d5['model']['document']['selection']);_0x7f3b5c['isCollapsed']&&_0x2e30d5['model']['modifySelection'](_0x7f3b5c,{'direction':'forward','unit':_0x20a668['unit']});const _0x2cdb47=_0x7f3b5c['getFirstRange'](),_0x4249fc=_0x112647['fromRange'](_0x2cdb47);let _0x7d521f;_0x50c1ce(_0x20a668),_0x7d521f='$graveyard'==_0x4249fc['root']['rootName']?_0x2e30d5['model']['createRange'](_0x2cdb47['start']):_0x2e30d5['model']['createRange'](_0x4249fc['start'],_0x4249fc['end']),_0x4249fc['detach'](),_0x2e30d5['model']['enqueueChange'](_0x20ecd5['buffer']['batch'],_0x40029c=>{_0x20ecd5['buffer']['lock'](),_0x40029c['setSelection'](_0x40029c['createRange'](_0x7d521f['end'])),_0x20ecd5['buffer']['unlock']();});}),_0x2e30d5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2e30d5,'merge'),{'priority':'high'}),_0x2e30d5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5686a8,_0x413bd7,_0x3190b9)=>{_0x3190b9['options']['showSuggestionHighlights']&&Fe(_0x2e30d5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5686a8,_0x413bd7,_0x3190b9);},{'priority':'high'}),_0x2e30d5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x554470,_0x5122e4,_0x681833)=>{const _0x2bd391=_0x681833['mapper']['markerNameToElements'](_0x5122e4['markerName']);if(_0x2bd391){for(const _0x594dc1 of _0x2bd391)_0x594dc1['is']('uiElement')&&(_0x681833['mapper']['unbindElementFromMarkerName'](_0x594dc1,_0x5122e4['markerName']),_0x681833['writer']['remove'](_0x594dc1));}},{'priority':'high'});}}class W extends _0x1667de{['afterInit'](){const _0x54e4e8=this['editor'];if(!_0x54e4e8['plugins']['has']('ListEditing'))return;const _0x2c4301=_0x54e4e8['locale'],_0x54c18d=_0x54e4e8['plugins']['get']('TrackChangesEditing'),_0x5ae716=_0x54e4e8['plugins']['has']('TodoListEditing'),_0x19a70b=!!_0x54e4e8['config']['get']('list.multiBlock');function _0x22497d(_0x5d6eb7){return{'type':'format','content':''+c(_0x2c4301,'*Set\x20format:*\x20%0',_0x5d6eb7)};}function _0x34009d(_0x53b6fd){return{'type':'format','content':''+c(_0x2c4301,'*Remove\x20format:*\x20%0',_0x53b6fd)};}_0x54c18d['enableDefaultAttributesIntegration']('numberedList'),_0x54c18d['enableDefaultAttributesIntegration']('bulletedList'),_0x54c18d['enableDefaultAttributesIntegration']('customNumberedList'),_0x54c18d['enableDefaultAttributesIntegration']('customBulletedList'),_0x54c18d['enableDefaultAttributesIntegration']('indentList'),_0x54c18d['enableDefaultAttributesIntegration']('outdentList'),_0x54c18d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x54c18d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x54c18d['registerBlockAttribute']('listItemId'),_0x54c18d['registerBlockAttribute']('listType'),_0x54c18d['registerBlockAttribute']('listIndent'),_0x19a70b&&(_0x54c18d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x54c18d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5ae716&&(_0x54c18d['enableDefaultAttributesIntegration']('todoList'),_0x54c18d['enableDefaultAttributesIntegration']('checkTodoList'),_0x54c18d['registerBlockAttribute']('todoListChecked'),_0x54c18d['descriptionFactory']['registerDescriptionCallback'](_0x2c89de=>{const {data:_0x21a295}=_0x2c89de;if(_0x21a295&&'todoListChecked'==_0x21a295['key'])return{'type':'format','content':_0x21a295['newValue']?c(_0x2c4301,'*Check\x20item*'):c(_0x2c4301,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x59f953=>{if(_0x59f953['batch']['isUndo'])return!0x1;let _0x1a17d9=!0x1;const _0x2716e9=_0x54c18d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ac77a=>'todoListChecked'===_0x54c18d['_getAttributeKey'](_0x3ac77a));for(const _0x39e30e of _0x2716e9){'todo'!=_0x39e30e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x54c18d['_findSuggestions'](_0x39e30e['getFirstRange'](),'attribute')['find'](_0x325617=>'listType'===_0x54c18d['_getAttributeKey'](_0x325617['suggestion']))||(_0x59f953['removeMarker'](_0x39e30e['getFirstMarker']()),_0x1a17d9=!0x0));}return _0x1a17d9;})),_0x54c18d['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2c4301,'FORMAT_INDENT'));const _0x4fb245={'type':'format','content':''};_0x54c18d['descriptionFactory']['registerDescriptionCallback'](_0x2761e8=>{const {data:_0x5abe7c}=_0x2761e8;if(!_0x5abe7c||'listType'!=_0x5abe7c['key'])return;let _0x18cf97=_0x2761e8['head'];for(;_0x18cf97;){if(_0x18cf97['data']&&(('listStyle'==_0x18cf97['data']['key']||'listMarkerStyle'==_0x18cf97['data']['key'])&&(_0x18cf97['data']['newValue']&&'default'!=_0x18cf97['data']['newValue']||'default'!=_0x18cf97['data']['oldValue']&&!_0x5abe7c['newValue'])||!_0x19a70b&&_0x18cf97['data']['key']==u))return _0x4fb245;_0x18cf97=_0x18cf97['next'];}if(null==_0x5abe7c['newValue'])switch(_0x5abe7c['oldValue']){case'bulleted':return _0x34009d(c(_0x2c4301,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34009d(c(_0x2c4301,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34009d(c(_0x2c4301,'ELEMENT_TODO_LIST'));}switch(_0x5abe7c['newValue']){case'bulleted':return _0x22497d(c(_0x2c4301,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22497d(c(_0x2c4301,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22497d(c(_0x2c4301,'ELEMENT_TODO_LIST'));}}),_0x54c18d['descriptionFactory']['registerDescriptionCallback'](_0x3d109e=>{const {data:_0x129efe}=_0x3d109e;if(_0x129efe&&'listIndent'==_0x129efe['key'])return null==_0x129efe['newValue']||null==_0x129efe['oldValue']&&0x0==_0x129efe['newValue']?_0x4fb245:void 0x0;}),_0x54c18d['descriptionFactory']['registerDescriptionCallback'](_0x45e42f=>{if('attribute'!=_0x45e42f['type'])return;const {data:_0x141094}=_0x45e42f;if(!_0x141094||'listItemId'!=_0x141094['key'])return;const _0x271ff8=Te(_0x45e42f);return'newValue'==_0x271ff8?{'type':'format','content':c(_0x2c4301,'*Merge:*\x20list\x20item')}:'oldValue'==_0x271ff8?{'type':'format','content':c(_0x2c4301,'*Split:*\x20list\x20item')}:_0x4fb245;}),_0x54e4e8['model']['document']['registerPostFixer'](_0x489ab8=>this['listItemIdFixer'](_0x489ab8)),_0x54e4e8['model']['document']['registerPostFixer'](_0x385045=>this['noTrackChangesFixer'](_0x385045)),_0x54e4e8['model']['document']['on']('change:data',(_0x1f3e61,_0x200e81)=>{if(_0x200e81['isUndo']||!_0x200e81['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x35d305){if(_0x35d305['batch']['isUndo']||!_0x35d305['batch']['isLocal'])return!0x1;let _0xc8d7ed=!0x1;const _0x239fdf=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd59b9f=>_0xd59b9f['data']&&'listItemId'==_0xd59b9f['data']['key'])['filter'](_0x5d79df=>_0x5d79df['data']['newValue']&&_0x5d79df['data']['oldValue']);for(const _0x19fa5e of _0x239fdf)Te(_0x19fa5e)||(_0x35d305['removeMarker'](_0x19fa5e['getFirstMarker']()),_0xc8d7ed=!0x0);return _0xc8d7ed;}['noTrackChangesFixer'](_0x1822c5){if(_0x1822c5['batch']['isUndo']||!_0x1822c5['batch']['isLocal'])return!0x1;const _0x28aa94=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x28aa94['trackChangesCommand']['value'])return!0x1;let _0x909f69=!0x1;const _0x451b51=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3edd8f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x9c1ea5=>'attribute'==_0x9c1ea5['type'])['filter'](_0x551931=>_0x451b51['includes'](_0x551931['attributeKey']));if(0x0==_0x3edd8f['length'])return _0x909f69;for(const _0x4fc0e8 of _0x3edd8f){const _0x161dc4=_0x28aa94['_findSuggestions'](_0x4fc0e8['range'],'attribute')['filter'](_0x352359=>!_0x352359['meta']['isNextTo'])['map'](_0x18f356=>_0x18f356['suggestion'])['filter'](_0x421656=>{const _0x2512df=_0x28aa94['_getAttributeKey'](_0x421656);return _0x451b51['includes'](_0x2512df);});if(_0x161dc4['length']){for(const _0x22f097 of _0x161dc4)_0x1822c5['removeMarker'](_0x22f097['getFirstMarker']());_0x909f69=!0x0;}}return _0x909f69;}['assureChains'](){const _0x15115e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b1e8f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x44ed1e;const _0x53a481=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x540563=>{if(_0x540563['data']['oldRange']||!_0x540563['data']['newRange'])return null;if(!_0x540563['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3d9999}=_0x15115e['_splitMarkerName'](_0x540563['name']);if(!_0x15115e['hasSuggestion'](_0x3d9999))return null;const _0x1c230d=_0x15115e['getSuggestion'](_0x3d9999);return _0x3b1e8f['includes'](_0x1c230d['data']['key']);})['map'](_0x4bec0c=>{const {id:_0x4180d5}=_0x15115e['_splitMarkerName'](_0x4bec0c['name']),_0x23a812=_0x15115e['getSuggestion'](_0x4180d5);return _0x44ed1e=_0x23a812['attributes']['groupId'],_0x23a812['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x53a481['size'])return;const _0x3bba9e=_0x15115e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c6541=>'attribute'==_0x3c6541['type']&&_0x3c6541['data']&&_0x3b1e8f['includes'](_0x3c6541['data']['key'])&&_0x3c6541['attributes']['groupId']!=_0x44ed1e)['map'](_0x3e8d35=>({'listItem':_0x3e8d35['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3e8d35['attributes']['groupId']})),_0x5616f6=new Set();for(const {groupId:_0xdcb0c0,listItem:_0x58aa4b}of _0x3bba9e)_0x53a481['has'](_0x58aa4b)&&_0x5616f6['add'](_0xdcb0c0);for(const _0x2a2930 of _0x15115e['getSuggestions']())_0x5616f6['has'](_0x2a2930['attributes']['groupId'])&&_0x2a2930['setAttribute']('groupId',_0x44ed1e);}['_supportLegacySuggestions'](){const _0x29b59d=this['editor'],_0x1da8ff=_0x29b59d['locale'],_0x5c8293=_0x29b59d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5c8293['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x7757d4,_0x50a277){const _0x437865=[];for(let _0x5a2630 of _0x7757d4)_0x5a2630['start']['nodeAfter']===_0x5a2630['end']['parent']&&(_0x5a2630=_0x29b59d['model']['createRange'](_0x29b59d['model']['createPositionAt'](_0x5a2630['start']['nodeAfter'],0x0))),_0x437865['push'](_0x5a2630);_0x29b59d['model']['change'](_0x44e7c3=>{const _0x47ea18=_0x29b59d['model']['document']['selection'],_0x25c604=Array['from'](_0x47ea18['getRanges']())['map'](_0x24e46a=>_0x112647['fromRange'](_0x24e46a));_0x44e7c3['setSelection'](_0x437865),_0x29b59d['commands']['get'](_0x50a277['commandName'])['refresh'](),_0x50a277['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x29b59d['execute'](_0x50a277['commandName'],..._0x50a277['commandParams']),_0x44e7c3['setSelection'](_0x25c604);for(const _0x4121c1 of _0x25c604)_0x4121c1['detach']();});}),_0x5c8293['descriptionFactory']['registerElementLabel'](function(_0x4b6902){const _0x449f94=!_0x29b59d['model']['schema']['isObject'](_0x4b6902),_0x5128e6=_0x4b6902['previousSibling'],_0x58d9e1=_0x4b6902['nextSibling'],_0x51bd6d=_0x4b6902['getAttribute']('listItemId'),_0x58d353=!_0x5128e6||_0x5128e6['getAttribute']('listItemId')!==_0x51bd6d,_0x112a1a=!_0x58d9e1||_0x58d9e1['getAttribute']('listItemId')!==_0x51bd6d;return _0x449f94&&Boolean(_0x51bd6d)&&_0x58d353&&_0x112a1a;},_0xb6b836=>c(_0x1da8ff,'ELEMENT_LIST_ITEM',_0xb6b836));}['_registerLegacyDescription'](){const _0x11b78f=this['editor'],_0x5dca86=_0x11b78f['locale'];function _0x48e67d(_0x368259){const _0x562d92=_0x11b78f['commands']['get']('bulletedList')['value'],_0x1d65cb=_0x11b78f['commands']['get']('numberedList')['value'];return'numberedList'===_0x368259?_0x562d92:_0x1d65cb;}_0x11b78f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x372803){if('formatBlock'!=_0x372803['type'])return;const {data:_0x35a9cf}=_0x372803;if(!_0x35a9cf)return;let _0x3540e1,_0x103bf1,_0x568354,_0x1946c3;switch(_0x35a9cf['commandName']){case'bulletedList':_0x568354=_0x35a9cf['commandParams'][0x0]['forceValue'],_0x1946c3=_0x48e67d(_0x35a9cf['commandName']),_0x3540e1=_0x568354?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1946c3&&_0x11b78f['config']['get']('list.multiBlock')||(_0x3540e1='*Change\x20to:*\x20%0'),_0x103bf1={'type':'format','content':c(_0x5dca86,_0x3540e1,c(_0x5dca86,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x568354=_0x35a9cf['commandParams'][0x0]['forceValue'],_0x1946c3=_0x48e67d(_0x35a9cf['commandName']),_0x3540e1=_0x568354?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1946c3&&_0x11b78f['config']['get']('list.multiBlock')||(_0x3540e1='*Change\x20to:*\x20%0'),_0x103bf1={'type':'format','content':c(_0x5dca86,_0x3540e1,c(_0x5dca86,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3540e1='*Indent:*\x20%0',_0x103bf1={'type':'format','content':c(_0x5dca86,_0x3540e1,c(_0x5dca86,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3540e1=function(_0x2b8a44){const _0x3129ce=_0x2b8a44['getFirstRange']();let _0x443061=_0x3129ce['start']['nodeAfter'];for(;_0x443061&&_0x3129ce['containsItem'](_0x443061);){if(_0x443061['getAttribute']('listIndent')>0x0)return!0x1;_0x443061=_0x443061['nextSibling'];}return!0x0;}(_0x372803)?c(_0x5dca86,'*Format:*\x20remove\x20from\x20%0',c(_0x5dca86,function(_0x240b88){return'ELEMENT_'+_0x240b88['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x372803))):c(_0x5dca86,'*Outdent:*\x20%0',c(_0x5dca86,'ELEMENT_LIST_ITEM')),_0x103bf1={'type':'format','content':_0x3540e1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x35a9cf['multipleBlocks']&&(_0x3540e1='*Merge:*\x20%0',_0x103bf1={'type':'deletion','content':c(_0x5dca86,_0x3540e1,c(_0x5dca86,'ELEMENT_LIST_ITEM'))});}return _0x103bf1;});}}function Te(_0x290e6a){let _0x4a8acc=_0x290e6a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4a8acc;){const _0x352c84=_0x4a8acc['getAttribute']('listItemId');if(!_0x352c84)return!0x1;if(_0x352c84==_0x290e6a['data']['newValue'])return'newValue';if(_0x352c84==_0x290e6a['data']['oldValue'])return'oldValue';_0x4a8acc=_0x4a8acc['previousSibling'];}return!0x1;}class Se extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x8a560f=this['editor']['config']['get']('list.properties'),_0x51c540=this['editor']['plugins']['get']('TrackChangesEditing');_0x8a560f['styles']&&(_0x51c540['enableDefaultAttributesIntegration']('listStyle'),_0x51c540['registerBlockAttribute']('listStyle')),_0x8a560f['reversed']&&(_0x51c540['enableDefaultAttributesIntegration']('listReversed'),_0x51c540['registerBlockAttribute']('listReversed')),_0x8a560f['startIndex']&&(_0x51c540['enableDefaultAttributesIntegration']('listStart'),_0x51c540['registerBlockAttribute']('listStart'));const _0x548c39={'type':'format','content':''};_0x51c540['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4c5458=this['editor']['locale'];_0x51c540['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4c5458,'FORMAT_LIST_REVERSED')),_0x51c540['descriptionFactory']['registerDescriptionCallback'](_0x166a9f=>{const {data:_0x2eab03}=_0x166a9f;if(_0x2eab03&&'listReversed'==_0x2eab03['key'])return null==_0x2eab03['newValue']||0x0==_0x2eab03['newValue']&&null==_0x2eab03['oldValue']?_0x548c39:void 0x0;}),_0x51c540['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4c5458,'FORMAT_LIST_START')),_0x51c540['descriptionFactory']['registerDescriptionCallback'](_0x5b520c=>{const {data:_0xb29a73}=_0x5b520c;if(_0xb29a73&&'listStart'==_0xb29a73['key'])return null==_0xb29a73['newValue']||0x1==_0xb29a73['newValue']&&null==_0xb29a73['oldValue']?_0x548c39:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3a0da8=>{if(_0x3a0da8['batch']['isUndo'])return!0x1;let _0x48e308=!0x1;const _0x50a2c4=_0x51c540['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c77b3=>{const _0x3d23ab=_0x51c540['_getAttributeKey'](_0x4c77b3);return'listStart'==_0x3d23ab||'listReversed'==_0x3d23ab;});for(const _0x329583 of _0x50a2c4){const _0xf61ea=_0x329583['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xf61ea||'customNumbered'==_0xf61ea)continue;_0x51c540['_findSuggestions'](_0x329583['getFirstRange'](),'attribute')['find'](_0x4153d6=>'listType'==_0x51c540['_getAttributeKey'](_0x4153d6['suggestion']))||(_0x3a0da8['removeMarker'](_0x329583['getFirstMarker']()),_0x48e308=!0x0);}return _0x48e308;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x13bd95){const _0x1cc4b3=this['editor']['locale'],{data:_0x3a5cd0}=_0x13bd95,_0x10a427={'type':'format','content':''};if(!_0x3a5cd0||'listStyle'!=_0x3a5cd0['key'])return;if(!_0x3a5cd0['oldValue'])return'default'==_0x3a5cd0['newValue']?_0x10a427:{'type':'format','content':''+c(_0x1cc4b3,'*Set\x20format:*\x20%0',c(_0x1cc4b3,this['_getTranslationKeyForListStyle'](_0x3a5cd0['newValue'])))};if(!_0x3a5cd0['newValue']){if('default'==_0x3a5cd0['oldValue'])return _0x10a427;let _0x1e7f03=_0x13bd95['head'];for(;_0x1e7f03;){if(_0x1e7f03['data']&&'listType'==_0x1e7f03['data']['key']&&_0x1e7f03['data']['newValue'])return _0x10a427;_0x1e7f03=_0x1e7f03['next'];}return{'type':'format','content':''+c(_0x1cc4b3,'*Remove\x20format:*\x20%0',c(_0x1cc4b3,this['_getTranslationKeyForListStyle'](_0x3a5cd0['oldValue'])))};}if('default'!=_0x3a5cd0['newValue'])return{'type':'format','content':''+c(_0x1cc4b3,'*Set\x20format:*\x20%0',c(_0x1cc4b3,this['_getTranslationKeyForListStyle'](_0x3a5cd0['newValue'])))};let _0x271042=_0x13bd95['head'];for(;_0x271042;){if(_0x271042['data']&&'listType'==_0x271042['data']['key']&&_0x271042['data']['newValue']&&_0x271042['data']['oldValue'])return _0x10a427;_0x271042=_0x271042['next'];}return{'type':'format','content':c(_0x1cc4b3,'*Set\x20format:*\x20%0',c(_0x1cc4b3,'ELEMENT_'+_0x13bd95['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4b2455=this['editor'],_0x4dc5e9=_0x4b2455['locale'];_0x4b2455['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401a96=>{if('formatBlock'!=_0x401a96['type'])return;const {data:_0x37b706}=_0x401a96;if(!_0x37b706)return;let _0x14c7ec,_0x1962d3;switch(_0x37b706['commandName']){case'listStyle':_0x14c7ec='*Change\x20to:*\x20%0',_0x1962d3={'type':'format','content':c(_0x4dc5e9,_0x14c7ec,c(_0x4dc5e9,this['_getTranslationKeyForListStyle'](_0x37b706['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14c7ec=_0x37b706['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1962d3={'type':'format','content':c(_0x4dc5e9,_0x14c7ec)};break;case'listStart':_0x14c7ec='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1962d3={'type':'format','content':c(_0x4dc5e9,_0x14c7ec,_0x37b706['commandParams'][0x0]['startIndex'])};}return _0x1962d3;});}['_getTranslationKeyForListStyle'](_0x413270){return'ELEMENT_'+function(_0x5712d4){if(_e['includes'](_0x5712d4))return'bulleted';if(Re['includes'](_0x5712d4))return'numbered';return null;}(_0x413270)['toUpperCase']()+'_LIST_'+_0x413270['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x1667de{['afterInit'](){const _0x2dfc3a=this['editor'];_0x2dfc3a['commands']['get']('emoji')&&_0x2dfc3a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x1667de{static get['requires'](){return[_0x412c11];}['init'](){const _0x1357df=this['editor'],_0xfab3ee=_0x1357df['plugins']['get']('TrackChangesEditing'),_0x1c20f1=_0x1357df['commands']['get']('enter');_0xfab3ee['enableCommand']('enter',()=>{_0x1357df['model']['change'](_0x1aa466=>{const _0x58575f=_0x1357df['model']['document']['selection'],_0x36601c=_0x58575f['getFirstPosition'](),_0x3ee15c=_0x112647['fromRange'](_0x58575f['getFirstRange']());if(_0x1c20f1['enterBlock'](_0x1aa466)){const _0x119f95=_0x1357df['model']['createPositionAt'](_0x36601c['parent']['nextSibling'],0x0),_0x4d832f=_0x1aa466['createRange'](_0x36601c,_0x119f95);_0xfab3ee['markInsertion'](_0x4d832f);}else _0x1aa466['setSelection'](_0x1aa466['createRange'](_0x3ee15c['end']));_0x3ee15c['detach'](),_0x1c20f1['fire']('afterExecute',{'writer':_0x1aa466});});}),_0x1357df['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x1357df,'split'),{'priority':'high'}),_0x1357df['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c8504,_0x1a4d59,_0x23e539)=>{const _0x1328bf=_0x23e539['mapper']['markerNameToElements'](_0x1a4d59['markerName']);if(_0x1328bf){for(const _0x33f735 of _0x1328bf)_0x33f735['hasClass']('ck-suggestion-marker-split')&&(_0x23e539['mapper']['unbindElementFromMarkerName'](_0x33f735,_0x1a4d59['markerName']),_0x23e539['writer']['remove'](_0x33f735));}},{'priority':'high'}),_0x1357df['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x52b084,_0x395c05,_0x57b601)=>{_0x57b601['options']['showSuggestionHighlights']&&Fe(_0x1357df,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x52b084,_0x395c05,_0x57b601);},{'priority':'high'});}}class Z extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3cbc2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cbc2b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3cbc2b['enableCommand']('findNext'),_0x3cbc2b['enableCommand']('findPrevious'),_0x3cbc2b['enableCommand']('replace'),_0x3cbc2b['enableCommand']('replaceAll');}['handleFindCommand'](_0x4b38d3,_0x5b6a6c,_0x102ab3={}){const _0x389691=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4b38d3(_0xb95176=>{let _0x5081cc=('string'==typeof _0x5b6a6c?_0x389691['findByTextCallback'](_0x5b6a6c,_0x102ab3):_0x5b6a6c)(_0xb95176);Array['isArray'](_0x5081cc)&&(_0x5081cc={'results':_0x5081cc,'searchText':'string'==typeof _0x5b6a6c?_0x5b6a6c:''});const _0x5309ef=_0x5081cc['results']['filter'](_0xbc1d0a=>!0x1===this['_isInDeletionRange'](_0xbc1d0a,_0xb95176['item']));return{..._0x5081cc,'results':_0x5309ef};},_0x102ab3);}['_isInDeletionRange'](_0x520311,_0xa7c69e){const _0x1e9bb6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa7c69e,_0x520311['start']),this['editor']['model']['createPositionAt'](_0xa7c69e,_0x520311['end']));for(const _0x12e933 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e9bb6['getIntersection'](_0x12e933['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x1667de{['afterInit'](){const _0x2b1fb5=this['editor']['locale'],_0xfff721=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf509fc,commandName:_0x2b86e2}of ro)this['editor']['plugins']['has'](_0xf509fc)&&(_0xfff721['enableDefaultAttributesIntegration'](_0x2b86e2),_0xfff721['registerInlineAttribute'](_0x2b86e2));_0xfff721['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2b1fb5,'FORMAT_FONT_SIZE')),_0xfff721['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2b1fb5,'FORMAT_FONT_FAMILY')),_0xfff721['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2b1fb5,'FORMAT_FONT_COLOR')),_0xfff721['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2b1fb5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39b61b=this['editor'],_0x21ff4a=_0x39b61b['locale'];_0x39b61b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ea5ea=>{const _0x1ecffd=_0x21ff4a['t'];if('formatInline'!=_0x4ea5ea['type'])return;const {data:_0x21cfe8}=_0x4ea5ea;if(null!=_0x21cfe8){if('fontSize'==_0x21cfe8['commandName']){const _0x4ce239=_0x21cfe8['commandParams'][0x0]['value'];if(_0x4ce239){const _0x574f99=_0x1ecffd(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5c48a0=>_0x5c48a0['model']==_0x4ce239)['title'])['toLowerCase']();return{'type':'format','content':c(_0x21ff4a,'*Set\x20font\x20size:*\x20%0',_0x574f99)};}return{'type':'format','content':c(_0x21ff4a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x21cfe8['commandName']){const _0x357485=_0x21cfe8['commandParams'][0x0]['value'];return _0x357485?{'type':'format','content':c(_0x21ff4a,'*Set\x20font\x20family:*\x20%0',_0x357485)}:{'type':'format','content':c(_0x21ff4a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x21cfe8['commandName']){const _0x436a93=_0x21cfe8['commandParams'][0x0]['value'];if(_0x436a93){const _0x58f7a7=_0x22fa3b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40f254=>_0x40f254['model']==_0x436a93);let _0x4d6039=_0x436a93,_0x2140c5='';return _0x58f7a7&&(_0x4d6039=_0x58f7a7['label'],_0x2140c5=_0x1ecffd(_0x4d6039)['toLowerCase']()),{'type':'format','content':c(_0x21ff4a,'*Set\x20font\x20color:*\x20%0',_0x2140c5)['trim'](),'color':{'value':_0x436a93,'title':_0x2140c5||_0x4d6039}};}return{'type':'format','content':c(_0x21ff4a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x21cfe8['commandName']){const _0x5f0e07=_0x21cfe8['commandParams'][0x0]['value'];if(_0x5f0e07){const _0x250ed5=_0x22fa3b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ce837=>_0x2ce837['model']==_0x5f0e07);let _0x3b661a=_0x5f0e07,_0x3112cc='';return _0x250ed5&&(_0x3b661a=_0x250ed5['label'],_0x3112cc=_0x1ecffd(_0x3b661a)['toLowerCase']()),{'type':'format','content':c(_0x21ff4a,'*Set\x20font\x20background\x20color:*\x20%0',_0x3112cc)['trim'](),'color':{'value':_0x5f0e07,'title':_0x3112cc||_0x3b661a}};}return{'type':'format','content':c(_0x21ff4a,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x1667de{['afterInit'](){const _0x223eca=this['editor'],_0x9a3f7e=_0x223eca['plugins']['get']('TrackChangesEditing'),_0x5d285f=_0x223eca['commands']['get']('copyFormat'),_0x37756d=_0x223eca['commands']['get']('pasteFormat');_0x5d285f&&_0x37756d&&(_0x9a3f7e['enableDefaultAttributesIntegration']('pasteFormat'),_0x9a3f7e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x24267a=this['editor'],_0x5a6884=_0x24267a['locale'];_0x24267a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11d88a=>{if('formatBlock'!=_0x11d88a['type']&&'formatInline'!=_0x11d88a['type'])return;const {data:_0xc50dcf}=_0x11d88a;if(_0xc50dcf&&'pasteFormat'===_0xc50dcf['commandName']){const _0x50c716=[],_0x2d2eee=_0xc50dcf['commandParams'][0x0];for(const [_0x4151d4,_0xa5009e]of Object['entries'](_0x2d2eee))_0x50c716['push'](so(_0x24267a,_0x4151d4,_0xa5009e));return _0x50c716['length']?{'type':'format','content':c(_0x5a6884,'*Set\x20format\x20to:*\x20%0',_0x50c716['join'](',\x20'))}:{'type':'format','content':c(_0x5a6884,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1f96ad,_0x2e9d03,_0xc7d507){const _0x5d48ae=_0x1f96ad['locale']['t'],_0x1f67f5=_0x2e9d03['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b87ee=_0x5d48ae(_0x1f67f5['charAt'](0x0)['toUpperCase']()+_0x1f67f5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xc7d507)return _0x3b87ee;if('fontColor'===_0x2e9d03||'fontBackgroundColor'===_0x2e9d03){const _0x51da0c=_0x22fa3b(_0x1f96ad['config']['get']('fontColor.colors'))['find'](_0x4ca3f1=>_0x4ca3f1['model']==_0xc7d507);return _0x3b87ee+'\x20('+(_0x51da0c?_0x5d48ae(_0x51da0c['label'])['toLowerCase']():_0xc7d507)+')';}if('fontSize'===_0x2e9d03&&isNaN(parseFloat(_0xc7d507))){const _0x4c474e=_0x1f96ad['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1f96ad['config']['get']('fontSize.options'))['find'](_0x2e31f0=>_0x2e31f0['model']==_0xc7d507);return _0x3b87ee+'\x20('+(_0x4c474e?_0x5d48ae(_0x4c474e['title'])['toLowerCase']():_0xc7d507)+')';}return _0x3b87ee+'\x20('+_0xc7d507+')';}class nt extends _0x1667de{['_headingOptions'];['afterInit'](){const _0x29d46d=this['editor'];if(!_0x29d46d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29d46d['config']['get']('heading.options');const _0x375e8e=_0x29d46d['locale'],_0x185852=_0x29d46d['plugins']['get']('TrackChangesEditing');_0x185852['enableDefaultAttributesIntegration']('heading');for(const _0x35472f of this['_headingOptions'])'paragraph'!=_0x35472f['model']&&_0x185852['descriptionFactory']['registerElementLabel'](_0x35472f['model'],_0x2300ff=>{const _0x46e9f8=this['_getHeadingLevel'](_0x35472f['model']);return null!==_0x46e9f8?_0x234829(_0x2300ff,_0x46e9f8):_0x4eefcf(_0x2300ff,_0x35472f['title']);});function _0x234829(_0x54f218,_0x41e782){return c(_0x375e8e,'ELEMENT_HEADING',[_0x54f218,_0x41e782]);}function _0x4eefcf(_0x492fda,_0x1297c7){return c(_0x375e8e,'ELEMENT_HEADING_CUSTOM',[_0x492fda,_0x1297c7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x566d07=this['editor'],_0x477b34=_0x566d07['locale'];function _0x2e2a74(_0x983d30,_0x47f0ac){return c(_0x477b34,'ELEMENT_HEADING_CUSTOM',[_0x983d30,_0x47f0ac]);}_0x566d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc1eeba=>{if('formatBlock'!=_0xc1eeba['type'])return;const {data:_0x6e388a}=_0xc1eeba;if(_0x6e388a&&'heading'==_0x6e388a['commandName']){const _0x1edfb4=_0x6e388a['commandParams'][0x0]['value'],_0x12e23c=this['_getHeadingLevel'](_0x1edfb4);if(null!==_0x12e23c)return{'type':'format','content':c(_0x477b34,'*Change\x20to:*\x20%0',(_0x306109=0x1,_0x331b98=_0x12e23c,c(_0x477b34,'ELEMENT_HEADING',[_0x306109,_0x331b98])))};const _0x65cf31=this['_headingOptions']['find'](_0x4ce5e8=>_0x4ce5e8['model']===_0x1edfb4)['title'];return{'type':'format','content':c(_0x477b34,'*Change\x20to:*\x20%0',_0x2e2a74(0x1,_0x65cf31))};}var _0x306109,_0x331b98;});}['_getHeadingLevel'](_0x317813){const _0x39f2b0=_0x317813['match'](/^heading(\d+)/);if(_0x39f2b0)return _0x39f2b0[0x1];const _0x4b776e=this['_headingOptions']?.['find'](_0x376298=>_0x376298['model']==_0x317813);if(_0x4b776e&&_0x4b776e['view']){const _0x1eca98=_0x4b776e['view'],_0x5293ef=(_0x1eca98['name']??_0x1eca98)['match'](/^h(\d+)/);if(_0x5293ef)return _0x5293ef[0x1];}return null;}}class it extends _0x1667de{['afterInit'](){const _0x287ee4=this['editor'];if(!_0x287ee4['plugins']['has']('HighlightEditing'))return;const _0xe33655=_0x287ee4['plugins']['get']('TrackChangesEditing'),_0x5640ac=_0x287ee4['locale'];_0xe33655['enableDefaultAttributesIntegration']('highlight'),_0xe33655['registerInlineAttribute']('highlight'),_0xe33655['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5640ac,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e0049=this['editor'],_0x4de4f3=_0x1e0049['locale'];_0x1e0049['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5411d6=>{if('formatInline'!=_0x5411d6['type'])return;const {data:_0x217e98}=_0x5411d6;if(_0x217e98&&'highlight'==_0x217e98['commandName']){const _0x47efce=_0x4de4f3['t'],_0x50426f=_0x217e98['commandParams'][0x0]['value'];if(_0x50426f){const _0x15ca19=_0x1e0049['config']['get']('highlight.options')['find'](_0x7a0ac2=>_0x7a0ac2['model']==_0x50426f),_0x15fffc=_0x47efce(_0x15ca19['title'])['toLowerCase']();return{'type':'format','content':c(_0x4de4f3,'*Set\x20highlight:*\x20%0',_0x15fffc),'color':{'value':_0x15ca19['color'],'title':_0x15ca19['title']}};}return{'type':'format','content':c(_0x4de4f3,'*Remove\x20highlight*',c(_0x4de4f3,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x1667de{['afterInit'](){const _0x1a7a65=this['editor'];if(!_0x1a7a65['plugins']['has']('HorizontalLineEditing'))return;_0x1a7a65['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x35d5dd=_0x1a7a65['plugins']['get']('TrackChangesEditing'),_0x2d1102=_0x1a7a65['locale'];_0x35d5dd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x243d72=>c(_0x2d1102,'ELEMENT_HORIZONTAL_LINE',_0x243d72)),_0x1a7a65['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x299b48,{writer:_0xa60155,options:_0x2d15ab})=>{if(!_0x2d15ab['showSuggestionHighlights'])return null;const _0x2ddd72=_0xa60155['createContainerElement']('div'),_0x11f9cc=_0xa60155['createEmptyElement']('hr');return _0xa60155['addClass']('ck-horizontal-line',_0x2ddd72),_0xa60155['insert'](_0xa60155['createPositionAt'](_0x2ddd72,0x0),_0x11f9cc),_0x2ddd72;},'converterPriority':'high'});}}class ot extends _0x1667de{['afterInit'](){const _0x147803=this['editor'];if(!_0x147803['plugins']['has']('HtmlEmbed'))return;const _0xdf892e=_0x147803['plugins']['get']('TrackChangesEditing'),_0x3fbc3e=_0x147803['locale'];_0xdf892e['descriptionFactory']['registerElementLabel']('rawHtml',_0x588622=>c(_0x3fbc3e,'ELEMENT_HTML_EMBED',_0x588622)),_0xdf892e['enableDefaultAttributesIntegration']('htmlEmbed'),_0xdf892e['registerBlockAttribute']('value'),_0xdf892e['descriptionFactory']['registerDescriptionCallback'](_0xf4580c=>{if('attribute'!=_0xf4580c['type'])return;const {data:_0x6d1b36}=_0xf4580c;if(_0x6d1b36&&'value'==_0x6d1b36['key']&&_0xf4580c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b59a2=c(_0x3fbc3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3fbc3e,'*Change\x20%0\x20content*',_0x2b59a2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ea1f1=this['editor'],_0x27d366=_0x3ea1f1['locale'];_0x3ea1f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21ca48=>{if('formatBlock'!=_0x21ca48['type'])return;const {data:_0x248e8c}=_0x21ca48;if(_0x248e8c&&'htmlEmbed'==_0x248e8c['commandName']){const _0x25bf9f=c(_0x27d366,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x27d366,'*Change\x20%0\x20content*',_0x25bf9f)};}});}}class rt extends _0x1667de{['afterInit'](){const _0x5f3dfa=this['editor'];if(!_0x5f3dfa['plugins']['has']('ImageEditing'))return;const _0x377a18=_0x5f3dfa['plugins']['get']('TrackChangesEditing'),_0x212d68=_0x5f3dfa['plugins']['get']('ImageUtils'),_0x53a6da=_0x5f3dfa['locale'];_0x377a18['enableCommand']('insertImage'),_0x377a18['descriptionFactory']['registerElementLabel']('imageBlock',_0x23d670=>c(_0x53a6da,'ELEMENT_IMAGE',_0x23d670)),_0x377a18['descriptionFactory']['registerElementLabel']('imageInline',_0x2610cf=>c(_0x53a6da,'ELEMENT_INLINE_IMAGE',_0x2610cf)),_0x377a18['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x53a6da,'ELEMENT_CAPTION')),_0x5f3dfa['plugins']['has']('ImageUploadEditing')&&_0x377a18['enableCommand']('uploadImage'),_0x5f3dfa['plugins']['has']('ImageBlockEditing')&&_0x5f3dfa['plugins']['has']('ImageInlineEditing')&&(_0x377a18['enableCommand']('imageTypeInline',(_0x24604a,_0x410ef9)=>{const _0x4afd96=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']);_0x5f3dfa['model']['change'](()=>{_0x377a18['markBlockFormat'](_0x4afd96,{'commandName':'imageTypeInline','commandParams':[_0x410ef9]},[],'convertBlockImageToInline');});}),_0x377a18['enableCommand']('imageTypeBlock',(_0x20179e,_0xd1608)=>{_0x5f3dfa['model']['change'](_0x52cd37=>{let _0x42910e=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']),_0xef1466=_0x52cd37['createRangeOn'](_0x42910e);const _0x59a367=_0x252bfd['fromPosition'](_0xef1466['start'],'toPrevious'),_0x1c904c=_0x252bfd['fromPosition'](_0xef1466['end'],'toNext');_0x377a18['forceDefaultExecution'](()=>_0x20179e(_0xd1608)),_0x42910e=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']),_0xef1466=_0x52cd37['createRangeOn'](_0x42910e);const _0x37df3b=_0x52cd37['createRange'](_0x59a367,_0x1c904c);_0x59a367['detach'](),_0x1c904c['detach'](),_0x377a18['markBlockFormat'](_0x42910e,{'commandName':'imageTypeInline','commandParams':[_0xd1608]},[],'convertInlineImageToBlock'),_0x37df3b['start']['isBefore'](_0xef1466['start'])&&_0x377a18['markInsertion'](_0x52cd37['createRange'](_0x37df3b['start'],_0xef1466['start']),'convertInlineImageToBlock'),_0xef1466['end']['isBefore'](_0x37df3b['end'])&&_0x377a18['markInsertion'](_0x52cd37['createRange'](_0xef1466['end'],_0x37df3b['end']),'convertInlineImageToBlock');});}),_0x377a18['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x377a18['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x377a18['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x377a18['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x377a18['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x377a18['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2a1ae2])=>{const _0x331aa5=_0x377a18['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5e574f=_0x2a1ae2['start'],_0x53ae15=_0x2a1ae2['end'];const _0x543a8b=_0x5f3dfa['model']['schema']['getNearestSelectionRange'](_0x5e574f,'backward'),_0x3f6e77=_0x5f3dfa['model']['schema']['getNearestSelectionRange'](_0x53ae15,'forward');_0x543a8b['isCollapsed']&&(_0x5e574f=_0x543a8b['start']),_0x3f6e77['isCollapsed']&&(_0x53ae15=_0x3f6e77['end']),_0x331aa5([_0x5f3dfa['model']['createRange'](_0x5e574f,_0x53ae15)]);}),_0x377a18['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x35c679),_0x377a18['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x35c679)),_0x5f3dfa['plugins']['has']('ImageCaptionEditing')&&(_0x377a18['enableCommand']('toggleImageCaption',(_0x5e028d,_0xd644)=>{const _0x37601f=_0x5f3dfa['plugins']['get']('ImageCaptionUtils');let _0x43e195=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']),_0x4081fe=_0x37601f['getCaptionFromImageModelElement'](_0x43e195);_0x5f3dfa['model']['change'](()=>{if(_0x4081fe)return void _0x377a18['markDeletion'](_0x5f3dfa['model']['createRangeOn'](_0x4081fe));const _0x157d51=_0x212d68['isBlockImage'](_0x43e195);_0x5e028d(_0xd644),_0x43e195=_0x212d68['getClosestSelectedImageElement'](_0x5f3dfa['model']['document']['selection']),_0x4081fe=_0x37601f['getCaptionFromImageModelElement'](_0x43e195),_0x377a18['markInsertion'](_0x5f3dfa['model']['createRangeOn'](_0x4081fe),_0x157d51?null:'imageCaption');});}),_0x377a18['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x35c679));const _0x5afde7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1337cf(_0x4dc676,_0x38f2fc){const _0x10e7f6=_0x5afde7['findIndex'](({type:_0x28c17a,subType:_0x5ee5bf})=>_0x4dc676['type']==_0x28c17a&&_0x4dc676['subType']==_0x5ee5bf),_0x4caaba=_0x5afde7['findIndex'](({type:_0x36329b,subType:_0x28e8b1})=>_0x38f2fc['type']==_0x36329b&&_0x38f2fc['subType']==_0x28e8b1);if(_0x10e7f6<0x0||_0x4caaba<0x0)return!0x1;const _0x226cee=_0x4dc676['getFirstRange'](),_0x22bd81=_0x38f2fc['getFirstRange']();if((0x0==_0x10e7f6||0x1==_0x10e7f6)&&0x2==_0x4caaba&&_0x226cee['isIntersecting'](_0x22bd81))return!0x0;if(0x2==_0x10e7f6&&0x3==_0x4caaba){const _0x3a7c62=_0x377a18['_findSuggestions'](_0x226cee,'insertion')['filter'](({suggestion:_0x22d2d7,meta:_0x5bde97})=>_0x5bde97['isOwn']&&'convertInlineImageToBlock'==_0x22d2d7['subType']);if(_0x3a7c62['length']>0x1&&_0x22bd81['end']['isEqual'](_0x226cee['start']))return!0x0;if(0x1==_0x3a7c62['length']&&(_0x226cee['start']['isEqual'](_0x22bd81['end'])||_0x226cee['end']['isEqual'](_0x22bd81['start'])))return!0x0;}if(0x3==_0x10e7f6&&0x3==_0x4caaba&&_0x226cee['start']['isBefore'](_0x22bd81['start'])){const _0x1b7058=_0x226cee['end']['nodeAfter'],_0x366869=_0x22bd81['start']['nodeBefore'];return _0x212d68['isBlockImage'](_0x1b7058)&&_0x1b7058===_0x366869;}return!0x1;}function _0x35c679(_0x55e3b2,_0x1e32f8){return _0x1337cf(_0x55e3b2,_0x1e32f8)?[_0x55e3b2,_0x1e32f8]:_0x1337cf(_0x1e32f8,_0x55e3b2)?[_0x1e32f8,_0x55e3b2]:null;}_0x5f3dfa['plugins']['has']('ImageResize')&&(_0x377a18['enableDefaultAttributesIntegration']('resizeImage'),_0x377a18['registerBlockAttribute']('resizedWidth'),_0x377a18['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x53a6da,'FORMAT_IMAGE_SIZE'))),_0x5f3dfa['plugins']['has']('ImageTextAlternativeEditing')&&(_0x377a18['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x377a18['registerBlockAttribute']('alt')),_0x5f3dfa['plugins']['has']('PictureEditing')&&(_0x377a18['registerBlockAttribute']('sources'),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0xcf692a=>{if('attribute'!=_0xcf692a['type'])return;const {data:_0x2ab609}=_0xcf692a;return _0x2ab609&&'sources'==_0x2ab609['key']?{'type':'format','content':''}:void 0x0;})),_0x5f3dfa['plugins']['has']('ImageSizeAttributes')&&(_0x377a18['registerBlockAttribute']('width'),_0x377a18['registerBlockAttribute']('height'),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x2223cf=>{if('attribute'!=_0x2223cf['type'])return;const {data:_0x3283b6}=_0x2223cf;return!_0x3283b6||'width'!=_0x3283b6['key']&&'height'!=_0x3283b6['key']?void 0x0:{'type':'format','content':''};})),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x3eb1eb=>{if(!!_0x5afde7['find'](({type:_0x16c76d,subType:_0x204d7a})=>_0x3eb1eb['type']==_0x16c76d&&_0x3eb1eb['subType']==_0x204d7a))return _0x3eb1eb['previous']?{}:void 0x0;}),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x24f360=>{if('insertion'==_0x24f360['type']||'deletion'==_0x24f360['type']){const _0x1453da=_0x24f360['getContainedElement']();if(_0x1453da&&_0x1453da['is']('element','caption'))return{'type':'insertion'==_0x24f360['type']?'addObject':'removeObject','element':_0x1453da,'quantity':0x1};}}),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x5be6b0=>'formatBlock'==_0x5be6b0['type']&&'convertInlineImageToBlock'==_0x5be6b0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5be6b0['type']&&'convertBlockImageToInline'==_0x5be6b0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x377a18['descriptionFactory']['registerDescriptionCallback'](_0x11b91d=>{if('attribute'!=_0x11b91d['type'])return;const {data:_0xe3c436}=_0x11b91d;if(!_0xe3c436||'alt'!=_0xe3c436['key'])return;const _0x3f5925=_0xe3c436['newValue'];return _0x3f5925?{'type':'format','content':c(_0x53a6da,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f5925+'\x22')}:{'type':'format','content':c(_0x53a6da,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16a3fe=this['editor'],_0x35dcf6=_0x16a3fe['locale'];_0x16a3fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x339317=>{if('formatBlock'!=_0x339317['type']&&'formatInline'!=_0x339317['type'])return;const {data:_0x5e585d}=_0x339317;if(_0x5e585d){if('imageTextAlternative'==_0x5e585d['commandName']){const _0x4a4dbe=_0x5e585d['commandParams'][0x0]['newValue'];return _0x4a4dbe?{'type':'format','content':c(_0x35dcf6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a4dbe+'\x22')}:{'type':'format','content':c(_0x35dcf6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5e585d['commandName']){const _0x49bda6=_0x5e585d['commandParams'][0x0]['width'];return _0x49bda6?{'type':'format','content':c(_0x35dcf6,'*Set\x20image\x20width:*\x20%0',_0x49bda6)}:{'type':'format','content':c(_0x35dcf6,'*Reset\x20image\x20width*')};}}});}}class at extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x14d97f=this['editor']['locale'],_0x53d886=this['editor']['plugins']['get']('TrackChangesEditing');_0x53d886['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53d886['registerBlockAttribute']('src'),_0x53d886['descriptionFactory']['registerDescriptionCallback'](_0x5d5ca3=>{if('attribute'!=_0x5d5ca3['type'])return;const {data:_0x5417ab}=_0x5d5ca3;return _0x5417ab&&'src'==_0x5417ab['key']?_0x5417ab['newValue']&&_0x5417ab['oldValue']?{'type':'format','content':c(_0x14d97f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x340d0a=this['editor']['plugins']['get']('TrackChangesEditing');_0x340d0a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x340d0a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x340d0a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x340d0a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b671e=this['editor'],_0x4959b3=_0x2b671e['locale'];_0x2b671e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f7d1=>{if('formatBlock'!=_0x53f7d1['type']&&'formatInline'!=_0x53f7d1['type'])return;const {data:_0x20b55a}=_0x53f7d1;if(!_0x20b55a||'replaceImageSource'!=_0x20b55a['commandName'])return;return{'type':'format','content':c(_0x4959b3,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x1667de{['afterInit'](){const _0x4c2bb4=this['editor'];if(!_0x4c2bb4['plugins']['has']('ImageStyleEditing'))return;const _0x18ab02=_0x4c2bb4['plugins']['get']('TrackChangesEditing'),_0x49c26d=_0x4c2bb4['plugins']['get']('ImageUtils'),_0x39f602={};_0x18ab02['enableCommand']('imageStyle',(_0x47fa17,_0x588eb5)=>{const _0x1beec9=_0x4c2bb4['plugins']['get']('Users')['me'],_0x5e218d=_0x4c2bb4['commands']['get']('imageStyle');let _0x2083da=_0x49c26d['getClosestSelectedImageElement'](_0x4c2bb4['model']['document']['selection']),_0x28e5cc=_0x4c2bb4['model']['createRangeOn'](_0x2083da),_0x5db23b=_0x5e218d['value'];if(_0x5db23b==_0x588eb5['value'])return;const _0x4c5b2f={'commandName':'imageStyle','commandParams':[_0x588eb5],'formatGroupId':_0x2397a2()};_0x4c2bb4['model']['change'](()=>{if(_0x18ab02['getSuggestions']()['filter'](_0x17f031=>_0x17f031['isInContent']&&_0x1beec9==_0x17f031['author']&&('formatBlock'==_0x17f031['type']||'formatInline'==_0x17f031['type'])&&('imageStylePreApply'==_0x17f031['subType']||'imageStylePostApply'==_0x17f031['subType'])&&_0x17f031['getFirstRange']()['isEqual'](_0x28e5cc))['forEach'](_0x2136bb=>_0x18ab02['discardSuggestion'](_0x2136bb['head'])),_0x2083da=_0x49c26d['getClosestSelectedImageElement'](_0x4c2bb4['model']['document']['selection']),_0x28e5cc=_0x4c2bb4['model']['createRangeOn'](_0x2083da),_0x5e218d['refresh'](),_0x4c2bb4['commands']['get']('imageTypeInline')['refresh'](),_0x4c2bb4['commands']['get']('imageTypeBlock')['refresh'](),_0x5db23b=_0x5e218d['value'],_0x5db23b!=_0x588eb5['value'])return _0x49c26d['isInlineImage'](_0x2083da)&&_0x5e218d['shouldConvertImageType'](_0x588eb5['value'],_0x2083da)?(_0x47fa17({..._0x588eb5,'setImageSizes':!0x1}),_0x2083da=_0x49c26d['getClosestSelectedImageElement'](_0x4c2bb4['model']['document']['selection']),void _0x18ab02['markBlockFormat'](_0x2083da,{..._0x4c5b2f,'commandReversedParams':[{'value':_0x5db23b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x49c26d['isBlockImage'](_0x2083da)?_0x18ab02['markBlockFormat'](_0x2083da,_0x4c5b2f,[],'imageStylePostApply'):_0x18ab02['markInlineFormat'](_0x28e5cc,_0x4c5b2f,'imageStylePostApply'));});});for(const _0x4b9e8 of _0x4c2bb4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x39f602[_0x4b9e8['name']]=_0x4b9e8['title']['toLowerCase']();_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x454f9a])=>{_0x49c26d['setImageNaturalSizeAttributes'](_0x454f9a['getContainedElement']());}),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x18804b,_0x48277c)=>{_0x18ab02['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x18804b,{'commandName':_0x48277c['commandName'],'commandParams':_0x48277c['commandReversedParams']});}),_0x18ab02['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x12f1a6,_0x52e8e4){if(_0x2f65f3(_0x12f1a6,_0x52e8e4))return[_0x12f1a6,_0x52e8e4];if(_0x2f65f3(_0x52e8e4,_0x12f1a6))return[_0x52e8e4,_0x12f1a6];return null;});const _0xd82886=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f65f3(_0x4a2746,_0x4e4d5b){const _0x57e2b3=_0xd82886['findIndex'](({type:_0x2f7303,subType:_0x305995})=>_0x4a2746['type']==_0x2f7303&&_0x4a2746['subType']==_0x305995),_0x35aeac=_0xd82886['findIndex'](({type:_0x686f3,subType:_0x2d1fdb})=>_0x4e4d5b['type']==_0x686f3&&_0x4e4d5b['subType']==_0x2d1fdb);if(_0x57e2b3<0x0||_0x35aeac<0x0)return!0x1;const _0xe4680=_0x4a2746['getFirstRange'](),_0x326667=_0x4e4d5b['getFirstRange']();if((0x0==_0x57e2b3||0x1==_0x57e2b3)&&0x2==_0x35aeac&&_0xe4680['isIntersecting'](_0x326667))return!0x0;if(0x2==_0x57e2b3&&0x3==_0x35aeac){const _0x297f5b=_0x18ab02['_findSuggestions'](_0xe4680,'insertion')['filter'](({suggestion:_0x1f12e3,meta:_0x256791})=>_0x256791['isOwn']&&'convertInlineImageToBlock'==_0x1f12e3['subType']);if(_0x297f5b['length']>0x1&&_0x326667['end']['isEqual'](_0xe4680['start']))return!0x0;if(0x1==_0x297f5b['length']&&(_0xe4680['start']['isEqual'](_0x326667['end'])||_0xe4680['end']['isEqual'](_0x326667['start'])))return!0x0;}if(0x3==_0x57e2b3&&0x3==_0x35aeac&&_0xe4680['start']['isBefore'](_0x326667['start'])){const _0x5830a9=_0xe4680['end']['nodeAfter'],_0x2ee1fd=_0x326667['start']['nodeBefore'];return _0x49c26d['isBlockImage'](_0x5830a9)&&_0x5830a9===_0x2ee1fd;}return!0x1;}_0x4c2bb4['model']['document']['registerPostFixer'](()=>{let _0xd7d7f7=!0x1;const _0x26acff=Array['from'](_0x4c2bb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x363fac,data:_0x307b4b}of _0x26acff){const {group:_0x5073ce,type:_0x3c387b,subType:_0x3d5a30,id:_0x2703aa}=_0x18ab02['_splitMarkerName'](_0x363fac);if('suggestion'==_0x5073ce&&_0x18ab02['hasSuggestion'](_0x2703aa)){if('formatBlock'==_0x3c387b&&('imageStylePreApply'==_0x3d5a30||'imageStylePostApply'==_0x3d5a30)){const _0x46bb3b=_0x18ab02['getSuggestion'](_0x2703aa);if(_0x307b4b['newRange']){const _0x1b39f8=_0x46bb3b['getFirstRange']()['getContainedElement']();if(_0x49c26d['isBlockImage'](_0x1b39f8))continue;_0x18ab02['discardSuggestion'](_0x46bb3b),_0xd7d7f7=!0x0;}}if('insertion'==_0x3c387b&&'imageCaption'==_0x3d5a30&&!_0x307b4b['newRange']){const _0x4ceca2=_0x18ab02['getSuggestion'](_0x2703aa);_0x4ceca2['next']&&_0x4ceca2['next']['isInContent']&&(_0x18ab02['discardSuggestion'](_0x4ceca2['next']),_0xd7d7f7=!0x0);}}}return _0xd7d7f7;}),this['_registerLegacyDescription'](_0x39f602);}['_registerLegacyDescription'](_0x173105){const _0x23d63f=this['editor'],_0x43f0d0=_0x23d63f['locale'];_0x23d63f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41878f=>{if('formatBlock'!=_0x41878f['type']&&'formatInline'!=_0x41878f['type'])return;const {data:_0x402cd5}=_0x41878f;if(!_0x402cd5||'imageStyle'!=_0x402cd5['commandName'])return;const _0x1991cf=_0x402cd5['commandParams'][0x0]['value'];return _0x6e75ef('side'===_0x1991cf?c(_0x43f0d0,'FORMAT_SIDE_IMAGE'):_0x173105[_0x1991cf]||_0x1991cf);function _0x6e75ef(_0x83095c){return{'type':'format','content':c(_0x43f0d0,'*Format:*\x20%0',_0x83095c)};}});}}class ut extends _0x1667de{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x17184f){super(_0x17184f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e5a64=this['editor'],_0x43b078=_0x4e5a64['commands']['get']('importWord'),_0x479da2=_0x4e5a64['commands']['get']('trackChanges');_0x43b078&&(_0x43b078['on']('execute',(_0x27f9d7,[,_0x2e853b])=>{this['_trackChangesValueDuringImport']=_0x479da2['value'],_0x2e853b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x43b078,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x43b078,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x479da2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e5a64['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x27eb56,_0x276e37){const {suggestions:_0x1c3e47}=_0x276e37,_0x1391e9=this['editor']['commands']['get']('trackChanges'),_0x549180=_0x1391e9['value'];this['_trackChangesValueDuringImport']!==_0x549180&&(_0x1391e9['execute'](),this['_trackChangesExecuted']=!0x0),_0x1c3e47&&_0x1c3e47['forEach'](({id:_0x2e514b,type:_0x19d4d5,author:_0x292a8b,created_at:_0x2ffbe6})=>{const _0x1fc989={'id':_0x2e514b,'type':_0x19d4d5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x292a8b,'createdAt':_0x2ffbe6?new Date(_0x2ffbe6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1fc989);});}}class ft extends _0x1667de{['afterInit'](){const _0x2808b5=this['editor'],_0x1f806c=_0x2808b5['plugins']['get']('TrackChangesEditing');if(_0x2808b5['plugins']['has']('IndentEditing')&&(_0x1f806c['enableCommand']('indent'),_0x1f806c['enableCommand']('outdent')),_0x2808b5['plugins']['has']('IndentBlock')){for(const _0x2331cf of['indentBlock','outdentBlock'])_0x1f806c['enableDefaultAttributesIntegration'](_0x2331cf);}const _0x5033d2=_0x2808b5['locale'];_0x1f806c['registerBlockAttribute']('blockIndent'),_0x1f806c['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5033d2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x370a08=this['editor'],_0x28c903=_0x370a08['locale'],_0x3d238e=_0x370a08['plugins']['get']('TrackChangesEditing');_0x3d238e['descriptionFactory']['registerDescriptionCallback'](_0x40b79f=>{if('formatBlock'!=_0x40b79f['type'])return;const {data:_0x459b6a}=_0x40b79f;if(!_0x459b6a)return;if('indentBlock'!=_0x459b6a['commandName']&&'outdentBlock'!=_0x459b6a['commandName'])return;const _0x1a28ce=_0x40b79f['getItems']()[0x0],_0x75bb4=_0x3d238e['descriptionFactory']['getItemLabel'](_0x1a28ce);return'indentBlock'==_0x459b6a['commandName']?{'type':'format','content':c(_0x28c903,'*Indent:*\x20%0',_0x75bb4)}:'outdentBlock'==_0x459b6a['commandName']?{'type':'format','content':c(_0x28c903,'*Outdent:*\x20%0',_0x75bb4)}:void 0x0;});}}class ht extends _0x1667de{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x1667de{['afterInit'](){const _0x5c4e0b=this['editor'];if(!_0x5c4e0b['plugins']['has']('LinkEditing'))return;const _0x254d62=_0x5c4e0b['plugins']['get']('TrackChangesEditing'),_0x48c95c=_0x5c4e0b['commands']['get']('link');_0x254d62['enableDefaultAttributesIntegration']('link'),_0x254d62['enableDefaultAttributesIntegration']('unlink'),_0x254d62['registerInlineAttribute']('linkHref');for(const _0x503015 of _0x48c95c['manualDecorators'])_0x254d62['registerInlineAttribute'](_0x503015['id']),_0x254d62['descriptionFactory']['registerAttributeLabel'](_0x503015['id'],'link\x20('+_0x503015['label']['toLowerCase']()+')');_0x254d62['descriptionFactory']['registerDescriptionCallback'](_0x36a413=>{if('attribute'!=_0x36a413['type'])return;const {data:_0x56f63a}=_0x36a413;if(!_0x56f63a||'linkHref'!=_0x56f63a['key'])return;const _0x1b58e5=_0x56f63a['newValue'],_0x41033d=_0x5c4e0b['locale'];return{'type':'format','content':null==_0x1b58e5?c(_0x41033d,'*Remove\x20link*'):c(_0x41033d,'*Set\x20link:*\x20%0','\x22'+_0x1b58e5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b440b=this['editor'],_0x2858fb=_0x5b440b['locale'];_0x5b440b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x385dcd=>{if('formatInline'!=_0x385dcd['type'])return;const {data:_0x29467c}=_0x385dcd;if(_0x29467c){if('link'==_0x29467c['commandName']){const _0x1bdc26=_0x29467c['commandParams'][0x0];return{'type':'format','content':c(_0x2858fb,'*Set\x20link:*\x20%0','\x22'+_0x1bdc26+'\x22')};}return'unlink'==_0x29467c['commandName']?{'type':'format','content':c(_0x2858fb,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x1667de{['afterInit'](){const _0x88d4fc=this['editor'],_0x4b1419=_0x88d4fc['locale'];if(!_0x88d4fc['plugins']['has']('LegacyListEditing'))return;const _0x4046c7=_0x88d4fc['plugins']['get']('TrackChangesEditing'),_0x4026aa=_0x88d4fc['plugins']['has']('LegacyTodoListEditing');function _0x2458a1(_0x4132a2){return()=>{const _0x4fca20=_0x88d4fc['model']['document']['selection'],_0x512364=_0x88d4fc['commands']['get'](_0x4132a2);if(_0x512364['value'])return void _0x88d4fc['execute']('paragraph',{});const _0x35dee1=_0x4132a2['slice'](0x0,-0x4),_0x275f1d=function(_0x290a10,_0x56bebf,_0x49daa3){let _0x2ffada=Array['from'](_0x290a10)['filter'](_0x4fad03=>function(_0x4e4df4,_0x597b68){return _0x597b68['checkChild'](_0x4e4df4['parent'],'listItem')&&!_0x597b68['isObject'](_0x4e4df4);}(_0x4fad03,_0x49daa3));_0x2ffada=_0x2ffada['filter'](_0x294a78=>!_0x294a78['is']('element','listItem')||_0x294a78['getAttribute']('listType')!=_0x56bebf);const _0x1d14ae=new Set();for(const _0x285406 of _0x2ffada)_0x285406['is']('element','listItem')?_0x1d14ae['add'](Le(_0x285406)):_0x1d14ae['add'](_0x285406);return Array['from'](_0x1d14ae);}(_0x4fca20['getSelectedBlocks'](),_0x35dee1,_0x88d4fc['model']['schema']);_0x88d4fc['model']['change'](()=>{for(const _0xf61411 of _0x275f1d)_0x4046c7['markBlockFormat'](_0xf61411,{'commandName':_0x4132a2,'commandParams':[{'forceValue':!_0x512364['value']}],'formatGroupId':'blockName'},Ee(_0xf61411));});};}function _0x487835(_0x5ac83b){return()=>{const _0xbccabd=function(_0x723cd2){let _0x209fc2=Array['from'](_0x723cd2);const _0x560a35=_0x209fc2['findIndex'](_0x2fd834=>'listItem'!=_0x2fd834['name']);return _0x560a35>-0x1&&(_0x209fc2=_0x209fc2['slice'](0x0,_0x560a35)),_0x209fc2;}(_0x88d4fc['model']['document']['selection']['getSelectedBlocks']()),_0x53cbbc=_0x88d4fc['model']['createRange'](_0x88d4fc['model']['createPositionAt'](_0xbccabd[0x0],'before'),_0x88d4fc['model']['createPositionAt'](_0xbccabd[_0xbccabd['length']-0x1],'end'));_0x88d4fc['model']['change'](()=>{_0x4046c7['markBlockFormat'](_0x53cbbc,{'commandName':_0x5ac83b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x57ee07){const _0x332dc6=new Set();for(const _0x4209f3 of _0x57ee07){let _0x3d3baa=_0x4209f3['nextSibling'];for(;_0x3d3baa&&_0x3d3baa['getAttribute']('listIndent')>_0x4209f3['getAttribute']('listIndent');)_0x332dc6['add'](_0x3d3baa),_0x3d3baa=_0x3d3baa['nextSibling'];}return Array['from'](_0x332dc6);}(_0xbccabd));});};}_0x4046c7['enableCommand']('numberedList',_0x2458a1('numberedList')),_0x4046c7['enableCommand']('bulletedList',_0x2458a1('bulletedList')),_0x4026aa&&_0x4046c7['enableCommand']('todoList',_0x2458a1('todoList')),_0x4046c7['enableCommand']('indentList',_0x487835('indentList')),_0x4046c7['enableCommand']('outdentList',_0x487835('outdentList')),_0x4026aa&&_0x4046c7['enableCommand']('checkTodoList',()=>{const _0x50a3fc=_0x88d4fc['commands']['get']('checkTodoList'),_0x2026eb=Array['from'](_0x50a3fc['_selectedElements']);_0x2026eb['filter'](_0x228c5d=>_0x228c5d['getAttribute']('todoListChecked')!=_0x50a3fc['value']),_0x88d4fc['model']['change'](()=>{for(const _0x1dbb2b of _0x2026eb)_0x4046c7['markBlockFormat'](_0x1dbb2b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x50a3fc['value']}]});});}),_0x4046c7['descriptionFactory']['registerElementLabel']('listItem',_0x20c0c6=>c(_0x4b1419,'ELEMENT_LIST_ITEM',_0x20c0c6)),_0x4046c7['descriptionFactory']['registerDescriptionCallback'](_0x46f173=>{if('formatBlock'!=_0x46f173['type']&&'formatInline'!=_0x46f173['type'])return;const {data:_0x5f439d}=_0x46f173;if(_0x5f439d){if('numberedList'==_0x5f439d['commandName']||'bulletedList'==_0x5f439d['commandName']||'todoList'==_0x5f439d['commandName'])switch(_0x5f439d['commandName']['replace']('List','')){case'bulleted':return _0x424bd8(c(_0x4b1419,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x424bd8(c(_0x4b1419,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x424bd8(c(_0x4b1419,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5f439d['commandName'])return{'type':'format','content':c(_0x4b1419,'*Indent:*\x20%0',c(_0x4b1419,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5f439d['commandName'])return{'type':'format','content':c(_0x4b1419,'*Outdent:*\x20%0',c(_0x4b1419,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5f439d['commandName'])return _0x5f439d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4b1419,'*Check\x20item*')}:{'type':'format','content':c(_0x4b1419,'*Uncheck\x20item*')};}function _0x424bd8(_0x3bd0b8){return{'type':'format','content':c(_0x4b1419,'*Change\x20to:*\x20%0',_0x3bd0b8)};}});}}function Le(_0x25b87c){const _0x2689fc=_0x25b87c['getAttribute']('listIndent');if(0x0==_0x2689fc)return _0x25b87c;let _0x514126=_0x25b87c;for(;_0x25b87c['previousSibling']&&_0x25b87c['previousSibling']['is']('element','listItem');){const _0x5161c5=_0x25b87c['previousSibling']['getAttribute']('listIndent');if(_0x5161c5==_0x2689fc)_0x514126=_0x25b87c['previousSibling'];else{if(_0x5161c5<_0x2689fc)break;}_0x25b87c=_0x25b87c['previousSibling'];}return _0x514126;}function Ee(_0x4477e9){const _0x3c4e7b=[];if(_0x4477e9['is']('element','listItem')&&_0x4477e9['getAttribute']('listIndent')>0x0){let _0x4237dd=_0x4477e9['nextSibling'];for(;_0x4237dd&&'listItem'==_0x4237dd['name']&&_0x4237dd['getAttribute']('listIndent')==_0x4477e9['getAttribute']('listIndent');)_0x3c4e7b['push'](_0x4237dd),_0x4237dd=_0x4237dd['nextSibling'];}return _0x3c4e7b;}class Q extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x50bddf=this['editor']['config']['get']('list.properties'),_0x471317=this['editor']['plugins']['get']('TrackChangesEditing');_0x50bddf['styles']&&_0x471317['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x50bddf['reversed']&&_0x471317['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x50bddf['startIndex']&&_0x471317['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x471317['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ca3f6,_0x1bb763={}){const _0x2b6d3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a0e66=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2b6d3b['markMultiRangeBlockFormat'](_0x3a0e66,{'commandName':'listStyle','commandParams':[{'type':_0x1bb763['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4576e8,_0x558637={}){const _0x4956ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1164ac=this['_getSuggestionBlocks'](_0x2913cc=>_0x2913cc['is']('element','listItem')&&'numbered'===_0x2913cc['getAttribute']('listType'));if(_0x1164ac['length']<0x1)return;const _0x2afc6e=_0x1164ac['map'](_0x7d2127=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x7d2127,'before'),this['editor']['model']['createPositionAt'](_0x7d2127,0x0)));this['editor']['model']['change'](()=>{_0x4956ec['markMultiRangeBlockFormat'](_0x2afc6e,{'commandName':'listReversed','commandParams':[{'reversed':_0x558637['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x44b11a,_0x29dc39={}){const _0x268939=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b29c5=this['_getSuggestionBlocks'](_0x1c0940=>_0x1c0940['is']('element','listItem')&&'numbered'===_0x1c0940['getAttribute']('listType'));if(_0x4b29c5['length']<0x1)return;const _0x7b2293=_0x4b29c5['map'](_0x1874f6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1874f6,'before'),this['editor']['model']['createPositionAt'](_0x1874f6,0x0)));this['editor']['model']['change'](()=>{_0x268939['markMultiRangeBlockFormat'](_0x7b2293,{'commandName':'listStart','commandParams':[{'startIndex':_0x29dc39['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4ea841){if('formatBlock'!=_0x4ea841['type']&&'formatInline'!=_0x4ea841['type'])return;const _0x3eec94=this['editor']['locale'],{data:_0x30be83}=_0x4ea841;if(!_0x30be83)return;let _0x5131a3,_0x3b7a5b;switch(_0x30be83['commandName']){case'listStyle':_0x5131a3='*Change\x20to:*\x20%0',_0x3b7a5b={'type':'format','content':c(_0x3eec94,_0x5131a3,c(_0x3eec94,this['_getTranslationKeyForListStyle'](_0x30be83['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5131a3=_0x30be83['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3b7a5b={'type':'format','content':c(_0x3eec94,_0x5131a3)};break;case'listStart':_0x5131a3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3b7a5b={'type':'format','content':c(_0x3eec94,_0x5131a3,_0x30be83['commandParams'][0x0]['startIndex'])};}return _0x3b7a5b;}['_getSuggestionBlocksForListStyle'](){const _0x2d7a90=this['editor']['plugins']['get']('LegacyListUtils');let _0x176534=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x176534[0x0]?.['is']('element','listItem')&&_0x176534['unshift'](..._0x2d7a90['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x176534[_0x176534['length']-0x1]?.['is']('element','listItem')&&_0x176534['push'](..._0x2d7a90['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x176534=[...new Set(_0x176534)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x176534=_0x176534['filter'](_0x30ef6d=>_0x30ef6d['is']('element','listItem'))),_0x176534;}['_getSuggestionBlocks'](_0x70241b){const _0x246576=this['editor']['plugins']['get']('LegacyListUtils');let _0x58f9fe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x70241b)['map'](_0x218870=>{const _0x4242a3=this['editor']['model']['createPositionAt'](_0x218870,0x0);return[..._0x246576['getSiblingNodes'](_0x4242a3,'backward'),..._0x246576['getSiblingNodes'](_0x4242a3,'forward')];})['flat']();return _0x58f9fe=[...new Set(_0x58f9fe)],_0x58f9fe;}['_getTranslationKeyForListStyle'](_0x359a64){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x359a64)||'default')['toUpperCase']()+'_LIST_'+_0x359a64['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x1667de{['afterInit'](){const _0x593c7f=this['editor'];if(!_0x593c7f['plugins']['has']('MediaEmbedEditing'))return;const _0x3bc759=_0x593c7f['plugins']['get']('TrackChangesEditing'),_0x56c3eb=_0x593c7f['locale'];_0x3bc759['enableCommand']('mediaEmbed'),_0x3bc759['descriptionFactory']['registerElementLabel']('media',_0x6180d=>c(_0x56c3eb,'ELEMENT_MEDIA',_0x6180d)),_0x593c7f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5cce21,{writer:_0x56c2ef,options:_0x32c03f})=>{if(_0x32c03f['showSuggestionHighlights'])return _0x56c2ef['createEmptyElement']('div');},'converterPriority':'high'}),_0x593c7f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x367ffb,_0x458bc3,_0x4cb1d7)=>{_0x4cb1d7['options']['showSuggestionHighlights']&&_0x367ffb['stop']();},{'priority':'high'});}}class pt extends _0x1667de{['afterInit'](){const _0x524b0d=this['editor'];_0x524b0d['plugins']['has']('MentionEditing')&&_0x524b0d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x1667de{['afterInit'](){const _0x158793=this['editor'];if(!_0x158793['plugins']['has']('MergeFieldsEditing'))return;const _0x3da165=_0x158793['plugins']['get']('TrackChangesEditing'),_0x54565b=_0x158793['locale'];_0x3da165['enableCommand']('insertMergeField'),_0x3da165['enableCommand']('insertMergeFieldBlock'),_0x3da165['enableCommand']('insertMergeFieldImage'),_0x3da165['descriptionFactory']['registerElementLabel']('mergeField',_0x55e27b=>c(_0x54565b,'ELEMENT_MERGE_FIELD',_0x55e27b)),_0x3da165['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x53ed18=>c(_0x54565b,'ELEMENT_MERGE_FIELD',_0x53ed18)),_0x3da165['descriptionFactory']['registerDescriptionCallback'](_0x18e634=>{if('insertion'!=_0x18e634['type']&&'deletion'!=_0x18e634['type'])return;const _0x2b53e1=_0x18e634['getContainedElement']();if(null==_0x2b53e1)return;const _0x34f097=_0x158793['plugins']['get']('MergeFieldsEditing');let _0x29be5c;switch(_0x34f097['getMergeFieldType'](_0x2b53e1)){case null:return;case'image':{const _0x1dd480=_0x34f097['unwrapAffixes'](_0x2b53e1['getAttribute']('src'));_0x29be5c=_0x34f097['getLabel'](_0x1dd480)||_0x1dd480;break;}default:{const _0x544842=_0x2b53e1['getAttribute']('id');_0x29be5c=_0x34f097['getLabel'](_0x544842)||_0x544842;break;}}return'insertion'==_0x18e634['type']?{'type':'insertion','content':c(_0x54565b,'*Insert:*\x20%0','\x22'+_0x29be5c+'\x22\x20'+c(_0x54565b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x54565b,'*Remove:*\x20%0','\x22'+_0x29be5c+'\x22\x20'+c(_0x54565b,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x1667de{['afterInit'](){const _0x677984=this['editor'],_0x3e7dac=_0x677984['plugins']['get']('TrackChangesEditing');_0x677984['plugins']['has']('MultiLevelList')&&(_0x3e7dac['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e7dac['registerBlockAttribute']('listMarkerStyle'),_0x3e7dac['descriptionFactory']['registerDescriptionCallback'](_0x580d29=>this['handleDescriptions'](_0x580d29)));}['handleDescriptions'](_0x5451ed){const _0x12b1f7=this['editor']['locale'],{data:_0x53f5f0}=_0x5451ed,_0x234ab1={'type':'format','content':''};if(_0x53f5f0&&'listMarkerStyle'==_0x53f5f0['key']){if(!_0x53f5f0['oldValue'])return{'type':'format','content':c(_0x12b1f7,'*Set\x20format:*\x20%0',c(_0x12b1f7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53f5f0['newValue']+')'};if(!_0x53f5f0['newValue']){let _0x40f324=_0x5451ed['head'];for(;_0x40f324;){if(_0x40f324['data']&&'listType'==_0x40f324['data']['key']&&_0x40f324['data']['newValue'])return _0x234ab1;_0x40f324=_0x40f324['next'];}return{'type':'format','content':c(_0x12b1f7,'*Remove\x20format:*\x20%0',c(_0x12b1f7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x53f5f0['oldValue']+')'};}}}}class bt extends _0x1667de{['afterInit'](){const _0x3a21da=this['editor'];if(!_0x3a21da['plugins']['has']('PageBreakEditing'))return;_0x3a21da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50782d=_0x3a21da['plugins']['get']('TrackChangesEditing'),_0x19eb08=_0x3a21da['locale'];_0x50782d['descriptionFactory']['registerElementLabel']('pageBreak',_0x38f03e=>c(_0x19eb08,'ELEMENT_PAGE_BREAK',_0x38f03e));}}class yt extends _0x1667de{['afterInit'](){const _0x132b5f=this['editor'];if(!_0x132b5f['plugins']['has']('Paragraph'))return;const _0x57474b=_0x132b5f['locale'],_0x5155ff=_0x132b5f['plugins']['get']('TrackChangesEditing');_0x5155ff['descriptionFactory']['registerElementLabel']('paragraph',_0x430631=>c(_0x57474b,'ELEMENT_PARAGRAPH',_0x430631)),_0x5155ff['enableDefaultAttributesIntegration']('paragraph'),_0x5155ff['enableCommand']('insertParagraph'),_0x132b5f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x132b5f),{'priority':'highest'}),_0x132b5f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ddee4,_0x5e3060,_0xb79989)=>{_0xb79989['options']['showSuggestionHighlights']&&nr(_0x132b5f,{'showActiveMarker':!0x1})(_0x1ddee4,_0x5e3060,_0xb79989);},{'priority':'highest'});const _0x418bfa=_0x5155ff['descriptionFactory'];_0x418bfa['registerDescriptionCallback'](_0x18f41e=>{if('insertion'!==_0x18f41e['type'])return;const {start:_0x5bfa4b,end:_0x2df30d}=_0x18f41e['getFirstRange']();if(!_0x5bfa4b['isTouching'](_0x2df30d)||!_0x5bfa4b['nodeAfter'])return;const _0x1b046c=_0x132b5f['model']['schema'],_0x210d9b=_0x5bfa4b['nodeAfter'];return _0x1b046c['isBlock'](_0x210d9b)&&!_0x1b046c['isLimit'](_0x210d9b)&&_0x1b046c['checkChild'](_0x210d9b,'$text')?{'type':'insertion','content':c(_0x57474b,'*Insert:*\x20%0',_0x418bfa['getItemLabel'](_0x210d9b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a559f=this['editor'],_0x4d8e5a=_0x2a559f['locale'];_0x2a559f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40622a=>{if('formatBlock'!=_0x40622a['type'])return;const {data:_0x325785}=_0x40622a;return _0x325785&&'paragraph'==_0x325785['commandName']?{'type':'format','content':c(_0x4d8e5a,'*Change\x20to:*\x20%0',c(_0x4d8e5a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4cbb80,{showActiveMarker:_0x5287d1=!0x0}={}){return(_0x58abfe,_0x45be59,_0x23250a)=>{const _0x3235f4=_0x4cbb80['plugins']['get']('TrackChangesEditing'),_0x391ca9=_0x45be59['markerRange']['start'],_0x582394=_0x45be59['markerRange']['end'],_0x4b2a83=_0x4cbb80['model']['schema'];if(!_0x391ca9['isTouching'](_0x582394)||!_0x391ca9['nodeAfter'])return;const _0x823230=_0x391ca9['nodeAfter'];if(_0x4b2a83['isBlock'](_0x823230)&&!_0x4b2a83['isLimit'](_0x823230)&&_0x4b2a83['checkChild'](_0x823230,'$text')){if(!_0x23250a['consumable']['consume'](_0x45be59['markerRange'],_0x58abfe['name']))return;const {authorId:_0x2b6b85}=_0x3235f4['_splitMarkerName'](_0x45be59['markerName']),_0x2b03c5=_0x23250a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2b6b85}),_0x4bcd8c=_0x23250a['mapper']['toViewPosition'](_0x582394);_0x5287d1&&_0x3235f4['activeMarkers']['includes'](_0x45be59['markerName'])&&_0x23250a['writer']['addClass']('ck-suggestion-marker--active',_0x2b03c5),_0x23250a['writer']['insert'](_0x4bcd8c,_0x2b03c5),_0x23250a['mapper']['bindElementToMarker'](_0x2b03c5,_0x45be59['markerName']);}};}class jt extends _0x1667de{['afterInit'](){const _0x5b0bfc=this['editor'];_0x5b0bfc['commands']['get']('replaceSource')&&_0x5b0bfc['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x1667de{['afterInit'](){const _0x11d8ef=this['editor'];if(!_0x11d8ef['plugins']['has']('RemoveFormatEditing'))return;_0x11d8ef['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c7dad=this['editor'];_0x5c7dad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a7d08=>{if('formatBlock'!=_0x2a7d08['type']&&'formatInline'!=_0x2a7d08['type'])return;const {data:_0x4dd4ef}=_0x2a7d08;return _0x4dd4ef&&'removeFormat'==_0x4dd4ef['commandName']?{'type':'format','content':c(_0x5c7dad['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x1667de{['afterInit'](){const _0xe512c1=this['editor'];if(!_0xe512c1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x37b743=_0xe512c1['plugins']['get']('TrackChangesEditing');_0x37b743['enableCommand']('goToPreviousRestrictedEditingException'),_0x37b743['enableCommand']('goToNextRestrictedEditingException');const _0x239835=_0xe512c1['plugins']['get']('RestrictedEditingModeEditing');_0x239835['enableCommand']('trackChanges'),_0x239835['enableCommand']('acceptSuggestion'),_0x239835['enableCommand']('discardSuggestion'),_0x239835['enableCommand']('acceptAllSuggestions'),_0x239835['enableCommand']('discardAllSuggestions'),_0x239835['enableCommand']('acceptSelectedSuggestions'),_0x239835['enableCommand']('discardSelectedSuggestions');}}class It extends _0x1667de{['afterInit'](){const _0x4f28a8=this['editor'];if(!_0x4f28a8['plugins']['has']('ShiftEnter'))return;const _0x3a8958=_0x4f28a8['plugins']['get']('TrackChangesEditing');_0x3a8958['enableCommand']('shiftEnter'),_0x4f28a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4f28a8),{'priority':'high'}),_0x4f28a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4f28a8),{'priority':'high'}),_0x4f28a8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1979c8,_0x46a6e4,_0x3cc258)=>{_0x3cc258['options']['showSuggestionHighlights']&&je(_0x4f28a8,{'showActiveMarker':!0x1})(_0x1979c8,_0x46a6e4,_0x3cc258);}),_0x3a8958['descriptionFactory']['registerElementLabel']('softBreak',_0x52a917=>c(_0x4f28a8['locale'],'ELEMENT_LINE_BREAK',_0x52a917));}}function je(_0x54228c,{showActiveMarker:_0x4bf2a6=!0x0}={}){return(_0x243226,_0x48a763,_0x1f040c)=>{const _0x3e091e=_0x54228c['plugins']['get']('TrackChangesEditing');if(!_0x1f040c['consumable']['test'](_0x48a763['markerRange'],_0x243226['name']))return;const _0x1d25d4=_0x54228c['model'];for(const _0x4c055e of _0x48a763['markerRange']['getItems']()){if(!_0x4c055e['is']('element','softBreak'))continue;const _0x528231='deletion'==_0x48a763['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3f466c}=_0x3e091e['_splitMarkerName'](_0x48a763['markerName']),_0x228bad=_0x1f040c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x528231,'data-author-id':_0x3f466c}),_0x580fa7=_0x1f040c['mapper']['toViewPosition'](_0x1d25d4['createPositionBefore'](_0x4c055e));_0x4bf2a6&&_0x3e091e['activeMarkers']['includes'](_0x48a763['markerName'])&&_0x1f040c['writer']['addClass']('ck-suggestion-marker--active',_0x228bad),_0x1f040c['writer']['insert'](_0x580fa7,_0x228bad),_0x1f040c['mapper']['bindElementToMarker'](_0x228bad,_0x48a763['markerName']);}};}class _t extends _0x1667de{['afterInit'](){const _0x8ebf85=this['editor'],_0x385b3d=_0x8ebf85['model'],_0x11d6c9=_0x8ebf85['locale'];if(!_0x8ebf85['plugins']['has']('StandardEditingModeEditing'))return;const _0x59ccd6=_0x8ebf85['plugins']['get']('TrackChangesEditing'),_0x349c78='restrictedEditingException',_0x4e9de6=_0x8ebf85['commands']['get'](_0x349c78);_0x59ccd6['enableCommand'](_0x349c78,(_0x18bd8,_0x1dc60f={})=>{const _0xf47698=_0x385b3d['document']['selection'];if(_0xf47698['isCollapsed'])return void _0x18bd8(_0x1dc60f);const _0x5c55e9=void 0x0!==_0x1dc60f['forceValue']?_0x1dc60f['forceValue']:!_0x4e9de6['value'];_0x385b3d['change'](()=>{const _0x1a8170=Array['from'](_0xf47698['getRanges']());for(const _0x2c49b2 of _0x1a8170){const _0x286fbc=_0x5c55e9?[_0x2c49b2]:io(_0x349c78,_0x2c49b2,_0x385b3d);for(const _0x1cc708 of _0x286fbc)_0x59ccd6['markInlineFormat'](_0x1cc708,{'commandName':_0x349c78,'commandParams':[{'forceValue':_0x5c55e9}]});}});}),_0x59ccd6['descriptionFactory']['registerDescriptionCallback'](_0x3a145b=>{if('formatBlock'!=_0x3a145b['type']&&'formatInline'!=_0x3a145b['type'])return;const {data:_0x1811f0}=_0x3a145b;return _0x1811f0&&_0x1811f0['commandName']==_0x349c78?_0x1811f0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x11d6c9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x11d6c9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x1667de{['afterInit'](){const _0x26a7cd=this['editor'];if(!_0x26a7cd['plugins']['has']('Style')||!_0x26a7cd['plugins']['has']('DataSchema'))return;const _0x307aa2=_0x26a7cd['plugins']['get']('TrackChangesEditing'),_0x5ddf8b=_0x26a7cd['locale'],_0x5cfc30=_0x26a7cd['config']['get']('style')||{},_0x18a9df=_0x26a7cd['plugins']['get']('GeneralHtmlSupport'),_0x195dff=_0x26a7cd['plugins']['get']('StyleUtils')['normalizeConfig'](_0x26a7cd['plugins']['get']('DataSchema'),_0x5cfc30['definitions']);_0x307aa2['enableDefaultAttributesIntegration']('style');const _0x4fb615=new Set();for(const _0x197eeb of _0x195dff['block']){const _0x5f0ee6=_0x18a9df['getGhsAttributeNameForElement'](_0x197eeb['element']);_0x4fb615['add'](_0x5f0ee6);}const _0x2360f7=new Set();for(const _0x237b97 of _0x195dff['inline']){const _0x5848c3=_0x18a9df['getGhsAttributeNameForElement'](_0x237b97['element']);_0x2360f7['add'](_0x5848c3);for(const _0x59a18a of _0x237b97['ghsAttributes'])_0x2360f7['add'](_0x59a18a);}for(const _0x3648df of _0x4fb615)_0x307aa2['registerBlockAttribute'](_0x3648df),_0x307aa2['descriptionFactory']['registerAttributeLabel'](_0x3648df,c(_0x5ddf8b,'FORMAT_STYLE'));for(const _0x4a932c of _0x2360f7)_0x307aa2['registerInlineAttribute'](_0x4a932c),_0x307aa2['descriptionFactory']['registerAttributeLabel'](_0x4a932c,c(_0x5ddf8b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40b3f6=this['editor'],_0x5c74e9=_0x40b3f6['locale'];_0x40b3f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eb56b=>{if('formatBlock'!=_0x2eb56b['type']&&'formatInline'!=_0x2eb56b['type'])return;const {data:_0x1c16a4}=_0x2eb56b;return _0x1c16a4&&'style'===_0x1c16a4['commandName']?_0x1c16a4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5c74e9,'*Set\x20format:*\x20%0',_0x1c16a4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5c74e9,'*Remove\x20format:*\x20%0',_0x1c16a4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x1667de{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5e2853){super(_0x5e2853),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xa3d974=this['editor'],_0x37deae=_0xa3d974['model']['document']['selection'];if(!_0xa3d974['plugins']['has']('TableEditing'))return;const _0x4ed609=_0xa3d974['locale'],_0x21f86e=_0xa3d974['plugins']['get']('TrackChangesEditing'),_0x16d08d=_0xa3d974['plugins']['get']('TableUtils');_0x21f86e['descriptionFactory']['registerElementLabel']('table',_0x4a7031=>c(_0x4ed609,'ELEMENT_TABLE',_0x4a7031)),this['_setupColumnsRowsFixing'](),_0x21f86e['enableCommand']('insertTable'),_0x21f86e['enableCommand']('selectTableRow'),_0x21f86e['enableCommand']('selectTableColumn');for(const _0x584866 of['insertTableRowAbove','insertTableRowBelow']){const _0x129d84=_0xa3d974['commands']['get'](_0x584866);_0x21f86e['enableCommand'](_0x584866,_0x499dab=>{_0xa3d974['model']['change'](_0x266f3e=>{_0x499dab();const _0x184eac='above'===_0x129d84['order'],_0x8a960=_0x16d08d['getSelectionAffectedTableCells'](_0x37deae),_0xaf073d=_0x16d08d['getRowIndexes'](_0x8a960),_0x1bd13a=_0x184eac?_0xaf073d['first']-0x1:_0xaf073d['last']+0x1,_0x1a7709=_0x8a960[0x0]['findAncestor']('table'),_0x585b16=_0x16d08d['createTableWalker'](_0x1a7709,{'startRow':_0x1bd13a,'endRow':_0x1bd13a}),_0x4771c1=Array['from'](_0x585b16)['map'](_0xfec51d=>_0x266f3e['createRangeOn'](_0xfec51d['cell']));_0x21f86e['markMultiRangeInsertion'](_0x4771c1,'tableRow');});});}for(const _0x50b5be of['insertTableColumnLeft','insertTableColumnRight']){const _0xd4d171=_0xa3d974['commands']['get'](_0x50b5be);_0x21f86e['enableCommand'](_0x50b5be,_0x3dd694=>{_0xa3d974['model']['change'](_0x1337ee=>{_0x3dd694();const _0x562b2c='left'===_0xd4d171['order'],_0x57390c=_0x16d08d['getSelectionAffectedTableCells'](_0x37deae),_0x5fdf85=_0x16d08d['getColumnIndexes'](_0x57390c),_0x34b258=_0x562b2c?_0x5fdf85['first']-0x1:_0x5fdf85['last']+0x1,_0x15dee9=_0x57390c[0x0]['findAncestor']('table'),_0x568353=_0x16d08d['createTableWalker'](_0x15dee9,{'startRow':0x0,'column':_0x34b258,'includeAllSlots':!0x1}),_0x1762ef=Array['from'](_0x568353)['map'](_0x2a1f72=>_0x1337ee['createRangeOn'](_0x2a1f72['cell']));_0x21f86e['markMultiRangeInsertion'](_0x1762ef,'tableColumn');});});}for(const _0xe5bdb3 of['removeTableRow','removeTableColumn']){const _0x3f4682=_0xe5bdb3['substr'](0xb),_0x287d34=_0x3f4682['toLowerCase'](),_0x328216=_0x287d34['substr'](0x0,0x3)+'span',_0x2ebf74='table'+_0x3f4682,_0x210132='min'+_0x3f4682,_0x3b9323='max'+_0x3f4682;_0x21f86e['enableCommand'](_0xe5bdb3,()=>{_0xa3d974['model']['change'](_0x2d13e4=>{const _0xd6a1bc=_0x16d08d['getSelectionAffectedTableCells'](_0x37deae),_0x5cda67=_0xd6a1bc[0x0]['findAncestor']('table');let _0x4b8529;if('removeTableRow'==_0xe5bdb3){const _0x570384=_0x16d08d['getRowIndexes'](_0xd6a1bc);_0x4b8529={'startRow':_0x570384['first'],'endRow':_0x570384['last'],'includeAllSlots':!0x0};}else{const _0x2e9ea5=_0x16d08d['getColumnIndexes'](_0xd6a1bc);_0x4b8529={'startColumn':_0x2e9ea5['first'],'endColumn':_0x2e9ea5['last'],'includeAllSlots':!0x0};}const _0x7e4ab4=_0x16d08d['createTableWalker'](_0x5cda67,_0x4b8529),_0x137562=Array['from'](_0x7e4ab4)['map'](({cell:_0x4117f1})=>_0x4117f1),_0x3c61c8=Ne(_0x137562['filter'](_0x55bd06=>_0x55bd06['hasAttribute'](_0x328216))),_0x2f6647=Ne(_0x137562['filter'](_0x17266b=>!_0x17266b['hasAttribute'](_0x328216)))['map'](_0x592f42=>_0x2d13e4['createRangeOn'](_0x592f42)),_0x32f9a=_0x21f86e['markMultiRangeDeletion'](_0x2f6647,_0x2ebf74);if(_0x32f9a&&('tableRow'==_0x32f9a['subType']||'tableColumn'==_0x32f9a['subType'])){const _0x408367=this['_getSuggestionCoords'](_0x32f9a);for(const _0x2fcf2e of _0x3c61c8){const _0x3a3175=_0x2d13e4['createRangeOn'](_0x2fcf2e),_0x21de82=_0x16d08d['getCellLocation'](_0x2fcf2e),_0x4d2337=_0x2fcf2e['getAttribute'](_0x328216)-0x1,_0x41d600=_0x408367[_0x210132],_0x253994=_0x408367[_0x3b9323];_0x41d600<=_0x21de82[_0x287d34]&&_0x21de82[_0x287d34]+_0x4d2337<=_0x253994&&_0x32f9a['addRange'](_0x3a3175);}}});});}function _0x3dff72(_0x40e0a0){const _0x417a6e=Array['from'](_0x37deae['getRanges']())['map'](_0xc7525e=>_0x112647['fromRange'](_0xc7525e));_0xa3d974['model']['change'](_0x1b47a6=>{const _0x379775=_0x1b47a6['batch'];_0x40e0a0=_0x40e0a0['filter'](_0x1b6bab=>'$graveyard'!=_0x1b6bab['root']['rootName']),_0x1b47a6['setSelection'](_0x40e0a0),_0xa3d974['commands']['get']('removeTableRow')['refresh'](),_0xa3d974['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xa3d974['model']['enqueueChange'](()=>{_0xa3d974['model']['enqueueChange'](_0x379775,_0x57b964=>{const _0xe794dc=_0x417a6e['filter'](_0x36a2bb=>'$graveyard'!=_0x36a2bb['root']['rootName']);_0xe794dc['length']>0x0&&_0x57b964['setSelection'](_0xe794dc);for(const _0x563678 of _0x417a6e)_0x563678['detach']();});});});}function _0x3cfab9(_0x21c696){_0xa3d974['model']['change'](_0x5dc8d5=>{const _0x4861fe=Array['from'](_0x37deae['getRanges']())['map'](_0x43745a=>_0x112647['fromRange'](_0x43745a)),_0x1836f2=[];for(const _0x1c5182 of _0x21c696)for(const _0x1f475d of _0x1c5182['getItems']({'shallow':!0x0}))_0x1836f2['push'](_0x1f475d);for(const _0x2d564f of _0x1836f2)'$graveyard'!=_0x2d564f['root']['rootName']&&(_0x5dc8d5['setSelection'](_0x5dc8d5['createPositionAt'](_0x2d564f,0x0)),_0xa3d974['commands']['get']('removeTableColumn')['refresh'](),_0xa3d974['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1ccd10=_0x4861fe['filter'](_0xb87ec6=>'$graveyard'!=_0xb87ec6['root']['rootName']);_0x1ccd10['length']>0x0&&_0x5dc8d5['setSelection'](_0x1ccd10);for(const _0x5a2bd9 of _0x4861fe)_0x5a2bd9['detach']();});}function _0xc30496(_0x588035,_0x2c2b81){return _0x2c2b81['every'](_0x183d99=>_0x588035['some'](_0x5f35f7=>_0x5f35f7['end']['isEqual'](_0x183d99['start'])||_0x183d99['end']['isEqual'](_0x5f35f7['start'])));}function _0x16ac32(_0x13565e,_0xb41eab){return!_0x13565e['some'](_0x8bee23=>_0xb41eab['some'](_0x3f7f96=>_0x8bee23['isIntersecting'](_0x3f7f96)))&&_0x13565e['some'](_0x44b09f=>_0xb41eab['some'](_0x188f1a=>_0x44b09f['end']['isTouching'](_0x188f1a['start'])));}_0xa3d974['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xccc9db,_0x2d670f,_0x2b2076)=>{if(!_0x2b2076['options']['showSuggestionHighlights'])return;const _0x41fb91=_0x2d670f['item'];if(!_0x41fb91)return;const _0x53eae7=_0x2b2076['mapper']['toViewElement'](_0x41fb91);function _0x1ebdd9(_0x56f197){return Array['isArray'](_0x56f197)?_0x56f197:[_0x56f197];}_0x53eae7&&'tableCell'===_0x41fb91['name']&&_0x172b91(_0x53eae7,_0x2b2076['writer'],(_0x2ec548,_0x500fea,_0x2ce2db)=>_0x2ce2db['addClass'](_0x1ebdd9(_0x500fea['classes']),_0x2ec548),(_0x4030e2,_0x12cf41,_0x596d41)=>_0x596d41['removeClass'](_0x1ebdd9(_0x12cf41['classes']),_0x4030e2));},{'priority':'highest'}),_0x21f86e['descriptionFactory']['registerDescriptionCallback'](_0xf68f32=>{if('insertion'!=_0xf68f32['type']&&'deletion'!=_0xf68f32['type'])return;const _0x307252=_0xf68f32['getContainedElement']();if(null!=_0x307252&&_0x307252['is']('element','table')){if('insertion'==_0xf68f32['type']){const _0x362d93=_0xf68f32['getItems']()['filter'](_0x5c0aec=>_0x5c0aec['is']('$textProxy'))['map'](_0x5bfce1=>_0x5bfce1['data']);if(_0x362d93['length'])return{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x362d93['join']('\x20')+'\x22'))};}if('deletion'==_0xf68f32['type']){const _0x104ac0=_0xf68f32['getItems']()['filter'](_0x2452fe=>_0x2452fe['is']('$textProxy'))['map'](_0x408047=>_0x408047['data']);if(_0x104ac0['length'])return{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x104ac0['join']('\x20')+'\x22'))};}}}),_0x21f86e['descriptionFactory']['registerDescriptionCallback'](_0x496b06=>{if('tableRow'==_0x496b06['subType']){const _0x445c91=_0x496b06['getItems']()['filter'](_0x133399=>_0x133399['is']('$textProxy'))['map'](_0x44e7d7=>_0x44e7d7['data']),_0x510e0e=this['_getSuggestionCoords'](_0x496b06),_0x424afe=_0x510e0e['maxRow']-_0x510e0e['minRow']+0x1;if('insertion'==_0x496b06['type'])return _0x445c91['length']?{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x424afe,'\x22'+_0x445c91['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_ROW',_0x424afe))};if('deletion'==_0x496b06['type'])return _0x445c91['length']?{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x424afe,'\x22'+_0x445c91['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_ROW',_0x424afe))};}if('tableColumn'==_0x496b06['subType']){const _0x721366=_0x496b06['getItems']()['filter'](_0x4c9f52=>_0x4c9f52['is']('$textProxy'))['map'](_0x3ae713=>_0x3ae713['data']),_0x39e3f4=this['_getSuggestionCoords'](_0x496b06),_0x180fd2=_0x39e3f4['maxColumn']-_0x39e3f4['minColumn']+0x1;if('insertion'==_0x496b06['type'])return _0x721366['length']?{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x180fd2,'\x22'+_0x721366['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4ed609,'*Insert:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_COLUMN',_0x180fd2))};if('deletion'==_0x496b06['type'])return _0x721366['length']?{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x180fd2,'\x22'+_0x721366['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4ed609,'*Remove:*\x20%0',c(_0x4ed609,'ELEMENT_TABLE_COLUMN',_0x180fd2))};}}),_0x21f86e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3dff72),_0x21f86e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3dff72),_0x21f86e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3cfab9),_0x21f86e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3cfab9),_0x21f86e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xc30496),_0x21f86e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xc30496),_0x21f86e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x16ac32),_0x21f86e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x16ac32);}['_acceptFormatSuggestionCallbackFactory'](){const _0x184e1b=this['editor'],_0x4bfede=_0x184e1b['model']['document']['selection'];return(_0xa04a27,_0x5cc6fe)=>{_0x184e1b['model']['change'](_0x540d51=>{const {commandName:_0x2d3d6b,commandParams:_0x2a50f8}=_0x5cc6fe;let _0x746007=_0xa04a27[0x0]['end']['nodeBefore'];_0x2a50f8&&_0x2a50f8[0x0]&&!0x1===_0x2a50f8[0x0]['forceValue']&&(_0x746007=_0xa04a27[0x0]['start']['nodeAfter']);const _0x4e91bd=_0x540d51['createRangeIn'](_0x746007);if('$graveyard'==_0x4e91bd['root']['rootName'])return;const _0x528f1b=Array['from'](_0x4bfede['getRanges']())['map'](_0x3522df=>_0x112647['fromRange'](_0x3522df));_0x540d51['setSelection'](_0x4e91bd),_0x184e1b['commands']['get'](_0x2d3d6b)['refresh'](),_0x2a50f8['push']({'forceDefaultExecution':!0x0}),_0x184e1b['execute'](_0x2d3d6b,..._0x2a50f8);const _0x1bb808=_0x528f1b['filter'](_0x40f118=>'$graveyard'!=_0x40f118['root']['rootName']);_0x1bb808['length']>0x0&&_0x540d51['setSelection'](_0x1bb808);for(const _0x561577 of _0x528f1b)_0x561577['detach']();});};}['_getCoordsForCells'](_0xe3d5d){const _0x13effc=this['editor']['plugins']['get']('TableUtils');let _0x1eb7ed=Number['MAX_SAFE_INTEGER'],_0x35f69c=Number['MIN_SAFE_INTEGER'],_0x30e2df=Number['MAX_SAFE_INTEGER'],_0x1b7e4a=Number['MIN_SAFE_INTEGER'];for(const _0x54b852 of _0xe3d5d){if('$graveyard'==_0x54b852['root']['rootName'])continue;const {row:_0x58cff2,column:_0x103391}=_0x13effc['getCellLocation'](_0x54b852),_0x2d0e96=_0x54b852['hasAttribute']('rowspan')?_0x54b852['getAttribute']('rowspan')-0x1:0x0,_0xcc2a06=_0x54b852['hasAttribute']('colspan')?_0x54b852['getAttribute']('colspan')-0x1:0x0;_0x1eb7ed=_0x58cff2<_0x1eb7ed?_0x58cff2:_0x1eb7ed,_0x35f69c=_0x58cff2+_0x2d0e96>_0x35f69c?_0x58cff2+_0x2d0e96:_0x35f69c,_0x30e2df=_0x103391<_0x30e2df?_0x103391:_0x30e2df,_0x1b7e4a=_0x103391+_0xcc2a06>_0x1b7e4a?_0x103391+_0xcc2a06:_0x1b7e4a;}return{'minRow':_0x1eb7ed,'maxRow':_0x35f69c,'minColumn':_0x30e2df,'maxColumn':_0x1b7e4a};}['_setupColumnsRowsFixing'](){const _0x2f3023=this['editor'],_0x2b8ec7=_0x2f3023['plugins']['get']('TrackChangesEditing'),_0x4db0cb=_0x2f3023['plugins']['get']('TableUtils');_0x2f3023['model']['document']['on']('change:data',()=>{const _0x50df13=Array['from'](_0x2f3023['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x532c69,data:_0x216aaf}of _0x50df13){const {group:_0x95eb2,id:_0x3e424b,subType:_0x3dbbf9}=_0x2b8ec7['_splitMarkerName'](_0x532c69);if('suggestion'!=_0x95eb2)continue;if(null!=_0x216aaf['oldRange'])continue;const _0x2a5377=_0x2b8ec7['getSuggestion'](_0x3e424b);this['_tablePostFixingSubtypes']['includes'](_0x3dbbf9)&&this['_tableSuggestions']['add'](_0x2a5377);}},{'priority':'low'});const _0x4f2cf7=(_0x2594fa,_0x1447e8)=>{let _0x216d65=!0x1;const _0x3345e0=_0x1447e8['createRangeOn'](_0x2594fa),_0x370356=_0x2594fa['findAncestor']('table'),_0xd728d5=_0x4db0cb['getCellLocation'](_0x2594fa);for(const _0x10555b of this['_tableSuggestions']){const _0x18716f=_0x10555b['subType'],_0x3de036=_0x18716f['startsWith']('tablePaste'),_0x3ffd80=_0x18716f['substr'](_0x3de036?0xa:0x5),_0x647f54=_0x3ffd80['toLowerCase'](),_0x5e7686=_0x647f54['substr'](0x0,0x3)+'span',_0x462a34='min'+_0x3ffd80,_0x5068a8='max'+_0x3ffd80;if(!_0x10555b['isInContent'])continue;if(_0x370356!=_0x10555b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x10555b['isIntersectingWithRange'](_0x3345e0))continue;const _0x120049=_0x2594fa['hasAttribute'](_0x5e7686)?_0x2594fa['getAttribute'](_0x5e7686)-0x1:0x0,_0x4a5f1b=this['_getSuggestionCoords'](_0x10555b),_0x4738f1=_0x4a5f1b[_0x462a34],_0x21fe09=_0x4a5f1b[_0x5068a8];_0x4738f1<=_0xd728d5[_0x647f54]&&_0xd728d5[_0x647f54]+_0x120049<=_0x21fe09&&(_0x10555b['addRange'](_0x3345e0),_0x216d65=!0x0);}return _0x216d65;};_0x2f3023['model']['document']['registerPostFixer'](_0x25a8dc=>{let _0x2af1a3=!0x1;for(const _0x2de3c8 of _0x2f3023['model']['document']['differ']['getChanges']())if('insert'==_0x2de3c8['type']){if('tableRow'==_0x2de3c8['name']){for(const _0x555ce7 of _0x2de3c8['position']['nodeAfter']['getChildren']())_0x2af1a3=_0x2af1a3||_0x4f2cf7(_0x555ce7,_0x25a8dc);}else'tableCell'==_0x2de3c8['name']&&(_0x2af1a3=_0x2af1a3||_0x4f2cf7(_0x2de3c8['position']['nodeAfter'],_0x25a8dc));}return _0x2af1a3;});}['_getSuggestionCoords'](_0xae8d41){return this['_getCoordsForCells'](_0xae8d41['getRanges']()['map'](_0x50ac78=>_0x50ac78['start']['nodeAfter']));}}function Ne(_0x279f6e){return Array['from'](new Set(_0x279f6e)['values']());}class Nt extends _0x1667de{static get['requires'](){return[Ct];}['afterInit'](){const _0x2ee1fa=this['editor'],_0x5e626c=_0x2ee1fa['model']['document']['selection'],_0x31aa70=_0x2ee1fa['locale'];if(!_0x2ee1fa['plugins']['has']('TableEditing'))return;const _0x39f404=_0x2ee1fa['plugins']['get']('TrackChangesEditing'),_0x19c51d=_0x2ee1fa['plugins']['get']('TableUtils'),_0x5dd8e1=_0x2ee1fa['plugins']['get'](Ct);_0x5dd8e1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39f404['enableCommand']('mergeTableCells',()=>{const _0x2536c0=_0x19c51d['getSelectionAffectedTableCells'](_0x2ee1fa['model']['document']['selection']);_0x2ee1fa['model']['change'](()=>{_0x39f404['markMultiRangeBlockFormat'](_0x2536c0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2ee1fa['commands']['get']('mergeTableCells')['on']('execute',(_0x16e55e,_0x2a02f1)=>{_0x2ee1fa['commands']['get']('trackChanges')['value']&&(_0x2a02f1['length']>0x0&&_0x2a02f1[_0x2a02f1['length']-0x1]&&_0x2a02f1[_0x2a02f1['length']-0x1]['forceDefaultExecution']||_0x39f404['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x16e55e['stop']());},{'priority':'highest'});for(const _0x115be0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4dc101=_0x2ee1fa['commands']['get'](_0x115be0);_0x39f404['enableCommand'](_0x115be0,()=>{const _0x133dd7=_0x2ee1fa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x171cdf=>_0x171cdf['is']('element','tableCell')),_0x2decb1=_0x4dc101['value'];_0x2ee1fa['model']['change'](()=>{_0x39f404['markMultiRangeBlockFormat']([_0x133dd7,_0x2decb1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37f541 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x57511d=_0x2ee1fa['commands']['get'](_0x37f541);_0x39f404['enableCommand'](_0x37f541,()=>{const _0x4110b9=_0x19c51d['getSelectionAffectedTableCells'](_0x2ee1fa['model']['document']['selection'])[0x0],_0x3efcc1=_0x4110b9['findAncestor']('table'),{column:_0x233fb1,row:_0x504df0}=_0x19c51d['getCellLocation'](_0x4110b9);let _0x271a1d=[];if('horizontally'==_0x57511d['direction']){const _0x1c34ad=_0x19c51d['createTableWalker'](_0x3efcc1,{'startRow':_0x504df0,'endRow':_0x504df0,'includeAllSlots':!0x0});_0x271a1d=Array['from'](_0x1c34ad)['map'](_0x28a36d=>_0x28a36d['cell']);}else{const _0x26f5c5=_0x19c51d['createTableWalker'](_0x3efcc1,{'column':_0x233fb1,'includeAllSlots':!0x0});_0x271a1d=Array['from'](_0x26f5c5)['map'](_0x37e5ba=>_0x37e5ba['cell']);}_0x2ee1fa['model']['change'](_0x4f7687=>{_0x39f404['markBlockFormat'](_0x4f7687['createRangeOn'](_0x4110b9),{'commandName':_0x37f541,'commandParams':[]},_0x271a1d,_0x37f541);});});}_0x39f404['descriptionFactory']['registerDescriptionCallback'](_0x127f8a=>{if('formatBlock'!=_0x127f8a['type']&&'formatInline'!=_0x127f8a['type'])return;const {data:_0x20bb0}=_0x127f8a;return _0x20bb0&&'mergeTableCells'==_0x20bb0['commandName']?{'type':'format','content':c(_0x31aa70,'*Merge\x20cells*')}:void 0x0;}),_0x39f404['descriptionFactory']['registerDescriptionCallback'](_0x5f4182=>{if('formatBlock'!=_0x5f4182['type']&&'formatInline'!=_0x5f4182['type'])return;const {data:_0x23326d}=_0x5f4182;return _0x23326d?'splitTableCellVertically'==_0x23326d['commandName']?{'type':'format','content':c(_0x31aa70,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x23326d['commandName']?{'type':'format','content':c(_0x31aa70,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x322b63=_0x5dd8e1['_acceptFormatSuggestionCallbackFactory']();for(const _0x2edc95 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39f404['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2edc95,'accept',_0x322b63);for(const _0x288023 of['splitTableCellVertically','splitTableCellHorizontally'])_0x39f404['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x288023,'accept',_0x322b63);_0x39f404['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4a1039=>{_0x2ee1fa['model']['change'](_0x277e43=>{const _0x27b163=Array['from'](_0x5e626c['getRanges']())['map'](_0x4e3815=>_0x112647['fromRange'](_0x4e3815));_0x277e43['setSelection'](_0x4a1039),_0x2ee1fa['commands']['get']('mergeTableCells')['refresh'](),_0x2ee1fa['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x34f94f=_0x27b163['filter'](_0x29b89f=>'$graveyard'!=_0x29b89f['root']['rootName']);_0x34f94f['length']>0x0&&_0x277e43['setSelection'](_0x34f94f);for(const _0x17a927 of _0x27b163)_0x17a927['detach']();});});for(const _0x258cfd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2a5a42=_0x2ee1fa['commands']['get'](_0x258cfd);_0x2a5a42['on']('set:isEnabled',(_0x11cde4,_0x251217,_0x671372)=>{if(_0x671372){const _0x2b8ad3=_0x2ee1fa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x245d94=>_0x245d94['is']('element','tableCell'));this['_areMergableCells'](_0x2a5a42['value'],_0x2b8ad3)||(_0x11cde4['return']=!0x1,_0x11cde4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5369b0=this['editor']['commands']['get']('mergeTableCells'),_0x268b16=this['editor']['plugins']['get']('TableUtils');if(!_0x5369b0['isEnabled'])return!0x1;const _0x14ab7a=_0x268b16['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x46599e of _0x14ab7a)for(const _0x37db79 of _0x14ab7a)if(_0x46599e!=_0x37db79&&!this['_areMergableCells'](_0x46599e,_0x37db79))return!0x1;return!0x0;}['_areMergableCells'](_0x1ac451,_0x3dcd1e){const _0x393857=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40d9ec=this['editor']['model']['createRangeOn'](_0x1ac451),_0x9cb37e=this['editor']['model']['createRangeOn'](_0x3dcd1e),_0x5bb3b0=new Set(),_0x29a562=new Set();for(const _0x3f98e6 of _0x393857['getSuggestions']())if(('insertion'==_0x3f98e6['type']||'deletion'==_0x3f98e6['type']||'mergeTableCells'==_0x3f98e6['subType'])&&_0x3f98e6['isInContent']){for(const _0x28a98c of _0x3f98e6['getRanges']())_0x28a98c['containsRange'](_0x40d9ec,!0x0)&&_0x5bb3b0['add'](_0x3f98e6['type']+':'+_0x3f98e6['author']['id']),_0x28a98c['containsRange'](_0x9cb37e,!0x0)&&_0x29a562['add'](_0x3f98e6['type']+':'+_0x3f98e6['author']['id']);}if(_0x5bb3b0['size']!=_0x29a562['size'])return!0x1;for(const _0x269983 of _0x5bb3b0)if(!_0x29a562['has'](_0x269983))return!0x1;return!0x0;}}class Dt extends _0x1667de{static get['requires'](){return[Ct];}['afterInit'](){const _0x5cf63d=this['editor'];if(!_0x5cf63d['plugins']['has']('TableEditing'))return;const _0x96a21=_0x5cf63d['locale'],_0x465f83=_0x5cf63d['plugins']['get']('TrackChangesEditing');_0x465f83['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x465f83['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x465f83['registerBlockAttribute']('headingRows'),_0x465f83['registerBlockAttribute']('headingColumns'),_0x465f83['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x96a21,'FORMAT_HEADER_ROW')),_0x465f83['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x96a21,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x52bba9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cbc11=this['editor']['plugins']['get']('TableUtils'),_0x8d0c4c=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x33d49f({showActiveMarker:_0x485eef=!0x0,setDataAttribute:_0x478f9f=!0x0}={}){return(_0x217545,_0x4f2739,_0xa86777)=>{const {type:_0x4e3b97,id:_0x5218ff}=_0x52bba9['_splitMarkerName'](_0x4f2739['markerName']),_0x1f3bdf=_0x52bba9['getSuggestion'](_0x5218ff),_0x265c0a=_0x1f3bdf['data'];if('formatBlock'!=_0x1f3bdf['type']||!_0x265c0a||'setTableColumnHeader'!=_0x265c0a['commandName'])return;if(_0x4f2739['item'])return void _0x217545['stop']();if(!_0xa86777['consumable']['consume'](_0x4f2739['markerRange'],_0x217545['name']))return;const _0x3f306f=_0x4f2739['markerRange']['start']['nodeAfter'],_0x4e8fd8=_0x4f2739['markerRange']['end']['nodeBefore'],_0x575f89=_0x3f306f['parent']['parent'],{column:_0x51e19f}=_0x2cbc11['getCellLocation'](_0x3f306f),{column:_0x1639c3}=_0x2cbc11['getCellLocation'](_0x4e8fd8);for(let _0x59c177=_0x51e19f;_0x59c177<=_0x1639c3;_0x59c177++){const _0x47000b=_0x2cbc11['createTableWalker'](_0x575f89,{'column':_0x59c177,'includeAllSlots':!0x1});for(const _0x248637 of _0x47000b){const _0x1cff2d=_0x248637['cell'],_0x1fecd6=_0xa86777['mapper']['toViewElement'](_0x1cff2d);_0xa86777['writer']['addClass']('ck-suggestion-marker-'+_0x4e3b97,_0x1fecd6),_0x478f9f&&_0xa86777['writer']['setAttribute']('data-suggestion',_0x5218ff,_0x1fecd6),_0xa86777['mapper']['bindElementToMarker'](_0x1fecd6,_0x4f2739['markerName']),_0x485eef&&(_0x52bba9['activeMarkers']['includes'](_0x4f2739['markerName'])?_0xa86777['writer']['addClass']('ck-suggestion-marker--active',_0x1fecd6):_0xa86777['writer']['removeClass']('ck-suggestion-marker--active',_0x1fecd6));}}};}_0x52bba9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8d0c4c),_0x52bba9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8d0c4c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x33d49f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x243130,_0xc593d8,_0xf374e3)=>{_0xf374e3['options']['showSuggestionHighlights']&&_0x33d49f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x243130,_0xc593d8,_0xf374e3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x403d62,_0xf6b045,_0x449459)=>{const {type:_0x339372,id:_0x4dcc7f}=_0x52bba9['_splitMarkerName'](_0xf6b045['markerName']),_0x51031a=_0x52bba9['getSuggestion'](_0x4dcc7f),_0x45eb6d=_0x51031a['data'];if('formatBlock'!=_0x51031a['type']||!_0x45eb6d||'setTableColumnHeader'!=_0x45eb6d['commandName'])return;const _0x28c602=_0x449459['mapper']['markerNameToElements'](_0xf6b045['markerName']);if(_0x28c602){for(const _0x4aabb4 of _0x28c602)_0x449459['writer']['removeClass']('ck-suggestion-marker-'+_0x339372,_0x4aabb4),_0x449459['writer']['removeClass']('ck-suggestion-marker--active',_0x4aabb4),_0x449459['writer']['removeAttribute']('data-suggestion',_0x4aabb4),_0x449459['mapper']['unbindElementFromMarkerName'](_0x4aabb4,_0xf6b045['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8082=this['editor'],_0x200344=_0x4b8082['locale'];function _0x395c63(_0x4a3d18){return{'type':'format','content':c(_0x200344,'*Format:*\x20%0',_0x4a3d18)};}_0x4b8082['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5afe40=>{if('formatBlock'!=_0x5afe40['type'])return;const {data:_0x3e4431}=_0x5afe40;if(_0x3e4431){if('setTableRowHeader'==_0x3e4431['commandName']){const _0x515844=_0x3e4431['commandParams'][0x0]['forceValue'];return _0x395c63(c(_0x200344,_0x515844?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3e4431['commandName']){const _0x39526c=_0x3e4431['commandParams'][0x0]['forceValue'];return _0x395c63(c(_0x200344,_0x39526c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x1667de{['afterInit'](){const _0x16cf4b=this['editor'],_0x1aac2a=_0x16cf4b['locale'],_0x3fb39d=_0x16cf4b['plugins']['get']('TrackChangesEditing');function _0xf7a96e(_0x577af8){return{'type':'format','content':''+c(_0x1aac2a,'*Set\x20table\x20type:*\x20%0',_0x577af8)};}_0x16cf4b['plugins']['has']('TableLayout')&&(_0x3fb39d['enableCommand']('insertTableLayout'),_0x3fb39d['enableDefaultAttributesIntegration']('tableType'),_0x3fb39d['registerBlockAttribute']('tableType'),_0x3fb39d['descriptionFactory']['registerElementLabel'](_0x15589c=>_0x15589c['is']('element','table')&&'layout'===_0x15589c['getAttribute']('tableType'),_0x417e97=>c(_0x1aac2a,'ELEMENT_LAYOUT_TABLE',_0x417e97)),_0x3fb39d['descriptionFactory']['registerDescriptionCallback'](_0x38ddc9=>{const {data:_0x5ced7f}=_0x38ddc9;if(_0x5ced7f&&'tableType'==_0x5ced7f['key'])switch(_0x5ced7f['newValue']){case'layout':return _0xf7a96e(c(_0x1aac2a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xf7a96e(c(_0x1aac2a,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x53048a=>[_0x53048a,null]));class $t extends _0x1667de{static get['requires'](){return[Ct];}['afterInit'](){const _0x209e78=this['editor'];if(!_0x209e78['plugins']['has']('TableClipboard'))return;const _0x32b830=_0x209e78['plugins']['get']('TrackChangesEditing'),_0x5223c0=_0x209e78['plugins']['get']('TableUtils'),_0xc51ef8=_0x209e78['plugins']['get'](Ct),_0x2c2727=_0x209e78['plugins']['get']('TableClipboard'),_0x29ec2c=_0x209e78['plugins']['get']('TableSelection'),_0x2084eb=_0x209e78['plugins']['get'](_0x15c7c2);_0xc51ef8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x209e78['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x209e78['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x351563=null,_0x3b012c=!0x1;_0x2084eb['on']('contentInsertion',(_0x43336f,_0x43b70f)=>{_0x3b012c='paste'===_0x43b70f['method'];}),_0x209e78['model']['on']('insertContent',(_0x4bb9f8,_0x1d6147)=>{if(!_0x3b012c&&null===_0x29ec2c['getSelectedTableCells']())return;const [_0x38d35,_0x222bb5]=_0x1d6147,_0x2c7693=_0x1d6147[_0x1d6147['length']-0x1];_0x2c7693&&_0x2c7693['forceDefaultExecution']||_0x32b830['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x49028c,_0x4594b7,_0x20994d,_0x9a61c4,_0x1d642c){if(_0x4594b7&&!_0x4594b7['is']('documentSelection'))return!0x1;const _0x5f39e1=_0x1d642c['getTableIfOnlyTableInContent'](_0x49028c,_0x20994d);if(!_0x5f39e1||!De(_0x5f39e1,void 0x0,_0x9a61c4))return!0x1;const _0xeb764c=_0x9a61c4['getSelectionAffectedTableCells'](_0x20994d['document']['selection']);if(!_0xeb764c['length'])return!0x1;const _0x4b87f4=_0xeb764c[0x0]['findAncestor']('table'),_0x4edfd3=_0x9a61c4['getRowIndexes'](_0xeb764c),_0x429bc2=_0x9a61c4['getColumnIndexes'](_0xeb764c),_0x52810b={'startRow':_0x4edfd3['first'],'endRow':_0x4edfd3['last'],'startColumn':_0x429bc2['first'],'endColumn':_0x429bc2['last']};return 0x1==_0xeb764c['length']&&(_0x52810b['endRow']+=_0x9a61c4['getRows'](_0x5f39e1)-0x1,_0x52810b['endColumn']+=_0x9a61c4['getColumns'](_0x5f39e1)-0x1),De(_0x4b87f4,_0x52810b,_0x9a61c4);}(_0x38d35,_0x222bb5,_0x209e78['model'],_0x5223c0,_0x2c2727)&&(_0x4bb9f8['stop'](),_0x351563={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x209e78['model']['change'](()=>{_0x209e78['model']['insertContent'](_0x1d6147[0x0],_0x1d6147[0x1],_0x1d6147[0x2],{'forceDefaultExecution':!0x0});const _0x9fc73a=_0x2397a2(),{rowInsertionRanges:_0x400bd2,columnInsertionRanges:_0x389121,insertionRanges:_0x28116e,deletionRanges:_0xee61c9,cells:_0x248840}=_0x351563;_0x400bd2['length']&&_0x32b830['markMultiRangeInsertion'](_0x400bd2,'tablePasteRow',{'tablePasteChainId':_0x9fc73a}),_0x389121['length']&&_0x32b830['markMultiRangeInsertion'](_0x389121,'tablePasteColumn',{'tablePasteChainId':_0x9fc73a}),_0x28116e['length']&&(_0x32b830['markMultiRangeInsertion'](_0x28116e,'tablePaste',{'tablePasteChainId':_0x9fc73a,'skipNestingCheck':!0x0}),_0x28116e['forEach'](_0x188eed=>_0x188eed['detach']?.())),_0xee61c9['length']&&(_0x32b830['markMultiRangeDeletion'](_0xee61c9,'tablePaste',{'tablePasteChainId':_0x9fc73a,'skipNestingCheck':!0x0}),_0xee61c9['forEach'](_0x52e0f8=>_0x52e0f8['detach']?.()));const _0x248799=_0x32b830['markMultiRangeBlockFormat'](_0x248840['map'](({element:_0x19d6cd})=>_0x19d6cd),{'formatGroupId':_0x2397a2()},[],'tablePasteCell',{'tablePasteChainId':_0x9fc73a});if(_0x248799){const _0x7475b0=_0x248799['getMarkers'](),_0x34050a=[];for(const {element:_0x9fa4a6,attributes:_0x4d6e18}of _0x248840){if(!_0x4d6e18)continue;const _0x2a66ec=_0x209e78['model']['createRangeOn'](_0x9fa4a6),_0x41cc7b=_0x7475b0['find'](_0x33045a=>_0x33045a['getRange']()['isEqual'](_0x2a66ec));_0x41cc7b&&_0x34050a['push']([_0x41cc7b['name'],_0x4d6e18]);}_0x34050a['length']&&_0x248799['setAttribute']('markerAttributes',Object['fromEntries'](_0x34050a));}_0x351563=null;}));},{'priority':_0x1a62d1['high']+0xa}),_0x2084eb['on']('contentInsertion',()=>{_0x3b012c=!0x1;},{'priority':'lowest'}),_0x209e78['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33cccb,_0xc77013)=>{const [_0x253a40,_0x1e30c6,,_0x133cf5]=_0xc77013;if(!_0x351563)return;_0x33cccb['stop']();const _0xeaaed6=_0x253a40['cell'],_0x3913ac=_0x1e30c6,_0x11c033=Ue(_0xeaaed6),_0x151dc5=Ue(_0x3913ac);_0x33cccb['return']=_0xeaaed6;let _0x1d337b=null,_0x7560e2=null;if(_0x151dc5||_0x11c033){if(_0x11c033&&!_0x151dc5){_0x133cf5['remove'](_0xeaaed6['getChild'](0x0));for(const _0x130476 of Array['from'](_0x3913ac['getChildren']()))_0x133cf5['insert'](_0x130476,_0xeaaed6,'end');const _0x460b74=_0x351563['rowInsertionIndexes']['includes'](_0x253a40['row']),_0x207d05=_0x351563['columnInsertionIndexes']['includes'](_0x253a40['column']);_0x460b74||_0x207d05||(_0x1d337b=_0x112647['fromRange'](_0x133cf5['createRangeIn'](_0xeaaed6)));}else _0x151dc5&&!_0x11c033&&(_0x7560e2=_0x133cf5['createRangeIn'](_0xeaaed6));}else{const _0x2b9c88=_0x133cf5['createElement']('tableCellSuggestion'),_0x28e6e6=_0x133cf5['createElement']('tableCellSuggestion');_0x133cf5['wrap'](_0x133cf5['createRangeIn'](_0xeaaed6),_0x28e6e6),_0x133cf5['insert'](_0x2b9c88,_0xeaaed6,0x0);for(const _0x9bb0c7 of Array['from'](_0x3913ac['getChildren']()))_0x133cf5['insert'](_0x9bb0c7,_0x2b9c88,'end');_0x1d337b=_0x112647['fromRange'](_0x133cf5['createRangeOn'](_0x2b9c88)),_0x7560e2=_0x112647['fromRange'](_0x133cf5['createRangeOn'](_0x28e6e6));}const _0x5518d5=Array['from'](_0x3913ac['getAttributes']())['filter'](([_0x7ab416])=>xe['includes'](_0x7ab416));_0x351563['cells']['push']({'element':_0xeaaed6,'attributes':_0x5518d5['length']?Object['fromEntries'](_0x5518d5):null}),_0x1d337b&&_0x351563['insertionRanges']['push'](_0x1d337b),_0x7560e2&&_0x351563['deletionRanges']['push'](_0x7560e2);},{'priority':'high'}),_0x5223c0['on']('insertColumns',(_0x3125c9,_0x56e1e6)=>{const [_0x115b4e,_0x494c9e={}]=_0x56e1e6;if(!_0x351563)return;const _0x5e6628=_0x494c9e['at']||0x0,_0x1d265b=_0x494c9e['columns']||0x1;_0x351563['columnInsertionIndexes']=new Array(_0x1d265b)['fill'](_0x5e6628)['map']((_0x39991e,_0x5212c0)=>_0x39991e+_0x5212c0);for(const {cell:_0x19e330}of _0x5223c0['createTableWalker'](_0x115b4e,{'startColumn':_0x5e6628,'endColumn':_0x5e6628+_0x1d265b-0x1}))_0x351563['columnInsertionRanges']['push'](_0x209e78['model']['createRangeOn'](_0x19e330));},{'priority':'low'}),_0x5223c0['on']('insertRows',(_0x494485,_0x6b0a1d)=>{const [_0x788540,_0x29d060={}]=_0x6b0a1d;if(!_0x351563)return;const _0x1fa497=_0x29d060['at']||0x0,_0x368879=_0x29d060['rows']||0x1;_0x351563['rowInsertionIndexes']=new Array(_0x368879)['fill'](_0x1fa497)['map']((_0x37e478,_0x297c55)=>_0x37e478+_0x297c55);for(const {cell:_0x37362d}of _0x5223c0['createTableWalker'](_0x788540,{'startRow':_0x1fa497,'endRow':_0x1fa497+_0x368879-0x1}))_0x351563['rowInsertionRanges']['push'](_0x209e78['model']['createRangeOn'](_0x37362d));},{'priority':'low'}),_0x32b830['descriptionFactory']['registerDescriptionCallback'](_0x2a1b2e=>{if(_0x2a1b2e['subType']&&_0x2a1b2e['subType']['startsWith']('tablePaste'))return _0x2a1b2e['previous']?{}:{'type':'insertion','content':c(_0x209e78['locale'],'*Replace\x20table\x20cells*')};});const _0x29a95d=()=>!0x1;for(const _0x2f19a5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x32b830['_suggestionFactory']['registerCustomCallback']('insertion',_0x2f19a5,'join',_0x29a95d),_0x32b830['_suggestionFactory']['registerCustomCallback']('deletion',_0x2f19a5,'join',_0x29a95d),_0x32b830['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f19a5,'join',_0x29a95d);_0x32b830['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x29a95d),_0x32b830['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x58afe2,_0x44c01e,_0x4ea007)=>{const _0x339125=_0x58afe2['map'](_0x4acaed=>_0x4acaed['getContainedElement']())['filter'](_0x2a5b2a=>_0x2a5b2a),_0x439377=new Map(_0x339125['map'](_0x27376f=>[_0x27376f,null]));if(_0x351563){for(const {element:_0x98ced7,attributes:_0x6bcff8}of _0x351563['cells'])_0x6bcff8&&_0x439377['set'](_0x98ced7,_0x6bcff8);}else{if(_0x4ea007&&_0x4ea007['markerAttributes'])for(const [_0x3ce44f,_0xb4ba8b]of Object['entries'](_0x4ea007['markerAttributes'])){const _0x17617a=_0x209e78['model']['markers']['get'](_0x3ce44f),_0x3b41e2=_0x17617a?_0x17617a['getRange']()['getContainedElement']():null;_0x3b41e2&&_0x439377['set'](_0x3b41e2,_0xb4ba8b);}}_0x209e78['model']['change'](_0x4613ec=>{for(const [_0x40ee89,_0x4024ce]of _0x439377)_0x4613ec['setAttributes']({...Oe,..._0x4024ce},_0x40ee89);});});const _0x514796=(_0x26ef81,_0x18a088)=>{_0x32b830['_suggestionFactory']['registerCustomCallback'](_0x26ef81,'tablePaste',_0x18a088,(_0x220e7d,_0x191523,_0x35712c)=>{_0x209e78['model']['change'](_0x413846=>{const _0x23af7b=[];for(const _0x3d13b8 of _0x220e7d){const _0x8f57e5=_0x3d13b8['start']['nodeAfter'];_0x8f57e5['is']('element','tableCellSuggestion')&&_0x23af7b['push'](_0x8f57e5);}_0x32b830['_suggestionFactory']['getSuggestionCallback'](_0x26ef81,null,_0x18a088)(_0x220e7d,_0x191523,_0x35712c);for(const _0x37efcd of _0x23af7b)'$graveyard'!=_0x37efcd['root']['rootName']&&_0x413846['unwrap'](_0x37efcd);});});};_0x514796('insertion','accept'),_0x514796('insertion','discard'),_0x514796('deletion','accept'),_0x514796('deletion','discard'),_0x32b830['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x28732e=>{const _0xe2e949=_0x28732e['map'](_0x231358=>_0x231358['getContainedElement']()),_0x54a213=_0xe2e949[0x0]['findAncestor']('table'),{minRow:_0x29f5c6,maxRow:_0x3d5979}=_0xc51ef8['_getCoordsForCells'](_0xe2e949);_0x5223c0['removeRows'](_0x54a213,{'at':_0x29f5c6,'rows':_0x3d5979-_0x29f5c6+0x1});}),_0x32b830['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x507af1=>{const _0xd3b4f4=_0x507af1['map'](_0x5e9640=>_0x5e9640['getContainedElement']()),_0x193833=_0xd3b4f4[0x0]['findAncestor']('table'),{minColumn:_0x22922f,maxColumn:_0x18b0ee}=_0xc51ef8['_getCoordsForCells'](_0xd3b4f4);_0x5223c0['removeColumns'](_0x193833,{'at':_0x22922f,'columns':_0x18b0ee-_0x22922f+0x1});});const _0x3fea77=(_0x271ac7,_0x45f27c)=>{if(!_0x45f27c['subType']||!_0x45f27c['subType']['startsWith']('tablePaste'))return;const _0x7c273c=_0x45f27c['attributes']['tablePasteChainId'],_0x3cd95f=_0x32b830['getSuggestions']()['filter'](_0xa8faef=>_0xa8faef['isInContent']&&_0xa8faef['attributes']&&_0xa8faef['attributes']['tablePasteChainId']==_0x7c273c);_0x3cd95f['length']&&_0x45f27c['getAllAdjacentSuggestions']()['length']!=_0x3cd95f['length']&&_0x3cd95f['reduce']((_0xc6985b,_0x3810fc)=>(_0xc6985b['next']=_0x3810fc,_0x3810fc['previous']=_0xc6985b,_0x3810fc));};function _0xa47dec(_0x1d7f06,_0x26fa5e=!0x0){const {id:_0x4ddadd,authorId:_0x5a56f6}=_0x32b830['_splitMarkerName'](_0x1d7f06['markerName']),_0xff9db8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x509256=_0x32b830['activeMarkers']['includes'](_0x1d7f06['markerName']);return _0x509256&&_0xff9db8['push']('ck-suggestion-marker--active'),{'classes':_0xff9db8,'attributes':{'data-suggestion':_0x4ddadd,'data-author-id':_0x5a56f6},'priority':_0x509256&&_0x26fa5e?0xbc2:0xbb8};}_0x32b830['on']('suggestionLoaded',_0x3fea77,{'priority':'high'}),_0x32b830['on']('suggestionUnloaded',_0x3fea77,{'priority':'high'}),_0x209e78['model']['document']['registerPostFixer'](()=>{let _0x318c6f=!0x1;const _0x1caf21=Array['from'](_0x209e78['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xdca368,data:_0xf29bf7}of _0x1caf21){const {group:_0x1224d1,type:_0x52264e,id:_0x54aeb4}=_0x32b830['_splitMarkerName'](_0xdca368);if('suggestion'!=_0x1224d1||'deletion'!=_0x52264e||_0xf29bf7['oldRange'])continue;if(!_0x32b830['hasSuggestion'](_0x54aeb4))continue;const _0x2c8c92=_0x32b830['getSuggestion'](_0x54aeb4)['getRanges'](),_0xc48f5d=_0x209e78['plugins']['get']('Users')['me'];for(const _0x5e07ff of _0x32b830['getSuggestions']()){if(!_0x5e07ff['isInContent']||_0x5e07ff['author']!=_0xc48f5d)continue;if('formatBlock'!=_0x5e07ff['type']||'tablePasteCell'!=_0x5e07ff['subType'])continue;if(_0x5e07ff['getRanges']()['every'](_0x380622=>_0x2c8c92['some'](_0x5417f5=>_0x5417f5['containsRange'](_0x380622,!0x0)))){for(const _0x578651 of _0x5e07ff['getAllAdjacentSuggestions']())_0x578651['isInContent']&&(_0x578651['discard'](),_0x318c6f=!0x0);}}}return _0x318c6f;}),_0x209e78['model']['document']['registerPostFixer'](_0x495b8e=>{const _0x20766d=_0x209e78['commands']['get']('redo');if(!_0x20766d||!_0x20766d['_createdBatches']['has'](_0x495b8e['batch']))return!0x1;let _0x34a724=!0x1;const _0x1b3ac9=_0x209e78['plugins']['get']('Users')['me'],_0xf2ff02=_0x209e78['model']['document']['differ']['getChanges'](),_0x5dcbb8=Array['from'](_0x209e78['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x35a0d3,data:_0x1523f2})=>{const {group:_0x21e949,subType:_0x7e7daa,authorId:_0x3275d2}=_0x32b830['_splitMarkerName'](_0x35a0d3);return'suggestion'==_0x21e949&&'tablePaste'==_0x7e7daa&&_0x3275d2==_0x1b3ac9['id']&&!_0x1523f2['oldRange'];});for(const _0x1414a0 of _0xf2ff02){if('insert'!=_0x1414a0['type']||'tableCellSuggestion'!=_0x1414a0['name']||0x1!=_0x1414a0['length'])continue;const _0x56e853=_0x495b8e['createRange'](_0x1414a0['position'],_0x1414a0['position']['getShiftedBy'](0x1));if(!_0x5dcbb8['find'](({data:_0xc1ad6})=>_0xc1ad6['newRange']['isEqual'](_0x56e853))){for(const {name:_0x1653c8,data:_0x2a8645}of _0x5dcbb8)if(_0x56e853['containsRange'](_0x2a8645['newRange'])){_0x495b8e['updateMarker'](_0x1653c8,{'range':_0x56e853}),_0x34a724=!0x0;break;}}}return _0x34a724;}),_0x209e78['model']['document']['registerPostFixer'](_0x24f42e=>{let _0x5946b4=!0x1;const _0x273ba7=_0x209e78['plugins']['get']('Users')['me'],_0xf8bab9=_0x32b830['getSuggestions']()['filter'](_0x206d4a=>_0x206d4a['isInContent']&&_0x206d4a['author']==_0x273ba7),_0x364c90=new Set(),_0x1e6301=new Set();for(const _0x2122fb of _0xf8bab9)if('tablePaste'==_0x2122fb['subType'])for(const _0x5ca5fb of _0x2122fb['getMarkers']()){const _0x2131d4=_0x5ca5fb['getRange']()['getContainedElement']();if(_0x2131d4){if(_0x2131d4['is']('element','tableCellSuggestion')&&Ue(_0x2131d4)){_0x2122fb['removeMarker'](_0x5ca5fb['name']),_0x364c90['add'](_0x2131d4),_0x5946b4=!0x0;const _0x5af278=_0x2131d4['nextSibling'],_0x72c99=_0x2131d4['previousSibling'],_0x6ebb5a=_0x5af278&&_0x5af278['is']('element','tableCellSuggestion'),_0x3e6bac=_0x72c99&&_0x72c99['is']('element','tableCellSuggestion');_0x6ebb5a&&!_0x364c90['has'](_0x5af278)&&_0x1e6301['add'](_0x5af278),_0x3e6bac&&!_0x364c90['has'](_0x72c99)&&_0x1e6301['add'](_0x72c99);}else _0x2131d4['is']('element','paragraph')&&_0x2131d4['isEmpty']&&(_0x2122fb['removeMarker'](_0x5ca5fb['name']),_0x5946b4=!0x0);}}else{if('tablePasteCell'==_0x2122fb['subType']){if(!_0x2122fb['attributes']||!_0x2122fb['attributes']['tablePasteChainId'])continue;const _0x4fb619=_0x2122fb['attributes']['markerAttributes'];if(_0x4fb619&&Object['keys'](_0x4fb619)['length'])continue;const _0x331b34=_0x2122fb['attributes']['tablePasteChainId'];let _0x7ced50=!0x0,_0x845c7d=!0x0;for(const _0x34acda of _0xf8bab9)if(_0x34acda['subType']&&_0x34acda['subType']['startsWith']('tablePaste')){if(!_0x34acda['attributes']['tablePasteChainId']){_0x845c7d=!0x1;break;}if(_0x34acda['id']!=_0x2122fb['id']&&_0x34acda['attributes']['tablePasteChainId']==_0x331b34){_0x7ced50=!0x1;break;}}_0x845c7d&&_0x7ced50&&(_0x2122fb['removeMarkers'](),_0x5946b4=!0x0);}}for(const _0x4ced52 of _0x364c90)_0x24f42e['remove'](_0x4ced52);for(const _0x370d96 of _0x1e6301)_0x24f42e['unwrap'](_0x370d96);return _0x5946b4;}),_0x209e78['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x8bee39=>_0xa47dec(_0x8bee39),'converterPriority':'high'}),_0x209e78['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5c327c,_0x179983)=>_0x179983['options']['showSuggestionHighlights']?_0xa47dec(_0x5c327c,!0x1):null,'converterPriority':'high'});const _0x37d3c7=_0x209e78['editing']['view'];this['listenTo'](_0x37d3c7['document'],'clipboardOutput',(_0x577ca0,_0x391e86)=>{const _0x31973e=[];for(const _0x1256de of _0x37d3c7['createRangeIn'](_0x391e86['content'])['getItems']())_0x1256de['is']('element','suggestion-td')&&_0x31973e['push'](_0x1256de);_0x37d3c7['change'](_0x120651=>{for(const _0x45919d of _0x31973e)_0x120651['move'](_0x120651['createRangeIn'](_0x45919d),_0x120651['createPositionBefore'](_0x45919d)),_0x120651['remove'](_0x45919d);});});}}function Ue(_0x5a0197){if(_0x5a0197['isEmpty'])return!0x0;const _0xcaa209=_0x5a0197['getChild'](0x0);return _0xcaa209['is']('element','paragraph')&&_0xcaa209['isEmpty'];}function De(_0x1276cd,_0x5aa203={},_0x2ad54c){for(const {isAnchor:_0x558e31,cellHeight:_0x55be15,cellWidth:_0x4a4ee8}of _0x2ad54c['createTableWalker'](_0x1276cd,{'includeAllSlots':!0x0,..._0x5aa203}))if(!_0x558e31||0x1!=_0x55be15||0x1!=_0x4a4ee8)return!0x1;return!0x0;}class Bt extends _0x1667de{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x26ed26=this['editor']['plugins']['get']('TrackChangesEditing');_0x26ed26['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x26ed26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x26ed26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x26ed26['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x26ed26['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x26ed26['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b1b11,_0x379687){const _0x31a45b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x590127=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xee991e=_0x379687['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3ce205=_0x590127['getColumnGroupElement'](_0xee991e);let _0x33556f=_0x3ce205?_0x590127['getTableColumnsWidths'](_0x3ce205):null,_0x54d9bc=_0xee991e['getAttribute']('tableWidth')||null;const _0x3c159e=_0x379687['tableWidth']||_0x54d9bc,_0xce725f=_0x379687['columnWidths']||_0x33556f,_0x7be831=this['editor']['plugins']['get']('Users')['me'];for(const _0x339a35 of _0x31a45b['getSuggestions']()){const _0x1e2b49=_0x339a35['getContainedElement']();if('resizeTable'===_0x339a35['subType']&&_0x1e2b49===_0xee991e){_0x339a35['author']!==_0x7be831&&_0x339a35['discard']();const _0x521216=_0x339a35['data']['commandParams'];_0x54d9bc=_0x521216[0x0]['tableWidth'],_0x33556f=_0x521216[0x0]['columnWidths'];break;}}_0x4b1b11({'table':_0xee991e,'tableWidth':_0x3c159e,'columnWidths':_0xce725f}),_0x31a45b['markBlockFormat'](_0xee991e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x54d9bc,'columnWidths':_0x33556f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x160e0b){if('formatBlock'!=_0x160e0b['type']&&'formatInline'!=_0x160e0b['type'])return;const {data:_0x8db26b}=_0x160e0b;if(_0x8db26b&&'resizeTable'===_0x8db26b['formatGroupId']){const _0x96c997='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x96c997)};}}}class Ot extends _0x1667de{['afterInit'](){const _0x2c8133=this['editor'];_0x2c8133['plugins']['has']('Template')&&_0x2c8133['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x1667de{['afterInit'](){const _0xed74ae=this['editor'];if(!_0xed74ae['commands']['get']('insertTableOfContents'))return;_0xed74ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3c2747=_0xed74ae['plugins']['get']('TrackChangesEditing'),_0x3b9fec=_0xed74ae['locale'];_0x3c2747['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3a5d74=>c(_0x3b9fec,'ELEMENT_TABLE_OF_CONTENTS',_0x3a5d74));}}class xt extends _0x1667de{['afterInit'](){const _0x13a8d8=this['editor'];if(!_0x13a8d8['plugins']['has']('Title'))return;const _0x1e73f9=_0x13a8d8['plugins']['get']('TrackChangesEditing');_0x1e73f9['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x13a8d8['locale'],'ELEMENT_TITLE')),_0x13a8d8['model']['document']['registerPostFixer'](_0x2da6a4=>{let _0x5d58bd=!0x1;const _0x3aa302=Array['from'](_0x13a8d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x351dd2,data:_0x6009ff}of _0x3aa302){const {group:_0x2183aa}=_0x1e73f9['_splitMarkerName'](_0x351dd2);if('suggestion'!==_0x2183aa||!_0x6009ff['newRange'])continue;const _0x43bc40=_0x6009ff['newRange'],_0x2fbe2d=_0x43bc40['end']['nodeBefore'];if(!_0x2fbe2d||!_0x2fbe2d['is']('element','title-content'))continue;if(!_0x43bc40['start']['isTouching'](_0x43bc40['end']))continue;const _0x288df4=_0x13a8d8['model']['schema']['getNearestSelectionRange'](_0x43bc40['end'],'forward');if(_0x288df4&&_0x288df4['isCollapsed']){const _0x2c5779=_0x2da6a4['createRange'](_0x43bc40['start'],_0x288df4['start']);_0x2c5779['isEqual'](_0x43bc40)||(_0x2da6a4['updateMarker'](_0x351dd2,{'range':_0x2c5779}),_0x5d58bd=!0x0);}_0x5d58bd||(_0x2da6a4['removeMarker'](_0x351dd2),_0x5d58bd=!0x0);}return _0x5d58bd;});}}class Tt extends _0x1667de{['afterInit'](){const _0x535236=this['editor'],_0x23f160=_0x535236['plugins']['get']('TrackChangesEditing');_0x535236['plugins']['has']('Uploadcare')&&(_0x23f160['enableCommand']('uploadcare'),_0x535236['plugins']['has']('UploadcareImageEdit')&&(_0x23f160['enableCommand']('uploadcareImageEdit'),_0x23f160['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x23f160['registerBlockAttribute']('uploadcareImageId'),_0x23f160['descriptionFactory']['registerDescriptionCallback'](_0x4bc7d1=>{if('attribute'!=_0x4bc7d1['type'])return;const {data:_0x17c27a}=_0x4bc7d1;return _0x17c27a&&'uploadcareImageId'==_0x17c27a['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x1667de{['afterInit'](){const _0x4e14ca=this['editor'],_0x3df9ca=_0x4e14ca['plugins']['get']('TrackChangesEditing');_0x4e14ca['plugins']['has']('UndoEditing')&&(_0x3df9ca['enableCommand']('undo'),_0x3df9ca['enableCommand']('redo'));}}class Ut extends _0x1667de{static get['requires'](){return[Ct];}['afterInit'](){const _0x1f8ffd=this['editor'];if(!_0x1f8ffd['plugins']['has']('TableCaptionEditing'))return;_0x1f8ffd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x1667de{['tableProperties'];['tableCellProperties'];constructor(_0x54d612){super(_0x54d612),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 _0x46c9bd=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x561b1d of this['tableProperties'])_0x46c9bd['enableCommand'](_0x561b1d,(_0xcb8bee,_0x22ac97)=>{const _0x5786d1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x561b1d,[_0x5786d1],this['tableProperties'],'tableProperties',_0xcb8bee,_0x22ac97);});_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x46c9bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4b8801,_0x470008)=>this['handleDiscardAction'](this['tableProperties'],_0x4b8801,_0x470008)),_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3676cd of this['tableCellProperties'])_0x46c9bd['enableCommand'](_0x3676cd,(_0x41b292,_0x35d979)=>{const _0x267341=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3676cd,_0x267341,this['tableCellProperties'],'tableCellProperties',_0x41b292,_0x35d979);});_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x46c9bd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x217fc0,_0x2b6122)=>this['handleDiscardAction'](this['tableCellProperties'],_0x217fc0,_0x2b6122)),_0x46c9bd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x46c9bd['descriptionFactory']['registerDescriptionCallback'](_0x398c2e=>this['handleSuggestionDescription'](_0x398c2e));}['_handlePropertyChange'](_0x1c232a,_0x567f85,_0x107113,_0x551135,_0x3668d8,_0x2c1abf){const _0x5be677=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2c1abf['batch'],()=>{for(const _0x586998 of _0x567f85){if(this['_getSuggestion'](_0x586998,_0x551135))_0x3668d8(_0x2c1abf);else{const _0x49dc95={};for(const _0x4f5917 of _0x107113){const _0x5084ce=_0x586998['getAttribute'](_0x4f5917);void 0x0!==_0x5084ce&&(_0x49dc95[_0x4f5917]=_0x5084ce);}_0x3668d8(_0x2c1abf),_0x5be677['markBlockFormat'](_0x586998,{'commandParams':[_0x49dc95]},[],_0x551135);}}});}['handleDiscardAction'](_0x13854c,_0x6177b0,_0x1e7886){const _0x4754c9=_0x6177b0[0x0]['start']['nodeAfter'],_0x4a745a=_0x1e7886['commandParams'][0x0];this['editor']['model']['change'](_0x48889f=>{for(const _0x5d8c4f of _0x13854c)void 0x0!==_0x4a745a[_0x5d8c4f]?_0x48889f['setAttribute'](_0x5d8c4f,_0x4a745a[_0x5d8c4f],_0x4754c9):_0x48889f['removeAttribute'](_0x5d8c4f,_0x4754c9);});}['handleSuggestionDescription'](_0x10d713){if(_0x10d713['data'])switch(_0x10d713['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'](_0x54809d,_0x4e2bdd){const _0x3c7378=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xab5482 of _0x3c7378['getSuggestions']({'skipNotAttached':!0x0})){const _0x51dc22=_0xab5482['getContainedElement']();if(_0xab5482['subType']===_0x4e2bdd&&_0x51dc22===_0x54809d)return _0xab5482;}return null;}}const u='$elementName';class p extends _0x1667de{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xd58653,_0x4418c8,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14ac2c){super(_0x14ac2c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2fd110,_0x280d83,_0x1c3624,_0x399a9b)=>{this['_model']['change'](()=>{for(const _0x365df9 of[..._0x399a9b,..._0x1c3624])this['_model']['markers']['has'](_0x365df9)&&_0x14ac2c['editing']['reconvertMarker'](_0x365df9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x14ac2c['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(),_0x14ac2c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14ac2c['config']['get']('trackChanges.trackFormatChanges'),_0x14ac2c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14ac2c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x14ac2c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2844dd=this['editor'],_0x3ba6db=(_0x34f52e,_0x27f6d6)=>{if('attribute'!=_0x34f52e)return'ck-suggestion-marker-'+_0x34f52e;const _0x30b4f5=_0x27f6d6['split']('|')[0x0];return this['_isBlockAttribute'](_0x30b4f5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2844dd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4e70b=>{const {id:_0x50f4b6,authorId:_0x1933d9,type:_0x487b21,subType:_0x2af035}=this['_splitMarkerName'](_0x4e70b['markerName']),_0x564b88=['ck-suggestion-marker',_0x3ba6db(_0x487b21,_0x2af035)];let _0x2c3182=0xbb8;return this['activeMarkers']['includes'](_0x4e70b['markerName'])&&(_0x564b88['push']('ck-suggestion-marker--active'),_0x2c3182=0xbc2),'deletion'==_0x487b21&&(_0x2c3182+=0x5),{'classes':_0x564b88,'attributes':{'data-suggestion':_0x50f4b6,'data-author-id':_0x1933d9},'priority':_0x2c3182};}}),_0x2844dd['conversion']['for']('dataDowncast')['add'](_0xcfc660=>{_0xcfc660['on']('addMarker:suggestion',(_0x578f50,_0x3b7f0f,_0x239f6b)=>{if(!_0x239f6b['options']['showSuggestionHighlights'])return;const _0x1f53df=_0x3b7f0f['item'];if(!_0x1f53df)return;const _0x42e0c6=_0x239f6b['mapper']['toViewElement'](_0x1f53df);_0x2844dd['model']['schema']['isObject'](_0x1f53df)&&_0x42e0c6&&!_0x42e0c6['getCustomProperty']('widget')&&_0x42e0c6['is']('containerElement')&&_0x380b84(_0x42e0c6,_0x239f6b['writer']);},{'priority':'high'});}),_0x2844dd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x46370a,_0x1ce4e6)=>{if(!_0x1ce4e6['options']['showSuggestionHighlights'])return null;const {type:_0x1023a5,subType:_0xbc0d48}=this['_splitMarkerName'](_0x46370a['markerName']);return{'classes':['ck-suggestion-marker',_0x3ba6db(_0x1023a5,_0xbc0d48)],'priority':0xbb8};}});const _0x652095=({showActiveMarkers:_0x38cc7e=!0x0,isAttributeSuggestion:_0x2c0a15=!0x1}={})=>(_0x217633,_0x1135d3,_0x544882)=>{if(!_0x1135d3['item'])return;const {id:_0xd777bf,authorId:_0x865c18}=this['_splitMarkerName'](_0x1135d3['markerName']);if(_0x2c0a15){const _0x3944c3=this['_suggestions']['get'](_0xd777bf),_0x402db3=this['_getAttributeKey'](_0x3944c3);if(!this['_isBlockAttribute'](_0x402db3))return;}if(_0x1135d3['item']['is']('selection'))return void _0x544882['consumable']['consume'](_0x1135d3['item'],_0x217633['name']);const _0x7bedb2=_0x544882['mapper']['toViewElement'](_0x1135d3['item']);if(_0x1135d3['item']['is']('element')&&_0x2844dd['model']['schema']['isBlock'](_0x1135d3['item'])&&!_0x7bedb2['getCustomProperty']('addHighlight')){_0x544882['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x7bedb2),_0x544882['writer']['setAttribute']('data-suggestion',_0xd777bf,_0x7bedb2),_0x544882['writer']['setAttribute']('data-author-id',_0x865c18,_0x7bedb2),_0x544882['mapper']['bindElementToMarker'](_0x7bedb2,_0x1135d3['markerName']),_0x38cc7e&&(this['activeMarkers']['includes'](_0x1135d3['markerName'])?_0x544882['writer']['addClass']('ck-suggestion-marker--active',_0x7bedb2):_0x544882['writer']['removeClass']('ck-suggestion-marker--active',_0x7bedb2));for(const _0x3e7934 of _0x2844dd['model']['createRangeIn'](_0x1135d3['item'])['getItems']())_0x544882['consumable']['consume'](_0x3e7934,_0x217633['name']);_0x544882['consumable']['consume'](_0x1135d3['item'],_0x217633['name']);}};_0x2844dd['conversion']['for']('dataDowncast')['add'](_0x234813=>{_0x234813['on']('addMarker:suggestion:formatBlock',(_0x577c66,_0x4057f9,_0x346609)=>{_0x346609['options']['showSuggestionHighlights']&&_0x652095({'showActiveMarkers':!0x1})(_0x577c66,_0x4057f9,_0x346609);},{'priority':'highest'});}),_0x2844dd['conversion']['for']('dataDowncast')['add'](_0x114a13=>{_0x114a13['on']('addMarker:suggestion:attribute',(_0x3dbb1f,_0x3bda18,_0x3cfea3)=>{_0x3cfea3['options']['showSuggestionHighlights']&&_0x652095({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3dbb1f,_0x3bda18,_0x3cfea3);},{'priority':'highest'});}),_0x2844dd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x143b38,_0x4741f1)=>_0x4741f1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x143b38['substr'](0xb)}}),_0x2844dd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x196c4b,{writer:_0x35d708})=>{let _0x2753e6='suggestion:'+_0x196c4b['getAttribute']('suggestion-type')+':'+_0x196c4b['getAttribute']('id');return _0x196c4b['getAttribute']('marker-count')&&(_0x2753e6+=':'+_0x196c4b['getAttribute']('marker-count')),_0x35d708['createElement']('$marker',{'data-name':_0x2753e6});}}),_0x2844dd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2844dd['conversion']['for']('editingDowncast')['add'](_0x599a00=>{_0x599a00['on']('addMarker:suggestion:formatBlock',_0x652095(),{'priority':'high'});}),_0x2844dd['conversion']['for']('editingDowncast')['add'](_0x42d1cb=>{_0x42d1cb['on']('addMarker:suggestion:attribute',_0x652095({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2844dd['conversion']['for']('editingDowncast')['add'](_0x11d98c=>{_0x11d98c['on']('removeMarker:suggestion:formatBlock',(_0x172431,_0x3eefd6,_0x502796)=>{const _0x57e611=_0x502796['mapper']['markerNameToElements'](_0x3eefd6['markerName']);if(_0x57e611){for(const _0x3c0ede of _0x57e611)_0x3c0ede['getCustomProperty']('addHighlight')||(_0x502796['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c0ede),_0x502796['writer']['removeAttribute']('data-suggestion',_0x3c0ede),_0x502796['writer']['removeAttribute']('data-author-id',_0x3c0ede),_0x502796['mapper']['unbindElementFromMarkerName'](_0x3c0ede,_0x3eefd6['markerName']));}},{'priority':'high'});}),_0x2844dd['conversion']['for']('editingDowncast')['add'](_0x368b86=>{_0x368b86['on']('removeMarker:suggestion:attribute',(_0x42ea66,_0x41e775,_0x9cedf4)=>{const _0xbe21ac=_0x9cedf4['mapper']['markerNameToElements'](_0x41e775['markerName']);if(!_0xbe21ac)return;const {id:_0x42b784}=this['_splitMarkerName'](_0x41e775['markerName']),_0xd2f1a7=this['_suggestions']['get'](_0x42b784),_0x2823ba=this['_getAttributeKey'](_0xd2f1a7);if(this['_isBlockAttribute'](_0x2823ba)){for(const _0x59adfa of _0xbe21ac)_0x59adfa['getCustomProperty']('addHighlight')||(_0x9cedf4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59adfa),_0x9cedf4['writer']['removeAttribute']('data-suggestion',_0x59adfa),_0x9cedf4['writer']['removeAttribute']('data-author-id',_0x59adfa),_0x9cedf4['mapper']['unbindElementFromMarkerName'](_0x59adfa,_0x41e775['markerName']));}},{'priority':'high'});}),_0x2844dd['model']['document']['registerPostFixer'](_0x109880=>{let _0x196506=!0x1;const _0x249fc8=Array['from'](_0x2844dd['model']['document']['differ']['getChangedMarkers']()),_0x20e266=new Set();for(const {name:_0x1f5cea,data:_0x2de5c9}of _0x249fc8){const {group:_0x378b80,type:_0x5ca808,subType:_0x1b7f76,id:_0xdfff57}=this['_splitMarkerName'](_0x1f5cea);if('suggestion'!==_0x378b80)continue;const _0x2f383f=this['_suggestions']['get'](_0xdfff57);if(null!=_0x2de5c9['newRange']){'formatInline'==_0x5ca808&&(_0x196506=_0x196506||Jt(_0x2de5c9['newRange'],_0x1f5cea,_0x109880,_0x2844dd['model']['schema']));const _0x3085a5='attribute'==_0x5ca808&&this['_isBlockAttribute'](_0x1b7f76['split']('|')[0x0]);if(_0x2de5c9['newRange']['isCollapsed']||'$graveyard'==_0x2de5c9['newRange']['root']['rootName']||'formatBlock'==_0x5ca808&&!Ht(_0x2de5c9['newRange'])||_0x3085a5&&!Ht(_0x2de5c9['newRange'])||'deletion'==_0x5ca808&&!(!Lt(_0x55fcbf=_0x2de5c9['newRange'])&&!function(_0x14e731){return _0x14e731['start']['parent']==_0x14e731['end']['nodeBefore']&&_0x14e731['start']['isAtEnd'];}(_0x55fcbf)))_0x109880['removeMarker'](_0x1f5cea),_0x196506=!0x0;else{if(!_0x2f383f||!_0x2f383f['isInContent'])continue;if(_0x2de5c9['newRange']&&_0x2de5c9['oldRange']&&_0x2de5c9['newRange']['isEqual'](_0x2de5c9['oldRange']))continue;_0x20e266['add'](_0x2f383f);}}}var _0x55fcbf;return _0x20e266['size']>0x0&&(_0x196506=!!this['_joinWithAdjacentSuggestions'](_0x20e266)||_0x196506),_0x196506;}),_0x2844dd['model']['document']['registerPostFixer'](_0x177897=>{let _0x40e52a=!0x1;for(const _0x31ef76 of _0x2844dd['model']['document']['differ']['getChanges']())if('insert'==_0x31ef76['type'])for(const _0xc3e019 of this['_suggestions']['values']()){if(_0xc3e019['isMultiRange']||!_0xc3e019['isInContent'])continue;const _0x1dc2a5='formatBlock'==_0xc3e019['type'],_0x5e899d=this['_getAttributeKey'](_0xc3e019),_0x50948d=_0x5e899d&&this['_isBlockAttribute'](_0x5e899d);if(!_0x1dc2a5&&!_0x50948d)continue;const _0x4a3ade=_0xc3e019['getFirstRange']();if(_0x4a3ade['start']['parent']!=_0x4a3ade['end']['parent']&&!_0x4a3ade['end']['isAtEnd']){const _0x3dec36=_0x2844dd['model']['createPositionAt'](_0x4a3ade['start']['nodeAfter'],'end'),_0x50197e=_0x2844dd['model']['createRange'](_0x4a3ade['start'],_0x3dec36);_0x177897['updateMarker'](_0xc3e019['getFirstMarker'](),{'range':_0x50197e}),_0x40e52a=!0x0;}}return _0x40e52a;}),_0x2844dd['model']['document']['registerPostFixer'](_0x6d0ec8=>this['_processAttributeChanges'](_0x6d0ec8)),_0x2844dd['model']['document']['registerPostFixer'](_0x229d21=>!_0x229d21['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x229d21)),_0x2844dd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2844dd['model']['document']['on']('change:data',(_0x1e03f6,_0x2cc46f)=>{if(!_0x2cc46f['isLocal']||_0x2cc46f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2dfd9e=_0x2844dd['model']['document']['differ']['getChanges']();if(0x0==_0x2dfd9e['length'])return;const _0x47c89c=[],_0x57500d=_0x2dfd9e['filter'](_0x5d0dea=>'attribute'==_0x5d0dea['type']),_0x221755=_0x2dfd9e['filter'](_0x12a422=>'insert'==_0x12a422['type']&&'$text'!=_0x12a422['name']);for(const _0x56236d of _0x57500d)this['_isRegisteredAttribute'](_0x56236d['attributeKey'])&&_0x47c89c['push']({'key':_0x56236d['attributeKey'],'newValue':_0x56236d['attributeNewValue'],'oldValue':_0x56236d['attributeOldValue'],'range':qt(_0x56236d['range'],_0x2844dd['model'])});for(const _0x427ea6 of _0x221755){if('rename'!=_0x427ea6['action']&&'refresh'!=_0x427ea6['action'])continue;const _0x35f784=zt(_0x427ea6['position']['nodeAfter'],_0x2844dd['model']),_0xbd8cf6=_0x427ea6['before'];'rename'==_0x427ea6['action']&&_0x47c89c['push']({'key':u,'newValue':_0x427ea6['name'],'oldValue':_0xbd8cf6['name'],'range':_0x35f784});for(const [_0x573ffd,_0xaf6373]of _0xbd8cf6['attributes']){if(!this['_isRegisteredAttribute'](_0x573ffd))continue;const _0x4252b7=_0x427ea6['attributes']['get'](_0x573ffd);_0xaf6373!==_0x4252b7&&_0x47c89c['push']({'key':_0x573ffd,'newValue':_0x4252b7,'oldValue':_0xaf6373,'range':_0x35f784});}for(const [_0x2bb200,_0x552d17]of _0x427ea6['attributes'])this['_isRegisteredAttribute'](_0x2bb200)&&(_0xbd8cf6['attributes']['has'](_0x2bb200)||_0x47c89c['push']({'key':_0x2bb200,'newValue':_0x552d17,'oldValue':null,'range':_0x35f784}));}0x0!=_0x47c89c['length']&&_0x2844dd['model']['enqueueChange'](_0x2cc46f,_0xccda04=>{const _0x3fb759=_0x2397a2();for(const {range:_0x56ab56,key:_0xe05d68,oldValue:_0x1dd208,newValue:_0x509942}of _0x47c89c)this['markAttributeChange'](_0x56ab56,_0xe05d68,_0x1dd208,_0x509942,{'groupId':_0x3fb759});this['_reduceExistingSuggestions'](_0xccda04,_0x47c89c);});},{'priority':'lowest'}),_0x2844dd['model']['markers']['on']('update:suggestion',(_0x593e86,_0x1dda14,_0x1c8db7)=>{if(null==_0x1c8db7){const {id:_0x26567d}=this['_splitMarkerName'](_0x1dda14['name']),_0x23d585=this['_suggestions']['get'](_0x26567d);_0x23d585&&_0x23d585['addMarkerName'](_0x1dda14['name']);}}),_0x2844dd['model']['document']['on']('change:data',()=>{const _0xc79f55=Array['from'](_0x2844dd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x56369=>'suggestion'===this['_splitMarkerName'](_0x56369['name'])['group']);if(0x0===_0xc79f55['length'])return;_0xc79f55['sort']((_0x29829b,_0x1561e0)=>{const _0x3f2aff=_0x29829b['data']['oldRange'],_0x1f5d26=_0x1561e0['data']['oldRange'];return null===_0x3f2aff&&null===_0x1f5d26?0x0:null===_0x3f2aff&&null!==_0x1f5d26?-0x1:null!==_0x3f2aff&&null===_0x1f5d26?0x1:_0x3f2aff['start']['isBefore'](_0x1f5d26['start'])?-0x1:0x1;});const _0x1a685d=new Set(),_0x405652=new Set();for(const {name:_0x2e451d,data:_0x348136}of _0xc79f55){const {id:_0x5acff9}=this['_splitMarkerName'](_0x2e451d);if(null===_0x348136['oldRange']){const _0x1e5a14=this['_handleNewSuggestionMarker'](_0x2e451d);_0x405652['add'](_0x1e5a14);}else{const _0x5010c7=this['_suggestions']['get'](_0x5acff9);null!==_0x348136['newRange']||_0x5010c7['isInContent']?(_0x1a685d['add'](_0x5010c7['head']),_0x405652['add'](_0x5010c7)):this['_removeSuggestion'](_0x5010c7);}}_0x405652['size']>0x0&&this['_refreshSuggestionsChain'](_0x405652);for(const _0x3ecfe6 of _0x1a685d)this['fire']('suggestionChanged',_0x3ecfe6);}),_0x2844dd['model']['on']('applyOperation',(_0xcf925f,_0x4c93d3)=>{const _0x43295f=_0x4c93d3[0x0];if(!this['_suggestions']['size'])return;if(!_0x43295f['isDocumentOperation'])return;if(_0x43295f['batch']['isUndo']||!_0x43295f['batch']['isLocal'])return;let _0x5cb8dd,_0x546018;switch(_0x43295f['type']){case'insert':_0x5cb8dd=_0x2844dd['model']['createPositionAt'](_0x43295f['position']),_0x546018=_0x5cb8dd['getShiftedBy'](_0x43295f['howMany']);break;case'split':_0x5cb8dd=_0x2844dd['model']['createPositionAt'](_0x43295f['splitPosition']),_0x546018=_0x2844dd['model']['createPositionAt'](_0x43295f['moveTargetPosition']);break;case'move':_0x5cb8dd=_0x2844dd['model']['createPositionAt'](_0x43295f['targetPosition']),_0x546018=_0x5cb8dd['getShiftedBy'](_0x43295f['howMany']);break;default:return;}const _0x28f421=_0x2844dd['model']['createRange'](_0x5cb8dd,_0x546018);_0x2844dd['model']['change'](()=>{for(const {suggestion:_0x5378c5,meta:_0x98d24}of this['_findSuggestions'](_0x28f421)){if(_0x5378c5['isMultiRange'])continue;if('formatInline'==_0x5378c5['type'])continue;const _0x8f4850=this['_getAttributeKey'](_0x5378c5);if(_0x8f4850&&this['_isBlockAttribute'](_0x8f4850)&&'split'!=_0x43295f['type'])continue;const _0x4faf1c=_0x5378c5['data']&&_0x5378c5['data']['multipleBlocks'];('formatBlock'!=_0x5378c5['type']||'split'==_0x43295f['type']&&!_0x4faf1c)&&(_0x98d24['containsRangeInObject']||'insertion'==_0x5378c5['type']&&_0x98d24['isOwn']||_0x5378c5['getFirstRange']()['containsRange'](_0x28f421)&&this['_breakSuggestionMarker'](_0x5378c5,_0x5cb8dd,_0x546018));}});},{'priority':'lowest'}),_0x2844dd['model']['on']('deleteContent',(_0xc49592,_0x19fa68)=>{const _0x37d3d3=_0x19fa68[0x0],_0x1576f4=_0x19fa68[0x1];if(_0x1576f4&&_0x1576f4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x37d3d3['isCollapsed'])return;const _0x53bb8a=_0x2844dd['model']['schema'],{start:_0x236d19,end:_0x50b8ea}=_0x37d3d3['getFirstRange'](),_0x5ebfbf=_0x236d19['nodeAfter']&&_0x53bb8a['isLimit'](_0x236d19['nodeAfter'])?null:_0x53bb8a['getNearestSelectionRange'](_0x236d19,'forward'),_0x226cd5=_0x50b8ea['nodeBefore']&&_0x53bb8a['isLimit'](_0x50b8ea['nodeBefore'])?null:_0x53bb8a['getNearestSelectionRange'](_0x50b8ea,'backward'),_0x182245=_0x2844dd['model']['createRange'](_0x5ebfbf?_0x5ebfbf['start']:_0x236d19,_0x226cd5?_0x226cd5['end']:_0x50b8ea);_0x2844dd['model']['change'](_0x272590=>{this['markDeletion'](_0x182245);const _0x10a7ce=_0x2844dd['model']['schema']['getNearestSelectionRange'](_0x182245['start']);_0x37d3d3['is']('documentSelection')?_0x272590['setSelection'](_0x10a7ce):_0x37d3d3['setTo'](_0x10a7ce);}),_0xc49592['stop']();},{'priority':_0x1a62d1['normal']+0xa}),_0x2844dd['model']['on']('insertContent',(_0x4847a5,_0x473639)=>{const _0xa5cc23=_0x473639[_0x473639['length']-0x1];_0xa5cc23&&_0xa5cc23['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2844dd['model']['change'](()=>{let _0x18e18a=_0x2844dd['model']['insertContent'](_0x473639[0x0],_0x473639[0x1],_0x473639[0x2],{'forceDefaultExecution':!0x0});if(!_0x18e18a)return;_0x4847a5['return']=_0x18e18a['clone']();const _0x1edfef=_0x18e18a['end']['nodeBefore'],_0x1b4806=_0x2844dd['model']['schema'];_0x1edfef&&_0x1b4806['isBlock'](_0x1edfef)&&!_0x1b4806['isObject'](_0x1edfef)&&(_0x18e18a=_0x2844dd['model']['createRange'](_0x18e18a['start'],_0x2844dd['model']['createPositionAt'](_0x1edfef,'end'))),this['markInsertion'](_0x18e18a);}),_0x4847a5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4206a7=new O(_0x2844dd,this['_suggestions']);_0x2844dd['commands']['add']('acceptSuggestion',_0x4206a7),this['enableCommand']('acceptSuggestion');const _0x4347af=new R(_0x2844dd,this['_suggestions']);_0x2844dd['commands']['add']('discardSuggestion',_0x4347af),this['enableCommand']('discardSuggestion'),_0x2844dd['commands']['add']('acceptAllSuggestions',new x(_0x2844dd,_0x4206a7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2844dd['commands']['add']('discardAllSuggestions',new x(_0x2844dd,_0x4347af,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2844dd['commands']['add']('acceptSelectedSuggestions',new E(_0x2844dd,_0x4206a7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2844dd['commands']['add']('discardSelectedSuggestions',new E(_0x2844dd,_0x4347af,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xe30e22=_0x2844dd['plugins']['get']('CommentsRepository');this['listenTo'](_0xe30e22,'addComment',(_0x1f352e,{threadId:_0x1c2d8e})=>{const _0x1f11e4=this['_suggestions']['get'](_0x1c2d8e);_0x1f11e4&&_0x1f11e4['commentThread']&&0x1===_0x1f11e4['commentThread']['length']&&this['_updateSuggestionData'](_0x1c2d8e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xe30e22,'removeComment',(_0x3894be,{threadId:_0xb85828})=>{const _0x3bca51=this['_suggestions']['get'](_0xb85828);_0x3bca51&&_0x3bca51['commentThread']&&!_0x3bca51['commentThread']['length']&&this['_updateSuggestionData'](_0xb85828,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3dc826){const _0x20052d=_0x5331b6([0x4e,0x58,0x33,0x38,0x52,0x71,0x4b,0x78,0x43,0x53,0x72,0x32,0x5a,0x54,0x64,0x7a,0x41,0x47,0x61,0x37,0x67,0x48,0x68,0x4f,0x59,0x42,0x31,0x44,0x4c,0x51,0x75,0x70,0x6d,0x6c,0x55,0x57,0x77,0x45,0x6f,0x34,0x46,0x36,0x76,0x69,0x35,0x65,0x73,0x39,0x63,0x74,0x6a,0x62,0x66,0x50,0x4d,0x4a,0x30,0x6e,0x56,0x6b,0x49,0x79]),_0xb5971b=0x7818b91e,_0x137a34=0x781fda9e^_0xb5971b,_0x4a08a9=window[_0x5331b6([0x44,0x61,0x74,0x65])][_0x5331b6([0x6e,0x6f,0x77])](),_0x4ffbc8=_0x3dc826[_0x5331b6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3eb371=new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40cb4f=>{_0x4ffbc8[_0x5331b6([0x6f,0x6e,0x63,0x65])](_0x5331b6([0x72,0x65,0x61,0x64,0x79]),_0x40cb4f);}),_0x4d1413={[_0x5331b6([0x6b,0x74,0x79])]:_0x5331b6([0x45,0x43]),[_0x5331b6([0x75,0x73,0x65])]:_0x5331b6([0x73,0x69,0x67]),[_0x5331b6([0x63,0x72,0x76])]:_0x5331b6([0x50,0x2d,0x32,0x35,0x36]),[_0x5331b6([0x78])]:_0x5331b6([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]),[_0x5331b6([0x79])]:_0x5331b6([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]),[_0x5331b6([0x61,0x6c,0x67])]:_0x5331b6([0x45,0x53,0x32,0x35,0x36])},_0xd9fe2e=_0x4ffbc8[_0x5331b6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5331b6([0x67,0x65,0x74])](_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31b1b7(){let _0x23ebd5,_0x51bf0d=null,_0x3c999a=null;try{if(_0xd9fe2e==_0x5331b6([0x47,0x50,0x4c]))return _0x5331b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23ebd5=_0x421b26(),!_0x23ebd5)return _0x5331b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23ebd5[_0x5331b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3c999a=_0x249cf1(_0x23ebd5[_0x5331b6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23ebd5[_0x5331b6([0x6a,0x74,0x69])])),await _0x2be94a()?_0x28a945()?_0x4e5819()?_0x5331b6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfc4bb1()?(_0x23ebd5[_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5331b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x51bf0d=_0x27989d(_0x5331b6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23ebd5[_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5331b6([0x74,0x72,0x69,0x61,0x6c])&&(_0x51bf0d=_0x27989d(_0x5331b6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x338158()):_0x5331b6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5331b6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5331b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2975b0){return _0x5331b6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e5819(){const _0x128857=[_0x5331b6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5331b6([0x74,0x72,0x69,0x61,0x6c])][_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ebd5[_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a08a9/0x3e8:0xe10*_0x137a34;return _0x23ebd5[_0x5331b6([0x65,0x78,0x70])]<_0x128857;}function _0x28a945(){const _0x118f07=_0x23ebd5[_0x5331b6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x118f07)return!0x1;if(_0x118f07[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5331b6([0x2a])))return!0x0;if(_0x118f07[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5331b6([0x54,0x43])))return!0x0;if(_0x118f07[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5331b6([0x52,0x54,0x43]))){if(_0x162d12())return!0x0;if(_0x35bdeb()||_0x2910a5())return!0x0;}return!0x1;}function _0xfc4bb1(){const _0x20fc39=_0x23ebd5[_0x5331b6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20fc39||0x0==_0x20fc39[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21057b}=new URL(window[_0x5331b6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20fc39[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21057b))return!0x0;const _0x26cfde=_0x21057b[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])](_0x5331b6([0x2e]));return _0x20fc39[_0x5331b6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9bed68=>_0x9bed68[_0x5331b6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5331b6([0x2a])))[_0x5331b6([0x6d,0x61,0x70])](_0x36f66f=>_0x36f66f[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])](_0x5331b6([0x2e])))[_0x5331b6([0x73,0x6f,0x6d,0x65])](_0x419f28=>_0x26cfde[_0x5331b6([0x65,0x76,0x65,0x72,0x79])]((_0x3f5d6b,_0x3a43dc)=>_0x419f28[_0x3a43dc]===_0x3f5d6b||_0x419f28[_0x3a43dc]===_0x5331b6([0x2a])));}function _0x338158(){return _0x51bf0d&&_0x3c999a?new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320d7f,_0x45378d)=>{_0x51bf0d[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x320d7f,_0x45378d),_0x3c999a[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x5a6459=>{_0x5a6459!=_0x5331b6([0x56,0x61,0x6c,0x69,0x64])&&_0x320d7f(_0x5a6459);},_0x45378d);}):_0x51bf0d||_0x3c999a||_0x5331b6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x249cf1(_0x4d18c6,_0x192223){return new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cb9e9=>{if(_0x4e5b7a())return _0x3cb9e9(_0x5331b6([0x56,0x61,0x6c,0x69,0x64]));_0x529ebe(),_0x4ffbc8[_0x5331b6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5331b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d532d=!0x1;const _0x114f64=_0x2397a2();function _0x521997(_0x37deed){return!!_0x37deed&&(typeof _0x37deed===_0x5331b6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37deed===_0x5331b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37deed[_0x5331b6([0x74,0x68,0x65,0x6e])]===_0x5331b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37deed[_0x5331b6([0x63,0x61,0x74,0x63,0x68])]===_0x5331b6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4552a2(_0x2bbc3c){_0x341fde(_0x2bbc3c)[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x3dd209=>{if(!_0x3dd209||_0x3dd209[_0x5331b6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5331b6([0x6f,0x6b]))return _0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b1e92(_0x1b9236(_0x114f64+_0x192223))!=_0x3dd209[_0x5331b6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5331b6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x3e7b3c=>(_0x1ab6d4(),_0x3e7b3c),()=>{const _0x286a44=_0x1e29cc();return null==_0x286a44?(_0x1ab6d4(),_0x5331b6([0x56,0x61,0x6c,0x69,0x64])):_0x5331b6(_0x4a08a9-_0x286a44>(0x5c143d1e^_0xb5971b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x3cb9e9)[_0x5331b6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cb9e9(_0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d8919=0x782e579e^_0xb5971b;function _0x1ab6d4(){const _0x4f1589=_0x5331b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b1e92(_0x1b9236(_0x4d18c6)),_0x56e4de=_0x33810e(_0x4b1e92(window[_0x5331b6([0x4d,0x61,0x74,0x68])][_0x5331b6([0x63,0x65,0x69,0x6c])](_0x4a08a9/_0x4d8919)));window[_0x5331b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5331b6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f1589,_0x56e4de);}function _0x1e29cc(){const _0x78d5cd=_0x5331b6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b1e92(_0x1b9236(_0x4d18c6)),_0x1ae2da=window[_0x5331b6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5331b6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x78d5cd);return _0x1ae2da?window[_0x5331b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33810e(_0x1ae2da),0x10)*_0x4d8919:null;}function _0x341fde(_0x23071a){return new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4144f0,_0x2f7b57)=>{_0x23071a[_0x5331b6([0x74,0x68,0x65,0x6e])](_0x4144f0,_0x2f7b57),window[_0x5331b6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f7b57,0x78196dde^_0xb5971b);});}}_0x4ffbc8[_0x5331b6([0x6f,0x6e])](_0x5331b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x229bc9,_0x309b5b)=>{if(_0x309b5b[0x0]!=_0x4d18c6)return _0x3cb9e9(_0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x309b5b[0x1]={..._0x309b5b[0x1],[_0x5331b6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x114f64};},{[_0x5331b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5331b6([0x68,0x69,0x67,0x68])}),_0x4ffbc8[_0x5331b6([0x6f,0x6e])](_0x5331b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45fb3f=>{_0x521997(_0x45fb3f[_0x5331b6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d532d=!0x0,_0x4552a2(_0x45fb3f[_0x5331b6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5331b6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5331b6([0x6c,0x6f,0x77])}),_0x3eb371[_0x5331b6([0x74,0x68,0x65,0x6e])](()=>{_0x5d532d||_0x3cb9e9(_0x5331b6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e5b7a(){return _0x4ffbc8[_0x5331b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5331b6([0x76,0x69,0x65,0x77])][_0x5331b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5331b6([0x61,0x75,0x74,0x6f]);}function _0x529ebe(){_0x4ffbc8[_0x5331b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5331b6([0x76,0x69,0x65,0x77])][_0x5331b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5331b6([0x61,0x75,0x74,0x6f]);}}function _0x27989d(_0x442a17){const _0x3c937c=[new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1772b4=>setTimeout(_0x1772b4,0x781187d2^_0xb5971b)),_0x3eb371[_0x5331b6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36893f=>{let _0x187a86=0x0;_0x4ffbc8[_0x5331b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5331b6([0x6f,0x6e])](_0x5331b6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26367d,_0x365fce)=>{_0x365fce[0x0][_0x5331b6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x187a86++,_0x187a86==(0x7818b8e6^_0xb5971b)&&(_0x36893f(),_0x26367d[_0x5331b6([0x6f,0x66,0x66])]());});}))];return window[_0x5331b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5331b6([0x72,0x61,0x63,0x65])](_0x3c937c)[_0x5331b6([0x74,0x68,0x65,0x6e])](()=>_0x442a17);}async function _0x16eac0(){await _0x3eb371,_0x4ffbc8[_0x5331b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5331b6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf1ba1b,_0x4ffbc8[_0x5331b6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5331b6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf1ba1b,_0x4ffbc8[_0x5331b6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5331b6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x162d12(){return _0x1db2c1(_0x5331b6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x24c5be(_0x5331b6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5331b6([0x73,0x74,0x61,0x74,0x65])]==_0x5331b6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x35bdeb(){return _0x1db2c1(_0x5331b6([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 _0x2910a5(){return _0x1db2c1(_0x5331b6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b97c7(_0x20611e){const _0x20bb89=_0x5ddaa3();_0x4ffbc8[_0x20bb89]=_0x5331b6([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x20611e,_0x20611e!=_0x5331b6([0x56,0x61,0x6c,0x69,0x64])&&_0x16eac0();}function _0x5ddaa3(){const _0x3af429=window[_0x5331b6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5331b6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5331b6([0x6e,0x6f,0x77])]())[_0x5331b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5331b6([0x2e]),'');let _0x55a9d7=_0x5331b6([0x4e]);for(let _0x158196=0x0;_0x158196<_0x3af429[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x158196+=0x2){let _0x2a9b0e=window[_0x5331b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3af429[_0x5331b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158196,_0x158196+0x2));_0x2a9b0e>=_0x20052d[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a9b0e-=_0x20052d[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55a9d7+=_0x20052d[_0x2a9b0e];}return _0x55a9d7;}function _0x421b26(){const _0x285c2e=_0xd9fe2e[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])](_0x5331b6([0x2e]));if(0x3!=_0x285c2e[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd6165a(_0x285c2e[0x1]);function _0xd6165a(_0x5e1b36){const _0x5dbc16=_0x3a6210(_0x5e1b36);return _0x5dbc16&&_0xcec9ed()?_0x5dbc16:null;function _0xcec9ed(){const _0xf7c62f=_0x5dbc16[_0x5331b6([0x6a,0x74,0x69])],_0xa95efb=window[_0x5331b6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf7c62f[_0x5331b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf7c62f[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x320ee8={..._0x5dbc16,[_0x5331b6([0x6a,0x74,0x69])]:_0xf7c62f[_0x5331b6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf7c62f[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x320ee8[_0x5331b6([0x76,0x63])],_0x1b9236(_0x320ee8)==_0xa95efb;}}}async function _0x2be94a(){let _0x21df99=!0x0;try{const _0x405ad5=_0xd9fe2e[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])](_0x5331b6([0x2e])),[_0x19e689,_0x2cc1a1,_0x2a21a7]=_0x405ad5;return _0x3fd15f(_0x19e689),await _0x1d1f30(_0x19e689,_0x2cc1a1,_0x2a21a7),_0x21df99;}catch(_0xcbe364){return!0x1;}function _0x3fd15f(_0x46c7a9){const _0x50a8ac=_0x3a6210(_0x46c7a9);_0x50a8ac&&_0x50a8ac[_0x5331b6([0x61,0x6c,0x67])]==_0x5331b6([0x45,0x53,0x32,0x35,0x36])||(_0x21df99=!0x1);}async function _0x1d1f30(_0x37da39,_0x4994cd,_0x2dab47){const _0x24219a=window[_0x5331b6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5331b6([0x66,0x72,0x6f,0x6d])](_0x959729(_0x2dab47),_0x33d732=>_0x33d732[_0x5331b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x525ad1=new window[(_0x5331b6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5331b6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x37da39+_0x5331b6([0x2e])+_0x4994cd),_0x99d8a1=window[_0x5331b6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5331b6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x99d8a1)return;const _0x34ead7=await _0x99d8a1[_0x5331b6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5331b6([0x6a,0x77,0x6b]),_0x4d1413,{[_0x5331b6([0x6e,0x61,0x6d,0x65])]:_0x5331b6([0x45,0x43,0x44,0x53,0x41]),[_0x5331b6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5331b6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5331b6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x99d8a1[_0x5331b6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5331b6([0x6e,0x61,0x6d,0x65])]:_0x5331b6([0x45,0x43,0x44,0x53,0x41]),[_0x5331b6([0x68,0x61,0x73,0x68])]:{[_0x5331b6([0x6e,0x61,0x6d,0x65])]:_0x5331b6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34ead7,_0x24219a,_0x525ad1)||(_0x21df99=!0x1);}}function _0x3a6210(_0x25fced){return _0x25fced[_0x5331b6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5331b6([0x65,0x79]))?JSON[_0x5331b6([0x70,0x61,0x72,0x73,0x65])](_0x959729(_0x25fced)):null;}function _0x959729(_0x4ddcb4){return window[_0x5331b6([0x61,0x74,0x6f,0x62])](_0x4ddcb4[_0x5331b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5331b6([0x2b]))[_0x5331b6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5331b6([0x2f])));}function _0x1b9236(_0x2cdda){let _0x14487e=0x1505;function _0x933794(_0x3fcd91){for(let _0x556b43=0x0;_0x556b43<_0x3fcd91[_0x5331b6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x556b43++){const _0x1618b6=_0x3fcd91[_0x5331b6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x556b43);_0x14487e=(_0x14487e<<0x5)+_0x14487e+_0x1618b6,_0x14487e&=_0x14487e;}}function _0x31d742(_0x41f16f){Array[_0x5331b6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x41f16f)?_0x41f16f[_0x5331b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x31d742):_0x41f16f&&typeof _0x41f16f==_0x5331b6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5331b6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x41f16f)[_0x5331b6([0x73,0x6f,0x72,0x74])]()[_0x5331b6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x42f71f,_0x1e005c])=>{_0x933794(_0x42f71f),_0x31d742(_0x1e005c);}):_0x933794(window[_0x5331b6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x41f16f));}return _0x31d742(_0x2cdda),_0x14487e>>>0x0;}function _0x4b1e92(_0x47d2a4){return _0x47d2a4[_0x5331b6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5331b6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5331b6([0x30]));}function _0x33810e(_0x449b10){return _0x449b10[_0x5331b6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5331b6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5331b6([0x6a,0x6f,0x69,0x6e])]('');}function _0x1db2c1(_0x571e33){return _0x4ffbc8[_0x5331b6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5331b6([0x68,0x61,0x73])](_0x571e33);}function _0x24c5be(_0x43b191){return _0x4ffbc8[_0x5331b6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5331b6([0x67,0x65,0x74])](_0x43b191);}function _0xf1ba1b(){}function _0x5331b6(_0xdc2750){return _0xdc2750['map'](_0x487302=>String['fromCharCode'](_0x487302))['join']('');}_0x3b97c7(await _0x31b1b7());}(this);}set['adapter'](_0x1dbb51){if(this['_adapter'])throw new _0x2ca3b1('track-changes-adapter-already-set',this);this['_adapter']=_0x1dbb51;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2d4355=!0x1,toJSON:_0x33b62b=!0x1}={}){const _0x1afcc5=[];for(const _0x30b7f8 of this['_suggestions']['values']())_0x2d4355&&!_0x30b7f8['isInContent']||_0x1afcc5['push'](_0x30b7f8);return _0x33b62b?_0x1afcc5['map'](_0x790160=>_0x790160['toJSON']()):_0x1afcc5;}['getSuggestion'](_0x2f829d){const _0x14714a=this['_suggestions']['get'](_0x2f829d);if(!_0x14714a)throw new _0x2ca3b1('track-changes-suggestion-not-found',this);return _0x14714a;}['hasSuggestion'](_0x23e980){return this['_suggestions']['has'](_0x23e980);}['addSuggestionData'](_0xf5651c){const {authorId:_0x361932,id:_0x210292,attributes:_0x1ec1d8}=_0xf5651c,[_0x2048ed,_0x220f5]=_0xf5651c['type']['split'](':'),_0xdc17cb=this['_suggestions']['get'](_0x210292)||this['_createSuggestion'](_0x2048ed,_0x220f5,_0x210292,_0x361932,_0x1ec1d8);if(this['_addThreadToSuggestion'](_0xdc17cb),this['_checkSuggestionCorrectness'](_0xdc17cb,_0x2048ed,_0x220f5||null,_0x361932),_0xdc17cb['createdAt']=_0xf5651c['createdAt'],_0xdc17cb['_isDataLoaded']=!0x0,_0x1ec1d8&&_0x1ec1d8['@external']){const _0x1220de=_0x1ec1d8['@external'],_0x48c051=this['_getExternalAuthor'](_0x1220de['authorName']);_0xdc17cb['authoredAt']=_0x1220de['createdAt'],_0xdc17cb['author']=_0x48c051,_0xdc17cb['isExternal']=!0x0;}else _0xdc17cb['authoredAt']=_0xf5651c['createdAt'];switch(_0xf5651c['data']&&(_0xdc17cb['data']=_0xf5651c['data']),_0xf5651c['attributes']&&(_0xdc17cb['attributes']=_0xf5651c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xdc17cb['_saved']=!0x0),this['_suggestionState']['get'](_0xdc17cb)){case'notReady':this['_suggestionState']['set'](_0xdc17cb,'dataReady');break;case'markerReady':_0xdc17cb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xdc17cb])),this['_refreshSuggestionsChain'](new Set([_0xdc17cb])),this['_suggestionState']['set'](_0xdc17cb,'ready'),this['fire']('suggestionLoaded',_0xdc17cb)):this['_suggestionState']['set'](_0xdc17cb,'removed');}return _0xdc17cb;}['acceptSuggestion'](_0x192773){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x414dd6 of _0x192773['getAllAdjacentSuggestions']())_0x414dd6['accept']();});});}['discardSuggestion'](_0x3b44b7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15e5e2 of _0x3b44b7['getAllAdjacentSuggestions']())_0x15e5e2['discard']();});});}['enableCommand'](_0x3a3f3c,_0x11a21c){const _0x40639e=this['editor']['commands']['get'](_0x3a3f3c);if(!_0x40639e)throw new _0x2ca3b1('track-changes-command-not-found',this,{'commandName':_0x3a3f3c});if(this['_enabledCommands']['has'](_0x40639e))throw new _0x2ca3b1('track-changes-enable-command-twice',this,{'commandName':_0x3a3f3c});this['_enabledCommands']['add'](_0x40639e),_0x11a21c&&_0x40639e['on']('execute',(_0x17ffec,_0x30ec8d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30ec8d['length']>0x0&&_0x30ec8d[_0x30ec8d['length']-0x1]&&_0x30ec8d[_0x30ec8d['length']-0x1]['forceDefaultExecution']?_0x30ec8d['pop']():(_0x17ffec['return']=_0x11a21c((..._0x4e8387)=>_0x40639e['execute'](..._0x4e8387,{'forceDefaultExecution':!0x0}),..._0x30ec8d),_0x17ffec['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a5423){let _0x54c92a,_0x4075d2;const _0x3f6af0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x54c92a=_0x4a5423();}catch(_0x5dcfb9){_0x4075d2=_0x5dcfb9;}return _0x3f6af0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4075d2&&_0x2ca3b1['rethrowUnexpectedError'](_0x4075d2,this),_0x54c92a;}['markInsertion'](_0x3b05a3,_0x233d2f=null,_0x56e956={}){if(_0x3b05a3['isCollapsed'])return null;const _0x1ef284=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x529cd5,meta:_0x3cf60d}of this['_findSuggestions'](_0x3b05a3,'insertion'))if(_0x3cf60d['isOwn']){if(!_0x3cf60d['isNextTo']){if(_0x3cf60d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x529cd5,_0x56e956))continue;return _0x529cd5;}if(Xt(_0x529cd5,_0x56e956))return _0x529cd5;this['_breakSuggestionMarker'](_0x529cd5,_0x3b05a3['start'],_0x3b05a3['end']);break;}if(_0x233d2f==_0x529cd5['subType']&&Xt(_0x529cd5,_0x56e956)){const _0x458e3f=_0x529cd5['getFirstRange']();return _0x458e3f['start']['isEqual'](_0x3b05a3['end'])?this['_setSuggestionRange'](_0x529cd5,this['_model']['createRange'](_0x3b05a3['start'],_0x458e3f['end'])):this['_setSuggestionRange'](_0x529cd5,this['_model']['createRange'](_0x458e3f['start'],_0x3b05a3['end'])),_0x529cd5;}}const _0x4c6611=_0x2397a2(),_0x573de4=_0x1ef284['id'],_0x5954d8=_0x233d2f?'insertion:'+_0x233d2f:'insertion',_0x427fec=this['_setSuggestionData']({'id':_0x4c6611,'type':_0x5954d8,'createdAt':new Date(),'authorId':_0x573de4,'attributes':_0x56e956});return this['_addSuggestionMarker'](_0x5954d8,_0x4c6611,_0x573de4,_0x3b05a3),_0x427fec;}['markMultiRangeInsertion'](_0x135d53,_0x2675c6='multi',_0x4797cb={}){const _0x3fc6c6=this['editor']['plugins']['get']('Users')['me'],_0x3e87f8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2675c6,'join');for(const _0x4aedb2 of this['getSuggestions']())if(_0x4aedb2['author']['id']==_0x3fc6c6['id']&&'insertion'==_0x4aedb2['type']&&_0x4aedb2['subType']==_0x2675c6&&Xt(_0x4aedb2,_0x4797cb)&&(_0x3e87f8(_0x4aedb2['getRanges'](),_0x135d53)||_0x3e87f8(_0x135d53,_0x4aedb2['getRanges']()))){for(const _0x5ecbeb of _0x135d53)_0x4aedb2['addRange'](_0x5ecbeb);return _0x4aedb2;}for(const {suggestion:_0x38f4e9,meta:_0x3af07a}of this['_findSuggestions'](_0x135d53,'insertion')){if(!_0x3af07a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3af07a['containsRangeInObject'])continue;if(!Xt(_0x38f4e9,_0x4797cb))continue;let _0x33a5dc=!0x0;for(const _0x2ff6f9 of _0x38f4e9['getRanges']())for(const _0x866939 of _0x135d53)if(!_0x2ff6f9['containsRange'](_0x866939)){_0x33a5dc=!0x1;break;}if(_0x33a5dc)return _0x38f4e9;}const _0x5e5ade=_0x2397a2(),_0x3746b3=_0x3fc6c6['id'],_0x406b8a='insertion:'+_0x2675c6,_0x29c236=this['_setSuggestionData']({'id':_0x5e5ade,'type':_0x406b8a,'createdAt':new Date(),'authorId':_0x3746b3,'attributes':_0x4797cb});for(const _0xc17228 of _0x135d53)this['_addSuggestionMarker'](_0x406b8a,_0x5e5ade,_0x3746b3,_0xc17228,o['getMultiRangeId']());return _0x29c236;}['markInlineFormat'](_0x555eea,_0x5c34a3,_0x3fecce=null,_0x4e82ec={}){if(_0x3fecce=_0x3fecce||Kt(_0x5c34a3),_0x555eea['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x43fd67=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3fecce,'accept');return this['forceDefaultExecution'](()=>_0x43fd67([_0x555eea],_0x5c34a3,_0x4e82ec)),null;}const _0x439aee=this['editor']['plugins']['get']('Users')['me'],_0x5351ab=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x57ac29,meta:_0x42ea00}of this['_findSuggestions'](_0x555eea,'insertion'))_0x42ea00['isOwn']&&!_0x42ea00['isInsideObject']&&_0x5351ab['push'](..._0x57ac29['getRanges']());}const _0xe0cbaa=function(_0x2e18d0,_0x5987bb){const _0x4f3686=[];for(const _0x21273b of _0x5987bb){const _0xb184d4=_0x2e18d0['getIntersection'](_0x21273b);_0xb184d4&&_0x4f3686['push'](_0xb184d4);}return _0x4f3686;}(_0x555eea,_0x5351ab),_0x2fddc0=function(_0x3e6e86,_0x3168aa){const _0x35b67b=[_0x3e6e86];for(const _0x43dd02 of _0x3168aa){let _0x7cba35=0x0;for(;_0x7cba35<_0x35b67b['length'];){const _0xa91ad6=_0x35b67b[_0x7cba35]['getDifference'](_0x43dd02);_0x35b67b['splice'](_0x7cba35,0x1,..._0xa91ad6),_0x7cba35+=_0xa91ad6['length'];}}return _0x35b67b;}(_0x555eea,_0x5351ab);_0xe0cbaa['length']&&this['_model']['change'](()=>{for(const _0x1d460f of _0xe0cbaa){const _0x2751de=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3fecce,'accept');this['forceDefaultExecution'](()=>_0x2751de([_0x1d460f],_0x5c34a3,_0x4e82ec));}});for(const _0xe95491 of _0x2fddc0){let _0x3e68ea=null,_0x573547=_0xe95491['start'],_0x54762d=_0xe95491['end'];for(const {suggestion:_0x5da356,meta:_0x337a40}of this['_findSuggestions'](_0xe95491,'formatInline')){if(!_0x337a40['isOwn'])continue;if(_0x5da356['subType']!=_0x3fecce)continue;if(!Xt(_0x5da356,_0x4e82ec))continue;const _0x3e07db=_0x5da356['getFirstRange']();if(_0x3e07db['containsRange'](_0xe95491,!0x0))return null;_0x573547=_0x573547['isBefore'](_0x3e07db['start'])?_0x573547:_0x3e07db['start'],_0x54762d=_0x54762d['isAfter'](_0x3e07db['end'])?_0x54762d:_0x3e07db['end'],_0x3e68ea?_0x3e07db['start']['isBefore'](_0x3e68ea['getFirstRange']()['start'])?(_0x3e68ea['removeMarkers'](),_0x3e68ea=_0x5da356):_0x5da356['removeMarkers']():_0x3e68ea=_0x5da356;}const _0x4f8e57=this['_model']['createRange'](_0x573547,_0x54762d);if(_0x3e68ea)this['_setSuggestionRange'](_0x3e68ea,_0x4f8e57);else{const _0x3332b0=_0x2397a2(),_0x83651a=_0x439aee['id'];this['_setSuggestionData']({'id':_0x3332b0,'type':'formatInline:'+_0x3fecce,'data':_0x5c34a3,'createdAt':new Date(),'authorId':_0x83651a,'attributes':_0x4e82ec}),this['_addSuggestionMarker']('formatInline:'+_0x3fecce,_0x3332b0,_0x83651a,_0x4f8e57);}}return null;}['markBlockFormat'](_0x44c9f8,_0x5b9a1b,_0x3e620b=[],_0x52c617=null,_0x321d93={}){_0x5b9a1b['formatGroupId']||(_0x5b9a1b['formatGroupId']=_0x5b9a1b['commandName']),_0x5b9a1b['multipleBlocks']=_0x44c9f8['is']('range'),_0x52c617=_0x52c617||Kt(_0x5b9a1b);const _0x3eb610=_0x3e620b['map'](_0x5bf22f=>zt(_0x5bf22f,this['_model'])),_0x4256e2=_0x44c9f8['is']('range')?_0x44c9f8:zt(_0x44c9f8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x312557=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52c617,'accept');return this['forceDefaultExecution'](()=>_0x312557([_0x4256e2],_0x5b9a1b,_0x321d93)),null;}_0x3eb610['push'](_0x4256e2);let _0x10b566=!0x0;for(const _0x59665f of _0x3eb610)if(!this['_rangeIsInLocalUserInsertion'](_0x59665f)){_0x10b566=!0x1;break;}if(_0x10b566&&'always'!==this['_trackFormatChanges']){const _0x4804a1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x52c617,'accept');return this['forceDefaultExecution'](()=>_0x4804a1([_0x4256e2],_0x5b9a1b,_0x321d93)),null;}let _0x348f8b=null,_0x3d61d4=_0x4256e2['start'],_0x1bf54a=_0x4256e2['end'];for(const {suggestion:_0x590c40,meta:_0x52f4c7}of this['_findSuggestions'](_0x4256e2,'formatBlock')){if(!_0x52f4c7['isOwn'])continue;if(_0x52f4c7['isNextTo']||_0x52f4c7['containsRangeInObject']||_0x52f4c7['isInsideObject'])continue;if(_0x590c40['data']['formatGroupId']!=_0x5b9a1b['formatGroupId'])continue;if(!Xt(_0x590c40,_0x321d93))continue;const _0xea4909=_0x590c40['getFirstRange']();if(_0x590c40['subType']==_0x52c617){if(_0xea4909['containsRange'](_0x4256e2,!0x0))return null;_0x3d61d4=_0x3d61d4['isBefore'](_0xea4909['start'])?_0x3d61d4:_0xea4909['start'],_0x1bf54a=_0x1bf54a['isAfter'](_0xea4909['end'])?_0x1bf54a:_0xea4909['end'],_0x348f8b?_0xea4909['start']['isBefore'](_0x348f8b['getFirstRange']()['start'])?(_0x348f8b['removeMarkers'](),_0x348f8b=_0x590c40):_0x590c40['removeMarkers']():_0x348f8b=_0x590c40;}else{const _0x2a1c0f=_0x4256e2['getIntersection'](_0xea4909);this['_cutOutSuggestionMarker'](_0x590c40,_0x2a1c0f);}}const _0x58f3e4=this['editor']['plugins']['get']('Users')['me'],_0x3a28d8=_0x2397a2(),_0x136caa=_0x58f3e4['id'];if(_0x348f8b)return this['_setSuggestionRange'](_0x348f8b,this['_model']['createRange'](_0x3d61d4,_0x1bf54a)),_0x348f8b;{const _0x2b8a9d=this['_setSuggestionData']({'id':_0x3a28d8,'type':'formatBlock:'+_0x52c617,'data':_0x5b9a1b,'createdAt':new Date(),'authorId':_0x136caa,'attributes':_0x321d93});return this['_addSuggestionMarker']('formatBlock:'+_0x52c617,_0x3a28d8,_0x136caa,this['_model']['createRange'](_0x3d61d4,_0x1bf54a)),_0x2b8a9d;}}['markMultiRangeBlockFormat'](_0x40aaa3,_0x3ff1cf,_0x5b701f=[],_0x414ce2=null,_0x4baff6={}){_0x3ff1cf['formatGroupId']||(_0x3ff1cf['formatGroupId']=_0x3ff1cf['commandName']);const _0x361ec9=_0x40aaa3[0x0];_0x3ff1cf['multipleBlocks']=_0x361ec9['is']('range'),_0x414ce2=_0x414ce2||Kt(_0x3ff1cf);const _0x3e7f13=_0x5b701f['map'](_0x1150b6=>zt(_0x1150b6,this['_model'])),_0x7b4df7=_0x361ec9['is']('range')?_0x40aaa3:_0x40aaa3['map'](_0xdfa3f0=>zt(_0xdfa3f0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3beecc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x414ce2,'accept');return this['forceDefaultExecution'](()=>_0x3beecc(_0x7b4df7,_0x3ff1cf,_0x4baff6)),null;}_0x3e7f13['push'](..._0x7b4df7);let _0xddc709=!0x0;for(const _0x3b9216 of _0x3e7f13)if(!this['_rangeIsInLocalUserInsertion'](_0x3b9216)){_0xddc709=!0x1;break;}if(_0xddc709&&'always'!==this['_trackFormatChanges']){const _0x4f7ea8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x414ce2,'accept');return this['forceDefaultExecution'](()=>_0x4f7ea8(_0x7b4df7,_0x3ff1cf,_0x4baff6)),null;}const _0x13196d=this['editor']['plugins']['get']('Users')['me'];for(const _0x1aad8b of this['getSuggestions']()){if(_0x1aad8b['author']['id']!=_0x13196d['id'])continue;if('formatBlock'!=_0x1aad8b['type']||_0x1aad8b['data']['formatGroupId']!=_0x3ff1cf['formatGroupId'])continue;if(!Xt(_0x1aad8b,_0x4baff6))continue;const _0x11e5fd=_0x1aad8b['subType']==_0x414ce2;for(let _0xd3c003=0x0;_0xd3c003<_0x7b4df7['length'];_0xd3c003++){const _0x307c19=_0x7b4df7[_0xd3c003];for(const _0x4fa2dd of _0x1aad8b['getMarkers']()){const _0x72e708=_0x4fa2dd['getRange']();if(_0x307c19['isEqual'](_0x72e708)){_0x11e5fd?(_0x7b4df7['splice'](_0xd3c003,0x1),_0xd3c003--):_0x1aad8b['removeMarker'](_0x4fa2dd['name']);break;}}}}if(0x0==_0x7b4df7['length'])return null;const _0x400646=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x414ce2,'join');for(const _0x40e83d of this['getSuggestions']())if(_0x40e83d['author']['id']==_0x13196d['id']&&'formatBlock'==_0x40e83d['type']&&_0x40e83d['data']['formatGroupId']==_0x3ff1cf['formatGroupId']&&_0x40e83d['subType']==_0x414ce2&&Xt(_0x40e83d,_0x4baff6)&&(_0x400646(_0x40e83d['getRanges'](),_0x7b4df7)||_0x400646(_0x7b4df7,_0x40e83d['getRanges']()))){for(const _0x5d781e of _0x7b4df7)_0x40e83d['addRange'](_0x5d781e);return _0x40e83d;}const _0x3a8670=_0x2397a2(),_0x1a0b41=_0x13196d['id'],_0x4e56ef='formatBlock:'+_0x414ce2,_0x2d12a3=this['_setSuggestionData']({'id':_0x3a8670,'type':_0x4e56ef,'data':_0x3ff1cf,'createdAt':new Date(),'authorId':_0x1a0b41,'attributes':_0x4baff6});for(const _0x43d20a of _0x7b4df7)this['_addSuggestionMarker'](_0x4e56ef,_0x3a8670,_0x1a0b41,_0x43d20a,o['getMultiRangeId']());return _0x2d12a3;}['markDeletion'](_0x527462,_0x3257cb=null,_0x40e270={}){if(_0x527462['isCollapsed'])return null;const _0x4621e4=this['editor']['plugins']['get']('Users')['me'],_0x1b61aa=new _0x112647(_0x527462['start'],_0x527462['end']);for(const {suggestion:_0x1acde8,meta:_0x2cc987}of this['_findSuggestions'](_0x1b61aa,'insertion'))if(_0x2cc987['isOwn']&&!_0x2cc987['isNextTo']){if(_0x1acde8['isMultiRange']){const _0x38a8b5=_0x1acde8['getRanges']()['filter'](_0x364863=>'$graveyard'!=_0x364863['root']['rootName']);_0x38a8b5['every'](_0x18891a=>_0x1b61aa['containsRange'](_0x18891a,!0x0))&&_0x1acde8['discard']();if(_0x38a8b5['some'](_0x1b5448=>_0x1b5448['containsRange'](_0x1b61aa,!0x0))){const _0x29bf13=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3257cb,'accept');return this['forceDefaultExecution'](()=>_0x29bf13([_0x1b61aa],null,_0x40e270)),null;}}else{const _0x3f68c4=_0x1b61aa['getIntersection'](_0x1acde8['getFirstRange']());null!==_0x3f68c4&&_0x1acde8['_onDiscard']([_0x3f68c4],null,_0x40e270);}}if(_0x1b61aa['detach'](),_0x1b61aa['isCollapsed']||'$graveyard'==_0x1b61aa['root']['rootName'])return null;let _0x286bc7=null,_0x2fcb98=_0x1b61aa['start'],_0x67ce63=_0x1b61aa['end'];const _0x51aa7d=this['_findSuggestions'](_0x1b61aa,'deletion');for(const {suggestion:_0xd9def0,meta:_0x46dcfb}of _0x51aa7d){const _0x2176ae=this['_model']['createRange'](_0x2fcb98,_0x67ce63);if(_0x46dcfb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46dcfb['containsRangeInObject']&&!_0x46dcfb['isInsideObject'])){if(_0xd9def0['isMultiRange']){if(!Xt(_0xd9def0,_0x40e270))continue;let _0x4e27e4=!0x0;for(const _0x18c178 of _0xd9def0['getRanges']()){if(_0x18c178['containsRange'](_0x2176ae,!0x0))return _0xd9def0;_0x2176ae['containsRange'](_0x18c178)||(_0x4e27e4=!0x1);}_0x4e27e4&&_0xd9def0['discard']();}else{const _0x5c64e5=_0xd9def0['getFirstRange']();if(_0x5c64e5['containsRange'](_0x2176ae,!0x0))return _0xd9def0;if(!Xt(_0xd9def0,_0x40e270)){_0x2176ae['containsRange'](_0x5c64e5)?_0xd9def0['removeMarkers']():_0x5c64e5['containsPosition'](_0x2fcb98)?_0x2fcb98=_0x5c64e5['end']:_0x5c64e5['containsPosition'](_0x67ce63)&&(_0x67ce63=_0x5c64e5['start']);continue;}_0x2fcb98=_0x2fcb98['isBefore'](_0x5c64e5['start'])?_0x2fcb98:_0x5c64e5['start'],_0x67ce63=_0x67ce63['isAfter'](_0x5c64e5['end'])?_0x67ce63:_0x5c64e5['end'],_0x40e270=Object['assign']({},_0xd9def0['attributes']),_0x286bc7?_0x5c64e5['start']['isBefore'](_0x286bc7['getFirstRange']()['start'])?(_0x286bc7['removeMarkers'](),_0x286bc7=_0xd9def0):_0xd9def0['removeMarkers']():_0x286bc7=_0xd9def0;}}}if(_0x286bc7)return this['_setSuggestionRange'](_0x286bc7,this['_model']['createRange'](_0x2fcb98,_0x67ce63)),_0x286bc7;{const _0x4239bb=_0x2397a2(),_0x27a803=this['_model']['createRange'](_0x2fcb98,_0x67ce63),_0x1d9e1d=_0x4621e4['id'],_0x527ee2=_0x3257cb?'deletion:'+_0x3257cb:'deletion',_0x36c5b7=this['_setSuggestionData']({'id':_0x4239bb,'type':_0x527ee2,'createdAt':new Date(),'authorId':_0x1d9e1d,'attributes':_0x40e270});return this['_addSuggestionMarker'](_0x527ee2,_0x4239bb,_0x1d9e1d,_0x27a803),_0x36c5b7;}}['markMultiRangeDeletion'](_0x59ddf1,_0x334c26='multi',_0x5cd153={}){const _0x5e67f4=this['editor']['plugins']['get']('Users')['me'],_0x628b47=_0x59ddf1['map'](_0x37fa48=>new _0x112647(_0x37fa48['start'],_0x37fa48['end'])),_0x23a3c6=new Set();for(const {suggestion:_0x49276b,meta:_0x211cb0}of this['_findSuggestions'](_0x628b47,'insertion'))_0x211cb0['isOwn']&&!_0x211cb0['isNextTo']&&_0x23a3c6['add'](_0x49276b);for(const _0x3b199b of _0x23a3c6)if(_0x3b199b['isMultiRange']){const _0x18ee98=_0x3b199b['getRanges']();(!_0x3b199b['attributes']||!_0x3b199b['attributes']['skipNestingCheck'])&&(_0x18ee98['every'](_0x10c681=>_0x628b47['some'](_0x28eef0=>_0x28eef0['containsRange'](_0x10c681,!0x0)))&&_0x3b199b['discard']());if(_0x628b47['every'](_0xf74ae6=>_0x18ee98['some'](_0x347b61=>_0x347b61['containsRange'](_0xf74ae6,!0x0)))){const _0x4a334a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x334c26,'accept');return this['forceDefaultExecution'](()=>_0x4a334a(_0x59ddf1,null,_0x5cd153)),null;}}else{const _0x313f9c=_0x3b199b['getFirstRange']();_0x628b47['some'](_0x1bf513=>_0x1bf513['containsRange'](_0x313f9c,!0x0))&&_0x3b199b['discard']();if(_0x628b47['every'](_0x38d881=>_0x313f9c['containsRange'](_0x38d881,!0x0))){const _0x19a8c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x334c26,'accept');return this['forceDefaultExecution'](()=>_0x19a8c0(_0x628b47,null,_0x5cd153)),null;}}const _0x1fec83=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x334c26,'join');let _0x1b39ec=null;for(const _0x457186 of this['getSuggestions']())if(_0x457186['author']['id']==_0x5e67f4['id']&&_0x457186['isInContent']&&'deletion'==_0x457186['type']&&_0x457186['subType']==_0x334c26&&Xt(_0x457186,_0x5cd153)&&(_0x1fec83(_0x457186['getRanges'](),_0x628b47)||_0x1fec83(_0x628b47,_0x457186['getRanges']()))){if(_0x1b39ec){if(_0x457186['commentThread']&&_0x457186['commentThread']['length'])continue;for(const _0x192840 of _0x457186['getRanges']())_0x1b39ec['isIntersectingWithRange'](_0x192840)||_0x1b39ec['addRange'](_0x192840);_0x457186['removeMarkers']();}else{_0x1b39ec=_0x457186;for(const _0x3d0e42 of _0x628b47)_0x457186['isIntersectingWithRange'](_0x3d0e42)||_0x457186['addRange'](_0x3d0e42);}}if(_0x1b39ec)return _0x1b39ec;_0x23a3c6['clear']();for(const {suggestion:_0x3d568d,meta:_0x4a0c89}of this['_findSuggestions'](_0x628b47,'deletion'))_0x4a0c89['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a0c89['containsRangeInObject']&&!_0x4a0c89['isInsideObject'])&&Xt(_0x3d568d,_0x5cd153)&&_0x23a3c6['add'](_0x3d568d);for(const _0x39cc94 of _0x23a3c6){const _0x163a36=_0x39cc94['getRanges']();if(!_0x5cd153||!_0x5cd153['skipNestingCheck']){if(_0x628b47['every'](_0x4cd46d=>_0x163a36['some'](_0x1e9ecc=>_0x1e9ecc['containsRange'](_0x4cd46d,!0x0))))return _0x39cc94;}(!_0x39cc94['attributes']||!_0x39cc94['attributes']['skipNestingCheck'])&&(_0x163a36['every'](_0x51e012=>_0x628b47['some'](_0x11998a=>_0x11998a['containsRange'](_0x51e012,!0x0)))&&_0x39cc94['discard']());}const _0x172b2d=_0x2397a2(),_0x1d9388=_0x5e67f4['id'],_0x5beb75='deletion:'+_0x334c26,_0x2c5468=this['_setSuggestionData']({'id':_0x172b2d,'type':_0x5beb75,'createdAt':new Date(),'authorId':_0x1d9388,'attributes':_0x5cd153});for(const _0x40b86d of _0x628b47)_0x40b86d['detach'](),_0x40b86d['isCollapsed']||'$graveyard'==_0x40b86d['root']['rootName']||this['_addSuggestionMarker'](_0x5beb75,_0x172b2d,_0x1d9388,_0x40b86d,o['getMultiRangeId']());return _0x2c5468;}['markAttributeChange'](_0x157474,_0x27d251,_0x2398a2,_0x13616f,_0x5aec5e){if(_0x157474['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x71309d=this['editor']['plugins']['get']('Users')['me']['id'],_0x126627=Array['from'](this['_suggestions']['values']())['filter'](_0x22f795=>'attribute'==_0x22f795['type']&&_0x22f795['data']['key']==_0x27d251&&_0x22f795['isIntersectingWithRange'](_0x157474));if('default'===this['_trackFormatChanges']){const _0x4ce68d=this['_findSuggestions'](_0x157474,'insertion')['filter'](({meta:_0x789b89})=>_0x789b89['isOwn']&&!_0x789b89['isInsideObject']&&!_0x789b89['isNextTo'])['map'](({suggestion:_0x77d512})=>_0x77d512);_0x126627['unshift'](..._0x4ce68d);}const _0x11afa9=new Map([[_0x157474,_0x2398a2]]);for(const _0x19d2a1 of _0x126627){const _0x2c1566='attribute'==_0x19d2a1['type']?_0x19d2a1['data']['oldValue']:void 0x0,_0x5355ad=_0x19d2a1['getFirstRange'](),_0x283273=Array['from'](_0x11afa9['keys']())['find'](_0x1bc47e=>_0x1bc47e['isIntersecting'](_0x5355ad));if(!_0x283273)continue;const _0x294600=_0x283273['getDifference'](_0x5355ad);this['_isBlockAttribute'](_0x27d251)&&'insertion'==_0x19d2a1['type']&&0x0!=_0x294600['length']||(_0x11afa9['delete'](_0x283273),_0x294600['forEach'](_0x4d4981=>{_0x11afa9['set'](_0x4d4981,_0x2398a2);}),'insertion'!=_0x19d2a1['type']&&_0x2c1566!=_0x13616f&&_0x11afa9['set'](_0x283273['getIntersection'](_0x5355ad),_0x2c1566));}const _0x46b5fd=[];for(const [_0x4fb25b,_0x1a7e77]of _0x11afa9){const _0x39d405=_0x2397a2(),_0x52cc18={'key':_0x27d251,'oldValue':_0x1a7e77,'newValue':_0x13616f};_0x27d251['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':_0x27d251});const _0xd12937=('attribute:'+(_0x27d251+'|'+Kt({'newValue':_0x13616f})))['substring'](0x0,0x3c),_0x37ea93=this['_setSuggestionData']({'id':_0x39d405,'type':_0xd12937,'data':_0x52cc18,'createdAt':new Date(),'authorId':_0x71309d,'attributes':_0x5aec5e});_0x46b5fd['push'](_0x37ea93),this['_addSuggestionMarker'](_0xd12937,_0x39d405,_0x71309d,_0x4fb25b);}return _0x46b5fd;}['enableDefaultAttributesIntegration'](_0x265b94){this['enableCommand'](_0x265b94,(_0x40203f,..._0x24a751)=>{this['_recordAttributeChanges'](()=>{_0x40203f(..._0x24a751);});});}['registerBlockAttribute'](_0x52d97f){this['_blockAttributeKeys']['add'](_0x52d97f);}['registerInlineAttribute'](_0x55739b){this['_inlineAttributeKeys']['add'](_0x55739b);}['_getAttributeKey'](_0x44772f){return'attribute'==_0x44772f['type']?_0x44772f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2e442b,_0x3864b2){const _0x19ec88=_0x2e442b['getFirstMarker']();this['_model']['change'](_0x41b3e3=>{_0x41b3e3['updateMarker'](_0x19ec88,{'range':_0x3864b2});});}['_addThreadToSuggestion'](_0x3a58ea){const _0x20dcbb=_0x3a58ea['id'],_0x12e195=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x20dcbb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x12e195,'threadId':_0x20dcbb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x272498=this['_commentsRepository']['getCommentThread'](_0x20dcbb);_0x272498['unbind']('isRemovable'),_0x272498['isRemovable']=!0x1,_0x3a58ea['commentThread']=_0x272498;}['_checkSuggestionCorrectness'](_0x5e4bc1,_0x5907ee,_0xcaf8c,_0x496a16){if(_0x5e4bc1['type']!=_0x5907ee||_0x5e4bc1['subType']!=_0xcaf8c||_0x5e4bc1['creator']['id']!=_0x496a16)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ca3b1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1db627,_0x5da427){const _0x10cbc1=_0x1db627['getFirstRange']();if(_0x5da427['isEqual'](_0x10cbc1))_0x1db627['removeMarkers']();else{if(_0x10cbc1['containsRange'](_0x5da427)){const _0x62a30c=this['_model']['createPositionAt'](_0x5da427['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1db627,this['_model']['createRange'](_0x10cbc1['start'],_0x62a30c));const _0x4179c8=_0x2397a2(),_0x56735a=_0x1db627['creator']['id'],_0x5dcb6c=_0x1db627['type']+':'+_0x1db627['subType'];this['_setSuggestionData']({'id':_0x4179c8,'type':_0x5dcb6c,'createdAt':new Date(),'authorId':_0x56735a,'data':_0x1db627['data'],'attributes':_0x1db627['attributes']});const _0x33b872=this['_model']['createPositionAt'](_0x5da427['end']['parent'],'after'),_0x2e8567=this['_model']['createRange'](_0x33b872,_0x10cbc1['end']);this['_addSuggestionMarker'](_0x5dcb6c,_0x4179c8,_0x56735a,_0x2e8567);}else{if(_0x10cbc1['containsPosition'](_0x5da427['start'])){const _0x500b2b=this['_model']['createPositionAt'](_0x5da427['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1db627,this['_model']['createRange'](_0x10cbc1['start'],_0x500b2b));}else{const _0x1b1f22=this['_model']['createPositionAt'](_0x5da427['end']['parent'],'after');this['_setSuggestionRange'](_0x1db627,this['_model']['createRange'](_0x1b1f22,_0x10cbc1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x553cee){for(const {suggestion:_0x420666,meta:_0x44307f}of this['_findSuggestions'](_0x553cee,'insertion')){if(!_0x44307f['isOwn'])continue;const _0x1b1e39=_0x420666['getRanges']();for(const _0x44eb3a of _0x1b1e39)if(!_0x553cee['getDifference'](_0x44eb3a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5ef8c4){const _0x5b2f2d=this['editor']['plugins']['get']('Users')['getUser'](_0x5ef8c4);if(!_0x5b2f2d)throw new _0x2ca3b1('track-changes-user-not-found',this);return _0x5b2f2d;}['_getExternalAuthor'](_0x3b6e76){const _0x1077de=this['editor']['plugins']['get']('Users'),_0xa8b5ee=_0x2455b2('external:'+_0x3b6e76),_0x3bcb53=_0x1077de['getUser'](_0xa8b5ee);return _0x3bcb53||_0x1077de['addUser']({'id':_0xa8b5ee,'name':_0x3b6e76});}['_createSuggestion'](_0x720ef9,_0x100b4a,_0x507deb,_0x4a8464,_0x1dafe6){const _0x252f01=this['_getAuthorFromId'](_0x4a8464),_0x53cbf3=this['_suggestionFactory']['buildSuggestion'](_0x720ef9,_0x100b4a,_0x507deb,_0x252f01,_0x1dafe6,_0x127f69=>{this['_updateSuggestionData'](_0x507deb,{'attributes':_0x127f69});const _0x17c440=this['getSuggestion'](_0x507deb);this['_joinWithAdjacentSuggestions'](new Set([_0x17c440])),this['_refreshSuggestionsChain'](new Set([_0x17c440]));});return this['listenTo'](_0x53cbf3,'accept',()=>{this['_updateSuggestionData'](_0x507deb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x53cbf3,'discard',()=>{this['_updateSuggestionData'](_0x507deb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x507deb,_0x53cbf3),this['_suggestionState']['set'](_0x53cbf3,'notReady'),_0x53cbf3;}['_splitMarkerName'](_0x1f3cd1){const _0x1e677e=_0x1f3cd1['split'](':');return{'group':_0x1e677e[0x0],'type':_0x1e677e[0x1],'subType':_0x1e677e['length']>=0x5?_0x1e677e[0x2]:null,'id':_0x1e677e['length']<0x5?_0x1e677e[0x2]:_0x1e677e[0x3],'authorId':_0x1e677e['length']<0x5?_0x1e677e[0x3]:_0x1e677e[0x4],'markerCount':0x6==_0x1e677e['length']?_0x1e677e[0x5]:null};}['_breakSuggestionMarker'](_0x4fcbe6,_0x4334a2,_0x10f30f){const _0x35467a=_0x4fcbe6['getFirstRange'](),_0x161f33=_0x35467a['start'],_0x454278=_0x35467a['end'];this['_setSuggestionRange'](_0x4fcbe6,this['_model']['createRange'](_0x161f33,_0x4334a2));const _0xeda58a=_0x2397a2(),_0x4ee5a5=_0x4fcbe6['creator']['id'],_0x197fa2=_0x4fcbe6['type']+(_0x4fcbe6['subType']?':'+_0x4fcbe6['subType']:'');this['_setSuggestionData']({'id':_0xeda58a,'type':_0x197fa2,'createdAt':new Date(),'authorId':_0x4ee5a5,'originalSuggestionId':_0x4fcbe6['id'],'attributes':_0x4fcbe6['attributes'],'data':_0x4fcbe6['data']});const _0x3a7fa6=this['_getAttributeKey'](_0x4fcbe6);('formatBlock'==_0x4fcbe6['type']||_0x3a7fa6&&this['_isBlockAttribute'](_0x3a7fa6))&&(_0x10f30f=this['_model']['createPositionBefore'](_0x10f30f['parent'])),this['_addSuggestionMarker'](_0x197fa2,_0xeda58a,_0x4ee5a5,this['_model']['createRange'](_0x10f30f,_0x454278));}['_findSuggestions'](_0x3b94da,_0x5e99af=null){const _0x2b7df7=[],_0x18c456=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3b94da)||(_0x3b94da=[_0x3b94da]);for(const _0x59fbd1 of this['getSuggestions']()){if(!_0x59fbd1['isInContent'])continue;if(_0x5e99af&&_0x59fbd1['type']!=_0x5e99af)continue;let _0xfc223a=!0x1;for(const _0x4e7992 of _0x59fbd1['getRanges']()){for(const _0x96dff2 of _0x3b94da){const _0x5bb1ed=_0x96dff2['start']['isEqual'](_0x4e7992['end'])||_0x96dff2['end']['isEqual'](_0x4e7992['start']);if(_0x5bb1ed||_0x96dff2['getIntersection'](_0x4e7992)){const _0xf12416=_0x96dff2['containsRange'](_0x4e7992)&&Gt(this['_model']['schema'],_0x4e7992['start'],_0x96dff2),_0x20c76d=_0x4e7992['containsRange'](_0x96dff2)&&Gt(this['_model']['schema'],_0x96dff2['start'],_0x4e7992);_0x2b7df7['push']({'suggestion':_0x59fbd1,'meta':{'isOwn':_0x18c456==_0x59fbd1['author'],'isNextTo':_0x5bb1ed,'isInsideObject':_0xf12416,'containsRangeInObject':_0x20c76d}}),_0xfc223a=!0x0;break;}}if(_0xfc223a)break;}}return _0x2b7df7;}['_addSuggestionMarker'](_0x13f1fe,_0x4bfb58,_0x2854e2,_0x5b5028,_0x43adda){this['_model']['change'](_0x158912=>{let _0x2a26a3='suggestion:'+_0x13f1fe+':'+_0x4bfb58+':'+_0x2854e2;_0x43adda&&(_0x2a26a3=_0x2a26a3+':'+_0x43adda),_0x158912['addMarker'](_0x2a26a3,{'range':_0x5b5028,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d57b0){const _0x524869=_0x3d57b0['previous'],_0x340b0b=_0x3d57b0['next'];_0x3d57b0['previous']=null,_0x3d57b0['next']=null,null!=_0x524869&&_0x524869['next']==_0x3d57b0&&(_0x524869['next']=_0x340b0b),null!=_0x340b0b&&_0x340b0b['previous']==_0x3d57b0&&(_0x340b0b['previous']=_0x524869),'ready'==this['_suggestionState']['get'](_0x3d57b0)&&(this['_suggestionState']['set'](_0x3d57b0,'removed'),this['fire']('suggestionUnloaded',_0x3d57b0,_0x524869,_0x340b0b));}['_setSuggestionData'](_0x5bfcaf){const _0x121ff2=_0x5bfcaf['id'],_0x1456c0=this['addSuggestionData'](_0x5bfcaf);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x199778=this['editor']['plugins']['get']('PendingActions'),_0x6a4288=_0x1456c0['hasComments'],_0x4db067=_0x1456c0['subType']?_0x1456c0['type']+':'+_0x1456c0['subType']:_0x1456c0['type'],_0x1fd0a9=this['editor']['locale'],_0x2fcd8f=_0x199778['add'](c(_0x1fd0a9,'PENDING_ACTION_SUGGESTION')),_0x256f75={'id':_0x121ff2,'type':_0x4db067,'hasComments':_0x6a4288,'data':_0x5bfcaf['data']||null,'originalSuggestionId':_0x5bfcaf['originalSuggestionId']||null,'attributes':_0x1456c0['attributes']};this['_adapter']['addSuggestion'](_0x256f75)['then'](_0x569b76=>{_0x1456c0['_saved']=!0x0,_0x199778['remove'](_0x2fcd8f),_0x569b76&&_0x569b76['createdAt']&&(this['_suggestions']['get'](_0x121ff2)['createdAt']=_0x569b76['createdAt']);})['catch'](_0x3227e4=>{throw _0x5e8bbd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1456c0['discard']();}),_0x1456c0['stopListening'](),this['_suggestions']['delete'](_0x1456c0['id']),this['_suggestionState']['delete'](_0x1456c0),_0x3227e4;});}return _0x1456c0;}['_isBlockAttribute'](_0x9c4fe6){return this['_blockAttributeKeys']['has'](_0x9c4fe6);}['_updateSuggestionData'](_0x4b3a4e,_0x4870fe){const _0x17d74c=this['editor']['plugins']['get']('PendingActions'),_0x369b42=this['getSuggestion'](_0x4b3a4e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x369b42['_saved']){const _0xc5a946=_0x17d74c['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4b3a4e,_0x4870fe)['then'](()=>{_0x17d74c['remove'](_0xc5a946);});}else _0x369b42['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4b3a4e,_0x4870fe);});}}['_getSuggestionData'](_0x2d7a89){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ca3b1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d7a89);}['_handleNewSuggestionMarker'](_0x321be1){const {id:_0x179184,type:_0x3c60d8,subType:_0x506f95,authorId:_0x506c67}=this['_splitMarkerName'](_0x321be1),_0x4da8ad=this['_suggestions']['get'](_0x179184)||this['_createSuggestion'](_0x3c60d8,_0x506f95,_0x179184,_0x506c67,{});switch(this['_checkSuggestionCorrectness'](_0x4da8ad,_0x3c60d8,_0x506f95,_0x506c67),this['_suggestionState']['get'](_0x4da8ad)){case'notReady':this['_getSuggestionData'](_0x179184)['then'](_0x104630=>{let _0x5c7e53=Promise['resolve']();_0x104630['hasComments']&&(_0x5c7e53=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x179184})),_0x5c7e53['then'](()=>{this['addSuggestionData'](_0x104630)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4da8ad,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x179184,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4da8ad,'ready'),this['fire']('suggestionLoaded',_0x4da8ad);break;case'ready':this['fire']('suggestionChanged',_0x4da8ad);}return _0x4da8ad['addMarkerName'](_0x321be1),_0x4da8ad;}['_refreshSuggestionsChain'](_0x47e335){const _0x494861=Array['from'](_0x47e335),_0x2bb0da=_0x494861['filter'](_0x2e1cfc=>'attribute'==_0x2e1cfc['type']);this['_refreshAttributeSuggestionsChain'](_0x2bb0da);const _0x193a5e=_0x494861['filter'](_0x213f3f=>!_0x213f3f['isMultiRange']&&'attribute'!=_0x213f3f['type']),_0x443cfb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f0dea=>!_0x3f0dea['isMultiRange']&&'attribute'!=_0x3f0dea['type']),_0x16925e=_0x443cfb['filter'](_0xf7cd93=>!_0x47e335['has'](_0xf7cd93)),_0x2bdfb4=new Map(_0x443cfb['map'](_0x2cf850=>[_0x2cf850,this['_suggestionFactory']['getSuggestionCallback'](_0x2cf850['type'],_0x2cf850['subType'],'chain')])),_0x322bdc=new Map(_0x443cfb['map'](_0x14ff10=>[_0x14ff10,_0x14ff10['getFirstRange']()])),_0x4c35a9=new Set(),_0x295b64=new Set();for(let _0x338a1=0x0;_0x338a1<_0x193a5e['length'];_0x338a1++)_0x16f83b(_0x193a5e[_0x338a1],_0x193a5e,_0x338a1+0x1);for(let _0x49adf3=0x0;_0x49adf3<_0x193a5e['length'];_0x49adf3++)_0x16f83b(_0x193a5e[_0x49adf3],_0x16925e,0x0);const _0x426a8b=new Set();for(let _0x2cb67c=0x0;_0x2cb67c<_0x193a5e['length'];_0x2cb67c++){const _0xc9862=_0x193a5e[_0x2cb67c];!_0x295b64['has'](_0xc9862)&&_0xc9862['previous']&&(_0x426a8b['add'](_0xc9862['previous']),_0xc9862['previous']['next']===_0xc9862&&(_0xc9862['previous']['next']=null),_0xc9862['previous']=null),!_0x4c35a9['has'](_0xc9862)&&_0xc9862['next']&&(_0x426a8b['add'](_0xc9862['next']),_0xc9862['next']['previous']===_0xc9862&&(_0xc9862['next']['previous']=null),_0xc9862['next']=null);}function _0x16f83b(_0x1d5994,_0x2d4a11,_0x12f1be){for(let _0x1f3e34=_0x12f1be;_0x1f3e34<_0x2d4a11['length'];_0x1f3e34++){const _0xbf32b0=_0x420ca0(_0x1d5994,_0x2d4a11[_0x1f3e34]);_0xbf32b0&&(_0xbf32b0[0x0]['next']=_0xbf32b0[0x1],_0xbf32b0[0x1]['previous']=_0xbf32b0[0x0],_0x4c35a9['add'](_0xbf32b0[0x0]),_0x295b64['add'](_0xbf32b0[0x1]));}}function _0x420ca0(_0x130135,_0x57b8b2){if(_0x130135['author']['id']!==_0x57b8b2['author']['id'])return null;const _0x532087=_0x2bdfb4['get'](_0x130135)(_0x130135,_0x57b8b2,_0x322bdc['get'](_0x130135),_0x322bdc['get'](_0x57b8b2));if(!_0x532087)return null;return _0x2bdfb4['get'](_0x57b8b2)(_0x130135,_0x57b8b2,_0x322bdc['get'](_0x130135),_0x322bdc['get'](_0x57b8b2))?_0x532087[0x1]['commentThread']&&_0x532087[0x1]['commentThread']['length']?null:_0x532087:null;}_0x426a8b['size']&&this['_refreshSuggestionsChain'](_0x426a8b);}['_refreshAttributeSuggestionsChain'](_0x1c1c6a){if(0x0==_0x1c1c6a['length'])return;const _0x5b8f01=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x97f8a4=>'attribute'==_0x97f8a4['type']&&_0x97f8a4['_isDataLoaded']),_0x2ebaa1=[],_0x5c60ea=new Map();for(const _0x386822 of _0x5b8f01){const _0x436479=_0x2455b2(_0x386822['attributes']);_0x5c60ea['has'](_0x436479)||(_0x5c60ea['set'](_0x436479,_0x2ebaa1['length']),_0x2ebaa1['push']([]));const _0x464cfd=_0x5c60ea['get'](_0x436479);_0x2ebaa1[_0x464cfd]['push'](_0x386822);}!(function(){_0x2ebaa1['sort']((_0x54fbfc,_0x40e922)=>{const _0x4c9770=_0x54fbfc[0x0]['createdAt'],_0x292a61=_0x40e922[0x0]['createdAt'];return _0x4c9770==_0x292a61?_0x54fbfc[0x0]['attributes']['groupId']<_0x40e922[0x0]['attributes']['groupId']?-0x1:0x1:_0x4c9770<_0x292a61?-0x1:0x1;});for(const _0x2204d9 of _0x2ebaa1)_0x2204d9['sort']((_0x488e22,_0xc8fcc9)=>_0x488e22['id']<_0xc8fcc9['id']?-0x1:0x1);}());for(let _0x25a333=0x0;_0x25a333<_0x2ebaa1['length'];_0x25a333++){if(0x0==_0x2ebaa1[_0x25a333]['length'])continue;const _0x29e548=[];for(let _0x3c7b9a=_0x25a333+0x1;_0x3c7b9a<_0x2ebaa1['length'];_0x3c7b9a++)0x0!=_0x2ebaa1[_0x3c7b9a]['length']&&_0x4750c8(_0x2ebaa1[_0x25a333],_0x2ebaa1[_0x3c7b9a])&&_0x29e548['push'](_0x3c7b9a);for(const _0xced431 of _0x29e548)_0x2ebaa1[_0x25a333]=_0x2ebaa1[_0x25a333]['concat'](_0x2ebaa1[_0xced431]),_0x2ebaa1[_0xced431]=[];}for(const _0x15e625 of _0x2ebaa1)for(let _0x12c07e=0x0;_0x12c07e<_0x15e625['length'];_0x12c07e++){const _0x2c63d3=_0x15e625[_0x12c07e+0x1]||null;_0x15e625[_0x12c07e]['next']!==_0x2c63d3&&(_0x15e625[_0x12c07e]['next']=_0x2c63d3);}for(const _0x7581f6 of _0x2ebaa1)for(let _0x34a7e2=0x0;_0x34a7e2<_0x7581f6['length'];_0x34a7e2++){const _0x4edc54=_0x7581f6[_0x34a7e2-0x1]||null;_0x7581f6[_0x34a7e2]['previous']!==_0x4edc54&&(_0x7581f6[_0x34a7e2]['previous']=_0x4edc54);}function _0x4750c8(_0x3bd5da,_0x37dbf8){if(_0x3bd5da[0x0]['attributes']['groupId']!==_0x37dbf8[0x0]['attributes']['groupId']&&_0x3bd5da[0x0]['author']!==_0x37dbf8[0x0]['author'])return!0x1;if(!function(_0x2e3e1b,_0x4ae32d){if(!_0x2e3e1b['hasComments']&&!_0x4ae32d['hasComments'])return!0x0;if(_0x2e3e1b['hasComments']&&_0x4ae32d['hasComments'])return!0x1;if(_0x2e3e1b['hasComments']&&_0x4ae32d['createdAt']<_0x2e3e1b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4ae32d['hasComments']&&_0x2e3e1b['createdAt']<_0x4ae32d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3bd5da[0x0],_0x37dbf8[0x0]))return!0x1;const _0x18743f=Ft(_0x3bd5da[0x0]['attributes'],'groupId'),_0x1c4fac=Ft(_0x37dbf8[0x0]['attributes'],'groupId');if(!_0x3e9ffc(_0x18743f,_0x1c4fac))return!0x1;return!!_0x3bd5da['every'](_0x5f0a7e=>_0x37dbf8['some'](_0x3f432d=>_0x5f0a7e['getFirstRange']()['isEqual'](_0x3f432d['getFirstRange']())))&&_0x37dbf8['every'](_0x50f438=>_0x3bd5da['some'](_0x28ebc1=>_0x50f438['getFirstRange']()['isEqual'](_0x28ebc1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1fb695){const _0x3b6e6a=Array['from'](_0x1fb695),_0x23f6bf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x290ca7=_0x23f6bf['filter'](_0x434352=>!_0x1fb695['has'](_0x434352)),_0x3af62d=new Map(_0x3b6e6a['map'](_0x51d7ad=>[_0x51d7ad,this['_suggestionFactory']['getSuggestionCallback'](_0x51d7ad['type'],_0x51d7ad['subType'],'join')])),_0x1b50d2=new Map(_0x23f6bf['map'](_0x14d157=>[_0x14d157,_0x14d157['getRanges']()]));for(let _0x48bb7b=0x0;_0x48bb7b<_0x3b6e6a['length'];_0x48bb7b++){if(_0x2a3fb8(this,_0x3b6e6a[_0x48bb7b],_0x3b6e6a,_0x48bb7b+0x1))return!0x0;}for(let _0x336386=0x0;_0x336386<_0x3b6e6a['length'];_0x336386++){if(_0x2a3fb8(this,_0x3b6e6a[_0x336386],_0x290ca7,0x0))return!0x0;}return!0x1;function _0x2a3fb8(_0x30762e,_0x206ee7,_0x2967af,_0xaad692){for(let _0x4c781c=_0xaad692;_0x4c781c<_0x2967af['length'];_0x4c781c++){const _0xbed830=_0x2967af[_0x4c781c];if(_0xbed830['type']!==_0x206ee7['type']||_0xbed830['author']['id']!==_0x206ee7['author']['id']||_0xbed830['subType']!==_0x206ee7['subType'])continue;if(!Qt(_0x206ee7,_0xbed830))continue;if('attribute'==_0x206ee7['type']&&_0x206ee7['data']['oldValue']!=_0xbed830['data']['oldValue'])continue;if('attribute'==_0x206ee7['type']&&_0x30762e['_isBlockAttribute'](_0x206ee7['data']['key']))continue;if('formatBlock'==_0x206ee7['type']){const _0x5eac0c=_0x30762e['editor']['model'],_0x243d86=_0x206ee7['getContainedElement']();if(_0x243d86&&(_0x5eac0c['schema']['isObject'](_0x243d86)||_0x5eac0c['schema']['isLimit'](_0x243d86)))continue;}const _0x5d748c=_0x3af62d['get'](_0x206ee7),_0x284570=_0x1b50d2['get'](_0x206ee7),_0x351c4e=_0x1b50d2['get'](_0xbed830),_0x3bcdc6=_0x206ee7['commentThread']&&_0x206ee7['commentThread']['length'],_0x850be3=_0xbed830['commentThread']&&_0xbed830['commentThread']['length'];if(!_0x3bcdc6&&_0x5d748c(_0x351c4e,_0x284570))return _0x30762e['_joinSuggestions'](_0xbed830,_0x206ee7),_0x1b50d2['delete'](_0x206ee7),!0x0;if(!_0x850be3&&_0x5d748c(_0x284570,_0x351c4e))return _0x30762e['_joinSuggestions'](_0x206ee7,_0xbed830),_0x1b50d2['delete'](_0xbed830),!0x0;}return!0x1;}}['_joinSuggestions'](_0x457c7b,_0x5a29b3){if(_0x457c7b['isMultiRange']){for(const _0x58ca3d of _0x5a29b3['getRanges']())_0x457c7b['addRange'](_0x58ca3d);}else{const _0x16ab0c=_0x5a29b3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x457c7b,this['_model']['createRange'](_0x457c7b['getFirstRange']()['start'],_0x16ab0c));}_0x5a29b3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x16b05f,_0x14357d,_0x3a4ac1){const _0x287a21=_0x16b05f['startsWith']('format')||_0x16b05f['startsWith']('attribute')?'FORMATTING':_0x16b05f['toUpperCase']();return c(this['editor']['locale'],_0x14357d+'_'+_0x287a21+'_SUGGESTION_ANNOUNCEMENT',_0x3a4ac1);}['_initAriaMarkerChangeAnnouncements'](){const _0x38d4d4=this['editor'];if(!_0x38d4d4['ui'])return;const {ariaLiveAnnouncer:_0xde0c2e}=_0x38d4d4['ui'];_0x4ba154(this['_model'],({left:_0x214c9c,entered:_0x2fa08a})=>{for(const _0x1e1d8a of _0x214c9c){const {group:_0x4bdd22,type:_0x2bc8e3}=this['_splitMarkerName'](_0x1e1d8a['name']);if('suggestion'===_0x4bdd22){_0xde0c2e['announce'](this['_getMarkerAnnouncementText'](_0x2bc8e3,'LEAVE'));break;}}for(const _0x43ba09 of _0x2fa08a){const {group:_0x217dff,type:_0x32e154}=this['_splitMarkerName'](_0x43ba09['name']);if('suggestion'===_0x217dff){_0xde0c2e['announce'](this['_getMarkerAnnouncementText'](_0x32e154,'ENTER',_0x6d3983(_0x3be5b7)));break;}}});}['_processAttributeChanges'](_0x3953fc){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb888cf=this['editor'],_0x20d592=_0xb888cf['model']['document']['differ']['getChanges']();if(0x0==_0x20d592['length'])return!0x1;const _0x489c3d=[],_0x5b8cf8=_0x20d592['filter'](_0x3f066b=>'attribute'==_0x3f066b['type']),_0x25e51a=_0x20d592['filter'](_0x4215f6=>'insert'==_0x4215f6['type']&&'$text'!=_0x4215f6['name']),_0x48ddab=_0x20d592['filter'](_0x4d3184=>'remove'==_0x4d3184['type']&&'$text'!=_0x4d3184['name']);for(const _0x71a9a7 of _0x5b8cf8)_0x489c3d['push']({'key':_0x71a9a7['attributeKey'],'newValue':_0x71a9a7['attributeNewValue'],'oldValue':_0x71a9a7['attributeOldValue'],'range':qt(_0x71a9a7['range'],_0xb888cf['model'])});for(const _0x20c77c of _0x25e51a){const _0x3c8316=_0x48ddab['find'](_0x70cac9=>_0x70cac9['position']['isEqual'](_0x20c77c['position']));_0x3c8316&&_0x489c3d['push']({'key':u,'newValue':_0x20c77c['name'],'oldValue':_0x3c8316['name'],'range':_0xb888cf['model']['createRangeOn'](_0x20c77c['position']['nodeAfter'])});}return 0x0!=_0x489c3d['length']&&this['_reduceExistingSuggestions'](_0x3953fc,_0x489c3d);}['_processAttributeSuggestions'](_0x21a477){let _0x3841a0=!0x1;const _0x562a00=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e9bb3=>_0x3e9bb3['data']['newRange']&&_0x3e9bb3['name']['startsWith']('suggestion:attribute:'));for(const _0x15d8e0 of _0x562a00){const {subType:_0x4a63ef,id:_0x10a888}=this['_splitMarkerName'](_0x15d8e0['name']),_0x2b45a4=_0x4a63ef['split']('|')[0x0];for(const _0x568427 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x568427['id']!=_0x10a888&&'attribute'==_0x568427['type']&&_0x568427['data']&&_0x568427['data']['key']==_0x2b45a4&&_0x568427['getFirstRange']()['isIntersecting'](_0x15d8e0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x568427,_0x15d8e0['data']['newRange'],_0x21a477),_0x3841a0=!0x0);}return _0x3841a0;}['_recordAttributeChanges'](_0x30dfc5){this['_recordAttributeSuggestions']=!0x0,_0x30dfc5();}['_isRegisteredAttribute'](_0x1fd928){const _0x112039=this['_isBlockAttribute'](_0x1fd928),_0x44959b=this['_inlineAttributeKeys']['has'](_0x1fd928);return _0x112039||_0x44959b;}['_reduceExistingSuggestions'](_0x21c558,_0x763619){if(0x0==_0x763619['length'])return!0x1;let _0x1f65ff=!0x1;for(const _0x535be5 of _0x763619){const _0x382902=this['_findSuggestions'](_0x535be5['range'],'attribute')['filter'](_0x56f43d=>!_0x56f43d['meta']['isNextTo'])['map'](_0x517fd5=>_0x517fd5['suggestion']),_0x5297db=_0x2455b2({'newValue':_0x535be5['newValue']});_0x382902['filter'](_0x48b5aa=>{const [_0x2ce18e,_0x3f9d7f]=_0x48b5aa['subType']['split']('|');return _0x2ce18e==_0x535be5['key']&&_0x3f9d7f!=_0x5297db;})['forEach'](_0x354bd7=>{this['_reduceSuggestionAttributeRange'](_0x354bd7,_0x535be5['range'],_0x21c558),_0x1f65ff=!0x0;});}return _0x1f65ff;}['_reduceSuggestionAttributeRange'](_0x4409cb,_0x4cf66d,_0x386109){const _0x5a85d3=_0x4409cb['getFirstRange']()['getDifference'](_0x4cf66d);0x0!==_0x5a85d3['length']?0x1!==_0x5a85d3['length']?this['_breakSuggestionMarker'](_0x4409cb,_0x4cf66d['start'],_0x4cf66d['end']):this['_setSuggestionRange'](_0x4409cb,_0x5a85d3[0x0]):_0x386109['removeMarker'](_0x4409cb['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xe8c5fe){this['_editor']=_0xe8c5fe,this['_model']=_0xe8c5fe['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2ecddc,_0x37e3c6,_0x23c099,_0x33066d,_0x941c1b,_0x195f6e){return new o(this['_model'],{'type':_0x2ecddc,'subType':_0x37e3c6,'id':_0x23c099,'author':_0x33066d,'creator':_0x33066d,'attributes':_0x941c1b,'onAttributesChange':_0x195f6e,'onAccept':(..._0x17f868)=>this['getSuggestionCallback'](_0x2ecddc,_0x37e3c6,'accept')(..._0x17f868),'onDiscard':(..._0x37c410)=>this['getSuggestionCallback'](_0x2ecddc,_0x37e3c6,'discard')(..._0x37c410)});}['registerCustomCallback'](_0x374c1a,_0x53f240,_0x4a11c2,_0xbe0ee0){const _0x51c9f8=_0x374c1a+':'+_0x53f240+':'+_0x4a11c2;this['_customCallbacks']['set'](_0x51c9f8,_0xbe0ee0);}['getSuggestionCallback'](_0x11c765,_0x3810c0,_0x3e118f){const _0x2bd4f0=_0x11c765+':'+_0x3810c0+':'+_0x3e118f;return this['_customCallbacks']['get'](_0x2bd4f0)||this['_defaultCallbacks']['get'](_0x11c765+':'+_0x3e118f);}['_registerDefaultCallbacks'](){const _0x4b65a6=()=>!0x1,_0x4027b3=_0x1b4dd6=>{_0x1b4dd6['sort']((_0x27a673,_0x1f811c)=>_0x27a673['start']['isBefore'](_0x1f811c['start'])?0x1:-0x1),this['_model']['change'](_0x41f532=>{for(const _0x104300 of _0x1b4dd6){let _0x25c460;_0x25c460=_0x104300['end']['isAtEnd']&&_0x104300['end']['parent']==_0x104300['start']['nodeAfter']?_0x41f532['createSelection'](_0x104300['start']['nodeAfter'],'on'):_0x41f532['createSelection'](_0x104300),this['_model']['deleteContent'](_0x25c460,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2025bb=(_0xbf8a9,_0x41c151)=>{_0x41c151&&this['_model']['change'](_0x4e5f3d=>{const {commandName:_0x393ff6,commandParams:_0x1ed82f=[]}=_0x41c151,_0x460105=_0xbf8a9['map'](_0x24d46d=>(Lt(_0x24d46d)&&(_0x24d46d=this['_model']['createRange'](_0x24d46d['end'])),_0x24d46d))['filter'](_0x15bc67=>'$graveyard'!==_0x15bc67['root']['rootName']);if(_0x460105['length']<0x1)return;const _0x1c3596=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3496ea=>_0x112647['fromRange'](_0x3496ea));_0x4e5f3d['setSelection'](_0x460105);for(const _0x485e1c of this['_editor']['commands']['commands']())_0x485e1c['refresh']();_0x1ed82f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x393ff6,..._0x1ed82f);const _0x553739=_0x1c3596['filter'](_0x5c4af4=>'$graveyard'!=_0x5c4af4['root']['rootName']);_0x553739['length']>0x0&&_0x4e5f3d['setSelection'](_0x553739);for(const _0x5bc07f of _0x1c3596)_0x5bc07f['detach']();});},_0x5b2b65=(_0xb3dd12,_0x1cbcd4)=>0x1==_0xb3dd12['length']&&0x1==_0x1cbcd4['length']&&_0xb3dd12[0x0]['end']['isEqual'](_0x1cbcd4[0x0]['start']),_0x3f394c=(_0x52c77a,_0x1d0792,_0x3b2096,_0x41da7f)=>Wt(_0x52c77a,_0x1d0792,_0x3b2096,_0x41da7f)?[_0x52c77a,_0x1d0792]:Wt(_0x1d0792,_0x52c77a,_0x41da7f,_0x3b2096)?[_0x1d0792,_0x52c77a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b65a6),this['_defaultCallbacks']['set']('insertion:discard',_0x4027b3),this['_defaultCallbacks']['set']('insertion:join',_0x5b2b65),this['_defaultCallbacks']['set']('insertion:chain',_0x3f394c),this['_defaultCallbacks']['set']('deletion:accept',_0x4027b3),this['_defaultCallbacks']['set']('deletion:discard',_0x4b65a6),this['_defaultCallbacks']['set']('deletion:join',_0x5b2b65),this['_defaultCallbacks']['set']('deletion:chain',_0x3f394c),this['_defaultCallbacks']['set']('formatInline:accept',_0x2025bb),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b65a6),this['_defaultCallbacks']['set']('formatInline:join',_0x5b2b65),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b65a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2025bb),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b65a6),this['_defaultCallbacks']['set']('formatBlock:join',_0x5b2b65),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b65a6),this['_defaultCallbacks']['set']('attribute:accept',_0x4b65a6),this['_defaultCallbacks']['set']('attribute:discard',(_0x3c88bf,_0x56fead)=>{if(!_0x56fead)return;const _0x453796=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3910ef=>{if(_0x56fead['key']==u)for(const _0x407fd5 of _0x3c88bf){const _0x108449=_0x407fd5['start']['nodeAfter'],_0x179dd6=_0x56fead['oldValue'];_0x3910ef['rename'](_0x108449,_0x179dd6);}else{if(_0x453796['_isBlockAttribute'](_0x56fead['key'])){for(const _0x30bbcf of _0x3c88bf)void 0x0!==_0x56fead['oldValue']?_0x3910ef['setAttribute'](_0x56fead['key'],_0x56fead['oldValue'],_0x30bbcf['start']['nodeAfter']):_0x3910ef['removeAttribute'](_0x56fead['key'],_0x30bbcf['start']['nodeAfter']);}else{for(const _0x34efa9 of _0x3c88bf)_0x56fead['oldValue']?_0x3910ef['setAttribute'](_0x56fead['key'],_0x56fead['oldValue'],_0x34efa9):_0x3910ef['removeAttribute'](_0x56fead['key'],_0x34efa9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5b2b65);}}function Gt(_0x1b34cb,_0x2fc4ff,_0x31cd9e){for(const _0x5b2d02 of _0x2fc4ff['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b2d02['root']==_0x5b2d02)return!0x1;if(!_0x31cd9e['containsItem'](_0x5b2d02))return!0x1;if(_0x1b34cb['isObject'](_0x5b2d02)||_0x1b34cb['isLimit'](_0x5b2d02))return!0x0;}return!0x1;}function Lt(_0x3c7c11){return _0x3c7c11['end']['parent']==_0x3c7c11['start']['nodeAfter']&&_0x3c7c11['end']['isAtStart'];}function Jt(_0x3b6607,_0x2541fb,_0x33bbc1,_0x5c6403){const _0x2af220=_0x2ae23f=>!_0x2ae23f['item']['is']('$textProxy')&&!_0x5c6403['isObject'](_0x2ae23f['item']),_0x3313e9=_0x3b6607['start']['getLastMatchingPosition'](_0x2af220),_0x2d85ba=_0x3b6607['end']['getLastMatchingPosition'](_0x2af220,{'direction':'backward'});return(!_0x3b6607['start']['isEqual'](_0x3313e9)||!_0x3b6607['end']['isEqual'](_0x2d85ba))&&(_0x3313e9['isBefore'](_0x2d85ba)?_0x33bbc1['updateMarker'](_0x2541fb,{'range':_0x33bbc1['createRange'](_0x3313e9,_0x2d85ba)}):_0x33bbc1['removeMarker'](_0x2541fb),!0x0);}function Kt(_0x5aaeba){return _0x2455b2(_0x5aaeba);}function Ht(_0x53f485){const _0x424f4f=_0x53f485['start']['nodeAfter'];return _0x424f4f&&_0x424f4f['is']('element');}function qt(_0x2860ad,_0xbfb26a){return null==_0x2860ad['end']['nodeBefore']&&_0x2860ad['end']['parent']==_0x2860ad['start']['nodeAfter']?zt(_0x2860ad['start']['nodeAfter'],_0xbfb26a):_0x2860ad;}function zt(_0x2fa1de,_0x2dc052){const _0xf4ccbf=_0x2dc052['schema']['isObject'](_0x2fa1de)||_0x2dc052['schema']['isSelectable'](_0x2fa1de);return _0x2dc052['createRange'](_0x2dc052['createPositionAt'](_0x2fa1de,'before'),_0xf4ccbf?_0x2dc052['createPositionAfter'](_0x2fa1de):_0x2dc052['createPositionAt'](_0x2fa1de,'end'));}function Wt(_0x280227,_0x1b6be0,_0x529e7c,_0x69d696){return!!Qt(_0x280227,_0x1b6be0)&&_0x529e7c['end']['isEqual'](_0x69d696['start']);}function Qt(_0x19a882,_0x552c88){if(!_0x19a882['_isDataLoaded']||!_0x552c88['_isDataLoaded'])return!0x1;const _0x40325a=new Set(Object['keys'](_0x19a882['attributes'])),_0x1fc2d3=new Set(Object['keys'](_0x552c88['attributes']));if(_0x40325a['delete']('groupId'),_0x1fc2d3['delete']('groupId'),0x0==_0x40325a['size']&&0x0==_0x1fc2d3['size'])return!0x0;if(_0x40325a['size']!=_0x1fc2d3['size'])return!0x1;const _0xbe4815={..._0x19a882['attributes']},_0x451719={..._0x552c88['attributes']};return delete _0xbe4815['groupId'],delete _0x451719['groupId'],JSON['stringify'](_0xbe4815)==JSON['stringify'](_0x451719);}function Xt(_0x2fbe1e,_0x58fb93){const _0x1ccb8a=Yt(_0x2fbe1e['attributes']),_0x432325=Yt(_0x58fb93);if(!_0x2fbe1e['_isDataLoaded'])return!0x1;for(const _0x53c0e3 of Object['keys'](_0x432325))if(!_0x3e9ffc(_0x1ccb8a[_0x53c0e3],_0x432325[_0x53c0e3]))return!0x1;return!0x0;}function Yt(_0x2e470d){const _0x2f30dc=Object['assign']({},_0x2e470d);return delete _0x2f30dc['skipNestingCheck'],delete _0x2f30dc['tablePasteChainId'],_0x2f30dc;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2ec9e0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x297d2a,_0x497186,_0x198985,_0x49fa14){super(),this['model']=_0x497186,this['view']=_0x198985,this['commentThreadController']=_0x49fa14,this['_editor']=_0x297d2a,this['_acceptCommand']=_0x297d2a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x297d2a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x296f3d,_0x4de0ac)=>_0x296f3d||_0x4de0ac),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5eb214=>_0x5eb214&&this['_editor']['model']['canEditAt'](_0x497186['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56cde3=>_0x56cde3&&this['_editor']['model']['canEditAt'](_0x497186['getRanges']())),this['_pendingAction']=null,_0x198985['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x198985,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x198985,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x198985,'change:isDirty',()=>{_0x198985['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 _0x1435b3=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1435b3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x57a473{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1884fa,_0x4dc0c8,_0xd2ebc1,_0x17199b){super(_0x1884fa),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x36c758(_0x1884fa,c(_0x1884fa,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4dc0c8['authoredAt']),this['bind']('authoredAt')['to'](_0x4dc0c8),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',_0x4dc0c8,'authoredAt',this,'descriptionParts',(_0x1dfc23,_0x97d2f,_0x294668)=>{const _0x174413=_0x294668['map'](_0x4180c4=>ls(_0x4180c4['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1dfc23-0x1,_0x4dc0c8['author']['name'],_0x97d2f?_0x17199b['formatDateTime'](_0x97d2f):'',new DOMParser()['parseFromString'](_0x174413,'text/html')['body']['textContent']]);}),this['focusables']=new _0x38f3f2(),this['focusTracker']=new _0x5ca9fb(),this['keystrokes']=new _0x21432a(),this['focusCycler']=new _0x1c4f3e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xea3f86=>_0xea3f86['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4dc0c8,this['_localUser']=_0xd2ebc1,this['_config']=_0x17199b,_0x17199b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x93c7f5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a05d3}=this['_config'];this['commentsListView']=new _0x2a05d3(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',_0x665494=>_0x665494+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2d3201,_0x2edbe0)=>_0x2d3201||!!_0x2edbe0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5ba31d}=this['_config'],_0x9c849e=new _0x5ba31d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20117e=_0x9c849e['commentInputView'];return _0x9c849e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20117e,'value',(_0x39e4af,_0x646b65,_0x101161)=>!!_0x101161||_0x39e4af&&!_0x646b65),_0x20117e['on']('submit',(_0x3faa45,_0x10762d)=>{this['fire']('addComment',_0x10762d),_0x20117e['editor']['setData']('');}),_0x20117e['on']('cancel',()=>this['focus']()),_0x20117e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x9c849e;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x158aaf,_0x170ba2,_0x4ab5e2,_0x2b5280){super(_0x158aaf,_0x170ba2,_0x4ab5e2,_0x2b5280),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1bd1cf=>_0x1bd1cf&&_0x1bd1cf[0x0]?_0x1bd1cf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5c879a,_0x3682ff)=>{let _0x24fee6='';for(const _0x87cd7c of _0x5c879a)_0x24fee6+='<p>'+ls(_0x87cd7c['content'],_0x87cd7c['color'])+'</p>';return _0x3682ff?_0x24fee6:ti(_0x24fee6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2b5280['SuggestionView'](_0x158aaf,_0x170ba2,{'formatDateTime':_0x2b5280['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 _0x36b92b=this['bindTemplate'],_0x5ce10f=[this['suggestionView']];return this['commentsListView']&&_0x5ce10f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5ce10f['push'](this['commentThreadInputView']),_0x5ce10f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x36b92b['if']('isActive','ck-suggestion-wrapper--active'),_0x36b92b['to']('type',_0x4db349=>'ck-suggestion-'+_0x4db349),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':_0x36b92b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5ce10f};}['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 _0x57a473{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x255324,_0x1437e3,_0x3f31b9){super(_0x255324),this['_model']=_0x1437e3,this['_config']=_0x3f31b9,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1437e3),this['acceptButton']=this['_createButton'](c(_0x255324,'Accept\x20suggestion'),_0x4e5e81,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x255324,'Discard\x20suggestion'),_0x58d14c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5130aa(_0x255324,_0x1437e3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x38f3f2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5ca9fb(),this['keystrokes']=new _0x21432a(),this['focusCycler']=new _0x1c4f3e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x172e4a=>_0x172e4a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5b9715=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5b9715['innerHTML']=this['description'],this['on']('change:description',(_0x15f500,_0x53dd1d,_0x15f1a4)=>{_0x5b9715['innerHTML']=_0x15f1a4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x162734=this['bindTemplate'],_0x10e4fc=[{'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':_0x162734['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x162734['to']('authoredAt',_0x2eb0d1=>this['_config']['formatDateTime'](_0x2eb0d1))}]}]},{'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']&&_0x10e4fc['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':_0x10e4fc}]};}['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'](_0x4fa84b,_0x4135fb,_0x5cede0,_0x21fed2,_0x44ca0f){const _0x4eece2=new _0x35a2f9(this['locale']);return _0x4eece2['set']({'label':_0x4fa84b,'icon':_0x4135fb,'tooltip':!0x0,'tooltipPosition':_0x44ca0f}),_0x4eece2['extendTemplate']({'attributes':{'class':_0x5cede0}}),_0x4eece2['on']('execute',()=>{this['fire'](_0x21fed2,this['_model']['id']);}),_0x4eece2;}['_setupKeyboardNavigation'](){const _0x33b5d2=this['element'];this['keystrokes']['listenTo'](_0x33b5d2);for(const _0x91f95 of this['focusables'])this['focusTracker']['add'](_0x91f95['element']),this['keystrokes']['listenTo'](_0x91f95['element']);this['keystrokes']['set']('enter',(_0x234e7c,_0x5838f2)=>{_0x33b5d2===_0x234e7c['target']&&(this['focusCycler']['focusFirst'](),_0x5838f2());}),this['keystrokes']['set']('esc',(_0x4834e7,_0x1819e6)=>{_0x33b5d2!==_0x4834e7['target']&&(this['focus'](),_0x1819e6());});}}class d extends _0x1667de{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xd58653,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12341d){super(_0x12341d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xcde075=this['editor']['config'];_0xcde075['define']('trackChanges.SuggestionThreadView',fe),_0xcde075['define']('trackChanges.SuggestionView',we),_0xcde075['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xcde075['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x106ad5,_0x52481b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xd85d4a,_0x3f698d]of this['_handleControllerBuffer']){const _0x511bce=this['_suggestionToController']['has'](_0xd85d4a);_0x511bce||_0x3f698d?_0x511bce&&_0x3f698d&&this['_destroyController'](_0xd85d4a):this['_initializeController'](_0xd85d4a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x106ad5,_0x52481b);}['init'](){const _0x3ece3d=this['editor'],_0x227e83=_0x3ece3d['plugins']['get']('TrackChangesEditing'),_0x4ad711=_0x3ece3d['plugins']['get']('Annotations'),_0x35c72a=_0x3ece3d['plugins']['get']('EditorAnnotations'),_0x3cbc40=_0x3ece3d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x35c72a['addSourceCollector'](()=>{const _0x585a57=[];for(const [_0x378f3f,_0x1c21a4]of Array['from'](this['_suggestionToController'])){const _0x2a78e4=_0x378f3f['getAllAdjacentSuggestions'](),_0x4aceb5=[];for(const _0x215d07 of _0x2a78e4){if(!_0x215d07['isInContent'])continue;if(_0x215d07['isMultiRange']){_0x4aceb5['push'](..._0x215d07['getRanges']());continue;}const _0x54df72=_0x215d07['getFirstRange']();if(_0x4aceb5['length']>0x0){const _0xaa0579=_0x4aceb5[0x0]['getJoined'](_0x54df72);if(_0xaa0579){_0x4aceb5[0x0]=_0xaa0579;continue;}}_0x4aceb5['push'](_0x54df72);}_0x585a57['push']([_0x1c21a4['view'],_0x4aceb5]);}return _0x585a57;}),this['listenTo'](_0x227e83,'suggestionLoaded',(_0x8ddef5,_0x21b456)=>{this['listenTo'](_0x21b456,'change:previous',(_0x215327,_0x4dadf6,_0x920894,_0xa26bec)=>{_0x21b456['isInContent']&&(null==_0x920894?(this['_updateController'](_0xa26bec['head']),this['_handleSuggestionControllerDelayed'](_0x21b456,!0x1)):(this['_updateController'](_0x920894['head']),null==_0xa26bec&&this['_handleSuggestionControllerDelayed'](_0x21b456,!0x0)));}),null!==_0x21b456['previous']?this['_updateController'](_0x21b456['head']):this['_handleSuggestionControllerDelayed'](_0x21b456,!0x1);}),this['listenTo'](_0x227e83,'suggestionUnloaded',(_0x8eb93c,_0x19fcc7,_0x3eed84)=>{this['stopListening'](_0x19fcc7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x19fcc7),this['_suggestionToController']['has'](_0x19fcc7)&&this['_destroyController'](_0x19fcc7),_0x3eed84&&this['_updateController'](_0x3eed84['head']);}),this['listenTo'](_0x227e83,'suggestionChanged',(_0x4eaf1e,_0x57f80a)=>{this['_updateController'](_0x57f80a);}),this['listenTo'](_0x4ad711,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3cbc40,'addComment',(_0xd9e817,{threadId:_0x122cc6,isFromAdapter:_0x2ece84})=>{if(_0x2ece84||!_0x227e83['hasSuggestion'](_0x122cc6))return;const _0x147306=_0x227e83['getSuggestion'](_0x122cc6);this['_suggestionToController']['get'](_0x147306)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x363ef3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x462af1;for(const _0x3076ab in _0x363ef3){const _0x2d3597=_0x3076ab,_0x584862=_0x363ef3[_0x2d3597];if('trackChangesLicenseKeyValid'==_0x584862||'trackChangesLicenseKeyInvalid'==_0x584862||'trackChangesLicenseKeyExpired'==_0x584862||'trackChangesLicenseKeyDomainLimit'==_0x584862||'trackChangesLicenseKeyNotAllowed'==_0x584862||'trackChangesLicenseKeyEvaluationLimit'==_0x584862||'trackChangesLicenseKeyTrialLimit'==_0x584862||'trackChangesLicenseKeyUsageLimit'==_0x584862){delete _0x363ef3[_0x2d3597],_0x462af1=_0x584862,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x462af1&&_0x363ef3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x462af1&&_0x363ef3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x462af1&&_0x363ef3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x462af1&&_0x363ef3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x462af1&&_0x363ef3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x462af1&&_0x363ef3['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x462af1&&_0x363ef3['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2c2c5d=this['editor']['plugins']['get']('Annotations'),_0x411251=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2066b0=Array['from'](_0x2c2c5d['activeAnnotations'],_0x526dcb=>_0x526dcb['innerView'])['filter'](_0x47ca8e=>this['_viewToController']['has'](_0x47ca8e)),_0x36f88e=[];for(const _0x167496 of _0x2066b0){const _0x3279c8=this['_viewToController']['get'](_0x167496)['model']['getAllAdjacentSuggestions']();_0x36f88e['push'](..._0x3279c8['reduce']((_0x3621b7,_0x31afa3)=>[..._0x3621b7,..._0x31afa3['getMarkerNames']()],[]));}_0x411251['activeMarkers']=_0x36f88e;}['_addUIComponentsToFactory'](){const _0x373597=this['editor'],_0x16c3c7=_0x373597['locale'],_0x1d8e74=c(_0x16c3c7,'Track\x20changes'),_0x3b862c=new _0xfd1210([{'type':'switchbutton','model':new _0x2640de({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d8e74,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x373597['plugins']['has']('TrackChangesPreview')&&_0x3b862c['addMany']([{'type':'separator'},{'type':'button','model':new _0x2640de({'withText':!0x0,'label':c(_0x16c3c7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5ea3a9 of _0x3b862c)if(ke(_0x5ea3a9)){const _0xb1f086=_0x373597['commands']['get'](_0x5ea3a9['model']['commandName']);_0x5ea3a9['model']['bind']('isOn','isEnabled')['to'](_0xb1f086,'value','isEnabled');}_0x373597['ui']['componentFactory']['add']('trackChanges',_0x4f2e7f=>this['_createToolbarButton'](_0x4f2e7f,_0x3b862c,_0x1d8e74)),_0x373597['ui']['componentFactory']['add']('menuBar:trackChanges',_0x30bc95=>this['_createMenuBarMenu'](_0x30bc95,_0x3b862c,_0x1d8e74));}['_createToolbarButton'](_0x4163b7,_0x1ab1ff,_0x102918){const _0x4872a7=_0x33a6ac(_0x4163b7,_0x40bfed),_0x38418f=this['editor']['commands']['get']('trackChanges');_0x4872a7['buttonView']['set']({'tooltip':_0x102918,'label':_0x102918,'icon':_0x35e69d}),_0x4872a7['buttonView']['bind']('isOn')['to'](_0x38418f,'value'),_0x4872a7['buttonView']['on']('execute',()=>{_0x38418f['execute'](),this['editor']['editing']['view']['focus']();}),_0x3d4d36(_0x4872a7,_0x1ab1ff,{'role':'menu'});const _0x44741b=[];for(const _0x3069d6 of _0x1ab1ff)ke(_0x3069d6)&&_0x44741b['push'](this['editor']['commands']['get'](_0x3069d6['model']['commandName']));const _0x3f2c80=_0x4872a7['buttonView'];return _0x3f2c80['actionView']['unbind']('isEnabled'),_0x3f2c80['arrowView']['unbind']('isEnabled'),_0x3f2c80['actionView']['bind']('isEnabled')['to'](_0x38418f,'isEnabled'),_0x3f2c80['arrowView']['bind']('isEnabled')['toMany'](_0x44741b,'isEnabled',(..._0x3bb3ac)=>_0x3bb3ac['some'](_0x5cc5ef=>_0x5cc5ef)),_0x4872a7['on']('execute',_0x533882=>{this['editor']['execute'](_0x533882['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4872a7;}['_createMenuBarMenu'](_0xaaaa87,_0x4d5b7a,_0x2494d1){const _0x20f602=new _0x4a6465(_0xaaaa87),_0x207f92=this['editor']['commands']['get']('trackChanges');_0x20f602['buttonView']['set']({'label':_0x2494d1,'icon':_0x35e69d});const _0x4d0142=new _0x2c851c(_0xaaaa87);for(const _0x4ce725 of _0x4d5b7a){if('separator'==_0x4ce725['type']){_0x4d0142['items']['add'](new _0x545f52(_0xaaaa87));continue;}const _0x238923=new _0x1b25ed(_0xaaaa87,_0x20f602),_0x2255bf=new _0x4af394(_0xaaaa87),_0x1a4a25=_0x4ce725['model'];_0x2255bf['bind'](...Object['keys'](_0x1a4a25))['to'](_0x1a4a25),_0x2255bf['delegate']('execute')['to'](_0x20f602),_0x2255bf['on']('execute',()=>{this['editor']['execute'](_0x1a4a25['commandName']),this['editor']['editing']['view']['focus']();}),_0x238923['children']['add'](_0x2255bf),_0x4d0142['items']['add'](_0x238923);}return _0x20f602['bind']('isEnabled')['to'](_0x207f92,'isEnabled'),_0x20f602['panelView']['children']['add'](_0x4d0142),_0x20f602;}['_initializeController'](_0x1a81a4){const _0x58b285=this['editor'],_0x4c0bae=_0x58b285['config'],_0x16e087=_0x58b285['plugins']['get']('Annotations'),_0x4736d9=_0x58b285['plugins']['get']('CommentsRepository'),_0x38a9ce=_0x58b285['plugins']['get']('EditorAnnotations'),_0x46c042=_0x58b285['plugins']['get'](_0xd58653)['me'],_0x480e50=_0x4c0bae['get']('trackChanges')['SuggestionThreadView'],_0x5c35cc=_0x4c0bae['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x59ec35,CommentThreadInputView:_0xf40898}=_0x58b285['plugins']['get']('CommentsUI');let _0xf79259,_0x236aba,_0xef7a5f;this['_annotationViews']['has'](_0x1a81a4['id'])?(_0x236aba=this['_annotationViews']['get'](_0x1a81a4['id']),_0xf79259=_0x236aba['mainView']):(_0xf79259=new _0x480e50(_0x58b285['locale'],_0x1a81a4,_0x46c042,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4c0bae['get']('comments.editorConfig'),'licenseKey':_0x4c0bae['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4c0bae['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4c0bae['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4c0bae['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x34dfb2(_0x4c0bae['get']('locale'),_0x58b285['locale']),'CommentView':_0x4c0bae['get']('comments')['CommentView'],'CommentsListView':_0x59ec35,'CommentThreadInputView':_0xf40898,'SuggestionView':_0x5c35cc}),_0xf79259['suggestionView']['acceptButton']['on']('execute',()=>{_0x58b285['editing']['view']['focus']();}),_0xf79259['suggestionView']['discardButton']['on']('execute',()=>{_0x58b285['editing']['view']['focus']();}),_0x236aba=_0x16e087['createAnnotationView'](this['editor']['locale'],_0xf79259),_0x236aba['bind']('isDirty')['to'](_0xf79259,'isDirty'),_0x236aba['bind']('length')['to'](_0xf79259),_0x236aba['bind']('type')['to'](_0xf79259,'type',_0xfc585a=>'suggestion-'+_0xfc585a),_0xf79259['on']('escape',()=>{_0xef7a5f['fire']('escape');}),this['_annotationViews']['set'](_0x1a81a4['id'],_0x236aba));const _0x1b0c92=_0x4736d9['createCommentThreadController'](_0x1a81a4['commentThread'],_0xf79259),_0x62770c=new pe(_0x58b285,_0x1a81a4,_0xf79259,_0x1b0c92),_0x401a11=_0x1a81a4['getAllAdjacentSuggestions']()['filter'](_0x458d7a=>_0x458d7a['isInContent']);_0xf79259['descriptionParts']=_0x58b285['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x401a11),this['_suggestionToController']['set'](_0x1a81a4,_0x62770c),this['_viewToController']['set'](_0xf79259,_0x62770c),_0xef7a5f=_0x16e087['createAnnotation']({'view':_0x236aba,'target':()=>{const _0x25d149=[],_0x51243c=_0x1a81a4['getAllAdjacentSuggestions']()['filter'](_0xb6f4ef=>_0xb6f4ef['isInContent']);for(const _0x9c88db of _0x51243c)_0x25d149['push'](..._0x9c88db['getMarkers']());return _0x468f08(_0x58b285['editing'],_0x25d149);},'type':()=>'suggestion-'+_0x62770c['view']['type']}),_0x4736d9['_bindAnnotationToEditors'](_0xf79259,_0xef7a5f),_0x16e087['add'](_0xef7a5f),_0x38a9ce['registerAnnotation'](_0xef7a5f);}['_destroyController'](_0x218399){const _0x4b0847=this['editor']['plugins']['get']('CommentsRepository'),_0x511f04=this['editor']['plugins']['get']('Annotations'),_0x315fb4=this['_suggestionToController']['get'](_0x218399),_0x4c0179=_0x315fb4['view'],_0x2f2201=_0x511f04['getByInnerView'](_0x4c0179);_0x4b0847['_unbindEditors'](_0x4c0179),_0x2f2201&&_0x511f04['remove'](_0x2f2201),this['_suggestionToController']['delete'](_0x218399),this['_viewToController']['delete'](_0x4c0179),_0x315fb4['destroy']();}['_updateController'](_0x550f0c){if(!_0x550f0c['isInContent']||!this['_suggestionToController']['has'](_0x550f0c))return;const _0x5910dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e5d15=this['_suggestionToController']['get'](_0x550f0c),_0x5506ab=_0x550f0c['getAllAdjacentSuggestions']();_0x2e5d15['view']['descriptionParts']=_0x5910dd['descriptionFactory']['getDescriptions'](_0x5506ab);}['destroy'](){for(const _0x399edc of this['_suggestionToController']['keys']())this['_destroyController'](_0x399edc);for(const _0x237399 of this['_annotationViews']['values']())_0x237399['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x15315a){return'model'in _0x15315a;}class k extends _0x1667de{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x51a013){this['editor']['plugins']['get'](p)['adapter']=_0x51a013;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x50828b){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x50828b);}['getSuggestions']({skipNotAttached:_0x1bd307=!0x1,toJSON:_0x184a07=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1bd307,'toJSON':_0x184a07});}['getSuggestion'](_0x57aa3c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x57aa3c);}}const w=['Pagination'];class T extends _0x1667de{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x47c21c=this['editor'];if(_0x47c21c['config']['define']('trackChangesData.editorCreator',_0x15fd58=>{const _0x549b96=_0x47c21c['model']['document']['getRootNames']()['reduce']((_0x1663b6,_0x4b81b1)=>(_0x1663b6[_0x4b81b1]='',_0x1663b6),{});return _0x47c21c['constructor']['create'](_0x549b96,_0x15fd58);}),'function'!=typeof _0x47c21c['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ca3b1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47fdde){return N(this['editor'],!0x0,_0x47fdde);}['getDataWithDiscardedSuggestions'](_0x1a56a6){return N(this['editor'],!0x1,_0x1a56a6);}}class D extends _0x1667de{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bbf14){function _0x26ce06(_0x1f46dc){return _0x1f46dc['map'](_0x56900c=>String['fromCharCode'](_0x56900c))['join']('');}super(_0x2bbf14),this['result']='end',_0x2bbf14[_0x26ce06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26ce06([0x76,0x69,0x65,0x77])][_0x26ce06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26ce06([0x61,0x75,0x74,0x6f]),_0x2bbf14[_0x26ce06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26ce06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26ce06([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26ce06([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26ce06([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x5d1669){return void 0x0!==_0x5d1669['getRootsAttributes'];}async function N(_0x23f9fb,_0xa21857,_0x34b56e){const _0x29bc1b=_0x20caf3(_0x23f9fb,w);_0x29bc1b['plugins']['push'](p,D),_0x29bc1b['rootsAttributes']=Ge(_0x23f9fb)?_0x23f9fb['getRootsAttributes']():void 0x0;const _0x296565=document['createDocumentFragment'](),_0x5bad59=_0x23f9fb['config']['get']('trackChangesData')['editorCreator'],_0x5769f4=await _0x5bad59(_0x29bc1b,()=>function(_0x39be13){const _0x31329f=document['createElement']('div');return _0x39be13['appendChild'](_0x31329f),_0x31329f;}(_0x296565));!function(_0x743d1,_0x19670c){const _0xb038c9=_0x743d1['model']['document']['getRootNames']()['reduce']((_0x19abf2,_0x152799)=>(_0x19abf2[_0x152799]=_0x743d1['data']['get']({'rootName':_0x152799}),_0x19abf2),{}),_0x2852b0=_0x743d1['plugins']['get']('Users')['users']['map'](_0x5674a1=>({'id':_0x5674a1['id'],'name':_0x5674a1['name']})),_0x3bb70d=_0x743d1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e5241=_0x743d1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x362776=_0x19670c['plugins']['get']('Users'),_0x38fd5d=_0x19670c['plugins']['get']('TrackChangesEditing'),_0x10c388=_0x19670c['plugins']['get']('CommentsRepository');for(const _0x29f974 of _0x10c388['getCommentThreads']())_0x29f974['remove']();for(const _0x23cafd of _0x2852b0)_0x362776['getUser'](_0x23cafd['id'])||_0x362776['addUser'](_0x23cafd);_0x362776['me']||_0x362776['useAnonymousUser']();for(const _0x45b754 of _0x4e5241)_0x10c388['addCommentThread'](_0x45b754);for(const _0x1bbdb5 of _0x3bb70d)_0x38fd5d['addSuggestionData'](_0x1bbdb5);_0x19670c['data']['set'](_0xb038c9);}(_0x23f9fb,_0x5769f4),_0x5769f4['execute'](_0xa21857?'acceptAllSuggestions':'discardAllSuggestions');const _0x2d9194=Ge(_0x5769f4)?_0x5769f4['getFullData'](_0x34b56e):_0x5769f4['data']['get'](_0x34b56e);return await _0x5769f4['destroy'](),_0x2d9194;}class Me extends _0x57a473{['options'];constructor(_0x2e3b3b,_0x306dcb){super(_0x2e3b3b),this['options']=_0x306dcb,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'](_0x457344,_0x549359){if(!this['element'])return;const _0xbe2549=[];for(const [_0x30c81d,_0x3f1274]of _0x457344){const _0x484b6d=document['createElement']('div');_0x484b6d['setAttribute']('data-ck-root-name',_0x30c81d),_0x484b6d['className']=_0x3f1274['classes']+'\x20ck-track-changes-preview__root-container',_0x484b6d['innerHTML']=_0x3f1274['content'],_0xbe2549['push'](_0x484b6d);}_0x549359(this['element'],_0xbe2549),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x231de4{constructor(_0x45f907){super(_0x45f907),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2572ae=this['editor'],_0xc9ae1e=_0x2572ae['locale'],_0x75f67d=_0x2572ae['plugins']['get']('Dialog');let _0x580cf4;const _0x293997=function(_0x367a07){const _0x462168={};if('editables'in _0x367a07['ui']['view']){for(const [_0x34d104,_0x5ba0ed]of Object['entries'](_0x367a07['ui']['view']['editables']))_0x462168[_0x34d104]=_0x5ba0ed['element'];}else _0x462168[_0x367a07['model']['document']['getRootNames']()[0x0]]=_0x367a07['ui']['view']['editable']['element'];return _0x462168;}(_0x2572ae),_0x7c3dc1=function(_0x37eb1f){let _0x3aab7e=0x0;for(const _0x6faf6d of Object['values'](_0x37eb1f))_0x3aab7e=Math['max'](_0x3aab7e,_0x6faf6d['getBoundingClientRect']()['width']);let _0x24feab=0x0;for(const _0x398ab3 of Object['values'](_0x37eb1f))_0x24feab+=_0x398ab3['getBoundingClientRect']()['height'];const _0x49b499=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2b9459=Math['min'](_0x24feab,_0x49b499);return{'width':_0x3aab7e,'height':_0x2b9459};}(_0x293997);_0x75f67d['show']({'id':'finalContentPreview','title':c(_0xc9ae1e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xc9ae1e,{'dialogRects':_0x7c3dc1}),'onHide':()=>{_0x580cf4['detachFromDom']();},'onShow':()=>{_0x2572ae['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4bdc87=>{const _0x3df9bc=this['_standarizeRootsData'](_0x4bdc87,_0x2572ae,_0x293997);_0x75f67d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3df9bc,_0x2572ae['config']['get']('trackChanges.preview.renderFunction'));}),_0x580cf4=new _0x348679(_0xc9ae1e,[_0x75f67d['view']]),_0x580cf4['attachToDom'](),_0x580cf4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2572ae['once']('destroy',()=>{_0x580cf4['detachFromDom']();});const _0x610123=_0x75f67d['view']['headerView']['class'];_0x75f67d['view']['headerView']['class']=_0x610123?_0x610123+'\x20ck-reset_all':'ck-reset_all',_0x75f67d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x75f67d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xf36c98=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2c5dec=_0xf36c98['previewMode'],_0x4e8dcb={};if('$labels'===_0x2c5dec){for(const _0x25f20e of _0xf36c98['getMergeFieldsIds']())_0x4e8dcb[_0x25f20e]=_0xf36c98['getLabel'](_0x25f20e)||_0x25f20e;}else{const _0x1fb4b6='$defaultValues'===_0x2c5dec?_0xf36c98['getDefaultValues']():_0xf36c98['getDataSetValues'](_0x2c5dec,!0x0);for(const _0x37f81e of Object['entries'](_0x1fb4b6)){const [_0x264b85,_0x3b472c]=_0x37f81e;_0x4e8dcb[_0x264b85]=null!==_0x3b472c?_0x3b472c:_0xf36c98['getLabel'](_0x264b85)||_0x264b85;}}return{'mergeFieldsData':_0x4e8dcb};}['_standarizeRootsData'](_0x2338bf,_0x36b72b,_0x2392ec){let _0x16cd7f;if('string'==typeof _0x2338bf){const _0x48e814=_0x36b72b['model']['document']['getRootNames']()[0x0];_0x16cd7f={[_0x48e814]:_0x2338bf};}else _0x16cd7f=_0x2338bf;const _0x3840b7=this['_fixMediaEmbeds'](_0x16cd7f,_0x36b72b),_0x470162=function(_0x57999b,_0x27a2de){for(const [_0xf1fcb9,_0x38e0ac]of _0x57999b)_0x38e0ac['classes']=_0x27a2de[_0xf1fcb9]['classList']['value']['replace']('ck-focused','');return _0x57999b;}(this['_sortRoots'](_0x36b72b)['reduce']((_0x5d1e94,_0x1fc2d7)=>(_0x5d1e94['push']([_0x1fc2d7,{'content':_0x3840b7[_0x1fc2d7],'classes':''}]),_0x5d1e94),[]),_0x2392ec);return _0x470162;}['_fixMediaEmbeds'](_0x22e4d3,_0x38c097){if(!_0x38c097['plugins']['has']('MediaEmbedEditing'))return _0x22e4d3;const _0x442e68=_0x38c097['plugins']['get']('MediaEmbedEditing');for(const [_0x13a5aa,_0x59ea0f]of Object['entries'](_0x22e4d3)){const _0x3460f9=document['createElement']('div');_0x3460f9['innerHTML']=_0x59ea0f,(_0x3460f9['querySelectorAll']('figure.media')['forEach'](_0x1e49c1=>{const _0x5ce7b7=_0x1e49c1['querySelector']('oembed');if(_0x5ce7b7){const _0xb415f8=_0x5ce7b7['getAttribute']('url');if(_0xb415f8){const _0x44acb5=_0x442e68['registry']['getMediaViewElement'](new _0xd34c45(_0x38c097['editing']['view']['document']),_0xb415f8,{'elementName':'','renderForEditingView':!0x0}),_0x4ecba1=document['createElement']('div');_0x4ecba1['classList']['add']('ck-media__wrapper'),_0x44acb5['render'](_0x4ecba1,_0x38c097['editing']['view']['domConverter']),_0x5ce7b7['replaceWith'](_0x4ecba1);}}}),_0x22e4d3[_0x13a5aa]=_0x3460f9['innerHTML']);}return _0x22e4d3;}['_sortRoots'](_0x52805d){if(!function(_0x4697ea){return void 0x0!==_0x4697ea['getRootsAttributes'];}(_0x52805d))return _0x52805d['model']['document']['getRootNames']();const _0x4ce3cc=[],_0x1dc845=new Map();for(const _0x15d2ff of _0x52805d['model']['document']['getRootNames']()){const _0x2ff722=_0x52805d['editing']['view']['getDomRoot'](_0x15d2ff)['getClientRects']()['item'](0x0);_0x4ce3cc['push'](_0x15d2ff),_0x1dc845['set'](_0x15d2ff,_0x2ff722);}return _0x4ce3cc['sort']((_0x1a8f1b,_0x466b37)=>{const _0x196154=_0x1dc845['get'](_0x1a8f1b),_0x1d34c6=_0x1dc845['get'](_0x466b37);return _0x196154['y']-_0x1d34c6['y']||_0x196154['x']-_0x1d34c6['x'];}),_0x4ce3cc;}}class te extends _0x1667de{static get['requires'](){return[T,_0x128a63];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x383d3d){super(_0x383d3d),_0x383d3d['commands']['add']('previewFinalContent',new re(this['editor'])),_0x383d3d['config']['define']('trackChanges.preview.renderFunction',(_0x10d60b,_0x35339f)=>{for(const _0x381dee of _0x35339f)_0x10d60b['appendChild'](_0x381dee);});}}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 _0x5e344c,Plugin as _0x550ef0,PendingActions as _0x42c0fc}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3c0c52,ObservableMixin as _0x1a411a,uid as _0x29542d,priorities as _0x37adb5,insertToPriorityArray as _0x474092,logWarning as _0x1b8704,getEnvKeystrokeText as _0x4f987c,FocusTracker as _0x2147c3,KeystrokeHandler as _0xa821b,Collection as _0x1605e5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xcba04c,IconCancel as _0x1374b9,IconTrackChanges as _0x27213d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x16d0e5,View as _0xecdda6,ViewCollection as _0x20a381,FocusCycler as _0x5ddfd6,ViewModel as _0x379201,createDropdown as _0x18bac6,SplitButtonView as _0x291d33,addListToDropdown as _0x318075,MenuBarMenuView as _0x4ba208,MenuBarMenuListView as _0x3e1657,ListSeparatorView as _0x1ff7e8,MenuBarMenuListItemView as _0xde6522,MenuBarMenuListItemButtonView as _0x3074fc,BodyCollection as _0x505171,Dialog as _0x5554bd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x43132b,hashObject as _0x1e8182,surroundingMarkersDetector as _0x478cce,FOCUS_ANNOTATION_KEYSTROKE as _0x44e7fc,AriaDescriptionView as _0x41a08c,setupThreadKeyboardNavigation as _0x463c62,trimHtml as ti,UserView as _0x41c98a,LateFocusButtonView as _0x4a7840,getDateTimeFormatter as _0x34adfd,getAllMarkersDomElementsSorted as _0x1ec63f,sanitizeEditorConfig as _0x1c1bae}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x768cf6,LiveRange as _0x14a494,LivePosition as _0x16b9a3,DowncastWriter as _0x2437da}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xefd93e,toWidget as _0x146b69}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x559c1b,set as _0x1887e2,isEqual as _0xf2f0b6,unset as _0x251b70,omit as Ft}from'es-toolkit/compat';import{Delete as _0x40bd7c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x567bd8}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4b61d8}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5e344c{['_enabledCommands'];constructor(_0x43ffc5,_0x3f88c0){super(_0x43ffc5),this['_enabledCommands']=_0x3f88c0,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 _0x23f287 of this['editor']['commands']['commands']())_0x23f287['affectsData']&&!this['_enabledCommands']['has'](_0x23f287)&&_0x23f287['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x50bcd2 of this['editor']['commands']['commands']())_0x50bcd2['affectsData']&&!this['_enabledCommands']['has'](_0x50bcd2)&&_0x50bcd2['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5e344c{['_suggestions'];constructor(_0x53022d,_0x12cae1){super(_0x53022d),this['_suggestions']=_0x12cae1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa1e77){const _0x4318aa=this['_suggestions']['get'](_0xa1e77);if(!_0x4318aa)throw new _0x3c0c52('track-changes-accept-suggestion-not-found',this);const _0xeada57=_0x4318aa['getRanges']();this['editor']['model']['canEditAt'](_0xeada57)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4318aa);}}class R extends _0x5e344c{['_suggestions'];constructor(_0x5c8ca6,_0x71b978){super(_0x5c8ca6),this['_suggestions']=_0x71b978,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x19bb8a){const _0x500ace=this['_suggestions']['get'](_0x19bb8a);if(!_0x500ace)throw new _0x3c0c52('track-changes-discard-suggestion-not-found',this);const _0x7e3ce9=_0x500ace['getRanges']();this['editor']['model']['canEditAt'](_0x7e3ce9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x500ace);}}function ls(_0x12b796,_0x3187d7){let _0x319619='';return _0x319619+=_0x12b796['split']('*')['map']((_0x452cb2,_0x5c991a)=>_0x5c991a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x452cb2)+'</span>':nn(_0x452cb2))['join'](''),_0x3187d7&&(_0x319619+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3187d7['value']+'\x22\x20title=\x22'+_0x3187d7['title']+'\x22></span>'),_0x319619;}function nn(_0x21c6ff){const _0x5b3e38=document['createElement']('span');return _0x5b3e38['innerText']=_0x21c6ff,_0x5b3e38['innerHTML'];}function ts(_0x28cd8f){return _0x28cd8f['sort']((_0xcefa2d,_0x100eb3)=>'deletion'==_0xcefa2d['type']&&'deletion'!=_0x100eb3['type']?-0x1:'deletion'!=_0xcefa2d['type']&&'deletion'==_0x100eb3['type']?0x1:0x0);}function to(_0x379a3a,_0x51b657){let _0x446fb2,_0x48ec4a=0x0;const _0x5f3a9a=[],_0x247b0e=_0x51b657['schema'];for(;_0x48ec4a<_0x379a3a['length'];){const _0x14ca63=_0x379a3a[_0x48ec4a],_0x4416c9=_0x379a3a[_0x48ec4a+0x1];_0x446fb2||(_0x446fb2=_0x51b657['createPositionBefore'](_0x14ca63)),on(_0x51b657,_0x14ca63,_0x4416c9)||(_0x5f3a9a['push'](_0x51b657['createRange'](_0x446fb2,_0x247b0e['isObject'](_0x14ca63)?_0x51b657['createPositionAfter'](_0x14ca63):_0x51b657['createPositionAt'](_0x14ca63,'end'))),_0x446fb2=null),_0x48ec4a++;}return _0x5f3a9a;}function on(_0x23cd7a,_0x2f903e,_0x2b003c){if(!_0x2b003c)return!0x1;const _0x5b7015=_0x23cd7a['createPositionAfter'](_0x2f903e),_0x252bd5=_0x23cd7a['createPositionBefore'](_0x2b003c);return _0x5b7015['isTouching'](_0x252bd5);}function rs(_0x177147,_0x38e9bc,_0x26b2b3){for(;_0x26b2b3['length'];){const _0x5c87bb=_0x26b2b3['splice'](0x0,0x64);_0x177147['change'](()=>{for(const _0x4d72bd of _0x5c87bb)_0x4d72bd['isInContent']&&_0x38e9bc['execute'](_0x4d72bd['id']);});}}class x extends _0x5e344c{['_command'];['_suggestions'];constructor(_0x50e3f2,_0x5ace63,_0x2856a9){super(_0x50e3f2),this['_command']=_0x5ace63,this['_suggestions']=_0x2856a9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x533e5c=Array['from'](this['_suggestions']['values']())['some'](_0xf47152=>_0xf47152['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x533e5c;}['execute'](){const _0x36f0ac=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4177bd of _0x36f0ac){const _0x4add18=_0x4177bd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4add18))return;}rs(this['editor']['model'],this['_command'],_0x36f0ac);}}class E extends _0x5e344c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2929ce,_0x59bb2b,_0x5e5ffc){super(_0x2929ce),this['_command']=_0x59bb2b,this['_suggestions']=_0x5e5ffc,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x118a4c=this['editor']['model']['document']['selection'],_0x17b62f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2cf4f4,_0xceb819){const _0x674d58=Array['from'](_0x2cf4f4['getRanges']()),_0x282244=new Set();for(const _0xc7f3f1 of _0xceb819)if(_0xc7f3f1['isInContent']){for(const _0x430336 of _0x674d58)for(const _0x383a3d of _0xc7f3f1['getRanges']())(_0x430336['isIntersecting'](_0x383a3d)||_0x2cf4f4['isCollapsed']&&!_0xc7f3f1['isMultiRange']&&_0xc7f3f1['next']&&_0x383a3d['end']['isTouching'](_0x430336['start']))&&_0x282244['add'](_0xc7f3f1);}return _0x282244;}(_0x118a4c,_0x17b62f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x12a10d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x50e278 of _0x12a10d){const _0x13306e=_0x50e278['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13306e))return;}rs(this['editor']['model'],this['_command'],_0x12a10d);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1a411a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x263a96,_0x4bd4b9){super(),this['id']=_0x4bd4b9['id'],this['type']=_0x4bd4b9['type'],this['subType']=_0x4bd4b9['subType']||null,this['author']=_0x4bd4b9['author'],this['creator']=_0x4bd4b9['creator']||_0x4bd4b9['author'],this['isExternal']=Boolean(_0x4bd4b9['attributes']&&_0x4bd4b9['attributes']['@external']),this['data']=null,this['_model']=_0x263a96,this['_onAccept']=_0x4bd4b9['onAccept'],this['_onDiscard']=_0x4bd4b9['onDiscard'],this['_onAttributesChange']=_0x4bd4b9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4bd4b9['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 _0x22f793=this;for(;_0x22f793['previous'];)_0x22f793=_0x22f793['previous'];return _0x22f793;}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'](_0x4f3392){this['_markerNames']['add'](_0x4f3392);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x306dc3=>this['_model']['markers']['get'](_0x306dc3))['filter'](_0x554915=>_0x554915);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x154847=>{for(const _0x40ec2b of this['getMarkers']())_0x154847['removeMarker'](_0x40ec2b);}),this['_markerNames']['clear']();}['removeMarker'](_0x28a6df){this['_model']['change'](_0x2ab145=>{_0x2ab145['removeMarker'](_0x28a6df);}),this['_markerNames']['delete'](_0x28a6df);}['addRange'](_0x5a3b77){const _0x117810='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x117810),this['_model']['change'](_0x329e9e=>{_0x329e9e['addMarker'](_0x117810,{'range':_0x5a3b77,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5053e4){for(const _0x1f0b3c of this['getRanges']())if(_0x1f0b3c['isIntersecting'](_0x5053e4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2d8248=>_0x2d8248['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3ac1f0,_0x407a5a)=>[..._0x3ac1f0,..._0x407a5a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1770fa=this['getRanges']();if(0x1!=_0x1770fa['length'])return null;const _0x57b8a3=_0x1770fa[0x0],_0x1b74b5=_0x57b8a3['start']['nodeAfter'],_0x20b5d7=_0x57b8a3['end']['nodeBefore'];return _0x1b74b5 instanceof _0x768cf6?_0x1b74b5!=_0x20b5d7?null:_0x1b74b5: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 _0x4b3a95=[];let _0x12a38f=this['head'];for(;_0x12a38f;)_0x4b3a95['push'](_0x12a38f),_0x12a38f=_0x12a38f['next'];return _0x4b3a95;}['setAttribute'](_0xb147ef,_0x5f3694){const _0x248487=_0x559c1b(this['attributes']);_0x1887e2(_0x248487,_0xb147ef,_0x5f3694),_0xf2f0b6(_0x248487,this['attributes'])||(this['attributes']=_0x248487,this['_onAttributesChange'](_0x248487));}['removeAttribute'](_0x51d365){const _0x283f10=_0x559c1b(this['attributes']);_0x251b70(_0x283f10,_0x51d365),_0xf2f0b6(_0x283f10,this['attributes'])||(this['attributes']=_0x283f10,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 _0x29542d()['substr'](0x1,0x5);}}function c(_0x587586,_0xf6f325,_0x36ae5a){const _0x2b2872=_0x587586['t'],t=_0x587586['t'];switch(_0xf6f325){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',_0x36ae5a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x36ae5a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x36ae5a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x36ae5a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x36ae5a);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',_0x36ae5a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x36ae5a);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',_0x36ae5a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x36ae5a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x36ae5a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x36ae5a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x36ae5a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x36ae5a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x36ae5a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x36ae5a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x36ae5a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x36ae5a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x36ae5a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x36ae5a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x36ae5a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x36ae5a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x36ae5a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x36ae5a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x36ae5a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x36ae5a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x36ae5a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x36ae5a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x36ae5a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x36ae5a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x36ae5a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x36ae5a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x36ae5a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x36ae5a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x36ae5a);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'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x36ae5a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x36ae5a);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'},_0x36ae5a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x36ae5a);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 _0x2b2872({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x36ae5a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2b2872({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x36ae5a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x36ae5a);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'},_0x36ae5a);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'},_0x36ae5a);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'},_0x36ae5a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf6f325;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1d2f43,_0x432698){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1d2f43,this['_locale']=_0x432698;}['getDescriptions'](_0x26eb75){const _0x1bba64=[],_0x2769b2=new Set(),_0x358a1d=new Set();for(let _0x4273d2=0x0;_0x4273d2<_0x26eb75['length'];_0x4273d2++){const _0x7e91e=_0x26eb75[_0x4273d2];if(!_0x7e91e['isInContent'])continue;const _0x4961a5=this['_handleCustomCallbackDescription'](_0x7e91e);if(_0x4961a5){if(null!=_0x7e91e['subType']){if(_0x2769b2['has'](_0x7e91e['subType']))continue;_0x2769b2['add'](_0x7e91e['subType']);}_0x1bba64['push'](_0x4961a5);}else{if('attribute'!=_0x7e91e['type'])'insertion'!=_0x7e91e['type']&&'deletion'!=_0x7e91e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1bba64,_0x7e91e,_0x26eb75[_0x4273d2+0x1]);else{const _0x2eb3dd=_0x7e91e['data']['key'];if(_0x358a1d['has'](_0x2eb3dd))continue;_0x358a1d['add'](_0x7e91e['data']['key']),_0x2eb3dd==u?this['_handleRenameSuggestionDescription'](_0x1bba64,_0x7e91e):this['_handleAttributeSuggestionDescription'](_0x1bba64,_0x7e91e);}}}return this['_resolveDescriptionItems'](_0x1bba64);}['registerDescriptionCallback'](_0x5165e5){this['_customCallbacks']['push'](_0x5165e5);}['registerElementLabel'](_0x4862e5,_0x4c3ef1,_0x534706=_0x37adb5['normal']){'function'==typeof _0x4862e5?_0x474092(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4862e5,'label':_0x4c3ef1,'priority':_0x534706}):this['_itemLabels']['set'](_0x4862e5,_0x4c3ef1);}['registerAttributeLabel'](_0x25f7fe,_0xbac1d3){this['_attributeLabels']['set'](_0x25f7fe,_0xbac1d3);}['getItemLabel'](_0x4e84dc,_0x4d1cbb=0x1){let _0x14fa04;for(const _0x44c81c of this['_itemLabelsCallbacks'])if(_0x44c81c['matchingCallback'](_0x4e84dc)){_0x14fa04=_0x44c81c['label'];break;}return _0x14fa04||(_0x14fa04=this['_itemLabels']['get'](_0x4e84dc['name'])),_0x14fa04?_0x14fa04(_0x4d1cbb):0x1!==_0x4d1cbb?_0x4d1cbb+'\x20'+_0x4e84dc['name']+'s':''+_0x4e84dc['name'];}['_addDescriptionItems'](_0x229593,_0x47e306){const _0x2eb6e1=_0x47e306['getFirstRange']()['getWalker'](),_0x30455d='insertion'==_0x47e306['type']?'add':'remove';for(const _0x1b5037 of _0x2eb6e1){const _0x504d1b=_0x1b5037['item'],_0xa43834=_0x229593[_0x229593['length']-0x1];if(_0x504d1b['is']('$textProxy'))_0xa43834&&_0xa43834['type']['indexOf']('Container')>-0x1&&_0x229593['pop'](),_0xa43834&&'text'==_0xa43834['type']?_0xa43834[_0x30455d]+=_0x504d1b['data']:_0x229593['push']({'type':'text','add':'add'==_0x30455d?_0x504d1b['data']:'','remove':'remove'==_0x30455d?_0x504d1b['data']:''});else{if(this['_schema']['isObject'](_0x504d1b)){const _0x5f63ba=_0x504d1b;if(_0xa43834&&_0xa43834['type']['indexOf']('Container')>-0x1&&_0x229593['pop'](),'elementEnd'==_0x1b5037['type'])continue;_0xa43834&&_0xa43834['type']==_0x30455d+'Object'&&_0xa43834['element']['name']==_0x5f63ba['name']?_0xa43834['quantity']++:_0x229593['push']({'type':_0x30455d+'Object','element':_0x5f63ba,'quantity':0x1}),_0x2eb6e1['skip'](_0x301e75=>!('elementEnd'==_0x301e75['type']&&_0x301e75['item']==_0x504d1b));}else{if(this['_schema']['checkChild'](_0x504d1b,'$text')||_0x504d1b['is']('element','softBreak')){const _0x232029=_0x504d1b;if('add'==_0x30455d&&'elementStart'==_0x1b5037['type']||'remove'==_0x30455d&&'elementEnd'==_0x1b5037['type'])continue;if(_0xa43834&&-0x1==_0xa43834['type']['indexOf']('Container')){'text'==_0xa43834['type']&&(_0xa43834[_0x30455d]+='\x0a');continue;}let _0x49e3c0;if(_0x49e3c0='add'==_0x30455d?_0x232029['nextSibling']&&!this['_schema']['isObject'](_0x232029['nextSibling'])?_0x232029['nextSibling']:null:_0x232029['previousSibling']&&!this['_schema']['isObject'](_0x232029['previousSibling'])?_0x232029['previousSibling']:null,_0x232029['isEmpty']||_0x49e3c0&&_0x49e3c0['isEmpty']){const _0x10bf8d=_0x49e3c0&&_0x49e3c0['isEmpty']?_0x49e3c0:_0x232029;_0xa43834&&_0xa43834['type']==_0x30455d+'EmptyContainer'&&_0xa43834['element']['name']==_0x10bf8d['name']?_0xa43834['quantity']++:_0x229593['push']({'type':_0x30455d+'EmptyContainer','element':_0x10bf8d,'quantity':0x1});}else _0x229593['push']({'type':_0x30455d+'Container','element':_0x232029});}}}}}['_resolveDescriptionItems'](_0x15c2dc){const _0x356b91=this['_locale'],_0x236f84=[],_0x58e57f=[],_0x892ccd=[];for(const _0xdd4dbf of _0x15c2dc)switch(_0xdd4dbf['type']){case'text':if(_0xdd4dbf['add']=_0xdd4dbf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xdd4dbf['remove']=_0xdd4dbf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xdd4dbf['add']&&''!=_0xdd4dbf['remove']){_0x236f84['push']({'type':'replace','content':c(_0x356b91,'REPLACE_TEXT',['\x22'+_0xdd4dbf['remove']+'\x22','\x22'+_0xdd4dbf['add']+'\x22'])});continue;}if(null!=_0xdd4dbf['add']['match'](/^ +$/)){_0x236f84['push']({'type':'insertion','content':c(_0x356b91,'*Insert:*\x20%0',c(_0x356b91,'ELEMENT_SPACE',_0xdd4dbf['add']['length']))});continue;}if(null!=_0xdd4dbf['remove']['match'](/^ +$/)){_0x236f84['push']({'type':'deletion','content':c(_0x356b91,'*Remove:*\x20%0',c(_0x356b91,'ELEMENT_SPACE',_0xdd4dbf['remove']['length']))});continue;}if(''!=_0xdd4dbf['add']){_0x236f84['push']({'type':'insertion','content':c(_0x356b91,'*Insert:*\x20%0','\x22'+_0xdd4dbf['add']+'\x22')});continue;}_0x236f84['push']({'type':'deletion','content':c(_0x356b91,'*Remove:*\x20%0','\x22'+_0xdd4dbf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x236f84['push']({'type':'insertion','content':c(_0x356b91,'*Insert:*\x20%0',this['getItemLabel'](_0xdd4dbf['element'],_0xdd4dbf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x236f84['push']({'type':'deletion','content':c(_0x356b91,'*Remove:*\x20%0',this['getItemLabel'](_0xdd4dbf['element'],_0xdd4dbf['quantity']))});continue;case'addContainer':_0x236f84['push']({'type':'insertion','content':c(_0x356b91,'*Split:*\x20%0',this['getItemLabel'](_0xdd4dbf['element'],_0xdd4dbf['quantity']))});continue;case'removeContainer':_0x236f84['push']({'type':'deletion','content':c(_0x356b91,'*Merge:*\x20%0',this['getItemLabel'](_0xdd4dbf['element'],_0xdd4dbf['quantity']))});continue;case'addFormat':_0x58e57f['push'](_0xdd4dbf['key']);continue;case'removeFormat':_0x892ccd['push'](_0xdd4dbf['key']);continue;default:_0x236f84['push'](_0xdd4dbf);}if(_0x58e57f['length']){const _0x4a42f4=_0x58e57f['map'](_0x501bd6=>this['_attributeLabels']['has'](_0x501bd6)?this['_attributeLabels']['get'](_0x501bd6):_0x501bd6)['join'](',\x20');_0x236f84['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4a42f4)});}if(_0x892ccd['length']){const _0x274bfd=_0x892ccd['map'](_0x449e1c=>this['_attributeLabels']['has'](_0x449e1c)?this['_attributeLabels']['get'](_0x449e1c):_0x449e1c)['join'](',\x20');_0x236f84['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x274bfd)});}return _0x236f84;}['_handleCustomCallbackDescription'](_0x7e57fb){for(const _0x1f384d of this['_customCallbacks']){const _0x53d40f=_0x1f384d(_0x7e57fb);if(_0x53d40f&&'type'in _0x53d40f)return _0x53d40f;}}['_handleAttributeSuggestionDescription'](_0x7bcf5d,_0xa33694){const _0x35d379=_0xa33694['data'],_0x241ac5=void 0x0===_0x35d379['newValue']?'removeFormat':'addFormat';_0x7bcf5d['push']({'type':_0x241ac5,'key':_0x35d379['key']});}['_handleRenameSuggestionDescription'](_0x2a2ee3,_0x45bb27){_0x2a2ee3['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x45bb27['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3f852d,_0x492ee2,_0x554d82){if(this['_addDescriptionItems'](_0x3f852d,_0x492ee2),_0x554d82&&_0x554d82['getFirstRange']()&&!_0x492ee2['getFirstRange']()['end']['isEqual'](_0x554d82['getFirstRange']()['start'])){const _0xfecb3b=_0x3f852d[_0x3f852d['length']-0x1],_0xbcfb95='insertion'==_0x492ee2['type']?'add':'remove';_0xfecb3b&&'text'==_0xfecb3b['type']&&(_0xfecb3b[_0xbcfb95]+='\x0a');}}}class U extends _0x550ef0{['afterInit'](){const _0x1736b9=this['editor'],_0x473fa0=_0x1736b9['plugins']['get']('TrackChangesEditing');_0x1736b9['commands']['get']('showAIAssistant')&&_0x473fa0['enableCommand']('showAIAssistant');}}class V extends _0x550ef0{['afterInit'](){const _0x6e05c5=this['editor'],_0x4fbc5c=_0x6e05c5['locale'];if(!_0x6e05c5['plugins']['has']('AlignmentEditing'))return;const _0x15599e=_0x6e05c5['plugins']['get']('TrackChangesEditing');_0x15599e['enableDefaultAttributesIntegration']('alignment'),_0x15599e['registerBlockAttribute']('alignment'),_0x15599e['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4fbc5c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4937a2=this['editor'],_0x2c6607=_0x4937a2['locale'];_0x4937a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c6a53=>{if('formatBlock'!=_0x5c6a53['type'])return;const {data:_0x222647}=_0x5c6a53;if(_0x222647&&'alignment'==_0x222647['commandName']){const _0x5ad9e6=_0x222647['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x2c6607,'*Format:*\x20%0',function(_0x290daa){switch(_0x290daa){case'left':return c(_0x2c6607,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x2c6607,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x2c6607,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x2c6607,'FORMAT_JUSTIFY_TEXT');}}(_0x5ad9e6))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x550ef0{['afterInit'](){const _0x370d0e=this['editor'],_0x12b67f=_0x370d0e['plugins']['get']('TrackChangesEditing'),_0x3ecea1=_0x370d0e['locale'];for(const _0x58215c of Zt){if(!_0x370d0e['plugins']['has'](_0x58215c))continue;const _0x54dd28=_0x58215c['slice'](0x0,-0x7)['toLowerCase'](),_0x4ad8e8='FORMAT_'+_0x54dd28['toUpperCase']();_0x12b67f['enableDefaultAttributesIntegration'](_0x54dd28),_0x12b67f['registerInlineAttribute'](_0x54dd28),_0x12b67f['descriptionFactory']['registerAttributeLabel'](_0x54dd28,c(_0x3ecea1,_0x4ad8e8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ea0d=this['editor'],_0x14acb9=_0x17ea0d['locale'],_0x543372=_0x17ea0d['plugins']['get']('TrackChangesEditing');function _0x5d4fbd(_0x13612e,_0xfe4288){_0x543372['descriptionFactory']['registerDescriptionCallback'](_0x2036f0=>{if('formatInline'!=_0x2036f0['type'])return;const {data:_0x163755}=_0x2036f0;return _0x163755&&_0x163755['commandName']===_0x13612e?_0x163755['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x14acb9,'*Format:*\x20%0',_0xfe4288)}:{'type':'format','content':c(_0x14acb9,'*Remove\x20format:*\x20%0',_0xfe4288)}:void 0x0;});}_0x5d4fbd('bold',c(_0x14acb9,'FORMAT_BOLD')),_0x5d4fbd('italic',c(_0x14acb9,'FORMAT_ITALIC')),_0x5d4fbd('underline',c(_0x14acb9,'FORMAT_UNDERLINE')),_0x5d4fbd('code',c(_0x14acb9,'FORMAT_CODE')),_0x5d4fbd('strikethrough',c(_0x14acb9,'FORMAT_STRIKETHROUGH')),_0x5d4fbd('subscript',c(_0x14acb9,'FORMAT_SUBSCRIPT')),_0x5d4fbd('superscript',c(_0x14acb9,'FORMAT_SUPERSCRIPT'));}}class G extends _0x550ef0{['afterInit'](){const _0x259ffa=this['editor'],_0x46b2ed=_0x259ffa['locale'];if(!_0x259ffa['plugins']['has']('BlockQuoteEditing'))return;const _0x1537f7=_0x259ffa['plugins']['get']('TrackChangesEditing'),_0x1a3f4a=this['editor']['commands']['get']('blockQuote');_0x1537f7['enableCommand']('blockQuote',(_0x5402f8,_0x2fbbb1={})=>{const _0x2d2249=this['editor']['model']['document']['selection'],_0x54047f=_0x2fbbb1&&void 0x0!==_0x2fbbb1['forceValue']?_0x2fbbb1['forceValue']:!_0x1a3f4a['value'];let _0x344c80=[];if(_0x54047f){const _0xd7e5a5=Array['from'](_0x2d2249['getSelectedBlocks']())['filter'](_0x133b25=>oo(_0x133b25)||function(_0x3e038e,_0x1c82fb){const _0x44847d=_0x1c82fb['checkChild'](_0x3e038e['parent'],'blockQuote'),_0x44a2cb=_0x1c82fb['checkChild'](['$root','blockQuote'],_0x3e038e);return _0x44847d&&_0x44a2cb;}(_0x133b25,this['editor']['model']['schema']));_0x344c80=to(_0xd7e5a5,_0x259ffa['model']);}else{const _0x30b4e6=Array['from'](_0x2d2249['getSelectedBlocks']())['filter'](_0x3eccfd=>oo(_0x3eccfd));_0x344c80=to(_0x30b4e6,_0x259ffa['model']);}_0x259ffa['model']['change'](()=>{for(const _0x4d97da of _0x344c80)_0x1537f7['markBlockFormat'](_0x4d97da,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x54047f}]});});}),_0x1537f7['descriptionFactory']['registerDescriptionCallback'](_0xea7402=>{const {data:_0x4cce97}=_0xea7402;if(_0x4cce97&&'blockQuote'==_0x4cce97['commandName']){const _0x1ef463=c(_0x46b2ed,'ELEMENT_BLOCK_QUOTE');return _0x4cce97['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x46b2ed,'*Set\x20format:*\x20%0',_0x1ef463)}:{'type':'format','content':c(_0x46b2ed,'*Remove\x20format:*\x20%0',_0x1ef463)};}});}}function oo(_0xaadbd7){return'blockQuote'==_0xaadbd7['parent']['name'];}class L extends _0x550ef0{['afterInit'](){const _0x5c7a1e=this['editor'],_0x31720e=_0x5c7a1e['locale'],_0x5384d1=_0x5c7a1e['plugins']['get']('TrackChangesEditing');_0x5c7a1e['plugins']['has']('BookmarkEditing')&&(_0x5384d1['enableCommand']('insertBookmark'),_0x5384d1['enableDefaultAttributesIntegration']('updateBookmark'),_0x5384d1['registerBlockAttribute']('bookmarkId'),_0x5384d1['descriptionFactory']['registerDescriptionCallback'](_0x25ba2d=>{if('insertion'!=_0x25ba2d['type']&&'deletion'!=_0x25ba2d['type']&&'attribute'!=_0x25ba2d['type'])return;const _0x91932f=_0x25ba2d['getContainedElement']();if(null==_0x91932f)return;if(!_0x91932f['is']('element','bookmark'))return;const _0x5670c9=_0x91932f['getAttribute']('bookmarkId');if('insertion'==_0x25ba2d['type'])return{'type':'insertion','content':c(_0x31720e,'*Insert:*\x20%0','\x22'+_0x5670c9+'\x22\x20'+c(_0x31720e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x25ba2d['type'])return{'type':'deletion','content':c(_0x31720e,'*Remove:*\x20%0','\x22'+_0x5670c9+'\x22\x20'+c(_0x31720e,'ELEMENT_BOOKMARK'))};const {data:_0x46e2c6}=_0x25ba2d;if(!_0x46e2c6||'bookmarkId'!=_0x46e2c6['key'])return;return{'type':'format','content':c(_0x31720e,'*Set\x20bookmark:*\x20%0','\x22'+_0x46e2c6['newValue']+'\x22')};}));}}class J extends _0x550ef0{['afterInit'](){const _0x2cf813=this['editor'];_0x2cf813['plugins']['has']('CaseChange')&&(_0x2cf813['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2cf813['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2cf813['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x550ef0{['afterInit'](){const _0x35c720=this['editor'];_0x35c720['commands']['get']('ckbox')&&_0x35c720['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x550ef0{['afterInit'](){const _0x5468b0=this['editor'];if(!_0x5468b0['plugins']['has']('CodeBlock'))return;const _0x35f7bf=_0x5468b0['plugins']['get']('TrackChangesEditing'),_0x1f3342=_0x5468b0['locale'],_0x54fb30=_0x5468b0['config']['get']('codeBlock')['languages'],_0x3441d6=_0x5468b0['commands']['get']('codeBlock');_0x35f7bf['enableCommand']('indentCodeBlock'),_0x35f7bf['enableCommand']('outdentCodeBlock'),_0x35f7bf['enableCommand']('codeBlock',(_0x43b6f5,_0xf57ce6={})=>{const _0x26de2b=_0x5468b0['model'],_0x1e3763=_0x5468b0['model']['document']['selection'],_0x449e9c=_0xf57ce6&&void 0x0!==_0xf57ce6['forceValue']?_0xf57ce6['forceValue']:!_0x3441d6['value'];let _0x39548c;_0xf57ce6['language']||(_0xf57ce6['language']=_0x54fb30[0x0]['language']),_0x39548c=_0x449e9c?Array['from'](_0x1e3763['getSelectedBlocks']())['filter'](_0x1178b5=>eo(_0x1178b5)||function(_0x54ae9a,_0x12c1b6){if(_0x54ae9a['is']('rootElement')||_0x12c1b6['isLimit'](_0x54ae9a))return!0x1;return _0x12c1b6['checkChild'](_0x54ae9a['parent'],'codeBlock');}(_0x1178b5,_0x26de2b['schema'])):Array['from'](_0x1e3763['getSelectedBlocks']())['filter'](_0x571dde=>eo(_0x571dde));const _0x35f143=to(_0x39548c,_0x26de2b);_0x26de2b['change'](()=>{for(const _0x396598 of _0x35f143)_0x35f7bf['markBlockFormat'](_0x396598,{'commandName':'codeBlock','commandParams':[{..._0xf57ce6,'forceValue':_0x449e9c}],'formatGroupId':'blockName'});});}),(_0x35f7bf['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d9c6d=>c(_0x1f3342,'ELEMENT_CODE_BLOCK',_0x3d9c6d)),_0x35f7bf['descriptionFactory']['registerDescriptionCallback'](_0x273798=>{if('formatBlock'!=_0x273798['type'])return;const _0xac9e9d=_0x1f3342['t'],{data:_0x1af91b}=_0x273798;if(!_0x1af91b||'codeBlock'!=_0x1af91b['commandName'])return;const _0x156a7a=_0x1af91b['commandParams'][0x0]['language'],_0x336306=_0xac9e9d(_0x54fb30['find'](_0x4c8c75=>_0x4c8c75['language']===_0x156a7a)['label'])['toLowerCase']();return _0x1af91b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1f3342,'*Set\x20format:*\x20%0',c(_0x1f3342,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x336306+')')}:{'type':'format','content':c(_0x1f3342,'*Remove\x20format:*\x20%0',c(_0x1f3342,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3d93b0){return'codeBlock'==_0x3d93b0['name'];}class q extends _0x550ef0{['afterInit'](){const _0x19e30e=this['editor'];if(!_0x19e30e['plugins']['has']('CommentsEditing'))return;_0x19e30e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x6bd755,_0x5a6a3b,_0x117892){const _0x257a1d=[];for(const _0x5d8c31 of _0x5a6a3b['getItems']())_0x5d8c31['hasAttribute'](_0x6bd755)&&_0x257a1d['push'](_0x117892['createRangeOn'](_0x5d8c31));return _0x257a1d;}function Fe(_0x484876,_0x327a66,{showActiveMarker:_0xe948e4=!0x0}={}){const _0x116764=_0x484876['plugins']['get']('TrackChangesEditing');return(_0x1566b2,_0x2eec5b,_0xf88847)=>{if(!_0xf88847['consumable']['test'](_0x2eec5b['markerRange'],_0x1566b2['name']))return;const _0x4f6c63=_0x2eec5b['markerRange']['getWalker'](),_0x1b8cad=_0x2eec5b['markerRange']['start'],_0xb7549e=_0x484876['model']['schema'];let _0x4f96e6=null,_0x1f0e4a=null,_0x47b185=!0x1,_0x5efa2f=!0x1;for(const _0x45ca3e of _0x4f6c63){const _0x53ef6c=_0x45ca3e['item'];_0x47b185=_0x47b185||_0xb7549e['isContent'](_0x53ef6c);const _0x2bb34e=_0xf88847['mapper']['toViewElement'](_0x53ef6c);if(_0x2bb34e&&_0x2bb34e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x45ca3e['type']&&(_0xb7549e['isBlock'](_0x53ef6c)&&!_0xb7549e['isLimit'](_0x53ef6c)&&(_0x53ef6c['nextSibling']||_0x1b8cad['isAtEnd']?_0x4f96e6&&_0x4f96e6['parent']==_0x53ef6c||(_0x4f96e6=_0x53ef6c,_0xae0754(_0x45ca3e['previousPosition']),_0x5efa2f=!0x0):_0x1f0e4a=_0x1f0e4a||_0x45ca3e['previousPosition']));}function _0xae0754(_0x4f323b){const {authorId:_0x28c3a8}=_0x116764['_splitMarkerName'](_0x2eec5b['markerName']),_0x23bec6=_0xf88847['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x327a66,'data-author-id':_0x28c3a8}),_0x47cdcc=_0xf88847['mapper']['toViewPosition'](_0x4f323b);_0xe948e4&&_0x116764['activeMarkers']['includes'](_0x2eec5b['markerName'])&&_0xf88847['writer']['addClass']('ck-suggestion-marker--active',_0x23bec6),_0xf88847['writer']['insert'](_0x47cdcc,_0x23bec6),_0xf88847['mapper']['bindElementToMarker'](_0x23bec6,_0x2eec5b['markerName']);}_0x47b185||_0x5efa2f||!_0x1f0e4a||_0xae0754(_0x1f0e4a);};}class z extends _0x550ef0{static get['requires'](){return[_0x40bd7c];}['init'](){const _0x1be4df=this['editor'],_0x3f7a50=_0x1be4df['plugins']['get']('TrackChangesEditing');_0x3f7a50['enableCommand']('delete');const _0x28cbc7=_0x1be4df['commands']['get']('deleteForward');_0x3f7a50['enableCommand']('deleteForward',(_0x44a135,_0x40df20={})=>{const _0x31877d=_0x1be4df['model']['createSelection'](_0x1be4df['model']['document']['selection']);_0x31877d['isCollapsed']&&_0x1be4df['model']['modifySelection'](_0x31877d,{'direction':'forward','unit':_0x40df20['unit']});const _0x5ecd9c=_0x31877d['getFirstRange'](),_0x16fb39=_0x14a494['fromRange'](_0x5ecd9c);let _0x4ac6b4;_0x44a135(_0x40df20),_0x4ac6b4='$graveyard'==_0x16fb39['root']['rootName']?_0x1be4df['model']['createRange'](_0x5ecd9c['start']):_0x1be4df['model']['createRange'](_0x16fb39['start'],_0x16fb39['end']),_0x16fb39['detach'](),_0x1be4df['model']['enqueueChange'](_0x28cbc7['buffer']['batch'],_0xbf250c=>{_0x28cbc7['buffer']['lock'](),_0xbf250c['setSelection'](_0xbf250c['createRange'](_0x4ac6b4['end'])),_0x28cbc7['buffer']['unlock']();});}),_0x1be4df['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x1be4df,'merge'),{'priority':'high'}),_0x1be4df['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4eab55,_0x77bf53,_0x33d42f)=>{_0x33d42f['options']['showSuggestionHighlights']&&Fe(_0x1be4df,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4eab55,_0x77bf53,_0x33d42f);},{'priority':'high'}),_0x1be4df['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x21257f,_0x3da15e,_0x54b57b)=>{const _0x2c9f5d=_0x54b57b['mapper']['markerNameToElements'](_0x3da15e['markerName']);if(_0x2c9f5d){for(const _0x54c29b of _0x2c9f5d)_0x54c29b['is']('uiElement')&&(_0x54b57b['mapper']['unbindElementFromMarkerName'](_0x54c29b,_0x3da15e['markerName']),_0x54b57b['writer']['remove'](_0x54c29b));}},{'priority':'high'});}}class W extends _0x550ef0{['afterInit'](){const _0x39cf8e=this['editor'];if(!_0x39cf8e['plugins']['has']('ListEditing'))return;const _0x505fa6=_0x39cf8e['locale'],_0x2061ee=_0x39cf8e['plugins']['get']('TrackChangesEditing'),_0x534d4e=_0x39cf8e['plugins']['has']('TodoListEditing'),_0x392eec=!!_0x39cf8e['config']['get']('list.multiBlock');function _0x24c6a0(_0x241b25){return{'type':'format','content':''+c(_0x505fa6,'*Set\x20format:*\x20%0',_0x241b25)};}function _0x2bd967(_0x1ef019){return{'type':'format','content':''+c(_0x505fa6,'*Remove\x20format:*\x20%0',_0x1ef019)};}_0x2061ee['enableDefaultAttributesIntegration']('numberedList'),_0x2061ee['enableDefaultAttributesIntegration']('bulletedList'),_0x2061ee['enableDefaultAttributesIntegration']('customNumberedList'),_0x2061ee['enableDefaultAttributesIntegration']('customBulletedList'),_0x2061ee['enableDefaultAttributesIntegration']('indentList'),_0x2061ee['enableDefaultAttributesIntegration']('outdentList'),_0x2061ee['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2061ee['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2061ee['registerBlockAttribute']('listItemId'),_0x2061ee['registerBlockAttribute']('listType'),_0x2061ee['registerBlockAttribute']('listIndent'),_0x392eec&&(_0x2061ee['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2061ee['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x534d4e&&(_0x2061ee['enableDefaultAttributesIntegration']('todoList'),_0x2061ee['enableDefaultAttributesIntegration']('checkTodoList'),_0x2061ee['registerBlockAttribute']('todoListChecked'),_0x2061ee['descriptionFactory']['registerDescriptionCallback'](_0x464b4c=>{const {data:_0x4af7a6}=_0x464b4c;if(_0x4af7a6&&'todoListChecked'==_0x4af7a6['key'])return{'type':'format','content':_0x4af7a6['newValue']?c(_0x505fa6,'*Check\x20item*'):c(_0x505fa6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4de1d0=>{if(_0x4de1d0['batch']['isUndo'])return!0x1;let _0x3bc3de=!0x1;const _0x4904b6=_0x2061ee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x410199=>'todoListChecked'===_0x2061ee['_getAttributeKey'](_0x410199));for(const _0x5c9df3 of _0x4904b6){'todo'!=_0x5c9df3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2061ee['_findSuggestions'](_0x5c9df3['getFirstRange'](),'attribute')['find'](_0x4c2f6e=>'listType'===_0x2061ee['_getAttributeKey'](_0x4c2f6e['suggestion']))||(_0x4de1d0['removeMarker'](_0x5c9df3['getFirstMarker']()),_0x3bc3de=!0x0));}return _0x3bc3de;})),_0x2061ee['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x505fa6,'FORMAT_INDENT'));const _0x28499a={'type':'format','content':''};_0x2061ee['descriptionFactory']['registerDescriptionCallback'](_0x4c6a21=>{const {data:_0x484cd8}=_0x4c6a21;if(!_0x484cd8||'listType'!=_0x484cd8['key'])return;let _0x39b709=_0x4c6a21['head'];for(;_0x39b709;){if(_0x39b709['data']&&(('listStyle'==_0x39b709['data']['key']||'listMarkerStyle'==_0x39b709['data']['key'])&&(_0x39b709['data']['newValue']&&'default'!=_0x39b709['data']['newValue']||'default'!=_0x39b709['data']['oldValue']&&!_0x484cd8['newValue'])||!_0x392eec&&_0x39b709['data']['key']==u))return _0x28499a;_0x39b709=_0x39b709['next'];}if(null==_0x484cd8['newValue'])switch(_0x484cd8['oldValue']){case'bulleted':return _0x2bd967(c(_0x505fa6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2bd967(c(_0x505fa6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2bd967(c(_0x505fa6,'ELEMENT_TODO_LIST'));}switch(_0x484cd8['newValue']){case'bulleted':return _0x24c6a0(c(_0x505fa6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24c6a0(c(_0x505fa6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24c6a0(c(_0x505fa6,'ELEMENT_TODO_LIST'));}}),_0x2061ee['descriptionFactory']['registerDescriptionCallback'](_0x13b241=>{const {data:_0x13983e}=_0x13b241;if(_0x13983e&&'listIndent'==_0x13983e['key'])return null==_0x13983e['newValue']||null==_0x13983e['oldValue']&&0x0==_0x13983e['newValue']?_0x28499a:void 0x0;}),_0x2061ee['descriptionFactory']['registerDescriptionCallback'](_0x1c5a5e=>{if('attribute'!=_0x1c5a5e['type'])return;const {data:_0x3c9b7b}=_0x1c5a5e;if(!_0x3c9b7b||'listItemId'!=_0x3c9b7b['key'])return;const _0x34b55d=Te(_0x1c5a5e);return'newValue'==_0x34b55d?{'type':'format','content':c(_0x505fa6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x34b55d?{'type':'format','content':c(_0x505fa6,'*Split:*\x20list\x20item')}:_0x28499a;}),_0x39cf8e['model']['document']['registerPostFixer'](_0x1566d5=>this['listItemIdFixer'](_0x1566d5)),_0x39cf8e['model']['document']['registerPostFixer'](_0x13d43a=>this['noTrackChangesFixer'](_0x13d43a)),_0x39cf8e['model']['document']['on']('change:data',(_0x63dade,_0x2019fc)=>{if(_0x2019fc['isUndo']||!_0x2019fc['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x10e00b){if(_0x10e00b['batch']['isUndo']||!_0x10e00b['batch']['isLocal'])return!0x1;let _0x582e48=!0x1;const _0x453c29=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x345208=>_0x345208['data']&&'listItemId'==_0x345208['data']['key'])['filter'](_0x2b5a72=>_0x2b5a72['data']['newValue']&&_0x2b5a72['data']['oldValue']);for(const _0x31a3cd of _0x453c29)Te(_0x31a3cd)||(_0x10e00b['removeMarker'](_0x31a3cd['getFirstMarker']()),_0x582e48=!0x0);return _0x582e48;}['noTrackChangesFixer'](_0x27c547){if(_0x27c547['batch']['isUndo']||!_0x27c547['batch']['isLocal'])return!0x1;const _0x38a761=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x38a761['trackChangesCommand']['value'])return!0x1;let _0x2c40a3=!0x1;const _0x530c8a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1e2146=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x27ed57=>'attribute'==_0x27ed57['type'])['filter'](_0x4e08ea=>_0x530c8a['includes'](_0x4e08ea['attributeKey']));if(0x0==_0x1e2146['length'])return _0x2c40a3;for(const _0x4f52b9 of _0x1e2146){const _0x55f6c2=_0x38a761['_findSuggestions'](_0x4f52b9['range'],'attribute')['filter'](_0x10962a=>!_0x10962a['meta']['isNextTo'])['map'](_0x22c507=>_0x22c507['suggestion'])['filter'](_0x9379e3=>{const _0x462280=_0x38a761['_getAttributeKey'](_0x9379e3);return _0x530c8a['includes'](_0x462280);});if(_0x55f6c2['length']){for(const _0x3578ac of _0x55f6c2)_0x27c547['removeMarker'](_0x3578ac['getFirstMarker']());_0x2c40a3=!0x0;}}return _0x2c40a3;}['assureChains'](){const _0x413690=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46fd57=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x679f68;const _0x4f01a6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c3317=>{if(_0x1c3317['data']['oldRange']||!_0x1c3317['data']['newRange'])return null;if(!_0x1c3317['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x551869}=_0x413690['_splitMarkerName'](_0x1c3317['name']);if(!_0x413690['hasSuggestion'](_0x551869))return null;const _0x34408c=_0x413690['getSuggestion'](_0x551869);return _0x46fd57['includes'](_0x34408c['data']['key']);})['map'](_0xfaf5a1=>{const {id:_0x5484d1}=_0x413690['_splitMarkerName'](_0xfaf5a1['name']),_0x278872=_0x413690['getSuggestion'](_0x5484d1);return _0x679f68=_0x278872['attributes']['groupId'],_0x278872['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4f01a6['size'])return;const _0x39bc9b=_0x413690['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ee4cd=>'attribute'==_0x2ee4cd['type']&&_0x2ee4cd['data']&&_0x46fd57['includes'](_0x2ee4cd['data']['key'])&&_0x2ee4cd['attributes']['groupId']!=_0x679f68)['map'](_0x4f9f4e=>({'listItem':_0x4f9f4e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4f9f4e['attributes']['groupId']})),_0x4a9505=new Set();for(const {groupId:_0x19a2a9,listItem:_0x56ee19}of _0x39bc9b)_0x4f01a6['has'](_0x56ee19)&&_0x4a9505['add'](_0x19a2a9);for(const _0x375fab of _0x413690['getSuggestions']())_0x4a9505['has'](_0x375fab['attributes']['groupId'])&&_0x375fab['setAttribute']('groupId',_0x679f68);}['_supportLegacySuggestions'](){const _0x497432=this['editor'],_0x490e36=_0x497432['locale'],_0x1a61a6=_0x497432['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a61a6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1dd34c,_0x101569){const _0x545783=[];for(let _0x2a835d of _0x1dd34c)_0x2a835d['start']['nodeAfter']===_0x2a835d['end']['parent']&&(_0x2a835d=_0x497432['model']['createRange'](_0x497432['model']['createPositionAt'](_0x2a835d['start']['nodeAfter'],0x0))),_0x545783['push'](_0x2a835d);_0x497432['model']['change'](_0x4f29f2=>{const _0x20fae4=_0x497432['model']['document']['selection'],_0x4d6547=Array['from'](_0x20fae4['getRanges']())['map'](_0x5d2bf0=>_0x14a494['fromRange'](_0x5d2bf0));_0x4f29f2['setSelection'](_0x545783),_0x497432['commands']['get'](_0x101569['commandName'])['refresh'](),_0x101569['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x497432['execute'](_0x101569['commandName'],..._0x101569['commandParams']),_0x4f29f2['setSelection'](_0x4d6547);for(const _0x5d0e38 of _0x4d6547)_0x5d0e38['detach']();});}),_0x1a61a6['descriptionFactory']['registerElementLabel'](function(_0x243cc3){const _0x3804fd=!_0x497432['model']['schema']['isObject'](_0x243cc3),_0x2be5a3=_0x243cc3['previousSibling'],_0x55cdf5=_0x243cc3['nextSibling'],_0x1cbb67=_0x243cc3['getAttribute']('listItemId'),_0x505b0d=!_0x2be5a3||_0x2be5a3['getAttribute']('listItemId')!==_0x1cbb67,_0x36b109=!_0x55cdf5||_0x55cdf5['getAttribute']('listItemId')!==_0x1cbb67;return _0x3804fd&&Boolean(_0x1cbb67)&&_0x505b0d&&_0x36b109;},_0x3d03be=>c(_0x490e36,'ELEMENT_LIST_ITEM',_0x3d03be));}['_registerLegacyDescription'](){const _0x1362b3=this['editor'],_0x3067db=_0x1362b3['locale'];function _0x406be2(_0x568974){const _0x684de7=_0x1362b3['commands']['get']('bulletedList')['value'],_0x2cb072=_0x1362b3['commands']['get']('numberedList')['value'];return'numberedList'===_0x568974?_0x684de7:_0x2cb072;}_0x1362b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ca8e4){if('formatBlock'!=_0x1ca8e4['type'])return;const {data:_0x4567f1}=_0x1ca8e4;if(!_0x4567f1)return;let _0x482728,_0x5627e7,_0x2ad22a,_0x637419;switch(_0x4567f1['commandName']){case'bulletedList':_0x2ad22a=_0x4567f1['commandParams'][0x0]['forceValue'],_0x637419=_0x406be2(_0x4567f1['commandName']),_0x482728=_0x2ad22a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x637419&&_0x1362b3['config']['get']('list.multiBlock')||(_0x482728='*Change\x20to:*\x20%0'),_0x5627e7={'type':'format','content':c(_0x3067db,_0x482728,c(_0x3067db,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2ad22a=_0x4567f1['commandParams'][0x0]['forceValue'],_0x637419=_0x406be2(_0x4567f1['commandName']),_0x482728=_0x2ad22a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x637419&&_0x1362b3['config']['get']('list.multiBlock')||(_0x482728='*Change\x20to:*\x20%0'),_0x5627e7={'type':'format','content':c(_0x3067db,_0x482728,c(_0x3067db,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x482728='*Indent:*\x20%0',_0x5627e7={'type':'format','content':c(_0x3067db,_0x482728,c(_0x3067db,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x482728=function(_0x2159da){const _0xec4dcd=_0x2159da['getFirstRange']();let _0xbcad9a=_0xec4dcd['start']['nodeAfter'];for(;_0xbcad9a&&_0xec4dcd['containsItem'](_0xbcad9a);){if(_0xbcad9a['getAttribute']('listIndent')>0x0)return!0x1;_0xbcad9a=_0xbcad9a['nextSibling'];}return!0x0;}(_0x1ca8e4)?c(_0x3067db,'*Format:*\x20remove\x20from\x20%0',c(_0x3067db,function(_0xf313c4){return'ELEMENT_'+_0xf313c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ca8e4))):c(_0x3067db,'*Outdent:*\x20%0',c(_0x3067db,'ELEMENT_LIST_ITEM')),_0x5627e7={'type':'format','content':_0x482728};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4567f1['multipleBlocks']&&(_0x482728='*Merge:*\x20%0',_0x5627e7={'type':'deletion','content':c(_0x3067db,_0x482728,c(_0x3067db,'ELEMENT_LIST_ITEM'))});}return _0x5627e7;});}}function Te(_0x4c676f){let _0x30b0a5=_0x4c676f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x30b0a5;){const _0x26c888=_0x30b0a5['getAttribute']('listItemId');if(!_0x26c888)return!0x1;if(_0x26c888==_0x4c676f['data']['newValue'])return'newValue';if(_0x26c888==_0x4c676f['data']['oldValue'])return'oldValue';_0x30b0a5=_0x30b0a5['previousSibling'];}return!0x1;}class Se extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4166d1=this['editor']['config']['get']('list.properties'),_0x3a0edc=this['editor']['plugins']['get']('TrackChangesEditing');_0x4166d1['styles']&&(_0x3a0edc['enableDefaultAttributesIntegration']('listStyle'),_0x3a0edc['registerBlockAttribute']('listStyle')),_0x4166d1['reversed']&&(_0x3a0edc['enableDefaultAttributesIntegration']('listReversed'),_0x3a0edc['registerBlockAttribute']('listReversed')),_0x4166d1['startIndex']&&(_0x3a0edc['enableDefaultAttributesIntegration']('listStart'),_0x3a0edc['registerBlockAttribute']('listStart'));const _0x2543f7={'type':'format','content':''};_0x3a0edc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1775f6=this['editor']['locale'];_0x3a0edc['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x1775f6,'FORMAT_LIST_REVERSED')),_0x3a0edc['descriptionFactory']['registerDescriptionCallback'](_0x2cdbf6=>{const {data:_0x578ff3}=_0x2cdbf6;if(_0x578ff3&&'listReversed'==_0x578ff3['key'])return null==_0x578ff3['newValue']||0x0==_0x578ff3['newValue']&&null==_0x578ff3['oldValue']?_0x2543f7:void 0x0;}),_0x3a0edc['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x1775f6,'FORMAT_LIST_START')),_0x3a0edc['descriptionFactory']['registerDescriptionCallback'](_0x2186af=>{const {data:_0x44f980}=_0x2186af;if(_0x44f980&&'listStart'==_0x44f980['key'])return null==_0x44f980['newValue']||0x1==_0x44f980['newValue']&&null==_0x44f980['oldValue']?_0x2543f7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x404ce4=>{if(_0x404ce4['batch']['isUndo'])return!0x1;let _0x2af630=!0x1;const _0x2d7300=_0x3a0edc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2546a1=>{const _0x18d0fd=_0x3a0edc['_getAttributeKey'](_0x2546a1);return'listStart'==_0x18d0fd||'listReversed'==_0x18d0fd;});for(const _0x2a4acd of _0x2d7300){const _0x5e3219=_0x2a4acd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5e3219||'customNumbered'==_0x5e3219)continue;_0x3a0edc['_findSuggestions'](_0x2a4acd['getFirstRange'](),'attribute')['find'](_0xffd27e=>'listType'==_0x3a0edc['_getAttributeKey'](_0xffd27e['suggestion']))||(_0x404ce4['removeMarker'](_0x2a4acd['getFirstMarker']()),_0x2af630=!0x0);}return _0x2af630;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x213c17){const _0x169833=this['editor']['locale'],{data:_0x3ab4de}=_0x213c17,_0x374198={'type':'format','content':''};if(!_0x3ab4de||'listStyle'!=_0x3ab4de['key'])return;if(!_0x3ab4de['oldValue'])return'default'==_0x3ab4de['newValue']?_0x374198:{'type':'format','content':''+c(_0x169833,'*Set\x20format:*\x20%0',c(_0x169833,this['_getTranslationKeyForListStyle'](_0x3ab4de['newValue'])))};if(!_0x3ab4de['newValue']){if('default'==_0x3ab4de['oldValue'])return _0x374198;let _0x107dfa=_0x213c17['head'];for(;_0x107dfa;){if(_0x107dfa['data']&&'listType'==_0x107dfa['data']['key']&&_0x107dfa['data']['newValue'])return _0x374198;_0x107dfa=_0x107dfa['next'];}return{'type':'format','content':''+c(_0x169833,'*Remove\x20format:*\x20%0',c(_0x169833,this['_getTranslationKeyForListStyle'](_0x3ab4de['oldValue'])))};}if('default'!=_0x3ab4de['newValue'])return{'type':'format','content':''+c(_0x169833,'*Set\x20format:*\x20%0',c(_0x169833,this['_getTranslationKeyForListStyle'](_0x3ab4de['newValue'])))};let _0x217447=_0x213c17['head'];for(;_0x217447;){if(_0x217447['data']&&'listType'==_0x217447['data']['key']&&_0x217447['data']['newValue']&&_0x217447['data']['oldValue'])return _0x374198;_0x217447=_0x217447['next'];}return{'type':'format','content':c(_0x169833,'*Set\x20format:*\x20%0',c(_0x169833,'ELEMENT_'+_0x213c17['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x539456=this['editor'],_0x2f81a8=_0x539456['locale'];_0x539456['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x587ec6=>{if('formatBlock'!=_0x587ec6['type'])return;const {data:_0x52d2f7}=_0x587ec6;if(!_0x52d2f7)return;let _0x2ea642,_0x1851fa;switch(_0x52d2f7['commandName']){case'listStyle':_0x2ea642='*Change\x20to:*\x20%0',_0x1851fa={'type':'format','content':c(_0x2f81a8,_0x2ea642,c(_0x2f81a8,this['_getTranslationKeyForListStyle'](_0x52d2f7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ea642=_0x52d2f7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1851fa={'type':'format','content':c(_0x2f81a8,_0x2ea642)};break;case'listStart':_0x2ea642='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1851fa={'type':'format','content':c(_0x2f81a8,_0x2ea642,_0x52d2f7['commandParams'][0x0]['startIndex'])};}return _0x1851fa;});}['_getTranslationKeyForListStyle'](_0x3d9c10){return'ELEMENT_'+function(_0xa529e8){if(_e['includes'](_0xa529e8))return'bulleted';if(Re['includes'](_0xa529e8))return'numbered';return null;}(_0x3d9c10)['toUpperCase']()+'_LIST_'+_0x3d9c10['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x550ef0{['afterInit'](){const _0x253e6a=this['editor'];_0x253e6a['commands']['get']('emoji')&&_0x253e6a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x550ef0{static get['requires'](){return[_0x567bd8];}['init'](){const _0x9005c6=this['editor'],_0x4b3f83=_0x9005c6['plugins']['get']('TrackChangesEditing'),_0x56370b=_0x9005c6['commands']['get']('enter');_0x4b3f83['enableCommand']('enter',()=>{_0x9005c6['model']['change'](_0x506a4d=>{const _0x45d6ab=_0x9005c6['model']['document']['selection'],_0x44883b=_0x45d6ab['getFirstPosition'](),_0x5c4659=_0x14a494['fromRange'](_0x45d6ab['getFirstRange']());if(_0x56370b['enterBlock'](_0x506a4d)){const _0x31563a=_0x9005c6['model']['createPositionAt'](_0x44883b['parent']['nextSibling'],0x0),_0x29d4b0=_0x506a4d['createRange'](_0x44883b,_0x31563a);_0x4b3f83['markInsertion'](_0x29d4b0);}else _0x506a4d['setSelection'](_0x506a4d['createRange'](_0x5c4659['end']));_0x5c4659['detach'](),_0x56370b['fire']('afterExecute',{'writer':_0x506a4d});});}),_0x9005c6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x9005c6,'split'),{'priority':'high'}),_0x9005c6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x364f0a,_0x1213f9,_0x4a79c9)=>{const _0x266332=_0x4a79c9['mapper']['markerNameToElements'](_0x1213f9['markerName']);if(_0x266332){for(const _0x3584d1 of _0x266332)_0x3584d1['hasClass']('ck-suggestion-marker-split')&&(_0x4a79c9['mapper']['unbindElementFromMarkerName'](_0x3584d1,_0x1213f9['markerName']),_0x4a79c9['writer']['remove'](_0x3584d1));}},{'priority':'high'}),_0x9005c6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x400c64,_0x5af0,_0x5838f4)=>{_0x5838f4['options']['showSuggestionHighlights']&&Fe(_0x9005c6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x400c64,_0x5af0,_0x5838f4);},{'priority':'high'});}}class Z extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5e6f6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e6f6e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5e6f6e['enableCommand']('findNext'),_0x5e6f6e['enableCommand']('findPrevious'),_0x5e6f6e['enableCommand']('replace'),_0x5e6f6e['enableCommand']('replaceAll');}['handleFindCommand'](_0x17ca08,_0x31b7a1,_0x1120d7={}){const _0x386339=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x17ca08(_0x32edfc=>{let _0x5bbc0c=('string'==typeof _0x31b7a1?_0x386339['findByTextCallback'](_0x31b7a1,_0x1120d7):_0x31b7a1)(_0x32edfc);Array['isArray'](_0x5bbc0c)&&(_0x5bbc0c={'results':_0x5bbc0c,'searchText':'string'==typeof _0x31b7a1?_0x31b7a1:''});const _0x2ff7e9=_0x5bbc0c['results']['filter'](_0x2490be=>!0x1===this['_isInDeletionRange'](_0x2490be,_0x32edfc['item']));return{..._0x5bbc0c,'results':_0x2ff7e9};},_0x1120d7);}['_isInDeletionRange'](_0xf747d,_0x1838c0){const _0x32205b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1838c0,_0xf747d['start']),this['editor']['model']['createPositionAt'](_0x1838c0,_0xf747d['end']));for(const _0x1f83cc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x32205b['getIntersection'](_0x1f83cc['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x550ef0{['afterInit'](){const _0x40c7b7=this['editor']['locale'],_0x77ae26=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c2cb6,commandName:_0x4265a0}of ro)this['editor']['plugins']['has'](_0x3c2cb6)&&(_0x77ae26['enableDefaultAttributesIntegration'](_0x4265a0),_0x77ae26['registerInlineAttribute'](_0x4265a0));_0x77ae26['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x40c7b7,'FORMAT_FONT_SIZE')),_0x77ae26['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x40c7b7,'FORMAT_FONT_FAMILY')),_0x77ae26['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x40c7b7,'FORMAT_FONT_COLOR')),_0x77ae26['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x40c7b7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39f4ef=this['editor'],_0x132791=_0x39f4ef['locale'];_0x39f4ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6bc974=>{const _0x497e6a=_0x132791['t'];if('formatInline'!=_0x6bc974['type'])return;const {data:_0xb2403a}=_0x6bc974;if(null!=_0xb2403a){if('fontSize'==_0xb2403a['commandName']){const _0x471a0e=_0xb2403a['commandParams'][0x0]['value'];if(_0x471a0e){const _0x4e82ab=_0x497e6a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x315b42=>_0x315b42['model']==_0x471a0e)['title'])['toLowerCase']();return{'type':'format','content':c(_0x132791,'*Set\x20font\x20size:*\x20%0',_0x4e82ab)};}return{'type':'format','content':c(_0x132791,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xb2403a['commandName']){const _0x72ff4=_0xb2403a['commandParams'][0x0]['value'];return _0x72ff4?{'type':'format','content':c(_0x132791,'*Set\x20font\x20family:*\x20%0',_0x72ff4)}:{'type':'format','content':c(_0x132791,'*Reset\x20font\x20family*')};}if('fontColor'==_0xb2403a['commandName']){const _0x3390da=_0xb2403a['commandParams'][0x0]['value'];if(_0x3390da){const _0x51e513=_0x16d0e5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x28a662=>_0x28a662['model']==_0x3390da);let _0x3bee1d=_0x3390da,_0x1a6c2a='';return _0x51e513&&(_0x3bee1d=_0x51e513['label'],_0x1a6c2a=_0x497e6a(_0x3bee1d)['toLowerCase']()),{'type':'format','content':c(_0x132791,'*Set\x20font\x20color:*\x20%0',_0x1a6c2a)['trim'](),'color':{'value':_0x3390da,'title':_0x1a6c2a||_0x3bee1d}};}return{'type':'format','content':c(_0x132791,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xb2403a['commandName']){const _0x460b01=_0xb2403a['commandParams'][0x0]['value'];if(_0x460b01){const _0x2b0147=_0x16d0e5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3bbaa3=>_0x3bbaa3['model']==_0x460b01);let _0x436537=_0x460b01,_0x58f1b0='';return _0x2b0147&&(_0x436537=_0x2b0147['label'],_0x58f1b0=_0x497e6a(_0x436537)['toLowerCase']()),{'type':'format','content':c(_0x132791,'*Set\x20font\x20background\x20color:*\x20%0',_0x58f1b0)['trim'](),'color':{'value':_0x460b01,'title':_0x58f1b0||_0x436537}};}return{'type':'format','content':c(_0x132791,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x550ef0{['afterInit'](){const _0x44a6ec=this['editor'],_0x33d398=_0x44a6ec['plugins']['get']('TrackChangesEditing'),_0x50358d=_0x44a6ec['commands']['get']('copyFormat'),_0x15cee0=_0x44a6ec['commands']['get']('pasteFormat');_0x50358d&&_0x15cee0&&(_0x33d398['enableDefaultAttributesIntegration']('pasteFormat'),_0x33d398['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23f481=this['editor'],_0x48abf8=_0x23f481['locale'];_0x23f481['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2829=>{if('formatBlock'!=_0x5d2829['type']&&'formatInline'!=_0x5d2829['type'])return;const {data:_0x4738f9}=_0x5d2829;if(_0x4738f9&&'pasteFormat'===_0x4738f9['commandName']){const _0x439242=[],_0x253d8b=_0x4738f9['commandParams'][0x0];for(const [_0x215110,_0x539cae]of Object['entries'](_0x253d8b))_0x439242['push'](so(_0x23f481,_0x215110,_0x539cae));return _0x439242['length']?{'type':'format','content':c(_0x48abf8,'*Set\x20format\x20to:*\x20%0',_0x439242['join'](',\x20'))}:{'type':'format','content':c(_0x48abf8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x579daa,_0x28d737,_0x179d4f){const _0x2cbfac=_0x579daa['locale']['t'],_0x3108e3=_0x28d737['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c47b1=_0x2cbfac(_0x3108e3['charAt'](0x0)['toUpperCase']()+_0x3108e3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x179d4f)return _0x3c47b1;if('fontColor'===_0x28d737||'fontBackgroundColor'===_0x28d737){const _0x53074a=_0x16d0e5(_0x579daa['config']['get']('fontColor.colors'))['find'](_0x3e8745=>_0x3e8745['model']==_0x179d4f);return _0x3c47b1+'\x20('+(_0x53074a?_0x2cbfac(_0x53074a['label'])['toLowerCase']():_0x179d4f)+')';}if('fontSize'===_0x28d737&&isNaN(parseFloat(_0x179d4f))){const _0x122bac=_0x579daa['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x579daa['config']['get']('fontSize.options'))['find'](_0x278213=>_0x278213['model']==_0x179d4f);return _0x3c47b1+'\x20('+(_0x122bac?_0x2cbfac(_0x122bac['title'])['toLowerCase']():_0x179d4f)+')';}return _0x3c47b1+'\x20('+_0x179d4f+')';}class nt extends _0x550ef0{['_headingOptions'];['afterInit'](){const _0x328558=this['editor'];if(!_0x328558['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x328558['config']['get']('heading.options');const _0x2b8eff=_0x328558['locale'],_0x2c8643=_0x328558['plugins']['get']('TrackChangesEditing');_0x2c8643['enableDefaultAttributesIntegration']('heading');for(const _0x289b81 of this['_headingOptions'])'paragraph'!=_0x289b81['model']&&_0x2c8643['descriptionFactory']['registerElementLabel'](_0x289b81['model'],_0x202d28=>{const _0x394942=this['_getHeadingLevel'](_0x289b81['model']);return null!==_0x394942?_0x70c7be(_0x202d28,_0x394942):_0x4470a4(_0x202d28,_0x289b81['title']);});function _0x70c7be(_0x784ec5,_0x5cbf63){return c(_0x2b8eff,'ELEMENT_HEADING',[_0x784ec5,_0x5cbf63]);}function _0x4470a4(_0x452346,_0x978c35){return c(_0x2b8eff,'ELEMENT_HEADING_CUSTOM',[_0x452346,_0x978c35]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x108a80=this['editor'],_0x5e830e=_0x108a80['locale'];function _0x3d425c(_0x17fda8,_0x2cee0d){return c(_0x5e830e,'ELEMENT_HEADING_CUSTOM',[_0x17fda8,_0x2cee0d]);}_0x108a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39e38a=>{if('formatBlock'!=_0x39e38a['type'])return;const {data:_0x523479}=_0x39e38a;if(_0x523479&&'heading'==_0x523479['commandName']){const _0x172c2a=_0x523479['commandParams'][0x0]['value'],_0x1315e9=this['_getHeadingLevel'](_0x172c2a);if(null!==_0x1315e9)return{'type':'format','content':c(_0x5e830e,'*Change\x20to:*\x20%0',(_0x3d20a3=0x1,_0x4fab28=_0x1315e9,c(_0x5e830e,'ELEMENT_HEADING',[_0x3d20a3,_0x4fab28])))};const _0x405ffb=this['_headingOptions']['find'](_0x491cdc=>_0x491cdc['model']===_0x172c2a)['title'];return{'type':'format','content':c(_0x5e830e,'*Change\x20to:*\x20%0',_0x3d425c(0x1,_0x405ffb))};}var _0x3d20a3,_0x4fab28;});}['_getHeadingLevel'](_0x401524){const _0x43d839=_0x401524['match'](/^heading(\d+)/);if(_0x43d839)return _0x43d839[0x1];const _0x4a97cd=this['_headingOptions']?.['find'](_0x37d016=>_0x37d016['model']==_0x401524);if(_0x4a97cd&&_0x4a97cd['view']){const _0x411d42=_0x4a97cd['view'],_0xe8bd9b=(_0x411d42['name']??_0x411d42)['match'](/^h(\d+)/);if(_0xe8bd9b)return _0xe8bd9b[0x1];}return null;}}class it extends _0x550ef0{['afterInit'](){const _0x5ee430=this['editor'];if(!_0x5ee430['plugins']['has']('HighlightEditing'))return;const _0x2e89de=_0x5ee430['plugins']['get']('TrackChangesEditing'),_0x3e0d46=_0x5ee430['locale'];_0x2e89de['enableDefaultAttributesIntegration']('highlight'),_0x2e89de['registerInlineAttribute']('highlight'),_0x2e89de['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x3e0d46,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c975d=this['editor'],_0x2caf70=_0x3c975d['locale'];_0x3c975d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a759b=>{if('formatInline'!=_0x4a759b['type'])return;const {data:_0x5d2c00}=_0x4a759b;if(_0x5d2c00&&'highlight'==_0x5d2c00['commandName']){const _0x4bd02f=_0x2caf70['t'],_0xdf050a=_0x5d2c00['commandParams'][0x0]['value'];if(_0xdf050a){const _0x256201=_0x3c975d['config']['get']('highlight.options')['find'](_0x269e0b=>_0x269e0b['model']==_0xdf050a),_0x1889ad=_0x4bd02f(_0x256201['title'])['toLowerCase']();return{'type':'format','content':c(_0x2caf70,'*Set\x20highlight:*\x20%0',_0x1889ad),'color':{'value':_0x256201['color'],'title':_0x256201['title']}};}return{'type':'format','content':c(_0x2caf70,'*Remove\x20highlight*',c(_0x2caf70,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x550ef0{['afterInit'](){const _0x5c517a=this['editor'];if(!_0x5c517a['plugins']['has']('HorizontalLineEditing'))return;_0x5c517a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a41d1=_0x5c517a['plugins']['get']('TrackChangesEditing'),_0xfaea23=_0x5c517a['locale'];_0x4a41d1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x52da0e=>c(_0xfaea23,'ELEMENT_HORIZONTAL_LINE',_0x52da0e)),_0x5c517a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5450d0,{writer:_0x3f2450,options:_0x8dcb99})=>{if(!_0x8dcb99['showSuggestionHighlights'])return null;const _0x2d53de=_0x3f2450['createContainerElement']('div'),_0x164e4f=_0x3f2450['createEmptyElement']('hr');return _0x3f2450['addClass']('ck-horizontal-line',_0x2d53de),_0x3f2450['insert'](_0x3f2450['createPositionAt'](_0x2d53de,0x0),_0x164e4f),_0x2d53de;},'converterPriority':'high'});}}class ot extends _0x550ef0{['afterInit'](){const _0x4fe404=this['editor'];if(!_0x4fe404['plugins']['has']('HtmlEmbed'))return;const _0xed913b=_0x4fe404['plugins']['get']('TrackChangesEditing'),_0x13b7c9=_0x4fe404['locale'];_0xed913b['descriptionFactory']['registerElementLabel']('rawHtml',_0x14b577=>c(_0x13b7c9,'ELEMENT_HTML_EMBED',_0x14b577)),_0xed913b['enableDefaultAttributesIntegration']('htmlEmbed'),_0xed913b['registerBlockAttribute']('value'),_0xed913b['descriptionFactory']['registerDescriptionCallback'](_0x550b5e=>{if('attribute'!=_0x550b5e['type'])return;const {data:_0x22c1f8}=_0x550b5e;if(_0x22c1f8&&'value'==_0x22c1f8['key']&&_0x550b5e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1e989b=c(_0x13b7c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x13b7c9,'*Change\x20%0\x20content*',_0x1e989b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13de4=this['editor'],_0x5bd6f9=_0x13de4['locale'];_0x13de4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4765a3=>{if('formatBlock'!=_0x4765a3['type'])return;const {data:_0x159b05}=_0x4765a3;if(_0x159b05&&'htmlEmbed'==_0x159b05['commandName']){const _0x3c7bb9=c(_0x5bd6f9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5bd6f9,'*Change\x20%0\x20content*',_0x3c7bb9)};}});}}class rt extends _0x550ef0{['afterInit'](){const _0x24cccc=this['editor'];if(!_0x24cccc['plugins']['has']('ImageEditing'))return;const _0x369bb3=_0x24cccc['plugins']['get']('TrackChangesEditing'),_0x209e13=_0x24cccc['plugins']['get']('ImageUtils'),_0x3b9d06=_0x24cccc['locale'];_0x369bb3['enableCommand']('insertImage'),_0x369bb3['descriptionFactory']['registerElementLabel']('imageBlock',_0x30d9c6=>c(_0x3b9d06,'ELEMENT_IMAGE',_0x30d9c6)),_0x369bb3['descriptionFactory']['registerElementLabel']('imageInline',_0x2f2b92=>c(_0x3b9d06,'ELEMENT_INLINE_IMAGE',_0x2f2b92)),_0x369bb3['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3b9d06,'ELEMENT_CAPTION')),_0x24cccc['plugins']['has']('ImageUploadEditing')&&_0x369bb3['enableCommand']('uploadImage'),_0x24cccc['plugins']['has']('ImageBlockEditing')&&_0x24cccc['plugins']['has']('ImageInlineEditing')&&(_0x369bb3['enableCommand']('imageTypeInline',(_0x268ac1,_0xe54c32)=>{const _0x644acc=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']);_0x24cccc['model']['change'](()=>{_0x369bb3['markBlockFormat'](_0x644acc,{'commandName':'imageTypeInline','commandParams':[_0xe54c32]},[],'convertBlockImageToInline');});}),_0x369bb3['enableCommand']('imageTypeBlock',(_0x6ea122,_0x456c3b)=>{_0x24cccc['model']['change'](_0xdee828=>{let _0x466021=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']),_0xce7252=_0xdee828['createRangeOn'](_0x466021);const _0x12b531=_0x16b9a3['fromPosition'](_0xce7252['start'],'toPrevious'),_0xce014f=_0x16b9a3['fromPosition'](_0xce7252['end'],'toNext');_0x369bb3['forceDefaultExecution'](()=>_0x6ea122(_0x456c3b)),_0x466021=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']),_0xce7252=_0xdee828['createRangeOn'](_0x466021);const _0x49d2a8=_0xdee828['createRange'](_0x12b531,_0xce014f);_0x12b531['detach'](),_0xce014f['detach'](),_0x369bb3['markBlockFormat'](_0x466021,{'commandName':'imageTypeInline','commandParams':[_0x456c3b]},[],'convertInlineImageToBlock'),_0x49d2a8['start']['isBefore'](_0xce7252['start'])&&_0x369bb3['markInsertion'](_0xdee828['createRange'](_0x49d2a8['start'],_0xce7252['start']),'convertInlineImageToBlock'),_0xce7252['end']['isBefore'](_0x49d2a8['end'])&&_0x369bb3['markInsertion'](_0xdee828['createRange'](_0xce7252['end'],_0x49d2a8['end']),'convertInlineImageToBlock');});}),_0x369bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x369bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x369bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x369bb3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x369bb3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x369bb3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4be84b])=>{const _0x332aa8=_0x369bb3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x73b60b=_0x4be84b['start'],_0x304862=_0x4be84b['end'];const _0x2d3612=_0x24cccc['model']['schema']['getNearestSelectionRange'](_0x73b60b,'backward'),_0xb9456e=_0x24cccc['model']['schema']['getNearestSelectionRange'](_0x304862,'forward');_0x2d3612['isCollapsed']&&(_0x73b60b=_0x2d3612['start']),_0xb9456e['isCollapsed']&&(_0x304862=_0xb9456e['end']),_0x332aa8([_0x24cccc['model']['createRange'](_0x73b60b,_0x304862)]);}),_0x369bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15b280),_0x369bb3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15b280)),_0x24cccc['plugins']['has']('ImageCaptionEditing')&&(_0x369bb3['enableCommand']('toggleImageCaption',(_0x21d044,_0x2c21a7)=>{const _0x4a0233=_0x24cccc['plugins']['get']('ImageCaptionUtils');let _0x35152f=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']),_0xbc6573=_0x4a0233['getCaptionFromImageModelElement'](_0x35152f);_0x24cccc['model']['change'](()=>{if(_0xbc6573)return void _0x369bb3['markDeletion'](_0x24cccc['model']['createRangeOn'](_0xbc6573));const _0x49161a=_0x209e13['isBlockImage'](_0x35152f);_0x21d044(_0x2c21a7),_0x35152f=_0x209e13['getClosestSelectedImageElement'](_0x24cccc['model']['document']['selection']),_0xbc6573=_0x4a0233['getCaptionFromImageModelElement'](_0x35152f),_0x369bb3['markInsertion'](_0x24cccc['model']['createRangeOn'](_0xbc6573),_0x49161a?null:'imageCaption');});}),_0x369bb3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15b280));const _0x32e0e8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2cfff1(_0x414f2d,_0x1410a6){const _0x503656=_0x32e0e8['findIndex'](({type:_0x11dc7c,subType:_0x2a0a7f})=>_0x414f2d['type']==_0x11dc7c&&_0x414f2d['subType']==_0x2a0a7f),_0x53282b=_0x32e0e8['findIndex'](({type:_0x22ec52,subType:_0x5c717d})=>_0x1410a6['type']==_0x22ec52&&_0x1410a6['subType']==_0x5c717d);if(_0x503656<0x0||_0x53282b<0x0)return!0x1;const _0x52df90=_0x414f2d['getFirstRange'](),_0x1209f3=_0x1410a6['getFirstRange']();if((0x0==_0x503656||0x1==_0x503656)&&0x2==_0x53282b&&_0x52df90['isIntersecting'](_0x1209f3))return!0x0;if(0x2==_0x503656&&0x3==_0x53282b){const _0x3f1d45=_0x369bb3['_findSuggestions'](_0x52df90,'insertion')['filter'](({suggestion:_0x2c4382,meta:_0x211022})=>_0x211022['isOwn']&&'convertInlineImageToBlock'==_0x2c4382['subType']);if(_0x3f1d45['length']>0x1&&_0x1209f3['end']['isEqual'](_0x52df90['start']))return!0x0;if(0x1==_0x3f1d45['length']&&(_0x52df90['start']['isEqual'](_0x1209f3['end'])||_0x52df90['end']['isEqual'](_0x1209f3['start'])))return!0x0;}if(0x3==_0x503656&&0x3==_0x53282b&&_0x52df90['start']['isBefore'](_0x1209f3['start'])){const _0x539d7c=_0x52df90['end']['nodeAfter'],_0x277369=_0x1209f3['start']['nodeBefore'];return _0x209e13['isBlockImage'](_0x539d7c)&&_0x539d7c===_0x277369;}return!0x1;}function _0x15b280(_0x459b61,_0x191985){return _0x2cfff1(_0x459b61,_0x191985)?[_0x459b61,_0x191985]:_0x2cfff1(_0x191985,_0x459b61)?[_0x191985,_0x459b61]:null;}_0x24cccc['plugins']['has']('ImageResize')&&(_0x369bb3['enableDefaultAttributesIntegration']('resizeImage'),_0x369bb3['registerBlockAttribute']('resizedWidth'),_0x369bb3['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3b9d06,'FORMAT_IMAGE_SIZE'))),_0x24cccc['plugins']['has']('ImageTextAlternativeEditing')&&(_0x369bb3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x369bb3['registerBlockAttribute']('alt')),_0x24cccc['plugins']['has']('PictureEditing')&&(_0x369bb3['registerBlockAttribute']('sources'),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x1028eb=>{if('attribute'!=_0x1028eb['type'])return;const {data:_0x59f7dc}=_0x1028eb;return _0x59f7dc&&'sources'==_0x59f7dc['key']?{'type':'format','content':''}:void 0x0;})),_0x24cccc['plugins']['has']('ImageSizeAttributes')&&(_0x369bb3['registerBlockAttribute']('width'),_0x369bb3['registerBlockAttribute']('height'),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x383c9e=>{if('attribute'!=_0x383c9e['type'])return;const {data:_0x294612}=_0x383c9e;return!_0x294612||'width'!=_0x294612['key']&&'height'!=_0x294612['key']?void 0x0:{'type':'format','content':''};})),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x1e25be=>{if(!!_0x32e0e8['find'](({type:_0xaf8233,subType:_0x4d32a3})=>_0x1e25be['type']==_0xaf8233&&_0x1e25be['subType']==_0x4d32a3))return _0x1e25be['previous']?{}:void 0x0;}),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x1be813=>{if('insertion'==_0x1be813['type']||'deletion'==_0x1be813['type']){const _0x3d34b4=_0x1be813['getContainedElement']();if(_0x3d34b4&&_0x3d34b4['is']('element','caption'))return{'type':'insertion'==_0x1be813['type']?'addObject':'removeObject','element':_0x3d34b4,'quantity':0x1};}}),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x2e0053=>'formatBlock'==_0x2e0053['type']&&'convertInlineImageToBlock'==_0x2e0053['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e0053['type']&&'convertBlockImageToInline'==_0x2e0053['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x369bb3['descriptionFactory']['registerDescriptionCallback'](_0x269d12=>{if('attribute'!=_0x269d12['type'])return;const {data:_0x2def6b}=_0x269d12;if(!_0x2def6b||'alt'!=_0x2def6b['key'])return;const _0x24c29a=_0x2def6b['newValue'];return _0x24c29a?{'type':'format','content':c(_0x3b9d06,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24c29a+'\x22')}:{'type':'format','content':c(_0x3b9d06,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ebb8=this['editor'],_0x32f247=_0x24ebb8['locale'];_0x24ebb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40e417=>{if('formatBlock'!=_0x40e417['type']&&'formatInline'!=_0x40e417['type'])return;const {data:_0x3b5b65}=_0x40e417;if(_0x3b5b65){if('imageTextAlternative'==_0x3b5b65['commandName']){const _0x1f72cf=_0x3b5b65['commandParams'][0x0]['newValue'];return _0x1f72cf?{'type':'format','content':c(_0x32f247,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f72cf+'\x22')}:{'type':'format','content':c(_0x32f247,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b5b65['commandName']){const _0x1d850c=_0x3b5b65['commandParams'][0x0]['width'];return _0x1d850c?{'type':'format','content':c(_0x32f247,'*Set\x20image\x20width:*\x20%0',_0x1d850c)}:{'type':'format','content':c(_0x32f247,'*Reset\x20image\x20width*')};}}});}}class at extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x59b085=this['editor']['locale'],_0x27c778=this['editor']['plugins']['get']('TrackChangesEditing');_0x27c778['enableDefaultAttributesIntegration']('replaceImageSource'),_0x27c778['registerBlockAttribute']('src'),_0x27c778['descriptionFactory']['registerDescriptionCallback'](_0x218c22=>{if('attribute'!=_0x218c22['type'])return;const {data:_0x132296}=_0x218c22;return _0x132296&&'src'==_0x132296['key']?_0x132296['newValue']&&_0x132296['oldValue']?{'type':'format','content':c(_0x59b085,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x483335=this['editor']['plugins']['get']('TrackChangesEditing');_0x483335['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x483335['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x483335['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x483335['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x69e123=this['editor'],_0x11bebf=_0x69e123['locale'];_0x69e123['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35e1ff=>{if('formatBlock'!=_0x35e1ff['type']&&'formatInline'!=_0x35e1ff['type'])return;const {data:_0x47a90e}=_0x35e1ff;if(!_0x47a90e||'replaceImageSource'!=_0x47a90e['commandName'])return;return{'type':'format','content':c(_0x11bebf,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x550ef0{['afterInit'](){const _0x321cba=this['editor'];if(!_0x321cba['plugins']['has']('ImageStyleEditing'))return;const _0x539d5e=_0x321cba['plugins']['get']('TrackChangesEditing'),_0x3d1e76=_0x321cba['plugins']['get']('ImageUtils'),_0x1d3f25={};_0x539d5e['enableCommand']('imageStyle',(_0x4d2013,_0x24802d)=>{const _0x5e1444=_0x321cba['plugins']['get']('Users')['me'],_0x27c89a=_0x321cba['commands']['get']('imageStyle');let _0x25d990=_0x3d1e76['getClosestSelectedImageElement'](_0x321cba['model']['document']['selection']),_0x3654c0=_0x321cba['model']['createRangeOn'](_0x25d990),_0xc04f2=_0x27c89a['value'];if(_0xc04f2==_0x24802d['value'])return;const _0x470f42={'commandName':'imageStyle','commandParams':[_0x24802d],'formatGroupId':_0x29542d()};_0x321cba['model']['change'](()=>{if(_0x539d5e['getSuggestions']()['filter'](_0x18250e=>_0x18250e['isInContent']&&_0x5e1444==_0x18250e['author']&&('formatBlock'==_0x18250e['type']||'formatInline'==_0x18250e['type'])&&('imageStylePreApply'==_0x18250e['subType']||'imageStylePostApply'==_0x18250e['subType'])&&_0x18250e['getFirstRange']()['isEqual'](_0x3654c0))['forEach'](_0x14227a=>_0x539d5e['discardSuggestion'](_0x14227a['head'])),_0x25d990=_0x3d1e76['getClosestSelectedImageElement'](_0x321cba['model']['document']['selection']),_0x3654c0=_0x321cba['model']['createRangeOn'](_0x25d990),_0x27c89a['refresh'](),_0x321cba['commands']['get']('imageTypeInline')['refresh'](),_0x321cba['commands']['get']('imageTypeBlock')['refresh'](),_0xc04f2=_0x27c89a['value'],_0xc04f2!=_0x24802d['value'])return _0x3d1e76['isInlineImage'](_0x25d990)&&_0x27c89a['shouldConvertImageType'](_0x24802d['value'],_0x25d990)?(_0x4d2013({..._0x24802d,'setImageSizes':!0x1}),_0x25d990=_0x3d1e76['getClosestSelectedImageElement'](_0x321cba['model']['document']['selection']),void _0x539d5e['markBlockFormat'](_0x25d990,{..._0x470f42,'commandReversedParams':[{'value':_0xc04f2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3d1e76['isBlockImage'](_0x25d990)?_0x539d5e['markBlockFormat'](_0x25d990,_0x470f42,[],'imageStylePostApply'):_0x539d5e['markInlineFormat'](_0x3654c0,_0x470f42,'imageStylePostApply'));});});for(const _0x55dc06 of _0x321cba['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1d3f25[_0x55dc06['name']]=_0x55dc06['title']['toLowerCase']();_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x44aff0])=>{_0x3d1e76['setImageNaturalSizeAttributes'](_0x44aff0['getContainedElement']());}),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x8778c4,_0x4962c1)=>{_0x539d5e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x8778c4,{'commandName':_0x4962c1['commandName'],'commandParams':_0x4962c1['commandReversedParams']});}),_0x539d5e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4b3ab5,_0xf80f55){if(_0x284db1(_0x4b3ab5,_0xf80f55))return[_0x4b3ab5,_0xf80f55];if(_0x284db1(_0xf80f55,_0x4b3ab5))return[_0xf80f55,_0x4b3ab5];return null;});const _0xabe5ec=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x284db1(_0x22fb25,_0x4b855f){const _0x1a2fc3=_0xabe5ec['findIndex'](({type:_0x31b72f,subType:_0x3d0ea6})=>_0x22fb25['type']==_0x31b72f&&_0x22fb25['subType']==_0x3d0ea6),_0x4e4760=_0xabe5ec['findIndex'](({type:_0x1c6c65,subType:_0x9b379f})=>_0x4b855f['type']==_0x1c6c65&&_0x4b855f['subType']==_0x9b379f);if(_0x1a2fc3<0x0||_0x4e4760<0x0)return!0x1;const _0x50e7d3=_0x22fb25['getFirstRange'](),_0x27ea26=_0x4b855f['getFirstRange']();if((0x0==_0x1a2fc3||0x1==_0x1a2fc3)&&0x2==_0x4e4760&&_0x50e7d3['isIntersecting'](_0x27ea26))return!0x0;if(0x2==_0x1a2fc3&&0x3==_0x4e4760){const _0x134282=_0x539d5e['_findSuggestions'](_0x50e7d3,'insertion')['filter'](({suggestion:_0x416306,meta:_0x3f7e56})=>_0x3f7e56['isOwn']&&'convertInlineImageToBlock'==_0x416306['subType']);if(_0x134282['length']>0x1&&_0x27ea26['end']['isEqual'](_0x50e7d3['start']))return!0x0;if(0x1==_0x134282['length']&&(_0x50e7d3['start']['isEqual'](_0x27ea26['end'])||_0x50e7d3['end']['isEqual'](_0x27ea26['start'])))return!0x0;}if(0x3==_0x1a2fc3&&0x3==_0x4e4760&&_0x50e7d3['start']['isBefore'](_0x27ea26['start'])){const _0x45b65c=_0x50e7d3['end']['nodeAfter'],_0xd19271=_0x27ea26['start']['nodeBefore'];return _0x3d1e76['isBlockImage'](_0x45b65c)&&_0x45b65c===_0xd19271;}return!0x1;}_0x321cba['model']['document']['registerPostFixer'](()=>{let _0x3372f1=!0x1;const _0x3c6921=Array['from'](_0x321cba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x908d6e,data:_0x28e9ed}of _0x3c6921){const {group:_0x3eb860,type:_0x3e63da,subType:_0x562c7b,id:_0x491878}=_0x539d5e['_splitMarkerName'](_0x908d6e);if('suggestion'==_0x3eb860&&_0x539d5e['hasSuggestion'](_0x491878)){if('formatBlock'==_0x3e63da&&('imageStylePreApply'==_0x562c7b||'imageStylePostApply'==_0x562c7b)){const _0x2910ae=_0x539d5e['getSuggestion'](_0x491878);if(_0x28e9ed['newRange']){const _0x2ccf72=_0x2910ae['getFirstRange']()['getContainedElement']();if(_0x3d1e76['isBlockImage'](_0x2ccf72))continue;_0x539d5e['discardSuggestion'](_0x2910ae),_0x3372f1=!0x0;}}if('insertion'==_0x3e63da&&'imageCaption'==_0x562c7b&&!_0x28e9ed['newRange']){const _0x40689d=_0x539d5e['getSuggestion'](_0x491878);_0x40689d['next']&&_0x40689d['next']['isInContent']&&(_0x539d5e['discardSuggestion'](_0x40689d['next']),_0x3372f1=!0x0);}}}return _0x3372f1;}),this['_registerLegacyDescription'](_0x1d3f25);}['_registerLegacyDescription'](_0x1871ef){const _0x59cbdc=this['editor'],_0x44ca3b=_0x59cbdc['locale'];_0x59cbdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b05fd=>{if('formatBlock'!=_0x2b05fd['type']&&'formatInline'!=_0x2b05fd['type'])return;const {data:_0xbf377}=_0x2b05fd;if(!_0xbf377||'imageStyle'!=_0xbf377['commandName'])return;const _0x30cd6c=_0xbf377['commandParams'][0x0]['value'];return _0x2da8e6('side'===_0x30cd6c?c(_0x44ca3b,'FORMAT_SIDE_IMAGE'):_0x1871ef[_0x30cd6c]||_0x30cd6c);function _0x2da8e6(_0x4bbe48){return{'type':'format','content':c(_0x44ca3b,'*Format:*\x20%0',_0x4bbe48)};}});}}class ut extends _0x550ef0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x68eb6a){super(_0x68eb6a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4df98a=this['editor'],_0x42a55f=_0x4df98a['commands']['get']('importWord'),_0x671b90=_0x4df98a['commands']['get']('trackChanges');_0x42a55f&&(_0x42a55f['on']('execute',(_0x1048c7,[,_0x2c93d6])=>{this['_trackChangesValueDuringImport']=_0x671b90['value'],_0x2c93d6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x42a55f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x42a55f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x671b90['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4df98a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x29cebd,_0x2748b9){const {suggestions:_0x1a61ea}=_0x2748b9,_0x35aaca=this['editor']['commands']['get']('trackChanges'),_0x1c31ee=_0x35aaca['value'];this['_trackChangesValueDuringImport']!==_0x1c31ee&&(_0x35aaca['execute'](),this['_trackChangesExecuted']=!0x0),_0x1a61ea&&_0x1a61ea['forEach'](({id:_0x4d7c1a,type:_0x36956d,author:_0xa036df,created_at:_0x29b7e9})=>{const _0x192810={'id':_0x4d7c1a,'type':_0x36956d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xa036df,'createdAt':_0x29b7e9?new Date(_0x29b7e9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x192810);});}}class ft extends _0x550ef0{['afterInit'](){const _0x572d25=this['editor'],_0x4c6a56=_0x572d25['plugins']['get']('TrackChangesEditing');if(_0x572d25['plugins']['has']('IndentEditing')&&(_0x4c6a56['enableCommand']('indent'),_0x4c6a56['enableCommand']('outdent')),_0x572d25['plugins']['has']('IndentBlock')){for(const _0x40fdbd of['indentBlock','outdentBlock'])_0x4c6a56['enableDefaultAttributesIntegration'](_0x40fdbd);}const _0x3758d6=_0x572d25['locale'];_0x4c6a56['registerBlockAttribute']('blockIndent'),_0x4c6a56['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x3758d6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25aab5=this['editor'],_0x483af1=_0x25aab5['locale'],_0x1b041a=_0x25aab5['plugins']['get']('TrackChangesEditing');_0x1b041a['descriptionFactory']['registerDescriptionCallback'](_0x4734c9=>{if('formatBlock'!=_0x4734c9['type'])return;const {data:_0x216469}=_0x4734c9;if(!_0x216469)return;if('indentBlock'!=_0x216469['commandName']&&'outdentBlock'!=_0x216469['commandName'])return;const _0x83c275=_0x4734c9['getItems']()[0x0],_0x178b6d=_0x1b041a['descriptionFactory']['getItemLabel'](_0x83c275);return'indentBlock'==_0x216469['commandName']?{'type':'format','content':c(_0x483af1,'*Indent:*\x20%0',_0x178b6d)}:'outdentBlock'==_0x216469['commandName']?{'type':'format','content':c(_0x483af1,'*Outdent:*\x20%0',_0x178b6d)}:void 0x0;});}}class ht extends _0x550ef0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x550ef0{['afterInit'](){const _0x3b7cec=this['editor'];if(!_0x3b7cec['plugins']['has']('LinkEditing'))return;const _0x127b6c=_0x3b7cec['plugins']['get']('TrackChangesEditing'),_0x3a7e1d=_0x3b7cec['commands']['get']('link');_0x127b6c['enableDefaultAttributesIntegration']('link'),_0x127b6c['enableDefaultAttributesIntegration']('unlink'),_0x127b6c['registerInlineAttribute']('linkHref');for(const _0x3c6d78 of _0x3a7e1d['manualDecorators'])_0x127b6c['registerInlineAttribute'](_0x3c6d78['id']),_0x127b6c['descriptionFactory']['registerAttributeLabel'](_0x3c6d78['id'],'link\x20('+_0x3c6d78['label']['toLowerCase']()+')');_0x127b6c['descriptionFactory']['registerDescriptionCallback'](_0x51cbf4=>{if('attribute'!=_0x51cbf4['type'])return;const {data:_0x5a7cbd}=_0x51cbf4;if(!_0x5a7cbd||'linkHref'!=_0x5a7cbd['key'])return;const _0x1176e2=_0x5a7cbd['newValue'],_0xc806cb=_0x3b7cec['locale'];return{'type':'format','content':null==_0x1176e2?c(_0xc806cb,'*Remove\x20link*'):c(_0xc806cb,'*Set\x20link:*\x20%0','\x22'+_0x1176e2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a82f0=this['editor'],_0x5c35bb=_0x5a82f0['locale'];_0x5a82f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20a116=>{if('formatInline'!=_0x20a116['type'])return;const {data:_0x238105}=_0x20a116;if(_0x238105){if('link'==_0x238105['commandName']){const _0x1416c2=_0x238105['commandParams'][0x0];return{'type':'format','content':c(_0x5c35bb,'*Set\x20link:*\x20%0','\x22'+_0x1416c2+'\x22')};}return'unlink'==_0x238105['commandName']?{'type':'format','content':c(_0x5c35bb,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x550ef0{['afterInit'](){const _0x8e1535=this['editor'],_0x72e95d=_0x8e1535['locale'];if(!_0x8e1535['plugins']['has']('LegacyListEditing'))return;const _0x1a9ecd=_0x8e1535['plugins']['get']('TrackChangesEditing'),_0x4990b8=_0x8e1535['plugins']['has']('LegacyTodoListEditing');function _0x1c7a32(_0x1f6181){return()=>{const _0x4ca710=_0x8e1535['model']['document']['selection'],_0x82a0a9=_0x8e1535['commands']['get'](_0x1f6181);if(_0x82a0a9['value'])return void _0x8e1535['execute']('paragraph',{});const _0x18297e=_0x1f6181['slice'](0x0,-0x4),_0x38b380=function(_0x1042da,_0x3c2f11,_0x4972e9){let _0x41b9fc=Array['from'](_0x1042da)['filter'](_0x2db676=>function(_0x1563bb,_0x2521a3){return _0x2521a3['checkChild'](_0x1563bb['parent'],'listItem')&&!_0x2521a3['isObject'](_0x1563bb);}(_0x2db676,_0x4972e9));_0x41b9fc=_0x41b9fc['filter'](_0x528e26=>!_0x528e26['is']('element','listItem')||_0x528e26['getAttribute']('listType')!=_0x3c2f11);const _0x3d2b94=new Set();for(const _0x58d61a of _0x41b9fc)_0x58d61a['is']('element','listItem')?_0x3d2b94['add'](Le(_0x58d61a)):_0x3d2b94['add'](_0x58d61a);return Array['from'](_0x3d2b94);}(_0x4ca710['getSelectedBlocks'](),_0x18297e,_0x8e1535['model']['schema']);_0x8e1535['model']['change'](()=>{for(const _0x4be2c0 of _0x38b380)_0x1a9ecd['markBlockFormat'](_0x4be2c0,{'commandName':_0x1f6181,'commandParams':[{'forceValue':!_0x82a0a9['value']}],'formatGroupId':'blockName'},Ee(_0x4be2c0));});};}function _0x1181b0(_0x384041){return()=>{const _0x2a4ebd=function(_0x1f0009){let _0x544edc=Array['from'](_0x1f0009);const _0x252015=_0x544edc['findIndex'](_0x425527=>'listItem'!=_0x425527['name']);return _0x252015>-0x1&&(_0x544edc=_0x544edc['slice'](0x0,_0x252015)),_0x544edc;}(_0x8e1535['model']['document']['selection']['getSelectedBlocks']()),_0x154d5c=_0x8e1535['model']['createRange'](_0x8e1535['model']['createPositionAt'](_0x2a4ebd[0x0],'before'),_0x8e1535['model']['createPositionAt'](_0x2a4ebd[_0x2a4ebd['length']-0x1],'end'));_0x8e1535['model']['change'](()=>{_0x1a9ecd['markBlockFormat'](_0x154d5c,{'commandName':_0x384041,'commandParams':[],'formatGroupId':'listIndent'},function(_0x316ff4){const _0x27e1d7=new Set();for(const _0x2a8d00 of _0x316ff4){let _0x31197e=_0x2a8d00['nextSibling'];for(;_0x31197e&&_0x31197e['getAttribute']('listIndent')>_0x2a8d00['getAttribute']('listIndent');)_0x27e1d7['add'](_0x31197e),_0x31197e=_0x31197e['nextSibling'];}return Array['from'](_0x27e1d7);}(_0x2a4ebd));});};}_0x1a9ecd['enableCommand']('numberedList',_0x1c7a32('numberedList')),_0x1a9ecd['enableCommand']('bulletedList',_0x1c7a32('bulletedList')),_0x4990b8&&_0x1a9ecd['enableCommand']('todoList',_0x1c7a32('todoList')),_0x1a9ecd['enableCommand']('indentList',_0x1181b0('indentList')),_0x1a9ecd['enableCommand']('outdentList',_0x1181b0('outdentList')),_0x4990b8&&_0x1a9ecd['enableCommand']('checkTodoList',()=>{const _0x2d5ed3=_0x8e1535['commands']['get']('checkTodoList'),_0x24991c=Array['from'](_0x2d5ed3['_selectedElements']);_0x24991c['filter'](_0x15e081=>_0x15e081['getAttribute']('todoListChecked')!=_0x2d5ed3['value']),_0x8e1535['model']['change'](()=>{for(const _0x5bba97 of _0x24991c)_0x1a9ecd['markBlockFormat'](_0x5bba97,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2d5ed3['value']}]});});}),_0x1a9ecd['descriptionFactory']['registerElementLabel']('listItem',_0x216d10=>c(_0x72e95d,'ELEMENT_LIST_ITEM',_0x216d10)),_0x1a9ecd['descriptionFactory']['registerDescriptionCallback'](_0x24f7ee=>{if('formatBlock'!=_0x24f7ee['type']&&'formatInline'!=_0x24f7ee['type'])return;const {data:_0x396d6a}=_0x24f7ee;if(_0x396d6a){if('numberedList'==_0x396d6a['commandName']||'bulletedList'==_0x396d6a['commandName']||'todoList'==_0x396d6a['commandName'])switch(_0x396d6a['commandName']['replace']('List','')){case'bulleted':return _0x1d6bea(c(_0x72e95d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d6bea(c(_0x72e95d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d6bea(c(_0x72e95d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x396d6a['commandName'])return{'type':'format','content':c(_0x72e95d,'*Indent:*\x20%0',c(_0x72e95d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x396d6a['commandName'])return{'type':'format','content':c(_0x72e95d,'*Outdent:*\x20%0',c(_0x72e95d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x396d6a['commandName'])return _0x396d6a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x72e95d,'*Check\x20item*')}:{'type':'format','content':c(_0x72e95d,'*Uncheck\x20item*')};}function _0x1d6bea(_0x4462b4){return{'type':'format','content':c(_0x72e95d,'*Change\x20to:*\x20%0',_0x4462b4)};}});}}function Le(_0x5c8a0e){const _0x1a79c=_0x5c8a0e['getAttribute']('listIndent');if(0x0==_0x1a79c)return _0x5c8a0e;let _0x543b49=_0x5c8a0e;for(;_0x5c8a0e['previousSibling']&&_0x5c8a0e['previousSibling']['is']('element','listItem');){const _0x436d27=_0x5c8a0e['previousSibling']['getAttribute']('listIndent');if(_0x436d27==_0x1a79c)_0x543b49=_0x5c8a0e['previousSibling'];else{if(_0x436d27<_0x1a79c)break;}_0x5c8a0e=_0x5c8a0e['previousSibling'];}return _0x543b49;}function Ee(_0x47040){const _0x373204=[];if(_0x47040['is']('element','listItem')&&_0x47040['getAttribute']('listIndent')>0x0){let _0x27412b=_0x47040['nextSibling'];for(;_0x27412b&&'listItem'==_0x27412b['name']&&_0x27412b['getAttribute']('listIndent')==_0x47040['getAttribute']('listIndent');)_0x373204['push'](_0x27412b),_0x27412b=_0x27412b['nextSibling'];}return _0x373204;}class Q extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2572b8=this['editor']['config']['get']('list.properties'),_0x4ec9a6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2572b8['styles']&&_0x4ec9a6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2572b8['reversed']&&_0x4ec9a6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2572b8['startIndex']&&_0x4ec9a6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4ec9a6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4d2f48,_0x4de058={}){const _0x8b0c1a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x529bb1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x8b0c1a['markMultiRangeBlockFormat'](_0x529bb1,{'commandName':'listStyle','commandParams':[{'type':_0x4de058['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15daac,_0x49636b={}){const _0x164b3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe4dea2=this['_getSuggestionBlocks'](_0xed2e60=>_0xed2e60['is']('element','listItem')&&'numbered'===_0xed2e60['getAttribute']('listType'));if(_0xe4dea2['length']<0x1)return;const _0x428369=_0xe4dea2['map'](_0x1b2cdb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b2cdb,'before'),this['editor']['model']['createPositionAt'](_0x1b2cdb,0x0)));this['editor']['model']['change'](()=>{_0x164b3d['markMultiRangeBlockFormat'](_0x428369,{'commandName':'listReversed','commandParams':[{'reversed':_0x49636b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5dabec,_0x2c048a={}){const _0x4bd052=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c21b4=this['_getSuggestionBlocks'](_0x31b0d5=>_0x31b0d5['is']('element','listItem')&&'numbered'===_0x31b0d5['getAttribute']('listType'));if(_0x2c21b4['length']<0x1)return;const _0x244445=_0x2c21b4['map'](_0x3a0302=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a0302,'before'),this['editor']['model']['createPositionAt'](_0x3a0302,0x0)));this['editor']['model']['change'](()=>{_0x4bd052['markMultiRangeBlockFormat'](_0x244445,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c048a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x12e3d0){if('formatBlock'!=_0x12e3d0['type']&&'formatInline'!=_0x12e3d0['type'])return;const _0xa2546f=this['editor']['locale'],{data:_0x534649}=_0x12e3d0;if(!_0x534649)return;let _0x308d27,_0x34ee58;switch(_0x534649['commandName']){case'listStyle':_0x308d27='*Change\x20to:*\x20%0',_0x34ee58={'type':'format','content':c(_0xa2546f,_0x308d27,c(_0xa2546f,this['_getTranslationKeyForListStyle'](_0x534649['commandParams'][0x0]['type'])))};break;case'listReversed':_0x308d27=_0x534649['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x34ee58={'type':'format','content':c(_0xa2546f,_0x308d27)};break;case'listStart':_0x308d27='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x34ee58={'type':'format','content':c(_0xa2546f,_0x308d27,_0x534649['commandParams'][0x0]['startIndex'])};}return _0x34ee58;}['_getSuggestionBlocksForListStyle'](){const _0x45d064=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a6180=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a6180[0x0]?.['is']('element','listItem')&&_0x5a6180['unshift'](..._0x45d064['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a6180[_0x5a6180['length']-0x1]?.['is']('element','listItem')&&_0x5a6180['push'](..._0x45d064['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a6180=[...new Set(_0x5a6180)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a6180=_0x5a6180['filter'](_0x1f1e85=>_0x1f1e85['is']('element','listItem'))),_0x5a6180;}['_getSuggestionBlocks'](_0x26447b){const _0x37f629=this['editor']['plugins']['get']('LegacyListUtils');let _0x19469a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x26447b)['map'](_0x4935cb=>{const _0x3fd526=this['editor']['model']['createPositionAt'](_0x4935cb,0x0);return[..._0x37f629['getSiblingNodes'](_0x3fd526,'backward'),..._0x37f629['getSiblingNodes'](_0x3fd526,'forward')];})['flat']();return _0x19469a=[...new Set(_0x19469a)],_0x19469a;}['_getTranslationKeyForListStyle'](_0x5e7f29){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5e7f29)||'default')['toUpperCase']()+'_LIST_'+_0x5e7f29['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x550ef0{['afterInit'](){const _0x5cccdf=this['editor'];if(!_0x5cccdf['plugins']['has']('MediaEmbedEditing'))return;const _0xa50b1e=_0x5cccdf['plugins']['get']('TrackChangesEditing'),_0x283330=_0x5cccdf['locale'];_0xa50b1e['enableCommand']('mediaEmbed'),_0xa50b1e['descriptionFactory']['registerElementLabel']('media',_0x54d278=>c(_0x283330,'ELEMENT_MEDIA',_0x54d278)),_0x5cccdf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1bfa68,{writer:_0x1a89af,options:_0x131d54})=>{if(_0x131d54['showSuggestionHighlights'])return _0x1a89af['createEmptyElement']('div');},'converterPriority':'high'}),_0x5cccdf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x38d747,_0x3468bb,_0xda286e)=>{_0xda286e['options']['showSuggestionHighlights']&&_0x38d747['stop']();},{'priority':'high'});}}class pt extends _0x550ef0{['afterInit'](){const _0x3a208e=this['editor'];_0x3a208e['plugins']['has']('MentionEditing')&&_0x3a208e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x550ef0{['afterInit'](){const _0x111075=this['editor'];if(!_0x111075['plugins']['has']('MergeFieldsEditing'))return;const _0x1706b9=_0x111075['plugins']['get']('TrackChangesEditing'),_0x1dfb63=_0x111075['locale'];_0x1706b9['enableCommand']('insertMergeField'),_0x1706b9['enableCommand']('insertMergeFieldBlock'),_0x1706b9['enableCommand']('insertMergeFieldImage'),_0x1706b9['descriptionFactory']['registerElementLabel']('mergeField',_0x48468c=>c(_0x1dfb63,'ELEMENT_MERGE_FIELD',_0x48468c)),_0x1706b9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3fd98f=>c(_0x1dfb63,'ELEMENT_MERGE_FIELD',_0x3fd98f)),_0x1706b9['descriptionFactory']['registerDescriptionCallback'](_0x50b16f=>{if('insertion'!=_0x50b16f['type']&&'deletion'!=_0x50b16f['type'])return;const _0x16b0fe=_0x50b16f['getContainedElement']();if(null==_0x16b0fe)return;const _0x20f6be=_0x111075['plugins']['get']('MergeFieldsEditing');let _0x2cde3c;switch(_0x20f6be['getMergeFieldType'](_0x16b0fe)){case null:return;case'image':{const _0x4c1bb3=_0x20f6be['unwrapAffixes'](_0x16b0fe['getAttribute']('src'));_0x2cde3c=_0x20f6be['getLabel'](_0x4c1bb3)||_0x4c1bb3;break;}default:{const _0x3d95d5=_0x16b0fe['getAttribute']('id');_0x2cde3c=_0x20f6be['getLabel'](_0x3d95d5)||_0x3d95d5;break;}}return'insertion'==_0x50b16f['type']?{'type':'insertion','content':c(_0x1dfb63,'*Insert:*\x20%0','\x22'+_0x2cde3c+'\x22\x20'+c(_0x1dfb63,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1dfb63,'*Remove:*\x20%0','\x22'+_0x2cde3c+'\x22\x20'+c(_0x1dfb63,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x550ef0{['afterInit'](){const _0x369a62=this['editor'],_0x5e31c4=_0x369a62['plugins']['get']('TrackChangesEditing');_0x369a62['plugins']['has']('MultiLevelList')&&(_0x5e31c4['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e31c4['registerBlockAttribute']('listMarkerStyle'),_0x5e31c4['descriptionFactory']['registerDescriptionCallback'](_0x42217c=>this['handleDescriptions'](_0x42217c)));}['handleDescriptions'](_0x20de43){const _0x3c9f1b=this['editor']['locale'],{data:_0xd95b8e}=_0x20de43,_0x2244cb={'type':'format','content':''};if(_0xd95b8e&&'listMarkerStyle'==_0xd95b8e['key']){if(!_0xd95b8e['oldValue'])return{'type':'format','content':c(_0x3c9f1b,'*Set\x20format:*\x20%0',c(_0x3c9f1b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd95b8e['newValue']+')'};if(!_0xd95b8e['newValue']){let _0x1f415d=_0x20de43['head'];for(;_0x1f415d;){if(_0x1f415d['data']&&'listType'==_0x1f415d['data']['key']&&_0x1f415d['data']['newValue'])return _0x2244cb;_0x1f415d=_0x1f415d['next'];}return{'type':'format','content':c(_0x3c9f1b,'*Remove\x20format:*\x20%0',c(_0x3c9f1b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd95b8e['oldValue']+')'};}}}}class bt extends _0x550ef0{['afterInit'](){const _0x1b2293=this['editor'];if(!_0x1b2293['plugins']['has']('PageBreakEditing'))return;_0x1b2293['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x27a851=_0x1b2293['plugins']['get']('TrackChangesEditing'),_0xebf86=_0x1b2293['locale'];_0x27a851['descriptionFactory']['registerElementLabel']('pageBreak',_0x361ff2=>c(_0xebf86,'ELEMENT_PAGE_BREAK',_0x361ff2));}}class yt extends _0x550ef0{['afterInit'](){const _0x109a76=this['editor'];if(!_0x109a76['plugins']['has']('Paragraph'))return;const _0x2f4c81=_0x109a76['locale'],_0x593674=_0x109a76['plugins']['get']('TrackChangesEditing');_0x593674['descriptionFactory']['registerElementLabel']('paragraph',_0x4a3569=>c(_0x2f4c81,'ELEMENT_PARAGRAPH',_0x4a3569)),_0x593674['enableDefaultAttributesIntegration']('paragraph'),_0x593674['enableCommand']('insertParagraph'),_0x109a76['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x109a76),{'priority':'highest'}),_0x109a76['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x43dc34,_0x117391,_0x1dfd76)=>{_0x1dfd76['options']['showSuggestionHighlights']&&nr(_0x109a76,{'showActiveMarker':!0x1})(_0x43dc34,_0x117391,_0x1dfd76);},{'priority':'highest'});const _0x47422d=_0x593674['descriptionFactory'];_0x47422d['registerDescriptionCallback'](_0x4d5265=>{if('insertion'!==_0x4d5265['type'])return;const {start:_0x4b2703,end:_0x3d0bcb}=_0x4d5265['getFirstRange']();if(!_0x4b2703['isTouching'](_0x3d0bcb)||!_0x4b2703['nodeAfter'])return;const _0x2a2fca=_0x109a76['model']['schema'],_0x56e86f=_0x4b2703['nodeAfter'];return _0x2a2fca['isBlock'](_0x56e86f)&&!_0x2a2fca['isLimit'](_0x56e86f)&&_0x2a2fca['checkChild'](_0x56e86f,'$text')?{'type':'insertion','content':c(_0x2f4c81,'*Insert:*\x20%0',_0x47422d['getItemLabel'](_0x56e86f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51062f=this['editor'],_0x4b11d2=_0x51062f['locale'];_0x51062f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22bb0f=>{if('formatBlock'!=_0x22bb0f['type'])return;const {data:_0x272e53}=_0x22bb0f;return _0x272e53&&'paragraph'==_0x272e53['commandName']?{'type':'format','content':c(_0x4b11d2,'*Change\x20to:*\x20%0',c(_0x4b11d2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x556c3e,{showActiveMarker:_0x53a9d8=!0x0}={}){return(_0x11b769,_0x1c3cb6,_0x19478d)=>{const _0x3359b1=_0x556c3e['plugins']['get']('TrackChangesEditing'),_0x20cc7f=_0x1c3cb6['markerRange']['start'],_0x3ac2ab=_0x1c3cb6['markerRange']['end'],_0x59a042=_0x556c3e['model']['schema'];if(!_0x20cc7f['isTouching'](_0x3ac2ab)||!_0x20cc7f['nodeAfter'])return;const _0x44c543=_0x20cc7f['nodeAfter'];if(_0x59a042['isBlock'](_0x44c543)&&!_0x59a042['isLimit'](_0x44c543)&&_0x59a042['checkChild'](_0x44c543,'$text')){if(!_0x19478d['consumable']['consume'](_0x1c3cb6['markerRange'],_0x11b769['name']))return;const {authorId:_0x218050}=_0x3359b1['_splitMarkerName'](_0x1c3cb6['markerName']),_0x4384c0=_0x19478d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x218050}),_0xcb637d=_0x19478d['mapper']['toViewPosition'](_0x3ac2ab);_0x53a9d8&&_0x3359b1['activeMarkers']['includes'](_0x1c3cb6['markerName'])&&_0x19478d['writer']['addClass']('ck-suggestion-marker--active',_0x4384c0),_0x19478d['writer']['insert'](_0xcb637d,_0x4384c0),_0x19478d['mapper']['bindElementToMarker'](_0x4384c0,_0x1c3cb6['markerName']);}};}class jt extends _0x550ef0{['afterInit'](){const _0x1da2e4=this['editor'];_0x1da2e4['commands']['get']('replaceSource')&&_0x1da2e4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x550ef0{['afterInit'](){const _0x45c9cc=this['editor'];if(!_0x45c9cc['plugins']['has']('RemoveFormatEditing'))return;_0x45c9cc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb5aa88=this['editor'];_0xb5aa88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e25ad=>{if('formatBlock'!=_0x5e25ad['type']&&'formatInline'!=_0x5e25ad['type'])return;const {data:_0x1b07e0}=_0x5e25ad;return _0x1b07e0&&'removeFormat'==_0x1b07e0['commandName']?{'type':'format','content':c(_0xb5aa88['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x550ef0{['afterInit'](){const _0x51e304=this['editor'];if(!_0x51e304['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4b9a0e=_0x51e304['plugins']['get']('TrackChangesEditing');_0x4b9a0e['enableCommand']('goToPreviousRestrictedEditingException'),_0x4b9a0e['enableCommand']('goToNextRestrictedEditingException');const _0x3c8506=_0x51e304['plugins']['get']('RestrictedEditingModeEditing');_0x3c8506['enableCommand']('trackChanges'),_0x3c8506['enableCommand']('acceptSuggestion'),_0x3c8506['enableCommand']('discardSuggestion'),_0x3c8506['enableCommand']('acceptAllSuggestions'),_0x3c8506['enableCommand']('discardAllSuggestions'),_0x3c8506['enableCommand']('acceptSelectedSuggestions'),_0x3c8506['enableCommand']('discardSelectedSuggestions');}}class It extends _0x550ef0{['afterInit'](){const _0x591c86=this['editor'];if(!_0x591c86['plugins']['has']('ShiftEnter'))return;const _0x3ff244=_0x591c86['plugins']['get']('TrackChangesEditing');_0x3ff244['enableCommand']('shiftEnter'),_0x591c86['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x591c86),{'priority':'high'}),_0x591c86['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x591c86),{'priority':'high'}),_0x591c86['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5b9ef9,_0x2b231c,_0x26b9fc)=>{_0x26b9fc['options']['showSuggestionHighlights']&&je(_0x591c86,{'showActiveMarker':!0x1})(_0x5b9ef9,_0x2b231c,_0x26b9fc);}),_0x3ff244['descriptionFactory']['registerElementLabel']('softBreak',_0x19ffcd=>c(_0x591c86['locale'],'ELEMENT_LINE_BREAK',_0x19ffcd));}}function je(_0x1dfdbd,{showActiveMarker:_0x23a0c7=!0x0}={}){return(_0x1927b8,_0x387389,_0x47871a)=>{const _0x9da4e9=_0x1dfdbd['plugins']['get']('TrackChangesEditing');if(!_0x47871a['consumable']['test'](_0x387389['markerRange'],_0x1927b8['name']))return;const _0x4b68cf=_0x1dfdbd['model'];for(const _0xf07186 of _0x387389['markerRange']['getItems']()){if(!_0xf07186['is']('element','softBreak'))continue;const _0xcd1723='deletion'==_0x387389['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3cd005}=_0x9da4e9['_splitMarkerName'](_0x387389['markerName']),_0x482c5f=_0x47871a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xcd1723,'data-author-id':_0x3cd005}),_0x1a6ebc=_0x47871a['mapper']['toViewPosition'](_0x4b68cf['createPositionBefore'](_0xf07186));_0x23a0c7&&_0x9da4e9['activeMarkers']['includes'](_0x387389['markerName'])&&_0x47871a['writer']['addClass']('ck-suggestion-marker--active',_0x482c5f),_0x47871a['writer']['insert'](_0x1a6ebc,_0x482c5f),_0x47871a['mapper']['bindElementToMarker'](_0x482c5f,_0x387389['markerName']);}};}class _t extends _0x550ef0{['afterInit'](){const _0x2d4484=this['editor'],_0x54f031=_0x2d4484['model'],_0x3314bd=_0x2d4484['locale'];if(!_0x2d4484['plugins']['has']('StandardEditingModeEditing'))return;const _0x1ae040=_0x2d4484['plugins']['get']('TrackChangesEditing'),_0x3b7834='restrictedEditingException',_0x5425dd=_0x2d4484['commands']['get'](_0x3b7834);_0x1ae040['enableCommand'](_0x3b7834,(_0x6c2eeb,_0x1edb29={})=>{const _0x4060b4=_0x54f031['document']['selection'];if(_0x4060b4['isCollapsed'])return void _0x6c2eeb(_0x1edb29);const _0x51bba6=void 0x0!==_0x1edb29['forceValue']?_0x1edb29['forceValue']:!_0x5425dd['value'];_0x54f031['change'](()=>{const _0x21fd97=Array['from'](_0x4060b4['getRanges']());for(const _0x3763ab of _0x21fd97){const _0x1233c8=_0x51bba6?[_0x3763ab]:io(_0x3b7834,_0x3763ab,_0x54f031);for(const _0x223146 of _0x1233c8)_0x1ae040['markInlineFormat'](_0x223146,{'commandName':_0x3b7834,'commandParams':[{'forceValue':_0x51bba6}]});}});}),_0x1ae040['descriptionFactory']['registerDescriptionCallback'](_0x66dcaa=>{if('formatBlock'!=_0x66dcaa['type']&&'formatInline'!=_0x66dcaa['type'])return;const {data:_0x51e3d9}=_0x66dcaa;return _0x51e3d9&&_0x51e3d9['commandName']==_0x3b7834?_0x51e3d9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3314bd,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3314bd,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x550ef0{['afterInit'](){const _0x490de4=this['editor'];if(!_0x490de4['plugins']['has']('Style')||!_0x490de4['plugins']['has']('DataSchema'))return;const _0x3a5c39=_0x490de4['plugins']['get']('TrackChangesEditing'),_0x51d136=_0x490de4['locale'],_0x807f8f=_0x490de4['config']['get']('style')||{},_0x51a84b=_0x490de4['plugins']['get']('GeneralHtmlSupport'),_0x41b5f4=_0x490de4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x490de4['plugins']['get']('DataSchema'),_0x807f8f['definitions']);_0x3a5c39['enableDefaultAttributesIntegration']('style');const _0xd3bef1=new Set();for(const _0x5eaf2d of _0x41b5f4['block']){const _0x13c34f=_0x51a84b['getGhsAttributeNameForElement'](_0x5eaf2d['element']);_0xd3bef1['add'](_0x13c34f);}const _0x53ae94=new Set();for(const _0x496dc6 of _0x41b5f4['inline']){const _0x2eec03=_0x51a84b['getGhsAttributeNameForElement'](_0x496dc6['element']);_0x53ae94['add'](_0x2eec03);for(const _0x2bebef of _0x496dc6['ghsAttributes'])_0x53ae94['add'](_0x2bebef);}for(const _0x1f514f of _0xd3bef1)_0x3a5c39['registerBlockAttribute'](_0x1f514f),_0x3a5c39['descriptionFactory']['registerAttributeLabel'](_0x1f514f,c(_0x51d136,'FORMAT_STYLE'));for(const _0x21a009 of _0x53ae94)_0x3a5c39['registerInlineAttribute'](_0x21a009),_0x3a5c39['descriptionFactory']['registerAttributeLabel'](_0x21a009,c(_0x51d136,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c28a8=this['editor'],_0xcb1827=_0x1c28a8['locale'];_0x1c28a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d9d31=>{if('formatBlock'!=_0x2d9d31['type']&&'formatInline'!=_0x2d9d31['type'])return;const {data:_0x3f1148}=_0x2d9d31;return _0x3f1148&&'style'===_0x3f1148['commandName']?_0x3f1148['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xcb1827,'*Set\x20format:*\x20%0',_0x3f1148['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0xcb1827,'*Remove\x20format:*\x20%0',_0x3f1148['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x550ef0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x318aa2){super(_0x318aa2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3127a0=this['editor'],_0xab4fba=_0x3127a0['model']['document']['selection'];if(!_0x3127a0['plugins']['has']('TableEditing'))return;const _0xfcf3a8=_0x3127a0['locale'],_0x4db70f=_0x3127a0['plugins']['get']('TrackChangesEditing'),_0x38eb94=_0x3127a0['plugins']['get']('TableUtils');_0x4db70f['descriptionFactory']['registerElementLabel']('table',_0x20b843=>c(_0xfcf3a8,'ELEMENT_TABLE',_0x20b843)),this['_setupColumnsRowsFixing'](),_0x4db70f['enableCommand']('insertTable'),_0x4db70f['enableCommand']('selectTableRow'),_0x4db70f['enableCommand']('selectTableColumn');for(const _0x59044f of['insertTableRowAbove','insertTableRowBelow']){const _0x453f3e=_0x3127a0['commands']['get'](_0x59044f);_0x4db70f['enableCommand'](_0x59044f,_0x52a9df=>{_0x3127a0['model']['change'](_0x490fa7=>{_0x52a9df();const _0x132176='above'===_0x453f3e['order'],_0x508ba6=_0x38eb94['getSelectionAffectedTableCells'](_0xab4fba),_0x27f4c3=_0x38eb94['getRowIndexes'](_0x508ba6),_0x5a7eb5=_0x132176?_0x27f4c3['first']-0x1:_0x27f4c3['last']+0x1,_0x249b9a=_0x508ba6[0x0]['findAncestor']('table'),_0x25767f=_0x38eb94['createTableWalker'](_0x249b9a,{'startRow':_0x5a7eb5,'endRow':_0x5a7eb5}),_0x457e1c=Array['from'](_0x25767f)['map'](_0xfa861d=>_0x490fa7['createRangeOn'](_0xfa861d['cell']));_0x4db70f['markMultiRangeInsertion'](_0x457e1c,'tableRow');});});}for(const _0x5cfc18 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2a8096=_0x3127a0['commands']['get'](_0x5cfc18);_0x4db70f['enableCommand'](_0x5cfc18,_0x58a2ef=>{_0x3127a0['model']['change'](_0x510436=>{_0x58a2ef();const _0x4fbc3c='left'===_0x2a8096['order'],_0x3e4498=_0x38eb94['getSelectionAffectedTableCells'](_0xab4fba),_0x106506=_0x38eb94['getColumnIndexes'](_0x3e4498),_0x558e06=_0x4fbc3c?_0x106506['first']-0x1:_0x106506['last']+0x1,_0x2bfd47=_0x3e4498[0x0]['findAncestor']('table'),_0x4d7d30=_0x38eb94['createTableWalker'](_0x2bfd47,{'startRow':0x0,'column':_0x558e06,'includeAllSlots':!0x1}),_0x1663e0=Array['from'](_0x4d7d30)['map'](_0x4d2e0e=>_0x510436['createRangeOn'](_0x4d2e0e['cell']));_0x4db70f['markMultiRangeInsertion'](_0x1663e0,'tableColumn');});});}for(const _0x11687e of['removeTableRow','removeTableColumn']){const _0x246226=_0x11687e['substr'](0xb),_0x200dbe=_0x246226['toLowerCase'](),_0x381f3a=_0x200dbe['substr'](0x0,0x3)+'span',_0x36aa57='table'+_0x246226,_0x43639e='min'+_0x246226,_0x20ebed='max'+_0x246226;_0x4db70f['enableCommand'](_0x11687e,()=>{_0x3127a0['model']['change'](_0x24c8f5=>{const _0x12d1b4=_0x38eb94['getSelectionAffectedTableCells'](_0xab4fba),_0xb1a7b1=_0x12d1b4[0x0]['findAncestor']('table');let _0x23711c;if('removeTableRow'==_0x11687e){const _0x141fe2=_0x38eb94['getRowIndexes'](_0x12d1b4);_0x23711c={'startRow':_0x141fe2['first'],'endRow':_0x141fe2['last'],'includeAllSlots':!0x0};}else{const _0x5abb88=_0x38eb94['getColumnIndexes'](_0x12d1b4);_0x23711c={'startColumn':_0x5abb88['first'],'endColumn':_0x5abb88['last'],'includeAllSlots':!0x0};}const _0xed1220=_0x38eb94['createTableWalker'](_0xb1a7b1,_0x23711c),_0x3a2873=Array['from'](_0xed1220)['map'](({cell:_0x3cee10})=>_0x3cee10),_0x319ea7=Ne(_0x3a2873['filter'](_0x151688=>_0x151688['hasAttribute'](_0x381f3a))),_0x30ccff=Ne(_0x3a2873['filter'](_0xa9f944=>!_0xa9f944['hasAttribute'](_0x381f3a)))['map'](_0x260ff7=>_0x24c8f5['createRangeOn'](_0x260ff7)),_0x205673=_0x4db70f['markMultiRangeDeletion'](_0x30ccff,_0x36aa57);if(_0x205673&&('tableRow'==_0x205673['subType']||'tableColumn'==_0x205673['subType'])){const _0x246e6c=this['_getSuggestionCoords'](_0x205673);for(const _0x1d9a6a of _0x319ea7){const _0x595279=_0x24c8f5['createRangeOn'](_0x1d9a6a),_0xe4250b=_0x38eb94['getCellLocation'](_0x1d9a6a),_0xe7fa67=_0x1d9a6a['getAttribute'](_0x381f3a)-0x1,_0x229a34=_0x246e6c[_0x43639e],_0x5ce5a8=_0x246e6c[_0x20ebed];_0x229a34<=_0xe4250b[_0x200dbe]&&_0xe4250b[_0x200dbe]+_0xe7fa67<=_0x5ce5a8&&_0x205673['addRange'](_0x595279);}}});});}function _0x478d12(_0x558f58){const _0x412166=Array['from'](_0xab4fba['getRanges']())['map'](_0x5845dc=>_0x14a494['fromRange'](_0x5845dc));_0x3127a0['model']['change'](_0x4289a1=>{const _0x3b61f7=_0x4289a1['batch'];_0x558f58=_0x558f58['filter'](_0x1a5402=>'$graveyard'!=_0x1a5402['root']['rootName']),_0x4289a1['setSelection'](_0x558f58),_0x3127a0['commands']['get']('removeTableRow')['refresh'](),_0x3127a0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3127a0['model']['enqueueChange'](()=>{_0x3127a0['model']['enqueueChange'](_0x3b61f7,_0x2d3b74=>{const _0x8b0035=_0x412166['filter'](_0x2a95bf=>'$graveyard'!=_0x2a95bf['root']['rootName']);_0x8b0035['length']>0x0&&_0x2d3b74['setSelection'](_0x8b0035);for(const _0x11ca9d of _0x412166)_0x11ca9d['detach']();});});});}function _0x763adf(_0xef9c5f){_0x3127a0['model']['change'](_0x137995=>{const _0x290fc4=Array['from'](_0xab4fba['getRanges']())['map'](_0x3ce791=>_0x14a494['fromRange'](_0x3ce791)),_0x491eec=[];for(const _0x1995f9 of _0xef9c5f)for(const _0x383573 of _0x1995f9['getItems']({'shallow':!0x0}))_0x491eec['push'](_0x383573);for(const _0x5a72fe of _0x491eec)'$graveyard'!=_0x5a72fe['root']['rootName']&&(_0x137995['setSelection'](_0x137995['createPositionAt'](_0x5a72fe,0x0)),_0x3127a0['commands']['get']('removeTableColumn')['refresh'](),_0x3127a0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x267e8a=_0x290fc4['filter'](_0x3581a0=>'$graveyard'!=_0x3581a0['root']['rootName']);_0x267e8a['length']>0x0&&_0x137995['setSelection'](_0x267e8a);for(const _0x285a68 of _0x290fc4)_0x285a68['detach']();});}function _0x58d0fb(_0x516ec9,_0x1767e8){return _0x1767e8['every'](_0x252c43=>_0x516ec9['some'](_0x11c137=>_0x11c137['end']['isEqual'](_0x252c43['start'])||_0x252c43['end']['isEqual'](_0x11c137['start'])));}function _0x146835(_0x5463b0,_0xf029b5){return!_0x5463b0['some'](_0x3ef19b=>_0xf029b5['some'](_0x2ec508=>_0x3ef19b['isIntersecting'](_0x2ec508)))&&_0x5463b0['some'](_0x575461=>_0xf029b5['some'](_0x2d8e2c=>_0x575461['end']['isTouching'](_0x2d8e2c['start'])));}_0x3127a0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x44ead8,_0x58f97c,_0x13ade8)=>{if(!_0x13ade8['options']['showSuggestionHighlights'])return;const _0x3bd1b2=_0x58f97c['item'];if(!_0x3bd1b2)return;const _0x39c95e=_0x13ade8['mapper']['toViewElement'](_0x3bd1b2);function _0xe26cf7(_0x4cef06){return Array['isArray'](_0x4cef06)?_0x4cef06:[_0x4cef06];}_0x39c95e&&'tableCell'===_0x3bd1b2['name']&&_0xefd93e(_0x39c95e,_0x13ade8['writer'],(_0x28903f,_0x27fbfe,_0x5b20fa)=>_0x5b20fa['addClass'](_0xe26cf7(_0x27fbfe['classes']),_0x28903f),(_0x539257,_0x329335,_0x5bf1c1)=>_0x5bf1c1['removeClass'](_0xe26cf7(_0x329335['classes']),_0x539257));},{'priority':'highest'}),_0x4db70f['descriptionFactory']['registerDescriptionCallback'](_0x2d170b=>{if('insertion'!=_0x2d170b['type']&&'deletion'!=_0x2d170b['type'])return;const _0xb01c26=_0x2d170b['getContainedElement']();if(null!=_0xb01c26&&_0xb01c26['is']('element','table')){if('insertion'==_0x2d170b['type']){const _0xf2017=_0x2d170b['getItems']()['filter'](_0x30cfbd=>_0x30cfbd['is']('$textProxy'))['map'](_0x195f0d=>_0x195f0d['data']);if(_0xf2017['length'])return{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf2017['join']('\x20')+'\x22'))};}if('deletion'==_0x2d170b['type']){const _0x5d4c8b=_0x2d170b['getItems']()['filter'](_0x585ed4=>_0x585ed4['is']('$textProxy'))['map'](_0x103e8b=>_0x103e8b['data']);if(_0x5d4c8b['length'])return{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d4c8b['join']('\x20')+'\x22'))};}}}),_0x4db70f['descriptionFactory']['registerDescriptionCallback'](_0x3509bc=>{if('tableRow'==_0x3509bc['subType']){const _0x48a463=_0x3509bc['getItems']()['filter'](_0x2ed8de=>_0x2ed8de['is']('$textProxy'))['map'](_0x2e88bb=>_0x2e88bb['data']),_0x529bee=this['_getSuggestionCoords'](_0x3509bc),_0xb8a410=_0x529bee['maxRow']-_0x529bee['minRow']+0x1;if('insertion'==_0x3509bc['type'])return _0x48a463['length']?{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb8a410,'\x22'+_0x48a463['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_ROW',_0xb8a410))};if('deletion'==_0x3509bc['type'])return _0x48a463['length']?{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb8a410,'\x22'+_0x48a463['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_ROW',_0xb8a410))};}if('tableColumn'==_0x3509bc['subType']){const _0x38255b=_0x3509bc['getItems']()['filter'](_0xf25aaf=>_0xf25aaf['is']('$textProxy'))['map'](_0x365f02=>_0x365f02['data']),_0x2f7ae7=this['_getSuggestionCoords'](_0x3509bc),_0x5f3c33=_0x2f7ae7['maxColumn']-_0x2f7ae7['minColumn']+0x1;if('insertion'==_0x3509bc['type'])return _0x38255b['length']?{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f3c33,'\x22'+_0x38255b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0xfcf3a8,'*Insert:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_COLUMN',_0x5f3c33))};if('deletion'==_0x3509bc['type'])return _0x38255b['length']?{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5f3c33,'\x22'+_0x38255b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0xfcf3a8,'*Remove:*\x20%0',c(_0xfcf3a8,'ELEMENT_TABLE_COLUMN',_0x5f3c33))};}}),_0x4db70f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x478d12),_0x4db70f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x478d12),_0x4db70f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x763adf),_0x4db70f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x763adf),_0x4db70f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x58d0fb),_0x4db70f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x58d0fb),_0x4db70f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x146835),_0x4db70f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x146835);}['_acceptFormatSuggestionCallbackFactory'](){const _0x525076=this['editor'],_0x19a742=_0x525076['model']['document']['selection'];return(_0xcb3f6,_0x2e0ef3)=>{_0x525076['model']['change'](_0x4d4e54=>{const {commandName:_0x2c29d2,commandParams:_0x40d9df}=_0x2e0ef3;let _0x588d8a=_0xcb3f6[0x0]['end']['nodeBefore'];_0x40d9df&&_0x40d9df[0x0]&&!0x1===_0x40d9df[0x0]['forceValue']&&(_0x588d8a=_0xcb3f6[0x0]['start']['nodeAfter']);const _0x2527a8=_0x4d4e54['createRangeIn'](_0x588d8a);if('$graveyard'==_0x2527a8['root']['rootName'])return;const _0x4b340f=Array['from'](_0x19a742['getRanges']())['map'](_0x3bf5d2=>_0x14a494['fromRange'](_0x3bf5d2));_0x4d4e54['setSelection'](_0x2527a8),_0x525076['commands']['get'](_0x2c29d2)['refresh'](),_0x40d9df['push']({'forceDefaultExecution':!0x0}),_0x525076['execute'](_0x2c29d2,..._0x40d9df);const _0xd6af9c=_0x4b340f['filter'](_0x2faf42=>'$graveyard'!=_0x2faf42['root']['rootName']);_0xd6af9c['length']>0x0&&_0x4d4e54['setSelection'](_0xd6af9c);for(const _0x2cd5bf of _0x4b340f)_0x2cd5bf['detach']();});};}['_getCoordsForCells'](_0x50607a){const _0x37013c=this['editor']['plugins']['get']('TableUtils');let _0x2efbb8=Number['MAX_SAFE_INTEGER'],_0x3c68c8=Number['MIN_SAFE_INTEGER'],_0x24e13f=Number['MAX_SAFE_INTEGER'],_0x47ba45=Number['MIN_SAFE_INTEGER'];for(const _0x2f961f of _0x50607a){if('$graveyard'==_0x2f961f['root']['rootName'])continue;const {row:_0x757d4,column:_0x64d0cf}=_0x37013c['getCellLocation'](_0x2f961f),_0xa8a634=_0x2f961f['hasAttribute']('rowspan')?_0x2f961f['getAttribute']('rowspan')-0x1:0x0,_0x4f7224=_0x2f961f['hasAttribute']('colspan')?_0x2f961f['getAttribute']('colspan')-0x1:0x0;_0x2efbb8=_0x757d4<_0x2efbb8?_0x757d4:_0x2efbb8,_0x3c68c8=_0x757d4+_0xa8a634>_0x3c68c8?_0x757d4+_0xa8a634:_0x3c68c8,_0x24e13f=_0x64d0cf<_0x24e13f?_0x64d0cf:_0x24e13f,_0x47ba45=_0x64d0cf+_0x4f7224>_0x47ba45?_0x64d0cf+_0x4f7224:_0x47ba45;}return{'minRow':_0x2efbb8,'maxRow':_0x3c68c8,'minColumn':_0x24e13f,'maxColumn':_0x47ba45};}['_setupColumnsRowsFixing'](){const _0x59d065=this['editor'],_0x1c52dc=_0x59d065['plugins']['get']('TrackChangesEditing'),_0x4a4da8=_0x59d065['plugins']['get']('TableUtils');_0x59d065['model']['document']['on']('change:data',()=>{const _0x50ab6e=Array['from'](_0x59d065['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1824f6,data:_0x3bfd5c}of _0x50ab6e){const {group:_0x4ddc89,id:_0x44f9bf,subType:_0x1ebd87}=_0x1c52dc['_splitMarkerName'](_0x1824f6);if('suggestion'!=_0x4ddc89)continue;if(null!=_0x3bfd5c['oldRange'])continue;const _0x1a86c8=_0x1c52dc['getSuggestion'](_0x44f9bf);this['_tablePostFixingSubtypes']['includes'](_0x1ebd87)&&this['_tableSuggestions']['add'](_0x1a86c8);}},{'priority':'low'});const _0x15851b=(_0x50ed78,_0x29e8ee)=>{let _0x136cfb=!0x1;const _0x33f6f5=_0x29e8ee['createRangeOn'](_0x50ed78),_0x3802b4=_0x50ed78['findAncestor']('table'),_0x1018e4=_0x4a4da8['getCellLocation'](_0x50ed78);for(const _0x42701d of this['_tableSuggestions']){const _0x47cbac=_0x42701d['subType'],_0x5a7d9c=_0x47cbac['startsWith']('tablePaste'),_0x3ad406=_0x47cbac['substr'](_0x5a7d9c?0xa:0x5),_0x18b59b=_0x3ad406['toLowerCase'](),_0x8e3f59=_0x18b59b['substr'](0x0,0x3)+'span',_0xc5c679='min'+_0x3ad406,_0x20b0e6='max'+_0x3ad406;if(!_0x42701d['isInContent'])continue;if(_0x3802b4!=_0x42701d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x42701d['isIntersectingWithRange'](_0x33f6f5))continue;const _0x303f15=_0x50ed78['hasAttribute'](_0x8e3f59)?_0x50ed78['getAttribute'](_0x8e3f59)-0x1:0x0,_0x436e4c=this['_getSuggestionCoords'](_0x42701d),_0xab574=_0x436e4c[_0xc5c679],_0x32d190=_0x436e4c[_0x20b0e6];_0xab574<=_0x1018e4[_0x18b59b]&&_0x1018e4[_0x18b59b]+_0x303f15<=_0x32d190&&(_0x42701d['addRange'](_0x33f6f5),_0x136cfb=!0x0);}return _0x136cfb;};_0x59d065['model']['document']['registerPostFixer'](_0x4697cb=>{let _0x40a8df=!0x1;for(const _0x2329ed of _0x59d065['model']['document']['differ']['getChanges']())if('insert'==_0x2329ed['type']){if('tableRow'==_0x2329ed['name']){for(const _0x1cf875 of _0x2329ed['position']['nodeAfter']['getChildren']())_0x40a8df=_0x40a8df||_0x15851b(_0x1cf875,_0x4697cb);}else'tableCell'==_0x2329ed['name']&&(_0x40a8df=_0x40a8df||_0x15851b(_0x2329ed['position']['nodeAfter'],_0x4697cb));}return _0x40a8df;});}['_getSuggestionCoords'](_0x15e196){return this['_getCoordsForCells'](_0x15e196['getRanges']()['map'](_0x3c94df=>_0x3c94df['start']['nodeAfter']));}}function Ne(_0x29ae7){return Array['from'](new Set(_0x29ae7)['values']());}class Nt extends _0x550ef0{static get['requires'](){return[Ct];}['afterInit'](){const _0x2fb0e1=this['editor'],_0x50f6e0=_0x2fb0e1['model']['document']['selection'],_0x11f03c=_0x2fb0e1['locale'];if(!_0x2fb0e1['plugins']['has']('TableEditing'))return;const _0x31935d=_0x2fb0e1['plugins']['get']('TrackChangesEditing'),_0x5cd93e=_0x2fb0e1['plugins']['get']('TableUtils'),_0x46a994=_0x2fb0e1['plugins']['get'](Ct);_0x46a994['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x31935d['enableCommand']('mergeTableCells',()=>{const _0x1d6f4d=_0x5cd93e['getSelectionAffectedTableCells'](_0x2fb0e1['model']['document']['selection']);_0x2fb0e1['model']['change'](()=>{_0x31935d['markMultiRangeBlockFormat'](_0x1d6f4d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2fb0e1['commands']['get']('mergeTableCells')['on']('execute',(_0x56f6df,_0x569b28)=>{_0x2fb0e1['commands']['get']('trackChanges')['value']&&(_0x569b28['length']>0x0&&_0x569b28[_0x569b28['length']-0x1]&&_0x569b28[_0x569b28['length']-0x1]['forceDefaultExecution']||_0x31935d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x56f6df['stop']());},{'priority':'highest'});for(const _0x17af83 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2fe6c2=_0x2fb0e1['commands']['get'](_0x17af83);_0x31935d['enableCommand'](_0x17af83,()=>{const _0x154696=_0x2fb0e1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45231b=>_0x45231b['is']('element','tableCell')),_0x2ce6fa=_0x2fe6c2['value'];_0x2fb0e1['model']['change'](()=>{_0x31935d['markMultiRangeBlockFormat']([_0x154696,_0x2ce6fa],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3ee45e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x746aba=_0x2fb0e1['commands']['get'](_0x3ee45e);_0x31935d['enableCommand'](_0x3ee45e,()=>{const _0x2607e3=_0x5cd93e['getSelectionAffectedTableCells'](_0x2fb0e1['model']['document']['selection'])[0x0],_0x368a6a=_0x2607e3['findAncestor']('table'),{column:_0x37acfc,row:_0x173f1d}=_0x5cd93e['getCellLocation'](_0x2607e3);let _0x4a4486=[];if('horizontally'==_0x746aba['direction']){const _0x489b2b=_0x5cd93e['createTableWalker'](_0x368a6a,{'startRow':_0x173f1d,'endRow':_0x173f1d,'includeAllSlots':!0x0});_0x4a4486=Array['from'](_0x489b2b)['map'](_0x24bcc1=>_0x24bcc1['cell']);}else{const _0x4d07ab=_0x5cd93e['createTableWalker'](_0x368a6a,{'column':_0x37acfc,'includeAllSlots':!0x0});_0x4a4486=Array['from'](_0x4d07ab)['map'](_0x5795f9=>_0x5795f9['cell']);}_0x2fb0e1['model']['change'](_0x15724f=>{_0x31935d['markBlockFormat'](_0x15724f['createRangeOn'](_0x2607e3),{'commandName':_0x3ee45e,'commandParams':[]},_0x4a4486,_0x3ee45e);});});}_0x31935d['descriptionFactory']['registerDescriptionCallback'](_0x217736=>{if('formatBlock'!=_0x217736['type']&&'formatInline'!=_0x217736['type'])return;const {data:_0x3b6d8}=_0x217736;return _0x3b6d8&&'mergeTableCells'==_0x3b6d8['commandName']?{'type':'format','content':c(_0x11f03c,'*Merge\x20cells*')}:void 0x0;}),_0x31935d['descriptionFactory']['registerDescriptionCallback'](_0x5dea3d=>{if('formatBlock'!=_0x5dea3d['type']&&'formatInline'!=_0x5dea3d['type'])return;const {data:_0x528e51}=_0x5dea3d;return _0x528e51?'splitTableCellVertically'==_0x528e51['commandName']?{'type':'format','content':c(_0x11f03c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x528e51['commandName']?{'type':'format','content':c(_0x11f03c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3340a1=_0x46a994['_acceptFormatSuggestionCallbackFactory']();for(const _0x579f35 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x31935d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x579f35,'accept',_0x3340a1);for(const _0x34e4ee of['splitTableCellVertically','splitTableCellHorizontally'])_0x31935d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x34e4ee,'accept',_0x3340a1);_0x31935d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1f1686=>{_0x2fb0e1['model']['change'](_0x2bd324=>{const _0x517c7d=Array['from'](_0x50f6e0['getRanges']())['map'](_0x5dbc7a=>_0x14a494['fromRange'](_0x5dbc7a));_0x2bd324['setSelection'](_0x1f1686),_0x2fb0e1['commands']['get']('mergeTableCells')['refresh'](),_0x2fb0e1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3dfa7c=_0x517c7d['filter'](_0x2f8d4d=>'$graveyard'!=_0x2f8d4d['root']['rootName']);_0x3dfa7c['length']>0x0&&_0x2bd324['setSelection'](_0x3dfa7c);for(const _0x53111a of _0x517c7d)_0x53111a['detach']();});});for(const _0x226548 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x425ad7=_0x2fb0e1['commands']['get'](_0x226548);_0x425ad7['on']('set:isEnabled',(_0x396736,_0x5d6d3e,_0x9c79ab)=>{if(_0x9c79ab){const _0x2e1b14=_0x2fb0e1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x534708=>_0x534708['is']('element','tableCell'));this['_areMergableCells'](_0x425ad7['value'],_0x2e1b14)||(_0x396736['return']=!0x1,_0x396736['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4fa788=this['editor']['commands']['get']('mergeTableCells'),_0x2a8faa=this['editor']['plugins']['get']('TableUtils');if(!_0x4fa788['isEnabled'])return!0x1;const _0x252b30=_0x2a8faa['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5ec075 of _0x252b30)for(const _0x4d7279 of _0x252b30)if(_0x5ec075!=_0x4d7279&&!this['_areMergableCells'](_0x5ec075,_0x4d7279))return!0x1;return!0x0;}['_areMergableCells'](_0x36f957,_0x461ec0){const _0x4f4424=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22f103=this['editor']['model']['createRangeOn'](_0x36f957),_0x43a02f=this['editor']['model']['createRangeOn'](_0x461ec0),_0x2ff0d9=new Set(),_0x343e77=new Set();for(const _0xca3c36 of _0x4f4424['getSuggestions']())if(('insertion'==_0xca3c36['type']||'deletion'==_0xca3c36['type']||'mergeTableCells'==_0xca3c36['subType'])&&_0xca3c36['isInContent']){for(const _0x3884e2 of _0xca3c36['getRanges']())_0x3884e2['containsRange'](_0x22f103,!0x0)&&_0x2ff0d9['add'](_0xca3c36['type']+':'+_0xca3c36['author']['id']),_0x3884e2['containsRange'](_0x43a02f,!0x0)&&_0x343e77['add'](_0xca3c36['type']+':'+_0xca3c36['author']['id']);}if(_0x2ff0d9['size']!=_0x343e77['size'])return!0x1;for(const _0xaf2f74 of _0x2ff0d9)if(!_0x343e77['has'](_0xaf2f74))return!0x1;return!0x0;}}class Dt extends _0x550ef0{static get['requires'](){return[Ct];}['afterInit'](){const _0x4cb5a8=this['editor'];if(!_0x4cb5a8['plugins']['has']('TableEditing'))return;const _0x58e3cb=_0x4cb5a8['locale'],_0x175d3d=_0x4cb5a8['plugins']['get']('TrackChangesEditing');_0x175d3d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x175d3d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x175d3d['registerBlockAttribute']('headingRows'),_0x175d3d['registerBlockAttribute']('headingColumns'),_0x175d3d['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x58e3cb,'FORMAT_HEADER_ROW')),_0x175d3d['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x58e3cb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b4ae6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b29bc=this['editor']['plugins']['get']('TableUtils'),_0x2546ce=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x2a68a1({showActiveMarker:_0x2aa53e=!0x0,setDataAttribute:_0x51a4dd=!0x0}={}){return(_0xa87942,_0x4dfb05,_0x1bb7ac)=>{const {type:_0x9951a4,id:_0x58d2f3}=_0x1b4ae6['_splitMarkerName'](_0x4dfb05['markerName']),_0x1f1632=_0x1b4ae6['getSuggestion'](_0x58d2f3),_0x40bb3a=_0x1f1632['data'];if('formatBlock'!=_0x1f1632['type']||!_0x40bb3a||'setTableColumnHeader'!=_0x40bb3a['commandName'])return;if(_0x4dfb05['item'])return void _0xa87942['stop']();if(!_0x1bb7ac['consumable']['consume'](_0x4dfb05['markerRange'],_0xa87942['name']))return;const _0x57489a=_0x4dfb05['markerRange']['start']['nodeAfter'],_0x4cf9ca=_0x4dfb05['markerRange']['end']['nodeBefore'],_0x4130e1=_0x57489a['parent']['parent'],{column:_0x4e2205}=_0x1b29bc['getCellLocation'](_0x57489a),{column:_0x500680}=_0x1b29bc['getCellLocation'](_0x4cf9ca);for(let _0x20b419=_0x4e2205;_0x20b419<=_0x500680;_0x20b419++){const _0x1c6a9e=_0x1b29bc['createTableWalker'](_0x4130e1,{'column':_0x20b419,'includeAllSlots':!0x1});for(const _0x2e5dc7 of _0x1c6a9e){const _0x46ffd6=_0x2e5dc7['cell'],_0x5ae8f0=_0x1bb7ac['mapper']['toViewElement'](_0x46ffd6);_0x1bb7ac['writer']['addClass']('ck-suggestion-marker-'+_0x9951a4,_0x5ae8f0),_0x51a4dd&&_0x1bb7ac['writer']['setAttribute']('data-suggestion',_0x58d2f3,_0x5ae8f0),_0x1bb7ac['mapper']['bindElementToMarker'](_0x5ae8f0,_0x4dfb05['markerName']),_0x2aa53e&&(_0x1b4ae6['activeMarkers']['includes'](_0x4dfb05['markerName'])?_0x1bb7ac['writer']['addClass']('ck-suggestion-marker--active',_0x5ae8f0):_0x1bb7ac['writer']['removeClass']('ck-suggestion-marker--active',_0x5ae8f0));}}};}_0x1b4ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2546ce),_0x1b4ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2546ce),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a68a1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36efb5,_0x27a80c,_0x11eba4)=>{_0x11eba4['options']['showSuggestionHighlights']&&_0x2a68a1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x36efb5,_0x27a80c,_0x11eba4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3b6d84,_0x32c61c,_0x15a8e4)=>{const {type:_0x47588,id:_0x5c9704}=_0x1b4ae6['_splitMarkerName'](_0x32c61c['markerName']),_0x4eab47=_0x1b4ae6['getSuggestion'](_0x5c9704),_0x1f8262=_0x4eab47['data'];if('formatBlock'!=_0x4eab47['type']||!_0x1f8262||'setTableColumnHeader'!=_0x1f8262['commandName'])return;const _0x5547a4=_0x15a8e4['mapper']['markerNameToElements'](_0x32c61c['markerName']);if(_0x5547a4){for(const _0x5bb321 of _0x5547a4)_0x15a8e4['writer']['removeClass']('ck-suggestion-marker-'+_0x47588,_0x5bb321),_0x15a8e4['writer']['removeClass']('ck-suggestion-marker--active',_0x5bb321),_0x15a8e4['writer']['removeAttribute']('data-suggestion',_0x5bb321),_0x15a8e4['mapper']['unbindElementFromMarkerName'](_0x5bb321,_0x32c61c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c5eb3=this['editor'],_0x2d5def=_0x3c5eb3['locale'];function _0xb2306f(_0x5f0d2d){return{'type':'format','content':c(_0x2d5def,'*Format:*\x20%0',_0x5f0d2d)};}_0x3c5eb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9a84=>{if('formatBlock'!=_0x5a9a84['type'])return;const {data:_0x4485e0}=_0x5a9a84;if(_0x4485e0){if('setTableRowHeader'==_0x4485e0['commandName']){const _0x726a06=_0x4485e0['commandParams'][0x0]['forceValue'];return _0xb2306f(c(_0x2d5def,_0x726a06?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4485e0['commandName']){const _0x395a3b=_0x4485e0['commandParams'][0x0]['forceValue'];return _0xb2306f(c(_0x2d5def,_0x395a3b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x550ef0{['afterInit'](){const _0x280d43=this['editor'],_0x7e38b1=_0x280d43['locale'],_0x170d32=_0x280d43['plugins']['get']('TrackChangesEditing');function _0x2381ed(_0x5bfe4f){return{'type':'format','content':''+c(_0x7e38b1,'*Set\x20table\x20type:*\x20%0',_0x5bfe4f)};}_0x280d43['plugins']['has']('TableLayout')&&(_0x170d32['enableCommand']('insertTableLayout'),_0x170d32['enableDefaultAttributesIntegration']('tableType'),_0x170d32['registerBlockAttribute']('tableType'),_0x170d32['descriptionFactory']['registerElementLabel'](_0x2b0a1d=>_0x2b0a1d['is']('element','table')&&'layout'===_0x2b0a1d['getAttribute']('tableType'),_0x56558a=>c(_0x7e38b1,'ELEMENT_LAYOUT_TABLE',_0x56558a)),_0x170d32['descriptionFactory']['registerDescriptionCallback'](_0x2a792b=>{const {data:_0x1de7b3}=_0x2a792b;if(_0x1de7b3&&'tableType'==_0x1de7b3['key'])switch(_0x1de7b3['newValue']){case'layout':return _0x2381ed(c(_0x7e38b1,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2381ed(c(_0x7e38b1,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x297255=>[_0x297255,null]));class $t extends _0x550ef0{static get['requires'](){return[Ct];}['afterInit'](){const _0x246b8f=this['editor'];if(!_0x246b8f['plugins']['has']('TableClipboard'))return;const _0x5b879b=_0x246b8f['plugins']['get']('TrackChangesEditing'),_0x1076e6=_0x246b8f['plugins']['get']('TableUtils'),_0x14efad=_0x246b8f['plugins']['get'](Ct),_0x5c786f=_0x246b8f['plugins']['get']('TableClipboard'),_0x4b8e36=_0x246b8f['plugins']['get']('TableSelection'),_0x256e41=_0x246b8f['plugins']['get'](_0x4b61d8);_0x14efad['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x246b8f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x246b8f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f49bf=null,_0x27a5bc=!0x1;_0x256e41['on']('contentInsertion',(_0x18a827,_0x1f7b1e)=>{_0x27a5bc='paste'===_0x1f7b1e['method'];}),_0x246b8f['model']['on']('insertContent',(_0x27f999,_0x139e1f)=>{if(!_0x27a5bc&&null===_0x4b8e36['getSelectedTableCells']())return;const [_0x190338,_0x22677d]=_0x139e1f,_0x44414c=_0x139e1f[_0x139e1f['length']-0x1];_0x44414c&&_0x44414c['forceDefaultExecution']||_0x5b879b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x260e85,_0x2d279d,_0x4295eb,_0x139d95,_0x1349d1){if(_0x2d279d&&!_0x2d279d['is']('documentSelection'))return!0x1;const _0x57093f=_0x1349d1['getTableIfOnlyTableInContent'](_0x260e85,_0x4295eb);if(!_0x57093f||!De(_0x57093f,void 0x0,_0x139d95))return!0x1;const _0x11d79e=_0x139d95['getSelectionAffectedTableCells'](_0x4295eb['document']['selection']);if(!_0x11d79e['length'])return!0x1;const _0x638b31=_0x11d79e[0x0]['findAncestor']('table'),_0x40abad=_0x139d95['getRowIndexes'](_0x11d79e),_0x26efc9=_0x139d95['getColumnIndexes'](_0x11d79e),_0x16aa4a={'startRow':_0x40abad['first'],'endRow':_0x40abad['last'],'startColumn':_0x26efc9['first'],'endColumn':_0x26efc9['last']};return 0x1==_0x11d79e['length']&&(_0x16aa4a['endRow']+=_0x139d95['getRows'](_0x57093f)-0x1,_0x16aa4a['endColumn']+=_0x139d95['getColumns'](_0x57093f)-0x1),De(_0x638b31,_0x16aa4a,_0x139d95);}(_0x190338,_0x22677d,_0x246b8f['model'],_0x1076e6,_0x5c786f)&&(_0x27f999['stop'](),_0x2f49bf={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x246b8f['model']['change'](()=>{_0x246b8f['model']['insertContent'](_0x139e1f[0x0],_0x139e1f[0x1],_0x139e1f[0x2],{'forceDefaultExecution':!0x0});const _0x35c010=_0x29542d(),{rowInsertionRanges:_0x3c239d,columnInsertionRanges:_0x588236,insertionRanges:_0x5d1343,deletionRanges:_0x295a03,cells:_0x4bb7f9}=_0x2f49bf;_0x3c239d['length']&&_0x5b879b['markMultiRangeInsertion'](_0x3c239d,'tablePasteRow',{'tablePasteChainId':_0x35c010}),_0x588236['length']&&_0x5b879b['markMultiRangeInsertion'](_0x588236,'tablePasteColumn',{'tablePasteChainId':_0x35c010}),_0x5d1343['length']&&(_0x5b879b['markMultiRangeInsertion'](_0x5d1343,'tablePaste',{'tablePasteChainId':_0x35c010,'skipNestingCheck':!0x0}),_0x5d1343['forEach'](_0x36da9e=>_0x36da9e['detach']?.())),_0x295a03['length']&&(_0x5b879b['markMultiRangeDeletion'](_0x295a03,'tablePaste',{'tablePasteChainId':_0x35c010,'skipNestingCheck':!0x0}),_0x295a03['forEach'](_0x15c395=>_0x15c395['detach']?.()));const _0x146d2d=_0x5b879b['markMultiRangeBlockFormat'](_0x4bb7f9['map'](({element:_0x35e112})=>_0x35e112),{'formatGroupId':_0x29542d()},[],'tablePasteCell',{'tablePasteChainId':_0x35c010});if(_0x146d2d){const _0x1121b9=_0x146d2d['getMarkers'](),_0x24a70=[];for(const {element:_0x35972e,attributes:_0x4ee77b}of _0x4bb7f9){if(!_0x4ee77b)continue;const _0x4659d1=_0x246b8f['model']['createRangeOn'](_0x35972e),_0x4cd161=_0x1121b9['find'](_0x42b9b6=>_0x42b9b6['getRange']()['isEqual'](_0x4659d1));_0x4cd161&&_0x24a70['push']([_0x4cd161['name'],_0x4ee77b]);}_0x24a70['length']&&_0x146d2d['setAttribute']('markerAttributes',Object['fromEntries'](_0x24a70));}_0x2f49bf=null;}));},{'priority':_0x37adb5['high']+0xa}),_0x256e41['on']('contentInsertion',()=>{_0x27a5bc=!0x1;},{'priority':'lowest'}),_0x246b8f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22623c,_0x383a4d)=>{const [_0x576742,_0x1b4413,,_0x56dabb]=_0x383a4d;if(!_0x2f49bf)return;_0x22623c['stop']();const _0x238efb=_0x576742['cell'],_0x4a6b4f=_0x1b4413,_0x2ae0dc=Ue(_0x238efb),_0x352b71=Ue(_0x4a6b4f);_0x22623c['return']=_0x238efb;let _0x9c9b5e=null,_0xbfddb1=null;if(_0x352b71||_0x2ae0dc){if(_0x2ae0dc&&!_0x352b71){_0x56dabb['remove'](_0x238efb['getChild'](0x0));for(const _0x340bd6 of Array['from'](_0x4a6b4f['getChildren']()))_0x56dabb['insert'](_0x340bd6,_0x238efb,'end');const _0x58c973=_0x2f49bf['rowInsertionIndexes']['includes'](_0x576742['row']),_0x31f9c6=_0x2f49bf['columnInsertionIndexes']['includes'](_0x576742['column']);_0x58c973||_0x31f9c6||(_0x9c9b5e=_0x14a494['fromRange'](_0x56dabb['createRangeIn'](_0x238efb)));}else _0x352b71&&!_0x2ae0dc&&(_0xbfddb1=_0x56dabb['createRangeIn'](_0x238efb));}else{const _0x10f9a4=_0x56dabb['createElement']('tableCellSuggestion'),_0x38f987=_0x56dabb['createElement']('tableCellSuggestion');_0x56dabb['wrap'](_0x56dabb['createRangeIn'](_0x238efb),_0x38f987),_0x56dabb['insert'](_0x10f9a4,_0x238efb,0x0);for(const _0x55e785 of Array['from'](_0x4a6b4f['getChildren']()))_0x56dabb['insert'](_0x55e785,_0x10f9a4,'end');_0x9c9b5e=_0x14a494['fromRange'](_0x56dabb['createRangeOn'](_0x10f9a4)),_0xbfddb1=_0x14a494['fromRange'](_0x56dabb['createRangeOn'](_0x38f987));}const _0x287870=Array['from'](_0x4a6b4f['getAttributes']())['filter'](([_0x3c6970])=>xe['includes'](_0x3c6970));_0x2f49bf['cells']['push']({'element':_0x238efb,'attributes':_0x287870['length']?Object['fromEntries'](_0x287870):null}),_0x9c9b5e&&_0x2f49bf['insertionRanges']['push'](_0x9c9b5e),_0xbfddb1&&_0x2f49bf['deletionRanges']['push'](_0xbfddb1);},{'priority':'high'}),_0x1076e6['on']('insertColumns',(_0x2a8204,_0x3ac9f0)=>{const [_0x22dd0d,_0x1fd69d={}]=_0x3ac9f0;if(!_0x2f49bf)return;const _0x52dd82=_0x1fd69d['at']||0x0,_0x3033cf=_0x1fd69d['columns']||0x1;_0x2f49bf['columnInsertionIndexes']=new Array(_0x3033cf)['fill'](_0x52dd82)['map']((_0x4f41a0,_0x8c8922)=>_0x4f41a0+_0x8c8922);for(const {cell:_0x26c736}of _0x1076e6['createTableWalker'](_0x22dd0d,{'startColumn':_0x52dd82,'endColumn':_0x52dd82+_0x3033cf-0x1}))_0x2f49bf['columnInsertionRanges']['push'](_0x246b8f['model']['createRangeOn'](_0x26c736));},{'priority':'low'}),_0x1076e6['on']('insertRows',(_0x4ee521,_0x2b39ee)=>{const [_0x14f53e,_0x172a84={}]=_0x2b39ee;if(!_0x2f49bf)return;const _0x5e9e20=_0x172a84['at']||0x0,_0x2d9ed9=_0x172a84['rows']||0x1;_0x2f49bf['rowInsertionIndexes']=new Array(_0x2d9ed9)['fill'](_0x5e9e20)['map']((_0x379b9c,_0x2f575e)=>_0x379b9c+_0x2f575e);for(const {cell:_0x41d271}of _0x1076e6['createTableWalker'](_0x14f53e,{'startRow':_0x5e9e20,'endRow':_0x5e9e20+_0x2d9ed9-0x1}))_0x2f49bf['rowInsertionRanges']['push'](_0x246b8f['model']['createRangeOn'](_0x41d271));},{'priority':'low'}),_0x5b879b['descriptionFactory']['registerDescriptionCallback'](_0x58318a=>{if(_0x58318a['subType']&&_0x58318a['subType']['startsWith']('tablePaste'))return _0x58318a['previous']?{}:{'type':'insertion','content':c(_0x246b8f['locale'],'*Replace\x20table\x20cells*')};});const _0x3aa36f=()=>!0x1;for(const _0x4a5ab5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b879b['_suggestionFactory']['registerCustomCallback']('insertion',_0x4a5ab5,'join',_0x3aa36f),_0x5b879b['_suggestionFactory']['registerCustomCallback']('deletion',_0x4a5ab5,'join',_0x3aa36f),_0x5b879b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a5ab5,'join',_0x3aa36f);_0x5b879b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3aa36f),_0x5b879b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d01f4,_0x47e912,_0x4a814b)=>{const _0x208b85=_0x1d01f4['map'](_0x38b272=>_0x38b272['getContainedElement']())['filter'](_0x553328=>_0x553328),_0x2b8279=new Map(_0x208b85['map'](_0x405dfe=>[_0x405dfe,null]));if(_0x2f49bf){for(const {element:_0x40e597,attributes:_0x446a7f}of _0x2f49bf['cells'])_0x446a7f&&_0x2b8279['set'](_0x40e597,_0x446a7f);}else{if(_0x4a814b&&_0x4a814b['markerAttributes'])for(const [_0x1032de,_0x420a94]of Object['entries'](_0x4a814b['markerAttributes'])){const _0x27d1a0=_0x246b8f['model']['markers']['get'](_0x1032de),_0x2138d4=_0x27d1a0?_0x27d1a0['getRange']()['getContainedElement']():null;_0x2138d4&&_0x2b8279['set'](_0x2138d4,_0x420a94);}}_0x246b8f['model']['change'](_0x4ef8a8=>{for(const [_0x3fbe0a,_0x2cb796]of _0x2b8279)_0x4ef8a8['setAttributes']({...Oe,..._0x2cb796},_0x3fbe0a);});});const _0x42aedc=(_0x2e0e31,_0x55ca1a)=>{_0x5b879b['_suggestionFactory']['registerCustomCallback'](_0x2e0e31,'tablePaste',_0x55ca1a,(_0x1f0b77,_0x18edc3,_0x5da5e4)=>{_0x246b8f['model']['change'](_0x592ea4=>{const _0x36b4af=[];for(const _0x39df01 of _0x1f0b77){const _0x159193=_0x39df01['start']['nodeAfter'];_0x159193['is']('element','tableCellSuggestion')&&_0x36b4af['push'](_0x159193);}_0x5b879b['_suggestionFactory']['getSuggestionCallback'](_0x2e0e31,null,_0x55ca1a)(_0x1f0b77,_0x18edc3,_0x5da5e4);for(const _0x53f49f of _0x36b4af)'$graveyard'!=_0x53f49f['root']['rootName']&&_0x592ea4['unwrap'](_0x53f49f);});});};_0x42aedc('insertion','accept'),_0x42aedc('insertion','discard'),_0x42aedc('deletion','accept'),_0x42aedc('deletion','discard'),_0x5b879b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x50809d=>{const _0x2d0cc9=_0x50809d['map'](_0x1df516=>_0x1df516['getContainedElement']()),_0x854694=_0x2d0cc9[0x0]['findAncestor']('table'),{minRow:_0x3676c4,maxRow:_0x6bfd0f}=_0x14efad['_getCoordsForCells'](_0x2d0cc9);_0x1076e6['removeRows'](_0x854694,{'at':_0x3676c4,'rows':_0x6bfd0f-_0x3676c4+0x1});}),_0x5b879b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x43cb58=>{const _0x47ad99=_0x43cb58['map'](_0x18c4a6=>_0x18c4a6['getContainedElement']()),_0x537e92=_0x47ad99[0x0]['findAncestor']('table'),{minColumn:_0x3f45b9,maxColumn:_0x45b5b0}=_0x14efad['_getCoordsForCells'](_0x47ad99);_0x1076e6['removeColumns'](_0x537e92,{'at':_0x3f45b9,'columns':_0x45b5b0-_0x3f45b9+0x1});});const _0x56ee46=(_0xb3bb55,_0x638efc)=>{if(!_0x638efc['subType']||!_0x638efc['subType']['startsWith']('tablePaste'))return;const _0x49927d=_0x638efc['attributes']['tablePasteChainId'],_0x6bd58=_0x5b879b['getSuggestions']()['filter'](_0x50cf1f=>_0x50cf1f['isInContent']&&_0x50cf1f['attributes']&&_0x50cf1f['attributes']['tablePasteChainId']==_0x49927d);_0x6bd58['length']&&_0x638efc['getAllAdjacentSuggestions']()['length']!=_0x6bd58['length']&&_0x6bd58['reduce']((_0xc6408a,_0x4aa2fc)=>(_0xc6408a['next']=_0x4aa2fc,_0x4aa2fc['previous']=_0xc6408a,_0x4aa2fc));};function _0x2d77e9(_0x420e26,_0x53091d=!0x0){const {id:_0x506e6e,authorId:_0x4d4a30}=_0x5b879b['_splitMarkerName'](_0x420e26['markerName']),_0x379ed0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x29438c=_0x5b879b['activeMarkers']['includes'](_0x420e26['markerName']);return _0x29438c&&_0x379ed0['push']('ck-suggestion-marker--active'),{'classes':_0x379ed0,'attributes':{'data-suggestion':_0x506e6e,'data-author-id':_0x4d4a30},'priority':_0x29438c&&_0x53091d?0xbc2:0xbb8};}_0x5b879b['on']('suggestionLoaded',_0x56ee46,{'priority':'high'}),_0x5b879b['on']('suggestionUnloaded',_0x56ee46,{'priority':'high'}),_0x246b8f['model']['document']['registerPostFixer'](()=>{let _0x4bdc6f=!0x1;const _0x3cc676=Array['from'](_0x246b8f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x161cbf,data:_0x55a2e1}of _0x3cc676){const {group:_0x5a3209,type:_0x4c8b16,id:_0xae8d06}=_0x5b879b['_splitMarkerName'](_0x161cbf);if('suggestion'!=_0x5a3209||'deletion'!=_0x4c8b16||_0x55a2e1['oldRange'])continue;if(!_0x5b879b['hasSuggestion'](_0xae8d06))continue;const _0x181e93=_0x5b879b['getSuggestion'](_0xae8d06)['getRanges'](),_0x3b01e0=_0x246b8f['plugins']['get']('Users')['me'];for(const _0x2c985c of _0x5b879b['getSuggestions']()){if(!_0x2c985c['isInContent']||_0x2c985c['author']!=_0x3b01e0)continue;if('formatBlock'!=_0x2c985c['type']||'tablePasteCell'!=_0x2c985c['subType'])continue;if(_0x2c985c['getRanges']()['every'](_0x5e6fde=>_0x181e93['some'](_0x38e470=>_0x38e470['containsRange'](_0x5e6fde,!0x0)))){for(const _0x4dd76b of _0x2c985c['getAllAdjacentSuggestions']())_0x4dd76b['isInContent']&&(_0x4dd76b['discard'](),_0x4bdc6f=!0x0);}}}return _0x4bdc6f;}),_0x246b8f['model']['document']['registerPostFixer'](_0x2f4f02=>{const _0x5a30d9=_0x246b8f['commands']['get']('redo');if(!_0x5a30d9||!_0x5a30d9['_createdBatches']['has'](_0x2f4f02['batch']))return!0x1;let _0x132804=!0x1;const _0x56562f=_0x246b8f['plugins']['get']('Users')['me'],_0x35ed5a=_0x246b8f['model']['document']['differ']['getChanges'](),_0x1c3edf=Array['from'](_0x246b8f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5d7b58,data:_0x5b02f1})=>{const {group:_0x37b3e3,subType:_0x2429e5,authorId:_0xf7e2b4}=_0x5b879b['_splitMarkerName'](_0x5d7b58);return'suggestion'==_0x37b3e3&&'tablePaste'==_0x2429e5&&_0xf7e2b4==_0x56562f['id']&&!_0x5b02f1['oldRange'];});for(const _0x57b911 of _0x35ed5a){if('insert'!=_0x57b911['type']||'tableCellSuggestion'!=_0x57b911['name']||0x1!=_0x57b911['length'])continue;const _0xffede4=_0x2f4f02['createRange'](_0x57b911['position'],_0x57b911['position']['getShiftedBy'](0x1));if(!_0x1c3edf['find'](({data:_0xc1bc11})=>_0xc1bc11['newRange']['isEqual'](_0xffede4))){for(const {name:_0x524bbf,data:_0x2e97af}of _0x1c3edf)if(_0xffede4['containsRange'](_0x2e97af['newRange'])){_0x2f4f02['updateMarker'](_0x524bbf,{'range':_0xffede4}),_0x132804=!0x0;break;}}}return _0x132804;}),_0x246b8f['model']['document']['registerPostFixer'](_0x8a2bd5=>{let _0x51b509=!0x1;const _0x108453=_0x246b8f['plugins']['get']('Users')['me'],_0x9c2924=_0x5b879b['getSuggestions']()['filter'](_0x170eea=>_0x170eea['isInContent']&&_0x170eea['author']==_0x108453),_0x18aa72=new Set(),_0x174dcd=new Set();for(const _0x2e4c18 of _0x9c2924)if('tablePaste'==_0x2e4c18['subType'])for(const _0xb1841c of _0x2e4c18['getMarkers']()){const _0x625ac8=_0xb1841c['getRange']()['getContainedElement']();if(_0x625ac8){if(_0x625ac8['is']('element','tableCellSuggestion')&&Ue(_0x625ac8)){_0x2e4c18['removeMarker'](_0xb1841c['name']),_0x18aa72['add'](_0x625ac8),_0x51b509=!0x0;const _0x3129e8=_0x625ac8['nextSibling'],_0x388779=_0x625ac8['previousSibling'],_0x15bc98=_0x3129e8&&_0x3129e8['is']('element','tableCellSuggestion'),_0x249d88=_0x388779&&_0x388779['is']('element','tableCellSuggestion');_0x15bc98&&!_0x18aa72['has'](_0x3129e8)&&_0x174dcd['add'](_0x3129e8),_0x249d88&&!_0x18aa72['has'](_0x388779)&&_0x174dcd['add'](_0x388779);}else _0x625ac8['is']('element','paragraph')&&_0x625ac8['isEmpty']&&(_0x2e4c18['removeMarker'](_0xb1841c['name']),_0x51b509=!0x0);}}else{if('tablePasteCell'==_0x2e4c18['subType']){if(!_0x2e4c18['attributes']||!_0x2e4c18['attributes']['tablePasteChainId'])continue;const _0x2f7979=_0x2e4c18['attributes']['markerAttributes'];if(_0x2f7979&&Object['keys'](_0x2f7979)['length'])continue;const _0x5df44d=_0x2e4c18['attributes']['tablePasteChainId'];let _0x4205f8=!0x0,_0x5efbde=!0x0;for(const _0x28384a of _0x9c2924)if(_0x28384a['subType']&&_0x28384a['subType']['startsWith']('tablePaste')){if(!_0x28384a['attributes']['tablePasteChainId']){_0x5efbde=!0x1;break;}if(_0x28384a['id']!=_0x2e4c18['id']&&_0x28384a['attributes']['tablePasteChainId']==_0x5df44d){_0x4205f8=!0x1;break;}}_0x5efbde&&_0x4205f8&&(_0x2e4c18['removeMarkers'](),_0x51b509=!0x0);}}for(const _0x3bbd64 of _0x18aa72)_0x8a2bd5['remove'](_0x3bbd64);for(const _0xdec3f of _0x174dcd)_0x8a2bd5['unwrap'](_0xdec3f);return _0x51b509;}),_0x246b8f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x29bc18=>_0x2d77e9(_0x29bc18),'converterPriority':'high'}),_0x246b8f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1716c6,_0xfc6da2)=>_0xfc6da2['options']['showSuggestionHighlights']?_0x2d77e9(_0x1716c6,!0x1):null,'converterPriority':'high'});const _0x27dcb7=_0x246b8f['editing']['view'];this['listenTo'](_0x27dcb7['document'],'clipboardOutput',(_0x2f73ef,_0x3b7d22)=>{const _0x581e51=[];for(const _0x184494 of _0x27dcb7['createRangeIn'](_0x3b7d22['content'])['getItems']())_0x184494['is']('element','suggestion-td')&&_0x581e51['push'](_0x184494);_0x27dcb7['change'](_0x4a27c0=>{for(const _0x4e248a of _0x581e51)_0x4a27c0['move'](_0x4a27c0['createRangeIn'](_0x4e248a),_0x4a27c0['createPositionBefore'](_0x4e248a)),_0x4a27c0['remove'](_0x4e248a);});});}}function Ue(_0x1e06db){if(_0x1e06db['isEmpty'])return!0x0;const _0x4f5b5c=_0x1e06db['getChild'](0x0);return _0x4f5b5c['is']('element','paragraph')&&_0x4f5b5c['isEmpty'];}function De(_0x42f79c,_0x1b3ef1={},_0x1d74ad){for(const {isAnchor:_0x172cdf,cellHeight:_0x2e37bf,cellWidth:_0x356072}of _0x1d74ad['createTableWalker'](_0x42f79c,{'includeAllSlots':!0x0,..._0x1b3ef1}))if(!_0x172cdf||0x1!=_0x2e37bf||0x1!=_0x356072)return!0x1;return!0x0;}class Bt extends _0x550ef0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xab19ee=this['editor']['plugins']['get']('TrackChangesEditing');_0xab19ee['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xab19ee['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xab19ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xab19ee['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xab19ee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xab19ee['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x158ccd,_0x554d7d){const _0x5e44a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30688d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3919b7=_0x554d7d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x49124e=_0x30688d['getColumnGroupElement'](_0x3919b7);let _0x30dbd2=_0x49124e?_0x30688d['getTableColumnsWidths'](_0x49124e):null,_0x5e27f9=_0x3919b7['getAttribute']('tableWidth')||null;const _0x1ee77c=_0x554d7d['tableWidth']||_0x5e27f9,_0x1654ad=_0x554d7d['columnWidths']||_0x30dbd2,_0x3e9fa2=this['editor']['plugins']['get']('Users')['me'];for(const _0x251f18 of _0x5e44a8['getSuggestions']()){const _0x38893c=_0x251f18['getContainedElement']();if('resizeTable'===_0x251f18['subType']&&_0x38893c===_0x3919b7){_0x251f18['author']!==_0x3e9fa2&&_0x251f18['discard']();const _0x2ed01d=_0x251f18['data']['commandParams'];_0x5e27f9=_0x2ed01d[0x0]['tableWidth'],_0x30dbd2=_0x2ed01d[0x0]['columnWidths'];break;}}_0x158ccd({'table':_0x3919b7,'tableWidth':_0x1ee77c,'columnWidths':_0x1654ad}),_0x5e44a8['markBlockFormat'](_0x3919b7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5e27f9,'columnWidths':_0x30dbd2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5df020){if('formatBlock'!=_0x5df020['type']&&'formatInline'!=_0x5df020['type'])return;const {data:_0x5d4c2a}=_0x5df020;if(_0x5d4c2a&&'resizeTable'===_0x5d4c2a['formatGroupId']){const _0x36ef94='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x36ef94)};}}}class Ot extends _0x550ef0{['afterInit'](){const _0x34ea7a=this['editor'];_0x34ea7a['plugins']['has']('Template')&&_0x34ea7a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x550ef0{['afterInit'](){const _0x5aef2f=this['editor'];if(!_0x5aef2f['commands']['get']('insertTableOfContents'))return;_0x5aef2f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x147e51=_0x5aef2f['plugins']['get']('TrackChangesEditing'),_0x1a3348=_0x5aef2f['locale'];_0x147e51['descriptionFactory']['registerElementLabel']('tableOfContents',_0x82ef9=>c(_0x1a3348,'ELEMENT_TABLE_OF_CONTENTS',_0x82ef9));}}class xt extends _0x550ef0{['afterInit'](){const _0x411ae3=this['editor'];if(!_0x411ae3['plugins']['has']('Title'))return;const _0x19078b=_0x411ae3['plugins']['get']('TrackChangesEditing');_0x19078b['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x411ae3['locale'],'ELEMENT_TITLE')),_0x411ae3['model']['document']['registerPostFixer'](_0x48bccc=>{let _0x5b4218=!0x1;const _0x9d5871=Array['from'](_0x411ae3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x380a4a,data:_0x1c34bd}of _0x9d5871){const {group:_0x4281d0}=_0x19078b['_splitMarkerName'](_0x380a4a);if('suggestion'!==_0x4281d0||!_0x1c34bd['newRange'])continue;const _0x5136cd=_0x1c34bd['newRange'],_0x281150=_0x5136cd['end']['nodeBefore'];if(!_0x281150||!_0x281150['is']('element','title-content'))continue;if(!_0x5136cd['start']['isTouching'](_0x5136cd['end']))continue;const _0x5488e7=_0x411ae3['model']['schema']['getNearestSelectionRange'](_0x5136cd['end'],'forward');if(_0x5488e7&&_0x5488e7['isCollapsed']){const _0x4ccff2=_0x48bccc['createRange'](_0x5136cd['start'],_0x5488e7['start']);_0x4ccff2['isEqual'](_0x5136cd)||(_0x48bccc['updateMarker'](_0x380a4a,{'range':_0x4ccff2}),_0x5b4218=!0x0);}_0x5b4218||(_0x48bccc['removeMarker'](_0x380a4a),_0x5b4218=!0x0);}return _0x5b4218;});}}class Tt extends _0x550ef0{['afterInit'](){const _0x291cac=this['editor'],_0x70c47d=_0x291cac['plugins']['get']('TrackChangesEditing');_0x291cac['plugins']['has']('Uploadcare')&&(_0x70c47d['enableCommand']('uploadcare'),_0x291cac['plugins']['has']('UploadcareImageEdit')&&(_0x70c47d['enableCommand']('uploadcareImageEdit'),_0x70c47d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x70c47d['registerBlockAttribute']('uploadcareImageId'),_0x70c47d['descriptionFactory']['registerDescriptionCallback'](_0x4b2f39=>{if('attribute'!=_0x4b2f39['type'])return;const {data:_0x5a2194}=_0x4b2f39;return _0x5a2194&&'uploadcareImageId'==_0x5a2194['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x550ef0{['afterInit'](){const _0x23043e=this['editor'],_0x215d3=_0x23043e['plugins']['get']('TrackChangesEditing');_0x23043e['plugins']['has']('UndoEditing')&&(_0x215d3['enableCommand']('undo'),_0x215d3['enableCommand']('redo'));}}class Ut extends _0x550ef0{static get['requires'](){return[Ct];}['afterInit'](){const _0x719251=this['editor'];if(!_0x719251['plugins']['has']('TableCaptionEditing'))return;_0x719251['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x550ef0{['tableProperties'];['tableCellProperties'];constructor(_0x4cf801){super(_0x4cf801),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 _0x6cf552=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29914f of this['tableProperties'])_0x6cf552['enableCommand'](_0x29914f,(_0x16d337,_0x62589d)=>{const _0xc9006d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29914f,[_0xc9006d],this['tableProperties'],'tableProperties',_0x16d337,_0x62589d);});_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x6cf552['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4c7f59,_0x23f794)=>this['handleDiscardAction'](this['tableProperties'],_0x4c7f59,_0x23f794)),_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5c3d6e of this['tableCellProperties'])_0x6cf552['enableCommand'](_0x5c3d6e,(_0x3ebdf0,_0x4effdf)=>{const _0x101810=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5c3d6e,_0x101810,this['tableCellProperties'],'tableCellProperties',_0x3ebdf0,_0x4effdf);});_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x6cf552['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3ecf2b,_0x5a69fc)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3ecf2b,_0x5a69fc)),_0x6cf552['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x6cf552['descriptionFactory']['registerDescriptionCallback'](_0x4003ba=>this['handleSuggestionDescription'](_0x4003ba));}['_handlePropertyChange'](_0x252ca1,_0x507554,_0x20ee5e,_0x41bff2,_0x2b894b,_0x24d6b4){const _0x42f345=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x24d6b4['batch'],()=>{for(const _0x30d873 of _0x507554){if(this['_getSuggestion'](_0x30d873,_0x41bff2))_0x2b894b(_0x24d6b4);else{const _0x3b12ce={};for(const _0x3804bc of _0x20ee5e){const _0x537480=_0x30d873['getAttribute'](_0x3804bc);void 0x0!==_0x537480&&(_0x3b12ce[_0x3804bc]=_0x537480);}_0x2b894b(_0x24d6b4),_0x42f345['markBlockFormat'](_0x30d873,{'commandParams':[_0x3b12ce]},[],_0x41bff2);}}});}['handleDiscardAction'](_0x4d81de,_0x11105d,_0x304a7c){const _0x404109=_0x11105d[0x0]['start']['nodeAfter'],_0x2456ea=_0x304a7c['commandParams'][0x0];this['editor']['model']['change'](_0x17c4a1=>{for(const _0x33ad8a of _0x4d81de)void 0x0!==_0x2456ea[_0x33ad8a]?_0x17c4a1['setAttribute'](_0x33ad8a,_0x2456ea[_0x33ad8a],_0x404109):_0x17c4a1['removeAttribute'](_0x33ad8a,_0x404109);});}['handleSuggestionDescription'](_0xef581b){if(_0xef581b['data'])switch(_0xef581b['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'](_0x2cbabc,_0x26d60d){const _0x4d1477=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x186416 of _0x4d1477['getSuggestions']({'skipNotAttached':!0x0})){const _0x57407d=_0x186416['getContainedElement']();if(_0x186416['subType']===_0x26d60d&&_0x57407d===_0x2cbabc)return _0x186416;}return null;}}const u='$elementName';class p extends _0x550ef0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x43132b,_0x42c0fc,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21b8cb){super(_0x21b8cb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x153e18,_0x383ef3,_0x3045d6,_0x29cad5)=>{this['_model']['change'](()=>{for(const _0xc51fa3 of[..._0x29cad5,..._0x3045d6])this['_model']['markers']['has'](_0xc51fa3)&&_0x21b8cb['editing']['reconvertMarker'](_0xc51fa3);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x21b8cb['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(),_0x21b8cb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21b8cb['config']['get']('trackChanges.trackFormatChanges'),_0x21b8cb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21b8cb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x21b8cb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d0196=this['editor'],_0x36f84e=(_0x3114e8,_0x341d40)=>{if('attribute'!=_0x3114e8)return'ck-suggestion-marker-'+_0x3114e8;const _0x2cc4a7=_0x341d40['split']('|')[0x0];return this['_isBlockAttribute'](_0x2cc4a7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d0196['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x512975=>{const {id:_0x24fc47,authorId:_0x32ac27,type:_0x113acb,subType:_0x37ec9d}=this['_splitMarkerName'](_0x512975['markerName']),_0x111cae=['ck-suggestion-marker',_0x36f84e(_0x113acb,_0x37ec9d)];let _0x3c559c=0xbb8;return this['activeMarkers']['includes'](_0x512975['markerName'])&&(_0x111cae['push']('ck-suggestion-marker--active'),_0x3c559c=0xbc2),'deletion'==_0x113acb&&(_0x3c559c+=0x5),{'classes':_0x111cae,'attributes':{'data-suggestion':_0x24fc47,'data-author-id':_0x32ac27},'priority':_0x3c559c};}}),_0x3d0196['conversion']['for']('dataDowncast')['add'](_0x5b0d58=>{_0x5b0d58['on']('addMarker:suggestion',(_0x2c58bb,_0x47a77c,_0x4d883c)=>{if(!_0x4d883c['options']['showSuggestionHighlights'])return;const _0x25863d=_0x47a77c['item'];if(!_0x25863d)return;const _0xb8276f=_0x4d883c['mapper']['toViewElement'](_0x25863d);_0x3d0196['model']['schema']['isObject'](_0x25863d)&&_0xb8276f&&!_0xb8276f['getCustomProperty']('widget')&&_0xb8276f['is']('containerElement')&&_0x146b69(_0xb8276f,_0x4d883c['writer']);},{'priority':'high'});}),_0x3d0196['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d385f,_0x3bacea)=>{if(!_0x3bacea['options']['showSuggestionHighlights'])return null;const {type:_0x475bc0,subType:_0x5ea35f}=this['_splitMarkerName'](_0x2d385f['markerName']);return{'classes':['ck-suggestion-marker',_0x36f84e(_0x475bc0,_0x5ea35f)],'priority':0xbb8};}});const _0x267b19=({showActiveMarkers:_0x108c27=!0x0,isAttributeSuggestion:_0x16ecfd=!0x1}={})=>(_0x41e2ed,_0x5bb166,_0x3d6496)=>{if(!_0x5bb166['item'])return;const {id:_0x251b93,authorId:_0x1770bb}=this['_splitMarkerName'](_0x5bb166['markerName']);if(_0x16ecfd){const _0x1b9b02=this['_suggestions']['get'](_0x251b93),_0xa242e=this['_getAttributeKey'](_0x1b9b02);if(!this['_isBlockAttribute'](_0xa242e))return;}if(_0x5bb166['item']['is']('selection'))return void _0x3d6496['consumable']['consume'](_0x5bb166['item'],_0x41e2ed['name']);const _0x15dfd2=_0x3d6496['mapper']['toViewElement'](_0x5bb166['item']);if(_0x5bb166['item']['is']('element')&&_0x3d0196['model']['schema']['isBlock'](_0x5bb166['item'])&&!_0x15dfd2['getCustomProperty']('addHighlight')){_0x3d6496['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x15dfd2),_0x3d6496['writer']['setAttribute']('data-suggestion',_0x251b93,_0x15dfd2),_0x3d6496['writer']['setAttribute']('data-author-id',_0x1770bb,_0x15dfd2),_0x3d6496['mapper']['bindElementToMarker'](_0x15dfd2,_0x5bb166['markerName']),_0x108c27&&(this['activeMarkers']['includes'](_0x5bb166['markerName'])?_0x3d6496['writer']['addClass']('ck-suggestion-marker--active',_0x15dfd2):_0x3d6496['writer']['removeClass']('ck-suggestion-marker--active',_0x15dfd2));for(const _0x357d30 of _0x3d0196['model']['createRangeIn'](_0x5bb166['item'])['getItems']())_0x3d6496['consumable']['consume'](_0x357d30,_0x41e2ed['name']);_0x3d6496['consumable']['consume'](_0x5bb166['item'],_0x41e2ed['name']);}};_0x3d0196['conversion']['for']('dataDowncast')['add'](_0x80650c=>{_0x80650c['on']('addMarker:suggestion:formatBlock',(_0x294cdc,_0x2676dd,_0x1e4b95)=>{_0x1e4b95['options']['showSuggestionHighlights']&&_0x267b19({'showActiveMarkers':!0x1})(_0x294cdc,_0x2676dd,_0x1e4b95);},{'priority':'highest'});}),_0x3d0196['conversion']['for']('dataDowncast')['add'](_0x4ff5e6=>{_0x4ff5e6['on']('addMarker:suggestion:attribute',(_0x39b25f,_0x697143,_0x2c116d)=>{_0x2c116d['options']['showSuggestionHighlights']&&_0x267b19({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x39b25f,_0x697143,_0x2c116d);},{'priority':'highest'});}),_0x3d0196['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3c7c9f,_0x2ed035)=>_0x2ed035['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3c7c9f['substr'](0xb)}}),_0x3d0196['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x24962f,{writer:_0x832ad})=>{let _0x2b652b='suggestion:'+_0x24962f['getAttribute']('suggestion-type')+':'+_0x24962f['getAttribute']('id');return _0x24962f['getAttribute']('marker-count')&&(_0x2b652b+=':'+_0x24962f['getAttribute']('marker-count')),_0x832ad['createElement']('$marker',{'data-name':_0x2b652b});}}),_0x3d0196['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d0196['conversion']['for']('editingDowncast')['add'](_0x5317ed=>{_0x5317ed['on']('addMarker:suggestion:formatBlock',_0x267b19(),{'priority':'high'});}),_0x3d0196['conversion']['for']('editingDowncast')['add'](_0x2bdeb9=>{_0x2bdeb9['on']('addMarker:suggestion:attribute',_0x267b19({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d0196['conversion']['for']('editingDowncast')['add'](_0x36023e=>{_0x36023e['on']('removeMarker:suggestion:formatBlock',(_0x4d1515,_0x12292c,_0x25192e)=>{const _0x3846a4=_0x25192e['mapper']['markerNameToElements'](_0x12292c['markerName']);if(_0x3846a4){for(const _0x99668d of _0x3846a4)_0x99668d['getCustomProperty']('addHighlight')||(_0x25192e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x99668d),_0x25192e['writer']['removeAttribute']('data-suggestion',_0x99668d),_0x25192e['writer']['removeAttribute']('data-author-id',_0x99668d),_0x25192e['mapper']['unbindElementFromMarkerName'](_0x99668d,_0x12292c['markerName']));}},{'priority':'high'});}),_0x3d0196['conversion']['for']('editingDowncast')['add'](_0x942db2=>{_0x942db2['on']('removeMarker:suggestion:attribute',(_0x16ee4a,_0x351461,_0xcf6370)=>{const _0x3ba04d=_0xcf6370['mapper']['markerNameToElements'](_0x351461['markerName']);if(!_0x3ba04d)return;const {id:_0x1a875d}=this['_splitMarkerName'](_0x351461['markerName']),_0x3cee8d=this['_suggestions']['get'](_0x1a875d),_0x41ca32=this['_getAttributeKey'](_0x3cee8d);if(this['_isBlockAttribute'](_0x41ca32)){for(const _0x412ffc of _0x3ba04d)_0x412ffc['getCustomProperty']('addHighlight')||(_0xcf6370['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x412ffc),_0xcf6370['writer']['removeAttribute']('data-suggestion',_0x412ffc),_0xcf6370['writer']['removeAttribute']('data-author-id',_0x412ffc),_0xcf6370['mapper']['unbindElementFromMarkerName'](_0x412ffc,_0x351461['markerName']));}},{'priority':'high'});}),_0x3d0196['model']['document']['registerPostFixer'](_0x14c2d4=>{let _0xa60d37=!0x1;const _0x3747c8=Array['from'](_0x3d0196['model']['document']['differ']['getChangedMarkers']()),_0x1e2840=new Set();for(const {name:_0x2c07cf,data:_0x2c9f70}of _0x3747c8){const {group:_0x3139b8,type:_0x42b58f,subType:_0x31b7a6,id:_0x2a65a7}=this['_splitMarkerName'](_0x2c07cf);if('suggestion'!==_0x3139b8)continue;const _0x5358d9=this['_suggestions']['get'](_0x2a65a7);if(null!=_0x2c9f70['newRange']){'formatInline'==_0x42b58f&&(_0xa60d37=_0xa60d37||Jt(_0x2c9f70['newRange'],_0x2c07cf,_0x14c2d4,_0x3d0196['model']['schema']));const _0x53fc26='attribute'==_0x42b58f&&this['_isBlockAttribute'](_0x31b7a6['split']('|')[0x0]);if(_0x2c9f70['newRange']['isCollapsed']||'$graveyard'==_0x2c9f70['newRange']['root']['rootName']||'formatBlock'==_0x42b58f&&!Ht(_0x2c9f70['newRange'])||_0x53fc26&&!Ht(_0x2c9f70['newRange'])||'deletion'==_0x42b58f&&!(!Lt(_0x526acd=_0x2c9f70['newRange'])&&!function(_0x4ed645){return _0x4ed645['start']['parent']==_0x4ed645['end']['nodeBefore']&&_0x4ed645['start']['isAtEnd'];}(_0x526acd)))_0x14c2d4['removeMarker'](_0x2c07cf),_0xa60d37=!0x0;else{if(!_0x5358d9||!_0x5358d9['isInContent'])continue;if(_0x2c9f70['newRange']&&_0x2c9f70['oldRange']&&_0x2c9f70['newRange']['isEqual'](_0x2c9f70['oldRange']))continue;_0x1e2840['add'](_0x5358d9);}}}var _0x526acd;return _0x1e2840['size']>0x0&&(_0xa60d37=!!this['_joinWithAdjacentSuggestions'](_0x1e2840)||_0xa60d37),_0xa60d37;}),_0x3d0196['model']['document']['registerPostFixer'](_0x9ef75e=>{let _0x5c8d9e=!0x1;for(const _0x2985e2 of _0x3d0196['model']['document']['differ']['getChanges']())if('insert'==_0x2985e2['type'])for(const _0x5f15f2 of this['_suggestions']['values']()){if(_0x5f15f2['isMultiRange']||!_0x5f15f2['isInContent'])continue;const _0x109fc8='formatBlock'==_0x5f15f2['type'],_0x3f84f2=this['_getAttributeKey'](_0x5f15f2),_0x104ed2=_0x3f84f2&&this['_isBlockAttribute'](_0x3f84f2);if(!_0x109fc8&&!_0x104ed2)continue;const _0x420651=_0x5f15f2['getFirstRange']();if(_0x420651['start']['parent']!=_0x420651['end']['parent']&&!_0x420651['end']['isAtEnd']){const _0x28f5de=_0x3d0196['model']['createPositionAt'](_0x420651['start']['nodeAfter'],'end'),_0x7f5c1e=_0x3d0196['model']['createRange'](_0x420651['start'],_0x28f5de);_0x9ef75e['updateMarker'](_0x5f15f2['getFirstMarker'](),{'range':_0x7f5c1e}),_0x5c8d9e=!0x0;}}return _0x5c8d9e;}),_0x3d0196['model']['document']['registerPostFixer'](_0x227c16=>this['_processAttributeChanges'](_0x227c16)),_0x3d0196['model']['document']['registerPostFixer'](_0x285f33=>!_0x285f33['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x285f33)),_0x3d0196['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d0196['model']['document']['on']('change:data',(_0x14adad,_0x4e5e3a)=>{if(!_0x4e5e3a['isLocal']||_0x4e5e3a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3f9ae1=_0x3d0196['model']['document']['differ']['getChanges']();if(0x0==_0x3f9ae1['length'])return;const _0x46eb93=[],_0x3dfc55=_0x3f9ae1['filter'](_0x1f591c=>'attribute'==_0x1f591c['type']),_0x2fa591=_0x3f9ae1['filter'](_0x11249c=>'insert'==_0x11249c['type']&&'$text'!=_0x11249c['name']);for(const _0x353779 of _0x3dfc55)this['_isRegisteredAttribute'](_0x353779['attributeKey'])&&_0x46eb93['push']({'key':_0x353779['attributeKey'],'newValue':_0x353779['attributeNewValue'],'oldValue':_0x353779['attributeOldValue'],'range':qt(_0x353779['range'],_0x3d0196['model'])});for(const _0x35213c of _0x2fa591){if('rename'!=_0x35213c['action']&&'refresh'!=_0x35213c['action'])continue;const _0x549087=zt(_0x35213c['position']['nodeAfter'],_0x3d0196['model']),_0x5ad21b=_0x35213c['before'];'rename'==_0x35213c['action']&&_0x46eb93['push']({'key':u,'newValue':_0x35213c['name'],'oldValue':_0x5ad21b['name'],'range':_0x549087});for(const [_0x24241c,_0xbdc49]of _0x5ad21b['attributes']){if(!this['_isRegisteredAttribute'](_0x24241c))continue;const _0x4246d5=_0x35213c['attributes']['get'](_0x24241c);_0xbdc49!==_0x4246d5&&_0x46eb93['push']({'key':_0x24241c,'newValue':_0x4246d5,'oldValue':_0xbdc49,'range':_0x549087});}for(const [_0x79a7c9,_0x17ab72]of _0x35213c['attributes'])this['_isRegisteredAttribute'](_0x79a7c9)&&(_0x5ad21b['attributes']['has'](_0x79a7c9)||_0x46eb93['push']({'key':_0x79a7c9,'newValue':_0x17ab72,'oldValue':null,'range':_0x549087}));}0x0!=_0x46eb93['length']&&_0x3d0196['model']['enqueueChange'](_0x4e5e3a,_0x30d2a1=>{const _0x8cc108=_0x29542d();for(const {range:_0x7be21d,key:_0x32107e,oldValue:_0x45ad21,newValue:_0x448a60}of _0x46eb93)this['markAttributeChange'](_0x7be21d,_0x32107e,_0x45ad21,_0x448a60,{'groupId':_0x8cc108});this['_reduceExistingSuggestions'](_0x30d2a1,_0x46eb93);});},{'priority':'lowest'}),_0x3d0196['model']['markers']['on']('update:suggestion',(_0x38e105,_0x95d9ef,_0x2c17da)=>{if(null==_0x2c17da){const {id:_0x336491}=this['_splitMarkerName'](_0x95d9ef['name']),_0x4af11e=this['_suggestions']['get'](_0x336491);_0x4af11e&&_0x4af11e['addMarkerName'](_0x95d9ef['name']);}}),_0x3d0196['model']['document']['on']('change:data',()=>{const _0x5ec036=Array['from'](_0x3d0196['model']['document']['differ']['getChangedMarkers']())['filter'](_0x305044=>'suggestion'===this['_splitMarkerName'](_0x305044['name'])['group']);if(0x0===_0x5ec036['length'])return;_0x5ec036['sort']((_0x3f94fa,_0x339f4d)=>{const _0x1f45f8=_0x3f94fa['data']['oldRange'],_0x22d7c5=_0x339f4d['data']['oldRange'];return null===_0x1f45f8&&null===_0x22d7c5?0x0:null===_0x1f45f8&&null!==_0x22d7c5?-0x1:null!==_0x1f45f8&&null===_0x22d7c5?0x1:_0x1f45f8['start']['isBefore'](_0x22d7c5['start'])?-0x1:0x1;});const _0x485464=new Set(),_0x2e7dcc=new Set();for(const {name:_0x18f0e6,data:_0x28136d}of _0x5ec036){const {id:_0x190328}=this['_splitMarkerName'](_0x18f0e6);if(null===_0x28136d['oldRange']){const _0xf081f9=this['_handleNewSuggestionMarker'](_0x18f0e6);_0x2e7dcc['add'](_0xf081f9);}else{const _0x1aed05=this['_suggestions']['get'](_0x190328);null!==_0x28136d['newRange']||_0x1aed05['isInContent']?(_0x485464['add'](_0x1aed05['head']),_0x2e7dcc['add'](_0x1aed05)):this['_removeSuggestion'](_0x1aed05);}}_0x2e7dcc['size']>0x0&&this['_refreshSuggestionsChain'](_0x2e7dcc);for(const _0x1aa245 of _0x485464)this['fire']('suggestionChanged',_0x1aa245);}),_0x3d0196['model']['on']('applyOperation',(_0x3f302a,_0xe9f4b)=>{const _0x22e595=_0xe9f4b[0x0];if(!this['_suggestions']['size'])return;if(!_0x22e595['isDocumentOperation'])return;if(_0x22e595['batch']['isUndo']||!_0x22e595['batch']['isLocal'])return;let _0x5b1f16,_0x2bed4e;switch(_0x22e595['type']){case'insert':_0x5b1f16=_0x3d0196['model']['createPositionAt'](_0x22e595['position']),_0x2bed4e=_0x5b1f16['getShiftedBy'](_0x22e595['howMany']);break;case'split':_0x5b1f16=_0x3d0196['model']['createPositionAt'](_0x22e595['splitPosition']),_0x2bed4e=_0x3d0196['model']['createPositionAt'](_0x22e595['moveTargetPosition']);break;case'move':_0x5b1f16=_0x3d0196['model']['createPositionAt'](_0x22e595['targetPosition']),_0x2bed4e=_0x5b1f16['getShiftedBy'](_0x22e595['howMany']);break;default:return;}const _0x2898cd=_0x3d0196['model']['createRange'](_0x5b1f16,_0x2bed4e);_0x3d0196['model']['change'](()=>{for(const {suggestion:_0x44b98b,meta:_0x89f66b}of this['_findSuggestions'](_0x2898cd)){if(_0x44b98b['isMultiRange'])continue;if('formatInline'==_0x44b98b['type'])continue;const _0x3c25cc=this['_getAttributeKey'](_0x44b98b);if(_0x3c25cc&&this['_isBlockAttribute'](_0x3c25cc)&&'split'!=_0x22e595['type'])continue;const _0x53327c=_0x44b98b['data']&&_0x44b98b['data']['multipleBlocks'];('formatBlock'!=_0x44b98b['type']||'split'==_0x22e595['type']&&!_0x53327c)&&(_0x89f66b['containsRangeInObject']||'insertion'==_0x44b98b['type']&&_0x89f66b['isOwn']||_0x44b98b['getFirstRange']()['containsRange'](_0x2898cd)&&this['_breakSuggestionMarker'](_0x44b98b,_0x5b1f16,_0x2bed4e));}});},{'priority':'lowest'}),_0x3d0196['model']['on']('deleteContent',(_0x25e470,_0x274b60)=>{const _0x294c18=_0x274b60[0x0],_0x213b8f=_0x274b60[0x1];if(_0x213b8f&&_0x213b8f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x294c18['isCollapsed'])return;const _0x13406a=_0x3d0196['model']['schema'],{start:_0x1243ac,end:_0x2720e5}=_0x294c18['getFirstRange'](),_0x5363f5=_0x1243ac['nodeAfter']&&_0x13406a['isLimit'](_0x1243ac['nodeAfter'])?null:_0x13406a['getNearestSelectionRange'](_0x1243ac,'forward'),_0x1ec856=_0x2720e5['nodeBefore']&&_0x13406a['isLimit'](_0x2720e5['nodeBefore'])?null:_0x13406a['getNearestSelectionRange'](_0x2720e5,'backward'),_0x5d61db=_0x3d0196['model']['createRange'](_0x5363f5?_0x5363f5['start']:_0x1243ac,_0x1ec856?_0x1ec856['end']:_0x2720e5);_0x3d0196['model']['change'](_0x1006d1=>{this['markDeletion'](_0x5d61db);const _0x783083=_0x3d0196['model']['schema']['getNearestSelectionRange'](_0x5d61db['start']);_0x294c18['is']('documentSelection')?_0x1006d1['setSelection'](_0x783083):_0x294c18['setTo'](_0x783083);}),_0x25e470['stop']();},{'priority':_0x37adb5['normal']+0xa}),_0x3d0196['model']['on']('insertContent',(_0x514edc,_0x830100)=>{const _0x3eec7a=_0x830100[_0x830100['length']-0x1];_0x3eec7a&&_0x3eec7a['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d0196['model']['change'](()=>{let _0x3054ee=_0x3d0196['model']['insertContent'](_0x830100[0x0],_0x830100[0x1],_0x830100[0x2],{'forceDefaultExecution':!0x0});if(!_0x3054ee)return;_0x514edc['return']=_0x3054ee['clone']();const _0x47307d=_0x3054ee['end']['nodeBefore'],_0x24769b=_0x3d0196['model']['schema'];_0x47307d&&_0x24769b['isBlock'](_0x47307d)&&!_0x24769b['isObject'](_0x47307d)&&(_0x3054ee=_0x3d0196['model']['createRange'](_0x3054ee['start'],_0x3d0196['model']['createPositionAt'](_0x47307d,'end'))),this['markInsertion'](_0x3054ee);}),_0x514edc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x54f0ec=new O(_0x3d0196,this['_suggestions']);_0x3d0196['commands']['add']('acceptSuggestion',_0x54f0ec),this['enableCommand']('acceptSuggestion');const _0x164c51=new R(_0x3d0196,this['_suggestions']);_0x3d0196['commands']['add']('discardSuggestion',_0x164c51),this['enableCommand']('discardSuggestion'),_0x3d0196['commands']['add']('acceptAllSuggestions',new x(_0x3d0196,_0x54f0ec,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d0196['commands']['add']('discardAllSuggestions',new x(_0x3d0196,_0x164c51,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d0196['commands']['add']('acceptSelectedSuggestions',new E(_0x3d0196,_0x54f0ec,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d0196['commands']['add']('discardSelectedSuggestions',new E(_0x3d0196,_0x164c51,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4d1cd8=_0x3d0196['plugins']['get']('CommentsRepository');this['listenTo'](_0x4d1cd8,'addComment',(_0xdbe88d,{threadId:_0x2625ea})=>{const _0x23a71d=this['_suggestions']['get'](_0x2625ea);_0x23a71d&&_0x23a71d['commentThread']&&0x1===_0x23a71d['commentThread']['length']&&this['_updateSuggestionData'](_0x2625ea,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4d1cd8,'removeComment',(_0x5b9514,{threadId:_0x493e78})=>{const _0x34c0a2=this['_suggestions']['get'](_0x493e78);_0x34c0a2&&_0x34c0a2['commentThread']&&!_0x34c0a2['commentThread']['length']&&this['_updateSuggestionData'](_0x493e78,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1f28a3){const _0x5d4adb=_0x5db560([0x30,0x62,0x64,0x6d,0x6a,0x32,0x39,0x66,0x4e,0x5a,0x44,0x42,0x52,0x37,0x6e,0x41,0x6b,0x68,0x4f,0x53,0x35,0x58,0x4b,0x6f,0x46,0x72,0x33,0x75,0x56,0x65,0x47,0x55,0x45,0x70,0x79,0x57,0x51,0x59,0x36,0x61,0x54,0x43,0x6c,0x71,0x63,0x4a,0x50,0x49,0x34,0x76,0x48,0x67,0x7a,0x38,0x69,0x31,0x77,0x74,0x78,0x4d,0x73,0x4c]),_0x13ee02=0x5914ced,_0x50f158=0x5962f5d^_0x13ee02,_0x2826b9=window[_0x5db560([0x44,0x61,0x74,0x65])][_0x5db560([0x6e,0x6f,0x77])](),_0x569788=_0x1f28a3[_0x5db560([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3bdc42=new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4571f4=>{_0x569788[_0x5db560([0x6f,0x6e,0x63,0x65])](_0x5db560([0x72,0x65,0x61,0x64,0x79]),_0x4571f4);}),_0x11b153={[_0x5db560([0x6b,0x74,0x79])]:_0x5db560([0x45,0x43]),[_0x5db560([0x75,0x73,0x65])]:_0x5db560([0x73,0x69,0x67]),[_0x5db560([0x63,0x72,0x76])]:_0x5db560([0x50,0x2d,0x32,0x35,0x36]),[_0x5db560([0x78])]:_0x5db560([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]),[_0x5db560([0x79])]:_0x5db560([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]),[_0x5db560([0x61,0x6c,0x67])]:_0x5db560([0x45,0x53,0x32,0x35,0x36])},_0x30cd9c=_0x569788[_0x5db560([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5db560([0x67,0x65,0x74])](_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35e344(){let _0x3afba6,_0x4934dc=null,_0x3a43e7=null;try{if(_0x30cd9c==_0x5db560([0x47,0x50,0x4c]))return _0x5db560([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3afba6=_0x4b444d(),!_0x3afba6)return _0x5db560([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3afba6[_0x5db560([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a43e7=_0x39103f(_0x3afba6[_0x5db560([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3afba6[_0x5db560([0x6a,0x74,0x69])])),await _0xce63a7()?_0xf8d58b()?_0x4b2ace()?_0x5db560([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x129a13()?(_0x3afba6[_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5db560([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4934dc=_0x44f995(_0x5db560([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3afba6[_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5db560([0x74,0x72,0x69,0x61,0x6c])&&(_0x4934dc=_0x44f995(_0x5db560([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x495602()):_0x5db560([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5db560([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5db560([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2ee7a7){return _0x5db560([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b2ace(){const _0x5a5b3b=[_0x5db560([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5db560([0x74,0x72,0x69,0x61,0x6c])][_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3afba6[_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2826b9/0x3e8:0xe10*_0x50f158;return _0x3afba6[_0x5db560([0x65,0x78,0x70])]<_0x5a5b3b;}function _0xf8d58b(){const _0x363dd0=_0x3afba6[_0x5db560([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x363dd0)return!0x1;if(_0x363dd0[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db560([0x2a])))return!0x0;if(_0x363dd0[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db560([0x54,0x43])))return!0x0;if(_0x363dd0[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db560([0x52,0x54,0x43]))){if(_0x2badb9())return!0x0;if(_0x5b4a2c()||_0x1a9c46())return!0x0;}return!0x1;}function _0x129a13(){const _0x43a52d=_0x3afba6[_0x5db560([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43a52d||0x0==_0x43a52d[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a7270}=new URL(window[_0x5db560([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x43a52d[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a7270))return!0x0;const _0x2ff2e0=_0x1a7270[_0x5db560([0x73,0x70,0x6c,0x69,0x74])](_0x5db560([0x2e]));return _0x43a52d[_0x5db560([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12ff7a=>_0x12ff7a[_0x5db560([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5db560([0x2a])))[_0x5db560([0x6d,0x61,0x70])](_0x55bece=>_0x55bece[_0x5db560([0x73,0x70,0x6c,0x69,0x74])](_0x5db560([0x2e])))[_0x5db560([0x73,0x6f,0x6d,0x65])](_0x82d88f=>_0x2ff2e0[_0x5db560([0x65,0x76,0x65,0x72,0x79])]((_0x441334,_0x27c878)=>_0x82d88f[_0x27c878]===_0x441334||_0x82d88f[_0x27c878]===_0x5db560([0x2a])));}function _0x495602(){return _0x4934dc&&_0x3a43e7?new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x157e88,_0x36cc1c)=>{_0x4934dc[_0x5db560([0x74,0x68,0x65,0x6e])](_0x157e88,_0x36cc1c),_0x3a43e7[_0x5db560([0x74,0x68,0x65,0x6e])](_0x434d72=>{_0x434d72!=_0x5db560([0x56,0x61,0x6c,0x69,0x64])&&_0x157e88(_0x434d72);},_0x36cc1c);}):_0x4934dc||_0x3a43e7||_0x5db560([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39103f(_0x10de26,_0x3b83c7){return new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a94cb=>{if(_0x1cb38e())return _0x5a94cb(_0x5db560([0x56,0x61,0x6c,0x69,0x64]));_0x280495(),_0x569788[_0x5db560([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5db560([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x112976=!0x1;const _0xd9c375=_0x29542d();function _0x2dee0b(_0x3415c9){return!!_0x3415c9&&(typeof _0x3415c9===_0x5db560([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3415c9===_0x5db560([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3415c9[_0x5db560([0x74,0x68,0x65,0x6e])]===_0x5db560([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3415c9[_0x5db560([0x63,0x61,0x74,0x63,0x68])]===_0x5db560([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x148757(_0x9691e3){_0x5a7212(_0x9691e3)[_0x5db560([0x74,0x68,0x65,0x6e])](_0x5ea498=>{if(!_0x5ea498||_0x5ea498[_0x5db560([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5db560([0x6f,0x6b]))return _0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1671a8(_0x348c2d(_0xd9c375+_0x3b83c7))!=_0x5ea498[_0x5db560([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5db560([0x56,0x61,0x6c,0x69,0x64]);})[_0x5db560([0x74,0x68,0x65,0x6e])](_0x357b60=>(_0x4515df(),_0x357b60),()=>{const _0x169560=_0x59ff37();return null==_0x169560?(_0x4515df(),_0x5db560([0x56,0x61,0x6c,0x69,0x64])):_0x5db560(_0x2826b9-_0x169560>(0x219dc8ed^_0x13ee02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5db560([0x74,0x68,0x65,0x6e])](_0x5a94cb)[_0x5db560([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a94cb(_0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4628c6=0x5a7a26d^_0x13ee02;function _0x4515df(){const _0x428a2c=_0x5db560([0x6c,0x6c,0x63,0x74,0x2d])+_0x1671a8(_0x348c2d(_0x10de26)),_0x1091f6=_0x5e0a29(_0x1671a8(window[_0x5db560([0x4d,0x61,0x74,0x68])][_0x5db560([0x63,0x65,0x69,0x6c])](_0x2826b9/_0x4628c6)));window[_0x5db560([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5db560([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x428a2c,_0x1091f6);}function _0x59ff37(){const _0xe43bba=_0x5db560([0x6c,0x6c,0x63,0x74,0x2d])+_0x1671a8(_0x348c2d(_0x10de26)),_0x18dc5c=window[_0x5db560([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5db560([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe43bba);return _0x18dc5c?window[_0x5db560([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e0a29(_0x18dc5c),0x10)*_0x4628c6:null;}function _0x5a7212(_0x4aa474){return new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b9e38,_0x224c2c)=>{_0x4aa474[_0x5db560([0x74,0x68,0x65,0x6e])](_0x1b9e38,_0x224c2c),window[_0x5db560([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x224c2c,0x590982d^_0x13ee02);});}}_0x569788[_0x5db560([0x6f,0x6e])](_0x5db560([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41aad3,_0x168d45)=>{if(_0x168d45[0x0]!=_0x10de26)return _0x5a94cb(_0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x168d45[0x1]={..._0x168d45[0x1],[_0x5db560([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd9c375};},{[_0x5db560([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5db560([0x68,0x69,0x67,0x68])}),_0x569788[_0x5db560([0x6f,0x6e])](_0x5db560([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfcdf56=>{_0x2dee0b(_0xfcdf56[_0x5db560([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x112976=!0x0,_0x148757(_0xfcdf56[_0x5db560([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5db560([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5db560([0x6c,0x6f,0x77])}),_0x3bdc42[_0x5db560([0x74,0x68,0x65,0x6e])](()=>{_0x112976||_0x5a94cb(_0x5db560([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1cb38e(){return _0x569788[_0x5db560([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5db560([0x76,0x69,0x65,0x77])][_0x5db560([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5db560([0x61,0x75,0x74,0x6f]);}function _0x280495(){_0x569788[_0x5db560([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5db560([0x76,0x69,0x65,0x77])][_0x5db560([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5db560([0x61,0x75,0x74,0x6f]);}}function _0x44f995(_0x3e628d){const _0x5c948b=[new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c7c3d=>setTimeout(_0x3c7c3d,0x5987221^_0x13ee02)),_0x3bdc42[_0x5db560([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbeb12d=>{let _0x20e794=0x0;_0x569788[_0x5db560([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db560([0x6f,0x6e])](_0x5db560([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5270e0,_0x465a04)=>{_0x465a04[0x0][_0x5db560([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x20e794++,_0x20e794==(0x5914d15^_0x13ee02)&&(_0xbeb12d(),_0x5270e0[_0x5db560([0x6f,0x66,0x66])]());});}))];return window[_0x5db560([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5db560([0x72,0x61,0x63,0x65])](_0x5c948b)[_0x5db560([0x74,0x68,0x65,0x6e])](()=>_0x3e628d);}async function _0x2656b2(){await _0x3bdc42,_0x569788[_0x5db560([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db560([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4893e3,_0x569788[_0x5db560([0x6d,0x6f,0x64,0x65,0x6c])][_0x5db560([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4893e3,_0x569788[_0x5db560([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5db560([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2badb9(){return _0x1d9580(_0x5db560([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x47b6e7(_0x5db560([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5db560([0x73,0x74,0x61,0x74,0x65])]==_0x5db560([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5b4a2c(){return _0x1d9580(_0x5db560([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 _0x1a9c46(){return _0x1d9580(_0x5db560([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ff9d2(_0x5558f7){const _0x30a6ab=_0x310511();_0x569788[_0x30a6ab]=_0x5db560([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5558f7,_0x5558f7!=_0x5db560([0x56,0x61,0x6c,0x69,0x64])&&_0x2656b2();}function _0x310511(){const _0x45895a=window[_0x5db560([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5db560([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5db560([0x6e,0x6f,0x77])]())[_0x5db560([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5db560([0x2e]),'');let _0x3637a9=_0x5db560([0x62]);for(let _0x4df691=0x0;_0x4df691<_0x45895a[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4df691+=0x2){let _0x277bf6=window[_0x5db560([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45895a[_0x5db560([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4df691,_0x4df691+0x2));_0x277bf6>=_0x5d4adb[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x277bf6-=_0x5d4adb[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3637a9+=_0x5d4adb[_0x277bf6];}return _0x3637a9;}function _0x4b444d(){const _0x32d042=_0x30cd9c[_0x5db560([0x73,0x70,0x6c,0x69,0x74])](_0x5db560([0x2e]));if(0x3!=_0x32d042[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x511b30(_0x32d042[0x1]);function _0x511b30(_0x4e79d3){const _0x3f732e=_0x5741ff(_0x4e79d3);return _0x3f732e&&_0x1df3d9()?_0x3f732e:null;function _0x1df3d9(){const _0xfdb9a=_0x3f732e[_0x5db560([0x6a,0x74,0x69])],_0x31b029=window[_0x5db560([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfdb9a[_0x5db560([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfdb9a[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42de1b={..._0x3f732e,[_0x5db560([0x6a,0x74,0x69])]:_0xfdb9a[_0x5db560([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xfdb9a[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42de1b[_0x5db560([0x76,0x63])],_0x348c2d(_0x42de1b)==_0x31b029;}}}async function _0xce63a7(){let _0x2639ed=!0x0;try{const _0x422dfc=_0x30cd9c[_0x5db560([0x73,0x70,0x6c,0x69,0x74])](_0x5db560([0x2e])),[_0x5b51eb,_0x34aaa3,_0x52e7a1]=_0x422dfc;return _0x35e656(_0x5b51eb),await _0x54369a(_0x5b51eb,_0x34aaa3,_0x52e7a1),_0x2639ed;}catch(_0x1c5fdf){return!0x1;}function _0x35e656(_0x3bd411){const _0x426bd2=_0x5741ff(_0x3bd411);_0x426bd2&&_0x426bd2[_0x5db560([0x61,0x6c,0x67])]==_0x5db560([0x45,0x53,0x32,0x35,0x36])||(_0x2639ed=!0x1);}async function _0x54369a(_0x8fcb71,_0x5c9d45,_0x109f5b){const _0x3633ba=window[_0x5db560([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5db560([0x66,0x72,0x6f,0x6d])](_0x49048c(_0x109f5b),_0x44142a=>_0x44142a[_0x5db560([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32499e=new window[(_0x5db560([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5db560([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8fcb71+_0x5db560([0x2e])+_0x5c9d45),_0x288aaf=window[_0x5db560([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5db560([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x288aaf)return;const _0x3d75b6=await _0x288aaf[_0x5db560([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5db560([0x6a,0x77,0x6b]),_0x11b153,{[_0x5db560([0x6e,0x61,0x6d,0x65])]:_0x5db560([0x45,0x43,0x44,0x53,0x41]),[_0x5db560([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5db560([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5db560([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x288aaf[_0x5db560([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5db560([0x6e,0x61,0x6d,0x65])]:_0x5db560([0x45,0x43,0x44,0x53,0x41]),[_0x5db560([0x68,0x61,0x73,0x68])]:{[_0x5db560([0x6e,0x61,0x6d,0x65])]:_0x5db560([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d75b6,_0x3633ba,_0x32499e)||(_0x2639ed=!0x1);}}function _0x5741ff(_0x432ef7){return _0x432ef7[_0x5db560([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5db560([0x65,0x79]))?JSON[_0x5db560([0x70,0x61,0x72,0x73,0x65])](_0x49048c(_0x432ef7)):null;}function _0x49048c(_0xfd71d0){return window[_0x5db560([0x61,0x74,0x6f,0x62])](_0xfd71d0[_0x5db560([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5db560([0x2b]))[_0x5db560([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5db560([0x2f])));}function _0x348c2d(_0x1272e0){let _0x4d52f0=0x1505;function _0x325633(_0x2c4d98){for(let _0x2f36b6=0x0;_0x2f36b6<_0x2c4d98[_0x5db560([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f36b6++){const _0xe3f7ec=_0x2c4d98[_0x5db560([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f36b6);_0x4d52f0=(_0x4d52f0<<0x5)+_0x4d52f0+_0xe3f7ec,_0x4d52f0&=_0x4d52f0;}}function _0x353801(_0x301d5f){Array[_0x5db560([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x301d5f)?_0x301d5f[_0x5db560([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x353801):_0x301d5f&&typeof _0x301d5f==_0x5db560([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5db560([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x301d5f)[_0x5db560([0x73,0x6f,0x72,0x74])]()[_0x5db560([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x317dd1,_0x28f295])=>{_0x325633(_0x317dd1),_0x353801(_0x28f295);}):_0x325633(window[_0x5db560([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x301d5f));}return _0x353801(_0x1272e0),_0x4d52f0>>>0x0;}function _0x1671a8(_0xf6e26c){return _0xf6e26c[_0x5db560([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5db560([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5db560([0x30]));}function _0x5e0a29(_0x5bd3ae){return _0x5bd3ae[_0x5db560([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5db560([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5db560([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d9580(_0x5637c8){return _0x569788[_0x5db560([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5db560([0x68,0x61,0x73])](_0x5637c8);}function _0x47b6e7(_0x5b73a9){return _0x569788[_0x5db560([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5db560([0x67,0x65,0x74])](_0x5b73a9);}function _0x4893e3(){}function _0x5db560(_0x39fc2c){return _0x39fc2c['map'](_0x41af24=>String['fromCharCode'](_0x41af24))['join']('');}_0x1ff9d2(await _0x35e344());}(this);}set['adapter'](_0x29fb4d){if(this['_adapter'])throw new _0x3c0c52('track-changes-adapter-already-set',this);this['_adapter']=_0x29fb4d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x45ee20=!0x1,toJSON:_0x4d18e7=!0x1}={}){const _0x1017fb=[];for(const _0x4206a5 of this['_suggestions']['values']())_0x45ee20&&!_0x4206a5['isInContent']||_0x1017fb['push'](_0x4206a5);return _0x4d18e7?_0x1017fb['map'](_0x7a914f=>_0x7a914f['toJSON']()):_0x1017fb;}['getSuggestion'](_0x9a8b1b){const _0x1bb44e=this['_suggestions']['get'](_0x9a8b1b);if(!_0x1bb44e)throw new _0x3c0c52('track-changes-suggestion-not-found',this);return _0x1bb44e;}['hasSuggestion'](_0x18828e){return this['_suggestions']['has'](_0x18828e);}['addSuggestionData'](_0x5bb240){const {authorId:_0x46a2fa,id:_0x5cbfb1,attributes:_0x1a274d}=_0x5bb240,[_0x1b506e,_0x5a56ef]=_0x5bb240['type']['split'](':'),_0x4c06f3=this['_suggestions']['get'](_0x5cbfb1)||this['_createSuggestion'](_0x1b506e,_0x5a56ef,_0x5cbfb1,_0x46a2fa,_0x1a274d);if(this['_addThreadToSuggestion'](_0x4c06f3),this['_checkSuggestionCorrectness'](_0x4c06f3,_0x1b506e,_0x5a56ef||null,_0x46a2fa),_0x4c06f3['createdAt']=_0x5bb240['createdAt'],_0x4c06f3['_isDataLoaded']=!0x0,_0x1a274d&&_0x1a274d['@external']){const _0x9dbd8c=_0x1a274d['@external'],_0x398cb1=this['_getExternalAuthor'](_0x9dbd8c['authorName']);_0x4c06f3['authoredAt']=_0x9dbd8c['createdAt'],_0x4c06f3['author']=_0x398cb1,_0x4c06f3['isExternal']=!0x0;}else _0x4c06f3['authoredAt']=_0x5bb240['createdAt'];switch(_0x5bb240['data']&&(_0x4c06f3['data']=_0x5bb240['data']),_0x5bb240['attributes']&&(_0x4c06f3['attributes']=_0x5bb240['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4c06f3['_saved']=!0x0),this['_suggestionState']['get'](_0x4c06f3)){case'notReady':this['_suggestionState']['set'](_0x4c06f3,'dataReady');break;case'markerReady':_0x4c06f3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c06f3])),this['_refreshSuggestionsChain'](new Set([_0x4c06f3])),this['_suggestionState']['set'](_0x4c06f3,'ready'),this['fire']('suggestionLoaded',_0x4c06f3)):this['_suggestionState']['set'](_0x4c06f3,'removed');}return _0x4c06f3;}['acceptSuggestion'](_0x4bde77){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3745bd of _0x4bde77['getAllAdjacentSuggestions']())_0x3745bd['accept']();});});}['discardSuggestion'](_0x210c19){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x134efe of _0x210c19['getAllAdjacentSuggestions']())_0x134efe['discard']();});});}['enableCommand'](_0x1048e6,_0x6a79ce){const _0x2fdf13=this['editor']['commands']['get'](_0x1048e6);if(!_0x2fdf13)throw new _0x3c0c52('track-changes-command-not-found',this,{'commandName':_0x1048e6});if(this['_enabledCommands']['has'](_0x2fdf13))throw new _0x3c0c52('track-changes-enable-command-twice',this,{'commandName':_0x1048e6});this['_enabledCommands']['add'](_0x2fdf13),_0x6a79ce&&_0x2fdf13['on']('execute',(_0x3dbbc6,_0x148502)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x148502['length']>0x0&&_0x148502[_0x148502['length']-0x1]&&_0x148502[_0x148502['length']-0x1]['forceDefaultExecution']?_0x148502['pop']():(_0x3dbbc6['return']=_0x6a79ce((..._0x40b02c)=>_0x2fdf13['execute'](..._0x40b02c,{'forceDefaultExecution':!0x0}),..._0x148502),_0x3dbbc6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x447f5a){let _0x25c3a2,_0x5a5f01;const _0x595aba=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x25c3a2=_0x447f5a();}catch(_0x96e2df){_0x5a5f01=_0x96e2df;}return _0x595aba||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5a5f01&&_0x3c0c52['rethrowUnexpectedError'](_0x5a5f01,this),_0x25c3a2;}['markInsertion'](_0x5bdd1e,_0x3fc621=null,_0x151ef6={}){if(_0x5bdd1e['isCollapsed'])return null;const _0x4eff7b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x546ec3,meta:_0x4a6755}of this['_findSuggestions'](_0x5bdd1e,'insertion'))if(_0x4a6755['isOwn']){if(!_0x4a6755['isNextTo']){if(_0x4a6755['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x546ec3,_0x151ef6))continue;return _0x546ec3;}if(Xt(_0x546ec3,_0x151ef6))return _0x546ec3;this['_breakSuggestionMarker'](_0x546ec3,_0x5bdd1e['start'],_0x5bdd1e['end']);break;}if(_0x3fc621==_0x546ec3['subType']&&Xt(_0x546ec3,_0x151ef6)){const _0x188b14=_0x546ec3['getFirstRange']();return _0x188b14['start']['isEqual'](_0x5bdd1e['end'])?this['_setSuggestionRange'](_0x546ec3,this['_model']['createRange'](_0x5bdd1e['start'],_0x188b14['end'])):this['_setSuggestionRange'](_0x546ec3,this['_model']['createRange'](_0x188b14['start'],_0x5bdd1e['end'])),_0x546ec3;}}const _0x11983d=_0x29542d(),_0x471672=_0x4eff7b['id'],_0x322460=_0x3fc621?'insertion:'+_0x3fc621:'insertion',_0x7a4468=this['_setSuggestionData']({'id':_0x11983d,'type':_0x322460,'createdAt':new Date(),'authorId':_0x471672,'attributes':_0x151ef6});return this['_addSuggestionMarker'](_0x322460,_0x11983d,_0x471672,_0x5bdd1e),_0x7a4468;}['markMultiRangeInsertion'](_0x199210,_0x143e38='multi',_0x3c3ce7={}){const _0x26380c=this['editor']['plugins']['get']('Users')['me'],_0x7ec64=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x143e38,'join');for(const _0x5abc4b of this['getSuggestions']())if(_0x5abc4b['author']['id']==_0x26380c['id']&&'insertion'==_0x5abc4b['type']&&_0x5abc4b['subType']==_0x143e38&&Xt(_0x5abc4b,_0x3c3ce7)&&(_0x7ec64(_0x5abc4b['getRanges'](),_0x199210)||_0x7ec64(_0x199210,_0x5abc4b['getRanges']()))){for(const _0x53bf17 of _0x199210)_0x5abc4b['addRange'](_0x53bf17);return _0x5abc4b;}for(const {suggestion:_0x1ea615,meta:_0x13acde}of this['_findSuggestions'](_0x199210,'insertion')){if(!_0x13acde['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x13acde['containsRangeInObject'])continue;if(!Xt(_0x1ea615,_0x3c3ce7))continue;let _0x3842b3=!0x0;for(const _0x451a72 of _0x1ea615['getRanges']())for(const _0x2882ca of _0x199210)if(!_0x451a72['containsRange'](_0x2882ca)){_0x3842b3=!0x1;break;}if(_0x3842b3)return _0x1ea615;}const _0x17863e=_0x29542d(),_0x2c5f41=_0x26380c['id'],_0x2694d5='insertion:'+_0x143e38,_0x3e0fa0=this['_setSuggestionData']({'id':_0x17863e,'type':_0x2694d5,'createdAt':new Date(),'authorId':_0x2c5f41,'attributes':_0x3c3ce7});for(const _0x55a200 of _0x199210)this['_addSuggestionMarker'](_0x2694d5,_0x17863e,_0x2c5f41,_0x55a200,o['getMultiRangeId']());return _0x3e0fa0;}['markInlineFormat'](_0x2d3911,_0x1bf4b7,_0x901276=null,_0x3afc06={}){if(_0x901276=_0x901276||Kt(_0x1bf4b7),_0x2d3911['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x24adb4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x901276,'accept');return this['forceDefaultExecution'](()=>_0x24adb4([_0x2d3911],_0x1bf4b7,_0x3afc06)),null;}const _0x37e8d8=this['editor']['plugins']['get']('Users')['me'],_0x303d3b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x12119e,meta:_0x997b63}of this['_findSuggestions'](_0x2d3911,'insertion'))_0x997b63['isOwn']&&!_0x997b63['isInsideObject']&&_0x303d3b['push'](..._0x12119e['getRanges']());}const _0x3dc964=function(_0x3460b0,_0x79f64e){const _0xa095fb=[];for(const _0x4292d7 of _0x79f64e){const _0x1cd501=_0x3460b0['getIntersection'](_0x4292d7);_0x1cd501&&_0xa095fb['push'](_0x1cd501);}return _0xa095fb;}(_0x2d3911,_0x303d3b),_0xf2104d=function(_0x252df8,_0x5dfe00){const _0x4a4767=[_0x252df8];for(const _0x4ce08c of _0x5dfe00){let _0xd780fc=0x0;for(;_0xd780fc<_0x4a4767['length'];){const _0x36cd9b=_0x4a4767[_0xd780fc]['getDifference'](_0x4ce08c);_0x4a4767['splice'](_0xd780fc,0x1,..._0x36cd9b),_0xd780fc+=_0x36cd9b['length'];}}return _0x4a4767;}(_0x2d3911,_0x303d3b);_0x3dc964['length']&&this['_model']['change'](()=>{for(const _0x180fdd of _0x3dc964){const _0x1531a1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x901276,'accept');this['forceDefaultExecution'](()=>_0x1531a1([_0x180fdd],_0x1bf4b7,_0x3afc06));}});for(const _0x1c0d4a of _0xf2104d){let _0x5bd3f8=null,_0x4e40a9=_0x1c0d4a['start'],_0x3e43dd=_0x1c0d4a['end'];for(const {suggestion:_0x1c07bd,meta:_0x52d8d4}of this['_findSuggestions'](_0x1c0d4a,'formatInline')){if(!_0x52d8d4['isOwn'])continue;if(_0x1c07bd['subType']!=_0x901276)continue;if(!Xt(_0x1c07bd,_0x3afc06))continue;const _0x575900=_0x1c07bd['getFirstRange']();if(_0x575900['containsRange'](_0x1c0d4a,!0x0))return null;_0x4e40a9=_0x4e40a9['isBefore'](_0x575900['start'])?_0x4e40a9:_0x575900['start'],_0x3e43dd=_0x3e43dd['isAfter'](_0x575900['end'])?_0x3e43dd:_0x575900['end'],_0x5bd3f8?_0x575900['start']['isBefore'](_0x5bd3f8['getFirstRange']()['start'])?(_0x5bd3f8['removeMarkers'](),_0x5bd3f8=_0x1c07bd):_0x1c07bd['removeMarkers']():_0x5bd3f8=_0x1c07bd;}const _0x594941=this['_model']['createRange'](_0x4e40a9,_0x3e43dd);if(_0x5bd3f8)this['_setSuggestionRange'](_0x5bd3f8,_0x594941);else{const _0x471d10=_0x29542d(),_0x135206=_0x37e8d8['id'];this['_setSuggestionData']({'id':_0x471d10,'type':'formatInline:'+_0x901276,'data':_0x1bf4b7,'createdAt':new Date(),'authorId':_0x135206,'attributes':_0x3afc06}),this['_addSuggestionMarker']('formatInline:'+_0x901276,_0x471d10,_0x135206,_0x594941);}}return null;}['markBlockFormat'](_0x4f5fb9,_0x251157,_0x750cc=[],_0x50bbb9=null,_0x1de546={}){_0x251157['formatGroupId']||(_0x251157['formatGroupId']=_0x251157['commandName']),_0x251157['multipleBlocks']=_0x4f5fb9['is']('range'),_0x50bbb9=_0x50bbb9||Kt(_0x251157);const _0x1800f5=_0x750cc['map'](_0x894908=>zt(_0x894908,this['_model'])),_0x427fe5=_0x4f5fb9['is']('range')?_0x4f5fb9:zt(_0x4f5fb9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x51929d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50bbb9,'accept');return this['forceDefaultExecution'](()=>_0x51929d([_0x427fe5],_0x251157,_0x1de546)),null;}_0x1800f5['push'](_0x427fe5);let _0x3c6e30=!0x0;for(const _0x2660fc of _0x1800f5)if(!this['_rangeIsInLocalUserInsertion'](_0x2660fc)){_0x3c6e30=!0x1;break;}if(_0x3c6e30&&'always'!==this['_trackFormatChanges']){const _0x1f82c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x50bbb9,'accept');return this['forceDefaultExecution'](()=>_0x1f82c4([_0x427fe5],_0x251157,_0x1de546)),null;}let _0x4b782e=null,_0x4d0c73=_0x427fe5['start'],_0x240634=_0x427fe5['end'];for(const {suggestion:_0x13cd73,meta:_0x4d8e24}of this['_findSuggestions'](_0x427fe5,'formatBlock')){if(!_0x4d8e24['isOwn'])continue;if(_0x4d8e24['isNextTo']||_0x4d8e24['containsRangeInObject']||_0x4d8e24['isInsideObject'])continue;if(_0x13cd73['data']['formatGroupId']!=_0x251157['formatGroupId'])continue;if(!Xt(_0x13cd73,_0x1de546))continue;const _0xa94945=_0x13cd73['getFirstRange']();if(_0x13cd73['subType']==_0x50bbb9){if(_0xa94945['containsRange'](_0x427fe5,!0x0))return null;_0x4d0c73=_0x4d0c73['isBefore'](_0xa94945['start'])?_0x4d0c73:_0xa94945['start'],_0x240634=_0x240634['isAfter'](_0xa94945['end'])?_0x240634:_0xa94945['end'],_0x4b782e?_0xa94945['start']['isBefore'](_0x4b782e['getFirstRange']()['start'])?(_0x4b782e['removeMarkers'](),_0x4b782e=_0x13cd73):_0x13cd73['removeMarkers']():_0x4b782e=_0x13cd73;}else{const _0x5c5263=_0x427fe5['getIntersection'](_0xa94945);this['_cutOutSuggestionMarker'](_0x13cd73,_0x5c5263);}}const _0x543d4e=this['editor']['plugins']['get']('Users')['me'],_0x9482e=_0x29542d(),_0x3d9888=_0x543d4e['id'];if(_0x4b782e)return this['_setSuggestionRange'](_0x4b782e,this['_model']['createRange'](_0x4d0c73,_0x240634)),_0x4b782e;{const _0x1c18e6=this['_setSuggestionData']({'id':_0x9482e,'type':'formatBlock:'+_0x50bbb9,'data':_0x251157,'createdAt':new Date(),'authorId':_0x3d9888,'attributes':_0x1de546});return this['_addSuggestionMarker']('formatBlock:'+_0x50bbb9,_0x9482e,_0x3d9888,this['_model']['createRange'](_0x4d0c73,_0x240634)),_0x1c18e6;}}['markMultiRangeBlockFormat'](_0x3b9efa,_0xbe4041,_0x4f9b6d=[],_0x13ac87=null,_0x34e0d3={}){_0xbe4041['formatGroupId']||(_0xbe4041['formatGroupId']=_0xbe4041['commandName']);const _0x1c3942=_0x3b9efa[0x0];_0xbe4041['multipleBlocks']=_0x1c3942['is']('range'),_0x13ac87=_0x13ac87||Kt(_0xbe4041);const _0x566ed3=_0x4f9b6d['map'](_0x36e9bc=>zt(_0x36e9bc,this['_model'])),_0x3e8ca8=_0x1c3942['is']('range')?_0x3b9efa:_0x3b9efa['map'](_0x3aae92=>zt(_0x3aae92,this['_model']));if('never'===this['_trackFormatChanges']){const _0x155ace=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ac87,'accept');return this['forceDefaultExecution'](()=>_0x155ace(_0x3e8ca8,_0xbe4041,_0x34e0d3)),null;}_0x566ed3['push'](..._0x3e8ca8);let _0x4584ee=!0x0;for(const _0x49b74e of _0x566ed3)if(!this['_rangeIsInLocalUserInsertion'](_0x49b74e)){_0x4584ee=!0x1;break;}if(_0x4584ee&&'always'!==this['_trackFormatChanges']){const _0x5bd984=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ac87,'accept');return this['forceDefaultExecution'](()=>_0x5bd984(_0x3e8ca8,_0xbe4041,_0x34e0d3)),null;}const _0x14c5d1=this['editor']['plugins']['get']('Users')['me'];for(const _0x20d17e of this['getSuggestions']()){if(_0x20d17e['author']['id']!=_0x14c5d1['id'])continue;if('formatBlock'!=_0x20d17e['type']||_0x20d17e['data']['formatGroupId']!=_0xbe4041['formatGroupId'])continue;if(!Xt(_0x20d17e,_0x34e0d3))continue;const _0x33ecc2=_0x20d17e['subType']==_0x13ac87;for(let _0x15ab23=0x0;_0x15ab23<_0x3e8ca8['length'];_0x15ab23++){const _0x3a89a5=_0x3e8ca8[_0x15ab23];for(const _0x51fbee of _0x20d17e['getMarkers']()){const _0x1e137b=_0x51fbee['getRange']();if(_0x3a89a5['isEqual'](_0x1e137b)){_0x33ecc2?(_0x3e8ca8['splice'](_0x15ab23,0x1),_0x15ab23--):_0x20d17e['removeMarker'](_0x51fbee['name']);break;}}}}if(0x0==_0x3e8ca8['length'])return null;const _0x2dba63=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ac87,'join');for(const _0x2efc1f of this['getSuggestions']())if(_0x2efc1f['author']['id']==_0x14c5d1['id']&&'formatBlock'==_0x2efc1f['type']&&_0x2efc1f['data']['formatGroupId']==_0xbe4041['formatGroupId']&&_0x2efc1f['subType']==_0x13ac87&&Xt(_0x2efc1f,_0x34e0d3)&&(_0x2dba63(_0x2efc1f['getRanges'](),_0x3e8ca8)||_0x2dba63(_0x3e8ca8,_0x2efc1f['getRanges']()))){for(const _0x3cfd26 of _0x3e8ca8)_0x2efc1f['addRange'](_0x3cfd26);return _0x2efc1f;}const _0x3f4259=_0x29542d(),_0xa0079d=_0x14c5d1['id'],_0x59b7a4='formatBlock:'+_0x13ac87,_0x1da9f5=this['_setSuggestionData']({'id':_0x3f4259,'type':_0x59b7a4,'data':_0xbe4041,'createdAt':new Date(),'authorId':_0xa0079d,'attributes':_0x34e0d3});for(const _0x391c59 of _0x3e8ca8)this['_addSuggestionMarker'](_0x59b7a4,_0x3f4259,_0xa0079d,_0x391c59,o['getMultiRangeId']());return _0x1da9f5;}['markDeletion'](_0x31ffc6,_0x4eb2b2=null,_0x3a8383={}){if(_0x31ffc6['isCollapsed'])return null;const _0x2a82f4=this['editor']['plugins']['get']('Users')['me'],_0x1edce4=new _0x14a494(_0x31ffc6['start'],_0x31ffc6['end']);for(const {suggestion:_0x5e7621,meta:_0x337230}of this['_findSuggestions'](_0x1edce4,'insertion'))if(_0x337230['isOwn']&&!_0x337230['isNextTo']){if(_0x5e7621['isMultiRange']){const _0x3ef031=_0x5e7621['getRanges']()['filter'](_0x3cb803=>'$graveyard'!=_0x3cb803['root']['rootName']);_0x3ef031['every'](_0x4e9dc0=>_0x1edce4['containsRange'](_0x4e9dc0,!0x0))&&_0x5e7621['discard']();if(_0x3ef031['some'](_0x182958=>_0x182958['containsRange'](_0x1edce4,!0x0))){const _0x14c57d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4eb2b2,'accept');return this['forceDefaultExecution'](()=>_0x14c57d([_0x1edce4],null,_0x3a8383)),null;}}else{const _0x500643=_0x1edce4['getIntersection'](_0x5e7621['getFirstRange']());null!==_0x500643&&_0x5e7621['_onDiscard']([_0x500643],null,_0x3a8383);}}if(_0x1edce4['detach'](),_0x1edce4['isCollapsed']||'$graveyard'==_0x1edce4['root']['rootName'])return null;let _0xb206ae=null,_0x1b70b6=_0x1edce4['start'],_0x46d7ca=_0x1edce4['end'];const _0x1ec665=this['_findSuggestions'](_0x1edce4,'deletion');for(const {suggestion:_0x4195ef,meta:_0x730709}of _0x1ec665){const _0x408215=this['_model']['createRange'](_0x1b70b6,_0x46d7ca);if(_0x730709['isOwn']&&(this['_mergeNestedSuggestions']||!_0x730709['containsRangeInObject']&&!_0x730709['isInsideObject'])){if(_0x4195ef['isMultiRange']){if(!Xt(_0x4195ef,_0x3a8383))continue;let _0x503615=!0x0;for(const _0x510eff of _0x4195ef['getRanges']()){if(_0x510eff['containsRange'](_0x408215,!0x0))return _0x4195ef;_0x408215['containsRange'](_0x510eff)||(_0x503615=!0x1);}_0x503615&&_0x4195ef['discard']();}else{const _0x539c83=_0x4195ef['getFirstRange']();if(_0x539c83['containsRange'](_0x408215,!0x0))return _0x4195ef;if(!Xt(_0x4195ef,_0x3a8383)){_0x408215['containsRange'](_0x539c83)?_0x4195ef['removeMarkers']():_0x539c83['containsPosition'](_0x1b70b6)?_0x1b70b6=_0x539c83['end']:_0x539c83['containsPosition'](_0x46d7ca)&&(_0x46d7ca=_0x539c83['start']);continue;}_0x1b70b6=_0x1b70b6['isBefore'](_0x539c83['start'])?_0x1b70b6:_0x539c83['start'],_0x46d7ca=_0x46d7ca['isAfter'](_0x539c83['end'])?_0x46d7ca:_0x539c83['end'],_0x3a8383=Object['assign']({},_0x4195ef['attributes']),_0xb206ae?_0x539c83['start']['isBefore'](_0xb206ae['getFirstRange']()['start'])?(_0xb206ae['removeMarkers'](),_0xb206ae=_0x4195ef):_0x4195ef['removeMarkers']():_0xb206ae=_0x4195ef;}}}if(_0xb206ae)return this['_setSuggestionRange'](_0xb206ae,this['_model']['createRange'](_0x1b70b6,_0x46d7ca)),_0xb206ae;{const _0x2eb409=_0x29542d(),_0x2b8856=this['_model']['createRange'](_0x1b70b6,_0x46d7ca),_0x41f1e5=_0x2a82f4['id'],_0x537940=_0x4eb2b2?'deletion:'+_0x4eb2b2:'deletion',_0x2f1bae=this['_setSuggestionData']({'id':_0x2eb409,'type':_0x537940,'createdAt':new Date(),'authorId':_0x41f1e5,'attributes':_0x3a8383});return this['_addSuggestionMarker'](_0x537940,_0x2eb409,_0x41f1e5,_0x2b8856),_0x2f1bae;}}['markMultiRangeDeletion'](_0x55bffd,_0x52aad0='multi',_0x28bebc={}){const _0x508704=this['editor']['plugins']['get']('Users')['me'],_0x195a16=_0x55bffd['map'](_0xe81bc2=>new _0x14a494(_0xe81bc2['start'],_0xe81bc2['end'])),_0x51f939=new Set();for(const {suggestion:_0x3fa7dc,meta:_0x2268c2}of this['_findSuggestions'](_0x195a16,'insertion'))_0x2268c2['isOwn']&&!_0x2268c2['isNextTo']&&_0x51f939['add'](_0x3fa7dc);for(const _0x5b974f of _0x51f939)if(_0x5b974f['isMultiRange']){const _0x4a438d=_0x5b974f['getRanges']();(!_0x5b974f['attributes']||!_0x5b974f['attributes']['skipNestingCheck'])&&(_0x4a438d['every'](_0x5759f7=>_0x195a16['some'](_0x3f5a04=>_0x3f5a04['containsRange'](_0x5759f7,!0x0)))&&_0x5b974f['discard']());if(_0x195a16['every'](_0x6f9667=>_0x4a438d['some'](_0xddc3f9=>_0xddc3f9['containsRange'](_0x6f9667,!0x0)))){const _0x453a67=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52aad0,'accept');return this['forceDefaultExecution'](()=>_0x453a67(_0x55bffd,null,_0x28bebc)),null;}}else{const _0x2eb6f7=_0x5b974f['getFirstRange']();_0x195a16['some'](_0x1988bb=>_0x1988bb['containsRange'](_0x2eb6f7,!0x0))&&_0x5b974f['discard']();if(_0x195a16['every'](_0x10c2d5=>_0x2eb6f7['containsRange'](_0x10c2d5,!0x0))){const _0x535031=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52aad0,'accept');return this['forceDefaultExecution'](()=>_0x535031(_0x195a16,null,_0x28bebc)),null;}}const _0x1f9a20=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52aad0,'join');let _0x1a33c9=null;for(const _0x1eb839 of this['getSuggestions']())if(_0x1eb839['author']['id']==_0x508704['id']&&_0x1eb839['isInContent']&&'deletion'==_0x1eb839['type']&&_0x1eb839['subType']==_0x52aad0&&Xt(_0x1eb839,_0x28bebc)&&(_0x1f9a20(_0x1eb839['getRanges'](),_0x195a16)||_0x1f9a20(_0x195a16,_0x1eb839['getRanges']()))){if(_0x1a33c9){if(_0x1eb839['commentThread']&&_0x1eb839['commentThread']['length'])continue;for(const _0x43270f of _0x1eb839['getRanges']())_0x1a33c9['isIntersectingWithRange'](_0x43270f)||_0x1a33c9['addRange'](_0x43270f);_0x1eb839['removeMarkers']();}else{_0x1a33c9=_0x1eb839;for(const _0x31d26d of _0x195a16)_0x1eb839['isIntersectingWithRange'](_0x31d26d)||_0x1eb839['addRange'](_0x31d26d);}}if(_0x1a33c9)return _0x1a33c9;_0x51f939['clear']();for(const {suggestion:_0x4f0fb4,meta:_0x52eca4}of this['_findSuggestions'](_0x195a16,'deletion'))_0x52eca4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x52eca4['containsRangeInObject']&&!_0x52eca4['isInsideObject'])&&Xt(_0x4f0fb4,_0x28bebc)&&_0x51f939['add'](_0x4f0fb4);for(const _0x1061a8 of _0x51f939){const _0x445867=_0x1061a8['getRanges']();if(!_0x28bebc||!_0x28bebc['skipNestingCheck']){if(_0x195a16['every'](_0xb80aef=>_0x445867['some'](_0x525db6=>_0x525db6['containsRange'](_0xb80aef,!0x0))))return _0x1061a8;}(!_0x1061a8['attributes']||!_0x1061a8['attributes']['skipNestingCheck'])&&(_0x445867['every'](_0x280805=>_0x195a16['some'](_0x24a8af=>_0x24a8af['containsRange'](_0x280805,!0x0)))&&_0x1061a8['discard']());}const _0x223847=_0x29542d(),_0x75f54b=_0x508704['id'],_0x37a06d='deletion:'+_0x52aad0,_0x210071=this['_setSuggestionData']({'id':_0x223847,'type':_0x37a06d,'createdAt':new Date(),'authorId':_0x75f54b,'attributes':_0x28bebc});for(const _0x129463 of _0x195a16)_0x129463['detach'](),_0x129463['isCollapsed']||'$graveyard'==_0x129463['root']['rootName']||this['_addSuggestionMarker'](_0x37a06d,_0x223847,_0x75f54b,_0x129463,o['getMultiRangeId']());return _0x210071;}['markAttributeChange'](_0x5ae8f,_0x127352,_0x53b964,_0xe2ef96,_0x2e2234){if(_0x5ae8f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x19fc33=this['editor']['plugins']['get']('Users')['me']['id'],_0x393e66=Array['from'](this['_suggestions']['values']())['filter'](_0x1b876c=>'attribute'==_0x1b876c['type']&&_0x1b876c['data']['key']==_0x127352&&_0x1b876c['isIntersectingWithRange'](_0x5ae8f));if('default'===this['_trackFormatChanges']){const _0x9f9218=this['_findSuggestions'](_0x5ae8f,'insertion')['filter'](({meta:_0x13d748})=>_0x13d748['isOwn']&&!_0x13d748['isInsideObject']&&!_0x13d748['isNextTo'])['map'](({suggestion:_0x149094})=>_0x149094);_0x393e66['unshift'](..._0x9f9218);}const _0x186b03=new Map([[_0x5ae8f,_0x53b964]]);for(const _0x4bddea of _0x393e66){const _0x877bac='attribute'==_0x4bddea['type']?_0x4bddea['data']['oldValue']:void 0x0,_0xbddde5=_0x4bddea['getFirstRange'](),_0xda5dcc=Array['from'](_0x186b03['keys']())['find'](_0x218288=>_0x218288['isIntersecting'](_0xbddde5));if(!_0xda5dcc)continue;const _0x5e988b=_0xda5dcc['getDifference'](_0xbddde5);this['_isBlockAttribute'](_0x127352)&&'insertion'==_0x4bddea['type']&&0x0!=_0x5e988b['length']||(_0x186b03['delete'](_0xda5dcc),_0x5e988b['forEach'](_0x21d8f4=>{_0x186b03['set'](_0x21d8f4,_0x53b964);}),'insertion'!=_0x4bddea['type']&&_0x877bac!=_0xe2ef96&&_0x186b03['set'](_0xda5dcc['getIntersection'](_0xbddde5),_0x877bac));}const _0x5de016=[];for(const [_0x24d11e,_0x5e85fb]of _0x186b03){const _0x4bcac5=_0x29542d(),_0x111b07={'key':_0x127352,'oldValue':_0x5e85fb,'newValue':_0xe2ef96};_0x127352['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':_0x127352});const _0x427227=('attribute:'+(_0x127352+'|'+Kt({'newValue':_0xe2ef96})))['substring'](0x0,0x3c),_0x221341=this['_setSuggestionData']({'id':_0x4bcac5,'type':_0x427227,'data':_0x111b07,'createdAt':new Date(),'authorId':_0x19fc33,'attributes':_0x2e2234});_0x5de016['push'](_0x221341),this['_addSuggestionMarker'](_0x427227,_0x4bcac5,_0x19fc33,_0x24d11e);}return _0x5de016;}['enableDefaultAttributesIntegration'](_0x350680){this['enableCommand'](_0x350680,(_0x30ab3d,..._0x4cd1bd)=>{this['_recordAttributeChanges'](()=>{_0x30ab3d(..._0x4cd1bd);});});}['registerBlockAttribute'](_0x4f671c){this['_blockAttributeKeys']['add'](_0x4f671c);}['registerInlineAttribute'](_0x4b30ab){this['_inlineAttributeKeys']['add'](_0x4b30ab);}['_getAttributeKey'](_0x21da7a){return'attribute'==_0x21da7a['type']?_0x21da7a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x27fd5c,_0x319b15){const _0x3a99e4=_0x27fd5c['getFirstMarker']();this['_model']['change'](_0x35912b=>{_0x35912b['updateMarker'](_0x3a99e4,{'range':_0x319b15});});}['_addThreadToSuggestion'](_0x32043b){const _0x45acbb=_0x32043b['id'],_0x8caba2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45acbb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x8caba2,'threadId':_0x45acbb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xeaf911=this['_commentsRepository']['getCommentThread'](_0x45acbb);_0xeaf911['unbind']('isRemovable'),_0xeaf911['isRemovable']=!0x1,_0x32043b['commentThread']=_0xeaf911;}['_checkSuggestionCorrectness'](_0x4676e6,_0x47d4f6,_0x6dad05,_0x47b432){if(_0x4676e6['type']!=_0x47d4f6||_0x4676e6['subType']!=_0x6dad05||_0x4676e6['creator']['id']!=_0x47b432)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3c0c52('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x447539,_0x151a98){const _0x5d59df=_0x447539['getFirstRange']();if(_0x151a98['isEqual'](_0x5d59df))_0x447539['removeMarkers']();else{if(_0x5d59df['containsRange'](_0x151a98)){const _0x505818=this['_model']['createPositionAt'](_0x151a98['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x447539,this['_model']['createRange'](_0x5d59df['start'],_0x505818));const _0x1c1b4d=_0x29542d(),_0x2d6953=_0x447539['creator']['id'],_0x380535=_0x447539['type']+':'+_0x447539['subType'];this['_setSuggestionData']({'id':_0x1c1b4d,'type':_0x380535,'createdAt':new Date(),'authorId':_0x2d6953,'data':_0x447539['data'],'attributes':_0x447539['attributes']});const _0x5502f2=this['_model']['createPositionAt'](_0x151a98['end']['parent'],'after'),_0x36fae4=this['_model']['createRange'](_0x5502f2,_0x5d59df['end']);this['_addSuggestionMarker'](_0x380535,_0x1c1b4d,_0x2d6953,_0x36fae4);}else{if(_0x5d59df['containsPosition'](_0x151a98['start'])){const _0x5d8f57=this['_model']['createPositionAt'](_0x151a98['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x447539,this['_model']['createRange'](_0x5d59df['start'],_0x5d8f57));}else{const _0x48ca14=this['_model']['createPositionAt'](_0x151a98['end']['parent'],'after');this['_setSuggestionRange'](_0x447539,this['_model']['createRange'](_0x48ca14,_0x5d59df['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x360c9f){for(const {suggestion:_0x432a01,meta:_0x34e4f4}of this['_findSuggestions'](_0x360c9f,'insertion')){if(!_0x34e4f4['isOwn'])continue;const _0x36d457=_0x432a01['getRanges']();for(const _0x970a9f of _0x36d457)if(!_0x360c9f['getDifference'](_0x970a9f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x59fcce){const _0x152a20=this['editor']['plugins']['get']('Users')['getUser'](_0x59fcce);if(!_0x152a20)throw new _0x3c0c52('track-changes-user-not-found',this);return _0x152a20;}['_getExternalAuthor'](_0x583d55){const _0x460aa4=this['editor']['plugins']['get']('Users'),_0x14df22=_0x1e8182('external:'+_0x583d55),_0x1feed4=_0x460aa4['getUser'](_0x14df22);return _0x1feed4||_0x460aa4['addUser']({'id':_0x14df22,'name':_0x583d55});}['_createSuggestion'](_0x51465f,_0x2161c1,_0x1d5aee,_0x71da89,_0x25eda2){const _0x4abc77=this['_getAuthorFromId'](_0x71da89),_0x4d3c4d=this['_suggestionFactory']['buildSuggestion'](_0x51465f,_0x2161c1,_0x1d5aee,_0x4abc77,_0x25eda2,_0x5b03ca=>{this['_updateSuggestionData'](_0x1d5aee,{'attributes':_0x5b03ca});const _0x3c5f42=this['getSuggestion'](_0x1d5aee);this['_joinWithAdjacentSuggestions'](new Set([_0x3c5f42])),this['_refreshSuggestionsChain'](new Set([_0x3c5f42]));});return this['listenTo'](_0x4d3c4d,'accept',()=>{this['_updateSuggestionData'](_0x1d5aee,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4d3c4d,'discard',()=>{this['_updateSuggestionData'](_0x1d5aee,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d5aee,_0x4d3c4d),this['_suggestionState']['set'](_0x4d3c4d,'notReady'),_0x4d3c4d;}['_splitMarkerName'](_0x36aa8f){const _0x5f341a=_0x36aa8f['split'](':');return{'group':_0x5f341a[0x0],'type':_0x5f341a[0x1],'subType':_0x5f341a['length']>=0x5?_0x5f341a[0x2]:null,'id':_0x5f341a['length']<0x5?_0x5f341a[0x2]:_0x5f341a[0x3],'authorId':_0x5f341a['length']<0x5?_0x5f341a[0x3]:_0x5f341a[0x4],'markerCount':0x6==_0x5f341a['length']?_0x5f341a[0x5]:null};}['_breakSuggestionMarker'](_0x4c1ca9,_0xb656c4,_0x9894de){const _0x5af64f=_0x4c1ca9['getFirstRange'](),_0x4de4a4=_0x5af64f['start'],_0x444895=_0x5af64f['end'];this['_setSuggestionRange'](_0x4c1ca9,this['_model']['createRange'](_0x4de4a4,_0xb656c4));const _0xfa6b89=_0x29542d(),_0x3675fb=_0x4c1ca9['creator']['id'],_0x1d2ba4=_0x4c1ca9['type']+(_0x4c1ca9['subType']?':'+_0x4c1ca9['subType']:'');this['_setSuggestionData']({'id':_0xfa6b89,'type':_0x1d2ba4,'createdAt':new Date(),'authorId':_0x3675fb,'originalSuggestionId':_0x4c1ca9['id'],'attributes':_0x4c1ca9['attributes'],'data':_0x4c1ca9['data']});const _0x25e1b6=this['_getAttributeKey'](_0x4c1ca9);('formatBlock'==_0x4c1ca9['type']||_0x25e1b6&&this['_isBlockAttribute'](_0x25e1b6))&&(_0x9894de=this['_model']['createPositionBefore'](_0x9894de['parent'])),this['_addSuggestionMarker'](_0x1d2ba4,_0xfa6b89,_0x3675fb,this['_model']['createRange'](_0x9894de,_0x444895));}['_findSuggestions'](_0x4a09d0,_0x335385=null){const _0x42211c=[],_0x24199d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4a09d0)||(_0x4a09d0=[_0x4a09d0]);for(const _0x44de4b of this['getSuggestions']()){if(!_0x44de4b['isInContent'])continue;if(_0x335385&&_0x44de4b['type']!=_0x335385)continue;let _0x20cffc=!0x1;for(const _0x38fcb7 of _0x44de4b['getRanges']()){for(const _0x5479bd of _0x4a09d0){const _0x2bc18d=_0x5479bd['start']['isEqual'](_0x38fcb7['end'])||_0x5479bd['end']['isEqual'](_0x38fcb7['start']);if(_0x2bc18d||_0x5479bd['getIntersection'](_0x38fcb7)){const _0x3afaa2=_0x5479bd['containsRange'](_0x38fcb7)&&Gt(this['_model']['schema'],_0x38fcb7['start'],_0x5479bd),_0x4f7313=_0x38fcb7['containsRange'](_0x5479bd)&&Gt(this['_model']['schema'],_0x5479bd['start'],_0x38fcb7);_0x42211c['push']({'suggestion':_0x44de4b,'meta':{'isOwn':_0x24199d==_0x44de4b['author'],'isNextTo':_0x2bc18d,'isInsideObject':_0x3afaa2,'containsRangeInObject':_0x4f7313}}),_0x20cffc=!0x0;break;}}if(_0x20cffc)break;}}return _0x42211c;}['_addSuggestionMarker'](_0x48da1f,_0x498596,_0x5119f3,_0x21811a,_0x296c90){this['_model']['change'](_0x2700bb=>{let _0x576f21='suggestion:'+_0x48da1f+':'+_0x498596+':'+_0x5119f3;_0x296c90&&(_0x576f21=_0x576f21+':'+_0x296c90),_0x2700bb['addMarker'](_0x576f21,{'range':_0x21811a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5db74b){const _0x424d49=_0x5db74b['previous'],_0x578042=_0x5db74b['next'];_0x5db74b['previous']=null,_0x5db74b['next']=null,null!=_0x424d49&&_0x424d49['next']==_0x5db74b&&(_0x424d49['next']=_0x578042),null!=_0x578042&&_0x578042['previous']==_0x5db74b&&(_0x578042['previous']=_0x424d49),'ready'==this['_suggestionState']['get'](_0x5db74b)&&(this['_suggestionState']['set'](_0x5db74b,'removed'),this['fire']('suggestionUnloaded',_0x5db74b,_0x424d49,_0x578042));}['_setSuggestionData'](_0x2d3217){const _0x25cca3=_0x2d3217['id'],_0x23df40=this['addSuggestionData'](_0x2d3217);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1cb8df=this['editor']['plugins']['get']('PendingActions'),_0x4e3d53=_0x23df40['hasComments'],_0x1aaefa=_0x23df40['subType']?_0x23df40['type']+':'+_0x23df40['subType']:_0x23df40['type'],_0x1aef7b=this['editor']['locale'],_0x8a4768=_0x1cb8df['add'](c(_0x1aef7b,'PENDING_ACTION_SUGGESTION')),_0x44dafd={'id':_0x25cca3,'type':_0x1aaefa,'hasComments':_0x4e3d53,'data':_0x2d3217['data']||null,'originalSuggestionId':_0x2d3217['originalSuggestionId']||null,'attributes':_0x23df40['attributes']};this['_adapter']['addSuggestion'](_0x44dafd)['then'](_0x44efab=>{_0x23df40['_saved']=!0x0,_0x1cb8df['remove'](_0x8a4768),_0x44efab&&_0x44efab['createdAt']&&(this['_suggestions']['get'](_0x25cca3)['createdAt']=_0x44efab['createdAt']);})['catch'](_0x191bbd=>{throw _0x1b8704('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x23df40['discard']();}),_0x23df40['stopListening'](),this['_suggestions']['delete'](_0x23df40['id']),this['_suggestionState']['delete'](_0x23df40),_0x191bbd;});}return _0x23df40;}['_isBlockAttribute'](_0x1b1a79){return this['_blockAttributeKeys']['has'](_0x1b1a79);}['_updateSuggestionData'](_0x47a66a,_0x5f0b73){const _0x33d310=this['editor']['plugins']['get']('PendingActions'),_0x363dba=this['getSuggestion'](_0x47a66a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x363dba['_saved']){const _0x20154a=_0x33d310['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x47a66a,_0x5f0b73)['then'](()=>{_0x33d310['remove'](_0x20154a);});}else _0x363dba['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x47a66a,_0x5f0b73);});}}['_getSuggestionData'](_0x57191c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3c0c52('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x57191c);}['_handleNewSuggestionMarker'](_0x4a3ec7){const {id:_0xcad960,type:_0x56d1df,subType:_0x4e2e1c,authorId:_0x226d97}=this['_splitMarkerName'](_0x4a3ec7),_0x2c6af7=this['_suggestions']['get'](_0xcad960)||this['_createSuggestion'](_0x56d1df,_0x4e2e1c,_0xcad960,_0x226d97,{});switch(this['_checkSuggestionCorrectness'](_0x2c6af7,_0x56d1df,_0x4e2e1c,_0x226d97),this['_suggestionState']['get'](_0x2c6af7)){case'notReady':this['_getSuggestionData'](_0xcad960)['then'](_0x3e711f=>{let _0x42bd3e=Promise['resolve']();_0x3e711f['hasComments']&&(_0x42bd3e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xcad960})),_0x42bd3e['then'](()=>{this['addSuggestionData'](_0x3e711f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c6af7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xcad960,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c6af7,'ready'),this['fire']('suggestionLoaded',_0x2c6af7);break;case'ready':this['fire']('suggestionChanged',_0x2c6af7);}return _0x2c6af7['addMarkerName'](_0x4a3ec7),_0x2c6af7;}['_refreshSuggestionsChain'](_0x1d082d){const _0x553bd6=Array['from'](_0x1d082d),_0x4d21f6=_0x553bd6['filter'](_0x34c74a=>'attribute'==_0x34c74a['type']);this['_refreshAttributeSuggestionsChain'](_0x4d21f6);const _0x14f3b1=_0x553bd6['filter'](_0x354e09=>!_0x354e09['isMultiRange']&&'attribute'!=_0x354e09['type']),_0x477235=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd599a8=>!_0xd599a8['isMultiRange']&&'attribute'!=_0xd599a8['type']),_0x1bde5b=_0x477235['filter'](_0x46c896=>!_0x1d082d['has'](_0x46c896)),_0x1810e1=new Map(_0x477235['map'](_0x35f9ef=>[_0x35f9ef,this['_suggestionFactory']['getSuggestionCallback'](_0x35f9ef['type'],_0x35f9ef['subType'],'chain')])),_0x49226e=new Map(_0x477235['map'](_0x3c2b44=>[_0x3c2b44,_0x3c2b44['getFirstRange']()])),_0x215a94=new Set(),_0x3f1a12=new Set();for(let _0x489ebf=0x0;_0x489ebf<_0x14f3b1['length'];_0x489ebf++)_0x104068(_0x14f3b1[_0x489ebf],_0x14f3b1,_0x489ebf+0x1);for(let _0x106a21=0x0;_0x106a21<_0x14f3b1['length'];_0x106a21++)_0x104068(_0x14f3b1[_0x106a21],_0x1bde5b,0x0);const _0x55fce2=new Set();for(let _0x7d85a7=0x0;_0x7d85a7<_0x14f3b1['length'];_0x7d85a7++){const _0x450ada=_0x14f3b1[_0x7d85a7];!_0x3f1a12['has'](_0x450ada)&&_0x450ada['previous']&&(_0x55fce2['add'](_0x450ada['previous']),_0x450ada['previous']['next']===_0x450ada&&(_0x450ada['previous']['next']=null),_0x450ada['previous']=null),!_0x215a94['has'](_0x450ada)&&_0x450ada['next']&&(_0x55fce2['add'](_0x450ada['next']),_0x450ada['next']['previous']===_0x450ada&&(_0x450ada['next']['previous']=null),_0x450ada['next']=null);}function _0x104068(_0x23fb72,_0x139476,_0x3213cf){for(let _0xab329e=_0x3213cf;_0xab329e<_0x139476['length'];_0xab329e++){const _0xa016d1=_0x779850(_0x23fb72,_0x139476[_0xab329e]);_0xa016d1&&(_0xa016d1[0x0]['next']=_0xa016d1[0x1],_0xa016d1[0x1]['previous']=_0xa016d1[0x0],_0x215a94['add'](_0xa016d1[0x0]),_0x3f1a12['add'](_0xa016d1[0x1]));}}function _0x779850(_0x41239c,_0x4bd732){if(_0x41239c['author']['id']!==_0x4bd732['author']['id'])return null;const _0x4e70d8=_0x1810e1['get'](_0x41239c)(_0x41239c,_0x4bd732,_0x49226e['get'](_0x41239c),_0x49226e['get'](_0x4bd732));if(!_0x4e70d8)return null;return _0x1810e1['get'](_0x4bd732)(_0x41239c,_0x4bd732,_0x49226e['get'](_0x41239c),_0x49226e['get'](_0x4bd732))?_0x4e70d8[0x1]['commentThread']&&_0x4e70d8[0x1]['commentThread']['length']?null:_0x4e70d8:null;}_0x55fce2['size']&&this['_refreshSuggestionsChain'](_0x55fce2);}['_refreshAttributeSuggestionsChain'](_0x16813e){if(0x0==_0x16813e['length'])return;const _0x5af4d6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4790bc=>'attribute'==_0x4790bc['type']&&_0x4790bc['_isDataLoaded']),_0xa63d7f=[],_0x3d5c70=new Map();for(const _0x1ce72c of _0x5af4d6){const _0x340a42=_0x1e8182(_0x1ce72c['attributes']);_0x3d5c70['has'](_0x340a42)||(_0x3d5c70['set'](_0x340a42,_0xa63d7f['length']),_0xa63d7f['push']([]));const _0x35f20d=_0x3d5c70['get'](_0x340a42);_0xa63d7f[_0x35f20d]['push'](_0x1ce72c);}!(function(){_0xa63d7f['sort']((_0x80673b,_0x3477c7)=>{const _0xfbd68b=_0x80673b[0x0]['createdAt'],_0x56733d=_0x3477c7[0x0]['createdAt'];return _0xfbd68b==_0x56733d?_0x80673b[0x0]['attributes']['groupId']<_0x3477c7[0x0]['attributes']['groupId']?-0x1:0x1:_0xfbd68b<_0x56733d?-0x1:0x1;});for(const _0x48ecfb of _0xa63d7f)_0x48ecfb['sort']((_0x3f369d,_0xcc9ab9)=>_0x3f369d['id']<_0xcc9ab9['id']?-0x1:0x1);}());for(let _0x24eb60=0x0;_0x24eb60<_0xa63d7f['length'];_0x24eb60++){if(0x0==_0xa63d7f[_0x24eb60]['length'])continue;const _0x2de6df=[];for(let _0x102ecd=_0x24eb60+0x1;_0x102ecd<_0xa63d7f['length'];_0x102ecd++)0x0!=_0xa63d7f[_0x102ecd]['length']&&_0x3279f6(_0xa63d7f[_0x24eb60],_0xa63d7f[_0x102ecd])&&_0x2de6df['push'](_0x102ecd);for(const _0x4b0fda of _0x2de6df)_0xa63d7f[_0x24eb60]=_0xa63d7f[_0x24eb60]['concat'](_0xa63d7f[_0x4b0fda]),_0xa63d7f[_0x4b0fda]=[];}for(const _0x386593 of _0xa63d7f)for(let _0x116239=0x0;_0x116239<_0x386593['length'];_0x116239++){const _0x3d686d=_0x386593[_0x116239+0x1]||null;_0x386593[_0x116239]['next']!==_0x3d686d&&(_0x386593[_0x116239]['next']=_0x3d686d);}for(const _0x1d319b of _0xa63d7f)for(let _0x322be6=0x0;_0x322be6<_0x1d319b['length'];_0x322be6++){const _0x3bda4d=_0x1d319b[_0x322be6-0x1]||null;_0x1d319b[_0x322be6]['previous']!==_0x3bda4d&&(_0x1d319b[_0x322be6]['previous']=_0x3bda4d);}function _0x3279f6(_0x3c5b81,_0x402a98){if(_0x3c5b81[0x0]['attributes']['groupId']!==_0x402a98[0x0]['attributes']['groupId']&&_0x3c5b81[0x0]['author']!==_0x402a98[0x0]['author'])return!0x1;if(!function(_0x3f849d,_0x3d4b7f){if(!_0x3f849d['hasComments']&&!_0x3d4b7f['hasComments'])return!0x0;if(_0x3f849d['hasComments']&&_0x3d4b7f['hasComments'])return!0x1;if(_0x3f849d['hasComments']&&_0x3d4b7f['createdAt']<_0x3f849d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3d4b7f['hasComments']&&_0x3f849d['createdAt']<_0x3d4b7f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c5b81[0x0],_0x402a98[0x0]))return!0x1;const _0x43f5b8=Ft(_0x3c5b81[0x0]['attributes'],'groupId'),_0x2d8c1d=Ft(_0x402a98[0x0]['attributes'],'groupId');if(!_0xf2f0b6(_0x43f5b8,_0x2d8c1d))return!0x1;return!!_0x3c5b81['every'](_0x2adf2b=>_0x402a98['some'](_0x54ef2f=>_0x2adf2b['getFirstRange']()['isEqual'](_0x54ef2f['getFirstRange']())))&&_0x402a98['every'](_0x4a8e38=>_0x3c5b81['some'](_0x8fef59=>_0x4a8e38['getFirstRange']()['isEqual'](_0x8fef59['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5b654f){const _0x1ffefb=Array['from'](_0x5b654f),_0x34fe83=this['getSuggestions']({'skipNotAttached':!0x0}),_0x6ff8db=_0x34fe83['filter'](_0x29c8cb=>!_0x5b654f['has'](_0x29c8cb)),_0x510059=new Map(_0x1ffefb['map'](_0x5f2c80=>[_0x5f2c80,this['_suggestionFactory']['getSuggestionCallback'](_0x5f2c80['type'],_0x5f2c80['subType'],'join')])),_0x285367=new Map(_0x34fe83['map'](_0x38ed98=>[_0x38ed98,_0x38ed98['getRanges']()]));for(let _0xbcfdc1=0x0;_0xbcfdc1<_0x1ffefb['length'];_0xbcfdc1++){if(_0x3ef8d6(this,_0x1ffefb[_0xbcfdc1],_0x1ffefb,_0xbcfdc1+0x1))return!0x0;}for(let _0x39512e=0x0;_0x39512e<_0x1ffefb['length'];_0x39512e++){if(_0x3ef8d6(this,_0x1ffefb[_0x39512e],_0x6ff8db,0x0))return!0x0;}return!0x1;function _0x3ef8d6(_0x3003a1,_0x34f68d,_0x1759ea,_0x3ddea7){for(let _0x5043fb=_0x3ddea7;_0x5043fb<_0x1759ea['length'];_0x5043fb++){const _0x5b77b3=_0x1759ea[_0x5043fb];if(_0x5b77b3['type']!==_0x34f68d['type']||_0x5b77b3['author']['id']!==_0x34f68d['author']['id']||_0x5b77b3['subType']!==_0x34f68d['subType'])continue;if(!Qt(_0x34f68d,_0x5b77b3))continue;if('attribute'==_0x34f68d['type']&&_0x34f68d['data']['oldValue']!=_0x5b77b3['data']['oldValue'])continue;if('attribute'==_0x34f68d['type']&&_0x3003a1['_isBlockAttribute'](_0x34f68d['data']['key']))continue;if('formatBlock'==_0x34f68d['type']){const _0x2b13a3=_0x3003a1['editor']['model'],_0x453633=_0x34f68d['getContainedElement']();if(_0x453633&&(_0x2b13a3['schema']['isObject'](_0x453633)||_0x2b13a3['schema']['isLimit'](_0x453633)))continue;}const _0x54f48e=_0x510059['get'](_0x34f68d),_0x526dfb=_0x285367['get'](_0x34f68d),_0x11aa19=_0x285367['get'](_0x5b77b3),_0x5c9975=_0x34f68d['commentThread']&&_0x34f68d['commentThread']['length'],_0x528f54=_0x5b77b3['commentThread']&&_0x5b77b3['commentThread']['length'];if(!_0x5c9975&&_0x54f48e(_0x11aa19,_0x526dfb))return _0x3003a1['_joinSuggestions'](_0x5b77b3,_0x34f68d),_0x285367['delete'](_0x34f68d),!0x0;if(!_0x528f54&&_0x54f48e(_0x526dfb,_0x11aa19))return _0x3003a1['_joinSuggestions'](_0x34f68d,_0x5b77b3),_0x285367['delete'](_0x5b77b3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x134160,_0x2fea00){if(_0x134160['isMultiRange']){for(const _0x5a0e08 of _0x2fea00['getRanges']())_0x134160['addRange'](_0x5a0e08);}else{const _0x3065bd=_0x2fea00['getFirstRange']()['end'];this['_setSuggestionRange'](_0x134160,this['_model']['createRange'](_0x134160['getFirstRange']()['start'],_0x3065bd));}_0x2fea00['removeMarkers']();}['_getMarkerAnnouncementText'](_0x118736,_0x3d1e96,_0x333005){const _0x4560de=_0x118736['startsWith']('format')||_0x118736['startsWith']('attribute')?'FORMATTING':_0x118736['toUpperCase']();return c(this['editor']['locale'],_0x3d1e96+'_'+_0x4560de+'_SUGGESTION_ANNOUNCEMENT',_0x333005);}['_initAriaMarkerChangeAnnouncements'](){const _0x39b8d3=this['editor'];if(!_0x39b8d3['ui'])return;const {ariaLiveAnnouncer:_0x11e88}=_0x39b8d3['ui'];_0x478cce(this['_model'],({left:_0x3d65f2,entered:_0x33c48d})=>{for(const _0x43394c of _0x3d65f2){const {group:_0x454c79,type:_0x3235f9}=this['_splitMarkerName'](_0x43394c['name']);if('suggestion'===_0x454c79){_0x11e88['announce'](this['_getMarkerAnnouncementText'](_0x3235f9,'LEAVE'));break;}}for(const _0x195e76 of _0x33c48d){const {group:_0x2029af,type:_0x5b5be8}=this['_splitMarkerName'](_0x195e76['name']);if('suggestion'===_0x2029af){_0x11e88['announce'](this['_getMarkerAnnouncementText'](_0x5b5be8,'ENTER',_0x4f987c(_0x44e7fc)));break;}}});}['_processAttributeChanges'](_0xc6e77c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x41d602=this['editor'],_0x128cd3=_0x41d602['model']['document']['differ']['getChanges']();if(0x0==_0x128cd3['length'])return!0x1;const _0x1ab879=[],_0x13473b=_0x128cd3['filter'](_0x26ef9a=>'attribute'==_0x26ef9a['type']),_0x5939b0=_0x128cd3['filter'](_0x536c1d=>'insert'==_0x536c1d['type']&&'$text'!=_0x536c1d['name']),_0x56056f=_0x128cd3['filter'](_0x4f6212=>'remove'==_0x4f6212['type']&&'$text'!=_0x4f6212['name']);for(const _0x4a5a4e of _0x13473b)_0x1ab879['push']({'key':_0x4a5a4e['attributeKey'],'newValue':_0x4a5a4e['attributeNewValue'],'oldValue':_0x4a5a4e['attributeOldValue'],'range':qt(_0x4a5a4e['range'],_0x41d602['model'])});for(const _0x2fd68f of _0x5939b0){const _0x3d94df=_0x56056f['find'](_0x2618fc=>_0x2618fc['position']['isEqual'](_0x2fd68f['position']));_0x3d94df&&_0x1ab879['push']({'key':u,'newValue':_0x2fd68f['name'],'oldValue':_0x3d94df['name'],'range':_0x41d602['model']['createRangeOn'](_0x2fd68f['position']['nodeAfter'])});}return 0x0!=_0x1ab879['length']&&this['_reduceExistingSuggestions'](_0xc6e77c,_0x1ab879);}['_processAttributeSuggestions'](_0x8c5b59){let _0x466a86=!0x1;const _0x563639=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e5475=>_0x3e5475['data']['newRange']&&_0x3e5475['name']['startsWith']('suggestion:attribute:'));for(const _0x1ffd6e of _0x563639){const {subType:_0x53fcfd,id:_0x14cf47}=this['_splitMarkerName'](_0x1ffd6e['name']),_0x279ece=_0x53fcfd['split']('|')[0x0];for(const _0x44e2e3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x44e2e3['id']!=_0x14cf47&&'attribute'==_0x44e2e3['type']&&_0x44e2e3['data']&&_0x44e2e3['data']['key']==_0x279ece&&_0x44e2e3['getFirstRange']()['isIntersecting'](_0x1ffd6e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x44e2e3,_0x1ffd6e['data']['newRange'],_0x8c5b59),_0x466a86=!0x0);}return _0x466a86;}['_recordAttributeChanges'](_0x2d75b4){this['_recordAttributeSuggestions']=!0x0,_0x2d75b4();}['_isRegisteredAttribute'](_0x1ec05e){const _0x1a5446=this['_isBlockAttribute'](_0x1ec05e),_0x350fe3=this['_inlineAttributeKeys']['has'](_0x1ec05e);return _0x1a5446||_0x350fe3;}['_reduceExistingSuggestions'](_0xe42747,_0x5c0d01){if(0x0==_0x5c0d01['length'])return!0x1;let _0x341cea=!0x1;for(const _0x412974 of _0x5c0d01){const _0x2d631c=this['_findSuggestions'](_0x412974['range'],'attribute')['filter'](_0x591261=>!_0x591261['meta']['isNextTo'])['map'](_0x55b0c2=>_0x55b0c2['suggestion']),_0x5b0545=_0x1e8182({'newValue':_0x412974['newValue']});_0x2d631c['filter'](_0x18bc13=>{const [_0x1277d6,_0xf9429]=_0x18bc13['subType']['split']('|');return _0x1277d6==_0x412974['key']&&_0xf9429!=_0x5b0545;})['forEach'](_0x1b30cc=>{this['_reduceSuggestionAttributeRange'](_0x1b30cc,_0x412974['range'],_0xe42747),_0x341cea=!0x0;});}return _0x341cea;}['_reduceSuggestionAttributeRange'](_0x1fddf5,_0x413375,_0x3ee167){const _0x205f09=_0x1fddf5['getFirstRange']()['getDifference'](_0x413375);0x0!==_0x205f09['length']?0x1!==_0x205f09['length']?this['_breakSuggestionMarker'](_0x1fddf5,_0x413375['start'],_0x413375['end']):this['_setSuggestionRange'](_0x1fddf5,_0x205f09[0x0]):_0x3ee167['removeMarker'](_0x1fddf5['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3174e8){this['_editor']=_0x3174e8,this['_model']=_0x3174e8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2bb2b6,_0xd603fe,_0x2abc8b,_0x43fe24,_0x18a154,_0x59bcc1){return new o(this['_model'],{'type':_0x2bb2b6,'subType':_0xd603fe,'id':_0x2abc8b,'author':_0x43fe24,'creator':_0x43fe24,'attributes':_0x18a154,'onAttributesChange':_0x59bcc1,'onAccept':(..._0x1b1c2f)=>this['getSuggestionCallback'](_0x2bb2b6,_0xd603fe,'accept')(..._0x1b1c2f),'onDiscard':(..._0x1bc9f3)=>this['getSuggestionCallback'](_0x2bb2b6,_0xd603fe,'discard')(..._0x1bc9f3)});}['registerCustomCallback'](_0x426385,_0x255710,_0x503cf4,_0x2858e7){const _0xc80105=_0x426385+':'+_0x255710+':'+_0x503cf4;this['_customCallbacks']['set'](_0xc80105,_0x2858e7);}['getSuggestionCallback'](_0x5dc2af,_0x531224,_0x597775){const _0x11faf0=_0x5dc2af+':'+_0x531224+':'+_0x597775;return this['_customCallbacks']['get'](_0x11faf0)||this['_defaultCallbacks']['get'](_0x5dc2af+':'+_0x597775);}['_registerDefaultCallbacks'](){const _0x4d0c10=()=>!0x1,_0x20e18e=_0x518097=>{_0x518097['sort']((_0x4768e9,_0x2ddc95)=>_0x4768e9['start']['isBefore'](_0x2ddc95['start'])?0x1:-0x1),this['_model']['change'](_0x581d1a=>{for(const _0x331141 of _0x518097){let _0x106778;_0x106778=_0x331141['end']['isAtEnd']&&_0x331141['end']['parent']==_0x331141['start']['nodeAfter']?_0x581d1a['createSelection'](_0x331141['start']['nodeAfter'],'on'):_0x581d1a['createSelection'](_0x331141),this['_model']['deleteContent'](_0x106778,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x43773c=(_0x370720,_0x594972)=>{_0x594972&&this['_model']['change'](_0x379898=>{const {commandName:_0x133786,commandParams:_0x408b0b=[]}=_0x594972,_0x3519c1=_0x370720['map'](_0x25bdad=>(Lt(_0x25bdad)&&(_0x25bdad=this['_model']['createRange'](_0x25bdad['end'])),_0x25bdad))['filter'](_0x245c64=>'$graveyard'!==_0x245c64['root']['rootName']);if(_0x3519c1['length']<0x1)return;const _0x4f375a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x23f7ca=>_0x14a494['fromRange'](_0x23f7ca));_0x379898['setSelection'](_0x3519c1);for(const _0x4fb6f2 of this['_editor']['commands']['commands']())_0x4fb6f2['refresh']();_0x408b0b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x133786,..._0x408b0b);const _0x4b12ae=_0x4f375a['filter'](_0xbf65c1=>'$graveyard'!=_0xbf65c1['root']['rootName']);_0x4b12ae['length']>0x0&&_0x379898['setSelection'](_0x4b12ae);for(const _0x3604bc of _0x4f375a)_0x3604bc['detach']();});},_0x1eeb06=(_0x4fbbca,_0xdb9ce8)=>0x1==_0x4fbbca['length']&&0x1==_0xdb9ce8['length']&&_0x4fbbca[0x0]['end']['isEqual'](_0xdb9ce8[0x0]['start']),_0x20e463=(_0x3c1c04,_0x209485,_0x5bdd6e,_0xeab4b5)=>Wt(_0x3c1c04,_0x209485,_0x5bdd6e,_0xeab4b5)?[_0x3c1c04,_0x209485]:Wt(_0x209485,_0x3c1c04,_0xeab4b5,_0x5bdd6e)?[_0x209485,_0x3c1c04]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d0c10),this['_defaultCallbacks']['set']('insertion:discard',_0x20e18e),this['_defaultCallbacks']['set']('insertion:join',_0x1eeb06),this['_defaultCallbacks']['set']('insertion:chain',_0x20e463),this['_defaultCallbacks']['set']('deletion:accept',_0x20e18e),this['_defaultCallbacks']['set']('deletion:discard',_0x4d0c10),this['_defaultCallbacks']['set']('deletion:join',_0x1eeb06),this['_defaultCallbacks']['set']('deletion:chain',_0x20e463),this['_defaultCallbacks']['set']('formatInline:accept',_0x43773c),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d0c10),this['_defaultCallbacks']['set']('formatInline:join',_0x1eeb06),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d0c10),this['_defaultCallbacks']['set']('formatBlock:accept',_0x43773c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d0c10),this['_defaultCallbacks']['set']('formatBlock:join',_0x1eeb06),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d0c10),this['_defaultCallbacks']['set']('attribute:accept',_0x4d0c10),this['_defaultCallbacks']['set']('attribute:discard',(_0x506213,_0x24f653)=>{if(!_0x24f653)return;const _0x10391f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x267482=>{if(_0x24f653['key']==u)for(const _0x4cf365 of _0x506213){const _0x11c3d6=_0x4cf365['start']['nodeAfter'],_0x1bb86d=_0x24f653['oldValue'];_0x267482['rename'](_0x11c3d6,_0x1bb86d);}else{if(_0x10391f['_isBlockAttribute'](_0x24f653['key'])){for(const _0x4b7358 of _0x506213)void 0x0!==_0x24f653['oldValue']?_0x267482['setAttribute'](_0x24f653['key'],_0x24f653['oldValue'],_0x4b7358['start']['nodeAfter']):_0x267482['removeAttribute'](_0x24f653['key'],_0x4b7358['start']['nodeAfter']);}else{for(const _0xb8c37d of _0x506213)_0x24f653['oldValue']?_0x267482['setAttribute'](_0x24f653['key'],_0x24f653['oldValue'],_0xb8c37d):_0x267482['removeAttribute'](_0x24f653['key'],_0xb8c37d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1eeb06);}}function Gt(_0x1d6575,_0x542ae5,_0x5a0d73){for(const _0x233242 of _0x542ae5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x233242['root']==_0x233242)return!0x1;if(!_0x5a0d73['containsItem'](_0x233242))return!0x1;if(_0x1d6575['isObject'](_0x233242)||_0x1d6575['isLimit'](_0x233242))return!0x0;}return!0x1;}function Lt(_0x27d315){return _0x27d315['end']['parent']==_0x27d315['start']['nodeAfter']&&_0x27d315['end']['isAtStart'];}function Jt(_0x1c7973,_0x14529e,_0x28d91f,_0x452eca){const _0x19997f=_0x5cee09=>!_0x5cee09['item']['is']('$textProxy')&&!_0x452eca['isObject'](_0x5cee09['item']),_0x1ab591=_0x1c7973['start']['getLastMatchingPosition'](_0x19997f),_0x3dbdcb=_0x1c7973['end']['getLastMatchingPosition'](_0x19997f,{'direction':'backward'});return(!_0x1c7973['start']['isEqual'](_0x1ab591)||!_0x1c7973['end']['isEqual'](_0x3dbdcb))&&(_0x1ab591['isBefore'](_0x3dbdcb)?_0x28d91f['updateMarker'](_0x14529e,{'range':_0x28d91f['createRange'](_0x1ab591,_0x3dbdcb)}):_0x28d91f['removeMarker'](_0x14529e),!0x0);}function Kt(_0x5091ab){return _0x1e8182(_0x5091ab);}function Ht(_0x4135a3){const _0x5201ec=_0x4135a3['start']['nodeAfter'];return _0x5201ec&&_0x5201ec['is']('element');}function qt(_0x4c379b,_0x4217d7){return null==_0x4c379b['end']['nodeBefore']&&_0x4c379b['end']['parent']==_0x4c379b['start']['nodeAfter']?zt(_0x4c379b['start']['nodeAfter'],_0x4217d7):_0x4c379b;}function zt(_0x306dd6,_0x48e086){const _0x573008=_0x48e086['schema']['isObject'](_0x306dd6)||_0x48e086['schema']['isSelectable'](_0x306dd6);return _0x48e086['createRange'](_0x48e086['createPositionAt'](_0x306dd6,'before'),_0x573008?_0x48e086['createPositionAfter'](_0x306dd6):_0x48e086['createPositionAt'](_0x306dd6,'end'));}function Wt(_0x495382,_0x2e9a50,_0x2dfa1f,_0x41c7d7){return!!Qt(_0x495382,_0x2e9a50)&&_0x2dfa1f['end']['isEqual'](_0x41c7d7['start']);}function Qt(_0x14fb8,_0x3335ad){if(!_0x14fb8['_isDataLoaded']||!_0x3335ad['_isDataLoaded'])return!0x1;const _0x5c14ac=new Set(Object['keys'](_0x14fb8['attributes'])),_0xc5a9cd=new Set(Object['keys'](_0x3335ad['attributes']));if(_0x5c14ac['delete']('groupId'),_0xc5a9cd['delete']('groupId'),0x0==_0x5c14ac['size']&&0x0==_0xc5a9cd['size'])return!0x0;if(_0x5c14ac['size']!=_0xc5a9cd['size'])return!0x1;const _0x1be13d={..._0x14fb8['attributes']},_0xd4fb60={..._0x3335ad['attributes']};return delete _0x1be13d['groupId'],delete _0xd4fb60['groupId'],JSON['stringify'](_0x1be13d)==JSON['stringify'](_0xd4fb60);}function Xt(_0x262bdd,_0x523dd1){const _0x3e0ec9=Yt(_0x262bdd['attributes']),_0x450fc4=Yt(_0x523dd1);if(!_0x262bdd['_isDataLoaded'])return!0x1;for(const _0x1226d5 of Object['keys'](_0x450fc4))if(!_0xf2f0b6(_0x3e0ec9[_0x1226d5],_0x450fc4[_0x1226d5]))return!0x1;return!0x0;}function Yt(_0x20505b){const _0x2952ec=Object['assign']({},_0x20505b);return delete _0x2952ec['skipNestingCheck'],delete _0x2952ec['tablePasteChainId'],_0x2952ec;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1a411a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ab228,_0x4b33ba,_0x92811e,_0x49fbdf){super(),this['model']=_0x4b33ba,this['view']=_0x92811e,this['commentThreadController']=_0x49fbdf,this['_editor']=_0x5ab228,this['_acceptCommand']=_0x5ab228['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ab228['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x234683,_0x4758a5)=>_0x234683||_0x4758a5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2fc791=>_0x2fc791&&this['_editor']['model']['canEditAt'](_0x4b33ba['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f580a=>_0x4f580a&&this['_editor']['model']['canEditAt'](_0x4b33ba['getRanges']())),this['_pendingAction']=null,_0x92811e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x92811e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x92811e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x92811e,'change:isDirty',()=>{_0x92811e['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 _0x5c4c37=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5c4c37);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xecdda6{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1d299e,_0x1b137f,_0x5c043b,_0x3f648a){super(_0x1d299e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x41a08c(_0x1d299e,c(_0x1d299e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1b137f['authoredAt']),this['bind']('authoredAt')['to'](_0x1b137f),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',_0x1b137f,'authoredAt',this,'descriptionParts',(_0x5a6f1b,_0x39afc6,_0x500cad)=>{const _0x12d6a3=_0x500cad['map'](_0x484e8c=>ls(_0x484e8c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5a6f1b-0x1,_0x1b137f['author']['name'],_0x39afc6?_0x3f648a['formatDateTime'](_0x39afc6):'',new DOMParser()['parseFromString'](_0x12d6a3,'text/html')['body']['textContent']]);}),this['focusables']=new _0x20a381(),this['focusTracker']=new _0x2147c3(),this['keystrokes']=new _0xa821b(),this['focusCycler']=new _0x5ddfd6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x359306=>_0x359306['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1b137f,this['_localUser']=_0x5c043b,this['_config']=_0x3f648a,_0x3f648a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x463c62(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x504163}=this['_config'];this['commentsListView']=new _0x504163(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',_0x5c7822=>_0x5c7822+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x313ca1,_0x4e2f5d)=>_0x313ca1||!!_0x4e2f5d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4f00f0}=this['_config'],_0x3e57d6=new _0x4f00f0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b02fd=_0x3e57d6['commentInputView'];return _0x3e57d6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b02fd,'value',(_0x35844d,_0x47cbbc,_0x4a4f8c)=>!!_0x4a4f8c||_0x35844d&&!_0x47cbbc),_0x4b02fd['on']('submit',(_0x457db2,_0x57fcce)=>{this['fire']('addComment',_0x57fcce),_0x4b02fd['editor']['setData']('');}),_0x4b02fd['on']('cancel',()=>this['focus']()),_0x4b02fd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3e57d6;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x42a3c9,_0x4f787f,_0x391165,_0x8abfe5){super(_0x42a3c9,_0x4f787f,_0x391165,_0x8abfe5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x137c70=>_0x137c70&&_0x137c70[0x0]?_0x137c70[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x36959a,_0x17fc5f)=>{let _0xe7a03='';for(const _0x515dba of _0x36959a)_0xe7a03+='<p>'+ls(_0x515dba['content'],_0x515dba['color'])+'</p>';return _0x17fc5f?_0xe7a03:ti(_0xe7a03,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x8abfe5['SuggestionView'](_0x42a3c9,_0x4f787f,{'formatDateTime':_0x8abfe5['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 _0x77febe=this['bindTemplate'],_0x25937a=[this['suggestionView']];return this['commentsListView']&&_0x25937a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x25937a['push'](this['commentThreadInputView']),_0x25937a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x77febe['if']('isActive','ck-suggestion-wrapper--active'),_0x77febe['to']('type',_0x4cc484=>'ck-suggestion-'+_0x4cc484),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':_0x77febe['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x25937a};}['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 _0xecdda6{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5dfbeb,_0x15d5be,_0x7ebada){super(_0x5dfbeb),this['_model']=_0x15d5be,this['_config']=_0x7ebada,this['set']('description',''),this['bind']('authoredAt')['to'](_0x15d5be),this['acceptButton']=this['_createButton'](c(_0x5dfbeb,'Accept\x20suggestion'),_0xcba04c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x5dfbeb,'Discard\x20suggestion'),_0x1374b9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x41c98a(_0x5dfbeb,_0x15d5be['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x20a381([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2147c3(),this['keystrokes']=new _0xa821b(),this['focusCycler']=new _0x5ddfd6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x32a7c4=>_0x32a7c4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5b20b4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5b20b4['innerHTML']=this['description'],this['on']('change:description',(_0xdcc3db,_0x59e6e7,_0x51fa19)=>{_0x5b20b4['innerHTML']=_0x51fa19;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x13b755=this['bindTemplate'],_0xbde44e=[{'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':_0x13b755['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x13b755['to']('authoredAt',_0xab1f3b=>this['_config']['formatDateTime'](_0xab1f3b))}]}]},{'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']&&_0xbde44e['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':_0xbde44e}]};}['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'](_0x4a41a1,_0x15d446,_0x24dce0,_0x51738e,_0x533702){const _0x510b2b=new _0x4a7840(this['locale']);return _0x510b2b['set']({'label':_0x4a41a1,'icon':_0x15d446,'tooltip':!0x0,'tooltipPosition':_0x533702}),_0x510b2b['extendTemplate']({'attributes':{'class':_0x24dce0}}),_0x510b2b['on']('execute',()=>{this['fire'](_0x51738e,this['_model']['id']);}),_0x510b2b;}['_setupKeyboardNavigation'](){const _0x10b8b5=this['element'];this['keystrokes']['listenTo'](_0x10b8b5);for(const _0x54a114 of this['focusables'])this['focusTracker']['add'](_0x54a114['element']),this['keystrokes']['listenTo'](_0x54a114['element']);this['keystrokes']['set']('enter',(_0x4cf848,_0x33cdf1)=>{_0x10b8b5===_0x4cf848['target']&&(this['focusCycler']['focusFirst'](),_0x33cdf1());}),this['keystrokes']['set']('esc',(_0x21592f,_0x1d447f)=>{_0x10b8b5!==_0x21592f['target']&&(this['focus'](),_0x1d447f());});}}class d extends _0x550ef0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x43132b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e852a){super(_0x4e852a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x36e4be=this['editor']['config'];_0x36e4be['define']('trackChanges.SuggestionThreadView',fe),_0x36e4be['define']('trackChanges.SuggestionView',we),_0x36e4be['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x36e4be['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1fb74f,_0x3f3b23){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x13c788,_0x400b75]of this['_handleControllerBuffer']){const _0x39489f=this['_suggestionToController']['has'](_0x13c788);_0x39489f||_0x400b75?_0x39489f&&_0x400b75&&this['_destroyController'](_0x13c788):this['_initializeController'](_0x13c788);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1fb74f,_0x3f3b23);}['init'](){const _0x45c126=this['editor'],_0x19d609=_0x45c126['plugins']['get']('TrackChangesEditing'),_0x256e1f=_0x45c126['plugins']['get']('Annotations'),_0x40d7da=_0x45c126['plugins']['get']('EditorAnnotations'),_0x5576f2=_0x45c126['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x40d7da['addSourceCollector'](()=>{const _0x2bd32b=[];for(const [_0x49dd8d,_0x58c38b]of Array['from'](this['_suggestionToController'])){const _0x942585=_0x49dd8d['getAllAdjacentSuggestions'](),_0x1bf8e9=[];for(const _0x1458e5 of _0x942585){if(!_0x1458e5['isInContent'])continue;if(_0x1458e5['isMultiRange']){_0x1bf8e9['push'](..._0x1458e5['getRanges']());continue;}const _0x3b5c53=_0x1458e5['getFirstRange']();if(_0x1bf8e9['length']>0x0){const _0x5d7589=_0x1bf8e9[0x0]['getJoined'](_0x3b5c53);if(_0x5d7589){_0x1bf8e9[0x0]=_0x5d7589;continue;}}_0x1bf8e9['push'](_0x3b5c53);}_0x2bd32b['push']([_0x58c38b['view'],_0x1bf8e9]);}return _0x2bd32b;}),this['listenTo'](_0x19d609,'suggestionLoaded',(_0x55538e,_0x9ccadc)=>{this['listenTo'](_0x9ccadc,'change:previous',(_0x556b8a,_0x3af370,_0x156810,_0x240136)=>{_0x9ccadc['isInContent']&&(null==_0x156810?(this['_updateController'](_0x240136['head']),this['_handleSuggestionControllerDelayed'](_0x9ccadc,!0x1)):(this['_updateController'](_0x156810['head']),null==_0x240136&&this['_handleSuggestionControllerDelayed'](_0x9ccadc,!0x0)));}),null!==_0x9ccadc['previous']?this['_updateController'](_0x9ccadc['head']):this['_handleSuggestionControllerDelayed'](_0x9ccadc,!0x1);}),this['listenTo'](_0x19d609,'suggestionUnloaded',(_0x5d4683,_0x59b730,_0x4eef18)=>{this['stopListening'](_0x59b730,'change:previous'),this['_handleControllerBuffer']['delete'](_0x59b730),this['_suggestionToController']['has'](_0x59b730)&&this['_destroyController'](_0x59b730),_0x4eef18&&this['_updateController'](_0x4eef18['head']);}),this['listenTo'](_0x19d609,'suggestionChanged',(_0x4a52e0,_0x4b3710)=>{this['_updateController'](_0x4b3710);}),this['listenTo'](_0x256e1f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5576f2,'addComment',(_0x21eea2,{threadId:_0x196c11,isFromAdapter:_0x374bc5})=>{if(_0x374bc5||!_0x19d609['hasSuggestion'](_0x196c11))return;const _0x15fc35=_0x19d609['getSuggestion'](_0x196c11);this['_suggestionToController']['get'](_0x15fc35)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x137c8e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x33551d;for(const _0x44afc6 in _0x137c8e){const _0x427d7e=_0x44afc6,_0x5f3f01=_0x137c8e[_0x427d7e];if('trackChangesLicenseKeyValid'==_0x5f3f01||'trackChangesLicenseKeyInvalid'==_0x5f3f01||'trackChangesLicenseKeyExpired'==_0x5f3f01||'trackChangesLicenseKeyDomainLimit'==_0x5f3f01||'trackChangesLicenseKeyNotAllowed'==_0x5f3f01||'trackChangesLicenseKeyEvaluationLimit'==_0x5f3f01||'trackChangesLicenseKeyTrialLimit'==_0x5f3f01||'trackChangesLicenseKeyUsageLimit'==_0x5f3f01){delete _0x137c8e[_0x427d7e],_0x33551d=_0x5f3f01,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x33551d&&_0x137c8e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x33551d&&_0x137c8e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x33551d&&_0x137c8e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x33551d&&_0x137c8e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x33551d&&_0x137c8e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x33551d&&_0x137c8e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x33551d&&_0x137c8e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1eeb3a=this['editor']['plugins']['get']('Annotations'),_0x435998=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37b973=Array['from'](_0x1eeb3a['activeAnnotations'],_0x5e4245=>_0x5e4245['innerView'])['filter'](_0x436f79=>this['_viewToController']['has'](_0x436f79)),_0x14cf28=[];for(const _0x2468b4 of _0x37b973){const _0x15c03f=this['_viewToController']['get'](_0x2468b4)['model']['getAllAdjacentSuggestions']();_0x14cf28['push'](..._0x15c03f['reduce']((_0x33e66f,_0x3eb2dd)=>[..._0x33e66f,..._0x3eb2dd['getMarkerNames']()],[]));}_0x435998['activeMarkers']=_0x14cf28;}['_addUIComponentsToFactory'](){const _0x5c8706=this['editor'],_0x3091ca=_0x5c8706['locale'],_0x3e4e58=c(_0x3091ca,'Track\x20changes'),_0x58035a=new _0x1605e5([{'type':'switchbutton','model':new _0x379201({'withText':!0x0,'isToggleable':!0x0,'label':_0x3e4e58,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5c8706['plugins']['has']('TrackChangesPreview')&&_0x58035a['addMany']([{'type':'separator'},{'type':'button','model':new _0x379201({'withText':!0x0,'label':c(_0x3091ca,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x132084 of _0x58035a)if(ke(_0x132084)){const _0x1c0f95=_0x5c8706['commands']['get'](_0x132084['model']['commandName']);_0x132084['model']['bind']('isOn','isEnabled')['to'](_0x1c0f95,'value','isEnabled');}_0x5c8706['ui']['componentFactory']['add']('trackChanges',_0x25b6ab=>this['_createToolbarButton'](_0x25b6ab,_0x58035a,_0x3e4e58)),_0x5c8706['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5c6413=>this['_createMenuBarMenu'](_0x5c6413,_0x58035a,_0x3e4e58));}['_createToolbarButton'](_0x55f108,_0x492cd0,_0x1f6113){const _0x386bf7=_0x18bac6(_0x55f108,_0x291d33),_0x4d496c=this['editor']['commands']['get']('trackChanges');_0x386bf7['buttonView']['set']({'tooltip':_0x1f6113,'label':_0x1f6113,'icon':_0x27213d}),_0x386bf7['buttonView']['bind']('isOn')['to'](_0x4d496c,'value'),_0x386bf7['buttonView']['on']('execute',()=>{_0x4d496c['execute'](),this['editor']['editing']['view']['focus']();}),_0x318075(_0x386bf7,_0x492cd0,{'role':'menu'});const _0x1c6a71=[];for(const _0xd7d9f1 of _0x492cd0)ke(_0xd7d9f1)&&_0x1c6a71['push'](this['editor']['commands']['get'](_0xd7d9f1['model']['commandName']));const _0x56b709=_0x386bf7['buttonView'];return _0x56b709['actionView']['unbind']('isEnabled'),_0x56b709['arrowView']['unbind']('isEnabled'),_0x56b709['actionView']['bind']('isEnabled')['to'](_0x4d496c,'isEnabled'),_0x56b709['arrowView']['bind']('isEnabled')['toMany'](_0x1c6a71,'isEnabled',(..._0x7a6f26)=>_0x7a6f26['some'](_0x2637ba=>_0x2637ba)),_0x386bf7['on']('execute',_0x3d8324=>{this['editor']['execute'](_0x3d8324['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x386bf7;}['_createMenuBarMenu'](_0xe36a57,_0x1823a7,_0x395f66){const _0xcde485=new _0x4ba208(_0xe36a57),_0x9642b5=this['editor']['commands']['get']('trackChanges');_0xcde485['buttonView']['set']({'label':_0x395f66,'icon':_0x27213d});const _0x5aaa0b=new _0x3e1657(_0xe36a57);for(const _0x5e600b of _0x1823a7){if('separator'==_0x5e600b['type']){_0x5aaa0b['items']['add'](new _0x1ff7e8(_0xe36a57));continue;}const _0x4d2461=new _0xde6522(_0xe36a57,_0xcde485),_0x2346a7=new _0x3074fc(_0xe36a57),_0xdaeb44=_0x5e600b['model'];_0x2346a7['bind'](...Object['keys'](_0xdaeb44))['to'](_0xdaeb44),_0x2346a7['delegate']('execute')['to'](_0xcde485),_0x2346a7['on']('execute',()=>{this['editor']['execute'](_0xdaeb44['commandName']),this['editor']['editing']['view']['focus']();}),_0x4d2461['children']['add'](_0x2346a7),_0x5aaa0b['items']['add'](_0x4d2461);}return _0xcde485['bind']('isEnabled')['to'](_0x9642b5,'isEnabled'),_0xcde485['panelView']['children']['add'](_0x5aaa0b),_0xcde485;}['_initializeController'](_0xee3da4){const _0x564dc0=this['editor'],_0x15b331=_0x564dc0['config'],_0x45edc7=_0x564dc0['plugins']['get']('Annotations'),_0x5db5d3=_0x564dc0['plugins']['get']('CommentsRepository'),_0x2bda9f=_0x564dc0['plugins']['get']('EditorAnnotations'),_0x5086d3=_0x564dc0['plugins']['get'](_0x43132b)['me'],_0x5b10cb=_0x15b331['get']('trackChanges')['SuggestionThreadView'],_0x411a25=_0x15b331['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b8aea,CommentThreadInputView:_0x5aed3c}=_0x564dc0['plugins']['get']('CommentsUI');let _0x18615a,_0x2c39ad,_0x1c0262;this['_annotationViews']['has'](_0xee3da4['id'])?(_0x2c39ad=this['_annotationViews']['get'](_0xee3da4['id']),_0x18615a=_0x2c39ad['mainView']):(_0x18615a=new _0x5b10cb(_0x564dc0['locale'],_0xee3da4,_0x5086d3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x15b331['get']('comments.editorConfig'),'licenseKey':_0x15b331['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x15b331['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15b331['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15b331['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x34adfd(_0x15b331['get']('locale'),_0x564dc0['locale']),'CommentView':_0x15b331['get']('comments')['CommentView'],'CommentsListView':_0x1b8aea,'CommentThreadInputView':_0x5aed3c,'SuggestionView':_0x411a25}),_0x18615a['suggestionView']['acceptButton']['on']('execute',()=>{_0x564dc0['editing']['view']['focus']();}),_0x18615a['suggestionView']['discardButton']['on']('execute',()=>{_0x564dc0['editing']['view']['focus']();}),_0x2c39ad=_0x45edc7['createAnnotationView'](this['editor']['locale'],_0x18615a),_0x2c39ad['bind']('isDirty')['to'](_0x18615a,'isDirty'),_0x2c39ad['bind']('length')['to'](_0x18615a),_0x2c39ad['bind']('type')['to'](_0x18615a,'type',_0x13e5ea=>'suggestion-'+_0x13e5ea),_0x18615a['on']('escape',()=>{_0x1c0262['fire']('escape');}),this['_annotationViews']['set'](_0xee3da4['id'],_0x2c39ad));const _0x21bab4=_0x5db5d3['createCommentThreadController'](_0xee3da4['commentThread'],_0x18615a),_0x1162de=new pe(_0x564dc0,_0xee3da4,_0x18615a,_0x21bab4),_0xd146bc=_0xee3da4['getAllAdjacentSuggestions']()['filter'](_0x35f0f5=>_0x35f0f5['isInContent']);_0x18615a['descriptionParts']=_0x564dc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xd146bc),this['_suggestionToController']['set'](_0xee3da4,_0x1162de),this['_viewToController']['set'](_0x18615a,_0x1162de),_0x1c0262=_0x45edc7['createAnnotation']({'view':_0x2c39ad,'target':()=>{const _0x549bae=[],_0x5e4bf4=_0xee3da4['getAllAdjacentSuggestions']()['filter'](_0x5b954c=>_0x5b954c['isInContent']);for(const _0x37d7a6 of _0x5e4bf4)_0x549bae['push'](..._0x37d7a6['getMarkers']());return _0x1ec63f(_0x564dc0['editing'],_0x549bae);},'type':()=>'suggestion-'+_0x1162de['view']['type']}),_0x5db5d3['_bindAnnotationToEditors'](_0x18615a,_0x1c0262),_0x45edc7['add'](_0x1c0262),_0x2bda9f['registerAnnotation'](_0x1c0262);}['_destroyController'](_0x119d54){const _0x56e0e5=this['editor']['plugins']['get']('CommentsRepository'),_0x6b41a3=this['editor']['plugins']['get']('Annotations'),_0x266d45=this['_suggestionToController']['get'](_0x119d54),_0x5677a7=_0x266d45['view'],_0x16a8ff=_0x6b41a3['getByInnerView'](_0x5677a7);_0x56e0e5['_unbindEditors'](_0x5677a7),_0x16a8ff&&_0x6b41a3['remove'](_0x16a8ff),this['_suggestionToController']['delete'](_0x119d54),this['_viewToController']['delete'](_0x5677a7),_0x266d45['destroy']();}['_updateController'](_0x938a5b){if(!_0x938a5b['isInContent']||!this['_suggestionToController']['has'](_0x938a5b))return;const _0xe2656d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d4dba=this['_suggestionToController']['get'](_0x938a5b),_0x46ec9f=_0x938a5b['getAllAdjacentSuggestions']();_0x5d4dba['view']['descriptionParts']=_0xe2656d['descriptionFactory']['getDescriptions'](_0x46ec9f);}['destroy'](){for(const _0x44ce7a of this['_suggestionToController']['keys']())this['_destroyController'](_0x44ce7a);for(const _0x330b9e of this['_annotationViews']['values']())_0x330b9e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x23aef9){return'model'in _0x23aef9;}class k extends _0x550ef0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x534903){this['editor']['plugins']['get'](p)['adapter']=_0x534903;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4e011e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4e011e);}['getSuggestions']({skipNotAttached:_0x336063=!0x1,toJSON:_0x35188c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x336063,'toJSON':_0x35188c});}['getSuggestion'](_0x3bf338){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3bf338);}}const w=['Pagination'];class T extends _0x550ef0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4f1e4d=this['editor'];if(_0x4f1e4d['config']['define']('trackChangesData.editorCreator',_0x54372e=>{const _0x37f6fa=_0x4f1e4d['model']['document']['getRootNames']()['reduce']((_0x17b40c,_0x21353d)=>(_0x17b40c[_0x21353d]='',_0x17b40c),{});return _0x4f1e4d['constructor']['create'](_0x37f6fa,_0x54372e);}),'function'!=typeof _0x4f1e4d['config']['get']('trackChangesData')['editorCreator'])throw new _0x3c0c52('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x434916){return N(this['editor'],!0x0,_0x434916);}['getDataWithDiscardedSuggestions'](_0x274964){return N(this['editor'],!0x1,_0x274964);}}class D extends _0x550ef0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2247c8){function _0x1c9794(_0x349af7){return _0x349af7['map'](_0x421c0e=>String['fromCharCode'](_0x421c0e))['join']('');}super(_0x2247c8),this['result']='end',_0x2247c8[_0x1c9794([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9794([0x76,0x69,0x65,0x77])][_0x1c9794([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c9794([0x61,0x75,0x74,0x6f]),_0x2247c8[_0x1c9794([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c9794([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c9794([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c9794([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c9794([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x3850be){return void 0x0!==_0x3850be['getRootsAttributes'];}async function N(_0x1b90c4,_0x31424b,_0x4666b4){const _0x3d65c6=_0x1c1bae(_0x1b90c4,w);_0x3d65c6['plugins']['push'](p,D),_0x3d65c6['rootsAttributes']=Ge(_0x1b90c4)?_0x1b90c4['getRootsAttributes']():void 0x0;const _0x213a0c=document['createDocumentFragment'](),_0x16bde5=_0x1b90c4['config']['get']('trackChangesData')['editorCreator'],_0x46f79e=await _0x16bde5(_0x3d65c6,()=>function(_0x48ff60){const _0x349ae6=document['createElement']('div');return _0x48ff60['appendChild'](_0x349ae6),_0x349ae6;}(_0x213a0c));!function(_0x5e92bb,_0x4e7225){const _0x37cc98=_0x5e92bb['model']['document']['getRootNames']()['reduce']((_0x58a3a1,_0x45aa6d)=>(_0x58a3a1[_0x45aa6d]=_0x5e92bb['data']['get']({'rootName':_0x45aa6d}),_0x58a3a1),{}),_0x13718c=_0x5e92bb['plugins']['get']('Users')['users']['map'](_0x551358=>({'id':_0x551358['id'],'name':_0x551358['name']})),_0x24770c=_0x5e92bb['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2b5e75=_0x5e92bb['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1fcfd5=_0x4e7225['plugins']['get']('Users'),_0x37fd16=_0x4e7225['plugins']['get']('TrackChangesEditing'),_0xeb4e08=_0x4e7225['plugins']['get']('CommentsRepository');for(const _0x1ce5c2 of _0xeb4e08['getCommentThreads']())_0x1ce5c2['remove']();for(const _0x1f1c3a of _0x13718c)_0x1fcfd5['getUser'](_0x1f1c3a['id'])||_0x1fcfd5['addUser'](_0x1f1c3a);_0x1fcfd5['me']||_0x1fcfd5['useAnonymousUser']();for(const _0x2586ba of _0x2b5e75)_0xeb4e08['addCommentThread'](_0x2586ba);for(const _0xd0f73b of _0x24770c)_0x37fd16['addSuggestionData'](_0xd0f73b);_0x4e7225['data']['set'](_0x37cc98);}(_0x1b90c4,_0x46f79e),_0x46f79e['execute'](_0x31424b?'acceptAllSuggestions':'discardAllSuggestions');const _0x37852b=Ge(_0x46f79e)?_0x46f79e['getFullData'](_0x4666b4):_0x46f79e['data']['get'](_0x4666b4);return await _0x46f79e['destroy'](),_0x37852b;}class Me extends _0xecdda6{['options'];constructor(_0x1d74ec,_0x599c30){super(_0x1d74ec),this['options']=_0x599c30,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'](_0x59dcf0,_0x12e6fd){if(!this['element'])return;const _0x20add9=[];for(const [_0x335867,_0x17696f]of _0x59dcf0){const _0x5710bb=document['createElement']('div');_0x5710bb['setAttribute']('data-ck-root-name',_0x335867),_0x5710bb['className']=_0x17696f['classes']+'\x20ck-track-changes-preview__root-container',_0x5710bb['innerHTML']=_0x17696f['content'],_0x20add9['push'](_0x5710bb);}_0x12e6fd(this['element'],_0x20add9),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5e344c{constructor(_0x182806){super(_0x182806),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2c3226=this['editor'],_0x5c8b47=_0x2c3226['locale'],_0x4954fe=_0x2c3226['plugins']['get']('Dialog');let _0x599ddd;const _0x5acd13=function(_0x40db48){const _0x56bb8d={};if('editables'in _0x40db48['ui']['view']){for(const [_0x9443fb,_0x16bff8]of Object['entries'](_0x40db48['ui']['view']['editables']))_0x56bb8d[_0x9443fb]=_0x16bff8['element'];}else _0x56bb8d[_0x40db48['model']['document']['getRootNames']()[0x0]]=_0x40db48['ui']['view']['editable']['element'];return _0x56bb8d;}(_0x2c3226),_0x31b92a=function(_0x3d2593){let _0x46d4ba=0x0;for(const _0x27c69c of Object['values'](_0x3d2593))_0x46d4ba=Math['max'](_0x46d4ba,_0x27c69c['getBoundingClientRect']()['width']);let _0x79bbd=0x0;for(const _0x42a5d7 of Object['values'](_0x3d2593))_0x79bbd+=_0x42a5d7['getBoundingClientRect']()['height'];const _0x7abeb3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xc2bdbb=Math['min'](_0x79bbd,_0x7abeb3);return{'width':_0x46d4ba,'height':_0xc2bdbb};}(_0x5acd13);_0x4954fe['show']({'id':'finalContentPreview','title':c(_0x5c8b47,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c8b47,{'dialogRects':_0x31b92a}),'onHide':()=>{_0x599ddd['detachFromDom']();},'onShow':()=>{_0x2c3226['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a6e23=>{const _0x4b0e2c=this['_standarizeRootsData'](_0x2a6e23,_0x2c3226,_0x5acd13);_0x4954fe['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4b0e2c,_0x2c3226['config']['get']('trackChanges.preview.renderFunction'));}),_0x599ddd=new _0x505171(_0x5c8b47,[_0x4954fe['view']]),_0x599ddd['attachToDom'](),_0x599ddd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2c3226['once']('destroy',()=>{_0x599ddd['detachFromDom']();});const _0x16f947=_0x4954fe['view']['headerView']['class'];_0x4954fe['view']['headerView']['class']=_0x16f947?_0x16f947+'\x20ck-reset_all':'ck-reset_all',_0x4954fe['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4954fe['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1f5940=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x10e02f=_0x1f5940['previewMode'],_0x457ded={};if('$labels'===_0x10e02f){for(const _0x1cda4b of _0x1f5940['getMergeFieldsIds']())_0x457ded[_0x1cda4b]=_0x1f5940['getLabel'](_0x1cda4b)||_0x1cda4b;}else{const _0x446511='$defaultValues'===_0x10e02f?_0x1f5940['getDefaultValues']():_0x1f5940['getDataSetValues'](_0x10e02f,!0x0);for(const _0x2f85d0 of Object['entries'](_0x446511)){const [_0x54dd20,_0x444b1b]=_0x2f85d0;_0x457ded[_0x54dd20]=null!==_0x444b1b?_0x444b1b:_0x1f5940['getLabel'](_0x54dd20)||_0x54dd20;}}return{'mergeFieldsData':_0x457ded};}['_standarizeRootsData'](_0x41bc27,_0x43f4e4,_0x357d2b){let _0x35fcf3;if('string'==typeof _0x41bc27){const _0x5c0559=_0x43f4e4['model']['document']['getRootNames']()[0x0];_0x35fcf3={[_0x5c0559]:_0x41bc27};}else _0x35fcf3=_0x41bc27;const _0x2a2df5=this['_fixMediaEmbeds'](_0x35fcf3,_0x43f4e4),_0x7358be=function(_0x37ac7f,_0x49ea5f){for(const [_0x17fd00,_0x4ee966]of _0x37ac7f)_0x4ee966['classes']=_0x49ea5f[_0x17fd00]['classList']['value']['replace']('ck-focused','');return _0x37ac7f;}(this['_sortRoots'](_0x43f4e4)['reduce']((_0x56044e,_0x37b6b3)=>(_0x56044e['push']([_0x37b6b3,{'content':_0x2a2df5[_0x37b6b3],'classes':''}]),_0x56044e),[]),_0x357d2b);return _0x7358be;}['_fixMediaEmbeds'](_0x15abd5,_0x505496){if(!_0x505496['plugins']['has']('MediaEmbedEditing'))return _0x15abd5;const _0x5cacff=_0x505496['plugins']['get']('MediaEmbedEditing');for(const [_0x5800fc,_0x2a7a47]of Object['entries'](_0x15abd5)){const _0xb81ec7=document['createElement']('div');_0xb81ec7['innerHTML']=_0x2a7a47,(_0xb81ec7['querySelectorAll']('figure.media')['forEach'](_0x4852a6=>{const _0x5e54a6=_0x4852a6['querySelector']('oembed');if(_0x5e54a6){const _0x5351ba=_0x5e54a6['getAttribute']('url');if(_0x5351ba){const _0x265689=_0x5cacff['registry']['getMediaViewElement'](new _0x2437da(_0x505496['editing']['view']['document']),_0x5351ba,{'elementName':'','renderForEditingView':!0x0}),_0x6dcbc5=document['createElement']('div');_0x6dcbc5['classList']['add']('ck-media__wrapper'),_0x265689['render'](_0x6dcbc5,_0x505496['editing']['view']['domConverter']),_0x5e54a6['replaceWith'](_0x6dcbc5);}}}),_0x15abd5[_0x5800fc]=_0xb81ec7['innerHTML']);}return _0x15abd5;}['_sortRoots'](_0x55060c){if(!function(_0x533115){return void 0x0!==_0x533115['getRootsAttributes'];}(_0x55060c))return _0x55060c['model']['document']['getRootNames']();const _0x1b6fef=[],_0x278fdb=new Map();for(const _0x78324d of _0x55060c['model']['document']['getRootNames']()){const _0x480b92=_0x55060c['editing']['view']['getDomRoot'](_0x78324d)['getClientRects']()['item'](0x0);_0x1b6fef['push'](_0x78324d),_0x278fdb['set'](_0x78324d,_0x480b92);}return _0x1b6fef['sort']((_0x45cfbe,_0x59e676)=>{const _0x2600be=_0x278fdb['get'](_0x45cfbe),_0x583c7d=_0x278fdb['get'](_0x59e676);return _0x2600be['y']-_0x583c7d['y']||_0x2600be['x']-_0x583c7d['x'];}),_0x1b6fef;}}class te extends _0x550ef0{static get['requires'](){return[T,_0x5554bd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x107dd7){super(_0x107dd7),_0x107dd7['commands']['add']('previewFinalContent',new re(this['editor'])),_0x107dd7['config']['define']('trackChanges.preview.renderFunction',(_0x45b189,_0x1769ee)=>{for(const _0x1d7bb7 of _0x1769ee)_0x45b189['appendChild'](_0x1d7bb7);});}}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};
|