@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250928.0 → 0.0.0-nightly-20250929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0xcedd82(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5e514,_0x44bd37){super(),this['id']=_0x44bd37['id'],this['type']=_0x44bd37['type'],this['subType']=_0x44bd37['subType']||null,this['author']=_0x44bd37['author'],this['creator']=_0x44bd37['creator']||_0x44bd37['author'],this['isExternal']=Boolean(_0x44bd37['attributes']&&_0x44bd37['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x44bd37['originalSuggestionId']||null,this['_model']=_0x5e514,this['_onAccept']=_0x44bd37['onAccept'],this['_onDiscard']=_0x44bd37['onDiscard'],this['_onAttributesChange']=_0x44bd37['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x44bd37['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 _0x26c421=this;for(;_0x26c421['previous'];)_0x26c421=_0x26c421['previous'];return _0x26c421;}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'](_0x9690d7){this['_markerNames']['add'](_0x9690d7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2339de=>this['_model']['markers']['get'](_0x2339de))['filter'](_0x4ca867=>_0x4ca867);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x36d6d1=>{for(const _0x503c98 of this['getMarkers']())_0x36d6d1['removeMarker'](_0x503c98);}),this['_markerNames']['clear']();}['removeMarker'](_0x191a15){this['_model']['change'](_0x142820=>{_0x142820['removeMarker'](_0x191a15);}),this['_markerNames']['delete'](_0x191a15);}['addRange'](_0x4d1fbc){const _0x425ae8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x425ae8),this['_model']['change'](_0x5cb1c2=>{_0x5cb1c2['addMarker'](_0x425ae8,{'range':_0x4d1fbc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2fc13e){for(const _0x1d7a75 of this['getRanges']())if(_0x1d7a75['isIntersecting'](_0x2fc13e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x297725=>_0x297725['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x57ecdd,_0x17f8cc)=>[..._0x57ecdd,..._0x17f8cc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x496de0=this['getRanges']();if(0x1!=_0x496de0['length'])return null;const _0xd1be16=_0x496de0[0x0],_0x82440a=_0xd1be16['start']['nodeAfter'],_0x496121=_0xd1be16['end']['nodeBefore'];return _0x82440a instanceof _0x44a403?_0x82440a!=_0x496121?null:_0x82440a: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 _0x5ae4a9=[];let _0x504a54=this['head'];for(;_0x504a54;)_0x5ae4a9['push'](_0x504a54),_0x504a54=_0x504a54['next'];return _0x5ae4a9;}['setAttribute'](_0x5767a1,_0x5b1123){const _0x41cfb9=_0x27e870(this['attributes']);_0x5d27ae(_0x41cfb9,_0x5767a1,_0x5b1123),_0x3b563a(_0x41cfb9,this['attributes'])||(this['attributes']=_0x41cfb9,this['_onAttributesChange'](_0x41cfb9));}['removeAttribute'](_0x28225b){const _0x495456=_0x27e870(this['attributes']);_0x2b3dd9(_0x495456,_0x28225b),_0x3b563a(_0x495456,this['attributes'])||(this['attributes']=_0x495456,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 _0xb1da02()['substr'](0x1,0x5);}}function o(_0x342cff,_0x87196c,_0x21993b){const _0xcbabdf=_0x342cff['t'],t=_0x342cff['t'];switch(_0x87196c){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',_0x21993b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x21993b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x21993b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x21993b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x21993b);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',_0x21993b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x21993b);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',_0x21993b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x21993b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x21993b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x21993b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x21993b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x21993b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x21993b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x21993b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x21993b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x21993b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x21993b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x21993b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x21993b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x21993b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x21993b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x21993b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x21993b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x21993b);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'},_0x21993b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x21993b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x21993b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x21993b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x21993b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x21993b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x21993b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x21993b);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'},_0x21993b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x21993b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x21993b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x21993b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x21993b);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'},_0x21993b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x21993b);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'},_0x21993b);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x21993b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x21993b);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'},_0x21993b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x21993b);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'},_0x21993b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x21993b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x21993b);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'},_0x21993b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x21993b);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 _0xcbabdf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x21993b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xcbabdf({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x21993b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x21993b);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'},_0x21993b);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'},_0x21993b);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'},_0x21993b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x87196c;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x10f451,_0x178b31){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x10f451,this['_locale']=_0x178b31;}['getDescriptions'](_0xc88088){const _0x588b34=[],_0x1b9e4a=new Set(),_0x19f280=new Set();for(let _0x4d515e=0x0;_0x4d515e<_0xc88088['length'];_0x4d515e++){const _0x97598d=_0xc88088[_0x4d515e];if(!_0x97598d['isInContent'])continue;const _0x426347=this['_handleCustomCallbackDescription'](_0x97598d);if(_0x426347){if(null!=_0x97598d['subType']){if(_0x1b9e4a['has'](_0x97598d['subType']))continue;_0x1b9e4a['add'](_0x97598d['subType']);}_0x588b34['push'](_0x426347);}else{if('attribute'==_0x97598d['type']){const _0x578be9=_0x97598d['data']['key'];if(_0x19f280['has'](_0x578be9))continue;_0x19f280['add'](_0x97598d['data']['key']),_0x578be9==m?this['_handleRenameSuggestionDescription'](_0x588b34,_0x97598d):this['_handleAttributeSuggestionDescription'](_0x588b34,_0x97598d);continue;}'insertion'!=_0x97598d['type']&&'deletion'!=_0x97598d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x588b34,_0x97598d,_0xc88088[_0x4d515e+0x1]);}}return this['_resolveDescriptionItems'](_0x588b34);}['registerDescriptionCallback'](_0x415fc6){this['_customCallbacks']['push'](_0x415fc6);}['registerElementLabel'](_0x3443b3,_0x33cb0f,_0xf3e761=_0x1425d6['normal']){'function'==typeof _0x3443b3?_0x496043(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3443b3,'label':_0x33cb0f,'priority':_0xf3e761}):this['_itemLabels']['set'](_0x3443b3,_0x33cb0f);}['registerAttributeLabel'](_0x15e9cb,_0x5e7f36){this['_attributeLabels']['set'](_0x15e9cb,_0x5e7f36);}['getItemLabel'](_0x1b884a,_0x362750=0x1){let _0x26b4f3;for(const _0x513709 of this['_itemLabelsCallbacks'])if(_0x513709['matchingCallback'](_0x1b884a)){_0x26b4f3=_0x513709['label'];break;}return _0x26b4f3||(_0x26b4f3=this['_itemLabels']['get'](_0x1b884a['name'])),_0x26b4f3?_0x26b4f3(_0x362750):0x1!==_0x362750?_0x362750+'\x20'+_0x1b884a['name']+'s':''+_0x1b884a['name'];}['_addDescriptionItems'](_0x3faef1,_0x2d7b21){const _0xf142ee=_0x2d7b21['getFirstRange']()['getWalker'](),_0x23a72d='insertion'==_0x2d7b21['type']?'add':'remove';for(const _0x35fb55 of _0xf142ee){const _0x1af3c3=_0x35fb55['item'],_0x5b572e=_0x3faef1[_0x3faef1['length']-0x1];if(_0x1af3c3['is']('$textProxy'))_0x5b572e&&_0x5b572e['type']['indexOf']('Container')>-0x1&&_0x3faef1['pop'](),_0x5b572e&&'text'==_0x5b572e['type']?_0x5b572e[_0x23a72d]+=_0x1af3c3['data']:_0x3faef1['push']({'type':'text','add':'add'==_0x23a72d?_0x1af3c3['data']:'','remove':'remove'==_0x23a72d?_0x1af3c3['data']:''});else{if(this['_schema']['isObject'](_0x1af3c3)){const _0x31a650=_0x1af3c3;if(_0x5b572e&&_0x5b572e['type']['indexOf']('Container')>-0x1&&_0x3faef1['pop'](),'elementEnd'==_0x35fb55['type'])continue;_0x5b572e&&_0x5b572e['type']==_0x23a72d+'Object'&&_0x5b572e['element']['name']==_0x31a650['name']?_0x5b572e['quantity']++:_0x3faef1['push']({'type':_0x23a72d+'Object','element':_0x31a650,'quantity':0x1}),_0xf142ee['skip'](_0x13f86a=>!('elementEnd'==_0x13f86a['type']&&_0x13f86a['item']==_0x1af3c3));}else{if(this['_schema']['checkChild'](_0x1af3c3,'$text')||_0x1af3c3['is']('element','softBreak')){const _0x37f514=_0x1af3c3;if('add'==_0x23a72d&&'elementStart'==_0x35fb55['type']||'remove'==_0x23a72d&&'elementEnd'==_0x35fb55['type'])continue;if(_0x5b572e&&-0x1==_0x5b572e['type']['indexOf']('Container')){'text'==_0x5b572e['type']&&(_0x5b572e[_0x23a72d]+='\x0a');continue;}let _0x3bc36e;if(_0x3bc36e='add'==_0x23a72d?_0x37f514['nextSibling']&&!this['_schema']['isObject'](_0x37f514['nextSibling'])?_0x37f514['nextSibling']:null:_0x37f514['previousSibling']&&!this['_schema']['isObject'](_0x37f514['previousSibling'])?_0x37f514['previousSibling']:null,_0x37f514['isEmpty']||_0x3bc36e&&_0x3bc36e['isEmpty']){const _0x5c48d7=_0x3bc36e&&_0x3bc36e['isEmpty']?_0x3bc36e:_0x37f514;_0x5b572e&&_0x5b572e['type']==_0x23a72d+'EmptyContainer'&&_0x5b572e['element']['name']==_0x5c48d7['name']?_0x5b572e['quantity']++:_0x3faef1['push']({'type':_0x23a72d+'EmptyContainer','element':_0x5c48d7,'quantity':0x1});}else _0x3faef1['push']({'type':_0x23a72d+'Container','element':_0x37f514});}}}}}['_resolveDescriptionItems'](_0x330c7c){const _0x29da64=this['_locale'],_0x800247=[],_0xe3e5ea=[],_0x442604=[];for(const _0x20a468 of _0x330c7c)switch(_0x20a468['type']){case'text':if(_0x20a468['add']=_0x20a468['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x20a468['remove']=_0x20a468['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x20a468['add']&&''!=_0x20a468['remove']){_0x800247['push']({'type':'replace','content':o(_0x29da64,'REPLACE_TEXT',['\x22'+_0x20a468['remove']+'\x22','\x22'+_0x20a468['add']+'\x22'])});continue;}if(null!=_0x20a468['add']['match'](/^ +$/)){_0x800247['push']({'type':'insertion','content':o(_0x29da64,'*Insert:*\x20%0',o(_0x29da64,'ELEMENT_SPACE',_0x20a468['add']['length']))});continue;}if(null!=_0x20a468['remove']['match'](/^ +$/)){_0x800247['push']({'type':'deletion','content':o(_0x29da64,'*Remove:*\x20%0',o(_0x29da64,'ELEMENT_SPACE',_0x20a468['remove']['length']))});continue;}if(''!=_0x20a468['add']){_0x800247['push']({'type':'insertion','content':o(_0x29da64,'*Insert:*\x20%0','\x22'+_0x20a468['add']+'\x22')});continue;}_0x800247['push']({'type':'deletion','content':o(_0x29da64,'*Remove:*\x20%0','\x22'+_0x20a468['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x800247['push']({'type':'insertion','content':o(_0x29da64,'*Insert:*\x20%0',this['getItemLabel'](_0x20a468['element'],_0x20a468['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x800247['push']({'type':'deletion','content':o(_0x29da64,'*Remove:*\x20%0',this['getItemLabel'](_0x20a468['element'],_0x20a468['quantity']))});continue;case'addContainer':_0x800247['push']({'type':'insertion','content':o(_0x29da64,'*Split:*\x20%0',this['getItemLabel'](_0x20a468['element'],_0x20a468['quantity']))});continue;case'removeContainer':_0x800247['push']({'type':'deletion','content':o(_0x29da64,'*Merge:*\x20%0',this['getItemLabel'](_0x20a468['element'],_0x20a468['quantity']))});continue;case'addFormat':_0xe3e5ea['push'](_0x20a468['key']);continue;case'removeFormat':_0x442604['push'](_0x20a468['key']);continue;default:_0x800247['push'](_0x20a468);}if(_0xe3e5ea['length']){const _0x4eb086=_0xe3e5ea['map'](_0x528d0e=>this['_attributeLabels']['has'](_0x528d0e)?this['_attributeLabels']['get'](_0x528d0e):_0x528d0e)['join'](',\x20');_0x800247['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4eb086)});}if(_0x442604['length']){const _0x211087=_0x442604['map'](_0x3b43ff=>this['_attributeLabels']['has'](_0x3b43ff)?this['_attributeLabels']['get'](_0x3b43ff):_0x3b43ff)['join'](',\x20');_0x800247['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x211087)});}return _0x800247;}['_handleCustomCallbackDescription'](_0x249caa){for(const _0x127131 of this['_customCallbacks']){const _0x47a5a2=_0x127131(_0x249caa);if(_0x47a5a2&&'type'in _0x47a5a2)return _0x47a5a2;}}['_handleAttributeSuggestionDescription'](_0x162005,_0x3a2019){const _0x47b347=_0x3a2019['data'],_0x36f01b=void 0x0===_0x47b347['newValue']?'removeFormat':'addFormat';_0x162005['push']({'type':_0x36f01b,'key':_0x47b347['key']});}['_handleRenameSuggestionDescription'](_0x4b6255,_0x3fabc1){_0x4b6255['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3fabc1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x56fdf2,_0xce73a,_0x22b728){if(this['_addDescriptionItems'](_0x56fdf2,_0xce73a),_0x22b728&&_0x22b728['getFirstRange']()&&!_0xce73a['getFirstRange']()['end']['isEqual'](_0x22b728['getFirstRange']()['start'])){const _0x4e3dc9=_0x56fdf2[_0x56fdf2['length']-0x1],_0x4749bf='insertion'==_0xce73a['type']?'add':'remove';_0x4e3dc9&&'text'==_0x4e3dc9['type']&&(_0x4e3dc9[_0x4749bf]+='\x0a');}}}class V extends _0x15a662{['afterInit'](){const _0x233789=this['editor'],_0x12f4b7=_0x233789['plugins']['get']('TrackChangesEditing');_0x233789['commands']['get']('showAIAssistant')&&_0x12f4b7['enableCommand']('showAIAssistant');}}class F extends _0x15a662{['afterInit'](){const _0xf645d2=this['editor'],_0x4c6cc6=_0xf645d2['locale'];if(!_0xf645d2['plugins']['has']('AlignmentEditing'))return;const _0x5ca584=_0xf645d2['plugins']['get']('TrackChangesEditing');_0x5ca584['enableDefaultAttributesIntegration']('alignment'),_0x5ca584['registerBlockAttribute']('alignment'),_0x5ca584['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c6cc6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x345167=this['editor'],_0x5a35e8=_0x345167['locale'];_0x345167['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2df2f1=>{if('formatBlock'!=_0x2df2f1['type'])return;const {data:_0x410009}=_0x2df2f1;if(_0x410009&&'alignment'==_0x410009['commandName']){const _0xdd0605=_0x410009['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5a35e8,'*Format:*\x20%0',function(_0x1adda7){switch(_0x1adda7){case'left':return o(_0x5a35e8,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5a35e8,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5a35e8,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5a35e8,'FORMAT_JUSTIFY_TEXT');}}(_0xdd0605))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x15a662{['afterInit'](){const _0x3a30da=this['editor'],_0x215a79=_0x3a30da['plugins']['get']('TrackChangesEditing'),_0x1a6b79=_0x3a30da['locale'];for(const _0x30e663 of ti){if(!_0x3a30da['plugins']['has'](_0x30e663))continue;const _0x2b4a76=_0x30e663['slice'](0x0,-0x7)['toLowerCase'](),_0x4052d2='FORMAT_'+_0x2b4a76['toUpperCase']();_0x215a79['enableDefaultAttributesIntegration'](_0x2b4a76),_0x215a79['registerInlineAttribute'](_0x2b4a76),_0x215a79['descriptionFactory']['registerAttributeLabel'](_0x2b4a76,o(_0x1a6b79,_0x4052d2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41176a=this['editor'],_0x11bf8a=_0x41176a['locale'],_0xae2c4c=_0x41176a['plugins']['get']('TrackChangesEditing');function _0x36bddb(_0x47e716,_0x4539ec){_0xae2c4c['descriptionFactory']['registerDescriptionCallback'](_0x50043c=>{if('formatInline'!=_0x50043c['type'])return;const {data:_0x40ff5d}=_0x50043c;return _0x40ff5d&&_0x40ff5d['commandName']===_0x47e716?_0x40ff5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11bf8a,'*Format:*\x20%0',_0x4539ec)}:{'type':'format','content':o(_0x11bf8a,'*Remove\x20format:*\x20%0',_0x4539ec)}:void 0x0;});}_0x36bddb('bold',o(_0x11bf8a,'FORMAT_BOLD')),_0x36bddb('italic',o(_0x11bf8a,'FORMAT_ITALIC')),_0x36bddb('underline',o(_0x11bf8a,'FORMAT_UNDERLINE')),_0x36bddb('code',o(_0x11bf8a,'FORMAT_CODE')),_0x36bddb('strikethrough',o(_0x11bf8a,'FORMAT_STRIKETHROUGH')),_0x36bddb('subscript',o(_0x11bf8a,'FORMAT_SUBSCRIPT')),_0x36bddb('superscript',o(_0x11bf8a,'FORMAT_SUPERSCRIPT'));}}class L extends _0x15a662{['afterInit'](){const _0x184085=this['editor'],_0x5db24a=_0x184085['locale'];if(!_0x184085['plugins']['has']('BlockQuoteEditing'))return;const _0x25d83e=_0x184085['plugins']['get']('TrackChangesEditing'),_0x503e38=this['editor']['commands']['get']('blockQuote');_0x25d83e['enableCommand']('blockQuote',(_0x18eca7,_0x3e5f10={})=>{const _0x38b4de=this['editor']['model']['document']['selection'],_0x6eedd8=_0x3e5f10&&void 0x0!==_0x3e5f10['forceValue']?_0x3e5f10['forceValue']:!_0x503e38['value'];let _0x50cd42=[];if(_0x6eedd8){const _0x3a831c=Array['from'](_0x38b4de['getSelectedBlocks']())['filter'](_0x43bc5e=>oo(_0x43bc5e)||function(_0x44a08b,_0x478ac5){const _0x3a8f6b=_0x478ac5['checkChild'](_0x44a08b['parent'],'blockQuote'),_0x438a29=_0x478ac5['checkChild'](['$root','blockQuote'],_0x44a08b);return _0x3a8f6b&&_0x438a29;}(_0x43bc5e,this['editor']['model']['schema']));_0x50cd42=to(_0x3a831c,_0x184085['model']);}else{const _0x564b3e=Array['from'](_0x38b4de['getSelectedBlocks']())['filter'](_0x3b3bd9=>oo(_0x3b3bd9));_0x50cd42=to(_0x564b3e,_0x184085['model']);}_0x184085['model']['change'](()=>{for(const _0x229507 of _0x50cd42)_0x25d83e['markBlockFormat'](_0x229507,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x6eedd8}]});});}),_0x25d83e['descriptionFactory']['registerDescriptionCallback'](_0x55c30e=>{const {data:_0x456241}=_0x55c30e;if(_0x456241&&'blockQuote'==_0x456241['commandName']){const _0x502854=o(_0x5db24a,'ELEMENT_BLOCK_QUOTE');return _0x456241['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5db24a,'*Set\x20format:*\x20%0',_0x502854)}:{'type':'format','content':o(_0x5db24a,'*Remove\x20format:*\x20%0',_0x502854)};}});}}function oo(_0x159949){return'blockQuote'==_0x159949['parent']['name'];}class J extends _0x15a662{['afterInit'](){const _0x192e31=this['editor'],_0x4992fa=_0x192e31['locale'],_0x69e92=_0x192e31['plugins']['get']('TrackChangesEditing');_0x192e31['plugins']['has']('BookmarkEditing')&&(_0x69e92['enableCommand']('insertBookmark'),_0x69e92['enableDefaultAttributesIntegration']('updateBookmark'),_0x69e92['registerBlockAttribute']('bookmarkId'),_0x69e92['descriptionFactory']['registerDescriptionCallback'](_0x4856d9=>{if('insertion'!=_0x4856d9['type']&&'deletion'!=_0x4856d9['type']&&'attribute'!=_0x4856d9['type'])return;const _0xcd8da7=_0x4856d9['getContainedElement']();if(null==_0xcd8da7)return;if(!_0xcd8da7['is']('element','bookmark'))return;const _0x58081b=_0xcd8da7['getAttribute']('bookmarkId');if('insertion'==_0x4856d9['type'])return{'type':'insertion','content':o(_0x4992fa,'*Insert:*\x20%0','\x22'+_0x58081b+'\x22\x20'+o(_0x4992fa,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4856d9['type'])return{'type':'deletion','content':o(_0x4992fa,'*Remove:*\x20%0','\x22'+_0x58081b+'\x22\x20'+o(_0x4992fa,'ELEMENT_BOOKMARK'))};const {data:_0x341ebd}=_0x4856d9;if(!_0x341ebd||'bookmarkId'!=_0x341ebd['key'])return;return{'type':'format','content':o(_0x4992fa,'*Set\x20bookmark:*\x20%0','\x22'+_0x341ebd['newValue']+'\x22')};}));}}class K extends _0x15a662{['afterInit'](){const _0x21ef92=this['editor'];_0x21ef92['plugins']['has']('CaseChange')&&(_0x21ef92['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x21ef92['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x21ef92['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x15a662{['afterInit'](){const _0x404bb6=this['editor'];_0x404bb6['commands']['get']('ckbox')&&_0x404bb6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x15a662{['afterInit'](){const _0x4fedb7=this['editor'];if(!_0x4fedb7['plugins']['has']('CodeBlock'))return;const _0x525a3e=_0x4fedb7['plugins']['get']('TrackChangesEditing'),_0x3d08b0=_0x4fedb7['locale'],_0x102e4f=_0x4fedb7['config']['get']('codeBlock')['languages'],_0x2d21e4=_0x4fedb7['commands']['get']('codeBlock');_0x525a3e['enableCommand']('indentCodeBlock'),_0x525a3e['enableCommand']('outdentCodeBlock'),_0x525a3e['enableCommand']('codeBlock',(_0x253e54,_0x55fb53={})=>{const _0x139cc1=_0x4fedb7['model'],_0x739e81=_0x4fedb7['model']['document']['selection'],_0x306285=_0x55fb53&&void 0x0!==_0x55fb53['forceValue']?_0x55fb53['forceValue']:!_0x2d21e4['value'];let _0x31071f;_0x55fb53['language']||(_0x55fb53['language']=_0x102e4f[0x0]['language']),_0x31071f=_0x306285?Array['from'](_0x739e81['getSelectedBlocks']())['filter'](_0x1578e9=>co(_0x1578e9)||function(_0x1af5f1,_0x5cc86a){if(_0x1af5f1['is']('rootElement')||_0x5cc86a['isLimit'](_0x1af5f1))return!0x1;return _0x5cc86a['checkChild'](_0x1af5f1['parent'],'codeBlock');}(_0x1578e9,_0x139cc1['schema'])):Array['from'](_0x739e81['getSelectedBlocks']())['filter'](_0x45cd9e=>co(_0x45cd9e));const _0x3678da=to(_0x31071f,_0x139cc1);_0x139cc1['change'](()=>{for(const _0x4051c4 of _0x3678da)_0x525a3e['markBlockFormat'](_0x4051c4,{'commandName':'codeBlock','commandParams':[{..._0x55fb53,'forceValue':_0x306285}],'formatGroupId':'blockName'});});}),(_0x525a3e['descriptionFactory']['registerElementLabel']('codeBlock',_0x239fb2=>o(_0x3d08b0,'ELEMENT_CODE_BLOCK',_0x239fb2)),_0x525a3e['descriptionFactory']['registerDescriptionCallback'](_0x485078=>{if('formatBlock'!=_0x485078['type'])return;const _0x44f522=_0x3d08b0['t'],{data:_0x141014}=_0x485078;if(!_0x141014||'codeBlock'!=_0x141014['commandName'])return;const _0x1cd133=_0x141014['commandParams'][0x0]['language'],_0x1536fa=_0x44f522(_0x102e4f['find'](_0x45b3e8=>_0x45b3e8['language']===_0x1cd133)['label'])['toLowerCase']();return _0x141014['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d08b0,'*Set\x20format:*\x20%0',o(_0x3d08b0,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1536fa+')')}:{'type':'format','content':o(_0x3d08b0,'*Remove\x20format:*\x20%0',o(_0x3d08b0,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x4d4adc){return'codeBlock'==_0x4d4adc['name'];}class q extends _0x15a662{['afterInit'](){const _0x261ce2=this['editor'];if(!_0x261ce2['plugins']['has']('CommentsEditing'))return;_0x261ce2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe42877,_0x43a7e7,_0x4c8f29){const _0x38c675=[];for(const _0x5db975 of _0x43a7e7['getItems']())_0x5db975['hasAttribute'](_0xe42877)&&_0x38c675['push'](_0x4c8f29['createRangeOn'](_0x5db975));return _0x38c675;}function Ge(_0x4d93e0,_0x4bfdda,{showActiveMarker:_0x11ac17=!0x0}={}){const _0x26bdb3=_0x4d93e0['plugins']['get']('TrackChangesEditing');return(_0x523833,_0x17bc7e,_0xf6714a)=>{if(!_0xf6714a['consumable']['test'](_0x17bc7e['markerRange'],_0x523833['name']))return;const _0x3e35af=_0x17bc7e['markerRange']['getWalker'](),_0x15a310=_0x17bc7e['markerRange']['start'],_0xabf4ae=_0x4d93e0['model']['schema'];let _0x292c3c=null,_0x5e20c7=null,_0x4c8d78=!0x1,_0x9fe03e=!0x1;for(const _0x174e8f of _0x3e35af){const _0x1bd56b=_0x174e8f['item'];_0x4c8d78=_0x4c8d78||_0xabf4ae['isContent'](_0x1bd56b);const _0x3c0fe7=_0xf6714a['mapper']['toViewElement'](_0x1bd56b);if(_0x3c0fe7&&_0x3c0fe7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x174e8f['type']&&(_0xabf4ae['isBlock'](_0x1bd56b)&&!_0xabf4ae['isLimit'](_0x1bd56b)&&(_0x1bd56b['nextSibling']||_0x15a310['isAtEnd']?_0x292c3c&&_0x292c3c['parent']==_0x1bd56b||(_0x292c3c=_0x1bd56b,_0x3470d9(_0x174e8f['previousPosition']),_0x9fe03e=!0x0):_0x5e20c7=_0x5e20c7||_0x174e8f['previousPosition']));}function _0x3470d9(_0x3998ff){const {id:_0x38cca8,authorId:_0x5190b2}=_0x26bdb3['_splitMarkerName'](_0x17bc7e['markerName']),_0x49a33d=_0xf6714a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bfdda,'data-suggestion':_0x38cca8,'data-author-id':_0x5190b2}),_0x28b9b3=_0xf6714a['mapper']['toViewPosition'](_0x3998ff);_0x11ac17&&_0x26bdb3['activeMarkers']['includes'](_0x17bc7e['markerName'])&&_0xf6714a['writer']['addClass']('ck-suggestion-marker--active',_0x49a33d),_0xf6714a['writer']['insert'](_0x28b9b3,_0x49a33d),_0xf6714a['mapper']['bindElementToMarker'](_0x49a33d,_0x17bc7e['markerName']);}_0x4c8d78||_0x9fe03e||!_0x5e20c7||_0x3470d9(_0x5e20c7);};}class z extends _0x15a662{static get['requires'](){return[_0x348227];}['init'](){const _0x26665e=this['editor'],_0x5cdee8=_0x26665e['plugins']['get']('TrackChangesEditing');_0x5cdee8['enableCommand']('delete');const _0x1b95c1=_0x26665e['commands']['get']('deleteForward');_0x5cdee8['enableCommand']('deleteForward',(_0x230a7c,_0x28029e={})=>{const _0x5ea8e1=_0x26665e['model']['createSelection'](_0x26665e['model']['document']['selection']);_0x5ea8e1['isCollapsed']&&_0x26665e['model']['modifySelection'](_0x5ea8e1,{'direction':'forward','unit':_0x28029e['unit']});const _0x2cd70d=_0x5ea8e1['getFirstRange'](),_0x53e666=_0x5a166f['fromRange'](_0x2cd70d);let _0xd5adff;_0x230a7c(_0x28029e),_0xd5adff='$graveyard'==_0x53e666['root']['rootName']?_0x26665e['model']['createRange'](_0x2cd70d['start']):_0x26665e['model']['createRange'](_0x53e666['start'],_0x53e666['end']),_0x53e666['detach'](),_0x26665e['model']['enqueueChange'](_0x1b95c1['buffer']['batch'],_0x5f5b36=>{_0x1b95c1['buffer']['lock'](),_0x5f5b36['setSelection'](_0x5f5b36['createRange'](_0xd5adff['end'])),_0x1b95c1['buffer']['unlock']();});}),_0x26665e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x26665e,'merge'),{'priority':'high'}),_0x26665e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4e8c7f,_0x115ebb,_0x3b9b2d)=>{_0x3b9b2d['options']['showSuggestionHighlights']&&Ge(_0x26665e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4e8c7f,_0x115ebb,_0x3b9b2d);},{'priority':'high'}),_0x26665e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5761c8,_0xf373f2,_0x15cf49)=>{const _0x54c9b3=_0x15cf49['mapper']['markerNameToElements'](_0xf373f2['markerName']);if(_0x54c9b3){for(const _0xfc1c94 of _0x54c9b3)_0xfc1c94['is']('uiElement')&&(_0x15cf49['mapper']['unbindElementFromMarkerName'](_0xfc1c94,_0xf373f2['markerName']),_0x15cf49['writer']['remove'](_0xfc1c94));}},{'priority':'high'});}}class Q extends _0x15a662{['afterInit'](){const _0xd423ab=this['editor'];if(!_0xd423ab['plugins']['has']('ListEditing'))return;const _0x5edaa7=_0xd423ab['locale'],_0x14bfd3=_0xd423ab['plugins']['get']('TrackChangesEditing'),_0x30432b=_0xd423ab['plugins']['has']('TodoListEditing'),_0x4dfbff=!!_0xd423ab['config']['get']('list.multiBlock');function _0x4946d5(_0x5a629f){return{'type':'format','content':''+o(_0x5edaa7,'*Set\x20format:*\x20%0',_0x5a629f)};}function _0x3be96a(_0x29cf5c){return{'type':'format','content':''+o(_0x5edaa7,'*Remove\x20format:*\x20%0',_0x29cf5c)};}_0x14bfd3['enableDefaultAttributesIntegration']('numberedList'),_0x14bfd3['enableDefaultAttributesIntegration']('bulletedList'),_0x14bfd3['enableDefaultAttributesIntegration']('customNumberedList'),_0x14bfd3['enableDefaultAttributesIntegration']('customBulletedList'),_0x14bfd3['enableDefaultAttributesIntegration']('indentList'),_0x14bfd3['enableDefaultAttributesIntegration']('outdentList'),_0x14bfd3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x14bfd3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x14bfd3['registerBlockAttribute']('listItemId'),_0x14bfd3['registerBlockAttribute']('listType'),_0x14bfd3['registerBlockAttribute']('listIndent'),_0x4dfbff&&(_0x14bfd3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x14bfd3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x30432b&&(_0x14bfd3['enableDefaultAttributesIntegration']('todoList'),_0x14bfd3['enableDefaultAttributesIntegration']('checkTodoList'),_0x14bfd3['registerBlockAttribute']('todoListChecked'),_0x14bfd3['descriptionFactory']['registerDescriptionCallback'](_0x4711e4=>{const {data:_0x35081a}=_0x4711e4;if(_0x35081a&&'todoListChecked'==_0x35081a['key'])return{'type':'format','content':_0x35081a['newValue']?o(_0x5edaa7,'*Check\x20item*'):o(_0x5edaa7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4ea4ca=>{if(_0x4ea4ca['batch']['isUndo'])return!0x1;let _0x431c76=!0x1;const _0x3aa3b0=_0x14bfd3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5657d2=>'todoListChecked'===_0x14bfd3['_getAttributeKey'](_0x5657d2));for(const _0x1efab7 of _0x3aa3b0){'todo'!=_0x1efab7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x14bfd3['_findSuggestions'](_0x1efab7['getFirstRange'](),'attribute')['find'](_0x1ee43c=>'listType'===_0x14bfd3['_getAttributeKey'](_0x1ee43c['suggestion']))||(_0x4ea4ca['removeMarker'](_0x1efab7['getFirstMarker']()),_0x431c76=!0x0));}return _0x431c76;})),_0x14bfd3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5edaa7,'FORMAT_INDENT'));const _0x463232={'type':'format','content':''};_0x14bfd3['descriptionFactory']['registerDescriptionCallback'](_0x4a7801=>{const {data:_0x5a9ee4}=_0x4a7801;if(!_0x5a9ee4||'listType'!=_0x5a9ee4['key'])return;let _0x386637=_0x4a7801['head'];for(;_0x386637;){if(_0x386637['data']&&(('listStyle'==_0x386637['data']['key']||'listMarkerStyle'==_0x386637['data']['key'])&&(_0x386637['data']['newValue']&&'default'!=_0x386637['data']['newValue']||'default'!=_0x386637['data']['oldValue']&&!_0x5a9ee4['newValue'])||!_0x4dfbff&&_0x386637['data']['key']==m))return _0x463232;_0x386637=_0x386637['next'];}if(null==_0x5a9ee4['newValue'])switch(_0x5a9ee4['oldValue']){case'bulleted':return _0x3be96a(o(_0x5edaa7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3be96a(o(_0x5edaa7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3be96a(o(_0x5edaa7,'ELEMENT_TODO_LIST'));}switch(_0x5a9ee4['newValue']){case'bulleted':return _0x4946d5(o(_0x5edaa7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4946d5(o(_0x5edaa7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4946d5(o(_0x5edaa7,'ELEMENT_TODO_LIST'));}}),_0x14bfd3['descriptionFactory']['registerDescriptionCallback'](_0x39053f=>{const {data:_0x3b1d98}=_0x39053f;if(_0x3b1d98&&'listIndent'==_0x3b1d98['key'])return null==_0x3b1d98['newValue']||null==_0x3b1d98['oldValue']&&0x0==_0x3b1d98['newValue']?_0x463232:void 0x0;}),_0x14bfd3['descriptionFactory']['registerDescriptionCallback'](_0xa2b9ad=>{if('attribute'!=_0xa2b9ad['type'])return;const {data:_0x57f744}=_0xa2b9ad;if(!_0x57f744||'listItemId'!=_0x57f744['key'])return;const _0x3646a9=Be(_0xa2b9ad);return'newValue'==_0x3646a9?{'type':'format','content':o(_0x5edaa7,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3646a9?{'type':'format','content':o(_0x5edaa7,'*Split:*\x20list\x20item')}:_0x463232;}),_0xd423ab['model']['document']['registerPostFixer'](_0x5c0039=>this['listItemIdFixer'](_0x5c0039)),_0xd423ab['model']['document']['registerPostFixer'](_0xaa8c4d=>this['noTrackChangesFixer'](_0xaa8c4d)),_0xd423ab['model']['document']['on']('change:data',(_0x4e9178,_0x2dd69d)=>{if(_0x2dd69d['isUndo']||!_0x2dd69d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3185be){if(_0x3185be['batch']['isUndo']||!_0x3185be['batch']['isLocal'])return!0x1;let _0xf48ea9=!0x1;const _0x5a22d1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f04e6=>_0x4f04e6['data']&&'listItemId'==_0x4f04e6['data']['key'])['filter'](_0x54b1d4=>_0x54b1d4['data']['newValue']&&_0x54b1d4['data']['oldValue']);for(const _0x4f5a05 of _0x5a22d1)Be(_0x4f5a05)||(_0x3185be['removeMarker'](_0x4f5a05['getFirstMarker']()),_0xf48ea9=!0x0);return _0xf48ea9;}['noTrackChangesFixer'](_0x2c4c1a){if(_0x2c4c1a['batch']['isUndo']||!_0x2c4c1a['batch']['isLocal'])return!0x1;const _0x44a133=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x44a133['trackChangesCommand']['value'])return!0x1;let _0x24b1e0=!0x1;const _0x5d0633=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2b6dd7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2dde3a=>'attribute'==_0x2dde3a['type'])['filter'](_0x4e7f69=>_0x5d0633['includes'](_0x4e7f69['attributeKey']));if(0x0==_0x2b6dd7['length'])return _0x24b1e0;for(const _0x4372e4 of _0x2b6dd7){const _0x52c384=_0x44a133['_findSuggestions'](_0x4372e4['range'],'attribute')['filter'](_0xba2b54=>!_0xba2b54['meta']['isNextTo'])['map'](_0xaf489a=>_0xaf489a['suggestion'])['filter'](_0x5ce5fb=>{const _0x55dec8=_0x44a133['_getAttributeKey'](_0x5ce5fb);return _0x5d0633['includes'](_0x55dec8);});if(_0x52c384['length']){for(const _0x360a1a of _0x52c384)_0x2c4c1a['removeMarker'](_0x360a1a['getFirstMarker']());_0x24b1e0=!0x0;}}return _0x24b1e0;}['assureChains'](){const _0x208d90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3248d4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c4a4c;const _0x35f582=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4d732a=>{if(_0x4d732a['data']['oldRange']||!_0x4d732a['data']['newRange'])return null;if(!_0x4d732a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2fc20e}=_0x208d90['_splitMarkerName'](_0x4d732a['name']);if(!_0x208d90['hasSuggestion'](_0x2fc20e))return null;const _0x14aca5=_0x208d90['getSuggestion'](_0x2fc20e);return _0x3248d4['includes'](_0x14aca5['data']['key']);})['map'](_0x5c7844=>{const {id:_0x1b7776}=_0x208d90['_splitMarkerName'](_0x5c7844['name']),_0x2fd1cb=_0x208d90['getSuggestion'](_0x1b7776);return _0x5c4a4c=_0x2fd1cb['attributes']['groupId'],_0x2fd1cb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x35f582['size'])return;const _0x76acd4=_0x208d90['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b3a58=>'attribute'==_0x3b3a58['type']&&_0x3b3a58['data']&&_0x3248d4['includes'](_0x3b3a58['data']['key'])&&_0x3b3a58['attributes']['groupId']!=_0x5c4a4c)['map'](_0x3cea05=>({'listItem':_0x3cea05['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3cea05['attributes']['groupId']})),_0x5a0758=new Set();for(const {groupId:_0x287bb0,listItem:_0x576c5c}of _0x76acd4)_0x35f582['has'](_0x576c5c)&&_0x5a0758['add'](_0x287bb0);for(const _0x23fa1f of _0x208d90['getSuggestions']())_0x5a0758['has'](_0x23fa1f['attributes']['groupId'])&&_0x23fa1f['setAttribute']('groupId',_0x5c4a4c);}['_supportLegacySuggestions'](){const _0x4a3e63=this['editor'],_0x254473=_0x4a3e63['locale'],_0x1b47ea=_0x4a3e63['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1b47ea['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x55afc2,_0x1de900){const _0x2091b6=[];for(let _0x15c3ae of _0x55afc2)_0x15c3ae['start']['nodeAfter']===_0x15c3ae['end']['parent']&&(_0x15c3ae=_0x4a3e63['model']['createRange'](_0x4a3e63['model']['createPositionAt'](_0x15c3ae['start']['nodeAfter'],0x0))),_0x2091b6['push'](_0x15c3ae);_0x4a3e63['model']['change'](_0x1d9bce=>{const _0x264e92=_0x4a3e63['model']['document']['selection'],_0x3f0528=Array['from'](_0x264e92['getRanges']())['map'](_0x12c7dd=>_0x5a166f['fromRange'](_0x12c7dd));_0x1d9bce['setSelection'](_0x2091b6),_0x4a3e63['commands']['get'](_0x1de900['commandName'])['refresh'](),_0x1de900['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a3e63['execute'](_0x1de900['commandName'],..._0x1de900['commandParams']),_0x1d9bce['setSelection'](_0x3f0528);for(const _0x1cefd0 of _0x3f0528)_0x1cefd0['detach']();});}),_0x1b47ea['descriptionFactory']['registerElementLabel'](function(_0x31b317){const _0x3b9095=!_0x4a3e63['model']['schema']['isObject'](_0x31b317),_0x2d8170=_0x31b317['previousSibling'],_0x1590f8=_0x31b317['nextSibling'],_0xc9f928=_0x31b317['getAttribute']('listItemId'),_0x42ab71=!_0x2d8170||_0x2d8170['getAttribute']('listItemId')!==_0xc9f928,_0x4c783b=!_0x1590f8||_0x1590f8['getAttribute']('listItemId')!==_0xc9f928;return _0x3b9095&&Boolean(_0xc9f928)&&_0x42ab71&&_0x4c783b;},_0x1a47cc=>o(_0x254473,'ELEMENT_LIST_ITEM',_0x1a47cc));}['_registerLegacyDescription'](){const _0x5eab0d=this['editor'],_0x4eb0d9=_0x5eab0d['locale'];function _0x13e342(_0x434fec){const _0x1f9f8e=_0x5eab0d['commands']['get']('bulletedList')['value'],_0x39f778=_0x5eab0d['commands']['get']('numberedList')['value'];return'numberedList'===_0x434fec?_0x1f9f8e:_0x39f778;}_0x5eab0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x347a42){if('formatBlock'!=_0x347a42['type'])return;const {data:_0x531162}=_0x347a42;if(!_0x531162)return;let _0x20bd8b,_0xd41eb5,_0x354eb5,_0x1dfbf0;switch(_0x531162['commandName']){case'bulletedList':_0x354eb5=_0x531162['commandParams'][0x0]['forceValue'],_0x1dfbf0=_0x13e342(_0x531162['commandName']),_0x20bd8b=_0x354eb5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1dfbf0&&_0x5eab0d['config']['get']('list.multiBlock')||(_0x20bd8b='*Change\x20to:*\x20%0'),_0xd41eb5={'type':'format','content':o(_0x4eb0d9,_0x20bd8b,o(_0x4eb0d9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x354eb5=_0x531162['commandParams'][0x0]['forceValue'],_0x1dfbf0=_0x13e342(_0x531162['commandName']),_0x20bd8b=_0x354eb5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1dfbf0&&_0x5eab0d['config']['get']('list.multiBlock')||(_0x20bd8b='*Change\x20to:*\x20%0'),_0xd41eb5={'type':'format','content':o(_0x4eb0d9,_0x20bd8b,o(_0x4eb0d9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x20bd8b='*Indent:*\x20%0',_0xd41eb5={'type':'format','content':o(_0x4eb0d9,_0x20bd8b,o(_0x4eb0d9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x20bd8b=function(_0x2a63bd){const _0x39c93b=_0x2a63bd['getFirstRange']();let _0x178b4d=_0x39c93b['start']['nodeAfter'];for(;_0x178b4d&&_0x39c93b['containsItem'](_0x178b4d);){if(_0x178b4d['getAttribute']('listIndent')>0x0)return!0x1;_0x178b4d=_0x178b4d['nextSibling'];}return!0x0;}(_0x347a42)?o(_0x4eb0d9,'*Format:*\x20remove\x20from\x20%0',o(_0x4eb0d9,function(_0xd4435d){return'ELEMENT_'+_0xd4435d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x347a42))):o(_0x4eb0d9,'*Outdent:*\x20%0',o(_0x4eb0d9,'ELEMENT_LIST_ITEM')),_0xd41eb5={'type':'format','content':_0x20bd8b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x531162['multipleBlocks']&&(_0x20bd8b='*Merge:*\x20%0',_0xd41eb5={'type':'deletion','content':o(_0x4eb0d9,_0x20bd8b,o(_0x4eb0d9,'ELEMENT_LIST_ITEM'))});}return _0xd41eb5;});}}function Be(_0x392bf8){let _0x10bf7d=_0x392bf8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x10bf7d;){const _0x226e15=_0x10bf7d['getAttribute']('listItemId');if(!_0x226e15)return!0x1;if(_0x226e15==_0x392bf8['data']['newValue'])return'newValue';if(_0x226e15==_0x392bf8['data']['oldValue'])return'oldValue';_0x10bf7d=_0x10bf7d['previousSibling'];}return!0x1;}class X extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x172dee=this['editor']['config']['get']('list.properties'),_0x58532b=this['editor']['plugins']['get']('TrackChangesEditing');_0x172dee['styles']&&(_0x58532b['enableDefaultAttributesIntegration']('listStyle'),_0x58532b['registerBlockAttribute']('listStyle')),_0x172dee['reversed']&&(_0x58532b['enableDefaultAttributesIntegration']('listReversed'),_0x58532b['registerBlockAttribute']('listReversed')),_0x172dee['startIndex']&&(_0x58532b['enableDefaultAttributesIntegration']('listStart'),_0x58532b['registerBlockAttribute']('listStart'));const _0x161b5a={'type':'format','content':''};_0x58532b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c4da9=this['editor']['locale'];_0x58532b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3c4da9,'FORMAT_LIST_REVERSED')),_0x58532b['descriptionFactory']['registerDescriptionCallback'](_0x20cfeb=>{const {data:_0x520364}=_0x20cfeb;if(_0x520364&&'listReversed'==_0x520364['key'])return null==_0x520364['newValue']||0x0==_0x520364['newValue']&&null==_0x520364['oldValue']?_0x161b5a:void 0x0;}),_0x58532b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3c4da9,'FORMAT_LIST_START')),_0x58532b['descriptionFactory']['registerDescriptionCallback'](_0x2bc762=>{const {data:_0x3f8a23}=_0x2bc762;if(_0x3f8a23&&'listStart'==_0x3f8a23['key'])return null==_0x3f8a23['newValue']||0x1==_0x3f8a23['newValue']&&null==_0x3f8a23['oldValue']?_0x161b5a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x121e38=>{if(_0x121e38['batch']['isUndo'])return!0x1;let _0x166b2d=!0x1;const _0x29b057=_0x58532b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4124aa=>{const _0x2ff8e2=_0x58532b['_getAttributeKey'](_0x4124aa);return'listStart'==_0x2ff8e2||'listReversed'==_0x2ff8e2;});for(const _0x46e720 of _0x29b057){const _0x5a1a3a=_0x46e720['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5a1a3a||'customNumbered'==_0x5a1a3a)continue;_0x58532b['_findSuggestions'](_0x46e720['getFirstRange'](),'attribute')['find'](_0x433aa0=>'listType'==_0x58532b['_getAttributeKey'](_0x433aa0['suggestion']))||(_0x121e38['removeMarker'](_0x46e720['getFirstMarker']()),_0x166b2d=!0x0);}return _0x166b2d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1e45b2){const _0x586d7d=this['editor']['locale'],{data:_0x77cf7d}=_0x1e45b2,_0x18a0ff={'type':'format','content':''};if(!_0x77cf7d||'listStyle'!=_0x77cf7d['key'])return;if(!_0x77cf7d['oldValue'])return'default'==_0x77cf7d['newValue']?_0x18a0ff:{'type':'format','content':''+o(_0x586d7d,'*Set\x20format:*\x20%0',o(_0x586d7d,this['_getTranslationKeyForListStyle'](_0x77cf7d['newValue'])))};if(!_0x77cf7d['newValue']){if('default'==_0x77cf7d['oldValue'])return _0x18a0ff;let _0x32ff37=_0x1e45b2['head'];for(;_0x32ff37;){if(_0x32ff37['data']&&'listType'==_0x32ff37['data']['key']&&_0x32ff37['data']['newValue'])return _0x18a0ff;_0x32ff37=_0x32ff37['next'];}return{'type':'format','content':''+o(_0x586d7d,'*Remove\x20format:*\x20%0',o(_0x586d7d,this['_getTranslationKeyForListStyle'](_0x77cf7d['oldValue'])))};}if('default'!=_0x77cf7d['newValue'])return{'type':'format','content':''+o(_0x586d7d,'*Set\x20format:*\x20%0',o(_0x586d7d,this['_getTranslationKeyForListStyle'](_0x77cf7d['newValue'])))};let _0x3aec13=_0x1e45b2['head'];for(;_0x3aec13;){if(_0x3aec13['data']&&'listType'==_0x3aec13['data']['key']&&_0x3aec13['data']['newValue']&&_0x3aec13['data']['oldValue'])return _0x18a0ff;_0x3aec13=_0x3aec13['next'];}return{'type':'format','content':o(_0x586d7d,'*Set\x20format:*\x20%0',o(_0x586d7d,'ELEMENT_'+_0x1e45b2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e4384=this['editor'],_0x3f6be0=_0x2e4384['locale'];_0x2e4384['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28cdfe=>{if('formatBlock'!=_0x28cdfe['type'])return;const {data:_0x45e26c}=_0x28cdfe;if(!_0x45e26c)return;let _0x46941f,_0x1ab89b;switch(_0x45e26c['commandName']){case'listStyle':_0x46941f='*Change\x20to:*\x20%0',_0x1ab89b={'type':'format','content':o(_0x3f6be0,_0x46941f,o(_0x3f6be0,this['_getTranslationKeyForListStyle'](_0x45e26c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x46941f=_0x45e26c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ab89b={'type':'format','content':o(_0x3f6be0,_0x46941f)};break;case'listStart':_0x46941f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ab89b={'type':'format','content':o(_0x3f6be0,_0x46941f,_0x45e26c['commandParams'][0x0]['startIndex'])};}return _0x1ab89b;});}['_getTranslationKeyForListStyle'](_0x3ca43b){return'ELEMENT_'+function(_0x470395){if(Re['includes'](_0x470395))return'bulleted';if(Fe['includes'](_0x470395))return'numbered';return null;}(_0x3ca43b)['toUpperCase']()+'_LIST_'+_0x3ca43b['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x15a662{['afterInit'](){const _0x117164=this['editor'];_0x117164['commands']['get']('emoji')&&_0x117164['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x15a662{static get['requires'](){return[_0x4a5290];}['init'](){const _0x232fc2=this['editor'],_0x571168=_0x232fc2['plugins']['get']('TrackChangesEditing'),_0x5a8ddb=_0x232fc2['commands']['get']('enter');_0x571168['enableCommand']('enter',()=>{_0x232fc2['model']['change'](_0x540cc6=>{const _0x159364=_0x232fc2['model']['document']['selection'],_0x3622b4=_0x159364['getFirstPosition'](),_0x25863f=_0x5a166f['fromRange'](_0x159364['getFirstRange']());if(_0x5a8ddb['enterBlock'](_0x540cc6)){const _0x418856=_0x232fc2['model']['createPositionAt'](_0x3622b4['parent']['nextSibling'],0x0),_0x3a8345=_0x540cc6['createRange'](_0x3622b4,_0x418856);_0x571168['markInsertion'](_0x3a8345);}else _0x540cc6['setSelection'](_0x540cc6['createRange'](_0x25863f['end']));_0x25863f['detach'](),_0x5a8ddb['fire']('afterExecute',{'writer':_0x540cc6});});}),_0x232fc2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x232fc2,'split'),{'priority':'high'}),_0x232fc2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4e79d6,_0x2b1dd6,_0x24f443)=>{const _0x953d34=_0x24f443['mapper']['markerNameToElements'](_0x2b1dd6['markerName']);if(_0x953d34){for(const _0x27fd02 of _0x953d34)_0x27fd02['hasClass']('ck-suggestion-marker-split')&&(_0x24f443['mapper']['unbindElementFromMarkerName'](_0x27fd02,_0x2b1dd6['markerName']),_0x24f443['writer']['remove'](_0x27fd02));}},{'priority':'high'}),_0x232fc2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x14d953,_0x1d80e2,_0x4e9cbb)=>{_0x4e9cbb['options']['showSuggestionHighlights']&&Ge(_0x232fc2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x14d953,_0x1d80e2,_0x4e9cbb);},{'priority':'high'});}}class tt extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2091d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2091d7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2091d7['enableCommand']('findNext'),_0x2091d7['enableCommand']('findPrevious'),_0x2091d7['enableCommand']('replace'),_0x2091d7['enableCommand']('replaceAll');}['handleFindCommand'](_0x137e00,_0x1ae45f,_0x1a30c1={}){const _0x3df9f8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x137e00(_0x184002=>{let _0x7d6219=('string'==typeof _0x1ae45f?_0x3df9f8['findByTextCallback'](_0x1ae45f,_0x1a30c1):_0x1ae45f)(_0x184002);Array['isArray'](_0x7d6219)&&(_0x7d6219={'results':_0x7d6219,'searchText':'string'==typeof _0x1ae45f?_0x1ae45f:''});const _0x2280a4=_0x7d6219['results']['filter'](_0x29581d=>!0x1===this['_isInDeletionRange'](_0x29581d,_0x184002['item']));return{..._0x7d6219,'results':_0x2280a4};},_0x1a30c1);}['_isInDeletionRange'](_0x15337d,_0x5928fd){const _0x5c0d48=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5928fd,_0x15337d['start']),this['editor']['model']['createPositionAt'](_0x5928fd,_0x15337d['end']));for(const _0x10847e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5c0d48['getIntersection'](_0x10847e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x15a662{['afterInit'](){const _0x1de9ab=this['editor']['locale'],_0x33c904=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x28818e,commandName:_0x53f93b}of eo)this['editor']['plugins']['has'](_0x28818e)&&(_0x33c904['enableDefaultAttributesIntegration'](_0x53f93b),_0x33c904['registerInlineAttribute'](_0x53f93b));_0x33c904['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1de9ab,'FORMAT_FONT_SIZE')),_0x33c904['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1de9ab,'FORMAT_FONT_FAMILY')),_0x33c904['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1de9ab,'FORMAT_FONT_COLOR')),_0x33c904['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1de9ab,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51d8d4=this['editor'],_0x58a111=_0x51d8d4['locale'];_0x51d8d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b139=>{const _0x4f2462=_0x58a111['t'];if('formatInline'!=_0x54b139['type'])return;const {data:_0x58f8be}=_0x54b139;if(null!=_0x58f8be){if('fontSize'==_0x58f8be['commandName']){const _0x9320d4=_0x58f8be['commandParams'][0x0]['value'];if(_0x9320d4){const _0x2e693b=_0x4f2462(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2284b6=>_0x2284b6['model']==_0x9320d4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x58a111,'*Set\x20font\x20size:*\x20%0',_0x2e693b)};}return{'type':'format','content':o(_0x58a111,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x58f8be['commandName']){const _0x271d63=_0x58f8be['commandParams'][0x0]['value'];return _0x271d63?{'type':'format','content':o(_0x58a111,'*Set\x20font\x20family:*\x20%0',_0x271d63)}:{'type':'format','content':o(_0x58a111,'*Reset\x20font\x20family*')};}if('fontColor'==_0x58f8be['commandName']){const _0x428859=_0x58f8be['commandParams'][0x0]['value'];if(_0x428859){const _0x57fa8d=_0x3cca40(this['editor']['config']['get']('fontColor.colors'))['find'](_0x35583c=>_0x35583c['model']==_0x428859);let _0x16cf6f=_0x428859,_0x59c3d0='';return _0x57fa8d&&(_0x16cf6f=_0x57fa8d['label'],_0x59c3d0=_0x4f2462(_0x16cf6f)['toLowerCase']()),{'type':'format','content':o(_0x58a111,'*Set\x20font\x20color:*\x20%0',_0x59c3d0)['trim'](),'color':{'value':_0x428859,'title':_0x59c3d0||_0x16cf6f}};}return{'type':'format','content':o(_0x58a111,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x58f8be['commandName']){const _0x59f1f7=_0x58f8be['commandParams'][0x0]['value'];if(_0x59f1f7){const _0x4f550a=_0x3cca40(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4f330e=>_0x4f330e['model']==_0x59f1f7);let _0x2112ab=_0x59f1f7,_0x42000b='';return _0x4f550a&&(_0x2112ab=_0x4f550a['label'],_0x42000b=_0x4f2462(_0x2112ab)['toLowerCase']()),{'type':'format','content':o(_0x58a111,'*Set\x20font\x20background\x20color:*\x20%0',_0x42000b)['trim'](),'color':{'value':_0x59f1f7,'title':_0x42000b||_0x2112ab}};}return{'type':'format','content':o(_0x58a111,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x15a662{['afterInit'](){const _0x101d60=this['editor'],_0x1ba4e0=_0x101d60['plugins']['get']('TrackChangesEditing'),_0x1ead20=_0x101d60['commands']['get']('copyFormat'),_0x3dfb0e=_0x101d60['commands']['get']('pasteFormat');_0x1ead20&&_0x3dfb0e&&(_0x1ba4e0['enableDefaultAttributesIntegration']('pasteFormat'),_0x1ba4e0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x157067=this['editor'],_0x2d4659=_0x157067['locale'];_0x157067['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15e3e9=>{if('formatBlock'!=_0x15e3e9['type']&&'formatInline'!=_0x15e3e9['type'])return;const {data:_0xb9b628}=_0x15e3e9;if(_0xb9b628&&'pasteFormat'===_0xb9b628['commandName']){const _0x3c93ad=[],_0x41d1bb=_0xb9b628['commandParams'][0x0];for(const [_0x3c9b75,_0x3ed188]of Object['entries'](_0x41d1bb))_0x3c93ad['push'](ro(_0x157067,_0x3c9b75,_0x3ed188));return _0x3c93ad['length']?{'type':'format','content':o(_0x2d4659,'*Set\x20format\x20to:*\x20%0',_0x3c93ad['join'](',\x20'))}:{'type':'format','content':o(_0x2d4659,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3ea1d8,_0xe945bb,_0x28b35b){const _0x4fde46=_0x3ea1d8['locale']['t'],_0x51ff80=_0xe945bb['split'](/(?=[A-Z])/)['join']('\x20'),_0x36b1dc=_0x4fde46(_0x51ff80['charAt'](0x0)['toUpperCase']()+_0x51ff80['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x28b35b)return _0x36b1dc;if('fontColor'===_0xe945bb||'fontBackgroundColor'===_0xe945bb){const _0x3fc34f=_0x3cca40(_0x3ea1d8['config']['get']('fontColor.colors'))['find'](_0x5f3a61=>_0x5f3a61['model']==_0x28b35b);return _0x36b1dc+'\x20('+(_0x3fc34f?_0x4fde46(_0x3fc34f['label'])['toLowerCase']():_0x28b35b)+')';}if('fontSize'===_0xe945bb&&isNaN(parseFloat(_0x28b35b))){const _0x26dbb9=_0x3ea1d8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3ea1d8['config']['get']('fontSize.options'))['find'](_0x4d2fff=>_0x4d2fff['model']==_0x28b35b);return _0x36b1dc+'\x20('+(_0x26dbb9?_0x4fde46(_0x26dbb9['title'])['toLowerCase']():_0x28b35b)+')';}return _0x36b1dc+'\x20('+_0x28b35b+')';}class nt extends _0x15a662{['_headingOptions'];['afterInit'](){const _0x306a99=this['editor'];if(!_0x306a99['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x306a99['config']['get']('heading.options');const _0x3f392b=_0x306a99['locale'],_0x2b9cbd=_0x306a99['plugins']['get']('TrackChangesEditing');_0x2b9cbd['enableDefaultAttributesIntegration']('heading');for(const _0x4c9f90 of this['_headingOptions'])'paragraph'!=_0x4c9f90['model']&&_0x2b9cbd['descriptionFactory']['registerElementLabel'](_0x4c9f90['model'],_0x5f1adf=>{const _0x31675f=this['_getHeadingLevel'](_0x4c9f90['model']);return null!==_0x31675f?_0x3e6adb(_0x5f1adf,_0x31675f):_0xaeb7fc(_0x5f1adf,_0x4c9f90['title']);});function _0x3e6adb(_0x597665,_0x30eca7){return o(_0x3f392b,'ELEMENT_HEADING',[_0x597665,_0x30eca7]);}function _0xaeb7fc(_0x4762e1,_0x76df3c){return o(_0x3f392b,'ELEMENT_HEADING_CUSTOM',[_0x4762e1,_0x76df3c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2de60a=this['editor'],_0x50604a=_0x2de60a['locale'];function _0x40ee25(_0x399e53,_0x5048a4){return o(_0x50604a,'ELEMENT_HEADING_CUSTOM',[_0x399e53,_0x5048a4]);}_0x2de60a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17f4d0=>{if('formatBlock'!=_0x17f4d0['type'])return;const {data:_0x169282}=_0x17f4d0;if(_0x169282&&'heading'==_0x169282['commandName']){const _0x530f15=_0x169282['commandParams'][0x0]['value'],_0xd6da86=this['_getHeadingLevel'](_0x530f15);if(null!==_0xd6da86)return{'type':'format','content':o(_0x50604a,'*Change\x20to:*\x20%0',(_0x3dd87f=0x1,_0x3c69bd=_0xd6da86,o(_0x50604a,'ELEMENT_HEADING',[_0x3dd87f,_0x3c69bd])))};const _0x1f4da2=this['_headingOptions']['find'](_0x239e56=>_0x239e56['model']===_0x530f15)['title'];return{'type':'format','content':o(_0x50604a,'*Change\x20to:*\x20%0',_0x40ee25(0x1,_0x1f4da2))};}var _0x3dd87f,_0x3c69bd;});}['_getHeadingLevel'](_0x3ae667){const _0x4648f6=_0x3ae667['match'](/^heading(\d+)/);if(_0x4648f6)return _0x4648f6[0x1];const _0x5b192e=this['_headingOptions']?.['find'](_0x4bac04=>_0x4bac04['model']==_0x3ae667);if(_0x5b192e&&_0x5b192e['view']){const _0xb67098=_0x5b192e['view'],_0x69cad6=(_0xb67098['name']??_0xb67098)['match'](/^h(\d+)/);if(_0x69cad6)return _0x69cad6[0x1];}return null;}}class st extends _0x15a662{['afterInit'](){const _0x3ced42=this['editor'];if(!_0x3ced42['plugins']['has']('HighlightEditing'))return;const _0x26b18b=_0x3ced42['plugins']['get']('TrackChangesEditing'),_0x552331=_0x3ced42['locale'];_0x26b18b['enableDefaultAttributesIntegration']('highlight'),_0x26b18b['registerInlineAttribute']('highlight'),_0x26b18b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x552331,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7969=this['editor'],_0x5ed9c8=_0x7969['locale'];_0x7969['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb49860=>{if('formatInline'!=_0xb49860['type'])return;const {data:_0x409c48}=_0xb49860;if(_0x409c48&&'highlight'==_0x409c48['commandName']){const _0x17ca85=_0x5ed9c8['t'],_0x34a383=_0x409c48['commandParams'][0x0]['value'];if(_0x34a383){const _0x1a4925=_0x7969['config']['get']('highlight.options')['find'](_0x47a510=>_0x47a510['model']==_0x34a383),_0x107df7=_0x17ca85(_0x1a4925['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ed9c8,'*Set\x20highlight:*\x20%0',_0x107df7),'color':{'value':_0x1a4925['color'],'title':_0x1a4925['title']}};}return{'type':'format','content':o(_0x5ed9c8,'*Remove\x20highlight*',o(_0x5ed9c8,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x15a662{['afterInit'](){const _0xcea3df=this['editor'];if(!_0xcea3df['plugins']['has']('HorizontalLineEditing'))return;_0xcea3df['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x432c04=_0xcea3df['plugins']['get']('TrackChangesEditing'),_0x1c7950=_0xcea3df['locale'];_0x432c04['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3bd3eb=>o(_0x1c7950,'ELEMENT_HORIZONTAL_LINE',_0x3bd3eb)),_0xcea3df['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x19e41d,{writer:_0x4207a4,options:_0x469ffd})=>{if(!_0x469ffd['showSuggestionHighlights'])return null;const _0x174f78=_0x4207a4['createContainerElement']('div'),_0x49c19f=_0x4207a4['createEmptyElement']('hr');return _0x4207a4['addClass']('ck-horizontal-line',_0x174f78),_0x4207a4['insert'](_0x4207a4['createPositionAt'](_0x174f78,0x0),_0x49c19f),_0x174f78;},'converterPriority':'high'});}}class rt extends _0x15a662{['afterInit'](){const _0x4038ec=this['editor'];if(!_0x4038ec['plugins']['has']('HtmlEmbed'))return;const _0x188702=_0x4038ec['plugins']['get']('TrackChangesEditing'),_0x531f80=_0x4038ec['locale'];_0x188702['descriptionFactory']['registerElementLabel']('rawHtml',_0x4e1fe2=>o(_0x531f80,'ELEMENT_HTML_EMBED',_0x4e1fe2)),_0x188702['enableDefaultAttributesIntegration']('htmlEmbed'),_0x188702['registerBlockAttribute']('value'),_0x188702['descriptionFactory']['registerDescriptionCallback'](_0x1fa45f=>{if('attribute'!=_0x1fa45f['type'])return;const {data:_0x1efe69}=_0x1fa45f;if(_0x1efe69&&'value'==_0x1efe69['key']&&_0x1fa45f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x21d716=o(_0x531f80,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x531f80,'*Change\x20%0\x20content*',_0x21d716)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf788cf=this['editor'],_0x5efcaf=_0xf788cf['locale'];_0xf788cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cb2f5=>{if('formatBlock'!=_0x5cb2f5['type'])return;const {data:_0x5b3c78}=_0x5cb2f5;if(_0x5b3c78&&'htmlEmbed'==_0x5b3c78['commandName']){const _0x52456f=o(_0x5efcaf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5efcaf,'*Change\x20%0\x20content*',_0x52456f)};}});}}class at extends _0x15a662{['afterInit'](){const _0x34dd73=this['editor'];if(!_0x34dd73['plugins']['has']('ImageEditing'))return;const _0x3aa456=_0x34dd73['plugins']['get']('TrackChangesEditing'),_0x56a9cc=_0x34dd73['plugins']['get']('ImageUtils'),_0xe5fc2e=_0x34dd73['locale'];_0x3aa456['enableCommand']('insertImage'),_0x3aa456['descriptionFactory']['registerElementLabel']('imageBlock',_0x5dc503=>o(_0xe5fc2e,'ELEMENT_IMAGE',_0x5dc503)),_0x3aa456['descriptionFactory']['registerElementLabel']('imageInline',_0x40c02b=>o(_0xe5fc2e,'ELEMENT_INLINE_IMAGE',_0x40c02b)),_0x3aa456['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe5fc2e,'ELEMENT_CAPTION')),_0x34dd73['plugins']['has']('ImageUploadEditing')&&_0x3aa456['enableCommand']('uploadImage'),_0x34dd73['plugins']['has']('ImageBlockEditing')&&_0x34dd73['plugins']['has']('ImageInlineEditing')&&(_0x3aa456['enableCommand']('imageTypeInline',(_0x31c7e7,_0x54ad3c)=>{const _0x35c319=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']);_0x34dd73['model']['change'](()=>{_0x3aa456['markBlockFormat'](_0x35c319,{'commandName':'imageTypeInline','commandParams':[_0x54ad3c]},[],'convertBlockImageToInline');});}),_0x3aa456['enableCommand']('imageTypeBlock',(_0x5783a7,_0xb2696d)=>{_0x34dd73['model']['change'](_0x345230=>{let _0x1d5d40=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']),_0xd10bea=_0x345230['createRangeOn'](_0x1d5d40);const _0x58d144=_0x405432['fromPosition'](_0xd10bea['start'],'toPrevious'),_0x358494=_0x405432['fromPosition'](_0xd10bea['end'],'toNext');_0x3aa456['forceDefaultExecution'](()=>_0x5783a7(_0xb2696d)),_0x1d5d40=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']),_0xd10bea=_0x345230['createRangeOn'](_0x1d5d40);const _0x57acdc=_0x345230['createRange'](_0x58d144,_0x358494);_0x58d144['detach'](),_0x358494['detach'](),_0x3aa456['markBlockFormat'](_0x1d5d40,{'commandName':'imageTypeInline','commandParams':[_0xb2696d]},[],'convertInlineImageToBlock'),_0x57acdc['start']['isBefore'](_0xd10bea['start'])&&_0x3aa456['markInsertion'](_0x345230['createRange'](_0x57acdc['start'],_0xd10bea['start']),'convertInlineImageToBlock'),_0xd10bea['end']['isBefore'](_0x57acdc['end'])&&_0x3aa456['markInsertion'](_0x345230['createRange'](_0xd10bea['end'],_0x57acdc['end']),'convertInlineImageToBlock');});}),_0x3aa456['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3aa456['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3aa456['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3aa456['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3aa456['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3aa456['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x279607])=>{const _0x111f2c=_0x3aa456['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x182a5c=_0x279607['start'],_0x23d21c=_0x279607['end'];const _0xf6a980=_0x34dd73['model']['schema']['getNearestSelectionRange'](_0x182a5c,'backward'),_0x534e54=_0x34dd73['model']['schema']['getNearestSelectionRange'](_0x23d21c,'forward');_0xf6a980['isCollapsed']&&(_0x182a5c=_0xf6a980['start']),_0x534e54['isCollapsed']&&(_0x23d21c=_0x534e54['end']),_0x111f2c([_0x34dd73['model']['createRange'](_0x182a5c,_0x23d21c)]);}),_0x3aa456['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x554867),_0x3aa456['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x554867)),_0x34dd73['plugins']['has']('ImageCaptionEditing')&&(_0x3aa456['enableCommand']('toggleImageCaption',(_0x529c70,_0x407ae4)=>{const _0x48ef6a=_0x34dd73['plugins']['get']('ImageCaptionUtils');let _0x577d68=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']),_0xcb337=_0x48ef6a['getCaptionFromImageModelElement'](_0x577d68);_0x34dd73['model']['change'](()=>{if(_0xcb337)return void _0x3aa456['markDeletion'](_0x34dd73['model']['createRangeOn'](_0xcb337));const _0x3591e6=_0x56a9cc['isBlockImage'](_0x577d68);_0x529c70(_0x407ae4),_0x577d68=_0x56a9cc['getClosestSelectedImageElement'](_0x34dd73['model']['document']['selection']),_0xcb337=_0x48ef6a['getCaptionFromImageModelElement'](_0x577d68),_0x3aa456['markInsertion'](_0x34dd73['model']['createRangeOn'](_0xcb337),_0x3591e6?null:'imageCaption');});}),_0x3aa456['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x554867));const _0x25a808=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d2543(_0x53fbc8,_0xea512b){const _0x5890b4=_0x25a808['findIndex'](({type:_0x23d1cc,subType:_0x55cdd3})=>_0x53fbc8['type']==_0x23d1cc&&_0x53fbc8['subType']==_0x55cdd3),_0x2b1cda=_0x25a808['findIndex'](({type:_0x257654,subType:_0x4cb302})=>_0xea512b['type']==_0x257654&&_0xea512b['subType']==_0x4cb302);if(_0x5890b4<0x0||_0x2b1cda<0x0)return!0x1;const _0x4beafa=_0x53fbc8['getFirstRange'](),_0x5b3087=_0xea512b['getFirstRange']();if((0x0==_0x5890b4||0x1==_0x5890b4)&&0x2==_0x2b1cda&&_0x4beafa['isIntersecting'](_0x5b3087))return!0x0;if(0x2==_0x5890b4&&0x3==_0x2b1cda){const _0x32f742=_0x3aa456['_findSuggestions'](_0x4beafa,'insertion')['filter'](({suggestion:_0x1a0013,meta:_0x5e149d})=>_0x5e149d['isOwn']&&'convertInlineImageToBlock'==_0x1a0013['subType']);if(_0x32f742['length']>0x1&&_0x5b3087['end']['isEqual'](_0x4beafa['start']))return!0x0;if(0x1==_0x32f742['length']&&(_0x4beafa['start']['isEqual'](_0x5b3087['end'])||_0x4beafa['end']['isEqual'](_0x5b3087['start'])))return!0x0;}if(0x3==_0x5890b4&&0x3==_0x2b1cda&&_0x4beafa['start']['isBefore'](_0x5b3087['start'])){const _0x1ac221=_0x4beafa['end']['nodeAfter'],_0x174caa=_0x5b3087['start']['nodeBefore'];return _0x56a9cc['isBlockImage'](_0x1ac221)&&_0x1ac221===_0x174caa;}return!0x1;}function _0x554867(_0x1cc1df,_0x10912f){return _0x3d2543(_0x1cc1df,_0x10912f)?[_0x1cc1df,_0x10912f]:_0x3d2543(_0x10912f,_0x1cc1df)?[_0x10912f,_0x1cc1df]:null;}_0x34dd73['plugins']['has']('ImageResize')&&(_0x3aa456['enableDefaultAttributesIntegration']('resizeImage'),_0x3aa456['registerBlockAttribute']('resizedWidth'),_0x3aa456['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe5fc2e,'FORMAT_IMAGE_SIZE'))),_0x34dd73['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3aa456['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3aa456['registerBlockAttribute']('alt')),_0x34dd73['plugins']['has']('PictureEditing')&&(_0x3aa456['registerBlockAttribute']('sources'),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x338f81=>{if('attribute'!=_0x338f81['type'])return;const {data:_0x9ddd17}=_0x338f81;return _0x9ddd17&&'sources'==_0x9ddd17['key']?{'type':'format','content':''}:void 0x0;})),_0x34dd73['plugins']['has']('ImageSizeAttributes')&&(_0x3aa456['registerBlockAttribute']('width'),_0x3aa456['registerBlockAttribute']('height'),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0xa32298=>{if('attribute'!=_0xa32298['type'])return;const {data:_0x1cf759}=_0xa32298;return!_0x1cf759||'width'!=_0x1cf759['key']&&'height'!=_0x1cf759['key']?void 0x0:{'type':'format','content':''};})),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x1e30dd=>{if(!!_0x25a808['find'](({type:_0x437fef,subType:_0x1c4a16})=>_0x1e30dd['type']==_0x437fef&&_0x1e30dd['subType']==_0x1c4a16))return _0x1e30dd['previous']?{}:void 0x0;}),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x371dd7=>{if('insertion'==_0x371dd7['type']||'deletion'==_0x371dd7['type']){const _0x46e1e3=_0x371dd7['getContainedElement']();if(_0x46e1e3&&_0x46e1e3['is']('element','caption'))return{'type':'insertion'==_0x371dd7['type']?'addObject':'removeObject','element':_0x46e1e3,'quantity':0x1};}}),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x1b24de=>'formatBlock'==_0x1b24de['type']&&'convertInlineImageToBlock'==_0x1b24de['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1b24de['type']&&'convertBlockImageToInline'==_0x1b24de['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3aa456['descriptionFactory']['registerDescriptionCallback'](_0x2b44f9=>{if('attribute'!=_0x2b44f9['type'])return;const {data:_0x1e27f6}=_0x2b44f9;if(!_0x1e27f6||'alt'!=_0x1e27f6['key'])return;const _0x130a68=_0x1e27f6['newValue'];return _0x130a68?{'type':'format','content':o(_0xe5fc2e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x130a68+'\x22')}:{'type':'format','content':o(_0xe5fc2e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2c68=this['editor'],_0x365803=_0x1f2c68['locale'];_0x1f2c68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x423ddf=>{if('formatBlock'!=_0x423ddf['type']&&'formatInline'!=_0x423ddf['type'])return;const {data:_0x204868}=_0x423ddf;if(_0x204868){if('imageTextAlternative'==_0x204868['commandName']){const _0x33f9e7=_0x204868['commandParams'][0x0]['newValue'];return _0x33f9e7?{'type':'format','content':o(_0x365803,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33f9e7+'\x22')}:{'type':'format','content':o(_0x365803,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x204868['commandName']){const _0x4b07a7=_0x204868['commandParams'][0x0]['width'];return _0x4b07a7?{'type':'format','content':o(_0x365803,'*Set\x20image\x20width:*\x20%0',_0x4b07a7)}:{'type':'format','content':o(_0x365803,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3e6ae3=this['editor']['locale'],_0x480fef=this['editor']['plugins']['get']('TrackChangesEditing');_0x480fef['enableDefaultAttributesIntegration']('replaceImageSource'),_0x480fef['registerBlockAttribute']('src'),_0x480fef['descriptionFactory']['registerDescriptionCallback'](_0x1c7d22=>{if('attribute'!=_0x1c7d22['type'])return;const {data:_0x30b312}=_0x1c7d22;return _0x30b312&&'src'==_0x30b312['key']?_0x30b312['newValue']&&_0x30b312['oldValue']?{'type':'format','content':o(_0x3e6ae3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x214a67=this['editor']['plugins']['get']('TrackChangesEditing');_0x214a67['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x214a67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x214a67['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x214a67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f95d3=this['editor'],_0x49c493=_0x4f95d3['locale'];_0x4f95d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25e549=>{if('formatBlock'!=_0x25e549['type']&&'formatInline'!=_0x25e549['type'])return;const {data:_0x19b41a}=_0x25e549;if(!_0x19b41a||'replaceImageSource'!=_0x19b41a['commandName'])return;return{'type':'format','content':o(_0x49c493,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x15a662{['afterInit'](){const _0x111465=this['editor'];if(!_0x111465['plugins']['has']('ImageStyleEditing'))return;const _0x181893=_0x111465['plugins']['get']('TrackChangesEditing'),_0x16e2be=_0x111465['plugins']['get']('ImageUtils'),_0x86a73={};_0x181893['enableCommand']('imageStyle',(_0x4a5e32,_0x2f6dee)=>{const _0x549148=_0x111465['plugins']['get']('Users')['me'],_0x40c22e=_0x111465['commands']['get']('imageStyle');let _0x3e67d1=_0x16e2be['getClosestSelectedImageElement'](_0x111465['model']['document']['selection']),_0x520aec=_0x111465['model']['createRangeOn'](_0x3e67d1),_0x49e637=_0x40c22e['value'];if(_0x49e637==_0x2f6dee['value'])return;const _0x2bf096={'commandName':'imageStyle','commandParams':[_0x2f6dee],'formatGroupId':_0xb1da02()};_0x111465['model']['change'](()=>{if(_0x181893['getSuggestions']()['filter'](_0x21db1a=>_0x21db1a['isInContent']&&_0x549148==_0x21db1a['author']&&('formatBlock'==_0x21db1a['type']||'formatInline'==_0x21db1a['type'])&&('imageStylePreApply'==_0x21db1a['subType']||'imageStylePostApply'==_0x21db1a['subType'])&&_0x21db1a['getFirstRange']()['isEqual'](_0x520aec))['forEach'](_0x1131e9=>_0x181893['discardSuggestion'](_0x1131e9['head'])),_0x3e67d1=_0x16e2be['getClosestSelectedImageElement'](_0x111465['model']['document']['selection']),_0x520aec=_0x111465['model']['createRangeOn'](_0x3e67d1),_0x40c22e['refresh'](),_0x111465['commands']['get']('imageTypeInline')['refresh'](),_0x111465['commands']['get']('imageTypeBlock')['refresh'](),_0x49e637=_0x40c22e['value'],_0x49e637!=_0x2f6dee['value'])return _0x16e2be['isInlineImage'](_0x3e67d1)&&_0x40c22e['shouldConvertImageType'](_0x2f6dee['value'],_0x3e67d1)?(_0x4a5e32({..._0x2f6dee,'setImageSizes':!0x1}),_0x3e67d1=_0x16e2be['getClosestSelectedImageElement'](_0x111465['model']['document']['selection']),void _0x181893['markBlockFormat'](_0x3e67d1,{..._0x2bf096,'commandReversedParams':[{'value':_0x49e637||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x16e2be['isBlockImage'](_0x3e67d1)?_0x181893['markBlockFormat'](_0x3e67d1,_0x2bf096,[],'imageStylePostApply'):_0x181893['markInlineFormat'](_0x520aec,_0x2bf096,'imageStylePostApply'));});});for(const _0x48325a of _0x111465['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x86a73[_0x48325a['name']]=_0x48325a['title']['toLowerCase']();_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x181893['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x41f72a])=>{_0x16e2be['setImageNaturalSizeAttributes'](_0x41f72a['getContainedElement']());}),_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x53c4c1,_0x17c0b6)=>{_0x181893['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x53c4c1,{'commandName':_0x17c0b6['commandName'],'commandParams':_0x17c0b6['commandReversedParams']});}),_0x181893['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x592099,_0x50d180){if(_0x48b1c5(_0x592099,_0x50d180))return[_0x592099,_0x50d180];if(_0x48b1c5(_0x50d180,_0x592099))return[_0x50d180,_0x592099];return null;});const _0xae8041=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x48b1c5(_0x311a9e,_0x1318b2){const _0x5dadfa=_0xae8041['findIndex'](({type:_0x4cc4c1,subType:_0x44d7b2})=>_0x311a9e['type']==_0x4cc4c1&&_0x311a9e['subType']==_0x44d7b2),_0x375150=_0xae8041['findIndex'](({type:_0x45b1ed,subType:_0x31de81})=>_0x1318b2['type']==_0x45b1ed&&_0x1318b2['subType']==_0x31de81);if(_0x5dadfa<0x0||_0x375150<0x0)return!0x1;const _0x1c0b33=_0x311a9e['getFirstRange'](),_0xc536a8=_0x1318b2['getFirstRange']();if((0x0==_0x5dadfa||0x1==_0x5dadfa)&&0x2==_0x375150&&_0x1c0b33['isIntersecting'](_0xc536a8))return!0x0;if(0x2==_0x5dadfa&&0x3==_0x375150){const _0x24daed=_0x181893['_findSuggestions'](_0x1c0b33,'insertion')['filter'](({suggestion:_0x3deeb3,meta:_0x42357b})=>_0x42357b['isOwn']&&'convertInlineImageToBlock'==_0x3deeb3['subType']);if(_0x24daed['length']>0x1&&_0xc536a8['end']['isEqual'](_0x1c0b33['start']))return!0x0;if(0x1==_0x24daed['length']&&(_0x1c0b33['start']['isEqual'](_0xc536a8['end'])||_0x1c0b33['end']['isEqual'](_0xc536a8['start'])))return!0x0;}if(0x3==_0x5dadfa&&0x3==_0x375150&&_0x1c0b33['start']['isBefore'](_0xc536a8['start'])){const _0x422847=_0x1c0b33['end']['nodeAfter'],_0x21c26c=_0xc536a8['start']['nodeBefore'];return _0x16e2be['isBlockImage'](_0x422847)&&_0x422847===_0x21c26c;}return!0x1;}_0x111465['model']['document']['registerPostFixer'](()=>{let _0x3c7a6d=!0x1;const _0x52b6c9=Array['from'](_0x111465['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49b8b8,data:_0x36d1b2}of _0x52b6c9){const {group:_0x1b2f6c,type:_0x37a0c6,subType:_0x2dd5b2,id:_0x4c143d}=_0x181893['_splitMarkerName'](_0x49b8b8);if('suggestion'==_0x1b2f6c&&_0x181893['hasSuggestion'](_0x4c143d)){if('formatBlock'==_0x37a0c6&&('imageStylePreApply'==_0x2dd5b2||'imageStylePostApply'==_0x2dd5b2)){const _0x31af58=_0x181893['getSuggestion'](_0x4c143d);if(_0x36d1b2['newRange']){const _0x163270=_0x31af58['getFirstRange']()['getContainedElement']();if(_0x16e2be['isBlockImage'](_0x163270))continue;_0x181893['discardSuggestion'](_0x31af58),_0x3c7a6d=!0x0;}}if('insertion'==_0x37a0c6&&'imageCaption'==_0x2dd5b2&&!_0x36d1b2['newRange']){const _0x5589ed=_0x181893['getSuggestion'](_0x4c143d);_0x5589ed['next']&&_0x5589ed['next']['isInContent']&&(_0x181893['discardSuggestion'](_0x5589ed['next']),_0x3c7a6d=!0x0);}}}return _0x3c7a6d;}),this['_registerLegacyDescription'](_0x86a73);}['_registerLegacyDescription'](_0x394d69){const _0x9bb01e=this['editor'],_0x323e7b=_0x9bb01e['locale'];_0x9bb01e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x598262=>{if('formatBlock'!=_0x598262['type']&&'formatInline'!=_0x598262['type'])return;const {data:_0x435a22}=_0x598262;if(!_0x435a22||'imageStyle'!=_0x435a22['commandName'])return;const _0x20382a=_0x435a22['commandParams'][0x0]['value'];return _0x5e4a9a('side'===_0x20382a?o(_0x323e7b,'FORMAT_SIDE_IMAGE'):_0x394d69[_0x20382a]||_0x20382a);function _0x5e4a9a(_0x2dd97b){return{'type':'format','content':o(_0x323e7b,'*Format:*\x20%0',_0x2dd97b)};}});}}class ft extends _0x15a662{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1f5013){super(_0x1f5013),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x576edb=this['editor'],_0x50757a=_0x576edb['commands']['get']('importWord'),_0x4b1ce0=_0x576edb['commands']['get']('trackChanges');_0x50757a&&(_0x50757a['on']('execute',(_0x2a8d64,[,_0xb848e9])=>{this['_trackChangesValueDuringImport']=_0x4b1ce0['value'],_0xb848e9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x50757a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x50757a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4b1ce0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x576edb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1fb008,_0x29a439){const {suggestions:_0x46a96}=_0x29a439,_0x44cdfa=this['editor']['commands']['get']('trackChanges'),_0x9813e8=_0x44cdfa['value'];this['_trackChangesValueDuringImport']!==_0x9813e8&&(_0x44cdfa['execute'](),this['_trackChangesExecuted']=!0x0),_0x46a96&&_0x46a96['forEach'](({id:_0x2191b2,type:_0x329d05,author:_0x5df06e,created_at:_0x3b8c6d})=>{const _0xa505be={'id':_0x2191b2,'type':_0x329d05,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5df06e,'createdAt':_0x3b8c6d?new Date(_0x3b8c6d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xa505be);});}}class ht extends _0x15a662{['afterInit'](){const _0x5fc574=this['editor'],_0x599890=_0x5fc574['plugins']['get']('TrackChangesEditing');if(_0x5fc574['plugins']['has']('IndentEditing')&&(_0x599890['enableCommand']('indent'),_0x599890['enableCommand']('outdent')),_0x5fc574['plugins']['has']('IndentBlock')){for(const _0x3e5f45 of['indentBlock','outdentBlock'])_0x599890['enableDefaultAttributesIntegration'](_0x3e5f45);}const _0x50bbc0=_0x5fc574['locale'];_0x599890['registerBlockAttribute']('blockIndent'),_0x599890['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x50bbc0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a7151=this['editor'],_0x6d2825=_0x3a7151['locale'],_0xfade2=_0x3a7151['plugins']['get']('TrackChangesEditing');_0xfade2['descriptionFactory']['registerDescriptionCallback'](_0x54d726=>{if('formatBlock'!=_0x54d726['type'])return;const {data:_0x3f1e28}=_0x54d726;if(!_0x3f1e28)return;if('indentBlock'!=_0x3f1e28['commandName']&&'outdentBlock'!=_0x3f1e28['commandName'])return;const _0x483811=_0x54d726['getItems']()[0x0],_0xbf3e47=_0xfade2['descriptionFactory']['getItemLabel'](_0x483811);return'indentBlock'==_0x3f1e28['commandName']?{'type':'format','content':o(_0x6d2825,'*Indent:*\x20%0',_0xbf3e47)}:'outdentBlock'==_0x3f1e28['commandName']?{'type':'format','content':o(_0x6d2825,'*Outdent:*\x20%0',_0xbf3e47)}:void 0x0;});}}class gt extends _0x15a662{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x15a662{['afterInit'](){const _0x5c54c2=this['editor'];if(!_0x5c54c2['plugins']['has']('LinkEditing'))return;const _0x4cd19b=_0x5c54c2['plugins']['get']('TrackChangesEditing'),_0x484779=_0x5c54c2['commands']['get']('link');_0x4cd19b['enableDefaultAttributesIntegration']('link'),_0x4cd19b['enableDefaultAttributesIntegration']('unlink'),_0x4cd19b['registerInlineAttribute']('linkHref');for(const _0x5314ee of _0x484779['manualDecorators'])_0x4cd19b['registerInlineAttribute'](_0x5314ee['id']),_0x4cd19b['descriptionFactory']['registerAttributeLabel'](_0x5314ee['id'],'link\x20('+_0x5314ee['label']['toLowerCase']()+')');_0x4cd19b['descriptionFactory']['registerDescriptionCallback'](_0x2710ae=>{if('attribute'!=_0x2710ae['type'])return;const {data:_0x339906}=_0x2710ae;if(!_0x339906||'linkHref'!=_0x339906['key'])return;const _0x18013b=_0x339906['newValue'],_0x20bffd=_0x5c54c2['locale'];return{'type':'format','content':null==_0x18013b?o(_0x20bffd,'*Remove\x20link*'):o(_0x20bffd,'*Set\x20link:*\x20%0','\x22'+_0x18013b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5353c5=this['editor'],_0xe40880=_0x5353c5['locale'];_0x5353c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a2c2=>{if('formatInline'!=_0x47a2c2['type'])return;const {data:_0x3e5ef8}=_0x47a2c2;if(_0x3e5ef8){if('link'==_0x3e5ef8['commandName']){const _0x1fd587=_0x3e5ef8['commandParams'][0x0];return{'type':'format','content':o(_0xe40880,'*Set\x20link:*\x20%0','\x22'+_0x1fd587+'\x22')};}return'unlink'==_0x3e5ef8['commandName']?{'type':'format','content':o(_0xe40880,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x15a662{['afterInit'](){const _0x1007b5=this['editor'],_0x3f1d5d=_0x1007b5['locale'];if(!_0x1007b5['plugins']['has']('LegacyListEditing'))return;const _0x6bee62=_0x1007b5['plugins']['get']('TrackChangesEditing'),_0x2ccc4b=_0x1007b5['plugins']['has']('LegacyTodoListEditing');function _0x2a4f21(_0x32621b){return()=>{const _0x1102ed=_0x1007b5['model']['document']['selection'],_0x176014=_0x1007b5['commands']['get'](_0x32621b);if(_0x176014['value'])return void _0x1007b5['execute']('paragraph',{});const _0x212817=_0x32621b['slice'](0x0,-0x4),_0x201372=function(_0x10edfa,_0x44da00,_0x2610d4){let _0x3a91db=Array['from'](_0x10edfa)['filter'](_0x157034=>function(_0x4253ea,_0x374562){return _0x374562['checkChild'](_0x4253ea['parent'],'listItem')&&!_0x374562['isObject'](_0x4253ea);}(_0x157034,_0x2610d4));_0x3a91db=_0x3a91db['filter'](_0x262ccf=>!_0x262ccf['is']('element','listItem')||_0x262ccf['getAttribute']('listType')!=_0x44da00);const _0x5ab646=new Set();for(const _0x5708dc of _0x3a91db)_0x5708dc['is']('element','listItem')?_0x5ab646['add'](Ne(_0x5708dc)):_0x5ab646['add'](_0x5708dc);return Array['from'](_0x5ab646);}(_0x1102ed['getSelectedBlocks'](),_0x212817,_0x1007b5['model']['schema']);_0x1007b5['model']['change'](()=>{for(const _0x48db44 of _0x201372)_0x6bee62['markBlockFormat'](_0x48db44,{'commandName':_0x32621b,'commandParams':[{'forceValue':!_0x176014['value']}],'formatGroupId':'blockName'},Se(_0x48db44));});};}function _0x209462(_0xff22ba){return()=>{const _0x27f441=function(_0x2f97af){let _0xe7a71b=Array['from'](_0x2f97af);const _0x2b4cd5=_0xe7a71b['findIndex'](_0x529876=>'listItem'!=_0x529876['name']);return _0x2b4cd5>-0x1&&(_0xe7a71b=_0xe7a71b['slice'](0x0,_0x2b4cd5)),_0xe7a71b;}(_0x1007b5['model']['document']['selection']['getSelectedBlocks']()),_0x53cadf=_0x1007b5['model']['createRange'](_0x1007b5['model']['createPositionAt'](_0x27f441[0x0],'before'),_0x1007b5['model']['createPositionAt'](_0x27f441[_0x27f441['length']-0x1],'end'));_0x1007b5['model']['change'](()=>{_0x6bee62['markBlockFormat'](_0x53cadf,{'commandName':_0xff22ba,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e05a6){const _0x3232cd=new Set();for(const _0x4a0ed6 of _0x3e05a6){let _0x57d9ff=_0x4a0ed6['nextSibling'];for(;_0x57d9ff&&_0x57d9ff['getAttribute']('listIndent')>_0x4a0ed6['getAttribute']('listIndent');)_0x3232cd['add'](_0x57d9ff),_0x57d9ff=_0x57d9ff['nextSibling'];}return Array['from'](_0x3232cd);}(_0x27f441));});};}_0x6bee62['enableCommand']('numberedList',_0x2a4f21('numberedList')),_0x6bee62['enableCommand']('bulletedList',_0x2a4f21('bulletedList')),_0x2ccc4b&&_0x6bee62['enableCommand']('todoList',_0x2a4f21('todoList')),_0x6bee62['enableCommand']('indentList',_0x209462('indentList')),_0x6bee62['enableCommand']('outdentList',_0x209462('outdentList')),_0x2ccc4b&&_0x6bee62['enableCommand']('checkTodoList',()=>{const _0x3bf80e=_0x1007b5['commands']['get']('checkTodoList'),_0x3dfe47=Array['from'](_0x3bf80e['_selectedElements']);_0x3dfe47['filter'](_0x3cf5ae=>_0x3cf5ae['getAttribute']('todoListChecked')!=_0x3bf80e['value']),_0x1007b5['model']['change'](()=>{for(const _0x274864 of _0x3dfe47)_0x6bee62['markBlockFormat'](_0x274864,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3bf80e['value']}]});});}),_0x6bee62['descriptionFactory']['registerElementLabel']('listItem',_0x2d162a=>o(_0x3f1d5d,'ELEMENT_LIST_ITEM',_0x2d162a)),_0x6bee62['descriptionFactory']['registerDescriptionCallback'](_0x417b70=>{if('formatBlock'!=_0x417b70['type']&&'formatInline'!=_0x417b70['type'])return;const {data:_0x40fa38}=_0x417b70;if(_0x40fa38){if('numberedList'==_0x40fa38['commandName']||'bulletedList'==_0x40fa38['commandName']||'todoList'==_0x40fa38['commandName'])switch(_0x40fa38['commandName']['replace']('List','')){case'bulleted':return _0x47246f(o(_0x3f1d5d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47246f(o(_0x3f1d5d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47246f(o(_0x3f1d5d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x40fa38['commandName'])return{'type':'format','content':o(_0x3f1d5d,'*Indent:*\x20%0',o(_0x3f1d5d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x40fa38['commandName'])return{'type':'format','content':o(_0x3f1d5d,'*Outdent:*\x20%0',o(_0x3f1d5d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x40fa38['commandName'])return _0x40fa38['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f1d5d,'*Check\x20item*')}:{'type':'format','content':o(_0x3f1d5d,'*Uncheck\x20item*')};}function _0x47246f(_0x2abd64){return{'type':'format','content':o(_0x3f1d5d,'*Change\x20to:*\x20%0',_0x2abd64)};}});}}function Ne(_0xf99f89){const _0x283bdc=_0xf99f89['getAttribute']('listIndent');if(0x0==_0x283bdc)return _0xf99f89;let _0xe938b9=_0xf99f89;for(;_0xf99f89['previousSibling']&&_0xf99f89['previousSibling']['is']('element','listItem');){const _0x43f983=_0xf99f89['previousSibling']['getAttribute']('listIndent');if(_0x43f983==_0x283bdc)_0xe938b9=_0xf99f89['previousSibling'];else{if(_0x43f983<_0x283bdc)break;}_0xf99f89=_0xf99f89['previousSibling'];}return _0xe938b9;}function Se(_0x43188e){const _0x33f391=[];if(_0x43188e['is']('element','listItem')&&_0x43188e['getAttribute']('listIndent')>0x0){let _0x1248cb=_0x43188e['nextSibling'];for(;_0x1248cb&&'listItem'==_0x1248cb['name']&&_0x1248cb['getAttribute']('listIndent')==_0x43188e['getAttribute']('listIndent');)_0x33f391['push'](_0x1248cb),_0x1248cb=_0x1248cb['nextSibling'];}return _0x33f391;}class mt extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4bcc4f=this['editor']['config']['get']('list.properties'),_0x151b0b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4bcc4f['styles']&&_0x151b0b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4bcc4f['reversed']&&_0x151b0b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4bcc4f['startIndex']&&_0x151b0b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x151b0b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2db533,_0x77177={}){const _0x19e532=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9c0915=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x19e532['markMultiRangeBlockFormat'](_0x9c0915,{'commandName':'listStyle','commandParams':[{'type':_0x77177['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x155147,_0x895890={}){const _0x5d63d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d6581=this['_getSuggestionBlocks'](_0x33a89f=>_0x33a89f['is']('element','listItem')&&'numbered'===_0x33a89f['getAttribute']('listType'));if(_0x3d6581['length']<0x1)return;const _0x262041=_0x3d6581['map'](_0x26a802=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26a802,'before'),this['editor']['model']['createPositionAt'](_0x26a802,0x0)));this['editor']['model']['change'](()=>{_0x5d63d1['markMultiRangeBlockFormat'](_0x262041,{'commandName':'listReversed','commandParams':[{'reversed':_0x895890['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2eea3d,_0x1bccaf={}){const _0x5077b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f4c79=this['_getSuggestionBlocks'](_0x5b063f=>_0x5b063f['is']('element','listItem')&&'numbered'===_0x5b063f['getAttribute']('listType'));if(_0x1f4c79['length']<0x1)return;const _0x3ea37e=_0x1f4c79['map'](_0x55382c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55382c,'before'),this['editor']['model']['createPositionAt'](_0x55382c,0x0)));this['editor']['model']['change'](()=>{_0x5077b4['markMultiRangeBlockFormat'](_0x3ea37e,{'commandName':'listStart','commandParams':[{'startIndex':_0x1bccaf['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x33fce5){if('formatBlock'!=_0x33fce5['type']&&'formatInline'!=_0x33fce5['type'])return;const _0x3a30cf=this['editor']['locale'],{data:_0x465229}=_0x33fce5;if(!_0x465229)return;let _0xd668be,_0x216520;switch(_0x465229['commandName']){case'listStyle':_0xd668be='*Change\x20to:*\x20%0',_0x216520={'type':'format','content':o(_0x3a30cf,_0xd668be,o(_0x3a30cf,this['_getTranslationKeyForListStyle'](_0x465229['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd668be=_0x465229['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x216520={'type':'format','content':o(_0x3a30cf,_0xd668be)};break;case'listStart':_0xd668be='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x216520={'type':'format','content':o(_0x3a30cf,_0xd668be,_0x465229['commandParams'][0x0]['startIndex'])};}return _0x216520;}['_getSuggestionBlocksForListStyle'](){const _0x40384d=this['editor']['plugins']['get']('LegacyListUtils');let _0xe9983b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xe9983b[0x0]?.['is']('element','listItem')&&_0xe9983b['unshift'](..._0x40384d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xe9983b[_0xe9983b['length']-0x1]?.['is']('element','listItem')&&_0xe9983b['push'](..._0x40384d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xe9983b=[...new Set(_0xe9983b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xe9983b=_0xe9983b['filter'](_0x3ef709=>_0x3ef709['is']('element','listItem'))),_0xe9983b;}['_getSuggestionBlocks'](_0x157efc){const _0x1ea20b=this['editor']['plugins']['get']('LegacyListUtils');let _0x34f488=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x157efc)['map'](_0x27a258=>{const _0x412e51=this['editor']['model']['createPositionAt'](_0x27a258,0x0);return[..._0x1ea20b['getSiblingNodes'](_0x412e51,'backward'),..._0x1ea20b['getSiblingNodes'](_0x412e51,'forward')];})['flat']();return _0x34f488=[...new Set(_0x34f488)],_0x34f488;}['_getTranslationKeyForListStyle'](_0x1ab466){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ab466)||'default')['toUpperCase']()+'_LIST_'+_0x1ab466['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x15a662{['afterInit'](){const _0xac2072=this['editor'];if(!_0xac2072['plugins']['has']('MediaEmbedEditing'))return;const _0x39531d=_0xac2072['plugins']['get']('TrackChangesEditing'),_0x45bb3d=_0xac2072['locale'];_0x39531d['enableCommand']('mediaEmbed'),_0x39531d['descriptionFactory']['registerElementLabel']('media',_0x35545c=>o(_0x45bb3d,'ELEMENT_MEDIA',_0x35545c)),_0xac2072['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x261644,{writer:_0x4706d4,options:_0x3ffbb8})=>{if(_0x3ffbb8['showSuggestionHighlights'])return _0x4706d4['createEmptyElement']('div');},'converterPriority':'high'}),_0xac2072['data']['downcastDispatcher']['on']('attribute:url:media',(_0x14084a,_0x801d33,_0xa9b25e)=>{_0xa9b25e['options']['showSuggestionHighlights']&&_0x14084a['stop']();},{'priority':'high'});}}class kt extends _0x15a662{['afterInit'](){const _0x351525=this['editor'];_0x351525['plugins']['has']('MentionEditing')&&_0x351525['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x15a662{['afterInit'](){const _0x26e022=this['editor'];if(!_0x26e022['plugins']['has']('MergeFieldsEditing'))return;const _0x1ab5ee=_0x26e022['plugins']['get']('TrackChangesEditing'),_0x214033=_0x26e022['locale'];_0x1ab5ee['enableCommand']('insertMergeField'),_0x1ab5ee['enableCommand']('insertMergeFieldBlock'),_0x1ab5ee['enableCommand']('insertMergeFieldImage'),_0x1ab5ee['descriptionFactory']['registerElementLabel']('mergeField',_0x55d6c8=>o(_0x214033,'ELEMENT_MERGE_FIELD',_0x55d6c8)),_0x1ab5ee['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15e0c8=>o(_0x214033,'ELEMENT_MERGE_FIELD',_0x15e0c8)),_0x1ab5ee['descriptionFactory']['registerDescriptionCallback'](_0x1d3cea=>{if('insertion'!=_0x1d3cea['type']&&'deletion'!=_0x1d3cea['type'])return;const _0x3b4928=_0x1d3cea['getContainedElement']();if(null==_0x3b4928)return;const _0x59e9cd=_0x26e022['plugins']['get']('MergeFieldsEditing');let _0x51033a;switch(_0x59e9cd['getMergeFieldType'](_0x3b4928)){case null:return;case'image':{const _0x24a2b4=_0x59e9cd['unwrapAffixes'](_0x3b4928['getAttribute']('src'));_0x51033a=_0x59e9cd['getLabel'](_0x24a2b4)||_0x24a2b4;break;}default:{const _0x7e0b50=_0x3b4928['getAttribute']('id');_0x51033a=_0x59e9cd['getLabel'](_0x7e0b50)||_0x7e0b50;break;}}return'insertion'==_0x1d3cea['type']?{'type':'insertion','content':o(_0x214033,'*Insert:*\x20%0','\x22'+_0x51033a+'\x22\x20'+o(_0x214033,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x214033,'*Remove:*\x20%0','\x22'+_0x51033a+'\x22\x20'+o(_0x214033,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x15a662{['afterInit'](){const _0x77881a=this['editor'],_0x3e7bd7=_0x77881a['plugins']['get']('TrackChangesEditing');_0x77881a['plugins']['has']('MultiLevelList')&&(_0x3e7bd7['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e7bd7['registerBlockAttribute']('listMarkerStyle'),_0x3e7bd7['descriptionFactory']['registerDescriptionCallback'](_0x1d7a67=>this['handleDescriptions'](_0x1d7a67)));}['handleDescriptions'](_0xeceea8){const _0x422369=this['editor']['locale'],{data:_0x344bb8}=_0xeceea8,_0x37718d={'type':'format','content':''};if(_0x344bb8&&'listMarkerStyle'==_0x344bb8['key']){if(!_0x344bb8['oldValue'])return{'type':'format','content':o(_0x422369,'*Set\x20format:*\x20%0',o(_0x422369,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x344bb8['newValue']+')'};if(!_0x344bb8['newValue']){let _0x210bef=_0xeceea8['head'];for(;_0x210bef;){if(_0x210bef['data']&&'listType'==_0x210bef['data']['key']&&_0x210bef['data']['newValue'])return _0x37718d;_0x210bef=_0x210bef['next'];}return{'type':'format','content':o(_0x422369,'*Remove\x20format:*\x20%0',o(_0x422369,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x344bb8['oldValue']+')'};}}}}class yt extends _0x15a662{['afterInit'](){const _0x8ecec8=this['editor'];if(!_0x8ecec8['plugins']['has']('PageBreakEditing'))return;_0x8ecec8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa0bfdf=_0x8ecec8['plugins']['get']('TrackChangesEditing'),_0x57b833=_0x8ecec8['locale'];_0xa0bfdf['descriptionFactory']['registerElementLabel']('pageBreak',_0x530a20=>o(_0x57b833,'ELEMENT_PAGE_BREAK',_0x530a20));}}class St extends _0x15a662{['afterInit'](){const _0x34e30d=this['editor'];if(!_0x34e30d['plugins']['has']('Paragraph'))return;const _0x511996=_0x34e30d['locale'],_0x9addcf=_0x34e30d['plugins']['get']('TrackChangesEditing');_0x9addcf['descriptionFactory']['registerElementLabel']('paragraph',_0x46eead=>o(_0x511996,'ELEMENT_PARAGRAPH',_0x46eead)),_0x9addcf['enableDefaultAttributesIntegration']('paragraph'),_0x9addcf['enableCommand']('insertParagraph'),_0x34e30d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x34e30d),{'priority':'highest'}),_0x34e30d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x18cb8f,_0x2cdd9f,_0x251878)=>{_0x251878['options']['showSuggestionHighlights']&&nr(_0x34e30d,{'showActiveMarker':!0x1})(_0x18cb8f,_0x2cdd9f,_0x251878);},{'priority':'highest'});const _0x3588cd=_0x9addcf['descriptionFactory'];_0x3588cd['registerDescriptionCallback'](_0x107bf9=>{if('insertion'!==_0x107bf9['type'])return;const {start:_0x52d49a,end:_0x45c34f}=_0x107bf9['getFirstRange']();if(!_0x52d49a['isTouching'](_0x45c34f)||!_0x52d49a['nodeAfter'])return;const _0x374e7a=_0x34e30d['model']['schema'],_0x5df884=_0x52d49a['nodeAfter'];return _0x374e7a['isBlock'](_0x5df884)&&!_0x374e7a['isLimit'](_0x5df884)&&_0x374e7a['checkChild'](_0x5df884,'$text')?{'type':'insertion','content':o(_0x511996,'*Insert:*\x20%0',_0x3588cd['getItemLabel'](_0x5df884,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xef3cd2=this['editor'],_0x4ef560=_0xef3cd2['locale'];_0xef3cd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ae709=>{if('formatBlock'!=_0x5ae709['type'])return;const {data:_0x2cb702}=_0x5ae709;return _0x2cb702&&'paragraph'==_0x2cb702['commandName']?{'type':'format','content':o(_0x4ef560,'*Change\x20to:*\x20%0',o(_0x4ef560,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x37bd24,{showActiveMarker:_0x3fbe47=!0x0}={}){return(_0x272060,_0x1c0d14,_0x4553e4)=>{const _0x104e92=_0x37bd24['plugins']['get']('TrackChangesEditing'),_0x3097f6=_0x1c0d14['markerRange']['start'],_0x4a63fc=_0x1c0d14['markerRange']['end'],_0x4ac36b=_0x37bd24['model']['schema'];if(!_0x3097f6['isTouching'](_0x4a63fc)||!_0x3097f6['nodeAfter'])return;const _0x3cfe8d=_0x3097f6['nodeAfter'];if(_0x4ac36b['isBlock'](_0x3cfe8d)&&!_0x4ac36b['isLimit'](_0x3cfe8d)&&_0x4ac36b['checkChild'](_0x3cfe8d,'$text')){if(!_0x4553e4['consumable']['consume'](_0x1c0d14['markerRange'],_0x272060['name']))return;const {id:_0x51836e,authorId:_0x13875a}=_0x104e92['_splitMarkerName'](_0x1c0d14['markerName']),_0x54a1a8=_0x4553e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51836e,'data-author-id':_0x13875a}),_0x1b7344=_0x4553e4['mapper']['toViewPosition'](_0x4a63fc);_0x3fbe47&&_0x104e92['activeMarkers']['includes'](_0x1c0d14['markerName'])&&_0x4553e4['writer']['addClass']('ck-suggestion-marker--active',_0x54a1a8),_0x4553e4['writer']['insert'](_0x1b7344,_0x54a1a8),_0x4553e4['mapper']['bindElementToMarker'](_0x54a1a8,_0x1c0d14['markerName']);}};}class jt extends _0x15a662{['afterInit'](){const _0x28b80d=this['editor'];_0x28b80d['commands']['get']('replaceSource')&&_0x28b80d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x15a662{['afterInit'](){const _0x1b1c97=this['editor'];if(!_0x1b1c97['plugins']['has']('RemoveFormatEditing'))return;_0x1b1c97['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40512b=this['editor'];_0x40512b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33c409=>{if('formatBlock'!=_0x33c409['type']&&'formatInline'!=_0x33c409['type'])return;const {data:_0x3b51da}=_0x33c409;return _0x3b51da&&'removeFormat'==_0x3b51da['commandName']?{'type':'format','content':o(_0x40512b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x15a662{['afterInit'](){const _0x26e00f=this['editor'];if(!_0x26e00f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4a4704=_0x26e00f['plugins']['get']('TrackChangesEditing');_0x4a4704['enableCommand']('goToPreviousRestrictedEditingException'),_0x4a4704['enableCommand']('goToNextRestrictedEditingException');const _0x2962ac=_0x26e00f['plugins']['get']('RestrictedEditingModeEditing');_0x2962ac['enableCommand']('trackChanges'),_0x2962ac['enableCommand']('acceptSuggestion'),_0x2962ac['enableCommand']('discardSuggestion'),_0x2962ac['enableCommand']('acceptAllSuggestions'),_0x2962ac['enableCommand']('discardAllSuggestions'),_0x2962ac['enableCommand']('acceptSelectedSuggestions'),_0x2962ac['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x15a662{['afterInit'](){const _0x361d88=this['editor'];if(!_0x361d88['plugins']['has']('ShiftEnter'))return;const _0x4522a9=_0x361d88['plugins']['get']('TrackChangesEditing');_0x4522a9['enableCommand']('shiftEnter'),_0x361d88['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0x361d88),{'priority':'high'}),_0x361d88['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0x361d88),{'priority':'high'}),_0x361d88['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e4527,_0x36bb7f,_0x568024)=>{_0x568024['options']['showSuggestionHighlights']&&Ee(_0x361d88,{'showActiveMarker':!0x1})(_0x1e4527,_0x36bb7f,_0x568024);}),_0x4522a9['descriptionFactory']['registerElementLabel']('softBreak',_0x4aab9c=>o(_0x361d88['locale'],'ELEMENT_LINE_BREAK',_0x4aab9c));}}function Ee(_0x21fcc8,{showActiveMarker:_0x2d74ef=!0x0}={}){return(_0x642d6d,_0x3408cb,_0x10657a)=>{const _0x908661=_0x21fcc8['plugins']['get']('TrackChangesEditing');if(!_0x10657a['consumable']['test'](_0x3408cb['markerRange'],_0x642d6d['name']))return;const _0x5a6a27=_0x21fcc8['model'];for(const _0x4707c9 of _0x3408cb['markerRange']['getItems']()){if(!_0x4707c9['is']('element','softBreak'))continue;const _0x298bf8='deletion'==_0x3408cb['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x511c9b,authorId:_0x5aaf7d}=_0x908661['_splitMarkerName'](_0x3408cb['markerName']),_0x2aa598=_0x10657a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x298bf8,'data-suggestion':_0x511c9b,'data-author-id':_0x5aaf7d}),_0x2dbfa6=_0x10657a['mapper']['toViewPosition'](_0x5a6a27['createPositionBefore'](_0x4707c9));_0x2d74ef&&_0x908661['activeMarkers']['includes'](_0x3408cb['markerName'])&&_0x10657a['writer']['addClass']('ck-suggestion-marker--active',_0x2aa598),_0x10657a['writer']['insert'](_0x2dbfa6,_0x2aa598),_0x10657a['mapper']['bindElementToMarker'](_0x2aa598,_0x3408cb['markerName']);}};}class vt extends _0x15a662{['afterInit'](){const _0x2df3ce=this['editor'],_0x34d739=_0x2df3ce['model'],_0x4d2591=_0x2df3ce['locale'];if(!_0x2df3ce['plugins']['has']('StandardEditingModeEditing'))return;const _0x5d7b68=_0x2df3ce['plugins']['get']('TrackChangesEditing'),_0x58651b='restrictedEditingException',_0x35e6da=_0x2df3ce['commands']['get'](_0x58651b);_0x5d7b68['enableCommand'](_0x58651b,(_0x524b99,_0x58e316={})=>{const _0x21bb17=_0x34d739['document']['selection'];if(_0x21bb17['isCollapsed'])return void _0x524b99(_0x58e316);const _0x2c7b74=void 0x0!==_0x58e316['forceValue']?_0x58e316['forceValue']:!_0x35e6da['value'];_0x34d739['change'](()=>{const _0x4376f5=Array['from'](_0x21bb17['getRanges']());for(const _0x4f45c3 of _0x4376f5){const _0x657e3d=_0x2c7b74?[_0x4f45c3]:io(_0x58651b,_0x4f45c3,_0x34d739);for(const _0x17f1a3 of _0x657e3d)_0x5d7b68['markInlineFormat'](_0x17f1a3,{'commandName':_0x58651b,'commandParams':[{'forceValue':_0x2c7b74}]});}});}),_0x5d7b68['descriptionFactory']['registerDescriptionCallback'](_0x2c16b7=>{if('formatBlock'!=_0x2c16b7['type']&&'formatInline'!=_0x2c16b7['type'])return;const {data:_0x2c4c0e}=_0x2c16b7;return _0x2c4c0e&&_0x2c4c0e['commandName']==_0x58651b?_0x2c4c0e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d2591,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4d2591,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x15a662{['afterInit'](){const _0x439c2b=this['editor'];if(!_0x439c2b['plugins']['has']('Style')||!_0x439c2b['plugins']['has']('DataSchema'))return;const _0x38d769=_0x439c2b['plugins']['get']('TrackChangesEditing'),_0x102527=_0x439c2b['locale'],_0x7c18da=_0x439c2b['config']['get']('style')||{},_0x29cabc=_0x439c2b['plugins']['get']('GeneralHtmlSupport'),_0x5444d2=_0x439c2b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x439c2b['plugins']['get']('DataSchema'),_0x7c18da['definitions']);_0x38d769['enableDefaultAttributesIntegration']('style');const _0x2fc94d=new Set();for(const _0x5e7ac8 of _0x5444d2['block']){const _0x46ea2a=_0x29cabc['getGhsAttributeNameForElement'](_0x5e7ac8['element']);_0x2fc94d['add'](_0x46ea2a);}const _0x8834c8=new Set();for(const _0x1facc1 of _0x5444d2['inline']){const _0x49b6bd=_0x29cabc['getGhsAttributeNameForElement'](_0x1facc1['element']);_0x8834c8['add'](_0x49b6bd);for(const _0x3b9d11 of _0x1facc1['ghsAttributes'])_0x8834c8['add'](_0x3b9d11);}for(const _0x1c187b of _0x2fc94d)_0x38d769['registerBlockAttribute'](_0x1c187b),_0x38d769['descriptionFactory']['registerAttributeLabel'](_0x1c187b,o(_0x102527,'FORMAT_STYLE'));for(const _0x3a6669 of _0x8834c8)_0x38d769['registerInlineAttribute'](_0x3a6669),_0x38d769['descriptionFactory']['registerAttributeLabel'](_0x3a6669,o(_0x102527,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32ef32=this['editor'],_0xe1ab5c=_0x32ef32['locale'];_0x32ef32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x220309=>{if('formatBlock'!=_0x220309['type']&&'formatInline'!=_0x220309['type'])return;const {data:_0x586a27}=_0x220309;return _0x586a27&&'style'===_0x586a27['commandName']?_0x586a27['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe1ab5c,'*Set\x20format:*\x20%0',_0x586a27['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xe1ab5c,'*Remove\x20format:*\x20%0',_0x586a27['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x15a662{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3db885){super(_0x3db885),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x13ce93=this['editor'],_0x432fcd=_0x13ce93['model']['document']['selection'];if(!_0x13ce93['plugins']['has']('TableEditing'))return;const _0x730154=_0x13ce93['locale'],_0x46dfbe=_0x13ce93['plugins']['get']('TrackChangesEditing'),_0x120285=_0x13ce93['plugins']['get']('TableUtils');_0x46dfbe['descriptionFactory']['registerElementLabel']('table',_0x2114bf=>o(_0x730154,'ELEMENT_TABLE',_0x2114bf)),this['_setupColumnsRowsFixing'](),_0x46dfbe['enableCommand']('insertTable'),_0x46dfbe['enableCommand']('selectTableRow'),_0x46dfbe['enableCommand']('selectTableColumn');for(const _0x298d06 of['insertTableRowAbove','insertTableRowBelow']){const _0x659d57=_0x13ce93['commands']['get'](_0x298d06);_0x46dfbe['enableCommand'](_0x298d06,_0x4e71b4=>{_0x13ce93['model']['change'](_0x44aa94=>{_0x4e71b4();const _0x11562='above'===_0x659d57['order'],_0x86ed6d=_0x120285['getSelectionAffectedTableCells'](_0x432fcd),_0x487f62=_0x120285['getRowIndexes'](_0x86ed6d),_0x1a3c4d=_0x11562?_0x487f62['first']-0x1:_0x487f62['last']+0x1,_0x3fcdee=_0x86ed6d[0x0]['findAncestor']('table'),_0x147c74=_0x120285['createTableWalker'](_0x3fcdee,{'startRow':_0x1a3c4d,'endRow':_0x1a3c4d}),_0x4aa3a4=Array['from'](_0x147c74)['map'](_0x13c4ad=>_0x44aa94['createRangeOn'](_0x13c4ad['cell']));_0x46dfbe['markMultiRangeInsertion'](_0x4aa3a4,'tableRow');});});}for(const _0x13c5d0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x214d8f=_0x13ce93['commands']['get'](_0x13c5d0);_0x46dfbe['enableCommand'](_0x13c5d0,_0x31e889=>{_0x13ce93['model']['change'](_0x4fda63=>{_0x31e889();const _0x5c33bd='left'===_0x214d8f['order'],_0x4ed62f=_0x120285['getSelectionAffectedTableCells'](_0x432fcd),_0x926538=_0x120285['getColumnIndexes'](_0x4ed62f),_0x452f97=_0x5c33bd?_0x926538['first']-0x1:_0x926538['last']+0x1,_0x17376a=_0x4ed62f[0x0]['findAncestor']('table'),_0x529518=_0x120285['createTableWalker'](_0x17376a,{'startRow':0x0,'column':_0x452f97,'includeAllSlots':!0x1}),_0x8d9fe4=Array['from'](_0x529518)['map'](_0x1bfad4=>_0x4fda63['createRangeOn'](_0x1bfad4['cell']));_0x46dfbe['markMultiRangeInsertion'](_0x8d9fe4,'tableColumn');});});}for(const _0x512676 of['removeTableRow','removeTableColumn']){const _0x516145=_0x512676['substr'](0xb),_0x103657=_0x516145['toLowerCase'](),_0x3893f4=_0x103657['substr'](0x0,0x3)+'span',_0x2dd01b='table'+_0x516145,_0x235f49='min'+_0x516145,_0x4386e4='max'+_0x516145;_0x46dfbe['enableCommand'](_0x512676,()=>{_0x13ce93['model']['change'](_0x21e0e6=>{const _0x1fca6c=_0x120285['getSelectionAffectedTableCells'](_0x432fcd),_0x2906a9=_0x1fca6c[0x0]['findAncestor']('table');let _0x91241f;if('removeTableRow'==_0x512676){const _0x56196f=_0x120285['getRowIndexes'](_0x1fca6c);_0x91241f={'startRow':_0x56196f['first'],'endRow':_0x56196f['last'],'includeAllSlots':!0x0};}else{const _0x126a9d=_0x120285['getColumnIndexes'](_0x1fca6c);_0x91241f={'startColumn':_0x126a9d['first'],'endColumn':_0x126a9d['last'],'includeAllSlots':!0x0};}const _0xc3d7db=_0x120285['createTableWalker'](_0x2906a9,_0x91241f),_0x401abe=Array['from'](_0xc3d7db)['map'](({cell:_0x28a3a0})=>_0x28a3a0),_0x148de4=We(_0x401abe['filter'](_0x2d63e7=>_0x2d63e7['hasAttribute'](_0x3893f4))),_0x16b805=We(_0x401abe['filter'](_0x4ee27e=>!_0x4ee27e['hasAttribute'](_0x3893f4)))['map'](_0x519c63=>_0x21e0e6['createRangeOn'](_0x519c63)),_0x252c1a=_0x46dfbe['markMultiRangeDeletion'](_0x16b805,_0x2dd01b);if(_0x252c1a&&('tableRow'==_0x252c1a['subType']||'tableColumn'==_0x252c1a['subType'])){const _0x182350=this['_getSuggestionCoords'](_0x252c1a);for(const _0x25839b of _0x148de4){const _0x29dc4d=_0x21e0e6['createRangeOn'](_0x25839b),_0x387792=_0x120285['getCellLocation'](_0x25839b),_0x9c63df=_0x25839b['getAttribute'](_0x3893f4)-0x1,_0x190ead=_0x182350[_0x235f49],_0xa66a85=_0x182350[_0x4386e4];_0x190ead<=_0x387792[_0x103657]&&_0x387792[_0x103657]+_0x9c63df<=_0xa66a85&&_0x252c1a['addRange'](_0x29dc4d);}}});});}function _0x27ca76(_0x346ff5){const _0x1902a9=Array['from'](_0x432fcd['getRanges']())['map'](_0x2afcf8=>_0x5a166f['fromRange'](_0x2afcf8));_0x13ce93['model']['change'](_0x3b0f4d=>{const _0x468ce1=_0x3b0f4d['batch'];_0x346ff5=_0x346ff5['filter'](_0x1208fd=>'$graveyard'!=_0x1208fd['root']['rootName']),_0x3b0f4d['setSelection'](_0x346ff5),_0x13ce93['commands']['get']('removeTableRow')['refresh'](),_0x13ce93['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x13ce93['model']['enqueueChange'](()=>{_0x13ce93['model']['enqueueChange'](_0x468ce1,_0x34c174=>{const _0x4aba42=_0x1902a9['filter'](_0x3ba054=>'$graveyard'!=_0x3ba054['root']['rootName']);_0x4aba42['length']>0x0&&_0x34c174['setSelection'](_0x4aba42);for(const _0x2e54b2 of _0x1902a9)_0x2e54b2['detach']();});});});}function _0x2b4563(_0x4f58e4){_0x13ce93['model']['change'](_0x41ebd4=>{const _0x5391a5=Array['from'](_0x432fcd['getRanges']())['map'](_0x2b600f=>_0x5a166f['fromRange'](_0x2b600f)),_0x3f0755=[];for(const _0x26ca3f of _0x4f58e4)for(const _0x28a757 of _0x26ca3f['getItems']({'shallow':!0x0}))_0x3f0755['push'](_0x28a757);for(const _0x4bf4af of _0x3f0755)'$graveyard'!=_0x4bf4af['root']['rootName']&&(_0x41ebd4['setSelection'](_0x41ebd4['createPositionAt'](_0x4bf4af,0x0)),_0x13ce93['commands']['get']('removeTableColumn')['refresh'](),_0x13ce93['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3a4cec=_0x5391a5['filter'](_0x5c9235=>'$graveyard'!=_0x5c9235['root']['rootName']);_0x3a4cec['length']>0x0&&_0x41ebd4['setSelection'](_0x3a4cec);for(const _0x57a95f of _0x5391a5)_0x57a95f['detach']();});}function _0x12fc2d(_0x647d06,_0x4a05cb){return _0x4a05cb['every'](_0x4b8690=>_0x647d06['some'](_0x4eac6c=>_0x4eac6c['end']['isEqual'](_0x4b8690['start'])||_0x4b8690['end']['isEqual'](_0x4eac6c['start'])));}function _0x3e6c98(_0x450d64,_0x44a3d2){return!_0x450d64['some'](_0x1d382b=>_0x44a3d2['some'](_0x50c5d4=>_0x1d382b['isIntersecting'](_0x50c5d4)))&&_0x450d64['some'](_0x330740=>_0x44a3d2['some'](_0x3be9c4=>_0x330740['end']['isTouching'](_0x3be9c4['start'])));}_0x13ce93['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c15f0,_0x11d25a,_0x44ac05)=>{if(!_0x44ac05['options']['showSuggestionHighlights'])return;const _0x24c778=_0x11d25a['item'];if(!_0x24c778||!_0x24c778['is']('element','tableCell'))return;const _0x189976=_0x44ac05['mapper']['toViewElement'](_0x24c778);if(_0x189976){const {id:_0x231258,authorId:_0x46a5c0}=_0x46dfbe['_splitMarkerName'](_0x11d25a['markerName']);_0x2ba6ba(_0x189976,_0x44ac05['writer'],(_0x11a6c4,_0x5bb6c5,_0x4956d6)=>{_0x4956d6['addClass'](_0x56e3db(_0x5bb6c5['classes']),_0x11a6c4),_0x4956d6['setAttribute']('data-suggestion-id',_0x231258,_0x11a6c4),_0x4956d6['setAttribute']('data-author-id',_0x46a5c0,_0x11a6c4);},(_0x2546f0,_0x16ac46,_0x48d4bd)=>{_0x48d4bd['removeClass'](_0x56e3db(_0x16ac46['classes']),_0x2546f0),_0x48d4bd['removeAttribute']('data-suggestion-id',_0x2546f0),_0x48d4bd['removeAttribute']('data-author-id',_0x2546f0);});}},{'priority':'highest'}),_0x46dfbe['descriptionFactory']['registerDescriptionCallback'](_0x39cce6=>{if('insertion'!=_0x39cce6['type']&&'deletion'!=_0x39cce6['type'])return;const _0x13d6e0=_0x39cce6['getContainedElement']();if(null!=_0x13d6e0&&_0x13d6e0['is']('element','table')){if('insertion'==_0x39cce6['type']){const _0x15066c=_0x39cce6['getItems']()['filter'](_0x620825=>_0x620825['is']('$textProxy'))['map'](_0x3b5e78=>_0x3b5e78['data']);if(_0x15066c['length'])return{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x15066c['join']('\x20')+'\x22'))};}if('deletion'==_0x39cce6['type']){const _0x591056=_0x39cce6['getItems']()['filter'](_0x5e178b=>_0x5e178b['is']('$textProxy'))['map'](_0x6681a5=>_0x6681a5['data']);if(_0x591056['length'])return{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x591056['join']('\x20')+'\x22'))};}}}),_0x46dfbe['descriptionFactory']['registerDescriptionCallback'](_0x1baa4f=>{if('tableRow'==_0x1baa4f['subType']){const _0x206528=_0x1baa4f['getItems']()['filter'](_0x2a6d14=>_0x2a6d14['is']('$textProxy'))['map'](_0x1b0430=>_0x1b0430['data']),_0x315fa4=this['_getSuggestionCoords'](_0x1baa4f),_0xfa9554=_0x315fa4['maxRow']-_0x315fa4['minRow']+0x1;if('insertion'==_0x1baa4f['type'])return _0x206528['length']?{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xfa9554,'\x22'+_0x206528['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_ROW',_0xfa9554))};if('deletion'==_0x1baa4f['type'])return _0x206528['length']?{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xfa9554,'\x22'+_0x206528['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_ROW',_0xfa9554))};}if('tableColumn'==_0x1baa4f['subType']){const _0x116794=_0x1baa4f['getItems']()['filter'](_0x10007f=>_0x10007f['is']('$textProxy'))['map'](_0x21b25f=>_0x21b25f['data']),_0x3d6397=this['_getSuggestionCoords'](_0x1baa4f),_0x31cff8=_0x3d6397['maxColumn']-_0x3d6397['minColumn']+0x1;if('insertion'==_0x1baa4f['type'])return _0x116794['length']?{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31cff8,'\x22'+_0x116794['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x730154,'*Insert:*\x20%0',o(_0x730154,'ELEMENT_TABLE_COLUMN',_0x31cff8))};if('deletion'==_0x1baa4f['type'])return _0x116794['length']?{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31cff8,'\x22'+_0x116794['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x730154,'*Remove:*\x20%0',o(_0x730154,'ELEMENT_TABLE_COLUMN',_0x31cff8))};}}),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x27ca76),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x27ca76),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2b4563),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2b4563),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x12fc2d),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x12fc2d),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3e6c98),_0x46dfbe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3e6c98);}['_acceptFormatSuggestionCallbackFactory'](){const _0x19656f=this['editor'],_0x205734=_0x19656f['model']['document']['selection'];return(_0x2e5d90,_0x4ccc2b)=>{_0x19656f['model']['change'](_0x320064=>{const {commandName:_0x20106f,commandParams:_0x37c127}=_0x4ccc2b;let _0x3b7901=_0x2e5d90[0x0]['end']['nodeBefore'];_0x37c127&&_0x37c127[0x0]&&!0x1===_0x37c127[0x0]['forceValue']&&(_0x3b7901=_0x2e5d90[0x0]['start']['nodeAfter']);const _0x4429c6=_0x320064['createRangeIn'](_0x3b7901);if('$graveyard'==_0x4429c6['root']['rootName'])return;const _0x113a37=Array['from'](_0x205734['getRanges']())['map'](_0x5977bd=>_0x5a166f['fromRange'](_0x5977bd));_0x320064['setSelection'](_0x4429c6),_0x19656f['commands']['get'](_0x20106f)['refresh'](),_0x37c127['push']({'forceDefaultExecution':!0x0}),_0x19656f['execute'](_0x20106f,..._0x37c127);const _0x3f38ab=_0x113a37['filter'](_0x4aa9b8=>'$graveyard'!=_0x4aa9b8['root']['rootName']);_0x3f38ab['length']>0x0&&_0x320064['setSelection'](_0x3f38ab);for(const _0x31a7ce of _0x113a37)_0x31a7ce['detach']();});};}['_getCoordsForCells'](_0x99d4b){const _0x4217a5=this['editor']['plugins']['get']('TableUtils');let _0x4e8e78=Number['MAX_SAFE_INTEGER'],_0x4ab746=Number['MIN_SAFE_INTEGER'],_0x13d61b=Number['MAX_SAFE_INTEGER'],_0x1b28b3=Number['MIN_SAFE_INTEGER'];for(const _0x2b68f9 of _0x99d4b){if('$graveyard'==_0x2b68f9['root']['rootName'])continue;const {row:_0x176307,column:_0x572bb2}=_0x4217a5['getCellLocation'](_0x2b68f9),_0x1a0493=_0x2b68f9['hasAttribute']('rowspan')?_0x2b68f9['getAttribute']('rowspan')-0x1:0x0,_0x3aa7e6=_0x2b68f9['hasAttribute']('colspan')?_0x2b68f9['getAttribute']('colspan')-0x1:0x0;_0x4e8e78=_0x176307<_0x4e8e78?_0x176307:_0x4e8e78,_0x4ab746=_0x176307+_0x1a0493>_0x4ab746?_0x176307+_0x1a0493:_0x4ab746,_0x13d61b=_0x572bb2<_0x13d61b?_0x572bb2:_0x13d61b,_0x1b28b3=_0x572bb2+_0x3aa7e6>_0x1b28b3?_0x572bb2+_0x3aa7e6:_0x1b28b3;}return{'minRow':_0x4e8e78,'maxRow':_0x4ab746,'minColumn':_0x13d61b,'maxColumn':_0x1b28b3};}['_setupColumnsRowsFixing'](){const _0x255d0e=this['editor'],_0x43a79a=_0x255d0e['plugins']['get']('TrackChangesEditing'),_0x3e5c96=_0x255d0e['plugins']['get']('TableUtils');_0x255d0e['model']['document']['on']('change:data',()=>{const _0x395aeb=Array['from'](_0x255d0e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1572ce,data:_0x5da950}of _0x395aeb){const {group:_0x983807,id:_0x3f02d0,subType:_0x30fc2c}=_0x43a79a['_splitMarkerName'](_0x1572ce);if('suggestion'!=_0x983807)continue;if(null!=_0x5da950['oldRange'])continue;const _0x5cfb10=_0x43a79a['getSuggestion'](_0x3f02d0);this['_tablePostFixingSubtypes']['includes'](_0x30fc2c)&&this['_tableSuggestions']['add'](_0x5cfb10);}},{'priority':'low'});const _0x1f415f=(_0x1d9d6a,_0x33492b)=>{let _0x538a50=!0x1;const _0x48fa72=_0x33492b['createRangeOn'](_0x1d9d6a),_0x1019bb=_0x1d9d6a['findAncestor']('table'),_0x449e7b=_0x3e5c96['getCellLocation'](_0x1d9d6a);for(const _0x2e78a3 of this['_tableSuggestions']){const _0x4d9260=_0x2e78a3['subType'],_0x590bf4=_0x4d9260['startsWith']('tablePaste'),_0x4450e4=_0x4d9260['substr'](_0x590bf4?0xa:0x5),_0x466018=_0x4450e4['toLowerCase'](),_0x315fdf=_0x466018['substr'](0x0,0x3)+'span',_0x2b6128='min'+_0x4450e4,_0x431716='max'+_0x4450e4;if(!_0x2e78a3['isInContent'])continue;if(_0x1019bb!=_0x2e78a3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2e78a3['isIntersectingWithRange'](_0x48fa72))continue;const _0x18da61=_0x1d9d6a['hasAttribute'](_0x315fdf)?_0x1d9d6a['getAttribute'](_0x315fdf)-0x1:0x0,_0x1b8e48=this['_getSuggestionCoords'](_0x2e78a3),_0x2e620e=_0x1b8e48[_0x2b6128],_0x2c31cd=_0x1b8e48[_0x431716];_0x2e620e<=_0x449e7b[_0x466018]&&_0x449e7b[_0x466018]+_0x18da61<=_0x2c31cd&&(_0x2e78a3['addRange'](_0x48fa72),_0x538a50=!0x0);}return _0x538a50;};_0x255d0e['model']['document']['registerPostFixer'](_0xe5d295=>{let _0x3ac546=!0x1;for(const _0x182cb0 of _0x255d0e['model']['document']['differ']['getChanges']())if('insert'==_0x182cb0['type']){if('tableRow'==_0x182cb0['name']){for(const _0x16ee5b of _0x182cb0['position']['nodeAfter']['getChildren']())_0x3ac546=_0x3ac546||_0x1f415f(_0x16ee5b,_0xe5d295);}else'tableCell'==_0x182cb0['name']&&(_0x3ac546=_0x3ac546||_0x1f415f(_0x182cb0['position']['nodeAfter'],_0xe5d295));}return _0x3ac546;});}['_getSuggestionCoords'](_0x494f9c){return this['_getCoordsForCells'](_0x494f9c['getRanges']()['map'](_0x1699db=>_0x1699db['start']['nodeAfter']));}}function We(_0x5f3313){return Array['from'](new Set(_0x5f3313)['values']());}class Nt extends _0x15a662{static get['requires'](){return[$t];}['afterInit'](){const _0x5a8b04=this['editor'],_0x3a2932=_0x5a8b04['model']['document']['selection'],_0x3fd4aa=_0x5a8b04['locale'];if(!_0x5a8b04['plugins']['has']('TableEditing'))return;const _0x3bc753=_0x5a8b04['plugins']['get']('TrackChangesEditing'),_0x197d00=_0x5a8b04['plugins']['get']('TableUtils'),_0x317084=_0x5a8b04['plugins']['get']($t);_0x317084['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3bc753['enableCommand']('mergeTableCells',()=>{const _0x442908=_0x197d00['getSelectionAffectedTableCells'](_0x5a8b04['model']['document']['selection']);_0x5a8b04['model']['change'](()=>{_0x3bc753['markMultiRangeBlockFormat'](_0x442908,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5a8b04['commands']['get']('mergeTableCells')['on']('execute',(_0x3cbf2f,_0x34bd2c)=>{_0x5a8b04['commands']['get']('trackChanges')['value']&&(_0x34bd2c['length']>0x0&&_0x34bd2c[_0x34bd2c['length']-0x1]&&_0x34bd2c[_0x34bd2c['length']-0x1]['forceDefaultExecution']||_0x3bc753['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3cbf2f['stop']());},{'priority':'highest'});for(const _0x53d398 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4af431=_0x5a8b04['commands']['get'](_0x53d398);_0x3bc753['enableCommand'](_0x53d398,()=>{const _0x25dcb5=_0x5a8b04['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1ace0e=>_0x1ace0e['is']('element','tableCell')),_0x38f1ba=_0x4af431['value'];_0x5a8b04['model']['change'](()=>{_0x3bc753['markMultiRangeBlockFormat']([_0x25dcb5,_0x38f1ba],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2ee3d1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x152e2b=_0x5a8b04['commands']['get'](_0x2ee3d1);_0x3bc753['enableCommand'](_0x2ee3d1,()=>{const _0x3e9106=_0x197d00['getSelectionAffectedTableCells'](_0x5a8b04['model']['document']['selection'])[0x0],_0x403b3a=_0x3e9106['findAncestor']('table'),{column:_0x29f153,row:_0x46208e}=_0x197d00['getCellLocation'](_0x3e9106);let _0x413be1=[];if('horizontally'==_0x152e2b['direction']){const _0x201d01=_0x197d00['createTableWalker'](_0x403b3a,{'startRow':_0x46208e,'endRow':_0x46208e,'includeAllSlots':!0x0});_0x413be1=Array['from'](_0x201d01)['map'](_0x204cbe=>_0x204cbe['cell']);}else{const _0x1f1e2b=_0x197d00['createTableWalker'](_0x403b3a,{'column':_0x29f153,'includeAllSlots':!0x0});_0x413be1=Array['from'](_0x1f1e2b)['map'](_0xc5c2f=>_0xc5c2f['cell']);}_0x5a8b04['model']['change'](_0x2d477b=>{_0x3bc753['markBlockFormat'](_0x2d477b['createRangeOn'](_0x3e9106),{'commandName':_0x2ee3d1,'commandParams':[]},_0x413be1,_0x2ee3d1);});});}_0x3bc753['descriptionFactory']['registerDescriptionCallback'](_0x98c288=>{if('formatBlock'!=_0x98c288['type']&&'formatInline'!=_0x98c288['type'])return;const {data:_0x3b6f02}=_0x98c288;return _0x3b6f02&&'mergeTableCells'==_0x3b6f02['commandName']?{'type':'format','content':o(_0x3fd4aa,'*Merge\x20cells*')}:void 0x0;}),_0x3bc753['descriptionFactory']['registerDescriptionCallback'](_0x3471ee=>{if('formatBlock'!=_0x3471ee['type']&&'formatInline'!=_0x3471ee['type'])return;const {data:_0xbb8458}=_0x3471ee;return _0xbb8458?'splitTableCellVertically'==_0xbb8458['commandName']?{'type':'format','content':o(_0x3fd4aa,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xbb8458['commandName']?{'type':'format','content':o(_0x3fd4aa,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5d19f4=_0x317084['_acceptFormatSuggestionCallbackFactory']();for(const _0x65807d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3bc753['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x65807d,'accept',_0x5d19f4);for(const _0x3f7f6f of['splitTableCellVertically','splitTableCellHorizontally'])_0x3bc753['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f7f6f,'accept',_0x5d19f4);_0x3bc753['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x155a45=>{_0x5a8b04['model']['change'](_0xa03cf9=>{const _0x109bef=Array['from'](_0x3a2932['getRanges']())['map'](_0x21229f=>_0x5a166f['fromRange'](_0x21229f));_0xa03cf9['setSelection'](_0x155a45),_0x5a8b04['commands']['get']('mergeTableCells')['refresh'](),_0x5a8b04['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4e081b=_0x109bef['filter'](_0x5e1e61=>'$graveyard'!=_0x5e1e61['root']['rootName']);_0x4e081b['length']>0x0&&_0xa03cf9['setSelection'](_0x4e081b);for(const _0x5adb5f of _0x109bef)_0x5adb5f['detach']();});});for(const _0x42679e of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37011c=_0x5a8b04['commands']['get'](_0x42679e);_0x37011c['on']('set:isEnabled',(_0x208fca,_0x4b9e62,_0x564def)=>{if(_0x564def){const _0x217862=_0x5a8b04['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x116b02=>_0x116b02['is']('element','tableCell'));this['_areMergableCells'](_0x37011c['value'],_0x217862)||(_0x208fca['return']=!0x1,_0x208fca['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4fe9fd=this['editor']['commands']['get']('mergeTableCells'),_0x191728=this['editor']['plugins']['get']('TableUtils');if(!_0x4fe9fd['isEnabled'])return!0x1;const _0x5a4ca6=_0x191728['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3c72ca of _0x5a4ca6)for(const _0x5cc536 of _0x5a4ca6)if(_0x3c72ca!=_0x5cc536&&!this['_areMergableCells'](_0x3c72ca,_0x5cc536))return!0x1;return!0x0;}['_areMergableCells'](_0x3d9105,_0x196ad2){const _0x3170b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x345fd4=this['editor']['model']['createRangeOn'](_0x3d9105),_0x3e8fab=this['editor']['model']['createRangeOn'](_0x196ad2),_0x321fba=new Set(),_0x47b9c7=new Set();for(const _0x374385 of _0x3170b7['getSuggestions']())if(('insertion'==_0x374385['type']||'deletion'==_0x374385['type']||'mergeTableCells'==_0x374385['subType'])&&_0x374385['isInContent']){for(const _0x29e98b of _0x374385['getRanges']())_0x29e98b['containsRange'](_0x345fd4,!0x0)&&_0x321fba['add'](_0x374385['type']+':'+_0x374385['author']['id']),_0x29e98b['containsRange'](_0x3e8fab,!0x0)&&_0x47b9c7['add'](_0x374385['type']+':'+_0x374385['author']['id']);}if(_0x321fba['size']!=_0x47b9c7['size'])return!0x1;for(const _0x393d26 of _0x321fba)if(!_0x47b9c7['has'](_0x393d26))return!0x1;return!0x0;}}class Dt extends _0x15a662{static get['requires'](){return[$t];}['afterInit'](){const _0x3c3c7d=this['editor'];if(!_0x3c3c7d['plugins']['has']('TableEditing'))return;const _0x58298a=_0x3c3c7d['locale'],_0x1cca25=_0x3c3c7d['plugins']['get']('TrackChangesEditing');_0x1cca25['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1cca25['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1cca25['registerBlockAttribute']('headingRows'),_0x1cca25['registerBlockAttribute']('headingColumns'),_0x1cca25['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x58298a,'FORMAT_HEADER_ROW')),_0x1cca25['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x58298a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x239754=this['editor']['plugins']['get']('TrackChangesEditing'),_0x611dfb=this['editor']['plugins']['get']('TableUtils'),_0x2f25f1=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x3c75cd({showActiveMarker:_0x283648=!0x0,setDataAttribute:_0x5c6ffe=!0x0}={}){return(_0x388d2b,_0x3d16e0,_0x42cd6e)=>{const {type:_0x34f7c5,id:_0x49112f}=_0x239754['_splitMarkerName'](_0x3d16e0['markerName']);if(!_0x239754['hasSuggestion'](_0x49112f))return;const _0x3a93fe=_0x239754['getSuggestion'](_0x49112f),_0x57b0b3=_0x3a93fe['data'];if('formatBlock'!=_0x3a93fe['type']||!_0x57b0b3||'setTableColumnHeader'!=_0x57b0b3['commandName'])return;if(_0x3d16e0['item'])return void _0x388d2b['stop']();if(!_0x42cd6e['consumable']['consume'](_0x3d16e0['markerRange'],_0x388d2b['name']))return;const _0x3544bc=_0x3d16e0['markerRange']['start']['nodeAfter'],_0x952e99=_0x3d16e0['markerRange']['end']['nodeBefore'],_0x1e7416=_0x3544bc['parent']['parent'],{column:_0x42f4e5}=_0x611dfb['getCellLocation'](_0x3544bc),{column:_0x463293}=_0x611dfb['getCellLocation'](_0x952e99);for(let _0x5e7ab5=_0x42f4e5;_0x5e7ab5<=_0x463293;_0x5e7ab5++){const _0x7abd95=_0x611dfb['createTableWalker'](_0x1e7416,{'column':_0x5e7ab5,'includeAllSlots':!0x1});for(const _0x3cf17e of _0x7abd95){const _0x4510b1=_0x3cf17e['cell'],_0x18061c=_0x42cd6e['mapper']['toViewElement'](_0x4510b1);_0x42cd6e['writer']['addClass']('ck-suggestion-marker-'+_0x34f7c5,_0x18061c),_0x5c6ffe&&_0x42cd6e['writer']['setAttribute']('data-suggestion',_0x49112f,_0x18061c),_0x42cd6e['mapper']['bindElementToMarker'](_0x18061c,_0x3d16e0['markerName']),_0x283648&&(_0x239754['activeMarkers']['includes'](_0x3d16e0['markerName'])?_0x42cd6e['writer']['addClass']('ck-suggestion-marker--active',_0x18061c):_0x42cd6e['writer']['removeClass']('ck-suggestion-marker--active',_0x18061c));}}};}_0x239754['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f25f1),_0x239754['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f25f1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c75cd(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25fec7,_0xb6d4fd,_0x4e02cd)=>{_0x4e02cd['options']['showSuggestionHighlights']&&_0x3c75cd({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x25fec7,_0xb6d4fd,_0x4e02cd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4107d2,_0x3a6a19,_0x5bb0e8)=>{const {type:_0x20ac26,id:_0x2c1e0d}=_0x239754['_splitMarkerName'](_0x3a6a19['markerName']);if(!_0x239754['hasSuggestion'](_0x2c1e0d))return;const _0x288015=_0x239754['getSuggestion'](_0x2c1e0d),_0x534f71=_0x288015['data'];if('formatBlock'!=_0x288015['type']||!_0x534f71||'setTableColumnHeader'!=_0x534f71['commandName'])return;const _0x4cf8b0=_0x5bb0e8['mapper']['markerNameToElements'](_0x3a6a19['markerName']);if(_0x4cf8b0){for(const _0x245238 of _0x4cf8b0)_0x5bb0e8['writer']['removeClass']('ck-suggestion-marker-'+_0x20ac26,_0x245238),_0x5bb0e8['writer']['removeClass']('ck-suggestion-marker--active',_0x245238),_0x5bb0e8['writer']['removeAttribute']('data-suggestion',_0x245238),_0x5bb0e8['mapper']['unbindElementFromMarkerName'](_0x245238,_0x3a6a19['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d666d=this['editor'],_0x5a2ad0=_0x4d666d['locale'];function _0x913b49(_0x68e771){return{'type':'format','content':o(_0x5a2ad0,'*Format:*\x20%0',_0x68e771)};}_0x4d666d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x337a75=>{if('formatBlock'!=_0x337a75['type'])return;const {data:_0x85268d}=_0x337a75;if(_0x85268d){if('setTableRowHeader'==_0x85268d['commandName']){const _0xd6a179=_0x85268d['commandParams'][0x0]['forceValue'];return _0x913b49(o(_0x5a2ad0,_0xd6a179?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x85268d['commandName']){const _0x402030=_0x85268d['commandParams'][0x0]['forceValue'];return _0x913b49(o(_0x5a2ad0,_0x402030?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x15a662{['afterInit'](){const _0x32d4dd=this['editor'],_0x2bf8b4=_0x32d4dd['locale'],_0x9c95af=_0x32d4dd['plugins']['get']('TrackChangesEditing');function _0x1de2af(_0xa7c157){return{'type':'format','content':''+o(_0x2bf8b4,'*Set\x20table\x20type:*\x20%0',_0xa7c157)};}_0x32d4dd['plugins']['has']('TableLayout')&&(_0x9c95af['enableCommand']('insertTableLayout'),_0x9c95af['enableDefaultAttributesIntegration']('tableType'),_0x9c95af['registerBlockAttribute']('tableType'),_0x9c95af['descriptionFactory']['registerElementLabel'](_0x13e28c=>_0x13e28c['is']('element','table')&&'layout'===_0x13e28c['getAttribute']('tableType'),_0x18a93d=>o(_0x2bf8b4,'ELEMENT_LAYOUT_TABLE',_0x18a93d)),_0x9c95af['descriptionFactory']['registerDescriptionCallback'](_0x4dc391=>{const {data:_0x306976}=_0x4dc391;if(_0x306976&&'tableType'==_0x306976['key'])switch(_0x306976['newValue']){case'layout':return _0x1de2af(o(_0x2bf8b4,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1de2af(o(_0x2bf8b4,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Oe['map'](_0x99f72a=>[_0x99f72a,null]));class Bt extends _0x15a662{static get['requires'](){return[$t];}['afterInit'](){const _0xd6eaaf=this['editor'];if(!_0xd6eaaf['plugins']['has']('TableClipboard'))return;const _0x3faaf0=_0xd6eaaf['plugins']['get']('TrackChangesEditing'),_0x58b133=_0xd6eaaf['plugins']['get']('TableUtils'),_0x6214e6=_0xd6eaaf['plugins']['get']($t),_0x342222=_0xd6eaaf['plugins']['get']('TableClipboard'),_0x21f311=_0xd6eaaf['plugins']['get']('TableSelection'),_0x4bd812=_0xd6eaaf['plugins']['get'](_0x4c30d6);_0x6214e6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xd6eaaf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xd6eaaf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d08d2=null,_0x2ff416=!0x1;_0x4bd812['on']('contentInsertion',(_0x1682f8,_0x11c830)=>{_0x2ff416='paste'===_0x11c830['method'];}),_0xd6eaaf['model']['on']('insertContent',(_0x1ab604,_0x4ae82c)=>{if(!_0x2ff416&&null===_0x21f311['getSelectedTableCells']())return;const [_0x2566c7,_0x4ef643]=_0x4ae82c,_0x22baed=_0x4ae82c[_0x4ae82c['length']-0x1];_0x22baed&&_0x22baed['forceDefaultExecution']||_0x3faaf0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3a9339,_0x37842c,_0x4abbbd,_0x51cd16,_0x489dd7){if(_0x37842c&&!_0x37842c['is']('documentSelection'))return!0x1;const _0x5ee73a=_0x489dd7['getTableIfOnlyTableInContent'](_0x3a9339,_0x4abbbd);if(!_0x5ee73a||!He(_0x5ee73a,void 0x0,_0x51cd16))return!0x1;const _0x3c53d1=_0x51cd16['getSelectionAffectedTableCells'](_0x4abbbd['document']['selection']);if(!_0x3c53d1['length'])return!0x1;const _0x28a9d1=_0x3c53d1[0x0]['findAncestor']('table'),_0x336e80=_0x51cd16['getRowIndexes'](_0x3c53d1),_0x2f201b=_0x51cd16['getColumnIndexes'](_0x3c53d1),_0x23c69c={'startRow':_0x336e80['first'],'endRow':_0x336e80['last'],'startColumn':_0x2f201b['first'],'endColumn':_0x2f201b['last']};return 0x1==_0x3c53d1['length']&&(_0x23c69c['endRow']+=_0x51cd16['getRows'](_0x5ee73a)-0x1,_0x23c69c['endColumn']+=_0x51cd16['getColumns'](_0x5ee73a)-0x1),He(_0x28a9d1,_0x23c69c,_0x51cd16);}(_0x2566c7,_0x4ef643,_0xd6eaaf['model'],_0x58b133,_0x342222)&&(_0x1ab604['stop'](),_0x1d08d2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xd6eaaf['model']['change'](()=>{_0xd6eaaf['model']['insertContent'](_0x4ae82c[0x0],_0x4ae82c[0x1],_0x4ae82c[0x2],{'forceDefaultExecution':!0x0});const _0x156c0a=_0xb1da02(),{rowInsertionRanges:_0x4adeae,columnInsertionRanges:_0x2d3d30,insertionRanges:_0xd624ab,deletionRanges:_0x136a5c,cells:_0x5a3960}=_0x1d08d2;_0x4adeae['length']&&_0x3faaf0['markMultiRangeInsertion'](_0x4adeae,'tablePasteRow',{'tablePasteChainId':_0x156c0a}),_0x2d3d30['length']&&_0x3faaf0['markMultiRangeInsertion'](_0x2d3d30,'tablePasteColumn',{'tablePasteChainId':_0x156c0a}),_0xd624ab['length']&&(_0x3faaf0['markMultiRangeInsertion'](_0xd624ab,'tablePaste',{'tablePasteChainId':_0x156c0a,'skipNestingCheck':!0x0}),_0xd624ab['forEach'](_0x3ac679=>_0x3ac679['detach']?.())),_0x136a5c['length']&&(_0x3faaf0['markMultiRangeDeletion'](_0x136a5c,'tablePaste',{'tablePasteChainId':_0x156c0a,'skipNestingCheck':!0x0}),_0x136a5c['forEach'](_0x262a07=>_0x262a07['detach']?.()));const _0x158c5f=_0x3faaf0['markMultiRangeBlockFormat'](_0x5a3960['map'](({element:_0x44eebb})=>_0x44eebb),{'formatGroupId':_0xb1da02()},[],'tablePasteCell',{'tablePasteChainId':_0x156c0a});if(_0x158c5f){const _0x1adb4a=_0x158c5f['getMarkers'](),_0x20a901=[];for(const {element:_0x28a9c4,attributes:_0x2a8223}of _0x5a3960){if(!_0x2a8223)continue;const _0x4a81ea=_0xd6eaaf['model']['createRangeOn'](_0x28a9c4),_0x25b657=_0x1adb4a['find'](_0xf2a1b5=>_0xf2a1b5['getRange']()['isEqual'](_0x4a81ea));_0x25b657&&_0x20a901['push']([_0x25b657['name'],_0x2a8223]);}_0x20a901['length']&&_0x158c5f['setAttribute']('markerAttributes',Object['fromEntries'](_0x20a901));}_0x1d08d2=null;}));},{'priority':_0x1425d6['high']+0xa}),_0x4bd812['on']('contentInsertion',()=>{_0x2ff416=!0x1;},{'priority':'lowest'}),_0xd6eaaf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x46676b,_0x4fb4d8)=>{const [_0x81c129,_0x58246a,,_0x5b8639]=_0x4fb4d8;if(!_0x1d08d2)return;_0x46676b['stop']();const _0x20f558=_0x81c129['cell'],_0x244444=_0x58246a,_0x253dcc=De(_0x20f558),_0x29c842=De(_0x244444);_0x46676b['return']=_0x20f558;let _0x644a5=null,_0x29fb28=null;if(_0x29c842||_0x253dcc){if(_0x253dcc&&!_0x29c842){_0x5b8639['remove'](_0x20f558['getChild'](0x0));for(const _0x59d576 of Array['from'](_0x244444['getChildren']()))_0x5b8639['insert'](_0x59d576,_0x20f558,'end');const _0x2f4e5e=_0x1d08d2['rowInsertionIndexes']['includes'](_0x81c129['row']),_0x35e0c6=_0x1d08d2['columnInsertionIndexes']['includes'](_0x81c129['column']);_0x2f4e5e||_0x35e0c6||(_0x644a5=_0x5a166f['fromRange'](_0x5b8639['createRangeIn'](_0x20f558)));}else _0x29c842&&!_0x253dcc&&(_0x29fb28=_0x5b8639['createRangeIn'](_0x20f558));}else{const _0x25724b=_0x5b8639['createElement']('tableCellSuggestion'),_0x536187=_0x5b8639['createElement']('tableCellSuggestion');_0x5b8639['wrap'](_0x5b8639['createRangeIn'](_0x20f558),_0x536187),_0x5b8639['insert'](_0x25724b,_0x20f558,0x0);for(const _0x45d4d1 of Array['from'](_0x244444['getChildren']()))_0x5b8639['insert'](_0x45d4d1,_0x25724b,'end');_0x644a5=_0x5a166f['fromRange'](_0x5b8639['createRangeOn'](_0x25724b)),_0x29fb28=_0x5a166f['fromRange'](_0x5b8639['createRangeOn'](_0x536187));}const _0x275270=Array['from'](_0x244444['getAttributes']())['filter'](([_0x1c7738])=>Oe['includes'](_0x1c7738));_0x1d08d2['cells']['push']({'element':_0x20f558,'attributes':_0x275270['length']?Object['fromEntries'](_0x275270):null}),_0x644a5&&_0x1d08d2['insertionRanges']['push'](_0x644a5),_0x29fb28&&_0x1d08d2['deletionRanges']['push'](_0x29fb28);},{'priority':'high'}),_0x58b133['on']('insertColumns',(_0x2bbc16,_0x15412b)=>{const [_0x3da0f9,_0x567a0a={}]=_0x15412b;if(!_0x1d08d2)return;const _0x2a6c36=_0x567a0a['at']||0x0,_0x4cf5ca=_0x567a0a['columns']||0x1;_0x1d08d2['columnInsertionIndexes']=new Array(_0x4cf5ca)['fill'](_0x2a6c36)['map']((_0x5c8e21,_0x2ccbdc)=>_0x5c8e21+_0x2ccbdc);for(const {cell:_0x1f39e2}of _0x58b133['createTableWalker'](_0x3da0f9,{'startColumn':_0x2a6c36,'endColumn':_0x2a6c36+_0x4cf5ca-0x1}))_0x1d08d2['columnInsertionRanges']['push'](_0xd6eaaf['model']['createRangeOn'](_0x1f39e2));},{'priority':'low'}),_0x58b133['on']('insertRows',(_0x3be06e,_0x555fc1)=>{const [_0x5c956a,_0x180110={}]=_0x555fc1;if(!_0x1d08d2)return;const _0x5638db=_0x180110['at']||0x0,_0x41be82=_0x180110['rows']||0x1;_0x1d08d2['rowInsertionIndexes']=new Array(_0x41be82)['fill'](_0x5638db)['map']((_0x19eda3,_0x5b45f2)=>_0x19eda3+_0x5b45f2);for(const {cell:_0x24c542}of _0x58b133['createTableWalker'](_0x5c956a,{'startRow':_0x5638db,'endRow':_0x5638db+_0x41be82-0x1}))_0x1d08d2['rowInsertionRanges']['push'](_0xd6eaaf['model']['createRangeOn'](_0x24c542));},{'priority':'low'}),_0x3faaf0['descriptionFactory']['registerDescriptionCallback'](_0x17d529=>{if(_0x17d529['subType']&&_0x17d529['subType']['startsWith']('tablePaste'))return _0x17d529['previous']?{}:{'type':'insertion','content':o(_0xd6eaaf['locale'],'*Replace\x20table\x20cells*')};});const _0x5de7bc=()=>!0x1;for(const _0x216664 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3faaf0['_suggestionFactory']['registerCustomCallback']('insertion',_0x216664,'join',_0x5de7bc),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('deletion',_0x216664,'join',_0x5de7bc),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x216664,'join',_0x5de7bc);_0x3faaf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5de7bc),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4070f1,_0x5bb6e3,_0x33130c)=>{const _0x3a4629=_0x4070f1['map'](_0x88bf1b=>_0x88bf1b['getContainedElement']())['filter'](_0x343d31=>_0x343d31),_0x49a466=new Map(_0x3a4629['map'](_0xc9aa07=>[_0xc9aa07,null]));if(_0x1d08d2){for(const {element:_0x4e54d2,attributes:_0x5aeccc}of _0x1d08d2['cells'])_0x5aeccc&&_0x49a466['set'](_0x4e54d2,_0x5aeccc);}else{if(_0x33130c&&_0x33130c['markerAttributes'])for(const [_0x4f7127,_0x16c680]of Object['entries'](_0x33130c['markerAttributes'])){const _0x443326=_0xd6eaaf['model']['markers']['get'](_0x4f7127),_0x41c08a=_0x443326?_0x443326['getRange']()['getContainedElement']():null;_0x41c08a&&_0x49a466['set'](_0x41c08a,_0x16c680);}}_0xd6eaaf['model']['change'](_0x3b5c02=>{for(const [_0x29f4b7,_0x5c7843]of _0x49a466)_0x3b5c02['setAttributes']({...Ue,..._0x5c7843},_0x29f4b7);});});const _0x27c97d=(_0x2175b3,_0x252f82)=>{_0x3faaf0['_suggestionFactory']['registerCustomCallback'](_0x2175b3,'tablePaste',_0x252f82,(_0x22446c,_0x299bfa,_0x4276be)=>{_0xd6eaaf['model']['change'](_0x436d3d=>{const _0x2f3460=[];for(const _0x55efb5 of _0x22446c){const _0x431dcf=_0x55efb5['start']['nodeAfter'];_0x431dcf['is']('element','tableCellSuggestion')&&_0x2f3460['push'](_0x431dcf);}_0x3faaf0['_suggestionFactory']['getSuggestionCallback'](_0x2175b3,null,_0x252f82)(_0x22446c,_0x299bfa,_0x4276be);for(const _0x512a6c of _0x2f3460)'$graveyard'!=_0x512a6c['root']['rootName']&&_0x436d3d['unwrap'](_0x512a6c);});});};_0x27c97d('insertion','accept'),_0x27c97d('insertion','discard'),_0x27c97d('deletion','accept'),_0x27c97d('deletion','discard'),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2420da=>{const _0x5c05c1=_0x2420da['map'](_0xa3f007=>_0xa3f007['getContainedElement']()),_0x1e03d0=_0x5c05c1[0x0]['findAncestor']('table'),{minRow:_0x4b80bf,maxRow:_0x2ebc4c}=_0x6214e6['_getCoordsForCells'](_0x5c05c1);_0x58b133['removeRows'](_0x1e03d0,{'at':_0x4b80bf,'rows':_0x2ebc4c-_0x4b80bf+0x1});}),_0x3faaf0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e1bfe=>{const _0x17ba61=_0x2e1bfe['map'](_0x9af6d2=>_0x9af6d2['getContainedElement']()),_0x395c29=_0x17ba61[0x0]['findAncestor']('table'),{minColumn:_0x4c7f58,maxColumn:_0x44ca6e}=_0x6214e6['_getCoordsForCells'](_0x17ba61);_0x58b133['removeColumns'](_0x395c29,{'at':_0x4c7f58,'columns':_0x44ca6e-_0x4c7f58+0x1});});const _0x54ac88=(_0x159bfa,_0x71059d)=>{if(!_0x71059d['subType']||!_0x71059d['subType']['startsWith']('tablePaste'))return;const _0x410e95=_0x71059d['attributes']['tablePasteChainId'],_0x3a5767=_0x3faaf0['getSuggestions']()['filter'](_0x488deb=>_0x488deb['isInContent']&&_0x488deb['attributes']&&_0x488deb['attributes']['tablePasteChainId']==_0x410e95);_0x3a5767['length']&&_0x71059d['getAllAdjacentSuggestions']()['length']!=_0x3a5767['length']&&_0x3a5767['reduce']((_0x3d9c0a,_0x4a9ed7)=>(_0x3d9c0a['next']=_0x4a9ed7,_0x4a9ed7['previous']=_0x3d9c0a,_0x4a9ed7));};function _0x51837e(_0x16fe4f,_0x5684e5=!0x0){const {id:_0x4a2d99,authorId:_0x392bd7}=_0x3faaf0['_splitMarkerName'](_0x16fe4f['markerName']),_0x59161=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3407a1=_0x3faaf0['activeMarkers']['includes'](_0x16fe4f['markerName']);return _0x3407a1&&_0x59161['push']('ck-suggestion-marker--active'),{'classes':_0x59161,'attributes':{'data-suggestion':_0x4a2d99,'data-author-id':_0x392bd7},'priority':_0x3407a1&&_0x5684e5?0xbc2:0xbb8};}_0x3faaf0['on']('suggestionLoaded',_0x54ac88,{'priority':'high'}),_0x3faaf0['on']('suggestionUnloaded',_0x54ac88,{'priority':'high'}),_0xd6eaaf['model']['document']['registerPostFixer'](()=>{let _0x513e54=!0x1;const _0x2f93d6=Array['from'](_0xd6eaaf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a6240,data:_0x3b4072}of _0x2f93d6){const {group:_0x449fc9,type:_0x45f372,id:_0x3ea4af}=_0x3faaf0['_splitMarkerName'](_0x3a6240);if('suggestion'!=_0x449fc9||'deletion'!=_0x45f372||_0x3b4072['oldRange'])continue;if(!_0x3faaf0['hasSuggestion'](_0x3ea4af))continue;const _0x479ee8=_0x3faaf0['getSuggestion'](_0x3ea4af)['getRanges'](),_0x6d97f7=_0xd6eaaf['plugins']['get']('Users')['me'];for(const _0x19e821 of _0x3faaf0['getSuggestions']()){if(!_0x19e821['isInContent']||_0x19e821['author']!=_0x6d97f7)continue;if('formatBlock'!=_0x19e821['type']||'tablePasteCell'!=_0x19e821['subType'])continue;if(_0x19e821['getRanges']()['every'](_0x496c82=>_0x479ee8['some'](_0x37047a=>_0x37047a['containsRange'](_0x496c82,!0x0)))){for(const _0x42af71 of _0x19e821['getAllAdjacentSuggestions']())_0x42af71['isInContent']&&(_0x42af71['discard'](),_0x513e54=!0x0);}}}return _0x513e54;}),_0xd6eaaf['model']['document']['registerPostFixer'](_0x1316ae=>{const _0x4efc6a=_0xd6eaaf['commands']['get']('redo');if(!_0x4efc6a||!_0x4efc6a['_createdBatches']['has'](_0x1316ae['batch']))return!0x1;let _0x282a80=!0x1;const _0x581c7a=_0xd6eaaf['plugins']['get']('Users')['me'],_0x8770cc=_0xd6eaaf['model']['document']['differ']['getChanges'](),_0x29e87d=Array['from'](_0xd6eaaf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2004c7,data:_0x7287ea})=>{const {group:_0x402bb8,subType:_0x515167,authorId:_0x270f29}=_0x3faaf0['_splitMarkerName'](_0x2004c7);return'suggestion'==_0x402bb8&&'tablePaste'==_0x515167&&_0x270f29==_0x581c7a['id']&&!_0x7287ea['oldRange'];});for(const _0x44fc59 of _0x8770cc){if('insert'!=_0x44fc59['type']||'tableCellSuggestion'!=_0x44fc59['name']||0x1!=_0x44fc59['length'])continue;const _0x3fff7c=_0x1316ae['createRange'](_0x44fc59['position'],_0x44fc59['position']['getShiftedBy'](0x1));if(!_0x29e87d['find'](({data:_0x3305e8})=>_0x3305e8['newRange']['isEqual'](_0x3fff7c))){for(const {name:_0x6e589a,data:_0x3edd62}of _0x29e87d)if(_0x3fff7c['containsRange'](_0x3edd62['newRange'])){_0x1316ae['updateMarker'](_0x6e589a,{'range':_0x3fff7c}),_0x282a80=!0x0;break;}}}return _0x282a80;}),_0xd6eaaf['model']['document']['registerPostFixer'](_0x509219=>{let _0x6e0c77=!0x1;const _0x2468b4=_0xd6eaaf['plugins']['get']('Users')['me'],_0xd6f748=_0x3faaf0['getSuggestions']()['filter'](_0x1710a5=>_0x1710a5['isInContent']&&_0x1710a5['author']==_0x2468b4),_0x207049=new Set(),_0x58a229=new Set();for(const _0x5eaecd of _0xd6f748)if('tablePaste'==_0x5eaecd['subType'])for(const _0x550987 of _0x5eaecd['getMarkers']()){const _0x57dd82=_0x550987['getRange']()['getContainedElement']();if(_0x57dd82){if(_0x57dd82['is']('element','tableCellSuggestion')&&De(_0x57dd82)){_0x5eaecd['removeMarker'](_0x550987['name']),_0x207049['add'](_0x57dd82),_0x6e0c77=!0x0;const _0x231ee4=_0x57dd82['nextSibling'],_0x3e3487=_0x57dd82['previousSibling'],_0x248055=_0x231ee4&&_0x231ee4['is']('element','tableCellSuggestion'),_0xc721fa=_0x3e3487&&_0x3e3487['is']('element','tableCellSuggestion');_0x248055&&!_0x207049['has'](_0x231ee4)&&_0x58a229['add'](_0x231ee4),_0xc721fa&&!_0x207049['has'](_0x3e3487)&&_0x58a229['add'](_0x3e3487);}else _0x57dd82['is']('element','paragraph')&&_0x57dd82['isEmpty']&&(_0x5eaecd['removeMarker'](_0x550987['name']),_0x6e0c77=!0x0);}}else{if('tablePasteCell'==_0x5eaecd['subType']){if(!_0x5eaecd['attributes']||!_0x5eaecd['attributes']['tablePasteChainId'])continue;const _0x2c84ba=_0x5eaecd['attributes']['markerAttributes'];if(_0x2c84ba&&Object['keys'](_0x2c84ba)['length'])continue;const _0x3efe09=_0x5eaecd['attributes']['tablePasteChainId'];let _0x11dece=!0x0,_0xeb83a6=!0x0;for(const _0x5a70b3 of _0xd6f748)if(_0x5a70b3['subType']&&_0x5a70b3['subType']['startsWith']('tablePaste')){if(!_0x5a70b3['attributes']['tablePasteChainId']){_0xeb83a6=!0x1;break;}if(_0x5a70b3['id']!=_0x5eaecd['id']&&_0x5a70b3['attributes']['tablePasteChainId']==_0x3efe09){_0x11dece=!0x1;break;}}_0xeb83a6&&_0x11dece&&(_0x5eaecd['removeMarkers'](),_0x6e0c77=!0x0);}}for(const _0x418bff of _0x207049)_0x509219['remove'](_0x418bff);for(const _0x49105e of _0x58a229)_0x509219['unwrap'](_0x49105e);return _0x6e0c77;}),_0xd6eaaf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4afb42=>_0x51837e(_0x4afb42),'converterPriority':'high'}),_0xd6eaaf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x52f4b8,_0x1fd5d6)=>_0x1fd5d6['options']['showSuggestionHighlights']?_0x51837e(_0x52f4b8,!0x1):null,'converterPriority':'high'});const _0x52cb81=_0xd6eaaf['editing']['view'];this['listenTo'](_0x52cb81['document'],'clipboardOutput',(_0xd82fdb,_0x2737ed)=>{const _0x3e6a2e=[];for(const _0x2859dc of _0x52cb81['createRangeIn'](_0x2737ed['content'])['getItems']())_0x2859dc['is']('element','suggestion-td')&&_0x3e6a2e['push'](_0x2859dc);_0x52cb81['change'](_0x13f835=>{for(const _0x1b6959 of _0x3e6a2e)_0x13f835['move'](_0x13f835['createRangeIn'](_0x1b6959),_0x13f835['createPositionBefore'](_0x1b6959)),_0x13f835['remove'](_0x1b6959);});});}}function De(_0xa3f0ed){if(_0xa3f0ed['isEmpty'])return!0x0;const _0x23334e=_0xa3f0ed['getChild'](0x0);return _0x23334e['is']('element','paragraph')&&_0x23334e['isEmpty'];}function He(_0x46f23c,_0x508ef3={},_0x37e5d0){for(const {isAnchor:_0x338dcd,cellHeight:_0x5ab19b,cellWidth:_0x53a294}of _0x37e5d0['createTableWalker'](_0x46f23c,{'includeAllSlots':!0x0,..._0x508ef3}))if(!_0x338dcd||0x1!=_0x5ab19b||0x1!=_0x53a294)return!0x1;return!0x0;}class Tt extends _0x15a662{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x55941e=this['editor']['plugins']['get']('TrackChangesEditing');_0x55941e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x55941e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x55941e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55941e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x55941e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x55941e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x503faf,_0x4cc6d7){const _0xbe1ed2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f7eb1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x77ce98=_0x4cc6d7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x91fcb5=_0x4f7eb1['getColumnGroupElement'](_0x77ce98);let _0x18743e=_0x91fcb5?_0x4f7eb1['getTableColumnsWidths'](_0x91fcb5):null,_0x5f7fc6=_0x77ce98['getAttribute']('tableWidth')||null;const _0xd625fd=_0x4cc6d7['tableWidth']||_0x5f7fc6,_0x4e5646=_0x4cc6d7['columnWidths']||_0x18743e,_0x21304e=this['editor']['plugins']['get']('Users')['me'];for(const _0x155363 of _0xbe1ed2['getSuggestions']()){const _0x8ec9f4=_0x155363['getContainedElement']();if('resizeTable'===_0x155363['subType']&&_0x8ec9f4===_0x77ce98){_0x155363['author']!==_0x21304e&&_0x155363['discard']();const _0x5c0903=_0x155363['data']['commandParams'];_0x5f7fc6=_0x5c0903[0x0]['tableWidth'],_0x18743e=_0x5c0903[0x0]['columnWidths'];break;}}_0x503faf({'table':_0x77ce98,'tableWidth':_0xd625fd,'columnWidths':_0x4e5646}),_0xbe1ed2['markBlockFormat'](_0x77ce98,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5f7fc6,'columnWidths':_0x18743e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1ffcaf){if('formatBlock'!=_0x1ffcaf['type']&&'formatInline'!=_0x1ffcaf['type'])return;const {data:_0xed3cb9}=_0x1ffcaf;if(_0xed3cb9&&'resizeTable'===_0xed3cb9['formatGroupId']){const _0xaf00fc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xaf00fc)};}}}class Ot extends _0x15a662{['afterInit'](){const _0x384346=this['editor'];_0x384346['plugins']['has']('Template')&&_0x384346['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x15a662{['afterInit'](){const _0x56e647=this['editor'];if(!_0x56e647['commands']['get']('insertTableOfContents'))return;_0x56e647['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x318f35=_0x56e647['plugins']['get']('TrackChangesEditing'),_0x49b6c0=_0x56e647['locale'];_0x318f35['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18531f=>o(_0x49b6c0,'ELEMENT_TABLE_OF_CONTENTS',_0x18531f));}}class Et extends _0x15a662{['afterInit'](){const _0x539d90=this['editor'];if(!_0x539d90['plugins']['has']('Title'))return;const _0x56ff27=_0x539d90['plugins']['get']('TrackChangesEditing');_0x56ff27['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x539d90['locale'],'ELEMENT_TITLE')),_0x539d90['model']['document']['registerPostFixer'](_0x2a544a=>{let _0x217575=!0x1;const _0x4cb6e6=Array['from'](_0x539d90['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36062a,data:_0x5eb5cd}of _0x4cb6e6){const {group:_0x5e8689}=_0x56ff27['_splitMarkerName'](_0x36062a);if('suggestion'!==_0x5e8689||!_0x5eb5cd['newRange'])continue;const _0x39826a=_0x5eb5cd['newRange'],_0x49f86e=_0x39826a['end']['nodeBefore'];if(!_0x49f86e||!_0x49f86e['is']('element','title-content'))continue;if(!_0x39826a['start']['isTouching'](_0x39826a['end']))continue;const _0x7a81c4=_0x539d90['model']['schema']['getNearestSelectionRange'](_0x39826a['end'],'forward');if(_0x7a81c4&&_0x7a81c4['isCollapsed']){const _0x5665e5=_0x2a544a['createRange'](_0x39826a['start'],_0x7a81c4['start']);_0x5665e5['isEqual'](_0x39826a)||(_0x2a544a['updateMarker'](_0x36062a,{'range':_0x5665e5}),_0x217575=!0x0);}_0x217575||(_0x2a544a['removeMarker'](_0x36062a),_0x217575=!0x0);}return _0x217575;});}}class Rt extends _0x15a662{['afterInit'](){const _0xd018d7=this['editor'],_0x532c7e=_0xd018d7['plugins']['get']('TrackChangesEditing');_0xd018d7['plugins']['has']('Uploadcare')&&(_0x532c7e['enableCommand']('uploadcare'),_0xd018d7['plugins']['has']('UploadcareImageEdit')&&(_0x532c7e['enableCommand']('uploadcareImageEdit'),_0x532c7e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x532c7e['registerBlockAttribute']('uploadcareImageId'),_0x532c7e['descriptionFactory']['registerDescriptionCallback'](_0x533d9a=>{if('attribute'!=_0x533d9a['type'])return;const {data:_0x20fc62}=_0x533d9a;return _0x20fc62&&'uploadcareImageId'==_0x20fc62['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x15a662{['afterInit'](){const _0x3130c7=this['editor'],_0x52a91f=_0x3130c7['plugins']['get']('TrackChangesEditing');_0x3130c7['plugins']['has']('UndoEditing')&&(_0x52a91f['enableCommand']('undo'),_0x52a91f['enableCommand']('redo'));}}class Vt extends _0x15a662{static get['requires'](){return[$t];}['afterInit'](){const _0xd90ab4=this['editor'];if(!_0xd90ab4['plugins']['has']('TableCaptionEditing'))return;_0xd90ab4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x15a662{['tableProperties'];['tableCellProperties'];constructor(_0x6b40b6){super(_0x6b40b6),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 _0x4be2dc=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4f4228 of this['tableProperties'])_0x4be2dc['enableCommand'](_0x4f4228,(_0x44b191,_0x5b3da2)=>{const _0x2beb93=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4f4228,[_0x2beb93],this['tableProperties'],'tableProperties',_0x44b191,_0x5b3da2);});_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4be2dc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xf8e975,_0x32ad7e)=>this['handleDiscardAction'](this['tableProperties'],_0xf8e975,_0x32ad7e)),_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2e9ca8 of this['tableCellProperties'])_0x4be2dc['enableCommand'](_0x2e9ca8,(_0x3083d5,_0x5e18ce)=>{const _0xa4bb4b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2e9ca8,_0xa4bb4b,this['tableCellProperties'],'tableCellProperties',_0x3083d5,_0x5e18ce);});_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4be2dc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x153192,_0x17d57f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x153192,_0x17d57f)),_0x4be2dc['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4be2dc['descriptionFactory']['registerDescriptionCallback'](_0x543b74=>this['handleSuggestionDescription'](_0x543b74)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4262c0,_0x2f6e40,_0xef2bff,_0x38c368,_0x12e020,_0x406fc7){const _0x345b4f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x406fc7['batch'],()=>{for(const _0x47238f of _0x2f6e40){if(this['_getSuggestion'](_0x47238f,_0x38c368))_0x12e020(_0x406fc7);else{const _0x50f662={};for(const _0x417c8c of _0xef2bff){const _0x4e63ec=_0x47238f['getAttribute'](_0x417c8c);void 0x0!==_0x4e63ec&&(_0x50f662[_0x417c8c]=_0x4e63ec);}_0x12e020(_0x406fc7),_0x345b4f['markBlockFormat'](_0x47238f,{'commandParams':[_0x50f662]},[],_0x38c368);}}});}['handleDiscardAction'](_0x4313eb,_0x37e8ce,_0x117aae){const _0x127823=_0x37e8ce[0x0]['start']['nodeAfter'],_0x506bf9=_0x117aae['commandParams'][0x0];this['editor']['model']['change'](_0x5c60da=>{for(const _0x203a95 of _0x4313eb)void 0x0!==_0x506bf9[_0x203a95]?_0x5c60da['setAttribute'](_0x203a95,_0x506bf9[_0x203a95],_0x127823):_0x5c60da['removeAttribute'](_0x203a95,_0x127823);});}['handleSuggestionDescription'](_0x37d803){if(_0x37d803['data'])switch(_0x37d803['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'](_0x4028aa,_0x562b21){const _0x4e4840=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xd7d260 of _0x4e4840['getSuggestions']({'skipNotAttached':!0x0})){const _0x134b4c=_0xd7d260['getContainedElement']();if(_0xd7d260['subType']===_0x562b21&&_0x134b4c===_0x4028aa)return _0xd7d260;}return null;}['_registerTablePropertiesAttributes'](){const _0x516da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a9aac=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3a4f98 of _0x1a9aac){const _0x5c4e33=_0x3a4f98['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x516da['registerBlockAttribute'](_0x3a4f98),_0x516da['descriptionFactory']['registerAttributeLabel'](_0x3a4f98,o(this['editor']['locale'],'FORMAT_'+_0x5c4e33));}}}class Pt extends _0x15a662{['afterInit'](){const _0x500a7b=this['editor'];if(!_0x500a7b['plugins']['has']('LineHeight'))return;const _0x36934a=_0x500a7b['plugins']['get']('TrackChangesEditing'),_0x310c63=_0x500a7b['locale'];_0x36934a['enableDefaultAttributesIntegration']('lineHeight'),_0x36934a['registerBlockAttribute']('lineHeight'),_0x36934a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x310c63,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x15a662{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x289e10,_0x5ade70,_0x1e0249,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39d49a){super(_0x39d49a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3e2407,_0x1874dd,_0x5b4ca8,_0x356852)=>{this['_model']['change'](()=>{for(const _0x3765b7 of[..._0x356852,..._0x5b4ca8])this['_model']['markers']['has'](_0x3765b7)&&_0x39d49a['editing']['reconvertMarker'](_0x3765b7);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x39d49a['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(),_0x39d49a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x39d49a['config']['get']('trackChanges.trackFormatChanges'),_0x39d49a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x39d49a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x39d49a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x290be8=this['editor'],_0x273576=(_0x399b26,_0x5ecf30)=>{if('attribute'!=_0x399b26)return'ck-suggestion-marker-'+_0x399b26;const _0x2abcfc=_0x5ecf30['split']('|')[0x0];return this['_isBlockAttribute'](_0x2abcfc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x290be8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3833f4=>{const {id:_0x346dc8,authorId:_0x3f68f4,type:_0x1b3b02,subType:_0x342434}=this['_splitMarkerName'](_0x3833f4['markerName']),_0x5bf387=['ck-suggestion-marker',_0x273576(_0x1b3b02,_0x342434)];let _0xd3039b=0xbb8;return this['activeMarkers']['includes'](_0x3833f4['markerName'])&&(_0x5bf387['push']('ck-suggestion-marker--active'),_0xd3039b=0xbc2),'deletion'==_0x1b3b02&&(_0xd3039b+=0x5),{'classes':_0x5bf387,'attributes':{'data-suggestion':_0x346dc8,'data-author-id':_0x3f68f4},'priority':_0xd3039b};}}),_0x290be8['conversion']['for']('dataDowncast')['add'](_0x537ae7=>{_0x537ae7['on']('addMarker:suggestion',(_0x12d360,_0x23ca55,_0x1c7791)=>{if(!_0x1c7791['options']['showSuggestionHighlights'])return;const _0xcebad4=_0x23ca55['item'];if(!_0xcebad4)return;const _0x291b7e=_0x1c7791['mapper']['toViewElement'](_0xcebad4);_0x290be8['model']['schema']['isObject'](_0xcebad4)&&_0x291b7e&&!_0x291b7e['getCustomProperty']('widget')&&_0x291b7e['is']('containerElement')&&_0x2d86f4(_0x291b7e,_0x1c7791['writer']);},{'priority':'high'});}),_0x290be8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x583b69,_0x4c7b76)=>{if(!_0x4c7b76['options']['showSuggestionHighlights'])return null;const {id:_0x290811,authorId:_0x1343a9,type:_0x89a55,subType:_0x232c1a}=this['_splitMarkerName'](_0x583b69['markerName']);return{'classes':['ck-suggestion-marker',_0x273576(_0x89a55,_0x232c1a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x290811,'data-author-id':_0x1343a9}};}});const _0x3463a3=({showActiveMarkers:_0x540c6e=!0x0,isAttributeSuggestion:_0x9a9035=!0x1}={})=>(_0x554ee5,_0x2594fb,_0x5a6a85)=>{if(!_0x2594fb['item'])return;const {id:_0x5c5a21,authorId:_0x2f609f,subType:_0x4a4e4c}=this['_splitMarkerName'](_0x2594fb['markerName']);if(_0x9a9035){const _0x1d4a8d=se(_0x4a4e4c);if(!this['_isBlockAttribute'](_0x1d4a8d))return;}if(_0x2594fb['item']['is']('selection'))return void _0x5a6a85['consumable']['consume'](_0x2594fb['item'],_0x554ee5['name']);const _0xf2b7a5=_0x5a6a85['mapper']['toViewElement'](_0x2594fb['item']);if(_0x2594fb['item']['is']('element')&&_0x290be8['model']['schema']['isBlock'](_0x2594fb['item'])&&!_0xf2b7a5['getCustomProperty']('addHighlight')){_0x5a6a85['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xf2b7a5),_0x5a6a85['writer']['setAttribute']('data-suggestion',_0x5c5a21,_0xf2b7a5),_0x5a6a85['writer']['setAttribute']('data-author-id',_0x2f609f,_0xf2b7a5),_0x5a6a85['mapper']['bindElementToMarker'](_0xf2b7a5,_0x2594fb['markerName']),_0x540c6e&&(this['activeMarkers']['includes'](_0x2594fb['markerName'])?_0x5a6a85['writer']['addClass']('ck-suggestion-marker--active',_0xf2b7a5):_0x5a6a85['writer']['removeClass']('ck-suggestion-marker--active',_0xf2b7a5));for(const _0x4e87ca of _0x290be8['model']['createRangeIn'](_0x2594fb['item'])['getItems']())_0x5a6a85['consumable']['consume'](_0x4e87ca,_0x554ee5['name']);_0x5a6a85['consumable']['consume'](_0x2594fb['item'],_0x554ee5['name']);}};_0x290be8['conversion']['for']('dataDowncast')['add'](_0x402302=>{_0x402302['on']('addMarker:suggestion:formatBlock',(_0x4c03e3,_0x50abe1,_0x10cb5a)=>{_0x10cb5a['options']['showSuggestionHighlights']&&_0x3463a3({'showActiveMarkers':!0x1})(_0x4c03e3,_0x50abe1,_0x10cb5a);},{'priority':'highest'});}),_0x290be8['conversion']['for']('dataDowncast')['add'](_0x179d57=>{_0x179d57['on']('addMarker:suggestion:attribute',(_0x3c5076,_0x43691a,_0x33cb70)=>{_0x33cb70['options']['showSuggestionHighlights']&&_0x3463a3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3c5076,_0x43691a,_0x33cb70);},{'priority':'highest'});}),_0x290be8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x19011a,_0x3f666d)=>{if(_0x3f666d['options']['showSuggestionHighlights']){const {id:_0x4e106d,authorId:_0x4c7b4b}=this['_splitMarkerName'](_0x19011a);return _0x19011a['includes'](':split')||_0x19011a['includes'](':merge')?{'group':'suggestion','name':_0x19011a['substr'](0xb),'attributes':{'data-suggestion':_0x4e106d,'data-author-id':_0x4c7b4b}}:null;}return{'group':'suggestion','name':_0x19011a['substr'](0xb)};}}),_0x290be8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1e7b17,{writer:_0x320b9d})=>{let _0x392193='suggestion:'+_0x1e7b17['getAttribute']('suggestion-type')+':'+_0x1e7b17['getAttribute']('id');return _0x1e7b17['getAttribute']('marker-count')&&(_0x392193+=':'+_0x1e7b17['getAttribute']('marker-count')),_0x320b9d['createElement']('$marker',{'data-name':_0x392193});}}),_0x290be8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x290be8['conversion']['for']('editingDowncast')['add'](_0x59c65d=>{_0x59c65d['on']('addMarker:suggestion:formatBlock',_0x3463a3(),{'priority':'high'});}),_0x290be8['conversion']['for']('editingDowncast')['add'](_0x5afb35=>{_0x5afb35['on']('addMarker:suggestion:attribute',_0x3463a3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x290be8['conversion']['for']('editingDowncast')['add'](_0x284a70=>{_0x284a70['on']('removeMarker:suggestion:formatBlock',(_0x221505,_0x3a70d4,_0x2c64aa)=>{const _0x1a5670=_0x2c64aa['mapper']['markerNameToElements'](_0x3a70d4['markerName']);if(_0x1a5670){for(const _0x2d0582 of _0x1a5670)_0x2d0582['getCustomProperty']('addHighlight')||(_0x2c64aa['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2d0582),_0x2c64aa['writer']['removeAttribute']('data-suggestion',_0x2d0582),_0x2c64aa['writer']['removeAttribute']('data-author-id',_0x2d0582),_0x2c64aa['mapper']['unbindElementFromMarkerName'](_0x2d0582,_0x3a70d4['markerName']));}},{'priority':'high'});}),_0x290be8['conversion']['for']('editingDowncast')['add'](_0x4b4bbd=>{_0x4b4bbd['on']('removeMarker:suggestion:attribute',(_0x5db8f1,_0x3db891,_0xe15776)=>{const _0x18ef9b=_0xe15776['mapper']['markerNameToElements'](_0x3db891['markerName']);if(!_0x18ef9b)return;const {subType:_0x196c07}=this['_splitMarkerName'](_0x3db891['markerName']),_0x32bc2c=se(_0x196c07);if(this['_isBlockAttribute'](_0x32bc2c)){for(const _0x5a68e2 of _0x18ef9b)_0x5a68e2['getCustomProperty']('addHighlight')||(_0xe15776['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a68e2),_0xe15776['writer']['removeAttribute']('data-suggestion',_0x5a68e2),_0xe15776['writer']['removeAttribute']('data-author-id',_0x5a68e2),_0xe15776['mapper']['unbindElementFromMarkerName'](_0x5a68e2,_0x3db891['markerName']));}},{'priority':'high'});}),_0x290be8['model']['document']['registerPostFixer'](_0x4ef638=>{let _0x3de4b2=!0x1;const _0x693219=Array['from'](_0x290be8['model']['document']['differ']['getChangedMarkers']()),_0xb31f25=new Set();for(const {name:_0x46ac4e,data:_0xa2abf7}of _0x693219){const {group:_0x250d17,type:_0x5e5783,subType:_0x46c5e6,id:_0x57f024}=this['_splitMarkerName'](_0x46ac4e);if('suggestion'!==_0x250d17)continue;const _0x4d32b3=_0x46c5e6?'suggestion:'+_0x5e5783+':'+_0x46c5e6+':'+_0x57f024:'suggestion:'+_0x5e5783+':'+_0x57f024,_0x160254=_0x290be8['model']['markers']['getMarkersGroup'](_0x4d32b3),_0x496df0=_0x290be8['model']['markers']['get'](_0x46ac4e),_0xea7f16=this['_suggestions']['get'](_0x57f024);if(null!=_0xa2abf7['newRange']){'formatInline'==_0x5e5783&&(_0x3de4b2=_0x3de4b2||Ht(_0xa2abf7['newRange'],_0x46ac4e,_0x4ef638,_0x290be8['model']['schema']));const _0x362f9f='attribute'==_0x5e5783&&this['_isBlockAttribute'](_0x46c5e6['split']('|')[0x0]),_0x3de6e2='attribute'==_0x5e5783&&this['_isInlineAttribute'](_0x46c5e6['split']('|')[0x0]);if(_0xa2abf7['newRange']['isCollapsed']||'$graveyard'==_0xa2abf7['newRange']['root']['rootName']||'formatBlock'==_0x5e5783&&!qt(_0xa2abf7['newRange'])||_0x362f9f&&!qt(_0xa2abf7['newRange'])||_0x3de6e2&&zt(_0xa2abf7['newRange'])||'deletion'==_0x5e5783&&zt(_0xa2abf7['newRange'])||_0x496df0&&Qt(_0x496df0,_0x160254))_0x4ef638['removeMarker'](_0x46ac4e),_0x3de4b2=!0x0;else{if(!_0xea7f16||!_0xea7f16['isInContent'])continue;if(_0xa2abf7['newRange']&&_0xa2abf7['oldRange']&&_0xa2abf7['newRange']['isEqual'](_0xa2abf7['oldRange']))continue;_0xb31f25['add'](_0xea7f16);}}}return _0xb31f25['size']>0x0&&(_0x3de4b2=!!this['_joinWithAdjacentSuggestions'](_0xb31f25)||_0x3de4b2),_0x3de4b2;}),_0x290be8['model']['document']['registerPostFixer'](_0x23a877=>{let _0x705c76=!0x1;for(const _0x153b7a of _0x290be8['model']['document']['differ']['getChanges']())if('insert'==_0x153b7a['type'])for(const _0x3ca41f of this['_suggestions']['values']()){if(_0x3ca41f['isMultiRange']||!_0x3ca41f['isInContent'])continue;const _0x5617e9='formatBlock'==_0x3ca41f['type'],_0x421637=this['_getAttributeKey'](_0x3ca41f),_0x278d56=_0x421637&&this['_isBlockAttribute'](_0x421637);if(!_0x5617e9&&!_0x278d56)continue;const _0x5087e7=_0x3ca41f['getFirstRange']();if(_0x5087e7['start']['parent']!=_0x5087e7['end']['parent']&&!_0x5087e7['end']['isAtEnd']){const _0x3c7a5d=_0x290be8['model']['createPositionAt'](_0x5087e7['start']['nodeAfter'],'end'),_0x7225b4=_0x290be8['model']['createRange'](_0x5087e7['start'],_0x3c7a5d);_0x23a877['updateMarker'](_0x3ca41f['getFirstMarker'](),{'range':_0x7225b4}),_0x705c76=!0x0;}}return _0x705c76;}),_0x290be8['model']['document']['registerPostFixer'](_0x5b76f2=>this['_processAttributeChanges'](_0x5b76f2)),_0x290be8['model']['document']['registerPostFixer'](_0x7eca5b=>!_0x7eca5b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x7eca5b)),_0x290be8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x290be8['model']['document']['on']('change:data',(_0x590a0c,_0x57dcec)=>{if(!_0x57dcec['isLocal']||_0x57dcec['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x443c18=_0x290be8['model']['document']['differ']['getChanges']();if(0x0==_0x443c18['length'])return;const _0x1c1614=[],_0x19b08c=_0x443c18['filter'](_0x335eef=>'attribute'==_0x335eef['type']),_0xa7d9ad=_0x443c18['filter'](_0x114941=>'insert'==_0x114941['type']&&'$text'!=_0x114941['name']);for(const _0x3671c3 of _0x19b08c)this['_isRegisteredAttribute'](_0x3671c3['attributeKey'])&&_0x1c1614['push']({'key':_0x3671c3['attributeKey'],'newValue':_0x3671c3['attributeNewValue'],'oldValue':_0x3671c3['attributeOldValue'],'range':Yt(_0x3671c3['range'],_0x290be8['model'])});for(const _0x390456 of _0xa7d9ad){if('rename'!=_0x390456['action']&&'refresh'!=_0x390456['action'])continue;const _0x5ad262=Zt(_0x390456['position']['nodeAfter'],_0x290be8['model']),_0x580e11=_0x390456['before'];'rename'==_0x390456['action']&&_0x1c1614['push']({'key':m,'newValue':_0x390456['name'],'oldValue':_0x580e11['name'],'range':_0x5ad262});for(const [_0x48500a,_0x5e06a2]of _0x580e11['attributes']){if(!this['_isRegisteredAttribute'](_0x48500a))continue;const _0x106419=_0x390456['attributes']['get'](_0x48500a);_0x5e06a2!==_0x106419&&_0x1c1614['push']({'key':_0x48500a,'newValue':_0x106419,'oldValue':_0x5e06a2,'range':_0x5ad262});}for(const [_0x46d081,_0x11b045]of _0x390456['attributes'])this['_isRegisteredAttribute'](_0x46d081)&&(_0x580e11['attributes']['has'](_0x46d081)||_0x1c1614['push']({'key':_0x46d081,'newValue':_0x11b045,'oldValue':null,'range':_0x5ad262}));}0x0!=_0x1c1614['length']&&_0x290be8['model']['enqueueChange'](_0x57dcec,_0x31181d=>{const _0x594f92=_0xb1da02();for(const {range:_0x1410f3,key:_0x48737d,oldValue:_0x110825,newValue:_0xe8b337}of _0x1c1614)this['markAttributeChange'](_0x1410f3,_0x48737d,_0x110825,_0xe8b337,{'groupId':_0x594f92});this['_reduceExistingSuggestions'](_0x31181d,_0x1c1614);});},{'priority':'lowest'}),_0x290be8['model']['markers']['on']('update:suggestion',(_0x40a265,_0x135f78,_0x5403af)=>{if(null==_0x5403af){const {id:_0x2cfb39}=this['_splitMarkerName'](_0x135f78['name']),_0x1a21be=this['_suggestions']['get'](_0x2cfb39);_0x1a21be&&_0x1a21be['addMarkerName'](_0x135f78['name']);}}),_0x290be8['model']['document']['on']('change:data',()=>{const _0x537b2f=Array['from'](_0x290be8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x58f1f9=>'suggestion'===this['_splitMarkerName'](_0x58f1f9['name'])['group']);if(0x0===_0x537b2f['length'])return;_0x537b2f['sort']((_0x3d5f3d,_0x1101b9)=>{const _0x3253cc=_0x3d5f3d['data']['oldRange'],_0x440ccc=_0x1101b9['data']['oldRange'];return null===_0x3253cc&&null===_0x440ccc?0x0:null===_0x3253cc&&null!==_0x440ccc?-0x1:null!==_0x3253cc&&null===_0x440ccc?0x1:_0x3253cc['start']['isBefore'](_0x440ccc['start'])?-0x1:0x1;});const _0x8b67bf=new Set(),_0x46c4e0=new Set();for(const {name:_0x58c3e1,data:_0x26aa69}of _0x537b2f){const {id:_0xfb0002}=this['_splitMarkerName'](_0x58c3e1);if(null===_0x26aa69['oldRange']){const _0x13343f=this['_handleNewSuggestionMarker'](_0x58c3e1);_0x46c4e0['add'](_0x13343f);}else{const _0x43ad83=this['_suggestions']['get'](_0xfb0002);null!==_0x26aa69['newRange']||_0x43ad83['isInContent']?(_0x8b67bf['add'](_0x43ad83['head']),_0x46c4e0['add'](_0x43ad83)):this['_removeSuggestion'](_0x43ad83);}}_0x46c4e0['size']>0x0&&this['_refreshSuggestionsChain'](_0x46c4e0);for(const _0x50e73d of _0x8b67bf)this['fire']('suggestionChanged',_0x50e73d);}),_0x290be8['model']['on']('applyOperation',(_0x120fdc,_0x336b04)=>{const _0x5b0c8b=_0x336b04[0x0];if(!this['_suggestions']['size'])return;if(!_0x5b0c8b['isDocumentOperation'])return;if(_0x5b0c8b['batch']['isUndo']||!_0x5b0c8b['batch']['isLocal'])return;let _0x3d545e,_0x3324e7;switch(_0x5b0c8b['type']){case'insert':_0x3d545e=_0x290be8['model']['createPositionAt'](_0x5b0c8b['position']),_0x3324e7=_0x3d545e['getShiftedBy'](_0x5b0c8b['howMany']);break;case'split':_0x3d545e=_0x290be8['model']['createPositionAt'](_0x5b0c8b['splitPosition']),_0x3324e7=_0x290be8['model']['createPositionAt'](_0x5b0c8b['moveTargetPosition']);break;case'move':_0x3d545e=_0x290be8['model']['createPositionAt'](_0x5b0c8b['targetPosition']),_0x3324e7=_0x3d545e['getShiftedBy'](_0x5b0c8b['howMany']);break;default:return;}const _0x31638d=_0x290be8['model']['createRange'](_0x3d545e,_0x3324e7);_0x290be8['model']['change'](()=>{for(const {suggestion:_0x1b3a9a,meta:_0x267833}of this['_findSuggestions'](_0x31638d)){if(_0x1b3a9a['isMultiRange'])continue;if('formatInline'==_0x1b3a9a['type'])continue;const _0x35d24d=this['_getAttributeKey'](_0x1b3a9a);if(_0x35d24d&&this['_isBlockAttribute'](_0x35d24d)&&'split'!=_0x5b0c8b['type'])continue;const _0x387af2=_0x1b3a9a['data']&&_0x1b3a9a['data']['multipleBlocks'];('formatBlock'!=_0x1b3a9a['type']||'split'==_0x5b0c8b['type']&&!_0x387af2)&&(_0x267833['containsRangeInObject']||'insertion'==_0x1b3a9a['type']&&_0x267833['isOwn']||_0x1b3a9a['getFirstRange']()['containsRange'](_0x31638d)&&this['_breakSuggestionMarker'](_0x1b3a9a,_0x3d545e,_0x3324e7));}});},{'priority':'lowest'}),_0x290be8['model']['on']('deleteContent',(_0x345651,_0x265a7d)=>{const _0x835a4c=_0x265a7d[0x0],_0x551cbf=_0x265a7d[0x1];if(_0x551cbf&&_0x551cbf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x835a4c['isCollapsed'])return;const _0x57e262=_0x290be8['model']['schema'],{start:_0x1009de,end:_0x245860}=_0x835a4c['getFirstRange'](),_0x2c2a83=_0x1009de['nodeAfter']&&_0x57e262['isLimit'](_0x1009de['nodeAfter'])?null:_0x57e262['getNearestSelectionRange'](_0x1009de,'forward'),_0x1bcd6b=_0x245860['nodeBefore']&&_0x57e262['isLimit'](_0x245860['nodeBefore'])?null:_0x57e262['getNearestSelectionRange'](_0x245860,'backward'),_0x4f28f5=_0x290be8['model']['createRange'](_0x2c2a83?_0x2c2a83['start']:_0x1009de,_0x1bcd6b?_0x1bcd6b['end']:_0x245860);_0x290be8['model']['change'](_0x51653c=>{this['markDeletion'](_0x4f28f5);const _0x4ceb2f=_0x290be8['model']['schema']['getNearestSelectionRange'](_0x4f28f5['start']);_0x835a4c['is']('documentSelection')?_0x51653c['setSelection'](_0x4ceb2f):_0x835a4c['setTo'](_0x4ceb2f);}),_0x345651['stop']();},{'priority':_0x1425d6['normal']+0xa}),_0x290be8['model']['on']('insertContent',(_0x4540b2,_0x46961d)=>{const _0x45260e=_0x46961d[_0x46961d['length']-0x1];_0x45260e&&_0x45260e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x290be8['model']['change'](()=>{let _0x252ab8=_0x290be8['model']['insertContent'](_0x46961d[0x0],_0x46961d[0x1],_0x46961d[0x2],{'forceDefaultExecution':!0x0});if(!_0x252ab8)return;_0x4540b2['return']=_0x252ab8['clone']();const _0x458f75=_0x252ab8['end']['nodeBefore'],_0xb03e65=_0x290be8['model']['schema'];_0x458f75&&_0xb03e65['isBlock'](_0x458f75)&&!_0xb03e65['isObject'](_0x458f75)&&(_0x252ab8=_0x290be8['model']['createRange'](_0x252ab8['start'],_0x290be8['model']['createPositionAt'](_0x458f75,'end'))),this['markInsertion'](_0x252ab8);}),_0x4540b2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ea10a=new T(_0x290be8,this['_suggestions']);_0x290be8['commands']['add']('acceptSuggestion',_0x3ea10a),this['enableCommand']('acceptSuggestion');const _0x3ce9f1=new O(_0x290be8,this['_suggestions']);_0x290be8['commands']['add']('discardSuggestion',_0x3ce9f1),this['enableCommand']('discardSuggestion'),_0x290be8['commands']['add']('acceptAllSuggestions',new x(_0x290be8,_0x3ea10a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x290be8['commands']['add']('discardAllSuggestions',new x(_0x290be8,_0x3ce9f1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x290be8['commands']['add']('acceptSelectedSuggestions',new E(_0x290be8,_0x3ea10a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x290be8['commands']['add']('discardSelectedSuggestions',new E(_0x290be8,_0x3ce9f1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x223313=_0x290be8['plugins']['get']('CommentsRepository');this['listenTo'](_0x223313,'addComment',(_0x573cdc,{threadId:_0x3bfde2})=>{const _0x290cc0=this['_suggestions']['get'](_0x3bfde2);_0x290cc0&&_0x290cc0['commentThread']&&0x1===_0x290cc0['commentThread']['length']&&this['_updateSuggestionData'](_0x3bfde2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x223313,'removeComment',(_0x4c084b,{threadId:_0x2c9814})=>{const _0x4ed2e6=this['_suggestions']['get'](_0x2c9814);_0x4ed2e6&&_0x4ed2e6['commentThread']&&!_0x4ed2e6['commentThread']['length']&&this['_updateSuggestionData'](_0x2c9814,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x182c91){const _0x2ad891=_0x54142c([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x11f998=0x6b0f5e6f,_0xc5196c=0x6b082ac7^_0x11f998,_0x3cfd9c=window[_0x54142c([0x44,0x61,0x74,0x65])][_0x54142c([0x6e,0x6f,0x77])](),_0x7a8282=_0x182c91[_0x54142c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26cc56=new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e2c71=>{_0x7a8282[_0x54142c([0x6f,0x6e,0x63,0x65])](_0x54142c([0x72,0x65,0x61,0x64,0x79]),_0x2e2c71);}),_0x28ef91={[_0x54142c([0x6b,0x74,0x79])]:_0x54142c([0x45,0x43]),[_0x54142c([0x75,0x73,0x65])]:_0x54142c([0x73,0x69,0x67]),[_0x54142c([0x63,0x72,0x76])]:_0x54142c([0x50,0x2d,0x32,0x35,0x36]),[_0x54142c([0x78])]:_0x54142c([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]),[_0x54142c([0x79])]:_0x54142c([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]),[_0x54142c([0x61,0x6c,0x67])]:_0x54142c([0x45,0x53,0x32,0x35,0x36])},_0x513efa=_0x7a8282[_0x54142c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54142c([0x67,0x65,0x74])](_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x280ff2(){let _0x167a68,_0x27e6ae=null,_0x2ba002=null;try{if(_0x513efa==_0x54142c([0x47,0x50,0x4c]))return _0x54142c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x167a68=_0x4204a3(),!_0x167a68)return _0x54142c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x167a68[_0x54142c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ba002=_0x7684d3(_0x167a68[_0x54142c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x167a68[_0x54142c([0x6a,0x74,0x69])])),await _0x2a8b45()?_0x316799()?_0x3f8ebf()?_0x54142c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40849d()?(_0x167a68[_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54142c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27e6ae=_0x137a76(_0x54142c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x167a68[_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54142c([0x74,0x72,0x69,0x61,0x6c])&&(_0x27e6ae=_0x137a76(_0x54142c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2aa5df()):_0x54142c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54142c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54142c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54142c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f8ebf(){const _0x2a4415=[_0x54142c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54142c([0x74,0x72,0x69,0x61,0x6c])][_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x167a68[_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cfd9c/0x3e8:0xe10*_0xc5196c;return _0x167a68[_0x54142c([0x65,0x78,0x70])]<_0x2a4415;}function _0x316799(){const _0x178767=_0x167a68[_0x54142c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x178767)return!0x1;if(_0x178767[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54142c([0x2a])))return!0x0;if(_0x178767[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54142c([0x54,0x43])))return!0x0;if(_0x178767[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54142c([0x52,0x54,0x43]))){if(_0x238003())return!0x0;if(_0x493b49()||_0x2a8610())return!0x0;}return!0x1;}function _0x40849d(){const _0x32c340=_0x167a68[_0x54142c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32c340||0x0==_0x32c340[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58c6b1}=new URL(window[_0x54142c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32c340[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58c6b1))return!0x0;const _0x554bc7=_0x58c6b1[_0x54142c([0x73,0x70,0x6c,0x69,0x74])](_0x54142c([0x2e]));return _0x32c340[_0x54142c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x106e97=>_0x106e97[_0x54142c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54142c([0x2a])))[_0x54142c([0x6d,0x61,0x70])](_0x16875b=>_0x16875b[_0x54142c([0x73,0x70,0x6c,0x69,0x74])](_0x54142c([0x2e])))[_0x54142c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x424cd6=>_0x424cd6[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x554bc7[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54142c([0x6d,0x61,0x70])](_0x2d1969=>Array(_0x554bc7[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d1969[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54142c([0x66,0x69,0x6c,0x6c])](_0x2d1969[0x0]===_0x54142c([0x2a])?_0x54142c([0x2a]):'')[_0x54142c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d1969))[_0x54142c([0x73,0x6f,0x6d,0x65])](_0x5f53a2=>_0x554bc7[_0x54142c([0x65,0x76,0x65,0x72,0x79])]((_0x3387b5,_0x11b991)=>_0x5f53a2[_0x11b991]===_0x3387b5||_0x5f53a2[_0x11b991]===_0x54142c([0x2a])));}function _0x2aa5df(){return _0x27e6ae&&_0x2ba002?new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4133a6,_0x3bd4c9)=>{_0x27e6ae[_0x54142c([0x74,0x68,0x65,0x6e])](_0x4133a6,_0x3bd4c9),_0x2ba002[_0x54142c([0x74,0x68,0x65,0x6e])](_0x3328d3=>{_0x3328d3!=_0x54142c([0x56,0x61,0x6c,0x69,0x64])&&_0x4133a6(_0x3328d3);},_0x3bd4c9);}):_0x27e6ae||_0x2ba002||_0x54142c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7684d3(_0x8619b6,_0x341edc){return new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e9a52=>{if(_0x3d7ce8())return _0x1e9a52(_0x54142c([0x56,0x61,0x6c,0x69,0x64]));_0x3ab73f(),_0x7a8282[_0x54142c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54142c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd2567=!0x1;const _0x1c16a5=_0xb1da02();function _0xdf9d39(_0x5e83b7){return!!_0x5e83b7&&(typeof _0x5e83b7===_0x54142c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e83b7===_0x54142c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e83b7[_0x54142c([0x74,0x68,0x65,0x6e])]===_0x54142c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e83b7[_0x54142c([0x63,0x61,0x74,0x63,0x68])]===_0x54142c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x149fa0(_0x4d56e6){_0x5e85b2(_0x4d56e6)[_0x54142c([0x74,0x68,0x65,0x6e])](_0x5324c5=>{if(!_0x5324c5||_0x5324c5[_0x54142c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54142c([0x6f,0x6b]))return _0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x157ba1(_0x241877(_0x1c16a5+_0x341edc))!=_0x5324c5[_0x54142c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54142c([0x56,0x61,0x6c,0x69,0x64]);})[_0x54142c([0x74,0x68,0x65,0x6e])](_0x405966=>(_0x5b9258(),_0x405966),()=>{const _0x482cba=_0x54f109();return null==_0x482cba?(_0x5b9258(),_0x54142c([0x56,0x61,0x6c,0x69,0x64])):_0x54142c(_0x3cfd9c-_0x482cba>(0x4f03da6f^_0x11f998)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54142c([0x74,0x68,0x65,0x6e])](_0x1e9a52)[_0x54142c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1e9a52(_0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd3cdae=0x6b39b0ef^_0x11f998;function _0x5b9258(){const _0x5640b5=_0x54142c([0x6c,0x6c,0x63,0x74,0x2d])+_0x157ba1(_0x241877(_0x8619b6)),_0x2f8968=_0xf3ba99(_0x157ba1(window[_0x54142c([0x4d,0x61,0x74,0x68])][_0x54142c([0x63,0x65,0x69,0x6c])](_0x3cfd9c/_0xd3cdae)));window[_0x54142c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54142c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5640b5,_0x2f8968);}function _0x54f109(){const _0xfe1195=_0x54142c([0x6c,0x6c,0x63,0x74,0x2d])+_0x157ba1(_0x241877(_0x8619b6)),_0x36d15f=window[_0x54142c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54142c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfe1195);return _0x36d15f?window[_0x54142c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf3ba99(_0x36d15f),0x10)*_0xd3cdae:null;}function _0x5e85b2(_0x47f4db){return new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x390b6c,_0x50786a)=>{_0x47f4db[_0x54142c([0x74,0x68,0x65,0x6e])](_0x390b6c,_0x50786a),window[_0x54142c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50786a,0x6b0e8aaf^_0x11f998);});}}_0x7a8282[_0x54142c([0x6f,0x6e])](_0x54142c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20c3c1,_0x34c569)=>{if(_0x34c569[0x0]!=_0x8619b6)return _0x1e9a52(_0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34c569[0x1]={..._0x34c569[0x1],[_0x54142c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c16a5};},{[_0x54142c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54142c([0x68,0x69,0x67,0x68])}),_0x7a8282[_0x54142c([0x6f,0x6e])](_0x54142c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12af34=>{_0xdf9d39(_0x12af34[_0x54142c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd2567=!0x0,_0x149fa0(_0x12af34[_0x54142c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54142c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54142c([0x6c,0x6f,0x77])}),_0x26cc56[_0x54142c([0x74,0x68,0x65,0x6e])](()=>{_0xd2567||_0x1e9a52(_0x54142c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d7ce8(){return _0x7a8282[_0x54142c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54142c([0x76,0x69,0x65,0x77])][_0x54142c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54142c([0x61,0x75,0x74,0x6f]);}function _0x3ab73f(){_0x7a8282[_0x54142c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54142c([0x76,0x69,0x65,0x77])][_0x54142c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54142c([0x61,0x75,0x74,0x6f]);}}function _0x137a76(_0xca0de5){const _0x4db185=[new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x415abd=>setTimeout(_0x415abd,0x6b0660a3^_0x11f998)),_0x26cc56[_0x54142c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52deb7=>{let _0x5785b7=0x0;_0x7a8282[_0x54142c([0x6d,0x6f,0x64,0x65,0x6c])][_0x54142c([0x6f,0x6e])](_0x54142c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x9767e6,_0x268176)=>{_0x268176[0x0][_0x54142c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5785b7++,_0x5785b7==(0x6b0f5f97^_0x11f998)&&(_0x52deb7(),_0x9767e6[_0x54142c([0x6f,0x66,0x66])]());});}))];return window[_0x54142c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54142c([0x72,0x61,0x63,0x65])](_0x4db185)[_0x54142c([0x74,0x68,0x65,0x6e])](()=>_0xca0de5);}async function _0x54c395(){await _0x26cc56,_0x7a8282[_0x54142c([0x6d,0x6f,0x64,0x65,0x6c])][_0x54142c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3e7976,_0x7a8282[_0x54142c([0x6d,0x6f,0x64,0x65,0x6c])][_0x54142c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3e7976,_0x7a8282[_0x54142c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54142c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x238003(){return _0x5f3f10(_0x54142c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xb085ef(_0x54142c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x54142c([0x73,0x74,0x61,0x74,0x65])]==_0x54142c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x493b49(){return _0x5f3f10(_0x54142c([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 _0x2a8610(){return _0x5f3f10(_0x54142c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x55c767(_0x2659b4){const _0x1dc48a=_0x53b060();_0x7a8282[_0x1dc48a]=_0x54142c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2659b4,_0x2659b4!=_0x54142c([0x56,0x61,0x6c,0x69,0x64])&&_0x54c395();}function _0x53b060(){const _0x23923f=window[_0x54142c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54142c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54142c([0x6e,0x6f,0x77])]())[_0x54142c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54142c([0x2e]),'');let _0x7b7e0b=_0x54142c([0x67]);for(let _0x5cc174=0x0;_0x5cc174<_0x23923f[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cc174+=0x2){let _0x26f1a7=window[_0x54142c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23923f[_0x54142c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cc174,_0x5cc174+0x2));_0x26f1a7>=_0x2ad891[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26f1a7-=_0x2ad891[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7b7e0b+=_0x2ad891[_0x26f1a7];}return _0x7b7e0b;}function _0x4204a3(){const _0x814a9c=_0x513efa[_0x54142c([0x73,0x70,0x6c,0x69,0x74])](_0x54142c([0x2e]));if(0x3!=_0x814a9c[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c8943(_0x814a9c[0x1]);function _0x4c8943(_0x55d318){const _0x188317=_0x436694(_0x55d318);return _0x188317&&_0x5454fe()?_0x188317:null;function _0x5454fe(){const _0x55e973=_0x188317[_0x54142c([0x6a,0x74,0x69])],_0x245b40=window[_0x54142c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55e973[_0x54142c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55e973[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4812da={..._0x188317,[_0x54142c([0x6a,0x74,0x69])]:_0x55e973[_0x54142c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55e973[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4812da[_0x54142c([0x76,0x63])],_0x241877(_0x4812da)==_0x245b40;}}}async function _0x2a8b45(){let _0x35746e=!0x0;try{const _0x589617=_0x513efa[_0x54142c([0x73,0x70,0x6c,0x69,0x74])](_0x54142c([0x2e])),[_0x565341,_0x4e8953,_0x5023a0]=_0x589617;return _0x42273c(_0x565341),await _0x333a53(_0x565341,_0x4e8953,_0x5023a0),_0x35746e;}catch{return!0x1;}function _0x42273c(_0x5233f4){const _0x4c99ac=_0x436694(_0x5233f4);_0x4c99ac&&_0x4c99ac[_0x54142c([0x61,0x6c,0x67])]==_0x54142c([0x45,0x53,0x32,0x35,0x36])||(_0x35746e=!0x1);}async function _0x333a53(_0x255c69,_0x2ebe3e,_0x2194e6){const _0x2f742e=window[_0x54142c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54142c([0x66,0x72,0x6f,0x6d])](_0x227cdf(_0x2194e6),_0x4e0992=>_0x4e0992[_0x54142c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcfe1d7=new window[(_0x54142c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54142c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x255c69+_0x54142c([0x2e])+_0x2ebe3e),_0x125ec9=window[_0x54142c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54142c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x125ec9)return;const _0x3cdc31=await _0x125ec9[_0x54142c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54142c([0x6a,0x77,0x6b]),_0x28ef91,{[_0x54142c([0x6e,0x61,0x6d,0x65])]:_0x54142c([0x45,0x43,0x44,0x53,0x41]),[_0x54142c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54142c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54142c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x125ec9[_0x54142c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54142c([0x6e,0x61,0x6d,0x65])]:_0x54142c([0x45,0x43,0x44,0x53,0x41]),[_0x54142c([0x68,0x61,0x73,0x68])]:{[_0x54142c([0x6e,0x61,0x6d,0x65])]:_0x54142c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3cdc31,_0x2f742e,_0xcfe1d7)||(_0x35746e=!0x1);}}function _0x436694(_0x4c5fb4){return _0x4c5fb4[_0x54142c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54142c([0x65,0x79]))?JSON[_0x54142c([0x70,0x61,0x72,0x73,0x65])](_0x227cdf(_0x4c5fb4)):null;}function _0x227cdf(_0xcc2377){return window[_0x54142c([0x61,0x74,0x6f,0x62])](_0xcc2377[_0x54142c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54142c([0x2b]))[_0x54142c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54142c([0x2f])));}function _0x241877(_0x312c43){let _0x1c5024=0x1505;function _0x357f50(_0x15c545){for(let _0x3dc893=0x0;_0x3dc893<_0x15c545[_0x54142c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dc893++){const _0x2003ad=_0x15c545[_0x54142c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dc893);_0x1c5024=(_0x1c5024<<0x5)+_0x1c5024+_0x2003ad,_0x1c5024&=_0x1c5024;}}function _0x32c138(_0x460084){Array[_0x54142c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x460084)?_0x460084[_0x54142c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x32c138):_0x460084&&typeof _0x460084==_0x54142c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54142c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x460084)[_0x54142c([0x73,0x6f,0x72,0x74])]()[_0x54142c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3dee4b,_0x31c719])=>{_0x357f50(_0x3dee4b),_0x32c138(_0x31c719);}):_0x357f50(window[_0x54142c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x460084));}return _0x32c138(_0x312c43),_0x1c5024>>>0x0;}function _0x157ba1(_0x50ce37){return _0x50ce37[_0x54142c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54142c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54142c([0x30]));}function _0xf3ba99(_0x446fe5){return _0x446fe5[_0x54142c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54142c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54142c([0x6a,0x6f,0x69,0x6e])]('');}function _0x5f3f10(_0x187c51){return _0x7a8282[_0x54142c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54142c([0x68,0x61,0x73])](_0x187c51);}function _0xb085ef(_0xfc7f63){return _0x7a8282[_0x54142c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54142c([0x67,0x65,0x74])](_0xfc7f63);}function _0x3e7976(){}function _0x54142c(_0x1ee75f){return _0x1ee75f['map'](_0x57ee3c=>String['fromCharCode'](_0x57ee3c))['join']('');}_0x55c767(await _0x280ff2());}(this);}set['adapter'](_0x2fc1ec){if(this['_adapter'])throw new _0x52f81c('track-changes-adapter-already-set',this);this['_adapter']=_0x2fc1ec;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x534432=!0x1,toJSON:_0x1a4626=!0x1}={}){const _0x16ddd7=[];for(const _0x451562 of this['_suggestions']['values']())_0x534432&&!_0x451562['isInContent']||_0x16ddd7['push'](_0x451562);return _0x1a4626?_0x16ddd7['map'](_0x217b87=>_0x217b87['toJSON']()):_0x16ddd7;}['getSuggestion'](_0x552d7f){const _0x2f1bdd=this['_suggestions']['get'](_0x552d7f);if(!_0x2f1bdd)throw new _0x52f81c('track-changes-suggestion-not-found',this);return _0x2f1bdd;}['hasSuggestion'](_0xa698a1){return this['_suggestions']['has'](_0xa698a1);}['addSuggestionData'](_0xd9e106){const {authorId:_0x3ec5f0,id:_0x26582c,originalSuggestionId:_0x23eecb,attributes:_0x33b47d}=_0xd9e106,[_0x25a1d2,_0x3c2bfe]=_0xd9e106['type']['split'](':'),_0x3f8f07=this['_suggestions']['get'](_0x26582c)||this['_createSuggestion'](_0x25a1d2,_0x3c2bfe,_0x26582c,_0x3ec5f0,_0x33b47d,_0x23eecb);if(this['_addThreadToSuggestion'](_0x3f8f07),this['_checkSuggestionCorrectness'](_0x3f8f07,_0x25a1d2,_0x3c2bfe||null,_0x3ec5f0),_0x3f8f07['createdAt']=_0xd9e106['createdAt'],_0x3f8f07['_isDataLoaded']=!0x0,_0x33b47d&&_0x33b47d['@external']){const _0x449b6c=_0x33b47d['@external'],_0x58c484=this['_getExternalAuthor'](_0x449b6c['authorName']);_0x3f8f07['authoredAt']=_0x449b6c['createdAt'],_0x3f8f07['author']=_0x58c484,_0x3f8f07['isExternal']=!0x0;}else _0x3f8f07['authoredAt']=_0xd9e106['createdAt'];switch(_0xd9e106['data']&&(_0x3f8f07['data']=_0xd9e106['data']),_0xd9e106['attributes']&&(_0x3f8f07['attributes']=_0xd9e106['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f8f07['_saved']=!0x0),this['_suggestionState']['get'](_0x3f8f07)){case'notReady':this['_suggestionState']['set'](_0x3f8f07,'dataReady');break;case'markerReady':_0x3f8f07['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f8f07])),this['_refreshSuggestionsChain'](new Set([_0x3f8f07])),this['_suggestionState']['set'](_0x3f8f07,'ready'),this['fire']('suggestionLoaded',_0x3f8f07)):this['_suggestionState']['set'](_0x3f8f07,'removed');}return _0x3f8f07;}['acceptSuggestion'](_0x53480c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dd259 of _0x53480c['getAllAdjacentSuggestions']())_0x1dd259['accept']();});});}['discardSuggestion'](_0x413867){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x575f0a of _0x413867['getAllAdjacentSuggestions']())_0x575f0a['discard']();});});}['enableCommand'](_0x27ad11,_0x1ffd14){const _0x233851=this['editor']['commands']['get'](_0x27ad11);if(!_0x233851)throw new _0x52f81c('track-changes-command-not-found',this,{'commandName':_0x27ad11});if(this['_enabledCommands']['has'](_0x233851))throw new _0x52f81c('track-changes-enable-command-twice',this,{'commandName':_0x27ad11});this['_enabledCommands']['add'](_0x233851),_0x1ffd14&&_0x233851['on']('execute',(_0xfef3e5,_0x413cec)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x413cec['length']>0x0&&_0x413cec[_0x413cec['length']-0x1]&&_0x413cec[_0x413cec['length']-0x1]['forceDefaultExecution']?_0x413cec['pop']():(_0xfef3e5['return']=_0x1ffd14((..._0x375480)=>_0x233851['execute'](..._0x375480,{'forceDefaultExecution':!0x0}),..._0x413cec),_0xfef3e5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2937ce){let _0x4a7058,_0x53f57d;const _0x36655d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4a7058=_0x2937ce();}catch(_0x64db0d){_0x53f57d=_0x64db0d;}return _0x36655d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53f57d&&_0x52f81c['rethrowUnexpectedError'](_0x53f57d,this),_0x4a7058;}['markInsertion'](_0x521a12,_0x4cd836=null,_0x3a1bed={}){if(_0x521a12['isCollapsed'])return null;const _0x627097=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3a1bed['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x126d3a,meta:_0x5dd8a6}of this['_findSuggestions'](_0x521a12,'insertion'))if(_0x5dd8a6['isOwn']){if(!_0x5dd8a6['isNextTo']){if(_0x5dd8a6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0x126d3a,_0x3a1bed))continue;return _0x126d3a;}if(ie(_0x126d3a,_0x3a1bed))return _0x126d3a;this['_breakSuggestionMarker'](_0x126d3a,_0x521a12['start'],_0x521a12['end']);break;}if(_0x4cd836==_0x126d3a['subType']&&ie(_0x126d3a,_0x3a1bed)){const _0xcf788f=_0x126d3a['getFirstRange']();return _0xcf788f['start']['isEqual'](_0x521a12['end'])?this['_setSuggestionRange'](_0x126d3a,this['_model']['createRange'](_0x521a12['start'],_0xcf788f['end'])):this['_setSuggestionRange'](_0x126d3a,this['_model']['createRange'](_0xcf788f['start'],_0x521a12['end'])),_0x126d3a;}}const _0x68db9b=_0xb1da02(),_0x5d331d=_0x627097['id'],_0x15ebbc=_0x4cd836?'insertion:'+_0x4cd836:'insertion',_0x16a8a8=this['_setSuggestionData']({'id':_0x68db9b,'type':_0x15ebbc,'createdAt':new Date(),'authorId':_0x5d331d,'attributes':_0x3a1bed});return this['_addSuggestionMarker'](_0x15ebbc,_0x68db9b,_0x5d331d,_0x521a12),_0x16a8a8;}['markMultiRangeInsertion'](_0x192b32,_0x250d2c='multi',_0x233e96={}){const _0x55d966=this['editor']['plugins']['get']('Users')['me'],_0x469394=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x250d2c,'join');this['_trackingSessionId']&&(_0x233e96['trackingSessionId']=this['_trackingSessionId']);for(const _0x2a3478 of this['getSuggestions']())if(_0x2a3478['author']['id']==_0x55d966['id']&&'insertion'==_0x2a3478['type']&&_0x2a3478['subType']==_0x250d2c&&ie(_0x2a3478,_0x233e96)&&(_0x469394(_0x2a3478['getRanges'](),_0x192b32)||_0x469394(_0x192b32,_0x2a3478['getRanges']()))){for(const _0x19b88f of _0x192b32)_0x2a3478['addRange'](_0x19b88f);return _0x2a3478;}for(const {suggestion:_0x7f61bd,meta:_0x52a630}of this['_findSuggestions'](_0x192b32,'insertion')){if(!_0x52a630['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52a630['containsRangeInObject'])continue;if(!ie(_0x7f61bd,_0x233e96))continue;let _0x505e6f=!0x0;for(const _0x480092 of _0x7f61bd['getRanges']())for(const _0xb784ef of _0x192b32)if(!_0x480092['containsRange'](_0xb784ef)){_0x505e6f=!0x1;break;}if(_0x505e6f)return _0x7f61bd;}const _0x2e0baa=_0xb1da02(),_0x3644ed=_0x55d966['id'],_0x8a7bf0='insertion:'+_0x250d2c,_0x6d5705=this['_setSuggestionData']({'id':_0x2e0baa,'type':_0x8a7bf0,'createdAt':new Date(),'authorId':_0x3644ed,'attributes':_0x233e96});for(const _0x40ea1b of _0x192b32)this['_addSuggestionMarker'](_0x8a7bf0,_0x2e0baa,_0x3644ed,_0x40ea1b,R['getMultiRangeId']());return _0x6d5705;}['markInlineFormat'](_0x59efdd,_0x1e568a,_0x4421e3=null,_0x108c68={}){if(_0x4421e3=_0x4421e3||Wt(_0x1e568a),_0x59efdd['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x108c68['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xcb6d99=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4421e3,'accept');return this['forceDefaultExecution'](()=>_0xcb6d99([_0x59efdd],_0x1e568a,_0x108c68)),null;}const _0x2d6900=this['editor']['plugins']['get']('Users')['me'],_0x5280ae=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5c8c91,meta:_0x5b3aab}of this['_findSuggestions'](_0x59efdd,'insertion'))_0x5b3aab['isOwn']&&!_0x5b3aab['isInsideObject']&&_0x5280ae['push'](..._0x5c8c91['getRanges']());}const _0x17b03d=function(_0x1625ab,_0x326700){const _0x31fb5f=[];for(const _0x5bae12 of _0x326700){const _0x299c69=_0x1625ab['getIntersection'](_0x5bae12);_0x299c69&&_0x31fb5f['push'](_0x299c69);}return _0x31fb5f;}(_0x59efdd,_0x5280ae),_0x2e608c=function(_0x27eff3,_0x4af381){const _0x4e0b08=[_0x27eff3];for(const _0x783aa3 of _0x4af381){let _0x3c5182=0x0;for(;_0x3c5182<_0x4e0b08['length'];){const _0x5c7b64=_0x4e0b08[_0x3c5182]['getDifference'](_0x783aa3);_0x4e0b08['splice'](_0x3c5182,0x1,..._0x5c7b64),_0x3c5182+=_0x5c7b64['length'];}}return _0x4e0b08;}(_0x59efdd,_0x5280ae);_0x17b03d['length']&&this['_model']['change'](()=>{for(const _0x30e879 of _0x17b03d){const _0x4dc774=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4421e3,'accept');this['forceDefaultExecution'](()=>_0x4dc774([_0x30e879],_0x1e568a,_0x108c68));}});for(const _0x368076 of _0x2e608c){let _0x218712=null,_0x4bb4e6=_0x368076['start'],_0x4673c7=_0x368076['end'];for(const {suggestion:_0x341bdb,meta:_0x4c9775}of this['_findSuggestions'](_0x368076,'formatInline')){if(!_0x4c9775['isOwn'])continue;if(_0x341bdb['subType']!=_0x4421e3)continue;if(!ie(_0x341bdb,_0x108c68))continue;const _0x29b4be=_0x341bdb['getFirstRange']();if(_0x29b4be['containsRange'](_0x368076,!0x0))return null;_0x4bb4e6=_0x4bb4e6['isBefore'](_0x29b4be['start'])?_0x4bb4e6:_0x29b4be['start'],_0x4673c7=_0x4673c7['isAfter'](_0x29b4be['end'])?_0x4673c7:_0x29b4be['end'],_0x218712?_0x29b4be['start']['isBefore'](_0x218712['getFirstRange']()['start'])?(_0x218712['removeMarkers'](),_0x218712=_0x341bdb):_0x341bdb['removeMarkers']():_0x218712=_0x341bdb;}const _0x25dbae=this['_model']['createRange'](_0x4bb4e6,_0x4673c7);if(_0x218712)this['_setSuggestionRange'](_0x218712,_0x25dbae);else{const _0x17bcde=_0xb1da02(),_0x190eac=_0x2d6900['id'];this['_setSuggestionData']({'id':_0x17bcde,'type':'formatInline:'+_0x4421e3,'data':_0x1e568a,'createdAt':new Date(),'authorId':_0x190eac,'attributes':_0x108c68}),this['_addSuggestionMarker']('formatInline:'+_0x4421e3,_0x17bcde,_0x190eac,_0x25dbae);}}return null;}['markBlockFormat'](_0x13bb03,_0xd59440,_0x2c61ac=[],_0x35278d=null,_0x509810={}){_0xd59440['formatGroupId']||(_0xd59440['formatGroupId']=_0xd59440['commandName']),_0xd59440['multipleBlocks']=_0x13bb03['is']('range'),_0x35278d=_0x35278d||Wt(_0xd59440);const _0x12d168=_0x2c61ac['map'](_0x2a8bb8=>Zt(_0x2a8bb8,this['_model'])),_0x463fcb=_0x13bb03['is']('range')?_0x13bb03:Zt(_0x13bb03,this['_model']);if(this['_trackingSessionId']&&(_0x509810['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x11a3dd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35278d,'accept');return this['forceDefaultExecution'](()=>_0x11a3dd([_0x463fcb],_0xd59440,_0x509810)),null;}_0x12d168['push'](_0x463fcb);let _0xb7b1af=!0x0;for(const _0x13b782 of _0x12d168)if(!this['_rangeIsInLocalUserInsertion'](_0x13b782)){_0xb7b1af=!0x1;break;}if(_0xb7b1af&&'always'!==this['_trackFormatChanges']){const _0x2bf59a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x35278d,'accept');return this['forceDefaultExecution'](()=>_0x2bf59a([_0x463fcb],_0xd59440,_0x509810)),null;}let _0xc8a538=null,_0x5a88a5=_0x463fcb['start'],_0x32ca76=_0x463fcb['end'];for(const {suggestion:_0x3855a9,meta:_0x265f7c}of this['_findSuggestions'](_0x463fcb,'formatBlock')){if(!_0x265f7c['isOwn'])continue;if(_0x265f7c['isNextTo']||_0x265f7c['containsRangeInObject']||_0x265f7c['isInsideObject'])continue;if(_0x3855a9['data']['formatGroupId']!=_0xd59440['formatGroupId'])continue;if(!ie(_0x3855a9,_0x509810))continue;const _0x1ef43b=_0x3855a9['getFirstRange']();if(_0x3855a9['subType']==_0x35278d){if(_0x1ef43b['containsRange'](_0x463fcb,!0x0))return null;_0x5a88a5=_0x5a88a5['isBefore'](_0x1ef43b['start'])?_0x5a88a5:_0x1ef43b['start'],_0x32ca76=_0x32ca76['isAfter'](_0x1ef43b['end'])?_0x32ca76:_0x1ef43b['end'],_0xc8a538?_0x1ef43b['start']['isBefore'](_0xc8a538['getFirstRange']()['start'])?(_0xc8a538['removeMarkers'](),_0xc8a538=_0x3855a9):_0x3855a9['removeMarkers']():_0xc8a538=_0x3855a9;}else{const _0x2adfca=_0x463fcb['getIntersection'](_0x1ef43b);this['_cutOutSuggestionMarker'](_0x3855a9,_0x2adfca);}}const _0x19566a=this['editor']['plugins']['get']('Users')['me'],_0xcbfd0=_0xb1da02(),_0x2e0d5e=_0x19566a['id'];if(_0xc8a538)return this['_setSuggestionRange'](_0xc8a538,this['_model']['createRange'](_0x5a88a5,_0x32ca76)),_0xc8a538;{const _0x4a4916=this['_setSuggestionData']({'id':_0xcbfd0,'type':'formatBlock:'+_0x35278d,'data':_0xd59440,'createdAt':new Date(),'authorId':_0x2e0d5e,'attributes':_0x509810});return this['_addSuggestionMarker']('formatBlock:'+_0x35278d,_0xcbfd0,_0x2e0d5e,this['_model']['createRange'](_0x5a88a5,_0x32ca76)),_0x4a4916;}}['markMultiRangeBlockFormat'](_0x1c40eb,_0x559ccf,_0x52807a=[],_0xf06042=null,_0x5b51cb={}){_0x559ccf['formatGroupId']||(_0x559ccf['formatGroupId']=_0x559ccf['commandName']);const _0x4e2dbd=_0x1c40eb[0x0];_0x559ccf['multipleBlocks']=_0x4e2dbd['is']('range'),_0xf06042=_0xf06042||Wt(_0x559ccf);const _0x4de07e=_0x52807a['map'](_0x242122=>Zt(_0x242122,this['_model'])),_0x4a9f4d=_0x4e2dbd['is']('range')?_0x1c40eb:_0x1c40eb['map'](_0x143904=>Zt(_0x143904,this['_model']));if(this['_trackingSessionId']&&(_0x5b51cb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3dcdfe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf06042,'accept');return this['forceDefaultExecution'](()=>_0x3dcdfe(_0x4a9f4d,_0x559ccf,_0x5b51cb)),null;}_0x4de07e['push'](..._0x4a9f4d);let _0x576d0d=!0x0;for(const _0x5e5fca of _0x4de07e)if(!this['_rangeIsInLocalUserInsertion'](_0x5e5fca)){_0x576d0d=!0x1;break;}if(_0x576d0d&&'always'!==this['_trackFormatChanges']){const _0x224ba6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf06042,'accept');return this['forceDefaultExecution'](()=>_0x224ba6(_0x4a9f4d,_0x559ccf,_0x5b51cb)),null;}const _0xd49aaf=this['editor']['plugins']['get']('Users')['me'];for(const _0x5e65ba of this['getSuggestions']()){const _0x3b50fa=_0x5e65ba['data'];if(_0x5e65ba['author']['id']!=_0xd49aaf['id'])continue;if('formatBlock'!=_0x5e65ba['type']||_0x3b50fa['formatGroupId']!=_0x559ccf['formatGroupId'])continue;if(!ie(_0x5e65ba,_0x5b51cb))continue;const _0x749ba4=_0x5e65ba['subType']==_0xf06042;for(let _0x38039c=0x0;_0x38039c<_0x4a9f4d['length'];_0x38039c++){const _0x2ab981=_0x4a9f4d[_0x38039c];for(const _0x23e044 of _0x5e65ba['getMarkers']()){const _0x5a4e40=_0x23e044['getRange']();if(_0x2ab981['isEqual'](_0x5a4e40)){_0x749ba4?(_0x4a9f4d['splice'](_0x38039c,0x1),_0x38039c--):_0x5e65ba['removeMarker'](_0x23e044['name']);break;}}}}if(0x0==_0x4a9f4d['length'])return null;const _0x412105=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf06042,'join');for(const _0x438e1e of this['getSuggestions']()){const _0x15ee60=_0x438e1e['data'];if(_0x438e1e['author']['id']==_0xd49aaf['id']&&('formatBlock'==_0x438e1e['type']&&_0x15ee60['formatGroupId']==_0x559ccf['formatGroupId']&&_0x438e1e['subType']==_0xf06042&&ie(_0x438e1e,_0x5b51cb)&&(_0x412105(_0x438e1e['getRanges'](),_0x4a9f4d)||_0x412105(_0x4a9f4d,_0x438e1e['getRanges']())))){for(const _0x3f87d3 of _0x4a9f4d)_0x438e1e['addRange'](_0x3f87d3);return _0x438e1e;}}const _0x263bd9=_0xb1da02(),_0x40b9ad=_0xd49aaf['id'],_0x3cc4ae='formatBlock:'+_0xf06042,_0x211309=this['_setSuggestionData']({'id':_0x263bd9,'type':_0x3cc4ae,'data':_0x559ccf,'createdAt':new Date(),'authorId':_0x40b9ad,'attributes':_0x5b51cb});for(const _0x37597a of _0x4a9f4d)this['_addSuggestionMarker'](_0x3cc4ae,_0x263bd9,_0x40b9ad,_0x37597a,R['getMultiRangeId']());return _0x211309;}['markDeletion'](_0x13f0fb,_0x422492=null,_0x1ee187={}){if(_0x13f0fb['isCollapsed'])return null;const _0x51f456=this['editor']['plugins']['get']('Users')['me'],_0x6523a5=new _0x5a166f(_0x13f0fb['start'],_0x13f0fb['end']);this['_trackingSessionId']&&(_0x1ee187['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x442c4b,meta:_0x2d60e5}of this['_findSuggestions'](_0x6523a5,'insertion'))if(_0x2d60e5['isOwn']&&!_0x2d60e5['isNextTo']){if(_0x442c4b['isMultiRange']){const _0x4b70b7=_0x442c4b['getRanges']()['filter'](_0x145966=>'$graveyard'!=_0x145966['root']['rootName']);_0x4b70b7['every'](_0x4c7cdd=>_0x6523a5['containsRange'](_0x4c7cdd,!0x0))&&_0x442c4b['discard']();if(_0x4b70b7['some'](_0xb3eaf5=>_0xb3eaf5['containsRange'](_0x6523a5,!0x0))){const _0x428515=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x422492,'accept');return this['forceDefaultExecution'](()=>_0x428515([_0x6523a5],null,_0x1ee187)),null;}}else{const _0x1d6c6a=_0x6523a5['getIntersection'](_0x442c4b['getFirstRange']());null!==_0x1d6c6a&&_0x442c4b['_onDiscard']([_0x1d6c6a],null,_0x1ee187);}}if(_0x6523a5['detach'](),_0x6523a5['isCollapsed']||'$graveyard'==_0x6523a5['root']['rootName'])return null;let _0x3528ab=null,_0x309250=_0x6523a5['start'],_0x251055=_0x6523a5['end'];const _0x23abef=this['_findSuggestions'](_0x6523a5,'deletion');for(const {suggestion:_0x37e63e,meta:_0x566bf2}of _0x23abef){const _0x33b34a=this['_model']['createRange'](_0x309250,_0x251055);if(_0x566bf2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x566bf2['containsRangeInObject']&&!_0x566bf2['isInsideObject'])){if(_0x37e63e['isMultiRange']){if(!ie(_0x37e63e,_0x1ee187))continue;let _0x3f04ca=!0x0;for(const _0x15f2ff of _0x37e63e['getRanges']()){if(_0x15f2ff['containsRange'](_0x33b34a,!0x0))return _0x37e63e;_0x33b34a['containsRange'](_0x15f2ff)||(_0x3f04ca=!0x1);}_0x3f04ca&&_0x37e63e['discard']();}else{const _0x3d6944=_0x37e63e['getFirstRange']();if(_0x3d6944['containsRange'](_0x33b34a,!0x0))return _0x37e63e;if(!ie(_0x37e63e,_0x1ee187)){_0x33b34a['containsRange'](_0x3d6944)?_0x37e63e['removeMarkers']():_0x3d6944['containsPosition'](_0x309250)?_0x309250=_0x3d6944['end']:_0x3d6944['containsPosition'](_0x251055)&&(_0x251055=_0x3d6944['start']);continue;}_0x309250=_0x309250['isBefore'](_0x3d6944['start'])?_0x309250:_0x3d6944['start'],_0x251055=_0x251055['isAfter'](_0x3d6944['end'])?_0x251055:_0x3d6944['end'],_0x1ee187=Object['assign']({},_0x37e63e['attributes']),_0x3528ab?_0x3d6944['start']['isBefore'](_0x3528ab['getFirstRange']()['start'])?(_0x3528ab['removeMarkers'](),_0x3528ab=_0x37e63e):_0x37e63e['removeMarkers']():_0x3528ab=_0x37e63e;}}}if(_0x3528ab)return this['_setSuggestionRange'](_0x3528ab,this['_model']['createRange'](_0x309250,_0x251055)),_0x3528ab;{const _0x3b2512=_0xb1da02(),_0x3575d3=this['_model']['createRange'](_0x309250,_0x251055),_0x11f588=_0x51f456['id'],_0x51e37e=_0x422492?'deletion:'+_0x422492:'deletion',_0x264774=this['_setSuggestionData']({'id':_0x3b2512,'type':_0x51e37e,'createdAt':new Date(),'authorId':_0x11f588,'attributes':_0x1ee187});return this['_addSuggestionMarker'](_0x51e37e,_0x3b2512,_0x11f588,_0x3575d3),_0x264774;}}['markMultiRangeDeletion'](_0x2e6ca5,_0x59ba0d='multi',_0x5346d1={}){const _0x309a7e=this['editor']['plugins']['get']('Users')['me'],_0x44fe17=_0x2e6ca5['map'](_0x12f69c=>new _0x5a166f(_0x12f69c['start'],_0x12f69c['end'])),_0x3a7db0=new Set();this['_trackingSessionId']&&(_0x5346d1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5f5b91,meta:_0x566e8c}of this['_findSuggestions'](_0x44fe17,'insertion'))_0x566e8c['isOwn']&&!_0x566e8c['isNextTo']&&_0x3a7db0['add'](_0x5f5b91);for(const _0x54196c of _0x3a7db0)if(_0x54196c['isMultiRange']){const _0x4ca24a=_0x54196c['getRanges']();(!_0x54196c['attributes']||!_0x54196c['attributes']['skipNestingCheck'])&&(_0x4ca24a['every'](_0x42dc4d=>_0x44fe17['some'](_0x4644f1=>_0x4644f1['containsRange'](_0x42dc4d,!0x0)))&&_0x54196c['discard']());if(_0x44fe17['every'](_0x43110b=>_0x4ca24a['some'](_0xb7c91f=>_0xb7c91f['containsRange'](_0x43110b,!0x0)))){const _0x53f8a9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59ba0d,'accept');return this['forceDefaultExecution'](()=>_0x53f8a9(_0x2e6ca5,null,_0x5346d1)),null;}}else{const _0x5553cf=_0x54196c['getFirstRange']();_0x44fe17['some'](_0x41285c=>_0x41285c['containsRange'](_0x5553cf,!0x0))&&_0x54196c['discard']();if(_0x44fe17['every'](_0x2c8834=>_0x5553cf['containsRange'](_0x2c8834,!0x0))){const _0x537fc2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59ba0d,'accept');return this['forceDefaultExecution'](()=>_0x537fc2(_0x44fe17,null,_0x5346d1)),null;}}const _0x243662=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x59ba0d,'join');let _0x183e60=null;for(const _0x337ed1 of this['getSuggestions']())if(_0x337ed1['author']['id']==_0x309a7e['id']&&_0x337ed1['isInContent']&&'deletion'==_0x337ed1['type']&&_0x337ed1['subType']==_0x59ba0d&&ie(_0x337ed1,_0x5346d1)&&(_0x243662(_0x337ed1['getRanges'](),_0x44fe17)||_0x243662(_0x44fe17,_0x337ed1['getRanges']()))){if(_0x183e60){if(_0x337ed1['commentThread']&&_0x337ed1['commentThread']['length'])continue;for(const _0x3d5a84 of _0x337ed1['getRanges']())_0x183e60['isIntersectingWithRange'](_0x3d5a84)||_0x183e60['addRange'](_0x3d5a84);_0x337ed1['removeMarkers']();}else{_0x183e60=_0x337ed1;for(const _0x57a5d1 of _0x44fe17)_0x337ed1['isIntersectingWithRange'](_0x57a5d1)||_0x337ed1['addRange'](_0x57a5d1);}}if(_0x183e60)return _0x183e60;_0x3a7db0['clear']();for(const {suggestion:_0x146e5d,meta:_0x5114e5}of this['_findSuggestions'](_0x44fe17,'deletion'))_0x5114e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5114e5['containsRangeInObject']&&!_0x5114e5['isInsideObject'])&&ie(_0x146e5d,_0x5346d1)&&_0x3a7db0['add'](_0x146e5d);for(const _0x3d17f3 of _0x3a7db0){const _0x190807=_0x3d17f3['getRanges']();if(!_0x5346d1||!_0x5346d1['skipNestingCheck']){if(_0x44fe17['every'](_0x4e8173=>_0x190807['some'](_0x43ccd5=>_0x43ccd5['containsRange'](_0x4e8173,!0x0))))return _0x3d17f3;}(!_0x3d17f3['attributes']||!_0x3d17f3['attributes']['skipNestingCheck'])&&(_0x190807['every'](_0xde4bdf=>_0x44fe17['some'](_0x390546=>_0x390546['containsRange'](_0xde4bdf,!0x0)))&&_0x3d17f3['discard']());}const _0x299f30=_0xb1da02(),_0x4c4f12=_0x309a7e['id'],_0x4c81fb='deletion:'+_0x59ba0d,_0x201312=this['_setSuggestionData']({'id':_0x299f30,'type':_0x4c81fb,'createdAt':new Date(),'authorId':_0x4c4f12,'attributes':_0x5346d1});for(const _0x361453 of _0x44fe17)_0x361453['detach'](),_0x361453['isCollapsed']||'$graveyard'==_0x361453['root']['rootName']||this['_addSuggestionMarker'](_0x4c81fb,_0x299f30,_0x4c4f12,_0x361453,R['getMultiRangeId']());return _0x201312;}['markAttributeChange'](_0x326e94,_0x1ebda5,_0x3446ec,_0xca6aac,_0x19e768){if(_0x326e94['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x37fbb1=this['editor']['plugins']['get']('Users')['me']['id'],_0xb3162f=Array['from'](this['_suggestions']['values']())['filter'](_0x4c4b44=>'attribute'==_0x4c4b44['type']&&_0x4c4b44['data']['key']==_0x1ebda5&&_0x4c4b44['isIntersectingWithRange'](_0x326e94));if(this['_trackingSessionId']&&(_0x19e768['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3c9e31=this['_findSuggestions'](_0x326e94,'insertion')['filter'](({meta:_0x5a1492})=>_0x5a1492['isOwn']&&!_0x5a1492['isInsideObject']&&!_0x5a1492['isNextTo'])['map'](({suggestion:_0x39bab7})=>_0x39bab7);_0xb3162f['unshift'](..._0x3c9e31);}const _0x51ee3d=new Map([[_0x326e94,_0x3446ec]]);for(const _0x557407 of _0xb3162f){const _0x247105='attribute'==_0x557407['type']?_0x557407['data']['oldValue']:void 0x0,_0x76860d=_0x557407['getFirstRange'](),_0x5d3696=Array['from'](_0x51ee3d['keys']())['find'](_0x2b199b=>_0x2b199b['isIntersecting'](_0x76860d));if(!_0x5d3696)continue;const _0x5a6f98=_0x5d3696['getDifference'](_0x76860d);this['_isBlockAttribute'](_0x1ebda5)&&'insertion'==_0x557407['type']&&0x0!=_0x5a6f98['length']||(_0x51ee3d['delete'](_0x5d3696),_0x5a6f98['forEach'](_0x9f5bac=>{_0x51ee3d['set'](_0x9f5bac,_0x3446ec);}),'insertion'!=_0x557407['type']&&_0x247105!=_0xca6aac&&_0x51ee3d['set'](_0x5d3696['getIntersection'](_0x76860d),_0x247105));}const _0x483b2b=[];for(const [_0x3fb79e,_0x3794d7]of _0x51ee3d){const _0xd7e11b=_0xb1da02(),_0xdcdffd={'key':_0x1ebda5,'oldValue':_0x3794d7,'newValue':_0xca6aac};_0x1ebda5['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':_0x1ebda5});const _0x41be21=('attribute:'+(_0x1ebda5+'|'+Wt({'newValue':_0xca6aac})))['substring'](0x0,0x3c),_0x537a4e=this['_setSuggestionData']({'id':_0xd7e11b,'type':_0x41be21,'data':_0xdcdffd,'createdAt':new Date(),'authorId':_0x37fbb1,'attributes':_0x19e768});_0x483b2b['push'](_0x537a4e),this['_addSuggestionMarker'](_0x41be21,_0xd7e11b,_0x37fbb1,_0x3fb79e);}return _0x483b2b;}['enableDefaultAttributesIntegration'](_0x4002b8){this['enableCommand'](_0x4002b8,(_0x442038,..._0x140f3a)=>{this['recordAttributeChanges'](()=>{_0x442038(..._0x140f3a);});});}['registerBlockAttribute'](_0x24dd15){this['_blockAttributeKeys']['add'](_0x24dd15);}['registerInlineAttribute'](_0x5efdcf){this['_inlineAttributeKeys']['add'](_0x5efdcf);}['startTrackingSession'](_0x58c4c1){return this['_trackingSessionId']=void 0x0!==_0x58c4c1?_0x58c4c1:_0xb1da02(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1d77ec){return'attribute'==_0x1d77ec['type']?se(_0x1d77ec['subType']):null;}['_applyOperationsAsSuggestions'](_0x1c715f){if(0x0==_0x1c715f['length'])return;const _0x13345e=this['editor'],_0x2dafb1=_0x13345e['plugins']['get'](_0x1e0249);let _0x30693e=!0x0;for(const _0x1a3ab6 in _0x1c715f[0x0]){const _0x159ac7=_0x1c715f[0x0][_0x1a3ab6];if((_0x159ac7 instanceof _0x120719||_0x159ac7 instanceof _0xceba9f)&&_0x159ac7['root']['is']('documentFragment')){_0x30693e=!0x1;break;}}_0x13345e['model']['change'](_0x3b6fdd=>{const _0x3d1100=new Set();for(const _0x44cee0 of _0x1c715f)if(_0x44cee0['baseVersion']=_0x30693e?_0x13345e['model']['document']['version']:null,_0x44cee0['isDocumentOperation']=_0x30693e,_0x2dafb1['isMarkedRemoveOperation'](_0x44cee0)){const _0x52cfe4=Xt(_0x44cee0['newRange'],_0x13345e['model']);if(_0x30693e)this['markDeletion'](_0x52cfe4);else{const _0x56422f='suggestion:deletion:id:authorId:'+_0xb1da02();_0x52cfe4['root']['markers']['set'](_0x56422f,_0x52cfe4);}}else switch(_0x44cee0['type']){case'rename':{const _0x5b2327=_0x44cee0['oldName'],_0x5a3ac0=_0x44cee0['newName'];if(_0x5b2327==_0x5a3ac0)break;_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);const _0x267a8b='$elementName',_0x2c6706=_0x44cee0['position'],_0x38ddb0=_0x13345e['model']['createRange'](_0x2c6706,_0x13345e['model']['createPositionAt'](_0x2c6706['nodeAfter'],'end'));if(_0x30693e)this['markAttributeChange'](_0x38ddb0,_0x267a8b,_0x5b2327,_0x5a3ac0,{'groupId':_0xb1da02()});else{const _0x241ffb='suggestion:attribute:'+_0x267a8b+':id:authorId:'+_0xb1da02();_0x38ddb0['root']['markers']['set'](_0x241ffb,_0x38ddb0);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2b944d=_0x44cee0['oldValue'],_0x53d134=_0x44cee0['newValue'];if(_0x2b944d==_0x53d134)break;_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);const _0x172c8f=_0x44cee0['key'];if(!this['_isRegisteredAttribute'](_0x172c8f))break;const _0x5b1b92=Xt(_0x44cee0['range'],_0x13345e['model']);if(_0x30693e)this['markAttributeChange'](_0x5b1b92,_0x172c8f,_0x2b944d,_0x53d134,{'groupId':_0xb1da02()});else{const _0x3286ea='suggestion:attribute:'+_0x172c8f+':id:authorId:'+_0xb1da02();_0x5b1b92['root']['markers']['set'](_0x3286ea,_0x5b1b92);}break;}case'insert':{_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);const _0x1a8aed=_0x44cee0['position'],_0x4d848d=_0x44cee0['howMany'],_0x477c70=Xt(_0x13345e['model']['createRange'](_0x1a8aed,_0x1a8aed['getShiftedBy'](_0x4d848d)),_0x13345e['model']);if(_0x30693e)this['markInsertion'](_0x477c70);else{const _0x3ec5a5='suggestion:insertion:id:authorId:'+_0xb1da02();_0x477c70['root']['markers']['set'](_0x3ec5a5,_0x477c70);}break;}case'split':{_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);const _0x51d68e=_0x44cee0['splitPosition'],_0x4a3f95=_0x44cee0['moveTargetPosition'],_0x1ea5b2=_0x13345e['model']['createRange'](_0x51d68e,_0x4a3f95);if(_0x30693e)this['markInsertion'](_0x13345e['model']['createRange'](_0x51d68e,_0x4a3f95));else{const _0xbce63c='suggestion:insertion:id:authorId:'+_0xb1da02();_0x1ea5b2['root']['markers']['set'](_0xbce63c,_0x1ea5b2);}break;}case'move':if(_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0),!_0x30693e){const _0x5120e4=_0x44cee0['getMovedRangeStart'](),_0x225b4d=_0x44cee0['howMany'];for(let _0x30ad42=0x0;_0x30ad42<_0x225b4d;_0x30ad42++){const _0x5df934=_0x5120e4['getShiftedBy'](_0x30ad42)['nodeAfter'];_0x3d1100['add'](_0x5df934);}}break;case'remove':if(_0x30693e)_0x3b6fdd['batch']['addOperation'](_0x44cee0),_0x13345e['model']['applyOperation'](_0x44cee0);else{const _0x5a3a3f=_0x44cee0['sourcePosition'],_0x576992=_0x44cee0['howMany'],_0x5b91b8=new _0xdeb023(_0x5a3a3f,_0x576992);_0x3b6fdd['batch']['addOperation'](_0x5b91b8),_0x13345e['model']['applyOperation'](_0x5b91b8);}}for(const _0x23a712 of _0x3d1100){const _0x522c84=_0x13345e['model']['createRangeOn'](_0x23a712),_0x4d6df3='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0xb1da02();_0x522c84['root']['markers']['set'](_0x4d6df3,Xt(_0x522c84,_0x13345e['model']));}});}['_setSuggestionRange'](_0x3595d0,_0x5c90e1){const _0x201690=_0x3595d0['getFirstMarker']();this['_model']['change'](_0x1db5dc=>{_0x1db5dc['updateMarker'](_0x201690,{'range':_0x5c90e1});});}['_addThreadToSuggestion'](_0x314744){const _0x2b7a76=_0x314744['id'],_0x438fd3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2b7a76)||this['_commentsRepository']['addCommentThread']({'channelId':_0x438fd3,'threadId':_0x2b7a76,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b0ab0=this['_commentsRepository']['getCommentThread'](_0x2b7a76);_0x2b0ab0['unbind']('isRemovable'),_0x2b0ab0['isRemovable']=!0x1,_0x314744['commentThread']=_0x2b0ab0;}['_checkSuggestionCorrectness'](_0x41771f,_0x496993,_0x126cc3,_0x120d26){if(_0x41771f['type']!=_0x496993||_0x41771f['subType']!=_0x126cc3||_0x41771f['creator']['id']!=_0x120d26)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52f81c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x18a235,_0x478a96){const _0x249567=_0x18a235['getFirstRange']();if(_0x478a96['isEqual'](_0x249567))_0x18a235['removeMarkers']();else{if(_0x249567['containsRange'](_0x478a96)){const _0x1d71bf=this['_model']['createPositionAt'](_0x478a96['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x18a235,this['_model']['createRange'](_0x249567['start'],_0x1d71bf));const _0x1ac04d=_0xb1da02(),_0x25e8c5=_0x18a235['creator']['id'],_0xf69f0c=_0x18a235['type']+':'+_0x18a235['subType'];this['_setSuggestionData']({'id':_0x1ac04d,'type':_0xf69f0c,'createdAt':new Date(),'authorId':_0x25e8c5,'data':_0x18a235['data'],'attributes':_0x18a235['attributes']});const _0x4b2113=this['_model']['createPositionAt'](_0x478a96['end']['parent'],'after'),_0x19bfcb=this['_model']['createRange'](_0x4b2113,_0x249567['end']);this['_addSuggestionMarker'](_0xf69f0c,_0x1ac04d,_0x25e8c5,_0x19bfcb);}else{if(_0x249567['containsPosition'](_0x478a96['start'])){const _0xacffe7=this['_model']['createPositionAt'](_0x478a96['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x18a235,this['_model']['createRange'](_0x249567['start'],_0xacffe7));}else{const _0x29002d=this['_model']['createPositionAt'](_0x478a96['end']['parent'],'after');this['_setSuggestionRange'](_0x18a235,this['_model']['createRange'](_0x29002d,_0x249567['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x56a785){for(const {suggestion:_0xd407fc,meta:_0x59d92f}of this['_findSuggestions'](_0x56a785,'insertion')){if(!_0x59d92f['isOwn'])continue;const _0x1ba8f0=_0xd407fc['getRanges']();for(const _0x23ceb5 of _0x1ba8f0)if(!_0x56a785['getDifference'](_0x23ceb5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5201e7){return this['editor']['plugins']['get']('Users')['getUser'](_0x5201e7);}['_getExternalAuthor'](_0x25ebe9){const _0x299d7a=this['editor']['plugins']['get']('Users'),_0x5c56f4=_0x4f7d6e('external:'+_0x25ebe9),_0x3a6c41=_0x299d7a['getUser'](_0x5c56f4);return _0x3a6c41||_0x299d7a['addUser']({'id':_0x5c56f4,'name':_0x25ebe9});}['_createSuggestion'](_0x2cd8df,_0xcdea17,_0x3679ed,_0x2e3df1,_0x2f9388,_0x4eae27){const _0x404bca=this['_getAuthorFromId'](_0x2e3df1);if(!_0x404bca)throw new _0x52f81c('track-changes-user-not-found',this,{'authorId':_0x2e3df1,'suggestionId':_0x3679ed});const _0x4d7288=this['_suggestionFactory']['buildSuggestion'](_0x2cd8df,_0xcdea17,_0x3679ed,_0x404bca,_0x2f9388,_0x434878=>{this['_updateSuggestionData'](_0x3679ed,{'attributes':_0x434878});const _0x3912b4=this['getSuggestion'](_0x3679ed);this['_joinWithAdjacentSuggestions'](new Set([_0x3912b4])),this['_refreshSuggestionsChain'](new Set([_0x3912b4]));},_0x4eae27);return this['listenTo'](_0x4d7288,'accept',()=>{this['_updateSuggestionData'](_0x3679ed,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4d7288,'discard',()=>{this['_updateSuggestionData'](_0x3679ed,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3679ed,_0x4d7288),this['_suggestionState']['set'](_0x4d7288,'notReady'),_0x4d7288;}['_splitMarkerName'](_0xc7c13c){const _0x1f26e6=_0xc7c13c['split'](':');return{'group':_0x1f26e6[0x0],'type':_0x1f26e6[0x1],'subType':_0x1f26e6['length']>=0x5?_0x1f26e6[0x2]:null,'id':_0x1f26e6['length']<0x5?_0x1f26e6[0x2]:_0x1f26e6[0x3],'authorId':_0x1f26e6['length']<0x5?_0x1f26e6[0x3]:_0x1f26e6[0x4],'markerCount':0x6==_0x1f26e6['length']?_0x1f26e6[0x5]:null};}['_breakSuggestionMarker'](_0x4f53b7,_0x3c4d3c,_0x14bb75){const _0x26acc0=_0x4f53b7['getFirstRange'](),_0x11dac9=_0x26acc0['start'],_0x414031=_0x26acc0['end'];this['_setSuggestionRange'](_0x4f53b7,this['_model']['createRange'](_0x11dac9,_0x3c4d3c));const _0x54d40b=_0xb1da02(),_0x48b043=_0x4f53b7['creator']['id'],_0x4a3d18=_0x4f53b7['type']+(_0x4f53b7['subType']?':'+_0x4f53b7['subType']:'');this['_setSuggestionData']({'id':_0x54d40b,'type':_0x4a3d18,'createdAt':new Date(),'authorId':_0x48b043,'originalSuggestionId':_0x4f53b7['_originalSuggestionId']||_0x4f53b7['id'],'attributes':_0x4f53b7['attributes'],'data':_0x4f53b7['data']});const _0x49c6db=this['_getAttributeKey'](_0x4f53b7);('formatBlock'==_0x4f53b7['type']||_0x49c6db&&this['_isBlockAttribute'](_0x49c6db))&&(_0x14bb75=this['_model']['createPositionBefore'](_0x14bb75['parent'])),this['_addSuggestionMarker'](_0x4a3d18,_0x54d40b,_0x48b043,this['_model']['createRange'](_0x14bb75,_0x414031));}['_findSuggestions'](_0x2df306,_0x5e51b2=null){const _0x1cf978=[],_0x4348d0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2df306)||(_0x2df306=[_0x2df306]);for(const _0xda65c9 of this['getSuggestions']()){if(!_0xda65c9['isInContent'])continue;if(_0x5e51b2&&_0xda65c9['type']!=_0x5e51b2)continue;let _0x367861=!0x1;for(const _0x49e543 of _0xda65c9['getRanges']()){for(const _0xc3e3bd of _0x2df306){const _0x8af57=_0xc3e3bd['start']['isEqual'](_0x49e543['end'])||_0xc3e3bd['end']['isEqual'](_0x49e543['start']);if(_0x8af57||_0xc3e3bd['getIntersection'](_0x49e543)){const _0x292577=_0xc3e3bd['containsRange'](_0x49e543)&&Jt(this['_model']['schema'],_0x49e543['start'],_0xc3e3bd),_0x5b43b1=_0x49e543['containsRange'](_0xc3e3bd)&&Jt(this['_model']['schema'],_0xc3e3bd['start'],_0x49e543);_0x1cf978['push']({'suggestion':_0xda65c9,'meta':{'isOwn':_0x4348d0==_0xda65c9['author'],'isNextTo':_0x8af57,'isInsideObject':_0x292577,'containsRangeInObject':_0x5b43b1}}),_0x367861=!0x0;break;}}if(_0x367861)break;}}return _0x1cf978;}['_addSuggestionMarker'](_0x37af4b,_0x41c25d,_0x5b1d48,_0x7ded62,_0x4fa3a4){this['_model']['change'](_0x4622f2=>{let _0x1b9a3a='suggestion:'+_0x37af4b+':'+_0x41c25d+':'+_0x5b1d48;_0x4fa3a4&&(_0x1b9a3a=_0x1b9a3a+':'+_0x4fa3a4),_0x4622f2['addMarker'](_0x1b9a3a,{'range':_0x7ded62,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3256bc){const _0x17886a=_0x3256bc['previous'],_0x5ce788=_0x3256bc['next'];_0x3256bc['previous']=null,_0x3256bc['next']=null,null!=_0x17886a&&_0x17886a['next']==_0x3256bc&&(_0x17886a['next']=_0x5ce788),null!=_0x5ce788&&_0x5ce788['previous']==_0x3256bc&&(_0x5ce788['previous']=_0x17886a),'ready'==this['_suggestionState']['get'](_0x3256bc)&&(this['_suggestionState']['set'](_0x3256bc,'removed'),this['fire']('suggestionUnloaded',_0x3256bc,_0x17886a,_0x5ce788));}['_setSuggestionData'](_0x516272){const _0x209bbe=_0x516272['id'],_0x2e5b24=this['addSuggestionData'](_0x516272);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5af588=this['editor']['plugins']['get']('PendingActions'),_0x311b92=_0x2e5b24['hasComments'],_0x4c74f3=_0x2e5b24['subType']?_0x2e5b24['type']+':'+_0x2e5b24['subType']:_0x2e5b24['type'],_0xc3eb41=this['editor']['locale'],_0x2ff9a3=_0x5af588['add'](o(_0xc3eb41,'PENDING_ACTION_SUGGESTION')),_0xb862fc={'id':_0x209bbe,'type':_0x4c74f3,'hasComments':_0x311b92,'data':_0x516272['data']||null,'originalSuggestionId':_0x516272['originalSuggestionId']||null,'attributes':_0x2e5b24['attributes']};this['_adapter']['addSuggestion'](_0xb862fc)['then'](_0x50c7cb=>{_0x2e5b24['_saved']=!0x0,_0x5af588['remove'](_0x2ff9a3),_0x50c7cb&&_0x50c7cb['createdAt']&&(this['_suggestions']['get'](_0x209bbe)['createdAt']=_0x50c7cb['createdAt']);})['catch'](_0x1c5b18=>{throw _0x474c47('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e5b24['discard']();}),_0x2e5b24['stopListening'](),this['_suggestions']['delete'](_0x2e5b24['id']),this['_suggestionState']['delete'](_0x2e5b24),_0x1c5b18;});}return _0x2e5b24;}['_isBlockAttribute'](_0x52d3e9){return this['_blockAttributeKeys']['has'](_0x52d3e9);}['_isInlineAttribute'](_0x21c933){return this['_inlineAttributeKeys']['has'](_0x21c933);}['_updateSuggestionData'](_0x467e7f,_0x1d67e7){const _0x55a0ff=this['editor']['plugins']['get']('PendingActions'),_0x171d3a=this['getSuggestion'](_0x467e7f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x171d3a['_saved']){const _0x5e13c9=_0x55a0ff['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x467e7f,_0x1d67e7)['then'](()=>{_0x55a0ff['remove'](_0x5e13c9);});}else _0x171d3a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x467e7f,_0x1d67e7);});}}['_getSuggestionData'](_0x1225ba){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52f81c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1225ba);}['_handleNewSuggestionMarker'](_0x15cb98){const {id:_0x4c0298,type:_0x464ecb,subType:_0x4316cc,authorId:_0x50487f}=this['_splitMarkerName'](_0x15cb98),_0x11a296=this['_suggestions']['get'](_0x4c0298)||this['_createSuggestion'](_0x464ecb,_0x4316cc,_0x4c0298,_0x50487f,{});switch(this['_checkSuggestionCorrectness'](_0x11a296,_0x464ecb,_0x4316cc,_0x50487f),this['_suggestionState']['get'](_0x11a296)){case'notReady':this['_getSuggestionData'](_0x4c0298)['then'](_0x15bfe9=>{let _0x2b6b20=Promise['resolve']();_0x15bfe9['hasComments']&&(_0x2b6b20=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4c0298})),_0x2b6b20['then'](()=>{this['addSuggestionData'](_0x15bfe9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x11a296,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4c0298,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x11a296,'ready'),this['fire']('suggestionLoaded',_0x11a296);break;case'ready':this['fire']('suggestionChanged',_0x11a296);}return _0x11a296['addMarkerName'](_0x15cb98),_0x11a296;}['_refreshSuggestionsChain'](_0x4e6437){const _0x5a43da=Array['from'](_0x4e6437),_0x15f5c0=_0x5a43da['filter'](_0x8f7b4b=>'attribute'==_0x8f7b4b['type']);this['_refreshAttributeSuggestionsChain'](_0x15f5c0);const _0x4a9b6e=_0x5a43da['filter'](_0x15ff8b=>!_0x15ff8b['isMultiRange']&&'attribute'!=_0x15ff8b['type']),_0x20ca3b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x159b54=>!_0x159b54['isMultiRange']&&'attribute'!=_0x159b54['type']),_0x155a61=_0x20ca3b['filter'](_0x24f420=>!_0x4e6437['has'](_0x24f420)),_0x56b753=new Map(_0x20ca3b['map'](_0x322f8c=>[_0x322f8c,this['_suggestionFactory']['getSuggestionCallback'](_0x322f8c['type'],_0x322f8c['subType'],'chain')])),_0x2060d0=new Map(_0x20ca3b['map'](_0x1e3f2c=>[_0x1e3f2c,_0x1e3f2c['getFirstRange']()])),_0x317cef=new Set(),_0x177bdc=new Set();for(let _0x549168=0x0;_0x549168<_0x4a9b6e['length'];_0x549168++)_0x517e51(_0x4a9b6e[_0x549168],_0x4a9b6e,_0x549168+0x1);for(let _0x1259b5=0x0;_0x1259b5<_0x4a9b6e['length'];_0x1259b5++)_0x517e51(_0x4a9b6e[_0x1259b5],_0x155a61,0x0);const _0x29ddd5=new Set();for(let _0x4f18b7=0x0;_0x4f18b7<_0x4a9b6e['length'];_0x4f18b7++){const _0x1ddde6=_0x4a9b6e[_0x4f18b7];!_0x177bdc['has'](_0x1ddde6)&&_0x1ddde6['previous']&&(_0x29ddd5['add'](_0x1ddde6['previous']),_0x1ddde6['previous']['next']===_0x1ddde6&&(_0x1ddde6['previous']['next']=null),_0x1ddde6['previous']=null),!_0x317cef['has'](_0x1ddde6)&&_0x1ddde6['next']&&(_0x29ddd5['add'](_0x1ddde6['next']),_0x1ddde6['next']['previous']===_0x1ddde6&&(_0x1ddde6['next']['previous']=null),_0x1ddde6['next']=null);}function _0x517e51(_0x26bd2f,_0x3af535,_0x43f867){for(let _0x6d34b6=_0x43f867;_0x6d34b6<_0x3af535['length'];_0x6d34b6++){const _0x1ed198=_0x28adae(_0x26bd2f,_0x3af535[_0x6d34b6]);_0x1ed198&&(_0x1ed198[0x0]['next']=_0x1ed198[0x1],_0x1ed198[0x1]['previous']=_0x1ed198[0x0],_0x317cef['add'](_0x1ed198[0x0]),_0x177bdc['add'](_0x1ed198[0x1]));}}function _0x28adae(_0x5672ff,_0x217e1b){if(_0x5672ff['author']['id']!==_0x217e1b['author']['id'])return null;const _0xa16b07=_0x56b753['get'](_0x5672ff)(_0x5672ff,_0x217e1b,_0x2060d0['get'](_0x5672ff),_0x2060d0['get'](_0x217e1b));if(!_0xa16b07)return null;return _0x56b753['get'](_0x217e1b)(_0x5672ff,_0x217e1b,_0x2060d0['get'](_0x5672ff),_0x2060d0['get'](_0x217e1b))?_0xa16b07[0x1]['commentThread']&&_0xa16b07[0x1]['commentThread']['length']?null:_0xa16b07:null;}_0x29ddd5['size']&&this['_refreshSuggestionsChain'](_0x29ddd5);}['_refreshAttributeSuggestionsChain'](_0x1b9adc){if(0x0==_0x1b9adc['length'])return;const _0x397ea6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x189ab8=>'attribute'==_0x189ab8['type']&&_0x189ab8['_isDataLoaded']),_0x13367d=[],_0x46d3a5=new Map();for(const _0x35fd0d of _0x397ea6){const _0x530e16=_0x4f7d6e(_0x35fd0d['attributes']);_0x46d3a5['has'](_0x530e16)||(_0x46d3a5['set'](_0x530e16,_0x13367d['length']),_0x13367d['push']([]));const _0x2dd7dc=_0x46d3a5['get'](_0x530e16);_0x13367d[_0x2dd7dc]['push'](_0x35fd0d);}!(function(){_0x13367d['sort']((_0x18cbae,_0xd83a6d)=>{const _0x599009=_0x18cbae[0x0]['createdAt'],_0x48fb4c=_0xd83a6d[0x0]['createdAt'];return _0x599009==_0x48fb4c?_0x18cbae[0x0]['attributes']['groupId']<_0xd83a6d[0x0]['attributes']['groupId']?-0x1:0x1:_0x599009<_0x48fb4c?-0x1:0x1;});for(const _0x347358 of _0x13367d)_0x347358['sort']((_0x3522f9,_0x45491e)=>_0x3522f9['id']<_0x45491e['id']?-0x1:0x1);}());for(let _0x249378=0x0;_0x249378<_0x13367d['length'];_0x249378++){if(0x0==_0x13367d[_0x249378]['length'])continue;const _0x445463=[];for(let _0x58d7c3=_0x249378+0x1;_0x58d7c3<_0x13367d['length'];_0x58d7c3++)0x0!=_0x13367d[_0x58d7c3]['length']&&_0x5bc82e(_0x13367d[_0x249378],_0x13367d[_0x58d7c3])&&_0x445463['push'](_0x58d7c3);for(const _0x2a85c5 of _0x445463)_0x13367d[_0x249378]=_0x13367d[_0x249378]['concat'](_0x13367d[_0x2a85c5]),_0x13367d[_0x2a85c5]=[];}for(const _0x589bbc of _0x13367d)for(let _0x26d3c0=0x0;_0x26d3c0<_0x589bbc['length'];_0x26d3c0++){const _0x5a9be1=_0x589bbc[_0x26d3c0+0x1]||null;_0x589bbc[_0x26d3c0]['next']!==_0x5a9be1&&(_0x589bbc[_0x26d3c0]['next']=_0x5a9be1);}for(const _0x33e227 of _0x13367d)for(let _0x1571dc=0x0;_0x1571dc<_0x33e227['length'];_0x1571dc++){const _0x4753b0=_0x33e227[_0x1571dc-0x1]||null;_0x33e227[_0x1571dc]['previous']!==_0x4753b0&&(_0x33e227[_0x1571dc]['previous']=_0x4753b0);}function _0x5bc82e(_0x4e7a5f,_0x5c6829){if(_0x4e7a5f[0x0]['attributes']['groupId']!==_0x5c6829[0x0]['attributes']['groupId']&&_0x4e7a5f[0x0]['author']!==_0x5c6829[0x0]['author'])return!0x1;if(!function(_0x438524,_0x20525f){if(!_0x438524['hasComments']&&!_0x20525f['hasComments'])return!0x0;if(_0x438524['hasComments']&&_0x20525f['hasComments'])return!0x1;if(_0x438524['hasComments']&&_0x20525f['createdAt']<_0x438524['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x20525f['hasComments']&&_0x438524['createdAt']<_0x20525f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4e7a5f[0x0],_0x5c6829[0x0]))return!0x1;const _0x3ef20c=Gt(_0x4e7a5f[0x0]['attributes'],['groupId','trackingSessionId']),_0x4a6397=Gt(_0x5c6829[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3b563a(_0x3ef20c,_0x4a6397))return!0x1;if(_0x4e7a5f[0x0]['attributes']['groupId']==_0x5c6829[0x0]['attributes']['groupId'])return!0x0;if(_0x4e7a5f[0x0]['attributes']['trackingSessionId']!==_0x5c6829[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4e7a5f['every'](_0x5b1521=>_0x5c6829['some'](_0x585ca0=>_0x5b1521['getFirstRange']()['isEqual'](_0x585ca0['getFirstRange']())))&&_0x5c6829['every'](_0x3d424f=>_0x4e7a5f['some'](_0x4b4e4c=>_0x3d424f['getFirstRange']()['isEqual'](_0x4b4e4c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x302898){const _0x3d32b2=Array['from'](_0x302898),_0x30637b=this['getSuggestions']({'skipNotAttached':!0x0}),_0xa5e7cc=_0x30637b['filter'](_0x5f21ed=>!_0x302898['has'](_0x5f21ed)),_0x32110b=new Map(_0x3d32b2['map'](_0x4a2952=>[_0x4a2952,this['_suggestionFactory']['getSuggestionCallback'](_0x4a2952['type'],_0x4a2952['subType'],'join')])),_0x429f7e=new Map(_0x30637b['map'](_0x319034=>[_0x319034,_0x319034['getRanges']()]));for(let _0x4f3b89=0x0;_0x4f3b89<_0x3d32b2['length'];_0x4f3b89++){if(_0x4977d3(this,_0x3d32b2[_0x4f3b89],_0x3d32b2,_0x4f3b89+0x1))return!0x0;}for(let _0x510269=0x0;_0x510269<_0x3d32b2['length'];_0x510269++){if(_0x4977d3(this,_0x3d32b2[_0x510269],_0xa5e7cc,0x0))return!0x0;}return!0x1;function _0x4977d3(_0x1e5ee7,_0x100970,_0x2503ea,_0x283e27){for(let _0x21f309=_0x283e27;_0x21f309<_0x2503ea['length'];_0x21f309++){const _0x596b6b=_0x2503ea[_0x21f309];if(_0x596b6b['type']!==_0x100970['type']||_0x596b6b['author']['id']!==_0x100970['author']['id']||_0x596b6b['subType']!==_0x100970['subType'])continue;if(!ee(_0x100970,_0x596b6b))continue;if('attribute'==_0x100970['type']&&_0x100970['data']['oldValue']!=_0x596b6b['data']['oldValue'])continue;if('attribute'==_0x100970['type']&&_0x1e5ee7['_isBlockAttribute'](_0x100970['data']['key']))continue;if('formatBlock'==_0x100970['type']){const _0x31adda=_0x1e5ee7['editor']['model'],_0x249f34=_0x100970['getContainedElement']();if(_0x249f34&&(_0x31adda['schema']['isObject'](_0x249f34)||_0x31adda['schema']['isLimit'](_0x249f34)))continue;}const _0x31d238=_0x32110b['get'](_0x100970),_0x558db4=_0x429f7e['get'](_0x100970),_0x58a025=_0x429f7e['get'](_0x596b6b),_0x32866f=_0x100970['commentThread']&&_0x100970['commentThread']['length'],_0x40b110=_0x596b6b['commentThread']&&_0x596b6b['commentThread']['length'];if(!_0x32866f&&_0x31d238(_0x58a025,_0x558db4))return _0x1e5ee7['_joinSuggestions'](_0x596b6b,_0x100970),_0x429f7e['delete'](_0x100970),!0x0;if(!_0x40b110&&_0x31d238(_0x558db4,_0x58a025))return _0x1e5ee7['_joinSuggestions'](_0x100970,_0x596b6b),_0x429f7e['delete'](_0x596b6b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5cc52f,_0x55ade4){if(_0x5cc52f['isMultiRange']){for(const _0x21c790 of _0x55ade4['getRanges']())_0x5cc52f['addRange'](_0x21c790);}else{const _0x5039ae=_0x55ade4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5cc52f,this['_model']['createRange'](_0x5cc52f['getFirstRange']()['start'],_0x5039ae));}_0x55ade4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x158994,_0x16ed33,_0x400cb4){const _0x46ff9a=_0x158994['startsWith']('format')||_0x158994['startsWith']('attribute')?'FORMATTING':_0x158994['toUpperCase']();return o(this['editor']['locale'],_0x16ed33+'_'+_0x46ff9a+'_SUGGESTION_ANNOUNCEMENT',_0x400cb4);}['_initAriaMarkerChangeAnnouncements'](){const _0x551d79=this['editor'];if(!_0x551d79['ui'])return;const {ariaLiveAnnouncer:_0x132133}=_0x551d79['ui'];_0x54016c(this['_model'],({left:_0x362901,entered:_0x493ed4})=>{for(const _0x119657 of _0x362901){const {group:_0x42cd1c,type:_0x5549a9}=this['_splitMarkerName'](_0x119657['name']);if('suggestion'===_0x42cd1c){_0x132133['announce'](this['_getMarkerAnnouncementText'](_0x5549a9,'LEAVE'));break;}}for(const _0x5aaa4c of _0x493ed4){const {group:_0x81e91f,type:_0x40758e}=this['_splitMarkerName'](_0x5aaa4c['name']);if('suggestion'===_0x81e91f){_0x132133['announce'](this['_getMarkerAnnouncementText'](_0x40758e,'ENTER',_0x160cbf(_0x320f63)));break;}}});}['_processAttributeChanges'](_0x328820){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb4541e=this['editor'],_0x54eb59=_0xb4541e['model']['document']['differ']['getChanges']();if(0x0==_0x54eb59['length'])return!0x1;const _0x30cf09=[],_0x1ec696=_0x54eb59['filter'](_0x33d9c4=>'attribute'==_0x33d9c4['type']),_0x2e1289=_0x54eb59['filter'](_0x3caeb6=>'insert'==_0x3caeb6['type']&&'$text'!=_0x3caeb6['name']),_0x1b33c1=_0x54eb59['filter'](_0x247149=>'remove'==_0x247149['type']&&'$text'!=_0x247149['name']);for(const _0x23e2c of _0x1ec696)_0x30cf09['push']({'key':_0x23e2c['attributeKey'],'newValue':_0x23e2c['attributeNewValue'],'oldValue':_0x23e2c['attributeOldValue'],'range':Yt(_0x23e2c['range'],_0xb4541e['model'])});for(const _0x3aa166 of _0x2e1289){const _0x8bd87c=_0x1b33c1['find'](_0x5603e5=>_0x5603e5['position']['isEqual'](_0x3aa166['position']));_0x8bd87c&&_0x30cf09['push']({'key':m,'newValue':_0x3aa166['name'],'oldValue':_0x8bd87c['name'],'range':_0xb4541e['model']['createRangeOn'](_0x3aa166['position']['nodeAfter'])});}return 0x0!=_0x30cf09['length']&&this['_reduceExistingSuggestions'](_0x328820,_0x30cf09);}['_processAttributeSuggestions'](_0x54d592){let _0x3d0912=!0x1;const _0x17fe1d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5a290a=>_0x5a290a['data']['newRange']&&_0x5a290a['name']['startsWith']('suggestion:attribute:'));for(const _0x53831f of _0x17fe1d){const {subType:_0x50dd3e,id:_0x1a5ed5}=this['_splitMarkerName'](_0x53831f['name']),_0x1b73b8=_0x50dd3e['split']('|')[0x0];for(const _0x6945ff of this['getSuggestions']({'skipNotAttached':!0x0}))_0x6945ff['id']!=_0x1a5ed5&&'attribute'==_0x6945ff['type']&&_0x6945ff['data']&&_0x6945ff['data']['key']==_0x1b73b8&&_0x6945ff['getFirstRange']()['isIntersecting'](_0x53831f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x6945ff,_0x53831f['data']['newRange'],_0x54d592),_0x3d0912=!0x0);}return _0x3d0912;}['recordAttributeChanges'](_0x4c9b9d){this['_recordAttributeSuggestions']=!0x0,_0x4c9b9d();}['_isRegisteredAttribute'](_0x267ddc){const _0xae3263=this['_isBlockAttribute'](_0x267ddc),_0x31d625=this['_isInlineAttribute'](_0x267ddc);return _0xae3263||_0x31d625;}['_reduceExistingSuggestions'](_0x456312,_0xaf7c4){if(0x0==_0xaf7c4['length'])return!0x1;let _0x38df8b=!0x1;for(const _0x1fbebf of _0xaf7c4){const _0x5106ff=this['_findSuggestions'](_0x1fbebf['range'],'attribute')['filter'](_0x3af726=>!_0x3af726['meta']['isNextTo'])['map'](_0x55f43c=>_0x55f43c['suggestion']),_0x2c03aa=_0x4f7d6e({'newValue':_0x1fbebf['newValue']});_0x5106ff['filter'](_0x3c3bed=>{const [_0x34168b,_0x4816c2]=_0x3c3bed['subType']['split']('|');return _0x34168b==_0x1fbebf['key']&&_0x4816c2!=_0x2c03aa;})['forEach'](_0x1ff604=>{this['_reduceSuggestionAttributeRange'](_0x1ff604,_0x1fbebf['range'],_0x456312),_0x38df8b=!0x0;});}return _0x38df8b;}['_reduceSuggestionAttributeRange'](_0x3a4168,_0x437a26,_0x1d7fdc){const _0x2ed08b=_0x3a4168['getFirstRange']()['getDifference'](_0x437a26);0x0!==_0x2ed08b['length']?0x1!==_0x2ed08b['length']?this['_breakSuggestionMarker'](_0x3a4168,_0x437a26['start'],_0x437a26['end']):this['_setSuggestionRange'](_0x3a4168,_0x2ed08b[0x0]):_0x1d7fdc['removeMarker'](_0x3a4168['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x101917){this['_editor']=_0x101917,this['_model']=_0x101917['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5e908c,_0x4f825e,_0x5b8eee,_0x420bfc,_0x42e223,_0xfea8b1,_0x518435){return new R(this['_model'],{'type':_0x5e908c,'subType':_0x4f825e,'id':_0x5b8eee,'originalSuggestionId':_0x518435,'author':_0x420bfc,'creator':_0x420bfc,'attributes':_0x42e223,'onAttributesChange':_0xfea8b1,'onAccept':(..._0x4355da)=>this['getSuggestionCallback'](_0x5e908c,_0x4f825e,'accept')(..._0x4355da),'onDiscard':(..._0x382f32)=>this['getSuggestionCallback'](_0x5e908c,_0x4f825e,'discard')(..._0x382f32)});}['registerCustomCallback'](_0x183b2e,_0x1db3dd,_0x1c899e,_0x161e35){const _0x564aca=_0x183b2e+':'+_0x1db3dd+':'+_0x1c899e;this['_customCallbacks']['set'](_0x564aca,_0x161e35);}['getSuggestionCallback'](_0x4c7e41,_0xea2322,_0x192141){const _0x2d0b36=_0x4c7e41+':'+_0xea2322+':'+_0x192141;return this['_customCallbacks']['get'](_0x2d0b36)||this['_defaultCallbacks']['get'](_0x4c7e41+':'+_0x192141);}['_registerDefaultCallbacks'](){const _0x56c2c3=()=>!0x1,_0x3119f7=_0x11997b=>{_0x11997b['sort']((_0x14c5db,_0x21e8a8)=>_0x14c5db['start']['isBefore'](_0x21e8a8['start'])?0x1:-0x1),this['_model']['change'](_0x198b1e=>{for(const _0x5d24f2 of _0x11997b){let _0x28a3ed;_0x28a3ed=_0x5d24f2['end']['isAtEnd']&&_0x5d24f2['end']['parent']==_0x5d24f2['start']['nodeAfter']?_0x198b1e['createSelection'](_0x5d24f2['start']['nodeAfter'],'on'):_0x198b1e['createSelection'](_0x5d24f2),this['_model']['deleteContent'](_0x28a3ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2b657c=(_0x644cdc,_0x135213)=>{_0x135213&&this['_model']['change'](_0xb18435=>{const {commandName:_0x2540d5,commandParams:_0x149f28=[]}=_0x135213,_0x4124fa=_0x644cdc['map'](_0x35207f=>(Kt(_0x35207f)&&(_0x35207f=this['_model']['createRange'](_0x35207f['end'])),_0x35207f))['filter'](_0x49c524=>'$graveyard'!==_0x49c524['root']['rootName']);if(_0x4124fa['length']<0x1)return;const _0x2b052d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x57d4e4=>_0x5a166f['fromRange'](_0x57d4e4));_0xb18435['setSelection'](_0x4124fa);for(const _0x2b99de of this['_editor']['commands']['commands']())_0x2b99de['refresh']();_0x149f28['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2540d5,..._0x149f28);const _0x3fd833=_0x2b052d['filter'](_0x4bcdf7=>'$graveyard'!=_0x4bcdf7['root']['rootName']);_0x3fd833['length']>0x0&&_0xb18435['setSelection'](_0x3fd833);for(const _0x6b795 of _0x2b052d)_0x6b795['detach']();});},_0xcd4100=(_0x13a6f1,_0x25a97d)=>0x1==_0x13a6f1['length']&&0x1==_0x25a97d['length']&&_0x13a6f1[0x0]['end']['isEqual'](_0x25a97d[0x0]['start']),_0x40ad54=(_0x374c37,_0x272b6f,_0x512ad8,_0x3d994d)=>te(_0x374c37,_0x272b6f,_0x512ad8,_0x3d994d)?[_0x374c37,_0x272b6f]:te(_0x272b6f,_0x374c37,_0x3d994d,_0x512ad8)?[_0x272b6f,_0x374c37]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x56c2c3),this['_defaultCallbacks']['set']('insertion:discard',_0x3119f7),this['_defaultCallbacks']['set']('insertion:join',_0xcd4100),this['_defaultCallbacks']['set']('insertion:chain',_0x40ad54),this['_defaultCallbacks']['set']('deletion:accept',_0x3119f7),this['_defaultCallbacks']['set']('deletion:discard',_0x56c2c3),this['_defaultCallbacks']['set']('deletion:join',_0xcd4100),this['_defaultCallbacks']['set']('deletion:chain',_0x40ad54),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b657c),this['_defaultCallbacks']['set']('formatInline:discard',_0x56c2c3),this['_defaultCallbacks']['set']('formatInline:join',_0xcd4100),this['_defaultCallbacks']['set']('formatInline:chain',_0x56c2c3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2b657c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x56c2c3),this['_defaultCallbacks']['set']('formatBlock:join',_0xcd4100),this['_defaultCallbacks']['set']('formatBlock:chain',_0x56c2c3),this['_defaultCallbacks']['set']('attribute:accept',_0x56c2c3),this['_defaultCallbacks']['set']('attribute:discard',(_0x11d55f,_0x5894e7)=>{if(!_0x5894e7)return;const _0x4bdcac=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x335665=>{if(_0x5894e7['key']==m)for(const _0x1ee2bc of _0x11d55f){const _0x394c85=_0x1ee2bc['start']['nodeAfter'],_0x40de3f=_0x5894e7['oldValue'];_0x335665['rename'](_0x394c85,_0x40de3f);}else{if(_0x4bdcac['_isBlockAttribute'](_0x5894e7['key'])){for(const _0x588bee of _0x11d55f)void 0x0!==_0x5894e7['oldValue']?_0x335665['setAttribute'](_0x5894e7['key'],_0x5894e7['oldValue'],_0x588bee['start']['nodeAfter']):_0x335665['removeAttribute'](_0x5894e7['key'],_0x588bee['start']['nodeAfter']);}else{for(const _0x29c90f of _0x11d55f)_0x5894e7['oldValue']?_0x335665['setAttribute'](_0x5894e7['key'],_0x5894e7['oldValue'],_0x29c90f):_0x335665['removeAttribute'](_0x5894e7['key'],_0x29c90f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xcd4100);}}function Jt(_0x14c81c,_0x4bc86f,_0x47dd7b){for(const _0x3689b3 of _0x4bc86f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3689b3['root']==_0x3689b3)return!0x1;if(!_0x47dd7b['containsItem'](_0x3689b3))return!0x1;if(_0x14c81c['isObject'](_0x3689b3)||_0x14c81c['isLimit'](_0x3689b3))return!0x0;}return!0x1;}function Kt(_0x2b2597){return _0x2b2597['end']['parent']==_0x2b2597['start']['nodeAfter']&&_0x2b2597['end']['isAtStart'];}function Ht(_0x34c8b5,_0x494c29,_0x177248,_0x4c32b5){const _0x53ba7c=_0x21608e=>!_0x21608e['item']['is']('$textProxy')&&!_0x4c32b5['isObject'](_0x21608e['item']),_0x309a74=_0x34c8b5['start']['getLastMatchingPosition'](_0x53ba7c),_0x3078de=_0x34c8b5['end']['getLastMatchingPosition'](_0x53ba7c,{'direction':'backward'});return(!_0x34c8b5['start']['isEqual'](_0x309a74)||!_0x34c8b5['end']['isEqual'](_0x3078de))&&(_0x309a74['isBefore'](_0x3078de)?_0x177248['updateMarker'](_0x494c29,{'range':_0x177248['createRange'](_0x309a74,_0x3078de)}):_0x177248['removeMarker'](_0x494c29),!0x0);}function Wt(_0x282efd){return _0x4f7d6e(_0x282efd);}function qt(_0x46708e){const _0x4a9fe7=_0x46708e['start']['nodeAfter'];return _0x4a9fe7&&_0x4a9fe7['is']('element');}function zt(_0x2207bb){return Kt(_0x2207bb)||function(_0x5ab652){return _0x5ab652['start']['parent']==_0x5ab652['end']['nodeBefore']&&_0x5ab652['start']['isAtEnd'];}(_0x2207bb);}function Qt(_0x1b20d9,_0x1b4e94){try{const _0x14f25f=_0x1b20d9['getRange']();for(const _0x4c27a1 of _0x1b4e94)if(_0x1b20d9!==_0x4c27a1&&_0x14f25f&&_0x14f25f['isIntersecting'](_0x4c27a1['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0xbffae3,_0x3cf20c){const _0x425c45=_0xbffae3['end']['nodeBefore'];if(_0x425c45&&_0x425c45['is']('element')&&_0x3cf20c['schema']['isBlock'](_0x425c45)&&!_0x3cf20c['schema']['isObject'](_0x425c45)){const _0x146e1d=_0x3cf20c['createPositionAt'](_0x425c45,'end');return _0x3cf20c['createRange'](_0xbffae3['start'],_0x146e1d);}return _0xbffae3;}function Yt(_0x25ff15,_0x4b0597){return null==_0x25ff15['end']['nodeBefore']&&_0x25ff15['end']['parent']==_0x25ff15['start']['nodeAfter']?Zt(_0x25ff15['start']['nodeAfter'],_0x4b0597):_0x25ff15;}function Zt(_0x4d5f29,_0x5cd389){const _0x757f34=_0x5cd389['schema']['isObject'](_0x4d5f29)||_0x5cd389['schema']['isSelectable'](_0x4d5f29);return _0x5cd389['createRange'](_0x5cd389['createPositionAt'](_0x4d5f29,'before'),_0x757f34?_0x5cd389['createPositionAfter'](_0x4d5f29):_0x5cd389['createPositionAt'](_0x4d5f29,'end'));}function te(_0x24ceb4,_0x27c9ff,_0x4b31cd,_0xb335d6){return!!ee(_0x24ceb4,_0x27c9ff)&&_0x4b31cd['end']['isEqual'](_0xb335d6['start']);}function ee(_0x431dd3,_0x49e7b8){if(!_0x431dd3['_isDataLoaded']||!_0x49e7b8['_isDataLoaded'])return!0x1;const _0x190d99=new Set(Object['keys'](_0x431dd3['attributes'])),_0x605d88=new Set(Object['keys'](_0x49e7b8['attributes']));if(_0x190d99['delete']('groupId'),_0x605d88['delete']('groupId'),0x0==_0x190d99['size']&&0x0==_0x605d88['size'])return!0x0;if(_0x190d99['size']!=_0x605d88['size'])return!0x1;const _0x1536b4={..._0x431dd3['attributes']},_0x510baa={..._0x49e7b8['attributes']};return delete _0x1536b4['groupId'],delete _0x510baa['groupId'],JSON['stringify'](_0x1536b4)==JSON['stringify'](_0x510baa);}function ie(_0x3bd4f3,_0x32fe77){const _0x4134da=ne(_0x3bd4f3['attributes']),_0x5bef8a=ne(_0x32fe77);if(!_0x3bd4f3['_isDataLoaded'])return!0x1;for(const _0x1152ab of Object['keys'](_0x5bef8a))if(!_0x3b563a(_0x4134da[_0x1152ab],_0x5bef8a[_0x1152ab]))return!0x1;return!0x0;}function ne(_0x40f03a){const _0x11c918=Object['assign']({},_0x40f03a);return delete _0x11c918['skipNestingCheck'],delete _0x11c918['tablePasteChainId'],_0x11c918;}function se(_0x15f17f){return _0x15f17f['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0xcedd82(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x267680,_0x101aa6,_0x459538,_0x415271){super(),this['model']=_0x101aa6,this['view']=_0x459538,this['commentThreadController']=_0x415271,this['_editor']=_0x267680,this['_acceptCommand']=_0x267680['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x267680['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4f6945,_0xb892ce)=>_0x4f6945||_0xb892ce),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5f9582=>_0x5f9582&&this['_editor']['model']['canEditAt'](_0x101aa6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x26428d=>_0x26428d&&this['_editor']['model']['canEditAt'](_0x101aa6['getRanges']())),this['_pendingAction']=null,_0x459538['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x459538,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x459538,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x459538,'change:isDirty',()=>{_0x459538['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 _0x27b015=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27b015);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x326a2b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4e0a8e,_0x2988e8,_0x7fc39a,_0x4dc49e){super(_0x4e0a8e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bd7fe(_0x4e0a8e,o(_0x4e0a8e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2988e8['authoredAt']),this['bind']('authoredAt')['to'](_0x2988e8),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',_0x2988e8,'authoredAt',this,'descriptionParts',(_0x51fe60,_0x2ece1a,_0x430917)=>{const _0x393102=_0x430917['map'](_0x51f040=>ls(_0x51f040['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x51fe60-0x1,_0x2988e8['author']['name'],_0x2ece1a?_0x4dc49e['formatDateTime'](_0x2ece1a):'',new DOMParser()['parseFromString'](_0x393102,'text/html')['body']['textContent']]);}),this['focusables']=new _0xe1cd29(),this['focusTracker']=new _0x19fbab(),this['keystrokes']=new _0x360216(),this['focusCycler']=new _0x41f717({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x58c2a0=>_0x58c2a0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2988e8,this['_localUser']=_0x7fc39a,this['_config']=_0x4dc49e,_0x4dc49e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xb94405(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x274fcf}=this['_config'];this['commentsListView']=new _0x274fcf(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',_0x2026dd=>_0x2026dd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x9ad2cd,_0x3c92c0)=>_0x9ad2cd||!!_0x3c92c0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4b9cc3}=this['_config'],_0x53fbf7=new _0x4b9cc3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x26f7ca=_0x53fbf7['commentInputView'];return _0x53fbf7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x26f7ca,'value',(_0x28eb63,_0x8ddb05,_0x2e5ed7)=>!!_0x2e5ed7||_0x28eb63&&!_0x8ddb05),_0x26f7ca['on']('submit',(_0x12029e,_0x254c0f)=>{this['fire']('addComment',_0x254c0f),_0x26f7ca['editor']['setData']('');}),_0x26f7ca['on']('cancel',()=>this['focus']()),_0x26f7ca['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x53fbf7;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x34af6a,_0x3d76a8,_0x38abdf,_0x18e646){super(_0x34af6a,_0x3d76a8,_0x38abdf,_0x18e646),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a96b6=>_0x3a96b6&&_0x3a96b6[0x0]?_0x3a96b6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xb740ca,_0x1d5df2)=>{let _0x20a998='';for(const _0xf14382 of _0xb740ca)_0x20a998+='<p>'+ls(_0xf14382['content'],_0xf14382['color'])+'</p>';return _0x1d5df2?_0x20a998:_0x3c1311(_0x20a998,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x18e646['SuggestionView'](_0x34af6a,_0x3d76a8,{'formatDateTime':_0x18e646['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 _0x4e0fd1=this['bindTemplate'],_0x21db69=[this['suggestionView']];return this['commentsListView']&&_0x21db69['push'](this['commentsListView']),this['commentThreadInputView']&&_0x21db69['push'](this['commentThreadInputView']),_0x21db69['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4e0fd1['if']('isActive','ck-suggestion-wrapper--active'),_0x4e0fd1['to']('type',_0x15788a=>'ck-suggestion-'+_0x15788a),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':_0x4e0fd1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x21db69};}['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 Le extends _0x326a2b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x592d6f,_0x512b3e,_0x10c25b){super(_0x592d6f),this['_model']=_0x512b3e,this['_config']=_0x10c25b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x512b3e),this['acceptButton']=this['_createButton'](o(_0x592d6f,'Accept\x20suggestion'),_0x11f1da,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x592d6f,'Discard\x20suggestion'),_0x49bd98,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x36ef0d(_0x592d6f,_0x512b3e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xe1cd29([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x19fbab(),this['keystrokes']=new _0x360216(),this['focusCycler']=new _0x41f717({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x24d706=>_0x24d706['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2818ea=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2818ea['innerHTML']=this['description'],this['on']('change:description',(_0x4701c3,_0x4bd831,_0x56882e)=>{_0x2818ea['innerHTML']=_0x56882e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3e1d23=this['bindTemplate'],_0x4e8a11=[{'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':_0x3e1d23['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3e1d23['to']('authoredAt',_0x1137f9=>this['_config']['formatDateTime'](_0x1137f9))}]}]},{'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']&&_0x4e8a11['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':_0x4e8a11}]};}['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'](_0x2e4e27,_0x4b0178,_0x13f005,_0x280a4d,_0x101ac){const _0x3a2d87=new _0x5a8c35(this['locale']);return _0x3a2d87['set']({'label':_0x2e4e27,'icon':_0x4b0178,'tooltip':!0x0,'tooltipPosition':_0x101ac}),_0x3a2d87['extendTemplate']({'attributes':{'class':_0x13f005}}),_0x3a2d87['on']('execute',()=>{this['fire'](_0x280a4d,this['_model']['id']);}),_0x3a2d87;}['_setupKeyboardNavigation'](){const _0x4a05d8=this['element'];this['keystrokes']['listenTo'](_0x4a05d8);for(const _0x3a73e3 of this['focusables'])this['focusTracker']['add'](_0x3a73e3['element']),this['keystrokes']['listenTo'](_0x3a73e3['element']);this['keystrokes']['set']('enter',(_0x15765,_0x52e70a)=>{_0x4a05d8===_0x15765['target']&&(this['focusCycler']['focusFirst'](),_0x52e70a());}),this['keystrokes']['set']('esc',(_0x468681,_0x3f975f)=>{_0x4a05d8!==_0x468681['target']&&(this['focus'](),_0x3f975f());});}}class u extends _0x15a662{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x289e10,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x119ab5){super(_0x119ab5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x531d59=this['editor']['config'];_0x531d59['define']('trackChanges.SuggestionThreadView',Te),_0x531d59['define']('trackChanges.SuggestionView',Le),_0x531d59['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x531d59['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x52e366,_0x401209){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x45609f,_0x2397eb]of this['_handleControllerBuffer']){const _0x4c4aa0=this['_suggestionToController']['has'](_0x45609f);_0x4c4aa0||_0x2397eb?_0x4c4aa0&&_0x2397eb&&this['_destroyController'](_0x45609f):this['_initializeController'](_0x45609f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x52e366,_0x401209);}['init'](){const _0x4ffbdd=this['editor'],_0x528730=_0x4ffbdd['plugins']['get']('TrackChangesEditing'),_0x5185a2=_0x4ffbdd['plugins']['get']('Annotations'),_0x4d715d=_0x4ffbdd['plugins']['get']('EditorAnnotations'),_0x4c5d97=_0x4ffbdd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4d715d['addSourceCollector'](()=>{const _0x45f68f=[];for(const [_0x4edd96,_0x14e3ac]of Array['from'](this['_suggestionToController'])){const _0x8fa0d3=_0x4edd96['getAllAdjacentSuggestions'](),_0x963678=[];for(const _0x451625 of _0x8fa0d3){if(!_0x451625['isInContent'])continue;if(_0x451625['isMultiRange']){_0x963678['push'](..._0x451625['getRanges']());continue;}const _0x4ed366=_0x451625['getFirstRange']();if(_0x963678['length']>0x0){const _0x17188d=_0x963678[0x0]['getJoined'](_0x4ed366);if(_0x17188d){_0x963678[0x0]=_0x17188d;continue;}}_0x963678['push'](_0x4ed366);}_0x45f68f['push']([_0x14e3ac['view'],_0x963678]);}return _0x45f68f;}),this['listenTo'](_0x528730,'suggestionLoaded',(_0x1aeca6,_0x4e4b22)=>{this['listenTo'](_0x4e4b22,'change:previous',(_0x2802ec,_0x31eabd,_0xf53be3,_0x4dfa8e)=>{_0x4e4b22['isInContent']&&(null==_0xf53be3?(this['_updateController'](_0x4dfa8e['head']),this['_handleSuggestionControllerDelayed'](_0x4e4b22,!0x1)):(this['_updateController'](_0xf53be3['head']),null==_0x4dfa8e&&this['_handleSuggestionControllerDelayed'](_0x4e4b22,!0x0)));}),null!==_0x4e4b22['previous']?this['_updateController'](_0x4e4b22['head']):this['_handleSuggestionControllerDelayed'](_0x4e4b22,!0x1);}),this['listenTo'](_0x528730,'suggestionUnloaded',(_0x309983,_0x126f3b,_0x52b732)=>{this['stopListening'](_0x126f3b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x126f3b),this['_suggestionToController']['has'](_0x126f3b)&&this['_destroyController'](_0x126f3b),_0x52b732&&this['_updateController'](_0x52b732['head']);}),this['listenTo'](_0x528730,'suggestionChanged',(_0x40cc32,_0x22d055)=>{this['_updateController'](_0x22d055);}),this['listenTo'](_0x5185a2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4c5d97,'addComment',(_0x417870,{threadId:_0x7fef7f,isFromAdapter:_0x438279})=>{if(_0x438279||!_0x528730['hasSuggestion'](_0x7fef7f))return;const _0x45b7ff=_0x528730['getSuggestion'](_0x7fef7f);this['_suggestionToController']['get'](_0x45b7ff)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x30154a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x20f032;for(const _0x46d002 in _0x30154a){const _0x21e1b7=_0x46d002,_0x148df2=_0x30154a[_0x21e1b7];if('trackChangesLicenseKeyValid'==_0x148df2||'trackChangesLicenseKeyInvalid'==_0x148df2||'trackChangesLicenseKeyExpired'==_0x148df2||'trackChangesLicenseKeyDomainLimit'==_0x148df2||'trackChangesLicenseKeyNotAllowed'==_0x148df2||'trackChangesLicenseKeyEvaluationLimit'==_0x148df2||'trackChangesLicenseKeyTrialLimit'==_0x148df2||'trackChangesLicenseKeyUsageLimit'==_0x148df2){delete _0x30154a[_0x21e1b7],_0x20f032=_0x148df2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x20f032&&_0x30154a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x20f032&&_0x30154a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x20f032&&_0x30154a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x20f032&&_0x30154a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x20f032&&_0x30154a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x20f032&&_0x30154a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x20f032&&_0x30154a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x59e04f){const _0x4f4256=this['_suggestionToController']['get'](_0x59e04f);if(!_0x4f4256)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4f4256['view'])||null;}['getSuggestionForAnnotation'](_0x314a8b){const _0x59e855=this['_viewToController']['get'](_0x314a8b['innerView']);return _0x59e855?_0x59e855['model']:null;}['_refreshActiveMarkers'](){const _0x1f1cbd=this['editor']['plugins']['get']('Annotations'),_0x3f85c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3951e1=Array['from'](_0x1f1cbd['activeAnnotations'],_0x612eac=>_0x612eac['innerView'])['filter'](_0xfd77cc=>this['_viewToController']['has'](_0xfd77cc)),_0x492454=[];for(const _0x4ecf82 of _0x3951e1){const _0x52273d=this['_viewToController']['get'](_0x4ecf82)['model']['getAllAdjacentSuggestions']();_0x492454['push'](..._0x52273d['reduce']((_0x4af696,_0x23a0bf)=>[..._0x4af696,..._0x23a0bf['getMarkerNames']()],[]));}_0x3f85c8['activeMarkers']=_0x492454;}['_addUIComponentsToFactory'](){const _0x2016b5=this['editor'],_0x2ce29f=_0x2016b5['locale'],_0x5b43d5=o(_0x2ce29f,'Track\x20changes'),_0xbc801d=new _0x2f0e5f([{'type':'switchbutton','model':new _0x427f43({'withText':!0x0,'isToggleable':!0x0,'label':_0x5b43d5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2016b5['plugins']['has']('TrackChangesPreview')&&_0xbc801d['addMany']([{'type':'separator'},{'type':'button','model':new _0x427f43({'withText':!0x0,'label':o(_0x2ce29f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4c534e of _0xbc801d)if(ve(_0x4c534e)){const _0x556420=_0x2016b5['commands']['get'](_0x4c534e['model']['commandName']);_0x4c534e['model']['bind']('isOn','isEnabled')['to'](_0x556420,'value','isEnabled');}_0x2016b5['ui']['componentFactory']['add']('trackChanges',_0x512716=>this['_createToolbarButton'](_0x512716,_0xbc801d,_0x5b43d5)),_0x2016b5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x59fb70=>this['_createMenuBarMenu'](_0x59fb70,_0xbc801d,_0x5b43d5));}['_createToolbarButton'](_0x55df88,_0x349c21,_0x4dc1f6){const _0x3a8442=_0x17c506(_0x55df88,_0x5c7ee9),_0x547486=this['editor']['commands']['get']('trackChanges');_0x3a8442['buttonView']['set']({'tooltip':_0x4dc1f6,'label':_0x4dc1f6,'icon':_0xb97b96}),_0x3a8442['buttonView']['bind']('isOn')['to'](_0x547486,'value'),_0x3a8442['buttonView']['on']('execute',()=>{_0x547486['execute'](),this['editor']['editing']['view']['focus']();}),_0x17740a(_0x3a8442,_0x349c21,{'role':'menu'});const _0x53a322=[];for(const _0x254cc9 of _0x349c21)ve(_0x254cc9)&&_0x53a322['push'](this['editor']['commands']['get'](_0x254cc9['model']['commandName']));const _0x3e3974=_0x3a8442['buttonView'];return _0x3e3974['actionView']['unbind']('isEnabled'),_0x3e3974['arrowView']['unbind']('isEnabled'),_0x3e3974['actionView']['bind']('isEnabled')['to'](_0x547486,'isEnabled'),_0x3e3974['arrowView']['bind']('isEnabled')['toMany'](_0x53a322,'isEnabled',(..._0x2843bd)=>_0x2843bd['some'](_0x110fcf=>_0x110fcf)),_0x3a8442['on']('execute',_0x2dca18=>{this['editor']['execute'](_0x2dca18['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a8442;}['_createMenuBarMenu'](_0x2986ac,_0x353b50,_0x559d74){const _0x2b56a8=new _0xe399e0(_0x2986ac),_0x552f37=this['editor']['commands']['get']('trackChanges');_0x2b56a8['buttonView']['set']({'label':_0x559d74,'icon':_0xb97b96});const _0x335df1=new _0x1de637(_0x2986ac);for(const _0x5e3de5 of _0x353b50){if('separator'==_0x5e3de5['type']){_0x335df1['items']['add'](new _0x13a2c5(_0x2986ac));continue;}const _0x1a8347=new _0x15614b(_0x2986ac,_0x2b56a8),_0x1615bf=new _0x330001(_0x2986ac),_0x5198ea=_0x5e3de5['model'];_0x1615bf['bind'](...Object['keys'](_0x5198ea))['to'](_0x5198ea),_0x1615bf['delegate']('execute')['to'](_0x2b56a8),_0x1615bf['on']('execute',()=>{this['editor']['execute'](_0x5198ea['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a8347['children']['add'](_0x1615bf),_0x335df1['items']['add'](_0x1a8347);}return _0x2b56a8['bind']('isEnabled')['to'](_0x552f37,'isEnabled'),_0x2b56a8['panelView']['children']['add'](_0x335df1),_0x2b56a8;}['_initializeController'](_0x5cce23){const _0x961f00=this['editor'],_0x36e5dd=_0x961f00['config'],_0x4229b0=_0x961f00['plugins']['get']('Annotations'),_0x145ed2=_0x961f00['plugins']['get']('CommentsRepository'),_0x213956=_0x961f00['plugins']['get']('EditorAnnotations'),_0x55cb9f=_0x961f00['plugins']['get'](_0x289e10)['me'],_0x302fdb=_0x36e5dd['get']('trackChanges')['SuggestionThreadView'],_0x4ce9f7=_0x36e5dd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x24b6eb,CommentThreadInputView:_0x3fa0d1}=_0x961f00['plugins']['get']('CommentsUI');let _0x31a25d,_0x1f8810,_0x16a121;this['_annotationViews']['has'](_0x5cce23['id'])?(_0x1f8810=this['_annotationViews']['get'](_0x5cce23['id']),_0x31a25d=_0x1f8810['mainView']):(_0x31a25d=new _0x302fdb(_0x961f00['locale'],_0x5cce23,_0x55cb9f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x36e5dd['get']('comments.editorConfig'),'licenseKey':_0x36e5dd['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x36e5dd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x36e5dd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x36e5dd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b6d96(_0x36e5dd['get']('locale'),_0x961f00['locale']),'CommentView':_0x36e5dd['get']('comments')['CommentView'],'CommentsListView':_0x24b6eb,'CommentThreadInputView':_0x3fa0d1,'SuggestionView':_0x4ce9f7}),_0x31a25d['suggestionView']['acceptButton']['on']('execute',()=>{_0x961f00['editing']['view']['focus']();}),_0x31a25d['suggestionView']['discardButton']['on']('execute',()=>{_0x961f00['editing']['view']['focus']();}),_0x1f8810=_0x4229b0['createAnnotationView'](this['editor']['locale'],_0x31a25d),_0x1f8810['bind']('isDirty')['to'](_0x31a25d,'isDirty'),_0x1f8810['bind']('length')['to'](_0x31a25d),_0x1f8810['bind']('type')['to'](_0x31a25d,'type',_0x12711d=>'suggestion-'+_0x12711d),_0x31a25d['on']('escape',()=>{_0x16a121['fire']('escape');}),this['_annotationViews']['set'](_0x5cce23['id'],_0x1f8810));const _0x480f21=_0x145ed2['createCommentThreadController'](_0x5cce23['commentThread'],_0x31a25d),_0x8b3406=new be(_0x961f00,_0x5cce23,_0x31a25d,_0x480f21),_0x7e890e=_0x5cce23['getAllAdjacentSuggestions']()['filter'](_0x1e5c46=>_0x1e5c46['isInContent']);_0x31a25d['descriptionParts']=_0x961f00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x7e890e),this['_suggestionToController']['set'](_0x5cce23,_0x8b3406),this['_viewToController']['set'](_0x31a25d,_0x8b3406);const _0x1d6349=()=>{const _0x185f95=[],_0x4f03bc=_0x5cce23['getAllAdjacentSuggestions']()['filter'](_0x2a88c3=>_0x2a88c3['isInContent']);for(const _0x84abc0 of _0x4f03bc)_0x185f95['push'](..._0x84abc0['getMarkers']());return _0x41ca29(_0x961f00['editing'],_0x185f95);};_0x16a121=_0x4229b0['createAnnotation']({'view':_0x1f8810,'target':_0x1d6349,'type':()=>'suggestion-'+_0x8b3406['view']['type'],'isVisible':!!_0x1d6349()}),_0x145ed2['_bindAnnotationToEditors'](_0x31a25d,_0x16a121),_0x4229b0['add'](_0x16a121),_0x213956['registerAnnotation'](_0x16a121);}['_destroyController'](_0x505b33){const _0x34a6b6=this['editor']['plugins']['get']('CommentsRepository'),_0xa37a60=this['editor']['plugins']['get']('Annotations'),_0x399c7f=this['_suggestionToController']['get'](_0x505b33),_0x155847=_0x399c7f['view'],_0x1e9dc3=_0xa37a60['getByInnerView'](_0x155847);_0x34a6b6['_unbindEditors'](_0x155847),_0x1e9dc3&&_0xa37a60['remove'](_0x1e9dc3),this['_suggestionToController']['delete'](_0x505b33),this['_viewToController']['delete'](_0x155847),_0x399c7f['destroy']();}['_updateController'](_0x1a13fb){if(!_0x1a13fb['isInContent']||!this['_suggestionToController']['has'](_0x1a13fb))return;const _0x6b6e01=this['editor']['plugins']['get']('TrackChangesEditing'),_0xae523d=this['_suggestionToController']['get'](_0x1a13fb),_0x581af8=_0x1a13fb['getAllAdjacentSuggestions']();_0xae523d['view']['descriptionParts']=_0x6b6e01['descriptionFactory']['getDescriptions'](_0x581af8);}['destroy'](){for(const _0x367223 of this['_suggestionToController']['keys']())this['_destroyController'](_0x367223);for(const _0x12fe55 of this['_annotationViews']['values']())_0x12fe55['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x2cc5dd){return'model'in _0x2cc5dd;}class Ve extends _0x15a662{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x44feb6){this['editor']['plugins']['get'](d)['adapter']=_0x44feb6;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2c470b){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2c470b);}['getSuggestions']({skipNotAttached:_0x2e2507=!0x1,toJSON:_0xd85c50=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2e2507,'toJSON':_0xd85c50});}['getSuggestion'](_0x415f73){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x415f73);}}const p=['Pagination'];class ce extends _0x15a662{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x7272a3=this['editor'];if(_0x7272a3['config']['define']('trackChangesData.editorCreator',_0x4fbd37=>{const _0x2c264f=_0x7272a3['model']['document']['getRootNames']()['reduce']((_0x259d2a,_0x308110)=>(_0x259d2a[_0x308110]='',_0x259d2a),{});return _0x7272a3['constructor']['create'](_0x2c264f,_0x4fbd37);}),'function'!=typeof _0x7272a3['config']['get']('trackChangesData')['editorCreator'])throw new _0x52f81c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x35c264){return P(this['editor'],!0x0,_0x35c264);}['getDataWithDiscardedSuggestions'](_0x4aa5ed){return P(this['editor'],!0x1,_0x4aa5ed);}}class ze extends _0x15a662{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b0cf4){function _0x36651f(_0x21eb41){return _0x21eb41['map'](_0x4a2314=>String['fromCharCode'](_0x4a2314))['join']('');}super(_0x1b0cf4),this['result']='end',_0x1b0cf4[_0x36651f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36651f([0x76,0x69,0x65,0x77])][_0x36651f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36651f([0x61,0x75,0x74,0x6f]),_0x1b0cf4[_0x36651f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x36651f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36651f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x36651f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x36651f([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 Ke(_0x4facdb){return void 0x0!==_0x4facdb['getRootsAttributes'];}async function P(_0xefde48,_0xfdb801,_0x3b7413){const _0x348aa4=_0x218281(_0xefde48,p);_0x348aa4['plugins']['push'](d,ze),_0x348aa4['rootsAttributes']=Ke(_0xefde48)?_0xefde48['getRootsAttributes']():void 0x0;const _0x264b86=document['createDocumentFragment'](),_0x54cba6=_0xefde48['config']['get']('trackChangesData')['editorCreator'],_0x3ee62a=await _0x54cba6(_0x348aa4,()=>function(_0x1dec51){const _0x45c854=document['createElement']('div');return _0x1dec51['appendChild'](_0x45c854),_0x45c854;}(_0x264b86));!function(_0x37d7dc,_0x34deec){const _0x2f82bb=_0x37d7dc['model']['document']['getRootNames']()['reduce']((_0x5a0999,_0x51b817)=>(_0x5a0999[_0x51b817]=_0x37d7dc['data']['get']({'rootName':_0x51b817}),_0x5a0999),{}),_0x45ee86=_0x37d7dc['plugins']['get']('Users')['users']['map'](_0x30ad=>({'id':_0x30ad['id'],'name':_0x30ad['name']})),_0x237d77=_0x37d7dc['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4270bf=_0x37d7dc['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55ab77=_0x34deec['plugins']['get']('Users'),_0x3f4db7=_0x34deec['plugins']['get']('TrackChangesEditing'),_0x1b3dcf=_0x34deec['plugins']['get']('CommentsRepository');for(const _0x537432 of _0x1b3dcf['getCommentThreads']())_0x537432['remove']();for(const _0x3e932a of _0x45ee86)_0x55ab77['getUser'](_0x3e932a['id'])||_0x55ab77['addUser'](_0x3e932a);_0x55ab77['me']||_0x55ab77['useAnonymousUser']();for(const _0x359822 of _0x4270bf)_0x1b3dcf['addCommentThread'](_0x359822);for(const _0x5a8fab of _0x237d77)_0x3f4db7['addSuggestionData'](_0x5a8fab);_0x34deec['data']['set'](_0x2f82bb);}(_0xefde48,_0x3ee62a),_0x3ee62a['execute'](_0xfdb801?'acceptAllSuggestions':'discardAllSuggestions');const _0x1956b7=Ke(_0x3ee62a)?_0x3ee62a['getFullData'](_0x3b7413):_0x3ee62a['data']['get'](_0x3b7413);return await _0x3ee62a['destroy'](),_0x1956b7;}class _e extends _0x326a2b{['options'];constructor(_0x404157,_0x5f02de){super(_0x404157),this['options']=_0x5f02de,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'](_0x431de4,_0x51def9){if(!this['element'])return;const _0x3261fe=[];for(const [_0x1d64e8,_0x49cb75]of _0x431de4){const _0xbcdd5f=document['createElement']('div');_0xbcdd5f['setAttribute']('data-ck-root-name',_0x1d64e8),_0xbcdd5f['className']=_0x49cb75['classes']+'\x20ck-track-changes-preview__root-container',_0xbcdd5f['innerHTML']=_0x49cb75['content'],_0x3261fe['push'](_0xbcdd5f);}_0x51def9(this['element'],_0x3261fe),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x16feb7{constructor(_0x510097){super(_0x510097),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x26339f=this['editor'],_0x1140ba=_0x26339f['locale'],_0x9deece=_0x26339f['plugins']['get']('Dialog');let _0x1791ff;const _0x521ffd=function(_0x27ccf8){const _0xe5f85e={};if('editables'in _0x27ccf8['ui']['view']){for(const [_0x48608d,_0x39a4ed]of Object['entries'](_0x27ccf8['ui']['view']['editables']))_0xe5f85e[_0x48608d]=_0x39a4ed['element'];}else _0xe5f85e[_0x27ccf8['model']['document']['getRootNames']()[0x0]]=_0x27ccf8['ui']['view']['editable']['element'];return _0xe5f85e;}(_0x26339f),_0x426fd7=function(_0x43ad7e){let _0xb0a1ae=0x0;for(const _0x40acec of Object['values'](_0x43ad7e))_0xb0a1ae=Math['max'](_0xb0a1ae,_0x40acec['getBoundingClientRect']()['width']);let _0x594cd0=0x0;for(const _0x1066df of Object['values'](_0x43ad7e))_0x594cd0+=_0x1066df['getBoundingClientRect']()['height'];const _0x49c410=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x27b03c=Math['min'](_0x594cd0,_0x49c410);return{'width':_0xb0a1ae,'height':_0x27b03c};}(_0x521ffd);_0x9deece['show']({'id':'finalContentPreview','title':o(_0x1140ba,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x1140ba,{'dialogRects':_0x426fd7}),'onHide':()=>{_0x1791ff['detachFromDom']();},'onShow':()=>{_0x26339f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x10db76=>{const _0x1cad20=this['_standarizeRootsData'](_0x10db76,_0x26339f,_0x521ffd);_0x9deece['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1cad20,_0x26339f['config']['get']('trackChanges.preview.renderFunction'));}),_0x1791ff=new _0x32b0ab(_0x1140ba,[_0x9deece['view']]),_0x1791ff['attachToDom'](),_0x1791ff['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x26339f['once']('destroy',()=>{_0x1791ff['detachFromDom']();});const _0x4a5c4e=_0x9deece['view']['headerView']['class'];_0x9deece['view']['headerView']['class']=_0x4a5c4e?_0x4a5c4e+'\x20ck-reset_all':'ck-reset_all',_0x9deece['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x9deece['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x34ff8b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2c3567=_0x34ff8b['previewMode'],_0x56dcc2={};if('$labels'===_0x2c3567){for(const _0xc48085 of _0x34ff8b['getMergeFieldsIds']())_0x56dcc2[_0xc48085]=_0x34ff8b['getLabel'](_0xc48085)||_0xc48085;}else{const _0x17611b='$defaultValues'===_0x2c3567?_0x34ff8b['getDefaultValues']():_0x34ff8b['getDataSetValues'](_0x2c3567,!0x0);for(const _0x31cc60 of Object['entries'](_0x17611b)){const [_0xe75b2,_0x3dc011]=_0x31cc60;_0x56dcc2[_0xe75b2]=null!==_0x3dc011?_0x3dc011:_0x34ff8b['getLabel'](_0xe75b2)||_0xe75b2;}}return{'mergeFieldsData':_0x56dcc2};}['_standarizeRootsData'](_0x496591,_0x3d8027,_0x50cad1){let _0x57e381;if('string'==typeof _0x496591){const _0x442418=_0x3d8027['model']['document']['getRootNames']()[0x0];_0x57e381={[_0x442418]:_0x496591};}else _0x57e381=_0x496591;const _0x27dbc6=this['_fixMediaEmbeds'](_0x57e381,_0x3d8027),_0x260d39=function(_0x2699f8,_0x2aac54){for(const [_0x8507b9,_0x41c69d]of _0x2699f8)_0x41c69d['classes']=_0x2aac54[_0x8507b9]['classList']['value']['replace']('ck-focused','');return _0x2699f8;}(this['_sortRoots'](_0x3d8027)['reduce']((_0x1197b9,_0x485213)=>(_0x1197b9['push']([_0x485213,{'content':_0x27dbc6[_0x485213],'classes':''}]),_0x1197b9),[]),_0x50cad1);return _0x260d39;}['_fixMediaEmbeds'](_0x5a474f,_0x49601d){if(!_0x49601d['plugins']['has']('MediaEmbedEditing'))return _0x5a474f;const _0x53b314=_0x49601d['plugins']['get']('MediaEmbedEditing');for(const [_0x4563f3,_0x53b4b5]of Object['entries'](_0x5a474f)){const _0x5aab74=document['createElement']('div');_0x5aab74['innerHTML']=_0x53b4b5,(_0x5aab74['querySelectorAll']('figure.media')['forEach'](_0x53a6ac=>{const _0xe33562=_0x53a6ac['querySelector']('oembed');if(_0xe33562){const _0x5c88ef=_0xe33562['getAttribute']('url');if(_0x5c88ef){const _0x1e7b49=_0x53b314['registry']['getMediaViewElement'](new _0x513971(_0x49601d['editing']['view']['document']),_0x5c88ef,{'elementName':'','renderForEditingView':!0x0}),_0x4352ef=document['createElement']('div');_0x4352ef['classList']['add']('ck-media__wrapper'),_0x1e7b49['render'](_0x4352ef,_0x49601d['editing']['view']['domConverter']),_0xe33562['replaceWith'](_0x4352ef);}}}),_0x5a474f[_0x4563f3]=_0x5aab74['innerHTML']);}return _0x5a474f;}['_sortRoots'](_0x50a3b0){if(!function(_0x1b33c5){return void 0x0!==_0x1b33c5['getRootsAttributes'];}(_0x50a3b0))return _0x50a3b0['model']['document']['getRootNames']();const _0x11b49c=[],_0x2a11db=new Map();for(const _0x52f041 of _0x50a3b0['model']['document']['getRootNames']()){const _0x192586=_0x50a3b0['editing']['view']['getDomRoot'](_0x52f041)['getClientRects']()['item'](0x0);_0x11b49c['push'](_0x52f041),_0x2a11db['set'](_0x52f041,_0x192586);}return _0x11b49c['sort']((_0x4bd62e,_0x2af114)=>{const _0x9a16e0=_0x2a11db['get'](_0x4bd62e),_0x432ecf=_0x2a11db['get'](_0x2af114);return _0x9a16e0['y']-_0x432ecf['y']||_0x9a16e0['x']-_0x432ecf['x'];}),_0x11b49c;}}class Xe extends _0x15a662{static get['requires'](){return[ce,_0x455f93];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x235102){super(_0x235102),_0x235102['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x235102['config']['define']('trackChanges.preview.renderFunction',(_0x6851f2,_0x253838)=>{for(const _0x304271 of _0x253838)_0x6851f2['appendChild'](_0x304271);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x49cdd5,Plugin as _0x51aec7,PendingActions as _0x29f725}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x429a5f,ObservableMixin as _0xbe3abb,uid as _0x475984,priorities as _0x360d7a,insertToPriorityArray as _0x5af922,toArray as _0x5db985,logWarning as _0xf71222,getEnvKeystrokeText as _0x21afc3,FocusTracker as _0x5cff83,KeystrokeHandler as _0x276880,Collection as _0x3a66b7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xea3654,IconCancel as _0x2fcfb0,IconTrackChanges as _0x5dd2d5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x18cdd2,View as _0x5a3c95,ViewCollection as _0x1db316,FocusCycler as _0x18430b,UIModel as _0x30a052,createDropdown as _0x54291d,SplitButtonView as _0x373276,addListToDropdown as _0x498863,MenuBarMenuView as _0x5eb0a8,MenuBarMenuListView as _0x329b0a,ListSeparatorView as _0x56fd50,MenuBarMenuListItemView as _0x75807d,MenuBarMenuListItemButtonView as _0x4d20c6,BodyCollection as _0x4ee4a1,Dialog as _0x1e57c2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1098dc,DocumentCompare as _0x4d46b7,hashObject as _0x44174b,surroundingMarkersDetector as _0x257542,FOCUS_ANNOTATION_KEYSTROKE as _0x3159a1,AriaDescriptionView as _0x3b55ae,setupThreadKeyboardNavigation as _0x49f56c,trimHtml as _0x219846,UserView as _0x586108,LateFocusButtonView as _0x375fb8,getDateTimeFormatter as _0x40ea6f,getAllMarkersDomElementsSorted as _0x576b4e,sanitizeEditorConfig as _0x506a2f}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2b55b8,ModelLiveRange as _0x32ac6b,ModelLivePosition as _0x5f08b7,ModelPosition as _0x5a3d46,ModelRange as _0xfe91f7,_DetachOperation as _0x29341b,ViewDowncastWriter as _0x30b56f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xba8377,toWidget as _0x19cc55}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2b8770,set as _0x546482,isEqual as _0x2e0560,unset as _0x241b58,omit as Gt}from'es-toolkit/compat';import{Delete as _0x50a27b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1098e5}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2c2069}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x49cdd5{['_enabledCommands'];constructor(_0x282ace,_0x32dea3){super(_0x282ace),this['_enabledCommands']=_0x32dea3,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 _0x534644 of this['editor']['commands']['commands']())_0x534644['affectsData']&&!this['_enabledCommands']['has'](_0x534644)&&_0x534644['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x399f1e of this['editor']['commands']['commands']())_0x399f1e['affectsData']&&!this['_enabledCommands']['has'](_0x399f1e)&&_0x399f1e['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x49cdd5{['_suggestions'];constructor(_0x438b26,_0x44206b){super(_0x438b26),this['_suggestions']=_0x44206b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xe7af8d){const _0x4fef48=this['_suggestions']['get'](_0xe7af8d);if(!_0x4fef48)throw new _0x429a5f('track-changes-accept-suggestion-not-found',this);const _0x153b4a=_0x4fef48['getRanges']();this['editor']['model']['canEditAt'](_0x153b4a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4fef48);}}class O extends _0x49cdd5{['_suggestions'];constructor(_0x13bdf9,_0xa6d221){super(_0x13bdf9),this['_suggestions']=_0xa6d221,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1c04c1){const _0x54a36b=this['_suggestions']['get'](_0x1c04c1);if(!_0x54a36b)throw new _0x429a5f('track-changes-discard-suggestion-not-found',this);const _0x111b53=_0x54a36b['getRanges']();this['editor']['model']['canEditAt'](_0x111b53)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x54a36b);}}function ls(_0x2a993b,_0x182e48){let _0x5b6e3f='';return _0x5b6e3f+=_0x2a993b['split']('*')['map']((_0x5e00be,_0x2bc077)=>_0x2bc077%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x5e00be)+'</span>':tn(_0x5e00be))['join'](''),_0x182e48&&(_0x5b6e3f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x182e48['value']+'\x22\x20title=\x22'+_0x182e48['title']+'\x22></span>'),_0x5b6e3f;}function tn(_0x206093){const _0x1dc39a=document['createElement']('span');return _0x1dc39a['innerText']=_0x206093,_0x1dc39a['innerHTML'];}function ts(_0x26e512){return _0x26e512['sort']((_0x55102b,_0x2a1caa)=>'attribute'===_0x55102b['type']&&'attribute'!==_0x2a1caa['type']?-0x1:'attribute'!==_0x55102b['type']&&'attribute'===_0x2a1caa['type']?0x1:'deletion'==_0x55102b['type']&&'deletion'!=_0x2a1caa['type']?-0x1:'deletion'!=_0x55102b['type']&&'deletion'==_0x2a1caa['type']?0x1:0x0);}function to(_0x12f609,_0x1c7a25){let _0x5a28a1,_0x51cea6=0x0;const _0x586a01=[],_0x2dae80=_0x1c7a25['schema'];for(;_0x51cea6<_0x12f609['length'];){const _0x4e6f88=_0x12f609[_0x51cea6],_0x6b215e=_0x12f609[_0x51cea6+0x1];_0x5a28a1||(_0x5a28a1=_0x1c7a25['createPositionBefore'](_0x4e6f88)),nn(_0x1c7a25,_0x4e6f88,_0x6b215e)||(_0x586a01['push'](_0x1c7a25['createRange'](_0x5a28a1,_0x2dae80['isObject'](_0x4e6f88)?_0x1c7a25['createPositionAfter'](_0x4e6f88):_0x1c7a25['createPositionAt'](_0x4e6f88,'end'))),_0x5a28a1=null),_0x51cea6++;}return _0x586a01;}function nn(_0x32f8d6,_0x467b91,_0x9640be){if(!_0x9640be)return!0x1;const _0x36f335=_0x32f8d6['createPositionAfter'](_0x467b91),_0x164e73=_0x32f8d6['createPositionBefore'](_0x9640be);return _0x36f335['isTouching'](_0x164e73);}function rs(_0x54740b,_0x447dfb,_0x5b3387){for(;_0x5b3387['length'];){const _0x5d0e70=_0x5b3387['splice'](0x0,0x64);_0x54740b['change'](()=>{for(const _0x18500e of _0x5d0e70)_0x18500e['isInContent']&&_0x447dfb['execute'](_0x18500e['id']);});}}class x extends _0x49cdd5{['_command'];['_suggestions'];constructor(_0x34c1f7,_0x9fdc3c,_0xb547ce){super(_0x34c1f7),this['_command']=_0x9fdc3c,this['_suggestions']=_0xb547ce,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a2b50=Array['from'](this['_suggestions']['values']())['some'](_0x42f600=>_0x42f600['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3a2b50;}['execute'](){const _0x144579=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5941ae of _0x144579){const _0x4c7566=_0x5941ae['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4c7566))return;}rs(this['editor']['model'],this['_command'],_0x144579);}}class E extends _0x49cdd5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3d523d,_0x268d53,_0x4fab21){super(_0x3d523d),this['_command']=_0x268d53,this['_suggestions']=_0x4fab21,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x33e635=this['editor']['model']['document']['selection'],_0x5c1909=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3a2226,_0x3a652c){const _0x3c0ec8=Array['from'](_0x3a2226['getRanges']()),_0x35443a=new Set();for(const _0x51884c of _0x3a652c)if(_0x51884c['isInContent']){for(const _0x1e9e38 of _0x3c0ec8)for(const _0x1b668c of _0x51884c['getRanges']())(_0x1e9e38['isIntersecting'](_0x1b668c)||_0x3a2226['isCollapsed']&&!_0x51884c['isMultiRange']&&_0x51884c['next']&&_0x1b668c['end']['isTouching'](_0x1e9e38['start']))&&_0x35443a['add'](_0x51884c);}return _0x35443a;}(_0x33e635,_0x5c1909),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4b28f1=ts(Array['from'](this['_selectedSuggestions']));for(const _0x338a75 of _0x4b28f1){const _0xade903=_0x338a75['getRanges']();if(!this['editor']['model']['canEditAt'](_0xade903))return;}rs(this['editor']['model'],this['_command'],_0x4b28f1);}}class R extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xbe3abb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x39757d,_0x5b2510){super(),this['id']=_0x5b2510['id'],this['type']=_0x5b2510['type'],this['subType']=_0x5b2510['subType']||null,this['author']=_0x5b2510['author'],this['creator']=_0x5b2510['creator']||_0x5b2510['author'],this['isExternal']=Boolean(_0x5b2510['attributes']&&_0x5b2510['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5b2510['originalSuggestionId']||null,this['_model']=_0x39757d,this['_onAccept']=_0x5b2510['onAccept'],this['_onDiscard']=_0x5b2510['onDiscard'],this['_onAttributesChange']=_0x5b2510['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5b2510['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 _0x5a219d=this;for(;_0x5a219d['previous'];)_0x5a219d=_0x5a219d['previous'];return _0x5a219d;}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'](_0x2dd667){this['_markerNames']['add'](_0x2dd667);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x409164=>this['_model']['markers']['get'](_0x409164))['filter'](_0x52d764=>_0x52d764);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4d11a5=>{for(const _0x275494 of this['getMarkers']())_0x4d11a5['removeMarker'](_0x275494);}),this['_markerNames']['clear']();}['removeMarker'](_0x2c9b2a){this['_model']['change'](_0x9b9d86=>{_0x9b9d86['removeMarker'](_0x2c9b2a);}),this['_markerNames']['delete'](_0x2c9b2a);}['addRange'](_0x40083c){const _0x313892='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x313892),this['_model']['change'](_0x213070=>{_0x213070['addMarker'](_0x313892,{'range':_0x40083c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2210d6){for(const _0x114c3b of this['getRanges']())if(_0x114c3b['isIntersecting'](_0x2210d6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xa02ad9=>_0xa02ad9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x197f42,_0x5c21c3)=>[..._0x197f42,..._0x5c21c3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x455442=this['getRanges']();if(0x1!=_0x455442['length'])return null;const _0x28a26e=_0x455442[0x0],_0x589bfb=_0x28a26e['start']['nodeAfter'],_0x224bfd=_0x28a26e['end']['nodeBefore'];return _0x589bfb instanceof _0x2b55b8?_0x589bfb!=_0x224bfd?null:_0x589bfb: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 _0xd9bed9=[];let _0x4f902e=this['head'];for(;_0x4f902e;)_0xd9bed9['push'](_0x4f902e),_0x4f902e=_0x4f902e['next'];return _0xd9bed9;}['setAttribute'](_0xfda947,_0x4babd7){const _0x1ad7bd=_0x2b8770(this['attributes']);_0x546482(_0x1ad7bd,_0xfda947,_0x4babd7),_0x2e0560(_0x1ad7bd,this['attributes'])||(this['attributes']=_0x1ad7bd,this['_onAttributesChange'](_0x1ad7bd));}['removeAttribute'](_0xa7477c){const _0x1c07b5=_0x2b8770(this['attributes']);_0x241b58(_0x1c07b5,_0xa7477c),_0x2e0560(_0x1c07b5,this['attributes'])||(this['attributes']=_0x1c07b5,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 _0x475984()['substr'](0x1,0x5);}}function o(_0x162c03,_0x502ebb,_0xb5fff6){const _0x219706=_0x162c03['t'],t=_0x162c03['t'];switch(_0x502ebb){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',_0xb5fff6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xb5fff6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xb5fff6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xb5fff6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xb5fff6);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',_0xb5fff6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xb5fff6);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',_0xb5fff6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xb5fff6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xb5fff6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xb5fff6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xb5fff6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xb5fff6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xb5fff6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xb5fff6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xb5fff6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xb5fff6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xb5fff6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xb5fff6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xb5fff6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xb5fff6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xb5fff6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xb5fff6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xb5fff6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xb5fff6);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'},_0xb5fff6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xb5fff6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xb5fff6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xb5fff6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xb5fff6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xb5fff6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xb5fff6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xb5fff6);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'},_0xb5fff6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xb5fff6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xb5fff6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xb5fff6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xb5fff6);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'},_0xb5fff6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xb5fff6);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'},_0xb5fff6);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0xb5fff6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xb5fff6);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'},_0xb5fff6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xb5fff6);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'},_0xb5fff6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xb5fff6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xb5fff6);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'},_0xb5fff6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xb5fff6);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 _0x219706({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xb5fff6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x219706({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xb5fff6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xb5fff6);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'},_0xb5fff6);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'},_0xb5fff6);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'},_0xb5fff6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x502ebb;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1e41c1,_0x807132){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1e41c1,this['_locale']=_0x807132;}['getDescriptions'](_0x3783b7){const _0x3ba479=[],_0xcd8da4=new Set(),_0xc1919=new Set();for(let _0x4109ac=0x0;_0x4109ac<_0x3783b7['length'];_0x4109ac++){const _0x383a01=_0x3783b7[_0x4109ac];if(!_0x383a01['isInContent'])continue;const _0x376058=this['_handleCustomCallbackDescription'](_0x383a01);if(_0x376058){if(null!=_0x383a01['subType']){if(_0xcd8da4['has'](_0x383a01['subType']))continue;_0xcd8da4['add'](_0x383a01['subType']);}_0x3ba479['push'](_0x376058);}else{if('attribute'==_0x383a01['type']){const _0x4ff19e=_0x383a01['data']['key'];if(_0xc1919['has'](_0x4ff19e))continue;_0xc1919['add'](_0x383a01['data']['key']),_0x4ff19e==m?this['_handleRenameSuggestionDescription'](_0x3ba479,_0x383a01):this['_handleAttributeSuggestionDescription'](_0x3ba479,_0x383a01);continue;}'insertion'!=_0x383a01['type']&&'deletion'!=_0x383a01['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3ba479,_0x383a01,_0x3783b7[_0x4109ac+0x1]);}}return this['_resolveDescriptionItems'](_0x3ba479);}['registerDescriptionCallback'](_0x36718f){this['_customCallbacks']['push'](_0x36718f);}['registerElementLabel'](_0x11f8a1,_0x237aa6,_0x2540b9=_0x360d7a['normal']){'function'==typeof _0x11f8a1?_0x5af922(this['_itemLabelsCallbacks'],{'matchingCallback':_0x11f8a1,'label':_0x237aa6,'priority':_0x2540b9}):this['_itemLabels']['set'](_0x11f8a1,_0x237aa6);}['registerAttributeLabel'](_0x30b607,_0x50d8ec){this['_attributeLabels']['set'](_0x30b607,_0x50d8ec);}['getItemLabel'](_0x21ea69,_0xfdc542=0x1){let _0x1d36df;for(const _0x19b249 of this['_itemLabelsCallbacks'])if(_0x19b249['matchingCallback'](_0x21ea69)){_0x1d36df=_0x19b249['label'];break;}return _0x1d36df||(_0x1d36df=this['_itemLabels']['get'](_0x21ea69['name'])),_0x1d36df?_0x1d36df(_0xfdc542):0x1!==_0xfdc542?_0xfdc542+'\x20'+_0x21ea69['name']+'s':''+_0x21ea69['name'];}['_addDescriptionItems'](_0x214d46,_0x31cf73){const _0x57f6dd=_0x31cf73['getFirstRange']()['getWalker'](),_0x9b753='insertion'==_0x31cf73['type']?'add':'remove';for(const _0x199bbf of _0x57f6dd){const _0x357bbb=_0x199bbf['item'],_0x21952e=_0x214d46[_0x214d46['length']-0x1];if(_0x357bbb['is']('$textProxy'))_0x21952e&&_0x21952e['type']['indexOf']('Container')>-0x1&&_0x214d46['pop'](),_0x21952e&&'text'==_0x21952e['type']?_0x21952e[_0x9b753]+=_0x357bbb['data']:_0x214d46['push']({'type':'text','add':'add'==_0x9b753?_0x357bbb['data']:'','remove':'remove'==_0x9b753?_0x357bbb['data']:''});else{if(this['_schema']['isObject'](_0x357bbb)){const _0x5a90b4=_0x357bbb;if(_0x21952e&&_0x21952e['type']['indexOf']('Container')>-0x1&&_0x214d46['pop'](),'elementEnd'==_0x199bbf['type'])continue;_0x21952e&&_0x21952e['type']==_0x9b753+'Object'&&_0x21952e['element']['name']==_0x5a90b4['name']?_0x21952e['quantity']++:_0x214d46['push']({'type':_0x9b753+'Object','element':_0x5a90b4,'quantity':0x1}),_0x57f6dd['skip'](_0x58fe5b=>!('elementEnd'==_0x58fe5b['type']&&_0x58fe5b['item']==_0x357bbb));}else{if(this['_schema']['checkChild'](_0x357bbb,'$text')||_0x357bbb['is']('element','softBreak')){const _0x2adee5=_0x357bbb;if('add'==_0x9b753&&'elementStart'==_0x199bbf['type']||'remove'==_0x9b753&&'elementEnd'==_0x199bbf['type'])continue;if(_0x21952e&&-0x1==_0x21952e['type']['indexOf']('Container')){'text'==_0x21952e['type']&&(_0x21952e[_0x9b753]+='\x0a');continue;}let _0x5c060a;if(_0x5c060a='add'==_0x9b753?_0x2adee5['nextSibling']&&!this['_schema']['isObject'](_0x2adee5['nextSibling'])?_0x2adee5['nextSibling']:null:_0x2adee5['previousSibling']&&!this['_schema']['isObject'](_0x2adee5['previousSibling'])?_0x2adee5['previousSibling']:null,_0x2adee5['isEmpty']||_0x5c060a&&_0x5c060a['isEmpty']){const _0x3a54ab=_0x5c060a&&_0x5c060a['isEmpty']?_0x5c060a:_0x2adee5;_0x21952e&&_0x21952e['type']==_0x9b753+'EmptyContainer'&&_0x21952e['element']['name']==_0x3a54ab['name']?_0x21952e['quantity']++:_0x214d46['push']({'type':_0x9b753+'EmptyContainer','element':_0x3a54ab,'quantity':0x1});}else _0x214d46['push']({'type':_0x9b753+'Container','element':_0x2adee5});}}}}}['_resolveDescriptionItems'](_0x307a69){const _0x5a86a5=this['_locale'],_0x5bb174=[],_0x12e9d7=[],_0x354067=[];for(const _0x3e2809 of _0x307a69)switch(_0x3e2809['type']){case'text':if(_0x3e2809['add']=_0x3e2809['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3e2809['remove']=_0x3e2809['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3e2809['add']&&''!=_0x3e2809['remove']){_0x5bb174['push']({'type':'replace','content':o(_0x5a86a5,'REPLACE_TEXT',['\x22'+_0x3e2809['remove']+'\x22','\x22'+_0x3e2809['add']+'\x22'])});continue;}if(null!=_0x3e2809['add']['match'](/^ +$/)){_0x5bb174['push']({'type':'insertion','content':o(_0x5a86a5,'*Insert:*\x20%0',o(_0x5a86a5,'ELEMENT_SPACE',_0x3e2809['add']['length']))});continue;}if(null!=_0x3e2809['remove']['match'](/^ +$/)){_0x5bb174['push']({'type':'deletion','content':o(_0x5a86a5,'*Remove:*\x20%0',o(_0x5a86a5,'ELEMENT_SPACE',_0x3e2809['remove']['length']))});continue;}if(''!=_0x3e2809['add']){_0x5bb174['push']({'type':'insertion','content':o(_0x5a86a5,'*Insert:*\x20%0','\x22'+_0x3e2809['add']+'\x22')});continue;}_0x5bb174['push']({'type':'deletion','content':o(_0x5a86a5,'*Remove:*\x20%0','\x22'+_0x3e2809['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5bb174['push']({'type':'insertion','content':o(_0x5a86a5,'*Insert:*\x20%0',this['getItemLabel'](_0x3e2809['element'],_0x3e2809['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5bb174['push']({'type':'deletion','content':o(_0x5a86a5,'*Remove:*\x20%0',this['getItemLabel'](_0x3e2809['element'],_0x3e2809['quantity']))});continue;case'addContainer':_0x5bb174['push']({'type':'insertion','content':o(_0x5a86a5,'*Split:*\x20%0',this['getItemLabel'](_0x3e2809['element'],_0x3e2809['quantity']))});continue;case'removeContainer':_0x5bb174['push']({'type':'deletion','content':o(_0x5a86a5,'*Merge:*\x20%0',this['getItemLabel'](_0x3e2809['element'],_0x3e2809['quantity']))});continue;case'addFormat':_0x12e9d7['push'](_0x3e2809['key']);continue;case'removeFormat':_0x354067['push'](_0x3e2809['key']);continue;default:_0x5bb174['push'](_0x3e2809);}if(_0x12e9d7['length']){const _0x4e3149=_0x12e9d7['map'](_0x317e68=>this['_attributeLabels']['has'](_0x317e68)?this['_attributeLabels']['get'](_0x317e68):_0x317e68)['join'](',\x20');_0x5bb174['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4e3149)});}if(_0x354067['length']){const _0x52d621=_0x354067['map'](_0x2e7659=>this['_attributeLabels']['has'](_0x2e7659)?this['_attributeLabels']['get'](_0x2e7659):_0x2e7659)['join'](',\x20');_0x5bb174['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x52d621)});}return _0x5bb174;}['_handleCustomCallbackDescription'](_0xb0aeb5){for(const _0x3e2787 of this['_customCallbacks']){const _0x16136a=_0x3e2787(_0xb0aeb5);if(_0x16136a&&'type'in _0x16136a)return _0x16136a;}}['_handleAttributeSuggestionDescription'](_0x3fbfe7,_0x370ea7){const _0x839e8=_0x370ea7['data'],_0x594cf4=void 0x0===_0x839e8['newValue']?'removeFormat':'addFormat';_0x3fbfe7['push']({'type':_0x594cf4,'key':_0x839e8['key']});}['_handleRenameSuggestionDescription'](_0x3be979,_0x3ad2cd){_0x3be979['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3ad2cd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x22aa27,_0x57d26c,_0x2d3586){if(this['_addDescriptionItems'](_0x22aa27,_0x57d26c),_0x2d3586&&_0x2d3586['getFirstRange']()&&!_0x57d26c['getFirstRange']()['end']['isEqual'](_0x2d3586['getFirstRange']()['start'])){const _0x3e5aa5=_0x22aa27[_0x22aa27['length']-0x1],_0x29d21f='insertion'==_0x57d26c['type']?'add':'remove';_0x3e5aa5&&'text'==_0x3e5aa5['type']&&(_0x3e5aa5[_0x29d21f]+='\x0a');}}}class V extends _0x51aec7{['afterInit'](){const _0xf388be=this['editor'],_0x4cd1a4=_0xf388be['plugins']['get']('TrackChangesEditing');_0xf388be['commands']['get']('showAIAssistant')&&_0x4cd1a4['enableCommand']('showAIAssistant');}}class F extends _0x51aec7{['afterInit'](){const _0x1d0517=this['editor'],_0x16093f=_0x1d0517['locale'];if(!_0x1d0517['plugins']['has']('AlignmentEditing'))return;const _0x5d72b6=_0x1d0517['plugins']['get']('TrackChangesEditing');_0x5d72b6['enableDefaultAttributesIntegration']('alignment'),_0x5d72b6['registerBlockAttribute']('alignment'),_0x5d72b6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x16093f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b67a8=this['editor'],_0x27cc1b=_0x3b67a8['locale'];_0x3b67a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4df2a3=>{if('formatBlock'!=_0x4df2a3['type'])return;const {data:_0x5a01b0}=_0x4df2a3;if(_0x5a01b0&&'alignment'==_0x5a01b0['commandName']){const _0x536217=_0x5a01b0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x27cc1b,'*Format:*\x20%0',function(_0x14d4a1){switch(_0x14d4a1){case'left':return o(_0x27cc1b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x27cc1b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x27cc1b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x27cc1b,'FORMAT_JUSTIFY_TEXT');}}(_0x536217))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x51aec7{['afterInit'](){const _0x5deeca=this['editor'],_0x56e82d=_0x5deeca['plugins']['get']('TrackChangesEditing'),_0x21ce45=_0x5deeca['locale'];for(const _0x47edef of ti){if(!_0x5deeca['plugins']['has'](_0x47edef))continue;const _0x3c5fd0=_0x47edef['slice'](0x0,-0x7)['toLowerCase'](),_0x51697f='FORMAT_'+_0x3c5fd0['toUpperCase']();_0x56e82d['enableDefaultAttributesIntegration'](_0x3c5fd0),_0x56e82d['registerInlineAttribute'](_0x3c5fd0),_0x56e82d['descriptionFactory']['registerAttributeLabel'](_0x3c5fd0,o(_0x21ce45,_0x51697f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe15358=this['editor'],_0xa2d2d=_0xe15358['locale'],_0x477d5f=_0xe15358['plugins']['get']('TrackChangesEditing');function _0x42756e(_0x670e9e,_0x257af9){_0x477d5f['descriptionFactory']['registerDescriptionCallback'](_0x1e7370=>{if('formatInline'!=_0x1e7370['type'])return;const {data:_0x477a17}=_0x1e7370;return _0x477a17&&_0x477a17['commandName']===_0x670e9e?_0x477a17['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa2d2d,'*Format:*\x20%0',_0x257af9)}:{'type':'format','content':o(_0xa2d2d,'*Remove\x20format:*\x20%0',_0x257af9)}:void 0x0;});}_0x42756e('bold',o(_0xa2d2d,'FORMAT_BOLD')),_0x42756e('italic',o(_0xa2d2d,'FORMAT_ITALIC')),_0x42756e('underline',o(_0xa2d2d,'FORMAT_UNDERLINE')),_0x42756e('code',o(_0xa2d2d,'FORMAT_CODE')),_0x42756e('strikethrough',o(_0xa2d2d,'FORMAT_STRIKETHROUGH')),_0x42756e('subscript',o(_0xa2d2d,'FORMAT_SUBSCRIPT')),_0x42756e('superscript',o(_0xa2d2d,'FORMAT_SUPERSCRIPT'));}}class L extends _0x51aec7{['afterInit'](){const _0x3e9b57=this['editor'],_0x5cc135=_0x3e9b57['locale'];if(!_0x3e9b57['plugins']['has']('BlockQuoteEditing'))return;const _0x1b2f9e=_0x3e9b57['plugins']['get']('TrackChangesEditing'),_0x3863d1=this['editor']['commands']['get']('blockQuote');_0x1b2f9e['enableCommand']('blockQuote',(_0x302270,_0x15e944={})=>{const _0xbffa46=this['editor']['model']['document']['selection'],_0x1f3124=_0x15e944&&void 0x0!==_0x15e944['forceValue']?_0x15e944['forceValue']:!_0x3863d1['value'];let _0x68d988=[];if(_0x1f3124){const _0x55981f=Array['from'](_0xbffa46['getSelectedBlocks']())['filter'](_0x4bc70=>oo(_0x4bc70)||function(_0x2d1af1,_0x25b022){const _0x38f9af=_0x25b022['checkChild'](_0x2d1af1['parent'],'blockQuote'),_0x4f1240=_0x25b022['checkChild'](['$root','blockQuote'],_0x2d1af1);return _0x38f9af&&_0x4f1240;}(_0x4bc70,this['editor']['model']['schema']));_0x68d988=to(_0x55981f,_0x3e9b57['model']);}else{const _0x137d97=Array['from'](_0xbffa46['getSelectedBlocks']())['filter'](_0x58f3f6=>oo(_0x58f3f6));_0x68d988=to(_0x137d97,_0x3e9b57['model']);}_0x3e9b57['model']['change'](()=>{for(const _0x51ef4e of _0x68d988)_0x1b2f9e['markBlockFormat'](_0x51ef4e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f3124}]});});}),_0x1b2f9e['descriptionFactory']['registerDescriptionCallback'](_0x3060b4=>{const {data:_0x55274b}=_0x3060b4;if(_0x55274b&&'blockQuote'==_0x55274b['commandName']){const _0xffc750=o(_0x5cc135,'ELEMENT_BLOCK_QUOTE');return _0x55274b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cc135,'*Set\x20format:*\x20%0',_0xffc750)}:{'type':'format','content':o(_0x5cc135,'*Remove\x20format:*\x20%0',_0xffc750)};}});}}function oo(_0x5a1d7b){return'blockQuote'==_0x5a1d7b['parent']['name'];}class J extends _0x51aec7{['afterInit'](){const _0x454f8d=this['editor'],_0x187e6d=_0x454f8d['locale'],_0x4078d7=_0x454f8d['plugins']['get']('TrackChangesEditing');_0x454f8d['plugins']['has']('BookmarkEditing')&&(_0x4078d7['enableCommand']('insertBookmark'),_0x4078d7['enableDefaultAttributesIntegration']('updateBookmark'),_0x4078d7['registerBlockAttribute']('bookmarkId'),_0x4078d7['descriptionFactory']['registerDescriptionCallback'](_0x1239d8=>{if('insertion'!=_0x1239d8['type']&&'deletion'!=_0x1239d8['type']&&'attribute'!=_0x1239d8['type'])return;const _0x1b14b4=_0x1239d8['getContainedElement']();if(null==_0x1b14b4)return;if(!_0x1b14b4['is']('element','bookmark'))return;const _0x1bc5ad=_0x1b14b4['getAttribute']('bookmarkId');if('insertion'==_0x1239d8['type'])return{'type':'insertion','content':o(_0x187e6d,'*Insert:*\x20%0','\x22'+_0x1bc5ad+'\x22\x20'+o(_0x187e6d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1239d8['type'])return{'type':'deletion','content':o(_0x187e6d,'*Remove:*\x20%0','\x22'+_0x1bc5ad+'\x22\x20'+o(_0x187e6d,'ELEMENT_BOOKMARK'))};const {data:_0xc1f95a}=_0x1239d8;if(!_0xc1f95a||'bookmarkId'!=_0xc1f95a['key'])return;return{'type':'format','content':o(_0x187e6d,'*Set\x20bookmark:*\x20%0','\x22'+_0xc1f95a['newValue']+'\x22')};}));}}class K extends _0x51aec7{['afterInit'](){const _0x582f99=this['editor'];_0x582f99['plugins']['has']('CaseChange')&&(_0x582f99['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x582f99['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x582f99['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x51aec7{['afterInit'](){const _0x43efcf=this['editor'];_0x43efcf['commands']['get']('ckbox')&&_0x43efcf['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x51aec7{['afterInit'](){const _0x12a570=this['editor'];if(!_0x12a570['plugins']['has']('CodeBlock'))return;const _0x5f3ce5=_0x12a570['plugins']['get']('TrackChangesEditing'),_0x3edcfa=_0x12a570['locale'],_0x57d84d=_0x12a570['config']['get']('codeBlock')['languages'],_0x4573fd=_0x12a570['commands']['get']('codeBlock');_0x5f3ce5['enableCommand']('indentCodeBlock'),_0x5f3ce5['enableCommand']('outdentCodeBlock'),_0x5f3ce5['enableCommand']('codeBlock',(_0x5e753b,_0x1bcd4e={})=>{const _0x4327d0=_0x12a570['model'],_0xe0d952=_0x12a570['model']['document']['selection'],_0x169b7f=_0x1bcd4e&&void 0x0!==_0x1bcd4e['forceValue']?_0x1bcd4e['forceValue']:!_0x4573fd['value'];let _0x1385af;_0x1bcd4e['language']||(_0x1bcd4e['language']=_0x57d84d[0x0]['language']),_0x1385af=_0x169b7f?Array['from'](_0xe0d952['getSelectedBlocks']())['filter'](_0x4081b3=>co(_0x4081b3)||function(_0x483cfd,_0x59cddf){if(_0x483cfd['is']('rootElement')||_0x59cddf['isLimit'](_0x483cfd))return!0x1;return _0x59cddf['checkChild'](_0x483cfd['parent'],'codeBlock');}(_0x4081b3,_0x4327d0['schema'])):Array['from'](_0xe0d952['getSelectedBlocks']())['filter'](_0x283c70=>co(_0x283c70));const _0x2d5974=to(_0x1385af,_0x4327d0);_0x4327d0['change'](()=>{for(const _0x3ef1ef of _0x2d5974)_0x5f3ce5['markBlockFormat'](_0x3ef1ef,{'commandName':'codeBlock','commandParams':[{..._0x1bcd4e,'forceValue':_0x169b7f}],'formatGroupId':'blockName'});});}),(_0x5f3ce5['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ed84f=>o(_0x3edcfa,'ELEMENT_CODE_BLOCK',_0x4ed84f)),_0x5f3ce5['descriptionFactory']['registerDescriptionCallback'](_0xd498a=>{if('formatBlock'!=_0xd498a['type'])return;const _0x45da8b=_0x3edcfa['t'],{data:_0x4e2952}=_0xd498a;if(!_0x4e2952||'codeBlock'!=_0x4e2952['commandName'])return;const _0x59bec3=_0x4e2952['commandParams'][0x0]['language'],_0x45518d=_0x45da8b(_0x57d84d['find'](_0x37a90d=>_0x37a90d['language']===_0x59bec3)['label'])['toLowerCase']();return _0x4e2952['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3edcfa,'*Set\x20format:*\x20%0',o(_0x3edcfa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x45518d+')')}:{'type':'format','content':o(_0x3edcfa,'*Remove\x20format:*\x20%0',o(_0x3edcfa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x111def){return'codeBlock'==_0x111def['name'];}class q extends _0x51aec7{['afterInit'](){const _0x753373=this['editor'];if(!_0x753373['plugins']['has']('CommentsEditing'))return;_0x753373['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x203b63,_0x29313d,_0x5dc68a){const _0x393e6b=[];for(const _0x142d0b of _0x29313d['getItems']())_0x142d0b['hasAttribute'](_0x203b63)&&_0x393e6b['push'](_0x5dc68a['createRangeOn'](_0x142d0b));return _0x393e6b;}function Ge(_0x30d834,_0x55f9a9,{showActiveMarker:_0x538e8f=!0x0}={}){const _0x3e574e=_0x30d834['plugins']['get']('TrackChangesEditing');return(_0x2839ef,_0x3cc31d,_0x352f06)=>{if(!_0x352f06['consumable']['test'](_0x3cc31d['markerRange'],_0x2839ef['name']))return;const _0x3da195=_0x3cc31d['markerRange']['getWalker'](),_0x37d868=_0x3cc31d['markerRange']['start'],_0x19fd47=_0x30d834['model']['schema'];let _0x1e4b75=null,_0x2e5d5e=null,_0x45ba78=!0x1,_0x4fa65a=!0x1;for(const _0x26d3ea of _0x3da195){const _0x2f86a5=_0x26d3ea['item'];_0x45ba78=_0x45ba78||_0x19fd47['isContent'](_0x2f86a5);const _0x453922=_0x352f06['mapper']['toViewElement'](_0x2f86a5);if(_0x453922&&_0x453922['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x26d3ea['type']&&(_0x19fd47['isBlock'](_0x2f86a5)&&!_0x19fd47['isLimit'](_0x2f86a5)&&(_0x2f86a5['nextSibling']||_0x37d868['isAtEnd']?_0x1e4b75&&_0x1e4b75['parent']==_0x2f86a5||(_0x1e4b75=_0x2f86a5,_0x108cf1(_0x26d3ea['previousPosition']),_0x4fa65a=!0x0):_0x2e5d5e=_0x2e5d5e||_0x26d3ea['previousPosition']));}function _0x108cf1(_0x542d68){const {id:_0x892b68,authorId:_0xe0a429}=_0x3e574e['_splitMarkerName'](_0x3cc31d['markerName']),_0x44c686=_0x352f06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55f9a9,'data-suggestion':_0x892b68,'data-author-id':_0xe0a429}),_0x5465bc=_0x352f06['mapper']['toViewPosition'](_0x542d68);_0x538e8f&&_0x3e574e['activeMarkers']['includes'](_0x3cc31d['markerName'])&&_0x352f06['writer']['addClass']('ck-suggestion-marker--active',_0x44c686),_0x352f06['writer']['insert'](_0x5465bc,_0x44c686),_0x352f06['mapper']['bindElementToMarker'](_0x44c686,_0x3cc31d['markerName']);}_0x45ba78||_0x4fa65a||!_0x2e5d5e||_0x108cf1(_0x2e5d5e);};}class z extends _0x51aec7{static get['requires'](){return[_0x50a27b];}['init'](){const _0x5de52a=this['editor'],_0x1e56f7=_0x5de52a['plugins']['get']('TrackChangesEditing');_0x1e56f7['enableCommand']('delete');const _0x3f8491=_0x5de52a['commands']['get']('deleteForward');_0x1e56f7['enableCommand']('deleteForward',(_0x293621,_0x1e00d6={})=>{const _0x14743a=_0x5de52a['model']['createSelection'](_0x5de52a['model']['document']['selection']);_0x14743a['isCollapsed']&&_0x5de52a['model']['modifySelection'](_0x14743a,{'direction':'forward','unit':_0x1e00d6['unit']});const _0x131f0d=_0x14743a['getFirstRange'](),_0x13eaa9=_0x32ac6b['fromRange'](_0x131f0d);let _0x470abe;_0x293621(_0x1e00d6),_0x470abe='$graveyard'==_0x13eaa9['root']['rootName']?_0x5de52a['model']['createRange'](_0x131f0d['start']):_0x5de52a['model']['createRange'](_0x13eaa9['start'],_0x13eaa9['end']),_0x13eaa9['detach'](),_0x5de52a['model']['enqueueChange'](_0x3f8491['buffer']['batch'],_0x3e98d5=>{_0x3f8491['buffer']['lock'](),_0x3e98d5['setSelection'](_0x3e98d5['createRange'](_0x470abe['end'])),_0x3f8491['buffer']['unlock']();});}),_0x5de52a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ge(_0x5de52a,'merge'),{'priority':'high'}),_0x5de52a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4363a2,_0x118e7d,_0x433250)=>{_0x433250['options']['showSuggestionHighlights']&&Ge(_0x5de52a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4363a2,_0x118e7d,_0x433250);},{'priority':'high'}),_0x5de52a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x112e64,_0x818119,_0x17ca82)=>{const _0x4a8aa0=_0x17ca82['mapper']['markerNameToElements'](_0x818119['markerName']);if(_0x4a8aa0){for(const _0x2b9283 of _0x4a8aa0)_0x2b9283['is']('uiElement')&&(_0x17ca82['mapper']['unbindElementFromMarkerName'](_0x2b9283,_0x818119['markerName']),_0x17ca82['writer']['remove'](_0x2b9283));}},{'priority':'high'});}}class Q extends _0x51aec7{['afterInit'](){const _0x19e43a=this['editor'];if(!_0x19e43a['plugins']['has']('ListEditing'))return;const _0x4cce6b=_0x19e43a['locale'],_0x304f0f=_0x19e43a['plugins']['get']('TrackChangesEditing'),_0x560f6b=_0x19e43a['plugins']['has']('TodoListEditing'),_0x537200=!!_0x19e43a['config']['get']('list.multiBlock');function _0x8667f1(_0x213f3e){return{'type':'format','content':''+o(_0x4cce6b,'*Set\x20format:*\x20%0',_0x213f3e)};}function _0x3ae414(_0x4fedf1){return{'type':'format','content':''+o(_0x4cce6b,'*Remove\x20format:*\x20%0',_0x4fedf1)};}_0x304f0f['enableDefaultAttributesIntegration']('numberedList'),_0x304f0f['enableDefaultAttributesIntegration']('bulletedList'),_0x304f0f['enableDefaultAttributesIntegration']('customNumberedList'),_0x304f0f['enableDefaultAttributesIntegration']('customBulletedList'),_0x304f0f['enableDefaultAttributesIntegration']('indentList'),_0x304f0f['enableDefaultAttributesIntegration']('outdentList'),_0x304f0f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x304f0f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x304f0f['registerBlockAttribute']('listItemId'),_0x304f0f['registerBlockAttribute']('listType'),_0x304f0f['registerBlockAttribute']('listIndent'),_0x537200&&(_0x304f0f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x304f0f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x560f6b&&(_0x304f0f['enableDefaultAttributesIntegration']('todoList'),_0x304f0f['enableDefaultAttributesIntegration']('checkTodoList'),_0x304f0f['registerBlockAttribute']('todoListChecked'),_0x304f0f['descriptionFactory']['registerDescriptionCallback'](_0x5f2a54=>{const {data:_0x57a493}=_0x5f2a54;if(_0x57a493&&'todoListChecked'==_0x57a493['key'])return{'type':'format','content':_0x57a493['newValue']?o(_0x4cce6b,'*Check\x20item*'):o(_0x4cce6b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5f1a98=>{if(_0x5f1a98['batch']['isUndo'])return!0x1;let _0x4e5010=!0x1;const _0x45eff1=_0x304f0f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c6dca=>'todoListChecked'===_0x304f0f['_getAttributeKey'](_0x5c6dca));for(const _0x3134b4 of _0x45eff1){'todo'!=_0x3134b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x304f0f['_findSuggestions'](_0x3134b4['getFirstRange'](),'attribute')['find'](_0x360f7d=>'listType'===_0x304f0f['_getAttributeKey'](_0x360f7d['suggestion']))||(_0x5f1a98['removeMarker'](_0x3134b4['getFirstMarker']()),_0x4e5010=!0x0));}return _0x4e5010;})),_0x304f0f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4cce6b,'FORMAT_INDENT'));const _0x29c297={'type':'format','content':''};_0x304f0f['descriptionFactory']['registerDescriptionCallback'](_0x3134ee=>{const {data:_0x1639c3}=_0x3134ee;if(!_0x1639c3||'listType'!=_0x1639c3['key'])return;let _0x1b07ec=_0x3134ee['head'];for(;_0x1b07ec;){if(_0x1b07ec['data']&&(('listStyle'==_0x1b07ec['data']['key']||'listMarkerStyle'==_0x1b07ec['data']['key'])&&(_0x1b07ec['data']['newValue']&&'default'!=_0x1b07ec['data']['newValue']||'default'!=_0x1b07ec['data']['oldValue']&&!_0x1639c3['newValue'])||!_0x537200&&_0x1b07ec['data']['key']==m))return _0x29c297;_0x1b07ec=_0x1b07ec['next'];}if(null==_0x1639c3['newValue'])switch(_0x1639c3['oldValue']){case'bulleted':return _0x3ae414(o(_0x4cce6b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ae414(o(_0x4cce6b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ae414(o(_0x4cce6b,'ELEMENT_TODO_LIST'));}switch(_0x1639c3['newValue']){case'bulleted':return _0x8667f1(o(_0x4cce6b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8667f1(o(_0x4cce6b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8667f1(o(_0x4cce6b,'ELEMENT_TODO_LIST'));}}),_0x304f0f['descriptionFactory']['registerDescriptionCallback'](_0xaf4b70=>{const {data:_0x15dd40}=_0xaf4b70;if(_0x15dd40&&'listIndent'==_0x15dd40['key'])return null==_0x15dd40['newValue']||null==_0x15dd40['oldValue']&&0x0==_0x15dd40['newValue']?_0x29c297:void 0x0;}),_0x304f0f['descriptionFactory']['registerDescriptionCallback'](_0x49c672=>{if('attribute'!=_0x49c672['type'])return;const {data:_0x550086}=_0x49c672;if(!_0x550086||'listItemId'!=_0x550086['key'])return;const _0x260467=Be(_0x49c672);return'newValue'==_0x260467?{'type':'format','content':o(_0x4cce6b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x260467?{'type':'format','content':o(_0x4cce6b,'*Split:*\x20list\x20item')}:_0x29c297;}),_0x19e43a['model']['document']['registerPostFixer'](_0x10caf7=>this['listItemIdFixer'](_0x10caf7)),_0x19e43a['model']['document']['registerPostFixer'](_0x3e87f5=>this['noTrackChangesFixer'](_0x3e87f5)),_0x19e43a['model']['document']['on']('change:data',(_0x17e181,_0x454887)=>{if(_0x454887['isUndo']||!_0x454887['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f8228){if(_0x4f8228['batch']['isUndo']||!_0x4f8228['batch']['isLocal'])return!0x1;let _0x53b2fc=!0x1;const _0x15faf1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x91c80b=>_0x91c80b['data']&&'listItemId'==_0x91c80b['data']['key'])['filter'](_0x233394=>_0x233394['data']['newValue']&&_0x233394['data']['oldValue']);for(const _0x418677 of _0x15faf1)Be(_0x418677)||(_0x4f8228['removeMarker'](_0x418677['getFirstMarker']()),_0x53b2fc=!0x0);return _0x53b2fc;}['noTrackChangesFixer'](_0x31fea7){if(_0x31fea7['batch']['isUndo']||!_0x31fea7['batch']['isLocal'])return!0x1;const _0x1a8f40=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1a8f40['trackChangesCommand']['value'])return!0x1;let _0x5167f9=!0x1;const _0x30b19c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x40161b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48e9b5=>'attribute'==_0x48e9b5['type'])['filter'](_0x39f7c2=>_0x30b19c['includes'](_0x39f7c2['attributeKey']));if(0x0==_0x40161b['length'])return _0x5167f9;for(const _0x369e10 of _0x40161b){const _0x54a372=_0x1a8f40['_findSuggestions'](_0x369e10['range'],'attribute')['filter'](_0x116d5f=>!_0x116d5f['meta']['isNextTo'])['map'](_0x560ebe=>_0x560ebe['suggestion'])['filter'](_0x3f98ad=>{const _0x2da204=_0x1a8f40['_getAttributeKey'](_0x3f98ad);return _0x30b19c['includes'](_0x2da204);});if(_0x54a372['length']){for(const _0x540355 of _0x54a372)_0x31fea7['removeMarker'](_0x540355['getFirstMarker']());_0x5167f9=!0x0;}}return _0x5167f9;}['assureChains'](){const _0x4ffc25=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55a99f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x399f9d;const _0x30bb14=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x342ca2=>{if(_0x342ca2['data']['oldRange']||!_0x342ca2['data']['newRange'])return null;if(!_0x342ca2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xb2bf8a}=_0x4ffc25['_splitMarkerName'](_0x342ca2['name']);if(!_0x4ffc25['hasSuggestion'](_0xb2bf8a))return null;const _0x59a522=_0x4ffc25['getSuggestion'](_0xb2bf8a);return _0x55a99f['includes'](_0x59a522['data']['key']);})['map'](_0x4f7828=>{const {id:_0x3e061c}=_0x4ffc25['_splitMarkerName'](_0x4f7828['name']),_0x329e1a=_0x4ffc25['getSuggestion'](_0x3e061c);return _0x399f9d=_0x329e1a['attributes']['groupId'],_0x329e1a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x30bb14['size'])return;const _0x4abdb2=_0x4ffc25['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x433f9c=>'attribute'==_0x433f9c['type']&&_0x433f9c['data']&&_0x55a99f['includes'](_0x433f9c['data']['key'])&&_0x433f9c['attributes']['groupId']!=_0x399f9d)['map'](_0x38c9a5=>({'listItem':_0x38c9a5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x38c9a5['attributes']['groupId']})),_0x4b443f=new Set();for(const {groupId:_0x554109,listItem:_0x429f19}of _0x4abdb2)_0x30bb14['has'](_0x429f19)&&_0x4b443f['add'](_0x554109);for(const _0x1bfd8e of _0x4ffc25['getSuggestions']())_0x4b443f['has'](_0x1bfd8e['attributes']['groupId'])&&_0x1bfd8e['setAttribute']('groupId',_0x399f9d);}['_supportLegacySuggestions'](){const _0xeac0=this['editor'],_0x51eb87=_0xeac0['locale'],_0x389883=_0xeac0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x389883['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2f0f58,_0x68692b){const _0x48ce31=[];for(let _0x2e5de2 of _0x2f0f58)_0x2e5de2['start']['nodeAfter']===_0x2e5de2['end']['parent']&&(_0x2e5de2=_0xeac0['model']['createRange'](_0xeac0['model']['createPositionAt'](_0x2e5de2['start']['nodeAfter'],0x0))),_0x48ce31['push'](_0x2e5de2);_0xeac0['model']['change'](_0x2df738=>{const _0x51289e=_0xeac0['model']['document']['selection'],_0x380093=Array['from'](_0x51289e['getRanges']())['map'](_0x5c0736=>_0x32ac6b['fromRange'](_0x5c0736));_0x2df738['setSelection'](_0x48ce31),_0xeac0['commands']['get'](_0x68692b['commandName'])['refresh'](),_0x68692b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xeac0['execute'](_0x68692b['commandName'],..._0x68692b['commandParams']),_0x2df738['setSelection'](_0x380093);for(const _0x50a235 of _0x380093)_0x50a235['detach']();});}),_0x389883['descriptionFactory']['registerElementLabel'](function(_0x17f954){const _0x36e0fe=!_0xeac0['model']['schema']['isObject'](_0x17f954),_0x24f136=_0x17f954['previousSibling'],_0xed9030=_0x17f954['nextSibling'],_0x7ca825=_0x17f954['getAttribute']('listItemId'),_0xd65cf2=!_0x24f136||_0x24f136['getAttribute']('listItemId')!==_0x7ca825,_0x475280=!_0xed9030||_0xed9030['getAttribute']('listItemId')!==_0x7ca825;return _0x36e0fe&&Boolean(_0x7ca825)&&_0xd65cf2&&_0x475280;},_0x5800a0=>o(_0x51eb87,'ELEMENT_LIST_ITEM',_0x5800a0));}['_registerLegacyDescription'](){const _0x3c5f88=this['editor'],_0x76cf61=_0x3c5f88['locale'];function _0x416772(_0x536bd3){const _0x693afd=_0x3c5f88['commands']['get']('bulletedList')['value'],_0xd7a7d6=_0x3c5f88['commands']['get']('numberedList')['value'];return'numberedList'===_0x536bd3?_0x693afd:_0xd7a7d6;}_0x3c5f88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x59af62){if('formatBlock'!=_0x59af62['type'])return;const {data:_0x19d8b2}=_0x59af62;if(!_0x19d8b2)return;let _0x2df6b3,_0x489386,_0x59488d,_0x4d7860;switch(_0x19d8b2['commandName']){case'bulletedList':_0x59488d=_0x19d8b2['commandParams'][0x0]['forceValue'],_0x4d7860=_0x416772(_0x19d8b2['commandName']),_0x2df6b3=_0x59488d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d7860&&_0x3c5f88['config']['get']('list.multiBlock')||(_0x2df6b3='*Change\x20to:*\x20%0'),_0x489386={'type':'format','content':o(_0x76cf61,_0x2df6b3,o(_0x76cf61,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x59488d=_0x19d8b2['commandParams'][0x0]['forceValue'],_0x4d7860=_0x416772(_0x19d8b2['commandName']),_0x2df6b3=_0x59488d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d7860&&_0x3c5f88['config']['get']('list.multiBlock')||(_0x2df6b3='*Change\x20to:*\x20%0'),_0x489386={'type':'format','content':o(_0x76cf61,_0x2df6b3,o(_0x76cf61,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2df6b3='*Indent:*\x20%0',_0x489386={'type':'format','content':o(_0x76cf61,_0x2df6b3,o(_0x76cf61,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2df6b3=function(_0x14cd05){const _0x3938c0=_0x14cd05['getFirstRange']();let _0x45864a=_0x3938c0['start']['nodeAfter'];for(;_0x45864a&&_0x3938c0['containsItem'](_0x45864a);){if(_0x45864a['getAttribute']('listIndent')>0x0)return!0x1;_0x45864a=_0x45864a['nextSibling'];}return!0x0;}(_0x59af62)?o(_0x76cf61,'*Format:*\x20remove\x20from\x20%0',o(_0x76cf61,function(_0x28f17b){return'ELEMENT_'+_0x28f17b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x59af62))):o(_0x76cf61,'*Outdent:*\x20%0',o(_0x76cf61,'ELEMENT_LIST_ITEM')),_0x489386={'type':'format','content':_0x2df6b3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x19d8b2['multipleBlocks']&&(_0x2df6b3='*Merge:*\x20%0',_0x489386={'type':'deletion','content':o(_0x76cf61,_0x2df6b3,o(_0x76cf61,'ELEMENT_LIST_ITEM'))});}return _0x489386;});}}function Be(_0x3044c6){let _0x5e5e47=_0x3044c6['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5e5e47;){const _0x410be7=_0x5e5e47['getAttribute']('listItemId');if(!_0x410be7)return!0x1;if(_0x410be7==_0x3044c6['data']['newValue'])return'newValue';if(_0x410be7==_0x3044c6['data']['oldValue'])return'oldValue';_0x5e5e47=_0x5e5e47['previousSibling'];}return!0x1;}class X extends _0x51aec7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf142e9=this['editor']['config']['get']('list.properties'),_0x5e8246=this['editor']['plugins']['get']('TrackChangesEditing');_0xf142e9['styles']&&(_0x5e8246['enableDefaultAttributesIntegration']('listStyle'),_0x5e8246['registerBlockAttribute']('listStyle')),_0xf142e9['reversed']&&(_0x5e8246['enableDefaultAttributesIntegration']('listReversed'),_0x5e8246['registerBlockAttribute']('listReversed')),_0xf142e9['startIndex']&&(_0x5e8246['enableDefaultAttributesIntegration']('listStart'),_0x5e8246['registerBlockAttribute']('listStart'));const _0x1a41f5={'type':'format','content':''};_0x5e8246['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xc97756=this['editor']['locale'];_0x5e8246['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xc97756,'FORMAT_LIST_REVERSED')),_0x5e8246['descriptionFactory']['registerDescriptionCallback'](_0x531728=>{const {data:_0x578d77}=_0x531728;if(_0x578d77&&'listReversed'==_0x578d77['key'])return null==_0x578d77['newValue']||0x0==_0x578d77['newValue']&&null==_0x578d77['oldValue']?_0x1a41f5:void 0x0;}),_0x5e8246['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xc97756,'FORMAT_LIST_START')),_0x5e8246['descriptionFactory']['registerDescriptionCallback'](_0x40feff=>{const {data:_0x2345a0}=_0x40feff;if(_0x2345a0&&'listStart'==_0x2345a0['key'])return null==_0x2345a0['newValue']||0x1==_0x2345a0['newValue']&&null==_0x2345a0['oldValue']?_0x1a41f5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xeea94a=>{if(_0xeea94a['batch']['isUndo'])return!0x1;let _0x535c6e=!0x1;const _0x397942=_0x5e8246['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb08c96=>{const _0x3c6930=_0x5e8246['_getAttributeKey'](_0xb08c96);return'listStart'==_0x3c6930||'listReversed'==_0x3c6930;});for(const _0x2265d1 of _0x397942){const _0x1d6fa5=_0x2265d1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1d6fa5||'customNumbered'==_0x1d6fa5)continue;_0x5e8246['_findSuggestions'](_0x2265d1['getFirstRange'](),'attribute')['find'](_0x404a42=>'listType'==_0x5e8246['_getAttributeKey'](_0x404a42['suggestion']))||(_0xeea94a['removeMarker'](_0x2265d1['getFirstMarker']()),_0x535c6e=!0x0);}return _0x535c6e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1bc852){const _0x461118=this['editor']['locale'],{data:_0x3d4575}=_0x1bc852,_0x5494e4={'type':'format','content':''};if(!_0x3d4575||'listStyle'!=_0x3d4575['key'])return;if(!_0x3d4575['oldValue'])return'default'==_0x3d4575['newValue']?_0x5494e4:{'type':'format','content':''+o(_0x461118,'*Set\x20format:*\x20%0',o(_0x461118,this['_getTranslationKeyForListStyle'](_0x3d4575['newValue'])))};if(!_0x3d4575['newValue']){if('default'==_0x3d4575['oldValue'])return _0x5494e4;let _0x5a24ee=_0x1bc852['head'];for(;_0x5a24ee;){if(_0x5a24ee['data']&&'listType'==_0x5a24ee['data']['key']&&_0x5a24ee['data']['newValue'])return _0x5494e4;_0x5a24ee=_0x5a24ee['next'];}return{'type':'format','content':''+o(_0x461118,'*Remove\x20format:*\x20%0',o(_0x461118,this['_getTranslationKeyForListStyle'](_0x3d4575['oldValue'])))};}if('default'!=_0x3d4575['newValue'])return{'type':'format','content':''+o(_0x461118,'*Set\x20format:*\x20%0',o(_0x461118,this['_getTranslationKeyForListStyle'](_0x3d4575['newValue'])))};let _0x241bf6=_0x1bc852['head'];for(;_0x241bf6;){if(_0x241bf6['data']&&'listType'==_0x241bf6['data']['key']&&_0x241bf6['data']['newValue']&&_0x241bf6['data']['oldValue'])return _0x5494e4;_0x241bf6=_0x241bf6['next'];}return{'type':'format','content':o(_0x461118,'*Set\x20format:*\x20%0',o(_0x461118,'ELEMENT_'+_0x1bc852['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4a584e=this['editor'],_0xc10c9=_0x4a584e['locale'];_0x4a584e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf01cbe=>{if('formatBlock'!=_0xf01cbe['type'])return;const {data:_0x1c4b82}=_0xf01cbe;if(!_0x1c4b82)return;let _0xc1c1b1,_0x179084;switch(_0x1c4b82['commandName']){case'listStyle':_0xc1c1b1='*Change\x20to:*\x20%0',_0x179084={'type':'format','content':o(_0xc10c9,_0xc1c1b1,o(_0xc10c9,this['_getTranslationKeyForListStyle'](_0x1c4b82['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc1c1b1=_0x1c4b82['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x179084={'type':'format','content':o(_0xc10c9,_0xc1c1b1)};break;case'listStart':_0xc1c1b1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x179084={'type':'format','content':o(_0xc10c9,_0xc1c1b1,_0x1c4b82['commandParams'][0x0]['startIndex'])};}return _0x179084;});}['_getTranslationKeyForListStyle'](_0x1e9bc5){return'ELEMENT_'+function(_0x5edb3d){if(Re['includes'](_0x5edb3d))return'bulleted';if(Fe['includes'](_0x5edb3d))return'numbered';return null;}(_0x1e9bc5)['toUpperCase']()+'_LIST_'+_0x1e9bc5['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],Fe=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Y extends _0x51aec7{['afterInit'](){const _0x209e22=this['editor'];_0x209e22['commands']['get']('emoji')&&_0x209e22['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Z extends _0x51aec7{static get['requires'](){return[_0x1098e5];}['init'](){const _0x4b8d41=this['editor'],_0x285f6b=_0x4b8d41['plugins']['get']('TrackChangesEditing'),_0x4853e1=_0x4b8d41['commands']['get']('enter');_0x285f6b['enableCommand']('enter',()=>{_0x4b8d41['model']['change'](_0x33efce=>{const _0x472875=_0x4b8d41['model']['document']['selection'],_0x1df235=_0x472875['getFirstPosition'](),_0x2e8213=_0x32ac6b['fromRange'](_0x472875['getFirstRange']());if(_0x4853e1['enterBlock'](_0x33efce)){const _0x3797dc=_0x4b8d41['model']['createPositionAt'](_0x1df235['parent']['nextSibling'],0x0),_0x35fd31=_0x33efce['createRange'](_0x1df235,_0x3797dc);_0x285f6b['markInsertion'](_0x35fd31);}else _0x33efce['setSelection'](_0x33efce['createRange'](_0x2e8213['end']));_0x2e8213['detach'](),_0x4853e1['fire']('afterExecute',{'writer':_0x33efce});});}),_0x4b8d41['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ge(_0x4b8d41,'split'),{'priority':'high'}),_0x4b8d41['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2f2be5,_0x4c1b5e,_0x1f574d)=>{const _0xb5fbba=_0x1f574d['mapper']['markerNameToElements'](_0x4c1b5e['markerName']);if(_0xb5fbba){for(const _0x48411a of _0xb5fbba)_0x48411a['hasClass']('ck-suggestion-marker-split')&&(_0x1f574d['mapper']['unbindElementFromMarkerName'](_0x48411a,_0x4c1b5e['markerName']),_0x1f574d['writer']['remove'](_0x48411a));}},{'priority':'high'}),_0x4b8d41['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45cc8c,_0x27fc38,_0x5cac99)=>{_0x5cac99['options']['showSuggestionHighlights']&&Ge(_0x4b8d41,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x45cc8c,_0x27fc38,_0x5cac99);},{'priority':'high'});}}class tt extends _0x51aec7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x15f38f=this['editor']['plugins']['get']('TrackChangesEditing');_0x15f38f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x15f38f['enableCommand']('findNext'),_0x15f38f['enableCommand']('findPrevious'),_0x15f38f['enableCommand']('replace'),_0x15f38f['enableCommand']('replaceAll');}['handleFindCommand'](_0x251c9a,_0x18b14a,_0x709cc8={}){const _0x33f9d2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x251c9a(_0x4b55c0=>{let _0x33e188=('string'==typeof _0x18b14a?_0x33f9d2['findByTextCallback'](_0x18b14a,_0x709cc8):_0x18b14a)(_0x4b55c0);Array['isArray'](_0x33e188)&&(_0x33e188={'results':_0x33e188,'searchText':'string'==typeof _0x18b14a?_0x18b14a:''});const _0x768d33=_0x33e188['results']['filter'](_0x61558e=>!0x1===this['_isInDeletionRange'](_0x61558e,_0x4b55c0['item']));return{..._0x33e188,'results':_0x768d33};},_0x709cc8);}['_isInDeletionRange'](_0x117b7f,_0x29ab41){const _0x49839f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29ab41,_0x117b7f['start']),this['editor']['model']['createPositionAt'](_0x29ab41,_0x117b7f['end']));for(const _0x582b1f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x49839f['getIntersection'](_0x582b1f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class et extends _0x51aec7{['afterInit'](){const _0x19975f=this['editor']['locale'],_0x2d6bfa=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5a494d,commandName:_0x1d92c1}of eo)this['editor']['plugins']['has'](_0x5a494d)&&(_0x2d6bfa['enableDefaultAttributesIntegration'](_0x1d92c1),_0x2d6bfa['registerInlineAttribute'](_0x1d92c1));_0x2d6bfa['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x19975f,'FORMAT_FONT_SIZE')),_0x2d6bfa['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x19975f,'FORMAT_FONT_FAMILY')),_0x2d6bfa['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x19975f,'FORMAT_FONT_COLOR')),_0x2d6bfa['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x19975f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2084=this['editor'],_0x25f764=_0x3a2084['locale'];_0x3a2084['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42440a=>{const _0x2ba040=_0x25f764['t'];if('formatInline'!=_0x42440a['type'])return;const {data:_0x22f429}=_0x42440a;if(null!=_0x22f429){if('fontSize'==_0x22f429['commandName']){const _0x555a4d=_0x22f429['commandParams'][0x0]['value'];if(_0x555a4d){const _0x53b481=_0x2ba040(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4393ed=>_0x4393ed['model']==_0x555a4d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x25f764,'*Set\x20font\x20size:*\x20%0',_0x53b481)};}return{'type':'format','content':o(_0x25f764,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x22f429['commandName']){const _0xa029a2=_0x22f429['commandParams'][0x0]['value'];return _0xa029a2?{'type':'format','content':o(_0x25f764,'*Set\x20font\x20family:*\x20%0',_0xa029a2)}:{'type':'format','content':o(_0x25f764,'*Reset\x20font\x20family*')};}if('fontColor'==_0x22f429['commandName']){const _0x155d4b=_0x22f429['commandParams'][0x0]['value'];if(_0x155d4b){const _0x524cbc=_0x18cdd2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x43a491=>_0x43a491['model']==_0x155d4b);let _0x193176=_0x155d4b,_0x42e489='';return _0x524cbc&&(_0x193176=_0x524cbc['label'],_0x42e489=_0x2ba040(_0x193176)['toLowerCase']()),{'type':'format','content':o(_0x25f764,'*Set\x20font\x20color:*\x20%0',_0x42e489)['trim'](),'color':{'value':_0x155d4b,'title':_0x42e489||_0x193176}};}return{'type':'format','content':o(_0x25f764,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x22f429['commandName']){const _0x416f49=_0x22f429['commandParams'][0x0]['value'];if(_0x416f49){const _0x39d1a4=_0x18cdd2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1e43db=>_0x1e43db['model']==_0x416f49);let _0x166f6f=_0x416f49,_0x41f321='';return _0x39d1a4&&(_0x166f6f=_0x39d1a4['label'],_0x41f321=_0x2ba040(_0x166f6f)['toLowerCase']()),{'type':'format','content':o(_0x25f764,'*Set\x20font\x20background\x20color:*\x20%0',_0x41f321)['trim'](),'color':{'value':_0x416f49,'title':_0x41f321||_0x166f6f}};}return{'type':'format','content':o(_0x25f764,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x51aec7{['afterInit'](){const _0x4c974e=this['editor'],_0x2d619c=_0x4c974e['plugins']['get']('TrackChangesEditing'),_0x25f221=_0x4c974e['commands']['get']('copyFormat'),_0x488224=_0x4c974e['commands']['get']('pasteFormat');_0x25f221&&_0x488224&&(_0x2d619c['enableDefaultAttributesIntegration']('pasteFormat'),_0x2d619c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x38b600=this['editor'],_0x35bde2=_0x38b600['locale'];_0x38b600['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7333d5=>{if('formatBlock'!=_0x7333d5['type']&&'formatInline'!=_0x7333d5['type'])return;const {data:_0x2196be}=_0x7333d5;if(_0x2196be&&'pasteFormat'===_0x2196be['commandName']){const _0x37237a=[],_0x5ea33e=_0x2196be['commandParams'][0x0];for(const [_0x36b93a,_0x3cb0c2]of Object['entries'](_0x5ea33e))_0x37237a['push'](ro(_0x38b600,_0x36b93a,_0x3cb0c2));return _0x37237a['length']?{'type':'format','content':o(_0x35bde2,'*Set\x20format\x20to:*\x20%0',_0x37237a['join'](',\x20'))}:{'type':'format','content':o(_0x35bde2,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1423c6,_0x59b196,_0x4713a9){const _0x40dcf4=_0x1423c6['locale']['t'],_0x345cf=_0x59b196['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d5ddb=_0x40dcf4(_0x345cf['charAt'](0x0)['toUpperCase']()+_0x345cf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4713a9)return _0x1d5ddb;if('fontColor'===_0x59b196||'fontBackgroundColor'===_0x59b196){const _0x2721fb=_0x18cdd2(_0x1423c6['config']['get']('fontColor.colors'))['find'](_0x1900b8=>_0x1900b8['model']==_0x4713a9);return _0x1d5ddb+'\x20('+(_0x2721fb?_0x40dcf4(_0x2721fb['label'])['toLowerCase']():_0x4713a9)+')';}if('fontSize'===_0x59b196&&isNaN(parseFloat(_0x4713a9))){const _0x41b24b=_0x1423c6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1423c6['config']['get']('fontSize.options'))['find'](_0x2628d8=>_0x2628d8['model']==_0x4713a9);return _0x1d5ddb+'\x20('+(_0x41b24b?_0x40dcf4(_0x41b24b['title'])['toLowerCase']():_0x4713a9)+')';}return _0x1d5ddb+'\x20('+_0x4713a9+')';}class nt extends _0x51aec7{['_headingOptions'];['afterInit'](){const _0x1605a4=this['editor'];if(!_0x1605a4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1605a4['config']['get']('heading.options');const _0xbbadb3=_0x1605a4['locale'],_0xc3ea25=_0x1605a4['plugins']['get']('TrackChangesEditing');_0xc3ea25['enableDefaultAttributesIntegration']('heading');for(const _0x4f67d2 of this['_headingOptions'])'paragraph'!=_0x4f67d2['model']&&_0xc3ea25['descriptionFactory']['registerElementLabel'](_0x4f67d2['model'],_0x57adfe=>{const _0x4cce49=this['_getHeadingLevel'](_0x4f67d2['model']);return null!==_0x4cce49?_0x390c28(_0x57adfe,_0x4cce49):_0x35988f(_0x57adfe,_0x4f67d2['title']);});function _0x390c28(_0x4ea42e,_0x195971){return o(_0xbbadb3,'ELEMENT_HEADING',[_0x4ea42e,_0x195971]);}function _0x35988f(_0x560b37,_0x12ba28){return o(_0xbbadb3,'ELEMENT_HEADING_CUSTOM',[_0x560b37,_0x12ba28]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x127346=this['editor'],_0x1f3c77=_0x127346['locale'];function _0x1725fd(_0xe23205,_0xf4a0a8){return o(_0x1f3c77,'ELEMENT_HEADING_CUSTOM',[_0xe23205,_0xf4a0a8]);}_0x127346['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ce6da=>{if('formatBlock'!=_0x2ce6da['type'])return;const {data:_0x3f8462}=_0x2ce6da;if(_0x3f8462&&'heading'==_0x3f8462['commandName']){const _0x3c3720=_0x3f8462['commandParams'][0x0]['value'],_0x2b3270=this['_getHeadingLevel'](_0x3c3720);if(null!==_0x2b3270)return{'type':'format','content':o(_0x1f3c77,'*Change\x20to:*\x20%0',(_0x2296d5=0x1,_0x5eb7d0=_0x2b3270,o(_0x1f3c77,'ELEMENT_HEADING',[_0x2296d5,_0x5eb7d0])))};const _0x4b46e4=this['_headingOptions']['find'](_0x578d91=>_0x578d91['model']===_0x3c3720)['title'];return{'type':'format','content':o(_0x1f3c77,'*Change\x20to:*\x20%0',_0x1725fd(0x1,_0x4b46e4))};}var _0x2296d5,_0x5eb7d0;});}['_getHeadingLevel'](_0x4ef6fc){const _0x548e13=_0x4ef6fc['match'](/^heading(\d+)/);if(_0x548e13)return _0x548e13[0x1];const _0x25c838=this['_headingOptions']?.['find'](_0x1f2c9c=>_0x1f2c9c['model']==_0x4ef6fc);if(_0x25c838&&_0x25c838['view']){const _0xe2dd5d=_0x25c838['view'],_0x58425b=(_0xe2dd5d['name']??_0xe2dd5d)['match'](/^h(\d+)/);if(_0x58425b)return _0x58425b[0x1];}return null;}}class st extends _0x51aec7{['afterInit'](){const _0x138b8f=this['editor'];if(!_0x138b8f['plugins']['has']('HighlightEditing'))return;const _0xa9d7c4=_0x138b8f['plugins']['get']('TrackChangesEditing'),_0x2a712c=_0x138b8f['locale'];_0xa9d7c4['enableDefaultAttributesIntegration']('highlight'),_0xa9d7c4['registerInlineAttribute']('highlight'),_0xa9d7c4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2a712c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40599f=this['editor'],_0x17b98a=_0x40599f['locale'];_0x40599f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x109365=>{if('formatInline'!=_0x109365['type'])return;const {data:_0x55828d}=_0x109365;if(_0x55828d&&'highlight'==_0x55828d['commandName']){const _0x426ddf=_0x17b98a['t'],_0x224723=_0x55828d['commandParams'][0x0]['value'];if(_0x224723){const _0x2a3d2f=_0x40599f['config']['get']('highlight.options')['find'](_0x1a5871=>_0x1a5871['model']==_0x224723),_0x4b485c=_0x426ddf(_0x2a3d2f['title'])['toLowerCase']();return{'type':'format','content':o(_0x17b98a,'*Set\x20highlight:*\x20%0',_0x4b485c),'color':{'value':_0x2a3d2f['color'],'title':_0x2a3d2f['title']}};}return{'type':'format','content':o(_0x17b98a,'*Remove\x20highlight*',o(_0x17b98a,'FORMAT_HIGHLIGHT'))};}});}}class ot extends _0x51aec7{['afterInit'](){const _0x33647b=this['editor'];if(!_0x33647b['plugins']['has']('HorizontalLineEditing'))return;_0x33647b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x51a5e1=_0x33647b['plugins']['get']('TrackChangesEditing'),_0x1365a6=_0x33647b['locale'];_0x51a5e1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d4b2b=>o(_0x1365a6,'ELEMENT_HORIZONTAL_LINE',_0x4d4b2b)),_0x33647b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3d3cf2,{writer:_0x1848f3,options:_0x257f10})=>{if(!_0x257f10['showSuggestionHighlights'])return null;const _0x5538e7=_0x1848f3['createContainerElement']('div'),_0x17464f=_0x1848f3['createEmptyElement']('hr');return _0x1848f3['addClass']('ck-horizontal-line',_0x5538e7),_0x1848f3['insert'](_0x1848f3['createPositionAt'](_0x5538e7,0x0),_0x17464f),_0x5538e7;},'converterPriority':'high'});}}class rt extends _0x51aec7{['afterInit'](){const _0x15d8b9=this['editor'];if(!_0x15d8b9['plugins']['has']('HtmlEmbed'))return;const _0x56df7b=_0x15d8b9['plugins']['get']('TrackChangesEditing'),_0x388fd7=_0x15d8b9['locale'];_0x56df7b['descriptionFactory']['registerElementLabel']('rawHtml',_0x4bb638=>o(_0x388fd7,'ELEMENT_HTML_EMBED',_0x4bb638)),_0x56df7b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x56df7b['registerBlockAttribute']('value'),_0x56df7b['descriptionFactory']['registerDescriptionCallback'](_0x2b7e02=>{if('attribute'!=_0x2b7e02['type'])return;const {data:_0x38d90f}=_0x2b7e02;if(_0x38d90f&&'value'==_0x38d90f['key']&&_0x2b7e02['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10a6ae=o(_0x388fd7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x388fd7,'*Change\x20%0\x20content*',_0x10a6ae)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488e14=this['editor'],_0x325ad8=_0x488e14['locale'];_0x488e14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48a531=>{if('formatBlock'!=_0x48a531['type'])return;const {data:_0x1e7868}=_0x48a531;if(_0x1e7868&&'htmlEmbed'==_0x1e7868['commandName']){const _0x60c22=o(_0x325ad8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x325ad8,'*Change\x20%0\x20content*',_0x60c22)};}});}}class at extends _0x51aec7{['afterInit'](){const _0x2f9139=this['editor'];if(!_0x2f9139['plugins']['has']('ImageEditing'))return;const _0x173757=_0x2f9139['plugins']['get']('TrackChangesEditing'),_0x333206=_0x2f9139['plugins']['get']('ImageUtils'),_0x4278e1=_0x2f9139['locale'];_0x173757['enableCommand']('insertImage'),_0x173757['descriptionFactory']['registerElementLabel']('imageBlock',_0x2fac9a=>o(_0x4278e1,'ELEMENT_IMAGE',_0x2fac9a)),_0x173757['descriptionFactory']['registerElementLabel']('imageInline',_0x5d19b1=>o(_0x4278e1,'ELEMENT_INLINE_IMAGE',_0x5d19b1)),_0x173757['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4278e1,'ELEMENT_CAPTION')),_0x2f9139['plugins']['has']('ImageUploadEditing')&&_0x173757['enableCommand']('uploadImage'),_0x2f9139['plugins']['has']('ImageBlockEditing')&&_0x2f9139['plugins']['has']('ImageInlineEditing')&&(_0x173757['enableCommand']('imageTypeInline',(_0x29ce21,_0xe92488)=>{const _0x32a5cf=_0x333206['getClosestSelectedImageElement'](_0x2f9139['model']['document']['selection']);_0x2f9139['model']['change'](()=>{_0x173757['markBlockFormat'](_0x32a5cf,{'commandName':'imageTypeInline','commandParams':[_0xe92488]},[],'convertBlockImageToInline');});}),_0x173757['enableCommand']('imageTypeBlock',(_0x23753f,_0x42b177)=>{_0x2f9139['model']['change'](_0x3e2e1a=>{let _0x50baa5=_0x333206['getClosestSelectedImageElement'](_0x2f9139['model']['document']['selection']),_0x4b86ac=_0x3e2e1a['createRangeOn'](_0x50baa5);const _0x3e982=_0x5f08b7['fromPosition'](_0x4b86ac['start'],'toPrevious'),_0x558472=_0x5f08b7['fromPosition'](_0x4b86ac['end'],'toNext');_0x173757['forceDefaultExecution'](()=>_0x23753f(_0x42b177)),_0x50baa5=_0x333206['getClosestSelectedImageElement'](_0x2f9139['model']['document']['selection']),_0x4b86ac=_0x3e2e1a['createRangeOn'](_0x50baa5);const _0x2429a7=_0x3e2e1a['createRange'](_0x3e982,_0x558472);_0x3e982['detach'](),_0x558472['detach'](),_0x173757['markBlockFormat'](_0x50baa5,{'commandName':'imageTypeInline','commandParams':[_0x42b177]},[],'convertInlineImageToBlock'),_0x2429a7['start']['isBefore'](_0x4b86ac['start'])&&_0x173757['markInsertion'](_0x3e2e1a['createRange'](_0x2429a7['start'],_0x4b86ac['start']),'convertInlineImageToBlock'),_0x4b86ac['end']['isBefore'](_0x2429a7['end'])&&_0x173757['markInsertion'](_0x3e2e1a['createRange'](_0x4b86ac['end'],_0x2429a7['end']),'convertInlineImageToBlock');});}),_0x173757['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x173757['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x173757['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x173757['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x173757['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x173757['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2705ab])=>{const _0x3db828=_0x173757['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5d28d6=_0x2705ab['start'],_0x17b451=_0x2705ab['end'];const _0x3988a1=_0x2f9139['model']['schema']['getNearestSelectionRange'](_0x5d28d6,'backward'),_0x475295=_0x2f9139['model']['schema']['getNearestSelectionRange'](_0x17b451,'forward');_0x3988a1['isCollapsed']&&(_0x5d28d6=_0x3988a1['start']),_0x475295['isCollapsed']&&(_0x17b451=_0x475295['end']),_0x3db828([_0x2f9139['model']['createRange'](_0x5d28d6,_0x17b451)]);}),_0x173757['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x204e5f),_0x173757['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x204e5f)),_0x2f9139['plugins']['has']('ImageCaptionEditing')&&(_0x173757['enableCommand']('toggleImageCaption',(_0x50eb06,_0x3aeb6a)=>{const _0x2fa13c=_0x2f9139['plugins']['get']('ImageCaptionUtils');let _0x3da2bf=_0x333206['getClosestSelectedImageElement'](_0x2f9139['model']['document']['selection']),_0x45aea4=_0x2fa13c['getCaptionFromImageModelElement'](_0x3da2bf);_0x2f9139['model']['change'](()=>{if(_0x45aea4)return void _0x173757['markDeletion'](_0x2f9139['model']['createRangeOn'](_0x45aea4));const _0x55b258=_0x333206['isBlockImage'](_0x3da2bf);_0x50eb06(_0x3aeb6a),_0x3da2bf=_0x333206['getClosestSelectedImageElement'](_0x2f9139['model']['document']['selection']),_0x45aea4=_0x2fa13c['getCaptionFromImageModelElement'](_0x3da2bf),_0x173757['markInsertion'](_0x2f9139['model']['createRangeOn'](_0x45aea4),_0x55b258?null:'imageCaption');});}),_0x173757['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x204e5f));const _0x1294ac=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x35a351(_0x184742,_0x1fa195){const _0x3a6d8f=_0x1294ac['findIndex'](({type:_0x2bb727,subType:_0x3a3113})=>_0x184742['type']==_0x2bb727&&_0x184742['subType']==_0x3a3113),_0x2f3e55=_0x1294ac['findIndex'](({type:_0x2d1533,subType:_0x570ecd})=>_0x1fa195['type']==_0x2d1533&&_0x1fa195['subType']==_0x570ecd);if(_0x3a6d8f<0x0||_0x2f3e55<0x0)return!0x1;const _0x23254f=_0x184742['getFirstRange'](),_0xc0f2e4=_0x1fa195['getFirstRange']();if((0x0==_0x3a6d8f||0x1==_0x3a6d8f)&&0x2==_0x2f3e55&&_0x23254f['isIntersecting'](_0xc0f2e4))return!0x0;if(0x2==_0x3a6d8f&&0x3==_0x2f3e55){const _0x15987b=_0x173757['_findSuggestions'](_0x23254f,'insertion')['filter'](({suggestion:_0x573b85,meta:_0x4a39c8})=>_0x4a39c8['isOwn']&&'convertInlineImageToBlock'==_0x573b85['subType']);if(_0x15987b['length']>0x1&&_0xc0f2e4['end']['isEqual'](_0x23254f['start']))return!0x0;if(0x1==_0x15987b['length']&&(_0x23254f['start']['isEqual'](_0xc0f2e4['end'])||_0x23254f['end']['isEqual'](_0xc0f2e4['start'])))return!0x0;}if(0x3==_0x3a6d8f&&0x3==_0x2f3e55&&_0x23254f['start']['isBefore'](_0xc0f2e4['start'])){const _0x5d0bda=_0x23254f['end']['nodeAfter'],_0x1ff660=_0xc0f2e4['start']['nodeBefore'];return _0x333206['isBlockImage'](_0x5d0bda)&&_0x5d0bda===_0x1ff660;}return!0x1;}function _0x204e5f(_0x53f7b8,_0x480e49){return _0x35a351(_0x53f7b8,_0x480e49)?[_0x53f7b8,_0x480e49]:_0x35a351(_0x480e49,_0x53f7b8)?[_0x480e49,_0x53f7b8]:null;}_0x2f9139['plugins']['has']('ImageResize')&&(_0x173757['enableDefaultAttributesIntegration']('resizeImage'),_0x173757['registerBlockAttribute']('resizedWidth'),_0x173757['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4278e1,'FORMAT_IMAGE_SIZE'))),_0x2f9139['plugins']['has']('ImageTextAlternativeEditing')&&(_0x173757['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x173757['registerBlockAttribute']('alt')),_0x2f9139['plugins']['has']('PictureEditing')&&(_0x173757['registerBlockAttribute']('sources'),_0x173757['descriptionFactory']['registerDescriptionCallback'](_0x52da69=>{if('attribute'!=_0x52da69['type'])return;const {data:_0x51636c}=_0x52da69;return _0x51636c&&'sources'==_0x51636c['key']?{'type':'format','content':''}:void 0x0;})),_0x2f9139['plugins']['has']('ImageSizeAttributes')&&(_0x173757['registerBlockAttribute']('width'),_0x173757['registerBlockAttribute']('height'),_0x173757['descriptionFactory']['registerDescriptionCallback'](_0x3a18fb=>{if('attribute'!=_0x3a18fb['type'])return;const {data:_0x547ee2}=_0x3a18fb;return!_0x547ee2||'width'!=_0x547ee2['key']&&'height'!=_0x547ee2['key']?void 0x0:{'type':'format','content':''};})),_0x173757['descriptionFactory']['registerDescriptionCallback'](_0x46c482=>{if(!!_0x1294ac['find'](({type:_0x5c6653,subType:_0x11d41e})=>_0x46c482['type']==_0x5c6653&&_0x46c482['subType']==_0x11d41e))return _0x46c482['previous']?{}:void 0x0;}),_0x173757['descriptionFactory']['registerDescriptionCallback'](_0x17a7cb=>{if('insertion'==_0x17a7cb['type']||'deletion'==_0x17a7cb['type']){const _0x235852=_0x17a7cb['getContainedElement']();if(_0x235852&&_0x235852['is']('element','caption'))return{'type':'insertion'==_0x17a7cb['type']?'addObject':'removeObject','element':_0x235852,'quantity':0x1};}}),_0x173757['descriptionFactory']['registerDescriptionCallback'](_0x50ce43=>'formatBlock'==_0x50ce43['type']&&'convertInlineImageToBlock'==_0x50ce43['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x50ce43['type']&&'convertBlockImageToInline'==_0x50ce43['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x173757['descriptionFactory']['registerDescriptionCallback'](_0x4b88aa=>{if('attribute'!=_0x4b88aa['type'])return;const {data:_0x3af897}=_0x4b88aa;if(!_0x3af897||'alt'!=_0x3af897['key'])return;const _0x129bef=_0x3af897['newValue'];return _0x129bef?{'type':'format','content':o(_0x4278e1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x129bef+'\x22')}:{'type':'format','content':o(_0x4278e1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a50a4=this['editor'],_0x50fb12=_0x2a50a4['locale'];_0x2a50a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa7ce15=>{if('formatBlock'!=_0xa7ce15['type']&&'formatInline'!=_0xa7ce15['type'])return;const {data:_0x216ea8}=_0xa7ce15;if(_0x216ea8){if('imageTextAlternative'==_0x216ea8['commandName']){const _0x2c802d=_0x216ea8['commandParams'][0x0]['newValue'];return _0x2c802d?{'type':'format','content':o(_0x50fb12,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c802d+'\x22')}:{'type':'format','content':o(_0x50fb12,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x216ea8['commandName']){const _0x55abf3=_0x216ea8['commandParams'][0x0]['width'];return _0x55abf3?{'type':'format','content':o(_0x50fb12,'*Set\x20image\x20width:*\x20%0',_0x55abf3)}:{'type':'format','content':o(_0x50fb12,'*Reset\x20image\x20width*')};}}});}}class ct extends _0x51aec7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x138524=this['editor']['locale'],_0x5d973b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d973b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5d973b['registerBlockAttribute']('src'),_0x5d973b['descriptionFactory']['registerDescriptionCallback'](_0x100940=>{if('attribute'!=_0x100940['type'])return;const {data:_0x25ad58}=_0x100940;return _0x25ad58&&'src'==_0x25ad58['key']?_0x25ad58['newValue']&&_0x25ad58['oldValue']?{'type':'format','content':o(_0x138524,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd8a79c=this['editor']['plugins']['get']('TrackChangesEditing');_0xd8a79c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xd8a79c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd8a79c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xd8a79c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x125788=this['editor'],_0x2866ec=_0x125788['locale'];_0x125788['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x220393=>{if('formatBlock'!=_0x220393['type']&&'formatInline'!=_0x220393['type'])return;const {data:_0x393022}=_0x220393;if(!_0x393022||'replaceImageSource'!=_0x393022['commandName'])return;return{'type':'format','content':o(_0x2866ec,'*Format:*\x20replace\x20image\x20URL')};});}}class ut extends _0x51aec7{['afterInit'](){const _0x31acef=this['editor'];if(!_0x31acef['plugins']['has']('ImageStyleEditing'))return;const _0x32bbb5=_0x31acef['plugins']['get']('TrackChangesEditing'),_0x1a8de2=_0x31acef['plugins']['get']('ImageUtils'),_0xdc96c8={};_0x32bbb5['enableCommand']('imageStyle',(_0x212eed,_0x278a22)=>{const _0x46e5bd=_0x31acef['plugins']['get']('Users')['me'],_0x515648=_0x31acef['commands']['get']('imageStyle');let _0x158958=_0x1a8de2['getClosestSelectedImageElement'](_0x31acef['model']['document']['selection']),_0x4e976e=_0x31acef['model']['createRangeOn'](_0x158958),_0x3146c0=_0x515648['value'];if(_0x3146c0==_0x278a22['value'])return;const _0x127065={'commandName':'imageStyle','commandParams':[_0x278a22],'formatGroupId':_0x475984()};_0x31acef['model']['change'](()=>{if(_0x32bbb5['getSuggestions']()['filter'](_0x4d2256=>_0x4d2256['isInContent']&&_0x46e5bd==_0x4d2256['author']&&('formatBlock'==_0x4d2256['type']||'formatInline'==_0x4d2256['type'])&&('imageStylePreApply'==_0x4d2256['subType']||'imageStylePostApply'==_0x4d2256['subType'])&&_0x4d2256['getFirstRange']()['isEqual'](_0x4e976e))['forEach'](_0x28956d=>_0x32bbb5['discardSuggestion'](_0x28956d['head'])),_0x158958=_0x1a8de2['getClosestSelectedImageElement'](_0x31acef['model']['document']['selection']),_0x4e976e=_0x31acef['model']['createRangeOn'](_0x158958),_0x515648['refresh'](),_0x31acef['commands']['get']('imageTypeInline')['refresh'](),_0x31acef['commands']['get']('imageTypeBlock')['refresh'](),_0x3146c0=_0x515648['value'],_0x3146c0!=_0x278a22['value'])return _0x1a8de2['isInlineImage'](_0x158958)&&_0x515648['shouldConvertImageType'](_0x278a22['value'],_0x158958)?(_0x212eed({..._0x278a22,'setImageSizes':!0x1}),_0x158958=_0x1a8de2['getClosestSelectedImageElement'](_0x31acef['model']['document']['selection']),void _0x32bbb5['markBlockFormat'](_0x158958,{..._0x127065,'commandReversedParams':[{'value':_0x3146c0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1a8de2['isBlockImage'](_0x158958)?_0x32bbb5['markBlockFormat'](_0x158958,_0x127065,[],'imageStylePostApply'):_0x32bbb5['markInlineFormat'](_0x4e976e,_0x127065,'imageStylePostApply'));});});for(const _0x1d5b1a of _0x31acef['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xdc96c8[_0x1d5b1a['name']]=_0x1d5b1a['title']['toLowerCase']();_0x32bbb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x32bbb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x32bbb5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x32bbb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4b1a42])=>{_0x1a8de2['setImageNaturalSizeAttributes'](_0x4b1a42['getContainedElement']());}),_0x32bbb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x16cf41,_0x274a0a)=>{_0x32bbb5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x16cf41,{'commandName':_0x274a0a['commandName'],'commandParams':_0x274a0a['commandReversedParams']});}),_0x32bbb5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x52bd45,_0xa649e4){if(_0x5f2fe9(_0x52bd45,_0xa649e4))return[_0x52bd45,_0xa649e4];if(_0x5f2fe9(_0xa649e4,_0x52bd45))return[_0xa649e4,_0x52bd45];return null;});const _0x177078=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5f2fe9(_0x473dd4,_0x5cbf60){const _0xee0a1=_0x177078['findIndex'](({type:_0xd96d6b,subType:_0x2e1ccd})=>_0x473dd4['type']==_0xd96d6b&&_0x473dd4['subType']==_0x2e1ccd),_0x581dee=_0x177078['findIndex'](({type:_0x35a1d3,subType:_0x2a2709})=>_0x5cbf60['type']==_0x35a1d3&&_0x5cbf60['subType']==_0x2a2709);if(_0xee0a1<0x0||_0x581dee<0x0)return!0x1;const _0xfde456=_0x473dd4['getFirstRange'](),_0x1d6090=_0x5cbf60['getFirstRange']();if((0x0==_0xee0a1||0x1==_0xee0a1)&&0x2==_0x581dee&&_0xfde456['isIntersecting'](_0x1d6090))return!0x0;if(0x2==_0xee0a1&&0x3==_0x581dee){const _0x21e4ec=_0x32bbb5['_findSuggestions'](_0xfde456,'insertion')['filter'](({suggestion:_0x1c0e03,meta:_0x57b7f6})=>_0x57b7f6['isOwn']&&'convertInlineImageToBlock'==_0x1c0e03['subType']);if(_0x21e4ec['length']>0x1&&_0x1d6090['end']['isEqual'](_0xfde456['start']))return!0x0;if(0x1==_0x21e4ec['length']&&(_0xfde456['start']['isEqual'](_0x1d6090['end'])||_0xfde456['end']['isEqual'](_0x1d6090['start'])))return!0x0;}if(0x3==_0xee0a1&&0x3==_0x581dee&&_0xfde456['start']['isBefore'](_0x1d6090['start'])){const _0x1c04c6=_0xfde456['end']['nodeAfter'],_0xefe2=_0x1d6090['start']['nodeBefore'];return _0x1a8de2['isBlockImage'](_0x1c04c6)&&_0x1c04c6===_0xefe2;}return!0x1;}_0x31acef['model']['document']['registerPostFixer'](()=>{let _0x32460c=!0x1;const _0x211e73=Array['from'](_0x31acef['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x277f70,data:_0x5b2c48}of _0x211e73){const {group:_0x573aaa,type:_0x8ea71c,subType:_0x2263b3,id:_0x5b734d}=_0x32bbb5['_splitMarkerName'](_0x277f70);if('suggestion'==_0x573aaa&&_0x32bbb5['hasSuggestion'](_0x5b734d)){if('formatBlock'==_0x8ea71c&&('imageStylePreApply'==_0x2263b3||'imageStylePostApply'==_0x2263b3)){const _0x54e067=_0x32bbb5['getSuggestion'](_0x5b734d);if(_0x5b2c48['newRange']){const _0x3f85eb=_0x54e067['getFirstRange']()['getContainedElement']();if(_0x1a8de2['isBlockImage'](_0x3f85eb))continue;_0x32bbb5['discardSuggestion'](_0x54e067),_0x32460c=!0x0;}}if('insertion'==_0x8ea71c&&'imageCaption'==_0x2263b3&&!_0x5b2c48['newRange']){const _0x3a0b5c=_0x32bbb5['getSuggestion'](_0x5b734d);_0x3a0b5c['next']&&_0x3a0b5c['next']['isInContent']&&(_0x32bbb5['discardSuggestion'](_0x3a0b5c['next']),_0x32460c=!0x0);}}}return _0x32460c;}),this['_registerLegacyDescription'](_0xdc96c8);}['_registerLegacyDescription'](_0x48f216){const _0xcd219d=this['editor'],_0x52f185=_0xcd219d['locale'];_0xcd219d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d8784=>{if('formatBlock'!=_0x2d8784['type']&&'formatInline'!=_0x2d8784['type'])return;const {data:_0x3b452b}=_0x2d8784;if(!_0x3b452b||'imageStyle'!=_0x3b452b['commandName'])return;const _0x43cd1a=_0x3b452b['commandParams'][0x0]['value'];return _0x3e1aa9('side'===_0x43cd1a?o(_0x52f185,'FORMAT_SIDE_IMAGE'):_0x48f216[_0x43cd1a]||_0x43cd1a);function _0x3e1aa9(_0x5c4f78){return{'type':'format','content':o(_0x52f185,'*Format:*\x20%0',_0x5c4f78)};}});}}class ft extends _0x51aec7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x38540a){super(_0x38540a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x333e30=this['editor'],_0x4cd622=_0x333e30['commands']['get']('importWord'),_0x4a89cf=_0x333e30['commands']['get']('trackChanges');_0x4cd622&&(_0x4cd622['on']('execute',(_0x4621cc,[,_0x24a827])=>{this['_trackChangesValueDuringImport']=_0x4a89cf['value'],_0x24a827['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cd622,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cd622,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4a89cf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x333e30['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5224d8,_0x4bb1a1){const {suggestions:_0x56597c}=_0x4bb1a1,_0x9209b5=this['editor']['commands']['get']('trackChanges'),_0xb8efd6=_0x9209b5['value'];this['_trackChangesValueDuringImport']!==_0xb8efd6&&(_0x9209b5['execute'](),this['_trackChangesExecuted']=!0x0),_0x56597c&&_0x56597c['forEach'](({id:_0x411580,type:_0x54a76e,author:_0x51043a,created_at:_0x2a0d93})=>{const _0x2dcc2c={'id':_0x411580,'type':_0x54a76e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x51043a,'createdAt':_0x2a0d93?new Date(_0x2a0d93):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2dcc2c);});}}class ht extends _0x51aec7{['afterInit'](){const _0x3d01c2=this['editor'],_0x2eca92=_0x3d01c2['plugins']['get']('TrackChangesEditing');if(_0x3d01c2['plugins']['has']('IndentEditing')&&(_0x2eca92['enableCommand']('indent'),_0x2eca92['enableCommand']('outdent')),_0x3d01c2['plugins']['has']('IndentBlock')){for(const _0x4aa5bf of['indentBlock','outdentBlock'])_0x2eca92['enableDefaultAttributesIntegration'](_0x4aa5bf);}const _0x578113=_0x3d01c2['locale'];_0x2eca92['registerBlockAttribute']('blockIndent'),_0x2eca92['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x578113,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543a15=this['editor'],_0x31c6e7=_0x543a15['locale'],_0xf00869=_0x543a15['plugins']['get']('TrackChangesEditing');_0xf00869['descriptionFactory']['registerDescriptionCallback'](_0xf3b88b=>{if('formatBlock'!=_0xf3b88b['type'])return;const {data:_0x561653}=_0xf3b88b;if(!_0x561653)return;if('indentBlock'!=_0x561653['commandName']&&'outdentBlock'!=_0x561653['commandName'])return;const _0x3a167e=_0xf3b88b['getItems']()[0x0],_0x1570dd=_0xf00869['descriptionFactory']['getItemLabel'](_0x3a167e);return'indentBlock'==_0x561653['commandName']?{'type':'format','content':o(_0x31c6e7,'*Indent:*\x20%0',_0x1570dd)}:'outdentBlock'==_0x561653['commandName']?{'type':'format','content':o(_0x31c6e7,'*Outdent:*\x20%0',_0x1570dd)}:void 0x0;});}}class gt extends _0x51aec7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x51aec7{['afterInit'](){const _0x5cf3fd=this['editor'];if(!_0x5cf3fd['plugins']['has']('LinkEditing'))return;const _0x5abbe3=_0x5cf3fd['plugins']['get']('TrackChangesEditing'),_0x39cac3=_0x5cf3fd['commands']['get']('link');_0x5abbe3['enableDefaultAttributesIntegration']('link'),_0x5abbe3['enableDefaultAttributesIntegration']('unlink'),_0x5abbe3['registerInlineAttribute']('linkHref');for(const _0x575ab7 of _0x39cac3['manualDecorators'])_0x5abbe3['registerInlineAttribute'](_0x575ab7['id']),_0x5abbe3['descriptionFactory']['registerAttributeLabel'](_0x575ab7['id'],'link\x20('+_0x575ab7['label']['toLowerCase']()+')');_0x5abbe3['descriptionFactory']['registerDescriptionCallback'](_0x48d9c0=>{if('attribute'!=_0x48d9c0['type'])return;const {data:_0x27d74d}=_0x48d9c0;if(!_0x27d74d||'linkHref'!=_0x27d74d['key'])return;const _0x5ee05a=_0x27d74d['newValue'],_0x17bd2c=_0x5cf3fd['locale'];return{'type':'format','content':null==_0x5ee05a?o(_0x17bd2c,'*Remove\x20link*'):o(_0x17bd2c,'*Set\x20link:*\x20%0','\x22'+_0x5ee05a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52c81c=this['editor'],_0x5b00fa=_0x52c81c['locale'];_0x52c81c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda5964=>{if('formatInline'!=_0xda5964['type'])return;const {data:_0x4897e8}=_0xda5964;if(_0x4897e8){if('link'==_0x4897e8['commandName']){const _0x4dee99=_0x4897e8['commandParams'][0x0];return{'type':'format','content':o(_0x5b00fa,'*Set\x20link:*\x20%0','\x22'+_0x4dee99+'\x22')};}return'unlink'==_0x4897e8['commandName']?{'type':'format','content':o(_0x5b00fa,'*Remove\x20link*')}:void 0x0;}});}}class dt extends _0x51aec7{['afterInit'](){const _0x13d515=this['editor'],_0x4afae6=_0x13d515['locale'];if(!_0x13d515['plugins']['has']('LegacyListEditing'))return;const _0x9b3e6c=_0x13d515['plugins']['get']('TrackChangesEditing'),_0x3f4911=_0x13d515['plugins']['has']('LegacyTodoListEditing');function _0x4152b5(_0x4b1738){return()=>{const _0xc5ea40=_0x13d515['model']['document']['selection'],_0x399271=_0x13d515['commands']['get'](_0x4b1738);if(_0x399271['value'])return void _0x13d515['execute']('paragraph',{});const _0x18d13d=_0x4b1738['slice'](0x0,-0x4),_0x49d9c6=function(_0x1bac97,_0x1ad70b,_0x465747){let _0x18fb7f=Array['from'](_0x1bac97)['filter'](_0x1afd4b=>function(_0x3f2e5e,_0x52a208){return _0x52a208['checkChild'](_0x3f2e5e['parent'],'listItem')&&!_0x52a208['isObject'](_0x3f2e5e);}(_0x1afd4b,_0x465747));_0x18fb7f=_0x18fb7f['filter'](_0x15c247=>!_0x15c247['is']('element','listItem')||_0x15c247['getAttribute']('listType')!=_0x1ad70b);const _0x5ef1b5=new Set();for(const _0xaf75c3 of _0x18fb7f)_0xaf75c3['is']('element','listItem')?_0x5ef1b5['add'](Ne(_0xaf75c3)):_0x5ef1b5['add'](_0xaf75c3);return Array['from'](_0x5ef1b5);}(_0xc5ea40['getSelectedBlocks'](),_0x18d13d,_0x13d515['model']['schema']);_0x13d515['model']['change'](()=>{for(const _0x22621a of _0x49d9c6)_0x9b3e6c['markBlockFormat'](_0x22621a,{'commandName':_0x4b1738,'commandParams':[{'forceValue':!_0x399271['value']}],'formatGroupId':'blockName'},Se(_0x22621a));});};}function _0x1b85c8(_0x52791b){return()=>{const _0x17b3a3=function(_0x833753){let _0x13e267=Array['from'](_0x833753);const _0x1b9d8b=_0x13e267['findIndex'](_0x5cbcd2=>'listItem'!=_0x5cbcd2['name']);return _0x1b9d8b>-0x1&&(_0x13e267=_0x13e267['slice'](0x0,_0x1b9d8b)),_0x13e267;}(_0x13d515['model']['document']['selection']['getSelectedBlocks']()),_0x21141d=_0x13d515['model']['createRange'](_0x13d515['model']['createPositionAt'](_0x17b3a3[0x0],'before'),_0x13d515['model']['createPositionAt'](_0x17b3a3[_0x17b3a3['length']-0x1],'end'));_0x13d515['model']['change'](()=>{_0x9b3e6c['markBlockFormat'](_0x21141d,{'commandName':_0x52791b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38d62e){const _0x12774a=new Set();for(const _0xc1bcab of _0x38d62e){let _0x1a2489=_0xc1bcab['nextSibling'];for(;_0x1a2489&&_0x1a2489['getAttribute']('listIndent')>_0xc1bcab['getAttribute']('listIndent');)_0x12774a['add'](_0x1a2489),_0x1a2489=_0x1a2489['nextSibling'];}return Array['from'](_0x12774a);}(_0x17b3a3));});};}_0x9b3e6c['enableCommand']('numberedList',_0x4152b5('numberedList')),_0x9b3e6c['enableCommand']('bulletedList',_0x4152b5('bulletedList')),_0x3f4911&&_0x9b3e6c['enableCommand']('todoList',_0x4152b5('todoList')),_0x9b3e6c['enableCommand']('indentList',_0x1b85c8('indentList')),_0x9b3e6c['enableCommand']('outdentList',_0x1b85c8('outdentList')),_0x3f4911&&_0x9b3e6c['enableCommand']('checkTodoList',()=>{const _0x2f4984=_0x13d515['commands']['get']('checkTodoList'),_0x1f670b=Array['from'](_0x2f4984['_selectedElements']);_0x1f670b['filter'](_0x34a207=>_0x34a207['getAttribute']('todoListChecked')!=_0x2f4984['value']),_0x13d515['model']['change'](()=>{for(const _0x2e904d of _0x1f670b)_0x9b3e6c['markBlockFormat'](_0x2e904d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2f4984['value']}]});});}),_0x9b3e6c['descriptionFactory']['registerElementLabel']('listItem',_0x122756=>o(_0x4afae6,'ELEMENT_LIST_ITEM',_0x122756)),_0x9b3e6c['descriptionFactory']['registerDescriptionCallback'](_0x2a36d3=>{if('formatBlock'!=_0x2a36d3['type']&&'formatInline'!=_0x2a36d3['type'])return;const {data:_0x3602d6}=_0x2a36d3;if(_0x3602d6){if('numberedList'==_0x3602d6['commandName']||'bulletedList'==_0x3602d6['commandName']||'todoList'==_0x3602d6['commandName'])switch(_0x3602d6['commandName']['replace']('List','')){case'bulleted':return _0x22c341(o(_0x4afae6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22c341(o(_0x4afae6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22c341(o(_0x4afae6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3602d6['commandName'])return{'type':'format','content':o(_0x4afae6,'*Indent:*\x20%0',o(_0x4afae6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3602d6['commandName'])return{'type':'format','content':o(_0x4afae6,'*Outdent:*\x20%0',o(_0x4afae6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3602d6['commandName'])return _0x3602d6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4afae6,'*Check\x20item*')}:{'type':'format','content':o(_0x4afae6,'*Uncheck\x20item*')};}function _0x22c341(_0x52184c){return{'type':'format','content':o(_0x4afae6,'*Change\x20to:*\x20%0',_0x52184c)};}});}}function Ne(_0x36d196){const _0x451715=_0x36d196['getAttribute']('listIndent');if(0x0==_0x451715)return _0x36d196;let _0x517c6e=_0x36d196;for(;_0x36d196['previousSibling']&&_0x36d196['previousSibling']['is']('element','listItem');){const _0x385582=_0x36d196['previousSibling']['getAttribute']('listIndent');if(_0x385582==_0x451715)_0x517c6e=_0x36d196['previousSibling'];else{if(_0x385582<_0x451715)break;}_0x36d196=_0x36d196['previousSibling'];}return _0x517c6e;}function Se(_0x5ea6dc){const _0x3cf070=[];if(_0x5ea6dc['is']('element','listItem')&&_0x5ea6dc['getAttribute']('listIndent')>0x0){let _0x4bee7d=_0x5ea6dc['nextSibling'];for(;_0x4bee7d&&'listItem'==_0x4bee7d['name']&&_0x4bee7d['getAttribute']('listIndent')==_0x5ea6dc['getAttribute']('listIndent');)_0x3cf070['push'](_0x4bee7d),_0x4bee7d=_0x4bee7d['nextSibling'];}return _0x3cf070;}class mt extends _0x51aec7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x434d8f=this['editor']['config']['get']('list.properties'),_0x44f7da=this['editor']['plugins']['get']('TrackChangesEditing');_0x434d8f['styles']&&_0x44f7da['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x434d8f['reversed']&&_0x44f7da['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x434d8f['startIndex']&&_0x44f7da['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x44f7da['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x394d0d,_0x3aaac7={}){const _0x1a2c59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x327c4a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1a2c59['markMultiRangeBlockFormat'](_0x327c4a,{'commandName':'listStyle','commandParams':[{'type':_0x3aaac7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4dc77b,_0x16099e={}){const _0xbb7e0d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57a2e7=this['_getSuggestionBlocks'](_0x43b12c=>_0x43b12c['is']('element','listItem')&&'numbered'===_0x43b12c['getAttribute']('listType'));if(_0x57a2e7['length']<0x1)return;const _0x501116=_0x57a2e7['map'](_0x1fdda4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1fdda4,'before'),this['editor']['model']['createPositionAt'](_0x1fdda4,0x0)));this['editor']['model']['change'](()=>{_0xbb7e0d['markMultiRangeBlockFormat'](_0x501116,{'commandName':'listReversed','commandParams':[{'reversed':_0x16099e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x364178,_0x4d637d={}){const _0x5a421c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ddaa9=this['_getSuggestionBlocks'](_0x5166e7=>_0x5166e7['is']('element','listItem')&&'numbered'===_0x5166e7['getAttribute']('listType'));if(_0x2ddaa9['length']<0x1)return;const _0x1e495a=_0x2ddaa9['map'](_0x15c531=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15c531,'before'),this['editor']['model']['createPositionAt'](_0x15c531,0x0)));this['editor']['model']['change'](()=>{_0x5a421c['markMultiRangeBlockFormat'](_0x1e495a,{'commandName':'listStart','commandParams':[{'startIndex':_0x4d637d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x18ae28){if('formatBlock'!=_0x18ae28['type']&&'formatInline'!=_0x18ae28['type'])return;const _0x2765e9=this['editor']['locale'],{data:_0x4d4ace}=_0x18ae28;if(!_0x4d4ace)return;let _0x2ab728,_0xd96ee9;switch(_0x4d4ace['commandName']){case'listStyle':_0x2ab728='*Change\x20to:*\x20%0',_0xd96ee9={'type':'format','content':o(_0x2765e9,_0x2ab728,o(_0x2765e9,this['_getTranslationKeyForListStyle'](_0x4d4ace['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ab728=_0x4d4ace['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd96ee9={'type':'format','content':o(_0x2765e9,_0x2ab728)};break;case'listStart':_0x2ab728='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd96ee9={'type':'format','content':o(_0x2765e9,_0x2ab728,_0x4d4ace['commandParams'][0x0]['startIndex'])};}return _0xd96ee9;}['_getSuggestionBlocksForListStyle'](){const _0x315d32=this['editor']['plugins']['get']('LegacyListUtils');let _0x224835=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x224835[0x0]?.['is']('element','listItem')&&_0x224835['unshift'](..._0x315d32['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x224835[_0x224835['length']-0x1]?.['is']('element','listItem')&&_0x224835['push'](..._0x315d32['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x224835=[...new Set(_0x224835)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x224835=_0x224835['filter'](_0x1c97c7=>_0x1c97c7['is']('element','listItem'))),_0x224835;}['_getSuggestionBlocks'](_0x5601cd){const _0x40e154=this['editor']['plugins']['get']('LegacyListUtils');let _0x43066f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5601cd)['map'](_0x1d34be=>{const _0x3526b4=this['editor']['model']['createPositionAt'](_0x1d34be,0x0);return[..._0x40e154['getSiblingNodes'](_0x3526b4,'backward'),..._0x40e154['getSiblingNodes'](_0x3526b4,'forward')];})['flat']();return _0x43066f=[...new Set(_0x43066f)],_0x43066f;}['_getTranslationKeyForListStyle'](_0x1673f7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1673f7)||'default')['toUpperCase']()+'_LIST_'+_0x1673f7['toUpperCase']()['replace'](/-/g,'_');}}class pt extends _0x51aec7{['afterInit'](){const _0x10e333=this['editor'];if(!_0x10e333['plugins']['has']('MediaEmbedEditing'))return;const _0x19c378=_0x10e333['plugins']['get']('TrackChangesEditing'),_0x2f6967=_0x10e333['locale'];_0x19c378['enableCommand']('mediaEmbed'),_0x19c378['descriptionFactory']['registerElementLabel']('media',_0x2132c6=>o(_0x2f6967,'ELEMENT_MEDIA',_0x2132c6)),_0x10e333['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x536d63,{writer:_0x40a805,options:_0x5a535e})=>{if(_0x5a535e['showSuggestionHighlights'])return _0x40a805['createEmptyElement']('div');},'converterPriority':'high'}),_0x10e333['data']['downcastDispatcher']['on']('attribute:url:media',(_0x28d540,_0x42cbfe,_0x560203)=>{_0x560203['options']['showSuggestionHighlights']&&_0x28d540['stop']();},{'priority':'high'});}}class kt extends _0x51aec7{['afterInit'](){const _0x3d4c0f=this['editor'];_0x3d4c0f['plugins']['has']('MentionEditing')&&_0x3d4c0f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x51aec7{['afterInit'](){const _0x1b2046=this['editor'];if(!_0x1b2046['plugins']['has']('MergeFieldsEditing'))return;const _0x34e271=_0x1b2046['plugins']['get']('TrackChangesEditing'),_0x535ee5=_0x1b2046['locale'];_0x34e271['enableCommand']('insertMergeField'),_0x34e271['enableCommand']('insertMergeFieldBlock'),_0x34e271['enableCommand']('insertMergeFieldImage'),_0x34e271['descriptionFactory']['registerElementLabel']('mergeField',_0x6b15b5=>o(_0x535ee5,'ELEMENT_MERGE_FIELD',_0x6b15b5)),_0x34e271['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x53bc93=>o(_0x535ee5,'ELEMENT_MERGE_FIELD',_0x53bc93)),_0x34e271['descriptionFactory']['registerDescriptionCallback'](_0x24c0ca=>{if('insertion'!=_0x24c0ca['type']&&'deletion'!=_0x24c0ca['type'])return;const _0x4cfa44=_0x24c0ca['getContainedElement']();if(null==_0x4cfa44)return;const _0xc3fb33=_0x1b2046['plugins']['get']('MergeFieldsEditing');let _0x39a0ea;switch(_0xc3fb33['getMergeFieldType'](_0x4cfa44)){case null:return;case'image':{const _0x1fce19=_0xc3fb33['unwrapAffixes'](_0x4cfa44['getAttribute']('src'));_0x39a0ea=_0xc3fb33['getLabel'](_0x1fce19)||_0x1fce19;break;}default:{const _0x3a0354=_0x4cfa44['getAttribute']('id');_0x39a0ea=_0xc3fb33['getLabel'](_0x3a0354)||_0x3a0354;break;}}return'insertion'==_0x24c0ca['type']?{'type':'insertion','content':o(_0x535ee5,'*Insert:*\x20%0','\x22'+_0x39a0ea+'\x22\x20'+o(_0x535ee5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x535ee5,'*Remove:*\x20%0','\x22'+_0x39a0ea+'\x22\x20'+o(_0x535ee5,'ELEMENT_MERGE_FIELD'))};});}}class bt extends _0x51aec7{['afterInit'](){const _0x4e06c3=this['editor'],_0xf5a6ae=_0x4e06c3['plugins']['get']('TrackChangesEditing');_0x4e06c3['plugins']['has']('MultiLevelList')&&(_0xf5a6ae['enableDefaultAttributesIntegration']('multiLevelList'),_0xf5a6ae['registerBlockAttribute']('listMarkerStyle'),_0xf5a6ae['descriptionFactory']['registerDescriptionCallback'](_0x578d4c=>this['handleDescriptions'](_0x578d4c)));}['handleDescriptions'](_0x1b34d0){const _0x150018=this['editor']['locale'],{data:_0x106a00}=_0x1b34d0,_0x46af41={'type':'format','content':''};if(_0x106a00&&'listMarkerStyle'==_0x106a00['key']){if(!_0x106a00['oldValue'])return{'type':'format','content':o(_0x150018,'*Set\x20format:*\x20%0',o(_0x150018,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x106a00['newValue']+')'};if(!_0x106a00['newValue']){let _0x37f77a=_0x1b34d0['head'];for(;_0x37f77a;){if(_0x37f77a['data']&&'listType'==_0x37f77a['data']['key']&&_0x37f77a['data']['newValue'])return _0x46af41;_0x37f77a=_0x37f77a['next'];}return{'type':'format','content':o(_0x150018,'*Remove\x20format:*\x20%0',o(_0x150018,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x106a00['oldValue']+')'};}}}}class yt extends _0x51aec7{['afterInit'](){const _0x2bd1a2=this['editor'];if(!_0x2bd1a2['plugins']['has']('PageBreakEditing'))return;_0x2bd1a2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4f798e=_0x2bd1a2['plugins']['get']('TrackChangesEditing'),_0x5a1ac3=_0x2bd1a2['locale'];_0x4f798e['descriptionFactory']['registerElementLabel']('pageBreak',_0xdccdb4=>o(_0x5a1ac3,'ELEMENT_PAGE_BREAK',_0xdccdb4));}}class St extends _0x51aec7{['afterInit'](){const _0x2ab83f=this['editor'];if(!_0x2ab83f['plugins']['has']('Paragraph'))return;const _0x1b52c4=_0x2ab83f['locale'],_0x2f5465=_0x2ab83f['plugins']['get']('TrackChangesEditing');_0x2f5465['descriptionFactory']['registerElementLabel']('paragraph',_0x1aea09=>o(_0x1b52c4,'ELEMENT_PARAGRAPH',_0x1aea09)),_0x2f5465['enableDefaultAttributesIntegration']('paragraph'),_0x2f5465['enableCommand']('insertParagraph'),_0x2ab83f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2ab83f),{'priority':'highest'}),_0x2ab83f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e147f,_0x4094ac,_0x456079)=>{_0x456079['options']['showSuggestionHighlights']&&nr(_0x2ab83f,{'showActiveMarker':!0x1})(_0x4e147f,_0x4094ac,_0x456079);},{'priority':'highest'});const _0x41778c=_0x2f5465['descriptionFactory'];_0x41778c['registerDescriptionCallback'](_0x4dc954=>{if('insertion'!==_0x4dc954['type'])return;const {start:_0x4a2fb1,end:_0x301f7b}=_0x4dc954['getFirstRange']();if(!_0x4a2fb1['isTouching'](_0x301f7b)||!_0x4a2fb1['nodeAfter'])return;const _0x12ef19=_0x2ab83f['model']['schema'],_0x1b4bed=_0x4a2fb1['nodeAfter'];return _0x12ef19['isBlock'](_0x1b4bed)&&!_0x12ef19['isLimit'](_0x1b4bed)&&_0x12ef19['checkChild'](_0x1b4bed,'$text')?{'type':'insertion','content':o(_0x1b52c4,'*Insert:*\x20%0',_0x41778c['getItemLabel'](_0x1b4bed,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18a1c5=this['editor'],_0x4057b3=_0x18a1c5['locale'];_0x18a1c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29633e=>{if('formatBlock'!=_0x29633e['type'])return;const {data:_0x12f345}=_0x29633e;return _0x12f345&&'paragraph'==_0x12f345['commandName']?{'type':'format','content':o(_0x4057b3,'*Change\x20to:*\x20%0',o(_0x4057b3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1355ac,{showActiveMarker:_0x4c4ee3=!0x0}={}){return(_0x313fc8,_0x2b1c2d,_0xee161f)=>{const _0x4f51e3=_0x1355ac['plugins']['get']('TrackChangesEditing'),_0x3401c9=_0x2b1c2d['markerRange']['start'],_0xa8c681=_0x2b1c2d['markerRange']['end'],_0x218bac=_0x1355ac['model']['schema'];if(!_0x3401c9['isTouching'](_0xa8c681)||!_0x3401c9['nodeAfter'])return;const _0x4fa127=_0x3401c9['nodeAfter'];if(_0x218bac['isBlock'](_0x4fa127)&&!_0x218bac['isLimit'](_0x4fa127)&&_0x218bac['checkChild'](_0x4fa127,'$text')){if(!_0xee161f['consumable']['consume'](_0x2b1c2d['markerRange'],_0x313fc8['name']))return;const {id:_0x3be0df,authorId:_0x4a134f}=_0x4f51e3['_splitMarkerName'](_0x2b1c2d['markerName']),_0x38cd99=_0xee161f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3be0df,'data-author-id':_0x4a134f}),_0x1fdbc4=_0xee161f['mapper']['toViewPosition'](_0xa8c681);_0x4c4ee3&&_0x4f51e3['activeMarkers']['includes'](_0x2b1c2d['markerName'])&&_0xee161f['writer']['addClass']('ck-suggestion-marker--active',_0x38cd99),_0xee161f['writer']['insert'](_0x1fdbc4,_0x38cd99),_0xee161f['mapper']['bindElementToMarker'](_0x38cd99,_0x2b1c2d['markerName']);}};}class jt extends _0x51aec7{['afterInit'](){const _0x1d51b6=this['editor'];_0x1d51b6['commands']['get']('replaceSource')&&_0x1d51b6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class It extends _0x51aec7{['afterInit'](){const _0x54c415=this['editor'];if(!_0x54c415['plugins']['has']('RemoveFormatEditing'))return;_0x54c415['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbd329a=this['editor'];_0xbd329a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ec34d=>{if('formatBlock'!=_0x4ec34d['type']&&'formatInline'!=_0x4ec34d['type'])return;const {data:_0x2137e9}=_0x4ec34d;return _0x2137e9&&'removeFormat'==_0x2137e9['commandName']?{'type':'format','content':o(_0xbd329a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x51aec7{['afterInit'](){const _0x2a9e39=this['editor'];if(!_0x2a9e39['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x571b92=_0x2a9e39['plugins']['get']('TrackChangesEditing');_0x571b92['enableCommand']('goToPreviousRestrictedEditingException'),_0x571b92['enableCommand']('goToNextRestrictedEditingException');const _0x586ff4=_0x2a9e39['plugins']['get']('RestrictedEditingModeEditing');_0x586ff4['enableCommand']('trackChanges'),_0x586ff4['enableCommand']('acceptSuggestion'),_0x586ff4['enableCommand']('discardSuggestion'),_0x586ff4['enableCommand']('acceptAllSuggestions'),_0x586ff4['enableCommand']('discardAllSuggestions'),_0x586ff4['enableCommand']('acceptSelectedSuggestions'),_0x586ff4['enableCommand']('discardSelectedSuggestions');}}class _t extends _0x51aec7{['afterInit'](){const _0xca2b4f=this['editor'];if(!_0xca2b4f['plugins']['has']('ShiftEnter'))return;const _0x41a0c7=_0xca2b4f['plugins']['get']('TrackChangesEditing');_0x41a0c7['enableCommand']('shiftEnter'),_0xca2b4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ee(_0xca2b4f),{'priority':'high'}),_0xca2b4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ee(_0xca2b4f),{'priority':'high'}),_0xca2b4f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x77f5d6,_0x2c10b5,_0x54bfe7)=>{_0x54bfe7['options']['showSuggestionHighlights']&&Ee(_0xca2b4f,{'showActiveMarker':!0x1})(_0x77f5d6,_0x2c10b5,_0x54bfe7);}),_0x41a0c7['descriptionFactory']['registerElementLabel']('softBreak',_0x20d209=>o(_0xca2b4f['locale'],'ELEMENT_LINE_BREAK',_0x20d209));}}function Ee(_0x48f48a,{showActiveMarker:_0x29e113=!0x0}={}){return(_0x509e6a,_0x3962e1,_0xf9cbb2)=>{const _0x29487b=_0x48f48a['plugins']['get']('TrackChangesEditing');if(!_0xf9cbb2['consumable']['test'](_0x3962e1['markerRange'],_0x509e6a['name']))return;const _0x289f3e=_0x48f48a['model'];for(const _0x18298d of _0x3962e1['markerRange']['getItems']()){if(!_0x18298d['is']('element','softBreak'))continue;const _0x400032='deletion'==_0x3962e1['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3f895d,authorId:_0x2ff497}=_0x29487b['_splitMarkerName'](_0x3962e1['markerName']),_0x4768ef=_0xf9cbb2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x400032,'data-suggestion':_0x3f895d,'data-author-id':_0x2ff497}),_0x594c50=_0xf9cbb2['mapper']['toViewPosition'](_0x289f3e['createPositionBefore'](_0x18298d));_0x29e113&&_0x29487b['activeMarkers']['includes'](_0x3962e1['markerName'])&&_0xf9cbb2['writer']['addClass']('ck-suggestion-marker--active',_0x4768ef),_0xf9cbb2['writer']['insert'](_0x594c50,_0x4768ef),_0xf9cbb2['mapper']['bindElementToMarker'](_0x4768ef,_0x3962e1['markerName']);}};}class vt extends _0x51aec7{['afterInit'](){const _0x4656a0=this['editor'],_0x25ad44=_0x4656a0['model'],_0x4e25bf=_0x4656a0['locale'];if(!_0x4656a0['plugins']['has']('StandardEditingModeEditing'))return;const _0xfd7931=_0x4656a0['plugins']['get']('TrackChangesEditing'),_0x17265c='restrictedEditingException',_0x19c0e7=_0x4656a0['commands']['get'](_0x17265c);_0xfd7931['enableCommand'](_0x17265c,(_0x5b50c0,_0x34a403={})=>{const _0x2d84e4=_0x25ad44['document']['selection'];if(_0x2d84e4['isCollapsed'])return void _0x5b50c0(_0x34a403);const _0x1d9afb=void 0x0!==_0x34a403['forceValue']?_0x34a403['forceValue']:!_0x19c0e7['value'];_0x25ad44['change'](()=>{const _0x2c1a0f=Array['from'](_0x2d84e4['getRanges']());for(const _0x257ae5 of _0x2c1a0f){const _0x1c6527=_0x1d9afb?[_0x257ae5]:io(_0x17265c,_0x257ae5,_0x25ad44);for(const _0x4d7670 of _0x1c6527)_0xfd7931['markInlineFormat'](_0x4d7670,{'commandName':_0x17265c,'commandParams':[{'forceValue':_0x1d9afb}]});}});}),_0xfd7931['descriptionFactory']['registerDescriptionCallback'](_0x27db76=>{if('formatBlock'!=_0x27db76['type']&&'formatInline'!=_0x27db76['type'])return;const {data:_0x141b36}=_0x27db76;return _0x141b36&&_0x141b36['commandName']==_0x17265c?_0x141b36['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e25bf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4e25bf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Ct extends _0x51aec7{['afterInit'](){const _0x379748=this['editor'];if(!_0x379748['plugins']['has']('Style')||!_0x379748['plugins']['has']('DataSchema'))return;const _0x13c6da=_0x379748['plugins']['get']('TrackChangesEditing'),_0x530bc3=_0x379748['locale'],_0x2d67f0=_0x379748['config']['get']('style')||{},_0x9af606=_0x379748['plugins']['get']('GeneralHtmlSupport'),_0x2a2f6c=_0x379748['plugins']['get']('StyleUtils')['normalizeConfig'](_0x379748['plugins']['get']('DataSchema'),_0x2d67f0['definitions']);_0x13c6da['enableDefaultAttributesIntegration']('style');const _0x9c3c25=new Set();for(const _0x58cf37 of _0x2a2f6c['block']){const _0x510394=_0x9af606['getGhsAttributeNameForElement'](_0x58cf37['element']);_0x9c3c25['add'](_0x510394);}const _0x16b78c=new Set();for(const _0x5a7799 of _0x2a2f6c['inline']){const _0x595788=_0x9af606['getGhsAttributeNameForElement'](_0x5a7799['element']);_0x16b78c['add'](_0x595788);for(const _0x59efc3 of _0x5a7799['ghsAttributes'])_0x16b78c['add'](_0x59efc3);}for(const _0x17d8d4 of _0x9c3c25)_0x13c6da['registerBlockAttribute'](_0x17d8d4),_0x13c6da['descriptionFactory']['registerAttributeLabel'](_0x17d8d4,o(_0x530bc3,'FORMAT_STYLE'));for(const _0x720ba3 of _0x16b78c)_0x13c6da['registerInlineAttribute'](_0x720ba3),_0x13c6da['descriptionFactory']['registerAttributeLabel'](_0x720ba3,o(_0x530bc3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2316b4=this['editor'],_0x11d7c8=_0x2316b4['locale'];_0x2316b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x270668=>{if('formatBlock'!=_0x270668['type']&&'formatInline'!=_0x270668['type'])return;const {data:_0x11b0d7}=_0x270668;return _0x11b0d7&&'style'===_0x11b0d7['commandName']?_0x11b0d7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11d7c8,'*Set\x20format:*\x20%0',_0x11b0d7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x11d7c8,'*Remove\x20format:*\x20%0',_0x11b0d7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class $t extends _0x51aec7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xf6113){super(_0xf6113),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3c9ab4=this['editor'],_0x5f3fa7=_0x3c9ab4['model']['document']['selection'];if(!_0x3c9ab4['plugins']['has']('TableEditing'))return;const _0x3bd2e2=_0x3c9ab4['locale'],_0x47c50a=_0x3c9ab4['plugins']['get']('TrackChangesEditing'),_0x58e8a1=_0x3c9ab4['plugins']['get']('TableUtils');_0x47c50a['descriptionFactory']['registerElementLabel']('table',_0x299a4f=>o(_0x3bd2e2,'ELEMENT_TABLE',_0x299a4f)),this['_setupColumnsRowsFixing'](),_0x47c50a['enableCommand']('insertTable'),_0x47c50a['enableCommand']('selectTableRow'),_0x47c50a['enableCommand']('selectTableColumn');for(const _0x1cd095 of['insertTableRowAbove','insertTableRowBelow']){const _0x4a1109=_0x3c9ab4['commands']['get'](_0x1cd095);_0x47c50a['enableCommand'](_0x1cd095,_0x32453c=>{_0x3c9ab4['model']['change'](_0xc0672c=>{_0x32453c();const _0x21bf2d='above'===_0x4a1109['order'],_0x5ef431=_0x58e8a1['getSelectionAffectedTableCells'](_0x5f3fa7),_0x140365=_0x58e8a1['getRowIndexes'](_0x5ef431),_0x59da29=_0x21bf2d?_0x140365['first']-0x1:_0x140365['last']+0x1,_0x578df4=_0x5ef431[0x0]['findAncestor']('table'),_0x73ff8d=_0x58e8a1['createTableWalker'](_0x578df4,{'startRow':_0x59da29,'endRow':_0x59da29}),_0x319976=Array['from'](_0x73ff8d)['map'](_0x1521cf=>_0xc0672c['createRangeOn'](_0x1521cf['cell']));_0x47c50a['markMultiRangeInsertion'](_0x319976,'tableRow');});});}for(const _0x26bb1c of['insertTableColumnLeft','insertTableColumnRight']){const _0xd257f7=_0x3c9ab4['commands']['get'](_0x26bb1c);_0x47c50a['enableCommand'](_0x26bb1c,_0x25cf26=>{_0x3c9ab4['model']['change'](_0x267467=>{_0x25cf26();const _0x111a36='left'===_0xd257f7['order'],_0x243560=_0x58e8a1['getSelectionAffectedTableCells'](_0x5f3fa7),_0x24600e=_0x58e8a1['getColumnIndexes'](_0x243560),_0x3101bb=_0x111a36?_0x24600e['first']-0x1:_0x24600e['last']+0x1,_0xaa3960=_0x243560[0x0]['findAncestor']('table'),_0x74509b=_0x58e8a1['createTableWalker'](_0xaa3960,{'startRow':0x0,'column':_0x3101bb,'includeAllSlots':!0x1}),_0x5e21c4=Array['from'](_0x74509b)['map'](_0x4be1d9=>_0x267467['createRangeOn'](_0x4be1d9['cell']));_0x47c50a['markMultiRangeInsertion'](_0x5e21c4,'tableColumn');});});}for(const _0x216b44 of['removeTableRow','removeTableColumn']){const _0x3ee598=_0x216b44['substr'](0xb),_0x4c2694=_0x3ee598['toLowerCase'](),_0x843570=_0x4c2694['substr'](0x0,0x3)+'span',_0x19bd9d='table'+_0x3ee598,_0x5e2538='min'+_0x3ee598,_0x58b870='max'+_0x3ee598;_0x47c50a['enableCommand'](_0x216b44,()=>{_0x3c9ab4['model']['change'](_0x36e38c=>{const _0x754d40=_0x58e8a1['getSelectionAffectedTableCells'](_0x5f3fa7),_0x18d60c=_0x754d40[0x0]['findAncestor']('table');let _0x5132ba;if('removeTableRow'==_0x216b44){const _0x1809e4=_0x58e8a1['getRowIndexes'](_0x754d40);_0x5132ba={'startRow':_0x1809e4['first'],'endRow':_0x1809e4['last'],'includeAllSlots':!0x0};}else{const _0x42313f=_0x58e8a1['getColumnIndexes'](_0x754d40);_0x5132ba={'startColumn':_0x42313f['first'],'endColumn':_0x42313f['last'],'includeAllSlots':!0x0};}const _0x2af88a=_0x58e8a1['createTableWalker'](_0x18d60c,_0x5132ba),_0x45b501=Array['from'](_0x2af88a)['map'](({cell:_0x1ec9c4})=>_0x1ec9c4),_0x280f2a=We(_0x45b501['filter'](_0x41a66c=>_0x41a66c['hasAttribute'](_0x843570))),_0xbb1a04=We(_0x45b501['filter'](_0x3b5cfe=>!_0x3b5cfe['hasAttribute'](_0x843570)))['map'](_0x63ad85=>_0x36e38c['createRangeOn'](_0x63ad85)),_0x250489=_0x47c50a['markMultiRangeDeletion'](_0xbb1a04,_0x19bd9d);if(_0x250489&&('tableRow'==_0x250489['subType']||'tableColumn'==_0x250489['subType'])){const _0x91fd22=this['_getSuggestionCoords'](_0x250489);for(const _0x20de56 of _0x280f2a){const _0x18a0c1=_0x36e38c['createRangeOn'](_0x20de56),_0x9117a2=_0x58e8a1['getCellLocation'](_0x20de56),_0x197d9e=_0x20de56['getAttribute'](_0x843570)-0x1,_0x3c16a7=_0x91fd22[_0x5e2538],_0x54630e=_0x91fd22[_0x58b870];_0x3c16a7<=_0x9117a2[_0x4c2694]&&_0x9117a2[_0x4c2694]+_0x197d9e<=_0x54630e&&_0x250489['addRange'](_0x18a0c1);}}});});}function _0x444a77(_0x1d954d){const _0x1f43ae=Array['from'](_0x5f3fa7['getRanges']())['map'](_0x4a3400=>_0x32ac6b['fromRange'](_0x4a3400));_0x3c9ab4['model']['change'](_0x11d2ec=>{const _0x28309b=_0x11d2ec['batch'];_0x1d954d=_0x1d954d['filter'](_0xeee403=>'$graveyard'!=_0xeee403['root']['rootName']),_0x11d2ec['setSelection'](_0x1d954d),_0x3c9ab4['commands']['get']('removeTableRow')['refresh'](),_0x3c9ab4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3c9ab4['model']['enqueueChange'](()=>{_0x3c9ab4['model']['enqueueChange'](_0x28309b,_0x2d516b=>{const _0x11b69e=_0x1f43ae['filter'](_0x1fe0b4=>'$graveyard'!=_0x1fe0b4['root']['rootName']);_0x11b69e['length']>0x0&&_0x2d516b['setSelection'](_0x11b69e);for(const _0x34f7a5 of _0x1f43ae)_0x34f7a5['detach']();});});});}function _0x5ecec8(_0x11cffa){_0x3c9ab4['model']['change'](_0x3b3c95=>{const _0x46bf78=Array['from'](_0x5f3fa7['getRanges']())['map'](_0x2ad1e0=>_0x32ac6b['fromRange'](_0x2ad1e0)),_0xa2a5dc=[];for(const _0x131016 of _0x11cffa)for(const _0x5802d7 of _0x131016['getItems']({'shallow':!0x0}))_0xa2a5dc['push'](_0x5802d7);for(const _0x58cbf9 of _0xa2a5dc)'$graveyard'!=_0x58cbf9['root']['rootName']&&(_0x3b3c95['setSelection'](_0x3b3c95['createPositionAt'](_0x58cbf9,0x0)),_0x3c9ab4['commands']['get']('removeTableColumn')['refresh'](),_0x3c9ab4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2f31df=_0x46bf78['filter'](_0x55b1a0=>'$graveyard'!=_0x55b1a0['root']['rootName']);_0x2f31df['length']>0x0&&_0x3b3c95['setSelection'](_0x2f31df);for(const _0x32bd98 of _0x46bf78)_0x32bd98['detach']();});}function _0x54b740(_0x5e134f,_0x5c8179){return _0x5c8179['every'](_0x340bfc=>_0x5e134f['some'](_0x6bbd7b=>_0x6bbd7b['end']['isEqual'](_0x340bfc['start'])||_0x340bfc['end']['isEqual'](_0x6bbd7b['start'])));}function _0x11d65a(_0x2653f3,_0xf0d3cd){return!_0x2653f3['some'](_0x2c5702=>_0xf0d3cd['some'](_0x49a4d4=>_0x2c5702['isIntersecting'](_0x49a4d4)))&&_0x2653f3['some'](_0x247793=>_0xf0d3cd['some'](_0x31be72=>_0x247793['end']['isTouching'](_0x31be72['start'])));}_0x3c9ab4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x967314,_0x483db4,_0x32affe)=>{if(!_0x32affe['options']['showSuggestionHighlights'])return;const _0x3d054c=_0x483db4['item'];if(!_0x3d054c||!_0x3d054c['is']('element','tableCell'))return;const _0x2a40df=_0x32affe['mapper']['toViewElement'](_0x3d054c);if(_0x2a40df){const {id:_0x38f45a,authorId:_0x4b02f1}=_0x47c50a['_splitMarkerName'](_0x483db4['markerName']);_0xba8377(_0x2a40df,_0x32affe['writer'],(_0x236b4f,_0x52ebe3,_0x702e5e)=>{_0x702e5e['addClass'](_0x5db985(_0x52ebe3['classes']),_0x236b4f),_0x702e5e['setAttribute']('data-suggestion-id',_0x38f45a,_0x236b4f),_0x702e5e['setAttribute']('data-author-id',_0x4b02f1,_0x236b4f);},(_0x36066d,_0x15174d,_0x3816b5)=>{_0x3816b5['removeClass'](_0x5db985(_0x15174d['classes']),_0x36066d),_0x3816b5['removeAttribute']('data-suggestion-id',_0x36066d),_0x3816b5['removeAttribute']('data-author-id',_0x36066d);});}},{'priority':'highest'}),_0x47c50a['descriptionFactory']['registerDescriptionCallback'](_0x5ce1a9=>{if('insertion'!=_0x5ce1a9['type']&&'deletion'!=_0x5ce1a9['type'])return;const _0x2c852d=_0x5ce1a9['getContainedElement']();if(null!=_0x2c852d&&_0x2c852d['is']('element','table')){if('insertion'==_0x5ce1a9['type']){const _0x20870e=_0x5ce1a9['getItems']()['filter'](_0x3b705e=>_0x3b705e['is']('$textProxy'))['map'](_0x244542=>_0x244542['data']);if(_0x20870e['length'])return{'type':'insertion','content':o(_0x3bd2e2,'*Insert:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x20870e['join']('\x20')+'\x22'))};}if('deletion'==_0x5ce1a9['type']){const _0x5acf65=_0x5ce1a9['getItems']()['filter'](_0x3ae84d=>_0x3ae84d['is']('$textProxy'))['map'](_0x1108b1=>_0x1108b1['data']);if(_0x5acf65['length'])return{'type':'deletion','content':o(_0x3bd2e2,'*Remove:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5acf65['join']('\x20')+'\x22'))};}}}),_0x47c50a['descriptionFactory']['registerDescriptionCallback'](_0x467dee=>{if('tableRow'==_0x467dee['subType']){const _0x5dc448=_0x467dee['getItems']()['filter'](_0x10f1b4=>_0x10f1b4['is']('$textProxy'))['map'](_0x4a4dd9=>_0x4a4dd9['data']),_0x4987c8=this['_getSuggestionCoords'](_0x467dee),_0x49c2b1=_0x4987c8['maxRow']-_0x4987c8['minRow']+0x1;if('insertion'==_0x467dee['type'])return _0x5dc448['length']?{'type':'insertion','content':o(_0x3bd2e2,'*Insert:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49c2b1,'\x22'+_0x5dc448['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3bd2e2,'*Insert:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_ROW',_0x49c2b1))};if('deletion'==_0x467dee['type'])return _0x5dc448['length']?{'type':'deletion','content':o(_0x3bd2e2,'*Remove:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49c2b1,'\x22'+_0x5dc448['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3bd2e2,'*Remove:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_ROW',_0x49c2b1))};}if('tableColumn'==_0x467dee['subType']){const _0x1f6b26=_0x467dee['getItems']()['filter'](_0x50c8c6=>_0x50c8c6['is']('$textProxy'))['map'](_0x4b5419=>_0x4b5419['data']),_0x5d92e6=this['_getSuggestionCoords'](_0x467dee),_0x3f140e=_0x5d92e6['maxColumn']-_0x5d92e6['minColumn']+0x1;if('insertion'==_0x467dee['type'])return _0x1f6b26['length']?{'type':'insertion','content':o(_0x3bd2e2,'*Insert:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3f140e,'\x22'+_0x1f6b26['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3bd2e2,'*Insert:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_COLUMN',_0x3f140e))};if('deletion'==_0x467dee['type'])return _0x1f6b26['length']?{'type':'deletion','content':o(_0x3bd2e2,'*Remove:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3f140e,'\x22'+_0x1f6b26['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3bd2e2,'*Remove:*\x20%0',o(_0x3bd2e2,'ELEMENT_TABLE_COLUMN',_0x3f140e))};}}),_0x47c50a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x444a77),_0x47c50a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x444a77),_0x47c50a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5ecec8),_0x47c50a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5ecec8),_0x47c50a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x54b740),_0x47c50a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x54b740),_0x47c50a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x11d65a),_0x47c50a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x11d65a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x31d367=this['editor'],_0x2da9f8=_0x31d367['model']['document']['selection'];return(_0x3a3ebd,_0x4d040d)=>{_0x31d367['model']['change'](_0x433302=>{const {commandName:_0x525e0a,commandParams:_0x47cc78}=_0x4d040d;let _0x4cf67f=_0x3a3ebd[0x0]['end']['nodeBefore'];_0x47cc78&&_0x47cc78[0x0]&&!0x1===_0x47cc78[0x0]['forceValue']&&(_0x4cf67f=_0x3a3ebd[0x0]['start']['nodeAfter']);const _0x1f5627=_0x433302['createRangeIn'](_0x4cf67f);if('$graveyard'==_0x1f5627['root']['rootName'])return;const _0x5c81c1=Array['from'](_0x2da9f8['getRanges']())['map'](_0x689a48=>_0x32ac6b['fromRange'](_0x689a48));_0x433302['setSelection'](_0x1f5627),_0x31d367['commands']['get'](_0x525e0a)['refresh'](),_0x47cc78['push']({'forceDefaultExecution':!0x0}),_0x31d367['execute'](_0x525e0a,..._0x47cc78);const _0xaa6a4b=_0x5c81c1['filter'](_0x58cccc=>'$graveyard'!=_0x58cccc['root']['rootName']);_0xaa6a4b['length']>0x0&&_0x433302['setSelection'](_0xaa6a4b);for(const _0x3362d2 of _0x5c81c1)_0x3362d2['detach']();});};}['_getCoordsForCells'](_0x3a9f10){const _0x32416a=this['editor']['plugins']['get']('TableUtils');let _0x1eead7=Number['MAX_SAFE_INTEGER'],_0x3b7659=Number['MIN_SAFE_INTEGER'],_0x1289e4=Number['MAX_SAFE_INTEGER'],_0x213e70=Number['MIN_SAFE_INTEGER'];for(const _0xa9c6ad of _0x3a9f10){if('$graveyard'==_0xa9c6ad['root']['rootName'])continue;const {row:_0x23e36b,column:_0x250ac6}=_0x32416a['getCellLocation'](_0xa9c6ad),_0x3393da=_0xa9c6ad['hasAttribute']('rowspan')?_0xa9c6ad['getAttribute']('rowspan')-0x1:0x0,_0x2fc797=_0xa9c6ad['hasAttribute']('colspan')?_0xa9c6ad['getAttribute']('colspan')-0x1:0x0;_0x1eead7=_0x23e36b<_0x1eead7?_0x23e36b:_0x1eead7,_0x3b7659=_0x23e36b+_0x3393da>_0x3b7659?_0x23e36b+_0x3393da:_0x3b7659,_0x1289e4=_0x250ac6<_0x1289e4?_0x250ac6:_0x1289e4,_0x213e70=_0x250ac6+_0x2fc797>_0x213e70?_0x250ac6+_0x2fc797:_0x213e70;}return{'minRow':_0x1eead7,'maxRow':_0x3b7659,'minColumn':_0x1289e4,'maxColumn':_0x213e70};}['_setupColumnsRowsFixing'](){const _0x5f3c9e=this['editor'],_0x1d2049=_0x5f3c9e['plugins']['get']('TrackChangesEditing'),_0xe65f67=_0x5f3c9e['plugins']['get']('TableUtils');_0x5f3c9e['model']['document']['on']('change:data',()=>{const _0x1f9a51=Array['from'](_0x5f3c9e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x211dd8,data:_0x22fa9d}of _0x1f9a51){const {group:_0x8d2807,id:_0x1f395e,subType:_0x4be579}=_0x1d2049['_splitMarkerName'](_0x211dd8);if('suggestion'!=_0x8d2807)continue;if(null!=_0x22fa9d['oldRange'])continue;const _0x65d957=_0x1d2049['getSuggestion'](_0x1f395e);this['_tablePostFixingSubtypes']['includes'](_0x4be579)&&this['_tableSuggestions']['add'](_0x65d957);}},{'priority':'low'});const _0x5c3761=(_0x4a948f,_0x2d5a1a)=>{let _0x145042=!0x1;const _0x7174d9=_0x2d5a1a['createRangeOn'](_0x4a948f),_0x4d9f04=_0x4a948f['findAncestor']('table'),_0x38babd=_0xe65f67['getCellLocation'](_0x4a948f);for(const _0x1e14ef of this['_tableSuggestions']){const _0x244d79=_0x1e14ef['subType'],_0x2eedf8=_0x244d79['startsWith']('tablePaste'),_0x6c499a=_0x244d79['substr'](_0x2eedf8?0xa:0x5),_0x3e2ad5=_0x6c499a['toLowerCase'](),_0x303aea=_0x3e2ad5['substr'](0x0,0x3)+'span',_0x44aa78='min'+_0x6c499a,_0x2a411d='max'+_0x6c499a;if(!_0x1e14ef['isInContent'])continue;if(_0x4d9f04!=_0x1e14ef['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1e14ef['isIntersectingWithRange'](_0x7174d9))continue;const _0x653971=_0x4a948f['hasAttribute'](_0x303aea)?_0x4a948f['getAttribute'](_0x303aea)-0x1:0x0,_0x173fe0=this['_getSuggestionCoords'](_0x1e14ef),_0x53f29a=_0x173fe0[_0x44aa78],_0x5bd056=_0x173fe0[_0x2a411d];_0x53f29a<=_0x38babd[_0x3e2ad5]&&_0x38babd[_0x3e2ad5]+_0x653971<=_0x5bd056&&(_0x1e14ef['addRange'](_0x7174d9),_0x145042=!0x0);}return _0x145042;};_0x5f3c9e['model']['document']['registerPostFixer'](_0x3f48a3=>{let _0x120908=!0x1;for(const _0x483b71 of _0x5f3c9e['model']['document']['differ']['getChanges']())if('insert'==_0x483b71['type']){if('tableRow'==_0x483b71['name']){for(const _0x19157b of _0x483b71['position']['nodeAfter']['getChildren']())_0x120908=_0x120908||_0x5c3761(_0x19157b,_0x3f48a3);}else'tableCell'==_0x483b71['name']&&(_0x120908=_0x120908||_0x5c3761(_0x483b71['position']['nodeAfter'],_0x3f48a3));}return _0x120908;});}['_getSuggestionCoords'](_0x135253){return this['_getCoordsForCells'](_0x135253['getRanges']()['map'](_0x3b8626=>_0x3b8626['start']['nodeAfter']));}}function We(_0xec41ab){return Array['from'](new Set(_0xec41ab)['values']());}class Nt extends _0x51aec7{static get['requires'](){return[$t];}['afterInit'](){const _0x4f6aea=this['editor'],_0x7b9bd6=_0x4f6aea['model']['document']['selection'],_0x5d38fd=_0x4f6aea['locale'];if(!_0x4f6aea['plugins']['has']('TableEditing'))return;const _0x385da2=_0x4f6aea['plugins']['get']('TrackChangesEditing'),_0xadc52d=_0x4f6aea['plugins']['get']('TableUtils'),_0x5213a5=_0x4f6aea['plugins']['get']($t);_0x5213a5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x385da2['enableCommand']('mergeTableCells',()=>{const _0x511f93=_0xadc52d['getSelectionAffectedTableCells'](_0x4f6aea['model']['document']['selection']);_0x4f6aea['model']['change'](()=>{_0x385da2['markMultiRangeBlockFormat'](_0x511f93,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f6aea['commands']['get']('mergeTableCells')['on']('execute',(_0x130b60,_0x1fe9d9)=>{_0x4f6aea['commands']['get']('trackChanges')['value']&&(_0x1fe9d9['length']>0x0&&_0x1fe9d9[_0x1fe9d9['length']-0x1]&&_0x1fe9d9[_0x1fe9d9['length']-0x1]['forceDefaultExecution']||_0x385da2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x130b60['stop']());},{'priority':'highest'});for(const _0x52988f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xc5e641=_0x4f6aea['commands']['get'](_0x52988f);_0x385da2['enableCommand'](_0x52988f,()=>{const _0x551ce1=_0x4f6aea['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x81ec80=>_0x81ec80['is']('element','tableCell')),_0x9b5713=_0xc5e641['value'];_0x4f6aea['model']['change'](()=>{_0x385da2['markMultiRangeBlockFormat']([_0x551ce1,_0x9b5713],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x9f102a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x9d82dd=_0x4f6aea['commands']['get'](_0x9f102a);_0x385da2['enableCommand'](_0x9f102a,()=>{const _0x6c71c7=_0xadc52d['getSelectionAffectedTableCells'](_0x4f6aea['model']['document']['selection'])[0x0],_0xcf2c76=_0x6c71c7['findAncestor']('table'),{column:_0x169df5,row:_0x407cc2}=_0xadc52d['getCellLocation'](_0x6c71c7);let _0x339292=[];if('horizontally'==_0x9d82dd['direction']){const _0x25e93f=_0xadc52d['createTableWalker'](_0xcf2c76,{'startRow':_0x407cc2,'endRow':_0x407cc2,'includeAllSlots':!0x0});_0x339292=Array['from'](_0x25e93f)['map'](_0x463a9a=>_0x463a9a['cell']);}else{const _0x3a38f4=_0xadc52d['createTableWalker'](_0xcf2c76,{'column':_0x169df5,'includeAllSlots':!0x0});_0x339292=Array['from'](_0x3a38f4)['map'](_0x5444ec=>_0x5444ec['cell']);}_0x4f6aea['model']['change'](_0x4d6490=>{_0x385da2['markBlockFormat'](_0x4d6490['createRangeOn'](_0x6c71c7),{'commandName':_0x9f102a,'commandParams':[]},_0x339292,_0x9f102a);});});}_0x385da2['descriptionFactory']['registerDescriptionCallback'](_0x59fc92=>{if('formatBlock'!=_0x59fc92['type']&&'formatInline'!=_0x59fc92['type'])return;const {data:_0x1c4fd1}=_0x59fc92;return _0x1c4fd1&&'mergeTableCells'==_0x1c4fd1['commandName']?{'type':'format','content':o(_0x5d38fd,'*Merge\x20cells*')}:void 0x0;}),_0x385da2['descriptionFactory']['registerDescriptionCallback'](_0x57be29=>{if('formatBlock'!=_0x57be29['type']&&'formatInline'!=_0x57be29['type'])return;const {data:_0x490229}=_0x57be29;return _0x490229?'splitTableCellVertically'==_0x490229['commandName']?{'type':'format','content':o(_0x5d38fd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x490229['commandName']?{'type':'format','content':o(_0x5d38fd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5516dc=_0x5213a5['_acceptFormatSuggestionCallbackFactory']();for(const _0x95dbf5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x385da2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x95dbf5,'accept',_0x5516dc);for(const _0x15a999 of['splitTableCellVertically','splitTableCellHorizontally'])_0x385da2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15a999,'accept',_0x5516dc);_0x385da2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x224d13=>{_0x4f6aea['model']['change'](_0x4f8e16=>{const _0x34c0fc=Array['from'](_0x7b9bd6['getRanges']())['map'](_0x3220e0=>_0x32ac6b['fromRange'](_0x3220e0));_0x4f8e16['setSelection'](_0x224d13),_0x4f6aea['commands']['get']('mergeTableCells')['refresh'](),_0x4f6aea['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4e7b47=_0x34c0fc['filter'](_0x4d8ded=>'$graveyard'!=_0x4d8ded['root']['rootName']);_0x4e7b47['length']>0x0&&_0x4f8e16['setSelection'](_0x4e7b47);for(const _0x145cd7 of _0x34c0fc)_0x145cd7['detach']();});});for(const _0x1a2e34 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xa98a6f=_0x4f6aea['commands']['get'](_0x1a2e34);_0xa98a6f['on']('set:isEnabled',(_0x1d1525,_0x1ca14d,_0x1e4794)=>{if(_0x1e4794){const _0x45cec0=_0x4f6aea['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x21abe3=>_0x21abe3['is']('element','tableCell'));this['_areMergableCells'](_0xa98a6f['value'],_0x45cec0)||(_0x1d1525['return']=!0x1,_0x1d1525['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e812f=this['editor']['commands']['get']('mergeTableCells'),_0x149be4=this['editor']['plugins']['get']('TableUtils');if(!_0x4e812f['isEnabled'])return!0x1;const _0x23f2a6=_0x149be4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x25b586 of _0x23f2a6)for(const _0x2ae058 of _0x23f2a6)if(_0x25b586!=_0x2ae058&&!this['_areMergableCells'](_0x25b586,_0x2ae058))return!0x1;return!0x0;}['_areMergableCells'](_0x397d1a,_0x2e8a4b){const _0x4d11b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bbd9e=this['editor']['model']['createRangeOn'](_0x397d1a),_0x16af85=this['editor']['model']['createRangeOn'](_0x2e8a4b),_0x378a9a=new Set(),_0x5aa320=new Set();for(const _0xf0fe31 of _0x4d11b5['getSuggestions']())if(('insertion'==_0xf0fe31['type']||'deletion'==_0xf0fe31['type']||'mergeTableCells'==_0xf0fe31['subType'])&&_0xf0fe31['isInContent']){for(const _0x2370ba of _0xf0fe31['getRanges']())_0x2370ba['containsRange'](_0x1bbd9e,!0x0)&&_0x378a9a['add'](_0xf0fe31['type']+':'+_0xf0fe31['author']['id']),_0x2370ba['containsRange'](_0x16af85,!0x0)&&_0x5aa320['add'](_0xf0fe31['type']+':'+_0xf0fe31['author']['id']);}if(_0x378a9a['size']!=_0x5aa320['size'])return!0x1;for(const _0x1f0c36 of _0x378a9a)if(!_0x5aa320['has'](_0x1f0c36))return!0x1;return!0x0;}}class Dt extends _0x51aec7{static get['requires'](){return[$t];}['afterInit'](){const _0x4e5664=this['editor'];if(!_0x4e5664['plugins']['has']('TableEditing'))return;const _0x2794b4=_0x4e5664['locale'],_0x220c94=_0x4e5664['plugins']['get']('TrackChangesEditing');_0x220c94['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x220c94['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x220c94['registerBlockAttribute']('headingRows'),_0x220c94['registerBlockAttribute']('headingColumns'),_0x220c94['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2794b4,'FORMAT_HEADER_ROW')),_0x220c94['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2794b4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x253262=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21ed36=this['editor']['plugins']['get']('TableUtils'),_0xc38fa5=this['editor']['plugins']['get']($t)['_acceptFormatSuggestionCallbackFactory']();function _0x4eef64({showActiveMarker:_0x166ea9=!0x0,setDataAttribute:_0x1411ff=!0x0}={}){return(_0xfd4e62,_0x39062c,_0x22adf4)=>{const {type:_0x589fe6,id:_0x27fa33}=_0x253262['_splitMarkerName'](_0x39062c['markerName']);if(!_0x253262['hasSuggestion'](_0x27fa33))return;const _0x503966=_0x253262['getSuggestion'](_0x27fa33),_0x1a0507=_0x503966['data'];if('formatBlock'!=_0x503966['type']||!_0x1a0507||'setTableColumnHeader'!=_0x1a0507['commandName'])return;if(_0x39062c['item'])return void _0xfd4e62['stop']();if(!_0x22adf4['consumable']['consume'](_0x39062c['markerRange'],_0xfd4e62['name']))return;const _0x35666a=_0x39062c['markerRange']['start']['nodeAfter'],_0x10b690=_0x39062c['markerRange']['end']['nodeBefore'],_0x3a7551=_0x35666a['parent']['parent'],{column:_0x55a4d1}=_0x21ed36['getCellLocation'](_0x35666a),{column:_0x3c3163}=_0x21ed36['getCellLocation'](_0x10b690);for(let _0xe262cd=_0x55a4d1;_0xe262cd<=_0x3c3163;_0xe262cd++){const _0x4424e9=_0x21ed36['createTableWalker'](_0x3a7551,{'column':_0xe262cd,'includeAllSlots':!0x1});for(const _0x34e9b2 of _0x4424e9){const _0x18d7aa=_0x34e9b2['cell'],_0x4330ba=_0x22adf4['mapper']['toViewElement'](_0x18d7aa);_0x22adf4['writer']['addClass']('ck-suggestion-marker-'+_0x589fe6,_0x4330ba),_0x1411ff&&_0x22adf4['writer']['setAttribute']('data-suggestion',_0x27fa33,_0x4330ba),_0x22adf4['mapper']['bindElementToMarker'](_0x4330ba,_0x39062c['markerName']),_0x166ea9&&(_0x253262['activeMarkers']['includes'](_0x39062c['markerName'])?_0x22adf4['writer']['addClass']('ck-suggestion-marker--active',_0x4330ba):_0x22adf4['writer']['removeClass']('ck-suggestion-marker--active',_0x4330ba));}}};}_0x253262['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc38fa5),_0x253262['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc38fa5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4eef64(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1df1e2,_0x50080d,_0x414bbc)=>{_0x414bbc['options']['showSuggestionHighlights']&&_0x4eef64({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1df1e2,_0x50080d,_0x414bbc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x391ed8,_0x583b6a,_0x32c6d2)=>{const {type:_0x38fd1d,id:_0x11c54e}=_0x253262['_splitMarkerName'](_0x583b6a['markerName']);if(!_0x253262['hasSuggestion'](_0x11c54e))return;const _0x25ddc9=_0x253262['getSuggestion'](_0x11c54e),_0x4e0201=_0x25ddc9['data'];if('formatBlock'!=_0x25ddc9['type']||!_0x4e0201||'setTableColumnHeader'!=_0x4e0201['commandName'])return;const _0x5be693=_0x32c6d2['mapper']['markerNameToElements'](_0x583b6a['markerName']);if(_0x5be693){for(const _0x1c33a0 of _0x5be693)_0x32c6d2['writer']['removeClass']('ck-suggestion-marker-'+_0x38fd1d,_0x1c33a0),_0x32c6d2['writer']['removeClass']('ck-suggestion-marker--active',_0x1c33a0),_0x32c6d2['writer']['removeAttribute']('data-suggestion',_0x1c33a0),_0x32c6d2['mapper']['unbindElementFromMarkerName'](_0x1c33a0,_0x583b6a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b6c1e=this['editor'],_0x2c69a0=_0x4b6c1e['locale'];function _0x49dd84(_0x273916){return{'type':'format','content':o(_0x2c69a0,'*Format:*\x20%0',_0x273916)};}_0x4b6c1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x317387=>{if('formatBlock'!=_0x317387['type'])return;const {data:_0x5027e2}=_0x317387;if(_0x5027e2){if('setTableRowHeader'==_0x5027e2['commandName']){const _0x2b0a93=_0x5027e2['commandParams'][0x0]['forceValue'];return _0x49dd84(o(_0x2c69a0,_0x2b0a93?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5027e2['commandName']){const _0x519788=_0x5027e2['commandParams'][0x0]['forceValue'];return _0x49dd84(o(_0x2c69a0,_0x519788?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Mt extends _0x51aec7{['afterInit'](){const _0x3394df=this['editor'],_0x1f6a5a=_0x3394df['locale'],_0xed053d=_0x3394df['plugins']['get']('TrackChangesEditing');function _0x599509(_0xae7a68){return{'type':'format','content':''+o(_0x1f6a5a,'*Set\x20table\x20type:*\x20%0',_0xae7a68)};}_0x3394df['plugins']['has']('TableLayout')&&(_0xed053d['enableCommand']('insertTableLayout'),_0xed053d['enableDefaultAttributesIntegration']('tableType'),_0xed053d['registerBlockAttribute']('tableType'),_0xed053d['descriptionFactory']['registerElementLabel'](_0x140bb6=>_0x140bb6['is']('element','table')&&'layout'===_0x140bb6['getAttribute']('tableType'),_0x57f4f6=>o(_0x1f6a5a,'ELEMENT_LAYOUT_TABLE',_0x57f4f6)),_0xed053d['descriptionFactory']['registerDescriptionCallback'](_0x2d6ba3=>{const {data:_0x376fc5}=_0x2d6ba3;if(_0x376fc5&&'tableType'==_0x376fc5['key'])switch(_0x376fc5['newValue']){case'layout':return _0x599509(o(_0x1f6a5a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x599509(o(_0x1f6a5a,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Oe['map'](_0x540174=>[_0x540174,null]));class Bt extends _0x51aec7{static get['requires'](){return[$t];}['afterInit'](){const _0x46075c=this['editor'];if(!_0x46075c['plugins']['has']('TableClipboard'))return;const _0x49f7b7=_0x46075c['plugins']['get']('TrackChangesEditing'),_0x19ff7c=_0x46075c['plugins']['get']('TableUtils'),_0xb6cfec=_0x46075c['plugins']['get']($t),_0x7ac16f=_0x46075c['plugins']['get']('TableClipboard'),_0x16f3fb=_0x46075c['plugins']['get']('TableSelection'),_0x3b56a6=_0x46075c['plugins']['get'](_0x2c2069);_0xb6cfec['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x46075c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x46075c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x446026=null,_0x2f796a=!0x1;_0x3b56a6['on']('contentInsertion',(_0x4ad330,_0x4a9e8f)=>{_0x2f796a='paste'===_0x4a9e8f['method'];}),_0x46075c['model']['on']('insertContent',(_0x57e6cb,_0x32aaba)=>{if(!_0x2f796a&&null===_0x16f3fb['getSelectedTableCells']())return;const [_0x148953,_0x59d9e5]=_0x32aaba,_0xb94e91=_0x32aaba[_0x32aaba['length']-0x1];_0xb94e91&&_0xb94e91['forceDefaultExecution']||_0x49f7b7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xc37ad1,_0x5d8d88,_0x951121,_0x36976a,_0xa129c5){if(_0x5d8d88&&!_0x5d8d88['is']('documentSelection'))return!0x1;const _0x3f963b=_0xa129c5['getTableIfOnlyTableInContent'](_0xc37ad1,_0x951121);if(!_0x3f963b||!He(_0x3f963b,void 0x0,_0x36976a))return!0x1;const _0x51791d=_0x36976a['getSelectionAffectedTableCells'](_0x951121['document']['selection']);if(!_0x51791d['length'])return!0x1;const _0x5cd31b=_0x51791d[0x0]['findAncestor']('table'),_0x452705=_0x36976a['getRowIndexes'](_0x51791d),_0x33c076=_0x36976a['getColumnIndexes'](_0x51791d),_0xf979d4={'startRow':_0x452705['first'],'endRow':_0x452705['last'],'startColumn':_0x33c076['first'],'endColumn':_0x33c076['last']};return 0x1==_0x51791d['length']&&(_0xf979d4['endRow']+=_0x36976a['getRows'](_0x3f963b)-0x1,_0xf979d4['endColumn']+=_0x36976a['getColumns'](_0x3f963b)-0x1),He(_0x5cd31b,_0xf979d4,_0x36976a);}(_0x148953,_0x59d9e5,_0x46075c['model'],_0x19ff7c,_0x7ac16f)&&(_0x57e6cb['stop'](),_0x446026={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x46075c['model']['change'](()=>{_0x46075c['model']['insertContent'](_0x32aaba[0x0],_0x32aaba[0x1],_0x32aaba[0x2],{'forceDefaultExecution':!0x0});const _0x364456=_0x475984(),{rowInsertionRanges:_0x38c04e,columnInsertionRanges:_0x171064,insertionRanges:_0x15c753,deletionRanges:_0x4b4182,cells:_0x24208d}=_0x446026;_0x38c04e['length']&&_0x49f7b7['markMultiRangeInsertion'](_0x38c04e,'tablePasteRow',{'tablePasteChainId':_0x364456}),_0x171064['length']&&_0x49f7b7['markMultiRangeInsertion'](_0x171064,'tablePasteColumn',{'tablePasteChainId':_0x364456}),_0x15c753['length']&&(_0x49f7b7['markMultiRangeInsertion'](_0x15c753,'tablePaste',{'tablePasteChainId':_0x364456,'skipNestingCheck':!0x0}),_0x15c753['forEach'](_0x5040bf=>_0x5040bf['detach']?.())),_0x4b4182['length']&&(_0x49f7b7['markMultiRangeDeletion'](_0x4b4182,'tablePaste',{'tablePasteChainId':_0x364456,'skipNestingCheck':!0x0}),_0x4b4182['forEach'](_0xb7a051=>_0xb7a051['detach']?.()));const _0x5e47df=_0x49f7b7['markMultiRangeBlockFormat'](_0x24208d['map'](({element:_0x1a10f4})=>_0x1a10f4),{'formatGroupId':_0x475984()},[],'tablePasteCell',{'tablePasteChainId':_0x364456});if(_0x5e47df){const _0x3c2378=_0x5e47df['getMarkers'](),_0x76670=[];for(const {element:_0x6bca70,attributes:_0x509ae1}of _0x24208d){if(!_0x509ae1)continue;const _0x252102=_0x46075c['model']['createRangeOn'](_0x6bca70),_0x17049c=_0x3c2378['find'](_0x3532c8=>_0x3532c8['getRange']()['isEqual'](_0x252102));_0x17049c&&_0x76670['push']([_0x17049c['name'],_0x509ae1]);}_0x76670['length']&&_0x5e47df['setAttribute']('markerAttributes',Object['fromEntries'](_0x76670));}_0x446026=null;}));},{'priority':_0x360d7a['high']+0xa}),_0x3b56a6['on']('contentInsertion',()=>{_0x2f796a=!0x1;},{'priority':'lowest'}),_0x46075c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3af58e,_0x49719c)=>{const [_0x5f2f26,_0x17646d,,_0x4a23ec]=_0x49719c;if(!_0x446026)return;_0x3af58e['stop']();const _0xe8080a=_0x5f2f26['cell'],_0x29b7e1=_0x17646d,_0x1e42f9=De(_0xe8080a),_0x516690=De(_0x29b7e1);_0x3af58e['return']=_0xe8080a;let _0x2e7885=null,_0x1e85bb=null;if(_0x516690||_0x1e42f9){if(_0x1e42f9&&!_0x516690){_0x4a23ec['remove'](_0xe8080a['getChild'](0x0));for(const _0x206b22 of Array['from'](_0x29b7e1['getChildren']()))_0x4a23ec['insert'](_0x206b22,_0xe8080a,'end');const _0x52f564=_0x446026['rowInsertionIndexes']['includes'](_0x5f2f26['row']),_0x3e3cb8=_0x446026['columnInsertionIndexes']['includes'](_0x5f2f26['column']);_0x52f564||_0x3e3cb8||(_0x2e7885=_0x32ac6b['fromRange'](_0x4a23ec['createRangeIn'](_0xe8080a)));}else _0x516690&&!_0x1e42f9&&(_0x1e85bb=_0x4a23ec['createRangeIn'](_0xe8080a));}else{const _0x1d03ed=_0x4a23ec['createElement']('tableCellSuggestion'),_0x4a15e3=_0x4a23ec['createElement']('tableCellSuggestion');_0x4a23ec['wrap'](_0x4a23ec['createRangeIn'](_0xe8080a),_0x4a15e3),_0x4a23ec['insert'](_0x1d03ed,_0xe8080a,0x0);for(const _0x46fc77 of Array['from'](_0x29b7e1['getChildren']()))_0x4a23ec['insert'](_0x46fc77,_0x1d03ed,'end');_0x2e7885=_0x32ac6b['fromRange'](_0x4a23ec['createRangeOn'](_0x1d03ed)),_0x1e85bb=_0x32ac6b['fromRange'](_0x4a23ec['createRangeOn'](_0x4a15e3));}const _0x2e3fdf=Array['from'](_0x29b7e1['getAttributes']())['filter'](([_0x2d203d])=>Oe['includes'](_0x2d203d));_0x446026['cells']['push']({'element':_0xe8080a,'attributes':_0x2e3fdf['length']?Object['fromEntries'](_0x2e3fdf):null}),_0x2e7885&&_0x446026['insertionRanges']['push'](_0x2e7885),_0x1e85bb&&_0x446026['deletionRanges']['push'](_0x1e85bb);},{'priority':'high'}),_0x19ff7c['on']('insertColumns',(_0x144635,_0x4a1040)=>{const [_0x59a8a1,_0x521d79={}]=_0x4a1040;if(!_0x446026)return;const _0x21bc57=_0x521d79['at']||0x0,_0x26caa9=_0x521d79['columns']||0x1;_0x446026['columnInsertionIndexes']=new Array(_0x26caa9)['fill'](_0x21bc57)['map']((_0x1707af,_0x457400)=>_0x1707af+_0x457400);for(const {cell:_0x4db0de}of _0x19ff7c['createTableWalker'](_0x59a8a1,{'startColumn':_0x21bc57,'endColumn':_0x21bc57+_0x26caa9-0x1}))_0x446026['columnInsertionRanges']['push'](_0x46075c['model']['createRangeOn'](_0x4db0de));},{'priority':'low'}),_0x19ff7c['on']('insertRows',(_0x380302,_0x3617cf)=>{const [_0x255b1d,_0x353d98={}]=_0x3617cf;if(!_0x446026)return;const _0x352e77=_0x353d98['at']||0x0,_0x5a12a8=_0x353d98['rows']||0x1;_0x446026['rowInsertionIndexes']=new Array(_0x5a12a8)['fill'](_0x352e77)['map']((_0xe16e81,_0x53d17e)=>_0xe16e81+_0x53d17e);for(const {cell:_0x3aa099}of _0x19ff7c['createTableWalker'](_0x255b1d,{'startRow':_0x352e77,'endRow':_0x352e77+_0x5a12a8-0x1}))_0x446026['rowInsertionRanges']['push'](_0x46075c['model']['createRangeOn'](_0x3aa099));},{'priority':'low'}),_0x49f7b7['descriptionFactory']['registerDescriptionCallback'](_0x338d21=>{if(_0x338d21['subType']&&_0x338d21['subType']['startsWith']('tablePaste'))return _0x338d21['previous']?{}:{'type':'insertion','content':o(_0x46075c['locale'],'*Replace\x20table\x20cells*')};});const _0x460fd0=()=>!0x1;for(const _0x33cf7d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x49f7b7['_suggestionFactory']['registerCustomCallback']('insertion',_0x33cf7d,'join',_0x460fd0),_0x49f7b7['_suggestionFactory']['registerCustomCallback']('deletion',_0x33cf7d,'join',_0x460fd0),_0x49f7b7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33cf7d,'join',_0x460fd0);_0x49f7b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x460fd0),_0x49f7b7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11a05a,_0x5c433b,_0x57b414)=>{const _0x261de0=_0x11a05a['map'](_0x4150ca=>_0x4150ca['getContainedElement']())['filter'](_0x3d1a3c=>_0x3d1a3c),_0x3608d2=new Map(_0x261de0['map'](_0xe7184=>[_0xe7184,null]));if(_0x446026){for(const {element:_0xd444f2,attributes:_0x531a61}of _0x446026['cells'])_0x531a61&&_0x3608d2['set'](_0xd444f2,_0x531a61);}else{if(_0x57b414&&_0x57b414['markerAttributes'])for(const [_0x38347f,_0x2a9677]of Object['entries'](_0x57b414['markerAttributes'])){const _0x397ef1=_0x46075c['model']['markers']['get'](_0x38347f),_0x5b4e1d=_0x397ef1?_0x397ef1['getRange']()['getContainedElement']():null;_0x5b4e1d&&_0x3608d2['set'](_0x5b4e1d,_0x2a9677);}}_0x46075c['model']['change'](_0xce64dd=>{for(const [_0x27346b,_0x5a1613]of _0x3608d2)_0xce64dd['setAttributes']({...Ue,..._0x5a1613},_0x27346b);});});const _0x2575a4=(_0x478fad,_0x2c2397)=>{_0x49f7b7['_suggestionFactory']['registerCustomCallback'](_0x478fad,'tablePaste',_0x2c2397,(_0xd1455f,_0xe38780,_0x5e87a9)=>{_0x46075c['model']['change'](_0x3a27da=>{const _0x1763d6=[];for(const _0x3a7ae7 of _0xd1455f){const _0x556f3b=_0x3a7ae7['start']['nodeAfter'];_0x556f3b['is']('element','tableCellSuggestion')&&_0x1763d6['push'](_0x556f3b);}_0x49f7b7['_suggestionFactory']['getSuggestionCallback'](_0x478fad,null,_0x2c2397)(_0xd1455f,_0xe38780,_0x5e87a9);for(const _0x526ece of _0x1763d6)'$graveyard'!=_0x526ece['root']['rootName']&&_0x3a27da['unwrap'](_0x526ece);});});};_0x2575a4('insertion','accept'),_0x2575a4('insertion','discard'),_0x2575a4('deletion','accept'),_0x2575a4('deletion','discard'),_0x49f7b7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x34a678=>{const _0x5c717f=_0x34a678['map'](_0xaa19b9=>_0xaa19b9['getContainedElement']()),_0x407ec4=_0x5c717f[0x0]['findAncestor']('table'),{minRow:_0x127d5b,maxRow:_0x5a87ad}=_0xb6cfec['_getCoordsForCells'](_0x5c717f);_0x19ff7c['removeRows'](_0x407ec4,{'at':_0x127d5b,'rows':_0x5a87ad-_0x127d5b+0x1});}),_0x49f7b7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x513065=>{const _0x5cd554=_0x513065['map'](_0x18829f=>_0x18829f['getContainedElement']()),_0x516679=_0x5cd554[0x0]['findAncestor']('table'),{minColumn:_0x11d365,maxColumn:_0x3fe458}=_0xb6cfec['_getCoordsForCells'](_0x5cd554);_0x19ff7c['removeColumns'](_0x516679,{'at':_0x11d365,'columns':_0x3fe458-_0x11d365+0x1});});const _0x34bb0b=(_0x1fe300,_0x72aee0)=>{if(!_0x72aee0['subType']||!_0x72aee0['subType']['startsWith']('tablePaste'))return;const _0x2199d3=_0x72aee0['attributes']['tablePasteChainId'],_0x31266f=_0x49f7b7['getSuggestions']()['filter'](_0x1671c4=>_0x1671c4['isInContent']&&_0x1671c4['attributes']&&_0x1671c4['attributes']['tablePasteChainId']==_0x2199d3);_0x31266f['length']&&_0x72aee0['getAllAdjacentSuggestions']()['length']!=_0x31266f['length']&&_0x31266f['reduce']((_0x2374fb,_0x5073d5)=>(_0x2374fb['next']=_0x5073d5,_0x5073d5['previous']=_0x2374fb,_0x5073d5));};function _0xdaad33(_0x5dd0ae,_0x467e7f=!0x0){const {id:_0x18229b,authorId:_0x4037e5}=_0x49f7b7['_splitMarkerName'](_0x5dd0ae['markerName']),_0x51b3aa=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x41ec6c=_0x49f7b7['activeMarkers']['includes'](_0x5dd0ae['markerName']);return _0x41ec6c&&_0x51b3aa['push']('ck-suggestion-marker--active'),{'classes':_0x51b3aa,'attributes':{'data-suggestion':_0x18229b,'data-author-id':_0x4037e5},'priority':_0x41ec6c&&_0x467e7f?0xbc2:0xbb8};}_0x49f7b7['on']('suggestionLoaded',_0x34bb0b,{'priority':'high'}),_0x49f7b7['on']('suggestionUnloaded',_0x34bb0b,{'priority':'high'}),_0x46075c['model']['document']['registerPostFixer'](()=>{let _0x213905=!0x1;const _0x15ff3f=Array['from'](_0x46075c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x487e14,data:_0x12f3b5}of _0x15ff3f){const {group:_0x13764f,type:_0x37b43d,id:_0x5eaee1}=_0x49f7b7['_splitMarkerName'](_0x487e14);if('suggestion'!=_0x13764f||'deletion'!=_0x37b43d||_0x12f3b5['oldRange'])continue;if(!_0x49f7b7['hasSuggestion'](_0x5eaee1))continue;const _0x419154=_0x49f7b7['getSuggestion'](_0x5eaee1)['getRanges'](),_0x5683b0=_0x46075c['plugins']['get']('Users')['me'];for(const _0x133c58 of _0x49f7b7['getSuggestions']()){if(!_0x133c58['isInContent']||_0x133c58['author']!=_0x5683b0)continue;if('formatBlock'!=_0x133c58['type']||'tablePasteCell'!=_0x133c58['subType'])continue;if(_0x133c58['getRanges']()['every'](_0x4f4fe2=>_0x419154['some'](_0x485465=>_0x485465['containsRange'](_0x4f4fe2,!0x0)))){for(const _0x21a02e of _0x133c58['getAllAdjacentSuggestions']())_0x21a02e['isInContent']&&(_0x21a02e['discard'](),_0x213905=!0x0);}}}return _0x213905;}),_0x46075c['model']['document']['registerPostFixer'](_0x17d9a9=>{const _0x4bb4e7=_0x46075c['commands']['get']('redo');if(!_0x4bb4e7||!_0x4bb4e7['_createdBatches']['has'](_0x17d9a9['batch']))return!0x1;let _0x5c9148=!0x1;const _0x3216cf=_0x46075c['plugins']['get']('Users')['me'],_0xc19627=_0x46075c['model']['document']['differ']['getChanges'](),_0x1431ad=Array['from'](_0x46075c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5b1e69,data:_0x5f0b16})=>{const {group:_0xb88487,subType:_0x205847,authorId:_0x51d404}=_0x49f7b7['_splitMarkerName'](_0x5b1e69);return'suggestion'==_0xb88487&&'tablePaste'==_0x205847&&_0x51d404==_0x3216cf['id']&&!_0x5f0b16['oldRange'];});for(const _0x414665 of _0xc19627){if('insert'!=_0x414665['type']||'tableCellSuggestion'!=_0x414665['name']||0x1!=_0x414665['length'])continue;const _0x42f016=_0x17d9a9['createRange'](_0x414665['position'],_0x414665['position']['getShiftedBy'](0x1));if(!_0x1431ad['find'](({data:_0x4b2053})=>_0x4b2053['newRange']['isEqual'](_0x42f016))){for(const {name:_0x55058e,data:_0x460a20}of _0x1431ad)if(_0x42f016['containsRange'](_0x460a20['newRange'])){_0x17d9a9['updateMarker'](_0x55058e,{'range':_0x42f016}),_0x5c9148=!0x0;break;}}}return _0x5c9148;}),_0x46075c['model']['document']['registerPostFixer'](_0xab7f1d=>{let _0x5a09a4=!0x1;const _0x35937b=_0x46075c['plugins']['get']('Users')['me'],_0x18ad0f=_0x49f7b7['getSuggestions']()['filter'](_0x50a2eb=>_0x50a2eb['isInContent']&&_0x50a2eb['author']==_0x35937b),_0x25f588=new Set(),_0x1dc383=new Set();for(const _0x6d1c6d of _0x18ad0f)if('tablePaste'==_0x6d1c6d['subType'])for(const _0x193cd2 of _0x6d1c6d['getMarkers']()){const _0x5378bf=_0x193cd2['getRange']()['getContainedElement']();if(_0x5378bf){if(_0x5378bf['is']('element','tableCellSuggestion')&&De(_0x5378bf)){_0x6d1c6d['removeMarker'](_0x193cd2['name']),_0x25f588['add'](_0x5378bf),_0x5a09a4=!0x0;const _0x28a7cd=_0x5378bf['nextSibling'],_0x590a90=_0x5378bf['previousSibling'],_0x4becc3=_0x28a7cd&&_0x28a7cd['is']('element','tableCellSuggestion'),_0x3d0592=_0x590a90&&_0x590a90['is']('element','tableCellSuggestion');_0x4becc3&&!_0x25f588['has'](_0x28a7cd)&&_0x1dc383['add'](_0x28a7cd),_0x3d0592&&!_0x25f588['has'](_0x590a90)&&_0x1dc383['add'](_0x590a90);}else _0x5378bf['is']('element','paragraph')&&_0x5378bf['isEmpty']&&(_0x6d1c6d['removeMarker'](_0x193cd2['name']),_0x5a09a4=!0x0);}}else{if('tablePasteCell'==_0x6d1c6d['subType']){if(!_0x6d1c6d['attributes']||!_0x6d1c6d['attributes']['tablePasteChainId'])continue;const _0x5a0dfc=_0x6d1c6d['attributes']['markerAttributes'];if(_0x5a0dfc&&Object['keys'](_0x5a0dfc)['length'])continue;const _0x8bebe1=_0x6d1c6d['attributes']['tablePasteChainId'];let _0xf35f4c=!0x0,_0x5d735d=!0x0;for(const _0x251231 of _0x18ad0f)if(_0x251231['subType']&&_0x251231['subType']['startsWith']('tablePaste')){if(!_0x251231['attributes']['tablePasteChainId']){_0x5d735d=!0x1;break;}if(_0x251231['id']!=_0x6d1c6d['id']&&_0x251231['attributes']['tablePasteChainId']==_0x8bebe1){_0xf35f4c=!0x1;break;}}_0x5d735d&&_0xf35f4c&&(_0x6d1c6d['removeMarkers'](),_0x5a09a4=!0x0);}}for(const _0xb99f78 of _0x25f588)_0xab7f1d['remove'](_0xb99f78);for(const _0xe00240 of _0x1dc383)_0xab7f1d['unwrap'](_0xe00240);return _0x5a09a4;}),_0x46075c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4c683b=>_0xdaad33(_0x4c683b),'converterPriority':'high'}),_0x46075c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x35e2ba,_0x21647c)=>_0x21647c['options']['showSuggestionHighlights']?_0xdaad33(_0x35e2ba,!0x1):null,'converterPriority':'high'});const _0x518971=_0x46075c['editing']['view'];this['listenTo'](_0x518971['document'],'clipboardOutput',(_0x551c95,_0x296b84)=>{const _0x1fbd44=[];for(const _0x406051 of _0x518971['createRangeIn'](_0x296b84['content'])['getItems']())_0x406051['is']('element','suggestion-td')&&_0x1fbd44['push'](_0x406051);_0x518971['change'](_0x4708e6=>{for(const _0x50bc7b of _0x1fbd44)_0x4708e6['move'](_0x4708e6['createRangeIn'](_0x50bc7b),_0x4708e6['createPositionBefore'](_0x50bc7b)),_0x4708e6['remove'](_0x50bc7b);});});}}function De(_0x270a4b){if(_0x270a4b['isEmpty'])return!0x0;const _0x4ab68d=_0x270a4b['getChild'](0x0);return _0x4ab68d['is']('element','paragraph')&&_0x4ab68d['isEmpty'];}function He(_0x5380c2,_0x3eb679={},_0x415910){for(const {isAnchor:_0x190b42,cellHeight:_0x19403b,cellWidth:_0x3ed5d8}of _0x415910['createTableWalker'](_0x5380c2,{'includeAllSlots':!0x0,..._0x3eb679}))if(!_0x190b42||0x1!=_0x19403b||0x1!=_0x3ed5d8)return!0x1;return!0x0;}class Tt extends _0x51aec7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x429d27=this['editor']['plugins']['get']('TrackChangesEditing');_0x429d27['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x429d27['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x429d27['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x429d27['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x429d27['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x429d27['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x327854,_0x2615d5){const _0x3639d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27c7ed=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x495be2=_0x2615d5['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x12af33=_0x27c7ed['getColumnGroupElement'](_0x495be2);let _0x4f017b=_0x12af33?_0x27c7ed['getTableColumnsWidths'](_0x12af33):null,_0x4311a4=_0x495be2['getAttribute']('tableWidth')||null;const _0xc9f7e2=_0x2615d5['tableWidth']||_0x4311a4,_0x5e5f74=_0x2615d5['columnWidths']||_0x4f017b,_0x5a97e7=this['editor']['plugins']['get']('Users')['me'];for(const _0x2cd4db of _0x3639d6['getSuggestions']()){const _0x3ce1d4=_0x2cd4db['getContainedElement']();if('resizeTable'===_0x2cd4db['subType']&&_0x3ce1d4===_0x495be2){_0x2cd4db['author']!==_0x5a97e7&&_0x2cd4db['discard']();const _0x1efeff=_0x2cd4db['data']['commandParams'];_0x4311a4=_0x1efeff[0x0]['tableWidth'],_0x4f017b=_0x1efeff[0x0]['columnWidths'];break;}}_0x327854({'table':_0x495be2,'tableWidth':_0xc9f7e2,'columnWidths':_0x5e5f74}),_0x3639d6['markBlockFormat'](_0x495be2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4311a4,'columnWidths':_0x4f017b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x226295){if('formatBlock'!=_0x226295['type']&&'formatInline'!=_0x226295['type'])return;const {data:_0x5b3749}=_0x226295;if(_0x5b3749&&'resizeTable'===_0x5b3749['formatGroupId']){const _0x19953f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x19953f)};}}}class Ot extends _0x51aec7{['afterInit'](){const _0x81e7a1=this['editor'];_0x81e7a1['plugins']['has']('Template')&&_0x81e7a1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class xt extends _0x51aec7{['afterInit'](){const _0x4f31c8=this['editor'];if(!_0x4f31c8['commands']['get']('insertTableOfContents'))return;_0x4f31c8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2db83f=_0x4f31c8['plugins']['get']('TrackChangesEditing'),_0x52704c=_0x4f31c8['locale'];_0x2db83f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x321481=>o(_0x52704c,'ELEMENT_TABLE_OF_CONTENTS',_0x321481));}}class Et extends _0x51aec7{['afterInit'](){const _0x2db45f=this['editor'];if(!_0x2db45f['plugins']['has']('Title'))return;const _0x23d5bd=_0x2db45f['plugins']['get']('TrackChangesEditing');_0x23d5bd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2db45f['locale'],'ELEMENT_TITLE')),_0x2db45f['model']['document']['registerPostFixer'](_0x2f1f7a=>{let _0x4b55cc=!0x1;const _0x5574e7=Array['from'](_0x2db45f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e3872,data:_0x1a4190}of _0x5574e7){const {group:_0x3e7796}=_0x23d5bd['_splitMarkerName'](_0x3e3872);if('suggestion'!==_0x3e7796||!_0x1a4190['newRange'])continue;const _0xc2fd2c=_0x1a4190['newRange'],_0x35346f=_0xc2fd2c['end']['nodeBefore'];if(!_0x35346f||!_0x35346f['is']('element','title-content'))continue;if(!_0xc2fd2c['start']['isTouching'](_0xc2fd2c['end']))continue;const _0x14d3bb=_0x2db45f['model']['schema']['getNearestSelectionRange'](_0xc2fd2c['end'],'forward');if(_0x14d3bb&&_0x14d3bb['isCollapsed']){const _0x3a35d7=_0x2f1f7a['createRange'](_0xc2fd2c['start'],_0x14d3bb['start']);_0x3a35d7['isEqual'](_0xc2fd2c)||(_0x2f1f7a['updateMarker'](_0x3e3872,{'range':_0x3a35d7}),_0x4b55cc=!0x0);}_0x4b55cc||(_0x2f1f7a['removeMarker'](_0x3e3872),_0x4b55cc=!0x0);}return _0x4b55cc;});}}class Rt extends _0x51aec7{['afterInit'](){const _0x3b30c3=this['editor'],_0x2fd30f=_0x3b30c3['plugins']['get']('TrackChangesEditing');_0x3b30c3['plugins']['has']('Uploadcare')&&(_0x2fd30f['enableCommand']('uploadcare'),_0x3b30c3['plugins']['has']('UploadcareImageEdit')&&(_0x2fd30f['enableCommand']('uploadcareImageEdit'),_0x2fd30f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2fd30f['registerBlockAttribute']('uploadcareImageId'),_0x2fd30f['descriptionFactory']['registerDescriptionCallback'](_0x2b1e90=>{if('attribute'!=_0x2b1e90['type'])return;const {data:_0x2bd555}=_0x2b1e90;return _0x2bd555&&'uploadcareImageId'==_0x2bd555['key']?{'type':'format','content':''}:void 0x0;})));}}class Ut extends _0x51aec7{['afterInit'](){const _0x9a56e6=this['editor'],_0x28a95c=_0x9a56e6['plugins']['get']('TrackChangesEditing');_0x9a56e6['plugins']['has']('UndoEditing')&&(_0x28a95c['enableCommand']('undo'),_0x28a95c['enableCommand']('redo'));}}class Vt extends _0x51aec7{static get['requires'](){return[$t];}['afterInit'](){const _0x30304e=this['editor'];if(!_0x30304e['plugins']['has']('TableCaptionEditing'))return;_0x30304e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ft extends _0x51aec7{['tableProperties'];['tableCellProperties'];constructor(_0x5ed6ec){super(_0x5ed6ec),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 _0x4f7971=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x334b9a of this['tableProperties'])_0x4f7971['enableCommand'](_0x334b9a,(_0x5a995c,_0x342770)=>{const _0x286d88=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x334b9a,[_0x286d88],this['tableProperties'],'tableProperties',_0x5a995c,_0x342770);});_0x4f7971['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4f7971['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f7971['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3aa30e,_0x3621fd)=>this['handleDiscardAction'](this['tableProperties'],_0x3aa30e,_0x3621fd)),_0x4f7971['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x53fa29 of this['tableCellProperties'])_0x4f7971['enableCommand'](_0x53fa29,(_0x1bb972,_0x38be6c)=>{const _0xc8d310=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x53fa29,_0xc8d310,this['tableCellProperties'],'tableCellProperties',_0x1bb972,_0x38be6c);});_0x4f7971['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4f7971['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f7971['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x402e24,_0x4d14d4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x402e24,_0x4d14d4)),_0x4f7971['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4f7971['descriptionFactory']['registerDescriptionCallback'](_0x3d43c3=>this['handleSuggestionDescription'](_0x3d43c3)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3ee92b,_0x4f8946,_0x1f3116,_0x5e513d,_0x55e2f,_0x3a0e45){const _0x1fdd9b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3a0e45['batch'],()=>{for(const _0x25b9de of _0x4f8946){if(this['_getSuggestion'](_0x25b9de,_0x5e513d))_0x55e2f(_0x3a0e45);else{const _0x1f9263={};for(const _0x409c52 of _0x1f3116){const _0x6b0f7c=_0x25b9de['getAttribute'](_0x409c52);void 0x0!==_0x6b0f7c&&(_0x1f9263[_0x409c52]=_0x6b0f7c);}_0x55e2f(_0x3a0e45),_0x1fdd9b['markBlockFormat'](_0x25b9de,{'commandParams':[_0x1f9263]},[],_0x5e513d);}}});}['handleDiscardAction'](_0x1b0071,_0x477e04,_0x358ccc){const _0x1f1f12=_0x477e04[0x0]['start']['nodeAfter'],_0x21c16e=_0x358ccc['commandParams'][0x0];this['editor']['model']['change'](_0x16bd4e=>{for(const _0xa7f751 of _0x1b0071)void 0x0!==_0x21c16e[_0xa7f751]?_0x16bd4e['setAttribute'](_0xa7f751,_0x21c16e[_0xa7f751],_0x1f1f12):_0x16bd4e['removeAttribute'](_0xa7f751,_0x1f1f12);});}['handleSuggestionDescription'](_0xed3516){if(_0xed3516['data'])switch(_0xed3516['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'](_0x5a0c0c,_0xc8a6c4){const _0xedd1a0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x557f81 of _0xedd1a0['getSuggestions']({'skipNotAttached':!0x0})){const _0x169410=_0x557f81['getContainedElement']();if(_0x557f81['subType']===_0xc8a6c4&&_0x169410===_0x5a0c0c)return _0x557f81;}return null;}['_registerTablePropertiesAttributes'](){const _0x37c363=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a6f4c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x538c45 of _0x4a6f4c){const _0x118ee9=_0x538c45['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x37c363['registerBlockAttribute'](_0x538c45),_0x37c363['descriptionFactory']['registerAttributeLabel'](_0x538c45,o(this['editor']['locale'],'FORMAT_'+_0x118ee9));}}}class Pt extends _0x51aec7{['afterInit'](){const _0x2a9b83=this['editor'];if(!_0x2a9b83['plugins']['has']('LineHeight'))return;const _0x30ff05=_0x2a9b83['plugins']['get']('TrackChangesEditing'),_0x1af3de=_0x2a9b83['locale'];_0x30ff05['enableDefaultAttributesIntegration']('lineHeight'),_0x30ff05['registerBlockAttribute']('lineHeight'),_0x30ff05['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1af3de,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x51aec7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1098dc,_0x29f725,_0x4d46b7,V,F,G,L,J,H,K,W,q,z,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,ct,ft,ht,gt,dt,mt,bt,lt,Q,Pt,X,pt,kt,wt,yt,St,jt,It,At,_t,vt,Ct,$t,Nt,Dt,Mt,Vt,Bt,Tt,xt,Ft,Ot,Et,Rt,Ut];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3517fa){super(_0x3517fa),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1e096e,_0x53d3bd,_0x4321d6,_0x31dfbb)=>{this['_model']['change'](()=>{for(const _0x3175c1 of[..._0x31dfbb,..._0x4321d6])this['_model']['markers']['has'](_0x3175c1)&&_0x3517fa['editing']['reconvertMarker'](_0x3175c1);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Lt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3517fa['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(),_0x3517fa['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3517fa['config']['get']('trackChanges.trackFormatChanges'),_0x3517fa['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3517fa['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3517fa,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2e96eb=this['editor'],_0x328d2e=(_0xd9a8c3,_0x15de74)=>{if('attribute'!=_0xd9a8c3)return'ck-suggestion-marker-'+_0xd9a8c3;const _0x44d099=_0x15de74['split']('|')[0x0];return this['_isBlockAttribute'](_0x44d099)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2e96eb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x23278c=>{const {id:_0x16d276,authorId:_0x4e2dcf,type:_0x147458,subType:_0x45168b}=this['_splitMarkerName'](_0x23278c['markerName']),_0x2d2e65=['ck-suggestion-marker',_0x328d2e(_0x147458,_0x45168b)];let _0x319b48=0xbb8;return this['activeMarkers']['includes'](_0x23278c['markerName'])&&(_0x2d2e65['push']('ck-suggestion-marker--active'),_0x319b48=0xbc2),'deletion'==_0x147458&&(_0x319b48+=0x5),{'classes':_0x2d2e65,'attributes':{'data-suggestion':_0x16d276,'data-author-id':_0x4e2dcf},'priority':_0x319b48};}}),_0x2e96eb['conversion']['for']('dataDowncast')['add'](_0xd15d67=>{_0xd15d67['on']('addMarker:suggestion',(_0x17de63,_0x4645a4,_0x2c59ee)=>{if(!_0x2c59ee['options']['showSuggestionHighlights'])return;const _0x1b81be=_0x4645a4['item'];if(!_0x1b81be)return;const _0xe33190=_0x2c59ee['mapper']['toViewElement'](_0x1b81be);_0x2e96eb['model']['schema']['isObject'](_0x1b81be)&&_0xe33190&&!_0xe33190['getCustomProperty']('widget')&&_0xe33190['is']('containerElement')&&_0x19cc55(_0xe33190,_0x2c59ee['writer']);},{'priority':'high'});}),_0x2e96eb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x41f2d2,_0x5bd4c4)=>{if(!_0x5bd4c4['options']['showSuggestionHighlights'])return null;const {id:_0x40581a,authorId:_0x17cbae,type:_0xa6476c,subType:_0x4959a0}=this['_splitMarkerName'](_0x41f2d2['markerName']);return{'classes':['ck-suggestion-marker',_0x328d2e(_0xa6476c,_0x4959a0)],'priority':0xbb8,'attributes':{'data-suggestion':_0x40581a,'data-author-id':_0x17cbae}};}});const _0x3b74dc=({showActiveMarkers:_0x8e45d5=!0x0,isAttributeSuggestion:_0x7b7905=!0x1}={})=>(_0x2eb36b,_0x7e923,_0x863334)=>{if(!_0x7e923['item'])return;const {id:_0x5a9ed6,authorId:_0x330211,subType:_0x3df39b}=this['_splitMarkerName'](_0x7e923['markerName']);if(_0x7b7905){const _0x49add3=se(_0x3df39b);if(!this['_isBlockAttribute'](_0x49add3))return;}if(_0x7e923['item']['is']('selection'))return void _0x863334['consumable']['consume'](_0x7e923['item'],_0x2eb36b['name']);const _0x2c7493=_0x863334['mapper']['toViewElement'](_0x7e923['item']);if(_0x7e923['item']['is']('element')&&_0x2e96eb['model']['schema']['isBlock'](_0x7e923['item'])&&!_0x2c7493['getCustomProperty']('addHighlight')){_0x863334['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2c7493),_0x863334['writer']['setAttribute']('data-suggestion',_0x5a9ed6,_0x2c7493),_0x863334['writer']['setAttribute']('data-author-id',_0x330211,_0x2c7493),_0x863334['mapper']['bindElementToMarker'](_0x2c7493,_0x7e923['markerName']),_0x8e45d5&&(this['activeMarkers']['includes'](_0x7e923['markerName'])?_0x863334['writer']['addClass']('ck-suggestion-marker--active',_0x2c7493):_0x863334['writer']['removeClass']('ck-suggestion-marker--active',_0x2c7493));for(const _0x526c7d of _0x2e96eb['model']['createRangeIn'](_0x7e923['item'])['getItems']())_0x863334['consumable']['consume'](_0x526c7d,_0x2eb36b['name']);_0x863334['consumable']['consume'](_0x7e923['item'],_0x2eb36b['name']);}};_0x2e96eb['conversion']['for']('dataDowncast')['add'](_0x5af1a3=>{_0x5af1a3['on']('addMarker:suggestion:formatBlock',(_0x4923a4,_0x5736b4,_0x5d111b)=>{_0x5d111b['options']['showSuggestionHighlights']&&_0x3b74dc({'showActiveMarkers':!0x1})(_0x4923a4,_0x5736b4,_0x5d111b);},{'priority':'highest'});}),_0x2e96eb['conversion']['for']('dataDowncast')['add'](_0x4f79db=>{_0x4f79db['on']('addMarker:suggestion:attribute',(_0x5e817f,_0x1ecc0a,_0x2b5bb7)=>{_0x2b5bb7['options']['showSuggestionHighlights']&&_0x3b74dc({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5e817f,_0x1ecc0a,_0x2b5bb7);},{'priority':'highest'});}),_0x2e96eb['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4e7f0d,_0x496144)=>{if(_0x496144['options']['showSuggestionHighlights']){const {id:_0x42bdea,authorId:_0x35ff3e}=this['_splitMarkerName'](_0x4e7f0d);return _0x4e7f0d['includes'](':split')||_0x4e7f0d['includes'](':merge')?{'group':'suggestion','name':_0x4e7f0d['substr'](0xb),'attributes':{'data-suggestion':_0x42bdea,'data-author-id':_0x35ff3e}}:null;}return{'group':'suggestion','name':_0x4e7f0d['substr'](0xb)};}}),_0x2e96eb['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x341fa0,{writer:_0x461e71})=>{let _0x26b4af='suggestion:'+_0x341fa0['getAttribute']('suggestion-type')+':'+_0x341fa0['getAttribute']('id');return _0x341fa0['getAttribute']('marker-count')&&(_0x26b4af+=':'+_0x341fa0['getAttribute']('marker-count')),_0x461e71['createElement']('$marker',{'data-name':_0x26b4af});}}),_0x2e96eb['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2e96eb['conversion']['for']('editingDowncast')['add'](_0x19cf1=>{_0x19cf1['on']('addMarker:suggestion:formatBlock',_0x3b74dc(),{'priority':'high'});}),_0x2e96eb['conversion']['for']('editingDowncast')['add'](_0x6bb12e=>{_0x6bb12e['on']('addMarker:suggestion:attribute',_0x3b74dc({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2e96eb['conversion']['for']('editingDowncast')['add'](_0x3a98eb=>{_0x3a98eb['on']('removeMarker:suggestion:formatBlock',(_0x4be4cd,_0xab8566,_0xfe6336)=>{const _0x37169d=_0xfe6336['mapper']['markerNameToElements'](_0xab8566['markerName']);if(_0x37169d){for(const _0x29fccb of _0x37169d)_0x29fccb['getCustomProperty']('addHighlight')||(_0xfe6336['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29fccb),_0xfe6336['writer']['removeAttribute']('data-suggestion',_0x29fccb),_0xfe6336['writer']['removeAttribute']('data-author-id',_0x29fccb),_0xfe6336['mapper']['unbindElementFromMarkerName'](_0x29fccb,_0xab8566['markerName']));}},{'priority':'high'});}),_0x2e96eb['conversion']['for']('editingDowncast')['add'](_0x265f8e=>{_0x265f8e['on']('removeMarker:suggestion:attribute',(_0x489c04,_0x4849db,_0xc5b02f)=>{const _0x5473d6=_0xc5b02f['mapper']['markerNameToElements'](_0x4849db['markerName']);if(!_0x5473d6)return;const {subType:_0x21a713}=this['_splitMarkerName'](_0x4849db['markerName']),_0x4c9281=se(_0x21a713);if(this['_isBlockAttribute'](_0x4c9281)){for(const _0x160bdc of _0x5473d6)_0x160bdc['getCustomProperty']('addHighlight')||(_0xc5b02f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x160bdc),_0xc5b02f['writer']['removeAttribute']('data-suggestion',_0x160bdc),_0xc5b02f['writer']['removeAttribute']('data-author-id',_0x160bdc),_0xc5b02f['mapper']['unbindElementFromMarkerName'](_0x160bdc,_0x4849db['markerName']));}},{'priority':'high'});}),_0x2e96eb['model']['document']['registerPostFixer'](_0x14f24f=>{let _0x52d245=!0x1;const _0x4fc308=Array['from'](_0x2e96eb['model']['document']['differ']['getChangedMarkers']()),_0x58e5db=new Set();for(const {name:_0x40f4ac,data:_0x194b61}of _0x4fc308){const {group:_0xf4b599,type:_0x1691ba,subType:_0x112d09,id:_0x2a0ad6}=this['_splitMarkerName'](_0x40f4ac);if('suggestion'!==_0xf4b599)continue;const _0x4e656c=_0x112d09?'suggestion:'+_0x1691ba+':'+_0x112d09+':'+_0x2a0ad6:'suggestion:'+_0x1691ba+':'+_0x2a0ad6,_0x23b0df=_0x2e96eb['model']['markers']['getMarkersGroup'](_0x4e656c),_0x283af2=_0x2e96eb['model']['markers']['get'](_0x40f4ac),_0x117085=this['_suggestions']['get'](_0x2a0ad6);if(null!=_0x194b61['newRange']){'formatInline'==_0x1691ba&&(_0x52d245=_0x52d245||Ht(_0x194b61['newRange'],_0x40f4ac,_0x14f24f,_0x2e96eb['model']['schema']));const _0x407a37='attribute'==_0x1691ba&&this['_isBlockAttribute'](_0x112d09['split']('|')[0x0]),_0x521891='attribute'==_0x1691ba&&this['_isInlineAttribute'](_0x112d09['split']('|')[0x0]);if(_0x194b61['newRange']['isCollapsed']||'$graveyard'==_0x194b61['newRange']['root']['rootName']||'formatBlock'==_0x1691ba&&!qt(_0x194b61['newRange'])||_0x407a37&&!qt(_0x194b61['newRange'])||_0x521891&&zt(_0x194b61['newRange'])||'deletion'==_0x1691ba&&zt(_0x194b61['newRange'])||_0x283af2&&Qt(_0x283af2,_0x23b0df))_0x14f24f['removeMarker'](_0x40f4ac),_0x52d245=!0x0;else{if(!_0x117085||!_0x117085['isInContent'])continue;if(_0x194b61['newRange']&&_0x194b61['oldRange']&&_0x194b61['newRange']['isEqual'](_0x194b61['oldRange']))continue;_0x58e5db['add'](_0x117085);}}}return _0x58e5db['size']>0x0&&(_0x52d245=!!this['_joinWithAdjacentSuggestions'](_0x58e5db)||_0x52d245),_0x52d245;}),_0x2e96eb['model']['document']['registerPostFixer'](_0x22a474=>{let _0x54353c=!0x1;for(const _0x2e28ae of _0x2e96eb['model']['document']['differ']['getChanges']())if('insert'==_0x2e28ae['type'])for(const _0x16941d of this['_suggestions']['values']()){if(_0x16941d['isMultiRange']||!_0x16941d['isInContent'])continue;const _0x3d9c51='formatBlock'==_0x16941d['type'],_0x3dac7f=this['_getAttributeKey'](_0x16941d),_0x5efb83=_0x3dac7f&&this['_isBlockAttribute'](_0x3dac7f);if(!_0x3d9c51&&!_0x5efb83)continue;const _0x5f5c73=_0x16941d['getFirstRange']();if(_0x5f5c73['start']['parent']!=_0x5f5c73['end']['parent']&&!_0x5f5c73['end']['isAtEnd']){const _0x55e25b=_0x2e96eb['model']['createPositionAt'](_0x5f5c73['start']['nodeAfter'],'end'),_0x572be0=_0x2e96eb['model']['createRange'](_0x5f5c73['start'],_0x55e25b);_0x22a474['updateMarker'](_0x16941d['getFirstMarker'](),{'range':_0x572be0}),_0x54353c=!0x0;}}return _0x54353c;}),_0x2e96eb['model']['document']['registerPostFixer'](_0x5af025=>this['_processAttributeChanges'](_0x5af025)),_0x2e96eb['model']['document']['registerPostFixer'](_0x34fd16=>!_0x34fd16['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x34fd16)),_0x2e96eb['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2e96eb['model']['document']['on']('change:data',(_0x4d392e,_0xf97f75)=>{if(!_0xf97f75['isLocal']||_0xf97f75['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x22e676=_0x2e96eb['model']['document']['differ']['getChanges']();if(0x0==_0x22e676['length'])return;const _0x5e02e5=[],_0x5f1ddf=_0x22e676['filter'](_0x107392=>'attribute'==_0x107392['type']),_0x5653c6=_0x22e676['filter'](_0x1f7cf2=>'insert'==_0x1f7cf2['type']&&'$text'!=_0x1f7cf2['name']);for(const _0xeb362 of _0x5f1ddf)this['_isRegisteredAttribute'](_0xeb362['attributeKey'])&&_0x5e02e5['push']({'key':_0xeb362['attributeKey'],'newValue':_0xeb362['attributeNewValue'],'oldValue':_0xeb362['attributeOldValue'],'range':Yt(_0xeb362['range'],_0x2e96eb['model'])});for(const _0x24379e of _0x5653c6){if('rename'!=_0x24379e['action']&&'refresh'!=_0x24379e['action'])continue;const _0xaf032f=Zt(_0x24379e['position']['nodeAfter'],_0x2e96eb['model']),_0x459588=_0x24379e['before'];'rename'==_0x24379e['action']&&_0x5e02e5['push']({'key':m,'newValue':_0x24379e['name'],'oldValue':_0x459588['name'],'range':_0xaf032f});for(const [_0x164f27,_0x5baf52]of _0x459588['attributes']){if(!this['_isRegisteredAttribute'](_0x164f27))continue;const _0x173178=_0x24379e['attributes']['get'](_0x164f27);_0x5baf52!==_0x173178&&_0x5e02e5['push']({'key':_0x164f27,'newValue':_0x173178,'oldValue':_0x5baf52,'range':_0xaf032f});}for(const [_0xb32b65,_0x70bfd5]of _0x24379e['attributes'])this['_isRegisteredAttribute'](_0xb32b65)&&(_0x459588['attributes']['has'](_0xb32b65)||_0x5e02e5['push']({'key':_0xb32b65,'newValue':_0x70bfd5,'oldValue':null,'range':_0xaf032f}));}0x0!=_0x5e02e5['length']&&_0x2e96eb['model']['enqueueChange'](_0xf97f75,_0x445386=>{const _0x4b03d1=_0x475984();for(const {range:_0x17711a,key:_0x3504fb,oldValue:_0x2433f3,newValue:_0x2672d8}of _0x5e02e5)this['markAttributeChange'](_0x17711a,_0x3504fb,_0x2433f3,_0x2672d8,{'groupId':_0x4b03d1});this['_reduceExistingSuggestions'](_0x445386,_0x5e02e5);});},{'priority':'lowest'}),_0x2e96eb['model']['markers']['on']('update:suggestion',(_0x14ec21,_0xa09f53,_0x35209a)=>{if(null==_0x35209a){const {id:_0x26b1a8}=this['_splitMarkerName'](_0xa09f53['name']),_0x441124=this['_suggestions']['get'](_0x26b1a8);_0x441124&&_0x441124['addMarkerName'](_0xa09f53['name']);}}),_0x2e96eb['model']['document']['on']('change:data',()=>{const _0x38f58f=Array['from'](_0x2e96eb['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c4f51=>'suggestion'===this['_splitMarkerName'](_0x1c4f51['name'])['group']);if(0x0===_0x38f58f['length'])return;_0x38f58f['sort']((_0x3b2d1,_0x55d1cb)=>{const _0x303abc=_0x3b2d1['data']['oldRange'],_0x2e75df=_0x55d1cb['data']['oldRange'];return null===_0x303abc&&null===_0x2e75df?0x0:null===_0x303abc&&null!==_0x2e75df?-0x1:null!==_0x303abc&&null===_0x2e75df?0x1:_0x303abc['start']['isBefore'](_0x2e75df['start'])?-0x1:0x1;});const _0x3a90ba=new Set(),_0x478f74=new Set();for(const {name:_0x57a966,data:_0x2b045a}of _0x38f58f){const {id:_0x5e2996}=this['_splitMarkerName'](_0x57a966);if(null===_0x2b045a['oldRange']){const _0x3457ea=this['_handleNewSuggestionMarker'](_0x57a966);_0x478f74['add'](_0x3457ea);}else{const _0x299771=this['_suggestions']['get'](_0x5e2996);null!==_0x2b045a['newRange']||_0x299771['isInContent']?(_0x3a90ba['add'](_0x299771['head']),_0x478f74['add'](_0x299771)):this['_removeSuggestion'](_0x299771);}}_0x478f74['size']>0x0&&this['_refreshSuggestionsChain'](_0x478f74);for(const _0x5168e0 of _0x3a90ba)this['fire']('suggestionChanged',_0x5168e0);}),_0x2e96eb['model']['on']('applyOperation',(_0x14d59a,_0x257016)=>{const _0x56c2b3=_0x257016[0x0];if(!this['_suggestions']['size'])return;if(!_0x56c2b3['isDocumentOperation'])return;if(_0x56c2b3['batch']['isUndo']||!_0x56c2b3['batch']['isLocal'])return;let _0x32a668,_0x2ff058;switch(_0x56c2b3['type']){case'insert':_0x32a668=_0x2e96eb['model']['createPositionAt'](_0x56c2b3['position']),_0x2ff058=_0x32a668['getShiftedBy'](_0x56c2b3['howMany']);break;case'split':_0x32a668=_0x2e96eb['model']['createPositionAt'](_0x56c2b3['splitPosition']),_0x2ff058=_0x2e96eb['model']['createPositionAt'](_0x56c2b3['moveTargetPosition']);break;case'move':_0x32a668=_0x2e96eb['model']['createPositionAt'](_0x56c2b3['targetPosition']),_0x2ff058=_0x32a668['getShiftedBy'](_0x56c2b3['howMany']);break;default:return;}const _0x566c4d=_0x2e96eb['model']['createRange'](_0x32a668,_0x2ff058);_0x2e96eb['model']['change'](()=>{for(const {suggestion:_0x2c2c4b,meta:_0x121f78}of this['_findSuggestions'](_0x566c4d)){if(_0x2c2c4b['isMultiRange'])continue;if('formatInline'==_0x2c2c4b['type'])continue;const _0x3553af=this['_getAttributeKey'](_0x2c2c4b);if(_0x3553af&&this['_isBlockAttribute'](_0x3553af)&&'split'!=_0x56c2b3['type'])continue;const _0x38f5f2=_0x2c2c4b['data']&&_0x2c2c4b['data']['multipleBlocks'];('formatBlock'!=_0x2c2c4b['type']||'split'==_0x56c2b3['type']&&!_0x38f5f2)&&(_0x121f78['containsRangeInObject']||'insertion'==_0x2c2c4b['type']&&_0x121f78['isOwn']||_0x2c2c4b['getFirstRange']()['containsRange'](_0x566c4d)&&this['_breakSuggestionMarker'](_0x2c2c4b,_0x32a668,_0x2ff058));}});},{'priority':'lowest'}),_0x2e96eb['model']['on']('deleteContent',(_0x5389d9,_0x5ec2ad)=>{const _0x5222dc=_0x5ec2ad[0x0],_0x22941d=_0x5ec2ad[0x1];if(_0x22941d&&_0x22941d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5222dc['isCollapsed'])return;const _0x36b724=_0x2e96eb['model']['schema'],{start:_0x43ba13,end:_0x12cb60}=_0x5222dc['getFirstRange'](),_0x1ba555=_0x43ba13['nodeAfter']&&_0x36b724['isLimit'](_0x43ba13['nodeAfter'])?null:_0x36b724['getNearestSelectionRange'](_0x43ba13,'forward'),_0x1b1075=_0x12cb60['nodeBefore']&&_0x36b724['isLimit'](_0x12cb60['nodeBefore'])?null:_0x36b724['getNearestSelectionRange'](_0x12cb60,'backward'),_0x23fdc2=_0x2e96eb['model']['createRange'](_0x1ba555?_0x1ba555['start']:_0x43ba13,_0x1b1075?_0x1b1075['end']:_0x12cb60);_0x2e96eb['model']['change'](_0x289e09=>{this['markDeletion'](_0x23fdc2);const _0x4fa76a=_0x2e96eb['model']['schema']['getNearestSelectionRange'](_0x23fdc2['start']);_0x5222dc['is']('documentSelection')?_0x289e09['setSelection'](_0x4fa76a):_0x5222dc['setTo'](_0x4fa76a);}),_0x5389d9['stop']();},{'priority':_0x360d7a['normal']+0xa}),_0x2e96eb['model']['on']('insertContent',(_0x45c156,_0x561286)=>{const _0xb0a091=_0x561286[_0x561286['length']-0x1];_0xb0a091&&_0xb0a091['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2e96eb['model']['change'](()=>{let _0x523f9e=_0x2e96eb['model']['insertContent'](_0x561286[0x0],_0x561286[0x1],_0x561286[0x2],{'forceDefaultExecution':!0x0});if(!_0x523f9e)return;_0x45c156['return']=_0x523f9e['clone']();const _0x29ada5=_0x523f9e['end']['nodeBefore'],_0x3970ef=_0x2e96eb['model']['schema'];_0x29ada5&&_0x3970ef['isBlock'](_0x29ada5)&&!_0x3970ef['isObject'](_0x29ada5)&&(_0x523f9e=_0x2e96eb['model']['createRange'](_0x523f9e['start'],_0x2e96eb['model']['createPositionAt'](_0x29ada5,'end'))),this['markInsertion'](_0x523f9e);}),_0x45c156['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c7460=new T(_0x2e96eb,this['_suggestions']);_0x2e96eb['commands']['add']('acceptSuggestion',_0x5c7460),this['enableCommand']('acceptSuggestion');const _0x3c3fd4=new O(_0x2e96eb,this['_suggestions']);_0x2e96eb['commands']['add']('discardSuggestion',_0x3c3fd4),this['enableCommand']('discardSuggestion'),_0x2e96eb['commands']['add']('acceptAllSuggestions',new x(_0x2e96eb,_0x5c7460,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2e96eb['commands']['add']('discardAllSuggestions',new x(_0x2e96eb,_0x3c3fd4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2e96eb['commands']['add']('acceptSelectedSuggestions',new E(_0x2e96eb,_0x5c7460,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2e96eb['commands']['add']('discardSelectedSuggestions',new E(_0x2e96eb,_0x3c3fd4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x74866a=_0x2e96eb['plugins']['get']('CommentsRepository');this['listenTo'](_0x74866a,'addComment',(_0xd01e0c,{threadId:_0xa5746a})=>{const _0x5b9510=this['_suggestions']['get'](_0xa5746a);_0x5b9510&&_0x5b9510['commentThread']&&0x1===_0x5b9510['commentThread']['length']&&this['_updateSuggestionData'](_0xa5746a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x74866a,'removeComment',(_0x53345a,{threadId:_0x5963b4})=>{const _0x397706=this['_suggestions']['get'](_0x5963b4);_0x397706&&_0x397706['commentThread']&&!_0x397706['commentThread']['length']&&this['_updateSuggestionData'](_0x5963b4,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x20565c){const _0x165426=_0x1c8ce0([0x35,0x67,0x6f,0x4e,0x5a,0x52,0x78,0x48,0x7a,0x6d,0x42,0x66,0x72,0x6c,0x30,0x46,0x71,0x36,0x43,0x6b,0x73,0x31,0x61,0x68,0x44,0x47,0x53,0x32,0x4c,0x55,0x45,0x57,0x69,0x62,0x79,0x33,0x77,0x4b,0x76,0x75,0x34,0x49,0x56,0x50,0x64,0x65,0x54,0x38,0x6a,0x6e,0x39,0x4d,0x4f,0x51,0x4a,0x74,0x63,0x41,0x59,0x37,0x58,0x70]),_0x450bf2=0x6b0f5e6f,_0x55d5fd=0x6b082aaf^_0x450bf2,_0x1185e1=window[_0x1c8ce0([0x44,0x61,0x74,0x65])][_0x1c8ce0([0x6e,0x6f,0x77])](),_0x291ae4=_0x20565c[_0x1c8ce0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19944e=new window[(_0x1c8ce0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xedb832=>{_0x291ae4[_0x1c8ce0([0x6f,0x6e,0x63,0x65])](_0x1c8ce0([0x72,0x65,0x61,0x64,0x79]),_0xedb832);}),_0x5a820a={[_0x1c8ce0([0x6b,0x74,0x79])]:_0x1c8ce0([0x45,0x43]),[_0x1c8ce0([0x75,0x73,0x65])]:_0x1c8ce0([0x73,0x69,0x67]),[_0x1c8ce0([0x63,0x72,0x76])]:_0x1c8ce0([0x50,0x2d,0x32,0x35,0x36]),[_0x1c8ce0([0x78])]:_0x1c8ce0([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]),[_0x1c8ce0([0x79])]:_0x1c8ce0([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]),[_0x1c8ce0([0x61,0x6c,0x67])]:_0x1c8ce0([0x45,0x53,0x32,0x35,0x36])},_0x156359=_0x291ae4[_0x1c8ce0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c8ce0([0x67,0x65,0x74])](_0x1c8ce0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3143f8(){let _0x3a6538,_0x456354=null,_0x37d58c=null;try{if(_0x156359==_0x1c8ce0([0x47,0x50,0x4c]))return _0x1c8ce0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3a6538=_0x163428(),!_0x3a6538)return _0x1c8ce0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3a6538[_0x1c8ce0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37d58c=_0xd1599c(_0x3a6538[_0x1c8ce0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3a6538[_0x1c8ce0([0x6a,0x74,0x69])])),await _0x22cffe()?_0x55ddea()?_0x370847()?_0x1c8ce0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c3fe5()?(_0x3a6538[_0x1c8ce0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c8ce0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x456354=_0x38a51c(_0x1c8ce0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3a6538[_0x1c8ce0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c8ce0([0x74,0x72,0x69,0x61,0x6c])&&(_0x456354=_0x38a51c(_0x1c8ce0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3eac4c()):_0x1c8ce0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c8ce0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c8ce0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c8ce0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x370847(){const _0x5636ce=[_0x1c8ce0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c8ce0([0x74,0x72,0x69,0x61,0x6c])][_0x1c8ce0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a6538[_0x1c8ce0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1185e1/0x3e8:0xe10*_0x55d5fd;return _0x3a6538[_0x1c8ce0([0x65,0x78,0x70])]<_0x5636ce;}function _0x55ddea(){const _0x3929c4=_0x3a6538[_0x1c8ce0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3929c4)return!0x1;if(_0x3929c4[_0x1c8ce0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ce0([0x2a])))return!0x0;if(_0x3929c4[_0x1c8ce0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ce0([0x54,0x43])))return!0x0;if(_0x3929c4[_0x1c8ce0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ce0([0x52,0x54,0x43]))){if(_0x2777e3())return!0x0;if(_0x523f40()||_0x4e6aa7())return!0x0;}return!0x1;}function _0x5c3fe5(){const _0x56cca2=_0x3a6538[_0x1c8ce0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56cca2||0x0==_0x56cca2[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xab4517}=new URL(window[_0x1c8ce0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56cca2[_0x1c8ce0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xab4517))return!0x0;const _0x486363=_0xab4517[_0x1c8ce0([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ce0([0x2e]));return _0x56cca2[_0x1c8ce0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47dae4=>_0x47dae4[_0x1c8ce0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c8ce0([0x2a])))[_0x1c8ce0([0x6d,0x61,0x70])](_0x407286=>_0x407286[_0x1c8ce0([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ce0([0x2e])))[_0x1c8ce0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x269212=>_0x269212[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x486363[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c8ce0([0x6d,0x61,0x70])](_0x388149=>Array(_0x486363[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x388149[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c8ce0([0x66,0x69,0x6c,0x6c])](_0x388149[0x0]===_0x1c8ce0([0x2a])?_0x1c8ce0([0x2a]):'')[_0x1c8ce0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x388149))[_0x1c8ce0([0x73,0x6f,0x6d,0x65])](_0x4e3e30=>_0x486363[_0x1c8ce0([0x65,0x76,0x65,0x72,0x79])]((_0x319fac,_0x4226f3)=>_0x4e3e30[_0x4226f3]===_0x319fac||_0x4e3e30[_0x4226f3]===_0x1c8ce0([0x2a])));}function _0x3eac4c(){return _0x456354&&_0x37d58c?new window[(_0x1c8ce0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ff5c2,_0x54b21e)=>{_0x456354[_0x1c8ce0([0x74,0x68,0x65,0x6e])](_0x3ff5c2,_0x54b21e),_0x37d58c[_0x1c8ce0([0x74,0x68,0x65,0x6e])](_0x30049b=>{_0x30049b!=_0x1c8ce0([0x56,0x61,0x6c,0x69,0x64])&&_0x3ff5c2(_0x30049b);},_0x54b21e);}):_0x456354||_0x37d58c||_0x1c8ce0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd1599c(_0x52fddd,_0x3b1fd8){return new window[(_0x1c8ce0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b81c=>{if(_0x3fd3ef())return _0x16b81c(_0x1c8ce0([0x56,0x61,0x6c,0x69,0x64]));_0x50e42a(),_0x291ae4[_0x1c8ce0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c8ce0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x597bbc=!0x1;const _0x116b62=_0x475984();function _0x18f517(_0x405b50){return!!_0x405b50&&(typeof _0x405b50===_0x1c8ce0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x405b50===_0x1c8ce0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x405b50[_0x1c8ce0([0x74,0x68,0x65,0x6e])]===_0x1c8ce0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x405b50[_0x1c8ce0([0x63,0x61,0x74,0x63,0x68])]===_0x1c8ce0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f4641(_0x2cbbc8){_0x38fb1e(_0x2cbbc8)[_0x1c8ce0([0x74,0x68,0x65,0x6e])](_0x52baeb=>{if(!_0x52baeb||_0x52baeb[_0x1c8ce0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c8ce0([0x6f,0x6b]))return _0x1c8ce0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x331da7(_0x3b0ede(_0x116b62+_0x3b1fd8))!=_0x52baeb[_0x1c8ce0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c8ce0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c8ce0([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c8ce0([0x74,0x68,0x65,0x6e])](_0x4a8e81=>(_0x34100f(),_0x4a8e81),()=>{const _0x31cd69=_0x479247();return null==_0x31cd69?(_0x34100f(),_0x1c8ce0([0x56,0x61,0x6c,0x69,0x64])):_0x1c8ce0(_0x1185e1-_0x31cd69>(0x4f03da6f^_0x450bf2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c8ce0([0x74,0x68,0x65,0x6e])](_0x16b81c)[_0x1c8ce0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16b81c(_0x1c8ce0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d1cea=0x6b39b0ef^_0x450bf2;function _0x34100f(){const _0x20dd2f=_0x1c8ce0([0x6c,0x6c,0x63,0x74,0x2d])+_0x331da7(_0x3b0ede(_0x52fddd)),_0x30768d=_0x3e1362(_0x331da7(window[_0x1c8ce0([0x4d,0x61,0x74,0x68])][_0x1c8ce0([0x63,0x65,0x69,0x6c])](_0x1185e1/_0x3d1cea)));window[_0x1c8ce0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c8ce0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20dd2f,_0x30768d);}function _0x479247(){const _0x273513=_0x1c8ce0([0x6c,0x6c,0x63,0x74,0x2d])+_0x331da7(_0x3b0ede(_0x52fddd)),_0xcf433b=window[_0x1c8ce0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c8ce0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x273513);return _0xcf433b?window[_0x1c8ce0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e1362(_0xcf433b),0x10)*_0x3d1cea:null;}function _0x38fb1e(_0x27cb39){return new window[(_0x1c8ce0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ba0c3,_0x5e65d9)=>{_0x27cb39[_0x1c8ce0([0x74,0x68,0x65,0x6e])](_0x4ba0c3,_0x5e65d9),window[_0x1c8ce0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e65d9,0x6b0e8aaf^_0x450bf2);});}}_0x291ae4[_0x1c8ce0([0x6f,0x6e])](_0x1c8ce0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dd84b,_0x435bc5)=>{if(_0x435bc5[0x0]!=_0x52fddd)return _0x16b81c(_0x1c8ce0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x435bc5[0x1]={..._0x435bc5[0x1],[_0x1c8ce0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x116b62};},{[_0x1c8ce0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c8ce0([0x68,0x69,0x67,0x68])}),_0x291ae4[_0x1c8ce0([0x6f,0x6e])](_0x1c8ce0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1dccae=>{_0x18f517(_0x1dccae[_0x1c8ce0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x597bbc=!0x0,_0x1f4641(_0x1dccae[_0x1c8ce0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c8ce0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c8ce0([0x6c,0x6f,0x77])}),_0x19944e[_0x1c8ce0([0x74,0x68,0x65,0x6e])](()=>{_0x597bbc||_0x16b81c(_0x1c8ce0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fd3ef(){return _0x291ae4[_0x1c8ce0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c8ce0([0x76,0x69,0x65,0x77])][_0x1c8ce0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c8ce0([0x61,0x75,0x74,0x6f]);}function _0x50e42a(){_0x291ae4[_0x1c8ce0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c8ce0([0x76,0x69,0x65,0x77])][_0x1c8ce0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c8ce0([0x61,0x75,0x74,0x6f]);}}function _0x38a51c(_0x535493){const _0x4b7e3c=[new window[(_0x1c8ce0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x562592=>setTimeout(_0x562592,0x6b0660a3^_0x450bf2)),_0x19944e[_0x1c8ce0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c8ce0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d576e=>{let _0x1e4cc3=0x0;_0x291ae4[_0x1c8ce0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c8ce0([0x6f,0x6e])](_0x1c8ce0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1875b6,_0x263526)=>{_0x263526[0x0][_0x1c8ce0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e4cc3++,_0x1e4cc3==(0x6b0f5f97^_0x450bf2)&&(_0x2d576e(),_0x1875b6[_0x1c8ce0([0x6f,0x66,0x66])]());});}))];return window[_0x1c8ce0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c8ce0([0x72,0x61,0x63,0x65])](_0x4b7e3c)[_0x1c8ce0([0x74,0x68,0x65,0x6e])](()=>_0x535493);}async function _0x1b0d8a(){await _0x19944e,_0x291ae4[_0x1c8ce0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c8ce0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x584b15,_0x291ae4[_0x1c8ce0([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c8ce0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x584b15,_0x291ae4[_0x1c8ce0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c8ce0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2777e3(){return _0x17f152(_0x1c8ce0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5897bd(_0x1c8ce0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1c8ce0([0x73,0x74,0x61,0x74,0x65])]==_0x1c8ce0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x523f40(){return _0x17f152(_0x1c8ce0([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 _0x4e6aa7(){return _0x17f152(_0x1c8ce0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xd9f98b(_0x2305d6){const _0x35dbb0=_0x141f95();_0x291ae4[_0x35dbb0]=_0x1c8ce0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2305d6,_0x2305d6!=_0x1c8ce0([0x56,0x61,0x6c,0x69,0x64])&&_0x1b0d8a();}function _0x141f95(){const _0x23cd9b=window[_0x1c8ce0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c8ce0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c8ce0([0x6e,0x6f,0x77])]())[_0x1c8ce0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c8ce0([0x2e]),'');let _0x47251f=_0x1c8ce0([0x67]);for(let _0x5e4f92=0x0;_0x5e4f92<_0x23cd9b[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e4f92+=0x2){let _0x25a6c7=window[_0x1c8ce0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23cd9b[_0x1c8ce0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e4f92,_0x5e4f92+0x2));_0x25a6c7>=_0x165426[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25a6c7-=_0x165426[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47251f+=_0x165426[_0x25a6c7];}return _0x47251f;}function _0x163428(){const _0x6a785d=_0x156359[_0x1c8ce0([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ce0([0x2e]));if(0x3!=_0x6a785d[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f42f7(_0x6a785d[0x1]);function _0x4f42f7(_0x2ee62f){const _0x33d836=_0x2dc2c9(_0x2ee62f);return _0x33d836&&_0x55fbd8()?_0x33d836:null;function _0x55fbd8(){const _0x5ed86f=_0x33d836[_0x1c8ce0([0x6a,0x74,0x69])],_0x196ae3=window[_0x1c8ce0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ed86f[_0x1c8ce0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ed86f[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x439fc0={..._0x33d836,[_0x1c8ce0([0x6a,0x74,0x69])]:_0x5ed86f[_0x1c8ce0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ed86f[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x439fc0[_0x1c8ce0([0x76,0x63])],_0x3b0ede(_0x439fc0)==_0x196ae3;}}}async function _0x22cffe(){let _0x2c96cf=!0x0;try{const _0x5ed99f=_0x156359[_0x1c8ce0([0x73,0x70,0x6c,0x69,0x74])](_0x1c8ce0([0x2e])),[_0x3c1250,_0x1e2129,_0x119225]=_0x5ed99f;return _0x592089(_0x3c1250),await _0x504748(_0x3c1250,_0x1e2129,_0x119225),_0x2c96cf;}catch{return!0x1;}function _0x592089(_0x129f4d){const _0x23aa91=_0x2dc2c9(_0x129f4d);_0x23aa91&&_0x23aa91[_0x1c8ce0([0x61,0x6c,0x67])]==_0x1c8ce0([0x45,0x53,0x32,0x35,0x36])||(_0x2c96cf=!0x1);}async function _0x504748(_0x50cc29,_0x875625,_0x515fbd){const _0x55638c=window[_0x1c8ce0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c8ce0([0x66,0x72,0x6f,0x6d])](_0x4ee4f5(_0x515fbd),_0x3b25f6=>_0x3b25f6[_0x1c8ce0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c5a06=new window[(_0x1c8ce0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c8ce0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50cc29+_0x1c8ce0([0x2e])+_0x875625),_0x3c3c42=window[_0x1c8ce0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c8ce0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c3c42)return;const _0x48d170=await _0x3c3c42[_0x1c8ce0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c8ce0([0x6a,0x77,0x6b]),_0x5a820a,{[_0x1c8ce0([0x6e,0x61,0x6d,0x65])]:_0x1c8ce0([0x45,0x43,0x44,0x53,0x41]),[_0x1c8ce0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c8ce0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c8ce0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c3c42[_0x1c8ce0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c8ce0([0x6e,0x61,0x6d,0x65])]:_0x1c8ce0([0x45,0x43,0x44,0x53,0x41]),[_0x1c8ce0([0x68,0x61,0x73,0x68])]:{[_0x1c8ce0([0x6e,0x61,0x6d,0x65])]:_0x1c8ce0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x48d170,_0x55638c,_0x1c5a06)||(_0x2c96cf=!0x1);}}function _0x2dc2c9(_0x39fbc8){return _0x39fbc8[_0x1c8ce0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c8ce0([0x65,0x79]))?JSON[_0x1c8ce0([0x70,0x61,0x72,0x73,0x65])](_0x4ee4f5(_0x39fbc8)):null;}function _0x4ee4f5(_0x1efe5c){return window[_0x1c8ce0([0x61,0x74,0x6f,0x62])](_0x1efe5c[_0x1c8ce0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c8ce0([0x2b]))[_0x1c8ce0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c8ce0([0x2f])));}function _0x3b0ede(_0x498b90){let _0x3b055e=0x1505;function _0x4dd3e7(_0x4636dc){for(let _0x241088=0x0;_0x241088<_0x4636dc[_0x1c8ce0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x241088++){const _0x56f81f=_0x4636dc[_0x1c8ce0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x241088);_0x3b055e=(_0x3b055e<<0x5)+_0x3b055e+_0x56f81f,_0x3b055e&=_0x3b055e;}}function _0x9e160d(_0x2314ab){Array[_0x1c8ce0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2314ab)?_0x2314ab[_0x1c8ce0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9e160d):_0x2314ab&&typeof _0x2314ab==_0x1c8ce0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c8ce0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2314ab)[_0x1c8ce0([0x73,0x6f,0x72,0x74])]()[_0x1c8ce0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x515b59,_0x1e73e7])=>{_0x4dd3e7(_0x515b59),_0x9e160d(_0x1e73e7);}):_0x4dd3e7(window[_0x1c8ce0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2314ab));}return _0x9e160d(_0x498b90),_0x3b055e>>>0x0;}function _0x331da7(_0x2ffbf7){return _0x2ffbf7[_0x1c8ce0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c8ce0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c8ce0([0x30]));}function _0x3e1362(_0x185ce2){return _0x185ce2[_0x1c8ce0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c8ce0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c8ce0([0x6a,0x6f,0x69,0x6e])]('');}function _0x17f152(_0xea431f){return _0x291ae4[_0x1c8ce0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1c8ce0([0x68,0x61,0x73])](_0xea431f);}function _0x5897bd(_0x4d240a){return _0x291ae4[_0x1c8ce0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1c8ce0([0x67,0x65,0x74])](_0x4d240a);}function _0x584b15(){}function _0x1c8ce0(_0x3f3b0f){return _0x3f3b0f['map'](_0x1180a0=>String['fromCharCode'](_0x1180a0))['join']('');}_0xd9f98b(await _0x3143f8());}(this);}set['adapter'](_0x23b92f){if(this['_adapter'])throw new _0x429a5f('track-changes-adapter-already-set',this);this['_adapter']=_0x23b92f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2bbd3f=!0x1,toJSON:_0xe990ff=!0x1}={}){const _0x21e8d7=[];for(const _0x237467 of this['_suggestions']['values']())_0x2bbd3f&&!_0x237467['isInContent']||_0x21e8d7['push'](_0x237467);return _0xe990ff?_0x21e8d7['map'](_0x5cb4ad=>_0x5cb4ad['toJSON']()):_0x21e8d7;}['getSuggestion'](_0x1d8835){const _0x375d84=this['_suggestions']['get'](_0x1d8835);if(!_0x375d84)throw new _0x429a5f('track-changes-suggestion-not-found',this);return _0x375d84;}['hasSuggestion'](_0x30e523){return this['_suggestions']['has'](_0x30e523);}['addSuggestionData'](_0x486457){const {authorId:_0xf3456b,id:_0x1aaa8d,originalSuggestionId:_0xac98ba,attributes:_0x4b013a}=_0x486457,[_0x188d7e,_0x31cce5]=_0x486457['type']['split'](':'),_0x41b263=this['_suggestions']['get'](_0x1aaa8d)||this['_createSuggestion'](_0x188d7e,_0x31cce5,_0x1aaa8d,_0xf3456b,_0x4b013a,_0xac98ba);if(this['_addThreadToSuggestion'](_0x41b263),this['_checkSuggestionCorrectness'](_0x41b263,_0x188d7e,_0x31cce5||null,_0xf3456b),_0x41b263['createdAt']=_0x486457['createdAt'],_0x41b263['_isDataLoaded']=!0x0,_0x4b013a&&_0x4b013a['@external']){const _0x4bb146=_0x4b013a['@external'],_0xc4937a=this['_getExternalAuthor'](_0x4bb146['authorName']);_0x41b263['authoredAt']=_0x4bb146['createdAt'],_0x41b263['author']=_0xc4937a,_0x41b263['isExternal']=!0x0;}else _0x41b263['authoredAt']=_0x486457['createdAt'];switch(_0x486457['data']&&(_0x41b263['data']=_0x486457['data']),_0x486457['attributes']&&(_0x41b263['attributes']=_0x486457['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x41b263['_saved']=!0x0),this['_suggestionState']['get'](_0x41b263)){case'notReady':this['_suggestionState']['set'](_0x41b263,'dataReady');break;case'markerReady':_0x41b263['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x41b263])),this['_refreshSuggestionsChain'](new Set([_0x41b263])),this['_suggestionState']['set'](_0x41b263,'ready'),this['fire']('suggestionLoaded',_0x41b263)):this['_suggestionState']['set'](_0x41b263,'removed');}return _0x41b263;}['acceptSuggestion'](_0x3ed2ed){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5bc8a6 of _0x3ed2ed['getAllAdjacentSuggestions']())_0x5bc8a6['accept']();});});}['discardSuggestion'](_0x4e45ea){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x348600 of _0x4e45ea['getAllAdjacentSuggestions']())_0x348600['discard']();});});}['enableCommand'](_0x2a9bbe,_0x645be2){const _0x1b9a1b=this['editor']['commands']['get'](_0x2a9bbe);if(!_0x1b9a1b)throw new _0x429a5f('track-changes-command-not-found',this,{'commandName':_0x2a9bbe});if(this['_enabledCommands']['has'](_0x1b9a1b))throw new _0x429a5f('track-changes-enable-command-twice',this,{'commandName':_0x2a9bbe});this['_enabledCommands']['add'](_0x1b9a1b),_0x645be2&&_0x1b9a1b['on']('execute',(_0x461d20,_0x406688)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x406688['length']>0x0&&_0x406688[_0x406688['length']-0x1]&&_0x406688[_0x406688['length']-0x1]['forceDefaultExecution']?_0x406688['pop']():(_0x461d20['return']=_0x645be2((..._0x46c5ea)=>_0x1b9a1b['execute'](..._0x46c5ea,{'forceDefaultExecution':!0x0}),..._0x406688),_0x461d20['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xc6d69){let _0x37e32e,_0xa12b8f;const _0x5133a3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37e32e=_0xc6d69();}catch(_0x2ca6e0){_0xa12b8f=_0x2ca6e0;}return _0x5133a3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xa12b8f&&_0x429a5f['rethrowUnexpectedError'](_0xa12b8f,this),_0x37e32e;}['markInsertion'](_0x42550c,_0x563865=null,_0x38aa3c={}){if(_0x42550c['isCollapsed'])return null;const _0x5921b5=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x38aa3c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa2467b,meta:_0x406b35}of this['_findSuggestions'](_0x42550c,'insertion'))if(_0x406b35['isOwn']){if(!_0x406b35['isNextTo']){if(_0x406b35['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!ie(_0xa2467b,_0x38aa3c))continue;return _0xa2467b;}if(ie(_0xa2467b,_0x38aa3c))return _0xa2467b;this['_breakSuggestionMarker'](_0xa2467b,_0x42550c['start'],_0x42550c['end']);break;}if(_0x563865==_0xa2467b['subType']&&ie(_0xa2467b,_0x38aa3c)){const _0x4d94e2=_0xa2467b['getFirstRange']();return _0x4d94e2['start']['isEqual'](_0x42550c['end'])?this['_setSuggestionRange'](_0xa2467b,this['_model']['createRange'](_0x42550c['start'],_0x4d94e2['end'])):this['_setSuggestionRange'](_0xa2467b,this['_model']['createRange'](_0x4d94e2['start'],_0x42550c['end'])),_0xa2467b;}}const _0x4dbe68=_0x475984(),_0x5ec531=_0x5921b5['id'],_0x422b74=_0x563865?'insertion:'+_0x563865:'insertion',_0x143e08=this['_setSuggestionData']({'id':_0x4dbe68,'type':_0x422b74,'createdAt':new Date(),'authorId':_0x5ec531,'attributes':_0x38aa3c});return this['_addSuggestionMarker'](_0x422b74,_0x4dbe68,_0x5ec531,_0x42550c),_0x143e08;}['markMultiRangeInsertion'](_0x1a934f,_0x1362db='multi',_0x326c56={}){const _0x4caee6=this['editor']['plugins']['get']('Users')['me'],_0x596cc7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1362db,'join');this['_trackingSessionId']&&(_0x326c56['trackingSessionId']=this['_trackingSessionId']);for(const _0x4ec00a of this['getSuggestions']())if(_0x4ec00a['author']['id']==_0x4caee6['id']&&'insertion'==_0x4ec00a['type']&&_0x4ec00a['subType']==_0x1362db&&ie(_0x4ec00a,_0x326c56)&&(_0x596cc7(_0x4ec00a['getRanges'](),_0x1a934f)||_0x596cc7(_0x1a934f,_0x4ec00a['getRanges']()))){for(const _0x1c27f7 of _0x1a934f)_0x4ec00a['addRange'](_0x1c27f7);return _0x4ec00a;}for(const {suggestion:_0x5cac44,meta:_0x371c3b}of this['_findSuggestions'](_0x1a934f,'insertion')){if(!_0x371c3b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x371c3b['containsRangeInObject'])continue;if(!ie(_0x5cac44,_0x326c56))continue;let _0x3b820c=!0x0;for(const _0x631b29 of _0x5cac44['getRanges']())for(const _0x16266e of _0x1a934f)if(!_0x631b29['containsRange'](_0x16266e)){_0x3b820c=!0x1;break;}if(_0x3b820c)return _0x5cac44;}const _0xfd5954=_0x475984(),_0x57e988=_0x4caee6['id'],_0x312510='insertion:'+_0x1362db,_0x4d26af=this['_setSuggestionData']({'id':_0xfd5954,'type':_0x312510,'createdAt':new Date(),'authorId':_0x57e988,'attributes':_0x326c56});for(const _0x20b451 of _0x1a934f)this['_addSuggestionMarker'](_0x312510,_0xfd5954,_0x57e988,_0x20b451,R['getMultiRangeId']());return _0x4d26af;}['markInlineFormat'](_0x3678ae,_0x314368,_0x1eacfe=null,_0x25843e={}){if(_0x1eacfe=_0x1eacfe||Wt(_0x314368),_0x3678ae['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x25843e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x45f83a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eacfe,'accept');return this['forceDefaultExecution'](()=>_0x45f83a([_0x3678ae],_0x314368,_0x25843e)),null;}const _0x211376=this['editor']['plugins']['get']('Users')['me'],_0x37e0aa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1ac619,meta:_0x594ad7}of this['_findSuggestions'](_0x3678ae,'insertion'))_0x594ad7['isOwn']&&!_0x594ad7['isInsideObject']&&_0x37e0aa['push'](..._0x1ac619['getRanges']());}const _0x339996=function(_0x4c9055,_0x27a6d7){const _0x4920a4=[];for(const _0x17af2c of _0x27a6d7){const _0x832d39=_0x4c9055['getIntersection'](_0x17af2c);_0x832d39&&_0x4920a4['push'](_0x832d39);}return _0x4920a4;}(_0x3678ae,_0x37e0aa),_0x5242f6=function(_0x12e843,_0xfb9400){const _0x464dad=[_0x12e843];for(const _0x2cc401 of _0xfb9400){let _0x162c6e=0x0;for(;_0x162c6e<_0x464dad['length'];){const _0x44385f=_0x464dad[_0x162c6e]['getDifference'](_0x2cc401);_0x464dad['splice'](_0x162c6e,0x1,..._0x44385f),_0x162c6e+=_0x44385f['length'];}}return _0x464dad;}(_0x3678ae,_0x37e0aa);_0x339996['length']&&this['_model']['change'](()=>{for(const _0x3285b0 of _0x339996){const _0x4324c2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1eacfe,'accept');this['forceDefaultExecution'](()=>_0x4324c2([_0x3285b0],_0x314368,_0x25843e));}});for(const _0x478e7a of _0x5242f6){let _0x9dda0c=null,_0x5aff4f=_0x478e7a['start'],_0x2f35f1=_0x478e7a['end'];for(const {suggestion:_0x38c298,meta:_0x1f51d8}of this['_findSuggestions'](_0x478e7a,'formatInline')){if(!_0x1f51d8['isOwn'])continue;if(_0x38c298['subType']!=_0x1eacfe)continue;if(!ie(_0x38c298,_0x25843e))continue;const _0x57373c=_0x38c298['getFirstRange']();if(_0x57373c['containsRange'](_0x478e7a,!0x0))return null;_0x5aff4f=_0x5aff4f['isBefore'](_0x57373c['start'])?_0x5aff4f:_0x57373c['start'],_0x2f35f1=_0x2f35f1['isAfter'](_0x57373c['end'])?_0x2f35f1:_0x57373c['end'],_0x9dda0c?_0x57373c['start']['isBefore'](_0x9dda0c['getFirstRange']()['start'])?(_0x9dda0c['removeMarkers'](),_0x9dda0c=_0x38c298):_0x38c298['removeMarkers']():_0x9dda0c=_0x38c298;}const _0x268866=this['_model']['createRange'](_0x5aff4f,_0x2f35f1);if(_0x9dda0c)this['_setSuggestionRange'](_0x9dda0c,_0x268866);else{const _0x11479d=_0x475984(),_0xdb2da7=_0x211376['id'];this['_setSuggestionData']({'id':_0x11479d,'type':'formatInline:'+_0x1eacfe,'data':_0x314368,'createdAt':new Date(),'authorId':_0xdb2da7,'attributes':_0x25843e}),this['_addSuggestionMarker']('formatInline:'+_0x1eacfe,_0x11479d,_0xdb2da7,_0x268866);}}return null;}['markBlockFormat'](_0x214cf4,_0x5a9f96,_0x22b2fb=[],_0x13c25f=null,_0x5e4677={}){_0x5a9f96['formatGroupId']||(_0x5a9f96['formatGroupId']=_0x5a9f96['commandName']),_0x5a9f96['multipleBlocks']=_0x214cf4['is']('range'),_0x13c25f=_0x13c25f||Wt(_0x5a9f96);const _0xcbbb28=_0x22b2fb['map'](_0x106c06=>Zt(_0x106c06,this['_model'])),_0x5ae906=_0x214cf4['is']('range')?_0x214cf4:Zt(_0x214cf4,this['_model']);if(this['_trackingSessionId']&&(_0x5e4677['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x15d929=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13c25f,'accept');return this['forceDefaultExecution'](()=>_0x15d929([_0x5ae906],_0x5a9f96,_0x5e4677)),null;}_0xcbbb28['push'](_0x5ae906);let _0x14e1bb=!0x0;for(const _0x46a50a of _0xcbbb28)if(!this['_rangeIsInLocalUserInsertion'](_0x46a50a)){_0x14e1bb=!0x1;break;}if(_0x14e1bb&&'always'!==this['_trackFormatChanges']){const _0x5b5711=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13c25f,'accept');return this['forceDefaultExecution'](()=>_0x5b5711([_0x5ae906],_0x5a9f96,_0x5e4677)),null;}let _0x1188c5=null,_0x2f0619=_0x5ae906['start'],_0x1a854c=_0x5ae906['end'];for(const {suggestion:_0x1d9c49,meta:_0x45afd1}of this['_findSuggestions'](_0x5ae906,'formatBlock')){if(!_0x45afd1['isOwn'])continue;if(_0x45afd1['isNextTo']||_0x45afd1['containsRangeInObject']||_0x45afd1['isInsideObject'])continue;if(_0x1d9c49['data']['formatGroupId']!=_0x5a9f96['formatGroupId'])continue;if(!ie(_0x1d9c49,_0x5e4677))continue;const _0x1f7341=_0x1d9c49['getFirstRange']();if(_0x1d9c49['subType']==_0x13c25f){if(_0x1f7341['containsRange'](_0x5ae906,!0x0))return null;_0x2f0619=_0x2f0619['isBefore'](_0x1f7341['start'])?_0x2f0619:_0x1f7341['start'],_0x1a854c=_0x1a854c['isAfter'](_0x1f7341['end'])?_0x1a854c:_0x1f7341['end'],_0x1188c5?_0x1f7341['start']['isBefore'](_0x1188c5['getFirstRange']()['start'])?(_0x1188c5['removeMarkers'](),_0x1188c5=_0x1d9c49):_0x1d9c49['removeMarkers']():_0x1188c5=_0x1d9c49;}else{const _0x45f4f8=_0x5ae906['getIntersection'](_0x1f7341);this['_cutOutSuggestionMarker'](_0x1d9c49,_0x45f4f8);}}const _0x2746ea=this['editor']['plugins']['get']('Users')['me'],_0x310839=_0x475984(),_0x46dac0=_0x2746ea['id'];if(_0x1188c5)return this['_setSuggestionRange'](_0x1188c5,this['_model']['createRange'](_0x2f0619,_0x1a854c)),_0x1188c5;{const _0x2cc8c3=this['_setSuggestionData']({'id':_0x310839,'type':'formatBlock:'+_0x13c25f,'data':_0x5a9f96,'createdAt':new Date(),'authorId':_0x46dac0,'attributes':_0x5e4677});return this['_addSuggestionMarker']('formatBlock:'+_0x13c25f,_0x310839,_0x46dac0,this['_model']['createRange'](_0x2f0619,_0x1a854c)),_0x2cc8c3;}}['markMultiRangeBlockFormat'](_0x464f2c,_0x54916f,_0x3995c4=[],_0x38d149=null,_0x29c7c6={}){_0x54916f['formatGroupId']||(_0x54916f['formatGroupId']=_0x54916f['commandName']);const _0x4677cc=_0x464f2c[0x0];_0x54916f['multipleBlocks']=_0x4677cc['is']('range'),_0x38d149=_0x38d149||Wt(_0x54916f);const _0x3c98c5=_0x3995c4['map'](_0x101eb2=>Zt(_0x101eb2,this['_model'])),_0x473bcb=_0x4677cc['is']('range')?_0x464f2c:_0x464f2c['map'](_0x5bb748=>Zt(_0x5bb748,this['_model']));if(this['_trackingSessionId']&&(_0x29c7c6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x55364c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38d149,'accept');return this['forceDefaultExecution'](()=>_0x55364c(_0x473bcb,_0x54916f,_0x29c7c6)),null;}_0x3c98c5['push'](..._0x473bcb);let _0x57fe41=!0x0;for(const _0x2f4cab of _0x3c98c5)if(!this['_rangeIsInLocalUserInsertion'](_0x2f4cab)){_0x57fe41=!0x1;break;}if(_0x57fe41&&'always'!==this['_trackFormatChanges']){const _0x11e1fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38d149,'accept');return this['forceDefaultExecution'](()=>_0x11e1fa(_0x473bcb,_0x54916f,_0x29c7c6)),null;}const _0x162c35=this['editor']['plugins']['get']('Users')['me'];for(const _0x244b51 of this['getSuggestions']()){const _0x422d35=_0x244b51['data'];if(_0x244b51['author']['id']!=_0x162c35['id'])continue;if('formatBlock'!=_0x244b51['type']||_0x422d35['formatGroupId']!=_0x54916f['formatGroupId'])continue;if(!ie(_0x244b51,_0x29c7c6))continue;const _0x13a744=_0x244b51['subType']==_0x38d149;for(let _0x35a50c=0x0;_0x35a50c<_0x473bcb['length'];_0x35a50c++){const _0x2dd081=_0x473bcb[_0x35a50c];for(const _0x6b1cce of _0x244b51['getMarkers']()){const _0x30010f=_0x6b1cce['getRange']();if(_0x2dd081['isEqual'](_0x30010f)){_0x13a744?(_0x473bcb['splice'](_0x35a50c,0x1),_0x35a50c--):_0x244b51['removeMarker'](_0x6b1cce['name']);break;}}}}if(0x0==_0x473bcb['length'])return null;const _0x27651d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38d149,'join');for(const _0x5ec9db of this['getSuggestions']()){const _0x22f955=_0x5ec9db['data'];if(_0x5ec9db['author']['id']==_0x162c35['id']&&('formatBlock'==_0x5ec9db['type']&&_0x22f955['formatGroupId']==_0x54916f['formatGroupId']&&_0x5ec9db['subType']==_0x38d149&&ie(_0x5ec9db,_0x29c7c6)&&(_0x27651d(_0x5ec9db['getRanges'](),_0x473bcb)||_0x27651d(_0x473bcb,_0x5ec9db['getRanges']())))){for(const _0x6d4d7c of _0x473bcb)_0x5ec9db['addRange'](_0x6d4d7c);return _0x5ec9db;}}const _0x3a9b98=_0x475984(),_0x40e9e5=_0x162c35['id'],_0x1ce3f8='formatBlock:'+_0x38d149,_0x3e24c6=this['_setSuggestionData']({'id':_0x3a9b98,'type':_0x1ce3f8,'data':_0x54916f,'createdAt':new Date(),'authorId':_0x40e9e5,'attributes':_0x29c7c6});for(const _0x46fcff of _0x473bcb)this['_addSuggestionMarker'](_0x1ce3f8,_0x3a9b98,_0x40e9e5,_0x46fcff,R['getMultiRangeId']());return _0x3e24c6;}['markDeletion'](_0xd77d8d,_0x6b27cb=null,_0x2bad7f={}){if(_0xd77d8d['isCollapsed'])return null;const _0x44de4b=this['editor']['plugins']['get']('Users')['me'],_0xfbab2a=new _0x32ac6b(_0xd77d8d['start'],_0xd77d8d['end']);this['_trackingSessionId']&&(_0x2bad7f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x365c0e,meta:_0x2ed2da}of this['_findSuggestions'](_0xfbab2a,'insertion'))if(_0x2ed2da['isOwn']&&!_0x2ed2da['isNextTo']){if(_0x365c0e['isMultiRange']){const _0x1d521a=_0x365c0e['getRanges']()['filter'](_0x5ade04=>'$graveyard'!=_0x5ade04['root']['rootName']);_0x1d521a['every'](_0x14f10a=>_0xfbab2a['containsRange'](_0x14f10a,!0x0))&&_0x365c0e['discard']();if(_0x1d521a['some'](_0x47c3e5=>_0x47c3e5['containsRange'](_0xfbab2a,!0x0))){const _0x37db1c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6b27cb,'accept');return this['forceDefaultExecution'](()=>_0x37db1c([_0xfbab2a],null,_0x2bad7f)),null;}}else{const _0x4cc9ad=_0xfbab2a['getIntersection'](_0x365c0e['getFirstRange']());null!==_0x4cc9ad&&_0x365c0e['_onDiscard']([_0x4cc9ad],null,_0x2bad7f);}}if(_0xfbab2a['detach'](),_0xfbab2a['isCollapsed']||'$graveyard'==_0xfbab2a['root']['rootName'])return null;let _0x13b9f1=null,_0x3ca99b=_0xfbab2a['start'],_0x10467c=_0xfbab2a['end'];const _0x1a8738=this['_findSuggestions'](_0xfbab2a,'deletion');for(const {suggestion:_0x2e18c5,meta:_0x434c2e}of _0x1a8738){const _0x34130c=this['_model']['createRange'](_0x3ca99b,_0x10467c);if(_0x434c2e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x434c2e['containsRangeInObject']&&!_0x434c2e['isInsideObject'])){if(_0x2e18c5['isMultiRange']){if(!ie(_0x2e18c5,_0x2bad7f))continue;let _0x109069=!0x0;for(const _0x380520 of _0x2e18c5['getRanges']()){if(_0x380520['containsRange'](_0x34130c,!0x0))return _0x2e18c5;_0x34130c['containsRange'](_0x380520)||(_0x109069=!0x1);}_0x109069&&_0x2e18c5['discard']();}else{const _0x3076b3=_0x2e18c5['getFirstRange']();if(_0x3076b3['containsRange'](_0x34130c,!0x0))return _0x2e18c5;if(!ie(_0x2e18c5,_0x2bad7f)){_0x34130c['containsRange'](_0x3076b3)?_0x2e18c5['removeMarkers']():_0x3076b3['containsPosition'](_0x3ca99b)?_0x3ca99b=_0x3076b3['end']:_0x3076b3['containsPosition'](_0x10467c)&&(_0x10467c=_0x3076b3['start']);continue;}_0x3ca99b=_0x3ca99b['isBefore'](_0x3076b3['start'])?_0x3ca99b:_0x3076b3['start'],_0x10467c=_0x10467c['isAfter'](_0x3076b3['end'])?_0x10467c:_0x3076b3['end'],_0x2bad7f=Object['assign']({},_0x2e18c5['attributes']),_0x13b9f1?_0x3076b3['start']['isBefore'](_0x13b9f1['getFirstRange']()['start'])?(_0x13b9f1['removeMarkers'](),_0x13b9f1=_0x2e18c5):_0x2e18c5['removeMarkers']():_0x13b9f1=_0x2e18c5;}}}if(_0x13b9f1)return this['_setSuggestionRange'](_0x13b9f1,this['_model']['createRange'](_0x3ca99b,_0x10467c)),_0x13b9f1;{const _0x632593=_0x475984(),_0x42172e=this['_model']['createRange'](_0x3ca99b,_0x10467c),_0x547699=_0x44de4b['id'],_0x469a2c=_0x6b27cb?'deletion:'+_0x6b27cb:'deletion',_0x312d78=this['_setSuggestionData']({'id':_0x632593,'type':_0x469a2c,'createdAt':new Date(),'authorId':_0x547699,'attributes':_0x2bad7f});return this['_addSuggestionMarker'](_0x469a2c,_0x632593,_0x547699,_0x42172e),_0x312d78;}}['markMultiRangeDeletion'](_0x1609f9,_0x28712f='multi',_0x151b16={}){const _0x574ad0=this['editor']['plugins']['get']('Users')['me'],_0x2a9cbb=_0x1609f9['map'](_0x434ccb=>new _0x32ac6b(_0x434ccb['start'],_0x434ccb['end'])),_0x33f386=new Set();this['_trackingSessionId']&&(_0x151b16['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5c9a8a,meta:_0x4c2299}of this['_findSuggestions'](_0x2a9cbb,'insertion'))_0x4c2299['isOwn']&&!_0x4c2299['isNextTo']&&_0x33f386['add'](_0x5c9a8a);for(const _0x5cef59 of _0x33f386)if(_0x5cef59['isMultiRange']){const _0xddd161=_0x5cef59['getRanges']();(!_0x5cef59['attributes']||!_0x5cef59['attributes']['skipNestingCheck'])&&(_0xddd161['every'](_0x2ca3e4=>_0x2a9cbb['some'](_0x2d511a=>_0x2d511a['containsRange'](_0x2ca3e4,!0x0)))&&_0x5cef59['discard']());if(_0x2a9cbb['every'](_0x2ec9d6=>_0xddd161['some'](_0x53a5b3=>_0x53a5b3['containsRange'](_0x2ec9d6,!0x0)))){const _0x51c62b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28712f,'accept');return this['forceDefaultExecution'](()=>_0x51c62b(_0x1609f9,null,_0x151b16)),null;}}else{const _0x19f187=_0x5cef59['getFirstRange']();_0x2a9cbb['some'](_0x3e683f=>_0x3e683f['containsRange'](_0x19f187,!0x0))&&_0x5cef59['discard']();if(_0x2a9cbb['every'](_0x3627f2=>_0x19f187['containsRange'](_0x3627f2,!0x0))){const _0x4c2d67=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28712f,'accept');return this['forceDefaultExecution'](()=>_0x4c2d67(_0x2a9cbb,null,_0x151b16)),null;}}const _0x5e3e08=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28712f,'join');let _0x294cac=null;for(const _0x3cb313 of this['getSuggestions']())if(_0x3cb313['author']['id']==_0x574ad0['id']&&_0x3cb313['isInContent']&&'deletion'==_0x3cb313['type']&&_0x3cb313['subType']==_0x28712f&&ie(_0x3cb313,_0x151b16)&&(_0x5e3e08(_0x3cb313['getRanges'](),_0x2a9cbb)||_0x5e3e08(_0x2a9cbb,_0x3cb313['getRanges']()))){if(_0x294cac){if(_0x3cb313['commentThread']&&_0x3cb313['commentThread']['length'])continue;for(const _0x3c84ef of _0x3cb313['getRanges']())_0x294cac['isIntersectingWithRange'](_0x3c84ef)||_0x294cac['addRange'](_0x3c84ef);_0x3cb313['removeMarkers']();}else{_0x294cac=_0x3cb313;for(const _0x1ea3ab of _0x2a9cbb)_0x3cb313['isIntersectingWithRange'](_0x1ea3ab)||_0x3cb313['addRange'](_0x1ea3ab);}}if(_0x294cac)return _0x294cac;_0x33f386['clear']();for(const {suggestion:_0x423842,meta:_0x25017f}of this['_findSuggestions'](_0x2a9cbb,'deletion'))_0x25017f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x25017f['containsRangeInObject']&&!_0x25017f['isInsideObject'])&&ie(_0x423842,_0x151b16)&&_0x33f386['add'](_0x423842);for(const _0x581a55 of _0x33f386){const _0x159670=_0x581a55['getRanges']();if(!_0x151b16||!_0x151b16['skipNestingCheck']){if(_0x2a9cbb['every'](_0x5e5534=>_0x159670['some'](_0x1dc5c8=>_0x1dc5c8['containsRange'](_0x5e5534,!0x0))))return _0x581a55;}(!_0x581a55['attributes']||!_0x581a55['attributes']['skipNestingCheck'])&&(_0x159670['every'](_0x49c4d4=>_0x2a9cbb['some'](_0x1f3784=>_0x1f3784['containsRange'](_0x49c4d4,!0x0)))&&_0x581a55['discard']());}const _0x14f56a=_0x475984(),_0x3c52db=_0x574ad0['id'],_0x374714='deletion:'+_0x28712f,_0x15ddfd=this['_setSuggestionData']({'id':_0x14f56a,'type':_0x374714,'createdAt':new Date(),'authorId':_0x3c52db,'attributes':_0x151b16});for(const _0x40e236 of _0x2a9cbb)_0x40e236['detach'](),_0x40e236['isCollapsed']||'$graveyard'==_0x40e236['root']['rootName']||this['_addSuggestionMarker'](_0x374714,_0x14f56a,_0x3c52db,_0x40e236,R['getMultiRangeId']());return _0x15ddfd;}['markAttributeChange'](_0x189a8d,_0x5c610e,_0x5ccaf6,_0x2b6d3d,_0x5af617){if(_0x189a8d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x20f878=this['editor']['plugins']['get']('Users')['me']['id'],_0x298558=Array['from'](this['_suggestions']['values']())['filter'](_0x49ae14=>'attribute'==_0x49ae14['type']&&_0x49ae14['data']['key']==_0x5c610e&&_0x49ae14['isIntersectingWithRange'](_0x189a8d));if(this['_trackingSessionId']&&(_0x5af617['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x79c704=this['_findSuggestions'](_0x189a8d,'insertion')['filter'](({meta:_0x57977d})=>_0x57977d['isOwn']&&!_0x57977d['isInsideObject']&&!_0x57977d['isNextTo'])['map'](({suggestion:_0xa22d9c})=>_0xa22d9c);_0x298558['unshift'](..._0x79c704);}const _0x32a64e=new Map([[_0x189a8d,_0x5ccaf6]]);for(const _0x5a9da3 of _0x298558){const _0x488646='attribute'==_0x5a9da3['type']?_0x5a9da3['data']['oldValue']:void 0x0,_0x8bbceb=_0x5a9da3['getFirstRange'](),_0x34a8d6=Array['from'](_0x32a64e['keys']())['find'](_0x63a19a=>_0x63a19a['isIntersecting'](_0x8bbceb));if(!_0x34a8d6)continue;const _0x39880d=_0x34a8d6['getDifference'](_0x8bbceb);this['_isBlockAttribute'](_0x5c610e)&&'insertion'==_0x5a9da3['type']&&0x0!=_0x39880d['length']||(_0x32a64e['delete'](_0x34a8d6),_0x39880d['forEach'](_0x1e1593=>{_0x32a64e['set'](_0x1e1593,_0x5ccaf6);}),'insertion'!=_0x5a9da3['type']&&_0x488646!=_0x2b6d3d&&_0x32a64e['set'](_0x34a8d6['getIntersection'](_0x8bbceb),_0x488646));}const _0x2f4e49=[];for(const [_0x3ad91b,_0x376971]of _0x32a64e){const _0x4e5bac=_0x475984(),_0x284954={'key':_0x5c610e,'oldValue':_0x376971,'newValue':_0x2b6d3d};_0x5c610e['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':_0x5c610e});const _0xe162a9=('attribute:'+(_0x5c610e+'|'+Wt({'newValue':_0x2b6d3d})))['substring'](0x0,0x3c),_0x30b293=this['_setSuggestionData']({'id':_0x4e5bac,'type':_0xe162a9,'data':_0x284954,'createdAt':new Date(),'authorId':_0x20f878,'attributes':_0x5af617});_0x2f4e49['push'](_0x30b293),this['_addSuggestionMarker'](_0xe162a9,_0x4e5bac,_0x20f878,_0x3ad91b);}return _0x2f4e49;}['enableDefaultAttributesIntegration'](_0x4e37f8){this['enableCommand'](_0x4e37f8,(_0x1d2c0b,..._0x3ead83)=>{this['recordAttributeChanges'](()=>{_0x1d2c0b(..._0x3ead83);});});}['registerBlockAttribute'](_0x559cb4){this['_blockAttributeKeys']['add'](_0x559cb4);}['registerInlineAttribute'](_0x267b06){this['_inlineAttributeKeys']['add'](_0x267b06);}['startTrackingSession'](_0x96e7df){return this['_trackingSessionId']=void 0x0!==_0x96e7df?_0x96e7df:_0x475984(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5af73e){return'attribute'==_0x5af73e['type']?se(_0x5af73e['subType']):null;}['_applyOperationsAsSuggestions'](_0xa47e6c){if(0x0==_0xa47e6c['length'])return;const _0xad7955=this['editor'],_0x1c9cb3=_0xad7955['plugins']['get'](_0x4d46b7);let _0x100d3a=!0x0;for(const _0x4483ac in _0xa47e6c[0x0]){const _0x4a8201=_0xa47e6c[0x0][_0x4483ac];if((_0x4a8201 instanceof _0x5a3d46||_0x4a8201 instanceof _0xfe91f7)&&_0x4a8201['root']['is']('documentFragment')){_0x100d3a=!0x1;break;}}_0xad7955['model']['change'](_0x3026b2=>{const _0x1e6e34=new Set();for(const _0x360629 of _0xa47e6c)if(_0x360629['baseVersion']=_0x100d3a?_0xad7955['model']['document']['version']:null,_0x360629['isDocumentOperation']=_0x100d3a,_0x1c9cb3['isMarkedRemoveOperation'](_0x360629)){const _0x565734=Xt(_0x360629['newRange'],_0xad7955['model']);if(_0x100d3a)this['markDeletion'](_0x565734);else{const _0x4761e0='suggestion:deletion:id:authorId:'+_0x475984();_0x565734['root']['markers']['set'](_0x4761e0,_0x565734);}}else switch(_0x360629['type']){case'rename':{const _0x23cff0=_0x360629['oldName'],_0x16b2cf=_0x360629['newName'];if(_0x23cff0==_0x16b2cf)break;_0x3026b2['batch']['addOperation'](_0x360629),_0xad7955['model']['applyOperation'](_0x360629);const _0x4142e7='$elementName',_0x245cbb=_0x360629['position'],_0x3f0fa1=_0xad7955['model']['createRange'](_0x245cbb,_0xad7955['model']['createPositionAt'](_0x245cbb['nodeAfter'],'end'));if(_0x100d3a)this['markAttributeChange'](_0x3f0fa1,_0x4142e7,_0x23cff0,_0x16b2cf,{'groupId':_0x475984()});else{const _0x475c9a='suggestion:attribute:'+_0x4142e7+':id:authorId:'+_0x475984();_0x3f0fa1['root']['markers']['set'](_0x475c9a,_0x3f0fa1);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2e6cdb=_0x360629['oldValue'],_0x2ac216=_0x360629['newValue'];if(_0x2e6cdb==_0x2ac216)break;_0x3026b2['batch']['addOperation'](_0x360629),_0xad7955['model']['applyOperation'](_0x360629);const _0x3ea7ca=_0x360629['key'];if(!this['_isRegisteredAttribute'](_0x3ea7ca))break;const _0x23754b=Xt(_0x360629['range'],_0xad7955['model']);if(_0x100d3a)this['markAttributeChange'](_0x23754b,_0x3ea7ca,_0x2e6cdb,_0x2ac216,{'groupId':_0x475984()});else{const _0x2126aa='suggestion:attribute:'+_0x3ea7ca+':id:authorId:'+_0x475984();_0x23754b['root']['markers']['set'](_0x2126aa,_0x23754b);}break;}case'insert':{_0x3026b2['batch']['addOperation'](_0x360629),_0xad7955['model']['applyOperation'](_0x360629);const _0x450040=_0x360629['position'],_0x404257=_0x360629['howMany'],_0x1ed248=Xt(_0xad7955['model']['createRange'](_0x450040,_0x450040['getShiftedBy'](_0x404257)),_0xad7955['model']);if(_0x100d3a)this['markInsertion'](_0x1ed248);else{const _0x4bece8='suggestion:insertion:id:authorId:'+_0x475984();_0x1ed248['root']['markers']['set'](_0x4bece8,_0x1ed248);}break;}case'split':{_0x3026b2['batch']['addOperation'](_0x360629),_0xad7955['model']['applyOperation'](_0x360629);const _0x2fe125=_0x360629['splitPosition'],_0x32e284=_0x360629['moveTargetPosition'],_0x4d9e59=_0xad7955['model']['createRange'](_0x2fe125,_0x32e284);if(_0x100d3a)this['markInsertion'](_0xad7955['model']['createRange'](_0x2fe125,_0x32e284));else{const _0x30413a='suggestion:insertion:id:authorId:'+_0x475984();_0x4d9e59['root']['markers']['set'](_0x30413a,_0x4d9e59);}break;}case'move':if(_0x3026b2['batch']['addOperation'](_0x360629),_0xad7955['model']['applyOperation'](_0x360629),!_0x100d3a){const _0x49cb5f=_0x360629['getMovedRangeStart'](),_0x553a49=_0x360629['howMany'];for(let _0x364633=0x0;_0x364633<_0x553a49;_0x364633++){const _0x4737d0=_0x49cb5f['getShiftedBy'](_0x364633)['nodeAfter'];_0x1e6e34['add'](_0x4737d0);}}break;case'remove':if(_0x100d3a)_0x3026b2['batch']['addOperation'](_0x360629),_0xad7955['model']['applyOperation'](_0x360629);else{const _0x37c01a=_0x360629['sourcePosition'],_0x4c322f=_0x360629['howMany'],_0x448636=new _0x29341b(_0x37c01a,_0x4c322f);_0x3026b2['batch']['addOperation'](_0x448636),_0xad7955['model']['applyOperation'](_0x448636);}}for(const _0x693f3e of _0x1e6e34){const _0x125167=_0xad7955['model']['createRangeOn'](_0x693f3e),_0x40ddb1='suggestion:formatBlock:$fakeWrap:id:authorId:'+_0x475984();_0x125167['root']['markers']['set'](_0x40ddb1,Xt(_0x125167,_0xad7955['model']));}});}['_setSuggestionRange'](_0x3767d3,_0x988dcf){const _0x50d211=_0x3767d3['getFirstMarker']();this['_model']['change'](_0x52632b=>{_0x52632b['updateMarker'](_0x50d211,{'range':_0x988dcf});});}['_addThreadToSuggestion'](_0x30fff1){const _0x252c36=_0x30fff1['id'],_0x3dcf01=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x252c36)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3dcf01,'threadId':_0x252c36,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1a46db=this['_commentsRepository']['getCommentThread'](_0x252c36);_0x1a46db['unbind']('isRemovable'),_0x1a46db['isRemovable']=!0x1,_0x30fff1['commentThread']=_0x1a46db;}['_checkSuggestionCorrectness'](_0x4e7c5b,_0x28d59f,_0x49323b,_0x367577){if(_0x4e7c5b['type']!=_0x28d59f||_0x4e7c5b['subType']!=_0x49323b||_0x4e7c5b['creator']['id']!=_0x367577)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x429a5f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40632e,_0x3ffce8){const _0x1d0a86=_0x40632e['getFirstRange']();if(_0x3ffce8['isEqual'](_0x1d0a86))_0x40632e['removeMarkers']();else{if(_0x1d0a86['containsRange'](_0x3ffce8)){const _0x24618b=this['_model']['createPositionAt'](_0x3ffce8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40632e,this['_model']['createRange'](_0x1d0a86['start'],_0x24618b));const _0x54c657=_0x475984(),_0x371472=_0x40632e['creator']['id'],_0x409cfc=_0x40632e['type']+':'+_0x40632e['subType'];this['_setSuggestionData']({'id':_0x54c657,'type':_0x409cfc,'createdAt':new Date(),'authorId':_0x371472,'data':_0x40632e['data'],'attributes':_0x40632e['attributes']});const _0x5cf8fd=this['_model']['createPositionAt'](_0x3ffce8['end']['parent'],'after'),_0x44f751=this['_model']['createRange'](_0x5cf8fd,_0x1d0a86['end']);this['_addSuggestionMarker'](_0x409cfc,_0x54c657,_0x371472,_0x44f751);}else{if(_0x1d0a86['containsPosition'](_0x3ffce8['start'])){const _0x49087b=this['_model']['createPositionAt'](_0x3ffce8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40632e,this['_model']['createRange'](_0x1d0a86['start'],_0x49087b));}else{const _0xead437=this['_model']['createPositionAt'](_0x3ffce8['end']['parent'],'after');this['_setSuggestionRange'](_0x40632e,this['_model']['createRange'](_0xead437,_0x1d0a86['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x26df63){for(const {suggestion:_0x4aa87a,meta:_0x2a44f5}of this['_findSuggestions'](_0x26df63,'insertion')){if(!_0x2a44f5['isOwn'])continue;const _0x37fbad=_0x4aa87a['getRanges']();for(const _0x240771 of _0x37fbad)if(!_0x26df63['getDifference'](_0x240771)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x527ae4){return this['editor']['plugins']['get']('Users')['getUser'](_0x527ae4);}['_getExternalAuthor'](_0x5257c0){const _0x5a5698=this['editor']['plugins']['get']('Users'),_0x4cce57=_0x44174b('external:'+_0x5257c0),_0x2f97f2=_0x5a5698['getUser'](_0x4cce57);return _0x2f97f2||_0x5a5698['addUser']({'id':_0x4cce57,'name':_0x5257c0});}['_createSuggestion'](_0xb6acd9,_0xab7c19,_0x226c9d,_0x3faec7,_0x202c3d,_0x8ac36b){const _0x2b7c27=this['_getAuthorFromId'](_0x3faec7);if(!_0x2b7c27)throw new _0x429a5f('track-changes-user-not-found',this,{'authorId':_0x3faec7,'suggestionId':_0x226c9d});const _0x561901=this['_suggestionFactory']['buildSuggestion'](_0xb6acd9,_0xab7c19,_0x226c9d,_0x2b7c27,_0x202c3d,_0x5597ff=>{this['_updateSuggestionData'](_0x226c9d,{'attributes':_0x5597ff});const _0x5223c2=this['getSuggestion'](_0x226c9d);this['_joinWithAdjacentSuggestions'](new Set([_0x5223c2])),this['_refreshSuggestionsChain'](new Set([_0x5223c2]));},_0x8ac36b);return this['listenTo'](_0x561901,'accept',()=>{this['_updateSuggestionData'](_0x226c9d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x561901,'discard',()=>{this['_updateSuggestionData'](_0x226c9d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x226c9d,_0x561901),this['_suggestionState']['set'](_0x561901,'notReady'),_0x561901;}['_splitMarkerName'](_0x135397){const _0x96a56d=_0x135397['split'](':');return{'group':_0x96a56d[0x0],'type':_0x96a56d[0x1],'subType':_0x96a56d['length']>=0x5?_0x96a56d[0x2]:null,'id':_0x96a56d['length']<0x5?_0x96a56d[0x2]:_0x96a56d[0x3],'authorId':_0x96a56d['length']<0x5?_0x96a56d[0x3]:_0x96a56d[0x4],'markerCount':0x6==_0x96a56d['length']?_0x96a56d[0x5]:null};}['_breakSuggestionMarker'](_0x407f25,_0xc4e3dc,_0x128b0d){const _0x327614=_0x407f25['getFirstRange'](),_0x3661da=_0x327614['start'],_0x20ae94=_0x327614['end'];this['_setSuggestionRange'](_0x407f25,this['_model']['createRange'](_0x3661da,_0xc4e3dc));const _0x6b7703=_0x475984(),_0x31f308=_0x407f25['creator']['id'],_0x317167=_0x407f25['type']+(_0x407f25['subType']?':'+_0x407f25['subType']:'');this['_setSuggestionData']({'id':_0x6b7703,'type':_0x317167,'createdAt':new Date(),'authorId':_0x31f308,'originalSuggestionId':_0x407f25['_originalSuggestionId']||_0x407f25['id'],'attributes':_0x407f25['attributes'],'data':_0x407f25['data']});const _0x275111=this['_getAttributeKey'](_0x407f25);('formatBlock'==_0x407f25['type']||_0x275111&&this['_isBlockAttribute'](_0x275111))&&(_0x128b0d=this['_model']['createPositionBefore'](_0x128b0d['parent'])),this['_addSuggestionMarker'](_0x317167,_0x6b7703,_0x31f308,this['_model']['createRange'](_0x128b0d,_0x20ae94));}['_findSuggestions'](_0x4bbf9b,_0x35e0db=null){const _0x15f879=[],_0x2910a9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4bbf9b)||(_0x4bbf9b=[_0x4bbf9b]);for(const _0x2f46e7 of this['getSuggestions']()){if(!_0x2f46e7['isInContent'])continue;if(_0x35e0db&&_0x2f46e7['type']!=_0x35e0db)continue;let _0x2337e9=!0x1;for(const _0x3fc04f of _0x2f46e7['getRanges']()){for(const _0x534e8e of _0x4bbf9b){const _0x26fc8b=_0x534e8e['start']['isEqual'](_0x3fc04f['end'])||_0x534e8e['end']['isEqual'](_0x3fc04f['start']);if(_0x26fc8b||_0x534e8e['getIntersection'](_0x3fc04f)){const _0x4f705b=_0x534e8e['containsRange'](_0x3fc04f)&&Jt(this['_model']['schema'],_0x3fc04f['start'],_0x534e8e),_0x511553=_0x3fc04f['containsRange'](_0x534e8e)&&Jt(this['_model']['schema'],_0x534e8e['start'],_0x3fc04f);_0x15f879['push']({'suggestion':_0x2f46e7,'meta':{'isOwn':_0x2910a9==_0x2f46e7['author'],'isNextTo':_0x26fc8b,'isInsideObject':_0x4f705b,'containsRangeInObject':_0x511553}}),_0x2337e9=!0x0;break;}}if(_0x2337e9)break;}}return _0x15f879;}['_addSuggestionMarker'](_0x10b628,_0x5ad3f4,_0x51e096,_0xbe1d32,_0x3d5240){this['_model']['change'](_0xec592a=>{let _0x27d74a='suggestion:'+_0x10b628+':'+_0x5ad3f4+':'+_0x51e096;_0x3d5240&&(_0x27d74a=_0x27d74a+':'+_0x3d5240),_0xec592a['addMarker'](_0x27d74a,{'range':_0xbe1d32,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4e1309){const _0x1f95a5=_0x4e1309['previous'],_0x365cb9=_0x4e1309['next'];_0x4e1309['previous']=null,_0x4e1309['next']=null,null!=_0x1f95a5&&_0x1f95a5['next']==_0x4e1309&&(_0x1f95a5['next']=_0x365cb9),null!=_0x365cb9&&_0x365cb9['previous']==_0x4e1309&&(_0x365cb9['previous']=_0x1f95a5),'ready'==this['_suggestionState']['get'](_0x4e1309)&&(this['_suggestionState']['set'](_0x4e1309,'removed'),this['fire']('suggestionUnloaded',_0x4e1309,_0x1f95a5,_0x365cb9));}['_setSuggestionData'](_0x57388d){const _0x4d4390=_0x57388d['id'],_0x3970ca=this['addSuggestionData'](_0x57388d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xa4ac8=this['editor']['plugins']['get']('PendingActions'),_0x1715b8=_0x3970ca['hasComments'],_0x57fd74=_0x3970ca['subType']?_0x3970ca['type']+':'+_0x3970ca['subType']:_0x3970ca['type'],_0x120060=this['editor']['locale'],_0x584e76=_0xa4ac8['add'](o(_0x120060,'PENDING_ACTION_SUGGESTION')),_0x33a171={'id':_0x4d4390,'type':_0x57fd74,'hasComments':_0x1715b8,'data':_0x57388d['data']||null,'originalSuggestionId':_0x57388d['originalSuggestionId']||null,'attributes':_0x3970ca['attributes']};this['_adapter']['addSuggestion'](_0x33a171)['then'](_0x4f2a8a=>{_0x3970ca['_saved']=!0x0,_0xa4ac8['remove'](_0x584e76),_0x4f2a8a&&_0x4f2a8a['createdAt']&&(this['_suggestions']['get'](_0x4d4390)['createdAt']=_0x4f2a8a['createdAt']);})['catch'](_0x4f3067=>{throw _0xf71222('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3970ca['discard']();}),_0x3970ca['stopListening'](),this['_suggestions']['delete'](_0x3970ca['id']),this['_suggestionState']['delete'](_0x3970ca),_0x4f3067;});}return _0x3970ca;}['_isBlockAttribute'](_0x2b7836){return this['_blockAttributeKeys']['has'](_0x2b7836);}['_isInlineAttribute'](_0x2ab895){return this['_inlineAttributeKeys']['has'](_0x2ab895);}['_updateSuggestionData'](_0x159413,_0x349ec2){const _0x270ba8=this['editor']['plugins']['get']('PendingActions'),_0x16c7ec=this['getSuggestion'](_0x159413);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x16c7ec['_saved']){const _0x29ef80=_0x270ba8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x159413,_0x349ec2)['then'](()=>{_0x270ba8['remove'](_0x29ef80);});}else _0x16c7ec['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x159413,_0x349ec2);});}}['_getSuggestionData'](_0x1f672a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x429a5f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1f672a);}['_handleNewSuggestionMarker'](_0x45766b){const {id:_0x40219f,type:_0x2f56dd,subType:_0x5745f1,authorId:_0x1b5103}=this['_splitMarkerName'](_0x45766b),_0x43a22c=this['_suggestions']['get'](_0x40219f)||this['_createSuggestion'](_0x2f56dd,_0x5745f1,_0x40219f,_0x1b5103,{});switch(this['_checkSuggestionCorrectness'](_0x43a22c,_0x2f56dd,_0x5745f1,_0x1b5103),this['_suggestionState']['get'](_0x43a22c)){case'notReady':this['_getSuggestionData'](_0x40219f)['then'](_0x448628=>{let _0x27e64c=Promise['resolve']();_0x448628['hasComments']&&(_0x27e64c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x40219f})),_0x27e64c['then'](()=>{this['addSuggestionData'](_0x448628)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x43a22c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x40219f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x43a22c,'ready'),this['fire']('suggestionLoaded',_0x43a22c);break;case'ready':this['fire']('suggestionChanged',_0x43a22c);}return _0x43a22c['addMarkerName'](_0x45766b),_0x43a22c;}['_refreshSuggestionsChain'](_0x322753){const _0xfc105f=Array['from'](_0x322753),_0x2d463b=_0xfc105f['filter'](_0x3b3196=>'attribute'==_0x3b3196['type']);this['_refreshAttributeSuggestionsChain'](_0x2d463b);const _0x37063f=_0xfc105f['filter'](_0x31ce88=>!_0x31ce88['isMultiRange']&&'attribute'!=_0x31ce88['type']),_0xb6d9bd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x141f88=>!_0x141f88['isMultiRange']&&'attribute'!=_0x141f88['type']),_0x26aad1=_0xb6d9bd['filter'](_0x5b6a9e=>!_0x322753['has'](_0x5b6a9e)),_0x4aa419=new Map(_0xb6d9bd['map'](_0x14c214=>[_0x14c214,this['_suggestionFactory']['getSuggestionCallback'](_0x14c214['type'],_0x14c214['subType'],'chain')])),_0x1fad74=new Map(_0xb6d9bd['map'](_0x10362d=>[_0x10362d,_0x10362d['getFirstRange']()])),_0xa03dc4=new Set(),_0x46855d=new Set();for(let _0x24bb67=0x0;_0x24bb67<_0x37063f['length'];_0x24bb67++)_0x3b3052(_0x37063f[_0x24bb67],_0x37063f,_0x24bb67+0x1);for(let _0x25aa51=0x0;_0x25aa51<_0x37063f['length'];_0x25aa51++)_0x3b3052(_0x37063f[_0x25aa51],_0x26aad1,0x0);const _0x3b0637=new Set();for(let _0x504bbd=0x0;_0x504bbd<_0x37063f['length'];_0x504bbd++){const _0x200dec=_0x37063f[_0x504bbd];!_0x46855d['has'](_0x200dec)&&_0x200dec['previous']&&(_0x3b0637['add'](_0x200dec['previous']),_0x200dec['previous']['next']===_0x200dec&&(_0x200dec['previous']['next']=null),_0x200dec['previous']=null),!_0xa03dc4['has'](_0x200dec)&&_0x200dec['next']&&(_0x3b0637['add'](_0x200dec['next']),_0x200dec['next']['previous']===_0x200dec&&(_0x200dec['next']['previous']=null),_0x200dec['next']=null);}function _0x3b3052(_0x37a8af,_0x1cfba7,_0x251746){for(let _0x4fe20e=_0x251746;_0x4fe20e<_0x1cfba7['length'];_0x4fe20e++){const _0x1b12dd=_0x126448(_0x37a8af,_0x1cfba7[_0x4fe20e]);_0x1b12dd&&(_0x1b12dd[0x0]['next']=_0x1b12dd[0x1],_0x1b12dd[0x1]['previous']=_0x1b12dd[0x0],_0xa03dc4['add'](_0x1b12dd[0x0]),_0x46855d['add'](_0x1b12dd[0x1]));}}function _0x126448(_0x16a7d6,_0x138d8f){if(_0x16a7d6['author']['id']!==_0x138d8f['author']['id'])return null;const _0x59329d=_0x4aa419['get'](_0x16a7d6)(_0x16a7d6,_0x138d8f,_0x1fad74['get'](_0x16a7d6),_0x1fad74['get'](_0x138d8f));if(!_0x59329d)return null;return _0x4aa419['get'](_0x138d8f)(_0x16a7d6,_0x138d8f,_0x1fad74['get'](_0x16a7d6),_0x1fad74['get'](_0x138d8f))?_0x59329d[0x1]['commentThread']&&_0x59329d[0x1]['commentThread']['length']?null:_0x59329d:null;}_0x3b0637['size']&&this['_refreshSuggestionsChain'](_0x3b0637);}['_refreshAttributeSuggestionsChain'](_0x5def4a){if(0x0==_0x5def4a['length'])return;const _0x2137dd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x541bd8=>'attribute'==_0x541bd8['type']&&_0x541bd8['_isDataLoaded']),_0x21d60d=[],_0x44a9bb=new Map();for(const _0x5f0e07 of _0x2137dd){const _0x1043d5=_0x44174b(_0x5f0e07['attributes']);_0x44a9bb['has'](_0x1043d5)||(_0x44a9bb['set'](_0x1043d5,_0x21d60d['length']),_0x21d60d['push']([]));const _0x271081=_0x44a9bb['get'](_0x1043d5);_0x21d60d[_0x271081]['push'](_0x5f0e07);}!(function(){_0x21d60d['sort']((_0x4d7f3d,_0x127a2e)=>{const _0x3d035a=_0x4d7f3d[0x0]['createdAt'],_0x1ad702=_0x127a2e[0x0]['createdAt'];return _0x3d035a==_0x1ad702?_0x4d7f3d[0x0]['attributes']['groupId']<_0x127a2e[0x0]['attributes']['groupId']?-0x1:0x1:_0x3d035a<_0x1ad702?-0x1:0x1;});for(const _0x5d9e07 of _0x21d60d)_0x5d9e07['sort']((_0x553f27,_0x44d8d4)=>_0x553f27['id']<_0x44d8d4['id']?-0x1:0x1);}());for(let _0x4f5b39=0x0;_0x4f5b39<_0x21d60d['length'];_0x4f5b39++){if(0x0==_0x21d60d[_0x4f5b39]['length'])continue;const _0x445a35=[];for(let _0x4005d1=_0x4f5b39+0x1;_0x4005d1<_0x21d60d['length'];_0x4005d1++)0x0!=_0x21d60d[_0x4005d1]['length']&&_0x21ef2b(_0x21d60d[_0x4f5b39],_0x21d60d[_0x4005d1])&&_0x445a35['push'](_0x4005d1);for(const _0x42df40 of _0x445a35)_0x21d60d[_0x4f5b39]=_0x21d60d[_0x4f5b39]['concat'](_0x21d60d[_0x42df40]),_0x21d60d[_0x42df40]=[];}for(const _0x5f2704 of _0x21d60d)for(let _0x82dcc8=0x0;_0x82dcc8<_0x5f2704['length'];_0x82dcc8++){const _0x4c06c8=_0x5f2704[_0x82dcc8+0x1]||null;_0x5f2704[_0x82dcc8]['next']!==_0x4c06c8&&(_0x5f2704[_0x82dcc8]['next']=_0x4c06c8);}for(const _0x95eb24 of _0x21d60d)for(let _0x36e0ae=0x0;_0x36e0ae<_0x95eb24['length'];_0x36e0ae++){const _0x851ee=_0x95eb24[_0x36e0ae-0x1]||null;_0x95eb24[_0x36e0ae]['previous']!==_0x851ee&&(_0x95eb24[_0x36e0ae]['previous']=_0x851ee);}function _0x21ef2b(_0x376372,_0x36b180){if(_0x376372[0x0]['attributes']['groupId']!==_0x36b180[0x0]['attributes']['groupId']&&_0x376372[0x0]['author']!==_0x36b180[0x0]['author'])return!0x1;if(!function(_0x39540b,_0x33f89e){if(!_0x39540b['hasComments']&&!_0x33f89e['hasComments'])return!0x0;if(_0x39540b['hasComments']&&_0x33f89e['hasComments'])return!0x1;if(_0x39540b['hasComments']&&_0x33f89e['createdAt']<_0x39540b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x33f89e['hasComments']&&_0x39540b['createdAt']<_0x33f89e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x376372[0x0],_0x36b180[0x0]))return!0x1;const _0x567dcf=Gt(_0x376372[0x0]['attributes'],['groupId','trackingSessionId']),_0x2262f1=Gt(_0x36b180[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2e0560(_0x567dcf,_0x2262f1))return!0x1;if(_0x376372[0x0]['attributes']['groupId']==_0x36b180[0x0]['attributes']['groupId'])return!0x0;if(_0x376372[0x0]['attributes']['trackingSessionId']!==_0x36b180[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x376372['every'](_0x35e700=>_0x36b180['some'](_0x304c2f=>_0x35e700['getFirstRange']()['isEqual'](_0x304c2f['getFirstRange']())))&&_0x36b180['every'](_0x3819c2=>_0x376372['some'](_0x376c11=>_0x3819c2['getFirstRange']()['isEqual'](_0x376c11['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x24e360){const _0x59b73c=Array['from'](_0x24e360),_0x325616=this['getSuggestions']({'skipNotAttached':!0x0}),_0xbda631=_0x325616['filter'](_0x79bfc9=>!_0x24e360['has'](_0x79bfc9)),_0x4b50ae=new Map(_0x59b73c['map'](_0x1016c3=>[_0x1016c3,this['_suggestionFactory']['getSuggestionCallback'](_0x1016c3['type'],_0x1016c3['subType'],'join')])),_0x38e3b6=new Map(_0x325616['map'](_0x56c71c=>[_0x56c71c,_0x56c71c['getRanges']()]));for(let _0x4b3866=0x0;_0x4b3866<_0x59b73c['length'];_0x4b3866++){if(_0x43c14f(this,_0x59b73c[_0x4b3866],_0x59b73c,_0x4b3866+0x1))return!0x0;}for(let _0x517479=0x0;_0x517479<_0x59b73c['length'];_0x517479++){if(_0x43c14f(this,_0x59b73c[_0x517479],_0xbda631,0x0))return!0x0;}return!0x1;function _0x43c14f(_0x16df3f,_0x56c471,_0x1f1a5d,_0x37bd1a){for(let _0x52465d=_0x37bd1a;_0x52465d<_0x1f1a5d['length'];_0x52465d++){const _0x33eb23=_0x1f1a5d[_0x52465d];if(_0x33eb23['type']!==_0x56c471['type']||_0x33eb23['author']['id']!==_0x56c471['author']['id']||_0x33eb23['subType']!==_0x56c471['subType'])continue;if(!ee(_0x56c471,_0x33eb23))continue;if('attribute'==_0x56c471['type']&&_0x56c471['data']['oldValue']!=_0x33eb23['data']['oldValue'])continue;if('attribute'==_0x56c471['type']&&_0x16df3f['_isBlockAttribute'](_0x56c471['data']['key']))continue;if('formatBlock'==_0x56c471['type']){const _0x5750e5=_0x16df3f['editor']['model'],_0xee3e75=_0x56c471['getContainedElement']();if(_0xee3e75&&(_0x5750e5['schema']['isObject'](_0xee3e75)||_0x5750e5['schema']['isLimit'](_0xee3e75)))continue;}const _0x5e76d5=_0x4b50ae['get'](_0x56c471),_0x42c036=_0x38e3b6['get'](_0x56c471),_0x3f53f9=_0x38e3b6['get'](_0x33eb23),_0x1a5c9b=_0x56c471['commentThread']&&_0x56c471['commentThread']['length'],_0x4d25a7=_0x33eb23['commentThread']&&_0x33eb23['commentThread']['length'];if(!_0x1a5c9b&&_0x5e76d5(_0x3f53f9,_0x42c036))return _0x16df3f['_joinSuggestions'](_0x33eb23,_0x56c471),_0x38e3b6['delete'](_0x56c471),!0x0;if(!_0x4d25a7&&_0x5e76d5(_0x42c036,_0x3f53f9))return _0x16df3f['_joinSuggestions'](_0x56c471,_0x33eb23),_0x38e3b6['delete'](_0x33eb23),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4ef9f1,_0x172dd2){if(_0x4ef9f1['isMultiRange']){for(const _0x148aa6 of _0x172dd2['getRanges']())_0x4ef9f1['addRange'](_0x148aa6);}else{const _0x2729e7=_0x172dd2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4ef9f1,this['_model']['createRange'](_0x4ef9f1['getFirstRange']()['start'],_0x2729e7));}_0x172dd2['removeMarkers']();}['_getMarkerAnnouncementText'](_0xed3e5f,_0x204a36,_0x1b961f){const _0x5f0940=_0xed3e5f['startsWith']('format')||_0xed3e5f['startsWith']('attribute')?'FORMATTING':_0xed3e5f['toUpperCase']();return o(this['editor']['locale'],_0x204a36+'_'+_0x5f0940+'_SUGGESTION_ANNOUNCEMENT',_0x1b961f);}['_initAriaMarkerChangeAnnouncements'](){const _0x314813=this['editor'];if(!_0x314813['ui'])return;const {ariaLiveAnnouncer:_0x3c6c68}=_0x314813['ui'];_0x257542(this['_model'],({left:_0x204fd4,entered:_0xdcc21b})=>{for(const _0x13ebd0 of _0x204fd4){const {group:_0x123c82,type:_0x112cae}=this['_splitMarkerName'](_0x13ebd0['name']);if('suggestion'===_0x123c82){_0x3c6c68['announce'](this['_getMarkerAnnouncementText'](_0x112cae,'LEAVE'));break;}}for(const _0x29d2d5 of _0xdcc21b){const {group:_0x12f455,type:_0x5b4dc6}=this['_splitMarkerName'](_0x29d2d5['name']);if('suggestion'===_0x12f455){_0x3c6c68['announce'](this['_getMarkerAnnouncementText'](_0x5b4dc6,'ENTER',_0x21afc3(_0x3159a1)));break;}}});}['_processAttributeChanges'](_0x24abf6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x44e1a8=this['editor'],_0x4ef805=_0x44e1a8['model']['document']['differ']['getChanges']();if(0x0==_0x4ef805['length'])return!0x1;const _0x430606=[],_0x40eeee=_0x4ef805['filter'](_0x22ae2e=>'attribute'==_0x22ae2e['type']),_0xbb6f50=_0x4ef805['filter'](_0x520f05=>'insert'==_0x520f05['type']&&'$text'!=_0x520f05['name']),_0x7f71a3=_0x4ef805['filter'](_0x463f7c=>'remove'==_0x463f7c['type']&&'$text'!=_0x463f7c['name']);for(const _0x2ec3bd of _0x40eeee)_0x430606['push']({'key':_0x2ec3bd['attributeKey'],'newValue':_0x2ec3bd['attributeNewValue'],'oldValue':_0x2ec3bd['attributeOldValue'],'range':Yt(_0x2ec3bd['range'],_0x44e1a8['model'])});for(const _0x42c6d3 of _0xbb6f50){const _0x186a4d=_0x7f71a3['find'](_0x55f669=>_0x55f669['position']['isEqual'](_0x42c6d3['position']));_0x186a4d&&_0x430606['push']({'key':m,'newValue':_0x42c6d3['name'],'oldValue':_0x186a4d['name'],'range':_0x44e1a8['model']['createRangeOn'](_0x42c6d3['position']['nodeAfter'])});}return 0x0!=_0x430606['length']&&this['_reduceExistingSuggestions'](_0x24abf6,_0x430606);}['_processAttributeSuggestions'](_0x856dc7){let _0x2c9137=!0x1;const _0x595a3c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x33f2b2=>_0x33f2b2['data']['newRange']&&_0x33f2b2['name']['startsWith']('suggestion:attribute:'));for(const _0x44c0ca of _0x595a3c){const {subType:_0x12a85a,id:_0x576044}=this['_splitMarkerName'](_0x44c0ca['name']),_0x1cc2ab=_0x12a85a['split']('|')[0x0];for(const _0x39ea6d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x39ea6d['id']!=_0x576044&&'attribute'==_0x39ea6d['type']&&_0x39ea6d['data']&&_0x39ea6d['data']['key']==_0x1cc2ab&&_0x39ea6d['getFirstRange']()['isIntersecting'](_0x44c0ca['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x39ea6d,_0x44c0ca['data']['newRange'],_0x856dc7),_0x2c9137=!0x0);}return _0x2c9137;}['recordAttributeChanges'](_0x22f51e){this['_recordAttributeSuggestions']=!0x0,_0x22f51e();}['_isRegisteredAttribute'](_0x30919c){const _0x223bca=this['_isBlockAttribute'](_0x30919c),_0x5169af=this['_isInlineAttribute'](_0x30919c);return _0x223bca||_0x5169af;}['_reduceExistingSuggestions'](_0x226e92,_0x61705e){if(0x0==_0x61705e['length'])return!0x1;let _0x6b4a7d=!0x1;for(const _0x150ec9 of _0x61705e){const _0x1332c3=this['_findSuggestions'](_0x150ec9['range'],'attribute')['filter'](_0x18a5be=>!_0x18a5be['meta']['isNextTo'])['map'](_0x541b56=>_0x541b56['suggestion']),_0x391545=_0x44174b({'newValue':_0x150ec9['newValue']});_0x1332c3['filter'](_0x2c847f=>{const [_0x228e99,_0x545a74]=_0x2c847f['subType']['split']('|');return _0x228e99==_0x150ec9['key']&&_0x545a74!=_0x391545;})['forEach'](_0x30da79=>{this['_reduceSuggestionAttributeRange'](_0x30da79,_0x150ec9['range'],_0x226e92),_0x6b4a7d=!0x0;});}return _0x6b4a7d;}['_reduceSuggestionAttributeRange'](_0xe276f6,_0x166ec3,_0x2d4a20){const _0x4df66e=_0xe276f6['getFirstRange']()['getDifference'](_0x166ec3);0x0!==_0x4df66e['length']?0x1!==_0x4df66e['length']?this['_breakSuggestionMarker'](_0xe276f6,_0x166ec3['start'],_0x166ec3['end']):this['_setSuggestionRange'](_0xe276f6,_0x4df66e[0x0]):_0x2d4a20['removeMarker'](_0xe276f6['getFirstMarker']());}}class Lt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4465d6){this['_editor']=_0x4465d6,this['_model']=_0x4465d6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x54accb,_0x1bfa43,_0x5512aa,_0x38c263,_0x22807f,_0x58c597,_0x56cbfe){return new R(this['_model'],{'type':_0x54accb,'subType':_0x1bfa43,'id':_0x5512aa,'originalSuggestionId':_0x56cbfe,'author':_0x38c263,'creator':_0x38c263,'attributes':_0x22807f,'onAttributesChange':_0x58c597,'onAccept':(..._0x4581b2)=>this['getSuggestionCallback'](_0x54accb,_0x1bfa43,'accept')(..._0x4581b2),'onDiscard':(..._0x5d4c05)=>this['getSuggestionCallback'](_0x54accb,_0x1bfa43,'discard')(..._0x5d4c05)});}['registerCustomCallback'](_0x58272a,_0x3c9577,_0x567093,_0xdf0221){const _0x5d7d88=_0x58272a+':'+_0x3c9577+':'+_0x567093;this['_customCallbacks']['set'](_0x5d7d88,_0xdf0221);}['getSuggestionCallback'](_0x397086,_0x26e1bb,_0x3f8c0f){const _0x3c3e64=_0x397086+':'+_0x26e1bb+':'+_0x3f8c0f;return this['_customCallbacks']['get'](_0x3c3e64)||this['_defaultCallbacks']['get'](_0x397086+':'+_0x3f8c0f);}['_registerDefaultCallbacks'](){const _0x3ab5b7=()=>!0x1,_0x27f1b4=_0x3d4505=>{_0x3d4505['sort']((_0x2af825,_0x47ea41)=>_0x2af825['start']['isBefore'](_0x47ea41['start'])?0x1:-0x1),this['_model']['change'](_0x3478b4=>{for(const _0x43950e of _0x3d4505){let _0x1aa2a7;_0x1aa2a7=_0x43950e['end']['isAtEnd']&&_0x43950e['end']['parent']==_0x43950e['start']['nodeAfter']?_0x3478b4['createSelection'](_0x43950e['start']['nodeAfter'],'on'):_0x3478b4['createSelection'](_0x43950e),this['_model']['deleteContent'](_0x1aa2a7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4e47d6=(_0x10c4e0,_0x30f229)=>{_0x30f229&&this['_model']['change'](_0x5e7356=>{const {commandName:_0x1ddd17,commandParams:_0x359c0e=[]}=_0x30f229,_0x531cc4=_0x10c4e0['map'](_0x49d88e=>(Kt(_0x49d88e)&&(_0x49d88e=this['_model']['createRange'](_0x49d88e['end'])),_0x49d88e))['filter'](_0x302c33=>'$graveyard'!==_0x302c33['root']['rootName']);if(_0x531cc4['length']<0x1)return;const _0x267e73=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3065b7=>_0x32ac6b['fromRange'](_0x3065b7));_0x5e7356['setSelection'](_0x531cc4);for(const _0x5d758a of this['_editor']['commands']['commands']())_0x5d758a['refresh']();_0x359c0e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1ddd17,..._0x359c0e);const _0x296f7d=_0x267e73['filter'](_0x35a428=>'$graveyard'!=_0x35a428['root']['rootName']);_0x296f7d['length']>0x0&&_0x5e7356['setSelection'](_0x296f7d);for(const _0x485d95 of _0x267e73)_0x485d95['detach']();});},_0x397c7b=(_0x4d43e6,_0x1d4ddc)=>0x1==_0x4d43e6['length']&&0x1==_0x1d4ddc['length']&&_0x4d43e6[0x0]['end']['isEqual'](_0x1d4ddc[0x0]['start']),_0x250f6b=(_0x5775ed,_0x4c425c,_0x116ae4,_0x2c55c9)=>te(_0x5775ed,_0x4c425c,_0x116ae4,_0x2c55c9)?[_0x5775ed,_0x4c425c]:te(_0x4c425c,_0x5775ed,_0x2c55c9,_0x116ae4)?[_0x4c425c,_0x5775ed]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3ab5b7),this['_defaultCallbacks']['set']('insertion:discard',_0x27f1b4),this['_defaultCallbacks']['set']('insertion:join',_0x397c7b),this['_defaultCallbacks']['set']('insertion:chain',_0x250f6b),this['_defaultCallbacks']['set']('deletion:accept',_0x27f1b4),this['_defaultCallbacks']['set']('deletion:discard',_0x3ab5b7),this['_defaultCallbacks']['set']('deletion:join',_0x397c7b),this['_defaultCallbacks']['set']('deletion:chain',_0x250f6b),this['_defaultCallbacks']['set']('formatInline:accept',_0x4e47d6),this['_defaultCallbacks']['set']('formatInline:discard',_0x3ab5b7),this['_defaultCallbacks']['set']('formatInline:join',_0x397c7b),this['_defaultCallbacks']['set']('formatInline:chain',_0x3ab5b7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4e47d6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3ab5b7),this['_defaultCallbacks']['set']('formatBlock:join',_0x397c7b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3ab5b7),this['_defaultCallbacks']['set']('attribute:accept',_0x3ab5b7),this['_defaultCallbacks']['set']('attribute:discard',(_0x2cdd01,_0x33947e)=>{if(!_0x33947e)return;const _0x57c5e9=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1109c9=>{if(_0x33947e['key']==m)for(const _0x230b8b of _0x2cdd01){const _0x55e681=_0x230b8b['start']['nodeAfter'],_0x194774=_0x33947e['oldValue'];_0x1109c9['rename'](_0x55e681,_0x194774);}else{if(_0x57c5e9['_isBlockAttribute'](_0x33947e['key'])){for(const _0x1cfd00 of _0x2cdd01)void 0x0!==_0x33947e['oldValue']?_0x1109c9['setAttribute'](_0x33947e['key'],_0x33947e['oldValue'],_0x1cfd00['start']['nodeAfter']):_0x1109c9['removeAttribute'](_0x33947e['key'],_0x1cfd00['start']['nodeAfter']);}else{for(const _0x43fb80 of _0x2cdd01)_0x33947e['oldValue']?_0x1109c9['setAttribute'](_0x33947e['key'],_0x33947e['oldValue'],_0x43fb80):_0x1109c9['removeAttribute'](_0x33947e['key'],_0x43fb80);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x397c7b);}}function Jt(_0x58ae52,_0x193045,_0x8e1c3d){for(const _0x3f5499 of _0x193045['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3f5499['root']==_0x3f5499)return!0x1;if(!_0x8e1c3d['containsItem'](_0x3f5499))return!0x1;if(_0x58ae52['isObject'](_0x3f5499)||_0x58ae52['isLimit'](_0x3f5499))return!0x0;}return!0x1;}function Kt(_0x883cc7){return _0x883cc7['end']['parent']==_0x883cc7['start']['nodeAfter']&&_0x883cc7['end']['isAtStart'];}function Ht(_0x4600e6,_0x190f1c,_0x1f0459,_0x4beb97){const _0x1e1cca=_0x2a9e67=>!_0x2a9e67['item']['is']('$textProxy')&&!_0x4beb97['isObject'](_0x2a9e67['item']),_0x31c412=_0x4600e6['start']['getLastMatchingPosition'](_0x1e1cca),_0x32c2a4=_0x4600e6['end']['getLastMatchingPosition'](_0x1e1cca,{'direction':'backward'});return(!_0x4600e6['start']['isEqual'](_0x31c412)||!_0x4600e6['end']['isEqual'](_0x32c2a4))&&(_0x31c412['isBefore'](_0x32c2a4)?_0x1f0459['updateMarker'](_0x190f1c,{'range':_0x1f0459['createRange'](_0x31c412,_0x32c2a4)}):_0x1f0459['removeMarker'](_0x190f1c),!0x0);}function Wt(_0x232f13){return _0x44174b(_0x232f13);}function qt(_0x40a87c){const _0x2feb3b=_0x40a87c['start']['nodeAfter'];return _0x2feb3b&&_0x2feb3b['is']('element');}function zt(_0x5ce4bc){return Kt(_0x5ce4bc)||function(_0x2f2e7c){return _0x2f2e7c['start']['parent']==_0x2f2e7c['end']['nodeBefore']&&_0x2f2e7c['start']['isAtEnd'];}(_0x5ce4bc);}function Qt(_0x2c2bbf,_0x420980){try{const _0x92d40e=_0x2c2bbf['getRange']();for(const _0x16e3ad of _0x420980)if(_0x2c2bbf!==_0x16e3ad&&_0x92d40e&&_0x92d40e['isIntersecting'](_0x16e3ad['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Xt(_0x4e86e1,_0x4caabc){const _0x3f3563=_0x4e86e1['end']['nodeBefore'];if(_0x3f3563&&_0x3f3563['is']('element')&&_0x4caabc['schema']['isBlock'](_0x3f3563)&&!_0x4caabc['schema']['isObject'](_0x3f3563)){const _0x501dea=_0x4caabc['createPositionAt'](_0x3f3563,'end');return _0x4caabc['createRange'](_0x4e86e1['start'],_0x501dea);}return _0x4e86e1;}function Yt(_0x10b3fd,_0x250b08){return null==_0x10b3fd['end']['nodeBefore']&&_0x10b3fd['end']['parent']==_0x10b3fd['start']['nodeAfter']?Zt(_0x10b3fd['start']['nodeAfter'],_0x250b08):_0x10b3fd;}function Zt(_0x326753,_0x16ddff){const _0x42076c=_0x16ddff['schema']['isObject'](_0x326753)||_0x16ddff['schema']['isSelectable'](_0x326753);return _0x16ddff['createRange'](_0x16ddff['createPositionAt'](_0x326753,'before'),_0x42076c?_0x16ddff['createPositionAfter'](_0x326753):_0x16ddff['createPositionAt'](_0x326753,'end'));}function te(_0x3d5cf4,_0x265473,_0x59d43e,_0x3a7a15){return!!ee(_0x3d5cf4,_0x265473)&&_0x59d43e['end']['isEqual'](_0x3a7a15['start']);}function ee(_0x17ad97,_0x30dde5){if(!_0x17ad97['_isDataLoaded']||!_0x30dde5['_isDataLoaded'])return!0x1;const _0x2d93aa=new Set(Object['keys'](_0x17ad97['attributes'])),_0x1ea721=new Set(Object['keys'](_0x30dde5['attributes']));if(_0x2d93aa['delete']('groupId'),_0x1ea721['delete']('groupId'),0x0==_0x2d93aa['size']&&0x0==_0x1ea721['size'])return!0x0;if(_0x2d93aa['size']!=_0x1ea721['size'])return!0x1;const _0x51967f={..._0x17ad97['attributes']},_0x4d73dc={..._0x30dde5['attributes']};return delete _0x51967f['groupId'],delete _0x4d73dc['groupId'],JSON['stringify'](_0x51967f)==JSON['stringify'](_0x4d73dc);}function ie(_0x22d4fb,_0x5250b6){const _0x3c3c74=ne(_0x22d4fb['attributes']),_0x4de601=ne(_0x5250b6);if(!_0x22d4fb['_isDataLoaded'])return!0x1;for(const _0x108f3e of Object['keys'](_0x4de601))if(!_0x2e0560(_0x3c3c74[_0x108f3e],_0x4de601[_0x108f3e]))return!0x1;return!0x0;}function ne(_0x4da3a6){const _0x297e52=Object['assign']({},_0x4da3a6);return delete _0x297e52['skipNestingCheck'],delete _0x297e52['tablePasteChainId'],_0x297e52;}function se(_0x5b2c4f){return _0x5b2c4f['split']('|')[0x0];}class be extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0xbe3abb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x185fc0,_0x124ce9,_0x41b03c,_0x123809){super(),this['model']=_0x124ce9,this['view']=_0x41b03c,this['commentThreadController']=_0x123809,this['_editor']=_0x185fc0,this['_acceptCommand']=_0x185fc0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x185fc0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1b990e,_0x395984)=>_0x1b990e||_0x395984),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3c8628=>_0x3c8628&&this['_editor']['model']['canEditAt'](_0x124ce9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3e5fa3=>_0x3e5fa3&&this['_editor']['model']['canEditAt'](_0x124ce9['getRanges']())),this['_pendingAction']=null,_0x41b03c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x41b03c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x41b03c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x41b03c,'change:isDirty',()=>{_0x41b03c['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 _0x28e4c0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x28e4c0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x5a3c95{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x588480,_0x498f18,_0x5ae481,_0x39ef9c){super(_0x588480),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3b55ae(_0x588480,o(_0x588480,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x498f18['authoredAt']),this['bind']('authoredAt')['to'](_0x498f18),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',_0x498f18,'authoredAt',this,'descriptionParts',(_0x150248,_0x152020,_0x5ad781)=>{const _0x34d78f=_0x5ad781['map'](_0x114724=>ls(_0x114724['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x150248-0x1,_0x498f18['author']['name'],_0x152020?_0x39ef9c['formatDateTime'](_0x152020):'',new DOMParser()['parseFromString'](_0x34d78f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1db316(),this['focusTracker']=new _0x5cff83(),this['keystrokes']=new _0x276880(),this['focusCycler']=new _0x18430b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4eca71=>_0x4eca71['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x498f18,this['_localUser']=_0x5ae481,this['_config']=_0x39ef9c,_0x39ef9c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x49f56c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1bf47e}=this['_config'];this['commentsListView']=new _0x1bf47e(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',_0x30f50d=>_0x30f50d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x483dec,_0x23199e)=>_0x483dec||!!_0x23199e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5d34c4}=this['_config'],_0x4a4df7=new _0x5d34c4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1878e9=_0x4a4df7['commentInputView'];return _0x4a4df7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1878e9,'value',(_0x5f2191,_0x26d096,_0x53980c)=>!!_0x53980c||_0x5f2191&&!_0x26d096),_0x1878e9['on']('submit',(_0x31e7fc,_0x5151bb)=>{this['fire']('addComment',_0x5151bb),_0x1878e9['editor']['setData']('');}),_0x1878e9['on']('cancel',()=>this['focus']()),_0x1878e9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4a4df7;}}class Te extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3fc7c4,_0x164768,_0x410497,_0x45adfb){super(_0x3fc7c4,_0x164768,_0x410497,_0x45adfb),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5d41a2=>_0x5d41a2&&_0x5d41a2[0x0]?_0x5d41a2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x258c87,_0x2c209)=>{let _0x257c51='';for(const _0x37b2eb of _0x258c87)_0x257c51+='<p>'+ls(_0x37b2eb['content'],_0x37b2eb['color'])+'</p>';return _0x2c209?_0x257c51:_0x219846(_0x257c51,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x45adfb['SuggestionView'](_0x3fc7c4,_0x164768,{'formatDateTime':_0x45adfb['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 _0x2e409f=this['bindTemplate'],_0x2a8079=[this['suggestionView']];return this['commentsListView']&&_0x2a8079['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2a8079['push'](this['commentThreadInputView']),_0x2a8079['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e409f['if']('isActive','ck-suggestion-wrapper--active'),_0x2e409f['to']('type',_0xfb5e68=>'ck-suggestion-'+_0xfb5e68),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':_0x2e409f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2a8079};}['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 Le extends _0x5a3c95{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x57b7f5,_0x52570c,_0x3da115){super(_0x57b7f5),this['_model']=_0x52570c,this['_config']=_0x3da115,this['set']('description',''),this['bind']('authoredAt')['to'](_0x52570c),this['acceptButton']=this['_createButton'](o(_0x57b7f5,'Accept\x20suggestion'),_0xea3654,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x57b7f5,'Discard\x20suggestion'),_0x2fcfb0,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x586108(_0x57b7f5,_0x52570c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1db316([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5cff83(),this['keystrokes']=new _0x276880(),this['focusCycler']=new _0x18430b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ac170=>_0x1ac170['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4c6e85=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4c6e85['innerHTML']=this['description'],this['on']('change:description',(_0x381ff2,_0x12e563,_0x12690a)=>{_0x4c6e85['innerHTML']=_0x12690a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x7e0c78=this['bindTemplate'],_0x102809=[{'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':_0x7e0c78['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x7e0c78['to']('authoredAt',_0x3adce9=>this['_config']['formatDateTime'](_0x3adce9))}]}]},{'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']&&_0x102809['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':_0x102809}]};}['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'](_0x14ad3a,_0x5b3343,_0x43e9b2,_0x213e87,_0x309112){const _0x2db032=new _0x375fb8(this['locale']);return _0x2db032['set']({'label':_0x14ad3a,'icon':_0x5b3343,'tooltip':!0x0,'tooltipPosition':_0x309112}),_0x2db032['extendTemplate']({'attributes':{'class':_0x43e9b2}}),_0x2db032['on']('execute',()=>{this['fire'](_0x213e87,this['_model']['id']);}),_0x2db032;}['_setupKeyboardNavigation'](){const _0x155f60=this['element'];this['keystrokes']['listenTo'](_0x155f60);for(const _0x44be5f of this['focusables'])this['focusTracker']['add'](_0x44be5f['element']),this['keystrokes']['listenTo'](_0x44be5f['element']);this['keystrokes']['set']('enter',(_0x30821e,_0x4bbf73)=>{_0x155f60===_0x30821e['target']&&(this['focusCycler']['focusFirst'](),_0x4bbf73());}),this['keystrokes']['set']('esc',(_0x3bc38d,_0x106474)=>{_0x155f60!==_0x3bc38d['target']&&(this['focus'](),_0x106474());});}}class u extends _0x51aec7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1098dc,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc0e4d2){super(_0xc0e4d2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x592c50=this['editor']['config'];_0x592c50['define']('trackChanges.SuggestionThreadView',Te),_0x592c50['define']('trackChanges.SuggestionView',Le),_0x592c50['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x592c50['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xf0b632,_0x205ea5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3ff65e,_0x11a80a]of this['_handleControllerBuffer']){const _0x5c5522=this['_suggestionToController']['has'](_0x3ff65e);_0x5c5522||_0x11a80a?_0x5c5522&&_0x11a80a&&this['_destroyController'](_0x3ff65e):this['_initializeController'](_0x3ff65e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xf0b632,_0x205ea5);}['init'](){const _0x186aa3=this['editor'],_0x195d4e=_0x186aa3['plugins']['get']('TrackChangesEditing'),_0x4fe77a=_0x186aa3['plugins']['get']('Annotations'),_0x2339f7=_0x186aa3['plugins']['get']('EditorAnnotations'),_0x596244=_0x186aa3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2339f7['addSourceCollector'](()=>{const _0x484908=[];for(const [_0x4ef34e,_0x980bff]of Array['from'](this['_suggestionToController'])){const _0x415a5c=_0x4ef34e['getAllAdjacentSuggestions'](),_0x2c8b7a=[];for(const _0x4bd2a0 of _0x415a5c){if(!_0x4bd2a0['isInContent'])continue;if(_0x4bd2a0['isMultiRange']){_0x2c8b7a['push'](..._0x4bd2a0['getRanges']());continue;}const _0x2fb576=_0x4bd2a0['getFirstRange']();if(_0x2c8b7a['length']>0x0){const _0x272b83=_0x2c8b7a[0x0]['getJoined'](_0x2fb576);if(_0x272b83){_0x2c8b7a[0x0]=_0x272b83;continue;}}_0x2c8b7a['push'](_0x2fb576);}_0x484908['push']([_0x980bff['view'],_0x2c8b7a]);}return _0x484908;}),this['listenTo'](_0x195d4e,'suggestionLoaded',(_0x77e5fc,_0x55b771)=>{this['listenTo'](_0x55b771,'change:previous',(_0x2548d1,_0x2a85f2,_0x2c34ae,_0x5a3df9)=>{_0x55b771['isInContent']&&(null==_0x2c34ae?(this['_updateController'](_0x5a3df9['head']),this['_handleSuggestionControllerDelayed'](_0x55b771,!0x1)):(this['_updateController'](_0x2c34ae['head']),null==_0x5a3df9&&this['_handleSuggestionControllerDelayed'](_0x55b771,!0x0)));}),null!==_0x55b771['previous']?this['_updateController'](_0x55b771['head']):this['_handleSuggestionControllerDelayed'](_0x55b771,!0x1);}),this['listenTo'](_0x195d4e,'suggestionUnloaded',(_0x45c63b,_0x5a3026,_0x384efa)=>{this['stopListening'](_0x5a3026,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5a3026),this['_suggestionToController']['has'](_0x5a3026)&&this['_destroyController'](_0x5a3026),_0x384efa&&this['_updateController'](_0x384efa['head']);}),this['listenTo'](_0x195d4e,'suggestionChanged',(_0x3401ae,_0x3e1ec6)=>{this['_updateController'](_0x3e1ec6);}),this['listenTo'](_0x4fe77a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x596244,'addComment',(_0x44be17,{threadId:_0x5abdcb,isFromAdapter:_0x1453b4})=>{if(_0x1453b4||!_0x195d4e['hasSuggestion'](_0x5abdcb))return;const _0x3a485c=_0x195d4e['getSuggestion'](_0x5abdcb);this['_suggestionToController']['get'](_0x3a485c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ff51a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x253004;for(const _0x554631 in _0x3ff51a){const _0x4d783a=_0x554631,_0xb0d501=_0x3ff51a[_0x4d783a];if('trackChangesLicenseKeyValid'==_0xb0d501||'trackChangesLicenseKeyInvalid'==_0xb0d501||'trackChangesLicenseKeyExpired'==_0xb0d501||'trackChangesLicenseKeyDomainLimit'==_0xb0d501||'trackChangesLicenseKeyNotAllowed'==_0xb0d501||'trackChangesLicenseKeyEvaluationLimit'==_0xb0d501||'trackChangesLicenseKeyTrialLimit'==_0xb0d501||'trackChangesLicenseKeyUsageLimit'==_0xb0d501){delete _0x3ff51a[_0x4d783a],_0x253004=_0xb0d501,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x253004&&_0x3ff51a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x253004&&_0x3ff51a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x253004&&_0x3ff51a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x253004&&_0x3ff51a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x253004&&_0x3ff51a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x253004&&_0x3ff51a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x253004&&_0x3ff51a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x289653){const _0x4a7d8f=this['_suggestionToController']['get'](_0x289653);if(!_0x4a7d8f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4a7d8f['view'])||null;}['getSuggestionForAnnotation'](_0x3ed46c){const _0x560723=this['_viewToController']['get'](_0x3ed46c['innerView']);return _0x560723?_0x560723['model']:null;}['_refreshActiveMarkers'](){const _0x506dfb=this['editor']['plugins']['get']('Annotations'),_0x907081=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19e014=Array['from'](_0x506dfb['activeAnnotations'],_0x393cb1=>_0x393cb1['innerView'])['filter'](_0x2e0a29=>this['_viewToController']['has'](_0x2e0a29)),_0x356300=[];for(const _0x201242 of _0x19e014){const _0x295f4a=this['_viewToController']['get'](_0x201242)['model']['getAllAdjacentSuggestions']();_0x356300['push'](..._0x295f4a['reduce']((_0xdc2dd1,_0x4aff22)=>[..._0xdc2dd1,..._0x4aff22['getMarkerNames']()],[]));}_0x907081['activeMarkers']=_0x356300;}['_addUIComponentsToFactory'](){const _0x4fba04=this['editor'],_0x2e7cf9=_0x4fba04['locale'],_0x53a91b=o(_0x2e7cf9,'Track\x20changes'),_0x330415=new _0x3a66b7([{'type':'switchbutton','model':new _0x30a052({'withText':!0x0,'isToggleable':!0x0,'label':_0x53a91b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x30a052({'withText':!0x0,'label':o(_0x2e7cf9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x30a052({'withText':!0x0,'label':o(_0x2e7cf9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x30a052({'withText':!0x0,'label':o(_0x2e7cf9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x30a052({'withText':!0x0,'label':o(_0x2e7cf9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4fba04['plugins']['has']('TrackChangesPreview')&&_0x330415['addMany']([{'type':'separator'},{'type':'button','model':new _0x30a052({'withText':!0x0,'label':o(_0x2e7cf9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3aba90 of _0x330415)if(ve(_0x3aba90)){const _0x2017ee=_0x4fba04['commands']['get'](_0x3aba90['model']['commandName']);_0x3aba90['model']['bind']('isOn','isEnabled')['to'](_0x2017ee,'value','isEnabled');}_0x4fba04['ui']['componentFactory']['add']('trackChanges',_0x266f3c=>this['_createToolbarButton'](_0x266f3c,_0x330415,_0x53a91b)),_0x4fba04['ui']['componentFactory']['add']('menuBar:trackChanges',_0x284848=>this['_createMenuBarMenu'](_0x284848,_0x330415,_0x53a91b));}['_createToolbarButton'](_0x26b317,_0x482ef9,_0x29e0d7){const _0x236fd5=_0x54291d(_0x26b317,_0x373276),_0x45193e=this['editor']['commands']['get']('trackChanges');_0x236fd5['buttonView']['set']({'tooltip':_0x29e0d7,'label':_0x29e0d7,'icon':_0x5dd2d5}),_0x236fd5['buttonView']['bind']('isOn')['to'](_0x45193e,'value'),_0x236fd5['buttonView']['on']('execute',()=>{_0x45193e['execute'](),this['editor']['editing']['view']['focus']();}),_0x498863(_0x236fd5,_0x482ef9,{'role':'menu'});const _0x5142eb=[];for(const _0x43cea2 of _0x482ef9)ve(_0x43cea2)&&_0x5142eb['push'](this['editor']['commands']['get'](_0x43cea2['model']['commandName']));const _0x251ba9=_0x236fd5['buttonView'];return _0x251ba9['actionView']['unbind']('isEnabled'),_0x251ba9['arrowView']['unbind']('isEnabled'),_0x251ba9['actionView']['bind']('isEnabled')['to'](_0x45193e,'isEnabled'),_0x251ba9['arrowView']['bind']('isEnabled')['toMany'](_0x5142eb,'isEnabled',(..._0x12920f)=>_0x12920f['some'](_0x43f466=>_0x43f466)),_0x236fd5['on']('execute',_0x188131=>{this['editor']['execute'](_0x188131['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x236fd5;}['_createMenuBarMenu'](_0x53bc8f,_0x128474,_0x360dda){const _0x2abe95=new _0x5eb0a8(_0x53bc8f),_0x3f341d=this['editor']['commands']['get']('trackChanges');_0x2abe95['buttonView']['set']({'label':_0x360dda,'icon':_0x5dd2d5});const _0x4cda93=new _0x329b0a(_0x53bc8f);for(const _0x55c680 of _0x128474){if('separator'==_0x55c680['type']){_0x4cda93['items']['add'](new _0x56fd50(_0x53bc8f));continue;}const _0x19f4b0=new _0x75807d(_0x53bc8f,_0x2abe95),_0x31a7b4=new _0x4d20c6(_0x53bc8f),_0x470b88=_0x55c680['model'];_0x31a7b4['bind'](...Object['keys'](_0x470b88))['to'](_0x470b88),_0x31a7b4['delegate']('execute')['to'](_0x2abe95),_0x31a7b4['on']('execute',()=>{this['editor']['execute'](_0x470b88['commandName']),this['editor']['editing']['view']['focus']();}),_0x19f4b0['children']['add'](_0x31a7b4),_0x4cda93['items']['add'](_0x19f4b0);}return _0x2abe95['bind']('isEnabled')['to'](_0x3f341d,'isEnabled'),_0x2abe95['panelView']['children']['add'](_0x4cda93),_0x2abe95;}['_initializeController'](_0x404aaf){const _0x2577ec=this['editor'],_0x15260c=_0x2577ec['config'],_0x4b60c2=_0x2577ec['plugins']['get']('Annotations'),_0x3ed559=_0x2577ec['plugins']['get']('CommentsRepository'),_0x4c5990=_0x2577ec['plugins']['get']('EditorAnnotations'),_0x132bcd=_0x2577ec['plugins']['get'](_0x1098dc)['me'],_0x17e9c7=_0x15260c['get']('trackChanges')['SuggestionThreadView'],_0x490ab9=_0x15260c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4fb58c,CommentThreadInputView:_0x4f64e6}=_0x2577ec['plugins']['get']('CommentsUI');let _0x4b82cd,_0x3fac97,_0x34af2b;this['_annotationViews']['has'](_0x404aaf['id'])?(_0x3fac97=this['_annotationViews']['get'](_0x404aaf['id']),_0x4b82cd=_0x3fac97['mainView']):(_0x4b82cd=new _0x17e9c7(_0x2577ec['locale'],_0x404aaf,_0x132bcd,{'disableComments':this['_disableComments'],'editorConfig':{..._0x15260c['get']('comments.editorConfig'),'licenseKey':_0x15260c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x15260c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15260c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15260c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40ea6f(_0x15260c['get']('locale'),_0x2577ec['locale']),'CommentView':_0x15260c['get']('comments')['CommentView'],'CommentsListView':_0x4fb58c,'CommentThreadInputView':_0x4f64e6,'SuggestionView':_0x490ab9}),_0x4b82cd['suggestionView']['acceptButton']['on']('execute',()=>{_0x2577ec['editing']['view']['focus']();}),_0x4b82cd['suggestionView']['discardButton']['on']('execute',()=>{_0x2577ec['editing']['view']['focus']();}),_0x3fac97=_0x4b60c2['createAnnotationView'](this['editor']['locale'],_0x4b82cd),_0x3fac97['bind']('isDirty')['to'](_0x4b82cd,'isDirty'),_0x3fac97['bind']('length')['to'](_0x4b82cd),_0x3fac97['bind']('type')['to'](_0x4b82cd,'type',_0xe52a5b=>'suggestion-'+_0xe52a5b),_0x4b82cd['on']('escape',()=>{_0x34af2b['fire']('escape');}),this['_annotationViews']['set'](_0x404aaf['id'],_0x3fac97));const _0x53531f=_0x3ed559['createCommentThreadController'](_0x404aaf['commentThread'],_0x4b82cd),_0x259452=new be(_0x2577ec,_0x404aaf,_0x4b82cd,_0x53531f),_0x5a9f11=_0x404aaf['getAllAdjacentSuggestions']()['filter'](_0x2c2f25=>_0x2c2f25['isInContent']);_0x4b82cd['descriptionParts']=_0x2577ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5a9f11),this['_suggestionToController']['set'](_0x404aaf,_0x259452),this['_viewToController']['set'](_0x4b82cd,_0x259452);const _0x487b19=()=>{const _0x1d9623=[],_0x3fa9a8=_0x404aaf['getAllAdjacentSuggestions']()['filter'](_0x92aa8=>_0x92aa8['isInContent']);for(const _0xcf7776 of _0x3fa9a8)_0x1d9623['push'](..._0xcf7776['getMarkers']());return _0x576b4e(_0x2577ec['editing'],_0x1d9623);};_0x34af2b=_0x4b60c2['createAnnotation']({'view':_0x3fac97,'target':_0x487b19,'type':()=>'suggestion-'+_0x259452['view']['type'],'isVisible':!!_0x487b19()}),_0x3ed559['_bindAnnotationToEditors'](_0x4b82cd,_0x34af2b),_0x4b60c2['add'](_0x34af2b),_0x4c5990['registerAnnotation'](_0x34af2b);}['_destroyController'](_0x4e204c){const _0x3d23ba=this['editor']['plugins']['get']('CommentsRepository'),_0x3f26c0=this['editor']['plugins']['get']('Annotations'),_0x33307b=this['_suggestionToController']['get'](_0x4e204c),_0x69cfe3=_0x33307b['view'],_0x10535d=_0x3f26c0['getByInnerView'](_0x69cfe3);_0x3d23ba['_unbindEditors'](_0x69cfe3),_0x10535d&&_0x3f26c0['remove'](_0x10535d),this['_suggestionToController']['delete'](_0x4e204c),this['_viewToController']['delete'](_0x69cfe3),_0x33307b['destroy']();}['_updateController'](_0x31353a){if(!_0x31353a['isInContent']||!this['_suggestionToController']['has'](_0x31353a))return;const _0x3f135d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2291d7=this['_suggestionToController']['get'](_0x31353a),_0xf04d1f=_0x31353a['getAllAdjacentSuggestions']();_0x2291d7['view']['descriptionParts']=_0x3f135d['descriptionFactory']['getDescriptions'](_0xf04d1f);}['destroy'](){for(const _0x5c02c9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c02c9);for(const _0x20a54e of this['_annotationViews']['values']())_0x20a54e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ve(_0x3ce0c2){return'model'in _0x3ce0c2;}class Ve extends _0x51aec7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2fdae8){this['editor']['plugins']['get'](d)['adapter']=_0x2fdae8;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1926e7){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1926e7);}['getSuggestions']({skipNotAttached:_0x54650c=!0x1,toJSON:_0x421252=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x54650c,'toJSON':_0x421252});}['getSuggestion'](_0x38790c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x38790c);}}const p=['Pagination'];class ce extends _0x51aec7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a6331=this['editor'];if(_0x2a6331['config']['define']('trackChangesData.editorCreator',_0xe7c5ba=>{const _0x3dfce=_0x2a6331['model']['document']['getRootNames']()['reduce']((_0x451cb1,_0x1ebc15)=>(_0x451cb1[_0x1ebc15]='',_0x451cb1),{});return _0x2a6331['constructor']['create'](_0x3dfce,_0xe7c5ba);}),'function'!=typeof _0x2a6331['config']['get']('trackChangesData')['editorCreator'])throw new _0x429a5f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2d7d5b){return P(this['editor'],!0x0,_0x2d7d5b);}['getDataWithDiscardedSuggestions'](_0x10bfd4){return P(this['editor'],!0x1,_0x10bfd4);}}class ze extends _0x51aec7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x467384){function _0x2f2652(_0x4c3b1a){return _0x4c3b1a['map'](_0x1429c1=>String['fromCharCode'](_0x1429c1))['join']('');}super(_0x467384),this['result']='end',_0x467384[_0x2f2652([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f2652([0x76,0x69,0x65,0x77])][_0x2f2652([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f2652([0x61,0x75,0x74,0x6f]),_0x467384[_0x2f2652([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2f2652([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f2652([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2f2652([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2f2652([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 Ke(_0x3bbe19){return void 0x0!==_0x3bbe19['getRootsAttributes'];}async function P(_0x178aab,_0x5cdcf1,_0x3326e4){const _0x2cd2a0=_0x506a2f(_0x178aab,p);_0x2cd2a0['plugins']['push'](d,ze),_0x2cd2a0['rootsAttributes']=Ke(_0x178aab)?_0x178aab['getRootsAttributes']():void 0x0;const _0x27cf90=document['createDocumentFragment'](),_0x5e8341=_0x178aab['config']['get']('trackChangesData')['editorCreator'],_0x4aad88=await _0x5e8341(_0x2cd2a0,()=>function(_0x2b3304){const _0x437305=document['createElement']('div');return _0x2b3304['appendChild'](_0x437305),_0x437305;}(_0x27cf90));!function(_0x29eed0,_0x3b222c){const _0x5d5f98=_0x29eed0['model']['document']['getRootNames']()['reduce']((_0x207219,_0x130c70)=>(_0x207219[_0x130c70]=_0x29eed0['data']['get']({'rootName':_0x130c70}),_0x207219),{}),_0x4f63ed=_0x29eed0['plugins']['get']('Users')['users']['map'](_0x35ba47=>({'id':_0x35ba47['id'],'name':_0x35ba47['name']})),_0x232a5d=_0x29eed0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c7bd9=_0x29eed0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d5b05=_0x3b222c['plugins']['get']('Users'),_0x2467d3=_0x3b222c['plugins']['get']('TrackChangesEditing'),_0x4f449e=_0x3b222c['plugins']['get']('CommentsRepository');for(const _0x5bbfae of _0x4f449e['getCommentThreads']())_0x5bbfae['remove']();for(const _0x25eace of _0x4f63ed)_0x4d5b05['getUser'](_0x25eace['id'])||_0x4d5b05['addUser'](_0x25eace);_0x4d5b05['me']||_0x4d5b05['useAnonymousUser']();for(const _0x2b79e6 of _0x2c7bd9)_0x4f449e['addCommentThread'](_0x2b79e6);for(const _0x3fff82 of _0x232a5d)_0x2467d3['addSuggestionData'](_0x3fff82);_0x3b222c['data']['set'](_0x5d5f98);}(_0x178aab,_0x4aad88),_0x4aad88['execute'](_0x5cdcf1?'acceptAllSuggestions':'discardAllSuggestions');const _0x3fd14a=Ke(_0x4aad88)?_0x4aad88['getFullData'](_0x3326e4):_0x4aad88['data']['get'](_0x3326e4);return await _0x4aad88['destroy'](),_0x3fd14a;}class _e extends _0x5a3c95{['options'];constructor(_0xc8983d,_0x285edb){super(_0xc8983d),this['options']=_0x285edb,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'](_0x20fad5,_0x32db0){if(!this['element'])return;const _0x8a8bde=[];for(const [_0x50cb48,_0x4d0791]of _0x20fad5){const _0x23217b=document['createElement']('div');_0x23217b['setAttribute']('data-ck-root-name',_0x50cb48),_0x23217b['className']=_0x4d0791['classes']+'\x20ck-track-changes-preview__root-container',_0x23217b['innerHTML']=_0x4d0791['content'],_0x8a8bde['push'](_0x23217b);}_0x32db0(this['element'],_0x8a8bde),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ae extends _0x49cdd5{constructor(_0x62f794){super(_0x62f794),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x539932=this['editor'],_0x40f93a=_0x539932['locale'],_0x5d33de=_0x539932['plugins']['get']('Dialog');let _0x34004b;const _0x93e977=function(_0x4bed36){const _0x3a5b7e={};if('editables'in _0x4bed36['ui']['view']){for(const [_0xbd565a,_0x32249d]of Object['entries'](_0x4bed36['ui']['view']['editables']))_0x3a5b7e[_0xbd565a]=_0x32249d['element'];}else _0x3a5b7e[_0x4bed36['model']['document']['getRootNames']()[0x0]]=_0x4bed36['ui']['view']['editable']['element'];return _0x3a5b7e;}(_0x539932),_0x4f5ba8=function(_0x1a527d){let _0x4b4ffe=0x0;for(const _0x24b001 of Object['values'](_0x1a527d))_0x4b4ffe=Math['max'](_0x4b4ffe,_0x24b001['getBoundingClientRect']()['width']);let _0x54dd92=0x0;for(const _0x1b8350 of Object['values'](_0x1a527d))_0x54dd92+=_0x1b8350['getBoundingClientRect']()['height'];const _0x31fc86=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2c4c1f=Math['min'](_0x54dd92,_0x31fc86);return{'width':_0x4b4ffe,'height':_0x2c4c1f};}(_0x93e977);_0x5d33de['show']({'id':'finalContentPreview','title':o(_0x40f93a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x40f93a,{'dialogRects':_0x4f5ba8}),'onHide':()=>{_0x34004b['detachFromDom']();},'onShow':()=>{_0x539932['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x225def=>{const _0x5bafbb=this['_standarizeRootsData'](_0x225def,_0x539932,_0x93e977);_0x5d33de['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5bafbb,_0x539932['config']['get']('trackChanges.preview.renderFunction'));}),_0x34004b=new _0x4ee4a1(_0x40f93a,[_0x5d33de['view']]),_0x34004b['attachToDom'](),_0x34004b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x539932['once']('destroy',()=>{_0x34004b['detachFromDom']();});const _0x64f364=_0x5d33de['view']['headerView']['class'];_0x5d33de['view']['headerView']['class']=_0x64f364?_0x64f364+'\x20ck-reset_all':'ck-reset_all',_0x5d33de['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5d33de['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1bdd19=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x140dc9=_0x1bdd19['previewMode'],_0x38c38f={};if('$labels'===_0x140dc9){for(const _0xaf2ec of _0x1bdd19['getMergeFieldsIds']())_0x38c38f[_0xaf2ec]=_0x1bdd19['getLabel'](_0xaf2ec)||_0xaf2ec;}else{const _0x2205bb='$defaultValues'===_0x140dc9?_0x1bdd19['getDefaultValues']():_0x1bdd19['getDataSetValues'](_0x140dc9,!0x0);for(const _0x1389fb of Object['entries'](_0x2205bb)){const [_0x2d6f77,_0x1eebbc]=_0x1389fb;_0x38c38f[_0x2d6f77]=null!==_0x1eebbc?_0x1eebbc:_0x1bdd19['getLabel'](_0x2d6f77)||_0x2d6f77;}}return{'mergeFieldsData':_0x38c38f};}['_standarizeRootsData'](_0x13db6c,_0x5d5b50,_0x40b468){let _0x5e839e;if('string'==typeof _0x13db6c){const _0x3e186c=_0x5d5b50['model']['document']['getRootNames']()[0x0];_0x5e839e={[_0x3e186c]:_0x13db6c};}else _0x5e839e=_0x13db6c;const _0x232193=this['_fixMediaEmbeds'](_0x5e839e,_0x5d5b50),_0x5b9a11=function(_0x3ca37f,_0x397bc0){for(const [_0x260b2d,_0x1605a8]of _0x3ca37f)_0x1605a8['classes']=_0x397bc0[_0x260b2d]['classList']['value']['replace']('ck-focused','');return _0x3ca37f;}(this['_sortRoots'](_0x5d5b50)['reduce']((_0x1ec979,_0x5f3100)=>(_0x1ec979['push']([_0x5f3100,{'content':_0x232193[_0x5f3100],'classes':''}]),_0x1ec979),[]),_0x40b468);return _0x5b9a11;}['_fixMediaEmbeds'](_0x14b87e,_0x327014){if(!_0x327014['plugins']['has']('MediaEmbedEditing'))return _0x14b87e;const _0xf572eb=_0x327014['plugins']['get']('MediaEmbedEditing');for(const [_0xa0665f,_0x281936]of Object['entries'](_0x14b87e)){const _0x22ec23=document['createElement']('div');_0x22ec23['innerHTML']=_0x281936,(_0x22ec23['querySelectorAll']('figure.media')['forEach'](_0x52f596=>{const _0x510b5f=_0x52f596['querySelector']('oembed');if(_0x510b5f){const _0x4aa94a=_0x510b5f['getAttribute']('url');if(_0x4aa94a){const _0x572ef6=_0xf572eb['registry']['getMediaViewElement'](new _0x30b56f(_0x327014['editing']['view']['document']),_0x4aa94a,{'elementName':'','renderForEditingView':!0x0}),_0x3b28f3=document['createElement']('div');_0x3b28f3['classList']['add']('ck-media__wrapper'),_0x572ef6['render'](_0x3b28f3,_0x327014['editing']['view']['domConverter']),_0x510b5f['replaceWith'](_0x3b28f3);}}}),_0x14b87e[_0xa0665f]=_0x22ec23['innerHTML']);}return _0x14b87e;}['_sortRoots'](_0x215d5b){if(!function(_0x90a982){return void 0x0!==_0x90a982['getRootsAttributes'];}(_0x215d5b))return _0x215d5b['model']['document']['getRootNames']();const _0x5587c6=[],_0x3f5713=new Map();for(const _0x447f96 of _0x215d5b['model']['document']['getRootNames']()){const _0x157880=_0x215d5b['editing']['view']['getDomRoot'](_0x447f96)['getClientRects']()['item'](0x0);_0x5587c6['push'](_0x447f96),_0x3f5713['set'](_0x447f96,_0x157880);}return _0x5587c6['sort']((_0x4465ff,_0x4fd8aa)=>{const _0x44e4e1=_0x3f5713['get'](_0x4465ff),_0x1c741c=_0x3f5713['get'](_0x4fd8aa);return _0x44e4e1['y']-_0x1c741c['y']||_0x44e4e1['x']-_0x1c741c['x'];}),_0x5587c6;}}class Xe extends _0x51aec7{static get['requires'](){return[ce,_0x1e57c2];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48a3c1){super(_0x48a3c1),_0x48a3c1['commands']['add']('previewFinalContent',new ae(this['editor'])),_0x48a3c1['config']['define']('trackChanges.preview.renderFunction',(_0x35d82e,_0x3d501e)=>{for(const _0x41cb56 of _0x3d501e)_0x35d82e['appendChild'](_0x41cb56);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ae as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,Te as SuggestionThreadView,Le as SuggestionView,Ve as TrackChanges,B as TrackChangesCommand,ce as TrackChangesData,ze as TrackChangesDataGetter,d as TrackChangesEditing,Xe as TrackChangesPreview,u as TrackChangesUI};
|