@ckeditor/ckeditor5-track-changes 47.1.0-alpha.0 → 47.1.0-alpha.1
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
|
-
_0x50e5df(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3b7d0e,_0x5d048a){super(),this['id']=_0x5d048a['id'],this['type']=_0x5d048a['type'],this['subType']=_0x5d048a['subType']||null,this['author']=_0x5d048a['author'],this['creator']=_0x5d048a['creator']||_0x5d048a['author'],this['isExternal']=Boolean(_0x5d048a['attributes']&&_0x5d048a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5d048a['originalSuggestionId']||null,this['_model']=_0x3b7d0e,this['_onAccept']=_0x5d048a['onAccept'],this['_onDiscard']=_0x5d048a['onDiscard'],this['_onAttributesChange']=_0x5d048a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5d048a['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 _0x5b012c=this;for(;_0x5b012c['previous'];)_0x5b012c=_0x5b012c['previous'];return _0x5b012c;}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'](_0x37d072){this['_markerNames']['add'](_0x37d072);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xbf9c35=>this['_model']['markers']['get'](_0xbf9c35))['filter'](_0x23f2ca=>_0x23f2ca);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5f2c24=>{for(const _0x42bbfa of this['getMarkers']())_0x5f2c24['removeMarker'](_0x42bbfa);}),this['_markerNames']['clear']();}['removeMarker'](_0x54adda){this['_model']['change'](_0x29debb=>{_0x29debb['removeMarker'](_0x54adda);}),this['_markerNames']['delete'](_0x54adda);}['addRange'](_0x170651){const _0x3aa36e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x3aa36e),this['_model']['change'](_0x5d4fc0=>{_0x5d4fc0['addMarker'](_0x3aa36e,{'range':_0x170651,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x29c5c4){for(const _0x27896e of this['getRanges']())if(_0x27896e['isIntersecting'](_0x29c5c4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3b7d41=>_0x3b7d41['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x739993,_0x567eb8)=>[..._0x739993,..._0x567eb8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5ab56c=this['getRanges']();if(0x1!=_0x5ab56c['length'])return null;const _0x43058a=_0x5ab56c[0x0],_0x22da95=_0x43058a['start']['nodeAfter'],_0x13d19d=_0x43058a['end']['nodeBefore'];return _0x22da95 instanceof _0x269d0c?_0x22da95!=_0x13d19d?null:_0x22da95: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 _0x593d34=[];let _0x422502=this['head'];for(;_0x422502;)_0x593d34['push'](_0x422502),_0x422502=_0x422502['next'];return _0x593d34;}['setAttribute'](_0x1ba401,_0x519549){const _0x591f57=_0x5493e1(this['attributes']);_0x248dea(_0x591f57,_0x1ba401,_0x519549),_0x18158c(_0x591f57,this['attributes'])||(this['attributes']=_0x591f57,this['_onAttributesChange'](_0x591f57));}['removeAttribute'](_0x1bdf72){const _0x148cf9=_0x5493e1(this['attributes']);_0x482bd1(_0x148cf9,_0x1bdf72),_0x18158c(_0x148cf9,this['attributes'])||(this['attributes']=_0x148cf9,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 _0x172a90()['substr'](0x1,0x5);}}function o(_0x3000a5,_0x1fffc0,_0x11efe0){const _0x2d2e6c=_0x3000a5['t'],t=_0x3000a5['t'];switch(_0x1fffc0){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',_0x11efe0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x11efe0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x11efe0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x11efe0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x11efe0);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',_0x11efe0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x11efe0);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',_0x11efe0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x11efe0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x11efe0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x11efe0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x11efe0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x11efe0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x11efe0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x11efe0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x11efe0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x11efe0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x11efe0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x11efe0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x11efe0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x11efe0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x11efe0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x11efe0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x11efe0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x11efe0);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'},_0x11efe0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x11efe0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x11efe0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x11efe0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x11efe0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x11efe0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x11efe0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x11efe0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x11efe0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x11efe0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x11efe0);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'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x11efe0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x11efe0);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'},_0x11efe0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x11efe0);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 _0x2d2e6c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x11efe0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2d2e6c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x11efe0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x11efe0);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'},_0x11efe0);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'},_0x11efe0);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'},_0x11efe0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1fffc0;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2e56c9,_0x5b6c4c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2e56c9,this['_locale']=_0x5b6c4c;}['getDescriptions'](_0x5b9924){const _0x140cd0=[],_0x373697=new Set(),_0x34a23d=new Set();for(let _0xf69118=0x0;_0xf69118<_0x5b9924['length'];_0xf69118++){const _0x122b76=_0x5b9924[_0xf69118];if(!_0x122b76['isInContent'])continue;const _0x535996=this['_handleCustomCallbackDescription'](_0x122b76);if(_0x535996){if(null!=_0x122b76['subType']){if(_0x373697['has'](_0x122b76['subType']))continue;_0x373697['add'](_0x122b76['subType']);}_0x140cd0['push'](_0x535996);}else{if('attribute'==_0x122b76['type']){const _0x4a453f=_0x122b76['data']['key'];if(_0x34a23d['has'](_0x4a453f))continue;_0x34a23d['add'](_0x122b76['data']['key']),_0x4a453f==m?this['_handleRenameSuggestionDescription'](_0x140cd0,_0x122b76):this['_handleAttributeSuggestionDescription'](_0x140cd0,_0x122b76);continue;}'insertion'!=_0x122b76['type']&&'deletion'!=_0x122b76['type']||this['_handleInsertRemoveSuggestionDescription'](_0x140cd0,_0x122b76,_0x5b9924[_0xf69118+0x1]);}}return this['_resolveDescriptionItems'](_0x140cd0);}['registerDescriptionCallback'](_0x569115){this['_customCallbacks']['push'](_0x569115);}['registerElementLabel'](_0x38ae14,_0x40833e,_0x4d188e=_0x3b0c6e['normal']){'function'==typeof _0x38ae14?_0x3f9b9b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x38ae14,'label':_0x40833e,'priority':_0x4d188e}):this['_itemLabels']['set'](_0x38ae14,_0x40833e);}['registerAttributeLabel'](_0x17c577,_0x3623f6){this['_attributeLabels']['set'](_0x17c577,_0x3623f6);}['getItemLabel'](_0x498c60,_0x2c5df2=0x1){let _0x559f21;for(const _0x452118 of this['_itemLabelsCallbacks'])if(_0x452118['matchingCallback'](_0x498c60)){_0x559f21=_0x452118['label'];break;}return _0x559f21||(_0x559f21=this['_itemLabels']['get'](_0x498c60['name'])),_0x559f21?_0x559f21(_0x2c5df2):0x1!==_0x2c5df2?_0x2c5df2+'\x20'+_0x498c60['name']+'s':''+_0x498c60['name'];}['_addDescriptionItems'](_0x3d5a32,_0x13f6d0){const _0x12ff88=_0x13f6d0['getFirstRange']()['getWalker'](),_0xbe55c2='insertion'==_0x13f6d0['type']?'add':'remove';for(const _0x15ff0d of _0x12ff88){const _0xdee277=_0x15ff0d['item'],_0x38c9c5=_0x3d5a32[_0x3d5a32['length']-0x1];if(_0xdee277['is']('$textProxy'))_0x38c9c5&&_0x38c9c5['type']['indexOf']('Container')>-0x1&&_0x3d5a32['pop'](),_0x38c9c5&&'text'==_0x38c9c5['type']?_0x38c9c5[_0xbe55c2]+=_0xdee277['data']:_0x3d5a32['push']({'type':'text','add':'add'==_0xbe55c2?_0xdee277['data']:'','remove':'remove'==_0xbe55c2?_0xdee277['data']:''});else{if(this['_schema']['isObject'](_0xdee277)){const _0x2f8851=_0xdee277;if(_0x38c9c5&&_0x38c9c5['type']['indexOf']('Container')>-0x1&&_0x3d5a32['pop'](),'elementEnd'==_0x15ff0d['type'])continue;_0x38c9c5&&_0x38c9c5['type']==_0xbe55c2+'Object'&&_0x38c9c5['element']['name']==_0x2f8851['name']?_0x38c9c5['quantity']++:_0x3d5a32['push']({'type':_0xbe55c2+'Object','element':_0x2f8851,'quantity':0x1}),_0x12ff88['skip'](_0x6c4dc2=>!('elementEnd'==_0x6c4dc2['type']&&_0x6c4dc2['item']==_0xdee277));}else{if(this['_schema']['checkChild'](_0xdee277,'$text')||_0xdee277['is']('element','softBreak')){const _0x28a5b6=_0xdee277;if('add'==_0xbe55c2&&'elementStart'==_0x15ff0d['type']||'remove'==_0xbe55c2&&'elementEnd'==_0x15ff0d['type'])continue;if(_0x38c9c5&&-0x1==_0x38c9c5['type']['indexOf']('Container')){'text'==_0x38c9c5['type']&&(_0x38c9c5[_0xbe55c2]+='\x0a');continue;}let _0x7a297c;if(_0x7a297c='add'==_0xbe55c2?_0x28a5b6['nextSibling']&&!this['_schema']['isObject'](_0x28a5b6['nextSibling'])?_0x28a5b6['nextSibling']:null:_0x28a5b6['previousSibling']&&!this['_schema']['isObject'](_0x28a5b6['previousSibling'])?_0x28a5b6['previousSibling']:null,_0x28a5b6['isEmpty']||_0x7a297c&&_0x7a297c['isEmpty']){const _0xe0313=_0x7a297c&&_0x7a297c['isEmpty']?_0x7a297c:_0x28a5b6;_0x38c9c5&&_0x38c9c5['type']==_0xbe55c2+'EmptyContainer'&&_0x38c9c5['element']['name']==_0xe0313['name']?_0x38c9c5['quantity']++:_0x3d5a32['push']({'type':_0xbe55c2+'EmptyContainer','element':_0xe0313,'quantity':0x1});}else _0x3d5a32['push']({'type':_0xbe55c2+'Container','element':_0x28a5b6});}}}}}['_resolveDescriptionItems'](_0x202dbe){const _0x5362f7=this['_locale'],_0x148ca9=[],_0xb4996c=[],_0x2ae9e5=[];for(const _0x400764 of _0x202dbe)switch(_0x400764['type']){case'text':if(_0x400764['add']=_0x400764['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x400764['remove']=_0x400764['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x400764['add']&&''!=_0x400764['remove']){_0x148ca9['push']({'type':'replace','content':o(_0x5362f7,'REPLACE_TEXT',['\x22'+_0x400764['remove']+'\x22','\x22'+_0x400764['add']+'\x22'])});continue;}if(null!=_0x400764['add']['match'](/^ +$/)){_0x148ca9['push']({'type':'insertion','content':o(_0x5362f7,'*Insert:*\x20%0',o(_0x5362f7,'ELEMENT_SPACE',_0x400764['add']['length']))});continue;}if(null!=_0x400764['remove']['match'](/^ +$/)){_0x148ca9['push']({'type':'deletion','content':o(_0x5362f7,'*Remove:*\x20%0',o(_0x5362f7,'ELEMENT_SPACE',_0x400764['remove']['length']))});continue;}if(''!=_0x400764['add']){_0x148ca9['push']({'type':'insertion','content':o(_0x5362f7,'*Insert:*\x20%0','\x22'+_0x400764['add']+'\x22')});continue;}_0x148ca9['push']({'type':'deletion','content':o(_0x5362f7,'*Remove:*\x20%0','\x22'+_0x400764['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x148ca9['push']({'type':'insertion','content':o(_0x5362f7,'*Insert:*\x20%0',this['getItemLabel'](_0x400764['element'],_0x400764['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x148ca9['push']({'type':'deletion','content':o(_0x5362f7,'*Remove:*\x20%0',this['getItemLabel'](_0x400764['element'],_0x400764['quantity']))});continue;case'addContainer':_0x148ca9['push']({'type':'insertion','content':o(_0x5362f7,'*Split:*\x20%0',this['getItemLabel'](_0x400764['element'],_0x400764['quantity']))});continue;case'removeContainer':_0x148ca9['push']({'type':'deletion','content':o(_0x5362f7,'*Merge:*\x20%0',this['getItemLabel'](_0x400764['element'],_0x400764['quantity']))});continue;case'addFormat':_0xb4996c['push'](_0x400764['key']);continue;case'removeFormat':_0x2ae9e5['push'](_0x400764['key']);continue;default:_0x148ca9['push'](_0x400764);}if(_0xb4996c['length']){const _0x1b0763=_0xb4996c['map'](_0x4dfe09=>this['_attributeLabels']['has'](_0x4dfe09)?this['_attributeLabels']['get'](_0x4dfe09):_0x4dfe09)['join'](',\x20');_0x148ca9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1b0763)});}if(_0x2ae9e5['length']){const _0x2143b3=_0x2ae9e5['map'](_0x4b18f8=>this['_attributeLabels']['has'](_0x4b18f8)?this['_attributeLabels']['get'](_0x4b18f8):_0x4b18f8)['join'](',\x20');_0x148ca9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2143b3)});}return _0x148ca9;}['_handleCustomCallbackDescription'](_0x1d56de){for(const _0x544d97 of this['_customCallbacks']){const _0x1c8fd3=_0x544d97(_0x1d56de);if(_0x1c8fd3&&'type'in _0x1c8fd3)return _0x1c8fd3;}}['_handleAttributeSuggestionDescription'](_0x40f1d0,_0x550a34){const _0x1d1c45=_0x550a34['data'],_0x58bca3=void 0x0===_0x1d1c45['newValue']?'removeFormat':'addFormat';_0x40f1d0['push']({'type':_0x58bca3,'key':_0x1d1c45['key']});}['_handleRenameSuggestionDescription'](_0x114f8c,_0x20f019){_0x114f8c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20f019['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3b53ac,_0x4b4816,_0x22b7f9){if(this['_addDescriptionItems'](_0x3b53ac,_0x4b4816),_0x22b7f9&&_0x22b7f9['getFirstRange']()&&!_0x4b4816['getFirstRange']()['end']['isEqual'](_0x22b7f9['getFirstRange']()['start'])){const _0x17f4b8=_0x3b53ac[_0x3b53ac['length']-0x1],_0x3b8e8a='insertion'==_0x4b4816['type']?'add':'remove';_0x17f4b8&&'text'==_0x17f4b8['type']&&(_0x17f4b8[_0x3b8e8a]+='\x0a');}}}class V extends _0x3f9a7e{['afterInit'](){const _0xf97624=this['editor'],_0xcaad65=_0xf97624['plugins']['get']('TrackChangesEditing');_0xf97624['commands']['get']('showAIAssistant')&&_0xcaad65['enableCommand']('showAIAssistant');}}class F extends _0x3f9a7e{['afterInit'](){const _0x250a09=this['editor'],_0x2f91fc=_0x250a09['plugins']['get']('TrackChangesEditing');_0x250a09['commands']['get']('toggleAi')&&_0x2f91fc['enableCommand']('toggleAi');}}class G extends _0x3f9a7e{['afterInit'](){const _0x34f9e2=this['editor'],_0xd06c9d=_0x34f9e2['plugins']['get']('TrackChangesEditing');_0x34f9e2['commands']['get']('aiQuickAction')&&_0xd06c9d['enableCommand']('aiQuickAction');}}class L extends _0x3f9a7e{['afterInit'](){const _0x3b509e=this['editor'],_0x46b5c3=_0x3b509e['locale'];if(!_0x3b509e['plugins']['has']('AlignmentEditing'))return;const _0x88ec5f=_0x3b509e['plugins']['get']('TrackChangesEditing');_0x88ec5f['enableDefaultAttributesIntegration']('alignment'),_0x88ec5f['registerBlockAttribute']('alignment'),_0x88ec5f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x46b5c3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x549cd1=this['editor'],_0x366174=_0x549cd1['locale'];_0x549cd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ca200=>{if('formatBlock'!=_0x3ca200['type'])return;const {data:_0x57425e}=_0x3ca200;if(_0x57425e&&'alignment'==_0x57425e['commandName']){const _0x7d80da=_0x57425e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x366174,'*Format:*\x20%0',function(_0x4ac6e1){switch(_0x4ac6e1){case'left':return o(_0x366174,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x366174,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x366174,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x366174,'FORMAT_JUSTIFY_TEXT');}}(_0x7d80da))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x3f9a7e{['afterInit'](){const _0x2fe45e=this['editor'],_0x471ecf=_0x2fe45e['plugins']['get']('TrackChangesEditing'),_0x78ba3a=_0x2fe45e['locale'];for(const _0x55bec4 of ti){if(!_0x2fe45e['plugins']['has'](_0x55bec4))continue;const _0x2aee8b=_0x55bec4['slice'](0x0,-0x7)['toLowerCase'](),_0x31aed2='FORMAT_'+_0x2aee8b['toUpperCase']();_0x471ecf['enableDefaultAttributesIntegration'](_0x2aee8b),_0x471ecf['registerInlineAttribute'](_0x2aee8b),_0x471ecf['descriptionFactory']['registerAttributeLabel'](_0x2aee8b,o(_0x78ba3a,_0x31aed2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x308cc7=this['editor'],_0x58e8d3=_0x308cc7['locale'],_0xe66a6c=_0x308cc7['plugins']['get']('TrackChangesEditing');function _0x3772bc(_0x1ae392,_0x2919b5){_0xe66a6c['descriptionFactory']['registerDescriptionCallback'](_0x449e61=>{if('formatInline'!=_0x449e61['type'])return;const {data:_0x23d586}=_0x449e61;return _0x23d586&&_0x23d586['commandName']===_0x1ae392?_0x23d586['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58e8d3,'*Format:*\x20%0',_0x2919b5)}:{'type':'format','content':o(_0x58e8d3,'*Remove\x20format:*\x20%0',_0x2919b5)}:void 0x0;});}_0x3772bc('bold',o(_0x58e8d3,'FORMAT_BOLD')),_0x3772bc('italic',o(_0x58e8d3,'FORMAT_ITALIC')),_0x3772bc('underline',o(_0x58e8d3,'FORMAT_UNDERLINE')),_0x3772bc('code',o(_0x58e8d3,'FORMAT_CODE')),_0x3772bc('strikethrough',o(_0x58e8d3,'FORMAT_STRIKETHROUGH')),_0x3772bc('subscript',o(_0x58e8d3,'FORMAT_SUBSCRIPT')),_0x3772bc('superscript',o(_0x58e8d3,'FORMAT_SUPERSCRIPT'));}}class K extends _0x3f9a7e{['afterInit'](){const _0x7137d9=this['editor'],_0x513d02=_0x7137d9['locale'];if(!_0x7137d9['plugins']['has']('BlockQuoteEditing'))return;const _0x2d325c=_0x7137d9['plugins']['get']('TrackChangesEditing'),_0x21aeef=this['editor']['commands']['get']('blockQuote');_0x2d325c['enableCommand']('blockQuote',(_0x3d6c84,_0x29ee09={})=>{const _0x2bdf8d=this['editor']['model']['document']['selection'],_0x6020c=_0x29ee09&&void 0x0!==_0x29ee09['forceValue']?_0x29ee09['forceValue']:!_0x21aeef['value'];let _0x863ff4=[];if(_0x6020c){const _0x41c767=Array['from'](_0x2bdf8d['getSelectedBlocks']())['filter'](_0x1abc1e=>oo(_0x1abc1e)||function(_0x2df508,_0x2208eb){const _0x36dabe=_0x2208eb['checkChild'](_0x2df508['parent'],'blockQuote'),_0x1f5dcb=_0x2208eb['checkChild'](['$root','blockQuote'],_0x2df508);return _0x36dabe&&_0x1f5dcb;}(_0x1abc1e,this['editor']['model']['schema']));_0x863ff4=to(_0x41c767,_0x7137d9['model']);}else{const _0x3d7f08=Array['from'](_0x2bdf8d['getSelectedBlocks']())['filter'](_0x30b9be=>oo(_0x30b9be));_0x863ff4=to(_0x3d7f08,_0x7137d9['model']);}_0x7137d9['model']['change'](()=>{for(const _0x5c6167 of _0x863ff4)_0x2d325c['markBlockFormat'](_0x5c6167,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x6020c}]});});}),_0x2d325c['descriptionFactory']['registerDescriptionCallback'](_0x1b81ca=>{const {data:_0x32620d}=_0x1b81ca;if(_0x32620d&&'blockQuote'==_0x32620d['commandName']){const _0x29162e=o(_0x513d02,'ELEMENT_BLOCK_QUOTE');return _0x32620d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x513d02,'*Set\x20format:*\x20%0',_0x29162e)}:{'type':'format','content':o(_0x513d02,'*Remove\x20format:*\x20%0',_0x29162e)};}});}}function oo(_0x55cfd3){return'blockQuote'==_0x55cfd3['parent']['name'];}class q extends _0x3f9a7e{['afterInit'](){const _0x148c3d=this['editor'],_0x2f24fc=_0x148c3d['locale'],_0x5ce0cd=_0x148c3d['plugins']['get']('TrackChangesEditing');_0x148c3d['plugins']['has']('BookmarkEditing')&&(_0x5ce0cd['enableCommand']('insertBookmark'),_0x5ce0cd['enableDefaultAttributesIntegration']('updateBookmark'),_0x5ce0cd['registerBlockAttribute']('bookmarkId'),_0x5ce0cd['descriptionFactory']['registerDescriptionCallback'](_0x4e79b9=>{if('insertion'!=_0x4e79b9['type']&&'deletion'!=_0x4e79b9['type']&&'attribute'!=_0x4e79b9['type'])return;const _0x152b5d=_0x4e79b9['getContainedElement']();if(null==_0x152b5d)return;if(!_0x152b5d['is']('element','bookmark'))return;const _0x593629=_0x152b5d['getAttribute']('bookmarkId');if('insertion'==_0x4e79b9['type'])return{'type':'insertion','content':o(_0x2f24fc,'*Insert:*\x20%0','\x22'+_0x593629+'\x22\x20'+o(_0x2f24fc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4e79b9['type'])return{'type':'deletion','content':o(_0x2f24fc,'*Remove:*\x20%0','\x22'+_0x593629+'\x22\x20'+o(_0x2f24fc,'ELEMENT_BOOKMARK'))};const {data:_0x2d6a3a}=_0x4e79b9;if(!_0x2d6a3a||'bookmarkId'!=_0x2d6a3a['key'])return;return{'type':'format','content':o(_0x2f24fc,'*Set\x20bookmark:*\x20%0','\x22'+_0x2d6a3a['newValue']+'\x22')};}));}}class H extends _0x3f9a7e{['afterInit'](){const _0x100a97=this['editor'];_0x100a97['plugins']['has']('CaseChange')&&(_0x100a97['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x100a97['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x100a97['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x3f9a7e{['afterInit'](){const _0x2b76ed=this['editor'];_0x2b76ed['commands']['get']('ckbox')&&_0x2b76ed['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x3f9a7e{['afterInit'](){const _0x2d5ff6=this['editor'];if(!_0x2d5ff6['plugins']['has']('CodeBlock'))return;const _0x19f628=_0x2d5ff6['plugins']['get']('TrackChangesEditing'),_0x5ae051=_0x2d5ff6['locale'],_0x4f4b92=_0x2d5ff6['config']['get']('codeBlock')['languages'],_0x52d6a4=_0x2d5ff6['commands']['get']('codeBlock');_0x19f628['enableCommand']('indentCodeBlock'),_0x19f628['enableCommand']('outdentCodeBlock'),_0x19f628['enableCommand']('codeBlock',(_0x13d708,_0x566bf1={})=>{const _0x78c197=_0x2d5ff6['model'],_0x4948b5=_0x2d5ff6['model']['document']['selection'],_0x3fe899=_0x566bf1&&void 0x0!==_0x566bf1['forceValue']?_0x566bf1['forceValue']:!_0x52d6a4['value'];let _0x2e894c;_0x566bf1['language']||(_0x566bf1['language']=_0x4f4b92[0x0]['language']),_0x2e894c=_0x3fe899?Array['from'](_0x4948b5['getSelectedBlocks']())['filter'](_0x4d8ba5=>co(_0x4d8ba5)||function(_0x31e821,_0x378add){if(_0x31e821['is']('rootElement')||_0x378add['isLimit'](_0x31e821))return!0x1;return _0x378add['checkChild'](_0x31e821['parent'],'codeBlock');}(_0x4d8ba5,_0x78c197['schema'])):Array['from'](_0x4948b5['getSelectedBlocks']())['filter'](_0xe21679=>co(_0xe21679));const _0x56f00e=to(_0x2e894c,_0x78c197);_0x78c197['change'](()=>{for(const _0x4f4f33 of _0x56f00e)_0x19f628['markBlockFormat'](_0x4f4f33,{'commandName':'codeBlock','commandParams':[{..._0x566bf1,'forceValue':_0x3fe899}],'formatGroupId':'blockName'});});}),(_0x19f628['descriptionFactory']['registerElementLabel']('codeBlock',_0x15488f=>o(_0x5ae051,'ELEMENT_CODE_BLOCK',_0x15488f)),_0x19f628['descriptionFactory']['registerDescriptionCallback'](_0x49e883=>{if('formatBlock'!=_0x49e883['type'])return;const _0x2db6a5=_0x5ae051['t'],{data:_0xad9d53}=_0x49e883;if(!_0xad9d53||'codeBlock'!=_0xad9d53['commandName'])return;const _0x536899=_0xad9d53['commandParams'][0x0]['language'],_0x140cfc=_0x2db6a5(_0x4f4b92['find'](_0xc0db3f=>_0xc0db3f['language']===_0x536899)['label'])['toLowerCase']();return _0xad9d53['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ae051,'*Set\x20format:*\x20%0',o(_0x5ae051,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x140cfc+')')}:{'type':'format','content':o(_0x5ae051,'*Remove\x20format:*\x20%0',o(_0x5ae051,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x15582e){return'codeBlock'==_0x15582e['name'];}class Q extends _0x3f9a7e{['afterInit'](){const _0x442a2f=this['editor'];if(!_0x442a2f['plugins']['has']('CommentsEditing'))return;_0x442a2f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x338876,_0x4fe109,_0x5ea6fe){const _0x536e98=[];for(const _0x10de17 of _0x4fe109['getItems']())_0x10de17['hasAttribute'](_0x338876)&&_0x536e98['push'](_0x5ea6fe['createRangeOn'](_0x10de17));return _0x536e98;}function Ve(_0x32df0c,_0xebb91e,{showActiveMarker:_0x15c120=!0x0}={}){const _0x2428e1=_0x32df0c['plugins']['get']('TrackChangesEditing');return(_0x3a918c,_0x4c45e7,_0x79dfad)=>{if(!_0x79dfad['consumable']['test'](_0x4c45e7['markerRange'],_0x3a918c['name']))return;const _0x526bbd=_0x4c45e7['markerRange']['getWalker'](),_0x1de047=_0x4c45e7['markerRange']['start'],_0x364e3c=_0x32df0c['model']['schema'];let _0x492de8=null,_0x4b5df7=null,_0x1170e3=!0x1,_0xa27d7b=!0x1;for(const _0x55749e of _0x526bbd){const _0x59678e=_0x55749e['item'];_0x1170e3=_0x1170e3||_0x364e3c['isContent'](_0x59678e);const _0x4483c0=_0x79dfad['mapper']['toViewElement'](_0x59678e);if(_0x4483c0&&_0x4483c0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55749e['type']&&(_0x364e3c['isBlock'](_0x59678e)&&!_0x364e3c['isLimit'](_0x59678e)&&(_0x59678e['nextSibling']||_0x1de047['isAtEnd']?_0x492de8&&_0x492de8['parent']==_0x59678e||(_0x492de8=_0x59678e,_0x1f7961(_0x55749e['previousPosition']),_0xa27d7b=!0x0):_0x4b5df7=_0x4b5df7||_0x55749e['previousPosition']));}function _0x1f7961(_0x1dab7a){const {id:_0x3c6363,authorId:_0x31fcdc}=_0x2428e1['_splitMarkerName'](_0x4c45e7['markerName']),_0x54b718=_0x79dfad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xebb91e,'data-suggestion':_0x3c6363,'data-author-id':_0x31fcdc}),_0x38ec79=_0x79dfad['mapper']['toViewPosition'](_0x1dab7a);_0x15c120&&_0x2428e1['activeMarkers']['includes'](_0x4c45e7['markerName'])&&_0x79dfad['writer']['addClass']('ck-suggestion-marker--active',_0x54b718),_0x79dfad['writer']['insert'](_0x38ec79,_0x54b718),_0x79dfad['mapper']['bindElementToMarker'](_0x54b718,_0x4c45e7['markerName']);}_0x1170e3||_0xa27d7b||!_0x4b5df7||_0x1f7961(_0x4b5df7);};}class X extends _0x3f9a7e{static get['requires'](){return[_0x352fd8];}['init'](){const _0x4a7277=this['editor'],_0x12c7cd=_0x4a7277['plugins']['get']('TrackChangesEditing');_0x12c7cd['enableCommand']('delete');const _0x5a3693=_0x4a7277['commands']['get']('deleteForward');_0x12c7cd['enableCommand']('deleteForward',(_0x33a566,_0x1e9ae4={})=>{const _0x281e87=_0x4a7277['model']['createSelection'](_0x4a7277['model']['document']['selection']);_0x281e87['isCollapsed']&&_0x4a7277['model']['modifySelection'](_0x281e87,{'direction':'forward','unit':_0x1e9ae4['unit']});const _0x29bcc5=_0x281e87['getFirstRange'](),_0x100098=_0x360709['fromRange'](_0x29bcc5);let _0xf6415e;_0x33a566(_0x1e9ae4),_0xf6415e='$graveyard'==_0x100098['root']['rootName']?_0x4a7277['model']['createRange'](_0x29bcc5['start']):_0x4a7277['model']['createRange'](_0x100098['start'],_0x100098['end']),_0x100098['detach'](),_0x4a7277['model']['enqueueChange'](_0x5a3693['buffer']['batch'],_0x33f121=>{_0x5a3693['buffer']['lock'](),_0x33f121['setSelection'](_0x33f121['createRange'](_0xf6415e['end'])),_0x5a3693['buffer']['unlock']();});}),_0x4a7277['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x4a7277,'merge'),{'priority':'high'}),_0x4a7277['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x7e34c9,_0x41387b,_0xbe759)=>{_0xbe759['options']['showSuggestionHighlights']&&Ve(_0x4a7277,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x7e34c9,_0x41387b,_0xbe759);},{'priority':'high'}),_0x4a7277['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5a4a6c,_0x1ac851,_0x25eb0e)=>{const _0x2aa09e=_0x25eb0e['mapper']['markerNameToElements'](_0x1ac851['markerName']);if(_0x2aa09e){for(const _0x12b87d of _0x2aa09e)_0x12b87d['is']('uiElement')&&(_0x25eb0e['mapper']['unbindElementFromMarkerName'](_0x12b87d,_0x1ac851['markerName']),_0x25eb0e['writer']['remove'](_0x12b87d));}},{'priority':'high'});}}class Y extends _0x3f9a7e{['afterInit'](){const _0x350752=this['editor'];if(!_0x350752['plugins']['has']('ListEditing'))return;const _0x77403a=_0x350752['locale'],_0x231690=_0x350752['plugins']['get']('TrackChangesEditing'),_0x3472cd=_0x350752['plugins']['has']('TodoListEditing'),_0x2443d9=!!_0x350752['config']['get']('list.multiBlock');function _0x53a52f(_0x2a7442){return{'type':'format','content':''+o(_0x77403a,'*Set\x20format:*\x20%0',_0x2a7442)};}function _0x441696(_0x3e3cf1){return{'type':'format','content':''+o(_0x77403a,'*Remove\x20format:*\x20%0',_0x3e3cf1)};}_0x231690['enableDefaultAttributesIntegration']('numberedList'),_0x231690['enableDefaultAttributesIntegration']('bulletedList'),_0x231690['enableDefaultAttributesIntegration']('customNumberedList'),_0x231690['enableDefaultAttributesIntegration']('customBulletedList'),_0x231690['enableDefaultAttributesIntegration']('indentList'),_0x231690['enableDefaultAttributesIntegration']('outdentList'),_0x231690['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x231690['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x231690['registerBlockAttribute']('listItemId'),_0x231690['registerBlockAttribute']('listType'),_0x231690['registerBlockAttribute']('listIndent'),_0x2443d9&&(_0x231690['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x231690['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3472cd&&(_0x231690['enableDefaultAttributesIntegration']('todoList'),_0x231690['enableDefaultAttributesIntegration']('checkTodoList'),_0x231690['registerBlockAttribute']('todoListChecked'),_0x231690['descriptionFactory']['registerDescriptionCallback'](_0x91f713=>{const {data:_0x59e353}=_0x91f713;if(_0x59e353&&'todoListChecked'==_0x59e353['key'])return{'type':'format','content':_0x59e353['newValue']?o(_0x77403a,'*Check\x20item*'):o(_0x77403a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xaad6cd=>{if(_0xaad6cd['batch']['isUndo'])return!0x1;let _0x11ac57=!0x1;const _0x1e0f57=_0x231690['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x143b56=>'todoListChecked'===_0x231690['_getAttributeKey'](_0x143b56));for(const _0x50c442 of _0x1e0f57){'todo'!=_0x50c442['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x231690['_findSuggestions'](_0x50c442['getFirstRange'](),'attribute')['find'](_0x48268f=>'listType'===_0x231690['_getAttributeKey'](_0x48268f['suggestion']))||(_0xaad6cd['removeMarker'](_0x50c442['getFirstMarker']()),_0x11ac57=!0x0));}return _0x11ac57;})),_0x231690['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x77403a,'FORMAT_INDENT'));const _0x450e2e={'type':'format','content':''};_0x231690['descriptionFactory']['registerDescriptionCallback'](_0xc9d48c=>{const {data:_0x38f155}=_0xc9d48c;if(!_0x38f155||'listType'!=_0x38f155['key'])return;let _0x5bc603=_0xc9d48c['head'];for(;_0x5bc603;){if(_0x5bc603['data']&&(('listStyle'==_0x5bc603['data']['key']||'listMarkerStyle'==_0x5bc603['data']['key'])&&(_0x5bc603['data']['newValue']&&'default'!=_0x5bc603['data']['newValue']||'default'!=_0x5bc603['data']['oldValue']&&!_0x38f155['newValue'])||!_0x2443d9&&_0x5bc603['data']['key']==m))return _0x450e2e;_0x5bc603=_0x5bc603['next'];}if(null==_0x38f155['newValue'])switch(_0x38f155['oldValue']){case'bulleted':return _0x441696(o(_0x77403a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x441696(o(_0x77403a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x441696(o(_0x77403a,'ELEMENT_TODO_LIST'));}switch(_0x38f155['newValue']){case'bulleted':return _0x53a52f(o(_0x77403a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53a52f(o(_0x77403a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53a52f(o(_0x77403a,'ELEMENT_TODO_LIST'));}}),_0x231690['descriptionFactory']['registerDescriptionCallback'](_0x4d0b73=>{const {data:_0x2cd95e}=_0x4d0b73;if(_0x2cd95e&&'listIndent'==_0x2cd95e['key'])return null==_0x2cd95e['newValue']||null==_0x2cd95e['oldValue']&&0x0==_0x2cd95e['newValue']?_0x450e2e:void 0x0;}),_0x231690['descriptionFactory']['registerDescriptionCallback'](_0x2a7441=>{if('attribute'!=_0x2a7441['type'])return;const {data:_0x1daad8}=_0x2a7441;if(!_0x1daad8||'listItemId'!=_0x1daad8['key'])return;const _0x4b7433=Be(_0x2a7441);return'newValue'==_0x4b7433?{'type':'format','content':o(_0x77403a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4b7433?{'type':'format','content':o(_0x77403a,'*Split:*\x20list\x20item')}:_0x450e2e;}),_0x350752['model']['document']['registerPostFixer'](_0x419bb4=>this['listItemIdFixer'](_0x419bb4)),_0x350752['model']['document']['registerPostFixer'](_0x4c9cb7=>this['noTrackChangesFixer'](_0x4c9cb7)),_0x350752['model']['document']['on']('change:data',(_0x132f3e,_0x592116)=>{if(_0x592116['isUndo']||!_0x592116['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1181b){if(_0x1181b['batch']['isUndo']||!_0x1181b['batch']['isLocal'])return!0x1;let _0x575c6e=!0x1;const _0x55502f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x155a05=>_0x155a05['data']&&'listItemId'==_0x155a05['data']['key'])['filter'](_0x51173f=>_0x51173f['data']['newValue']&&_0x51173f['data']['oldValue']);for(const _0x280821 of _0x55502f)Be(_0x280821)||(_0x1181b['removeMarker'](_0x280821['getFirstMarker']()),_0x575c6e=!0x0);return _0x575c6e;}['noTrackChangesFixer'](_0x11db39){if(_0x11db39['batch']['isUndo']||!_0x11db39['batch']['isLocal'])return!0x1;const _0x4021ff=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4021ff['trackChangesCommand']['value'])return!0x1;let _0x21d8dd=!0x1;const _0x432225=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4eb37d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x37fcdc=>'attribute'==_0x37fcdc['type'])['filter'](_0x4df2fa=>_0x432225['includes'](_0x4df2fa['attributeKey']));if(0x0==_0x4eb37d['length'])return _0x21d8dd;for(const _0x5bc3de of _0x4eb37d){const _0x5abe6e=_0x4021ff['_findSuggestions'](_0x5bc3de['range'],'attribute')['filter'](_0x40ff23=>!_0x40ff23['meta']['isNextTo'])['map'](_0x3eb08f=>_0x3eb08f['suggestion'])['filter'](_0x2489f8=>{const _0x4d39b3=_0x4021ff['_getAttributeKey'](_0x2489f8);return _0x432225['includes'](_0x4d39b3);});if(_0x5abe6e['length']){for(const _0x470663 of _0x5abe6e)_0x11db39['removeMarker'](_0x470663['getFirstMarker']());_0x21d8dd=!0x0;}}return _0x21d8dd;}['assureChains'](){const _0x15b28e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3034e6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4260a7;const _0x4f6a12=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x185492=>{if(_0x185492['data']['oldRange']||!_0x185492['data']['newRange'])return null;if(!_0x185492['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4368dd}=_0x15b28e['_splitMarkerName'](_0x185492['name']);if(!_0x15b28e['hasSuggestion'](_0x4368dd))return null;const _0x2b9bdd=_0x15b28e['getSuggestion'](_0x4368dd);return _0x3034e6['includes'](_0x2b9bdd['data']['key']);})['map'](_0x550f67=>{const {id:_0x316411}=_0x15b28e['_splitMarkerName'](_0x550f67['name']),_0xefc255=_0x15b28e['getSuggestion'](_0x316411);return _0x4260a7=_0xefc255['attributes']['groupId'],_0xefc255['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4f6a12['size'])return;const _0x2f7969=_0x15b28e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e9aca=>'attribute'==_0x4e9aca['type']&&_0x4e9aca['data']&&_0x3034e6['includes'](_0x4e9aca['data']['key'])&&_0x4e9aca['attributes']['groupId']!=_0x4260a7)['map'](_0x34d16b=>({'listItem':_0x34d16b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x34d16b['attributes']['groupId']})),_0x24c131=new Set();for(const {groupId:_0x3f2f87,listItem:_0xd18972}of _0x2f7969)_0x4f6a12['has'](_0xd18972)&&_0x24c131['add'](_0x3f2f87);for(const _0xeb444b of _0x15b28e['getSuggestions']())_0x24c131['has'](_0xeb444b['attributes']['groupId'])&&_0xeb444b['setAttribute']('groupId',_0x4260a7);}['_supportLegacySuggestions'](){const _0x325a4b=this['editor'],_0x4b5d2b=_0x325a4b['locale'],_0x25a7b8=_0x325a4b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x25a7b8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x31cd06,_0x2102b4){const _0x24568d=[];for(let _0x30921b of _0x31cd06)_0x30921b['start']['nodeAfter']===_0x30921b['end']['parent']&&(_0x30921b=_0x325a4b['model']['createRange'](_0x325a4b['model']['createPositionAt'](_0x30921b['start']['nodeAfter'],0x0))),_0x24568d['push'](_0x30921b);_0x325a4b['model']['change'](_0x289f1f=>{const _0x188496=_0x325a4b['model']['document']['selection'],_0x2d56a7=Array['from'](_0x188496['getRanges']())['map'](_0x4e787b=>_0x360709['fromRange'](_0x4e787b));_0x289f1f['setSelection'](_0x24568d),_0x325a4b['commands']['get'](_0x2102b4['commandName'])['refresh'](),_0x2102b4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x325a4b['execute'](_0x2102b4['commandName'],..._0x2102b4['commandParams']),_0x289f1f['setSelection'](_0x2d56a7);for(const _0x4f2604 of _0x2d56a7)_0x4f2604['detach']();});}),_0x25a7b8['descriptionFactory']['registerElementLabel'](function(_0x13c3e3){const _0x554135=!_0x325a4b['model']['schema']['isObject'](_0x13c3e3),_0x3d54f6=_0x13c3e3['previousSibling'],_0x2f5df8=_0x13c3e3['nextSibling'],_0x1bb288=_0x13c3e3['getAttribute']('listItemId'),_0x4f50d7=!_0x3d54f6||_0x3d54f6['getAttribute']('listItemId')!==_0x1bb288,_0x250798=!_0x2f5df8||_0x2f5df8['getAttribute']('listItemId')!==_0x1bb288;return _0x554135&&Boolean(_0x1bb288)&&_0x4f50d7&&_0x250798;},_0x31370f=>o(_0x4b5d2b,'ELEMENT_LIST_ITEM',_0x31370f));}['_registerLegacyDescription'](){const _0x23e006=this['editor'],_0x557baa=_0x23e006['locale'];function _0x2d6677(_0x2c6fbe){const _0x26753e=_0x23e006['commands']['get']('bulletedList')['value'],_0x2ac8f6=_0x23e006['commands']['get']('numberedList')['value'];return'numberedList'===_0x2c6fbe?_0x26753e:_0x2ac8f6;}_0x23e006['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3a17e7){if('formatBlock'!=_0x3a17e7['type'])return;const {data:_0x17b6e6}=_0x3a17e7;if(!_0x17b6e6)return;let _0x16f270,_0x46addf,_0x8e13a1,_0x2bad31;switch(_0x17b6e6['commandName']){case'bulletedList':_0x8e13a1=_0x17b6e6['commandParams'][0x0]['forceValue'],_0x2bad31=_0x2d6677(_0x17b6e6['commandName']),_0x16f270=_0x8e13a1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2bad31&&_0x23e006['config']['get']('list.multiBlock')||(_0x16f270='*Change\x20to:*\x20%0'),_0x46addf={'type':'format','content':o(_0x557baa,_0x16f270,o(_0x557baa,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x8e13a1=_0x17b6e6['commandParams'][0x0]['forceValue'],_0x2bad31=_0x2d6677(_0x17b6e6['commandName']),_0x16f270=_0x8e13a1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2bad31&&_0x23e006['config']['get']('list.multiBlock')||(_0x16f270='*Change\x20to:*\x20%0'),_0x46addf={'type':'format','content':o(_0x557baa,_0x16f270,o(_0x557baa,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x16f270='*Indent:*\x20%0',_0x46addf={'type':'format','content':o(_0x557baa,_0x16f270,o(_0x557baa,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x16f270=function(_0x41a0f5){const _0x176eda=_0x41a0f5['getFirstRange']();let _0x221f78=_0x176eda['start']['nodeAfter'];for(;_0x221f78&&_0x176eda['containsItem'](_0x221f78);){if(_0x221f78['getAttribute']('listIndent')>0x0)return!0x1;_0x221f78=_0x221f78['nextSibling'];}return!0x0;}(_0x3a17e7)?o(_0x557baa,'*Format:*\x20remove\x20from\x20%0',o(_0x557baa,function(_0xa8a8ee){return'ELEMENT_'+_0xa8a8ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3a17e7))):o(_0x557baa,'*Outdent:*\x20%0',o(_0x557baa,'ELEMENT_LIST_ITEM')),_0x46addf={'type':'format','content':_0x16f270};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x17b6e6['multipleBlocks']&&(_0x16f270='*Merge:*\x20%0',_0x46addf={'type':'deletion','content':o(_0x557baa,_0x16f270,o(_0x557baa,'ELEMENT_LIST_ITEM'))});}return _0x46addf;});}}function Be(_0xe5771d){let _0x23f673=_0xe5771d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23f673;){const _0x1d8c78=_0x23f673['getAttribute']('listItemId');if(!_0x1d8c78)return!0x1;if(_0x1d8c78==_0xe5771d['data']['newValue'])return'newValue';if(_0x1d8c78==_0xe5771d['data']['oldValue'])return'oldValue';_0x23f673=_0x23f673['previousSibling'];}return!0x1;}class Z extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1f1101=this['editor']['config']['get']('list.properties'),_0x2e2120=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f1101['styles']&&(_0x2e2120['enableDefaultAttributesIntegration']('listStyle'),_0x2e2120['registerBlockAttribute']('listStyle')),_0x1f1101['reversed']&&(_0x2e2120['enableDefaultAttributesIntegration']('listReversed'),_0x2e2120['registerBlockAttribute']('listReversed')),_0x1f1101['startIndex']&&(_0x2e2120['enableDefaultAttributesIntegration']('listStart'),_0x2e2120['registerBlockAttribute']('listStart'));const _0x215d97={'type':'format','content':''};_0x2e2120['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2722f4=this['editor']['locale'];_0x2e2120['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2722f4,'FORMAT_LIST_REVERSED')),_0x2e2120['descriptionFactory']['registerDescriptionCallback'](_0x21139d=>{const {data:_0x1bb6c8}=_0x21139d;if(_0x1bb6c8&&'listReversed'==_0x1bb6c8['key'])return null==_0x1bb6c8['newValue']||0x0==_0x1bb6c8['newValue']&&null==_0x1bb6c8['oldValue']?_0x215d97:void 0x0;}),_0x2e2120['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2722f4,'FORMAT_LIST_START')),_0x2e2120['descriptionFactory']['registerDescriptionCallback'](_0x58a69e=>{const {data:_0x5bbe1f}=_0x58a69e;if(_0x5bbe1f&&'listStart'==_0x5bbe1f['key'])return null==_0x5bbe1f['newValue']||0x1==_0x5bbe1f['newValue']&&null==_0x5bbe1f['oldValue']?_0x215d97:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x289138=>{if(_0x289138['batch']['isUndo'])return!0x1;let _0x374232=!0x1;const _0x1d0ef0=_0x2e2120['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41489e=>{const _0x20ad6e=_0x2e2120['_getAttributeKey'](_0x41489e);return'listStart'==_0x20ad6e||'listReversed'==_0x20ad6e;});for(const _0x5e001d of _0x1d0ef0){const _0x4b4a7b=_0x5e001d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4b4a7b||'customNumbered'==_0x4b4a7b)continue;_0x2e2120['_findSuggestions'](_0x5e001d['getFirstRange'](),'attribute')['find'](_0x2a1252=>'listType'==_0x2e2120['_getAttributeKey'](_0x2a1252['suggestion']))||(_0x289138['removeMarker'](_0x5e001d['getFirstMarker']()),_0x374232=!0x0);}return _0x374232;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x53631e){const _0x3d68ab=this['editor']['locale'],{data:_0x362c4e}=_0x53631e,_0x4d8790={'type':'format','content':''};if(!_0x362c4e||'listStyle'!=_0x362c4e['key'])return;if(!_0x362c4e['oldValue'])return'default'==_0x362c4e['newValue']?_0x4d8790:{'type':'format','content':''+o(_0x3d68ab,'*Set\x20format:*\x20%0',o(_0x3d68ab,this['_getTranslationKeyForListStyle'](_0x362c4e['newValue'])))};if(!_0x362c4e['newValue']){if('default'==_0x362c4e['oldValue'])return _0x4d8790;let _0x330bbf=_0x53631e['head'];for(;_0x330bbf;){if(_0x330bbf['data']&&'listType'==_0x330bbf['data']['key']&&_0x330bbf['data']['newValue'])return _0x4d8790;_0x330bbf=_0x330bbf['next'];}return{'type':'format','content':''+o(_0x3d68ab,'*Remove\x20format:*\x20%0',o(_0x3d68ab,this['_getTranslationKeyForListStyle'](_0x362c4e['oldValue'])))};}if('default'!=_0x362c4e['newValue'])return{'type':'format','content':''+o(_0x3d68ab,'*Set\x20format:*\x20%0',o(_0x3d68ab,this['_getTranslationKeyForListStyle'](_0x362c4e['newValue'])))};let _0x450650=_0x53631e['head'];for(;_0x450650;){if(_0x450650['data']&&'listType'==_0x450650['data']['key']&&_0x450650['data']['newValue']&&_0x450650['data']['oldValue'])return _0x4d8790;_0x450650=_0x450650['next'];}return{'type':'format','content':o(_0x3d68ab,'*Set\x20format:*\x20%0',o(_0x3d68ab,'ELEMENT_'+_0x53631e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x28d2a1=this['editor'],_0x5c1f58=_0x28d2a1['locale'];_0x28d2a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd43c=>{if('formatBlock'!=_0x3bd43c['type'])return;const {data:_0x13ba0b}=_0x3bd43c;if(!_0x13ba0b)return;let _0x52a7f5,_0x4b9f8d;switch(_0x13ba0b['commandName']){case'listStyle':_0x52a7f5='*Change\x20to:*\x20%0',_0x4b9f8d={'type':'format','content':o(_0x5c1f58,_0x52a7f5,o(_0x5c1f58,this['_getTranslationKeyForListStyle'](_0x13ba0b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52a7f5=_0x13ba0b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b9f8d={'type':'format','content':o(_0x5c1f58,_0x52a7f5)};break;case'listStart':_0x52a7f5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b9f8d={'type':'format','content':o(_0x5c1f58,_0x52a7f5,_0x13ba0b['commandParams'][0x0]['startIndex'])};}return _0x4b9f8d;});}['_getTranslationKeyForListStyle'](_0xe1a66c){return'ELEMENT_'+function(_0x7edc20){if(Re['includes'](_0x7edc20))return'bulleted';if(De['includes'](_0x7edc20))return'numbered';return null;}(_0xe1a66c)['toUpperCase']()+'_LIST_'+_0xe1a66c['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x3f9a7e{['afterInit'](){const _0x26ac2a=this['editor'];_0x26ac2a['commands']['get']('emoji')&&_0x26ac2a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x3f9a7e{static get['requires'](){return[_0x5b64da];}['init'](){const _0x559e20=this['editor'],_0x367c34=_0x559e20['plugins']['get']('TrackChangesEditing'),_0x326958=_0x559e20['commands']['get']('enter');_0x367c34['enableCommand']('enter',()=>{_0x559e20['model']['change'](_0x358b7d=>{const _0x44eda5=_0x559e20['model']['document']['selection'],_0x5143e2=_0x44eda5['getFirstPosition'](),_0x39c53e=_0x360709['fromRange'](_0x44eda5['getFirstRange']());if(_0x326958['enterBlock'](_0x358b7d)){const _0x42e5e2=_0x559e20['model']['createPositionAt'](_0x5143e2['parent']['nextSibling'],0x0),_0x15b377=_0x358b7d['createRange'](_0x5143e2,_0x42e5e2);_0x367c34['markInsertion'](_0x15b377);}else _0x358b7d['setSelection'](_0x358b7d['createRange'](_0x39c53e['end']));_0x39c53e['detach'](),_0x326958['fire']('afterExecute',{'writer':_0x358b7d});});}),_0x559e20['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x559e20,'split'),{'priority':'high'}),_0x559e20['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3928b3,_0x3540dd,_0x30e121)=>{const _0x5b6ea8=_0x30e121['mapper']['markerNameToElements'](_0x3540dd['markerName']);if(_0x5b6ea8){for(const _0x5a0e3a of _0x5b6ea8)_0x5a0e3a['hasClass']('ck-suggestion-marker-split')&&(_0x30e121['mapper']['unbindElementFromMarkerName'](_0x5a0e3a,_0x3540dd['markerName']),_0x30e121['writer']['remove'](_0x5a0e3a));}},{'priority':'high'}),_0x559e20['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x75bea6,_0x1662ad,_0x54e3d7)=>{_0x54e3d7['options']['showSuggestionHighlights']&&Ve(_0x559e20,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x75bea6,_0x1662ad,_0x54e3d7);},{'priority':'high'});}}class it extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x214a4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x214a4a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x214a4a['enableCommand']('findNext'),_0x214a4a['enableCommand']('findPrevious'),_0x214a4a['enableCommand']('replace'),_0x214a4a['enableCommand']('replaceAll');}['handleFindCommand'](_0x2c79dc,_0x51275b,_0x2ec10b={}){const _0x2eed40=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2c79dc(_0x3c509b=>{let _0x558ae3=('string'==typeof _0x51275b?_0x2eed40['findByTextCallback'](_0x51275b,_0x2ec10b):_0x51275b)(_0x3c509b);Array['isArray'](_0x558ae3)&&(_0x558ae3={'results':_0x558ae3,'searchText':'string'==typeof _0x51275b?_0x51275b:''});const _0x51e058=_0x558ae3['results']['filter'](_0x57aa38=>!0x1===this['_isInDeletionRange'](_0x57aa38,_0x3c509b['item']));return{..._0x558ae3,'results':_0x51e058};},_0x2ec10b);}['_isInDeletionRange'](_0x5e3686,_0x2017f7){const _0x4491de=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2017f7,_0x5e3686['start']),this['editor']['model']['createPositionAt'](_0x2017f7,_0x5e3686['end']));for(const _0xd9e9d2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4491de['getIntersection'](_0xd9e9d2['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x3f9a7e{['afterInit'](){const _0x4c7ecc=this['editor']['locale'],_0x4ae208=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x29c1cb,commandName:_0x35f4f5}of eo)this['editor']['plugins']['has'](_0x29c1cb)&&(_0x4ae208['enableDefaultAttributesIntegration'](_0x35f4f5),_0x4ae208['registerInlineAttribute'](_0x35f4f5));_0x4ae208['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4c7ecc,'FORMAT_FONT_SIZE')),_0x4ae208['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4c7ecc,'FORMAT_FONT_FAMILY')),_0x4ae208['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4c7ecc,'FORMAT_FONT_COLOR')),_0x4ae208['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4c7ecc,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1420e1=this['editor'],_0x10ed2d=_0x1420e1['locale'];_0x1420e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b31ce=>{const _0x3f08ee=_0x10ed2d['t'];if('formatInline'!=_0x1b31ce['type'])return;const {data:_0x8dd4b6}=_0x1b31ce;if(null!=_0x8dd4b6){if('fontSize'==_0x8dd4b6['commandName']){const _0x6c59c3=_0x8dd4b6['commandParams'][0x0]['value'];if(_0x6c59c3){const _0xdafe23=_0x3f08ee(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1736fd=>_0x1736fd['model']==_0x6c59c3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x10ed2d,'*Set\x20font\x20size:*\x20%0',_0xdafe23)};}return{'type':'format','content':o(_0x10ed2d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8dd4b6['commandName']){const _0x4dc8a8=_0x8dd4b6['commandParams'][0x0]['value'];return _0x4dc8a8?{'type':'format','content':o(_0x10ed2d,'*Set\x20font\x20family:*\x20%0',_0x4dc8a8)}:{'type':'format','content':o(_0x10ed2d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8dd4b6['commandName']){const _0x39c968=_0x8dd4b6['commandParams'][0x0]['value'];if(_0x39c968){const _0x2d8448=_0x2d6432(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3ab733=>_0x3ab733['model']==_0x39c968);let _0x15b351=_0x39c968,_0x3b7852='';return _0x2d8448&&(_0x15b351=_0x2d8448['label'],_0x3b7852=_0x3f08ee(_0x15b351)['toLowerCase']()),{'type':'format','content':o(_0x10ed2d,'*Set\x20font\x20color:*\x20%0',_0x3b7852)['trim'](),'color':{'value':_0x39c968,'title':_0x3b7852||_0x15b351}};}return{'type':'format','content':o(_0x10ed2d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8dd4b6['commandName']){const _0x9d3db8=_0x8dd4b6['commandParams'][0x0]['value'];if(_0x9d3db8){const _0x49d6a5=_0x2d6432(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2d68bb=>_0x2d68bb['model']==_0x9d3db8);let _0x2dea85=_0x9d3db8,_0x42b985='';return _0x49d6a5&&(_0x2dea85=_0x49d6a5['label'],_0x42b985=_0x3f08ee(_0x2dea85)['toLowerCase']()),{'type':'format','content':o(_0x10ed2d,'*Set\x20font\x20background\x20color:*\x20%0',_0x42b985)['trim'](),'color':{'value':_0x9d3db8,'title':_0x42b985||_0x2dea85}};}return{'type':'format','content':o(_0x10ed2d,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x3f9a7e{['afterInit'](){const _0x341d6e=this['editor'],_0x26382f=_0x341d6e['plugins']['get']('TrackChangesEditing'),_0x47ee9b=_0x341d6e['commands']['get']('copyFormat'),_0x19a3f7=_0x341d6e['commands']['get']('pasteFormat');_0x47ee9b&&_0x19a3f7&&(_0x26382f['enableDefaultAttributesIntegration']('pasteFormat'),_0x26382f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1b4492=this['editor'],_0x2ba3cd=_0x1b4492['locale'];_0x1b4492['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14853a=>{if('formatBlock'!=_0x14853a['type']&&'formatInline'!=_0x14853a['type'])return;const {data:_0x4941c1}=_0x14853a;if(_0x4941c1&&'pasteFormat'===_0x4941c1['commandName']){const _0x5e84dd=[],_0x8240d0=_0x4941c1['commandParams'][0x0];for(const [_0x2b3769,_0x4b5037]of Object['entries'](_0x8240d0))_0x5e84dd['push'](ro(_0x1b4492,_0x2b3769,_0x4b5037));return _0x5e84dd['length']?{'type':'format','content':o(_0x2ba3cd,'*Set\x20format\x20to:*\x20%0',_0x5e84dd['join'](',\x20'))}:{'type':'format','content':o(_0x2ba3cd,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4bbf10,_0x522221,_0x3f12cd){const _0x4ebeb6=_0x4bbf10['locale']['t'],_0x908d81=_0x522221['split'](/(?=[A-Z])/)['join']('\x20'),_0x56e9a2=_0x4ebeb6(_0x908d81['charAt'](0x0)['toUpperCase']()+_0x908d81['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3f12cd)return _0x56e9a2;if('fontColor'===_0x522221||'fontBackgroundColor'===_0x522221){const _0x1235bd=_0x2d6432(_0x4bbf10['config']['get']('fontColor.colors'))['find'](_0xbf0c7a=>_0xbf0c7a['model']==_0x3f12cd);return _0x56e9a2+'\x20('+(_0x1235bd?_0x4ebeb6(_0x1235bd['label'])['toLowerCase']():_0x3f12cd)+')';}if('fontSize'===_0x522221&&isNaN(parseFloat(_0x3f12cd))){const _0x4272aa=_0x4bbf10['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4bbf10['config']['get']('fontSize.options'))['find'](_0x378eb1=>_0x378eb1['model']==_0x3f12cd);return _0x56e9a2+'\x20('+(_0x4272aa?_0x4ebeb6(_0x4272aa['title'])['toLowerCase']():_0x3f12cd)+')';}return _0x56e9a2+'\x20('+_0x3f12cd+')';}class ot extends _0x3f9a7e{['_headingOptions'];['afterInit'](){const _0x463194=this['editor'];if(!_0x463194['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x463194['config']['get']('heading.options');const _0x56ebb8=_0x463194['locale'],_0x4bab68=_0x463194['plugins']['get']('TrackChangesEditing');_0x4bab68['enableDefaultAttributesIntegration']('heading');for(const _0x5093a0 of this['_headingOptions'])'paragraph'!=_0x5093a0['model']&&_0x4bab68['descriptionFactory']['registerElementLabel'](_0x5093a0['model'],_0x5b2950=>{const _0x177687=this['_getHeadingLevel'](_0x5093a0['model']);return null!==_0x177687?_0x3a5001(_0x5b2950,_0x177687):_0x3001fb(_0x5b2950,_0x5093a0['title']);});function _0x3a5001(_0x2d5c45,_0x1f45ad){return o(_0x56ebb8,'ELEMENT_HEADING',[_0x2d5c45,_0x1f45ad]);}function _0x3001fb(_0xfb24d6,_0x1b5391){return o(_0x56ebb8,'ELEMENT_HEADING_CUSTOM',[_0xfb24d6,_0x1b5391]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3096c7=this['editor'],_0x5345fb=_0x3096c7['locale'];function _0x15c227(_0x3afd94,_0x5ae03a){return o(_0x5345fb,'ELEMENT_HEADING_CUSTOM',[_0x3afd94,_0x5ae03a]);}_0x3096c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e6ff4=>{if('formatBlock'!=_0x3e6ff4['type'])return;const {data:_0x28e5b0}=_0x3e6ff4;if(_0x28e5b0&&'heading'==_0x28e5b0['commandName']){const _0x5c36f3=_0x28e5b0['commandParams'][0x0]['value'],_0x5243de=this['_getHeadingLevel'](_0x5c36f3);if(null!==_0x5243de)return{'type':'format','content':o(_0x5345fb,'*Change\x20to:*\x20%0',(_0x551c64=0x1,_0x1a6682=_0x5243de,o(_0x5345fb,'ELEMENT_HEADING',[_0x551c64,_0x1a6682])))};const _0x3516a7=this['_headingOptions']['find'](_0x24fdb4=>_0x24fdb4['model']===_0x5c36f3)['title'];return{'type':'format','content':o(_0x5345fb,'*Change\x20to:*\x20%0',_0x15c227(0x1,_0x3516a7))};}var _0x551c64,_0x1a6682;});}['_getHeadingLevel'](_0x3a2759){const _0x4be3fb=_0x3a2759['match'](/^heading(\d+)/);if(_0x4be3fb)return _0x4be3fb[0x1];const _0x35ada9=this['_headingOptions']?.['find'](_0x51d075=>_0x51d075['model']==_0x3a2759);if(_0x35ada9&&_0x35ada9['view']){const _0x47889b=_0x35ada9['view'],_0x1cb922=(_0x47889b['name']??_0x47889b)['match'](/^h(\d+)/);if(_0x1cb922)return _0x1cb922[0x1];}return null;}}class rt extends _0x3f9a7e{['afterInit'](){const _0x436e72=this['editor'];if(!_0x436e72['plugins']['has']('HighlightEditing'))return;const _0x3a3c4d=_0x436e72['plugins']['get']('TrackChangesEditing'),_0x162e45=_0x436e72['locale'];_0x3a3c4d['enableDefaultAttributesIntegration']('highlight'),_0x3a3c4d['registerInlineAttribute']('highlight'),_0x3a3c4d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x162e45,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x413b75=this['editor'],_0x1169ba=_0x413b75['locale'];_0x413b75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2adfbe=>{if('formatInline'!=_0x2adfbe['type'])return;const {data:_0x311fd8}=_0x2adfbe;if(_0x311fd8&&'highlight'==_0x311fd8['commandName']){const _0x37254d=_0x1169ba['t'],_0x2d165f=_0x311fd8['commandParams'][0x0]['value'];if(_0x2d165f){const _0x2ca7a2=_0x413b75['config']['get']('highlight.options')['find'](_0x10380a=>_0x10380a['model']==_0x2d165f),_0x12f61b=_0x37254d(_0x2ca7a2['title'])['toLowerCase']();return{'type':'format','content':o(_0x1169ba,'*Set\x20highlight:*\x20%0',_0x12f61b),'color':{'value':_0x2ca7a2['color'],'title':_0x2ca7a2['title']}};}return{'type':'format','content':o(_0x1169ba,'*Remove\x20highlight*',o(_0x1169ba,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x3f9a7e{['afterInit'](){const _0x25982a=this['editor'];if(!_0x25982a['plugins']['has']('HorizontalLineEditing'))return;_0x25982a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x494f71=_0x25982a['plugins']['get']('TrackChangesEditing'),_0x3e3850=_0x25982a['locale'];_0x494f71['descriptionFactory']['registerElementLabel']('horizontalLine',_0x444efc=>o(_0x3e3850,'ELEMENT_HORIZONTAL_LINE',_0x444efc)),_0x25982a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xf34427,{writer:_0x18e7d7,options:_0x331204})=>{if(!_0x331204['showSuggestionHighlights'])return null;const _0xa3c0a=_0x18e7d7['createContainerElement']('div'),_0x439291=_0x18e7d7['createEmptyElement']('hr');return _0x18e7d7['addClass']('ck-horizontal-line',_0xa3c0a),_0x18e7d7['insert'](_0x18e7d7['createPositionAt'](_0xa3c0a,0x0),_0x439291),_0xa3c0a;},'converterPriority':'high'});}}class ct extends _0x3f9a7e{['afterInit'](){const _0x253b1e=this['editor'];if(!_0x253b1e['plugins']['has']('HtmlEmbed'))return;const _0x5b61b0=_0x253b1e['plugins']['get']('TrackChangesEditing'),_0x4a44de=_0x253b1e['locale'];_0x5b61b0['descriptionFactory']['registerElementLabel']('rawHtml',_0x193150=>o(_0x4a44de,'ELEMENT_HTML_EMBED',_0x193150)),_0x5b61b0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5b61b0['registerBlockAttribute']('value'),_0x5b61b0['descriptionFactory']['registerDescriptionCallback'](_0x4b616e=>{if('attribute'!=_0x4b616e['type'])return;const {data:_0x5a93ce}=_0x4b616e;if(_0x5a93ce&&'value'==_0x5a93ce['key']&&_0x4b616e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b48a9=o(_0x4a44de,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a44de,'*Change\x20%0\x20content*',_0x2b48a9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22de95=this['editor'],_0x12f3a2=_0x22de95['locale'];_0x22de95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4075af=>{if('formatBlock'!=_0x4075af['type'])return;const {data:_0x397f14}=_0x4075af;if(_0x397f14&&'htmlEmbed'==_0x397f14['commandName']){const _0x4b461b=o(_0x12f3a2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x12f3a2,'*Change\x20%0\x20content*',_0x4b461b)};}});}}class ut extends _0x3f9a7e{['afterInit'](){const _0x2b9fc1=this['editor'];if(!_0x2b9fc1['plugins']['has']('ImageEditing'))return;const _0x4c96d6=_0x2b9fc1['plugins']['get']('TrackChangesEditing'),_0x5226f2=_0x2b9fc1['plugins']['get']('ImageUtils'),_0xe80f3=_0x2b9fc1['locale'];_0x4c96d6['enableCommand']('insertImage'),_0x4c96d6['descriptionFactory']['registerElementLabel']('imageBlock',_0x2e14c4=>o(_0xe80f3,'ELEMENT_IMAGE',_0x2e14c4)),_0x4c96d6['descriptionFactory']['registerElementLabel']('imageInline',_0x4b799a=>o(_0xe80f3,'ELEMENT_INLINE_IMAGE',_0x4b799a)),_0x4c96d6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe80f3,'ELEMENT_CAPTION')),_0x2b9fc1['plugins']['has']('ImageUploadEditing')&&_0x4c96d6['enableCommand']('uploadImage'),_0x2b9fc1['plugins']['has']('ImageBlockEditing')&&_0x2b9fc1['plugins']['has']('ImageInlineEditing')&&(_0x4c96d6['enableCommand']('imageTypeInline',(_0x599cca,_0x4f906d)=>{const _0x3e30ef=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']);_0x2b9fc1['model']['change'](()=>{_0x4c96d6['markBlockFormat'](_0x3e30ef,{'commandName':'imageTypeInline','commandParams':[_0x4f906d]},[],'convertBlockImageToInline');});}),_0x4c96d6['enableCommand']('imageTypeBlock',(_0x56ae41,_0x434fba)=>{_0x2b9fc1['model']['change'](_0x43f4f0=>{let _0x7250b3=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']),_0x1ddb4d=_0x43f4f0['createRangeOn'](_0x7250b3);const _0x2ff3eb=_0x222b05['fromPosition'](_0x1ddb4d['start'],'toPrevious'),_0x55d4f9=_0x222b05['fromPosition'](_0x1ddb4d['end'],'toNext');_0x4c96d6['forceDefaultExecution'](()=>_0x56ae41(_0x434fba)),_0x7250b3=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']),_0x1ddb4d=_0x43f4f0['createRangeOn'](_0x7250b3);const _0x3a8e51=_0x43f4f0['createRange'](_0x2ff3eb,_0x55d4f9);_0x2ff3eb['detach'](),_0x55d4f9['detach'](),_0x4c96d6['markBlockFormat'](_0x7250b3,{'commandName':'imageTypeInline','commandParams':[_0x434fba]},[],'convertInlineImageToBlock'),_0x3a8e51['start']['isBefore'](_0x1ddb4d['start'])&&_0x4c96d6['markInsertion'](_0x43f4f0['createRange'](_0x3a8e51['start'],_0x1ddb4d['start']),'convertInlineImageToBlock'),_0x1ddb4d['end']['isBefore'](_0x3a8e51['end'])&&_0x4c96d6['markInsertion'](_0x43f4f0['createRange'](_0x1ddb4d['end'],_0x3a8e51['end']),'convertInlineImageToBlock');});}),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4c96d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x312a1e])=>{const _0x445558=_0x4c96d6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2398ba=_0x312a1e['start'],_0x3cfad5=_0x312a1e['end'];const _0x3ec688=_0x2b9fc1['model']['schema']['getNearestSelectionRange'](_0x2398ba,'backward'),_0x43822e=_0x2b9fc1['model']['schema']['getNearestSelectionRange'](_0x3cfad5,'forward');_0x3ec688['isCollapsed']&&(_0x2398ba=_0x3ec688['start']),_0x43822e['isCollapsed']&&(_0x3cfad5=_0x43822e['end']),_0x445558([_0x2b9fc1['model']['createRange'](_0x2398ba,_0x3cfad5)]);}),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x174b40),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x174b40)),_0x2b9fc1['plugins']['has']('ImageCaptionEditing')&&(_0x4c96d6['enableCommand']('toggleImageCaption',(_0x286250,_0x1476a5)=>{const _0x129c18=_0x2b9fc1['plugins']['get']('ImageCaptionUtils');let _0x71f105=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']),_0x1d91ad=_0x129c18['getCaptionFromImageModelElement'](_0x71f105);_0x2b9fc1['model']['change'](()=>{if(_0x1d91ad)return void _0x4c96d6['markDeletion'](_0x2b9fc1['model']['createRangeOn'](_0x1d91ad));const _0x2dc2c2=_0x5226f2['isBlockImage'](_0x71f105);_0x286250(_0x1476a5),_0x71f105=_0x5226f2['getClosestSelectedImageElement'](_0x2b9fc1['model']['document']['selection']),_0x1d91ad=_0x129c18['getCaptionFromImageModelElement'](_0x71f105),_0x4c96d6['markInsertion'](_0x2b9fc1['model']['createRangeOn'](_0x1d91ad),_0x2dc2c2?null:'imageCaption');});}),_0x4c96d6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x174b40));const _0x54c7f9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb21ad9(_0x1054bd,_0x3b00c1){const _0x5bdedc=_0x54c7f9['findIndex'](({type:_0x212475,subType:_0x13efc0})=>_0x1054bd['type']==_0x212475&&_0x1054bd['subType']==_0x13efc0),_0x36e57a=_0x54c7f9['findIndex'](({type:_0x1861d7,subType:_0x10b469})=>_0x3b00c1['type']==_0x1861d7&&_0x3b00c1['subType']==_0x10b469);if(_0x5bdedc<0x0||_0x36e57a<0x0)return!0x1;const _0x11d675=_0x1054bd['getFirstRange'](),_0x5b9ee8=_0x3b00c1['getFirstRange']();if((0x0==_0x5bdedc||0x1==_0x5bdedc)&&0x2==_0x36e57a&&_0x11d675['isIntersecting'](_0x5b9ee8))return!0x0;if(0x2==_0x5bdedc&&0x3==_0x36e57a){const _0x27168a=_0x4c96d6['_findSuggestions'](_0x11d675,'insertion')['filter'](({suggestion:_0x1659ff,meta:_0x278391})=>_0x278391['isOwn']&&'convertInlineImageToBlock'==_0x1659ff['subType']);if(_0x27168a['length']>0x1&&_0x5b9ee8['end']['isEqual'](_0x11d675['start']))return!0x0;if(0x1==_0x27168a['length']&&(_0x11d675['start']['isEqual'](_0x5b9ee8['end'])||_0x11d675['end']['isEqual'](_0x5b9ee8['start'])))return!0x0;}if(0x3==_0x5bdedc&&0x3==_0x36e57a&&_0x11d675['start']['isBefore'](_0x5b9ee8['start'])){const _0xa98255=_0x11d675['end']['nodeAfter'],_0x5f5cb6=_0x5b9ee8['start']['nodeBefore'];return _0x5226f2['isBlockImage'](_0xa98255)&&_0xa98255===_0x5f5cb6;}return!0x1;}function _0x174b40(_0x292971,_0x2415cc){return _0xb21ad9(_0x292971,_0x2415cc)?[_0x292971,_0x2415cc]:_0xb21ad9(_0x2415cc,_0x292971)?[_0x2415cc,_0x292971]:null;}_0x2b9fc1['plugins']['has']('ImageResize')&&(_0x4c96d6['enableDefaultAttributesIntegration']('resizeImage'),_0x4c96d6['registerBlockAttribute']('resizedWidth'),_0x4c96d6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe80f3,'FORMAT_IMAGE_SIZE'))),_0x2b9fc1['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4c96d6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c96d6['registerBlockAttribute']('alt')),_0x2b9fc1['plugins']['has']('PictureEditing')&&(_0x4c96d6['registerBlockAttribute']('sources'),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x4c4930=>{if('attribute'!=_0x4c4930['type'])return;const {data:_0xc7d843}=_0x4c4930;return _0xc7d843&&'sources'==_0xc7d843['key']?{'type':'format','content':''}:void 0x0;})),_0x2b9fc1['plugins']['has']('ImageSizeAttributes')&&(_0x4c96d6['registerBlockAttribute']('width'),_0x4c96d6['registerBlockAttribute']('height'),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x65869e=>{if('attribute'!=_0x65869e['type'])return;const {data:_0x5187e0}=_0x65869e;return!_0x5187e0||'width'!=_0x5187e0['key']&&'height'!=_0x5187e0['key']?void 0x0:{'type':'format','content':''};})),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x50d56a=>{if(!!_0x54c7f9['find'](({type:_0x4f261c,subType:_0x29c0d2})=>_0x50d56a['type']==_0x4f261c&&_0x50d56a['subType']==_0x29c0d2))return _0x50d56a['previous']?{}:void 0x0;}),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x4de214=>{if('insertion'==_0x4de214['type']||'deletion'==_0x4de214['type']){const _0x1be6f4=_0x4de214['getContainedElement']();if(_0x1be6f4&&_0x1be6f4['is']('element','caption'))return{'type':'insertion'==_0x4de214['type']?'addObject':'removeObject','element':_0x1be6f4,'quantity':0x1};}}),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x23a5e5=>'formatBlock'==_0x23a5e5['type']&&'convertInlineImageToBlock'==_0x23a5e5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23a5e5['type']&&'convertBlockImageToInline'==_0x23a5e5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4c96d6['descriptionFactory']['registerDescriptionCallback'](_0x3cfecf=>{if('attribute'!=_0x3cfecf['type'])return;const {data:_0x18ea48}=_0x3cfecf;if(!_0x18ea48||'alt'!=_0x18ea48['key'])return;const _0x196f26=_0x18ea48['newValue'];return _0x196f26?{'type':'format','content':o(_0xe80f3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x196f26+'\x22')}:{'type':'format','content':o(_0xe80f3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x188f53=this['editor'],_0x4cc12b=_0x188f53['locale'];_0x188f53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x478382=>{if('formatBlock'!=_0x478382['type']&&'formatInline'!=_0x478382['type'])return;const {data:_0x8c89a3}=_0x478382;if(_0x8c89a3){if('imageTextAlternative'==_0x8c89a3['commandName']){const _0x5334c9=_0x8c89a3['commandParams'][0x0]['newValue'];return _0x5334c9?{'type':'format','content':o(_0x4cc12b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5334c9+'\x22')}:{'type':'format','content':o(_0x4cc12b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x8c89a3['commandName']){const _0x1ac0df=_0x8c89a3['commandParams'][0x0]['width'];return _0x1ac0df?{'type':'format','content':o(_0x4cc12b,'*Set\x20image\x20width:*\x20%0',_0x1ac0df)}:{'type':'format','content':o(_0x4cc12b,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4b13e1=this['editor']['locale'],_0x4b3246=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b3246['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4b3246['registerBlockAttribute']('src'),_0x4b3246['descriptionFactory']['registerDescriptionCallback'](_0x4a0a8a=>{if('attribute'!=_0x4a0a8a['type'])return;const {data:_0x566611}=_0x4a0a8a;return _0x566611&&'src'==_0x566611['key']?_0x566611['newValue']&&_0x566611['oldValue']?{'type':'format','content':o(_0x4b13e1,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c9bde=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c9bde['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c9bde['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c9bde['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c9bde['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f082d=this['editor'],_0x5f22a9=_0x2f082d['locale'];_0x2f082d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11f4e8=>{if('formatBlock'!=_0x11f4e8['type']&&'formatInline'!=_0x11f4e8['type'])return;const {data:_0x5a05db}=_0x11f4e8;if(!_0x5a05db||'replaceImageSource'!=_0x5a05db['commandName'])return;return{'type':'format','content':o(_0x5f22a9,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x3f9a7e{['afterInit'](){const _0x1a1dc8=this['editor'];if(!_0x1a1dc8['plugins']['has']('ImageStyleEditing'))return;const _0x2c5829=_0x1a1dc8['plugins']['get']('TrackChangesEditing'),_0x419d37=_0x1a1dc8['plugins']['get']('ImageUtils'),_0x2863c5={};_0x2c5829['enableCommand']('imageStyle',(_0x215239,_0x3a8c7c)=>{const _0x3efe70=_0x1a1dc8['plugins']['get']('Users')['me'],_0x42d594=_0x1a1dc8['commands']['get']('imageStyle');let _0x104cc2=_0x419d37['getClosestSelectedImageElement'](_0x1a1dc8['model']['document']['selection']),_0x35d0df=_0x1a1dc8['model']['createRangeOn'](_0x104cc2),_0x13ca26=_0x42d594['value'];if(_0x13ca26==_0x3a8c7c['value'])return;const _0x269dd1={'commandName':'imageStyle','commandParams':[_0x3a8c7c],'formatGroupId':_0x172a90()};_0x1a1dc8['model']['change'](()=>{if(_0x2c5829['getSuggestions']()['filter'](_0x24c7ad=>_0x24c7ad['isInContent']&&_0x3efe70==_0x24c7ad['author']&&('formatBlock'==_0x24c7ad['type']||'formatInline'==_0x24c7ad['type'])&&('imageStylePreApply'==_0x24c7ad['subType']||'imageStylePostApply'==_0x24c7ad['subType'])&&_0x24c7ad['getFirstRange']()['isEqual'](_0x35d0df))['forEach'](_0x175188=>_0x2c5829['discardSuggestion'](_0x175188['head'])),_0x104cc2=_0x419d37['getClosestSelectedImageElement'](_0x1a1dc8['model']['document']['selection']),_0x35d0df=_0x1a1dc8['model']['createRangeOn'](_0x104cc2),_0x42d594['refresh'](),_0x1a1dc8['commands']['get']('imageTypeInline')['refresh'](),_0x1a1dc8['commands']['get']('imageTypeBlock')['refresh'](),_0x13ca26=_0x42d594['value'],_0x13ca26!=_0x3a8c7c['value'])return _0x419d37['isInlineImage'](_0x104cc2)&&_0x42d594['shouldConvertImageType'](_0x3a8c7c['value'],_0x104cc2)?(_0x215239({..._0x3a8c7c,'setImageSizes':!0x1}),_0x104cc2=_0x419d37['getClosestSelectedImageElement'](_0x1a1dc8['model']['document']['selection']),void _0x2c5829['markBlockFormat'](_0x104cc2,{..._0x269dd1,'commandReversedParams':[{'value':_0x13ca26||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x419d37['isBlockImage'](_0x104cc2)?_0x2c5829['markBlockFormat'](_0x104cc2,_0x269dd1,[],'imageStylePostApply'):_0x2c5829['markInlineFormat'](_0x35d0df,_0x269dd1,'imageStylePostApply'));});});for(const _0x137ad8 of _0x1a1dc8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2863c5[_0x137ad8['name']]=_0x137ad8['title']['toLowerCase']();_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x23d5ef])=>{_0x419d37['setImageNaturalSizeAttributes'](_0x23d5ef['getContainedElement']());}),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x25c551,_0x5981bb)=>{_0x2c5829['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x25c551,{'commandName':_0x5981bb['commandName'],'commandParams':_0x5981bb['commandReversedParams']});}),_0x2c5829['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x535563,_0x4c3063){if(_0x1254df(_0x535563,_0x4c3063))return[_0x535563,_0x4c3063];if(_0x1254df(_0x4c3063,_0x535563))return[_0x4c3063,_0x535563];return null;});const _0x10fdb6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1254df(_0xfe5094,_0x5c3f27){const _0x19d3dd=_0x10fdb6['findIndex'](({type:_0x405ad8,subType:_0x31046a})=>_0xfe5094['type']==_0x405ad8&&_0xfe5094['subType']==_0x31046a),_0x3cf176=_0x10fdb6['findIndex'](({type:_0x5f2965,subType:_0x4f1cd2})=>_0x5c3f27['type']==_0x5f2965&&_0x5c3f27['subType']==_0x4f1cd2);if(_0x19d3dd<0x0||_0x3cf176<0x0)return!0x1;const _0x4ef211=_0xfe5094['getFirstRange'](),_0x5d3dde=_0x5c3f27['getFirstRange']();if((0x0==_0x19d3dd||0x1==_0x19d3dd)&&0x2==_0x3cf176&&_0x4ef211['isIntersecting'](_0x5d3dde))return!0x0;if(0x2==_0x19d3dd&&0x3==_0x3cf176){const _0x4a1eb7=_0x2c5829['_findSuggestions'](_0x4ef211,'insertion')['filter'](({suggestion:_0xf8b640,meta:_0x4ebfda})=>_0x4ebfda['isOwn']&&'convertInlineImageToBlock'==_0xf8b640['subType']);if(_0x4a1eb7['length']>0x1&&_0x5d3dde['end']['isEqual'](_0x4ef211['start']))return!0x0;if(0x1==_0x4a1eb7['length']&&(_0x4ef211['start']['isEqual'](_0x5d3dde['end'])||_0x4ef211['end']['isEqual'](_0x5d3dde['start'])))return!0x0;}if(0x3==_0x19d3dd&&0x3==_0x3cf176&&_0x4ef211['start']['isBefore'](_0x5d3dde['start'])){const _0x3bd472=_0x4ef211['end']['nodeAfter'],_0x5875a1=_0x5d3dde['start']['nodeBefore'];return _0x419d37['isBlockImage'](_0x3bd472)&&_0x3bd472===_0x5875a1;}return!0x1;}_0x1a1dc8['model']['document']['registerPostFixer'](()=>{let _0x9019ca=!0x1;const _0x4c3dcb=Array['from'](_0x1a1dc8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x513bc0,data:_0x6e990d}of _0x4c3dcb){const {group:_0x3a4548,type:_0x28cf3c,subType:_0x536936,id:_0x17cfb0}=_0x2c5829['_splitMarkerName'](_0x513bc0);if('suggestion'==_0x3a4548&&_0x2c5829['hasSuggestion'](_0x17cfb0)){if('formatBlock'==_0x28cf3c&&('imageStylePreApply'==_0x536936||'imageStylePostApply'==_0x536936)){const _0x116560=_0x2c5829['getSuggestion'](_0x17cfb0);if(_0x6e990d['newRange']){const _0x39a297=_0x116560['getFirstRange']()['getContainedElement']();if(_0x419d37['isBlockImage'](_0x39a297))continue;_0x2c5829['discardSuggestion'](_0x116560),_0x9019ca=!0x0;}}if('insertion'==_0x28cf3c&&'imageCaption'==_0x536936&&!_0x6e990d['newRange']){const _0x2a62e1=_0x2c5829['getSuggestion'](_0x17cfb0);_0x2a62e1['next']&&_0x2a62e1['next']['isInContent']&&(_0x2c5829['discardSuggestion'](_0x2a62e1['next']),_0x9019ca=!0x0);}}}return _0x9019ca;}),this['_registerLegacyDescription'](_0x2863c5);}['_registerLegacyDescription'](_0x12d2c4){const _0xeed9d0=this['editor'],_0x136f70=_0xeed9d0['locale'];_0xeed9d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x181164=>{if('formatBlock'!=_0x181164['type']&&'formatInline'!=_0x181164['type'])return;const {data:_0x1c611b}=_0x181164;if(!_0x1c611b||'imageStyle'!=_0x1c611b['commandName'])return;const _0x4c44d3=_0x1c611b['commandParams'][0x0]['value'];return _0x34c84d('side'===_0x4c44d3?o(_0x136f70,'FORMAT_SIDE_IMAGE'):_0x12d2c4[_0x4c44d3]||_0x4c44d3);function _0x34c84d(_0x5c3ddb){return{'type':'format','content':o(_0x136f70,'*Format:*\x20%0',_0x5c3ddb)};}});}}class gt extends _0x3f9a7e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3e74d0){super(_0x3e74d0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x343cf1=this['editor'],_0x58f482=_0x343cf1['commands']['get']('importWord'),_0x1b3b4a=_0x343cf1['commands']['get']('trackChanges');_0x58f482&&(_0x58f482['on']('execute',(_0x374307,[,_0x106ea3])=>{this['_trackChangesValueDuringImport']=_0x1b3b4a['value'],_0x106ea3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x58f482,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x58f482,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1b3b4a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x343cf1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3d6b59,_0x44e59f){const {suggestions:_0x52aaf8}=_0x44e59f,_0x5a433f=this['editor']['commands']['get']('trackChanges'),_0x5601ae=_0x5a433f['value'];this['_trackChangesValueDuringImport']!==_0x5601ae&&(_0x5a433f['execute'](),this['_trackChangesExecuted']=!0x0),_0x52aaf8&&_0x52aaf8['forEach'](({id:_0x4204cb,type:_0x23a9e4,author:_0x1bf425,created_at:_0x4031f2})=>{const _0x2179ac={'id':_0x4204cb,'type':_0x23a9e4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1bf425,'createdAt':_0x4031f2?new Date(_0x4031f2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2179ac);});}}class lt extends _0x3f9a7e{['afterInit'](){const _0x54daf5=this['editor'],_0x342ae0=_0x54daf5['plugins']['get']('TrackChangesEditing');if(_0x54daf5['plugins']['has']('IndentEditing')&&(_0x342ae0['enableCommand']('indent'),_0x342ae0['enableCommand']('outdent')),_0x54daf5['plugins']['has']('IndentBlock')){for(const _0x28b1b0 of['indentBlock','outdentBlock'])_0x342ae0['enableDefaultAttributesIntegration'](_0x28b1b0);}const _0x567fee=_0x54daf5['locale'];_0x342ae0['registerBlockAttribute']('blockIndent'),_0x342ae0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x567fee,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16f6e6=this['editor'],_0x1f1128=_0x16f6e6['locale'],_0x4f3709=_0x16f6e6['plugins']['get']('TrackChangesEditing');_0x4f3709['descriptionFactory']['registerDescriptionCallback'](_0x5c5583=>{if('formatBlock'!=_0x5c5583['type'])return;const {data:_0x4bd578}=_0x5c5583;if(!_0x4bd578)return;if('indentBlock'!=_0x4bd578['commandName']&&'outdentBlock'!=_0x4bd578['commandName'])return;const _0x220d72=_0x5c5583['getItems']()[0x0],_0x36913a=_0x4f3709['descriptionFactory']['getItemLabel'](_0x220d72);return'indentBlock'==_0x4bd578['commandName']?{'type':'format','content':o(_0x1f1128,'*Indent:*\x20%0',_0x36913a)}:'outdentBlock'==_0x4bd578['commandName']?{'type':'format','content':o(_0x1f1128,'*Outdent:*\x20%0',_0x36913a)}:void 0x0;});}}class dt extends _0x3f9a7e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class mt extends _0x3f9a7e{['afterInit'](){const _0x16222d=this['editor'];if(!_0x16222d['plugins']['has']('LinkEditing'))return;const _0x37f69c=_0x16222d['plugins']['get']('TrackChangesEditing'),_0x34b045=_0x16222d['commands']['get']('link');_0x37f69c['enableDefaultAttributesIntegration']('link'),_0x37f69c['enableDefaultAttributesIntegration']('unlink'),_0x37f69c['registerInlineAttribute']('linkHref');for(const _0x3b16df of _0x34b045['manualDecorators'])_0x37f69c['registerInlineAttribute'](_0x3b16df['id']),_0x37f69c['descriptionFactory']['registerAttributeLabel'](_0x3b16df['id'],'link\x20('+_0x3b16df['label']['toLowerCase']()+')');_0x37f69c['descriptionFactory']['registerDescriptionCallback'](_0x2e7284=>{if('attribute'!=_0x2e7284['type'])return;const {data:_0x56ffee}=_0x2e7284;if(!_0x56ffee||'linkHref'!=_0x56ffee['key'])return;const _0x4a4c30=_0x56ffee['newValue'],_0x459cd2=_0x16222d['locale'];return{'type':'format','content':null==_0x4a4c30?o(_0x459cd2,'*Remove\x20link*'):o(_0x459cd2,'*Set\x20link:*\x20%0','\x22'+_0x4a4c30+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdc72bd=this['editor'],_0x1b2c2e=_0xdc72bd['locale'];_0xdc72bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43745a=>{if('formatInline'!=_0x43745a['type'])return;const {data:_0xa39eb7}=_0x43745a;if(_0xa39eb7){if('link'==_0xa39eb7['commandName']){const _0x3c6b2c=_0xa39eb7['commandParams'][0x0];return{'type':'format','content':o(_0x1b2c2e,'*Set\x20link:*\x20%0','\x22'+_0x3c6b2c+'\x22')};}return'unlink'==_0xa39eb7['commandName']?{'type':'format','content':o(_0x1b2c2e,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x3f9a7e{['afterInit'](){const _0xa25994=this['editor'],_0x59133f=_0xa25994['locale'];if(!_0xa25994['plugins']['has']('LegacyListEditing'))return;const _0x190b56=_0xa25994['plugins']['get']('TrackChangesEditing'),_0x160021=_0xa25994['plugins']['has']('LegacyTodoListEditing');function _0x4fbc8c(_0x5a4f11){return()=>{const _0x343281=_0xa25994['model']['document']['selection'],_0x458e74=_0xa25994['commands']['get'](_0x5a4f11);if(_0x458e74['value'])return void _0xa25994['execute']('paragraph',{});const _0x54509e=_0x5a4f11['slice'](0x0,-0x4),_0x325662=function(_0x3affd0,_0x51e08c,_0x3daa28){let _0x314fd8=Array['from'](_0x3affd0)['filter'](_0x27c18c=>function(_0x40c151,_0x3d454e){return _0x3d454e['checkChild'](_0x40c151['parent'],'listItem')&&!_0x3d454e['isObject'](_0x40c151);}(_0x27c18c,_0x3daa28));_0x314fd8=_0x314fd8['filter'](_0x467ba3=>!_0x467ba3['is']('element','listItem')||_0x467ba3['getAttribute']('listType')!=_0x51e08c);const _0x1ff418=new Set();for(const _0x5982d0 of _0x314fd8)_0x5982d0['is']('element','listItem')?_0x1ff418['add'](Ne(_0x5982d0)):_0x1ff418['add'](_0x5982d0);return Array['from'](_0x1ff418);}(_0x343281['getSelectedBlocks'](),_0x54509e,_0xa25994['model']['schema']);_0xa25994['model']['change'](()=>{for(const _0x25210f of _0x325662)_0x190b56['markBlockFormat'](_0x25210f,{'commandName':_0x5a4f11,'commandParams':[{'forceValue':!_0x458e74['value']}],'formatGroupId':'blockName'},Se(_0x25210f));});};}function _0x29d47a(_0x1106bb){return()=>{const _0xc5d8ed=function(_0x2a6156){let _0x2971f1=Array['from'](_0x2a6156);const _0x170321=_0x2971f1['findIndex'](_0x47a163=>'listItem'!=_0x47a163['name']);return _0x170321>-0x1&&(_0x2971f1=_0x2971f1['slice'](0x0,_0x170321)),_0x2971f1;}(_0xa25994['model']['document']['selection']['getSelectedBlocks']()),_0x2e04ae=_0xa25994['model']['createRange'](_0xa25994['model']['createPositionAt'](_0xc5d8ed[0x0],'before'),_0xa25994['model']['createPositionAt'](_0xc5d8ed[_0xc5d8ed['length']-0x1],'end'));_0xa25994['model']['change'](()=>{_0x190b56['markBlockFormat'](_0x2e04ae,{'commandName':_0x1106bb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x32e628){const _0x3da531=new Set();for(const _0x13f419 of _0x32e628){let _0x22a2d2=_0x13f419['nextSibling'];for(;_0x22a2d2&&_0x22a2d2['getAttribute']('listIndent')>_0x13f419['getAttribute']('listIndent');)_0x3da531['add'](_0x22a2d2),_0x22a2d2=_0x22a2d2['nextSibling'];}return Array['from'](_0x3da531);}(_0xc5d8ed));});};}_0x190b56['enableCommand']('numberedList',_0x4fbc8c('numberedList')),_0x190b56['enableCommand']('bulletedList',_0x4fbc8c('bulletedList')),_0x160021&&_0x190b56['enableCommand']('todoList',_0x4fbc8c('todoList')),_0x190b56['enableCommand']('indentList',_0x29d47a('indentList')),_0x190b56['enableCommand']('outdentList',_0x29d47a('outdentList')),_0x160021&&_0x190b56['enableCommand']('checkTodoList',()=>{const _0x3cabba=_0xa25994['commands']['get']('checkTodoList'),_0x16625f=Array['from'](_0x3cabba['_selectedElements']);_0x16625f['filter'](_0xfd2d27=>_0xfd2d27['getAttribute']('todoListChecked')!=_0x3cabba['value']),_0xa25994['model']['change'](()=>{for(const _0x26339f of _0x16625f)_0x190b56['markBlockFormat'](_0x26339f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3cabba['value']}]});});}),_0x190b56['descriptionFactory']['registerElementLabel']('listItem',_0x284e0e=>o(_0x59133f,'ELEMENT_LIST_ITEM',_0x284e0e)),_0x190b56['descriptionFactory']['registerDescriptionCallback'](_0x4c0d1f=>{if('formatBlock'!=_0x4c0d1f['type']&&'formatInline'!=_0x4c0d1f['type'])return;const {data:_0x3f19d1}=_0x4c0d1f;if(_0x3f19d1){if('numberedList'==_0x3f19d1['commandName']||'bulletedList'==_0x3f19d1['commandName']||'todoList'==_0x3f19d1['commandName'])switch(_0x3f19d1['commandName']['replace']('List','')){case'bulleted':return _0x45adce(o(_0x59133f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45adce(o(_0x59133f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45adce(o(_0x59133f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3f19d1['commandName'])return{'type':'format','content':o(_0x59133f,'*Indent:*\x20%0',o(_0x59133f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3f19d1['commandName'])return{'type':'format','content':o(_0x59133f,'*Outdent:*\x20%0',o(_0x59133f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3f19d1['commandName'])return _0x3f19d1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59133f,'*Check\x20item*')}:{'type':'format','content':o(_0x59133f,'*Uncheck\x20item*')};}function _0x45adce(_0x46b2c4){return{'type':'format','content':o(_0x59133f,'*Change\x20to:*\x20%0',_0x46b2c4)};}});}}function Ne(_0xeed1ad){const _0x2ac1b7=_0xeed1ad['getAttribute']('listIndent');if(0x0==_0x2ac1b7)return _0xeed1ad;let _0x3028d1=_0xeed1ad;for(;_0xeed1ad['previousSibling']&&_0xeed1ad['previousSibling']['is']('element','listItem');){const _0x7472e7=_0xeed1ad['previousSibling']['getAttribute']('listIndent');if(_0x7472e7==_0x2ac1b7)_0x3028d1=_0xeed1ad['previousSibling'];else{if(_0x7472e7<_0x2ac1b7)break;}_0xeed1ad=_0xeed1ad['previousSibling'];}return _0x3028d1;}function Se(_0x1549ed){const _0x3ebced=[];if(_0x1549ed['is']('element','listItem')&&_0x1549ed['getAttribute']('listIndent')>0x0){let _0x172e5b=_0x1549ed['nextSibling'];for(;_0x172e5b&&'listItem'==_0x172e5b['name']&&_0x172e5b['getAttribute']('listIndent')==_0x1549ed['getAttribute']('listIndent');)_0x3ebced['push'](_0x172e5b),_0x172e5b=_0x172e5b['nextSibling'];}return _0x3ebced;}class kt extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2e0964=this['editor']['config']['get']('list.properties'),_0x3e8a8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e0964['styles']&&_0x3e8a8a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2e0964['reversed']&&_0x3e8a8a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2e0964['startIndex']&&_0x3e8a8a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3e8a8a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x9a7dc4,_0x1a1153={}){const _0x5bad14=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1348a7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5bad14['markMultiRangeBlockFormat'](_0x1348a7,{'commandName':'listStyle','commandParams':[{'type':_0x1a1153['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x132e43,_0x40569a={}){const _0x1646a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d7a3d=this['_getSuggestionBlocks'](_0x3e8abc=>_0x3e8abc['is']('element','listItem')&&'numbered'===_0x3e8abc['getAttribute']('listType'));if(_0x5d7a3d['length']<0x1)return;const _0x22acd7=_0x5d7a3d['map'](_0x28423b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28423b,'before'),this['editor']['model']['createPositionAt'](_0x28423b,0x0)));this['editor']['model']['change'](()=>{_0x1646a4['markMultiRangeBlockFormat'](_0x22acd7,{'commandName':'listReversed','commandParams':[{'reversed':_0x40569a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x32ab14,_0x5ed171={}){const _0x46b2ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e3113=this['_getSuggestionBlocks'](_0x5e34bd=>_0x5e34bd['is']('element','listItem')&&'numbered'===_0x5e34bd['getAttribute']('listType'));if(_0x4e3113['length']<0x1)return;const _0x124efc=_0x4e3113['map'](_0x198fa7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x198fa7,'before'),this['editor']['model']['createPositionAt'](_0x198fa7,0x0)));this['editor']['model']['change'](()=>{_0x46b2ea['markMultiRangeBlockFormat'](_0x124efc,{'commandName':'listStart','commandParams':[{'startIndex':_0x5ed171['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4a1cdf){if('formatBlock'!=_0x4a1cdf['type']&&'formatInline'!=_0x4a1cdf['type'])return;const _0xf80705=this['editor']['locale'],{data:_0x547e4d}=_0x4a1cdf;if(!_0x547e4d)return;let _0x18b247,_0x9794b4;switch(_0x547e4d['commandName']){case'listStyle':_0x18b247='*Change\x20to:*\x20%0',_0x9794b4={'type':'format','content':o(_0xf80705,_0x18b247,o(_0xf80705,this['_getTranslationKeyForListStyle'](_0x547e4d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18b247=_0x547e4d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x9794b4={'type':'format','content':o(_0xf80705,_0x18b247)};break;case'listStart':_0x18b247='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9794b4={'type':'format','content':o(_0xf80705,_0x18b247,_0x547e4d['commandParams'][0x0]['startIndex'])};}return _0x9794b4;}['_getSuggestionBlocksForListStyle'](){const _0x4c0ee6=this['editor']['plugins']['get']('LegacyListUtils');let _0x2c2c90=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2c2c90[0x0]?.['is']('element','listItem')&&_0x2c2c90['unshift'](..._0x4c0ee6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2c2c90[_0x2c2c90['length']-0x1]?.['is']('element','listItem')&&_0x2c2c90['push'](..._0x4c0ee6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2c2c90=[...new Set(_0x2c2c90)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2c2c90=_0x2c2c90['filter'](_0x28ef36=>_0x28ef36['is']('element','listItem'))),_0x2c2c90;}['_getSuggestionBlocks'](_0x269f7d){const _0x115a68=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b954c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x269f7d)['map'](_0x353d14=>{const _0x4417b1=this['editor']['model']['createPositionAt'](_0x353d14,0x0);return[..._0x115a68['getSiblingNodes'](_0x4417b1,'backward'),..._0x115a68['getSiblingNodes'](_0x4417b1,'forward')];})['flat']();return _0x5b954c=[...new Set(_0x5b954c)],_0x5b954c;}['_getTranslationKeyForListStyle'](_0x4397a5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4397a5)||'default')['toUpperCase']()+'_LIST_'+_0x4397a5['toUpperCase']()['replace'](/-/g,'_');}}class wt extends _0x3f9a7e{['afterInit'](){const _0x5f56e0=this['editor'];if(!_0x5f56e0['plugins']['has']('MediaEmbedEditing'))return;const _0x5cfc2b=_0x5f56e0['plugins']['get']('TrackChangesEditing'),_0xaffafb=_0x5f56e0['locale'];_0x5cfc2b['enableCommand']('mediaEmbed'),_0x5cfc2b['descriptionFactory']['registerElementLabel']('media',_0xf6ab89=>o(_0xaffafb,'ELEMENT_MEDIA',_0xf6ab89)),_0x5f56e0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x26efec,{writer:_0x519eaa,options:_0x5956c0})=>{if(_0x5956c0['showSuggestionHighlights'])return _0x519eaa['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f56e0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5d77b6,_0x1aac46,_0xb1ac87)=>{_0xb1ac87['options']['showSuggestionHighlights']&&_0x5d77b6['stop']();},{'priority':'high'});}}class bt extends _0x3f9a7e{['afterInit'](){const _0xed9204=this['editor'];_0xed9204['plugins']['has']('MentionEditing')&&_0xed9204['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x3f9a7e{['afterInit'](){const _0x216f53=this['editor'];if(!_0x216f53['plugins']['has']('MergeFieldsEditing'))return;const _0x26ab6f=_0x216f53['plugins']['get']('TrackChangesEditing'),_0x2f5a41=_0x216f53['locale'];_0x26ab6f['enableCommand']('insertMergeField'),_0x26ab6f['enableCommand']('insertMergeFieldBlock'),_0x26ab6f['enableCommand']('insertMergeFieldImage'),_0x26ab6f['descriptionFactory']['registerElementLabel']('mergeField',_0x56275e=>o(_0x2f5a41,'ELEMENT_MERGE_FIELD',_0x56275e)),_0x26ab6f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x20074b=>o(_0x2f5a41,'ELEMENT_MERGE_FIELD',_0x20074b)),_0x26ab6f['descriptionFactory']['registerDescriptionCallback'](_0x4bef96=>{if('insertion'!=_0x4bef96['type']&&'deletion'!=_0x4bef96['type'])return;const _0x117433=_0x4bef96['getContainedElement']();if(null==_0x117433)return;const _0x22705f=_0x216f53['plugins']['get']('MergeFieldsEditing');let _0x508263;switch(_0x22705f['getMergeFieldType'](_0x117433)){case null:return;case'image':{const _0x6aca3b=_0x22705f['unwrapAffixes'](_0x117433['getAttribute']('src'));_0x508263=_0x22705f['getLabel'](_0x6aca3b)||_0x6aca3b;break;}default:{const _0x19be02=_0x117433['getAttribute']('id');_0x508263=_0x22705f['getLabel'](_0x19be02)||_0x19be02;break;}}return'insertion'==_0x4bef96['type']?{'type':'insertion','content':o(_0x2f5a41,'*Insert:*\x20%0','\x22'+_0x508263+'\x22\x20'+o(_0x2f5a41,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2f5a41,'*Remove:*\x20%0','\x22'+_0x508263+'\x22\x20'+o(_0x2f5a41,'ELEMENT_MERGE_FIELD'))};});}}class St extends _0x3f9a7e{['afterInit'](){const _0xe8fb94=this['editor'],_0x52b8a6=_0xe8fb94['plugins']['get']('TrackChangesEditing');_0xe8fb94['plugins']['has']('MultiLevelList')&&(_0x52b8a6['enableDefaultAttributesIntegration']('multiLevelList'),_0x52b8a6['registerBlockAttribute']('listMarkerStyle'),_0x52b8a6['descriptionFactory']['registerDescriptionCallback'](_0x3e30cd=>this['handleDescriptions'](_0x3e30cd)));}['handleDescriptions'](_0x5aea37){const _0x592f00=this['editor']['locale'],{data:_0x1448dc}=_0x5aea37,_0x7e9487={'type':'format','content':''};if(_0x1448dc&&'listMarkerStyle'==_0x1448dc['key']){if(!_0x1448dc['oldValue'])return{'type':'format','content':o(_0x592f00,'*Set\x20format:*\x20%0',o(_0x592f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1448dc['newValue']+')'};if(!_0x1448dc['newValue']){let _0x261b38=_0x5aea37['head'];for(;_0x261b38;){if(_0x261b38['data']&&'listType'==_0x261b38['data']['key']&&_0x261b38['data']['newValue'])return _0x7e9487;_0x261b38=_0x261b38['next'];}return{'type':'format','content':o(_0x592f00,'*Remove\x20format:*\x20%0',o(_0x592f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1448dc['oldValue']+')'};}}}}class jt extends _0x3f9a7e{['afterInit'](){const _0x60f7da=this['editor'];if(!_0x60f7da['plugins']['has']('PageBreakEditing'))return;_0x60f7da['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3896af=_0x60f7da['plugins']['get']('TrackChangesEditing'),_0x156a73=_0x60f7da['locale'];_0x3896af['descriptionFactory']['registerElementLabel']('pageBreak',_0x5bf652=>o(_0x156a73,'ELEMENT_PAGE_BREAK',_0x5bf652));}}class It extends _0x3f9a7e{['afterInit'](){const _0x1bf5f8=this['editor'];if(!_0x1bf5f8['plugins']['has']('Paragraph'))return;const _0x27bd09=_0x1bf5f8['locale'],_0x4fa656=_0x1bf5f8['plugins']['get']('TrackChangesEditing');_0x4fa656['descriptionFactory']['registerElementLabel']('paragraph',_0x336121=>o(_0x27bd09,'ELEMENT_PARAGRAPH',_0x336121)),_0x4fa656['enableDefaultAttributesIntegration']('paragraph'),_0x4fa656['enableCommand']('insertParagraph'),_0x1bf5f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1bf5f8),{'priority':'highest'}),_0x1bf5f8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3c6dcd,_0x57e565,_0x453094)=>{_0x453094['options']['showSuggestionHighlights']&&nr(_0x1bf5f8,{'showActiveMarker':!0x1})(_0x3c6dcd,_0x57e565,_0x453094);},{'priority':'highest'});const _0x2b2c67=_0x4fa656['descriptionFactory'];_0x2b2c67['registerDescriptionCallback'](_0x239fd7=>{if('insertion'!==_0x239fd7['type'])return;const {start:_0x3073d2,end:_0xe6e3c2}=_0x239fd7['getFirstRange']();if(!_0x3073d2['isTouching'](_0xe6e3c2)||!_0x3073d2['nodeAfter'])return;const _0x57fa39=_0x1bf5f8['model']['schema'],_0x3987d9=_0x3073d2['nodeAfter'];return _0x57fa39['isBlock'](_0x3987d9)&&!_0x57fa39['isLimit'](_0x3987d9)&&_0x57fa39['checkChild'](_0x3987d9,'$text')?{'type':'insertion','content':o(_0x27bd09,'*Insert:*\x20%0',_0x2b2c67['getItemLabel'](_0x3987d9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45e950=this['editor'],_0x44227b=_0x45e950['locale'];_0x45e950['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173bc5=>{if('formatBlock'!=_0x173bc5['type'])return;const {data:_0x2b40ca}=_0x173bc5;return _0x2b40ca&&'paragraph'==_0x2b40ca['commandName']?{'type':'format','content':o(_0x44227b,'*Change\x20to:*\x20%0',o(_0x44227b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x44ea9a,{showActiveMarker:_0x345e68=!0x0}={}){return(_0x10ecb5,_0x996ae8,_0x47f161)=>{const _0x34539e=_0x44ea9a['plugins']['get']('TrackChangesEditing'),_0x3e12a0=_0x996ae8['markerRange']['start'],_0x563f12=_0x996ae8['markerRange']['end'],_0x1ef3d5=_0x44ea9a['model']['schema'];if(!_0x3e12a0['isTouching'](_0x563f12)||!_0x3e12a0['nodeAfter'])return;const _0x5c7843=_0x3e12a0['nodeAfter'];if(_0x1ef3d5['isBlock'](_0x5c7843)&&!_0x1ef3d5['isLimit'](_0x5c7843)&&_0x1ef3d5['checkChild'](_0x5c7843,'$text')){if(!_0x47f161['consumable']['consume'](_0x996ae8['markerRange'],_0x10ecb5['name']))return;const {id:_0x2e2031,authorId:_0x1b7745}=_0x34539e['_splitMarkerName'](_0x996ae8['markerName']),_0x126231=_0x47f161['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x2e2031,'data-author-id':_0x1b7745}),_0x35b60a=_0x47f161['mapper']['toViewPosition'](_0x563f12);_0x345e68&&_0x34539e['activeMarkers']['includes'](_0x996ae8['markerName'])&&_0x47f161['writer']['addClass']('ck-suggestion-marker--active',_0x126231),_0x47f161['writer']['insert'](_0x35b60a,_0x126231),_0x47f161['mapper']['bindElementToMarker'](_0x126231,_0x996ae8['markerName']);}};}class At extends _0x3f9a7e{['afterInit'](){const _0xb0a732=this['editor'];_0xb0a732['commands']['get']('replaceSource')&&_0xb0a732['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x3f9a7e{['afterInit'](){const _0x5c552f=this['editor'];if(!_0x5c552f['plugins']['has']('RemoveFormatEditing'))return;_0x5c552f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5935b0=this['editor'];_0x5935b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15986f=>{if('formatBlock'!=_0x15986f['type']&&'formatInline'!=_0x15986f['type'])return;const {data:_0x51f1e8}=_0x15986f;return _0x51f1e8&&'removeFormat'==_0x51f1e8['commandName']?{'type':'format','content':o(_0x5935b0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class $t extends _0x3f9a7e{['afterInit'](){const _0x213e6a=this['editor'];if(!_0x213e6a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5483f8=_0x213e6a['plugins']['get']('TrackChangesEditing');_0x5483f8['enableCommand']('goToPreviousRestrictedEditingException'),_0x5483f8['enableCommand']('goToNextRestrictedEditingException');const _0x3d01b7=_0x213e6a['plugins']['get']('RestrictedEditingModeEditing');_0x3d01b7['enableCommand']('trackChanges'),_0x3d01b7['enableCommand']('acceptSuggestion'),_0x3d01b7['enableCommand']('discardSuggestion'),_0x3d01b7['enableCommand']('acceptAllSuggestions'),_0x3d01b7['enableCommand']('discardAllSuggestions'),_0x3d01b7['enableCommand']('acceptSelectedSuggestions'),_0x3d01b7['enableCommand']('discardSelectedSuggestions');}}class vt extends _0x3f9a7e{['afterInit'](){const _0x16b84b=this['editor'];if(!_0x16b84b['plugins']['has']('ShiftEnter'))return;const _0x434728=_0x16b84b['plugins']['get']('TrackChangesEditing');_0x434728['enableCommand']('shiftEnter'),_0x16b84b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x16b84b),{'priority':'high'}),_0x16b84b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x16b84b),{'priority':'high'}),_0x16b84b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40862b,_0x251a2e,_0x110a93)=>{_0x110a93['options']['showSuggestionHighlights']&&qe(_0x16b84b,{'showActiveMarker':!0x1})(_0x40862b,_0x251a2e,_0x110a93);}),_0x434728['descriptionFactory']['registerElementLabel']('softBreak',_0x425cb5=>o(_0x16b84b['locale'],'ELEMENT_LINE_BREAK',_0x425cb5));}}function qe(_0x39217d,{showActiveMarker:_0x2d70cb=!0x0}={}){return(_0x194a9e,_0x1dd647,_0x272235)=>{const _0x50f080=_0x39217d['plugins']['get']('TrackChangesEditing');if(!_0x272235['consumable']['test'](_0x1dd647['markerRange'],_0x194a9e['name']))return;const _0x583aa9=_0x39217d['model'];for(const _0x4ad09c of _0x1dd647['markerRange']['getItems']()){if(!_0x4ad09c['is']('element','softBreak'))continue;const _0x54496a='deletion'==_0x1dd647['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5f29c1,authorId:_0x568f8a}=_0x50f080['_splitMarkerName'](_0x1dd647['markerName']),_0x38f75f=_0x272235['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54496a,'data-suggestion':_0x5f29c1,'data-author-id':_0x568f8a}),_0x2f1feb=_0x272235['mapper']['toViewPosition'](_0x583aa9['createPositionBefore'](_0x4ad09c));_0x2d70cb&&_0x50f080['activeMarkers']['includes'](_0x1dd647['markerName'])&&_0x272235['writer']['addClass']('ck-suggestion-marker--active',_0x38f75f),_0x272235['writer']['insert'](_0x2f1feb,_0x38f75f),_0x272235['mapper']['bindElementToMarker'](_0x38f75f,_0x1dd647['markerName']);}};}class Ct extends _0x3f9a7e{['afterInit'](){const _0x3d5c8e=this['editor'],_0x504b70=_0x3d5c8e['model'],_0xff0b3e=_0x3d5c8e['locale'];if(!_0x3d5c8e['plugins']['has']('StandardEditingModeEditing'))return;const _0x4b59cb=_0x3d5c8e['plugins']['get']('TrackChangesEditing'),_0x5ef4b1='restrictedEditingException',_0x218a9d=_0x3d5c8e['commands']['get'](_0x5ef4b1);_0x4b59cb['enableCommand'](_0x5ef4b1,(_0x85ff2,_0xd7d777={})=>{const _0x491098=_0x504b70['document']['selection'];if(_0x491098['isCollapsed'])return void _0x85ff2(_0xd7d777);const _0x569f20=void 0x0!==_0xd7d777['forceValue']?_0xd7d777['forceValue']:!_0x218a9d['value'];_0x504b70['change'](()=>{const _0x3277c6=Array['from'](_0x491098['getRanges']());for(const _0x15501f of _0x3277c6){const _0x1c642f=_0x569f20?[_0x15501f]:io(_0x5ef4b1,_0x15501f,_0x504b70);for(const _0x420587 of _0x1c642f)_0x4b59cb['markInlineFormat'](_0x420587,{'commandName':_0x5ef4b1,'commandParams':[{'forceValue':_0x569f20}]});}});}),_0x4b59cb['descriptionFactory']['registerDescriptionCallback'](_0x3e411a=>{if('formatBlock'!=_0x3e411a['type']&&'formatInline'!=_0x3e411a['type'])return;const {data:_0xcb8e76}=_0x3e411a;return _0xcb8e76&&_0xcb8e76['commandName']==_0x5ef4b1?_0xcb8e76['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xff0b3e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xff0b3e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Nt extends _0x3f9a7e{['afterInit'](){const _0x3706ae=this['editor'];if(!_0x3706ae['plugins']['has']('Style')||!_0x3706ae['plugins']['has']('DataSchema'))return;const _0x269847=_0x3706ae['plugins']['get']('TrackChangesEditing'),_0x10763f=_0x3706ae['locale'],_0x29bfa1=_0x3706ae['config']['get']('style')||{},_0x28e717=_0x3706ae['plugins']['get']('GeneralHtmlSupport'),_0x33ba04=_0x3706ae['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3706ae['plugins']['get']('DataSchema'),_0x29bfa1['definitions']);_0x269847['enableDefaultAttributesIntegration']('style');const _0x4dfe9e=new Set();for(const _0x5318e0 of _0x33ba04['block']){const _0x180804=_0x28e717['getGhsAttributeNameForElement'](_0x5318e0['element']);_0x4dfe9e['add'](_0x180804);}const _0x29fb5c=new Set();for(const _0x4e64b8 of _0x33ba04['inline']){const _0x29b4d3=_0x28e717['getGhsAttributeNameForElement'](_0x4e64b8['element']);_0x29fb5c['add'](_0x29b4d3);for(const _0x17323f of _0x4e64b8['ghsAttributes'])_0x29fb5c['add'](_0x17323f);}for(const _0x3f64fd of _0x4dfe9e)_0x269847['registerBlockAttribute'](_0x3f64fd),_0x269847['descriptionFactory']['registerAttributeLabel'](_0x3f64fd,o(_0x10763f,'FORMAT_STYLE'));for(const _0x65bba4 of _0x29fb5c)_0x269847['registerInlineAttribute'](_0x65bba4),_0x269847['descriptionFactory']['registerAttributeLabel'](_0x65bba4,o(_0x10763f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47021e=this['editor'],_0x2c1321=_0x47021e['locale'];_0x47021e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe02ca4=>{if('formatBlock'!=_0xe02ca4['type']&&'formatInline'!=_0xe02ca4['type'])return;const {data:_0x5797d3}=_0xe02ca4;return _0x5797d3&&'style'===_0x5797d3['commandName']?_0x5797d3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c1321,'*Set\x20format:*\x20%0',_0x5797d3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2c1321,'*Remove\x20format:*\x20%0',_0x5797d3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x3f9a7e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2f5ea){super(_0x2f5ea),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x37e11b=this['editor'],_0x2ac846=_0x37e11b['model']['document']['selection'];if(!_0x37e11b['plugins']['has']('TableEditing'))return;const _0x3d7e0e=_0x37e11b['locale'],_0x5743e4=_0x37e11b['plugins']['get']('TrackChangesEditing'),_0x290ec5=_0x37e11b['plugins']['get']('TableUtils');_0x5743e4['descriptionFactory']['registerElementLabel']('table',_0x558e60=>o(_0x3d7e0e,'ELEMENT_TABLE',_0x558e60)),this['_setupColumnsRowsFixing'](),_0x5743e4['enableCommand']('insertTable'),_0x5743e4['enableCommand']('selectTableRow'),_0x5743e4['enableCommand']('selectTableColumn');for(const _0x3e566e of['insertTableRowAbove','insertTableRowBelow']){const _0x1c37f7=_0x37e11b['commands']['get'](_0x3e566e);_0x5743e4['enableCommand'](_0x3e566e,_0x25741e=>{_0x37e11b['model']['change'](_0x43d37f=>{_0x25741e();const _0x1f542c='above'===_0x1c37f7['order'],_0x13fff7=_0x290ec5['getSelectionAffectedTableCells'](_0x2ac846),_0x3e0913=_0x290ec5['getRowIndexes'](_0x13fff7),_0x2564f5=_0x1f542c?_0x3e0913['first']-0x1:_0x3e0913['last']+0x1,_0x1d9a1b=_0x13fff7[0x0]['findAncestor']('table'),_0x2e9d96=_0x290ec5['createTableWalker'](_0x1d9a1b,{'startRow':_0x2564f5,'endRow':_0x2564f5}),_0x29216c=Array['from'](_0x2e9d96)['map'](_0x45cc04=>_0x43d37f['createRangeOn'](_0x45cc04['cell']));_0x5743e4['markMultiRangeInsertion'](_0x29216c,'tableRow');});});}for(const _0x35e53b of['insertTableColumnLeft','insertTableColumnRight']){const _0xf5f007=_0x37e11b['commands']['get'](_0x35e53b);_0x5743e4['enableCommand'](_0x35e53b,_0x1dc8e7=>{_0x37e11b['model']['change'](_0x3504df=>{_0x1dc8e7();const _0x2994aa='left'===_0xf5f007['order'],_0x4083bb=_0x290ec5['getSelectionAffectedTableCells'](_0x2ac846),_0xfca8cf=_0x290ec5['getColumnIndexes'](_0x4083bb),_0x823745=_0x2994aa?_0xfca8cf['first']-0x1:_0xfca8cf['last']+0x1,_0x3fe55e=_0x4083bb[0x0]['findAncestor']('table'),_0x1f466b=_0x290ec5['createTableWalker'](_0x3fe55e,{'startRow':0x0,'column':_0x823745,'includeAllSlots':!0x1}),_0x2e9dc0=Array['from'](_0x1f466b)['map'](_0x436885=>_0x3504df['createRangeOn'](_0x436885['cell']));_0x5743e4['markMultiRangeInsertion'](_0x2e9dc0,'tableColumn');});});}for(const _0x37f494 of['removeTableRow','removeTableColumn']){const _0x4067a8=_0x37f494['substr'](0xb),_0xd1d4fa=_0x4067a8['toLowerCase'](),_0xb4b10e=_0xd1d4fa['substr'](0x0,0x3)+'span',_0x5ebba1='table'+_0x4067a8,_0x23ed82='min'+_0x4067a8,_0x33cb4d='max'+_0x4067a8;_0x5743e4['enableCommand'](_0x37f494,()=>{_0x37e11b['model']['change'](_0x447665=>{const _0x30ec4d=_0x290ec5['getSelectionAffectedTableCells'](_0x2ac846),_0x2947f7=_0x30ec4d[0x0]['findAncestor']('table');let _0x2f18a3;if('removeTableRow'==_0x37f494){const _0x68d535=_0x290ec5['getRowIndexes'](_0x30ec4d);_0x2f18a3={'startRow':_0x68d535['first'],'endRow':_0x68d535['last'],'includeAllSlots':!0x0};}else{const _0x5a60b4=_0x290ec5['getColumnIndexes'](_0x30ec4d);_0x2f18a3={'startColumn':_0x5a60b4['first'],'endColumn':_0x5a60b4['last'],'includeAllSlots':!0x0};}const _0x3faafe=_0x290ec5['createTableWalker'](_0x2947f7,_0x2f18a3),_0x51d2d2=Array['from'](_0x3faafe)['map'](({cell:_0x3e65e9})=>_0x3e65e9),_0x2fe337=Oe(_0x51d2d2['filter'](_0x4cb2eb=>_0x4cb2eb['hasAttribute'](_0xb4b10e))),_0x3517f2=Oe(_0x51d2d2['filter'](_0x216957=>!_0x216957['hasAttribute'](_0xb4b10e)))['map'](_0x5642a8=>_0x447665['createRangeOn'](_0x5642a8)),_0x2b928f=_0x5743e4['markMultiRangeDeletion'](_0x3517f2,_0x5ebba1);if(_0x2b928f&&('tableRow'==_0x2b928f['subType']||'tableColumn'==_0x2b928f['subType'])){const _0x3761e1=this['_getSuggestionCoords'](_0x2b928f);for(const _0x2659fa of _0x2fe337){const _0x5e28b6=_0x447665['createRangeOn'](_0x2659fa),_0x5ddfa1=_0x290ec5['getCellLocation'](_0x2659fa),_0x288d87=_0x2659fa['getAttribute'](_0xb4b10e)-0x1,_0x3efd9d=_0x3761e1[_0x23ed82],_0x338b43=_0x3761e1[_0x33cb4d];_0x3efd9d<=_0x5ddfa1[_0xd1d4fa]&&_0x5ddfa1[_0xd1d4fa]+_0x288d87<=_0x338b43&&_0x2b928f['addRange'](_0x5e28b6);}}});});}function _0x437fd9(_0xdfed51){const _0x2d5347=Array['from'](_0x2ac846['getRanges']())['map'](_0x366b48=>_0x360709['fromRange'](_0x366b48));_0x37e11b['model']['change'](_0x5b71c8=>{const _0x474736=_0x5b71c8['batch'];_0xdfed51=_0xdfed51['filter'](_0x11a81a=>'$graveyard'!=_0x11a81a['root']['rootName']),_0x5b71c8['setSelection'](_0xdfed51),_0x37e11b['commands']['get']('removeTableRow')['refresh'](),_0x37e11b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x37e11b['model']['enqueueChange'](()=>{_0x37e11b['model']['enqueueChange'](_0x474736,_0x5ef408=>{const _0x28fb25=_0x2d5347['filter'](_0x2fd73c=>'$graveyard'!=_0x2fd73c['root']['rootName']);_0x28fb25['length']>0x0&&_0x5ef408['setSelection'](_0x28fb25);for(const _0x48062d of _0x2d5347)_0x48062d['detach']();});});});}function _0x4c78c2(_0x1bee93){_0x37e11b['model']['change'](_0x54d257=>{const _0x28a419=Array['from'](_0x2ac846['getRanges']())['map'](_0x19b158=>_0x360709['fromRange'](_0x19b158)),_0x2e5606=[];for(const _0x52b583 of _0x1bee93)for(const _0x172063 of _0x52b583['getItems']({'shallow':!0x0}))_0x2e5606['push'](_0x172063);for(const _0x9df88a of _0x2e5606)'$graveyard'!=_0x9df88a['root']['rootName']&&(_0x54d257['setSelection'](_0x54d257['createPositionAt'](_0x9df88a,0x0)),_0x37e11b['commands']['get']('removeTableColumn')['refresh'](),_0x37e11b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e8591=_0x28a419['filter'](_0x564f91=>'$graveyard'!=_0x564f91['root']['rootName']);_0x5e8591['length']>0x0&&_0x54d257['setSelection'](_0x5e8591);for(const _0x5a6132 of _0x28a419)_0x5a6132['detach']();});}function _0x52b5fa(_0x5b0ed7,_0xbfcbbb){return _0xbfcbbb['every'](_0x4f5fb7=>_0x5b0ed7['some'](_0x4e3ae5=>_0x4e3ae5['end']['isEqual'](_0x4f5fb7['start'])||_0x4f5fb7['end']['isEqual'](_0x4e3ae5['start'])));}function _0x27f636(_0x481600,_0x27f7ce){return!_0x481600['some'](_0x554677=>_0x27f7ce['some'](_0x281829=>_0x554677['isIntersecting'](_0x281829)))&&_0x481600['some'](_0x55bde4=>_0x27f7ce['some'](_0x4e85f6=>_0x55bde4['end']['isTouching'](_0x4e85f6['start'])));}_0x37e11b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1aa34e,_0x324983,_0xd178e4)=>{if(!_0xd178e4['options']['showSuggestionHighlights'])return;const _0x2fa8bf=_0x324983['item'];if(!_0x2fa8bf||!_0x2fa8bf['is']('element','tableCell'))return;const _0x2801d8=_0xd178e4['mapper']['toViewElement'](_0x2fa8bf);if(_0x2801d8){const {id:_0x1eebcc,authorId:_0x2216d3}=_0x5743e4['_splitMarkerName'](_0x324983['markerName']);_0x46ab54(_0x2801d8,_0xd178e4['writer'],(_0x2862db,_0x47f45a,_0x3df1df)=>{_0x3df1df['addClass'](_0x15d44f(_0x47f45a['classes']),_0x2862db),_0x3df1df['setAttribute']('data-suggestion-id',_0x1eebcc,_0x2862db),_0x3df1df['setAttribute']('data-author-id',_0x2216d3,_0x2862db);},(_0x36f838,_0x391ed9,_0x4691b9)=>{_0x4691b9['removeClass'](_0x15d44f(_0x391ed9['classes']),_0x36f838),_0x4691b9['removeAttribute']('data-suggestion-id',_0x36f838),_0x4691b9['removeAttribute']('data-author-id',_0x36f838);});}},{'priority':'highest'}),_0x5743e4['descriptionFactory']['registerDescriptionCallback'](_0x480d4c=>{if('insertion'!=_0x480d4c['type']&&'deletion'!=_0x480d4c['type'])return;const _0x73da8d=_0x480d4c['getContainedElement']();if(null!=_0x73da8d&&_0x73da8d['is']('element','table')){if('insertion'==_0x480d4c['type']){const _0x4d0a5e=_0x480d4c['getItems']()['filter'](_0x5c11da=>_0x5c11da['is']('$textProxy'))['map'](_0xe2d194=>_0xe2d194['data']);if(_0x4d0a5e['length'])return{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d0a5e['join']('\x20')+'\x22'))};}if('deletion'==_0x480d4c['type']){const _0x58966e=_0x480d4c['getItems']()['filter'](_0x54560e=>_0x54560e['is']('$textProxy'))['map'](_0x292a11=>_0x292a11['data']);if(_0x58966e['length'])return{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58966e['join']('\x20')+'\x22'))};}}}),_0x5743e4['descriptionFactory']['registerDescriptionCallback'](_0x575298=>{if('tableRow'==_0x575298['subType']){const _0x1503fb=_0x575298['getItems']()['filter'](_0x1be7bc=>_0x1be7bc['is']('$textProxy'))['map'](_0x521eae=>_0x521eae['data']),_0x41c9c8=this['_getSuggestionCoords'](_0x575298),_0x14d867=_0x41c9c8['maxRow']-_0x41c9c8['minRow']+0x1;if('insertion'==_0x575298['type'])return _0x1503fb['length']?{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14d867,'\x22'+_0x1503fb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_ROW',_0x14d867))};if('deletion'==_0x575298['type'])return _0x1503fb['length']?{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x14d867,'\x22'+_0x1503fb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_ROW',_0x14d867))};}if('tableColumn'==_0x575298['subType']){const _0x571a21=_0x575298['getItems']()['filter'](_0x2c6ae8=>_0x2c6ae8['is']('$textProxy'))['map'](_0x158d42=>_0x158d42['data']),_0x4c2317=this['_getSuggestionCoords'](_0x575298),_0x246b11=_0x4c2317['maxColumn']-_0x4c2317['minColumn']+0x1;if('insertion'==_0x575298['type'])return _0x571a21['length']?{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x246b11,'\x22'+_0x571a21['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3d7e0e,'*Insert:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_COLUMN',_0x246b11))};if('deletion'==_0x575298['type'])return _0x571a21['length']?{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x246b11,'\x22'+_0x571a21['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3d7e0e,'*Remove:*\x20%0',o(_0x3d7e0e,'ELEMENT_TABLE_COLUMN',_0x246b11))};}}),_0x5743e4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x437fd9),_0x5743e4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x437fd9),_0x5743e4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4c78c2),_0x5743e4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4c78c2),_0x5743e4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x52b5fa),_0x5743e4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x52b5fa),_0x5743e4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x27f636),_0x5743e4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x27f636);}['_acceptFormatSuggestionCallbackFactory'](){const _0x36a76f=this['editor'],_0x5ea973=_0x36a76f['model']['document']['selection'];return(_0x3b4d24,_0xbef77a)=>{_0x36a76f['model']['change'](_0xaf4b3d=>{const {commandName:_0x10773c,commandParams:_0x5b3c0d}=_0xbef77a;let _0x51448f=_0x3b4d24[0x0]['end']['nodeBefore'];_0x5b3c0d&&_0x5b3c0d[0x0]&&!0x1===_0x5b3c0d[0x0]['forceValue']&&(_0x51448f=_0x3b4d24[0x0]['start']['nodeAfter']);const _0x2c919d=_0xaf4b3d['createRangeIn'](_0x51448f);if('$graveyard'==_0x2c919d['root']['rootName'])return;const _0x510cb6=Array['from'](_0x5ea973['getRanges']())['map'](_0x47b7f4=>_0x360709['fromRange'](_0x47b7f4));_0xaf4b3d['setSelection'](_0x2c919d),_0x36a76f['commands']['get'](_0x10773c)['refresh'](),_0x5b3c0d['push']({'forceDefaultExecution':!0x0}),_0x36a76f['execute'](_0x10773c,..._0x5b3c0d);const _0x52552a=_0x510cb6['filter'](_0x3e254f=>'$graveyard'!=_0x3e254f['root']['rootName']);_0x52552a['length']>0x0&&_0xaf4b3d['setSelection'](_0x52552a);for(const _0x104ac2 of _0x510cb6)_0x104ac2['detach']();});};}['_getCoordsForCells'](_0x39875f){const _0x550b33=this['editor']['plugins']['get']('TableUtils');let _0xd4ff8f=Number['MAX_SAFE_INTEGER'],_0x4681b2=Number['MIN_SAFE_INTEGER'],_0x28f09e=Number['MAX_SAFE_INTEGER'],_0xab658c=Number['MIN_SAFE_INTEGER'];for(const _0x14330f of _0x39875f){if('$graveyard'==_0x14330f['root']['rootName'])continue;const {row:_0x57fd07,column:_0x569412}=_0x550b33['getCellLocation'](_0x14330f),_0x2a4cfd=_0x14330f['hasAttribute']('rowspan')?_0x14330f['getAttribute']('rowspan')-0x1:0x0,_0x4dd2ae=_0x14330f['hasAttribute']('colspan')?_0x14330f['getAttribute']('colspan')-0x1:0x0;_0xd4ff8f=_0x57fd07<_0xd4ff8f?_0x57fd07:_0xd4ff8f,_0x4681b2=_0x57fd07+_0x2a4cfd>_0x4681b2?_0x57fd07+_0x2a4cfd:_0x4681b2,_0x28f09e=_0x569412<_0x28f09e?_0x569412:_0x28f09e,_0xab658c=_0x569412+_0x4dd2ae>_0xab658c?_0x569412+_0x4dd2ae:_0xab658c;}return{'minRow':_0xd4ff8f,'maxRow':_0x4681b2,'minColumn':_0x28f09e,'maxColumn':_0xab658c};}['_setupColumnsRowsFixing'](){const _0x4e521a=this['editor'],_0x5a5ad1=_0x4e521a['plugins']['get']('TrackChangesEditing'),_0x5232c8=_0x4e521a['plugins']['get']('TableUtils');_0x4e521a['model']['document']['on']('change:data',()=>{const _0x48b1c6=Array['from'](_0x4e521a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e9373,data:_0x4c38db}of _0x48b1c6){const {group:_0x340ba5,id:_0x198f5a,subType:_0x3b0322}=_0x5a5ad1['_splitMarkerName'](_0x3e9373);if('suggestion'!=_0x340ba5)continue;if(null!=_0x4c38db['oldRange'])continue;const _0x52e3b4=_0x5a5ad1['getSuggestion'](_0x198f5a);this['_tablePostFixingSubtypes']['includes'](_0x3b0322)&&this['_tableSuggestions']['add'](_0x52e3b4);}},{'priority':'low'});const _0x41ca45=(_0x37c499,_0x35f35b)=>{let _0xc7a666=!0x1;const _0x24199b=_0x35f35b['createRangeOn'](_0x37c499),_0x3f1004=_0x37c499['findAncestor']('table'),_0x11a32a=_0x5232c8['getCellLocation'](_0x37c499);for(const _0x287d69 of this['_tableSuggestions']){const _0x48c684=_0x287d69['subType'],_0x59acbc=_0x48c684['startsWith']('tablePaste'),_0xbe8183=_0x48c684['substr'](_0x59acbc?0xa:0x5),_0x4cdcfa=_0xbe8183['toLowerCase'](),_0x1de0ca=_0x4cdcfa['substr'](0x0,0x3)+'span',_0x562666='min'+_0xbe8183,_0x4f50b0='max'+_0xbe8183;if(!_0x287d69['isInContent'])continue;if(_0x3f1004!=_0x287d69['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x287d69['isIntersectingWithRange'](_0x24199b))continue;const _0x50d30e=_0x37c499['hasAttribute'](_0x1de0ca)?_0x37c499['getAttribute'](_0x1de0ca)-0x1:0x0,_0x333cc2=this['_getSuggestionCoords'](_0x287d69),_0x3c1a4b=_0x333cc2[_0x562666],_0x417d62=_0x333cc2[_0x4f50b0];_0x3c1a4b<=_0x11a32a[_0x4cdcfa]&&_0x11a32a[_0x4cdcfa]+_0x50d30e<=_0x417d62&&(_0x287d69['addRange'](_0x24199b),_0xc7a666=!0x0);}return _0xc7a666;};_0x4e521a['model']['document']['registerPostFixer'](_0x326711=>{let _0x47c6d9=!0x1;for(const _0x4210f3 of _0x4e521a['model']['document']['differ']['getChanges']())if('insert'==_0x4210f3['type']){if('tableRow'==_0x4210f3['name']){for(const _0x3b1c79 of _0x4210f3['position']['nodeAfter']['getChildren']())_0x47c6d9=_0x47c6d9||_0x41ca45(_0x3b1c79,_0x326711);}else'tableCell'==_0x4210f3['name']&&(_0x47c6d9=_0x47c6d9||_0x41ca45(_0x4210f3['position']['nodeAfter'],_0x326711));}return _0x47c6d9;});}['_getSuggestionCoords'](_0x228314){return this['_getCoordsForCells'](_0x228314['getRanges']()['map'](_0x3d3498=>_0x3d3498['start']['nodeAfter']));}}function Oe(_0x5d6382){return Array['from'](new Set(_0x5d6382)['values']());}class Mt extends _0x3f9a7e{static get['requires'](){return[Dt];}['afterInit'](){const _0xc9ab6d=this['editor'],_0x12c1df=_0xc9ab6d['model']['document']['selection'],_0x31bb28=_0xc9ab6d['locale'];if(!_0xc9ab6d['plugins']['has']('TableEditing'))return;const _0x38714c=_0xc9ab6d['plugins']['get']('TrackChangesEditing'),_0x5eac13=_0xc9ab6d['plugins']['get']('TableUtils'),_0x27537d=_0xc9ab6d['plugins']['get'](Dt);_0x27537d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38714c['enableCommand']('mergeTableCells',()=>{const _0x394f03=_0x5eac13['getSelectionAffectedTableCells'](_0xc9ab6d['model']['document']['selection']);_0xc9ab6d['model']['change'](()=>{_0x38714c['markMultiRangeBlockFormat'](_0x394f03,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xc9ab6d['commands']['get']('mergeTableCells')['on']('execute',(_0xdb0ebc,_0x130942)=>{_0xc9ab6d['commands']['get']('trackChanges')['value']&&(_0x130942['length']>0x0&&_0x130942[_0x130942['length']-0x1]&&_0x130942[_0x130942['length']-0x1]['forceDefaultExecution']||_0x38714c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xdb0ebc['stop']());},{'priority':'highest'});for(const _0x1ae0ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x243d50=_0xc9ab6d['commands']['get'](_0x1ae0ff);_0x38714c['enableCommand'](_0x1ae0ff,()=>{const _0x4391da=_0xc9ab6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x30d4c0=>_0x30d4c0['is']('element','tableCell')),_0x392817=_0x243d50['value'];_0xc9ab6d['model']['change'](()=>{_0x38714c['markMultiRangeBlockFormat']([_0x4391da,_0x392817],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5f3b69 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x49efd6=_0xc9ab6d['commands']['get'](_0x5f3b69);_0x38714c['enableCommand'](_0x5f3b69,()=>{const _0x20849a=_0x5eac13['getSelectionAffectedTableCells'](_0xc9ab6d['model']['document']['selection'])[0x0],_0x3eed14=_0x20849a['findAncestor']('table'),{column:_0x5af732,row:_0x3a6369}=_0x5eac13['getCellLocation'](_0x20849a);let _0x3d771c=[];if('horizontally'==_0x49efd6['direction']){const _0x23263b=_0x5eac13['createTableWalker'](_0x3eed14,{'startRow':_0x3a6369,'endRow':_0x3a6369,'includeAllSlots':!0x0});_0x3d771c=Array['from'](_0x23263b)['map'](_0x3f7899=>_0x3f7899['cell']);}else{const _0xba3c8a=_0x5eac13['createTableWalker'](_0x3eed14,{'column':_0x5af732,'includeAllSlots':!0x0});_0x3d771c=Array['from'](_0xba3c8a)['map'](_0x441fcf=>_0x441fcf['cell']);}_0xc9ab6d['model']['change'](_0x2a986f=>{_0x38714c['markBlockFormat'](_0x2a986f['createRangeOn'](_0x20849a),{'commandName':_0x5f3b69,'commandParams':[]},_0x3d771c,_0x5f3b69);});});}_0x38714c['descriptionFactory']['registerDescriptionCallback'](_0x54ee8d=>{if('formatBlock'!=_0x54ee8d['type']&&'formatInline'!=_0x54ee8d['type'])return;const {data:_0x527a13}=_0x54ee8d;return _0x527a13&&'mergeTableCells'==_0x527a13['commandName']?{'type':'format','content':o(_0x31bb28,'*Merge\x20cells*')}:void 0x0;}),_0x38714c['descriptionFactory']['registerDescriptionCallback'](_0x835ff=>{if('formatBlock'!=_0x835ff['type']&&'formatInline'!=_0x835ff['type'])return;const {data:_0x2a3831}=_0x835ff;return _0x2a3831?'splitTableCellVertically'==_0x2a3831['commandName']?{'type':'format','content':o(_0x31bb28,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a3831['commandName']?{'type':'format','content':o(_0x31bb28,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x36fe51=_0x27537d['_acceptFormatSuggestionCallbackFactory']();for(const _0x53fa66 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38714c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53fa66,'accept',_0x36fe51);for(const _0x2f8738 of['splitTableCellVertically','splitTableCellHorizontally'])_0x38714c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f8738,'accept',_0x36fe51);_0x38714c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e0489=>{_0xc9ab6d['model']['change'](_0xb9171f=>{const _0x598ad1=Array['from'](_0x12c1df['getRanges']())['map'](_0x4f51f7=>_0x360709['fromRange'](_0x4f51f7));_0xb9171f['setSelection'](_0x4e0489),_0xc9ab6d['commands']['get']('mergeTableCells')['refresh'](),_0xc9ab6d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x396fe8=_0x598ad1['filter'](_0x42c0a1=>'$graveyard'!=_0x42c0a1['root']['rootName']);_0x396fe8['length']>0x0&&_0xb9171f['setSelection'](_0x396fe8);for(const _0x158626 of _0x598ad1)_0x158626['detach']();});});for(const _0x18a545 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1b6f13=_0xc9ab6d['commands']['get'](_0x18a545);_0x1b6f13['on']('set:isEnabled',(_0x56d102,_0x5845b5,_0x320d0b)=>{if(_0x320d0b){const _0x482ed7=_0xc9ab6d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x333a36=>_0x333a36['is']('element','tableCell'));this['_areMergableCells'](_0x1b6f13['value'],_0x482ed7)||(_0x56d102['return']=!0x1,_0x56d102['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xd06d9f=this['editor']['commands']['get']('mergeTableCells'),_0x13760e=this['editor']['plugins']['get']('TableUtils');if(!_0xd06d9f['isEnabled'])return!0x1;const _0x29fa50=_0x13760e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4bd0ff of _0x29fa50)for(const _0x6e2f76 of _0x29fa50)if(_0x4bd0ff!=_0x6e2f76&&!this['_areMergableCells'](_0x4bd0ff,_0x6e2f76))return!0x1;return!0x0;}['_areMergableCells'](_0x1f1534,_0x2f486f){const _0x48a636=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfa749c=this['editor']['model']['createRangeOn'](_0x1f1534),_0x44775a=this['editor']['model']['createRangeOn'](_0x2f486f),_0x19b568=new Set(),_0x39ab5e=new Set();for(const _0x36e007 of _0x48a636['getSuggestions']())if(('insertion'==_0x36e007['type']||'deletion'==_0x36e007['type']||'mergeTableCells'==_0x36e007['subType'])&&_0x36e007['isInContent']){for(const _0xdc4e8b of _0x36e007['getRanges']())_0xdc4e8b['containsRange'](_0xfa749c,!0x0)&&_0x19b568['add'](_0x36e007['type']+':'+_0x36e007['author']['id']),_0xdc4e8b['containsRange'](_0x44775a,!0x0)&&_0x39ab5e['add'](_0x36e007['type']+':'+_0x36e007['author']['id']);}if(_0x19b568['size']!=_0x39ab5e['size'])return!0x1;for(const _0x4b5917 of _0x19b568)if(!_0x39ab5e['has'](_0x4b5917))return!0x1;return!0x0;}}class Bt extends _0x3f9a7e{static get['requires'](){return[Dt];}['afterInit'](){const _0x3de8aa=this['editor'];if(!_0x3de8aa['plugins']['has']('TableEditing'))return;const _0x178495=_0x3de8aa['locale'],_0x5856f0=_0x3de8aa['plugins']['get']('TrackChangesEditing');_0x5856f0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5856f0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5856f0['registerBlockAttribute']('headingRows'),_0x5856f0['registerBlockAttribute']('headingColumns'),_0x5856f0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x178495,'FORMAT_HEADER_ROW')),_0x5856f0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x178495,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd6ee7a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5be3b9=this['editor']['plugins']['get']('TableUtils'),_0x4f4d4b=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();function _0x4f4b73({showActiveMarker:_0x3687a8=!0x0,setDataAttribute:_0x23adc2=!0x0}={}){return(_0x5ad3f7,_0x4add46,_0x4cc0bb)=>{const {type:_0x33c817,id:_0x380b1f}=_0xd6ee7a['_splitMarkerName'](_0x4add46['markerName']);if(!_0xd6ee7a['hasSuggestion'](_0x380b1f))return;const _0x607421=_0xd6ee7a['getSuggestion'](_0x380b1f),_0x2c1f30=_0x607421['data'];if('formatBlock'!=_0x607421['type']||!_0x2c1f30||'setTableColumnHeader'!=_0x2c1f30['commandName'])return;if(_0x4add46['item'])return void _0x5ad3f7['stop']();if(!_0x4cc0bb['consumable']['consume'](_0x4add46['markerRange'],_0x5ad3f7['name']))return;const _0x19f168=_0x4add46['markerRange']['start']['nodeAfter'],_0x408ffa=_0x4add46['markerRange']['end']['nodeBefore'],_0x54e9b1=_0x19f168['parent']['parent'],{column:_0x182a73}=_0x5be3b9['getCellLocation'](_0x19f168),{column:_0x3032e2}=_0x5be3b9['getCellLocation'](_0x408ffa);for(let _0x565e3b=_0x182a73;_0x565e3b<=_0x3032e2;_0x565e3b++){const _0x37f678=_0x5be3b9['createTableWalker'](_0x54e9b1,{'column':_0x565e3b,'includeAllSlots':!0x1});for(const _0x562689 of _0x37f678){const _0x466231=_0x562689['cell'],_0x347ebf=_0x4cc0bb['mapper']['toViewElement'](_0x466231);_0x4cc0bb['writer']['addClass']('ck-suggestion-marker-'+_0x33c817,_0x347ebf),_0x23adc2&&_0x4cc0bb['writer']['setAttribute']('data-suggestion',_0x380b1f,_0x347ebf),_0x4cc0bb['mapper']['bindElementToMarker'](_0x347ebf,_0x4add46['markerName']),_0x3687a8&&(_0xd6ee7a['activeMarkers']['includes'](_0x4add46['markerName'])?_0x4cc0bb['writer']['addClass']('ck-suggestion-marker--active',_0x347ebf):_0x4cc0bb['writer']['removeClass']('ck-suggestion-marker--active',_0x347ebf));}}};}_0xd6ee7a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4f4d4b),_0xd6ee7a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4f4d4b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f4b73(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x358af4,_0x2c77db,_0x4e5a03)=>{_0x4e5a03['options']['showSuggestionHighlights']&&_0x4f4b73({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x358af4,_0x2c77db,_0x4e5a03);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a6929,_0x30cdec,_0x2f53cc)=>{const {type:_0x353cfd,id:_0xd754f3}=_0xd6ee7a['_splitMarkerName'](_0x30cdec['markerName']);if(!_0xd6ee7a['hasSuggestion'](_0xd754f3))return;const _0x3e34bb=_0xd6ee7a['getSuggestion'](_0xd754f3),_0x5eefbc=_0x3e34bb['data'];if('formatBlock'!=_0x3e34bb['type']||!_0x5eefbc||'setTableColumnHeader'!=_0x5eefbc['commandName'])return;const _0x467530=_0x2f53cc['mapper']['markerNameToElements'](_0x30cdec['markerName']);if(_0x467530){for(const _0x4d8b0e of _0x467530)_0x2f53cc['writer']['removeClass']('ck-suggestion-marker-'+_0x353cfd,_0x4d8b0e),_0x2f53cc['writer']['removeClass']('ck-suggestion-marker--active',_0x4d8b0e),_0x2f53cc['writer']['removeAttribute']('data-suggestion',_0x4d8b0e),_0x2f53cc['mapper']['unbindElementFromMarkerName'](_0x4d8b0e,_0x30cdec['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25b2f4=this['editor'],_0x144bbe=_0x25b2f4['locale'];function _0x3a1802(_0x5bb272){return{'type':'format','content':o(_0x144bbe,'*Format:*\x20%0',_0x5bb272)};}_0x25b2f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13baed=>{if('formatBlock'!=_0x13baed['type'])return;const {data:_0x368454}=_0x13baed;if(_0x368454){if('setTableRowHeader'==_0x368454['commandName']){const _0x198a9d=_0x368454['commandParams'][0x0]['forceValue'];return _0x3a1802(o(_0x144bbe,_0x198a9d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x368454['commandName']){const _0x3ffb00=_0x368454['commandParams'][0x0]['forceValue'];return _0x3a1802(o(_0x144bbe,_0x3ffb00?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Tt extends _0x3f9a7e{['afterInit'](){const _0x5a5105=this['editor'],_0x295fce=_0x5a5105['locale'],_0x129e03=_0x5a5105['plugins']['get']('TrackChangesEditing');function _0x23a0ad(_0x35a8a0){return{'type':'format','content':''+o(_0x295fce,'*Set\x20table\x20type:*\x20%0',_0x35a8a0)};}_0x5a5105['plugins']['has']('TableLayout')&&(_0x129e03['enableCommand']('insertTableLayout'),_0x129e03['enableDefaultAttributesIntegration']('tableType'),_0x129e03['registerBlockAttribute']('tableType'),_0x129e03['descriptionFactory']['registerElementLabel'](_0x372748=>_0x372748['is']('element','table')&&'layout'===_0x372748['getAttribute']('tableType'),_0x3445=>o(_0x295fce,'ELEMENT_LAYOUT_TABLE',_0x3445)),_0x129e03['descriptionFactory']['registerDescriptionCallback'](_0x3df11a=>{const {data:_0x4a9df4}=_0x3df11a;if(_0x4a9df4&&'tableType'==_0x4a9df4['key'])switch(_0x4a9df4['newValue']){case'layout':return _0x23a0ad(o(_0x295fce,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x23a0ad(o(_0x295fce,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Ue['map'](_0x16addc=>[_0x16addc,null]));class Ot extends _0x3f9a7e{static get['requires'](){return[Dt];}['afterInit'](){const _0x5aeecf=this['editor'];if(!_0x5aeecf['plugins']['has']('TableClipboard'))return;const _0x14ab13=_0x5aeecf['plugins']['get']('TrackChangesEditing'),_0x1d746e=_0x5aeecf['plugins']['get']('TableUtils'),_0x36c298=_0x5aeecf['plugins']['get'](Dt),_0xb47da7=_0x5aeecf['plugins']['get']('TableClipboard'),_0x1b3c23=_0x5aeecf['plugins']['get']('TableSelection'),_0x2cf0f5=_0x5aeecf['plugins']['get'](_0x4daa20);_0x36c298['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5aeecf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5aeecf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1c6e8f=null,_0xe6da33=!0x1;_0x2cf0f5['on']('contentInsertion',(_0x55e3e7,_0x523be4)=>{_0xe6da33='paste'===_0x523be4['method'];}),_0x5aeecf['model']['on']('insertContent',(_0x12aaec,_0x434aa9)=>{if(!_0xe6da33&&null===_0x1b3c23['getSelectedTableCells']())return;const [_0x14d1ea,_0x2acb6e]=_0x434aa9,_0x3d1418=_0x434aa9[_0x434aa9['length']-0x1];_0x3d1418&&_0x3d1418['forceDefaultExecution']||_0x14ab13['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1fc7cd,_0xe76e0d,_0x5df36b,_0x3fff55,_0x58063c){if(_0xe76e0d&&!_0xe76e0d['is']('documentSelection'))return!0x1;const _0x1bc59e=_0x58063c['getTableIfOnlyTableInContent'](_0x1fc7cd,_0x5df36b);if(!_0x1bc59e||!Ge(_0x1bc59e,void 0x0,_0x3fff55))return!0x1;const _0x108315=_0x3fff55['getSelectionAffectedTableCells'](_0x5df36b['document']['selection']);if(!_0x108315['length'])return!0x1;const _0x19ad3b=_0x108315[0x0]['findAncestor']('table'),_0x93f6da=_0x3fff55['getRowIndexes'](_0x108315),_0x311d5b=_0x3fff55['getColumnIndexes'](_0x108315),_0x24cc44={'startRow':_0x93f6da['first'],'endRow':_0x93f6da['last'],'startColumn':_0x311d5b['first'],'endColumn':_0x311d5b['last']};return 0x1==_0x108315['length']&&(_0x24cc44['endRow']+=_0x3fff55['getRows'](_0x1bc59e)-0x1,_0x24cc44['endColumn']+=_0x3fff55['getColumns'](_0x1bc59e)-0x1),Ge(_0x19ad3b,_0x24cc44,_0x3fff55);}(_0x14d1ea,_0x2acb6e,_0x5aeecf['model'],_0x1d746e,_0xb47da7)&&(_0x12aaec['stop'](),_0x1c6e8f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5aeecf['model']['change'](()=>{_0x5aeecf['model']['insertContent'](_0x434aa9[0x0],_0x434aa9[0x1],_0x434aa9[0x2],{'forceDefaultExecution':!0x0});const _0x510c00=_0x172a90(),{rowInsertionRanges:_0x4322d1,columnInsertionRanges:_0x1ccadb,insertionRanges:_0x251a47,deletionRanges:_0x5eaea8,cells:_0x39e689}=_0x1c6e8f;_0x4322d1['length']&&_0x14ab13['markMultiRangeInsertion'](_0x4322d1,'tablePasteRow',{'tablePasteChainId':_0x510c00}),_0x1ccadb['length']&&_0x14ab13['markMultiRangeInsertion'](_0x1ccadb,'tablePasteColumn',{'tablePasteChainId':_0x510c00}),_0x251a47['length']&&(_0x14ab13['markMultiRangeInsertion'](_0x251a47,'tablePaste',{'tablePasteChainId':_0x510c00,'skipNestingCheck':!0x0}),_0x251a47['forEach'](_0x2445d0=>_0x2445d0['detach']?.())),_0x5eaea8['length']&&(_0x14ab13['markMultiRangeDeletion'](_0x5eaea8,'tablePaste',{'tablePasteChainId':_0x510c00,'skipNestingCheck':!0x0}),_0x5eaea8['forEach'](_0x24454c=>_0x24454c['detach']?.()));const _0x37d3a9=_0x14ab13['markMultiRangeBlockFormat'](_0x39e689['map'](({element:_0xc8d42c})=>_0xc8d42c),{'formatGroupId':_0x172a90()},[],'tablePasteCell',{'tablePasteChainId':_0x510c00});if(_0x37d3a9){const _0x1176af=_0x37d3a9['getMarkers'](),_0x35d4f1=[];for(const {element:_0x7557e5,attributes:_0x57ebae}of _0x39e689){if(!_0x57ebae)continue;const _0x2fb0cf=_0x5aeecf['model']['createRangeOn'](_0x7557e5),_0x30d0a3=_0x1176af['find'](_0x35835a=>_0x35835a['getRange']()['isEqual'](_0x2fb0cf));_0x30d0a3&&_0x35d4f1['push']([_0x30d0a3['name'],_0x57ebae]);}_0x35d4f1['length']&&_0x37d3a9['setAttribute']('markerAttributes',Object['fromEntries'](_0x35d4f1));}_0x1c6e8f=null;}));},{'priority':_0x3b0c6e['high']+0xa}),_0x2cf0f5['on']('contentInsertion',()=>{_0xe6da33=!0x1;},{'priority':'lowest'}),_0x5aeecf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2f42fc,_0x454d1e)=>{const [_0x48e24c,_0x2c9b96,,_0x1c4b43]=_0x454d1e;if(!_0x1c6e8f)return;_0x2f42fc['stop']();const _0x5b0456=_0x48e24c['cell'],_0xed7a10=_0x2c9b96,_0x27f34d=ze(_0x5b0456),_0x4c91ba=ze(_0xed7a10);_0x2f42fc['return']=_0x5b0456;let _0x522308=null,_0x272a15=null;if(_0x4c91ba||_0x27f34d){if(_0x27f34d&&!_0x4c91ba){_0x1c4b43['remove'](_0x5b0456['getChild'](0x0));for(const _0x54961a of Array['from'](_0xed7a10['getChildren']()))_0x1c4b43['insert'](_0x54961a,_0x5b0456,'end');const _0x56f585=_0x1c6e8f['rowInsertionIndexes']['includes'](_0x48e24c['row']),_0x471b0c=_0x1c6e8f['columnInsertionIndexes']['includes'](_0x48e24c['column']);_0x56f585||_0x471b0c||(_0x522308=_0x360709['fromRange'](_0x1c4b43['createRangeIn'](_0x5b0456)));}else _0x4c91ba&&!_0x27f34d&&(_0x272a15=_0x1c4b43['createRangeIn'](_0x5b0456));}else{const _0x2b34b8=_0x1c4b43['createElement']('tableCellSuggestion'),_0x19f221=_0x1c4b43['createElement']('tableCellSuggestion');_0x1c4b43['wrap'](_0x1c4b43['createRangeIn'](_0x5b0456),_0x19f221),_0x1c4b43['insert'](_0x2b34b8,_0x5b0456,0x0);for(const _0x1e2534 of Array['from'](_0xed7a10['getChildren']()))_0x1c4b43['insert'](_0x1e2534,_0x2b34b8,'end');_0x522308=_0x360709['fromRange'](_0x1c4b43['createRangeOn'](_0x2b34b8)),_0x272a15=_0x360709['fromRange'](_0x1c4b43['createRangeOn'](_0x19f221));}const _0xabc748=Array['from'](_0xed7a10['getAttributes']())['filter'](([_0x3336e0])=>Ue['includes'](_0x3336e0));_0x1c6e8f['cells']['push']({'element':_0x5b0456,'attributes':_0xabc748['length']?Object['fromEntries'](_0xabc748):null}),_0x522308&&_0x1c6e8f['insertionRanges']['push'](_0x522308),_0x272a15&&_0x1c6e8f['deletionRanges']['push'](_0x272a15);},{'priority':'high'}),_0x1d746e['on']('insertColumns',(_0x525c55,_0x3ed34e)=>{const [_0x4f7c0b,_0x2939d3={}]=_0x3ed34e;if(!_0x1c6e8f)return;const _0x519a2c=_0x2939d3['at']||0x0,_0x5478c5=_0x2939d3['columns']||0x1;_0x1c6e8f['columnInsertionIndexes']=new Array(_0x5478c5)['fill'](_0x519a2c)['map']((_0x9810bf,_0x3fd64e)=>_0x9810bf+_0x3fd64e);for(const {cell:_0x103b9d}of _0x1d746e['createTableWalker'](_0x4f7c0b,{'startColumn':_0x519a2c,'endColumn':_0x519a2c+_0x5478c5-0x1}))_0x1c6e8f['columnInsertionRanges']['push'](_0x5aeecf['model']['createRangeOn'](_0x103b9d));},{'priority':'low'}),_0x1d746e['on']('insertRows',(_0x8a7154,_0x5f1f3b)=>{const [_0x1b5917,_0x18e953={}]=_0x5f1f3b;if(!_0x1c6e8f)return;const _0x114975=_0x18e953['at']||0x0,_0x1610f1=_0x18e953['rows']||0x1;_0x1c6e8f['rowInsertionIndexes']=new Array(_0x1610f1)['fill'](_0x114975)['map']((_0x8cce55,_0x5eb83e)=>_0x8cce55+_0x5eb83e);for(const {cell:_0x168ace}of _0x1d746e['createTableWalker'](_0x1b5917,{'startRow':_0x114975,'endRow':_0x114975+_0x1610f1-0x1}))_0x1c6e8f['rowInsertionRanges']['push'](_0x5aeecf['model']['createRangeOn'](_0x168ace));},{'priority':'low'}),_0x14ab13['descriptionFactory']['registerDescriptionCallback'](_0x362329=>{if(_0x362329['subType']&&_0x362329['subType']['startsWith']('tablePaste'))return _0x362329['previous']?{}:{'type':'insertion','content':o(_0x5aeecf['locale'],'*Replace\x20table\x20cells*')};});const _0x2b73a4=()=>!0x1;for(const _0x1c51ef of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x14ab13['_suggestionFactory']['registerCustomCallback']('insertion',_0x1c51ef,'join',_0x2b73a4),_0x14ab13['_suggestionFactory']['registerCustomCallback']('deletion',_0x1c51ef,'join',_0x2b73a4),_0x14ab13['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c51ef,'join',_0x2b73a4);_0x14ab13['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2b73a4),_0x14ab13['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x369f48,_0x432a54,_0x34e279)=>{const _0x41ebba=_0x369f48['map'](_0x38a10e=>_0x38a10e['getContainedElement']())['filter'](_0x10be52=>_0x10be52),_0xcc68a5=new Map(_0x41ebba['map'](_0x2d3299=>[_0x2d3299,null]));if(_0x1c6e8f){for(const {element:_0x203363,attributes:_0x3bede3}of _0x1c6e8f['cells'])_0x3bede3&&_0xcc68a5['set'](_0x203363,_0x3bede3);}else{if(_0x34e279&&_0x34e279['markerAttributes'])for(const [_0x29138d,_0x2b4116]of Object['entries'](_0x34e279['markerAttributes'])){const _0xdfa085=_0x5aeecf['model']['markers']['get'](_0x29138d),_0x13f2db=_0xdfa085?_0xdfa085['getRange']()['getContainedElement']():null;_0x13f2db&&_0xcc68a5['set'](_0x13f2db,_0x2b4116);}}_0x5aeecf['model']['change'](_0xc23b7e=>{for(const [_0x354ff6,_0x53b8c1]of _0xcc68a5)_0xc23b7e['setAttributes']({...He,..._0x53b8c1},_0x354ff6);});});const _0x157299=(_0xe9ff3,_0x4de9eb)=>{_0x14ab13['_suggestionFactory']['registerCustomCallback'](_0xe9ff3,'tablePaste',_0x4de9eb,(_0x4e718b,_0x1fe87d,_0x12bd90)=>{_0x5aeecf['model']['change'](_0x530285=>{const _0x57e2a5=[];for(const _0x80d203 of _0x4e718b){const _0x2d7d3a=_0x80d203['start']['nodeAfter'];_0x2d7d3a['is']('element','tableCellSuggestion')&&_0x57e2a5['push'](_0x2d7d3a);}_0x14ab13['_suggestionFactory']['getSuggestionCallback'](_0xe9ff3,null,_0x4de9eb)(_0x4e718b,_0x1fe87d,_0x12bd90);for(const _0x380571 of _0x57e2a5)'$graveyard'!=_0x380571['root']['rootName']&&_0x530285['unwrap'](_0x380571);});});};_0x157299('insertion','accept'),_0x157299('insertion','discard'),_0x157299('deletion','accept'),_0x157299('deletion','discard'),_0x14ab13['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4eeae9=>{const _0x53c2e8=_0x4eeae9['map'](_0x26aa6f=>_0x26aa6f['getContainedElement']()),_0x294092=_0x53c2e8[0x0]['findAncestor']('table'),{minRow:_0x6a3266,maxRow:_0x2573cc}=_0x36c298['_getCoordsForCells'](_0x53c2e8);_0x1d746e['removeRows'](_0x294092,{'at':_0x6a3266,'rows':_0x2573cc-_0x6a3266+0x1});}),_0x14ab13['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x30374d=>{const _0x1774b0=_0x30374d['map'](_0xcfdeec=>_0xcfdeec['getContainedElement']()),_0x28b4d0=_0x1774b0[0x0]['findAncestor']('table'),{minColumn:_0x79ba26,maxColumn:_0x47dd7f}=_0x36c298['_getCoordsForCells'](_0x1774b0);_0x1d746e['removeColumns'](_0x28b4d0,{'at':_0x79ba26,'columns':_0x47dd7f-_0x79ba26+0x1});});const _0x46dab6=(_0x2b8dc5,_0x3d23c7)=>{if(!_0x3d23c7['subType']||!_0x3d23c7['subType']['startsWith']('tablePaste'))return;const _0x100530=_0x3d23c7['attributes']['tablePasteChainId'],_0x1a98bc=_0x14ab13['getSuggestions']()['filter'](_0x3a36bd=>_0x3a36bd['isInContent']&&_0x3a36bd['attributes']&&_0x3a36bd['attributes']['tablePasteChainId']==_0x100530);_0x1a98bc['length']&&_0x3d23c7['getAllAdjacentSuggestions']()['length']!=_0x1a98bc['length']&&_0x1a98bc['reduce']((_0x1e0e39,_0x379591)=>(_0x1e0e39['next']=_0x379591,_0x379591['previous']=_0x1e0e39,_0x379591));};function _0x36a072(_0x55210d,_0x526595=!0x0){const {id:_0x80cf94,authorId:_0x55cca4}=_0x14ab13['_splitMarkerName'](_0x55210d['markerName']),_0x4183e4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3f024c=_0x14ab13['activeMarkers']['includes'](_0x55210d['markerName']);return _0x3f024c&&_0x4183e4['push']('ck-suggestion-marker--active'),{'classes':_0x4183e4,'attributes':{'data-suggestion':_0x80cf94,'data-author-id':_0x55cca4},'priority':_0x3f024c&&_0x526595?0xbc2:0xbb8};}_0x14ab13['on']('suggestionLoaded',_0x46dab6,{'priority':'high'}),_0x14ab13['on']('suggestionUnloaded',_0x46dab6,{'priority':'high'}),_0x5aeecf['model']['document']['registerPostFixer'](()=>{let _0x44f713=!0x1;const _0x48c341=Array['from'](_0x5aeecf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24016f,data:_0x38693e}of _0x48c341){const {group:_0x1a099d,type:_0x1500f1,id:_0x197a58}=_0x14ab13['_splitMarkerName'](_0x24016f);if('suggestion'!=_0x1a099d||'deletion'!=_0x1500f1||_0x38693e['oldRange'])continue;if(!_0x14ab13['hasSuggestion'](_0x197a58))continue;const _0x9243f1=_0x14ab13['getSuggestion'](_0x197a58)['getRanges'](),_0x242b92=_0x5aeecf['plugins']['get']('Users')['me'];for(const _0x3c75c3 of _0x14ab13['getSuggestions']()){if(!_0x3c75c3['isInContent']||_0x3c75c3['author']!=_0x242b92)continue;if('formatBlock'!=_0x3c75c3['type']||'tablePasteCell'!=_0x3c75c3['subType'])continue;if(_0x3c75c3['getRanges']()['every'](_0x523026=>_0x9243f1['some'](_0x5a8b35=>_0x5a8b35['containsRange'](_0x523026,!0x0)))){for(const _0x3244c6 of _0x3c75c3['getAllAdjacentSuggestions']())_0x3244c6['isInContent']&&(_0x3244c6['discard'](),_0x44f713=!0x0);}}}return _0x44f713;}),_0x5aeecf['model']['document']['registerPostFixer'](_0x1e278d=>{const _0x2a5e4c=_0x5aeecf['commands']['get']('redo');if(!_0x2a5e4c||!_0x2a5e4c['_createdBatches']['has'](_0x1e278d['batch']))return!0x1;let _0x5b1bdd=!0x1;const _0x5cd913=_0x5aeecf['plugins']['get']('Users')['me'],_0x5a0bac=_0x5aeecf['model']['document']['differ']['getChanges'](),_0x1348e1=Array['from'](_0x5aeecf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2b5ab0,data:_0x2eb966})=>{const {group:_0x3eee8c,subType:_0xdcf575,authorId:_0x5b0c17}=_0x14ab13['_splitMarkerName'](_0x2b5ab0);return'suggestion'==_0x3eee8c&&'tablePaste'==_0xdcf575&&_0x5b0c17==_0x5cd913['id']&&!_0x2eb966['oldRange'];});for(const _0x2133e0 of _0x5a0bac){if('insert'!=_0x2133e0['type']||'tableCellSuggestion'!=_0x2133e0['name']||0x1!=_0x2133e0['length'])continue;const _0x2eae61=_0x1e278d['createRange'](_0x2133e0['position'],_0x2133e0['position']['getShiftedBy'](0x1));if(!_0x1348e1['find'](({data:_0x24caec})=>_0x24caec['newRange']['isEqual'](_0x2eae61))){for(const {name:_0x4536a2,data:_0x427f10}of _0x1348e1)if(_0x2eae61['containsRange'](_0x427f10['newRange'])){_0x1e278d['updateMarker'](_0x4536a2,{'range':_0x2eae61}),_0x5b1bdd=!0x0;break;}}}return _0x5b1bdd;}),_0x5aeecf['model']['document']['registerPostFixer'](_0x32a87e=>{let _0xacf83a=!0x1;const _0x390f9d=_0x5aeecf['plugins']['get']('Users')['me'],_0x515b5f=_0x14ab13['getSuggestions']()['filter'](_0x5eaf89=>_0x5eaf89['isInContent']&&_0x5eaf89['author']==_0x390f9d),_0x5b4d34=new Set(),_0x5a3015=new Set();for(const _0x416ac8 of _0x515b5f)if('tablePaste'==_0x416ac8['subType'])for(const _0x287023 of _0x416ac8['getMarkers']()){const _0x5c93e3=_0x287023['getRange']()['getContainedElement']();if(_0x5c93e3){if(_0x5c93e3['is']('element','tableCellSuggestion')&&ze(_0x5c93e3)){_0x416ac8['removeMarker'](_0x287023['name']),_0x5b4d34['add'](_0x5c93e3),_0xacf83a=!0x0;const _0x45865b=_0x5c93e3['nextSibling'],_0x160b75=_0x5c93e3['previousSibling'],_0xcd2956=_0x45865b&&_0x45865b['is']('element','tableCellSuggestion'),_0x25f694=_0x160b75&&_0x160b75['is']('element','tableCellSuggestion');_0xcd2956&&!_0x5b4d34['has'](_0x45865b)&&_0x5a3015['add'](_0x45865b),_0x25f694&&!_0x5b4d34['has'](_0x160b75)&&_0x5a3015['add'](_0x160b75);}else _0x5c93e3['is']('element','paragraph')&&_0x5c93e3['isEmpty']&&(_0x416ac8['removeMarker'](_0x287023['name']),_0xacf83a=!0x0);}}else{if('tablePasteCell'==_0x416ac8['subType']){if(!_0x416ac8['attributes']||!_0x416ac8['attributes']['tablePasteChainId'])continue;const _0x78e299=_0x416ac8['attributes']['markerAttributes'];if(_0x78e299&&Object['keys'](_0x78e299)['length'])continue;const _0x1a6039=_0x416ac8['attributes']['tablePasteChainId'];let _0xb2cbed=!0x0,_0x20c5c6=!0x0;for(const _0x1530de of _0x515b5f)if(_0x1530de['subType']&&_0x1530de['subType']['startsWith']('tablePaste')){if(!_0x1530de['attributes']['tablePasteChainId']){_0x20c5c6=!0x1;break;}if(_0x1530de['id']!=_0x416ac8['id']&&_0x1530de['attributes']['tablePasteChainId']==_0x1a6039){_0xb2cbed=!0x1;break;}}_0x20c5c6&&_0xb2cbed&&(_0x416ac8['removeMarkers'](),_0xacf83a=!0x0);}}for(const _0x7e9b7 of _0x5b4d34)_0x32a87e['remove'](_0x7e9b7);for(const _0x1da692 of _0x5a3015)_0x32a87e['unwrap'](_0x1da692);return _0xacf83a;}),_0x5aeecf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x59b595=>_0x36a072(_0x59b595),'converterPriority':'high'}),_0x5aeecf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x42a116,_0x1dd7b3)=>_0x1dd7b3['options']['showSuggestionHighlights']?_0x36a072(_0x42a116,!0x1):null,'converterPriority':'high'});const _0x55af28=_0x5aeecf['editing']['view'];this['listenTo'](_0x55af28['document'],'clipboardOutput',(_0x429a88,_0x43814c)=>{const _0xba1e58=[];for(const _0x54cdf6 of _0x55af28['createRangeIn'](_0x43814c['content'])['getItems']())_0x54cdf6['is']('element','suggestion-td')&&_0xba1e58['push'](_0x54cdf6);_0x55af28['change'](_0xcd79c8=>{for(const _0x57c552 of _0xba1e58)_0xcd79c8['move'](_0xcd79c8['createRangeIn'](_0x57c552),_0xcd79c8['createPositionBefore'](_0x57c552)),_0xcd79c8['remove'](_0x57c552);});});}}function ze(_0x1c3910){if(_0x1c3910['isEmpty'])return!0x0;const _0x3cf639=_0x1c3910['getChild'](0x0);return _0x3cf639['is']('element','paragraph')&&_0x3cf639['isEmpty'];}function Ge(_0x327025,_0x14fd91={},_0x328fb5){for(const {isAnchor:_0x37805d,cellHeight:_0x2350b2,cellWidth:_0x27f834}of _0x328fb5['createTableWalker'](_0x327025,{'includeAllSlots':!0x0,..._0x14fd91}))if(!_0x37805d||0x1!=_0x2350b2||0x1!=_0x27f834)return!0x1;return!0x0;}class xt extends _0x3f9a7e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3512fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3512fa['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3512fa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3512fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3512fa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3512fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3512fa['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x32cff1,_0x1764cb){const _0x4ca60d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d53f6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36d57c=_0x1764cb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x34380e=_0x5d53f6['getColumnGroupElement'](_0x36d57c);let _0x3d8484=_0x34380e?_0x5d53f6['getTableColumnsWidths'](_0x34380e):null,_0x30dad2=_0x36d57c['getAttribute']('tableWidth')||null;const _0x13e92e=_0x1764cb['tableWidth']||_0x30dad2,_0x2bfdc8=_0x1764cb['columnWidths']||_0x3d8484,_0x1152cc=this['editor']['plugins']['get']('Users')['me'];for(const _0x5db43a of _0x4ca60d['getSuggestions']()){const _0x41bbed=_0x5db43a['getContainedElement']();if('resizeTable'===_0x5db43a['subType']&&_0x41bbed===_0x36d57c){_0x5db43a['author']!==_0x1152cc&&_0x5db43a['discard']();const _0x366df7=_0x5db43a['data']['commandParams'];_0x30dad2=_0x366df7[0x0]['tableWidth'],_0x3d8484=_0x366df7[0x0]['columnWidths'];break;}}_0x32cff1({'table':_0x36d57c,'tableWidth':_0x13e92e,'columnWidths':_0x2bfdc8}),_0x4ca60d['markBlockFormat'](_0x36d57c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x30dad2,'columnWidths':_0x3d8484}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5bb1cd){if('formatBlock'!=_0x5bb1cd['type']&&'formatInline'!=_0x5bb1cd['type'])return;const {data:_0x11350e}=_0x5bb1cd;if(_0x11350e&&'resizeTable'===_0x11350e['formatGroupId']){const _0x3e49c2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3e49c2)};}}}class Et extends _0x3f9a7e{['afterInit'](){const _0x315620=this['editor'];_0x315620['plugins']['has']('Template')&&_0x315620['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x3f9a7e{['afterInit'](){const _0x5dee8e=this['editor'];if(!_0x5dee8e['commands']['get']('insertTableOfContents'))return;_0x5dee8e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x159209=_0x5dee8e['plugins']['get']('TrackChangesEditing'),_0x393b05=_0x5dee8e['locale'];_0x159209['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4f3bf4=>o(_0x393b05,'ELEMENT_TABLE_OF_CONTENTS',_0x4f3bf4));}}class Ut extends _0x3f9a7e{['afterInit'](){const _0x53e1cf=this['editor'];if(!_0x53e1cf['plugins']['has']('Title'))return;const _0x323cb2=_0x53e1cf['plugins']['get']('TrackChangesEditing');_0x323cb2['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x53e1cf['locale'],'ELEMENT_TITLE')),_0x53e1cf['model']['document']['registerPostFixer'](_0xc1f3c4=>{let _0x11ee42=!0x1;const _0x1aee89=Array['from'](_0x53e1cf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x188c0c,data:_0x3663b5}of _0x1aee89){const {group:_0x1e79be}=_0x323cb2['_splitMarkerName'](_0x188c0c);if('suggestion'!==_0x1e79be||!_0x3663b5['newRange'])continue;const _0x2e7dd1=_0x3663b5['newRange'],_0x345ee6=_0x2e7dd1['end']['nodeBefore'];if(!_0x345ee6||!_0x345ee6['is']('element','title-content'))continue;if(!_0x2e7dd1['start']['isTouching'](_0x2e7dd1['end']))continue;const _0x4af9b2=_0x53e1cf['model']['schema']['getNearestSelectionRange'](_0x2e7dd1['end'],'forward');if(_0x4af9b2&&_0x4af9b2['isCollapsed']){const _0x40c9bc=_0xc1f3c4['createRange'](_0x2e7dd1['start'],_0x4af9b2['start']);_0x40c9bc['isEqual'](_0x2e7dd1)||(_0xc1f3c4['updateMarker'](_0x188c0c,{'range':_0x40c9bc}),_0x11ee42=!0x0);}_0x11ee42||(_0xc1f3c4['removeMarker'](_0x188c0c),_0x11ee42=!0x0);}return _0x11ee42;});}}class Vt extends _0x3f9a7e{['afterInit'](){const _0x55a795=this['editor'],_0x34072a=_0x55a795['plugins']['get']('TrackChangesEditing');_0x55a795['plugins']['has']('Uploadcare')&&(_0x34072a['enableCommand']('uploadcare'),_0x55a795['plugins']['has']('UploadcareImageEdit')&&(_0x34072a['enableCommand']('uploadcareImageEdit'),_0x34072a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x34072a['registerBlockAttribute']('uploadcareImageId'),_0x34072a['descriptionFactory']['registerDescriptionCallback'](_0x39fb0e=>{if('attribute'!=_0x39fb0e['type'])return;const {data:_0x24497b}=_0x39fb0e;return _0x24497b&&'uploadcareImageId'==_0x24497b['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x3f9a7e{['afterInit'](){const _0x4ca9fe=this['editor'],_0x4dff8b=_0x4ca9fe['plugins']['get']('TrackChangesEditing');_0x4ca9fe['plugins']['has']('UndoEditing')&&(_0x4dff8b['enableCommand']('undo'),_0x4dff8b['enableCommand']('redo'));}}class Pt extends _0x3f9a7e{static get['requires'](){return[Dt];}['afterInit'](){const _0x1cf298=this['editor'];if(!_0x1cf298['plugins']['has']('TableCaptionEditing'))return;_0x1cf298['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x3f9a7e{['tableProperties'];['tableCellProperties'];constructor(_0x285aa2){super(_0x285aa2),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 _0x4a1bd6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5177e9 of this['tableProperties'])_0x4a1bd6['enableCommand'](_0x5177e9,(_0x1eb575,_0x521763)=>{const _0x15eac6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5177e9,[_0x15eac6],this['tableProperties'],'tableProperties',_0x1eb575,_0x521763);});_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4a1bd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x256392,_0x284a27)=>this['handleDiscardAction'](this['tableProperties'],_0x256392,_0x284a27)),_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54d674 of this['tableCellProperties'])_0x4a1bd6['enableCommand'](_0x54d674,(_0x4325de,_0x26b5df)=>{const _0x3dacb2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54d674,_0x3dacb2,this['tableCellProperties'],'tableCellProperties',_0x4325de,_0x26b5df);});_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4a1bd6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xb4e466,_0x27ac3f)=>this['handleDiscardAction'](this['tableCellProperties'],_0xb4e466,_0x27ac3f)),_0x4a1bd6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4a1bd6['descriptionFactory']['registerDescriptionCallback'](_0x1a7df0=>this['handleSuggestionDescription'](_0x1a7df0)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x532752,_0x2366db,_0x31039c,_0x3acf03,_0x25d419,_0x3838da){const _0x31ad54=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3838da['batch'],()=>{for(const _0x3472a4 of _0x2366db){if(this['_getSuggestion'](_0x3472a4,_0x3acf03))_0x25d419(_0x3838da);else{const _0x47b486={};for(const _0x522a90 of _0x31039c){const _0x222460=_0x3472a4['getAttribute'](_0x522a90);void 0x0!==_0x222460&&(_0x47b486[_0x522a90]=_0x222460);}_0x25d419(_0x3838da),_0x31ad54['markBlockFormat'](_0x3472a4,{'commandParams':[_0x47b486]},[],_0x3acf03);}}});}['handleDiscardAction'](_0x210b44,_0x4390b4,_0x301b79){const _0x5b1979=_0x4390b4[0x0]['start']['nodeAfter'],_0x17d0af=_0x301b79['commandParams'][0x0];this['editor']['model']['change'](_0x31d844=>{for(const _0x1e5df5 of _0x210b44)void 0x0!==_0x17d0af[_0x1e5df5]?_0x31d844['setAttribute'](_0x1e5df5,_0x17d0af[_0x1e5df5],_0x5b1979):_0x31d844['removeAttribute'](_0x1e5df5,_0x5b1979);});}['handleSuggestionDescription'](_0x4c019d){if(_0x4c019d['data'])switch(_0x4c019d['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'](_0xeb61f7,_0x5e6d21){const _0x2b9e23=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x59ea6c of _0x2b9e23['getSuggestions']({'skipNotAttached':!0x0})){const _0xc53a95=_0x59ea6c['getContainedElement']();if(_0x59ea6c['subType']===_0x5e6d21&&_0xc53a95===_0xeb61f7)return _0x59ea6c;}return null;}['_registerTablePropertiesAttributes'](){const _0x5a1e75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e6368=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x575420 of _0x2e6368){const _0x39755f=_0x575420['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5a1e75['registerBlockAttribute'](_0x575420),_0x5a1e75['descriptionFactory']['registerAttributeLabel'](_0x575420,o(this['editor']['locale'],'FORMAT_'+_0x39755f));}}}class Lt extends _0x3f9a7e{['afterInit'](){const _0x3e1d6d=this['editor'];if(!_0x3e1d6d['plugins']['has']('LineHeight'))return;const _0x1da034=_0x3e1d6d['plugins']['get']('TrackChangesEditing'),_0x52efaf=_0x3e1d6d['locale'];_0x1da034['enableDefaultAttributesIntegration']('lineHeight'),_0x1da034['registerBlockAttribute']('lineHeight'),_0x1da034['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x52efaf,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3f9a7e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x553a10,_0x3c797d,_0x182521,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht,ft,gt,lt,dt,pt,kt,St,mt,Y,Lt,Z,wt,bt,yt,jt,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Pt,Ot,xt,Rt,Gt,Et,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe9acfb){super(_0xe9acfb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x18dcbe,_0x483b3c,_0x50abde,_0x2f3b3a)=>{this['_model']['change'](()=>{for(const _0x4b7ebb of[..._0x2f3b3a,..._0x50abde])this['_model']['markers']['has'](_0x4b7ebb)&&_0xe9acfb['editing']['reconvertMarker'](_0x4b7ebb);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xe9acfb['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(),_0xe9acfb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xe9acfb['config']['get']('trackChanges.trackFormatChanges'),_0xe9acfb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xe9acfb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xe9acfb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2c8d41=this['editor'],_0x2706d3=(_0x5b3f4c,_0x37fdd5)=>{if('attribute'!=_0x5b3f4c)return'ck-suggestion-marker-'+_0x5b3f4c;const _0xa6c986=_0x37fdd5['split']('|')[0x0];return this['_isBlockAttribute'](_0xa6c986)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2c8d41['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5c0ecd=>{const {id:_0x117260,authorId:_0x40ee43,type:_0x4db64d,subType:_0x3a8ae1}=this['_splitMarkerName'](_0x5c0ecd['markerName']),_0x36632e=['ck-suggestion-marker',_0x2706d3(_0x4db64d,_0x3a8ae1)];let _0x1f4f74=0xbb8;return this['activeMarkers']['includes'](_0x5c0ecd['markerName'])&&(_0x36632e['push']('ck-suggestion-marker--active'),_0x1f4f74=0xbc2),'deletion'==_0x4db64d&&(_0x1f4f74+=0x5),{'classes':_0x36632e,'attributes':{'data-suggestion':_0x117260,'data-author-id':_0x40ee43},'priority':_0x1f4f74};}}),_0x2c8d41['conversion']['for']('dataDowncast')['add'](_0x235a58=>{_0x235a58['on']('addMarker:suggestion',(_0x3105e1,_0x5b809d,_0x551553)=>{if(!_0x551553['options']['showSuggestionHighlights'])return;const _0x1eca4e=_0x5b809d['item'];if(!_0x1eca4e)return;const _0x3b07fb=_0x551553['mapper']['toViewElement'](_0x1eca4e);_0x2c8d41['model']['schema']['isObject'](_0x1eca4e)&&_0x3b07fb&&!_0x3b07fb['getCustomProperty']('widget')&&_0x3b07fb['is']('containerElement')&&_0x560d6d(_0x3b07fb,_0x551553['writer']);},{'priority':'high'});}),_0x2c8d41['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2b5aa3,_0x100c71)=>{if(!_0x100c71['options']['showSuggestionHighlights'])return null;const {id:_0x3af106,authorId:_0x37e0db,type:_0x1c4308,subType:_0x5ba844}=this['_splitMarkerName'](_0x2b5aa3['markerName']);return{'classes':['ck-suggestion-marker',_0x2706d3(_0x1c4308,_0x5ba844)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3af106,'data-author-id':_0x37e0db}};}});const _0x535adf=({showActiveMarkers:_0xf71c4a=!0x0,isAttributeSuggestion:_0x44ff3a=!0x1}={})=>(_0x20063b,_0x3d764c,_0xcf6325)=>{if(!_0x3d764c['item'])return;const {id:_0x3cdd26,authorId:_0x9da76a,subType:_0x374f39}=this['_splitMarkerName'](_0x3d764c['markerName']);if(_0x44ff3a){const _0x58e56e=re(_0x374f39);if(!this['_isBlockAttribute'](_0x58e56e))return;}if(_0x3d764c['item']['is']('selection'))return void _0xcf6325['consumable']['consume'](_0x3d764c['item'],_0x20063b['name']);const _0x236bce=_0xcf6325['mapper']['toViewElement'](_0x3d764c['item']);if(_0x3d764c['item']['is']('element')&&_0x2c8d41['model']['schema']['isBlock'](_0x3d764c['item'])&&!_0x236bce['getCustomProperty']('addHighlight')){_0xcf6325['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x236bce),_0xcf6325['writer']['setAttribute']('data-suggestion',_0x3cdd26,_0x236bce),_0xcf6325['writer']['setAttribute']('data-author-id',_0x9da76a,_0x236bce),_0xcf6325['mapper']['bindElementToMarker'](_0x236bce,_0x3d764c['markerName']),_0xf71c4a&&(this['activeMarkers']['includes'](_0x3d764c['markerName'])?_0xcf6325['writer']['addClass']('ck-suggestion-marker--active',_0x236bce):_0xcf6325['writer']['removeClass']('ck-suggestion-marker--active',_0x236bce));for(const _0x4d3436 of _0x2c8d41['model']['createRangeIn'](_0x3d764c['item'])['getItems']())_0xcf6325['consumable']['consume'](_0x4d3436,_0x20063b['name']);_0xcf6325['consumable']['consume'](_0x3d764c['item'],_0x20063b['name']);}};_0x2c8d41['conversion']['for']('dataDowncast')['add'](_0x4f296e=>{_0x4f296e['on']('addMarker:suggestion:formatBlock',(_0x1db4aa,_0x5a2b3b,_0x354947)=>{_0x354947['options']['showSuggestionHighlights']&&_0x535adf({'showActiveMarkers':!0x1})(_0x1db4aa,_0x5a2b3b,_0x354947);},{'priority':'highest'});}),_0x2c8d41['conversion']['for']('dataDowncast')['add'](_0x543f56=>{_0x543f56['on']('addMarker:suggestion:attribute',(_0x388cc9,_0x3a0af9,_0x217324)=>{_0x217324['options']['showSuggestionHighlights']&&_0x535adf({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x388cc9,_0x3a0af9,_0x217324);},{'priority':'highest'});}),_0x2c8d41['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4f34f4,_0x458daf)=>{if(_0x458daf['options']['showSuggestionHighlights']){const {id:_0x19fbc8,authorId:_0x2cb7f7}=this['_splitMarkerName'](_0x4f34f4);return _0x4f34f4['includes'](':split')||_0x4f34f4['includes'](':merge')?{'group':'suggestion','name':_0x4f34f4['substr'](0xb),'attributes':{'data-suggestion':_0x19fbc8,'data-author-id':_0x2cb7f7}}:null;}return{'group':'suggestion','name':_0x4f34f4['substr'](0xb)};}}),_0x2c8d41['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xbe2715,{writer:_0x421176})=>{let _0x4a9b14='suggestion:'+_0xbe2715['getAttribute']('suggestion-type')+':'+_0xbe2715['getAttribute']('id');return _0xbe2715['getAttribute']('marker-count')&&(_0x4a9b14+=':'+_0xbe2715['getAttribute']('marker-count')),_0x421176['createElement']('$marker',{'data-name':_0x4a9b14});}}),_0x2c8d41['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2c8d41['conversion']['for']('editingDowncast')['add'](_0x401b20=>{_0x401b20['on']('addMarker:suggestion:formatBlock',_0x535adf(),{'priority':'high'});}),_0x2c8d41['conversion']['for']('editingDowncast')['add'](_0x414869=>{_0x414869['on']('addMarker:suggestion:attribute',_0x535adf({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2c8d41['conversion']['for']('editingDowncast')['add'](_0x52bcd4=>{_0x52bcd4['on']('removeMarker:suggestion:formatBlock',(_0xc95db1,_0x21989b,_0x288e97)=>{const _0x34e9ae=_0x288e97['mapper']['markerNameToElements'](_0x21989b['markerName']);if(_0x34e9ae){for(const _0x290522 of _0x34e9ae)_0x290522['getCustomProperty']('addHighlight')||(_0x288e97['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x290522),_0x288e97['writer']['removeAttribute']('data-suggestion',_0x290522),_0x288e97['writer']['removeAttribute']('data-author-id',_0x290522),_0x288e97['mapper']['unbindElementFromMarkerName'](_0x290522,_0x21989b['markerName']));}},{'priority':'high'});}),_0x2c8d41['conversion']['for']('editingDowncast')['add'](_0x31d101=>{_0x31d101['on']('removeMarker:suggestion:attribute',(_0x16558b,_0x23438e,_0x3a7ced)=>{const _0x2aa669=_0x3a7ced['mapper']['markerNameToElements'](_0x23438e['markerName']);if(!_0x2aa669)return;const {subType:_0xa44f8c}=this['_splitMarkerName'](_0x23438e['markerName']),_0x25b0c5=re(_0xa44f8c);if(this['_isBlockAttribute'](_0x25b0c5)){for(const _0x37fc64 of _0x2aa669)_0x37fc64['getCustomProperty']('addHighlight')||(_0x3a7ced['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x37fc64),_0x3a7ced['writer']['removeAttribute']('data-suggestion',_0x37fc64),_0x3a7ced['writer']['removeAttribute']('data-author-id',_0x37fc64),_0x3a7ced['mapper']['unbindElementFromMarkerName'](_0x37fc64,_0x23438e['markerName']));}},{'priority':'high'});}),_0x2c8d41['model']['document']['registerPostFixer'](_0x594295=>{let _0x3cfe9b=!0x1;const _0x4bfb7c=Array['from'](_0x2c8d41['model']['document']['differ']['getChangedMarkers']()),_0x1ebfd9=new Set();for(const {name:_0x2f9a75,data:_0x7b7994}of _0x4bfb7c){const {group:_0x59e694,type:_0x1895c0,subType:_0x59c903,id:_0x570e2f}=this['_splitMarkerName'](_0x2f9a75);if('suggestion'!==_0x59e694)continue;const _0x245acb=_0x59c903?'suggestion:'+_0x1895c0+':'+_0x59c903+':'+_0x570e2f:'suggestion:'+_0x1895c0+':'+_0x570e2f,_0x1fb401=_0x2c8d41['model']['markers']['getMarkersGroup'](_0x245acb),_0x4079d8=_0x2c8d41['model']['markers']['get'](_0x2f9a75),_0x39860f=this['_suggestions']['get'](_0x570e2f);if(null!=_0x7b7994['newRange']){'formatInline'==_0x1895c0&&(_0x3cfe9b=_0x3cfe9b||Wt(_0x7b7994['newRange'],_0x2f9a75,_0x594295,_0x2c8d41['model']['schema']));const _0x243b83='attribute'==_0x1895c0&&this['_isBlockAttribute'](_0x59c903['split']('|')[0x0]),_0x31c30d='attribute'==_0x1895c0&&this['_isInlineAttribute'](_0x59c903['split']('|')[0x0]);if(_0x7b7994['newRange']['isCollapsed']||'$graveyard'==_0x7b7994['newRange']['root']['rootName']||'formatBlock'==_0x1895c0&&!Qt(_0x7b7994['newRange'])||_0x243b83&&!Qt(_0x7b7994['newRange'])||_0x31c30d&&Xt(_0x7b7994['newRange'])||'deletion'==_0x1895c0&&Xt(_0x7b7994['newRange'])||_0x4079d8&&Yt(_0x4079d8,_0x1fb401))_0x594295['removeMarker'](_0x2f9a75),_0x3cfe9b=!0x0;else{if(!_0x39860f||!_0x39860f['isInContent'])continue;if(_0x7b7994['newRange']&&_0x7b7994['oldRange']&&_0x7b7994['newRange']['isEqual'](_0x7b7994['oldRange']))continue;_0x1ebfd9['add'](_0x39860f);}}}return _0x1ebfd9['size']>0x0&&(_0x3cfe9b=!!this['_joinWithAdjacentSuggestions'](_0x1ebfd9)||_0x3cfe9b),_0x3cfe9b;}),_0x2c8d41['model']['document']['registerPostFixer'](_0x452c98=>{let _0x530dae=!0x1;for(const _0x15aff0 of _0x2c8d41['model']['document']['differ']['getChanges']())if('insert'==_0x15aff0['type'])for(const _0x2dfe29 of this['_suggestions']['values']()){if(_0x2dfe29['isMultiRange']||!_0x2dfe29['isInContent'])continue;const _0x3f9b98='formatBlock'==_0x2dfe29['type'],_0x1f89c7=this['_getAttributeKey'](_0x2dfe29),_0x42a7a7=_0x1f89c7&&this['_isBlockAttribute'](_0x1f89c7);if(!_0x3f9b98&&!_0x42a7a7)continue;const _0x5acd5c=_0x2dfe29['getFirstRange']();if(_0x5acd5c['start']['parent']!=_0x5acd5c['end']['parent']&&!_0x5acd5c['end']['isAtEnd']){const _0x657624=_0x2c8d41['model']['createPositionAt'](_0x5acd5c['start']['nodeAfter'],'end'),_0x4f0c90=_0x2c8d41['model']['createRange'](_0x5acd5c['start'],_0x657624);_0x452c98['updateMarker'](_0x2dfe29['getFirstMarker'](),{'range':_0x4f0c90}),_0x530dae=!0x0;}}return _0x530dae;}),_0x2c8d41['model']['document']['registerPostFixer'](_0x402231=>this['_processAttributeChanges'](_0x402231)),_0x2c8d41['model']['document']['registerPostFixer'](_0xcbacfb=>!_0xcbacfb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xcbacfb)),_0x2c8d41['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2c8d41['model']['document']['on']('change:data',(_0x572028,_0x15096a)=>{if(!_0x15096a['isLocal']||_0x15096a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xfb873b=_0x2c8d41['model']['document']['differ']['getChanges']();if(0x0==_0xfb873b['length'])return;const _0x512d55=[],_0x32eec6=_0xfb873b['filter'](_0x284e27=>'attribute'==_0x284e27['type']),_0x26a7c2=_0xfb873b['filter'](_0x55c878=>'insert'==_0x55c878['type']&&'$text'!=_0x55c878['name']);for(const _0x3fb09a of _0x32eec6)this['_isRegisteredAttribute'](_0x3fb09a['attributeKey'])&&_0x512d55['push']({'key':_0x3fb09a['attributeKey'],'newValue':_0x3fb09a['attributeNewValue'],'oldValue':_0x3fb09a['attributeOldValue'],'range':te(_0x3fb09a['range'],_0x2c8d41['model'])});for(const _0x2ce4bb of _0x26a7c2){if('rename'!=_0x2ce4bb['action']&&'refresh'!=_0x2ce4bb['action'])continue;const _0x36b19e=ee(_0x2ce4bb['position']['nodeAfter'],_0x2c8d41['model']),_0x1ac5e4=_0x2ce4bb['before'];'rename'==_0x2ce4bb['action']&&_0x512d55['push']({'key':m,'newValue':_0x2ce4bb['name'],'oldValue':_0x1ac5e4['name'],'range':_0x36b19e});for(const [_0x5a83a5,_0x46ae7c]of _0x1ac5e4['attributes']){if(!this['_isRegisteredAttribute'](_0x5a83a5))continue;const _0x4d119c=_0x2ce4bb['attributes']['get'](_0x5a83a5);_0x46ae7c!==_0x4d119c&&_0x512d55['push']({'key':_0x5a83a5,'newValue':_0x4d119c,'oldValue':_0x46ae7c,'range':_0x36b19e});}for(const [_0x2fae70,_0x55e31d]of _0x2ce4bb['attributes'])this['_isRegisteredAttribute'](_0x2fae70)&&(_0x1ac5e4['attributes']['has'](_0x2fae70)||_0x512d55['push']({'key':_0x2fae70,'newValue':_0x55e31d,'oldValue':null,'range':_0x36b19e}));}0x0!=_0x512d55['length']&&_0x2c8d41['model']['enqueueChange'](_0x15096a,_0x3f63ff=>{const _0x2ca1c1=_0x172a90();for(const {range:_0x328185,key:_0x41d40a,oldValue:_0x4cd4c7,newValue:_0x5bc12f}of _0x512d55)this['markAttributeChange'](_0x328185,_0x41d40a,_0x4cd4c7,_0x5bc12f,{'groupId':_0x2ca1c1});this['_reduceExistingSuggestions'](_0x3f63ff,_0x512d55);});},{'priority':'lowest'}),_0x2c8d41['model']['markers']['on']('update:suggestion',(_0x2a17de,_0x273644,_0x273a57)=>{if(null==_0x273a57){const {id:_0x42479d}=this['_splitMarkerName'](_0x273644['name']),_0x132509=this['_suggestions']['get'](_0x42479d);_0x132509&&_0x132509['addMarkerName'](_0x273644['name']);}}),_0x2c8d41['model']['document']['on']('change:data',()=>{const _0x2bae62=Array['from'](_0x2c8d41['model']['document']['differ']['getChangedMarkers']())['filter'](_0x22bda4=>'suggestion'===this['_splitMarkerName'](_0x22bda4['name'])['group']);if(0x0===_0x2bae62['length'])return;_0x2bae62['sort']((_0x439008,_0x341fd4)=>{const _0x46e89f=_0x439008['data']['oldRange'],_0x358d2d=_0x341fd4['data']['oldRange'];return null===_0x46e89f&&null===_0x358d2d?0x0:null===_0x46e89f&&null!==_0x358d2d?-0x1:null!==_0x46e89f&&null===_0x358d2d?0x1:_0x46e89f['start']['isBefore'](_0x358d2d['start'])?-0x1:0x1;});const _0x2f1744=new Set(),_0x508517=new Set();for(const {name:_0x4b7cec,data:_0xb18381}of _0x2bae62){const {id:_0x40b257}=this['_splitMarkerName'](_0x4b7cec);if(null===_0xb18381['oldRange']){const _0x586634=this['_handleNewSuggestionMarker'](_0x4b7cec);_0x508517['add'](_0x586634);}else{const _0x55194e=this['_suggestions']['get'](_0x40b257);null!==_0xb18381['newRange']||_0x55194e['isInContent']?(_0x2f1744['add'](_0x55194e['head']),_0x508517['add'](_0x55194e)):this['_removeSuggestion'](_0x55194e);}}_0x508517['size']>0x0&&this['_refreshSuggestionsChain'](_0x508517);for(const _0x4f3b14 of _0x2f1744)this['fire']('suggestionChanged',_0x4f3b14);}),_0x2c8d41['model']['on']('applyOperation',(_0x416c5e,_0x396dc8)=>{const _0x233f70=_0x396dc8[0x0];if(!this['_suggestions']['size'])return;if(!_0x233f70['isDocumentOperation'])return;if(_0x233f70['batch']['isUndo']||!_0x233f70['batch']['isLocal'])return;let _0x5cdb43,_0x3f6536;switch(_0x233f70['type']){case'insert':_0x5cdb43=_0x2c8d41['model']['createPositionAt'](_0x233f70['position']),_0x3f6536=_0x5cdb43['getShiftedBy'](_0x233f70['howMany']);break;case'split':_0x5cdb43=_0x2c8d41['model']['createPositionAt'](_0x233f70['splitPosition']),_0x3f6536=_0x2c8d41['model']['createPositionAt'](_0x233f70['moveTargetPosition']);break;case'move':_0x5cdb43=_0x2c8d41['model']['createPositionAt'](_0x233f70['targetPosition']),_0x3f6536=_0x5cdb43['getShiftedBy'](_0x233f70['howMany']);break;default:return;}const _0x2b05de=_0x2c8d41['model']['createRange'](_0x5cdb43,_0x3f6536);_0x2c8d41['model']['change'](()=>{for(const {suggestion:_0x56a5fb,meta:_0x39812c}of this['_findSuggestions'](_0x2b05de)){if(_0x56a5fb['isMultiRange'])continue;if('formatInline'==_0x56a5fb['type'])continue;const _0x37bde4=this['_getAttributeKey'](_0x56a5fb);if(_0x37bde4&&this['_isBlockAttribute'](_0x37bde4)&&'split'!=_0x233f70['type'])continue;const _0x327467=_0x56a5fb['data']&&_0x56a5fb['data']['multipleBlocks'];('formatBlock'!=_0x56a5fb['type']||'split'==_0x233f70['type']&&!_0x327467)&&(_0x39812c['containsRangeInObject']||'insertion'==_0x56a5fb['type']&&_0x39812c['isOwn']||_0x56a5fb['getFirstRange']()['containsRange'](_0x2b05de)&&this['_breakSuggestionMarker'](_0x56a5fb,_0x5cdb43,_0x3f6536));}});},{'priority':'lowest'}),_0x2c8d41['model']['on']('deleteContent',(_0x2fb51c,_0x271fb5)=>{const _0xd35dd=_0x271fb5[0x0],_0x4b31b1=_0x271fb5[0x1];if(_0x4b31b1&&_0x4b31b1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd35dd['isCollapsed'])return;const _0x410810=_0x2c8d41['model']['schema'],{start:_0x5efef7,end:_0xbeee35}=_0xd35dd['getFirstRange'](),_0x187420=_0x5efef7['nodeAfter']&&_0x410810['isLimit'](_0x5efef7['nodeAfter'])?null:_0x410810['getNearestSelectionRange'](_0x5efef7,'forward'),_0x412411=_0xbeee35['nodeBefore']&&_0x410810['isLimit'](_0xbeee35['nodeBefore'])?null:_0x410810['getNearestSelectionRange'](_0xbeee35,'backward'),_0x52ceec=_0x2c8d41['model']['createRange'](_0x187420?_0x187420['start']:_0x5efef7,_0x412411?_0x412411['end']:_0xbeee35);_0x2c8d41['model']['change'](_0x349ebd=>{this['markDeletion'](_0x52ceec);const _0x24d5a3=_0x2c8d41['model']['schema']['getNearestSelectionRange'](_0x52ceec['start']);_0xd35dd['is']('documentSelection')?_0x349ebd['setSelection'](_0x24d5a3):_0xd35dd['setTo'](_0x24d5a3);}),_0x2fb51c['stop']();},{'priority':_0x3b0c6e['normal']+0xa}),_0x2c8d41['model']['on']('insertContent',(_0x1f3103,_0x269eb9)=>{const _0x2c0f9b=_0x269eb9[_0x269eb9['length']-0x1];_0x2c0f9b&&_0x2c0f9b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2c8d41['model']['change'](()=>{let _0x1a46e4=_0x2c8d41['model']['insertContent'](_0x269eb9[0x0],_0x269eb9[0x1],_0x269eb9[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a46e4)return;_0x1f3103['return']=_0x1a46e4['clone']();const _0x23b6b8=_0x1a46e4['end']['nodeBefore'],_0x442856=_0x2c8d41['model']['schema'];_0x23b6b8&&_0x442856['isBlock'](_0x23b6b8)&&!_0x442856['isObject'](_0x23b6b8)&&(_0x1a46e4=_0x2c8d41['model']['createRange'](_0x1a46e4['start'],_0x2c8d41['model']['createPositionAt'](_0x23b6b8,'end'))),this['markInsertion'](_0x1a46e4);}),_0x1f3103['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xbe6a0b=new T(_0x2c8d41,this['_suggestions']);_0x2c8d41['commands']['add']('acceptSuggestion',_0xbe6a0b),this['enableCommand']('acceptSuggestion');const _0x1ce7b9=new O(_0x2c8d41,this['_suggestions']);_0x2c8d41['commands']['add']('discardSuggestion',_0x1ce7b9),this['enableCommand']('discardSuggestion'),_0x2c8d41['commands']['add']('acceptAllSuggestions',new x(_0x2c8d41,_0xbe6a0b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2c8d41['commands']['add']('discardAllSuggestions',new x(_0x2c8d41,_0x1ce7b9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2c8d41['commands']['add']('acceptSelectedSuggestions',new E(_0x2c8d41,_0xbe6a0b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2c8d41['commands']['add']('discardSelectedSuggestions',new E(_0x2c8d41,_0x1ce7b9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xbf56ca=_0x2c8d41['plugins']['get']('CommentsRepository');this['listenTo'](_0xbf56ca,'addComment',(_0x28236f,{threadId:_0x289536})=>{const _0x409553=this['_suggestions']['get'](_0x289536);_0x409553&&_0x409553['commentThread']&&0x1===_0x409553['commentThread']['length']&&this['_updateSuggestionData'](_0x289536,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xbf56ca,'removeComment',(_0x3de2d6,{threadId:_0x13e41c})=>{const _0x35cd7d=this['_suggestions']['get'](_0x13e41c);_0x35cd7d&&_0x35cd7d['commentThread']&&!_0x35cd7d['commentThread']['length']&&this['_updateSuggestionData'](_0x13e41c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3b58dd){const _0x4d83ab=_0x1bae5e([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]),_0x2b85fe=0x6b0f5e6f,_0x4fa4ea=0x6b082847^_0x2b85fe,_0x47597d=window[_0x1bae5e([0x44,0x61,0x74,0x65])][_0x1bae5e([0x6e,0x6f,0x77])](),_0x582165=_0x3b58dd[_0x1bae5e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x382caa=new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac6c7=>{_0x582165[_0x1bae5e([0x6f,0x6e,0x63,0x65])](_0x1bae5e([0x72,0x65,0x61,0x64,0x79]),_0x5ac6c7);}),_0x432e0c={[_0x1bae5e([0x6b,0x74,0x79])]:_0x1bae5e([0x45,0x43]),[_0x1bae5e([0x75,0x73,0x65])]:_0x1bae5e([0x73,0x69,0x67]),[_0x1bae5e([0x63,0x72,0x76])]:_0x1bae5e([0x50,0x2d,0x32,0x35,0x36]),[_0x1bae5e([0x78])]:_0x1bae5e([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]),[_0x1bae5e([0x79])]:_0x1bae5e([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]),[_0x1bae5e([0x61,0x6c,0x67])]:_0x1bae5e([0x45,0x53,0x32,0x35,0x36])},_0x43fa47=_0x582165[_0x1bae5e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1bae5e([0x67,0x65,0x74])](_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2d65c8(){let _0x35bbb7,_0x49976c=null,_0x56b4fe=null;try{if(_0x43fa47==_0x1bae5e([0x47,0x50,0x4c]))return _0x1bae5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35bbb7=_0x1b1b9f(),!_0x35bbb7)return _0x1bae5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35bbb7[_0x1bae5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56b4fe=_0x570d6c(_0x35bbb7[_0x1bae5e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35bbb7[_0x1bae5e([0x6a,0x74,0x69])])),await _0x34e4a7()?_0x13765c()?_0x55ee51()?_0x1bae5e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33949d()?(_0x35bbb7[_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bae5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49976c=_0x59f551(_0x1bae5e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35bbb7[_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bae5e([0x74,0x72,0x69,0x61,0x6c])&&(_0x49976c=_0x59f551(_0x1bae5e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56f5b9()):_0x1bae5e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1bae5e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1bae5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1bae5e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55ee51(){const _0x23ecef=[_0x1bae5e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1bae5e([0x74,0x72,0x69,0x61,0x6c])][_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35bbb7[_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47597d/0x3e8:0xe10*_0x4fa4ea;return _0x35bbb7[_0x1bae5e([0x65,0x78,0x70])]<_0x23ecef;}function _0x13765c(){const _0x176c96=_0x35bbb7[_0x1bae5e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x176c96)return!0x1;if(_0x176c96[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bae5e([0x2a])))return!0x0;if(_0x176c96[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bae5e([0x54,0x43])))return!0x0;if(_0x176c96[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bae5e([0x52,0x54,0x43]))){if(_0x52d49e())return!0x0;if(_0x1ecf1b()||_0x51879f())return!0x0;}return!0x1;}function _0x33949d(){const _0x6ec8cc=_0x35bbb7[_0x1bae5e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6ec8cc||0x0==_0x6ec8cc[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10224c}=new URL(window[_0x1bae5e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6ec8cc[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10224c))return!0x0;const _0x266773=_0x10224c[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])](_0x1bae5e([0x2e]));return _0x6ec8cc[_0x1bae5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b4b5b=>_0x5b4b5b[_0x1bae5e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bae5e([0x2a])))[_0x1bae5e([0x6d,0x61,0x70])](_0x30ad3c=>_0x30ad3c[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])](_0x1bae5e([0x2e])))[_0x1bae5e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x199388=>_0x199388[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x266773[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bae5e([0x6d,0x61,0x70])](_0x5705f7=>Array(_0x266773[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5705f7[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bae5e([0x66,0x69,0x6c,0x6c])](_0x5705f7[0x0]===_0x1bae5e([0x2a])?_0x1bae5e([0x2a]):'')[_0x1bae5e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5705f7))[_0x1bae5e([0x73,0x6f,0x6d,0x65])](_0x3351d1=>_0x266773[_0x1bae5e([0x65,0x76,0x65,0x72,0x79])]((_0x15664e,_0x57ae9f)=>_0x3351d1[_0x57ae9f]===_0x15664e||_0x3351d1[_0x57ae9f]===_0x1bae5e([0x2a])));}function _0x56f5b9(){return _0x49976c&&_0x56b4fe?new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x153eb0,_0x419096)=>{_0x49976c[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x153eb0,_0x419096),_0x56b4fe[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x9661f7=>{_0x9661f7!=_0x1bae5e([0x56,0x61,0x6c,0x69,0x64])&&_0x153eb0(_0x9661f7);},_0x419096);}):_0x49976c||_0x56b4fe||_0x1bae5e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x570d6c(_0x48af4f,_0xe7a97c){return new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x300bcd=>{if(_0x509bc0())return _0x300bcd(_0x1bae5e([0x56,0x61,0x6c,0x69,0x64]));_0x3ce71e(),_0x582165[_0x1bae5e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1bae5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x223904=!0x1;const _0x4f661c=_0x172a90();function _0x2a7984(_0x5c664f){return!!_0x5c664f&&(typeof _0x5c664f===_0x1bae5e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c664f===_0x1bae5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c664f[_0x1bae5e([0x74,0x68,0x65,0x6e])]===_0x1bae5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c664f[_0x1bae5e([0x63,0x61,0x74,0x63,0x68])]===_0x1bae5e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51a450(_0x55308e){_0x49a65c(_0x55308e)[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x589da9=>{if(!_0x589da9||_0x589da9[_0x1bae5e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1bae5e([0x6f,0x6b]))return _0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x572a5d(_0x585261(_0x4f661c+_0xe7a97c))!=_0x589da9[_0x1bae5e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1bae5e([0x56,0x61,0x6c,0x69,0x64]);})[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x47ca56=>(_0x274954(),_0x47ca56),()=>{const _0x7b45c6=_0x135b18();return null==_0x7b45c6?(_0x274954(),_0x1bae5e([0x56,0x61,0x6c,0x69,0x64])):_0x1bae5e(_0x47597d-_0x7b45c6>(0x4f03da6f^_0x2b85fe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x300bcd)[_0x1bae5e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x300bcd(_0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x587e10=0x6b39b0ef^_0x2b85fe;function _0x274954(){const _0xf32dcf=_0x1bae5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x572a5d(_0x585261(_0x48af4f)),_0x1c6358=_0x571bdb(_0x572a5d(window[_0x1bae5e([0x4d,0x61,0x74,0x68])][_0x1bae5e([0x63,0x65,0x69,0x6c])](_0x47597d/_0x587e10)));window[_0x1bae5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bae5e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf32dcf,_0x1c6358);}function _0x135b18(){const _0x3f139a=_0x1bae5e([0x6c,0x6c,0x63,0x74,0x2d])+_0x572a5d(_0x585261(_0x48af4f)),_0x5682aa=window[_0x1bae5e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bae5e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f139a);return _0x5682aa?window[_0x1bae5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x571bdb(_0x5682aa),0x10)*_0x587e10:null;}function _0x49a65c(_0x1b5460){return new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25dfe1,_0xd782e1)=>{_0x1b5460[_0x1bae5e([0x74,0x68,0x65,0x6e])](_0x25dfe1,_0xd782e1),window[_0x1bae5e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd782e1,0x6b0e8aaf^_0x2b85fe);});}}_0x582165[_0x1bae5e([0x6f,0x6e])](_0x1bae5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x169729,_0x139df7)=>{if(_0x139df7[0x0]!=_0x48af4f)return _0x300bcd(_0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x139df7[0x1]={..._0x139df7[0x1],[_0x1bae5e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f661c};},{[_0x1bae5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bae5e([0x68,0x69,0x67,0x68])}),_0x582165[_0x1bae5e([0x6f,0x6e])](_0x1bae5e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf8c661=>{_0x2a7984(_0xf8c661[_0x1bae5e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x223904=!0x0,_0x51a450(_0xf8c661[_0x1bae5e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1bae5e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bae5e([0x6c,0x6f,0x77])}),_0x382caa[_0x1bae5e([0x74,0x68,0x65,0x6e])](()=>{_0x223904||_0x300bcd(_0x1bae5e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x509bc0(){return _0x582165[_0x1bae5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bae5e([0x76,0x69,0x65,0x77])][_0x1bae5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1bae5e([0x61,0x75,0x74,0x6f]);}function _0x3ce71e(){_0x582165[_0x1bae5e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bae5e([0x76,0x69,0x65,0x77])][_0x1bae5e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bae5e([0x61,0x75,0x74,0x6f]);}}function _0x59f551(_0x2d0cfc){const _0x211d47=[new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc9251=>setTimeout(_0xc9251,0x6b0660a3^_0x2b85fe)),_0x382caa[_0x1bae5e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51cdf1=>{let _0x13e922=0x0;_0x582165[_0x1bae5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bae5e([0x6f,0x6e])](_0x1bae5e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x44c267,_0x2b9c34)=>{_0x2b9c34[0x0][_0x1bae5e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13e922++,_0x13e922==(0x6b0f5f97^_0x2b85fe)&&(_0x51cdf1(),_0x44c267[_0x1bae5e([0x6f,0x66,0x66])]());});}))];return window[_0x1bae5e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bae5e([0x72,0x61,0x63,0x65])](_0x211d47)[_0x1bae5e([0x74,0x68,0x65,0x6e])](()=>_0x2d0cfc);}async function _0x26d762(){await _0x382caa,_0x582165[_0x1bae5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bae5e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34b9ac,_0x582165[_0x1bae5e([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bae5e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34b9ac,_0x582165[_0x1bae5e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1bae5e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52d49e(){return _0x221243(_0x1bae5e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c0b4f(_0x1bae5e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1bae5e([0x73,0x74,0x61,0x74,0x65])]==_0x1bae5e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ecf1b(){return _0x221243(_0x1bae5e([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 _0x51879f(){return _0x221243(_0x1bae5e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x205e54(_0x2f915f){const _0x16e931=_0x2dead1();_0x582165[_0x16e931]=_0x1bae5e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f915f,_0x2f915f!=_0x1bae5e([0x56,0x61,0x6c,0x69,0x64])&&_0x26d762();}function _0x2dead1(){const _0x500d56=window[_0x1bae5e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1bae5e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1bae5e([0x6e,0x6f,0x77])]())[_0x1bae5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1bae5e([0x2e]),'');let _0x3b1d10=_0x1bae5e([0x67]);for(let _0x33c753=0x0;_0x33c753<_0x500d56[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33c753+=0x2){let _0x366a04=window[_0x1bae5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x500d56[_0x1bae5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33c753,_0x33c753+0x2));_0x366a04>=_0x4d83ab[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x366a04-=_0x4d83ab[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b1d10+=_0x4d83ab[_0x366a04];}return _0x3b1d10;}function _0x1b1b9f(){const _0x5b9fa5=_0x43fa47[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])](_0x1bae5e([0x2e]));if(0x3!=_0x5b9fa5[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a6c13(_0x5b9fa5[0x1]);function _0x4a6c13(_0x5b2663){const _0x250ae8=_0x1e52d5(_0x5b2663);return _0x250ae8&&_0x5e6040()?_0x250ae8:null;function _0x5e6040(){const _0x50ae11=_0x250ae8[_0x1bae5e([0x6a,0x74,0x69])],_0x5996db=window[_0x1bae5e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50ae11[_0x1bae5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50ae11[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x506093={..._0x250ae8,[_0x1bae5e([0x6a,0x74,0x69])]:_0x50ae11[_0x1bae5e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50ae11[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x506093[_0x1bae5e([0x76,0x63])],_0x585261(_0x506093)==_0x5996db;}}}async function _0x34e4a7(){let _0x1f0cc4=!0x0;try{const _0x522c37=_0x43fa47[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])](_0x1bae5e([0x2e])),[_0x50fed4,_0x2920ba,_0x56895a]=_0x522c37;return _0x45aaa2(_0x50fed4),await _0x2813aa(_0x50fed4,_0x2920ba,_0x56895a),_0x1f0cc4;}catch{return!0x1;}function _0x45aaa2(_0x1b4472){const _0x277ced=_0x1e52d5(_0x1b4472);_0x277ced&&_0x277ced[_0x1bae5e([0x61,0x6c,0x67])]==_0x1bae5e([0x45,0x53,0x32,0x35,0x36])||(_0x1f0cc4=!0x1);}async function _0x2813aa(_0x188c37,_0x123fc2,_0x4e6781){const _0x5d4091=window[_0x1bae5e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1bae5e([0x66,0x72,0x6f,0x6d])](_0x48c55d(_0x4e6781),_0x1f7d32=>_0x1f7d32[_0x1bae5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4651e6=new window[(_0x1bae5e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1bae5e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x188c37+_0x1bae5e([0x2e])+_0x123fc2),_0x7fbc0c=window[_0x1bae5e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1bae5e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7fbc0c)return;const _0x53f87c=await _0x7fbc0c[_0x1bae5e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1bae5e([0x6a,0x77,0x6b]),_0x432e0c,{[_0x1bae5e([0x6e,0x61,0x6d,0x65])]:_0x1bae5e([0x45,0x43,0x44,0x53,0x41]),[_0x1bae5e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1bae5e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1bae5e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7fbc0c[_0x1bae5e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1bae5e([0x6e,0x61,0x6d,0x65])]:_0x1bae5e([0x45,0x43,0x44,0x53,0x41]),[_0x1bae5e([0x68,0x61,0x73,0x68])]:{[_0x1bae5e([0x6e,0x61,0x6d,0x65])]:_0x1bae5e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53f87c,_0x5d4091,_0x4651e6)||(_0x1f0cc4=!0x1);}}function _0x1e52d5(_0x29cfaa){return _0x29cfaa[_0x1bae5e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1bae5e([0x65,0x79]))?JSON[_0x1bae5e([0x70,0x61,0x72,0x73,0x65])](_0x48c55d(_0x29cfaa)):null;}function _0x48c55d(_0x272fbc){return window[_0x1bae5e([0x61,0x74,0x6f,0x62])](_0x272fbc[_0x1bae5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1bae5e([0x2b]))[_0x1bae5e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1bae5e([0x2f])));}function _0x585261(_0x20fe05){let _0x5a4d19=0x1505;function _0x2b2b9f(_0x120795){for(let _0x3d57ef=0x0;_0x3d57ef<_0x120795[_0x1bae5e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d57ef++){const _0x987c70=_0x120795[_0x1bae5e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d57ef);_0x5a4d19=(_0x5a4d19<<0x5)+_0x5a4d19+_0x987c70,_0x5a4d19&=_0x5a4d19;}}function _0xcf2496(_0x10e830){Array[_0x1bae5e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10e830)?_0x10e830[_0x1bae5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xcf2496):_0x10e830&&typeof _0x10e830==_0x1bae5e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1bae5e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10e830)[_0x1bae5e([0x73,0x6f,0x72,0x74])]()[_0x1bae5e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x486431,_0x377fdf])=>{_0x2b2b9f(_0x486431),_0xcf2496(_0x377fdf);}):_0x2b2b9f(window[_0x1bae5e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10e830));}return _0xcf2496(_0x20fe05),_0x5a4d19>>>0x0;}function _0x572a5d(_0x297393){return _0x297393[_0x1bae5e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1bae5e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1bae5e([0x30]));}function _0x571bdb(_0x2b4151){return _0x2b4151[_0x1bae5e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1bae5e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1bae5e([0x6a,0x6f,0x69,0x6e])]('');}function _0x221243(_0x35ad73){return _0x582165[_0x1bae5e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1bae5e([0x68,0x61,0x73])](_0x35ad73);}function _0x5c0b4f(_0x4fc366){return _0x582165[_0x1bae5e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1bae5e([0x67,0x65,0x74])](_0x4fc366);}function _0x34b9ac(){}function _0x1bae5e(_0xed644a){return _0xed644a['map'](_0x33f1f3=>String['fromCharCode'](_0x33f1f3))['join']('');}_0x205e54(await _0x2d65c8());}(this);}set['adapter'](_0x98d529){if(this['_adapter'])throw new _0x1ac6d4('track-changes-adapter-already-set',this);this['_adapter']=_0x98d529;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ae15f=!0x1,toJSON:_0x59a0af=!0x1}={}){const _0x573018=[];for(const _0x4b1640 of this['_suggestions']['values']())_0x2ae15f&&!_0x4b1640['isInContent']||_0x573018['push'](_0x4b1640);return _0x59a0af?_0x573018['map'](_0x234eac=>_0x234eac['toJSON']()):_0x573018;}['getSuggestion'](_0x56117a){const _0x5bebc7=this['_suggestions']['get'](_0x56117a);if(!_0x5bebc7)throw new _0x1ac6d4('track-changes-suggestion-not-found',this);return _0x5bebc7;}['hasSuggestion'](_0x51b0d3){return this['_suggestions']['has'](_0x51b0d3);}['addSuggestionData'](_0x4ba69d){const {authorId:_0x3c5a48,id:_0x3e84f1,originalSuggestionId:_0xc06186,attributes:_0x132bd5}=_0x4ba69d,[_0x4680fa,_0x47a9c8]=_0x4ba69d['type']['split'](':'),_0x46dc0d=this['_suggestions']['get'](_0x3e84f1)||this['_createSuggestion'](_0x4680fa,_0x47a9c8,_0x3e84f1,_0x3c5a48,_0x132bd5,_0xc06186);if(this['_addThreadToSuggestion'](_0x46dc0d),this['_checkSuggestionCorrectness'](_0x46dc0d,_0x4680fa,_0x47a9c8||null,_0x3c5a48),_0x46dc0d['createdAt']=_0x4ba69d['createdAt'],_0x46dc0d['_isDataLoaded']=!0x0,_0x132bd5&&_0x132bd5['@external']){const _0x32347f=_0x132bd5['@external'],_0x3cc26c=this['_getExternalAuthor'](_0x32347f['authorName']);_0x46dc0d['authoredAt']=_0x32347f['createdAt'],_0x46dc0d['author']=_0x3cc26c,_0x46dc0d['isExternal']=!0x0;}else _0x46dc0d['authoredAt']=_0x4ba69d['createdAt'];switch(_0x4ba69d['data']&&(_0x46dc0d['data']=_0x4ba69d['data']),_0x4ba69d['attributes']&&(_0x46dc0d['attributes']=_0x4ba69d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x46dc0d['_saved']=!0x0),this['_suggestionState']['get'](_0x46dc0d)){case'notReady':this['_suggestionState']['set'](_0x46dc0d,'dataReady');break;case'markerReady':_0x46dc0d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x46dc0d])),this['_refreshSuggestionsChain'](new Set([_0x46dc0d])),this['_suggestionState']['set'](_0x46dc0d,'ready'),this['fire']('suggestionLoaded',_0x46dc0d)):this['_suggestionState']['set'](_0x46dc0d,'removed');}return _0x46dc0d;}['acceptSuggestion'](_0x5c9b32){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa75761 of _0x5c9b32['getAllAdjacentSuggestions']())_0xa75761['accept']();});});}['discardSuggestion'](_0x512812){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x25d9df of _0x512812['getAllAdjacentSuggestions']())_0x25d9df['discard']();});});}['enableCommand'](_0xf7d0b2,_0x333dee){const _0x2fb4ca=this['editor']['commands']['get'](_0xf7d0b2);if(!_0x2fb4ca)throw new _0x1ac6d4('track-changes-command-not-found',this,{'commandName':_0xf7d0b2});if(this['_enabledCommands']['has'](_0x2fb4ca))throw new _0x1ac6d4('track-changes-enable-command-twice',this,{'commandName':_0xf7d0b2});this['_enabledCommands']['add'](_0x2fb4ca),_0x333dee&&_0x2fb4ca['on']('execute',(_0x2bda2a,_0x5e6d50)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5e6d50['length']>0x0&&_0x5e6d50[_0x5e6d50['length']-0x1]&&_0x5e6d50[_0x5e6d50['length']-0x1]['forceDefaultExecution']?_0x5e6d50['pop']():(_0x2bda2a['return']=_0x333dee((..._0x56b626)=>_0x2fb4ca['execute'](..._0x56b626,{'forceDefaultExecution':!0x0}),..._0x5e6d50),_0x2bda2a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3ed849){let _0x4a1203,_0x5aa9df;const _0x56b846=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4a1203=_0x3ed849();}catch(_0x2a99ce){_0x5aa9df=_0x2a99ce;}return _0x56b846||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5aa9df&&_0x1ac6d4['rethrowUnexpectedError'](_0x5aa9df,this),_0x4a1203;}['markInsertion'](_0x25a282,_0x500a5f=null,_0x228d03={}){if(_0x25a282['isCollapsed'])return null;const _0x5acb3b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x228d03['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x152d06,meta:_0x4ac59d}of this['_findSuggestions'](_0x25a282,'insertion'))if(_0x4ac59d['isOwn']){if(!_0x4ac59d['isNextTo']){if(_0x4ac59d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!se(_0x152d06,_0x228d03))continue;return _0x152d06;}if(se(_0x152d06,_0x228d03))return _0x152d06;this['_breakSuggestionMarker'](_0x152d06,_0x25a282['start'],_0x25a282['end']);break;}if(_0x500a5f==_0x152d06['subType']&&se(_0x152d06,_0x228d03)){const _0x1bf71f=_0x152d06['getFirstRange']();return _0x1bf71f['start']['isEqual'](_0x25a282['end'])?this['_setSuggestionRange'](_0x152d06,this['_model']['createRange'](_0x25a282['start'],_0x1bf71f['end'])):this['_setSuggestionRange'](_0x152d06,this['_model']['createRange'](_0x1bf71f['start'],_0x25a282['end'])),_0x152d06;}}const _0x8ebc3=_0x172a90(),_0x3d29e6=_0x5acb3b['id'],_0x47645a=_0x500a5f?'insertion:'+_0x500a5f:'insertion',_0x21d19d=this['_setSuggestionData']({'id':_0x8ebc3,'type':_0x47645a,'createdAt':new Date(),'authorId':_0x3d29e6,'attributes':_0x228d03});return this['_addSuggestionMarker'](_0x47645a,_0x8ebc3,_0x3d29e6,_0x25a282),_0x21d19d;}['markMultiRangeInsertion'](_0x3258f0,_0x1e72d0='multi',_0x5a0f75={}){const _0x39186b=this['editor']['plugins']['get']('Users')['me'],_0x260c4c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1e72d0,'join');this['_trackingSessionId']&&(_0x5a0f75['trackingSessionId']=this['_trackingSessionId']);for(const _0xa27290 of this['getSuggestions']())if(_0xa27290['author']['id']==_0x39186b['id']&&'insertion'==_0xa27290['type']&&_0xa27290['subType']==_0x1e72d0&&se(_0xa27290,_0x5a0f75)&&(_0x260c4c(_0xa27290['getRanges'](),_0x3258f0)||_0x260c4c(_0x3258f0,_0xa27290['getRanges']()))){for(const _0x4778ab of _0x3258f0)_0xa27290['addRange'](_0x4778ab);return _0xa27290;}for(const {suggestion:_0xacec72,meta:_0x1506da}of this['_findSuggestions'](_0x3258f0,'insertion')){if(!_0x1506da['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1506da['containsRangeInObject'])continue;if(!se(_0xacec72,_0x5a0f75))continue;let _0x536a0f=!0x0;for(const _0x2587e4 of _0xacec72['getRanges']())for(const _0x3efc33 of _0x3258f0)if(!_0x2587e4['containsRange'](_0x3efc33)){_0x536a0f=!0x1;break;}if(_0x536a0f)return _0xacec72;}const _0x118fc5=_0x172a90(),_0x4ba529=_0x39186b['id'],_0x42ab5c='insertion:'+_0x1e72d0,_0x71c688=this['_setSuggestionData']({'id':_0x118fc5,'type':_0x42ab5c,'createdAt':new Date(),'authorId':_0x4ba529,'attributes':_0x5a0f75});for(const _0x35ae18 of _0x3258f0)this['_addSuggestionMarker'](_0x42ab5c,_0x118fc5,_0x4ba529,_0x35ae18,R['getMultiRangeId']());return _0x71c688;}['markInlineFormat'](_0x2050a7,_0x32d25d,_0xe64c7c=null,_0x1039b4={}){if(_0xe64c7c=_0xe64c7c||zt(_0x32d25d),_0x2050a7['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1039b4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x435714=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe64c7c,'accept');return this['forceDefaultExecution'](()=>_0x435714([_0x2050a7],_0x32d25d,_0x1039b4)),null;}const _0x13cebb=this['editor']['plugins']['get']('Users')['me'],_0x1954d1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3572eb,meta:_0x4b669d}of this['_findSuggestions'](_0x2050a7,'insertion'))_0x4b669d['isOwn']&&!_0x4b669d['isInsideObject']&&_0x1954d1['push'](..._0x3572eb['getRanges']());}const _0x45cefa=function(_0x3884c2,_0x5239fc){const _0x116e23=[];for(const _0xc0e839 of _0x5239fc){const _0x5a5a63=_0x3884c2['getIntersection'](_0xc0e839);_0x5a5a63&&_0x116e23['push'](_0x5a5a63);}return _0x116e23;}(_0x2050a7,_0x1954d1),_0x2bccb9=function(_0x3d42f3,_0x31ef73){const _0x47761f=[_0x3d42f3];for(const _0x3ee323 of _0x31ef73){let _0x47a4e8=0x0;for(;_0x47a4e8<_0x47761f['length'];){const _0x42c79a=_0x47761f[_0x47a4e8]['getDifference'](_0x3ee323);_0x47761f['splice'](_0x47a4e8,0x1,..._0x42c79a),_0x47a4e8+=_0x42c79a['length'];}}return _0x47761f;}(_0x2050a7,_0x1954d1);_0x45cefa['length']&&this['_model']['change'](()=>{for(const _0x101d43 of _0x45cefa){const _0x51cb31=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe64c7c,'accept');this['forceDefaultExecution'](()=>_0x51cb31([_0x101d43],_0x32d25d,_0x1039b4));}});for(const _0x18134f of _0x2bccb9){let _0x186b41=null,_0x418187=_0x18134f['start'],_0x14bfc6=_0x18134f['end'];for(const {suggestion:_0x503ca9,meta:_0x381fa7}of this['_findSuggestions'](_0x18134f,'formatInline')){if(!_0x381fa7['isOwn'])continue;if(_0x503ca9['subType']!=_0xe64c7c)continue;if(!se(_0x503ca9,_0x1039b4))continue;const _0x1817b5=_0x503ca9['getFirstRange']();if(_0x1817b5['containsRange'](_0x18134f,!0x0))return null;_0x418187=_0x418187['isBefore'](_0x1817b5['start'])?_0x418187:_0x1817b5['start'],_0x14bfc6=_0x14bfc6['isAfter'](_0x1817b5['end'])?_0x14bfc6:_0x1817b5['end'],_0x186b41?_0x1817b5['start']['isBefore'](_0x186b41['getFirstRange']()['start'])?(_0x186b41['removeMarkers'](),_0x186b41=_0x503ca9):_0x503ca9['removeMarkers']():_0x186b41=_0x503ca9;}const _0x80b6ac=this['_model']['createRange'](_0x418187,_0x14bfc6);if(_0x186b41)this['_setSuggestionRange'](_0x186b41,_0x80b6ac);else{const _0x5e199e=_0x172a90(),_0x28be80=_0x13cebb['id'];this['_setSuggestionData']({'id':_0x5e199e,'type':'formatInline:'+_0xe64c7c,'data':_0x32d25d,'createdAt':new Date(),'authorId':_0x28be80,'attributes':_0x1039b4}),this['_addSuggestionMarker']('formatInline:'+_0xe64c7c,_0x5e199e,_0x28be80,_0x80b6ac);}}return null;}['markBlockFormat'](_0x2420a2,_0x23eea7,_0x15604d=[],_0x196f60=null,_0x520e82={}){_0x23eea7['formatGroupId']||(_0x23eea7['formatGroupId']=_0x23eea7['commandName']),_0x23eea7['multipleBlocks']=_0x2420a2['is']('range'),_0x196f60=_0x196f60||zt(_0x23eea7);const _0x499fc3=_0x15604d['map'](_0x379144=>ee(_0x379144,this['_model'])),_0x55d4ac=_0x2420a2['is']('range')?_0x2420a2:ee(_0x2420a2,this['_model']);if(this['_trackingSessionId']&&(_0x520e82['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x36822b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x196f60,'accept');return this['forceDefaultExecution'](()=>_0x36822b([_0x55d4ac],_0x23eea7,_0x520e82)),null;}_0x499fc3['push'](_0x55d4ac);let _0x3c4818=!0x0;for(const _0x166b68 of _0x499fc3)if(!this['_rangeIsInLocalUserInsertion'](_0x166b68)){_0x3c4818=!0x1;break;}if(_0x3c4818&&'always'!==this['_trackFormatChanges']){const _0x12d4c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x196f60,'accept');return this['forceDefaultExecution'](()=>_0x12d4c5([_0x55d4ac],_0x23eea7,_0x520e82)),null;}let _0x1b2f7a=null,_0x177cea=_0x55d4ac['start'],_0x363072=_0x55d4ac['end'];for(const {suggestion:_0x251cfc,meta:_0x30dcae}of this['_findSuggestions'](_0x55d4ac,'formatBlock')){if(!_0x30dcae['isOwn'])continue;if(_0x30dcae['isNextTo']||_0x30dcae['containsRangeInObject']||_0x30dcae['isInsideObject'])continue;if(_0x251cfc['data']['formatGroupId']!=_0x23eea7['formatGroupId'])continue;if(!se(_0x251cfc,_0x520e82))continue;const _0xcc1040=_0x251cfc['getFirstRange']();if(_0x251cfc['subType']==_0x196f60){if(_0xcc1040['containsRange'](_0x55d4ac,!0x0))return null;_0x177cea=_0x177cea['isBefore'](_0xcc1040['start'])?_0x177cea:_0xcc1040['start'],_0x363072=_0x363072['isAfter'](_0xcc1040['end'])?_0x363072:_0xcc1040['end'],_0x1b2f7a?_0xcc1040['start']['isBefore'](_0x1b2f7a['getFirstRange']()['start'])?(_0x1b2f7a['removeMarkers'](),_0x1b2f7a=_0x251cfc):_0x251cfc['removeMarkers']():_0x1b2f7a=_0x251cfc;}else{const _0x222e70=_0x55d4ac['getIntersection'](_0xcc1040);this['_cutOutSuggestionMarker'](_0x251cfc,_0x222e70);}}const _0x379bfd=this['editor']['plugins']['get']('Users')['me'],_0x4a7f76=_0x172a90(),_0x4465c3=_0x379bfd['id'];if(_0x1b2f7a)return this['_setSuggestionRange'](_0x1b2f7a,this['_model']['createRange'](_0x177cea,_0x363072)),_0x1b2f7a;{const _0xe3fcf9=this['_setSuggestionData']({'id':_0x4a7f76,'type':'formatBlock:'+_0x196f60,'data':_0x23eea7,'createdAt':new Date(),'authorId':_0x4465c3,'attributes':_0x520e82});return this['_addSuggestionMarker']('formatBlock:'+_0x196f60,_0x4a7f76,_0x4465c3,this['_model']['createRange'](_0x177cea,_0x363072)),_0xe3fcf9;}}['markMultiRangeBlockFormat'](_0x1fb976,_0x21123f,_0xa43e13=[],_0xa2c32b=null,_0x581098={}){_0x21123f['formatGroupId']||(_0x21123f['formatGroupId']=_0x21123f['commandName']);const _0x9db82c=_0x1fb976[0x0];_0x21123f['multipleBlocks']=_0x9db82c['is']('range'),_0xa2c32b=_0xa2c32b||zt(_0x21123f);const _0x3bb0e9=_0xa43e13['map'](_0x12aa67=>ee(_0x12aa67,this['_model'])),_0x3912a1=_0x9db82c['is']('range')?_0x1fb976:_0x1fb976['map'](_0x2cbe14=>ee(_0x2cbe14,this['_model']));if(this['_trackingSessionId']&&(_0x581098['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2104cc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa2c32b,'accept');return this['forceDefaultExecution'](()=>_0x2104cc(_0x3912a1,_0x21123f,_0x581098)),null;}_0x3bb0e9['push'](..._0x3912a1);let _0x2cdbad=!0x0;for(const _0x4797cb of _0x3bb0e9)if(!this['_rangeIsInLocalUserInsertion'](_0x4797cb)){_0x2cdbad=!0x1;break;}if(_0x2cdbad&&'always'!==this['_trackFormatChanges']){const _0x507cf7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa2c32b,'accept');return this['forceDefaultExecution'](()=>_0x507cf7(_0x3912a1,_0x21123f,_0x581098)),null;}const _0x195d19=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b0cb0 of this['getSuggestions']()){const _0x5c1b4f=_0x2b0cb0['data'];if(_0x2b0cb0['author']['id']!=_0x195d19['id'])continue;if('formatBlock'!=_0x2b0cb0['type']||_0x5c1b4f['formatGroupId']!=_0x21123f['formatGroupId'])continue;if(!se(_0x2b0cb0,_0x581098))continue;const _0x87ca13=_0x2b0cb0['subType']==_0xa2c32b;for(let _0x5eaf61=0x0;_0x5eaf61<_0x3912a1['length'];_0x5eaf61++){const _0x3b1f4c=_0x3912a1[_0x5eaf61];for(const _0x6885c6 of _0x2b0cb0['getMarkers']()){const _0xe7d43c=_0x6885c6['getRange']();if(_0x3b1f4c['isEqual'](_0xe7d43c)){_0x87ca13?(_0x3912a1['splice'](_0x5eaf61,0x1),_0x5eaf61--):_0x2b0cb0['removeMarker'](_0x6885c6['name']);break;}}}}if(0x0==_0x3912a1['length'])return null;const _0x11272c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa2c32b,'join');for(const _0x20a59a of this['getSuggestions']()){const _0x2e1360=_0x20a59a['data'];if(_0x20a59a['author']['id']==_0x195d19['id']&&('formatBlock'==_0x20a59a['type']&&_0x2e1360['formatGroupId']==_0x21123f['formatGroupId']&&_0x20a59a['subType']==_0xa2c32b&&se(_0x20a59a,_0x581098)&&(_0x11272c(_0x20a59a['getRanges'](),_0x3912a1)||_0x11272c(_0x3912a1,_0x20a59a['getRanges']())))){for(const _0x55fb0f of _0x3912a1)_0x20a59a['addRange'](_0x55fb0f);return _0x20a59a;}}const _0x56dcee=_0x172a90(),_0x1cfe5c=_0x195d19['id'],_0x405ffa='formatBlock:'+_0xa2c32b,_0x8a6606=this['_setSuggestionData']({'id':_0x56dcee,'type':_0x405ffa,'data':_0x21123f,'createdAt':new Date(),'authorId':_0x1cfe5c,'attributes':_0x581098});for(const _0x52ed55 of _0x3912a1)this['_addSuggestionMarker'](_0x405ffa,_0x56dcee,_0x1cfe5c,_0x52ed55,R['getMultiRangeId']());return _0x8a6606;}['markDeletion'](_0x9ee95c,_0x5bc8f4=null,_0x4c0efb={}){if(_0x9ee95c['isCollapsed'])return null;const _0x53b294=this['editor']['plugins']['get']('Users')['me'],_0x39f612=new _0x360709(_0x9ee95c['start'],_0x9ee95c['end']);this['_trackingSessionId']&&(_0x4c0efb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4434d2,meta:_0x244a89}of this['_findSuggestions'](_0x39f612,'insertion'))if(_0x244a89['isOwn']&&!_0x244a89['isNextTo']){if(_0x4434d2['isMultiRange']){const _0x1d02c0=_0x4434d2['getRanges']()['filter'](_0x1ae213=>'$graveyard'!=_0x1ae213['root']['rootName']);_0x1d02c0['every'](_0x1bb363=>_0x39f612['containsRange'](_0x1bb363,!0x0))&&_0x4434d2['discard']();if(_0x1d02c0['some'](_0x4b9582=>_0x4b9582['containsRange'](_0x39f612,!0x0))){const _0x163143=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5bc8f4,'accept');return this['forceDefaultExecution'](()=>_0x163143([_0x39f612],null,_0x4c0efb)),null;}}else{const _0x5a092a=_0x39f612['getIntersection'](_0x4434d2['getFirstRange']());null!==_0x5a092a&&_0x4434d2['_onDiscard']([_0x5a092a],null,_0x4c0efb);}}if(_0x39f612['detach'](),_0x39f612['isCollapsed']||'$graveyard'==_0x39f612['root']['rootName'])return null;let _0x1f359d=null,_0x5bc7cc=_0x39f612['start'],_0x495c85=_0x39f612['end'];const _0x55d784=this['_findSuggestions'](_0x39f612,'deletion');for(const {suggestion:_0x3509ec,meta:_0x3075e9}of _0x55d784){const _0x4e5181=this['_model']['createRange'](_0x5bc7cc,_0x495c85);if(_0x3075e9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3075e9['containsRangeInObject']&&!_0x3075e9['isInsideObject'])){if(_0x3509ec['isMultiRange']){if(!se(_0x3509ec,_0x4c0efb))continue;let _0x2025c6=!0x0;for(const _0xe850e3 of _0x3509ec['getRanges']()){if(_0xe850e3['containsRange'](_0x4e5181,!0x0))return _0x3509ec;_0x4e5181['containsRange'](_0xe850e3)||(_0x2025c6=!0x1);}_0x2025c6&&_0x3509ec['discard']();}else{const _0x2bef31=_0x3509ec['getFirstRange']();if(_0x2bef31['containsRange'](_0x4e5181,!0x0))return _0x3509ec;if(!se(_0x3509ec,_0x4c0efb)){_0x4e5181['containsRange'](_0x2bef31)?_0x3509ec['removeMarkers']():_0x2bef31['containsPosition'](_0x5bc7cc)?_0x5bc7cc=_0x2bef31['end']:_0x2bef31['containsPosition'](_0x495c85)&&(_0x495c85=_0x2bef31['start']);continue;}_0x5bc7cc=_0x5bc7cc['isBefore'](_0x2bef31['start'])?_0x5bc7cc:_0x2bef31['start'],_0x495c85=_0x495c85['isAfter'](_0x2bef31['end'])?_0x495c85:_0x2bef31['end'],_0x4c0efb=Object['assign']({},_0x3509ec['attributes']),_0x1f359d?_0x2bef31['start']['isBefore'](_0x1f359d['getFirstRange']()['start'])?(_0x1f359d['removeMarkers'](),_0x1f359d=_0x3509ec):_0x3509ec['removeMarkers']():_0x1f359d=_0x3509ec;}}}if(_0x1f359d)return this['_setSuggestionRange'](_0x1f359d,this['_model']['createRange'](_0x5bc7cc,_0x495c85)),_0x1f359d;{const _0x26262a=_0x172a90(),_0x47a40f=this['_model']['createRange'](_0x5bc7cc,_0x495c85),_0x3d84ae=_0x53b294['id'],_0x2c24ff=_0x5bc8f4?'deletion:'+_0x5bc8f4:'deletion',_0x5cac76=this['_setSuggestionData']({'id':_0x26262a,'type':_0x2c24ff,'createdAt':new Date(),'authorId':_0x3d84ae,'attributes':_0x4c0efb});return this['_addSuggestionMarker'](_0x2c24ff,_0x26262a,_0x3d84ae,_0x47a40f),_0x5cac76;}}['markMultiRangeDeletion'](_0x453325,_0x2209de='multi',_0xa3ee0d={}){const _0x20dc71=this['editor']['plugins']['get']('Users')['me'],_0x543073=_0x453325['map'](_0x221d70=>new _0x360709(_0x221d70['start'],_0x221d70['end'])),_0x302e25=new Set();this['_trackingSessionId']&&(_0xa3ee0d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xaa1d13,meta:_0x50c929}of this['_findSuggestions'](_0x543073,'insertion'))_0x50c929['isOwn']&&!_0x50c929['isNextTo']&&_0x302e25['add'](_0xaa1d13);for(const _0x5ae5f0 of _0x302e25)if(_0x5ae5f0['isMultiRange']){const _0x9749ef=_0x5ae5f0['getRanges']();(!_0x5ae5f0['attributes']||!_0x5ae5f0['attributes']['skipNestingCheck'])&&(_0x9749ef['every'](_0x3ecccb=>_0x543073['some'](_0x5c3402=>_0x5c3402['containsRange'](_0x3ecccb,!0x0)))&&_0x5ae5f0['discard']());if(_0x543073['every'](_0x36537d=>_0x9749ef['some'](_0x1c06e4=>_0x1c06e4['containsRange'](_0x36537d,!0x0)))){const _0x40f6e0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2209de,'accept');return this['forceDefaultExecution'](()=>_0x40f6e0(_0x453325,null,_0xa3ee0d)),null;}}else{const _0x813cbe=_0x5ae5f0['getFirstRange']();_0x543073['some'](_0x544370=>_0x544370['containsRange'](_0x813cbe,!0x0))&&_0x5ae5f0['discard']();if(_0x543073['every'](_0x513dec=>_0x813cbe['containsRange'](_0x513dec,!0x0))){const _0x8950e0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2209de,'accept');return this['forceDefaultExecution'](()=>_0x8950e0(_0x543073,null,_0xa3ee0d)),null;}}const _0x3d6055=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2209de,'join');let _0x341fb8=null;for(const _0x25fef2 of this['getSuggestions']())if(_0x25fef2['author']['id']==_0x20dc71['id']&&_0x25fef2['isInContent']&&'deletion'==_0x25fef2['type']&&_0x25fef2['subType']==_0x2209de&&se(_0x25fef2,_0xa3ee0d)&&(_0x3d6055(_0x25fef2['getRanges'](),_0x543073)||_0x3d6055(_0x543073,_0x25fef2['getRanges']()))){if(_0x341fb8){if(_0x25fef2['commentThread']&&_0x25fef2['commentThread']['length'])continue;for(const _0x396ebd of _0x25fef2['getRanges']())_0x341fb8['isIntersectingWithRange'](_0x396ebd)||_0x341fb8['addRange'](_0x396ebd);_0x25fef2['removeMarkers']();}else{_0x341fb8=_0x25fef2;for(const _0x1a35de of _0x543073)_0x25fef2['isIntersectingWithRange'](_0x1a35de)||_0x25fef2['addRange'](_0x1a35de);}}if(_0x341fb8)return _0x341fb8;_0x302e25['clear']();for(const {suggestion:_0x491e2b,meta:_0x124373}of this['_findSuggestions'](_0x543073,'deletion'))_0x124373['isOwn']&&(this['_mergeNestedSuggestions']||!_0x124373['containsRangeInObject']&&!_0x124373['isInsideObject'])&&se(_0x491e2b,_0xa3ee0d)&&_0x302e25['add'](_0x491e2b);for(const _0x297c28 of _0x302e25){const _0x5c622a=_0x297c28['getRanges']();if(!_0xa3ee0d||!_0xa3ee0d['skipNestingCheck']){if(_0x543073['every'](_0x3af2b3=>_0x5c622a['some'](_0x361334=>_0x361334['containsRange'](_0x3af2b3,!0x0))))return _0x297c28;}(!_0x297c28['attributes']||!_0x297c28['attributes']['skipNestingCheck'])&&(_0x5c622a['every'](_0xc3b568=>_0x543073['some'](_0x589412=>_0x589412['containsRange'](_0xc3b568,!0x0)))&&_0x297c28['discard']());}const _0x363b1a=_0x172a90(),_0x4f43bb=_0x20dc71['id'],_0x47f033='deletion:'+_0x2209de,_0x813ae2=this['_setSuggestionData']({'id':_0x363b1a,'type':_0x47f033,'createdAt':new Date(),'authorId':_0x4f43bb,'attributes':_0xa3ee0d});for(const _0x4551de of _0x543073)_0x4551de['detach'](),_0x4551de['isCollapsed']||'$graveyard'==_0x4551de['root']['rootName']||this['_addSuggestionMarker'](_0x47f033,_0x363b1a,_0x4f43bb,_0x4551de,R['getMultiRangeId']());return _0x813ae2;}['markAttributeChange'](_0x339575,_0x21286b,_0x1fddd0,_0x3cf346,_0x3cdc99){if(_0x339575['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa681d6=this['editor']['plugins']['get']('Users')['me']['id'],_0x24fd49=Array['from'](this['_suggestions']['values']())['filter'](_0x48487f=>'attribute'==_0x48487f['type']&&_0x48487f['data']['key']==_0x21286b&&_0x48487f['isIntersectingWithRange'](_0x339575));if(this['_trackingSessionId']&&(_0x3cdc99['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x103af4=this['_findSuggestions'](_0x339575,'insertion')['filter'](({meta:_0xc87867})=>_0xc87867['isOwn']&&!_0xc87867['isInsideObject']&&!_0xc87867['isNextTo'])['map'](({suggestion:_0x1e8669})=>_0x1e8669);_0x24fd49['unshift'](..._0x103af4);}const _0x3094b3=new Map([[_0x339575,_0x1fddd0]]);for(const _0x1b33d8 of _0x24fd49){const _0x1d7aba='attribute'==_0x1b33d8['type']?_0x1b33d8['data']['oldValue']:void 0x0,_0x2e39b8=_0x1b33d8['getFirstRange'](),_0xa62f9=Array['from'](_0x3094b3['keys']())['find'](_0x259eb7=>_0x259eb7['isIntersecting'](_0x2e39b8));if(!_0xa62f9)continue;const _0x2b0258=_0xa62f9['getDifference'](_0x2e39b8);this['_isBlockAttribute'](_0x21286b)&&'insertion'==_0x1b33d8['type']&&0x0!=_0x2b0258['length']||(_0x3094b3['delete'](_0xa62f9),_0x2b0258['forEach'](_0x8ea919=>{_0x3094b3['set'](_0x8ea919,_0x1fddd0);}),'insertion'!=_0x1b33d8['type']&&_0x1d7aba!=_0x3cf346&&_0x3094b3['set'](_0xa62f9['getIntersection'](_0x2e39b8),_0x1d7aba));}const _0x3b70c2=[];for(const [_0x47b6d4,_0x46901c]of _0x3094b3){const _0x14b684=_0x172a90(),_0x22fc2e={'key':_0x21286b,'oldValue':_0x46901c,'newValue':_0x3cf346};_0x21286b['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':_0x21286b});const _0x1641a0=('attribute:'+(_0x21286b+'|'+zt({'newValue':_0x3cf346})))['substring'](0x0,0x3c),_0x129dc0=this['_setSuggestionData']({'id':_0x14b684,'type':_0x1641a0,'data':_0x22fc2e,'createdAt':new Date(),'authorId':_0xa681d6,'attributes':_0x3cdc99});_0x3b70c2['push'](_0x129dc0),this['_addSuggestionMarker'](_0x1641a0,_0x14b684,_0xa681d6,_0x47b6d4);}return _0x3b70c2;}['enableDefaultAttributesIntegration'](_0x1d893d){this['enableCommand'](_0x1d893d,(_0xa019cd,..._0x124213)=>{this['recordAttributeChanges'](()=>{_0xa019cd(..._0x124213);});});}['registerBlockAttribute'](_0x32ef0c){this['_blockAttributeKeys']['add'](_0x32ef0c);}['registerInlineAttribute'](_0xbf5199){this['_inlineAttributeKeys']['add'](_0xbf5199);}['startTrackingSession'](_0x1db786){return this['_trackingSessionId']=void 0x0!==_0x1db786?_0x1db786:_0x172a90(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4f0734){return'attribute'==_0x4f0734['type']?re(_0x4f0734['subType']):null;}['_applyOperationsAsSuggestions'](_0x59e7f9){if(0x0==_0x59e7f9['length'])return;const _0x18cf71=this['editor'],_0x22059d=_0x18cf71['plugins']['get'](_0x182521);let _0xd057e7,_0x3d3a4e=!0x0;for(const _0x2242da in _0x59e7f9[0x0]){const _0x55c789=_0x59e7f9[0x0][_0x2242da];if((_0x55c789 instanceof _0x517fbf||_0x55c789 instanceof _0x5ed2f1)&&_0x55c789['root']['is']('documentFragment')){_0x3d3a4e=!0x1,_0xd057e7=_0x55c789['root'];break;}}_0x18cf71['model']['change'](_0x314d8b=>{const _0x4307dc=new Set();for(let _0x4a2246=0x0;_0x4a2246<_0x59e7f9['length'];_0x4a2246++){const _0x343902=_0x59e7f9[_0x4a2246];if(_0x343902['baseVersion']=_0x3d3a4e?_0x18cf71['model']['document']['version']:null,_0x343902['isDocumentOperation']=_0x3d3a4e,_0x22059d['isMarkedRemoveOperation'](_0x343902)){const _0x9c80f3=Zt(_0x343902['newRange'],_0x18cf71['model']);if(_0x3d3a4e)this['markDeletion'](_0x9c80f3);else{const _0x25c67f='suggestion:deletion:'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x25c67f,_0x9c80f3);}}else switch(_0x343902['type']){case'rename':{const _0x933024=_0x343902['oldName'],_0xc72f09=_0x343902['newName'];if(_0x933024==_0xc72f09)break;_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);const _0x3dee12='$elementName',_0x41c11b=_0x343902['position'],_0x1c419c=_0x18cf71['model']['createRange'](_0x41c11b,_0x18cf71['model']['createPositionAt'](_0x41c11b['nodeAfter'],'end'));if(_0x3d3a4e)this['markAttributeChange'](_0x1c419c,_0x3dee12,_0x933024,_0xc72f09,{'groupId':_0x172a90()});else{const _0x52a814='suggestion:attribute:'+_0x3dee12+':'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x52a814,_0x1c419c);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3bf8c3=_0x343902['oldValue'],_0x1bed38=_0x343902['newValue'];if(_0x3bf8c3==_0x1bed38)break;_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);const _0x5cc660=_0x343902['key'];if(!this['_isRegisteredAttribute'](_0x5cc660))break;const _0x1542eb=Zt(_0x343902['range'],_0x18cf71['model']);if(_0x3d3a4e)this['markAttributeChange'](_0x1542eb,_0x5cc660,_0x3bf8c3,_0x1bed38,{'groupId':_0x172a90()});else{const _0x13a83e='suggestion:attribute:'+_0x5cc660+':'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x13a83e,_0x1542eb);}break;}case'insert':{_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);const _0x4104f9=_0x59e7f9[_0x4a2246+0x1]&&'move'==_0x59e7f9[_0x4a2246+0x1]['type'];if(!_0x3d3a4e&&_0x4104f9&&ae(_0xd057e7,_0x343902),_0x4104f9)break;const _0x336590=_0x343902['position'],_0x404381=_0x343902['howMany'],_0x5bad27=Zt(_0x18cf71['model']['createRange'](_0x336590,_0x336590['getShiftedBy'](_0x404381)),_0x18cf71['model']);if(_0x3d3a4e)this['markInsertion'](_0x5bad27);else{const _0x80d68a='suggestion:insertion:'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x80d68a,_0x5bad27);}break;}case'split':{_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);const _0x15760e=_0x343902['splitPosition'],_0x59fd3e=_0x343902['moveTargetPosition'],_0x25352e=_0x18cf71['model']['createRange'](_0x15760e,_0x59fd3e);if(_0x3d3a4e)this['markInsertion'](_0x18cf71['model']['createRange'](_0x15760e,_0x59fd3e));else{const _0x36ed26='suggestion:insertion:'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x36ed26,_0x25352e);}break;}case'move':if(_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902),!_0x3d3a4e&&_0x59e7f9[_0x4a2246-0x1]&&'insert'==_0x59e7f9[_0x4a2246-0x1]['type']&&ae(_0xd057e7,_0x343902),!_0x3d3a4e){const _0x5779c3=_0x343902['getMovedRangeStart'](),_0x36f81f=_0x343902['howMany'];for(let _0xa9a02f=0x0;_0xa9a02f<_0x36f81f;_0xa9a02f++){const _0x4f6233=_0x5779c3['getShiftedBy'](_0xa9a02f)['nodeAfter'];_0x4307dc['add'](_0x4f6233);}}break;case'remove':if(_0x3d3a4e)_0x314d8b['batch']['addOperation'](_0x343902),_0x18cf71['model']['applyOperation'](_0x343902);else{const _0x40790a=_0x343902['sourcePosition'],_0xcf36b7=_0x343902['howMany'],_0x242067=new _0x53237a(_0x40790a,_0xcf36b7);_0x314d8b['batch']['addOperation'](_0x242067),_0x18cf71['model']['applyOperation'](_0x242067);}}}for(const _0x3573bd of _0x4307dc){const _0xad3741=_0x18cf71['model']['createRangeOn'](_0x3573bd),_0x229a1f='suggestion:formatBlock:$fakeWrap:'+_0x172a90()+':$aiSuggestion';_0xd057e7['markers']['set'](_0x229a1f,Zt(_0xad3741,_0x18cf71['model']));}});}['_setSuggestionRange'](_0x474826,_0xf5755b){const _0x3cd481=_0x474826['getFirstMarker']();this['_model']['change'](_0x21637d=>{_0x21637d['updateMarker'](_0x3cd481,{'range':_0xf5755b});});}['_addThreadToSuggestion'](_0x537da4){const _0x39b390=_0x537da4['id'],_0x26e76f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x39b390)||this['_commentsRepository']['addCommentThread']({'channelId':_0x26e76f,'threadId':_0x39b390,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x268e83=this['_commentsRepository']['getCommentThread'](_0x39b390);_0x268e83['unbind']('isRemovable'),_0x268e83['isRemovable']=!0x1,_0x537da4['commentThread']=_0x268e83;}['_checkSuggestionCorrectness'](_0x12fd5b,_0x379a93,_0x19e221,_0x273bd9){if(_0x12fd5b['type']!=_0x379a93||_0x12fd5b['subType']!=_0x19e221||_0x12fd5b['creator']['id']!=_0x273bd9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ac6d4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1617a3,_0x5de16f){const _0x9125c3=_0x1617a3['getFirstRange']();if(_0x5de16f['isEqual'](_0x9125c3))_0x1617a3['removeMarkers']();else{if(_0x9125c3['containsRange'](_0x5de16f)){const _0x17079d=this['_model']['createPositionAt'](_0x5de16f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1617a3,this['_model']['createRange'](_0x9125c3['start'],_0x17079d));const _0x527a8b=_0x172a90(),_0x22aefa=_0x1617a3['creator']['id'],_0x402f0d=_0x1617a3['type']+':'+_0x1617a3['subType'];this['_setSuggestionData']({'id':_0x527a8b,'type':_0x402f0d,'createdAt':new Date(),'authorId':_0x22aefa,'data':_0x1617a3['data'],'attributes':_0x1617a3['attributes']});const _0x3d35b8=this['_model']['createPositionAt'](_0x5de16f['end']['parent'],'after'),_0x6242cc=this['_model']['createRange'](_0x3d35b8,_0x9125c3['end']);this['_addSuggestionMarker'](_0x402f0d,_0x527a8b,_0x22aefa,_0x6242cc);}else{if(_0x9125c3['containsPosition'](_0x5de16f['start'])){const _0x3faeae=this['_model']['createPositionAt'](_0x5de16f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1617a3,this['_model']['createRange'](_0x9125c3['start'],_0x3faeae));}else{const _0x56357d=this['_model']['createPositionAt'](_0x5de16f['end']['parent'],'after');this['_setSuggestionRange'](_0x1617a3,this['_model']['createRange'](_0x56357d,_0x9125c3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x383ca2){for(const {suggestion:_0x59a69c,meta:_0x45ff90}of this['_findSuggestions'](_0x383ca2,'insertion')){if(!_0x45ff90['isOwn'])continue;const _0x3e63f3=_0x59a69c['getRanges']();for(const _0x699931 of _0x3e63f3)if(!_0x383ca2['getDifference'](_0x699931)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x27dd4a){return this['editor']['plugins']['get']('Users')['getUser'](_0x27dd4a);}['_getExternalAuthor'](_0x2f1847){const _0xab1d1=this['editor']['plugins']['get']('Users'),_0x4bfd72=_0x846a2f('external:'+_0x2f1847),_0x4ff30e=_0xab1d1['getUser'](_0x4bfd72);return _0x4ff30e||_0xab1d1['addUser']({'id':_0x4bfd72,'name':_0x2f1847});}['_createSuggestion'](_0x406f9d,_0x4282c4,_0x4b31a1,_0x1c0028,_0x510b97,_0x1ad621){const _0x1de098=this['_getAuthorFromId'](_0x1c0028);if(!_0x1de098)throw new _0x1ac6d4('track-changes-user-not-found',this,{'authorId':_0x1c0028,'suggestionId':_0x4b31a1});const _0x16c7d5=this['_suggestionFactory']['buildSuggestion'](_0x406f9d,_0x4282c4,_0x4b31a1,_0x1de098,_0x510b97,_0x3756e1=>{this['_updateSuggestionData'](_0x4b31a1,{'attributes':_0x3756e1});const _0x2fbea4=this['getSuggestion'](_0x4b31a1);this['_joinWithAdjacentSuggestions'](new Set([_0x2fbea4])),this['_refreshSuggestionsChain'](new Set([_0x2fbea4]));},_0x1ad621);return this['listenTo'](_0x16c7d5,'accept',()=>{this['_updateSuggestionData'](_0x4b31a1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x16c7d5,'discard',()=>{this['_updateSuggestionData'](_0x4b31a1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4b31a1,_0x16c7d5),this['_suggestionState']['set'](_0x16c7d5,'notReady'),_0x16c7d5;}['_splitMarkerName'](_0x3bac25){const _0x3842ea=_0x3bac25['split'](':');return{'group':_0x3842ea[0x0],'type':_0x3842ea[0x1],'subType':_0x3842ea['length']>=0x5?_0x3842ea[0x2]:null,'id':_0x3842ea['length']<0x5?_0x3842ea[0x2]:_0x3842ea[0x3],'authorId':_0x3842ea['length']<0x5?_0x3842ea[0x3]:_0x3842ea[0x4],'markerCount':0x6==_0x3842ea['length']?_0x3842ea[0x5]:null};}['_breakSuggestionMarker'](_0x2acc19,_0x3275c8,_0x2df2c1){const _0x584a19=_0x2acc19['getFirstRange'](),_0x363042=_0x584a19['start'],_0xd6603d=_0x584a19['end'];this['_setSuggestionRange'](_0x2acc19,this['_model']['createRange'](_0x363042,_0x3275c8));const _0x1eda95=_0x172a90(),_0x291139=_0x2acc19['creator']['id'],_0xc9a108=_0x2acc19['type']+(_0x2acc19['subType']?':'+_0x2acc19['subType']:'');this['_setSuggestionData']({'id':_0x1eda95,'type':_0xc9a108,'createdAt':new Date(),'authorId':_0x291139,'originalSuggestionId':_0x2acc19['_originalSuggestionId']||_0x2acc19['id'],'attributes':_0x2acc19['attributes'],'data':_0x2acc19['data']});const _0x28c969=this['_getAttributeKey'](_0x2acc19);('formatBlock'==_0x2acc19['type']||_0x28c969&&this['_isBlockAttribute'](_0x28c969))&&(_0x2df2c1=this['_model']['createPositionBefore'](_0x2df2c1['parent'])),this['_addSuggestionMarker'](_0xc9a108,_0x1eda95,_0x291139,this['_model']['createRange'](_0x2df2c1,_0xd6603d));}['_findSuggestions'](_0x3e82d0,_0x4f123e=null){const _0x3b0fbf=[],_0x249320=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3e82d0)||(_0x3e82d0=[_0x3e82d0]);for(const _0x2bf828 of this['getSuggestions']()){if(!_0x2bf828['isInContent'])continue;if(_0x4f123e&&_0x2bf828['type']!=_0x4f123e)continue;let _0x26c6fa=!0x1;for(const _0x4b1975 of _0x2bf828['getRanges']()){for(const _0x551a0e of _0x3e82d0){const _0x42130f=_0x551a0e['start']['isEqual'](_0x4b1975['end'])||_0x551a0e['end']['isEqual'](_0x4b1975['start']);if(_0x42130f||_0x551a0e['getIntersection'](_0x4b1975)){const _0x50c7ed=_0x551a0e['containsRange'](_0x4b1975)&&qt(this['_model']['schema'],_0x4b1975['start'],_0x551a0e),_0x3d1075=_0x4b1975['containsRange'](_0x551a0e)&&qt(this['_model']['schema'],_0x551a0e['start'],_0x4b1975);_0x3b0fbf['push']({'suggestion':_0x2bf828,'meta':{'isOwn':_0x249320==_0x2bf828['author'],'isNextTo':_0x42130f,'isInsideObject':_0x50c7ed,'containsRangeInObject':_0x3d1075}}),_0x26c6fa=!0x0;break;}}if(_0x26c6fa)break;}}return _0x3b0fbf;}['_addSuggestionMarker'](_0x5cd7c0,_0x3e2b8c,_0x2944e8,_0x2ad83f,_0x4ab425){this['_model']['change'](_0x3bb6a6=>{let _0x42acad='suggestion:'+_0x5cd7c0+':'+_0x3e2b8c+':'+_0x2944e8;_0x4ab425&&(_0x42acad=_0x42acad+':'+_0x4ab425),_0x3bb6a6['addMarker'](_0x42acad,{'range':_0x2ad83f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2a0fd7){const _0x506099=_0x2a0fd7['previous'],_0x48a971=_0x2a0fd7['next'];_0x2a0fd7['previous']=null,_0x2a0fd7['next']=null,null!=_0x506099&&_0x506099['next']==_0x2a0fd7&&(_0x506099['next']=_0x48a971),null!=_0x48a971&&_0x48a971['previous']==_0x2a0fd7&&(_0x48a971['previous']=_0x506099),'ready'==this['_suggestionState']['get'](_0x2a0fd7)&&(this['_suggestionState']['set'](_0x2a0fd7,'removed'),this['fire']('suggestionUnloaded',_0x2a0fd7,_0x506099,_0x48a971));}['_setSuggestionData'](_0x3ec742){const _0x285b5f=_0x3ec742['id'],_0x4bd909=this['addSuggestionData'](_0x3ec742);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x569574=this['editor']['plugins']['get']('PendingActions'),_0x46501f=_0x4bd909['hasComments'],_0x1adb0f=_0x4bd909['subType']?_0x4bd909['type']+':'+_0x4bd909['subType']:_0x4bd909['type'],_0x2ba390=this['editor']['locale'],_0xe2ab93=_0x569574['add'](o(_0x2ba390,'PENDING_ACTION_SUGGESTION')),_0x10599a={'id':_0x285b5f,'type':_0x1adb0f,'hasComments':_0x46501f,'data':_0x3ec742['data']||null,'originalSuggestionId':_0x3ec742['originalSuggestionId']||null,'attributes':_0x4bd909['attributes']};this['_adapter']['addSuggestion'](_0x10599a)['then'](_0x26f5a0=>{_0x4bd909['_saved']=!0x0,_0x569574['remove'](_0xe2ab93),_0x26f5a0&&_0x26f5a0['createdAt']&&(this['_suggestions']['get'](_0x285b5f)['createdAt']=_0x26f5a0['createdAt']);})['catch'](_0x2cfa97=>{throw _0x153be2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4bd909['discard']();}),_0x4bd909['stopListening'](),this['_suggestions']['delete'](_0x4bd909['id']),this['_suggestionState']['delete'](_0x4bd909),_0x2cfa97;});}return _0x4bd909;}['_isBlockAttribute'](_0x51f960){return this['_blockAttributeKeys']['has'](_0x51f960);}['_isInlineAttribute'](_0x140fd3){return this['_inlineAttributeKeys']['has'](_0x140fd3);}['_updateSuggestionData'](_0x13c7fd,_0x421b04){const _0x333de6=this['editor']['plugins']['get']('PendingActions'),_0x2581cf=this['getSuggestion'](_0x13c7fd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2581cf['_saved']){const _0x49f4c3=_0x333de6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x13c7fd,_0x421b04)['then'](()=>{_0x333de6['remove'](_0x49f4c3);});}else _0x2581cf['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x13c7fd,_0x421b04);});}}['_getSuggestionData'](_0x76ae36){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ac6d4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x76ae36);}['_handleNewSuggestionMarker'](_0x50ac85){const {id:_0x3454a1,type:_0x5431d3,subType:_0x172360,authorId:_0x30afcb}=this['_splitMarkerName'](_0x50ac85),_0x2c8c4c=this['_suggestions']['get'](_0x3454a1)||this['_createSuggestion'](_0x5431d3,_0x172360,_0x3454a1,_0x30afcb,{});switch(this['_checkSuggestionCorrectness'](_0x2c8c4c,_0x5431d3,_0x172360,_0x30afcb),this['_suggestionState']['get'](_0x2c8c4c)){case'notReady':this['_getSuggestionData'](_0x3454a1)['then'](_0x22aa1a=>{let _0x16b728=Promise['resolve']();_0x22aa1a['hasComments']&&(_0x16b728=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3454a1})),_0x16b728['then'](()=>{this['addSuggestionData'](_0x22aa1a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2c8c4c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3454a1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2c8c4c,'ready'),this['fire']('suggestionLoaded',_0x2c8c4c);break;case'ready':this['fire']('suggestionChanged',_0x2c8c4c);}return _0x2c8c4c['addMarkerName'](_0x50ac85),_0x2c8c4c;}['_refreshSuggestionsChain'](_0x4ad1bc){const _0x14d054=Array['from'](_0x4ad1bc),_0x5edfac=_0x14d054['filter'](_0x3eaf73=>'attribute'==_0x3eaf73['type']);this['_refreshAttributeSuggestionsChain'](_0x5edfac);const _0x5f4375=_0x14d054['filter'](_0x21f67a=>!_0x21f67a['isMultiRange']&&'attribute'!=_0x21f67a['type']),_0x454dbf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x426af=>!_0x426af['isMultiRange']&&'attribute'!=_0x426af['type']),_0x1eeb9b=_0x454dbf['filter'](_0xa4c44d=>!_0x4ad1bc['has'](_0xa4c44d)),_0x49d4fa=new Map(_0x454dbf['map'](_0x4105c5=>[_0x4105c5,this['_suggestionFactory']['getSuggestionCallback'](_0x4105c5['type'],_0x4105c5['subType'],'chain')])),_0x525b96=new Map(_0x454dbf['map'](_0x133982=>[_0x133982,_0x133982['getFirstRange']()])),_0x2990ae=new Set(),_0x316807=new Set();for(let _0x2f3053=0x0;_0x2f3053<_0x5f4375['length'];_0x2f3053++)_0x2cb4cb(_0x5f4375[_0x2f3053],_0x5f4375,_0x2f3053+0x1);for(let _0x1482bd=0x0;_0x1482bd<_0x5f4375['length'];_0x1482bd++)_0x2cb4cb(_0x5f4375[_0x1482bd],_0x1eeb9b,0x0);const _0x2a1fb1=new Set();for(let _0x44c284=0x0;_0x44c284<_0x5f4375['length'];_0x44c284++){const _0x4e42a1=_0x5f4375[_0x44c284];!_0x316807['has'](_0x4e42a1)&&_0x4e42a1['previous']&&(_0x2a1fb1['add'](_0x4e42a1['previous']),_0x4e42a1['previous']['next']===_0x4e42a1&&(_0x4e42a1['previous']['next']=null),_0x4e42a1['previous']=null),!_0x2990ae['has'](_0x4e42a1)&&_0x4e42a1['next']&&(_0x2a1fb1['add'](_0x4e42a1['next']),_0x4e42a1['next']['previous']===_0x4e42a1&&(_0x4e42a1['next']['previous']=null),_0x4e42a1['next']=null);}function _0x2cb4cb(_0x1146c4,_0x39df83,_0x53a695){for(let _0x36c354=_0x53a695;_0x36c354<_0x39df83['length'];_0x36c354++){const _0x5ef95a=_0x118791(_0x1146c4,_0x39df83[_0x36c354]);_0x5ef95a&&(_0x5ef95a[0x0]['next']=_0x5ef95a[0x1],_0x5ef95a[0x1]['previous']=_0x5ef95a[0x0],_0x2990ae['add'](_0x5ef95a[0x0]),_0x316807['add'](_0x5ef95a[0x1]));}}function _0x118791(_0x25408c,_0x2973a8){if(_0x25408c['author']['id']!==_0x2973a8['author']['id'])return null;const _0x339748=_0x49d4fa['get'](_0x25408c)(_0x25408c,_0x2973a8,_0x525b96['get'](_0x25408c),_0x525b96['get'](_0x2973a8));if(!_0x339748)return null;return _0x49d4fa['get'](_0x2973a8)(_0x25408c,_0x2973a8,_0x525b96['get'](_0x25408c),_0x525b96['get'](_0x2973a8))?_0x339748[0x1]['commentThread']&&_0x339748[0x1]['commentThread']['length']?null:_0x339748:null;}_0x2a1fb1['size']&&this['_refreshSuggestionsChain'](_0x2a1fb1);}['_refreshAttributeSuggestionsChain'](_0x150ac8){if(0x0==_0x150ac8['length'])return;const _0x3d4834=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x267a5c=>'attribute'==_0x267a5c['type']&&_0x267a5c['_isDataLoaded']),_0x49c4b8=[],_0x267745=new Map();for(const _0x103fd2 of _0x3d4834){const _0x5ac78a=_0x846a2f(_0x103fd2['attributes']);_0x267745['has'](_0x5ac78a)||(_0x267745['set'](_0x5ac78a,_0x49c4b8['length']),_0x49c4b8['push']([]));const _0x21cffe=_0x267745['get'](_0x5ac78a);_0x49c4b8[_0x21cffe]['push'](_0x103fd2);}!(function(){_0x49c4b8['sort']((_0x3557e2,_0x26c30b)=>{const _0x4e21ab=_0x3557e2[0x0]['createdAt'],_0x1038bc=_0x26c30b[0x0]['createdAt'];return _0x4e21ab==_0x1038bc?_0x3557e2[0x0]['attributes']['groupId']<_0x26c30b[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e21ab<_0x1038bc?-0x1:0x1;});for(const _0x3de025 of _0x49c4b8)_0x3de025['sort']((_0x288aaa,_0x92274f)=>_0x288aaa['id']<_0x92274f['id']?-0x1:0x1);}());for(let _0x2def8c=0x0;_0x2def8c<_0x49c4b8['length'];_0x2def8c++){if(0x0==_0x49c4b8[_0x2def8c]['length'])continue;const _0x3ed2be=[];for(let _0x5b3ca1=_0x2def8c+0x1;_0x5b3ca1<_0x49c4b8['length'];_0x5b3ca1++)0x0!=_0x49c4b8[_0x5b3ca1]['length']&&_0x26d393(_0x49c4b8[_0x2def8c],_0x49c4b8[_0x5b3ca1])&&_0x3ed2be['push'](_0x5b3ca1);for(const _0x3823f1 of _0x3ed2be)_0x49c4b8[_0x2def8c]=_0x49c4b8[_0x2def8c]['concat'](_0x49c4b8[_0x3823f1]),_0x49c4b8[_0x3823f1]=[];}for(const _0x4a52c6 of _0x49c4b8)for(let _0x10ccce=0x0;_0x10ccce<_0x4a52c6['length'];_0x10ccce++){const _0x55f454=_0x4a52c6[_0x10ccce+0x1]||null;_0x4a52c6[_0x10ccce]['next']!==_0x55f454&&(_0x4a52c6[_0x10ccce]['next']=_0x55f454);}for(const _0x16859b of _0x49c4b8)for(let _0x2b6c99=0x0;_0x2b6c99<_0x16859b['length'];_0x2b6c99++){const _0x1e5c79=_0x16859b[_0x2b6c99-0x1]||null;_0x16859b[_0x2b6c99]['previous']!==_0x1e5c79&&(_0x16859b[_0x2b6c99]['previous']=_0x1e5c79);}function _0x26d393(_0x4a7f7f,_0x150d9d){if(_0x4a7f7f[0x0]['attributes']['groupId']!==_0x150d9d[0x0]['attributes']['groupId']&&_0x4a7f7f[0x0]['author']!==_0x150d9d[0x0]['author'])return!0x1;if(!function(_0x21d6a6,_0x5aa834){if(!_0x21d6a6['hasComments']&&!_0x5aa834['hasComments'])return!0x0;if(_0x21d6a6['hasComments']&&_0x5aa834['hasComments'])return!0x1;if(_0x21d6a6['hasComments']&&_0x5aa834['createdAt']<_0x21d6a6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5aa834['hasComments']&&_0x21d6a6['createdAt']<_0x5aa834['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4a7f7f[0x0],_0x150d9d[0x0]))return!0x1;const _0x473970=Jt(_0x4a7f7f[0x0]['attributes'],['groupId','trackingSessionId']),_0x4d2b63=Jt(_0x150d9d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x18158c(_0x473970,_0x4d2b63))return!0x1;if(_0x4a7f7f[0x0]['attributes']['groupId']==_0x150d9d[0x0]['attributes']['groupId'])return!0x0;if(_0x4a7f7f[0x0]['attributes']['trackingSessionId']!==_0x150d9d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4a7f7f['every'](_0x5c337f=>_0x150d9d['some'](_0x44a854=>_0x5c337f['getFirstRange']()['isEqual'](_0x44a854['getFirstRange']())))&&_0x150d9d['every'](_0x14d11c=>_0x4a7f7f['some'](_0x1fa080=>_0x14d11c['getFirstRange']()['isEqual'](_0x1fa080['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x29e4d4){const _0x5f3ae9=Array['from'](_0x29e4d4),_0x325729=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4fcba7=_0x325729['filter'](_0x34f5ea=>!_0x29e4d4['has'](_0x34f5ea)),_0x3d6d27=new Map(_0x5f3ae9['map'](_0x2d9786=>[_0x2d9786,this['_suggestionFactory']['getSuggestionCallback'](_0x2d9786['type'],_0x2d9786['subType'],'join')])),_0x1176f5=new Map(_0x325729['map'](_0x35825e=>[_0x35825e,_0x35825e['getRanges']()]));for(let _0x42cc0f=0x0;_0x42cc0f<_0x5f3ae9['length'];_0x42cc0f++){if(_0x89fe40(this,_0x5f3ae9[_0x42cc0f],_0x5f3ae9,_0x42cc0f+0x1))return!0x0;}for(let _0x3363bd=0x0;_0x3363bd<_0x5f3ae9['length'];_0x3363bd++){if(_0x89fe40(this,_0x5f3ae9[_0x3363bd],_0x4fcba7,0x0))return!0x0;}return!0x1;function _0x89fe40(_0xe561b7,_0x50eac9,_0x194298,_0x5f1e49){for(let _0x473ef5=_0x5f1e49;_0x473ef5<_0x194298['length'];_0x473ef5++){const _0x36d8f6=_0x194298[_0x473ef5];if(_0x36d8f6['type']!==_0x50eac9['type']||_0x36d8f6['author']['id']!==_0x50eac9['author']['id']||_0x36d8f6['subType']!==_0x50eac9['subType'])continue;if(!ne(_0x50eac9,_0x36d8f6))continue;if('attribute'==_0x50eac9['type']&&_0x50eac9['data']['oldValue']!=_0x36d8f6['data']['oldValue'])continue;if('attribute'==_0x50eac9['type']&&_0xe561b7['_isBlockAttribute'](_0x50eac9['data']['key']))continue;if('formatBlock'==_0x50eac9['type']){const _0x1c0827=_0xe561b7['editor']['model'],_0x535cab=_0x50eac9['getContainedElement']();if(_0x535cab&&(_0x1c0827['schema']['isObject'](_0x535cab)||_0x1c0827['schema']['isLimit'](_0x535cab)))continue;}const _0x34bb82=_0x3d6d27['get'](_0x50eac9),_0xf87fa7=_0x1176f5['get'](_0x50eac9),_0x42a9ae=_0x1176f5['get'](_0x36d8f6),_0x50d33f=_0x50eac9['commentThread']&&_0x50eac9['commentThread']['length'],_0x209131=_0x36d8f6['commentThread']&&_0x36d8f6['commentThread']['length'];if(!_0x50d33f&&_0x34bb82(_0x42a9ae,_0xf87fa7))return _0xe561b7['_joinSuggestions'](_0x36d8f6,_0x50eac9),_0x1176f5['delete'](_0x50eac9),!0x0;if(!_0x209131&&_0x34bb82(_0xf87fa7,_0x42a9ae))return _0xe561b7['_joinSuggestions'](_0x50eac9,_0x36d8f6),_0x1176f5['delete'](_0x36d8f6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x24684e,_0x365225){if(_0x24684e['isMultiRange']){for(const _0x46610d of _0x365225['getRanges']())_0x24684e['addRange'](_0x46610d);}else{const _0x2e452a=_0x365225['getFirstRange']()['end'];this['_setSuggestionRange'](_0x24684e,this['_model']['createRange'](_0x24684e['getFirstRange']()['start'],_0x2e452a));}_0x365225['removeMarkers']();}['_getMarkerAnnouncementText'](_0xe0d62d,_0x2e35d5,_0x4fb483){const _0x42221f=_0xe0d62d['startsWith']('format')||_0xe0d62d['startsWith']('attribute')?'FORMATTING':_0xe0d62d['toUpperCase']();return o(this['editor']['locale'],_0x2e35d5+'_'+_0x42221f+'_SUGGESTION_ANNOUNCEMENT',_0x4fb483);}['_initAriaMarkerChangeAnnouncements'](){const _0x5983b5=this['editor'];if(!_0x5983b5['ui'])return;const {ariaLiveAnnouncer:_0x573a59}=_0x5983b5['ui'];_0x122be3(this['_model'],({left:_0x2f0318,entered:_0x89b5d5})=>{for(const _0x6e8e6e of _0x2f0318){const {group:_0x2a6c86,type:_0x24ff44}=this['_splitMarkerName'](_0x6e8e6e['name']);if('suggestion'===_0x2a6c86){_0x573a59['announce'](this['_getMarkerAnnouncementText'](_0x24ff44,'LEAVE'));break;}}for(const _0x257c92 of _0x89b5d5){const {group:_0x158faf,type:_0x1c11f8}=this['_splitMarkerName'](_0x257c92['name']);if('suggestion'===_0x158faf){_0x573a59['announce'](this['_getMarkerAnnouncementText'](_0x1c11f8,'ENTER',_0x34cbc7(_0xa18ac9)));break;}}});}['_processAttributeChanges'](_0x45ba34){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4021aa=this['editor'],_0x4e55b1=_0x4021aa['model']['document']['differ']['getChanges']();if(0x0==_0x4e55b1['length'])return!0x1;const _0x520e8d=[],_0x541b1d=_0x4e55b1['filter'](_0x3d6a0f=>'attribute'==_0x3d6a0f['type']),_0x1a48f0=_0x4e55b1['filter'](_0x48e796=>'insert'==_0x48e796['type']&&'$text'!=_0x48e796['name']),_0x477579=_0x4e55b1['filter'](_0x3407d0=>'remove'==_0x3407d0['type']&&'$text'!=_0x3407d0['name']);for(const _0x5d21ac of _0x541b1d)_0x520e8d['push']({'key':_0x5d21ac['attributeKey'],'newValue':_0x5d21ac['attributeNewValue'],'oldValue':_0x5d21ac['attributeOldValue'],'range':te(_0x5d21ac['range'],_0x4021aa['model'])});for(const _0x16062f of _0x1a48f0){const _0xf38af2=_0x477579['find'](_0x492794=>_0x492794['position']['isEqual'](_0x16062f['position']));_0xf38af2&&_0x520e8d['push']({'key':m,'newValue':_0x16062f['name'],'oldValue':_0xf38af2['name'],'range':_0x4021aa['model']['createRangeOn'](_0x16062f['position']['nodeAfter'])});}return 0x0!=_0x520e8d['length']&&this['_reduceExistingSuggestions'](_0x45ba34,_0x520e8d);}['_processAttributeSuggestions'](_0x1f013f){let _0x11da4a=!0x1;const _0x1483ba=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3826fc=>_0x3826fc['data']['newRange']&&_0x3826fc['name']['startsWith']('suggestion:attribute:'));for(const _0x261904 of _0x1483ba){const {subType:_0x4ccfd5,id:_0x2dfb9f}=this['_splitMarkerName'](_0x261904['name']),_0x1a2c6e=_0x4ccfd5['split']('|')[0x0];for(const _0xb8a430 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb8a430['id']!=_0x2dfb9f&&'attribute'==_0xb8a430['type']&&_0xb8a430['data']&&_0xb8a430['data']['key']==_0x1a2c6e&&_0xb8a430['getFirstRange']()['isIntersecting'](_0x261904['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb8a430,_0x261904['data']['newRange'],_0x1f013f),_0x11da4a=!0x0);}return _0x11da4a;}['recordAttributeChanges'](_0x52b3e5){this['_recordAttributeSuggestions']=!0x0,_0x52b3e5();}['_isRegisteredAttribute'](_0xbc5b7){const _0x453fd3=this['_isBlockAttribute'](_0xbc5b7),_0x15e59a=this['_isInlineAttribute'](_0xbc5b7);return _0x453fd3||_0x15e59a;}['_reduceExistingSuggestions'](_0x3b6c4b,_0x34edea){if(0x0==_0x34edea['length'])return!0x1;let _0x226a61=!0x1;for(const _0x5f1e6e of _0x34edea){const _0x52f6d6=this['_findSuggestions'](_0x5f1e6e['range'],'attribute')['filter'](_0x32da72=>!_0x32da72['meta']['isNextTo'])['map'](_0x512932=>_0x512932['suggestion']),_0x116d4d=_0x846a2f({'newValue':_0x5f1e6e['newValue']});_0x52f6d6['filter'](_0x341de2=>{const [_0x3a313a,_0xc921ba]=_0x341de2['subType']['split']('|');return _0x3a313a==_0x5f1e6e['key']&&_0xc921ba!=_0x116d4d;})['forEach'](_0x1f551f=>{this['_reduceSuggestionAttributeRange'](_0x1f551f,_0x5f1e6e['range'],_0x3b6c4b),_0x226a61=!0x0;});}return _0x226a61;}['_reduceSuggestionAttributeRange'](_0x52c43d,_0x1d0327,_0x1c7def){const _0x5bf3af=_0x52c43d['getFirstRange']()['getDifference'](_0x1d0327);0x0!==_0x5bf3af['length']?0x1!==_0x5bf3af['length']?this['_breakSuggestionMarker'](_0x52c43d,_0x1d0327['start'],_0x1d0327['end']):this['_setSuggestionRange'](_0x52c43d,_0x5bf3af[0x0]):_0x1c7def['removeMarker'](_0x52c43d['getFirstMarker']());}}class Kt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x490a8c){this['_editor']=_0x490a8c,this['_model']=_0x490a8c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x24008e,_0x5ea051,_0x15b1ac,_0x13abba,_0x41b359,_0x478bc8,_0x1a7fce){return new R(this['_model'],{'type':_0x24008e,'subType':_0x5ea051,'id':_0x15b1ac,'originalSuggestionId':_0x1a7fce,'author':_0x13abba,'creator':_0x13abba,'attributes':_0x41b359,'onAttributesChange':_0x478bc8,'onAccept':(..._0x56973d)=>this['getSuggestionCallback'](_0x24008e,_0x5ea051,'accept')(..._0x56973d),'onDiscard':(..._0xabfee6)=>this['getSuggestionCallback'](_0x24008e,_0x5ea051,'discard')(..._0xabfee6)});}['registerCustomCallback'](_0x27dfb9,_0x44925f,_0x256c66,_0x1cd064){const _0x12ac50=_0x27dfb9+':'+_0x44925f+':'+_0x256c66;this['_customCallbacks']['set'](_0x12ac50,_0x1cd064);}['getSuggestionCallback'](_0x4f20af,_0x4e76e1,_0x572f24){const _0x56dadc=_0x4f20af+':'+_0x4e76e1+':'+_0x572f24;return this['_customCallbacks']['get'](_0x56dadc)||this['_defaultCallbacks']['get'](_0x4f20af+':'+_0x572f24);}['_registerDefaultCallbacks'](){const _0x5e32dc=()=>!0x1,_0x5bceb5=_0x24a9eb=>{_0x24a9eb['sort']((_0x8ea7c4,_0x5023e7)=>_0x8ea7c4['start']['isBefore'](_0x5023e7['start'])?0x1:-0x1),this['_model']['change'](_0x4000c9=>{for(const _0x6f572e of _0x24a9eb){let _0x54bb75;_0x54bb75=_0x6f572e['end']['isAtEnd']&&_0x6f572e['end']['parent']==_0x6f572e['start']['nodeAfter']?_0x4000c9['createSelection'](_0x6f572e['start']['nodeAfter'],'on'):_0x4000c9['createSelection'](_0x6f572e),this['_model']['deleteContent'](_0x54bb75,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x25adc0=(_0x52a0d9,_0x16cf09)=>{_0x16cf09&&this['_model']['change'](_0xa96bea=>{const {commandName:_0x1b5f0b,commandParams:_0x5683cf=[]}=_0x16cf09,_0x412bac=_0x52a0d9['map'](_0x4af189=>(Ht(_0x4af189)&&(_0x4af189=this['_model']['createRange'](_0x4af189['end'])),_0x4af189))['filter'](_0x58a884=>'$graveyard'!==_0x58a884['root']['rootName']);if(_0x412bac['length']<0x1)return;const _0x3dbdf8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b05b2=>_0x360709['fromRange'](_0x2b05b2));_0xa96bea['setSelection'](_0x412bac);for(const _0xbc9912 of this['_editor']['commands']['commands']())_0xbc9912['refresh']();_0x5683cf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1b5f0b,..._0x5683cf);const _0x570c82=_0x3dbdf8['filter'](_0x5e1850=>'$graveyard'!=_0x5e1850['root']['rootName']);_0x570c82['length']>0x0&&_0xa96bea['setSelection'](_0x570c82);for(const _0x18d768 of _0x3dbdf8)_0x18d768['detach']();});},_0x5039c0=(_0x5c8c6c,_0x2f8322)=>0x1==_0x5c8c6c['length']&&0x1==_0x2f8322['length']&&_0x5c8c6c[0x0]['end']['isEqual'](_0x2f8322[0x0]['start']),_0x1fc011=(_0x221b98,_0x3c0e36,_0x12048a,_0x4c747f)=>ie(_0x221b98,_0x3c0e36,_0x12048a,_0x4c747f)?[_0x221b98,_0x3c0e36]:ie(_0x3c0e36,_0x221b98,_0x4c747f,_0x12048a)?[_0x3c0e36,_0x221b98]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e32dc),this['_defaultCallbacks']['set']('insertion:discard',_0x5bceb5),this['_defaultCallbacks']['set']('insertion:join',_0x5039c0),this['_defaultCallbacks']['set']('insertion:chain',_0x1fc011),this['_defaultCallbacks']['set']('deletion:accept',_0x5bceb5),this['_defaultCallbacks']['set']('deletion:discard',_0x5e32dc),this['_defaultCallbacks']['set']('deletion:join',_0x5039c0),this['_defaultCallbacks']['set']('deletion:chain',_0x1fc011),this['_defaultCallbacks']['set']('formatInline:accept',_0x25adc0),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e32dc),this['_defaultCallbacks']['set']('formatInline:join',_0x5039c0),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e32dc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x25adc0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e32dc),this['_defaultCallbacks']['set']('formatBlock:join',_0x5039c0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e32dc),this['_defaultCallbacks']['set']('attribute:accept',_0x5e32dc),this['_defaultCallbacks']['set']('attribute:discard',(_0x281fa8,_0x1be07a)=>{if(!_0x1be07a)return;const _0x1a2a8e=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xaeb30=>{if(_0x1be07a['key']==m)for(const _0x48ce4b of _0x281fa8){const _0x571fdd=_0x48ce4b['start']['nodeAfter'],_0x169c7c=_0x1be07a['oldValue'];_0xaeb30['rename'](_0x571fdd,_0x169c7c);}else{if(_0x1a2a8e['_isBlockAttribute'](_0x1be07a['key'])){for(const _0x17860d of _0x281fa8)void 0x0!==_0x1be07a['oldValue']?_0xaeb30['setAttribute'](_0x1be07a['key'],_0x1be07a['oldValue'],_0x17860d['start']['nodeAfter']):_0xaeb30['removeAttribute'](_0x1be07a['key'],_0x17860d['start']['nodeAfter']);}else{for(const _0x507483 of _0x281fa8)_0x1be07a['oldValue']?_0xaeb30['setAttribute'](_0x1be07a['key'],_0x1be07a['oldValue'],_0x507483):_0xaeb30['removeAttribute'](_0x1be07a['key'],_0x507483);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5039c0);}}function qt(_0x2ef399,_0x5f1551,_0x234594){for(const _0x326315 of _0x5f1551['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x326315['root']==_0x326315)return!0x1;if(!_0x234594['containsItem'](_0x326315))return!0x1;if(_0x2ef399['isObject'](_0x326315)||_0x2ef399['isLimit'](_0x326315))return!0x0;}return!0x1;}function Ht(_0x4c555f){return _0x4c555f['end']['parent']==_0x4c555f['start']['nodeAfter']&&_0x4c555f['end']['isAtStart'];}function Wt(_0x5020a6,_0x15097f,_0x3bc87b,_0x534261){const _0x3fb37b=_0x5653f7=>!_0x5653f7['item']['is']('$textProxy')&&!_0x534261['isObject'](_0x5653f7['item']),_0x1acee3=_0x5020a6['start']['getLastMatchingPosition'](_0x3fb37b),_0x499cc9=_0x5020a6['end']['getLastMatchingPosition'](_0x3fb37b,{'direction':'backward'});return(!_0x5020a6['start']['isEqual'](_0x1acee3)||!_0x5020a6['end']['isEqual'](_0x499cc9))&&(_0x1acee3['isBefore'](_0x499cc9)?_0x3bc87b['updateMarker'](_0x15097f,{'range':_0x3bc87b['createRange'](_0x1acee3,_0x499cc9)}):_0x3bc87b['removeMarker'](_0x15097f),!0x0);}function zt(_0x1e1e4d){return _0x846a2f(_0x1e1e4d);}function Qt(_0x1ba4cf){const _0x2dd958=_0x1ba4cf['start']['nodeAfter'];return _0x2dd958&&_0x2dd958['is']('element');}function Xt(_0x239e32){return Ht(_0x239e32)||function(_0xef7e9f){return _0xef7e9f['start']['parent']==_0xef7e9f['end']['nodeBefore']&&_0xef7e9f['start']['isAtEnd'];}(_0x239e32);}function Yt(_0x277b51,_0xca722){try{const _0x318d24=_0x277b51['getRange']();for(const _0x4e03a5 of _0xca722)if(_0x277b51!==_0x4e03a5&&_0x318d24&&_0x318d24['isIntersecting'](_0x4e03a5['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x3adb33,_0x55f108){const _0x3bc440=_0x3adb33['end']['nodeBefore'];if(_0x3bc440&&_0x3bc440['is']('element')&&_0x55f108['schema']['isBlock'](_0x3bc440)&&!_0x55f108['schema']['isObject'](_0x3bc440)){const _0x3d41f1=_0x55f108['createPositionAt'](_0x3bc440,'end');return _0x55f108['createRange'](_0x3adb33['start'],_0x3d41f1);}return _0x3adb33;}function te(_0x36df68,_0x14648a){return null==_0x36df68['end']['nodeBefore']&&_0x36df68['end']['parent']==_0x36df68['start']['nodeAfter']?ee(_0x36df68['start']['nodeAfter'],_0x14648a):_0x36df68;}function ee(_0x3ad5b3,_0x49179a){const _0x33ea24=_0x49179a['schema']['isObject'](_0x3ad5b3)||_0x49179a['schema']['isSelectable'](_0x3ad5b3);return _0x49179a['createRange'](_0x49179a['createPositionAt'](_0x3ad5b3,'before'),_0x33ea24?_0x49179a['createPositionAfter'](_0x3ad5b3):_0x49179a['createPositionAt'](_0x3ad5b3,'end'));}function ie(_0x2ca893,_0x575577,_0x424b01,_0x50a76b){return!!ne(_0x2ca893,_0x575577)&&_0x424b01['end']['isEqual'](_0x50a76b['start']);}function ne(_0x18ef20,_0x3d4ed1){if(!_0x18ef20['_isDataLoaded']||!_0x3d4ed1['_isDataLoaded'])return!0x1;const _0x3dc317=new Set(Object['keys'](_0x18ef20['attributes'])),_0x51abb8=new Set(Object['keys'](_0x3d4ed1['attributes']));if(_0x3dc317['delete']('groupId'),_0x51abb8['delete']('groupId'),0x0==_0x3dc317['size']&&0x0==_0x51abb8['size'])return!0x0;if(_0x3dc317['size']!=_0x51abb8['size'])return!0x1;const _0x47c5be={..._0x18ef20['attributes']},_0x4ce399={..._0x3d4ed1['attributes']};return delete _0x47c5be['groupId'],delete _0x4ce399['groupId'],JSON['stringify'](_0x47c5be)==JSON['stringify'](_0x4ce399);}function se(_0x4a3e8e,_0x1a48e6){const _0x2db632=oe(_0x4a3e8e['attributes']),_0x3d7493=oe(_0x1a48e6);if(!_0x4a3e8e['_isDataLoaded'])return!0x1;for(const _0x25cda5 of Object['keys'](_0x3d7493))if(!_0x18158c(_0x2db632[_0x25cda5],_0x3d7493[_0x25cda5]))return!0x1;return!0x0;}function oe(_0x37cad5){const _0xc54336=Object['assign']({},_0x37cad5);return delete _0xc54336['skipNestingCheck'],delete _0xc54336['tablePasteChainId'],_0xc54336;}function re(_0x1322ae){return _0x1322ae['split']('|')[0x0];}function ae(_0x1939d0,_0xfdb7e8){for(const [_0x7873c3,_0x482449]of _0x1939d0['markers']){const _0x43d853=_0x5ed2f1['_createFromRanges'](_0x482449['getTransformedByOperation'](_0xfdb7e8));_0x1939d0['markers']['set'](_0x7873c3,_0x43d853);}}class ve extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x50e5df(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3687fd,_0x3d92cd,_0x189136,_0x28dd45){super(),this['model']=_0x3d92cd,this['view']=_0x189136,this['commentThreadController']=_0x28dd45,this['_editor']=_0x3687fd,this['_acceptCommand']=_0x3687fd['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3687fd['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3d2a1b,_0xcf5fe2)=>_0x3d2a1b||_0xcf5fe2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4e17d0=>_0x4e17d0&&this['_editor']['model']['canEditAt'](_0x3d92cd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x25f096=>_0x25f096&&this['_editor']['model']['canEditAt'](_0x3d92cd['getRanges']())),this['_pendingAction']=null,_0x189136['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x189136,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x189136,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x189136,'change:isDirty',()=>{_0x189136['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 _0x320d66=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x320d66);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3c71d5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1242a8,_0x980e99,_0x388e02,_0x312f1e){super(_0x1242a8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x8bf392(_0x1242a8,o(_0x1242a8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x980e99['authoredAt']),this['bind']('authoredAt')['to'](_0x980e99),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',_0x980e99,'authoredAt',this,'descriptionParts',(_0x4dc6e9,_0x2e9893,_0x25e4de)=>{const _0x576e7a=_0x25e4de['map'](_0x475cce=>ls(_0x475cce['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4dc6e9-0x1,_0x980e99['author']['name'],_0x2e9893?_0x312f1e['formatDateTime'](_0x2e9893):'',new DOMParser()['parseFromString'](_0x576e7a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x241955(),this['focusTracker']=new _0x428031(),this['keystrokes']=new _0x2d41ee(),this['focusCycler']=new _0x48b5c3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x164f3b=>_0x164f3b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x980e99,this['_localUser']=_0x388e02,this['_config']=_0x312f1e,_0x312f1e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x28ee0a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x447d71}=this['_config'];this['commentsListView']=new _0x447d71(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',_0x1ac30a=>_0x1ac30a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xc1e939,_0x29fd4b)=>_0xc1e939||!!_0x29fd4b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x135b75}=this['_config'],_0xb70f83=new _0x135b75(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35efc3=_0xb70f83['commentInputView'];return _0xb70f83['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35efc3,'value',(_0x5e8950,_0x367cae,_0x38c66d)=>!!_0x38c66d||_0x5e8950&&!_0x367cae),_0x35efc3['on']('submit',(_0x4633da,_0x29b210)=>{this['fire']('addComment',_0x29b210),_0x35efc3['editor']['setData']('');}),_0x35efc3['on']('cancel',()=>this['focus']()),_0x35efc3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xb70f83;}}class xe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2b62b1,_0x896234,_0x2fabdb,_0x1499a1){super(_0x2b62b1,_0x896234,_0x2fabdb,_0x1499a1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3c81db=>_0x3c81db&&_0x3c81db[0x0]?_0x3c81db[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1200da,_0x118a82)=>{let _0x3e1693='';for(const _0x28cc3a of _0x1200da)_0x3e1693+='<p>'+ls(_0x28cc3a['content'],_0x28cc3a['color'])+'</p>';return _0x118a82?_0x3e1693:_0x46624a(_0x3e1693,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1499a1['SuggestionView'](_0x2b62b1,_0x896234,{'formatDateTime':_0x1499a1['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 _0x5bea80=this['bindTemplate'],_0x2dc557=[this['suggestionView']];return this['commentsListView']&&_0x2dc557['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2dc557['push'](this['commentThreadInputView']),_0x2dc557['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5bea80['if']('isActive','ck-suggestion-wrapper--active'),_0x5bea80['to']('type',_0x42b840=>'ck-suggestion-'+_0x42b840),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':_0x5bea80['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2dc557};}['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 Ae extends _0x3c71d5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3c0cf4,_0xd9c068,_0x30fe61){super(_0x3c0cf4),this['_model']=_0xd9c068,this['_config']=_0x30fe61,this['set']('description',''),this['bind']('authoredAt')['to'](_0xd9c068),this['acceptButton']=this['_createButton'](o(_0x3c0cf4,'Accept\x20suggestion'),_0x10c019,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3c0cf4,'Discard\x20suggestion'),_0x244396,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5bbe40(_0x3c0cf4,_0xd9c068['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x241955([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x428031(),this['keystrokes']=new _0x2d41ee(),this['focusCycler']=new _0x48b5c3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2cfacb=>_0x2cfacb['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x50597f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x50597f['innerHTML']=this['description'],this['on']('change:description',(_0x57d807,_0x1c95cf,_0x782c5b)=>{_0x50597f['innerHTML']=_0x782c5b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5c153e=this['bindTemplate'],_0x5eea52=[{'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':_0x5c153e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5c153e['to']('authoredAt',_0x4f23c2=>this['_config']['formatDateTime'](_0x4f23c2))}]}]},{'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']&&_0x5eea52['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':_0x5eea52}]};}['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'](_0x390c91,_0x595854,_0x66fd81,_0x541523,_0x5060c2){const _0x5a0459=new _0x5fafb9(this['locale']);return _0x5a0459['set']({'label':_0x390c91,'icon':_0x595854,'tooltip':!0x0,'tooltipPosition':_0x5060c2}),_0x5a0459['extendTemplate']({'attributes':{'class':_0x66fd81}}),_0x5a0459['on']('execute',()=>{this['fire'](_0x541523,this['_model']['id']);}),_0x5a0459;}['_setupKeyboardNavigation'](){const _0x50d8bf=this['element'];this['keystrokes']['listenTo'](_0x50d8bf);for(const _0x18d196 of this['focusables'])this['focusTracker']['add'](_0x18d196['element']),this['keystrokes']['listenTo'](_0x18d196['element']);this['keystrokes']['set']('enter',(_0x4d8344,_0x3cff70)=>{_0x50d8bf===_0x4d8344['target']&&(this['focusCycler']['focusFirst'](),_0x3cff70());}),this['keystrokes']['set']('esc',(_0x2c1bba,_0x1a5ee8)=>{_0x50d8bf!==_0x2c1bba['target']&&(this['focus'](),_0x1a5ee8());});}}class u extends _0x3f9a7e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x553a10,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x86dd2f){super(_0x86dd2f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x268b12=this['editor']['config'];_0x268b12['define']('trackChanges.SuggestionThreadView',xe),_0x268b12['define']('trackChanges.SuggestionView',Ae),_0x268b12['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x268b12['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x26c005,_0x28131e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3f4578,_0x5012b0]of this['_handleControllerBuffer']){const _0x2556bc=this['_suggestionToController']['has'](_0x3f4578);_0x2556bc||_0x5012b0?_0x2556bc&&_0x5012b0&&this['_destroyController'](_0x3f4578):this['_initializeController'](_0x3f4578);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x26c005,_0x28131e);}['init'](){const _0x514d91=this['editor'],_0x40bde3=_0x514d91['plugins']['get']('TrackChangesEditing'),_0x398562=_0x514d91['plugins']['get']('Annotations'),_0x3cf316=_0x514d91['plugins']['get']('EditorAnnotations'),_0x29abf0=_0x514d91['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3cf316['addSourceCollector'](()=>{const _0x4ce3c2=[];for(const [_0x542317,_0x1770fd]of Array['from'](this['_suggestionToController'])){const _0x45d249=_0x542317['getAllAdjacentSuggestions'](),_0x852cd3=[];for(const _0x482d85 of _0x45d249){if(!_0x482d85['isInContent'])continue;if(_0x482d85['isMultiRange']){_0x852cd3['push'](..._0x482d85['getRanges']());continue;}const _0x2f2791=_0x482d85['getFirstRange']();if(_0x852cd3['length']>0x0){const _0x2f07a4=_0x852cd3[0x0]['getJoined'](_0x2f2791);if(_0x2f07a4){_0x852cd3[0x0]=_0x2f07a4;continue;}}_0x852cd3['push'](_0x2f2791);}_0x4ce3c2['push']([_0x1770fd['view'],_0x852cd3]);}return _0x4ce3c2;}),this['listenTo'](_0x40bde3,'suggestionLoaded',(_0x4eceb5,_0x307eb9)=>{this['listenTo'](_0x307eb9,'change:previous',(_0x56cc5b,_0x1708e3,_0x42c48c,_0x131279)=>{_0x307eb9['isInContent']&&(null==_0x42c48c?(this['_updateController'](_0x131279['head']),this['_handleSuggestionControllerDelayed'](_0x307eb9,!0x1)):(this['_updateController'](_0x42c48c['head']),null==_0x131279&&this['_handleSuggestionControllerDelayed'](_0x307eb9,!0x0)));}),null!==_0x307eb9['previous']?this['_updateController'](_0x307eb9['head']):this['_handleSuggestionControllerDelayed'](_0x307eb9,!0x1);}),this['listenTo'](_0x40bde3,'suggestionUnloaded',(_0xea488a,_0x15340a,_0x18b02d)=>{this['stopListening'](_0x15340a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x15340a),this['_suggestionToController']['has'](_0x15340a)&&this['_destroyController'](_0x15340a),_0x18b02d&&this['_updateController'](_0x18b02d['head']);}),this['listenTo'](_0x40bde3,'suggestionChanged',(_0x11b37,_0x5d1664)=>{this['_updateController'](_0x5d1664);}),this['listenTo'](_0x398562,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x29abf0,'addComment',(_0x29a79e,{threadId:_0x2b3195,isFromAdapter:_0x406ff1})=>{if(_0x406ff1||!_0x40bde3['hasSuggestion'](_0x2b3195))return;const _0x25a8df=_0x40bde3['getSuggestion'](_0x2b3195);this['_suggestionToController']['get'](_0x25a8df)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x170333=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xded273;for(const _0x3bbf37 in _0x170333){const _0x395bf7=_0x3bbf37,_0x5313cf=_0x170333[_0x395bf7];if('trackChangesLicenseKeyValid'==_0x5313cf||'trackChangesLicenseKeyInvalid'==_0x5313cf||'trackChangesLicenseKeyExpired'==_0x5313cf||'trackChangesLicenseKeyDomainLimit'==_0x5313cf||'trackChangesLicenseKeyNotAllowed'==_0x5313cf||'trackChangesLicenseKeyEvaluationLimit'==_0x5313cf||'trackChangesLicenseKeyTrialLimit'==_0x5313cf||'trackChangesLicenseKeyUsageLimit'==_0x5313cf){delete _0x170333[_0x395bf7],_0xded273=_0x5313cf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xded273&&_0x170333['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xded273&&_0x170333['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xded273&&_0x170333['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xded273&&_0x170333['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xded273&&_0x170333['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xded273&&_0x170333['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xded273&&_0x170333['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x9a09af){const _0x497b52=this['_suggestionToController']['get'](_0x9a09af);if(!_0x497b52)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x497b52['view'])||null;}['getSuggestionForAnnotation'](_0x46759b){const _0x403e73=this['_viewToController']['get'](_0x46759b['innerView']);return _0x403e73?_0x403e73['model']:null;}['_refreshActiveMarkers'](){const _0x326c8d=this['editor']['plugins']['get']('Annotations'),_0xa3cfca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d5716=Array['from'](_0x326c8d['activeAnnotations'],_0x3ebd98=>_0x3ebd98['innerView'])['filter'](_0x2b57f2=>this['_viewToController']['has'](_0x2b57f2)),_0x166049=[];for(const _0x18b59f of _0x2d5716){const _0x2593eb=this['_viewToController']['get'](_0x18b59f)['model']['getAllAdjacentSuggestions']();_0x166049['push'](..._0x2593eb['reduce']((_0x52d868,_0x24577e)=>[..._0x52d868,..._0x24577e['getMarkerNames']()],[]));}_0xa3cfca['activeMarkers']=_0x166049;}['_addUIComponentsToFactory'](){const _0x2ebfee=this['editor'],_0x413b16=_0x2ebfee['locale'],_0x3fd385=o(_0x413b16,'Track\x20changes'),_0x2eea0e=new _0x4662bd([{'type':'switchbutton','model':new _0x41e09b({'withText':!0x0,'isToggleable':!0x0,'label':_0x3fd385,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2ebfee['plugins']['has']('TrackChangesPreview')&&_0x2eea0e['addMany']([{'type':'separator'},{'type':'button','model':new _0x41e09b({'withText':!0x0,'label':o(_0x413b16,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4d35ac of _0x2eea0e)if(Ee(_0x4d35ac)){const _0x1b2911=_0x2ebfee['commands']['get'](_0x4d35ac['model']['commandName']);_0x4d35ac['model']['bind']('isOn','isEnabled')['to'](_0x1b2911,'value','isEnabled');}_0x2ebfee['ui']['componentFactory']['add']('trackChanges',_0xc2598a=>this['_createToolbarButton'](_0xc2598a,_0x2eea0e,_0x3fd385)),_0x2ebfee['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5d009f=>this['_createMenuBarMenu'](_0x5d009f,_0x2eea0e,_0x3fd385));}['_createToolbarButton'](_0x519825,_0x4077bf,_0x4b3e70){const _0x3a3e52=_0x5dca4d(_0x519825,_0x218d99),_0x48d34b=this['editor']['commands']['get']('trackChanges');_0x3a3e52['buttonView']['set']({'tooltip':_0x4b3e70,'label':_0x4b3e70,'icon':_0x18839f}),_0x3a3e52['buttonView']['bind']('isOn')['to'](_0x48d34b,'value'),_0x3a3e52['buttonView']['on']('execute',()=>{_0x48d34b['execute'](),this['editor']['editing']['view']['focus']();}),_0x23ad15(_0x3a3e52,_0x4077bf,{'role':'menu'});const _0x5c316b=[];for(const _0x9b8bf1 of _0x4077bf)Ee(_0x9b8bf1)&&_0x5c316b['push'](this['editor']['commands']['get'](_0x9b8bf1['model']['commandName']));const _0x5c582c=_0x3a3e52['buttonView'];return _0x5c582c['actionView']['unbind']('isEnabled'),_0x5c582c['arrowView']['unbind']('isEnabled'),_0x5c582c['actionView']['bind']('isEnabled')['to'](_0x48d34b,'isEnabled'),_0x5c582c['arrowView']['bind']('isEnabled')['toMany'](_0x5c316b,'isEnabled',(..._0x3fd46b)=>_0x3fd46b['some'](_0x52993c=>_0x52993c)),_0x3a3e52['on']('execute',_0x7966bc=>{this['editor']['execute'](_0x7966bc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a3e52;}['_createMenuBarMenu'](_0x293017,_0x30cdd3,_0x531491){const _0x3d447e=new _0x1fd282(_0x293017),_0x33694b=this['editor']['commands']['get']('trackChanges');_0x3d447e['buttonView']['set']({'label':_0x531491,'icon':_0x18839f});const _0x1d4b8f=new _0x4cf1c4(_0x293017);for(const _0x357147 of _0x30cdd3){if('separator'==_0x357147['type']){_0x1d4b8f['items']['add'](new _0x434a07(_0x293017));continue;}const _0x437f8e=new _0x10dfd6(_0x293017,_0x3d447e),_0x402958=new _0x4271cf(_0x293017),_0x4ff5f5=_0x357147['model'];_0x402958['bind'](...Object['keys'](_0x4ff5f5))['to'](_0x4ff5f5),_0x402958['delegate']('execute')['to'](_0x3d447e),_0x402958['on']('execute',()=>{this['editor']['execute'](_0x4ff5f5['commandName']),this['editor']['editing']['view']['focus']();}),_0x437f8e['children']['add'](_0x402958),_0x1d4b8f['items']['add'](_0x437f8e);}return _0x3d447e['bind']('isEnabled')['to'](_0x33694b,'isEnabled'),_0x3d447e['panelView']['children']['add'](_0x1d4b8f),_0x3d447e;}['_initializeController'](_0x4520ec){const _0x2c255a=this['editor'],_0x5ceab4=_0x2c255a['config'],_0x148007=_0x2c255a['plugins']['get']('Annotations'),_0xff5007=_0x2c255a['plugins']['get']('CommentsRepository'),_0x134dc4=_0x2c255a['plugins']['get']('EditorAnnotations'),_0x5f4e2d=_0x2c255a['plugins']['get'](_0x553a10)['me'],_0x469f5b=_0x5ceab4['get']('trackChanges')['SuggestionThreadView'],_0x35f3c4=_0x5ceab4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x44af45,CommentThreadInputView:_0x67fdb5}=_0x2c255a['plugins']['get']('CommentsUI');let _0x1ecb70,_0xf00e85,_0x5bd7dc;this['_annotationViews']['has'](_0x4520ec['id'])?(_0xf00e85=this['_annotationViews']['get'](_0x4520ec['id']),_0x1ecb70=_0xf00e85['mainView']):(_0x1ecb70=new _0x469f5b(_0x2c255a['locale'],_0x4520ec,_0x5f4e2d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5ceab4['get']('comments.editorConfig'),'licenseKey':_0x5ceab4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5ceab4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5ceab4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5ceab4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x64632c(_0x5ceab4['get']('locale'),_0x2c255a['locale']),'CommentView':_0x5ceab4['get']('comments')['CommentView'],'CommentsListView':_0x44af45,'CommentThreadInputView':_0x67fdb5,'SuggestionView':_0x35f3c4}),_0x1ecb70['suggestionView']['acceptButton']['on']('execute',()=>{_0x2c255a['editing']['view']['focus']();}),_0x1ecb70['suggestionView']['discardButton']['on']('execute',()=>{_0x2c255a['editing']['view']['focus']();}),_0xf00e85=_0x148007['createAnnotationView'](this['editor']['locale'],_0x1ecb70),_0xf00e85['bind']('isDirty')['to'](_0x1ecb70,'isDirty'),_0xf00e85['bind']('length')['to'](_0x1ecb70),_0xf00e85['bind']('type')['to'](_0x1ecb70,'type',_0x5e4520=>'suggestion-'+_0x5e4520),_0x1ecb70['on']('escape',()=>{_0x5bd7dc['fire']('escape');}),this['_annotationViews']['set'](_0x4520ec['id'],_0xf00e85));const _0x73c54=_0xff5007['createCommentThreadController'](_0x4520ec['commentThread'],_0x1ecb70),_0x312277=new ve(_0x2c255a,_0x4520ec,_0x1ecb70,_0x73c54),_0x16ce51=_0x4520ec['getAllAdjacentSuggestions']()['filter'](_0x10c084=>_0x10c084['isInContent']);_0x1ecb70['descriptionParts']=_0x2c255a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16ce51),this['_suggestionToController']['set'](_0x4520ec,_0x312277),this['_viewToController']['set'](_0x1ecb70,_0x312277);const _0x52b841=()=>{const _0x1acf96=[],_0x107f6f=_0x4520ec['getAllAdjacentSuggestions']()['filter'](_0x8d1f82=>_0x8d1f82['isInContent']);for(const _0x2d8e28 of _0x107f6f)_0x1acf96['push'](..._0x2d8e28['getMarkers']());return _0x953b8d(_0x2c255a['editing'],_0x1acf96);};_0x5bd7dc=_0x148007['createAnnotation']({'view':_0xf00e85,'target':_0x52b841,'type':()=>'suggestion-'+_0x312277['view']['type'],'isVisible':!!_0x52b841()}),_0xff5007['_bindAnnotationToEditors'](_0x1ecb70,_0x5bd7dc),_0x148007['add'](_0x5bd7dc),_0x134dc4['registerAnnotation'](_0x5bd7dc);}['_destroyController'](_0x4bcb70){const _0xb5282e=this['editor']['plugins']['get']('CommentsRepository'),_0x4b0a31=this['editor']['plugins']['get']('Annotations'),_0x1494fd=this['_suggestionToController']['get'](_0x4bcb70),_0x152201=_0x1494fd['view'],_0x42445a=_0x4b0a31['getByInnerView'](_0x152201);_0xb5282e['_unbindEditors'](_0x152201),_0x42445a&&_0x4b0a31['remove'](_0x42445a),this['_suggestionToController']['delete'](_0x4bcb70),this['_viewToController']['delete'](_0x152201),_0x1494fd['destroy']();}['_updateController'](_0x1ff312){if(!_0x1ff312['isInContent']||!this['_suggestionToController']['has'](_0x1ff312))return;const _0x253d50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x484bb9=this['_suggestionToController']['get'](_0x1ff312),_0xab8540=_0x1ff312['getAllAdjacentSuggestions']();_0x484bb9['view']['descriptionParts']=_0x253d50['descriptionFactory']['getDescriptions'](_0xab8540);}['destroy'](){for(const _0x52488b of this['_suggestionToController']['keys']())this['_destroyController'](_0x52488b);for(const _0x824ecb of this['_annotationViews']['values']())_0x824ecb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ee(_0x24bb68){return'model'in _0x24bb68;}class Ke extends _0x3f9a7e{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x144add){this['editor']['plugins']['get'](d)['adapter']=_0x144add;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x222fda){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x222fda);}['getSuggestions']({skipNotAttached:_0x20bd33=!0x1,toJSON:_0x472e2f=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x20bd33,'toJSON':_0x472e2f});}['getSuggestion'](_0x42f99d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x42f99d);}}const p=['Pagination'];class me extends _0x3f9a7e{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5e050d=this['editor'];if(_0x5e050d['config']['define']('trackChangesData.editorCreator',_0x3e13e3=>{const _0x588534=_0x5e050d['model']['document']['getRootNames']()['reduce']((_0x58d733,_0x577804)=>(_0x58d733[_0x577804]='',_0x58d733),{});return _0x5e050d['constructor']['create'](_0x588534,_0x3e13e3);}),'function'!=typeof _0x5e050d['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ac6d4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4da656){return P(this['editor'],!0x0,_0x4da656);}['getDataWithDiscardedSuggestions'](_0x53e2ab){return P(this['editor'],!0x1,_0x53e2ab);}}class Xe extends _0x3f9a7e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1957e2){function _0x2c940c(_0x5b0e56){return _0x5b0e56['map'](_0x524b45=>String['fromCharCode'](_0x524b45))['join']('');}super(_0x1957e2),this['result']='end',_0x1957e2[_0x2c940c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c940c([0x76,0x69,0x65,0x77])][_0x2c940c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c940c([0x61,0x75,0x74,0x6f]),_0x1957e2[_0x2c940c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c940c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c940c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c940c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c940c([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 Ye(_0x4e8d10){return void 0x0!==_0x4e8d10['getRootsAttributes'];}async function P(_0x5c3d28,_0x23c7af,_0x52bb5c){const _0x325aaa=_0xb5f771(_0x5c3d28,p);_0x325aaa['plugins']['push'](d,Xe),_0x325aaa['rootsAttributes']=Ye(_0x5c3d28)?_0x5c3d28['getRootsAttributes']():void 0x0;const _0x1a73b2=document['createDocumentFragment'](),_0x4c73ba=_0x5c3d28['config']['get']('trackChangesData')['editorCreator'],_0x599a14=await _0x4c73ba(_0x325aaa,()=>function(_0x31e1b9){const _0x438d16=document['createElement']('div');return _0x31e1b9['appendChild'](_0x438d16),_0x438d16;}(_0x1a73b2));!function(_0x44df29,_0x5c91a5){const _0xc904cb=_0x44df29['model']['document']['getRootNames']()['reduce']((_0x25f3f6,_0x3bf897)=>(_0x25f3f6[_0x3bf897]=_0x44df29['data']['get']({'rootName':_0x3bf897}),_0x25f3f6),{}),_0x899449=_0x44df29['plugins']['get']('Users')['users']['map'](_0x190362=>({'id':_0x190362['id'],'name':_0x190362['name']})),_0x2b354f=_0x44df29['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2fa2ed=_0x44df29['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5243e0=_0x5c91a5['plugins']['get']('Users'),_0x108f32=_0x5c91a5['plugins']['get']('TrackChangesEditing'),_0x2b50bc=_0x5c91a5['plugins']['get']('CommentsRepository');for(const _0x1ff41f of _0x2b50bc['getCommentThreads']())_0x1ff41f['remove']();for(const _0x1c702d of _0x899449)_0x5243e0['getUser'](_0x1c702d['id'])||_0x5243e0['addUser'](_0x1c702d);_0x5243e0['me']||_0x5243e0['useAnonymousUser']();for(const _0x16cf2d of _0x2fa2ed)_0x2b50bc['addCommentThread'](_0x16cf2d);for(const _0x53f684 of _0x2b354f)_0x108f32['addSuggestionData'](_0x53f684);_0x5c91a5['data']['set'](_0xc904cb);}(_0x5c3d28,_0x599a14),_0x599a14['execute'](_0x23c7af?'acceptAllSuggestions':'discardAllSuggestions');const _0xa13571=Ye(_0x599a14)?_0x599a14['getFullData'](_0x52bb5c):_0x599a14['data']['get'](_0x52bb5c);return await _0x599a14['destroy'](),_0xa13571;}class _e extends _0x3c71d5{['options'];constructor(_0x29c76d,_0x4e3cce){super(_0x29c76d),this['options']=_0x4e3cce,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'](_0x143826,_0x311b84){if(!this['element'])return;const _0x589221=[];for(const [_0x5b88fb,_0x284084]of _0x143826){const _0x43cfed=document['createElement']('div');_0x43cfed['setAttribute']('data-ck-root-name',_0x5b88fb),_0x43cfed['className']=_0x284084['classes']+'\x20ck-track-changes-preview__root-container',_0x43cfed['innerHTML']=_0x284084['content'],_0x589221['push'](_0x43cfed);}_0x311b84(this['element'],_0x589221),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ue extends _0x16fb88{constructor(_0x17bc65){super(_0x17bc65),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3b7a39=this['editor'],_0x5e25d6=_0x3b7a39['locale'],_0x3a6376=_0x3b7a39['plugins']['get']('Dialog');let _0xbf59b2;const _0x547296=function(_0x4f29ea){const _0x1ffe5a={};if('editables'in _0x4f29ea['ui']['view']){for(const [_0x749b72,_0x397a81]of Object['entries'](_0x4f29ea['ui']['view']['editables']))_0x1ffe5a[_0x749b72]=_0x397a81['element'];}else _0x1ffe5a[_0x4f29ea['model']['document']['getRootNames']()[0x0]]=_0x4f29ea['ui']['view']['editable']['element'];return _0x1ffe5a;}(_0x3b7a39),_0x2c69a9=function(_0x512ec4){let _0x516240=0x0;for(const _0x125e0d of Object['values'](_0x512ec4))_0x516240=Math['max'](_0x516240,_0x125e0d['getBoundingClientRect']()['width']);let _0x2df395=0x0;for(const _0x3014ea of Object['values'](_0x512ec4))_0x2df395+=_0x3014ea['getBoundingClientRect']()['height'];const _0x3b2b6a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x15bbf6=Math['min'](_0x2df395,_0x3b2b6a);return{'width':_0x516240,'height':_0x15bbf6};}(_0x547296);_0x3a6376['show']({'id':'finalContentPreview','title':o(_0x5e25d6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x5e25d6,{'dialogRects':_0x2c69a9}),'onHide':()=>{_0xbf59b2['detachFromDom']();},'onShow':()=>{_0x3b7a39['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x335445=>{const _0x35158f=this['_standarizeRootsData'](_0x335445,_0x3b7a39,_0x547296);_0x3a6376['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x35158f,_0x3b7a39['config']['get']('trackChanges.preview.renderFunction'));}),_0xbf59b2=new _0x2ecd61(_0x5e25d6,[_0x3a6376['view']]),_0xbf59b2['attachToDom'](),_0xbf59b2['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3b7a39['once']('destroy',()=>{_0xbf59b2['detachFromDom']();});const _0x293b1d=_0x3a6376['view']['headerView']['class'];_0x3a6376['view']['headerView']['class']=_0x293b1d?_0x293b1d+'\x20ck-reset_all':'ck-reset_all',_0x3a6376['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3a6376['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2da2ba=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57f8b9=_0x2da2ba['previewMode'],_0x3bb162={};if('$labels'===_0x57f8b9){for(const _0x709983 of _0x2da2ba['getMergeFieldsIds']())_0x3bb162[_0x709983]=_0x2da2ba['getLabel'](_0x709983)||_0x709983;}else{const _0x35c98e='$defaultValues'===_0x57f8b9?_0x2da2ba['getDefaultValues']():_0x2da2ba['getDataSetValues'](_0x57f8b9,!0x0);for(const _0x9e28c5 of Object['entries'](_0x35c98e)){const [_0x5434ed,_0x397f87]=_0x9e28c5;_0x3bb162[_0x5434ed]=null!==_0x397f87?_0x397f87:_0x2da2ba['getLabel'](_0x5434ed)||_0x5434ed;}}return{'mergeFieldsData':_0x3bb162};}['_standarizeRootsData'](_0x5cf5ce,_0x3ccfa6,_0x34ceda){let _0x2c11b8;if('string'==typeof _0x5cf5ce){const _0x109b39=_0x3ccfa6['model']['document']['getRootNames']()[0x0];_0x2c11b8={[_0x109b39]:_0x5cf5ce};}else _0x2c11b8=_0x5cf5ce;const _0x2fc10a=this['_fixMediaEmbeds'](_0x2c11b8,_0x3ccfa6),_0x1040e2=function(_0x49d04f,_0x40c790){for(const [_0x164cca,_0x489128]of _0x49d04f)_0x489128['classes']=_0x40c790[_0x164cca]['classList']['value']['replace']('ck-focused','');return _0x49d04f;}(this['_sortRoots'](_0x3ccfa6)['reduce']((_0x161a4e,_0x10e7c8)=>(_0x161a4e['push']([_0x10e7c8,{'content':_0x2fc10a[_0x10e7c8],'classes':''}]),_0x161a4e),[]),_0x34ceda);return _0x1040e2;}['_fixMediaEmbeds'](_0x1812ee,_0x243c9f){if(!_0x243c9f['plugins']['has']('MediaEmbedEditing'))return _0x1812ee;const _0x101fe2=_0x243c9f['plugins']['get']('MediaEmbedEditing');for(const [_0x5c6274,_0x463457]of Object['entries'](_0x1812ee)){const _0x5d2822=document['createElement']('div');_0x5d2822['innerHTML']=_0x463457,(_0x5d2822['querySelectorAll']('figure.media')['forEach'](_0x222e94=>{const _0x396f26=_0x222e94['querySelector']('oembed');if(_0x396f26){const _0x1f97c8=_0x396f26['getAttribute']('url');if(_0x1f97c8){const _0x16c430=_0x101fe2['registry']['getMediaViewElement'](new _0x2903e3(_0x243c9f['editing']['view']['document']),_0x1f97c8,{'elementName':'','renderForEditingView':!0x0}),_0x2a2cb6=document['createElement']('div');_0x2a2cb6['classList']['add']('ck-media__wrapper'),_0x16c430['render'](_0x2a2cb6,_0x243c9f['editing']['view']['domConverter']),_0x396f26['replaceWith'](_0x2a2cb6);}}}),_0x1812ee[_0x5c6274]=_0x5d2822['innerHTML']);}return _0x1812ee;}['_sortRoots'](_0x545e03){if(!function(_0x1582e5){return void 0x0!==_0x1582e5['getRootsAttributes'];}(_0x545e03))return _0x545e03['model']['document']['getRootNames']();const _0xf0bda=[],_0x1e0bba=new Map();for(const _0xd68656 of _0x545e03['model']['document']['getRootNames']()){const _0x1eace5=_0x545e03['editing']['view']['getDomRoot'](_0xd68656)['getClientRects']()['item'](0x0);_0xf0bda['push'](_0xd68656),_0x1e0bba['set'](_0xd68656,_0x1eace5);}return _0xf0bda['sort']((_0x2f984d,_0x53b7c1)=>{const _0x279264=_0x1e0bba['get'](_0x2f984d),_0x416e8b=_0x1e0bba['get'](_0x53b7c1);return _0x279264['y']-_0x416e8b['y']||_0x279264['x']-_0x416e8b['x'];}),_0xf0bda;}}class Qe extends _0x3f9a7e{static get['requires'](){return[me,_0x233f75];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25c70e){super(_0x25c70e),_0x25c70e['commands']['add']('previewFinalContent',new ue(this['editor'])),_0x25c70e['config']['define']('trackChanges.preview.renderFunction',(_0x270d16,_0x6b57c6)=>{for(const _0x5c66c6 of _0x6b57c6)_0x270d16['appendChild'](_0x5c66c6);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ue as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,xe as SuggestionThreadView,Ae as SuggestionView,Ke as TrackChanges,B as TrackChangesCommand,me as TrackChangesData,Xe as TrackChangesDataGetter,d as TrackChangesEditing,Qe as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x1e6711,Plugin as _0x555e71,PendingActions as _0x22a9e9}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5258bf,ObservableMixin as _0x345606,uid as _0x4fda17,priorities as _0x48f7b8,insertToPriorityArray as _0x587b3d,toArray as _0x1613bf,logWarning as _0x166a07,getEnvKeystrokeText as _0x14c4e4,FocusTracker as _0x5b48c5,KeystrokeHandler as _0x285187,Collection as _0x59e832}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x803c3d,IconCancel as _0x4a9841,IconTrackChanges as _0x2616a4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4b3666,View as _0x13b63f,ViewCollection as _0x1a0be8,FocusCycler as _0x589ddc,UIModel as _0x5c6ee1,createDropdown as _0x4f16a1,SplitButtonView as _0x13fcb5,addListToDropdown as _0x330c94,MenuBarMenuView as _0x13676d,MenuBarMenuListView as _0x3e8c93,ListSeparatorView as _0x4296e3,MenuBarMenuListItemView as _0x15fe20,MenuBarMenuListItemButtonView as _0x471059,BodyCollection as _0x1cd27e,Dialog as _0x113d48}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x15dc59,DocumentCompare as _0x21ae29,hashObject as _0x52205a,surroundingMarkersDetector as _0x3fbe60,FOCUS_ANNOTATION_KEYSTROKE as _0x1675c5,AriaDescriptionView as _0x5db02c,setupThreadKeyboardNavigation as _0x30c882,trimHtml as _0x4877fc,UserView as _0x37afaf,LateFocusButtonView as _0x374b26,getDateTimeFormatter as _0x1e1c18,getAllMarkersDomElementsSorted as _0x298588,sanitizeEditorConfig as _0x2d4845}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3e1cf6,ModelLiveRange as _0x1c1121,ModelLivePosition as _0x2c6117,ModelPosition as _0x46543f,ModelRange as _0x22f94c,_DetachOperation as _0x46f54d,ViewDowncastWriter as _0x165b75}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x58bd81,toWidget as _0x593b13}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x16bf50,set as _0x1ef4b5,isEqual as _0xa08205,unset as _0x481536,omit as Jt}from'es-toolkit/compat';import{Delete as _0x3599b5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x25152c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x185637}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1e6711{['_enabledCommands'];constructor(_0x44a742,_0x21947c){super(_0x44a742),this['_enabledCommands']=_0x21947c,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 _0x555df0 of this['editor']['commands']['commands']())_0x555df0['affectsData']&&!this['_enabledCommands']['has'](_0x555df0)&&_0x555df0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5ffd9c of this['editor']['commands']['commands']())_0x5ffd9c['affectsData']&&!this['_enabledCommands']['has'](_0x5ffd9c)&&_0x5ffd9c['clearForceDisabled']('TrackChangesCommand');}}class T extends _0x1e6711{['_suggestions'];constructor(_0x258c2c,_0x27628c){super(_0x258c2c),this['_suggestions']=_0x27628c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x13a005){const _0x4d9734=this['_suggestions']['get'](_0x13a005);if(!_0x4d9734)throw new _0x5258bf('track-changes-accept-suggestion-not-found',this);const _0x21439b=_0x4d9734['getRanges']();this['editor']['model']['canEditAt'](_0x21439b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4d9734);}}class O extends _0x1e6711{['_suggestions'];constructor(_0xc4a886,_0x26befc){super(_0xc4a886),this['_suggestions']=_0x26befc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3b99ff){const _0x38afe9=this['_suggestions']['get'](_0x3b99ff);if(!_0x38afe9)throw new _0x5258bf('track-changes-discard-suggestion-not-found',this);const _0x1ad4f0=_0x38afe9['getRanges']();this['editor']['model']['canEditAt'](_0x1ad4f0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x38afe9);}}function ls(_0x5da624,_0x5ece42){let _0x222189='';return _0x222189+=_0x5da624['split']('*')['map']((_0x2a5ac1,_0x3f8acf)=>_0x3f8acf%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x2a5ac1)+'</span>':tn(_0x2a5ac1))['join'](''),_0x5ece42&&(_0x222189+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5ece42['value']+'\x22\x20title=\x22'+_0x5ece42['title']+'\x22></span>'),_0x222189;}function tn(_0x2ad945){const _0x30a1e3=document['createElement']('span');return _0x30a1e3['innerText']=_0x2ad945,_0x30a1e3['innerHTML'];}function ts(_0xe54c56){return _0xe54c56['sort']((_0x2b9fc5,_0x486be4)=>'attribute'===_0x2b9fc5['type']&&'attribute'!==_0x486be4['type']?-0x1:'attribute'!==_0x2b9fc5['type']&&'attribute'===_0x486be4['type']?0x1:'deletion'==_0x2b9fc5['type']&&'deletion'!=_0x486be4['type']?-0x1:'deletion'!=_0x2b9fc5['type']&&'deletion'==_0x486be4['type']?0x1:0x0);}function to(_0x3984dd,_0x4f3f5e){let _0x2d867d,_0x18ee28=0x0;const _0x195270=[],_0x27a8cd=_0x4f3f5e['schema'];for(;_0x18ee28<_0x3984dd['length'];){const _0x21b073=_0x3984dd[_0x18ee28],_0x576da6=_0x3984dd[_0x18ee28+0x1];_0x2d867d||(_0x2d867d=_0x4f3f5e['createPositionBefore'](_0x21b073)),nn(_0x4f3f5e,_0x21b073,_0x576da6)||(_0x195270['push'](_0x4f3f5e['createRange'](_0x2d867d,_0x27a8cd['isObject'](_0x21b073)?_0x4f3f5e['createPositionAfter'](_0x21b073):_0x4f3f5e['createPositionAt'](_0x21b073,'end'))),_0x2d867d=null),_0x18ee28++;}return _0x195270;}function nn(_0x10b9cb,_0x2d242d,_0xb10d4c){if(!_0xb10d4c)return!0x1;const _0x11c559=_0x10b9cb['createPositionAfter'](_0x2d242d),_0xb8f56a=_0x10b9cb['createPositionBefore'](_0xb10d4c);return _0x11c559['isTouching'](_0xb8f56a);}function rs(_0x3a9de7,_0x553531,_0x42c606){for(;_0x42c606['length'];){const _0x50525e=_0x42c606['splice'](0x0,0x64);_0x3a9de7['change'](()=>{for(const _0x5868a8 of _0x50525e)_0x5868a8['isInContent']&&_0x553531['execute'](_0x5868a8['id']);});}}class x extends _0x1e6711{['_command'];['_suggestions'];constructor(_0x4439ee,_0x349082,_0x539624){super(_0x4439ee),this['_command']=_0x349082,this['_suggestions']=_0x539624,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fede1=Array['from'](this['_suggestions']['values']())['some'](_0x37f612=>_0x37f612['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4fede1;}['execute'](){const _0x74754c=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3b0fa8 of _0x74754c){const _0x47262b=_0x3b0fa8['getRanges']();if(!this['editor']['model']['canEditAt'](_0x47262b))return;}rs(this['editor']['model'],this['_command'],_0x74754c);}}class E extends _0x1e6711{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x409af8,_0xcf3664,_0x579459){super(_0x409af8),this['_command']=_0xcf3664,this['_suggestions']=_0x579459,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x167ff9=this['editor']['model']['document']['selection'],_0x5bb0f1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x11199f,_0x932879){const _0x36e549=Array['from'](_0x11199f['getRanges']()),_0xf522bc=new Set();for(const _0x4033da of _0x932879)if(_0x4033da['isInContent']){for(const _0x1c29a3 of _0x36e549)for(const _0x53b784 of _0x4033da['getRanges']())(_0x1c29a3['isIntersecting'](_0x53b784)||_0x11199f['isCollapsed']&&!_0x4033da['isMultiRange']&&_0x4033da['next']&&_0x53b784['end']['isTouching'](_0x1c29a3['start']))&&_0xf522bc['add'](_0x4033da);}return _0xf522bc;}(_0x167ff9,_0x5bb0f1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x114271=ts(Array['from'](this['_selectedSuggestions']));for(const _0x494061 of _0x114271){const _0x5deb8b=_0x494061['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5deb8b))return;}rs(this['editor']['model'],this['_command'],_0x114271);}}class R extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x345606(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x47e5fb,_0x42567f){super(),this['id']=_0x42567f['id'],this['type']=_0x42567f['type'],this['subType']=_0x42567f['subType']||null,this['author']=_0x42567f['author'],this['creator']=_0x42567f['creator']||_0x42567f['author'],this['isExternal']=Boolean(_0x42567f['attributes']&&_0x42567f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x42567f['originalSuggestionId']||null,this['_model']=_0x47e5fb,this['_onAccept']=_0x42567f['onAccept'],this['_onDiscard']=_0x42567f['onDiscard'],this['_onAttributesChange']=_0x42567f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x42567f['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 _0x2c8202=this;for(;_0x2c8202['previous'];)_0x2c8202=_0x2c8202['previous'];return _0x2c8202;}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'](_0x5dad1c){this['_markerNames']['add'](_0x5dad1c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44e352=>this['_model']['markers']['get'](_0x44e352))['filter'](_0x2a68b9=>_0x2a68b9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c0af4=>{for(const _0x33e612 of this['getMarkers']())_0x2c0af4['removeMarker'](_0x33e612);}),this['_markerNames']['clear']();}['removeMarker'](_0x33ac52){this['_model']['change'](_0x1c0ebd=>{_0x1c0ebd['removeMarker'](_0x33ac52);}),this['_markerNames']['delete'](_0x33ac52);}['addRange'](_0x160da2){const _0x3f50ee='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+R['getMultiRangeId']();this['addMarkerName'](_0x3f50ee),this['_model']['change'](_0xe2638a=>{_0xe2638a['addMarker'](_0x3f50ee,{'range':_0x160da2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xb1082e){for(const _0x378510 of this['getRanges']())if(_0x378510['isIntersecting'](_0xb1082e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47d485=>_0x47d485['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5fc31f,_0x4d9cee)=>[..._0x5fc31f,..._0x4d9cee['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3c1e2f=this['getRanges']();if(0x1!=_0x3c1e2f['length'])return null;const _0x128d89=_0x3c1e2f[0x0],_0x5c1846=_0x128d89['start']['nodeAfter'],_0x48d3fc=_0x128d89['end']['nodeBefore'];return _0x5c1846 instanceof _0x3e1cf6?_0x5c1846!=_0x48d3fc?null:_0x5c1846: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 _0x547aa6=[];let _0x180937=this['head'];for(;_0x180937;)_0x547aa6['push'](_0x180937),_0x180937=_0x180937['next'];return _0x547aa6;}['setAttribute'](_0x53cd8b,_0xe07ea0){const _0x1c56da=_0x16bf50(this['attributes']);_0x1ef4b5(_0x1c56da,_0x53cd8b,_0xe07ea0),_0xa08205(_0x1c56da,this['attributes'])||(this['attributes']=_0x1c56da,this['_onAttributesChange'](_0x1c56da));}['removeAttribute'](_0x386ad6){const _0x59e4fe=_0x16bf50(this['attributes']);_0x481536(_0x59e4fe,_0x386ad6),_0xa08205(_0x59e4fe,this['attributes'])||(this['attributes']=_0x59e4fe,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 _0x4fda17()['substr'](0x1,0x5);}}function o(_0x46856e,_0x39548f,_0x1ba7b4){const _0x2de5e4=_0x46856e['t'],t=_0x46856e['t'];switch(_0x39548f){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',_0x1ba7b4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1ba7b4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1ba7b4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1ba7b4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1ba7b4);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',_0x1ba7b4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1ba7b4);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',_0x1ba7b4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1ba7b4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1ba7b4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1ba7b4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1ba7b4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1ba7b4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1ba7b4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1ba7b4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1ba7b4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1ba7b4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1ba7b4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1ba7b4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1ba7b4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1ba7b4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1ba7b4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1ba7b4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1ba7b4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1ba7b4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1ba7b4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1ba7b4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1ba7b4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1ba7b4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1ba7b4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1ba7b4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1ba7b4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1ba7b4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ba7b4);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'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1ba7b4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1ba7b4);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'},_0x1ba7b4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1ba7b4);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 _0x2de5e4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1ba7b4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2de5e4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1ba7b4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1ba7b4);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'},_0x1ba7b4);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'},_0x1ba7b4);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'},_0x1ba7b4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x39548f;}}class U{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x227983,_0x2289fb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x227983,this['_locale']=_0x2289fb;}['getDescriptions'](_0x440066){const _0x3efbd1=[],_0x10d8b7=new Set(),_0x3e4c24=new Set();for(let _0x47f1b1=0x0;_0x47f1b1<_0x440066['length'];_0x47f1b1++){const _0x4586b2=_0x440066[_0x47f1b1];if(!_0x4586b2['isInContent'])continue;const _0x3ef8e4=this['_handleCustomCallbackDescription'](_0x4586b2);if(_0x3ef8e4){if(null!=_0x4586b2['subType']){if(_0x10d8b7['has'](_0x4586b2['subType']))continue;_0x10d8b7['add'](_0x4586b2['subType']);}_0x3efbd1['push'](_0x3ef8e4);}else{if('attribute'==_0x4586b2['type']){const _0x579c95=_0x4586b2['data']['key'];if(_0x3e4c24['has'](_0x579c95))continue;_0x3e4c24['add'](_0x4586b2['data']['key']),_0x579c95==m?this['_handleRenameSuggestionDescription'](_0x3efbd1,_0x4586b2):this['_handleAttributeSuggestionDescription'](_0x3efbd1,_0x4586b2);continue;}'insertion'!=_0x4586b2['type']&&'deletion'!=_0x4586b2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3efbd1,_0x4586b2,_0x440066[_0x47f1b1+0x1]);}}return this['_resolveDescriptionItems'](_0x3efbd1);}['registerDescriptionCallback'](_0x41a2dd){this['_customCallbacks']['push'](_0x41a2dd);}['registerElementLabel'](_0x2861d9,_0x10d4f5,_0x2a7b7b=_0x48f7b8['normal']){'function'==typeof _0x2861d9?_0x587b3d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2861d9,'label':_0x10d4f5,'priority':_0x2a7b7b}):this['_itemLabels']['set'](_0x2861d9,_0x10d4f5);}['registerAttributeLabel'](_0x1972ef,_0x25e076){this['_attributeLabels']['set'](_0x1972ef,_0x25e076);}['getItemLabel'](_0x5dc97d,_0x24f097=0x1){let _0x1a5300;for(const _0x5958c0 of this['_itemLabelsCallbacks'])if(_0x5958c0['matchingCallback'](_0x5dc97d)){_0x1a5300=_0x5958c0['label'];break;}return _0x1a5300||(_0x1a5300=this['_itemLabels']['get'](_0x5dc97d['name'])),_0x1a5300?_0x1a5300(_0x24f097):0x1!==_0x24f097?_0x24f097+'\x20'+_0x5dc97d['name']+'s':''+_0x5dc97d['name'];}['_addDescriptionItems'](_0x3e68eb,_0x3615c4){const _0x9eb147=_0x3615c4['getFirstRange']()['getWalker'](),_0x2a8a61='insertion'==_0x3615c4['type']?'add':'remove';for(const _0x4b70ea of _0x9eb147){const _0x447191=_0x4b70ea['item'],_0x160a25=_0x3e68eb[_0x3e68eb['length']-0x1];if(_0x447191['is']('$textProxy'))_0x160a25&&_0x160a25['type']['indexOf']('Container')>-0x1&&_0x3e68eb['pop'](),_0x160a25&&'text'==_0x160a25['type']?_0x160a25[_0x2a8a61]+=_0x447191['data']:_0x3e68eb['push']({'type':'text','add':'add'==_0x2a8a61?_0x447191['data']:'','remove':'remove'==_0x2a8a61?_0x447191['data']:''});else{if(this['_schema']['isObject'](_0x447191)){const _0x12de8b=_0x447191;if(_0x160a25&&_0x160a25['type']['indexOf']('Container')>-0x1&&_0x3e68eb['pop'](),'elementEnd'==_0x4b70ea['type'])continue;_0x160a25&&_0x160a25['type']==_0x2a8a61+'Object'&&_0x160a25['element']['name']==_0x12de8b['name']?_0x160a25['quantity']++:_0x3e68eb['push']({'type':_0x2a8a61+'Object','element':_0x12de8b,'quantity':0x1}),_0x9eb147['skip'](_0x25f821=>!('elementEnd'==_0x25f821['type']&&_0x25f821['item']==_0x447191));}else{if(this['_schema']['checkChild'](_0x447191,'$text')||_0x447191['is']('element','softBreak')){const _0x27953b=_0x447191;if('add'==_0x2a8a61&&'elementStart'==_0x4b70ea['type']||'remove'==_0x2a8a61&&'elementEnd'==_0x4b70ea['type'])continue;if(_0x160a25&&-0x1==_0x160a25['type']['indexOf']('Container')){'text'==_0x160a25['type']&&(_0x160a25[_0x2a8a61]+='\x0a');continue;}let _0x4478d3;if(_0x4478d3='add'==_0x2a8a61?_0x27953b['nextSibling']&&!this['_schema']['isObject'](_0x27953b['nextSibling'])?_0x27953b['nextSibling']:null:_0x27953b['previousSibling']&&!this['_schema']['isObject'](_0x27953b['previousSibling'])?_0x27953b['previousSibling']:null,_0x27953b['isEmpty']||_0x4478d3&&_0x4478d3['isEmpty']){const _0x3fc5b5=_0x4478d3&&_0x4478d3['isEmpty']?_0x4478d3:_0x27953b;_0x160a25&&_0x160a25['type']==_0x2a8a61+'EmptyContainer'&&_0x160a25['element']['name']==_0x3fc5b5['name']?_0x160a25['quantity']++:_0x3e68eb['push']({'type':_0x2a8a61+'EmptyContainer','element':_0x3fc5b5,'quantity':0x1});}else _0x3e68eb['push']({'type':_0x2a8a61+'Container','element':_0x27953b});}}}}}['_resolveDescriptionItems'](_0x3bc959){const _0x35d3fc=this['_locale'],_0x2fb1af=[],_0x48437d=[],_0x2c559f=[];for(const _0x2d0e0b of _0x3bc959)switch(_0x2d0e0b['type']){case'text':if(_0x2d0e0b['add']=_0x2d0e0b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2d0e0b['remove']=_0x2d0e0b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2d0e0b['add']&&''!=_0x2d0e0b['remove']){_0x2fb1af['push']({'type':'replace','content':o(_0x35d3fc,'REPLACE_TEXT',['\x22'+_0x2d0e0b['remove']+'\x22','\x22'+_0x2d0e0b['add']+'\x22'])});continue;}if(null!=_0x2d0e0b['add']['match'](/^ +$/)){_0x2fb1af['push']({'type':'insertion','content':o(_0x35d3fc,'*Insert:*\x20%0',o(_0x35d3fc,'ELEMENT_SPACE',_0x2d0e0b['add']['length']))});continue;}if(null!=_0x2d0e0b['remove']['match'](/^ +$/)){_0x2fb1af['push']({'type':'deletion','content':o(_0x35d3fc,'*Remove:*\x20%0',o(_0x35d3fc,'ELEMENT_SPACE',_0x2d0e0b['remove']['length']))});continue;}if(''!=_0x2d0e0b['add']){_0x2fb1af['push']({'type':'insertion','content':o(_0x35d3fc,'*Insert:*\x20%0','\x22'+_0x2d0e0b['add']+'\x22')});continue;}_0x2fb1af['push']({'type':'deletion','content':o(_0x35d3fc,'*Remove:*\x20%0','\x22'+_0x2d0e0b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2fb1af['push']({'type':'insertion','content':o(_0x35d3fc,'*Insert:*\x20%0',this['getItemLabel'](_0x2d0e0b['element'],_0x2d0e0b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2fb1af['push']({'type':'deletion','content':o(_0x35d3fc,'*Remove:*\x20%0',this['getItemLabel'](_0x2d0e0b['element'],_0x2d0e0b['quantity']))});continue;case'addContainer':_0x2fb1af['push']({'type':'insertion','content':o(_0x35d3fc,'*Split:*\x20%0',this['getItemLabel'](_0x2d0e0b['element'],_0x2d0e0b['quantity']))});continue;case'removeContainer':_0x2fb1af['push']({'type':'deletion','content':o(_0x35d3fc,'*Merge:*\x20%0',this['getItemLabel'](_0x2d0e0b['element'],_0x2d0e0b['quantity']))});continue;case'addFormat':_0x48437d['push'](_0x2d0e0b['key']);continue;case'removeFormat':_0x2c559f['push'](_0x2d0e0b['key']);continue;default:_0x2fb1af['push'](_0x2d0e0b);}if(_0x48437d['length']){const _0xbe1c97=_0x48437d['map'](_0x4d21ab=>this['_attributeLabels']['has'](_0x4d21ab)?this['_attributeLabels']['get'](_0x4d21ab):_0x4d21ab)['join'](',\x20');_0x2fb1af['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xbe1c97)});}if(_0x2c559f['length']){const _0x5a9bdf=_0x2c559f['map'](_0x3cea4a=>this['_attributeLabels']['has'](_0x3cea4a)?this['_attributeLabels']['get'](_0x3cea4a):_0x3cea4a)['join'](',\x20');_0x2fb1af['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5a9bdf)});}return _0x2fb1af;}['_handleCustomCallbackDescription'](_0xbd4d20){for(const _0x1c0224 of this['_customCallbacks']){const _0x51fffb=_0x1c0224(_0xbd4d20);if(_0x51fffb&&'type'in _0x51fffb)return _0x51fffb;}}['_handleAttributeSuggestionDescription'](_0x5a9fce,_0x389653){const _0x470e25=_0x389653['data'],_0x16ead3=void 0x0===_0x470e25['newValue']?'removeFormat':'addFormat';_0x5a9fce['push']({'type':_0x16ead3,'key':_0x470e25['key']});}['_handleRenameSuggestionDescription'](_0x5e8812,_0x23853b){_0x5e8812['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x23853b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x239edc,_0x305d5a,_0xacb004){if(this['_addDescriptionItems'](_0x239edc,_0x305d5a),_0xacb004&&_0xacb004['getFirstRange']()&&!_0x305d5a['getFirstRange']()['end']['isEqual'](_0xacb004['getFirstRange']()['start'])){const _0x1b8df9=_0x239edc[_0x239edc['length']-0x1],_0x286fb9='insertion'==_0x305d5a['type']?'add':'remove';_0x1b8df9&&'text'==_0x1b8df9['type']&&(_0x1b8df9[_0x286fb9]+='\x0a');}}}class V extends _0x555e71{['afterInit'](){const _0x8fee85=this['editor'],_0x32ec99=_0x8fee85['plugins']['get']('TrackChangesEditing');_0x8fee85['commands']['get']('showAIAssistant')&&_0x32ec99['enableCommand']('showAIAssistant');}}class F extends _0x555e71{['afterInit'](){const _0x554ba6=this['editor'],_0x4c1266=_0x554ba6['plugins']['get']('TrackChangesEditing');_0x554ba6['commands']['get']('toggleAi')&&_0x4c1266['enableCommand']('toggleAi');}}class G extends _0x555e71{['afterInit'](){const _0x4bd2b6=this['editor'],_0x5b43e0=_0x4bd2b6['plugins']['get']('TrackChangesEditing');_0x4bd2b6['commands']['get']('aiQuickAction')&&_0x5b43e0['enableCommand']('aiQuickAction');}}class L extends _0x555e71{['afterInit'](){const _0x57ad04=this['editor'],_0x52a964=_0x57ad04['locale'];if(!_0x57ad04['plugins']['has']('AlignmentEditing'))return;const _0xd9f8cc=_0x57ad04['plugins']['get']('TrackChangesEditing');_0xd9f8cc['enableDefaultAttributesIntegration']('alignment'),_0xd9f8cc['registerBlockAttribute']('alignment'),_0xd9f8cc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x52a964,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e3c31=this['editor'],_0x420f39=_0x2e3c31['locale'];_0x2e3c31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x564084=>{if('formatBlock'!=_0x564084['type'])return;const {data:_0x1551a7}=_0x564084;if(_0x1551a7&&'alignment'==_0x1551a7['commandName']){const _0xe453f9=_0x1551a7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x420f39,'*Format:*\x20%0',function(_0xb3a0ac){switch(_0xb3a0ac){case'left':return o(_0x420f39,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x420f39,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x420f39,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x420f39,'FORMAT_JUSTIFY_TEXT');}}(_0xe453f9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class J extends _0x555e71{['afterInit'](){const _0x303fbe=this['editor'],_0x136537=_0x303fbe['plugins']['get']('TrackChangesEditing'),_0x153d34=_0x303fbe['locale'];for(const _0xf55187 of ti){if(!_0x303fbe['plugins']['has'](_0xf55187))continue;const _0x181771=_0xf55187['slice'](0x0,-0x7)['toLowerCase'](),_0x5e74fd='FORMAT_'+_0x181771['toUpperCase']();_0x136537['enableDefaultAttributesIntegration'](_0x181771),_0x136537['registerInlineAttribute'](_0x181771),_0x136537['descriptionFactory']['registerAttributeLabel'](_0x181771,o(_0x153d34,_0x5e74fd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26dc02=this['editor'],_0x3e2d78=_0x26dc02['locale'],_0xece138=_0x26dc02['plugins']['get']('TrackChangesEditing');function _0x4e9691(_0x4acb98,_0x2c4053){_0xece138['descriptionFactory']['registerDescriptionCallback'](_0xb1d3cb=>{if('formatInline'!=_0xb1d3cb['type'])return;const {data:_0x2b1fcf}=_0xb1d3cb;return _0x2b1fcf&&_0x2b1fcf['commandName']===_0x4acb98?_0x2b1fcf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e2d78,'*Format:*\x20%0',_0x2c4053)}:{'type':'format','content':o(_0x3e2d78,'*Remove\x20format:*\x20%0',_0x2c4053)}:void 0x0;});}_0x4e9691('bold',o(_0x3e2d78,'FORMAT_BOLD')),_0x4e9691('italic',o(_0x3e2d78,'FORMAT_ITALIC')),_0x4e9691('underline',o(_0x3e2d78,'FORMAT_UNDERLINE')),_0x4e9691('code',o(_0x3e2d78,'FORMAT_CODE')),_0x4e9691('strikethrough',o(_0x3e2d78,'FORMAT_STRIKETHROUGH')),_0x4e9691('subscript',o(_0x3e2d78,'FORMAT_SUBSCRIPT')),_0x4e9691('superscript',o(_0x3e2d78,'FORMAT_SUPERSCRIPT'));}}class K extends _0x555e71{['afterInit'](){const _0x5183d2=this['editor'],_0x4e26a4=_0x5183d2['locale'];if(!_0x5183d2['plugins']['has']('BlockQuoteEditing'))return;const _0x572dd8=_0x5183d2['plugins']['get']('TrackChangesEditing'),_0xcb31be=this['editor']['commands']['get']('blockQuote');_0x572dd8['enableCommand']('blockQuote',(_0x11d96e,_0x1e0407={})=>{const _0x33e307=this['editor']['model']['document']['selection'],_0x9583d8=_0x1e0407&&void 0x0!==_0x1e0407['forceValue']?_0x1e0407['forceValue']:!_0xcb31be['value'];let _0xdc8395=[];if(_0x9583d8){const _0x52d44c=Array['from'](_0x33e307['getSelectedBlocks']())['filter'](_0x1a2f61=>oo(_0x1a2f61)||function(_0x5b1526,_0x213c38){const _0x5e13f8=_0x213c38['checkChild'](_0x5b1526['parent'],'blockQuote'),_0x3ee437=_0x213c38['checkChild'](['$root','blockQuote'],_0x5b1526);return _0x5e13f8&&_0x3ee437;}(_0x1a2f61,this['editor']['model']['schema']));_0xdc8395=to(_0x52d44c,_0x5183d2['model']);}else{const _0x4930c9=Array['from'](_0x33e307['getSelectedBlocks']())['filter'](_0x48a529=>oo(_0x48a529));_0xdc8395=to(_0x4930c9,_0x5183d2['model']);}_0x5183d2['model']['change'](()=>{for(const _0x55e706 of _0xdc8395)_0x572dd8['markBlockFormat'](_0x55e706,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x9583d8}]});});}),_0x572dd8['descriptionFactory']['registerDescriptionCallback'](_0x14d2a1=>{const {data:_0x53823c}=_0x14d2a1;if(_0x53823c&&'blockQuote'==_0x53823c['commandName']){const _0xcf73c9=o(_0x4e26a4,'ELEMENT_BLOCK_QUOTE');return _0x53823c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e26a4,'*Set\x20format:*\x20%0',_0xcf73c9)}:{'type':'format','content':o(_0x4e26a4,'*Remove\x20format:*\x20%0',_0xcf73c9)};}});}}function oo(_0x453308){return'blockQuote'==_0x453308['parent']['name'];}class q extends _0x555e71{['afterInit'](){const _0x193acb=this['editor'],_0x24fdb2=_0x193acb['locale'],_0x447c7c=_0x193acb['plugins']['get']('TrackChangesEditing');_0x193acb['plugins']['has']('BookmarkEditing')&&(_0x447c7c['enableCommand']('insertBookmark'),_0x447c7c['enableDefaultAttributesIntegration']('updateBookmark'),_0x447c7c['registerBlockAttribute']('bookmarkId'),_0x447c7c['descriptionFactory']['registerDescriptionCallback'](_0x2473c6=>{if('insertion'!=_0x2473c6['type']&&'deletion'!=_0x2473c6['type']&&'attribute'!=_0x2473c6['type'])return;const _0x351afa=_0x2473c6['getContainedElement']();if(null==_0x351afa)return;if(!_0x351afa['is']('element','bookmark'))return;const _0x4b8ea9=_0x351afa['getAttribute']('bookmarkId');if('insertion'==_0x2473c6['type'])return{'type':'insertion','content':o(_0x24fdb2,'*Insert:*\x20%0','\x22'+_0x4b8ea9+'\x22\x20'+o(_0x24fdb2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2473c6['type'])return{'type':'deletion','content':o(_0x24fdb2,'*Remove:*\x20%0','\x22'+_0x4b8ea9+'\x22\x20'+o(_0x24fdb2,'ELEMENT_BOOKMARK'))};const {data:_0x1bbafb}=_0x2473c6;if(!_0x1bbafb||'bookmarkId'!=_0x1bbafb['key'])return;return{'type':'format','content':o(_0x24fdb2,'*Set\x20bookmark:*\x20%0','\x22'+_0x1bbafb['newValue']+'\x22')};}));}}class H extends _0x555e71{['afterInit'](){const _0x9b1ecd=this['editor'];_0x9b1ecd['plugins']['has']('CaseChange')&&(_0x9b1ecd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x9b1ecd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x9b1ecd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class W extends _0x555e71{['afterInit'](){const _0x14ea0a=this['editor'];_0x14ea0a['commands']['get']('ckbox')&&_0x14ea0a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class z extends _0x555e71{['afterInit'](){const _0x3cc882=this['editor'];if(!_0x3cc882['plugins']['has']('CodeBlock'))return;const _0x23afc4=_0x3cc882['plugins']['get']('TrackChangesEditing'),_0x38ae90=_0x3cc882['locale'],_0x43c250=_0x3cc882['config']['get']('codeBlock')['languages'],_0x326797=_0x3cc882['commands']['get']('codeBlock');_0x23afc4['enableCommand']('indentCodeBlock'),_0x23afc4['enableCommand']('outdentCodeBlock'),_0x23afc4['enableCommand']('codeBlock',(_0x26e86d,_0x41d490={})=>{const _0x188b4c=_0x3cc882['model'],_0x34d3b5=_0x3cc882['model']['document']['selection'],_0x7cc5f8=_0x41d490&&void 0x0!==_0x41d490['forceValue']?_0x41d490['forceValue']:!_0x326797['value'];let _0x23bc3b;_0x41d490['language']||(_0x41d490['language']=_0x43c250[0x0]['language']),_0x23bc3b=_0x7cc5f8?Array['from'](_0x34d3b5['getSelectedBlocks']())['filter'](_0x3a4710=>co(_0x3a4710)||function(_0xd71d61,_0x348a2e){if(_0xd71d61['is']('rootElement')||_0x348a2e['isLimit'](_0xd71d61))return!0x1;return _0x348a2e['checkChild'](_0xd71d61['parent'],'codeBlock');}(_0x3a4710,_0x188b4c['schema'])):Array['from'](_0x34d3b5['getSelectedBlocks']())['filter'](_0x5b70d3=>co(_0x5b70d3));const _0x2ec74c=to(_0x23bc3b,_0x188b4c);_0x188b4c['change'](()=>{for(const _0x467959 of _0x2ec74c)_0x23afc4['markBlockFormat'](_0x467959,{'commandName':'codeBlock','commandParams':[{..._0x41d490,'forceValue':_0x7cc5f8}],'formatGroupId':'blockName'});});}),(_0x23afc4['descriptionFactory']['registerElementLabel']('codeBlock',_0xa0da7a=>o(_0x38ae90,'ELEMENT_CODE_BLOCK',_0xa0da7a)),_0x23afc4['descriptionFactory']['registerDescriptionCallback'](_0x3ba4ec=>{if('formatBlock'!=_0x3ba4ec['type'])return;const _0x3586ec=_0x38ae90['t'],{data:_0x3f4840}=_0x3ba4ec;if(!_0x3f4840||'codeBlock'!=_0x3f4840['commandName'])return;const _0x532092=_0x3f4840['commandParams'][0x0]['language'],_0x3f1687=_0x3586ec(_0x43c250['find'](_0x3f588c=>_0x3f588c['language']===_0x532092)['label'])['toLowerCase']();return _0x3f4840['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38ae90,'*Set\x20format:*\x20%0',o(_0x38ae90,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3f1687+')')}:{'type':'format','content':o(_0x38ae90,'*Remove\x20format:*\x20%0',o(_0x38ae90,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x493540){return'codeBlock'==_0x493540['name'];}class Q extends _0x555e71{['afterInit'](){const _0xa160da=this['editor'];if(!_0xa160da['plugins']['has']('CommentsEditing'))return;_0xa160da['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1c2634,_0x5e114d,_0x57cd09){const _0x5b5e82=[];for(const _0x2fd1ba of _0x5e114d['getItems']())_0x2fd1ba['hasAttribute'](_0x1c2634)&&_0x5b5e82['push'](_0x57cd09['createRangeOn'](_0x2fd1ba));return _0x5b5e82;}function Ve(_0x4de396,_0x13946b,{showActiveMarker:_0x7af15e=!0x0}={}){const _0x3f8dd0=_0x4de396['plugins']['get']('TrackChangesEditing');return(_0x544bdd,_0x1dc4e8,_0x2c4804)=>{if(!_0x2c4804['consumable']['test'](_0x1dc4e8['markerRange'],_0x544bdd['name']))return;const _0x1f0c1a=_0x1dc4e8['markerRange']['getWalker'](),_0x292846=_0x1dc4e8['markerRange']['start'],_0x34a88d=_0x4de396['model']['schema'];let _0xa23c33=null,_0x392f07=null,_0x41056a=!0x1,_0x14dcc0=!0x1;for(const _0x57c971 of _0x1f0c1a){const _0x57a6dd=_0x57c971['item'];_0x41056a=_0x41056a||_0x34a88d['isContent'](_0x57a6dd);const _0x5b3a61=_0x2c4804['mapper']['toViewElement'](_0x57a6dd);if(_0x5b3a61&&_0x5b3a61['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57c971['type']&&(_0x34a88d['isBlock'](_0x57a6dd)&&!_0x34a88d['isLimit'](_0x57a6dd)&&(_0x57a6dd['nextSibling']||_0x292846['isAtEnd']?_0xa23c33&&_0xa23c33['parent']==_0x57a6dd||(_0xa23c33=_0x57a6dd,_0x4489fc(_0x57c971['previousPosition']),_0x14dcc0=!0x0):_0x392f07=_0x392f07||_0x57c971['previousPosition']));}function _0x4489fc(_0x266d77){const {id:_0x326ffc,authorId:_0x22d900}=_0x3f8dd0['_splitMarkerName'](_0x1dc4e8['markerName']),_0xad4449=_0x2c4804['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13946b,'data-suggestion':_0x326ffc,'data-author-id':_0x22d900}),_0x16414d=_0x2c4804['mapper']['toViewPosition'](_0x266d77);_0x7af15e&&_0x3f8dd0['activeMarkers']['includes'](_0x1dc4e8['markerName'])&&_0x2c4804['writer']['addClass']('ck-suggestion-marker--active',_0xad4449),_0x2c4804['writer']['insert'](_0x16414d,_0xad4449),_0x2c4804['mapper']['bindElementToMarker'](_0xad4449,_0x1dc4e8['markerName']);}_0x41056a||_0x14dcc0||!_0x392f07||_0x4489fc(_0x392f07);};}class X extends _0x555e71{static get['requires'](){return[_0x3599b5];}['init'](){const _0x29f327=this['editor'],_0x4adf71=_0x29f327['plugins']['get']('TrackChangesEditing');_0x4adf71['enableCommand']('delete');const _0x285593=_0x29f327['commands']['get']('deleteForward');_0x4adf71['enableCommand']('deleteForward',(_0x45d69d,_0x3c4811={})=>{const _0x448ed7=_0x29f327['model']['createSelection'](_0x29f327['model']['document']['selection']);_0x448ed7['isCollapsed']&&_0x29f327['model']['modifySelection'](_0x448ed7,{'direction':'forward','unit':_0x3c4811['unit']});const _0x3a5245=_0x448ed7['getFirstRange'](),_0x2897be=_0x1c1121['fromRange'](_0x3a5245);let _0x5042ad;_0x45d69d(_0x3c4811),_0x5042ad='$graveyard'==_0x2897be['root']['rootName']?_0x29f327['model']['createRange'](_0x3a5245['start']):_0x29f327['model']['createRange'](_0x2897be['start'],_0x2897be['end']),_0x2897be['detach'](),_0x29f327['model']['enqueueChange'](_0x285593['buffer']['batch'],_0x5375d5=>{_0x285593['buffer']['lock'](),_0x5375d5['setSelection'](_0x5375d5['createRange'](_0x5042ad['end'])),_0x285593['buffer']['unlock']();});}),_0x29f327['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ve(_0x29f327,'merge'),{'priority':'high'}),_0x29f327['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5dc6d7,_0x47ccaf,_0x5b1691)=>{_0x5b1691['options']['showSuggestionHighlights']&&Ve(_0x29f327,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5dc6d7,_0x47ccaf,_0x5b1691);},{'priority':'high'}),_0x29f327['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5a1125,_0x59c238,_0x3a52b3)=>{const _0x1b25f0=_0x3a52b3['mapper']['markerNameToElements'](_0x59c238['markerName']);if(_0x1b25f0){for(const _0x3e511e of _0x1b25f0)_0x3e511e['is']('uiElement')&&(_0x3a52b3['mapper']['unbindElementFromMarkerName'](_0x3e511e,_0x59c238['markerName']),_0x3a52b3['writer']['remove'](_0x3e511e));}},{'priority':'high'});}}class Y extends _0x555e71{['afterInit'](){const _0x256496=this['editor'];if(!_0x256496['plugins']['has']('ListEditing'))return;const _0x2e228a=_0x256496['locale'],_0x4fecd2=_0x256496['plugins']['get']('TrackChangesEditing'),_0x5287f8=_0x256496['plugins']['has']('TodoListEditing'),_0x19c8bc=!!_0x256496['config']['get']('list.multiBlock');function _0x73d43c(_0x2e8e76){return{'type':'format','content':''+o(_0x2e228a,'*Set\x20format:*\x20%0',_0x2e8e76)};}function _0x2023aa(_0x5b91de){return{'type':'format','content':''+o(_0x2e228a,'*Remove\x20format:*\x20%0',_0x5b91de)};}_0x4fecd2['enableDefaultAttributesIntegration']('numberedList'),_0x4fecd2['enableDefaultAttributesIntegration']('bulletedList'),_0x4fecd2['enableDefaultAttributesIntegration']('customNumberedList'),_0x4fecd2['enableDefaultAttributesIntegration']('customBulletedList'),_0x4fecd2['enableDefaultAttributesIntegration']('indentList'),_0x4fecd2['enableDefaultAttributesIntegration']('outdentList'),_0x4fecd2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4fecd2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4fecd2['registerBlockAttribute']('listItemId'),_0x4fecd2['registerBlockAttribute']('listType'),_0x4fecd2['registerBlockAttribute']('listIndent'),_0x19c8bc&&(_0x4fecd2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4fecd2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5287f8&&(_0x4fecd2['enableDefaultAttributesIntegration']('todoList'),_0x4fecd2['enableDefaultAttributesIntegration']('checkTodoList'),_0x4fecd2['registerBlockAttribute']('todoListChecked'),_0x4fecd2['descriptionFactory']['registerDescriptionCallback'](_0x20bbec=>{const {data:_0x408c6e}=_0x20bbec;if(_0x408c6e&&'todoListChecked'==_0x408c6e['key'])return{'type':'format','content':_0x408c6e['newValue']?o(_0x2e228a,'*Check\x20item*'):o(_0x2e228a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c5dce=>{if(_0x3c5dce['batch']['isUndo'])return!0x1;let _0x2d192e=!0x1;const _0x4d7ac7=_0x4fecd2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55b822=>'todoListChecked'===_0x4fecd2['_getAttributeKey'](_0x55b822));for(const _0x1b719f of _0x4d7ac7){'todo'!=_0x1b719f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4fecd2['_findSuggestions'](_0x1b719f['getFirstRange'](),'attribute')['find'](_0x3e540c=>'listType'===_0x4fecd2['_getAttributeKey'](_0x3e540c['suggestion']))||(_0x3c5dce['removeMarker'](_0x1b719f['getFirstMarker']()),_0x2d192e=!0x0));}return _0x2d192e;})),_0x4fecd2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e228a,'FORMAT_INDENT'));const _0x852425={'type':'format','content':''};_0x4fecd2['descriptionFactory']['registerDescriptionCallback'](_0x571600=>{const {data:_0x4f98a4}=_0x571600;if(!_0x4f98a4||'listType'!=_0x4f98a4['key'])return;let _0x13b222=_0x571600['head'];for(;_0x13b222;){if(_0x13b222['data']&&(('listStyle'==_0x13b222['data']['key']||'listMarkerStyle'==_0x13b222['data']['key'])&&(_0x13b222['data']['newValue']&&'default'!=_0x13b222['data']['newValue']||'default'!=_0x13b222['data']['oldValue']&&!_0x4f98a4['newValue'])||!_0x19c8bc&&_0x13b222['data']['key']==m))return _0x852425;_0x13b222=_0x13b222['next'];}if(null==_0x4f98a4['newValue'])switch(_0x4f98a4['oldValue']){case'bulleted':return _0x2023aa(o(_0x2e228a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2023aa(o(_0x2e228a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2023aa(o(_0x2e228a,'ELEMENT_TODO_LIST'));}switch(_0x4f98a4['newValue']){case'bulleted':return _0x73d43c(o(_0x2e228a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x73d43c(o(_0x2e228a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x73d43c(o(_0x2e228a,'ELEMENT_TODO_LIST'));}}),_0x4fecd2['descriptionFactory']['registerDescriptionCallback'](_0x3fee0f=>{const {data:_0x582150}=_0x3fee0f;if(_0x582150&&'listIndent'==_0x582150['key'])return null==_0x582150['newValue']||null==_0x582150['oldValue']&&0x0==_0x582150['newValue']?_0x852425:void 0x0;}),_0x4fecd2['descriptionFactory']['registerDescriptionCallback'](_0x527eae=>{if('attribute'!=_0x527eae['type'])return;const {data:_0x3d5f9d}=_0x527eae;if(!_0x3d5f9d||'listItemId'!=_0x3d5f9d['key'])return;const _0x3aa11b=Be(_0x527eae);return'newValue'==_0x3aa11b?{'type':'format','content':o(_0x2e228a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3aa11b?{'type':'format','content':o(_0x2e228a,'*Split:*\x20list\x20item')}:_0x852425;}),_0x256496['model']['document']['registerPostFixer'](_0x90b09e=>this['listItemIdFixer'](_0x90b09e)),_0x256496['model']['document']['registerPostFixer'](_0x8db80a=>this['noTrackChangesFixer'](_0x8db80a)),_0x256496['model']['document']['on']('change:data',(_0x4c2b70,_0x3b9b2a)=>{if(_0x3b9b2a['isUndo']||!_0x3b9b2a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x36801a){if(_0x36801a['batch']['isUndo']||!_0x36801a['batch']['isLocal'])return!0x1;let _0x1f8fc8=!0x1;const _0x18c5e6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1a0f0a=>_0x1a0f0a['data']&&'listItemId'==_0x1a0f0a['data']['key'])['filter'](_0x12a7ac=>_0x12a7ac['data']['newValue']&&_0x12a7ac['data']['oldValue']);for(const _0x3789d0 of _0x18c5e6)Be(_0x3789d0)||(_0x36801a['removeMarker'](_0x3789d0['getFirstMarker']()),_0x1f8fc8=!0x0);return _0x1f8fc8;}['noTrackChangesFixer'](_0x14a52b){if(_0x14a52b['batch']['isUndo']||!_0x14a52b['batch']['isLocal'])return!0x1;const _0x4059d3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4059d3['trackChangesCommand']['value'])return!0x1;let _0x4f0883=!0x1;const _0x31d0dd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x270f55=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x462785=>'attribute'==_0x462785['type'])['filter'](_0x49e9f8=>_0x31d0dd['includes'](_0x49e9f8['attributeKey']));if(0x0==_0x270f55['length'])return _0x4f0883;for(const _0x40f70c of _0x270f55){const _0x4d3725=_0x4059d3['_findSuggestions'](_0x40f70c['range'],'attribute')['filter'](_0x23bfab=>!_0x23bfab['meta']['isNextTo'])['map'](_0x4cc13e=>_0x4cc13e['suggestion'])['filter'](_0x16dfb5=>{const _0x1c1b72=_0x4059d3['_getAttributeKey'](_0x16dfb5);return _0x31d0dd['includes'](_0x1c1b72);});if(_0x4d3725['length']){for(const _0x4b30f0 of _0x4d3725)_0x14a52b['removeMarker'](_0x4b30f0['getFirstMarker']());_0x4f0883=!0x0;}}return _0x4f0883;}['assureChains'](){const _0x5ec1c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x145286=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x38d87f;const _0x1a3535=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa12897=>{if(_0xa12897['data']['oldRange']||!_0xa12897['data']['newRange'])return null;if(!_0xa12897['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x529f28}=_0x5ec1c4['_splitMarkerName'](_0xa12897['name']);if(!_0x5ec1c4['hasSuggestion'](_0x529f28))return null;const _0x11341c=_0x5ec1c4['getSuggestion'](_0x529f28);return _0x145286['includes'](_0x11341c['data']['key']);})['map'](_0x2b9b7c=>{const {id:_0x506111}=_0x5ec1c4['_splitMarkerName'](_0x2b9b7c['name']),_0x47d828=_0x5ec1c4['getSuggestion'](_0x506111);return _0x38d87f=_0x47d828['attributes']['groupId'],_0x47d828['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1a3535['size'])return;const _0x43ad26=_0x5ec1c4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ee368=>'attribute'==_0x4ee368['type']&&_0x4ee368['data']&&_0x145286['includes'](_0x4ee368['data']['key'])&&_0x4ee368['attributes']['groupId']!=_0x38d87f)['map'](_0x1ee2c2=>({'listItem':_0x1ee2c2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1ee2c2['attributes']['groupId']})),_0x405096=new Set();for(const {groupId:_0x24f30,listItem:_0x4367f2}of _0x43ad26)_0x1a3535['has'](_0x4367f2)&&_0x405096['add'](_0x24f30);for(const _0x406966 of _0x5ec1c4['getSuggestions']())_0x405096['has'](_0x406966['attributes']['groupId'])&&_0x406966['setAttribute']('groupId',_0x38d87f);}['_supportLegacySuggestions'](){const _0xc5856e=this['editor'],_0x3477a1=_0xc5856e['locale'],_0x4769aa=_0xc5856e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4769aa['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x56c938,_0x25279e){const _0x5288c0=[];for(let _0x1eea89 of _0x56c938)_0x1eea89['start']['nodeAfter']===_0x1eea89['end']['parent']&&(_0x1eea89=_0xc5856e['model']['createRange'](_0xc5856e['model']['createPositionAt'](_0x1eea89['start']['nodeAfter'],0x0))),_0x5288c0['push'](_0x1eea89);_0xc5856e['model']['change'](_0x3cb8ab=>{const _0x24b1ed=_0xc5856e['model']['document']['selection'],_0x4f0ddd=Array['from'](_0x24b1ed['getRanges']())['map'](_0xfa92a5=>_0x1c1121['fromRange'](_0xfa92a5));_0x3cb8ab['setSelection'](_0x5288c0),_0xc5856e['commands']['get'](_0x25279e['commandName'])['refresh'](),_0x25279e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xc5856e['execute'](_0x25279e['commandName'],..._0x25279e['commandParams']),_0x3cb8ab['setSelection'](_0x4f0ddd);for(const _0x965925 of _0x4f0ddd)_0x965925['detach']();});}),_0x4769aa['descriptionFactory']['registerElementLabel'](function(_0x541d45){const _0x347015=!_0xc5856e['model']['schema']['isObject'](_0x541d45),_0x183743=_0x541d45['previousSibling'],_0x52a8a4=_0x541d45['nextSibling'],_0x4b60ee=_0x541d45['getAttribute']('listItemId'),_0x5e14b3=!_0x183743||_0x183743['getAttribute']('listItemId')!==_0x4b60ee,_0x3d798e=!_0x52a8a4||_0x52a8a4['getAttribute']('listItemId')!==_0x4b60ee;return _0x347015&&Boolean(_0x4b60ee)&&_0x5e14b3&&_0x3d798e;},_0x346515=>o(_0x3477a1,'ELEMENT_LIST_ITEM',_0x346515));}['_registerLegacyDescription'](){const _0x5dabee=this['editor'],_0x1b6274=_0x5dabee['locale'];function _0x3ff557(_0x1c6aaf){const _0x4168b8=_0x5dabee['commands']['get']('bulletedList')['value'],_0x21b69f=_0x5dabee['commands']['get']('numberedList')['value'];return'numberedList'===_0x1c6aaf?_0x4168b8:_0x21b69f;}_0x5dabee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xaa4b50){if('formatBlock'!=_0xaa4b50['type'])return;const {data:_0x73b140}=_0xaa4b50;if(!_0x73b140)return;let _0x56de27,_0x12833b,_0x1e307c,_0x45564e;switch(_0x73b140['commandName']){case'bulletedList':_0x1e307c=_0x73b140['commandParams'][0x0]['forceValue'],_0x45564e=_0x3ff557(_0x73b140['commandName']),_0x56de27=_0x1e307c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x45564e&&_0x5dabee['config']['get']('list.multiBlock')||(_0x56de27='*Change\x20to:*\x20%0'),_0x12833b={'type':'format','content':o(_0x1b6274,_0x56de27,o(_0x1b6274,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1e307c=_0x73b140['commandParams'][0x0]['forceValue'],_0x45564e=_0x3ff557(_0x73b140['commandName']),_0x56de27=_0x1e307c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x45564e&&_0x5dabee['config']['get']('list.multiBlock')||(_0x56de27='*Change\x20to:*\x20%0'),_0x12833b={'type':'format','content':o(_0x1b6274,_0x56de27,o(_0x1b6274,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x56de27='*Indent:*\x20%0',_0x12833b={'type':'format','content':o(_0x1b6274,_0x56de27,o(_0x1b6274,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x56de27=function(_0x195787){const _0x3c4aed=_0x195787['getFirstRange']();let _0x1f2c19=_0x3c4aed['start']['nodeAfter'];for(;_0x1f2c19&&_0x3c4aed['containsItem'](_0x1f2c19);){if(_0x1f2c19['getAttribute']('listIndent')>0x0)return!0x1;_0x1f2c19=_0x1f2c19['nextSibling'];}return!0x0;}(_0xaa4b50)?o(_0x1b6274,'*Format:*\x20remove\x20from\x20%0',o(_0x1b6274,function(_0x2dc240){return'ELEMENT_'+_0x2dc240['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xaa4b50))):o(_0x1b6274,'*Outdent:*\x20%0',o(_0x1b6274,'ELEMENT_LIST_ITEM')),_0x12833b={'type':'format','content':_0x56de27};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x73b140['multipleBlocks']&&(_0x56de27='*Merge:*\x20%0',_0x12833b={'type':'deletion','content':o(_0x1b6274,_0x56de27,o(_0x1b6274,'ELEMENT_LIST_ITEM'))});}return _0x12833b;});}}function Be(_0x353f0d){let _0x329f40=_0x353f0d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x329f40;){const _0x1c55b2=_0x329f40['getAttribute']('listItemId');if(!_0x1c55b2)return!0x1;if(_0x1c55b2==_0x353f0d['data']['newValue'])return'newValue';if(_0x1c55b2==_0x353f0d['data']['oldValue'])return'oldValue';_0x329f40=_0x329f40['previousSibling'];}return!0x1;}class Z extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x343e01=this['editor']['config']['get']('list.properties'),_0x56b5f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x343e01['styles']&&(_0x56b5f6['enableDefaultAttributesIntegration']('listStyle'),_0x56b5f6['registerBlockAttribute']('listStyle')),_0x343e01['reversed']&&(_0x56b5f6['enableDefaultAttributesIntegration']('listReversed'),_0x56b5f6['registerBlockAttribute']('listReversed')),_0x343e01['startIndex']&&(_0x56b5f6['enableDefaultAttributesIntegration']('listStart'),_0x56b5f6['registerBlockAttribute']('listStart'));const _0x46b024={'type':'format','content':''};_0x56b5f6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5d76a9=this['editor']['locale'];_0x56b5f6['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5d76a9,'FORMAT_LIST_REVERSED')),_0x56b5f6['descriptionFactory']['registerDescriptionCallback'](_0x1dbd74=>{const {data:_0x4ef107}=_0x1dbd74;if(_0x4ef107&&'listReversed'==_0x4ef107['key'])return null==_0x4ef107['newValue']||0x0==_0x4ef107['newValue']&&null==_0x4ef107['oldValue']?_0x46b024:void 0x0;}),_0x56b5f6['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5d76a9,'FORMAT_LIST_START')),_0x56b5f6['descriptionFactory']['registerDescriptionCallback'](_0x191fd5=>{const {data:_0x1fffe0}=_0x191fd5;if(_0x1fffe0&&'listStart'==_0x1fffe0['key'])return null==_0x1fffe0['newValue']||0x1==_0x1fffe0['newValue']&&null==_0x1fffe0['oldValue']?_0x46b024:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x12f30d=>{if(_0x12f30d['batch']['isUndo'])return!0x1;let _0x2f40d8=!0x1;const _0x8b4488=_0x56b5f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f1681=>{const _0x5da59c=_0x56b5f6['_getAttributeKey'](_0x2f1681);return'listStart'==_0x5da59c||'listReversed'==_0x5da59c;});for(const _0x34fe99 of _0x8b4488){const _0x228f90=_0x34fe99['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x228f90||'customNumbered'==_0x228f90)continue;_0x56b5f6['_findSuggestions'](_0x34fe99['getFirstRange'](),'attribute')['find'](_0xe283ba=>'listType'==_0x56b5f6['_getAttributeKey'](_0xe283ba['suggestion']))||(_0x12f30d['removeMarker'](_0x34fe99['getFirstMarker']()),_0x2f40d8=!0x0);}return _0x2f40d8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xee3006){const _0x42caba=this['editor']['locale'],{data:_0x280dde}=_0xee3006,_0x263332={'type':'format','content':''};if(!_0x280dde||'listStyle'!=_0x280dde['key'])return;if(!_0x280dde['oldValue'])return'default'==_0x280dde['newValue']?_0x263332:{'type':'format','content':''+o(_0x42caba,'*Set\x20format:*\x20%0',o(_0x42caba,this['_getTranslationKeyForListStyle'](_0x280dde['newValue'])))};if(!_0x280dde['newValue']){if('default'==_0x280dde['oldValue'])return _0x263332;let _0x5e1de8=_0xee3006['head'];for(;_0x5e1de8;){if(_0x5e1de8['data']&&'listType'==_0x5e1de8['data']['key']&&_0x5e1de8['data']['newValue'])return _0x263332;_0x5e1de8=_0x5e1de8['next'];}return{'type':'format','content':''+o(_0x42caba,'*Remove\x20format:*\x20%0',o(_0x42caba,this['_getTranslationKeyForListStyle'](_0x280dde['oldValue'])))};}if('default'!=_0x280dde['newValue'])return{'type':'format','content':''+o(_0x42caba,'*Set\x20format:*\x20%0',o(_0x42caba,this['_getTranslationKeyForListStyle'](_0x280dde['newValue'])))};let _0x50c343=_0xee3006['head'];for(;_0x50c343;){if(_0x50c343['data']&&'listType'==_0x50c343['data']['key']&&_0x50c343['data']['newValue']&&_0x50c343['data']['oldValue'])return _0x263332;_0x50c343=_0x50c343['next'];}return{'type':'format','content':o(_0x42caba,'*Set\x20format:*\x20%0',o(_0x42caba,'ELEMENT_'+_0xee3006['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3ec34c=this['editor'],_0x25cfcc=_0x3ec34c['locale'];_0x3ec34c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54d1cb=>{if('formatBlock'!=_0x54d1cb['type'])return;const {data:_0x21eecf}=_0x54d1cb;if(!_0x21eecf)return;let _0x38b7cc,_0x301a16;switch(_0x21eecf['commandName']){case'listStyle':_0x38b7cc='*Change\x20to:*\x20%0',_0x301a16={'type':'format','content':o(_0x25cfcc,_0x38b7cc,o(_0x25cfcc,this['_getTranslationKeyForListStyle'](_0x21eecf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x38b7cc=_0x21eecf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x301a16={'type':'format','content':o(_0x25cfcc,_0x38b7cc)};break;case'listStart':_0x38b7cc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x301a16={'type':'format','content':o(_0x25cfcc,_0x38b7cc,_0x21eecf['commandParams'][0x0]['startIndex'])};}return _0x301a16;});}['_getTranslationKeyForListStyle'](_0x48c90a){return'ELEMENT_'+function(_0x3bbcdd){if(Re['includes'](_0x3bbcdd))return'bulleted';if(De['includes'](_0x3bbcdd))return'numbered';return null;}(_0x48c90a)['toUpperCase']()+'_LIST_'+_0x48c90a['toUpperCase']()['replace'](/-/g,'_');}}const Re=['disc','circle','square'],De=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class tt extends _0x555e71{['afterInit'](){const _0x3ed2b4=this['editor'];_0x3ed2b4['commands']['get']('emoji')&&_0x3ed2b4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class et extends _0x555e71{static get['requires'](){return[_0x25152c];}['init'](){const _0x99b8f0=this['editor'],_0x38ec05=_0x99b8f0['plugins']['get']('TrackChangesEditing'),_0x8ec224=_0x99b8f0['commands']['get']('enter');_0x38ec05['enableCommand']('enter',()=>{_0x99b8f0['model']['change'](_0xebd106=>{const _0x49fd8c=_0x99b8f0['model']['document']['selection'],_0x4af518=_0x49fd8c['getFirstPosition'](),_0x3ea569=_0x1c1121['fromRange'](_0x49fd8c['getFirstRange']());if(_0x8ec224['enterBlock'](_0xebd106)){const _0x14c53c=_0x99b8f0['model']['createPositionAt'](_0x4af518['parent']['nextSibling'],0x0),_0x280489=_0xebd106['createRange'](_0x4af518,_0x14c53c);_0x38ec05['markInsertion'](_0x280489);}else _0xebd106['setSelection'](_0xebd106['createRange'](_0x3ea569['end']));_0x3ea569['detach'](),_0x8ec224['fire']('afterExecute',{'writer':_0xebd106});});}),_0x99b8f0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ve(_0x99b8f0,'split'),{'priority':'high'}),_0x99b8f0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1a14ea,_0x26b0f9,_0x31e10f)=>{const _0x5263c3=_0x31e10f['mapper']['markerNameToElements'](_0x26b0f9['markerName']);if(_0x5263c3){for(const _0x94c2d2 of _0x5263c3)_0x94c2d2['hasClass']('ck-suggestion-marker-split')&&(_0x31e10f['mapper']['unbindElementFromMarkerName'](_0x94c2d2,_0x26b0f9['markerName']),_0x31e10f['writer']['remove'](_0x94c2d2));}},{'priority':'high'}),_0x99b8f0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x6568a8,_0xb5c5,_0x227497)=>{_0x227497['options']['showSuggestionHighlights']&&Ve(_0x99b8f0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x6568a8,_0xb5c5,_0x227497);},{'priority':'high'});}}class it extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2a193a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a193a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2a193a['enableCommand']('findNext'),_0x2a193a['enableCommand']('findPrevious'),_0x2a193a['enableCommand']('replace'),_0x2a193a['enableCommand']('replaceAll');}['handleFindCommand'](_0x578b6f,_0x1c610b,_0x11c6aa={}){const _0x497b55=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x578b6f(_0x478cbf=>{let _0x5a6a47=('string'==typeof _0x1c610b?_0x497b55['findByTextCallback'](_0x1c610b,_0x11c6aa):_0x1c610b)(_0x478cbf);Array['isArray'](_0x5a6a47)&&(_0x5a6a47={'results':_0x5a6a47,'searchText':'string'==typeof _0x1c610b?_0x1c610b:''});const _0x46d02a=_0x5a6a47['results']['filter'](_0x370078=>!0x1===this['_isInDeletionRange'](_0x370078,_0x478cbf['item']));return{..._0x5a6a47,'results':_0x46d02a};},_0x11c6aa);}['_isInDeletionRange'](_0x4b378a,_0x3c848e){const _0x585a42=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c848e,_0x4b378a['start']),this['editor']['model']['createPositionAt'](_0x3c848e,_0x4b378a['end']));for(const _0x231f2e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x585a42['getIntersection'](_0x231f2e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class nt extends _0x555e71{['afterInit'](){const _0x5ac005=this['editor']['locale'],_0x1b85ff=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3da9ed,commandName:_0xde19df}of eo)this['editor']['plugins']['has'](_0x3da9ed)&&(_0x1b85ff['enableDefaultAttributesIntegration'](_0xde19df),_0x1b85ff['registerInlineAttribute'](_0xde19df));_0x1b85ff['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5ac005,'FORMAT_FONT_SIZE')),_0x1b85ff['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5ac005,'FORMAT_FONT_FAMILY')),_0x1b85ff['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5ac005,'FORMAT_FONT_COLOR')),_0x1b85ff['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5ac005,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2461d0=this['editor'],_0x58abb0=_0x2461d0['locale'];_0x2461d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bddda=>{const _0x1ead71=_0x58abb0['t'];if('formatInline'!=_0x3bddda['type'])return;const {data:_0xc3d569}=_0x3bddda;if(null!=_0xc3d569){if('fontSize'==_0xc3d569['commandName']){const _0x369e8e=_0xc3d569['commandParams'][0x0]['value'];if(_0x369e8e){const _0x5f5356=_0x1ead71(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4ab5be=>_0x4ab5be['model']==_0x369e8e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x58abb0,'*Set\x20font\x20size:*\x20%0',_0x5f5356)};}return{'type':'format','content':o(_0x58abb0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xc3d569['commandName']){const _0x139101=_0xc3d569['commandParams'][0x0]['value'];return _0x139101?{'type':'format','content':o(_0x58abb0,'*Set\x20font\x20family:*\x20%0',_0x139101)}:{'type':'format','content':o(_0x58abb0,'*Reset\x20font\x20family*')};}if('fontColor'==_0xc3d569['commandName']){const _0x44f6ef=_0xc3d569['commandParams'][0x0]['value'];if(_0x44f6ef){const _0x342adc=_0x4b3666(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3f2115=>_0x3f2115['model']==_0x44f6ef);let _0x3d1663=_0x44f6ef,_0x562664='';return _0x342adc&&(_0x3d1663=_0x342adc['label'],_0x562664=_0x1ead71(_0x3d1663)['toLowerCase']()),{'type':'format','content':o(_0x58abb0,'*Set\x20font\x20color:*\x20%0',_0x562664)['trim'](),'color':{'value':_0x44f6ef,'title':_0x562664||_0x3d1663}};}return{'type':'format','content':o(_0x58abb0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xc3d569['commandName']){const _0x924c47=_0xc3d569['commandParams'][0x0]['value'];if(_0x924c47){const _0xd2c7e7=_0x4b3666(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x8c664c=>_0x8c664c['model']==_0x924c47);let _0x513e6a=_0x924c47,_0x17b9fc='';return _0xd2c7e7&&(_0x513e6a=_0xd2c7e7['label'],_0x17b9fc=_0x1ead71(_0x513e6a)['toLowerCase']()),{'type':'format','content':o(_0x58abb0,'*Set\x20font\x20background\x20color:*\x20%0',_0x17b9fc)['trim'](),'color':{'value':_0x924c47,'title':_0x17b9fc||_0x513e6a}};}return{'type':'format','content':o(_0x58abb0,'*Reset\x20font\x20background\x20color*')};}}});}}class st extends _0x555e71{['afterInit'](){const _0x4238b1=this['editor'],_0x723db7=_0x4238b1['plugins']['get']('TrackChangesEditing'),_0x5f56d2=_0x4238b1['commands']['get']('copyFormat'),_0x568392=_0x4238b1['commands']['get']('pasteFormat');_0x5f56d2&&_0x568392&&(_0x723db7['enableDefaultAttributesIntegration']('pasteFormat'),_0x723db7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5aabfc=this['editor'],_0x8a24e9=_0x5aabfc['locale'];_0x5aabfc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5444be=>{if('formatBlock'!=_0x5444be['type']&&'formatInline'!=_0x5444be['type'])return;const {data:_0x153ad0}=_0x5444be;if(_0x153ad0&&'pasteFormat'===_0x153ad0['commandName']){const _0x186229=[],_0x1c5a0a=_0x153ad0['commandParams'][0x0];for(const [_0x53473b,_0x15d1f0]of Object['entries'](_0x1c5a0a))_0x186229['push'](ro(_0x5aabfc,_0x53473b,_0x15d1f0));return _0x186229['length']?{'type':'format','content':o(_0x8a24e9,'*Set\x20format\x20to:*\x20%0',_0x186229['join'](',\x20'))}:{'type':'format','content':o(_0x8a24e9,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x243a8b,_0x578d94,_0x5b0361){const _0x512ea7=_0x243a8b['locale']['t'],_0x466a05=_0x578d94['split'](/(?=[A-Z])/)['join']('\x20'),_0x29a26c=_0x512ea7(_0x466a05['charAt'](0x0)['toUpperCase']()+_0x466a05['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5b0361)return _0x29a26c;if('fontColor'===_0x578d94||'fontBackgroundColor'===_0x578d94){const _0x54c66f=_0x4b3666(_0x243a8b['config']['get']('fontColor.colors'))['find'](_0x360d45=>_0x360d45['model']==_0x5b0361);return _0x29a26c+'\x20('+(_0x54c66f?_0x512ea7(_0x54c66f['label'])['toLowerCase']():_0x5b0361)+')';}if('fontSize'===_0x578d94&&isNaN(parseFloat(_0x5b0361))){const _0x56b02b=_0x243a8b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x243a8b['config']['get']('fontSize.options'))['find'](_0x18bb83=>_0x18bb83['model']==_0x5b0361);return _0x29a26c+'\x20('+(_0x56b02b?_0x512ea7(_0x56b02b['title'])['toLowerCase']():_0x5b0361)+')';}return _0x29a26c+'\x20('+_0x5b0361+')';}class ot extends _0x555e71{['_headingOptions'];['afterInit'](){const _0x5c5cc2=this['editor'];if(!_0x5c5cc2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5c5cc2['config']['get']('heading.options');const _0xf3ee23=_0x5c5cc2['locale'],_0x122c6b=_0x5c5cc2['plugins']['get']('TrackChangesEditing');_0x122c6b['enableDefaultAttributesIntegration']('heading');for(const _0x22fde2 of this['_headingOptions'])'paragraph'!=_0x22fde2['model']&&_0x122c6b['descriptionFactory']['registerElementLabel'](_0x22fde2['model'],_0x354405=>{const _0x43c06d=this['_getHeadingLevel'](_0x22fde2['model']);return null!==_0x43c06d?_0x1be9be(_0x354405,_0x43c06d):_0x474e3d(_0x354405,_0x22fde2['title']);});function _0x1be9be(_0x4349c,_0x4ae303){return o(_0xf3ee23,'ELEMENT_HEADING',[_0x4349c,_0x4ae303]);}function _0x474e3d(_0x1a81c0,_0x564176){return o(_0xf3ee23,'ELEMENT_HEADING_CUSTOM',[_0x1a81c0,_0x564176]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a0b0d=this['editor'],_0x4b700f=_0x2a0b0d['locale'];function _0x467b3a(_0x32ae84,_0x4d9a98){return o(_0x4b700f,'ELEMENT_HEADING_CUSTOM',[_0x32ae84,_0x4d9a98]);}_0x2a0b0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31b721=>{if('formatBlock'!=_0x31b721['type'])return;const {data:_0x2f6c90}=_0x31b721;if(_0x2f6c90&&'heading'==_0x2f6c90['commandName']){const _0x34d3a8=_0x2f6c90['commandParams'][0x0]['value'],_0x3396f5=this['_getHeadingLevel'](_0x34d3a8);if(null!==_0x3396f5)return{'type':'format','content':o(_0x4b700f,'*Change\x20to:*\x20%0',(_0x3bfe32=0x1,_0xe59f3c=_0x3396f5,o(_0x4b700f,'ELEMENT_HEADING',[_0x3bfe32,_0xe59f3c])))};const _0x554ad9=this['_headingOptions']['find'](_0x533a28=>_0x533a28['model']===_0x34d3a8)['title'];return{'type':'format','content':o(_0x4b700f,'*Change\x20to:*\x20%0',_0x467b3a(0x1,_0x554ad9))};}var _0x3bfe32,_0xe59f3c;});}['_getHeadingLevel'](_0x16cd11){const _0xfffc84=_0x16cd11['match'](/^heading(\d+)/);if(_0xfffc84)return _0xfffc84[0x1];const _0x4c1c28=this['_headingOptions']?.['find'](_0x4bc4f7=>_0x4bc4f7['model']==_0x16cd11);if(_0x4c1c28&&_0x4c1c28['view']){const _0x336d2f=_0x4c1c28['view'],_0x39022a=(_0x336d2f['name']??_0x336d2f)['match'](/^h(\d+)/);if(_0x39022a)return _0x39022a[0x1];}return null;}}class rt extends _0x555e71{['afterInit'](){const _0x492c37=this['editor'];if(!_0x492c37['plugins']['has']('HighlightEditing'))return;const _0x3cd9bd=_0x492c37['plugins']['get']('TrackChangesEditing'),_0x2ed7e1=_0x492c37['locale'];_0x3cd9bd['enableDefaultAttributesIntegration']('highlight'),_0x3cd9bd['registerInlineAttribute']('highlight'),_0x3cd9bd['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2ed7e1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319dc=this['editor'],_0x2f5f24=_0x319dc['locale'];_0x319dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23260f=>{if('formatInline'!=_0x23260f['type'])return;const {data:_0x2cf6c7}=_0x23260f;if(_0x2cf6c7&&'highlight'==_0x2cf6c7['commandName']){const _0x242002=_0x2f5f24['t'],_0x1bae78=_0x2cf6c7['commandParams'][0x0]['value'];if(_0x1bae78){const _0x5608c9=_0x319dc['config']['get']('highlight.options')['find'](_0x5ac54e=>_0x5ac54e['model']==_0x1bae78),_0x41b7c1=_0x242002(_0x5608c9['title'])['toLowerCase']();return{'type':'format','content':o(_0x2f5f24,'*Set\x20highlight:*\x20%0',_0x41b7c1),'color':{'value':_0x5608c9['color'],'title':_0x5608c9['title']}};}return{'type':'format','content':o(_0x2f5f24,'*Remove\x20highlight*',o(_0x2f5f24,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x555e71{['afterInit'](){const _0x109019=this['editor'];if(!_0x109019['plugins']['has']('HorizontalLineEditing'))return;_0x109019['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x40530e=_0x109019['plugins']['get']('TrackChangesEditing'),_0x367f9d=_0x109019['locale'];_0x40530e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2f007e=>o(_0x367f9d,'ELEMENT_HORIZONTAL_LINE',_0x2f007e)),_0x109019['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2093c4,{writer:_0x5a053e,options:_0x24d3eb})=>{if(!_0x24d3eb['showSuggestionHighlights'])return null;const _0xc8111c=_0x5a053e['createContainerElement']('div'),_0x52536f=_0x5a053e['createEmptyElement']('hr');return _0x5a053e['addClass']('ck-horizontal-line',_0xc8111c),_0x5a053e['insert'](_0x5a053e['createPositionAt'](_0xc8111c,0x0),_0x52536f),_0xc8111c;},'converterPriority':'high'});}}class ct extends _0x555e71{['afterInit'](){const _0x17f981=this['editor'];if(!_0x17f981['plugins']['has']('HtmlEmbed'))return;const _0x4390c5=_0x17f981['plugins']['get']('TrackChangesEditing'),_0x1b35dd=_0x17f981['locale'];_0x4390c5['descriptionFactory']['registerElementLabel']('rawHtml',_0x3759dc=>o(_0x1b35dd,'ELEMENT_HTML_EMBED',_0x3759dc)),_0x4390c5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4390c5['registerBlockAttribute']('value'),_0x4390c5['descriptionFactory']['registerDescriptionCallback'](_0x3d5dc0=>{if('attribute'!=_0x3d5dc0['type'])return;const {data:_0x5a923b}=_0x3d5dc0;if(_0x5a923b&&'value'==_0x5a923b['key']&&_0x3d5dc0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3a4d3c=o(_0x1b35dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1b35dd,'*Change\x20%0\x20content*',_0x3a4d3c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55f264=this['editor'],_0x197699=_0x55f264['locale'];_0x55f264['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x384280=>{if('formatBlock'!=_0x384280['type'])return;const {data:_0x198d65}=_0x384280;if(_0x198d65&&'htmlEmbed'==_0x198d65['commandName']){const _0x420fc4=o(_0x197699,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x197699,'*Change\x20%0\x20content*',_0x420fc4)};}});}}class ut extends _0x555e71{['afterInit'](){const _0xd61537=this['editor'];if(!_0xd61537['plugins']['has']('ImageEditing'))return;const _0xda98e1=_0xd61537['plugins']['get']('TrackChangesEditing'),_0x1aea1c=_0xd61537['plugins']['get']('ImageUtils'),_0x261778=_0xd61537['locale'];_0xda98e1['enableCommand']('insertImage'),_0xda98e1['descriptionFactory']['registerElementLabel']('imageBlock',_0x268ded=>o(_0x261778,'ELEMENT_IMAGE',_0x268ded)),_0xda98e1['descriptionFactory']['registerElementLabel']('imageInline',_0x3cfe52=>o(_0x261778,'ELEMENT_INLINE_IMAGE',_0x3cfe52)),_0xda98e1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x261778,'ELEMENT_CAPTION')),_0xd61537['plugins']['has']('ImageUploadEditing')&&_0xda98e1['enableCommand']('uploadImage'),_0xd61537['plugins']['has']('ImageBlockEditing')&&_0xd61537['plugins']['has']('ImageInlineEditing')&&(_0xda98e1['enableCommand']('imageTypeInline',(_0xe29911,_0x3c4419)=>{const _0x207f45=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']);_0xd61537['model']['change'](()=>{_0xda98e1['markBlockFormat'](_0x207f45,{'commandName':'imageTypeInline','commandParams':[_0x3c4419]},[],'convertBlockImageToInline');});}),_0xda98e1['enableCommand']('imageTypeBlock',(_0x52d288,_0x5636af)=>{_0xd61537['model']['change'](_0x15fabe=>{let _0x15aa2e=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']),_0x5dc7f8=_0x15fabe['createRangeOn'](_0x15aa2e);const _0x1e7c32=_0x2c6117['fromPosition'](_0x5dc7f8['start'],'toPrevious'),_0x3b2559=_0x2c6117['fromPosition'](_0x5dc7f8['end'],'toNext');_0xda98e1['forceDefaultExecution'](()=>_0x52d288(_0x5636af)),_0x15aa2e=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']),_0x5dc7f8=_0x15fabe['createRangeOn'](_0x15aa2e);const _0x5412e7=_0x15fabe['createRange'](_0x1e7c32,_0x3b2559);_0x1e7c32['detach'](),_0x3b2559['detach'](),_0xda98e1['markBlockFormat'](_0x15aa2e,{'commandName':'imageTypeInline','commandParams':[_0x5636af]},[],'convertInlineImageToBlock'),_0x5412e7['start']['isBefore'](_0x5dc7f8['start'])&&_0xda98e1['markInsertion'](_0x15fabe['createRange'](_0x5412e7['start'],_0x5dc7f8['start']),'convertInlineImageToBlock'),_0x5dc7f8['end']['isBefore'](_0x5412e7['end'])&&_0xda98e1['markInsertion'](_0x15fabe['createRange'](_0x5dc7f8['end'],_0x5412e7['end']),'convertInlineImageToBlock');});}),_0xda98e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xda98e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xda98e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xda98e1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xda98e1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xda98e1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e7e10])=>{const _0x26e81d=_0xda98e1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3e9b94=_0x2e7e10['start'],_0x105dbe=_0x2e7e10['end'];const _0x2d6ed1=_0xd61537['model']['schema']['getNearestSelectionRange'](_0x3e9b94,'backward'),_0x5cccb3=_0xd61537['model']['schema']['getNearestSelectionRange'](_0x105dbe,'forward');_0x2d6ed1['isCollapsed']&&(_0x3e9b94=_0x2d6ed1['start']),_0x5cccb3['isCollapsed']&&(_0x105dbe=_0x5cccb3['end']),_0x26e81d([_0xd61537['model']['createRange'](_0x3e9b94,_0x105dbe)]);}),_0xda98e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x535d9a),_0xda98e1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x535d9a)),_0xd61537['plugins']['has']('ImageCaptionEditing')&&(_0xda98e1['enableCommand']('toggleImageCaption',(_0x18065e,_0x2abcc6)=>{const _0x50c87e=_0xd61537['plugins']['get']('ImageCaptionUtils');let _0x41956e=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']),_0x2b4d6d=_0x50c87e['getCaptionFromImageModelElement'](_0x41956e);_0xd61537['model']['change'](()=>{if(_0x2b4d6d)return void _0xda98e1['markDeletion'](_0xd61537['model']['createRangeOn'](_0x2b4d6d));const _0x4351e8=_0x1aea1c['isBlockImage'](_0x41956e);_0x18065e(_0x2abcc6),_0x41956e=_0x1aea1c['getClosestSelectedImageElement'](_0xd61537['model']['document']['selection']),_0x2b4d6d=_0x50c87e['getCaptionFromImageModelElement'](_0x41956e),_0xda98e1['markInsertion'](_0xd61537['model']['createRangeOn'](_0x2b4d6d),_0x4351e8?null:'imageCaption');});}),_0xda98e1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x535d9a));const _0x3b962a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47bb95(_0x568af7,_0x5dab2d){const _0x12a911=_0x3b962a['findIndex'](({type:_0x5fdb97,subType:_0x5ec3db})=>_0x568af7['type']==_0x5fdb97&&_0x568af7['subType']==_0x5ec3db),_0x16c286=_0x3b962a['findIndex'](({type:_0x54134d,subType:_0x302234})=>_0x5dab2d['type']==_0x54134d&&_0x5dab2d['subType']==_0x302234);if(_0x12a911<0x0||_0x16c286<0x0)return!0x1;const _0x44bef1=_0x568af7['getFirstRange'](),_0x8c248e=_0x5dab2d['getFirstRange']();if((0x0==_0x12a911||0x1==_0x12a911)&&0x2==_0x16c286&&_0x44bef1['isIntersecting'](_0x8c248e))return!0x0;if(0x2==_0x12a911&&0x3==_0x16c286){const _0x18549a=_0xda98e1['_findSuggestions'](_0x44bef1,'insertion')['filter'](({suggestion:_0x1f571b,meta:_0x329ffc})=>_0x329ffc['isOwn']&&'convertInlineImageToBlock'==_0x1f571b['subType']);if(_0x18549a['length']>0x1&&_0x8c248e['end']['isEqual'](_0x44bef1['start']))return!0x0;if(0x1==_0x18549a['length']&&(_0x44bef1['start']['isEqual'](_0x8c248e['end'])||_0x44bef1['end']['isEqual'](_0x8c248e['start'])))return!0x0;}if(0x3==_0x12a911&&0x3==_0x16c286&&_0x44bef1['start']['isBefore'](_0x8c248e['start'])){const _0x9de275=_0x44bef1['end']['nodeAfter'],_0xbff443=_0x8c248e['start']['nodeBefore'];return _0x1aea1c['isBlockImage'](_0x9de275)&&_0x9de275===_0xbff443;}return!0x1;}function _0x535d9a(_0x5804d0,_0x518bfb){return _0x47bb95(_0x5804d0,_0x518bfb)?[_0x5804d0,_0x518bfb]:_0x47bb95(_0x518bfb,_0x5804d0)?[_0x518bfb,_0x5804d0]:null;}_0xd61537['plugins']['has']('ImageResize')&&(_0xda98e1['enableDefaultAttributesIntegration']('resizeImage'),_0xda98e1['registerBlockAttribute']('resizedWidth'),_0xda98e1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x261778,'FORMAT_IMAGE_SIZE'))),_0xd61537['plugins']['has']('ImageTextAlternativeEditing')&&(_0xda98e1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xda98e1['registerBlockAttribute']('alt')),_0xd61537['plugins']['has']('PictureEditing')&&(_0xda98e1['registerBlockAttribute']('sources'),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0xe9d463=>{if('attribute'!=_0xe9d463['type'])return;const {data:_0x49a269}=_0xe9d463;return _0x49a269&&'sources'==_0x49a269['key']?{'type':'format','content':''}:void 0x0;})),_0xd61537['plugins']['has']('ImageSizeAttributes')&&(_0xda98e1['registerBlockAttribute']('width'),_0xda98e1['registerBlockAttribute']('height'),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0x36558d=>{if('attribute'!=_0x36558d['type'])return;const {data:_0x252dfe}=_0x36558d;return!_0x252dfe||'width'!=_0x252dfe['key']&&'height'!=_0x252dfe['key']?void 0x0:{'type':'format','content':''};})),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0x31c9aa=>{if(!!_0x3b962a['find'](({type:_0x5b2b45,subType:_0x5a943d})=>_0x31c9aa['type']==_0x5b2b45&&_0x31c9aa['subType']==_0x5a943d))return _0x31c9aa['previous']?{}:void 0x0;}),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0x1e9512=>{if('insertion'==_0x1e9512['type']||'deletion'==_0x1e9512['type']){const _0x4d1046=_0x1e9512['getContainedElement']();if(_0x4d1046&&_0x4d1046['is']('element','caption'))return{'type':'insertion'==_0x1e9512['type']?'addObject':'removeObject','element':_0x4d1046,'quantity':0x1};}}),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0xe72c32=>'formatBlock'==_0xe72c32['type']&&'convertInlineImageToBlock'==_0xe72c32['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe72c32['type']&&'convertBlockImageToInline'==_0xe72c32['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xda98e1['descriptionFactory']['registerDescriptionCallback'](_0x3cc11c=>{if('attribute'!=_0x3cc11c['type'])return;const {data:_0x3b3e79}=_0x3cc11c;if(!_0x3b3e79||'alt'!=_0x3b3e79['key'])return;const _0x22248c=_0x3b3e79['newValue'];return _0x22248c?{'type':'format','content':o(_0x261778,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22248c+'\x22')}:{'type':'format','content':o(_0x261778,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5430ad=this['editor'],_0x385924=_0x5430ad['locale'];_0x5430ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb793f2=>{if('formatBlock'!=_0xb793f2['type']&&'formatInline'!=_0xb793f2['type'])return;const {data:_0x52d260}=_0xb793f2;if(_0x52d260){if('imageTextAlternative'==_0x52d260['commandName']){const _0x255c86=_0x52d260['commandParams'][0x0]['newValue'];return _0x255c86?{'type':'format','content':o(_0x385924,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x255c86+'\x22')}:{'type':'format','content':o(_0x385924,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x52d260['commandName']){const _0x21f7b1=_0x52d260['commandParams'][0x0]['width'];return _0x21f7b1?{'type':'format','content':o(_0x385924,'*Set\x20image\x20width:*\x20%0',_0x21f7b1)}:{'type':'format','content':o(_0x385924,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4c7a58=this['editor']['locale'],_0xbd2206=this['editor']['plugins']['get']('TrackChangesEditing');_0xbd2206['enableDefaultAttributesIntegration']('replaceImageSource'),_0xbd2206['registerBlockAttribute']('src'),_0xbd2206['descriptionFactory']['registerDescriptionCallback'](_0x4f9918=>{if('attribute'!=_0x4f9918['type'])return;const {data:_0x483912}=_0x4f9918;return _0x483912&&'src'==_0x483912['key']?_0x483912['newValue']&&_0x483912['oldValue']?{'type':'format','content':o(_0x4c7a58,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2c797c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c797c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2c797c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c797c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2c797c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4de4f3=this['editor'],_0x186313=_0x4de4f3['locale'];_0x4de4f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x90954c=>{if('formatBlock'!=_0x90954c['type']&&'formatInline'!=_0x90954c['type'])return;const {data:_0x4f8c0b}=_0x90954c;if(!_0x4f8c0b||'replaceImageSource'!=_0x4f8c0b['commandName'])return;return{'type':'format','content':o(_0x186313,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x555e71{['afterInit'](){const _0x1fe7c7=this['editor'];if(!_0x1fe7c7['plugins']['has']('ImageStyleEditing'))return;const _0x503fe4=_0x1fe7c7['plugins']['get']('TrackChangesEditing'),_0x105af7=_0x1fe7c7['plugins']['get']('ImageUtils'),_0x45ff81={};_0x503fe4['enableCommand']('imageStyle',(_0x27a6ec,_0x3a9d95)=>{const _0x35c84c=_0x1fe7c7['plugins']['get']('Users')['me'],_0x3ac46a=_0x1fe7c7['commands']['get']('imageStyle');let _0x185cb5=_0x105af7['getClosestSelectedImageElement'](_0x1fe7c7['model']['document']['selection']),_0x2a349d=_0x1fe7c7['model']['createRangeOn'](_0x185cb5),_0x13ae4e=_0x3ac46a['value'];if(_0x13ae4e==_0x3a9d95['value'])return;const _0x5741c6={'commandName':'imageStyle','commandParams':[_0x3a9d95],'formatGroupId':_0x4fda17()};_0x1fe7c7['model']['change'](()=>{if(_0x503fe4['getSuggestions']()['filter'](_0x42e4c8=>_0x42e4c8['isInContent']&&_0x35c84c==_0x42e4c8['author']&&('formatBlock'==_0x42e4c8['type']||'formatInline'==_0x42e4c8['type'])&&('imageStylePreApply'==_0x42e4c8['subType']||'imageStylePostApply'==_0x42e4c8['subType'])&&_0x42e4c8['getFirstRange']()['isEqual'](_0x2a349d))['forEach'](_0x4fc8fb=>_0x503fe4['discardSuggestion'](_0x4fc8fb['head'])),_0x185cb5=_0x105af7['getClosestSelectedImageElement'](_0x1fe7c7['model']['document']['selection']),_0x2a349d=_0x1fe7c7['model']['createRangeOn'](_0x185cb5),_0x3ac46a['refresh'](),_0x1fe7c7['commands']['get']('imageTypeInline')['refresh'](),_0x1fe7c7['commands']['get']('imageTypeBlock')['refresh'](),_0x13ae4e=_0x3ac46a['value'],_0x13ae4e!=_0x3a9d95['value'])return _0x105af7['isInlineImage'](_0x185cb5)&&_0x3ac46a['shouldConvertImageType'](_0x3a9d95['value'],_0x185cb5)?(_0x27a6ec({..._0x3a9d95,'setImageSizes':!0x1}),_0x185cb5=_0x105af7['getClosestSelectedImageElement'](_0x1fe7c7['model']['document']['selection']),void _0x503fe4['markBlockFormat'](_0x185cb5,{..._0x5741c6,'commandReversedParams':[{'value':_0x13ae4e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x105af7['isBlockImage'](_0x185cb5)?_0x503fe4['markBlockFormat'](_0x185cb5,_0x5741c6,[],'imageStylePostApply'):_0x503fe4['markInlineFormat'](_0x2a349d,_0x5741c6,'imageStylePostApply'));});});for(const _0x2041a6 of _0x1fe7c7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45ff81[_0x2041a6['name']]=_0x2041a6['title']['toLowerCase']();_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3b63bf])=>{_0x105af7['setImageNaturalSizeAttributes'](_0x3b63bf['getContainedElement']());}),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3db84c,_0x165abf)=>{_0x503fe4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3db84c,{'commandName':_0x165abf['commandName'],'commandParams':_0x165abf['commandReversedParams']});}),_0x503fe4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x296336,_0x20d8e1){if(_0x3385fe(_0x296336,_0x20d8e1))return[_0x296336,_0x20d8e1];if(_0x3385fe(_0x20d8e1,_0x296336))return[_0x20d8e1,_0x296336];return null;});const _0x157acd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3385fe(_0x15c62c,_0x228abc){const _0x5ed1e9=_0x157acd['findIndex'](({type:_0x112acc,subType:_0x1f99b0})=>_0x15c62c['type']==_0x112acc&&_0x15c62c['subType']==_0x1f99b0),_0x17f1e6=_0x157acd['findIndex'](({type:_0x2f268b,subType:_0x3d976c})=>_0x228abc['type']==_0x2f268b&&_0x228abc['subType']==_0x3d976c);if(_0x5ed1e9<0x0||_0x17f1e6<0x0)return!0x1;const _0x1de78d=_0x15c62c['getFirstRange'](),_0x463ba9=_0x228abc['getFirstRange']();if((0x0==_0x5ed1e9||0x1==_0x5ed1e9)&&0x2==_0x17f1e6&&_0x1de78d['isIntersecting'](_0x463ba9))return!0x0;if(0x2==_0x5ed1e9&&0x3==_0x17f1e6){const _0x346333=_0x503fe4['_findSuggestions'](_0x1de78d,'insertion')['filter'](({suggestion:_0x10f187,meta:_0x1eab7e})=>_0x1eab7e['isOwn']&&'convertInlineImageToBlock'==_0x10f187['subType']);if(_0x346333['length']>0x1&&_0x463ba9['end']['isEqual'](_0x1de78d['start']))return!0x0;if(0x1==_0x346333['length']&&(_0x1de78d['start']['isEqual'](_0x463ba9['end'])||_0x1de78d['end']['isEqual'](_0x463ba9['start'])))return!0x0;}if(0x3==_0x5ed1e9&&0x3==_0x17f1e6&&_0x1de78d['start']['isBefore'](_0x463ba9['start'])){const _0x76c235=_0x1de78d['end']['nodeAfter'],_0x35ed57=_0x463ba9['start']['nodeBefore'];return _0x105af7['isBlockImage'](_0x76c235)&&_0x76c235===_0x35ed57;}return!0x1;}_0x1fe7c7['model']['document']['registerPostFixer'](()=>{let _0x2850c9=!0x1;const _0x4b1415=Array['from'](_0x1fe7c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x62dec9,data:_0x9cb7da}of _0x4b1415){const {group:_0x1d1f9d,type:_0x1efe7e,subType:_0x4046ce,id:_0xd53be7}=_0x503fe4['_splitMarkerName'](_0x62dec9);if('suggestion'==_0x1d1f9d&&_0x503fe4['hasSuggestion'](_0xd53be7)){if('formatBlock'==_0x1efe7e&&('imageStylePreApply'==_0x4046ce||'imageStylePostApply'==_0x4046ce)){const _0x22fc06=_0x503fe4['getSuggestion'](_0xd53be7);if(_0x9cb7da['newRange']){const _0x5ce30f=_0x22fc06['getFirstRange']()['getContainedElement']();if(_0x105af7['isBlockImage'](_0x5ce30f))continue;_0x503fe4['discardSuggestion'](_0x22fc06),_0x2850c9=!0x0;}}if('insertion'==_0x1efe7e&&'imageCaption'==_0x4046ce&&!_0x9cb7da['newRange']){const _0x4661d3=_0x503fe4['getSuggestion'](_0xd53be7);_0x4661d3['next']&&_0x4661d3['next']['isInContent']&&(_0x503fe4['discardSuggestion'](_0x4661d3['next']),_0x2850c9=!0x0);}}}return _0x2850c9;}),this['_registerLegacyDescription'](_0x45ff81);}['_registerLegacyDescription'](_0xc5d06d){const _0x15fa40=this['editor'],_0x50d6a3=_0x15fa40['locale'];_0x15fa40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4be451=>{if('formatBlock'!=_0x4be451['type']&&'formatInline'!=_0x4be451['type'])return;const {data:_0x2727a5}=_0x4be451;if(!_0x2727a5||'imageStyle'!=_0x2727a5['commandName'])return;const _0x30f040=_0x2727a5['commandParams'][0x0]['value'];return _0x28628c('side'===_0x30f040?o(_0x50d6a3,'FORMAT_SIDE_IMAGE'):_0xc5d06d[_0x30f040]||_0x30f040);function _0x28628c(_0x36cd4d){return{'type':'format','content':o(_0x50d6a3,'*Format:*\x20%0',_0x36cd4d)};}});}}class gt extends _0x555e71{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4aa03e){super(_0x4aa03e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x63ee02=this['editor'],_0x310918=_0x63ee02['commands']['get']('importWord'),_0xb563f5=_0x63ee02['commands']['get']('trackChanges');_0x310918&&(_0x310918['on']('execute',(_0x514129,[,_0x368e75])=>{this['_trackChangesValueDuringImport']=_0xb563f5['value'],_0x368e75['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x310918,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x310918,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xb563f5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x63ee02['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x530985,_0x2c3f79){const {suggestions:_0x492f24}=_0x2c3f79,_0x560571=this['editor']['commands']['get']('trackChanges'),_0x2720da=_0x560571['value'];this['_trackChangesValueDuringImport']!==_0x2720da&&(_0x560571['execute'](),this['_trackChangesExecuted']=!0x0),_0x492f24&&_0x492f24['forEach'](({id:_0x4c4fcb,type:_0x1edb86,author:_0x135a91,created_at:_0x551b51})=>{const _0x3ef0a1={'id':_0x4c4fcb,'type':_0x1edb86,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x135a91,'createdAt':_0x551b51?new Date(_0x551b51):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3ef0a1);});}}class lt extends _0x555e71{['afterInit'](){const _0x58b330=this['editor'],_0x43cce1=_0x58b330['plugins']['get']('TrackChangesEditing');if(_0x58b330['plugins']['has']('IndentEditing')&&(_0x43cce1['enableCommand']('indent'),_0x43cce1['enableCommand']('outdent')),_0x58b330['plugins']['has']('IndentBlock')){for(const _0x5226e0 of['indentBlock','outdentBlock'])_0x43cce1['enableDefaultAttributesIntegration'](_0x5226e0);}const _0x5c6834=_0x58b330['locale'];_0x43cce1['registerBlockAttribute']('blockIndent'),_0x43cce1['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5c6834,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3151e5=this['editor'],_0x54396b=_0x3151e5['locale'],_0x62ca64=_0x3151e5['plugins']['get']('TrackChangesEditing');_0x62ca64['descriptionFactory']['registerDescriptionCallback'](_0x1ccf30=>{if('formatBlock'!=_0x1ccf30['type'])return;const {data:_0x977dee}=_0x1ccf30;if(!_0x977dee)return;if('indentBlock'!=_0x977dee['commandName']&&'outdentBlock'!=_0x977dee['commandName'])return;const _0x109f32=_0x1ccf30['getItems']()[0x0],_0x3e4640=_0x62ca64['descriptionFactory']['getItemLabel'](_0x109f32);return'indentBlock'==_0x977dee['commandName']?{'type':'format','content':o(_0x54396b,'*Indent:*\x20%0',_0x3e4640)}:'outdentBlock'==_0x977dee['commandName']?{'type':'format','content':o(_0x54396b,'*Outdent:*\x20%0',_0x3e4640)}:void 0x0;});}}class dt extends _0x555e71{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class mt extends _0x555e71{['afterInit'](){const _0x1182c5=this['editor'];if(!_0x1182c5['plugins']['has']('LinkEditing'))return;const _0x4b27e6=_0x1182c5['plugins']['get']('TrackChangesEditing'),_0xff9cb8=_0x1182c5['commands']['get']('link');_0x4b27e6['enableDefaultAttributesIntegration']('link'),_0x4b27e6['enableDefaultAttributesIntegration']('unlink'),_0x4b27e6['registerInlineAttribute']('linkHref');for(const _0x3b2093 of _0xff9cb8['manualDecorators'])_0x4b27e6['registerInlineAttribute'](_0x3b2093['id']),_0x4b27e6['descriptionFactory']['registerAttributeLabel'](_0x3b2093['id'],'link\x20('+_0x3b2093['label']['toLowerCase']()+')');_0x4b27e6['descriptionFactory']['registerDescriptionCallback'](_0x99e010=>{if('attribute'!=_0x99e010['type'])return;const {data:_0x3d83df}=_0x99e010;if(!_0x3d83df||'linkHref'!=_0x3d83df['key'])return;const _0x4c3881=_0x3d83df['newValue'],_0xa667e5=_0x1182c5['locale'];return{'type':'format','content':null==_0x4c3881?o(_0xa667e5,'*Remove\x20link*'):o(_0xa667e5,'*Set\x20link:*\x20%0','\x22'+_0x4c3881+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1acee8=this['editor'],_0x3831c2=_0x1acee8['locale'];_0x1acee8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54e5ce=>{if('formatInline'!=_0x54e5ce['type'])return;const {data:_0x3c8bc3}=_0x54e5ce;if(_0x3c8bc3){if('link'==_0x3c8bc3['commandName']){const _0x328db6=_0x3c8bc3['commandParams'][0x0];return{'type':'format','content':o(_0x3831c2,'*Set\x20link:*\x20%0','\x22'+_0x328db6+'\x22')};}return'unlink'==_0x3c8bc3['commandName']?{'type':'format','content':o(_0x3831c2,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x555e71{['afterInit'](){const _0x4f9a20=this['editor'],_0x551a59=_0x4f9a20['locale'];if(!_0x4f9a20['plugins']['has']('LegacyListEditing'))return;const _0xfc5e72=_0x4f9a20['plugins']['get']('TrackChangesEditing'),_0x5231e9=_0x4f9a20['plugins']['has']('LegacyTodoListEditing');function _0x3d33bb(_0x2da619){return()=>{const _0x4a8941=_0x4f9a20['model']['document']['selection'],_0x515088=_0x4f9a20['commands']['get'](_0x2da619);if(_0x515088['value'])return void _0x4f9a20['execute']('paragraph',{});const _0x5629ea=_0x2da619['slice'](0x0,-0x4),_0x10078a=function(_0xd45368,_0x3b85e3,_0x3cfe5e){let _0x1aa9cc=Array['from'](_0xd45368)['filter'](_0x393963=>function(_0x5dd1f4,_0x5225d1){return _0x5225d1['checkChild'](_0x5dd1f4['parent'],'listItem')&&!_0x5225d1['isObject'](_0x5dd1f4);}(_0x393963,_0x3cfe5e));_0x1aa9cc=_0x1aa9cc['filter'](_0x58a144=>!_0x58a144['is']('element','listItem')||_0x58a144['getAttribute']('listType')!=_0x3b85e3);const _0x306901=new Set();for(const _0xe8dfe2 of _0x1aa9cc)_0xe8dfe2['is']('element','listItem')?_0x306901['add'](Ne(_0xe8dfe2)):_0x306901['add'](_0xe8dfe2);return Array['from'](_0x306901);}(_0x4a8941['getSelectedBlocks'](),_0x5629ea,_0x4f9a20['model']['schema']);_0x4f9a20['model']['change'](()=>{for(const _0x29890e of _0x10078a)_0xfc5e72['markBlockFormat'](_0x29890e,{'commandName':_0x2da619,'commandParams':[{'forceValue':!_0x515088['value']}],'formatGroupId':'blockName'},Se(_0x29890e));});};}function _0x95c9b7(_0x1b3515){return()=>{const _0xd406bf=function(_0x336c6a){let _0x363706=Array['from'](_0x336c6a);const _0x189d6b=_0x363706['findIndex'](_0x51cf5e=>'listItem'!=_0x51cf5e['name']);return _0x189d6b>-0x1&&(_0x363706=_0x363706['slice'](0x0,_0x189d6b)),_0x363706;}(_0x4f9a20['model']['document']['selection']['getSelectedBlocks']()),_0x4debf0=_0x4f9a20['model']['createRange'](_0x4f9a20['model']['createPositionAt'](_0xd406bf[0x0],'before'),_0x4f9a20['model']['createPositionAt'](_0xd406bf[_0xd406bf['length']-0x1],'end'));_0x4f9a20['model']['change'](()=>{_0xfc5e72['markBlockFormat'](_0x4debf0,{'commandName':_0x1b3515,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1f760a){const _0x3edbff=new Set();for(const _0x522cfe of _0x1f760a){let _0x348d03=_0x522cfe['nextSibling'];for(;_0x348d03&&_0x348d03['getAttribute']('listIndent')>_0x522cfe['getAttribute']('listIndent');)_0x3edbff['add'](_0x348d03),_0x348d03=_0x348d03['nextSibling'];}return Array['from'](_0x3edbff);}(_0xd406bf));});};}_0xfc5e72['enableCommand']('numberedList',_0x3d33bb('numberedList')),_0xfc5e72['enableCommand']('bulletedList',_0x3d33bb('bulletedList')),_0x5231e9&&_0xfc5e72['enableCommand']('todoList',_0x3d33bb('todoList')),_0xfc5e72['enableCommand']('indentList',_0x95c9b7('indentList')),_0xfc5e72['enableCommand']('outdentList',_0x95c9b7('outdentList')),_0x5231e9&&_0xfc5e72['enableCommand']('checkTodoList',()=>{const _0x4686cd=_0x4f9a20['commands']['get']('checkTodoList'),_0x22cb02=Array['from'](_0x4686cd['_selectedElements']);_0x22cb02['filter'](_0x5b183f=>_0x5b183f['getAttribute']('todoListChecked')!=_0x4686cd['value']),_0x4f9a20['model']['change'](()=>{for(const _0x4f173a of _0x22cb02)_0xfc5e72['markBlockFormat'](_0x4f173a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4686cd['value']}]});});}),_0xfc5e72['descriptionFactory']['registerElementLabel']('listItem',_0x236a57=>o(_0x551a59,'ELEMENT_LIST_ITEM',_0x236a57)),_0xfc5e72['descriptionFactory']['registerDescriptionCallback'](_0x20dd72=>{if('formatBlock'!=_0x20dd72['type']&&'formatInline'!=_0x20dd72['type'])return;const {data:_0x99b470}=_0x20dd72;if(_0x99b470){if('numberedList'==_0x99b470['commandName']||'bulletedList'==_0x99b470['commandName']||'todoList'==_0x99b470['commandName'])switch(_0x99b470['commandName']['replace']('List','')){case'bulleted':return _0x4d08a9(o(_0x551a59,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d08a9(o(_0x551a59,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d08a9(o(_0x551a59,'ELEMENT_TODO_LIST'));}if('indentList'==_0x99b470['commandName'])return{'type':'format','content':o(_0x551a59,'*Indent:*\x20%0',o(_0x551a59,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x99b470['commandName'])return{'type':'format','content':o(_0x551a59,'*Outdent:*\x20%0',o(_0x551a59,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x99b470['commandName'])return _0x99b470['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x551a59,'*Check\x20item*')}:{'type':'format','content':o(_0x551a59,'*Uncheck\x20item*')};}function _0x4d08a9(_0x4448d7){return{'type':'format','content':o(_0x551a59,'*Change\x20to:*\x20%0',_0x4448d7)};}});}}function Ne(_0x5112ec){const _0x127432=_0x5112ec['getAttribute']('listIndent');if(0x0==_0x127432)return _0x5112ec;let _0x3f9ec8=_0x5112ec;for(;_0x5112ec['previousSibling']&&_0x5112ec['previousSibling']['is']('element','listItem');){const _0x4097ab=_0x5112ec['previousSibling']['getAttribute']('listIndent');if(_0x4097ab==_0x127432)_0x3f9ec8=_0x5112ec['previousSibling'];else{if(_0x4097ab<_0x127432)break;}_0x5112ec=_0x5112ec['previousSibling'];}return _0x3f9ec8;}function Se(_0x28f2c4){const _0x350c79=[];if(_0x28f2c4['is']('element','listItem')&&_0x28f2c4['getAttribute']('listIndent')>0x0){let _0x412d2d=_0x28f2c4['nextSibling'];for(;_0x412d2d&&'listItem'==_0x412d2d['name']&&_0x412d2d['getAttribute']('listIndent')==_0x28f2c4['getAttribute']('listIndent');)_0x350c79['push'](_0x412d2d),_0x412d2d=_0x412d2d['nextSibling'];}return _0x350c79;}class kt extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b8c93=this['editor']['config']['get']('list.properties'),_0x3211d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8c93['styles']&&_0x3211d4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b8c93['reversed']&&_0x3211d4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b8c93['startIndex']&&_0x3211d4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3211d4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x410ee9,_0x34337a={}){const _0x3472bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd865c4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3472bf['markMultiRangeBlockFormat'](_0xd865c4,{'commandName':'listStyle','commandParams':[{'type':_0x34337a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e65d5,_0x32f7d1={}){const _0x47c4c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fbfa3=this['_getSuggestionBlocks'](_0x12dee8=>_0x12dee8['is']('element','listItem')&&'numbered'===_0x12dee8['getAttribute']('listType'));if(_0x4fbfa3['length']<0x1)return;const _0x3af03b=_0x4fbfa3['map'](_0x436561=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x436561,'before'),this['editor']['model']['createPositionAt'](_0x436561,0x0)));this['editor']['model']['change'](()=>{_0x47c4c0['markMultiRangeBlockFormat'](_0x3af03b,{'commandName':'listReversed','commandParams':[{'reversed':_0x32f7d1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xa44837,_0x4c4a98={}){const _0x36fc87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b265=this['_getSuggestionBlocks'](_0x7a0224=>_0x7a0224['is']('element','listItem')&&'numbered'===_0x7a0224['getAttribute']('listType'));if(_0x41b265['length']<0x1)return;const _0x3cac52=_0x41b265['map'](_0x2b8d7d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2b8d7d,'before'),this['editor']['model']['createPositionAt'](_0x2b8d7d,0x0)));this['editor']['model']['change'](()=>{_0x36fc87['markMultiRangeBlockFormat'](_0x3cac52,{'commandName':'listStart','commandParams':[{'startIndex':_0x4c4a98['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x58640b){if('formatBlock'!=_0x58640b['type']&&'formatInline'!=_0x58640b['type'])return;const _0x3523b6=this['editor']['locale'],{data:_0x1fd793}=_0x58640b;if(!_0x1fd793)return;let _0x28c0a6,_0x30712a;switch(_0x1fd793['commandName']){case'listStyle':_0x28c0a6='*Change\x20to:*\x20%0',_0x30712a={'type':'format','content':o(_0x3523b6,_0x28c0a6,o(_0x3523b6,this['_getTranslationKeyForListStyle'](_0x1fd793['commandParams'][0x0]['type'])))};break;case'listReversed':_0x28c0a6=_0x1fd793['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30712a={'type':'format','content':o(_0x3523b6,_0x28c0a6)};break;case'listStart':_0x28c0a6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30712a={'type':'format','content':o(_0x3523b6,_0x28c0a6,_0x1fd793['commandParams'][0x0]['startIndex'])};}return _0x30712a;}['_getSuggestionBlocksForListStyle'](){const _0x342c66=this['editor']['plugins']['get']('LegacyListUtils');let _0x31cf3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31cf3a[0x0]?.['is']('element','listItem')&&_0x31cf3a['unshift'](..._0x342c66['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31cf3a[_0x31cf3a['length']-0x1]?.['is']('element','listItem')&&_0x31cf3a['push'](..._0x342c66['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31cf3a=[...new Set(_0x31cf3a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31cf3a=_0x31cf3a['filter'](_0x2faabe=>_0x2faabe['is']('element','listItem'))),_0x31cf3a;}['_getSuggestionBlocks'](_0x4fdd13){const _0x1ad275=this['editor']['plugins']['get']('LegacyListUtils');let _0x2afa00=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4fdd13)['map'](_0x4d8cad=>{const _0xfe3bd5=this['editor']['model']['createPositionAt'](_0x4d8cad,0x0);return[..._0x1ad275['getSiblingNodes'](_0xfe3bd5,'backward'),..._0x1ad275['getSiblingNodes'](_0xfe3bd5,'forward')];})['flat']();return _0x2afa00=[...new Set(_0x2afa00)],_0x2afa00;}['_getTranslationKeyForListStyle'](_0x3b49c5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3b49c5)||'default')['toUpperCase']()+'_LIST_'+_0x3b49c5['toUpperCase']()['replace'](/-/g,'_');}}class wt extends _0x555e71{['afterInit'](){const _0x276b04=this['editor'];if(!_0x276b04['plugins']['has']('MediaEmbedEditing'))return;const _0x3b3720=_0x276b04['plugins']['get']('TrackChangesEditing'),_0x2b2e3e=_0x276b04['locale'];_0x3b3720['enableCommand']('mediaEmbed'),_0x3b3720['descriptionFactory']['registerElementLabel']('media',_0x3aa988=>o(_0x2b2e3e,'ELEMENT_MEDIA',_0x3aa988)),_0x276b04['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x41e8fc,{writer:_0x5274f9,options:_0xbaf405})=>{if(_0xbaf405['showSuggestionHighlights'])return _0x5274f9['createEmptyElement']('div');},'converterPriority':'high'}),_0x276b04['data']['downcastDispatcher']['on']('attribute:url:media',(_0x142b45,_0x50a359,_0x3e0957)=>{_0x3e0957['options']['showSuggestionHighlights']&&_0x142b45['stop']();},{'priority':'high'});}}class bt extends _0x555e71{['afterInit'](){const _0x56a91e=this['editor'];_0x56a91e['plugins']['has']('MentionEditing')&&_0x56a91e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x555e71{['afterInit'](){const _0x496416=this['editor'];if(!_0x496416['plugins']['has']('MergeFieldsEditing'))return;const _0x1d7e19=_0x496416['plugins']['get']('TrackChangesEditing'),_0x29de27=_0x496416['locale'];_0x1d7e19['enableCommand']('insertMergeField'),_0x1d7e19['enableCommand']('insertMergeFieldBlock'),_0x1d7e19['enableCommand']('insertMergeFieldImage'),_0x1d7e19['descriptionFactory']['registerElementLabel']('mergeField',_0x1d4ef3=>o(_0x29de27,'ELEMENT_MERGE_FIELD',_0x1d4ef3)),_0x1d7e19['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xbc481=>o(_0x29de27,'ELEMENT_MERGE_FIELD',_0xbc481)),_0x1d7e19['descriptionFactory']['registerDescriptionCallback'](_0x564edf=>{if('insertion'!=_0x564edf['type']&&'deletion'!=_0x564edf['type'])return;const _0x5ed19e=_0x564edf['getContainedElement']();if(null==_0x5ed19e)return;const _0x4202a6=_0x496416['plugins']['get']('MergeFieldsEditing');let _0x565280;switch(_0x4202a6['getMergeFieldType'](_0x5ed19e)){case null:return;case'image':{const _0x48c4cb=_0x4202a6['unwrapAffixes'](_0x5ed19e['getAttribute']('src'));_0x565280=_0x4202a6['getLabel'](_0x48c4cb)||_0x48c4cb;break;}default:{const _0x100911=_0x5ed19e['getAttribute']('id');_0x565280=_0x4202a6['getLabel'](_0x100911)||_0x100911;break;}}return'insertion'==_0x564edf['type']?{'type':'insertion','content':o(_0x29de27,'*Insert:*\x20%0','\x22'+_0x565280+'\x22\x20'+o(_0x29de27,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x29de27,'*Remove:*\x20%0','\x22'+_0x565280+'\x22\x20'+o(_0x29de27,'ELEMENT_MERGE_FIELD'))};});}}class St extends _0x555e71{['afterInit'](){const _0x11a43b=this['editor'],_0x3a4803=_0x11a43b['plugins']['get']('TrackChangesEditing');_0x11a43b['plugins']['has']('MultiLevelList')&&(_0x3a4803['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a4803['registerBlockAttribute']('listMarkerStyle'),_0x3a4803['descriptionFactory']['registerDescriptionCallback'](_0x1e0165=>this['handleDescriptions'](_0x1e0165)));}['handleDescriptions'](_0x56cf88){const _0x403112=this['editor']['locale'],{data:_0x3aa3ba}=_0x56cf88,_0xd9b83f={'type':'format','content':''};if(_0x3aa3ba&&'listMarkerStyle'==_0x3aa3ba['key']){if(!_0x3aa3ba['oldValue'])return{'type':'format','content':o(_0x403112,'*Set\x20format:*\x20%0',o(_0x403112,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3aa3ba['newValue']+')'};if(!_0x3aa3ba['newValue']){let _0x5b766a=_0x56cf88['head'];for(;_0x5b766a;){if(_0x5b766a['data']&&'listType'==_0x5b766a['data']['key']&&_0x5b766a['data']['newValue'])return _0xd9b83f;_0x5b766a=_0x5b766a['next'];}return{'type':'format','content':o(_0x403112,'*Remove\x20format:*\x20%0',o(_0x403112,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3aa3ba['oldValue']+')'};}}}}class jt extends _0x555e71{['afterInit'](){const _0x3189c8=this['editor'];if(!_0x3189c8['plugins']['has']('PageBreakEditing'))return;_0x3189c8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3629fa=_0x3189c8['plugins']['get']('TrackChangesEditing'),_0x20d491=_0x3189c8['locale'];_0x3629fa['descriptionFactory']['registerElementLabel']('pageBreak',_0x93b50e=>o(_0x20d491,'ELEMENT_PAGE_BREAK',_0x93b50e));}}class It extends _0x555e71{['afterInit'](){const _0x4482c1=this['editor'];if(!_0x4482c1['plugins']['has']('Paragraph'))return;const _0x5966a5=_0x4482c1['locale'],_0x18a99a=_0x4482c1['plugins']['get']('TrackChangesEditing');_0x18a99a['descriptionFactory']['registerElementLabel']('paragraph',_0x260b40=>o(_0x5966a5,'ELEMENT_PARAGRAPH',_0x260b40)),_0x18a99a['enableDefaultAttributesIntegration']('paragraph'),_0x18a99a['enableCommand']('insertParagraph'),_0x4482c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4482c1),{'priority':'highest'}),_0x4482c1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5a737e,_0x1ef758,_0x426b81)=>{_0x426b81['options']['showSuggestionHighlights']&&nr(_0x4482c1,{'showActiveMarker':!0x1})(_0x5a737e,_0x1ef758,_0x426b81);},{'priority':'highest'});const _0xae33aa=_0x18a99a['descriptionFactory'];_0xae33aa['registerDescriptionCallback'](_0x39f448=>{if('insertion'!==_0x39f448['type'])return;const {start:_0x2d1e45,end:_0x5a2279}=_0x39f448['getFirstRange']();if(!_0x2d1e45['isTouching'](_0x5a2279)||!_0x2d1e45['nodeAfter'])return;const _0x2a40c6=_0x4482c1['model']['schema'],_0x35c741=_0x2d1e45['nodeAfter'];return _0x2a40c6['isBlock'](_0x35c741)&&!_0x2a40c6['isLimit'](_0x35c741)&&_0x2a40c6['checkChild'](_0x35c741,'$text')?{'type':'insertion','content':o(_0x5966a5,'*Insert:*\x20%0',_0xae33aa['getItemLabel'](_0x35c741,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d6789=this['editor'],_0x1db810=_0x5d6789['locale'];_0x5d6789['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21f6e4=>{if('formatBlock'!=_0x21f6e4['type'])return;const {data:_0x5a4a05}=_0x21f6e4;return _0x5a4a05&&'paragraph'==_0x5a4a05['commandName']?{'type':'format','content':o(_0x1db810,'*Change\x20to:*\x20%0',o(_0x1db810,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xf2a16b,{showActiveMarker:_0x17611a=!0x0}={}){return(_0x22ce1e,_0x19326a,_0x31a267)=>{const _0x119fa5=_0xf2a16b['plugins']['get']('TrackChangesEditing'),_0x12e77b=_0x19326a['markerRange']['start'],_0x127aed=_0x19326a['markerRange']['end'],_0x5673d5=_0xf2a16b['model']['schema'];if(!_0x12e77b['isTouching'](_0x127aed)||!_0x12e77b['nodeAfter'])return;const _0x48abd1=_0x12e77b['nodeAfter'];if(_0x5673d5['isBlock'](_0x48abd1)&&!_0x5673d5['isLimit'](_0x48abd1)&&_0x5673d5['checkChild'](_0x48abd1,'$text')){if(!_0x31a267['consumable']['consume'](_0x19326a['markerRange'],_0x22ce1e['name']))return;const {id:_0x15d933,authorId:_0x3c8adc}=_0x119fa5['_splitMarkerName'](_0x19326a['markerName']),_0x59d44c=_0x31a267['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x15d933,'data-author-id':_0x3c8adc}),_0x368e0a=_0x31a267['mapper']['toViewPosition'](_0x127aed);_0x17611a&&_0x119fa5['activeMarkers']['includes'](_0x19326a['markerName'])&&_0x31a267['writer']['addClass']('ck-suggestion-marker--active',_0x59d44c),_0x31a267['writer']['insert'](_0x368e0a,_0x59d44c),_0x31a267['mapper']['bindElementToMarker'](_0x59d44c,_0x19326a['markerName']);}};}class At extends _0x555e71{['afterInit'](){const _0x268cf6=this['editor'];_0x268cf6['commands']['get']('replaceSource')&&_0x268cf6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x555e71{['afterInit'](){const _0x2d1aea=this['editor'];if(!_0x2d1aea['plugins']['has']('RemoveFormatEditing'))return;_0x2d1aea['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f4d5d=this['editor'];_0x1f4d5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf9f3ca=>{if('formatBlock'!=_0xf9f3ca['type']&&'formatInline'!=_0xf9f3ca['type'])return;const {data:_0xe11066}=_0xf9f3ca;return _0xe11066&&'removeFormat'==_0xe11066['commandName']?{'type':'format','content':o(_0x1f4d5d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class $t extends _0x555e71{['afterInit'](){const _0x21fcba=this['editor'];if(!_0x21fcba['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3cdc21=_0x21fcba['plugins']['get']('TrackChangesEditing');_0x3cdc21['enableCommand']('goToPreviousRestrictedEditingException'),_0x3cdc21['enableCommand']('goToNextRestrictedEditingException');const _0x4f3ee2=_0x21fcba['plugins']['get']('RestrictedEditingModeEditing');_0x4f3ee2['enableCommand']('trackChanges'),_0x4f3ee2['enableCommand']('acceptSuggestion'),_0x4f3ee2['enableCommand']('discardSuggestion'),_0x4f3ee2['enableCommand']('acceptAllSuggestions'),_0x4f3ee2['enableCommand']('discardAllSuggestions'),_0x4f3ee2['enableCommand']('acceptSelectedSuggestions'),_0x4f3ee2['enableCommand']('discardSelectedSuggestions');}}class vt extends _0x555e71{['afterInit'](){const _0x53ab59=this['editor'];if(!_0x53ab59['plugins']['has']('ShiftEnter'))return;const _0x2cc473=_0x53ab59['plugins']['get']('TrackChangesEditing');_0x2cc473['enableCommand']('shiftEnter'),_0x53ab59['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',qe(_0x53ab59),{'priority':'high'}),_0x53ab59['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',qe(_0x53ab59),{'priority':'high'}),_0x53ab59['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x49638f,_0x2124a0,_0x157931)=>{_0x157931['options']['showSuggestionHighlights']&&qe(_0x53ab59,{'showActiveMarker':!0x1})(_0x49638f,_0x2124a0,_0x157931);}),_0x2cc473['descriptionFactory']['registerElementLabel']('softBreak',_0x201afa=>o(_0x53ab59['locale'],'ELEMENT_LINE_BREAK',_0x201afa));}}function qe(_0x5df066,{showActiveMarker:_0x5a1313=!0x0}={}){return(_0x5a03e8,_0x4b5636,_0x3c5946)=>{const _0x1638a3=_0x5df066['plugins']['get']('TrackChangesEditing');if(!_0x3c5946['consumable']['test'](_0x4b5636['markerRange'],_0x5a03e8['name']))return;const _0x361d81=_0x5df066['model'];for(const _0x1f2b20 of _0x4b5636['markerRange']['getItems']()){if(!_0x1f2b20['is']('element','softBreak'))continue;const _0x33c25f='deletion'==_0x4b5636['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x222091,authorId:_0x141f29}=_0x1638a3['_splitMarkerName'](_0x4b5636['markerName']),_0xbeb168=_0x3c5946['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33c25f,'data-suggestion':_0x222091,'data-author-id':_0x141f29}),_0x101055=_0x3c5946['mapper']['toViewPosition'](_0x361d81['createPositionBefore'](_0x1f2b20));_0x5a1313&&_0x1638a3['activeMarkers']['includes'](_0x4b5636['markerName'])&&_0x3c5946['writer']['addClass']('ck-suggestion-marker--active',_0xbeb168),_0x3c5946['writer']['insert'](_0x101055,_0xbeb168),_0x3c5946['mapper']['bindElementToMarker'](_0xbeb168,_0x4b5636['markerName']);}};}class Ct extends _0x555e71{['afterInit'](){const _0x9243c7=this['editor'],_0x9072d6=_0x9243c7['model'],_0x337f88=_0x9243c7['locale'];if(!_0x9243c7['plugins']['has']('StandardEditingModeEditing'))return;const _0x1ec536=_0x9243c7['plugins']['get']('TrackChangesEditing'),_0x23e2e0='restrictedEditingException',_0x55b9d9=_0x9243c7['commands']['get'](_0x23e2e0);_0x1ec536['enableCommand'](_0x23e2e0,(_0xa655a,_0x34c427={})=>{const _0x355943=_0x9072d6['document']['selection'];if(_0x355943['isCollapsed'])return void _0xa655a(_0x34c427);const _0x309b65=void 0x0!==_0x34c427['forceValue']?_0x34c427['forceValue']:!_0x55b9d9['value'];_0x9072d6['change'](()=>{const _0x27acb8=Array['from'](_0x355943['getRanges']());for(const _0x425e5f of _0x27acb8){const _0x353997=_0x309b65?[_0x425e5f]:io(_0x23e2e0,_0x425e5f,_0x9072d6);for(const _0xa3f4b9 of _0x353997)_0x1ec536['markInlineFormat'](_0xa3f4b9,{'commandName':_0x23e2e0,'commandParams':[{'forceValue':_0x309b65}]});}});}),_0x1ec536['descriptionFactory']['registerDescriptionCallback'](_0xdae871=>{if('formatBlock'!=_0xdae871['type']&&'formatInline'!=_0xdae871['type'])return;const {data:_0x598543}=_0xdae871;return _0x598543&&_0x598543['commandName']==_0x23e2e0?_0x598543['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x337f88,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x337f88,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class Nt extends _0x555e71{['afterInit'](){const _0x49c17f=this['editor'];if(!_0x49c17f['plugins']['has']('Style')||!_0x49c17f['plugins']['has']('DataSchema'))return;const _0x48f3ee=_0x49c17f['plugins']['get']('TrackChangesEditing'),_0x6eb422=_0x49c17f['locale'],_0x4e2c48=_0x49c17f['config']['get']('style')||{},_0x29551d=_0x49c17f['plugins']['get']('GeneralHtmlSupport'),_0x275705=_0x49c17f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x49c17f['plugins']['get']('DataSchema'),_0x4e2c48['definitions']);_0x48f3ee['enableDefaultAttributesIntegration']('style');const _0x88adcd=new Set();for(const _0x239ca6 of _0x275705['block']){const _0x358353=_0x29551d['getGhsAttributeNameForElement'](_0x239ca6['element']);_0x88adcd['add'](_0x358353);}const _0x3a6c7f=new Set();for(const _0x56af8e of _0x275705['inline']){const _0x4eedf0=_0x29551d['getGhsAttributeNameForElement'](_0x56af8e['element']);_0x3a6c7f['add'](_0x4eedf0);for(const _0x2cc617 of _0x56af8e['ghsAttributes'])_0x3a6c7f['add'](_0x2cc617);}for(const _0x336d40 of _0x88adcd)_0x48f3ee['registerBlockAttribute'](_0x336d40),_0x48f3ee['descriptionFactory']['registerAttributeLabel'](_0x336d40,o(_0x6eb422,'FORMAT_STYLE'));for(const _0x306de2 of _0x3a6c7f)_0x48f3ee['registerInlineAttribute'](_0x306de2),_0x48f3ee['descriptionFactory']['registerAttributeLabel'](_0x306de2,o(_0x6eb422,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23fd99=this['editor'],_0x2d0169=_0x23fd99['locale'];_0x23fd99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6bd6e2=>{if('formatBlock'!=_0x6bd6e2['type']&&'formatInline'!=_0x6bd6e2['type'])return;const {data:_0x18326d}=_0x6bd6e2;return _0x18326d&&'style'===_0x18326d['commandName']?_0x18326d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d0169,'*Set\x20format:*\x20%0',_0x18326d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2d0169,'*Remove\x20format:*\x20%0',_0x18326d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x555e71{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2a7e30){super(_0x2a7e30),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x331c97=this['editor'],_0x11e215=_0x331c97['model']['document']['selection'];if(!_0x331c97['plugins']['has']('TableEditing'))return;const _0x511db2=_0x331c97['locale'],_0x54930e=_0x331c97['plugins']['get']('TrackChangesEditing'),_0x590805=_0x331c97['plugins']['get']('TableUtils');_0x54930e['descriptionFactory']['registerElementLabel']('table',_0x463aed=>o(_0x511db2,'ELEMENT_TABLE',_0x463aed)),this['_setupColumnsRowsFixing'](),_0x54930e['enableCommand']('insertTable'),_0x54930e['enableCommand']('selectTableRow'),_0x54930e['enableCommand']('selectTableColumn');for(const _0xc1599b of['insertTableRowAbove','insertTableRowBelow']){const _0x1ac7e3=_0x331c97['commands']['get'](_0xc1599b);_0x54930e['enableCommand'](_0xc1599b,_0x3f70ef=>{_0x331c97['model']['change'](_0x1dc486=>{_0x3f70ef();const _0x3c1344='above'===_0x1ac7e3['order'],_0x4ebe10=_0x590805['getSelectionAffectedTableCells'](_0x11e215),_0x4e9aed=_0x590805['getRowIndexes'](_0x4ebe10),_0x54fd97=_0x3c1344?_0x4e9aed['first']-0x1:_0x4e9aed['last']+0x1,_0x36ea29=_0x4ebe10[0x0]['findAncestor']('table'),_0x40fc1d=_0x590805['createTableWalker'](_0x36ea29,{'startRow':_0x54fd97,'endRow':_0x54fd97}),_0x4f67be=Array['from'](_0x40fc1d)['map'](_0x3acafc=>_0x1dc486['createRangeOn'](_0x3acafc['cell']));_0x54930e['markMultiRangeInsertion'](_0x4f67be,'tableRow');});});}for(const _0x2636e7 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2ec91d=_0x331c97['commands']['get'](_0x2636e7);_0x54930e['enableCommand'](_0x2636e7,_0x3930d4=>{_0x331c97['model']['change'](_0x4f0154=>{_0x3930d4();const _0x3138c4='left'===_0x2ec91d['order'],_0x3191e4=_0x590805['getSelectionAffectedTableCells'](_0x11e215),_0x49a9ae=_0x590805['getColumnIndexes'](_0x3191e4),_0x4e681a=_0x3138c4?_0x49a9ae['first']-0x1:_0x49a9ae['last']+0x1,_0x14d772=_0x3191e4[0x0]['findAncestor']('table'),_0xc37224=_0x590805['createTableWalker'](_0x14d772,{'startRow':0x0,'column':_0x4e681a,'includeAllSlots':!0x1}),_0xd4796d=Array['from'](_0xc37224)['map'](_0x202409=>_0x4f0154['createRangeOn'](_0x202409['cell']));_0x54930e['markMultiRangeInsertion'](_0xd4796d,'tableColumn');});});}for(const _0xa34bc3 of['removeTableRow','removeTableColumn']){const _0x43ef10=_0xa34bc3['substr'](0xb),_0x4f695c=_0x43ef10['toLowerCase'](),_0x24e8b6=_0x4f695c['substr'](0x0,0x3)+'span',_0x52fea8='table'+_0x43ef10,_0x3aa9b6='min'+_0x43ef10,_0x4bf4f8='max'+_0x43ef10;_0x54930e['enableCommand'](_0xa34bc3,()=>{_0x331c97['model']['change'](_0x256f51=>{const _0xfbee05=_0x590805['getSelectionAffectedTableCells'](_0x11e215),_0x533722=_0xfbee05[0x0]['findAncestor']('table');let _0x299ec4;if('removeTableRow'==_0xa34bc3){const _0x1ab6b1=_0x590805['getRowIndexes'](_0xfbee05);_0x299ec4={'startRow':_0x1ab6b1['first'],'endRow':_0x1ab6b1['last'],'includeAllSlots':!0x0};}else{const _0x13a395=_0x590805['getColumnIndexes'](_0xfbee05);_0x299ec4={'startColumn':_0x13a395['first'],'endColumn':_0x13a395['last'],'includeAllSlots':!0x0};}const _0x7ef3d1=_0x590805['createTableWalker'](_0x533722,_0x299ec4),_0x213af7=Array['from'](_0x7ef3d1)['map'](({cell:_0x160b5c})=>_0x160b5c),_0x2f258f=Oe(_0x213af7['filter'](_0x3b0f36=>_0x3b0f36['hasAttribute'](_0x24e8b6))),_0xefae85=Oe(_0x213af7['filter'](_0x4f9714=>!_0x4f9714['hasAttribute'](_0x24e8b6)))['map'](_0x122f7a=>_0x256f51['createRangeOn'](_0x122f7a)),_0x569a41=_0x54930e['markMultiRangeDeletion'](_0xefae85,_0x52fea8);if(_0x569a41&&('tableRow'==_0x569a41['subType']||'tableColumn'==_0x569a41['subType'])){const _0x34275d=this['_getSuggestionCoords'](_0x569a41);for(const _0x17855c of _0x2f258f){const _0x581107=_0x256f51['createRangeOn'](_0x17855c),_0x5dd846=_0x590805['getCellLocation'](_0x17855c),_0x2610f0=_0x17855c['getAttribute'](_0x24e8b6)-0x1,_0x3792a0=_0x34275d[_0x3aa9b6],_0x33b63e=_0x34275d[_0x4bf4f8];_0x3792a0<=_0x5dd846[_0x4f695c]&&_0x5dd846[_0x4f695c]+_0x2610f0<=_0x33b63e&&_0x569a41['addRange'](_0x581107);}}});});}function _0x3dbae1(_0x32fd35){const _0x2b8ef1=Array['from'](_0x11e215['getRanges']())['map'](_0x132ec9=>_0x1c1121['fromRange'](_0x132ec9));_0x331c97['model']['change'](_0xe01c21=>{const _0x2a1b96=_0xe01c21['batch'];_0x32fd35=_0x32fd35['filter'](_0xb4c98c=>'$graveyard'!=_0xb4c98c['root']['rootName']),_0xe01c21['setSelection'](_0x32fd35),_0x331c97['commands']['get']('removeTableRow')['refresh'](),_0x331c97['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x331c97['model']['enqueueChange'](()=>{_0x331c97['model']['enqueueChange'](_0x2a1b96,_0x3c00b2=>{const _0x30e17e=_0x2b8ef1['filter'](_0x283f17=>'$graveyard'!=_0x283f17['root']['rootName']);_0x30e17e['length']>0x0&&_0x3c00b2['setSelection'](_0x30e17e);for(const _0x2dea92 of _0x2b8ef1)_0x2dea92['detach']();});});});}function _0x3d8b42(_0x2163cb){_0x331c97['model']['change'](_0x1090b7=>{const _0x100e4c=Array['from'](_0x11e215['getRanges']())['map'](_0x567f42=>_0x1c1121['fromRange'](_0x567f42)),_0x135f0d=[];for(const _0x26db7a of _0x2163cb)for(const _0x4b27b2 of _0x26db7a['getItems']({'shallow':!0x0}))_0x135f0d['push'](_0x4b27b2);for(const _0x324ad5 of _0x135f0d)'$graveyard'!=_0x324ad5['root']['rootName']&&(_0x1090b7['setSelection'](_0x1090b7['createPositionAt'](_0x324ad5,0x0)),_0x331c97['commands']['get']('removeTableColumn')['refresh'](),_0x331c97['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xf0d161=_0x100e4c['filter'](_0x4e91c9=>'$graveyard'!=_0x4e91c9['root']['rootName']);_0xf0d161['length']>0x0&&_0x1090b7['setSelection'](_0xf0d161);for(const _0x244669 of _0x100e4c)_0x244669['detach']();});}function _0x8d021a(_0x2c2e96,_0x561cfa){return _0x561cfa['every'](_0x47737e=>_0x2c2e96['some'](_0x36536e=>_0x36536e['end']['isEqual'](_0x47737e['start'])||_0x47737e['end']['isEqual'](_0x36536e['start'])));}function _0x31b67a(_0x69814a,_0x38d318){return!_0x69814a['some'](_0x293aa7=>_0x38d318['some'](_0x251870=>_0x293aa7['isIntersecting'](_0x251870)))&&_0x69814a['some'](_0x395a2b=>_0x38d318['some'](_0x2e9d35=>_0x395a2b['end']['isTouching'](_0x2e9d35['start'])));}_0x331c97['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a4661,_0x2f58b3,_0x1fb21c)=>{if(!_0x1fb21c['options']['showSuggestionHighlights'])return;const _0x14f691=_0x2f58b3['item'];if(!_0x14f691||!_0x14f691['is']('element','tableCell'))return;const _0x32345d=_0x1fb21c['mapper']['toViewElement'](_0x14f691);if(_0x32345d){const {id:_0x3c7cfc,authorId:_0x3519b0}=_0x54930e['_splitMarkerName'](_0x2f58b3['markerName']);_0x58bd81(_0x32345d,_0x1fb21c['writer'],(_0x370436,_0x51e3d6,_0x2cfbe5)=>{_0x2cfbe5['addClass'](_0x1613bf(_0x51e3d6['classes']),_0x370436),_0x2cfbe5['setAttribute']('data-suggestion-id',_0x3c7cfc,_0x370436),_0x2cfbe5['setAttribute']('data-author-id',_0x3519b0,_0x370436);},(_0x24a21d,_0x249b6f,_0x4873fe)=>{_0x4873fe['removeClass'](_0x1613bf(_0x249b6f['classes']),_0x24a21d),_0x4873fe['removeAttribute']('data-suggestion-id',_0x24a21d),_0x4873fe['removeAttribute']('data-author-id',_0x24a21d);});}},{'priority':'highest'}),_0x54930e['descriptionFactory']['registerDescriptionCallback'](_0x167238=>{if('insertion'!=_0x167238['type']&&'deletion'!=_0x167238['type'])return;const _0x2d196f=_0x167238['getContainedElement']();if(null!=_0x2d196f&&_0x2d196f['is']('element','table')){if('insertion'==_0x167238['type']){const _0x4bcb7d=_0x167238['getItems']()['filter'](_0x1f4e52=>_0x1f4e52['is']('$textProxy'))['map'](_0x5de90a=>_0x5de90a['data']);if(_0x4bcb7d['length'])return{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4bcb7d['join']('\x20')+'\x22'))};}if('deletion'==_0x167238['type']){const _0x4d3bcb=_0x167238['getItems']()['filter'](_0x2ca406=>_0x2ca406['is']('$textProxy'))['map'](_0xc88863=>_0xc88863['data']);if(_0x4d3bcb['length'])return{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d3bcb['join']('\x20')+'\x22'))};}}}),_0x54930e['descriptionFactory']['registerDescriptionCallback'](_0x481480=>{if('tableRow'==_0x481480['subType']){const _0x197eac=_0x481480['getItems']()['filter'](_0x444a0c=>_0x444a0c['is']('$textProxy'))['map'](_0x496ee8=>_0x496ee8['data']),_0x568978=this['_getSuggestionCoords'](_0x481480),_0x5d7892=_0x568978['maxRow']-_0x568978['minRow']+0x1;if('insertion'==_0x481480['type'])return _0x197eac['length']?{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d7892,'\x22'+_0x197eac['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_ROW',_0x5d7892))};if('deletion'==_0x481480['type'])return _0x197eac['length']?{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d7892,'\x22'+_0x197eac['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_ROW',_0x5d7892))};}if('tableColumn'==_0x481480['subType']){const _0x4ea725=_0x481480['getItems']()['filter'](_0x4752d5=>_0x4752d5['is']('$textProxy'))['map'](_0xbf9236=>_0xbf9236['data']),_0x5e5f5e=this['_getSuggestionCoords'](_0x481480),_0x3a4796=_0x5e5f5e['maxColumn']-_0x5e5f5e['minColumn']+0x1;if('insertion'==_0x481480['type'])return _0x4ea725['length']?{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a4796,'\x22'+_0x4ea725['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x511db2,'*Insert:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_COLUMN',_0x3a4796))};if('deletion'==_0x481480['type'])return _0x4ea725['length']?{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3a4796,'\x22'+_0x4ea725['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x511db2,'*Remove:*\x20%0',o(_0x511db2,'ELEMENT_TABLE_COLUMN',_0x3a4796))};}}),_0x54930e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3dbae1),_0x54930e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3dbae1),_0x54930e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d8b42),_0x54930e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d8b42),_0x54930e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x8d021a),_0x54930e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x8d021a),_0x54930e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x31b67a),_0x54930e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x31b67a);}['_acceptFormatSuggestionCallbackFactory'](){const _0xed58f5=this['editor'],_0x1d68e5=_0xed58f5['model']['document']['selection'];return(_0x40dacc,_0x562bc5)=>{_0xed58f5['model']['change'](_0x8417e6=>{const {commandName:_0x500695,commandParams:_0x5d4377}=_0x562bc5;let _0xa5d959=_0x40dacc[0x0]['end']['nodeBefore'];_0x5d4377&&_0x5d4377[0x0]&&!0x1===_0x5d4377[0x0]['forceValue']&&(_0xa5d959=_0x40dacc[0x0]['start']['nodeAfter']);const _0x14e5e8=_0x8417e6['createRangeIn'](_0xa5d959);if('$graveyard'==_0x14e5e8['root']['rootName'])return;const _0x59e2e0=Array['from'](_0x1d68e5['getRanges']())['map'](_0x61ff1c=>_0x1c1121['fromRange'](_0x61ff1c));_0x8417e6['setSelection'](_0x14e5e8),_0xed58f5['commands']['get'](_0x500695)['refresh'](),_0x5d4377['push']({'forceDefaultExecution':!0x0}),_0xed58f5['execute'](_0x500695,..._0x5d4377);const _0x2b082e=_0x59e2e0['filter'](_0x15b03d=>'$graveyard'!=_0x15b03d['root']['rootName']);_0x2b082e['length']>0x0&&_0x8417e6['setSelection'](_0x2b082e);for(const _0x5ac7da of _0x59e2e0)_0x5ac7da['detach']();});};}['_getCoordsForCells'](_0x23b4ef){const _0x114ed5=this['editor']['plugins']['get']('TableUtils');let _0x3079d7=Number['MAX_SAFE_INTEGER'],_0x4950db=Number['MIN_SAFE_INTEGER'],_0x37df9b=Number['MAX_SAFE_INTEGER'],_0xdcb600=Number['MIN_SAFE_INTEGER'];for(const _0x30e20a of _0x23b4ef){if('$graveyard'==_0x30e20a['root']['rootName'])continue;const {row:_0xccacf0,column:_0x206c85}=_0x114ed5['getCellLocation'](_0x30e20a),_0x2e92b7=_0x30e20a['hasAttribute']('rowspan')?_0x30e20a['getAttribute']('rowspan')-0x1:0x0,_0x236a63=_0x30e20a['hasAttribute']('colspan')?_0x30e20a['getAttribute']('colspan')-0x1:0x0;_0x3079d7=_0xccacf0<_0x3079d7?_0xccacf0:_0x3079d7,_0x4950db=_0xccacf0+_0x2e92b7>_0x4950db?_0xccacf0+_0x2e92b7:_0x4950db,_0x37df9b=_0x206c85<_0x37df9b?_0x206c85:_0x37df9b,_0xdcb600=_0x206c85+_0x236a63>_0xdcb600?_0x206c85+_0x236a63:_0xdcb600;}return{'minRow':_0x3079d7,'maxRow':_0x4950db,'minColumn':_0x37df9b,'maxColumn':_0xdcb600};}['_setupColumnsRowsFixing'](){const _0x4057bf=this['editor'],_0x389d86=_0x4057bf['plugins']['get']('TrackChangesEditing'),_0x17d0da=_0x4057bf['plugins']['get']('TableUtils');_0x4057bf['model']['document']['on']('change:data',()=>{const _0x2db7b8=Array['from'](_0x4057bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x510705,data:_0x54ef25}of _0x2db7b8){const {group:_0x39fd4a,id:_0x355a46,subType:_0x311b83}=_0x389d86['_splitMarkerName'](_0x510705);if('suggestion'!=_0x39fd4a)continue;if(null!=_0x54ef25['oldRange'])continue;const _0x397bc4=_0x389d86['getSuggestion'](_0x355a46);this['_tablePostFixingSubtypes']['includes'](_0x311b83)&&this['_tableSuggestions']['add'](_0x397bc4);}},{'priority':'low'});const _0x51b48e=(_0x19d521,_0x93a808)=>{let _0x3b1dbf=!0x1;const _0x5d0298=_0x93a808['createRangeOn'](_0x19d521),_0x485e17=_0x19d521['findAncestor']('table'),_0x35e369=_0x17d0da['getCellLocation'](_0x19d521);for(const _0x5e08b3 of this['_tableSuggestions']){const _0x2bbc27=_0x5e08b3['subType'],_0x3c8e11=_0x2bbc27['startsWith']('tablePaste'),_0xd6bb68=_0x2bbc27['substr'](_0x3c8e11?0xa:0x5),_0x103144=_0xd6bb68['toLowerCase'](),_0x863b7e=_0x103144['substr'](0x0,0x3)+'span',_0xc86336='min'+_0xd6bb68,_0x51b15a='max'+_0xd6bb68;if(!_0x5e08b3['isInContent'])continue;if(_0x485e17!=_0x5e08b3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5e08b3['isIntersectingWithRange'](_0x5d0298))continue;const _0x1957bc=_0x19d521['hasAttribute'](_0x863b7e)?_0x19d521['getAttribute'](_0x863b7e)-0x1:0x0,_0x13bb12=this['_getSuggestionCoords'](_0x5e08b3),_0x3a301c=_0x13bb12[_0xc86336],_0x9f7a38=_0x13bb12[_0x51b15a];_0x3a301c<=_0x35e369[_0x103144]&&_0x35e369[_0x103144]+_0x1957bc<=_0x9f7a38&&(_0x5e08b3['addRange'](_0x5d0298),_0x3b1dbf=!0x0);}return _0x3b1dbf;};_0x4057bf['model']['document']['registerPostFixer'](_0x3fb5c8=>{let _0x2b9eee=!0x1;for(const _0x49fa2b of _0x4057bf['model']['document']['differ']['getChanges']())if('insert'==_0x49fa2b['type']){if('tableRow'==_0x49fa2b['name']){for(const _0x2281be of _0x49fa2b['position']['nodeAfter']['getChildren']())_0x2b9eee=_0x2b9eee||_0x51b48e(_0x2281be,_0x3fb5c8);}else'tableCell'==_0x49fa2b['name']&&(_0x2b9eee=_0x2b9eee||_0x51b48e(_0x49fa2b['position']['nodeAfter'],_0x3fb5c8));}return _0x2b9eee;});}['_getSuggestionCoords'](_0x3c6c73){return this['_getCoordsForCells'](_0x3c6c73['getRanges']()['map'](_0x8cc19c=>_0x8cc19c['start']['nodeAfter']));}}function Oe(_0x523cc3){return Array['from'](new Set(_0x523cc3)['values']());}class Mt extends _0x555e71{static get['requires'](){return[Dt];}['afterInit'](){const _0x1f4fe4=this['editor'],_0x3123c1=_0x1f4fe4['model']['document']['selection'],_0x201f57=_0x1f4fe4['locale'];if(!_0x1f4fe4['plugins']['has']('TableEditing'))return;const _0x1b1bb8=_0x1f4fe4['plugins']['get']('TrackChangesEditing'),_0x54c255=_0x1f4fe4['plugins']['get']('TableUtils'),_0x5502ef=_0x1f4fe4['plugins']['get'](Dt);_0x5502ef['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1b1bb8['enableCommand']('mergeTableCells',()=>{const _0x5ba985=_0x54c255['getSelectionAffectedTableCells'](_0x1f4fe4['model']['document']['selection']);_0x1f4fe4['model']['change'](()=>{_0x1b1bb8['markMultiRangeBlockFormat'](_0x5ba985,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1f4fe4['commands']['get']('mergeTableCells')['on']('execute',(_0xf4e6f3,_0x1d3e9e)=>{_0x1f4fe4['commands']['get']('trackChanges')['value']&&(_0x1d3e9e['length']>0x0&&_0x1d3e9e[_0x1d3e9e['length']-0x1]&&_0x1d3e9e[_0x1d3e9e['length']-0x1]['forceDefaultExecution']||_0x1b1bb8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xf4e6f3['stop']());},{'priority':'highest'});for(const _0x312d1b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x332bba=_0x1f4fe4['commands']['get'](_0x312d1b);_0x1b1bb8['enableCommand'](_0x312d1b,()=>{const _0x274039=_0x1f4fe4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x175008=>_0x175008['is']('element','tableCell')),_0x31edba=_0x332bba['value'];_0x1f4fe4['model']['change'](()=>{_0x1b1bb8['markMultiRangeBlockFormat']([_0x274039,_0x31edba],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x178e13 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5c0ef2=_0x1f4fe4['commands']['get'](_0x178e13);_0x1b1bb8['enableCommand'](_0x178e13,()=>{const _0x41316e=_0x54c255['getSelectionAffectedTableCells'](_0x1f4fe4['model']['document']['selection'])[0x0],_0x9045c5=_0x41316e['findAncestor']('table'),{column:_0x1864b7,row:_0x413d1f}=_0x54c255['getCellLocation'](_0x41316e);let _0x2d4139=[];if('horizontally'==_0x5c0ef2['direction']){const _0x156476=_0x54c255['createTableWalker'](_0x9045c5,{'startRow':_0x413d1f,'endRow':_0x413d1f,'includeAllSlots':!0x0});_0x2d4139=Array['from'](_0x156476)['map'](_0x279b36=>_0x279b36['cell']);}else{const _0x41caee=_0x54c255['createTableWalker'](_0x9045c5,{'column':_0x1864b7,'includeAllSlots':!0x0});_0x2d4139=Array['from'](_0x41caee)['map'](_0x16df75=>_0x16df75['cell']);}_0x1f4fe4['model']['change'](_0x13780a=>{_0x1b1bb8['markBlockFormat'](_0x13780a['createRangeOn'](_0x41316e),{'commandName':_0x178e13,'commandParams':[]},_0x2d4139,_0x178e13);});});}_0x1b1bb8['descriptionFactory']['registerDescriptionCallback'](_0x3c1cb6=>{if('formatBlock'!=_0x3c1cb6['type']&&'formatInline'!=_0x3c1cb6['type'])return;const {data:_0x112562}=_0x3c1cb6;return _0x112562&&'mergeTableCells'==_0x112562['commandName']?{'type':'format','content':o(_0x201f57,'*Merge\x20cells*')}:void 0x0;}),_0x1b1bb8['descriptionFactory']['registerDescriptionCallback'](_0x4f89c5=>{if('formatBlock'!=_0x4f89c5['type']&&'formatInline'!=_0x4f89c5['type'])return;const {data:_0x47a6d5}=_0x4f89c5;return _0x47a6d5?'splitTableCellVertically'==_0x47a6d5['commandName']?{'type':'format','content':o(_0x201f57,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x47a6d5['commandName']?{'type':'format','content':o(_0x201f57,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x128535=_0x5502ef['_acceptFormatSuggestionCallbackFactory']();for(const _0x76d7d7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1b1bb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x76d7d7,'accept',_0x128535);for(const _0x490970 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1b1bb8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x490970,'accept',_0x128535);_0x1b1bb8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3034ec=>{_0x1f4fe4['model']['change'](_0x3868ab=>{const _0x47a6a3=Array['from'](_0x3123c1['getRanges']())['map'](_0x1f6a8d=>_0x1c1121['fromRange'](_0x1f6a8d));_0x3868ab['setSelection'](_0x3034ec),_0x1f4fe4['commands']['get']('mergeTableCells')['refresh'](),_0x1f4fe4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3311d1=_0x47a6a3['filter'](_0x21e87b=>'$graveyard'!=_0x21e87b['root']['rootName']);_0x3311d1['length']>0x0&&_0x3868ab['setSelection'](_0x3311d1);for(const _0xacb29f of _0x47a6a3)_0xacb29f['detach']();});});for(const _0x29c08d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1390c4=_0x1f4fe4['commands']['get'](_0x29c08d);_0x1390c4['on']('set:isEnabled',(_0x5d1935,_0x233d5c,_0xbd2c8f)=>{if(_0xbd2c8f){const _0x1cb7da=_0x1f4fe4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1d18c3=>_0x1d18c3['is']('element','tableCell'));this['_areMergableCells'](_0x1390c4['value'],_0x1cb7da)||(_0x5d1935['return']=!0x1,_0x5d1935['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1542b9=this['editor']['commands']['get']('mergeTableCells'),_0x566c07=this['editor']['plugins']['get']('TableUtils');if(!_0x1542b9['isEnabled'])return!0x1;const _0x29ae5b=_0x566c07['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x95851 of _0x29ae5b)for(const _0x2385c1 of _0x29ae5b)if(_0x95851!=_0x2385c1&&!this['_areMergableCells'](_0x95851,_0x2385c1))return!0x1;return!0x0;}['_areMergableCells'](_0x2c685e,_0x1a9439){const _0x10918c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f28d0=this['editor']['model']['createRangeOn'](_0x2c685e),_0xa863d7=this['editor']['model']['createRangeOn'](_0x1a9439),_0x4a7ee8=new Set(),_0x40f2ac=new Set();for(const _0x51daf4 of _0x10918c['getSuggestions']())if(('insertion'==_0x51daf4['type']||'deletion'==_0x51daf4['type']||'mergeTableCells'==_0x51daf4['subType'])&&_0x51daf4['isInContent']){for(const _0x299c90 of _0x51daf4['getRanges']())_0x299c90['containsRange'](_0x3f28d0,!0x0)&&_0x4a7ee8['add'](_0x51daf4['type']+':'+_0x51daf4['author']['id']),_0x299c90['containsRange'](_0xa863d7,!0x0)&&_0x40f2ac['add'](_0x51daf4['type']+':'+_0x51daf4['author']['id']);}if(_0x4a7ee8['size']!=_0x40f2ac['size'])return!0x1;for(const _0x45b8f3 of _0x4a7ee8)if(!_0x40f2ac['has'](_0x45b8f3))return!0x1;return!0x0;}}class Bt extends _0x555e71{static get['requires'](){return[Dt];}['afterInit'](){const _0x357ee6=this['editor'];if(!_0x357ee6['plugins']['has']('TableEditing'))return;const _0x4390fa=_0x357ee6['locale'],_0x4f6b1f=_0x357ee6['plugins']['get']('TrackChangesEditing');_0x4f6b1f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4f6b1f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4f6b1f['registerBlockAttribute']('headingRows'),_0x4f6b1f['registerBlockAttribute']('headingColumns'),_0x4f6b1f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4390fa,'FORMAT_HEADER_ROW')),_0x4f6b1f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4390fa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x42544d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b4177=this['editor']['plugins']['get']('TableUtils'),_0x334993=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();function _0x5ad6a1({showActiveMarker:_0x55ea0a=!0x0,setDataAttribute:_0x16d7ff=!0x0}={}){return(_0x287604,_0x15e56b,_0x56b63a)=>{const {type:_0x209c62,id:_0x4d62e0}=_0x42544d['_splitMarkerName'](_0x15e56b['markerName']);if(!_0x42544d['hasSuggestion'](_0x4d62e0))return;const _0x393843=_0x42544d['getSuggestion'](_0x4d62e0),_0xae8da3=_0x393843['data'];if('formatBlock'!=_0x393843['type']||!_0xae8da3||'setTableColumnHeader'!=_0xae8da3['commandName'])return;if(_0x15e56b['item'])return void _0x287604['stop']();if(!_0x56b63a['consumable']['consume'](_0x15e56b['markerRange'],_0x287604['name']))return;const _0x7f8c34=_0x15e56b['markerRange']['start']['nodeAfter'],_0xc4b31e=_0x15e56b['markerRange']['end']['nodeBefore'],_0x40eb01=_0x7f8c34['parent']['parent'],{column:_0x5727db}=_0x4b4177['getCellLocation'](_0x7f8c34),{column:_0x39c544}=_0x4b4177['getCellLocation'](_0xc4b31e);for(let _0x4bbbab=_0x5727db;_0x4bbbab<=_0x39c544;_0x4bbbab++){const _0x578187=_0x4b4177['createTableWalker'](_0x40eb01,{'column':_0x4bbbab,'includeAllSlots':!0x1});for(const _0x10637e of _0x578187){const _0x573319=_0x10637e['cell'],_0xc6e4f3=_0x56b63a['mapper']['toViewElement'](_0x573319);_0x56b63a['writer']['addClass']('ck-suggestion-marker-'+_0x209c62,_0xc6e4f3),_0x16d7ff&&_0x56b63a['writer']['setAttribute']('data-suggestion',_0x4d62e0,_0xc6e4f3),_0x56b63a['mapper']['bindElementToMarker'](_0xc6e4f3,_0x15e56b['markerName']),_0x55ea0a&&(_0x42544d['activeMarkers']['includes'](_0x15e56b['markerName'])?_0x56b63a['writer']['addClass']('ck-suggestion-marker--active',_0xc6e4f3):_0x56b63a['writer']['removeClass']('ck-suggestion-marker--active',_0xc6e4f3));}}};}_0x42544d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x334993),_0x42544d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x334993),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5ad6a1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1357df,_0x10e83a,_0x2c55d3)=>{_0x2c55d3['options']['showSuggestionHighlights']&&_0x5ad6a1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1357df,_0x10e83a,_0x2c55d3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4d7e9c,_0x233bec,_0x318873)=>{const {type:_0x520e47,id:_0x3419e7}=_0x42544d['_splitMarkerName'](_0x233bec['markerName']);if(!_0x42544d['hasSuggestion'](_0x3419e7))return;const _0x1694bf=_0x42544d['getSuggestion'](_0x3419e7),_0x4db2a6=_0x1694bf['data'];if('formatBlock'!=_0x1694bf['type']||!_0x4db2a6||'setTableColumnHeader'!=_0x4db2a6['commandName'])return;const _0xbd8c61=_0x318873['mapper']['markerNameToElements'](_0x233bec['markerName']);if(_0xbd8c61){for(const _0x17be9a of _0xbd8c61)_0x318873['writer']['removeClass']('ck-suggestion-marker-'+_0x520e47,_0x17be9a),_0x318873['writer']['removeClass']('ck-suggestion-marker--active',_0x17be9a),_0x318873['writer']['removeAttribute']('data-suggestion',_0x17be9a),_0x318873['mapper']['unbindElementFromMarkerName'](_0x17be9a,_0x233bec['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34cee2=this['editor'],_0x450960=_0x34cee2['locale'];function _0x2e44de(_0x483c1e){return{'type':'format','content':o(_0x450960,'*Format:*\x20%0',_0x483c1e)};}_0x34cee2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ea7e5=>{if('formatBlock'!=_0x3ea7e5['type'])return;const {data:_0x49f013}=_0x3ea7e5;if(_0x49f013){if('setTableRowHeader'==_0x49f013['commandName']){const _0x47a52e=_0x49f013['commandParams'][0x0]['forceValue'];return _0x2e44de(o(_0x450960,_0x47a52e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x49f013['commandName']){const _0x2d5086=_0x49f013['commandParams'][0x0]['forceValue'];return _0x2e44de(o(_0x450960,_0x2d5086?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Tt extends _0x555e71{['afterInit'](){const _0x32f8c0=this['editor'],_0x323bfd=_0x32f8c0['locale'],_0x1dea5c=_0x32f8c0['plugins']['get']('TrackChangesEditing');function _0x152ef3(_0x240703){return{'type':'format','content':''+o(_0x323bfd,'*Set\x20table\x20type:*\x20%0',_0x240703)};}_0x32f8c0['plugins']['has']('TableLayout')&&(_0x1dea5c['enableCommand']('insertTableLayout'),_0x1dea5c['enableDefaultAttributesIntegration']('tableType'),_0x1dea5c['registerBlockAttribute']('tableType'),_0x1dea5c['descriptionFactory']['registerElementLabel'](_0x3609a5=>_0x3609a5['is']('element','table')&&'layout'===_0x3609a5['getAttribute']('tableType'),_0x200580=>o(_0x323bfd,'ELEMENT_LAYOUT_TABLE',_0x200580)),_0x1dea5c['descriptionFactory']['registerDescriptionCallback'](_0x272d79=>{const {data:_0x5425e0}=_0x272d79;if(_0x5425e0&&'tableType'==_0x5425e0['key'])switch(_0x5425e0['newValue']){case'layout':return _0x152ef3(o(_0x323bfd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x152ef3(o(_0x323bfd,'ELEMENT_CONTENT_TABLE'));}}));}}const Ue=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],He=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Ue['map'](_0x39c272=>[_0x39c272,null]));class Ot extends _0x555e71{static get['requires'](){return[Dt];}['afterInit'](){const _0x49ad97=this['editor'];if(!_0x49ad97['plugins']['has']('TableClipboard'))return;const _0x1a750e=_0x49ad97['plugins']['get']('TrackChangesEditing'),_0x212ba2=_0x49ad97['plugins']['get']('TableUtils'),_0x25a8c3=_0x49ad97['plugins']['get'](Dt),_0x59914e=_0x49ad97['plugins']['get']('TableClipboard'),_0x664d13=_0x49ad97['plugins']['get']('TableSelection'),_0x325cfb=_0x49ad97['plugins']['get'](_0x185637);_0x25a8c3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x49ad97['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x49ad97['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4a6551=null,_0x425bf0=!0x1;_0x325cfb['on']('contentInsertion',(_0x281b94,_0x19c68d)=>{_0x425bf0='paste'===_0x19c68d['method'];}),_0x49ad97['model']['on']('insertContent',(_0x10317,_0x5b2d6f)=>{if(!_0x425bf0&&null===_0x664d13['getSelectedTableCells']())return;const [_0x3147fe,_0x53e6b9]=_0x5b2d6f,_0x177316=_0x5b2d6f[_0x5b2d6f['length']-0x1];_0x177316&&_0x177316['forceDefaultExecution']||_0x1a750e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3e3bd5,_0xb42aab,_0x3b17f3,_0x2bebb0,_0x9ed2e6){if(_0xb42aab&&!_0xb42aab['is']('documentSelection'))return!0x1;const _0x7707bd=_0x9ed2e6['getTableIfOnlyTableInContent'](_0x3e3bd5,_0x3b17f3);if(!_0x7707bd||!Ge(_0x7707bd,void 0x0,_0x2bebb0))return!0x1;const _0x9d1a78=_0x2bebb0['getSelectionAffectedTableCells'](_0x3b17f3['document']['selection']);if(!_0x9d1a78['length'])return!0x1;const _0x24d837=_0x9d1a78[0x0]['findAncestor']('table'),_0x409389=_0x2bebb0['getRowIndexes'](_0x9d1a78),_0x3662b2=_0x2bebb0['getColumnIndexes'](_0x9d1a78),_0x266b0a={'startRow':_0x409389['first'],'endRow':_0x409389['last'],'startColumn':_0x3662b2['first'],'endColumn':_0x3662b2['last']};return 0x1==_0x9d1a78['length']&&(_0x266b0a['endRow']+=_0x2bebb0['getRows'](_0x7707bd)-0x1,_0x266b0a['endColumn']+=_0x2bebb0['getColumns'](_0x7707bd)-0x1),Ge(_0x24d837,_0x266b0a,_0x2bebb0);}(_0x3147fe,_0x53e6b9,_0x49ad97['model'],_0x212ba2,_0x59914e)&&(_0x10317['stop'](),_0x4a6551={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x49ad97['model']['change'](()=>{_0x49ad97['model']['insertContent'](_0x5b2d6f[0x0],_0x5b2d6f[0x1],_0x5b2d6f[0x2],{'forceDefaultExecution':!0x0});const _0x7cc151=_0x4fda17(),{rowInsertionRanges:_0x4fc6d7,columnInsertionRanges:_0x195b67,insertionRanges:_0x26dc55,deletionRanges:_0x19048f,cells:_0x40c73c}=_0x4a6551;_0x4fc6d7['length']&&_0x1a750e['markMultiRangeInsertion'](_0x4fc6d7,'tablePasteRow',{'tablePasteChainId':_0x7cc151}),_0x195b67['length']&&_0x1a750e['markMultiRangeInsertion'](_0x195b67,'tablePasteColumn',{'tablePasteChainId':_0x7cc151}),_0x26dc55['length']&&(_0x1a750e['markMultiRangeInsertion'](_0x26dc55,'tablePaste',{'tablePasteChainId':_0x7cc151,'skipNestingCheck':!0x0}),_0x26dc55['forEach'](_0x56c1fc=>_0x56c1fc['detach']?.())),_0x19048f['length']&&(_0x1a750e['markMultiRangeDeletion'](_0x19048f,'tablePaste',{'tablePasteChainId':_0x7cc151,'skipNestingCheck':!0x0}),_0x19048f['forEach'](_0xd3806b=>_0xd3806b['detach']?.()));const _0x48cf93=_0x1a750e['markMultiRangeBlockFormat'](_0x40c73c['map'](({element:_0x2bcd18})=>_0x2bcd18),{'formatGroupId':_0x4fda17()},[],'tablePasteCell',{'tablePasteChainId':_0x7cc151});if(_0x48cf93){const _0x15ffca=_0x48cf93['getMarkers'](),_0x5359e6=[];for(const {element:_0x572dc4,attributes:_0x3466ef}of _0x40c73c){if(!_0x3466ef)continue;const _0x129684=_0x49ad97['model']['createRangeOn'](_0x572dc4),_0x56273b=_0x15ffca['find'](_0x13966f=>_0x13966f['getRange']()['isEqual'](_0x129684));_0x56273b&&_0x5359e6['push']([_0x56273b['name'],_0x3466ef]);}_0x5359e6['length']&&_0x48cf93['setAttribute']('markerAttributes',Object['fromEntries'](_0x5359e6));}_0x4a6551=null;}));},{'priority':_0x48f7b8['high']+0xa}),_0x325cfb['on']('contentInsertion',()=>{_0x425bf0=!0x1;},{'priority':'lowest'}),_0x49ad97['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x223cb3,_0x353bdf)=>{const [_0x362682,_0x181a29,,_0x4e149a]=_0x353bdf;if(!_0x4a6551)return;_0x223cb3['stop']();const _0x4ab0b3=_0x362682['cell'],_0x500d11=_0x181a29,_0x484d5b=ze(_0x4ab0b3),_0x213268=ze(_0x500d11);_0x223cb3['return']=_0x4ab0b3;let _0x43948a=null,_0x2c676c=null;if(_0x213268||_0x484d5b){if(_0x484d5b&&!_0x213268){_0x4e149a['remove'](_0x4ab0b3['getChild'](0x0));for(const _0x428af0 of Array['from'](_0x500d11['getChildren']()))_0x4e149a['insert'](_0x428af0,_0x4ab0b3,'end');const _0x4182e0=_0x4a6551['rowInsertionIndexes']['includes'](_0x362682['row']),_0x5a5ee9=_0x4a6551['columnInsertionIndexes']['includes'](_0x362682['column']);_0x4182e0||_0x5a5ee9||(_0x43948a=_0x1c1121['fromRange'](_0x4e149a['createRangeIn'](_0x4ab0b3)));}else _0x213268&&!_0x484d5b&&(_0x2c676c=_0x4e149a['createRangeIn'](_0x4ab0b3));}else{const _0x2f236d=_0x4e149a['createElement']('tableCellSuggestion'),_0x107a5a=_0x4e149a['createElement']('tableCellSuggestion');_0x4e149a['wrap'](_0x4e149a['createRangeIn'](_0x4ab0b3),_0x107a5a),_0x4e149a['insert'](_0x2f236d,_0x4ab0b3,0x0);for(const _0x119f8b of Array['from'](_0x500d11['getChildren']()))_0x4e149a['insert'](_0x119f8b,_0x2f236d,'end');_0x43948a=_0x1c1121['fromRange'](_0x4e149a['createRangeOn'](_0x2f236d)),_0x2c676c=_0x1c1121['fromRange'](_0x4e149a['createRangeOn'](_0x107a5a));}const _0x15bd30=Array['from'](_0x500d11['getAttributes']())['filter'](([_0x765294])=>Ue['includes'](_0x765294));_0x4a6551['cells']['push']({'element':_0x4ab0b3,'attributes':_0x15bd30['length']?Object['fromEntries'](_0x15bd30):null}),_0x43948a&&_0x4a6551['insertionRanges']['push'](_0x43948a),_0x2c676c&&_0x4a6551['deletionRanges']['push'](_0x2c676c);},{'priority':'high'}),_0x212ba2['on']('insertColumns',(_0x5ca6fd,_0x4bd533)=>{const [_0x1872bb,_0x55926d={}]=_0x4bd533;if(!_0x4a6551)return;const _0x580273=_0x55926d['at']||0x0,_0x4e27f0=_0x55926d['columns']||0x1;_0x4a6551['columnInsertionIndexes']=new Array(_0x4e27f0)['fill'](_0x580273)['map']((_0x4cd612,_0x3bfa4b)=>_0x4cd612+_0x3bfa4b);for(const {cell:_0x39ba33}of _0x212ba2['createTableWalker'](_0x1872bb,{'startColumn':_0x580273,'endColumn':_0x580273+_0x4e27f0-0x1}))_0x4a6551['columnInsertionRanges']['push'](_0x49ad97['model']['createRangeOn'](_0x39ba33));},{'priority':'low'}),_0x212ba2['on']('insertRows',(_0x477b52,_0x1bb65f)=>{const [_0x5b6114,_0x45aeca={}]=_0x1bb65f;if(!_0x4a6551)return;const _0x2c45c8=_0x45aeca['at']||0x0,_0x2de9e5=_0x45aeca['rows']||0x1;_0x4a6551['rowInsertionIndexes']=new Array(_0x2de9e5)['fill'](_0x2c45c8)['map']((_0xdb3b0c,_0x22a78d)=>_0xdb3b0c+_0x22a78d);for(const {cell:_0x1414c1}of _0x212ba2['createTableWalker'](_0x5b6114,{'startRow':_0x2c45c8,'endRow':_0x2c45c8+_0x2de9e5-0x1}))_0x4a6551['rowInsertionRanges']['push'](_0x49ad97['model']['createRangeOn'](_0x1414c1));},{'priority':'low'}),_0x1a750e['descriptionFactory']['registerDescriptionCallback'](_0x56e628=>{if(_0x56e628['subType']&&_0x56e628['subType']['startsWith']('tablePaste'))return _0x56e628['previous']?{}:{'type':'insertion','content':o(_0x49ad97['locale'],'*Replace\x20table\x20cells*')};});const _0x43ad67=()=>!0x1;for(const _0x3f012b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1a750e['_suggestionFactory']['registerCustomCallback']('insertion',_0x3f012b,'join',_0x43ad67),_0x1a750e['_suggestionFactory']['registerCustomCallback']('deletion',_0x3f012b,'join',_0x43ad67),_0x1a750e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f012b,'join',_0x43ad67);_0x1a750e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43ad67),_0x1a750e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x116cbf,_0x24b230,_0x50db17)=>{const _0x1ddc4b=_0x116cbf['map'](_0x8d6143=>_0x8d6143['getContainedElement']())['filter'](_0x28320b=>_0x28320b),_0x1a0ad3=new Map(_0x1ddc4b['map'](_0x462099=>[_0x462099,null]));if(_0x4a6551){for(const {element:_0x40b985,attributes:_0x3b6151}of _0x4a6551['cells'])_0x3b6151&&_0x1a0ad3['set'](_0x40b985,_0x3b6151);}else{if(_0x50db17&&_0x50db17['markerAttributes'])for(const [_0x317086,_0x283828]of Object['entries'](_0x50db17['markerAttributes'])){const _0x34f097=_0x49ad97['model']['markers']['get'](_0x317086),_0x16ee3e=_0x34f097?_0x34f097['getRange']()['getContainedElement']():null;_0x16ee3e&&_0x1a0ad3['set'](_0x16ee3e,_0x283828);}}_0x49ad97['model']['change'](_0x383ced=>{for(const [_0x5ca46d,_0x523d6c]of _0x1a0ad3)_0x383ced['setAttributes']({...He,..._0x523d6c},_0x5ca46d);});});const _0x3203f4=(_0x1ace13,_0x1d4f21)=>{_0x1a750e['_suggestionFactory']['registerCustomCallback'](_0x1ace13,'tablePaste',_0x1d4f21,(_0x3e82f2,_0x279c52,_0x22e6f4)=>{_0x49ad97['model']['change'](_0xd9b88b=>{const _0x54c2e3=[];for(const _0x12c46b of _0x3e82f2){const _0x5a056b=_0x12c46b['start']['nodeAfter'];_0x5a056b['is']('element','tableCellSuggestion')&&_0x54c2e3['push'](_0x5a056b);}_0x1a750e['_suggestionFactory']['getSuggestionCallback'](_0x1ace13,null,_0x1d4f21)(_0x3e82f2,_0x279c52,_0x22e6f4);for(const _0x3b82d3 of _0x54c2e3)'$graveyard'!=_0x3b82d3['root']['rootName']&&_0xd9b88b['unwrap'](_0x3b82d3);});});};_0x3203f4('insertion','accept'),_0x3203f4('insertion','discard'),_0x3203f4('deletion','accept'),_0x3203f4('deletion','discard'),_0x1a750e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1438a8=>{const _0x69697e=_0x1438a8['map'](_0x4cbc7c=>_0x4cbc7c['getContainedElement']()),_0x3a2fb8=_0x69697e[0x0]['findAncestor']('table'),{minRow:_0x3a6f64,maxRow:_0x116862}=_0x25a8c3['_getCoordsForCells'](_0x69697e);_0x212ba2['removeRows'](_0x3a2fb8,{'at':_0x3a6f64,'rows':_0x116862-_0x3a6f64+0x1});}),_0x1a750e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x177137=>{const _0x4fa478=_0x177137['map'](_0x4a31c1=>_0x4a31c1['getContainedElement']()),_0x289dca=_0x4fa478[0x0]['findAncestor']('table'),{minColumn:_0xfb92a3,maxColumn:_0x676161}=_0x25a8c3['_getCoordsForCells'](_0x4fa478);_0x212ba2['removeColumns'](_0x289dca,{'at':_0xfb92a3,'columns':_0x676161-_0xfb92a3+0x1});});const _0x45ca4b=(_0x5cb81e,_0x31a9a7)=>{if(!_0x31a9a7['subType']||!_0x31a9a7['subType']['startsWith']('tablePaste'))return;const _0xad8cfd=_0x31a9a7['attributes']['tablePasteChainId'],_0x3b733a=_0x1a750e['getSuggestions']()['filter'](_0x158d50=>_0x158d50['isInContent']&&_0x158d50['attributes']&&_0x158d50['attributes']['tablePasteChainId']==_0xad8cfd);_0x3b733a['length']&&_0x31a9a7['getAllAdjacentSuggestions']()['length']!=_0x3b733a['length']&&_0x3b733a['reduce']((_0x37c596,_0x310c2a)=>(_0x37c596['next']=_0x310c2a,_0x310c2a['previous']=_0x37c596,_0x310c2a));};function _0x27dab6(_0x542e20,_0x10dcfe=!0x0){const {id:_0x32eed0,authorId:_0x220a8c}=_0x1a750e['_splitMarkerName'](_0x542e20['markerName']),_0x3db46c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4cc745=_0x1a750e['activeMarkers']['includes'](_0x542e20['markerName']);return _0x4cc745&&_0x3db46c['push']('ck-suggestion-marker--active'),{'classes':_0x3db46c,'attributes':{'data-suggestion':_0x32eed0,'data-author-id':_0x220a8c},'priority':_0x4cc745&&_0x10dcfe?0xbc2:0xbb8};}_0x1a750e['on']('suggestionLoaded',_0x45ca4b,{'priority':'high'}),_0x1a750e['on']('suggestionUnloaded',_0x45ca4b,{'priority':'high'}),_0x49ad97['model']['document']['registerPostFixer'](()=>{let _0xc2d140=!0x1;const _0x2aa06d=Array['from'](_0x49ad97['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xaa8350,data:_0x15f486}of _0x2aa06d){const {group:_0x4728c3,type:_0x24bdcd,id:_0x323325}=_0x1a750e['_splitMarkerName'](_0xaa8350);if('suggestion'!=_0x4728c3||'deletion'!=_0x24bdcd||_0x15f486['oldRange'])continue;if(!_0x1a750e['hasSuggestion'](_0x323325))continue;const _0x467d47=_0x1a750e['getSuggestion'](_0x323325)['getRanges'](),_0x1edf6d=_0x49ad97['plugins']['get']('Users')['me'];for(const _0x1545ee of _0x1a750e['getSuggestions']()){if(!_0x1545ee['isInContent']||_0x1545ee['author']!=_0x1edf6d)continue;if('formatBlock'!=_0x1545ee['type']||'tablePasteCell'!=_0x1545ee['subType'])continue;if(_0x1545ee['getRanges']()['every'](_0x52ddba=>_0x467d47['some'](_0x256ce8=>_0x256ce8['containsRange'](_0x52ddba,!0x0)))){for(const _0x5c1c70 of _0x1545ee['getAllAdjacentSuggestions']())_0x5c1c70['isInContent']&&(_0x5c1c70['discard'](),_0xc2d140=!0x0);}}}return _0xc2d140;}),_0x49ad97['model']['document']['registerPostFixer'](_0x51b8d5=>{const _0x25777d=_0x49ad97['commands']['get']('redo');if(!_0x25777d||!_0x25777d['_createdBatches']['has'](_0x51b8d5['batch']))return!0x1;let _0x30296d=!0x1;const _0x1d6d52=_0x49ad97['plugins']['get']('Users')['me'],_0x2a2426=_0x49ad97['model']['document']['differ']['getChanges'](),_0x30933b=Array['from'](_0x49ad97['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4c7754,data:_0x21f1ab})=>{const {group:_0x418f2e,subType:_0x37ae7e,authorId:_0x4856f8}=_0x1a750e['_splitMarkerName'](_0x4c7754);return'suggestion'==_0x418f2e&&'tablePaste'==_0x37ae7e&&_0x4856f8==_0x1d6d52['id']&&!_0x21f1ab['oldRange'];});for(const _0x119099 of _0x2a2426){if('insert'!=_0x119099['type']||'tableCellSuggestion'!=_0x119099['name']||0x1!=_0x119099['length'])continue;const _0x37fa50=_0x51b8d5['createRange'](_0x119099['position'],_0x119099['position']['getShiftedBy'](0x1));if(!_0x30933b['find'](({data:_0x649aba})=>_0x649aba['newRange']['isEqual'](_0x37fa50))){for(const {name:_0x460f02,data:_0x3c8441}of _0x30933b)if(_0x37fa50['containsRange'](_0x3c8441['newRange'])){_0x51b8d5['updateMarker'](_0x460f02,{'range':_0x37fa50}),_0x30296d=!0x0;break;}}}return _0x30296d;}),_0x49ad97['model']['document']['registerPostFixer'](_0x3f0dca=>{let _0x41f5e5=!0x1;const _0x132a5e=_0x49ad97['plugins']['get']('Users')['me'],_0x5971c0=_0x1a750e['getSuggestions']()['filter'](_0x1c03c1=>_0x1c03c1['isInContent']&&_0x1c03c1['author']==_0x132a5e),_0x400a71=new Set(),_0x1187ce=new Set();for(const _0x484a93 of _0x5971c0)if('tablePaste'==_0x484a93['subType'])for(const _0x38edd5 of _0x484a93['getMarkers']()){const _0x372bcf=_0x38edd5['getRange']()['getContainedElement']();if(_0x372bcf){if(_0x372bcf['is']('element','tableCellSuggestion')&&ze(_0x372bcf)){_0x484a93['removeMarker'](_0x38edd5['name']),_0x400a71['add'](_0x372bcf),_0x41f5e5=!0x0;const _0x2dc6c6=_0x372bcf['nextSibling'],_0xa70c3d=_0x372bcf['previousSibling'],_0x570d14=_0x2dc6c6&&_0x2dc6c6['is']('element','tableCellSuggestion'),_0x259134=_0xa70c3d&&_0xa70c3d['is']('element','tableCellSuggestion');_0x570d14&&!_0x400a71['has'](_0x2dc6c6)&&_0x1187ce['add'](_0x2dc6c6),_0x259134&&!_0x400a71['has'](_0xa70c3d)&&_0x1187ce['add'](_0xa70c3d);}else _0x372bcf['is']('element','paragraph')&&_0x372bcf['isEmpty']&&(_0x484a93['removeMarker'](_0x38edd5['name']),_0x41f5e5=!0x0);}}else{if('tablePasteCell'==_0x484a93['subType']){if(!_0x484a93['attributes']||!_0x484a93['attributes']['tablePasteChainId'])continue;const _0x3d05f6=_0x484a93['attributes']['markerAttributes'];if(_0x3d05f6&&Object['keys'](_0x3d05f6)['length'])continue;const _0x17eaf4=_0x484a93['attributes']['tablePasteChainId'];let _0x5311ed=!0x0,_0x1268f2=!0x0;for(const _0x34ded4 of _0x5971c0)if(_0x34ded4['subType']&&_0x34ded4['subType']['startsWith']('tablePaste')){if(!_0x34ded4['attributes']['tablePasteChainId']){_0x1268f2=!0x1;break;}if(_0x34ded4['id']!=_0x484a93['id']&&_0x34ded4['attributes']['tablePasteChainId']==_0x17eaf4){_0x5311ed=!0x1;break;}}_0x1268f2&&_0x5311ed&&(_0x484a93['removeMarkers'](),_0x41f5e5=!0x0);}}for(const _0x2928f3 of _0x400a71)_0x3f0dca['remove'](_0x2928f3);for(const _0x5bf9c9 of _0x1187ce)_0x3f0dca['unwrap'](_0x5bf9c9);return _0x41f5e5;}),_0x49ad97['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x14b5be=>_0x27dab6(_0x14b5be),'converterPriority':'high'}),_0x49ad97['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x429334,_0x2e83a5)=>_0x2e83a5['options']['showSuggestionHighlights']?_0x27dab6(_0x429334,!0x1):null,'converterPriority':'high'});const _0x5251de=_0x49ad97['editing']['view'];this['listenTo'](_0x5251de['document'],'clipboardOutput',(_0xd1bfa,_0x172e2f)=>{const _0x32a49f=[];for(const _0x6a9aa8 of _0x5251de['createRangeIn'](_0x172e2f['content'])['getItems']())_0x6a9aa8['is']('element','suggestion-td')&&_0x32a49f['push'](_0x6a9aa8);_0x5251de['change'](_0x2746e1=>{for(const _0x27f644 of _0x32a49f)_0x2746e1['move'](_0x2746e1['createRangeIn'](_0x27f644),_0x2746e1['createPositionBefore'](_0x27f644)),_0x2746e1['remove'](_0x27f644);});});}}function ze(_0x249fb5){if(_0x249fb5['isEmpty'])return!0x0;const _0x584b39=_0x249fb5['getChild'](0x0);return _0x584b39['is']('element','paragraph')&&_0x584b39['isEmpty'];}function Ge(_0x4ded50,_0xe151ba={},_0x32eca4){for(const {isAnchor:_0x409f00,cellHeight:_0x3a10b5,cellWidth:_0x4b82c6}of _0x32eca4['createTableWalker'](_0x4ded50,{'includeAllSlots':!0x0,..._0xe151ba}))if(!_0x409f00||0x1!=_0x3a10b5||0x1!=_0x4b82c6)return!0x1;return!0x0;}class xt extends _0x555e71{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x595267=this['editor']['plugins']['get']('TrackChangesEditing');_0x595267['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x595267['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x595267['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x595267['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x595267['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x595267['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x543f9b,_0x2e9f28){const _0x485531=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50b5cb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1666ac=_0x2e9f28['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4c73f7=_0x50b5cb['getColumnGroupElement'](_0x1666ac);let _0x25f9be=_0x4c73f7?_0x50b5cb['getTableColumnsWidths'](_0x4c73f7):null,_0x16b882=_0x1666ac['getAttribute']('tableWidth')||null;const _0xab5a01=_0x2e9f28['tableWidth']||_0x16b882,_0xb1893b=_0x2e9f28['columnWidths']||_0x25f9be,_0x323568=this['editor']['plugins']['get']('Users')['me'];for(const _0x9e64ec of _0x485531['getSuggestions']()){const _0x3e8e06=_0x9e64ec['getContainedElement']();if('resizeTable'===_0x9e64ec['subType']&&_0x3e8e06===_0x1666ac){_0x9e64ec['author']!==_0x323568&&_0x9e64ec['discard']();const _0x583c64=_0x9e64ec['data']['commandParams'];_0x16b882=_0x583c64[0x0]['tableWidth'],_0x25f9be=_0x583c64[0x0]['columnWidths'];break;}}_0x543f9b({'table':_0x1666ac,'tableWidth':_0xab5a01,'columnWidths':_0xb1893b}),_0x485531['markBlockFormat'](_0x1666ac,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16b882,'columnWidths':_0x25f9be}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x361cae){if('formatBlock'!=_0x361cae['type']&&'formatInline'!=_0x361cae['type'])return;const {data:_0xef4496}=_0x361cae;if(_0xef4496&&'resizeTable'===_0xef4496['formatGroupId']){const _0x33a59='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x33a59)};}}}class Et extends _0x555e71{['afterInit'](){const _0x115a83=this['editor'];_0x115a83['plugins']['has']('Template')&&_0x115a83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x555e71{['afterInit'](){const _0x158a8f=this['editor'];if(!_0x158a8f['commands']['get']('insertTableOfContents'))return;_0x158a8f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x19f2dc=_0x158a8f['plugins']['get']('TrackChangesEditing'),_0xff0f51=_0x158a8f['locale'];_0x19f2dc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5f465b=>o(_0xff0f51,'ELEMENT_TABLE_OF_CONTENTS',_0x5f465b));}}class Ut extends _0x555e71{['afterInit'](){const _0x517234=this['editor'];if(!_0x517234['plugins']['has']('Title'))return;const _0x7a49cd=_0x517234['plugins']['get']('TrackChangesEditing');_0x7a49cd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x517234['locale'],'ELEMENT_TITLE')),_0x517234['model']['document']['registerPostFixer'](_0x221e7d=>{let _0x62e100=!0x1;const _0x253b27=Array['from'](_0x517234['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5caecf,data:_0x59b1c0}of _0x253b27){const {group:_0x101736}=_0x7a49cd['_splitMarkerName'](_0x5caecf);if('suggestion'!==_0x101736||!_0x59b1c0['newRange'])continue;const _0x505245=_0x59b1c0['newRange'],_0x1e1c90=_0x505245['end']['nodeBefore'];if(!_0x1e1c90||!_0x1e1c90['is']('element','title-content'))continue;if(!_0x505245['start']['isTouching'](_0x505245['end']))continue;const _0x197493=_0x517234['model']['schema']['getNearestSelectionRange'](_0x505245['end'],'forward');if(_0x197493&&_0x197493['isCollapsed']){const _0x24f913=_0x221e7d['createRange'](_0x505245['start'],_0x197493['start']);_0x24f913['isEqual'](_0x505245)||(_0x221e7d['updateMarker'](_0x5caecf,{'range':_0x24f913}),_0x62e100=!0x0);}_0x62e100||(_0x221e7d['removeMarker'](_0x5caecf),_0x62e100=!0x0);}return _0x62e100;});}}class Vt extends _0x555e71{['afterInit'](){const _0xdac427=this['editor'],_0x23cf0b=_0xdac427['plugins']['get']('TrackChangesEditing');_0xdac427['plugins']['has']('Uploadcare')&&(_0x23cf0b['enableCommand']('uploadcare'),_0xdac427['plugins']['has']('UploadcareImageEdit')&&(_0x23cf0b['enableCommand']('uploadcareImageEdit'),_0x23cf0b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x23cf0b['registerBlockAttribute']('uploadcareImageId'),_0x23cf0b['descriptionFactory']['registerDescriptionCallback'](_0x4f9f70=>{if('attribute'!=_0x4f9f70['type'])return;const {data:_0x54b404}=_0x4f9f70;return _0x54b404&&'uploadcareImageId'==_0x54b404['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x555e71{['afterInit'](){const _0x2d2c2c=this['editor'],_0x14182c=_0x2d2c2c['plugins']['get']('TrackChangesEditing');_0x2d2c2c['plugins']['has']('UndoEditing')&&(_0x14182c['enableCommand']('undo'),_0x14182c['enableCommand']('redo'));}}class Pt extends _0x555e71{static get['requires'](){return[Dt];}['afterInit'](){const _0x1c7b6e=this['editor'];if(!_0x1c7b6e['plugins']['has']('TableCaptionEditing'))return;_0x1c7b6e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x555e71{['tableProperties'];['tableCellProperties'];constructor(_0x26e4e2){super(_0x26e4e2),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 _0x87ea07=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x30ab08 of this['tableProperties'])_0x87ea07['enableCommand'](_0x30ab08,(_0x2c18f2,_0x391d37)=>{const _0x2b0e77=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x30ab08,[_0x2b0e77],this['tableProperties'],'tableProperties',_0x2c18f2,_0x391d37);});_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x87ea07['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x147fae,_0x1f4b36)=>this['handleDiscardAction'](this['tableProperties'],_0x147fae,_0x1f4b36)),_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x22ad60 of this['tableCellProperties'])_0x87ea07['enableCommand'](_0x22ad60,(_0x31d2d0,_0x21a6fb)=>{const _0x268639=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x22ad60,_0x268639,this['tableCellProperties'],'tableCellProperties',_0x31d2d0,_0x21a6fb);});_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x87ea07['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x232e28,_0xc94cf5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x232e28,_0xc94cf5)),_0x87ea07['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x87ea07['descriptionFactory']['registerDescriptionCallback'](_0x197aee=>this['handleSuggestionDescription'](_0x197aee)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3b1189,_0x5b111c,_0x59d57f,_0x5f589c,_0x509ddb,_0x389344){const _0x424c53=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x389344['batch'],()=>{for(const _0x252bc5 of _0x5b111c){if(this['_getSuggestion'](_0x252bc5,_0x5f589c))_0x509ddb(_0x389344);else{const _0x5157b9={};for(const _0x1dd943 of _0x59d57f){const _0x3f62db=_0x252bc5['getAttribute'](_0x1dd943);void 0x0!==_0x3f62db&&(_0x5157b9[_0x1dd943]=_0x3f62db);}_0x509ddb(_0x389344),_0x424c53['markBlockFormat'](_0x252bc5,{'commandParams':[_0x5157b9]},[],_0x5f589c);}}});}['handleDiscardAction'](_0x40bcf4,_0x4e0dd1,_0xb0f1dc){const _0x510603=_0x4e0dd1[0x0]['start']['nodeAfter'],_0x3434e3=_0xb0f1dc['commandParams'][0x0];this['editor']['model']['change'](_0x4a2387=>{for(const _0x219981 of _0x40bcf4)void 0x0!==_0x3434e3[_0x219981]?_0x4a2387['setAttribute'](_0x219981,_0x3434e3[_0x219981],_0x510603):_0x4a2387['removeAttribute'](_0x219981,_0x510603);});}['handleSuggestionDescription'](_0x169f9f){if(_0x169f9f['data'])switch(_0x169f9f['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'](_0x429115,_0x39bc75){const _0x9e1d52=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4176a5 of _0x9e1d52['getSuggestions']({'skipNotAttached':!0x0})){const _0x2d8982=_0x4176a5['getContainedElement']();if(_0x4176a5['subType']===_0x39bc75&&_0x2d8982===_0x429115)return _0x4176a5;}return null;}['_registerTablePropertiesAttributes'](){const _0x4f1ffc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f0f96=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4facfc of _0x1f0f96){const _0x4c81db=_0x4facfc['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4f1ffc['registerBlockAttribute'](_0x4facfc),_0x4f1ffc['descriptionFactory']['registerAttributeLabel'](_0x4facfc,o(this['editor']['locale'],'FORMAT_'+_0x4c81db));}}}class Lt extends _0x555e71{['afterInit'](){const _0x3a2143=this['editor'];if(!_0x3a2143['plugins']['has']('LineHeight'))return;const _0x25f6e9=_0x3a2143['plugins']['get']('TrackChangesEditing'),_0x2172d9=_0x3a2143['locale'];_0x25f6e9['enableDefaultAttributesIntegration']('lineHeight'),_0x25f6e9['registerBlockAttribute']('lineHeight'),_0x25f6e9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x2172d9,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x555e71{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x15dc59,_0x22a9e9,_0x21ae29,V,F,G,L,J,K,q,W,H,z,Q,X,tt,et,it,nt,st,ot,rt,at,ct,ut,ht,ft,gt,lt,dt,pt,kt,St,mt,Y,Lt,Z,wt,bt,yt,jt,It,At,_t,$t,vt,Ct,Nt,Dt,Mt,Bt,Tt,Pt,Ot,xt,Rt,Gt,Et,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cfd59){super(_0x3cfd59),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x7b4c59,_0x313f85,_0x461dad,_0x2b0df9)=>{this['_model']['change'](()=>{for(const _0x396ab4 of[..._0x2b0df9,..._0x461dad])this['_model']['markers']['has'](_0x396ab4)&&_0x3cfd59['editing']['reconvertMarker'](_0x396ab4);});}),this['descriptionFactory']=new U(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3cfd59['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(),_0x3cfd59['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3cfd59['config']['get']('trackChanges.trackFormatChanges'),_0x3cfd59['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3cfd59['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3cfd59,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xb6094a=this['editor'],_0x45187c=(_0x5bac2b,_0xb073b6)=>{if('attribute'!=_0x5bac2b)return'ck-suggestion-marker-'+_0x5bac2b;const _0x273e3e=_0xb073b6['split']('|')[0x0];return this['_isBlockAttribute'](_0x273e3e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xb6094a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1fd4e2=>{const {id:_0x1e390d,authorId:_0xcd43f4,type:_0x49e69b,subType:_0x212c5a}=this['_splitMarkerName'](_0x1fd4e2['markerName']),_0x3a09ec=['ck-suggestion-marker',_0x45187c(_0x49e69b,_0x212c5a)];let _0x150182=0xbb8;return this['activeMarkers']['includes'](_0x1fd4e2['markerName'])&&(_0x3a09ec['push']('ck-suggestion-marker--active'),_0x150182=0xbc2),'deletion'==_0x49e69b&&(_0x150182+=0x5),{'classes':_0x3a09ec,'attributes':{'data-suggestion':_0x1e390d,'data-author-id':_0xcd43f4},'priority':_0x150182};}}),_0xb6094a['conversion']['for']('dataDowncast')['add'](_0x52be6a=>{_0x52be6a['on']('addMarker:suggestion',(_0x3cb7a7,_0x5358c8,_0x37e279)=>{if(!_0x37e279['options']['showSuggestionHighlights'])return;const _0x5782f8=_0x5358c8['item'];if(!_0x5782f8)return;const _0x19ab82=_0x37e279['mapper']['toViewElement'](_0x5782f8);_0xb6094a['model']['schema']['isObject'](_0x5782f8)&&_0x19ab82&&!_0x19ab82['getCustomProperty']('widget')&&_0x19ab82['is']('containerElement')&&_0x593b13(_0x19ab82,_0x37e279['writer']);},{'priority':'high'});}),_0xb6094a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x532f11,_0x1b3e2e)=>{if(!_0x1b3e2e['options']['showSuggestionHighlights'])return null;const {id:_0x327388,authorId:_0x451dbe,type:_0x11a9a2,subType:_0x22854d}=this['_splitMarkerName'](_0x532f11['markerName']);return{'classes':['ck-suggestion-marker',_0x45187c(_0x11a9a2,_0x22854d)],'priority':0xbb8,'attributes':{'data-suggestion':_0x327388,'data-author-id':_0x451dbe}};}});const _0x45d270=({showActiveMarkers:_0x216a66=!0x0,isAttributeSuggestion:_0x2bfdc4=!0x1}={})=>(_0xa30bbf,_0x42f88b,_0x472747)=>{if(!_0x42f88b['item'])return;const {id:_0x4f340d,authorId:_0x2c7cdc,subType:_0x22333a}=this['_splitMarkerName'](_0x42f88b['markerName']);if(_0x2bfdc4){const _0x3eb190=re(_0x22333a);if(!this['_isBlockAttribute'](_0x3eb190))return;}if(_0x42f88b['item']['is']('selection'))return void _0x472747['consumable']['consume'](_0x42f88b['item'],_0xa30bbf['name']);const _0x2cfca4=_0x472747['mapper']['toViewElement'](_0x42f88b['item']);if(_0x42f88b['item']['is']('element')&&_0xb6094a['model']['schema']['isBlock'](_0x42f88b['item'])&&!_0x2cfca4['getCustomProperty']('addHighlight')){_0x472747['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2cfca4),_0x472747['writer']['setAttribute']('data-suggestion',_0x4f340d,_0x2cfca4),_0x472747['writer']['setAttribute']('data-author-id',_0x2c7cdc,_0x2cfca4),_0x472747['mapper']['bindElementToMarker'](_0x2cfca4,_0x42f88b['markerName']),_0x216a66&&(this['activeMarkers']['includes'](_0x42f88b['markerName'])?_0x472747['writer']['addClass']('ck-suggestion-marker--active',_0x2cfca4):_0x472747['writer']['removeClass']('ck-suggestion-marker--active',_0x2cfca4));for(const _0x2a3117 of _0xb6094a['model']['createRangeIn'](_0x42f88b['item'])['getItems']())_0x472747['consumable']['consume'](_0x2a3117,_0xa30bbf['name']);_0x472747['consumable']['consume'](_0x42f88b['item'],_0xa30bbf['name']);}};_0xb6094a['conversion']['for']('dataDowncast')['add'](_0x59b901=>{_0x59b901['on']('addMarker:suggestion:formatBlock',(_0x43ffbc,_0x447e90,_0x416d97)=>{_0x416d97['options']['showSuggestionHighlights']&&_0x45d270({'showActiveMarkers':!0x1})(_0x43ffbc,_0x447e90,_0x416d97);},{'priority':'highest'});}),_0xb6094a['conversion']['for']('dataDowncast')['add'](_0x346f8d=>{_0x346f8d['on']('addMarker:suggestion:attribute',(_0x41236c,_0x28b3af,_0x5c18a4)=>{_0x5c18a4['options']['showSuggestionHighlights']&&_0x45d270({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x41236c,_0x28b3af,_0x5c18a4);},{'priority':'highest'});}),_0xb6094a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3902ab,_0x5bb24b)=>{if(_0x5bb24b['options']['showSuggestionHighlights']){const {id:_0x3efbe6,authorId:_0x50200a}=this['_splitMarkerName'](_0x3902ab);return _0x3902ab['includes'](':split')||_0x3902ab['includes'](':merge')?{'group':'suggestion','name':_0x3902ab['substr'](0xb),'attributes':{'data-suggestion':_0x3efbe6,'data-author-id':_0x50200a}}:null;}return{'group':'suggestion','name':_0x3902ab['substr'](0xb)};}}),_0xb6094a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x8075ce,{writer:_0x1d56b6})=>{let _0x339baf='suggestion:'+_0x8075ce['getAttribute']('suggestion-type')+':'+_0x8075ce['getAttribute']('id');return _0x8075ce['getAttribute']('marker-count')&&(_0x339baf+=':'+_0x8075ce['getAttribute']('marker-count')),_0x1d56b6['createElement']('$marker',{'data-name':_0x339baf});}}),_0xb6094a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xb6094a['conversion']['for']('editingDowncast')['add'](_0x2c7df4=>{_0x2c7df4['on']('addMarker:suggestion:formatBlock',_0x45d270(),{'priority':'high'});}),_0xb6094a['conversion']['for']('editingDowncast')['add'](_0x40b002=>{_0x40b002['on']('addMarker:suggestion:attribute',_0x45d270({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xb6094a['conversion']['for']('editingDowncast')['add'](_0x2868ef=>{_0x2868ef['on']('removeMarker:suggestion:formatBlock',(_0x3b5329,_0x506bae,_0xba4b1b)=>{const _0x1588fc=_0xba4b1b['mapper']['markerNameToElements'](_0x506bae['markerName']);if(_0x1588fc){for(const _0x3d395f of _0x1588fc)_0x3d395f['getCustomProperty']('addHighlight')||(_0xba4b1b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3d395f),_0xba4b1b['writer']['removeAttribute']('data-suggestion',_0x3d395f),_0xba4b1b['writer']['removeAttribute']('data-author-id',_0x3d395f),_0xba4b1b['mapper']['unbindElementFromMarkerName'](_0x3d395f,_0x506bae['markerName']));}},{'priority':'high'});}),_0xb6094a['conversion']['for']('editingDowncast')['add'](_0x2ad452=>{_0x2ad452['on']('removeMarker:suggestion:attribute',(_0x55727e,_0xf19e6d,_0x85b759)=>{const _0x557f6f=_0x85b759['mapper']['markerNameToElements'](_0xf19e6d['markerName']);if(!_0x557f6f)return;const {subType:_0xb6de00}=this['_splitMarkerName'](_0xf19e6d['markerName']),_0xc731b8=re(_0xb6de00);if(this['_isBlockAttribute'](_0xc731b8)){for(const _0x277f35 of _0x557f6f)_0x277f35['getCustomProperty']('addHighlight')||(_0x85b759['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x277f35),_0x85b759['writer']['removeAttribute']('data-suggestion',_0x277f35),_0x85b759['writer']['removeAttribute']('data-author-id',_0x277f35),_0x85b759['mapper']['unbindElementFromMarkerName'](_0x277f35,_0xf19e6d['markerName']));}},{'priority':'high'});}),_0xb6094a['model']['document']['registerPostFixer'](_0x549c55=>{let _0x2cc359=!0x1;const _0x365f56=Array['from'](_0xb6094a['model']['document']['differ']['getChangedMarkers']()),_0x3b94b3=new Set();for(const {name:_0xe0b834,data:_0x55c9c2}of _0x365f56){const {group:_0x58b71e,type:_0x383cef,subType:_0x14aab2,id:_0x4e7cd1}=this['_splitMarkerName'](_0xe0b834);if('suggestion'!==_0x58b71e)continue;const _0x27bf27=_0x14aab2?'suggestion:'+_0x383cef+':'+_0x14aab2+':'+_0x4e7cd1:'suggestion:'+_0x383cef+':'+_0x4e7cd1,_0x1db163=_0xb6094a['model']['markers']['getMarkersGroup'](_0x27bf27),_0x172d7f=_0xb6094a['model']['markers']['get'](_0xe0b834),_0x53f1ad=this['_suggestions']['get'](_0x4e7cd1);if(null!=_0x55c9c2['newRange']){'formatInline'==_0x383cef&&(_0x2cc359=_0x2cc359||Wt(_0x55c9c2['newRange'],_0xe0b834,_0x549c55,_0xb6094a['model']['schema']));const _0x4b3c6b='attribute'==_0x383cef&&this['_isBlockAttribute'](_0x14aab2['split']('|')[0x0]),_0x4d4cd9='attribute'==_0x383cef&&this['_isInlineAttribute'](_0x14aab2['split']('|')[0x0]);if(_0x55c9c2['newRange']['isCollapsed']||'$graveyard'==_0x55c9c2['newRange']['root']['rootName']||'formatBlock'==_0x383cef&&!Qt(_0x55c9c2['newRange'])||_0x4b3c6b&&!Qt(_0x55c9c2['newRange'])||_0x4d4cd9&&Xt(_0x55c9c2['newRange'])||'deletion'==_0x383cef&&Xt(_0x55c9c2['newRange'])||_0x172d7f&&Yt(_0x172d7f,_0x1db163))_0x549c55['removeMarker'](_0xe0b834),_0x2cc359=!0x0;else{if(!_0x53f1ad||!_0x53f1ad['isInContent'])continue;if(_0x55c9c2['newRange']&&_0x55c9c2['oldRange']&&_0x55c9c2['newRange']['isEqual'](_0x55c9c2['oldRange']))continue;_0x3b94b3['add'](_0x53f1ad);}}}return _0x3b94b3['size']>0x0&&(_0x2cc359=!!this['_joinWithAdjacentSuggestions'](_0x3b94b3)||_0x2cc359),_0x2cc359;}),_0xb6094a['model']['document']['registerPostFixer'](_0x3d12a3=>{let _0x5e6239=!0x1;for(const _0x5b538d of _0xb6094a['model']['document']['differ']['getChanges']())if('insert'==_0x5b538d['type'])for(const _0x202288 of this['_suggestions']['values']()){if(_0x202288['isMultiRange']||!_0x202288['isInContent'])continue;const _0x54f9df='formatBlock'==_0x202288['type'],_0x1f8a4f=this['_getAttributeKey'](_0x202288),_0x2bc619=_0x1f8a4f&&this['_isBlockAttribute'](_0x1f8a4f);if(!_0x54f9df&&!_0x2bc619)continue;const _0x331de9=_0x202288['getFirstRange']();if(_0x331de9['start']['parent']!=_0x331de9['end']['parent']&&!_0x331de9['end']['isAtEnd']){const _0x5832d8=_0xb6094a['model']['createPositionAt'](_0x331de9['start']['nodeAfter'],'end'),_0xb1e0a6=_0xb6094a['model']['createRange'](_0x331de9['start'],_0x5832d8);_0x3d12a3['updateMarker'](_0x202288['getFirstMarker'](),{'range':_0xb1e0a6}),_0x5e6239=!0x0;}}return _0x5e6239;}),_0xb6094a['model']['document']['registerPostFixer'](_0x47b50=>this['_processAttributeChanges'](_0x47b50)),_0xb6094a['model']['document']['registerPostFixer'](_0x4a1263=>!_0x4a1263['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4a1263)),_0xb6094a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xb6094a['model']['document']['on']('change:data',(_0x9df7c1,_0x15d577)=>{if(!_0x15d577['isLocal']||_0x15d577['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5f1f27=_0xb6094a['model']['document']['differ']['getChanges']();if(0x0==_0x5f1f27['length'])return;const _0x5436de=[],_0x583af0=_0x5f1f27['filter'](_0x43c27c=>'attribute'==_0x43c27c['type']),_0x2c1410=_0x5f1f27['filter'](_0x3bb6a9=>'insert'==_0x3bb6a9['type']&&'$text'!=_0x3bb6a9['name']);for(const _0x56284f of _0x583af0)this['_isRegisteredAttribute'](_0x56284f['attributeKey'])&&_0x5436de['push']({'key':_0x56284f['attributeKey'],'newValue':_0x56284f['attributeNewValue'],'oldValue':_0x56284f['attributeOldValue'],'range':te(_0x56284f['range'],_0xb6094a['model'])});for(const _0x421960 of _0x2c1410){if('rename'!=_0x421960['action']&&'refresh'!=_0x421960['action'])continue;const _0x1a6b7f=ee(_0x421960['position']['nodeAfter'],_0xb6094a['model']),_0x355e1a=_0x421960['before'];'rename'==_0x421960['action']&&_0x5436de['push']({'key':m,'newValue':_0x421960['name'],'oldValue':_0x355e1a['name'],'range':_0x1a6b7f});for(const [_0x241582,_0x37a8fa]of _0x355e1a['attributes']){if(!this['_isRegisteredAttribute'](_0x241582))continue;const _0x4e0b70=_0x421960['attributes']['get'](_0x241582);_0x37a8fa!==_0x4e0b70&&_0x5436de['push']({'key':_0x241582,'newValue':_0x4e0b70,'oldValue':_0x37a8fa,'range':_0x1a6b7f});}for(const [_0x2910b3,_0x4e5ea5]of _0x421960['attributes'])this['_isRegisteredAttribute'](_0x2910b3)&&(_0x355e1a['attributes']['has'](_0x2910b3)||_0x5436de['push']({'key':_0x2910b3,'newValue':_0x4e5ea5,'oldValue':null,'range':_0x1a6b7f}));}0x0!=_0x5436de['length']&&_0xb6094a['model']['enqueueChange'](_0x15d577,_0x210dac=>{const _0x52b17a=_0x4fda17();for(const {range:_0x64d41f,key:_0x2b4ae6,oldValue:_0x349838,newValue:_0x59a0fa}of _0x5436de)this['markAttributeChange'](_0x64d41f,_0x2b4ae6,_0x349838,_0x59a0fa,{'groupId':_0x52b17a});this['_reduceExistingSuggestions'](_0x210dac,_0x5436de);});},{'priority':'lowest'}),_0xb6094a['model']['markers']['on']('update:suggestion',(_0x2afcf8,_0x3e282e,_0x5bb6c5)=>{if(null==_0x5bb6c5){const {id:_0x5a625c}=this['_splitMarkerName'](_0x3e282e['name']),_0xad947f=this['_suggestions']['get'](_0x5a625c);_0xad947f&&_0xad947f['addMarkerName'](_0x3e282e['name']);}}),_0xb6094a['model']['document']['on']('change:data',()=>{const _0x1acb8f=Array['from'](_0xb6094a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x510702=>'suggestion'===this['_splitMarkerName'](_0x510702['name'])['group']);if(0x0===_0x1acb8f['length'])return;_0x1acb8f['sort']((_0x60713b,_0x1b023a)=>{const _0x5f0118=_0x60713b['data']['oldRange'],_0x69030a=_0x1b023a['data']['oldRange'];return null===_0x5f0118&&null===_0x69030a?0x0:null===_0x5f0118&&null!==_0x69030a?-0x1:null!==_0x5f0118&&null===_0x69030a?0x1:_0x5f0118['start']['isBefore'](_0x69030a['start'])?-0x1:0x1;});const _0x5c55cf=new Set(),_0x3858cb=new Set();for(const {name:_0x3a1aea,data:_0x268167}of _0x1acb8f){const {id:_0x127094}=this['_splitMarkerName'](_0x3a1aea);if(null===_0x268167['oldRange']){const _0x1c021a=this['_handleNewSuggestionMarker'](_0x3a1aea);_0x3858cb['add'](_0x1c021a);}else{const _0x50a635=this['_suggestions']['get'](_0x127094);null!==_0x268167['newRange']||_0x50a635['isInContent']?(_0x5c55cf['add'](_0x50a635['head']),_0x3858cb['add'](_0x50a635)):this['_removeSuggestion'](_0x50a635);}}_0x3858cb['size']>0x0&&this['_refreshSuggestionsChain'](_0x3858cb);for(const _0x2d779f of _0x5c55cf)this['fire']('suggestionChanged',_0x2d779f);}),_0xb6094a['model']['on']('applyOperation',(_0x5500c8,_0x263b37)=>{const _0x132394=_0x263b37[0x0];if(!this['_suggestions']['size'])return;if(!_0x132394['isDocumentOperation'])return;if(_0x132394['batch']['isUndo']||!_0x132394['batch']['isLocal'])return;let _0x4abafb,_0x1ff5d3;switch(_0x132394['type']){case'insert':_0x4abafb=_0xb6094a['model']['createPositionAt'](_0x132394['position']),_0x1ff5d3=_0x4abafb['getShiftedBy'](_0x132394['howMany']);break;case'split':_0x4abafb=_0xb6094a['model']['createPositionAt'](_0x132394['splitPosition']),_0x1ff5d3=_0xb6094a['model']['createPositionAt'](_0x132394['moveTargetPosition']);break;case'move':_0x4abafb=_0xb6094a['model']['createPositionAt'](_0x132394['targetPosition']),_0x1ff5d3=_0x4abafb['getShiftedBy'](_0x132394['howMany']);break;default:return;}const _0x36e20a=_0xb6094a['model']['createRange'](_0x4abafb,_0x1ff5d3);_0xb6094a['model']['change'](()=>{for(const {suggestion:_0x5230c2,meta:_0x3ac3de}of this['_findSuggestions'](_0x36e20a)){if(_0x5230c2['isMultiRange'])continue;if('formatInline'==_0x5230c2['type'])continue;const _0x44ba53=this['_getAttributeKey'](_0x5230c2);if(_0x44ba53&&this['_isBlockAttribute'](_0x44ba53)&&'split'!=_0x132394['type'])continue;const _0x52cb88=_0x5230c2['data']&&_0x5230c2['data']['multipleBlocks'];('formatBlock'!=_0x5230c2['type']||'split'==_0x132394['type']&&!_0x52cb88)&&(_0x3ac3de['containsRangeInObject']||'insertion'==_0x5230c2['type']&&_0x3ac3de['isOwn']||_0x5230c2['getFirstRange']()['containsRange'](_0x36e20a)&&this['_breakSuggestionMarker'](_0x5230c2,_0x4abafb,_0x1ff5d3));}});},{'priority':'lowest'}),_0xb6094a['model']['on']('deleteContent',(_0x370306,_0x4ed13e)=>{const _0x4f80fb=_0x4ed13e[0x0],_0x28dcda=_0x4ed13e[0x1];if(_0x28dcda&&_0x28dcda['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4f80fb['isCollapsed'])return;const _0x31a797=_0xb6094a['model']['schema'],{start:_0x516ec6,end:_0x3fc45a}=_0x4f80fb['getFirstRange'](),_0x293858=_0x516ec6['nodeAfter']&&_0x31a797['isLimit'](_0x516ec6['nodeAfter'])?null:_0x31a797['getNearestSelectionRange'](_0x516ec6,'forward'),_0x278919=_0x3fc45a['nodeBefore']&&_0x31a797['isLimit'](_0x3fc45a['nodeBefore'])?null:_0x31a797['getNearestSelectionRange'](_0x3fc45a,'backward'),_0x55a607=_0xb6094a['model']['createRange'](_0x293858?_0x293858['start']:_0x516ec6,_0x278919?_0x278919['end']:_0x3fc45a);_0xb6094a['model']['change'](_0x1f2108=>{this['markDeletion'](_0x55a607);const _0x2452d8=_0xb6094a['model']['schema']['getNearestSelectionRange'](_0x55a607['start']);_0x4f80fb['is']('documentSelection')?_0x1f2108['setSelection'](_0x2452d8):_0x4f80fb['setTo'](_0x2452d8);}),_0x370306['stop']();},{'priority':_0x48f7b8['normal']+0xa}),_0xb6094a['model']['on']('insertContent',(_0x144b43,_0xd5359e)=>{const _0x2be763=_0xd5359e[_0xd5359e['length']-0x1];_0x2be763&&_0x2be763['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xb6094a['model']['change'](()=>{let _0xf18470=_0xb6094a['model']['insertContent'](_0xd5359e[0x0],_0xd5359e[0x1],_0xd5359e[0x2],{'forceDefaultExecution':!0x0});if(!_0xf18470)return;_0x144b43['return']=_0xf18470['clone']();const _0x3f2a8e=_0xf18470['end']['nodeBefore'],_0x16bdcb=_0xb6094a['model']['schema'];_0x3f2a8e&&_0x16bdcb['isBlock'](_0x3f2a8e)&&!_0x16bdcb['isObject'](_0x3f2a8e)&&(_0xf18470=_0xb6094a['model']['createRange'](_0xf18470['start'],_0xb6094a['model']['createPositionAt'](_0x3f2a8e,'end'))),this['markInsertion'](_0xf18470);}),_0x144b43['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x55c9d1=new T(_0xb6094a,this['_suggestions']);_0xb6094a['commands']['add']('acceptSuggestion',_0x55c9d1),this['enableCommand']('acceptSuggestion');const _0x10deb4=new O(_0xb6094a,this['_suggestions']);_0xb6094a['commands']['add']('discardSuggestion',_0x10deb4),this['enableCommand']('discardSuggestion'),_0xb6094a['commands']['add']('acceptAllSuggestions',new x(_0xb6094a,_0x55c9d1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xb6094a['commands']['add']('discardAllSuggestions',new x(_0xb6094a,_0x10deb4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xb6094a['commands']['add']('acceptSelectedSuggestions',new E(_0xb6094a,_0x55c9d1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xb6094a['commands']['add']('discardSelectedSuggestions',new E(_0xb6094a,_0x10deb4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x927a15=_0xb6094a['plugins']['get']('CommentsRepository');this['listenTo'](_0x927a15,'addComment',(_0x3e6452,{threadId:_0x5eeeb6})=>{const _0x17d12e=this['_suggestions']['get'](_0x5eeeb6);_0x17d12e&&_0x17d12e['commentThread']&&0x1===_0x17d12e['commentThread']['length']&&this['_updateSuggestionData'](_0x5eeeb6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x927a15,'removeComment',(_0x3176ba,{threadId:_0x117f00})=>{const _0xdfa6c1=this['_suggestions']['get'](_0x117f00);_0xdfa6c1&&_0xdfa6c1['commentThread']&&!_0xdfa6c1['commentThread']['length']&&this['_updateSuggestionData'](_0x117f00,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2a30c1){const _0x202f5d=_0x577408([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]),_0x9abab8=0x6b0f5e6f,_0x3091b8=0x6b08282f^_0x9abab8,_0x5dac4e=window[_0x577408([0x44,0x61,0x74,0x65])][_0x577408([0x6e,0x6f,0x77])](),_0x1a42a2=_0x2a30c1[_0x577408([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3154e1=new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x402314=>{_0x1a42a2[_0x577408([0x6f,0x6e,0x63,0x65])](_0x577408([0x72,0x65,0x61,0x64,0x79]),_0x402314);}),_0x3060f3={[_0x577408([0x6b,0x74,0x79])]:_0x577408([0x45,0x43]),[_0x577408([0x75,0x73,0x65])]:_0x577408([0x73,0x69,0x67]),[_0x577408([0x63,0x72,0x76])]:_0x577408([0x50,0x2d,0x32,0x35,0x36]),[_0x577408([0x78])]:_0x577408([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]),[_0x577408([0x79])]:_0x577408([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]),[_0x577408([0x61,0x6c,0x67])]:_0x577408([0x45,0x53,0x32,0x35,0x36])},_0x5b117f=_0x1a42a2[_0x577408([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x577408([0x67,0x65,0x74])](_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x141840(){let _0x989074,_0xbe0d2f=null,_0x5f1dfa=null;try{if(_0x5b117f==_0x577408([0x47,0x50,0x4c]))return _0x577408([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x989074=_0x1d2262(),!_0x989074)return _0x577408([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x989074[_0x577408([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f1dfa=_0x41b76a(_0x989074[_0x577408([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x989074[_0x577408([0x6a,0x74,0x69])])),await _0x32e21b()?_0x8096c3()?_0x3a7ada()?_0x577408([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48a0fe()?(_0x989074[_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x577408([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xbe0d2f=_0x562780(_0x577408([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x989074[_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x577408([0x74,0x72,0x69,0x61,0x6c])&&(_0xbe0d2f=_0x562780(_0x577408([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a8d0c()):_0x577408([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x577408([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x577408([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x577408([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a7ada(){const _0x5bf718=[_0x577408([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x577408([0x74,0x72,0x69,0x61,0x6c])][_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x989074[_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5dac4e/0x3e8:0xe10*_0x3091b8;return _0x989074[_0x577408([0x65,0x78,0x70])]<_0x5bf718;}function _0x8096c3(){const _0x2c3117=_0x989074[_0x577408([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c3117)return!0x1;if(_0x2c3117[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x577408([0x2a])))return!0x0;if(_0x2c3117[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x577408([0x54,0x43])))return!0x0;if(_0x2c3117[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x577408([0x52,0x54,0x43]))){if(_0x13c762())return!0x0;if(_0x3d33a0()||_0x3f2bce())return!0x0;}return!0x1;}function _0x48a0fe(){const _0x118007=_0x989074[_0x577408([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x118007||0x0==_0x118007[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57c5f6}=new URL(window[_0x577408([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x118007[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c5f6))return!0x0;const _0xd1c6ba=_0x57c5f6[_0x577408([0x73,0x70,0x6c,0x69,0x74])](_0x577408([0x2e]));return _0x118007[_0x577408([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd4f5f7=>_0xd4f5f7[_0x577408([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x577408([0x2a])))[_0x577408([0x6d,0x61,0x70])](_0xbbb59c=>_0xbbb59c[_0x577408([0x73,0x70,0x6c,0x69,0x74])](_0x577408([0x2e])))[_0x577408([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3633e7=>_0x3633e7[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd1c6ba[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x577408([0x6d,0x61,0x70])](_0x10c823=>Array(_0xd1c6ba[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10c823[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x577408([0x66,0x69,0x6c,0x6c])](_0x10c823[0x0]===_0x577408([0x2a])?_0x577408([0x2a]):'')[_0x577408([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10c823))[_0x577408([0x73,0x6f,0x6d,0x65])](_0x5052fc=>_0xd1c6ba[_0x577408([0x65,0x76,0x65,0x72,0x79])]((_0x19c62f,_0x25324a)=>_0x5052fc[_0x25324a]===_0x19c62f||_0x5052fc[_0x25324a]===_0x577408([0x2a])));}function _0x5a8d0c(){return _0xbe0d2f&&_0x5f1dfa?new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x208957,_0x499ed3)=>{_0xbe0d2f[_0x577408([0x74,0x68,0x65,0x6e])](_0x208957,_0x499ed3),_0x5f1dfa[_0x577408([0x74,0x68,0x65,0x6e])](_0x312871=>{_0x312871!=_0x577408([0x56,0x61,0x6c,0x69,0x64])&&_0x208957(_0x312871);},_0x499ed3);}):_0xbe0d2f||_0x5f1dfa||_0x577408([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41b76a(_0x402b98,_0xc68acd){return new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c5efc=>{if(_0x290ab3())return _0x3c5efc(_0x577408([0x56,0x61,0x6c,0x69,0x64]));_0x387a98(),_0x1a42a2[_0x577408([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x577408([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32f89a=!0x1;const _0x14b50c=_0x4fda17();function _0x4c80e5(_0x16227b){return!!_0x16227b&&(typeof _0x16227b===_0x577408([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16227b===_0x577408([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16227b[_0x577408([0x74,0x68,0x65,0x6e])]===_0x577408([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16227b[_0x577408([0x63,0x61,0x74,0x63,0x68])]===_0x577408([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33abd1(_0x3e1b2e){_0x2fbc29(_0x3e1b2e)[_0x577408([0x74,0x68,0x65,0x6e])](_0xcdc2d=>{if(!_0xcdc2d||_0xcdc2d[_0x577408([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x577408([0x6f,0x6b]))return _0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x38103d(_0x3ea307(_0x14b50c+_0xc68acd))!=_0xcdc2d[_0x577408([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x577408([0x56,0x61,0x6c,0x69,0x64]);})[_0x577408([0x74,0x68,0x65,0x6e])](_0xc72fce=>(_0x293cf0(),_0xc72fce),()=>{const _0x1811e0=_0xfdaed4();return null==_0x1811e0?(_0x293cf0(),_0x577408([0x56,0x61,0x6c,0x69,0x64])):_0x577408(_0x5dac4e-_0x1811e0>(0x4f03da6f^_0x9abab8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x577408([0x74,0x68,0x65,0x6e])](_0x3c5efc)[_0x577408([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c5efc(_0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c0b4f=0x6b39b0ef^_0x9abab8;function _0x293cf0(){const _0xb74fb1=_0x577408([0x6c,0x6c,0x63,0x74,0x2d])+_0x38103d(_0x3ea307(_0x402b98)),_0x801bd9=_0x185c49(_0x38103d(window[_0x577408([0x4d,0x61,0x74,0x68])][_0x577408([0x63,0x65,0x69,0x6c])](_0x5dac4e/_0x1c0b4f)));window[_0x577408([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x577408([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb74fb1,_0x801bd9);}function _0xfdaed4(){const _0xdb0ce4=_0x577408([0x6c,0x6c,0x63,0x74,0x2d])+_0x38103d(_0x3ea307(_0x402b98)),_0x2bb6a2=window[_0x577408([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x577408([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdb0ce4);return _0x2bb6a2?window[_0x577408([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x185c49(_0x2bb6a2),0x10)*_0x1c0b4f:null;}function _0x2fbc29(_0x237364){return new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12f449,_0x1edc87)=>{_0x237364[_0x577408([0x74,0x68,0x65,0x6e])](_0x12f449,_0x1edc87),window[_0x577408([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1edc87,0x6b0e8aaf^_0x9abab8);});}}_0x1a42a2[_0x577408([0x6f,0x6e])](_0x577408([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59bd47,_0x567913)=>{if(_0x567913[0x0]!=_0x402b98)return _0x3c5efc(_0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x567913[0x1]={..._0x567913[0x1],[_0x577408([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14b50c};},{[_0x577408([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x577408([0x68,0x69,0x67,0x68])}),_0x1a42a2[_0x577408([0x6f,0x6e])](_0x577408([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2756e7=>{_0x4c80e5(_0x2756e7[_0x577408([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32f89a=!0x0,_0x33abd1(_0x2756e7[_0x577408([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x577408([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x577408([0x6c,0x6f,0x77])}),_0x3154e1[_0x577408([0x74,0x68,0x65,0x6e])](()=>{_0x32f89a||_0x3c5efc(_0x577408([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x290ab3(){return _0x1a42a2[_0x577408([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x577408([0x76,0x69,0x65,0x77])][_0x577408([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x577408([0x61,0x75,0x74,0x6f]);}function _0x387a98(){_0x1a42a2[_0x577408([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x577408([0x76,0x69,0x65,0x77])][_0x577408([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x577408([0x61,0x75,0x74,0x6f]);}}function _0x562780(_0x337a11){const _0x40f17d=[new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24917b=>setTimeout(_0x24917b,0x6b0660a3^_0x9abab8)),_0x3154e1[_0x577408([0x74,0x68,0x65,0x6e])](()=>new window[(_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c6e0=>{let _0x4a3d66=0x0;_0x1a42a2[_0x577408([0x6d,0x6f,0x64,0x65,0x6c])][_0x577408([0x6f,0x6e])](_0x577408([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1efd5f,_0x457607)=>{_0x457607[0x0][_0x577408([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a3d66++,_0x4a3d66==(0x6b0f5f97^_0x9abab8)&&(_0x26c6e0(),_0x1efd5f[_0x577408([0x6f,0x66,0x66])]());});}))];return window[_0x577408([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x577408([0x72,0x61,0x63,0x65])](_0x40f17d)[_0x577408([0x74,0x68,0x65,0x6e])](()=>_0x337a11);}async function _0x3731c1(){await _0x3154e1,_0x1a42a2[_0x577408([0x6d,0x6f,0x64,0x65,0x6c])][_0x577408([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d41a5,_0x1a42a2[_0x577408([0x6d,0x6f,0x64,0x65,0x6c])][_0x577408([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d41a5,_0x1a42a2[_0x577408([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x577408([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13c762(){return _0x2fdb17(_0x577408([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x318f5d(_0x577408([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x577408([0x73,0x74,0x61,0x74,0x65])]==_0x577408([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3d33a0(){return _0x2fdb17(_0x577408([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 _0x3f2bce(){return _0x2fdb17(_0x577408([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x352c3a(_0x30dcd0){const _0x4bac3f=_0x3f10fa();_0x1a42a2[_0x4bac3f]=_0x577408([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30dcd0,_0x30dcd0!=_0x577408([0x56,0x61,0x6c,0x69,0x64])&&_0x3731c1();}function _0x3f10fa(){const _0x1fcebd=window[_0x577408([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x577408([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x577408([0x6e,0x6f,0x77])]())[_0x577408([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x577408([0x2e]),'');let _0x32c508=_0x577408([0x67]);for(let _0x3a2534=0x0;_0x3a2534<_0x1fcebd[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a2534+=0x2){let _0x4ac29f=window[_0x577408([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fcebd[_0x577408([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a2534,_0x3a2534+0x2));_0x4ac29f>=_0x202f5d[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ac29f-=_0x202f5d[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32c508+=_0x202f5d[_0x4ac29f];}return _0x32c508;}function _0x1d2262(){const _0x4f8326=_0x5b117f[_0x577408([0x73,0x70,0x6c,0x69,0x74])](_0x577408([0x2e]));if(0x3!=_0x4f8326[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d71e1(_0x4f8326[0x1]);function _0x3d71e1(_0x246652){const _0x4d8c01=_0x54e49c(_0x246652);return _0x4d8c01&&_0x96fea9()?_0x4d8c01:null;function _0x96fea9(){const _0x481393=_0x4d8c01[_0x577408([0x6a,0x74,0x69])],_0x1e409f=window[_0x577408([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x481393[_0x577408([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x481393[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2301d7={..._0x4d8c01,[_0x577408([0x6a,0x74,0x69])]:_0x481393[_0x577408([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x481393[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2301d7[_0x577408([0x76,0x63])],_0x3ea307(_0x2301d7)==_0x1e409f;}}}async function _0x32e21b(){let _0x384a14=!0x0;try{const _0x8a2e51=_0x5b117f[_0x577408([0x73,0x70,0x6c,0x69,0x74])](_0x577408([0x2e])),[_0x38cc74,_0x68a136,_0x4a6930]=_0x8a2e51;return _0x5b5f8e(_0x38cc74),await _0x19508e(_0x38cc74,_0x68a136,_0x4a6930),_0x384a14;}catch{return!0x1;}function _0x5b5f8e(_0x3b1f5a){const _0x15cd7e=_0x54e49c(_0x3b1f5a);_0x15cd7e&&_0x15cd7e[_0x577408([0x61,0x6c,0x67])]==_0x577408([0x45,0x53,0x32,0x35,0x36])||(_0x384a14=!0x1);}async function _0x19508e(_0x5251ef,_0x51f2aa,_0x56ba17){const _0x30097a=window[_0x577408([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x577408([0x66,0x72,0x6f,0x6d])](_0x2ec867(_0x56ba17),_0x49cdb4=>_0x49cdb4[_0x577408([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a69ab=new window[(_0x577408([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x577408([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5251ef+_0x577408([0x2e])+_0x51f2aa),_0x557ba5=window[_0x577408([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x577408([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x557ba5)return;const _0x485b0b=await _0x557ba5[_0x577408([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x577408([0x6a,0x77,0x6b]),_0x3060f3,{[_0x577408([0x6e,0x61,0x6d,0x65])]:_0x577408([0x45,0x43,0x44,0x53,0x41]),[_0x577408([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x577408([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x577408([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x557ba5[_0x577408([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x577408([0x6e,0x61,0x6d,0x65])]:_0x577408([0x45,0x43,0x44,0x53,0x41]),[_0x577408([0x68,0x61,0x73,0x68])]:{[_0x577408([0x6e,0x61,0x6d,0x65])]:_0x577408([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x485b0b,_0x30097a,_0x5a69ab)||(_0x384a14=!0x1);}}function _0x54e49c(_0x42fd18){return _0x42fd18[_0x577408([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x577408([0x65,0x79]))?JSON[_0x577408([0x70,0x61,0x72,0x73,0x65])](_0x2ec867(_0x42fd18)):null;}function _0x2ec867(_0x519c8b){return window[_0x577408([0x61,0x74,0x6f,0x62])](_0x519c8b[_0x577408([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x577408([0x2b]))[_0x577408([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x577408([0x2f])));}function _0x3ea307(_0x1215a8){let _0xd63e9e=0x1505;function _0x29e336(_0x4616da){for(let _0x6532ca=0x0;_0x6532ca<_0x4616da[_0x577408([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6532ca++){const _0x280c83=_0x4616da[_0x577408([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x6532ca);_0xd63e9e=(_0xd63e9e<<0x5)+_0xd63e9e+_0x280c83,_0xd63e9e&=_0xd63e9e;}}function _0x4bbd6b(_0x468373){Array[_0x577408([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x468373)?_0x468373[_0x577408([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bbd6b):_0x468373&&typeof _0x468373==_0x577408([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x577408([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x468373)[_0x577408([0x73,0x6f,0x72,0x74])]()[_0x577408([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2b9531,_0x1418f3])=>{_0x29e336(_0x2b9531),_0x4bbd6b(_0x1418f3);}):_0x29e336(window[_0x577408([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x468373));}return _0x4bbd6b(_0x1215a8),_0xd63e9e>>>0x0;}function _0x38103d(_0xecc604){return _0xecc604[_0x577408([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x577408([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x577408([0x30]));}function _0x185c49(_0x4c89bf){return _0x4c89bf[_0x577408([0x73,0x70,0x6c,0x69,0x74])]('')[_0x577408([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x577408([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fdb17(_0x238925){return _0x1a42a2[_0x577408([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x577408([0x68,0x61,0x73])](_0x238925);}function _0x318f5d(_0x2d7cd0){return _0x1a42a2[_0x577408([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x577408([0x67,0x65,0x74])](_0x2d7cd0);}function _0x5d41a5(){}function _0x577408(_0x95d474){return _0x95d474['map'](_0x56ebbb=>String['fromCharCode'](_0x56ebbb))['join']('');}_0x352c3a(await _0x141840());}(this);}set['adapter'](_0x3cdf25){if(this['_adapter'])throw new _0x5258bf('track-changes-adapter-already-set',this);this['_adapter']=_0x3cdf25;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b2e5f=!0x1,toJSON:_0x494771=!0x1}={}){const _0x37c3f6=[];for(const _0x120ff9 of this['_suggestions']['values']())_0x2b2e5f&&!_0x120ff9['isInContent']||_0x37c3f6['push'](_0x120ff9);return _0x494771?_0x37c3f6['map'](_0x114db2=>_0x114db2['toJSON']()):_0x37c3f6;}['getSuggestion'](_0x270bed){const _0x41ee31=this['_suggestions']['get'](_0x270bed);if(!_0x41ee31)throw new _0x5258bf('track-changes-suggestion-not-found',this);return _0x41ee31;}['hasSuggestion'](_0x5857eb){return this['_suggestions']['has'](_0x5857eb);}['addSuggestionData'](_0x55c4f6){const {authorId:_0x54ef7f,id:_0x391c7b,originalSuggestionId:_0x58a2bc,attributes:_0x25959a}=_0x55c4f6,[_0xa1830,_0x298fd6]=_0x55c4f6['type']['split'](':'),_0xa16dc3=this['_suggestions']['get'](_0x391c7b)||this['_createSuggestion'](_0xa1830,_0x298fd6,_0x391c7b,_0x54ef7f,_0x25959a,_0x58a2bc);if(this['_addThreadToSuggestion'](_0xa16dc3),this['_checkSuggestionCorrectness'](_0xa16dc3,_0xa1830,_0x298fd6||null,_0x54ef7f),_0xa16dc3['createdAt']=_0x55c4f6['createdAt'],_0xa16dc3['_isDataLoaded']=!0x0,_0x25959a&&_0x25959a['@external']){const _0x383236=_0x25959a['@external'],_0x3a6758=this['_getExternalAuthor'](_0x383236['authorName']);_0xa16dc3['authoredAt']=_0x383236['createdAt'],_0xa16dc3['author']=_0x3a6758,_0xa16dc3['isExternal']=!0x0;}else _0xa16dc3['authoredAt']=_0x55c4f6['createdAt'];switch(_0x55c4f6['data']&&(_0xa16dc3['data']=_0x55c4f6['data']),_0x55c4f6['attributes']&&(_0xa16dc3['attributes']=_0x55c4f6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xa16dc3['_saved']=!0x0),this['_suggestionState']['get'](_0xa16dc3)){case'notReady':this['_suggestionState']['set'](_0xa16dc3,'dataReady');break;case'markerReady':_0xa16dc3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xa16dc3])),this['_refreshSuggestionsChain'](new Set([_0xa16dc3])),this['_suggestionState']['set'](_0xa16dc3,'ready'),this['fire']('suggestionLoaded',_0xa16dc3)):this['_suggestionState']['set'](_0xa16dc3,'removed');}return _0xa16dc3;}['acceptSuggestion'](_0x17bc94){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x157095 of _0x17bc94['getAllAdjacentSuggestions']())_0x157095['accept']();});});}['discardSuggestion'](_0xc5918b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x555c2b of _0xc5918b['getAllAdjacentSuggestions']())_0x555c2b['discard']();});});}['enableCommand'](_0x222634,_0x32adf9){const _0x35a46b=this['editor']['commands']['get'](_0x222634);if(!_0x35a46b)throw new _0x5258bf('track-changes-command-not-found',this,{'commandName':_0x222634});if(this['_enabledCommands']['has'](_0x35a46b))throw new _0x5258bf('track-changes-enable-command-twice',this,{'commandName':_0x222634});this['_enabledCommands']['add'](_0x35a46b),_0x32adf9&&_0x35a46b['on']('execute',(_0x1a1878,_0x48c15c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x48c15c['length']>0x0&&_0x48c15c[_0x48c15c['length']-0x1]&&_0x48c15c[_0x48c15c['length']-0x1]['forceDefaultExecution']?_0x48c15c['pop']():(_0x1a1878['return']=_0x32adf9((..._0xef30d5)=>_0x35a46b['execute'](..._0xef30d5,{'forceDefaultExecution':!0x0}),..._0x48c15c),_0x1a1878['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xa19cd){let _0x177bc4,_0x54fdc1;const _0x302047=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x177bc4=_0xa19cd();}catch(_0x45d3b2){_0x54fdc1=_0x45d3b2;}return _0x302047||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x54fdc1&&_0x5258bf['rethrowUnexpectedError'](_0x54fdc1,this),_0x177bc4;}['markInsertion'](_0x1997af,_0x49e17c=null,_0x59ea2d={}){if(_0x1997af['isCollapsed'])return null;const _0x47708f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x59ea2d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa46b,meta:_0x4f1e67}of this['_findSuggestions'](_0x1997af,'insertion'))if(_0x4f1e67['isOwn']){if(!_0x4f1e67['isNextTo']){if(_0x4f1e67['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!se(_0xa46b,_0x59ea2d))continue;return _0xa46b;}if(se(_0xa46b,_0x59ea2d))return _0xa46b;this['_breakSuggestionMarker'](_0xa46b,_0x1997af['start'],_0x1997af['end']);break;}if(_0x49e17c==_0xa46b['subType']&&se(_0xa46b,_0x59ea2d)){const _0x1fdfd1=_0xa46b['getFirstRange']();return _0x1fdfd1['start']['isEqual'](_0x1997af['end'])?this['_setSuggestionRange'](_0xa46b,this['_model']['createRange'](_0x1997af['start'],_0x1fdfd1['end'])):this['_setSuggestionRange'](_0xa46b,this['_model']['createRange'](_0x1fdfd1['start'],_0x1997af['end'])),_0xa46b;}}const _0x513343=_0x4fda17(),_0x1abba3=_0x47708f['id'],_0xe9e6a7=_0x49e17c?'insertion:'+_0x49e17c:'insertion',_0x23e035=this['_setSuggestionData']({'id':_0x513343,'type':_0xe9e6a7,'createdAt':new Date(),'authorId':_0x1abba3,'attributes':_0x59ea2d});return this['_addSuggestionMarker'](_0xe9e6a7,_0x513343,_0x1abba3,_0x1997af),_0x23e035;}['markMultiRangeInsertion'](_0x336b73,_0x15f13f='multi',_0x1f0081={}){const _0x3543ff=this['editor']['plugins']['get']('Users')['me'],_0x838cda=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x15f13f,'join');this['_trackingSessionId']&&(_0x1f0081['trackingSessionId']=this['_trackingSessionId']);for(const _0x3e144c of this['getSuggestions']())if(_0x3e144c['author']['id']==_0x3543ff['id']&&'insertion'==_0x3e144c['type']&&_0x3e144c['subType']==_0x15f13f&&se(_0x3e144c,_0x1f0081)&&(_0x838cda(_0x3e144c['getRanges'](),_0x336b73)||_0x838cda(_0x336b73,_0x3e144c['getRanges']()))){for(const _0x548dd7 of _0x336b73)_0x3e144c['addRange'](_0x548dd7);return _0x3e144c;}for(const {suggestion:_0x52db82,meta:_0x3a6346}of this['_findSuggestions'](_0x336b73,'insertion')){if(!_0x3a6346['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3a6346['containsRangeInObject'])continue;if(!se(_0x52db82,_0x1f0081))continue;let _0x3b2c8c=!0x0;for(const _0x22a58e of _0x52db82['getRanges']())for(const _0xf2b50c of _0x336b73)if(!_0x22a58e['containsRange'](_0xf2b50c)){_0x3b2c8c=!0x1;break;}if(_0x3b2c8c)return _0x52db82;}const _0x3bf41c=_0x4fda17(),_0x30c1d2=_0x3543ff['id'],_0x1fd755='insertion:'+_0x15f13f,_0x267380=this['_setSuggestionData']({'id':_0x3bf41c,'type':_0x1fd755,'createdAt':new Date(),'authorId':_0x30c1d2,'attributes':_0x1f0081});for(const _0x3d48d8 of _0x336b73)this['_addSuggestionMarker'](_0x1fd755,_0x3bf41c,_0x30c1d2,_0x3d48d8,R['getMultiRangeId']());return _0x267380;}['markInlineFormat'](_0x181ccd,_0x4d4c67,_0x2507aa=null,_0x6036c7={}){if(_0x2507aa=_0x2507aa||zt(_0x4d4c67),_0x181ccd['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x6036c7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e8a7e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2507aa,'accept');return this['forceDefaultExecution'](()=>_0x3e8a7e([_0x181ccd],_0x4d4c67,_0x6036c7)),null;}const _0x5e121c=this['editor']['plugins']['get']('Users')['me'],_0x19534c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x12b202,meta:_0x4eb64c}of this['_findSuggestions'](_0x181ccd,'insertion'))_0x4eb64c['isOwn']&&!_0x4eb64c['isInsideObject']&&_0x19534c['push'](..._0x12b202['getRanges']());}const _0x5a6ec7=function(_0x34bd75,_0x1135ea){const _0x4d82fc=[];for(const _0x10b299 of _0x1135ea){const _0x49585f=_0x34bd75['getIntersection'](_0x10b299);_0x49585f&&_0x4d82fc['push'](_0x49585f);}return _0x4d82fc;}(_0x181ccd,_0x19534c),_0x1610c2=function(_0x17b651,_0x598e58){const _0x53695=[_0x17b651];for(const _0x4b3388 of _0x598e58){let _0xe1dfb8=0x0;for(;_0xe1dfb8<_0x53695['length'];){const _0x5a3fc8=_0x53695[_0xe1dfb8]['getDifference'](_0x4b3388);_0x53695['splice'](_0xe1dfb8,0x1,..._0x5a3fc8),_0xe1dfb8+=_0x5a3fc8['length'];}}return _0x53695;}(_0x181ccd,_0x19534c);_0x5a6ec7['length']&&this['_model']['change'](()=>{for(const _0x2129fc of _0x5a6ec7){const _0x1c64e3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2507aa,'accept');this['forceDefaultExecution'](()=>_0x1c64e3([_0x2129fc],_0x4d4c67,_0x6036c7));}});for(const _0x2f7e44 of _0x1610c2){let _0xd17ad0=null,_0x2a9036=_0x2f7e44['start'],_0x186675=_0x2f7e44['end'];for(const {suggestion:_0x3c20ef,meta:_0x1142e}of this['_findSuggestions'](_0x2f7e44,'formatInline')){if(!_0x1142e['isOwn'])continue;if(_0x3c20ef['subType']!=_0x2507aa)continue;if(!se(_0x3c20ef,_0x6036c7))continue;const _0x1e4e42=_0x3c20ef['getFirstRange']();if(_0x1e4e42['containsRange'](_0x2f7e44,!0x0))return null;_0x2a9036=_0x2a9036['isBefore'](_0x1e4e42['start'])?_0x2a9036:_0x1e4e42['start'],_0x186675=_0x186675['isAfter'](_0x1e4e42['end'])?_0x186675:_0x1e4e42['end'],_0xd17ad0?_0x1e4e42['start']['isBefore'](_0xd17ad0['getFirstRange']()['start'])?(_0xd17ad0['removeMarkers'](),_0xd17ad0=_0x3c20ef):_0x3c20ef['removeMarkers']():_0xd17ad0=_0x3c20ef;}const _0x1a76fa=this['_model']['createRange'](_0x2a9036,_0x186675);if(_0xd17ad0)this['_setSuggestionRange'](_0xd17ad0,_0x1a76fa);else{const _0xfbf9be=_0x4fda17(),_0x2d50ed=_0x5e121c['id'];this['_setSuggestionData']({'id':_0xfbf9be,'type':'formatInline:'+_0x2507aa,'data':_0x4d4c67,'createdAt':new Date(),'authorId':_0x2d50ed,'attributes':_0x6036c7}),this['_addSuggestionMarker']('formatInline:'+_0x2507aa,_0xfbf9be,_0x2d50ed,_0x1a76fa);}}return null;}['markBlockFormat'](_0x4a47b4,_0x1458f0,_0x585512=[],_0x1c3dc1=null,_0xf66ac5={}){_0x1458f0['formatGroupId']||(_0x1458f0['formatGroupId']=_0x1458f0['commandName']),_0x1458f0['multipleBlocks']=_0x4a47b4['is']('range'),_0x1c3dc1=_0x1c3dc1||zt(_0x1458f0);const _0x427f87=_0x585512['map'](_0x4c9e62=>ee(_0x4c9e62,this['_model'])),_0x50703a=_0x4a47b4['is']('range')?_0x4a47b4:ee(_0x4a47b4,this['_model']);if(this['_trackingSessionId']&&(_0xf66ac5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x333f6b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c3dc1,'accept');return this['forceDefaultExecution'](()=>_0x333f6b([_0x50703a],_0x1458f0,_0xf66ac5)),null;}_0x427f87['push'](_0x50703a);let _0x2d642d=!0x0;for(const _0x4b65ef of _0x427f87)if(!this['_rangeIsInLocalUserInsertion'](_0x4b65ef)){_0x2d642d=!0x1;break;}if(_0x2d642d&&'always'!==this['_trackFormatChanges']){const _0x282a83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c3dc1,'accept');return this['forceDefaultExecution'](()=>_0x282a83([_0x50703a],_0x1458f0,_0xf66ac5)),null;}let _0x301a7d=null,_0x5c2476=_0x50703a['start'],_0x4e4498=_0x50703a['end'];for(const {suggestion:_0x1361bb,meta:_0x2c8a95}of this['_findSuggestions'](_0x50703a,'formatBlock')){if(!_0x2c8a95['isOwn'])continue;if(_0x2c8a95['isNextTo']||_0x2c8a95['containsRangeInObject']||_0x2c8a95['isInsideObject'])continue;if(_0x1361bb['data']['formatGroupId']!=_0x1458f0['formatGroupId'])continue;if(!se(_0x1361bb,_0xf66ac5))continue;const _0x52d722=_0x1361bb['getFirstRange']();if(_0x1361bb['subType']==_0x1c3dc1){if(_0x52d722['containsRange'](_0x50703a,!0x0))return null;_0x5c2476=_0x5c2476['isBefore'](_0x52d722['start'])?_0x5c2476:_0x52d722['start'],_0x4e4498=_0x4e4498['isAfter'](_0x52d722['end'])?_0x4e4498:_0x52d722['end'],_0x301a7d?_0x52d722['start']['isBefore'](_0x301a7d['getFirstRange']()['start'])?(_0x301a7d['removeMarkers'](),_0x301a7d=_0x1361bb):_0x1361bb['removeMarkers']():_0x301a7d=_0x1361bb;}else{const _0xb52646=_0x50703a['getIntersection'](_0x52d722);this['_cutOutSuggestionMarker'](_0x1361bb,_0xb52646);}}const _0x4d7591=this['editor']['plugins']['get']('Users')['me'],_0x482f70=_0x4fda17(),_0x426124=_0x4d7591['id'];if(_0x301a7d)return this['_setSuggestionRange'](_0x301a7d,this['_model']['createRange'](_0x5c2476,_0x4e4498)),_0x301a7d;{const _0x3fbb17=this['_setSuggestionData']({'id':_0x482f70,'type':'formatBlock:'+_0x1c3dc1,'data':_0x1458f0,'createdAt':new Date(),'authorId':_0x426124,'attributes':_0xf66ac5});return this['_addSuggestionMarker']('formatBlock:'+_0x1c3dc1,_0x482f70,_0x426124,this['_model']['createRange'](_0x5c2476,_0x4e4498)),_0x3fbb17;}}['markMultiRangeBlockFormat'](_0x50576f,_0x3f8b2e,_0x40d40b=[],_0x5bb4b2=null,_0x369f34={}){_0x3f8b2e['formatGroupId']||(_0x3f8b2e['formatGroupId']=_0x3f8b2e['commandName']);const _0x4e6aab=_0x50576f[0x0];_0x3f8b2e['multipleBlocks']=_0x4e6aab['is']('range'),_0x5bb4b2=_0x5bb4b2||zt(_0x3f8b2e);const _0x5d61d9=_0x40d40b['map'](_0x78dbcb=>ee(_0x78dbcb,this['_model'])),_0x3e80e0=_0x4e6aab['is']('range')?_0x50576f:_0x50576f['map'](_0x59b897=>ee(_0x59b897,this['_model']));if(this['_trackingSessionId']&&(_0x369f34['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3f6420=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb4b2,'accept');return this['forceDefaultExecution'](()=>_0x3f6420(_0x3e80e0,_0x3f8b2e,_0x369f34)),null;}_0x5d61d9['push'](..._0x3e80e0);let _0x307e5b=!0x0;for(const _0x502f13 of _0x5d61d9)if(!this['_rangeIsInLocalUserInsertion'](_0x502f13)){_0x307e5b=!0x1;break;}if(_0x307e5b&&'always'!==this['_trackFormatChanges']){const _0x114f5c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb4b2,'accept');return this['forceDefaultExecution'](()=>_0x114f5c(_0x3e80e0,_0x3f8b2e,_0x369f34)),null;}const _0x9a5bad=this['editor']['plugins']['get']('Users')['me'];for(const _0x1ce488 of this['getSuggestions']()){const _0xc48f8d=_0x1ce488['data'];if(_0x1ce488['author']['id']!=_0x9a5bad['id'])continue;if('formatBlock'!=_0x1ce488['type']||_0xc48f8d['formatGroupId']!=_0x3f8b2e['formatGroupId'])continue;if(!se(_0x1ce488,_0x369f34))continue;const _0x2379a1=_0x1ce488['subType']==_0x5bb4b2;for(let _0x358e3d=0x0;_0x358e3d<_0x3e80e0['length'];_0x358e3d++){const _0x2155a7=_0x3e80e0[_0x358e3d];for(const _0x2d55c4 of _0x1ce488['getMarkers']()){const _0x2d7dc5=_0x2d55c4['getRange']();if(_0x2155a7['isEqual'](_0x2d7dc5)){_0x2379a1?(_0x3e80e0['splice'](_0x358e3d,0x1),_0x358e3d--):_0x1ce488['removeMarker'](_0x2d55c4['name']);break;}}}}if(0x0==_0x3e80e0['length'])return null;const _0x4f543b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb4b2,'join');for(const _0x2e1c18 of this['getSuggestions']()){const _0x1d045b=_0x2e1c18['data'];if(_0x2e1c18['author']['id']==_0x9a5bad['id']&&('formatBlock'==_0x2e1c18['type']&&_0x1d045b['formatGroupId']==_0x3f8b2e['formatGroupId']&&_0x2e1c18['subType']==_0x5bb4b2&&se(_0x2e1c18,_0x369f34)&&(_0x4f543b(_0x2e1c18['getRanges'](),_0x3e80e0)||_0x4f543b(_0x3e80e0,_0x2e1c18['getRanges']())))){for(const _0x155088 of _0x3e80e0)_0x2e1c18['addRange'](_0x155088);return _0x2e1c18;}}const _0x1de1ea=_0x4fda17(),_0x120c28=_0x9a5bad['id'],_0x53b034='formatBlock:'+_0x5bb4b2,_0x4a228e=this['_setSuggestionData']({'id':_0x1de1ea,'type':_0x53b034,'data':_0x3f8b2e,'createdAt':new Date(),'authorId':_0x120c28,'attributes':_0x369f34});for(const _0x1768ff of _0x3e80e0)this['_addSuggestionMarker'](_0x53b034,_0x1de1ea,_0x120c28,_0x1768ff,R['getMultiRangeId']());return _0x4a228e;}['markDeletion'](_0x46b5ac,_0x2c32b2=null,_0x59248e={}){if(_0x46b5ac['isCollapsed'])return null;const _0x5a85ab=this['editor']['plugins']['get']('Users')['me'],_0x309305=new _0x1c1121(_0x46b5ac['start'],_0x46b5ac['end']);this['_trackingSessionId']&&(_0x59248e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x17db45,meta:_0x25cc44}of this['_findSuggestions'](_0x309305,'insertion'))if(_0x25cc44['isOwn']&&!_0x25cc44['isNextTo']){if(_0x17db45['isMultiRange']){const _0x50fd56=_0x17db45['getRanges']()['filter'](_0x25cc76=>'$graveyard'!=_0x25cc76['root']['rootName']);_0x50fd56['every'](_0x448cf1=>_0x309305['containsRange'](_0x448cf1,!0x0))&&_0x17db45['discard']();if(_0x50fd56['some'](_0x1cd464=>_0x1cd464['containsRange'](_0x309305,!0x0))){const _0x25c519=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c32b2,'accept');return this['forceDefaultExecution'](()=>_0x25c519([_0x309305],null,_0x59248e)),null;}}else{const _0x4d3994=_0x309305['getIntersection'](_0x17db45['getFirstRange']());null!==_0x4d3994&&_0x17db45['_onDiscard']([_0x4d3994],null,_0x59248e);}}if(_0x309305['detach'](),_0x309305['isCollapsed']||'$graveyard'==_0x309305['root']['rootName'])return null;let _0x316183=null,_0x76859=_0x309305['start'],_0x1b968d=_0x309305['end'];const _0x144109=this['_findSuggestions'](_0x309305,'deletion');for(const {suggestion:_0x548d03,meta:_0x534995}of _0x144109){const _0x1ff94f=this['_model']['createRange'](_0x76859,_0x1b968d);if(_0x534995['isOwn']&&(this['_mergeNestedSuggestions']||!_0x534995['containsRangeInObject']&&!_0x534995['isInsideObject'])){if(_0x548d03['isMultiRange']){if(!se(_0x548d03,_0x59248e))continue;let _0x45f80f=!0x0;for(const _0x4c1ae2 of _0x548d03['getRanges']()){if(_0x4c1ae2['containsRange'](_0x1ff94f,!0x0))return _0x548d03;_0x1ff94f['containsRange'](_0x4c1ae2)||(_0x45f80f=!0x1);}_0x45f80f&&_0x548d03['discard']();}else{const _0x2b2605=_0x548d03['getFirstRange']();if(_0x2b2605['containsRange'](_0x1ff94f,!0x0))return _0x548d03;if(!se(_0x548d03,_0x59248e)){_0x1ff94f['containsRange'](_0x2b2605)?_0x548d03['removeMarkers']():_0x2b2605['containsPosition'](_0x76859)?_0x76859=_0x2b2605['end']:_0x2b2605['containsPosition'](_0x1b968d)&&(_0x1b968d=_0x2b2605['start']);continue;}_0x76859=_0x76859['isBefore'](_0x2b2605['start'])?_0x76859:_0x2b2605['start'],_0x1b968d=_0x1b968d['isAfter'](_0x2b2605['end'])?_0x1b968d:_0x2b2605['end'],_0x59248e=Object['assign']({},_0x548d03['attributes']),_0x316183?_0x2b2605['start']['isBefore'](_0x316183['getFirstRange']()['start'])?(_0x316183['removeMarkers'](),_0x316183=_0x548d03):_0x548d03['removeMarkers']():_0x316183=_0x548d03;}}}if(_0x316183)return this['_setSuggestionRange'](_0x316183,this['_model']['createRange'](_0x76859,_0x1b968d)),_0x316183;{const _0x4fbaa6=_0x4fda17(),_0x21def5=this['_model']['createRange'](_0x76859,_0x1b968d),_0x4e4b06=_0x5a85ab['id'],_0x1f910d=_0x2c32b2?'deletion:'+_0x2c32b2:'deletion',_0xe91a34=this['_setSuggestionData']({'id':_0x4fbaa6,'type':_0x1f910d,'createdAt':new Date(),'authorId':_0x4e4b06,'attributes':_0x59248e});return this['_addSuggestionMarker'](_0x1f910d,_0x4fbaa6,_0x4e4b06,_0x21def5),_0xe91a34;}}['markMultiRangeDeletion'](_0x4c6717,_0x4bb7a3='multi',_0x45a255={}){const _0x5e04e7=this['editor']['plugins']['get']('Users')['me'],_0x1b35c9=_0x4c6717['map'](_0x490bad=>new _0x1c1121(_0x490bad['start'],_0x490bad['end'])),_0x2a8e4b=new Set();this['_trackingSessionId']&&(_0x45a255['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x80d19a,meta:_0x572024}of this['_findSuggestions'](_0x1b35c9,'insertion'))_0x572024['isOwn']&&!_0x572024['isNextTo']&&_0x2a8e4b['add'](_0x80d19a);for(const _0x429c56 of _0x2a8e4b)if(_0x429c56['isMultiRange']){const _0x56fdce=_0x429c56['getRanges']();(!_0x429c56['attributes']||!_0x429c56['attributes']['skipNestingCheck'])&&(_0x56fdce['every'](_0x417a4a=>_0x1b35c9['some'](_0x40c443=>_0x40c443['containsRange'](_0x417a4a,!0x0)))&&_0x429c56['discard']());if(_0x1b35c9['every'](_0x656bff=>_0x56fdce['some'](_0x57553a=>_0x57553a['containsRange'](_0x656bff,!0x0)))){const _0x5a4701=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb7a3,'accept');return this['forceDefaultExecution'](()=>_0x5a4701(_0x4c6717,null,_0x45a255)),null;}}else{const _0x17efe3=_0x429c56['getFirstRange']();_0x1b35c9['some'](_0x2a42e0=>_0x2a42e0['containsRange'](_0x17efe3,!0x0))&&_0x429c56['discard']();if(_0x1b35c9['every'](_0x2b9aa3=>_0x17efe3['containsRange'](_0x2b9aa3,!0x0))){const _0x244022=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb7a3,'accept');return this['forceDefaultExecution'](()=>_0x244022(_0x1b35c9,null,_0x45a255)),null;}}const _0x483e19=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb7a3,'join');let _0x5ecd64=null;for(const _0x71abf6 of this['getSuggestions']())if(_0x71abf6['author']['id']==_0x5e04e7['id']&&_0x71abf6['isInContent']&&'deletion'==_0x71abf6['type']&&_0x71abf6['subType']==_0x4bb7a3&&se(_0x71abf6,_0x45a255)&&(_0x483e19(_0x71abf6['getRanges'](),_0x1b35c9)||_0x483e19(_0x1b35c9,_0x71abf6['getRanges']()))){if(_0x5ecd64){if(_0x71abf6['commentThread']&&_0x71abf6['commentThread']['length'])continue;for(const _0x4302cf of _0x71abf6['getRanges']())_0x5ecd64['isIntersectingWithRange'](_0x4302cf)||_0x5ecd64['addRange'](_0x4302cf);_0x71abf6['removeMarkers']();}else{_0x5ecd64=_0x71abf6;for(const _0x575b17 of _0x1b35c9)_0x71abf6['isIntersectingWithRange'](_0x575b17)||_0x71abf6['addRange'](_0x575b17);}}if(_0x5ecd64)return _0x5ecd64;_0x2a8e4b['clear']();for(const {suggestion:_0x36dbc1,meta:_0x114097}of this['_findSuggestions'](_0x1b35c9,'deletion'))_0x114097['isOwn']&&(this['_mergeNestedSuggestions']||!_0x114097['containsRangeInObject']&&!_0x114097['isInsideObject'])&&se(_0x36dbc1,_0x45a255)&&_0x2a8e4b['add'](_0x36dbc1);for(const _0x17d04b of _0x2a8e4b){const _0x396a6f=_0x17d04b['getRanges']();if(!_0x45a255||!_0x45a255['skipNestingCheck']){if(_0x1b35c9['every'](_0x30a3e3=>_0x396a6f['some'](_0x12324b=>_0x12324b['containsRange'](_0x30a3e3,!0x0))))return _0x17d04b;}(!_0x17d04b['attributes']||!_0x17d04b['attributes']['skipNestingCheck'])&&(_0x396a6f['every'](_0x58ba09=>_0x1b35c9['some'](_0x214140=>_0x214140['containsRange'](_0x58ba09,!0x0)))&&_0x17d04b['discard']());}const _0x4a4bb1=_0x4fda17(),_0x13b422=_0x5e04e7['id'],_0x3eb055='deletion:'+_0x4bb7a3,_0x197c08=this['_setSuggestionData']({'id':_0x4a4bb1,'type':_0x3eb055,'createdAt':new Date(),'authorId':_0x13b422,'attributes':_0x45a255});for(const _0x2110e8 of _0x1b35c9)_0x2110e8['detach'](),_0x2110e8['isCollapsed']||'$graveyard'==_0x2110e8['root']['rootName']||this['_addSuggestionMarker'](_0x3eb055,_0x4a4bb1,_0x13b422,_0x2110e8,R['getMultiRangeId']());return _0x197c08;}['markAttributeChange'](_0x77fa3c,_0x5da9f9,_0x3e3d95,_0x3c306b,_0x39d3fa){if(_0x77fa3c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1f8a2b=this['editor']['plugins']['get']('Users')['me']['id'],_0x470730=Array['from'](this['_suggestions']['values']())['filter'](_0x19b7d6=>'attribute'==_0x19b7d6['type']&&_0x19b7d6['data']['key']==_0x5da9f9&&_0x19b7d6['isIntersectingWithRange'](_0x77fa3c));if(this['_trackingSessionId']&&(_0x39d3fa['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xa534a7=this['_findSuggestions'](_0x77fa3c,'insertion')['filter'](({meta:_0x34561d})=>_0x34561d['isOwn']&&!_0x34561d['isInsideObject']&&!_0x34561d['isNextTo'])['map'](({suggestion:_0x1902ea})=>_0x1902ea);_0x470730['unshift'](..._0xa534a7);}const _0x3a96b9=new Map([[_0x77fa3c,_0x3e3d95]]);for(const _0x4426be of _0x470730){const _0x196177='attribute'==_0x4426be['type']?_0x4426be['data']['oldValue']:void 0x0,_0x45dd1a=_0x4426be['getFirstRange'](),_0x15fbd3=Array['from'](_0x3a96b9['keys']())['find'](_0x625e40=>_0x625e40['isIntersecting'](_0x45dd1a));if(!_0x15fbd3)continue;const _0x1954e1=_0x15fbd3['getDifference'](_0x45dd1a);this['_isBlockAttribute'](_0x5da9f9)&&'insertion'==_0x4426be['type']&&0x0!=_0x1954e1['length']||(_0x3a96b9['delete'](_0x15fbd3),_0x1954e1['forEach'](_0xdd7ddc=>{_0x3a96b9['set'](_0xdd7ddc,_0x3e3d95);}),'insertion'!=_0x4426be['type']&&_0x196177!=_0x3c306b&&_0x3a96b9['set'](_0x15fbd3['getIntersection'](_0x45dd1a),_0x196177));}const _0x3505c9=[];for(const [_0x17e656,_0x1f2d48]of _0x3a96b9){const _0x3c8951=_0x4fda17(),_0x2f8a0b={'key':_0x5da9f9,'oldValue':_0x1f2d48,'newValue':_0x3c306b};_0x5da9f9['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':_0x5da9f9});const _0x52a262=('attribute:'+(_0x5da9f9+'|'+zt({'newValue':_0x3c306b})))['substring'](0x0,0x3c),_0x1c81d1=this['_setSuggestionData']({'id':_0x3c8951,'type':_0x52a262,'data':_0x2f8a0b,'createdAt':new Date(),'authorId':_0x1f8a2b,'attributes':_0x39d3fa});_0x3505c9['push'](_0x1c81d1),this['_addSuggestionMarker'](_0x52a262,_0x3c8951,_0x1f8a2b,_0x17e656);}return _0x3505c9;}['enableDefaultAttributesIntegration'](_0x282da4){this['enableCommand'](_0x282da4,(_0x2ede95,..._0x5a20c4)=>{this['recordAttributeChanges'](()=>{_0x2ede95(..._0x5a20c4);});});}['registerBlockAttribute'](_0x553fc9){this['_blockAttributeKeys']['add'](_0x553fc9);}['registerInlineAttribute'](_0x39dc1c){this['_inlineAttributeKeys']['add'](_0x39dc1c);}['startTrackingSession'](_0x46ec36){return this['_trackingSessionId']=void 0x0!==_0x46ec36?_0x46ec36:_0x4fda17(),this['_trackingSessionId'];}['_getAttributeKey'](_0x179a67){return'attribute'==_0x179a67['type']?re(_0x179a67['subType']):null;}['_applyOperationsAsSuggestions'](_0x2d9a4f){if(0x0==_0x2d9a4f['length'])return;const _0x2ae954=this['editor'],_0x1ed815=_0x2ae954['plugins']['get'](_0x21ae29);let _0x32b974,_0x4bf6a2=!0x0;for(const _0x5cbe09 in _0x2d9a4f[0x0]){const _0x2881ae=_0x2d9a4f[0x0][_0x5cbe09];if((_0x2881ae instanceof _0x46543f||_0x2881ae instanceof _0x22f94c)&&_0x2881ae['root']['is']('documentFragment')){_0x4bf6a2=!0x1,_0x32b974=_0x2881ae['root'];break;}}_0x2ae954['model']['change'](_0x317bc8=>{const _0x144670=new Set();for(let _0x100216=0x0;_0x100216<_0x2d9a4f['length'];_0x100216++){const _0xb6d9f6=_0x2d9a4f[_0x100216];if(_0xb6d9f6['baseVersion']=_0x4bf6a2?_0x2ae954['model']['document']['version']:null,_0xb6d9f6['isDocumentOperation']=_0x4bf6a2,_0x1ed815['isMarkedRemoveOperation'](_0xb6d9f6)){const _0x5eaf2d=Zt(_0xb6d9f6['newRange'],_0x2ae954['model']);if(_0x4bf6a2)this['markDeletion'](_0x5eaf2d);else{const _0x74c6b3='suggestion:deletion:'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x74c6b3,_0x5eaf2d);}}else switch(_0xb6d9f6['type']){case'rename':{const _0x46d53a=_0xb6d9f6['oldName'],_0x2d67ac=_0xb6d9f6['newName'];if(_0x46d53a==_0x2d67ac)break;_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);const _0x12e3c2='$elementName',_0x1f7964=_0xb6d9f6['position'],_0x376825=_0x2ae954['model']['createRange'](_0x1f7964,_0x2ae954['model']['createPositionAt'](_0x1f7964['nodeAfter'],'end'));if(_0x4bf6a2)this['markAttributeChange'](_0x376825,_0x12e3c2,_0x46d53a,_0x2d67ac,{'groupId':_0x4fda17()});else{const _0x2f672b='suggestion:attribute:'+_0x12e3c2+':'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x2f672b,_0x376825);}break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4ba700=_0xb6d9f6['oldValue'],_0x27a846=_0xb6d9f6['newValue'];if(_0x4ba700==_0x27a846)break;_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);const _0x565da4=_0xb6d9f6['key'];if(!this['_isRegisteredAttribute'](_0x565da4))break;const _0xb2ae58=Zt(_0xb6d9f6['range'],_0x2ae954['model']);if(_0x4bf6a2)this['markAttributeChange'](_0xb2ae58,_0x565da4,_0x4ba700,_0x27a846,{'groupId':_0x4fda17()});else{const _0x49824a='suggestion:attribute:'+_0x565da4+':'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x49824a,_0xb2ae58);}break;}case'insert':{_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);const _0x1c02e4=_0x2d9a4f[_0x100216+0x1]&&'move'==_0x2d9a4f[_0x100216+0x1]['type'];if(!_0x4bf6a2&&_0x1c02e4&&ae(_0x32b974,_0xb6d9f6),_0x1c02e4)break;const _0x2bc9d3=_0xb6d9f6['position'],_0x4cb369=_0xb6d9f6['howMany'],_0x71a32b=Zt(_0x2ae954['model']['createRange'](_0x2bc9d3,_0x2bc9d3['getShiftedBy'](_0x4cb369)),_0x2ae954['model']);if(_0x4bf6a2)this['markInsertion'](_0x71a32b);else{const _0xd44641='suggestion:insertion:'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0xd44641,_0x71a32b);}break;}case'split':{_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);const _0x5b626b=_0xb6d9f6['splitPosition'],_0x147d9a=_0xb6d9f6['moveTargetPosition'],_0x12982f=_0x2ae954['model']['createRange'](_0x5b626b,_0x147d9a);if(_0x4bf6a2)this['markInsertion'](_0x2ae954['model']['createRange'](_0x5b626b,_0x147d9a));else{const _0x59d31e='suggestion:insertion:'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x59d31e,_0x12982f);}break;}case'move':if(_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6),!_0x4bf6a2&&_0x2d9a4f[_0x100216-0x1]&&'insert'==_0x2d9a4f[_0x100216-0x1]['type']&&ae(_0x32b974,_0xb6d9f6),!_0x4bf6a2){const _0x187706=_0xb6d9f6['getMovedRangeStart'](),_0x1994f2=_0xb6d9f6['howMany'];for(let _0x2d4df6=0x0;_0x2d4df6<_0x1994f2;_0x2d4df6++){const _0x1f671b=_0x187706['getShiftedBy'](_0x2d4df6)['nodeAfter'];_0x144670['add'](_0x1f671b);}}break;case'remove':if(_0x4bf6a2)_0x317bc8['batch']['addOperation'](_0xb6d9f6),_0x2ae954['model']['applyOperation'](_0xb6d9f6);else{const _0x232513=_0xb6d9f6['sourcePosition'],_0x3e9d40=_0xb6d9f6['howMany'],_0x38be3b=new _0x46f54d(_0x232513,_0x3e9d40);_0x317bc8['batch']['addOperation'](_0x38be3b),_0x2ae954['model']['applyOperation'](_0x38be3b);}}}for(const _0x2ce493 of _0x144670){const _0x3c792e=_0x2ae954['model']['createRangeOn'](_0x2ce493),_0x14c8c8='suggestion:formatBlock:$fakeWrap:'+_0x4fda17()+':$aiSuggestion';_0x32b974['markers']['set'](_0x14c8c8,Zt(_0x3c792e,_0x2ae954['model']));}});}['_setSuggestionRange'](_0x2380ca,_0x1e0d75){const _0x69e6f8=_0x2380ca['getFirstMarker']();this['_model']['change'](_0x38e51f=>{_0x38e51f['updateMarker'](_0x69e6f8,{'range':_0x1e0d75});});}['_addThreadToSuggestion'](_0x5b084f){const _0x4a2093=_0x5b084f['id'],_0x3049ba=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4a2093)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3049ba,'threadId':_0x4a2093,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4bc649=this['_commentsRepository']['getCommentThread'](_0x4a2093);_0x4bc649['unbind']('isRemovable'),_0x4bc649['isRemovable']=!0x1,_0x5b084f['commentThread']=_0x4bc649;}['_checkSuggestionCorrectness'](_0x44d8ee,_0x2390f3,_0x585e54,_0x982c11){if(_0x44d8ee['type']!=_0x2390f3||_0x44d8ee['subType']!=_0x585e54||_0x44d8ee['creator']['id']!=_0x982c11)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5258bf('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x197ce5,_0x5e6622){const _0x1b2a6d=_0x197ce5['getFirstRange']();if(_0x5e6622['isEqual'](_0x1b2a6d))_0x197ce5['removeMarkers']();else{if(_0x1b2a6d['containsRange'](_0x5e6622)){const _0x96616b=this['_model']['createPositionAt'](_0x5e6622['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x197ce5,this['_model']['createRange'](_0x1b2a6d['start'],_0x96616b));const _0x1df18e=_0x4fda17(),_0x96fcc6=_0x197ce5['creator']['id'],_0x371f8e=_0x197ce5['type']+':'+_0x197ce5['subType'];this['_setSuggestionData']({'id':_0x1df18e,'type':_0x371f8e,'createdAt':new Date(),'authorId':_0x96fcc6,'data':_0x197ce5['data'],'attributes':_0x197ce5['attributes']});const _0x305dd2=this['_model']['createPositionAt'](_0x5e6622['end']['parent'],'after'),_0x21f259=this['_model']['createRange'](_0x305dd2,_0x1b2a6d['end']);this['_addSuggestionMarker'](_0x371f8e,_0x1df18e,_0x96fcc6,_0x21f259);}else{if(_0x1b2a6d['containsPosition'](_0x5e6622['start'])){const _0x2634df=this['_model']['createPositionAt'](_0x5e6622['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x197ce5,this['_model']['createRange'](_0x1b2a6d['start'],_0x2634df));}else{const _0x16690a=this['_model']['createPositionAt'](_0x5e6622['end']['parent'],'after');this['_setSuggestionRange'](_0x197ce5,this['_model']['createRange'](_0x16690a,_0x1b2a6d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x152c83){for(const {suggestion:_0x4ceb42,meta:_0x11cf04}of this['_findSuggestions'](_0x152c83,'insertion')){if(!_0x11cf04['isOwn'])continue;const _0xa92b43=_0x4ceb42['getRanges']();for(const _0x67d0b0 of _0xa92b43)if(!_0x152c83['getDifference'](_0x67d0b0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4e971c){return this['editor']['plugins']['get']('Users')['getUser'](_0x4e971c);}['_getExternalAuthor'](_0x581317){const _0x5eba03=this['editor']['plugins']['get']('Users'),_0x25d24c=_0x52205a('external:'+_0x581317),_0x3fc8a4=_0x5eba03['getUser'](_0x25d24c);return _0x3fc8a4||_0x5eba03['addUser']({'id':_0x25d24c,'name':_0x581317});}['_createSuggestion'](_0x19a3ee,_0x31cd69,_0x24025a,_0x37d261,_0x3c8e78,_0x455b4a){const _0x222ea3=this['_getAuthorFromId'](_0x37d261);if(!_0x222ea3)throw new _0x5258bf('track-changes-user-not-found',this,{'authorId':_0x37d261,'suggestionId':_0x24025a});const _0x19ba9c=this['_suggestionFactory']['buildSuggestion'](_0x19a3ee,_0x31cd69,_0x24025a,_0x222ea3,_0x3c8e78,_0x348bde=>{this['_updateSuggestionData'](_0x24025a,{'attributes':_0x348bde});const _0x496658=this['getSuggestion'](_0x24025a);this['_joinWithAdjacentSuggestions'](new Set([_0x496658])),this['_refreshSuggestionsChain'](new Set([_0x496658]));},_0x455b4a);return this['listenTo'](_0x19ba9c,'accept',()=>{this['_updateSuggestionData'](_0x24025a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x19ba9c,'discard',()=>{this['_updateSuggestionData'](_0x24025a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x24025a,_0x19ba9c),this['_suggestionState']['set'](_0x19ba9c,'notReady'),_0x19ba9c;}['_splitMarkerName'](_0x56a965){const _0x37035d=_0x56a965['split'](':');return{'group':_0x37035d[0x0],'type':_0x37035d[0x1],'subType':_0x37035d['length']>=0x5?_0x37035d[0x2]:null,'id':_0x37035d['length']<0x5?_0x37035d[0x2]:_0x37035d[0x3],'authorId':_0x37035d['length']<0x5?_0x37035d[0x3]:_0x37035d[0x4],'markerCount':0x6==_0x37035d['length']?_0x37035d[0x5]:null};}['_breakSuggestionMarker'](_0x351d4d,_0x554fc6,_0x419660){const _0x19215a=_0x351d4d['getFirstRange'](),_0x24ff7a=_0x19215a['start'],_0x5eead5=_0x19215a['end'];this['_setSuggestionRange'](_0x351d4d,this['_model']['createRange'](_0x24ff7a,_0x554fc6));const _0x4a378e=_0x4fda17(),_0x5d2125=_0x351d4d['creator']['id'],_0x10a603=_0x351d4d['type']+(_0x351d4d['subType']?':'+_0x351d4d['subType']:'');this['_setSuggestionData']({'id':_0x4a378e,'type':_0x10a603,'createdAt':new Date(),'authorId':_0x5d2125,'originalSuggestionId':_0x351d4d['_originalSuggestionId']||_0x351d4d['id'],'attributes':_0x351d4d['attributes'],'data':_0x351d4d['data']});const _0x40abc2=this['_getAttributeKey'](_0x351d4d);('formatBlock'==_0x351d4d['type']||_0x40abc2&&this['_isBlockAttribute'](_0x40abc2))&&(_0x419660=this['_model']['createPositionBefore'](_0x419660['parent'])),this['_addSuggestionMarker'](_0x10a603,_0x4a378e,_0x5d2125,this['_model']['createRange'](_0x419660,_0x5eead5));}['_findSuggestions'](_0x39698b,_0x569541=null){const _0x528a95=[],_0x2e0224=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x39698b)||(_0x39698b=[_0x39698b]);for(const _0x532ef2 of this['getSuggestions']()){if(!_0x532ef2['isInContent'])continue;if(_0x569541&&_0x532ef2['type']!=_0x569541)continue;let _0x3f7460=!0x1;for(const _0x1cf18e of _0x532ef2['getRanges']()){for(const _0x9a6816 of _0x39698b){const _0x5444cc=_0x9a6816['start']['isEqual'](_0x1cf18e['end'])||_0x9a6816['end']['isEqual'](_0x1cf18e['start']);if(_0x5444cc||_0x9a6816['getIntersection'](_0x1cf18e)){const _0x29e245=_0x9a6816['containsRange'](_0x1cf18e)&&qt(this['_model']['schema'],_0x1cf18e['start'],_0x9a6816),_0x560241=_0x1cf18e['containsRange'](_0x9a6816)&&qt(this['_model']['schema'],_0x9a6816['start'],_0x1cf18e);_0x528a95['push']({'suggestion':_0x532ef2,'meta':{'isOwn':_0x2e0224==_0x532ef2['author'],'isNextTo':_0x5444cc,'isInsideObject':_0x29e245,'containsRangeInObject':_0x560241}}),_0x3f7460=!0x0;break;}}if(_0x3f7460)break;}}return _0x528a95;}['_addSuggestionMarker'](_0x352190,_0x20ed80,_0x3504d0,_0x46bbb7,_0x2653ee){this['_model']['change'](_0x51d21f=>{let _0x2744b5='suggestion:'+_0x352190+':'+_0x20ed80+':'+_0x3504d0;_0x2653ee&&(_0x2744b5=_0x2744b5+':'+_0x2653ee),_0x51d21f['addMarker'](_0x2744b5,{'range':_0x46bbb7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x171b27){const _0x1657f5=_0x171b27['previous'],_0x46a904=_0x171b27['next'];_0x171b27['previous']=null,_0x171b27['next']=null,null!=_0x1657f5&&_0x1657f5['next']==_0x171b27&&(_0x1657f5['next']=_0x46a904),null!=_0x46a904&&_0x46a904['previous']==_0x171b27&&(_0x46a904['previous']=_0x1657f5),'ready'==this['_suggestionState']['get'](_0x171b27)&&(this['_suggestionState']['set'](_0x171b27,'removed'),this['fire']('suggestionUnloaded',_0x171b27,_0x1657f5,_0x46a904));}['_setSuggestionData'](_0x360db5){const _0x4cecc7=_0x360db5['id'],_0x93e5e5=this['addSuggestionData'](_0x360db5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x53cb41=this['editor']['plugins']['get']('PendingActions'),_0x5ae008=_0x93e5e5['hasComments'],_0x3aa497=_0x93e5e5['subType']?_0x93e5e5['type']+':'+_0x93e5e5['subType']:_0x93e5e5['type'],_0x30665d=this['editor']['locale'],_0x5d78cc=_0x53cb41['add'](o(_0x30665d,'PENDING_ACTION_SUGGESTION')),_0x385664={'id':_0x4cecc7,'type':_0x3aa497,'hasComments':_0x5ae008,'data':_0x360db5['data']||null,'originalSuggestionId':_0x360db5['originalSuggestionId']||null,'attributes':_0x93e5e5['attributes']};this['_adapter']['addSuggestion'](_0x385664)['then'](_0x2861a7=>{_0x93e5e5['_saved']=!0x0,_0x53cb41['remove'](_0x5d78cc),_0x2861a7&&_0x2861a7['createdAt']&&(this['_suggestions']['get'](_0x4cecc7)['createdAt']=_0x2861a7['createdAt']);})['catch'](_0x3d1ef5=>{throw _0x166a07('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x93e5e5['discard']();}),_0x93e5e5['stopListening'](),this['_suggestions']['delete'](_0x93e5e5['id']),this['_suggestionState']['delete'](_0x93e5e5),_0x3d1ef5;});}return _0x93e5e5;}['_isBlockAttribute'](_0x2ec7a0){return this['_blockAttributeKeys']['has'](_0x2ec7a0);}['_isInlineAttribute'](_0xfcb2ca){return this['_inlineAttributeKeys']['has'](_0xfcb2ca);}['_updateSuggestionData'](_0x313ad6,_0x59c4f9){const _0x2e07db=this['editor']['plugins']['get']('PendingActions'),_0x4c0b77=this['getSuggestion'](_0x313ad6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4c0b77['_saved']){const _0x2626bc=_0x2e07db['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x313ad6,_0x59c4f9)['then'](()=>{_0x2e07db['remove'](_0x2626bc);});}else _0x4c0b77['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x313ad6,_0x59c4f9);});}}['_getSuggestionData'](_0x4ed841){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5258bf('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4ed841);}['_handleNewSuggestionMarker'](_0x47117d){const {id:_0x5a96f6,type:_0x3d724a,subType:_0x3aa567,authorId:_0x4b65c0}=this['_splitMarkerName'](_0x47117d),_0x4e1fd8=this['_suggestions']['get'](_0x5a96f6)||this['_createSuggestion'](_0x3d724a,_0x3aa567,_0x5a96f6,_0x4b65c0,{});switch(this['_checkSuggestionCorrectness'](_0x4e1fd8,_0x3d724a,_0x3aa567,_0x4b65c0),this['_suggestionState']['get'](_0x4e1fd8)){case'notReady':this['_getSuggestionData'](_0x5a96f6)['then'](_0x2a2abf=>{let _0x3a77b7=Promise['resolve']();_0x2a2abf['hasComments']&&(_0x3a77b7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a96f6})),_0x3a77b7['then'](()=>{this['addSuggestionData'](_0x2a2abf)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4e1fd8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a96f6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4e1fd8,'ready'),this['fire']('suggestionLoaded',_0x4e1fd8);break;case'ready':this['fire']('suggestionChanged',_0x4e1fd8);}return _0x4e1fd8['addMarkerName'](_0x47117d),_0x4e1fd8;}['_refreshSuggestionsChain'](_0x21e17c){const _0x5473bf=Array['from'](_0x21e17c),_0x207f8f=_0x5473bf['filter'](_0x57ec92=>'attribute'==_0x57ec92['type']);this['_refreshAttributeSuggestionsChain'](_0x207f8f);const _0x2b5912=_0x5473bf['filter'](_0x16bd1c=>!_0x16bd1c['isMultiRange']&&'attribute'!=_0x16bd1c['type']),_0x18b03f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd3e160=>!_0xd3e160['isMultiRange']&&'attribute'!=_0xd3e160['type']),_0x31609=_0x18b03f['filter'](_0x26c6ed=>!_0x21e17c['has'](_0x26c6ed)),_0x1f7b6a=new Map(_0x18b03f['map'](_0x28fb16=>[_0x28fb16,this['_suggestionFactory']['getSuggestionCallback'](_0x28fb16['type'],_0x28fb16['subType'],'chain')])),_0x56773b=new Map(_0x18b03f['map'](_0x5051b1=>[_0x5051b1,_0x5051b1['getFirstRange']()])),_0x396e73=new Set(),_0x1e9484=new Set();for(let _0x5bb098=0x0;_0x5bb098<_0x2b5912['length'];_0x5bb098++)_0x2461ce(_0x2b5912[_0x5bb098],_0x2b5912,_0x5bb098+0x1);for(let _0x4994d0=0x0;_0x4994d0<_0x2b5912['length'];_0x4994d0++)_0x2461ce(_0x2b5912[_0x4994d0],_0x31609,0x0);const _0x597037=new Set();for(let _0x32d728=0x0;_0x32d728<_0x2b5912['length'];_0x32d728++){const _0x2a68d2=_0x2b5912[_0x32d728];!_0x1e9484['has'](_0x2a68d2)&&_0x2a68d2['previous']&&(_0x597037['add'](_0x2a68d2['previous']),_0x2a68d2['previous']['next']===_0x2a68d2&&(_0x2a68d2['previous']['next']=null),_0x2a68d2['previous']=null),!_0x396e73['has'](_0x2a68d2)&&_0x2a68d2['next']&&(_0x597037['add'](_0x2a68d2['next']),_0x2a68d2['next']['previous']===_0x2a68d2&&(_0x2a68d2['next']['previous']=null),_0x2a68d2['next']=null);}function _0x2461ce(_0x8f4ee5,_0x2d5f09,_0x2407cd){for(let _0x4a5258=_0x2407cd;_0x4a5258<_0x2d5f09['length'];_0x4a5258++){const _0x5d83be=_0x3fc6f1(_0x8f4ee5,_0x2d5f09[_0x4a5258]);_0x5d83be&&(_0x5d83be[0x0]['next']=_0x5d83be[0x1],_0x5d83be[0x1]['previous']=_0x5d83be[0x0],_0x396e73['add'](_0x5d83be[0x0]),_0x1e9484['add'](_0x5d83be[0x1]));}}function _0x3fc6f1(_0x3af359,_0x423c4e){if(_0x3af359['author']['id']!==_0x423c4e['author']['id'])return null;const _0x28225a=_0x1f7b6a['get'](_0x3af359)(_0x3af359,_0x423c4e,_0x56773b['get'](_0x3af359),_0x56773b['get'](_0x423c4e));if(!_0x28225a)return null;return _0x1f7b6a['get'](_0x423c4e)(_0x3af359,_0x423c4e,_0x56773b['get'](_0x3af359),_0x56773b['get'](_0x423c4e))?_0x28225a[0x1]['commentThread']&&_0x28225a[0x1]['commentThread']['length']?null:_0x28225a:null;}_0x597037['size']&&this['_refreshSuggestionsChain'](_0x597037);}['_refreshAttributeSuggestionsChain'](_0x1e542d){if(0x0==_0x1e542d['length'])return;const _0x5e91f3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56cf58=>'attribute'==_0x56cf58['type']&&_0x56cf58['_isDataLoaded']),_0x5760da=[],_0x2e2bf8=new Map();for(const _0x22366a of _0x5e91f3){const _0x3e5c06=_0x52205a(_0x22366a['attributes']);_0x2e2bf8['has'](_0x3e5c06)||(_0x2e2bf8['set'](_0x3e5c06,_0x5760da['length']),_0x5760da['push']([]));const _0x258f31=_0x2e2bf8['get'](_0x3e5c06);_0x5760da[_0x258f31]['push'](_0x22366a);}!(function(){_0x5760da['sort']((_0x5453f1,_0x29fd07)=>{const _0x32993c=_0x5453f1[0x0]['createdAt'],_0x190799=_0x29fd07[0x0]['createdAt'];return _0x32993c==_0x190799?_0x5453f1[0x0]['attributes']['groupId']<_0x29fd07[0x0]['attributes']['groupId']?-0x1:0x1:_0x32993c<_0x190799?-0x1:0x1;});for(const _0x5f4601 of _0x5760da)_0x5f4601['sort']((_0x92aca0,_0x1758f3)=>_0x92aca0['id']<_0x1758f3['id']?-0x1:0x1);}());for(let _0x2a10fa=0x0;_0x2a10fa<_0x5760da['length'];_0x2a10fa++){if(0x0==_0x5760da[_0x2a10fa]['length'])continue;const _0x5a391b=[];for(let _0x1d068c=_0x2a10fa+0x1;_0x1d068c<_0x5760da['length'];_0x1d068c++)0x0!=_0x5760da[_0x1d068c]['length']&&_0xd40a69(_0x5760da[_0x2a10fa],_0x5760da[_0x1d068c])&&_0x5a391b['push'](_0x1d068c);for(const _0x5a01b2 of _0x5a391b)_0x5760da[_0x2a10fa]=_0x5760da[_0x2a10fa]['concat'](_0x5760da[_0x5a01b2]),_0x5760da[_0x5a01b2]=[];}for(const _0x37739c of _0x5760da)for(let _0x4ff8bb=0x0;_0x4ff8bb<_0x37739c['length'];_0x4ff8bb++){const _0x421005=_0x37739c[_0x4ff8bb+0x1]||null;_0x37739c[_0x4ff8bb]['next']!==_0x421005&&(_0x37739c[_0x4ff8bb]['next']=_0x421005);}for(const _0x522eca of _0x5760da)for(let _0x3e483c=0x0;_0x3e483c<_0x522eca['length'];_0x3e483c++){const _0x5e1561=_0x522eca[_0x3e483c-0x1]||null;_0x522eca[_0x3e483c]['previous']!==_0x5e1561&&(_0x522eca[_0x3e483c]['previous']=_0x5e1561);}function _0xd40a69(_0x134b6c,_0xa147d5){if(_0x134b6c[0x0]['attributes']['groupId']!==_0xa147d5[0x0]['attributes']['groupId']&&_0x134b6c[0x0]['author']!==_0xa147d5[0x0]['author'])return!0x1;if(!function(_0x65020,_0x258533){if(!_0x65020['hasComments']&&!_0x258533['hasComments'])return!0x0;if(_0x65020['hasComments']&&_0x258533['hasComments'])return!0x1;if(_0x65020['hasComments']&&_0x258533['createdAt']<_0x65020['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x258533['hasComments']&&_0x65020['createdAt']<_0x258533['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x134b6c[0x0],_0xa147d5[0x0]))return!0x1;const _0x589f64=Jt(_0x134b6c[0x0]['attributes'],['groupId','trackingSessionId']),_0x539775=Jt(_0xa147d5[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xa08205(_0x589f64,_0x539775))return!0x1;if(_0x134b6c[0x0]['attributes']['groupId']==_0xa147d5[0x0]['attributes']['groupId'])return!0x0;if(_0x134b6c[0x0]['attributes']['trackingSessionId']!==_0xa147d5[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x134b6c['every'](_0x3cbd56=>_0xa147d5['some'](_0x574450=>_0x3cbd56['getFirstRange']()['isEqual'](_0x574450['getFirstRange']())))&&_0xa147d5['every'](_0x1737e5=>_0x134b6c['some'](_0x4e913a=>_0x1737e5['getFirstRange']()['isEqual'](_0x4e913a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x582688){const _0x1243a4=Array['from'](_0x582688),_0x11ba0c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a10b3=_0x11ba0c['filter'](_0x237e35=>!_0x582688['has'](_0x237e35)),_0x1033c4=new Map(_0x1243a4['map'](_0x2ce4e9=>[_0x2ce4e9,this['_suggestionFactory']['getSuggestionCallback'](_0x2ce4e9['type'],_0x2ce4e9['subType'],'join')])),_0x427be2=new Map(_0x11ba0c['map'](_0x4c79bc=>[_0x4c79bc,_0x4c79bc['getRanges']()]));for(let _0x35d9c3=0x0;_0x35d9c3<_0x1243a4['length'];_0x35d9c3++){if(_0x4a613a(this,_0x1243a4[_0x35d9c3],_0x1243a4,_0x35d9c3+0x1))return!0x0;}for(let _0x1a4df9=0x0;_0x1a4df9<_0x1243a4['length'];_0x1a4df9++){if(_0x4a613a(this,_0x1243a4[_0x1a4df9],_0x5a10b3,0x0))return!0x0;}return!0x1;function _0x4a613a(_0x508dbb,_0x3bf27a,_0x153a4c,_0x43538d){for(let _0x375dd1=_0x43538d;_0x375dd1<_0x153a4c['length'];_0x375dd1++){const _0x51b31c=_0x153a4c[_0x375dd1];if(_0x51b31c['type']!==_0x3bf27a['type']||_0x51b31c['author']['id']!==_0x3bf27a['author']['id']||_0x51b31c['subType']!==_0x3bf27a['subType'])continue;if(!ne(_0x3bf27a,_0x51b31c))continue;if('attribute'==_0x3bf27a['type']&&_0x3bf27a['data']['oldValue']!=_0x51b31c['data']['oldValue'])continue;if('attribute'==_0x3bf27a['type']&&_0x508dbb['_isBlockAttribute'](_0x3bf27a['data']['key']))continue;if('formatBlock'==_0x3bf27a['type']){const _0x133f45=_0x508dbb['editor']['model'],_0x9b1709=_0x3bf27a['getContainedElement']();if(_0x9b1709&&(_0x133f45['schema']['isObject'](_0x9b1709)||_0x133f45['schema']['isLimit'](_0x9b1709)))continue;}const _0x207626=_0x1033c4['get'](_0x3bf27a),_0x4277ba=_0x427be2['get'](_0x3bf27a),_0x51c85e=_0x427be2['get'](_0x51b31c),_0x3ac9a3=_0x3bf27a['commentThread']&&_0x3bf27a['commentThread']['length'],_0x5b6598=_0x51b31c['commentThread']&&_0x51b31c['commentThread']['length'];if(!_0x3ac9a3&&_0x207626(_0x51c85e,_0x4277ba))return _0x508dbb['_joinSuggestions'](_0x51b31c,_0x3bf27a),_0x427be2['delete'](_0x3bf27a),!0x0;if(!_0x5b6598&&_0x207626(_0x4277ba,_0x51c85e))return _0x508dbb['_joinSuggestions'](_0x3bf27a,_0x51b31c),_0x427be2['delete'](_0x51b31c),!0x0;}return!0x1;}}['_joinSuggestions'](_0xe46d5a,_0x54cadc){if(_0xe46d5a['isMultiRange']){for(const _0x46694f of _0x54cadc['getRanges']())_0xe46d5a['addRange'](_0x46694f);}else{const _0x1cfe3a=_0x54cadc['getFirstRange']()['end'];this['_setSuggestionRange'](_0xe46d5a,this['_model']['createRange'](_0xe46d5a['getFirstRange']()['start'],_0x1cfe3a));}_0x54cadc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x726016,_0x4c4938,_0x4ca697){const _0x428a78=_0x726016['startsWith']('format')||_0x726016['startsWith']('attribute')?'FORMATTING':_0x726016['toUpperCase']();return o(this['editor']['locale'],_0x4c4938+'_'+_0x428a78+'_SUGGESTION_ANNOUNCEMENT',_0x4ca697);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e4e97=this['editor'];if(!_0x4e4e97['ui'])return;const {ariaLiveAnnouncer:_0x253916}=_0x4e4e97['ui'];_0x3fbe60(this['_model'],({left:_0x545ea2,entered:_0x4e0e35})=>{for(const _0x3cddc6 of _0x545ea2){const {group:_0x33e77e,type:_0x3e048f}=this['_splitMarkerName'](_0x3cddc6['name']);if('suggestion'===_0x33e77e){_0x253916['announce'](this['_getMarkerAnnouncementText'](_0x3e048f,'LEAVE'));break;}}for(const _0x370c7d of _0x4e0e35){const {group:_0x3d15ae,type:_0x9177f7}=this['_splitMarkerName'](_0x370c7d['name']);if('suggestion'===_0x3d15ae){_0x253916['announce'](this['_getMarkerAnnouncementText'](_0x9177f7,'ENTER',_0x14c4e4(_0x1675c5)));break;}}});}['_processAttributeChanges'](_0x235da8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x243eb0=this['editor'],_0x2a936d=_0x243eb0['model']['document']['differ']['getChanges']();if(0x0==_0x2a936d['length'])return!0x1;const _0x350fa7=[],_0x24f3bb=_0x2a936d['filter'](_0x32fabd=>'attribute'==_0x32fabd['type']),_0x24d2db=_0x2a936d['filter'](_0x1c911e=>'insert'==_0x1c911e['type']&&'$text'!=_0x1c911e['name']),_0x33f779=_0x2a936d['filter'](_0x523c54=>'remove'==_0x523c54['type']&&'$text'!=_0x523c54['name']);for(const _0x1b7b34 of _0x24f3bb)_0x350fa7['push']({'key':_0x1b7b34['attributeKey'],'newValue':_0x1b7b34['attributeNewValue'],'oldValue':_0x1b7b34['attributeOldValue'],'range':te(_0x1b7b34['range'],_0x243eb0['model'])});for(const _0x2c332d of _0x24d2db){const _0x436360=_0x33f779['find'](_0x738da7=>_0x738da7['position']['isEqual'](_0x2c332d['position']));_0x436360&&_0x350fa7['push']({'key':m,'newValue':_0x2c332d['name'],'oldValue':_0x436360['name'],'range':_0x243eb0['model']['createRangeOn'](_0x2c332d['position']['nodeAfter'])});}return 0x0!=_0x350fa7['length']&&this['_reduceExistingSuggestions'](_0x235da8,_0x350fa7);}['_processAttributeSuggestions'](_0xecb45b){let _0x3867e2=!0x1;const _0xde9d42=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x483547=>_0x483547['data']['newRange']&&_0x483547['name']['startsWith']('suggestion:attribute:'));for(const _0x2ce33e of _0xde9d42){const {subType:_0x5400bd,id:_0x54431a}=this['_splitMarkerName'](_0x2ce33e['name']),_0x4c34ed=_0x5400bd['split']('|')[0x0];for(const _0x5639a3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5639a3['id']!=_0x54431a&&'attribute'==_0x5639a3['type']&&_0x5639a3['data']&&_0x5639a3['data']['key']==_0x4c34ed&&_0x5639a3['getFirstRange']()['isIntersecting'](_0x2ce33e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5639a3,_0x2ce33e['data']['newRange'],_0xecb45b),_0x3867e2=!0x0);}return _0x3867e2;}['recordAttributeChanges'](_0x2717de){this['_recordAttributeSuggestions']=!0x0,_0x2717de();}['_isRegisteredAttribute'](_0x42aa9f){const _0x393f1b=this['_isBlockAttribute'](_0x42aa9f),_0x307140=this['_isInlineAttribute'](_0x42aa9f);return _0x393f1b||_0x307140;}['_reduceExistingSuggestions'](_0x4e4fdc,_0x273fef){if(0x0==_0x273fef['length'])return!0x1;let _0x23901d=!0x1;for(const _0x561bd3 of _0x273fef){const _0x15b564=this['_findSuggestions'](_0x561bd3['range'],'attribute')['filter'](_0x560d3e=>!_0x560d3e['meta']['isNextTo'])['map'](_0x4d229e=>_0x4d229e['suggestion']),_0x56cbf5=_0x52205a({'newValue':_0x561bd3['newValue']});_0x15b564['filter'](_0x2b2cef=>{const [_0x114739,_0x2763b6]=_0x2b2cef['subType']['split']('|');return _0x114739==_0x561bd3['key']&&_0x2763b6!=_0x56cbf5;})['forEach'](_0x1b7df0=>{this['_reduceSuggestionAttributeRange'](_0x1b7df0,_0x561bd3['range'],_0x4e4fdc),_0x23901d=!0x0;});}return _0x23901d;}['_reduceSuggestionAttributeRange'](_0x51d354,_0x2b4502,_0x313887){const _0x36ac2e=_0x51d354['getFirstRange']()['getDifference'](_0x2b4502);0x0!==_0x36ac2e['length']?0x1!==_0x36ac2e['length']?this['_breakSuggestionMarker'](_0x51d354,_0x2b4502['start'],_0x2b4502['end']):this['_setSuggestionRange'](_0x51d354,_0x36ac2e[0x0]):_0x313887['removeMarker'](_0x51d354['getFirstMarker']());}}class Kt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5aec5e){this['_editor']=_0x5aec5e,this['_model']=_0x5aec5e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a5982,_0x38403d,_0x4e403f,_0xf0e5dc,_0x2b5d33,_0x5012f8,_0x4855e8){return new R(this['_model'],{'type':_0x4a5982,'subType':_0x38403d,'id':_0x4e403f,'originalSuggestionId':_0x4855e8,'author':_0xf0e5dc,'creator':_0xf0e5dc,'attributes':_0x2b5d33,'onAttributesChange':_0x5012f8,'onAccept':(..._0x5256e2)=>this['getSuggestionCallback'](_0x4a5982,_0x38403d,'accept')(..._0x5256e2),'onDiscard':(..._0x2a8b08)=>this['getSuggestionCallback'](_0x4a5982,_0x38403d,'discard')(..._0x2a8b08)});}['registerCustomCallback'](_0x3c7872,_0x2da8a3,_0x3409c2,_0x96aca){const _0x2a0303=_0x3c7872+':'+_0x2da8a3+':'+_0x3409c2;this['_customCallbacks']['set'](_0x2a0303,_0x96aca);}['getSuggestionCallback'](_0x57eb0f,_0x4e9b50,_0x27b580){const _0x5073f9=_0x57eb0f+':'+_0x4e9b50+':'+_0x27b580;return this['_customCallbacks']['get'](_0x5073f9)||this['_defaultCallbacks']['get'](_0x57eb0f+':'+_0x27b580);}['_registerDefaultCallbacks'](){const _0x14a521=()=>!0x1,_0x2f9b9b=_0x4d5393=>{_0x4d5393['sort']((_0x294dd4,_0x54b4dc)=>_0x294dd4['start']['isBefore'](_0x54b4dc['start'])?0x1:-0x1),this['_model']['change'](_0x23049e=>{for(const _0x5402a3 of _0x4d5393){let _0x49a1e9;_0x49a1e9=_0x5402a3['end']['isAtEnd']&&_0x5402a3['end']['parent']==_0x5402a3['start']['nodeAfter']?_0x23049e['createSelection'](_0x5402a3['start']['nodeAfter'],'on'):_0x23049e['createSelection'](_0x5402a3),this['_model']['deleteContent'](_0x49a1e9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5dffa5=(_0x86e74a,_0xcd7b47)=>{_0xcd7b47&&this['_model']['change'](_0x8c81f5=>{const {commandName:_0x279bdf,commandParams:_0x162554=[]}=_0xcd7b47,_0xf1ae06=_0x86e74a['map'](_0x134a2e=>(Ht(_0x134a2e)&&(_0x134a2e=this['_model']['createRange'](_0x134a2e['end'])),_0x134a2e))['filter'](_0x3f5757=>'$graveyard'!==_0x3f5757['root']['rootName']);if(_0xf1ae06['length']<0x1)return;const _0xa50574=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f05c8=>_0x1c1121['fromRange'](_0x1f05c8));_0x8c81f5['setSelection'](_0xf1ae06);for(const _0x2e817e of this['_editor']['commands']['commands']())_0x2e817e['refresh']();_0x162554['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x279bdf,..._0x162554);const _0x12ce2d=_0xa50574['filter'](_0x502cbe=>'$graveyard'!=_0x502cbe['root']['rootName']);_0x12ce2d['length']>0x0&&_0x8c81f5['setSelection'](_0x12ce2d);for(const _0x3393f1 of _0xa50574)_0x3393f1['detach']();});},_0x8d898a=(_0x533809,_0xd47a1)=>0x1==_0x533809['length']&&0x1==_0xd47a1['length']&&_0x533809[0x0]['end']['isEqual'](_0xd47a1[0x0]['start']),_0x200ca9=(_0x47a12f,_0x30f2aa,_0x253297,_0x3a4dda)=>ie(_0x47a12f,_0x30f2aa,_0x253297,_0x3a4dda)?[_0x47a12f,_0x30f2aa]:ie(_0x30f2aa,_0x47a12f,_0x3a4dda,_0x253297)?[_0x30f2aa,_0x47a12f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x14a521),this['_defaultCallbacks']['set']('insertion:discard',_0x2f9b9b),this['_defaultCallbacks']['set']('insertion:join',_0x8d898a),this['_defaultCallbacks']['set']('insertion:chain',_0x200ca9),this['_defaultCallbacks']['set']('deletion:accept',_0x2f9b9b),this['_defaultCallbacks']['set']('deletion:discard',_0x14a521),this['_defaultCallbacks']['set']('deletion:join',_0x8d898a),this['_defaultCallbacks']['set']('deletion:chain',_0x200ca9),this['_defaultCallbacks']['set']('formatInline:accept',_0x5dffa5),this['_defaultCallbacks']['set']('formatInline:discard',_0x14a521),this['_defaultCallbacks']['set']('formatInline:join',_0x8d898a),this['_defaultCallbacks']['set']('formatInline:chain',_0x14a521),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5dffa5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x14a521),this['_defaultCallbacks']['set']('formatBlock:join',_0x8d898a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x14a521),this['_defaultCallbacks']['set']('attribute:accept',_0x14a521),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e5077,_0xa130e8)=>{if(!_0xa130e8)return;const _0x1be873=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1100b1=>{if(_0xa130e8['key']==m)for(const _0x22bfa0 of _0x3e5077){const _0x5ee259=_0x22bfa0['start']['nodeAfter'],_0x2e682d=_0xa130e8['oldValue'];_0x1100b1['rename'](_0x5ee259,_0x2e682d);}else{if(_0x1be873['_isBlockAttribute'](_0xa130e8['key'])){for(const _0x1cb797 of _0x3e5077)void 0x0!==_0xa130e8['oldValue']?_0x1100b1['setAttribute'](_0xa130e8['key'],_0xa130e8['oldValue'],_0x1cb797['start']['nodeAfter']):_0x1100b1['removeAttribute'](_0xa130e8['key'],_0x1cb797['start']['nodeAfter']);}else{for(const _0x337574 of _0x3e5077)_0xa130e8['oldValue']?_0x1100b1['setAttribute'](_0xa130e8['key'],_0xa130e8['oldValue'],_0x337574):_0x1100b1['removeAttribute'](_0xa130e8['key'],_0x337574);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x8d898a);}}function qt(_0x257f16,_0x38100a,_0x3c63c5){for(const _0x5b10a0 of _0x38100a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b10a0['root']==_0x5b10a0)return!0x1;if(!_0x3c63c5['containsItem'](_0x5b10a0))return!0x1;if(_0x257f16['isObject'](_0x5b10a0)||_0x257f16['isLimit'](_0x5b10a0))return!0x0;}return!0x1;}function Ht(_0x3ba70a){return _0x3ba70a['end']['parent']==_0x3ba70a['start']['nodeAfter']&&_0x3ba70a['end']['isAtStart'];}function Wt(_0x1af0a4,_0x36abbe,_0x1f48b0,_0x5d3d21){const _0x2a3b8e=_0x464e94=>!_0x464e94['item']['is']('$textProxy')&&!_0x5d3d21['isObject'](_0x464e94['item']),_0x3e84a6=_0x1af0a4['start']['getLastMatchingPosition'](_0x2a3b8e),_0x2a2f0a=_0x1af0a4['end']['getLastMatchingPosition'](_0x2a3b8e,{'direction':'backward'});return(!_0x1af0a4['start']['isEqual'](_0x3e84a6)||!_0x1af0a4['end']['isEqual'](_0x2a2f0a))&&(_0x3e84a6['isBefore'](_0x2a2f0a)?_0x1f48b0['updateMarker'](_0x36abbe,{'range':_0x1f48b0['createRange'](_0x3e84a6,_0x2a2f0a)}):_0x1f48b0['removeMarker'](_0x36abbe),!0x0);}function zt(_0x4f692b){return _0x52205a(_0x4f692b);}function Qt(_0x469a73){const _0x2feb4d=_0x469a73['start']['nodeAfter'];return _0x2feb4d&&_0x2feb4d['is']('element');}function Xt(_0x33c246){return Ht(_0x33c246)||function(_0x520fa5){return _0x520fa5['start']['parent']==_0x520fa5['end']['nodeBefore']&&_0x520fa5['start']['isAtEnd'];}(_0x33c246);}function Yt(_0x2daa2c,_0x2cf42b){try{const _0x14585b=_0x2daa2c['getRange']();for(const _0x416289 of _0x2cf42b)if(_0x2daa2c!==_0x416289&&_0x14585b&&_0x14585b['isIntersecting'](_0x416289['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x2613a6,_0x232d43){const _0x4a7c7e=_0x2613a6['end']['nodeBefore'];if(_0x4a7c7e&&_0x4a7c7e['is']('element')&&_0x232d43['schema']['isBlock'](_0x4a7c7e)&&!_0x232d43['schema']['isObject'](_0x4a7c7e)){const _0x2aefa4=_0x232d43['createPositionAt'](_0x4a7c7e,'end');return _0x232d43['createRange'](_0x2613a6['start'],_0x2aefa4);}return _0x2613a6;}function te(_0x520374,_0x54c00e){return null==_0x520374['end']['nodeBefore']&&_0x520374['end']['parent']==_0x520374['start']['nodeAfter']?ee(_0x520374['start']['nodeAfter'],_0x54c00e):_0x520374;}function ee(_0x3a81ca,_0x517698){const _0x11d18f=_0x517698['schema']['isObject'](_0x3a81ca)||_0x517698['schema']['isSelectable'](_0x3a81ca);return _0x517698['createRange'](_0x517698['createPositionAt'](_0x3a81ca,'before'),_0x11d18f?_0x517698['createPositionAfter'](_0x3a81ca):_0x517698['createPositionAt'](_0x3a81ca,'end'));}function ie(_0x497380,_0x597fdb,_0x6009a0,_0x4c2dde){return!!ne(_0x497380,_0x597fdb)&&_0x6009a0['end']['isEqual'](_0x4c2dde['start']);}function ne(_0x2b0d89,_0x3585da){if(!_0x2b0d89['_isDataLoaded']||!_0x3585da['_isDataLoaded'])return!0x1;const _0x304635=new Set(Object['keys'](_0x2b0d89['attributes'])),_0x974a=new Set(Object['keys'](_0x3585da['attributes']));if(_0x304635['delete']('groupId'),_0x974a['delete']('groupId'),0x0==_0x304635['size']&&0x0==_0x974a['size'])return!0x0;if(_0x304635['size']!=_0x974a['size'])return!0x1;const _0x39a84d={..._0x2b0d89['attributes']},_0x2e5652={..._0x3585da['attributes']};return delete _0x39a84d['groupId'],delete _0x2e5652['groupId'],JSON['stringify'](_0x39a84d)==JSON['stringify'](_0x2e5652);}function se(_0x22f47f,_0x1037d3){const _0x24e2ef=oe(_0x22f47f['attributes']),_0x886156=oe(_0x1037d3);if(!_0x22f47f['_isDataLoaded'])return!0x1;for(const _0x4125a3 of Object['keys'](_0x886156))if(!_0xa08205(_0x24e2ef[_0x4125a3],_0x886156[_0x4125a3]))return!0x1;return!0x0;}function oe(_0x497822){const _0x26fd35=Object['assign']({},_0x497822);return delete _0x26fd35['skipNestingCheck'],delete _0x26fd35['tablePasteChainId'],_0x26fd35;}function re(_0x553936){return _0x553936['split']('|')[0x0];}function ae(_0x4bf264,_0x2004c4){for(const [_0x3852bb,_0xb56cd4]of _0x4bf264['markers']){const _0x339bf6=_0x22f94c['_createFromRanges'](_0xb56cd4['getTransformedByOperation'](_0x2004c4));_0x4bf264['markers']['set'](_0x3852bb,_0x339bf6);}}class ve extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x345606(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40aca2,_0x4a10f1,_0x3838c7,_0x2e7492){super(),this['model']=_0x4a10f1,this['view']=_0x3838c7,this['commentThreadController']=_0x2e7492,this['_editor']=_0x40aca2,this['_acceptCommand']=_0x40aca2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40aca2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a4645,_0x29dc2b)=>_0x2a4645||_0x29dc2b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5194a8=>_0x5194a8&&this['_editor']['model']['canEditAt'](_0x4a10f1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x21a33a=>_0x21a33a&&this['_editor']['model']['canEditAt'](_0x4a10f1['getRanges']())),this['_pendingAction']=null,_0x3838c7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3838c7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3838c7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3838c7,'change:isDirty',()=>{_0x3838c7['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 _0x29b471=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x29b471);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x13b63f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50a29f,_0x845cbc,_0x39d098,_0x5e59d6){super(_0x50a29f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5db02c(_0x50a29f,o(_0x50a29f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x845cbc['authoredAt']),this['bind']('authoredAt')['to'](_0x845cbc),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',_0x845cbc,'authoredAt',this,'descriptionParts',(_0x2bd68b,_0x313cd2,_0x4c9a0f)=>{const _0x1b4c58=_0x4c9a0f['map'](_0x3e524f=>ls(_0x3e524f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2bd68b-0x1,_0x845cbc['author']['name'],_0x313cd2?_0x5e59d6['formatDateTime'](_0x313cd2):'',new DOMParser()['parseFromString'](_0x1b4c58,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1a0be8(),this['focusTracker']=new _0x5b48c5(),this['keystrokes']=new _0x285187(),this['focusCycler']=new _0x589ddc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4da980=>_0x4da980['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x845cbc,this['_localUser']=_0x39d098,this['_config']=_0x5e59d6,_0x5e59d6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x30c882(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2182b3}=this['_config'];this['commentsListView']=new _0x2182b3(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',_0x261ecd=>_0x261ecd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1aa467,_0x53f17e)=>_0x1aa467||!!_0x53f17e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x31bfd9}=this['_config'],_0x12b7a4=new _0x31bfd9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x179e8d=_0x12b7a4['commentInputView'];return _0x12b7a4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x179e8d,'value',(_0x32741d,_0x583a49,_0x4ff286)=>!!_0x4ff286||_0x32741d&&!_0x583a49),_0x179e8d['on']('submit',(_0xa994b0,_0xaa400e)=>{this['fire']('addComment',_0xaa400e),_0x179e8d['editor']['setData']('');}),_0x179e8d['on']('cancel',()=>this['focus']()),_0x179e8d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x12b7a4;}}class xe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x374449,_0x3dd229,_0x461cb8,_0x3d2fda){super(_0x374449,_0x3dd229,_0x461cb8,_0x3d2fda),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x50f040=>_0x50f040&&_0x50f040[0x0]?_0x50f040[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x29f749,_0x121546)=>{let _0x4f5ea2='';for(const _0x296280 of _0x29f749)_0x4f5ea2+='<p>'+ls(_0x296280['content'],_0x296280['color'])+'</p>';return _0x121546?_0x4f5ea2:_0x4877fc(_0x4f5ea2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3d2fda['SuggestionView'](_0x374449,_0x3dd229,{'formatDateTime':_0x3d2fda['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 _0x9af942=this['bindTemplate'],_0x1ca2ae=[this['suggestionView']];return this['commentsListView']&&_0x1ca2ae['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1ca2ae['push'](this['commentThreadInputView']),_0x1ca2ae['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x9af942['if']('isActive','ck-suggestion-wrapper--active'),_0x9af942['to']('type',_0x3b7fc4=>'ck-suggestion-'+_0x3b7fc4),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':_0x9af942['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1ca2ae};}['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 Ae extends _0x13b63f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3a3a73,_0x55b324,_0x45307c){super(_0x3a3a73),this['_model']=_0x55b324,this['_config']=_0x45307c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x55b324),this['acceptButton']=this['_createButton'](o(_0x3a3a73,'Accept\x20suggestion'),_0x803c3d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3a3a73,'Discard\x20suggestion'),_0x4a9841,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x37afaf(_0x3a3a73,_0x55b324['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1a0be8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5b48c5(),this['keystrokes']=new _0x285187(),this['focusCycler']=new _0x589ddc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x24d79f=>_0x24d79f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x9e8edb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x9e8edb['innerHTML']=this['description'],this['on']('change:description',(_0x3c4e92,_0x110674,_0x5773d3)=>{_0x9e8edb['innerHTML']=_0x5773d3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3ef415=this['bindTemplate'],_0x22438f=[{'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':_0x3ef415['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ef415['to']('authoredAt',_0xb12f41=>this['_config']['formatDateTime'](_0xb12f41))}]}]},{'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']&&_0x22438f['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':_0x22438f}]};}['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'](_0x33e49a,_0x42266f,_0x2074d6,_0x59e893,_0x2b58c8){const _0x69f07a=new _0x374b26(this['locale']);return _0x69f07a['set']({'label':_0x33e49a,'icon':_0x42266f,'tooltip':!0x0,'tooltipPosition':_0x2b58c8}),_0x69f07a['extendTemplate']({'attributes':{'class':_0x2074d6}}),_0x69f07a['on']('execute',()=>{this['fire'](_0x59e893,this['_model']['id']);}),_0x69f07a;}['_setupKeyboardNavigation'](){const _0x5cd754=this['element'];this['keystrokes']['listenTo'](_0x5cd754);for(const _0xf07a2c of this['focusables'])this['focusTracker']['add'](_0xf07a2c['element']),this['keystrokes']['listenTo'](_0xf07a2c['element']);this['keystrokes']['set']('enter',(_0x1414d6,_0xecd90e)=>{_0x5cd754===_0x1414d6['target']&&(this['focusCycler']['focusFirst'](),_0xecd90e());}),this['keystrokes']['set']('esc',(_0x104333,_0x1cbf56)=>{_0x5cd754!==_0x104333['target']&&(this['focus'](),_0x1cbf56());});}}class u extends _0x555e71{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x15dc59,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3345f4){super(_0x3345f4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3fee62=this['editor']['config'];_0x3fee62['define']('trackChanges.SuggestionThreadView',xe),_0x3fee62['define']('trackChanges.SuggestionView',Ae),_0x3fee62['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3fee62['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x33cfd1,_0x2281af){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x27276f,_0x4fa721]of this['_handleControllerBuffer']){const _0x13333a=this['_suggestionToController']['has'](_0x27276f);_0x13333a||_0x4fa721?_0x13333a&&_0x4fa721&&this['_destroyController'](_0x27276f):this['_initializeController'](_0x27276f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x33cfd1,_0x2281af);}['init'](){const _0x2d8746=this['editor'],_0x54356f=_0x2d8746['plugins']['get']('TrackChangesEditing'),_0x10131c=_0x2d8746['plugins']['get']('Annotations'),_0x17d6d2=_0x2d8746['plugins']['get']('EditorAnnotations'),_0x5e27ec=_0x2d8746['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x17d6d2['addSourceCollector'](()=>{const _0xaca00c=[];for(const [_0x56978f,_0x2f432f]of Array['from'](this['_suggestionToController'])){const _0x201733=_0x56978f['getAllAdjacentSuggestions'](),_0x4ffde6=[];for(const _0x34e239 of _0x201733){if(!_0x34e239['isInContent'])continue;if(_0x34e239['isMultiRange']){_0x4ffde6['push'](..._0x34e239['getRanges']());continue;}const _0x3abe54=_0x34e239['getFirstRange']();if(_0x4ffde6['length']>0x0){const _0xf4d415=_0x4ffde6[0x0]['getJoined'](_0x3abe54);if(_0xf4d415){_0x4ffde6[0x0]=_0xf4d415;continue;}}_0x4ffde6['push'](_0x3abe54);}_0xaca00c['push']([_0x2f432f['view'],_0x4ffde6]);}return _0xaca00c;}),this['listenTo'](_0x54356f,'suggestionLoaded',(_0x47efa0,_0x31a461)=>{this['listenTo'](_0x31a461,'change:previous',(_0x118767,_0x6fafd6,_0x2b5bc7,_0x1e7238)=>{_0x31a461['isInContent']&&(null==_0x2b5bc7?(this['_updateController'](_0x1e7238['head']),this['_handleSuggestionControllerDelayed'](_0x31a461,!0x1)):(this['_updateController'](_0x2b5bc7['head']),null==_0x1e7238&&this['_handleSuggestionControllerDelayed'](_0x31a461,!0x0)));}),null!==_0x31a461['previous']?this['_updateController'](_0x31a461['head']):this['_handleSuggestionControllerDelayed'](_0x31a461,!0x1);}),this['listenTo'](_0x54356f,'suggestionUnloaded',(_0x416fe6,_0x30f2ff,_0x38cf12)=>{this['stopListening'](_0x30f2ff,'change:previous'),this['_handleControllerBuffer']['delete'](_0x30f2ff),this['_suggestionToController']['has'](_0x30f2ff)&&this['_destroyController'](_0x30f2ff),_0x38cf12&&this['_updateController'](_0x38cf12['head']);}),this['listenTo'](_0x54356f,'suggestionChanged',(_0xf48e71,_0x4a5256)=>{this['_updateController'](_0x4a5256);}),this['listenTo'](_0x10131c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5e27ec,'addComment',(_0x290854,{threadId:_0x198248,isFromAdapter:_0x25d9a6})=>{if(_0x25d9a6||!_0x54356f['hasSuggestion'](_0x198248))return;const _0x661942=_0x54356f['getSuggestion'](_0x198248);this['_suggestionToController']['get'](_0x661942)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48b673=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x374dd4;for(const _0x467bb3 in _0x48b673){const _0x413df2=_0x467bb3,_0x542a90=_0x48b673[_0x413df2];if('trackChangesLicenseKeyValid'==_0x542a90||'trackChangesLicenseKeyInvalid'==_0x542a90||'trackChangesLicenseKeyExpired'==_0x542a90||'trackChangesLicenseKeyDomainLimit'==_0x542a90||'trackChangesLicenseKeyNotAllowed'==_0x542a90||'trackChangesLicenseKeyEvaluationLimit'==_0x542a90||'trackChangesLicenseKeyTrialLimit'==_0x542a90||'trackChangesLicenseKeyUsageLimit'==_0x542a90){delete _0x48b673[_0x413df2],_0x374dd4=_0x542a90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x374dd4&&_0x48b673['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x374dd4&&_0x48b673['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x374dd4&&_0x48b673['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x374dd4&&_0x48b673['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x374dd4&&_0x48b673['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x374dd4&&_0x48b673['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x374dd4&&_0x48b673['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3eacf4){const _0x584387=this['_suggestionToController']['get'](_0x3eacf4);if(!_0x584387)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x584387['view'])||null;}['getSuggestionForAnnotation'](_0x3dea9d){const _0x48880b=this['_viewToController']['get'](_0x3dea9d['innerView']);return _0x48880b?_0x48880b['model']:null;}['_refreshActiveMarkers'](){const _0x43d8e5=this['editor']['plugins']['get']('Annotations'),_0x5f5999=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53b242=Array['from'](_0x43d8e5['activeAnnotations'],_0x31c8a0=>_0x31c8a0['innerView'])['filter'](_0x4afd96=>this['_viewToController']['has'](_0x4afd96)),_0x2190ae=[];for(const _0x37bb66 of _0x53b242){const _0x3bbd61=this['_viewToController']['get'](_0x37bb66)['model']['getAllAdjacentSuggestions']();_0x2190ae['push'](..._0x3bbd61['reduce']((_0x4ae76b,_0x341447)=>[..._0x4ae76b,..._0x341447['getMarkerNames']()],[]));}_0x5f5999['activeMarkers']=_0x2190ae;}['_addUIComponentsToFactory'](){const _0xeb42e2=this['editor'],_0x51b9e5=_0xeb42e2['locale'],_0x3d6269=o(_0x51b9e5,'Track\x20changes'),_0x3bbc36=new _0x59e832([{'type':'switchbutton','model':new _0x5c6ee1({'withText':!0x0,'isToggleable':!0x0,'label':_0x3d6269,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xeb42e2['plugins']['has']('TrackChangesPreview')&&_0x3bbc36['addMany']([{'type':'separator'},{'type':'button','model':new _0x5c6ee1({'withText':!0x0,'label':o(_0x51b9e5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x16334d of _0x3bbc36)if(Ee(_0x16334d)){const _0x1e1ea4=_0xeb42e2['commands']['get'](_0x16334d['model']['commandName']);_0x16334d['model']['bind']('isOn','isEnabled')['to'](_0x1e1ea4,'value','isEnabled');}_0xeb42e2['ui']['componentFactory']['add']('trackChanges',_0x624062=>this['_createToolbarButton'](_0x624062,_0x3bbc36,_0x3d6269)),_0xeb42e2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x31cef9=>this['_createMenuBarMenu'](_0x31cef9,_0x3bbc36,_0x3d6269));}['_createToolbarButton'](_0x19a413,_0x14c368,_0xb44c4d){const _0x388d9c=_0x4f16a1(_0x19a413,_0x13fcb5),_0x14b874=this['editor']['commands']['get']('trackChanges');_0x388d9c['buttonView']['set']({'tooltip':_0xb44c4d,'label':_0xb44c4d,'icon':_0x2616a4}),_0x388d9c['buttonView']['bind']('isOn')['to'](_0x14b874,'value'),_0x388d9c['buttonView']['on']('execute',()=>{_0x14b874['execute'](),this['editor']['editing']['view']['focus']();}),_0x330c94(_0x388d9c,_0x14c368,{'role':'menu'});const _0x1d98c1=[];for(const _0xf85096 of _0x14c368)Ee(_0xf85096)&&_0x1d98c1['push'](this['editor']['commands']['get'](_0xf85096['model']['commandName']));const _0x328327=_0x388d9c['buttonView'];return _0x328327['actionView']['unbind']('isEnabled'),_0x328327['arrowView']['unbind']('isEnabled'),_0x328327['actionView']['bind']('isEnabled')['to'](_0x14b874,'isEnabled'),_0x328327['arrowView']['bind']('isEnabled')['toMany'](_0x1d98c1,'isEnabled',(..._0x1ef46a)=>_0x1ef46a['some'](_0xe87570=>_0xe87570)),_0x388d9c['on']('execute',_0x19658e=>{this['editor']['execute'](_0x19658e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x388d9c;}['_createMenuBarMenu'](_0x3c490d,_0x43a36a,_0x17713a){const _0x22d99f=new _0x13676d(_0x3c490d),_0x46ba6b=this['editor']['commands']['get']('trackChanges');_0x22d99f['buttonView']['set']({'label':_0x17713a,'icon':_0x2616a4});const _0x35c498=new _0x3e8c93(_0x3c490d);for(const _0x1a4991 of _0x43a36a){if('separator'==_0x1a4991['type']){_0x35c498['items']['add'](new _0x4296e3(_0x3c490d));continue;}const _0x241e30=new _0x15fe20(_0x3c490d,_0x22d99f),_0x3d1922=new _0x471059(_0x3c490d),_0x4693ca=_0x1a4991['model'];_0x3d1922['bind'](...Object['keys'](_0x4693ca))['to'](_0x4693ca),_0x3d1922['delegate']('execute')['to'](_0x22d99f),_0x3d1922['on']('execute',()=>{this['editor']['execute'](_0x4693ca['commandName']),this['editor']['editing']['view']['focus']();}),_0x241e30['children']['add'](_0x3d1922),_0x35c498['items']['add'](_0x241e30);}return _0x22d99f['bind']('isEnabled')['to'](_0x46ba6b,'isEnabled'),_0x22d99f['panelView']['children']['add'](_0x35c498),_0x22d99f;}['_initializeController'](_0xe7307c){const _0x3be427=this['editor'],_0xd4e7d=_0x3be427['config'],_0x127072=_0x3be427['plugins']['get']('Annotations'),_0x18d348=_0x3be427['plugins']['get']('CommentsRepository'),_0x554788=_0x3be427['plugins']['get']('EditorAnnotations'),_0x27bdbe=_0x3be427['plugins']['get'](_0x15dc59)['me'],_0x432fce=_0xd4e7d['get']('trackChanges')['SuggestionThreadView'],_0x2e6757=_0xd4e7d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4cace0,CommentThreadInputView:_0x1e95b6}=_0x3be427['plugins']['get']('CommentsUI');let _0x418cf5,_0x1ea39a,_0x8dc319;this['_annotationViews']['has'](_0xe7307c['id'])?(_0x1ea39a=this['_annotationViews']['get'](_0xe7307c['id']),_0x418cf5=_0x1ea39a['mainView']):(_0x418cf5=new _0x432fce(_0x3be427['locale'],_0xe7307c,_0x27bdbe,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd4e7d['get']('comments.editorConfig'),'licenseKey':_0xd4e7d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd4e7d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd4e7d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd4e7d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e1c18(_0xd4e7d['get']('locale'),_0x3be427['locale']),'CommentView':_0xd4e7d['get']('comments')['CommentView'],'CommentsListView':_0x4cace0,'CommentThreadInputView':_0x1e95b6,'SuggestionView':_0x2e6757}),_0x418cf5['suggestionView']['acceptButton']['on']('execute',()=>{_0x3be427['editing']['view']['focus']();}),_0x418cf5['suggestionView']['discardButton']['on']('execute',()=>{_0x3be427['editing']['view']['focus']();}),_0x1ea39a=_0x127072['createAnnotationView'](this['editor']['locale'],_0x418cf5),_0x1ea39a['bind']('isDirty')['to'](_0x418cf5,'isDirty'),_0x1ea39a['bind']('length')['to'](_0x418cf5),_0x1ea39a['bind']('type')['to'](_0x418cf5,'type',_0x447d4d=>'suggestion-'+_0x447d4d),_0x418cf5['on']('escape',()=>{_0x8dc319['fire']('escape');}),this['_annotationViews']['set'](_0xe7307c['id'],_0x1ea39a));const _0x59eb29=_0x18d348['createCommentThreadController'](_0xe7307c['commentThread'],_0x418cf5),_0x594db3=new ve(_0x3be427,_0xe7307c,_0x418cf5,_0x59eb29),_0xf86b9f=_0xe7307c['getAllAdjacentSuggestions']()['filter'](_0x508738=>_0x508738['isInContent']);_0x418cf5['descriptionParts']=_0x3be427['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xf86b9f),this['_suggestionToController']['set'](_0xe7307c,_0x594db3),this['_viewToController']['set'](_0x418cf5,_0x594db3);const _0x26fb43=()=>{const _0x57869c=[],_0x56196b=_0xe7307c['getAllAdjacentSuggestions']()['filter'](_0x2a8639=>_0x2a8639['isInContent']);for(const _0x62436b of _0x56196b)_0x57869c['push'](..._0x62436b['getMarkers']());return _0x298588(_0x3be427['editing'],_0x57869c);};_0x8dc319=_0x127072['createAnnotation']({'view':_0x1ea39a,'target':_0x26fb43,'type':()=>'suggestion-'+_0x594db3['view']['type'],'isVisible':!!_0x26fb43()}),_0x18d348['_bindAnnotationToEditors'](_0x418cf5,_0x8dc319),_0x127072['add'](_0x8dc319),_0x554788['registerAnnotation'](_0x8dc319);}['_destroyController'](_0x3703ed){const _0x27c2b6=this['editor']['plugins']['get']('CommentsRepository'),_0x306aa4=this['editor']['plugins']['get']('Annotations'),_0x426ba2=this['_suggestionToController']['get'](_0x3703ed),_0x1d81b6=_0x426ba2['view'],_0x3df3d0=_0x306aa4['getByInnerView'](_0x1d81b6);_0x27c2b6['_unbindEditors'](_0x1d81b6),_0x3df3d0&&_0x306aa4['remove'](_0x3df3d0),this['_suggestionToController']['delete'](_0x3703ed),this['_viewToController']['delete'](_0x1d81b6),_0x426ba2['destroy']();}['_updateController'](_0x50a448){if(!_0x50a448['isInContent']||!this['_suggestionToController']['has'](_0x50a448))return;const _0x13bd8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22556e=this['_suggestionToController']['get'](_0x50a448),_0x22494a=_0x50a448['getAllAdjacentSuggestions']();_0x22556e['view']['descriptionParts']=_0x13bd8a['descriptionFactory']['getDescriptions'](_0x22494a);}['destroy'](){for(const _0x57e05b of this['_suggestionToController']['keys']())this['_destroyController'](_0x57e05b);for(const _0x2be7a5 of this['_annotationViews']['values']())_0x2be7a5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Ee(_0x3a848f){return'model'in _0x3a848f;}class Ke extends _0x555e71{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2dbcc8){this['editor']['plugins']['get'](d)['adapter']=_0x2dbcc8;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4d7839){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4d7839);}['getSuggestions']({skipNotAttached:_0x24f7dd=!0x1,toJSON:_0x380581=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x24f7dd,'toJSON':_0x380581});}['getSuggestion'](_0x13bbce){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x13bbce);}}const p=['Pagination'];class me extends _0x555e71{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x868d08=this['editor'];if(_0x868d08['config']['define']('trackChangesData.editorCreator',_0x1a3d15=>{const _0x1582c8=_0x868d08['model']['document']['getRootNames']()['reduce']((_0x4af4c8,_0x197e40)=>(_0x4af4c8[_0x197e40]='',_0x4af4c8),{});return _0x868d08['constructor']['create'](_0x1582c8,_0x1a3d15);}),'function'!=typeof _0x868d08['config']['get']('trackChangesData')['editorCreator'])throw new _0x5258bf('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2c1943){return P(this['editor'],!0x0,_0x2c1943);}['getDataWithDiscardedSuggestions'](_0x271a65){return P(this['editor'],!0x1,_0x271a65);}}class Xe extends _0x555e71{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37a22b){function _0x3ac9a1(_0x3e51e4){return _0x3e51e4['map'](_0x1ca8a5=>String['fromCharCode'](_0x1ca8a5))['join']('');}super(_0x37a22b),this['result']='end',_0x37a22b[_0x3ac9a1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ac9a1([0x76,0x69,0x65,0x77])][_0x3ac9a1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ac9a1([0x61,0x75,0x74,0x6f]),_0x37a22b[_0x3ac9a1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3ac9a1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ac9a1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3ac9a1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3ac9a1([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 Ye(_0x145bd9){return void 0x0!==_0x145bd9['getRootsAttributes'];}async function P(_0x21cffc,_0xbc9f9a,_0x42ea86){const _0x5bd353=_0x2d4845(_0x21cffc,p);_0x5bd353['plugins']['push'](d,Xe),_0x5bd353['rootsAttributes']=Ye(_0x21cffc)?_0x21cffc['getRootsAttributes']():void 0x0;const _0x375bd8=document['createDocumentFragment'](),_0x1d594d=_0x21cffc['config']['get']('trackChangesData')['editorCreator'],_0x158325=await _0x1d594d(_0x5bd353,()=>function(_0x25c3da){const _0xee7df1=document['createElement']('div');return _0x25c3da['appendChild'](_0xee7df1),_0xee7df1;}(_0x375bd8));!function(_0x288a3a,_0x1838d0){const _0x18a1ac=_0x288a3a['model']['document']['getRootNames']()['reduce']((_0x182cee,_0x3f2824)=>(_0x182cee[_0x3f2824]=_0x288a3a['data']['get']({'rootName':_0x3f2824}),_0x182cee),{}),_0x4f6667=_0x288a3a['plugins']['get']('Users')['users']['map'](_0x2abab7=>({'id':_0x2abab7['id'],'name':_0x2abab7['name']})),_0x375c61=_0x288a3a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3656d2=_0x288a3a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4cab29=_0x1838d0['plugins']['get']('Users'),_0x3f6680=_0x1838d0['plugins']['get']('TrackChangesEditing'),_0x573e5d=_0x1838d0['plugins']['get']('CommentsRepository');for(const _0x3e807a of _0x573e5d['getCommentThreads']())_0x3e807a['remove']();for(const _0x4ddf8d of _0x4f6667)_0x4cab29['getUser'](_0x4ddf8d['id'])||_0x4cab29['addUser'](_0x4ddf8d);_0x4cab29['me']||_0x4cab29['useAnonymousUser']();for(const _0x5ebe58 of _0x3656d2)_0x573e5d['addCommentThread'](_0x5ebe58);for(const _0x1165c9 of _0x375c61)_0x3f6680['addSuggestionData'](_0x1165c9);_0x1838d0['data']['set'](_0x18a1ac);}(_0x21cffc,_0x158325),_0x158325['execute'](_0xbc9f9a?'acceptAllSuggestions':'discardAllSuggestions');const _0x3060d1=Ye(_0x158325)?_0x158325['getFullData'](_0x42ea86):_0x158325['data']['get'](_0x42ea86);return await _0x158325['destroy'](),_0x3060d1;}class _e extends _0x13b63f{['options'];constructor(_0x38a011,_0x2cf0da){super(_0x38a011),this['options']=_0x2cf0da,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'](_0x406f6e,_0x2789f9){if(!this['element'])return;const _0xcc03c4=[];for(const [_0x41419e,_0x58a313]of _0x406f6e){const _0x235af8=document['createElement']('div');_0x235af8['setAttribute']('data-ck-root-name',_0x41419e),_0x235af8['className']=_0x58a313['classes']+'\x20ck-track-changes-preview__root-container',_0x235af8['innerHTML']=_0x58a313['content'],_0xcc03c4['push'](_0x235af8);}_0x2789f9(this['element'],_0xcc03c4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class ue extends _0x1e6711{constructor(_0x1210b2){super(_0x1210b2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3e09fd=this['editor'],_0x9a84d5=_0x3e09fd['locale'],_0x5c5e34=_0x3e09fd['plugins']['get']('Dialog');let _0x5c50c7;const _0x5bffdd=function(_0x148244){const _0x48ba75={};if('editables'in _0x148244['ui']['view']){for(const [_0x38a41d,_0x51b2e5]of Object['entries'](_0x148244['ui']['view']['editables']))_0x48ba75[_0x38a41d]=_0x51b2e5['element'];}else _0x48ba75[_0x148244['model']['document']['getRootNames']()[0x0]]=_0x148244['ui']['view']['editable']['element'];return _0x48ba75;}(_0x3e09fd),_0x3f0b9c=function(_0x5e03c6){let _0x253e14=0x0;for(const _0x1640ad of Object['values'](_0x5e03c6))_0x253e14=Math['max'](_0x253e14,_0x1640ad['getBoundingClientRect']()['width']);let _0x3bd90f=0x0;for(const _0x430553 of Object['values'](_0x5e03c6))_0x3bd90f+=_0x430553['getBoundingClientRect']()['height'];const _0x2f5c03=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x542149=Math['min'](_0x3bd90f,_0x2f5c03);return{'width':_0x253e14,'height':_0x542149};}(_0x5bffdd);_0x5c5e34['show']({'id':'finalContentPreview','title':o(_0x9a84d5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new _e(_0x9a84d5,{'dialogRects':_0x3f0b9c}),'onHide':()=>{_0x5c50c7['detachFromDom']();},'onShow':()=>{_0x3e09fd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x17474b=>{const _0x4e5eed=this['_standarizeRootsData'](_0x17474b,_0x3e09fd,_0x5bffdd);_0x5c5e34['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4e5eed,_0x3e09fd['config']['get']('trackChanges.preview.renderFunction'));}),_0x5c50c7=new _0x1cd27e(_0x9a84d5,[_0x5c5e34['view']]),_0x5c50c7['attachToDom'](),_0x5c50c7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3e09fd['once']('destroy',()=>{_0x5c50c7['detachFromDom']();});const _0x3c0516=_0x5c5e34['view']['headerView']['class'];_0x5c5e34['view']['headerView']['class']=_0x3c0516?_0x3c0516+'\x20ck-reset_all':'ck-reset_all',_0x5c5e34['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5c5e34['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3abdba=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5743ec=_0x3abdba['previewMode'],_0x530f93={};if('$labels'===_0x5743ec){for(const _0x47aa74 of _0x3abdba['getMergeFieldsIds']())_0x530f93[_0x47aa74]=_0x3abdba['getLabel'](_0x47aa74)||_0x47aa74;}else{const _0x653bf='$defaultValues'===_0x5743ec?_0x3abdba['getDefaultValues']():_0x3abdba['getDataSetValues'](_0x5743ec,!0x0);for(const _0x41430d of Object['entries'](_0x653bf)){const [_0x3afc94,_0x410db4]=_0x41430d;_0x530f93[_0x3afc94]=null!==_0x410db4?_0x410db4:_0x3abdba['getLabel'](_0x3afc94)||_0x3afc94;}}return{'mergeFieldsData':_0x530f93};}['_standarizeRootsData'](_0xd87fa7,_0x993ab1,_0x4adbf8){let _0x23dc11;if('string'==typeof _0xd87fa7){const _0x26fbe8=_0x993ab1['model']['document']['getRootNames']()[0x0];_0x23dc11={[_0x26fbe8]:_0xd87fa7};}else _0x23dc11=_0xd87fa7;const _0x4d8096=this['_fixMediaEmbeds'](_0x23dc11,_0x993ab1),_0x237a99=function(_0x45d533,_0x40c43e){for(const [_0x1b3a2f,_0x497db0]of _0x45d533)_0x497db0['classes']=_0x40c43e[_0x1b3a2f]['classList']['value']['replace']('ck-focused','');return _0x45d533;}(this['_sortRoots'](_0x993ab1)['reduce']((_0x5f07bc,_0x8d108d)=>(_0x5f07bc['push']([_0x8d108d,{'content':_0x4d8096[_0x8d108d],'classes':''}]),_0x5f07bc),[]),_0x4adbf8);return _0x237a99;}['_fixMediaEmbeds'](_0x521b34,_0x4a928a){if(!_0x4a928a['plugins']['has']('MediaEmbedEditing'))return _0x521b34;const _0x5ee4fa=_0x4a928a['plugins']['get']('MediaEmbedEditing');for(const [_0x86a1dd,_0x5db01d]of Object['entries'](_0x521b34)){const _0x33cfe9=document['createElement']('div');_0x33cfe9['innerHTML']=_0x5db01d,(_0x33cfe9['querySelectorAll']('figure.media')['forEach'](_0x1e5dc8=>{const _0xffc8fa=_0x1e5dc8['querySelector']('oembed');if(_0xffc8fa){const _0xe47f38=_0xffc8fa['getAttribute']('url');if(_0xe47f38){const _0x1d3628=_0x5ee4fa['registry']['getMediaViewElement'](new _0x165b75(_0x4a928a['editing']['view']['document']),_0xe47f38,{'elementName':'','renderForEditingView':!0x0}),_0x57d7e6=document['createElement']('div');_0x57d7e6['classList']['add']('ck-media__wrapper'),_0x1d3628['render'](_0x57d7e6,_0x4a928a['editing']['view']['domConverter']),_0xffc8fa['replaceWith'](_0x57d7e6);}}}),_0x521b34[_0x86a1dd]=_0x33cfe9['innerHTML']);}return _0x521b34;}['_sortRoots'](_0x79161){if(!function(_0x46f73e){return void 0x0!==_0x46f73e['getRootsAttributes'];}(_0x79161))return _0x79161['model']['document']['getRootNames']();const _0x49b8b8=[],_0x547d01=new Map();for(const _0x27e8d9 of _0x79161['model']['document']['getRootNames']()){const _0x1c993f=_0x79161['editing']['view']['getDomRoot'](_0x27e8d9)['getClientRects']()['item'](0x0);_0x49b8b8['push'](_0x27e8d9),_0x547d01['set'](_0x27e8d9,_0x1c993f);}return _0x49b8b8['sort']((_0x55ff87,_0x3fd9d8)=>{const _0x46edea=_0x547d01['get'](_0x55ff87),_0x4df260=_0x547d01['get'](_0x3fd9d8);return _0x46edea['y']-_0x4df260['y']||_0x46edea['x']-_0x4df260['x'];}),_0x49b8b8;}}class Qe extends _0x555e71{static get['requires'](){return[me,_0x113d48];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4678b7){super(_0x4678b7),_0x4678b7['commands']['add']('previewFinalContent',new ue(this['editor'])),_0x4678b7['config']['define']('trackChanges.preview.renderFunction',(_0x1e60d4,_0x1eed8f)=>{for(const _0xcaffcf of _0x1eed8f)_0x1e60d4['appendChild'](_0xcaffcf);});}}export{T as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,O as DiscardSuggestionCommand,x as ExecuteOnAllSuggestionsCommand,E as ExecuteOnSelectedSuggestionsCommand,ue as PreviewFinalContentCommand,R as Suggestion,U as SuggestionDescriptionFactory,xe as SuggestionThreadView,Ae as SuggestionView,Ke as TrackChanges,B as TrackChangesCommand,me as TrackChangesData,Xe as TrackChangesDataGetter,d as TrackChangesEditing,Qe as TrackChangesPreview,u as TrackChangesUI};
|