@ckeditor/ckeditor5-track-changes 44.2.0-alpha.4 → 44.2.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 +25 -25
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Xt,Plugin as
|
|
24
|
-
_0x1e8365(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5ad938,_0x36db93){super(),this['id']=_0x36db93['id'],this['type']=_0x36db93['type'],this['subType']=_0x36db93['subType']||null,this['author']=_0x36db93['author'],this['creator']=_0x36db93['creator']||_0x36db93['author'],this['isExternal']=Boolean(_0x36db93['attributes']&&_0x36db93['attributes']['@external']),this['data']=null,this['_model']=_0x5ad938,this['_onAccept']=_0x36db93['onAccept'],this['_onDiscard']=_0x36db93['onDiscard'],this['_onAttributesChange']=_0x36db93['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x36db93['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 _0xdcab75=this;for(;_0xdcab75['previous'];)_0xdcab75=_0xdcab75['previous'];return _0xdcab75;}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'](_0x19a388){this['_markerNames']['add'](_0x19a388);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1b7ca2=>this['_model']['markers']['get'](_0x1b7ca2))['filter'](_0x143aba=>_0x143aba);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3d454a=>{for(const _0x207b58 of this['getMarkers']())_0x3d454a['removeMarker'](_0x207b58);}),this['_markerNames']['clear']();}['removeMarker'](_0x154973){this['_model']['change'](_0x4a71cf=>{_0x4a71cf['removeMarker'](_0x154973);}),this['_markerNames']['delete'](_0x154973);}['addRange'](_0x5501d7){const _0x4611a4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4611a4),this['_model']['change'](_0xdf8d1f=>{_0xdf8d1f['addMarker'](_0x4611a4,{'range':_0x5501d7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x305976){for(const _0x28bac1 of this['getRanges']())if(_0x28bac1['isIntersecting'](_0x305976))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2f63ae=>_0x2f63ae['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a92fe,_0x229e60)=>[..._0x4a92fe,..._0x229e60['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x39ed7e=this['getRanges']();if(0x1!=_0x39ed7e['length'])return null;const _0x2f2040=_0x39ed7e[0x0],_0x2d63d7=_0x2f2040['start']['nodeAfter'],_0x794d49=_0x2f2040['end']['nodeBefore'];return _0x2d63d7 instanceof _0x38b93f?_0x2d63d7!=_0x794d49?null:_0x2d63d7: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 _0x38db12=[];let _0x5c8104=this['head'];for(;_0x5c8104;)_0x38db12['push'](_0x5c8104),_0x5c8104=_0x5c8104['next'];return _0x38db12;}['setAttribute'](_0x448541,_0x23bf9f){const _0x4f3cff=_0x41b362(this['attributes']);_0x3c59ac(_0x4f3cff,_0x448541,_0x23bf9f),_0x5002a1(_0x4f3cff,this['attributes'])||(this['attributes']=_0x4f3cff,this['_onAttributesChange'](_0x4f3cff));}['removeAttribute'](_0x4d3bad){const _0x275834=_0x41b362(this['attributes']);_0x165c20(_0x275834,_0x4d3bad),_0x5002a1(_0x275834,this['attributes'])||(this['attributes']=_0x275834,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 _0x8b70ee()['substr'](0x1,0x5);}}function o(_0x2ed8f5,_0x72ab42,_0x4dada2){const _0x8800af=_0x2ed8f5['t'],t=_0x2ed8f5['t'];switch(_0x72ab42){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',_0x4dada2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4dada2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4dada2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4dada2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4dada2);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',_0x4dada2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4dada2);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',_0x4dada2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4dada2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4dada2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4dada2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4dada2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4dada2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4dada2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4dada2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4dada2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4dada2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4dada2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4dada2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4dada2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4dada2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4dada2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4dada2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4dada2);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'},_0x4dada2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4dada2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4dada2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4dada2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4dada2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4dada2);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'},_0x4dada2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4dada2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4dada2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4dada2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4dada2);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'},_0x4dada2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4dada2);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'},_0x4dada2);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'},_0x4dada2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4dada2);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'},_0x4dada2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4dada2);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'},_0x4dada2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4dada2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4dada2);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'},_0x4dada2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4dada2);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 _0x8800af({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4dada2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x8800af({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4dada2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4dada2);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'},_0x4dada2);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'},_0x4dada2);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'},_0x4dada2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x72ab42;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x13b279,_0x451153){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x13b279,this['_locale']=_0x451153;}['getDescriptions'](_0x5eaf83){const _0x43ce27=[],_0x25ca4c=new Set(),_0xa7dee7=new Set();for(let _0x49d8b7=0x0;_0x49d8b7<_0x5eaf83['length'];_0x49d8b7++){const _0xe4227e=_0x5eaf83[_0x49d8b7];if(!_0xe4227e['isInContent'])continue;const _0xd59412=this['_handleCustomCallbackDescription'](_0xe4227e);if(_0xd59412){if(null!=_0xe4227e['subType']){if(_0x25ca4c['has'](_0xe4227e['subType']))continue;_0x25ca4c['add'](_0xe4227e['subType']);}_0x43ce27['push'](_0xd59412);}else{if('attribute'!=_0xe4227e['type'])'insertion'!=_0xe4227e['type']&&'deletion'!=_0xe4227e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x43ce27,_0xe4227e,_0x5eaf83[_0x49d8b7+0x1]);else{const _0x396f62=_0xe4227e['data']['key'];if(_0xa7dee7['has'](_0x396f62))continue;_0xa7dee7['add'](_0xe4227e['data']['key']),_0x396f62==m?this['_handleRenameSuggestionDescription'](_0x43ce27,_0xe4227e):this['_handleAttributeSuggestionDescription'](_0x43ce27,_0xe4227e);}}}return this['_resolveDescriptionItems'](_0x43ce27);}['registerDescriptionCallback'](_0x4434e0){this['_customCallbacks']['push'](_0x4434e0);}['registerElementLabel'](_0x1f35ff,_0x1521c2,_0x48f2ed=_0x282e0b['normal']){'function'==typeof _0x1f35ff?_0x26a494(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1f35ff,'label':_0x1521c2,'priority':_0x48f2ed}):this['_itemLabels']['set'](_0x1f35ff,_0x1521c2);}['registerAttributeLabel'](_0x5f1fcb,_0x315f72){this['_attributeLabels']['set'](_0x5f1fcb,_0x315f72);}['getItemLabel'](_0x3e23a0,_0x38ebb6=0x1){let _0x2fa564;for(const _0x4dcb1f of this['_itemLabelsCallbacks'])if(_0x4dcb1f['matchingCallback'](_0x3e23a0)){_0x2fa564=_0x4dcb1f['label'];break;}return _0x2fa564||(_0x2fa564=this['_itemLabels']['get'](_0x3e23a0['name'])),_0x2fa564?_0x2fa564(_0x38ebb6):0x1!==_0x38ebb6?_0x38ebb6+'\x20'+_0x3e23a0['name']+'s':''+_0x3e23a0['name'];}['_addDescriptionItems'](_0x125453,_0x413a86){const _0x5f343d=_0x413a86['getFirstRange']()['getWalker'](),_0x1429f6='insertion'==_0x413a86['type']?'add':'remove';for(const _0x5d02fb of _0x5f343d){const _0x4a2072=_0x5d02fb['item'],_0x22c6a1=_0x125453[_0x125453['length']-0x1];if(_0x4a2072['is']('$textProxy'))_0x22c6a1&&_0x22c6a1['type']['indexOf']('Container')>-0x1&&_0x125453['pop'](),_0x22c6a1&&'text'==_0x22c6a1['type']?_0x22c6a1[_0x1429f6]+=_0x4a2072['data']:_0x125453['push']({'type':'text','add':'add'==_0x1429f6?_0x4a2072['data']:'','remove':'remove'==_0x1429f6?_0x4a2072['data']:''});else{if(this['_schema']['isObject'](_0x4a2072)){const _0x1dac1d=_0x4a2072;if(_0x22c6a1&&_0x22c6a1['type']['indexOf']('Container')>-0x1&&_0x125453['pop'](),'elementEnd'==_0x5d02fb['type'])continue;_0x22c6a1&&_0x22c6a1['type']==_0x1429f6+'Object'&&_0x22c6a1['element']['name']==_0x1dac1d['name']?_0x22c6a1['quantity']++:_0x125453['push']({'type':_0x1429f6+'Object','element':_0x1dac1d,'quantity':0x1}),_0x5f343d['skip'](_0x510cb2=>!('elementEnd'==_0x510cb2['type']&&_0x510cb2['item']==_0x4a2072));}else{if(this['_schema']['checkChild'](_0x4a2072,'$text')||_0x4a2072['is']('element','softBreak')){const _0x272208=_0x4a2072;if('add'==_0x1429f6&&'elementStart'==_0x5d02fb['type']||'remove'==_0x1429f6&&'elementEnd'==_0x5d02fb['type'])continue;if(_0x22c6a1&&-0x1==_0x22c6a1['type']['indexOf']('Container')){'text'==_0x22c6a1['type']&&(_0x22c6a1[_0x1429f6]+='\x0a');continue;}let _0xb60231;if(_0xb60231='add'==_0x1429f6?_0x272208['nextSibling']&&!this['_schema']['isObject'](_0x272208['nextSibling'])?_0x272208['nextSibling']:null:_0x272208['previousSibling']&&!this['_schema']['isObject'](_0x272208['previousSibling'])?_0x272208['previousSibling']:null,_0x272208['isEmpty']||_0xb60231&&_0xb60231['isEmpty']){const _0x4f1014=_0xb60231&&_0xb60231['isEmpty']?_0xb60231:_0x272208;_0x22c6a1&&_0x22c6a1['type']==_0x1429f6+'EmptyContainer'&&_0x22c6a1['element']['name']==_0x4f1014['name']?_0x22c6a1['quantity']++:_0x125453['push']({'type':_0x1429f6+'EmptyContainer','element':_0x4f1014,'quantity':0x1});}else _0x125453['push']({'type':_0x1429f6+'Container','element':_0x272208});}}}}}['_resolveDescriptionItems'](_0x4bfd9e){const _0x15b1e8=this['_locale'],_0x310e80=[],_0x205c53=[],_0x384bef=[];for(const _0x37467e of _0x4bfd9e)switch(_0x37467e['type']){case'text':if(_0x37467e['add']=_0x37467e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x37467e['remove']=_0x37467e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x37467e['add']&&''!=_0x37467e['remove']){_0x310e80['push']({'type':'replace','content':o(_0x15b1e8,'REPLACE_TEXT',['\x22'+_0x37467e['remove']+'\x22','\x22'+_0x37467e['add']+'\x22'])});continue;}if(null!=_0x37467e['add']['match'](/^ +$/)){_0x310e80['push']({'type':'insertion','content':o(_0x15b1e8,'*Insert:*\x20%0',o(_0x15b1e8,'ELEMENT_SPACE',_0x37467e['add']['length']))});continue;}if(null!=_0x37467e['remove']['match'](/^ +$/)){_0x310e80['push']({'type':'deletion','content':o(_0x15b1e8,'*Remove:*\x20%0',o(_0x15b1e8,'ELEMENT_SPACE',_0x37467e['remove']['length']))});continue;}if(''!=_0x37467e['add']){_0x310e80['push']({'type':'insertion','content':o(_0x15b1e8,'*Insert:*\x20%0','\x22'+_0x37467e['add']+'\x22')});continue;}_0x310e80['push']({'type':'deletion','content':o(_0x15b1e8,'*Remove:*\x20%0','\x22'+_0x37467e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x310e80['push']({'type':'insertion','content':o(_0x15b1e8,'*Insert:*\x20%0',this['getItemLabel'](_0x37467e['element'],_0x37467e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x310e80['push']({'type':'deletion','content':o(_0x15b1e8,'*Remove:*\x20%0',this['getItemLabel'](_0x37467e['element'],_0x37467e['quantity']))});continue;case'addContainer':_0x310e80['push']({'type':'insertion','content':o(_0x15b1e8,'*Split:*\x20%0',this['getItemLabel'](_0x37467e['element'],_0x37467e['quantity']))});continue;case'removeContainer':_0x310e80['push']({'type':'deletion','content':o(_0x15b1e8,'*Merge:*\x20%0',this['getItemLabel'](_0x37467e['element'],_0x37467e['quantity']))});continue;case'addFormat':_0x205c53['push'](_0x37467e['key']);continue;case'removeFormat':_0x384bef['push'](_0x37467e['key']);continue;default:_0x310e80['push'](_0x37467e);}if(_0x205c53['length']){const _0x363ed9=_0x205c53['map'](_0x1f8e62=>this['_attributeLabels']['has'](_0x1f8e62)?this['_attributeLabels']['get'](_0x1f8e62):_0x1f8e62)['join'](',\x20');_0x310e80['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x363ed9)});}if(_0x384bef['length']){const _0x441bbe=_0x384bef['map'](_0x4ea911=>this['_attributeLabels']['has'](_0x4ea911)?this['_attributeLabels']['get'](_0x4ea911):_0x4ea911)['join'](',\x20');_0x310e80['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x441bbe)});}return _0x310e80;}['_handleCustomCallbackDescription'](_0xf97215){for(const _0x3f51f6 of this['_customCallbacks']){const _0x2d2dad=_0x3f51f6(_0xf97215);if(_0x2d2dad&&'type'in _0x2d2dad)return _0x2d2dad;}}['_handleAttributeSuggestionDescription'](_0x44d574,_0x54ad39){const _0x3484ab=_0x54ad39['data'],_0x38f24a=void 0x0===_0x3484ab['newValue']?'removeFormat':'addFormat';_0x44d574['push']({'type':_0x38f24a,'key':_0x3484ab['key']});}['_handleRenameSuggestionDescription'](_0x2e23c3,_0x174e04){_0x2e23c3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x174e04['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1812fd,_0xe5173e,_0x2cf649){if(this['_addDescriptionItems'](_0x1812fd,_0xe5173e),_0x2cf649&&_0x2cf649['getFirstRange']()&&!_0xe5173e['getFirstRange']()['end']['isEqual'](_0x2cf649['getFirstRange']()['start'])){const _0x1e6421=_0x1812fd[_0x1812fd['length']-0x1],_0x517f67='insertion'==_0xe5173e['type']?'add':'remove';_0x1e6421&&'text'==_0x1e6421['type']&&(_0x1e6421[_0x517f67]+='\x0a');}}}class U extends _0x463932{['afterInit'](){const _0x8d05ee=this['editor'],_0x9b46d1=_0x8d05ee['plugins']['get']('TrackChangesEditing');_0x8d05ee['commands']['get']('showAIAssistant')&&_0x9b46d1['enableCommand']('showAIAssistant');}}class V extends _0x463932{['afterInit'](){const _0xc700d9=this['editor'],_0x4e5453=_0xc700d9['locale'];if(!_0xc700d9['plugins']['has']('AlignmentEditing'))return;const _0x5c28ca=_0xc700d9['plugins']['get']('TrackChangesEditing');_0x5c28ca['enableDefaultAttributesIntegration']('alignment'),_0x5c28ca['registerBlockAttribute']('alignment'),_0x5c28ca['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4e5453,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x80bda7=this['editor'],_0x527d90=_0x80bda7['locale'];_0x80bda7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6caeea=>{if('formatBlock'!=_0x6caeea['type'])return;const {data:_0x5487dd}=_0x6caeea;if(_0x5487dd&&'alignment'==_0x5487dd['commandName']){const _0x5b8b17=_0x5487dd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x527d90,'*Format:*\x20%0',function(_0x675b16){switch(_0x675b16){case'left':return o(_0x527d90,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x527d90,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x527d90,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x527d90,'FORMAT_JUSTIFY_TEXT');}}(_0x5b8b17))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x463932{['afterInit'](){const _0x5c1906=this['editor'],_0x1bc273=_0x5c1906['plugins']['get']('TrackChangesEditing'),_0xf2dfee=_0x5c1906['locale'];for(const _0x1bd61f of ti){if(!_0x5c1906['plugins']['has'](_0x1bd61f))continue;const _0x2578de=_0x1bd61f['slice'](0x0,-0x7)['toLowerCase'](),_0x58e324='FORMAT_'+_0x2578de['toUpperCase']();_0x1bc273['enableDefaultAttributesIntegration'](_0x2578de),_0x1bc273['registerInlineAttribute'](_0x2578de),_0x1bc273['descriptionFactory']['registerAttributeLabel'](_0x2578de,o(_0xf2dfee,_0x58e324));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x165118=this['editor'],_0x5b543f=_0x165118['locale'],_0x3152bc=_0x165118['plugins']['get']('TrackChangesEditing');function _0x2782ce(_0x456e57,_0x1b303f){_0x3152bc['descriptionFactory']['registerDescriptionCallback'](_0x45ca5a=>{if('formatInline'!=_0x45ca5a['type'])return;const {data:_0x30cbe6}=_0x45ca5a;return _0x30cbe6&&_0x30cbe6['commandName']===_0x456e57?_0x30cbe6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b543f,'*Format:*\x20%0',_0x1b303f)}:{'type':'format','content':o(_0x5b543f,'*Remove\x20format:*\x20%0',_0x1b303f)}:void 0x0;});}_0x2782ce('bold',o(_0x5b543f,'FORMAT_BOLD')),_0x2782ce('italic',o(_0x5b543f,'FORMAT_ITALIC')),_0x2782ce('underline',o(_0x5b543f,'FORMAT_UNDERLINE')),_0x2782ce('code',o(_0x5b543f,'FORMAT_CODE')),_0x2782ce('strikethrough',o(_0x5b543f,'FORMAT_STRIKETHROUGH')),_0x2782ce('subscript',o(_0x5b543f,'FORMAT_SUBSCRIPT')),_0x2782ce('superscript',o(_0x5b543f,'FORMAT_SUPERSCRIPT'));}}class F extends _0x463932{['afterInit'](){const _0x5d8d60=this['editor'],_0x1cf4c9=_0x5d8d60['locale'];if(!_0x5d8d60['plugins']['has']('BlockQuoteEditing'))return;const _0x14ce8b=_0x5d8d60['plugins']['get']('TrackChangesEditing'),_0xa507d3=this['editor']['commands']['get']('blockQuote');_0x14ce8b['enableCommand']('blockQuote',(_0x2b8821,_0x519de6={})=>{const _0x179340=this['editor']['model']['document']['selection'],_0x26d1ec=_0x519de6&&void 0x0!==_0x519de6['forceValue']?_0x519de6['forceValue']:!_0xa507d3['value'];let _0x3ae9a3=[];if(_0x26d1ec){const _0x279c18=Array['from'](_0x179340['getSelectedBlocks']())['filter'](_0x27215c=>oo(_0x27215c)||function(_0x28652b,_0x2ebe9d){const _0x1bf3c0=_0x2ebe9d['checkChild'](_0x28652b['parent'],'blockQuote'),_0x1f3f20=_0x2ebe9d['checkChild'](['$root','blockQuote'],_0x28652b);return _0x1bf3c0&&_0x1f3f20;}(_0x27215c,this['editor']['model']['schema']));_0x3ae9a3=to(_0x279c18,_0x5d8d60['model']);}else{const _0x5c4fc1=Array['from'](_0x179340['getSelectedBlocks']())['filter'](_0x317f6d=>oo(_0x317f6d));_0x3ae9a3=to(_0x5c4fc1,_0x5d8d60['model']);}_0x5d8d60['model']['change'](()=>{for(const _0x55a8de of _0x3ae9a3)_0x14ce8b['markBlockFormat'](_0x55a8de,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x26d1ec}]});});}),_0x14ce8b['descriptionFactory']['registerDescriptionCallback'](_0x4f9364=>{const {data:_0x1d59ba}=_0x4f9364;if(_0x1d59ba&&'blockQuote'==_0x1d59ba['commandName']){const _0x5c11b9=o(_0x1cf4c9,'ELEMENT_BLOCK_QUOTE');return _0x1d59ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1cf4c9,'*Set\x20format:*\x20%0',_0x5c11b9)}:{'type':'format','content':o(_0x1cf4c9,'*Remove\x20format:*\x20%0',_0x5c11b9)};}});}}function oo(_0x56f63d){return'blockQuote'==_0x56f63d['parent']['name'];}class L extends _0x463932{['afterInit'](){const _0x19388f=this['editor'],_0x1096b1=_0x19388f['locale'],_0x1770ab=_0x19388f['plugins']['get']('TrackChangesEditing');_0x19388f['plugins']['has']('BookmarkEditing')&&(_0x1770ab['enableCommand']('insertBookmark'),_0x1770ab['enableDefaultAttributesIntegration']('updateBookmark'),_0x1770ab['registerBlockAttribute']('bookmarkId'),_0x1770ab['descriptionFactory']['registerDescriptionCallback'](_0xed4b62=>{if('insertion'!=_0xed4b62['type']&&'deletion'!=_0xed4b62['type']&&'attribute'!=_0xed4b62['type'])return;const _0x231d0f=_0xed4b62['getContainedElement']();if(null==_0x231d0f)return;if(!_0x231d0f['is']('element','bookmark'))return;const _0x33aa6f=_0x231d0f['getAttribute']('bookmarkId');if('insertion'==_0xed4b62['type'])return{'type':'insertion','content':o(_0x1096b1,'*Insert:*\x20%0','\x22'+_0x33aa6f+'\x22\x20'+o(_0x1096b1,'ELEMENT_BOOKMARK'))};if('deletion'==_0xed4b62['type'])return{'type':'deletion','content':o(_0x1096b1,'*Remove:*\x20%0','\x22'+_0x33aa6f+'\x22\x20'+o(_0x1096b1,'ELEMENT_BOOKMARK'))};const {data:_0x5cafe1}=_0xed4b62;if(!_0x5cafe1||'bookmarkId'!=_0x5cafe1['key'])return;return{'type':'format','content':o(_0x1096b1,'*Set\x20bookmark:*\x20%0','\x22'+_0x5cafe1['newValue']+'\x22')};}));}}class J extends _0x463932{['afterInit'](){const _0x3d0f7c=this['editor'];_0x3d0f7c['plugins']['has']('CaseChange')&&(_0x3d0f7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3d0f7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3d0f7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x463932{['afterInit'](){const _0x3e31ea=this['editor'];_0x3e31ea['commands']['get']('ckbox')&&_0x3e31ea['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x463932{['afterInit'](){const _0x130e84=this['editor'];if(!_0x130e84['plugins']['has']('CodeBlock'))return;const _0x11a9e6=_0x130e84['plugins']['get']('TrackChangesEditing'),_0x11d230=_0x130e84['locale'],_0x2f6e0e=_0x130e84['config']['get']('codeBlock')['languages'],_0x425697=_0x130e84['commands']['get']('codeBlock');_0x11a9e6['enableCommand']('indentCodeBlock'),_0x11a9e6['enableCommand']('outdentCodeBlock'),_0x11a9e6['enableCommand']('codeBlock',(_0x48932e,_0x4b7886={})=>{const _0x5185c7=_0x130e84['model'],_0x58f62e=_0x130e84['model']['document']['selection'],_0x1b8412=_0x4b7886&&void 0x0!==_0x4b7886['forceValue']?_0x4b7886['forceValue']:!_0x425697['value'];let _0x3b72a3;_0x4b7886['language']||(_0x4b7886['language']=_0x2f6e0e[0x0]['language']),_0x3b72a3=_0x1b8412?Array['from'](_0x58f62e['getSelectedBlocks']())['filter'](_0x304884=>eo(_0x304884)||function(_0x5b3e4f,_0x4b9100){if(_0x5b3e4f['is']('rootElement')||_0x4b9100['isLimit'](_0x5b3e4f))return!0x1;return _0x4b9100['checkChild'](_0x5b3e4f['parent'],'codeBlock');}(_0x304884,_0x5185c7['schema'])):Array['from'](_0x58f62e['getSelectedBlocks']())['filter'](_0x4e804b=>eo(_0x4e804b));const _0x752aed=to(_0x3b72a3,_0x5185c7);_0x5185c7['change'](()=>{for(const _0x3b6c80 of _0x752aed)_0x11a9e6['markBlockFormat'](_0x3b6c80,{'commandName':'codeBlock','commandParams':[{..._0x4b7886,'forceValue':_0x1b8412}],'formatGroupId':'blockName'});});}),(_0x11a9e6['descriptionFactory']['registerElementLabel']('codeBlock',_0xe658a8=>o(_0x11d230,'ELEMENT_CODE_BLOCK',_0xe658a8)),_0x11a9e6['descriptionFactory']['registerDescriptionCallback'](_0x19b029=>{if('formatBlock'!=_0x19b029['type'])return;const _0x4c6892=_0x11d230['t'],{data:_0x4d2f0f}=_0x19b029;if(!_0x4d2f0f||'codeBlock'!=_0x4d2f0f['commandName'])return;const _0x544d5b=_0x4d2f0f['commandParams'][0x0]['language'],_0x50d647=_0x4c6892(_0x2f6e0e['find'](_0x75cc08=>_0x75cc08['language']===_0x544d5b)['label'])['toLowerCase']();return _0x4d2f0f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11d230,'*Set\x20format:*\x20%0',o(_0x11d230,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x50d647+')')}:{'type':'format','content':o(_0x11d230,'*Remove\x20format:*\x20%0',o(_0x11d230,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xdd26ae){return'codeBlock'==_0xdd26ae['name'];}class z extends _0x463932{['afterInit'](){const _0x2310de=this['editor'];if(!_0x2310de['plugins']['has']('CommentsEditing'))return;_0x2310de['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23bad3,_0x589c0c,_0x445f08){const _0x308760=[];for(const _0x31b34c of _0x589c0c['getItems']())_0x31b34c['hasAttribute'](_0x23bad3)&&_0x308760['push'](_0x445f08['createRangeOn'](_0x31b34c));return _0x308760;}function De(_0x264114,_0x2799ea,{showActiveMarker:_0x49cdfb=!0x0}={}){const _0x2d1ef7=_0x264114['plugins']['get']('TrackChangesEditing');return(_0x4b5083,_0x5f2a04,_0x119d86)=>{if(!_0x119d86['consumable']['test'](_0x5f2a04['markerRange'],_0x4b5083['name']))return;const _0x1f7f55=_0x5f2a04['markerRange']['getWalker'](),_0x4464a8=_0x5f2a04['markerRange']['start'],_0x4e9600=_0x264114['model']['schema'];let _0x476f1c=null,_0x213f6d=null,_0x582930=!0x1,_0x488592=!0x1;for(const _0x527a93 of _0x1f7f55){const _0x29892d=_0x527a93['item'];_0x582930=_0x582930||_0x4e9600['isContent'](_0x29892d);const _0x34df25=_0x119d86['mapper']['toViewElement'](_0x29892d);if(_0x34df25&&_0x34df25['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x527a93['type']&&(_0x4e9600['isBlock'](_0x29892d)&&!_0x4e9600['isLimit'](_0x29892d)&&(_0x29892d['nextSibling']||_0x4464a8['isAtEnd']?_0x476f1c&&_0x476f1c['parent']==_0x29892d||(_0x476f1c=_0x29892d,_0x525c32(_0x527a93['previousPosition']),_0x488592=!0x0):_0x213f6d=_0x213f6d||_0x527a93['previousPosition']));}function _0x525c32(_0x217971){const {authorId:_0x290dab}=_0x2d1ef7['_splitMarkerName'](_0x5f2a04['markerName']),_0x1ecbbf=_0x119d86['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2799ea,'data-author-id':_0x290dab}),_0x47d8e3=_0x119d86['mapper']['toViewPosition'](_0x217971);_0x49cdfb&&_0x2d1ef7['activeMarkers']['includes'](_0x5f2a04['markerName'])&&_0x119d86['writer']['addClass']('ck-suggestion-marker--active',_0x1ecbbf),_0x119d86['writer']['insert'](_0x47d8e3,_0x1ecbbf),_0x119d86['mapper']['bindElementToMarker'](_0x1ecbbf,_0x5f2a04['markerName']);}_0x582930||_0x488592||!_0x213f6d||_0x525c32(_0x213f6d);};}class K extends _0x463932{static get['requires'](){return[_0x4d5984];}['init'](){const _0x244a0a=this['editor'],_0x76db7e=_0x244a0a['plugins']['get']('TrackChangesEditing');_0x76db7e['enableCommand']('delete');const _0x2c884f=_0x244a0a['commands']['get']('deleteForward');_0x76db7e['enableCommand']('deleteForward',(_0x3cb473,_0x51f64a={})=>{const _0x2bbfe3=_0x244a0a['model']['createSelection'](_0x244a0a['model']['document']['selection']);_0x2bbfe3['isCollapsed']&&_0x244a0a['model']['modifySelection'](_0x2bbfe3,{'direction':'forward','unit':_0x51f64a['unit']});const _0x58c7ed=_0x2bbfe3['getFirstRange'](),_0x23710c=_0x339777['fromRange'](_0x58c7ed);let _0x11cf72;_0x3cb473(_0x51f64a),_0x11cf72='$graveyard'==_0x23710c['root']['rootName']?_0x244a0a['model']['createRange'](_0x58c7ed['start']):_0x244a0a['model']['createRange'](_0x23710c['start'],_0x23710c['end']),_0x23710c['detach'](),_0x244a0a['model']['enqueueChange'](_0x2c884f['buffer']['batch'],_0x5584cd=>{_0x2c884f['buffer']['lock'](),_0x5584cd['setSelection'](_0x5584cd['createRange'](_0x11cf72['end'])),_0x2c884f['buffer']['unlock']();});}),_0x244a0a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x244a0a,'merge'),{'priority':'high'}),_0x244a0a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x17db7e,_0x57fff0,_0x1f8013)=>{_0x1f8013['options']['showSuggestionHighlights']&&De(_0x244a0a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x17db7e,_0x57fff0,_0x1f8013);},{'priority':'high'}),_0x244a0a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x557a7f,_0x58657c,_0x2d8749)=>{const _0x4fc91b=_0x2d8749['mapper']['markerNameToElements'](_0x58657c['markerName']);if(_0x4fc91b){for(const _0x13236e of _0x4fc91b)_0x13236e['is']('uiElement')&&(_0x2d8749['mapper']['unbindElementFromMarkerName'](_0x13236e,_0x58657c['markerName']),_0x2d8749['writer']['remove'](_0x13236e));}},{'priority':'high'});}}class W extends _0x463932{['afterInit'](){const _0x54f053=this['editor'];if(!_0x54f053['plugins']['has']('ListEditing'))return;const _0x25a621=_0x54f053['locale'],_0x226c2c=_0x54f053['plugins']['get']('TrackChangesEditing'),_0x180cd8=_0x54f053['plugins']['has']('TodoListEditing'),_0x581ce2=!!_0x54f053['config']['get']('list.multiBlock');function _0x377747(_0x1030fc){return{'type':'format','content':''+o(_0x25a621,'*Set\x20format:*\x20%0',_0x1030fc)};}function _0x1de79e(_0x3e6166){return{'type':'format','content':''+o(_0x25a621,'*Remove\x20format:*\x20%0',_0x3e6166)};}_0x226c2c['enableDefaultAttributesIntegration']('numberedList'),_0x226c2c['enableDefaultAttributesIntegration']('bulletedList'),_0x226c2c['enableDefaultAttributesIntegration']('customNumberedList'),_0x226c2c['enableDefaultAttributesIntegration']('customBulletedList'),_0x226c2c['enableDefaultAttributesIntegration']('indentList'),_0x226c2c['enableDefaultAttributesIntegration']('outdentList'),_0x226c2c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x226c2c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x226c2c['registerBlockAttribute']('listItemId'),_0x226c2c['registerBlockAttribute']('listType'),_0x226c2c['registerBlockAttribute']('listIndent'),_0x581ce2&&(_0x226c2c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x226c2c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x180cd8&&(_0x226c2c['enableDefaultAttributesIntegration']('todoList'),_0x226c2c['enableDefaultAttributesIntegration']('checkTodoList'),_0x226c2c['registerBlockAttribute']('todoListChecked'),_0x226c2c['descriptionFactory']['registerDescriptionCallback'](_0x4a32e0=>{const {data:_0xf4117b}=_0x4a32e0;if(_0xf4117b&&'todoListChecked'==_0xf4117b['key'])return{'type':'format','content':_0xf4117b['newValue']?o(_0x25a621,'*Check\x20item*'):o(_0x25a621,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x45527a=>{if(_0x45527a['batch']['isUndo'])return!0x1;let _0x125610=!0x1;const _0x43b392=_0x226c2c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ad19a=>'todoListChecked'===_0x226c2c['_getAttributeKey'](_0x3ad19a));for(const _0x371112 of _0x43b392){'todo'!=_0x371112['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x226c2c['_findSuggestions'](_0x371112['getFirstRange'](),'attribute')['find'](_0x297cec=>'listType'===_0x226c2c['_getAttributeKey'](_0x297cec['suggestion']))||(_0x45527a['removeMarker'](_0x371112['getFirstMarker']()),_0x125610=!0x0));}return _0x125610;})),_0x226c2c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x25a621,'FORMAT_INDENT'));const _0x3f363a={'type':'format','content':''};_0x226c2c['descriptionFactory']['registerDescriptionCallback'](_0x27fd2a=>{const {data:_0x58fa90}=_0x27fd2a;if(!_0x58fa90||'listType'!=_0x58fa90['key'])return;let _0x70bf77=_0x27fd2a['head'];for(;_0x70bf77;){if(_0x70bf77['data']&&(('listStyle'==_0x70bf77['data']['key']||'listMarkerStyle'==_0x70bf77['data']['key'])&&(_0x70bf77['data']['newValue']&&'default'!=_0x70bf77['data']['newValue']||'default'!=_0x70bf77['data']['oldValue']&&!_0x58fa90['newValue'])||!_0x581ce2&&_0x70bf77['data']['key']==m))return _0x3f363a;_0x70bf77=_0x70bf77['next'];}if(null==_0x58fa90['newValue'])switch(_0x58fa90['oldValue']){case'bulleted':return _0x1de79e(o(_0x25a621,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1de79e(o(_0x25a621,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1de79e(o(_0x25a621,'ELEMENT_TODO_LIST'));}switch(_0x58fa90['newValue']){case'bulleted':return _0x377747(o(_0x25a621,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x377747(o(_0x25a621,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x377747(o(_0x25a621,'ELEMENT_TODO_LIST'));}}),_0x226c2c['descriptionFactory']['registerDescriptionCallback'](_0x2fd2c9=>{const {data:_0x4765ad}=_0x2fd2c9;if(_0x4765ad&&'listIndent'==_0x4765ad['key'])return null==_0x4765ad['newValue']||null==_0x4765ad['oldValue']&&0x0==_0x4765ad['newValue']?_0x3f363a:void 0x0;}),_0x226c2c['descriptionFactory']['registerDescriptionCallback'](_0x175202=>{if('attribute'!=_0x175202['type'])return;const {data:_0x3add47}=_0x175202;if(!_0x3add47||'listItemId'!=_0x3add47['key'])return;const _0x1ef881=Te(_0x175202);return'newValue'==_0x1ef881?{'type':'format','content':o(_0x25a621,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ef881?{'type':'format','content':o(_0x25a621,'*Split:*\x20list\x20item')}:_0x3f363a;}),_0x54f053['model']['document']['registerPostFixer'](_0x3dd3ae=>this['listItemIdFixer'](_0x3dd3ae)),_0x54f053['model']['document']['registerPostFixer'](_0x414428=>this['noTrackChangesFixer'](_0x414428)),_0x54f053['model']['document']['on']('change:data',(_0x3d4b19,_0x2b0b91)=>{if(_0x2b0b91['isUndo']||!_0x2b0b91['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x16c8a5){if(_0x16c8a5['batch']['isUndo']||!_0x16c8a5['batch']['isLocal'])return!0x1;let _0x2b8551=!0x1;const _0x5d45a4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c7ed3=>_0x2c7ed3['data']&&'listItemId'==_0x2c7ed3['data']['key'])['filter'](_0x55d4f9=>_0x55d4f9['data']['newValue']&&_0x55d4f9['data']['oldValue']);for(const _0x36e4d2 of _0x5d45a4)Te(_0x36e4d2)||(_0x16c8a5['removeMarker'](_0x36e4d2['getFirstMarker']()),_0x2b8551=!0x0);return _0x2b8551;}['noTrackChangesFixer'](_0x2269e6){if(_0x2269e6['batch']['isUndo']||!_0x2269e6['batch']['isLocal'])return!0x1;const _0x184ec1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x184ec1['trackChangesCommand']['value'])return!0x1;let _0x448511=!0x1;const _0x2bb5c2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x277c41=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x593ccf=>'attribute'==_0x593ccf['type'])['filter'](_0x32308d=>_0x2bb5c2['includes'](_0x32308d['attributeKey']));if(0x0==_0x277c41['length'])return _0x448511;for(const _0x2719ca of _0x277c41){const _0x3d3b76=_0x184ec1['_findSuggestions'](_0x2719ca['range'],'attribute')['filter'](_0x1c4fc7=>!_0x1c4fc7['meta']['isNextTo'])['map'](_0x3b7d4f=>_0x3b7d4f['suggestion'])['filter'](_0x30e627=>{const _0x4152db=_0x184ec1['_getAttributeKey'](_0x30e627);return _0x2bb5c2['includes'](_0x4152db);});if(_0x3d3b76['length']){for(const _0x968ee5 of _0x3d3b76)_0x2269e6['removeMarker'](_0x968ee5['getFirstMarker']());_0x448511=!0x0;}}return _0x448511;}['assureChains'](){const _0x47bb5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x350ae7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xa91677;const _0x28c4ae=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5a8fae=>{if(_0x5a8fae['data']['oldRange']||!_0x5a8fae['data']['newRange'])return null;if(!_0x5a8fae['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2b71e4}=_0x47bb5b['_splitMarkerName'](_0x5a8fae['name']);if(!_0x47bb5b['hasSuggestion'](_0x2b71e4))return null;const _0x21bc86=_0x47bb5b['getSuggestion'](_0x2b71e4);return _0x350ae7['includes'](_0x21bc86['data']['key']);})['map'](_0x11a777=>{const {id:_0x49cfd8}=_0x47bb5b['_splitMarkerName'](_0x11a777['name']),_0x238270=_0x47bb5b['getSuggestion'](_0x49cfd8);return _0xa91677=_0x238270['attributes']['groupId'],_0x238270['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x28c4ae['size'])return;const _0x1153ff=_0x47bb5b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ac9d2=>'attribute'==_0x2ac9d2['type']&&_0x2ac9d2['data']&&_0x350ae7['includes'](_0x2ac9d2['data']['key'])&&_0x2ac9d2['attributes']['groupId']!=_0xa91677)['map'](_0x2fdc5a=>({'listItem':_0x2fdc5a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2fdc5a['attributes']['groupId']})),_0x505397=new Set();for(const {groupId:_0x1160b7,listItem:_0x30d40e}of _0x1153ff)_0x28c4ae['has'](_0x30d40e)&&_0x505397['add'](_0x1160b7);for(const _0x51f14a of _0x47bb5b['getSuggestions']())_0x505397['has'](_0x51f14a['attributes']['groupId'])&&_0x51f14a['setAttribute']('groupId',_0xa91677);}['_supportLegacySuggestions'](){const _0x32bd49=this['editor'],_0x270b7c=_0x32bd49['locale'],_0x2dee02=_0x32bd49['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2dee02['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x167492,_0x39c695){const _0x598ac4=[];for(let _0x4f357a of _0x167492)_0x4f357a['start']['nodeAfter']===_0x4f357a['end']['parent']&&(_0x4f357a=_0x32bd49['model']['createRange'](_0x32bd49['model']['createPositionAt'](_0x4f357a['start']['nodeAfter'],0x0))),_0x598ac4['push'](_0x4f357a);_0x32bd49['model']['change'](_0x344b8a=>{const _0xc53e90=_0x32bd49['model']['document']['selection'],_0x1a751c=Array['from'](_0xc53e90['getRanges']())['map'](_0x501411=>_0x339777['fromRange'](_0x501411));_0x344b8a['setSelection'](_0x598ac4),_0x32bd49['commands']['get'](_0x39c695['commandName'])['refresh'](),_0x39c695['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x32bd49['execute'](_0x39c695['commandName'],..._0x39c695['commandParams']),_0x344b8a['setSelection'](_0x1a751c);for(const _0x2aa09a of _0x1a751c)_0x2aa09a['detach']();});}),_0x2dee02['descriptionFactory']['registerElementLabel'](function(_0x21caaa){const _0x181808=!_0x32bd49['model']['schema']['isObject'](_0x21caaa),_0x376818=_0x21caaa['previousSibling'],_0x5a3e4d=_0x21caaa['nextSibling'],_0x17baf9=_0x21caaa['getAttribute']('listItemId'),_0x312b1d=!_0x376818||_0x376818['getAttribute']('listItemId')!==_0x17baf9,_0x507c51=!_0x5a3e4d||_0x5a3e4d['getAttribute']('listItemId')!==_0x17baf9;return _0x181808&&Boolean(_0x17baf9)&&_0x312b1d&&_0x507c51;},_0x15e3df=>o(_0x270b7c,'ELEMENT_LIST_ITEM',_0x15e3df));}['_registerLegacyDescription'](){const _0x1ccd67=this['editor'],_0x31f8cc=_0x1ccd67['locale'];function _0x1e8dee(_0x2fff49){const _0x471640=_0x1ccd67['commands']['get']('bulletedList')['value'],_0x20cafc=_0x1ccd67['commands']['get']('numberedList')['value'];return'numberedList'===_0x2fff49?_0x471640:_0x20cafc;}_0x1ccd67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2084f0){if('formatBlock'!=_0x2084f0['type'])return;const {data:_0x50788a}=_0x2084f0;if(!_0x50788a)return;let _0x5714f1,_0x5d6bfb,_0x50eb49,_0x4263ab;switch(_0x50788a['commandName']){case'bulletedList':_0x50eb49=_0x50788a['commandParams'][0x0]['forceValue'],_0x4263ab=_0x1e8dee(_0x50788a['commandName']),_0x5714f1=_0x50eb49?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4263ab&&_0x1ccd67['config']['get']('list.multiBlock')||(_0x5714f1='*Change\x20to:*\x20%0'),_0x5d6bfb={'type':'format','content':o(_0x31f8cc,_0x5714f1,o(_0x31f8cc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x50eb49=_0x50788a['commandParams'][0x0]['forceValue'],_0x4263ab=_0x1e8dee(_0x50788a['commandName']),_0x5714f1=_0x50eb49?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4263ab&&_0x1ccd67['config']['get']('list.multiBlock')||(_0x5714f1='*Change\x20to:*\x20%0'),_0x5d6bfb={'type':'format','content':o(_0x31f8cc,_0x5714f1,o(_0x31f8cc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5714f1='*Indent:*\x20%0',_0x5d6bfb={'type':'format','content':o(_0x31f8cc,_0x5714f1,o(_0x31f8cc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5714f1=function(_0x40ecc3){const _0x591eb9=_0x40ecc3['getFirstRange']();let _0xd82104=_0x591eb9['start']['nodeAfter'];for(;_0xd82104&&_0x591eb9['containsItem'](_0xd82104);){if(_0xd82104['getAttribute']('listIndent')>0x0)return!0x1;_0xd82104=_0xd82104['nextSibling'];}return!0x0;}(_0x2084f0)?o(_0x31f8cc,'*Format:*\x20remove\x20from\x20%0',o(_0x31f8cc,function(_0x281871){return'ELEMENT_'+_0x281871['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2084f0))):o(_0x31f8cc,'*Outdent:*\x20%0',o(_0x31f8cc,'ELEMENT_LIST_ITEM')),_0x5d6bfb={'type':'format','content':_0x5714f1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x50788a['multipleBlocks']&&(_0x5714f1='*Merge:*\x20%0',_0x5d6bfb={'type':'deletion','content':o(_0x31f8cc,_0x5714f1,o(_0x31f8cc,'ELEMENT_LIST_ITEM'))});}return _0x5d6bfb;});}}function Te(_0x1d0070){let _0x2923f0=_0x1d0070['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2923f0;){const _0x1908fe=_0x2923f0['getAttribute']('listItemId');if(!_0x1908fe)return!0x1;if(_0x1908fe==_0x1d0070['data']['newValue'])return'newValue';if(_0x1908fe==_0x1d0070['data']['oldValue'])return'oldValue';_0x2923f0=_0x2923f0['previousSibling'];}return!0x1;}class Se extends _0x463932{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5a1429=this['editor']['config']['get']('list.properties'),_0x249f18=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a1429['styles']&&(_0x249f18['enableDefaultAttributesIntegration']('listStyle'),_0x249f18['registerBlockAttribute']('listStyle')),_0x5a1429['reversed']&&(_0x249f18['enableDefaultAttributesIntegration']('listReversed'),_0x249f18['registerBlockAttribute']('listReversed')),_0x5a1429['startIndex']&&(_0x249f18['enableDefaultAttributesIntegration']('listStart'),_0x249f18['registerBlockAttribute']('listStart'));const _0x357f55={'type':'format','content':''};_0x249f18['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1e5a6e=this['editor']['locale'];_0x249f18['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1e5a6e,'FORMAT_LIST_REVERSED')),_0x249f18['descriptionFactory']['registerDescriptionCallback'](_0x5861cb=>{const {data:_0x1d58c4}=_0x5861cb;if(_0x1d58c4&&'listReversed'==_0x1d58c4['key'])return null==_0x1d58c4['newValue']||0x0==_0x1d58c4['newValue']&&null==_0x1d58c4['oldValue']?_0x357f55:void 0x0;}),_0x249f18['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1e5a6e,'FORMAT_LIST_START')),_0x249f18['descriptionFactory']['registerDescriptionCallback'](_0x381eaa=>{const {data:_0x2d3022}=_0x381eaa;if(_0x2d3022&&'listStart'==_0x2d3022['key'])return null==_0x2d3022['newValue']||0x1==_0x2d3022['newValue']&&null==_0x2d3022['oldValue']?_0x357f55:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x291498=>{if(_0x291498['batch']['isUndo'])return!0x1;let _0x1bec37=!0x1;const _0x53b9bd=_0x249f18['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3eb727=>{const _0x47e305=_0x249f18['_getAttributeKey'](_0x3eb727);return'listStart'==_0x47e305||'listReversed'==_0x47e305;});for(const _0x48ea81 of _0x53b9bd){const _0x2d0fea=_0x48ea81['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2d0fea||'customNumbered'==_0x2d0fea)continue;_0x249f18['_findSuggestions'](_0x48ea81['getFirstRange'](),'attribute')['find'](_0x3c9ccd=>'listType'==_0x249f18['_getAttributeKey'](_0x3c9ccd['suggestion']))||(_0x291498['removeMarker'](_0x48ea81['getFirstMarker']()),_0x1bec37=!0x0);}return _0x1bec37;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x499c05){const _0x1163bb=this['editor']['locale'],{data:_0x5c1480}=_0x499c05,_0x28f15f={'type':'format','content':''};if(!_0x5c1480||'listStyle'!=_0x5c1480['key'])return;if(!_0x5c1480['oldValue'])return'default'==_0x5c1480['newValue']?_0x28f15f:{'type':'format','content':''+o(_0x1163bb,'*Set\x20format:*\x20%0',o(_0x1163bb,this['_getTranslationKeyForListStyle'](_0x5c1480['newValue'])))};if(!_0x5c1480['newValue']){if('default'==_0x5c1480['oldValue'])return _0x28f15f;let _0x59ca87=_0x499c05['head'];for(;_0x59ca87;){if(_0x59ca87['data']&&'listType'==_0x59ca87['data']['key']&&_0x59ca87['data']['newValue'])return _0x28f15f;_0x59ca87=_0x59ca87['next'];}return{'type':'format','content':''+o(_0x1163bb,'*Remove\x20format:*\x20%0',o(_0x1163bb,this['_getTranslationKeyForListStyle'](_0x5c1480['oldValue'])))};}if('default'!=_0x5c1480['newValue'])return{'type':'format','content':''+o(_0x1163bb,'*Set\x20format:*\x20%0',o(_0x1163bb,this['_getTranslationKeyForListStyle'](_0x5c1480['newValue'])))};let _0x1e3ce7=_0x499c05['head'];for(;_0x1e3ce7;){if(_0x1e3ce7['data']&&'listType'==_0x1e3ce7['data']['key']&&_0x1e3ce7['data']['newValue']&&_0x1e3ce7['data']['oldValue'])return _0x28f15f;_0x1e3ce7=_0x1e3ce7['next'];}return{'type':'format','content':o(_0x1163bb,'*Set\x20format:*\x20%0',o(_0x1163bb,'ELEMENT_'+_0x499c05['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3fff3b=this['editor'],_0xf5dd=_0x3fff3b['locale'];_0x3fff3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ce6ce=>{if('formatBlock'!=_0x2ce6ce['type'])return;const {data:_0x4a4215}=_0x2ce6ce;if(!_0x4a4215)return;let _0x46a70a,_0x4d2652;switch(_0x4a4215['commandName']){case'listStyle':_0x46a70a='*Change\x20to:*\x20%0',_0x4d2652={'type':'format','content':o(_0xf5dd,_0x46a70a,o(_0xf5dd,this['_getTranslationKeyForListStyle'](_0x4a4215['commandParams'][0x0]['type'])))};break;case'listReversed':_0x46a70a=_0x4a4215['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4d2652={'type':'format','content':o(_0xf5dd,_0x46a70a)};break;case'listStart':_0x46a70a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d2652={'type':'format','content':o(_0xf5dd,_0x46a70a,_0x4a4215['commandParams'][0x0]['startIndex'])};}return _0x4d2652;});}['_getTranslationKeyForListStyle'](_0x140dc4){return'ELEMENT_'+function(_0x264456){if(_e['includes'](_0x264456))return'bulleted';if(Re['includes'](_0x264456))return'numbered';return null;}(_0x140dc4)['toUpperCase']()+'_LIST_'+_0x140dc4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x463932{static get['requires'](){return[_0x5a64b7];}['init'](){const _0x15334c=this['editor'],_0x9a5392=_0x15334c['plugins']['get']('TrackChangesEditing'),_0x30265f=_0x15334c['commands']['get']('enter');_0x9a5392['enableCommand']('enter',()=>{_0x15334c['model']['change'](_0x465f1f=>{const _0x1a8d34=_0x15334c['model']['document']['selection'],_0x164455=_0x1a8d34['getFirstPosition'](),_0x582b88=_0x339777['fromRange'](_0x1a8d34['getFirstRange']());if(_0x30265f['enterBlock'](_0x465f1f)){const _0x4fd743=_0x15334c['model']['createPositionAt'](_0x164455['parent']['nextSibling'],0x0),_0x305cad=_0x465f1f['createRange'](_0x164455,_0x4fd743);_0x9a5392['markInsertion'](_0x305cad);}else _0x465f1f['setSelection'](_0x465f1f['createRange'](_0x582b88['end']));_0x582b88['detach'](),_0x30265f['fire']('afterExecute',{'writer':_0x465f1f});});}),_0x15334c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x15334c,'split'),{'priority':'high'}),_0x15334c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x24cc6f,_0x22c624,_0x30d496)=>{const _0x177365=_0x30d496['mapper']['markerNameToElements'](_0x22c624['markerName']);if(_0x177365){for(const _0x300727 of _0x177365)_0x300727['hasClass']('ck-suggestion-marker-split')&&(_0x30d496['mapper']['unbindElementFromMarkerName'](_0x300727,_0x22c624['markerName']),_0x30d496['writer']['remove'](_0x300727));}},{'priority':'high'}),_0x15334c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4c8f90,_0x3287b5,_0x2e91ff)=>{_0x2e91ff['options']['showSuggestionHighlights']&&De(_0x15334c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4c8f90,_0x3287b5,_0x2e91ff);},{'priority':'high'});}}class Y extends _0x463932{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2427bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x2427bf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2427bf['enableCommand']('findNext'),_0x2427bf['enableCommand']('findPrevious'),_0x2427bf['enableCommand']('replace'),_0x2427bf['enableCommand']('replaceAll');}['handleFindCommand'](_0x9b8767,_0x1c133e,_0x1333b2={}){const _0x21e932=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x9b8767(_0x172b7a=>{let _0x2b037a=('string'==typeof _0x1c133e?_0x21e932['findByTextCallback'](_0x1c133e,_0x1333b2):_0x1c133e)(_0x172b7a);Array['isArray'](_0x2b037a)&&(_0x2b037a={'results':_0x2b037a,'searchText':'string'==typeof _0x1c133e?_0x1c133e:''});const _0x3905c8=_0x2b037a['results']['filter'](_0x3a2100=>!0x1===this['_isInDeletionRange'](_0x3a2100,_0x172b7a['item']));return{..._0x2b037a,'results':_0x3905c8};},_0x1333b2);}['_isInDeletionRange'](_0x15571c,_0x8a500d){const _0x1e0977=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8a500d,_0x15571c['start']),this['editor']['model']['createPositionAt'](_0x8a500d,_0x15571c['end']));for(const _0x316cf1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1e0977['getIntersection'](_0x316cf1['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x463932{['afterInit'](){const _0x4d88f6=this['editor']['locale'],_0x1b0268=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x45ba66,commandName:_0x2d7440}of ro)this['editor']['plugins']['has'](_0x45ba66)&&(_0x1b0268['enableDefaultAttributesIntegration'](_0x2d7440),_0x1b0268['registerInlineAttribute'](_0x2d7440));_0x1b0268['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4d88f6,'FORMAT_FONT_SIZE')),_0x1b0268['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4d88f6,'FORMAT_FONT_FAMILY')),_0x1b0268['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4d88f6,'FORMAT_FONT_COLOR')),_0x1b0268['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4d88f6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f7e24=this['editor'],_0xa8ea86=_0x3f7e24['locale'];_0x3f7e24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136b17=>{const _0x3869e5=_0xa8ea86['t'];if('formatInline'!=_0x136b17['type'])return;const {data:_0x472ba0}=_0x136b17;if(null!=_0x472ba0){if('fontSize'==_0x472ba0['commandName']){const _0x132914=_0x472ba0['commandParams'][0x0]['value'];if(_0x132914){const _0x543630=_0x3869e5(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3fac4c=>_0x3fac4c['model']==_0x132914)['title'])['toLowerCase']();return{'type':'format','content':o(_0xa8ea86,'*Set\x20font\x20size:*\x20%0',_0x543630)};}return{'type':'format','content':o(_0xa8ea86,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x472ba0['commandName']){const _0x8dd362=_0x472ba0['commandParams'][0x0]['value'];return _0x8dd362?{'type':'format','content':o(_0xa8ea86,'*Set\x20font\x20family:*\x20%0',_0x8dd362)}:{'type':'format','content':o(_0xa8ea86,'*Reset\x20font\x20family*')};}if('fontColor'==_0x472ba0['commandName']){const _0x27d290=_0x472ba0['commandParams'][0x0]['value'];if(_0x27d290){const _0x9d5146=_0x5bd1a0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x545218=>_0x545218['model']==_0x27d290);let _0x1a9f84=_0x27d290,_0x3a51f5='';return _0x9d5146&&(_0x1a9f84=_0x9d5146['label'],_0x3a51f5=_0x3869e5(_0x1a9f84)['toLowerCase']()),{'type':'format','content':o(_0xa8ea86,'*Set\x20font\x20color:*\x20%0',_0x3a51f5)['trim'](),'color':{'value':_0x27d290,'title':_0x3a51f5||_0x1a9f84}};}return{'type':'format','content':o(_0xa8ea86,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x472ba0['commandName']){const _0x11b970=_0x472ba0['commandParams'][0x0]['value'];if(_0x11b970){const _0x2572ba=_0x5bd1a0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5eeb4b=>_0x5eeb4b['model']==_0x11b970);let _0x3f1483=_0x11b970,_0xb76964='';return _0x2572ba&&(_0x3f1483=_0x2572ba['label'],_0xb76964=_0x3869e5(_0x3f1483)['toLowerCase']()),{'type':'format','content':o(_0xa8ea86,'*Set\x20font\x20background\x20color:*\x20%0',_0xb76964)['trim'](),'color':{'value':_0x11b970,'title':_0xb76964||_0x3f1483}};}return{'type':'format','content':o(_0xa8ea86,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x463932{['afterInit'](){const _0xd04a3d=this['editor'],_0x22564c=_0xd04a3d['plugins']['get']('TrackChangesEditing'),_0xa1a1db=_0xd04a3d['commands']['get']('copyFormat'),_0x45e38f=_0xd04a3d['commands']['get']('pasteFormat');_0xa1a1db&&_0x45e38f&&(_0x22564c['enableDefaultAttributesIntegration']('pasteFormat'),_0x22564c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3e96a4=this['editor'],_0x4bb422=_0x3e96a4['locale'];_0x3e96a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e022=>{if('formatBlock'!=_0x47e022['type']&&'formatInline'!=_0x47e022['type'])return;const {data:_0x57f982}=_0x47e022;if(_0x57f982&&'pasteFormat'===_0x57f982['commandName']){const _0x525781=[],_0x34c723=_0x57f982['commandParams'][0x0];for(const [_0x433991,_0x2027a9]of Object['entries'](_0x34c723))_0x525781['push'](so(_0x3e96a4,_0x433991,_0x2027a9));return _0x525781['length']?{'type':'format','content':o(_0x4bb422,'*Set\x20format\x20to:*\x20%0',_0x525781['join'](',\x20'))}:{'type':'format','content':o(_0x4bb422,'*Remove\x20all\x20formatting*')};}});}}function so(_0x319d2f,_0x4ddec5,_0x58ba67){const _0x29ff32=_0x319d2f['locale']['t'],_0x3b541e=_0x4ddec5['split'](/(?=[A-Z])/)['join']('\x20'),_0x8272fe=_0x29ff32(_0x3b541e['charAt'](0x0)['toUpperCase']()+_0x3b541e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58ba67)return _0x8272fe;if('fontColor'===_0x4ddec5||'fontBackgroundColor'===_0x4ddec5){const _0x4b715c=_0x5bd1a0(_0x319d2f['config']['get']('fontColor.colors'))['find'](_0x58a9ba=>_0x58a9ba['model']==_0x58ba67);return _0x8272fe+'\x20('+(_0x4b715c?_0x29ff32(_0x4b715c['label'])['toLowerCase']():_0x58ba67)+')';}if('fontSize'===_0x4ddec5&&isNaN(parseFloat(_0x58ba67))){const _0x848982=_0x319d2f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x319d2f['config']['get']('fontSize.options'))['find'](_0x456abd=>_0x456abd['model']==_0x58ba67);return _0x8272fe+'\x20('+(_0x848982?_0x29ff32(_0x848982['title'])['toLowerCase']():_0x58ba67)+')';}return _0x8272fe+'\x20('+_0x58ba67+')';}class nt extends _0x463932{['_headingOptions'];['afterInit'](){const _0x43adf2=this['editor'];if(!_0x43adf2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x43adf2['config']['get']('heading.options');const _0x390e9b=_0x43adf2['locale'],_0x3d19a6=_0x43adf2['plugins']['get']('TrackChangesEditing');_0x3d19a6['enableDefaultAttributesIntegration']('heading');for(const _0x2ce856 of this['_headingOptions'])'paragraph'!=_0x2ce856['model']&&_0x3d19a6['descriptionFactory']['registerElementLabel'](_0x2ce856['model'],_0x24ba97=>{const _0x37affa=this['_getHeadingLevel'](_0x2ce856['model']);return null!==_0x37affa?_0x226666(_0x24ba97,_0x37affa):_0x3f7df3(_0x24ba97,_0x2ce856['title']);});function _0x226666(_0x583b1f,_0x18bd27){return o(_0x390e9b,'ELEMENT_HEADING',[_0x583b1f,_0x18bd27]);}function _0x3f7df3(_0x3d15b5,_0x3caec7){return o(_0x390e9b,'ELEMENT_HEADING_CUSTOM',[_0x3d15b5,_0x3caec7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f7f47=this['editor'],_0x18d13d=_0x4f7f47['locale'];function _0xddb701(_0x44d71c,_0x2d77c9){return o(_0x18d13d,'ELEMENT_HEADING_CUSTOM',[_0x44d71c,_0x2d77c9]);}_0x4f7f47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492e2c=>{if('formatBlock'!=_0x492e2c['type'])return;const {data:_0xfbbd49}=_0x492e2c;if(_0xfbbd49&&'heading'==_0xfbbd49['commandName']){const _0x3cec30=_0xfbbd49['commandParams'][0x0]['value'],_0x4a19fa=this['_getHeadingLevel'](_0x3cec30);if(null!==_0x4a19fa)return{'type':'format','content':o(_0x18d13d,'*Change\x20to:*\x20%0',(_0x1dc302=0x1,_0x2e8880=_0x4a19fa,o(_0x18d13d,'ELEMENT_HEADING',[_0x1dc302,_0x2e8880])))};const _0x6987f=this['_headingOptions']['find'](_0x46cbbd=>_0x46cbbd['model']===_0x3cec30)['title'];return{'type':'format','content':o(_0x18d13d,'*Change\x20to:*\x20%0',_0xddb701(0x1,_0x6987f))};}var _0x1dc302,_0x2e8880;});}['_getHeadingLevel'](_0x583f42){const _0x40482d=_0x583f42['match'](/^heading(\d+)/);if(_0x40482d)return _0x40482d[0x1];const _0x18969=this['_headingOptions']?.['find'](_0x37f36c=>_0x37f36c['model']==_0x583f42);if(_0x18969&&_0x18969['view']){const _0x11ffc8=_0x18969['view'],_0x813d3d=(_0x11ffc8['name']??_0x11ffc8)['match'](/^h(\d+)/);if(_0x813d3d)return _0x813d3d[0x1];}return null;}}class it extends _0x463932{['afterInit'](){const _0x34e540=this['editor'];if(!_0x34e540['plugins']['has']('HighlightEditing'))return;const _0x578807=_0x34e540['plugins']['get']('TrackChangesEditing'),_0x1cbca3=_0x34e540['locale'];_0x578807['enableDefaultAttributesIntegration']('highlight'),_0x578807['registerInlineAttribute']('highlight'),_0x578807['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1cbca3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58f899=this['editor'],_0x401762=_0x58f899['locale'];_0x58f899['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4389f2=>{if('formatInline'!=_0x4389f2['type'])return;const {data:_0x5b60cb}=_0x4389f2;if(_0x5b60cb&&'highlight'==_0x5b60cb['commandName']){const _0x1bf7e5=_0x401762['t'],_0x4fb76b=_0x5b60cb['commandParams'][0x0]['value'];if(_0x4fb76b){const _0x3c5f2f=_0x58f899['config']['get']('highlight.options')['find'](_0x48f38d=>_0x48f38d['model']==_0x4fb76b),_0x2f414e=_0x1bf7e5(_0x3c5f2f['title'])['toLowerCase']();return{'type':'format','content':o(_0x401762,'*Set\x20highlight:*\x20%0',_0x2f414e),'color':{'value':_0x3c5f2f['color'],'title':_0x3c5f2f['title']}};}return{'type':'format','content':o(_0x401762,'*Remove\x20highlight*',o(_0x401762,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x463932{['afterInit'](){const _0x2daa93=this['editor'];if(!_0x2daa93['plugins']['has']('HorizontalLineEditing'))return;_0x2daa93['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xb8d9d4=_0x2daa93['plugins']['get']('TrackChangesEditing'),_0x593d8a=_0x2daa93['locale'];_0xb8d9d4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4febcf=>o(_0x593d8a,'ELEMENT_HORIZONTAL_LINE',_0x4febcf)),_0x2daa93['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x19eac7,{writer:_0x6ebaa1,options:_0x40bff4})=>{if(!_0x40bff4['showSuggestionHighlights'])return null;const _0x576294=_0x6ebaa1['createContainerElement']('div'),_0x162223=_0x6ebaa1['createEmptyElement']('hr');return _0x6ebaa1['addClass']('ck-horizontal-line',_0x576294),_0x6ebaa1['insert'](_0x6ebaa1['createPositionAt'](_0x576294,0x0),_0x162223),_0x576294;},'converterPriority':'high'});}}class st extends _0x463932{['afterInit'](){const _0x28d230=this['editor'];if(!_0x28d230['plugins']['has']('HtmlEmbed'))return;const _0x1643a2=_0x28d230['plugins']['get']('TrackChangesEditing'),_0x9b0a7e=_0x28d230['locale'];_0x1643a2['descriptionFactory']['registerElementLabel']('rawHtml',_0x1b31e4=>o(_0x9b0a7e,'ELEMENT_HTML_EMBED',_0x1b31e4)),_0x1643a2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1643a2['registerBlockAttribute']('value'),_0x1643a2['descriptionFactory']['registerDescriptionCallback'](_0x32cabd=>{if('attribute'!=_0x32cabd['type'])return;const {data:_0x107d1e}=_0x32cabd;if(_0x107d1e&&'value'==_0x107d1e['key']&&_0x32cabd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4caadc=o(_0x9b0a7e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x9b0a7e,'*Change\x20%0\x20content*',_0x4caadc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ed504=this['editor'],_0x357f54=_0x5ed504['locale'];_0x5ed504['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57e4fb=>{if('formatBlock'!=_0x57e4fb['type'])return;const {data:_0xc8d268}=_0x57e4fb;if(_0xc8d268&&'htmlEmbed'==_0xc8d268['commandName']){const _0x14acd3=o(_0x357f54,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x357f54,'*Change\x20%0\x20content*',_0x14acd3)};}});}}class ot extends _0x463932{['afterInit'](){const _0x41026a=this['editor'];if(!_0x41026a['plugins']['has']('ImageEditing'))return;const _0x4674ad=_0x41026a['plugins']['get']('TrackChangesEditing'),_0x3ff1d4=_0x41026a['plugins']['get']('ImageUtils'),_0x15551d=_0x41026a['locale'];_0x4674ad['enableCommand']('insertImage'),_0x4674ad['descriptionFactory']['registerElementLabel']('imageBlock',_0x3dba8f=>o(_0x15551d,'ELEMENT_IMAGE',_0x3dba8f)),_0x4674ad['descriptionFactory']['registerElementLabel']('imageInline',_0x59e15a=>o(_0x15551d,'ELEMENT_INLINE_IMAGE',_0x59e15a)),_0x4674ad['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x15551d,'ELEMENT_CAPTION')),_0x41026a['plugins']['has']('ImageUploadEditing')&&_0x4674ad['enableCommand']('uploadImage'),_0x41026a['plugins']['has']('ImageBlockEditing')&&_0x41026a['plugins']['has']('ImageInlineEditing')&&(_0x4674ad['enableCommand']('imageTypeInline',(_0x34a028,_0x18be12)=>{const _0x403096=_0x3ff1d4['getClosestSelectedImageElement'](_0x41026a['model']['document']['selection']);_0x41026a['model']['change'](()=>{_0x4674ad['markBlockFormat'](_0x403096,{'commandName':'imageTypeInline','commandParams':[_0x18be12]},[],'convertBlockImageToInline');});}),_0x4674ad['enableCommand']('imageTypeBlock',(_0x18e5a2,_0x2e6203)=>{_0x41026a['model']['change'](_0x31dfd0=>{let _0x5a2174=_0x3ff1d4['getClosestSelectedImageElement'](_0x41026a['model']['document']['selection']),_0x4f523f=_0x31dfd0['createRangeOn'](_0x5a2174);const _0x5c804f=_0x538118['fromPosition'](_0x4f523f['start'],'toPrevious'),_0xc98ba2=_0x538118['fromPosition'](_0x4f523f['end'],'toNext');_0x4674ad['forceDefaultExecution'](()=>_0x18e5a2(_0x2e6203)),_0x5a2174=_0x3ff1d4['getClosestSelectedImageElement'](_0x41026a['model']['document']['selection']),_0x4f523f=_0x31dfd0['createRangeOn'](_0x5a2174);const _0x3839a9=_0x31dfd0['createRange'](_0x5c804f,_0xc98ba2);_0x5c804f['detach'](),_0xc98ba2['detach'](),_0x4674ad['markBlockFormat'](_0x5a2174,{'commandName':'imageTypeInline','commandParams':[_0x2e6203]},[],'convertInlineImageToBlock'),_0x3839a9['start']['isBefore'](_0x4f523f['start'])&&_0x4674ad['markInsertion'](_0x31dfd0['createRange'](_0x3839a9['start'],_0x4f523f['start']),'convertInlineImageToBlock'),_0x4f523f['end']['isBefore'](_0x3839a9['end'])&&_0x4674ad['markInsertion'](_0x31dfd0['createRange'](_0x4f523f['end'],_0x3839a9['end']),'convertInlineImageToBlock');});}),_0x4674ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4674ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4674ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4674ad['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4674ad['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4674ad['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x12f769])=>{const _0x24ba09=_0x4674ad['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5d767a=_0x12f769['start'],_0xfca630=_0x12f769['end'];const _0x54a9ad=_0x41026a['model']['schema']['getNearestSelectionRange'](_0x5d767a,'backward'),_0x3a1ca5=_0x41026a['model']['schema']['getNearestSelectionRange'](_0xfca630,'forward');_0x54a9ad['isCollapsed']&&(_0x5d767a=_0x54a9ad['start']),_0x3a1ca5['isCollapsed']&&(_0xfca630=_0x3a1ca5['end']),_0x24ba09([_0x41026a['model']['createRange'](_0x5d767a,_0xfca630)]);}),_0x4674ad['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2ca69c),_0x4674ad['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2ca69c)),_0x41026a['plugins']['has']('ImageCaptionEditing')&&(_0x4674ad['enableCommand']('toggleImageCaption',(_0x2ec75e,_0x2060cd)=>{const _0xc19e95=_0x41026a['plugins']['get']('ImageCaptionUtils');let _0x592e9e=_0x3ff1d4['getClosestSelectedImageElement'](_0x41026a['model']['document']['selection']),_0x9e21d3=_0xc19e95['getCaptionFromImageModelElement'](_0x592e9e);_0x41026a['model']['change'](()=>{if(_0x9e21d3)return void _0x4674ad['markDeletion'](_0x41026a['model']['createRangeOn'](_0x9e21d3));const _0x42c3dc=_0x3ff1d4['isBlockImage'](_0x592e9e);_0x2ec75e(_0x2060cd),_0x592e9e=_0x3ff1d4['getClosestSelectedImageElement'](_0x41026a['model']['document']['selection']),_0x9e21d3=_0xc19e95['getCaptionFromImageModelElement'](_0x592e9e),_0x4674ad['markInsertion'](_0x41026a['model']['createRangeOn'](_0x9e21d3),_0x42c3dc?null:'imageCaption');});}),_0x4674ad['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2ca69c));const _0x3f5599=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a70aa(_0x4758eb,_0x2f0f33){const _0x58d55f=_0x3f5599['findIndex'](({type:_0x58237a,subType:_0x58f185})=>_0x4758eb['type']==_0x58237a&&_0x4758eb['subType']==_0x58f185),_0x28b8ca=_0x3f5599['findIndex'](({type:_0x200d06,subType:_0x54a257})=>_0x2f0f33['type']==_0x200d06&&_0x2f0f33['subType']==_0x54a257);if(_0x58d55f<0x0||_0x28b8ca<0x0)return!0x1;const _0x2e71fb=_0x4758eb['getFirstRange'](),_0x39166c=_0x2f0f33['getFirstRange']();if((0x0==_0x58d55f||0x1==_0x58d55f)&&0x2==_0x28b8ca&&_0x2e71fb['isIntersecting'](_0x39166c))return!0x0;if(0x2==_0x58d55f&&0x3==_0x28b8ca){const _0x403dae=_0x4674ad['_findSuggestions'](_0x2e71fb,'insertion')['filter'](({suggestion:_0x5db15f,meta:_0x24cad1})=>_0x24cad1['isOwn']&&'convertInlineImageToBlock'==_0x5db15f['subType']);if(_0x403dae['length']>0x1&&_0x39166c['end']['isEqual'](_0x2e71fb['start']))return!0x0;if(0x1==_0x403dae['length']&&(_0x2e71fb['start']['isEqual'](_0x39166c['end'])||_0x2e71fb['end']['isEqual'](_0x39166c['start'])))return!0x0;}if(0x3==_0x58d55f&&0x3==_0x28b8ca&&_0x2e71fb['start']['isBefore'](_0x39166c['start'])){const _0x2081c8=_0x2e71fb['end']['nodeAfter'],_0x4e9284=_0x39166c['start']['nodeBefore'];return _0x3ff1d4['isBlockImage'](_0x2081c8)&&_0x2081c8===_0x4e9284;}return!0x1;}function _0x2ca69c(_0x15ca33,_0x4169ed){return _0x3a70aa(_0x15ca33,_0x4169ed)?[_0x15ca33,_0x4169ed]:_0x3a70aa(_0x4169ed,_0x15ca33)?[_0x4169ed,_0x15ca33]:null;}_0x41026a['plugins']['has']('ImageResize')&&(_0x4674ad['enableDefaultAttributesIntegration']('resizeImage'),_0x4674ad['registerBlockAttribute']('resizedWidth'),_0x4674ad['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x15551d,'FORMAT_IMAGE_SIZE'))),_0x41026a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4674ad['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4674ad['registerBlockAttribute']('alt')),_0x41026a['plugins']['has']('PictureEditing')&&(_0x4674ad['registerBlockAttribute']('sources'),_0x4674ad['descriptionFactory']['registerDescriptionCallback'](_0x1cff19=>{if('attribute'!=_0x1cff19['type'])return;const {data:_0x18de7b}=_0x1cff19;return _0x18de7b&&'sources'==_0x18de7b['key']?{'type':'format','content':''}:void 0x0;})),_0x41026a['plugins']['has']('ImageSizeAttributes')&&(_0x4674ad['registerBlockAttribute']('width'),_0x4674ad['registerBlockAttribute']('height'),_0x4674ad['descriptionFactory']['registerDescriptionCallback'](_0x41ed85=>{if('attribute'!=_0x41ed85['type'])return;const {data:_0x1280ac}=_0x41ed85;return!_0x1280ac||'width'!=_0x1280ac['key']&&'height'!=_0x1280ac['key']?void 0x0:{'type':'format','content':''};})),_0x4674ad['descriptionFactory']['registerDescriptionCallback'](_0x2017f6=>{if(!!_0x3f5599['find'](({type:_0x231353,subType:_0x33a25b})=>_0x2017f6['type']==_0x231353&&_0x2017f6['subType']==_0x33a25b))return _0x2017f6['previous']?{}:void 0x0;}),_0x4674ad['descriptionFactory']['registerDescriptionCallback'](_0x46e949=>{if('insertion'==_0x46e949['type']||'deletion'==_0x46e949['type']){const _0x3722e4=_0x46e949['getContainedElement']();if(_0x3722e4&&_0x3722e4['is']('element','caption'))return{'type':'insertion'==_0x46e949['type']?'addObject':'removeObject','element':_0x3722e4,'quantity':0x1};}}),_0x4674ad['descriptionFactory']['registerDescriptionCallback'](_0x58b762=>'formatBlock'==_0x58b762['type']&&'convertInlineImageToBlock'==_0x58b762['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58b762['type']&&'convertBlockImageToInline'==_0x58b762['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4674ad['descriptionFactory']['registerDescriptionCallback'](_0x329ed4=>{if('attribute'!=_0x329ed4['type'])return;const {data:_0x2d33e7}=_0x329ed4;if(!_0x2d33e7||'alt'!=_0x2d33e7['key'])return;const _0x10f87d=_0x2d33e7['newValue'];return _0x10f87d?{'type':'format','content':o(_0x15551d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10f87d+'\x22')}:{'type':'format','content':o(_0x15551d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x538da1=this['editor'],_0x2fac49=_0x538da1['locale'];_0x538da1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36378c=>{if('formatBlock'!=_0x36378c['type']&&'formatInline'!=_0x36378c['type'])return;const {data:_0x4345df}=_0x36378c;if(_0x4345df){if('imageTextAlternative'==_0x4345df['commandName']){const _0x50e25b=_0x4345df['commandParams'][0x0]['newValue'];return _0x50e25b?{'type':'format','content':o(_0x2fac49,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50e25b+'\x22')}:{'type':'format','content':o(_0x2fac49,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4345df['commandName']){const _0x3e6cc2=_0x4345df['commandParams'][0x0]['width'];return _0x3e6cc2?{'type':'format','content':o(_0x2fac49,'*Set\x20image\x20width:*\x20%0',_0x3e6cc2)}:{'type':'format','content':o(_0x2fac49,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x463932{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x29b73a=this['editor']['locale'],_0x4a8836=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a8836['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4a8836['registerBlockAttribute']('src'),_0x4a8836['descriptionFactory']['registerDescriptionCallback'](_0x5a88dc=>{if('attribute'!=_0x5a88dc['type'])return;const {data:_0x445e48}=_0x5a88dc;return _0x445e48&&'src'==_0x445e48['key']?_0x445e48['newValue']&&_0x445e48['oldValue']?{'type':'format','content':o(_0x29b73a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2624f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2624f6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2624f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2624f6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2624f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56cda3=this['editor'],_0x2e4bbd=_0x56cda3['locale'];_0x56cda3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1722fe=>{if('formatBlock'!=_0x1722fe['type']&&'formatInline'!=_0x1722fe['type'])return;const {data:_0x3a8945}=_0x1722fe;if(!_0x3a8945||'replaceImageSource'!=_0x3a8945['commandName'])return;return{'type':'format','content':o(_0x2e4bbd,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x463932{['afterInit'](){const _0x56a41b=this['editor'];if(!_0x56a41b['plugins']['has']('ImageStyleEditing'))return;const _0x95dad9=_0x56a41b['plugins']['get']('TrackChangesEditing'),_0x45df89=_0x56a41b['plugins']['get']('ImageUtils'),_0x2f2577={};_0x95dad9['enableCommand']('imageStyle',(_0x10ef1b,_0x27ca26)=>{const _0x1af8a1=_0x56a41b['plugins']['get']('Users')['me'],_0x38715f=_0x56a41b['commands']['get']('imageStyle');let _0x2d9abd=_0x45df89['getClosestSelectedImageElement'](_0x56a41b['model']['document']['selection']),_0x46fb58=_0x56a41b['model']['createRangeOn'](_0x2d9abd),_0x13cd90=_0x38715f['value'];if(_0x13cd90==_0x27ca26['value'])return;const _0x198a5c={'commandName':'imageStyle','commandParams':[_0x27ca26],'formatGroupId':_0x8b70ee()};_0x56a41b['model']['change'](()=>{if(_0x95dad9['getSuggestions']()['filter'](_0x84d253=>_0x84d253['isInContent']&&_0x1af8a1==_0x84d253['author']&&('formatBlock'==_0x84d253['type']||'formatInline'==_0x84d253['type'])&&('imageStylePreApply'==_0x84d253['subType']||'imageStylePostApply'==_0x84d253['subType'])&&_0x84d253['getFirstRange']()['isEqual'](_0x46fb58))['forEach'](_0x35698d=>_0x95dad9['discardSuggestion'](_0x35698d['head'])),_0x2d9abd=_0x45df89['getClosestSelectedImageElement'](_0x56a41b['model']['document']['selection']),_0x46fb58=_0x56a41b['model']['createRangeOn'](_0x2d9abd),_0x38715f['refresh'](),_0x56a41b['commands']['get']('imageTypeInline')['refresh'](),_0x56a41b['commands']['get']('imageTypeBlock')['refresh'](),_0x13cd90=_0x38715f['value'],_0x13cd90!=_0x27ca26['value'])return _0x45df89['isInlineImage'](_0x2d9abd)&&_0x38715f['shouldConvertImageType'](_0x27ca26['value'],_0x2d9abd)?(_0x10ef1b({..._0x27ca26,'setImageSizes':!0x1}),_0x2d9abd=_0x45df89['getClosestSelectedImageElement'](_0x56a41b['model']['document']['selection']),void _0x95dad9['markBlockFormat'](_0x2d9abd,{..._0x198a5c,'commandReversedParams':[{'value':_0x13cd90||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45df89['isBlockImage'](_0x2d9abd)?_0x95dad9['markBlockFormat'](_0x2d9abd,_0x198a5c,[],'imageStylePostApply'):_0x95dad9['markInlineFormat'](_0x46fb58,_0x198a5c,'imageStylePostApply'));});});for(const _0x43deeb of _0x56a41b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2f2577[_0x43deeb['name']]=_0x43deeb['title']['toLowerCase']();_0x95dad9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x95dad9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x95dad9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x95dad9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5ca9d2])=>{_0x45df89['setImageNaturalSizeAttributes'](_0x5ca9d2['getContainedElement']());}),_0x95dad9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1f4a11,_0xb982a6)=>{_0x95dad9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1f4a11,{'commandName':_0xb982a6['commandName'],'commandParams':_0xb982a6['commandReversedParams']});}),_0x95dad9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x218eff,_0x1b1c0c){if(_0x511d8d(_0x218eff,_0x1b1c0c))return[_0x218eff,_0x1b1c0c];if(_0x511d8d(_0x1b1c0c,_0x218eff))return[_0x1b1c0c,_0x218eff];return null;});const _0x2a24b5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x511d8d(_0x22dde2,_0x1fd75e){const _0x407785=_0x2a24b5['findIndex'](({type:_0x10b1b0,subType:_0x3e29e9})=>_0x22dde2['type']==_0x10b1b0&&_0x22dde2['subType']==_0x3e29e9),_0x336c5c=_0x2a24b5['findIndex'](({type:_0x2376e2,subType:_0x58ae52})=>_0x1fd75e['type']==_0x2376e2&&_0x1fd75e['subType']==_0x58ae52);if(_0x407785<0x0||_0x336c5c<0x0)return!0x1;const _0x32b972=_0x22dde2['getFirstRange'](),_0x487bb6=_0x1fd75e['getFirstRange']();if((0x0==_0x407785||0x1==_0x407785)&&0x2==_0x336c5c&&_0x32b972['isIntersecting'](_0x487bb6))return!0x0;if(0x2==_0x407785&&0x3==_0x336c5c){const _0x3beef9=_0x95dad9['_findSuggestions'](_0x32b972,'insertion')['filter'](({suggestion:_0x435574,meta:_0x2c1780})=>_0x2c1780['isOwn']&&'convertInlineImageToBlock'==_0x435574['subType']);if(_0x3beef9['length']>0x1&&_0x487bb6['end']['isEqual'](_0x32b972['start']))return!0x0;if(0x1==_0x3beef9['length']&&(_0x32b972['start']['isEqual'](_0x487bb6['end'])||_0x32b972['end']['isEqual'](_0x487bb6['start'])))return!0x0;}if(0x3==_0x407785&&0x3==_0x336c5c&&_0x32b972['start']['isBefore'](_0x487bb6['start'])){const _0x2f1f13=_0x32b972['end']['nodeAfter'],_0x123d4=_0x487bb6['start']['nodeBefore'];return _0x45df89['isBlockImage'](_0x2f1f13)&&_0x2f1f13===_0x123d4;}return!0x1;}_0x56a41b['model']['document']['registerPostFixer'](()=>{let _0x3d18d7=!0x1;const _0x11f43b=Array['from'](_0x56a41b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x442f30,data:_0x26ae15}of _0x11f43b){const {group:_0x12e248,type:_0x4884df,subType:_0x2d3c80,id:_0x3c7bbe}=_0x95dad9['_splitMarkerName'](_0x442f30);if('suggestion'==_0x12e248&&_0x95dad9['hasSuggestion'](_0x3c7bbe)){if('formatBlock'==_0x4884df&&('imageStylePreApply'==_0x2d3c80||'imageStylePostApply'==_0x2d3c80)){const _0x173e8d=_0x95dad9['getSuggestion'](_0x3c7bbe);if(_0x26ae15['newRange']){const _0x143648=_0x173e8d['getFirstRange']()['getContainedElement']();if(_0x45df89['isBlockImage'](_0x143648))continue;_0x95dad9['discardSuggestion'](_0x173e8d),_0x3d18d7=!0x0;}}if('insertion'==_0x4884df&&'imageCaption'==_0x2d3c80&&!_0x26ae15['newRange']){const _0x16ca24=_0x95dad9['getSuggestion'](_0x3c7bbe);_0x16ca24['next']&&_0x16ca24['next']['isInContent']&&(_0x95dad9['discardSuggestion'](_0x16ca24['next']),_0x3d18d7=!0x0);}}}return _0x3d18d7;}),this['_registerLegacyDescription'](_0x2f2577);}['_registerLegacyDescription'](_0x2b6409){const _0x3aa332=this['editor'],_0x302e91=_0x3aa332['locale'];_0x3aa332['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fd2ed=>{if('formatBlock'!=_0x4fd2ed['type']&&'formatInline'!=_0x4fd2ed['type'])return;const {data:_0x332a5a}=_0x4fd2ed;if(!_0x332a5a||'imageStyle'!=_0x332a5a['commandName'])return;const _0x77f2e7=_0x332a5a['commandParams'][0x0]['value'];return _0x112ad4('side'===_0x77f2e7?o(_0x302e91,'FORMAT_SIDE_IMAGE'):_0x2b6409[_0x77f2e7]||_0x77f2e7);function _0x112ad4(_0x210593){return{'type':'format','content':o(_0x302e91,'*Format:*\x20%0',_0x210593)};}});}}class ct extends _0x463932{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5b454d){super(_0x5b454d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f23ad=this['editor'],_0x4cca1e=_0x1f23ad['commands']['get']('importWord'),_0x534d6e=_0x1f23ad['commands']['get']('trackChanges');_0x4cca1e&&(_0x4cca1e['on']('execute',(_0x4530a1,[,_0x1fa64f])=>{this['_trackChangesValueDuringImport']=_0x534d6e['value'],_0x1fa64f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cca1e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cca1e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x534d6e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f23ad['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x9d8a1e,_0x1aa4ec){const {suggestions:_0xb5ae65}=_0x1aa4ec,_0x13f12f=this['editor']['commands']['get']('trackChanges'),_0x4bcb85=_0x13f12f['value'];this['_trackChangesValueDuringImport']!==_0x4bcb85&&(_0x13f12f['execute'](),this['_trackChangesExecuted']=!0x0),_0xb5ae65&&_0xb5ae65['forEach'](({id:_0x2e9517,type:_0x3c8c28,author:_0x58cd92,created_at:_0x2f8745})=>{const _0x47022e={'id':_0x2e9517,'type':_0x3c8c28,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x58cd92,'createdAt':_0x2f8745?new Date(_0x2f8745):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x47022e);});}}class ut extends _0x463932{['afterInit'](){const _0x1efcf5=this['editor'],_0xb04de=_0x1efcf5['plugins']['get']('TrackChangesEditing');if(_0x1efcf5['plugins']['has']('IndentEditing')&&(_0xb04de['enableCommand']('indent'),_0xb04de['enableCommand']('outdent')),_0x1efcf5['plugins']['has']('IndentBlock')){for(const _0xef77f9 of['indentBlock','outdentBlock'])_0xb04de['enableDefaultAttributesIntegration'](_0xef77f9);}const _0x508bbc=_0x1efcf5['locale'];_0xb04de['registerBlockAttribute']('blockIndent'),_0xb04de['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x508bbc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x272398=this['editor'],_0x1e4398=_0x272398['locale'],_0x1027b5=_0x272398['plugins']['get']('TrackChangesEditing');_0x1027b5['descriptionFactory']['registerDescriptionCallback'](_0xac9e22=>{if('formatBlock'!=_0xac9e22['type'])return;const {data:_0x5aaf4c}=_0xac9e22;if(!_0x5aaf4c)return;if('indentBlock'!=_0x5aaf4c['commandName']&&'outdentBlock'!=_0x5aaf4c['commandName'])return;const _0x567b6d=_0xac9e22['getItems']()[0x0],_0x3d1d83=_0x1027b5['descriptionFactory']['getItemLabel'](_0x567b6d);return'indentBlock'==_0x5aaf4c['commandName']?{'type':'format','content':o(_0x1e4398,'*Indent:*\x20%0',_0x3d1d83)}:'outdentBlock'==_0x5aaf4c['commandName']?{'type':'format','content':o(_0x1e4398,'*Outdent:*\x20%0',_0x3d1d83)}:void 0x0;});}}class ft extends _0x463932{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x463932{['afterInit'](){const _0x1aae6e=this['editor'];if(!_0x1aae6e['plugins']['has']('LinkEditing'))return;const _0x18aab5=_0x1aae6e['plugins']['get']('TrackChangesEditing'),_0x4e3223=_0x1aae6e['commands']['get']('link');_0x18aab5['enableDefaultAttributesIntegration']('link'),_0x18aab5['enableDefaultAttributesIntegration']('unlink'),_0x18aab5['registerInlineAttribute']('linkHref');for(const _0x3b0a9a of _0x4e3223['manualDecorators'])_0x18aab5['registerInlineAttribute'](_0x3b0a9a['id']),_0x18aab5['descriptionFactory']['registerAttributeLabel'](_0x3b0a9a['id'],'link\x20('+_0x3b0a9a['label']['toLowerCase']()+')');_0x18aab5['descriptionFactory']['registerDescriptionCallback'](_0x307ac3=>{if('attribute'!=_0x307ac3['type'])return;const {data:_0x1f42e9}=_0x307ac3;if(!_0x1f42e9||'linkHref'!=_0x1f42e9['key'])return;const _0x2034c3=_0x1f42e9['newValue'],_0x1e5144=_0x1aae6e['locale'];return{'type':'format','content':null==_0x2034c3?o(_0x1e5144,'*Remove\x20link*'):o(_0x1e5144,'*Set\x20link:*\x20%0','\x22'+_0x2034c3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x154f3b=this['editor'],_0x182e42=_0x154f3b['locale'];_0x154f3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x210103=>{if('formatInline'!=_0x210103['type'])return;const {data:_0x47e947}=_0x210103;if(_0x47e947){if('link'==_0x47e947['commandName']){const _0xc607ee=_0x47e947['commandParams'][0x0];return{'type':'format','content':o(_0x182e42,'*Set\x20link:*\x20%0','\x22'+_0xc607ee+'\x22')};}return'unlink'==_0x47e947['commandName']?{'type':'format','content':o(_0x182e42,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x463932{['afterInit'](){const _0x588ee9=this['editor'],_0x2e98d9=_0x588ee9['locale'];if(!_0x588ee9['plugins']['has']('LegacyListEditing'))return;const _0x31fadd=_0x588ee9['plugins']['get']('TrackChangesEditing'),_0x58fd89=_0x588ee9['plugins']['has']('LegacyTodoListEditing');function _0x3a9e58(_0x458f83){return()=>{const _0xeef87b=_0x588ee9['model']['document']['selection'],_0x1e071b=_0x588ee9['commands']['get'](_0x458f83);if(_0x1e071b['value'])return void _0x588ee9['execute']('paragraph',{});const _0x395941=_0x458f83['slice'](0x0,-0x4),_0x2726bd=function(_0x58c475,_0x54e7b1,_0x59fcc0){let _0x3e1fb9=Array['from'](_0x58c475)['filter'](_0x4a14d9=>function(_0x4bba6f,_0xac320a){return _0xac320a['checkChild'](_0x4bba6f['parent'],'listItem')&&!_0xac320a['isObject'](_0x4bba6f);}(_0x4a14d9,_0x59fcc0));_0x3e1fb9=_0x3e1fb9['filter'](_0x34182b=>!_0x34182b['is']('element','listItem')||_0x34182b['getAttribute']('listType')!=_0x54e7b1);const _0x3a4b2f=new Set();for(const _0x25b2f8 of _0x3e1fb9)_0x25b2f8['is']('element','listItem')?_0x3a4b2f['add'](Le(_0x25b2f8)):_0x3a4b2f['add'](_0x25b2f8);return Array['from'](_0x3a4b2f);}(_0xeef87b['getSelectedBlocks'](),_0x395941,_0x588ee9['model']['schema']);_0x588ee9['model']['change'](()=>{for(const _0x42d857 of _0x2726bd)_0x31fadd['markBlockFormat'](_0x42d857,{'commandName':_0x458f83,'commandParams':[{'forceValue':!_0x1e071b['value']}],'formatGroupId':'blockName'},Ee(_0x42d857));});};}function _0x547eea(_0x4a0650){return()=>{const _0x4e0296=function(_0x47263a){let _0x4a516c=Array['from'](_0x47263a);const _0x2663a7=_0x4a516c['findIndex'](_0x5078b2=>'listItem'!=_0x5078b2['name']);return _0x2663a7>-0x1&&(_0x4a516c=_0x4a516c['slice'](0x0,_0x2663a7)),_0x4a516c;}(_0x588ee9['model']['document']['selection']['getSelectedBlocks']()),_0x31b7e5=_0x588ee9['model']['createRange'](_0x588ee9['model']['createPositionAt'](_0x4e0296[0x0],'before'),_0x588ee9['model']['createPositionAt'](_0x4e0296[_0x4e0296['length']-0x1],'end'));_0x588ee9['model']['change'](()=>{_0x31fadd['markBlockFormat'](_0x31b7e5,{'commandName':_0x4a0650,'commandParams':[],'formatGroupId':'listIndent'},function(_0x59760f){const _0x2e91f8=new Set();for(const _0x4ae2d9 of _0x59760f){let _0x23e77c=_0x4ae2d9['nextSibling'];for(;_0x23e77c&&_0x23e77c['getAttribute']('listIndent')>_0x4ae2d9['getAttribute']('listIndent');)_0x2e91f8['add'](_0x23e77c),_0x23e77c=_0x23e77c['nextSibling'];}return Array['from'](_0x2e91f8);}(_0x4e0296));});};}_0x31fadd['enableCommand']('numberedList',_0x3a9e58('numberedList')),_0x31fadd['enableCommand']('bulletedList',_0x3a9e58('bulletedList')),_0x58fd89&&_0x31fadd['enableCommand']('todoList',_0x3a9e58('todoList')),_0x31fadd['enableCommand']('indentList',_0x547eea('indentList')),_0x31fadd['enableCommand']('outdentList',_0x547eea('outdentList')),_0x58fd89&&_0x31fadd['enableCommand']('checkTodoList',()=>{const _0x2efc27=_0x588ee9['commands']['get']('checkTodoList'),_0x3afc83=Array['from'](_0x2efc27['_selectedElements']);_0x3afc83['filter'](_0x59033c=>_0x59033c['getAttribute']('todoListChecked')!=_0x2efc27['value']),_0x588ee9['model']['change'](()=>{for(const _0x5edf72 of _0x3afc83)_0x31fadd['markBlockFormat'](_0x5edf72,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2efc27['value']}]});});}),_0x31fadd['descriptionFactory']['registerElementLabel']('listItem',_0x3d6824=>o(_0x2e98d9,'ELEMENT_LIST_ITEM',_0x3d6824)),_0x31fadd['descriptionFactory']['registerDescriptionCallback'](_0x414322=>{if('formatBlock'!=_0x414322['type']&&'formatInline'!=_0x414322['type'])return;const {data:_0x464bd7}=_0x414322;if(_0x464bd7){if('numberedList'==_0x464bd7['commandName']||'bulletedList'==_0x464bd7['commandName']||'todoList'==_0x464bd7['commandName'])switch(_0x464bd7['commandName']['replace']('List','')){case'bulleted':return _0x34b67b(o(_0x2e98d9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34b67b(o(_0x2e98d9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34b67b(o(_0x2e98d9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x464bd7['commandName'])return{'type':'format','content':o(_0x2e98d9,'*Indent:*\x20%0',o(_0x2e98d9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x464bd7['commandName'])return{'type':'format','content':o(_0x2e98d9,'*Outdent:*\x20%0',o(_0x2e98d9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x464bd7['commandName'])return _0x464bd7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e98d9,'*Check\x20item*')}:{'type':'format','content':o(_0x2e98d9,'*Uncheck\x20item*')};}function _0x34b67b(_0x227c73){return{'type':'format','content':o(_0x2e98d9,'*Change\x20to:*\x20%0',_0x227c73)};}});}}function Le(_0x439af5){const _0x1d8b84=_0x439af5['getAttribute']('listIndent');if(0x0==_0x1d8b84)return _0x439af5;let _0x194b8e=_0x439af5;for(;_0x439af5['previousSibling']&&_0x439af5['previousSibling']['is']('element','listItem');){const _0x2231ef=_0x439af5['previousSibling']['getAttribute']('listIndent');if(_0x2231ef==_0x1d8b84)_0x194b8e=_0x439af5['previousSibling'];else{if(_0x2231ef<_0x1d8b84)break;}_0x439af5=_0x439af5['previousSibling'];}return _0x194b8e;}function Ee(_0x1b0956){const _0x4635e6=[];if(_0x1b0956['is']('element','listItem')&&_0x1b0956['getAttribute']('listIndent')>0x0){let _0x4bd164=_0x1b0956['nextSibling'];for(;_0x4bd164&&'listItem'==_0x4bd164['name']&&_0x4bd164['getAttribute']('listIndent')==_0x1b0956['getAttribute']('listIndent');)_0x4635e6['push'](_0x4bd164),_0x4bd164=_0x4bd164['nextSibling'];}return _0x4635e6;}class Q extends _0x463932{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x8e78c=this['editor']['config']['get']('list.properties'),_0x4f9136=this['editor']['plugins']['get']('TrackChangesEditing');_0x8e78c['styles']&&_0x4f9136['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x8e78c['reversed']&&_0x4f9136['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x8e78c['startIndex']&&_0x4f9136['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4f9136['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x59f603,_0x998cc7={}){const _0x475083=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51f6df=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x475083['markMultiRangeBlockFormat'](_0x51f6df,{'commandName':'listStyle','commandParams':[{'type':_0x998cc7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3fc1aa,_0x599123={}){const _0x50daad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17bcdd=this['_getSuggestionBlocks'](_0x3c3d27=>_0x3c3d27['is']('element','listItem')&&'numbered'===_0x3c3d27['getAttribute']('listType'));if(_0x17bcdd['length']<0x1)return;const _0x3215fd=_0x17bcdd['map'](_0x211d8f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x211d8f,'before'),this['editor']['model']['createPositionAt'](_0x211d8f,0x0)));this['editor']['model']['change'](()=>{_0x50daad['markMultiRangeBlockFormat'](_0x3215fd,{'commandName':'listReversed','commandParams':[{'reversed':_0x599123['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4cbd0f,_0x2beb4d={}){const _0x57be82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a04ce=this['_getSuggestionBlocks'](_0x49aa7c=>_0x49aa7c['is']('element','listItem')&&'numbered'===_0x49aa7c['getAttribute']('listType'));if(_0x5a04ce['length']<0x1)return;const _0x1f1169=_0x5a04ce['map'](_0x47bf09=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47bf09,'before'),this['editor']['model']['createPositionAt'](_0x47bf09,0x0)));this['editor']['model']['change'](()=>{_0x57be82['markMultiRangeBlockFormat'](_0x1f1169,{'commandName':'listStart','commandParams':[{'startIndex':_0x2beb4d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x372d73){if('formatBlock'!=_0x372d73['type']&&'formatInline'!=_0x372d73['type'])return;const _0x1b0ff6=this['editor']['locale'],{data:_0x2dd8dc}=_0x372d73;if(!_0x2dd8dc)return;let _0xe8ed5f,_0x30057c;switch(_0x2dd8dc['commandName']){case'listStyle':_0xe8ed5f='*Change\x20to:*\x20%0',_0x30057c={'type':'format','content':o(_0x1b0ff6,_0xe8ed5f,o(_0x1b0ff6,this['_getTranslationKeyForListStyle'](_0x2dd8dc['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe8ed5f=_0x2dd8dc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30057c={'type':'format','content':o(_0x1b0ff6,_0xe8ed5f)};break;case'listStart':_0xe8ed5f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30057c={'type':'format','content':o(_0x1b0ff6,_0xe8ed5f,_0x2dd8dc['commandParams'][0x0]['startIndex'])};}return _0x30057c;}['_getSuggestionBlocksForListStyle'](){const _0x5c920b=this['editor']['plugins']['get']('LegacyListUtils');let _0x819f31=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x819f31[0x0]?.['is']('element','listItem')&&_0x819f31['unshift'](..._0x5c920b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x819f31[_0x819f31['length']-0x1]?.['is']('element','listItem')&&_0x819f31['push'](..._0x5c920b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x819f31=[...new Set(_0x819f31)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x819f31=_0x819f31['filter'](_0x22fa49=>_0x22fa49['is']('element','listItem'))),_0x819f31;}['_getSuggestionBlocks'](_0x3ed30f){const _0x41318f=this['editor']['plugins']['get']('LegacyListUtils');let _0x188dd0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3ed30f)['map'](_0x400c04=>{const _0x29301b=this['editor']['model']['createPositionAt'](_0x400c04,0x0);return[..._0x41318f['getSiblingNodes'](_0x29301b,'backward'),..._0x41318f['getSiblingNodes'](_0x29301b,'forward')];})['flat']();return _0x188dd0=[...new Set(_0x188dd0)],_0x188dd0;}['_getTranslationKeyForListStyle'](_0x55e61a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x55e61a)||'default')['toUpperCase']()+'_LIST_'+_0x55e61a['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x463932{['afterInit'](){const _0xb2afa4=this['editor'];if(!_0xb2afa4['plugins']['has']('MediaEmbedEditing'))return;const _0x3d50d6=_0xb2afa4['plugins']['get']('TrackChangesEditing'),_0x2a889b=_0xb2afa4['locale'];_0x3d50d6['enableCommand']('mediaEmbed'),_0x3d50d6['descriptionFactory']['registerElementLabel']('media',_0x9c8bd9=>o(_0x2a889b,'ELEMENT_MEDIA',_0x9c8bd9)),_0xb2afa4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x39e3e2,{writer:_0x392ea9,options:_0x3a4fc7})=>{if(_0x3a4fc7['showSuggestionHighlights'])return _0x392ea9['createEmptyElement']('div');},'converterPriority':'high'}),_0xb2afa4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x255702,_0x49433e,_0x471e6b)=>{_0x471e6b['options']['showSuggestionHighlights']&&_0x255702['stop']();},{'priority':'high'});}}class dt extends _0x463932{['afterInit'](){const _0x295aeb=this['editor'];_0x295aeb['plugins']['has']('MentionEditing')&&_0x295aeb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x463932{['afterInit'](){const _0x466444=this['editor'];if(!_0x466444['plugins']['has']('MergeFieldsEditing'))return;const _0x65977c=_0x466444['plugins']['get']('TrackChangesEditing'),_0x4c94a9=_0x466444['locale'];_0x65977c['enableCommand']('insertMergeField'),_0x65977c['enableCommand']('insertMergeFieldBlock'),_0x65977c['enableCommand']('insertMergeFieldImage'),_0x65977c['descriptionFactory']['registerElementLabel']('mergeField',_0x849f2b=>o(_0x4c94a9,'ELEMENT_MERGE_FIELD',_0x849f2b)),_0x65977c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x498ae2=>o(_0x4c94a9,'ELEMENT_MERGE_FIELD',_0x498ae2)),_0x65977c['descriptionFactory']['registerDescriptionCallback'](_0x1ed155=>{if('insertion'!=_0x1ed155['type']&&'deletion'!=_0x1ed155['type'])return;const _0x27783e=_0x1ed155['getContainedElement']();if(null==_0x27783e)return;const _0x4f9b6c=_0x466444['plugins']['get']('MergeFieldsEditing');let _0x38abb8;switch(_0x4f9b6c['getMergeFieldType'](_0x27783e)){case null:return;case'image':{const _0x38897b=_0x4f9b6c['unwrapAffixes'](_0x27783e['getAttribute']('src'));_0x38abb8=_0x4f9b6c['getLabel'](_0x38897b)||_0x38897b;break;}default:{const _0x4b16ae=_0x27783e['getAttribute']('id');_0x38abb8=_0x4f9b6c['getLabel'](_0x4b16ae)||_0x4b16ae;break;}}return'insertion'==_0x1ed155['type']?{'type':'insertion','content':o(_0x4c94a9,'*Insert:*\x20%0','\x22'+_0x38abb8+'\x22\x20'+o(_0x4c94a9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4c94a9,'*Remove:*\x20%0','\x22'+_0x38abb8+'\x22\x20'+o(_0x4c94a9,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x463932{['afterInit'](){const _0x574c6f=this['editor'],_0x49945d=_0x574c6f['plugins']['get']('TrackChangesEditing');_0x574c6f['plugins']['has']('MultiLevelList')&&(_0x49945d['enableDefaultAttributesIntegration']('multiLevelList'),_0x49945d['registerBlockAttribute']('listMarkerStyle'),_0x49945d['descriptionFactory']['registerDescriptionCallback'](_0x52294f=>this['handleDescriptions'](_0x52294f)));}['handleDescriptions'](_0x57cdd6){const _0x5e3246=this['editor']['locale'],{data:_0x3330c1}=_0x57cdd6,_0x55be2b={'type':'format','content':''};if(_0x3330c1&&'listMarkerStyle'==_0x3330c1['key']){if(!_0x3330c1['oldValue'])return{'type':'format','content':o(_0x5e3246,'*Set\x20format:*\x20%0',o(_0x5e3246,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3330c1['newValue']+')'};if(!_0x3330c1['newValue']){let _0x57a324=_0x57cdd6['head'];for(;_0x57a324;){if(_0x57a324['data']&&'listType'==_0x57a324['data']['key']&&_0x57a324['data']['newValue'])return _0x55be2b;_0x57a324=_0x57a324['next'];}return{'type':'format','content':o(_0x5e3246,'*Remove\x20format:*\x20%0',o(_0x5e3246,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3330c1['oldValue']+')'};}}}}class kt extends _0x463932{['afterInit'](){const _0x3b1f49=this['editor'];if(!_0x3b1f49['plugins']['has']('PageBreakEditing'))return;_0x3b1f49['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3b29c6=_0x3b1f49['plugins']['get']('TrackChangesEditing'),_0x16e460=_0x3b1f49['locale'];_0x3b29c6['descriptionFactory']['registerElementLabel']('pageBreak',_0x995a49=>o(_0x16e460,'ELEMENT_PAGE_BREAK',_0x995a49));}}class bt extends _0x463932{['afterInit'](){const _0x567bbd=this['editor'];if(!_0x567bbd['plugins']['has']('Paragraph'))return;const _0x591154=_0x567bbd['locale'],_0x462567=_0x567bbd['plugins']['get']('TrackChangesEditing');_0x462567['descriptionFactory']['registerElementLabel']('paragraph',_0x4d35d8=>o(_0x591154,'ELEMENT_PARAGRAPH',_0x4d35d8)),_0x462567['enableDefaultAttributesIntegration']('paragraph'),_0x462567['enableCommand']('insertParagraph'),_0x567bbd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x567bbd),{'priority':'highest'}),_0x567bbd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2552e0,_0x1c4e12,_0x30fce4)=>{_0x30fce4['options']['showSuggestionHighlights']&&nr(_0x567bbd,{'showActiveMarker':!0x1})(_0x2552e0,_0x1c4e12,_0x30fce4);},{'priority':'highest'});const _0x552a82=_0x462567['descriptionFactory'];_0x552a82['registerDescriptionCallback'](_0x2f72ae=>{if('insertion'!==_0x2f72ae['type'])return;const {start:_0x50cdbc,end:_0x31e789}=_0x2f72ae['getFirstRange']();if(!_0x50cdbc['isTouching'](_0x31e789)||!_0x50cdbc['nodeAfter'])return;const _0x4989bf=_0x567bbd['model']['schema'],_0x36699d=_0x50cdbc['nodeAfter'];return _0x4989bf['isBlock'](_0x36699d)&&!_0x4989bf['isLimit'](_0x36699d)&&_0x4989bf['checkChild'](_0x36699d,'$text')?{'type':'insertion','content':o(_0x591154,'*Insert:*\x20%0',_0x552a82['getItemLabel'](_0x36699d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cb12c=this['editor'],_0xde2661=_0x1cb12c['locale'];_0x1cb12c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32bba0=>{if('formatBlock'!=_0x32bba0['type'])return;const {data:_0x3624e0}=_0x32bba0;return _0x3624e0&&'paragraph'==_0x3624e0['commandName']?{'type':'format','content':o(_0xde2661,'*Change\x20to:*\x20%0',o(_0xde2661,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x12e203,{showActiveMarker:_0xffe97b=!0x0}={}){return(_0x5bb76f,_0x18f195,_0x3fad0a)=>{const _0x53a9b8=_0x12e203['plugins']['get']('TrackChangesEditing'),_0xf311b7=_0x18f195['markerRange']['start'],_0x416920=_0x18f195['markerRange']['end'],_0x22a184=_0x12e203['model']['schema'];if(!_0xf311b7['isTouching'](_0x416920)||!_0xf311b7['nodeAfter'])return;const _0x4b12e2=_0xf311b7['nodeAfter'];if(_0x22a184['isBlock'](_0x4b12e2)&&!_0x22a184['isLimit'](_0x4b12e2)&&_0x22a184['checkChild'](_0x4b12e2,'$text')){if(!_0x3fad0a['consumable']['consume'](_0x18f195['markerRange'],_0x5bb76f['name']))return;const {authorId:_0xc81ad1}=_0x53a9b8['_splitMarkerName'](_0x18f195['markerName']),_0xdf84d1=_0x3fad0a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xc81ad1}),_0x32d41d=_0x3fad0a['mapper']['toViewPosition'](_0x416920);_0xffe97b&&_0x53a9b8['activeMarkers']['includes'](_0x18f195['markerName'])&&_0x3fad0a['writer']['addClass']('ck-suggestion-marker--active',_0xdf84d1),_0x3fad0a['writer']['insert'](_0x32d41d,_0xdf84d1),_0x3fad0a['mapper']['bindElementToMarker'](_0xdf84d1,_0x18f195['markerName']);}};}class yt extends _0x463932{['afterInit'](){const _0x5e050d=this['editor'];_0x5e050d['commands']['get']('replaceSource')&&_0x5e050d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x463932{['afterInit'](){const _0x52a18a=this['editor'];if(!_0x52a18a['plugins']['has']('RemoveFormatEditing'))return;_0x52a18a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e37d8=this['editor'];_0x4e37d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47d0eb=>{if('formatBlock'!=_0x47d0eb['type']&&'formatInline'!=_0x47d0eb['type'])return;const {data:_0x582da2}=_0x47d0eb;return _0x582da2&&'removeFormat'==_0x582da2['commandName']?{'type':'format','content':o(_0x4e37d8['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x463932{['afterInit'](){const _0x2c0fa2=this['editor'];if(!_0x2c0fa2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x348f1c=_0x2c0fa2['plugins']['get']('TrackChangesEditing');_0x348f1c['enableCommand']('goToPreviousRestrictedEditingException'),_0x348f1c['enableCommand']('goToNextRestrictedEditingException');const _0x2c8793=_0x2c0fa2['plugins']['get']('RestrictedEditingModeEditing');_0x2c8793['enableCommand']('trackChanges'),_0x2c8793['enableCommand']('acceptSuggestion'),_0x2c8793['enableCommand']('discardSuggestion'),_0x2c8793['enableCommand']('acceptAllSuggestions'),_0x2c8793['enableCommand']('discardAllSuggestions'),_0x2c8793['enableCommand']('acceptSelectedSuggestions'),_0x2c8793['enableCommand']('discardSelectedSuggestions');}}class At extends _0x463932{static get['requires'](){return[_0x2167ac];}['init'](){const _0x429945=this['editor'],_0x23e708=_0x429945['plugins']['get']('TrackChangesEditing');_0x23e708['enableCommand']('shiftEnter'),_0x429945['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x429945),{'priority':'high'}),_0x429945['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x429945),{'priority':'high'}),_0x429945['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x39b121,_0x416258,_0x3a94d5)=>{_0x3a94d5['options']['showSuggestionHighlights']&&je(_0x429945,{'showActiveMarker':!0x1})(_0x39b121,_0x416258,_0x3a94d5);}),_0x23e708['descriptionFactory']['registerElementLabel']('softBreak',_0x37fd78=>o(_0x429945['locale'],'ELEMENT_LINE_BREAK',_0x37fd78));}}function je(_0x46a7eb,{showActiveMarker:_0x3ba878=!0x0}={}){return(_0x57c560,_0x58e029,_0x5f5ce0)=>{const _0xf9cb25=_0x46a7eb['plugins']['get']('TrackChangesEditing');if(!_0x5f5ce0['consumable']['test'](_0x58e029['markerRange'],_0x57c560['name']))return;const _0x432fe2=_0x46a7eb['model'];for(const _0x1db21b of _0x58e029['markerRange']['getItems']()){if(!_0x1db21b['is']('element','softBreak'))continue;const _0x4d32fb='deletion'==_0x58e029['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2b3819}=_0xf9cb25['_splitMarkerName'](_0x58e029['markerName']),_0xf9020=_0x5f5ce0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4d32fb,'data-author-id':_0x2b3819}),_0x28b9a4=_0x5f5ce0['mapper']['toViewPosition'](_0x432fe2['createPositionBefore'](_0x1db21b));_0x3ba878&&_0xf9cb25['activeMarkers']['includes'](_0x58e029['markerName'])&&_0x5f5ce0['writer']['addClass']('ck-suggestion-marker--active',_0xf9020),_0x5f5ce0['writer']['insert'](_0x28b9a4,_0xf9020),_0x5f5ce0['mapper']['bindElementToMarker'](_0xf9020,_0x58e029['markerName']);}};}class It extends _0x463932{['afterInit'](){const _0x55e512=this['editor'],_0x24c2f6=_0x55e512['model'],_0x4dc31a=_0x55e512['locale'];if(!_0x55e512['plugins']['has']('StandardEditingModeEditing'))return;const _0x1686a1=_0x55e512['plugins']['get']('TrackChangesEditing'),_0x1f0cb3='restrictedEditingException',_0x964cc0=_0x55e512['commands']['get'](_0x1f0cb3);_0x1686a1['enableCommand'](_0x1f0cb3,(_0x25abe8,_0x14cc7d={})=>{const _0xe1700=_0x24c2f6['document']['selection'];if(_0xe1700['isCollapsed'])return void _0x25abe8(_0x14cc7d);const _0x4ee62b=void 0x0!==_0x14cc7d['forceValue']?_0x14cc7d['forceValue']:!_0x964cc0['value'];_0x24c2f6['change'](()=>{const _0x2a4026=Array['from'](_0xe1700['getRanges']());for(const _0x58b4bf of _0x2a4026){const _0x2b1c4d=_0x4ee62b?[_0x58b4bf]:io(_0x1f0cb3,_0x58b4bf,_0x24c2f6);for(const _0x38b678 of _0x2b1c4d)_0x1686a1['markInlineFormat'](_0x38b678,{'commandName':_0x1f0cb3,'commandParams':[{'forceValue':_0x4ee62b}]});}});}),_0x1686a1['descriptionFactory']['registerDescriptionCallback'](_0x5b326a=>{if('formatBlock'!=_0x5b326a['type']&&'formatInline'!=_0x5b326a['type'])return;const {data:_0x16f961}=_0x5b326a;return _0x16f961&&_0x16f961['commandName']==_0x1f0cb3?_0x16f961['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dc31a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4dc31a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x463932{['afterInit'](){const _0x185291=this['editor'];if(!_0x185291['plugins']['has']('Style')||!_0x185291['plugins']['has']('DataSchema'))return;const _0x57725b=_0x185291['plugins']['get']('TrackChangesEditing'),_0x49eeb9=_0x185291['locale'],_0x1a45a1=_0x185291['config']['get']('style')||{},_0x49b2f7=_0x185291['plugins']['get']('GeneralHtmlSupport'),_0x5199ab=_0x185291['plugins']['get']('StyleUtils')['normalizeConfig'](_0x185291['plugins']['get']('DataSchema'),_0x1a45a1['definitions']);_0x57725b['enableDefaultAttributesIntegration']('style');const _0x214c0c=new Set();for(const _0x20b51b of _0x5199ab['block']){const _0x5adf76=_0x49b2f7['getGhsAttributeNameForElement'](_0x20b51b['element']);_0x214c0c['add'](_0x5adf76);}const _0x1a669c=new Set();for(const _0x9311ea of _0x5199ab['inline']){const _0xee9198=_0x49b2f7['getGhsAttributeNameForElement'](_0x9311ea['element']);_0x1a669c['add'](_0xee9198);for(const _0x54cfb0 of _0x9311ea['ghsAttributes'])_0x1a669c['add'](_0x54cfb0);}for(const _0x5dc096 of _0x214c0c)_0x57725b['registerBlockAttribute'](_0x5dc096),_0x57725b['descriptionFactory']['registerAttributeLabel'](_0x5dc096,o(_0x49eeb9,'FORMAT_STYLE'));for(const _0x2101ea of _0x1a669c)_0x57725b['registerInlineAttribute'](_0x2101ea),_0x57725b['descriptionFactory']['registerAttributeLabel'](_0x2101ea,o(_0x49eeb9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11bc94=this['editor'],_0x3042f7=_0x11bc94['locale'];_0x11bc94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xec742a=>{if('formatBlock'!=_0xec742a['type']&&'formatInline'!=_0xec742a['type'])return;const {data:_0x3acaf9}=_0xec742a;return _0x3acaf9&&'style'===_0x3acaf9['commandName']?_0x3acaf9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3042f7,'*Set\x20format:*\x20%0',_0x3acaf9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3042f7,'*Remove\x20format:*\x20%0',_0x3acaf9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x463932{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3038e3){super(_0x3038e3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4aedc1=this['editor'],_0x3ef723=_0x4aedc1['model']['document']['selection'];if(!_0x4aedc1['plugins']['has']('TableEditing'))return;const _0x37df86=_0x4aedc1['locale'],_0x130c5a=_0x4aedc1['plugins']['get']('TrackChangesEditing'),_0x432ad6=_0x4aedc1['plugins']['get']('TableUtils');_0x130c5a['descriptionFactory']['registerElementLabel']('table',_0xc5fa55=>o(_0x37df86,'ELEMENT_TABLE',_0xc5fa55)),this['_setupColumnsRowsFixing'](),_0x130c5a['enableCommand']('insertTable'),_0x130c5a['enableCommand']('selectTableRow'),_0x130c5a['enableCommand']('selectTableColumn');for(const _0x1c4876 of['insertTableRowAbove','insertTableRowBelow']){const _0x55685f=_0x4aedc1['commands']['get'](_0x1c4876);_0x130c5a['enableCommand'](_0x1c4876,_0x1817a3=>{_0x4aedc1['model']['change'](_0x13ae26=>{_0x1817a3();const _0x4455bc='above'===_0x55685f['order'],_0x1391fd=_0x432ad6['getSelectionAffectedTableCells'](_0x3ef723),_0x3efa8b=_0x432ad6['getRowIndexes'](_0x1391fd),_0x1fea7a=_0x4455bc?_0x3efa8b['first']-0x1:_0x3efa8b['last']+0x1,_0x30da77=_0x1391fd[0x0]['findAncestor']('table'),_0x129b7e=_0x432ad6['createTableWalker'](_0x30da77,{'startRow':_0x1fea7a,'endRow':_0x1fea7a}),_0x28be62=Array['from'](_0x129b7e)['map'](_0x1974d1=>_0x13ae26['createRangeOn'](_0x1974d1['cell']));_0x130c5a['markMultiRangeInsertion'](_0x28be62,'tableRow');});});}for(const _0x1d9c2b of['insertTableColumnLeft','insertTableColumnRight']){const _0x9e4221=_0x4aedc1['commands']['get'](_0x1d9c2b);_0x130c5a['enableCommand'](_0x1d9c2b,_0x430391=>{_0x4aedc1['model']['change'](_0x494961=>{_0x430391();const _0x47846d='left'===_0x9e4221['order'],_0x2f8834=_0x432ad6['getSelectionAffectedTableCells'](_0x3ef723),_0x1e5388=_0x432ad6['getColumnIndexes'](_0x2f8834),_0x56758b=_0x47846d?_0x1e5388['first']-0x1:_0x1e5388['last']+0x1,_0x163221=_0x2f8834[0x0]['findAncestor']('table'),_0x2f33cb=_0x432ad6['createTableWalker'](_0x163221,{'startRow':0x0,'column':_0x56758b,'includeAllSlots':!0x1}),_0x306e70=Array['from'](_0x2f33cb)['map'](_0x5a5167=>_0x494961['createRangeOn'](_0x5a5167['cell']));_0x130c5a['markMultiRangeInsertion'](_0x306e70,'tableColumn');});});}for(const _0x22d9b1 of['removeTableRow','removeTableColumn']){const _0x455f85=_0x22d9b1['substr'](0xb),_0x50adeb=_0x455f85['toLowerCase'](),_0x1bcd54=_0x50adeb['substr'](0x0,0x3)+'span',_0x38c2e2='table'+_0x455f85,_0x4b0e9e='min'+_0x455f85,_0x11ddc2='max'+_0x455f85;_0x130c5a['enableCommand'](_0x22d9b1,()=>{_0x4aedc1['model']['change'](_0x1e00a4=>{const _0x493f7a=_0x432ad6['getSelectionAffectedTableCells'](_0x3ef723),_0x107f30=_0x493f7a[0x0]['findAncestor']('table');let _0x4122bd;if('removeTableRow'==_0x22d9b1){const _0x598522=_0x432ad6['getRowIndexes'](_0x493f7a);_0x4122bd={'startRow':_0x598522['first'],'endRow':_0x598522['last'],'includeAllSlots':!0x0};}else{const _0xb1a55d=_0x432ad6['getColumnIndexes'](_0x493f7a);_0x4122bd={'startColumn':_0xb1a55d['first'],'endColumn':_0xb1a55d['last'],'includeAllSlots':!0x0};}const _0x5af5d7=_0x432ad6['createTableWalker'](_0x107f30,_0x4122bd),_0x31af99=Array['from'](_0x5af5d7)['map'](({cell:_0x65b584})=>_0x65b584),_0x17d327=Ne(_0x31af99['filter'](_0x4c65bd=>_0x4c65bd['hasAttribute'](_0x1bcd54))),_0x4fe5e8=Ne(_0x31af99['filter'](_0x59dcfe=>!_0x59dcfe['hasAttribute'](_0x1bcd54)))['map'](_0x2c2b51=>_0x1e00a4['createRangeOn'](_0x2c2b51)),_0x5db6ef=_0x130c5a['markMultiRangeDeletion'](_0x4fe5e8,_0x38c2e2);if(_0x5db6ef&&('tableRow'==_0x5db6ef['subType']||'tableColumn'==_0x5db6ef['subType'])){const _0x4162a5=this['_getSuggestionCoords'](_0x5db6ef);for(const _0x2419ac of _0x17d327){const _0x2f19b8=_0x1e00a4['createRangeOn'](_0x2419ac),_0x178ba7=_0x432ad6['getCellLocation'](_0x2419ac),_0x41800a=_0x2419ac['getAttribute'](_0x1bcd54)-0x1,_0x1d5b47=_0x4162a5[_0x4b0e9e],_0x8f9eb1=_0x4162a5[_0x11ddc2];_0x1d5b47<=_0x178ba7[_0x50adeb]&&_0x178ba7[_0x50adeb]+_0x41800a<=_0x8f9eb1&&_0x5db6ef['addRange'](_0x2f19b8);}}});});}function _0x241281(_0x67b865){const _0x347524=Array['from'](_0x3ef723['getRanges']())['map'](_0x5cc8a2=>_0x339777['fromRange'](_0x5cc8a2));_0x4aedc1['model']['change'](_0x4dd766=>{const _0x1f2139=_0x4dd766['batch'];_0x67b865=_0x67b865['filter'](_0x19cae4=>'$graveyard'!=_0x19cae4['root']['rootName']),_0x4dd766['setSelection'](_0x67b865),_0x4aedc1['commands']['get']('removeTableRow')['refresh'](),_0x4aedc1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4aedc1['model']['enqueueChange'](()=>{_0x4aedc1['model']['enqueueChange'](_0x1f2139,_0x69317c=>{const _0x37acb4=_0x347524['filter'](_0x599509=>'$graveyard'!=_0x599509['root']['rootName']);_0x37acb4['length']>0x0&&_0x69317c['setSelection'](_0x37acb4);for(const _0x378f6a of _0x347524)_0x378f6a['detach']();});});});}function _0x58ec64(_0x1b5ee4){_0x4aedc1['model']['change'](_0x1435d1=>{const _0x1299d6=Array['from'](_0x3ef723['getRanges']())['map'](_0x59d826=>_0x339777['fromRange'](_0x59d826)),_0x3a47d2=[];for(const _0x5aacf0 of _0x1b5ee4)for(const _0x2e3f10 of _0x5aacf0['getItems']({'shallow':!0x0}))_0x3a47d2['push'](_0x2e3f10);for(const _0x4e3430 of _0x3a47d2)'$graveyard'!=_0x4e3430['root']['rootName']&&(_0x1435d1['setSelection'](_0x1435d1['createPositionAt'](_0x4e3430,0x0)),_0x4aedc1['commands']['get']('removeTableColumn')['refresh'](),_0x4aedc1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3abdad=_0x1299d6['filter'](_0x528611=>'$graveyard'!=_0x528611['root']['rootName']);_0x3abdad['length']>0x0&&_0x1435d1['setSelection'](_0x3abdad);for(const _0x2e4317 of _0x1299d6)_0x2e4317['detach']();});}function _0x2037e9(_0x21ae8f,_0x44a99a){return _0x44a99a['every'](_0x184ba5=>_0x21ae8f['some'](_0x14dda4=>_0x14dda4['end']['isEqual'](_0x184ba5['start'])||_0x184ba5['end']['isEqual'](_0x14dda4['start'])));}function _0x52bdd5(_0x5273bc,_0x50739d){return!_0x5273bc['some'](_0x282fe0=>_0x50739d['some'](_0x28afad=>_0x282fe0['isIntersecting'](_0x28afad)))&&_0x5273bc['some'](_0x37cf97=>_0x50739d['some'](_0x499a8b=>_0x37cf97['end']['isTouching'](_0x499a8b['start'])));}_0x4aedc1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x19627c,_0x6d76b,_0x3dbf24)=>{if(!_0x3dbf24['options']['showSuggestionHighlights'])return;const _0x3e9cb3=_0x6d76b['item'];if(!_0x3e9cb3)return;const _0x42c5ee=_0x3dbf24['mapper']['toViewElement'](_0x3e9cb3);function _0x3745e2(_0x16395e){return Array['isArray'](_0x16395e)?_0x16395e:[_0x16395e];}_0x42c5ee&&'tableCell'===_0x3e9cb3['name']&&_0x3c83dc(_0x42c5ee,_0x3dbf24['writer'],(_0x23b856,_0x4c1812,_0x9b6fc9)=>_0x9b6fc9['addClass'](_0x3745e2(_0x4c1812['classes']),_0x23b856),(_0x5de7fe,_0x1d2e0d,_0x1491ff)=>_0x1491ff['removeClass'](_0x3745e2(_0x1d2e0d['classes']),_0x5de7fe));},{'priority':'highest'}),_0x130c5a['descriptionFactory']['registerDescriptionCallback'](_0xd907cb=>{if('insertion'!=_0xd907cb['type']&&'deletion'!=_0xd907cb['type'])return;const _0x2070ad=_0xd907cb['getContainedElement']();if(null!=_0x2070ad&&_0x2070ad['is']('element','table')){if('insertion'==_0xd907cb['type']){const _0x566587=_0xd907cb['getItems']()['filter'](_0x22aa8f=>_0x22aa8f['is']('$textProxy'))['map'](_0x56877e=>_0x56877e['data']);if(_0x566587['length'])return{'type':'insertion','content':o(_0x37df86,'*Insert:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x566587['join']('\x20')+'\x22'))};}if('deletion'==_0xd907cb['type']){const _0x1677f7=_0xd907cb['getItems']()['filter'](_0x4e4ad4=>_0x4e4ad4['is']('$textProxy'))['map'](_0x3fb615=>_0x3fb615['data']);if(_0x1677f7['length'])return{'type':'deletion','content':o(_0x37df86,'*Remove:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1677f7['join']('\x20')+'\x22'))};}}}),_0x130c5a['descriptionFactory']['registerDescriptionCallback'](_0x52aec4=>{if('tableRow'==_0x52aec4['subType']){const _0x449412=_0x52aec4['getItems']()['filter'](_0x2da602=>_0x2da602['is']('$textProxy'))['map'](_0x2d6734=>_0x2d6734['data']),_0x1f0213=this['_getSuggestionCoords'](_0x52aec4),_0x1f6e1f=_0x1f0213['maxRow']-_0x1f0213['minRow']+0x1;if('insertion'==_0x52aec4['type'])return _0x449412['length']?{'type':'insertion','content':o(_0x37df86,'*Insert:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f6e1f,'\x22'+_0x449412['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37df86,'*Insert:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_ROW',_0x1f6e1f))};if('deletion'==_0x52aec4['type'])return _0x449412['length']?{'type':'deletion','content':o(_0x37df86,'*Remove:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f6e1f,'\x22'+_0x449412['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37df86,'*Remove:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_ROW',_0x1f6e1f))};}if('tableColumn'==_0x52aec4['subType']){const _0x4d641e=_0x52aec4['getItems']()['filter'](_0x3371f0=>_0x3371f0['is']('$textProxy'))['map'](_0x2b3b9f=>_0x2b3b9f['data']),_0x20da23=this['_getSuggestionCoords'](_0x52aec4),_0x2a01fa=_0x20da23['maxColumn']-_0x20da23['minColumn']+0x1;if('insertion'==_0x52aec4['type'])return _0x4d641e['length']?{'type':'insertion','content':o(_0x37df86,'*Insert:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2a01fa,'\x22'+_0x4d641e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37df86,'*Insert:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_COLUMN',_0x2a01fa))};if('deletion'==_0x52aec4['type'])return _0x4d641e['length']?{'type':'deletion','content':o(_0x37df86,'*Remove:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2a01fa,'\x22'+_0x4d641e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37df86,'*Remove:*\x20%0',o(_0x37df86,'ELEMENT_TABLE_COLUMN',_0x2a01fa))};}}),_0x130c5a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x241281),_0x130c5a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x241281),_0x130c5a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x58ec64),_0x130c5a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x58ec64),_0x130c5a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2037e9),_0x130c5a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2037e9),_0x130c5a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x52bdd5),_0x130c5a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x52bdd5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x12f47d=this['editor'],_0x5c4e04=_0x12f47d['model']['document']['selection'];return(_0x39dfa9,_0x52096b)=>{_0x12f47d['model']['change'](_0xb30b1b=>{const {commandName:_0x24e45b,commandParams:_0x1c67f4}=_0x52096b;let _0x2e0476=_0x39dfa9[0x0]['end']['nodeBefore'];_0x1c67f4&&_0x1c67f4[0x0]&&!0x1===_0x1c67f4[0x0]['forceValue']&&(_0x2e0476=_0x39dfa9[0x0]['start']['nodeAfter']);const _0x1a6a73=_0xb30b1b['createRangeIn'](_0x2e0476);if('$graveyard'==_0x1a6a73['root']['rootName'])return;const _0x264ae2=Array['from'](_0x5c4e04['getRanges']())['map'](_0x16b9f5=>_0x339777['fromRange'](_0x16b9f5));_0xb30b1b['setSelection'](_0x1a6a73),_0x12f47d['commands']['get'](_0x24e45b)['refresh'](),_0x1c67f4['push']({'forceDefaultExecution':!0x0}),_0x12f47d['execute'](_0x24e45b,..._0x1c67f4);const _0x39cc52=_0x264ae2['filter'](_0x501761=>'$graveyard'!=_0x501761['root']['rootName']);_0x39cc52['length']>0x0&&_0xb30b1b['setSelection'](_0x39cc52);for(const _0x231676 of _0x264ae2)_0x231676['detach']();});};}['_getCoordsForCells'](_0x347039){const _0x1544d5=this['editor']['plugins']['get']('TableUtils');let _0xa83700=Number['MAX_SAFE_INTEGER'],_0x317b61=Number['MIN_SAFE_INTEGER'],_0x63e885=Number['MAX_SAFE_INTEGER'],_0x38d620=Number['MIN_SAFE_INTEGER'];for(const _0x5d1385 of _0x347039){if('$graveyard'==_0x5d1385['root']['rootName'])continue;const {row:_0x2d0693,column:_0x6fbcee}=_0x1544d5['getCellLocation'](_0x5d1385),_0x5a8dc2=_0x5d1385['hasAttribute']('rowspan')?_0x5d1385['getAttribute']('rowspan')-0x1:0x0,_0x5bb0e4=_0x5d1385['hasAttribute']('colspan')?_0x5d1385['getAttribute']('colspan')-0x1:0x0;_0xa83700=_0x2d0693<_0xa83700?_0x2d0693:_0xa83700,_0x317b61=_0x2d0693+_0x5a8dc2>_0x317b61?_0x2d0693+_0x5a8dc2:_0x317b61,_0x63e885=_0x6fbcee<_0x63e885?_0x6fbcee:_0x63e885,_0x38d620=_0x6fbcee+_0x5bb0e4>_0x38d620?_0x6fbcee+_0x5bb0e4:_0x38d620;}return{'minRow':_0xa83700,'maxRow':_0x317b61,'minColumn':_0x63e885,'maxColumn':_0x38d620};}['_setupColumnsRowsFixing'](){const _0x4ce212=this['editor'],_0x1e58ca=_0x4ce212['plugins']['get']('TrackChangesEditing'),_0x2b6f50=_0x4ce212['plugins']['get']('TableUtils');_0x4ce212['model']['document']['on']('change:data',()=>{const _0x46b818=Array['from'](_0x4ce212['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36327f,data:_0x91db2d}of _0x46b818){const {group:_0x26ffd9,id:_0x2f015c,subType:_0x1b654c}=_0x1e58ca['_splitMarkerName'](_0x36327f);if('suggestion'!=_0x26ffd9)continue;if(null!=_0x91db2d['oldRange'])continue;const _0x34e11b=_0x1e58ca['getSuggestion'](_0x2f015c);this['_tablePostFixingSubtypes']['includes'](_0x1b654c)&&this['_tableSuggestions']['add'](_0x34e11b);}},{'priority':'low'});const _0x5b0df9=(_0x53fa56,_0x4ced4c)=>{let _0x443d57=!0x1;const _0x1a3f53=_0x4ced4c['createRangeOn'](_0x53fa56),_0x46149c=_0x53fa56['findAncestor']('table'),_0x2ce1f2=_0x2b6f50['getCellLocation'](_0x53fa56);for(const _0x428cf8 of this['_tableSuggestions']){const _0x3d067b=_0x428cf8['subType'],_0x25b2e4=_0x3d067b['startsWith']('tablePaste'),_0x52de41=_0x3d067b['substr'](_0x25b2e4?0xa:0x5),_0x3a15ee=_0x52de41['toLowerCase'](),_0xe91b54=_0x3a15ee['substr'](0x0,0x3)+'span',_0x4a03d7='min'+_0x52de41,_0x3b0b78='max'+_0x52de41;if(!_0x428cf8['isInContent'])continue;if(_0x46149c!=_0x428cf8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x428cf8['isIntersectingWithRange'](_0x1a3f53))continue;const _0x1868f9=_0x53fa56['hasAttribute'](_0xe91b54)?_0x53fa56['getAttribute'](_0xe91b54)-0x1:0x0,_0x57c668=this['_getSuggestionCoords'](_0x428cf8),_0x5b52cc=_0x57c668[_0x4a03d7],_0x194030=_0x57c668[_0x3b0b78];_0x5b52cc<=_0x2ce1f2[_0x3a15ee]&&_0x2ce1f2[_0x3a15ee]+_0x1868f9<=_0x194030&&(_0x428cf8['addRange'](_0x1a3f53),_0x443d57=!0x0);}return _0x443d57;};_0x4ce212['model']['document']['registerPostFixer'](_0xb68ac4=>{let _0x4701c9=!0x1;for(const _0x4cfaea of _0x4ce212['model']['document']['differ']['getChanges']())if('insert'==_0x4cfaea['type']){if('tableRow'==_0x4cfaea['name']){for(const _0x52f0d3 of _0x4cfaea['position']['nodeAfter']['getChildren']())_0x4701c9=_0x4701c9||_0x5b0df9(_0x52f0d3,_0xb68ac4);}else'tableCell'==_0x4cfaea['name']&&(_0x4701c9=_0x4701c9||_0x5b0df9(_0x4cfaea['position']['nodeAfter'],_0xb68ac4));}return _0x4701c9;});}['_getSuggestionCoords'](_0x2215c5){return this['_getCoordsForCells'](_0x2215c5['getRanges']()['map'](_0x354e49=>_0x354e49['start']['nodeAfter']));}}function Ne(_0x4aecd2){return Array['from'](new Set(_0x4aecd2)['values']());}class Ct extends _0x463932{static get['requires'](){return[_t];}['afterInit'](){const _0x3bd7c3=this['editor'],_0x3cef17=_0x3bd7c3['model']['document']['selection'],_0x273b32=_0x3bd7c3['locale'];if(!_0x3bd7c3['plugins']['has']('TableEditing'))return;const _0x58f146=_0x3bd7c3['plugins']['get']('TrackChangesEditing'),_0x459f2e=_0x3bd7c3['plugins']['get']('TableUtils'),_0x16b491=_0x3bd7c3['plugins']['get'](_t);_0x16b491['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x58f146['enableCommand']('mergeTableCells',()=>{const _0x334f2b=_0x459f2e['getSelectionAffectedTableCells'](_0x3bd7c3['model']['document']['selection']);_0x3bd7c3['model']['change'](()=>{_0x58f146['markMultiRangeBlockFormat'](_0x334f2b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3bd7c3['commands']['get']('mergeTableCells')['on']('execute',(_0x187c13,_0xc40fcf)=>{_0x3bd7c3['commands']['get']('trackChanges')['value']&&(_0xc40fcf['length']>0x0&&_0xc40fcf[_0xc40fcf['length']-0x1]&&_0xc40fcf[_0xc40fcf['length']-0x1]['forceDefaultExecution']||_0x58f146['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x187c13['stop']());},{'priority':'highest'});for(const _0x3869c8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1996a2=_0x3bd7c3['commands']['get'](_0x3869c8);_0x58f146['enableCommand'](_0x3869c8,()=>{const _0xd54556=_0x3bd7c3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x17182f=>_0x17182f['is']('element','tableCell')),_0x14a101=_0x1996a2['value'];_0x3bd7c3['model']['change'](()=>{_0x58f146['markMultiRangeBlockFormat']([_0xd54556,_0x14a101],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x47e6c4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x406996=_0x3bd7c3['commands']['get'](_0x47e6c4);_0x58f146['enableCommand'](_0x47e6c4,()=>{const _0x40daa1=_0x459f2e['getSelectionAffectedTableCells'](_0x3bd7c3['model']['document']['selection'])[0x0],_0x4b2538=_0x40daa1['findAncestor']('table'),{column:_0x27a1e2,row:_0x3e268d}=_0x459f2e['getCellLocation'](_0x40daa1);let _0x6b0aa5=[];if('horizontally'==_0x406996['direction']){const _0x32a79f=_0x459f2e['createTableWalker'](_0x4b2538,{'startRow':_0x3e268d,'endRow':_0x3e268d,'includeAllSlots':!0x0});_0x6b0aa5=Array['from'](_0x32a79f)['map'](_0x1c890f=>_0x1c890f['cell']);}else{const _0x12dcda=_0x459f2e['createTableWalker'](_0x4b2538,{'column':_0x27a1e2,'includeAllSlots':!0x0});_0x6b0aa5=Array['from'](_0x12dcda)['map'](_0x57e616=>_0x57e616['cell']);}_0x3bd7c3['model']['change'](_0x2d2d66=>{_0x58f146['markBlockFormat'](_0x2d2d66['createRangeOn'](_0x40daa1),{'commandName':_0x47e6c4,'commandParams':[]},_0x6b0aa5,_0x47e6c4);});});}_0x58f146['descriptionFactory']['registerDescriptionCallback'](_0x323ef4=>{if('formatBlock'!=_0x323ef4['type']&&'formatInline'!=_0x323ef4['type'])return;const {data:_0x280117}=_0x323ef4;return _0x280117&&'mergeTableCells'==_0x280117['commandName']?{'type':'format','content':o(_0x273b32,'*Merge\x20cells*')}:void 0x0;}),_0x58f146['descriptionFactory']['registerDescriptionCallback'](_0x4c1e88=>{if('formatBlock'!=_0x4c1e88['type']&&'formatInline'!=_0x4c1e88['type'])return;const {data:_0x36fd09}=_0x4c1e88;return _0x36fd09?'splitTableCellVertically'==_0x36fd09['commandName']?{'type':'format','content':o(_0x273b32,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x36fd09['commandName']?{'type':'format','content':o(_0x273b32,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x291ebd=_0x16b491['_acceptFormatSuggestionCallbackFactory']();for(const _0x189acc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x58f146['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x189acc,'accept',_0x291ebd);for(const _0x16bfb5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x58f146['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16bfb5,'accept',_0x291ebd);_0x58f146['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x21e8a9=>{_0x3bd7c3['model']['change'](_0x397e26=>{const _0x286a85=Array['from'](_0x3cef17['getRanges']())['map'](_0x31ebbe=>_0x339777['fromRange'](_0x31ebbe));_0x397e26['setSelection'](_0x21e8a9),_0x3bd7c3['commands']['get']('mergeTableCells')['refresh'](),_0x3bd7c3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x32300f=_0x286a85['filter'](_0x311ad7=>'$graveyard'!=_0x311ad7['root']['rootName']);_0x32300f['length']>0x0&&_0x397e26['setSelection'](_0x32300f);for(const _0x23ae29 of _0x286a85)_0x23ae29['detach']();});});for(const _0x164068 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5cf784=_0x3bd7c3['commands']['get'](_0x164068);_0x5cf784['on']('set:isEnabled',(_0x704a45,_0x58f328,_0xf27ef1)=>{if(_0xf27ef1){const _0x39c562=_0x3bd7c3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x59dd93=>_0x59dd93['is']('element','tableCell'));this['_areMergableCells'](_0x5cf784['value'],_0x39c562)||(_0x704a45['return']=!0x1,_0x704a45['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x550b5e=this['editor']['commands']['get']('mergeTableCells'),_0x5282d2=this['editor']['plugins']['get']('TableUtils');if(!_0x550b5e['isEnabled'])return!0x1;const _0x14b20a=_0x5282d2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ed02e of _0x14b20a)for(const _0x3e3906 of _0x14b20a)if(_0x3ed02e!=_0x3e3906&&!this['_areMergableCells'](_0x3ed02e,_0x3e3906))return!0x1;return!0x0;}['_areMergableCells'](_0x1a9327,_0x2d83cb){const _0x27a6db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ad5a3=this['editor']['model']['createRangeOn'](_0x1a9327),_0x1c0a01=this['editor']['model']['createRangeOn'](_0x2d83cb),_0x3473cd=new Set(),_0x592be0=new Set();for(const _0x20d9c5 of _0x27a6db['getSuggestions']())if(('insertion'==_0x20d9c5['type']||'deletion'==_0x20d9c5['type']||'mergeTableCells'==_0x20d9c5['subType'])&&_0x20d9c5['isInContent']){for(const _0x5dd829 of _0x20d9c5['getRanges']())_0x5dd829['containsRange'](_0x5ad5a3,!0x0)&&_0x3473cd['add'](_0x20d9c5['type']+':'+_0x20d9c5['author']['id']),_0x5dd829['containsRange'](_0x1c0a01,!0x0)&&_0x592be0['add'](_0x20d9c5['type']+':'+_0x20d9c5['author']['id']);}if(_0x3473cd['size']!=_0x592be0['size'])return!0x1;for(const _0x302ff6 of _0x3473cd)if(!_0x592be0['has'](_0x302ff6))return!0x1;return!0x0;}}class Nt extends _0x463932{static get['requires'](){return[_t];}['afterInit'](){const _0x333fdd=this['editor'];if(!_0x333fdd['plugins']['has']('TableEditing'))return;const _0x1fada2=_0x333fdd['locale'],_0xabf23c=_0x333fdd['plugins']['get']('TrackChangesEditing');_0xabf23c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xabf23c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xabf23c['registerBlockAttribute']('headingRows'),_0xabf23c['registerBlockAttribute']('headingColumns'),_0xabf23c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1fada2,'FORMAT_HEADER_ROW')),_0xabf23c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1fada2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x44cb12=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1de637=this['editor']['plugins']['get']('TableUtils'),_0x194341=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x19617b({showActiveMarker:_0x29ef41=!0x0,setDataAttribute:_0x54935a=!0x0}={}){return(_0x153a7e,_0xdc4340,_0x4c2c23)=>{const {type:_0x1df88c,id:_0x197c4a}=_0x44cb12['_splitMarkerName'](_0xdc4340['markerName']),_0x6449ae=_0x44cb12['getSuggestion'](_0x197c4a),_0x3cb81d=_0x6449ae['data'];if('formatBlock'!=_0x6449ae['type']||!_0x3cb81d||'setTableColumnHeader'!=_0x3cb81d['commandName'])return;if(_0xdc4340['item'])return void _0x153a7e['stop']();if(!_0x4c2c23['consumable']['consume'](_0xdc4340['markerRange'],_0x153a7e['name']))return;const _0x18d6f3=_0xdc4340['markerRange']['start']['nodeAfter'],_0x45756a=_0xdc4340['markerRange']['end']['nodeBefore'],_0x54b649=_0x18d6f3['parent']['parent'],{column:_0x705b49}=_0x1de637['getCellLocation'](_0x18d6f3),{column:_0x5de6bf}=_0x1de637['getCellLocation'](_0x45756a);for(let _0x47e759=_0x705b49;_0x47e759<=_0x5de6bf;_0x47e759++){const _0x48daf9=_0x1de637['createTableWalker'](_0x54b649,{'column':_0x47e759,'includeAllSlots':!0x1});for(const _0x4c04aa of _0x48daf9){const _0x26ad61=_0x4c04aa['cell'],_0x38ebca=_0x4c2c23['mapper']['toViewElement'](_0x26ad61);_0x4c2c23['writer']['addClass']('ck-suggestion-marker-'+_0x1df88c,_0x38ebca),_0x54935a&&_0x4c2c23['writer']['setAttribute']('data-suggestion',_0x197c4a,_0x38ebca),_0x4c2c23['mapper']['bindElementToMarker'](_0x38ebca,_0xdc4340['markerName']),_0x29ef41&&(_0x44cb12['activeMarkers']['includes'](_0xdc4340['markerName'])?_0x4c2c23['writer']['addClass']('ck-suggestion-marker--active',_0x38ebca):_0x4c2c23['writer']['removeClass']('ck-suggestion-marker--active',_0x38ebca));}}};}_0x44cb12['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x194341),_0x44cb12['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x194341),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x19617b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x266b77,_0x6aa6bb,_0x10fa39)=>{_0x10fa39['options']['showSuggestionHighlights']&&_0x19617b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x266b77,_0x6aa6bb,_0x10fa39);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1a2368,_0x4d7d64,_0x1865ed)=>{const {type:_0x29409e,id:_0x5bc5fe}=_0x44cb12['_splitMarkerName'](_0x4d7d64['markerName']),_0x26393f=_0x44cb12['getSuggestion'](_0x5bc5fe),_0x1ea1ad=_0x26393f['data'];if('formatBlock'!=_0x26393f['type']||!_0x1ea1ad||'setTableColumnHeader'!=_0x1ea1ad['commandName'])return;const _0xcb982f=_0x1865ed['mapper']['markerNameToElements'](_0x4d7d64['markerName']);if(_0xcb982f){for(const _0x52f628 of _0xcb982f)_0x1865ed['writer']['removeClass']('ck-suggestion-marker-'+_0x29409e,_0x52f628),_0x1865ed['writer']['removeClass']('ck-suggestion-marker--active',_0x52f628),_0x1865ed['writer']['removeAttribute']('data-suggestion',_0x52f628),_0x1865ed['mapper']['unbindElementFromMarkerName'](_0x52f628,_0x4d7d64['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31a74b=this['editor'],_0x358797=_0x31a74b['locale'];function _0x355b91(_0x4ad934){return{'type':'format','content':o(_0x358797,'*Format:*\x20%0',_0x4ad934)};}_0x31a74b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a0b5f=>{if('formatBlock'!=_0x3a0b5f['type'])return;const {data:_0x251139}=_0x3a0b5f;if(_0x251139){if('setTableRowHeader'==_0x251139['commandName']){const _0x3d37ec=_0x251139['commandParams'][0x0]['forceValue'];return _0x355b91(o(_0x358797,_0x3d37ec?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x251139['commandName']){const _0x5a8567=_0x251139['commandParams'][0x0]['forceValue'];return _0x355b91(o(_0x358797,_0x5a8567?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0xce736e=>[_0xce736e,null]));class Dt extends _0x463932{static get['requires'](){return[_t];}['afterInit'](){const _0x150679=this['editor'];if(!_0x150679['plugins']['has']('TableClipboard'))return;const _0x57d8bf=_0x150679['plugins']['get']('TrackChangesEditing'),_0x4c8410=_0x150679['plugins']['get']('TableUtils'),_0x9b1252=_0x150679['plugins']['get'](_t),_0x53bd8f=_0x150679['plugins']['get']('TableClipboard');_0x9b1252['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x150679['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x150679['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3794ef=null;_0x150679['model']['on']('insertContent',(_0x59f7c8,_0x5ec5c2)=>{const [_0x46af45,_0x3318f3]=_0x5ec5c2,_0x2177a4=_0x5ec5c2[_0x5ec5c2['length']-0x1];_0x2177a4&&_0x2177a4['forceDefaultExecution']||_0x57d8bf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x24e9fb,_0x49b0d0,_0xd17a55,_0xc967e3,_0x2d8985){if(_0x49b0d0&&!_0x49b0d0['is']('documentSelection'))return!0x1;const _0x1ef2e7=_0x2d8985['getTableIfOnlyTableInContent'](_0x24e9fb,_0xd17a55);if(!_0x1ef2e7||!Ue(_0x1ef2e7,void 0x0,_0xc967e3))return!0x1;const _0x506bca=_0xc967e3['getSelectionAffectedTableCells'](_0xd17a55['document']['selection']);if(!_0x506bca['length'])return!0x1;const _0x3b1c65=_0x506bca[0x0]['findAncestor']('table'),_0x251053=_0xc967e3['getRowIndexes'](_0x506bca),_0x7101d3=_0xc967e3['getColumnIndexes'](_0x506bca),_0x1ea556={'startRow':_0x251053['first'],'endRow':_0x251053['last'],'startColumn':_0x7101d3['first'],'endColumn':_0x7101d3['last']};return 0x1==_0x506bca['length']&&(_0x1ea556['endRow']+=_0xc967e3['getRows'](_0x1ef2e7)-0x1,_0x1ea556['endColumn']+=_0xc967e3['getColumns'](_0x1ef2e7)-0x1),Ue(_0x3b1c65,_0x1ea556,_0xc967e3);}(_0x46af45,_0x3318f3,_0x150679['model'],_0x4c8410,_0x53bd8f)&&(_0x59f7c8['stop'](),_0x3794ef={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x150679['model']['change'](()=>{_0x150679['model']['insertContent'](_0x5ec5c2[0x0],_0x5ec5c2[0x1],_0x5ec5c2[0x2],{'forceDefaultExecution':!0x0});const _0x232bc0=_0x8b70ee(),{rowInsertionRanges:_0x58e5f9,columnInsertionRanges:_0x5cea3e,insertionRanges:_0x4cf879,deletionRanges:_0x1c18c2,cells:_0x55e756}=_0x3794ef;_0x58e5f9['length']&&_0x57d8bf['markMultiRangeInsertion'](_0x58e5f9,'tablePasteRow',{'tablePasteChainId':_0x232bc0}),_0x5cea3e['length']&&_0x57d8bf['markMultiRangeInsertion'](_0x5cea3e,'tablePasteColumn',{'tablePasteChainId':_0x232bc0}),_0x4cf879['length']&&(_0x57d8bf['markMultiRangeInsertion'](_0x4cf879,'tablePaste',{'tablePasteChainId':_0x232bc0,'skipNestingCheck':!0x0}),_0x4cf879['forEach'](_0x3b440d=>_0x3b440d['detach']?.())),_0x1c18c2['length']&&(_0x57d8bf['markMultiRangeDeletion'](_0x1c18c2,'tablePaste',{'tablePasteChainId':_0x232bc0,'skipNestingCheck':!0x0}),_0x1c18c2['forEach'](_0x58e153=>_0x58e153['detach']?.()));const _0x27f0e9=_0x57d8bf['markMultiRangeBlockFormat'](_0x55e756['map'](({element:_0x140b88})=>_0x140b88),{'formatGroupId':_0x8b70ee()},[],'tablePasteCell',{'tablePasteChainId':_0x232bc0});if(_0x27f0e9){const _0x46cbb9=_0x27f0e9['getMarkers'](),_0x483153=[];for(const {element:_0x25f2de,attributes:_0x1f17a3}of _0x55e756){if(!_0x1f17a3)continue;const _0x117ce4=_0x150679['model']['createRangeOn'](_0x25f2de),_0x369f78=_0x46cbb9['find'](_0x291de5=>_0x291de5['getRange']()['isEqual'](_0x117ce4));_0x369f78&&_0x483153['push']([_0x369f78['name'],_0x1f17a3]);}_0x483153['length']&&_0x27f0e9['setAttribute']('markerAttributes',Object['fromEntries'](_0x483153));}_0x3794ef=null;}));},{'priority':_0x282e0b['high']+0xa}),_0x150679['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x47aaf1,_0x409738)=>{const [_0x5673ef,_0x40254e,,_0x53b32f]=_0x409738;if(!_0x3794ef)return;_0x47aaf1['stop']();const _0x336379=_0x5673ef['cell'],_0x1fc6a3=_0x40254e,_0x400eed=Oe(_0x336379),_0x20bd79=Oe(_0x1fc6a3);_0x47aaf1['return']=_0x336379;let _0x5f0af8=null,_0x23519e=null;if(_0x20bd79||_0x400eed){if(_0x400eed&&!_0x20bd79){_0x53b32f['remove'](_0x336379['getChild'](0x0));for(const _0x189f9f of Array['from'](_0x1fc6a3['getChildren']()))_0x53b32f['insert'](_0x189f9f,_0x336379,'end');const _0x2fc935=_0x3794ef['rowInsertionIndexes']['includes'](_0x5673ef['row']),_0x4f55a1=_0x3794ef['columnInsertionIndexes']['includes'](_0x5673ef['column']);_0x2fc935||_0x4f55a1||(_0x5f0af8=_0x339777['fromRange'](_0x53b32f['createRangeIn'](_0x336379)));}else _0x20bd79&&!_0x400eed&&(_0x23519e=_0x53b32f['createRangeIn'](_0x336379));}else{const _0x29ebf1=_0x53b32f['createElement']('tableCellSuggestion'),_0x2b5be4=_0x53b32f['createElement']('tableCellSuggestion');_0x53b32f['wrap'](_0x53b32f['createRangeIn'](_0x336379),_0x2b5be4),_0x53b32f['insert'](_0x29ebf1,_0x336379,0x0);for(const _0x4abdd7 of Array['from'](_0x1fc6a3['getChildren']()))_0x53b32f['insert'](_0x4abdd7,_0x29ebf1,'end');_0x5f0af8=_0x339777['fromRange'](_0x53b32f['createRangeOn'](_0x29ebf1)),_0x23519e=_0x339777['fromRange'](_0x53b32f['createRangeOn'](_0x2b5be4));}const _0x405996=Array['from'](_0x1fc6a3['getAttributes']())['filter'](([_0xff9a6])=>Be['includes'](_0xff9a6));_0x3794ef['cells']['push']({'element':_0x336379,'attributes':_0x405996['length']?Object['fromEntries'](_0x405996):null}),_0x5f0af8&&_0x3794ef['insertionRanges']['push'](_0x5f0af8),_0x23519e&&_0x3794ef['deletionRanges']['push'](_0x23519e);},{'priority':'high'}),_0x4c8410['on']('insertColumns',(_0x477384,_0x55ad0f)=>{const [_0x494032,_0x438ee7={}]=_0x55ad0f;if(!_0x3794ef)return;const _0x22f4c1=_0x438ee7['at']||0x0,_0x4a6c0c=_0x438ee7['columns']||0x1;_0x3794ef['columnInsertionIndexes']=new Array(_0x4a6c0c)['fill'](_0x22f4c1)['map']((_0x58c783,_0x171b2b)=>_0x58c783+_0x171b2b);for(const {cell:_0x178793}of _0x4c8410['createTableWalker'](_0x494032,{'startColumn':_0x22f4c1,'endColumn':_0x22f4c1+_0x4a6c0c-0x1}))_0x3794ef['columnInsertionRanges']['push'](_0x150679['model']['createRangeOn'](_0x178793));},{'priority':'low'}),_0x4c8410['on']('insertRows',(_0x5017d9,_0x2bfb86)=>{const [_0x35e240,_0x3b9f01={}]=_0x2bfb86;if(!_0x3794ef)return;const _0x5e01d0=_0x3b9f01['at']||0x0,_0x311422=_0x3b9f01['rows']||0x1;_0x3794ef['rowInsertionIndexes']=new Array(_0x311422)['fill'](_0x5e01d0)['map']((_0x4449dc,_0x1f9429)=>_0x4449dc+_0x1f9429);for(const {cell:_0x3b0e30}of _0x4c8410['createTableWalker'](_0x35e240,{'startRow':_0x5e01d0,'endRow':_0x5e01d0+_0x311422-0x1}))_0x3794ef['rowInsertionRanges']['push'](_0x150679['model']['createRangeOn'](_0x3b0e30));},{'priority':'low'}),_0x57d8bf['descriptionFactory']['registerDescriptionCallback'](_0x3a0034=>{if(_0x3a0034['subType']&&_0x3a0034['subType']['startsWith']('tablePaste'))return _0x3a0034['previous']?{}:{'type':'insertion','content':o(_0x150679['locale'],'*Replace\x20table\x20cells*')};});const _0x125d95=()=>!0x1;for(const _0x2816f5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x57d8bf['_suggestionFactory']['registerCustomCallback']('insertion',_0x2816f5,'join',_0x125d95),_0x57d8bf['_suggestionFactory']['registerCustomCallback']('deletion',_0x2816f5,'join',_0x125d95),_0x57d8bf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2816f5,'join',_0x125d95);_0x57d8bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x125d95),_0x57d8bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4c1b81,_0x4d43a8,_0x4d4a2f)=>{const _0x5f181f=_0x4c1b81['map'](_0xb41cdc=>_0xb41cdc['getContainedElement']())['filter'](_0x4f9886=>_0x4f9886),_0x20e8f2=new Map(_0x5f181f['map'](_0x116983=>[_0x116983,null]));if(_0x3794ef){for(const {element:_0x241651,attributes:_0x1577f8}of _0x3794ef['cells'])_0x1577f8&&_0x20e8f2['set'](_0x241651,_0x1577f8);}else{if(_0x4d4a2f&&_0x4d4a2f['markerAttributes'])for(const [_0x5cca2b,_0x31f674]of Object['entries'](_0x4d4a2f['markerAttributes'])){const _0x5b2979=_0x150679['model']['markers']['get'](_0x5cca2b),_0x2b8811=_0x5b2979?_0x5b2979['getRange']()['getContainedElement']():null;_0x2b8811&&_0x20e8f2['set'](_0x2b8811,_0x31f674);}}_0x150679['model']['change'](_0x5bcf7f=>{for(const [_0x2d5292,_0x24dc21]of _0x20e8f2)_0x5bcf7f['setAttributes']({...xe,..._0x24dc21},_0x2d5292);});});const _0x45fb4b=(_0x2b2811,_0x63dac7)=>{_0x57d8bf['_suggestionFactory']['registerCustomCallback'](_0x2b2811,'tablePaste',_0x63dac7,(_0x5845e3,_0x3a4027,_0x5dcf60)=>{_0x150679['model']['change'](_0x4de050=>{const _0x50d84f=[];for(const _0x2ed2fd of _0x5845e3){const _0x31d6c9=_0x2ed2fd['start']['nodeAfter'];_0x31d6c9['is']('element','tableCellSuggestion')&&_0x50d84f['push'](_0x31d6c9);}_0x57d8bf['_suggestionFactory']['getSuggestionCallback'](_0x2b2811,null,_0x63dac7)(_0x5845e3,_0x3a4027,_0x5dcf60);for(const _0x5170ed of _0x50d84f)'$graveyard'!=_0x5170ed['root']['rootName']&&_0x4de050['unwrap'](_0x5170ed);});});};_0x45fb4b('insertion','accept'),_0x45fb4b('insertion','discard'),_0x45fb4b('deletion','accept'),_0x45fb4b('deletion','discard'),_0x57d8bf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x50a3ed=>{const _0x325388=_0x50a3ed['map'](_0x5bfe54=>_0x5bfe54['getContainedElement']()),_0x37cde7=_0x325388[0x0]['findAncestor']('table'),{minRow:_0x3c9f59,maxRow:_0x555aaf}=_0x9b1252['_getCoordsForCells'](_0x325388);_0x4c8410['removeRows'](_0x37cde7,{'at':_0x3c9f59,'rows':_0x555aaf-_0x3c9f59+0x1});}),_0x57d8bf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2ad875=>{const _0x40d7fd=_0x2ad875['map'](_0x251a3f=>_0x251a3f['getContainedElement']()),_0x10ee4d=_0x40d7fd[0x0]['findAncestor']('table'),{minColumn:_0x27097f,maxColumn:_0xd3577f}=_0x9b1252['_getCoordsForCells'](_0x40d7fd);_0x4c8410['removeColumns'](_0x10ee4d,{'at':_0x27097f,'columns':_0xd3577f-_0x27097f+0x1});});const _0x44091d=(_0x1ecd38,_0x38d88a)=>{if(!_0x38d88a['subType']||!_0x38d88a['subType']['startsWith']('tablePaste'))return;const _0x8dfcbb=_0x38d88a['attributes']['tablePasteChainId'],_0x1ada4f=_0x57d8bf['getSuggestions']()['filter'](_0x111fd9=>_0x111fd9['isInContent']&&_0x111fd9['attributes']&&_0x111fd9['attributes']['tablePasteChainId']==_0x8dfcbb);_0x1ada4f['length']&&_0x38d88a['getAllAdjacentSuggestions']()['length']!=_0x1ada4f['length']&&_0x1ada4f['reduce']((_0x5e2264,_0x1c888a)=>(_0x5e2264['next']=_0x1c888a,_0x1c888a['previous']=_0x5e2264,_0x1c888a));};function _0x356182(_0x2ef9b8,_0x156c57=!0x0){const {id:_0x249b40,authorId:_0x22daa1}=_0x57d8bf['_splitMarkerName'](_0x2ef9b8['markerName']),_0x107260=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x46c41a=_0x57d8bf['activeMarkers']['includes'](_0x2ef9b8['markerName']);return _0x46c41a&&_0x107260['push']('ck-suggestion-marker--active'),{'classes':_0x107260,'attributes':{'data-suggestion':_0x249b40,'data-author-id':_0x22daa1},'priority':_0x46c41a&&_0x156c57?0xbc2:0xbb8};}_0x57d8bf['on']('suggestionLoaded',_0x44091d,{'priority':'high'}),_0x57d8bf['on']('suggestionUnloaded',_0x44091d,{'priority':'high'}),_0x150679['model']['document']['registerPostFixer'](()=>{let _0x4c8b8b=!0x1;const _0x185104=Array['from'](_0x150679['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7dfa5f,data:_0x59cda3}of _0x185104){const {group:_0x4f0eae,type:_0x372b9d,id:_0xcd0d38}=_0x57d8bf['_splitMarkerName'](_0x7dfa5f);if('suggestion'!=_0x4f0eae||'deletion'!=_0x372b9d||_0x59cda3['oldRange'])continue;if(!_0x57d8bf['hasSuggestion'](_0xcd0d38))continue;const _0x5e8a63=_0x57d8bf['getSuggestion'](_0xcd0d38)['getRanges'](),_0x310d55=_0x150679['plugins']['get']('Users')['me'];for(const _0x51b3cb of _0x57d8bf['getSuggestions']()){if(!_0x51b3cb['isInContent']||_0x51b3cb['author']!=_0x310d55)continue;if('formatBlock'!=_0x51b3cb['type']||'tablePasteCell'!=_0x51b3cb['subType'])continue;if(_0x51b3cb['getRanges']()['every'](_0x32154f=>_0x5e8a63['some'](_0x5187d6=>_0x5187d6['containsRange'](_0x32154f,!0x0)))){for(const _0x23f63a of _0x51b3cb['getAllAdjacentSuggestions']())_0x23f63a['isInContent']&&(_0x23f63a['discard'](),_0x4c8b8b=!0x0);}}}return _0x4c8b8b;}),_0x150679['model']['document']['registerPostFixer'](_0x501ec1=>{const _0x30ca02=_0x150679['commands']['get']('redo');if(!_0x30ca02||!_0x30ca02['_createdBatches']['has'](_0x501ec1['batch']))return!0x1;let _0x36ef01=!0x1;const _0x49eecb=_0x150679['plugins']['get']('Users')['me'],_0x346540=_0x150679['model']['document']['differ']['getChanges'](),_0x5d25f3=Array['from'](_0x150679['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4f1d78,data:_0x274433})=>{const {group:_0x3727b3,subType:_0x4ebff5,authorId:_0x2152a3}=_0x57d8bf['_splitMarkerName'](_0x4f1d78);return'suggestion'==_0x3727b3&&'tablePaste'==_0x4ebff5&&_0x2152a3==_0x49eecb['id']&&!_0x274433['oldRange'];});for(const _0xde28fc of _0x346540){if('insert'!=_0xde28fc['type']||'tableCellSuggestion'!=_0xde28fc['name']||0x1!=_0xde28fc['length'])continue;const _0x4bfc45=_0x501ec1['createRange'](_0xde28fc['position'],_0xde28fc['position']['getShiftedBy'](0x1));if(!_0x5d25f3['find'](({data:_0x25b553})=>_0x25b553['newRange']['isEqual'](_0x4bfc45))){for(const {name:_0x2e28f7,data:_0x2e6c22}of _0x5d25f3)if(_0x4bfc45['containsRange'](_0x2e6c22['newRange'])){_0x501ec1['updateMarker'](_0x2e28f7,{'range':_0x4bfc45}),_0x36ef01=!0x0;break;}}}return _0x36ef01;}),_0x150679['model']['document']['registerPostFixer'](_0x150c62=>{let _0x4aba53=!0x1;const _0x28fa79=_0x150679['plugins']['get']('Users')['me'],_0x2d9ad5=_0x57d8bf['getSuggestions']()['filter'](_0x5dfcf8=>_0x5dfcf8['isInContent']&&_0x5dfcf8['author']==_0x28fa79),_0x81cadc=new Set(),_0x5d811b=new Set();for(const _0x26d72e of _0x2d9ad5)if('tablePaste'==_0x26d72e['subType'])for(const _0x293e91 of _0x26d72e['getMarkers']()){const _0xe72f92=_0x293e91['getRange']()['getContainedElement']();if(_0xe72f92){if(_0xe72f92['is']('element','tableCellSuggestion')&&Oe(_0xe72f92)){_0x26d72e['removeMarker'](_0x293e91['name']),_0x81cadc['add'](_0xe72f92),_0x4aba53=!0x0;const _0x2f126b=_0xe72f92['nextSibling'],_0x573c21=_0xe72f92['previousSibling'],_0x59d5a5=_0x2f126b&&_0x2f126b['is']('element','tableCellSuggestion'),_0x5b7d17=_0x573c21&&_0x573c21['is']('element','tableCellSuggestion');_0x59d5a5&&!_0x81cadc['has'](_0x2f126b)&&_0x5d811b['add'](_0x2f126b),_0x5b7d17&&!_0x81cadc['has'](_0x573c21)&&_0x5d811b['add'](_0x573c21);}else _0xe72f92['is']('element','paragraph')&&_0xe72f92['isEmpty']&&(_0x26d72e['removeMarker'](_0x293e91['name']),_0x4aba53=!0x0);}}else{if('tablePasteCell'==_0x26d72e['subType']){if(!_0x26d72e['attributes']||!_0x26d72e['attributes']['tablePasteChainId'])continue;const _0x5a591a=_0x26d72e['attributes']['markerAttributes'];if(_0x5a591a&&Object['keys'](_0x5a591a)['length'])continue;const _0x3a3d8b=_0x26d72e['attributes']['tablePasteChainId'];let _0xc4f964=!0x0,_0x3b522e=!0x0;for(const _0x411e8e of _0x2d9ad5)if(_0x411e8e['subType']&&_0x411e8e['subType']['startsWith']('tablePaste')){if(!_0x411e8e['attributes']['tablePasteChainId']){_0x3b522e=!0x1;break;}if(_0x411e8e['id']!=_0x26d72e['id']&&_0x411e8e['attributes']['tablePasteChainId']==_0x3a3d8b){_0xc4f964=!0x1;break;}}_0x3b522e&&_0xc4f964&&(_0x26d72e['removeMarkers'](),_0x4aba53=!0x0);}}for(const _0xc37cbc of _0x81cadc)_0x150c62['remove'](_0xc37cbc);for(const _0x30f1d1 of _0x5d811b)_0x150c62['unwrap'](_0x30f1d1);return _0x4aba53;}),_0x150679['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4d97d3=>_0x356182(_0x4d97d3),'converterPriority':'high'}),_0x150679['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5bfed8,_0x1f634f)=>_0x1f634f['options']['showSuggestionHighlights']?_0x356182(_0x5bfed8,!0x1):null,'converterPriority':'high'});const _0x163a9b=_0x150679['editing']['view'];this['listenTo'](_0x163a9b['document'],'clipboardOutput',(_0x550272,_0x15b912)=>{const _0x156754=[];for(const _0x149749 of _0x163a9b['createRangeIn'](_0x15b912['content'])['getItems']())_0x149749['is']('element','suggestion-td')&&_0x156754['push'](_0x149749);_0x163a9b['change'](_0x3f657d=>{for(const _0x387788 of _0x156754)_0x3f657d['move'](_0x3f657d['createRangeIn'](_0x387788),_0x3f657d['createPositionBefore'](_0x387788)),_0x3f657d['remove'](_0x387788);});});}}function Oe(_0x2f8959){if(_0x2f8959['isEmpty'])return!0x0;const _0x560c9f=_0x2f8959['getChild'](0x0);return _0x560c9f['is']('element','paragraph')&&_0x560c9f['isEmpty'];}function Ue(_0x22a4e8,_0x185ac6={},_0x44ea93){for(const {isAnchor:_0x2741bf,cellHeight:_0x304343,cellWidth:_0x38f114}of _0x44ea93['createTableWalker'](_0x22a4e8,{'includeAllSlots':!0x0,..._0x185ac6}))if(!_0x2741bf||0x1!=_0x304343||0x1!=_0x38f114)return!0x1;return!0x0;}class Mt extends _0x463932{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e6299=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e6299['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3e6299['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e6299['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e6299['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3e6299['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3e6299['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1086e8,_0x287c6e){const _0x2e3d5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e2e7e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2d9e64=_0x287c6e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x77d533=_0x3e2e7e['getColumnGroupElement'](_0x2d9e64);let _0x48f824=_0x77d533?_0x3e2e7e['getTableColumnsWidths'](_0x77d533):null,_0x426969=_0x2d9e64['getAttribute']('tableWidth')||null;const _0xd2f84a=_0x287c6e['tableWidth']||_0x426969,_0x2c29ea=_0x287c6e['columnWidths']||_0x48f824,_0x2187e4=this['editor']['plugins']['get']('Users')['me'];for(const _0x1b81b9 of _0x2e3d5c['getSuggestions']()){const _0xa51b8a=_0x1b81b9['getContainedElement']();if('resizeTable'===_0x1b81b9['subType']&&_0xa51b8a===_0x2d9e64){_0x1b81b9['author']!==_0x2187e4&&_0x1b81b9['discard']();const _0x5e9cee=_0x1b81b9['data']['commandParams'];_0x426969=_0x5e9cee[0x0]['tableWidth'],_0x48f824=_0x5e9cee[0x0]['columnWidths'];break;}}_0x1086e8({'table':_0x2d9e64,'tableWidth':_0xd2f84a,'columnWidths':_0x2c29ea}),_0x2e3d5c['markBlockFormat'](_0x2d9e64,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x426969,'columnWidths':_0x48f824}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x36f103){if('formatBlock'!=_0x36f103['type']&&'formatInline'!=_0x36f103['type'])return;const {data:_0x4450ea}=_0x36f103;if(_0x4450ea&&'resizeTable'===_0x4450ea['formatGroupId']){const _0x28be5c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x28be5c)};}}}class $t extends _0x463932{['afterInit'](){const _0x2d5855=this['editor'];_0x2d5855['plugins']['has']('Template')&&_0x2d5855['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x463932{['afterInit'](){const _0x2aa39e=this['editor'];if(!_0x2aa39e['commands']['get']('insertTableOfContents'))return;_0x2aa39e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xaa64c2=_0x2aa39e['plugins']['get']('TrackChangesEditing'),_0x17341c=_0x2aa39e['locale'];_0xaa64c2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x231018=>o(_0x17341c,'ELEMENT_TABLE_OF_CONTENTS',_0x231018));}}class Ot extends _0x463932{['afterInit'](){const _0x3b4a06=this['editor'];if(!_0x3b4a06['plugins']['has']('Title'))return;const _0x1feae0=_0x3b4a06['plugins']['get']('TrackChangesEditing');_0x1feae0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3b4a06['locale'],'ELEMENT_TITLE')),_0x3b4a06['model']['document']['registerPostFixer'](_0x1259bc=>{let _0x493266=!0x1;const _0x16beda=Array['from'](_0x3b4a06['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14a2ae,data:_0x31827d}of _0x16beda){const {group:_0x3ed1b0}=_0x1feae0['_splitMarkerName'](_0x14a2ae);if('suggestion'!==_0x3ed1b0||!_0x31827d['newRange'])continue;const _0x4611a6=_0x31827d['newRange'],_0x35b860=_0x4611a6['end']['nodeBefore'];if(!_0x35b860||!_0x35b860['is']('element','title-content'))continue;if(!_0x4611a6['start']['isTouching'](_0x4611a6['end']))continue;const _0x276db1=_0x3b4a06['model']['schema']['getNearestSelectionRange'](_0x4611a6['end'],'forward');if(_0x276db1&&_0x276db1['isCollapsed']){const _0x57ced9=_0x1259bc['createRange'](_0x4611a6['start'],_0x276db1['start']);_0x57ced9['isEqual'](_0x4611a6)||(_0x1259bc['updateMarker'](_0x14a2ae,{'range':_0x57ced9}),_0x493266=!0x0);}_0x493266||(_0x1259bc['removeMarker'](_0x14a2ae),_0x493266=!0x0);}return _0x493266;});}}class Rt extends _0x463932{['afterInit'](){const _0x373548=this['editor'],_0x39dc56=_0x373548['plugins']['get']('TrackChangesEditing');_0x373548['plugins']['has']('Uploadcare')&&(_0x39dc56['enableCommand']('uploadcare'),_0x373548['plugins']['has']('UploadcareImageEdit')&&(_0x39dc56['enableCommand']('uploadcareImageEdit'),_0x39dc56['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x39dc56['registerBlockAttribute']('uploadcareImageId'),_0x39dc56['descriptionFactory']['registerDescriptionCallback'](_0x1a38e8=>{if('attribute'!=_0x1a38e8['type'])return;const {data:_0x129fe8}=_0x1a38e8;return _0x129fe8&&'uploadcareImageId'==_0x129fe8['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x463932{['afterInit'](){const _0xa5bb06=this['editor'],_0x241483=_0xa5bb06['plugins']['get']('TrackChangesEditing');_0xa5bb06['plugins']['has']('UndoEditing')&&(_0x241483['enableCommand']('undo'),_0x241483['enableCommand']('redo'));}}class xt extends _0x463932{static get['requires'](){return[_t];}['afterInit'](){const _0x1bb552=this['editor'];if(!_0x1bb552['plugins']['has']('TableCaptionEditing'))return;_0x1bb552['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x463932{['tableProperties'];['tableCellProperties'];constructor(_0x570d7e){super(_0x570d7e),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 _0x5e1502=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2d6aba of this['tableProperties'])_0x5e1502['enableCommand'](_0x2d6aba,(_0x2241fc,_0x5c597a)=>{const _0x3bffaa=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2d6aba,[_0x3bffaa],this['tableProperties'],'tableProperties',_0x2241fc,_0x5c597a);});_0x5e1502['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e1502['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e1502['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x9bf034,_0x32840f)=>this['handleDiscardAction'](this['tableProperties'],_0x9bf034,_0x32840f)),_0x5e1502['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4b0809 of this['tableCellProperties'])_0x5e1502['enableCommand'](_0x4b0809,(_0x3ae6a9,_0x3b8a92)=>{const _0x571e25=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4b0809,_0x571e25,this['tableCellProperties'],'tableCellProperties',_0x3ae6a9,_0x3b8a92);});_0x5e1502['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e1502['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e1502['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3b070c,_0x4f783e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3b070c,_0x4f783e)),_0x5e1502['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e1502['descriptionFactory']['registerDescriptionCallback'](_0x1c7f03=>this['handleSuggestionDescription'](_0x1c7f03));}['_handlePropertyChange'](_0x299917,_0x49e5e1,_0x46dfa1,_0x110a98,_0x1dde28,_0x2f00f4){const _0x419c7b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f00f4['batch'],()=>{for(const _0x35f452 of _0x49e5e1){if(this['_getSuggestion'](_0x35f452,_0x110a98))_0x1dde28(_0x2f00f4);else{const _0x4525fd={};for(const _0x81b7e4 of _0x46dfa1){const _0x59f3d1=_0x35f452['getAttribute'](_0x81b7e4);void 0x0!==_0x59f3d1&&(_0x4525fd[_0x81b7e4]=_0x59f3d1);}_0x1dde28(_0x2f00f4),_0x419c7b['markBlockFormat'](_0x35f452,{'commandParams':[_0x4525fd]},[],_0x110a98);}}});}['handleDiscardAction'](_0x2b5923,_0x209aa7,_0x23c100){const _0x32f16b=_0x209aa7[0x0]['start']['nodeAfter'],_0x376b48=_0x23c100['commandParams'][0x0];this['editor']['model']['change'](_0x3f8446=>{for(const _0x2c745b of _0x2b5923)void 0x0!==_0x376b48[_0x2c745b]?_0x3f8446['setAttribute'](_0x2c745b,_0x376b48[_0x2c745b],_0x32f16b):_0x3f8446['removeAttribute'](_0x2c745b,_0x32f16b);});}['handleSuggestionDescription'](_0x406dda){if(_0x406dda['data'])switch(_0x406dda['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2f324d,_0x5dc521){const _0x66459b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3c9aa5 of _0x66459b['getSuggestions']({'skipNotAttached':!0x0})){const _0x7d8f80=_0x3c9aa5['getContainedElement']();if(_0x3c9aa5['subType']===_0x5dc521&&_0x7d8f80===_0x2f324d)return _0x3c9aa5;}return null;}}const m='$elementName';class p extends _0x463932{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xb11e74,_0x40b756,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,mt,dt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,xt,Dt,Mt,Bt,Et,$t,Ot,Rt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23b2e1){super(_0x23b2e1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3bf519,_0x1d0f1e,_0xaa5907,_0x7a6988)=>{this['_model']['change'](()=>{for(const _0x2b7787 of[..._0x7a6988,..._0xaa5907])this['_model']['markers']['has'](_0x2b7787)&&_0x23b2e1['editing']['reconvertMarker'](_0x2b7787);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x23b2e1['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x23b2e1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x23b2e1['config']['get']('trackChanges.trackFormatChanges'),_0x23b2e1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x23b2e1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x23b2e1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2a8da0=this['editor'],_0x2775e3=(_0x593691,_0x523e07)=>{if('attribute'!=_0x593691)return'ck-suggestion-marker-'+_0x593691;const _0x5cbd10=_0x523e07['split']('|')[0x0];return this['_isBlockAttribute'](_0x5cbd10)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2a8da0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x281a1e=>{const {id:_0x2d95e8,authorId:_0x47a997,type:_0x109b4c,subType:_0x3b3694}=this['_splitMarkerName'](_0x281a1e['markerName']),_0x5cadbf=['ck-suggestion-marker',_0x2775e3(_0x109b4c,_0x3b3694)];let _0x12c4af=0xbb8;return this['activeMarkers']['includes'](_0x281a1e['markerName'])&&(_0x5cadbf['push']('ck-suggestion-marker--active'),_0x12c4af=0xbc2),'deletion'==_0x109b4c&&(_0x12c4af+=0x5),{'classes':_0x5cadbf,'attributes':{'data-suggestion':_0x2d95e8,'data-author-id':_0x47a997},'priority':_0x12c4af};}}),_0x2a8da0['conversion']['for']('dataDowncast')['add'](_0x25a798=>{_0x25a798['on']('addMarker:suggestion',(_0x45d76d,_0x522414,_0x1115ca)=>{if(!_0x1115ca['options']['showSuggestionHighlights'])return;const _0x549082=_0x522414['item'];if(!_0x549082)return;const _0x407ca1=_0x1115ca['mapper']['toViewElement'](_0x549082);_0x2a8da0['model']['schema']['isObject'](_0x549082)&&_0x407ca1&&!_0x407ca1['getCustomProperty']('widget')&&_0x407ca1['is']('containerElement')&&_0x5ec67c(_0x407ca1,_0x1115ca['writer']);},{'priority':'high'});}),_0x2a8da0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5f298c,_0x15131a)=>{if(!_0x15131a['options']['showSuggestionHighlights'])return null;const {type:_0xbe8937,subType:_0x3166c8}=this['_splitMarkerName'](_0x5f298c['markerName']);return{'classes':['ck-suggestion-marker',_0x2775e3(_0xbe8937,_0x3166c8)],'priority':0xbb8};}});const _0x2475f6=({showActiveMarkers:_0x454e41=!0x0,isAttributeSuggestion:_0x27e690=!0x1}={})=>(_0x2bd412,_0x462f6c,_0x4c06c2)=>{if(!_0x462f6c['item'])return;const {id:_0x4fff43,authorId:_0x1974a6}=this['_splitMarkerName'](_0x462f6c['markerName']);if(_0x27e690){const _0x335457=this['_suggestions']['get'](_0x4fff43),_0x1a406a=this['_getAttributeKey'](_0x335457);if(!this['_isBlockAttribute'](_0x1a406a))return;}if(_0x462f6c['item']['is']('selection'))return void _0x4c06c2['consumable']['consume'](_0x462f6c['item'],_0x2bd412['name']);const _0x10f8b2=_0x4c06c2['mapper']['toViewElement'](_0x462f6c['item']);if(_0x462f6c['item']['is']('element')&&_0x2a8da0['model']['schema']['isBlock'](_0x462f6c['item'])&&!_0x10f8b2['getCustomProperty']('addHighlight')){_0x4c06c2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x10f8b2),_0x4c06c2['writer']['setAttribute']('data-suggestion',_0x4fff43,_0x10f8b2),_0x4c06c2['writer']['setAttribute']('data-author-id',_0x1974a6,_0x10f8b2),_0x4c06c2['mapper']['bindElementToMarker'](_0x10f8b2,_0x462f6c['markerName']),_0x454e41&&(this['activeMarkers']['includes'](_0x462f6c['markerName'])?_0x4c06c2['writer']['addClass']('ck-suggestion-marker--active',_0x10f8b2):_0x4c06c2['writer']['removeClass']('ck-suggestion-marker--active',_0x10f8b2));for(const _0x5498bb of _0x2a8da0['model']['createRangeIn'](_0x462f6c['item'])['getItems']())_0x4c06c2['consumable']['consume'](_0x5498bb,_0x2bd412['name']);_0x4c06c2['consumable']['consume'](_0x462f6c['item'],_0x2bd412['name']);}};_0x2a8da0['conversion']['for']('dataDowncast')['add'](_0x8c25f8=>{_0x8c25f8['on']('addMarker:suggestion:formatBlock',(_0x3a62fa,_0x1137de,_0x2eefd8)=>{_0x2eefd8['options']['showSuggestionHighlights']&&_0x2475f6({'showActiveMarkers':!0x1})(_0x3a62fa,_0x1137de,_0x2eefd8);},{'priority':'highest'});}),_0x2a8da0['conversion']['for']('dataDowncast')['add'](_0x12113e=>{_0x12113e['on']('addMarker:suggestion:attribute',(_0x3869d6,_0x3536c4,_0x4a8d52)=>{_0x4a8d52['options']['showSuggestionHighlights']&&_0x2475f6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3869d6,_0x3536c4,_0x4a8d52);},{'priority':'highest'});}),_0x2a8da0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4f0aa0,_0x3a6478)=>_0x3a6478['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4f0aa0['substr'](0xb)}}),_0x2a8da0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2c129c,{writer:_0x5c0a98})=>{let _0x37fa0e='suggestion:'+_0x2c129c['getAttribute']('suggestion-type')+':'+_0x2c129c['getAttribute']('id');return _0x2c129c['getAttribute']('marker-count')&&(_0x37fa0e+=':'+_0x2c129c['getAttribute']('marker-count')),_0x5c0a98['createElement']('$marker',{'data-name':_0x37fa0e});}}),_0x2a8da0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2a8da0['conversion']['for']('editingDowncast')['add'](_0x123807=>{_0x123807['on']('addMarker:suggestion:formatBlock',_0x2475f6(),{'priority':'high'});}),_0x2a8da0['conversion']['for']('editingDowncast')['add'](_0x2ca429=>{_0x2ca429['on']('addMarker:suggestion:attribute',_0x2475f6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2a8da0['conversion']['for']('editingDowncast')['add'](_0x3e8303=>{_0x3e8303['on']('removeMarker:suggestion:formatBlock',(_0x44c370,_0x41a0e1,_0x305a7f)=>{const _0x2ef8d5=_0x305a7f['mapper']['markerNameToElements'](_0x41a0e1['markerName']);if(_0x2ef8d5){for(const _0x25a099 of _0x2ef8d5)_0x25a099['getCustomProperty']('addHighlight')||(_0x305a7f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x25a099),_0x305a7f['writer']['removeAttribute']('data-suggestion',_0x25a099),_0x305a7f['writer']['removeAttribute']('data-author-id',_0x25a099),_0x305a7f['mapper']['unbindElementFromMarkerName'](_0x25a099,_0x41a0e1['markerName']));}},{'priority':'high'});}),_0x2a8da0['conversion']['for']('editingDowncast')['add'](_0x4e49b4=>{_0x4e49b4['on']('removeMarker:suggestion:attribute',(_0x584196,_0x1e6276,_0x43ff08)=>{const _0x147768=_0x43ff08['mapper']['markerNameToElements'](_0x1e6276['markerName']);if(!_0x147768)return;const {id:_0x4f7850}=this['_splitMarkerName'](_0x1e6276['markerName']),_0x31c2f9=this['_suggestions']['get'](_0x4f7850),_0x35543f=this['_getAttributeKey'](_0x31c2f9);if(this['_isBlockAttribute'](_0x35543f)){for(const _0x43a493 of _0x147768)_0x43a493['getCustomProperty']('addHighlight')||(_0x43ff08['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x43a493),_0x43ff08['writer']['removeAttribute']('data-suggestion',_0x43a493),_0x43ff08['writer']['removeAttribute']('data-author-id',_0x43a493),_0x43ff08['mapper']['unbindElementFromMarkerName'](_0x43a493,_0x1e6276['markerName']));}},{'priority':'high'});}),_0x2a8da0['model']['document']['registerPostFixer'](_0x274a08=>{let _0x770c01=!0x1;const _0x5f26f5=Array['from'](_0x2a8da0['model']['document']['differ']['getChangedMarkers']()),_0x3bcd61=new Set();for(const {name:_0x243c21,data:_0x485d00}of _0x5f26f5){const {group:_0x3494d3,type:_0x2cbc13,subType:_0x18fc0f,id:_0x550ceb}=this['_splitMarkerName'](_0x243c21);if('suggestion'!==_0x3494d3)continue;const _0x2bad4a=this['_suggestions']['get'](_0x550ceb);if(null!=_0x485d00['newRange']){'formatInline'==_0x2cbc13&&(_0x770c01=_0x770c01||Ft(_0x485d00['newRange'],_0x243c21,_0x274a08,_0x2a8da0['model']['schema']));const _0x4c0c50='attribute'==_0x2cbc13&&this['_isBlockAttribute'](_0x18fc0f['split']('|')[0x0]);if(_0x485d00['newRange']['isCollapsed']||'$graveyard'==_0x485d00['newRange']['root']['rootName']||'formatBlock'==_0x2cbc13&&!Jt(_0x485d00['newRange'])||_0x4c0c50&&!Jt(_0x485d00['newRange'])||'deletion'==_0x2cbc13&&!(!Gt(_0x1b5e34=_0x485d00['newRange'])&&!function(_0x49d97d){return _0x49d97d['start']['parent']==_0x49d97d['end']['nodeBefore']&&_0x49d97d['start']['isAtEnd'];}(_0x1b5e34)))_0x274a08['removeMarker'](_0x243c21),_0x770c01=!0x0;else{if(!_0x2bad4a||!_0x2bad4a['isInContent'])continue;if(_0x485d00['newRange']&&_0x485d00['oldRange']&&_0x485d00['newRange']['isEqual'](_0x485d00['oldRange']))continue;_0x3bcd61['add'](_0x2bad4a);}}}var _0x1b5e34;return _0x3bcd61['size']>0x0&&(_0x770c01=!!this['_joinWithAdjacentSuggestions'](_0x3bcd61)||_0x770c01),_0x770c01;}),_0x2a8da0['model']['document']['registerPostFixer'](_0x457986=>{let _0x254f8c=!0x1;for(const _0x399f69 of _0x2a8da0['model']['document']['differ']['getChanges']())if('insert'==_0x399f69['type'])for(const _0x4a95d8 of this['_suggestions']['values']()){if(_0x4a95d8['isMultiRange']||!_0x4a95d8['isInContent'])continue;const _0x1f8b30='formatBlock'==_0x4a95d8['type'],_0x3f195e=this['_getAttributeKey'](_0x4a95d8),_0x1a1fef=_0x3f195e&&this['_isBlockAttribute'](_0x3f195e);if(!_0x1f8b30&&!_0x1a1fef)continue;const _0x330193=_0x4a95d8['getFirstRange']();if(_0x330193['start']['parent']!=_0x330193['end']['parent']&&!_0x330193['end']['isAtEnd']){const _0xe8f613=_0x2a8da0['model']['createPositionAt'](_0x330193['start']['nodeAfter'],'end'),_0x3000a9=_0x2a8da0['model']['createRange'](_0x330193['start'],_0xe8f613);_0x457986['updateMarker'](_0x4a95d8['getFirstMarker'](),{'range':_0x3000a9}),_0x254f8c=!0x0;}}return _0x254f8c;}),_0x2a8da0['model']['document']['registerPostFixer'](_0xf2e8fe=>this['_processAttributeChanges'](_0xf2e8fe)),_0x2a8da0['model']['document']['registerPostFixer'](_0x10b39c=>!_0x10b39c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x10b39c)),_0x2a8da0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2a8da0['model']['document']['on']('change:data',(_0x2f5325,_0x3821df)=>{if(!_0x3821df['isLocal']||_0x3821df['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xb5d7f5=_0x2a8da0['model']['document']['differ']['getChanges']();if(0x0==_0xb5d7f5['length'])return;const _0x1bd0f4=[],_0x566ec9=_0xb5d7f5['filter'](_0x37fa1e=>'attribute'==_0x37fa1e['type']),_0x44cd2d=_0xb5d7f5['filter'](_0xad2b86=>'insert'==_0xad2b86['type']&&'$text'!=_0xad2b86['name']);for(const _0x168649 of _0x566ec9)this['_isRegisteredAttribute'](_0x168649['attributeKey'])&&_0x1bd0f4['push']({'key':_0x168649['attributeKey'],'newValue':_0x168649['attributeNewValue'],'oldValue':_0x168649['attributeOldValue'],'range':Ht(_0x168649['range'],_0x2a8da0['model'])});for(const _0x31b582 of _0x44cd2d){if('rename'!=_0x31b582['action']&&'refresh'!=_0x31b582['action'])continue;const _0x3bf9ea=qt(_0x31b582['position']['nodeAfter'],_0x2a8da0['model']),_0x24d22d=_0x31b582['before'];'rename'==_0x31b582['action']&&_0x1bd0f4['push']({'key':m,'newValue':_0x31b582['name'],'oldValue':_0x24d22d['name'],'range':_0x3bf9ea});for(const [_0xdad9a5,_0xa661a8]of _0x24d22d['attributes']){if(!this['_isRegisteredAttribute'](_0xdad9a5))continue;const _0x58e19f=_0x31b582['attributes']['get'](_0xdad9a5);_0xa661a8!==_0x58e19f&&_0x1bd0f4['push']({'key':_0xdad9a5,'newValue':_0x58e19f,'oldValue':_0xa661a8,'range':_0x3bf9ea});}for(const [_0x4196f2,_0x22ca8e]of _0x31b582['attributes'])this['_isRegisteredAttribute'](_0x4196f2)&&(_0x24d22d['attributes']['has'](_0x4196f2)||_0x1bd0f4['push']({'key':_0x4196f2,'newValue':_0x22ca8e,'oldValue':null,'range':_0x3bf9ea}));}0x0!=_0x1bd0f4['length']&&_0x2a8da0['model']['enqueueChange'](_0x3821df,_0x40e0c3=>{const _0x541e69=_0x8b70ee();for(const {range:_0x33b89d,key:_0x460cfe,oldValue:_0x106613,newValue:_0x5af9a6}of _0x1bd0f4)this['markAttributeChange'](_0x33b89d,_0x460cfe,_0x106613,_0x5af9a6,{'groupId':_0x541e69});this['_reduceExistingSuggestions'](_0x40e0c3,_0x1bd0f4);});},{'priority':'lowest'}),_0x2a8da0['model']['markers']['on']('update:suggestion',(_0x42e7a6,_0x268489,_0x18e2bf)=>{if(null==_0x18e2bf){const {id:_0x49afd8}=this['_splitMarkerName'](_0x268489['name']),_0x3a3897=this['_suggestions']['get'](_0x49afd8);_0x3a3897&&_0x3a3897['addMarkerName'](_0x268489['name']);}}),_0x2a8da0['model']['document']['on']('change:data',()=>{const _0x1c1117=Array['from'](_0x2a8da0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1e6c43=>'suggestion'===this['_splitMarkerName'](_0x1e6c43['name'])['group']);if(0x0===_0x1c1117['length'])return;_0x1c1117['sort']((_0x3712d0,_0x5762ae)=>{const _0x4cf2ce=_0x3712d0['data']['oldRange'],_0x339ebc=_0x5762ae['data']['oldRange'];return null===_0x4cf2ce&&null===_0x339ebc?0x0:null===_0x4cf2ce&&null!==_0x339ebc?-0x1:null!==_0x4cf2ce&&null===_0x339ebc?0x1:_0x4cf2ce['start']['isBefore'](_0x339ebc['start'])?-0x1:0x1;});const _0x57c974=new Set(),_0x338c4a=new Set();for(const {name:_0x4f57a2,data:_0x47b0d1}of _0x1c1117){const {id:_0x321bf9}=this['_splitMarkerName'](_0x4f57a2);if(null===_0x47b0d1['oldRange']){const _0x4a21c5=this['_handleNewSuggestionMarker'](_0x4f57a2);_0x338c4a['add'](_0x4a21c5);}else{const _0x29a452=this['_suggestions']['get'](_0x321bf9);null!==_0x47b0d1['newRange']||_0x29a452['isInContent']?(_0x57c974['add'](_0x29a452['head']),_0x338c4a['add'](_0x29a452)):this['_removeSuggestion'](_0x29a452);}}_0x338c4a['size']>0x0&&this['_refreshSuggestionsChain'](_0x338c4a);for(const _0x52dc6a of _0x57c974)this['fire']('suggestionChanged',_0x52dc6a);}),_0x2a8da0['model']['on']('applyOperation',(_0x219c2a,_0x384c19)=>{const _0x2b9445=_0x384c19[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b9445['isDocumentOperation'])return;if(_0x2b9445['batch']['isUndo']||!_0x2b9445['batch']['isLocal'])return;let _0x7dc4dc,_0x602ecf;switch(_0x2b9445['type']){case'insert':_0x7dc4dc=_0x2a8da0['model']['createPositionAt'](_0x2b9445['position']),_0x602ecf=_0x7dc4dc['getShiftedBy'](_0x2b9445['howMany']);break;case'split':_0x7dc4dc=_0x2a8da0['model']['createPositionAt'](_0x2b9445['splitPosition']),_0x602ecf=_0x2a8da0['model']['createPositionAt'](_0x2b9445['moveTargetPosition']);break;case'move':_0x7dc4dc=_0x2a8da0['model']['createPositionAt'](_0x2b9445['targetPosition']),_0x602ecf=_0x7dc4dc['getShiftedBy'](_0x2b9445['howMany']);break;default:return;}const _0x295ad3=_0x2a8da0['model']['createRange'](_0x7dc4dc,_0x602ecf);_0x2a8da0['model']['change'](()=>{for(const {suggestion:_0x316757,meta:_0x14afa2}of this['_findSuggestions'](_0x295ad3)){if(_0x316757['isMultiRange'])continue;if('formatInline'==_0x316757['type'])continue;const _0x291ef0=this['_getAttributeKey'](_0x316757);if(_0x291ef0&&this['_isBlockAttribute'](_0x291ef0)&&'split'!=_0x2b9445['type'])continue;const _0x195470=_0x316757['data']&&_0x316757['data']['multipleBlocks'];('formatBlock'!=_0x316757['type']||'split'==_0x2b9445['type']&&!_0x195470)&&(_0x14afa2['containsRangeInObject']||'insertion'==_0x316757['type']&&_0x14afa2['isOwn']||_0x316757['getFirstRange']()['containsRange'](_0x295ad3)&&this['_breakSuggestionMarker'](_0x316757,_0x7dc4dc,_0x602ecf));}});},{'priority':'lowest'}),_0x2a8da0['model']['on']('deleteContent',(_0x2a0262,_0x41abe6)=>{const _0x416a4c=_0x41abe6[0x0],_0x1e1952=_0x41abe6[0x1];if(_0x1e1952&&_0x1e1952['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x416a4c['isCollapsed'])return;const _0x34d7aa=_0x2a8da0['model']['schema'],{start:_0x48f0c1,end:_0x27104f}=_0x416a4c['getFirstRange'](),_0x12ea66=_0x48f0c1['nodeAfter']&&_0x34d7aa['isLimit'](_0x48f0c1['nodeAfter'])?null:_0x34d7aa['getNearestSelectionRange'](_0x48f0c1,'forward'),_0x5c4b19=_0x27104f['nodeBefore']&&_0x34d7aa['isLimit'](_0x27104f['nodeBefore'])?null:_0x34d7aa['getNearestSelectionRange'](_0x27104f,'backward'),_0x338ce8=_0x2a8da0['model']['createRange'](_0x12ea66?_0x12ea66['start']:_0x48f0c1,_0x5c4b19?_0x5c4b19['end']:_0x27104f);_0x2a8da0['model']['change'](_0x1423ed=>{this['markDeletion'](_0x338ce8);const _0x50aafa=_0x2a8da0['model']['schema']['getNearestSelectionRange'](_0x338ce8['start']);_0x416a4c['is']('documentSelection')?_0x1423ed['setSelection'](_0x50aafa):_0x416a4c['setTo'](_0x50aafa);}),_0x2a0262['stop']();},{'priority':_0x282e0b['normal']+0xa}),_0x2a8da0['model']['on']('insertContent',(_0x4e9e3b,_0x53490a)=>{const _0x3f5a68=_0x53490a[_0x53490a['length']-0x1];_0x3f5a68&&_0x3f5a68['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2a8da0['model']['change'](()=>{let _0x3f667=_0x2a8da0['model']['insertContent'](_0x53490a[0x0],_0x53490a[0x1],_0x53490a[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f667)return;_0x4e9e3b['return']=_0x3f667['clone']();const _0x54c81e=_0x3f667['end']['nodeBefore'],_0x244c84=_0x2a8da0['model']['schema'];_0x54c81e&&_0x244c84['isBlock'](_0x54c81e)&&!_0x244c84['isObject'](_0x54c81e)&&(_0x3f667=_0x2a8da0['model']['createRange'](_0x3f667['start'],_0x2a8da0['model']['createPositionAt'](_0x54c81e,'end'))),this['markInsertion'](_0x3f667);}),_0x4e9e3b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2438b0=new O(_0x2a8da0,this['_suggestions']);_0x2a8da0['commands']['add']('acceptSuggestion',_0x2438b0),this['enableCommand']('acceptSuggestion');const _0x2f26da=new R(_0x2a8da0,this['_suggestions']);_0x2a8da0['commands']['add']('discardSuggestion',_0x2f26da),this['enableCommand']('discardSuggestion'),_0x2a8da0['commands']['add']('acceptAllSuggestions',new x(_0x2a8da0,_0x2438b0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2a8da0['commands']['add']('discardAllSuggestions',new x(_0x2a8da0,_0x2f26da,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2a8da0['commands']['add']('acceptSelectedSuggestions',new E(_0x2a8da0,_0x2438b0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2a8da0['commands']['add']('discardSelectedSuggestions',new E(_0x2a8da0,_0x2f26da,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x16de08=_0x2a8da0['plugins']['get']('CommentsRepository');this['listenTo'](_0x16de08,'addComment',(_0x38abaa,{threadId:_0x11e9d3})=>{const _0x4f1b5b=this['_suggestions']['get'](_0x11e9d3);_0x4f1b5b&&_0x4f1b5b['commentThread']&&0x1===_0x4f1b5b['commentThread']['length']&&this['_updateSuggestionData'](_0x11e9d3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x16de08,'removeComment',(_0x3223db,{threadId:_0x3bee62})=>{const _0x1d4bc5=this['_suggestions']['get'](_0x3bee62);_0x1d4bc5&&_0x1d4bc5['commentThread']&&!_0x1d4bc5['commentThread']['length']&&this['_updateSuggestionData'](_0x3bee62,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x222c3c){const _0x402e73=_0x29d816([0x4e,0x33,0x35,0x54,0x58,0x78,0x70,0x76,0x59,0x68,0x38,0x72,0x4a,0x79,0x32,0x62,0x6f,0x73,0x34,0x31,0x69,0x4d,0x47,0x6a,0x4f,0x43,0x64,0x48,0x67,0x41,0x49,0x50,0x36,0x56,0x52,0x4b,0x30,0x4c,0x6d,0x53,0x61,0x51,0x6b,0x71,0x66,0x45,0x46,0x37,0x65,0x6c,0x77,0x42,0x5a,0x74,0x39,0x57,0x44,0x75,0x63,0x6e,0x55,0x7a]),_0x10d943=0x66398a4a,_0x5afd5e=0x663ed40a^_0x10d943,_0x2d89c9=window[_0x29d816([0x44,0x61,0x74,0x65])][_0x29d816([0x6e,0x6f,0x77])](),_0x3bfebc=_0x222c3c[_0x29d816([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a490c=new window[(_0x29d816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x117f7e=>{_0x3bfebc[_0x29d816([0x6f,0x6e,0x63,0x65])](_0x29d816([0x72,0x65,0x61,0x64,0x79]),_0x117f7e);}),_0x4d75b1={[_0x29d816([0x6b,0x74,0x79])]:_0x29d816([0x45,0x43]),[_0x29d816([0x75,0x73,0x65])]:_0x29d816([0x73,0x69,0x67]),[_0x29d816([0x63,0x72,0x76])]:_0x29d816([0x50,0x2d,0x32,0x35,0x36]),[_0x29d816([0x78])]:_0x29d816([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]),[_0x29d816([0x79])]:_0x29d816([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]),[_0x29d816([0x61,0x6c,0x67])]:_0x29d816([0x45,0x53,0x32,0x35,0x36])},_0x2507f0=_0x3bfebc[_0x29d816([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29d816([0x67,0x65,0x74])](_0x29d816([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x21d0f2(){let _0x1be3d7,_0x501ff6=null,_0x558f2f=null;try{if(_0x2507f0==_0x29d816([0x47,0x50,0x4c]))return _0x29d816([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1be3d7=_0xcc9cf6(),!_0x1be3d7)return _0x29d816([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1be3d7[_0x29d816([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x558f2f=_0x498868(_0x1be3d7[_0x29d816([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1be3d7[_0x29d816([0x6a,0x74,0x69])])),await _0xf8b08d()?_0x189222()?_0x35cff7()?_0x29d816([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x558720()?(_0x1be3d7[_0x29d816([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29d816([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x501ff6=_0x43a430(_0x29d816([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1be3d7[_0x29d816([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29d816([0x74,0x72,0x69,0x61,0x6c])&&(_0x501ff6=_0x43a430(_0x29d816([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36d5fb()):_0x29d816([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29d816([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29d816([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2d3f15){return _0x29d816([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35cff7(){const _0x4ba863=[_0x29d816([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29d816([0x74,0x72,0x69,0x61,0x6c])][_0x29d816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1be3d7[_0x29d816([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d89c9/0x3e8:0xe10*_0x5afd5e;return _0x1be3d7[_0x29d816([0x65,0x78,0x70])]<_0x4ba863;}function _0x189222(){const _0x1dcf1b=_0x1be3d7[_0x29d816([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1dcf1b)return!0x1;if(_0x1dcf1b[_0x29d816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d816([0x2a])))return!0x0;if(_0x1dcf1b[_0x29d816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d816([0x54,0x43])))return!0x0;if(_0x1dcf1b[_0x29d816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d816([0x52,0x54,0x43]))){if(_0xbef86a())return!0x0;if(_0x21ab68()||_0x188fd8())return!0x0;}return!0x1;}function _0x558720(){const _0x573634=_0x1be3d7[_0x29d816([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x573634||0x0==_0x573634[_0x29d816([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ca8fa}=new URL(window[_0x29d816([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x573634[_0x29d816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ca8fa))return!0x0;const _0xc604b=_0x3ca8fa[_0x29d816([0x73,0x70,0x6c,0x69,0x74])](_0x29d816([0x2e]));return _0x573634[_0x29d816([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48b518=>_0x48b518[_0x29d816([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d816([0x2a])))[_0x29d816([0x6d,0x61,0x70])](_0x34fce7=>_0x34fce7[_0x29d816([0x73,0x70,0x6c,0x69,0x74])](_0x29d816([0x2e])))[_0x29d816([0x73,0x6f,0x6d,0x65])](_0x31b482=>_0xc604b[_0x29d816([0x65,0x76,0x65,0x72,0x79])]((_0x5f3c46,_0x59031f)=>_0x31b482[_0x59031f]===_0x5f3c46||_0x31b482[_0x59031f]===_0x29d816([0x2a])));}function _0x36d5fb(){return _0x501ff6&&_0x558f2f?new window[(_0x29d816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x242550,_0x2de4d2)=>{_0x501ff6[_0x29d816([0x74,0x68,0x65,0x6e])](_0x242550,_0x2de4d2),_0x558f2f[_0x29d816([0x74,0x68,0x65,0x6e])](_0x5b998a=>{_0x5b998a!=_0x29d816([0x56,0x61,0x6c,0x69,0x64])&&_0x242550(_0x5b998a);},_0x2de4d2);}):_0x501ff6||_0x558f2f||_0x29d816([0x56,0x61,0x6c,0x69,0x64]);}}function _0x498868(_0x2b2b69,_0x5497c7){return new window[(_0x29d816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21ef7e=>{if(_0x15049b())return _0x21ef7e(_0x29d816([0x56,0x61,0x6c,0x69,0x64]));_0x2f28aa(),_0x3bfebc[_0x29d816([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29d816([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2abf06=!0x1;const _0x31f428=_0x8b70ee();function _0x578812(_0x25bd20){return!!_0x25bd20&&(typeof _0x25bd20===_0x29d816([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25bd20===_0x29d816([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25bd20[_0x29d816([0x74,0x68,0x65,0x6e])]===_0x29d816([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25bd20[_0x29d816([0x63,0x61,0x74,0x63,0x68])]===_0x29d816([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x221193(_0x448cec){_0x6876a2(_0x448cec)[_0x29d816([0x74,0x68,0x65,0x6e])](_0x4d45f3=>{if(!_0x4d45f3||_0x4d45f3[_0x29d816([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29d816([0x6f,0x6b]))return _0x29d816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57f608(_0x30f986(_0x31f428+_0x5497c7))!=_0x4d45f3[_0x29d816([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29d816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29d816([0x56,0x61,0x6c,0x69,0x64]);})[_0x29d816([0x74,0x68,0x65,0x6e])](_0x5ef0ac=>(_0x1298be(),_0x5ef0ac),()=>{const _0x5f172f=_0x2e1ecc();return null==_0x5f172f?(_0x1298be(),_0x29d816([0x56,0x61,0x6c,0x69,0x64])):_0x29d816(_0x2d89c9-_0x5f172f>(0x42350e4a^_0x10d943)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29d816([0x74,0x68,0x65,0x6e])](_0x21ef7e)[_0x29d816([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21ef7e(_0x29d816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d243e=0x660f64ca^_0x10d943;function _0x1298be(){const _0x31f91b=_0x29d816([0x6c,0x6c,0x63,0x74,0x2d])+_0x57f608(_0x30f986(_0x2b2b69)),_0x5ab14f=_0x1f8978(_0x57f608(window[_0x29d816([0x4d,0x61,0x74,0x68])][_0x29d816([0x63,0x65,0x69,0x6c])](_0x2d89c9/_0x1d243e)));window[_0x29d816([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29d816([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31f91b,_0x5ab14f);}function _0x2e1ecc(){const _0x2e58ac=_0x29d816([0x6c,0x6c,0x63,0x74,0x2d])+_0x57f608(_0x30f986(_0x2b2b69)),_0x593dcc=window[_0x29d816([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29d816([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e58ac);return _0x593dcc?window[_0x29d816([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f8978(_0x593dcc),0x10)*_0x1d243e:null;}function _0x6876a2(_0x135dba){return new window[(_0x29d816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54113e,_0x4c70a4)=>{_0x135dba[_0x29d816([0x74,0x68,0x65,0x6e])](_0x54113e,_0x4c70a4),window[_0x29d816([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c70a4,0x66385e8a^_0x10d943);});}}_0x3bfebc[_0x29d816([0x6f,0x6e])](_0x29d816([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd5cd02,_0x5650c8)=>{if(_0x5650c8[0x0]!=_0x2b2b69)return _0x21ef7e(_0x29d816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5650c8[0x1]={..._0x5650c8[0x1],[_0x29d816([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31f428};},{[_0x29d816([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29d816([0x68,0x69,0x67,0x68])}),_0x3bfebc[_0x29d816([0x6f,0x6e])](_0x29d816([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x360c14=>{_0x578812(_0x360c14[_0x29d816([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2abf06=!0x0,_0x221193(_0x360c14[_0x29d816([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29d816([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29d816([0x6c,0x6f,0x77])}),_0x2a490c[_0x29d816([0x74,0x68,0x65,0x6e])](()=>{_0x2abf06||_0x21ef7e(_0x29d816([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15049b(){return _0x3bfebc[_0x29d816([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29d816([0x76,0x69,0x65,0x77])][_0x29d816([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29d816([0x61,0x75,0x74,0x6f]);}function _0x2f28aa(){_0x3bfebc[_0x29d816([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29d816([0x76,0x69,0x65,0x77])][_0x29d816([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29d816([0x61,0x75,0x74,0x6f]);}}function _0x43a430(_0x33281a){const _0x2e394e=[new window[(_0x29d816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x505ce2=>setTimeout(_0x505ce2,0x6630b486^_0x10d943)),_0x2a490c[_0x29d816([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29d816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38ce10=>{let _0x416ec5=0x0;_0x3bfebc[_0x29d816([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d816([0x6f,0x6e])](_0x29d816([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f9764,_0x4d54cf)=>{_0x4d54cf[0x0][_0x29d816([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x416ec5++,_0x416ec5==(0x66398bb2^_0x10d943)&&(_0x38ce10(),_0x3f9764[_0x29d816([0x6f,0x66,0x66])]());});}))];return window[_0x29d816([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29d816([0x72,0x61,0x63,0x65])](_0x2e394e)[_0x29d816([0x74,0x68,0x65,0x6e])](()=>_0x33281a);}async function _0x4914fd(){await _0x2a490c,_0x3bfebc[_0x29d816([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d816([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2b16fa,_0x3bfebc[_0x29d816([0x6d,0x6f,0x64,0x65,0x6c])][_0x29d816([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2b16fa,_0x3bfebc[_0x29d816([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29d816([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xbef86a(){return _0x395990(_0x29d816([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5ac263(_0x29d816([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29d816([0x73,0x74,0x61,0x74,0x65])]==_0x29d816([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21ab68(){return _0x395990(_0x29d816([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 _0x188fd8(){return _0x395990(_0x29d816([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47ab98(_0x4ffcfa){const _0x2641b3=_0x311876();_0x3bfebc[_0x2641b3]=_0x29d816([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ffcfa,_0x4ffcfa!=_0x29d816([0x56,0x61,0x6c,0x69,0x64])&&_0x4914fd();}function _0x311876(){const _0x4eb532=window[_0x29d816([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29d816([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29d816([0x6e,0x6f,0x77])]())[_0x29d816([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29d816([0x2e]),'');let _0x16caac=_0x29d816([0x4e]);for(let _0x15ff21=0x0;_0x15ff21<_0x4eb532[_0x29d816([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15ff21+=0x2){let _0xcec431=window[_0x29d816([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eb532[_0x29d816([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15ff21,_0x15ff21+0x2));_0xcec431>=_0x402e73[_0x29d816([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcec431-=_0x402e73[_0x29d816([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16caac+=_0x402e73[_0xcec431];}return _0x16caac;}function _0xcc9cf6(){const _0x4c7967=_0x2507f0[_0x29d816([0x73,0x70,0x6c,0x69,0x74])](_0x29d816([0x2e]));if(0x3!=_0x4c7967[_0x29d816([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x38dd16(_0x4c7967[0x1]);function _0x38dd16(_0x27bd56){const _0x5c31a4=_0x5666d9(_0x27bd56);return _0x5c31a4&&_0x172d73()?_0x5c31a4:null;function _0x172d73(){const _0xae38cc=_0x5c31a4[_0x29d816([0x6a,0x74,0x69])],_0x2b3335=window[_0x29d816([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xae38cc[_0x29d816([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xae38cc[_0x29d816([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1fb62b={..._0x5c31a4,[_0x29d816([0x6a,0x74,0x69])]:_0xae38cc[_0x29d816([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xae38cc[_0x29d816([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1fb62b[_0x29d816([0x76,0x63])],_0x30f986(_0x1fb62b)==_0x2b3335;}}}async function _0xf8b08d(){let _0x522ba4=!0x0;try{const _0x41a2af=_0x2507f0[_0x29d816([0x73,0x70,0x6c,0x69,0x74])](_0x29d816([0x2e])),[_0x29bb61,_0xc6df3f,_0x45d8d9]=_0x41a2af;return _0x34b56f(_0x29bb61),await _0x4d37b3(_0x29bb61,_0xc6df3f,_0x45d8d9),_0x522ba4;}catch(_0x351f40){return!0x1;}function _0x34b56f(_0x44377b){const _0x33e63a=_0x5666d9(_0x44377b);_0x33e63a&&_0x33e63a[_0x29d816([0x61,0x6c,0x67])]==_0x29d816([0x45,0x53,0x32,0x35,0x36])||(_0x522ba4=!0x1);}async function _0x4d37b3(_0x19804c,_0x18c374,_0x1a4191){const _0x821266=window[_0x29d816([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29d816([0x66,0x72,0x6f,0x6d])](_0x49903b(_0x1a4191),_0x98f0=>_0x98f0[_0x29d816([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x464501=new window[(_0x29d816([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29d816([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19804c+_0x29d816([0x2e])+_0x18c374),_0x5ce85a=window[_0x29d816([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29d816([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ce85a)return;const _0x35531a=await _0x5ce85a[_0x29d816([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29d816([0x6a,0x77,0x6b]),_0x4d75b1,{[_0x29d816([0x6e,0x61,0x6d,0x65])]:_0x29d816([0x45,0x43,0x44,0x53,0x41]),[_0x29d816([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29d816([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29d816([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ce85a[_0x29d816([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29d816([0x6e,0x61,0x6d,0x65])]:_0x29d816([0x45,0x43,0x44,0x53,0x41]),[_0x29d816([0x68,0x61,0x73,0x68])]:{[_0x29d816([0x6e,0x61,0x6d,0x65])]:_0x29d816([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35531a,_0x821266,_0x464501)||(_0x522ba4=!0x1);}}function _0x5666d9(_0x35c818){return _0x35c818[_0x29d816([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29d816([0x65,0x79]))?JSON[_0x29d816([0x70,0x61,0x72,0x73,0x65])](_0x49903b(_0x35c818)):null;}function _0x49903b(_0x2f929e){return window[_0x29d816([0x61,0x74,0x6f,0x62])](_0x2f929e[_0x29d816([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29d816([0x2b]))[_0x29d816([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29d816([0x2f])));}function _0x30f986(_0x1850bb){let _0x3cd3c7=0x1505;function _0x23ddb8(_0x19df82){for(let _0x323f24=0x0;_0x323f24<_0x19df82[_0x29d816([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x323f24++){const _0x97eeb5=_0x19df82[_0x29d816([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x323f24);_0x3cd3c7=(_0x3cd3c7<<0x5)+_0x3cd3c7+_0x97eeb5,_0x3cd3c7&=_0x3cd3c7;}}function _0x8ed482(_0x44c224){Array[_0x29d816([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44c224)?_0x44c224[_0x29d816([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8ed482):_0x44c224&&typeof _0x44c224==_0x29d816([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29d816([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44c224)[_0x29d816([0x73,0x6f,0x72,0x74])]()[_0x29d816([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bec8f,_0x3ab211])=>{_0x23ddb8(_0x5bec8f),_0x8ed482(_0x3ab211);}):_0x23ddb8(window[_0x29d816([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44c224));}return _0x8ed482(_0x1850bb),_0x3cd3c7>>>0x0;}function _0x57f608(_0x4112fb){return _0x4112fb[_0x29d816([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29d816([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29d816([0x30]));}function _0x1f8978(_0x1f2549){return _0x1f2549[_0x29d816([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29d816([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29d816([0x6a,0x6f,0x69,0x6e])]('');}function _0x395990(_0x59c2d2){return _0x3bfebc[_0x29d816([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29d816([0x68,0x61,0x73])](_0x59c2d2);}function _0x5ac263(_0x54e57e){return _0x3bfebc[_0x29d816([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29d816([0x67,0x65,0x74])](_0x54e57e);}function _0x2b16fa(){}function _0x29d816(_0x26c127){return _0x26c127['map'](_0x40bcab=>String['fromCharCode'](_0x40bcab))['join']('');}_0x47ab98(await _0x21d0f2());}(this);}set['adapter'](_0x5e9009){if(this['_adapter'])throw new _0x3384ca('track-changes-adapter-already-set',this);this['_adapter']=_0x5e9009;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x7905b5=!0x1,toJSON:_0x24ad12=!0x1}={}){const _0x283e09=[];for(const _0x2f50c7 of this['_suggestions']['values']())_0x7905b5&&!_0x2f50c7['isInContent']||_0x283e09['push'](_0x2f50c7);return _0x24ad12?_0x283e09['map'](_0x4a3f68=>_0x4a3f68['toJSON']()):_0x283e09;}['getSuggestion'](_0x3e7c6f){const _0x184e70=this['_suggestions']['get'](_0x3e7c6f);if(!_0x184e70)throw new _0x3384ca('track-changes-suggestion-not-found',this);return _0x184e70;}['hasSuggestion'](_0x16e68a){return this['_suggestions']['has'](_0x16e68a);}['addSuggestionData'](_0x370858){const {authorId:_0x1798d8,id:_0x90cf49,attributes:_0x9a46d2}=_0x370858,[_0x14a3e8,_0x1140b8]=_0x370858['type']['split'](':'),_0x2daa23=this['_suggestions']['get'](_0x90cf49)||this['_createSuggestion'](_0x14a3e8,_0x1140b8,_0x90cf49,_0x1798d8,_0x9a46d2);if(this['_addThreadToSuggestion'](_0x2daa23),this['_checkSuggestionCorrectness'](_0x2daa23,_0x14a3e8,_0x1140b8||null,_0x1798d8),_0x2daa23['createdAt']=_0x370858['createdAt'],_0x2daa23['_isDataLoaded']=!0x0,_0x9a46d2&&_0x9a46d2['@external']){const _0x3720f6=_0x9a46d2['@external'],_0x261743=this['_getExternalAuthor'](_0x3720f6['authorName']);_0x2daa23['authoredAt']=_0x3720f6['createdAt'],_0x2daa23['author']=_0x261743,_0x2daa23['isExternal']=!0x0;}else _0x2daa23['authoredAt']=_0x370858['createdAt'];switch(_0x370858['data']&&(_0x2daa23['data']=_0x370858['data']),_0x370858['attributes']&&(_0x2daa23['attributes']=_0x370858['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2daa23['_saved']=!0x0),this['_suggestionState']['get'](_0x2daa23)){case'notReady':this['_suggestionState']['set'](_0x2daa23,'dataReady');break;case'markerReady':_0x2daa23['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2daa23])),this['_refreshSuggestionsChain'](new Set([_0x2daa23])),this['_suggestionState']['set'](_0x2daa23,'ready'),this['fire']('suggestionLoaded',_0x2daa23)):this['_suggestionState']['set'](_0x2daa23,'removed');}return _0x2daa23;}['acceptSuggestion'](_0x37e460){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x260212 of _0x37e460['getAllAdjacentSuggestions']())_0x260212['accept']();});});}['discardSuggestion'](_0x23797d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x527fe4 of _0x23797d['getAllAdjacentSuggestions']())_0x527fe4['discard']();});});}['enableCommand'](_0x546e9b,_0x141669){const _0x31d565=this['editor']['commands']['get'](_0x546e9b);if(!_0x31d565)throw new _0x3384ca('track-changes-command-not-found',this,{'commandName':_0x546e9b});if(this['_enabledCommands']['has'](_0x31d565))throw new _0x3384ca('track-changes-enable-command-twice',this,{'commandName':_0x546e9b});this['_enabledCommands']['add'](_0x31d565),_0x141669&&_0x31d565['on']('execute',(_0x2b9d1f,_0x5b4c3c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b4c3c['length']>0x0&&_0x5b4c3c[_0x5b4c3c['length']-0x1]&&_0x5b4c3c[_0x5b4c3c['length']-0x1]['forceDefaultExecution']?_0x5b4c3c['pop']():(_0x2b9d1f['return']=_0x141669((..._0x34802e)=>_0x31d565['execute'](..._0x34802e,{'forceDefaultExecution':!0x0}),..._0x5b4c3c),_0x2b9d1f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x205eef){let _0x140b05,_0x998c64;const _0x442533=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x140b05=_0x205eef();}catch(_0x108326){_0x998c64=_0x108326;}return _0x442533||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x998c64&&_0x3384ca['rethrowUnexpectedError'](_0x998c64,this),_0x140b05;}['markInsertion'](_0x194f2d,_0xdc4c93=null,_0x247077={}){if(_0x194f2d['isCollapsed'])return null;const _0x28a98c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x186e93,meta:_0x3790fb}of this['_findSuggestions'](_0x194f2d,'insertion'))if(_0x3790fb['isOwn']){if(!_0x3790fb['isNextTo']){if(_0x3790fb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0x186e93,_0x247077))continue;return _0x186e93;}if(Wt(_0x186e93,_0x247077))return _0x186e93;this['_breakSuggestionMarker'](_0x186e93,_0x194f2d['start'],_0x194f2d['end']);break;}if(_0xdc4c93==_0x186e93['subType']&&Wt(_0x186e93,_0x247077)){const _0x445e2d=_0x186e93['getFirstRange']();return _0x445e2d['start']['isEqual'](_0x194f2d['end'])?this['_setSuggestionRange'](_0x186e93,this['_model']['createRange'](_0x194f2d['start'],_0x445e2d['end'])):this['_setSuggestionRange'](_0x186e93,this['_model']['createRange'](_0x445e2d['start'],_0x194f2d['end'])),_0x186e93;}}const _0x51e521=_0x8b70ee(),_0xed56a8=_0x28a98c['id'],_0x5d8326=_0xdc4c93?'insertion:'+_0xdc4c93:'insertion',_0xcd8c3=this['_setSuggestionData']({'id':_0x51e521,'type':_0x5d8326,'createdAt':new Date(),'authorId':_0xed56a8,'attributes':_0x247077});return this['_addSuggestionMarker'](_0x5d8326,_0x51e521,_0xed56a8,_0x194f2d),_0xcd8c3;}['markMultiRangeInsertion'](_0x13b8ae,_0x2d0af2='multi',_0x4717c4={}){const _0x5ace23=this['editor']['plugins']['get']('Users')['me'],_0x548a91=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d0af2,'join');for(const _0x2618fe of this['getSuggestions']())if(_0x2618fe['author']['id']==_0x5ace23['id']&&'insertion'==_0x2618fe['type']&&_0x2618fe['subType']==_0x2d0af2&&Wt(_0x2618fe,_0x4717c4)&&(_0x548a91(_0x2618fe['getRanges'](),_0x13b8ae)||_0x548a91(_0x13b8ae,_0x2618fe['getRanges']()))){for(const _0x3f357d of _0x13b8ae)_0x2618fe['addRange'](_0x3f357d);return _0x2618fe;}for(const {suggestion:_0x59d734,meta:_0x318f5d}of this['_findSuggestions'](_0x13b8ae,'insertion')){if(!_0x318f5d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x318f5d['containsRangeInObject'])continue;if(!Wt(_0x59d734,_0x4717c4))continue;let _0x1c3617=!0x0;for(const _0x3d45c4 of _0x59d734['getRanges']())for(const _0xb1de69 of _0x13b8ae)if(!_0x3d45c4['containsRange'](_0xb1de69)){_0x1c3617=!0x1;break;}if(_0x1c3617)return _0x59d734;}const _0x24c23b=_0x8b70ee(),_0x1ba28e=_0x5ace23['id'],_0x3781a9='insertion:'+_0x2d0af2,_0x5c8c93=this['_setSuggestionData']({'id':_0x24c23b,'type':_0x3781a9,'createdAt':new Date(),'authorId':_0x1ba28e,'attributes':_0x4717c4});for(const _0x5e8f8d of _0x13b8ae)this['_addSuggestionMarker'](_0x3781a9,_0x24c23b,_0x1ba28e,_0x5e8f8d,u['getMultiRangeId']());return _0x5c8c93;}['markInlineFormat'](_0x3769ed,_0x5ab222,_0x4df6f1=null,_0x2d25e9={}){if(_0x4df6f1=_0x4df6f1||Lt(_0x5ab222),_0x3769ed['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3167bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4df6f1,'accept');return this['forceDefaultExecution'](()=>_0x3167bd([_0x3769ed],_0x5ab222,_0x2d25e9)),null;}const _0x357c32=this['editor']['plugins']['get']('Users')['me'],_0x5deb24=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x50b95d,meta:_0xeb689c}of this['_findSuggestions'](_0x3769ed,'insertion'))_0xeb689c['isOwn']&&!_0xeb689c['isInsideObject']&&_0x5deb24['push'](..._0x50b95d['getRanges']());}const _0x15e592=function(_0x15807c,_0x152067){const _0x4b6bfc=[];for(const _0x1904f8 of _0x152067){const _0x17c86b=_0x15807c['getIntersection'](_0x1904f8);_0x17c86b&&_0x4b6bfc['push'](_0x17c86b);}return _0x4b6bfc;}(_0x3769ed,_0x5deb24),_0x1e60f1=function(_0x171af4,_0x568df){const _0x179422=[_0x171af4];for(const _0x4dcb9b of _0x568df){let _0x5151da=0x0;for(;_0x5151da<_0x179422['length'];){const _0x2dbd48=_0x179422[_0x5151da]['getDifference'](_0x4dcb9b);_0x179422['splice'](_0x5151da,0x1,..._0x2dbd48),_0x5151da+=_0x2dbd48['length'];}}return _0x179422;}(_0x3769ed,_0x5deb24);_0x15e592['length']&&this['_model']['change'](()=>{for(const _0x29c957 of _0x15e592){const _0x4e39e6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4df6f1,'accept');this['forceDefaultExecution'](()=>_0x4e39e6([_0x29c957],_0x5ab222,_0x2d25e9));}});for(const _0xca4d3a of _0x1e60f1){let _0x424ae2=null,_0x3bbe36=_0xca4d3a['start'],_0x246e3b=_0xca4d3a['end'];for(const {suggestion:_0x511169,meta:_0x218dd6}of this['_findSuggestions'](_0xca4d3a,'formatInline')){if(!_0x218dd6['isOwn'])continue;if(_0x511169['subType']!=_0x4df6f1)continue;if(!Wt(_0x511169,_0x2d25e9))continue;const _0x588f8c=_0x511169['getFirstRange']();if(_0x588f8c['containsRange'](_0xca4d3a,!0x0))return null;_0x3bbe36=_0x3bbe36['isBefore'](_0x588f8c['start'])?_0x3bbe36:_0x588f8c['start'],_0x246e3b=_0x246e3b['isAfter'](_0x588f8c['end'])?_0x246e3b:_0x588f8c['end'],_0x424ae2?_0x588f8c['start']['isBefore'](_0x424ae2['getFirstRange']()['start'])?(_0x424ae2['removeMarkers'](),_0x424ae2=_0x511169):_0x511169['removeMarkers']():_0x424ae2=_0x511169;}const _0x30df8f=this['_model']['createRange'](_0x3bbe36,_0x246e3b);if(_0x424ae2)this['_setSuggestionRange'](_0x424ae2,_0x30df8f);else{const _0x51dc85=_0x8b70ee(),_0xcc8989=_0x357c32['id'];this['_setSuggestionData']({'id':_0x51dc85,'type':'formatInline:'+_0x4df6f1,'data':_0x5ab222,'createdAt':new Date(),'authorId':_0xcc8989,'attributes':_0x2d25e9}),this['_addSuggestionMarker']('formatInline:'+_0x4df6f1,_0x51dc85,_0xcc8989,_0x30df8f);}}return null;}['markBlockFormat'](_0x4c3daa,_0x547415,_0x52103b=[],_0x17c9f0=null,_0x51b7f7={}){_0x547415['formatGroupId']||(_0x547415['formatGroupId']=_0x547415['commandName']),_0x547415['multipleBlocks']=_0x4c3daa['is']('range'),_0x17c9f0=_0x17c9f0||Lt(_0x547415);const _0x3f2b8c=_0x52103b['map'](_0x40cadc=>qt(_0x40cadc,this['_model'])),_0x372d34=_0x4c3daa['is']('range')?_0x4c3daa:qt(_0x4c3daa,this['_model']);if('never'===this['_trackFormatChanges']){const _0xba88f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17c9f0,'accept');return this['forceDefaultExecution'](()=>_0xba88f1([_0x372d34],_0x547415,_0x51b7f7)),null;}_0x3f2b8c['push'](_0x372d34);let _0x15dd55=!0x0;for(const _0x4855df of _0x3f2b8c)if(!this['_rangeIsInLocalUserInsertion'](_0x4855df)){_0x15dd55=!0x1;break;}if(_0x15dd55&&'always'!==this['_trackFormatChanges']){const _0x4fdb7e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17c9f0,'accept');return this['forceDefaultExecution'](()=>_0x4fdb7e([_0x372d34],_0x547415,_0x51b7f7)),null;}let _0x2a1342=null,_0x17ed39=_0x372d34['start'],_0x142dc2=_0x372d34['end'];for(const {suggestion:_0x4be21a,meta:_0x13f365}of this['_findSuggestions'](_0x372d34,'formatBlock')){if(!_0x13f365['isOwn'])continue;if(_0x13f365['isNextTo']||_0x13f365['containsRangeInObject']||_0x13f365['isInsideObject'])continue;if(_0x4be21a['data']['formatGroupId']!=_0x547415['formatGroupId'])continue;if(!Wt(_0x4be21a,_0x51b7f7))continue;const _0x16b91f=_0x4be21a['getFirstRange']();if(_0x4be21a['subType']==_0x17c9f0){if(_0x16b91f['containsRange'](_0x372d34,!0x0))return null;_0x17ed39=_0x17ed39['isBefore'](_0x16b91f['start'])?_0x17ed39:_0x16b91f['start'],_0x142dc2=_0x142dc2['isAfter'](_0x16b91f['end'])?_0x142dc2:_0x16b91f['end'],_0x2a1342?_0x16b91f['start']['isBefore'](_0x2a1342['getFirstRange']()['start'])?(_0x2a1342['removeMarkers'](),_0x2a1342=_0x4be21a):_0x4be21a['removeMarkers']():_0x2a1342=_0x4be21a;}else{const _0x45541c=_0x372d34['getIntersection'](_0x16b91f);this['_cutOutSuggestionMarker'](_0x4be21a,_0x45541c);}}const _0x131fb0=this['editor']['plugins']['get']('Users')['me'],_0x332d4d=_0x8b70ee(),_0x2afe6d=_0x131fb0['id'];if(_0x2a1342)return this['_setSuggestionRange'](_0x2a1342,this['_model']['createRange'](_0x17ed39,_0x142dc2)),_0x2a1342;{const _0x3e7d1c=this['_setSuggestionData']({'id':_0x332d4d,'type':'formatBlock:'+_0x17c9f0,'data':_0x547415,'createdAt':new Date(),'authorId':_0x2afe6d,'attributes':_0x51b7f7});return this['_addSuggestionMarker']('formatBlock:'+_0x17c9f0,_0x332d4d,_0x2afe6d,this['_model']['createRange'](_0x17ed39,_0x142dc2)),_0x3e7d1c;}}['markMultiRangeBlockFormat'](_0x3517e5,_0x5d958a,_0x9eb0e9=[],_0x505d32=null,_0x1b7051={}){_0x5d958a['formatGroupId']||(_0x5d958a['formatGroupId']=_0x5d958a['commandName']);const _0x18e392=_0x3517e5[0x0];_0x5d958a['multipleBlocks']=_0x18e392['is']('range'),_0x505d32=_0x505d32||Lt(_0x5d958a);const _0x10773b=_0x9eb0e9['map'](_0x4a70b3=>qt(_0x4a70b3,this['_model'])),_0x55a98b=_0x18e392['is']('range')?_0x3517e5:_0x3517e5['map'](_0x56579f=>qt(_0x56579f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x7d89da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x505d32,'accept');return this['forceDefaultExecution'](()=>_0x7d89da(_0x55a98b,_0x5d958a,_0x1b7051)),null;}_0x10773b['push'](..._0x55a98b);let _0xca33d1=!0x0;for(const _0x4069d9 of _0x10773b)if(!this['_rangeIsInLocalUserInsertion'](_0x4069d9)){_0xca33d1=!0x1;break;}if(_0xca33d1&&'always'!==this['_trackFormatChanges']){const _0x401a98=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x505d32,'accept');return this['forceDefaultExecution'](()=>_0x401a98(_0x55a98b,_0x5d958a,_0x1b7051)),null;}const _0x25a12f=this['editor']['plugins']['get']('Users')['me'];for(const _0x5f2f4c of this['getSuggestions']()){if(_0x5f2f4c['author']['id']!=_0x25a12f['id'])continue;if('formatBlock'!=_0x5f2f4c['type']||_0x5f2f4c['data']['formatGroupId']!=_0x5d958a['formatGroupId'])continue;if(!Wt(_0x5f2f4c,_0x1b7051))continue;const _0x4ac8e1=_0x5f2f4c['subType']==_0x505d32;for(let _0x440c24=0x0;_0x440c24<_0x55a98b['length'];_0x440c24++){const _0x468c37=_0x55a98b[_0x440c24];for(const _0x108d78 of _0x5f2f4c['getMarkers']()){const _0x3f556c=_0x108d78['getRange']();if(_0x468c37['isEqual'](_0x3f556c)){_0x4ac8e1?(_0x55a98b['splice'](_0x440c24,0x1),_0x440c24--):_0x5f2f4c['removeMarker'](_0x108d78['name']);break;}}}}if(0x0==_0x55a98b['length'])return null;const _0x1a0516=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x505d32,'join');for(const _0x523a95 of this['getSuggestions']())if(_0x523a95['author']['id']==_0x25a12f['id']&&'formatBlock'==_0x523a95['type']&&_0x523a95['data']['formatGroupId']==_0x5d958a['formatGroupId']&&_0x523a95['subType']==_0x505d32&&Wt(_0x523a95,_0x1b7051)&&(_0x1a0516(_0x523a95['getRanges'](),_0x55a98b)||_0x1a0516(_0x55a98b,_0x523a95['getRanges']()))){for(const _0x2df5a1 of _0x55a98b)_0x523a95['addRange'](_0x2df5a1);return _0x523a95;}const _0x343e33=_0x8b70ee(),_0x5d3e7f=_0x25a12f['id'],_0x5aca66='formatBlock:'+_0x505d32,_0x110547=this['_setSuggestionData']({'id':_0x343e33,'type':_0x5aca66,'data':_0x5d958a,'createdAt':new Date(),'authorId':_0x5d3e7f,'attributes':_0x1b7051});for(const _0x232780 of _0x55a98b)this['_addSuggestionMarker'](_0x5aca66,_0x343e33,_0x5d3e7f,_0x232780,u['getMultiRangeId']());return _0x110547;}['markDeletion'](_0x3f111b,_0x13d626=null,_0x5826f0={}){if(_0x3f111b['isCollapsed'])return null;const _0x42cd10=this['editor']['plugins']['get']('Users')['me'],_0x500a8c=new _0x339777(_0x3f111b['start'],_0x3f111b['end']);for(const {suggestion:_0x5451d9,meta:_0x51ae1c}of this['_findSuggestions'](_0x500a8c,'insertion'))if(_0x51ae1c['isOwn']&&!_0x51ae1c['isNextTo']){if(_0x5451d9['isMultiRange']){const _0x12de9b=_0x5451d9['getRanges']()['filter'](_0x1c614d=>'$graveyard'!=_0x1c614d['root']['rootName']);_0x12de9b['every'](_0x1bb5f8=>_0x500a8c['containsRange'](_0x1bb5f8,!0x0))&&_0x5451d9['discard']();if(_0x12de9b['some'](_0x57c501=>_0x57c501['containsRange'](_0x500a8c,!0x0))){const _0x46ea93=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x13d626,'accept');return this['forceDefaultExecution'](()=>_0x46ea93([_0x500a8c],null,_0x5826f0)),null;}}else{const _0x31ea5c=_0x500a8c['getIntersection'](_0x5451d9['getFirstRange']());null!==_0x31ea5c&&_0x5451d9['_onDiscard']([_0x31ea5c],null,_0x5826f0);}}if(_0x500a8c['detach'](),_0x500a8c['isCollapsed']||'$graveyard'==_0x500a8c['root']['rootName'])return null;let _0x1c6eb8=null,_0x123a12=_0x500a8c['start'],_0x45363b=_0x500a8c['end'];const _0x2298f5=this['_findSuggestions'](_0x500a8c,'deletion');for(const {suggestion:_0x1c0c03,meta:_0x4b5a3f}of _0x2298f5){const _0x4fad59=this['_model']['createRange'](_0x123a12,_0x45363b);if(_0x4b5a3f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b5a3f['containsRangeInObject']&&!_0x4b5a3f['isInsideObject'])){if(_0x1c0c03['isMultiRange']){if(!Wt(_0x1c0c03,_0x5826f0))continue;let _0x549bde=!0x0;for(const _0x548c5e of _0x1c0c03['getRanges']()){if(_0x548c5e['containsRange'](_0x4fad59,!0x0))return _0x1c0c03;_0x4fad59['containsRange'](_0x548c5e)||(_0x549bde=!0x1);}_0x549bde&&_0x1c0c03['discard']();}else{const _0x1857d6=_0x1c0c03['getFirstRange']();if(_0x1857d6['containsRange'](_0x4fad59,!0x0))return _0x1c0c03;if(!Wt(_0x1c0c03,_0x5826f0)){_0x4fad59['containsRange'](_0x1857d6)?_0x1c0c03['removeMarkers']():_0x1857d6['containsPosition'](_0x123a12)?_0x123a12=_0x1857d6['end']:_0x1857d6['containsPosition'](_0x45363b)&&(_0x45363b=_0x1857d6['start']);continue;}_0x123a12=_0x123a12['isBefore'](_0x1857d6['start'])?_0x123a12:_0x1857d6['start'],_0x45363b=_0x45363b['isAfter'](_0x1857d6['end'])?_0x45363b:_0x1857d6['end'],_0x5826f0=Object['assign']({},_0x1c0c03['attributes']),_0x1c6eb8?_0x1857d6['start']['isBefore'](_0x1c6eb8['getFirstRange']()['start'])?(_0x1c6eb8['removeMarkers'](),_0x1c6eb8=_0x1c0c03):_0x1c0c03['removeMarkers']():_0x1c6eb8=_0x1c0c03;}}}if(_0x1c6eb8)return this['_setSuggestionRange'](_0x1c6eb8,this['_model']['createRange'](_0x123a12,_0x45363b)),_0x1c6eb8;{const _0x3e0955=_0x8b70ee(),_0x12a3c5=this['_model']['createRange'](_0x123a12,_0x45363b),_0x263cc8=_0x42cd10['id'],_0x496614=_0x13d626?'deletion:'+_0x13d626:'deletion',_0x46aaea=this['_setSuggestionData']({'id':_0x3e0955,'type':_0x496614,'createdAt':new Date(),'authorId':_0x263cc8,'attributes':_0x5826f0});return this['_addSuggestionMarker'](_0x496614,_0x3e0955,_0x263cc8,_0x12a3c5),_0x46aaea;}}['markMultiRangeDeletion'](_0x3e9609,_0x5ee7c6='multi',_0xa256ea={}){const _0x235b3f=this['editor']['plugins']['get']('Users')['me'],_0x174729=_0x3e9609['map'](_0x289af8=>new _0x339777(_0x289af8['start'],_0x289af8['end'])),_0x10287a=new Set();for(const {suggestion:_0xc890e8,meta:_0x117a90}of this['_findSuggestions'](_0x174729,'insertion'))_0x117a90['isOwn']&&!_0x117a90['isNextTo']&&_0x10287a['add'](_0xc890e8);for(const _0x13a2ec of _0x10287a)if(_0x13a2ec['isMultiRange']){const _0x4b7a88=_0x13a2ec['getRanges']();(!_0x13a2ec['attributes']||!_0x13a2ec['attributes']['skipNestingCheck'])&&(_0x4b7a88['every'](_0xe69343=>_0x174729['some'](_0x1f35b3=>_0x1f35b3['containsRange'](_0xe69343,!0x0)))&&_0x13a2ec['discard']());if(_0x174729['every'](_0x1d7378=>_0x4b7a88['some'](_0x459d63=>_0x459d63['containsRange'](_0x1d7378,!0x0)))){const _0x67cabc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee7c6,'accept');return this['forceDefaultExecution'](()=>_0x67cabc(_0x3e9609,null,_0xa256ea)),null;}}else{const _0x23557=_0x13a2ec['getFirstRange']();_0x174729['some'](_0x421c9f=>_0x421c9f['containsRange'](_0x23557,!0x0))&&_0x13a2ec['discard']();if(_0x174729['every'](_0x15eefe=>_0x23557['containsRange'](_0x15eefe,!0x0))){const _0x14448f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee7c6,'accept');return this['forceDefaultExecution'](()=>_0x14448f(_0x174729,null,_0xa256ea)),null;}}const _0x17c44e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee7c6,'join');let _0x3148b7=null;for(const _0x36e960 of this['getSuggestions']())if(_0x36e960['author']['id']==_0x235b3f['id']&&_0x36e960['isInContent']&&'deletion'==_0x36e960['type']&&_0x36e960['subType']==_0x5ee7c6&&Wt(_0x36e960,_0xa256ea)&&(_0x17c44e(_0x36e960['getRanges'](),_0x174729)||_0x17c44e(_0x174729,_0x36e960['getRanges']()))){if(_0x3148b7){if(_0x36e960['commentThread']&&_0x36e960['commentThread']['length'])continue;for(const _0x2a2119 of _0x36e960['getRanges']())_0x3148b7['isIntersectingWithRange'](_0x2a2119)||_0x3148b7['addRange'](_0x2a2119);_0x36e960['removeMarkers']();}else{_0x3148b7=_0x36e960;for(const _0x487da0 of _0x174729)_0x36e960['isIntersectingWithRange'](_0x487da0)||_0x36e960['addRange'](_0x487da0);}}if(_0x3148b7)return _0x3148b7;_0x10287a['clear']();for(const {suggestion:_0x3c9bc4,meta:_0x34d2cd}of this['_findSuggestions'](_0x174729,'deletion'))_0x34d2cd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x34d2cd['containsRangeInObject']&&!_0x34d2cd['isInsideObject'])&&Wt(_0x3c9bc4,_0xa256ea)&&_0x10287a['add'](_0x3c9bc4);for(const _0x1651c0 of _0x10287a){const _0x66e65c=_0x1651c0['getRanges']();if(!_0xa256ea||!_0xa256ea['skipNestingCheck']){if(_0x174729['every'](_0x56235f=>_0x66e65c['some'](_0x46c59b=>_0x46c59b['containsRange'](_0x56235f,!0x0))))return _0x1651c0;}(!_0x1651c0['attributes']||!_0x1651c0['attributes']['skipNestingCheck'])&&(_0x66e65c['every'](_0x1eb9bd=>_0x174729['some'](_0x23c7ca=>_0x23c7ca['containsRange'](_0x1eb9bd,!0x0)))&&_0x1651c0['discard']());}const _0x574810=_0x8b70ee(),_0x3c9bb3=_0x235b3f['id'],_0x61c881='deletion:'+_0x5ee7c6,_0x4dd27a=this['_setSuggestionData']({'id':_0x574810,'type':_0x61c881,'createdAt':new Date(),'authorId':_0x3c9bb3,'attributes':_0xa256ea});for(const _0x58b15c of _0x174729)_0x58b15c['detach'](),_0x58b15c['isCollapsed']||'$graveyard'==_0x58b15c['root']['rootName']||this['_addSuggestionMarker'](_0x61c881,_0x574810,_0x3c9bb3,_0x58b15c,u['getMultiRangeId']());return _0x4dd27a;}['markAttributeChange'](_0x48db11,_0x17fc88,_0x258561,_0x1dbd4c,_0x4e6923){if(_0x48db11['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4ee757=this['editor']['plugins']['get']('Users')['me']['id'],_0x21bbca=Array['from'](this['_suggestions']['values']())['filter'](_0x452a27=>'attribute'==_0x452a27['type']&&_0x452a27['data']['key']==_0x17fc88&&_0x452a27['isIntersectingWithRange'](_0x48db11));if('default'===this['_trackFormatChanges']){const _0x55410b=this['_findSuggestions'](_0x48db11,'insertion')['filter'](({meta:_0x4403ce})=>_0x4403ce['isOwn']&&!_0x4403ce['isInsideObject']&&!_0x4403ce['isNextTo'])['map'](({suggestion:_0x1cd5ea})=>_0x1cd5ea);_0x21bbca['unshift'](..._0x55410b);}const _0xe667d6=new Map([[_0x48db11,_0x258561]]);for(const _0x24c22a of _0x21bbca){const _0x449652='attribute'==_0x24c22a['type']?_0x24c22a['data']['oldValue']:void 0x0,_0x570592=_0x24c22a['getFirstRange'](),_0x2e0bcf=Array['from'](_0xe667d6['keys']())['find'](_0x1b9349=>_0x1b9349['isIntersecting'](_0x570592));if(!_0x2e0bcf)continue;const _0x569000=_0x2e0bcf['getDifference'](_0x570592);this['_isBlockAttribute'](_0x17fc88)&&'insertion'==_0x24c22a['type']&&0x0!=_0x569000['length']||(_0xe667d6['delete'](_0x2e0bcf),_0x569000['forEach'](_0x478523=>{_0xe667d6['set'](_0x478523,_0x258561);}),'insertion'!=_0x24c22a['type']&&_0x449652!=_0x1dbd4c&&_0xe667d6['set'](_0x2e0bcf['getIntersection'](_0x570592),_0x449652));}const _0x477ede=[];for(const [_0x248540,_0x2dc26d]of _0xe667d6){const _0x52a47a=_0x8b70ee(),_0x181f75={'key':_0x17fc88,'oldValue':_0x2dc26d,'newValue':_0x1dbd4c};_0x17fc88['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':_0x17fc88});const _0x804c3f=('attribute:'+(_0x17fc88+'|'+Lt({'newValue':_0x1dbd4c})))['substring'](0x0,0x3c),_0x6a9ddb=this['_setSuggestionData']({'id':_0x52a47a,'type':_0x804c3f,'data':_0x181f75,'createdAt':new Date(),'authorId':_0x4ee757,'attributes':_0x4e6923});_0x477ede['push'](_0x6a9ddb),this['_addSuggestionMarker'](_0x804c3f,_0x52a47a,_0x4ee757,_0x248540);}return _0x477ede;}['enableDefaultAttributesIntegration'](_0x56274e){this['enableCommand'](_0x56274e,(_0x31132b,..._0x501cba)=>{this['_recordAttributeChanges'](()=>{_0x31132b(..._0x501cba);});});}['registerBlockAttribute'](_0x1cd92e){this['_blockAttributeKeys']['add'](_0x1cd92e);}['registerInlineAttribute'](_0x39b2be){this['_inlineAttributeKeys']['add'](_0x39b2be);}['_getAttributeKey'](_0xe9f68){return'attribute'==_0xe9f68['type']?_0xe9f68['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2104af,_0x117dbe){const _0x2627de=_0x2104af['getFirstMarker']();this['_model']['change'](_0x492b8a=>{_0x492b8a['updateMarker'](_0x2627de,{'range':_0x117dbe});});}['_addThreadToSuggestion'](_0x329a98){const _0x1a910b=_0x329a98['id'],_0x2b243e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1a910b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2b243e,'threadId':_0x1a910b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c530d=this['_commentsRepository']['getCommentThread'](_0x1a910b);_0x2c530d['unbind']('isRemovable'),_0x2c530d['isRemovable']=!0x1,_0x329a98['commentThread']=_0x2c530d;}['_checkSuggestionCorrectness'](_0x2a2381,_0xb56b00,_0x12b3de,_0x329057){if(_0x2a2381['type']!=_0xb56b00||_0x2a2381['subType']!=_0x12b3de||_0x2a2381['creator']['id']!=_0x329057)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3384ca('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x22bcfc,_0x6e6a12){const _0x3630ed=_0x22bcfc['getFirstRange']();if(_0x6e6a12['isEqual'](_0x3630ed))_0x22bcfc['removeMarkers']();else{if(_0x3630ed['containsRange'](_0x6e6a12)){const _0x2ecc2a=this['_model']['createPositionAt'](_0x6e6a12['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x22bcfc,this['_model']['createRange'](_0x3630ed['start'],_0x2ecc2a));const _0x35e5ae=_0x8b70ee(),_0x426968=_0x22bcfc['creator']['id'],_0x1b29ad=_0x22bcfc['type']+':'+_0x22bcfc['subType'];this['_setSuggestionData']({'id':_0x35e5ae,'type':_0x1b29ad,'createdAt':new Date(),'authorId':_0x426968,'data':_0x22bcfc['data'],'attributes':_0x22bcfc['attributes']});const _0x57c6e9=this['_model']['createPositionAt'](_0x6e6a12['end']['parent'],'after'),_0x3f17e1=this['_model']['createRange'](_0x57c6e9,_0x3630ed['end']);this['_addSuggestionMarker'](_0x1b29ad,_0x35e5ae,_0x426968,_0x3f17e1);}else{if(_0x3630ed['containsPosition'](_0x6e6a12['start'])){const _0x2a8081=this['_model']['createPositionAt'](_0x6e6a12['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x22bcfc,this['_model']['createRange'](_0x3630ed['start'],_0x2a8081));}else{const _0x3c106a=this['_model']['createPositionAt'](_0x6e6a12['end']['parent'],'after');this['_setSuggestionRange'](_0x22bcfc,this['_model']['createRange'](_0x3c106a,_0x3630ed['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x59750c){for(const {suggestion:_0x10d90e,meta:_0x55e1a4}of this['_findSuggestions'](_0x59750c,'insertion')){if(!_0x55e1a4['isOwn'])continue;const _0xf6d04c=_0x10d90e['getRanges']();for(const _0x4e2bd4 of _0xf6d04c)if(!_0x59750c['getDifference'](_0x4e2bd4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4cb0a3){const _0x4d1251=this['editor']['plugins']['get']('Users')['getUser'](_0x4cb0a3);if(!_0x4d1251)throw new _0x3384ca('track-changes-user-not-found',this);return _0x4d1251;}['_getExternalAuthor'](_0x4446ac){const _0x4082aa=this['editor']['plugins']['get']('Users'),_0x14e0fa=_0x59fd62('external:'+_0x4446ac),_0x28ecbe=_0x4082aa['getUser'](_0x14e0fa);return _0x28ecbe||_0x4082aa['addUser']({'id':_0x14e0fa,'name':_0x4446ac});}['_createSuggestion'](_0x5a97ad,_0x2e1b3d,_0xc2f7ba,_0x477adc,_0x233dc8){const _0x173024=this['_getAuthorFromId'](_0x477adc),_0xef1018=this['_suggestionFactory']['buildSuggestion'](_0x5a97ad,_0x2e1b3d,_0xc2f7ba,_0x173024,_0x233dc8,_0x134c74=>{this['_updateSuggestionData'](_0xc2f7ba,{'attributes':_0x134c74});const _0x15afb1=this['getSuggestion'](_0xc2f7ba);this['_joinWithAdjacentSuggestions'](new Set([_0x15afb1])),this['_refreshSuggestionsChain'](new Set([_0x15afb1]));});return this['listenTo'](_0xef1018,'accept',()=>{this['_updateSuggestionData'](_0xc2f7ba,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xef1018,'discard',()=>{this['_updateSuggestionData'](_0xc2f7ba,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xc2f7ba,_0xef1018),this['_suggestionState']['set'](_0xef1018,'notReady'),_0xef1018;}['_splitMarkerName'](_0x4a24cb){const _0x2843f0=_0x4a24cb['split'](':');return{'group':_0x2843f0[0x0],'type':_0x2843f0[0x1],'subType':_0x2843f0['length']>=0x5?_0x2843f0[0x2]:null,'id':_0x2843f0['length']<0x5?_0x2843f0[0x2]:_0x2843f0[0x3],'authorId':_0x2843f0['length']<0x5?_0x2843f0[0x3]:_0x2843f0[0x4],'markerCount':0x6==_0x2843f0['length']?_0x2843f0[0x5]:null};}['_breakSuggestionMarker'](_0x24ddfa,_0x4d446e,_0x36929a){const _0x2cf599=_0x24ddfa['getFirstRange'](),_0xf844df=_0x2cf599['start'],_0x4d8a28=_0x2cf599['end'];this['_setSuggestionRange'](_0x24ddfa,this['_model']['createRange'](_0xf844df,_0x4d446e));const _0x1b78f0=_0x8b70ee(),_0x13c119=_0x24ddfa['creator']['id'],_0x5baa9a=_0x24ddfa['type']+(_0x24ddfa['subType']?':'+_0x24ddfa['subType']:'');this['_setSuggestionData']({'id':_0x1b78f0,'type':_0x5baa9a,'createdAt':new Date(),'authorId':_0x13c119,'originalSuggestionId':_0x24ddfa['id'],'attributes':_0x24ddfa['attributes'],'data':_0x24ddfa['data']});const _0xbfcf4=this['_getAttributeKey'](_0x24ddfa);('formatBlock'==_0x24ddfa['type']||_0xbfcf4&&this['_isBlockAttribute'](_0xbfcf4))&&(_0x36929a=this['_model']['createPositionBefore'](_0x36929a['parent'])),this['_addSuggestionMarker'](_0x5baa9a,_0x1b78f0,_0x13c119,this['_model']['createRange'](_0x36929a,_0x4d8a28));}['_findSuggestions'](_0x57e94c,_0x55138c=null){const _0x297df9=[],_0x17f919=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x57e94c)||(_0x57e94c=[_0x57e94c]);for(const _0xbe8266 of this['getSuggestions']()){if(!_0xbe8266['isInContent'])continue;if(_0x55138c&&_0xbe8266['type']!=_0x55138c)continue;let _0x31fcdb=!0x1;for(const _0x318319 of _0xbe8266['getRanges']()){for(const _0x3bc2e3 of _0x57e94c){const _0x5d7158=_0x3bc2e3['start']['isEqual'](_0x318319['end'])||_0x3bc2e3['end']['isEqual'](_0x318319['start']);if(_0x5d7158||_0x3bc2e3['getIntersection'](_0x318319)){const _0x50f587=_0x3bc2e3['containsRange'](_0x318319)&&Pt(this['_model']['schema'],_0x318319['start'],_0x3bc2e3),_0x4a3c8f=_0x318319['containsRange'](_0x3bc2e3)&&Pt(this['_model']['schema'],_0x3bc2e3['start'],_0x318319);_0x297df9['push']({'suggestion':_0xbe8266,'meta':{'isOwn':_0x17f919==_0xbe8266['author'],'isNextTo':_0x5d7158,'isInsideObject':_0x50f587,'containsRangeInObject':_0x4a3c8f}}),_0x31fcdb=!0x0;break;}}if(_0x31fcdb)break;}}return _0x297df9;}['_addSuggestionMarker'](_0x46e3fa,_0x5cf459,_0x256b9f,_0x3149ba,_0x384a5a){this['_model']['change'](_0x256cd6=>{let _0x4d96c7='suggestion:'+_0x46e3fa+':'+_0x5cf459+':'+_0x256b9f;_0x384a5a&&(_0x4d96c7=_0x4d96c7+':'+_0x384a5a),_0x256cd6['addMarker'](_0x4d96c7,{'range':_0x3149ba,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x415465){const _0x784c04=_0x415465['previous'],_0x1f8b97=_0x415465['next'];_0x415465['previous']=null,_0x415465['next']=null,null!=_0x784c04&&_0x784c04['next']==_0x415465&&(_0x784c04['next']=_0x1f8b97),null!=_0x1f8b97&&_0x1f8b97['previous']==_0x415465&&(_0x1f8b97['previous']=_0x784c04),'ready'==this['_suggestionState']['get'](_0x415465)&&(this['_suggestionState']['set'](_0x415465,'removed'),this['fire']('suggestionUnloaded',_0x415465,_0x784c04,_0x1f8b97));}['_setSuggestionData'](_0x3e23f2){const _0x3b4fb1=_0x3e23f2['id'],_0x39fda7=this['addSuggestionData'](_0x3e23f2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x454dd5=this['editor']['plugins']['get']('PendingActions'),_0x474c61=_0x39fda7['hasComments'],_0x327894=_0x39fda7['subType']?_0x39fda7['type']+':'+_0x39fda7['subType']:_0x39fda7['type'],_0x413c8b=this['editor']['locale'],_0xe469bb=_0x454dd5['add'](o(_0x413c8b,'PENDING_ACTION_SUGGESTION')),_0x2ce5fe={'id':_0x3b4fb1,'type':_0x327894,'hasComments':_0x474c61,'data':_0x3e23f2['data']||null,'originalSuggestionId':_0x3e23f2['originalSuggestionId']||null,'attributes':_0x39fda7['attributes']};this['_adapter']['addSuggestion'](_0x2ce5fe)['then'](_0x444311=>{_0x39fda7['_saved']=!0x0,_0x454dd5['remove'](_0xe469bb),_0x444311&&_0x444311['createdAt']&&(this['_suggestions']['get'](_0x3b4fb1)['createdAt']=_0x444311['createdAt']);})['catch'](_0x488a4b=>{throw _0x35a5a8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x39fda7['discard']();}),_0x39fda7['stopListening'](),this['_suggestions']['delete'](_0x39fda7['id']),this['_suggestionState']['delete'](_0x39fda7),_0x488a4b;});}return _0x39fda7;}['_isBlockAttribute'](_0x417e8a){return this['_blockAttributeKeys']['has'](_0x417e8a);}['_updateSuggestionData'](_0x3cbe18,_0x239630){const _0x5bdd75=this['editor']['plugins']['get']('PendingActions'),_0x5b3006=this['getSuggestion'](_0x3cbe18);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5b3006['_saved']){const _0x331d17=_0x5bdd75['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3cbe18,_0x239630)['then'](()=>{_0x5bdd75['remove'](_0x331d17);});}else _0x5b3006['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3cbe18,_0x239630);});}}['_getSuggestionData'](_0x1e779a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3384ca('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1e779a);}['_handleNewSuggestionMarker'](_0xbffcc9){const {id:_0x356b5e,type:_0x1a921b,subType:_0x12a728,authorId:_0x28e18a}=this['_splitMarkerName'](_0xbffcc9),_0x4fa5d9=this['_suggestions']['get'](_0x356b5e)||this['_createSuggestion'](_0x1a921b,_0x12a728,_0x356b5e,_0x28e18a,{});switch(this['_checkSuggestionCorrectness'](_0x4fa5d9,_0x1a921b,_0x12a728,_0x28e18a),this['_suggestionState']['get'](_0x4fa5d9)){case'notReady':this['_getSuggestionData'](_0x356b5e)['then'](_0x1a875a=>{let _0x2d363a=Promise['resolve']();_0x1a875a['hasComments']&&(_0x2d363a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x356b5e})),_0x2d363a['then'](()=>{this['addSuggestionData'](_0x1a875a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4fa5d9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x356b5e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4fa5d9,'ready'),this['fire']('suggestionLoaded',_0x4fa5d9);break;case'ready':this['fire']('suggestionChanged',_0x4fa5d9);}return _0x4fa5d9['addMarkerName'](_0xbffcc9),_0x4fa5d9;}['_refreshSuggestionsChain'](_0x3b79f5){const _0x90eaee=Array['from'](_0x3b79f5),_0x84fb2a=_0x90eaee['filter'](_0x571482=>'attribute'==_0x571482['type']);this['_refreshAttributeSuggestionsChain'](_0x84fb2a);const _0x476db6=_0x90eaee['filter'](_0x2392f2=>!_0x2392f2['isMultiRange']&&'attribute'!=_0x2392f2['type']),_0x869a02=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5094d7=>!_0x5094d7['isMultiRange']&&'attribute'!=_0x5094d7['type']),_0x56ba0f=_0x869a02['filter'](_0x3fee7a=>!_0x3b79f5['has'](_0x3fee7a)),_0x3ee67a=new Map(_0x869a02['map'](_0x49b372=>[_0x49b372,this['_suggestionFactory']['getSuggestionCallback'](_0x49b372['type'],_0x49b372['subType'],'chain')])),_0xdf4f21=new Map(_0x869a02['map'](_0x105b78=>[_0x105b78,_0x105b78['getFirstRange']()])),_0x230ce8=new Set(),_0x397416=new Set();for(let _0x2af343=0x0;_0x2af343<_0x476db6['length'];_0x2af343++)_0xf82b6f(_0x476db6[_0x2af343],_0x476db6,_0x2af343+0x1);for(let _0x2cad22=0x0;_0x2cad22<_0x476db6['length'];_0x2cad22++)_0xf82b6f(_0x476db6[_0x2cad22],_0x56ba0f,0x0);const _0x45671b=new Set();for(let _0x3a38c1=0x0;_0x3a38c1<_0x476db6['length'];_0x3a38c1++){const _0x35705a=_0x476db6[_0x3a38c1];!_0x397416['has'](_0x35705a)&&_0x35705a['previous']&&(_0x45671b['add'](_0x35705a['previous']),_0x35705a['previous']['next']===_0x35705a&&(_0x35705a['previous']['next']=null),_0x35705a['previous']=null),!_0x230ce8['has'](_0x35705a)&&_0x35705a['next']&&(_0x45671b['add'](_0x35705a['next']),_0x35705a['next']['previous']===_0x35705a&&(_0x35705a['next']['previous']=null),_0x35705a['next']=null);}function _0xf82b6f(_0x2019ab,_0x2cc896,_0x5d83ab){for(let _0x5d3488=_0x5d83ab;_0x5d3488<_0x2cc896['length'];_0x5d3488++){const _0x383453=_0x11d675(_0x2019ab,_0x2cc896[_0x5d3488]);_0x383453&&(_0x383453[0x0]['next']=_0x383453[0x1],_0x383453[0x1]['previous']=_0x383453[0x0],_0x230ce8['add'](_0x383453[0x0]),_0x397416['add'](_0x383453[0x1]));}}function _0x11d675(_0x163296,_0x145a79){if(_0x163296['author']['id']!==_0x145a79['author']['id'])return null;const _0x738f9d=_0x3ee67a['get'](_0x163296)(_0x163296,_0x145a79,_0xdf4f21['get'](_0x163296),_0xdf4f21['get'](_0x145a79));if(!_0x738f9d)return null;return _0x3ee67a['get'](_0x145a79)(_0x163296,_0x145a79,_0xdf4f21['get'](_0x163296),_0xdf4f21['get'](_0x145a79))?_0x738f9d[0x1]['commentThread']&&_0x738f9d[0x1]['commentThread']['length']?null:_0x738f9d:null;}_0x45671b['size']&&this['_refreshSuggestionsChain'](_0x45671b);}['_refreshAttributeSuggestionsChain'](_0x5a4154){if(0x0==_0x5a4154['length'])return;const _0x1d36d3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x132ee1=>'attribute'==_0x132ee1['type']&&_0x132ee1['_isDataLoaded']),_0x1a7b21=[],_0x8693d=new Map();for(const _0x455349 of _0x1d36d3){const _0x26b2a7=_0x59fd62(_0x455349['attributes']);_0x8693d['has'](_0x26b2a7)||(_0x8693d['set'](_0x26b2a7,_0x1a7b21['length']),_0x1a7b21['push']([]));const _0xe96e2b=_0x8693d['get'](_0x26b2a7);_0x1a7b21[_0xe96e2b]['push'](_0x455349);}!(function(){_0x1a7b21['sort']((_0x5e8a2d,_0x28adbc)=>{const _0x2f7a8f=_0x5e8a2d[0x0]['createdAt'],_0x4235c2=_0x28adbc[0x0]['createdAt'];return _0x2f7a8f==_0x4235c2?_0x5e8a2d[0x0]['attributes']['groupId']<_0x28adbc[0x0]['attributes']['groupId']?-0x1:0x1:_0x2f7a8f<_0x4235c2?-0x1:0x1;});for(const _0x4f1816 of _0x1a7b21)_0x4f1816['sort']((_0x2d3487,_0x57a826)=>_0x2d3487['id']<_0x57a826['id']?-0x1:0x1);}());for(let _0x1bac26=0x0;_0x1bac26<_0x1a7b21['length'];_0x1bac26++){if(0x0==_0x1a7b21[_0x1bac26]['length'])continue;const _0x1e07e4=[];for(let _0x39dda8=_0x1bac26+0x1;_0x39dda8<_0x1a7b21['length'];_0x39dda8++)0x0!=_0x1a7b21[_0x39dda8]['length']&&_0xf7f249(_0x1a7b21[_0x1bac26],_0x1a7b21[_0x39dda8])&&_0x1e07e4['push'](_0x39dda8);for(const _0x38cc66 of _0x1e07e4)_0x1a7b21[_0x1bac26]=_0x1a7b21[_0x1bac26]['concat'](_0x1a7b21[_0x38cc66]),_0x1a7b21[_0x38cc66]=[];}for(const _0x4ed691 of _0x1a7b21)for(let _0x409d41=0x0;_0x409d41<_0x4ed691['length'];_0x409d41++){const _0x1fc278=_0x4ed691[_0x409d41+0x1]||null;_0x4ed691[_0x409d41]['next']!==_0x1fc278&&(_0x4ed691[_0x409d41]['next']=_0x1fc278);}for(const _0x2c2953 of _0x1a7b21)for(let _0x22b940=0x0;_0x22b940<_0x2c2953['length'];_0x22b940++){const _0x59d1f6=_0x2c2953[_0x22b940-0x1]||null;_0x2c2953[_0x22b940]['previous']!==_0x59d1f6&&(_0x2c2953[_0x22b940]['previous']=_0x59d1f6);}function _0xf7f249(_0x243bbf,_0x501743){if(_0x243bbf[0x0]['attributes']['groupId']!==_0x501743[0x0]['attributes']['groupId']&&_0x243bbf[0x0]['author']!==_0x501743[0x0]['author'])return!0x1;if(!function(_0x130b8e,_0x15488d){if(!_0x130b8e['hasComments']&&!_0x15488d['hasComments'])return!0x0;if(_0x130b8e['hasComments']&&_0x15488d['hasComments'])return!0x1;if(_0x130b8e['hasComments']&&_0x15488d['createdAt']<_0x130b8e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x15488d['hasComments']&&_0x130b8e['createdAt']<_0x15488d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x243bbf[0x0],_0x501743[0x0]))return!0x1;const _0xfa92b0=Ut(_0x243bbf[0x0]['attributes'],'groupId'),_0x4a1de4=Ut(_0x501743[0x0]['attributes'],'groupId');if(!_0x5002a1(_0xfa92b0,_0x4a1de4))return!0x1;return!!_0x243bbf['every'](_0x2c1bc1=>_0x501743['some'](_0x42c8b8=>_0x2c1bc1['getFirstRange']()['isEqual'](_0x42c8b8['getFirstRange']())))&&_0x501743['every'](_0x1b8468=>_0x243bbf['some'](_0x248753=>_0x1b8468['getFirstRange']()['isEqual'](_0x248753['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x441046){const _0x5c0d8f=Array['from'](_0x441046),_0x350600=this['getSuggestions']({'skipNotAttached':!0x0}),_0x46f98f=_0x350600['filter'](_0x4e2232=>!_0x441046['has'](_0x4e2232)),_0x9f635b=new Map(_0x5c0d8f['map'](_0x3c5149=>[_0x3c5149,this['_suggestionFactory']['getSuggestionCallback'](_0x3c5149['type'],_0x3c5149['subType'],'join')])),_0x49c749=new Map(_0x350600['map'](_0x5d0337=>[_0x5d0337,_0x5d0337['getRanges']()]));for(let _0x273418=0x0;_0x273418<_0x5c0d8f['length'];_0x273418++){if(_0x4b7d26(this,_0x5c0d8f[_0x273418],_0x5c0d8f,_0x273418+0x1))return!0x0;}for(let _0x7181c9=0x0;_0x7181c9<_0x5c0d8f['length'];_0x7181c9++){if(_0x4b7d26(this,_0x5c0d8f[_0x7181c9],_0x46f98f,0x0))return!0x0;}return!0x1;function _0x4b7d26(_0x16a625,_0x3785ee,_0x1238d7,_0x1b63f4){for(let _0x399dbb=_0x1b63f4;_0x399dbb<_0x1238d7['length'];_0x399dbb++){const _0x27af93=_0x1238d7[_0x399dbb];if(_0x27af93['type']!==_0x3785ee['type']||_0x27af93['author']['id']!==_0x3785ee['author']['id']||_0x27af93['subType']!==_0x3785ee['subType'])continue;if(!Kt(_0x3785ee,_0x27af93))continue;if('attribute'==_0x3785ee['type']&&_0x3785ee['data']['oldValue']!=_0x27af93['data']['oldValue'])continue;if('attribute'==_0x3785ee['type']&&_0x16a625['_isBlockAttribute'](_0x3785ee['data']['key']))continue;if('formatBlock'==_0x3785ee['type']){const _0x166e41=_0x16a625['editor']['model'],_0x44c4ab=_0x3785ee['getContainedElement']();if(_0x44c4ab&&(_0x166e41['schema']['isObject'](_0x44c4ab)||_0x166e41['schema']['isLimit'](_0x44c4ab)))continue;}const _0x2adde6=_0x9f635b['get'](_0x3785ee),_0x5a2430=_0x49c749['get'](_0x3785ee),_0x3eb537=_0x49c749['get'](_0x27af93),_0x5954ea=_0x3785ee['commentThread']&&_0x3785ee['commentThread']['length'],_0x3df12d=_0x27af93['commentThread']&&_0x27af93['commentThread']['length'];if(!_0x5954ea&&_0x2adde6(_0x3eb537,_0x5a2430))return _0x16a625['_joinSuggestions'](_0x27af93,_0x3785ee),_0x49c749['delete'](_0x3785ee),!0x0;if(!_0x3df12d&&_0x2adde6(_0x5a2430,_0x3eb537))return _0x16a625['_joinSuggestions'](_0x3785ee,_0x27af93),_0x49c749['delete'](_0x27af93),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c0431,_0x56b426){if(_0x5c0431['isMultiRange']){for(const _0x2003ab of _0x56b426['getRanges']())_0x5c0431['addRange'](_0x2003ab);}else{const _0x377af2=_0x56b426['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c0431,this['_model']['createRange'](_0x5c0431['getFirstRange']()['start'],_0x377af2));}_0x56b426['removeMarkers']();}['_getMarkerAnnouncementText'](_0x348f17,_0x32123f,_0x2837b8){const _0x11a92a=_0x348f17['startsWith']('format')||_0x348f17['startsWith']('attribute')?'FORMATTING':_0x348f17['toUpperCase']();return o(this['editor']['locale'],_0x32123f+'_'+_0x11a92a+'_SUGGESTION_ANNOUNCEMENT',_0x2837b8);}['_initAriaMarkerChangeAnnouncements'](){const _0x1d3899=this['editor'];if(!_0x1d3899['ui'])return;const {ariaLiveAnnouncer:_0x126dff}=_0x1d3899['ui'];_0x18e6af(this['_model'],({left:_0x49b1c0,entered:_0x45975d})=>{for(const _0x36df80 of _0x49b1c0){const {group:_0x2b9d12,type:_0x12a2b2}=this['_splitMarkerName'](_0x36df80['name']);if('suggestion'===_0x2b9d12){_0x126dff['announce'](this['_getMarkerAnnouncementText'](_0x12a2b2,'LEAVE'));break;}}for(const _0x5b439f of _0x45975d){const {group:_0x56bbcf,type:_0x4aaa0a}=this['_splitMarkerName'](_0x5b439f['name']);if('suggestion'===_0x56bbcf){_0x126dff['announce'](this['_getMarkerAnnouncementText'](_0x4aaa0a,'ENTER',_0xbf2b20(_0x40fb65)));break;}}});}['_processAttributeChanges'](_0x336e26){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2ec97c=this['editor'],_0x154818=_0x2ec97c['model']['document']['differ']['getChanges']();if(0x0==_0x154818['length'])return!0x1;const _0x139ee8=[],_0x167672=_0x154818['filter'](_0x9439f7=>'attribute'==_0x9439f7['type']),_0x2f3d15=_0x154818['filter'](_0x1c649b=>'insert'==_0x1c649b['type']&&'$text'!=_0x1c649b['name']),_0x122a30=_0x154818['filter'](_0x23c8e2=>'remove'==_0x23c8e2['type']&&'$text'!=_0x23c8e2['name']);for(const _0x5db66f of _0x167672)_0x139ee8['push']({'key':_0x5db66f['attributeKey'],'newValue':_0x5db66f['attributeNewValue'],'oldValue':_0x5db66f['attributeOldValue'],'range':Ht(_0x5db66f['range'],_0x2ec97c['model'])});for(const _0x200e09 of _0x2f3d15){const _0x3d62ec=_0x122a30['find'](_0x7e523e=>_0x7e523e['position']['isEqual'](_0x200e09['position']));_0x3d62ec&&_0x139ee8['push']({'key':m,'newValue':_0x200e09['name'],'oldValue':_0x3d62ec['name'],'range':_0x2ec97c['model']['createRangeOn'](_0x200e09['position']['nodeAfter'])});}return 0x0!=_0x139ee8['length']&&this['_reduceExistingSuggestions'](_0x336e26,_0x139ee8);}['_processAttributeSuggestions'](_0xae88cb){let _0x43c8eb=!0x1;const _0x445ea6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa3f1bf=>_0xa3f1bf['data']['newRange']&&_0xa3f1bf['name']['startsWith']('suggestion:attribute:'));for(const _0x416f11 of _0x445ea6){const {subType:_0x4411c7,id:_0x19883d}=this['_splitMarkerName'](_0x416f11['name']),_0x20ffa0=_0x4411c7['split']('|')[0x0];for(const _0x441492 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x441492['id']!=_0x19883d&&'attribute'==_0x441492['type']&&_0x441492['data']&&_0x441492['data']['key']==_0x20ffa0&&_0x441492['getFirstRange']()['isIntersecting'](_0x416f11['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x441492,_0x416f11['data']['newRange'],_0xae88cb),_0x43c8eb=!0x0);}return _0x43c8eb;}['_recordAttributeChanges'](_0xfc2c20){this['_recordAttributeSuggestions']=!0x0,_0xfc2c20();}['_isRegisteredAttribute'](_0x352c39){const _0x5650ca=this['_isBlockAttribute'](_0x352c39),_0x57d397=this['_inlineAttributeKeys']['has'](_0x352c39);return _0x5650ca||_0x57d397;}['_reduceExistingSuggestions'](_0x25d4a7,_0x14379c){if(0x0==_0x14379c['length'])return!0x1;let _0x1fd8f7=!0x1;for(const _0x12b4f0 of _0x14379c){const _0x33550f=this['_findSuggestions'](_0x12b4f0['range'],'attribute')['filter'](_0x1ce536=>!_0x1ce536['meta']['isNextTo'])['map'](_0x366c48=>_0x366c48['suggestion']),_0x4e3b81=_0x59fd62({'newValue':_0x12b4f0['newValue']});_0x33550f['filter'](_0x53c895=>{const [_0x29f8f7,_0xf229b5]=_0x53c895['subType']['split']('|');return _0x29f8f7==_0x12b4f0['key']&&_0xf229b5!=_0x4e3b81;})['forEach'](_0x26210f=>{this['_reduceSuggestionAttributeRange'](_0x26210f,_0x12b4f0['range'],_0x25d4a7),_0x1fd8f7=!0x0;});}return _0x1fd8f7;}['_reduceSuggestionAttributeRange'](_0x554805,_0x319319,_0xe51e2d){const _0x25c4a0=_0x554805['getFirstRange']()['getDifference'](_0x319319);0x0!==_0x25c4a0['length']?0x1!==_0x25c4a0['length']?this['_breakSuggestionMarker'](_0x554805,_0x319319['start'],_0x319319['end']):this['_setSuggestionRange'](_0x554805,_0x25c4a0[0x0]):_0xe51e2d['removeMarker'](_0x554805['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1cc5ec){this['_editor']=_0x1cc5ec,this['_model']=_0x1cc5ec['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3f6acd,_0x554cfb,_0x208a38,_0x236b2d,_0x36f6db,_0x2a63b6){return new u(this['_model'],{'type':_0x3f6acd,'subType':_0x554cfb,'id':_0x208a38,'author':_0x236b2d,'creator':_0x236b2d,'attributes':_0x36f6db,'onAttributesChange':_0x2a63b6,'onAccept':(..._0x5ccb4e)=>this['getSuggestionCallback'](_0x3f6acd,_0x554cfb,'accept')(..._0x5ccb4e),'onDiscard':(..._0x16c8ed)=>this['getSuggestionCallback'](_0x3f6acd,_0x554cfb,'discard')(..._0x16c8ed)});}['registerCustomCallback'](_0x494824,_0x23f476,_0x4948e9,_0x3045a6){const _0x54cc97=_0x494824+':'+_0x23f476+':'+_0x4948e9;this['_customCallbacks']['set'](_0x54cc97,_0x3045a6);}['getSuggestionCallback'](_0x15663d,_0x426b90,_0x52d9ed){const _0x3fb1c0=_0x15663d+':'+_0x426b90+':'+_0x52d9ed;return this['_customCallbacks']['get'](_0x3fb1c0)||this['_defaultCallbacks']['get'](_0x15663d+':'+_0x52d9ed);}['_registerDefaultCallbacks'](){const _0x1cc78e=()=>!0x1,_0x4681e7=_0xe7354a=>{_0xe7354a['sort']((_0x1189cb,_0x4dafe3)=>_0x1189cb['start']['isBefore'](_0x4dafe3['start'])?0x1:-0x1),this['_model']['change'](_0xc8efac=>{for(const _0x31cca3 of _0xe7354a){let _0xbd5e4b;_0xbd5e4b=_0x31cca3['end']['isAtEnd']&&_0x31cca3['end']['parent']==_0x31cca3['start']['nodeAfter']?_0xc8efac['createSelection'](_0x31cca3['start']['nodeAfter'],'on'):_0xc8efac['createSelection'](_0x31cca3),this['_model']['deleteContent'](_0xbd5e4b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x432102=(_0x41a51b,_0x205ef6)=>{_0x205ef6&&this['_model']['change'](_0x1f006b=>{const {commandName:_0x215569,commandParams:_0x15043a=[]}=_0x205ef6,_0x2141f3=_0x41a51b['map'](_0x66dc0b=>(Gt(_0x66dc0b)&&(_0x66dc0b=this['_model']['createRange'](_0x66dc0b['end'])),_0x66dc0b))['filter'](_0x2cb1b1=>'$graveyard'!==_0x2cb1b1['root']['rootName']);if(_0x2141f3['length']<0x1)return;const _0x50d9d6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49890d=>_0x339777['fromRange'](_0x49890d));_0x1f006b['setSelection'](_0x2141f3);for(const _0xe2fbc of this['_editor']['commands']['commands']())_0xe2fbc['refresh']();_0x15043a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x215569,..._0x15043a);const _0x465eea=_0x50d9d6['filter'](_0x4e1fde=>'$graveyard'!=_0x4e1fde['root']['rootName']);_0x465eea['length']>0x0&&_0x1f006b['setSelection'](_0x465eea);for(const _0x346ece of _0x50d9d6)_0x346ece['detach']();});},_0x1bc4da=(_0x1a7df6,_0x14dd74)=>0x1==_0x1a7df6['length']&&0x1==_0x14dd74['length']&&_0x1a7df6[0x0]['end']['isEqual'](_0x14dd74[0x0]['start']),_0x4acc9c=(_0x4509b2,_0x1b63e5,_0x3f0579,_0x4813af)=>zt(_0x4509b2,_0x1b63e5,_0x3f0579,_0x4813af)?[_0x4509b2,_0x1b63e5]:zt(_0x1b63e5,_0x4509b2,_0x4813af,_0x3f0579)?[_0x1b63e5,_0x4509b2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1cc78e),this['_defaultCallbacks']['set']('insertion:discard',_0x4681e7),this['_defaultCallbacks']['set']('insertion:join',_0x1bc4da),this['_defaultCallbacks']['set']('insertion:chain',_0x4acc9c),this['_defaultCallbacks']['set']('deletion:accept',_0x4681e7),this['_defaultCallbacks']['set']('deletion:discard',_0x1cc78e),this['_defaultCallbacks']['set']('deletion:join',_0x1bc4da),this['_defaultCallbacks']['set']('deletion:chain',_0x4acc9c),this['_defaultCallbacks']['set']('formatInline:accept',_0x432102),this['_defaultCallbacks']['set']('formatInline:discard',_0x1cc78e),this['_defaultCallbacks']['set']('formatInline:join',_0x1bc4da),this['_defaultCallbacks']['set']('formatInline:chain',_0x1cc78e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x432102),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1cc78e),this['_defaultCallbacks']['set']('formatBlock:join',_0x1bc4da),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1cc78e),this['_defaultCallbacks']['set']('attribute:accept',_0x1cc78e),this['_defaultCallbacks']['set']('attribute:discard',(_0x2936f9,_0x5f0190)=>{if(!_0x5f0190)return;const _0x3bd414=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x336be3=>{if(_0x5f0190['key']==m)for(const _0x22151c of _0x2936f9){const _0x17bae5=_0x22151c['start']['nodeAfter'],_0xefd20e=_0x5f0190['oldValue'];_0x336be3['rename'](_0x17bae5,_0xefd20e);}else{if(_0x3bd414['_isBlockAttribute'](_0x5f0190['key'])){for(const _0x3036cf of _0x2936f9)void 0x0!==_0x5f0190['oldValue']?_0x336be3['setAttribute'](_0x5f0190['key'],_0x5f0190['oldValue'],_0x3036cf['start']['nodeAfter']):_0x336be3['removeAttribute'](_0x5f0190['key'],_0x3036cf['start']['nodeAfter']);}else{for(const _0xc79d97 of _0x2936f9)_0x5f0190['oldValue']?_0x336be3['setAttribute'](_0x5f0190['key'],_0x5f0190['oldValue'],_0xc79d97):_0x336be3['removeAttribute'](_0x5f0190['key'],_0xc79d97);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1bc4da);}}function Pt(_0x17350c,_0x13ba9f,_0x38e440){for(const _0x51e7b8 of _0x13ba9f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51e7b8['root']==_0x51e7b8)return!0x1;if(!_0x38e440['containsItem'](_0x51e7b8))return!0x1;if(_0x17350c['isObject'](_0x51e7b8)||_0x17350c['isLimit'](_0x51e7b8))return!0x0;}return!0x1;}function Gt(_0x3018cd){return _0x3018cd['end']['parent']==_0x3018cd['start']['nodeAfter']&&_0x3018cd['end']['isAtStart'];}function Ft(_0x592957,_0x46b3d7,_0x52c796,_0x373768){const _0x30a6d0=_0x2acddc=>!_0x2acddc['item']['is']('$textProxy')&&!_0x373768['isObject'](_0x2acddc['item']),_0x33e5e5=_0x592957['start']['getLastMatchingPosition'](_0x30a6d0),_0xe33239=_0x592957['end']['getLastMatchingPosition'](_0x30a6d0,{'direction':'backward'});return(!_0x592957['start']['isEqual'](_0x33e5e5)||!_0x592957['end']['isEqual'](_0xe33239))&&(_0x33e5e5['isBefore'](_0xe33239)?_0x52c796['updateMarker'](_0x46b3d7,{'range':_0x52c796['createRange'](_0x33e5e5,_0xe33239)}):_0x52c796['removeMarker'](_0x46b3d7),!0x0);}function Lt(_0x3926c1){return _0x59fd62(_0x3926c1);}function Jt(_0x14349b){const _0xcf6449=_0x14349b['start']['nodeAfter'];return _0xcf6449&&_0xcf6449['is']('element');}function Ht(_0x254713,_0x3d1e05){return null==_0x254713['end']['nodeBefore']&&_0x254713['end']['parent']==_0x254713['start']['nodeAfter']?qt(_0x254713['start']['nodeAfter'],_0x3d1e05):_0x254713;}function qt(_0xe323af,_0x566531){const _0x4b9e8a=_0x566531['schema']['isObject'](_0xe323af)||_0x566531['schema']['isSelectable'](_0xe323af);return _0x566531['createRange'](_0x566531['createPositionAt'](_0xe323af,'before'),_0x4b9e8a?_0x566531['createPositionAfter'](_0xe323af):_0x566531['createPositionAt'](_0xe323af,'end'));}function zt(_0x172bb0,_0x393766,_0x2642f2,_0x3e5504){return!!Kt(_0x172bb0,_0x393766)&&_0x2642f2['end']['isEqual'](_0x3e5504['start']);}function Kt(_0x43685a,_0x35b359){if(!_0x43685a['_isDataLoaded']||!_0x35b359['_isDataLoaded'])return!0x1;const _0x1275b9=new Set(Object['keys'](_0x43685a['attributes'])),_0x4d0e5f=new Set(Object['keys'](_0x35b359['attributes']));if(_0x1275b9['delete']('groupId'),_0x4d0e5f['delete']('groupId'),0x0==_0x1275b9['size']&&0x0==_0x4d0e5f['size'])return!0x0;if(_0x1275b9['size']!=_0x4d0e5f['size'])return!0x1;const _0x4a3c24={..._0x43685a['attributes']},_0x12e22e={..._0x35b359['attributes']};return delete _0x4a3c24['groupId'],delete _0x12e22e['groupId'],JSON['stringify'](_0x4a3c24)==JSON['stringify'](_0x12e22e);}function Wt(_0x91bc89,_0x59f938){const _0x37ce9f=Qt(_0x91bc89['attributes']),_0x41e528=Qt(_0x59f938);if(!_0x91bc89['_isDataLoaded'])return!0x1;for(const _0x77e3db of Object['keys'](_0x41e528))if(!_0x5002a1(_0x37ce9f[_0x77e3db],_0x41e528[_0x77e3db]))return!0x1;return!0x0;}function Qt(_0x1537b1){const _0x570603=Object['assign']({},_0x1537b1);return delete _0x570603['skipNestingCheck'],delete _0x570603['tablePasteChainId'],_0x570603;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1e8365(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1cae02,_0x3758b7,_0xe797ee,_0x276d77){super(),this['model']=_0x3758b7,this['view']=_0xe797ee,this['commentThreadController']=_0x276d77,this['_editor']=_0x1cae02,this['_acceptCommand']=_0x1cae02['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1cae02['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2ea4de,_0x2e397f)=>_0x2ea4de||_0x2e397f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4f01fc=>_0x4f01fc&&this['_editor']['model']['canEditAt'](_0x3758b7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x49de2b=>_0x49de2b&&this['_editor']['model']['canEditAt'](_0x3758b7['getRanges']())),this['_pendingAction']=null,_0xe797ee['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xe797ee,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xe797ee,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xe797ee,'change:isDirty',()=>{_0xe797ee['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 _0x3c511b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c511b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class cs extends _0x3f38e2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x57bbb3,_0x1ea287,_0x18f9c5,_0x28f633){super(_0x57bbb3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xecfcb5(_0x57bbb3,o(_0x57bbb3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1ea287['authoredAt']),this['bind']('authoredAt')['to'](_0x1ea287),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',_0x1ea287,'authoredAt',this,'descriptionParts',(_0x361de0,_0x43233c,_0x6d54ad)=>{const _0x39878c=_0x6d54ad['map'](_0x358960=>as(_0x358960['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x361de0-0x1,_0x1ea287['author']['name'],_0x43233c?_0x28f633['formatDateTime'](_0x43233c):'',new DOMParser()['parseFromString'](_0x39878c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1ebca9(),this['focusTracker']=new _0x319104(),this['keystrokes']=new _0x3924f0(),this['focusCycler']=new _0xbc3cdc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x498732=>_0x498732['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1ea287,this['_localUser']=_0x18f9c5,this['_config']=_0x28f633,_0x28f633['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x382f27(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x517340}=this['_config'];this['commentsListView']=new _0x517340(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',_0x27d0f0=>_0x27d0f0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3828c9,_0x1d6986)=>_0x3828c9||!!_0x1d6986);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x17d088}=this['_config'],_0x6ffc4c=new _0x17d088(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x23daf6=_0x6ffc4c['commentInputView'];return _0x6ffc4c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x23daf6,'value',(_0x3c5f7d,_0x18d598,_0x5a10c6)=>!!_0x5a10c6||_0x3c5f7d&&!_0x18d598),_0x23daf6['on']('submit',(_0x7aefd1,_0x59294d)=>{this['fire']('addComment',_0x59294d),_0x23daf6['editor']['setData']('');}),_0x23daf6['on']('cancel',()=>this['focus']()),_0x23daf6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x6ffc4c;}}class pe extends cs{['suggestionView'];['_descriptionElement'];constructor(_0x2a939b,_0x6e9657,_0x22819c,_0xb1c95f){super(_0x2a939b,_0x6e9657,_0x22819c,_0xb1c95f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x69d9ff=>_0x69d9ff&&_0x69d9ff[0x0]?_0x69d9ff[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3d0a7b,_0x263891)=>{let _0x5dc555='';for(const _0x3c033a of _0x3d0a7b)_0x5dc555+='<p>'+as(_0x3c033a['content'],_0x3c033a['color'])+'</p>';return _0x263891?_0x5dc555:_0x1ee335(_0x5dc555,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xb1c95f['SuggestionView'](_0x2a939b,_0x6e9657,{'formatDateTime':_0xb1c95f['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 _0x468719=this['bindTemplate'],_0x172dbb=[this['suggestionView']];return this['commentsListView']&&_0x172dbb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x172dbb['push'](this['commentThreadInputView']),_0x172dbb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x468719['if']('isActive','ck-suggestion-wrapper--active'),_0x468719['to']('type',_0x5c36ce=>'ck-suggestion-'+_0x5c36ce),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':_0x468719['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x172dbb};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x3f38e2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x31df71,_0x4a2445,_0x58eb4d){super(_0x31df71),this['_model']=_0x4a2445,this['_config']=_0x58eb4d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4a2445),this['acceptButton']=this['_createButton'](o(_0x31df71,'Accept\x20suggestion'),_0x34a192['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x31df71,'Discard\x20suggestion'),_0x34a192['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5ae1c3(_0x31df71,_0x4a2445['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1ebca9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x319104(),this['keystrokes']=new _0x3924f0(),this['focusCycler']=new _0xbc3cdc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4e3f59=>_0x4e3f59['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x362412=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x362412['innerHTML']=this['description'],this['on']('change:description',(_0x43bce8,_0x4c1182,_0x1e229b)=>{_0x362412['innerHTML']=_0x1e229b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x14b06e=this['bindTemplate'],_0x3eaaf0=[{'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':_0x14b06e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x14b06e['to']('authoredAt',_0x1566f7=>this['_config']['formatDateTime'](_0x1566f7))}]}]},{'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']&&_0x3eaaf0['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':_0x3eaaf0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x551e9f,_0x197487,_0x4e26cd,_0x56fefc,_0xdef948){const _0x508f8d=new _0x3bf7f5(this['locale']);return _0x508f8d['set']({'label':_0x551e9f,'icon':_0x197487,'tooltip':!0x0,'tooltipPosition':_0xdef948}),_0x508f8d['extendTemplate']({'attributes':{'class':_0x4e26cd}}),_0x508f8d['on']('execute',()=>{this['fire'](_0x56fefc,this['_model']['id']);}),_0x508f8d;}['_setupKeyboardNavigation'](){const _0x80816b=this['element'];this['keystrokes']['listenTo'](_0x80816b);for(const _0x299b1f of this['focusables'])this['focusTracker']['add'](_0x299b1f['element']),this['keystrokes']['listenTo'](_0x299b1f['element']);this['keystrokes']['set']('enter',(_0x237e84,_0x2401ae)=>{_0x80816b===_0x237e84['target']&&(this['focusCycler']['focusFirst'](),_0x2401ae());}),this['keystrokes']['set']('esc',(_0x53d226,_0x3d1765)=>{_0x80816b!==_0x53d226['target']&&(this['focus'](),_0x3d1765());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x463932{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xb11e74,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1086fa){super(_0x1086fa),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x58969c=this['editor']['config'];_0x58969c['define']('trackChanges.SuggestionThreadView',pe),_0x58969c['define']('trackChanges.SuggestionView',fe),_0x58969c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x58969c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1efde4,_0x300ef3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4bcaa1,_0x1e9980]of this['_handleControllerBuffer']){const _0x5e3e3f=this['_suggestionToController']['has'](_0x4bcaa1);_0x5e3e3f||_0x1e9980?_0x5e3e3f&&_0x1e9980&&this['_destroyController'](_0x4bcaa1):this['_initializeController'](_0x4bcaa1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1efde4,_0x300ef3);}['init'](){const _0x369e3a=this['editor'],_0x4b8925=_0x369e3a['plugins']['get']('TrackChangesEditing'),_0x33ecd2=_0x369e3a['plugins']['get']('Annotations'),_0x369239=_0x369e3a['plugins']['get']('EditorAnnotations'),_0x39c176=_0x369e3a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x369239['addSourceCollector'](()=>{const _0x3f4ab4=[];for(const [_0x1e6c39,_0x33a020]of Array['from'](this['_suggestionToController'])){const _0x15286b=_0x1e6c39['getAllAdjacentSuggestions'](),_0x49f132=[];for(const _0x5290ff of _0x15286b){if(!_0x5290ff['isInContent'])continue;if(_0x5290ff['isMultiRange']){_0x49f132['push'](..._0x5290ff['getRanges']());continue;}const _0x50e2c3=_0x5290ff['getFirstRange']();if(_0x49f132['length']>0x0){const _0x38e4c7=_0x49f132[0x0]['getJoined'](_0x50e2c3);if(_0x38e4c7){_0x49f132[0x0]=_0x38e4c7;continue;}}_0x49f132['push'](_0x50e2c3);}_0x3f4ab4['push']([_0x33a020['view'],_0x49f132]);}return _0x3f4ab4;}),this['listenTo'](_0x4b8925,'suggestionLoaded',(_0x2ce4b6,_0x4a372c)=>{this['listenTo'](_0x4a372c,'change:previous',(_0x34eb04,_0x58a3dc,_0x2efdc5,_0x36031a)=>{_0x4a372c['isInContent']&&(null==_0x2efdc5?(this['_updateController'](_0x36031a['head']),this['_handleSuggestionControllerDelayed'](_0x4a372c,!0x1)):(this['_updateController'](_0x2efdc5['head']),null==_0x36031a&&this['_handleSuggestionControllerDelayed'](_0x4a372c,!0x0)));}),null!==_0x4a372c['previous']?this['_updateController'](_0x4a372c['head']):this['_handleSuggestionControllerDelayed'](_0x4a372c,!0x1);}),this['listenTo'](_0x4b8925,'suggestionUnloaded',(_0x5c9f0a,_0x4204a1,_0x1d98d4)=>{this['stopListening'](_0x4204a1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4204a1),this['_suggestionToController']['has'](_0x4204a1)&&this['_destroyController'](_0x4204a1),_0x1d98d4&&this['_updateController'](_0x1d98d4['head']);}),this['listenTo'](_0x4b8925,'suggestionChanged',(_0xe341a,_0x3e7690)=>{this['_updateController'](_0x3e7690);}),this['listenTo'](_0x33ecd2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39c176,'addComment',(_0x17c510,{threadId:_0x41fe03,isFromAdapter:_0xdee5e7})=>{if(_0xdee5e7||!_0x4b8925['hasSuggestion'](_0x41fe03))return;const _0x368f33=_0x4b8925['getSuggestion'](_0x41fe03);this['_suggestionToController']['get'](_0x368f33)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f20a2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4cf0eb;for(const _0x372835 in _0x1f20a2){const _0x27598d=_0x372835,_0x39f601=_0x1f20a2[_0x27598d];if('trackChangesLicenseKeyValid'==_0x39f601||'trackChangesLicenseKeyInvalid'==_0x39f601||'trackChangesLicenseKeyExpired'==_0x39f601||'trackChangesLicenseKeyDomainLimit'==_0x39f601||'trackChangesLicenseKeyNotAllowed'==_0x39f601||'trackChangesLicenseKeyEvaluationLimit'==_0x39f601||'trackChangesLicenseKeyTrialLimit'==_0x39f601||'trackChangesLicenseKeyUsageLimit'==_0x39f601){delete _0x1f20a2[_0x27598d],_0x4cf0eb=_0x39f601,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4cf0eb&&_0x1f20a2['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4cf0eb&&_0x1f20a2['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4cf0eb&&_0x1f20a2['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4cf0eb&&_0x1f20a2['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4cf0eb&&_0x1f20a2['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4cf0eb&&_0x1f20a2['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4cf0eb&&_0x1f20a2['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x425523=this['editor']['plugins']['get']('Annotations'),_0x53718a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x322c40=Array['from'](_0x425523['activeAnnotations'],_0xfb4977=>_0xfb4977['innerView'])['filter'](_0x21a6b6=>this['_viewToController']['has'](_0x21a6b6)),_0x10dec0=[];for(const _0x247673 of _0x322c40){const _0x30e715=this['_viewToController']['get'](_0x247673)['model']['getAllAdjacentSuggestions']();_0x10dec0['push'](..._0x30e715['reduce']((_0x34f5bc,_0x1baf91)=>[..._0x34f5bc,..._0x1baf91['getMarkerNames']()],[]));}_0x53718a['activeMarkers']=_0x10dec0;}['_addUIComponentsToFactory'](){const _0x1b4e2c=this['editor'],_0xa1dfa7=_0x1b4e2c['locale'],_0x2161be=o(_0xa1dfa7,'Track\x20changes'),_0x519f59=new _0x26f2d3([{'type':'switchbutton','model':new _0x2fa7c7({'withText':!0x0,'isToggleable':!0x0,'label':_0x2161be,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2fa7c7({'withText':!0x0,'label':o(_0xa1dfa7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2fa7c7({'withText':!0x0,'label':o(_0xa1dfa7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2fa7c7({'withText':!0x0,'label':o(_0xa1dfa7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2fa7c7({'withText':!0x0,'label':o(_0xa1dfa7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1b4e2c['plugins']['has']('TrackChangesPreview')&&_0x519f59['addMany']([{'type':'separator'},{'type':'button','model':new _0x2fa7c7({'withText':!0x0,'label':o(_0xa1dfa7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3442bf of _0x519f59)if(ke(_0x3442bf)){const _0x58ce67=_0x1b4e2c['commands']['get'](_0x3442bf['model']['commandName']);_0x3442bf['model']['bind']('isOn','isEnabled')['to'](_0x58ce67,'value','isEnabled');}_0x1b4e2c['ui']['componentFactory']['add']('trackChanges',_0xb03760=>this['_createToolbarButton'](_0xb03760,_0x519f59,_0x2161be)),_0x1b4e2c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x33ac16=>this['_createMenuBarMenu'](_0x33ac16,_0x519f59,_0x2161be));}['_createToolbarButton'](_0x18dda8,_0x54c0f1,_0x13213d){const _0x15433a=_0x2a117c(_0x18dda8,_0x55453a),_0x40f3bd=this['editor']['commands']['get']('trackChanges');_0x15433a['buttonView']['set']({'tooltip':_0x13213d,'label':_0x13213d,'icon':we}),_0x15433a['buttonView']['bind']('isOn')['to'](_0x40f3bd,'value'),_0x15433a['buttonView']['on']('execute',()=>{_0x40f3bd['execute'](),this['editor']['editing']['view']['focus']();}),_0xe3d30f(_0x15433a,_0x54c0f1,{'role':'menu'});const _0x1b3336=[];for(const _0x455727 of _0x54c0f1)ke(_0x455727)&&_0x1b3336['push'](this['editor']['commands']['get'](_0x455727['model']['commandName']));const _0x215048=_0x15433a['buttonView'];return _0x215048['actionView']['unbind']('isEnabled'),_0x215048['arrowView']['unbind']('isEnabled'),_0x215048['actionView']['bind']('isEnabled')['to'](_0x40f3bd,'isEnabled'),_0x215048['arrowView']['bind']('isEnabled')['toMany'](_0x1b3336,'isEnabled',(..._0x230a52)=>_0x230a52['some'](_0x1c812e=>_0x1c812e)),_0x15433a['on']('execute',_0x19a091=>{this['editor']['execute'](_0x19a091['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x15433a;}['_createMenuBarMenu'](_0x160c40,_0x23037b,_0x40c569){const _0x118efb=new _0x527695(_0x160c40),_0x479a84=this['editor']['commands']['get']('trackChanges');_0x118efb['buttonView']['set']({'label':_0x40c569,'icon':we});const _0x36a5ee=new _0x4d5da4(_0x160c40);for(const _0x404bb5 of _0x23037b){if('separator'==_0x404bb5['type']){_0x36a5ee['items']['add'](new _0x217afa(_0x160c40));continue;}const _0x7e81d2=new _0x30fe9c(_0x160c40,_0x118efb),_0x31fc40=new _0x3e5929(_0x160c40),_0x5cb28e=_0x404bb5['model'];_0x31fc40['bind'](...Object['keys'](_0x5cb28e))['to'](_0x5cb28e),_0x31fc40['delegate']('execute')['to'](_0x118efb),_0x31fc40['on']('execute',()=>{this['editor']['execute'](_0x5cb28e['commandName']),this['editor']['editing']['view']['focus']();}),_0x7e81d2['children']['add'](_0x31fc40),_0x36a5ee['items']['add'](_0x7e81d2);}return _0x118efb['bind']('isEnabled')['to'](_0x479a84,'isEnabled'),_0x118efb['panelView']['children']['add'](_0x36a5ee),_0x118efb;}['_initializeController'](_0x45e137){const _0x382dfb=this['editor'],_0x44f7ca=_0x382dfb['config'],_0xb22703=_0x382dfb['plugins']['get']('Annotations'),_0x6107aa=_0x382dfb['plugins']['get']('CommentsRepository'),_0x53adac=_0x382dfb['plugins']['get']('EditorAnnotations'),_0x517487=_0x382dfb['plugins']['get'](_0xb11e74)['me'],_0x346d9f=_0x44f7ca['get']('trackChanges')['SuggestionThreadView'],_0xaf49f2=_0x44f7ca['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x180700,CommentThreadInputView:_0x927d11}=_0x382dfb['plugins']['get']('CommentsUI');let _0x57b882,_0x57e4b8,_0x27e0d4;this['_annotationViews']['has'](_0x45e137['id'])?(_0x57e4b8=this['_annotationViews']['get'](_0x45e137['id']),_0x57b882=_0x57e4b8['mainView']):(_0x57b882=new _0x346d9f(_0x382dfb['locale'],_0x45e137,_0x517487,{'disableComments':this['_disableComments'],'editorConfig':{..._0x44f7ca['get']('comments.editorConfig'),'licenseKey':_0x44f7ca['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x44f7ca['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x44f7ca['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x44f7ca['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x58d61b(_0x44f7ca['get']('locale')),'CommentView':_0x44f7ca['get']('comments')['CommentView'],'CommentsListView':_0x180700,'CommentThreadInputView':_0x927d11,'SuggestionView':_0xaf49f2}),_0x57b882['suggestionView']['acceptButton']['on']('execute',()=>{_0x382dfb['editing']['view']['focus']();}),_0x57b882['suggestionView']['discardButton']['on']('execute',()=>{_0x382dfb['editing']['view']['focus']();}),_0x57e4b8=_0xb22703['createAnnotationView'](this['editor']['locale'],_0x57b882),_0x57e4b8['bind']('isDirty')['to'](_0x57b882,'isDirty'),_0x57e4b8['bind']('length')['to'](_0x57b882),_0x57e4b8['bind']('type')['to'](_0x57b882,'type',_0x43c755=>'suggestion-'+_0x43c755),_0x57b882['on']('escape',()=>{_0x27e0d4['fire']('escape');}),this['_annotationViews']['set'](_0x45e137['id'],_0x57e4b8));const _0x572424=_0x6107aa['createCommentThreadController'](_0x45e137['commentThread'],_0x57b882),_0x2ec677=new Ce(_0x382dfb,_0x45e137,_0x57b882,_0x572424),_0x37d19b=_0x45e137['getAllAdjacentSuggestions']()['filter'](_0x2d1731=>_0x2d1731['isInContent']);_0x57b882['descriptionParts']=_0x382dfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x37d19b),this['_suggestionToController']['set'](_0x45e137,_0x2ec677),this['_viewToController']['set'](_0x57b882,_0x2ec677),_0x27e0d4=_0xb22703['createAnnotation']({'view':_0x57e4b8,'target':()=>{const _0x176079=[],_0xdf1d8f=_0x45e137['getAllAdjacentSuggestions']()['filter'](_0x37a9bb=>_0x37a9bb['isInContent']);for(const _0x5095d5 of _0xdf1d8f)_0x176079['push'](..._0x5095d5['getMarkers']());return _0x300086(_0x382dfb['editing'],_0x176079);},'type':()=>'suggestion-'+_0x2ec677['view']['type']}),_0x6107aa['_bindAnnotationToEditors'](_0x57b882,_0x27e0d4),_0xb22703['add'](_0x27e0d4),_0x53adac['registerAnnotation'](_0x27e0d4);}['_destroyController'](_0x543445){const _0x507e9a=this['editor']['plugins']['get']('CommentsRepository'),_0x4edbda=this['editor']['plugins']['get']('Annotations'),_0x3d7517=this['_suggestionToController']['get'](_0x543445),_0x210a04=_0x3d7517['view'],_0x367f5e=_0x4edbda['getByInnerView'](_0x210a04);_0x507e9a['_unbindEditors'](_0x210a04),_0x367f5e&&_0x4edbda['remove'](_0x367f5e),this['_suggestionToController']['delete'](_0x543445),this['_viewToController']['delete'](_0x210a04),_0x3d7517['destroy']();}['_updateController'](_0x942120){if(!_0x942120['isInContent']||!this['_suggestionToController']['has'](_0x942120))return;const _0x268b68=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3b9e=this['_suggestionToController']['get'](_0x942120),_0x15b9d0=_0x942120['getAllAdjacentSuggestions']();_0x2d3b9e['view']['descriptionParts']=_0x268b68['descriptionFactory']['getDescriptions'](_0x15b9d0);}['destroy'](){for(const _0x43dc1c of this['_suggestionToController']['keys']())this['_destroyController'](_0x43dc1c);for(const _0x304f65 of this['_annotationViews']['values']())_0x304f65['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3d5570){return'model'in _0x3d5570;}class k extends _0x463932{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x366dd1){this['editor']['plugins']['get'](p)['adapter']=_0x366dd1;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x366551){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x366551);}['getSuggestions']({skipNotAttached:_0x531d41=!0x1,toJSON:_0x1400b9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x531d41,'toJSON':_0x1400b9});}['getSuggestion'](_0x3eb175){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3eb175);}}const w=['Pagination'];class T extends _0x463932{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xe263c6=this['editor'];if(_0xe263c6['config']['define']('trackChangesData.editorCreator',_0x4c07a1=>{const _0x54c912=_0xe263c6['model']['document']['getRootNames']()['reduce']((_0x4e2445,_0x8c05b7)=>(_0x4e2445[_0x8c05b7]='',_0x4e2445),{});return _0xe263c6['constructor']['create'](_0x54c912,_0x4c07a1);}),'function'!=typeof _0xe263c6['config']['get']('trackChangesData')['editorCreator'])throw new _0x3384ca('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1fad8c){return N(this['editor'],!0x0,_0x1fad8c);}['getDataWithDiscardedSuggestions'](_0x2cf388){return N(this['editor'],!0x1,_0x2cf388);}}class D extends _0x463932{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f27dd){function _0x294531(_0x24c91f){return _0x24c91f['map'](_0x49f75e=>String['fromCharCode'](_0x49f75e))['join']('');}super(_0x1f27dd),this['result']='end',_0x1f27dd[_0x294531([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x294531([0x76,0x69,0x65,0x77])][_0x294531([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x294531([0x61,0x75,0x74,0x6f]),_0x1f27dd[_0x294531([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x294531([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x294531([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x294531([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x294531([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x500ca0){return void 0x0!==_0x500ca0['getRootsAttributes'];}async function N(_0x366993,_0x38666a,_0x7f9843){const _0x57132f=_0x4bf574(_0x366993,w);_0x57132f['plugins']['push'](p,D),_0x57132f['rootsAttributes']=Fe(_0x366993)?_0x366993['getRootsAttributes']():void 0x0;const _0x5912e0=document['createDocumentFragment'](),_0x305a70=_0x366993['config']['get']('trackChangesData')['editorCreator'],_0x2dafac=await _0x305a70(_0x57132f,()=>function(_0x3a3684){const _0x246163=document['createElement']('div');return _0x3a3684['appendChild'](_0x246163),_0x246163;}(_0x5912e0));!function(_0x5b2db1,_0x16be69){const _0x4e174d=_0x5b2db1['model']['document']['getRootNames']()['reduce']((_0xb47389,_0x17d8f0)=>(_0xb47389[_0x17d8f0]=_0x5b2db1['data']['get']({'rootName':_0x17d8f0}),_0xb47389),{}),_0x1d7bd2=_0x5b2db1['plugins']['get']('Users')['users']['map'](_0x5d169b=>({'id':_0x5d169b['id'],'name':_0x5d169b['name']})),_0x10eb4d=_0x5b2db1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x473ec4=_0x5b2db1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f940a=_0x16be69['plugins']['get']('Users'),_0x44cef6=_0x16be69['plugins']['get']('TrackChangesEditing'),_0x44e637=_0x16be69['plugins']['get']('CommentsRepository');for(const _0x593931 of _0x44e637['getCommentThreads']())_0x593931['remove']();for(const _0x6692cb of _0x1d7bd2)_0x1f940a['getUser'](_0x6692cb['id'])||_0x1f940a['addUser'](_0x6692cb);_0x1f940a['me']||_0x1f940a['useAnonymousUser']();for(const _0x3ca45b of _0x473ec4)_0x44e637['addCommentThread'](_0x3ca45b);for(const _0x1d3172 of _0x10eb4d)_0x44cef6['addSuggestionData'](_0x1d3172);_0x16be69['data']['set'](_0x4e174d);}(_0x366993,_0x2dafac),_0x2dafac['execute'](_0x38666a?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e96a5=Fe(_0x2dafac)?_0x2dafac['getFullData'](_0x7f9843):_0x2dafac['data']['get'](_0x7f9843);return await _0x2dafac['destroy'](),_0x5e96a5;}class Me extends _0x3f38e2{['options'];constructor(_0x36f80b,_0x27be2a){super(_0x36f80b),this['options']=_0x27be2a,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'](_0x4e8dcb,_0x59fe94){if(!this['element'])return;const _0x231e55=[];for(const [_0xff2943,_0x2fb27a]of _0x4e8dcb){const _0x186357=document['createElement']('div');_0x186357['setAttribute']('data-ck-root-name',_0xff2943),_0x186357['className']=_0x2fb27a['classes']+'\x20ck-track-changes-preview__root-container',_0x186357['innerHTML']=_0x2fb27a['content'],_0x231e55['push'](_0x186357);}_0x59fe94(this['element'],_0x231e55),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Xt{constructor(_0x17dabd){super(_0x17dabd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4cc3ef=this['editor'],_0x318e94=_0x4cc3ef['locale'],_0x16a462=_0x4cc3ef['plugins']['get']('Dialog');let _0x33021c;const _0x2b2672=function(_0x356d5f){const _0x432acf={};if('editables'in _0x356d5f['ui']['view']){for(const [_0x1290c6,_0x4ffb69]of Object['entries'](_0x356d5f['ui']['view']['editables']))_0x432acf[_0x1290c6]=_0x4ffb69['element'];}else _0x432acf[_0x356d5f['model']['document']['getRootNames']()[0x0]]=_0x356d5f['ui']['view']['editable']['element'];return _0x432acf;}(_0x4cc3ef),_0x333abd=function(_0x56aa4a){let _0x335e93=0x0;for(const _0x36e0aa of Object['values'](_0x56aa4a))_0x335e93=Math['max'](_0x335e93,_0x36e0aa['getBoundingClientRect']()['width']);let _0x101a75=0x0;for(const _0x1415a6 of Object['values'](_0x56aa4a))_0x101a75+=_0x1415a6['getBoundingClientRect']()['height'];const _0x12c9e1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5494a0=Math['min'](_0x101a75,_0x12c9e1);return{'width':_0x335e93,'height':_0x5494a0};}(_0x2b2672);_0x16a462['show']({'id':'finalContentPreview','title':o(_0x318e94,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x318e94,{'dialogRects':_0x333abd}),'onHide':()=>{_0x33021c['detachFromDom']();},'onShow':()=>{_0x4cc3ef['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x11df28=>{const _0x333b17=this['_standarizeRootsData'](_0x11df28,_0x4cc3ef,_0x2b2672);_0x16a462['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x333b17,_0x4cc3ef['config']['get']('trackChanges.preview.renderFunction'));}),_0x33021c=new _0x26b78b(_0x318e94,[_0x16a462['view']]),_0x33021c['attachToDom'](),_0x33021c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4cc3ef['once']('destroy',()=>{_0x33021c['detachFromDom']();});const _0x59c5ae=_0x16a462['view']['headerView']['class'];_0x16a462['view']['headerView']['class']=_0x59c5ae?_0x59c5ae+'\x20ck-reset_all':'ck-reset_all',_0x16a462['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x16a462['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x15b7f0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x37170c=_0x15b7f0['previewMode'],_0x36441b={};if('$labels'===_0x37170c){for(const _0x16aabe of _0x15b7f0['getMergeFieldsIds']())_0x36441b[_0x16aabe]=_0x15b7f0['getLabel'](_0x16aabe)||_0x16aabe;}else{const _0x2899f1='$defaultValues'===_0x37170c?_0x15b7f0['getDefaultValues']():_0x15b7f0['getDataSetValues'](_0x37170c,!0x0);for(const _0x192cbc of Object['entries'](_0x2899f1)){const [_0x54e8d3,_0x29e954]=_0x192cbc;_0x36441b[_0x54e8d3]=null!==_0x29e954?_0x29e954:_0x15b7f0['getLabel'](_0x54e8d3)||_0x54e8d3;}}return{'mergeFieldsData':_0x36441b};}['_standarizeRootsData'](_0x5ae0ce,_0x3f3c72,_0xb45c8){let _0x42330a;if('string'==typeof _0x5ae0ce){const _0x88678e=_0x3f3c72['model']['document']['getRootNames']()[0x0];_0x42330a={[_0x88678e]:_0x5ae0ce};}else _0x42330a=_0x5ae0ce;const _0x25280e=this['_fixMediaEmbeds'](_0x42330a,_0x3f3c72),_0x4aa21e=function(_0x269917,_0x260151){for(const [_0x50be28,_0x1bc1b9]of _0x269917)_0x1bc1b9['classes']=_0x260151[_0x50be28]['classList']['value']['replace']('ck-focused','');return _0x269917;}(this['_sortRoots'](_0x3f3c72)['reduce']((_0x582215,_0xc561bf)=>(_0x582215['push']([_0xc561bf,{'content':_0x25280e[_0xc561bf],'classes':''}]),_0x582215),[]),_0xb45c8);return _0x4aa21e;}['_fixMediaEmbeds'](_0x235cf9,_0x34db10){if(!_0x34db10['plugins']['has']('MediaEmbedEditing'))return _0x235cf9;const _0x281d8c=_0x34db10['plugins']['get']('MediaEmbedEditing');for(const [_0x22cda4,_0x409a82]of Object['entries'](_0x235cf9)){const _0x3d128c=document['createElement']('div');_0x3d128c['innerHTML']=_0x409a82,(_0x3d128c['querySelectorAll']('figure.media')['forEach'](_0xd6436d=>{const _0x24c815=_0xd6436d['querySelector']('oembed');if(_0x24c815){const _0x2c04a7=_0x24c815['getAttribute']('url');if(_0x2c04a7){const _0x27c98d=_0x281d8c['registry']['getMediaViewElement'](new _0x4f4bb1(_0x34db10['editing']['view']['document']),_0x2c04a7,{'elementName':'','renderForEditingView':!0x0}),_0x2ece97=document['createElement']('div');_0x2ece97['classList']['add']('ck-media__wrapper'),_0x27c98d['render'](_0x2ece97,_0x34db10['editing']['view']['domConverter']),_0x24c815['replaceWith'](_0x2ece97);}}}),_0x235cf9[_0x22cda4]=_0x3d128c['innerHTML']);}return _0x235cf9;}['_sortRoots'](_0x13c970){if(!function(_0x374507){return void 0x0!==_0x374507['getRootsAttributes'];}(_0x13c970))return _0x13c970['model']['document']['getRootNames']();const _0x1a2b65=[],_0x4ac0f8=new Map();for(const _0x32b282 of _0x13c970['model']['document']['getRootNames']()){const _0x1d4b2f=_0x13c970['editing']['view']['getDomRoot'](_0x32b282)['getClientRects']()['item'](0x0);_0x1a2b65['push'](_0x32b282),_0x4ac0f8['set'](_0x32b282,_0x1d4b2f);}return _0x1a2b65['sort']((_0x3e8bc6,_0x444ea0)=>{const _0x4cbc0d=_0x4ac0f8['get'](_0x3e8bc6),_0x28e336=_0x4ac0f8['get'](_0x444ea0);return _0x4cbc0d['y']-_0x28e336['y']||_0x4cbc0d['x']-_0x28e336['x'];}),_0x1a2b65;}}class te extends _0x463932{static get['requires'](){return[T,_0x57b61d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20ffd5){super(_0x20ffd5),_0x20ffd5['commands']['add']('previewFinalContent',new re(this['editor'])),_0x20ffd5['config']['define']('trackChanges.preview.renderFunction',(_0x2eead2,_0x2988bc)=>{for(const _0x26fc66 of _0x2988bc)_0x2eead2['appendChild'](_0x26fc66);});}}export{cs as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Xt,Plugin as _0x330415,PendingActions as _0x1faec0,icons as _0x1d2de2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5be2ae,ObservableMixin as _0x1f6170,uid as _0x2b8ec1,priorities as _0x2e5569,insertToPriorityArray as _0x4bffad,logWarning as _0x35c42f,getEnvKeystrokeText as _0x5ef03d,FocusTracker as _0x51637b,KeystrokeHandler as _0x1ea7c8,Collection as _0x5e0d05}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x464106,View as _0x21e7be,ViewCollection as _0x5161fa,FocusCycler as _0x1bb171,ViewModel as _0xf17cec,createDropdown as _0x11c244,SplitButtonView as _0x5955c6,addListToDropdown as _0x19c284,MenuBarMenuView as _0x261119,MenuBarMenuListView as _0x207d53,ListSeparatorView as _0x229c03,MenuBarMenuListItemView as _0xbe89da,MenuBarMenuListItemButtonView as _0x1213d0,BodyCollection as _0x4ba3f9,Dialog as _0x3434b7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3cbfc7,hashObject as _0x557276,surroundingMarkersDetector as _0x208b1d,FOCUS_ANNOTATION_KEYSTROKE as _0x57c466,AriaDescriptionView as _0x50dc3b,setupThreadKeyboardNavigation as _0x59d6f3,trimHtml as _0x2b25a8,UserView as _0x124655,LateFocusButtonView as _0x5ac1be,getDateTimeFormatter as _0x44d697,getAllMarkersDomElementsSorted as _0x386c62,sanitizeEditorConfig as _0x3ae636}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x9ed483,LiveRange as _0x41d70f,LivePosition as _0x4f97b9,DowncastWriter as _0x11f4f7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x324800,toWidget as _0x24082b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x26d773,set as _0x33577f,isEqual as _0x24363f,unset as _0x596961,omit as Ut}from'lodash-es';import{Delete as _0x48cd2d,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3a1ff5,ShiftEnter as _0x305297}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Xt{['_enabledCommands'];constructor(_0x3114c1,_0x1cd299){super(_0x3114c1),this['_enabledCommands']=_0x1cd299,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 _0x5a4f10 of this['editor']['commands']['commands']())_0x5a4f10['affectsData']&&!this['_enabledCommands']['has'](_0x5a4f10)&&_0x5a4f10['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2e7381 of this['editor']['commands']['commands']())_0x2e7381['affectsData']&&!this['_enabledCommands']['has'](_0x2e7381)&&_0x2e7381['clearForceDisabled']('TrackChangesCommand');}}class O extends Xt{['_suggestions'];constructor(_0x32ef0e,_0x12fa2d){super(_0x32ef0e),this['_suggestions']=_0x12fa2d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2fbcfc){const _0x5d398b=this['_suggestions']['get'](_0x2fbcfc);if(!_0x5d398b)throw new _0x5be2ae('track-changes-accept-suggestion-not-found',this);const _0x5372f1=_0x5d398b['getRanges']();this['editor']['model']['canEditAt'](_0x5372f1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5d398b);}}class R extends Xt{['_suggestions'];constructor(_0x12fde4,_0x125067){super(_0x12fde4),this['_suggestions']=_0x125067,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1896e2){const _0x562aef=this['_suggestions']['get'](_0x1896e2);if(!_0x562aef)throw new _0x5be2ae('track-changes-discard-suggestion-not-found',this);const _0x3aa04d=_0x562aef['getRanges']();this['editor']['model']['canEditAt'](_0x3aa04d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x562aef);}}function as(_0x58c266,_0x20b560){let _0x5fcb3a='';return _0x5fcb3a+=_0x58c266['split']('*')['map']((_0x2afdd8,_0x23481e)=>_0x23481e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2afdd8)+'</span>':nn(_0x2afdd8))['join'](''),_0x20b560&&(_0x5fcb3a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x20b560['value']+'\x22\x20title=\x22'+_0x20b560['title']+'\x22></span>'),_0x5fcb3a;}function nn(_0x1b6176){const _0xf29241=document['createElement']('span');return _0xf29241['innerText']=_0x1b6176,_0xf29241['innerHTML'];}function Yt(_0x3dfa40){return _0x3dfa40['sort']((_0x45e859,_0x3fa3a8)=>'deletion'==_0x45e859['type']&&'deletion'!=_0x3fa3a8['type']?-0x1:'deletion'!=_0x45e859['type']&&'deletion'==_0x3fa3a8['type']?0x1:0x0);}function to(_0x2094c4,_0x4065b4){let _0x508cd8,_0x5451e1=0x0;const _0x2463d7=[],_0x557cd9=_0x4065b4['schema'];for(;_0x5451e1<_0x2094c4['length'];){const _0x1169b0=_0x2094c4[_0x5451e1],_0x3d1c5b=_0x2094c4[_0x5451e1+0x1];_0x508cd8||(_0x508cd8=_0x4065b4['createPositionBefore'](_0x1169b0)),on(_0x4065b4,_0x1169b0,_0x3d1c5b)||(_0x2463d7['push'](_0x4065b4['createRange'](_0x508cd8,_0x557cd9['isObject'](_0x1169b0)?_0x4065b4['createPositionAfter'](_0x1169b0):_0x4065b4['createPositionAt'](_0x1169b0,'end'))),_0x508cd8=null),_0x5451e1++;}return _0x2463d7;}function on(_0x2ef260,_0x1bc74f,_0x505d6d){if(!_0x505d6d)return!0x1;const _0x2c9caa=_0x2ef260['createPositionAfter'](_0x1bc74f),_0x15b229=_0x2ef260['createPositionBefore'](_0x505d6d);return _0x2c9caa['isTouching'](_0x15b229);}function Zt(_0x22bb3e,_0x5569d4,_0x571277){for(;_0x571277['length'];){const _0x39dc79=_0x571277['splice'](0x0,0x64);_0x22bb3e['change'](()=>{for(const _0x3d8ef8 of _0x39dc79)_0x3d8ef8['isInContent']&&_0x5569d4['execute'](_0x3d8ef8['id']);});}}class x extends Xt{['_command'];['_suggestions'];constructor(_0x29635a,_0xb86bf9,_0x34020f){super(_0x29635a),this['_command']=_0xb86bf9,this['_suggestions']=_0x34020f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1d30ef=Array['from'](this['_suggestions']['values']())['some'](_0x3a116e=>_0x3a116e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1d30ef;}['execute'](){const _0x4d065d=Yt(Array['from'](this['_suggestions']['values']()));for(const _0x42c57a of _0x4d065d){const _0x815763=_0x42c57a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x815763))return;}Zt(this['editor']['model'],this['_command'],_0x4d065d);}}class E extends Xt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1c80e0,_0x5cd19e,_0x2d84c2){super(_0x1c80e0),this['_command']=_0x5cd19e,this['_suggestions']=_0x2d84c2,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1a7be1=this['editor']['model']['document']['selection'],_0x2491b5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x28576a,_0x494c78){const _0x503fe4=Array['from'](_0x28576a['getRanges']()),_0x4b8e33=new Set();for(const _0x3bcfa5 of _0x494c78)if(_0x3bcfa5['isInContent']){for(const _0x21be85 of _0x503fe4)for(const _0x5b3e13 of _0x3bcfa5['getRanges']())(_0x21be85['isIntersecting'](_0x5b3e13)||_0x28576a['isCollapsed']&&!_0x3bcfa5['isMultiRange']&&_0x3bcfa5['next']&&_0x5b3e13['end']['isTouching'](_0x21be85['start']))&&_0x4b8e33['add'](_0x3bcfa5);}return _0x4b8e33;}(_0x1a7be1,_0x2491b5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3edd66=Yt(Array['from'](this['_selectedSuggestions']));for(const _0x5c3e0a of _0x3edd66){const _0x338b7c=_0x5c3e0a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x338b7c))return;}Zt(this['editor']['model'],this['_command'],_0x3edd66);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f6170(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x16f653,_0x5635e8){super(),this['id']=_0x5635e8['id'],this['type']=_0x5635e8['type'],this['subType']=_0x5635e8['subType']||null,this['author']=_0x5635e8['author'],this['creator']=_0x5635e8['creator']||_0x5635e8['author'],this['isExternal']=Boolean(_0x5635e8['attributes']&&_0x5635e8['attributes']['@external']),this['data']=null,this['_model']=_0x16f653,this['_onAccept']=_0x5635e8['onAccept'],this['_onDiscard']=_0x5635e8['onDiscard'],this['_onAttributesChange']=_0x5635e8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5635e8['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 _0x2c4915=this;for(;_0x2c4915['previous'];)_0x2c4915=_0x2c4915['previous'];return _0x2c4915;}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'](_0x7b7a68){this['_markerNames']['add'](_0x7b7a68);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x172bdd=>this['_model']['markers']['get'](_0x172bdd))['filter'](_0x3d2b49=>_0x3d2b49);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b9f02=>{for(const _0x11ebdd of this['getMarkers']())_0x2b9f02['removeMarker'](_0x11ebdd);}),this['_markerNames']['clear']();}['removeMarker'](_0x1092f2){this['_model']['change'](_0x455c36=>{_0x455c36['removeMarker'](_0x1092f2);}),this['_markerNames']['delete'](_0x1092f2);}['addRange'](_0x368800){const _0x45bff5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x45bff5),this['_model']['change'](_0x4aa307=>{_0x4aa307['addMarker'](_0x45bff5,{'range':_0x368800,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1d0953){for(const _0x4e8e0b of this['getRanges']())if(_0x4e8e0b['isIntersecting'](_0x1d0953))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x233ab8=>_0x233ab8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x17eddd,_0x5346e9)=>[..._0x17eddd,..._0x5346e9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x57536d=this['getRanges']();if(0x1!=_0x57536d['length'])return null;const _0x20238b=_0x57536d[0x0],_0x2c9373=_0x20238b['start']['nodeAfter'],_0x53489b=_0x20238b['end']['nodeBefore'];return _0x2c9373 instanceof _0x9ed483?_0x2c9373!=_0x53489b?null:_0x2c9373: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 _0x3a8cde=[];let _0x264959=this['head'];for(;_0x264959;)_0x3a8cde['push'](_0x264959),_0x264959=_0x264959['next'];return _0x3a8cde;}['setAttribute'](_0x3860b6,_0x218696){const _0x50b001=_0x26d773(this['attributes']);_0x33577f(_0x50b001,_0x3860b6,_0x218696),_0x24363f(_0x50b001,this['attributes'])||(this['attributes']=_0x50b001,this['_onAttributesChange'](_0x50b001));}['removeAttribute'](_0x571d77){const _0x34ca81=_0x26d773(this['attributes']);_0x596961(_0x34ca81,_0x571d77),_0x24363f(_0x34ca81,this['attributes'])||(this['attributes']=_0x34ca81,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 _0x2b8ec1()['substr'](0x1,0x5);}}function o(_0xf966f5,_0x1de2c9,_0x2a8dcc){const _0x11d72f=_0xf966f5['t'],t=_0xf966f5['t'];switch(_0x1de2c9){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',_0x2a8dcc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2a8dcc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2a8dcc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2a8dcc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2a8dcc);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',_0x2a8dcc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2a8dcc);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',_0x2a8dcc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2a8dcc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2a8dcc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2a8dcc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2a8dcc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2a8dcc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2a8dcc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2a8dcc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2a8dcc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2a8dcc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2a8dcc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2a8dcc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2a8dcc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2a8dcc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2a8dcc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2a8dcc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2a8dcc);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'},_0x2a8dcc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2a8dcc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2a8dcc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2a8dcc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2a8dcc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2a8dcc);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'},_0x2a8dcc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2a8dcc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2a8dcc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2a8dcc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2a8dcc);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'},_0x2a8dcc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2a8dcc);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'},_0x2a8dcc);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'},_0x2a8dcc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2a8dcc);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'},_0x2a8dcc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2a8dcc);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'},_0x2a8dcc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2a8dcc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2a8dcc);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'},_0x2a8dcc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2a8dcc);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 _0x11d72f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2a8dcc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x11d72f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2a8dcc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2a8dcc);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'},_0x2a8dcc);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'},_0x2a8dcc);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'},_0x2a8dcc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1de2c9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2e1b80,_0x1e5beb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2e1b80,this['_locale']=_0x1e5beb;}['getDescriptions'](_0x3f4054){const _0x226e24=[],_0x543131=new Set(),_0x11c4f2=new Set();for(let _0x410fbd=0x0;_0x410fbd<_0x3f4054['length'];_0x410fbd++){const _0x3f12fa=_0x3f4054[_0x410fbd];if(!_0x3f12fa['isInContent'])continue;const _0x14f5b6=this['_handleCustomCallbackDescription'](_0x3f12fa);if(_0x14f5b6){if(null!=_0x3f12fa['subType']){if(_0x543131['has'](_0x3f12fa['subType']))continue;_0x543131['add'](_0x3f12fa['subType']);}_0x226e24['push'](_0x14f5b6);}else{if('attribute'!=_0x3f12fa['type'])'insertion'!=_0x3f12fa['type']&&'deletion'!=_0x3f12fa['type']||this['_handleInsertRemoveSuggestionDescription'](_0x226e24,_0x3f12fa,_0x3f4054[_0x410fbd+0x1]);else{const _0x1ca276=_0x3f12fa['data']['key'];if(_0x11c4f2['has'](_0x1ca276))continue;_0x11c4f2['add'](_0x3f12fa['data']['key']),_0x1ca276==m?this['_handleRenameSuggestionDescription'](_0x226e24,_0x3f12fa):this['_handleAttributeSuggestionDescription'](_0x226e24,_0x3f12fa);}}}return this['_resolveDescriptionItems'](_0x226e24);}['registerDescriptionCallback'](_0xc9cd2e){this['_customCallbacks']['push'](_0xc9cd2e);}['registerElementLabel'](_0x4e8c12,_0xd24dfe,_0x61efe9=_0x2e5569['normal']){'function'==typeof _0x4e8c12?_0x4bffad(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4e8c12,'label':_0xd24dfe,'priority':_0x61efe9}):this['_itemLabels']['set'](_0x4e8c12,_0xd24dfe);}['registerAttributeLabel'](_0x11046d,_0x21c5ab){this['_attributeLabels']['set'](_0x11046d,_0x21c5ab);}['getItemLabel'](_0x2121ae,_0x3cb2e6=0x1){let _0x525ed8;for(const _0x18663f of this['_itemLabelsCallbacks'])if(_0x18663f['matchingCallback'](_0x2121ae)){_0x525ed8=_0x18663f['label'];break;}return _0x525ed8||(_0x525ed8=this['_itemLabels']['get'](_0x2121ae['name'])),_0x525ed8?_0x525ed8(_0x3cb2e6):0x1!==_0x3cb2e6?_0x3cb2e6+'\x20'+_0x2121ae['name']+'s':''+_0x2121ae['name'];}['_addDescriptionItems'](_0x23765c,_0x53ed50){const _0x50ab33=_0x53ed50['getFirstRange']()['getWalker'](),_0x4e9345='insertion'==_0x53ed50['type']?'add':'remove';for(const _0x3e3e60 of _0x50ab33){const _0x5e9e8a=_0x3e3e60['item'],_0x5c4438=_0x23765c[_0x23765c['length']-0x1];if(_0x5e9e8a['is']('$textProxy'))_0x5c4438&&_0x5c4438['type']['indexOf']('Container')>-0x1&&_0x23765c['pop'](),_0x5c4438&&'text'==_0x5c4438['type']?_0x5c4438[_0x4e9345]+=_0x5e9e8a['data']:_0x23765c['push']({'type':'text','add':'add'==_0x4e9345?_0x5e9e8a['data']:'','remove':'remove'==_0x4e9345?_0x5e9e8a['data']:''});else{if(this['_schema']['isObject'](_0x5e9e8a)){const _0x4b1542=_0x5e9e8a;if(_0x5c4438&&_0x5c4438['type']['indexOf']('Container')>-0x1&&_0x23765c['pop'](),'elementEnd'==_0x3e3e60['type'])continue;_0x5c4438&&_0x5c4438['type']==_0x4e9345+'Object'&&_0x5c4438['element']['name']==_0x4b1542['name']?_0x5c4438['quantity']++:_0x23765c['push']({'type':_0x4e9345+'Object','element':_0x4b1542,'quantity':0x1}),_0x50ab33['skip'](_0x46d4cb=>!('elementEnd'==_0x46d4cb['type']&&_0x46d4cb['item']==_0x5e9e8a));}else{if(this['_schema']['checkChild'](_0x5e9e8a,'$text')||_0x5e9e8a['is']('element','softBreak')){const _0x10e947=_0x5e9e8a;if('add'==_0x4e9345&&'elementStart'==_0x3e3e60['type']||'remove'==_0x4e9345&&'elementEnd'==_0x3e3e60['type'])continue;if(_0x5c4438&&-0x1==_0x5c4438['type']['indexOf']('Container')){'text'==_0x5c4438['type']&&(_0x5c4438[_0x4e9345]+='\x0a');continue;}let _0x213830;if(_0x213830='add'==_0x4e9345?_0x10e947['nextSibling']&&!this['_schema']['isObject'](_0x10e947['nextSibling'])?_0x10e947['nextSibling']:null:_0x10e947['previousSibling']&&!this['_schema']['isObject'](_0x10e947['previousSibling'])?_0x10e947['previousSibling']:null,_0x10e947['isEmpty']||_0x213830&&_0x213830['isEmpty']){const _0x71f88b=_0x213830&&_0x213830['isEmpty']?_0x213830:_0x10e947;_0x5c4438&&_0x5c4438['type']==_0x4e9345+'EmptyContainer'&&_0x5c4438['element']['name']==_0x71f88b['name']?_0x5c4438['quantity']++:_0x23765c['push']({'type':_0x4e9345+'EmptyContainer','element':_0x71f88b,'quantity':0x1});}else _0x23765c['push']({'type':_0x4e9345+'Container','element':_0x10e947});}}}}}['_resolveDescriptionItems'](_0x52527c){const _0x232436=this['_locale'],_0x2e5ecc=[],_0x233f24=[],_0x3e9481=[];for(const _0x210307 of _0x52527c)switch(_0x210307['type']){case'text':if(_0x210307['add']=_0x210307['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x210307['remove']=_0x210307['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x210307['add']&&''!=_0x210307['remove']){_0x2e5ecc['push']({'type':'replace','content':o(_0x232436,'REPLACE_TEXT',['\x22'+_0x210307['remove']+'\x22','\x22'+_0x210307['add']+'\x22'])});continue;}if(null!=_0x210307['add']['match'](/^ +$/)){_0x2e5ecc['push']({'type':'insertion','content':o(_0x232436,'*Insert:*\x20%0',o(_0x232436,'ELEMENT_SPACE',_0x210307['add']['length']))});continue;}if(null!=_0x210307['remove']['match'](/^ +$/)){_0x2e5ecc['push']({'type':'deletion','content':o(_0x232436,'*Remove:*\x20%0',o(_0x232436,'ELEMENT_SPACE',_0x210307['remove']['length']))});continue;}if(''!=_0x210307['add']){_0x2e5ecc['push']({'type':'insertion','content':o(_0x232436,'*Insert:*\x20%0','\x22'+_0x210307['add']+'\x22')});continue;}_0x2e5ecc['push']({'type':'deletion','content':o(_0x232436,'*Remove:*\x20%0','\x22'+_0x210307['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2e5ecc['push']({'type':'insertion','content':o(_0x232436,'*Insert:*\x20%0',this['getItemLabel'](_0x210307['element'],_0x210307['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2e5ecc['push']({'type':'deletion','content':o(_0x232436,'*Remove:*\x20%0',this['getItemLabel'](_0x210307['element'],_0x210307['quantity']))});continue;case'addContainer':_0x2e5ecc['push']({'type':'insertion','content':o(_0x232436,'*Split:*\x20%0',this['getItemLabel'](_0x210307['element'],_0x210307['quantity']))});continue;case'removeContainer':_0x2e5ecc['push']({'type':'deletion','content':o(_0x232436,'*Merge:*\x20%0',this['getItemLabel'](_0x210307['element'],_0x210307['quantity']))});continue;case'addFormat':_0x233f24['push'](_0x210307['key']);continue;case'removeFormat':_0x3e9481['push'](_0x210307['key']);continue;default:_0x2e5ecc['push'](_0x210307);}if(_0x233f24['length']){const _0x2436d5=_0x233f24['map'](_0xe576c8=>this['_attributeLabels']['has'](_0xe576c8)?this['_attributeLabels']['get'](_0xe576c8):_0xe576c8)['join'](',\x20');_0x2e5ecc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2436d5)});}if(_0x3e9481['length']){const _0x2c6bdb=_0x3e9481['map'](_0x385cb8=>this['_attributeLabels']['has'](_0x385cb8)?this['_attributeLabels']['get'](_0x385cb8):_0x385cb8)['join'](',\x20');_0x2e5ecc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2c6bdb)});}return _0x2e5ecc;}['_handleCustomCallbackDescription'](_0x9e646f){for(const _0x3e00e8 of this['_customCallbacks']){const _0x54af09=_0x3e00e8(_0x9e646f);if(_0x54af09&&'type'in _0x54af09)return _0x54af09;}}['_handleAttributeSuggestionDescription'](_0x50c38d,_0x37f244){const _0x1d5ca2=_0x37f244['data'],_0x6e4b8a=void 0x0===_0x1d5ca2['newValue']?'removeFormat':'addFormat';_0x50c38d['push']({'type':_0x6e4b8a,'key':_0x1d5ca2['key']});}['_handleRenameSuggestionDescription'](_0x3b7b4b,_0x11831c){_0x3b7b4b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x11831c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3bfac7,_0x5275ca,_0xfef48a){if(this['_addDescriptionItems'](_0x3bfac7,_0x5275ca),_0xfef48a&&_0xfef48a['getFirstRange']()&&!_0x5275ca['getFirstRange']()['end']['isEqual'](_0xfef48a['getFirstRange']()['start'])){const _0x3fef70=_0x3bfac7[_0x3bfac7['length']-0x1],_0x1b9640='insertion'==_0x5275ca['type']?'add':'remove';_0x3fef70&&'text'==_0x3fef70['type']&&(_0x3fef70[_0x1b9640]+='\x0a');}}}class U extends _0x330415{['afterInit'](){const _0x163116=this['editor'],_0x547b4c=_0x163116['plugins']['get']('TrackChangesEditing');_0x163116['commands']['get']('showAIAssistant')&&_0x547b4c['enableCommand']('showAIAssistant');}}class V extends _0x330415{['afterInit'](){const _0xd44883=this['editor'],_0x3869ad=_0xd44883['locale'];if(!_0xd44883['plugins']['has']('AlignmentEditing'))return;const _0x34d3c4=_0xd44883['plugins']['get']('TrackChangesEditing');_0x34d3c4['enableDefaultAttributesIntegration']('alignment'),_0x34d3c4['registerBlockAttribute']('alignment'),_0x34d3c4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3869ad,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22ea57=this['editor'],_0x4e62ba=_0x22ea57['locale'];_0x22ea57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35eb0f=>{if('formatBlock'!=_0x35eb0f['type'])return;const {data:_0x9359e7}=_0x35eb0f;if(_0x9359e7&&'alignment'==_0x9359e7['commandName']){const _0x23b08d=_0x9359e7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e62ba,'*Format:*\x20%0',function(_0xd26492){switch(_0xd26492){case'left':return o(_0x4e62ba,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e62ba,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e62ba,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e62ba,'FORMAT_JUSTIFY_TEXT');}}(_0x23b08d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x330415{['afterInit'](){const _0x4a1089=this['editor'],_0x53621f=_0x4a1089['plugins']['get']('TrackChangesEditing'),_0x5e860d=_0x4a1089['locale'];for(const _0x4ede17 of ti){if(!_0x4a1089['plugins']['has'](_0x4ede17))continue;const _0xc27a67=_0x4ede17['slice'](0x0,-0x7)['toLowerCase'](),_0x53da77='FORMAT_'+_0xc27a67['toUpperCase']();_0x53621f['enableDefaultAttributesIntegration'](_0xc27a67),_0x53621f['registerInlineAttribute'](_0xc27a67),_0x53621f['descriptionFactory']['registerAttributeLabel'](_0xc27a67,o(_0x5e860d,_0x53da77));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d5dec=this['editor'],_0x1fa22b=_0x1d5dec['locale'],_0x18de39=_0x1d5dec['plugins']['get']('TrackChangesEditing');function _0xc41f62(_0x19a199,_0x241eb3){_0x18de39['descriptionFactory']['registerDescriptionCallback'](_0x36896f=>{if('formatInline'!=_0x36896f['type'])return;const {data:_0x40206c}=_0x36896f;return _0x40206c&&_0x40206c['commandName']===_0x19a199?_0x40206c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fa22b,'*Format:*\x20%0',_0x241eb3)}:{'type':'format','content':o(_0x1fa22b,'*Remove\x20format:*\x20%0',_0x241eb3)}:void 0x0;});}_0xc41f62('bold',o(_0x1fa22b,'FORMAT_BOLD')),_0xc41f62('italic',o(_0x1fa22b,'FORMAT_ITALIC')),_0xc41f62('underline',o(_0x1fa22b,'FORMAT_UNDERLINE')),_0xc41f62('code',o(_0x1fa22b,'FORMAT_CODE')),_0xc41f62('strikethrough',o(_0x1fa22b,'FORMAT_STRIKETHROUGH')),_0xc41f62('subscript',o(_0x1fa22b,'FORMAT_SUBSCRIPT')),_0xc41f62('superscript',o(_0x1fa22b,'FORMAT_SUPERSCRIPT'));}}class F extends _0x330415{['afterInit'](){const _0x513c9c=this['editor'],_0x1b6044=_0x513c9c['locale'];if(!_0x513c9c['plugins']['has']('BlockQuoteEditing'))return;const _0x41a9a8=_0x513c9c['plugins']['get']('TrackChangesEditing'),_0x452845=this['editor']['commands']['get']('blockQuote');_0x41a9a8['enableCommand']('blockQuote',(_0x13c70a,_0x240366={})=>{const _0x5a45df=this['editor']['model']['document']['selection'],_0x1a9412=_0x240366&&void 0x0!==_0x240366['forceValue']?_0x240366['forceValue']:!_0x452845['value'];let _0xd6dbb5=[];if(_0x1a9412){const _0x54decf=Array['from'](_0x5a45df['getSelectedBlocks']())['filter'](_0x21e575=>oo(_0x21e575)||function(_0xe9f952,_0x5a59f3){const _0x2ac3c0=_0x5a59f3['checkChild'](_0xe9f952['parent'],'blockQuote'),_0x197428=_0x5a59f3['checkChild'](['$root','blockQuote'],_0xe9f952);return _0x2ac3c0&&_0x197428;}(_0x21e575,this['editor']['model']['schema']));_0xd6dbb5=to(_0x54decf,_0x513c9c['model']);}else{const _0x5c0a78=Array['from'](_0x5a45df['getSelectedBlocks']())['filter'](_0x5d30fe=>oo(_0x5d30fe));_0xd6dbb5=to(_0x5c0a78,_0x513c9c['model']);}_0x513c9c['model']['change'](()=>{for(const _0x24fe04 of _0xd6dbb5)_0x41a9a8['markBlockFormat'](_0x24fe04,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a9412}]});});}),_0x41a9a8['descriptionFactory']['registerDescriptionCallback'](_0x4669cc=>{const {data:_0x46d280}=_0x4669cc;if(_0x46d280&&'blockQuote'==_0x46d280['commandName']){const _0x38c13d=o(_0x1b6044,'ELEMENT_BLOCK_QUOTE');return _0x46d280['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b6044,'*Set\x20format:*\x20%0',_0x38c13d)}:{'type':'format','content':o(_0x1b6044,'*Remove\x20format:*\x20%0',_0x38c13d)};}});}}function oo(_0x5cae12){return'blockQuote'==_0x5cae12['parent']['name'];}class L extends _0x330415{['afterInit'](){const _0x1e02b9=this['editor'],_0x23ac84=_0x1e02b9['locale'],_0x457408=_0x1e02b9['plugins']['get']('TrackChangesEditing');_0x1e02b9['plugins']['has']('BookmarkEditing')&&(_0x457408['enableCommand']('insertBookmark'),_0x457408['enableDefaultAttributesIntegration']('updateBookmark'),_0x457408['registerBlockAttribute']('bookmarkId'),_0x457408['descriptionFactory']['registerDescriptionCallback'](_0xfeedcf=>{if('insertion'!=_0xfeedcf['type']&&'deletion'!=_0xfeedcf['type']&&'attribute'!=_0xfeedcf['type'])return;const _0x14cc4a=_0xfeedcf['getContainedElement']();if(null==_0x14cc4a)return;if(!_0x14cc4a['is']('element','bookmark'))return;const _0x35564b=_0x14cc4a['getAttribute']('bookmarkId');if('insertion'==_0xfeedcf['type'])return{'type':'insertion','content':o(_0x23ac84,'*Insert:*\x20%0','\x22'+_0x35564b+'\x22\x20'+o(_0x23ac84,'ELEMENT_BOOKMARK'))};if('deletion'==_0xfeedcf['type'])return{'type':'deletion','content':o(_0x23ac84,'*Remove:*\x20%0','\x22'+_0x35564b+'\x22\x20'+o(_0x23ac84,'ELEMENT_BOOKMARK'))};const {data:_0x10caea}=_0xfeedcf;if(!_0x10caea||'bookmarkId'!=_0x10caea['key'])return;return{'type':'format','content':o(_0x23ac84,'*Set\x20bookmark:*\x20%0','\x22'+_0x10caea['newValue']+'\x22')};}));}}class J extends _0x330415{['afterInit'](){const _0x1b5ce7=this['editor'];_0x1b5ce7['plugins']['has']('CaseChange')&&(_0x1b5ce7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1b5ce7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1b5ce7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x330415{['afterInit'](){const _0x1779f4=this['editor'];_0x1779f4['commands']['get']('ckbox')&&_0x1779f4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x330415{['afterInit'](){const _0x5eece5=this['editor'];if(!_0x5eece5['plugins']['has']('CodeBlock'))return;const _0x57363c=_0x5eece5['plugins']['get']('TrackChangesEditing'),_0x18e02e=_0x5eece5['locale'],_0x1cc068=_0x5eece5['config']['get']('codeBlock')['languages'],_0x42af94=_0x5eece5['commands']['get']('codeBlock');_0x57363c['enableCommand']('indentCodeBlock'),_0x57363c['enableCommand']('outdentCodeBlock'),_0x57363c['enableCommand']('codeBlock',(_0x406649,_0x1c97bb={})=>{const _0x5a3102=_0x5eece5['model'],_0x3eec24=_0x5eece5['model']['document']['selection'],_0x88ba4e=_0x1c97bb&&void 0x0!==_0x1c97bb['forceValue']?_0x1c97bb['forceValue']:!_0x42af94['value'];let _0x54165a;_0x1c97bb['language']||(_0x1c97bb['language']=_0x1cc068[0x0]['language']),_0x54165a=_0x88ba4e?Array['from'](_0x3eec24['getSelectedBlocks']())['filter'](_0x20c5b1=>eo(_0x20c5b1)||function(_0x5eca4a,_0x3354d7){if(_0x5eca4a['is']('rootElement')||_0x3354d7['isLimit'](_0x5eca4a))return!0x1;return _0x3354d7['checkChild'](_0x5eca4a['parent'],'codeBlock');}(_0x20c5b1,_0x5a3102['schema'])):Array['from'](_0x3eec24['getSelectedBlocks']())['filter'](_0x3d9912=>eo(_0x3d9912));const _0x5599a3=to(_0x54165a,_0x5a3102);_0x5a3102['change'](()=>{for(const _0x3687ff of _0x5599a3)_0x57363c['markBlockFormat'](_0x3687ff,{'commandName':'codeBlock','commandParams':[{..._0x1c97bb,'forceValue':_0x88ba4e}],'formatGroupId':'blockName'});});}),(_0x57363c['descriptionFactory']['registerElementLabel']('codeBlock',_0x2a842f=>o(_0x18e02e,'ELEMENT_CODE_BLOCK',_0x2a842f)),_0x57363c['descriptionFactory']['registerDescriptionCallback'](_0x62901a=>{if('formatBlock'!=_0x62901a['type'])return;const _0x46ad48=_0x18e02e['t'],{data:_0x21279b}=_0x62901a;if(!_0x21279b||'codeBlock'!=_0x21279b['commandName'])return;const _0x447c4c=_0x21279b['commandParams'][0x0]['language'],_0x47e1c9=_0x46ad48(_0x1cc068['find'](_0x20148f=>_0x20148f['language']===_0x447c4c)['label'])['toLowerCase']();return _0x21279b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18e02e,'*Set\x20format:*\x20%0',o(_0x18e02e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x47e1c9+')')}:{'type':'format','content':o(_0x18e02e,'*Remove\x20format:*\x20%0',o(_0x18e02e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5e4be7){return'codeBlock'==_0x5e4be7['name'];}class z extends _0x330415{['afterInit'](){const _0xc52b8b=this['editor'];if(!_0xc52b8b['plugins']['has']('CommentsEditing'))return;_0xc52b8b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5d3e44,_0x2eb502,_0x1f1afc){const _0x3936ca=[];for(const _0x4b7ecc of _0x2eb502['getItems']())_0x4b7ecc['hasAttribute'](_0x5d3e44)&&_0x3936ca['push'](_0x1f1afc['createRangeOn'](_0x4b7ecc));return _0x3936ca;}function De(_0x3609a8,_0x298a03,{showActiveMarker:_0x13c22a=!0x0}={}){const _0x205fc9=_0x3609a8['plugins']['get']('TrackChangesEditing');return(_0x5d4e7b,_0x5d82f1,_0x2a3e1d)=>{if(!_0x2a3e1d['consumable']['test'](_0x5d82f1['markerRange'],_0x5d4e7b['name']))return;const _0x3e1fb6=_0x5d82f1['markerRange']['getWalker'](),_0x51a9e4=_0x5d82f1['markerRange']['start'],_0x444ce9=_0x3609a8['model']['schema'];let _0x131a10=null,_0x20857f=null,_0x4cce16=!0x1,_0x19563f=!0x1;for(const _0x3486d8 of _0x3e1fb6){const _0x36293a=_0x3486d8['item'];_0x4cce16=_0x4cce16||_0x444ce9['isContent'](_0x36293a);const _0x1f9e8e=_0x2a3e1d['mapper']['toViewElement'](_0x36293a);if(_0x1f9e8e&&_0x1f9e8e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3486d8['type']&&(_0x444ce9['isBlock'](_0x36293a)&&!_0x444ce9['isLimit'](_0x36293a)&&(_0x36293a['nextSibling']||_0x51a9e4['isAtEnd']?_0x131a10&&_0x131a10['parent']==_0x36293a||(_0x131a10=_0x36293a,_0x236bdf(_0x3486d8['previousPosition']),_0x19563f=!0x0):_0x20857f=_0x20857f||_0x3486d8['previousPosition']));}function _0x236bdf(_0x3a0b2f){const {authorId:_0x4194d6}=_0x205fc9['_splitMarkerName'](_0x5d82f1['markerName']),_0x1da4e8=_0x2a3e1d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x298a03,'data-author-id':_0x4194d6}),_0x5e43eb=_0x2a3e1d['mapper']['toViewPosition'](_0x3a0b2f);_0x13c22a&&_0x205fc9['activeMarkers']['includes'](_0x5d82f1['markerName'])&&_0x2a3e1d['writer']['addClass']('ck-suggestion-marker--active',_0x1da4e8),_0x2a3e1d['writer']['insert'](_0x5e43eb,_0x1da4e8),_0x2a3e1d['mapper']['bindElementToMarker'](_0x1da4e8,_0x5d82f1['markerName']);}_0x4cce16||_0x19563f||!_0x20857f||_0x236bdf(_0x20857f);};}class K extends _0x330415{static get['requires'](){return[_0x48cd2d];}['init'](){const _0x1cc6be=this['editor'],_0x5cc285=_0x1cc6be['plugins']['get']('TrackChangesEditing');_0x5cc285['enableCommand']('delete');const _0x318201=_0x1cc6be['commands']['get']('deleteForward');_0x5cc285['enableCommand']('deleteForward',(_0x2971a0,_0xa88dd3={})=>{const _0x933cd4=_0x1cc6be['model']['createSelection'](_0x1cc6be['model']['document']['selection']);_0x933cd4['isCollapsed']&&_0x1cc6be['model']['modifySelection'](_0x933cd4,{'direction':'forward','unit':_0xa88dd3['unit']});const _0x7a4582=_0x933cd4['getFirstRange'](),_0x5c0f67=_0x41d70f['fromRange'](_0x7a4582);let _0x39ee0a;_0x2971a0(_0xa88dd3),_0x39ee0a='$graveyard'==_0x5c0f67['root']['rootName']?_0x1cc6be['model']['createRange'](_0x7a4582['start']):_0x1cc6be['model']['createRange'](_0x5c0f67['start'],_0x5c0f67['end']),_0x5c0f67['detach'](),_0x1cc6be['model']['enqueueChange'](_0x318201['buffer']['batch'],_0x70cd3=>{_0x318201['buffer']['lock'](),_0x70cd3['setSelection'](_0x70cd3['createRange'](_0x39ee0a['end'])),_0x318201['buffer']['unlock']();});}),_0x1cc6be['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1cc6be,'merge'),{'priority':'high'}),_0x1cc6be['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3b656d,_0x53466a,_0x4f010d)=>{_0x4f010d['options']['showSuggestionHighlights']&&De(_0x1cc6be,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3b656d,_0x53466a,_0x4f010d);},{'priority':'high'}),_0x1cc6be['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x24e58e,_0x5b7913,_0x2a9a72)=>{const _0x2f09f4=_0x2a9a72['mapper']['markerNameToElements'](_0x5b7913['markerName']);if(_0x2f09f4){for(const _0x1d4b6f of _0x2f09f4)_0x1d4b6f['is']('uiElement')&&(_0x2a9a72['mapper']['unbindElementFromMarkerName'](_0x1d4b6f,_0x5b7913['markerName']),_0x2a9a72['writer']['remove'](_0x1d4b6f));}},{'priority':'high'});}}class W extends _0x330415{['afterInit'](){const _0x2b258b=this['editor'];if(!_0x2b258b['plugins']['has']('ListEditing'))return;const _0x58fc5c=_0x2b258b['locale'],_0x2cc49d=_0x2b258b['plugins']['get']('TrackChangesEditing'),_0x334004=_0x2b258b['plugins']['has']('TodoListEditing'),_0x47dc4a=!!_0x2b258b['config']['get']('list.multiBlock');function _0x47b1eb(_0x44978f){return{'type':'format','content':''+o(_0x58fc5c,'*Set\x20format:*\x20%0',_0x44978f)};}function _0x1020e5(_0x52ff70){return{'type':'format','content':''+o(_0x58fc5c,'*Remove\x20format:*\x20%0',_0x52ff70)};}_0x2cc49d['enableDefaultAttributesIntegration']('numberedList'),_0x2cc49d['enableDefaultAttributesIntegration']('bulletedList'),_0x2cc49d['enableDefaultAttributesIntegration']('customNumberedList'),_0x2cc49d['enableDefaultAttributesIntegration']('customBulletedList'),_0x2cc49d['enableDefaultAttributesIntegration']('indentList'),_0x2cc49d['enableDefaultAttributesIntegration']('outdentList'),_0x2cc49d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2cc49d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2cc49d['registerBlockAttribute']('listItemId'),_0x2cc49d['registerBlockAttribute']('listType'),_0x2cc49d['registerBlockAttribute']('listIndent'),_0x47dc4a&&(_0x2cc49d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2cc49d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x334004&&(_0x2cc49d['enableDefaultAttributesIntegration']('todoList'),_0x2cc49d['enableDefaultAttributesIntegration']('checkTodoList'),_0x2cc49d['registerBlockAttribute']('todoListChecked'),_0x2cc49d['descriptionFactory']['registerDescriptionCallback'](_0x1b329b=>{const {data:_0x3247ea}=_0x1b329b;if(_0x3247ea&&'todoListChecked'==_0x3247ea['key'])return{'type':'format','content':_0x3247ea['newValue']?o(_0x58fc5c,'*Check\x20item*'):o(_0x58fc5c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xc8c14f=>{if(_0xc8c14f['batch']['isUndo'])return!0x1;let _0x378804=!0x1;const _0x349f12=_0x2cc49d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fb8c9=>'todoListChecked'===_0x2cc49d['_getAttributeKey'](_0x1fb8c9));for(const _0x16588c of _0x349f12){'todo'!=_0x16588c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2cc49d['_findSuggestions'](_0x16588c['getFirstRange'](),'attribute')['find'](_0x248241=>'listType'===_0x2cc49d['_getAttributeKey'](_0x248241['suggestion']))||(_0xc8c14f['removeMarker'](_0x16588c['getFirstMarker']()),_0x378804=!0x0));}return _0x378804;})),_0x2cc49d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x58fc5c,'FORMAT_INDENT'));const _0x40f189={'type':'format','content':''};_0x2cc49d['descriptionFactory']['registerDescriptionCallback'](_0x15161a=>{const {data:_0x3b6760}=_0x15161a;if(!_0x3b6760||'listType'!=_0x3b6760['key'])return;let _0x30bf29=_0x15161a['head'];for(;_0x30bf29;){if(_0x30bf29['data']&&(('listStyle'==_0x30bf29['data']['key']||'listMarkerStyle'==_0x30bf29['data']['key'])&&(_0x30bf29['data']['newValue']&&'default'!=_0x30bf29['data']['newValue']||'default'!=_0x30bf29['data']['oldValue']&&!_0x3b6760['newValue'])||!_0x47dc4a&&_0x30bf29['data']['key']==m))return _0x40f189;_0x30bf29=_0x30bf29['next'];}if(null==_0x3b6760['newValue'])switch(_0x3b6760['oldValue']){case'bulleted':return _0x1020e5(o(_0x58fc5c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1020e5(o(_0x58fc5c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1020e5(o(_0x58fc5c,'ELEMENT_TODO_LIST'));}switch(_0x3b6760['newValue']){case'bulleted':return _0x47b1eb(o(_0x58fc5c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47b1eb(o(_0x58fc5c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47b1eb(o(_0x58fc5c,'ELEMENT_TODO_LIST'));}}),_0x2cc49d['descriptionFactory']['registerDescriptionCallback'](_0x52eaaf=>{const {data:_0x2968e4}=_0x52eaaf;if(_0x2968e4&&'listIndent'==_0x2968e4['key'])return null==_0x2968e4['newValue']||null==_0x2968e4['oldValue']&&0x0==_0x2968e4['newValue']?_0x40f189:void 0x0;}),_0x2cc49d['descriptionFactory']['registerDescriptionCallback'](_0x2d46e9=>{if('attribute'!=_0x2d46e9['type'])return;const {data:_0x692c65}=_0x2d46e9;if(!_0x692c65||'listItemId'!=_0x692c65['key'])return;const _0x34cc32=Te(_0x2d46e9);return'newValue'==_0x34cc32?{'type':'format','content':o(_0x58fc5c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x34cc32?{'type':'format','content':o(_0x58fc5c,'*Split:*\x20list\x20item')}:_0x40f189;}),_0x2b258b['model']['document']['registerPostFixer'](_0x824924=>this['listItemIdFixer'](_0x824924)),_0x2b258b['model']['document']['registerPostFixer'](_0x59e3f7=>this['noTrackChangesFixer'](_0x59e3f7)),_0x2b258b['model']['document']['on']('change:data',(_0x9d30a8,_0x29944c)=>{if(_0x29944c['isUndo']||!_0x29944c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x40779a){if(_0x40779a['batch']['isUndo']||!_0x40779a['batch']['isLocal'])return!0x1;let _0x525397=!0x1;const _0x1a5bb1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d3a0f=>_0x5d3a0f['data']&&'listItemId'==_0x5d3a0f['data']['key'])['filter'](_0x43bf90=>_0x43bf90['data']['newValue']&&_0x43bf90['data']['oldValue']);for(const _0x42d935 of _0x1a5bb1)Te(_0x42d935)||(_0x40779a['removeMarker'](_0x42d935['getFirstMarker']()),_0x525397=!0x0);return _0x525397;}['noTrackChangesFixer'](_0x4e7737){if(_0x4e7737['batch']['isUndo']||!_0x4e7737['batch']['isLocal'])return!0x1;const _0x153101=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x153101['trackChangesCommand']['value'])return!0x1;let _0x204a77=!0x1;const _0x5219cf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x562b1c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38caeb=>'attribute'==_0x38caeb['type'])['filter'](_0x5f5293=>_0x5219cf['includes'](_0x5f5293['attributeKey']));if(0x0==_0x562b1c['length'])return _0x204a77;for(const _0x30e622 of _0x562b1c){const _0x153251=_0x153101['_findSuggestions'](_0x30e622['range'],'attribute')['filter'](_0x24325e=>!_0x24325e['meta']['isNextTo'])['map'](_0xd8d095=>_0xd8d095['suggestion'])['filter'](_0x31bbc0=>{const _0x305c09=_0x153101['_getAttributeKey'](_0x31bbc0);return _0x5219cf['includes'](_0x305c09);});if(_0x153251['length']){for(const _0x197fcb of _0x153251)_0x4e7737['removeMarker'](_0x197fcb['getFirstMarker']());_0x204a77=!0x0;}}return _0x204a77;}['assureChains'](){const _0x23b6fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x589baa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x34a755;const _0x3110c0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38d62a=>{if(_0x38d62a['data']['oldRange']||!_0x38d62a['data']['newRange'])return null;if(!_0x38d62a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4a90b8}=_0x23b6fd['_splitMarkerName'](_0x38d62a['name']);if(!_0x23b6fd['hasSuggestion'](_0x4a90b8))return null;const _0xa57213=_0x23b6fd['getSuggestion'](_0x4a90b8);return _0x589baa['includes'](_0xa57213['data']['key']);})['map'](_0x19b0d0=>{const {id:_0x4d575b}=_0x23b6fd['_splitMarkerName'](_0x19b0d0['name']),_0x228925=_0x23b6fd['getSuggestion'](_0x4d575b);return _0x34a755=_0x228925['attributes']['groupId'],_0x228925['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3110c0['size'])return;const _0x2fef70=_0x23b6fd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x544046=>'attribute'==_0x544046['type']&&_0x544046['data']&&_0x589baa['includes'](_0x544046['data']['key'])&&_0x544046['attributes']['groupId']!=_0x34a755)['map'](_0x113d5d=>({'listItem':_0x113d5d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x113d5d['attributes']['groupId']})),_0x35cad8=new Set();for(const {groupId:_0x32e928,listItem:_0x3e8767}of _0x2fef70)_0x3110c0['has'](_0x3e8767)&&_0x35cad8['add'](_0x32e928);for(const _0x1cb88b of _0x23b6fd['getSuggestions']())_0x35cad8['has'](_0x1cb88b['attributes']['groupId'])&&_0x1cb88b['setAttribute']('groupId',_0x34a755);}['_supportLegacySuggestions'](){const _0x4ea7bc=this['editor'],_0x2d27cc=_0x4ea7bc['locale'],_0x5c3651=_0x4ea7bc['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5c3651['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x81cff5,_0x451dcd){const _0x2ad089=[];for(let _0x8448a8 of _0x81cff5)_0x8448a8['start']['nodeAfter']===_0x8448a8['end']['parent']&&(_0x8448a8=_0x4ea7bc['model']['createRange'](_0x4ea7bc['model']['createPositionAt'](_0x8448a8['start']['nodeAfter'],0x0))),_0x2ad089['push'](_0x8448a8);_0x4ea7bc['model']['change'](_0x561afd=>{const _0xa5c70a=_0x4ea7bc['model']['document']['selection'],_0x21004a=Array['from'](_0xa5c70a['getRanges']())['map'](_0x307539=>_0x41d70f['fromRange'](_0x307539));_0x561afd['setSelection'](_0x2ad089),_0x4ea7bc['commands']['get'](_0x451dcd['commandName'])['refresh'](),_0x451dcd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ea7bc['execute'](_0x451dcd['commandName'],..._0x451dcd['commandParams']),_0x561afd['setSelection'](_0x21004a);for(const _0x4df112 of _0x21004a)_0x4df112['detach']();});}),_0x5c3651['descriptionFactory']['registerElementLabel'](function(_0x217983){const _0x2b3bec=!_0x4ea7bc['model']['schema']['isObject'](_0x217983),_0x19b04d=_0x217983['previousSibling'],_0x1ad22b=_0x217983['nextSibling'],_0x5e8ca4=_0x217983['getAttribute']('listItemId'),_0x3a31f0=!_0x19b04d||_0x19b04d['getAttribute']('listItemId')!==_0x5e8ca4,_0x12f507=!_0x1ad22b||_0x1ad22b['getAttribute']('listItemId')!==_0x5e8ca4;return _0x2b3bec&&Boolean(_0x5e8ca4)&&_0x3a31f0&&_0x12f507;},_0x10e32d=>o(_0x2d27cc,'ELEMENT_LIST_ITEM',_0x10e32d));}['_registerLegacyDescription'](){const _0x5650bf=this['editor'],_0x303ffe=_0x5650bf['locale'];function _0x54d913(_0x995bc6){const _0x31d0bf=_0x5650bf['commands']['get']('bulletedList')['value'],_0x5f35d3=_0x5650bf['commands']['get']('numberedList')['value'];return'numberedList'===_0x995bc6?_0x31d0bf:_0x5f35d3;}_0x5650bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x145181){if('formatBlock'!=_0x145181['type'])return;const {data:_0x54fbec}=_0x145181;if(!_0x54fbec)return;let _0x59428d,_0x217020,_0x207847,_0x199871;switch(_0x54fbec['commandName']){case'bulletedList':_0x207847=_0x54fbec['commandParams'][0x0]['forceValue'],_0x199871=_0x54d913(_0x54fbec['commandName']),_0x59428d=_0x207847?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x199871&&_0x5650bf['config']['get']('list.multiBlock')||(_0x59428d='*Change\x20to:*\x20%0'),_0x217020={'type':'format','content':o(_0x303ffe,_0x59428d,o(_0x303ffe,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x207847=_0x54fbec['commandParams'][0x0]['forceValue'],_0x199871=_0x54d913(_0x54fbec['commandName']),_0x59428d=_0x207847?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x199871&&_0x5650bf['config']['get']('list.multiBlock')||(_0x59428d='*Change\x20to:*\x20%0'),_0x217020={'type':'format','content':o(_0x303ffe,_0x59428d,o(_0x303ffe,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x59428d='*Indent:*\x20%0',_0x217020={'type':'format','content':o(_0x303ffe,_0x59428d,o(_0x303ffe,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x59428d=function(_0x2b874c){const _0x3b3a56=_0x2b874c['getFirstRange']();let _0x550eb4=_0x3b3a56['start']['nodeAfter'];for(;_0x550eb4&&_0x3b3a56['containsItem'](_0x550eb4);){if(_0x550eb4['getAttribute']('listIndent')>0x0)return!0x1;_0x550eb4=_0x550eb4['nextSibling'];}return!0x0;}(_0x145181)?o(_0x303ffe,'*Format:*\x20remove\x20from\x20%0',o(_0x303ffe,function(_0x222c1d){return'ELEMENT_'+_0x222c1d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x145181))):o(_0x303ffe,'*Outdent:*\x20%0',o(_0x303ffe,'ELEMENT_LIST_ITEM')),_0x217020={'type':'format','content':_0x59428d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x54fbec['multipleBlocks']&&(_0x59428d='*Merge:*\x20%0',_0x217020={'type':'deletion','content':o(_0x303ffe,_0x59428d,o(_0x303ffe,'ELEMENT_LIST_ITEM'))});}return _0x217020;});}}function Te(_0x3d71ca){let _0x4d1f98=_0x3d71ca['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4d1f98;){const _0x421033=_0x4d1f98['getAttribute']('listItemId');if(!_0x421033)return!0x1;if(_0x421033==_0x3d71ca['data']['newValue'])return'newValue';if(_0x421033==_0x3d71ca['data']['oldValue'])return'oldValue';_0x4d1f98=_0x4d1f98['previousSibling'];}return!0x1;}class Se extends _0x330415{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3801bc=this['editor']['config']['get']('list.properties'),_0x482e15=this['editor']['plugins']['get']('TrackChangesEditing');_0x3801bc['styles']&&(_0x482e15['enableDefaultAttributesIntegration']('listStyle'),_0x482e15['registerBlockAttribute']('listStyle')),_0x3801bc['reversed']&&(_0x482e15['enableDefaultAttributesIntegration']('listReversed'),_0x482e15['registerBlockAttribute']('listReversed')),_0x3801bc['startIndex']&&(_0x482e15['enableDefaultAttributesIntegration']('listStart'),_0x482e15['registerBlockAttribute']('listStart'));const _0x166d94={'type':'format','content':''};_0x482e15['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1468c5=this['editor']['locale'];_0x482e15['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1468c5,'FORMAT_LIST_REVERSED')),_0x482e15['descriptionFactory']['registerDescriptionCallback'](_0xa168c9=>{const {data:_0xbb4b5a}=_0xa168c9;if(_0xbb4b5a&&'listReversed'==_0xbb4b5a['key'])return null==_0xbb4b5a['newValue']||0x0==_0xbb4b5a['newValue']&&null==_0xbb4b5a['oldValue']?_0x166d94:void 0x0;}),_0x482e15['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1468c5,'FORMAT_LIST_START')),_0x482e15['descriptionFactory']['registerDescriptionCallback'](_0x5a2d34=>{const {data:_0x4b0c4c}=_0x5a2d34;if(_0x4b0c4c&&'listStart'==_0x4b0c4c['key'])return null==_0x4b0c4c['newValue']||0x1==_0x4b0c4c['newValue']&&null==_0x4b0c4c['oldValue']?_0x166d94:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x404b3f=>{if(_0x404b3f['batch']['isUndo'])return!0x1;let _0x249607=!0x1;const _0x6c8586=_0x482e15['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45b0d8=>{const _0x4a557d=_0x482e15['_getAttributeKey'](_0x45b0d8);return'listStart'==_0x4a557d||'listReversed'==_0x4a557d;});for(const _0x170c66 of _0x6c8586){const _0x28be2a=_0x170c66['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x28be2a||'customNumbered'==_0x28be2a)continue;_0x482e15['_findSuggestions'](_0x170c66['getFirstRange'](),'attribute')['find'](_0x561c69=>'listType'==_0x482e15['_getAttributeKey'](_0x561c69['suggestion']))||(_0x404b3f['removeMarker'](_0x170c66['getFirstMarker']()),_0x249607=!0x0);}return _0x249607;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x192f1b){const _0x2bd8b4=this['editor']['locale'],{data:_0x25b85a}=_0x192f1b,_0x590522={'type':'format','content':''};if(!_0x25b85a||'listStyle'!=_0x25b85a['key'])return;if(!_0x25b85a['oldValue'])return'default'==_0x25b85a['newValue']?_0x590522:{'type':'format','content':''+o(_0x2bd8b4,'*Set\x20format:*\x20%0',o(_0x2bd8b4,this['_getTranslationKeyForListStyle'](_0x25b85a['newValue'])))};if(!_0x25b85a['newValue']){if('default'==_0x25b85a['oldValue'])return _0x590522;let _0x16a706=_0x192f1b['head'];for(;_0x16a706;){if(_0x16a706['data']&&'listType'==_0x16a706['data']['key']&&_0x16a706['data']['newValue'])return _0x590522;_0x16a706=_0x16a706['next'];}return{'type':'format','content':''+o(_0x2bd8b4,'*Remove\x20format:*\x20%0',o(_0x2bd8b4,this['_getTranslationKeyForListStyle'](_0x25b85a['oldValue'])))};}if('default'!=_0x25b85a['newValue'])return{'type':'format','content':''+o(_0x2bd8b4,'*Set\x20format:*\x20%0',o(_0x2bd8b4,this['_getTranslationKeyForListStyle'](_0x25b85a['newValue'])))};let _0x2499d5=_0x192f1b['head'];for(;_0x2499d5;){if(_0x2499d5['data']&&'listType'==_0x2499d5['data']['key']&&_0x2499d5['data']['newValue']&&_0x2499d5['data']['oldValue'])return _0x590522;_0x2499d5=_0x2499d5['next'];}return{'type':'format','content':o(_0x2bd8b4,'*Set\x20format:*\x20%0',o(_0x2bd8b4,'ELEMENT_'+_0x192f1b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x192bd2=this['editor'],_0x31c501=_0x192bd2['locale'];_0x192bd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414c2d=>{if('formatBlock'!=_0x414c2d['type'])return;const {data:_0x5e5dc0}=_0x414c2d;if(!_0x5e5dc0)return;let _0xcb7999,_0x2ae101;switch(_0x5e5dc0['commandName']){case'listStyle':_0xcb7999='*Change\x20to:*\x20%0',_0x2ae101={'type':'format','content':o(_0x31c501,_0xcb7999,o(_0x31c501,this['_getTranslationKeyForListStyle'](_0x5e5dc0['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcb7999=_0x5e5dc0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ae101={'type':'format','content':o(_0x31c501,_0xcb7999)};break;case'listStart':_0xcb7999='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ae101={'type':'format','content':o(_0x31c501,_0xcb7999,_0x5e5dc0['commandParams'][0x0]['startIndex'])};}return _0x2ae101;});}['_getTranslationKeyForListStyle'](_0x1569d1){return'ELEMENT_'+function(_0x494f92){if(_e['includes'](_0x494f92))return'bulleted';if(Re['includes'](_0x494f92))return'numbered';return null;}(_0x1569d1)['toUpperCase']()+'_LIST_'+_0x1569d1['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x330415{static get['requires'](){return[_0x3a1ff5];}['init'](){const _0xf081ba=this['editor'],_0x51a110=_0xf081ba['plugins']['get']('TrackChangesEditing'),_0x18f8a2=_0xf081ba['commands']['get']('enter');_0x51a110['enableCommand']('enter',()=>{_0xf081ba['model']['change'](_0x32f57d=>{const _0x2955a3=_0xf081ba['model']['document']['selection'],_0x52b1f4=_0x2955a3['getFirstPosition'](),_0x172a0b=_0x41d70f['fromRange'](_0x2955a3['getFirstRange']());if(_0x18f8a2['enterBlock'](_0x32f57d)){const _0xe07660=_0xf081ba['model']['createPositionAt'](_0x52b1f4['parent']['nextSibling'],0x0),_0x4eef0c=_0x32f57d['createRange'](_0x52b1f4,_0xe07660);_0x51a110['markInsertion'](_0x4eef0c);}else _0x32f57d['setSelection'](_0x32f57d['createRange'](_0x172a0b['end']));_0x172a0b['detach'](),_0x18f8a2['fire']('afterExecute',{'writer':_0x32f57d});});}),_0xf081ba['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xf081ba,'split'),{'priority':'high'}),_0xf081ba['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5e0f52,_0x1dc15e,_0x10bb4e)=>{const _0x4a7890=_0x10bb4e['mapper']['markerNameToElements'](_0x1dc15e['markerName']);if(_0x4a7890){for(const _0x2e5dd8 of _0x4a7890)_0x2e5dd8['hasClass']('ck-suggestion-marker-split')&&(_0x10bb4e['mapper']['unbindElementFromMarkerName'](_0x2e5dd8,_0x1dc15e['markerName']),_0x10bb4e['writer']['remove'](_0x2e5dd8));}},{'priority':'high'}),_0xf081ba['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x59b478,_0x2fef8c,_0x29389e)=>{_0x29389e['options']['showSuggestionHighlights']&&De(_0xf081ba,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x59b478,_0x2fef8c,_0x29389e);},{'priority':'high'});}}class Y extends _0x330415{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1fd26d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fd26d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1fd26d['enableCommand']('findNext'),_0x1fd26d['enableCommand']('findPrevious'),_0x1fd26d['enableCommand']('replace'),_0x1fd26d['enableCommand']('replaceAll');}['handleFindCommand'](_0x27efa,_0x2900a8,_0x46b1da={}){const _0x53cc1b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x27efa(_0x4e67ad=>{let _0x4aa651=('string'==typeof _0x2900a8?_0x53cc1b['findByTextCallback'](_0x2900a8,_0x46b1da):_0x2900a8)(_0x4e67ad);Array['isArray'](_0x4aa651)&&(_0x4aa651={'results':_0x4aa651,'searchText':'string'==typeof _0x2900a8?_0x2900a8:''});const _0x19ff15=_0x4aa651['results']['filter'](_0x1235a3=>!0x1===this['_isInDeletionRange'](_0x1235a3,_0x4e67ad['item']));return{..._0x4aa651,'results':_0x19ff15};},_0x46b1da);}['_isInDeletionRange'](_0x38df93,_0xf7ff8f){const _0x21c3b7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf7ff8f,_0x38df93['start']),this['editor']['model']['createPositionAt'](_0xf7ff8f,_0x38df93['end']));for(const _0x29c3a7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x21c3b7['getIntersection'](_0x29c3a7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x330415{['afterInit'](){const _0x3a9563=this['editor']['locale'],_0xa9aa8b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x164233,commandName:_0x1d633d}of ro)this['editor']['plugins']['has'](_0x164233)&&(_0xa9aa8b['enableDefaultAttributesIntegration'](_0x1d633d),_0xa9aa8b['registerInlineAttribute'](_0x1d633d));_0xa9aa8b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3a9563,'FORMAT_FONT_SIZE')),_0xa9aa8b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3a9563,'FORMAT_FONT_FAMILY')),_0xa9aa8b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3a9563,'FORMAT_FONT_COLOR')),_0xa9aa8b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3a9563,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x499314=this['editor'],_0x58bdc1=_0x499314['locale'];_0x499314['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a644e=>{const _0x295264=_0x58bdc1['t'];if('formatInline'!=_0x5a644e['type'])return;const {data:_0x2518be}=_0x5a644e;if(null!=_0x2518be){if('fontSize'==_0x2518be['commandName']){const _0x28526c=_0x2518be['commandParams'][0x0]['value'];if(_0x28526c){const _0x490a14=_0x295264(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x49c7b9=>_0x49c7b9['model']==_0x28526c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x58bdc1,'*Set\x20font\x20size:*\x20%0',_0x490a14)};}return{'type':'format','content':o(_0x58bdc1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2518be['commandName']){const _0x5d9aaf=_0x2518be['commandParams'][0x0]['value'];return _0x5d9aaf?{'type':'format','content':o(_0x58bdc1,'*Set\x20font\x20family:*\x20%0',_0x5d9aaf)}:{'type':'format','content':o(_0x58bdc1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2518be['commandName']){const _0x56d845=_0x2518be['commandParams'][0x0]['value'];if(_0x56d845){const _0x4619e7=_0x464106(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4f6355=>_0x4f6355['model']==_0x56d845);let _0xdcf223=_0x56d845,_0x393ac0='';return _0x4619e7&&(_0xdcf223=_0x4619e7['label'],_0x393ac0=_0x295264(_0xdcf223)['toLowerCase']()),{'type':'format','content':o(_0x58bdc1,'*Set\x20font\x20color:*\x20%0',_0x393ac0)['trim'](),'color':{'value':_0x56d845,'title':_0x393ac0||_0xdcf223}};}return{'type':'format','content':o(_0x58bdc1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2518be['commandName']){const _0x1b927d=_0x2518be['commandParams'][0x0]['value'];if(_0x1b927d){const _0x533008=_0x464106(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x29557d=>_0x29557d['model']==_0x1b927d);let _0x59d0b9=_0x1b927d,_0xdea116='';return _0x533008&&(_0x59d0b9=_0x533008['label'],_0xdea116=_0x295264(_0x59d0b9)['toLowerCase']()),{'type':'format','content':o(_0x58bdc1,'*Set\x20font\x20background\x20color:*\x20%0',_0xdea116)['trim'](),'color':{'value':_0x1b927d,'title':_0xdea116||_0x59d0b9}};}return{'type':'format','content':o(_0x58bdc1,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x330415{['afterInit'](){const _0x25f45d=this['editor'],_0x157212=_0x25f45d['plugins']['get']('TrackChangesEditing'),_0x256016=_0x25f45d['commands']['get']('copyFormat'),_0x251b7a=_0x25f45d['commands']['get']('pasteFormat');_0x256016&&_0x251b7a&&(_0x157212['enableDefaultAttributesIntegration']('pasteFormat'),_0x157212['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x64eeae=this['editor'],_0x313a96=_0x64eeae['locale'];_0x64eeae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ba5a7=>{if('formatBlock'!=_0x1ba5a7['type']&&'formatInline'!=_0x1ba5a7['type'])return;const {data:_0x241e50}=_0x1ba5a7;if(_0x241e50&&'pasteFormat'===_0x241e50['commandName']){const _0x1caffc=[],_0x8c3289=_0x241e50['commandParams'][0x0];for(const [_0x1ec577,_0x2ed3cc]of Object['entries'](_0x8c3289))_0x1caffc['push'](so(_0x64eeae,_0x1ec577,_0x2ed3cc));return _0x1caffc['length']?{'type':'format','content':o(_0x313a96,'*Set\x20format\x20to:*\x20%0',_0x1caffc['join'](',\x20'))}:{'type':'format','content':o(_0x313a96,'*Remove\x20all\x20formatting*')};}});}}function so(_0x243162,_0x11a057,_0x26944a){const _0x7e4139=_0x243162['locale']['t'],_0x22e367=_0x11a057['split'](/(?=[A-Z])/)['join']('\x20'),_0xe0b891=_0x7e4139(_0x22e367['charAt'](0x0)['toUpperCase']()+_0x22e367['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x26944a)return _0xe0b891;if('fontColor'===_0x11a057||'fontBackgroundColor'===_0x11a057){const _0x17a031=_0x464106(_0x243162['config']['get']('fontColor.colors'))['find'](_0xb13ece=>_0xb13ece['model']==_0x26944a);return _0xe0b891+'\x20('+(_0x17a031?_0x7e4139(_0x17a031['label'])['toLowerCase']():_0x26944a)+')';}if('fontSize'===_0x11a057&&isNaN(parseFloat(_0x26944a))){const _0x163736=_0x243162['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x243162['config']['get']('fontSize.options'))['find'](_0x1b40a6=>_0x1b40a6['model']==_0x26944a);return _0xe0b891+'\x20('+(_0x163736?_0x7e4139(_0x163736['title'])['toLowerCase']():_0x26944a)+')';}return _0xe0b891+'\x20('+_0x26944a+')';}class nt extends _0x330415{['_headingOptions'];['afterInit'](){const _0xf3fc2b=this['editor'];if(!_0xf3fc2b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xf3fc2b['config']['get']('heading.options');const _0x3735fd=_0xf3fc2b['locale'],_0x19c5fa=_0xf3fc2b['plugins']['get']('TrackChangesEditing');_0x19c5fa['enableDefaultAttributesIntegration']('heading');for(const _0x2aa694 of this['_headingOptions'])'paragraph'!=_0x2aa694['model']&&_0x19c5fa['descriptionFactory']['registerElementLabel'](_0x2aa694['model'],_0x55d060=>{const _0x416bde=this['_getHeadingLevel'](_0x2aa694['model']);return null!==_0x416bde?_0x32d2c7(_0x55d060,_0x416bde):_0xbc0ca(_0x55d060,_0x2aa694['title']);});function _0x32d2c7(_0x25f2f2,_0x3fd6af){return o(_0x3735fd,'ELEMENT_HEADING',[_0x25f2f2,_0x3fd6af]);}function _0xbc0ca(_0x3c16cc,_0x1a3838){return o(_0x3735fd,'ELEMENT_HEADING_CUSTOM',[_0x3c16cc,_0x1a3838]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x492697=this['editor'],_0x41915d=_0x492697['locale'];function _0x364884(_0xf34c15,_0x27da84){return o(_0x41915d,'ELEMENT_HEADING_CUSTOM',[_0xf34c15,_0x27da84]);}_0x492697['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5544c4=>{if('formatBlock'!=_0x5544c4['type'])return;const {data:_0x47eeab}=_0x5544c4;if(_0x47eeab&&'heading'==_0x47eeab['commandName']){const _0x35d213=_0x47eeab['commandParams'][0x0]['value'],_0x123f7c=this['_getHeadingLevel'](_0x35d213);if(null!==_0x123f7c)return{'type':'format','content':o(_0x41915d,'*Change\x20to:*\x20%0',(_0x218186=0x1,_0x6a8d5b=_0x123f7c,o(_0x41915d,'ELEMENT_HEADING',[_0x218186,_0x6a8d5b])))};const _0xe47841=this['_headingOptions']['find'](_0x97133=>_0x97133['model']===_0x35d213)['title'];return{'type':'format','content':o(_0x41915d,'*Change\x20to:*\x20%0',_0x364884(0x1,_0xe47841))};}var _0x218186,_0x6a8d5b;});}['_getHeadingLevel'](_0x2baa67){const _0x2506dd=_0x2baa67['match'](/^heading(\d+)/);if(_0x2506dd)return _0x2506dd[0x1];const _0x459fc4=this['_headingOptions']?.['find'](_0x478e62=>_0x478e62['model']==_0x2baa67);if(_0x459fc4&&_0x459fc4['view']){const _0x47872a=_0x459fc4['view'],_0x488ad9=(_0x47872a['name']??_0x47872a)['match'](/^h(\d+)/);if(_0x488ad9)return _0x488ad9[0x1];}return null;}}class it extends _0x330415{['afterInit'](){const _0x3f5b0a=this['editor'];if(!_0x3f5b0a['plugins']['has']('HighlightEditing'))return;const _0x1c4d35=_0x3f5b0a['plugins']['get']('TrackChangesEditing'),_0x47ed07=_0x3f5b0a['locale'];_0x1c4d35['enableDefaultAttributesIntegration']('highlight'),_0x1c4d35['registerInlineAttribute']('highlight'),_0x1c4d35['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x47ed07,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40b248=this['editor'],_0x51c525=_0x40b248['locale'];_0x40b248['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7cb74b=>{if('formatInline'!=_0x7cb74b['type'])return;const {data:_0x2b24f3}=_0x7cb74b;if(_0x2b24f3&&'highlight'==_0x2b24f3['commandName']){const _0x532861=_0x51c525['t'],_0x10bac4=_0x2b24f3['commandParams'][0x0]['value'];if(_0x10bac4){const _0x2ad46b=_0x40b248['config']['get']('highlight.options')['find'](_0x44ed9c=>_0x44ed9c['model']==_0x10bac4),_0x48822e=_0x532861(_0x2ad46b['title'])['toLowerCase']();return{'type':'format','content':o(_0x51c525,'*Set\x20highlight:*\x20%0',_0x48822e),'color':{'value':_0x2ad46b['color'],'title':_0x2ad46b['title']}};}return{'type':'format','content':o(_0x51c525,'*Remove\x20highlight*',o(_0x51c525,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x330415{['afterInit'](){const _0x5c9b8e=this['editor'];if(!_0x5c9b8e['plugins']['has']('HorizontalLineEditing'))return;_0x5c9b8e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1eea68=_0x5c9b8e['plugins']['get']('TrackChangesEditing'),_0x5ca65a=_0x5c9b8e['locale'];_0x1eea68['descriptionFactory']['registerElementLabel']('horizontalLine',_0x499449=>o(_0x5ca65a,'ELEMENT_HORIZONTAL_LINE',_0x499449)),_0x5c9b8e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x11df61,{writer:_0x4b4c52,options:_0x46968d})=>{if(!_0x46968d['showSuggestionHighlights'])return null;const _0x1a8f64=_0x4b4c52['createContainerElement']('div'),_0x4495fc=_0x4b4c52['createEmptyElement']('hr');return _0x4b4c52['addClass']('ck-horizontal-line',_0x1a8f64),_0x4b4c52['insert'](_0x4b4c52['createPositionAt'](_0x1a8f64,0x0),_0x4495fc),_0x1a8f64;},'converterPriority':'high'});}}class st extends _0x330415{['afterInit'](){const _0x1d58d0=this['editor'];if(!_0x1d58d0['plugins']['has']('HtmlEmbed'))return;const _0x30b58b=_0x1d58d0['plugins']['get']('TrackChangesEditing'),_0x1899a4=_0x1d58d0['locale'];_0x30b58b['descriptionFactory']['registerElementLabel']('rawHtml',_0x3d562a=>o(_0x1899a4,'ELEMENT_HTML_EMBED',_0x3d562a)),_0x30b58b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x30b58b['registerBlockAttribute']('value'),_0x30b58b['descriptionFactory']['registerDescriptionCallback'](_0x4ff4ef=>{if('attribute'!=_0x4ff4ef['type'])return;const {data:_0x36e534}=_0x4ff4ef;if(_0x36e534&&'value'==_0x36e534['key']&&_0x4ff4ef['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1739f7=o(_0x1899a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1899a4,'*Change\x20%0\x20content*',_0x1739f7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c8cd5=this['editor'],_0x52d832=_0x4c8cd5['locale'];_0x4c8cd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5af4be=>{if('formatBlock'!=_0x5af4be['type'])return;const {data:_0x550104}=_0x5af4be;if(_0x550104&&'htmlEmbed'==_0x550104['commandName']){const _0x201cf0=o(_0x52d832,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x52d832,'*Change\x20%0\x20content*',_0x201cf0)};}});}}class ot extends _0x330415{['afterInit'](){const _0x1ae188=this['editor'];if(!_0x1ae188['plugins']['has']('ImageEditing'))return;const _0x1d9046=_0x1ae188['plugins']['get']('TrackChangesEditing'),_0x5273dc=_0x1ae188['plugins']['get']('ImageUtils'),_0x4a8b11=_0x1ae188['locale'];_0x1d9046['enableCommand']('insertImage'),_0x1d9046['descriptionFactory']['registerElementLabel']('imageBlock',_0x5ac8cb=>o(_0x4a8b11,'ELEMENT_IMAGE',_0x5ac8cb)),_0x1d9046['descriptionFactory']['registerElementLabel']('imageInline',_0x5cbc4e=>o(_0x4a8b11,'ELEMENT_INLINE_IMAGE',_0x5cbc4e)),_0x1d9046['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4a8b11,'ELEMENT_CAPTION')),_0x1ae188['plugins']['has']('ImageUploadEditing')&&_0x1d9046['enableCommand']('uploadImage'),_0x1ae188['plugins']['has']('ImageBlockEditing')&&_0x1ae188['plugins']['has']('ImageInlineEditing')&&(_0x1d9046['enableCommand']('imageTypeInline',(_0x1255ca,_0x57b2bd)=>{const _0x5001a9=_0x5273dc['getClosestSelectedImageElement'](_0x1ae188['model']['document']['selection']);_0x1ae188['model']['change'](()=>{_0x1d9046['markBlockFormat'](_0x5001a9,{'commandName':'imageTypeInline','commandParams':[_0x57b2bd]},[],'convertBlockImageToInline');});}),_0x1d9046['enableCommand']('imageTypeBlock',(_0x1b07f2,_0x5b0059)=>{_0x1ae188['model']['change'](_0x344458=>{let _0x132f25=_0x5273dc['getClosestSelectedImageElement'](_0x1ae188['model']['document']['selection']),_0x4a9e72=_0x344458['createRangeOn'](_0x132f25);const _0x163f33=_0x4f97b9['fromPosition'](_0x4a9e72['start'],'toPrevious'),_0x437a53=_0x4f97b9['fromPosition'](_0x4a9e72['end'],'toNext');_0x1d9046['forceDefaultExecution'](()=>_0x1b07f2(_0x5b0059)),_0x132f25=_0x5273dc['getClosestSelectedImageElement'](_0x1ae188['model']['document']['selection']),_0x4a9e72=_0x344458['createRangeOn'](_0x132f25);const _0x51b849=_0x344458['createRange'](_0x163f33,_0x437a53);_0x163f33['detach'](),_0x437a53['detach'](),_0x1d9046['markBlockFormat'](_0x132f25,{'commandName':'imageTypeInline','commandParams':[_0x5b0059]},[],'convertInlineImageToBlock'),_0x51b849['start']['isBefore'](_0x4a9e72['start'])&&_0x1d9046['markInsertion'](_0x344458['createRange'](_0x51b849['start'],_0x4a9e72['start']),'convertInlineImageToBlock'),_0x4a9e72['end']['isBefore'](_0x51b849['end'])&&_0x1d9046['markInsertion'](_0x344458['createRange'](_0x4a9e72['end'],_0x51b849['end']),'convertInlineImageToBlock');});}),_0x1d9046['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1d9046['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1d9046['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1d9046['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1d9046['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1d9046['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x21314c])=>{const _0x3bd673=_0x1d9046['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c0593=_0x21314c['start'],_0x391e44=_0x21314c['end'];const _0x3a798f=_0x1ae188['model']['schema']['getNearestSelectionRange'](_0x2c0593,'backward'),_0x5127d3=_0x1ae188['model']['schema']['getNearestSelectionRange'](_0x391e44,'forward');_0x3a798f['isCollapsed']&&(_0x2c0593=_0x3a798f['start']),_0x5127d3['isCollapsed']&&(_0x391e44=_0x5127d3['end']),_0x3bd673([_0x1ae188['model']['createRange'](_0x2c0593,_0x391e44)]);}),_0x1d9046['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x189cac),_0x1d9046['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x189cac)),_0x1ae188['plugins']['has']('ImageCaptionEditing')&&(_0x1d9046['enableCommand']('toggleImageCaption',(_0x13c5fd,_0x54269f)=>{const _0x201ef9=_0x1ae188['plugins']['get']('ImageCaptionUtils');let _0x307304=_0x5273dc['getClosestSelectedImageElement'](_0x1ae188['model']['document']['selection']),_0x578bf1=_0x201ef9['getCaptionFromImageModelElement'](_0x307304);_0x1ae188['model']['change'](()=>{if(_0x578bf1)return void _0x1d9046['markDeletion'](_0x1ae188['model']['createRangeOn'](_0x578bf1));const _0x202156=_0x5273dc['isBlockImage'](_0x307304);_0x13c5fd(_0x54269f),_0x307304=_0x5273dc['getClosestSelectedImageElement'](_0x1ae188['model']['document']['selection']),_0x578bf1=_0x201ef9['getCaptionFromImageModelElement'](_0x307304),_0x1d9046['markInsertion'](_0x1ae188['model']['createRangeOn'](_0x578bf1),_0x202156?null:'imageCaption');});}),_0x1d9046['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x189cac));const _0x34ee7d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1e5ecc(_0x589ca8,_0x437307){const _0x1e3668=_0x34ee7d['findIndex'](({type:_0xeff75b,subType:_0x401e60})=>_0x589ca8['type']==_0xeff75b&&_0x589ca8['subType']==_0x401e60),_0x811a0d=_0x34ee7d['findIndex'](({type:_0x5cabcf,subType:_0x3cae49})=>_0x437307['type']==_0x5cabcf&&_0x437307['subType']==_0x3cae49);if(_0x1e3668<0x0||_0x811a0d<0x0)return!0x1;const _0x3c1220=_0x589ca8['getFirstRange'](),_0x2a6ace=_0x437307['getFirstRange']();if((0x0==_0x1e3668||0x1==_0x1e3668)&&0x2==_0x811a0d&&_0x3c1220['isIntersecting'](_0x2a6ace))return!0x0;if(0x2==_0x1e3668&&0x3==_0x811a0d){const _0x2e9bb6=_0x1d9046['_findSuggestions'](_0x3c1220,'insertion')['filter'](({suggestion:_0x51fdcf,meta:_0x31b181})=>_0x31b181['isOwn']&&'convertInlineImageToBlock'==_0x51fdcf['subType']);if(_0x2e9bb6['length']>0x1&&_0x2a6ace['end']['isEqual'](_0x3c1220['start']))return!0x0;if(0x1==_0x2e9bb6['length']&&(_0x3c1220['start']['isEqual'](_0x2a6ace['end'])||_0x3c1220['end']['isEqual'](_0x2a6ace['start'])))return!0x0;}if(0x3==_0x1e3668&&0x3==_0x811a0d&&_0x3c1220['start']['isBefore'](_0x2a6ace['start'])){const _0x22e863=_0x3c1220['end']['nodeAfter'],_0x5924ce=_0x2a6ace['start']['nodeBefore'];return _0x5273dc['isBlockImage'](_0x22e863)&&_0x22e863===_0x5924ce;}return!0x1;}function _0x189cac(_0xd9f219,_0x3850fb){return _0x1e5ecc(_0xd9f219,_0x3850fb)?[_0xd9f219,_0x3850fb]:_0x1e5ecc(_0x3850fb,_0xd9f219)?[_0x3850fb,_0xd9f219]:null;}_0x1ae188['plugins']['has']('ImageResize')&&(_0x1d9046['enableDefaultAttributesIntegration']('resizeImage'),_0x1d9046['registerBlockAttribute']('resizedWidth'),_0x1d9046['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4a8b11,'FORMAT_IMAGE_SIZE'))),_0x1ae188['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1d9046['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1d9046['registerBlockAttribute']('alt')),_0x1ae188['plugins']['has']('PictureEditing')&&(_0x1d9046['registerBlockAttribute']('sources'),_0x1d9046['descriptionFactory']['registerDescriptionCallback'](_0x2e0a48=>{if('attribute'!=_0x2e0a48['type'])return;const {data:_0x5d0b79}=_0x2e0a48;return _0x5d0b79&&'sources'==_0x5d0b79['key']?{'type':'format','content':''}:void 0x0;})),_0x1ae188['plugins']['has']('ImageSizeAttributes')&&(_0x1d9046['registerBlockAttribute']('width'),_0x1d9046['registerBlockAttribute']('height'),_0x1d9046['descriptionFactory']['registerDescriptionCallback'](_0xbccdea=>{if('attribute'!=_0xbccdea['type'])return;const {data:_0x2b3bf8}=_0xbccdea;return!_0x2b3bf8||'width'!=_0x2b3bf8['key']&&'height'!=_0x2b3bf8['key']?void 0x0:{'type':'format','content':''};})),_0x1d9046['descriptionFactory']['registerDescriptionCallback'](_0x4ba064=>{if(!!_0x34ee7d['find'](({type:_0x156ef5,subType:_0x43da6a})=>_0x4ba064['type']==_0x156ef5&&_0x4ba064['subType']==_0x43da6a))return _0x4ba064['previous']?{}:void 0x0;}),_0x1d9046['descriptionFactory']['registerDescriptionCallback'](_0x3ca9f1=>{if('insertion'==_0x3ca9f1['type']||'deletion'==_0x3ca9f1['type']){const _0x5a15a1=_0x3ca9f1['getContainedElement']();if(_0x5a15a1&&_0x5a15a1['is']('element','caption'))return{'type':'insertion'==_0x3ca9f1['type']?'addObject':'removeObject','element':_0x5a15a1,'quantity':0x1};}}),_0x1d9046['descriptionFactory']['registerDescriptionCallback'](_0x27ce76=>'formatBlock'==_0x27ce76['type']&&'convertInlineImageToBlock'==_0x27ce76['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x27ce76['type']&&'convertBlockImageToInline'==_0x27ce76['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1d9046['descriptionFactory']['registerDescriptionCallback'](_0x308a6d=>{if('attribute'!=_0x308a6d['type'])return;const {data:_0xd870dc}=_0x308a6d;if(!_0xd870dc||'alt'!=_0xd870dc['key'])return;const _0x728a9e=_0xd870dc['newValue'];return _0x728a9e?{'type':'format','content':o(_0x4a8b11,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x728a9e+'\x22')}:{'type':'format','content':o(_0x4a8b11,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e3c9d=this['editor'],_0x3a1222=_0x1e3c9d['locale'];_0x1e3c9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b05f=>{if('formatBlock'!=_0x42b05f['type']&&'formatInline'!=_0x42b05f['type'])return;const {data:_0x139929}=_0x42b05f;if(_0x139929){if('imageTextAlternative'==_0x139929['commandName']){const _0x4c7308=_0x139929['commandParams'][0x0]['newValue'];return _0x4c7308?{'type':'format','content':o(_0x3a1222,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4c7308+'\x22')}:{'type':'format','content':o(_0x3a1222,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x139929['commandName']){const _0x120a90=_0x139929['commandParams'][0x0]['width'];return _0x120a90?{'type':'format','content':o(_0x3a1222,'*Set\x20image\x20width:*\x20%0',_0x120a90)}:{'type':'format','content':o(_0x3a1222,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x330415{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xef1455=this['editor']['locale'],_0x3c9820=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c9820['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3c9820['registerBlockAttribute']('src'),_0x3c9820['descriptionFactory']['registerDescriptionCallback'](_0x499b08=>{if('attribute'!=_0x499b08['type'])return;const {data:_0x545207}=_0x499b08;return _0x545207&&'src'==_0x545207['key']?_0x545207['newValue']&&_0x545207['oldValue']?{'type':'format','content':o(_0xef1455,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b263c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b263c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2b263c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b263c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2b263c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ee754=this['editor'],_0x28a338=_0x4ee754['locale'];_0x4ee754['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c9089=>{if('formatBlock'!=_0x1c9089['type']&&'formatInline'!=_0x1c9089['type'])return;const {data:_0x4c9a72}=_0x1c9089;if(!_0x4c9a72||'replaceImageSource'!=_0x4c9a72['commandName'])return;return{'type':'format','content':o(_0x28a338,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x330415{['afterInit'](){const _0x2a4070=this['editor'];if(!_0x2a4070['plugins']['has']('ImageStyleEditing'))return;const _0x33cbdc=_0x2a4070['plugins']['get']('TrackChangesEditing'),_0xc9871b=_0x2a4070['plugins']['get']('ImageUtils'),_0x26c67b={};_0x33cbdc['enableCommand']('imageStyle',(_0x1798dd,_0x893ca1)=>{const _0x26082a=_0x2a4070['plugins']['get']('Users')['me'],_0x9a33d1=_0x2a4070['commands']['get']('imageStyle');let _0x27e290=_0xc9871b['getClosestSelectedImageElement'](_0x2a4070['model']['document']['selection']),_0x3ace6c=_0x2a4070['model']['createRangeOn'](_0x27e290),_0x5fd67=_0x9a33d1['value'];if(_0x5fd67==_0x893ca1['value'])return;const _0xde0e0f={'commandName':'imageStyle','commandParams':[_0x893ca1],'formatGroupId':_0x2b8ec1()};_0x2a4070['model']['change'](()=>{if(_0x33cbdc['getSuggestions']()['filter'](_0x58174a=>_0x58174a['isInContent']&&_0x26082a==_0x58174a['author']&&('formatBlock'==_0x58174a['type']||'formatInline'==_0x58174a['type'])&&('imageStylePreApply'==_0x58174a['subType']||'imageStylePostApply'==_0x58174a['subType'])&&_0x58174a['getFirstRange']()['isEqual'](_0x3ace6c))['forEach'](_0x37de8b=>_0x33cbdc['discardSuggestion'](_0x37de8b['head'])),_0x27e290=_0xc9871b['getClosestSelectedImageElement'](_0x2a4070['model']['document']['selection']),_0x3ace6c=_0x2a4070['model']['createRangeOn'](_0x27e290),_0x9a33d1['refresh'](),_0x2a4070['commands']['get']('imageTypeInline')['refresh'](),_0x2a4070['commands']['get']('imageTypeBlock')['refresh'](),_0x5fd67=_0x9a33d1['value'],_0x5fd67!=_0x893ca1['value'])return _0xc9871b['isInlineImage'](_0x27e290)&&_0x9a33d1['shouldConvertImageType'](_0x893ca1['value'],_0x27e290)?(_0x1798dd({..._0x893ca1,'setImageSizes':!0x1}),_0x27e290=_0xc9871b['getClosestSelectedImageElement'](_0x2a4070['model']['document']['selection']),void _0x33cbdc['markBlockFormat'](_0x27e290,{..._0xde0e0f,'commandReversedParams':[{'value':_0x5fd67||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xc9871b['isBlockImage'](_0x27e290)?_0x33cbdc['markBlockFormat'](_0x27e290,_0xde0e0f,[],'imageStylePostApply'):_0x33cbdc['markInlineFormat'](_0x3ace6c,_0xde0e0f,'imageStylePostApply'));});});for(const _0x5d473c of _0x2a4070['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x26c67b[_0x5d473c['name']]=_0x5d473c['title']['toLowerCase']();_0x33cbdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x33cbdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x33cbdc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x33cbdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2b9fef])=>{_0xc9871b['setImageNaturalSizeAttributes'](_0x2b9fef['getContainedElement']());}),_0x33cbdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c25e9,_0xe2a060)=>{_0x33cbdc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c25e9,{'commandName':_0xe2a060['commandName'],'commandParams':_0xe2a060['commandReversedParams']});}),_0x33cbdc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x24e34d,_0x1eee3a){if(_0x33580a(_0x24e34d,_0x1eee3a))return[_0x24e34d,_0x1eee3a];if(_0x33580a(_0x1eee3a,_0x24e34d))return[_0x1eee3a,_0x24e34d];return null;});const _0x4381c5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x33580a(_0x425610,_0x5bf269){const _0x273e9e=_0x4381c5['findIndex'](({type:_0x5ee174,subType:_0x197595})=>_0x425610['type']==_0x5ee174&&_0x425610['subType']==_0x197595),_0x3d9f85=_0x4381c5['findIndex'](({type:_0x35c592,subType:_0x251aae})=>_0x5bf269['type']==_0x35c592&&_0x5bf269['subType']==_0x251aae);if(_0x273e9e<0x0||_0x3d9f85<0x0)return!0x1;const _0x5ec91a=_0x425610['getFirstRange'](),_0x5b11bd=_0x5bf269['getFirstRange']();if((0x0==_0x273e9e||0x1==_0x273e9e)&&0x2==_0x3d9f85&&_0x5ec91a['isIntersecting'](_0x5b11bd))return!0x0;if(0x2==_0x273e9e&&0x3==_0x3d9f85){const _0x11a19c=_0x33cbdc['_findSuggestions'](_0x5ec91a,'insertion')['filter'](({suggestion:_0x4257fe,meta:_0x338396})=>_0x338396['isOwn']&&'convertInlineImageToBlock'==_0x4257fe['subType']);if(_0x11a19c['length']>0x1&&_0x5b11bd['end']['isEqual'](_0x5ec91a['start']))return!0x0;if(0x1==_0x11a19c['length']&&(_0x5ec91a['start']['isEqual'](_0x5b11bd['end'])||_0x5ec91a['end']['isEqual'](_0x5b11bd['start'])))return!0x0;}if(0x3==_0x273e9e&&0x3==_0x3d9f85&&_0x5ec91a['start']['isBefore'](_0x5b11bd['start'])){const _0x1a82ab=_0x5ec91a['end']['nodeAfter'],_0x3ef9fa=_0x5b11bd['start']['nodeBefore'];return _0xc9871b['isBlockImage'](_0x1a82ab)&&_0x1a82ab===_0x3ef9fa;}return!0x1;}_0x2a4070['model']['document']['registerPostFixer'](()=>{let _0x3c8c3d=!0x1;const _0x43fced=Array['from'](_0x2a4070['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47faa9,data:_0x291f3b}of _0x43fced){const {group:_0x2d9506,type:_0x338c9a,subType:_0x56f94f,id:_0x51af7c}=_0x33cbdc['_splitMarkerName'](_0x47faa9);if('suggestion'==_0x2d9506&&_0x33cbdc['hasSuggestion'](_0x51af7c)){if('formatBlock'==_0x338c9a&&('imageStylePreApply'==_0x56f94f||'imageStylePostApply'==_0x56f94f)){const _0x5f2357=_0x33cbdc['getSuggestion'](_0x51af7c);if(_0x291f3b['newRange']){const _0x4b1393=_0x5f2357['getFirstRange']()['getContainedElement']();if(_0xc9871b['isBlockImage'](_0x4b1393))continue;_0x33cbdc['discardSuggestion'](_0x5f2357),_0x3c8c3d=!0x0;}}if('insertion'==_0x338c9a&&'imageCaption'==_0x56f94f&&!_0x291f3b['newRange']){const _0x4fbfda=_0x33cbdc['getSuggestion'](_0x51af7c);_0x4fbfda['next']&&_0x4fbfda['next']['isInContent']&&(_0x33cbdc['discardSuggestion'](_0x4fbfda['next']),_0x3c8c3d=!0x0);}}}return _0x3c8c3d;}),this['_registerLegacyDescription'](_0x26c67b);}['_registerLegacyDescription'](_0x3d3fce){const _0x478e53=this['editor'],_0x46f1e4=_0x478e53['locale'];_0x478e53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5acb86=>{if('formatBlock'!=_0x5acb86['type']&&'formatInline'!=_0x5acb86['type'])return;const {data:_0x34871c}=_0x5acb86;if(!_0x34871c||'imageStyle'!=_0x34871c['commandName'])return;const _0x1e27c2=_0x34871c['commandParams'][0x0]['value'];return _0x22d9bd('side'===_0x1e27c2?o(_0x46f1e4,'FORMAT_SIDE_IMAGE'):_0x3d3fce[_0x1e27c2]||_0x1e27c2);function _0x22d9bd(_0x1ed9c1){return{'type':'format','content':o(_0x46f1e4,'*Format:*\x20%0',_0x1ed9c1)};}});}}class ct extends _0x330415{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5d3b9c){super(_0x5d3b9c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x816837=this['editor'],_0x5e69ba=_0x816837['commands']['get']('importWord'),_0x5b80c5=_0x816837['commands']['get']('trackChanges');_0x5e69ba&&(_0x5e69ba['on']('execute',(_0x10b7b2,[,_0x40cdec])=>{this['_trackChangesValueDuringImport']=_0x5b80c5['value'],_0x40cdec['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5e69ba,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5e69ba,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5b80c5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x816837['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x244063,_0x2616af){const {suggestions:_0x3821ce}=_0x2616af,_0x3e7401=this['editor']['commands']['get']('trackChanges'),_0xde7798=_0x3e7401['value'];this['_trackChangesValueDuringImport']!==_0xde7798&&(_0x3e7401['execute'](),this['_trackChangesExecuted']=!0x0),_0x3821ce&&_0x3821ce['forEach'](({id:_0x3f9bff,type:_0x537cfd,author:_0x4eabdc,created_at:_0x503e33})=>{const _0x4d7f78={'id':_0x3f9bff,'type':_0x537cfd,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4eabdc,'createdAt':_0x503e33?new Date(_0x503e33):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4d7f78);});}}class ut extends _0x330415{['afterInit'](){const _0x2d5835=this['editor'],_0x1edc70=_0x2d5835['plugins']['get']('TrackChangesEditing');if(_0x2d5835['plugins']['has']('IndentEditing')&&(_0x1edc70['enableCommand']('indent'),_0x1edc70['enableCommand']('outdent')),_0x2d5835['plugins']['has']('IndentBlock')){for(const _0x1303a0 of['indentBlock','outdentBlock'])_0x1edc70['enableDefaultAttributesIntegration'](_0x1303a0);}const _0x55dfe3=_0x2d5835['locale'];_0x1edc70['registerBlockAttribute']('blockIndent'),_0x1edc70['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x55dfe3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x71ffe8=this['editor'],_0x206649=_0x71ffe8['locale'],_0x4bd161=_0x71ffe8['plugins']['get']('TrackChangesEditing');_0x4bd161['descriptionFactory']['registerDescriptionCallback'](_0x37cb54=>{if('formatBlock'!=_0x37cb54['type'])return;const {data:_0x42e98b}=_0x37cb54;if(!_0x42e98b)return;if('indentBlock'!=_0x42e98b['commandName']&&'outdentBlock'!=_0x42e98b['commandName'])return;const _0x5b5db0=_0x37cb54['getItems']()[0x0],_0x4a00db=_0x4bd161['descriptionFactory']['getItemLabel'](_0x5b5db0);return'indentBlock'==_0x42e98b['commandName']?{'type':'format','content':o(_0x206649,'*Indent:*\x20%0',_0x4a00db)}:'outdentBlock'==_0x42e98b['commandName']?{'type':'format','content':o(_0x206649,'*Outdent:*\x20%0',_0x4a00db)}:void 0x0;});}}class ft extends _0x330415{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x330415{['afterInit'](){const _0x569b9e=this['editor'];if(!_0x569b9e['plugins']['has']('LinkEditing'))return;const _0x4008fe=_0x569b9e['plugins']['get']('TrackChangesEditing'),_0x28088f=_0x569b9e['commands']['get']('link');_0x4008fe['enableDefaultAttributesIntegration']('link'),_0x4008fe['enableDefaultAttributesIntegration']('unlink'),_0x4008fe['registerInlineAttribute']('linkHref');for(const _0x5902a0 of _0x28088f['manualDecorators'])_0x4008fe['registerInlineAttribute'](_0x5902a0['id']),_0x4008fe['descriptionFactory']['registerAttributeLabel'](_0x5902a0['id'],'link\x20('+_0x5902a0['label']['toLowerCase']()+')');_0x4008fe['descriptionFactory']['registerDescriptionCallback'](_0x346794=>{if('attribute'!=_0x346794['type'])return;const {data:_0x314e0b}=_0x346794;if(!_0x314e0b||'linkHref'!=_0x314e0b['key'])return;const _0x4c8a16=_0x314e0b['newValue'],_0x5629dc=_0x569b9e['locale'];return{'type':'format','content':null==_0x4c8a16?o(_0x5629dc,'*Remove\x20link*'):o(_0x5629dc,'*Set\x20link:*\x20%0','\x22'+_0x4c8a16+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44c5c0=this['editor'],_0x50ac5a=_0x44c5c0['locale'];_0x44c5c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432529=>{if('formatInline'!=_0x432529['type'])return;const {data:_0x355333}=_0x432529;if(_0x355333){if('link'==_0x355333['commandName']){const _0x52ee5a=_0x355333['commandParams'][0x0];return{'type':'format','content':o(_0x50ac5a,'*Set\x20link:*\x20%0','\x22'+_0x52ee5a+'\x22')};}return'unlink'==_0x355333['commandName']?{'type':'format','content':o(_0x50ac5a,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x330415{['afterInit'](){const _0x13fe06=this['editor'],_0x18b590=_0x13fe06['locale'];if(!_0x13fe06['plugins']['has']('LegacyListEditing'))return;const _0x3f79e5=_0x13fe06['plugins']['get']('TrackChangesEditing'),_0x249e5a=_0x13fe06['plugins']['has']('LegacyTodoListEditing');function _0x361b33(_0x4801b7){return()=>{const _0x284fa7=_0x13fe06['model']['document']['selection'],_0x3fc012=_0x13fe06['commands']['get'](_0x4801b7);if(_0x3fc012['value'])return void _0x13fe06['execute']('paragraph',{});const _0x2cb614=_0x4801b7['slice'](0x0,-0x4),_0x1fffa0=function(_0x3a2390,_0x3edc4d,_0x1906b7){let _0x2d3947=Array['from'](_0x3a2390)['filter'](_0x3b8848=>function(_0x42bf16,_0x2c7beb){return _0x2c7beb['checkChild'](_0x42bf16['parent'],'listItem')&&!_0x2c7beb['isObject'](_0x42bf16);}(_0x3b8848,_0x1906b7));_0x2d3947=_0x2d3947['filter'](_0x77bdf8=>!_0x77bdf8['is']('element','listItem')||_0x77bdf8['getAttribute']('listType')!=_0x3edc4d);const _0x52200b=new Set();for(const _0x2284a6 of _0x2d3947)_0x2284a6['is']('element','listItem')?_0x52200b['add'](Le(_0x2284a6)):_0x52200b['add'](_0x2284a6);return Array['from'](_0x52200b);}(_0x284fa7['getSelectedBlocks'](),_0x2cb614,_0x13fe06['model']['schema']);_0x13fe06['model']['change'](()=>{for(const _0x4910dc of _0x1fffa0)_0x3f79e5['markBlockFormat'](_0x4910dc,{'commandName':_0x4801b7,'commandParams':[{'forceValue':!_0x3fc012['value']}],'formatGroupId':'blockName'},Ee(_0x4910dc));});};}function _0x1b6098(_0x12c700){return()=>{const _0x188344=function(_0x12b81a){let _0x3975cf=Array['from'](_0x12b81a);const _0xde91d2=_0x3975cf['findIndex'](_0x34dc79=>'listItem'!=_0x34dc79['name']);return _0xde91d2>-0x1&&(_0x3975cf=_0x3975cf['slice'](0x0,_0xde91d2)),_0x3975cf;}(_0x13fe06['model']['document']['selection']['getSelectedBlocks']()),_0x4f1f22=_0x13fe06['model']['createRange'](_0x13fe06['model']['createPositionAt'](_0x188344[0x0],'before'),_0x13fe06['model']['createPositionAt'](_0x188344[_0x188344['length']-0x1],'end'));_0x13fe06['model']['change'](()=>{_0x3f79e5['markBlockFormat'](_0x4f1f22,{'commandName':_0x12c700,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4abd15){const _0x59a244=new Set();for(const _0x23a1de of _0x4abd15){let _0x491283=_0x23a1de['nextSibling'];for(;_0x491283&&_0x491283['getAttribute']('listIndent')>_0x23a1de['getAttribute']('listIndent');)_0x59a244['add'](_0x491283),_0x491283=_0x491283['nextSibling'];}return Array['from'](_0x59a244);}(_0x188344));});};}_0x3f79e5['enableCommand']('numberedList',_0x361b33('numberedList')),_0x3f79e5['enableCommand']('bulletedList',_0x361b33('bulletedList')),_0x249e5a&&_0x3f79e5['enableCommand']('todoList',_0x361b33('todoList')),_0x3f79e5['enableCommand']('indentList',_0x1b6098('indentList')),_0x3f79e5['enableCommand']('outdentList',_0x1b6098('outdentList')),_0x249e5a&&_0x3f79e5['enableCommand']('checkTodoList',()=>{const _0x403f7c=_0x13fe06['commands']['get']('checkTodoList'),_0x182980=Array['from'](_0x403f7c['_selectedElements']);_0x182980['filter'](_0x96c8e0=>_0x96c8e0['getAttribute']('todoListChecked')!=_0x403f7c['value']),_0x13fe06['model']['change'](()=>{for(const _0xbb730e of _0x182980)_0x3f79e5['markBlockFormat'](_0xbb730e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x403f7c['value']}]});});}),_0x3f79e5['descriptionFactory']['registerElementLabel']('listItem',_0xce6450=>o(_0x18b590,'ELEMENT_LIST_ITEM',_0xce6450)),_0x3f79e5['descriptionFactory']['registerDescriptionCallback'](_0x2547b2=>{if('formatBlock'!=_0x2547b2['type']&&'formatInline'!=_0x2547b2['type'])return;const {data:_0xd2a30b}=_0x2547b2;if(_0xd2a30b){if('numberedList'==_0xd2a30b['commandName']||'bulletedList'==_0xd2a30b['commandName']||'todoList'==_0xd2a30b['commandName'])switch(_0xd2a30b['commandName']['replace']('List','')){case'bulleted':return _0xc19fc9(o(_0x18b590,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc19fc9(o(_0x18b590,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc19fc9(o(_0x18b590,'ELEMENT_TODO_LIST'));}if('indentList'==_0xd2a30b['commandName'])return{'type':'format','content':o(_0x18b590,'*Indent:*\x20%0',o(_0x18b590,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xd2a30b['commandName'])return{'type':'format','content':o(_0x18b590,'*Outdent:*\x20%0',o(_0x18b590,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xd2a30b['commandName'])return _0xd2a30b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18b590,'*Check\x20item*')}:{'type':'format','content':o(_0x18b590,'*Uncheck\x20item*')};}function _0xc19fc9(_0x3e6daf){return{'type':'format','content':o(_0x18b590,'*Change\x20to:*\x20%0',_0x3e6daf)};}});}}function Le(_0x3a362d){const _0x18419b=_0x3a362d['getAttribute']('listIndent');if(0x0==_0x18419b)return _0x3a362d;let _0x42228c=_0x3a362d;for(;_0x3a362d['previousSibling']&&_0x3a362d['previousSibling']['is']('element','listItem');){const _0x169bd8=_0x3a362d['previousSibling']['getAttribute']('listIndent');if(_0x169bd8==_0x18419b)_0x42228c=_0x3a362d['previousSibling'];else{if(_0x169bd8<_0x18419b)break;}_0x3a362d=_0x3a362d['previousSibling'];}return _0x42228c;}function Ee(_0x21f1b3){const _0x3ce480=[];if(_0x21f1b3['is']('element','listItem')&&_0x21f1b3['getAttribute']('listIndent')>0x0){let _0x415820=_0x21f1b3['nextSibling'];for(;_0x415820&&'listItem'==_0x415820['name']&&_0x415820['getAttribute']('listIndent')==_0x21f1b3['getAttribute']('listIndent');)_0x3ce480['push'](_0x415820),_0x415820=_0x415820['nextSibling'];}return _0x3ce480;}class Q extends _0x330415{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x84634c=this['editor']['config']['get']('list.properties'),_0x372d52=this['editor']['plugins']['get']('TrackChangesEditing');_0x84634c['styles']&&_0x372d52['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x84634c['reversed']&&_0x372d52['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x84634c['startIndex']&&_0x372d52['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x372d52['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x112e22,_0x4ad615={}){const _0x112dce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30c23f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x112dce['markMultiRangeBlockFormat'](_0x30c23f,{'commandName':'listStyle','commandParams':[{'type':_0x4ad615['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39a2b6,_0x3c3152={}){const _0x182e91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34857e=this['_getSuggestionBlocks'](_0x3bb5f8=>_0x3bb5f8['is']('element','listItem')&&'numbered'===_0x3bb5f8['getAttribute']('listType'));if(_0x34857e['length']<0x1)return;const _0x10ba5d=_0x34857e['map'](_0x3fa614=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3fa614,'before'),this['editor']['model']['createPositionAt'](_0x3fa614,0x0)));this['editor']['model']['change'](()=>{_0x182e91['markMultiRangeBlockFormat'](_0x10ba5d,{'commandName':'listReversed','commandParams':[{'reversed':_0x3c3152['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xf4c03a,_0x4f48b8={}){const _0x123a00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x74976e=this['_getSuggestionBlocks'](_0x29046e=>_0x29046e['is']('element','listItem')&&'numbered'===_0x29046e['getAttribute']('listType'));if(_0x74976e['length']<0x1)return;const _0x2a3256=_0x74976e['map'](_0x36ef6f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36ef6f,'before'),this['editor']['model']['createPositionAt'](_0x36ef6f,0x0)));this['editor']['model']['change'](()=>{_0x123a00['markMultiRangeBlockFormat'](_0x2a3256,{'commandName':'listStart','commandParams':[{'startIndex':_0x4f48b8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x405395){if('formatBlock'!=_0x405395['type']&&'formatInline'!=_0x405395['type'])return;const _0xed0aad=this['editor']['locale'],{data:_0x4ab7c6}=_0x405395;if(!_0x4ab7c6)return;let _0x509f16,_0x5d5069;switch(_0x4ab7c6['commandName']){case'listStyle':_0x509f16='*Change\x20to:*\x20%0',_0x5d5069={'type':'format','content':o(_0xed0aad,_0x509f16,o(_0xed0aad,this['_getTranslationKeyForListStyle'](_0x4ab7c6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x509f16=_0x4ab7c6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5d5069={'type':'format','content':o(_0xed0aad,_0x509f16)};break;case'listStart':_0x509f16='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d5069={'type':'format','content':o(_0xed0aad,_0x509f16,_0x4ab7c6['commandParams'][0x0]['startIndex'])};}return _0x5d5069;}['_getSuggestionBlocksForListStyle'](){const _0x19b388=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b250b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2b250b[0x0]?.['is']('element','listItem')&&_0x2b250b['unshift'](..._0x19b388['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2b250b[_0x2b250b['length']-0x1]?.['is']('element','listItem')&&_0x2b250b['push'](..._0x19b388['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b250b=[...new Set(_0x2b250b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2b250b=_0x2b250b['filter'](_0x10e7ef=>_0x10e7ef['is']('element','listItem'))),_0x2b250b;}['_getSuggestionBlocks'](_0x2e9384){const _0x47719b=this['editor']['plugins']['get']('LegacyListUtils');let _0x45ae07=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2e9384)['map'](_0x507a04=>{const _0x5d99fb=this['editor']['model']['createPositionAt'](_0x507a04,0x0);return[..._0x47719b['getSiblingNodes'](_0x5d99fb,'backward'),..._0x47719b['getSiblingNodes'](_0x5d99fb,'forward')];})['flat']();return _0x45ae07=[...new Set(_0x45ae07)],_0x45ae07;}['_getTranslationKeyForListStyle'](_0x30bd71){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x30bd71)||'default')['toUpperCase']()+'_LIST_'+_0x30bd71['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x330415{['afterInit'](){const _0x87f117=this['editor'];if(!_0x87f117['plugins']['has']('MediaEmbedEditing'))return;const _0x12b493=_0x87f117['plugins']['get']('TrackChangesEditing'),_0x4558df=_0x87f117['locale'];_0x12b493['enableCommand']('mediaEmbed'),_0x12b493['descriptionFactory']['registerElementLabel']('media',_0x684d4e=>o(_0x4558df,'ELEMENT_MEDIA',_0x684d4e)),_0x87f117['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4fc7f7,{writer:_0x506e0e,options:_0x41f2c5})=>{if(_0x41f2c5['showSuggestionHighlights'])return _0x506e0e['createEmptyElement']('div');},'converterPriority':'high'}),_0x87f117['data']['downcastDispatcher']['on']('attribute:url:media',(_0x456306,_0xbdb54f,_0x43ac9c)=>{_0x43ac9c['options']['showSuggestionHighlights']&&_0x456306['stop']();},{'priority':'high'});}}class dt extends _0x330415{['afterInit'](){const _0x710366=this['editor'];_0x710366['plugins']['has']('MentionEditing')&&_0x710366['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x330415{['afterInit'](){const _0x488deb=this['editor'];if(!_0x488deb['plugins']['has']('MergeFieldsEditing'))return;const _0x578759=_0x488deb['plugins']['get']('TrackChangesEditing'),_0x614c48=_0x488deb['locale'];_0x578759['enableCommand']('insertMergeField'),_0x578759['enableCommand']('insertMergeFieldBlock'),_0x578759['enableCommand']('insertMergeFieldImage'),_0x578759['descriptionFactory']['registerElementLabel']('mergeField',_0x50b60b=>o(_0x614c48,'ELEMENT_MERGE_FIELD',_0x50b60b)),_0x578759['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5b9021=>o(_0x614c48,'ELEMENT_MERGE_FIELD',_0x5b9021)),_0x578759['descriptionFactory']['registerDescriptionCallback'](_0x5a1383=>{if('insertion'!=_0x5a1383['type']&&'deletion'!=_0x5a1383['type'])return;const _0x4e7451=_0x5a1383['getContainedElement']();if(null==_0x4e7451)return;const _0x214886=_0x488deb['plugins']['get']('MergeFieldsEditing');let _0x566740;switch(_0x214886['getMergeFieldType'](_0x4e7451)){case null:return;case'image':{const _0x5320e1=_0x214886['unwrapAffixes'](_0x4e7451['getAttribute']('src'));_0x566740=_0x214886['getLabel'](_0x5320e1)||_0x5320e1;break;}default:{const _0x44c9f2=_0x4e7451['getAttribute']('id');_0x566740=_0x214886['getLabel'](_0x44c9f2)||_0x44c9f2;break;}}return'insertion'==_0x5a1383['type']?{'type':'insertion','content':o(_0x614c48,'*Insert:*\x20%0','\x22'+_0x566740+'\x22\x20'+o(_0x614c48,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x614c48,'*Remove:*\x20%0','\x22'+_0x566740+'\x22\x20'+o(_0x614c48,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x330415{['afterInit'](){const _0x2fde29=this['editor'],_0x119c97=_0x2fde29['plugins']['get']('TrackChangesEditing');_0x2fde29['plugins']['has']('MultiLevelList')&&(_0x119c97['enableDefaultAttributesIntegration']('multiLevelList'),_0x119c97['registerBlockAttribute']('listMarkerStyle'),_0x119c97['descriptionFactory']['registerDescriptionCallback'](_0x367e2c=>this['handleDescriptions'](_0x367e2c)));}['handleDescriptions'](_0x4b6338){const _0x28281e=this['editor']['locale'],{data:_0x3d4736}=_0x4b6338,_0x44284f={'type':'format','content':''};if(_0x3d4736&&'listMarkerStyle'==_0x3d4736['key']){if(!_0x3d4736['oldValue'])return{'type':'format','content':o(_0x28281e,'*Set\x20format:*\x20%0',o(_0x28281e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d4736['newValue']+')'};if(!_0x3d4736['newValue']){let _0x3e0582=_0x4b6338['head'];for(;_0x3e0582;){if(_0x3e0582['data']&&'listType'==_0x3e0582['data']['key']&&_0x3e0582['data']['newValue'])return _0x44284f;_0x3e0582=_0x3e0582['next'];}return{'type':'format','content':o(_0x28281e,'*Remove\x20format:*\x20%0',o(_0x28281e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d4736['oldValue']+')'};}}}}class kt extends _0x330415{['afterInit'](){const _0x1d92c9=this['editor'];if(!_0x1d92c9['plugins']['has']('PageBreakEditing'))return;_0x1d92c9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x343c8a=_0x1d92c9['plugins']['get']('TrackChangesEditing'),_0x21714d=_0x1d92c9['locale'];_0x343c8a['descriptionFactory']['registerElementLabel']('pageBreak',_0x19c275=>o(_0x21714d,'ELEMENT_PAGE_BREAK',_0x19c275));}}class bt extends _0x330415{['afterInit'](){const _0x46a9a4=this['editor'];if(!_0x46a9a4['plugins']['has']('Paragraph'))return;const _0x14b714=_0x46a9a4['locale'],_0x2f84b0=_0x46a9a4['plugins']['get']('TrackChangesEditing');_0x2f84b0['descriptionFactory']['registerElementLabel']('paragraph',_0x146b5e=>o(_0x14b714,'ELEMENT_PARAGRAPH',_0x146b5e)),_0x2f84b0['enableDefaultAttributesIntegration']('paragraph'),_0x2f84b0['enableCommand']('insertParagraph'),_0x46a9a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x46a9a4),{'priority':'highest'}),_0x46a9a4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x466f02,_0x47b0d6,_0x372c5b)=>{_0x372c5b['options']['showSuggestionHighlights']&&nr(_0x46a9a4,{'showActiveMarker':!0x1})(_0x466f02,_0x47b0d6,_0x372c5b);},{'priority':'highest'});const _0x3bbc77=_0x2f84b0['descriptionFactory'];_0x3bbc77['registerDescriptionCallback'](_0x560559=>{if('insertion'!==_0x560559['type'])return;const {start:_0x3090d9,end:_0x12c9d3}=_0x560559['getFirstRange']();if(!_0x3090d9['isTouching'](_0x12c9d3)||!_0x3090d9['nodeAfter'])return;const _0xdf02a0=_0x46a9a4['model']['schema'],_0x1912aa=_0x3090d9['nodeAfter'];return _0xdf02a0['isBlock'](_0x1912aa)&&!_0xdf02a0['isLimit'](_0x1912aa)&&_0xdf02a0['checkChild'](_0x1912aa,'$text')?{'type':'insertion','content':o(_0x14b714,'*Insert:*\x20%0',_0x3bbc77['getItemLabel'](_0x1912aa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa18eca=this['editor'],_0x4951dd=_0xa18eca['locale'];_0xa18eca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23e060=>{if('formatBlock'!=_0x23e060['type'])return;const {data:_0x518675}=_0x23e060;return _0x518675&&'paragraph'==_0x518675['commandName']?{'type':'format','content':o(_0x4951dd,'*Change\x20to:*\x20%0',o(_0x4951dd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3e9ebe,{showActiveMarker:_0x2c742f=!0x0}={}){return(_0x1b225b,_0x8df33a,_0x1b8c18)=>{const _0x5584f8=_0x3e9ebe['plugins']['get']('TrackChangesEditing'),_0x2bb179=_0x8df33a['markerRange']['start'],_0x2084a7=_0x8df33a['markerRange']['end'],_0x270ef4=_0x3e9ebe['model']['schema'];if(!_0x2bb179['isTouching'](_0x2084a7)||!_0x2bb179['nodeAfter'])return;const _0x1c7e5b=_0x2bb179['nodeAfter'];if(_0x270ef4['isBlock'](_0x1c7e5b)&&!_0x270ef4['isLimit'](_0x1c7e5b)&&_0x270ef4['checkChild'](_0x1c7e5b,'$text')){if(!_0x1b8c18['consumable']['consume'](_0x8df33a['markerRange'],_0x1b225b['name']))return;const {authorId:_0x31dc12}=_0x5584f8['_splitMarkerName'](_0x8df33a['markerName']),_0x56ee7f=_0x1b8c18['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x31dc12}),_0x2d10a2=_0x1b8c18['mapper']['toViewPosition'](_0x2084a7);_0x2c742f&&_0x5584f8['activeMarkers']['includes'](_0x8df33a['markerName'])&&_0x1b8c18['writer']['addClass']('ck-suggestion-marker--active',_0x56ee7f),_0x1b8c18['writer']['insert'](_0x2d10a2,_0x56ee7f),_0x1b8c18['mapper']['bindElementToMarker'](_0x56ee7f,_0x8df33a['markerName']);}};}class yt extends _0x330415{['afterInit'](){const _0x2a01ef=this['editor'];_0x2a01ef['commands']['get']('replaceSource')&&_0x2a01ef['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x330415{['afterInit'](){const _0x5808d7=this['editor'];if(!_0x5808d7['plugins']['has']('RemoveFormatEditing'))return;_0x5808d7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2817=this['editor'];_0x3a2817['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9fbf03=>{if('formatBlock'!=_0x9fbf03['type']&&'formatInline'!=_0x9fbf03['type'])return;const {data:_0x4f67c5}=_0x9fbf03;return _0x4f67c5&&'removeFormat'==_0x4f67c5['commandName']?{'type':'format','content':o(_0x3a2817['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class St extends _0x330415{['afterInit'](){const _0x3f391a=this['editor'];if(!_0x3f391a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x35b325=_0x3f391a['plugins']['get']('TrackChangesEditing');_0x35b325['enableCommand']('goToPreviousRestrictedEditingException'),_0x35b325['enableCommand']('goToNextRestrictedEditingException');const _0x180a18=_0x3f391a['plugins']['get']('RestrictedEditingModeEditing');_0x180a18['enableCommand']('trackChanges'),_0x180a18['enableCommand']('acceptSuggestion'),_0x180a18['enableCommand']('discardSuggestion'),_0x180a18['enableCommand']('acceptAllSuggestions'),_0x180a18['enableCommand']('discardAllSuggestions'),_0x180a18['enableCommand']('acceptSelectedSuggestions'),_0x180a18['enableCommand']('discardSelectedSuggestions');}}class At extends _0x330415{static get['requires'](){return[_0x305297];}['init'](){const _0x2408c0=this['editor'],_0x583960=_0x2408c0['plugins']['get']('TrackChangesEditing');_0x583960['enableCommand']('shiftEnter'),_0x2408c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2408c0),{'priority':'high'}),_0x2408c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2408c0),{'priority':'high'}),_0x2408c0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a9ff6,_0x41cb09,_0x4c29f1)=>{_0x4c29f1['options']['showSuggestionHighlights']&&je(_0x2408c0,{'showActiveMarker':!0x1})(_0x3a9ff6,_0x41cb09,_0x4c29f1);}),_0x583960['descriptionFactory']['registerElementLabel']('softBreak',_0x317ff6=>o(_0x2408c0['locale'],'ELEMENT_LINE_BREAK',_0x317ff6));}}function je(_0x3c1668,{showActiveMarker:_0x22ad02=!0x0}={}){return(_0x5a58e0,_0x2ea81f,_0xc70e02)=>{const _0x509dae=_0x3c1668['plugins']['get']('TrackChangesEditing');if(!_0xc70e02['consumable']['test'](_0x2ea81f['markerRange'],_0x5a58e0['name']))return;const _0x4fbe75=_0x3c1668['model'];for(const _0xf293b of _0x2ea81f['markerRange']['getItems']()){if(!_0xf293b['is']('element','softBreak'))continue;const _0x565e52='deletion'==_0x2ea81f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x307307}=_0x509dae['_splitMarkerName'](_0x2ea81f['markerName']),_0x4b50c8=_0xc70e02['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x565e52,'data-author-id':_0x307307}),_0x18b753=_0xc70e02['mapper']['toViewPosition'](_0x4fbe75['createPositionBefore'](_0xf293b));_0x22ad02&&_0x509dae['activeMarkers']['includes'](_0x2ea81f['markerName'])&&_0xc70e02['writer']['addClass']('ck-suggestion-marker--active',_0x4b50c8),_0xc70e02['writer']['insert'](_0x18b753,_0x4b50c8),_0xc70e02['mapper']['bindElementToMarker'](_0x4b50c8,_0x2ea81f['markerName']);}};}class It extends _0x330415{['afterInit'](){const _0x4880f2=this['editor'],_0x3555cb=_0x4880f2['model'],_0x5c2067=_0x4880f2['locale'];if(!_0x4880f2['plugins']['has']('StandardEditingModeEditing'))return;const _0x28ff02=_0x4880f2['plugins']['get']('TrackChangesEditing'),_0x28b939='restrictedEditingException',_0x29ebe1=_0x4880f2['commands']['get'](_0x28b939);_0x28ff02['enableCommand'](_0x28b939,(_0x3032da,_0x2cb2c8={})=>{const _0x2c7f62=_0x3555cb['document']['selection'];if(_0x2c7f62['isCollapsed'])return void _0x3032da(_0x2cb2c8);const _0x5b6c96=void 0x0!==_0x2cb2c8['forceValue']?_0x2cb2c8['forceValue']:!_0x29ebe1['value'];_0x3555cb['change'](()=>{const _0x567e91=Array['from'](_0x2c7f62['getRanges']());for(const _0x10104a of _0x567e91){const _0x567c4f=_0x5b6c96?[_0x10104a]:io(_0x28b939,_0x10104a,_0x3555cb);for(const _0x499d55 of _0x567c4f)_0x28ff02['markInlineFormat'](_0x499d55,{'commandName':_0x28b939,'commandParams':[{'forceValue':_0x5b6c96}]});}});}),_0x28ff02['descriptionFactory']['registerDescriptionCallback'](_0x5dd3de=>{if('formatBlock'!=_0x5dd3de['type']&&'formatInline'!=_0x5dd3de['type'])return;const {data:_0x569501}=_0x5dd3de;return _0x569501&&_0x569501['commandName']==_0x28b939?_0x569501['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c2067,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5c2067,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x330415{['afterInit'](){const _0x24b091=this['editor'];if(!_0x24b091['plugins']['has']('Style')||!_0x24b091['plugins']['has']('DataSchema'))return;const _0x23d449=_0x24b091['plugins']['get']('TrackChangesEditing'),_0x488b71=_0x24b091['locale'],_0x11be34=_0x24b091['config']['get']('style')||{},_0x34dbef=_0x24b091['plugins']['get']('GeneralHtmlSupport'),_0x176cf9=_0x24b091['plugins']['get']('StyleUtils')['normalizeConfig'](_0x24b091['plugins']['get']('DataSchema'),_0x11be34['definitions']);_0x23d449['enableDefaultAttributesIntegration']('style');const _0x5d7ef0=new Set();for(const _0x39f436 of _0x176cf9['block']){const _0x4eb1bd=_0x34dbef['getGhsAttributeNameForElement'](_0x39f436['element']);_0x5d7ef0['add'](_0x4eb1bd);}const _0x26da80=new Set();for(const _0x4d1dc8 of _0x176cf9['inline']){const _0x5dfaed=_0x34dbef['getGhsAttributeNameForElement'](_0x4d1dc8['element']);_0x26da80['add'](_0x5dfaed);for(const _0x590e6e of _0x4d1dc8['ghsAttributes'])_0x26da80['add'](_0x590e6e);}for(const _0x30c976 of _0x5d7ef0)_0x23d449['registerBlockAttribute'](_0x30c976),_0x23d449['descriptionFactory']['registerAttributeLabel'](_0x30c976,o(_0x488b71,'FORMAT_STYLE'));for(const _0x36d6c5 of _0x26da80)_0x23d449['registerInlineAttribute'](_0x36d6c5),_0x23d449['descriptionFactory']['registerAttributeLabel'](_0x36d6c5,o(_0x488b71,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3362d2=this['editor'],_0x45883f=_0x3362d2['locale'];_0x3362d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47910e=>{if('formatBlock'!=_0x47910e['type']&&'formatInline'!=_0x47910e['type'])return;const {data:_0x1b16dc}=_0x47910e;return _0x1b16dc&&'style'===_0x1b16dc['commandName']?_0x1b16dc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45883f,'*Set\x20format:*\x20%0',_0x1b16dc['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x45883f,'*Remove\x20format:*\x20%0',_0x1b16dc['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x330415{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4180e8){super(_0x4180e8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d5aa3=this['editor'],_0x675933=_0x4d5aa3['model']['document']['selection'];if(!_0x4d5aa3['plugins']['has']('TableEditing'))return;const _0x1bee7a=_0x4d5aa3['locale'],_0x47b4b5=_0x4d5aa3['plugins']['get']('TrackChangesEditing'),_0xd6ff9=_0x4d5aa3['plugins']['get']('TableUtils');_0x47b4b5['descriptionFactory']['registerElementLabel']('table',_0x349039=>o(_0x1bee7a,'ELEMENT_TABLE',_0x349039)),this['_setupColumnsRowsFixing'](),_0x47b4b5['enableCommand']('insertTable'),_0x47b4b5['enableCommand']('selectTableRow'),_0x47b4b5['enableCommand']('selectTableColumn');for(const _0x4baf87 of['insertTableRowAbove','insertTableRowBelow']){const _0x5f3736=_0x4d5aa3['commands']['get'](_0x4baf87);_0x47b4b5['enableCommand'](_0x4baf87,_0x45ae4f=>{_0x4d5aa3['model']['change'](_0x112837=>{_0x45ae4f();const _0x3de89c='above'===_0x5f3736['order'],_0x1d7c20=_0xd6ff9['getSelectionAffectedTableCells'](_0x675933),_0x38995=_0xd6ff9['getRowIndexes'](_0x1d7c20),_0x55532d=_0x3de89c?_0x38995['first']-0x1:_0x38995['last']+0x1,_0x2f0d9e=_0x1d7c20[0x0]['findAncestor']('table'),_0x11fc51=_0xd6ff9['createTableWalker'](_0x2f0d9e,{'startRow':_0x55532d,'endRow':_0x55532d}),_0x6e2219=Array['from'](_0x11fc51)['map'](_0x3a26ba=>_0x112837['createRangeOn'](_0x3a26ba['cell']));_0x47b4b5['markMultiRangeInsertion'](_0x6e2219,'tableRow');});});}for(const _0x130d95 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4a4e17=_0x4d5aa3['commands']['get'](_0x130d95);_0x47b4b5['enableCommand'](_0x130d95,_0x34e473=>{_0x4d5aa3['model']['change'](_0xa04a0b=>{_0x34e473();const _0x4aee6a='left'===_0x4a4e17['order'],_0x8650c6=_0xd6ff9['getSelectionAffectedTableCells'](_0x675933),_0x3cbe61=_0xd6ff9['getColumnIndexes'](_0x8650c6),_0x52f775=_0x4aee6a?_0x3cbe61['first']-0x1:_0x3cbe61['last']+0x1,_0x348a8a=_0x8650c6[0x0]['findAncestor']('table'),_0x14735a=_0xd6ff9['createTableWalker'](_0x348a8a,{'startRow':0x0,'column':_0x52f775,'includeAllSlots':!0x1}),_0x3507e7=Array['from'](_0x14735a)['map'](_0x90e630=>_0xa04a0b['createRangeOn'](_0x90e630['cell']));_0x47b4b5['markMultiRangeInsertion'](_0x3507e7,'tableColumn');});});}for(const _0x3b7b5d of['removeTableRow','removeTableColumn']){const _0x4889e3=_0x3b7b5d['substr'](0xb),_0x42d743=_0x4889e3['toLowerCase'](),_0x237de7=_0x42d743['substr'](0x0,0x3)+'span',_0xfaf1eb='table'+_0x4889e3,_0x420c56='min'+_0x4889e3,_0x58fe17='max'+_0x4889e3;_0x47b4b5['enableCommand'](_0x3b7b5d,()=>{_0x4d5aa3['model']['change'](_0xce08ab=>{const _0x2da69b=_0xd6ff9['getSelectionAffectedTableCells'](_0x675933),_0x413ce4=_0x2da69b[0x0]['findAncestor']('table');let _0x5b825f;if('removeTableRow'==_0x3b7b5d){const _0x58d0c2=_0xd6ff9['getRowIndexes'](_0x2da69b);_0x5b825f={'startRow':_0x58d0c2['first'],'endRow':_0x58d0c2['last'],'includeAllSlots':!0x0};}else{const _0x21795e=_0xd6ff9['getColumnIndexes'](_0x2da69b);_0x5b825f={'startColumn':_0x21795e['first'],'endColumn':_0x21795e['last'],'includeAllSlots':!0x0};}const _0x14d4b1=_0xd6ff9['createTableWalker'](_0x413ce4,_0x5b825f),_0x13a827=Array['from'](_0x14d4b1)['map'](({cell:_0x34bc6c})=>_0x34bc6c),_0x435930=Ne(_0x13a827['filter'](_0x580a4e=>_0x580a4e['hasAttribute'](_0x237de7))),_0x218eca=Ne(_0x13a827['filter'](_0x89c69e=>!_0x89c69e['hasAttribute'](_0x237de7)))['map'](_0x4b7bef=>_0xce08ab['createRangeOn'](_0x4b7bef)),_0x46032f=_0x47b4b5['markMultiRangeDeletion'](_0x218eca,_0xfaf1eb);if(_0x46032f&&('tableRow'==_0x46032f['subType']||'tableColumn'==_0x46032f['subType'])){const _0x517dd1=this['_getSuggestionCoords'](_0x46032f);for(const _0x47fb69 of _0x435930){const _0x5264bf=_0xce08ab['createRangeOn'](_0x47fb69),_0x193ff4=_0xd6ff9['getCellLocation'](_0x47fb69),_0x1a3e83=_0x47fb69['getAttribute'](_0x237de7)-0x1,_0x42dbaf=_0x517dd1[_0x420c56],_0x5ace47=_0x517dd1[_0x58fe17];_0x42dbaf<=_0x193ff4[_0x42d743]&&_0x193ff4[_0x42d743]+_0x1a3e83<=_0x5ace47&&_0x46032f['addRange'](_0x5264bf);}}});});}function _0x264f1a(_0x58c85a){const _0x279639=Array['from'](_0x675933['getRanges']())['map'](_0x23e378=>_0x41d70f['fromRange'](_0x23e378));_0x4d5aa3['model']['change'](_0x10f0bd=>{const _0x47b993=_0x10f0bd['batch'];_0x58c85a=_0x58c85a['filter'](_0x5331ab=>'$graveyard'!=_0x5331ab['root']['rootName']),_0x10f0bd['setSelection'](_0x58c85a),_0x4d5aa3['commands']['get']('removeTableRow')['refresh'](),_0x4d5aa3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d5aa3['model']['enqueueChange'](()=>{_0x4d5aa3['model']['enqueueChange'](_0x47b993,_0x168212=>{const _0x5d3740=_0x279639['filter'](_0x25ed84=>'$graveyard'!=_0x25ed84['root']['rootName']);_0x5d3740['length']>0x0&&_0x168212['setSelection'](_0x5d3740);for(const _0x20e6c2 of _0x279639)_0x20e6c2['detach']();});});});}function _0x3aa852(_0x546f72){_0x4d5aa3['model']['change'](_0x26f9cd=>{const _0x578520=Array['from'](_0x675933['getRanges']())['map'](_0x566b9d=>_0x41d70f['fromRange'](_0x566b9d)),_0x2248a0=[];for(const _0x3ecb85 of _0x546f72)for(const _0x34ece2 of _0x3ecb85['getItems']({'shallow':!0x0}))_0x2248a0['push'](_0x34ece2);for(const _0x3a7087 of _0x2248a0)'$graveyard'!=_0x3a7087['root']['rootName']&&(_0x26f9cd['setSelection'](_0x26f9cd['createPositionAt'](_0x3a7087,0x0)),_0x4d5aa3['commands']['get']('removeTableColumn')['refresh'](),_0x4d5aa3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6eeda=_0x578520['filter'](_0x234577=>'$graveyard'!=_0x234577['root']['rootName']);_0x6eeda['length']>0x0&&_0x26f9cd['setSelection'](_0x6eeda);for(const _0x1849d9 of _0x578520)_0x1849d9['detach']();});}function _0x37002d(_0x42920f,_0x52451e){return _0x52451e['every'](_0x484331=>_0x42920f['some'](_0x48ab9b=>_0x48ab9b['end']['isEqual'](_0x484331['start'])||_0x484331['end']['isEqual'](_0x48ab9b['start'])));}function _0x3b0d08(_0x57d330,_0x3177c2){return!_0x57d330['some'](_0x5a53fc=>_0x3177c2['some'](_0x2a8c57=>_0x5a53fc['isIntersecting'](_0x2a8c57)))&&_0x57d330['some'](_0x459cba=>_0x3177c2['some'](_0x1db12c=>_0x459cba['end']['isTouching'](_0x1db12c['start'])));}_0x4d5aa3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd4c30e,_0x5d7bc7,_0x4baf50)=>{if(!_0x4baf50['options']['showSuggestionHighlights'])return;const _0x26c8ba=_0x5d7bc7['item'];if(!_0x26c8ba)return;const _0x487bfe=_0x4baf50['mapper']['toViewElement'](_0x26c8ba);function _0x54c7e7(_0x578232){return Array['isArray'](_0x578232)?_0x578232:[_0x578232];}_0x487bfe&&'tableCell'===_0x26c8ba['name']&&_0x324800(_0x487bfe,_0x4baf50['writer'],(_0x184e4c,_0x1556b5,_0x3ad123)=>_0x3ad123['addClass'](_0x54c7e7(_0x1556b5['classes']),_0x184e4c),(_0x2c1d17,_0x4fc759,_0x40dc57)=>_0x40dc57['removeClass'](_0x54c7e7(_0x4fc759['classes']),_0x2c1d17));},{'priority':'highest'}),_0x47b4b5['descriptionFactory']['registerDescriptionCallback'](_0x4684d1=>{if('insertion'!=_0x4684d1['type']&&'deletion'!=_0x4684d1['type'])return;const _0x3b5f9a=_0x4684d1['getContainedElement']();if(null!=_0x3b5f9a&&_0x3b5f9a['is']('element','table')){if('insertion'==_0x4684d1['type']){const _0x518f47=_0x4684d1['getItems']()['filter'](_0x256410=>_0x256410['is']('$textProxy'))['map'](_0x519048=>_0x519048['data']);if(_0x518f47['length'])return{'type':'insertion','content':o(_0x1bee7a,'*Insert:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x518f47['join']('\x20')+'\x22'))};}if('deletion'==_0x4684d1['type']){const _0x36e605=_0x4684d1['getItems']()['filter'](_0x10081a=>_0x10081a['is']('$textProxy'))['map'](_0x287f75=>_0x287f75['data']);if(_0x36e605['length'])return{'type':'deletion','content':o(_0x1bee7a,'*Remove:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36e605['join']('\x20')+'\x22'))};}}}),_0x47b4b5['descriptionFactory']['registerDescriptionCallback'](_0x47cdf6=>{if('tableRow'==_0x47cdf6['subType']){const _0x3dc63d=_0x47cdf6['getItems']()['filter'](_0x2b2063=>_0x2b2063['is']('$textProxy'))['map'](_0x3ae820=>_0x3ae820['data']),_0x34a831=this['_getSuggestionCoords'](_0x47cdf6),_0x44496a=_0x34a831['maxRow']-_0x34a831['minRow']+0x1;if('insertion'==_0x47cdf6['type'])return _0x3dc63d['length']?{'type':'insertion','content':o(_0x1bee7a,'*Insert:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44496a,'\x22'+_0x3dc63d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1bee7a,'*Insert:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_ROW',_0x44496a))};if('deletion'==_0x47cdf6['type'])return _0x3dc63d['length']?{'type':'deletion','content':o(_0x1bee7a,'*Remove:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44496a,'\x22'+_0x3dc63d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1bee7a,'*Remove:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_ROW',_0x44496a))};}if('tableColumn'==_0x47cdf6['subType']){const _0x3fa3b5=_0x47cdf6['getItems']()['filter'](_0x37b19d=>_0x37b19d['is']('$textProxy'))['map'](_0x35e697=>_0x35e697['data']),_0x18bec1=this['_getSuggestionCoords'](_0x47cdf6),_0x13e02c=_0x18bec1['maxColumn']-_0x18bec1['minColumn']+0x1;if('insertion'==_0x47cdf6['type'])return _0x3fa3b5['length']?{'type':'insertion','content':o(_0x1bee7a,'*Insert:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13e02c,'\x22'+_0x3fa3b5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1bee7a,'*Insert:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_COLUMN',_0x13e02c))};if('deletion'==_0x47cdf6['type'])return _0x3fa3b5['length']?{'type':'deletion','content':o(_0x1bee7a,'*Remove:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x13e02c,'\x22'+_0x3fa3b5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1bee7a,'*Remove:*\x20%0',o(_0x1bee7a,'ELEMENT_TABLE_COLUMN',_0x13e02c))};}}),_0x47b4b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x264f1a),_0x47b4b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x264f1a),_0x47b4b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3aa852),_0x47b4b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3aa852),_0x47b4b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37002d),_0x47b4b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37002d),_0x47b4b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3b0d08),_0x47b4b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3b0d08);}['_acceptFormatSuggestionCallbackFactory'](){const _0x233fa8=this['editor'],_0xd7273d=_0x233fa8['model']['document']['selection'];return(_0x439711,_0xb11f03)=>{_0x233fa8['model']['change'](_0x653c5b=>{const {commandName:_0x207b5c,commandParams:_0x36dd88}=_0xb11f03;let _0x5b99e6=_0x439711[0x0]['end']['nodeBefore'];_0x36dd88&&_0x36dd88[0x0]&&!0x1===_0x36dd88[0x0]['forceValue']&&(_0x5b99e6=_0x439711[0x0]['start']['nodeAfter']);const _0x5737d2=_0x653c5b['createRangeIn'](_0x5b99e6);if('$graveyard'==_0x5737d2['root']['rootName'])return;const _0x508c3=Array['from'](_0xd7273d['getRanges']())['map'](_0x38f0c8=>_0x41d70f['fromRange'](_0x38f0c8));_0x653c5b['setSelection'](_0x5737d2),_0x233fa8['commands']['get'](_0x207b5c)['refresh'](),_0x36dd88['push']({'forceDefaultExecution':!0x0}),_0x233fa8['execute'](_0x207b5c,..._0x36dd88);const _0x1b7efd=_0x508c3['filter'](_0x3f6685=>'$graveyard'!=_0x3f6685['root']['rootName']);_0x1b7efd['length']>0x0&&_0x653c5b['setSelection'](_0x1b7efd);for(const _0x582845 of _0x508c3)_0x582845['detach']();});};}['_getCoordsForCells'](_0x48a0f5){const _0x206898=this['editor']['plugins']['get']('TableUtils');let _0x530abc=Number['MAX_SAFE_INTEGER'],_0x2d8d59=Number['MIN_SAFE_INTEGER'],_0x5e746f=Number['MAX_SAFE_INTEGER'],_0x25c393=Number['MIN_SAFE_INTEGER'];for(const _0x29ea4a of _0x48a0f5){if('$graveyard'==_0x29ea4a['root']['rootName'])continue;const {row:_0xef907a,column:_0x238fd8}=_0x206898['getCellLocation'](_0x29ea4a),_0xb57b09=_0x29ea4a['hasAttribute']('rowspan')?_0x29ea4a['getAttribute']('rowspan')-0x1:0x0,_0x2e0d74=_0x29ea4a['hasAttribute']('colspan')?_0x29ea4a['getAttribute']('colspan')-0x1:0x0;_0x530abc=_0xef907a<_0x530abc?_0xef907a:_0x530abc,_0x2d8d59=_0xef907a+_0xb57b09>_0x2d8d59?_0xef907a+_0xb57b09:_0x2d8d59,_0x5e746f=_0x238fd8<_0x5e746f?_0x238fd8:_0x5e746f,_0x25c393=_0x238fd8+_0x2e0d74>_0x25c393?_0x238fd8+_0x2e0d74:_0x25c393;}return{'minRow':_0x530abc,'maxRow':_0x2d8d59,'minColumn':_0x5e746f,'maxColumn':_0x25c393};}['_setupColumnsRowsFixing'](){const _0xe4cd9b=this['editor'],_0x52c881=_0xe4cd9b['plugins']['get']('TrackChangesEditing'),_0xf099ec=_0xe4cd9b['plugins']['get']('TableUtils');_0xe4cd9b['model']['document']['on']('change:data',()=>{const _0x3dedf9=Array['from'](_0xe4cd9b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ddc41,data:_0x5d5640}of _0x3dedf9){const {group:_0x51ca80,id:_0x852c0e,subType:_0x4de10d}=_0x52c881['_splitMarkerName'](_0x3ddc41);if('suggestion'!=_0x51ca80)continue;if(null!=_0x5d5640['oldRange'])continue;const _0x4cd5fa=_0x52c881['getSuggestion'](_0x852c0e);this['_tablePostFixingSubtypes']['includes'](_0x4de10d)&&this['_tableSuggestions']['add'](_0x4cd5fa);}},{'priority':'low'});const _0x1ffbf1=(_0x2075b0,_0x4c3836)=>{let _0x24dd0d=!0x1;const _0x4dd5c4=_0x4c3836['createRangeOn'](_0x2075b0),_0x5ed3a5=_0x2075b0['findAncestor']('table'),_0x4f77d6=_0xf099ec['getCellLocation'](_0x2075b0);for(const _0x526a89 of this['_tableSuggestions']){const _0x2f66e4=_0x526a89['subType'],_0x271470=_0x2f66e4['startsWith']('tablePaste'),_0x25f54d=_0x2f66e4['substr'](_0x271470?0xa:0x5),_0x4a8c43=_0x25f54d['toLowerCase'](),_0x24a784=_0x4a8c43['substr'](0x0,0x3)+'span',_0x2fc1b8='min'+_0x25f54d,_0x3c9b87='max'+_0x25f54d;if(!_0x526a89['isInContent'])continue;if(_0x5ed3a5!=_0x526a89['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x526a89['isIntersectingWithRange'](_0x4dd5c4))continue;const _0x2ac343=_0x2075b0['hasAttribute'](_0x24a784)?_0x2075b0['getAttribute'](_0x24a784)-0x1:0x0,_0x34393c=this['_getSuggestionCoords'](_0x526a89),_0x3a18b4=_0x34393c[_0x2fc1b8],_0x2af15e=_0x34393c[_0x3c9b87];_0x3a18b4<=_0x4f77d6[_0x4a8c43]&&_0x4f77d6[_0x4a8c43]+_0x2ac343<=_0x2af15e&&(_0x526a89['addRange'](_0x4dd5c4),_0x24dd0d=!0x0);}return _0x24dd0d;};_0xe4cd9b['model']['document']['registerPostFixer'](_0x1c2de0=>{let _0x5aaab9=!0x1;for(const _0x2776e0 of _0xe4cd9b['model']['document']['differ']['getChanges']())if('insert'==_0x2776e0['type']){if('tableRow'==_0x2776e0['name']){for(const _0x42eecb of _0x2776e0['position']['nodeAfter']['getChildren']())_0x5aaab9=_0x5aaab9||_0x1ffbf1(_0x42eecb,_0x1c2de0);}else'tableCell'==_0x2776e0['name']&&(_0x5aaab9=_0x5aaab9||_0x1ffbf1(_0x2776e0['position']['nodeAfter'],_0x1c2de0));}return _0x5aaab9;});}['_getSuggestionCoords'](_0x3011e8){return this['_getCoordsForCells'](_0x3011e8['getRanges']()['map'](_0x339024=>_0x339024['start']['nodeAfter']));}}function Ne(_0x4bd867){return Array['from'](new Set(_0x4bd867)['values']());}class Ct extends _0x330415{static get['requires'](){return[_t];}['afterInit'](){const _0x3d63c8=this['editor'],_0x53d640=_0x3d63c8['model']['document']['selection'],_0x2af731=_0x3d63c8['locale'];if(!_0x3d63c8['plugins']['has']('TableEditing'))return;const _0x3a7cb4=_0x3d63c8['plugins']['get']('TrackChangesEditing'),_0x52b953=_0x3d63c8['plugins']['get']('TableUtils'),_0x246227=_0x3d63c8['plugins']['get'](_t);_0x246227['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3a7cb4['enableCommand']('mergeTableCells',()=>{const _0x5e17e1=_0x52b953['getSelectionAffectedTableCells'](_0x3d63c8['model']['document']['selection']);_0x3d63c8['model']['change'](()=>{_0x3a7cb4['markMultiRangeBlockFormat'](_0x5e17e1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3d63c8['commands']['get']('mergeTableCells')['on']('execute',(_0x5ee3c5,_0x15426c)=>{_0x3d63c8['commands']['get']('trackChanges')['value']&&(_0x15426c['length']>0x0&&_0x15426c[_0x15426c['length']-0x1]&&_0x15426c[_0x15426c['length']-0x1]['forceDefaultExecution']||_0x3a7cb4['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5ee3c5['stop']());},{'priority':'highest'});for(const _0x3a36c0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x32968e=_0x3d63c8['commands']['get'](_0x3a36c0);_0x3a7cb4['enableCommand'](_0x3a36c0,()=>{const _0x230dc7=_0x3d63c8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x113211=>_0x113211['is']('element','tableCell')),_0x2797b2=_0x32968e['value'];_0x3d63c8['model']['change'](()=>{_0x3a7cb4['markMultiRangeBlockFormat']([_0x230dc7,_0x2797b2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1e0beb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x12c7c2=_0x3d63c8['commands']['get'](_0x1e0beb);_0x3a7cb4['enableCommand'](_0x1e0beb,()=>{const _0x573063=_0x52b953['getSelectionAffectedTableCells'](_0x3d63c8['model']['document']['selection'])[0x0],_0x5d5b37=_0x573063['findAncestor']('table'),{column:_0x1b0899,row:_0xd2019f}=_0x52b953['getCellLocation'](_0x573063);let _0x24adda=[];if('horizontally'==_0x12c7c2['direction']){const _0xb34a44=_0x52b953['createTableWalker'](_0x5d5b37,{'startRow':_0xd2019f,'endRow':_0xd2019f,'includeAllSlots':!0x0});_0x24adda=Array['from'](_0xb34a44)['map'](_0x27f13a=>_0x27f13a['cell']);}else{const _0x35b539=_0x52b953['createTableWalker'](_0x5d5b37,{'column':_0x1b0899,'includeAllSlots':!0x0});_0x24adda=Array['from'](_0x35b539)['map'](_0x2cdb88=>_0x2cdb88['cell']);}_0x3d63c8['model']['change'](_0xcfdd03=>{_0x3a7cb4['markBlockFormat'](_0xcfdd03['createRangeOn'](_0x573063),{'commandName':_0x1e0beb,'commandParams':[]},_0x24adda,_0x1e0beb);});});}_0x3a7cb4['descriptionFactory']['registerDescriptionCallback'](_0x3b71c1=>{if('formatBlock'!=_0x3b71c1['type']&&'formatInline'!=_0x3b71c1['type'])return;const {data:_0x195052}=_0x3b71c1;return _0x195052&&'mergeTableCells'==_0x195052['commandName']?{'type':'format','content':o(_0x2af731,'*Merge\x20cells*')}:void 0x0;}),_0x3a7cb4['descriptionFactory']['registerDescriptionCallback'](_0xd14ac7=>{if('formatBlock'!=_0xd14ac7['type']&&'formatInline'!=_0xd14ac7['type'])return;const {data:_0x16fc38}=_0xd14ac7;return _0x16fc38?'splitTableCellVertically'==_0x16fc38['commandName']?{'type':'format','content':o(_0x2af731,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x16fc38['commandName']?{'type':'format','content':o(_0x2af731,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x174cbb=_0x246227['_acceptFormatSuggestionCallbackFactory']();for(const _0x143a3d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3a7cb4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x143a3d,'accept',_0x174cbb);for(const _0x410391 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3a7cb4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x410391,'accept',_0x174cbb);_0x3a7cb4['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x501b67=>{_0x3d63c8['model']['change'](_0x4ebb85=>{const _0x325fb9=Array['from'](_0x53d640['getRanges']())['map'](_0x3a7c7e=>_0x41d70f['fromRange'](_0x3a7c7e));_0x4ebb85['setSelection'](_0x501b67),_0x3d63c8['commands']['get']('mergeTableCells')['refresh'](),_0x3d63c8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x496a79=_0x325fb9['filter'](_0x2e1142=>'$graveyard'!=_0x2e1142['root']['rootName']);_0x496a79['length']>0x0&&_0x4ebb85['setSelection'](_0x496a79);for(const _0x513ac7 of _0x325fb9)_0x513ac7['detach']();});});for(const _0x13c918 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2180ae=_0x3d63c8['commands']['get'](_0x13c918);_0x2180ae['on']('set:isEnabled',(_0x496444,_0xcc576b,_0x216982)=>{if(_0x216982){const _0x123d93=_0x3d63c8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a94f9=>_0x3a94f9['is']('element','tableCell'));this['_areMergableCells'](_0x2180ae['value'],_0x123d93)||(_0x496444['return']=!0x1,_0x496444['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x193c89=this['editor']['commands']['get']('mergeTableCells'),_0x29c1fe=this['editor']['plugins']['get']('TableUtils');if(!_0x193c89['isEnabled'])return!0x1;const _0x8f4e28=_0x29c1fe['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5b5a5b of _0x8f4e28)for(const _0x50e137 of _0x8f4e28)if(_0x5b5a5b!=_0x50e137&&!this['_areMergableCells'](_0x5b5a5b,_0x50e137))return!0x1;return!0x0;}['_areMergableCells'](_0x2fe1b5,_0x588e88){const _0x3dcf69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14b5a0=this['editor']['model']['createRangeOn'](_0x2fe1b5),_0x53eab3=this['editor']['model']['createRangeOn'](_0x588e88),_0x57bc4b=new Set(),_0x5afee4=new Set();for(const _0x443b3a of _0x3dcf69['getSuggestions']())if(('insertion'==_0x443b3a['type']||'deletion'==_0x443b3a['type']||'mergeTableCells'==_0x443b3a['subType'])&&_0x443b3a['isInContent']){for(const _0x2b1b27 of _0x443b3a['getRanges']())_0x2b1b27['containsRange'](_0x14b5a0,!0x0)&&_0x57bc4b['add'](_0x443b3a['type']+':'+_0x443b3a['author']['id']),_0x2b1b27['containsRange'](_0x53eab3,!0x0)&&_0x5afee4['add'](_0x443b3a['type']+':'+_0x443b3a['author']['id']);}if(_0x57bc4b['size']!=_0x5afee4['size'])return!0x1;for(const _0x53cd2d of _0x57bc4b)if(!_0x5afee4['has'](_0x53cd2d))return!0x1;return!0x0;}}class Nt extends _0x330415{static get['requires'](){return[_t];}['afterInit'](){const _0x4bb36a=this['editor'];if(!_0x4bb36a['plugins']['has']('TableEditing'))return;const _0x1a2cde=_0x4bb36a['locale'],_0x1704d3=_0x4bb36a['plugins']['get']('TrackChangesEditing');_0x1704d3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1704d3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1704d3['registerBlockAttribute']('headingRows'),_0x1704d3['registerBlockAttribute']('headingColumns'),_0x1704d3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1a2cde,'FORMAT_HEADER_ROW')),_0x1704d3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1a2cde,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1282c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a0d39=this['editor']['plugins']['get']('TableUtils'),_0x5ae76c=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x4add15({showActiveMarker:_0x10c62a=!0x0,setDataAttribute:_0x5ed10d=!0x0}={}){return(_0x3b6185,_0xe53def,_0x2769fb)=>{const {type:_0x426b92,id:_0x5a5ae9}=_0x1282c5['_splitMarkerName'](_0xe53def['markerName']),_0x48b2dc=_0x1282c5['getSuggestion'](_0x5a5ae9),_0x42b2f0=_0x48b2dc['data'];if('formatBlock'!=_0x48b2dc['type']||!_0x42b2f0||'setTableColumnHeader'!=_0x42b2f0['commandName'])return;if(_0xe53def['item'])return void _0x3b6185['stop']();if(!_0x2769fb['consumable']['consume'](_0xe53def['markerRange'],_0x3b6185['name']))return;const _0x2c9e5e=_0xe53def['markerRange']['start']['nodeAfter'],_0x5efa86=_0xe53def['markerRange']['end']['nodeBefore'],_0x545da9=_0x2c9e5e['parent']['parent'],{column:_0x3adfbc}=_0x3a0d39['getCellLocation'](_0x2c9e5e),{column:_0x4418eb}=_0x3a0d39['getCellLocation'](_0x5efa86);for(let _0x1f52a8=_0x3adfbc;_0x1f52a8<=_0x4418eb;_0x1f52a8++){const _0x490ae9=_0x3a0d39['createTableWalker'](_0x545da9,{'column':_0x1f52a8,'includeAllSlots':!0x1});for(const _0x31d87d of _0x490ae9){const _0x3a9fa9=_0x31d87d['cell'],_0x542c39=_0x2769fb['mapper']['toViewElement'](_0x3a9fa9);_0x2769fb['writer']['addClass']('ck-suggestion-marker-'+_0x426b92,_0x542c39),_0x5ed10d&&_0x2769fb['writer']['setAttribute']('data-suggestion',_0x5a5ae9,_0x542c39),_0x2769fb['mapper']['bindElementToMarker'](_0x542c39,_0xe53def['markerName']),_0x10c62a&&(_0x1282c5['activeMarkers']['includes'](_0xe53def['markerName'])?_0x2769fb['writer']['addClass']('ck-suggestion-marker--active',_0x542c39):_0x2769fb['writer']['removeClass']('ck-suggestion-marker--active',_0x542c39));}}};}_0x1282c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5ae76c),_0x1282c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5ae76c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4add15(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3e1242,_0x53be3d,_0x53e15a)=>{_0x53e15a['options']['showSuggestionHighlights']&&_0x4add15({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3e1242,_0x53be3d,_0x53e15a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x296bbf,_0x37d4f6,_0x5494d0)=>{const {type:_0x5014ca,id:_0x414ae3}=_0x1282c5['_splitMarkerName'](_0x37d4f6['markerName']),_0x72c4f1=_0x1282c5['getSuggestion'](_0x414ae3),_0x12501a=_0x72c4f1['data'];if('formatBlock'!=_0x72c4f1['type']||!_0x12501a||'setTableColumnHeader'!=_0x12501a['commandName'])return;const _0x4377c5=_0x5494d0['mapper']['markerNameToElements'](_0x37d4f6['markerName']);if(_0x4377c5){for(const _0x432717 of _0x4377c5)_0x5494d0['writer']['removeClass']('ck-suggestion-marker-'+_0x5014ca,_0x432717),_0x5494d0['writer']['removeClass']('ck-suggestion-marker--active',_0x432717),_0x5494d0['writer']['removeAttribute']('data-suggestion',_0x432717),_0x5494d0['mapper']['unbindElementFromMarkerName'](_0x432717,_0x37d4f6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x180b89=this['editor'],_0x47c34a=_0x180b89['locale'];function _0x2e07d3(_0x343d0e){return{'type':'format','content':o(_0x47c34a,'*Format:*\x20%0',_0x343d0e)};}_0x180b89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a4e97=>{if('formatBlock'!=_0x1a4e97['type'])return;const {data:_0x1c4264}=_0x1a4e97;if(_0x1c4264){if('setTableRowHeader'==_0x1c4264['commandName']){const _0x55044c=_0x1c4264['commandParams'][0x0]['forceValue'];return _0x2e07d3(o(_0x47c34a,_0x55044c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c4264['commandName']){const _0x2e4fa8=_0x1c4264['commandParams'][0x0]['forceValue'];return _0x2e07d3(o(_0x47c34a,_0x2e4fa8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x578103=>[_0x578103,null]));class Dt extends _0x330415{static get['requires'](){return[_t];}['afterInit'](){const _0x6fbdbc=this['editor'];if(!_0x6fbdbc['plugins']['has']('TableClipboard'))return;const _0x47f24b=_0x6fbdbc['plugins']['get']('TrackChangesEditing'),_0x241278=_0x6fbdbc['plugins']['get']('TableUtils'),_0x3811c9=_0x6fbdbc['plugins']['get'](_t),_0x4a103f=_0x6fbdbc['plugins']['get']('TableClipboard');_0x3811c9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6fbdbc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6fbdbc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2cfd1f=null;_0x6fbdbc['model']['on']('insertContent',(_0x43cb34,_0x5c5323)=>{const [_0x2df2c5,_0x89a51a]=_0x5c5323,_0x4c7033=_0x5c5323[_0x5c5323['length']-0x1];_0x4c7033&&_0x4c7033['forceDefaultExecution']||_0x47f24b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5f13af,_0x26ee30,_0x1f6ca7,_0x18b0ef,_0x36e73e){if(_0x26ee30&&!_0x26ee30['is']('documentSelection'))return!0x1;const _0xb94dff=_0x36e73e['getTableIfOnlyTableInContent'](_0x5f13af,_0x1f6ca7);if(!_0xb94dff||!Ue(_0xb94dff,void 0x0,_0x18b0ef))return!0x1;const _0x287d4e=_0x18b0ef['getSelectionAffectedTableCells'](_0x1f6ca7['document']['selection']);if(!_0x287d4e['length'])return!0x1;const _0x38d2f4=_0x287d4e[0x0]['findAncestor']('table'),_0x41c45b=_0x18b0ef['getRowIndexes'](_0x287d4e),_0x20d05d=_0x18b0ef['getColumnIndexes'](_0x287d4e),_0x401c99={'startRow':_0x41c45b['first'],'endRow':_0x41c45b['last'],'startColumn':_0x20d05d['first'],'endColumn':_0x20d05d['last']};return 0x1==_0x287d4e['length']&&(_0x401c99['endRow']+=_0x18b0ef['getRows'](_0xb94dff)-0x1,_0x401c99['endColumn']+=_0x18b0ef['getColumns'](_0xb94dff)-0x1),Ue(_0x38d2f4,_0x401c99,_0x18b0ef);}(_0x2df2c5,_0x89a51a,_0x6fbdbc['model'],_0x241278,_0x4a103f)&&(_0x43cb34['stop'](),_0x2cfd1f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6fbdbc['model']['change'](()=>{_0x6fbdbc['model']['insertContent'](_0x5c5323[0x0],_0x5c5323[0x1],_0x5c5323[0x2],{'forceDefaultExecution':!0x0});const _0x14efb7=_0x2b8ec1(),{rowInsertionRanges:_0x474248,columnInsertionRanges:_0x561d78,insertionRanges:_0x59ddb3,deletionRanges:_0x9b51b3,cells:_0x35b14b}=_0x2cfd1f;_0x474248['length']&&_0x47f24b['markMultiRangeInsertion'](_0x474248,'tablePasteRow',{'tablePasteChainId':_0x14efb7}),_0x561d78['length']&&_0x47f24b['markMultiRangeInsertion'](_0x561d78,'tablePasteColumn',{'tablePasteChainId':_0x14efb7}),_0x59ddb3['length']&&(_0x47f24b['markMultiRangeInsertion'](_0x59ddb3,'tablePaste',{'tablePasteChainId':_0x14efb7,'skipNestingCheck':!0x0}),_0x59ddb3['forEach'](_0x5ea619=>_0x5ea619['detach']?.())),_0x9b51b3['length']&&(_0x47f24b['markMultiRangeDeletion'](_0x9b51b3,'tablePaste',{'tablePasteChainId':_0x14efb7,'skipNestingCheck':!0x0}),_0x9b51b3['forEach'](_0x89e91=>_0x89e91['detach']?.()));const _0x2a2906=_0x47f24b['markMultiRangeBlockFormat'](_0x35b14b['map'](({element:_0x5ad2b4})=>_0x5ad2b4),{'formatGroupId':_0x2b8ec1()},[],'tablePasteCell',{'tablePasteChainId':_0x14efb7});if(_0x2a2906){const _0x3ed936=_0x2a2906['getMarkers'](),_0x1b3c40=[];for(const {element:_0x762863,attributes:_0x44a285}of _0x35b14b){if(!_0x44a285)continue;const _0x1faab1=_0x6fbdbc['model']['createRangeOn'](_0x762863),_0x474276=_0x3ed936['find'](_0xf7c6c=>_0xf7c6c['getRange']()['isEqual'](_0x1faab1));_0x474276&&_0x1b3c40['push']([_0x474276['name'],_0x44a285]);}_0x1b3c40['length']&&_0x2a2906['setAttribute']('markerAttributes',Object['fromEntries'](_0x1b3c40));}_0x2cfd1f=null;}));},{'priority':_0x2e5569['high']+0xa}),_0x6fbdbc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2723e1,_0xfddd4f)=>{const [_0x3ef737,_0x5534e8,,_0x485a4e]=_0xfddd4f;if(!_0x2cfd1f)return;_0x2723e1['stop']();const _0x3a2220=_0x3ef737['cell'],_0x40793a=_0x5534e8,_0x1016dd=Oe(_0x3a2220),_0x1ed11c=Oe(_0x40793a);_0x2723e1['return']=_0x3a2220;let _0xeb1dd6=null,_0x508ae7=null;if(_0x1ed11c||_0x1016dd){if(_0x1016dd&&!_0x1ed11c){_0x485a4e['remove'](_0x3a2220['getChild'](0x0));for(const _0x2519f2 of Array['from'](_0x40793a['getChildren']()))_0x485a4e['insert'](_0x2519f2,_0x3a2220,'end');const _0x51e8b5=_0x2cfd1f['rowInsertionIndexes']['includes'](_0x3ef737['row']),_0x38c3f6=_0x2cfd1f['columnInsertionIndexes']['includes'](_0x3ef737['column']);_0x51e8b5||_0x38c3f6||(_0xeb1dd6=_0x41d70f['fromRange'](_0x485a4e['createRangeIn'](_0x3a2220)));}else _0x1ed11c&&!_0x1016dd&&(_0x508ae7=_0x485a4e['createRangeIn'](_0x3a2220));}else{const _0x4054c3=_0x485a4e['createElement']('tableCellSuggestion'),_0x998a0a=_0x485a4e['createElement']('tableCellSuggestion');_0x485a4e['wrap'](_0x485a4e['createRangeIn'](_0x3a2220),_0x998a0a),_0x485a4e['insert'](_0x4054c3,_0x3a2220,0x0);for(const _0x5177d7 of Array['from'](_0x40793a['getChildren']()))_0x485a4e['insert'](_0x5177d7,_0x4054c3,'end');_0xeb1dd6=_0x41d70f['fromRange'](_0x485a4e['createRangeOn'](_0x4054c3)),_0x508ae7=_0x41d70f['fromRange'](_0x485a4e['createRangeOn'](_0x998a0a));}const _0x1194a8=Array['from'](_0x40793a['getAttributes']())['filter'](([_0x2cc750])=>Be['includes'](_0x2cc750));_0x2cfd1f['cells']['push']({'element':_0x3a2220,'attributes':_0x1194a8['length']?Object['fromEntries'](_0x1194a8):null}),_0xeb1dd6&&_0x2cfd1f['insertionRanges']['push'](_0xeb1dd6),_0x508ae7&&_0x2cfd1f['deletionRanges']['push'](_0x508ae7);},{'priority':'high'}),_0x241278['on']('insertColumns',(_0x59abba,_0x2d3f15)=>{const [_0x2a4bf1,_0x5a43b1={}]=_0x2d3f15;if(!_0x2cfd1f)return;const _0x2f58a2=_0x5a43b1['at']||0x0,_0x9beddc=_0x5a43b1['columns']||0x1;_0x2cfd1f['columnInsertionIndexes']=new Array(_0x9beddc)['fill'](_0x2f58a2)['map']((_0x3707fd,_0x3c9a1a)=>_0x3707fd+_0x3c9a1a);for(const {cell:_0x5b0e0f}of _0x241278['createTableWalker'](_0x2a4bf1,{'startColumn':_0x2f58a2,'endColumn':_0x2f58a2+_0x9beddc-0x1}))_0x2cfd1f['columnInsertionRanges']['push'](_0x6fbdbc['model']['createRangeOn'](_0x5b0e0f));},{'priority':'low'}),_0x241278['on']('insertRows',(_0x58a86e,_0x164b4e)=>{const [_0x583785,_0x313f2d={}]=_0x164b4e;if(!_0x2cfd1f)return;const _0xe75b19=_0x313f2d['at']||0x0,_0x33188e=_0x313f2d['rows']||0x1;_0x2cfd1f['rowInsertionIndexes']=new Array(_0x33188e)['fill'](_0xe75b19)['map']((_0x348160,_0x399a2a)=>_0x348160+_0x399a2a);for(const {cell:_0x2ba599}of _0x241278['createTableWalker'](_0x583785,{'startRow':_0xe75b19,'endRow':_0xe75b19+_0x33188e-0x1}))_0x2cfd1f['rowInsertionRanges']['push'](_0x6fbdbc['model']['createRangeOn'](_0x2ba599));},{'priority':'low'}),_0x47f24b['descriptionFactory']['registerDescriptionCallback'](_0x595e0c=>{if(_0x595e0c['subType']&&_0x595e0c['subType']['startsWith']('tablePaste'))return _0x595e0c['previous']?{}:{'type':'insertion','content':o(_0x6fbdbc['locale'],'*Replace\x20table\x20cells*')};});const _0x160d9f=()=>!0x1;for(const _0x4c3d76 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47f24b['_suggestionFactory']['registerCustomCallback']('insertion',_0x4c3d76,'join',_0x160d9f),_0x47f24b['_suggestionFactory']['registerCustomCallback']('deletion',_0x4c3d76,'join',_0x160d9f),_0x47f24b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c3d76,'join',_0x160d9f);_0x47f24b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x160d9f),_0x47f24b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1b4450,_0xcc1b68,_0x120274)=>{const _0x1fd93b=_0x1b4450['map'](_0x23a330=>_0x23a330['getContainedElement']())['filter'](_0x21e6b9=>_0x21e6b9),_0x1e1c8d=new Map(_0x1fd93b['map'](_0x13e85b=>[_0x13e85b,null]));if(_0x2cfd1f){for(const {element:_0x13672,attributes:_0xa1b174}of _0x2cfd1f['cells'])_0xa1b174&&_0x1e1c8d['set'](_0x13672,_0xa1b174);}else{if(_0x120274&&_0x120274['markerAttributes'])for(const [_0xb56084,_0x2c94c2]of Object['entries'](_0x120274['markerAttributes'])){const _0x1d3952=_0x6fbdbc['model']['markers']['get'](_0xb56084),_0x5057fa=_0x1d3952?_0x1d3952['getRange']()['getContainedElement']():null;_0x5057fa&&_0x1e1c8d['set'](_0x5057fa,_0x2c94c2);}}_0x6fbdbc['model']['change'](_0x1a59ae=>{for(const [_0x4e417d,_0x30fdca]of _0x1e1c8d)_0x1a59ae['setAttributes']({...xe,..._0x30fdca},_0x4e417d);});});const _0x24bd2a=(_0xc3ce98,_0x58cb4d)=>{_0x47f24b['_suggestionFactory']['registerCustomCallback'](_0xc3ce98,'tablePaste',_0x58cb4d,(_0x192962,_0x1ac907,_0x3e51d8)=>{_0x6fbdbc['model']['change'](_0x4da882=>{const _0x4c579d=[];for(const _0x5e429a of _0x192962){const _0x349689=_0x5e429a['start']['nodeAfter'];_0x349689['is']('element','tableCellSuggestion')&&_0x4c579d['push'](_0x349689);}_0x47f24b['_suggestionFactory']['getSuggestionCallback'](_0xc3ce98,null,_0x58cb4d)(_0x192962,_0x1ac907,_0x3e51d8);for(const _0x40e68e of _0x4c579d)'$graveyard'!=_0x40e68e['root']['rootName']&&_0x4da882['unwrap'](_0x40e68e);});});};_0x24bd2a('insertion','accept'),_0x24bd2a('insertion','discard'),_0x24bd2a('deletion','accept'),_0x24bd2a('deletion','discard'),_0x47f24b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x44999b=>{const _0xbb8d58=_0x44999b['map'](_0x4a3aa5=>_0x4a3aa5['getContainedElement']()),_0x1f90a2=_0xbb8d58[0x0]['findAncestor']('table'),{minRow:_0x5659db,maxRow:_0x214cfe}=_0x3811c9['_getCoordsForCells'](_0xbb8d58);_0x241278['removeRows'](_0x1f90a2,{'at':_0x5659db,'rows':_0x214cfe-_0x5659db+0x1});}),_0x47f24b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3b2bed=>{const _0x171ba9=_0x3b2bed['map'](_0x136069=>_0x136069['getContainedElement']()),_0x30d2a7=_0x171ba9[0x0]['findAncestor']('table'),{minColumn:_0x2d1e74,maxColumn:_0x54f1c4}=_0x3811c9['_getCoordsForCells'](_0x171ba9);_0x241278['removeColumns'](_0x30d2a7,{'at':_0x2d1e74,'columns':_0x54f1c4-_0x2d1e74+0x1});});const _0x4cc997=(_0x512699,_0x251bcb)=>{if(!_0x251bcb['subType']||!_0x251bcb['subType']['startsWith']('tablePaste'))return;const _0x5623d4=_0x251bcb['attributes']['tablePasteChainId'],_0x181d04=_0x47f24b['getSuggestions']()['filter'](_0x2247c8=>_0x2247c8['isInContent']&&_0x2247c8['attributes']&&_0x2247c8['attributes']['tablePasteChainId']==_0x5623d4);_0x181d04['length']&&_0x251bcb['getAllAdjacentSuggestions']()['length']!=_0x181d04['length']&&_0x181d04['reduce']((_0xe844c7,_0x59fdab)=>(_0xe844c7['next']=_0x59fdab,_0x59fdab['previous']=_0xe844c7,_0x59fdab));};function _0x2f89f1(_0x5e10c2,_0x1910e1=!0x0){const {id:_0x41f761,authorId:_0x486433}=_0x47f24b['_splitMarkerName'](_0x5e10c2['markerName']),_0x25452b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4d6288=_0x47f24b['activeMarkers']['includes'](_0x5e10c2['markerName']);return _0x4d6288&&_0x25452b['push']('ck-suggestion-marker--active'),{'classes':_0x25452b,'attributes':{'data-suggestion':_0x41f761,'data-author-id':_0x486433},'priority':_0x4d6288&&_0x1910e1?0xbc2:0xbb8};}_0x47f24b['on']('suggestionLoaded',_0x4cc997,{'priority':'high'}),_0x47f24b['on']('suggestionUnloaded',_0x4cc997,{'priority':'high'}),_0x6fbdbc['model']['document']['registerPostFixer'](()=>{let _0x118e54=!0x1;const _0x1ecf9c=Array['from'](_0x6fbdbc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x499a49,data:_0x1ec00a}of _0x1ecf9c){const {group:_0x569bed,type:_0x2bc1f0,id:_0x4cc650}=_0x47f24b['_splitMarkerName'](_0x499a49);if('suggestion'!=_0x569bed||'deletion'!=_0x2bc1f0||_0x1ec00a['oldRange'])continue;if(!_0x47f24b['hasSuggestion'](_0x4cc650))continue;const _0x3a83db=_0x47f24b['getSuggestion'](_0x4cc650)['getRanges'](),_0x33778b=_0x6fbdbc['plugins']['get']('Users')['me'];for(const _0x59cf80 of _0x47f24b['getSuggestions']()){if(!_0x59cf80['isInContent']||_0x59cf80['author']!=_0x33778b)continue;if('formatBlock'!=_0x59cf80['type']||'tablePasteCell'!=_0x59cf80['subType'])continue;if(_0x59cf80['getRanges']()['every'](_0x1cbe9f=>_0x3a83db['some'](_0x1c36e8=>_0x1c36e8['containsRange'](_0x1cbe9f,!0x0)))){for(const _0x51ba3a of _0x59cf80['getAllAdjacentSuggestions']())_0x51ba3a['isInContent']&&(_0x51ba3a['discard'](),_0x118e54=!0x0);}}}return _0x118e54;}),_0x6fbdbc['model']['document']['registerPostFixer'](_0xf2e246=>{const _0x29fa8a=_0x6fbdbc['commands']['get']('redo');if(!_0x29fa8a||!_0x29fa8a['_createdBatches']['has'](_0xf2e246['batch']))return!0x1;let _0x531aa5=!0x1;const _0x279698=_0x6fbdbc['plugins']['get']('Users')['me'],_0x589fe2=_0x6fbdbc['model']['document']['differ']['getChanges'](),_0x476c21=Array['from'](_0x6fbdbc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x15987b,data:_0xac9239})=>{const {group:_0x363571,subType:_0x1eccc9,authorId:_0x2fde62}=_0x47f24b['_splitMarkerName'](_0x15987b);return'suggestion'==_0x363571&&'tablePaste'==_0x1eccc9&&_0x2fde62==_0x279698['id']&&!_0xac9239['oldRange'];});for(const _0x17878e of _0x589fe2){if('insert'!=_0x17878e['type']||'tableCellSuggestion'!=_0x17878e['name']||0x1!=_0x17878e['length'])continue;const _0x3e71ca=_0xf2e246['createRange'](_0x17878e['position'],_0x17878e['position']['getShiftedBy'](0x1));if(!_0x476c21['find'](({data:_0x40cdb0})=>_0x40cdb0['newRange']['isEqual'](_0x3e71ca))){for(const {name:_0x4e76d6,data:_0x3d3849}of _0x476c21)if(_0x3e71ca['containsRange'](_0x3d3849['newRange'])){_0xf2e246['updateMarker'](_0x4e76d6,{'range':_0x3e71ca}),_0x531aa5=!0x0;break;}}}return _0x531aa5;}),_0x6fbdbc['model']['document']['registerPostFixer'](_0x11f674=>{let _0x781b0b=!0x1;const _0x158be4=_0x6fbdbc['plugins']['get']('Users')['me'],_0x54e1f2=_0x47f24b['getSuggestions']()['filter'](_0x41c03e=>_0x41c03e['isInContent']&&_0x41c03e['author']==_0x158be4),_0x49a211=new Set(),_0x1c513d=new Set();for(const _0x129374 of _0x54e1f2)if('tablePaste'==_0x129374['subType'])for(const _0x514dea of _0x129374['getMarkers']()){const _0x15f181=_0x514dea['getRange']()['getContainedElement']();if(_0x15f181){if(_0x15f181['is']('element','tableCellSuggestion')&&Oe(_0x15f181)){_0x129374['removeMarker'](_0x514dea['name']),_0x49a211['add'](_0x15f181),_0x781b0b=!0x0;const _0x3e4ad6=_0x15f181['nextSibling'],_0xe55c6=_0x15f181['previousSibling'],_0x2aac4d=_0x3e4ad6&&_0x3e4ad6['is']('element','tableCellSuggestion'),_0x1b26a6=_0xe55c6&&_0xe55c6['is']('element','tableCellSuggestion');_0x2aac4d&&!_0x49a211['has'](_0x3e4ad6)&&_0x1c513d['add'](_0x3e4ad6),_0x1b26a6&&!_0x49a211['has'](_0xe55c6)&&_0x1c513d['add'](_0xe55c6);}else _0x15f181['is']('element','paragraph')&&_0x15f181['isEmpty']&&(_0x129374['removeMarker'](_0x514dea['name']),_0x781b0b=!0x0);}}else{if('tablePasteCell'==_0x129374['subType']){if(!_0x129374['attributes']||!_0x129374['attributes']['tablePasteChainId'])continue;const _0x504f96=_0x129374['attributes']['markerAttributes'];if(_0x504f96&&Object['keys'](_0x504f96)['length'])continue;const _0x18e9a4=_0x129374['attributes']['tablePasteChainId'];let _0x5baf1e=!0x0,_0x494e2f=!0x0;for(const _0x3aa705 of _0x54e1f2)if(_0x3aa705['subType']&&_0x3aa705['subType']['startsWith']('tablePaste')){if(!_0x3aa705['attributes']['tablePasteChainId']){_0x494e2f=!0x1;break;}if(_0x3aa705['id']!=_0x129374['id']&&_0x3aa705['attributes']['tablePasteChainId']==_0x18e9a4){_0x5baf1e=!0x1;break;}}_0x494e2f&&_0x5baf1e&&(_0x129374['removeMarkers'](),_0x781b0b=!0x0);}}for(const _0x65bf19 of _0x49a211)_0x11f674['remove'](_0x65bf19);for(const _0x2fb99 of _0x1c513d)_0x11f674['unwrap'](_0x2fb99);return _0x781b0b;}),_0x6fbdbc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3b4337=>_0x2f89f1(_0x3b4337),'converterPriority':'high'}),_0x6fbdbc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x40d566,_0x1a2357)=>_0x1a2357['options']['showSuggestionHighlights']?_0x2f89f1(_0x40d566,!0x1):null,'converterPriority':'high'});const _0x2ccb27=_0x6fbdbc['editing']['view'];this['listenTo'](_0x2ccb27['document'],'clipboardOutput',(_0x4702e3,_0x264b2d)=>{const _0x4ba2f9=[];for(const _0x152ae0 of _0x2ccb27['createRangeIn'](_0x264b2d['content'])['getItems']())_0x152ae0['is']('element','suggestion-td')&&_0x4ba2f9['push'](_0x152ae0);_0x2ccb27['change'](_0x4b2a43=>{for(const _0x4b4748 of _0x4ba2f9)_0x4b2a43['move'](_0x4b2a43['createRangeIn'](_0x4b4748),_0x4b2a43['createPositionBefore'](_0x4b4748)),_0x4b2a43['remove'](_0x4b4748);});});}}function Oe(_0x543829){if(_0x543829['isEmpty'])return!0x0;const _0x2c0f1d=_0x543829['getChild'](0x0);return _0x2c0f1d['is']('element','paragraph')&&_0x2c0f1d['isEmpty'];}function Ue(_0x298d8e,_0x5023ad={},_0xa436ef){for(const {isAnchor:_0x26b3b4,cellHeight:_0x4aac4f,cellWidth:_0x27c35a}of _0xa436ef['createTableWalker'](_0x298d8e,{'includeAllSlots':!0x0,..._0x5023ad}))if(!_0x26b3b4||0x1!=_0x4aac4f||0x1!=_0x27c35a)return!0x1;return!0x0;}class Mt extends _0x330415{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x43a5d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x43a5d4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x43a5d4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x43a5d4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43a5d4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x43a5d4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x43a5d4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x529ebb,_0x230f78){const _0x3a0f89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x201e58=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xd49719=_0x230f78['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1a5dfc=_0x201e58['getColumnGroupElement'](_0xd49719);let _0x4bbc1c=_0x1a5dfc?_0x201e58['getTableColumnsWidths'](_0x1a5dfc):null,_0x238fc0=_0xd49719['getAttribute']('tableWidth')||null;const _0x1b5e0e=_0x230f78['tableWidth']||_0x238fc0,_0xcc556e=_0x230f78['columnWidths']||_0x4bbc1c,_0x36b1e9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ab8da of _0x3a0f89['getSuggestions']()){const _0x1a21df=_0x3ab8da['getContainedElement']();if('resizeTable'===_0x3ab8da['subType']&&_0x1a21df===_0xd49719){_0x3ab8da['author']!==_0x36b1e9&&_0x3ab8da['discard']();const _0x46fe99=_0x3ab8da['data']['commandParams'];_0x238fc0=_0x46fe99[0x0]['tableWidth'],_0x4bbc1c=_0x46fe99[0x0]['columnWidths'];break;}}_0x529ebb({'table':_0xd49719,'tableWidth':_0x1b5e0e,'columnWidths':_0xcc556e}),_0x3a0f89['markBlockFormat'](_0xd49719,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x238fc0,'columnWidths':_0x4bbc1c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e95dd){if('formatBlock'!=_0x5e95dd['type']&&'formatInline'!=_0x5e95dd['type'])return;const {data:_0x46ff10}=_0x5e95dd;if(_0x46ff10&&'resizeTable'===_0x46ff10['formatGroupId']){const _0x324ff4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x324ff4)};}}}class $t extends _0x330415{['afterInit'](){const _0x331280=this['editor'];_0x331280['plugins']['has']('Template')&&_0x331280['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Bt extends _0x330415{['afterInit'](){const _0x4081e1=this['editor'];if(!_0x4081e1['commands']['get']('insertTableOfContents'))return;_0x4081e1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2f102c=_0x4081e1['plugins']['get']('TrackChangesEditing'),_0x59bd5c=_0x4081e1['locale'];_0x2f102c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x45e294=>o(_0x59bd5c,'ELEMENT_TABLE_OF_CONTENTS',_0x45e294));}}class Ot extends _0x330415{['afterInit'](){const _0x1fb00a=this['editor'];if(!_0x1fb00a['plugins']['has']('Title'))return;const _0xcd77cd=_0x1fb00a['plugins']['get']('TrackChangesEditing');_0xcd77cd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1fb00a['locale'],'ELEMENT_TITLE')),_0x1fb00a['model']['document']['registerPostFixer'](_0x39c613=>{let _0x756776=!0x1;const _0x353c69=Array['from'](_0x1fb00a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d15f3,data:_0x26a857}of _0x353c69){const {group:_0x2b52b1}=_0xcd77cd['_splitMarkerName'](_0x5d15f3);if('suggestion'!==_0x2b52b1||!_0x26a857['newRange'])continue;const _0x3aa47f=_0x26a857['newRange'],_0x3ff36d=_0x3aa47f['end']['nodeBefore'];if(!_0x3ff36d||!_0x3ff36d['is']('element','title-content'))continue;if(!_0x3aa47f['start']['isTouching'](_0x3aa47f['end']))continue;const _0x159d86=_0x1fb00a['model']['schema']['getNearestSelectionRange'](_0x3aa47f['end'],'forward');if(_0x159d86&&_0x159d86['isCollapsed']){const _0x261366=_0x39c613['createRange'](_0x3aa47f['start'],_0x159d86['start']);_0x261366['isEqual'](_0x3aa47f)||(_0x39c613['updateMarker'](_0x5d15f3,{'range':_0x261366}),_0x756776=!0x0);}_0x756776||(_0x39c613['removeMarker'](_0x5d15f3),_0x756776=!0x0);}return _0x756776;});}}class Rt extends _0x330415{['afterInit'](){const _0x2cf87a=this['editor'],_0x52ad6c=_0x2cf87a['plugins']['get']('TrackChangesEditing');_0x2cf87a['plugins']['has']('Uploadcare')&&(_0x52ad6c['enableCommand']('uploadcare'),_0x2cf87a['plugins']['has']('UploadcareImageEdit')&&(_0x52ad6c['enableCommand']('uploadcareImageEdit'),_0x52ad6c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x52ad6c['registerBlockAttribute']('uploadcareImageId'),_0x52ad6c['descriptionFactory']['registerDescriptionCallback'](_0x1c0cb1=>{if('attribute'!=_0x1c0cb1['type'])return;const {data:_0x52d89e}=_0x1c0cb1;return _0x52d89e&&'uploadcareImageId'==_0x52d89e['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x330415{['afterInit'](){const _0x3a6b87=this['editor'],_0x50efed=_0x3a6b87['plugins']['get']('TrackChangesEditing');_0x3a6b87['plugins']['has']('UndoEditing')&&(_0x50efed['enableCommand']('undo'),_0x50efed['enableCommand']('redo'));}}class xt extends _0x330415{static get['requires'](){return[_t];}['afterInit'](){const _0x40eaf1=this['editor'];if(!_0x40eaf1['plugins']['has']('TableCaptionEditing'))return;_0x40eaf1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x330415{['tableProperties'];['tableCellProperties'];constructor(_0x56681b){super(_0x56681b),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 _0x108af8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x425409 of this['tableProperties'])_0x108af8['enableCommand'](_0x425409,(_0x56e4d7,_0x5185f6)=>{const _0x255e6d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x425409,[_0x255e6d],this['tableProperties'],'tableProperties',_0x56e4d7,_0x5185f6);});_0x108af8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x108af8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x108af8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x47176d,_0x4022cc)=>this['handleDiscardAction'](this['tableProperties'],_0x47176d,_0x4022cc)),_0x108af8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x227147 of this['tableCellProperties'])_0x108af8['enableCommand'](_0x227147,(_0x5711a6,_0x3ffd1f)=>{const _0x34ade6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x227147,_0x34ade6,this['tableCellProperties'],'tableCellProperties',_0x5711a6,_0x3ffd1f);});_0x108af8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x108af8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x108af8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x53a073,_0x25b8f2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x53a073,_0x25b8f2)),_0x108af8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x108af8['descriptionFactory']['registerDescriptionCallback'](_0x283752=>this['handleSuggestionDescription'](_0x283752));}['_handlePropertyChange'](_0x5ab8e7,_0x732573,_0x5352c3,_0x28f158,_0x4c09fb,_0x122d28){const _0x103bb1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x122d28['batch'],()=>{for(const _0x55d68d of _0x732573){if(this['_getSuggestion'](_0x55d68d,_0x28f158))_0x4c09fb(_0x122d28);else{const _0x559319={};for(const _0x4279f1 of _0x5352c3){const _0x4e3b19=_0x55d68d['getAttribute'](_0x4279f1);void 0x0!==_0x4e3b19&&(_0x559319[_0x4279f1]=_0x4e3b19);}_0x4c09fb(_0x122d28),_0x103bb1['markBlockFormat'](_0x55d68d,{'commandParams':[_0x559319]},[],_0x28f158);}}});}['handleDiscardAction'](_0x380df3,_0x767bf9,_0x105e87){const _0x403bbf=_0x767bf9[0x0]['start']['nodeAfter'],_0x1c3edc=_0x105e87['commandParams'][0x0];this['editor']['model']['change'](_0x3c391f=>{for(const _0x2d6439 of _0x380df3)void 0x0!==_0x1c3edc[_0x2d6439]?_0x3c391f['setAttribute'](_0x2d6439,_0x1c3edc[_0x2d6439],_0x403bbf):_0x3c391f['removeAttribute'](_0x2d6439,_0x403bbf);});}['handleSuggestionDescription'](_0x838f7a){if(_0x838f7a['data'])switch(_0x838f7a['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4b0595,_0x15d3e8){const _0x4fed1c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4b5b55 of _0x4fed1c['getSuggestions']({'skipNotAttached':!0x0})){const _0x203281=_0x4b5b55['getContainedElement']();if(_0x4b5b55['subType']===_0x15d3e8&&_0x203281===_0x4b0595)return _0x4b5b55;}return null;}}const m='$elementName';class p extends _0x330415{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3cbfc7,_0x1faec0,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,mt,dt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,xt,Dt,Mt,Bt,Et,$t,Ot,Rt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56d499){super(_0x56d499),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5a59c6,_0x14de4b,_0x159bf1,_0x5a2b09)=>{this['_model']['change'](()=>{for(const _0x2820da of[..._0x5a2b09,..._0x159bf1])this['_model']['markers']['has'](_0x2820da)&&_0x56d499['editing']['reconvertMarker'](_0x2820da);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x56d499['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x56d499['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x56d499['config']['get']('trackChanges.trackFormatChanges'),_0x56d499['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x56d499['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x56d499,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2c71bd=this['editor'],_0x26fd70=(_0x1fe34b,_0x45656c)=>{if('attribute'!=_0x1fe34b)return'ck-suggestion-marker-'+_0x1fe34b;const _0x520f05=_0x45656c['split']('|')[0x0];return this['_isBlockAttribute'](_0x520f05)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2c71bd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x25a00c=>{const {id:_0x4d82cf,authorId:_0x1fd101,type:_0x266c1e,subType:_0x4b95d9}=this['_splitMarkerName'](_0x25a00c['markerName']),_0x269602=['ck-suggestion-marker',_0x26fd70(_0x266c1e,_0x4b95d9)];let _0x3059ce=0xbb8;return this['activeMarkers']['includes'](_0x25a00c['markerName'])&&(_0x269602['push']('ck-suggestion-marker--active'),_0x3059ce=0xbc2),'deletion'==_0x266c1e&&(_0x3059ce+=0x5),{'classes':_0x269602,'attributes':{'data-suggestion':_0x4d82cf,'data-author-id':_0x1fd101},'priority':_0x3059ce};}}),_0x2c71bd['conversion']['for']('dataDowncast')['add'](_0x1ce902=>{_0x1ce902['on']('addMarker:suggestion',(_0xb7f621,_0x3fda04,_0x4f8aaa)=>{if(!_0x4f8aaa['options']['showSuggestionHighlights'])return;const _0x1809ad=_0x3fda04['item'];if(!_0x1809ad)return;const _0x3a16b3=_0x4f8aaa['mapper']['toViewElement'](_0x1809ad);_0x2c71bd['model']['schema']['isObject'](_0x1809ad)&&_0x3a16b3&&!_0x3a16b3['getCustomProperty']('widget')&&_0x3a16b3['is']('containerElement')&&_0x24082b(_0x3a16b3,_0x4f8aaa['writer']);},{'priority':'high'});}),_0x2c71bd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x32188d,_0x5ed924)=>{if(!_0x5ed924['options']['showSuggestionHighlights'])return null;const {type:_0x13afd6,subType:_0x3d4a56}=this['_splitMarkerName'](_0x32188d['markerName']);return{'classes':['ck-suggestion-marker',_0x26fd70(_0x13afd6,_0x3d4a56)],'priority':0xbb8};}});const _0x39e8cc=({showActiveMarkers:_0x252e1e=!0x0,isAttributeSuggestion:_0x5cefa7=!0x1}={})=>(_0xb1b391,_0x508e8b,_0x2ade6b)=>{if(!_0x508e8b['item'])return;const {id:_0x4746a1,authorId:_0x44171d}=this['_splitMarkerName'](_0x508e8b['markerName']);if(_0x5cefa7){const _0x2c7578=this['_suggestions']['get'](_0x4746a1),_0x25c03c=this['_getAttributeKey'](_0x2c7578);if(!this['_isBlockAttribute'](_0x25c03c))return;}if(_0x508e8b['item']['is']('selection'))return void _0x2ade6b['consumable']['consume'](_0x508e8b['item'],_0xb1b391['name']);const _0x2035f6=_0x2ade6b['mapper']['toViewElement'](_0x508e8b['item']);if(_0x508e8b['item']['is']('element')&&_0x2c71bd['model']['schema']['isBlock'](_0x508e8b['item'])&&!_0x2035f6['getCustomProperty']('addHighlight')){_0x2ade6b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2035f6),_0x2ade6b['writer']['setAttribute']('data-suggestion',_0x4746a1,_0x2035f6),_0x2ade6b['writer']['setAttribute']('data-author-id',_0x44171d,_0x2035f6),_0x2ade6b['mapper']['bindElementToMarker'](_0x2035f6,_0x508e8b['markerName']),_0x252e1e&&(this['activeMarkers']['includes'](_0x508e8b['markerName'])?_0x2ade6b['writer']['addClass']('ck-suggestion-marker--active',_0x2035f6):_0x2ade6b['writer']['removeClass']('ck-suggestion-marker--active',_0x2035f6));for(const _0x31aebd of _0x2c71bd['model']['createRangeIn'](_0x508e8b['item'])['getItems']())_0x2ade6b['consumable']['consume'](_0x31aebd,_0xb1b391['name']);_0x2ade6b['consumable']['consume'](_0x508e8b['item'],_0xb1b391['name']);}};_0x2c71bd['conversion']['for']('dataDowncast')['add'](_0xa23da0=>{_0xa23da0['on']('addMarker:suggestion:formatBlock',(_0x21d0bb,_0x29d1dd,_0x1ca3dc)=>{_0x1ca3dc['options']['showSuggestionHighlights']&&_0x39e8cc({'showActiveMarkers':!0x1})(_0x21d0bb,_0x29d1dd,_0x1ca3dc);},{'priority':'highest'});}),_0x2c71bd['conversion']['for']('dataDowncast')['add'](_0x2834ab=>{_0x2834ab['on']('addMarker:suggestion:attribute',(_0x1fbfa1,_0x577b35,_0x323fd4)=>{_0x323fd4['options']['showSuggestionHighlights']&&_0x39e8cc({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1fbfa1,_0x577b35,_0x323fd4);},{'priority':'highest'});}),_0x2c71bd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x40e8be,_0x2fd75f)=>_0x2fd75f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x40e8be['substr'](0xb)}}),_0x2c71bd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1911e0,{writer:_0x46fa7d})=>{let _0x4133af='suggestion:'+_0x1911e0['getAttribute']('suggestion-type')+':'+_0x1911e0['getAttribute']('id');return _0x1911e0['getAttribute']('marker-count')&&(_0x4133af+=':'+_0x1911e0['getAttribute']('marker-count')),_0x46fa7d['createElement']('$marker',{'data-name':_0x4133af});}}),_0x2c71bd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2c71bd['conversion']['for']('editingDowncast')['add'](_0x13ef83=>{_0x13ef83['on']('addMarker:suggestion:formatBlock',_0x39e8cc(),{'priority':'high'});}),_0x2c71bd['conversion']['for']('editingDowncast')['add'](_0x59d386=>{_0x59d386['on']('addMarker:suggestion:attribute',_0x39e8cc({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2c71bd['conversion']['for']('editingDowncast')['add'](_0x2daf75=>{_0x2daf75['on']('removeMarker:suggestion:formatBlock',(_0x658d9,_0xc04566,_0x4f274e)=>{const _0x26f5ae=_0x4f274e['mapper']['markerNameToElements'](_0xc04566['markerName']);if(_0x26f5ae){for(const _0x50b02c of _0x26f5ae)_0x50b02c['getCustomProperty']('addHighlight')||(_0x4f274e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50b02c),_0x4f274e['writer']['removeAttribute']('data-suggestion',_0x50b02c),_0x4f274e['writer']['removeAttribute']('data-author-id',_0x50b02c),_0x4f274e['mapper']['unbindElementFromMarkerName'](_0x50b02c,_0xc04566['markerName']));}},{'priority':'high'});}),_0x2c71bd['conversion']['for']('editingDowncast')['add'](_0x495ed9=>{_0x495ed9['on']('removeMarker:suggestion:attribute',(_0x4ce9e7,_0x15f1b5,_0x26d41f)=>{const _0x103765=_0x26d41f['mapper']['markerNameToElements'](_0x15f1b5['markerName']);if(!_0x103765)return;const {id:_0x407460}=this['_splitMarkerName'](_0x15f1b5['markerName']),_0x373ac0=this['_suggestions']['get'](_0x407460),_0x9b5ff4=this['_getAttributeKey'](_0x373ac0);if(this['_isBlockAttribute'](_0x9b5ff4)){for(const _0x24cf9a of _0x103765)_0x24cf9a['getCustomProperty']('addHighlight')||(_0x26d41f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x24cf9a),_0x26d41f['writer']['removeAttribute']('data-suggestion',_0x24cf9a),_0x26d41f['writer']['removeAttribute']('data-author-id',_0x24cf9a),_0x26d41f['mapper']['unbindElementFromMarkerName'](_0x24cf9a,_0x15f1b5['markerName']));}},{'priority':'high'});}),_0x2c71bd['model']['document']['registerPostFixer'](_0x488302=>{let _0x45d5d7=!0x1;const _0x5c878f=Array['from'](_0x2c71bd['model']['document']['differ']['getChangedMarkers']()),_0x5205a3=new Set();for(const {name:_0x4294b7,data:_0x3c541c}of _0x5c878f){const {group:_0x52bc3a,type:_0x573f40,subType:_0x2cf090,id:_0x1ae52e}=this['_splitMarkerName'](_0x4294b7);if('suggestion'!==_0x52bc3a)continue;const _0x534032=this['_suggestions']['get'](_0x1ae52e);if(null!=_0x3c541c['newRange']){'formatInline'==_0x573f40&&(_0x45d5d7=_0x45d5d7||Ft(_0x3c541c['newRange'],_0x4294b7,_0x488302,_0x2c71bd['model']['schema']));const _0x12e153='attribute'==_0x573f40&&this['_isBlockAttribute'](_0x2cf090['split']('|')[0x0]);if(_0x3c541c['newRange']['isCollapsed']||'$graveyard'==_0x3c541c['newRange']['root']['rootName']||'formatBlock'==_0x573f40&&!Jt(_0x3c541c['newRange'])||_0x12e153&&!Jt(_0x3c541c['newRange'])||'deletion'==_0x573f40&&!(!Gt(_0x488f84=_0x3c541c['newRange'])&&!function(_0x11e0e5){return _0x11e0e5['start']['parent']==_0x11e0e5['end']['nodeBefore']&&_0x11e0e5['start']['isAtEnd'];}(_0x488f84)))_0x488302['removeMarker'](_0x4294b7),_0x45d5d7=!0x0;else{if(!_0x534032||!_0x534032['isInContent'])continue;if(_0x3c541c['newRange']&&_0x3c541c['oldRange']&&_0x3c541c['newRange']['isEqual'](_0x3c541c['oldRange']))continue;_0x5205a3['add'](_0x534032);}}}var _0x488f84;return _0x5205a3['size']>0x0&&(_0x45d5d7=!!this['_joinWithAdjacentSuggestions'](_0x5205a3)||_0x45d5d7),_0x45d5d7;}),_0x2c71bd['model']['document']['registerPostFixer'](_0x43b4cc=>{let _0x495f08=!0x1;for(const _0x4bbba1 of _0x2c71bd['model']['document']['differ']['getChanges']())if('insert'==_0x4bbba1['type'])for(const _0x33a55e of this['_suggestions']['values']()){if(_0x33a55e['isMultiRange']||!_0x33a55e['isInContent'])continue;const _0xd971dc='formatBlock'==_0x33a55e['type'],_0x2c5e7b=this['_getAttributeKey'](_0x33a55e),_0x5ccd71=_0x2c5e7b&&this['_isBlockAttribute'](_0x2c5e7b);if(!_0xd971dc&&!_0x5ccd71)continue;const _0x5e0482=_0x33a55e['getFirstRange']();if(_0x5e0482['start']['parent']!=_0x5e0482['end']['parent']&&!_0x5e0482['end']['isAtEnd']){const _0xb1e54f=_0x2c71bd['model']['createPositionAt'](_0x5e0482['start']['nodeAfter'],'end'),_0x5577d2=_0x2c71bd['model']['createRange'](_0x5e0482['start'],_0xb1e54f);_0x43b4cc['updateMarker'](_0x33a55e['getFirstMarker'](),{'range':_0x5577d2}),_0x495f08=!0x0;}}return _0x495f08;}),_0x2c71bd['model']['document']['registerPostFixer'](_0x577cb2=>this['_processAttributeChanges'](_0x577cb2)),_0x2c71bd['model']['document']['registerPostFixer'](_0x33e234=>!_0x33e234['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x33e234)),_0x2c71bd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2c71bd['model']['document']['on']('change:data',(_0x100931,_0x11c40d)=>{if(!_0x11c40d['isLocal']||_0x11c40d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x46774e=_0x2c71bd['model']['document']['differ']['getChanges']();if(0x0==_0x46774e['length'])return;const _0x1cc9bb=[],_0x426bd5=_0x46774e['filter'](_0xc47935=>'attribute'==_0xc47935['type']),_0x54e87a=_0x46774e['filter'](_0x399483=>'insert'==_0x399483['type']&&'$text'!=_0x399483['name']);for(const _0x55a022 of _0x426bd5)this['_isRegisteredAttribute'](_0x55a022['attributeKey'])&&_0x1cc9bb['push']({'key':_0x55a022['attributeKey'],'newValue':_0x55a022['attributeNewValue'],'oldValue':_0x55a022['attributeOldValue'],'range':Ht(_0x55a022['range'],_0x2c71bd['model'])});for(const _0x3ae397 of _0x54e87a){if('rename'!=_0x3ae397['action']&&'refresh'!=_0x3ae397['action'])continue;const _0x3f5c6c=qt(_0x3ae397['position']['nodeAfter'],_0x2c71bd['model']),_0x5075e5=_0x3ae397['before'];'rename'==_0x3ae397['action']&&_0x1cc9bb['push']({'key':m,'newValue':_0x3ae397['name'],'oldValue':_0x5075e5['name'],'range':_0x3f5c6c});for(const [_0x39bbf0,_0x4a6665]of _0x5075e5['attributes']){if(!this['_isRegisteredAttribute'](_0x39bbf0))continue;const _0x2283d6=_0x3ae397['attributes']['get'](_0x39bbf0);_0x4a6665!==_0x2283d6&&_0x1cc9bb['push']({'key':_0x39bbf0,'newValue':_0x2283d6,'oldValue':_0x4a6665,'range':_0x3f5c6c});}for(const [_0x4395de,_0x15334d]of _0x3ae397['attributes'])this['_isRegisteredAttribute'](_0x4395de)&&(_0x5075e5['attributes']['has'](_0x4395de)||_0x1cc9bb['push']({'key':_0x4395de,'newValue':_0x15334d,'oldValue':null,'range':_0x3f5c6c}));}0x0!=_0x1cc9bb['length']&&_0x2c71bd['model']['enqueueChange'](_0x11c40d,_0x3515e7=>{const _0x54c02b=_0x2b8ec1();for(const {range:_0xb77728,key:_0x434c7f,oldValue:_0x2729d1,newValue:_0x117360}of _0x1cc9bb)this['markAttributeChange'](_0xb77728,_0x434c7f,_0x2729d1,_0x117360,{'groupId':_0x54c02b});this['_reduceExistingSuggestions'](_0x3515e7,_0x1cc9bb);});},{'priority':'lowest'}),_0x2c71bd['model']['markers']['on']('update:suggestion',(_0x30bc0d,_0xddd0f0,_0x3e9164)=>{if(null==_0x3e9164){const {id:_0x5a0617}=this['_splitMarkerName'](_0xddd0f0['name']),_0x40606b=this['_suggestions']['get'](_0x5a0617);_0x40606b&&_0x40606b['addMarkerName'](_0xddd0f0['name']);}}),_0x2c71bd['model']['document']['on']('change:data',()=>{const _0x1f55a5=Array['from'](_0x2c71bd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b63c5=>'suggestion'===this['_splitMarkerName'](_0x1b63c5['name'])['group']);if(0x0===_0x1f55a5['length'])return;_0x1f55a5['sort']((_0x3e9c89,_0xa05aa9)=>{const _0x52ebc2=_0x3e9c89['data']['oldRange'],_0x580c63=_0xa05aa9['data']['oldRange'];return null===_0x52ebc2&&null===_0x580c63?0x0:null===_0x52ebc2&&null!==_0x580c63?-0x1:null!==_0x52ebc2&&null===_0x580c63?0x1:_0x52ebc2['start']['isBefore'](_0x580c63['start'])?-0x1:0x1;});const _0x48be30=new Set(),_0x3baf4a=new Set();for(const {name:_0x1cc6d0,data:_0x2b03f3}of _0x1f55a5){const {id:_0x2abbe1}=this['_splitMarkerName'](_0x1cc6d0);if(null===_0x2b03f3['oldRange']){const _0x1537ff=this['_handleNewSuggestionMarker'](_0x1cc6d0);_0x3baf4a['add'](_0x1537ff);}else{const _0x1a6cd8=this['_suggestions']['get'](_0x2abbe1);null!==_0x2b03f3['newRange']||_0x1a6cd8['isInContent']?(_0x48be30['add'](_0x1a6cd8['head']),_0x3baf4a['add'](_0x1a6cd8)):this['_removeSuggestion'](_0x1a6cd8);}}_0x3baf4a['size']>0x0&&this['_refreshSuggestionsChain'](_0x3baf4a);for(const _0x25d71d of _0x48be30)this['fire']('suggestionChanged',_0x25d71d);}),_0x2c71bd['model']['on']('applyOperation',(_0x130142,_0x2fe221)=>{const _0x4b49c3=_0x2fe221[0x0];if(!this['_suggestions']['size'])return;if(!_0x4b49c3['isDocumentOperation'])return;if(_0x4b49c3['batch']['isUndo']||!_0x4b49c3['batch']['isLocal'])return;let _0xd95f25,_0x524d3b;switch(_0x4b49c3['type']){case'insert':_0xd95f25=_0x2c71bd['model']['createPositionAt'](_0x4b49c3['position']),_0x524d3b=_0xd95f25['getShiftedBy'](_0x4b49c3['howMany']);break;case'split':_0xd95f25=_0x2c71bd['model']['createPositionAt'](_0x4b49c3['splitPosition']),_0x524d3b=_0x2c71bd['model']['createPositionAt'](_0x4b49c3['moveTargetPosition']);break;case'move':_0xd95f25=_0x2c71bd['model']['createPositionAt'](_0x4b49c3['targetPosition']),_0x524d3b=_0xd95f25['getShiftedBy'](_0x4b49c3['howMany']);break;default:return;}const _0x1c5fc6=_0x2c71bd['model']['createRange'](_0xd95f25,_0x524d3b);_0x2c71bd['model']['change'](()=>{for(const {suggestion:_0x7cb193,meta:_0x450b39}of this['_findSuggestions'](_0x1c5fc6)){if(_0x7cb193['isMultiRange'])continue;if('formatInline'==_0x7cb193['type'])continue;const _0x3d7460=this['_getAttributeKey'](_0x7cb193);if(_0x3d7460&&this['_isBlockAttribute'](_0x3d7460)&&'split'!=_0x4b49c3['type'])continue;const _0x3ecf34=_0x7cb193['data']&&_0x7cb193['data']['multipleBlocks'];('formatBlock'!=_0x7cb193['type']||'split'==_0x4b49c3['type']&&!_0x3ecf34)&&(_0x450b39['containsRangeInObject']||'insertion'==_0x7cb193['type']&&_0x450b39['isOwn']||_0x7cb193['getFirstRange']()['containsRange'](_0x1c5fc6)&&this['_breakSuggestionMarker'](_0x7cb193,_0xd95f25,_0x524d3b));}});},{'priority':'lowest'}),_0x2c71bd['model']['on']('deleteContent',(_0x28bdd1,_0x316f8e)=>{const _0x1fe1a3=_0x316f8e[0x0],_0x3faba0=_0x316f8e[0x1];if(_0x3faba0&&_0x3faba0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1fe1a3['isCollapsed'])return;const _0x77ca3e=_0x2c71bd['model']['schema'],{start:_0x5a5eaa,end:_0x1db42c}=_0x1fe1a3['getFirstRange'](),_0x34a3be=_0x5a5eaa['nodeAfter']&&_0x77ca3e['isLimit'](_0x5a5eaa['nodeAfter'])?null:_0x77ca3e['getNearestSelectionRange'](_0x5a5eaa,'forward'),_0x623ad0=_0x1db42c['nodeBefore']&&_0x77ca3e['isLimit'](_0x1db42c['nodeBefore'])?null:_0x77ca3e['getNearestSelectionRange'](_0x1db42c,'backward'),_0x409e42=_0x2c71bd['model']['createRange'](_0x34a3be?_0x34a3be['start']:_0x5a5eaa,_0x623ad0?_0x623ad0['end']:_0x1db42c);_0x2c71bd['model']['change'](_0x2ba426=>{this['markDeletion'](_0x409e42);const _0x1461ae=_0x2c71bd['model']['schema']['getNearestSelectionRange'](_0x409e42['start']);_0x1fe1a3['is']('documentSelection')?_0x2ba426['setSelection'](_0x1461ae):_0x1fe1a3['setTo'](_0x1461ae);}),_0x28bdd1['stop']();},{'priority':_0x2e5569['normal']+0xa}),_0x2c71bd['model']['on']('insertContent',(_0xada95d,_0x340993)=>{const _0x13fbe2=_0x340993[_0x340993['length']-0x1];_0x13fbe2&&_0x13fbe2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2c71bd['model']['change'](()=>{let _0x97da2e=_0x2c71bd['model']['insertContent'](_0x340993[0x0],_0x340993[0x1],_0x340993[0x2],{'forceDefaultExecution':!0x0});if(!_0x97da2e)return;_0xada95d['return']=_0x97da2e['clone']();const _0x2c2290=_0x97da2e['end']['nodeBefore'],_0x4d2c94=_0x2c71bd['model']['schema'];_0x2c2290&&_0x4d2c94['isBlock'](_0x2c2290)&&!_0x4d2c94['isObject'](_0x2c2290)&&(_0x97da2e=_0x2c71bd['model']['createRange'](_0x97da2e['start'],_0x2c71bd['model']['createPositionAt'](_0x2c2290,'end'))),this['markInsertion'](_0x97da2e);}),_0xada95d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3127ab=new O(_0x2c71bd,this['_suggestions']);_0x2c71bd['commands']['add']('acceptSuggestion',_0x3127ab),this['enableCommand']('acceptSuggestion');const _0x5a081e=new R(_0x2c71bd,this['_suggestions']);_0x2c71bd['commands']['add']('discardSuggestion',_0x5a081e),this['enableCommand']('discardSuggestion'),_0x2c71bd['commands']['add']('acceptAllSuggestions',new x(_0x2c71bd,_0x3127ab,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2c71bd['commands']['add']('discardAllSuggestions',new x(_0x2c71bd,_0x5a081e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2c71bd['commands']['add']('acceptSelectedSuggestions',new E(_0x2c71bd,_0x3127ab,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2c71bd['commands']['add']('discardSelectedSuggestions',new E(_0x2c71bd,_0x5a081e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x149b08=_0x2c71bd['plugins']['get']('CommentsRepository');this['listenTo'](_0x149b08,'addComment',(_0x463d3b,{threadId:_0x43d6b6})=>{const _0xcde1cc=this['_suggestions']['get'](_0x43d6b6);_0xcde1cc&&_0xcde1cc['commentThread']&&0x1===_0xcde1cc['commentThread']['length']&&this['_updateSuggestionData'](_0x43d6b6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x149b08,'removeComment',(_0x1cf187,{threadId:_0x455ec0})=>{const _0x127de8=this['_suggestions']['get'](_0x455ec0);_0x127de8&&_0x127de8['commentThread']&&!_0x127de8['commentThread']['length']&&this['_updateSuggestionData'](_0x455ec0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2b091d){const _0x5c036a=_0x308584([0x6f,0x59,0x76,0x4b,0x36,0x77,0x51,0x4e,0x49,0x48,0x6c,0x64,0x5a,0x6e,0x6b,0x74,0x39,0x50,0x43,0x46,0x6d,0x6a,0x65,0x72,0x35,0x30,0x33,0x53,0x32,0x47,0x78,0x38,0x34,0x54,0x66,0x75,0x41,0x4d,0x79,0x37,0x67,0x56,0x69,0x70,0x61,0x31,0x55,0x4f,0x4c,0x4a,0x73,0x62,0x42,0x45,0x63,0x58,0x71,0x57,0x52,0x44,0x7a,0x68]),_0x46db42=0x1070b69a,_0x3d33b8=0x1077e8c2^_0x46db42,_0x36151a=window[_0x308584([0x44,0x61,0x74,0x65])][_0x308584([0x6e,0x6f,0x77])](),_0x13ad8b=_0x2b091d[_0x308584([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x377f9b=new window[(_0x308584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ddb47=>{_0x13ad8b[_0x308584([0x6f,0x6e,0x63,0x65])](_0x308584([0x72,0x65,0x61,0x64,0x79]),_0x1ddb47);}),_0x599622={[_0x308584([0x6b,0x74,0x79])]:_0x308584([0x45,0x43]),[_0x308584([0x75,0x73,0x65])]:_0x308584([0x73,0x69,0x67]),[_0x308584([0x63,0x72,0x76])]:_0x308584([0x50,0x2d,0x32,0x35,0x36]),[_0x308584([0x78])]:_0x308584([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]),[_0x308584([0x79])]:_0x308584([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]),[_0x308584([0x61,0x6c,0x67])]:_0x308584([0x45,0x53,0x32,0x35,0x36])},_0x5184d5=_0x13ad8b[_0x308584([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x308584([0x67,0x65,0x74])](_0x308584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xdf5816(){let _0x41904e,_0x2a615f=null,_0x3298ad=null;try{if(_0x5184d5==_0x308584([0x47,0x50,0x4c]))return _0x308584([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41904e=_0xc322db(),!_0x41904e)return _0x308584([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41904e[_0x308584([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3298ad=_0x58ca74(_0x41904e[_0x308584([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41904e[_0x308584([0x6a,0x74,0x69])])),await _0xbc41d5()?_0x23013f()?_0x132cbc()?_0x308584([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x931b6f()?(_0x41904e[_0x308584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x308584([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a615f=_0x21438a(_0x308584([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41904e[_0x308584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x308584([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a615f=_0x21438a(_0x308584([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c273f()):_0x308584([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x308584([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x308584([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x48aa58){return _0x308584([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x132cbc(){const _0x43125d=[_0x308584([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x308584([0x74,0x72,0x69,0x61,0x6c])][_0x308584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41904e[_0x308584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36151a/0x3e8:0xe10*_0x3d33b8;return _0x41904e[_0x308584([0x65,0x78,0x70])]<_0x43125d;}function _0x23013f(){const _0x360fa5=_0x41904e[_0x308584([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x360fa5)return!0x1;if(_0x360fa5[_0x308584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308584([0x2a])))return!0x0;if(_0x360fa5[_0x308584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308584([0x54,0x43])))return!0x0;if(_0x360fa5[_0x308584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308584([0x52,0x54,0x43]))){if(_0x334986())return!0x0;if(_0x534226()||_0x162593())return!0x0;}return!0x1;}function _0x931b6f(){const _0x1a2d4a=_0x41904e[_0x308584([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a2d4a||0x0==_0x1a2d4a[_0x308584([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c6fb3}=new URL(window[_0x308584([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a2d4a[_0x308584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c6fb3))return!0x0;const _0x582c92=_0x5c6fb3[_0x308584([0x73,0x70,0x6c,0x69,0x74])](_0x308584([0x2e]));return _0x1a2d4a[_0x308584([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x420ebf=>_0x420ebf[_0x308584([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308584([0x2a])))[_0x308584([0x6d,0x61,0x70])](_0x217af0=>_0x217af0[_0x308584([0x73,0x70,0x6c,0x69,0x74])](_0x308584([0x2e])))[_0x308584([0x73,0x6f,0x6d,0x65])](_0x408320=>_0x582c92[_0x308584([0x65,0x76,0x65,0x72,0x79])]((_0x5cfc56,_0xd2bc86)=>_0x408320[_0xd2bc86]===_0x5cfc56||_0x408320[_0xd2bc86]===_0x308584([0x2a])));}function _0x4c273f(){return _0x2a615f&&_0x3298ad?new window[(_0x308584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f868a,_0x19f420)=>{_0x2a615f[_0x308584([0x74,0x68,0x65,0x6e])](_0x1f868a,_0x19f420),_0x3298ad[_0x308584([0x74,0x68,0x65,0x6e])](_0x15e324=>{_0x15e324!=_0x308584([0x56,0x61,0x6c,0x69,0x64])&&_0x1f868a(_0x15e324);},_0x19f420);}):_0x2a615f||_0x3298ad||_0x308584([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58ca74(_0x28688b,_0x121c9f){return new window[(_0x308584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55840f=>{if(_0x363f90())return _0x55840f(_0x308584([0x56,0x61,0x6c,0x69,0x64]));_0x297cb8(),_0x13ad8b[_0x308584([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x308584([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e238f=!0x1;const _0x4983eb=_0x2b8ec1();function _0x87e593(_0x413a19){return!!_0x413a19&&(typeof _0x413a19===_0x308584([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x413a19===_0x308584([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x413a19[_0x308584([0x74,0x68,0x65,0x6e])]===_0x308584([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x413a19[_0x308584([0x63,0x61,0x74,0x63,0x68])]===_0x308584([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20c0c9(_0x13f8a6){_0x548f82(_0x13f8a6)[_0x308584([0x74,0x68,0x65,0x6e])](_0x3c6ad3=>{if(!_0x3c6ad3||_0x3c6ad3[_0x308584([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x308584([0x6f,0x6b]))return _0x308584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x548a78(_0x27a665(_0x4983eb+_0x121c9f))!=_0x3c6ad3[_0x308584([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x308584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x308584([0x56,0x61,0x6c,0x69,0x64]);})[_0x308584([0x74,0x68,0x65,0x6e])](_0x55208a=>(_0x1eae38(),_0x55208a),()=>{const _0x252774=_0x5bff3c();return null==_0x252774?(_0x1eae38(),_0x308584([0x56,0x61,0x6c,0x69,0x64])):_0x308584(_0x36151a-_0x252774>(0x347c329a^_0x46db42)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x308584([0x74,0x68,0x65,0x6e])](_0x55840f)[_0x308584([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55840f(_0x308584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27e753=0x1046581a^_0x46db42;function _0x1eae38(){const _0x1c4afd=_0x308584([0x6c,0x6c,0x63,0x74,0x2d])+_0x548a78(_0x27a665(_0x28688b)),_0x8f474b=_0x277929(_0x548a78(window[_0x308584([0x4d,0x61,0x74,0x68])][_0x308584([0x63,0x65,0x69,0x6c])](_0x36151a/_0x27e753)));window[_0x308584([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x308584([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c4afd,_0x8f474b);}function _0x5bff3c(){const _0xea83ee=_0x308584([0x6c,0x6c,0x63,0x74,0x2d])+_0x548a78(_0x27a665(_0x28688b)),_0x2e8a08=window[_0x308584([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x308584([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xea83ee);return _0x2e8a08?window[_0x308584([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x277929(_0x2e8a08),0x10)*_0x27e753:null;}function _0x548f82(_0x4110ec){return new window[(_0x308584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1895c3,_0x17ef4e)=>{_0x4110ec[_0x308584([0x74,0x68,0x65,0x6e])](_0x1895c3,_0x17ef4e),window[_0x308584([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17ef4e,0x1071625a^_0x46db42);});}}_0x13ad8b[_0x308584([0x6f,0x6e])](_0x308584([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ec9f9,_0x281fc3)=>{if(_0x281fc3[0x0]!=_0x28688b)return _0x55840f(_0x308584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x281fc3[0x1]={..._0x281fc3[0x1],[_0x308584([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4983eb};},{[_0x308584([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x308584([0x68,0x69,0x67,0x68])}),_0x13ad8b[_0x308584([0x6f,0x6e])](_0x308584([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x200967=>{_0x87e593(_0x200967[_0x308584([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e238f=!0x0,_0x20c0c9(_0x200967[_0x308584([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x308584([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x308584([0x6c,0x6f,0x77])}),_0x377f9b[_0x308584([0x74,0x68,0x65,0x6e])](()=>{_0x4e238f||_0x55840f(_0x308584([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x363f90(){return _0x13ad8b[_0x308584([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x308584([0x76,0x69,0x65,0x77])][_0x308584([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x308584([0x61,0x75,0x74,0x6f]);}function _0x297cb8(){_0x13ad8b[_0x308584([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x308584([0x76,0x69,0x65,0x77])][_0x308584([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x308584([0x61,0x75,0x74,0x6f]);}}function _0x21438a(_0x1075c3){const _0x180a41=[new window[(_0x308584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5718df=>setTimeout(_0x5718df,0x10798856^_0x46db42)),_0x377f9b[_0x308584([0x74,0x68,0x65,0x6e])](()=>new window[(_0x308584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3de2e4=>{let _0x15cbd7=0x0;_0x13ad8b[_0x308584([0x6d,0x6f,0x64,0x65,0x6c])][_0x308584([0x6f,0x6e])](_0x308584([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x496ead,_0x34a5a8)=>{_0x34a5a8[0x0][_0x308584([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15cbd7++,_0x15cbd7==(0x1070b762^_0x46db42)&&(_0x3de2e4(),_0x496ead[_0x308584([0x6f,0x66,0x66])]());});}))];return window[_0x308584([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x308584([0x72,0x61,0x63,0x65])](_0x180a41)[_0x308584([0x74,0x68,0x65,0x6e])](()=>_0x1075c3);}async function _0x10648f(){await _0x377f9b,_0x13ad8b[_0x308584([0x6d,0x6f,0x64,0x65,0x6c])][_0x308584([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e6ced,_0x13ad8b[_0x308584([0x6d,0x6f,0x64,0x65,0x6c])][_0x308584([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e6ced,_0x13ad8b[_0x308584([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x308584([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x334986(){return _0x3c2729(_0x308584([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x47d21f(_0x308584([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x308584([0x73,0x74,0x61,0x74,0x65])]==_0x308584([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x534226(){return _0x3c2729(_0x308584([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 _0x162593(){return _0x3c2729(_0x308584([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4731e0(_0x5eea43){const _0x108960=_0x5a86a5();_0x13ad8b[_0x108960]=_0x308584([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eea43,_0x5eea43!=_0x308584([0x56,0x61,0x6c,0x69,0x64])&&_0x10648f();}function _0x5a86a5(){const _0x113580=window[_0x308584([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x308584([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x308584([0x6e,0x6f,0x77])]())[_0x308584([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x308584([0x2e]),'');let _0x40f3f5=_0x308584([0x6f]);for(let _0x1c1e5b=0x0;_0x1c1e5b<_0x113580[_0x308584([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c1e5b+=0x2){let _0xd51c9d=window[_0x308584([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x113580[_0x308584([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c1e5b,_0x1c1e5b+0x2));_0xd51c9d>=_0x5c036a[_0x308584([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd51c9d-=_0x5c036a[_0x308584([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40f3f5+=_0x5c036a[_0xd51c9d];}return _0x40f3f5;}function _0xc322db(){const _0x529acb=_0x5184d5[_0x308584([0x73,0x70,0x6c,0x69,0x74])](_0x308584([0x2e]));if(0x3!=_0x529acb[_0x308584([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41deb9(_0x529acb[0x1]);function _0x41deb9(_0x85cb3e){const _0xf2e9b3=_0x54a651(_0x85cb3e);return _0xf2e9b3&&_0x14fa67()?_0xf2e9b3:null;function _0x14fa67(){const _0x34131f=_0xf2e9b3[_0x308584([0x6a,0x74,0x69])],_0x53612e=window[_0x308584([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34131f[_0x308584([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34131f[_0x308584([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x289006={..._0xf2e9b3,[_0x308584([0x6a,0x74,0x69])]:_0x34131f[_0x308584([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34131f[_0x308584([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x289006[_0x308584([0x76,0x63])],_0x27a665(_0x289006)==_0x53612e;}}}async function _0xbc41d5(){let _0x2897af=!0x0;try{const _0x5a4785=_0x5184d5[_0x308584([0x73,0x70,0x6c,0x69,0x74])](_0x308584([0x2e])),[_0x5554fe,_0x203157,_0x4d3929]=_0x5a4785;return _0x23f68c(_0x5554fe),await _0x554ae1(_0x5554fe,_0x203157,_0x4d3929),_0x2897af;}catch(_0x28962a){return!0x1;}function _0x23f68c(_0x33be4f){const _0x2c2ac1=_0x54a651(_0x33be4f);_0x2c2ac1&&_0x2c2ac1[_0x308584([0x61,0x6c,0x67])]==_0x308584([0x45,0x53,0x32,0x35,0x36])||(_0x2897af=!0x1);}async function _0x554ae1(_0x3c8a3c,_0x5b0b92,_0x3a750c){const _0x1014ce=window[_0x308584([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x308584([0x66,0x72,0x6f,0x6d])](_0x804a3(_0x3a750c),_0x5fd0fd=>_0x5fd0fd[_0x308584([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4fc7bf=new window[(_0x308584([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x308584([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c8a3c+_0x308584([0x2e])+_0x5b0b92),_0x3304a5=window[_0x308584([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x308584([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3304a5)return;const _0x3b9f53=await _0x3304a5[_0x308584([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x308584([0x6a,0x77,0x6b]),_0x599622,{[_0x308584([0x6e,0x61,0x6d,0x65])]:_0x308584([0x45,0x43,0x44,0x53,0x41]),[_0x308584([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x308584([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x308584([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3304a5[_0x308584([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x308584([0x6e,0x61,0x6d,0x65])]:_0x308584([0x45,0x43,0x44,0x53,0x41]),[_0x308584([0x68,0x61,0x73,0x68])]:{[_0x308584([0x6e,0x61,0x6d,0x65])]:_0x308584([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b9f53,_0x1014ce,_0x4fc7bf)||(_0x2897af=!0x1);}}function _0x54a651(_0x4f78d4){return _0x4f78d4[_0x308584([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x308584([0x65,0x79]))?JSON[_0x308584([0x70,0x61,0x72,0x73,0x65])](_0x804a3(_0x4f78d4)):null;}function _0x804a3(_0x4d3f11){return window[_0x308584([0x61,0x74,0x6f,0x62])](_0x4d3f11[_0x308584([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x308584([0x2b]))[_0x308584([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x308584([0x2f])));}function _0x27a665(_0x5db8e0){let _0x17fa38=0x1505;function _0x3c4d06(_0x1f013b){for(let _0x3d71ab=0x0;_0x3d71ab<_0x1f013b[_0x308584([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d71ab++){const _0x5a39ef=_0x1f013b[_0x308584([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d71ab);_0x17fa38=(_0x17fa38<<0x5)+_0x17fa38+_0x5a39ef,_0x17fa38&=_0x17fa38;}}function _0x53bad9(_0x35820b){Array[_0x308584([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35820b)?_0x35820b[_0x308584([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53bad9):_0x35820b&&typeof _0x35820b==_0x308584([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x308584([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35820b)[_0x308584([0x73,0x6f,0x72,0x74])]()[_0x308584([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16861f,_0xf99eb5])=>{_0x3c4d06(_0x16861f),_0x53bad9(_0xf99eb5);}):_0x3c4d06(window[_0x308584([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35820b));}return _0x53bad9(_0x5db8e0),_0x17fa38>>>0x0;}function _0x548a78(_0x3b0017){return _0x3b0017[_0x308584([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x308584([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x308584([0x30]));}function _0x277929(_0x4f8935){return _0x4f8935[_0x308584([0x73,0x70,0x6c,0x69,0x74])]('')[_0x308584([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x308584([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c2729(_0x364587){return _0x13ad8b[_0x308584([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x308584([0x68,0x61,0x73])](_0x364587);}function _0x47d21f(_0x512adb){return _0x13ad8b[_0x308584([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x308584([0x67,0x65,0x74])](_0x512adb);}function _0x2e6ced(){}function _0x308584(_0x1b4ad9){return _0x1b4ad9['map'](_0x859d71=>String['fromCharCode'](_0x859d71))['join']('');}_0x4731e0(await _0xdf5816());}(this);}set['adapter'](_0x55c90f){if(this['_adapter'])throw new _0x5be2ae('track-changes-adapter-already-set',this);this['_adapter']=_0x55c90f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b2b9d=!0x1,toJSON:_0x33fc51=!0x1}={}){const _0x1003f9=[];for(const _0x1fa40b of this['_suggestions']['values']())_0x4b2b9d&&!_0x1fa40b['isInContent']||_0x1003f9['push'](_0x1fa40b);return _0x33fc51?_0x1003f9['map'](_0x2cd31d=>_0x2cd31d['toJSON']()):_0x1003f9;}['getSuggestion'](_0x35e928){const _0x3836b0=this['_suggestions']['get'](_0x35e928);if(!_0x3836b0)throw new _0x5be2ae('track-changes-suggestion-not-found',this);return _0x3836b0;}['hasSuggestion'](_0x302810){return this['_suggestions']['has'](_0x302810);}['addSuggestionData'](_0x293215){const {authorId:_0x5e392f,id:_0x10dba0,attributes:_0x18be1a}=_0x293215,[_0x21d189,_0x42c6c9]=_0x293215['type']['split'](':'),_0x2e2122=this['_suggestions']['get'](_0x10dba0)||this['_createSuggestion'](_0x21d189,_0x42c6c9,_0x10dba0,_0x5e392f,_0x18be1a);if(this['_addThreadToSuggestion'](_0x2e2122),this['_checkSuggestionCorrectness'](_0x2e2122,_0x21d189,_0x42c6c9||null,_0x5e392f),_0x2e2122['createdAt']=_0x293215['createdAt'],_0x2e2122['_isDataLoaded']=!0x0,_0x18be1a&&_0x18be1a['@external']){const _0x47151e=_0x18be1a['@external'],_0x571dab=this['_getExternalAuthor'](_0x47151e['authorName']);_0x2e2122['authoredAt']=_0x47151e['createdAt'],_0x2e2122['author']=_0x571dab,_0x2e2122['isExternal']=!0x0;}else _0x2e2122['authoredAt']=_0x293215['createdAt'];switch(_0x293215['data']&&(_0x2e2122['data']=_0x293215['data']),_0x293215['attributes']&&(_0x2e2122['attributes']=_0x293215['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2e2122['_saved']=!0x0),this['_suggestionState']['get'](_0x2e2122)){case'notReady':this['_suggestionState']['set'](_0x2e2122,'dataReady');break;case'markerReady':_0x2e2122['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2e2122])),this['_refreshSuggestionsChain'](new Set([_0x2e2122])),this['_suggestionState']['set'](_0x2e2122,'ready'),this['fire']('suggestionLoaded',_0x2e2122)):this['_suggestionState']['set'](_0x2e2122,'removed');}return _0x2e2122;}['acceptSuggestion'](_0x1ff216){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e218a of _0x1ff216['getAllAdjacentSuggestions']())_0x2e218a['accept']();});});}['discardSuggestion'](_0x112257){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ea403 of _0x112257['getAllAdjacentSuggestions']())_0x5ea403['discard']();});});}['enableCommand'](_0x3da351,_0x536529){const _0x405745=this['editor']['commands']['get'](_0x3da351);if(!_0x405745)throw new _0x5be2ae('track-changes-command-not-found',this,{'commandName':_0x3da351});if(this['_enabledCommands']['has'](_0x405745))throw new _0x5be2ae('track-changes-enable-command-twice',this,{'commandName':_0x3da351});this['_enabledCommands']['add'](_0x405745),_0x536529&&_0x405745['on']('execute',(_0x321cc6,_0x38b275)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x38b275['length']>0x0&&_0x38b275[_0x38b275['length']-0x1]&&_0x38b275[_0x38b275['length']-0x1]['forceDefaultExecution']?_0x38b275['pop']():(_0x321cc6['return']=_0x536529((..._0x20c98b)=>_0x405745['execute'](..._0x20c98b,{'forceDefaultExecution':!0x0}),..._0x38b275),_0x321cc6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2a3c8d){let _0x34bc60,_0x1d02f8;const _0x3037a0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x34bc60=_0x2a3c8d();}catch(_0x3112c6){_0x1d02f8=_0x3112c6;}return _0x3037a0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d02f8&&_0x5be2ae['rethrowUnexpectedError'](_0x1d02f8,this),_0x34bc60;}['markInsertion'](_0x156777,_0xc2c916=null,_0x54fd78={}){if(_0x156777['isCollapsed'])return null;const _0x401ef6=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xdf6d8c,meta:_0x1be571}of this['_findSuggestions'](_0x156777,'insertion'))if(_0x1be571['isOwn']){if(!_0x1be571['isNextTo']){if(_0x1be571['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Wt(_0xdf6d8c,_0x54fd78))continue;return _0xdf6d8c;}if(Wt(_0xdf6d8c,_0x54fd78))return _0xdf6d8c;this['_breakSuggestionMarker'](_0xdf6d8c,_0x156777['start'],_0x156777['end']);break;}if(_0xc2c916==_0xdf6d8c['subType']&&Wt(_0xdf6d8c,_0x54fd78)){const _0x50c0dd=_0xdf6d8c['getFirstRange']();return _0x50c0dd['start']['isEqual'](_0x156777['end'])?this['_setSuggestionRange'](_0xdf6d8c,this['_model']['createRange'](_0x156777['start'],_0x50c0dd['end'])):this['_setSuggestionRange'](_0xdf6d8c,this['_model']['createRange'](_0x50c0dd['start'],_0x156777['end'])),_0xdf6d8c;}}const _0x29d3b0=_0x2b8ec1(),_0xf9825f=_0x401ef6['id'],_0x271c76=_0xc2c916?'insertion:'+_0xc2c916:'insertion',_0x21a237=this['_setSuggestionData']({'id':_0x29d3b0,'type':_0x271c76,'createdAt':new Date(),'authorId':_0xf9825f,'attributes':_0x54fd78});return this['_addSuggestionMarker'](_0x271c76,_0x29d3b0,_0xf9825f,_0x156777),_0x21a237;}['markMultiRangeInsertion'](_0x4f3fbc,_0x3fd7b0='multi',_0x5dab3c={}){const _0x3dd8e1=this['editor']['plugins']['get']('Users')['me'],_0x374f93=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3fd7b0,'join');for(const _0x2e6391 of this['getSuggestions']())if(_0x2e6391['author']['id']==_0x3dd8e1['id']&&'insertion'==_0x2e6391['type']&&_0x2e6391['subType']==_0x3fd7b0&&Wt(_0x2e6391,_0x5dab3c)&&(_0x374f93(_0x2e6391['getRanges'](),_0x4f3fbc)||_0x374f93(_0x4f3fbc,_0x2e6391['getRanges']()))){for(const _0x75e7bf of _0x4f3fbc)_0x2e6391['addRange'](_0x75e7bf);return _0x2e6391;}for(const {suggestion:_0x1e0840,meta:_0x2a44f8}of this['_findSuggestions'](_0x4f3fbc,'insertion')){if(!_0x2a44f8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2a44f8['containsRangeInObject'])continue;if(!Wt(_0x1e0840,_0x5dab3c))continue;let _0x24e56d=!0x0;for(const _0x268b3e of _0x1e0840['getRanges']())for(const _0x569c98 of _0x4f3fbc)if(!_0x268b3e['containsRange'](_0x569c98)){_0x24e56d=!0x1;break;}if(_0x24e56d)return _0x1e0840;}const _0x264a37=_0x2b8ec1(),_0x1e1283=_0x3dd8e1['id'],_0x565900='insertion:'+_0x3fd7b0,_0x53000a=this['_setSuggestionData']({'id':_0x264a37,'type':_0x565900,'createdAt':new Date(),'authorId':_0x1e1283,'attributes':_0x5dab3c});for(const _0x3b0032 of _0x4f3fbc)this['_addSuggestionMarker'](_0x565900,_0x264a37,_0x1e1283,_0x3b0032,u['getMultiRangeId']());return _0x53000a;}['markInlineFormat'](_0xda5a93,_0x1130d6,_0x1dee55=null,_0x3464d9={}){if(_0x1dee55=_0x1dee55||Lt(_0x1130d6),_0xda5a93['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x165260=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1dee55,'accept');return this['forceDefaultExecution'](()=>_0x165260([_0xda5a93],_0x1130d6,_0x3464d9)),null;}const _0x412178=this['editor']['plugins']['get']('Users')['me'],_0x4c90b8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x572caa,meta:_0x55e990}of this['_findSuggestions'](_0xda5a93,'insertion'))_0x55e990['isOwn']&&!_0x55e990['isInsideObject']&&_0x4c90b8['push'](..._0x572caa['getRanges']());}const _0x44e191=function(_0x27d91d,_0x5a5153){const _0x59c1fe=[];for(const _0x1e430c of _0x5a5153){const _0x1d0a00=_0x27d91d['getIntersection'](_0x1e430c);_0x1d0a00&&_0x59c1fe['push'](_0x1d0a00);}return _0x59c1fe;}(_0xda5a93,_0x4c90b8),_0x22a74d=function(_0x226aa1,_0x1ed43a){const _0x1e5caf=[_0x226aa1];for(const _0x2ddf32 of _0x1ed43a){let _0x431834=0x0;for(;_0x431834<_0x1e5caf['length'];){const _0xa8b439=_0x1e5caf[_0x431834]['getDifference'](_0x2ddf32);_0x1e5caf['splice'](_0x431834,0x1,..._0xa8b439),_0x431834+=_0xa8b439['length'];}}return _0x1e5caf;}(_0xda5a93,_0x4c90b8);_0x44e191['length']&&this['_model']['change'](()=>{for(const _0x475cbd of _0x44e191){const _0x4740a8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1dee55,'accept');this['forceDefaultExecution'](()=>_0x4740a8([_0x475cbd],_0x1130d6,_0x3464d9));}});for(const _0x1de0bb of _0x22a74d){let _0x44c885=null,_0x49e20f=_0x1de0bb['start'],_0x990808=_0x1de0bb['end'];for(const {suggestion:_0x49a36f,meta:_0x59ac9c}of this['_findSuggestions'](_0x1de0bb,'formatInline')){if(!_0x59ac9c['isOwn'])continue;if(_0x49a36f['subType']!=_0x1dee55)continue;if(!Wt(_0x49a36f,_0x3464d9))continue;const _0x12953a=_0x49a36f['getFirstRange']();if(_0x12953a['containsRange'](_0x1de0bb,!0x0))return null;_0x49e20f=_0x49e20f['isBefore'](_0x12953a['start'])?_0x49e20f:_0x12953a['start'],_0x990808=_0x990808['isAfter'](_0x12953a['end'])?_0x990808:_0x12953a['end'],_0x44c885?_0x12953a['start']['isBefore'](_0x44c885['getFirstRange']()['start'])?(_0x44c885['removeMarkers'](),_0x44c885=_0x49a36f):_0x49a36f['removeMarkers']():_0x44c885=_0x49a36f;}const _0x4222d0=this['_model']['createRange'](_0x49e20f,_0x990808);if(_0x44c885)this['_setSuggestionRange'](_0x44c885,_0x4222d0);else{const _0x5833ea=_0x2b8ec1(),_0x8a4f77=_0x412178['id'];this['_setSuggestionData']({'id':_0x5833ea,'type':'formatInline:'+_0x1dee55,'data':_0x1130d6,'createdAt':new Date(),'authorId':_0x8a4f77,'attributes':_0x3464d9}),this['_addSuggestionMarker']('formatInline:'+_0x1dee55,_0x5833ea,_0x8a4f77,_0x4222d0);}}return null;}['markBlockFormat'](_0x7770c,_0x1cae95,_0x57d187=[],_0x1fa70a=null,_0x42192c={}){_0x1cae95['formatGroupId']||(_0x1cae95['formatGroupId']=_0x1cae95['commandName']),_0x1cae95['multipleBlocks']=_0x7770c['is']('range'),_0x1fa70a=_0x1fa70a||Lt(_0x1cae95);const _0x4e8d4f=_0x57d187['map'](_0x2c9037=>qt(_0x2c9037,this['_model'])),_0x14c769=_0x7770c['is']('range')?_0x7770c:qt(_0x7770c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x45644a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa70a,'accept');return this['forceDefaultExecution'](()=>_0x45644a([_0x14c769],_0x1cae95,_0x42192c)),null;}_0x4e8d4f['push'](_0x14c769);let _0x43cee5=!0x0;for(const _0x6513ec of _0x4e8d4f)if(!this['_rangeIsInLocalUserInsertion'](_0x6513ec)){_0x43cee5=!0x1;break;}if(_0x43cee5&&'always'!==this['_trackFormatChanges']){const _0x3da723=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fa70a,'accept');return this['forceDefaultExecution'](()=>_0x3da723([_0x14c769],_0x1cae95,_0x42192c)),null;}let _0x3323c7=null,_0x352ef7=_0x14c769['start'],_0x20d75d=_0x14c769['end'];for(const {suggestion:_0x5622e8,meta:_0x66dff2}of this['_findSuggestions'](_0x14c769,'formatBlock')){if(!_0x66dff2['isOwn'])continue;if(_0x66dff2['isNextTo']||_0x66dff2['containsRangeInObject']||_0x66dff2['isInsideObject'])continue;if(_0x5622e8['data']['formatGroupId']!=_0x1cae95['formatGroupId'])continue;if(!Wt(_0x5622e8,_0x42192c))continue;const _0x8fa2b=_0x5622e8['getFirstRange']();if(_0x5622e8['subType']==_0x1fa70a){if(_0x8fa2b['containsRange'](_0x14c769,!0x0))return null;_0x352ef7=_0x352ef7['isBefore'](_0x8fa2b['start'])?_0x352ef7:_0x8fa2b['start'],_0x20d75d=_0x20d75d['isAfter'](_0x8fa2b['end'])?_0x20d75d:_0x8fa2b['end'],_0x3323c7?_0x8fa2b['start']['isBefore'](_0x3323c7['getFirstRange']()['start'])?(_0x3323c7['removeMarkers'](),_0x3323c7=_0x5622e8):_0x5622e8['removeMarkers']():_0x3323c7=_0x5622e8;}else{const _0x9b71a2=_0x14c769['getIntersection'](_0x8fa2b);this['_cutOutSuggestionMarker'](_0x5622e8,_0x9b71a2);}}const _0xa91b12=this['editor']['plugins']['get']('Users')['me'],_0xb36f57=_0x2b8ec1(),_0x210274=_0xa91b12['id'];if(_0x3323c7)return this['_setSuggestionRange'](_0x3323c7,this['_model']['createRange'](_0x352ef7,_0x20d75d)),_0x3323c7;{const _0x540f19=this['_setSuggestionData']({'id':_0xb36f57,'type':'formatBlock:'+_0x1fa70a,'data':_0x1cae95,'createdAt':new Date(),'authorId':_0x210274,'attributes':_0x42192c});return this['_addSuggestionMarker']('formatBlock:'+_0x1fa70a,_0xb36f57,_0x210274,this['_model']['createRange'](_0x352ef7,_0x20d75d)),_0x540f19;}}['markMultiRangeBlockFormat'](_0x4646c4,_0xafce5d,_0x41a9c7=[],_0x224d30=null,_0x6efb3b={}){_0xafce5d['formatGroupId']||(_0xafce5d['formatGroupId']=_0xafce5d['commandName']);const _0x545427=_0x4646c4[0x0];_0xafce5d['multipleBlocks']=_0x545427['is']('range'),_0x224d30=_0x224d30||Lt(_0xafce5d);const _0x4aed0a=_0x41a9c7['map'](_0x19d649=>qt(_0x19d649,this['_model'])),_0x49a3b3=_0x545427['is']('range')?_0x4646c4:_0x4646c4['map'](_0xbf7bba=>qt(_0xbf7bba,this['_model']));if('never'===this['_trackFormatChanges']){const _0x23211e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x224d30,'accept');return this['forceDefaultExecution'](()=>_0x23211e(_0x49a3b3,_0xafce5d,_0x6efb3b)),null;}_0x4aed0a['push'](..._0x49a3b3);let _0x462fa1=!0x0;for(const _0x1955ce of _0x4aed0a)if(!this['_rangeIsInLocalUserInsertion'](_0x1955ce)){_0x462fa1=!0x1;break;}if(_0x462fa1&&'always'!==this['_trackFormatChanges']){const _0x3bbf73=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x224d30,'accept');return this['forceDefaultExecution'](()=>_0x3bbf73(_0x49a3b3,_0xafce5d,_0x6efb3b)),null;}const _0x16cbe2=this['editor']['plugins']['get']('Users')['me'];for(const _0x1764e0 of this['getSuggestions']()){if(_0x1764e0['author']['id']!=_0x16cbe2['id'])continue;if('formatBlock'!=_0x1764e0['type']||_0x1764e0['data']['formatGroupId']!=_0xafce5d['formatGroupId'])continue;if(!Wt(_0x1764e0,_0x6efb3b))continue;const _0x252f96=_0x1764e0['subType']==_0x224d30;for(let _0x9e0961=0x0;_0x9e0961<_0x49a3b3['length'];_0x9e0961++){const _0x210fbe=_0x49a3b3[_0x9e0961];for(const _0x3f411a of _0x1764e0['getMarkers']()){const _0x58533b=_0x3f411a['getRange']();if(_0x210fbe['isEqual'](_0x58533b)){_0x252f96?(_0x49a3b3['splice'](_0x9e0961,0x1),_0x9e0961--):_0x1764e0['removeMarker'](_0x3f411a['name']);break;}}}}if(0x0==_0x49a3b3['length'])return null;const _0x235d6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x224d30,'join');for(const _0x438396 of this['getSuggestions']())if(_0x438396['author']['id']==_0x16cbe2['id']&&'formatBlock'==_0x438396['type']&&_0x438396['data']['formatGroupId']==_0xafce5d['formatGroupId']&&_0x438396['subType']==_0x224d30&&Wt(_0x438396,_0x6efb3b)&&(_0x235d6f(_0x438396['getRanges'](),_0x49a3b3)||_0x235d6f(_0x49a3b3,_0x438396['getRanges']()))){for(const _0x344650 of _0x49a3b3)_0x438396['addRange'](_0x344650);return _0x438396;}const _0x2bbcb3=_0x2b8ec1(),_0x267e2f=_0x16cbe2['id'],_0x585e4e='formatBlock:'+_0x224d30,_0x38231b=this['_setSuggestionData']({'id':_0x2bbcb3,'type':_0x585e4e,'data':_0xafce5d,'createdAt':new Date(),'authorId':_0x267e2f,'attributes':_0x6efb3b});for(const _0x5aeb5c of _0x49a3b3)this['_addSuggestionMarker'](_0x585e4e,_0x2bbcb3,_0x267e2f,_0x5aeb5c,u['getMultiRangeId']());return _0x38231b;}['markDeletion'](_0x5f0edf,_0x17fe5e=null,_0x2acc32={}){if(_0x5f0edf['isCollapsed'])return null;const _0x119558=this['editor']['plugins']['get']('Users')['me'],_0x5b0f0d=new _0x41d70f(_0x5f0edf['start'],_0x5f0edf['end']);for(const {suggestion:_0x4df748,meta:_0x189487}of this['_findSuggestions'](_0x5b0f0d,'insertion'))if(_0x189487['isOwn']&&!_0x189487['isNextTo']){if(_0x4df748['isMultiRange']){const _0xcb3ff=_0x4df748['getRanges']()['filter'](_0x5372bb=>'$graveyard'!=_0x5372bb['root']['rootName']);_0xcb3ff['every'](_0x9f78f2=>_0x5b0f0d['containsRange'](_0x9f78f2,!0x0))&&_0x4df748['discard']();if(_0xcb3ff['some'](_0x1c1320=>_0x1c1320['containsRange'](_0x5b0f0d,!0x0))){const _0x1ee082=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17fe5e,'accept');return this['forceDefaultExecution'](()=>_0x1ee082([_0x5b0f0d],null,_0x2acc32)),null;}}else{const _0x487fc9=_0x5b0f0d['getIntersection'](_0x4df748['getFirstRange']());null!==_0x487fc9&&_0x4df748['_onDiscard']([_0x487fc9],null,_0x2acc32);}}if(_0x5b0f0d['detach'](),_0x5b0f0d['isCollapsed']||'$graveyard'==_0x5b0f0d['root']['rootName'])return null;let _0x16f51b=null,_0x15683b=_0x5b0f0d['start'],_0x5a1558=_0x5b0f0d['end'];const _0x4304e7=this['_findSuggestions'](_0x5b0f0d,'deletion');for(const {suggestion:_0x2554eb,meta:_0x34f467}of _0x4304e7){const _0x184ab8=this['_model']['createRange'](_0x15683b,_0x5a1558);if(_0x34f467['isOwn']&&(this['_mergeNestedSuggestions']||!_0x34f467['containsRangeInObject']&&!_0x34f467['isInsideObject'])){if(_0x2554eb['isMultiRange']){if(!Wt(_0x2554eb,_0x2acc32))continue;let _0x1eaf20=!0x0;for(const _0x6646ea of _0x2554eb['getRanges']()){if(_0x6646ea['containsRange'](_0x184ab8,!0x0))return _0x2554eb;_0x184ab8['containsRange'](_0x6646ea)||(_0x1eaf20=!0x1);}_0x1eaf20&&_0x2554eb['discard']();}else{const _0x158879=_0x2554eb['getFirstRange']();if(_0x158879['containsRange'](_0x184ab8,!0x0))return _0x2554eb;if(!Wt(_0x2554eb,_0x2acc32)){_0x184ab8['containsRange'](_0x158879)?_0x2554eb['removeMarkers']():_0x158879['containsPosition'](_0x15683b)?_0x15683b=_0x158879['end']:_0x158879['containsPosition'](_0x5a1558)&&(_0x5a1558=_0x158879['start']);continue;}_0x15683b=_0x15683b['isBefore'](_0x158879['start'])?_0x15683b:_0x158879['start'],_0x5a1558=_0x5a1558['isAfter'](_0x158879['end'])?_0x5a1558:_0x158879['end'],_0x2acc32=Object['assign']({},_0x2554eb['attributes']),_0x16f51b?_0x158879['start']['isBefore'](_0x16f51b['getFirstRange']()['start'])?(_0x16f51b['removeMarkers'](),_0x16f51b=_0x2554eb):_0x2554eb['removeMarkers']():_0x16f51b=_0x2554eb;}}}if(_0x16f51b)return this['_setSuggestionRange'](_0x16f51b,this['_model']['createRange'](_0x15683b,_0x5a1558)),_0x16f51b;{const _0x308f8c=_0x2b8ec1(),_0x523dab=this['_model']['createRange'](_0x15683b,_0x5a1558),_0x3a4027=_0x119558['id'],_0x5439e7=_0x17fe5e?'deletion:'+_0x17fe5e:'deletion',_0x5d8eef=this['_setSuggestionData']({'id':_0x308f8c,'type':_0x5439e7,'createdAt':new Date(),'authorId':_0x3a4027,'attributes':_0x2acc32});return this['_addSuggestionMarker'](_0x5439e7,_0x308f8c,_0x3a4027,_0x523dab),_0x5d8eef;}}['markMultiRangeDeletion'](_0x3401ac,_0x5e907f='multi',_0x4bcab7={}){const _0x56caf7=this['editor']['plugins']['get']('Users')['me'],_0x42f024=_0x3401ac['map'](_0x146bc2=>new _0x41d70f(_0x146bc2['start'],_0x146bc2['end'])),_0x17edae=new Set();for(const {suggestion:_0x598df6,meta:_0x351494}of this['_findSuggestions'](_0x42f024,'insertion'))_0x351494['isOwn']&&!_0x351494['isNextTo']&&_0x17edae['add'](_0x598df6);for(const _0x585a6d of _0x17edae)if(_0x585a6d['isMultiRange']){const _0x388010=_0x585a6d['getRanges']();(!_0x585a6d['attributes']||!_0x585a6d['attributes']['skipNestingCheck'])&&(_0x388010['every'](_0x21d24b=>_0x42f024['some'](_0x287144=>_0x287144['containsRange'](_0x21d24b,!0x0)))&&_0x585a6d['discard']());if(_0x42f024['every'](_0x42632a=>_0x388010['some'](_0x1807fd=>_0x1807fd['containsRange'](_0x42632a,!0x0)))){const _0x2faaf3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e907f,'accept');return this['forceDefaultExecution'](()=>_0x2faaf3(_0x3401ac,null,_0x4bcab7)),null;}}else{const _0x417219=_0x585a6d['getFirstRange']();_0x42f024['some'](_0x49db79=>_0x49db79['containsRange'](_0x417219,!0x0))&&_0x585a6d['discard']();if(_0x42f024['every'](_0x4c9d70=>_0x417219['containsRange'](_0x4c9d70,!0x0))){const _0x5ced58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e907f,'accept');return this['forceDefaultExecution'](()=>_0x5ced58(_0x42f024,null,_0x4bcab7)),null;}}const _0x55f800=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e907f,'join');let _0x3369e8=null;for(const _0x53c6b9 of this['getSuggestions']())if(_0x53c6b9['author']['id']==_0x56caf7['id']&&_0x53c6b9['isInContent']&&'deletion'==_0x53c6b9['type']&&_0x53c6b9['subType']==_0x5e907f&&Wt(_0x53c6b9,_0x4bcab7)&&(_0x55f800(_0x53c6b9['getRanges'](),_0x42f024)||_0x55f800(_0x42f024,_0x53c6b9['getRanges']()))){if(_0x3369e8){if(_0x53c6b9['commentThread']&&_0x53c6b9['commentThread']['length'])continue;for(const _0x1a82d6 of _0x53c6b9['getRanges']())_0x3369e8['isIntersectingWithRange'](_0x1a82d6)||_0x3369e8['addRange'](_0x1a82d6);_0x53c6b9['removeMarkers']();}else{_0x3369e8=_0x53c6b9;for(const _0x5d9252 of _0x42f024)_0x53c6b9['isIntersectingWithRange'](_0x5d9252)||_0x53c6b9['addRange'](_0x5d9252);}}if(_0x3369e8)return _0x3369e8;_0x17edae['clear']();for(const {suggestion:_0x4106be,meta:_0x1d4774}of this['_findSuggestions'](_0x42f024,'deletion'))_0x1d4774['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d4774['containsRangeInObject']&&!_0x1d4774['isInsideObject'])&&Wt(_0x4106be,_0x4bcab7)&&_0x17edae['add'](_0x4106be);for(const _0x1f496d of _0x17edae){const _0x16decc=_0x1f496d['getRanges']();if(!_0x4bcab7||!_0x4bcab7['skipNestingCheck']){if(_0x42f024['every'](_0x1330af=>_0x16decc['some'](_0x288d56=>_0x288d56['containsRange'](_0x1330af,!0x0))))return _0x1f496d;}(!_0x1f496d['attributes']||!_0x1f496d['attributes']['skipNestingCheck'])&&(_0x16decc['every'](_0x14d376=>_0x42f024['some'](_0x1ca6d6=>_0x1ca6d6['containsRange'](_0x14d376,!0x0)))&&_0x1f496d['discard']());}const _0x50200c=_0x2b8ec1(),_0x5bf8ae=_0x56caf7['id'],_0xcf5e02='deletion:'+_0x5e907f,_0x2d6076=this['_setSuggestionData']({'id':_0x50200c,'type':_0xcf5e02,'createdAt':new Date(),'authorId':_0x5bf8ae,'attributes':_0x4bcab7});for(const _0x265c04 of _0x42f024)_0x265c04['detach'](),_0x265c04['isCollapsed']||'$graveyard'==_0x265c04['root']['rootName']||this['_addSuggestionMarker'](_0xcf5e02,_0x50200c,_0x5bf8ae,_0x265c04,u['getMultiRangeId']());return _0x2d6076;}['markAttributeChange'](_0x59dd6c,_0x4ac8a6,_0x3e2e58,_0x2de103,_0x51eb18){if(_0x59dd6c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c205a=this['editor']['plugins']['get']('Users')['me']['id'],_0x5151e1=Array['from'](this['_suggestions']['values']())['filter'](_0x26aff6=>'attribute'==_0x26aff6['type']&&_0x26aff6['data']['key']==_0x4ac8a6&&_0x26aff6['isIntersectingWithRange'](_0x59dd6c));if('default'===this['_trackFormatChanges']){const _0x3c5763=this['_findSuggestions'](_0x59dd6c,'insertion')['filter'](({meta:_0x563da5})=>_0x563da5['isOwn']&&!_0x563da5['isInsideObject']&&!_0x563da5['isNextTo'])['map'](({suggestion:_0x3828b6})=>_0x3828b6);_0x5151e1['unshift'](..._0x3c5763);}const _0x2aa68c=new Map([[_0x59dd6c,_0x3e2e58]]);for(const _0x2c3e4f of _0x5151e1){const _0xa40243='attribute'==_0x2c3e4f['type']?_0x2c3e4f['data']['oldValue']:void 0x0,_0x560c85=_0x2c3e4f['getFirstRange'](),_0x420077=Array['from'](_0x2aa68c['keys']())['find'](_0x5db9ab=>_0x5db9ab['isIntersecting'](_0x560c85));if(!_0x420077)continue;const _0x33f248=_0x420077['getDifference'](_0x560c85);this['_isBlockAttribute'](_0x4ac8a6)&&'insertion'==_0x2c3e4f['type']&&0x0!=_0x33f248['length']||(_0x2aa68c['delete'](_0x420077),_0x33f248['forEach'](_0x470e54=>{_0x2aa68c['set'](_0x470e54,_0x3e2e58);}),'insertion'!=_0x2c3e4f['type']&&_0xa40243!=_0x2de103&&_0x2aa68c['set'](_0x420077['getIntersection'](_0x560c85),_0xa40243));}const _0x3bdd5f=[];for(const [_0xd5e9d4,_0x211d99]of _0x2aa68c){const _0x4f03e7=_0x2b8ec1(),_0x23edd3={'key':_0x4ac8a6,'oldValue':_0x211d99,'newValue':_0x2de103};_0x4ac8a6['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':_0x4ac8a6});const _0x3545a=('attribute:'+(_0x4ac8a6+'|'+Lt({'newValue':_0x2de103})))['substring'](0x0,0x3c),_0x12f92b=this['_setSuggestionData']({'id':_0x4f03e7,'type':_0x3545a,'data':_0x23edd3,'createdAt':new Date(),'authorId':_0x4c205a,'attributes':_0x51eb18});_0x3bdd5f['push'](_0x12f92b),this['_addSuggestionMarker'](_0x3545a,_0x4f03e7,_0x4c205a,_0xd5e9d4);}return _0x3bdd5f;}['enableDefaultAttributesIntegration'](_0x3a17c1){this['enableCommand'](_0x3a17c1,(_0x7e460d,..._0x34998a)=>{this['_recordAttributeChanges'](()=>{_0x7e460d(..._0x34998a);});});}['registerBlockAttribute'](_0x598c1e){this['_blockAttributeKeys']['add'](_0x598c1e);}['registerInlineAttribute'](_0x11d7f2){this['_inlineAttributeKeys']['add'](_0x11d7f2);}['_getAttributeKey'](_0x69be50){return'attribute'==_0x69be50['type']?_0x69be50['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x29705b,_0x1f3fc9){const _0x31d650=_0x29705b['getFirstMarker']();this['_model']['change'](_0x3d5ba4=>{_0x3d5ba4['updateMarker'](_0x31d650,{'range':_0x1f3fc9});});}['_addThreadToSuggestion'](_0x127f65){const _0x3d69e3=_0x127f65['id'],_0x44e150=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3d69e3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x44e150,'threadId':_0x3d69e3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xae5d5=this['_commentsRepository']['getCommentThread'](_0x3d69e3);_0xae5d5['unbind']('isRemovable'),_0xae5d5['isRemovable']=!0x1,_0x127f65['commentThread']=_0xae5d5;}['_checkSuggestionCorrectness'](_0x11e4e6,_0x596c58,_0x372a42,_0x5c8434){if(_0x11e4e6['type']!=_0x596c58||_0x11e4e6['subType']!=_0x372a42||_0x11e4e6['creator']['id']!=_0x5c8434)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5be2ae('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4508b1,_0x429c17){const _0xa2ca38=_0x4508b1['getFirstRange']();if(_0x429c17['isEqual'](_0xa2ca38))_0x4508b1['removeMarkers']();else{if(_0xa2ca38['containsRange'](_0x429c17)){const _0x4dd9b5=this['_model']['createPositionAt'](_0x429c17['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4508b1,this['_model']['createRange'](_0xa2ca38['start'],_0x4dd9b5));const _0x36772b=_0x2b8ec1(),_0x4a6ff0=_0x4508b1['creator']['id'],_0x1de7ff=_0x4508b1['type']+':'+_0x4508b1['subType'];this['_setSuggestionData']({'id':_0x36772b,'type':_0x1de7ff,'createdAt':new Date(),'authorId':_0x4a6ff0,'data':_0x4508b1['data'],'attributes':_0x4508b1['attributes']});const _0x35847a=this['_model']['createPositionAt'](_0x429c17['end']['parent'],'after'),_0x39fcd4=this['_model']['createRange'](_0x35847a,_0xa2ca38['end']);this['_addSuggestionMarker'](_0x1de7ff,_0x36772b,_0x4a6ff0,_0x39fcd4);}else{if(_0xa2ca38['containsPosition'](_0x429c17['start'])){const _0x41ae1a=this['_model']['createPositionAt'](_0x429c17['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4508b1,this['_model']['createRange'](_0xa2ca38['start'],_0x41ae1a));}else{const _0x608689=this['_model']['createPositionAt'](_0x429c17['end']['parent'],'after');this['_setSuggestionRange'](_0x4508b1,this['_model']['createRange'](_0x608689,_0xa2ca38['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xde13d3){for(const {suggestion:_0x5e499d,meta:_0x283e78}of this['_findSuggestions'](_0xde13d3,'insertion')){if(!_0x283e78['isOwn'])continue;const _0x146873=_0x5e499d['getRanges']();for(const _0x35148e of _0x146873)if(!_0xde13d3['getDifference'](_0x35148e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x36e34f){const _0x48b4cd=this['editor']['plugins']['get']('Users')['getUser'](_0x36e34f);if(!_0x48b4cd)throw new _0x5be2ae('track-changes-user-not-found',this);return _0x48b4cd;}['_getExternalAuthor'](_0x124398){const _0x174a3f=this['editor']['plugins']['get']('Users'),_0x3635ad=_0x557276('external:'+_0x124398),_0x7c039b=_0x174a3f['getUser'](_0x3635ad);return _0x7c039b||_0x174a3f['addUser']({'id':_0x3635ad,'name':_0x124398});}['_createSuggestion'](_0x519298,_0x5c2688,_0x218ce7,_0x175e3c,_0x206d49){const _0x226b5f=this['_getAuthorFromId'](_0x175e3c),_0x53f8c0=this['_suggestionFactory']['buildSuggestion'](_0x519298,_0x5c2688,_0x218ce7,_0x226b5f,_0x206d49,_0x43b1a8=>{this['_updateSuggestionData'](_0x218ce7,{'attributes':_0x43b1a8});const _0x25f55e=this['getSuggestion'](_0x218ce7);this['_joinWithAdjacentSuggestions'](new Set([_0x25f55e])),this['_refreshSuggestionsChain'](new Set([_0x25f55e]));});return this['listenTo'](_0x53f8c0,'accept',()=>{this['_updateSuggestionData'](_0x218ce7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x53f8c0,'discard',()=>{this['_updateSuggestionData'](_0x218ce7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x218ce7,_0x53f8c0),this['_suggestionState']['set'](_0x53f8c0,'notReady'),_0x53f8c0;}['_splitMarkerName'](_0x59e5b4){const _0x1f1372=_0x59e5b4['split'](':');return{'group':_0x1f1372[0x0],'type':_0x1f1372[0x1],'subType':_0x1f1372['length']>=0x5?_0x1f1372[0x2]:null,'id':_0x1f1372['length']<0x5?_0x1f1372[0x2]:_0x1f1372[0x3],'authorId':_0x1f1372['length']<0x5?_0x1f1372[0x3]:_0x1f1372[0x4],'markerCount':0x6==_0x1f1372['length']?_0x1f1372[0x5]:null};}['_breakSuggestionMarker'](_0x548952,_0x2efcf8,_0x10d9e4){const _0x5e217e=_0x548952['getFirstRange'](),_0x396b36=_0x5e217e['start'],_0x1d807c=_0x5e217e['end'];this['_setSuggestionRange'](_0x548952,this['_model']['createRange'](_0x396b36,_0x2efcf8));const _0x2b6ed1=_0x2b8ec1(),_0x2c7696=_0x548952['creator']['id'],_0x4d28d9=_0x548952['type']+(_0x548952['subType']?':'+_0x548952['subType']:'');this['_setSuggestionData']({'id':_0x2b6ed1,'type':_0x4d28d9,'createdAt':new Date(),'authorId':_0x2c7696,'originalSuggestionId':_0x548952['id'],'attributes':_0x548952['attributes'],'data':_0x548952['data']});const _0x24f103=this['_getAttributeKey'](_0x548952);('formatBlock'==_0x548952['type']||_0x24f103&&this['_isBlockAttribute'](_0x24f103))&&(_0x10d9e4=this['_model']['createPositionBefore'](_0x10d9e4['parent'])),this['_addSuggestionMarker'](_0x4d28d9,_0x2b6ed1,_0x2c7696,this['_model']['createRange'](_0x10d9e4,_0x1d807c));}['_findSuggestions'](_0x46f592,_0x45076e=null){const _0x6f3fc3=[],_0x5853a6=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x46f592)||(_0x46f592=[_0x46f592]);for(const _0x637f5 of this['getSuggestions']()){if(!_0x637f5['isInContent'])continue;if(_0x45076e&&_0x637f5['type']!=_0x45076e)continue;let _0x5165c1=!0x1;for(const _0x50970b of _0x637f5['getRanges']()){for(const _0x5b575d of _0x46f592){const _0x438a11=_0x5b575d['start']['isEqual'](_0x50970b['end'])||_0x5b575d['end']['isEqual'](_0x50970b['start']);if(_0x438a11||_0x5b575d['getIntersection'](_0x50970b)){const _0x26b6c5=_0x5b575d['containsRange'](_0x50970b)&&Pt(this['_model']['schema'],_0x50970b['start'],_0x5b575d),_0x508865=_0x50970b['containsRange'](_0x5b575d)&&Pt(this['_model']['schema'],_0x5b575d['start'],_0x50970b);_0x6f3fc3['push']({'suggestion':_0x637f5,'meta':{'isOwn':_0x5853a6==_0x637f5['author'],'isNextTo':_0x438a11,'isInsideObject':_0x26b6c5,'containsRangeInObject':_0x508865}}),_0x5165c1=!0x0;break;}}if(_0x5165c1)break;}}return _0x6f3fc3;}['_addSuggestionMarker'](_0x59745d,_0x3ab7e5,_0x33844d,_0xd489f0,_0xa59642){this['_model']['change'](_0x2ad595=>{let _0x5a5270='suggestion:'+_0x59745d+':'+_0x3ab7e5+':'+_0x33844d;_0xa59642&&(_0x5a5270=_0x5a5270+':'+_0xa59642),_0x2ad595['addMarker'](_0x5a5270,{'range':_0xd489f0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x200dce){const _0x3c6e88=_0x200dce['previous'],_0x1c442e=_0x200dce['next'];_0x200dce['previous']=null,_0x200dce['next']=null,null!=_0x3c6e88&&_0x3c6e88['next']==_0x200dce&&(_0x3c6e88['next']=_0x1c442e),null!=_0x1c442e&&_0x1c442e['previous']==_0x200dce&&(_0x1c442e['previous']=_0x3c6e88),'ready'==this['_suggestionState']['get'](_0x200dce)&&(this['_suggestionState']['set'](_0x200dce,'removed'),this['fire']('suggestionUnloaded',_0x200dce,_0x3c6e88,_0x1c442e));}['_setSuggestionData'](_0x6dd74a){const _0x217f57=_0x6dd74a['id'],_0x2cb8fc=this['addSuggestionData'](_0x6dd74a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4eef2d=this['editor']['plugins']['get']('PendingActions'),_0x173d4c=_0x2cb8fc['hasComments'],_0x1b01a3=_0x2cb8fc['subType']?_0x2cb8fc['type']+':'+_0x2cb8fc['subType']:_0x2cb8fc['type'],_0x47a010=this['editor']['locale'],_0xfcc8d6=_0x4eef2d['add'](o(_0x47a010,'PENDING_ACTION_SUGGESTION')),_0x6644f0={'id':_0x217f57,'type':_0x1b01a3,'hasComments':_0x173d4c,'data':_0x6dd74a['data']||null,'originalSuggestionId':_0x6dd74a['originalSuggestionId']||null,'attributes':_0x2cb8fc['attributes']};this['_adapter']['addSuggestion'](_0x6644f0)['then'](_0x2c22b2=>{_0x2cb8fc['_saved']=!0x0,_0x4eef2d['remove'](_0xfcc8d6),_0x2c22b2&&_0x2c22b2['createdAt']&&(this['_suggestions']['get'](_0x217f57)['createdAt']=_0x2c22b2['createdAt']);})['catch'](_0x479fda=>{throw _0x35c42f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2cb8fc['discard']();}),_0x2cb8fc['stopListening'](),this['_suggestions']['delete'](_0x2cb8fc['id']),this['_suggestionState']['delete'](_0x2cb8fc),_0x479fda;});}return _0x2cb8fc;}['_isBlockAttribute'](_0x4be0b0){return this['_blockAttributeKeys']['has'](_0x4be0b0);}['_updateSuggestionData'](_0x414098,_0x560a88){const _0x3dbca0=this['editor']['plugins']['get']('PendingActions'),_0x34c076=this['getSuggestion'](_0x414098);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x34c076['_saved']){const _0x41b22a=_0x3dbca0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x414098,_0x560a88)['then'](()=>{_0x3dbca0['remove'](_0x41b22a);});}else _0x34c076['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x414098,_0x560a88);});}}['_getSuggestionData'](_0x43c8b3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5be2ae('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x43c8b3);}['_handleNewSuggestionMarker'](_0x435b56){const {id:_0xc269f7,type:_0x40442a,subType:_0x5da72,authorId:_0x5f2db7}=this['_splitMarkerName'](_0x435b56),_0x4f51e5=this['_suggestions']['get'](_0xc269f7)||this['_createSuggestion'](_0x40442a,_0x5da72,_0xc269f7,_0x5f2db7,{});switch(this['_checkSuggestionCorrectness'](_0x4f51e5,_0x40442a,_0x5da72,_0x5f2db7),this['_suggestionState']['get'](_0x4f51e5)){case'notReady':this['_getSuggestionData'](_0xc269f7)['then'](_0x3cfe86=>{let _0x476838=Promise['resolve']();_0x3cfe86['hasComments']&&(_0x476838=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc269f7})),_0x476838['then'](()=>{this['addSuggestionData'](_0x3cfe86)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4f51e5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc269f7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4f51e5,'ready'),this['fire']('suggestionLoaded',_0x4f51e5);break;case'ready':this['fire']('suggestionChanged',_0x4f51e5);}return _0x4f51e5['addMarkerName'](_0x435b56),_0x4f51e5;}['_refreshSuggestionsChain'](_0x5a8f34){const _0x32ffcb=Array['from'](_0x5a8f34),_0x4e67e9=_0x32ffcb['filter'](_0x245482=>'attribute'==_0x245482['type']);this['_refreshAttributeSuggestionsChain'](_0x4e67e9);const _0x3207ee=_0x32ffcb['filter'](_0x2b960a=>!_0x2b960a['isMultiRange']&&'attribute'!=_0x2b960a['type']),_0x415aea=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf095ae=>!_0xf095ae['isMultiRange']&&'attribute'!=_0xf095ae['type']),_0x59c37c=_0x415aea['filter'](_0x300ba3=>!_0x5a8f34['has'](_0x300ba3)),_0x554af1=new Map(_0x415aea['map'](_0x45c18e=>[_0x45c18e,this['_suggestionFactory']['getSuggestionCallback'](_0x45c18e['type'],_0x45c18e['subType'],'chain')])),_0x12860b=new Map(_0x415aea['map'](_0x2406fc=>[_0x2406fc,_0x2406fc['getFirstRange']()])),_0x261c40=new Set(),_0x2cfaca=new Set();for(let _0x537b82=0x0;_0x537b82<_0x3207ee['length'];_0x537b82++)_0x2b72ed(_0x3207ee[_0x537b82],_0x3207ee,_0x537b82+0x1);for(let _0x26730c=0x0;_0x26730c<_0x3207ee['length'];_0x26730c++)_0x2b72ed(_0x3207ee[_0x26730c],_0x59c37c,0x0);const _0x347974=new Set();for(let _0x11b926=0x0;_0x11b926<_0x3207ee['length'];_0x11b926++){const _0x3d6886=_0x3207ee[_0x11b926];!_0x2cfaca['has'](_0x3d6886)&&_0x3d6886['previous']&&(_0x347974['add'](_0x3d6886['previous']),_0x3d6886['previous']['next']===_0x3d6886&&(_0x3d6886['previous']['next']=null),_0x3d6886['previous']=null),!_0x261c40['has'](_0x3d6886)&&_0x3d6886['next']&&(_0x347974['add'](_0x3d6886['next']),_0x3d6886['next']['previous']===_0x3d6886&&(_0x3d6886['next']['previous']=null),_0x3d6886['next']=null);}function _0x2b72ed(_0x491502,_0x1a3657,_0x22bb2a){for(let _0x4d6613=_0x22bb2a;_0x4d6613<_0x1a3657['length'];_0x4d6613++){const _0x2818f8=_0x23749d(_0x491502,_0x1a3657[_0x4d6613]);_0x2818f8&&(_0x2818f8[0x0]['next']=_0x2818f8[0x1],_0x2818f8[0x1]['previous']=_0x2818f8[0x0],_0x261c40['add'](_0x2818f8[0x0]),_0x2cfaca['add'](_0x2818f8[0x1]));}}function _0x23749d(_0x1e6f84,_0x4a798a){if(_0x1e6f84['author']['id']!==_0x4a798a['author']['id'])return null;const _0x247b8a=_0x554af1['get'](_0x1e6f84)(_0x1e6f84,_0x4a798a,_0x12860b['get'](_0x1e6f84),_0x12860b['get'](_0x4a798a));if(!_0x247b8a)return null;return _0x554af1['get'](_0x4a798a)(_0x1e6f84,_0x4a798a,_0x12860b['get'](_0x1e6f84),_0x12860b['get'](_0x4a798a))?_0x247b8a[0x1]['commentThread']&&_0x247b8a[0x1]['commentThread']['length']?null:_0x247b8a:null;}_0x347974['size']&&this['_refreshSuggestionsChain'](_0x347974);}['_refreshAttributeSuggestionsChain'](_0x534647){if(0x0==_0x534647['length'])return;const _0x17f5ae=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4af206=>'attribute'==_0x4af206['type']&&_0x4af206['_isDataLoaded']),_0x5338c1=[],_0x245ffd=new Map();for(const _0x56885e of _0x17f5ae){const _0x2e821c=_0x557276(_0x56885e['attributes']);_0x245ffd['has'](_0x2e821c)||(_0x245ffd['set'](_0x2e821c,_0x5338c1['length']),_0x5338c1['push']([]));const _0x2497d1=_0x245ffd['get'](_0x2e821c);_0x5338c1[_0x2497d1]['push'](_0x56885e);}!(function(){_0x5338c1['sort']((_0x5a1e66,_0x20eefd)=>{const _0x1737d1=_0x5a1e66[0x0]['createdAt'],_0x58c6a0=_0x20eefd[0x0]['createdAt'];return _0x1737d1==_0x58c6a0?_0x5a1e66[0x0]['attributes']['groupId']<_0x20eefd[0x0]['attributes']['groupId']?-0x1:0x1:_0x1737d1<_0x58c6a0?-0x1:0x1;});for(const _0x3d6933 of _0x5338c1)_0x3d6933['sort']((_0x50593f,_0x2be2ec)=>_0x50593f['id']<_0x2be2ec['id']?-0x1:0x1);}());for(let _0x5e7e1e=0x0;_0x5e7e1e<_0x5338c1['length'];_0x5e7e1e++){if(0x0==_0x5338c1[_0x5e7e1e]['length'])continue;const _0x4705d9=[];for(let _0x4d04cc=_0x5e7e1e+0x1;_0x4d04cc<_0x5338c1['length'];_0x4d04cc++)0x0!=_0x5338c1[_0x4d04cc]['length']&&_0x50e893(_0x5338c1[_0x5e7e1e],_0x5338c1[_0x4d04cc])&&_0x4705d9['push'](_0x4d04cc);for(const _0x5462e6 of _0x4705d9)_0x5338c1[_0x5e7e1e]=_0x5338c1[_0x5e7e1e]['concat'](_0x5338c1[_0x5462e6]),_0x5338c1[_0x5462e6]=[];}for(const _0x35dcac of _0x5338c1)for(let _0x56ec03=0x0;_0x56ec03<_0x35dcac['length'];_0x56ec03++){const _0x951629=_0x35dcac[_0x56ec03+0x1]||null;_0x35dcac[_0x56ec03]['next']!==_0x951629&&(_0x35dcac[_0x56ec03]['next']=_0x951629);}for(const _0x18c27a of _0x5338c1)for(let _0x1f13ff=0x0;_0x1f13ff<_0x18c27a['length'];_0x1f13ff++){const _0x5727a4=_0x18c27a[_0x1f13ff-0x1]||null;_0x18c27a[_0x1f13ff]['previous']!==_0x5727a4&&(_0x18c27a[_0x1f13ff]['previous']=_0x5727a4);}function _0x50e893(_0x2ee634,_0x4d51ce){if(_0x2ee634[0x0]['attributes']['groupId']!==_0x4d51ce[0x0]['attributes']['groupId']&&_0x2ee634[0x0]['author']!==_0x4d51ce[0x0]['author'])return!0x1;if(!function(_0x3a1215,_0x26ab14){if(!_0x3a1215['hasComments']&&!_0x26ab14['hasComments'])return!0x0;if(_0x3a1215['hasComments']&&_0x26ab14['hasComments'])return!0x1;if(_0x3a1215['hasComments']&&_0x26ab14['createdAt']<_0x3a1215['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x26ab14['hasComments']&&_0x3a1215['createdAt']<_0x26ab14['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2ee634[0x0],_0x4d51ce[0x0]))return!0x1;const _0x28772b=Ut(_0x2ee634[0x0]['attributes'],'groupId'),_0x94f8e3=Ut(_0x4d51ce[0x0]['attributes'],'groupId');if(!_0x24363f(_0x28772b,_0x94f8e3))return!0x1;return!!_0x2ee634['every'](_0x3ec5fe=>_0x4d51ce['some'](_0x25c5e8=>_0x3ec5fe['getFirstRange']()['isEqual'](_0x25c5e8['getFirstRange']())))&&_0x4d51ce['every'](_0x1b5f78=>_0x2ee634['some'](_0x39a5a2=>_0x1b5f78['getFirstRange']()['isEqual'](_0x39a5a2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1bdc51){const _0x29c122=Array['from'](_0x1bdc51),_0x2628e6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x9e575c=_0x2628e6['filter'](_0x35e3c4=>!_0x1bdc51['has'](_0x35e3c4)),_0x595d97=new Map(_0x29c122['map'](_0x143dcb=>[_0x143dcb,this['_suggestionFactory']['getSuggestionCallback'](_0x143dcb['type'],_0x143dcb['subType'],'join')])),_0x4e39c1=new Map(_0x2628e6['map'](_0x575852=>[_0x575852,_0x575852['getRanges']()]));for(let _0x38b912=0x0;_0x38b912<_0x29c122['length'];_0x38b912++){if(_0x4ac661(this,_0x29c122[_0x38b912],_0x29c122,_0x38b912+0x1))return!0x0;}for(let _0x6e03bf=0x0;_0x6e03bf<_0x29c122['length'];_0x6e03bf++){if(_0x4ac661(this,_0x29c122[_0x6e03bf],_0x9e575c,0x0))return!0x0;}return!0x1;function _0x4ac661(_0xe668f7,_0x3b1bb3,_0x18524d,_0x4235e9){for(let _0x10b86b=_0x4235e9;_0x10b86b<_0x18524d['length'];_0x10b86b++){const _0xebb00b=_0x18524d[_0x10b86b];if(_0xebb00b['type']!==_0x3b1bb3['type']||_0xebb00b['author']['id']!==_0x3b1bb3['author']['id']||_0xebb00b['subType']!==_0x3b1bb3['subType'])continue;if(!Kt(_0x3b1bb3,_0xebb00b))continue;if('attribute'==_0x3b1bb3['type']&&_0x3b1bb3['data']['oldValue']!=_0xebb00b['data']['oldValue'])continue;if('attribute'==_0x3b1bb3['type']&&_0xe668f7['_isBlockAttribute'](_0x3b1bb3['data']['key']))continue;if('formatBlock'==_0x3b1bb3['type']){const _0xaec01=_0xe668f7['editor']['model'],_0x5ade75=_0x3b1bb3['getContainedElement']();if(_0x5ade75&&(_0xaec01['schema']['isObject'](_0x5ade75)||_0xaec01['schema']['isLimit'](_0x5ade75)))continue;}const _0x7cb6f5=_0x595d97['get'](_0x3b1bb3),_0x3d1212=_0x4e39c1['get'](_0x3b1bb3),_0x1832df=_0x4e39c1['get'](_0xebb00b),_0x1ce45c=_0x3b1bb3['commentThread']&&_0x3b1bb3['commentThread']['length'],_0xdc70db=_0xebb00b['commentThread']&&_0xebb00b['commentThread']['length'];if(!_0x1ce45c&&_0x7cb6f5(_0x1832df,_0x3d1212))return _0xe668f7['_joinSuggestions'](_0xebb00b,_0x3b1bb3),_0x4e39c1['delete'](_0x3b1bb3),!0x0;if(!_0xdc70db&&_0x7cb6f5(_0x3d1212,_0x1832df))return _0xe668f7['_joinSuggestions'](_0x3b1bb3,_0xebb00b),_0x4e39c1['delete'](_0xebb00b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f5312,_0x1250df){if(_0x5f5312['isMultiRange']){for(const _0x3b078f of _0x1250df['getRanges']())_0x5f5312['addRange'](_0x3b078f);}else{const _0x33234c=_0x1250df['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f5312,this['_model']['createRange'](_0x5f5312['getFirstRange']()['start'],_0x33234c));}_0x1250df['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2830e9,_0xa7e879,_0x929ed2){const _0x3bf6e9=_0x2830e9['startsWith']('format')||_0x2830e9['startsWith']('attribute')?'FORMATTING':_0x2830e9['toUpperCase']();return o(this['editor']['locale'],_0xa7e879+'_'+_0x3bf6e9+'_SUGGESTION_ANNOUNCEMENT',_0x929ed2);}['_initAriaMarkerChangeAnnouncements'](){const _0x2f2e4b=this['editor'];if(!_0x2f2e4b['ui'])return;const {ariaLiveAnnouncer:_0x75c449}=_0x2f2e4b['ui'];_0x208b1d(this['_model'],({left:_0x1cd738,entered:_0x17fb53})=>{for(const _0x4089bf of _0x1cd738){const {group:_0xddbd82,type:_0x34afc5}=this['_splitMarkerName'](_0x4089bf['name']);if('suggestion'===_0xddbd82){_0x75c449['announce'](this['_getMarkerAnnouncementText'](_0x34afc5,'LEAVE'));break;}}for(const _0x374bde of _0x17fb53){const {group:_0x393375,type:_0x291e3f}=this['_splitMarkerName'](_0x374bde['name']);if('suggestion'===_0x393375){_0x75c449['announce'](this['_getMarkerAnnouncementText'](_0x291e3f,'ENTER',_0x5ef03d(_0x57c466)));break;}}});}['_processAttributeChanges'](_0x29f202){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4c9e32=this['editor'],_0x27aee2=_0x4c9e32['model']['document']['differ']['getChanges']();if(0x0==_0x27aee2['length'])return!0x1;const _0x3005e0=[],_0x41cc65=_0x27aee2['filter'](_0xd91ca0=>'attribute'==_0xd91ca0['type']),_0x46b545=_0x27aee2['filter'](_0x186471=>'insert'==_0x186471['type']&&'$text'!=_0x186471['name']),_0x4e7e49=_0x27aee2['filter'](_0x1a450e=>'remove'==_0x1a450e['type']&&'$text'!=_0x1a450e['name']);for(const _0x558a5d of _0x41cc65)_0x3005e0['push']({'key':_0x558a5d['attributeKey'],'newValue':_0x558a5d['attributeNewValue'],'oldValue':_0x558a5d['attributeOldValue'],'range':Ht(_0x558a5d['range'],_0x4c9e32['model'])});for(const _0x4a6877 of _0x46b545){const _0x10a0fc=_0x4e7e49['find'](_0x4168a6=>_0x4168a6['position']['isEqual'](_0x4a6877['position']));_0x10a0fc&&_0x3005e0['push']({'key':m,'newValue':_0x4a6877['name'],'oldValue':_0x10a0fc['name'],'range':_0x4c9e32['model']['createRangeOn'](_0x4a6877['position']['nodeAfter'])});}return 0x0!=_0x3005e0['length']&&this['_reduceExistingSuggestions'](_0x29f202,_0x3005e0);}['_processAttributeSuggestions'](_0x3dbb14){let _0x1b1d53=!0x1;const _0x231b18=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e31fc=>_0x1e31fc['data']['newRange']&&_0x1e31fc['name']['startsWith']('suggestion:attribute:'));for(const _0x31983f of _0x231b18){const {subType:_0x2c99e1,id:_0x3ab922}=this['_splitMarkerName'](_0x31983f['name']),_0x34c6e0=_0x2c99e1['split']('|')[0x0];for(const _0x19e267 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x19e267['id']!=_0x3ab922&&'attribute'==_0x19e267['type']&&_0x19e267['data']&&_0x19e267['data']['key']==_0x34c6e0&&_0x19e267['getFirstRange']()['isIntersecting'](_0x31983f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x19e267,_0x31983f['data']['newRange'],_0x3dbb14),_0x1b1d53=!0x0);}return _0x1b1d53;}['_recordAttributeChanges'](_0x227928){this['_recordAttributeSuggestions']=!0x0,_0x227928();}['_isRegisteredAttribute'](_0x177a26){const _0x4aff63=this['_isBlockAttribute'](_0x177a26),_0x336017=this['_inlineAttributeKeys']['has'](_0x177a26);return _0x4aff63||_0x336017;}['_reduceExistingSuggestions'](_0x264c54,_0x4459de){if(0x0==_0x4459de['length'])return!0x1;let _0x42da2f=!0x1;for(const _0x2c0434 of _0x4459de){const _0x400d9f=this['_findSuggestions'](_0x2c0434['range'],'attribute')['filter'](_0x49e743=>!_0x49e743['meta']['isNextTo'])['map'](_0x3e67a0=>_0x3e67a0['suggestion']),_0x285943=_0x557276({'newValue':_0x2c0434['newValue']});_0x400d9f['filter'](_0x254fdc=>{const [_0x3bef6e,_0x274d01]=_0x254fdc['subType']['split']('|');return _0x3bef6e==_0x2c0434['key']&&_0x274d01!=_0x285943;})['forEach'](_0x4d1aaa=>{this['_reduceSuggestionAttributeRange'](_0x4d1aaa,_0x2c0434['range'],_0x264c54),_0x42da2f=!0x0;});}return _0x42da2f;}['_reduceSuggestionAttributeRange'](_0x5293f0,_0x3a7e9a,_0x27933f){const _0x3283bb=_0x5293f0['getFirstRange']()['getDifference'](_0x3a7e9a);0x0!==_0x3283bb['length']?0x1!==_0x3283bb['length']?this['_breakSuggestionMarker'](_0x5293f0,_0x3a7e9a['start'],_0x3a7e9a['end']):this['_setSuggestionRange'](_0x5293f0,_0x3283bb[0x0]):_0x27933f['removeMarker'](_0x5293f0['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4e817a){this['_editor']=_0x4e817a,this['_model']=_0x4e817a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x308b44,_0x30272b,_0xe5fc1d,_0x17389d,_0x7ef73c,_0x58a462){return new u(this['_model'],{'type':_0x308b44,'subType':_0x30272b,'id':_0xe5fc1d,'author':_0x17389d,'creator':_0x17389d,'attributes':_0x7ef73c,'onAttributesChange':_0x58a462,'onAccept':(..._0x4b4beb)=>this['getSuggestionCallback'](_0x308b44,_0x30272b,'accept')(..._0x4b4beb),'onDiscard':(..._0x1b8248)=>this['getSuggestionCallback'](_0x308b44,_0x30272b,'discard')(..._0x1b8248)});}['registerCustomCallback'](_0x4cd973,_0x55d0a6,_0x192834,_0x55b77e){const _0x1c4e29=_0x4cd973+':'+_0x55d0a6+':'+_0x192834;this['_customCallbacks']['set'](_0x1c4e29,_0x55b77e);}['getSuggestionCallback'](_0x3712a6,_0x22cb96,_0x1f17a2){const _0x566d4f=_0x3712a6+':'+_0x22cb96+':'+_0x1f17a2;return this['_customCallbacks']['get'](_0x566d4f)||this['_defaultCallbacks']['get'](_0x3712a6+':'+_0x1f17a2);}['_registerDefaultCallbacks'](){const _0x1d67ea=()=>!0x1,_0x4efabd=_0x4c6e1f=>{_0x4c6e1f['sort']((_0x3d6ca0,_0x2a6c73)=>_0x3d6ca0['start']['isBefore'](_0x2a6c73['start'])?0x1:-0x1),this['_model']['change'](_0x5d7c46=>{for(const _0x1da108 of _0x4c6e1f){let _0x27baac;_0x27baac=_0x1da108['end']['isAtEnd']&&_0x1da108['end']['parent']==_0x1da108['start']['nodeAfter']?_0x5d7c46['createSelection'](_0x1da108['start']['nodeAfter'],'on'):_0x5d7c46['createSelection'](_0x1da108),this['_model']['deleteContent'](_0x27baac,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x30bdf1=(_0x264550,_0x49bb93)=>{_0x49bb93&&this['_model']['change'](_0x46d55e=>{const {commandName:_0x212714,commandParams:_0x203cd1=[]}=_0x49bb93,_0x3218a0=_0x264550['map'](_0x4b4ccf=>(Gt(_0x4b4ccf)&&(_0x4b4ccf=this['_model']['createRange'](_0x4b4ccf['end'])),_0x4b4ccf))['filter'](_0x2ca57a=>'$graveyard'!==_0x2ca57a['root']['rootName']);if(_0x3218a0['length']<0x1)return;const _0x33c605=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4d520a=>_0x41d70f['fromRange'](_0x4d520a));_0x46d55e['setSelection'](_0x3218a0);for(const _0x186f94 of this['_editor']['commands']['commands']())_0x186f94['refresh']();_0x203cd1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x212714,..._0x203cd1);const _0x1cd356=_0x33c605['filter'](_0x47a605=>'$graveyard'!=_0x47a605['root']['rootName']);_0x1cd356['length']>0x0&&_0x46d55e['setSelection'](_0x1cd356);for(const _0x47bd11 of _0x33c605)_0x47bd11['detach']();});},_0x213eed=(_0x542a8d,_0x4cb760)=>0x1==_0x542a8d['length']&&0x1==_0x4cb760['length']&&_0x542a8d[0x0]['end']['isEqual'](_0x4cb760[0x0]['start']),_0x1d98bb=(_0x242a97,_0x89e767,_0x364fd8,_0x2b82c2)=>zt(_0x242a97,_0x89e767,_0x364fd8,_0x2b82c2)?[_0x242a97,_0x89e767]:zt(_0x89e767,_0x242a97,_0x2b82c2,_0x364fd8)?[_0x89e767,_0x242a97]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1d67ea),this['_defaultCallbacks']['set']('insertion:discard',_0x4efabd),this['_defaultCallbacks']['set']('insertion:join',_0x213eed),this['_defaultCallbacks']['set']('insertion:chain',_0x1d98bb),this['_defaultCallbacks']['set']('deletion:accept',_0x4efabd),this['_defaultCallbacks']['set']('deletion:discard',_0x1d67ea),this['_defaultCallbacks']['set']('deletion:join',_0x213eed),this['_defaultCallbacks']['set']('deletion:chain',_0x1d98bb),this['_defaultCallbacks']['set']('formatInline:accept',_0x30bdf1),this['_defaultCallbacks']['set']('formatInline:discard',_0x1d67ea),this['_defaultCallbacks']['set']('formatInline:join',_0x213eed),this['_defaultCallbacks']['set']('formatInline:chain',_0x1d67ea),this['_defaultCallbacks']['set']('formatBlock:accept',_0x30bdf1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1d67ea),this['_defaultCallbacks']['set']('formatBlock:join',_0x213eed),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1d67ea),this['_defaultCallbacks']['set']('attribute:accept',_0x1d67ea),this['_defaultCallbacks']['set']('attribute:discard',(_0x32a77a,_0x385326)=>{if(!_0x385326)return;const _0x35d9c8=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x324965=>{if(_0x385326['key']==m)for(const _0x525efe of _0x32a77a){const _0x5dcd3e=_0x525efe['start']['nodeAfter'],_0x311b56=_0x385326['oldValue'];_0x324965['rename'](_0x5dcd3e,_0x311b56);}else{if(_0x35d9c8['_isBlockAttribute'](_0x385326['key'])){for(const _0x3918c9 of _0x32a77a)void 0x0!==_0x385326['oldValue']?_0x324965['setAttribute'](_0x385326['key'],_0x385326['oldValue'],_0x3918c9['start']['nodeAfter']):_0x324965['removeAttribute'](_0x385326['key'],_0x3918c9['start']['nodeAfter']);}else{for(const _0x508d6b of _0x32a77a)_0x385326['oldValue']?_0x324965['setAttribute'](_0x385326['key'],_0x385326['oldValue'],_0x508d6b):_0x324965['removeAttribute'](_0x385326['key'],_0x508d6b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x213eed);}}function Pt(_0x1653e5,_0x5812bd,_0x588767){for(const _0x481a33 of _0x5812bd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x481a33['root']==_0x481a33)return!0x1;if(!_0x588767['containsItem'](_0x481a33))return!0x1;if(_0x1653e5['isObject'](_0x481a33)||_0x1653e5['isLimit'](_0x481a33))return!0x0;}return!0x1;}function Gt(_0xc29e2b){return _0xc29e2b['end']['parent']==_0xc29e2b['start']['nodeAfter']&&_0xc29e2b['end']['isAtStart'];}function Ft(_0x5bf979,_0x4a107f,_0x1e1426,_0x147906){const _0x7afb4=_0x4bcdc1=>!_0x4bcdc1['item']['is']('$textProxy')&&!_0x147906['isObject'](_0x4bcdc1['item']),_0x3f89d4=_0x5bf979['start']['getLastMatchingPosition'](_0x7afb4),_0x2c9fba=_0x5bf979['end']['getLastMatchingPosition'](_0x7afb4,{'direction':'backward'});return(!_0x5bf979['start']['isEqual'](_0x3f89d4)||!_0x5bf979['end']['isEqual'](_0x2c9fba))&&(_0x3f89d4['isBefore'](_0x2c9fba)?_0x1e1426['updateMarker'](_0x4a107f,{'range':_0x1e1426['createRange'](_0x3f89d4,_0x2c9fba)}):_0x1e1426['removeMarker'](_0x4a107f),!0x0);}function Lt(_0x111a1e){return _0x557276(_0x111a1e);}function Jt(_0x3fb628){const _0x2e5d92=_0x3fb628['start']['nodeAfter'];return _0x2e5d92&&_0x2e5d92['is']('element');}function Ht(_0x28166f,_0x569158){return null==_0x28166f['end']['nodeBefore']&&_0x28166f['end']['parent']==_0x28166f['start']['nodeAfter']?qt(_0x28166f['start']['nodeAfter'],_0x569158):_0x28166f;}function qt(_0x3a2997,_0x3a40d5){const _0x4821d0=_0x3a40d5['schema']['isObject'](_0x3a2997)||_0x3a40d5['schema']['isSelectable'](_0x3a2997);return _0x3a40d5['createRange'](_0x3a40d5['createPositionAt'](_0x3a2997,'before'),_0x4821d0?_0x3a40d5['createPositionAfter'](_0x3a2997):_0x3a40d5['createPositionAt'](_0x3a2997,'end'));}function zt(_0x3a7055,_0x41648c,_0x7ca137,_0x317028){return!!Kt(_0x3a7055,_0x41648c)&&_0x7ca137['end']['isEqual'](_0x317028['start']);}function Kt(_0x25d623,_0xbe2974){if(!_0x25d623['_isDataLoaded']||!_0xbe2974['_isDataLoaded'])return!0x1;const _0x30e2fe=new Set(Object['keys'](_0x25d623['attributes'])),_0x5d3fe6=new Set(Object['keys'](_0xbe2974['attributes']));if(_0x30e2fe['delete']('groupId'),_0x5d3fe6['delete']('groupId'),0x0==_0x30e2fe['size']&&0x0==_0x5d3fe6['size'])return!0x0;if(_0x30e2fe['size']!=_0x5d3fe6['size'])return!0x1;const _0x2ddfa6={..._0x25d623['attributes']},_0x59b461={..._0xbe2974['attributes']};return delete _0x2ddfa6['groupId'],delete _0x59b461['groupId'],JSON['stringify'](_0x2ddfa6)==JSON['stringify'](_0x59b461);}function Wt(_0x4eb55c,_0x1c52a5){const _0x9e366d=Qt(_0x4eb55c['attributes']),_0x395e60=Qt(_0x1c52a5);if(!_0x4eb55c['_isDataLoaded'])return!0x1;for(const _0x3698f0 of Object['keys'](_0x395e60))if(!_0x24363f(_0x9e366d[_0x3698f0],_0x395e60[_0x3698f0]))return!0x1;return!0x0;}function Qt(_0x115f10){const _0x257c51=Object['assign']({},_0x115f10);return delete _0x257c51['skipNestingCheck'],delete _0x257c51['tablePasteChainId'],_0x257c51;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f6170(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x443a2c,_0xdd0323,_0x154c20,_0x37861b){super(),this['model']=_0xdd0323,this['view']=_0x154c20,this['commentThreadController']=_0x37861b,this['_editor']=_0x443a2c,this['_acceptCommand']=_0x443a2c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x443a2c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5ec74e,_0x5602d3)=>_0x5ec74e||_0x5602d3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x8c852c=>_0x8c852c&&this['_editor']['model']['canEditAt'](_0xdd0323['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x456e48=>_0x456e48&&this['_editor']['model']['canEditAt'](_0xdd0323['getRanges']())),this['_pendingAction']=null,_0x154c20['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x154c20,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x154c20,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x154c20,'change:isDirty',()=>{_0x154c20['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 _0x1b9e45=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1b9e45);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class cs extends _0x21e7be{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x448b9c,_0x9367b1,_0x29b530,_0x55cd69){super(_0x448b9c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x50dc3b(_0x448b9c,o(_0x448b9c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x9367b1['authoredAt']),this['bind']('authoredAt')['to'](_0x9367b1),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',_0x9367b1,'authoredAt',this,'descriptionParts',(_0x31062a,_0x534b3e,_0x3e5656)=>{const _0x394fb1=_0x3e5656['map'](_0x1fc3b3=>as(_0x1fc3b3['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x31062a-0x1,_0x9367b1['author']['name'],_0x534b3e?_0x55cd69['formatDateTime'](_0x534b3e):'',new DOMParser()['parseFromString'](_0x394fb1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5161fa(),this['focusTracker']=new _0x51637b(),this['keystrokes']=new _0x1ea7c8(),this['focusCycler']=new _0x1bb171({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x582396=>_0x582396['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x9367b1,this['_localUser']=_0x29b530,this['_config']=_0x55cd69,_0x55cd69['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x59d6f3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd9285e}=this['_config'];this['commentsListView']=new _0xd9285e(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',_0xc0670b=>_0xc0670b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x231e53,_0xec2c08)=>_0x231e53||!!_0xec2c08);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5b7c1a}=this['_config'],_0x4daada=new _0x5b7c1a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x23e999=_0x4daada['commentInputView'];return _0x4daada['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x23e999,'value',(_0x12f4f1,_0x4a2864,_0x508b6e)=>!!_0x508b6e||_0x12f4f1&&!_0x4a2864),_0x23e999['on']('submit',(_0x4dce8c,_0xcd9f15)=>{this['fire']('addComment',_0xcd9f15),_0x23e999['editor']['setData']('');}),_0x23e999['on']('cancel',()=>this['focus']()),_0x23e999['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4daada;}}class pe extends cs{['suggestionView'];['_descriptionElement'];constructor(_0x2790a2,_0x18ac91,_0x253853,_0x2bf4a4){super(_0x2790a2,_0x18ac91,_0x253853,_0x2bf4a4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x45e972=>_0x45e972&&_0x45e972[0x0]?_0x45e972[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2dcbea,_0x4e4130)=>{let _0x134259='';for(const _0x4ef97d of _0x2dcbea)_0x134259+='<p>'+as(_0x4ef97d['content'],_0x4ef97d['color'])+'</p>';return _0x4e4130?_0x134259:_0x2b25a8(_0x134259,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2bf4a4['SuggestionView'](_0x2790a2,_0x18ac91,{'formatDateTime':_0x2bf4a4['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 _0x4b80c4=this['bindTemplate'],_0x582e40=[this['suggestionView']];return this['commentsListView']&&_0x582e40['push'](this['commentsListView']),this['commentThreadInputView']&&_0x582e40['push'](this['commentThreadInputView']),_0x582e40['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4b80c4['if']('isActive','ck-suggestion-wrapper--active'),_0x4b80c4['to']('type',_0xf14e7c=>'ck-suggestion-'+_0xf14e7c),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':_0x4b80c4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x582e40};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x21e7be{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x759efe,_0x337fb1,_0x70fcfc){super(_0x759efe),this['_model']=_0x337fb1,this['_config']=_0x70fcfc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x337fb1),this['acceptButton']=this['_createButton'](o(_0x759efe,'Accept\x20suggestion'),_0x1d2de2['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x759efe,'Discard\x20suggestion'),_0x1d2de2['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x124655(_0x759efe,_0x337fb1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5161fa([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x51637b(),this['keystrokes']=new _0x1ea7c8(),this['focusCycler']=new _0x1bb171({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3ba4ba=>_0x3ba4ba['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3979e5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3979e5['innerHTML']=this['description'],this['on']('change:description',(_0x245e43,_0x408c66,_0x38bc3e)=>{_0x3979e5['innerHTML']=_0x38bc3e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x373caa=this['bindTemplate'],_0xfcbbbd=[{'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':_0x373caa['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x373caa['to']('authoredAt',_0x37bea9=>this['_config']['formatDateTime'](_0x37bea9))}]}]},{'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']&&_0xfcbbbd['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':_0xfcbbbd}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x30bc3b,_0x230ca9,_0x17c571,_0x17dc15,_0x2853ca){const _0x30422a=new _0x5ac1be(this['locale']);return _0x30422a['set']({'label':_0x30bc3b,'icon':_0x230ca9,'tooltip':!0x0,'tooltipPosition':_0x2853ca}),_0x30422a['extendTemplate']({'attributes':{'class':_0x17c571}}),_0x30422a['on']('execute',()=>{this['fire'](_0x17dc15,this['_model']['id']);}),_0x30422a;}['_setupKeyboardNavigation'](){const _0x2526d4=this['element'];this['keystrokes']['listenTo'](_0x2526d4);for(const _0x2530f2 of this['focusables'])this['focusTracker']['add'](_0x2530f2['element']),this['keystrokes']['listenTo'](_0x2530f2['element']);this['keystrokes']['set']('enter',(_0x361081,_0xe05a5d)=>{_0x2526d4===_0x361081['target']&&(this['focusCycler']['focusFirst'](),_0xe05a5d());}),this['keystrokes']['set']('esc',(_0x2f44c2,_0x4083b8)=>{_0x2526d4!==_0x2f44c2['target']&&(this['focus'](),_0x4083b8());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x330415{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3cbfc7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40f8c6){super(_0x40f8c6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x172d0a=this['editor']['config'];_0x172d0a['define']('trackChanges.SuggestionThreadView',pe),_0x172d0a['define']('trackChanges.SuggestionView',fe),_0x172d0a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x172d0a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x543a8a,_0x5ad631){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5afabc,_0x2e1082]of this['_handleControllerBuffer']){const _0xfdf9ad=this['_suggestionToController']['has'](_0x5afabc);_0xfdf9ad||_0x2e1082?_0xfdf9ad&&_0x2e1082&&this['_destroyController'](_0x5afabc):this['_initializeController'](_0x5afabc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x543a8a,_0x5ad631);}['init'](){const _0x11a18e=this['editor'],_0xa4005e=_0x11a18e['plugins']['get']('TrackChangesEditing'),_0x55ba27=_0x11a18e['plugins']['get']('Annotations'),_0x5d294b=_0x11a18e['plugins']['get']('EditorAnnotations'),_0x33cd9d=_0x11a18e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5d294b['addSourceCollector'](()=>{const _0xd42fec=[];for(const [_0x4c0a8f,_0x1f8d14]of Array['from'](this['_suggestionToController'])){const _0x43458f=_0x4c0a8f['getAllAdjacentSuggestions'](),_0x3be219=[];for(const _0xfdf784 of _0x43458f){if(!_0xfdf784['isInContent'])continue;if(_0xfdf784['isMultiRange']){_0x3be219['push'](..._0xfdf784['getRanges']());continue;}const _0x2a598f=_0xfdf784['getFirstRange']();if(_0x3be219['length']>0x0){const _0x3d3c8c=_0x3be219[0x0]['getJoined'](_0x2a598f);if(_0x3d3c8c){_0x3be219[0x0]=_0x3d3c8c;continue;}}_0x3be219['push'](_0x2a598f);}_0xd42fec['push']([_0x1f8d14['view'],_0x3be219]);}return _0xd42fec;}),this['listenTo'](_0xa4005e,'suggestionLoaded',(_0x3681e5,_0x5529ed)=>{this['listenTo'](_0x5529ed,'change:previous',(_0xf92278,_0x16bc02,_0x5ae05a,_0x454a94)=>{_0x5529ed['isInContent']&&(null==_0x5ae05a?(this['_updateController'](_0x454a94['head']),this['_handleSuggestionControllerDelayed'](_0x5529ed,!0x1)):(this['_updateController'](_0x5ae05a['head']),null==_0x454a94&&this['_handleSuggestionControllerDelayed'](_0x5529ed,!0x0)));}),null!==_0x5529ed['previous']?this['_updateController'](_0x5529ed['head']):this['_handleSuggestionControllerDelayed'](_0x5529ed,!0x1);}),this['listenTo'](_0xa4005e,'suggestionUnloaded',(_0xc59796,_0x55e040,_0x56966f)=>{this['stopListening'](_0x55e040,'change:previous'),this['_handleControllerBuffer']['delete'](_0x55e040),this['_suggestionToController']['has'](_0x55e040)&&this['_destroyController'](_0x55e040),_0x56966f&&this['_updateController'](_0x56966f['head']);}),this['listenTo'](_0xa4005e,'suggestionChanged',(_0x3cfd92,_0x5da55b)=>{this['_updateController'](_0x5da55b);}),this['listenTo'](_0x55ba27,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x33cd9d,'addComment',(_0x53ce1e,{threadId:_0x2eb0d3,isFromAdapter:_0x47eba1})=>{if(_0x47eba1||!_0xa4005e['hasSuggestion'](_0x2eb0d3))return;const _0x493b91=_0xa4005e['getSuggestion'](_0x2eb0d3);this['_suggestionToController']['get'](_0x493b91)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4434e6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3957a8;for(const _0x2e47ff in _0x4434e6){const _0x5ef188=_0x2e47ff,_0x4bb40c=_0x4434e6[_0x5ef188];if('trackChangesLicenseKeyValid'==_0x4bb40c||'trackChangesLicenseKeyInvalid'==_0x4bb40c||'trackChangesLicenseKeyExpired'==_0x4bb40c||'trackChangesLicenseKeyDomainLimit'==_0x4bb40c||'trackChangesLicenseKeyNotAllowed'==_0x4bb40c||'trackChangesLicenseKeyEvaluationLimit'==_0x4bb40c||'trackChangesLicenseKeyTrialLimit'==_0x4bb40c||'trackChangesLicenseKeyUsageLimit'==_0x4bb40c){delete _0x4434e6[_0x5ef188],_0x3957a8=_0x4bb40c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3957a8&&_0x4434e6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3957a8&&_0x4434e6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3957a8&&_0x4434e6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3957a8&&_0x4434e6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3957a8&&_0x4434e6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3957a8&&_0x4434e6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3957a8&&_0x4434e6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2e2007=this['editor']['plugins']['get']('Annotations'),_0x4ce98d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x396ce8=Array['from'](_0x2e2007['activeAnnotations'],_0xfee735=>_0xfee735['innerView'])['filter'](_0x4a75e8=>this['_viewToController']['has'](_0x4a75e8)),_0x4c28a7=[];for(const _0x221c61 of _0x396ce8){const _0x20b7e1=this['_viewToController']['get'](_0x221c61)['model']['getAllAdjacentSuggestions']();_0x4c28a7['push'](..._0x20b7e1['reduce']((_0x333708,_0x4a7277)=>[..._0x333708,..._0x4a7277['getMarkerNames']()],[]));}_0x4ce98d['activeMarkers']=_0x4c28a7;}['_addUIComponentsToFactory'](){const _0x35812d=this['editor'],_0x3a3439=_0x35812d['locale'],_0x2ef1fc=o(_0x3a3439,'Track\x20changes'),_0x360157=new _0x5e0d05([{'type':'switchbutton','model':new _0xf17cec({'withText':!0x0,'isToggleable':!0x0,'label':_0x2ef1fc,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xf17cec({'withText':!0x0,'label':o(_0x3a3439,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf17cec({'withText':!0x0,'label':o(_0x3a3439,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf17cec({'withText':!0x0,'label':o(_0x3a3439,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf17cec({'withText':!0x0,'label':o(_0x3a3439,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35812d['plugins']['has']('TrackChangesPreview')&&_0x360157['addMany']([{'type':'separator'},{'type':'button','model':new _0xf17cec({'withText':!0x0,'label':o(_0x3a3439,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x58709d of _0x360157)if(ke(_0x58709d)){const _0x2f179f=_0x35812d['commands']['get'](_0x58709d['model']['commandName']);_0x58709d['model']['bind']('isOn','isEnabled')['to'](_0x2f179f,'value','isEnabled');}_0x35812d['ui']['componentFactory']['add']('trackChanges',_0x5065da=>this['_createToolbarButton'](_0x5065da,_0x360157,_0x2ef1fc)),_0x35812d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x523a13=>this['_createMenuBarMenu'](_0x523a13,_0x360157,_0x2ef1fc));}['_createToolbarButton'](_0x3e7646,_0x4533ab,_0x49a3ea){const _0x2f753e=_0x11c244(_0x3e7646,_0x5955c6),_0x1acc40=this['editor']['commands']['get']('trackChanges');_0x2f753e['buttonView']['set']({'tooltip':_0x49a3ea,'label':_0x49a3ea,'icon':we}),_0x2f753e['buttonView']['bind']('isOn')['to'](_0x1acc40,'value'),_0x2f753e['buttonView']['on']('execute',()=>{_0x1acc40['execute'](),this['editor']['editing']['view']['focus']();}),_0x19c284(_0x2f753e,_0x4533ab,{'role':'menu'});const _0x1b354d=[];for(const _0x1518d2 of _0x4533ab)ke(_0x1518d2)&&_0x1b354d['push'](this['editor']['commands']['get'](_0x1518d2['model']['commandName']));const _0x4d493b=_0x2f753e['buttonView'];return _0x4d493b['actionView']['unbind']('isEnabled'),_0x4d493b['arrowView']['unbind']('isEnabled'),_0x4d493b['actionView']['bind']('isEnabled')['to'](_0x1acc40,'isEnabled'),_0x4d493b['arrowView']['bind']('isEnabled')['toMany'](_0x1b354d,'isEnabled',(..._0x2c9595)=>_0x2c9595['some'](_0x196300=>_0x196300)),_0x2f753e['on']('execute',_0x4bc7a1=>{this['editor']['execute'](_0x4bc7a1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2f753e;}['_createMenuBarMenu'](_0x56d2fa,_0x43b01a,_0x7066df){const _0x18569c=new _0x261119(_0x56d2fa),_0x29b15f=this['editor']['commands']['get']('trackChanges');_0x18569c['buttonView']['set']({'label':_0x7066df,'icon':we});const _0x342bfc=new _0x207d53(_0x56d2fa);for(const _0x595c14 of _0x43b01a){if('separator'==_0x595c14['type']){_0x342bfc['items']['add'](new _0x229c03(_0x56d2fa));continue;}const _0x5192ca=new _0xbe89da(_0x56d2fa,_0x18569c),_0x21b4bb=new _0x1213d0(_0x56d2fa),_0x38fd99=_0x595c14['model'];_0x21b4bb['bind'](...Object['keys'](_0x38fd99))['to'](_0x38fd99),_0x21b4bb['delegate']('execute')['to'](_0x18569c),_0x21b4bb['on']('execute',()=>{this['editor']['execute'](_0x38fd99['commandName']),this['editor']['editing']['view']['focus']();}),_0x5192ca['children']['add'](_0x21b4bb),_0x342bfc['items']['add'](_0x5192ca);}return _0x18569c['bind']('isEnabled')['to'](_0x29b15f,'isEnabled'),_0x18569c['panelView']['children']['add'](_0x342bfc),_0x18569c;}['_initializeController'](_0x6c8294){const _0x1d1c0d=this['editor'],_0xc71edd=_0x1d1c0d['config'],_0x39f2f6=_0x1d1c0d['plugins']['get']('Annotations'),_0x2e05d5=_0x1d1c0d['plugins']['get']('CommentsRepository'),_0x270e73=_0x1d1c0d['plugins']['get']('EditorAnnotations'),_0x1f4709=_0x1d1c0d['plugins']['get'](_0x3cbfc7)['me'],_0x1c8e20=_0xc71edd['get']('trackChanges')['SuggestionThreadView'],_0x2743de=_0xc71edd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x472ea6,CommentThreadInputView:_0x4f8453}=_0x1d1c0d['plugins']['get']('CommentsUI');let _0x2fe04c,_0x16161b,_0x353d5a;this['_annotationViews']['has'](_0x6c8294['id'])?(_0x16161b=this['_annotationViews']['get'](_0x6c8294['id']),_0x2fe04c=_0x16161b['mainView']):(_0x2fe04c=new _0x1c8e20(_0x1d1c0d['locale'],_0x6c8294,_0x1f4709,{'disableComments':this['_disableComments'],'editorConfig':{..._0xc71edd['get']('comments.editorConfig'),'licenseKey':_0xc71edd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xc71edd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xc71edd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xc71edd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x44d697(_0xc71edd['get']('locale')),'CommentView':_0xc71edd['get']('comments')['CommentView'],'CommentsListView':_0x472ea6,'CommentThreadInputView':_0x4f8453,'SuggestionView':_0x2743de}),_0x2fe04c['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d1c0d['editing']['view']['focus']();}),_0x2fe04c['suggestionView']['discardButton']['on']('execute',()=>{_0x1d1c0d['editing']['view']['focus']();}),_0x16161b=_0x39f2f6['createAnnotationView'](this['editor']['locale'],_0x2fe04c),_0x16161b['bind']('isDirty')['to'](_0x2fe04c,'isDirty'),_0x16161b['bind']('length')['to'](_0x2fe04c),_0x16161b['bind']('type')['to'](_0x2fe04c,'type',_0x195829=>'suggestion-'+_0x195829),_0x2fe04c['on']('escape',()=>{_0x353d5a['fire']('escape');}),this['_annotationViews']['set'](_0x6c8294['id'],_0x16161b));const _0x39a4e5=_0x2e05d5['createCommentThreadController'](_0x6c8294['commentThread'],_0x2fe04c),_0x22cac8=new Ce(_0x1d1c0d,_0x6c8294,_0x2fe04c,_0x39a4e5),_0x4f4a78=_0x6c8294['getAllAdjacentSuggestions']()['filter'](_0x2aa904=>_0x2aa904['isInContent']);_0x2fe04c['descriptionParts']=_0x1d1c0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4f4a78),this['_suggestionToController']['set'](_0x6c8294,_0x22cac8),this['_viewToController']['set'](_0x2fe04c,_0x22cac8),_0x353d5a=_0x39f2f6['createAnnotation']({'view':_0x16161b,'target':()=>{const _0x55d15d=[],_0x3bb7b2=_0x6c8294['getAllAdjacentSuggestions']()['filter'](_0x1dfd7b=>_0x1dfd7b['isInContent']);for(const _0x11874e of _0x3bb7b2)_0x55d15d['push'](..._0x11874e['getMarkers']());return _0x386c62(_0x1d1c0d['editing'],_0x55d15d);},'type':()=>'suggestion-'+_0x22cac8['view']['type']}),_0x2e05d5['_bindAnnotationToEditors'](_0x2fe04c,_0x353d5a),_0x39f2f6['add'](_0x353d5a),_0x270e73['registerAnnotation'](_0x353d5a);}['_destroyController'](_0x4b777e){const _0x380317=this['editor']['plugins']['get']('CommentsRepository'),_0x3b169a=this['editor']['plugins']['get']('Annotations'),_0x1ea6fc=this['_suggestionToController']['get'](_0x4b777e),_0x35ba2e=_0x1ea6fc['view'],_0x425331=_0x3b169a['getByInnerView'](_0x35ba2e);_0x380317['_unbindEditors'](_0x35ba2e),_0x425331&&_0x3b169a['remove'](_0x425331),this['_suggestionToController']['delete'](_0x4b777e),this['_viewToController']['delete'](_0x35ba2e),_0x1ea6fc['destroy']();}['_updateController'](_0xf7a896){if(!_0xf7a896['isInContent']||!this['_suggestionToController']['has'](_0xf7a896))return;const _0x111dcf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cf057=this['_suggestionToController']['get'](_0xf7a896),_0x3d4875=_0xf7a896['getAllAdjacentSuggestions']();_0x5cf057['view']['descriptionParts']=_0x111dcf['descriptionFactory']['getDescriptions'](_0x3d4875);}['destroy'](){for(const _0x39f6f3 of this['_suggestionToController']['keys']())this['_destroyController'](_0x39f6f3);for(const _0x4a8fc8 of this['_annotationViews']['values']())_0x4a8fc8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x593831){return'model'in _0x593831;}class k extends _0x330415{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x16a3cf){this['editor']['plugins']['get'](p)['adapter']=_0x16a3cf;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x151d8a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x151d8a);}['getSuggestions']({skipNotAttached:_0xb91377=!0x1,toJSON:_0x263a23=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xb91377,'toJSON':_0x263a23});}['getSuggestion'](_0x2c2d6a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2c2d6a);}}const w=['Pagination'];class T extends _0x330415{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4113e8=this['editor'];if(_0x4113e8['config']['define']('trackChangesData.editorCreator',_0x259c09=>{const _0x416eaa=_0x4113e8['model']['document']['getRootNames']()['reduce']((_0xf2078c,_0x262bbe)=>(_0xf2078c[_0x262bbe]='',_0xf2078c),{});return _0x4113e8['constructor']['create'](_0x416eaa,_0x259c09);}),'function'!=typeof _0x4113e8['config']['get']('trackChangesData')['editorCreator'])throw new _0x5be2ae('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x111259){return N(this['editor'],!0x0,_0x111259);}['getDataWithDiscardedSuggestions'](_0x352cbb){return N(this['editor'],!0x1,_0x352cbb);}}class D extends _0x330415{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb9a533){function _0x457354(_0x4bd5c9){return _0x4bd5c9['map'](_0x3377ed=>String['fromCharCode'](_0x3377ed))['join']('');}super(_0xb9a533),this['result']='end',_0xb9a533[_0x457354([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x457354([0x76,0x69,0x65,0x77])][_0x457354([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x457354([0x61,0x75,0x74,0x6f]),_0xb9a533[_0x457354([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x457354([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x457354([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x457354([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x457354([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x151033){return void 0x0!==_0x151033['getRootsAttributes'];}async function N(_0x464499,_0x55b7ff,_0x498afe){const _0x160825=_0x3ae636(_0x464499,w);_0x160825['plugins']['push'](p,D),_0x160825['rootsAttributes']=Fe(_0x464499)?_0x464499['getRootsAttributes']():void 0x0;const _0x3bc20d=document['createDocumentFragment'](),_0x532990=_0x464499['config']['get']('trackChangesData')['editorCreator'],_0x53fd6d=await _0x532990(_0x160825,()=>function(_0x1b65ac){const _0x51552e=document['createElement']('div');return _0x1b65ac['appendChild'](_0x51552e),_0x51552e;}(_0x3bc20d));!function(_0x4cd1ad,_0x65fe77){const _0x3e5af6=_0x4cd1ad['model']['document']['getRootNames']()['reduce']((_0x3123ee,_0x15876b)=>(_0x3123ee[_0x15876b]=_0x4cd1ad['data']['get']({'rootName':_0x15876b}),_0x3123ee),{}),_0x536e93=_0x4cd1ad['plugins']['get']('Users')['users']['map'](_0x369020=>({'id':_0x369020['id'],'name':_0x369020['name']})),_0x26027f=_0x4cd1ad['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xdf1935=_0x4cd1ad['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x465ba7=_0x65fe77['plugins']['get']('Users'),_0x525cb8=_0x65fe77['plugins']['get']('TrackChangesEditing'),_0x205814=_0x65fe77['plugins']['get']('CommentsRepository');for(const _0x445021 of _0x205814['getCommentThreads']())_0x445021['remove']();for(const _0x8434 of _0x536e93)_0x465ba7['getUser'](_0x8434['id'])||_0x465ba7['addUser'](_0x8434);_0x465ba7['me']||_0x465ba7['useAnonymousUser']();for(const _0x2437aa of _0xdf1935)_0x205814['addCommentThread'](_0x2437aa);for(const _0x1aaadc of _0x26027f)_0x525cb8['addSuggestionData'](_0x1aaadc);_0x65fe77['data']['set'](_0x3e5af6);}(_0x464499,_0x53fd6d),_0x53fd6d['execute'](_0x55b7ff?'acceptAllSuggestions':'discardAllSuggestions');const _0x49216c=Fe(_0x53fd6d)?_0x53fd6d['getFullData'](_0x498afe):_0x53fd6d['data']['get'](_0x498afe);return await _0x53fd6d['destroy'](),_0x49216c;}class Me extends _0x21e7be{['options'];constructor(_0x523c30,_0x1f1376){super(_0x523c30),this['options']=_0x1f1376,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'](_0x23b4cd,_0x18b4ba){if(!this['element'])return;const _0x1e5d4e=[];for(const [_0x108d05,_0x3ff16b]of _0x23b4cd){const _0x39dda9=document['createElement']('div');_0x39dda9['setAttribute']('data-ck-root-name',_0x108d05),_0x39dda9['className']=_0x3ff16b['classes']+'\x20ck-track-changes-preview__root-container',_0x39dda9['innerHTML']=_0x3ff16b['content'],_0x1e5d4e['push'](_0x39dda9);}_0x18b4ba(this['element'],_0x1e5d4e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Xt{constructor(_0x2464fb){super(_0x2464fb),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5ee158=this['editor'],_0xef1ae5=_0x5ee158['locale'],_0xa95266=_0x5ee158['plugins']['get']('Dialog');let _0x73c360;const _0x1c9be1=function(_0x42118e){const _0x36986f={};if('editables'in _0x42118e['ui']['view']){for(const [_0x5c4544,_0x3afc67]of Object['entries'](_0x42118e['ui']['view']['editables']))_0x36986f[_0x5c4544]=_0x3afc67['element'];}else _0x36986f[_0x42118e['model']['document']['getRootNames']()[0x0]]=_0x42118e['ui']['view']['editable']['element'];return _0x36986f;}(_0x5ee158),_0x17af95=function(_0x130a9e){let _0xda3c83=0x0;for(const _0x17bf5e of Object['values'](_0x130a9e))_0xda3c83=Math['max'](_0xda3c83,_0x17bf5e['getBoundingClientRect']()['width']);let _0x1ac0c4=0x0;for(const _0x4af6d4 of Object['values'](_0x130a9e))_0x1ac0c4+=_0x4af6d4['getBoundingClientRect']()['height'];const _0x2d2ca1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4d12be=Math['min'](_0x1ac0c4,_0x2d2ca1);return{'width':_0xda3c83,'height':_0x4d12be};}(_0x1c9be1);_0xa95266['show']({'id':'finalContentPreview','title':o(_0xef1ae5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xef1ae5,{'dialogRects':_0x17af95}),'onHide':()=>{_0x73c360['detachFromDom']();},'onShow':()=>{_0x5ee158['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x51f775=>{const _0x3b2e3a=this['_standarizeRootsData'](_0x51f775,_0x5ee158,_0x1c9be1);_0xa95266['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3b2e3a,_0x5ee158['config']['get']('trackChanges.preview.renderFunction'));}),_0x73c360=new _0x4ba3f9(_0xef1ae5,[_0xa95266['view']]),_0x73c360['attachToDom'](),_0x73c360['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5ee158['once']('destroy',()=>{_0x73c360['detachFromDom']();});const _0x5775fb=_0xa95266['view']['headerView']['class'];_0xa95266['view']['headerView']['class']=_0x5775fb?_0x5775fb+'\x20ck-reset_all':'ck-reset_all',_0xa95266['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xa95266['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xd5bfa5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xa0ab56=_0xd5bfa5['previewMode'],_0x4d6717={};if('$labels'===_0xa0ab56){for(const _0x35dcb9 of _0xd5bfa5['getMergeFieldsIds']())_0x4d6717[_0x35dcb9]=_0xd5bfa5['getLabel'](_0x35dcb9)||_0x35dcb9;}else{const _0x2044fc='$defaultValues'===_0xa0ab56?_0xd5bfa5['getDefaultValues']():_0xd5bfa5['getDataSetValues'](_0xa0ab56,!0x0);for(const _0x360681 of Object['entries'](_0x2044fc)){const [_0x2ac35a,_0x33cf0a]=_0x360681;_0x4d6717[_0x2ac35a]=null!==_0x33cf0a?_0x33cf0a:_0xd5bfa5['getLabel'](_0x2ac35a)||_0x2ac35a;}}return{'mergeFieldsData':_0x4d6717};}['_standarizeRootsData'](_0x3d4d69,_0x38b52b,_0x663c87){let _0x543640;if('string'==typeof _0x3d4d69){const _0xcd080f=_0x38b52b['model']['document']['getRootNames']()[0x0];_0x543640={[_0xcd080f]:_0x3d4d69};}else _0x543640=_0x3d4d69;const _0x6fbc7=this['_fixMediaEmbeds'](_0x543640,_0x38b52b),_0x28e913=function(_0x10b5fa,_0x5c9aaa){for(const [_0x500ce6,_0x3bfb6a]of _0x10b5fa)_0x3bfb6a['classes']=_0x5c9aaa[_0x500ce6]['classList']['value']['replace']('ck-focused','');return _0x10b5fa;}(this['_sortRoots'](_0x38b52b)['reduce']((_0x4f3fb2,_0xb251f1)=>(_0x4f3fb2['push']([_0xb251f1,{'content':_0x6fbc7[_0xb251f1],'classes':''}]),_0x4f3fb2),[]),_0x663c87);return _0x28e913;}['_fixMediaEmbeds'](_0x4ae614,_0x1c6feb){if(!_0x1c6feb['plugins']['has']('MediaEmbedEditing'))return _0x4ae614;const _0x3fb564=_0x1c6feb['plugins']['get']('MediaEmbedEditing');for(const [_0x5858a7,_0x33cfcd]of Object['entries'](_0x4ae614)){const _0x48d5b4=document['createElement']('div');_0x48d5b4['innerHTML']=_0x33cfcd,(_0x48d5b4['querySelectorAll']('figure.media')['forEach'](_0x1b6a7e=>{const _0x10d7fd=_0x1b6a7e['querySelector']('oembed');if(_0x10d7fd){const _0x54aa1e=_0x10d7fd['getAttribute']('url');if(_0x54aa1e){const _0xd518f6=_0x3fb564['registry']['getMediaViewElement'](new _0x11f4f7(_0x1c6feb['editing']['view']['document']),_0x54aa1e,{'elementName':'','renderForEditingView':!0x0}),_0x4a39ce=document['createElement']('div');_0x4a39ce['classList']['add']('ck-media__wrapper'),_0xd518f6['render'](_0x4a39ce,_0x1c6feb['editing']['view']['domConverter']),_0x10d7fd['replaceWith'](_0x4a39ce);}}}),_0x4ae614[_0x5858a7]=_0x48d5b4['innerHTML']);}return _0x4ae614;}['_sortRoots'](_0x5d1ecb){if(!function(_0x406ad7){return void 0x0!==_0x406ad7['getRootsAttributes'];}(_0x5d1ecb))return _0x5d1ecb['model']['document']['getRootNames']();const _0x275f24=[],_0x2ed871=new Map();for(const _0x3a20d7 of _0x5d1ecb['model']['document']['getRootNames']()){const _0x4df507=_0x5d1ecb['editing']['view']['getDomRoot'](_0x3a20d7)['getClientRects']()['item'](0x0);_0x275f24['push'](_0x3a20d7),_0x2ed871['set'](_0x3a20d7,_0x4df507);}return _0x275f24['sort']((_0xf37c62,_0x217ec1)=>{const _0x3b5405=_0x2ed871['get'](_0xf37c62),_0xe080dc=_0x2ed871['get'](_0x217ec1);return _0x3b5405['y']-_0xe080dc['y']||_0x3b5405['x']-_0xe080dc['x'];}),_0x275f24;}}class te extends _0x330415{static get['requires'](){return[T,_0x3434b7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x448c92){super(_0x448c92),_0x448c92['commands']['add']('previewFinalContent',new re(this['editor'])),_0x448c92['config']['define']('trackChanges.preview.renderFunction',(_0x5c111a,_0x5eba03)=>{for(const _0x2e5202 of _0x5eba03)_0x5c111a['appendChild'](_0x2e5202);});}}export{cs as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|