@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20260110.0 → 0.0.0-nightly-20260111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x3c04a9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5f4048,_0x4f26d1){super(),this['id']=_0x4f26d1['id'],this['type']=_0x4f26d1['type'],this['subType']=_0x4f26d1['subType']||null,this['author']=_0x4f26d1['author'],this['creator']=_0x4f26d1['creator']||_0x4f26d1['author'],this['isExternal']=Boolean(_0x4f26d1['attributes']&&_0x4f26d1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4f26d1['originalSuggestionId']||null,this['_model']=_0x5f4048,this['_onAccept']=_0x4f26d1['onAccept'],this['_onDiscard']=_0x4f26d1['onDiscard'],this['_onAttributesChange']=_0x4f26d1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f26d1['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 _0x58d085=this;for(;_0x58d085['previous'];)_0x58d085=_0x58d085['previous'];return _0x58d085;}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'](_0x5e7f0a){this['_markerNames']['add'](_0x5e7f0a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x39d2d4=>this['_model']['markers']['get'](_0x39d2d4))['filter'](_0x30686d=>_0x30686d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22e0bf=>{for(const _0x1bf83d of this['getMarkers']())_0x22e0bf['removeMarker'](_0x1bf83d);}),this['_markerNames']['clear']();}['removeMarker'](_0x2bd6af){this['_model']['change'](_0x19e0ec=>{_0x19e0ec['removeMarker'](_0x2bd6af);}),this['_markerNames']['delete'](_0x2bd6af);}['addRange'](_0x165870){const _0x9f4217='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x9f4217),this['_model']['change'](_0xf481dd=>{_0xf481dd['addMarker'](_0x9f4217,{'range':_0x165870,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x406792){for(const _0x1b43e1 of this['getRanges']())if(_0x1b43e1['isIntersecting'](_0x406792))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x50912a=>_0x50912a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x474aa6,_0x3eabfd)=>[..._0x474aa6,..._0x3eabfd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xaee74=this['getRanges']();if(0x1!=_0xaee74['length'])return null;const _0x4428a4=_0xaee74[0x0],_0x46ab1c=_0x4428a4['start']['nodeAfter'],_0x4c5a5d=_0x4428a4['end']['nodeBefore'];return _0x46ab1c instanceof _0x162e2d?_0x46ab1c!=_0x4c5a5d?null:_0x46ab1c: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 _0x397ab6=[];let _0xceb2c8=this['head'];for(;_0xceb2c8;)_0x397ab6['push'](_0xceb2c8),_0xceb2c8=_0xceb2c8['next'];return _0x397ab6;}['setAttribute'](_0x179a33,_0x57b52e){const _0x1d81c5=_0xc14952(this['attributes']);_0x159df5(_0x1d81c5,_0x179a33,_0x57b52e),_0xe0300(_0x1d81c5,this['attributes'])||(this['attributes']=_0x1d81c5,this['_onAttributesChange'](_0x1d81c5));}['removeAttribute'](_0x377bf2){const _0xdfe800=_0xc14952(this['attributes']);_0x57d7eb(_0xdfe800,_0x377bf2),_0xe0300(_0xdfe800,this['attributes'])||(this['attributes']=_0xdfe800,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 _0x257abf()['substr'](0x1,0x5);}}function o(_0x553f71,_0x497639,_0x416139){const _0x3033e3=_0x553f71['t'],t=_0x553f71['t'];switch(_0x497639){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',_0x416139);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x416139);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x416139);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x416139);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x416139);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',_0x416139);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x416139);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',_0x416139);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x416139);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x416139);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x416139);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x416139);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x416139);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x416139);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x416139);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x416139);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x416139);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x416139);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x416139);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x416139);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x416139);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x416139);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x416139);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x416139);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x416139);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'},_0x416139);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x416139);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x416139);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x416139);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x416139);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x416139);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x416139);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x416139);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'},_0x416139);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x416139);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x416139);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x416139);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x416139);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'},_0x416139);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x416139);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'},_0x416139);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x416139);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x416139);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'},_0x416139);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x416139);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'},_0x416139);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x416139);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x416139);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x416139);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x416139);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x416139);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'},_0x416139);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x416139);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 _0x3033e3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x416139);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3033e3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x416139);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x416139);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'},_0x416139);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'},_0x416139);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'},_0x416139);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x497639;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x414c5a,_0x1366ab){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x414c5a,this['_locale']=_0x1366ab;}['getDescriptions'](_0x1f3879){const _0x5ba233=[],_0x2183a0=new Set(),_0x26ea2f=new Set();for(let _0x192535=0x0;_0x192535<_0x1f3879['length'];_0x192535++){const _0x3ce792=_0x1f3879[_0x192535];if(!_0x3ce792['isInContent'])continue;const _0x114600=this['_handleCustomCallbackDescription'](_0x3ce792);if(_0x114600){if(null!=_0x3ce792['subType']){if(_0x2183a0['has'](_0x3ce792['subType']))continue;_0x2183a0['add'](_0x3ce792['subType']);}_0x5ba233['push'](_0x114600);}else{if('attribute'==_0x3ce792['type']){const _0x246647=_0x3ce792['data']['key'];if(_0x26ea2f['has'](_0x246647))continue;_0x26ea2f['add'](_0x3ce792['data']['key']),_0x246647==m?this['_handleRenameSuggestionDescription'](_0x5ba233,_0x3ce792):this['_handleAttributeSuggestionDescription'](_0x5ba233,_0x3ce792);continue;}'insertion'!=_0x3ce792['type']&&'deletion'!=_0x3ce792['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5ba233,_0x3ce792,_0x1f3879[_0x192535+0x1]);}}return this['_resolveDescriptionItems'](_0x5ba233);}['registerDescriptionCallback'](_0x6e95e8){this['_customCallbacks']['push'](_0x6e95e8);}['registerElementLabel'](_0x2b9a40,_0x3e00b1,_0x2a4280=_0x1d470f['normal']){'function'==typeof _0x2b9a40?_0x48b55a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2b9a40,'label':_0x3e00b1,'priority':_0x2a4280}):this['_itemLabels']['set'](_0x2b9a40,_0x3e00b1);}['registerAttributeLabel'](_0x30595d,_0x55eb5f){this['_attributeLabels']['set'](_0x30595d,_0x55eb5f);}['getItemLabel'](_0x14d63c,_0x525c84=0x1){let _0x5a9fb4;for(const _0x3fa0df of this['_itemLabelsCallbacks'])if(_0x3fa0df['matchingCallback'](_0x14d63c)){_0x5a9fb4=_0x3fa0df['label'];break;}return _0x5a9fb4||(_0x5a9fb4=this['_itemLabels']['get'](_0x14d63c['name'])),_0x5a9fb4?_0x5a9fb4(_0x525c84):0x1!==_0x525c84?_0x525c84+'\x20'+_0x14d63c['name']+'s':''+_0x14d63c['name'];}['_addDescriptionItems'](_0x577454,_0x25cc35){const _0x523da9=_0x25cc35['getFirstRange']()['getWalker'](),_0x2fa9ce='insertion'==_0x25cc35['type']?'add':'remove';for(const _0xeeae72 of _0x523da9){const _0x4e5bef=_0xeeae72['item'],_0x30c39f=_0x577454[_0x577454['length']-0x1];if(_0x4e5bef['is']('$textProxy'))_0x30c39f&&_0x30c39f['type']['indexOf']('Container')>-0x1&&_0x577454['pop'](),_0x30c39f&&'text'==_0x30c39f['type']?_0x30c39f[_0x2fa9ce]+=_0x4e5bef['data']:_0x577454['push']({'type':'text','add':'add'==_0x2fa9ce?_0x4e5bef['data']:'','remove':'remove'==_0x2fa9ce?_0x4e5bef['data']:''});else{if(this['_schema']['isObject'](_0x4e5bef)){const _0x3c750a=_0x4e5bef;if(_0x30c39f&&_0x30c39f['type']['indexOf']('Container')>-0x1&&_0x577454['pop'](),'elementEnd'==_0xeeae72['type'])continue;_0x30c39f&&_0x30c39f['type']==_0x2fa9ce+'Object'&&_0x30c39f['element']['name']==_0x3c750a['name']?_0x30c39f['quantity']++:_0x577454['push']({'type':_0x2fa9ce+'Object','element':_0x3c750a,'quantity':0x1}),_0x523da9['skip'](_0x56c5c1=>!('elementEnd'==_0x56c5c1['type']&&_0x56c5c1['item']==_0x4e5bef));}else{if(this['_schema']['checkChild'](_0x4e5bef,'$text')||_0x4e5bef['is']('element','softBreak')){const _0x1bcadf=_0x4e5bef;if('add'==_0x2fa9ce&&'elementStart'==_0xeeae72['type']||'remove'==_0x2fa9ce&&'elementEnd'==_0xeeae72['type'])continue;if(_0x30c39f&&-0x1==_0x30c39f['type']['indexOf']('Container')){'text'==_0x30c39f['type']&&(_0x30c39f[_0x2fa9ce]+='\x0a');continue;}let _0x5710d7;if(_0x5710d7='add'==_0x2fa9ce?_0x1bcadf['nextSibling']&&!this['_schema']['isObject'](_0x1bcadf['nextSibling'])?_0x1bcadf['nextSibling']:null:_0x1bcadf['previousSibling']&&!this['_schema']['isObject'](_0x1bcadf['previousSibling'])?_0x1bcadf['previousSibling']:null,_0x1bcadf['isEmpty']||_0x5710d7&&_0x5710d7['isEmpty']){const _0xe52030=_0x5710d7&&_0x5710d7['isEmpty']?_0x5710d7:_0x1bcadf;_0x30c39f&&_0x30c39f['type']==_0x2fa9ce+'EmptyContainer'&&_0x30c39f['element']['name']==_0xe52030['name']?_0x30c39f['quantity']++:_0x577454['push']({'type':_0x2fa9ce+'EmptyContainer','element':_0xe52030,'quantity':0x1});}else _0x577454['push']({'type':_0x2fa9ce+'Container','element':_0x1bcadf});}}}}}['_resolveDescriptionItems'](_0x2d35d4){const _0x69078d=this['_locale'],_0x160daf=[],_0xc49985=[],_0x8b9a9=[];for(const _0x5c65ca of _0x2d35d4)switch(_0x5c65ca['type']){case'text':if(_0x5c65ca['add']=_0x5c65ca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5c65ca['remove']=_0x5c65ca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5c65ca['add']&&''!=_0x5c65ca['remove']){_0x160daf['push']({'type':'replace','content':o(_0x69078d,'REPLACE_TEXT',['\x22'+_0x5c65ca['remove']+'\x22','\x22'+_0x5c65ca['add']+'\x22'])});continue;}if(null!=_0x5c65ca['add']['match'](/^ +$/)){_0x160daf['push']({'type':'insertion','content':o(_0x69078d,'*Insert:*\x20%0',o(_0x69078d,'ELEMENT_SPACE',_0x5c65ca['add']['length']))});continue;}if(null!=_0x5c65ca['remove']['match'](/^ +$/)){_0x160daf['push']({'type':'deletion','content':o(_0x69078d,'*Remove:*\x20%0',o(_0x69078d,'ELEMENT_SPACE',_0x5c65ca['remove']['length']))});continue;}if(''!=_0x5c65ca['add']){_0x160daf['push']({'type':'insertion','content':o(_0x69078d,'*Insert:*\x20%0','\x22'+_0x5c65ca['add']+'\x22')});continue;}_0x160daf['push']({'type':'deletion','content':o(_0x69078d,'*Remove:*\x20%0','\x22'+_0x5c65ca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x160daf['push']({'type':'insertion','content':o(_0x69078d,'*Insert:*\x20%0',this['getItemLabel'](_0x5c65ca['element'],_0x5c65ca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x160daf['push']({'type':'deletion','content':o(_0x69078d,'*Remove:*\x20%0',this['getItemLabel'](_0x5c65ca['element'],_0x5c65ca['quantity']))});continue;case'addContainer':_0x160daf['push']({'type':'insertion','content':o(_0x69078d,'*Split:*\x20%0',this['getItemLabel'](_0x5c65ca['element'],_0x5c65ca['quantity']))});continue;case'removeContainer':_0x160daf['push']({'type':'deletion','content':o(_0x69078d,'*Merge:*\x20%0',this['getItemLabel'](_0x5c65ca['element'],_0x5c65ca['quantity']))});continue;case'addFormat':_0xc49985['push'](_0x5c65ca['key']);continue;case'removeFormat':_0x8b9a9['push'](_0x5c65ca['key']);continue;default:_0x160daf['push'](_0x5c65ca);}if(_0xc49985['length']){const _0x5c8ca5=_0xc49985['map'](_0x367f95=>this['_attributeLabels']['has'](_0x367f95)?this['_attributeLabels']['get'](_0x367f95):_0x367f95)['join'](',\x20');_0x160daf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5c8ca5)});}if(_0x8b9a9['length']){const _0x2a6e75=_0x8b9a9['map'](_0xa839a8=>this['_attributeLabels']['has'](_0xa839a8)?this['_attributeLabels']['get'](_0xa839a8):_0xa839a8)['join'](',\x20');_0x160daf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2a6e75)});}return _0x160daf;}['_handleCustomCallbackDescription'](_0x9ccf44){for(const _0x375ede of this['_customCallbacks']){const _0x298085=_0x375ede(_0x9ccf44);if(_0x298085&&'type'in _0x298085)return _0x298085;}}['_handleAttributeSuggestionDescription'](_0x3492ff,_0x5c8f56){const _0x2662a1=_0x5c8f56['data'],_0x568394=void 0x0===_0x2662a1['newValue']?'removeFormat':'addFormat';_0x3492ff['push']({'type':_0x568394,'key':_0x2662a1['key']});}['_handleRenameSuggestionDescription'](_0x204637,_0x1285e9){_0x204637['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1285e9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x37059b,_0x31a7c1,_0xa7f25a){if(this['_addDescriptionItems'](_0x37059b,_0x31a7c1),_0xa7f25a&&_0xa7f25a['getFirstRange']()&&!_0x31a7c1['getFirstRange']()['end']['isEqual'](_0xa7f25a['getFirstRange']()['start'])){const _0x24b351=_0x37059b[_0x37059b['length']-0x1],_0x285bcb='insertion'==_0x31a7c1['type']?'add':'remove';_0x24b351&&'text'==_0x24b351['type']&&(_0x24b351[_0x285bcb]+='\x0a');}}}class R extends _0x959a6f{['afterInit'](){const _0x2826cf=this['editor'],_0x28ab1a=_0x2826cf['plugins']['get']('TrackChangesEditing');_0x2826cf['commands']['get']('showAIAssistant')&&_0x28ab1a['enableCommand']('showAIAssistant');}}class T extends _0x959a6f{['afterInit'](){const _0x563a36=this['editor'],_0x42abfd=_0x563a36['plugins']['get']('TrackChangesEditing');_0x563a36['commands']['get']('toggleAi')&&_0x42abfd['enableCommand']('toggleAi');}}class E extends _0x959a6f{['afterInit'](){const _0x2686f7=this['editor'],_0x5183c6=_0x2686f7['plugins']['get']('TrackChangesEditing');_0x2686f7['commands']['get']('aiQuickAction')&&_0x5183c6['enableCommand']('aiQuickAction');}}class U extends _0x959a6f{['afterInit'](){const _0x3f6e52=this['editor'],_0x5b353d=_0x3f6e52['locale'];if(!_0x3f6e52['plugins']['has']('AlignmentEditing'))return;const _0x4fafe3=_0x3f6e52['plugins']['get']('TrackChangesEditing');_0x4fafe3['enableDefaultAttributesIntegration']('alignment'),_0x4fafe3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5b353d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db62e=this['editor'],_0x1757eb=_0x1db62e['locale'];_0x1db62e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ba2b=>{if('formatBlock'!=_0x27ba2b['type'])return;const {data:_0x12ffb7}=_0x27ba2b;if(_0x12ffb7&&'alignment'==_0x12ffb7['commandName']){const _0x4b2424=_0x12ffb7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1757eb,'*Format:*\x20%0',function(_0x2f28ab){switch(_0x2f28ab){case'left':return o(_0x1757eb,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1757eb,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1757eb,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1757eb,'FORMAT_JUSTIFY_TEXT');}}(_0x4b2424))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x959a6f{['afterInit'](){const _0x2fda8a=this['editor'],_0x1fdb36=_0x2fda8a['plugins']['get']('TrackChangesEditing'),_0x31e8e2=_0x2fda8a['locale'];for(const _0x280239 of ti){if(!_0x2fda8a['plugins']['has'](_0x280239))continue;const _0xa94226=_0x280239['slice'](0x0,-0x7)['toLowerCase'](),_0x2ca461='FORMAT_'+_0xa94226['toUpperCase']();_0x1fdb36['enableDefaultAttributesIntegration'](_0xa94226),_0x1fdb36['descriptionFactory']['registerAttributeLabel'](_0xa94226,o(_0x31e8e2,_0x2ca461));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55dc6=this['editor'],_0x2402f2=_0x55dc6['locale'],_0x121703=_0x55dc6['plugins']['get']('TrackChangesEditing');function _0xcad13a(_0x2b8f98,_0x3bf44b){_0x121703['descriptionFactory']['registerDescriptionCallback'](_0x48207d=>{if('formatInline'!=_0x48207d['type'])return;const {data:_0x4d0ecc}=_0x48207d;return _0x4d0ecc&&_0x4d0ecc['commandName']===_0x2b8f98?_0x4d0ecc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2402f2,'*Format:*\x20%0',_0x3bf44b)}:{'type':'format','content':o(_0x2402f2,'*Remove\x20format:*\x20%0',_0x3bf44b)}:void 0x0;});}_0xcad13a('bold',o(_0x2402f2,'FORMAT_BOLD')),_0xcad13a('italic',o(_0x2402f2,'FORMAT_ITALIC')),_0xcad13a('underline',o(_0x2402f2,'FORMAT_UNDERLINE')),_0xcad13a('code',o(_0x2402f2,'FORMAT_CODE')),_0xcad13a('strikethrough',o(_0x2402f2,'FORMAT_STRIKETHROUGH')),_0xcad13a('subscript',o(_0x2402f2,'FORMAT_SUBSCRIPT')),_0xcad13a('superscript',o(_0x2402f2,'FORMAT_SUPERSCRIPT'));}}class F extends _0x959a6f{['afterInit'](){const _0x479996=this['editor'],_0xbf28cf=_0x479996['locale'];if(!_0x479996['plugins']['has']('BlockQuoteEditing'))return;const _0x23d98e=_0x479996['plugins']['get']('TrackChangesEditing'),_0x3d96a4=this['editor']['commands']['get']('blockQuote');_0x23d98e['enableCommand']('blockQuote',(_0x964c99,_0x577e33={})=>{const _0x26d81c=this['editor']['model']['document']['selection'],_0x5068ad=_0x577e33&&void 0x0!==_0x577e33['forceValue']?_0x577e33['forceValue']:!_0x3d96a4['value'];let _0x338d8f=[];if(_0x5068ad){const _0x1e400a=Array['from'](_0x26d81c['getSelectedBlocks']())['filter'](_0x52791a=>oo(_0x52791a)||function(_0x54bdfe,_0x4db610){const _0x48bf6f=_0x4db610['checkChild'](_0x54bdfe['parent'],'blockQuote'),_0x198ab3=_0x4db610['checkChild'](['$root','blockQuote'],_0x54bdfe);return _0x48bf6f&&_0x198ab3;}(_0x52791a,this['editor']['model']['schema']));_0x338d8f=to(_0x1e400a,_0x479996['model']);}else{const _0x24b898=Array['from'](_0x26d81c['getSelectedBlocks']())['filter'](_0x381b67=>oo(_0x381b67));_0x338d8f=to(_0x24b898,_0x479996['model']);}_0x479996['model']['change'](()=>{for(const _0x281738 of _0x338d8f)_0x23d98e['markBlockFormat'](_0x281738,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5068ad}]});});}),_0x23d98e['descriptionFactory']['registerDescriptionCallback'](_0x44e8e1=>{const {data:_0x47e7df}=_0x44e8e1;if(_0x47e7df&&'blockQuote'==_0x47e7df['commandName']){const _0x3653b9=o(_0xbf28cf,'ELEMENT_BLOCK_QUOTE');return _0x47e7df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xbf28cf,'*Set\x20format:*\x20%0',_0x3653b9)}:{'type':'format','content':o(_0xbf28cf,'*Remove\x20format:*\x20%0',_0x3653b9)};}});}}function oo(_0x426bf5){return'blockQuote'==_0x426bf5['parent']['name'];}class G extends _0x959a6f{['afterInit'](){const _0x5b9179=this['editor'],_0x35e033=_0x5b9179['locale'],_0x48aee3=_0x5b9179['plugins']['get']('TrackChangesEditing');_0x5b9179['plugins']['has']('BookmarkEditing')&&(_0x48aee3['enableCommand']('insertBookmark'),_0x48aee3['enableDefaultAttributesIntegration']('updateBookmark'),_0x48aee3['descriptionFactory']['registerDescriptionCallback'](_0x2ae7e3=>{if('insertion'!=_0x2ae7e3['type']&&'deletion'!=_0x2ae7e3['type']&&'attribute'!=_0x2ae7e3['type'])return;const _0x52311e=_0x2ae7e3['getContainedElement']();if(null==_0x52311e)return;if(!_0x52311e['is']('element','bookmark'))return;const _0xfe9d07=_0x52311e['getAttribute']('bookmarkId');if('insertion'==_0x2ae7e3['type'])return{'type':'insertion','content':o(_0x35e033,'*Insert:*\x20%0','\x22'+_0xfe9d07+'\x22\x20'+o(_0x35e033,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2ae7e3['type'])return{'type':'deletion','content':o(_0x35e033,'*Remove:*\x20%0','\x22'+_0xfe9d07+'\x22\x20'+o(_0x35e033,'ELEMENT_BOOKMARK'))};const {data:_0x26af50}=_0x2ae7e3;if(!_0x26af50||'bookmarkId'!=_0x26af50['key'])return;return{'type':'format','content':o(_0x35e033,'*Set\x20bookmark:*\x20%0','\x22'+_0x26af50['newValue']+'\x22')};}));}}class L extends _0x959a6f{['afterInit'](){const _0xac9ba=this['editor'];_0xac9ba['plugins']['has']('CaseChange')&&(_0xac9ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xac9ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xac9ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x959a6f{['afterInit'](){const _0xe3219d=this['editor'];_0xe3219d['commands']['get']('ckbox')&&_0xe3219d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x959a6f{['afterInit'](){const _0x90fe70=this['editor'];if(!_0x90fe70['plugins']['has']('CodeBlock'))return;const _0x3fb323=_0x90fe70['plugins']['get']('TrackChangesEditing'),_0x4f2300=_0x90fe70['locale'],_0x573d19=_0x90fe70['config']['get']('codeBlock')['languages'],_0x10813c=_0x90fe70['commands']['get']('codeBlock');_0x3fb323['enableCommand']('indentCodeBlock'),_0x3fb323['enableCommand']('outdentCodeBlock'),_0x3fb323['enableCommand']('codeBlock',(_0x3f3775,_0x4a8500={})=>{const _0x375c6a=_0x90fe70['model'],_0xfa5600=_0x90fe70['model']['document']['selection'],_0x2c0dd7=_0x4a8500&&void 0x0!==_0x4a8500['forceValue']?_0x4a8500['forceValue']:!_0x10813c['value'];let _0x1e9b6f;_0x4a8500['language']||(_0x4a8500['language']=_0x573d19[0x0]['language']),_0x1e9b6f=_0x2c0dd7?Array['from'](_0xfa5600['getSelectedBlocks']())['filter'](_0x1df307=>co(_0x1df307)||function(_0x10f2ff,_0xb76c59){if(_0x10f2ff['is']('rootElement')||_0xb76c59['isLimit'](_0x10f2ff))return!0x1;return _0xb76c59['checkChild'](_0x10f2ff['parent'],'codeBlock');}(_0x1df307,_0x375c6a['schema'])):Array['from'](_0xfa5600['getSelectedBlocks']())['filter'](_0x149fbd=>co(_0x149fbd));const _0x4a19da=to(_0x1e9b6f,_0x375c6a);_0x375c6a['change'](()=>{for(const _0x1a8a84 of _0x4a19da)_0x3fb323['markBlockFormat'](_0x1a8a84,{'commandName':'codeBlock','commandParams':[{..._0x4a8500,'forceValue':_0x2c0dd7}],'formatGroupId':'blockName'});});}),(_0x3fb323['descriptionFactory']['registerElementLabel']('codeBlock',_0x52b44b=>o(_0x4f2300,'ELEMENT_CODE_BLOCK',_0x52b44b)),_0x3fb323['descriptionFactory']['registerDescriptionCallback'](_0x17dfbf=>{if('formatBlock'!=_0x17dfbf['type'])return;const _0x1fe05b=_0x4f2300['t'],{data:_0x40f21f}=_0x17dfbf;if(!_0x40f21f||'codeBlock'!=_0x40f21f['commandName'])return;const _0x107235=_0x40f21f['commandParams'][0x0]['language'],_0x4680fa=_0x1fe05b(_0x573d19['find'](_0x46e9af=>_0x46e9af['language']===_0x107235)['label'])['toLowerCase']();return _0x40f21f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f2300,'*Set\x20format:*\x20%0',o(_0x4f2300,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4680fa+')')}:{'type':'format','content':o(_0x4f2300,'*Remove\x20format:*\x20%0',o(_0x4f2300,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x562e67){return'codeBlock'==_0x562e67['name'];}class z extends _0x959a6f{['afterInit'](){const _0x4e13cf=this['editor'];if(!_0x4e13cf['plugins']['has']('CommentsEditing'))return;_0x4e13cf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x959a6f{static get['requires'](){return[_0x45d38d];}['init'](){const _0x46478e=this['editor'],_0x423f31=_0x46478e['plugins']['get']('TrackChangesEditing');_0x423f31['enableCommand']('delete');const _0xadbd72=_0x46478e['commands']['get']('deleteForward');_0x423f31['enableCommand']('deleteForward',(_0x44b8e9,_0x3209f6={})=>{const _0x44a05f=_0x46478e['model']['createSelection'](_0x46478e['model']['document']['selection']);_0x44a05f['isCollapsed']&&_0x46478e['model']['modifySelection'](_0x44a05f,{'direction':'forward','unit':_0x3209f6['unit']});const _0xa18a97=_0x44a05f['getFirstRange'](),_0x3d9662=_0x481a5c['fromRange'](_0xa18a97);let _0x5278c5;_0x44b8e9(_0x3209f6),_0x5278c5='$graveyard'==_0x3d9662['root']['rootName']?_0x46478e['model']['createRange'](_0xa18a97['start']):_0x46478e['model']['createRange'](_0x3d9662['start'],_0x3d9662['end']),_0x3d9662['detach'](),_0x46478e['model']['enqueueChange'](_0xadbd72['buffer']['batch'],_0x58155f=>{_0xadbd72['buffer']['lock'](),_0x58155f['setSelection'](_0x58155f['createRange'](_0x5278c5['end'])),_0xadbd72['buffer']['unlock']();});});}}class W extends _0x959a6f{['afterInit'](){const _0x53f419=this['editor'];if(!_0x53f419['plugins']['has']('ListEditing'))return;const _0x8a39f6=_0x53f419['locale'],_0x4b2801=_0x53f419['plugins']['get']('TrackChangesEditing'),_0x2dff11=_0x53f419['plugins']['has']('TodoListEditing'),_0x428c39=!!_0x53f419['config']['get']('list.multiBlock');function _0x3a11ff(_0x1b26dc){return{'type':'format','content':''+o(_0x8a39f6,'*Set\x20format:*\x20%0',_0x1b26dc)};}function _0x4964e5(_0x226423){return{'type':'format','content':''+o(_0x8a39f6,'*Remove\x20format:*\x20%0',_0x226423)};}_0x4b2801['enableDefaultAttributesIntegration']('numberedList'),_0x4b2801['enableDefaultAttributesIntegration']('bulletedList'),_0x4b2801['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b2801['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b2801['enableDefaultAttributesIntegration']('indentList'),_0x4b2801['enableDefaultAttributesIntegration']('outdentList'),_0x4b2801['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b2801['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x428c39&&(_0x4b2801['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b2801['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2dff11&&(_0x4b2801['enableDefaultAttributesIntegration']('todoList'),_0x4b2801['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b2801['descriptionFactory']['registerDescriptionCallback'](_0x3b5ada=>{const {data:_0x39166e}=_0x3b5ada;if(_0x39166e&&'todoListChecked'==_0x39166e['key'])return{'type':'format','content':_0x39166e['newValue']?o(_0x8a39f6,'*Check\x20item*'):o(_0x8a39f6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1eae60=>{if(_0x1eae60['batch']['isUndo'])return!0x1;let _0x1499e9=!0x1;const _0x14357f=_0x4b2801['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x284e8d=>'todoListChecked'===_0x4b2801['_getAttributeKey'](_0x284e8d));for(const _0x2c3d02 of _0x14357f){'todo'!=_0x2c3d02['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b2801['_findSuggestions'](_0x2c3d02['getFirstRange'](),'attribute')['find'](_0x527185=>'listType'===_0x4b2801['_getAttributeKey'](_0x527185['suggestion']))||(_0x1eae60['removeMarker'](_0x2c3d02['getFirstMarker']()),_0x1499e9=!0x0));}return _0x1499e9;})),_0x4b2801['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x8a39f6,'FORMAT_INDENT'));const _0x2c3e58={'type':'format','content':''};_0x4b2801['descriptionFactory']['registerDescriptionCallback'](_0x36b28e=>{const {data:_0x5bc863}=_0x36b28e;if(!_0x5bc863||'listType'!=_0x5bc863['key'])return;let _0xa72405=_0x36b28e['head'];for(;_0xa72405;){if(_0xa72405['data']&&(('listStyle'==_0xa72405['data']['key']||'listMarkerStyle'==_0xa72405['data']['key'])&&(_0xa72405['data']['newValue']&&'default'!=_0xa72405['data']['newValue']||'default'!=_0xa72405['data']['oldValue']&&!_0x5bc863['newValue'])||!_0x428c39&&_0xa72405['data']['key']==m))return _0x2c3e58;_0xa72405=_0xa72405['next'];}if(null==_0x5bc863['newValue'])switch(_0x5bc863['oldValue']){case'bulleted':return _0x4964e5(o(_0x8a39f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4964e5(o(_0x8a39f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4964e5(o(_0x8a39f6,'ELEMENT_TODO_LIST'));}switch(_0x5bc863['newValue']){case'bulleted':return _0x3a11ff(o(_0x8a39f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a11ff(o(_0x8a39f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a11ff(o(_0x8a39f6,'ELEMENT_TODO_LIST'));}}),_0x4b2801['descriptionFactory']['registerDescriptionCallback'](_0x10c08b=>{const {data:_0x1e922d}=_0x10c08b;if(_0x1e922d&&'listIndent'==_0x1e922d['key'])return null==_0x1e922d['newValue']||null==_0x1e922d['oldValue']&&0x0==_0x1e922d['newValue']?_0x2c3e58:void 0x0;}),_0x4b2801['descriptionFactory']['registerDescriptionCallback'](_0xccb4ed=>{if('attribute'!=_0xccb4ed['type'])return;const {data:_0x11668a}=_0xccb4ed;if(!_0x11668a||'listItemId'!=_0x11668a['key'])return;const _0x48fb53=Te(_0xccb4ed);return'newValue'==_0x48fb53?{'type':'format','content':o(_0x8a39f6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48fb53?{'type':'format','content':o(_0x8a39f6,'*Split:*\x20list\x20item')}:_0x2c3e58;}),_0x53f419['model']['document']['registerPostFixer'](_0x14abaf=>this['listItemIdFixer'](_0x14abaf)),_0x53f419['model']['document']['registerPostFixer'](_0x490da2=>this['noTrackChangesFixer'](_0x490da2)),_0x53f419['model']['document']['on']('change:data',(_0x561e7e,_0x5df144)=>{if(_0x5df144['isUndo']||!_0x5df144['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f9d9d){if(_0x4f9d9d['batch']['isUndo']||!_0x4f9d9d['batch']['isLocal'])return!0x1;let _0x5b12c1=!0x1;const _0x3ece35=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23b404=>_0x23b404['data']&&'listItemId'==_0x23b404['data']['key'])['filter'](_0x5acf7c=>_0x5acf7c['data']['newValue']&&_0x5acf7c['data']['oldValue']);for(const _0x1ffb00 of _0x3ece35)Te(_0x1ffb00)||(_0x4f9d9d['removeMarker'](_0x1ffb00['getFirstMarker']()),_0x5b12c1=!0x0);return _0x5b12c1;}['noTrackChangesFixer'](_0x91f09c){if(_0x91f09c['batch']['isUndo']||!_0x91f09c['batch']['isLocal'])return!0x1;const _0x3a3f82=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3a3f82['trackChangesCommand']['value'])return!0x1;let _0x56a76b=!0x1;const _0x39c983=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x453b57=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x357a30=>'attribute'==_0x357a30['type'])['filter'](_0x8653d6=>_0x39c983['includes'](_0x8653d6['attributeKey']));if(0x0==_0x453b57['length'])return _0x56a76b;for(const _0x249ebf of _0x453b57){const _0x39f661=_0x3a3f82['_findSuggestions'](_0x249ebf['range'],'attribute')['filter'](_0x2e7cc7=>!_0x2e7cc7['meta']['isNextTo'])['map'](_0x4f0e67=>_0x4f0e67['suggestion'])['filter'](_0x536336=>{const _0x222458=_0x3a3f82['_getAttributeKey'](_0x536336);return _0x39c983['includes'](_0x222458);});if(_0x39f661['length']){for(const _0x4f78cc of _0x39f661)_0x91f09c['removeMarker'](_0x4f78cc['getFirstMarker']());_0x56a76b=!0x0;}}return _0x56a76b;}['assureChains'](){const _0x15459d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b3d4c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x23516e;const _0x319096=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x17f43f=>{if(_0x17f43f['data']['oldRange']||!_0x17f43f['data']['newRange'])return null;if(!_0x17f43f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3745d5}=_0x15459d['_splitMarkerName'](_0x17f43f['name']);if(!_0x15459d['hasSuggestion'](_0x3745d5))return null;const _0x37bbc4=_0x15459d['getSuggestion'](_0x3745d5);return _0x3b3d4c['includes'](_0x37bbc4['data']['key']);})['map'](_0x1d73a4=>{const {id:_0x36d15d}=_0x15459d['_splitMarkerName'](_0x1d73a4['name']),_0x558538=_0x15459d['getSuggestion'](_0x36d15d);return _0x23516e=_0x558538['attributes']['groupId'],_0x558538['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x319096['size'])return;const _0x5419e0=_0x15459d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x587241=>'attribute'==_0x587241['type']&&_0x587241['data']&&_0x3b3d4c['includes'](_0x587241['data']['key'])&&_0x587241['attributes']['groupId']!=_0x23516e)['map'](_0x43b96c=>({'listItem':_0x43b96c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x43b96c['attributes']['groupId']})),_0x4421f4=new Set();for(const {groupId:_0xe46b6d,listItem:_0x56fd96}of _0x5419e0)_0x319096['has'](_0x56fd96)&&_0x4421f4['add'](_0xe46b6d);for(const _0x37772d of _0x15459d['getSuggestions']())_0x4421f4['has'](_0x37772d['attributes']['groupId'])&&_0x37772d['setAttribute']('groupId',_0x23516e);}['_supportLegacySuggestions'](){const _0x46faf7=this['editor'],_0x280cee=_0x46faf7['locale'],_0x9b273e=_0x46faf7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x9b273e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x22022c,_0x5a468a){const _0x4e5d60=[];for(let _0x39a1c6 of _0x22022c)_0x39a1c6['start']['nodeAfter']===_0x39a1c6['end']['parent']&&(_0x39a1c6=_0x46faf7['model']['createRange'](_0x46faf7['model']['createPositionAt'](_0x39a1c6['start']['nodeAfter'],0x0))),_0x4e5d60['push'](_0x39a1c6);_0x46faf7['model']['change'](_0x186331=>{const _0x344a22=_0x46faf7['model']['document']['selection'],_0x4a254c=Array['from'](_0x344a22['getRanges']())['map'](_0x3ffd50=>_0x481a5c['fromRange'](_0x3ffd50));_0x186331['setSelection'](_0x4e5d60),_0x46faf7['commands']['get'](_0x5a468a['commandName'])['refresh'](),_0x5a468a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46faf7['execute'](_0x5a468a['commandName'],..._0x5a468a['commandParams']),_0x186331['setSelection'](_0x4a254c);for(const _0x8e0c6b of _0x4a254c)_0x8e0c6b['detach']();});}),_0x9b273e['descriptionFactory']['registerElementLabel'](function(_0x2dba88){const _0x495f8f=!_0x46faf7['model']['schema']['isObject'](_0x2dba88),_0x331aa3=_0x2dba88['previousSibling'],_0x184241=_0x2dba88['nextSibling'],_0x112153=_0x2dba88['getAttribute']('listItemId'),_0x112a0d=!_0x331aa3||_0x331aa3['getAttribute']('listItemId')!==_0x112153,_0x292720=!_0x184241||_0x184241['getAttribute']('listItemId')!==_0x112153;return _0x495f8f&&Boolean(_0x112153)&&_0x112a0d&&_0x292720;},_0x256b52=>o(_0x280cee,'ELEMENT_LIST_ITEM',_0x256b52));}['_registerLegacyDescription'](){const _0x17dc7e=this['editor'],_0x4887f3=_0x17dc7e['locale'];function _0x3b4ae2(_0x46feeb){const _0x309ea9=_0x17dc7e['commands']['get']('bulletedList')['value'],_0x4cecac=_0x17dc7e['commands']['get']('numberedList')['value'];return'numberedList'===_0x46feeb?_0x309ea9:_0x4cecac;}_0x17dc7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2a18c0){if('formatBlock'!=_0x2a18c0['type'])return;const {data:_0x4b4ad9}=_0x2a18c0;if(!_0x4b4ad9)return;let _0x3a8972,_0x725628,_0x2249be,_0x1ae1c9;switch(_0x4b4ad9['commandName']){case'bulletedList':_0x2249be=_0x4b4ad9['commandParams'][0x0]['forceValue'],_0x1ae1c9=_0x3b4ae2(_0x4b4ad9['commandName']),_0x3a8972=_0x2249be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ae1c9&&_0x17dc7e['config']['get']('list.multiBlock')||(_0x3a8972='*Change\x20to:*\x20%0'),_0x725628={'type':'format','content':o(_0x4887f3,_0x3a8972,o(_0x4887f3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2249be=_0x4b4ad9['commandParams'][0x0]['forceValue'],_0x1ae1c9=_0x3b4ae2(_0x4b4ad9['commandName']),_0x3a8972=_0x2249be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ae1c9&&_0x17dc7e['config']['get']('list.multiBlock')||(_0x3a8972='*Change\x20to:*\x20%0'),_0x725628={'type':'format','content':o(_0x4887f3,_0x3a8972,o(_0x4887f3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3a8972='*Indent:*\x20%0',_0x725628={'type':'format','content':o(_0x4887f3,_0x3a8972,o(_0x4887f3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3a8972=function(_0x33396d){const _0x32b823=_0x33396d['getFirstRange']();let _0x3bbc62=_0x32b823['start']['nodeAfter'];for(;_0x3bbc62&&_0x32b823['containsItem'](_0x3bbc62);){if(_0x3bbc62['getAttribute']('listIndent')>0x0)return!0x1;_0x3bbc62=_0x3bbc62['nextSibling'];}return!0x0;}(_0x2a18c0)?o(_0x4887f3,'*Format:*\x20remove\x20from\x20%0',o(_0x4887f3,function(_0xed631f){return'ELEMENT_'+_0xed631f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2a18c0))):o(_0x4887f3,'*Outdent:*\x20%0',o(_0x4887f3,'ELEMENT_LIST_ITEM')),_0x725628={'type':'format','content':_0x3a8972};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4b4ad9['multipleBlocks']&&(_0x3a8972='*Merge:*\x20%0',_0x725628={'type':'deletion','content':o(_0x4887f3,_0x3a8972,o(_0x4887f3,'ELEMENT_LIST_ITEM'))});}return _0x725628;});}}function Te(_0x2be61d){let _0x4dc760=_0x2be61d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4dc760;){const _0x2eee62=_0x4dc760['getAttribute']('listItemId');if(!_0x2eee62)return!0x1;if(_0x2eee62==_0x2be61d['data']['newValue'])return'newValue';if(_0x2eee62==_0x2be61d['data']['oldValue'])return'oldValue';_0x4dc760=_0x4dc760['previousSibling'];}return!0x1;}class H extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x10258d=this['editor']['config']['get']('list.properties'),_0x34d6da=this['editor']['plugins']['get']('TrackChangesEditing');_0x10258d['styles']&&_0x34d6da['enableDefaultAttributesIntegration']('listStyle'),_0x10258d['reversed']&&_0x34d6da['enableDefaultAttributesIntegration']('listReversed'),_0x10258d['startIndex']&&_0x34d6da['enableDefaultAttributesIntegration']('listStart');const _0x54436d={'type':'format','content':''};_0x34d6da['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf0ed56=this['editor']['locale'];_0x34d6da['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xf0ed56,'FORMAT_LIST_REVERSED')),_0x34d6da['descriptionFactory']['registerDescriptionCallback'](_0x5ef9c9=>{const {data:_0x49c12c}=_0x5ef9c9;if(_0x49c12c&&'listReversed'==_0x49c12c['key'])return null==_0x49c12c['newValue']||0x0==_0x49c12c['newValue']&&null==_0x49c12c['oldValue']?_0x54436d:void 0x0;}),_0x34d6da['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xf0ed56,'FORMAT_LIST_START')),_0x34d6da['descriptionFactory']['registerDescriptionCallback'](_0x358606=>{const {data:_0x5f32a3}=_0x358606;if(_0x5f32a3&&'listStart'==_0x5f32a3['key'])return null==_0x5f32a3['newValue']||0x1==_0x5f32a3['newValue']&&null==_0x5f32a3['oldValue']?_0x54436d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4ff0f4=>{if(_0x4ff0f4['batch']['isUndo'])return!0x1;let _0x10267e=!0x1;const _0x3792e1=_0x34d6da['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e4b9f=>{const _0x5c5809=_0x34d6da['_getAttributeKey'](_0x5e4b9f);return'listStart'==_0x5c5809||'listReversed'==_0x5c5809;});for(const _0x114458 of _0x3792e1){const _0x1e7ce0=_0x114458['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1e7ce0||'customNumbered'==_0x1e7ce0)continue;_0x34d6da['_findSuggestions'](_0x114458['getFirstRange'](),'attribute')['find'](_0x5b6be4=>'listType'==_0x34d6da['_getAttributeKey'](_0x5b6be4['suggestion']))||(_0x4ff0f4['removeMarker'](_0x114458['getFirstMarker']()),_0x10267e=!0x0);}return _0x10267e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x374d37){const _0x13e4e0=this['editor']['locale'],{data:_0x568172}=_0x374d37,_0x1e287f={'type':'format','content':''};if(!_0x568172||'listStyle'!=_0x568172['key'])return;if(!_0x568172['oldValue'])return'default'==_0x568172['newValue']?_0x1e287f:{'type':'format','content':''+o(_0x13e4e0,'*Set\x20format:*\x20%0',o(_0x13e4e0,this['_getTranslationKeyForListStyle'](_0x568172['newValue'])))};if(!_0x568172['newValue']){if('default'==_0x568172['oldValue'])return _0x1e287f;let _0x4a2c2c=_0x374d37['head'];for(;_0x4a2c2c;){if(_0x4a2c2c['data']&&'listType'==_0x4a2c2c['data']['key']&&_0x4a2c2c['data']['newValue'])return _0x1e287f;_0x4a2c2c=_0x4a2c2c['next'];}return{'type':'format','content':''+o(_0x13e4e0,'*Remove\x20format:*\x20%0',o(_0x13e4e0,this['_getTranslationKeyForListStyle'](_0x568172['oldValue'])))};}if('default'!=_0x568172['newValue'])return{'type':'format','content':''+o(_0x13e4e0,'*Set\x20format:*\x20%0',o(_0x13e4e0,this['_getTranslationKeyForListStyle'](_0x568172['newValue'])))};let _0x2eaa06=_0x374d37['head'];for(;_0x2eaa06;){if(_0x2eaa06['data']&&'listType'==_0x2eaa06['data']['key']&&_0x2eaa06['data']['newValue']&&_0x2eaa06['data']['oldValue'])return _0x1e287f;_0x2eaa06=_0x2eaa06['next'];}return{'type':'format','content':o(_0x13e4e0,'*Set\x20format:*\x20%0',o(_0x13e4e0,'ELEMENT_'+_0x374d37['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2d7296=this['editor'],_0x1b0f0a=_0x2d7296['locale'];_0x2d7296['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x584469=>{if('formatBlock'!=_0x584469['type'])return;const {data:_0x33942b}=_0x584469;if(!_0x33942b)return;let _0xb494a4,_0x4f2d85;switch(_0x33942b['commandName']){case'listStyle':_0xb494a4='*Change\x20to:*\x20%0',_0x4f2d85={'type':'format','content':o(_0x1b0f0a,_0xb494a4,o(_0x1b0f0a,this['_getTranslationKeyForListStyle'](_0x33942b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb494a4=_0x33942b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f2d85={'type':'format','content':o(_0x1b0f0a,_0xb494a4)};break;case'listStart':_0xb494a4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f2d85={'type':'format','content':o(_0x1b0f0a,_0xb494a4,_0x33942b['commandParams'][0x0]['startIndex'])};}return _0x4f2d85;});}['_getTranslationKeyForListStyle'](_0x1b4535){return'ELEMENT_'+function(_0x4fdd54){if(ye['includes'](_0x4fdd54))return'bulleted';if(Se['includes'](_0x4fdd54))return'numbered';return null;}(_0x1b4535)['toUpperCase']()+'_LIST_'+_0x1b4535['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x959a6f{['afterInit'](){const _0x2e668a=this['editor'];_0x2e668a['commands']['get']('emoji')&&_0x2e668a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x959a6f{static get['requires'](){return[_0x1b4b72];}['init'](){const _0x18b663=this['editor'],_0x5e9561=_0x18b663['plugins']['get']('TrackChangesEditing'),_0x29e96a=_0x18b663['commands']['get']('enter');_0x5e9561['enableCommand']('enter',()=>{_0x18b663['model']['change'](_0x4eeb3e=>{const _0x4d1261=_0x18b663['model']['document']['selection'],_0x3366e3=_0x4d1261['getFirstPosition'](),_0x43d2f6=_0x481a5c['fromRange'](_0x4d1261['getFirstRange']());if(_0x29e96a['enterBlock'](_0x4eeb3e)){const _0x16f720=_0x18b663['model']['createPositionAt'](_0x3366e3['parent']['nextSibling'],0x0),_0x443741=_0x4eeb3e['createRange'](_0x3366e3,_0x16f720);_0x5e9561['markInsertion'](_0x443741);}else _0x4eeb3e['setSelection'](_0x4eeb3e['createRange'](_0x43d2f6['end']));_0x43d2f6['detach'](),_0x29e96a['fire']('afterExecute',{'writer':_0x4eeb3e});});});}}class Y extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc9740f=this['editor']['plugins']['get']('TrackChangesEditing');_0xc9740f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc9740f['enableCommand']('findNext'),_0xc9740f['enableCommand']('findPrevious'),_0xc9740f['enableCommand']('replace'),_0xc9740f['enableCommand']('replaceAll');}['handleFindCommand'](_0x33cce8,_0x1a0759,_0x3ce66b={}){const _0x5ee6c9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x33cce8(_0xd33408=>{let _0x568249=('string'==typeof _0x1a0759?_0x5ee6c9['findByTextCallback'](_0x1a0759,_0x3ce66b):_0x1a0759)(_0xd33408);Array['isArray'](_0x568249)&&(_0x568249={'results':_0x568249,'searchText':'string'==typeof _0x1a0759?_0x1a0759:''});const _0x18a2ca=_0x568249['results']['filter'](_0x56d209=>!0x1===this['_isInDeletionRange'](_0x56d209,_0xd33408['item']));return{..._0x568249,'results':_0x18a2ca};},_0x3ce66b);}['_isInDeletionRange'](_0x4f6097,_0xc18178){const _0x209cf6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc18178,_0x4f6097['start']),this['editor']['model']['createPositionAt'](_0xc18178,_0x4f6097['end']));for(const _0x41782f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x209cf6['getIntersection'](_0x41782f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x959a6f{['afterInit'](){const _0x2bb05e=this['editor']['locale'],_0x30b2ab=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x40d06b,commandName:_0x24756f}of eo)this['editor']['plugins']['has'](_0x40d06b)&&_0x30b2ab['enableDefaultAttributesIntegration'](_0x24756f);_0x30b2ab['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2bb05e,'FORMAT_FONT_SIZE')),_0x30b2ab['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2bb05e,'FORMAT_FONT_FAMILY')),_0x30b2ab['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2bb05e,'FORMAT_FONT_COLOR')),_0x30b2ab['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2bb05e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ad577=this['editor'],_0x2588ed=_0x4ad577['locale'];_0x4ad577['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57d7e1=>{const _0x305988=_0x2588ed['t'];if('formatInline'!=_0x57d7e1['type'])return;const {data:_0x33e1b0}=_0x57d7e1;if(null!=_0x33e1b0){if('fontSize'==_0x33e1b0['commandName']){const _0x6ea8d2=_0x33e1b0['commandParams'][0x0]['value'];if(_0x6ea8d2){const _0x32889b=_0x305988(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e7e6f=>_0x4e7e6f['model']==_0x6ea8d2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2588ed,'*Set\x20font\x20size:*\x20%0',_0x32889b)};}return{'type':'format','content':o(_0x2588ed,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33e1b0['commandName']){const _0x30051a=_0x33e1b0['commandParams'][0x0]['value'];return _0x30051a?{'type':'format','content':o(_0x2588ed,'*Set\x20font\x20family:*\x20%0',_0x30051a)}:{'type':'format','content':o(_0x2588ed,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33e1b0['commandName']){const _0x528fb8=_0x33e1b0['commandParams'][0x0]['value'];if(_0x528fb8){const _0x108418=_0x137d59(this['editor']['config']['get']('fontColor.colors'))['find'](_0x58aaa5=>_0x58aaa5['model']==_0x528fb8);let _0x3b7641=_0x528fb8,_0x37c1db='';return _0x108418&&(_0x3b7641=_0x108418['label'],_0x37c1db=_0x305988(_0x3b7641)['toLowerCase']()),{'type':'format','content':o(_0x2588ed,'*Set\x20font\x20color:*\x20%0',_0x37c1db)['trim'](),'color':{'value':_0x528fb8,'title':_0x37c1db||_0x3b7641}};}return{'type':'format','content':o(_0x2588ed,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33e1b0['commandName']){const _0x1889c2=_0x33e1b0['commandParams'][0x0]['value'];if(_0x1889c2){const _0x4de5fb=_0x137d59(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x132e22=>_0x132e22['model']==_0x1889c2);let _0xb17a5b=_0x1889c2,_0x5c872f='';return _0x4de5fb&&(_0xb17a5b=_0x4de5fb['label'],_0x5c872f=_0x305988(_0xb17a5b)['toLowerCase']()),{'type':'format','content':o(_0x2588ed,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c872f)['trim'](),'color':{'value':_0x1889c2,'title':_0x5c872f||_0xb17a5b}};}return{'type':'format','content':o(_0x2588ed,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x959a6f{['afterInit'](){const {plugins:_0x6f5701}=this['editor'];_0x6f5701['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x6f5701['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2a6c49,plugins:_0x2a7c76,commands:_0x25975e}=this['editor'],_0x542464=_0x2a7c76['get']('TrackChangesEditing');_0x25975e['get']('footnotesStyle')&&_0x542464['enableDefaultAttributesIntegration']('footnotesStyle'),_0x25975e['get']('footnotesStart')&&_0x542464['enableDefaultAttributesIntegration']('footnotesStart'),_0x542464['registerBlockAttribute']('footnotesListStyle'),_0x542464['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x2a6c49,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x542464['registerBlockAttribute']('footnotesListStart'),_0x542464['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x2a6c49,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x212813=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x39fa2f,commands:_0x2b9c9b}=this['editor'];_0x2b9c9b['get']('insertFootnote')&&_0x212813['enableCommand']('insertFootnote'),_0x212813['descriptionFactory']['registerElementLabel']('footnoteRef',_0x369e42=>o(_0x39fa2f,'ELEMENT_FOOTNOTE_REF',_0x369e42)),_0x212813['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1f8027=>o(_0x39fa2f,'ELEMENT_FOOTNOTE_DEFINITION',_0x1f8027)),_0x212813['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2214d3=>o(_0x39fa2f,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2214d3));}}class nt extends _0x959a6f{['afterInit'](){const _0x4ee5d9=this['editor'],_0x5500be=_0x4ee5d9['plugins']['get']('TrackChangesEditing'),_0x30b4d7=_0x4ee5d9['commands']['get']('copyFormat'),_0x49a726=_0x4ee5d9['commands']['get']('pasteFormat');_0x30b4d7&&_0x49a726&&(_0x5500be['enableDefaultAttributesIntegration']('pasteFormat'),_0x5500be['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x25ab3d=this['editor'],_0x315e95=_0x25ab3d['locale'];_0x25ab3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x567d52=>{if('formatBlock'!=_0x567d52['type']&&'formatInline'!=_0x567d52['type'])return;const {data:_0x622cb5}=_0x567d52;if(_0x622cb5&&'pasteFormat'===_0x622cb5['commandName']){const _0x3572a9=[],_0x17308c=_0x622cb5['commandParams'][0x0];for(const [_0x32417a,_0x58f47c]of Object['entries'](_0x17308c))_0x3572a9['push'](ro(_0x25ab3d,_0x32417a,_0x58f47c));return _0x3572a9['length']?{'type':'format','content':o(_0x315e95,'*Set\x20format\x20to:*\x20%0',_0x3572a9['join'](',\x20'))}:{'type':'format','content':o(_0x315e95,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x58176c,_0x524a85,_0x7d7145){const _0x34008e=_0x58176c['locale']['t'],_0x167171=_0x524a85['split'](/(?=[A-Z])/)['join']('\x20'),_0x532ff3=_0x34008e(_0x167171['charAt'](0x0)['toUpperCase']()+_0x167171['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x7d7145)return _0x532ff3;if('fontColor'===_0x524a85||'fontBackgroundColor'===_0x524a85){const _0x169602=_0x137d59(_0x58176c['config']['get']('fontColor.colors'))['find'](_0xacd7ac=>_0xacd7ac['model']==_0x7d7145);return _0x532ff3+'\x20('+(_0x169602?_0x34008e(_0x169602['label'])['toLowerCase']():_0x7d7145)+')';}if('fontSize'===_0x524a85&&isNaN(parseFloat(_0x7d7145))){const _0x2defe5=_0x58176c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x58176c['config']['get']('fontSize.options'))['find'](_0x4adc38=>_0x4adc38['model']==_0x7d7145);return _0x532ff3+'\x20('+(_0x2defe5?_0x34008e(_0x2defe5['title'])['toLowerCase']():_0x7d7145)+')';}return _0x532ff3+'\x20('+_0x7d7145+')';}class it extends _0x959a6f{['_headingOptions'];['afterInit'](){const _0x1c03a2=this['editor'];if(!_0x1c03a2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1c03a2['config']['get']('heading.options');const _0x8b20ea=_0x1c03a2['locale'],_0x2a2890=_0x1c03a2['plugins']['get']('TrackChangesEditing');_0x2a2890['enableDefaultAttributesIntegration']('heading');for(const _0x705a00 of this['_headingOptions'])'paragraph'!=_0x705a00['model']&&_0x2a2890['descriptionFactory']['registerElementLabel'](_0x705a00['model'],_0x3620a4=>{const _0x561d38=this['_getHeadingLevel'](_0x705a00['model']);return null!==_0x561d38?_0x30479c(_0x3620a4,_0x561d38):_0x3aa348(_0x3620a4,_0x705a00['title']);});function _0x30479c(_0x1862d8,_0xce091a){return o(_0x8b20ea,'ELEMENT_HEADING',[_0x1862d8,_0xce091a]);}function _0x3aa348(_0x44fdcf,_0x5a7b16){return o(_0x8b20ea,'ELEMENT_HEADING_CUSTOM',[_0x44fdcf,_0x5a7b16]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcb73ac=this['editor'],_0x12a4b1=_0xcb73ac['locale'];function _0xe3973b(_0xc909de,_0x4ca4a1){return o(_0x12a4b1,'ELEMENT_HEADING_CUSTOM',[_0xc909de,_0x4ca4a1]);}_0xcb73ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x368635=>{if('formatBlock'!=_0x368635['type'])return;const {data:_0x39e65b}=_0x368635;if(_0x39e65b&&'heading'==_0x39e65b['commandName']){const _0x2fc6a3=_0x39e65b['commandParams'][0x0]['value'],_0x591c70=this['_getHeadingLevel'](_0x2fc6a3);if(null!==_0x591c70)return{'type':'format','content':o(_0x12a4b1,'*Change\x20to:*\x20%0',(_0xf3007e=0x1,_0x299826=_0x591c70,o(_0x12a4b1,'ELEMENT_HEADING',[_0xf3007e,_0x299826])))};const _0x510bb0=this['_headingOptions']['find'](_0x31f365=>_0x31f365['model']===_0x2fc6a3)['title'];return{'type':'format','content':o(_0x12a4b1,'*Change\x20to:*\x20%0',_0xe3973b(0x1,_0x510bb0))};}var _0xf3007e,_0x299826;});}['_getHeadingLevel'](_0x185ac5){const _0x4a2149=_0x185ac5['match'](/^heading(\d+)/);if(_0x4a2149)return _0x4a2149[0x1];const _0x182f54=this['_headingOptions']?.['find'](_0x43c585=>_0x43c585['model']==_0x185ac5);if(_0x182f54&&_0x182f54['view']){const _0xaf2e82=_0x182f54['view'],_0x4a30b9=(_0xaf2e82['name']??_0xaf2e82)['match'](/^h(\d+)/);if(_0x4a30b9)return _0x4a30b9[0x1];}return null;}}class et extends _0x959a6f{['afterInit'](){const _0x1b3b2e=this['editor'];if(!_0x1b3b2e['plugins']['has']('HighlightEditing'))return;const _0x4ceb2f=_0x1b3b2e['plugins']['get']('TrackChangesEditing'),_0x570f5b=_0x1b3b2e['locale'];_0x4ceb2f['enableDefaultAttributesIntegration']('highlight'),_0x4ceb2f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x570f5b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ddd31=this['editor'],_0x4ad41d=_0x4ddd31['locale'];_0x4ddd31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57e0af=>{if('formatInline'!=_0x57e0af['type'])return;const {data:_0x178401}=_0x57e0af;if(_0x178401&&'highlight'==_0x178401['commandName']){const _0x499791=_0x4ad41d['t'],_0x3026e2=_0x178401['commandParams'][0x0]['value'];if(_0x3026e2){const _0x717f8=_0x4ddd31['config']['get']('highlight.options')['find'](_0x4bfb1c=>_0x4bfb1c['model']==_0x3026e2),_0x18667a=_0x499791(_0x717f8['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ad41d,'*Set\x20highlight:*\x20%0',_0x18667a),'color':{'value':_0x717f8['color'],'title':_0x717f8['title']}};}return{'type':'format','content':o(_0x4ad41d,'*Remove\x20highlight*',o(_0x4ad41d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x959a6f{['afterInit'](){const _0x57997c=this['editor'];if(!_0x57997c['plugins']['has']('HorizontalLineEditing'))return;_0x57997c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa118c5=_0x57997c['plugins']['get']('TrackChangesEditing'),_0x34cb84=_0x57997c['locale'];_0xa118c5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1db868=>o(_0x34cb84,'ELEMENT_HORIZONTAL_LINE',_0x1db868));}}class ot extends _0x959a6f{['afterInit'](){const _0x4ea8af=this['editor'];if(!_0x4ea8af['plugins']['has']('HtmlEmbed'))return;const _0x1ad877=_0x4ea8af['plugins']['get']('TrackChangesEditing'),_0x4318c2=_0x4ea8af['locale'];_0x1ad877['descriptionFactory']['registerElementLabel']('rawHtml',_0x901f18=>o(_0x4318c2,'ELEMENT_HTML_EMBED',_0x901f18)),_0x1ad877['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1ad877['descriptionFactory']['registerDescriptionCallback'](_0x2e87c3=>{if('attribute'!=_0x2e87c3['type'])return;const {data:_0x1128ff}=_0x2e87c3;if(_0x1128ff&&'value'==_0x1128ff['key']&&_0x2e87c3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2850c8=o(_0x4318c2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4318c2,'*Change\x20%0\x20content*',_0x2850c8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46693a=this['editor'],_0x2565c5=_0x46693a['locale'];_0x46693a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18f6ff=>{if('formatBlock'!=_0x18f6ff['type'])return;const {data:_0x108355}=_0x18f6ff;if(_0x108355&&'htmlEmbed'==_0x108355['commandName']){const _0x4ac3e3=o(_0x2565c5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2565c5,'*Change\x20%0\x20content*',_0x4ac3e3)};}});}}class rt extends _0x959a6f{['afterInit'](){const _0x47e5af=this['editor'];if(!_0x47e5af['plugins']['has']('ImageEditing'))return;const _0x35a8f3=_0x47e5af['plugins']['get']('TrackChangesEditing'),_0x3862c5=_0x47e5af['plugins']['get']('ImageUtils'),_0x1c406a=_0x47e5af['locale'];_0x35a8f3['enableCommand']('insertImage'),_0x35a8f3['descriptionFactory']['registerElementLabel']('imageBlock',_0x9021ad=>o(_0x1c406a,'ELEMENT_IMAGE',_0x9021ad)),_0x35a8f3['descriptionFactory']['registerElementLabel']('imageInline',_0x2f851a=>o(_0x1c406a,'ELEMENT_INLINE_IMAGE',_0x2f851a)),_0x35a8f3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1c406a,'ELEMENT_CAPTION')),_0x47e5af['plugins']['has']('ImageUploadEditing')&&_0x35a8f3['enableCommand']('uploadImage'),_0x47e5af['plugins']['has']('ImageBlockEditing')&&_0x47e5af['plugins']['has']('ImageInlineEditing')&&(_0x35a8f3['enableCommand']('imageTypeInline',(_0x16bb7d,_0x39b45a)=>{const _0x17a087=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']);_0x47e5af['model']['change'](()=>{_0x35a8f3['markBlockFormat'](_0x17a087,{'commandName':'imageTypeInline','commandParams':[_0x39b45a]},[],'convertBlockImageToInline');});}),_0x35a8f3['enableCommand']('imageTypeBlock',(_0x3746b3,_0x24ffad)=>{_0x47e5af['model']['change'](_0x28a0d4=>{let _0x3a0f02=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']),_0x54f2a9=_0x28a0d4['createRangeOn'](_0x3a0f02);const _0x2fb849=_0x590fe8['fromPosition'](_0x54f2a9['start'],'toPrevious'),_0x493474=_0x590fe8['fromPosition'](_0x54f2a9['end'],'toNext');_0x35a8f3['forceDefaultExecution'](()=>_0x3746b3(_0x24ffad)),_0x3a0f02=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']),_0x54f2a9=_0x28a0d4['createRangeOn'](_0x3a0f02);const _0xd2a808=_0x28a0d4['createRange'](_0x2fb849,_0x493474);_0x2fb849['detach'](),_0x493474['detach'](),_0x35a8f3['markBlockFormat'](_0x3a0f02,{'commandName':'imageTypeInline','commandParams':[_0x24ffad]},[],'convertInlineImageToBlock'),_0xd2a808['start']['isBefore'](_0x54f2a9['start'])&&_0x35a8f3['markInsertion'](_0x28a0d4['createRange'](_0xd2a808['start'],_0x54f2a9['start']),'convertInlineImageToBlock'),_0x54f2a9['end']['isBefore'](_0xd2a808['end'])&&_0x35a8f3['markInsertion'](_0x28a0d4['createRange'](_0x54f2a9['end'],_0xd2a808['end']),'convertInlineImageToBlock');});}),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35a8f3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x203f48])=>{const _0x54c218=_0x35a8f3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f6501=_0x203f48['start'],_0x19d704=_0x203f48['end'];const _0x2b0c1b=_0x47e5af['model']['schema']['getNearestSelectionRange'](_0x3f6501,'backward'),_0x3c2e89=_0x47e5af['model']['schema']['getNearestSelectionRange'](_0x19d704,'forward');_0x2b0c1b['isCollapsed']&&(_0x3f6501=_0x2b0c1b['start']),_0x3c2e89['isCollapsed']&&(_0x19d704=_0x3c2e89['end']),_0x54c218([_0x47e5af['model']['createRange'](_0x3f6501,_0x19d704)]);}),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x48152f),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x48152f)),_0x47e5af['plugins']['has']('ImageCaptionEditing')&&(_0x35a8f3['enableCommand']('toggleImageCaption',(_0xb4092e,_0x2795f8)=>{const _0x223844=_0x47e5af['plugins']['get']('ImageCaptionUtils');let _0x5bdd1a=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']),_0x3c1f8e=_0x223844['getCaptionFromImageModelElement'](_0x5bdd1a);_0x47e5af['model']['change'](()=>{if(_0x3c1f8e)return void _0x35a8f3['markDeletion'](_0x47e5af['model']['createRangeOn'](_0x3c1f8e));const _0x1d6305=_0x3862c5['isBlockImage'](_0x5bdd1a);_0xb4092e(_0x2795f8),_0x5bdd1a=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']),_0x3c1f8e=_0x223844['getCaptionFromImageModelElement'](_0x5bdd1a),_0x35a8f3['markInsertion'](_0x47e5af['model']['createRangeOn'](_0x3c1f8e),_0x1d6305?null:'imageCaption');});}),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x48152f));const _0x7d77cc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3af8fb(_0x540fa2,_0x121ce9){const _0x408b6c=_0x7d77cc['findIndex'](({type:_0x21c6e7,subType:_0x338b6c})=>_0x540fa2['type']==_0x21c6e7&&_0x540fa2['subType']==_0x338b6c),_0x3a2057=_0x7d77cc['findIndex'](({type:_0x5f21ac,subType:_0x180d31})=>_0x121ce9['type']==_0x5f21ac&&_0x121ce9['subType']==_0x180d31);if(_0x408b6c<0x0||_0x3a2057<0x0)return!0x1;const _0x2e9e7d=_0x540fa2['getFirstRange'](),_0x2bf79f=_0x121ce9['getFirstRange']();if((0x0==_0x408b6c||0x1==_0x408b6c)&&0x2==_0x3a2057&&_0x2e9e7d['isIntersecting'](_0x2bf79f))return!0x0;if(0x2==_0x408b6c&&0x3==_0x3a2057){const _0x3d0d58=_0x35a8f3['_findSuggestions'](_0x2e9e7d,'insertion')['filter'](({suggestion:_0x37cf66,meta:_0x26b82c})=>_0x26b82c['isOwn']&&'convertInlineImageToBlock'==_0x37cf66['subType']);if(_0x3d0d58['length']>0x1&&_0x2bf79f['end']['isEqual'](_0x2e9e7d['start']))return!0x0;if(0x1==_0x3d0d58['length']&&(_0x2e9e7d['start']['isEqual'](_0x2bf79f['end'])||_0x2e9e7d['end']['isEqual'](_0x2bf79f['start'])))return!0x0;}if(0x3==_0x408b6c&&0x3==_0x3a2057&&_0x2e9e7d['start']['isBefore'](_0x2bf79f['start'])){const _0x4ac87a=_0x2e9e7d['end']['nodeAfter'],_0x586604=_0x2bf79f['start']['nodeBefore'];return _0x3862c5['isBlockImage'](_0x4ac87a)&&_0x4ac87a===_0x586604;}return!0x1;}function _0x48152f(_0x14f488,_0x691a3a){return _0x3af8fb(_0x14f488,_0x691a3a)?[_0x14f488,_0x691a3a]:_0x3af8fb(_0x691a3a,_0x14f488)?[_0x691a3a,_0x14f488]:null;}_0x47e5af['plugins']['has']('ImageResize')&&(_0x35a8f3['enableDefaultAttributesIntegration']('resizeImage'),_0x35a8f3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1c406a,'FORMAT_IMAGE_SIZE'))),_0x47e5af['plugins']['has']('ImageTextAlternativeEditing')&&_0x35a8f3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x47e5af['plugins']['has']('PictureEditing')&&_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x276979=>{if('attribute'!=_0x276979['type'])return;const {data:_0x423a48}=_0x276979;return _0x423a48&&'sources'==_0x423a48['key']?{'type':'format','content':''}:void 0x0;}),_0x47e5af['plugins']['has']('ImageSizeAttributes')&&_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0xa94c1=>{if('attribute'!=_0xa94c1['type'])return;const {data:_0x4fe732}=_0xa94c1;return!_0x4fe732||'width'!=_0x4fe732['key']&&'height'!=_0x4fe732['key']?void 0x0:{'type':'format','content':''};}),_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x46cfe5=>{if(!!_0x7d77cc['find'](({type:_0x1cd48e,subType:_0x17bb42})=>_0x46cfe5['type']==_0x1cd48e&&_0x46cfe5['subType']==_0x17bb42))return _0x46cfe5['previous']?{}:void 0x0;}),_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x1a70d6=>{if('insertion'==_0x1a70d6['type']||'deletion'==_0x1a70d6['type']){const _0x25c527=_0x1a70d6['getContainedElement']();if(_0x25c527&&_0x25c527['is']('element','caption'))return{'type':'insertion'==_0x1a70d6['type']?'addObject':'removeObject','element':_0x25c527,'quantity':0x1};}}),_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x1c8d2e=>'formatBlock'==_0x1c8d2e['type']&&'convertInlineImageToBlock'==_0x1c8d2e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1c8d2e['type']&&'convertBlockImageToInline'==_0x1c8d2e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x34eb77=>{if('attribute'!=_0x34eb77['type'])return;const {data:_0x117dbe}=_0x34eb77;if(!_0x117dbe||'alt'!=_0x117dbe['key'])return;const _0x26b700=_0x117dbe['newValue'];return _0x26b700?{'type':'format','content':o(_0x1c406a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x26b700+'\x22')}:{'type':'format','content':o(_0x1c406a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x585362=this['editor'],_0x518078=_0x585362['locale'];_0x585362['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x479f25=>{if('formatBlock'!=_0x479f25['type']&&'formatInline'!=_0x479f25['type'])return;const {data:_0x3844d0}=_0x479f25;if(_0x3844d0){if('imageTextAlternative'==_0x3844d0['commandName']){const _0x2e4248=_0x3844d0['commandParams'][0x0]['newValue'];return _0x2e4248?{'type':'format','content':o(_0x518078,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e4248+'\x22')}:{'type':'format','content':o(_0x518078,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3844d0['commandName']){const _0x30fff1=_0x3844d0['commandParams'][0x0]['width'];return _0x30fff1?{'type':'format','content':o(_0x518078,'*Set\x20image\x20width:*\x20%0',_0x30fff1)}:{'type':'format','content':o(_0x518078,'*Reset\x20image\x20width*')};}}});}}class at extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x248a1b=this['editor']['locale'],_0x368bdd=this['editor']['plugins']['get']('TrackChangesEditing');_0x368bdd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x368bdd['descriptionFactory']['registerDescriptionCallback'](_0x1b98dc=>{if('attribute'!=_0x1b98dc['type'])return;const {data:_0x459eb0}=_0x1b98dc;return _0x459eb0&&'src'==_0x459eb0['key']?_0x459eb0['newValue']&&_0x459eb0['oldValue']?{'type':'format','content':o(_0x248a1b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xdc511e=this['editor']['plugins']['get']('TrackChangesEditing');_0xdc511e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xdc511e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdc511e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xdc511e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22fbb2=this['editor'],_0xe6f885=_0x22fbb2['locale'];_0x22fbb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38c408=>{if('formatBlock'!=_0x38c408['type']&&'formatInline'!=_0x38c408['type'])return;const {data:_0x4083ca}=_0x38c408;if(!_0x4083ca||'replaceImageSource'!=_0x4083ca['commandName'])return;return{'type':'format','content':o(_0xe6f885,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x959a6f{['afterInit'](){const _0x28477c=this['editor'];if(!_0x28477c['plugins']['has']('ImageStyleEditing'))return;const _0x2f8509=_0x28477c['plugins']['get']('TrackChangesEditing'),_0x51da61=_0x28477c['plugins']['get']('ImageUtils'),_0x34f0b6={};_0x2f8509['enableCommand']('imageStyle',(_0x44b0da,_0x2bd66d)=>{const _0x27cc5b=_0x28477c['plugins']['get']('Users')['me'],_0x3c6b05=_0x28477c['commands']['get']('imageStyle');let _0x83a62e=_0x51da61['getClosestSelectedImageElement'](_0x28477c['model']['document']['selection']),_0x509c21=_0x28477c['model']['createRangeOn'](_0x83a62e),_0x261acb=_0x3c6b05['value'];if(_0x261acb==_0x2bd66d['value'])return;const _0x5748ac={'commandName':'imageStyle','commandParams':[_0x2bd66d],'formatGroupId':_0x257abf()};_0x28477c['model']['change'](()=>{if(_0x2f8509['getSuggestions']()['filter'](_0x1aa160=>_0x1aa160['isInContent']&&_0x27cc5b==_0x1aa160['author']&&('formatBlock'==_0x1aa160['type']||'formatInline'==_0x1aa160['type'])&&('imageStylePreApply'==_0x1aa160['subType']||'imageStylePostApply'==_0x1aa160['subType'])&&_0x1aa160['getFirstRange']()['isEqual'](_0x509c21))['forEach'](_0x5678cc=>_0x2f8509['discardSuggestion'](_0x5678cc['head'])),_0x83a62e=_0x51da61['getClosestSelectedImageElement'](_0x28477c['model']['document']['selection']),_0x509c21=_0x28477c['model']['createRangeOn'](_0x83a62e),_0x3c6b05['refresh'](),_0x28477c['commands']['get']('imageTypeInline')['refresh'](),_0x28477c['commands']['get']('imageTypeBlock')['refresh'](),_0x261acb=_0x3c6b05['value'],_0x261acb!=_0x2bd66d['value'])return _0x51da61['isInlineImage'](_0x83a62e)&&_0x3c6b05['shouldConvertImageType'](_0x2bd66d['value'],_0x83a62e)?(_0x44b0da({..._0x2bd66d,'setImageSizes':!0x1}),_0x83a62e=_0x51da61['getClosestSelectedImageElement'](_0x28477c['model']['document']['selection']),void _0x2f8509['markBlockFormat'](_0x83a62e,{..._0x5748ac,'commandReversedParams':[{'value':_0x261acb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x51da61['isBlockImage'](_0x83a62e)?_0x2f8509['markBlockFormat'](_0x83a62e,_0x5748ac,[],'imageStylePostApply'):_0x2f8509['markInlineFormat'](_0x509c21,_0x5748ac,'imageStylePostApply'));});});for(const _0x4a3c6c of _0x28477c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x34f0b6[_0x4a3c6c['name']]=_0x4a3c6c['title']['toLowerCase']();_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x375bdd])=>{_0x51da61['setImageNaturalSizeAttributes'](_0x375bdd['getContainedElement']());}),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x476a55,_0x2e223a)=>{_0x2f8509['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x476a55,{'commandName':_0x2e223a['commandName'],'commandParams':_0x2e223a['commandReversedParams']});}),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5d0d34,_0x159c9a){if(_0x58daca(_0x5d0d34,_0x159c9a))return[_0x5d0d34,_0x159c9a];if(_0x58daca(_0x159c9a,_0x5d0d34))return[_0x159c9a,_0x5d0d34];return null;});const _0x22afe2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58daca(_0x2fea90,_0x205d70){const _0x40d6dc=_0x22afe2['findIndex'](({type:_0x1cf140,subType:_0x43d9e7})=>_0x2fea90['type']==_0x1cf140&&_0x2fea90['subType']==_0x43d9e7),_0x3acf85=_0x22afe2['findIndex'](({type:_0x19ef03,subType:_0xb1e25a})=>_0x205d70['type']==_0x19ef03&&_0x205d70['subType']==_0xb1e25a);if(_0x40d6dc<0x0||_0x3acf85<0x0)return!0x1;const _0x5f541e=_0x2fea90['getFirstRange'](),_0x5c7458=_0x205d70['getFirstRange']();if((0x0==_0x40d6dc||0x1==_0x40d6dc)&&0x2==_0x3acf85&&_0x5f541e['isIntersecting'](_0x5c7458))return!0x0;if(0x2==_0x40d6dc&&0x3==_0x3acf85){const _0x46a2a2=_0x2f8509['_findSuggestions'](_0x5f541e,'insertion')['filter'](({suggestion:_0x1cff34,meta:_0x23b293})=>_0x23b293['isOwn']&&'convertInlineImageToBlock'==_0x1cff34['subType']);if(_0x46a2a2['length']>0x1&&_0x5c7458['end']['isEqual'](_0x5f541e['start']))return!0x0;if(0x1==_0x46a2a2['length']&&(_0x5f541e['start']['isEqual'](_0x5c7458['end'])||_0x5f541e['end']['isEqual'](_0x5c7458['start'])))return!0x0;}if(0x3==_0x40d6dc&&0x3==_0x3acf85&&_0x5f541e['start']['isBefore'](_0x5c7458['start'])){const _0x804565=_0x5f541e['end']['nodeAfter'],_0x5c0505=_0x5c7458['start']['nodeBefore'];return _0x51da61['isBlockImage'](_0x804565)&&_0x804565===_0x5c0505;}return!0x1;}_0x28477c['model']['document']['registerPostFixer'](()=>{let _0x597993=!0x1;const _0x1c68af=Array['from'](_0x28477c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2aba3b,data:_0x1d9c8a}of _0x1c68af){const {group:_0x18e132,type:_0x3947f6,subType:_0x432d5c,id:_0x3484e2}=_0x2f8509['_splitMarkerName'](_0x2aba3b);if('suggestion'==_0x18e132&&_0x2f8509['hasSuggestion'](_0x3484e2)){if('formatBlock'==_0x3947f6&&('imageStylePreApply'==_0x432d5c||'imageStylePostApply'==_0x432d5c)){const _0x270d29=_0x2f8509['getSuggestion'](_0x3484e2);if(_0x1d9c8a['newRange']){const _0x4a641c=_0x270d29['getFirstRange']()['getContainedElement']();if(_0x51da61['isBlockImage'](_0x4a641c))continue;_0x2f8509['discardSuggestion'](_0x270d29),_0x597993=!0x0;}}if('insertion'==_0x3947f6&&'imageCaption'==_0x432d5c&&!_0x1d9c8a['newRange']){const _0x1c24d7=_0x2f8509['getSuggestion'](_0x3484e2);_0x1c24d7['next']&&_0x1c24d7['next']['isInContent']&&(_0x2f8509['discardSuggestion'](_0x1c24d7['next']),_0x597993=!0x0);}}}return _0x597993;}),this['_registerLegacyDescription'](_0x34f0b6);}['_registerLegacyDescription'](_0x1bc92f){const _0x5337c3=this['editor'],_0x3bf46a=_0x5337c3['locale'];_0x5337c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x95af11=>{if('formatBlock'!=_0x95af11['type']&&'formatInline'!=_0x95af11['type'])return;const {data:_0x342234}=_0x95af11;if(!_0x342234||'imageStyle'!=_0x342234['commandName'])return;const _0x23dce2=_0x342234['commandParams'][0x0]['value'];return _0x2afe29('side'===_0x23dce2?o(_0x3bf46a,'FORMAT_SIDE_IMAGE'):_0x1bc92f[_0x23dce2]||_0x23dce2);function _0x2afe29(_0x2dbe69){return{'type':'format','content':o(_0x3bf46a,'*Format:*\x20%0',_0x2dbe69)};}});}}class ut extends _0x959a6f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x555b2a){super(_0x555b2a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x465858=this['editor'],_0x21e783=_0x465858['commands']['get']('importWord'),_0x545bd4=_0x465858['commands']['get']('trackChanges');_0x21e783&&(_0x21e783['on']('execute',(_0x21899c,[,_0x68df9f])=>{this['_trackChangesValueDuringImport']=_0x545bd4['value'],_0x68df9f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x21e783,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x21e783,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x545bd4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x465858['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x28b4fb,_0xd6dbba){const {suggestions:_0x2ab4b6}=_0xd6dbba,_0x23e231=this['editor']['commands']['get']('trackChanges'),_0x20368c=_0x23e231['value'];this['_trackChangesValueDuringImport']!==_0x20368c&&(_0x23e231['execute'](),this['_trackChangesExecuted']=!0x0),_0x2ab4b6&&_0x2ab4b6['forEach'](({id:_0x4ea7a2,type:_0x188d2b,author:_0x5eb2f5,created_at:_0x3947a5})=>{const _0x1ab437={'id':_0x4ea7a2,'type':_0x188d2b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5eb2f5,'createdAt':_0x3947a5?new Date(_0x3947a5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1ab437);});}}class ft extends _0x959a6f{['afterInit'](){const _0x4d89bc=this['editor'],_0x1880f8=_0x4d89bc['plugins']['get']('TrackChangesEditing');if(_0x4d89bc['plugins']['has']('IndentEditing')&&(_0x1880f8['enableCommand']('indent'),_0x1880f8['enableCommand']('outdent')),_0x4d89bc['plugins']['has']('IndentBlock')){for(const _0x5ab513 of['indentBlock','outdentBlock'])_0x1880f8['enableDefaultAttributesIntegration'](_0x5ab513);}const _0x5a31e4=_0x4d89bc['locale'];_0x1880f8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5a31e4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a0738=this['editor'],_0x2881a4=_0x5a0738['locale'],_0x4b5dda=_0x5a0738['plugins']['get']('TrackChangesEditing');_0x4b5dda['descriptionFactory']['registerDescriptionCallback'](_0x294d71=>{if('formatBlock'!=_0x294d71['type'])return;const {data:_0xca9294}=_0x294d71;if(!_0xca9294)return;if('indentBlock'!=_0xca9294['commandName']&&'outdentBlock'!=_0xca9294['commandName'])return;const _0x5f3732=_0x294d71['getItems']()[0x0],_0x279e95=_0x4b5dda['descriptionFactory']['getItemLabel'](_0x5f3732);return'indentBlock'==_0xca9294['commandName']?{'type':'format','content':o(_0x2881a4,'*Indent:*\x20%0',_0x279e95)}:'outdentBlock'==_0xca9294['commandName']?{'type':'format','content':o(_0x2881a4,'*Outdent:*\x20%0',_0x279e95)}:void 0x0;});}}class ht extends _0x959a6f{static get['requires'](){return[_0x3e50b0];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x959a6f{['afterInit'](){const _0x15e744=this['editor'];if(!_0x15e744['plugins']['has']('LinkEditing'))return;const _0x45b404=_0x15e744['plugins']['get']('TrackChangesEditing'),_0x2a9143=_0x15e744['commands']['get']('link');_0x45b404['enableDefaultAttributesIntegration']('link'),_0x45b404['enableDefaultAttributesIntegration']('unlink');for(const _0x366b9f of _0x2a9143['manualDecorators'])_0x45b404['descriptionFactory']['registerAttributeLabel'](_0x366b9f['id'],'link\x20('+_0x366b9f['label']['toLowerCase']()+')');_0x45b404['descriptionFactory']['registerDescriptionCallback'](_0x3a2b99=>{if('attribute'!=_0x3a2b99['type'])return;const {data:_0x5885b6}=_0x3a2b99;if(!_0x5885b6||'linkHref'!=_0x5885b6['key'])return;const _0xf44aa7=_0x5885b6['newValue'],_0x1475e4=_0x15e744['locale'];return{'type':'format','content':null==_0xf44aa7?o(_0x1475e4,'*Remove\x20link*'):o(_0x1475e4,'*Set\x20link:*\x20%0','\x22'+_0xf44aa7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd364=this['editor'],_0x20da2f=_0x1dd364['locale'];_0x1dd364['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x60cdc8=>{if('formatInline'!=_0x60cdc8['type'])return;const {data:_0x1a27d7}=_0x60cdc8;if(_0x1a27d7){if('link'==_0x1a27d7['commandName']){const _0x720d69=_0x1a27d7['commandParams'][0x0];return{'type':'format','content':o(_0x20da2f,'*Set\x20link:*\x20%0','\x22'+_0x720d69+'\x22')};}return'unlink'==_0x1a27d7['commandName']?{'type':'format','content':o(_0x20da2f,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x959a6f{['afterInit'](){const _0x453ad7=this['editor'],_0x350bd1=_0x453ad7['locale'];if(!_0x453ad7['plugins']['has']('LegacyListEditing'))return;const _0x55cdc3=_0x453ad7['plugins']['get']('TrackChangesEditing'),_0x2ecf06=_0x453ad7['plugins']['has']('LegacyTodoListEditing');function _0x41210b(_0x50f19f){return()=>{const _0x1b448e=_0x453ad7['model']['document']['selection'],_0x3c66f0=_0x453ad7['commands']['get'](_0x50f19f);if(_0x3c66f0['value'])return void _0x453ad7['execute']('paragraph',{});const _0x2e50b1=_0x50f19f['slice'](0x0,-0x4),_0x37f16a=function(_0x1b5c73,_0x165a87,_0x2a8a50){let _0x437c9e=Array['from'](_0x1b5c73)['filter'](_0x30d903=>function(_0x12004c,_0x32b8aa){return _0x32b8aa['checkChild'](_0x12004c['parent'],'listItem')&&!_0x32b8aa['isObject'](_0x12004c);}(_0x30d903,_0x2a8a50));_0x437c9e=_0x437c9e['filter'](_0x4b5671=>!_0x4b5671['is']('element','listItem')||_0x4b5671['getAttribute']('listType')!=_0x165a87);const _0x17da9a=new Set();for(const _0x536dae of _0x437c9e)_0x536dae['is']('element','listItem')?_0x17da9a['add'](Le(_0x536dae)):_0x17da9a['add'](_0x536dae);return Array['from'](_0x17da9a);}(_0x1b448e['getSelectedBlocks'](),_0x2e50b1,_0x453ad7['model']['schema']);_0x453ad7['model']['change'](()=>{for(const _0x3a14a2 of _0x37f16a)_0x55cdc3['markBlockFormat'](_0x3a14a2,{'commandName':_0x50f19f,'commandParams':[{'forceValue':!_0x3c66f0['value']}],'formatGroupId':'blockName'},Ee(_0x3a14a2));});};}function _0x3b6f54(_0x36326b){return()=>{const _0x5e9e64=function(_0x1eafaa){let _0x54ef45=Array['from'](_0x1eafaa);const _0x51db9f=_0x54ef45['findIndex'](_0x4a5cc3=>'listItem'!=_0x4a5cc3['name']);return _0x51db9f>-0x1&&(_0x54ef45=_0x54ef45['slice'](0x0,_0x51db9f)),_0x54ef45;}(_0x453ad7['model']['document']['selection']['getSelectedBlocks']()),_0x117068=_0x453ad7['model']['createRange'](_0x453ad7['model']['createPositionAt'](_0x5e9e64[0x0],'before'),_0x453ad7['model']['createPositionAt'](_0x5e9e64[_0x5e9e64['length']-0x1],'end'));_0x453ad7['model']['change'](()=>{_0x55cdc3['markBlockFormat'](_0x117068,{'commandName':_0x36326b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x286f9b){const _0xc5fb0f=new Set();for(const _0x3ec07a of _0x286f9b){let _0x1af4f7=_0x3ec07a['nextSibling'];for(;_0x1af4f7&&_0x1af4f7['getAttribute']('listIndent')>_0x3ec07a['getAttribute']('listIndent');)_0xc5fb0f['add'](_0x1af4f7),_0x1af4f7=_0x1af4f7['nextSibling'];}return Array['from'](_0xc5fb0f);}(_0x5e9e64));});};}_0x55cdc3['enableCommand']('numberedList',_0x41210b('numberedList')),_0x55cdc3['enableCommand']('bulletedList',_0x41210b('bulletedList')),_0x2ecf06&&_0x55cdc3['enableCommand']('todoList',_0x41210b('todoList')),_0x55cdc3['enableCommand']('indentList',_0x3b6f54('indentList')),_0x55cdc3['enableCommand']('outdentList',_0x3b6f54('outdentList')),_0x2ecf06&&_0x55cdc3['enableCommand']('checkTodoList',()=>{const _0x5af02c=_0x453ad7['commands']['get']('checkTodoList'),_0x4987c9=Array['from'](_0x5af02c['_selectedElements']);_0x4987c9['filter'](_0x5a357d=>_0x5a357d['getAttribute']('todoListChecked')!=_0x5af02c['value']),_0x453ad7['model']['change'](()=>{for(const _0x8cadf9 of _0x4987c9)_0x55cdc3['markBlockFormat'](_0x8cadf9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5af02c['value']}]});});}),_0x55cdc3['descriptionFactory']['registerElementLabel']('listItem',_0x22f61c=>o(_0x350bd1,'ELEMENT_LIST_ITEM',_0x22f61c)),_0x55cdc3['descriptionFactory']['registerDescriptionCallback'](_0xff83c8=>{if('formatBlock'!=_0xff83c8['type']&&'formatInline'!=_0xff83c8['type'])return;const {data:_0x5df86e}=_0xff83c8;if(_0x5df86e){if('numberedList'==_0x5df86e['commandName']||'bulletedList'==_0x5df86e['commandName']||'todoList'==_0x5df86e['commandName'])switch(_0x5df86e['commandName']['replace']('List','')){case'bulleted':return _0x25b09b(o(_0x350bd1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25b09b(o(_0x350bd1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25b09b(o(_0x350bd1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5df86e['commandName'])return{'type':'format','content':o(_0x350bd1,'*Indent:*\x20%0',o(_0x350bd1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5df86e['commandName'])return{'type':'format','content':o(_0x350bd1,'*Outdent:*\x20%0',o(_0x350bd1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5df86e['commandName'])return _0x5df86e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x350bd1,'*Check\x20item*')}:{'type':'format','content':o(_0x350bd1,'*Uncheck\x20item*')};}function _0x25b09b(_0x344ed7){return{'type':'format','content':o(_0x350bd1,'*Change\x20to:*\x20%0',_0x344ed7)};}});}}function Le(_0x2520cc){const _0x1fbcd7=_0x2520cc['getAttribute']('listIndent');if(0x0==_0x1fbcd7)return _0x2520cc;let _0x5ca083=_0x2520cc;for(;_0x2520cc['previousSibling']&&_0x2520cc['previousSibling']['is']('element','listItem');){const _0x1257e0=_0x2520cc['previousSibling']['getAttribute']('listIndent');if(_0x1257e0==_0x1fbcd7)_0x5ca083=_0x2520cc['previousSibling'];else{if(_0x1257e0<_0x1fbcd7)break;}_0x2520cc=_0x2520cc['previousSibling'];}return _0x5ca083;}function Ee(_0x236d0d){const _0x543bab=[];if(_0x236d0d['is']('element','listItem')&&_0x236d0d['getAttribute']('listIndent')>0x0){let _0x4b9e89=_0x236d0d['nextSibling'];for(;_0x4b9e89&&'listItem'==_0x4b9e89['name']&&_0x4b9e89['getAttribute']('listIndent')==_0x236d0d['getAttribute']('listIndent');)_0x543bab['push'](_0x4b9e89),_0x4b9e89=_0x4b9e89['nextSibling'];}return _0x543bab;}class mt extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2564ba=this['editor']['config']['get']('list.properties'),_0x1cf09a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2564ba['styles']&&_0x1cf09a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2564ba['reversed']&&_0x1cf09a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2564ba['startIndex']&&_0x1cf09a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1cf09a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x12ed38,_0x3f258d={}){const _0x5d6b1b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc70b9d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5d6b1b['markMultiRangeBlockFormat'](_0xc70b9d,{'commandName':'listStyle','commandParams':[{'type':_0x3f258d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x24f2bc,_0x1158b4={}){const _0x13e901=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d0024=this['_getSuggestionBlocks'](_0x495dba=>_0x495dba['is']('element','listItem')&&'numbered'===_0x495dba['getAttribute']('listType'));if(_0x5d0024['length']<0x1)return;const _0x13049f=_0x5d0024['map'](_0x58501c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58501c,'before'),this['editor']['model']['createPositionAt'](_0x58501c,0x0)));this['editor']['model']['change'](()=>{_0x13e901['markMultiRangeBlockFormat'](_0x13049f,{'commandName':'listReversed','commandParams':[{'reversed':_0x1158b4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4dd5ec,_0x3e102c={}){const _0x22052f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eecf0=this['_getSuggestionBlocks'](_0x432c2a=>_0x432c2a['is']('element','listItem')&&'numbered'===_0x432c2a['getAttribute']('listType'));if(_0x3eecf0['length']<0x1)return;const _0x386c94=_0x3eecf0['map'](_0x278c54=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x278c54,'before'),this['editor']['model']['createPositionAt'](_0x278c54,0x0)));this['editor']['model']['change'](()=>{_0x22052f['markMultiRangeBlockFormat'](_0x386c94,{'commandName':'listStart','commandParams':[{'startIndex':_0x3e102c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x297285){if('formatBlock'!=_0x297285['type']&&'formatInline'!=_0x297285['type'])return;const _0x5e4aaa=this['editor']['locale'],{data:_0x4ed0dd}=_0x297285;if(!_0x4ed0dd)return;let _0x30c378,_0x2115d4;switch(_0x4ed0dd['commandName']){case'listStyle':_0x30c378='*Change\x20to:*\x20%0',_0x2115d4={'type':'format','content':o(_0x5e4aaa,_0x30c378,o(_0x5e4aaa,this['_getTranslationKeyForListStyle'](_0x4ed0dd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x30c378=_0x4ed0dd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2115d4={'type':'format','content':o(_0x5e4aaa,_0x30c378)};break;case'listStart':_0x30c378='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2115d4={'type':'format','content':o(_0x5e4aaa,_0x30c378,_0x4ed0dd['commandParams'][0x0]['startIndex'])};}return _0x2115d4;}['_getSuggestionBlocksForListStyle'](){const _0x49de05=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ec1b5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3ec1b5[0x0]?.['is']('element','listItem')&&_0x3ec1b5['unshift'](..._0x49de05['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3ec1b5[_0x3ec1b5['length']-0x1]?.['is']('element','listItem')&&_0x3ec1b5['push'](..._0x49de05['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3ec1b5=[...new Set(_0x3ec1b5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3ec1b5=_0x3ec1b5['filter'](_0x5cb372=>_0x5cb372['is']('element','listItem'))),_0x3ec1b5;}['_getSuggestionBlocks'](_0x4bbaa7){const _0x42753b=this['editor']['plugins']['get']('LegacyListUtils');let _0x410188=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4bbaa7)['map'](_0x4e698d=>{const _0x268821=this['editor']['model']['createPositionAt'](_0x4e698d,0x0);return[..._0x42753b['getSiblingNodes'](_0x268821,'backward'),..._0x42753b['getSiblingNodes'](_0x268821,'forward')];})['flat']();return _0x410188=[...new Set(_0x410188)],_0x410188;}['_getTranslationKeyForListStyle'](_0x1d1b10){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1d1b10)||'default')['toUpperCase']()+'_LIST_'+_0x1d1b10['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x959a6f{['afterInit'](){const _0x32b87b=this['editor'];if(!_0x32b87b['plugins']['has']('MediaEmbedEditing'))return;const _0xeefeea=_0x32b87b['plugins']['get']('TrackChangesEditing'),_0x4b5798=_0x32b87b['locale'];_0xeefeea['enableCommand']('mediaEmbed'),_0xeefeea['descriptionFactory']['registerElementLabel']('media',_0x1cae00=>o(_0x4b5798,'ELEMENT_MEDIA',_0x1cae00));}}class pt extends _0x959a6f{['afterInit'](){const _0x100d09=this['editor'];_0x100d09['plugins']['has']('MentionEditing')&&_0x100d09['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x959a6f{['afterInit'](){const _0x3e9e3a=this['editor'];if(!_0x3e9e3a['plugins']['has']('MergeFieldsEditing'))return;const _0xf060f3=_0x3e9e3a['plugins']['get']('TrackChangesEditing'),_0x7a4eec=_0x3e9e3a['locale'];_0xf060f3['enableCommand']('insertMergeField'),_0xf060f3['enableCommand']('insertMergeFieldBlock'),_0xf060f3['enableCommand']('insertMergeFieldImage'),_0xf060f3['descriptionFactory']['registerElementLabel']('mergeField',_0x507870=>o(_0x7a4eec,'ELEMENT_MERGE_FIELD',_0x507870)),_0xf060f3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4805f8=>o(_0x7a4eec,'ELEMENT_MERGE_FIELD',_0x4805f8)),_0xf060f3['descriptionFactory']['registerDescriptionCallback'](_0x2816a4=>{if('insertion'!=_0x2816a4['type']&&'deletion'!=_0x2816a4['type'])return;const _0x295301=_0x2816a4['getContainedElement']();if(null==_0x295301)return;const _0x159cb9=_0x3e9e3a['plugins']['get']('MergeFieldsEditing');let _0x58b060;switch(_0x159cb9['getMergeFieldType'](_0x295301)){case null:return;case'image':{const _0x2c18a0=_0x159cb9['unwrapAffixes'](_0x295301['getAttribute']('src'));_0x58b060=_0x159cb9['getLabel'](_0x2c18a0)||_0x2c18a0;break;}default:{const _0x14a65d=_0x295301['getAttribute']('id');_0x58b060=_0x159cb9['getLabel'](_0x14a65d)||_0x14a65d;break;}}return'insertion'==_0x2816a4['type']?{'type':'insertion','content':o(_0x7a4eec,'*Insert:*\x20%0','\x22'+_0x58b060+'\x22\x20'+o(_0x7a4eec,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x7a4eec,'*Remove:*\x20%0','\x22'+_0x58b060+'\x22\x20'+o(_0x7a4eec,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x959a6f{['afterInit'](){const _0x262d19=this['editor'],_0x4d7b10=_0x262d19['plugins']['get']('TrackChangesEditing');_0x262d19['plugins']['has']('MultiLevelList')&&(_0x4d7b10['enableDefaultAttributesIntegration']('multiLevelList'),_0x4d7b10['descriptionFactory']['registerDescriptionCallback'](_0x507200=>this['handleDescriptions'](_0x507200)));}['handleDescriptions'](_0xb055a9){const _0x33e923=this['editor']['locale'],{data:_0x32504a}=_0xb055a9,_0x531137={'type':'format','content':''};if(_0x32504a&&'listMarkerStyle'==_0x32504a['key']){if(!_0x32504a['oldValue'])return{'type':'format','content':o(_0x33e923,'*Set\x20format:*\x20%0',o(_0x33e923,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32504a['newValue']+')'};if(!_0x32504a['newValue']){let _0x1dc42e=_0xb055a9['head'];for(;_0x1dc42e;){if(_0x1dc42e['data']&&'listType'==_0x1dc42e['data']['key']&&_0x1dc42e['data']['newValue'])return _0x531137;_0x1dc42e=_0x1dc42e['next'];}return{'type':'format','content':o(_0x33e923,'*Remove\x20format:*\x20%0',o(_0x33e923,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32504a['oldValue']+')'};}}}}class bt extends _0x959a6f{['afterInit'](){const _0x2f052b=this['editor'];if(!_0x2f052b['plugins']['has']('PageBreakEditing'))return;_0x2f052b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x26b16c=_0x2f052b['plugins']['get']('TrackChangesEditing'),_0x16e7b9=_0x2f052b['locale'];_0x26b16c['descriptionFactory']['registerElementLabel']('pageBreak',_0x3bb47b=>o(_0x16e7b9,'ELEMENT_PAGE_BREAK',_0x3bb47b));}}class yt extends _0x959a6f{['afterInit'](){const _0x52b4af=this['editor'];if(!_0x52b4af['plugins']['has']('Paragraph'))return;const _0x41561f=_0x52b4af['locale'],_0x3245c2=_0x52b4af['plugins']['get']('TrackChangesEditing');_0x3245c2['descriptionFactory']['registerElementLabel']('paragraph',_0x5f4781=>o(_0x41561f,'ELEMENT_PARAGRAPH',_0x5f4781)),_0x3245c2['enableDefaultAttributesIntegration']('paragraph'),_0x3245c2['enableCommand']('insertParagraph');const _0xcc0d91=_0x3245c2['descriptionFactory'];_0xcc0d91['registerDescriptionCallback'](_0x329d55=>{if('insertion'!==_0x329d55['type'])return;const {start:_0x4428b5,end:_0x2ab6d5}=_0x329d55['getFirstRange']();if(!_0x4428b5['isTouching'](_0x2ab6d5)||!_0x4428b5['nodeAfter'])return;const _0x499e79=_0x52b4af['model']['schema'],_0x140611=_0x4428b5['nodeAfter'];return _0x499e79['isBlock'](_0x140611)&&!_0x499e79['isLimit'](_0x140611)&&_0x499e79['checkChild'](_0x140611,'$text')?{'type':'insertion','content':o(_0x41561f,'*Insert:*\x20%0',_0xcc0d91['getItemLabel'](_0x140611,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27f855=this['editor'],_0x3174c9=_0x27f855['locale'];_0x27f855['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a061b=>{if('formatBlock'!=_0x1a061b['type'])return;const {data:_0x89cc2d}=_0x1a061b;return _0x89cc2d&&'paragraph'==_0x89cc2d['commandName']?{'type':'format','content':o(_0x3174c9,'*Change\x20to:*\x20%0',o(_0x3174c9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x959a6f{['afterInit'](){const _0x4d6b62=this['editor'];_0x4d6b62['commands']['get']('replaceSource')&&_0x4d6b62['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x959a6f{['afterInit'](){const _0x5499b3=this['editor'];if(!_0x5499b3['plugins']['has']('RemoveFormatEditing'))return;_0x5499b3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17336e=this['editor'];_0x17336e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x972690=>{if('formatBlock'!=_0x972690['type']&&'formatInline'!=_0x972690['type'])return;const {data:_0x42e5bb}=_0x972690;return _0x42e5bb&&'removeFormat'==_0x42e5bb['commandName']?{'type':'format','content':o(_0x17336e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x959a6f{['afterInit'](){const _0x223a5f=this['editor'];if(!_0x223a5f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x50a722=_0x223a5f['plugins']['get']('TrackChangesEditing');_0x50a722['enableCommand']('goToPreviousRestrictedEditingException'),_0x50a722['enableCommand']('goToNextRestrictedEditingException');const _0x17102f=_0x223a5f['plugins']['get']('RestrictedEditingModeEditing');_0x17102f['enableCommand']('trackChanges'),_0x17102f['enableCommand']('acceptSuggestion'),_0x17102f['enableCommand']('discardSuggestion'),_0x17102f['enableCommand']('acceptAllSuggestions'),_0x17102f['enableCommand']('discardAllSuggestions'),_0x17102f['enableCommand']('acceptSelectedSuggestions'),_0x17102f['enableCommand']('discardSelectedSuggestions');}}class At extends _0x959a6f{['afterInit'](){const _0x44b70a=this['editor'];if(!_0x44b70a['plugins']['has']('ShiftEnter'))return;const _0x2d01ba=_0x44b70a['plugins']['get']('TrackChangesEditing');_0x2d01ba['enableCommand']('shiftEnter'),_0x2d01ba['descriptionFactory']['registerElementLabel']('softBreak',_0x4d43c4=>o(_0x44b70a['locale'],'ELEMENT_LINE_BREAK',_0x4d43c4));}}function an(_0x589d92,_0x52ee66,_0x28f3d8){const _0x24b4ec=[];for(const _0x4b9f2e of _0x52ee66['getItems']())_0x4b9f2e['hasAttribute'](_0x589d92)&&_0x24b4ec['push'](_0x28f3d8['createRangeOn'](_0x4b9f2e));return _0x24b4ec;}class _t extends _0x959a6f{['afterInit'](){const _0x4f1b8c=this['editor'],_0x5b5711=_0x4f1b8c['plugins']['get']('TrackChangesEditing');_0x4f1b8c['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5b5711['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1ea4da=this['editor'],_0x3a6d37=_0x1ea4da['model'],_0x16c3ab=_0x1ea4da['locale'],_0x23ad45=_0x1ea4da['plugins']['get']('TrackChangesEditing'),_0x596405='restrictedEditingException',_0x5d747e=_0x1ea4da['commands']['get'](_0x596405);_0x23ad45['enableCommand'](_0x596405,(_0x262f0b,_0x5e38a3={})=>{const _0x443206=_0x3a6d37['document']['selection'];if(_0x443206['isCollapsed'])return void _0x262f0b(_0x5e38a3);const _0xba0b05=void 0x0!==_0x5e38a3['forceValue']?_0x5e38a3['forceValue']:!_0x5d747e['value'];_0x3a6d37['change'](()=>{const _0x417095=Array['from'](_0x443206['getRanges']());for(const _0x4a6358 of _0x417095){const _0x5b1dd1=_0xba0b05?[_0x4a6358]:an(_0x596405,_0x4a6358,_0x3a6d37);for(const _0x1b75b3 of _0x5b1dd1)_0x23ad45['markInlineFormat'](_0x1b75b3,{'commandName':_0x596405,'commandParams':[{'forceValue':_0xba0b05}]});}});}),_0x23ad45['descriptionFactory']['registerDescriptionCallback'](_0x3be7ea=>{if('formatBlock'!=_0x3be7ea['type']&&'formatInline'!=_0x3be7ea['type'])return;const {data:_0x511257}=_0x3be7ea;return _0x511257&&_0x511257['commandName']==_0x596405?_0x511257['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16c3ab,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x16c3ab,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4541f8=this['editor'],_0x5c56bb=_0x4541f8['locale'],_0x32eca8=_0x4541f8['plugins']['get']('TrackChangesEditing'),_0x4e8c01='restrictedEditingExceptionBlock',_0x4e23f8=this['editor']['commands']['get'](_0x4e8c01);_0x32eca8['enableCommand'](_0x4e8c01,(_0xb8be37,_0x5cc977={})=>{const _0x3e4953=this['editor']['model']['document']['selection'],_0x231ec3=_0x5cc977&&void 0x0!==_0x5cc977['forceValue']?_0x5cc977['forceValue']:!_0x4e23f8['value'];let _0x24843d=[];if(_0x231ec3){const _0x17d2c6=Array['from'](_0x3e4953['getSelectedBlocks']())['filter'](_0x4e99e0=>function(_0x7bf664){return!!_0x7bf664['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x4e99e0)||function(_0x47b9bb,_0x4adc9e){const _0x1aa3b3=_0x4adc9e['createContext'](_0x47b9bb['parent']);if(!_0x4adc9e['checkChild'](_0x1aa3b3,'restrictedEditingException'))return!0x1;if(!_0x4adc9e['checkChild'](_0x1aa3b3['push']('restrictedEditingException'),_0x47b9bb))return!0x1;return!0x0;}(_0x4e99e0,this['editor']['model']['schema']));_0x24843d=to(_0x17d2c6,_0x4541f8['model']);}else{const _0x2b6079=Array['from'](_0x3e4953['getSelectedBlocks']())['map'](_0x5aa918=>function(_0x10dd64){let _0x47aeb4=_0x10dd64;for(;_0x47aeb4['parent'];){if('restrictedEditingException'==_0x47aeb4['parent']['name'])return _0x47aeb4;_0x47aeb4=_0x47aeb4['parent'];}return null;}(_0x5aa918))['filter'](_0x210b71=>!!_0x210b71);_0x24843d=to(_0x2b6079,_0x4541f8['model']);}_0x4541f8['model']['change'](()=>{for(const _0x3bb79e of _0x24843d)_0x32eca8['markBlockFormat'](_0x3bb79e,{'commandName':_0x4e8c01,'commandParams':[{'forceValue':_0x231ec3}]});});}),_0x32eca8['descriptionFactory']['registerDescriptionCallback'](_0x4d73ef=>{const {data:_0x5863d4}=_0x4d73ef;if(_0x5863d4&&_0x5863d4['commandName']==_0x4e8c01)return _0x5863d4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c56bb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5c56bb,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x959a6f{['afterInit'](){const _0x3cb075=this['editor'];if(!_0x3cb075['plugins']['has']('Style')||!_0x3cb075['plugins']['has']('DataSchema'))return;const _0x2f3b26=_0x3cb075['plugins']['get']('TrackChangesEditing'),_0x4d2b38=_0x3cb075['locale'],_0x3bc246=_0x3cb075['config']['get']('style')||{},_0x3522ae=_0x3cb075['plugins']['get']('GeneralHtmlSupport'),_0x5da685=_0x3cb075['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3cb075['plugins']['get']('DataSchema'),_0x3bc246['definitions']);_0x2f3b26['enableDefaultAttributesIntegration']('style');const _0x496e54=new Set();for(const _0x2e4ee3 of _0x5da685['block']){const _0x1e9272=_0x3522ae['getGhsAttributeNameForElement'](_0x2e4ee3['element']);_0x496e54['add'](_0x1e9272);}const _0x533b78=new Set();for(const _0x1d7eda of _0x5da685['inline']){const _0x2e0014=_0x3522ae['getGhsAttributeNameForElement'](_0x1d7eda['element']);_0x533b78['add'](_0x2e0014);for(const _0xd740c6 of _0x1d7eda['ghsAttributes'])_0x533b78['add'](_0xd740c6);}for(const _0x43dacf of _0x496e54)_0x2f3b26['descriptionFactory']['registerAttributeLabel'](_0x43dacf,o(_0x4d2b38,'FORMAT_STYLE'));for(const _0x384f8d of _0x533b78)_0x2f3b26['descriptionFactory']['registerAttributeLabel'](_0x384f8d,o(_0x4d2b38,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34628b=this['editor'],_0x4c2f40=_0x34628b['locale'];_0x34628b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf18535=>{if('formatBlock'!=_0xf18535['type']&&'formatInline'!=_0xf18535['type'])return;const {data:_0x119798}=_0xf18535;return _0x119798&&'style'===_0x119798['commandName']?_0x119798['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c2f40,'*Set\x20format:*\x20%0',_0x119798['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4c2f40,'*Remove\x20format:*\x20%0',_0x119798['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x959a6f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x56ccba){super(_0x56ccba),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1368c3=this['editor'],_0xd65ae2=_0x1368c3['model']['document']['selection'];if(!_0x1368c3['plugins']['has']('TableEditing'))return;const _0x3fa181=_0x1368c3['locale'],_0x49193e=_0x1368c3['plugins']['get']('TrackChangesEditing'),_0x37a8db=_0x1368c3['plugins']['get']('TableUtils');_0x49193e['descriptionFactory']['registerElementLabel']('table',_0x18292c=>o(_0x3fa181,'ELEMENT_TABLE',_0x18292c)),this['_setupColumnsRowsFixing'](),_0x49193e['enableCommand']('insertTable'),_0x49193e['enableCommand']('selectTableRow'),_0x49193e['enableCommand']('selectTableColumn');for(const _0xf8c684 of['insertTableRowAbove','insertTableRowBelow']){const _0x2df5e1=_0x1368c3['commands']['get'](_0xf8c684);_0x49193e['enableCommand'](_0xf8c684,_0x154271=>{_0x1368c3['model']['change'](_0xce4536=>{_0x154271();const _0x55525a='above'===_0x2df5e1['order'],_0x4416f8=_0x37a8db['getSelectionAffectedTableCells'](_0xd65ae2),_0x42d56d=_0x37a8db['getRowIndexes'](_0x4416f8),_0x2c4fd8=_0x55525a?_0x42d56d['first']-0x1:_0x42d56d['last']+0x1,_0x21d796=_0x4416f8[0x0]['findAncestor']('table'),_0x5bca15=_0x37a8db['createTableWalker'](_0x21d796,{'startRow':_0x2c4fd8,'endRow':_0x2c4fd8}),_0x274f3a=Array['from'](_0x5bca15)['map'](_0x5256fe=>_0xce4536['createRangeOn'](_0x5256fe['cell']));_0x49193e['markMultiRangeInsertion'](_0x274f3a,'tableRow');});});}for(const _0x26a12a of['insertTableColumnLeft','insertTableColumnRight']){const _0x502994=_0x1368c3['commands']['get'](_0x26a12a);_0x49193e['enableCommand'](_0x26a12a,_0x5381fa=>{_0x1368c3['model']['change'](_0x3ac2f7=>{_0x5381fa();const _0x2c69f3='left'===_0x502994['order'],_0x202b96=_0x37a8db['getSelectionAffectedTableCells'](_0xd65ae2),_0x240455=_0x37a8db['getColumnIndexes'](_0x202b96),_0x702c05=_0x2c69f3?_0x240455['first']-0x1:_0x240455['last']+0x1,_0x279f62=_0x202b96[0x0]['findAncestor']('table'),_0x16a3ec=_0x37a8db['createTableWalker'](_0x279f62,{'startRow':0x0,'column':_0x702c05,'includeAllSlots':!0x1}),_0xa6e11=Array['from'](_0x16a3ec)['map'](_0x1cab79=>_0x3ac2f7['createRangeOn'](_0x1cab79['cell']));_0x49193e['markMultiRangeInsertion'](_0xa6e11,'tableColumn');});});}for(const _0x592043 of['removeTableRow','removeTableColumn']){const _0x40d7e2=_0x592043['substr'](0xb),_0x5f1bf6=_0x40d7e2['toLowerCase'](),_0x38f7c1=_0x5f1bf6['substr'](0x0,0x3)+'span',_0x21eb4a='table'+_0x40d7e2,_0x104bb4='min'+_0x40d7e2,_0x16d096='max'+_0x40d7e2;_0x49193e['enableCommand'](_0x592043,()=>{_0x1368c3['model']['change'](_0x296f43=>{const _0xb13a50=_0x37a8db['getSelectionAffectedTableCells'](_0xd65ae2),_0x179d24=_0xb13a50[0x0]['findAncestor']('table');let _0xaebeb4;if('removeTableRow'==_0x592043){const _0x395acd=_0x37a8db['getRowIndexes'](_0xb13a50);_0xaebeb4={'startRow':_0x395acd['first'],'endRow':_0x395acd['last'],'includeAllSlots':!0x0};}else{const _0x35a63e=_0x37a8db['getColumnIndexes'](_0xb13a50);_0xaebeb4={'startColumn':_0x35a63e['first'],'endColumn':_0x35a63e['last'],'includeAllSlots':!0x0};}const _0x2b98ed=_0x37a8db['createTableWalker'](_0x179d24,_0xaebeb4),_0x17ca22=Array['from'](_0x2b98ed)['map'](({cell:_0x3b2e96})=>_0x3b2e96),_0xb14817=_e(_0x17ca22['filter'](_0x389be6=>_0x389be6['hasAttribute'](_0x38f7c1))),_0x154e80=_e(_0x17ca22['filter'](_0xe84643=>!_0xe84643['hasAttribute'](_0x38f7c1)))['map'](_0x270f17=>_0x296f43['createRangeOn'](_0x270f17)),_0x5aa74e=_0x49193e['markMultiRangeDeletion'](_0x154e80,_0x21eb4a);if(_0x5aa74e&&('tableRow'==_0x5aa74e['subType']||'tableColumn'==_0x5aa74e['subType'])){const _0x55cf6a=this['_getSuggestionCoords'](_0x5aa74e);for(const _0x398a2b of _0xb14817){const _0x523a61=_0x296f43['createRangeOn'](_0x398a2b),_0x28c3a5=_0x37a8db['getCellLocation'](_0x398a2b),_0x2a7eb5=_0x398a2b['getAttribute'](_0x38f7c1)-0x1,_0x1981ca=_0x55cf6a[_0x104bb4],_0x5938a3=_0x55cf6a[_0x16d096];_0x1981ca<=_0x28c3a5[_0x5f1bf6]&&_0x28c3a5[_0x5f1bf6]+_0x2a7eb5<=_0x5938a3&&_0x5aa74e['addRange'](_0x523a61);}}});});}function _0x6851cc(_0x5b8bdd){const _0x420675=Array['from'](_0xd65ae2['getRanges']())['map'](_0x2a7baa=>_0x481a5c['fromRange'](_0x2a7baa));_0x1368c3['model']['change'](_0x5a3f75=>{const _0xcd6307=_0x5a3f75['batch'];_0x5b8bdd=_0x5b8bdd['filter'](_0x4bc232=>'$graveyard'!=_0x4bc232['root']['rootName']),_0x5a3f75['setSelection'](_0x5b8bdd),_0x1368c3['commands']['get']('removeTableRow')['refresh'](),_0x1368c3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1368c3['model']['enqueueChange'](()=>{_0x1368c3['model']['enqueueChange'](_0xcd6307,_0x255b8d=>{const _0x21e1b1=_0x420675['filter'](_0x347bb8=>'$graveyard'!=_0x347bb8['root']['rootName']);_0x21e1b1['length']>0x0&&_0x255b8d['setSelection'](_0x21e1b1);for(const _0x46fc0c of _0x420675)_0x46fc0c['detach']();});});});}function _0x291662(_0x1a2cff){_0x1368c3['model']['change'](_0x3ae368=>{const _0x681b82=Array['from'](_0xd65ae2['getRanges']())['map'](_0x11243b=>_0x481a5c['fromRange'](_0x11243b)),_0x23a5c4=[];for(const _0x2e6ed9 of _0x1a2cff)for(const _0x5e21c8 of _0x2e6ed9['getItems']({'shallow':!0x0}))_0x23a5c4['push'](_0x5e21c8);for(const _0x2843c9 of _0x23a5c4)'$graveyard'!=_0x2843c9['root']['rootName']&&(_0x3ae368['setSelection'](_0x3ae368['createPositionAt'](_0x2843c9,0x0)),_0x1368c3['commands']['get']('removeTableColumn')['refresh'](),_0x1368c3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1f2fde=_0x681b82['filter'](_0x5de369=>'$graveyard'!=_0x5de369['root']['rootName']);_0x1f2fde['length']>0x0&&_0x3ae368['setSelection'](_0x1f2fde);for(const _0x59430f of _0x681b82)_0x59430f['detach']();});}function _0x409922(_0x501627,_0x36b2ac){return _0x36b2ac['every'](_0x571e46=>_0x501627['some'](_0x586a11=>_0x586a11['end']['isEqual'](_0x571e46['start'])||_0x571e46['end']['isEqual'](_0x586a11['start'])));}function _0x1e204e(_0x244cd0,_0x4b09d9){return!_0x244cd0['some'](_0x59b632=>_0x4b09d9['some'](_0x30d0c7=>_0x59b632['isIntersecting'](_0x30d0c7)))&&_0x244cd0['some'](_0x2249af=>_0x4b09d9['some'](_0x20802b=>_0x2249af['end']['isTouching'](_0x20802b['start'])));}_0x49193e['descriptionFactory']['registerDescriptionCallback'](_0x1f4f89=>{if('insertion'!=_0x1f4f89['type']&&'deletion'!=_0x1f4f89['type'])return;const _0x5edd3a=_0x1f4f89['getContainedElement']();if(null!=_0x5edd3a&&_0x5edd3a['is']('element','table')){if('insertion'==_0x1f4f89['type']){const _0x5ed486=_0x1f4f89['getItems']()['filter'](_0x10e45e=>_0x10e45e['is']('$textProxy'))['map'](_0x27daa0=>_0x27daa0['data']);if(_0x5ed486['length'])return{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ed486['join']('\x20')+'\x22'))};}if('deletion'==_0x1f4f89['type']){const _0x238894=_0x1f4f89['getItems']()['filter'](_0x134d67=>_0x134d67['is']('$textProxy'))['map'](_0x194577=>_0x194577['data']);if(_0x238894['length'])return{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x238894['join']('\x20')+'\x22'))};}}}),_0x49193e['descriptionFactory']['registerDescriptionCallback'](_0x598e57=>{if('tableRow'==_0x598e57['subType']){const _0x22b9d0=_0x598e57['getItems']()['filter'](_0x4aef51=>_0x4aef51['is']('$textProxy'))['map'](_0x40710b=>_0x40710b['data']),_0x37e6cb=this['_getSuggestionCoords'](_0x598e57),_0x48c1fc=_0x37e6cb['maxRow']-_0x37e6cb['minRow']+0x1;if('insertion'==_0x598e57['type'])return _0x22b9d0['length']?{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48c1fc,'\x22'+_0x22b9d0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_ROW',_0x48c1fc))};if('deletion'==_0x598e57['type'])return _0x22b9d0['length']?{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48c1fc,'\x22'+_0x22b9d0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_ROW',_0x48c1fc))};}if('tableColumn'==_0x598e57['subType']){const _0x137a37=_0x598e57['getItems']()['filter'](_0x944437=>_0x944437['is']('$textProxy'))['map'](_0x2e45ba=>_0x2e45ba['data']),_0x4c0f63=this['_getSuggestionCoords'](_0x598e57),_0x204854=_0x4c0f63['maxColumn']-_0x4c0f63['minColumn']+0x1;if('insertion'==_0x598e57['type'])return _0x137a37['length']?{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x204854,'\x22'+_0x137a37['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_COLUMN',_0x204854))};if('deletion'==_0x598e57['type'])return _0x137a37['length']?{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x204854,'\x22'+_0x137a37['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_COLUMN',_0x204854))};}}),_0x49193e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x6851cc),_0x49193e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x6851cc),_0x49193e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x291662),_0x49193e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x291662),_0x49193e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x409922),_0x49193e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x409922),_0x49193e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1e204e),_0x49193e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1e204e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4e306c=this['editor'],_0x2b1f9f=_0x4e306c['model']['document']['selection'];return(_0xdb0df1,_0x14e56f)=>{_0x4e306c['model']['change'](_0x1a2163=>{const {commandName:_0x7883d1,commandParams:_0x36dfff}=_0x14e56f;let _0x39700f=_0xdb0df1[0x0]['end']['nodeBefore'];_0x36dfff&&_0x36dfff[0x0]&&!0x1===_0x36dfff[0x0]['forceValue']&&(_0x39700f=_0xdb0df1[0x0]['start']['nodeAfter']);const _0x3497f7=_0x1a2163['createRangeIn'](_0x39700f);if('$graveyard'==_0x3497f7['root']['rootName'])return;const _0xebbb92=Array['from'](_0x2b1f9f['getRanges']())['map'](_0x559f95=>_0x481a5c['fromRange'](_0x559f95));_0x1a2163['setSelection'](_0x3497f7),_0x4e306c['commands']['get'](_0x7883d1)['refresh'](),_0x36dfff['push']({'forceDefaultExecution':!0x0}),_0x4e306c['execute'](_0x7883d1,..._0x36dfff);const _0x4e22c3=_0xebbb92['filter'](_0x124678=>'$graveyard'!=_0x124678['root']['rootName']);_0x4e22c3['length']>0x0&&_0x1a2163['setSelection'](_0x4e22c3);for(const _0x4771dd of _0xebbb92)_0x4771dd['detach']();});};}['_getCoordsForCells'](_0x2eda7b){const _0x2d0e64=this['editor']['plugins']['get']('TableUtils');let _0x400003=Number['MAX_SAFE_INTEGER'],_0x2f4b1a=Number['MIN_SAFE_INTEGER'],_0x12d366=Number['MAX_SAFE_INTEGER'],_0x29d70f=Number['MIN_SAFE_INTEGER'];for(const _0x32a7e7 of _0x2eda7b){if('$graveyard'==_0x32a7e7['root']['rootName'])continue;const {row:_0x2b24b9,column:_0x1e1aad}=_0x2d0e64['getCellLocation'](_0x32a7e7),_0x558332=_0x32a7e7['hasAttribute']('rowspan')?_0x32a7e7['getAttribute']('rowspan')-0x1:0x0,_0xaea340=_0x32a7e7['hasAttribute']('colspan')?_0x32a7e7['getAttribute']('colspan')-0x1:0x0;_0x400003=_0x2b24b9<_0x400003?_0x2b24b9:_0x400003,_0x2f4b1a=_0x2b24b9+_0x558332>_0x2f4b1a?_0x2b24b9+_0x558332:_0x2f4b1a,_0x12d366=_0x1e1aad<_0x12d366?_0x1e1aad:_0x12d366,_0x29d70f=_0x1e1aad+_0xaea340>_0x29d70f?_0x1e1aad+_0xaea340:_0x29d70f;}return{'minRow':_0x400003,'maxRow':_0x2f4b1a,'minColumn':_0x12d366,'maxColumn':_0x29d70f};}['_setupColumnsRowsFixing'](){const _0x579edd=this['editor'],_0xac35ce=_0x579edd['plugins']['get']('TrackChangesEditing'),_0x453994=_0x579edd['plugins']['get']('TableUtils');_0x579edd['model']['document']['on']('change:data',()=>{const _0xd13ee6=Array['from'](_0x579edd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x132600,data:_0xe918ea}of _0xd13ee6){const {group:_0x44fdad,id:_0x1de2ff,subType:_0x262fb6}=_0xac35ce['_splitMarkerName'](_0x132600);if('suggestion'!=_0x44fdad)continue;if(null!=_0xe918ea['oldRange'])continue;const _0x335aaf=_0xac35ce['getSuggestion'](_0x1de2ff);this['_tablePostFixingSubtypes']['includes'](_0x262fb6)&&this['_tableSuggestions']['add'](_0x335aaf);}},{'priority':'low'});const _0x2bf31a=(_0x27b928,_0x57ea68)=>{let _0x3c6acc=!0x1;const _0x49cb8b=_0x57ea68['createRangeOn'](_0x27b928),_0x227554=_0x27b928['findAncestor']('table'),_0x1273af=_0x453994['getCellLocation'](_0x27b928);for(const _0x4bc570 of this['_tableSuggestions']){const _0xc554eb=_0x4bc570['subType'],_0x5122bc=_0xc554eb['startsWith']('tablePaste'),_0x5d1238=_0xc554eb['substr'](_0x5122bc?0xa:0x5),_0x5414ac=_0x5d1238['toLowerCase'](),_0x3bd84f=_0x5414ac['substr'](0x0,0x3)+'span',_0x2195c1='min'+_0x5d1238,_0x190dce='max'+_0x5d1238;if(!_0x4bc570['isInContent'])continue;if(_0x227554!=_0x4bc570['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4bc570['isIntersectingWithRange'](_0x49cb8b))continue;const _0x568548=_0x27b928['hasAttribute'](_0x3bd84f)?_0x27b928['getAttribute'](_0x3bd84f)-0x1:0x0,_0x2e630e=this['_getSuggestionCoords'](_0x4bc570),_0x5693f0=_0x2e630e[_0x2195c1],_0x512f37=_0x2e630e[_0x190dce];_0x5693f0<=_0x1273af[_0x5414ac]&&_0x1273af[_0x5414ac]+_0x568548<=_0x512f37&&(_0x4bc570['addRange'](_0x49cb8b),_0x3c6acc=!0x0);}return _0x3c6acc;};_0x579edd['model']['document']['registerPostFixer'](_0xd2ffe3=>{let _0x25f55d=!0x1;for(const _0xef94a8 of _0x579edd['model']['document']['differ']['getChanges']())if('insert'==_0xef94a8['type']){if('tableRow'==_0xef94a8['name']){for(const _0x2c8a15 of _0xef94a8['position']['nodeAfter']['getChildren']())_0x25f55d=_0x25f55d||_0x2bf31a(_0x2c8a15,_0xd2ffe3);}else'tableCell'==_0xef94a8['name']&&(_0x25f55d=_0x25f55d||_0x2bf31a(_0xef94a8['position']['nodeAfter'],_0xd2ffe3));}return _0x25f55d;});}['_getSuggestionCoords'](_0x3af2db){return this['_getCoordsForCells'](_0x3af2db['getRanges']()['map'](_0xc00ddc=>_0xc00ddc['start']['nodeAfter']));}}function _e(_0x58c0de){return Array['from'](new Set(_0x58c0de)['values']());}class $t extends _0x959a6f{static get['requires'](){return[Nt];}['afterInit'](){const _0x5c0f60=this['editor'],_0x557936=_0x5c0f60['model']['document']['selection'],_0x2d0d68=_0x5c0f60['locale'];if(!_0x5c0f60['plugins']['has']('TableEditing'))return;const _0xdd9b10=_0x5c0f60['plugins']['get']('TrackChangesEditing'),_0x49547d=_0x5c0f60['plugins']['get']('TableUtils'),_0x56c367=_0x5c0f60['plugins']['get'](Nt);_0x56c367['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xdd9b10['enableCommand']('mergeTableCells',()=>{const _0x3510ce=_0x49547d['getSelectionAffectedTableCells'](_0x5c0f60['model']['document']['selection']);_0x5c0f60['model']['change'](()=>{_0xdd9b10['markMultiRangeBlockFormat'](_0x3510ce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c0f60['commands']['get']('mergeTableCells')['on']('execute',(_0x4d6f17,_0x5374fe)=>{_0x5c0f60['commands']['get']('trackChanges')['value']&&(_0x5374fe['length']>0x0&&_0x5374fe[_0x5374fe['length']-0x1]&&_0x5374fe[_0x5374fe['length']-0x1]['forceDefaultExecution']||_0xdd9b10['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4d6f17['stop']());},{'priority':'highest'});for(const _0x3364e1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3bacd1=_0x5c0f60['commands']['get'](_0x3364e1);_0xdd9b10['enableCommand'](_0x3364e1,()=>{const _0x3843c4=_0x5c0f60['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x508732=>_0x508732['is']('element','tableCell')),_0x3d850b=_0x3bacd1['value'];_0x5c0f60['model']['change'](()=>{_0xdd9b10['markMultiRangeBlockFormat']([_0x3843c4,_0x3d850b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xcf55fc of['splitTableCellVertically','splitTableCellHorizontally']){const _0x276e4d=_0x5c0f60['commands']['get'](_0xcf55fc);_0xdd9b10['enableCommand'](_0xcf55fc,()=>{const _0x2331d3=_0x49547d['getSelectionAffectedTableCells'](_0x5c0f60['model']['document']['selection'])[0x0],_0x5c7fd4=_0x2331d3['findAncestor']('table'),{column:_0x3a7632,row:_0x1fa476}=_0x49547d['getCellLocation'](_0x2331d3);let _0x290ba2=[];if('horizontally'==_0x276e4d['direction']){const _0xbd7cab=_0x49547d['createTableWalker'](_0x5c7fd4,{'startRow':_0x1fa476,'endRow':_0x1fa476,'includeAllSlots':!0x0});_0x290ba2=Array['from'](_0xbd7cab)['map'](_0x268527=>_0x268527['cell']);}else{const _0x3383ef=_0x49547d['createTableWalker'](_0x5c7fd4,{'column':_0x3a7632,'includeAllSlots':!0x0});_0x290ba2=Array['from'](_0x3383ef)['map'](_0x342a72=>_0x342a72['cell']);}_0x5c0f60['model']['change'](_0x25697a=>{_0xdd9b10['markBlockFormat'](_0x25697a['createRangeOn'](_0x2331d3),{'commandName':_0xcf55fc,'commandParams':[]},_0x290ba2,_0xcf55fc);});});}_0xdd9b10['descriptionFactory']['registerDescriptionCallback'](_0x2c6232=>{if('formatBlock'!=_0x2c6232['type']&&'formatInline'!=_0x2c6232['type'])return;const {data:_0x7d6578}=_0x2c6232;return _0x7d6578&&'mergeTableCells'==_0x7d6578['commandName']?{'type':'format','content':o(_0x2d0d68,'*Merge\x20cells*')}:void 0x0;}),_0xdd9b10['descriptionFactory']['registerDescriptionCallback'](_0x18e52c=>{if('formatBlock'!=_0x18e52c['type']&&'formatInline'!=_0x18e52c['type'])return;const {data:_0x47abc2}=_0x18e52c;return _0x47abc2?'splitTableCellVertically'==_0x47abc2['commandName']?{'type':'format','content':o(_0x2d0d68,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x47abc2['commandName']?{'type':'format','content':o(_0x2d0d68,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1330aa=_0x56c367['_acceptFormatSuggestionCallbackFactory']();for(const _0x48c5e9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xdd9b10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48c5e9,'accept',_0x1330aa);for(const _0x2b3694 of['splitTableCellVertically','splitTableCellHorizontally'])_0xdd9b10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b3694,'accept',_0x1330aa);_0xdd9b10['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x22c54c=>{_0x5c0f60['model']['change'](_0x7e6067=>{const _0x6b9083=Array['from'](_0x557936['getRanges']())['map'](_0x2aff00=>_0x481a5c['fromRange'](_0x2aff00));_0x7e6067['setSelection'](_0x22c54c),_0x5c0f60['commands']['get']('mergeTableCells')['refresh'](),_0x5c0f60['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ffb2e=_0x6b9083['filter'](_0x36b9fa=>'$graveyard'!=_0x36b9fa['root']['rootName']);_0x4ffb2e['length']>0x0&&_0x7e6067['setSelection'](_0x4ffb2e);for(const _0x54a66f of _0x6b9083)_0x54a66f['detach']();});});for(const _0x4a573f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x25c07b=_0x5c0f60['commands']['get'](_0x4a573f);_0x25c07b['on']('set:isEnabled',(_0x1e4c73,_0x49919f,_0x429231)=>{if(_0x429231){const _0xeea234=_0x5c0f60['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3dccad=>_0x3dccad['is']('element','tableCell'));this['_areMergableCells'](_0x25c07b['value'],_0xeea234)||(_0x1e4c73['return']=!0x1,_0x1e4c73['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2919da=this['editor']['commands']['get']('mergeTableCells'),_0x34eb6d=this['editor']['plugins']['get']('TableUtils');if(!_0x2919da['isEnabled'])return!0x1;const _0x5a1070=_0x34eb6d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4fd1eb of _0x5a1070)for(const _0x5e7b48 of _0x5a1070)if(_0x4fd1eb!=_0x5e7b48&&!this['_areMergableCells'](_0x4fd1eb,_0x5e7b48))return!0x1;return!0x0;}['_areMergableCells'](_0x57e0a6,_0x42fc54){const _0x46ee89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1461ee=this['editor']['model']['createRangeOn'](_0x57e0a6),_0x3fa818=this['editor']['model']['createRangeOn'](_0x42fc54),_0x15b656=new Set(),_0x3f2310=new Set();for(const _0xbf9272 of _0x46ee89['getSuggestions']())if(('insertion'==_0xbf9272['type']||'deletion'==_0xbf9272['type']||'mergeTableCells'==_0xbf9272['subType'])&&_0xbf9272['isInContent']){for(const _0xb2e8a8 of _0xbf9272['getRanges']())_0xb2e8a8['containsRange'](_0x1461ee,!0x0)&&_0x15b656['add'](_0xbf9272['type']+':'+_0xbf9272['author']['id']),_0xb2e8a8['containsRange'](_0x3fa818,!0x0)&&_0x3f2310['add'](_0xbf9272['type']+':'+_0xbf9272['author']['id']);}if(_0x15b656['size']!=_0x3f2310['size'])return!0x1;for(const _0x116e40 of _0x15b656)if(!_0x3f2310['has'](_0x116e40))return!0x1;return!0x0;}}class vt extends _0x959a6f{static get['requires'](){return[Nt];}['afterInit'](){const _0xcc2250=this['editor'];if(!_0xcc2250['plugins']['has']('TableEditing'))return;const _0x2e8a33=_0xcc2250['locale'],_0x20afb9=_0xcc2250['plugins']['get']('TrackChangesEditing');_0x20afb9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x20afb9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x20afb9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2e8a33,'FORMAT_HEADER_ROW')),_0x20afb9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2e8a33,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4909ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36a594=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x4909ea['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36a594),_0x4909ea['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36a594),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x29710=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31992a=this['editor']['plugins']['get']('TableUtils');function _0x547cf3({showActiveMarker:_0x203b82=!0x0,setDataAttribute:_0x9d5d13=!0x0}={}){return(_0x4597c8,_0x1643b2,_0x5c2100)=>{const {type:_0x2a4438,id:_0x37a783}=_0x29710['_splitMarkerName'](_0x1643b2['markerName']);if(!_0x29710['hasSuggestion'](_0x37a783))return;const _0x1b447b=_0x29710['getSuggestion'](_0x37a783),_0x550ec6=_0x1b447b['data'];if('formatBlock'!=_0x1b447b['type']||!_0x550ec6||'setTableColumnHeader'!=_0x550ec6['commandName'])return;if(_0x1643b2['item'])return void _0x4597c8['stop']();if(!_0x5c2100['consumable']['consume'](_0x1643b2['markerRange'],_0x4597c8['name']))return;const _0x5cd6ac=_0x1643b2['markerRange']['start']['nodeAfter'],_0x2c25d4=_0x1643b2['markerRange']['end']['nodeBefore'],_0x51477d=_0x5cd6ac['parent']['parent'],{column:_0x4b3204}=_0x31992a['getCellLocation'](_0x5cd6ac),{column:_0x42c821}=_0x31992a['getCellLocation'](_0x2c25d4);for(let _0xfe7e34=_0x4b3204;_0xfe7e34<=_0x42c821;_0xfe7e34++){const _0x33b0e0=_0x31992a['createTableWalker'](_0x51477d,{'column':_0xfe7e34,'includeAllSlots':!0x1});for(const _0xb880b of _0x33b0e0){const _0x5bfe85=_0xb880b['cell'],_0x35ab6a=_0x5c2100['mapper']['toViewElement'](_0x5bfe85);_0x5c2100['writer']['addClass']('ck-suggestion-marker-'+_0x2a4438,_0x35ab6a),_0x9d5d13&&_0x5c2100['writer']['setAttribute']('data-suggestion',_0x37a783,_0x35ab6a),_0x5c2100['mapper']['bindElementToMarker'](_0x35ab6a,_0x1643b2['markerName']),_0x203b82&&(_0x29710['activeMarkers']['includes'](_0x1643b2['markerName'])?_0x5c2100['writer']['addClass']('ck-suggestion-marker--active',_0x35ab6a):_0x5c2100['writer']['removeClass']('ck-suggestion-marker--active',_0x35ab6a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x547cf3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47f7e8,_0x2cc466,_0x42004c)=>{_0x42004c['options']['showSuggestionHighlights']&&_0x547cf3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x47f7e8,_0x2cc466,_0x42004c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x42884b,_0x4cbaf1,_0x401953)=>{const {type:_0x43565a,id:_0x28b068}=_0x29710['_splitMarkerName'](_0x4cbaf1['markerName']);if(!_0x29710['hasSuggestion'](_0x28b068))return;const _0x43e8e1=_0x29710['getSuggestion'](_0x28b068),_0x4699d3=_0x43e8e1['data'];if('formatBlock'!=_0x43e8e1['type']||!_0x4699d3||'setTableColumnHeader'!=_0x4699d3['commandName'])return;const _0x534866=_0x401953['mapper']['markerNameToElements'](_0x4cbaf1['markerName']);if(_0x534866){for(const _0x4e96ed of _0x534866)_0x401953['writer']['removeClass']('ck-suggestion-marker-'+_0x43565a,_0x4e96ed),_0x401953['writer']['removeClass']('ck-suggestion-marker--active',_0x4e96ed),_0x401953['writer']['removeAttribute']('data-suggestion',_0x4e96ed),_0x401953['mapper']['unbindElementFromMarkerName'](_0x4e96ed,_0x4cbaf1['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x39d782=this['editor'],_0x5813a3=_0x39d782['locale'];function _0x52ab70(_0x593450){return{'type':'format','content':o(_0x5813a3,'*Format:*\x20%0',_0x593450)};}_0x39d782['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cb841=>{if('formatBlock'!=_0x1cb841['type'])return;const {data:_0x3f9623}=_0x1cb841;if(_0x3f9623){if('setTableRowHeader'==_0x3f9623['commandName']){const _0x243190=_0x3f9623['commandParams'][0x0]['forceValue'];return _0x52ab70(o(_0x5813a3,_0x243190?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3f9623['commandName']){const _0x4595db=_0x3f9623['commandParams'][0x0]['forceValue'];return _0x52ab70(o(_0x5813a3,_0x4595db?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x959a6f{['afterInit'](){const _0x4862c8=this['editor'],_0x1033c9=_0x4862c8['locale'],_0x367b20=_0x4862c8['plugins']['get']('TrackChangesEditing');function _0x59e230(_0x1ca46e){return{'type':'format','content':''+o(_0x1033c9,'*Set\x20table\x20type:*\x20%0',_0x1ca46e)};}_0x4862c8['plugins']['has']('TableLayout')&&(_0x367b20['enableCommand']('insertTableLayout'),_0x367b20['enableDefaultAttributesIntegration']('tableType'),_0x367b20['descriptionFactory']['registerElementLabel'](_0x26901c=>_0x26901c['is']('element','table')&&'layout'===_0x26901c['getAttribute']('tableType'),_0x1bd15b=>o(_0x1033c9,'ELEMENT_LAYOUT_TABLE',_0x1bd15b)),_0x367b20['descriptionFactory']['registerDescriptionCallback'](_0x397d89=>{const {data:_0x15bd1e}=_0x397d89;if(_0x15bd1e&&'tableType'==_0x15bd1e['key'])switch(_0x15bd1e['newValue']){case'layout':return _0x59e230(o(_0x1033c9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x59e230(o(_0x1033c9,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x4de3bf=>[_0x4de3bf,null]));class Bt extends _0x959a6f{static get['requires'](){return[Nt];}['afterInit'](){const _0x417a06=this['editor'];if(!_0x417a06['plugins']['has']('TableClipboard'))return;const _0x1bbac3=_0x417a06['plugins']['get']('TrackChangesEditing'),_0x51b76f=_0x417a06['plugins']['get']('TableUtils'),_0x1889cd=_0x417a06['plugins']['get'](Nt),_0x5530f7=_0x417a06['plugins']['get']('TableClipboard'),_0x531d5a=_0x417a06['plugins']['get']('TableSelection'),_0x4a7e88=_0x417a06['plugins']['get'](_0x40b474);_0x1889cd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x417a06['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x417a06['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x42f761=null,_0x45d5e8=!0x1;_0x4a7e88['on']('contentInsertion',(_0x522e45,_0x22ba2f)=>{_0x45d5e8='paste'===_0x22ba2f['method'];}),_0x417a06['model']['on']('insertContent',(_0x45fd10,_0x4edf80)=>{if(!_0x45d5e8&&null===_0x531d5a['getSelectedTableCells']())return;const [_0xc30473,_0x324138]=_0x4edf80,_0x303dc8=_0x4edf80[_0x4edf80['length']-0x1];_0x303dc8&&_0x303dc8['forceDefaultExecution']||_0x1bbac3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5a240e,_0xe61419,_0x3084a5,_0x27ce20,_0x57a9ea){if(_0xe61419&&!_0xe61419['is']('documentSelection'))return!0x1;const _0x398e99=_0x57a9ea['getTableIfOnlyTableInContent'](_0x5a240e,_0x3084a5);if(!_0x398e99||!Oe(_0x398e99,void 0x0,_0x27ce20))return!0x1;const _0x5d5dd1=_0x27ce20['getSelectionAffectedTableCells'](_0x3084a5['document']['selection']);if(!_0x5d5dd1['length'])return!0x1;const _0x1061c4=_0x5d5dd1[0x0]['findAncestor']('table'),_0x3923af=_0x27ce20['getRowIndexes'](_0x5d5dd1),_0x37f339=_0x27ce20['getColumnIndexes'](_0x5d5dd1),_0x4693ce={'startRow':_0x3923af['first'],'endRow':_0x3923af['last'],'startColumn':_0x37f339['first'],'endColumn':_0x37f339['last']};return 0x1==_0x5d5dd1['length']&&(_0x4693ce['endRow']+=_0x27ce20['getRows'](_0x398e99)-0x1,_0x4693ce['endColumn']+=_0x27ce20['getColumns'](_0x398e99)-0x1),Oe(_0x1061c4,_0x4693ce,_0x27ce20);}(_0xc30473,_0x324138,_0x417a06['model'],_0x51b76f,_0x5530f7)&&(_0x45fd10['stop'](),_0x42f761={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x417a06['model']['change'](()=>{_0x417a06['model']['insertContent'](_0x4edf80[0x0],_0x4edf80[0x1],_0x4edf80[0x2],{'forceDefaultExecution':!0x0});const _0x4494ef=_0x257abf(),{rowInsertionRanges:_0x281a2d,columnInsertionRanges:_0x5138b7,insertionRanges:_0x1e96dd,deletionRanges:_0x43b371,cells:_0x5d54a6}=_0x42f761;_0x281a2d['length']&&_0x1bbac3['markMultiRangeInsertion'](_0x281a2d,'tablePasteRow',{'tablePasteChainId':_0x4494ef}),_0x5138b7['length']&&_0x1bbac3['markMultiRangeInsertion'](_0x5138b7,'tablePasteColumn',{'tablePasteChainId':_0x4494ef}),_0x1e96dd['length']&&(_0x1bbac3['markMultiRangeInsertion'](_0x1e96dd,'tablePaste',{'tablePasteChainId':_0x4494ef,'skipNestingCheck':!0x0}),_0x1e96dd['forEach'](_0x3ff99f=>_0x3ff99f['detach']?.())),_0x43b371['length']&&(_0x1bbac3['markMultiRangeDeletion'](_0x43b371,'tablePaste',{'tablePasteChainId':_0x4494ef,'skipNestingCheck':!0x0}),_0x43b371['forEach'](_0x335300=>_0x335300['detach']?.()));const _0x4127b2=_0x1bbac3['markMultiRangeBlockFormat'](_0x5d54a6['map'](({element:_0x41471d})=>_0x41471d),{'formatGroupId':_0x257abf()},[],'tablePasteCell',{'tablePasteChainId':_0x4494ef});if(_0x4127b2){const _0x22d56b=_0x4127b2['getMarkers'](),_0x29c455=[];for(const {element:_0x4ab29f,attributes:_0x4d4e30}of _0x5d54a6){if(!_0x4d4e30)continue;const _0x30856d=_0x417a06['model']['createRangeOn'](_0x4ab29f),_0x295231=_0x22d56b['find'](_0x42b3c2=>_0x42b3c2['getRange']()['isEqual'](_0x30856d));_0x295231&&_0x29c455['push']([_0x295231['name'],_0x4d4e30]);}_0x29c455['length']&&_0x4127b2['setAttribute']('markerAttributes',Object['fromEntries'](_0x29c455));}_0x42f761=null;}));},{'priority':_0x1d470f['high']+0xa}),_0x4a7e88['on']('contentInsertion',()=>{_0x45d5e8=!0x1;},{'priority':'lowest'}),_0x417a06['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b5a1d,_0x732ed2)=>{const [_0x2a727b,_0x3d8131,,_0x4b2516]=_0x732ed2;if(!_0x42f761)return;_0x4b5a1d['stop']();const _0x35d0db=_0x2a727b['cell'],_0x7651d=_0x3d8131,_0xc36cfa=Be(_0x35d0db),_0x2f1b3e=Be(_0x7651d);_0x4b5a1d['return']=_0x35d0db;let _0x1f5186=null,_0x50e003=null;if(_0x2f1b3e||_0xc36cfa){if(_0xc36cfa&&!_0x2f1b3e){_0x4b2516['remove'](_0x35d0db['getChild'](0x0));for(const _0x2f4c30 of Array['from'](_0x7651d['getChildren']()))_0x4b2516['insert'](_0x2f4c30,_0x35d0db,'end');const _0x4e6369=_0x42f761['rowInsertionIndexes']['includes'](_0x2a727b['row']),_0x313118=_0x42f761['columnInsertionIndexes']['includes'](_0x2a727b['column']);_0x4e6369||_0x313118||(_0x1f5186=_0x481a5c['fromRange'](_0x4b2516['createRangeIn'](_0x35d0db)));}else _0x2f1b3e&&!_0xc36cfa&&(_0x50e003=_0x4b2516['createRangeIn'](_0x35d0db));}else{const _0x2f089c=_0x4b2516['createElement']('tableCellSuggestion'),_0x27622c=_0x4b2516['createElement']('tableCellSuggestion');_0x4b2516['wrap'](_0x4b2516['createRangeIn'](_0x35d0db),_0x27622c),_0x4b2516['insert'](_0x2f089c,_0x35d0db,0x0);for(const _0x39c141 of Array['from'](_0x7651d['getChildren']()))_0x4b2516['insert'](_0x39c141,_0x2f089c,'end');_0x1f5186=_0x481a5c['fromRange'](_0x4b2516['createRangeOn'](_0x2f089c)),_0x50e003=_0x481a5c['fromRange'](_0x4b2516['createRangeOn'](_0x27622c));}const _0x438780=Array['from'](_0x7651d['getAttributes']())['filter'](([_0x2208dc])=>Re['includes'](_0x2208dc));_0x42f761['cells']['push']({'element':_0x35d0db,'attributes':_0x438780['length']?Object['fromEntries'](_0x438780):null}),_0x1f5186&&_0x42f761['insertionRanges']['push'](_0x1f5186),_0x50e003&&_0x42f761['deletionRanges']['push'](_0x50e003);},{'priority':'high'}),_0x51b76f['on']('insertColumns',(_0x2bf956,_0x2fd13b)=>{const [_0x5aba7f,_0x316929={}]=_0x2fd13b;if(!_0x42f761)return;const _0x3cf6e6=_0x316929['at']||0x0,_0x12b237=_0x316929['columns']||0x1;_0x42f761['columnInsertionIndexes']=new Array(_0x12b237)['fill'](_0x3cf6e6)['map']((_0x4fe3c4,_0x17af45)=>_0x4fe3c4+_0x17af45);for(const {cell:_0x5d26cf}of _0x51b76f['createTableWalker'](_0x5aba7f,{'startColumn':_0x3cf6e6,'endColumn':_0x3cf6e6+_0x12b237-0x1}))_0x42f761['columnInsertionRanges']['push'](_0x417a06['model']['createRangeOn'](_0x5d26cf));},{'priority':'low'}),_0x51b76f['on']('insertRows',(_0x433a7b,_0x5259ca)=>{const [_0x388082,_0x17a54c={}]=_0x5259ca;if(!_0x42f761)return;const _0x245b2a=_0x17a54c['at']||0x0,_0x2003c5=_0x17a54c['rows']||0x1;_0x42f761['rowInsertionIndexes']=new Array(_0x2003c5)['fill'](_0x245b2a)['map']((_0x37a354,_0x300637)=>_0x37a354+_0x300637);for(const {cell:_0x142339}of _0x51b76f['createTableWalker'](_0x388082,{'startRow':_0x245b2a,'endRow':_0x245b2a+_0x2003c5-0x1}))_0x42f761['rowInsertionRanges']['push'](_0x417a06['model']['createRangeOn'](_0x142339));},{'priority':'low'}),_0x1bbac3['descriptionFactory']['registerDescriptionCallback'](_0x51dc8e=>{if(_0x51dc8e['subType']&&_0x51dc8e['subType']['startsWith']('tablePaste'))return _0x51dc8e['previous']?{}:{'type':'insertion','content':o(_0x417a06['locale'],'*Replace\x20table\x20cells*')};});const _0x22ab24=()=>!0x1;for(const _0xca0bd4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1bbac3['_suggestionFactory']['registerCustomCallback']('insertion',_0xca0bd4,'join',_0x22ab24),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('deletion',_0xca0bd4,'join',_0x22ab24),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xca0bd4,'join',_0x22ab24);_0x1bbac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x22ab24),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x267a1e,_0x1fef71,_0x248c43)=>{const _0x56136c=_0x267a1e['map'](_0x34ca02=>_0x34ca02['getContainedElement']())['filter'](_0x3e2442=>_0x3e2442),_0x29ee3d=new Map(_0x56136c['map'](_0x34ac76=>[_0x34ac76,null]));if(_0x42f761){for(const {element:_0x50236a,attributes:_0x32e970}of _0x42f761['cells'])_0x32e970&&_0x29ee3d['set'](_0x50236a,_0x32e970);}else{if(_0x248c43&&_0x248c43['markerAttributes'])for(const [_0x47cf65,_0x5310d3]of Object['entries'](_0x248c43['markerAttributes'])){const _0x28e740=_0x417a06['model']['markers']['get'](_0x47cf65),_0x5074a9=_0x28e740?_0x28e740['getRange']()['getContainedElement']():null;_0x5074a9&&_0x29ee3d['set'](_0x5074a9,_0x5310d3);}}_0x417a06['model']['change'](_0x2c7d31=>{for(const [_0x49f38b,_0x3f5fd7]of _0x29ee3d)_0x2c7d31['setAttributes']({...Ae,..._0x3f5fd7},_0x49f38b);});});const _0x4f63b3=(_0x4f1cbb,_0x1a5439)=>{_0x1bbac3['_suggestionFactory']['registerCustomCallback'](_0x4f1cbb,'tablePaste',_0x1a5439,(_0x2fd951,_0x555365,_0x5e6c96)=>{_0x417a06['model']['change'](_0x2e9d37=>{const _0x51fa80=[];for(const _0x13686c of _0x2fd951){const _0x5684e0=_0x13686c['start']['nodeAfter'];_0x5684e0['is']('element','tableCellSuggestion')&&_0x51fa80['push'](_0x5684e0);}_0x1bbac3['_suggestionFactory']['getSuggestionCallback'](_0x4f1cbb,null,_0x1a5439)(_0x2fd951,_0x555365,_0x5e6c96);for(const _0xea1e6d of _0x51fa80)'$graveyard'!=_0xea1e6d['root']['rootName']&&_0x2e9d37['unwrap'](_0xea1e6d);});});};_0x4f63b3('insertion','accept'),_0x4f63b3('insertion','discard'),_0x4f63b3('deletion','accept'),_0x4f63b3('deletion','discard'),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x303cf9=>{const _0x244f8a=_0x303cf9['map'](_0x2ac0d7=>_0x2ac0d7['getContainedElement']()),_0x15d4c9=_0x244f8a[0x0]['findAncestor']('table'),{minRow:_0x3eaab1,maxRow:_0x20cab9}=_0x1889cd['_getCoordsForCells'](_0x244f8a);_0x51b76f['removeRows'](_0x15d4c9,{'at':_0x3eaab1,'rows':_0x20cab9-_0x3eaab1+0x1});}),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4f1da6=>{const _0x3e54a5=_0x4f1da6['map'](_0x1e95b4=>_0x1e95b4['getContainedElement']()),_0xd914a9=_0x3e54a5[0x0]['findAncestor']('table'),{minColumn:_0x25ccde,maxColumn:_0x1a6547}=_0x1889cd['_getCoordsForCells'](_0x3e54a5);_0x51b76f['removeColumns'](_0xd914a9,{'at':_0x25ccde,'columns':_0x1a6547-_0x25ccde+0x1});});const _0xbd5420=(_0x1cf0fc,_0x491c79)=>{if(!_0x491c79['subType']||!_0x491c79['subType']['startsWith']('tablePaste'))return;const _0xcbb92e=_0x491c79['attributes']['tablePasteChainId'],_0x17443f=_0x1bbac3['getSuggestions']()['filter'](_0x4467c8=>_0x4467c8['isInContent']&&_0x4467c8['attributes']&&_0x4467c8['attributes']['tablePasteChainId']==_0xcbb92e);_0x17443f['length']&&_0x491c79['getAllAdjacentSuggestions']()['length']!=_0x17443f['length']&&_0x17443f['reduce']((_0x339b7c,_0x3b68a2)=>(_0x339b7c['next']=_0x3b68a2,_0x3b68a2['previous']=_0x339b7c,_0x3b68a2));};function _0xdf1fc6(_0x361e56,_0x27f0e4=!0x0){const {id:_0x1fbde1,authorId:_0x3dfc84}=_0x1bbac3['_splitMarkerName'](_0x361e56['markerName']),_0xccd41=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x130c9f=_0x1bbac3['activeMarkers']['includes'](_0x361e56['markerName']);return _0x130c9f&&_0xccd41['push']('ck-suggestion-marker--active'),{'classes':_0xccd41,'attributes':{'data-suggestion':_0x1fbde1,'data-author-id':_0x3dfc84},'priority':_0x130c9f&&_0x27f0e4?0xbc2:0xbb8};}_0x1bbac3['on']('suggestionLoaded',_0xbd5420,{'priority':'high'}),_0x1bbac3['on']('suggestionUnloaded',_0xbd5420,{'priority':'high'}),_0x417a06['model']['document']['registerPostFixer'](()=>{let _0x2d3e3d=!0x1;const _0x1a2cc5=Array['from'](_0x417a06['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x304de3,data:_0x7cb78a}of _0x1a2cc5){const {group:_0x16f4e4,type:_0x53bf9b,id:_0x5a072e}=_0x1bbac3['_splitMarkerName'](_0x304de3);if('suggestion'!=_0x16f4e4||'deletion'!=_0x53bf9b||_0x7cb78a['oldRange'])continue;if(!_0x1bbac3['hasSuggestion'](_0x5a072e))continue;const _0xfd0904=_0x1bbac3['getSuggestion'](_0x5a072e)['getRanges'](),_0x567a19=_0x417a06['plugins']['get']('Users')['me'];for(const _0x2eb34d of _0x1bbac3['getSuggestions']()){if(!_0x2eb34d['isInContent']||_0x2eb34d['author']!=_0x567a19)continue;if('formatBlock'!=_0x2eb34d['type']||'tablePasteCell'!=_0x2eb34d['subType'])continue;if(_0x2eb34d['getRanges']()['every'](_0x4502fc=>_0xfd0904['some'](_0x3acd4d=>_0x3acd4d['containsRange'](_0x4502fc,!0x0)))){for(const _0x7af2f3 of _0x2eb34d['getAllAdjacentSuggestions']())_0x7af2f3['isInContent']&&(_0x7af2f3['discard'](),_0x2d3e3d=!0x0);}}}return _0x2d3e3d;}),_0x417a06['model']['document']['registerPostFixer'](_0x44fca4=>{const _0x575ed4=_0x417a06['commands']['get']('redo');if(!_0x575ed4||!_0x575ed4['_createdBatches']['has'](_0x44fca4['batch']))return!0x1;let _0x46a378=!0x1;const _0x5e2642=_0x417a06['plugins']['get']('Users')['me'],_0x455019=_0x417a06['model']['document']['differ']['getChanges'](),_0xc8838d=Array['from'](_0x417a06['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1f6d99,data:_0x2b6268})=>{const {group:_0x28d0eb,subType:_0x39399b,authorId:_0x1f3b2d}=_0x1bbac3['_splitMarkerName'](_0x1f6d99);return'suggestion'==_0x28d0eb&&'tablePaste'==_0x39399b&&_0x1f3b2d==_0x5e2642['id']&&!_0x2b6268['oldRange'];});for(const _0x2ba4eb of _0x455019){if('insert'!=_0x2ba4eb['type']||'tableCellSuggestion'!=_0x2ba4eb['name']||0x1!=_0x2ba4eb['length'])continue;const _0x16aee0=_0x44fca4['createRange'](_0x2ba4eb['position'],_0x2ba4eb['position']['getShiftedBy'](0x1));if(!_0xc8838d['find'](({data:_0x16ccc1})=>_0x16ccc1['newRange']['isEqual'](_0x16aee0))){for(const {name:_0x38bebe,data:_0x4841a3}of _0xc8838d)if(_0x16aee0['containsRange'](_0x4841a3['newRange'])){_0x44fca4['updateMarker'](_0x38bebe,{'range':_0x16aee0}),_0x46a378=!0x0;break;}}}return _0x46a378;}),_0x417a06['model']['document']['registerPostFixer'](_0x1e9fc6=>{let _0x23ed64=!0x1;const _0x5bae96=_0x417a06['plugins']['get']('Users')['me'],_0x23094e=_0x1bbac3['getSuggestions']()['filter'](_0x382fa4=>_0x382fa4['isInContent']&&_0x382fa4['author']==_0x5bae96),_0x5afbae=new Set(),_0x47ba90=new Set();for(const _0x154836 of _0x23094e)if('tablePaste'==_0x154836['subType'])for(const _0x3ba125 of _0x154836['getMarkers']()){const _0xc3eb54=_0x3ba125['getRange']()['getContainedElement']();if(_0xc3eb54){if(_0xc3eb54['is']('element','tableCellSuggestion')&&Be(_0xc3eb54)){_0x154836['removeMarker'](_0x3ba125['name']),_0x5afbae['add'](_0xc3eb54),_0x23ed64=!0x0;const _0x2b1ddf=_0xc3eb54['nextSibling'],_0x18b0da=_0xc3eb54['previousSibling'],_0x306379=_0x2b1ddf&&_0x2b1ddf['is']('element','tableCellSuggestion'),_0x3c2d49=_0x18b0da&&_0x18b0da['is']('element','tableCellSuggestion');_0x306379&&!_0x5afbae['has'](_0x2b1ddf)&&_0x47ba90['add'](_0x2b1ddf),_0x3c2d49&&!_0x5afbae['has'](_0x18b0da)&&_0x47ba90['add'](_0x18b0da);}else _0xc3eb54['is']('element','paragraph')&&_0xc3eb54['isEmpty']&&(_0x154836['removeMarker'](_0x3ba125['name']),_0x23ed64=!0x0);}}else{if('tablePasteCell'==_0x154836['subType']){if(!_0x154836['attributes']||!_0x154836['attributes']['tablePasteChainId'])continue;const _0xa9788f=_0x154836['attributes']['markerAttributes'];if(_0xa9788f&&Object['keys'](_0xa9788f)['length'])continue;const _0xcabb78=_0x154836['attributes']['tablePasteChainId'];let _0x1fbede=!0x0,_0x270b3c=!0x0;for(const _0x7febdd of _0x23094e)if(_0x7febdd['subType']&&_0x7febdd['subType']['startsWith']('tablePaste')){if(!_0x7febdd['attributes']['tablePasteChainId']){_0x270b3c=!0x1;break;}if(_0x7febdd['id']!=_0x154836['id']&&_0x7febdd['attributes']['tablePasteChainId']==_0xcabb78){_0x1fbede=!0x1;break;}}_0x270b3c&&_0x1fbede&&(_0x154836['removeMarkers'](),_0x23ed64=!0x0);}}for(const _0x5c35a4 of _0x5afbae)_0x1e9fc6['remove'](_0x5c35a4);for(const _0x4a734d of _0x47ba90)_0x1e9fc6['unwrap'](_0x4a734d);return _0x23ed64;}),_0x417a06['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xcdddde=>_0xdf1fc6(_0xcdddde),'converterPriority':'high'}),_0x417a06['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3ff62e,_0x214d2c)=>_0x214d2c['options']['showSuggestionHighlights']?_0xdf1fc6(_0x3ff62e,!0x1):null,'converterPriority':'high'});const _0x3f1b05=_0x417a06['editing']['view'];this['listenTo'](_0x3f1b05['document'],'clipboardOutput',(_0x67a98d,_0x5779d7)=>{const _0x4507e8=[];for(const _0x4f14ff of _0x3f1b05['createRangeIn'](_0x5779d7['content'])['getItems']())_0x4f14ff['is']('element','suggestion-td')&&_0x4507e8['push'](_0x4f14ff);_0x3f1b05['change'](_0x540e46=>{for(const _0x49dcc4 of _0x4507e8)_0x540e46['move'](_0x540e46['createRangeIn'](_0x49dcc4),_0x540e46['createPositionBefore'](_0x49dcc4)),_0x540e46['remove'](_0x49dcc4);});});}}function Be(_0x11e3b7){if(_0x11e3b7['isEmpty'])return!0x0;const _0x28d256=_0x11e3b7['getChild'](0x0);return _0x28d256['is']('element','paragraph')&&_0x28d256['isEmpty'];}function Oe(_0x41c726,_0xc8af00={},_0x393a3a){for(const {isAnchor:_0x5c12d8,cellHeight:_0x1575f7,cellWidth:_0x407c55}of _0x393a3a['createTableWalker'](_0x41c726,{'includeAllSlots':!0x0,..._0xc8af00}))if(!_0x5c12d8||0x1!=_0x1575f7||0x1!=_0x407c55)return!0x1;return!0x0;}class Ot extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1badeb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1badeb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1badeb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1badeb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1badeb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1badeb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1badeb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x555a4e,_0x5c9d9c){const _0x1ed891=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f02e9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x130fbc=_0x5c9d9c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7c85d4=_0x2f02e9['getColumnGroupElement'](_0x130fbc);let _0x55e224=_0x7c85d4?_0x2f02e9['getTableColumnsWidths'](_0x7c85d4):null,_0x11da71=_0x130fbc['getAttribute']('tableWidth')||null;const _0x167e16=_0x5c9d9c['tableWidth']||_0x11da71,_0x78e128=_0x5c9d9c['columnWidths']||_0x55e224,_0x43d8cb=this['editor']['plugins']['get']('Users')['me'];for(const _0x14cdc4 of _0x1ed891['getSuggestions']()){const _0x108af0=_0x14cdc4['getContainedElement']();if('resizeTable'===_0x14cdc4['subType']&&_0x108af0===_0x130fbc){_0x14cdc4['author']!==_0x43d8cb&&_0x14cdc4['discard']();const _0x270cba=_0x14cdc4['data']['commandParams'];_0x11da71=_0x270cba[0x0]['tableWidth'],_0x55e224=_0x270cba[0x0]['columnWidths'];break;}}_0x555a4e({'table':_0x130fbc,'tableWidth':_0x167e16,'columnWidths':_0x78e128}),_0x1ed891['markBlockFormat'](_0x130fbc,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11da71,'columnWidths':_0x55e224}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x56f258){if('formatBlock'!=_0x56f258['type']&&'formatInline'!=_0x56f258['type'])return;const {data:_0x28248d}=_0x56f258;if(_0x28248d&&'resizeTable'===_0x28248d['formatGroupId']){const _0xbe5907='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xbe5907)};}}}class xt extends _0x959a6f{['afterInit'](){const _0xafe590=this['editor'];_0xafe590['plugins']['has']('Template')&&_0xafe590['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x959a6f{['afterInit'](){const _0xb7d765=this['editor'];if(!_0xb7d765['commands']['get']('insertTableOfContents'))return;_0xb7d765['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x31b728=_0xb7d765['plugins']['get']('TrackChangesEditing'),_0x1aa771=_0xb7d765['locale'];_0x31b728['descriptionFactory']['registerElementLabel']('tableOfContents',_0x19be43=>o(_0x1aa771,'ELEMENT_TABLE_OF_CONTENTS',_0x19be43));}}class Rt extends _0x959a6f{['afterInit'](){const _0x306c52=this['editor'];if(!_0x306c52['plugins']['has']('Title'))return;const _0x32bdc9=_0x306c52['plugins']['get']('TrackChangesEditing');_0x32bdc9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x306c52['locale'],'ELEMENT_TITLE')),_0x306c52['model']['document']['registerPostFixer'](_0x2226a4=>{let _0x1e7b5c=!0x1;const _0x2f9a3c=Array['from'](_0x306c52['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2657e3,data:_0x9a801c}of _0x2f9a3c){const {group:_0x17090a}=_0x32bdc9['_splitMarkerName'](_0x2657e3);if('suggestion'!==_0x17090a||!_0x9a801c['newRange'])continue;const _0x4716c3=_0x9a801c['newRange'],_0x526dee=_0x4716c3['end']['nodeBefore'];if(!_0x526dee||!_0x526dee['is']('element','title-content'))continue;if(!_0x4716c3['start']['isTouching'](_0x4716c3['end']))continue;const _0x4fac07=_0x306c52['model']['schema']['getNearestSelectionRange'](_0x4716c3['end'],'forward');if(_0x4fac07&&_0x4fac07['isCollapsed']){const _0x1fecff=_0x2226a4['createRange'](_0x4716c3['start'],_0x4fac07['start']);_0x1fecff['isEqual'](_0x4716c3)||(_0x2226a4['updateMarker'](_0x2657e3,{'range':_0x1fecff}),_0x1e7b5c=!0x0);}_0x1e7b5c||(_0x2226a4['removeMarker'](_0x2657e3),_0x1e7b5c=!0x0);}return _0x1e7b5c;});}}class Tt extends _0x959a6f{['afterInit'](){const _0x31aab1=this['editor'],_0x272094=_0x31aab1['plugins']['get']('TrackChangesEditing');_0x31aab1['plugins']['has']('Uploadcare')&&(_0x272094['enableCommand']('uploadcare'),_0x31aab1['plugins']['has']('UploadcareImageEdit')&&(_0x272094['enableCommand']('uploadcareImageEdit'),_0x272094['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x272094['descriptionFactory']['registerDescriptionCallback'](_0x257378=>{if('attribute'!=_0x257378['type'])return;const {data:_0xc0f906}=_0x257378;return _0xc0f906&&'uploadcareImageId'==_0xc0f906['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x959a6f{['afterInit'](){const _0x3bf54c=this['editor'],_0x23ce31=_0x3bf54c['plugins']['get']('TrackChangesEditing');_0x3bf54c['plugins']['has']('UndoEditing')&&(_0x23ce31['enableCommand']('undo'),_0x23ce31['enableCommand']('redo'));}}class Ut extends _0x959a6f{static get['requires'](){return[Nt];}['afterInit'](){const _0x14ff27=this['editor'];if(!_0x14ff27['plugins']['has']('TableCaptionEditing'))return;_0x14ff27['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x959a6f{['tableProperties'];['tableCellProperties'];constructor(_0x5eda21){super(_0x5eda21),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x5eda21['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x554136=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x49379a of this['tableProperties'])_0x554136['enableCommand'](_0x49379a,(_0x1416ec,_0x3cd2ae)=>{const _0x19f655=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x49379a,[_0x19f655],this['tableProperties'],'tableProperties',_0x1416ec,_0x3cd2ae);});_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x554136['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x476b64,_0x4c9f1d)=>this['handleDiscardAction'](this['tableProperties'],_0x476b64,_0x4c9f1d)),_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3336c4 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3336c4)&&_0x554136['enableCommand'](_0x3336c4,(_0x2343f6,_0x510df2)=>{const _0x4f094f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3336c4,_0x4f094f,this['tableCellProperties'],'tableCellProperties',_0x2343f6,_0x510df2);});_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x554136['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x421bca,_0x2e4399)=>this['handleDiscardAction'](this['tableCellProperties'],_0x421bca,_0x2e4399)),_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x554136['registerBlockAttribute']('tableCellType'),_0x554136['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x554136['descriptionFactory']['registerDescriptionCallback'](_0x38a461=>this['handleSuggestionDescription'](_0x38a461)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5db504,_0x668fb3,_0x416e13,_0x380d87,_0x157f08,_0x316ad2){const _0x3c2c5e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x316ad2['batch'],()=>{for(const _0xde933a of _0x668fb3){if(this['_getSuggestion'](_0xde933a,_0x380d87))_0x157f08(_0x316ad2);else{const _0x1e902b={};for(const _0x28f7ff of _0x416e13){const _0x299605=_0xde933a['getAttribute'](_0x28f7ff);void 0x0!==_0x299605&&(_0x1e902b[_0x28f7ff]=_0x299605);}_0x157f08(_0x316ad2),_0x3c2c5e['markBlockFormat'](_0xde933a,{'commandParams':[_0x1e902b]},[],_0x380d87);}}});}['handleDiscardAction'](_0x2d06a8,_0x35f04c,_0x389adf){const _0x5e8937=_0x35f04c[0x0]['start']['nodeAfter'],_0x72aaed=_0x389adf['commandParams'][0x0];this['editor']['model']['change'](_0x2d6bb0=>{for(const _0x2aa253 of _0x2d06a8)void 0x0!==_0x72aaed[_0x2aa253]?_0x2d6bb0['setAttribute'](_0x2aa253,_0x72aaed[_0x2aa253],_0x5e8937):_0x2d6bb0['removeAttribute'](_0x2aa253,_0x5e8937);});}['handleSuggestionDescription'](_0x13f49b){if(_0x13f49b['data'])switch(_0x13f49b['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'](_0x135806,_0x49634f){const _0x101434=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ac1ad of _0x101434['getSuggestions']({'skipNotAttached':!0x0})){const _0x4de032=_0x3ac1ad['getContainedElement']();if(_0x3ac1ad['subType']===_0x49634f&&_0x4de032===_0x135806)return _0x3ac1ad;}return null;}['_registerTablePropertiesAttributes'](){const _0x2bb02f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xacbf6c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x335a66 of _0xacbf6c){const _0x5dc9f5=_0x335a66['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2bb02f['descriptionFactory']['registerAttributeLabel'](_0x335a66,o(this['editor']['locale'],'FORMAT_'+_0x5dc9f5));}}}class Ft extends _0x959a6f{['afterInit'](){const _0x423d16=this['editor'];if(!_0x423d16['plugins']['has']('LineHeight'))return;const _0x50867d=_0x423d16['plugins']['get']('TrackChangesEditing'),_0x1b5e52=_0x423d16['locale'];_0x50867d['enableDefaultAttributesIntegration']('lineHeight'),_0x50867d['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1b5e52,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x959a6f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x48ca16,_0x3999ed,_0x22a795,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f3583){super(_0x1f3583),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f5941,_0x2fa3ab,_0x5b09d1,_0x5dc7b3)=>{this['_model']['change'](()=>{for(const _0x4f78da of[..._0x5dc7b3,..._0x5b09d1])this['_model']['markers']['has'](_0x4f78da)&&_0x1f3583['editing']['reconvertMarker'](_0x4f78da);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1f3583['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1f3583['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1f3583['config']['get']('trackChanges.trackFormatChanges'),_0x1f3583['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1f3583['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x1f3583,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x334d06=this['editor'];_0x334d06['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x328e35,{writer:_0x5a547c})=>{let _0x434131='suggestion:'+_0x328e35['getAttribute']('suggestion-type')+':'+_0x328e35['getAttribute']('id');return _0x328e35['getAttribute']('marker-count')&&(_0x434131+=':'+_0x328e35['getAttribute']('marker-count')),_0x5a547c['createElement']('$marker',{'data-name':_0x434131});}}),_0x334d06['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x334d06['model']['document']['registerPostFixer'](_0x3e8a5a=>{let _0x181c6a=!0x1;const _0x3abdc8=Array['from'](_0x334d06['model']['document']['differ']['getChangedMarkers']()),_0x1b3f18=new Set();for(const {name:_0x295cd4,data:_0x5ab2de}of _0x3abdc8){const {group:_0x48240f,type:_0x23700f,subType:_0xd5414f,id:_0x342357}=this['_splitMarkerName'](_0x295cd4);if('suggestion'!==_0x48240f)continue;const _0x41f435=_0xd5414f?'suggestion:'+_0x23700f+':'+_0xd5414f+':'+_0x342357:'suggestion:'+_0x23700f+':'+_0x342357,_0xff0c37=_0x334d06['model']['markers']['getMarkersGroup'](_0x41f435),_0x330e00=_0x334d06['model']['markers']['get'](_0x295cd4),_0xb5d7c9=this['_suggestions']['get'](_0x342357);if(null!=_0x5ab2de['newRange']){'formatInline'==_0x23700f&&(_0x181c6a=_0x181c6a||Wt(_0x5ab2de['newRange'],_0x295cd4,_0x3e8a5a,_0x334d06['model']['schema']));const _0x45260f='attribute'==_0x23700f&&this['_isBlockAttribute'](_0xd5414f['split']('|')[0x0]),_0x59f318='attribute'==_0x23700f&&this['_isInlineAttribute'](_0xd5414f['split']('|')[0x0]);if(_0x5ab2de['newRange']['isCollapsed']||'$graveyard'==_0x5ab2de['newRange']['root']['rootName']||'formatBlock'==_0x23700f&&!Qt(_0x5ab2de['newRange'])||_0x45260f&&!Qt(_0x5ab2de['newRange'])||_0x59f318&&Xt(_0x5ab2de['newRange'])||'deletion'==_0x23700f&&Xt(_0x5ab2de['newRange'])||_0x330e00&&Yt(_0x330e00,_0xff0c37))_0x3e8a5a['removeMarker'](_0x295cd4),_0x181c6a=!0x0;else{if(!_0xb5d7c9||!_0xb5d7c9['isInContent'])continue;if(_0x5ab2de['newRange']&&_0x5ab2de['oldRange']&&_0x5ab2de['newRange']['isEqual'](_0x5ab2de['oldRange']))continue;_0x1b3f18['add'](_0xb5d7c9);}}}return _0x1b3f18['size']>0x0&&(_0x181c6a=!!this['_joinWithAdjacentSuggestions'](_0x1b3f18)||_0x181c6a),_0x181c6a;}),_0x334d06['model']['document']['registerPostFixer'](_0x4a49a8=>{let _0xf62e26=!0x1;for(const _0x1a17ed of _0x334d06['model']['document']['differ']['getChanges']())if('insert'==_0x1a17ed['type'])for(const _0x3b16a4 of this['_suggestions']['values']()){if(_0x3b16a4['isMultiRange']||!_0x3b16a4['isInContent'])continue;const _0x12b23b='formatBlock'==_0x3b16a4['type'],_0xb24a9f=this['_getAttributeKey'](_0x3b16a4),_0x3dedd6=_0xb24a9f&&this['_isBlockAttribute'](_0xb24a9f);if(!_0x12b23b&&!_0x3dedd6)continue;const _0xa38e6f=_0x3b16a4['getFirstRange']();if(_0xa38e6f['start']['parent']!=_0xa38e6f['end']['parent']&&!_0xa38e6f['end']['isAtEnd']){const _0x28e924=_0x334d06['model']['createPositionAt'](_0xa38e6f['start']['nodeAfter'],'end'),_0x46b232=_0x334d06['model']['createRange'](_0xa38e6f['start'],_0x28e924);_0x4a49a8['updateMarker'](_0x3b16a4['getFirstMarker'](),{'range':_0x46b232}),_0xf62e26=!0x0;}}return _0xf62e26;}),_0x334d06['model']['document']['registerPostFixer'](_0x1630d7=>this['_processAttributeChanges'](_0x1630d7)),_0x334d06['model']['document']['registerPostFixer'](_0x101b26=>!_0x101b26['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x101b26)),_0x334d06['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x334d06['model']['document']['on']('change:data',(_0x3e29fb,_0x42bf07)=>{if(!_0x42bf07['isLocal']||_0x42bf07['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x477aa7=_0x334d06['model']['document']['differ']['getChanges']();if(0x0==_0x477aa7['length'])return;const _0x3b1b80=[],_0x351c05=_0x477aa7['filter'](_0x2d9b4c=>'attribute'==_0x2d9b4c['type']),_0x10b564=_0x477aa7['filter'](_0x58f1e4=>'insert'==_0x58f1e4['type']&&'$text'!=_0x58f1e4['name']);for(const _0x152b8c of _0x351c05)this['_isRegisteredAttribute'](_0x152b8c['attributeKey'])&&_0x3b1b80['push']({'key':_0x152b8c['attributeKey'],'newValue':_0x152b8c['attributeNewValue'],'oldValue':_0x152b8c['attributeOldValue'],'range':Zt(_0x152b8c['range'],_0x334d06['model'])});for(const _0x223712 of _0x10b564){if('rename'!=_0x223712['action']&&'refresh'!=_0x223712['action'])continue;const _0x296a16=tn(_0x223712['position']['nodeAfter'],_0x334d06['model']),_0x5a077d=_0x223712['before'];'rename'==_0x223712['action']&&_0x3b1b80['push']({'key':m,'newValue':_0x223712['name'],'oldValue':_0x5a077d['name'],'range':_0x296a16});for(const [_0x4d230d,_0x414224]of _0x5a077d['attributes']){if(!this['_isRegisteredAttribute'](_0x4d230d))continue;const _0x467f47=_0x223712['attributes']['get'](_0x4d230d);_0x414224!==_0x467f47&&_0x3b1b80['push']({'key':_0x4d230d,'newValue':_0x467f47,'oldValue':_0x414224,'range':_0x296a16});}for(const [_0x30641c,_0x47a375]of _0x223712['attributes'])this['_isRegisteredAttribute'](_0x30641c)&&(_0x5a077d['attributes']['has'](_0x30641c)||_0x3b1b80['push']({'key':_0x30641c,'newValue':_0x47a375,'oldValue':null,'range':_0x296a16}));}0x0!=_0x3b1b80['length']&&_0x334d06['model']['enqueueChange'](_0x42bf07,_0x419447=>{const _0x299e94=_0x257abf();for(const {range:_0x5263d5,key:_0x1825ab,oldValue:_0x300127,newValue:_0x1018b1}of _0x3b1b80)this['markAttributeChange'](_0x5263d5,_0x1825ab,_0x300127,_0x1018b1,{'groupId':_0x299e94});this['_reduceExistingSuggestions'](_0x419447,_0x3b1b80);});},{'priority':'lowest'}),_0x334d06['model']['markers']['on']('update:suggestion',(_0xb63cc5,_0x4d5877,_0x1700de)=>{if(null==_0x1700de){const {id:_0x221ddb}=this['_splitMarkerName'](_0x4d5877['name']),_0x5e3644=this['_suggestions']['get'](_0x221ddb);_0x5e3644&&_0x5e3644['addMarkerName'](_0x4d5877['name']);}}),_0x334d06['model']['document']['on']('change:data',()=>{const _0x1f1955=Array['from'](_0x334d06['model']['document']['differ']['getChangedMarkers']())['filter'](_0x30b39f=>'suggestion'===this['_splitMarkerName'](_0x30b39f['name'])['group']);if(0x0===_0x1f1955['length'])return;_0x1f1955['sort']((_0x1180c5,_0x6791b1)=>{const _0x4f8e28=_0x1180c5['data']['oldRange'],_0x50f742=_0x6791b1['data']['oldRange'];return null===_0x4f8e28&&null===_0x50f742?0x0:null===_0x4f8e28&&null!==_0x50f742?-0x1:null!==_0x4f8e28&&null===_0x50f742?0x1:_0x4f8e28['start']['isBefore'](_0x50f742['start'])?-0x1:0x1;});const _0x2b9cb2=new Set(),_0x1500b9=new Set();for(const {name:_0x585f73,data:_0xf6ab68}of _0x1f1955){const {id:_0x3d1b67}=this['_splitMarkerName'](_0x585f73);if(null===_0xf6ab68['oldRange']){const _0x398778=this['_handleNewSuggestionMarker'](_0x585f73);_0x1500b9['add'](_0x398778);}else{const _0x55ce20=this['_suggestions']['get'](_0x3d1b67);null!==_0xf6ab68['newRange']||_0x55ce20['isInContent']?(_0x2b9cb2['add'](_0x55ce20['head']),_0x1500b9['add'](_0x55ce20)):this['_removeSuggestion'](_0x55ce20);}}_0x1500b9['size']>0x0&&this['_refreshSuggestionsChain'](_0x1500b9);for(const _0x2866bb of _0x2b9cb2)this['fire']('suggestionChanged',_0x2866bb);}),_0x334d06['model']['on']('applyOperation',(_0x214179,_0x266a0c)=>{const _0x423ca3=_0x266a0c[0x0];if(!this['_suggestions']['size'])return;if(!_0x423ca3['isDocumentOperation'])return;if(_0x423ca3['batch']['isUndo']||!_0x423ca3['batch']['isLocal'])return;let _0x8ed6eb,_0x496096;switch(_0x423ca3['type']){case'insert':_0x8ed6eb=_0x334d06['model']['createPositionAt'](_0x423ca3['position']),_0x496096=_0x8ed6eb['getShiftedBy'](_0x423ca3['howMany']);break;case'split':_0x8ed6eb=_0x334d06['model']['createPositionAt'](_0x423ca3['splitPosition']),_0x496096=_0x334d06['model']['createPositionAt'](_0x423ca3['moveTargetPosition']);break;case'move':_0x8ed6eb=_0x334d06['model']['createPositionAt'](_0x423ca3['targetPosition']),_0x496096=_0x8ed6eb['getShiftedBy'](_0x423ca3['howMany']);break;default:return;}const _0x30c779=_0x334d06['model']['createRange'](_0x8ed6eb,_0x496096);_0x334d06['model']['change'](()=>{for(const {suggestion:_0x550bad,meta:_0x5519d1}of this['_findSuggestions'](_0x30c779)){if(_0x550bad['isMultiRange'])continue;if('formatInline'==_0x550bad['type'])continue;const _0x304d4a=this['_getAttributeKey'](_0x550bad);if(_0x304d4a&&this['_isBlockAttribute'](_0x304d4a)&&'split'!=_0x423ca3['type'])continue;const _0x376745=_0x550bad['data']&&_0x550bad['data']['multipleBlocks'];('formatBlock'!=_0x550bad['type']||'split'==_0x423ca3['type']&&!_0x376745)&&(_0x5519d1['containsRangeInObject']||'insertion'==_0x550bad['type']&&_0x5519d1['isOwn']||_0x550bad['getFirstRange']()['containsRange'](_0x30c779)&&this['_breakSuggestionMarker'](_0x550bad,_0x8ed6eb,_0x496096));}});},{'priority':'lowest'}),_0x334d06['model']['on']('deleteContent',(_0x22dce1,_0x5c4a7e)=>{const _0x55a88a=_0x5c4a7e[0x0],_0x3d430e=_0x5c4a7e[0x1];if(_0x3d430e&&_0x3d430e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x55a88a['isCollapsed'])return;const _0x33b1b0=_0x334d06['model']['schema'],{start:_0x4077db,end:_0x4a46a1}=_0x55a88a['getFirstRange'](),_0x3c7e1a=_0x4077db['nodeAfter']&&_0x33b1b0['isLimit'](_0x4077db['nodeAfter'])?null:_0x33b1b0['getNearestSelectionRange'](_0x4077db,'forward'),_0x4a29b9=_0x4a46a1['nodeBefore']&&_0x33b1b0['isLimit'](_0x4a46a1['nodeBefore'])?null:_0x33b1b0['getNearestSelectionRange'](_0x4a46a1,'backward'),_0x42d9cd=_0x334d06['model']['createRange'](_0x3c7e1a?_0x3c7e1a['start']:_0x4077db,_0x4a29b9?_0x4a29b9['end']:_0x4a46a1);_0x334d06['model']['change'](_0x3438d3=>{this['markDeletion'](_0x42d9cd);const _0x37d88f=_0x334d06['model']['schema']['getNearestSelectionRange'](_0x42d9cd['start']);_0x55a88a['is']('documentSelection')?_0x3438d3['setSelection'](_0x37d88f):_0x55a88a['setTo'](_0x37d88f);}),_0x22dce1['stop']();},{'priority':_0x1d470f['normal']+0xa}),_0x334d06['model']['on']('insertContent',(_0x4bb2f9,_0x155eb2)=>{const _0xf6a9b2=_0x155eb2[_0x155eb2['length']-0x1];_0xf6a9b2&&_0xf6a9b2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x334d06['model']['change'](()=>{let _0x5a517b=_0x334d06['model']['insertContent'](_0x155eb2[0x0],_0x155eb2[0x1],_0x155eb2[0x2],{'forceDefaultExecution':!0x0});if(!_0x5a517b)return;_0x4bb2f9['return']=_0x5a517b['clone']();const _0x296bb3=_0x5a517b['end']['nodeBefore'],_0x30f30d=_0x334d06['model']['schema'];_0x296bb3&&_0x30f30d['isBlock'](_0x296bb3)&&!_0x30f30d['isObject'](_0x296bb3)&&(_0x5a517b=_0x334d06['model']['createRange'](_0x5a517b['start'],_0x334d06['model']['createPositionAt'](_0x296bb3,'end'))),this['markInsertion'](_0x5a517b);}),_0x4bb2f9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x12e096=new v(_0x334d06,this['_suggestions']);_0x334d06['commands']['add']('acceptSuggestion',_0x12e096),this['enableCommand']('acceptSuggestion');const _0x472dea=new D(_0x334d06,this['_suggestions']);_0x334d06['commands']['add']('discardSuggestion',_0x472dea),this['enableCommand']('discardSuggestion'),_0x334d06['commands']['add']('acceptAllSuggestions',new B(_0x334d06,_0x12e096,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x334d06['commands']['add']('discardAllSuggestions',new B(_0x334d06,_0x472dea,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x334d06['commands']['add']('acceptSelectedSuggestions',new O(_0x334d06,_0x12e096,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x334d06['commands']['add']('discardSelectedSuggestions',new O(_0x334d06,_0x472dea,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1c5c62=_0x334d06['plugins']['get']('CommentsRepository');this['listenTo'](_0x1c5c62,'addComment',(_0x45db0e,{threadId:_0x30a982})=>{const _0x1292c0=this['_suggestions']['get'](_0x30a982);_0x1292c0&&_0x1292c0['commentThread']&&0x1===_0x1292c0['commentThread']['length']&&this['_updateSuggestionData'](_0x30a982,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1c5c62,'removeComment',(_0x4319e0,{threadId:_0x4d2f81})=>{const _0x15f007=this['_suggestions']['get'](_0x4d2f81);_0x15f007&&_0x15f007['commentThread']&&!_0x15f007['commentThread']['length']&&this['_updateSuggestionData'](_0x4d2f81,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x550dfc){const _0x39fc28=_0x3091b0([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5d054b=0x3d8d0df,_0x45e13c=0x3dfaeb7^_0x5d054b,_0x5ad598=window[_0x3091b0([0x44,0x61,0x74,0x65])][_0x3091b0([0x6e,0x6f,0x77])](),_0x35282d=_0x550dfc[_0x3091b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x435f08=new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x326d9b=>{_0x35282d[_0x3091b0([0x6f,0x6e,0x63,0x65])](_0x3091b0([0x72,0x65,0x61,0x64,0x79]),_0x326d9b);}),_0x6f23d1={[_0x3091b0([0x6b,0x74,0x79])]:_0x3091b0([0x45,0x43]),[_0x3091b0([0x75,0x73,0x65])]:_0x3091b0([0x73,0x69,0x67]),[_0x3091b0([0x63,0x72,0x76])]:_0x3091b0([0x50,0x2d,0x32,0x35,0x36]),[_0x3091b0([0x78])]:_0x3091b0([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]),[_0x3091b0([0x79])]:_0x3091b0([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]),[_0x3091b0([0x61,0x6c,0x67])]:_0x3091b0([0x45,0x53,0x32,0x35,0x36])},_0x22df46=_0x35282d[_0x3091b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3091b0([0x67,0x65,0x74])](_0x3091b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6687f4(){let _0x216dd6,_0x44b8eb=null,_0x3b467b=null;try{if(_0x22df46==_0x3091b0([0x47,0x50,0x4c]))return _0x3091b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x216dd6=_0x1be77f(),!_0x216dd6)return _0x3091b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x216dd6[_0x3091b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b467b=_0x2714cb(_0x216dd6[_0x3091b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x216dd6[_0x3091b0([0x6a,0x74,0x69])])),await _0x62d533()?_0x5d56ed()?_0x394a6b()?_0x3091b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11ee1a()?(_0x216dd6[_0x3091b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3091b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44b8eb=_0x457dcf(_0x3091b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x515dfd()):_0x3091b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3091b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3091b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3091b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x394a6b(){const _0x4cd110=[_0x3091b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3091b0([0x74,0x72,0x69,0x61,0x6c])][_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x216dd6[_0x3091b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ad598/0x3e8:0xe10*_0x45e13c;return _0x216dd6[_0x3091b0([0x65,0x78,0x70])]<_0x4cd110;}function _0x5d56ed(){const _0x14058a=_0x216dd6[_0x3091b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x14058a)return!0x1;if(_0x14058a[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3091b0([0x2a])))return!0x0;if(_0x14058a[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3091b0([0x54,0x43])))return!0x0;if(_0x14058a[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3091b0([0x52,0x54,0x43]))){if(_0x3c7f07())return!0x0;if(_0x2d0f6e()||_0x4d7ec8())return!0x0;}return!0x1;}function _0x11ee1a(){const _0xa5fe25=_0x216dd6[_0x3091b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa5fe25||0x0==_0xa5fe25[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b9bfd}=new URL(window[_0x3091b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa5fe25[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9bfd))return!0x0;const _0x1a1a0f=_0x2b9bfd[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])](_0x3091b0([0x2e]));return _0xa5fe25[_0x3091b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35ab0b=>_0x35ab0b[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3091b0([0x2a])))[_0x3091b0([0x6d,0x61,0x70])](_0x30f643=>_0x30f643[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])](_0x3091b0([0x2e])))[_0x3091b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f235c=>_0x3f235c[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a1a0f[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3091b0([0x6d,0x61,0x70])](_0x502369=>Array(_0x1a1a0f[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x502369[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3091b0([0x66,0x69,0x6c,0x6c])](_0x502369[0x0]===_0x3091b0([0x2a])?_0x3091b0([0x2a]):'')[_0x3091b0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x502369))[_0x3091b0([0x73,0x6f,0x6d,0x65])](_0x1668fe=>_0x1a1a0f[_0x3091b0([0x65,0x76,0x65,0x72,0x79])]((_0x18c77c,_0x502adb)=>_0x1668fe[_0x502adb]===_0x18c77c||_0x1668fe[_0x502adb]===_0x3091b0([0x2a])));}function _0x515dfd(){return _0x44b8eb&&_0x3b467b?new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4443d8,_0x4b914c)=>{_0x44b8eb[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x4443d8,_0x4b914c),_0x3b467b[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x4ce558=>{_0x4ce558!=_0x3091b0([0x56,0x61,0x6c,0x69,0x64])&&_0x4443d8(_0x4ce558);},_0x4b914c);}):_0x44b8eb||_0x3b467b||_0x3091b0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2714cb(_0x59d73b,_0x1b3b54){return new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2425ae=>{if(_0x1b9338())return _0x2425ae(_0x3091b0([0x56,0x61,0x6c,0x69,0x64]));_0x32091d(),_0x35282d[_0x3091b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3091b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x597022=!0x1;const _0x389d50=_0x257abf();function _0x5a78cf(_0x4b947d){return!!_0x4b947d&&(typeof _0x4b947d===_0x3091b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b947d===_0x3091b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b947d[_0x3091b0([0x74,0x68,0x65,0x6e])]===_0x3091b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b947d[_0x3091b0([0x63,0x61,0x74,0x63,0x68])]===_0x3091b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1db62d(_0xa97ac){_0x3c5ca2(_0xa97ac)[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x80aa97=>{if(!_0x80aa97||_0x80aa97[_0x3091b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3091b0([0x6f,0x6b]))return _0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41f9a9(_0x5e4eed(_0x389d50+_0x1b3b54))!=_0x80aa97[_0x3091b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3091b0([0x56,0x61,0x6c,0x69,0x64]);})[_0x3091b0([0x74,0x68,0x65,0x6e])](_0xfc7ea9=>(_0x4e250b(),_0xfc7ea9),()=>{const _0x2682f6=_0x30ee0d();return null==_0x2682f6?(_0x4e250b(),_0x3091b0([0x56,0x61,0x6c,0x69,0x64])):_0x3091b0(_0x5ad598-_0x2682f6>(0x27d454df^_0x5d054b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x2425ae)[_0x3091b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2425ae(_0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7951b5=0x3ee3e5f^_0x5d054b;function _0x4e250b(){const _0x36b64a=_0x3091b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x41f9a9(_0x5e4eed(_0x59d73b)),_0x45f156=_0x487327(_0x41f9a9(window[_0x3091b0([0x4d,0x61,0x74,0x68])][_0x3091b0([0x63,0x65,0x69,0x6c])](_0x5ad598/_0x7951b5)));window[_0x3091b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3091b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36b64a,_0x45f156);}function _0x30ee0d(){const _0x1a7b80=_0x3091b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x41f9a9(_0x5e4eed(_0x59d73b)),_0x5bcca4=window[_0x3091b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3091b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a7b80);return _0x5bcca4?window[_0x3091b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x487327(_0x5bcca4),0x10)*_0x7951b5:null;}function _0x3c5ca2(_0x5f4e61){return new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x546488,_0x105d15)=>{_0x5f4e61[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x546488,_0x105d15),window[_0x3091b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x105d15,0x3d9041f^_0x5d054b);});}}_0x35282d[_0x3091b0([0x6f,0x6e])](_0x3091b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x347481,_0x1906b6)=>{if(_0x1906b6[0x0]!=_0x59d73b)return _0x2425ae(_0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1906b6[0x1]={..._0x1906b6[0x1],[_0x3091b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x389d50};},{[_0x3091b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3091b0([0x68,0x69,0x67,0x68])}),_0x35282d[_0x3091b0([0x6f,0x6e])](_0x3091b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ac2b5=>{_0x5a78cf(_0x2ac2b5[_0x3091b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x597022=!0x0,_0x1db62d(_0x2ac2b5[_0x3091b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3091b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3091b0([0x6c,0x6f,0x77])}),_0x435f08[_0x3091b0([0x74,0x68,0x65,0x6e])](()=>{_0x597022||_0x2425ae(_0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b9338(){return _0x35282d[_0x3091b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3091b0([0x76,0x69,0x65,0x77])][_0x3091b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3091b0([0x61,0x75,0x74,0x6f]);}function _0x32091d(){_0x35282d[_0x3091b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3091b0([0x76,0x69,0x65,0x77])][_0x3091b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3091b0([0x61,0x75,0x74,0x6f]);}}function _0x457dcf(_0xf3f0c3){const _0x599c8d=[new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x526af6=>setTimeout(_0x526af6,0x3d1ee13^_0x5d054b)),_0x435f08[_0x3091b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57aa21=>{let _0x2a46c0=0x0;_0x35282d[_0x3091b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3091b0([0x6f,0x6e])](_0x3091b0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51b9a,_0x51250a)=>{_0x51250a[0x0][_0x3091b0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a46c0++,_0x2a46c0==(0x3d8d537^_0x5d054b)&&(_0x57aa21(),_0x51b9a[_0x3091b0([0x6f,0x66,0x66])]());});}))];return window[_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3091b0([0x72,0x61,0x63,0x65])](_0x599c8d)[_0x3091b0([0x74,0x68,0x65,0x6e])](()=>_0xf3f0c3);}async function _0x1cda3e(){await _0x435f08,_0x35282d[_0x3091b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3091b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2dff0a,_0x35282d[_0x3091b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3091b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2dff0a,_0x35282d[_0x3091b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3091b0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c7f07(){return _0x38dd24(_0x3091b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2ceda4(_0x3091b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3091b0([0x73,0x74,0x61,0x74,0x65])]==_0x3091b0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2d0f6e(){return _0x38dd24(_0x3091b0([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 _0x4d7ec8(){return _0x38dd24(_0x3091b0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x238a45(_0x411d7e){const _0x4fa8dc=_0xb2fe21();_0x35282d[_0x4fa8dc]=_0x3091b0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x411d7e,_0x411d7e!=_0x3091b0([0x56,0x61,0x6c,0x69,0x64])&&_0x1cda3e();}function _0xb2fe21(){const _0x15416c=window[_0x3091b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3091b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3091b0([0x6e,0x6f,0x77])]())[_0x3091b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3091b0([0x2e]),'');let _0x121912=_0x3091b0([0x52]);for(let _0x2108fa=0x0;_0x2108fa<_0x15416c[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2108fa+=0x2){let _0x354733=window[_0x3091b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15416c[_0x3091b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2108fa,_0x2108fa+0x2));_0x354733>=_0x39fc28[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x354733-=_0x39fc28[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x121912+=_0x39fc28[_0x354733];}return _0x121912;}function _0x1be77f(){const _0x232eb2=_0x22df46[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])](_0x3091b0([0x2e]));if(0x3!=_0x232eb2[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44fefa(_0x232eb2[0x1]);function _0x44fefa(_0xc25f4d){const _0x44156b=_0x1bbad8(_0xc25f4d);return _0x44156b&&_0x58fe08()?_0x44156b:null;function _0x58fe08(){const _0x3c2582=_0x44156b[_0x3091b0([0x6a,0x74,0x69])],_0x1cb801=window[_0x3091b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c2582[_0x3091b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c2582[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x168222={..._0x44156b,[_0x3091b0([0x6a,0x74,0x69])]:_0x3c2582[_0x3091b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c2582[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x168222[_0x3091b0([0x76,0x63])],_0x5e4eed(_0x168222)==_0x1cb801;}}}async function _0x62d533(){let _0x3b2e1b=!0x0;try{const _0x4bd77b=_0x22df46[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])](_0x3091b0([0x2e])),[_0x4b602d,_0xfc8c8c,_0xb5b919]=_0x4bd77b;return _0x4650d0(_0x4b602d),await _0x401a0b(_0x4b602d,_0xfc8c8c,_0xb5b919),_0x3b2e1b;}catch{return!0x1;}function _0x4650d0(_0x3d28fb){const _0x2a6774=_0x1bbad8(_0x3d28fb);_0x2a6774&&_0x2a6774[_0x3091b0([0x61,0x6c,0x67])]==_0x3091b0([0x45,0x53,0x32,0x35,0x36])||(_0x3b2e1b=!0x1);}async function _0x401a0b(_0x14f1d5,_0x15f9a0,_0x591b54){const _0x164441=window[_0x3091b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3091b0([0x66,0x72,0x6f,0x6d])](_0x3a988b(_0x591b54),_0x59996b=>_0x59996b[_0x3091b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18600f=new window[(_0x3091b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3091b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14f1d5+_0x3091b0([0x2e])+_0x15f9a0),_0x2eb4e0=window[_0x3091b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3091b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2eb4e0)return;const _0x47bc87=await _0x2eb4e0[_0x3091b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3091b0([0x6a,0x77,0x6b]),_0x6f23d1,{[_0x3091b0([0x6e,0x61,0x6d,0x65])]:_0x3091b0([0x45,0x43,0x44,0x53,0x41]),[_0x3091b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3091b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3091b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2eb4e0[_0x3091b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3091b0([0x6e,0x61,0x6d,0x65])]:_0x3091b0([0x45,0x43,0x44,0x53,0x41]),[_0x3091b0([0x68,0x61,0x73,0x68])]:{[_0x3091b0([0x6e,0x61,0x6d,0x65])]:_0x3091b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47bc87,_0x164441,_0x18600f)||(_0x3b2e1b=!0x1);}}function _0x1bbad8(_0x3f0c5f){return _0x3f0c5f[_0x3091b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3091b0([0x65,0x79]))?JSON[_0x3091b0([0x70,0x61,0x72,0x73,0x65])](_0x3a988b(_0x3f0c5f)):null;}function _0x3a988b(_0x34d04b){return window[_0x3091b0([0x61,0x74,0x6f,0x62])](_0x34d04b[_0x3091b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3091b0([0x2b]))[_0x3091b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3091b0([0x2f])));}function _0x5e4eed(_0x1107c4){let _0x26454c=0x1505;function _0x20d335(_0x5a0de4){for(let _0x3acfe7=0x0;_0x3acfe7<_0x5a0de4[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3acfe7++){const _0x250ce3=_0x5a0de4[_0x3091b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3acfe7);_0x26454c=(_0x26454c<<0x5)+_0x26454c+_0x250ce3,_0x26454c&=_0x26454c;}}function _0x57bb1e(_0x29f899){Array[_0x3091b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29f899)?_0x29f899[_0x3091b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57bb1e):_0x29f899&&typeof _0x29f899==_0x3091b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3091b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29f899)[_0x3091b0([0x73,0x6f,0x72,0x74])]()[_0x3091b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x505419,_0x5aed53])=>{_0x20d335(_0x505419),_0x57bb1e(_0x5aed53);}):_0x20d335(window[_0x3091b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29f899));}return _0x57bb1e(_0x1107c4),_0x26454c>>>0x0;}function _0x41f9a9(_0x4c91f7){return _0x4c91f7[_0x3091b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3091b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3091b0([0x30]));}function _0x487327(_0x1fc035){return _0x1fc035[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3091b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3091b0([0x6a,0x6f,0x69,0x6e])]('');}function _0x38dd24(_0x503a83){return _0x35282d[_0x3091b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3091b0([0x68,0x61,0x73])](_0x503a83);}function _0x2ceda4(_0x2b2cff){return _0x35282d[_0x3091b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3091b0([0x67,0x65,0x74])](_0x2b2cff);}function _0x2dff0a(){}function _0x3091b0(_0x9e89e6){return _0x9e89e6['map'](_0x448ef5=>String['fromCharCode'](_0x448ef5))['join']('');}_0x238a45(await _0x6687f4());}(this);}set['adapter'](_0x5f56af){if(this['_adapter'])throw new _0x111f2a('track-changes-adapter-already-set',this);this['_adapter']=_0x5f56af;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41f1e0=!0x1,toJSON:_0x3159e3=!0x1}={}){const _0xdcbcfd=[];for(const _0x388d3 of this['_suggestions']['values']())_0x41f1e0&&!_0x388d3['isInContent']||_0xdcbcfd['push'](_0x388d3);return _0x3159e3?_0xdcbcfd['map'](_0xe707=>_0xe707['toJSON']()):_0xdcbcfd;}['getSuggestion'](_0x514a76){const _0x128d5c=this['_suggestions']['get'](_0x514a76);if(!_0x128d5c)throw new _0x111f2a('track-changes-suggestion-not-found',this);return _0x128d5c;}['hasSuggestion'](_0xdb8b06){return this['_suggestions']['has'](_0xdb8b06);}['addSuggestionData'](_0x94c3d6){const {authorId:_0x3f8c55,id:_0x194575,originalSuggestionId:_0xad6708,attributes:_0x15f8ce}=_0x94c3d6,[_0x35a7c9,_0xb2644]=_0x94c3d6['type']['split'](':'),_0x59979e=this['_suggestions']['get'](_0x194575)||this['_createSuggestion'](_0x35a7c9,_0xb2644,_0x194575,_0x3f8c55,_0x15f8ce,_0xad6708);if(this['_addThreadToSuggestion'](_0x59979e),this['_checkSuggestionCorrectness'](_0x59979e,_0x35a7c9,_0xb2644||null,_0x3f8c55),_0x59979e['createdAt']=_0x94c3d6['createdAt'],_0x59979e['_isDataLoaded']=!0x0,_0x15f8ce&&_0x15f8ce['@external']){const _0x5b734b=_0x15f8ce['@external'],_0x4ed807=this['_getExternalAuthor'](_0x5b734b['authorName']);_0x59979e['authoredAt']=_0x5b734b['createdAt'],_0x59979e['author']=_0x4ed807,_0x59979e['isExternal']=!0x0;}else _0x59979e['authoredAt']=_0x94c3d6['createdAt'];switch(_0x94c3d6['data']&&(_0x59979e['data']=_0x94c3d6['data']),_0x94c3d6['attributes']&&(_0x59979e['attributes']=_0x94c3d6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x59979e['_saved']=!0x0),this['_suggestionState']['get'](_0x59979e)){case'notReady':this['_suggestionState']['set'](_0x59979e,'dataReady');break;case'markerReady':_0x59979e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x59979e])),this['_refreshSuggestionsChain'](new Set([_0x59979e])),this['_suggestionState']['set'](_0x59979e,'ready'),this['fire']('suggestionLoaded',_0x59979e)):this['_suggestionState']['set'](_0x59979e,'removed');}return _0x59979e;}['acceptSuggestion'](_0x435b58){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b7313 of _0x435b58['getAllAdjacentSuggestions']())_0x3b7313['accept']();});});}['discardSuggestion'](_0x4a9bc7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f28f3 of _0x4a9bc7['getAllAdjacentSuggestions']())_0x2f28f3['discard']();});});}['enableCommand'](_0xc7f751,_0x4da3b3){const _0x3e9df5=this['editor']['commands']['get'](_0xc7f751);if(!_0x3e9df5)throw new _0x111f2a('track-changes-command-not-found',this,{'commandName':_0xc7f751});if(this['_enabledCommands']['has'](_0x3e9df5))throw new _0x111f2a('track-changes-enable-command-twice',this,{'commandName':_0xc7f751});this['_enabledCommands']['add'](_0x3e9df5),_0x4da3b3&&_0x3e9df5['on']('execute',(_0x1d3e77,_0x20d01e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20d01e['length']>0x0&&_0x20d01e[_0x20d01e['length']-0x1]&&_0x20d01e[_0x20d01e['length']-0x1]['forceDefaultExecution']?_0x20d01e['pop']():(_0x1d3e77['return']=_0x4da3b3((..._0x3fad82)=>_0x3e9df5['execute'](..._0x3fad82,{'forceDefaultExecution':!0x0}),..._0x20d01e),_0x1d3e77['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x53fffa){let _0x57df8a,_0x2e1da8;const _0x5881f2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x57df8a=_0x53fffa();}catch(_0x2bd44e){_0x2e1da8=_0x2bd44e;}return _0x5881f2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2e1da8&&_0x111f2a['rethrowUnexpectedError'](_0x2e1da8,this),_0x57df8a;}['markInsertion'](_0xbd9364,_0x1010fc=null,_0x347618={}){if(_0xbd9364['isCollapsed'])return null;const _0x20d26c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x347618['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3948d1,meta:_0x405883}of this['_findSuggestions'](_0xbd9364,'insertion'))if(_0x405883['isOwn']){if(!_0x405883['isNextTo']){if(_0x405883['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x3948d1,_0x347618))continue;return _0x3948d1;}if(sn(_0x3948d1,_0x347618))return _0x3948d1;this['_breakSuggestionMarker'](_0x3948d1,_0xbd9364['start'],_0xbd9364['end']);break;}if(_0x1010fc==_0x3948d1['subType']&&sn(_0x3948d1,_0x347618)){const _0x48b83a=_0x3948d1['getFirstRange']();return _0x48b83a['start']['isEqual'](_0xbd9364['end'])?this['_setSuggestionRange'](_0x3948d1,this['_model']['createRange'](_0xbd9364['start'],_0x48b83a['end'])):this['_setSuggestionRange'](_0x3948d1,this['_model']['createRange'](_0x48b83a['start'],_0xbd9364['end'])),_0x3948d1;}}const _0x386dce=_0x257abf(),_0x5d7cda=_0x20d26c['id'],_0x4e9fc9=_0x1010fc?'insertion:'+_0x1010fc:'insertion',_0x3da701=this['_setSuggestionData']({'id':_0x386dce,'type':_0x4e9fc9,'createdAt':new Date(),'authorId':_0x5d7cda,'attributes':_0x347618});return this['_addSuggestionMarker'](_0x4e9fc9,_0x386dce,_0x5d7cda,_0xbd9364),_0x3da701;}['markMultiRangeInsertion'](_0x503732,_0x29da8e='multi',_0x459be0={}){const _0x30474b=this['editor']['plugins']['get']('Users')['me'],_0x4235aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x29da8e,'join');this['_trackingSessionId']&&(_0x459be0['trackingSessionId']=this['_trackingSessionId']);for(const _0x5d1d47 of this['getSuggestions']())if(_0x5d1d47['author']['id']==_0x30474b['id']&&'insertion'==_0x5d1d47['type']&&_0x5d1d47['subType']==_0x29da8e&&sn(_0x5d1d47,_0x459be0)&&(_0x4235aa(_0x5d1d47['getRanges'](),_0x503732)||_0x4235aa(_0x503732,_0x5d1d47['getRanges']()))){for(const _0x3521ce of _0x503732)_0x5d1d47['addRange'](_0x3521ce);return _0x5d1d47;}for(const {suggestion:_0x575b9b,meta:_0x22f8df}of this['_findSuggestions'](_0x503732,'insertion')){if(!_0x22f8df['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22f8df['containsRangeInObject'])continue;if(!sn(_0x575b9b,_0x459be0))continue;let _0x45b045=!0x0;for(const _0x3360ce of _0x575b9b['getRanges']())for(const _0xd638f5 of _0x503732)if(!_0x3360ce['containsRange'](_0xd638f5)){_0x45b045=!0x1;break;}if(_0x45b045)return _0x575b9b;}const _0x1d7700=_0x257abf(),_0xb06ce1=_0x30474b['id'],_0x46e78b='insertion:'+_0x29da8e,_0x170081=this['_setSuggestionData']({'id':_0x1d7700,'type':_0x46e78b,'createdAt':new Date(),'authorId':_0xb06ce1,'attributes':_0x459be0});for(const _0x1307a2 of _0x503732)this['_addSuggestionMarker'](_0x46e78b,_0x1d7700,_0xb06ce1,_0x1307a2,x['getMultiRangeId']());return _0x170081;}['markInlineFormat'](_0xdf7ec2,_0xdd69f5,_0x2244e2=null,_0x3bc8c5={}){if(_0x2244e2=_0x2244e2||Ht(_0xdd69f5),_0xdf7ec2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3bc8c5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35c477=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2244e2,'accept');return this['forceDefaultExecution'](()=>_0x35c477([_0xdf7ec2],_0xdd69f5,_0x3bc8c5)),null;}const _0x2816b4=this['editor']['plugins']['get']('Users')['me'],_0x4c750e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x105e75,meta:_0x46ef3f}of this['_findSuggestions'](_0xdf7ec2,'insertion'))_0x46ef3f['isOwn']&&!_0x46ef3f['isInsideObject']&&_0x4c750e['push'](..._0x105e75['getRanges']());}const _0x373d3f=function(_0x1f94f2,_0x1c628e){const _0x5b5809=[];for(const _0x3a3c54 of _0x1c628e){const _0x14508a=_0x1f94f2['getIntersection'](_0x3a3c54);_0x14508a&&_0x5b5809['push'](_0x14508a);}return _0x5b5809;}(_0xdf7ec2,_0x4c750e),_0x11ec0e=function(_0x553bee,_0x478e07){const _0x468e7c=[_0x553bee];for(const _0x32e184 of _0x478e07){let _0x12a550=0x0;for(;_0x12a550<_0x468e7c['length'];){const _0x5e4225=_0x468e7c[_0x12a550]['getDifference'](_0x32e184);_0x468e7c['splice'](_0x12a550,0x1,..._0x5e4225),_0x12a550+=_0x5e4225['length'];}}return _0x468e7c;}(_0xdf7ec2,_0x4c750e);_0x373d3f['length']&&this['_model']['change'](()=>{for(const _0x502280 of _0x373d3f){const _0x145100=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2244e2,'accept');this['forceDefaultExecution'](()=>_0x145100([_0x502280],_0xdd69f5,_0x3bc8c5));}});for(const _0x32878d of _0x11ec0e){let _0x3709c9=null,_0x49c5a0=_0x32878d['start'],_0x511251=_0x32878d['end'];for(const {suggestion:_0x48158f,meta:_0x151dcb}of this['_findSuggestions'](_0x32878d,'formatInline')){if(!_0x151dcb['isOwn'])continue;if(_0x48158f['subType']!=_0x2244e2)continue;if(!sn(_0x48158f,_0x3bc8c5))continue;const _0x561ba8=_0x48158f['getFirstRange']();if(_0x561ba8['containsRange'](_0x32878d,!0x0))return null;_0x49c5a0=_0x49c5a0['isBefore'](_0x561ba8['start'])?_0x49c5a0:_0x561ba8['start'],_0x511251=_0x511251['isAfter'](_0x561ba8['end'])?_0x511251:_0x561ba8['end'],_0x3709c9?_0x561ba8['start']['isBefore'](_0x3709c9['getFirstRange']()['start'])?(_0x3709c9['removeMarkers'](),_0x3709c9=_0x48158f):_0x48158f['removeMarkers']():_0x3709c9=_0x48158f;}const _0x40e3ea=this['_model']['createRange'](_0x49c5a0,_0x511251);if(_0x3709c9)this['_setSuggestionRange'](_0x3709c9,_0x40e3ea);else{const _0x5ec09c=_0x257abf(),_0x460812=_0x2816b4['id'];this['_setSuggestionData']({'id':_0x5ec09c,'type':'formatInline:'+_0x2244e2,'data':_0xdd69f5,'createdAt':new Date(),'authorId':_0x460812,'attributes':_0x3bc8c5}),this['_addSuggestionMarker']('formatInline:'+_0x2244e2,_0x5ec09c,_0x460812,_0x40e3ea);}}return null;}['markBlockFormat'](_0x4a7254,_0x3c06c9,_0x3e6da3=[],_0x56c6ec=null,_0x28ca96={}){_0x3c06c9['formatGroupId']||(_0x3c06c9['formatGroupId']=_0x3c06c9['commandName']),_0x3c06c9['multipleBlocks']=_0x4a7254['is']('range'),_0x56c6ec=_0x56c6ec||Ht(_0x3c06c9);const _0x3d5fed=_0x3e6da3['map'](_0x44d117=>tn(_0x44d117,this['_model'])),_0x25af2b=_0x4a7254['is']('range')?_0x4a7254:tn(_0x4a7254,this['_model']);if(this['_trackingSessionId']&&(_0x28ca96['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x57347a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56c6ec,'accept');return this['forceDefaultExecution'](()=>_0x57347a([_0x25af2b],_0x3c06c9,_0x28ca96)),null;}_0x3d5fed['push'](_0x25af2b);let _0x351001=!0x0;for(const _0x4efdc3 of _0x3d5fed)if(!this['_rangeIsInLocalUserInsertion'](_0x4efdc3)){_0x351001=!0x1;break;}if(_0x351001&&'always'!==this['_trackFormatChanges']){const _0x29dce5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56c6ec,'accept');return this['forceDefaultExecution'](()=>_0x29dce5([_0x25af2b],_0x3c06c9,_0x28ca96)),null;}let _0x481d9b=null,_0x305d04=_0x25af2b['start'],_0x4cae1e=_0x25af2b['end'];for(const {suggestion:_0xbc69db,meta:_0x1931a9}of this['_findSuggestions'](_0x25af2b,'formatBlock')){if(!_0x1931a9['isOwn'])continue;if(_0x1931a9['isNextTo']||_0x1931a9['containsRangeInObject']||_0x1931a9['isInsideObject'])continue;if(_0xbc69db['data']['formatGroupId']!=_0x3c06c9['formatGroupId'])continue;if(!sn(_0xbc69db,_0x28ca96))continue;const _0x5c935c=_0xbc69db['getFirstRange']();if(_0xbc69db['subType']==_0x56c6ec){if(_0x5c935c['containsRange'](_0x25af2b,!0x0))return null;_0x305d04=_0x305d04['isBefore'](_0x5c935c['start'])?_0x305d04:_0x5c935c['start'],_0x4cae1e=_0x4cae1e['isAfter'](_0x5c935c['end'])?_0x4cae1e:_0x5c935c['end'],_0x481d9b?_0x5c935c['start']['isBefore'](_0x481d9b['getFirstRange']()['start'])?(_0x481d9b['removeMarkers'](),_0x481d9b=_0xbc69db):_0xbc69db['removeMarkers']():_0x481d9b=_0xbc69db;}else{const _0x4adf55=_0x25af2b['getIntersection'](_0x5c935c);this['_cutOutSuggestionMarker'](_0xbc69db,_0x4adf55);}}const _0x521600=this['editor']['plugins']['get']('Users')['me'],_0x382a13=_0x257abf(),_0x37167e=_0x521600['id'];if(_0x481d9b)return this['_setSuggestionRange'](_0x481d9b,this['_model']['createRange'](_0x305d04,_0x4cae1e)),_0x481d9b;{const _0x5e5e77=this['_setSuggestionData']({'id':_0x382a13,'type':'formatBlock:'+_0x56c6ec,'data':_0x3c06c9,'createdAt':new Date(),'authorId':_0x37167e,'attributes':_0x28ca96});return this['_addSuggestionMarker']('formatBlock:'+_0x56c6ec,_0x382a13,_0x37167e,this['_model']['createRange'](_0x305d04,_0x4cae1e)),_0x5e5e77;}}['markMultiRangeBlockFormat'](_0x3e5c9f,_0x3229fe,_0x6bb04e=[],_0x17f355=null,_0x255de6={}){_0x3229fe['formatGroupId']||(_0x3229fe['formatGroupId']=_0x3229fe['commandName']);const _0x100d70=_0x3e5c9f[0x0];_0x3229fe['multipleBlocks']=_0x100d70['is']('range'),_0x17f355=_0x17f355||Ht(_0x3229fe);const _0xf07d38=_0x6bb04e['map'](_0xdc5907=>tn(_0xdc5907,this['_model'])),_0x302f02=_0x100d70['is']('range')?_0x3e5c9f:_0x3e5c9f['map'](_0x5b2218=>tn(_0x5b2218,this['_model']));if(this['_trackingSessionId']&&(_0x255de6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37b291=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17f355,'accept');return this['forceDefaultExecution'](()=>_0x37b291(_0x302f02,_0x3229fe,_0x255de6)),null;}_0xf07d38['push'](..._0x302f02);let _0x22a15f=!0x0;for(const _0x3ada1f of _0xf07d38)if(!this['_rangeIsInLocalUserInsertion'](_0x3ada1f)){_0x22a15f=!0x1;break;}if(_0x22a15f&&'always'!==this['_trackFormatChanges']){const _0x3bf539=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17f355,'accept');return this['forceDefaultExecution'](()=>_0x3bf539(_0x302f02,_0x3229fe,_0x255de6)),null;}const _0x53bd06=this['editor']['plugins']['get']('Users')['me'];for(const _0x4f35ee of this['getSuggestions']()){const _0x135573=_0x4f35ee['data'];if(_0x4f35ee['author']['id']!=_0x53bd06['id'])continue;if('formatBlock'!=_0x4f35ee['type']||_0x135573['formatGroupId']!=_0x3229fe['formatGroupId'])continue;if(!sn(_0x4f35ee,_0x255de6))continue;const _0x1225ae=_0x4f35ee['subType']==_0x17f355;for(let _0x1d7b77=0x0;_0x1d7b77<_0x302f02['length'];_0x1d7b77++){const _0x4f160a=_0x302f02[_0x1d7b77];for(const _0x359d0c of _0x4f35ee['getMarkers']()){const _0x79d2ed=_0x359d0c['getRange']();if(_0x4f160a['isEqual'](_0x79d2ed)){_0x1225ae?(_0x302f02['splice'](_0x1d7b77,0x1),_0x1d7b77--):_0x4f35ee['removeMarker'](_0x359d0c['name']);break;}}}}if(0x0==_0x302f02['length'])return null;const _0x29f849=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17f355,'join');for(const _0x21e9d4 of this['getSuggestions']()){const _0x2bf7d5=_0x21e9d4['data'];if(_0x21e9d4['author']['id']==_0x53bd06['id']&&('formatBlock'==_0x21e9d4['type']&&_0x2bf7d5['formatGroupId']==_0x3229fe['formatGroupId']&&_0x21e9d4['subType']==_0x17f355&&sn(_0x21e9d4,_0x255de6)&&(_0x29f849(_0x21e9d4['getRanges'](),_0x302f02)||_0x29f849(_0x302f02,_0x21e9d4['getRanges']())))){for(const _0x3566bb of _0x302f02)_0x21e9d4['addRange'](_0x3566bb);return _0x21e9d4;}}const _0x1bf5fd=_0x257abf(),_0x241e2d=_0x53bd06['id'],_0x29e17e='formatBlock:'+_0x17f355,_0xeddc8f=this['_setSuggestionData']({'id':_0x1bf5fd,'type':_0x29e17e,'data':_0x3229fe,'createdAt':new Date(),'authorId':_0x241e2d,'attributes':_0x255de6});for(const _0xdadaf of _0x302f02)this['_addSuggestionMarker'](_0x29e17e,_0x1bf5fd,_0x241e2d,_0xdadaf,x['getMultiRangeId']());return _0xeddc8f;}['markDeletion'](_0x1a2b7b,_0x1e3782=null,_0x58e4b5={}){if(_0x1a2b7b['isCollapsed'])return null;const _0x3876af=this['editor']['plugins']['get']('Users')['me'],_0xfd1adf=new _0x481a5c(_0x1a2b7b['start'],_0x1a2b7b['end']);this['_trackingSessionId']&&(_0x58e4b5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2c790f,meta:_0x25a531}of this['_findSuggestions'](_0xfd1adf,'insertion'))if(_0x25a531['isOwn']&&!_0x25a531['isNextTo']){if(_0x2c790f['isMultiRange']){const _0x81bd42=_0x2c790f['getRanges']()['filter'](_0x4b08de=>'$graveyard'!=_0x4b08de['root']['rootName']);_0x81bd42['every'](_0x4a68c1=>_0xfd1adf['containsRange'](_0x4a68c1,!0x0))&&_0x2c790f['discard']();if(_0x81bd42['some'](_0x3064ad=>_0x3064ad['containsRange'](_0xfd1adf,!0x0))){const _0x18b6cc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e3782,'accept');return this['forceDefaultExecution'](()=>_0x18b6cc([_0xfd1adf],null,_0x58e4b5)),null;}}else{const _0x125ffd=_0xfd1adf['getIntersection'](_0x2c790f['getFirstRange']());null!==_0x125ffd&&_0x2c790f['_onDiscard']([_0x125ffd],null,_0x58e4b5);}}if(_0xfd1adf['detach'](),_0xfd1adf['isCollapsed']||'$graveyard'==_0xfd1adf['root']['rootName'])return null;let _0x4311f7=null,_0x479345=_0xfd1adf['start'],_0xaeb7f3=_0xfd1adf['end'];const _0x8e28b4=this['_findSuggestions'](_0xfd1adf,'deletion');for(const {suggestion:_0x3ee58c,meta:_0x42a60b}of _0x8e28b4){const _0x55fe08=this['_model']['createRange'](_0x479345,_0xaeb7f3);if(_0x42a60b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x42a60b['containsRangeInObject']&&!_0x42a60b['isInsideObject'])){if(_0x3ee58c['isMultiRange']){if(!sn(_0x3ee58c,_0x58e4b5))continue;let _0x6ca965=!0x0;for(const _0x11026a of _0x3ee58c['getRanges']()){if(_0x11026a['containsRange'](_0x55fe08,!0x0))return _0x3ee58c;_0x55fe08['containsRange'](_0x11026a)||(_0x6ca965=!0x1);}_0x6ca965&&_0x3ee58c['discard']();}else{const _0xb11487=_0x3ee58c['getFirstRange']();if(_0xb11487['containsRange'](_0x55fe08,!0x0))return _0x3ee58c;if(!sn(_0x3ee58c,_0x58e4b5)){_0x55fe08['containsRange'](_0xb11487)?_0x3ee58c['removeMarkers']():_0xb11487['containsPosition'](_0x479345)?_0x479345=_0xb11487['end']:_0xb11487['containsPosition'](_0xaeb7f3)&&(_0xaeb7f3=_0xb11487['start']);continue;}_0x479345=_0x479345['isBefore'](_0xb11487['start'])?_0x479345:_0xb11487['start'],_0xaeb7f3=_0xaeb7f3['isAfter'](_0xb11487['end'])?_0xaeb7f3:_0xb11487['end'],_0x58e4b5=Object['assign']({},_0x3ee58c['attributes']),_0x4311f7?_0xb11487['start']['isBefore'](_0x4311f7['getFirstRange']()['start'])?(_0x4311f7['removeMarkers'](),_0x4311f7=_0x3ee58c):_0x3ee58c['removeMarkers']():_0x4311f7=_0x3ee58c;}}}if(_0x4311f7)return this['_setSuggestionRange'](_0x4311f7,this['_model']['createRange'](_0x479345,_0xaeb7f3)),_0x4311f7;{const _0x33d0e1=_0x257abf(),_0x4af6f1=this['_model']['createRange'](_0x479345,_0xaeb7f3),_0x2f996b=_0x3876af['id'],_0x1d907c=_0x1e3782?'deletion:'+_0x1e3782:'deletion',_0x56cbe4=this['_setSuggestionData']({'id':_0x33d0e1,'type':_0x1d907c,'createdAt':new Date(),'authorId':_0x2f996b,'attributes':_0x58e4b5});return this['_addSuggestionMarker'](_0x1d907c,_0x33d0e1,_0x2f996b,_0x4af6f1),_0x56cbe4;}}['markMultiRangeDeletion'](_0x35ea46,_0x16f7e1='multi',_0x30565c={}){const _0x117b2a=this['editor']['plugins']['get']('Users')['me'],_0x1191db=_0x35ea46['map'](_0x5e9d51=>new _0x481a5c(_0x5e9d51['start'],_0x5e9d51['end'])),_0x22c8de=new Set();this['_trackingSessionId']&&(_0x30565c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5db789,meta:_0xf31f18}of this['_findSuggestions'](_0x1191db,'insertion'))_0xf31f18['isOwn']&&!_0xf31f18['isNextTo']&&_0x22c8de['add'](_0x5db789);for(const _0x50465d of _0x22c8de)if(_0x50465d['isMultiRange']){const _0x2d5546=_0x50465d['getRanges']();(!_0x50465d['attributes']||!_0x50465d['attributes']['skipNestingCheck'])&&(_0x2d5546['every'](_0x5b745b=>_0x1191db['some'](_0x324d0e=>_0x324d0e['containsRange'](_0x5b745b,!0x0)))&&_0x50465d['discard']());if(_0x1191db['every'](_0x1d1641=>_0x2d5546['some'](_0x12e0f1=>_0x12e0f1['containsRange'](_0x1d1641,!0x0)))){const _0x3f833f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f7e1,'accept');return this['forceDefaultExecution'](()=>_0x3f833f(_0x35ea46,null,_0x30565c)),null;}}else{const _0x473a76=_0x50465d['getFirstRange']();_0x1191db['some'](_0x6a2899=>_0x6a2899['containsRange'](_0x473a76,!0x0))&&_0x50465d['discard']();if(_0x1191db['every'](_0x15278b=>_0x473a76['containsRange'](_0x15278b,!0x0))){const _0x2a8b2f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f7e1,'accept');return this['forceDefaultExecution'](()=>_0x2a8b2f(_0x1191db,null,_0x30565c)),null;}}const _0x263c8b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f7e1,'join');let _0x1b2d63=null;for(const _0x39d53b of this['getSuggestions']())if(_0x39d53b['author']['id']==_0x117b2a['id']&&_0x39d53b['isInContent']&&'deletion'==_0x39d53b['type']&&_0x39d53b['subType']==_0x16f7e1&&sn(_0x39d53b,_0x30565c)&&(_0x263c8b(_0x39d53b['getRanges'](),_0x1191db)||_0x263c8b(_0x1191db,_0x39d53b['getRanges']()))){if(_0x1b2d63){if(_0x39d53b['commentThread']&&_0x39d53b['commentThread']['length'])continue;for(const _0x24e368 of _0x39d53b['getRanges']())_0x1b2d63['isIntersectingWithRange'](_0x24e368)||_0x1b2d63['addRange'](_0x24e368);_0x39d53b['removeMarkers']();}else{_0x1b2d63=_0x39d53b;for(const _0x3c6910 of _0x1191db)_0x39d53b['isIntersectingWithRange'](_0x3c6910)||_0x39d53b['addRange'](_0x3c6910);}}if(_0x1b2d63)return _0x1b2d63;_0x22c8de['clear']();for(const {suggestion:_0x404236,meta:_0x40190b}of this['_findSuggestions'](_0x1191db,'deletion'))_0x40190b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x40190b['containsRangeInObject']&&!_0x40190b['isInsideObject'])&&sn(_0x404236,_0x30565c)&&_0x22c8de['add'](_0x404236);for(const _0x592888 of _0x22c8de){const _0x55913a=_0x592888['getRanges']();if(!_0x30565c||!_0x30565c['skipNestingCheck']){if(_0x1191db['every'](_0x4281ab=>_0x55913a['some'](_0x52be18=>_0x52be18['containsRange'](_0x4281ab,!0x0))))return _0x592888;}(!_0x592888['attributes']||!_0x592888['attributes']['skipNestingCheck'])&&(_0x55913a['every'](_0x31dbd9=>_0x1191db['some'](_0x498c92=>_0x498c92['containsRange'](_0x31dbd9,!0x0)))&&_0x592888['discard']());}const _0x2ece35=_0x257abf(),_0x369c22=_0x117b2a['id'],_0x3d4ac3='deletion:'+_0x16f7e1,_0x294279=this['_setSuggestionData']({'id':_0x2ece35,'type':_0x3d4ac3,'createdAt':new Date(),'authorId':_0x369c22,'attributes':_0x30565c});for(const _0x14841f of _0x1191db)_0x14841f['detach'](),_0x14841f['isCollapsed']||'$graveyard'==_0x14841f['root']['rootName']||this['_addSuggestionMarker'](_0x3d4ac3,_0x2ece35,_0x369c22,_0x14841f,x['getMultiRangeId']());return _0x294279;}['markAttributeChange'](_0x5b6c99,_0x15a35e,_0x55a5e2,_0x481940,_0x4d2652){if(_0x5b6c99['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5771ae=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a1b5a=Array['from'](this['_suggestions']['values']())['filter'](_0x42bee4=>'attribute'==_0x42bee4['type']&&_0x42bee4['data']['key']==_0x15a35e&&_0x42bee4['isIntersectingWithRange'](_0x5b6c99));if(this['_trackingSessionId']&&(_0x4d2652['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x566cb5=this['_findSuggestions'](_0x5b6c99,'insertion')['filter'](({meta:_0x27675c})=>_0x27675c['isOwn']&&!_0x27675c['isInsideObject']&&!_0x27675c['isNextTo'])['map'](({suggestion:_0x307452})=>_0x307452);_0x4a1b5a['unshift'](..._0x566cb5);}const _0x31be62=new Map([[_0x5b6c99,_0x55a5e2]]);for(const _0x29881f of _0x4a1b5a){const _0x3421dc='attribute'==_0x29881f['type']?_0x29881f['data']['oldValue']:void 0x0,_0x42917f=_0x29881f['getFirstRange'](),_0xa318d8=Array['from'](_0x31be62['keys']())['find'](_0x447b31=>_0x447b31['isIntersecting'](_0x42917f));if(!_0xa318d8)continue;const _0x279129=_0xa318d8['getDifference'](_0x42917f);this['_isBlockAttribute'](_0x15a35e)&&'insertion'==_0x29881f['type']&&0x0!=_0x279129['length']||(_0x31be62['delete'](_0xa318d8),_0x279129['forEach'](_0xf18236=>{_0x31be62['set'](_0xf18236,_0x55a5e2);}),'insertion'!=_0x29881f['type']&&_0x3421dc!=_0x481940&&_0x31be62['set'](_0xa318d8['getIntersection'](_0x42917f),_0x3421dc));}const _0x3caeec=[];for(const [_0x192ddd,_0x53b921]of _0x31be62){const _0x1f34cc=_0x257abf(),_0x5e28d8={'key':_0x15a35e,'oldValue':_0x53b921,'newValue':_0x481940};_0x15a35e['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':_0x15a35e});const _0x132f9a=('attribute:'+(_0x15a35e+'|'+Ht({'newValue':_0x481940})))['substring'](0x0,0x3c),_0x18a5fe=this['_setSuggestionData']({'id':_0x1f34cc,'type':_0x132f9a,'data':_0x5e28d8,'createdAt':new Date(),'authorId':_0x5771ae,'attributes':_0x4d2652});_0x3caeec['push'](_0x18a5fe),this['_addSuggestionMarker'](_0x132f9a,_0x1f34cc,_0x5771ae,_0x192ddd);}return _0x3caeec;}['enableDefaultAttributesIntegration'](_0x1d4fae){this['enableCommand'](_0x1d4fae,(_0x1b418d,..._0x291eba)=>{this['recordAttributeChanges'](()=>{_0x1b418d(..._0x291eba);});});}['registerBlockAttribute'](_0x119c87){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x119c87);}['registerInlineAttribute'](_0x4e519a){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x4e519a);}['startTrackingSession'](_0x21aac6){return this['_trackingSessionId']=void 0x0!==_0x21aac6?_0x21aac6:_0x257abf(),this['_trackingSessionId'];}['_getAttributeKey'](_0x546f14){return'attribute'==_0x546f14['type']?_0x546f14['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x298b4e){if(0x0==_0x298b4e['length'])return;const _0x293837=this['editor'],_0x3b4803=_0x293837['plugins']['get'](_0x22a795),_0x9e9a18=[];_0x293837['model']['change'](_0x33a150=>{for(let _0x2dff4e=0x0;_0x2dff4e<_0x298b4e['length'];_0x2dff4e++){const _0x52b99f=_0x298b4e[_0x2dff4e];if(_0x52b99f['baseVersion']=_0x293837['model']['document']['version'],_0x52b99f['isDocumentOperation']=!0x0,_0x3b4803['isMarkedRemoveOperation'](_0x52b99f)){const _0x23432c=Lt(_0x52b99f['newRange'],_0x293837['model']);_0x9e9a18['unshift'](_0x481a5c['fromRange'](_0x23432c));}else switch(_0x52b99f['type']){case'rename':{const _0x27eaac=_0x52b99f['oldName'],_0x1d7a8e=_0x52b99f['newName'];if(_0x27eaac==_0x1d7a8e)break;_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);const _0x5e5012='$elementName',_0x1ea358=_0x52b99f['position'],_0x41afde=_0x293837['model']['createRange'](_0x1ea358,_0x293837['model']['createPositionAt'](_0x1ea358['nodeAfter'],'end'));this['markAttributeChange'](_0x41afde,_0x5e5012,_0x27eaac,_0x1d7a8e,{'groupId':_0x257abf()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x18df56=_0x52b99f['oldValue'],_0x40f54f=_0x52b99f['newValue'];if(_0x18df56==_0x40f54f)break;_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);const _0x514332=_0x52b99f['key'];if(!this['_isRegisteredAttribute'](_0x514332))break;const _0x449baf=Lt(_0x52b99f['range'],_0x293837['model']);this['markAttributeChange'](_0x449baf,_0x514332,_0x18df56,_0x40f54f,{'groupId':_0x257abf()});break;}case'insert':{_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);if(_0x298b4e[_0x2dff4e+0x1]&&'move'==_0x298b4e[_0x2dff4e+0x1]['type'])break;const _0x13d8d5=_0x52b99f['position'],_0x393cf1=_0x52b99f['howMany'],_0x1180bf=Lt(_0x293837['model']['createRange'](_0x13d8d5,_0x13d8d5['getShiftedBy'](_0x393cf1)),_0x293837['model']);this['markInsertion'](_0x1180bf);break;}case'split':{_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);const _0xb1e586=_0x52b99f['splitPosition'],_0x121e04=_0x52b99f['moveTargetPosition'];this['markInsertion'](_0x293837['model']['createRange'](_0xb1e586,_0x121e04));break;}case'move':case'remove':_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);}}for(const _0x546e95 of _0x9e9a18)_0x546e95['detach'](),this['markDeletion'](_0x546e95);});}['_setSuggestionRange'](_0x4fd770,_0xfcafd3){const _0x2e1152=_0x4fd770['getFirstMarker']();this['_model']['change'](_0x58a2aa=>{_0x58a2aa['updateMarker'](_0x2e1152,{'range':_0xfcafd3});});}['_addThreadToSuggestion'](_0x36832f){const _0x1220ef=_0x36832f['id'],_0x280d3d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1220ef)||this['_commentsRepository']['addCommentThread']({'channelId':_0x280d3d,'threadId':_0x1220ef,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x315716=this['_commentsRepository']['getCommentThread'](_0x1220ef);_0x315716['unbind']('isRemovable'),_0x315716['isRemovable']=!0x1,_0x36832f['commentThread']=_0x315716;}['_checkSuggestionCorrectness'](_0x56086c,_0x1bfc63,_0x4e0b64,_0x3bd38e){if(_0x56086c['type']!=_0x1bfc63||_0x56086c['subType']!=_0x4e0b64||_0x56086c['creator']['id']!=_0x3bd38e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x111f2a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x173c20,_0x1f7d05){const _0x378d8b=_0x173c20['getFirstRange']();if(_0x1f7d05['isEqual'](_0x378d8b))_0x173c20['removeMarkers']();else{if(_0x378d8b['containsRange'](_0x1f7d05)){const _0x371ca2=this['_model']['createPositionAt'](_0x1f7d05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x173c20,this['_model']['createRange'](_0x378d8b['start'],_0x371ca2));const _0xa91ab8=_0x257abf(),_0x1cb53e=_0x173c20['creator']['id'],_0x4a7fd7=_0x173c20['type']+':'+_0x173c20['subType'];this['_setSuggestionData']({'id':_0xa91ab8,'type':_0x4a7fd7,'createdAt':new Date(),'authorId':_0x1cb53e,'data':_0x173c20['data'],'attributes':_0x173c20['attributes']});const _0x3eae1a=this['_model']['createPositionAt'](_0x1f7d05['end']['parent'],'after'),_0x4d5bfa=this['_model']['createRange'](_0x3eae1a,_0x378d8b['end']);this['_addSuggestionMarker'](_0x4a7fd7,_0xa91ab8,_0x1cb53e,_0x4d5bfa);}else{if(_0x378d8b['containsPosition'](_0x1f7d05['start'])){const _0x1e5822=this['_model']['createPositionAt'](_0x1f7d05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x173c20,this['_model']['createRange'](_0x378d8b['start'],_0x1e5822));}else{const _0x2c5a98=this['_model']['createPositionAt'](_0x1f7d05['end']['parent'],'after');this['_setSuggestionRange'](_0x173c20,this['_model']['createRange'](_0x2c5a98,_0x378d8b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1a80b0){for(const {suggestion:_0x2079c0,meta:_0x485ec1}of this['_findSuggestions'](_0x1a80b0,'insertion')){if(!_0x485ec1['isOwn'])continue;const _0x89490c=_0x2079c0['getRanges']();for(const _0x29a54e of _0x89490c)if(!_0x1a80b0['getDifference'](_0x29a54e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43e845){return this['editor']['plugins']['get']('Users')['getUser'](_0x43e845);}['_getExternalAuthor'](_0x245b5d){const _0x2d0acf=this['editor']['plugins']['get']('Users'),_0x4a8637=_0x4b0c9d('external:'+_0x245b5d),_0xb3a98d=_0x2d0acf['getUser'](_0x4a8637);return _0xb3a98d||_0x2d0acf['addUser']({'id':_0x4a8637,'name':_0x245b5d});}['_createSuggestion'](_0x47831d,_0x552231,_0x1ace57,_0x1e0d40,_0x1853df,_0x194a64){const _0x102139=this['_getAuthorFromId'](_0x1e0d40);if(!_0x102139)throw new _0x111f2a('track-changes-user-not-found',this,{'authorId':_0x1e0d40,'suggestionId':_0x1ace57});const _0x26117b=this['_suggestionFactory']['buildSuggestion'](_0x47831d,_0x552231,_0x1ace57,_0x102139,_0x1853df,_0x15f314=>{this['_updateSuggestionData'](_0x1ace57,{'attributes':_0x15f314});const _0x3de41c=this['getSuggestion'](_0x1ace57);this['_joinWithAdjacentSuggestions'](new Set([_0x3de41c])),this['_refreshSuggestionsChain'](new Set([_0x3de41c]));},_0x194a64);return this['listenTo'](_0x26117b,'accept',()=>{this['_updateSuggestionData'](_0x1ace57,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x26117b,'discard',()=>{this['_updateSuggestionData'](_0x1ace57,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1ace57,_0x26117b),this['_suggestionState']['set'](_0x26117b,'notReady'),_0x26117b;}['_splitMarkerName'](_0x3959bb){return Gt(_0x3959bb);}['_breakSuggestionMarker'](_0x14a45e,_0x47aa2c,_0xfa873c){const _0x2cb3af=_0x14a45e['getFirstRange'](),_0x3c1d35=_0x2cb3af['start'],_0x5ad476=_0x2cb3af['end'];this['_setSuggestionRange'](_0x14a45e,this['_model']['createRange'](_0x3c1d35,_0x47aa2c));const _0x7286c8=_0x257abf(),_0x683d49=_0x14a45e['creator']['id'],_0x4b1d3c=_0x14a45e['type']+(_0x14a45e['subType']?':'+_0x14a45e['subType']:'');this['_setSuggestionData']({'id':_0x7286c8,'type':_0x4b1d3c,'createdAt':new Date(),'authorId':_0x683d49,'originalSuggestionId':_0x14a45e['_originalSuggestionId']||_0x14a45e['id'],'attributes':_0x14a45e['attributes'],'data':_0x14a45e['data']});const _0x4f6c16=this['_getAttributeKey'](_0x14a45e);('formatBlock'==_0x14a45e['type']||_0x4f6c16&&this['_isBlockAttribute'](_0x4f6c16))&&(_0xfa873c=this['_model']['createPositionBefore'](_0xfa873c['parent'])),this['_addSuggestionMarker'](_0x4b1d3c,_0x7286c8,_0x683d49,this['_model']['createRange'](_0xfa873c,_0x5ad476));}['_findSuggestions'](_0x3c490d,_0x192d64=null){const _0x15ba82=[],_0x1bc95d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3c490d)||(_0x3c490d=[_0x3c490d]);for(const _0x3ae1d5 of this['getSuggestions']()){if(!_0x3ae1d5['isInContent'])continue;if(_0x192d64&&_0x3ae1d5['type']!=_0x192d64)continue;let _0x40345b=!0x1;for(const _0x3d51f0 of _0x3ae1d5['getRanges']()){for(const _0x13754b of _0x3c490d){const _0x21f069=_0x13754b['start']['isEqual'](_0x3d51f0['end'])||_0x13754b['end']['isEqual'](_0x3d51f0['start']);if(_0x21f069||_0x13754b['getIntersection'](_0x3d51f0)){const _0x30aa8c=_0x13754b['containsRange'](_0x3d51f0)&&zt(this['_model']['schema'],_0x3d51f0['start'],_0x13754b),_0x2ad7d9=_0x3d51f0['containsRange'](_0x13754b)&&zt(this['_model']['schema'],_0x13754b['start'],_0x3d51f0);_0x15ba82['push']({'suggestion':_0x3ae1d5,'meta':{'isOwn':_0x1bc95d==_0x3ae1d5['author'],'isNextTo':_0x21f069,'isInsideObject':_0x30aa8c,'containsRangeInObject':_0x2ad7d9}}),_0x40345b=!0x0;break;}}if(_0x40345b)break;}}return _0x15ba82;}['_addSuggestionMarker'](_0x552bd4,_0x381228,_0xd55efd,_0x4462d2,_0x3cabbc){this['_model']['change'](_0x444851=>{let _0x429679='suggestion:'+_0x552bd4+':'+_0x381228+':'+_0xd55efd;_0x3cabbc&&(_0x429679=_0x429679+':'+_0x3cabbc),_0x444851['addMarker'](_0x429679,{'range':_0x4462d2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x475721){const _0x53516f=_0x475721['previous'],_0x9a90c4=_0x475721['next'];_0x475721['previous']=null,_0x475721['next']=null,null!=_0x53516f&&_0x53516f['next']==_0x475721&&(_0x53516f['next']=_0x9a90c4),null!=_0x9a90c4&&_0x9a90c4['previous']==_0x475721&&(_0x9a90c4['previous']=_0x53516f),'ready'==this['_suggestionState']['get'](_0x475721)&&(this['_suggestionState']['set'](_0x475721,'removed'),this['fire']('suggestionUnloaded',_0x475721,_0x53516f,_0x9a90c4));}['_setSuggestionData'](_0x44ab21){const _0x3a63ad=_0x44ab21['id'],_0x1de308=this['addSuggestionData'](_0x44ab21);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xaff9e7=this['editor']['plugins']['get']('PendingActions'),_0x4d4b25=_0x1de308['hasComments'],_0x1259b3=_0x1de308['subType']?_0x1de308['type']+':'+_0x1de308['subType']:_0x1de308['type'],_0x486f46=this['editor']['locale'],_0x4cb2c9=_0xaff9e7['add'](o(_0x486f46,'PENDING_ACTION_SUGGESTION')),_0x13255c={'id':_0x3a63ad,'type':_0x1259b3,'hasComments':_0x4d4b25,'data':_0x44ab21['data']||null,'originalSuggestionId':_0x44ab21['originalSuggestionId']||null,'attributes':_0x1de308['attributes']};this['_adapter']['addSuggestion'](_0x13255c)['then'](_0x21d051=>{_0x1de308['_saved']=!0x0,_0xaff9e7['remove'](_0x4cb2c9),_0x21d051&&_0x21d051['createdAt']&&(this['_suggestions']['get'](_0x3a63ad)['createdAt']=_0x21d051['createdAt']);})['catch'](_0x399276=>{throw _0x3cf8e5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1de308['discard']();}),_0x1de308['stopListening'](),this['_suggestions']['delete'](_0x1de308['id']),this['_suggestionState']['delete'](_0x1de308),_0x399276;});}return _0x1de308;}['_isBlockAttribute'](_0x155e76){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x155e76);}['_isInlineAttribute'](_0x448cf3){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x448cf3);}['_updateSuggestionData'](_0x25155a,_0x3be533){const _0x41db94=this['editor']['plugins']['get']('PendingActions'),_0x14658b=this['getSuggestion'](_0x25155a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x14658b['_saved']){const _0x14b639=_0x41db94['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x25155a,_0x3be533)['then'](()=>{_0x41db94['remove'](_0x14b639);});}else _0x14658b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x25155a,_0x3be533);});}}['_getSuggestionData'](_0x47947e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x111f2a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47947e);}['_handleNewSuggestionMarker'](_0x2cf70b){const {id:_0x366b6c,type:_0x2de172,subType:_0x2305a0,authorId:_0x158fbc}=this['_splitMarkerName'](_0x2cf70b),_0x3c4379=this['_suggestions']['get'](_0x366b6c)||this['_createSuggestion'](_0x2de172,_0x2305a0,_0x366b6c,_0x158fbc,{});switch(this['_checkSuggestionCorrectness'](_0x3c4379,_0x2de172,_0x2305a0,_0x158fbc),this['_suggestionState']['get'](_0x3c4379)){case'notReady':this['_getSuggestionData'](_0x366b6c)['then'](_0x2715b1=>{let _0x399b13=Promise['resolve']();_0x2715b1['hasComments']&&(_0x399b13=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x366b6c})),_0x399b13['then'](()=>{this['addSuggestionData'](_0x2715b1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3c4379,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x366b6c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3c4379,'ready'),this['fire']('suggestionLoaded',_0x3c4379);break;case'ready':this['fire']('suggestionChanged',_0x3c4379);}return _0x3c4379['addMarkerName'](_0x2cf70b),_0x3c4379;}['_refreshSuggestionsChain'](_0x300fa1){const _0x1c978f=Array['from'](_0x300fa1),_0x28c8d5=_0x1c978f['filter'](_0xfb953b=>'attribute'==_0xfb953b['type']);this['_refreshAttributeSuggestionsChain'](_0x28c8d5);const _0x447b9f=_0x1c978f['filter'](_0x58d6c5=>!_0x58d6c5['isMultiRange']&&'attribute'!=_0x58d6c5['type']),_0x326b84=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x153164=>!_0x153164['isMultiRange']&&'attribute'!=_0x153164['type']),_0x4d7361=_0x326b84['filter'](_0x34a82d=>!_0x300fa1['has'](_0x34a82d)),_0x20fb08=new Map(_0x326b84['map'](_0x4c9cc5=>[_0x4c9cc5,this['_suggestionFactory']['getSuggestionCallback'](_0x4c9cc5['type'],_0x4c9cc5['subType'],'chain')])),_0x53b802=new Map(_0x326b84['map'](_0x32750d=>[_0x32750d,_0x32750d['getFirstRange']()])),_0x1fa711=new Set(),_0x3792cc=new Set();for(let _0x4f5007=0x0;_0x4f5007<_0x447b9f['length'];_0x4f5007++)_0x43d504(_0x447b9f[_0x4f5007],_0x447b9f,_0x4f5007+0x1);for(let _0x20b65f=0x0;_0x20b65f<_0x447b9f['length'];_0x20b65f++)_0x43d504(_0x447b9f[_0x20b65f],_0x4d7361,0x0);const _0x54a2f4=new Set();for(let _0x2325f0=0x0;_0x2325f0<_0x447b9f['length'];_0x2325f0++){const _0x9d79d9=_0x447b9f[_0x2325f0];!_0x3792cc['has'](_0x9d79d9)&&_0x9d79d9['previous']&&(_0x54a2f4['add'](_0x9d79d9['previous']),_0x9d79d9['previous']['next']===_0x9d79d9&&(_0x9d79d9['previous']['next']=null),_0x9d79d9['previous']=null),!_0x1fa711['has'](_0x9d79d9)&&_0x9d79d9['next']&&(_0x54a2f4['add'](_0x9d79d9['next']),_0x9d79d9['next']['previous']===_0x9d79d9&&(_0x9d79d9['next']['previous']=null),_0x9d79d9['next']=null);}function _0x43d504(_0x295744,_0x2f0a27,_0x51559f){for(let _0x4e80d2=_0x51559f;_0x4e80d2<_0x2f0a27['length'];_0x4e80d2++){const _0x223199=_0x1170af(_0x295744,_0x2f0a27[_0x4e80d2]);_0x223199&&(_0x223199[0x0]['next']=_0x223199[0x1],_0x223199[0x1]['previous']=_0x223199[0x0],_0x1fa711['add'](_0x223199[0x0]),_0x3792cc['add'](_0x223199[0x1]));}}function _0x1170af(_0x516545,_0x1627a0){if(_0x516545['author']['id']!==_0x1627a0['author']['id'])return null;const _0x26c286=_0x20fb08['get'](_0x516545)(_0x516545,_0x1627a0,_0x53b802['get'](_0x516545),_0x53b802['get'](_0x1627a0));if(!_0x26c286)return null;return _0x20fb08['get'](_0x1627a0)(_0x516545,_0x1627a0,_0x53b802['get'](_0x516545),_0x53b802['get'](_0x1627a0))?_0x26c286[0x1]['commentThread']&&_0x26c286[0x1]['commentThread']['length']?null:_0x26c286:null;}_0x54a2f4['size']&&this['_refreshSuggestionsChain'](_0x54a2f4);}['_refreshAttributeSuggestionsChain'](_0x32a11d){if(0x0==_0x32a11d['length'])return;const _0x39e471=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54e83c=>'attribute'==_0x54e83c['type']&&_0x54e83c['_isDataLoaded']),_0x1cfc0f=[],_0x5304f6=new Map();for(const _0x3ac612 of _0x39e471){const _0x12a482=_0x4b0c9d(_0x3ac612['attributes']);_0x5304f6['has'](_0x12a482)||(_0x5304f6['set'](_0x12a482,_0x1cfc0f['length']),_0x1cfc0f['push']([]));const _0x4d8db8=_0x5304f6['get'](_0x12a482);_0x1cfc0f[_0x4d8db8]['push'](_0x3ac612);}!(function(){_0x1cfc0f['sort']((_0x259f4e,_0xc51124)=>{const _0x52e30b=_0x259f4e[0x0]['createdAt'],_0x87b54b=_0xc51124[0x0]['createdAt'];return _0x52e30b==_0x87b54b?_0x259f4e[0x0]['attributes']['groupId']<_0xc51124[0x0]['attributes']['groupId']?-0x1:0x1:_0x52e30b<_0x87b54b?-0x1:0x1;});for(const _0x40941b of _0x1cfc0f)_0x40941b['sort']((_0x18d33a,_0x38edfc)=>_0x18d33a['id']<_0x38edfc['id']?-0x1:0x1);}());for(let _0x40e943=0x0;_0x40e943<_0x1cfc0f['length'];_0x40e943++){if(0x0==_0x1cfc0f[_0x40e943]['length'])continue;const _0x13463b=[];for(let _0x22cf32=_0x40e943+0x1;_0x22cf32<_0x1cfc0f['length'];_0x22cf32++)0x0!=_0x1cfc0f[_0x22cf32]['length']&&_0x25c93e(_0x1cfc0f[_0x40e943],_0x1cfc0f[_0x22cf32])&&_0x13463b['push'](_0x22cf32);for(const _0x5b1659 of _0x13463b)_0x1cfc0f[_0x40e943]=_0x1cfc0f[_0x40e943]['concat'](_0x1cfc0f[_0x5b1659]),_0x1cfc0f[_0x5b1659]=[];}for(const _0x42dc0e of _0x1cfc0f)for(let _0x1d5b8=0x0;_0x1d5b8<_0x42dc0e['length'];_0x1d5b8++){const _0x3e380c=_0x42dc0e[_0x1d5b8+0x1]||null;_0x42dc0e[_0x1d5b8]['next']!==_0x3e380c&&(_0x42dc0e[_0x1d5b8]['next']=_0x3e380c);}for(const _0x81e4ca of _0x1cfc0f)for(let _0x1e4ce0=0x0;_0x1e4ce0<_0x81e4ca['length'];_0x1e4ce0++){const _0x4ae03d=_0x81e4ca[_0x1e4ce0-0x1]||null;_0x81e4ca[_0x1e4ce0]['previous']!==_0x4ae03d&&(_0x81e4ca[_0x1e4ce0]['previous']=_0x4ae03d);}function _0x25c93e(_0x55a7eb,_0x4b8f21){if(_0x55a7eb[0x0]['attributes']['groupId']!==_0x4b8f21[0x0]['attributes']['groupId']&&_0x55a7eb[0x0]['author']!==_0x4b8f21[0x0]['author'])return!0x1;if(!function(_0xad6c9c,_0x2b0ac6){if(!_0xad6c9c['hasComments']&&!_0x2b0ac6['hasComments'])return!0x0;if(_0xad6c9c['hasComments']&&_0x2b0ac6['hasComments'])return!0x1;if(_0xad6c9c['hasComments']&&_0x2b0ac6['createdAt']<_0xad6c9c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2b0ac6['hasComments']&&_0xad6c9c['createdAt']<_0x2b0ac6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55a7eb[0x0],_0x4b8f21[0x0]))return!0x1;const _0x137636=Pt(_0x55a7eb[0x0]['attributes'],['groupId','trackingSessionId']),_0x5774c0=Pt(_0x4b8f21[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xe0300(_0x137636,_0x5774c0))return!0x1;if(_0x55a7eb[0x0]['attributes']['groupId']==_0x4b8f21[0x0]['attributes']['groupId'])return!0x0;if(_0x55a7eb[0x0]['attributes']['trackingSessionId']!==_0x4b8f21[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x55a7eb['every'](_0x403eb5=>_0x4b8f21['some'](_0x18e571=>_0x403eb5['getFirstRange']()['isEqual'](_0x18e571['getFirstRange']())))&&_0x4b8f21['every'](_0x5742b1=>_0x55a7eb['some'](_0x166430=>_0x5742b1['getFirstRange']()['isEqual'](_0x166430['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4f8ec6){const _0x27c179=Array['from'](_0x4f8ec6),_0x39f5bd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x209e51=_0x39f5bd['filter'](_0x4a6335=>!_0x4f8ec6['has'](_0x4a6335)),_0xc715b1=new Map(_0x27c179['map'](_0x2f45bb=>[_0x2f45bb,this['_suggestionFactory']['getSuggestionCallback'](_0x2f45bb['type'],_0x2f45bb['subType'],'join')])),_0x2bf46a=new Map(_0x39f5bd['map'](_0x5db2a0=>[_0x5db2a0,_0x5db2a0['getRanges']()]));for(let _0x5438e3=0x0;_0x5438e3<_0x27c179['length'];_0x5438e3++){if(_0x398843(this,_0x27c179[_0x5438e3],_0x27c179,_0x5438e3+0x1))return!0x0;}for(let _0x129f1e=0x0;_0x129f1e<_0x27c179['length'];_0x129f1e++){if(_0x398843(this,_0x27c179[_0x129f1e],_0x209e51,0x0))return!0x0;}return!0x1;function _0x398843(_0x25dace,_0x3a74e9,_0x2c3444,_0x326a69){for(let _0x18136c=_0x326a69;_0x18136c<_0x2c3444['length'];_0x18136c++){const _0x2b1542=_0x2c3444[_0x18136c];if(_0x2b1542['type']!==_0x3a74e9['type']||_0x2b1542['author']['id']!==_0x3a74e9['author']['id']||_0x2b1542['subType']!==_0x3a74e9['subType'])continue;if(!en(_0x3a74e9,_0x2b1542))continue;if('attribute'==_0x3a74e9['type']&&_0x3a74e9['data']['oldValue']!=_0x2b1542['data']['oldValue'])continue;if('attribute'==_0x3a74e9['type']&&_0x25dace['_isBlockAttribute'](_0x3a74e9['data']['key']))continue;if('formatBlock'==_0x3a74e9['type']){const _0x506275=_0x25dace['editor']['model'],_0x7a8521=_0x3a74e9['getContainedElement']();if(_0x7a8521&&(_0x506275['schema']['isObject'](_0x7a8521)||_0x506275['schema']['isLimit'](_0x7a8521)))continue;}const _0x157f3d=_0xc715b1['get'](_0x3a74e9),_0x4f5c14=_0x2bf46a['get'](_0x3a74e9),_0x2388ed=_0x2bf46a['get'](_0x2b1542),_0x21a211=_0x3a74e9['commentThread']&&_0x3a74e9['commentThread']['length'],_0x2596e9=_0x2b1542['commentThread']&&_0x2b1542['commentThread']['length'];if(!_0x21a211&&_0x157f3d(_0x2388ed,_0x4f5c14))return _0x25dace['_joinSuggestions'](_0x2b1542,_0x3a74e9),_0x2bf46a['delete'](_0x3a74e9),!0x0;if(!_0x2596e9&&_0x157f3d(_0x4f5c14,_0x2388ed))return _0x25dace['_joinSuggestions'](_0x3a74e9,_0x2b1542),_0x2bf46a['delete'](_0x2b1542),!0x0;}return!0x1;}}['_joinSuggestions'](_0x41bcac,_0x174b9b){if(_0x41bcac['isMultiRange']){for(const _0x22253a of _0x174b9b['getRanges']())_0x41bcac['addRange'](_0x22253a);}else{const _0x5c6e35=_0x174b9b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x41bcac,this['_model']['createRange'](_0x41bcac['getFirstRange']()['start'],_0x5c6e35));}_0x174b9b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c7bfc,_0x3d2c6d,_0x242067){const _0x2c1202=_0x1c7bfc['startsWith']('format')||_0x1c7bfc['startsWith']('attribute')?'FORMATTING':_0x1c7bfc['toUpperCase']();return o(this['editor']['locale'],_0x3d2c6d+'_'+_0x2c1202+'_SUGGESTION_ANNOUNCEMENT',_0x242067);}['_initAriaMarkerChangeAnnouncements'](){const _0x3cbcbf=this['editor'];if(!_0x3cbcbf['ui'])return;const {ariaLiveAnnouncer:_0xd85bb0}=_0x3cbcbf['ui'];_0x2d91fb(this['_model'],({left:_0x409686,entered:_0x5f460f})=>{for(const _0x3bfce6 of _0x409686){const {group:_0x4e7a56,type:_0x31fa42}=this['_splitMarkerName'](_0x3bfce6['name']);if('suggestion'===_0x4e7a56){_0xd85bb0['announce'](this['_getMarkerAnnouncementText'](_0x31fa42,'LEAVE'));break;}}for(const _0x3f4b90 of _0x5f460f){const {group:_0x297969,type:_0x55d385}=this['_splitMarkerName'](_0x3f4b90['name']);if('suggestion'===_0x297969){_0xd85bb0['announce'](this['_getMarkerAnnouncementText'](_0x55d385,'ENTER',_0x2f914b(_0xb34256)));break;}}});}['_processAttributeChanges'](_0x38fa74){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb6852b=this['editor'],_0x3eee9a=_0xb6852b['model']['document']['differ']['getChanges']();if(0x0==_0x3eee9a['length'])return!0x1;const _0x3eabe8=[],_0x1d7c87=_0x3eee9a['filter'](_0x56ff49=>'attribute'==_0x56ff49['type']),_0x5d863d=_0x3eee9a['filter'](_0x56cefb=>'insert'==_0x56cefb['type']&&'$text'!=_0x56cefb['name']),_0x3d43e8=_0x3eee9a['filter'](_0xc0173e=>'remove'==_0xc0173e['type']&&'$text'!=_0xc0173e['name']);for(const _0x18e4bb of _0x1d7c87)_0x3eabe8['push']({'key':_0x18e4bb['attributeKey'],'newValue':_0x18e4bb['attributeNewValue'],'oldValue':_0x18e4bb['attributeOldValue'],'range':Zt(_0x18e4bb['range'],_0xb6852b['model'])});for(const _0x27775f of _0x5d863d){const _0x25acf1=_0x3d43e8['find'](_0x37d78a=>_0x37d78a['position']['isEqual'](_0x27775f['position']));_0x25acf1&&_0x3eabe8['push']({'key':m,'newValue':_0x27775f['name'],'oldValue':_0x25acf1['name'],'range':_0xb6852b['model']['createRangeOn'](_0x27775f['position']['nodeAfter'])});}return 0x0!=_0x3eabe8['length']&&this['_reduceExistingSuggestions'](_0x38fa74,_0x3eabe8);}['_processAttributeSuggestions'](_0x36f908){let _0xd02764=!0x1;const _0x1aa9c5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e0b74=>_0x3e0b74['data']['newRange']&&_0x3e0b74['name']['startsWith']('suggestion:attribute:'));for(const _0x1f3ccc of _0x1aa9c5){const {subType:_0x6349e1,id:_0x22a2b2}=this['_splitMarkerName'](_0x1f3ccc['name']),_0x3ddde3=_0x6349e1['split']('|')[0x0];for(const _0x240dd2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x240dd2['id']!=_0x22a2b2&&'attribute'==_0x240dd2['type']&&_0x240dd2['data']&&_0x240dd2['data']['key']==_0x3ddde3&&_0x240dd2['getFirstRange']()['isIntersecting'](_0x1f3ccc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x240dd2,_0x1f3ccc['data']['newRange'],_0x36f908),_0xd02764=!0x0);}return _0xd02764;}['recordAttributeChanges'](_0x371b0b){this['_recordAttributeSuggestions']=!0x0,_0x371b0b();}['_isRegisteredAttribute'](_0x453bd7){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x453bd7);}['_reduceExistingSuggestions'](_0x185521,_0x4e120d){if(0x0==_0x4e120d['length'])return!0x1;let _0x289f3e=!0x1;for(const _0x112861 of _0x4e120d){const _0x581db1=this['_findSuggestions'](_0x112861['range'],'attribute')['filter'](_0x53ab01=>!_0x53ab01['meta']['isNextTo'])['map'](_0x386b40=>_0x386b40['suggestion']),_0x531ebf=_0x4b0c9d({'newValue':_0x112861['newValue']});_0x581db1['filter'](_0x9ee130=>{const [_0x472d7f,_0x5509a7]=_0x9ee130['subType']['split']('|');return _0x472d7f==_0x112861['key']&&_0x5509a7!=_0x531ebf;})['forEach'](_0x3457a7=>{this['_reduceSuggestionAttributeRange'](_0x3457a7,_0x112861['range'],_0x185521),_0x289f3e=!0x0;});}return _0x289f3e;}['_reduceSuggestionAttributeRange'](_0x3d56aa,_0x325d2e,_0x4fd6fd){const _0x518576=_0x3d56aa['getFirstRange']()['getDifference'](_0x325d2e);0x0!==_0x518576['length']?0x1!==_0x518576['length']?this['_breakSuggestionMarker'](_0x3d56aa,_0x325d2e['start'],_0x325d2e['end']):this['_setSuggestionRange'](_0x3d56aa,_0x518576[0x0]):_0x4fd6fd['removeMarker'](_0x3d56aa['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4476ae){this['_editor']=_0x4476ae,this['_model']=_0x4476ae['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a4633,_0x3eb402,_0x3d7bc2,_0x3eb591,_0x10dfd5,_0x592d5e,_0x38c65b){return new x(this['_model'],{'type':_0x4a4633,'subType':_0x3eb402,'id':_0x3d7bc2,'originalSuggestionId':_0x38c65b,'author':_0x3eb591,'creator':_0x3eb591,'attributes':_0x10dfd5,'onAttributesChange':_0x592d5e,'onAccept':(..._0x339476)=>this['getSuggestionCallback'](_0x4a4633,_0x3eb402,'accept')(..._0x339476),'onDiscard':(..._0x5f3871)=>this['getSuggestionCallback'](_0x4a4633,_0x3eb402,'discard')(..._0x5f3871)});}['registerCustomCallback'](_0x48db9a,_0x498906,_0x516393,_0x548d8b){const _0x4073d9=_0x48db9a+':'+_0x498906+':'+_0x516393;this['_customCallbacks']['set'](_0x4073d9,_0x548d8b);}['getSuggestionCallback'](_0x2703da,_0x17701a,_0x7b2985){const _0x423fa4=_0x2703da+':'+_0x17701a+':'+_0x7b2985;return this['_customCallbacks']['get'](_0x423fa4)||this['_defaultCallbacks']['get'](_0x2703da+':'+_0x7b2985);}['_registerDefaultCallbacks'](){const _0x244ce4=()=>!0x1,_0x57ffaf=_0x1450d7=>{_0x1450d7['sort']((_0x37649b,_0x4d4dbb)=>_0x37649b['start']['isBefore'](_0x4d4dbb['start'])?0x1:-0x1),this['_model']['change'](_0x29a8d5=>{for(const _0x6e35ea of _0x1450d7){let _0x164426;_0x164426=_0x6e35ea['end']['isAtEnd']&&_0x6e35ea['end']['parent']==_0x6e35ea['start']['nodeAfter']?_0x29a8d5['createSelection'](_0x6e35ea['start']['nodeAfter'],'on'):_0x29a8d5['createSelection'](_0x6e35ea),this['_model']['deleteContent'](_0x164426,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xf2ed35=(_0x13c7c1,_0x54ddd5)=>{_0x54ddd5&&this['_model']['change'](_0x2b2492=>{const {commandName:_0x13f5e2,commandParams:_0x25fd0c=[]}=_0x54ddd5,_0x559845=_0x13c7c1['map'](_0x58fc5f=>(Kt(_0x58fc5f)&&(_0x58fc5f=this['_model']['createRange'](_0x58fc5f['end'])),_0x58fc5f))['filter'](_0x2d9325=>'$graveyard'!==_0x2d9325['root']['rootName']);if(_0x559845['length']<0x1)return;const _0x1017e4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xce458=>_0x481a5c['fromRange'](_0xce458));_0x2b2492['setSelection'](_0x559845);for(const _0x1a20e6 of this['_editor']['commands']['commands']())_0x1a20e6['refresh']();_0x25fd0c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x13f5e2,..._0x25fd0c);const _0x1d80b1=_0x1017e4['filter'](_0x1da76b=>'$graveyard'!=_0x1da76b['root']['rootName']);_0x1d80b1['length']>0x0&&_0x2b2492['setSelection'](_0x1d80b1);for(const _0x2f210e of _0x1017e4)_0x2f210e['detach']();});},_0x274400=(_0x146e5c,_0x761679)=>0x1==_0x146e5c['length']&&0x1==_0x761679['length']&&_0x146e5c[0x0]['end']['isEqual'](_0x761679[0x0]['start']),_0x5b7058=(_0x43c9a8,_0x323c51,_0x219a4f,_0x4f6ac5)=>nn(_0x43c9a8,_0x323c51,_0x219a4f,_0x4f6ac5)?[_0x43c9a8,_0x323c51]:nn(_0x323c51,_0x43c9a8,_0x4f6ac5,_0x219a4f)?[_0x323c51,_0x43c9a8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x244ce4),this['_defaultCallbacks']['set']('insertion:discard',_0x57ffaf),this['_defaultCallbacks']['set']('insertion:join',_0x274400),this['_defaultCallbacks']['set']('insertion:chain',_0x5b7058),this['_defaultCallbacks']['set']('deletion:accept',_0x57ffaf),this['_defaultCallbacks']['set']('deletion:discard',_0x244ce4),this['_defaultCallbacks']['set']('deletion:join',_0x274400),this['_defaultCallbacks']['set']('deletion:chain',_0x5b7058),this['_defaultCallbacks']['set']('formatInline:accept',_0xf2ed35),this['_defaultCallbacks']['set']('formatInline:discard',_0x244ce4),this['_defaultCallbacks']['set']('formatInline:join',_0x274400),this['_defaultCallbacks']['set']('formatInline:chain',_0x244ce4),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf2ed35),this['_defaultCallbacks']['set']('formatBlock:discard',_0x244ce4),this['_defaultCallbacks']['set']('formatBlock:join',_0x274400),this['_defaultCallbacks']['set']('formatBlock:chain',_0x244ce4),this['_defaultCallbacks']['set']('attribute:accept',_0x244ce4),this['_defaultCallbacks']['set']('attribute:discard',(_0x47fc9a,_0x54de39)=>{if(!_0x54de39)return;const _0x780ade=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x42ba3a=>{if(_0x54de39['key']==m)for(const _0x15ce5c of _0x47fc9a){const _0x44d13c=_0x15ce5c['start']['nodeAfter'],_0x5237b8=_0x54de39['oldValue'];_0x42ba3a['rename'](_0x44d13c,_0x5237b8);}else{if(_0x780ade['_isBlockAttribute'](_0x54de39['key'])){for(const _0x5686dd of _0x47fc9a)void 0x0!==_0x54de39['oldValue']?_0x42ba3a['setAttribute'](_0x54de39['key'],_0x54de39['oldValue'],_0x5686dd['start']['nodeAfter']):_0x42ba3a['removeAttribute'](_0x54de39['key'],_0x5686dd['start']['nodeAfter']);}else{for(const _0x402100 of _0x47fc9a)_0x54de39['oldValue']?_0x42ba3a['setAttribute'](_0x54de39['key'],_0x54de39['oldValue'],_0x402100):_0x42ba3a['removeAttribute'](_0x54de39['key'],_0x402100);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x274400);}}function zt(_0x396c47,_0x107a9b,_0x2a3af4){for(const _0x56b21e of _0x107a9b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x56b21e['root']==_0x56b21e)return!0x1;if(!_0x2a3af4['containsItem'](_0x56b21e))return!0x1;if(_0x396c47['isObject'](_0x56b21e)||_0x396c47['isLimit'](_0x56b21e))return!0x0;}return!0x1;}function Kt(_0x5b856a){return _0x5b856a['end']['parent']==_0x5b856a['start']['nodeAfter']&&_0x5b856a['end']['isAtStart'];}function Wt(_0x39f9ab,_0x8280c1,_0x27e583,_0x322880){const _0x16e2f1=_0x20aaaa=>!_0x20aaaa['item']['is']('$textProxy')&&!_0x322880['isObject'](_0x20aaaa['item']),_0x443901=_0x39f9ab['start']['getLastMatchingPosition'](_0x16e2f1),_0x42e74a=_0x39f9ab['end']['getLastMatchingPosition'](_0x16e2f1,{'direction':'backward'});return(!_0x39f9ab['start']['isEqual'](_0x443901)||!_0x39f9ab['end']['isEqual'](_0x42e74a))&&(_0x443901['isBefore'](_0x42e74a)?_0x27e583['updateMarker'](_0x8280c1,{'range':_0x27e583['createRange'](_0x443901,_0x42e74a)}):_0x27e583['removeMarker'](_0x8280c1),!0x0);}function Ht(_0x3e3aa3){return _0x4b0c9d(_0x3e3aa3);}function Qt(_0x4e2b43){const _0x5d29c5=_0x4e2b43['start']['nodeAfter'];return _0x5d29c5&&_0x5d29c5['is']('element');}function Xt(_0x410b6b){return Kt(_0x410b6b)||function(_0x3deb33){return _0x3deb33['start']['parent']==_0x3deb33['end']['nodeBefore']&&_0x3deb33['start']['isAtEnd'];}(_0x410b6b);}function Yt(_0x1d6a69,_0x1e715e){try{const _0x3c10c4=_0x1d6a69['getRange']();for(const _0x34d16c of _0x1e715e)if(_0x1d6a69!==_0x34d16c&&_0x3c10c4&&_0x3c10c4['isIntersecting'](_0x34d16c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0xaf0863,_0xfeba15){return null==_0xaf0863['end']['nodeBefore']&&_0xaf0863['end']['parent']==_0xaf0863['start']['nodeAfter']?tn(_0xaf0863['start']['nodeAfter'],_0xfeba15):_0xaf0863;}function tn(_0x523b9a,_0x513824){const _0xba5e83=_0x513824['schema']['isObject'](_0x523b9a)||_0x513824['schema']['isSelectable'](_0x523b9a);return _0x513824['createRange'](_0x513824['createPositionAt'](_0x523b9a,'before'),_0xba5e83?_0x513824['createPositionAfter'](_0x523b9a):_0x513824['createPositionAt'](_0x523b9a,'end'));}function nn(_0x5e72bf,_0x11b394,_0x24f5aa,_0x154a50){return!!en(_0x5e72bf,_0x11b394)&&_0x24f5aa['end']['isEqual'](_0x154a50['start']);}function en(_0x2ef3ba,_0x20b72f){if(!_0x2ef3ba['_isDataLoaded']||!_0x20b72f['_isDataLoaded'])return!0x1;const _0x27df73=new Set(Object['keys'](_0x2ef3ba['attributes'])),_0x467a0a=new Set(Object['keys'](_0x20b72f['attributes']));if(_0x27df73['delete']('groupId'),_0x467a0a['delete']('groupId'),0x0==_0x27df73['size']&&0x0==_0x467a0a['size'])return!0x0;if(_0x27df73['size']!=_0x467a0a['size'])return!0x1;const _0x21d2ab={..._0x2ef3ba['attributes']},_0x16da7b={..._0x20b72f['attributes']};return delete _0x21d2ab['groupId'],delete _0x16da7b['groupId'],JSON['stringify'](_0x21d2ab)==JSON['stringify'](_0x16da7b);}function sn(_0x118600,_0x2feb8f){const _0x1c3789=on(_0x118600['attributes']),_0x1eee9e=on(_0x2feb8f);if(!_0x118600['_isDataLoaded'])return!0x1;for(const _0x56399b of Object['keys'](_0x1eee9e))if(!_0xe0300(_0x1c3789[_0x56399b],_0x1eee9e[_0x56399b]))return!0x1;return!0x0;}function on(_0x35b1e7){const _0x17c487=Object['assign']({},_0x35b1e7);return delete _0x17c487['skipNestingCheck'],delete _0x17c487['tablePasteChainId'],_0x17c487;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x3c04a9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3c5531,_0x257537,_0x438154,_0x2309a4){super(),this['model']=_0x257537,this['view']=_0x438154,this['commentThreadController']=_0x2309a4,this['_editor']=_0x3c5531,this['_acceptCommand']=_0x3c5531['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3c5531['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1a320b,_0x5b799a)=>_0x1a320b||_0x5b799a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x276f05=>_0x276f05&&this['_editor']['model']['canEditAt'](_0x257537['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b3a91=>_0x5b3a91&&this['_editor']['model']['canEditAt'](_0x257537['getRanges']())),this['_pendingAction']=null,_0x438154['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x438154,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x438154,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x438154,'change:isDirty',()=>{_0x438154['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 _0x168abb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x168abb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2ba5cd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4f4598,_0x4d90c0,_0x25afdf,_0x321da5){super(_0x4f4598),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1576c6(_0x4f4598,o(_0x4f4598,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4d90c0['authoredAt']),this['bind']('authoredAt')['to'](_0x4d90c0),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',_0x4d90c0,'authoredAt',this,'descriptionParts',(_0x5a0259,_0x4ca54d,_0x2de598)=>{const _0x4f390e=_0x2de598['map'](_0x5e3a22=>ls(_0x5e3a22['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5a0259-0x1,_0x4d90c0['author']['name'],_0x4ca54d?_0x321da5['formatDateTime'](_0x4ca54d):'',new DOMParser()['parseFromString'](_0x4f390e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x53236d(),this['focusTracker']=new _0x460eae(),this['keystrokes']=new _0x3f8102(),this['focusCycler']=new _0x5e5a1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29541b=>_0x29541b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4d90c0,this['_localUser']=_0x25afdf,this['_config']=_0x321da5,_0x321da5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x424111(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1729c4}=this['_config'];this['commentsListView']=new _0x1729c4(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',_0x405ea8=>_0x405ea8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4d1be1,_0x493bba)=>_0x4d1be1||!!_0x493bba);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3aeb8b}=this['_config'],_0x32c48e=new _0x3aeb8b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b5836=_0x32c48e['commentInputView'];return _0x32c48e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b5836,'value',(_0x4b791c,_0x25555d,_0x2b39f8)=>!!_0x2b39f8||_0x4b791c&&!_0x25555d),_0x4b5836['on']('submit',(_0x127487,_0x37f22f)=>{this['fire']('addComment',_0x37f22f),_0x4b5836['editor']['setData']('');}),_0x4b5836['on']('cancel',()=>this['focus']()),_0x4b5836['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x32c48e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1e84a2,_0x3d2d5e,_0x3357ed,_0x352660){super(_0x1e84a2,_0x3d2d5e,_0x3357ed,_0x352660),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22e996=>_0x22e996&&_0x22e996[0x0]?_0x22e996[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3680ad,_0x49f6fd)=>{let _0x53dde4='';for(const _0x142151 of _0x3680ad)_0x53dde4+='<p>'+ls(_0x142151['content'],_0x142151['color'])+'</p>';return _0x49f6fd?_0x53dde4:_0x4d92c2(_0x53dde4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x352660['SuggestionView'](_0x1e84a2,_0x3d2d5e,{'formatDateTime':_0x352660['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 _0x3224e4=this['bindTemplate'],_0x3e645f=[this['suggestionView']];return this['commentsListView']&&_0x3e645f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e645f['push'](this['commentThreadInputView']),_0x3e645f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3224e4['if']('isActive','ck-suggestion-wrapper--active'),_0x3224e4['to']('type',_0x2fd470=>'ck-suggestion-'+_0x2fd470),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':_0x3224e4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e645f};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x2ba5cd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x530040,_0x46e582,_0x14ec9d){super(_0x530040),this['_model']=_0x46e582,this['_config']=_0x14ec9d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x46e582),this['acceptButton']=this['_createButton'](o(_0x530040,'Accept\x20suggestion'),_0x46abf4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x530040,'Discard\x20suggestion'),_0x58a017,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x40e69b(_0x530040,_0x46e582['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x53236d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x460eae(),this['keystrokes']=new _0x3f8102(),this['focusCycler']=new _0x5e5a1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x548248=>_0x548248['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x581b65=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x581b65['innerHTML']=this['description'],this['on']('change:description',(_0x839ce1,_0x5976a8,_0x4fe9d5)=>{_0x581b65['innerHTML']=_0x4fe9d5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2f3eb6=this['bindTemplate'],_0x4918aa=[{'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':_0x2f3eb6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2f3eb6['to']('authoredAt',_0x39d410=>this['_config']['formatDateTime'](_0x39d410))}]}]},{'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']&&_0x4918aa['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':_0x4918aa}]};}['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'](_0xaf0c36,_0x33d9e4,_0x4e3a1b,_0xc08def,_0x3b36e1){const _0x360538=new _0x385949(this['locale']);return _0x360538['set']({'label':_0xaf0c36,'icon':_0x33d9e4,'tooltip':!0x0,'tooltipPosition':_0x3b36e1}),_0x360538['extendTemplate']({'attributes':{'class':_0x4e3a1b}}),_0x360538['on']('execute',()=>{this['fire'](_0xc08def,this['_model']['id']);}),_0x360538;}['_setupKeyboardNavigation'](){const _0x4008c2=this['element'];this['keystrokes']['listenTo'](_0x4008c2);for(const _0x4d07f4 of this['focusables'])this['focusTracker']['add'](_0x4d07f4['element']),this['keystrokes']['listenTo'](_0x4d07f4['element']);this['keystrokes']['set']('enter',(_0x1699bc,_0x3b5d6b)=>{_0x4008c2===_0x1699bc['target']&&(this['focusCycler']['focusFirst'](),_0x3b5d6b());}),this['keystrokes']['set']('esc',(_0x3b3ac5,_0x37a481)=>{_0x4008c2!==_0x3b3ac5['target']&&(this['focus'](),_0x37a481());});}}class u extends _0x959a6f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x48ca16,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x183a9c){super(_0x183a9c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5ae0f=this['editor']['config'];_0x5ae0f['define']('trackChanges.SuggestionThreadView',fe),_0x5ae0f['define']('trackChanges.SuggestionView',we),_0x5ae0f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5ae0f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x59a565,_0x4e2ee0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x362b2c,_0x2d0a80]of this['_handleControllerBuffer']){const _0xd3fcd9=this['_suggestionToController']['has'](_0x362b2c);_0xd3fcd9||_0x2d0a80?_0xd3fcd9&&_0x2d0a80&&this['_destroyController'](_0x362b2c):this['_initializeController'](_0x362b2c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x59a565,_0x4e2ee0);}['init'](){const _0x3ec0fd=this['editor'],_0x3acc93=_0x3ec0fd['plugins']['get']('TrackChangesEditing'),_0x4eeeda=_0x3ec0fd['plugins']['get']('Annotations'),_0x150ef4=_0x3ec0fd['plugins']['get']('EditorAnnotations'),_0x2729ad=_0x3ec0fd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x150ef4['addSourceCollector'](()=>{const _0x2c3673=[];for(const [_0x5057fc,_0x81febc]of Array['from'](this['_suggestionToController'])){const _0x3af6f5=_0x5057fc['getAllAdjacentSuggestions'](),_0x12576e=[];for(const _0x470105 of _0x3af6f5){if(!_0x470105['isInContent'])continue;if(_0x470105['isMultiRange']){_0x12576e['push'](..._0x470105['getRanges']());continue;}const _0x1e0848=_0x470105['getFirstRange']();if(_0x12576e['length']>0x0){const _0x2e69d9=_0x12576e[0x0]['getJoined'](_0x1e0848);if(_0x2e69d9){_0x12576e[0x0]=_0x2e69d9;continue;}}_0x12576e['push'](_0x1e0848);}_0x2c3673['push']([_0x81febc['view'],_0x12576e]);}return _0x2c3673;}),this['listenTo'](_0x3acc93,'suggestionLoaded',(_0x2f6ac8,_0x2fda3d)=>{this['listenTo'](_0x2fda3d,'change:previous',(_0x22568f,_0x56be8e,_0xb25f0a,_0x4b2e15)=>{_0x2fda3d['isInContent']&&(null==_0xb25f0a?(this['_updateController'](_0x4b2e15['head']),this['_handleSuggestionControllerDelayed'](_0x2fda3d,!0x1)):(this['_updateController'](_0xb25f0a['head']),null==_0x4b2e15&&this['_handleSuggestionControllerDelayed'](_0x2fda3d,!0x0)));}),null!==_0x2fda3d['previous']?this['_updateController'](_0x2fda3d['head']):this['_handleSuggestionControllerDelayed'](_0x2fda3d,!0x1);}),this['listenTo'](_0x3acc93,'suggestionUnloaded',(_0x3694d1,_0x51fce6,_0x4b674b)=>{this['stopListening'](_0x51fce6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x51fce6),this['_suggestionToController']['has'](_0x51fce6)&&this['_destroyController'](_0x51fce6),_0x4b674b&&this['_updateController'](_0x4b674b['head']);}),this['listenTo'](_0x3acc93,'suggestionChanged',(_0x18ee26,_0x173c28)=>{this['_updateController'](_0x173c28);}),this['listenTo'](_0x4eeeda,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2729ad,'addComment',(_0x3061c7,{threadId:_0x135f84,isFromAdapter:_0x15e29e})=>{if(_0x15e29e||!_0x3acc93['hasSuggestion'](_0x135f84))return;const _0x54b7a5=_0x3acc93['getSuggestion'](_0x135f84);this['_suggestionToController']['get'](_0x54b7a5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22af3f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c7ae2;for(const _0x192bc4 in _0x22af3f){const _0x964cec=_0x192bc4,_0x90cf3e=_0x22af3f[_0x964cec];if('trackChangesLicenseKeyValid'==_0x90cf3e||'trackChangesLicenseKeyInvalid'==_0x90cf3e||'trackChangesLicenseKeyExpired'==_0x90cf3e||'trackChangesLicenseKeyDomainLimit'==_0x90cf3e||'trackChangesLicenseKeyNotAllowed'==_0x90cf3e||'trackChangesLicenseKeyEvaluationLimit'==_0x90cf3e||'trackChangesLicenseKeyUsageLimit'==_0x90cf3e){delete _0x22af3f[_0x964cec],_0x1c7ae2=_0x90cf3e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xdac85d){const _0x2247e5=this['_suggestionToController']['get'](_0xdac85d);if(!_0x2247e5)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2247e5['view'])||null;}['getSuggestionForAnnotation'](_0x44062a){const _0x3de9b6=this['_viewToController']['get'](_0x44062a['innerView']);return _0x3de9b6?_0x3de9b6['model']:null;}['_refreshActiveMarkers'](){const _0x2b20ed=this['editor']['plugins']['get']('Annotations'),_0x4ed1dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfcd337=Array['from'](_0x2b20ed['activeAnnotations'],_0x467bce=>_0x467bce['innerView'])['filter'](_0x3cde3c=>this['_viewToController']['has'](_0x3cde3c)),_0x141556=[];for(const _0x4c2127 of _0xfcd337){const _0x204794=this['_viewToController']['get'](_0x4c2127)['model']['getAllAdjacentSuggestions']();_0x141556['push'](..._0x204794['reduce']((_0x4f3ecf,_0x43b20b)=>[..._0x4f3ecf,..._0x43b20b['getMarkerNames']()],[]));}_0x4ed1dd['activeMarkers']=_0x141556;}['_addUIComponentsToFactory'](){const _0x3f0574=this['editor'],_0x4dfd24=_0x3f0574['locale'],_0x356813=o(_0x4dfd24,'Track\x20changes'),_0x560ed1=new _0x277329([{'type':'switchbutton','model':new _0x544900({'withText':!0x0,'isToggleable':!0x0,'label':_0x356813,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3f0574['plugins']['has']('TrackChangesPreview')&&_0x560ed1['addMany']([{'type':'separator'},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x460eeb of _0x560ed1)if(ke(_0x460eeb)){const _0x5656f1=_0x3f0574['commands']['get'](_0x460eeb['model']['commandName']);_0x460eeb['model']['bind']('isOn','isEnabled')['to'](_0x5656f1,'value','isEnabled');}_0x3f0574['ui']['componentFactory']['add']('trackChanges',_0x1215c3=>this['_createToolbarButton'](_0x1215c3,_0x560ed1,_0x356813)),_0x3f0574['ui']['componentFactory']['add']('menuBar:trackChanges',_0x232ee9=>this['_createMenuBarMenu'](_0x232ee9,_0x560ed1,_0x356813));}['_createToolbarButton'](_0x5ecb65,_0xbaa394,_0x57fd8b){const _0x42e86d=_0x3c1474(_0x5ecb65,_0x4e2d1d),_0x7d4062=this['editor']['commands']['get']('trackChanges');_0x42e86d['buttonView']['set']({'tooltip':_0x57fd8b,'label':_0x57fd8b,'icon':_0x2a8e05}),_0x42e86d['buttonView']['bind']('isOn')['to'](_0x7d4062,'value'),_0x42e86d['buttonView']['on']('execute',()=>{_0x7d4062['execute'](),this['editor']['editing']['view']['focus']();}),_0xc4153e(_0x42e86d,_0xbaa394,{'role':'menu'});const _0x279d29=[];for(const _0x165873 of _0xbaa394)ke(_0x165873)&&_0x279d29['push'](this['editor']['commands']['get'](_0x165873['model']['commandName']));const _0x5e24ba=_0x42e86d['buttonView'];return _0x5e24ba['actionView']['unbind']('isEnabled'),_0x5e24ba['arrowView']['unbind']('isEnabled'),_0x5e24ba['actionView']['bind']('isEnabled')['to'](_0x7d4062,'isEnabled'),_0x5e24ba['arrowView']['bind']('isEnabled')['toMany'](_0x279d29,'isEnabled',(..._0x225ccb)=>_0x225ccb['some'](_0x35183e=>_0x35183e)),_0x42e86d['on']('execute',_0x482c50=>{this['editor']['execute'](_0x482c50['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x42e86d;}['_createMenuBarMenu'](_0x1593c3,_0x3cad7b,_0x488856){const _0x5f4c76=new _0x302f51(_0x1593c3),_0x337df8=this['editor']['commands']['get']('trackChanges');_0x5f4c76['buttonView']['set']({'label':_0x488856,'icon':_0x2a8e05});const _0x2512a3=new _0x22e11a(_0x1593c3);for(const _0xb8d739 of _0x3cad7b){if('separator'==_0xb8d739['type']){_0x2512a3['items']['add'](new _0x1b51d6(_0x1593c3));continue;}const _0x4c25c0=new _0x369233(_0x1593c3,_0x5f4c76),_0x33772a=new _0x1a656f(_0x1593c3),_0x57e547=_0xb8d739['model'];_0x33772a['bind'](...Object['keys'](_0x57e547))['to'](_0x57e547),_0x33772a['delegate']('execute')['to'](_0x5f4c76),_0x33772a['on']('execute',()=>{this['editor']['execute'](_0x57e547['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c25c0['children']['add'](_0x33772a),_0x2512a3['items']['add'](_0x4c25c0);}return _0x5f4c76['bind']('isEnabled')['to'](_0x337df8,'isEnabled'),_0x5f4c76['panelView']['children']['add'](_0x2512a3),_0x5f4c76;}['_initializeController'](_0x3e8c17){const _0x34bd52=this['editor'],_0x39f070=_0x34bd52['config'],_0x28729e=_0x34bd52['plugins']['get']('Annotations'),_0x43c732=_0x34bd52['plugins']['get']('CommentsRepository'),_0x39243b=_0x34bd52['plugins']['get']('EditorAnnotations'),_0x5e6630=_0x34bd52['plugins']['get'](_0x48ca16)['me'],_0x4efb72=_0x39f070['get']('trackChanges')['SuggestionThreadView'],_0x1b9b63=_0x39f070['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x34029e,CommentThreadInputView:_0xec69a9}=_0x34bd52['plugins']['get']('CommentsUI');let _0x37e0dc,_0x12c292,_0xe690c7;this['_annotationViews']['has'](_0x3e8c17['id'])?(_0x12c292=this['_annotationViews']['get'](_0x3e8c17['id']),_0x37e0dc=_0x12c292['mainView']):(_0x37e0dc=new _0x4efb72(_0x34bd52['locale'],_0x3e8c17,_0x5e6630,{'disableComments':this['_disableComments'],'editorConfig':{..._0x39f070['get']('comments.editorConfig'),'licenseKey':_0x39f070['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x39f070['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x39f070['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x39f070['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x47d009(_0x39f070['get']('locale'),_0x34bd52['locale']),'CommentView':_0x39f070['get']('comments')['CommentView'],'CommentsListView':_0x34029e,'CommentThreadInputView':_0xec69a9,'SuggestionView':_0x1b9b63}),_0x37e0dc['suggestionView']['acceptButton']['on']('execute',()=>{_0x34bd52['editing']['view']['focus']();}),_0x37e0dc['suggestionView']['discardButton']['on']('execute',()=>{_0x34bd52['editing']['view']['focus']();}),_0x12c292=_0x28729e['createAnnotationView'](this['editor']['locale'],_0x37e0dc),_0x12c292['bind']('isDirty')['to'](_0x37e0dc,'isDirty'),_0x12c292['bind']('length')['to'](_0x37e0dc),_0x12c292['bind']('type')['to'](_0x37e0dc,'type',_0x5ff4c6=>'suggestion-'+_0x5ff4c6),_0x37e0dc['on']('escape',()=>{_0xe690c7['fire']('escape');}),this['_annotationViews']['set'](_0x3e8c17['id'],_0x12c292));const _0x470118=_0x43c732['createCommentThreadController'](_0x3e8c17['commentThread'],_0x37e0dc),_0x340b52=new pe(_0x34bd52,_0x3e8c17,_0x37e0dc,_0x470118),_0x4ca5c0=_0x3e8c17['getAllAdjacentSuggestions']()['filter'](_0xff41dd=>_0xff41dd['isInContent']);_0x37e0dc['descriptionParts']=_0x34bd52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4ca5c0),this['_suggestionToController']['set'](_0x3e8c17,_0x340b52),this['_viewToController']['set'](_0x37e0dc,_0x340b52);const _0x5c4584=()=>{const _0x163a9d=[],_0x2436c8=_0x3e8c17['getAllAdjacentSuggestions']()['filter'](_0x2e4c7c=>_0x2e4c7c['isInContent']);for(const _0x4b00e0 of _0x2436c8)_0x163a9d['push'](..._0x4b00e0['getMarkers']());return _0x5244e2(_0x34bd52['editing'],_0x163a9d);};_0xe690c7=_0x28729e['createAnnotation']({'view':_0x12c292,'target':_0x5c4584,'type':()=>'suggestion-'+_0x340b52['view']['type'],'isVisible':!!_0x5c4584()}),_0x43c732['_bindAnnotationToEditors'](_0x37e0dc,_0xe690c7),_0x28729e['add'](_0xe690c7),_0x39243b['registerAnnotation'](_0xe690c7);}['_destroyController'](_0x239d7f){const _0x455035=this['editor']['plugins']['get']('CommentsRepository'),_0x4a8721=this['editor']['plugins']['get']('Annotations'),_0x23454e=this['_suggestionToController']['get'](_0x239d7f),_0x19d5e0=_0x23454e['view'],_0x2bec63=_0x4a8721['getByInnerView'](_0x19d5e0);_0x455035['_unbindEditors'](_0x19d5e0),_0x2bec63&&_0x4a8721['remove'](_0x2bec63),this['_suggestionToController']['delete'](_0x239d7f),this['_viewToController']['delete'](_0x19d5e0),_0x23454e['destroy']();}['_updateController'](_0x3ff71d){if(!_0x3ff71d['isInContent']||!this['_suggestionToController']['has'](_0x3ff71d))return;const _0x57b783=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f11d1=this['_suggestionToController']['get'](_0x3ff71d),_0x115e4a=_0x3ff71d['getAllAdjacentSuggestions']();_0x5f11d1['view']['descriptionParts']=_0x57b783['descriptionFactory']['getDescriptions'](_0x115e4a);}['destroy'](){for(const _0xf1e2c1 of this['_suggestionToController']['keys']())this['_destroyController'](_0xf1e2c1);for(const _0x2abb1d of this['_annotationViews']['values']())_0x2abb1d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x32bd97){return'model'in _0x32bd97;}class Ne extends _0x959a6f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2d7080){this['editor']['plugins']['get'](d)['adapter']=_0x2d7080;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x563ec2){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x563ec2);}['getSuggestions']({skipNotAttached:_0x2b1e4e=!0x1,toJSON:_0x5f475a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2b1e4e,'toJSON':_0x5f475a});}['getSuggestion'](_0x36deb6){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x36deb6);}}const p=['Pagination'];class re extends _0x959a6f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2ef30f=this['editor'];if(_0x2ef30f['config']['define']('trackChangesData.editorCreator',_0x28924e=>{const _0x292375=_0x2ef30f['model']['document']['getRootNames']()['reduce']((_0x1ad056,_0x4d24cf)=>(_0x1ad056[_0x4d24cf]='',_0x1ad056),{});return _0x2ef30f['constructor']['create'](_0x292375,_0x28924e);}),'function'!=typeof _0x2ef30f['config']['get']('trackChangesData')['editorCreator'])throw new _0x111f2a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2b818e){return P(this['editor'],!0x0,_0x2b818e);}['getDataWithDiscardedSuggestions'](_0x54217e){return P(this['editor'],!0x1,_0x54217e);}}class Fe extends _0x959a6f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f2dfd){function _0x2f300c(_0x4e19a4){return _0x4e19a4['map'](_0x2c1cd7=>String['fromCharCode'](_0x2c1cd7))['join']('');}super(_0x4f2dfd),this['result']='end',_0x4f2dfd[_0x2f300c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f300c([0x76,0x69,0x65,0x77])][_0x2f300c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f300c([0x61,0x75,0x74,0x6f]),_0x4f2dfd[_0x2f300c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2f300c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f300c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2f300c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2f300c([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 De(_0x306579){return void 0x0!==_0x306579['getRootsAttributes'];}async function P(_0x5a69ce,_0x3935d2,_0x2b824a){const _0x1a43c9=_0x2e5561(_0x5a69ce,p);_0x1a43c9['plugins']['push'](d,Fe),_0x1a43c9['rootsAttributes']=De(_0x5a69ce)?_0x5a69ce['getRootsAttributes']():void 0x0;const _0x36bad6=document['createDocumentFragment'](),_0x5f6a86=_0x5a69ce['config']['get']('trackChangesData')['editorCreator'],_0x2c95cc=await _0x5f6a86(_0x1a43c9,()=>function(_0x2cff6b){const _0xe3a779=document['createElement']('div');return _0x2cff6b['appendChild'](_0xe3a779),_0xe3a779;}(_0x36bad6));!function(_0x2580d6,_0x473962){const _0x1f3093=_0x2580d6['model']['document']['getRootNames']()['reduce']((_0x2384bc,_0x4141a4)=>(_0x2384bc[_0x4141a4]=_0x2580d6['data']['get']({'rootName':_0x4141a4}),_0x2384bc),{}),_0x52912f=_0x2580d6['plugins']['get']('Users')['users']['map'](_0x11f9c7=>({'id':_0x11f9c7['id'],'name':_0x11f9c7['name']})),_0x4bd74f=_0x2580d6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x374ee1=_0x2580d6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f2e9f=_0x473962['plugins']['get']('Users'),_0x3dc18e=_0x473962['plugins']['get']('TrackChangesEditing'),_0x4979c1=_0x473962['plugins']['get']('CommentsRepository');for(const _0x17e43b of _0x4979c1['getCommentThreads']())_0x17e43b['remove']();for(const _0x2b393f of _0x52912f)_0x1f2e9f['getUser'](_0x2b393f['id'])||_0x1f2e9f['addUser'](_0x2b393f);_0x1f2e9f['me']||_0x1f2e9f['useAnonymousUser']();for(const _0x84c05b of _0x374ee1)_0x4979c1['addCommentThread'](_0x84c05b);for(const _0x38d338 of _0x4bd74f)_0x3dc18e['addSuggestionData'](_0x38d338);_0x473962['data']['set'](_0x1f3093);}(_0x5a69ce,_0x2c95cc),_0x2c95cc['execute'](_0x3935d2?'acceptAllSuggestions':'discardAllSuggestions');const _0x128690=De(_0x2c95cc)?_0x2c95cc['getFullData'](_0x2b824a):_0x2c95cc['data']['get'](_0x2b824a);return await _0x2c95cc['destroy'](),_0x128690;}class Me extends _0x2ba5cd{['options'];constructor(_0x1afa3c,_0x31baac){super(_0x1afa3c),this['options']=_0x31baac,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'](_0x32ccf8,_0x4ecb5b){if(!this['element'])return;const _0x3259d7=[];for(const [_0x3cba5b,_0x41a9f2]of _0x32ccf8){const _0x4fb074=document['createElement']('div');_0x4fb074['setAttribute']('data-ck-root-name',_0x3cba5b),_0x4fb074['className']=_0x41a9f2['classes']+'\x20ck-track-changes-preview__root-container',_0x4fb074['innerHTML']=_0x41a9f2['content'],_0x3259d7['push'](_0x4fb074);}_0x4ecb5b(this['element'],_0x3259d7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x309c82{constructor(_0x383422){super(_0x383422),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3357cb=this['editor'],_0x48ba25=_0x3357cb['locale'],_0x368fc7=_0x3357cb['plugins']['get']('Dialog');let _0x2930c3;const _0x341072=function(_0x54bdfc){const _0x58b2c2={};if('editables'in _0x54bdfc['ui']['view']){for(const [_0x57ff74,_0x5203c5]of Object['entries'](_0x54bdfc['ui']['view']['editables']))_0x58b2c2[_0x57ff74]=_0x5203c5['element'];}else _0x58b2c2[_0x54bdfc['model']['document']['getRootNames']()[0x0]]=_0x54bdfc['ui']['view']['editable']['element'];return _0x58b2c2;}(_0x3357cb),_0x110525=function(_0xaba211){let _0x5da6d7=0x0;for(const _0xc465b7 of Object['values'](_0xaba211))_0x5da6d7=Math['max'](_0x5da6d7,_0xc465b7['getBoundingClientRect']()['width']);let _0x448f3a=0x0;for(const _0x14656f of Object['values'](_0xaba211))_0x448f3a+=_0x14656f['getBoundingClientRect']()['height'];const _0x4e7180=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2d30d8=Math['min'](_0x448f3a,_0x4e7180);return{'width':_0x5da6d7,'height':_0x2d30d8};}(_0x341072);_0x368fc7['show']({'id':'finalContentPreview','title':o(_0x48ba25,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x48ba25,{'dialogRects':_0x110525}),'onHide':()=>{_0x2930c3['detachFromDom']();},'onShow':()=>{_0x3357cb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x468ff0=>{const _0x44a138=this['_standarizeRootsData'](_0x468ff0,_0x3357cb,_0x341072);_0x368fc7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44a138,_0x3357cb['config']['get']('trackChanges.preview.renderFunction'));}),_0x2930c3=new _0x134e0f(_0x48ba25,[_0x368fc7['view']]),_0x2930c3['attachToDom'](),_0x2930c3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3357cb['once']('destroy',()=>{_0x2930c3['detachFromDom']();});const _0x2cf244=_0x368fc7['view']['headerView']['class'];_0x368fc7['view']['headerView']['class']=_0x2cf244?_0x2cf244+'\x20ck-reset_all':'ck-reset_all',_0x368fc7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x368fc7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x28ba33=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x51660d=_0x28ba33['previewMode'],_0x1f0f6a={};if('$labels'===_0x51660d){for(const _0x3100fd of _0x28ba33['getMergeFieldsIds']())_0x1f0f6a[_0x3100fd]=_0x28ba33['getLabel'](_0x3100fd)||_0x3100fd;}else{const _0x3ee3e6='$defaultValues'===_0x51660d?_0x28ba33['getDefaultValues']():_0x28ba33['getDataSetValues'](_0x51660d,!0x0);for(const _0x13fa38 of Object['entries'](_0x3ee3e6)){const [_0x34186a,_0x1c9189]=_0x13fa38;_0x1f0f6a[_0x34186a]=null!==_0x1c9189?_0x1c9189:_0x28ba33['getLabel'](_0x34186a)||_0x34186a;}}return{'mergeFieldsData':_0x1f0f6a};}['_standarizeRootsData'](_0x5deb88,_0x529eb5,_0x306a1e){let _0xf419b8;if('string'==typeof _0x5deb88){const _0x46f793=_0x529eb5['model']['document']['getRootNames']()[0x0];_0xf419b8={[_0x46f793]:_0x5deb88};}else _0xf419b8=_0x5deb88;const _0x536813=this['_fixMediaEmbeds'](_0xf419b8,_0x529eb5),_0x21ab7d=function(_0x2877c6,_0xd0f32a){for(const [_0x3109a1,_0x42d49f]of _0x2877c6)_0x42d49f['classes']=_0xd0f32a[_0x3109a1]['classList']['value']['replace']('ck-focused','');return _0x2877c6;}(this['_sortRoots'](_0x529eb5)['reduce']((_0x5598f5,_0x472161)=>(_0x5598f5['push']([_0x472161,{'content':_0x536813[_0x472161],'classes':''}]),_0x5598f5),[]),_0x306a1e);return _0x21ab7d;}['_fixMediaEmbeds'](_0x3a7132,_0x3123de){if(!_0x3123de['plugins']['has']('MediaEmbedEditing'))return _0x3a7132;const _0x40333f=_0x3123de['plugins']['get']('MediaEmbedEditing');for(const [_0x4415a3,_0x43343c]of Object['entries'](_0x3a7132)){const _0x43b207=document['createElement']('div');_0x43b207['innerHTML']=_0x43343c,(_0x43b207['querySelectorAll']('figure.media')['forEach'](_0x2556b2=>{const _0x5b2b03=_0x2556b2['querySelector']('oembed');if(_0x5b2b03){const _0x2fa944=_0x5b2b03['getAttribute']('url');if(_0x2fa944){const _0x1acb2f=_0x40333f['registry']['getMediaViewElement'](new _0xc473be(_0x3123de['editing']['view']['document']),_0x2fa944,{'elementName':'','renderForEditingView':!0x0}),_0x3f56f5=document['createElement']('div');_0x3f56f5['classList']['add']('ck-media__wrapper'),_0x1acb2f['render'](_0x3f56f5,_0x3123de['editing']['view']['domConverter']),_0x5b2b03['replaceWith'](_0x3f56f5);}}}),_0x3a7132[_0x4415a3]=_0x43b207['innerHTML']);}return _0x3a7132;}['_sortRoots'](_0x1d7cde){if(!function(_0x2fc76d){return void 0x0!==_0x2fc76d['getRootsAttributes'];}(_0x1d7cde))return _0x1d7cde['model']['document']['getRootNames']();const _0x4ddba1=[],_0x42664e=new Map();for(const _0x16eef0 of _0x1d7cde['model']['document']['getRootNames']()){const _0x40da91=_0x1d7cde['editing']['view']['getDomRoot'](_0x16eef0)['getClientRects']()['item'](0x0);_0x4ddba1['push'](_0x16eef0),_0x42664e['set'](_0x16eef0,_0x40da91);}return _0x4ddba1['sort']((_0x1f12fc,_0x4559ff)=>{const _0x49b749=_0x42664e['get'](_0x1f12fc),_0x3ce103=_0x42664e['get'](_0x4559ff);return _0x49b749['y']-_0x3ce103['y']||_0x49b749['x']-_0x3ce103['x'];}),_0x4ddba1;}}class Ue extends _0x959a6f{static get['requires'](){return[re,_0x46668e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a1ae3){super(_0x4a1ae3),_0x4a1ae3['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4a1ae3['config']['define']('trackChanges.preview.renderFunction',(_0x6f590b,_0x22120a)=>{for(const _0x431771 of _0x22120a)_0x6f590b['appendChild'](_0x431771);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x196061,Plugin as _0x4bb77d,PendingActions as _0xeb019b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x38b249,ObservableMixin as _0x544e3a,uid as _0x55a083,priorities as _0x58b2a5,insertToPriorityArray as _0xe70c39,logWarning as _0x30a01f,getEnvKeystrokeText as _0x5b4cf3,FocusTracker as _0x29eec2,KeystrokeHandler as _0x20401d,Collection as _0x3e0553}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3ddcc0,IconCancel as _0x14adc4,IconTrackChanges as _0x3ed89c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2184ee,View as _0x41a816,ViewCollection as _0x1f57f1,FocusCycler as _0x4d7910,UIModel as _0x49fff2,createDropdown as _0x483a6b,SplitButtonView as _0x34f1d9,addListToDropdown as _0x132e80,MenuBarMenuView as _0xdb2595,MenuBarMenuListView as _0x158120,ListSeparatorView as _0x582eb9,MenuBarMenuListItemView as _0x187ba1,MenuBarMenuListItemButtonView as _0x1aeae6,BodyCollection as _0x367055,Dialog as _0x3e905b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4f0c6c,DocumentCompare as _0x4113e6,hashObject as _0x3d0cd8,surroundingMarkersDetector as _0x5d8fd9,FOCUS_ANNOTATION_KEYSTROKE as _0x27c05d,AriaDescriptionView as _0x345832,setupThreadKeyboardNavigation as _0x5ede28,trimHtml as _0x158af9,UserView as _0x52e884,LateFocusButtonView as _0x467e93,getDateTimeFormatter as _0x4fe80b,getAllMarkersDomElementsSorted as _0x260b9e,sanitizeEditorConfig as _0x393970}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x477a44,ModelLiveRange as _0x13a0c3,ModelLivePosition as _0xba9aa4,ViewDowncastWriter as _0x15bf6a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x308120,set as _0x368ef9,isEqual as _0x2d2cfe,unset as _0x20e99e,omit as Pt}from'es-toolkit/compat';import{Delete as _0x47c599,Input as _0x2dcf00}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x361c07}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1c840d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x196061{['_enabledCommands'];constructor(_0x356336,_0x200eef){super(_0x356336),this['_enabledCommands']=_0x200eef,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 _0x1ab47b of this['editor']['commands']['commands']())_0x1ab47b['affectsData']&&!this['_enabledCommands']['has'](_0x1ab47b)&&_0x1ab47b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3d7e79 of this['editor']['commands']['commands']())_0x3d7e79['affectsData']&&!this['_enabledCommands']['has'](_0x3d7e79)&&_0x3d7e79['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x196061{['_suggestions'];constructor(_0x39cd79,_0x5677a1){super(_0x39cd79),this['_suggestions']=_0x5677a1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36a42a){const _0x196ee5=this['_suggestions']['get'](_0x36a42a);if(!_0x196ee5)throw new _0x38b249('track-changes-accept-suggestion-not-found',this);const _0x4c98ee=_0x196ee5['getRanges']();this['editor']['model']['canEditAt'](_0x4c98ee)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x196ee5);}}class D extends _0x196061{['_suggestions'];constructor(_0x4417dd,_0x23b69c){super(_0x4417dd),this['_suggestions']=_0x23b69c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2b9317){const _0x2e86a4=this['_suggestions']['get'](_0x2b9317);if(!_0x2e86a4)throw new _0x38b249('track-changes-discard-suggestion-not-found',this);const _0x46affb=_0x2e86a4['getRanges']();this['editor']['model']['canEditAt'](_0x46affb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2e86a4);}}function ls(_0x5f333b,_0x3e9a36){let _0x3e90b9='';return _0x3e90b9+=_0x5f333b['split']('*')['map']((_0x57e900,_0x28728f)=>_0x28728f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+cn(_0x57e900)+'</span>':cn(_0x57e900))['join'](''),_0x3e9a36&&(_0x3e90b9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e9a36['value']+'\x22\x20title=\x22'+_0x3e9a36['title']+'\x22></span>'),_0x3e90b9;}function cn(_0x42a598){const _0x186ace=document['createElement']('span');return _0x186ace['innerText']=_0x42a598,_0x186ace['innerHTML'];}function ts(_0x3025e6){return _0x3025e6['sort']((_0x2a1647,_0x5bec89)=>'attribute'===_0x2a1647['type']&&'attribute'!==_0x5bec89['type']?-0x1:'attribute'!==_0x2a1647['type']&&'attribute'===_0x5bec89['type']?0x1:'deletion'==_0x2a1647['type']&&'deletion'!=_0x5bec89['type']?-0x1:'deletion'!=_0x2a1647['type']&&'deletion'==_0x5bec89['type']?0x1:0x0);}function to(_0x3fc819,_0x55ec4b){let _0x26098b,_0x2f0625=0x0;const _0x1748e1=[],_0x21eacb=_0x55ec4b['schema'];for(;_0x2f0625<_0x3fc819['length'];){const _0xf892=_0x3fc819[_0x2f0625],_0x25c285=_0x3fc819[_0x2f0625+0x1];_0x26098b||(_0x26098b=_0x55ec4b['createPositionBefore'](_0xf892)),un(_0x55ec4b,_0xf892,_0x25c285)||(_0x1748e1['push'](_0x55ec4b['createRange'](_0x26098b,_0x21eacb['isObject'](_0xf892)?_0x55ec4b['createPositionAfter'](_0xf892):_0x55ec4b['createPositionAt'](_0xf892,'end'))),_0x26098b=null),_0x2f0625++;}return _0x1748e1;}function un(_0x487402,_0x42c420,_0x245ff9){if(!_0x245ff9)return!0x1;const _0x11e5cf=_0x487402['createPositionAfter'](_0x42c420),_0x128b44=_0x487402['createPositionBefore'](_0x245ff9);return _0x11e5cf['isTouching'](_0x128b44);}function rs(_0x4571b5,_0x20fe49,_0x18bd0f){for(;_0x18bd0f['length'];){const _0x485800=_0x18bd0f['splice'](0x0,0x64);_0x4571b5['change'](()=>{for(const _0x36e6e8 of _0x485800)_0x36e6e8['isInContent']&&_0x20fe49['execute'](_0x36e6e8['id']);});}}class B extends _0x196061{['_command'];['_suggestions'];constructor(_0x3ec4a4,_0x1d6e81,_0x2a0fdb){super(_0x3ec4a4),this['_command']=_0x1d6e81,this['_suggestions']=_0x2a0fdb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5b6469=Array['from'](this['_suggestions']['values']())['some'](_0x5f364a=>_0x5f364a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5b6469;}['execute'](){const _0x16ffbb=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3369b2 of _0x16ffbb){const _0xfdd1f0=_0x3369b2['getRanges']();if(!this['editor']['model']['canEditAt'](_0xfdd1f0))return;}rs(this['editor']['model'],this['_command'],_0x16ffbb);}}class O extends _0x196061{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x472f18,_0x3d4447,_0x56851e){super(_0x472f18),this['_command']=_0x3d4447,this['_suggestions']=_0x56851e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x41ad80=this['editor']['model']['document']['selection'],_0xe06ee8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x30bf3b,_0x5b881a){const _0x17951e=Array['from'](_0x30bf3b['getRanges']()),_0x5d8cd6=new Set();for(const _0x5375b5 of _0x5b881a)if(_0x5375b5['isInContent']){for(const _0xbe4796 of _0x17951e)for(const _0x33f97c of _0x5375b5['getRanges']())(_0xbe4796['isIntersecting'](_0x33f97c)||_0x30bf3b['isCollapsed']&&!_0x5375b5['isMultiRange']&&_0x5375b5['next']&&_0x33f97c['end']['isTouching'](_0xbe4796['start']))&&_0x5d8cd6['add'](_0x5375b5);}return _0x5d8cd6;}(_0x41ad80,_0xe06ee8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xfdff44=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2102cc of _0xfdff44){const _0x64ab00=_0x2102cc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x64ab00))return;}rs(this['editor']['model'],this['_command'],_0xfdff44);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x544e3a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x679ade,_0x5ee8dd){super(),this['id']=_0x5ee8dd['id'],this['type']=_0x5ee8dd['type'],this['subType']=_0x5ee8dd['subType']||null,this['author']=_0x5ee8dd['author'],this['creator']=_0x5ee8dd['creator']||_0x5ee8dd['author'],this['isExternal']=Boolean(_0x5ee8dd['attributes']&&_0x5ee8dd['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5ee8dd['originalSuggestionId']||null,this['_model']=_0x679ade,this['_onAccept']=_0x5ee8dd['onAccept'],this['_onDiscard']=_0x5ee8dd['onDiscard'],this['_onAttributesChange']=_0x5ee8dd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5ee8dd['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 _0x56580b=this;for(;_0x56580b['previous'];)_0x56580b=_0x56580b['previous'];return _0x56580b;}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'](_0x180c6e){this['_markerNames']['add'](_0x180c6e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x61b13d=>this['_model']['markers']['get'](_0x61b13d))['filter'](_0xd5dff5=>_0xd5dff5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd68e29=>{for(const _0x46cc13 of this['getMarkers']())_0xd68e29['removeMarker'](_0x46cc13);}),this['_markerNames']['clear']();}['removeMarker'](_0x538b10){this['_model']['change'](_0x140fec=>{_0x140fec['removeMarker'](_0x538b10);}),this['_markerNames']['delete'](_0x538b10);}['addRange'](_0x12007f){const _0x4dc2bb='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x4dc2bb),this['_model']['change'](_0x19070a=>{_0x19070a['addMarker'](_0x4dc2bb,{'range':_0x12007f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2f5cc4){for(const _0x1550b0 of this['getRanges']())if(_0x1550b0['isIntersecting'](_0x2f5cc4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x55052a=>_0x55052a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x495d4a,_0x234786)=>[..._0x495d4a,..._0x234786['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x214d99=this['getRanges']();if(0x1!=_0x214d99['length'])return null;const _0x385dc0=_0x214d99[0x0],_0x43625d=_0x385dc0['start']['nodeAfter'],_0x174175=_0x385dc0['end']['nodeBefore'];return _0x43625d instanceof _0x477a44?_0x43625d!=_0x174175?null:_0x43625d: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 _0x4d37f8=[];let _0x246085=this['head'];for(;_0x246085;)_0x4d37f8['push'](_0x246085),_0x246085=_0x246085['next'];return _0x4d37f8;}['setAttribute'](_0x49a320,_0x17299f){const _0x1457ca=_0x308120(this['attributes']);_0x368ef9(_0x1457ca,_0x49a320,_0x17299f),_0x2d2cfe(_0x1457ca,this['attributes'])||(this['attributes']=_0x1457ca,this['_onAttributesChange'](_0x1457ca));}['removeAttribute'](_0x26bbd6){const _0x414507=_0x308120(this['attributes']);_0x20e99e(_0x414507,_0x26bbd6),_0x2d2cfe(_0x414507,this['attributes'])||(this['attributes']=_0x414507,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 _0x55a083()['substr'](0x1,0x5);}}function o(_0x5b0dcf,_0x18ba15,_0x5749b6){const _0x59c7a0=_0x5b0dcf['t'],t=_0x5b0dcf['t'];switch(_0x18ba15){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',_0x5749b6);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5749b6);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5749b6);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5749b6);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5749b6);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',_0x5749b6);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5749b6);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',_0x5749b6);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5749b6);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5749b6);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5749b6);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5749b6);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5749b6);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5749b6);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5749b6);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5749b6);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5749b6);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5749b6);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5749b6);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5749b6);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5749b6);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5749b6);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5749b6);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5749b6);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5749b6);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'},_0x5749b6);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5749b6);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5749b6);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5749b6);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5749b6);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5749b6);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5749b6);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5749b6);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'},_0x5749b6);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5749b6);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5749b6);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5749b6);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5749b6);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'},_0x5749b6);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5749b6);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'},_0x5749b6);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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x5749b6);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5749b6);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'},_0x5749b6);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5749b6);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'},_0x5749b6);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5749b6);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5749b6);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5749b6);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5749b6);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5749b6);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'},_0x5749b6);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5749b6);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 _0x59c7a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5749b6);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x59c7a0({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5749b6);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5749b6);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'},_0x5749b6);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'},_0x5749b6);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'},_0x5749b6);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x18ba15;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2f4695,_0x315db0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2f4695,this['_locale']=_0x315db0;}['getDescriptions'](_0x4851d6){const _0x3e7320=[],_0x24bb8c=new Set(),_0x47155a=new Set();for(let _0x2c188b=0x0;_0x2c188b<_0x4851d6['length'];_0x2c188b++){const _0xe7b5b6=_0x4851d6[_0x2c188b];if(!_0xe7b5b6['isInContent'])continue;const _0x43ef2d=this['_handleCustomCallbackDescription'](_0xe7b5b6);if(_0x43ef2d){if(null!=_0xe7b5b6['subType']){if(_0x24bb8c['has'](_0xe7b5b6['subType']))continue;_0x24bb8c['add'](_0xe7b5b6['subType']);}_0x3e7320['push'](_0x43ef2d);}else{if('attribute'==_0xe7b5b6['type']){const _0x22490d=_0xe7b5b6['data']['key'];if(_0x47155a['has'](_0x22490d))continue;_0x47155a['add'](_0xe7b5b6['data']['key']),_0x22490d==m?this['_handleRenameSuggestionDescription'](_0x3e7320,_0xe7b5b6):this['_handleAttributeSuggestionDescription'](_0x3e7320,_0xe7b5b6);continue;}'insertion'!=_0xe7b5b6['type']&&'deletion'!=_0xe7b5b6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3e7320,_0xe7b5b6,_0x4851d6[_0x2c188b+0x1]);}}return this['_resolveDescriptionItems'](_0x3e7320);}['registerDescriptionCallback'](_0x2109f9){this['_customCallbacks']['push'](_0x2109f9);}['registerElementLabel'](_0x532970,_0x36879a,_0x2bbd17=_0x58b2a5['normal']){'function'==typeof _0x532970?_0xe70c39(this['_itemLabelsCallbacks'],{'matchingCallback':_0x532970,'label':_0x36879a,'priority':_0x2bbd17}):this['_itemLabels']['set'](_0x532970,_0x36879a);}['registerAttributeLabel'](_0x41f204,_0xf602b5){this['_attributeLabels']['set'](_0x41f204,_0xf602b5);}['getItemLabel'](_0x47b746,_0x133fa5=0x1){let _0x4f943d;for(const _0x28e897 of this['_itemLabelsCallbacks'])if(_0x28e897['matchingCallback'](_0x47b746)){_0x4f943d=_0x28e897['label'];break;}return _0x4f943d||(_0x4f943d=this['_itemLabels']['get'](_0x47b746['name'])),_0x4f943d?_0x4f943d(_0x133fa5):0x1!==_0x133fa5?_0x133fa5+'\x20'+_0x47b746['name']+'s':''+_0x47b746['name'];}['_addDescriptionItems'](_0x186c91,_0x379dcc){const _0x474c26=_0x379dcc['getFirstRange']()['getWalker'](),_0x348d7f='insertion'==_0x379dcc['type']?'add':'remove';for(const _0x1f464d of _0x474c26){const _0x4389e6=_0x1f464d['item'],_0x58592f=_0x186c91[_0x186c91['length']-0x1];if(_0x4389e6['is']('$textProxy'))_0x58592f&&_0x58592f['type']['indexOf']('Container')>-0x1&&_0x186c91['pop'](),_0x58592f&&'text'==_0x58592f['type']?_0x58592f[_0x348d7f]+=_0x4389e6['data']:_0x186c91['push']({'type':'text','add':'add'==_0x348d7f?_0x4389e6['data']:'','remove':'remove'==_0x348d7f?_0x4389e6['data']:''});else{if(this['_schema']['isObject'](_0x4389e6)){const _0x50ed6d=_0x4389e6;if(_0x58592f&&_0x58592f['type']['indexOf']('Container')>-0x1&&_0x186c91['pop'](),'elementEnd'==_0x1f464d['type'])continue;_0x58592f&&_0x58592f['type']==_0x348d7f+'Object'&&_0x58592f['element']['name']==_0x50ed6d['name']?_0x58592f['quantity']++:_0x186c91['push']({'type':_0x348d7f+'Object','element':_0x50ed6d,'quantity':0x1}),_0x474c26['skip'](_0x22c103=>!('elementEnd'==_0x22c103['type']&&_0x22c103['item']==_0x4389e6));}else{if(this['_schema']['checkChild'](_0x4389e6,'$text')||_0x4389e6['is']('element','softBreak')){const _0x150a84=_0x4389e6;if('add'==_0x348d7f&&'elementStart'==_0x1f464d['type']||'remove'==_0x348d7f&&'elementEnd'==_0x1f464d['type'])continue;if(_0x58592f&&-0x1==_0x58592f['type']['indexOf']('Container')){'text'==_0x58592f['type']&&(_0x58592f[_0x348d7f]+='\x0a');continue;}let _0x2c0240;if(_0x2c0240='add'==_0x348d7f?_0x150a84['nextSibling']&&!this['_schema']['isObject'](_0x150a84['nextSibling'])?_0x150a84['nextSibling']:null:_0x150a84['previousSibling']&&!this['_schema']['isObject'](_0x150a84['previousSibling'])?_0x150a84['previousSibling']:null,_0x150a84['isEmpty']||_0x2c0240&&_0x2c0240['isEmpty']){const _0x5cebe6=_0x2c0240&&_0x2c0240['isEmpty']?_0x2c0240:_0x150a84;_0x58592f&&_0x58592f['type']==_0x348d7f+'EmptyContainer'&&_0x58592f['element']['name']==_0x5cebe6['name']?_0x58592f['quantity']++:_0x186c91['push']({'type':_0x348d7f+'EmptyContainer','element':_0x5cebe6,'quantity':0x1});}else _0x186c91['push']({'type':_0x348d7f+'Container','element':_0x150a84});}}}}}['_resolveDescriptionItems'](_0xdf313a){const _0x5909a5=this['_locale'],_0x1f0561=[],_0x324dcd=[],_0x5cf886=[];for(const _0x4a478d of _0xdf313a)switch(_0x4a478d['type']){case'text':if(_0x4a478d['add']=_0x4a478d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a478d['remove']=_0x4a478d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a478d['add']&&''!=_0x4a478d['remove']){_0x1f0561['push']({'type':'replace','content':o(_0x5909a5,'REPLACE_TEXT',['\x22'+_0x4a478d['remove']+'\x22','\x22'+_0x4a478d['add']+'\x22'])});continue;}if(null!=_0x4a478d['add']['match'](/^ +$/)){_0x1f0561['push']({'type':'insertion','content':o(_0x5909a5,'*Insert:*\x20%0',o(_0x5909a5,'ELEMENT_SPACE',_0x4a478d['add']['length']))});continue;}if(null!=_0x4a478d['remove']['match'](/^ +$/)){_0x1f0561['push']({'type':'deletion','content':o(_0x5909a5,'*Remove:*\x20%0',o(_0x5909a5,'ELEMENT_SPACE',_0x4a478d['remove']['length']))});continue;}if(''!=_0x4a478d['add']){_0x1f0561['push']({'type':'insertion','content':o(_0x5909a5,'*Insert:*\x20%0','\x22'+_0x4a478d['add']+'\x22')});continue;}_0x1f0561['push']({'type':'deletion','content':o(_0x5909a5,'*Remove:*\x20%0','\x22'+_0x4a478d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1f0561['push']({'type':'insertion','content':o(_0x5909a5,'*Insert:*\x20%0',this['getItemLabel'](_0x4a478d['element'],_0x4a478d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1f0561['push']({'type':'deletion','content':o(_0x5909a5,'*Remove:*\x20%0',this['getItemLabel'](_0x4a478d['element'],_0x4a478d['quantity']))});continue;case'addContainer':_0x1f0561['push']({'type':'insertion','content':o(_0x5909a5,'*Split:*\x20%0',this['getItemLabel'](_0x4a478d['element'],_0x4a478d['quantity']))});continue;case'removeContainer':_0x1f0561['push']({'type':'deletion','content':o(_0x5909a5,'*Merge:*\x20%0',this['getItemLabel'](_0x4a478d['element'],_0x4a478d['quantity']))});continue;case'addFormat':_0x324dcd['push'](_0x4a478d['key']);continue;case'removeFormat':_0x5cf886['push'](_0x4a478d['key']);continue;default:_0x1f0561['push'](_0x4a478d);}if(_0x324dcd['length']){const _0x12f2d3=_0x324dcd['map'](_0x9d4e4b=>this['_attributeLabels']['has'](_0x9d4e4b)?this['_attributeLabels']['get'](_0x9d4e4b):_0x9d4e4b)['join'](',\x20');_0x1f0561['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x12f2d3)});}if(_0x5cf886['length']){const _0x4c2b1d=_0x5cf886['map'](_0x482697=>this['_attributeLabels']['has'](_0x482697)?this['_attributeLabels']['get'](_0x482697):_0x482697)['join'](',\x20');_0x1f0561['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c2b1d)});}return _0x1f0561;}['_handleCustomCallbackDescription'](_0x374283){for(const _0x528a7b of this['_customCallbacks']){const _0x51f86d=_0x528a7b(_0x374283);if(_0x51f86d&&'type'in _0x51f86d)return _0x51f86d;}}['_handleAttributeSuggestionDescription'](_0x5838c6,_0x47366a){const _0x3839de=_0x47366a['data'],_0x436801=void 0x0===_0x3839de['newValue']?'removeFormat':'addFormat';_0x5838c6['push']({'type':_0x436801,'key':_0x3839de['key']});}['_handleRenameSuggestionDescription'](_0x34ccef,_0x1aa233){_0x34ccef['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1aa233['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xbb4570,_0x2702ba,_0xcb11d7){if(this['_addDescriptionItems'](_0xbb4570,_0x2702ba),_0xcb11d7&&_0xcb11d7['getFirstRange']()&&!_0x2702ba['getFirstRange']()['end']['isEqual'](_0xcb11d7['getFirstRange']()['start'])){const _0x11b432=_0xbb4570[_0xbb4570['length']-0x1],_0x46cb67='insertion'==_0x2702ba['type']?'add':'remove';_0x11b432&&'text'==_0x11b432['type']&&(_0x11b432[_0x46cb67]+='\x0a');}}}class R extends _0x4bb77d{['afterInit'](){const _0x5c4b3a=this['editor'],_0x5ccfe8=_0x5c4b3a['plugins']['get']('TrackChangesEditing');_0x5c4b3a['commands']['get']('showAIAssistant')&&_0x5ccfe8['enableCommand']('showAIAssistant');}}class T extends _0x4bb77d{['afterInit'](){const _0x276686=this['editor'],_0x3f42cb=_0x276686['plugins']['get']('TrackChangesEditing');_0x276686['commands']['get']('toggleAi')&&_0x3f42cb['enableCommand']('toggleAi');}}class E extends _0x4bb77d{['afterInit'](){const _0x592aaa=this['editor'],_0xd9b6c5=_0x592aaa['plugins']['get']('TrackChangesEditing');_0x592aaa['commands']['get']('aiQuickAction')&&_0xd9b6c5['enableCommand']('aiQuickAction');}}class U extends _0x4bb77d{['afterInit'](){const _0x2292b5=this['editor'],_0x5a536e=_0x2292b5['locale'];if(!_0x2292b5['plugins']['has']('AlignmentEditing'))return;const _0x44837a=_0x2292b5['plugins']['get']('TrackChangesEditing');_0x44837a['enableDefaultAttributesIntegration']('alignment'),_0x44837a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a536e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x125145=this['editor'],_0x2d66c1=_0x125145['locale'];_0x125145['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7f566a=>{if('formatBlock'!=_0x7f566a['type'])return;const {data:_0x4e682e}=_0x7f566a;if(_0x4e682e&&'alignment'==_0x4e682e['commandName']){const _0x54cd74=_0x4e682e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2d66c1,'*Format:*\x20%0',function(_0x139d2e){switch(_0x139d2e){case'left':return o(_0x2d66c1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2d66c1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2d66c1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2d66c1,'FORMAT_JUSTIFY_TEXT');}}(_0x54cd74))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x4bb77d{['afterInit'](){const _0x5c0022=this['editor'],_0x2f5d1a=_0x5c0022['plugins']['get']('TrackChangesEditing'),_0x571320=_0x5c0022['locale'];for(const _0x4e60a6 of ti){if(!_0x5c0022['plugins']['has'](_0x4e60a6))continue;const _0x49db68=_0x4e60a6['slice'](0x0,-0x7)['toLowerCase'](),_0x58e5bc='FORMAT_'+_0x49db68['toUpperCase']();_0x2f5d1a['enableDefaultAttributesIntegration'](_0x49db68),_0x2f5d1a['descriptionFactory']['registerAttributeLabel'](_0x49db68,o(_0x571320,_0x58e5bc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2821d4=this['editor'],_0x3d391e=_0x2821d4['locale'],_0x2343b4=_0x2821d4['plugins']['get']('TrackChangesEditing');function _0x34c905(_0x2483ad,_0x4b2c4a){_0x2343b4['descriptionFactory']['registerDescriptionCallback'](_0x51ff54=>{if('formatInline'!=_0x51ff54['type'])return;const {data:_0x56527a}=_0x51ff54;return _0x56527a&&_0x56527a['commandName']===_0x2483ad?_0x56527a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3d391e,'*Format:*\x20%0',_0x4b2c4a)}:{'type':'format','content':o(_0x3d391e,'*Remove\x20format:*\x20%0',_0x4b2c4a)}:void 0x0;});}_0x34c905('bold',o(_0x3d391e,'FORMAT_BOLD')),_0x34c905('italic',o(_0x3d391e,'FORMAT_ITALIC')),_0x34c905('underline',o(_0x3d391e,'FORMAT_UNDERLINE')),_0x34c905('code',o(_0x3d391e,'FORMAT_CODE')),_0x34c905('strikethrough',o(_0x3d391e,'FORMAT_STRIKETHROUGH')),_0x34c905('subscript',o(_0x3d391e,'FORMAT_SUBSCRIPT')),_0x34c905('superscript',o(_0x3d391e,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4bb77d{['afterInit'](){const _0x106a60=this['editor'],_0x3a7a7e=_0x106a60['locale'];if(!_0x106a60['plugins']['has']('BlockQuoteEditing'))return;const _0x51fca6=_0x106a60['plugins']['get']('TrackChangesEditing'),_0x151e2f=this['editor']['commands']['get']('blockQuote');_0x51fca6['enableCommand']('blockQuote',(_0x1a19bf,_0x5b22b2={})=>{const _0x2b2534=this['editor']['model']['document']['selection'],_0x279b16=_0x5b22b2&&void 0x0!==_0x5b22b2['forceValue']?_0x5b22b2['forceValue']:!_0x151e2f['value'];let _0x4ebce8=[];if(_0x279b16){const _0x2e404f=Array['from'](_0x2b2534['getSelectedBlocks']())['filter'](_0x7a9435=>oo(_0x7a9435)||function(_0x2d62bd,_0x60a8b6){const _0x8a2f69=_0x60a8b6['checkChild'](_0x2d62bd['parent'],'blockQuote'),_0x4eea05=_0x60a8b6['checkChild'](['$root','blockQuote'],_0x2d62bd);return _0x8a2f69&&_0x4eea05;}(_0x7a9435,this['editor']['model']['schema']));_0x4ebce8=to(_0x2e404f,_0x106a60['model']);}else{const _0xdf9e3b=Array['from'](_0x2b2534['getSelectedBlocks']())['filter'](_0x2a5bf1=>oo(_0x2a5bf1));_0x4ebce8=to(_0xdf9e3b,_0x106a60['model']);}_0x106a60['model']['change'](()=>{for(const _0x43a3bf of _0x4ebce8)_0x51fca6['markBlockFormat'](_0x43a3bf,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x279b16}]});});}),_0x51fca6['descriptionFactory']['registerDescriptionCallback'](_0xf0eac=>{const {data:_0x1d635a}=_0xf0eac;if(_0x1d635a&&'blockQuote'==_0x1d635a['commandName']){const _0x180306=o(_0x3a7a7e,'ELEMENT_BLOCK_QUOTE');return _0x1d635a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a7a7e,'*Set\x20format:*\x20%0',_0x180306)}:{'type':'format','content':o(_0x3a7a7e,'*Remove\x20format:*\x20%0',_0x180306)};}});}}function oo(_0x197d6b){return'blockQuote'==_0x197d6b['parent']['name'];}class G extends _0x4bb77d{['afterInit'](){const _0x48c285=this['editor'],_0x4e6738=_0x48c285['locale'],_0x99fbc1=_0x48c285['plugins']['get']('TrackChangesEditing');_0x48c285['plugins']['has']('BookmarkEditing')&&(_0x99fbc1['enableCommand']('insertBookmark'),_0x99fbc1['enableDefaultAttributesIntegration']('updateBookmark'),_0x99fbc1['descriptionFactory']['registerDescriptionCallback'](_0x1f3274=>{if('insertion'!=_0x1f3274['type']&&'deletion'!=_0x1f3274['type']&&'attribute'!=_0x1f3274['type'])return;const _0x3551bc=_0x1f3274['getContainedElement']();if(null==_0x3551bc)return;if(!_0x3551bc['is']('element','bookmark'))return;const _0x9f6d71=_0x3551bc['getAttribute']('bookmarkId');if('insertion'==_0x1f3274['type'])return{'type':'insertion','content':o(_0x4e6738,'*Insert:*\x20%0','\x22'+_0x9f6d71+'\x22\x20'+o(_0x4e6738,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1f3274['type'])return{'type':'deletion','content':o(_0x4e6738,'*Remove:*\x20%0','\x22'+_0x9f6d71+'\x22\x20'+o(_0x4e6738,'ELEMENT_BOOKMARK'))};const {data:_0x2c88db}=_0x1f3274;if(!_0x2c88db||'bookmarkId'!=_0x2c88db['key'])return;return{'type':'format','content':o(_0x4e6738,'*Set\x20bookmark:*\x20%0','\x22'+_0x2c88db['newValue']+'\x22')};}));}}class L extends _0x4bb77d{['afterInit'](){const _0x17918a=this['editor'];_0x17918a['plugins']['has']('CaseChange')&&(_0x17918a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x17918a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x17918a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x4bb77d{['afterInit'](){const _0xd24f15=this['editor'];_0xd24f15['commands']['get']('ckbox')&&_0xd24f15['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4bb77d{['afterInit'](){const _0x581c34=this['editor'];if(!_0x581c34['plugins']['has']('CodeBlock'))return;const _0x4cdc47=_0x581c34['plugins']['get']('TrackChangesEditing'),_0x436586=_0x581c34['locale'],_0x14f729=_0x581c34['config']['get']('codeBlock')['languages'],_0x146c92=_0x581c34['commands']['get']('codeBlock');_0x4cdc47['enableCommand']('indentCodeBlock'),_0x4cdc47['enableCommand']('outdentCodeBlock'),_0x4cdc47['enableCommand']('codeBlock',(_0x2887bc,_0x49bc0c={})=>{const _0x1f69ed=_0x581c34['model'],_0x33da9a=_0x581c34['model']['document']['selection'],_0x38421c=_0x49bc0c&&void 0x0!==_0x49bc0c['forceValue']?_0x49bc0c['forceValue']:!_0x146c92['value'];let _0x4ae337;_0x49bc0c['language']||(_0x49bc0c['language']=_0x14f729[0x0]['language']),_0x4ae337=_0x38421c?Array['from'](_0x33da9a['getSelectedBlocks']())['filter'](_0x2dc23b=>co(_0x2dc23b)||function(_0x3ac8ff,_0x2eaa4a){if(_0x3ac8ff['is']('rootElement')||_0x2eaa4a['isLimit'](_0x3ac8ff))return!0x1;return _0x2eaa4a['checkChild'](_0x3ac8ff['parent'],'codeBlock');}(_0x2dc23b,_0x1f69ed['schema'])):Array['from'](_0x33da9a['getSelectedBlocks']())['filter'](_0x44bea1=>co(_0x44bea1));const _0x21c407=to(_0x4ae337,_0x1f69ed);_0x1f69ed['change'](()=>{for(const _0x580b0c of _0x21c407)_0x4cdc47['markBlockFormat'](_0x580b0c,{'commandName':'codeBlock','commandParams':[{..._0x49bc0c,'forceValue':_0x38421c}],'formatGroupId':'blockName'});});}),(_0x4cdc47['descriptionFactory']['registerElementLabel']('codeBlock',_0x31792a=>o(_0x436586,'ELEMENT_CODE_BLOCK',_0x31792a)),_0x4cdc47['descriptionFactory']['registerDescriptionCallback'](_0x20b691=>{if('formatBlock'!=_0x20b691['type'])return;const _0x480620=_0x436586['t'],{data:_0x5d8d44}=_0x20b691;if(!_0x5d8d44||'codeBlock'!=_0x5d8d44['commandName'])return;const _0x58a3af=_0x5d8d44['commandParams'][0x0]['language'],_0x53c742=_0x480620(_0x14f729['find'](_0x4dbefa=>_0x4dbefa['language']===_0x58a3af)['label'])['toLowerCase']();return _0x5d8d44['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x436586,'*Set\x20format:*\x20%0',o(_0x436586,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x53c742+')')}:{'type':'format','content':o(_0x436586,'*Remove\x20format:*\x20%0',o(_0x436586,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5dc572){return'codeBlock'==_0x5dc572['name'];}class z extends _0x4bb77d{['afterInit'](){const _0x5a33d5=this['editor'];if(!_0x5a33d5['plugins']['has']('CommentsEditing'))return;_0x5a33d5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x4bb77d{static get['requires'](){return[_0x47c599];}['init'](){const _0x51cbc7=this['editor'],_0x2d7341=_0x51cbc7['plugins']['get']('TrackChangesEditing');_0x2d7341['enableCommand']('delete');const _0x5cabd2=_0x51cbc7['commands']['get']('deleteForward');_0x2d7341['enableCommand']('deleteForward',(_0x4096f9,_0x25bb87={})=>{const _0x5bd25b=_0x51cbc7['model']['createSelection'](_0x51cbc7['model']['document']['selection']);_0x5bd25b['isCollapsed']&&_0x51cbc7['model']['modifySelection'](_0x5bd25b,{'direction':'forward','unit':_0x25bb87['unit']});const _0x44fae5=_0x5bd25b['getFirstRange'](),_0xb82f16=_0x13a0c3['fromRange'](_0x44fae5);let _0x34897f;_0x4096f9(_0x25bb87),_0x34897f='$graveyard'==_0xb82f16['root']['rootName']?_0x51cbc7['model']['createRange'](_0x44fae5['start']):_0x51cbc7['model']['createRange'](_0xb82f16['start'],_0xb82f16['end']),_0xb82f16['detach'](),_0x51cbc7['model']['enqueueChange'](_0x5cabd2['buffer']['batch'],_0x4f3dd6=>{_0x5cabd2['buffer']['lock'](),_0x4f3dd6['setSelection'](_0x4f3dd6['createRange'](_0x34897f['end'])),_0x5cabd2['buffer']['unlock']();});});}}class W extends _0x4bb77d{['afterInit'](){const _0x365198=this['editor'];if(!_0x365198['plugins']['has']('ListEditing'))return;const _0x34ac69=_0x365198['locale'],_0x1349ee=_0x365198['plugins']['get']('TrackChangesEditing'),_0xf7cb7e=_0x365198['plugins']['has']('TodoListEditing'),_0xa0e9b2=!!_0x365198['config']['get']('list.multiBlock');function _0x2e9264(_0x55e722){return{'type':'format','content':''+o(_0x34ac69,'*Set\x20format:*\x20%0',_0x55e722)};}function _0x5b65d3(_0xac7ff1){return{'type':'format','content':''+o(_0x34ac69,'*Remove\x20format:*\x20%0',_0xac7ff1)};}_0x1349ee['enableDefaultAttributesIntegration']('numberedList'),_0x1349ee['enableDefaultAttributesIntegration']('bulletedList'),_0x1349ee['enableDefaultAttributesIntegration']('customNumberedList'),_0x1349ee['enableDefaultAttributesIntegration']('customBulletedList'),_0x1349ee['enableDefaultAttributesIntegration']('indentList'),_0x1349ee['enableDefaultAttributesIntegration']('outdentList'),_0x1349ee['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1349ee['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xa0e9b2&&(_0x1349ee['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1349ee['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xf7cb7e&&(_0x1349ee['enableDefaultAttributesIntegration']('todoList'),_0x1349ee['enableDefaultAttributesIntegration']('checkTodoList'),_0x1349ee['descriptionFactory']['registerDescriptionCallback'](_0x102d98=>{const {data:_0x32503b}=_0x102d98;if(_0x32503b&&'todoListChecked'==_0x32503b['key'])return{'type':'format','content':_0x32503b['newValue']?o(_0x34ac69,'*Check\x20item*'):o(_0x34ac69,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x275b57=>{if(_0x275b57['batch']['isUndo'])return!0x1;let _0x3cf2ca=!0x1;const _0x3c56e8=_0x1349ee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f0eda=>'todoListChecked'===_0x1349ee['_getAttributeKey'](_0x3f0eda));for(const _0x572040 of _0x3c56e8){'todo'!=_0x572040['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1349ee['_findSuggestions'](_0x572040['getFirstRange'](),'attribute')['find'](_0x59c413=>'listType'===_0x1349ee['_getAttributeKey'](_0x59c413['suggestion']))||(_0x275b57['removeMarker'](_0x572040['getFirstMarker']()),_0x3cf2ca=!0x0));}return _0x3cf2ca;})),_0x1349ee['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x34ac69,'FORMAT_INDENT'));const _0x2d88c9={'type':'format','content':''};_0x1349ee['descriptionFactory']['registerDescriptionCallback'](_0x266278=>{const {data:_0x1bc747}=_0x266278;if(!_0x1bc747||'listType'!=_0x1bc747['key'])return;let _0x508677=_0x266278['head'];for(;_0x508677;){if(_0x508677['data']&&(('listStyle'==_0x508677['data']['key']||'listMarkerStyle'==_0x508677['data']['key'])&&(_0x508677['data']['newValue']&&'default'!=_0x508677['data']['newValue']||'default'!=_0x508677['data']['oldValue']&&!_0x1bc747['newValue'])||!_0xa0e9b2&&_0x508677['data']['key']==m))return _0x2d88c9;_0x508677=_0x508677['next'];}if(null==_0x1bc747['newValue'])switch(_0x1bc747['oldValue']){case'bulleted':return _0x5b65d3(o(_0x34ac69,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b65d3(o(_0x34ac69,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b65d3(o(_0x34ac69,'ELEMENT_TODO_LIST'));}switch(_0x1bc747['newValue']){case'bulleted':return _0x2e9264(o(_0x34ac69,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e9264(o(_0x34ac69,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e9264(o(_0x34ac69,'ELEMENT_TODO_LIST'));}}),_0x1349ee['descriptionFactory']['registerDescriptionCallback'](_0x3a58f5=>{const {data:_0x25163e}=_0x3a58f5;if(_0x25163e&&'listIndent'==_0x25163e['key'])return null==_0x25163e['newValue']||null==_0x25163e['oldValue']&&0x0==_0x25163e['newValue']?_0x2d88c9:void 0x0;}),_0x1349ee['descriptionFactory']['registerDescriptionCallback'](_0x46a2dd=>{if('attribute'!=_0x46a2dd['type'])return;const {data:_0x43962a}=_0x46a2dd;if(!_0x43962a||'listItemId'!=_0x43962a['key'])return;const _0x5a008b=Te(_0x46a2dd);return'newValue'==_0x5a008b?{'type':'format','content':o(_0x34ac69,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5a008b?{'type':'format','content':o(_0x34ac69,'*Split:*\x20list\x20item')}:_0x2d88c9;}),_0x365198['model']['document']['registerPostFixer'](_0x5820fb=>this['listItemIdFixer'](_0x5820fb)),_0x365198['model']['document']['registerPostFixer'](_0x632d3e=>this['noTrackChangesFixer'](_0x632d3e)),_0x365198['model']['document']['on']('change:data',(_0x3f254d,_0x2f4eed)=>{if(_0x2f4eed['isUndo']||!_0x2f4eed['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xd60257){if(_0xd60257['batch']['isUndo']||!_0xd60257['batch']['isLocal'])return!0x1;let _0x4d0fba=!0x1;const _0x5b95e2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a2535=>_0x3a2535['data']&&'listItemId'==_0x3a2535['data']['key'])['filter'](_0x1de6c3=>_0x1de6c3['data']['newValue']&&_0x1de6c3['data']['oldValue']);for(const _0x599f1e of _0x5b95e2)Te(_0x599f1e)||(_0xd60257['removeMarker'](_0x599f1e['getFirstMarker']()),_0x4d0fba=!0x0);return _0x4d0fba;}['noTrackChangesFixer'](_0x3ee7cf){if(_0x3ee7cf['batch']['isUndo']||!_0x3ee7cf['batch']['isLocal'])return!0x1;const _0x32a70a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x32a70a['trackChangesCommand']['value'])return!0x1;let _0x386fb0=!0x1;const _0xfaea5b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x14ab10=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x42998c=>'attribute'==_0x42998c['type'])['filter'](_0x51b7f2=>_0xfaea5b['includes'](_0x51b7f2['attributeKey']));if(0x0==_0x14ab10['length'])return _0x386fb0;for(const _0x2c6501 of _0x14ab10){const _0x441bec=_0x32a70a['_findSuggestions'](_0x2c6501['range'],'attribute')['filter'](_0x4df412=>!_0x4df412['meta']['isNextTo'])['map'](_0x26f388=>_0x26f388['suggestion'])['filter'](_0x1577c1=>{const _0x17b73d=_0x32a70a['_getAttributeKey'](_0x1577c1);return _0xfaea5b['includes'](_0x17b73d);});if(_0x441bec['length']){for(const _0x325c62 of _0x441bec)_0x3ee7cf['removeMarker'](_0x325c62['getFirstMarker']());_0x386fb0=!0x0;}}return _0x386fb0;}['assureChains'](){const _0x289899=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a26eb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f307e;const _0xd6b34a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x341a11=>{if(_0x341a11['data']['oldRange']||!_0x341a11['data']['newRange'])return null;if(!_0x341a11['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1bc4b9}=_0x289899['_splitMarkerName'](_0x341a11['name']);if(!_0x289899['hasSuggestion'](_0x1bc4b9))return null;const _0x169cb=_0x289899['getSuggestion'](_0x1bc4b9);return _0x4a26eb['includes'](_0x169cb['data']['key']);})['map'](_0x46b963=>{const {id:_0x2f2eff}=_0x289899['_splitMarkerName'](_0x46b963['name']),_0x1a3537=_0x289899['getSuggestion'](_0x2f2eff);return _0x4f307e=_0x1a3537['attributes']['groupId'],_0x1a3537['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xd6b34a['size'])return;const _0x2e2460=_0x289899['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27161a=>'attribute'==_0x27161a['type']&&_0x27161a['data']&&_0x4a26eb['includes'](_0x27161a['data']['key'])&&_0x27161a['attributes']['groupId']!=_0x4f307e)['map'](_0x194919=>({'listItem':_0x194919['getFirstRange']()['start']['nodeAfter'],'groupId':_0x194919['attributes']['groupId']})),_0x184a41=new Set();for(const {groupId:_0x2af21e,listItem:_0x1b31c9}of _0x2e2460)_0xd6b34a['has'](_0x1b31c9)&&_0x184a41['add'](_0x2af21e);for(const _0x280f2d of _0x289899['getSuggestions']())_0x184a41['has'](_0x280f2d['attributes']['groupId'])&&_0x280f2d['setAttribute']('groupId',_0x4f307e);}['_supportLegacySuggestions'](){const _0x37f4d7=this['editor'],_0x196601=_0x37f4d7['locale'],_0x50c2e6=_0x37f4d7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x50c2e6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x11fc30,_0x473029){const _0xaa7c4f=[];for(let _0x183cbf of _0x11fc30)_0x183cbf['start']['nodeAfter']===_0x183cbf['end']['parent']&&(_0x183cbf=_0x37f4d7['model']['createRange'](_0x37f4d7['model']['createPositionAt'](_0x183cbf['start']['nodeAfter'],0x0))),_0xaa7c4f['push'](_0x183cbf);_0x37f4d7['model']['change'](_0x179ae0=>{const _0x4b47dc=_0x37f4d7['model']['document']['selection'],_0x19dce9=Array['from'](_0x4b47dc['getRanges']())['map'](_0x54b6a0=>_0x13a0c3['fromRange'](_0x54b6a0));_0x179ae0['setSelection'](_0xaa7c4f),_0x37f4d7['commands']['get'](_0x473029['commandName'])['refresh'](),_0x473029['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x37f4d7['execute'](_0x473029['commandName'],..._0x473029['commandParams']),_0x179ae0['setSelection'](_0x19dce9);for(const _0x3fffbe of _0x19dce9)_0x3fffbe['detach']();});}),_0x50c2e6['descriptionFactory']['registerElementLabel'](function(_0x1fb7dd){const _0x55c674=!_0x37f4d7['model']['schema']['isObject'](_0x1fb7dd),_0x85f1d=_0x1fb7dd['previousSibling'],_0x310442=_0x1fb7dd['nextSibling'],_0x23e982=_0x1fb7dd['getAttribute']('listItemId'),_0x5a7cc2=!_0x85f1d||_0x85f1d['getAttribute']('listItemId')!==_0x23e982,_0x6d5bc8=!_0x310442||_0x310442['getAttribute']('listItemId')!==_0x23e982;return _0x55c674&&Boolean(_0x23e982)&&_0x5a7cc2&&_0x6d5bc8;},_0x41c7ad=>o(_0x196601,'ELEMENT_LIST_ITEM',_0x41c7ad));}['_registerLegacyDescription'](){const _0x42b5d4=this['editor'],_0x517262=_0x42b5d4['locale'];function _0x372a83(_0x4ffb12){const _0x27f754=_0x42b5d4['commands']['get']('bulletedList')['value'],_0x279cb0=_0x42b5d4['commands']['get']('numberedList')['value'];return'numberedList'===_0x4ffb12?_0x27f754:_0x279cb0;}_0x42b5d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x12ab81){if('formatBlock'!=_0x12ab81['type'])return;const {data:_0x513c30}=_0x12ab81;if(!_0x513c30)return;let _0x304f53,_0x2a8ff8,_0x222e4d,_0x3fee9f;switch(_0x513c30['commandName']){case'bulletedList':_0x222e4d=_0x513c30['commandParams'][0x0]['forceValue'],_0x3fee9f=_0x372a83(_0x513c30['commandName']),_0x304f53=_0x222e4d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fee9f&&_0x42b5d4['config']['get']('list.multiBlock')||(_0x304f53='*Change\x20to:*\x20%0'),_0x2a8ff8={'type':'format','content':o(_0x517262,_0x304f53,o(_0x517262,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x222e4d=_0x513c30['commandParams'][0x0]['forceValue'],_0x3fee9f=_0x372a83(_0x513c30['commandName']),_0x304f53=_0x222e4d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3fee9f&&_0x42b5d4['config']['get']('list.multiBlock')||(_0x304f53='*Change\x20to:*\x20%0'),_0x2a8ff8={'type':'format','content':o(_0x517262,_0x304f53,o(_0x517262,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x304f53='*Indent:*\x20%0',_0x2a8ff8={'type':'format','content':o(_0x517262,_0x304f53,o(_0x517262,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x304f53=function(_0x4bf136){const _0x1709d7=_0x4bf136['getFirstRange']();let _0x3fbd35=_0x1709d7['start']['nodeAfter'];for(;_0x3fbd35&&_0x1709d7['containsItem'](_0x3fbd35);){if(_0x3fbd35['getAttribute']('listIndent')>0x0)return!0x1;_0x3fbd35=_0x3fbd35['nextSibling'];}return!0x0;}(_0x12ab81)?o(_0x517262,'*Format:*\x20remove\x20from\x20%0',o(_0x517262,function(_0x4d5d60){return'ELEMENT_'+_0x4d5d60['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x12ab81))):o(_0x517262,'*Outdent:*\x20%0',o(_0x517262,'ELEMENT_LIST_ITEM')),_0x2a8ff8={'type':'format','content':_0x304f53};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x513c30['multipleBlocks']&&(_0x304f53='*Merge:*\x20%0',_0x2a8ff8={'type':'deletion','content':o(_0x517262,_0x304f53,o(_0x517262,'ELEMENT_LIST_ITEM'))});}return _0x2a8ff8;});}}function Te(_0x2137c1){let _0x54b89c=_0x2137c1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x54b89c;){const _0x354361=_0x54b89c['getAttribute']('listItemId');if(!_0x354361)return!0x1;if(_0x354361==_0x2137c1['data']['newValue'])return'newValue';if(_0x354361==_0x2137c1['data']['oldValue'])return'oldValue';_0x54b89c=_0x54b89c['previousSibling'];}return!0x1;}class H extends _0x4bb77d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xff4922=this['editor']['config']['get']('list.properties'),_0xd0a635=this['editor']['plugins']['get']('TrackChangesEditing');_0xff4922['styles']&&_0xd0a635['enableDefaultAttributesIntegration']('listStyle'),_0xff4922['reversed']&&_0xd0a635['enableDefaultAttributesIntegration']('listReversed'),_0xff4922['startIndex']&&_0xd0a635['enableDefaultAttributesIntegration']('listStart');const _0x1e6a4e={'type':'format','content':''};_0xd0a635['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4f88e8=this['editor']['locale'];_0xd0a635['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4f88e8,'FORMAT_LIST_REVERSED')),_0xd0a635['descriptionFactory']['registerDescriptionCallback'](_0x13b7a8=>{const {data:_0x25497b}=_0x13b7a8;if(_0x25497b&&'listReversed'==_0x25497b['key'])return null==_0x25497b['newValue']||0x0==_0x25497b['newValue']&&null==_0x25497b['oldValue']?_0x1e6a4e:void 0x0;}),_0xd0a635['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4f88e8,'FORMAT_LIST_START')),_0xd0a635['descriptionFactory']['registerDescriptionCallback'](_0x87ebb8=>{const {data:_0x17be23}=_0x87ebb8;if(_0x17be23&&'listStart'==_0x17be23['key'])return null==_0x17be23['newValue']||0x1==_0x17be23['newValue']&&null==_0x17be23['oldValue']?_0x1e6a4e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x45cf9a=>{if(_0x45cf9a['batch']['isUndo'])return!0x1;let _0x32c2fd=!0x1;const _0x138cbb=_0xd0a635['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x188877=>{const _0x6e069a=_0xd0a635['_getAttributeKey'](_0x188877);return'listStart'==_0x6e069a||'listReversed'==_0x6e069a;});for(const _0x3a55f2 of _0x138cbb){const _0xcb432a=_0x3a55f2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xcb432a||'customNumbered'==_0xcb432a)continue;_0xd0a635['_findSuggestions'](_0x3a55f2['getFirstRange'](),'attribute')['find'](_0x395fb0=>'listType'==_0xd0a635['_getAttributeKey'](_0x395fb0['suggestion']))||(_0x45cf9a['removeMarker'](_0x3a55f2['getFirstMarker']()),_0x32c2fd=!0x0);}return _0x32c2fd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5ca40c){const _0x52c8d1=this['editor']['locale'],{data:_0x5390db}=_0x5ca40c,_0x624738={'type':'format','content':''};if(!_0x5390db||'listStyle'!=_0x5390db['key'])return;if(!_0x5390db['oldValue'])return'default'==_0x5390db['newValue']?_0x624738:{'type':'format','content':''+o(_0x52c8d1,'*Set\x20format:*\x20%0',o(_0x52c8d1,this['_getTranslationKeyForListStyle'](_0x5390db['newValue'])))};if(!_0x5390db['newValue']){if('default'==_0x5390db['oldValue'])return _0x624738;let _0x5ec77b=_0x5ca40c['head'];for(;_0x5ec77b;){if(_0x5ec77b['data']&&'listType'==_0x5ec77b['data']['key']&&_0x5ec77b['data']['newValue'])return _0x624738;_0x5ec77b=_0x5ec77b['next'];}return{'type':'format','content':''+o(_0x52c8d1,'*Remove\x20format:*\x20%0',o(_0x52c8d1,this['_getTranslationKeyForListStyle'](_0x5390db['oldValue'])))};}if('default'!=_0x5390db['newValue'])return{'type':'format','content':''+o(_0x52c8d1,'*Set\x20format:*\x20%0',o(_0x52c8d1,this['_getTranslationKeyForListStyle'](_0x5390db['newValue'])))};let _0x4a5d34=_0x5ca40c['head'];for(;_0x4a5d34;){if(_0x4a5d34['data']&&'listType'==_0x4a5d34['data']['key']&&_0x4a5d34['data']['newValue']&&_0x4a5d34['data']['oldValue'])return _0x624738;_0x4a5d34=_0x4a5d34['next'];}return{'type':'format','content':o(_0x52c8d1,'*Set\x20format:*\x20%0',o(_0x52c8d1,'ELEMENT_'+_0x5ca40c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x56949e=this['editor'],_0x5493cf=_0x56949e['locale'];_0x56949e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x371f97=>{if('formatBlock'!=_0x371f97['type'])return;const {data:_0x3e2153}=_0x371f97;if(!_0x3e2153)return;let _0x5a4f0c,_0x4337e2;switch(_0x3e2153['commandName']){case'listStyle':_0x5a4f0c='*Change\x20to:*\x20%0',_0x4337e2={'type':'format','content':o(_0x5493cf,_0x5a4f0c,o(_0x5493cf,this['_getTranslationKeyForListStyle'](_0x3e2153['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a4f0c=_0x3e2153['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4337e2={'type':'format','content':o(_0x5493cf,_0x5a4f0c)};break;case'listStart':_0x5a4f0c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4337e2={'type':'format','content':o(_0x5493cf,_0x5a4f0c,_0x3e2153['commandParams'][0x0]['startIndex'])};}return _0x4337e2;});}['_getTranslationKeyForListStyle'](_0x46ab71){return'ELEMENT_'+function(_0x2f6dcc){if(ye['includes'](_0x2f6dcc))return'bulleted';if(Se['includes'](_0x2f6dcc))return'numbered';return null;}(_0x46ab71)['toUpperCase']()+'_LIST_'+_0x46ab71['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4bb77d{['afterInit'](){const _0x28331f=this['editor'];_0x28331f['commands']['get']('emoji')&&_0x28331f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x4bb77d{static get['requires'](){return[_0x361c07];}['init'](){const _0x33c58e=this['editor'],_0x1f4939=_0x33c58e['plugins']['get']('TrackChangesEditing'),_0x30ac8f=_0x33c58e['commands']['get']('enter');_0x1f4939['enableCommand']('enter',()=>{_0x33c58e['model']['change'](_0x43f107=>{const _0x3186e3=_0x33c58e['model']['document']['selection'],_0x15cab3=_0x3186e3['getFirstPosition'](),_0x511963=_0x13a0c3['fromRange'](_0x3186e3['getFirstRange']());if(_0x30ac8f['enterBlock'](_0x43f107)){const _0x3b51d5=_0x33c58e['model']['createPositionAt'](_0x15cab3['parent']['nextSibling'],0x0),_0x53b60b=_0x43f107['createRange'](_0x15cab3,_0x3b51d5);_0x1f4939['markInsertion'](_0x53b60b);}else _0x43f107['setSelection'](_0x43f107['createRange'](_0x511963['end']));_0x511963['detach'](),_0x30ac8f['fire']('afterExecute',{'writer':_0x43f107});});});}}class Y extends _0x4bb77d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x36c732=this['editor']['plugins']['get']('TrackChangesEditing');_0x36c732['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x36c732['enableCommand']('findNext'),_0x36c732['enableCommand']('findPrevious'),_0x36c732['enableCommand']('replace'),_0x36c732['enableCommand']('replaceAll');}['handleFindCommand'](_0x14eb18,_0xb29f67,_0x51638c={}){const _0x1cd44c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x14eb18(_0x4e0269=>{let _0x38162d=('string'==typeof _0xb29f67?_0x1cd44c['findByTextCallback'](_0xb29f67,_0x51638c):_0xb29f67)(_0x4e0269);Array['isArray'](_0x38162d)&&(_0x38162d={'results':_0x38162d,'searchText':'string'==typeof _0xb29f67?_0xb29f67:''});const _0x427d37=_0x38162d['results']['filter'](_0x337bac=>!0x1===this['_isInDeletionRange'](_0x337bac,_0x4e0269['item']));return{..._0x38162d,'results':_0x427d37};},_0x51638c);}['_isInDeletionRange'](_0x1df3a5,_0x1cc8e0){const _0x3fa61b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1cc8e0,_0x1df3a5['start']),this['editor']['model']['createPositionAt'](_0x1cc8e0,_0x1df3a5['end']));for(const _0x3038dc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3fa61b['getIntersection'](_0x3038dc['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x4bb77d{['afterInit'](){const _0x1850df=this['editor']['locale'],_0x30e650=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2b5b3d,commandName:_0x653c6d}of eo)this['editor']['plugins']['has'](_0x2b5b3d)&&_0x30e650['enableDefaultAttributesIntegration'](_0x653c6d);_0x30e650['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1850df,'FORMAT_FONT_SIZE')),_0x30e650['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1850df,'FORMAT_FONT_FAMILY')),_0x30e650['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1850df,'FORMAT_FONT_COLOR')),_0x30e650['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1850df,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51d6c6=this['editor'],_0x3db60c=_0x51d6c6['locale'];_0x51d6c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a52f=>{const _0x861e55=_0x3db60c['t'];if('formatInline'!=_0x40a52f['type'])return;const {data:_0x1b78fb}=_0x40a52f;if(null!=_0x1b78fb){if('fontSize'==_0x1b78fb['commandName']){const _0x4e96b8=_0x1b78fb['commandParams'][0x0]['value'];if(_0x4e96b8){const _0x2537de=_0x861e55(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x23f540=>_0x23f540['model']==_0x4e96b8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3db60c,'*Set\x20font\x20size:*\x20%0',_0x2537de)};}return{'type':'format','content':o(_0x3db60c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b78fb['commandName']){const _0x4a88a8=_0x1b78fb['commandParams'][0x0]['value'];return _0x4a88a8?{'type':'format','content':o(_0x3db60c,'*Set\x20font\x20family:*\x20%0',_0x4a88a8)}:{'type':'format','content':o(_0x3db60c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b78fb['commandName']){const _0xee2f6f=_0x1b78fb['commandParams'][0x0]['value'];if(_0xee2f6f){const _0x879db8=_0x2184ee(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3b0b4d=>_0x3b0b4d['model']==_0xee2f6f);let _0x3b3bd7=_0xee2f6f,_0x5e4027='';return _0x879db8&&(_0x3b3bd7=_0x879db8['label'],_0x5e4027=_0x861e55(_0x3b3bd7)['toLowerCase']()),{'type':'format','content':o(_0x3db60c,'*Set\x20font\x20color:*\x20%0',_0x5e4027)['trim'](),'color':{'value':_0xee2f6f,'title':_0x5e4027||_0x3b3bd7}};}return{'type':'format','content':o(_0x3db60c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b78fb['commandName']){const _0x3231c8=_0x1b78fb['commandParams'][0x0]['value'];if(_0x3231c8){const _0x12c18a=_0x2184ee(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2da8ae=>_0x2da8ae['model']==_0x3231c8);let _0x5e5a88=_0x3231c8,_0x44981d='';return _0x12c18a&&(_0x5e5a88=_0x12c18a['label'],_0x44981d=_0x861e55(_0x5e5a88)['toLowerCase']()),{'type':'format','content':o(_0x3db60c,'*Set\x20font\x20background\x20color:*\x20%0',_0x44981d)['trim'](),'color':{'value':_0x3231c8,'title':_0x44981d||_0x5e5a88}};}return{'type':'format','content':o(_0x3db60c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x4bb77d{['afterInit'](){const {plugins:_0x124e5b}=this['editor'];_0x124e5b['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x124e5b['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x55befc,plugins:_0x42106a,commands:_0x533d00}=this['editor'],_0x40c70e=_0x42106a['get']('TrackChangesEditing');_0x533d00['get']('footnotesStyle')&&_0x40c70e['enableDefaultAttributesIntegration']('footnotesStyle'),_0x533d00['get']('footnotesStart')&&_0x40c70e['enableDefaultAttributesIntegration']('footnotesStart'),_0x40c70e['registerBlockAttribute']('footnotesListStyle'),_0x40c70e['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x55befc,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x40c70e['registerBlockAttribute']('footnotesListStart'),_0x40c70e['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x55befc,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x203d0c=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4a870e,commands:_0x40e258}=this['editor'];_0x40e258['get']('insertFootnote')&&_0x203d0c['enableCommand']('insertFootnote'),_0x203d0c['descriptionFactory']['registerElementLabel']('footnoteRef',_0x129642=>o(_0x4a870e,'ELEMENT_FOOTNOTE_REF',_0x129642)),_0x203d0c['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1c0f96=>o(_0x4a870e,'ELEMENT_FOOTNOTE_DEFINITION',_0x1c0f96)),_0x203d0c['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x19d5b0=>o(_0x4a870e,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x19d5b0));}}class nt extends _0x4bb77d{['afterInit'](){const _0x4f4df3=this['editor'],_0x5c2605=_0x4f4df3['plugins']['get']('TrackChangesEditing'),_0x1911e5=_0x4f4df3['commands']['get']('copyFormat'),_0x2d0699=_0x4f4df3['commands']['get']('pasteFormat');_0x1911e5&&_0x2d0699&&(_0x5c2605['enableDefaultAttributesIntegration']('pasteFormat'),_0x5c2605['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d716a=this['editor'],_0x1a35a8=_0x1d716a['locale'];_0x1d716a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfd3cfd=>{if('formatBlock'!=_0xfd3cfd['type']&&'formatInline'!=_0xfd3cfd['type'])return;const {data:_0x457da2}=_0xfd3cfd;if(_0x457da2&&'pasteFormat'===_0x457da2['commandName']){const _0x14998d=[],_0x5d8e9b=_0x457da2['commandParams'][0x0];for(const [_0x4fa364,_0x9b5ad2]of Object['entries'](_0x5d8e9b))_0x14998d['push'](ro(_0x1d716a,_0x4fa364,_0x9b5ad2));return _0x14998d['length']?{'type':'format','content':o(_0x1a35a8,'*Set\x20format\x20to:*\x20%0',_0x14998d['join'](',\x20'))}:{'type':'format','content':o(_0x1a35a8,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x561ed3,_0x41551b,_0x2df2ad){const _0x382a21=_0x561ed3['locale']['t'],_0x48723f=_0x41551b['split'](/(?=[A-Z])/)['join']('\x20'),_0x53404a=_0x382a21(_0x48723f['charAt'](0x0)['toUpperCase']()+_0x48723f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2df2ad)return _0x53404a;if('fontColor'===_0x41551b||'fontBackgroundColor'===_0x41551b){const _0x1160f0=_0x2184ee(_0x561ed3['config']['get']('fontColor.colors'))['find'](_0x2a519f=>_0x2a519f['model']==_0x2df2ad);return _0x53404a+'\x20('+(_0x1160f0?_0x382a21(_0x1160f0['label'])['toLowerCase']():_0x2df2ad)+')';}if('fontSize'===_0x41551b&&isNaN(parseFloat(_0x2df2ad))){const _0x5b5906=_0x561ed3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x561ed3['config']['get']('fontSize.options'))['find'](_0x12f057=>_0x12f057['model']==_0x2df2ad);return _0x53404a+'\x20('+(_0x5b5906?_0x382a21(_0x5b5906['title'])['toLowerCase']():_0x2df2ad)+')';}return _0x53404a+'\x20('+_0x2df2ad+')';}class it extends _0x4bb77d{['_headingOptions'];['afterInit'](){const _0x426693=this['editor'];if(!_0x426693['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x426693['config']['get']('heading.options');const _0x47119c=_0x426693['locale'],_0x444308=_0x426693['plugins']['get']('TrackChangesEditing');_0x444308['enableDefaultAttributesIntegration']('heading');for(const _0x4b73e0 of this['_headingOptions'])'paragraph'!=_0x4b73e0['model']&&_0x444308['descriptionFactory']['registerElementLabel'](_0x4b73e0['model'],_0x374647=>{const _0x5c7c8f=this['_getHeadingLevel'](_0x4b73e0['model']);return null!==_0x5c7c8f?_0x679ae(_0x374647,_0x5c7c8f):_0xe5954d(_0x374647,_0x4b73e0['title']);});function _0x679ae(_0x214d8c,_0x3f3081){return o(_0x47119c,'ELEMENT_HEADING',[_0x214d8c,_0x3f3081]);}function _0xe5954d(_0x2340d3,_0x348270){return o(_0x47119c,'ELEMENT_HEADING_CUSTOM',[_0x2340d3,_0x348270]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58745c=this['editor'],_0x59ff19=_0x58745c['locale'];function _0x310bf8(_0x8fae98,_0x5c89b1){return o(_0x59ff19,'ELEMENT_HEADING_CUSTOM',[_0x8fae98,_0x5c89b1]);}_0x58745c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x209c17=>{if('formatBlock'!=_0x209c17['type'])return;const {data:_0x38ad8a}=_0x209c17;if(_0x38ad8a&&'heading'==_0x38ad8a['commandName']){const _0x4c5962=_0x38ad8a['commandParams'][0x0]['value'],_0x325aff=this['_getHeadingLevel'](_0x4c5962);if(null!==_0x325aff)return{'type':'format','content':o(_0x59ff19,'*Change\x20to:*\x20%0',(_0xb13c5e=0x1,_0xd977b=_0x325aff,o(_0x59ff19,'ELEMENT_HEADING',[_0xb13c5e,_0xd977b])))};const _0x17f2c6=this['_headingOptions']['find'](_0xad03c=>_0xad03c['model']===_0x4c5962)['title'];return{'type':'format','content':o(_0x59ff19,'*Change\x20to:*\x20%0',_0x310bf8(0x1,_0x17f2c6))};}var _0xb13c5e,_0xd977b;});}['_getHeadingLevel'](_0x3280d3){const _0x2239a0=_0x3280d3['match'](/^heading(\d+)/);if(_0x2239a0)return _0x2239a0[0x1];const _0xa8692=this['_headingOptions']?.['find'](_0x134731=>_0x134731['model']==_0x3280d3);if(_0xa8692&&_0xa8692['view']){const _0x1d2339=_0xa8692['view'],_0x35fdcd=(_0x1d2339['name']??_0x1d2339)['match'](/^h(\d+)/);if(_0x35fdcd)return _0x35fdcd[0x1];}return null;}}class et extends _0x4bb77d{['afterInit'](){const _0x42bc9f=this['editor'];if(!_0x42bc9f['plugins']['has']('HighlightEditing'))return;const _0x490ef3=_0x42bc9f['plugins']['get']('TrackChangesEditing'),_0x10baf7=_0x42bc9f['locale'];_0x490ef3['enableDefaultAttributesIntegration']('highlight'),_0x490ef3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x10baf7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb8db=this['editor'],_0x539c42=_0x4fb8db['locale'];_0x4fb8db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d12c2=>{if('formatInline'!=_0x4d12c2['type'])return;const {data:_0x1a616b}=_0x4d12c2;if(_0x1a616b&&'highlight'==_0x1a616b['commandName']){const _0x57efd2=_0x539c42['t'],_0xa4267f=_0x1a616b['commandParams'][0x0]['value'];if(_0xa4267f){const _0x192646=_0x4fb8db['config']['get']('highlight.options')['find'](_0x4d39a6=>_0x4d39a6['model']==_0xa4267f),_0x5aa5e6=_0x57efd2(_0x192646['title'])['toLowerCase']();return{'type':'format','content':o(_0x539c42,'*Set\x20highlight:*\x20%0',_0x5aa5e6),'color':{'value':_0x192646['color'],'title':_0x192646['title']}};}return{'type':'format','content':o(_0x539c42,'*Remove\x20highlight*',o(_0x539c42,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x4bb77d{['afterInit'](){const _0x30695c=this['editor'];if(!_0x30695c['plugins']['has']('HorizontalLineEditing'))return;_0x30695c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x53752d=_0x30695c['plugins']['get']('TrackChangesEditing'),_0x5e2dde=_0x30695c['locale'];_0x53752d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x32edff=>o(_0x5e2dde,'ELEMENT_HORIZONTAL_LINE',_0x32edff));}}class ot extends _0x4bb77d{['afterInit'](){const _0x34223b=this['editor'];if(!_0x34223b['plugins']['has']('HtmlEmbed'))return;const _0x1a1b9f=_0x34223b['plugins']['get']('TrackChangesEditing'),_0x3dcbc7=_0x34223b['locale'];_0x1a1b9f['descriptionFactory']['registerElementLabel']('rawHtml',_0x3d98df=>o(_0x3dcbc7,'ELEMENT_HTML_EMBED',_0x3d98df)),_0x1a1b9f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1a1b9f['descriptionFactory']['registerDescriptionCallback'](_0x334666=>{if('attribute'!=_0x334666['type'])return;const {data:_0x5e7f3f}=_0x334666;if(_0x5e7f3f&&'value'==_0x5e7f3f['key']&&_0x334666['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x203780=o(_0x3dcbc7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3dcbc7,'*Change\x20%0\x20content*',_0x203780)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2622a2=this['editor'],_0x344c4f=_0x2622a2['locale'];_0x2622a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed1e0=>{if('formatBlock'!=_0x3ed1e0['type'])return;const {data:_0x35c99a}=_0x3ed1e0;if(_0x35c99a&&'htmlEmbed'==_0x35c99a['commandName']){const _0x1bb1c2=o(_0x344c4f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x344c4f,'*Change\x20%0\x20content*',_0x1bb1c2)};}});}}class rt extends _0x4bb77d{['afterInit'](){const _0x4887a9=this['editor'];if(!_0x4887a9['plugins']['has']('ImageEditing'))return;const _0x55492b=_0x4887a9['plugins']['get']('TrackChangesEditing'),_0x19d722=_0x4887a9['plugins']['get']('ImageUtils'),_0x153b14=_0x4887a9['locale'];_0x55492b['enableCommand']('insertImage'),_0x55492b['descriptionFactory']['registerElementLabel']('imageBlock',_0x1a5d69=>o(_0x153b14,'ELEMENT_IMAGE',_0x1a5d69)),_0x55492b['descriptionFactory']['registerElementLabel']('imageInline',_0xd99456=>o(_0x153b14,'ELEMENT_INLINE_IMAGE',_0xd99456)),_0x55492b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x153b14,'ELEMENT_CAPTION')),_0x4887a9['plugins']['has']('ImageUploadEditing')&&_0x55492b['enableCommand']('uploadImage'),_0x4887a9['plugins']['has']('ImageBlockEditing')&&_0x4887a9['plugins']['has']('ImageInlineEditing')&&(_0x55492b['enableCommand']('imageTypeInline',(_0x32f482,_0x4b9395)=>{const _0x37671c=_0x19d722['getClosestSelectedImageElement'](_0x4887a9['model']['document']['selection']);_0x4887a9['model']['change'](()=>{_0x55492b['markBlockFormat'](_0x37671c,{'commandName':'imageTypeInline','commandParams':[_0x4b9395]},[],'convertBlockImageToInline');});}),_0x55492b['enableCommand']('imageTypeBlock',(_0xdf3ff4,_0x6419c3)=>{_0x4887a9['model']['change'](_0x3a7a0e=>{let _0x38b652=_0x19d722['getClosestSelectedImageElement'](_0x4887a9['model']['document']['selection']),_0x4a093f=_0x3a7a0e['createRangeOn'](_0x38b652);const _0x4fd23b=_0xba9aa4['fromPosition'](_0x4a093f['start'],'toPrevious'),_0x1a824a=_0xba9aa4['fromPosition'](_0x4a093f['end'],'toNext');_0x55492b['forceDefaultExecution'](()=>_0xdf3ff4(_0x6419c3)),_0x38b652=_0x19d722['getClosestSelectedImageElement'](_0x4887a9['model']['document']['selection']),_0x4a093f=_0x3a7a0e['createRangeOn'](_0x38b652);const _0x413c14=_0x3a7a0e['createRange'](_0x4fd23b,_0x1a824a);_0x4fd23b['detach'](),_0x1a824a['detach'](),_0x55492b['markBlockFormat'](_0x38b652,{'commandName':'imageTypeInline','commandParams':[_0x6419c3]},[],'convertInlineImageToBlock'),_0x413c14['start']['isBefore'](_0x4a093f['start'])&&_0x55492b['markInsertion'](_0x3a7a0e['createRange'](_0x413c14['start'],_0x4a093f['start']),'convertInlineImageToBlock'),_0x4a093f['end']['isBefore'](_0x413c14['end'])&&_0x55492b['markInsertion'](_0x3a7a0e['createRange'](_0x4a093f['end'],_0x413c14['end']),'convertInlineImageToBlock');});}),_0x55492b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x55492b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x55492b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x55492b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x55492b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x55492b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4b632d])=>{const _0x497eca=_0x55492b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x23a89a=_0x4b632d['start'],_0x432df4=_0x4b632d['end'];const _0x27803c=_0x4887a9['model']['schema']['getNearestSelectionRange'](_0x23a89a,'backward'),_0x8d30f2=_0x4887a9['model']['schema']['getNearestSelectionRange'](_0x432df4,'forward');_0x27803c['isCollapsed']&&(_0x23a89a=_0x27803c['start']),_0x8d30f2['isCollapsed']&&(_0x432df4=_0x8d30f2['end']),_0x497eca([_0x4887a9['model']['createRange'](_0x23a89a,_0x432df4)]);}),_0x55492b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xe4854),_0x55492b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xe4854)),_0x4887a9['plugins']['has']('ImageCaptionEditing')&&(_0x55492b['enableCommand']('toggleImageCaption',(_0x7f0193,_0x31748d)=>{const _0x474b4b=_0x4887a9['plugins']['get']('ImageCaptionUtils');let _0x1129f9=_0x19d722['getClosestSelectedImageElement'](_0x4887a9['model']['document']['selection']),_0x1e1f64=_0x474b4b['getCaptionFromImageModelElement'](_0x1129f9);_0x4887a9['model']['change'](()=>{if(_0x1e1f64)return void _0x55492b['markDeletion'](_0x4887a9['model']['createRangeOn'](_0x1e1f64));const _0x40b7d7=_0x19d722['isBlockImage'](_0x1129f9);_0x7f0193(_0x31748d),_0x1129f9=_0x19d722['getClosestSelectedImageElement'](_0x4887a9['model']['document']['selection']),_0x1e1f64=_0x474b4b['getCaptionFromImageModelElement'](_0x1129f9),_0x55492b['markInsertion'](_0x4887a9['model']['createRangeOn'](_0x1e1f64),_0x40b7d7?null:'imageCaption');});}),_0x55492b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xe4854));const _0x5bc8d8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b9d4b(_0x3e696d,_0x3b915f){const _0x41341e=_0x5bc8d8['findIndex'](({type:_0x4dda49,subType:_0x1511aa})=>_0x3e696d['type']==_0x4dda49&&_0x3e696d['subType']==_0x1511aa),_0x4577e8=_0x5bc8d8['findIndex'](({type:_0x518498,subType:_0x5540ba})=>_0x3b915f['type']==_0x518498&&_0x3b915f['subType']==_0x5540ba);if(_0x41341e<0x0||_0x4577e8<0x0)return!0x1;const _0x33f781=_0x3e696d['getFirstRange'](),_0x4c90f2=_0x3b915f['getFirstRange']();if((0x0==_0x41341e||0x1==_0x41341e)&&0x2==_0x4577e8&&_0x33f781['isIntersecting'](_0x4c90f2))return!0x0;if(0x2==_0x41341e&&0x3==_0x4577e8){const _0xa53145=_0x55492b['_findSuggestions'](_0x33f781,'insertion')['filter'](({suggestion:_0x48d0c9,meta:_0x1f9ad6})=>_0x1f9ad6['isOwn']&&'convertInlineImageToBlock'==_0x48d0c9['subType']);if(_0xa53145['length']>0x1&&_0x4c90f2['end']['isEqual'](_0x33f781['start']))return!0x0;if(0x1==_0xa53145['length']&&(_0x33f781['start']['isEqual'](_0x4c90f2['end'])||_0x33f781['end']['isEqual'](_0x4c90f2['start'])))return!0x0;}if(0x3==_0x41341e&&0x3==_0x4577e8&&_0x33f781['start']['isBefore'](_0x4c90f2['start'])){const _0x5b0839=_0x33f781['end']['nodeAfter'],_0x33d118=_0x4c90f2['start']['nodeBefore'];return _0x19d722['isBlockImage'](_0x5b0839)&&_0x5b0839===_0x33d118;}return!0x1;}function _0xe4854(_0x9ae875,_0x967767){return _0x5b9d4b(_0x9ae875,_0x967767)?[_0x9ae875,_0x967767]:_0x5b9d4b(_0x967767,_0x9ae875)?[_0x967767,_0x9ae875]:null;}_0x4887a9['plugins']['has']('ImageResize')&&(_0x55492b['enableDefaultAttributesIntegration']('resizeImage'),_0x55492b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x153b14,'FORMAT_IMAGE_SIZE'))),_0x4887a9['plugins']['has']('ImageTextAlternativeEditing')&&_0x55492b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4887a9['plugins']['has']('PictureEditing')&&_0x55492b['descriptionFactory']['registerDescriptionCallback'](_0x449269=>{if('attribute'!=_0x449269['type'])return;const {data:_0x149442}=_0x449269;return _0x149442&&'sources'==_0x149442['key']?{'type':'format','content':''}:void 0x0;}),_0x4887a9['plugins']['has']('ImageSizeAttributes')&&_0x55492b['descriptionFactory']['registerDescriptionCallback'](_0x17060f=>{if('attribute'!=_0x17060f['type'])return;const {data:_0x1d5c3e}=_0x17060f;return!_0x1d5c3e||'width'!=_0x1d5c3e['key']&&'height'!=_0x1d5c3e['key']?void 0x0:{'type':'format','content':''};}),_0x55492b['descriptionFactory']['registerDescriptionCallback'](_0x5d2d28=>{if(!!_0x5bc8d8['find'](({type:_0xcfd356,subType:_0x66afe6})=>_0x5d2d28['type']==_0xcfd356&&_0x5d2d28['subType']==_0x66afe6))return _0x5d2d28['previous']?{}:void 0x0;}),_0x55492b['descriptionFactory']['registerDescriptionCallback'](_0x390760=>{if('insertion'==_0x390760['type']||'deletion'==_0x390760['type']){const _0x5cfd93=_0x390760['getContainedElement']();if(_0x5cfd93&&_0x5cfd93['is']('element','caption'))return{'type':'insertion'==_0x390760['type']?'addObject':'removeObject','element':_0x5cfd93,'quantity':0x1};}}),_0x55492b['descriptionFactory']['registerDescriptionCallback'](_0x26c90b=>'formatBlock'==_0x26c90b['type']&&'convertInlineImageToBlock'==_0x26c90b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x26c90b['type']&&'convertBlockImageToInline'==_0x26c90b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x55492b['descriptionFactory']['registerDescriptionCallback'](_0x2a7ee5=>{if('attribute'!=_0x2a7ee5['type'])return;const {data:_0x47447f}=_0x2a7ee5;if(!_0x47447f||'alt'!=_0x47447f['key'])return;const _0x5642cb=_0x47447f['newValue'];return _0x5642cb?{'type':'format','content':o(_0x153b14,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5642cb+'\x22')}:{'type':'format','content':o(_0x153b14,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51b9eb=this['editor'],_0x2820da=_0x51b9eb['locale'];_0x51b9eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8c6491=>{if('formatBlock'!=_0x8c6491['type']&&'formatInline'!=_0x8c6491['type'])return;const {data:_0x43cf74}=_0x8c6491;if(_0x43cf74){if('imageTextAlternative'==_0x43cf74['commandName']){const _0x67479=_0x43cf74['commandParams'][0x0]['newValue'];return _0x67479?{'type':'format','content':o(_0x2820da,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x67479+'\x22')}:{'type':'format','content':o(_0x2820da,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x43cf74['commandName']){const _0x44d2f8=_0x43cf74['commandParams'][0x0]['width'];return _0x44d2f8?{'type':'format','content':o(_0x2820da,'*Set\x20image\x20width:*\x20%0',_0x44d2f8)}:{'type':'format','content':o(_0x2820da,'*Reset\x20image\x20width*')};}}});}}class at extends _0x4bb77d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2a56fd=this['editor']['locale'],_0x8626b0=this['editor']['plugins']['get']('TrackChangesEditing');_0x8626b0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x8626b0['descriptionFactory']['registerDescriptionCallback'](_0x49cd5c=>{if('attribute'!=_0x49cd5c['type'])return;const {data:_0x46a1f0}=_0x49cd5c;return _0x46a1f0&&'src'==_0x46a1f0['key']?_0x46a1f0['newValue']&&_0x46a1f0['oldValue']?{'type':'format','content':o(_0x2a56fd,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x24edd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x24edd7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x24edd7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x24edd7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x24edd7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5476c3=this['editor'],_0x5b2e92=_0x5476c3['locale'];_0x5476c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8c01=>{if('formatBlock'!=_0x3c8c01['type']&&'formatInline'!=_0x3c8c01['type'])return;const {data:_0x5e3926}=_0x3c8c01;if(!_0x5e3926||'replaceImageSource'!=_0x5e3926['commandName'])return;return{'type':'format','content':o(_0x5b2e92,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x4bb77d{['afterInit'](){const _0x24149e=this['editor'];if(!_0x24149e['plugins']['has']('ImageStyleEditing'))return;const _0x4b0e84=_0x24149e['plugins']['get']('TrackChangesEditing'),_0x42881c=_0x24149e['plugins']['get']('ImageUtils'),_0x2e25d9={};_0x4b0e84['enableCommand']('imageStyle',(_0x464058,_0x17dc06)=>{const _0x3ab85a=_0x24149e['plugins']['get']('Users')['me'],_0x3f019b=_0x24149e['commands']['get']('imageStyle');let _0x229377=_0x42881c['getClosestSelectedImageElement'](_0x24149e['model']['document']['selection']),_0x523743=_0x24149e['model']['createRangeOn'](_0x229377),_0x52af0c=_0x3f019b['value'];if(_0x52af0c==_0x17dc06['value'])return;const _0x54748e={'commandName':'imageStyle','commandParams':[_0x17dc06],'formatGroupId':_0x55a083()};_0x24149e['model']['change'](()=>{if(_0x4b0e84['getSuggestions']()['filter'](_0x5e17d0=>_0x5e17d0['isInContent']&&_0x3ab85a==_0x5e17d0['author']&&('formatBlock'==_0x5e17d0['type']||'formatInline'==_0x5e17d0['type'])&&('imageStylePreApply'==_0x5e17d0['subType']||'imageStylePostApply'==_0x5e17d0['subType'])&&_0x5e17d0['getFirstRange']()['isEqual'](_0x523743))['forEach'](_0x598464=>_0x4b0e84['discardSuggestion'](_0x598464['head'])),_0x229377=_0x42881c['getClosestSelectedImageElement'](_0x24149e['model']['document']['selection']),_0x523743=_0x24149e['model']['createRangeOn'](_0x229377),_0x3f019b['refresh'](),_0x24149e['commands']['get']('imageTypeInline')['refresh'](),_0x24149e['commands']['get']('imageTypeBlock')['refresh'](),_0x52af0c=_0x3f019b['value'],_0x52af0c!=_0x17dc06['value'])return _0x42881c['isInlineImage'](_0x229377)&&_0x3f019b['shouldConvertImageType'](_0x17dc06['value'],_0x229377)?(_0x464058({..._0x17dc06,'setImageSizes':!0x1}),_0x229377=_0x42881c['getClosestSelectedImageElement'](_0x24149e['model']['document']['selection']),void _0x4b0e84['markBlockFormat'](_0x229377,{..._0x54748e,'commandReversedParams':[{'value':_0x52af0c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x42881c['isBlockImage'](_0x229377)?_0x4b0e84['markBlockFormat'](_0x229377,_0x54748e,[],'imageStylePostApply'):_0x4b0e84['markInlineFormat'](_0x523743,_0x54748e,'imageStylePostApply'));});});for(const _0x90d1c of _0x24149e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2e25d9[_0x90d1c['name']]=_0x90d1c['title']['toLowerCase']();_0x4b0e84['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4b0e84['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4b0e84['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4b0e84['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1f20c6])=>{_0x42881c['setImageNaturalSizeAttributes'](_0x1f20c6['getContainedElement']());}),_0x4b0e84['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1ad517,_0xf4ddf3)=>{_0x4b0e84['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1ad517,{'commandName':_0xf4ddf3['commandName'],'commandParams':_0xf4ddf3['commandReversedParams']});}),_0x4b0e84['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4ab90c,_0xea5a65){if(_0x384d52(_0x4ab90c,_0xea5a65))return[_0x4ab90c,_0xea5a65];if(_0x384d52(_0xea5a65,_0x4ab90c))return[_0xea5a65,_0x4ab90c];return null;});const _0x901b25=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x384d52(_0x40eb36,_0x3c2946){const _0x1cdb9c=_0x901b25['findIndex'](({type:_0xe8c599,subType:_0x24a4f3})=>_0x40eb36['type']==_0xe8c599&&_0x40eb36['subType']==_0x24a4f3),_0x3448d6=_0x901b25['findIndex'](({type:_0x52ef58,subType:_0x11916a})=>_0x3c2946['type']==_0x52ef58&&_0x3c2946['subType']==_0x11916a);if(_0x1cdb9c<0x0||_0x3448d6<0x0)return!0x1;const _0x4b7ccf=_0x40eb36['getFirstRange'](),_0x154398=_0x3c2946['getFirstRange']();if((0x0==_0x1cdb9c||0x1==_0x1cdb9c)&&0x2==_0x3448d6&&_0x4b7ccf['isIntersecting'](_0x154398))return!0x0;if(0x2==_0x1cdb9c&&0x3==_0x3448d6){const _0x2065a4=_0x4b0e84['_findSuggestions'](_0x4b7ccf,'insertion')['filter'](({suggestion:_0x503d29,meta:_0x17a9e6})=>_0x17a9e6['isOwn']&&'convertInlineImageToBlock'==_0x503d29['subType']);if(_0x2065a4['length']>0x1&&_0x154398['end']['isEqual'](_0x4b7ccf['start']))return!0x0;if(0x1==_0x2065a4['length']&&(_0x4b7ccf['start']['isEqual'](_0x154398['end'])||_0x4b7ccf['end']['isEqual'](_0x154398['start'])))return!0x0;}if(0x3==_0x1cdb9c&&0x3==_0x3448d6&&_0x4b7ccf['start']['isBefore'](_0x154398['start'])){const _0x36b943=_0x4b7ccf['end']['nodeAfter'],_0x262411=_0x154398['start']['nodeBefore'];return _0x42881c['isBlockImage'](_0x36b943)&&_0x36b943===_0x262411;}return!0x1;}_0x24149e['model']['document']['registerPostFixer'](()=>{let _0x2c04f3=!0x1;const _0x463a38=Array['from'](_0x24149e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31ca9d,data:_0x547ae0}of _0x463a38){const {group:_0x46a658,type:_0x1d9e07,subType:_0x52fc0c,id:_0x5676fd}=_0x4b0e84['_splitMarkerName'](_0x31ca9d);if('suggestion'==_0x46a658&&_0x4b0e84['hasSuggestion'](_0x5676fd)){if('formatBlock'==_0x1d9e07&&('imageStylePreApply'==_0x52fc0c||'imageStylePostApply'==_0x52fc0c)){const _0x23c904=_0x4b0e84['getSuggestion'](_0x5676fd);if(_0x547ae0['newRange']){const _0x3c6cbb=_0x23c904['getFirstRange']()['getContainedElement']();if(_0x42881c['isBlockImage'](_0x3c6cbb))continue;_0x4b0e84['discardSuggestion'](_0x23c904),_0x2c04f3=!0x0;}}if('insertion'==_0x1d9e07&&'imageCaption'==_0x52fc0c&&!_0x547ae0['newRange']){const _0x204dc2=_0x4b0e84['getSuggestion'](_0x5676fd);_0x204dc2['next']&&_0x204dc2['next']['isInContent']&&(_0x4b0e84['discardSuggestion'](_0x204dc2['next']),_0x2c04f3=!0x0);}}}return _0x2c04f3;}),this['_registerLegacyDescription'](_0x2e25d9);}['_registerLegacyDescription'](_0x3b0f63){const _0xfc2030=this['editor'],_0x12100d=_0xfc2030['locale'];_0xfc2030['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2718c1=>{if('formatBlock'!=_0x2718c1['type']&&'formatInline'!=_0x2718c1['type'])return;const {data:_0x30e916}=_0x2718c1;if(!_0x30e916||'imageStyle'!=_0x30e916['commandName'])return;const _0x3bd1ae=_0x30e916['commandParams'][0x0]['value'];return _0x379780('side'===_0x3bd1ae?o(_0x12100d,'FORMAT_SIDE_IMAGE'):_0x3b0f63[_0x3bd1ae]||_0x3bd1ae);function _0x379780(_0xf57ae8){return{'type':'format','content':o(_0x12100d,'*Format:*\x20%0',_0xf57ae8)};}});}}class ut extends _0x4bb77d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x34efa2){super(_0x34efa2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x33411b=this['editor'],_0x44da86=_0x33411b['commands']['get']('importWord'),_0x244b9d=_0x33411b['commands']['get']('trackChanges');_0x44da86&&(_0x44da86['on']('execute',(_0x3ce8db,[,_0x5d8d58])=>{this['_trackChangesValueDuringImport']=_0x244b9d['value'],_0x5d8d58['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x44da86,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x44da86,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x244b9d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x33411b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x573b85,_0x2b72be){const {suggestions:_0x23fe3d}=_0x2b72be,_0x4a154c=this['editor']['commands']['get']('trackChanges'),_0x52710c=_0x4a154c['value'];this['_trackChangesValueDuringImport']!==_0x52710c&&(_0x4a154c['execute'](),this['_trackChangesExecuted']=!0x0),_0x23fe3d&&_0x23fe3d['forEach'](({id:_0x1fb123,type:_0x3dbb34,author:_0x57c9d0,created_at:_0x4bfc09})=>{const _0x1d3ef9={'id':_0x1fb123,'type':_0x3dbb34,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x57c9d0,'createdAt':_0x4bfc09?new Date(_0x4bfc09):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1d3ef9);});}}class ft extends _0x4bb77d{['afterInit'](){const _0x478af0=this['editor'],_0x549448=_0x478af0['plugins']['get']('TrackChangesEditing');if(_0x478af0['plugins']['has']('IndentEditing')&&(_0x549448['enableCommand']('indent'),_0x549448['enableCommand']('outdent')),_0x478af0['plugins']['has']('IndentBlock')){for(const _0x13997d of['indentBlock','outdentBlock'])_0x549448['enableDefaultAttributesIntegration'](_0x13997d);}const _0x1442e0=_0x478af0['locale'];_0x549448['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1442e0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4874f3=this['editor'],_0x5b813e=_0x4874f3['locale'],_0x1d48d2=_0x4874f3['plugins']['get']('TrackChangesEditing');_0x1d48d2['descriptionFactory']['registerDescriptionCallback'](_0x13dc63=>{if('formatBlock'!=_0x13dc63['type'])return;const {data:_0xe81d1e}=_0x13dc63;if(!_0xe81d1e)return;if('indentBlock'!=_0xe81d1e['commandName']&&'outdentBlock'!=_0xe81d1e['commandName'])return;const _0x37d955=_0x13dc63['getItems']()[0x0],_0x171a3f=_0x1d48d2['descriptionFactory']['getItemLabel'](_0x37d955);return'indentBlock'==_0xe81d1e['commandName']?{'type':'format','content':o(_0x5b813e,'*Indent:*\x20%0',_0x171a3f)}:'outdentBlock'==_0xe81d1e['commandName']?{'type':'format','content':o(_0x5b813e,'*Outdent:*\x20%0',_0x171a3f)}:void 0x0;});}}class ht extends _0x4bb77d{static get['requires'](){return[_0x2dcf00];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x4bb77d{['afterInit'](){const _0xc39f1e=this['editor'];if(!_0xc39f1e['plugins']['has']('LinkEditing'))return;const _0x13cb7f=_0xc39f1e['plugins']['get']('TrackChangesEditing'),_0x478e4e=_0xc39f1e['commands']['get']('link');_0x13cb7f['enableDefaultAttributesIntegration']('link'),_0x13cb7f['enableDefaultAttributesIntegration']('unlink');for(const _0x245c5c of _0x478e4e['manualDecorators'])_0x13cb7f['descriptionFactory']['registerAttributeLabel'](_0x245c5c['id'],'link\x20('+_0x245c5c['label']['toLowerCase']()+')');_0x13cb7f['descriptionFactory']['registerDescriptionCallback'](_0x55fe73=>{if('attribute'!=_0x55fe73['type'])return;const {data:_0x50eb14}=_0x55fe73;if(!_0x50eb14||'linkHref'!=_0x50eb14['key'])return;const _0x2e826d=_0x50eb14['newValue'],_0x4229f8=_0xc39f1e['locale'];return{'type':'format','content':null==_0x2e826d?o(_0x4229f8,'*Remove\x20link*'):o(_0x4229f8,'*Set\x20link:*\x20%0','\x22'+_0x2e826d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x409f4d=this['editor'],_0x1f8257=_0x409f4d['locale'];_0x409f4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f97d2=>{if('formatInline'!=_0x1f97d2['type'])return;const {data:_0x1f6950}=_0x1f97d2;if(_0x1f6950){if('link'==_0x1f6950['commandName']){const _0x194931=_0x1f6950['commandParams'][0x0];return{'type':'format','content':o(_0x1f8257,'*Set\x20link:*\x20%0','\x22'+_0x194931+'\x22')};}return'unlink'==_0x1f6950['commandName']?{'type':'format','content':o(_0x1f8257,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x4bb77d{['afterInit'](){const _0xbf19a=this['editor'],_0xada6f1=_0xbf19a['locale'];if(!_0xbf19a['plugins']['has']('LegacyListEditing'))return;const _0x18e7c3=_0xbf19a['plugins']['get']('TrackChangesEditing'),_0x559f51=_0xbf19a['plugins']['has']('LegacyTodoListEditing');function _0xae3f74(_0x47f13f){return()=>{const _0x9052ca=_0xbf19a['model']['document']['selection'],_0x2ecbc4=_0xbf19a['commands']['get'](_0x47f13f);if(_0x2ecbc4['value'])return void _0xbf19a['execute']('paragraph',{});const _0x30aa9f=_0x47f13f['slice'](0x0,-0x4),_0x4cf7ae=function(_0x4b68a6,_0x50906f,_0x233491){let _0xb795c7=Array['from'](_0x4b68a6)['filter'](_0x3c2440=>function(_0x1bf7ac,_0x2ef4eb){return _0x2ef4eb['checkChild'](_0x1bf7ac['parent'],'listItem')&&!_0x2ef4eb['isObject'](_0x1bf7ac);}(_0x3c2440,_0x233491));_0xb795c7=_0xb795c7['filter'](_0x21008f=>!_0x21008f['is']('element','listItem')||_0x21008f['getAttribute']('listType')!=_0x50906f);const _0x3d93be=new Set();for(const _0x42c6f0 of _0xb795c7)_0x42c6f0['is']('element','listItem')?_0x3d93be['add'](Le(_0x42c6f0)):_0x3d93be['add'](_0x42c6f0);return Array['from'](_0x3d93be);}(_0x9052ca['getSelectedBlocks'](),_0x30aa9f,_0xbf19a['model']['schema']);_0xbf19a['model']['change'](()=>{for(const _0x1975fb of _0x4cf7ae)_0x18e7c3['markBlockFormat'](_0x1975fb,{'commandName':_0x47f13f,'commandParams':[{'forceValue':!_0x2ecbc4['value']}],'formatGroupId':'blockName'},Ee(_0x1975fb));});};}function _0x1dca34(_0x792143){return()=>{const _0x2c15ab=function(_0x1b5ed4){let _0x38162b=Array['from'](_0x1b5ed4);const _0x23cfc8=_0x38162b['findIndex'](_0x3c11b4=>'listItem'!=_0x3c11b4['name']);return _0x23cfc8>-0x1&&(_0x38162b=_0x38162b['slice'](0x0,_0x23cfc8)),_0x38162b;}(_0xbf19a['model']['document']['selection']['getSelectedBlocks']()),_0x3ec61f=_0xbf19a['model']['createRange'](_0xbf19a['model']['createPositionAt'](_0x2c15ab[0x0],'before'),_0xbf19a['model']['createPositionAt'](_0x2c15ab[_0x2c15ab['length']-0x1],'end'));_0xbf19a['model']['change'](()=>{_0x18e7c3['markBlockFormat'](_0x3ec61f,{'commandName':_0x792143,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5ac1cf){const _0x49ea17=new Set();for(const _0x319b97 of _0x5ac1cf){let _0x47afb9=_0x319b97['nextSibling'];for(;_0x47afb9&&_0x47afb9['getAttribute']('listIndent')>_0x319b97['getAttribute']('listIndent');)_0x49ea17['add'](_0x47afb9),_0x47afb9=_0x47afb9['nextSibling'];}return Array['from'](_0x49ea17);}(_0x2c15ab));});};}_0x18e7c3['enableCommand']('numberedList',_0xae3f74('numberedList')),_0x18e7c3['enableCommand']('bulletedList',_0xae3f74('bulletedList')),_0x559f51&&_0x18e7c3['enableCommand']('todoList',_0xae3f74('todoList')),_0x18e7c3['enableCommand']('indentList',_0x1dca34('indentList')),_0x18e7c3['enableCommand']('outdentList',_0x1dca34('outdentList')),_0x559f51&&_0x18e7c3['enableCommand']('checkTodoList',()=>{const _0x5d75ee=_0xbf19a['commands']['get']('checkTodoList'),_0x376874=Array['from'](_0x5d75ee['_selectedElements']);_0x376874['filter'](_0x5e143d=>_0x5e143d['getAttribute']('todoListChecked')!=_0x5d75ee['value']),_0xbf19a['model']['change'](()=>{for(const _0x4f48cd of _0x376874)_0x18e7c3['markBlockFormat'](_0x4f48cd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d75ee['value']}]});});}),_0x18e7c3['descriptionFactory']['registerElementLabel']('listItem',_0x4fb626=>o(_0xada6f1,'ELEMENT_LIST_ITEM',_0x4fb626)),_0x18e7c3['descriptionFactory']['registerDescriptionCallback'](_0xa37677=>{if('formatBlock'!=_0xa37677['type']&&'formatInline'!=_0xa37677['type'])return;const {data:_0x5b4d1b}=_0xa37677;if(_0x5b4d1b){if('numberedList'==_0x5b4d1b['commandName']||'bulletedList'==_0x5b4d1b['commandName']||'todoList'==_0x5b4d1b['commandName'])switch(_0x5b4d1b['commandName']['replace']('List','')){case'bulleted':return _0x4a2c73(o(_0xada6f1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4a2c73(o(_0xada6f1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4a2c73(o(_0xada6f1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5b4d1b['commandName'])return{'type':'format','content':o(_0xada6f1,'*Indent:*\x20%0',o(_0xada6f1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5b4d1b['commandName'])return{'type':'format','content':o(_0xada6f1,'*Outdent:*\x20%0',o(_0xada6f1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5b4d1b['commandName'])return _0x5b4d1b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xada6f1,'*Check\x20item*')}:{'type':'format','content':o(_0xada6f1,'*Uncheck\x20item*')};}function _0x4a2c73(_0xe1ba2b){return{'type':'format','content':o(_0xada6f1,'*Change\x20to:*\x20%0',_0xe1ba2b)};}});}}function Le(_0x2579cf){const _0x103880=_0x2579cf['getAttribute']('listIndent');if(0x0==_0x103880)return _0x2579cf;let _0x155a1f=_0x2579cf;for(;_0x2579cf['previousSibling']&&_0x2579cf['previousSibling']['is']('element','listItem');){const _0x1266c6=_0x2579cf['previousSibling']['getAttribute']('listIndent');if(_0x1266c6==_0x103880)_0x155a1f=_0x2579cf['previousSibling'];else{if(_0x1266c6<_0x103880)break;}_0x2579cf=_0x2579cf['previousSibling'];}return _0x155a1f;}function Ee(_0x5bc0e9){const _0xbccca2=[];if(_0x5bc0e9['is']('element','listItem')&&_0x5bc0e9['getAttribute']('listIndent')>0x0){let _0x19a606=_0x5bc0e9['nextSibling'];for(;_0x19a606&&'listItem'==_0x19a606['name']&&_0x19a606['getAttribute']('listIndent')==_0x5bc0e9['getAttribute']('listIndent');)_0xbccca2['push'](_0x19a606),_0x19a606=_0x19a606['nextSibling'];}return _0xbccca2;}class mt extends _0x4bb77d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x34262e=this['editor']['config']['get']('list.properties'),_0x3a3f03=this['editor']['plugins']['get']('TrackChangesEditing');_0x34262e['styles']&&_0x3a3f03['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x34262e['reversed']&&_0x3a3f03['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x34262e['startIndex']&&_0x3a3f03['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a3f03['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x581b39,_0x5f48a3={}){const _0x4c624b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3548a2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4c624b['markMultiRangeBlockFormat'](_0x3548a2,{'commandName':'listStyle','commandParams':[{'type':_0x5f48a3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4cd2e3,_0x5421a0={}){const _0x3d4b4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x185d0b=this['_getSuggestionBlocks'](_0x5c1981=>_0x5c1981['is']('element','listItem')&&'numbered'===_0x5c1981['getAttribute']('listType'));if(_0x185d0b['length']<0x1)return;const _0x15b9e7=_0x185d0b['map'](_0x556312=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x556312,'before'),this['editor']['model']['createPositionAt'](_0x556312,0x0)));this['editor']['model']['change'](()=>{_0x3d4b4a['markMultiRangeBlockFormat'](_0x15b9e7,{'commandName':'listReversed','commandParams':[{'reversed':_0x5421a0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4ac664,_0x4d55f6={}){const _0x46cb8c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29b090=this['_getSuggestionBlocks'](_0x17830b=>_0x17830b['is']('element','listItem')&&'numbered'===_0x17830b['getAttribute']('listType'));if(_0x29b090['length']<0x1)return;const _0x1b6145=_0x29b090['map'](_0x40d713=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x40d713,'before'),this['editor']['model']['createPositionAt'](_0x40d713,0x0)));this['editor']['model']['change'](()=>{_0x46cb8c['markMultiRangeBlockFormat'](_0x1b6145,{'commandName':'listStart','commandParams':[{'startIndex':_0x4d55f6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x39b416){if('formatBlock'!=_0x39b416['type']&&'formatInline'!=_0x39b416['type'])return;const _0x2bee2f=this['editor']['locale'],{data:_0x1af993}=_0x39b416;if(!_0x1af993)return;let _0xcaddcd,_0xafea73;switch(_0x1af993['commandName']){case'listStyle':_0xcaddcd='*Change\x20to:*\x20%0',_0xafea73={'type':'format','content':o(_0x2bee2f,_0xcaddcd,o(_0x2bee2f,this['_getTranslationKeyForListStyle'](_0x1af993['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcaddcd=_0x1af993['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xafea73={'type':'format','content':o(_0x2bee2f,_0xcaddcd)};break;case'listStart':_0xcaddcd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xafea73={'type':'format','content':o(_0x2bee2f,_0xcaddcd,_0x1af993['commandParams'][0x0]['startIndex'])};}return _0xafea73;}['_getSuggestionBlocksForListStyle'](){const _0x316be0=this['editor']['plugins']['get']('LegacyListUtils');let _0xe2df2a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xe2df2a[0x0]?.['is']('element','listItem')&&_0xe2df2a['unshift'](..._0x316be0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xe2df2a[_0xe2df2a['length']-0x1]?.['is']('element','listItem')&&_0xe2df2a['push'](..._0x316be0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xe2df2a=[...new Set(_0xe2df2a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xe2df2a=_0xe2df2a['filter'](_0x19f580=>_0x19f580['is']('element','listItem'))),_0xe2df2a;}['_getSuggestionBlocks'](_0x48ff93){const _0x21bb48=this['editor']['plugins']['get']('LegacyListUtils');let _0xb6cbef=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x48ff93)['map'](_0x6cf416=>{const _0x191de7=this['editor']['model']['createPositionAt'](_0x6cf416,0x0);return[..._0x21bb48['getSiblingNodes'](_0x191de7,'backward'),..._0x21bb48['getSiblingNodes'](_0x191de7,'forward')];})['flat']();return _0xb6cbef=[...new Set(_0xb6cbef)],_0xb6cbef;}['_getTranslationKeyForListStyle'](_0x529f1d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x529f1d)||'default')['toUpperCase']()+'_LIST_'+_0x529f1d['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4bb77d{['afterInit'](){const _0xffc7c9=this['editor'];if(!_0xffc7c9['plugins']['has']('MediaEmbedEditing'))return;const _0xf9bc15=_0xffc7c9['plugins']['get']('TrackChangesEditing'),_0x7809c2=_0xffc7c9['locale'];_0xf9bc15['enableCommand']('mediaEmbed'),_0xf9bc15['descriptionFactory']['registerElementLabel']('media',_0x43aeb6=>o(_0x7809c2,'ELEMENT_MEDIA',_0x43aeb6));}}class pt extends _0x4bb77d{['afterInit'](){const _0x5d9fba=this['editor'];_0x5d9fba['plugins']['has']('MentionEditing')&&_0x5d9fba['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x4bb77d{['afterInit'](){const _0x1ee3e4=this['editor'];if(!_0x1ee3e4['plugins']['has']('MergeFieldsEditing'))return;const _0x4b22b7=_0x1ee3e4['plugins']['get']('TrackChangesEditing'),_0x2cad4e=_0x1ee3e4['locale'];_0x4b22b7['enableCommand']('insertMergeField'),_0x4b22b7['enableCommand']('insertMergeFieldBlock'),_0x4b22b7['enableCommand']('insertMergeFieldImage'),_0x4b22b7['descriptionFactory']['registerElementLabel']('mergeField',_0x4e1bfa=>o(_0x2cad4e,'ELEMENT_MERGE_FIELD',_0x4e1bfa)),_0x4b22b7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x345f3d=>o(_0x2cad4e,'ELEMENT_MERGE_FIELD',_0x345f3d)),_0x4b22b7['descriptionFactory']['registerDescriptionCallback'](_0x2d8568=>{if('insertion'!=_0x2d8568['type']&&'deletion'!=_0x2d8568['type'])return;const _0x27fe0a=_0x2d8568['getContainedElement']();if(null==_0x27fe0a)return;const _0x505d4d=_0x1ee3e4['plugins']['get']('MergeFieldsEditing');let _0x20284a;switch(_0x505d4d['getMergeFieldType'](_0x27fe0a)){case null:return;case'image':{const _0x271dce=_0x505d4d['unwrapAffixes'](_0x27fe0a['getAttribute']('src'));_0x20284a=_0x505d4d['getLabel'](_0x271dce)||_0x271dce;break;}default:{const _0x18eeec=_0x27fe0a['getAttribute']('id');_0x20284a=_0x505d4d['getLabel'](_0x18eeec)||_0x18eeec;break;}}return'insertion'==_0x2d8568['type']?{'type':'insertion','content':o(_0x2cad4e,'*Insert:*\x20%0','\x22'+_0x20284a+'\x22\x20'+o(_0x2cad4e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2cad4e,'*Remove:*\x20%0','\x22'+_0x20284a+'\x22\x20'+o(_0x2cad4e,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x4bb77d{['afterInit'](){const _0x2ca1b6=this['editor'],_0x50ac00=_0x2ca1b6['plugins']['get']('TrackChangesEditing');_0x2ca1b6['plugins']['has']('MultiLevelList')&&(_0x50ac00['enableDefaultAttributesIntegration']('multiLevelList'),_0x50ac00['descriptionFactory']['registerDescriptionCallback'](_0x533f8a=>this['handleDescriptions'](_0x533f8a)));}['handleDescriptions'](_0x4f5702){const _0x27763b=this['editor']['locale'],{data:_0x383002}=_0x4f5702,_0x160be4={'type':'format','content':''};if(_0x383002&&'listMarkerStyle'==_0x383002['key']){if(!_0x383002['oldValue'])return{'type':'format','content':o(_0x27763b,'*Set\x20format:*\x20%0',o(_0x27763b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x383002['newValue']+')'};if(!_0x383002['newValue']){let _0x28f257=_0x4f5702['head'];for(;_0x28f257;){if(_0x28f257['data']&&'listType'==_0x28f257['data']['key']&&_0x28f257['data']['newValue'])return _0x160be4;_0x28f257=_0x28f257['next'];}return{'type':'format','content':o(_0x27763b,'*Remove\x20format:*\x20%0',o(_0x27763b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x383002['oldValue']+')'};}}}}class bt extends _0x4bb77d{['afterInit'](){const _0x40a5f0=this['editor'];if(!_0x40a5f0['plugins']['has']('PageBreakEditing'))return;_0x40a5f0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x388823=_0x40a5f0['plugins']['get']('TrackChangesEditing'),_0x46215d=_0x40a5f0['locale'];_0x388823['descriptionFactory']['registerElementLabel']('pageBreak',_0x1228d1=>o(_0x46215d,'ELEMENT_PAGE_BREAK',_0x1228d1));}}class yt extends _0x4bb77d{['afterInit'](){const _0x3837fe=this['editor'];if(!_0x3837fe['plugins']['has']('Paragraph'))return;const _0x2aa30c=_0x3837fe['locale'],_0x361f7c=_0x3837fe['plugins']['get']('TrackChangesEditing');_0x361f7c['descriptionFactory']['registerElementLabel']('paragraph',_0x42fd80=>o(_0x2aa30c,'ELEMENT_PARAGRAPH',_0x42fd80)),_0x361f7c['enableDefaultAttributesIntegration']('paragraph'),_0x361f7c['enableCommand']('insertParagraph');const _0x5edac9=_0x361f7c['descriptionFactory'];_0x5edac9['registerDescriptionCallback'](_0x2742e4=>{if('insertion'!==_0x2742e4['type'])return;const {start:_0x142e79,end:_0x40a59d}=_0x2742e4['getFirstRange']();if(!_0x142e79['isTouching'](_0x40a59d)||!_0x142e79['nodeAfter'])return;const _0x4a525a=_0x3837fe['model']['schema'],_0x421280=_0x142e79['nodeAfter'];return _0x4a525a['isBlock'](_0x421280)&&!_0x4a525a['isLimit'](_0x421280)&&_0x4a525a['checkChild'](_0x421280,'$text')?{'type':'insertion','content':o(_0x2aa30c,'*Insert:*\x20%0',_0x5edac9['getItemLabel'](_0x421280,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11a5fe=this['editor'],_0x4bbbf5=_0x11a5fe['locale'];_0x11a5fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9f53=>{if('formatBlock'!=_0x3c9f53['type'])return;const {data:_0x5d9816}=_0x3c9f53;return _0x5d9816&&'paragraph'==_0x5d9816['commandName']?{'type':'format','content':o(_0x4bbbf5,'*Change\x20to:*\x20%0',o(_0x4bbbf5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x4bb77d{['afterInit'](){const _0x832480=this['editor'];_0x832480['commands']['get']('replaceSource')&&_0x832480['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x4bb77d{['afterInit'](){const _0x3c99c6=this['editor'];if(!_0x3c99c6['plugins']['has']('RemoveFormatEditing'))return;_0x3c99c6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c0abe=this['editor'];_0x2c0abe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x454cae=>{if('formatBlock'!=_0x454cae['type']&&'formatInline'!=_0x454cae['type'])return;const {data:_0x492666}=_0x454cae;return _0x492666&&'removeFormat'==_0x492666['commandName']?{'type':'format','content':o(_0x2c0abe['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x4bb77d{['afterInit'](){const _0x2b7c64=this['editor'];if(!_0x2b7c64['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x241d3c=_0x2b7c64['plugins']['get']('TrackChangesEditing');_0x241d3c['enableCommand']('goToPreviousRestrictedEditingException'),_0x241d3c['enableCommand']('goToNextRestrictedEditingException');const _0x3d634e=_0x2b7c64['plugins']['get']('RestrictedEditingModeEditing');_0x3d634e['enableCommand']('trackChanges'),_0x3d634e['enableCommand']('acceptSuggestion'),_0x3d634e['enableCommand']('discardSuggestion'),_0x3d634e['enableCommand']('acceptAllSuggestions'),_0x3d634e['enableCommand']('discardAllSuggestions'),_0x3d634e['enableCommand']('acceptSelectedSuggestions'),_0x3d634e['enableCommand']('discardSelectedSuggestions');}}class At extends _0x4bb77d{['afterInit'](){const _0x4c902f=this['editor'];if(!_0x4c902f['plugins']['has']('ShiftEnter'))return;const _0x5a97e3=_0x4c902f['plugins']['get']('TrackChangesEditing');_0x5a97e3['enableCommand']('shiftEnter'),_0x5a97e3['descriptionFactory']['registerElementLabel']('softBreak',_0x3ec42c=>o(_0x4c902f['locale'],'ELEMENT_LINE_BREAK',_0x3ec42c));}}function rn(_0x1a0f73,_0x52770e,_0x11be18){const _0x41f242=[];for(const _0x416f02 of _0x52770e['getItems']())_0x416f02['hasAttribute'](_0x1a0f73)&&_0x41f242['push'](_0x11be18['createRangeOn'](_0x416f02));return _0x41f242;}class _t extends _0x4bb77d{['afterInit'](){const _0xec7fe5=this['editor'],_0x416c4b=_0xec7fe5['plugins']['get']('TrackChangesEditing');_0xec7fe5['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x416c4b['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x289fac=this['editor'],_0x46dbf3=_0x289fac['model'],_0x607a43=_0x289fac['locale'],_0x23a16e=_0x289fac['plugins']['get']('TrackChangesEditing'),_0x4d376d='restrictedEditingException',_0x38bc32=_0x289fac['commands']['get'](_0x4d376d);_0x23a16e['enableCommand'](_0x4d376d,(_0xf2e077,_0x58f25c={})=>{const _0x39d861=_0x46dbf3['document']['selection'];if(_0x39d861['isCollapsed'])return void _0xf2e077(_0x58f25c);const _0x5f040=void 0x0!==_0x58f25c['forceValue']?_0x58f25c['forceValue']:!_0x38bc32['value'];_0x46dbf3['change'](()=>{const _0x14e3b1=Array['from'](_0x39d861['getRanges']());for(const _0x44bd82 of _0x14e3b1){const _0x212b55=_0x5f040?[_0x44bd82]:rn(_0x4d376d,_0x44bd82,_0x46dbf3);for(const _0x575888 of _0x212b55)_0x23a16e['markInlineFormat'](_0x575888,{'commandName':_0x4d376d,'commandParams':[{'forceValue':_0x5f040}]});}});}),_0x23a16e['descriptionFactory']['registerDescriptionCallback'](_0x332dbe=>{if('formatBlock'!=_0x332dbe['type']&&'formatInline'!=_0x332dbe['type'])return;const {data:_0x1edeb7}=_0x332dbe;return _0x1edeb7&&_0x1edeb7['commandName']==_0x4d376d?_0x1edeb7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x607a43,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x607a43,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x3f8279=this['editor'],_0x51e4b5=_0x3f8279['locale'],_0x23b0d0=_0x3f8279['plugins']['get']('TrackChangesEditing'),_0x2cc56b='restrictedEditingExceptionBlock',_0x3efa46=this['editor']['commands']['get'](_0x2cc56b);_0x23b0d0['enableCommand'](_0x2cc56b,(_0x91efa1,_0x34ad95={})=>{const _0x336bb3=this['editor']['model']['document']['selection'],_0xcff46d=_0x34ad95&&void 0x0!==_0x34ad95['forceValue']?_0x34ad95['forceValue']:!_0x3efa46['value'];let _0x265ef6=[];if(_0xcff46d){const _0x5e0ba0=Array['from'](_0x336bb3['getSelectedBlocks']())['filter'](_0x3a3ae5=>function(_0x6abd42){return!!_0x6abd42['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3a3ae5)||function(_0x1d45ef,_0x4e7a07){const _0xc562d3=_0x4e7a07['createContext'](_0x1d45ef['parent']);if(!_0x4e7a07['checkChild'](_0xc562d3,'restrictedEditingException'))return!0x1;if(!_0x4e7a07['checkChild'](_0xc562d3['push']('restrictedEditingException'),_0x1d45ef))return!0x1;return!0x0;}(_0x3a3ae5,this['editor']['model']['schema']));_0x265ef6=to(_0x5e0ba0,_0x3f8279['model']);}else{const _0x9bcf06=Array['from'](_0x336bb3['getSelectedBlocks']())['map'](_0x4ee53c=>function(_0x545cf3){let _0x18d15d=_0x545cf3;for(;_0x18d15d['parent'];){if('restrictedEditingException'==_0x18d15d['parent']['name'])return _0x18d15d;_0x18d15d=_0x18d15d['parent'];}return null;}(_0x4ee53c))['filter'](_0x45f786=>!!_0x45f786);_0x265ef6=to(_0x9bcf06,_0x3f8279['model']);}_0x3f8279['model']['change'](()=>{for(const _0x389747 of _0x265ef6)_0x23b0d0['markBlockFormat'](_0x389747,{'commandName':_0x2cc56b,'commandParams':[{'forceValue':_0xcff46d}]});});}),_0x23b0d0['descriptionFactory']['registerDescriptionCallback'](_0x536894=>{const {data:_0x200121}=_0x536894;if(_0x200121&&_0x200121['commandName']==_0x2cc56b)return _0x200121['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51e4b5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x51e4b5,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x4bb77d{['afterInit'](){const _0x330a9d=this['editor'];if(!_0x330a9d['plugins']['has']('Style')||!_0x330a9d['plugins']['has']('DataSchema'))return;const _0x412b42=_0x330a9d['plugins']['get']('TrackChangesEditing'),_0x37a651=_0x330a9d['locale'],_0x3ec53b=_0x330a9d['config']['get']('style')||{},_0x315b68=_0x330a9d['plugins']['get']('GeneralHtmlSupport'),_0x5bfa70=_0x330a9d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x330a9d['plugins']['get']('DataSchema'),_0x3ec53b['definitions']);_0x412b42['enableDefaultAttributesIntegration']('style');const _0x164ee3=new Set();for(const _0x5e2e4c of _0x5bfa70['block']){const _0x1e9401=_0x315b68['getGhsAttributeNameForElement'](_0x5e2e4c['element']);_0x164ee3['add'](_0x1e9401);}const _0x2c8664=new Set();for(const _0x4d19e4 of _0x5bfa70['inline']){const _0x266adb=_0x315b68['getGhsAttributeNameForElement'](_0x4d19e4['element']);_0x2c8664['add'](_0x266adb);for(const _0x3065cd of _0x4d19e4['ghsAttributes'])_0x2c8664['add'](_0x3065cd);}for(const _0x378832 of _0x164ee3)_0x412b42['descriptionFactory']['registerAttributeLabel'](_0x378832,o(_0x37a651,'FORMAT_STYLE'));for(const _0x28baa6 of _0x2c8664)_0x412b42['descriptionFactory']['registerAttributeLabel'](_0x28baa6,o(_0x37a651,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f1649=this['editor'],_0x4c2e28=_0x8f1649['locale'];_0x8f1649['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x147499=>{if('formatBlock'!=_0x147499['type']&&'formatInline'!=_0x147499['type'])return;const {data:_0x55653b}=_0x147499;return _0x55653b&&'style'===_0x55653b['commandName']?_0x55653b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c2e28,'*Set\x20format:*\x20%0',_0x55653b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4c2e28,'*Remove\x20format:*\x20%0',_0x55653b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x4bb77d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x15d3a0){super(_0x15d3a0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1359c2=this['editor'],_0x1aa02d=_0x1359c2['model']['document']['selection'];if(!_0x1359c2['plugins']['has']('TableEditing'))return;const _0x178da8=_0x1359c2['locale'],_0x580521=_0x1359c2['plugins']['get']('TrackChangesEditing'),_0x4e07bb=_0x1359c2['plugins']['get']('TableUtils');_0x580521['descriptionFactory']['registerElementLabel']('table',_0x4ab051=>o(_0x178da8,'ELEMENT_TABLE',_0x4ab051)),this['_setupColumnsRowsFixing'](),_0x580521['enableCommand']('insertTable'),_0x580521['enableCommand']('selectTableRow'),_0x580521['enableCommand']('selectTableColumn');for(const _0x242425 of['insertTableRowAbove','insertTableRowBelow']){const _0x1addb0=_0x1359c2['commands']['get'](_0x242425);_0x580521['enableCommand'](_0x242425,_0x4b043a=>{_0x1359c2['model']['change'](_0x1f76b4=>{_0x4b043a();const _0x986f3e='above'===_0x1addb0['order'],_0x38306b=_0x4e07bb['getSelectionAffectedTableCells'](_0x1aa02d),_0x34edc0=_0x4e07bb['getRowIndexes'](_0x38306b),_0x29f7b2=_0x986f3e?_0x34edc0['first']-0x1:_0x34edc0['last']+0x1,_0x3a0807=_0x38306b[0x0]['findAncestor']('table'),_0x317380=_0x4e07bb['createTableWalker'](_0x3a0807,{'startRow':_0x29f7b2,'endRow':_0x29f7b2}),_0x25bc57=Array['from'](_0x317380)['map'](_0x38852c=>_0x1f76b4['createRangeOn'](_0x38852c['cell']));_0x580521['markMultiRangeInsertion'](_0x25bc57,'tableRow');});});}for(const _0x51da0d of['insertTableColumnLeft','insertTableColumnRight']){const _0x39c0f8=_0x1359c2['commands']['get'](_0x51da0d);_0x580521['enableCommand'](_0x51da0d,_0x5a6dbe=>{_0x1359c2['model']['change'](_0x3b6cc5=>{_0x5a6dbe();const _0x513ca0='left'===_0x39c0f8['order'],_0x303728=_0x4e07bb['getSelectionAffectedTableCells'](_0x1aa02d),_0x49629f=_0x4e07bb['getColumnIndexes'](_0x303728),_0x216895=_0x513ca0?_0x49629f['first']-0x1:_0x49629f['last']+0x1,_0x17853e=_0x303728[0x0]['findAncestor']('table'),_0x488fd7=_0x4e07bb['createTableWalker'](_0x17853e,{'startRow':0x0,'column':_0x216895,'includeAllSlots':!0x1}),_0x37f90d=Array['from'](_0x488fd7)['map'](_0x1e9378=>_0x3b6cc5['createRangeOn'](_0x1e9378['cell']));_0x580521['markMultiRangeInsertion'](_0x37f90d,'tableColumn');});});}for(const _0x770973 of['removeTableRow','removeTableColumn']){const _0x3f6f28=_0x770973['substr'](0xb),_0x350013=_0x3f6f28['toLowerCase'](),_0x163e50=_0x350013['substr'](0x0,0x3)+'span',_0x4d82d0='table'+_0x3f6f28,_0x2d6953='min'+_0x3f6f28,_0x5cb22a='max'+_0x3f6f28;_0x580521['enableCommand'](_0x770973,()=>{_0x1359c2['model']['change'](_0x16904c=>{const _0x43aaf3=_0x4e07bb['getSelectionAffectedTableCells'](_0x1aa02d),_0x4adf49=_0x43aaf3[0x0]['findAncestor']('table');let _0x102a7f;if('removeTableRow'==_0x770973){const _0x3bba0f=_0x4e07bb['getRowIndexes'](_0x43aaf3);_0x102a7f={'startRow':_0x3bba0f['first'],'endRow':_0x3bba0f['last'],'includeAllSlots':!0x0};}else{const _0x9cdd91=_0x4e07bb['getColumnIndexes'](_0x43aaf3);_0x102a7f={'startColumn':_0x9cdd91['first'],'endColumn':_0x9cdd91['last'],'includeAllSlots':!0x0};}const _0x450f4e=_0x4e07bb['createTableWalker'](_0x4adf49,_0x102a7f),_0x3f6257=Array['from'](_0x450f4e)['map'](({cell:_0x6ea478})=>_0x6ea478),_0xe0fa77=_e(_0x3f6257['filter'](_0x25c726=>_0x25c726['hasAttribute'](_0x163e50))),_0xe90198=_e(_0x3f6257['filter'](_0x1d1b3e=>!_0x1d1b3e['hasAttribute'](_0x163e50)))['map'](_0x150e97=>_0x16904c['createRangeOn'](_0x150e97)),_0x2cea54=_0x580521['markMultiRangeDeletion'](_0xe90198,_0x4d82d0);if(_0x2cea54&&('tableRow'==_0x2cea54['subType']||'tableColumn'==_0x2cea54['subType'])){const _0x5abb23=this['_getSuggestionCoords'](_0x2cea54);for(const _0x5095c4 of _0xe0fa77){const _0x4361e5=_0x16904c['createRangeOn'](_0x5095c4),_0x1a344a=_0x4e07bb['getCellLocation'](_0x5095c4),_0x33c067=_0x5095c4['getAttribute'](_0x163e50)-0x1,_0x4fb153=_0x5abb23[_0x2d6953],_0x98f389=_0x5abb23[_0x5cb22a];_0x4fb153<=_0x1a344a[_0x350013]&&_0x1a344a[_0x350013]+_0x33c067<=_0x98f389&&_0x2cea54['addRange'](_0x4361e5);}}});});}function _0x4dd987(_0x3cb2b8){const _0x8f9aa1=Array['from'](_0x1aa02d['getRanges']())['map'](_0x4a5bac=>_0x13a0c3['fromRange'](_0x4a5bac));_0x1359c2['model']['change'](_0x4c3879=>{const _0x1d9f61=_0x4c3879['batch'];_0x3cb2b8=_0x3cb2b8['filter'](_0x57799e=>'$graveyard'!=_0x57799e['root']['rootName']),_0x4c3879['setSelection'](_0x3cb2b8),_0x1359c2['commands']['get']('removeTableRow')['refresh'](),_0x1359c2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1359c2['model']['enqueueChange'](()=>{_0x1359c2['model']['enqueueChange'](_0x1d9f61,_0x889fec=>{const _0x6b33cf=_0x8f9aa1['filter'](_0x2709ac=>'$graveyard'!=_0x2709ac['root']['rootName']);_0x6b33cf['length']>0x0&&_0x889fec['setSelection'](_0x6b33cf);for(const _0x1f7946 of _0x8f9aa1)_0x1f7946['detach']();});});});}function _0x395b94(_0x334551){_0x1359c2['model']['change'](_0x10a553=>{const _0x27da84=Array['from'](_0x1aa02d['getRanges']())['map'](_0x1763e3=>_0x13a0c3['fromRange'](_0x1763e3)),_0x376e4a=[];for(const _0x6fa96b of _0x334551)for(const _0x5015b6 of _0x6fa96b['getItems']({'shallow':!0x0}))_0x376e4a['push'](_0x5015b6);for(const _0x23fa12 of _0x376e4a)'$graveyard'!=_0x23fa12['root']['rootName']&&(_0x10a553['setSelection'](_0x10a553['createPositionAt'](_0x23fa12,0x0)),_0x1359c2['commands']['get']('removeTableColumn')['refresh'](),_0x1359c2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4cf563=_0x27da84['filter'](_0x17d38f=>'$graveyard'!=_0x17d38f['root']['rootName']);_0x4cf563['length']>0x0&&_0x10a553['setSelection'](_0x4cf563);for(const _0x2e2d38 of _0x27da84)_0x2e2d38['detach']();});}function _0xdb84d6(_0x5dd8be,_0x4fa15a){return _0x4fa15a['every'](_0x446df7=>_0x5dd8be['some'](_0x146f24=>_0x146f24['end']['isEqual'](_0x446df7['start'])||_0x446df7['end']['isEqual'](_0x146f24['start'])));}function _0x3b2bcb(_0x1e6c1e,_0x1b5109){return!_0x1e6c1e['some'](_0x25c707=>_0x1b5109['some'](_0x2ef8ba=>_0x25c707['isIntersecting'](_0x2ef8ba)))&&_0x1e6c1e['some'](_0x58e0a7=>_0x1b5109['some'](_0x1e2aac=>_0x58e0a7['end']['isTouching'](_0x1e2aac['start'])));}_0x580521['descriptionFactory']['registerDescriptionCallback'](_0x4b38a9=>{if('insertion'!=_0x4b38a9['type']&&'deletion'!=_0x4b38a9['type'])return;const _0x33b821=_0x4b38a9['getContainedElement']();if(null!=_0x33b821&&_0x33b821['is']('element','table')){if('insertion'==_0x4b38a9['type']){const _0x1d694a=_0x4b38a9['getItems']()['filter'](_0xcfaa76=>_0xcfaa76['is']('$textProxy'))['map'](_0x33f50c=>_0x33f50c['data']);if(_0x1d694a['length'])return{'type':'insertion','content':o(_0x178da8,'*Insert:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d694a['join']('\x20')+'\x22'))};}if('deletion'==_0x4b38a9['type']){const _0x50d23d=_0x4b38a9['getItems']()['filter'](_0x415b59=>_0x415b59['is']('$textProxy'))['map'](_0x76509=>_0x76509['data']);if(_0x50d23d['length'])return{'type':'deletion','content':o(_0x178da8,'*Remove:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x50d23d['join']('\x20')+'\x22'))};}}}),_0x580521['descriptionFactory']['registerDescriptionCallback'](_0x403812=>{if('tableRow'==_0x403812['subType']){const _0x16267a=_0x403812['getItems']()['filter'](_0x5e1225=>_0x5e1225['is']('$textProxy'))['map'](_0x56a152=>_0x56a152['data']),_0x2b11ae=this['_getSuggestionCoords'](_0x403812),_0x3301c2=_0x2b11ae['maxRow']-_0x2b11ae['minRow']+0x1;if('insertion'==_0x403812['type'])return _0x16267a['length']?{'type':'insertion','content':o(_0x178da8,'*Insert:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3301c2,'\x22'+_0x16267a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x178da8,'*Insert:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_ROW',_0x3301c2))};if('deletion'==_0x403812['type'])return _0x16267a['length']?{'type':'deletion','content':o(_0x178da8,'*Remove:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3301c2,'\x22'+_0x16267a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x178da8,'*Remove:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_ROW',_0x3301c2))};}if('tableColumn'==_0x403812['subType']){const _0x1c4486=_0x403812['getItems']()['filter'](_0x1d465d=>_0x1d465d['is']('$textProxy'))['map'](_0x2bc121=>_0x2bc121['data']),_0x154545=this['_getSuggestionCoords'](_0x403812),_0x371dc0=_0x154545['maxColumn']-_0x154545['minColumn']+0x1;if('insertion'==_0x403812['type'])return _0x1c4486['length']?{'type':'insertion','content':o(_0x178da8,'*Insert:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x371dc0,'\x22'+_0x1c4486['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x178da8,'*Insert:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_COLUMN',_0x371dc0))};if('deletion'==_0x403812['type'])return _0x1c4486['length']?{'type':'deletion','content':o(_0x178da8,'*Remove:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x371dc0,'\x22'+_0x1c4486['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x178da8,'*Remove:*\x20%0',o(_0x178da8,'ELEMENT_TABLE_COLUMN',_0x371dc0))};}}),_0x580521['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4dd987),_0x580521['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4dd987),_0x580521['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x395b94),_0x580521['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x395b94),_0x580521['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xdb84d6),_0x580521['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xdb84d6),_0x580521['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3b2bcb),_0x580521['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3b2bcb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4deec7=this['editor'],_0x1591c3=_0x4deec7['model']['document']['selection'];return(_0xe5b904,_0x66bc6b)=>{_0x4deec7['model']['change'](_0x2e022c=>{const {commandName:_0x13613a,commandParams:_0xd59095}=_0x66bc6b;let _0x2870e7=_0xe5b904[0x0]['end']['nodeBefore'];_0xd59095&&_0xd59095[0x0]&&!0x1===_0xd59095[0x0]['forceValue']&&(_0x2870e7=_0xe5b904[0x0]['start']['nodeAfter']);const _0x43ee25=_0x2e022c['createRangeIn'](_0x2870e7);if('$graveyard'==_0x43ee25['root']['rootName'])return;const _0xba3de8=Array['from'](_0x1591c3['getRanges']())['map'](_0xc1db62=>_0x13a0c3['fromRange'](_0xc1db62));_0x2e022c['setSelection'](_0x43ee25),_0x4deec7['commands']['get'](_0x13613a)['refresh'](),_0xd59095['push']({'forceDefaultExecution':!0x0}),_0x4deec7['execute'](_0x13613a,..._0xd59095);const _0xab87f0=_0xba3de8['filter'](_0x1c5417=>'$graveyard'!=_0x1c5417['root']['rootName']);_0xab87f0['length']>0x0&&_0x2e022c['setSelection'](_0xab87f0);for(const _0x360664 of _0xba3de8)_0x360664['detach']();});};}['_getCoordsForCells'](_0x6aec08){const _0x5c0977=this['editor']['plugins']['get']('TableUtils');let _0x2b77d0=Number['MAX_SAFE_INTEGER'],_0x4efc32=Number['MIN_SAFE_INTEGER'],_0x5e0d69=Number['MAX_SAFE_INTEGER'],_0x40c9cd=Number['MIN_SAFE_INTEGER'];for(const _0x2f44aa of _0x6aec08){if('$graveyard'==_0x2f44aa['root']['rootName'])continue;const {row:_0x28dca3,column:_0x2e2c86}=_0x5c0977['getCellLocation'](_0x2f44aa),_0x103168=_0x2f44aa['hasAttribute']('rowspan')?_0x2f44aa['getAttribute']('rowspan')-0x1:0x0,_0x53d808=_0x2f44aa['hasAttribute']('colspan')?_0x2f44aa['getAttribute']('colspan')-0x1:0x0;_0x2b77d0=_0x28dca3<_0x2b77d0?_0x28dca3:_0x2b77d0,_0x4efc32=_0x28dca3+_0x103168>_0x4efc32?_0x28dca3+_0x103168:_0x4efc32,_0x5e0d69=_0x2e2c86<_0x5e0d69?_0x2e2c86:_0x5e0d69,_0x40c9cd=_0x2e2c86+_0x53d808>_0x40c9cd?_0x2e2c86+_0x53d808:_0x40c9cd;}return{'minRow':_0x2b77d0,'maxRow':_0x4efc32,'minColumn':_0x5e0d69,'maxColumn':_0x40c9cd};}['_setupColumnsRowsFixing'](){const _0x3ac8b8=this['editor'],_0x49b335=_0x3ac8b8['plugins']['get']('TrackChangesEditing'),_0x4a7e3a=_0x3ac8b8['plugins']['get']('TableUtils');_0x3ac8b8['model']['document']['on']('change:data',()=>{const _0x7ef050=Array['from'](_0x3ac8b8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x210db5,data:_0x23a4b8}of _0x7ef050){const {group:_0x20afd6,id:_0x2d9e54,subType:_0x21d937}=_0x49b335['_splitMarkerName'](_0x210db5);if('suggestion'!=_0x20afd6)continue;if(null!=_0x23a4b8['oldRange'])continue;const _0x158223=_0x49b335['getSuggestion'](_0x2d9e54);this['_tablePostFixingSubtypes']['includes'](_0x21d937)&&this['_tableSuggestions']['add'](_0x158223);}},{'priority':'low'});const _0x1febd1=(_0x119a83,_0x4014cb)=>{let _0x23369a=!0x1;const _0x5e615b=_0x4014cb['createRangeOn'](_0x119a83),_0x16fd03=_0x119a83['findAncestor']('table'),_0x491e7b=_0x4a7e3a['getCellLocation'](_0x119a83);for(const _0x3d71cd of this['_tableSuggestions']){const _0x4d35b9=_0x3d71cd['subType'],_0x33e0e0=_0x4d35b9['startsWith']('tablePaste'),_0x37d6e4=_0x4d35b9['substr'](_0x33e0e0?0xa:0x5),_0x4454fb=_0x37d6e4['toLowerCase'](),_0x2956c4=_0x4454fb['substr'](0x0,0x3)+'span',_0x4a0870='min'+_0x37d6e4,_0x3bef67='max'+_0x37d6e4;if(!_0x3d71cd['isInContent'])continue;if(_0x16fd03!=_0x3d71cd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3d71cd['isIntersectingWithRange'](_0x5e615b))continue;const _0xe16eab=_0x119a83['hasAttribute'](_0x2956c4)?_0x119a83['getAttribute'](_0x2956c4)-0x1:0x0,_0x53f630=this['_getSuggestionCoords'](_0x3d71cd),_0x4d4d01=_0x53f630[_0x4a0870],_0x26191b=_0x53f630[_0x3bef67];_0x4d4d01<=_0x491e7b[_0x4454fb]&&_0x491e7b[_0x4454fb]+_0xe16eab<=_0x26191b&&(_0x3d71cd['addRange'](_0x5e615b),_0x23369a=!0x0);}return _0x23369a;};_0x3ac8b8['model']['document']['registerPostFixer'](_0x19453e=>{let _0x5bd49a=!0x1;for(const _0x32acb3 of _0x3ac8b8['model']['document']['differ']['getChanges']())if('insert'==_0x32acb3['type']){if('tableRow'==_0x32acb3['name']){for(const _0xc5a03f of _0x32acb3['position']['nodeAfter']['getChildren']())_0x5bd49a=_0x5bd49a||_0x1febd1(_0xc5a03f,_0x19453e);}else'tableCell'==_0x32acb3['name']&&(_0x5bd49a=_0x5bd49a||_0x1febd1(_0x32acb3['position']['nodeAfter'],_0x19453e));}return _0x5bd49a;});}['_getSuggestionCoords'](_0x145778){return this['_getCoordsForCells'](_0x145778['getRanges']()['map'](_0x3cdf16=>_0x3cdf16['start']['nodeAfter']));}}function _e(_0x1d75db){return Array['from'](new Set(_0x1d75db)['values']());}class $t extends _0x4bb77d{static get['requires'](){return[Nt];}['afterInit'](){const _0x50a229=this['editor'],_0x1646bc=_0x50a229['model']['document']['selection'],_0x49eee1=_0x50a229['locale'];if(!_0x50a229['plugins']['has']('TableEditing'))return;const _0x48152c=_0x50a229['plugins']['get']('TrackChangesEditing'),_0x215e21=_0x50a229['plugins']['get']('TableUtils'),_0x44bda=_0x50a229['plugins']['get'](Nt);_0x44bda['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x48152c['enableCommand']('mergeTableCells',()=>{const _0x350b6d=_0x215e21['getSelectionAffectedTableCells'](_0x50a229['model']['document']['selection']);_0x50a229['model']['change'](()=>{_0x48152c['markMultiRangeBlockFormat'](_0x350b6d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x50a229['commands']['get']('mergeTableCells')['on']('execute',(_0x3a0561,_0x1122c3)=>{_0x50a229['commands']['get']('trackChanges')['value']&&(_0x1122c3['length']>0x0&&_0x1122c3[_0x1122c3['length']-0x1]&&_0x1122c3[_0x1122c3['length']-0x1]['forceDefaultExecution']||_0x48152c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3a0561['stop']());},{'priority':'highest'});for(const _0x4aca65 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1f5898=_0x50a229['commands']['get'](_0x4aca65);_0x48152c['enableCommand'](_0x4aca65,()=>{const _0x4af11c=_0x50a229['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf15a8b=>_0xf15a8b['is']('element','tableCell')),_0x402d0c=_0x1f5898['value'];_0x50a229['model']['change'](()=>{_0x48152c['markMultiRangeBlockFormat']([_0x4af11c,_0x402d0c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x27f046 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1a6ece=_0x50a229['commands']['get'](_0x27f046);_0x48152c['enableCommand'](_0x27f046,()=>{const _0x104ab4=_0x215e21['getSelectionAffectedTableCells'](_0x50a229['model']['document']['selection'])[0x0],_0xd07037=_0x104ab4['findAncestor']('table'),{column:_0x11bdb3,row:_0x4615c1}=_0x215e21['getCellLocation'](_0x104ab4);let _0x5790af=[];if('horizontally'==_0x1a6ece['direction']){const _0x4d535d=_0x215e21['createTableWalker'](_0xd07037,{'startRow':_0x4615c1,'endRow':_0x4615c1,'includeAllSlots':!0x0});_0x5790af=Array['from'](_0x4d535d)['map'](_0x394cd2=>_0x394cd2['cell']);}else{const _0x1eaf6a=_0x215e21['createTableWalker'](_0xd07037,{'column':_0x11bdb3,'includeAllSlots':!0x0});_0x5790af=Array['from'](_0x1eaf6a)['map'](_0x359d0f=>_0x359d0f['cell']);}_0x50a229['model']['change'](_0x3f600d=>{_0x48152c['markBlockFormat'](_0x3f600d['createRangeOn'](_0x104ab4),{'commandName':_0x27f046,'commandParams':[]},_0x5790af,_0x27f046);});});}_0x48152c['descriptionFactory']['registerDescriptionCallback'](_0x4cdcb4=>{if('formatBlock'!=_0x4cdcb4['type']&&'formatInline'!=_0x4cdcb4['type'])return;const {data:_0xc1389a}=_0x4cdcb4;return _0xc1389a&&'mergeTableCells'==_0xc1389a['commandName']?{'type':'format','content':o(_0x49eee1,'*Merge\x20cells*')}:void 0x0;}),_0x48152c['descriptionFactory']['registerDescriptionCallback'](_0xf43894=>{if('formatBlock'!=_0xf43894['type']&&'formatInline'!=_0xf43894['type'])return;const {data:_0x340d6f}=_0xf43894;return _0x340d6f?'splitTableCellVertically'==_0x340d6f['commandName']?{'type':'format','content':o(_0x49eee1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x340d6f['commandName']?{'type':'format','content':o(_0x49eee1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1025fd=_0x44bda['_acceptFormatSuggestionCallbackFactory']();for(const _0x28d972 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x48152c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28d972,'accept',_0x1025fd);for(const _0x2e4d21 of['splitTableCellVertically','splitTableCellHorizontally'])_0x48152c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e4d21,'accept',_0x1025fd);_0x48152c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5647b5=>{_0x50a229['model']['change'](_0x35336f=>{const _0x6b60a=Array['from'](_0x1646bc['getRanges']())['map'](_0x13b25e=>_0x13a0c3['fromRange'](_0x13b25e));_0x35336f['setSelection'](_0x5647b5),_0x50a229['commands']['get']('mergeTableCells')['refresh'](),_0x50a229['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ec08b=_0x6b60a['filter'](_0x2785dc=>'$graveyard'!=_0x2785dc['root']['rootName']);_0x4ec08b['length']>0x0&&_0x35336f['setSelection'](_0x4ec08b);for(const _0x395d18 of _0x6b60a)_0x395d18['detach']();});});for(const _0x1aa3dd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x522694=_0x50a229['commands']['get'](_0x1aa3dd);_0x522694['on']('set:isEnabled',(_0x2b2bf9,_0x1f6169,_0x27ae47)=>{if(_0x27ae47){const _0x3835de=_0x50a229['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x52c8f9=>_0x52c8f9['is']('element','tableCell'));this['_areMergableCells'](_0x522694['value'],_0x3835de)||(_0x2b2bf9['return']=!0x1,_0x2b2bf9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x315653=this['editor']['commands']['get']('mergeTableCells'),_0xd25a00=this['editor']['plugins']['get']('TableUtils');if(!_0x315653['isEnabled'])return!0x1;const _0x5371ca=_0xd25a00['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x296447 of _0x5371ca)for(const _0x447e29 of _0x5371ca)if(_0x296447!=_0x447e29&&!this['_areMergableCells'](_0x296447,_0x447e29))return!0x1;return!0x0;}['_areMergableCells'](_0x90fc03,_0x1e3177){const _0x289b9c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39dbad=this['editor']['model']['createRangeOn'](_0x90fc03),_0x234927=this['editor']['model']['createRangeOn'](_0x1e3177),_0x51521b=new Set(),_0x2669bf=new Set();for(const _0x1d7b84 of _0x289b9c['getSuggestions']())if(('insertion'==_0x1d7b84['type']||'deletion'==_0x1d7b84['type']||'mergeTableCells'==_0x1d7b84['subType'])&&_0x1d7b84['isInContent']){for(const _0x3ba8fd of _0x1d7b84['getRanges']())_0x3ba8fd['containsRange'](_0x39dbad,!0x0)&&_0x51521b['add'](_0x1d7b84['type']+':'+_0x1d7b84['author']['id']),_0x3ba8fd['containsRange'](_0x234927,!0x0)&&_0x2669bf['add'](_0x1d7b84['type']+':'+_0x1d7b84['author']['id']);}if(_0x51521b['size']!=_0x2669bf['size'])return!0x1;for(const _0x5cea09 of _0x51521b)if(!_0x2669bf['has'](_0x5cea09))return!0x1;return!0x0;}}class vt extends _0x4bb77d{static get['requires'](){return[Nt];}['afterInit'](){const _0x2291bb=this['editor'];if(!_0x2291bb['plugins']['has']('TableEditing'))return;const _0x423f64=_0x2291bb['locale'],_0x444ef6=_0x2291bb['plugins']['get']('TrackChangesEditing');_0x444ef6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x444ef6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x444ef6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x423f64,'FORMAT_HEADER_ROW')),_0x444ef6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x423f64,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x236141=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cef20=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x236141['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1cef20),_0x236141['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1cef20),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x19a4e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x532d13=this['editor']['plugins']['get']('TableUtils');function _0x465a0f({showActiveMarker:_0x3c2021=!0x0,setDataAttribute:_0x167355=!0x0}={}){return(_0x54c00f,_0x3c2d20,_0x5499a1)=>{const {type:_0x3cee46,id:_0x3d442c}=_0x19a4e1['_splitMarkerName'](_0x3c2d20['markerName']);if(!_0x19a4e1['hasSuggestion'](_0x3d442c))return;const _0x3ec156=_0x19a4e1['getSuggestion'](_0x3d442c),_0x3e0dd3=_0x3ec156['data'];if('formatBlock'!=_0x3ec156['type']||!_0x3e0dd3||'setTableColumnHeader'!=_0x3e0dd3['commandName'])return;if(_0x3c2d20['item'])return void _0x54c00f['stop']();if(!_0x5499a1['consumable']['consume'](_0x3c2d20['markerRange'],_0x54c00f['name']))return;const _0x189ad6=_0x3c2d20['markerRange']['start']['nodeAfter'],_0x4258eb=_0x3c2d20['markerRange']['end']['nodeBefore'],_0x524976=_0x189ad6['parent']['parent'],{column:_0x24f19f}=_0x532d13['getCellLocation'](_0x189ad6),{column:_0x811af9}=_0x532d13['getCellLocation'](_0x4258eb);for(let _0x24ab3f=_0x24f19f;_0x24ab3f<=_0x811af9;_0x24ab3f++){const _0x133d4b=_0x532d13['createTableWalker'](_0x524976,{'column':_0x24ab3f,'includeAllSlots':!0x1});for(const _0x428c1f of _0x133d4b){const _0x4308a6=_0x428c1f['cell'],_0xd91989=_0x5499a1['mapper']['toViewElement'](_0x4308a6);_0x5499a1['writer']['addClass']('ck-suggestion-marker-'+_0x3cee46,_0xd91989),_0x167355&&_0x5499a1['writer']['setAttribute']('data-suggestion',_0x3d442c,_0xd91989),_0x5499a1['mapper']['bindElementToMarker'](_0xd91989,_0x3c2d20['markerName']),_0x3c2021&&(_0x19a4e1['activeMarkers']['includes'](_0x3c2d20['markerName'])?_0x5499a1['writer']['addClass']('ck-suggestion-marker--active',_0xd91989):_0x5499a1['writer']['removeClass']('ck-suggestion-marker--active',_0xd91989));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x465a0f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5ef3b0,_0x20cbf5,_0x4ed0d6)=>{_0x4ed0d6['options']['showSuggestionHighlights']&&_0x465a0f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ef3b0,_0x20cbf5,_0x4ed0d6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3ba3ef,_0x2d72d5,_0x55e5a0)=>{const {type:_0x28170b,id:_0x366f1c}=_0x19a4e1['_splitMarkerName'](_0x2d72d5['markerName']);if(!_0x19a4e1['hasSuggestion'](_0x366f1c))return;const _0x11ff50=_0x19a4e1['getSuggestion'](_0x366f1c),_0x52d6d8=_0x11ff50['data'];if('formatBlock'!=_0x11ff50['type']||!_0x52d6d8||'setTableColumnHeader'!=_0x52d6d8['commandName'])return;const _0x3e7c44=_0x55e5a0['mapper']['markerNameToElements'](_0x2d72d5['markerName']);if(_0x3e7c44){for(const _0x4a2c84 of _0x3e7c44)_0x55e5a0['writer']['removeClass']('ck-suggestion-marker-'+_0x28170b,_0x4a2c84),_0x55e5a0['writer']['removeClass']('ck-suggestion-marker--active',_0x4a2c84),_0x55e5a0['writer']['removeAttribute']('data-suggestion',_0x4a2c84),_0x55e5a0['mapper']['unbindElementFromMarkerName'](_0x4a2c84,_0x2d72d5['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1dcb2a=this['editor'],_0xc0b0df=_0x1dcb2a['locale'];function _0xe68963(_0x209b76){return{'type':'format','content':o(_0xc0b0df,'*Format:*\x20%0',_0x209b76)};}_0x1dcb2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa09e68=>{if('formatBlock'!=_0xa09e68['type'])return;const {data:_0x25573c}=_0xa09e68;if(_0x25573c){if('setTableRowHeader'==_0x25573c['commandName']){const _0x402303=_0x25573c['commandParams'][0x0]['forceValue'];return _0xe68963(o(_0xc0b0df,_0x402303?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x25573c['commandName']){const _0x402fdf=_0x25573c['commandParams'][0x0]['forceValue'];return _0xe68963(o(_0xc0b0df,_0x402fdf?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x4bb77d{['afterInit'](){const _0x2a27dc=this['editor'],_0x43dcd6=_0x2a27dc['locale'],_0x8717eb=_0x2a27dc['plugins']['get']('TrackChangesEditing');function _0x811003(_0x584f7c){return{'type':'format','content':''+o(_0x43dcd6,'*Set\x20table\x20type:*\x20%0',_0x584f7c)};}_0x2a27dc['plugins']['has']('TableLayout')&&(_0x8717eb['enableCommand']('insertTableLayout'),_0x8717eb['enableDefaultAttributesIntegration']('tableType'),_0x8717eb['descriptionFactory']['registerElementLabel'](_0x5ec1ce=>_0x5ec1ce['is']('element','table')&&'layout'===_0x5ec1ce['getAttribute']('tableType'),_0x2a622b=>o(_0x43dcd6,'ELEMENT_LAYOUT_TABLE',_0x2a622b)),_0x8717eb['descriptionFactory']['registerDescriptionCallback'](_0x3ebc42=>{const {data:_0x2ded47}=_0x3ebc42;if(_0x2ded47&&'tableType'==_0x2ded47['key'])switch(_0x2ded47['newValue']){case'layout':return _0x811003(o(_0x43dcd6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x811003(o(_0x43dcd6,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x4bcf80=>[_0x4bcf80,null]));class Bt extends _0x4bb77d{static get['requires'](){return[Nt];}['afterInit'](){const _0x174208=this['editor'];if(!_0x174208['plugins']['has']('TableClipboard'))return;const _0x16952d=_0x174208['plugins']['get']('TrackChangesEditing'),_0x165659=_0x174208['plugins']['get']('TableUtils'),_0x1dd598=_0x174208['plugins']['get'](Nt),_0x105c5c=_0x174208['plugins']['get']('TableClipboard'),_0x30fd22=_0x174208['plugins']['get']('TableSelection'),_0x39f9ff=_0x174208['plugins']['get'](_0x1c840d);_0x1dd598['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x174208['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x174208['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1aa15e=null,_0x3492da=!0x1;_0x39f9ff['on']('contentInsertion',(_0x59e058,_0x1cd20c)=>{_0x3492da='paste'===_0x1cd20c['method'];}),_0x174208['model']['on']('insertContent',(_0x3ab3d4,_0x3a3bfd)=>{if(!_0x3492da&&null===_0x30fd22['getSelectedTableCells']())return;const [_0x892abb,_0xa1322c]=_0x3a3bfd,_0x1645e4=_0x3a3bfd[_0x3a3bfd['length']-0x1];_0x1645e4&&_0x1645e4['forceDefaultExecution']||_0x16952d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4ac315,_0x5ce15f,_0x40c532,_0x5a71b3,_0x4e2737){if(_0x5ce15f&&!_0x5ce15f['is']('documentSelection'))return!0x1;const _0x2b26cb=_0x4e2737['getTableIfOnlyTableInContent'](_0x4ac315,_0x40c532);if(!_0x2b26cb||!Oe(_0x2b26cb,void 0x0,_0x5a71b3))return!0x1;const _0x2de5a5=_0x5a71b3['getSelectionAffectedTableCells'](_0x40c532['document']['selection']);if(!_0x2de5a5['length'])return!0x1;const _0x22c813=_0x2de5a5[0x0]['findAncestor']('table'),_0x352c0f=_0x5a71b3['getRowIndexes'](_0x2de5a5),_0x11a251=_0x5a71b3['getColumnIndexes'](_0x2de5a5),_0x24def3={'startRow':_0x352c0f['first'],'endRow':_0x352c0f['last'],'startColumn':_0x11a251['first'],'endColumn':_0x11a251['last']};return 0x1==_0x2de5a5['length']&&(_0x24def3['endRow']+=_0x5a71b3['getRows'](_0x2b26cb)-0x1,_0x24def3['endColumn']+=_0x5a71b3['getColumns'](_0x2b26cb)-0x1),Oe(_0x22c813,_0x24def3,_0x5a71b3);}(_0x892abb,_0xa1322c,_0x174208['model'],_0x165659,_0x105c5c)&&(_0x3ab3d4['stop'](),_0x1aa15e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x174208['model']['change'](()=>{_0x174208['model']['insertContent'](_0x3a3bfd[0x0],_0x3a3bfd[0x1],_0x3a3bfd[0x2],{'forceDefaultExecution':!0x0});const _0x46b16c=_0x55a083(),{rowInsertionRanges:_0x2f0f86,columnInsertionRanges:_0x255994,insertionRanges:_0x186162,deletionRanges:_0x526f78,cells:_0x4e7b27}=_0x1aa15e;_0x2f0f86['length']&&_0x16952d['markMultiRangeInsertion'](_0x2f0f86,'tablePasteRow',{'tablePasteChainId':_0x46b16c}),_0x255994['length']&&_0x16952d['markMultiRangeInsertion'](_0x255994,'tablePasteColumn',{'tablePasteChainId':_0x46b16c}),_0x186162['length']&&(_0x16952d['markMultiRangeInsertion'](_0x186162,'tablePaste',{'tablePasteChainId':_0x46b16c,'skipNestingCheck':!0x0}),_0x186162['forEach'](_0x521b4f=>_0x521b4f['detach']?.())),_0x526f78['length']&&(_0x16952d['markMultiRangeDeletion'](_0x526f78,'tablePaste',{'tablePasteChainId':_0x46b16c,'skipNestingCheck':!0x0}),_0x526f78['forEach'](_0x707076=>_0x707076['detach']?.()));const _0x21ac48=_0x16952d['markMultiRangeBlockFormat'](_0x4e7b27['map'](({element:_0x2e0d58})=>_0x2e0d58),{'formatGroupId':_0x55a083()},[],'tablePasteCell',{'tablePasteChainId':_0x46b16c});if(_0x21ac48){const _0x382bf3=_0x21ac48['getMarkers'](),_0x2593f5=[];for(const {element:_0x2554a8,attributes:_0x15dcfb}of _0x4e7b27){if(!_0x15dcfb)continue;const _0x185ff4=_0x174208['model']['createRangeOn'](_0x2554a8),_0x807026=_0x382bf3['find'](_0x231a04=>_0x231a04['getRange']()['isEqual'](_0x185ff4));_0x807026&&_0x2593f5['push']([_0x807026['name'],_0x15dcfb]);}_0x2593f5['length']&&_0x21ac48['setAttribute']('markerAttributes',Object['fromEntries'](_0x2593f5));}_0x1aa15e=null;}));},{'priority':_0x58b2a5['high']+0xa}),_0x39f9ff['on']('contentInsertion',()=>{_0x3492da=!0x1;},{'priority':'lowest'}),_0x174208['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5a04d7,_0xd4dfa6)=>{const [_0x44b56d,_0x1c4ed4,,_0x2c908e]=_0xd4dfa6;if(!_0x1aa15e)return;_0x5a04d7['stop']();const _0x1ecd02=_0x44b56d['cell'],_0x41b5fb=_0x1c4ed4,_0x58f8d3=Be(_0x1ecd02),_0x1b0368=Be(_0x41b5fb);_0x5a04d7['return']=_0x1ecd02;let _0x327047=null,_0x4783af=null;if(_0x1b0368||_0x58f8d3){if(_0x58f8d3&&!_0x1b0368){_0x2c908e['remove'](_0x1ecd02['getChild'](0x0));for(const _0xc9bc34 of Array['from'](_0x41b5fb['getChildren']()))_0x2c908e['insert'](_0xc9bc34,_0x1ecd02,'end');const _0x2bdc01=_0x1aa15e['rowInsertionIndexes']['includes'](_0x44b56d['row']),_0x4bb243=_0x1aa15e['columnInsertionIndexes']['includes'](_0x44b56d['column']);_0x2bdc01||_0x4bb243||(_0x327047=_0x13a0c3['fromRange'](_0x2c908e['createRangeIn'](_0x1ecd02)));}else _0x1b0368&&!_0x58f8d3&&(_0x4783af=_0x2c908e['createRangeIn'](_0x1ecd02));}else{const _0x49e08f=_0x2c908e['createElement']('tableCellSuggestion'),_0x236c66=_0x2c908e['createElement']('tableCellSuggestion');_0x2c908e['wrap'](_0x2c908e['createRangeIn'](_0x1ecd02),_0x236c66),_0x2c908e['insert'](_0x49e08f,_0x1ecd02,0x0);for(const _0x347df6 of Array['from'](_0x41b5fb['getChildren']()))_0x2c908e['insert'](_0x347df6,_0x49e08f,'end');_0x327047=_0x13a0c3['fromRange'](_0x2c908e['createRangeOn'](_0x49e08f)),_0x4783af=_0x13a0c3['fromRange'](_0x2c908e['createRangeOn'](_0x236c66));}const _0x31c67d=Array['from'](_0x41b5fb['getAttributes']())['filter'](([_0x656f87])=>Re['includes'](_0x656f87));_0x1aa15e['cells']['push']({'element':_0x1ecd02,'attributes':_0x31c67d['length']?Object['fromEntries'](_0x31c67d):null}),_0x327047&&_0x1aa15e['insertionRanges']['push'](_0x327047),_0x4783af&&_0x1aa15e['deletionRanges']['push'](_0x4783af);},{'priority':'high'}),_0x165659['on']('insertColumns',(_0x1c295e,_0x1807b3)=>{const [_0x20c0d0,_0x4008d4={}]=_0x1807b3;if(!_0x1aa15e)return;const _0x17bc66=_0x4008d4['at']||0x0,_0x457ab0=_0x4008d4['columns']||0x1;_0x1aa15e['columnInsertionIndexes']=new Array(_0x457ab0)['fill'](_0x17bc66)['map']((_0x17384b,_0x11d12e)=>_0x17384b+_0x11d12e);for(const {cell:_0x386702}of _0x165659['createTableWalker'](_0x20c0d0,{'startColumn':_0x17bc66,'endColumn':_0x17bc66+_0x457ab0-0x1}))_0x1aa15e['columnInsertionRanges']['push'](_0x174208['model']['createRangeOn'](_0x386702));},{'priority':'low'}),_0x165659['on']('insertRows',(_0xb01219,_0x1138e4)=>{const [_0x20aeb2,_0x31cc96={}]=_0x1138e4;if(!_0x1aa15e)return;const _0x137a3b=_0x31cc96['at']||0x0,_0x39a266=_0x31cc96['rows']||0x1;_0x1aa15e['rowInsertionIndexes']=new Array(_0x39a266)['fill'](_0x137a3b)['map']((_0x19d8fc,_0x23efc6)=>_0x19d8fc+_0x23efc6);for(const {cell:_0x218910}of _0x165659['createTableWalker'](_0x20aeb2,{'startRow':_0x137a3b,'endRow':_0x137a3b+_0x39a266-0x1}))_0x1aa15e['rowInsertionRanges']['push'](_0x174208['model']['createRangeOn'](_0x218910));},{'priority':'low'}),_0x16952d['descriptionFactory']['registerDescriptionCallback'](_0x5e99ec=>{if(_0x5e99ec['subType']&&_0x5e99ec['subType']['startsWith']('tablePaste'))return _0x5e99ec['previous']?{}:{'type':'insertion','content':o(_0x174208['locale'],'*Replace\x20table\x20cells*')};});const _0x5e91e7=()=>!0x1;for(const _0x5d7de1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x16952d['_suggestionFactory']['registerCustomCallback']('insertion',_0x5d7de1,'join',_0x5e91e7),_0x16952d['_suggestionFactory']['registerCustomCallback']('deletion',_0x5d7de1,'join',_0x5e91e7),_0x16952d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d7de1,'join',_0x5e91e7);_0x16952d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5e91e7),_0x16952d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1034da,_0x1cb487,_0x265a59)=>{const _0xc1d7c7=_0x1034da['map'](_0x461091=>_0x461091['getContainedElement']())['filter'](_0x15df61=>_0x15df61),_0x48a5de=new Map(_0xc1d7c7['map'](_0x2d48f2=>[_0x2d48f2,null]));if(_0x1aa15e){for(const {element:_0x41b612,attributes:_0x3f3e41}of _0x1aa15e['cells'])_0x3f3e41&&_0x48a5de['set'](_0x41b612,_0x3f3e41);}else{if(_0x265a59&&_0x265a59['markerAttributes'])for(const [_0x2e909f,_0x46a93c]of Object['entries'](_0x265a59['markerAttributes'])){const _0x3d8cab=_0x174208['model']['markers']['get'](_0x2e909f),_0x349458=_0x3d8cab?_0x3d8cab['getRange']()['getContainedElement']():null;_0x349458&&_0x48a5de['set'](_0x349458,_0x46a93c);}}_0x174208['model']['change'](_0x27817b=>{for(const [_0x23bd6f,_0x73bee9]of _0x48a5de)_0x27817b['setAttributes']({...Ae,..._0x73bee9},_0x23bd6f);});});const _0x3b20a4=(_0x309307,_0x5e6aff)=>{_0x16952d['_suggestionFactory']['registerCustomCallback'](_0x309307,'tablePaste',_0x5e6aff,(_0x3fb4f7,_0x2e12ed,_0x4225c2)=>{_0x174208['model']['change'](_0x4d9200=>{const _0x25210b=[];for(const _0x34f091 of _0x3fb4f7){const _0x40f702=_0x34f091['start']['nodeAfter'];_0x40f702['is']('element','tableCellSuggestion')&&_0x25210b['push'](_0x40f702);}_0x16952d['_suggestionFactory']['getSuggestionCallback'](_0x309307,null,_0x5e6aff)(_0x3fb4f7,_0x2e12ed,_0x4225c2);for(const _0x19dd87 of _0x25210b)'$graveyard'!=_0x19dd87['root']['rootName']&&_0x4d9200['unwrap'](_0x19dd87);});});};_0x3b20a4('insertion','accept'),_0x3b20a4('insertion','discard'),_0x3b20a4('deletion','accept'),_0x3b20a4('deletion','discard'),_0x16952d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xac735e=>{const _0x4e8ec7=_0xac735e['map'](_0x25080e=>_0x25080e['getContainedElement']()),_0x10b8fd=_0x4e8ec7[0x0]['findAncestor']('table'),{minRow:_0x34cde9,maxRow:_0x426c58}=_0x1dd598['_getCoordsForCells'](_0x4e8ec7);_0x165659['removeRows'](_0x10b8fd,{'at':_0x34cde9,'rows':_0x426c58-_0x34cde9+0x1});}),_0x16952d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31ff7c=>{const _0x251366=_0x31ff7c['map'](_0x5405ce=>_0x5405ce['getContainedElement']()),_0x440593=_0x251366[0x0]['findAncestor']('table'),{minColumn:_0x4493ae,maxColumn:_0x123b76}=_0x1dd598['_getCoordsForCells'](_0x251366);_0x165659['removeColumns'](_0x440593,{'at':_0x4493ae,'columns':_0x123b76-_0x4493ae+0x1});});const _0x3c432d=(_0xe2712d,_0x5a936f)=>{if(!_0x5a936f['subType']||!_0x5a936f['subType']['startsWith']('tablePaste'))return;const _0x432076=_0x5a936f['attributes']['tablePasteChainId'],_0x52aad0=_0x16952d['getSuggestions']()['filter'](_0x6333e8=>_0x6333e8['isInContent']&&_0x6333e8['attributes']&&_0x6333e8['attributes']['tablePasteChainId']==_0x432076);_0x52aad0['length']&&_0x5a936f['getAllAdjacentSuggestions']()['length']!=_0x52aad0['length']&&_0x52aad0['reduce']((_0x2991c5,_0x5a2164)=>(_0x2991c5['next']=_0x5a2164,_0x5a2164['previous']=_0x2991c5,_0x5a2164));};function _0x9f70d3(_0x1a82f0,_0x54aec2=!0x0){const {id:_0x1fb6c8,authorId:_0x4c52e4}=_0x16952d['_splitMarkerName'](_0x1a82f0['markerName']),_0x536906=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5547f8=_0x16952d['activeMarkers']['includes'](_0x1a82f0['markerName']);return _0x5547f8&&_0x536906['push']('ck-suggestion-marker--active'),{'classes':_0x536906,'attributes':{'data-suggestion':_0x1fb6c8,'data-author-id':_0x4c52e4},'priority':_0x5547f8&&_0x54aec2?0xbc2:0xbb8};}_0x16952d['on']('suggestionLoaded',_0x3c432d,{'priority':'high'}),_0x16952d['on']('suggestionUnloaded',_0x3c432d,{'priority':'high'}),_0x174208['model']['document']['registerPostFixer'](()=>{let _0x1b7a82=!0x1;const _0xe8de89=Array['from'](_0x174208['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xcbf19d,data:_0x552fcd}of _0xe8de89){const {group:_0x4d0856,type:_0x32140c,id:_0x195271}=_0x16952d['_splitMarkerName'](_0xcbf19d);if('suggestion'!=_0x4d0856||'deletion'!=_0x32140c||_0x552fcd['oldRange'])continue;if(!_0x16952d['hasSuggestion'](_0x195271))continue;const _0x1e59dd=_0x16952d['getSuggestion'](_0x195271)['getRanges'](),_0xdc62c3=_0x174208['plugins']['get']('Users')['me'];for(const _0x39c069 of _0x16952d['getSuggestions']()){if(!_0x39c069['isInContent']||_0x39c069['author']!=_0xdc62c3)continue;if('formatBlock'!=_0x39c069['type']||'tablePasteCell'!=_0x39c069['subType'])continue;if(_0x39c069['getRanges']()['every'](_0x454a0f=>_0x1e59dd['some'](_0x3bd731=>_0x3bd731['containsRange'](_0x454a0f,!0x0)))){for(const _0x474f95 of _0x39c069['getAllAdjacentSuggestions']())_0x474f95['isInContent']&&(_0x474f95['discard'](),_0x1b7a82=!0x0);}}}return _0x1b7a82;}),_0x174208['model']['document']['registerPostFixer'](_0x56f774=>{const _0x33e6c3=_0x174208['commands']['get']('redo');if(!_0x33e6c3||!_0x33e6c3['_createdBatches']['has'](_0x56f774['batch']))return!0x1;let _0x330cdb=!0x1;const _0xbb20e=_0x174208['plugins']['get']('Users')['me'],_0x319fab=_0x174208['model']['document']['differ']['getChanges'](),_0x56ea93=Array['from'](_0x174208['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5e0f04,data:_0x248fc3})=>{const {group:_0x5dba6c,subType:_0x2a97ac,authorId:_0xa5733b}=_0x16952d['_splitMarkerName'](_0x5e0f04);return'suggestion'==_0x5dba6c&&'tablePaste'==_0x2a97ac&&_0xa5733b==_0xbb20e['id']&&!_0x248fc3['oldRange'];});for(const _0x385b59 of _0x319fab){if('insert'!=_0x385b59['type']||'tableCellSuggestion'!=_0x385b59['name']||0x1!=_0x385b59['length'])continue;const _0x1b0cc9=_0x56f774['createRange'](_0x385b59['position'],_0x385b59['position']['getShiftedBy'](0x1));if(!_0x56ea93['find'](({data:_0xc96293})=>_0xc96293['newRange']['isEqual'](_0x1b0cc9))){for(const {name:_0x381f58,data:_0x42e9fd}of _0x56ea93)if(_0x1b0cc9['containsRange'](_0x42e9fd['newRange'])){_0x56f774['updateMarker'](_0x381f58,{'range':_0x1b0cc9}),_0x330cdb=!0x0;break;}}}return _0x330cdb;}),_0x174208['model']['document']['registerPostFixer'](_0x5ea558=>{let _0x48f40c=!0x1;const _0x199064=_0x174208['plugins']['get']('Users')['me'],_0x40c33e=_0x16952d['getSuggestions']()['filter'](_0x374e53=>_0x374e53['isInContent']&&_0x374e53['author']==_0x199064),_0x2d1a17=new Set(),_0x54d2af=new Set();for(const _0x70f006 of _0x40c33e)if('tablePaste'==_0x70f006['subType'])for(const _0x48b790 of _0x70f006['getMarkers']()){const _0x32d4ff=_0x48b790['getRange']()['getContainedElement']();if(_0x32d4ff){if(_0x32d4ff['is']('element','tableCellSuggestion')&&Be(_0x32d4ff)){_0x70f006['removeMarker'](_0x48b790['name']),_0x2d1a17['add'](_0x32d4ff),_0x48f40c=!0x0;const _0x25603d=_0x32d4ff['nextSibling'],_0x38ff5c=_0x32d4ff['previousSibling'],_0x8f6fad=_0x25603d&&_0x25603d['is']('element','tableCellSuggestion'),_0x5b746=_0x38ff5c&&_0x38ff5c['is']('element','tableCellSuggestion');_0x8f6fad&&!_0x2d1a17['has'](_0x25603d)&&_0x54d2af['add'](_0x25603d),_0x5b746&&!_0x2d1a17['has'](_0x38ff5c)&&_0x54d2af['add'](_0x38ff5c);}else _0x32d4ff['is']('element','paragraph')&&_0x32d4ff['isEmpty']&&(_0x70f006['removeMarker'](_0x48b790['name']),_0x48f40c=!0x0);}}else{if('tablePasteCell'==_0x70f006['subType']){if(!_0x70f006['attributes']||!_0x70f006['attributes']['tablePasteChainId'])continue;const _0x3a1f18=_0x70f006['attributes']['markerAttributes'];if(_0x3a1f18&&Object['keys'](_0x3a1f18)['length'])continue;const _0x81f478=_0x70f006['attributes']['tablePasteChainId'];let _0x5832e5=!0x0,_0x367c01=!0x0;for(const _0x5c5d95 of _0x40c33e)if(_0x5c5d95['subType']&&_0x5c5d95['subType']['startsWith']('tablePaste')){if(!_0x5c5d95['attributes']['tablePasteChainId']){_0x367c01=!0x1;break;}if(_0x5c5d95['id']!=_0x70f006['id']&&_0x5c5d95['attributes']['tablePasteChainId']==_0x81f478){_0x5832e5=!0x1;break;}}_0x367c01&&_0x5832e5&&(_0x70f006['removeMarkers'](),_0x48f40c=!0x0);}}for(const _0x4e9e7a of _0x2d1a17)_0x5ea558['remove'](_0x4e9e7a);for(const _0x53993c of _0x54d2af)_0x5ea558['unwrap'](_0x53993c);return _0x48f40c;}),_0x174208['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x33a049=>_0x9f70d3(_0x33a049),'converterPriority':'high'}),_0x174208['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ef23b,_0x42bd3d)=>_0x42bd3d['options']['showSuggestionHighlights']?_0x9f70d3(_0x1ef23b,!0x1):null,'converterPriority':'high'});const _0x290e8f=_0x174208['editing']['view'];this['listenTo'](_0x290e8f['document'],'clipboardOutput',(_0x33a76a,_0x58eda1)=>{const _0x49475c=[];for(const _0x3cfa2c of _0x290e8f['createRangeIn'](_0x58eda1['content'])['getItems']())_0x3cfa2c['is']('element','suggestion-td')&&_0x49475c['push'](_0x3cfa2c);_0x290e8f['change'](_0x2b99ca=>{for(const _0x2140d3 of _0x49475c)_0x2b99ca['move'](_0x2b99ca['createRangeIn'](_0x2140d3),_0x2b99ca['createPositionBefore'](_0x2140d3)),_0x2b99ca['remove'](_0x2140d3);});});}}function Be(_0x3a17d0){if(_0x3a17d0['isEmpty'])return!0x0;const _0x3b2685=_0x3a17d0['getChild'](0x0);return _0x3b2685['is']('element','paragraph')&&_0x3b2685['isEmpty'];}function Oe(_0x3f5dc2,_0x476ffb={},_0x878758){for(const {isAnchor:_0x360501,cellHeight:_0x978180,cellWidth:_0xa1eb20}of _0x878758['createTableWalker'](_0x3f5dc2,{'includeAllSlots':!0x0,..._0x476ffb}))if(!_0x360501||0x1!=_0x978180||0x1!=_0xa1eb20)return!0x1;return!0x0;}class Ot extends _0x4bb77d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5ba620=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ba620['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5ba620['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5ba620['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ba620['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5ba620['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5ba620['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x452ee0,_0x3e67ba){const _0x3d8483=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13dc8b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x103570=_0x3e67ba['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x264b70=_0x13dc8b['getColumnGroupElement'](_0x103570);let _0xf197e7=_0x264b70?_0x13dc8b['getTableColumnsWidths'](_0x264b70):null,_0x35f3be=_0x103570['getAttribute']('tableWidth')||null;const _0x4e1c42=_0x3e67ba['tableWidth']||_0x35f3be,_0x247e77=_0x3e67ba['columnWidths']||_0xf197e7,_0x3806bf=this['editor']['plugins']['get']('Users')['me'];for(const _0x429e94 of _0x3d8483['getSuggestions']()){const _0x28a27a=_0x429e94['getContainedElement']();if('resizeTable'===_0x429e94['subType']&&_0x28a27a===_0x103570){_0x429e94['author']!==_0x3806bf&&_0x429e94['discard']();const _0x4a8cfb=_0x429e94['data']['commandParams'];_0x35f3be=_0x4a8cfb[0x0]['tableWidth'],_0xf197e7=_0x4a8cfb[0x0]['columnWidths'];break;}}_0x452ee0({'table':_0x103570,'tableWidth':_0x4e1c42,'columnWidths':_0x247e77}),_0x3d8483['markBlockFormat'](_0x103570,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x35f3be,'columnWidths':_0xf197e7}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x168f1a){if('formatBlock'!=_0x168f1a['type']&&'formatInline'!=_0x168f1a['type'])return;const {data:_0x150d71}=_0x168f1a;if(_0x150d71&&'resizeTable'===_0x150d71['formatGroupId']){const _0x1ce155='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1ce155)};}}}class xt extends _0x4bb77d{['afterInit'](){const _0x553bbd=this['editor'];_0x553bbd['plugins']['has']('Template')&&_0x553bbd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4bb77d{['afterInit'](){const _0x3ba148=this['editor'];if(!_0x3ba148['commands']['get']('insertTableOfContents'))return;_0x3ba148['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x46c222=_0x3ba148['plugins']['get']('TrackChangesEditing'),_0x5da9f4=_0x3ba148['locale'];_0x46c222['descriptionFactory']['registerElementLabel']('tableOfContents',_0x333662=>o(_0x5da9f4,'ELEMENT_TABLE_OF_CONTENTS',_0x333662));}}class Rt extends _0x4bb77d{['afterInit'](){const _0x3e518e=this['editor'];if(!_0x3e518e['plugins']['has']('Title'))return;const _0x1d072a=_0x3e518e['plugins']['get']('TrackChangesEditing');_0x1d072a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3e518e['locale'],'ELEMENT_TITLE')),_0x3e518e['model']['document']['registerPostFixer'](_0x3de9ab=>{let _0x1d6645=!0x1;const _0x4ee3ee=Array['from'](_0x3e518e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4055df,data:_0x1b86bd}of _0x4ee3ee){const {group:_0xe205de}=_0x1d072a['_splitMarkerName'](_0x4055df);if('suggestion'!==_0xe205de||!_0x1b86bd['newRange'])continue;const _0xe4f35d=_0x1b86bd['newRange'],_0x2d5006=_0xe4f35d['end']['nodeBefore'];if(!_0x2d5006||!_0x2d5006['is']('element','title-content'))continue;if(!_0xe4f35d['start']['isTouching'](_0xe4f35d['end']))continue;const _0x4c4b4e=_0x3e518e['model']['schema']['getNearestSelectionRange'](_0xe4f35d['end'],'forward');if(_0x4c4b4e&&_0x4c4b4e['isCollapsed']){const _0x339904=_0x3de9ab['createRange'](_0xe4f35d['start'],_0x4c4b4e['start']);_0x339904['isEqual'](_0xe4f35d)||(_0x3de9ab['updateMarker'](_0x4055df,{'range':_0x339904}),_0x1d6645=!0x0);}_0x1d6645||(_0x3de9ab['removeMarker'](_0x4055df),_0x1d6645=!0x0);}return _0x1d6645;});}}class Tt extends _0x4bb77d{['afterInit'](){const _0x40fb3f=this['editor'],_0x3af81a=_0x40fb3f['plugins']['get']('TrackChangesEditing');_0x40fb3f['plugins']['has']('Uploadcare')&&(_0x3af81a['enableCommand']('uploadcare'),_0x40fb3f['plugins']['has']('UploadcareImageEdit')&&(_0x3af81a['enableCommand']('uploadcareImageEdit'),_0x3af81a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3af81a['descriptionFactory']['registerDescriptionCallback'](_0x4e606a=>{if('attribute'!=_0x4e606a['type'])return;const {data:_0x4943f2}=_0x4e606a;return _0x4943f2&&'uploadcareImageId'==_0x4943f2['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x4bb77d{['afterInit'](){const _0x5a56de=this['editor'],_0x592d95=_0x5a56de['plugins']['get']('TrackChangesEditing');_0x5a56de['plugins']['has']('UndoEditing')&&(_0x592d95['enableCommand']('undo'),_0x592d95['enableCommand']('redo'));}}class Ut extends _0x4bb77d{static get['requires'](){return[Nt];}['afterInit'](){const _0x5a99da=this['editor'];if(!_0x5a99da['plugins']['has']('TableCaptionEditing'))return;_0x5a99da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x4bb77d{['tableProperties'];['tableCellProperties'];constructor(_0x2c4b3b){super(_0x2c4b3b),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x2c4b3b['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2bc602=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x7afd98 of this['tableProperties'])_0x2bc602['enableCommand'](_0x7afd98,(_0x85727d,_0x20a51f)=>{const _0x11b984=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x7afd98,[_0x11b984],this['tableProperties'],'tableProperties',_0x85727d,_0x20a51f);});_0x2bc602['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2bc602['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bc602['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x15d8e7,_0x38e808)=>this['handleDiscardAction'](this['tableProperties'],_0x15d8e7,_0x38e808)),_0x2bc602['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3ad1ee of this['tableCellProperties'])this['editor']['commands']['get'](_0x3ad1ee)&&_0x2bc602['enableCommand'](_0x3ad1ee,(_0x4b3ab3,_0x5ef0fa)=>{const _0xebe29f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3ad1ee,_0xebe29f,this['tableCellProperties'],'tableCellProperties',_0x4b3ab3,_0x5ef0fa);});_0x2bc602['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2bc602['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bc602['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x183524,_0x14ef9b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x183524,_0x14ef9b)),_0x2bc602['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x2bc602['registerBlockAttribute']('tableCellType'),_0x2bc602['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x2bc602['descriptionFactory']['registerDescriptionCallback'](_0x244eda=>this['handleSuggestionDescription'](_0x244eda)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xf1be1e,_0x21a7fd,_0x25addf,_0xb69f84,_0x32adbf,_0x83c3a8){const _0x417090=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x83c3a8['batch'],()=>{for(const _0x5b5e92 of _0x21a7fd){if(this['_getSuggestion'](_0x5b5e92,_0xb69f84))_0x32adbf(_0x83c3a8);else{const _0x9a71b1={};for(const _0x221a2e of _0x25addf){const _0x1d88fa=_0x5b5e92['getAttribute'](_0x221a2e);void 0x0!==_0x1d88fa&&(_0x9a71b1[_0x221a2e]=_0x1d88fa);}_0x32adbf(_0x83c3a8),_0x417090['markBlockFormat'](_0x5b5e92,{'commandParams':[_0x9a71b1]},[],_0xb69f84);}}});}['handleDiscardAction'](_0x88ebad,_0x2a391c,_0xff1014){const _0x5c540b=_0x2a391c[0x0]['start']['nodeAfter'],_0x30bc84=_0xff1014['commandParams'][0x0];this['editor']['model']['change'](_0x4f36da=>{for(const _0xfa75fa of _0x88ebad)void 0x0!==_0x30bc84[_0xfa75fa]?_0x4f36da['setAttribute'](_0xfa75fa,_0x30bc84[_0xfa75fa],_0x5c540b):_0x4f36da['removeAttribute'](_0xfa75fa,_0x5c540b);});}['handleSuggestionDescription'](_0x2a4a99){if(_0x2a4a99['data'])switch(_0x2a4a99['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'](_0xb54b5a,_0x1ab9db){const _0x31e0a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x37dca7 of _0x31e0a5['getSuggestions']({'skipNotAttached':!0x0})){const _0x5aa3a2=_0x37dca7['getContainedElement']();if(_0x37dca7['subType']===_0x1ab9db&&_0x5aa3a2===_0xb54b5a)return _0x37dca7;}return null;}['_registerTablePropertiesAttributes'](){const _0x22cad2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4766dc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1d3f43 of _0x4766dc){const _0x570a80=_0x1d3f43['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x22cad2['descriptionFactory']['registerAttributeLabel'](_0x1d3f43,o(this['editor']['locale'],'FORMAT_'+_0x570a80));}}}class Ft extends _0x4bb77d{['afterInit'](){const _0x1fa88e=this['editor'];if(!_0x1fa88e['plugins']['has']('LineHeight'))return;const _0x1273ae=_0x1fa88e['plugins']['get']('TrackChangesEditing'),_0x247d95=_0x1fa88e['locale'];_0x1273ae['enableDefaultAttributesIntegration']('lineHeight'),_0x1273ae['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x247d95,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4bb77d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x4f0c6c,_0xeb019b,_0x4113e6,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bb4f8){super(_0x4bb4f8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x8dfedd,_0x581265,_0x2d140e,_0x3e2f8e)=>{this['_model']['change'](()=>{for(const _0x36d1ca of[..._0x3e2f8e,..._0x2d140e])this['_model']['markers']['has'](_0x36d1ca)&&_0x4bb4f8['editing']['reconvertMarker'](_0x36d1ca);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4bb4f8['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4bb4f8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4bb4f8['config']['get']('trackChanges.trackFormatChanges'),_0x4bb4f8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4bb4f8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x4bb4f8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4ba5b9=this['editor'];_0x4ba5b9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe9a347,{writer:_0x40325e})=>{let _0x16c3f5='suggestion:'+_0xe9a347['getAttribute']('suggestion-type')+':'+_0xe9a347['getAttribute']('id');return _0xe9a347['getAttribute']('marker-count')&&(_0x16c3f5+=':'+_0xe9a347['getAttribute']('marker-count')),_0x40325e['createElement']('$marker',{'data-name':_0x16c3f5});}}),_0x4ba5b9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4ba5b9['model']['document']['registerPostFixer'](_0x451bd2=>{let _0x1889fd=!0x1;const _0x4185ca=Array['from'](_0x4ba5b9['model']['document']['differ']['getChangedMarkers']()),_0x2a12cf=new Set();for(const {name:_0x3ed429,data:_0x310729}of _0x4185ca){const {group:_0x55467f,type:_0x59cdbe,subType:_0x353b61,id:_0x3a8604}=this['_splitMarkerName'](_0x3ed429);if('suggestion'!==_0x55467f)continue;const _0x2fdd9a=_0x353b61?'suggestion:'+_0x59cdbe+':'+_0x353b61+':'+_0x3a8604:'suggestion:'+_0x59cdbe+':'+_0x3a8604,_0x1ae357=_0x4ba5b9['model']['markers']['getMarkersGroup'](_0x2fdd9a),_0x2279cd=_0x4ba5b9['model']['markers']['get'](_0x3ed429),_0x542ca3=this['_suggestions']['get'](_0x3a8604);if(null!=_0x310729['newRange']){'formatInline'==_0x59cdbe&&(_0x1889fd=_0x1889fd||Wt(_0x310729['newRange'],_0x3ed429,_0x451bd2,_0x4ba5b9['model']['schema']));const _0x1383b3='attribute'==_0x59cdbe&&this['_isBlockAttribute'](_0x353b61['split']('|')[0x0]),_0x256a8b='attribute'==_0x59cdbe&&this['_isInlineAttribute'](_0x353b61['split']('|')[0x0]);if(_0x310729['newRange']['isCollapsed']||'$graveyard'==_0x310729['newRange']['root']['rootName']||'formatBlock'==_0x59cdbe&&!Qt(_0x310729['newRange'])||_0x1383b3&&!Qt(_0x310729['newRange'])||_0x256a8b&&Xt(_0x310729['newRange'])||'deletion'==_0x59cdbe&&Xt(_0x310729['newRange'])||_0x2279cd&&Yt(_0x2279cd,_0x1ae357))_0x451bd2['removeMarker'](_0x3ed429),_0x1889fd=!0x0;else{if(!_0x542ca3||!_0x542ca3['isInContent'])continue;if(_0x310729['newRange']&&_0x310729['oldRange']&&_0x310729['newRange']['isEqual'](_0x310729['oldRange']))continue;_0x2a12cf['add'](_0x542ca3);}}}return _0x2a12cf['size']>0x0&&(_0x1889fd=!!this['_joinWithAdjacentSuggestions'](_0x2a12cf)||_0x1889fd),_0x1889fd;}),_0x4ba5b9['model']['document']['registerPostFixer'](_0xd2264=>{let _0x408da4=!0x1;for(const _0x80be70 of _0x4ba5b9['model']['document']['differ']['getChanges']())if('insert'==_0x80be70['type'])for(const _0x2a2bde of this['_suggestions']['values']()){if(_0x2a2bde['isMultiRange']||!_0x2a2bde['isInContent'])continue;const _0x5ab27d='formatBlock'==_0x2a2bde['type'],_0x2cfedf=this['_getAttributeKey'](_0x2a2bde),_0x4fcea8=_0x2cfedf&&this['_isBlockAttribute'](_0x2cfedf);if(!_0x5ab27d&&!_0x4fcea8)continue;const _0x2819b6=_0x2a2bde['getFirstRange']();if(_0x2819b6['start']['parent']!=_0x2819b6['end']['parent']&&!_0x2819b6['end']['isAtEnd']){const _0x4d8044=_0x4ba5b9['model']['createPositionAt'](_0x2819b6['start']['nodeAfter'],'end'),_0x52aa58=_0x4ba5b9['model']['createRange'](_0x2819b6['start'],_0x4d8044);_0xd2264['updateMarker'](_0x2a2bde['getFirstMarker'](),{'range':_0x52aa58}),_0x408da4=!0x0;}}return _0x408da4;}),_0x4ba5b9['model']['document']['registerPostFixer'](_0xf7ed0f=>this['_processAttributeChanges'](_0xf7ed0f)),_0x4ba5b9['model']['document']['registerPostFixer'](_0x5eeb22=>!_0x5eeb22['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5eeb22)),_0x4ba5b9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4ba5b9['model']['document']['on']('change:data',(_0xd8c500,_0x877a9d)=>{if(!_0x877a9d['isLocal']||_0x877a9d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5aad31=_0x4ba5b9['model']['document']['differ']['getChanges']();if(0x0==_0x5aad31['length'])return;const _0x2f93ac=[],_0x157ea3=_0x5aad31['filter'](_0x262e81=>'attribute'==_0x262e81['type']),_0x1685c9=_0x5aad31['filter'](_0x2b5b81=>'insert'==_0x2b5b81['type']&&'$text'!=_0x2b5b81['name']);for(const _0x2f80ad of _0x157ea3)this['_isRegisteredAttribute'](_0x2f80ad['attributeKey'])&&_0x2f93ac['push']({'key':_0x2f80ad['attributeKey'],'newValue':_0x2f80ad['attributeNewValue'],'oldValue':_0x2f80ad['attributeOldValue'],'range':Zt(_0x2f80ad['range'],_0x4ba5b9['model'])});for(const _0x2359a5 of _0x1685c9){if('rename'!=_0x2359a5['action']&&'refresh'!=_0x2359a5['action'])continue;const _0x376d78=tn(_0x2359a5['position']['nodeAfter'],_0x4ba5b9['model']),_0x1d2e79=_0x2359a5['before'];'rename'==_0x2359a5['action']&&_0x2f93ac['push']({'key':m,'newValue':_0x2359a5['name'],'oldValue':_0x1d2e79['name'],'range':_0x376d78});for(const [_0x2d09bb,_0xcdb7f0]of _0x1d2e79['attributes']){if(!this['_isRegisteredAttribute'](_0x2d09bb))continue;const _0x4c9100=_0x2359a5['attributes']['get'](_0x2d09bb);_0xcdb7f0!==_0x4c9100&&_0x2f93ac['push']({'key':_0x2d09bb,'newValue':_0x4c9100,'oldValue':_0xcdb7f0,'range':_0x376d78});}for(const [_0x241606,_0x3c20ef]of _0x2359a5['attributes'])this['_isRegisteredAttribute'](_0x241606)&&(_0x1d2e79['attributes']['has'](_0x241606)||_0x2f93ac['push']({'key':_0x241606,'newValue':_0x3c20ef,'oldValue':null,'range':_0x376d78}));}0x0!=_0x2f93ac['length']&&_0x4ba5b9['model']['enqueueChange'](_0x877a9d,_0x37fd91=>{const _0x9f463e=_0x55a083();for(const {range:_0x9e1dbe,key:_0x5ccc0b,oldValue:_0x5b6844,newValue:_0x3ec6dc}of _0x2f93ac)this['markAttributeChange'](_0x9e1dbe,_0x5ccc0b,_0x5b6844,_0x3ec6dc,{'groupId':_0x9f463e});this['_reduceExistingSuggestions'](_0x37fd91,_0x2f93ac);});},{'priority':'lowest'}),_0x4ba5b9['model']['markers']['on']('update:suggestion',(_0x20b860,_0x46f07a,_0x2dd9cc)=>{if(null==_0x2dd9cc){const {id:_0xe544d4}=this['_splitMarkerName'](_0x46f07a['name']),_0x5de0cb=this['_suggestions']['get'](_0xe544d4);_0x5de0cb&&_0x5de0cb['addMarkerName'](_0x46f07a['name']);}}),_0x4ba5b9['model']['document']['on']('change:data',()=>{const _0x171875=Array['from'](_0x4ba5b9['model']['document']['differ']['getChangedMarkers']())['filter'](_0xe8b0d=>'suggestion'===this['_splitMarkerName'](_0xe8b0d['name'])['group']);if(0x0===_0x171875['length'])return;_0x171875['sort']((_0x48970e,_0x52eef7)=>{const _0x3fb901=_0x48970e['data']['oldRange'],_0x5935dd=_0x52eef7['data']['oldRange'];return null===_0x3fb901&&null===_0x5935dd?0x0:null===_0x3fb901&&null!==_0x5935dd?-0x1:null!==_0x3fb901&&null===_0x5935dd?0x1:_0x3fb901['start']['isBefore'](_0x5935dd['start'])?-0x1:0x1;});const _0x228a53=new Set(),_0x52fbae=new Set();for(const {name:_0x19527a,data:_0x2c86d1}of _0x171875){const {id:_0x524cac}=this['_splitMarkerName'](_0x19527a);if(null===_0x2c86d1['oldRange']){const _0x97a374=this['_handleNewSuggestionMarker'](_0x19527a);_0x52fbae['add'](_0x97a374);}else{const _0x18cfcc=this['_suggestions']['get'](_0x524cac);null!==_0x2c86d1['newRange']||_0x18cfcc['isInContent']?(_0x228a53['add'](_0x18cfcc['head']),_0x52fbae['add'](_0x18cfcc)):this['_removeSuggestion'](_0x18cfcc);}}_0x52fbae['size']>0x0&&this['_refreshSuggestionsChain'](_0x52fbae);for(const _0x114bf7 of _0x228a53)this['fire']('suggestionChanged',_0x114bf7);}),_0x4ba5b9['model']['on']('applyOperation',(_0x331785,_0x441c6d)=>{const _0x366eff=_0x441c6d[0x0];if(!this['_suggestions']['size'])return;if(!_0x366eff['isDocumentOperation'])return;if(_0x366eff['batch']['isUndo']||!_0x366eff['batch']['isLocal'])return;let _0x2d0250,_0x55d83d;switch(_0x366eff['type']){case'insert':_0x2d0250=_0x4ba5b9['model']['createPositionAt'](_0x366eff['position']),_0x55d83d=_0x2d0250['getShiftedBy'](_0x366eff['howMany']);break;case'split':_0x2d0250=_0x4ba5b9['model']['createPositionAt'](_0x366eff['splitPosition']),_0x55d83d=_0x4ba5b9['model']['createPositionAt'](_0x366eff['moveTargetPosition']);break;case'move':_0x2d0250=_0x4ba5b9['model']['createPositionAt'](_0x366eff['targetPosition']),_0x55d83d=_0x2d0250['getShiftedBy'](_0x366eff['howMany']);break;default:return;}const _0x5287bc=_0x4ba5b9['model']['createRange'](_0x2d0250,_0x55d83d);_0x4ba5b9['model']['change'](()=>{for(const {suggestion:_0xe719ee,meta:_0x167b56}of this['_findSuggestions'](_0x5287bc)){if(_0xe719ee['isMultiRange'])continue;if('formatInline'==_0xe719ee['type'])continue;const _0x5319ef=this['_getAttributeKey'](_0xe719ee);if(_0x5319ef&&this['_isBlockAttribute'](_0x5319ef)&&'split'!=_0x366eff['type'])continue;const _0x27c0e0=_0xe719ee['data']&&_0xe719ee['data']['multipleBlocks'];('formatBlock'!=_0xe719ee['type']||'split'==_0x366eff['type']&&!_0x27c0e0)&&(_0x167b56['containsRangeInObject']||'insertion'==_0xe719ee['type']&&_0x167b56['isOwn']||_0xe719ee['getFirstRange']()['containsRange'](_0x5287bc)&&this['_breakSuggestionMarker'](_0xe719ee,_0x2d0250,_0x55d83d));}});},{'priority':'lowest'}),_0x4ba5b9['model']['on']('deleteContent',(_0x2ce4ba,_0x29d8ba)=>{const _0x4139ce=_0x29d8ba[0x0],_0x412cfe=_0x29d8ba[0x1];if(_0x412cfe&&_0x412cfe['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4139ce['isCollapsed'])return;const _0x38b0d2=_0x4ba5b9['model']['schema'],{start:_0x582698,end:_0x5857d4}=_0x4139ce['getFirstRange'](),_0x254d9e=_0x582698['nodeAfter']&&_0x38b0d2['isLimit'](_0x582698['nodeAfter'])?null:_0x38b0d2['getNearestSelectionRange'](_0x582698,'forward'),_0x161c2f=_0x5857d4['nodeBefore']&&_0x38b0d2['isLimit'](_0x5857d4['nodeBefore'])?null:_0x38b0d2['getNearestSelectionRange'](_0x5857d4,'backward'),_0x3ad179=_0x4ba5b9['model']['createRange'](_0x254d9e?_0x254d9e['start']:_0x582698,_0x161c2f?_0x161c2f['end']:_0x5857d4);_0x4ba5b9['model']['change'](_0x4377a8=>{this['markDeletion'](_0x3ad179);const _0x22d500=_0x4ba5b9['model']['schema']['getNearestSelectionRange'](_0x3ad179['start']);_0x4139ce['is']('documentSelection')?_0x4377a8['setSelection'](_0x22d500):_0x4139ce['setTo'](_0x22d500);}),_0x2ce4ba['stop']();},{'priority':_0x58b2a5['normal']+0xa}),_0x4ba5b9['model']['on']('insertContent',(_0x5b459f,_0x5764a7)=>{const _0x53b5ed=_0x5764a7[_0x5764a7['length']-0x1];_0x53b5ed&&_0x53b5ed['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4ba5b9['model']['change'](()=>{let _0x5024d6=_0x4ba5b9['model']['insertContent'](_0x5764a7[0x0],_0x5764a7[0x1],_0x5764a7[0x2],{'forceDefaultExecution':!0x0});if(!_0x5024d6)return;_0x5b459f['return']=_0x5024d6['clone']();const _0x1aaa9b=_0x5024d6['end']['nodeBefore'],_0x3b9dab=_0x4ba5b9['model']['schema'];_0x1aaa9b&&_0x3b9dab['isBlock'](_0x1aaa9b)&&!_0x3b9dab['isObject'](_0x1aaa9b)&&(_0x5024d6=_0x4ba5b9['model']['createRange'](_0x5024d6['start'],_0x4ba5b9['model']['createPositionAt'](_0x1aaa9b,'end'))),this['markInsertion'](_0x5024d6);}),_0x5b459f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4b3c7f=new v(_0x4ba5b9,this['_suggestions']);_0x4ba5b9['commands']['add']('acceptSuggestion',_0x4b3c7f),this['enableCommand']('acceptSuggestion');const _0x3f2e13=new D(_0x4ba5b9,this['_suggestions']);_0x4ba5b9['commands']['add']('discardSuggestion',_0x3f2e13),this['enableCommand']('discardSuggestion'),_0x4ba5b9['commands']['add']('acceptAllSuggestions',new B(_0x4ba5b9,_0x4b3c7f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4ba5b9['commands']['add']('discardAllSuggestions',new B(_0x4ba5b9,_0x3f2e13,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4ba5b9['commands']['add']('acceptSelectedSuggestions',new O(_0x4ba5b9,_0x4b3c7f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4ba5b9['commands']['add']('discardSelectedSuggestions',new O(_0x4ba5b9,_0x3f2e13,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xc14cc0=_0x4ba5b9['plugins']['get']('CommentsRepository');this['listenTo'](_0xc14cc0,'addComment',(_0x4ea760,{threadId:_0x498a7c})=>{const _0x531012=this['_suggestions']['get'](_0x498a7c);_0x531012&&_0x531012['commentThread']&&0x1===_0x531012['commentThread']['length']&&this['_updateSuggestionData'](_0x498a7c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xc14cc0,'removeComment',(_0x5530a9,{threadId:_0x448822})=>{const _0x265af3=this['_suggestions']['get'](_0x448822);_0x265af3&&_0x265af3['commentThread']&&!_0x265af3['commentThread']['length']&&this['_updateSuggestionData'](_0x448822,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x8593cb){const _0xbba903=_0x299797([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x505377=0x3d8d0df,_0x2522b2=0x3dfae5f^_0x505377,_0x1f4572=window[_0x299797([0x44,0x61,0x74,0x65])][_0x299797([0x6e,0x6f,0x77])](),_0x49920d=_0x8593cb[_0x299797([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c9a58=new window[(_0x299797([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48bf57=>{_0x49920d[_0x299797([0x6f,0x6e,0x63,0x65])](_0x299797([0x72,0x65,0x61,0x64,0x79]),_0x48bf57);}),_0x238c5c={[_0x299797([0x6b,0x74,0x79])]:_0x299797([0x45,0x43]),[_0x299797([0x75,0x73,0x65])]:_0x299797([0x73,0x69,0x67]),[_0x299797([0x63,0x72,0x76])]:_0x299797([0x50,0x2d,0x32,0x35,0x36]),[_0x299797([0x78])]:_0x299797([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]),[_0x299797([0x79])]:_0x299797([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]),[_0x299797([0x61,0x6c,0x67])]:_0x299797([0x45,0x53,0x32,0x35,0x36])},_0x1176b6=_0x49920d[_0x299797([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x299797([0x67,0x65,0x74])](_0x299797([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x194230(){let _0x1947ef,_0x26b5d8=null,_0x6af765=null;try{if(_0x1176b6==_0x299797([0x47,0x50,0x4c]))return _0x299797([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1947ef=_0x287a8b(),!_0x1947ef)return _0x299797([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1947ef[_0x299797([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6af765=_0x404088(_0x1947ef[_0x299797([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1947ef[_0x299797([0x6a,0x74,0x69])])),await _0x2b6749()?_0x2c6e45()?_0x1c9c57()?_0x299797([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5abade()?(_0x1947ef[_0x299797([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x299797([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26b5d8=_0x340824(_0x299797([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e9a3a()):_0x299797([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x299797([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x299797([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x299797([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c9c57(){const _0x1c7fd0=[_0x299797([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x299797([0x74,0x72,0x69,0x61,0x6c])][_0x299797([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1947ef[_0x299797([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f4572/0x3e8:0xe10*_0x2522b2;return _0x1947ef[_0x299797([0x65,0x78,0x70])]<_0x1c7fd0;}function _0x2c6e45(){const _0x282cf6=_0x1947ef[_0x299797([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x282cf6)return!0x1;if(_0x282cf6[_0x299797([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299797([0x2a])))return!0x0;if(_0x282cf6[_0x299797([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299797([0x54,0x43])))return!0x0;if(_0x282cf6[_0x299797([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299797([0x52,0x54,0x43]))){if(_0x778d12())return!0x0;if(_0x47aa0b()||_0x58c375())return!0x0;}return!0x1;}function _0x5abade(){const _0x40c8dd=_0x1947ef[_0x299797([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40c8dd||0x0==_0x40c8dd[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b8b68}=new URL(window[_0x299797([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x40c8dd[_0x299797([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b8b68))return!0x0;const _0x2ac1a3=_0x4b8b68[_0x299797([0x73,0x70,0x6c,0x69,0x74])](_0x299797([0x2e]));return _0x40c8dd[_0x299797([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f9da4=>_0x4f9da4[_0x299797([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299797([0x2a])))[_0x299797([0x6d,0x61,0x70])](_0x4fecf5=>_0x4fecf5[_0x299797([0x73,0x70,0x6c,0x69,0x74])](_0x299797([0x2e])))[_0x299797([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x350c6d=>_0x350c6d[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ac1a3[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x299797([0x6d,0x61,0x70])](_0x2a51d5=>Array(_0x2ac1a3[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2a51d5[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x299797([0x66,0x69,0x6c,0x6c])](_0x2a51d5[0x0]===_0x299797([0x2a])?_0x299797([0x2a]):'')[_0x299797([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2a51d5))[_0x299797([0x73,0x6f,0x6d,0x65])](_0x530795=>_0x2ac1a3[_0x299797([0x65,0x76,0x65,0x72,0x79])]((_0x52e7d3,_0x4e8d51)=>_0x530795[_0x4e8d51]===_0x52e7d3||_0x530795[_0x4e8d51]===_0x299797([0x2a])));}function _0x1e9a3a(){return _0x26b5d8&&_0x6af765?new window[(_0x299797([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48d01b,_0x18bc46)=>{_0x26b5d8[_0x299797([0x74,0x68,0x65,0x6e])](_0x48d01b,_0x18bc46),_0x6af765[_0x299797([0x74,0x68,0x65,0x6e])](_0x2bd6ec=>{_0x2bd6ec!=_0x299797([0x56,0x61,0x6c,0x69,0x64])&&_0x48d01b(_0x2bd6ec);},_0x18bc46);}):_0x26b5d8||_0x6af765||_0x299797([0x56,0x61,0x6c,0x69,0x64]);}}function _0x404088(_0x1ac592,_0x246111){return new window[(_0x299797([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfdcd24=>{if(_0x1f119a())return _0xfdcd24(_0x299797([0x56,0x61,0x6c,0x69,0x64]));_0x4e8c9b(),_0x49920d[_0x299797([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x299797([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb5c267=!0x1;const _0x28e1d0=_0x55a083();function _0x2cb41a(_0x197cba){return!!_0x197cba&&(typeof _0x197cba===_0x299797([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x197cba===_0x299797([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x197cba[_0x299797([0x74,0x68,0x65,0x6e])]===_0x299797([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x197cba[_0x299797([0x63,0x61,0x74,0x63,0x68])]===_0x299797([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2411eb(_0x42b81c){_0x26a32e(_0x42b81c)[_0x299797([0x74,0x68,0x65,0x6e])](_0x4cc677=>{if(!_0x4cc677||_0x4cc677[_0x299797([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x299797([0x6f,0x6b]))return _0x299797([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6a4ba4(_0x47ba8b(_0x28e1d0+_0x246111))!=_0x4cc677[_0x299797([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x299797([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x299797([0x56,0x61,0x6c,0x69,0x64]);})[_0x299797([0x74,0x68,0x65,0x6e])](_0x4cb6f2=>(_0x45b54e(),_0x4cb6f2),()=>{const _0x436a26=_0x42cb1c();return null==_0x436a26?(_0x45b54e(),_0x299797([0x56,0x61,0x6c,0x69,0x64])):_0x299797(_0x1f4572-_0x436a26>(0x27d454df^_0x505377)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x299797([0x74,0x68,0x65,0x6e])](_0xfdcd24)[_0x299797([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfdcd24(_0x299797([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x814983=0x3ee3e5f^_0x505377;function _0x45b54e(){const _0x4afd8e=_0x299797([0x6c,0x6c,0x63,0x74,0x2d])+_0x6a4ba4(_0x47ba8b(_0x1ac592)),_0x311374=_0x1a392f(_0x6a4ba4(window[_0x299797([0x4d,0x61,0x74,0x68])][_0x299797([0x63,0x65,0x69,0x6c])](_0x1f4572/_0x814983)));window[_0x299797([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x299797([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4afd8e,_0x311374);}function _0x42cb1c(){const _0x545048=_0x299797([0x6c,0x6c,0x63,0x74,0x2d])+_0x6a4ba4(_0x47ba8b(_0x1ac592)),_0x4e0533=window[_0x299797([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x299797([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x545048);return _0x4e0533?window[_0x299797([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a392f(_0x4e0533),0x10)*_0x814983:null;}function _0x26a32e(_0xe39611){return new window[(_0x299797([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23913b,_0xe410b7)=>{_0xe39611[_0x299797([0x74,0x68,0x65,0x6e])](_0x23913b,_0xe410b7),window[_0x299797([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe410b7,0x3d9041f^_0x505377);});}}_0x49920d[_0x299797([0x6f,0x6e])](_0x299797([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7050e6,_0x25487c)=>{if(_0x25487c[0x0]!=_0x1ac592)return _0xfdcd24(_0x299797([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x25487c[0x1]={..._0x25487c[0x1],[_0x299797([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28e1d0};},{[_0x299797([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x299797([0x68,0x69,0x67,0x68])}),_0x49920d[_0x299797([0x6f,0x6e])](_0x299797([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x79ddde=>{_0x2cb41a(_0x79ddde[_0x299797([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb5c267=!0x0,_0x2411eb(_0x79ddde[_0x299797([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x299797([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x299797([0x6c,0x6f,0x77])}),_0x1c9a58[_0x299797([0x74,0x68,0x65,0x6e])](()=>{_0xb5c267||_0xfdcd24(_0x299797([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1f119a(){return _0x49920d[_0x299797([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x299797([0x76,0x69,0x65,0x77])][_0x299797([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x299797([0x61,0x75,0x74,0x6f]);}function _0x4e8c9b(){_0x49920d[_0x299797([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x299797([0x76,0x69,0x65,0x77])][_0x299797([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x299797([0x61,0x75,0x74,0x6f]);}}function _0x340824(_0x15dbfd){const _0x33c4b3=[new window[(_0x299797([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e36f9=>setTimeout(_0x2e36f9,0x3d1ee13^_0x505377)),_0x1c9a58[_0x299797([0x74,0x68,0x65,0x6e])](()=>new window[(_0x299797([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb64f29=>{let _0x574b9c=0x0;_0x49920d[_0x299797([0x6d,0x6f,0x64,0x65,0x6c])][_0x299797([0x6f,0x6e])](_0x299797([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c6539,_0x5cd383)=>{_0x5cd383[0x0][_0x299797([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x574b9c++,_0x574b9c==(0x3d8d537^_0x505377)&&(_0xb64f29(),_0x1c6539[_0x299797([0x6f,0x66,0x66])]());});}))];return window[_0x299797([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x299797([0x72,0x61,0x63,0x65])](_0x33c4b3)[_0x299797([0x74,0x68,0x65,0x6e])](()=>_0x15dbfd);}async function _0x1ec373(){await _0x1c9a58,_0x49920d[_0x299797([0x6d,0x6f,0x64,0x65,0x6c])][_0x299797([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b99de,_0x49920d[_0x299797([0x6d,0x6f,0x64,0x65,0x6c])][_0x299797([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b99de,_0x49920d[_0x299797([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x299797([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x778d12(){return _0x3604ec(_0x299797([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1a92c9(_0x299797([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x299797([0x73,0x74,0x61,0x74,0x65])]==_0x299797([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x47aa0b(){return _0x3604ec(_0x299797([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 _0x58c375(){return _0x3604ec(_0x299797([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ab4b0(_0xd68c18){const _0x295590=_0x6d6c86();_0x49920d[_0x295590]=_0x299797([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd68c18,_0xd68c18!=_0x299797([0x56,0x61,0x6c,0x69,0x64])&&_0x1ec373();}function _0x6d6c86(){const _0x31ec75=window[_0x299797([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x299797([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x299797([0x6e,0x6f,0x77])]())[_0x299797([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x299797([0x2e]),'');let _0x186777=_0x299797([0x52]);for(let _0x4bbd75=0x0;_0x4bbd75<_0x31ec75[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bbd75+=0x2){let _0x5538a9=window[_0x299797([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31ec75[_0x299797([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bbd75,_0x4bbd75+0x2));_0x5538a9>=_0xbba903[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5538a9-=_0xbba903[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x186777+=_0xbba903[_0x5538a9];}return _0x186777;}function _0x287a8b(){const _0x412438=_0x1176b6[_0x299797([0x73,0x70,0x6c,0x69,0x74])](_0x299797([0x2e]));if(0x3!=_0x412438[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x547b6b(_0x412438[0x1]);function _0x547b6b(_0x479d9d){const _0x57978d=_0x21a155(_0x479d9d);return _0x57978d&&_0x187dba()?_0x57978d:null;function _0x187dba(){const _0x5c1582=_0x57978d[_0x299797([0x6a,0x74,0x69])],_0x1d55a1=window[_0x299797([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c1582[_0x299797([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c1582[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18c0a6={..._0x57978d,[_0x299797([0x6a,0x74,0x69])]:_0x5c1582[_0x299797([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c1582[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18c0a6[_0x299797([0x76,0x63])],_0x47ba8b(_0x18c0a6)==_0x1d55a1;}}}async function _0x2b6749(){let _0x5ce273=!0x0;try{const _0x218ddc=_0x1176b6[_0x299797([0x73,0x70,0x6c,0x69,0x74])](_0x299797([0x2e])),[_0x3c45fe,_0x449974,_0xf31929]=_0x218ddc;return _0x2d92da(_0x3c45fe),await _0x53d6fb(_0x3c45fe,_0x449974,_0xf31929),_0x5ce273;}catch{return!0x1;}function _0x2d92da(_0xe01a88){const _0x3b5779=_0x21a155(_0xe01a88);_0x3b5779&&_0x3b5779[_0x299797([0x61,0x6c,0x67])]==_0x299797([0x45,0x53,0x32,0x35,0x36])||(_0x5ce273=!0x1);}async function _0x53d6fb(_0x4c0323,_0x378a40,_0x35fe95){const _0x145c2a=window[_0x299797([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x299797([0x66,0x72,0x6f,0x6d])](_0x4f1378(_0x35fe95),_0x2eacfc=>_0x2eacfc[_0x299797([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4056a2=new window[(_0x299797([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x299797([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c0323+_0x299797([0x2e])+_0x378a40),_0x22394b=window[_0x299797([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x299797([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22394b)return;const _0x20f2d3=await _0x22394b[_0x299797([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x299797([0x6a,0x77,0x6b]),_0x238c5c,{[_0x299797([0x6e,0x61,0x6d,0x65])]:_0x299797([0x45,0x43,0x44,0x53,0x41]),[_0x299797([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x299797([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x299797([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22394b[_0x299797([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x299797([0x6e,0x61,0x6d,0x65])]:_0x299797([0x45,0x43,0x44,0x53,0x41]),[_0x299797([0x68,0x61,0x73,0x68])]:{[_0x299797([0x6e,0x61,0x6d,0x65])]:_0x299797([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x20f2d3,_0x145c2a,_0x4056a2)||(_0x5ce273=!0x1);}}function _0x21a155(_0x40ebdb){return _0x40ebdb[_0x299797([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x299797([0x65,0x79]))?JSON[_0x299797([0x70,0x61,0x72,0x73,0x65])](_0x4f1378(_0x40ebdb)):null;}function _0x4f1378(_0x4c2bad){return window[_0x299797([0x61,0x74,0x6f,0x62])](_0x4c2bad[_0x299797([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x299797([0x2b]))[_0x299797([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x299797([0x2f])));}function _0x47ba8b(_0x1911d4){let _0x2ef23b=0x1505;function _0x2fa599(_0x4c12fc){for(let _0x1d15fb=0x0;_0x1d15fb<_0x4c12fc[_0x299797([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d15fb++){const _0x107bd5=_0x4c12fc[_0x299797([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d15fb);_0x2ef23b=(_0x2ef23b<<0x5)+_0x2ef23b+_0x107bd5,_0x2ef23b&=_0x2ef23b;}}function _0x5ca927(_0x1bd439){Array[_0x299797([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bd439)?_0x1bd439[_0x299797([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ca927):_0x1bd439&&typeof _0x1bd439==_0x299797([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x299797([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bd439)[_0x299797([0x73,0x6f,0x72,0x74])]()[_0x299797([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e2532,_0x147787])=>{_0x2fa599(_0x2e2532),_0x5ca927(_0x147787);}):_0x2fa599(window[_0x299797([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bd439));}return _0x5ca927(_0x1911d4),_0x2ef23b>>>0x0;}function _0x6a4ba4(_0x3730d7){return _0x3730d7[_0x299797([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x299797([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x299797([0x30]));}function _0x1a392f(_0x5510d4){return _0x5510d4[_0x299797([0x73,0x70,0x6c,0x69,0x74])]('')[_0x299797([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x299797([0x6a,0x6f,0x69,0x6e])]('');}function _0x3604ec(_0x12c0b9){return _0x49920d[_0x299797([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x299797([0x68,0x61,0x73])](_0x12c0b9);}function _0x1a92c9(_0x1f8296){return _0x49920d[_0x299797([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x299797([0x67,0x65,0x74])](_0x1f8296);}function _0x1b99de(){}function _0x299797(_0x388595){return _0x388595['map'](_0x231b2c=>String['fromCharCode'](_0x231b2c))['join']('');}_0x1ab4b0(await _0x194230());}(this);}set['adapter'](_0x1c98d4){if(this['_adapter'])throw new _0x38b249('track-changes-adapter-already-set',this);this['_adapter']=_0x1c98d4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x375ffb=!0x1,toJSON:_0x14a529=!0x1}={}){const _0x9aea43=[];for(const _0x2e004f of this['_suggestions']['values']())_0x375ffb&&!_0x2e004f['isInContent']||_0x9aea43['push'](_0x2e004f);return _0x14a529?_0x9aea43['map'](_0x4c1579=>_0x4c1579['toJSON']()):_0x9aea43;}['getSuggestion'](_0x317f71){const _0x10c5a2=this['_suggestions']['get'](_0x317f71);if(!_0x10c5a2)throw new _0x38b249('track-changes-suggestion-not-found',this);return _0x10c5a2;}['hasSuggestion'](_0x3c5239){return this['_suggestions']['has'](_0x3c5239);}['addSuggestionData'](_0x13a3cd){const {authorId:_0x25b01f,id:_0x29ace6,originalSuggestionId:_0x1e31b0,attributes:_0x5e055c}=_0x13a3cd,[_0x4a388e,_0x5620d3]=_0x13a3cd['type']['split'](':'),_0x45d323=this['_suggestions']['get'](_0x29ace6)||this['_createSuggestion'](_0x4a388e,_0x5620d3,_0x29ace6,_0x25b01f,_0x5e055c,_0x1e31b0);if(this['_addThreadToSuggestion'](_0x45d323),this['_checkSuggestionCorrectness'](_0x45d323,_0x4a388e,_0x5620d3||null,_0x25b01f),_0x45d323['createdAt']=_0x13a3cd['createdAt'],_0x45d323['_isDataLoaded']=!0x0,_0x5e055c&&_0x5e055c['@external']){const _0x942b53=_0x5e055c['@external'],_0x43c293=this['_getExternalAuthor'](_0x942b53['authorName']);_0x45d323['authoredAt']=_0x942b53['createdAt'],_0x45d323['author']=_0x43c293,_0x45d323['isExternal']=!0x0;}else _0x45d323['authoredAt']=_0x13a3cd['createdAt'];switch(_0x13a3cd['data']&&(_0x45d323['data']=_0x13a3cd['data']),_0x13a3cd['attributes']&&(_0x45d323['attributes']=_0x13a3cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x45d323['_saved']=!0x0),this['_suggestionState']['get'](_0x45d323)){case'notReady':this['_suggestionState']['set'](_0x45d323,'dataReady');break;case'markerReady':_0x45d323['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x45d323])),this['_refreshSuggestionsChain'](new Set([_0x45d323])),this['_suggestionState']['set'](_0x45d323,'ready'),this['fire']('suggestionLoaded',_0x45d323)):this['_suggestionState']['set'](_0x45d323,'removed');}return _0x45d323;}['acceptSuggestion'](_0x558ed5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1a1eb0 of _0x558ed5['getAllAdjacentSuggestions']())_0x1a1eb0['accept']();});});}['discardSuggestion'](_0x2fff8c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x424610 of _0x2fff8c['getAllAdjacentSuggestions']())_0x424610['discard']();});});}['enableCommand'](_0xe4fd25,_0x509211){const _0x4b6ae4=this['editor']['commands']['get'](_0xe4fd25);if(!_0x4b6ae4)throw new _0x38b249('track-changes-command-not-found',this,{'commandName':_0xe4fd25});if(this['_enabledCommands']['has'](_0x4b6ae4))throw new _0x38b249('track-changes-enable-command-twice',this,{'commandName':_0xe4fd25});this['_enabledCommands']['add'](_0x4b6ae4),_0x509211&&_0x4b6ae4['on']('execute',(_0x5322fa,_0x5f3d20)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5f3d20['length']>0x0&&_0x5f3d20[_0x5f3d20['length']-0x1]&&_0x5f3d20[_0x5f3d20['length']-0x1]['forceDefaultExecution']?_0x5f3d20['pop']():(_0x5322fa['return']=_0x509211((..._0x375485)=>_0x4b6ae4['execute'](..._0x375485,{'forceDefaultExecution':!0x0}),..._0x5f3d20),_0x5322fa['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1b212b){let _0x155635,_0x466908;const _0x986b53=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x155635=_0x1b212b();}catch(_0x45eea4){_0x466908=_0x45eea4;}return _0x986b53||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x466908&&_0x38b249['rethrowUnexpectedError'](_0x466908,this),_0x155635;}['markInsertion'](_0x1cf9d0,_0x5397e8=null,_0x59df38={}){if(_0x1cf9d0['isCollapsed'])return null;const _0x3fc8bf=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x59df38['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x32e849,meta:_0xcbe8bd}of this['_findSuggestions'](_0x1cf9d0,'insertion'))if(_0xcbe8bd['isOwn']){if(!_0xcbe8bd['isNextTo']){if(_0xcbe8bd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x32e849,_0x59df38))continue;return _0x32e849;}if(sn(_0x32e849,_0x59df38))return _0x32e849;this['_breakSuggestionMarker'](_0x32e849,_0x1cf9d0['start'],_0x1cf9d0['end']);break;}if(_0x5397e8==_0x32e849['subType']&&sn(_0x32e849,_0x59df38)){const _0x41c9d5=_0x32e849['getFirstRange']();return _0x41c9d5['start']['isEqual'](_0x1cf9d0['end'])?this['_setSuggestionRange'](_0x32e849,this['_model']['createRange'](_0x1cf9d0['start'],_0x41c9d5['end'])):this['_setSuggestionRange'](_0x32e849,this['_model']['createRange'](_0x41c9d5['start'],_0x1cf9d0['end'])),_0x32e849;}}const _0x5470b8=_0x55a083(),_0x2ec621=_0x3fc8bf['id'],_0x45e4e3=_0x5397e8?'insertion:'+_0x5397e8:'insertion',_0x4a5160=this['_setSuggestionData']({'id':_0x5470b8,'type':_0x45e4e3,'createdAt':new Date(),'authorId':_0x2ec621,'attributes':_0x59df38});return this['_addSuggestionMarker'](_0x45e4e3,_0x5470b8,_0x2ec621,_0x1cf9d0),_0x4a5160;}['markMultiRangeInsertion'](_0x4a4c7c,_0x5ad157='multi',_0x266de9={}){const _0xe446f4=this['editor']['plugins']['get']('Users')['me'],_0x347a75=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5ad157,'join');this['_trackingSessionId']&&(_0x266de9['trackingSessionId']=this['_trackingSessionId']);for(const _0x17281f of this['getSuggestions']())if(_0x17281f['author']['id']==_0xe446f4['id']&&'insertion'==_0x17281f['type']&&_0x17281f['subType']==_0x5ad157&&sn(_0x17281f,_0x266de9)&&(_0x347a75(_0x17281f['getRanges'](),_0x4a4c7c)||_0x347a75(_0x4a4c7c,_0x17281f['getRanges']()))){for(const _0x5d0bef of _0x4a4c7c)_0x17281f['addRange'](_0x5d0bef);return _0x17281f;}for(const {suggestion:_0x39f15c,meta:_0x305c3e}of this['_findSuggestions'](_0x4a4c7c,'insertion')){if(!_0x305c3e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x305c3e['containsRangeInObject'])continue;if(!sn(_0x39f15c,_0x266de9))continue;let _0x2d32bb=!0x0;for(const _0x353957 of _0x39f15c['getRanges']())for(const _0x3b1302 of _0x4a4c7c)if(!_0x353957['containsRange'](_0x3b1302)){_0x2d32bb=!0x1;break;}if(_0x2d32bb)return _0x39f15c;}const _0x39e522=_0x55a083(),_0x668964=_0xe446f4['id'],_0xb3ad56='insertion:'+_0x5ad157,_0x1ad6c3=this['_setSuggestionData']({'id':_0x39e522,'type':_0xb3ad56,'createdAt':new Date(),'authorId':_0x668964,'attributes':_0x266de9});for(const _0x2f043c of _0x4a4c7c)this['_addSuggestionMarker'](_0xb3ad56,_0x39e522,_0x668964,_0x2f043c,x['getMultiRangeId']());return _0x1ad6c3;}['markInlineFormat'](_0x5e7868,_0x30de45,_0x36697e=null,_0x2823d1={}){if(_0x36697e=_0x36697e||Ht(_0x30de45),_0x5e7868['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2823d1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x488ca5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x36697e,'accept');return this['forceDefaultExecution'](()=>_0x488ca5([_0x5e7868],_0x30de45,_0x2823d1)),null;}const _0x40034d=this['editor']['plugins']['get']('Users')['me'],_0x20de31=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4db9a4,meta:_0x5f4206}of this['_findSuggestions'](_0x5e7868,'insertion'))_0x5f4206['isOwn']&&!_0x5f4206['isInsideObject']&&_0x20de31['push'](..._0x4db9a4['getRanges']());}const _0x21b051=function(_0x4187,_0x254e47){const _0x44db7c=[];for(const _0x2f323d of _0x254e47){const _0x5151b4=_0x4187['getIntersection'](_0x2f323d);_0x5151b4&&_0x44db7c['push'](_0x5151b4);}return _0x44db7c;}(_0x5e7868,_0x20de31),_0x102b9=function(_0x487f53,_0x420190){const _0x2ae09f=[_0x487f53];for(const _0x28e454 of _0x420190){let _0x276b0d=0x0;for(;_0x276b0d<_0x2ae09f['length'];){const _0x4f96f2=_0x2ae09f[_0x276b0d]['getDifference'](_0x28e454);_0x2ae09f['splice'](_0x276b0d,0x1,..._0x4f96f2),_0x276b0d+=_0x4f96f2['length'];}}return _0x2ae09f;}(_0x5e7868,_0x20de31);_0x21b051['length']&&this['_model']['change'](()=>{for(const _0x5ac463 of _0x21b051){const _0x505d5d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x36697e,'accept');this['forceDefaultExecution'](()=>_0x505d5d([_0x5ac463],_0x30de45,_0x2823d1));}});for(const _0xb82244 of _0x102b9){let _0x40598f=null,_0xe62e78=_0xb82244['start'],_0x2a02a0=_0xb82244['end'];for(const {suggestion:_0x4596e7,meta:_0x36c8a7}of this['_findSuggestions'](_0xb82244,'formatInline')){if(!_0x36c8a7['isOwn'])continue;if(_0x4596e7['subType']!=_0x36697e)continue;if(!sn(_0x4596e7,_0x2823d1))continue;const _0x59e7a4=_0x4596e7['getFirstRange']();if(_0x59e7a4['containsRange'](_0xb82244,!0x0))return null;_0xe62e78=_0xe62e78['isBefore'](_0x59e7a4['start'])?_0xe62e78:_0x59e7a4['start'],_0x2a02a0=_0x2a02a0['isAfter'](_0x59e7a4['end'])?_0x2a02a0:_0x59e7a4['end'],_0x40598f?_0x59e7a4['start']['isBefore'](_0x40598f['getFirstRange']()['start'])?(_0x40598f['removeMarkers'](),_0x40598f=_0x4596e7):_0x4596e7['removeMarkers']():_0x40598f=_0x4596e7;}const _0x3c7ab3=this['_model']['createRange'](_0xe62e78,_0x2a02a0);if(_0x40598f)this['_setSuggestionRange'](_0x40598f,_0x3c7ab3);else{const _0x33f20c=_0x55a083(),_0x4d327b=_0x40034d['id'];this['_setSuggestionData']({'id':_0x33f20c,'type':'formatInline:'+_0x36697e,'data':_0x30de45,'createdAt':new Date(),'authorId':_0x4d327b,'attributes':_0x2823d1}),this['_addSuggestionMarker']('formatInline:'+_0x36697e,_0x33f20c,_0x4d327b,_0x3c7ab3);}}return null;}['markBlockFormat'](_0x341b1b,_0x53a91a,_0x488482=[],_0xddd1a7=null,_0x5d76ba={}){_0x53a91a['formatGroupId']||(_0x53a91a['formatGroupId']=_0x53a91a['commandName']),_0x53a91a['multipleBlocks']=_0x341b1b['is']('range'),_0xddd1a7=_0xddd1a7||Ht(_0x53a91a);const _0x2e2dac=_0x488482['map'](_0x3d9024=>tn(_0x3d9024,this['_model'])),_0x5ad916=_0x341b1b['is']('range')?_0x341b1b:tn(_0x341b1b,this['_model']);if(this['_trackingSessionId']&&(_0x5d76ba['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x23a6a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xddd1a7,'accept');return this['forceDefaultExecution'](()=>_0x23a6a7([_0x5ad916],_0x53a91a,_0x5d76ba)),null;}_0x2e2dac['push'](_0x5ad916);let _0x3bf532=!0x0;for(const _0x59a448 of _0x2e2dac)if(!this['_rangeIsInLocalUserInsertion'](_0x59a448)){_0x3bf532=!0x1;break;}if(_0x3bf532&&'always'!==this['_trackFormatChanges']){const _0x549d08=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xddd1a7,'accept');return this['forceDefaultExecution'](()=>_0x549d08([_0x5ad916],_0x53a91a,_0x5d76ba)),null;}let _0x72bcee=null,_0x7cae2f=_0x5ad916['start'],_0x51293a=_0x5ad916['end'];for(const {suggestion:_0x43337f,meta:_0xda39a4}of this['_findSuggestions'](_0x5ad916,'formatBlock')){if(!_0xda39a4['isOwn'])continue;if(_0xda39a4['isNextTo']||_0xda39a4['containsRangeInObject']||_0xda39a4['isInsideObject'])continue;if(_0x43337f['data']['formatGroupId']!=_0x53a91a['formatGroupId'])continue;if(!sn(_0x43337f,_0x5d76ba))continue;const _0x1cc3e6=_0x43337f['getFirstRange']();if(_0x43337f['subType']==_0xddd1a7){if(_0x1cc3e6['containsRange'](_0x5ad916,!0x0))return null;_0x7cae2f=_0x7cae2f['isBefore'](_0x1cc3e6['start'])?_0x7cae2f:_0x1cc3e6['start'],_0x51293a=_0x51293a['isAfter'](_0x1cc3e6['end'])?_0x51293a:_0x1cc3e6['end'],_0x72bcee?_0x1cc3e6['start']['isBefore'](_0x72bcee['getFirstRange']()['start'])?(_0x72bcee['removeMarkers'](),_0x72bcee=_0x43337f):_0x43337f['removeMarkers']():_0x72bcee=_0x43337f;}else{const _0x27ff9=_0x5ad916['getIntersection'](_0x1cc3e6);this['_cutOutSuggestionMarker'](_0x43337f,_0x27ff9);}}const _0x381dd4=this['editor']['plugins']['get']('Users')['me'],_0x391ef1=_0x55a083(),_0x188106=_0x381dd4['id'];if(_0x72bcee)return this['_setSuggestionRange'](_0x72bcee,this['_model']['createRange'](_0x7cae2f,_0x51293a)),_0x72bcee;{const _0x26d1bf=this['_setSuggestionData']({'id':_0x391ef1,'type':'formatBlock:'+_0xddd1a7,'data':_0x53a91a,'createdAt':new Date(),'authorId':_0x188106,'attributes':_0x5d76ba});return this['_addSuggestionMarker']('formatBlock:'+_0xddd1a7,_0x391ef1,_0x188106,this['_model']['createRange'](_0x7cae2f,_0x51293a)),_0x26d1bf;}}['markMultiRangeBlockFormat'](_0x2cc179,_0x2721b1,_0x216ce3=[],_0x140117=null,_0x20a5a4={}){_0x2721b1['formatGroupId']||(_0x2721b1['formatGroupId']=_0x2721b1['commandName']);const _0x56bf75=_0x2cc179[0x0];_0x2721b1['multipleBlocks']=_0x56bf75['is']('range'),_0x140117=_0x140117||Ht(_0x2721b1);const _0x55fa38=_0x216ce3['map'](_0x30ac12=>tn(_0x30ac12,this['_model'])),_0x3537c5=_0x56bf75['is']('range')?_0x2cc179:_0x2cc179['map'](_0x656f65=>tn(_0x656f65,this['_model']));if(this['_trackingSessionId']&&(_0x20a5a4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x57dc51=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x140117,'accept');return this['forceDefaultExecution'](()=>_0x57dc51(_0x3537c5,_0x2721b1,_0x20a5a4)),null;}_0x55fa38['push'](..._0x3537c5);let _0x59ba66=!0x0;for(const _0x233c9c of _0x55fa38)if(!this['_rangeIsInLocalUserInsertion'](_0x233c9c)){_0x59ba66=!0x1;break;}if(_0x59ba66&&'always'!==this['_trackFormatChanges']){const _0x446702=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x140117,'accept');return this['forceDefaultExecution'](()=>_0x446702(_0x3537c5,_0x2721b1,_0x20a5a4)),null;}const _0x11b086=this['editor']['plugins']['get']('Users')['me'];for(const _0x31e83f of this['getSuggestions']()){const _0x38d471=_0x31e83f['data'];if(_0x31e83f['author']['id']!=_0x11b086['id'])continue;if('formatBlock'!=_0x31e83f['type']||_0x38d471['formatGroupId']!=_0x2721b1['formatGroupId'])continue;if(!sn(_0x31e83f,_0x20a5a4))continue;const _0xca3147=_0x31e83f['subType']==_0x140117;for(let _0x10cddd=0x0;_0x10cddd<_0x3537c5['length'];_0x10cddd++){const _0x2223fc=_0x3537c5[_0x10cddd];for(const _0x1f3241 of _0x31e83f['getMarkers']()){const _0x549d5c=_0x1f3241['getRange']();if(_0x2223fc['isEqual'](_0x549d5c)){_0xca3147?(_0x3537c5['splice'](_0x10cddd,0x1),_0x10cddd--):_0x31e83f['removeMarker'](_0x1f3241['name']);break;}}}}if(0x0==_0x3537c5['length'])return null;const _0x5b89ad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x140117,'join');for(const _0x70e28a of this['getSuggestions']()){const _0x1596e3=_0x70e28a['data'];if(_0x70e28a['author']['id']==_0x11b086['id']&&('formatBlock'==_0x70e28a['type']&&_0x1596e3['formatGroupId']==_0x2721b1['formatGroupId']&&_0x70e28a['subType']==_0x140117&&sn(_0x70e28a,_0x20a5a4)&&(_0x5b89ad(_0x70e28a['getRanges'](),_0x3537c5)||_0x5b89ad(_0x3537c5,_0x70e28a['getRanges']())))){for(const _0x460141 of _0x3537c5)_0x70e28a['addRange'](_0x460141);return _0x70e28a;}}const _0xa6d30=_0x55a083(),_0xdeeff=_0x11b086['id'],_0x4a0adc='formatBlock:'+_0x140117,_0x538279=this['_setSuggestionData']({'id':_0xa6d30,'type':_0x4a0adc,'data':_0x2721b1,'createdAt':new Date(),'authorId':_0xdeeff,'attributes':_0x20a5a4});for(const _0x56603d of _0x3537c5)this['_addSuggestionMarker'](_0x4a0adc,_0xa6d30,_0xdeeff,_0x56603d,x['getMultiRangeId']());return _0x538279;}['markDeletion'](_0x3167c8,_0x43ccbe=null,_0x5b0fcf={}){if(_0x3167c8['isCollapsed'])return null;const _0x374356=this['editor']['plugins']['get']('Users')['me'],_0x424b2b=new _0x13a0c3(_0x3167c8['start'],_0x3167c8['end']);this['_trackingSessionId']&&(_0x5b0fcf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x54b838,meta:_0x3b1b15}of this['_findSuggestions'](_0x424b2b,'insertion'))if(_0x3b1b15['isOwn']&&!_0x3b1b15['isNextTo']){if(_0x54b838['isMultiRange']){const _0x55986d=_0x54b838['getRanges']()['filter'](_0x3edd7a=>'$graveyard'!=_0x3edd7a['root']['rootName']);_0x55986d['every'](_0x84a1d7=>_0x424b2b['containsRange'](_0x84a1d7,!0x0))&&_0x54b838['discard']();if(_0x55986d['some'](_0x5bb592=>_0x5bb592['containsRange'](_0x424b2b,!0x0))){const _0x5a9aa8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x43ccbe,'accept');return this['forceDefaultExecution'](()=>_0x5a9aa8([_0x424b2b],null,_0x5b0fcf)),null;}}else{const _0x18f321=_0x424b2b['getIntersection'](_0x54b838['getFirstRange']());null!==_0x18f321&&_0x54b838['_onDiscard']([_0x18f321],null,_0x5b0fcf);}}if(_0x424b2b['detach'](),_0x424b2b['isCollapsed']||'$graveyard'==_0x424b2b['root']['rootName'])return null;let _0x12b7f5=null,_0x340d9e=_0x424b2b['start'],_0x3370a8=_0x424b2b['end'];const _0x326d10=this['_findSuggestions'](_0x424b2b,'deletion');for(const {suggestion:_0x449648,meta:_0x31b293}of _0x326d10){const _0x31ec8d=this['_model']['createRange'](_0x340d9e,_0x3370a8);if(_0x31b293['isOwn']&&(this['_mergeNestedSuggestions']||!_0x31b293['containsRangeInObject']&&!_0x31b293['isInsideObject'])){if(_0x449648['isMultiRange']){if(!sn(_0x449648,_0x5b0fcf))continue;let _0x233433=!0x0;for(const _0x152fbe of _0x449648['getRanges']()){if(_0x152fbe['containsRange'](_0x31ec8d,!0x0))return _0x449648;_0x31ec8d['containsRange'](_0x152fbe)||(_0x233433=!0x1);}_0x233433&&_0x449648['discard']();}else{const _0x4f16cb=_0x449648['getFirstRange']();if(_0x4f16cb['containsRange'](_0x31ec8d,!0x0))return _0x449648;if(!sn(_0x449648,_0x5b0fcf)){_0x31ec8d['containsRange'](_0x4f16cb)?_0x449648['removeMarkers']():_0x4f16cb['containsPosition'](_0x340d9e)?_0x340d9e=_0x4f16cb['end']:_0x4f16cb['containsPosition'](_0x3370a8)&&(_0x3370a8=_0x4f16cb['start']);continue;}_0x340d9e=_0x340d9e['isBefore'](_0x4f16cb['start'])?_0x340d9e:_0x4f16cb['start'],_0x3370a8=_0x3370a8['isAfter'](_0x4f16cb['end'])?_0x3370a8:_0x4f16cb['end'],_0x5b0fcf=Object['assign']({},_0x449648['attributes']),_0x12b7f5?_0x4f16cb['start']['isBefore'](_0x12b7f5['getFirstRange']()['start'])?(_0x12b7f5['removeMarkers'](),_0x12b7f5=_0x449648):_0x449648['removeMarkers']():_0x12b7f5=_0x449648;}}}if(_0x12b7f5)return this['_setSuggestionRange'](_0x12b7f5,this['_model']['createRange'](_0x340d9e,_0x3370a8)),_0x12b7f5;{const _0x1beda8=_0x55a083(),_0x30ac60=this['_model']['createRange'](_0x340d9e,_0x3370a8),_0xdf2b61=_0x374356['id'],_0x3d8ff0=_0x43ccbe?'deletion:'+_0x43ccbe:'deletion',_0x19b724=this['_setSuggestionData']({'id':_0x1beda8,'type':_0x3d8ff0,'createdAt':new Date(),'authorId':_0xdf2b61,'attributes':_0x5b0fcf});return this['_addSuggestionMarker'](_0x3d8ff0,_0x1beda8,_0xdf2b61,_0x30ac60),_0x19b724;}}['markMultiRangeDeletion'](_0x407e80,_0x2bd5d4='multi',_0x225c54={}){const _0x470a46=this['editor']['plugins']['get']('Users')['me'],_0x5376de=_0x407e80['map'](_0x42259c=>new _0x13a0c3(_0x42259c['start'],_0x42259c['end'])),_0x2eb12a=new Set();this['_trackingSessionId']&&(_0x225c54['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x478158,meta:_0x231b14}of this['_findSuggestions'](_0x5376de,'insertion'))_0x231b14['isOwn']&&!_0x231b14['isNextTo']&&_0x2eb12a['add'](_0x478158);for(const _0x55c4dc of _0x2eb12a)if(_0x55c4dc['isMultiRange']){const _0x570080=_0x55c4dc['getRanges']();(!_0x55c4dc['attributes']||!_0x55c4dc['attributes']['skipNestingCheck'])&&(_0x570080['every'](_0x2b5c76=>_0x5376de['some'](_0x45def7=>_0x45def7['containsRange'](_0x2b5c76,!0x0)))&&_0x55c4dc['discard']());if(_0x5376de['every'](_0x1bb1f1=>_0x570080['some'](_0x22559a=>_0x22559a['containsRange'](_0x1bb1f1,!0x0)))){const _0x523aaa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bd5d4,'accept');return this['forceDefaultExecution'](()=>_0x523aaa(_0x407e80,null,_0x225c54)),null;}}else{const _0x2db210=_0x55c4dc['getFirstRange']();_0x5376de['some'](_0x2bfa27=>_0x2bfa27['containsRange'](_0x2db210,!0x0))&&_0x55c4dc['discard']();if(_0x5376de['every'](_0x32bf6f=>_0x2db210['containsRange'](_0x32bf6f,!0x0))){const _0x2258aa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bd5d4,'accept');return this['forceDefaultExecution'](()=>_0x2258aa(_0x5376de,null,_0x225c54)),null;}}const _0x576635=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bd5d4,'join');let _0x100668=null;for(const _0x45988e of this['getSuggestions']())if(_0x45988e['author']['id']==_0x470a46['id']&&_0x45988e['isInContent']&&'deletion'==_0x45988e['type']&&_0x45988e['subType']==_0x2bd5d4&&sn(_0x45988e,_0x225c54)&&(_0x576635(_0x45988e['getRanges'](),_0x5376de)||_0x576635(_0x5376de,_0x45988e['getRanges']()))){if(_0x100668){if(_0x45988e['commentThread']&&_0x45988e['commentThread']['length'])continue;for(const _0x147dcb of _0x45988e['getRanges']())_0x100668['isIntersectingWithRange'](_0x147dcb)||_0x100668['addRange'](_0x147dcb);_0x45988e['removeMarkers']();}else{_0x100668=_0x45988e;for(const _0x2c0838 of _0x5376de)_0x45988e['isIntersectingWithRange'](_0x2c0838)||_0x45988e['addRange'](_0x2c0838);}}if(_0x100668)return _0x100668;_0x2eb12a['clear']();for(const {suggestion:_0x56083b,meta:_0x4c145e}of this['_findSuggestions'](_0x5376de,'deletion'))_0x4c145e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c145e['containsRangeInObject']&&!_0x4c145e['isInsideObject'])&&sn(_0x56083b,_0x225c54)&&_0x2eb12a['add'](_0x56083b);for(const _0x5ada26 of _0x2eb12a){const _0x3f7040=_0x5ada26['getRanges']();if(!_0x225c54||!_0x225c54['skipNestingCheck']){if(_0x5376de['every'](_0x11c654=>_0x3f7040['some'](_0x3c680f=>_0x3c680f['containsRange'](_0x11c654,!0x0))))return _0x5ada26;}(!_0x5ada26['attributes']||!_0x5ada26['attributes']['skipNestingCheck'])&&(_0x3f7040['every'](_0xfc696e=>_0x5376de['some'](_0x4daa75=>_0x4daa75['containsRange'](_0xfc696e,!0x0)))&&_0x5ada26['discard']());}const _0x3bbf2a=_0x55a083(),_0x30b890=_0x470a46['id'],_0x5a1af2='deletion:'+_0x2bd5d4,_0x23c447=this['_setSuggestionData']({'id':_0x3bbf2a,'type':_0x5a1af2,'createdAt':new Date(),'authorId':_0x30b890,'attributes':_0x225c54});for(const _0x30b2aa of _0x5376de)_0x30b2aa['detach'](),_0x30b2aa['isCollapsed']||'$graveyard'==_0x30b2aa['root']['rootName']||this['_addSuggestionMarker'](_0x5a1af2,_0x3bbf2a,_0x30b890,_0x30b2aa,x['getMultiRangeId']());return _0x23c447;}['markAttributeChange'](_0x468e43,_0xbf867,_0x1c157c,_0x49d7b9,_0xe77983){if(_0x468e43['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5d911c=this['editor']['plugins']['get']('Users')['me']['id'],_0x85d94b=Array['from'](this['_suggestions']['values']())['filter'](_0x2725bc=>'attribute'==_0x2725bc['type']&&_0x2725bc['data']['key']==_0xbf867&&_0x2725bc['isIntersectingWithRange'](_0x468e43));if(this['_trackingSessionId']&&(_0xe77983['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x137d38=this['_findSuggestions'](_0x468e43,'insertion')['filter'](({meta:_0x28cfdc})=>_0x28cfdc['isOwn']&&!_0x28cfdc['isInsideObject']&&!_0x28cfdc['isNextTo'])['map'](({suggestion:_0x206a2c})=>_0x206a2c);_0x85d94b['unshift'](..._0x137d38);}const _0x4c8d43=new Map([[_0x468e43,_0x1c157c]]);for(const _0x22885b of _0x85d94b){const _0x228368='attribute'==_0x22885b['type']?_0x22885b['data']['oldValue']:void 0x0,_0x3d324c=_0x22885b['getFirstRange'](),_0x2f4548=Array['from'](_0x4c8d43['keys']())['find'](_0x4e0f33=>_0x4e0f33['isIntersecting'](_0x3d324c));if(!_0x2f4548)continue;const _0x2a4fb8=_0x2f4548['getDifference'](_0x3d324c);this['_isBlockAttribute'](_0xbf867)&&'insertion'==_0x22885b['type']&&0x0!=_0x2a4fb8['length']||(_0x4c8d43['delete'](_0x2f4548),_0x2a4fb8['forEach'](_0x154455=>{_0x4c8d43['set'](_0x154455,_0x1c157c);}),'insertion'!=_0x22885b['type']&&_0x228368!=_0x49d7b9&&_0x4c8d43['set'](_0x2f4548['getIntersection'](_0x3d324c),_0x228368));}const _0x41f007=[];for(const [_0x21d038,_0x3d599e]of _0x4c8d43){const _0x1b8409=_0x55a083(),_0x2d6c18={'key':_0xbf867,'oldValue':_0x3d599e,'newValue':_0x49d7b9};_0xbf867['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':_0xbf867});const _0x449808=('attribute:'+(_0xbf867+'|'+Ht({'newValue':_0x49d7b9})))['substring'](0x0,0x3c),_0x13c1a5=this['_setSuggestionData']({'id':_0x1b8409,'type':_0x449808,'data':_0x2d6c18,'createdAt':new Date(),'authorId':_0x5d911c,'attributes':_0xe77983});_0x41f007['push'](_0x13c1a5),this['_addSuggestionMarker'](_0x449808,_0x1b8409,_0x5d911c,_0x21d038);}return _0x41f007;}['enableDefaultAttributesIntegration'](_0x2d9d7e){this['enableCommand'](_0x2d9d7e,(_0xbbd7e3,..._0x1ba9a1)=>{this['recordAttributeChanges'](()=>{_0xbbd7e3(..._0x1ba9a1);});});}['registerBlockAttribute'](_0x4f2593){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x4f2593);}['registerInlineAttribute'](_0x172c9e){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x172c9e);}['startTrackingSession'](_0x2a47b2){return this['_trackingSessionId']=void 0x0!==_0x2a47b2?_0x2a47b2:_0x55a083(),this['_trackingSessionId'];}['_getAttributeKey'](_0x50cc87){return'attribute'==_0x50cc87['type']?_0x50cc87['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4e9907){if(0x0==_0x4e9907['length'])return;const _0x26c274=this['editor'],_0x51bb60=_0x26c274['plugins']['get'](_0x4113e6),_0x4cdd9a=[];_0x26c274['model']['change'](_0x48db14=>{for(let _0x290fa3=0x0;_0x290fa3<_0x4e9907['length'];_0x290fa3++){const _0x7803b3=_0x4e9907[_0x290fa3];if(_0x7803b3['baseVersion']=_0x26c274['model']['document']['version'],_0x7803b3['isDocumentOperation']=!0x0,_0x51bb60['isMarkedRemoveOperation'](_0x7803b3)){const _0xb1fea=Lt(_0x7803b3['newRange'],_0x26c274['model']);_0x4cdd9a['unshift'](_0x13a0c3['fromRange'](_0xb1fea));}else switch(_0x7803b3['type']){case'rename':{const _0x1833a1=_0x7803b3['oldName'],_0x847364=_0x7803b3['newName'];if(_0x1833a1==_0x847364)break;_0x48db14['batch']['addOperation'](_0x7803b3),_0x26c274['model']['applyOperation'](_0x7803b3);const _0x598b15='$elementName',_0x7b4ddf=_0x7803b3['position'],_0x4611af=_0x26c274['model']['createRange'](_0x7b4ddf,_0x26c274['model']['createPositionAt'](_0x7b4ddf['nodeAfter'],'end'));this['markAttributeChange'](_0x4611af,_0x598b15,_0x1833a1,_0x847364,{'groupId':_0x55a083()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3166d5=_0x7803b3['oldValue'],_0x324eca=_0x7803b3['newValue'];if(_0x3166d5==_0x324eca)break;_0x48db14['batch']['addOperation'](_0x7803b3),_0x26c274['model']['applyOperation'](_0x7803b3);const _0x1d8a08=_0x7803b3['key'];if(!this['_isRegisteredAttribute'](_0x1d8a08))break;const _0x1a061e=Lt(_0x7803b3['range'],_0x26c274['model']);this['markAttributeChange'](_0x1a061e,_0x1d8a08,_0x3166d5,_0x324eca,{'groupId':_0x55a083()});break;}case'insert':{_0x48db14['batch']['addOperation'](_0x7803b3),_0x26c274['model']['applyOperation'](_0x7803b3);if(_0x4e9907[_0x290fa3+0x1]&&'move'==_0x4e9907[_0x290fa3+0x1]['type'])break;const _0x4bb5ae=_0x7803b3['position'],_0x4398dd=_0x7803b3['howMany'],_0x1df9f1=Lt(_0x26c274['model']['createRange'](_0x4bb5ae,_0x4bb5ae['getShiftedBy'](_0x4398dd)),_0x26c274['model']);this['markInsertion'](_0x1df9f1);break;}case'split':{_0x48db14['batch']['addOperation'](_0x7803b3),_0x26c274['model']['applyOperation'](_0x7803b3);const _0x3c2bd5=_0x7803b3['splitPosition'],_0x13babb=_0x7803b3['moveTargetPosition'];this['markInsertion'](_0x26c274['model']['createRange'](_0x3c2bd5,_0x13babb));break;}case'move':case'remove':_0x48db14['batch']['addOperation'](_0x7803b3),_0x26c274['model']['applyOperation'](_0x7803b3);}}for(const _0x145010 of _0x4cdd9a)_0x145010['detach'](),this['markDeletion'](_0x145010);});}['_setSuggestionRange'](_0x128257,_0x2052ff){const _0x3ab469=_0x128257['getFirstMarker']();this['_model']['change'](_0x25ca52=>{_0x25ca52['updateMarker'](_0x3ab469,{'range':_0x2052ff});});}['_addThreadToSuggestion'](_0x122a2f){const _0x5ab46a=_0x122a2f['id'],_0x2944d0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5ab46a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2944d0,'threadId':_0x5ab46a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2179fb=this['_commentsRepository']['getCommentThread'](_0x5ab46a);_0x2179fb['unbind']('isRemovable'),_0x2179fb['isRemovable']=!0x1,_0x122a2f['commentThread']=_0x2179fb;}['_checkSuggestionCorrectness'](_0x47fbae,_0x3c9efd,_0x25fc61,_0x48deee){if(_0x47fbae['type']!=_0x3c9efd||_0x47fbae['subType']!=_0x25fc61||_0x47fbae['creator']['id']!=_0x48deee)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x38b249('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x57f0a0,_0x25f7d9){const _0x563316=_0x57f0a0['getFirstRange']();if(_0x25f7d9['isEqual'](_0x563316))_0x57f0a0['removeMarkers']();else{if(_0x563316['containsRange'](_0x25f7d9)){const _0x2976b9=this['_model']['createPositionAt'](_0x25f7d9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x57f0a0,this['_model']['createRange'](_0x563316['start'],_0x2976b9));const _0x205d82=_0x55a083(),_0x23b5e6=_0x57f0a0['creator']['id'],_0x5985ae=_0x57f0a0['type']+':'+_0x57f0a0['subType'];this['_setSuggestionData']({'id':_0x205d82,'type':_0x5985ae,'createdAt':new Date(),'authorId':_0x23b5e6,'data':_0x57f0a0['data'],'attributes':_0x57f0a0['attributes']});const _0x15613a=this['_model']['createPositionAt'](_0x25f7d9['end']['parent'],'after'),_0x4ff15e=this['_model']['createRange'](_0x15613a,_0x563316['end']);this['_addSuggestionMarker'](_0x5985ae,_0x205d82,_0x23b5e6,_0x4ff15e);}else{if(_0x563316['containsPosition'](_0x25f7d9['start'])){const _0x3ad9a0=this['_model']['createPositionAt'](_0x25f7d9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x57f0a0,this['_model']['createRange'](_0x563316['start'],_0x3ad9a0));}else{const _0x2e8f5c=this['_model']['createPositionAt'](_0x25f7d9['end']['parent'],'after');this['_setSuggestionRange'](_0x57f0a0,this['_model']['createRange'](_0x2e8f5c,_0x563316['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x560e74){for(const {suggestion:_0x578d37,meta:_0x13ce46}of this['_findSuggestions'](_0x560e74,'insertion')){if(!_0x13ce46['isOwn'])continue;const _0x309c5f=_0x578d37['getRanges']();for(const _0x3d1aaa of _0x309c5f)if(!_0x560e74['getDifference'](_0x3d1aaa)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1f2476){return this['editor']['plugins']['get']('Users')['getUser'](_0x1f2476);}['_getExternalAuthor'](_0x46d08a){const _0x4a6c25=this['editor']['plugins']['get']('Users'),_0x3cf25a=_0x3d0cd8('external:'+_0x46d08a),_0x3d5f08=_0x4a6c25['getUser'](_0x3cf25a);return _0x3d5f08||_0x4a6c25['addUser']({'id':_0x3cf25a,'name':_0x46d08a});}['_createSuggestion'](_0x3a8d19,_0x3ea9e1,_0x5424da,_0x2a6d7a,_0x4b05fd,_0xfe3a07){const _0x5bce14=this['_getAuthorFromId'](_0x2a6d7a);if(!_0x5bce14)throw new _0x38b249('track-changes-user-not-found',this,{'authorId':_0x2a6d7a,'suggestionId':_0x5424da});const _0xb7711b=this['_suggestionFactory']['buildSuggestion'](_0x3a8d19,_0x3ea9e1,_0x5424da,_0x5bce14,_0x4b05fd,_0x255fbd=>{this['_updateSuggestionData'](_0x5424da,{'attributes':_0x255fbd});const _0x3498e9=this['getSuggestion'](_0x5424da);this['_joinWithAdjacentSuggestions'](new Set([_0x3498e9])),this['_refreshSuggestionsChain'](new Set([_0x3498e9]));},_0xfe3a07);return this['listenTo'](_0xb7711b,'accept',()=>{this['_updateSuggestionData'](_0x5424da,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb7711b,'discard',()=>{this['_updateSuggestionData'](_0x5424da,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5424da,_0xb7711b),this['_suggestionState']['set'](_0xb7711b,'notReady'),_0xb7711b;}['_splitMarkerName'](_0x201030){return Gt(_0x201030);}['_breakSuggestionMarker'](_0x47ecc0,_0x4169bd,_0x55cdd1){const _0x363fe9=_0x47ecc0['getFirstRange'](),_0x59d468=_0x363fe9['start'],_0x5467c3=_0x363fe9['end'];this['_setSuggestionRange'](_0x47ecc0,this['_model']['createRange'](_0x59d468,_0x4169bd));const _0x262484=_0x55a083(),_0x3fedcc=_0x47ecc0['creator']['id'],_0x2c6e37=_0x47ecc0['type']+(_0x47ecc0['subType']?':'+_0x47ecc0['subType']:'');this['_setSuggestionData']({'id':_0x262484,'type':_0x2c6e37,'createdAt':new Date(),'authorId':_0x3fedcc,'originalSuggestionId':_0x47ecc0['_originalSuggestionId']||_0x47ecc0['id'],'attributes':_0x47ecc0['attributes'],'data':_0x47ecc0['data']});const _0x5f2257=this['_getAttributeKey'](_0x47ecc0);('formatBlock'==_0x47ecc0['type']||_0x5f2257&&this['_isBlockAttribute'](_0x5f2257))&&(_0x55cdd1=this['_model']['createPositionBefore'](_0x55cdd1['parent'])),this['_addSuggestionMarker'](_0x2c6e37,_0x262484,_0x3fedcc,this['_model']['createRange'](_0x55cdd1,_0x5467c3));}['_findSuggestions'](_0x14efbe,_0x4a0314=null){const _0x33bec4=[],_0xa57711=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14efbe)||(_0x14efbe=[_0x14efbe]);for(const _0x412f3e of this['getSuggestions']()){if(!_0x412f3e['isInContent'])continue;if(_0x4a0314&&_0x412f3e['type']!=_0x4a0314)continue;let _0xbe867f=!0x1;for(const _0x17cc96 of _0x412f3e['getRanges']()){for(const _0x3ad03f of _0x14efbe){const _0x3391e2=_0x3ad03f['start']['isEqual'](_0x17cc96['end'])||_0x3ad03f['end']['isEqual'](_0x17cc96['start']);if(_0x3391e2||_0x3ad03f['getIntersection'](_0x17cc96)){const _0x38edbb=_0x3ad03f['containsRange'](_0x17cc96)&&zt(this['_model']['schema'],_0x17cc96['start'],_0x3ad03f),_0x2c5eec=_0x17cc96['containsRange'](_0x3ad03f)&&zt(this['_model']['schema'],_0x3ad03f['start'],_0x17cc96);_0x33bec4['push']({'suggestion':_0x412f3e,'meta':{'isOwn':_0xa57711==_0x412f3e['author'],'isNextTo':_0x3391e2,'isInsideObject':_0x38edbb,'containsRangeInObject':_0x2c5eec}}),_0xbe867f=!0x0;break;}}if(_0xbe867f)break;}}return _0x33bec4;}['_addSuggestionMarker'](_0x9a417e,_0x1dd663,_0x3be59c,_0x3c9242,_0x1b968a){this['_model']['change'](_0x245431=>{let _0x966b33='suggestion:'+_0x9a417e+':'+_0x1dd663+':'+_0x3be59c;_0x1b968a&&(_0x966b33=_0x966b33+':'+_0x1b968a),_0x245431['addMarker'](_0x966b33,{'range':_0x3c9242,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xa6d6a3){const _0x39e320=_0xa6d6a3['previous'],_0x365b7e=_0xa6d6a3['next'];_0xa6d6a3['previous']=null,_0xa6d6a3['next']=null,null!=_0x39e320&&_0x39e320['next']==_0xa6d6a3&&(_0x39e320['next']=_0x365b7e),null!=_0x365b7e&&_0x365b7e['previous']==_0xa6d6a3&&(_0x365b7e['previous']=_0x39e320),'ready'==this['_suggestionState']['get'](_0xa6d6a3)&&(this['_suggestionState']['set'](_0xa6d6a3,'removed'),this['fire']('suggestionUnloaded',_0xa6d6a3,_0x39e320,_0x365b7e));}['_setSuggestionData'](_0x40ebb9){const _0x54eadf=_0x40ebb9['id'],_0x563344=this['addSuggestionData'](_0x40ebb9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x561331=this['editor']['plugins']['get']('PendingActions'),_0x5560e8=_0x563344['hasComments'],_0x37e188=_0x563344['subType']?_0x563344['type']+':'+_0x563344['subType']:_0x563344['type'],_0x15262f=this['editor']['locale'],_0x1e6296=_0x561331['add'](o(_0x15262f,'PENDING_ACTION_SUGGESTION')),_0x5ca4bc={'id':_0x54eadf,'type':_0x37e188,'hasComments':_0x5560e8,'data':_0x40ebb9['data']||null,'originalSuggestionId':_0x40ebb9['originalSuggestionId']||null,'attributes':_0x563344['attributes']};this['_adapter']['addSuggestion'](_0x5ca4bc)['then'](_0x13c6ec=>{_0x563344['_saved']=!0x0,_0x561331['remove'](_0x1e6296),_0x13c6ec&&_0x13c6ec['createdAt']&&(this['_suggestions']['get'](_0x54eadf)['createdAt']=_0x13c6ec['createdAt']);})['catch'](_0x54a73a=>{throw _0x30a01f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x563344['discard']();}),_0x563344['stopListening'](),this['_suggestions']['delete'](_0x563344['id']),this['_suggestionState']['delete'](_0x563344),_0x54a73a;});}return _0x563344;}['_isBlockAttribute'](_0x5c99ba){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x5c99ba);}['_isInlineAttribute'](_0x422d82){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x422d82);}['_updateSuggestionData'](_0x43d813,_0x35f7a0){const _0x511380=this['editor']['plugins']['get']('PendingActions'),_0x17e6e8=this['getSuggestion'](_0x43d813);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x17e6e8['_saved']){const _0x19e5d5=_0x511380['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x43d813,_0x35f7a0)['then'](()=>{_0x511380['remove'](_0x19e5d5);});}else _0x17e6e8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x43d813,_0x35f7a0);});}}['_getSuggestionData'](_0x5d2bb7){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x38b249('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5d2bb7);}['_handleNewSuggestionMarker'](_0x8f6e63){const {id:_0x431a0a,type:_0xec8d0e,subType:_0x19310c,authorId:_0xc4f8e5}=this['_splitMarkerName'](_0x8f6e63),_0x5edb5d=this['_suggestions']['get'](_0x431a0a)||this['_createSuggestion'](_0xec8d0e,_0x19310c,_0x431a0a,_0xc4f8e5,{});switch(this['_checkSuggestionCorrectness'](_0x5edb5d,_0xec8d0e,_0x19310c,_0xc4f8e5),this['_suggestionState']['get'](_0x5edb5d)){case'notReady':this['_getSuggestionData'](_0x431a0a)['then'](_0x3ece2b=>{let _0xd21b07=Promise['resolve']();_0x3ece2b['hasComments']&&(_0xd21b07=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x431a0a})),_0xd21b07['then'](()=>{this['addSuggestionData'](_0x3ece2b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5edb5d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x431a0a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5edb5d,'ready'),this['fire']('suggestionLoaded',_0x5edb5d);break;case'ready':this['fire']('suggestionChanged',_0x5edb5d);}return _0x5edb5d['addMarkerName'](_0x8f6e63),_0x5edb5d;}['_refreshSuggestionsChain'](_0x353ef5){const _0x37aac5=Array['from'](_0x353ef5),_0x280718=_0x37aac5['filter'](_0x5f3ee2=>'attribute'==_0x5f3ee2['type']);this['_refreshAttributeSuggestionsChain'](_0x280718);const _0x5153e3=_0x37aac5['filter'](_0x3e0d19=>!_0x3e0d19['isMultiRange']&&'attribute'!=_0x3e0d19['type']),_0x8fafc5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ed213=>!_0x1ed213['isMultiRange']&&'attribute'!=_0x1ed213['type']),_0x1aceb5=_0x8fafc5['filter'](_0x5f35bc=>!_0x353ef5['has'](_0x5f35bc)),_0x159d89=new Map(_0x8fafc5['map'](_0xc32430=>[_0xc32430,this['_suggestionFactory']['getSuggestionCallback'](_0xc32430['type'],_0xc32430['subType'],'chain')])),_0x54c9d7=new Map(_0x8fafc5['map'](_0x2f4d62=>[_0x2f4d62,_0x2f4d62['getFirstRange']()])),_0x5cfb38=new Set(),_0x15e32f=new Set();for(let _0x29a426=0x0;_0x29a426<_0x5153e3['length'];_0x29a426++)_0x1c3684(_0x5153e3[_0x29a426],_0x5153e3,_0x29a426+0x1);for(let _0x4f4d69=0x0;_0x4f4d69<_0x5153e3['length'];_0x4f4d69++)_0x1c3684(_0x5153e3[_0x4f4d69],_0x1aceb5,0x0);const _0x566bd4=new Set();for(let _0x5a6c7b=0x0;_0x5a6c7b<_0x5153e3['length'];_0x5a6c7b++){const _0x2f1bea=_0x5153e3[_0x5a6c7b];!_0x15e32f['has'](_0x2f1bea)&&_0x2f1bea['previous']&&(_0x566bd4['add'](_0x2f1bea['previous']),_0x2f1bea['previous']['next']===_0x2f1bea&&(_0x2f1bea['previous']['next']=null),_0x2f1bea['previous']=null),!_0x5cfb38['has'](_0x2f1bea)&&_0x2f1bea['next']&&(_0x566bd4['add'](_0x2f1bea['next']),_0x2f1bea['next']['previous']===_0x2f1bea&&(_0x2f1bea['next']['previous']=null),_0x2f1bea['next']=null);}function _0x1c3684(_0x4cec25,_0x1a9f8d,_0x5d6a54){for(let _0x1de179=_0x5d6a54;_0x1de179<_0x1a9f8d['length'];_0x1de179++){const _0xd30c1a=_0x23323a(_0x4cec25,_0x1a9f8d[_0x1de179]);_0xd30c1a&&(_0xd30c1a[0x0]['next']=_0xd30c1a[0x1],_0xd30c1a[0x1]['previous']=_0xd30c1a[0x0],_0x5cfb38['add'](_0xd30c1a[0x0]),_0x15e32f['add'](_0xd30c1a[0x1]));}}function _0x23323a(_0x2dbf5c,_0x47d5c6){if(_0x2dbf5c['author']['id']!==_0x47d5c6['author']['id'])return null;const _0x5d72f6=_0x159d89['get'](_0x2dbf5c)(_0x2dbf5c,_0x47d5c6,_0x54c9d7['get'](_0x2dbf5c),_0x54c9d7['get'](_0x47d5c6));if(!_0x5d72f6)return null;return _0x159d89['get'](_0x47d5c6)(_0x2dbf5c,_0x47d5c6,_0x54c9d7['get'](_0x2dbf5c),_0x54c9d7['get'](_0x47d5c6))?_0x5d72f6[0x1]['commentThread']&&_0x5d72f6[0x1]['commentThread']['length']?null:_0x5d72f6:null;}_0x566bd4['size']&&this['_refreshSuggestionsChain'](_0x566bd4);}['_refreshAttributeSuggestionsChain'](_0x163411){if(0x0==_0x163411['length'])return;const _0xd0383=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3cbdfa=>'attribute'==_0x3cbdfa['type']&&_0x3cbdfa['_isDataLoaded']),_0x37bc87=[],_0x237879=new Map();for(const _0x475ec5 of _0xd0383){const _0x156205=_0x3d0cd8(_0x475ec5['attributes']);_0x237879['has'](_0x156205)||(_0x237879['set'](_0x156205,_0x37bc87['length']),_0x37bc87['push']([]));const _0x37f8b6=_0x237879['get'](_0x156205);_0x37bc87[_0x37f8b6]['push'](_0x475ec5);}!(function(){_0x37bc87['sort']((_0x3e04cd,_0x30d38c)=>{const _0x30ba75=_0x3e04cd[0x0]['createdAt'],_0x42f0d8=_0x30d38c[0x0]['createdAt'];return _0x30ba75==_0x42f0d8?_0x3e04cd[0x0]['attributes']['groupId']<_0x30d38c[0x0]['attributes']['groupId']?-0x1:0x1:_0x30ba75<_0x42f0d8?-0x1:0x1;});for(const _0x5567d2 of _0x37bc87)_0x5567d2['sort']((_0x19e8e1,_0x328c30)=>_0x19e8e1['id']<_0x328c30['id']?-0x1:0x1);}());for(let _0x19d00e=0x0;_0x19d00e<_0x37bc87['length'];_0x19d00e++){if(0x0==_0x37bc87[_0x19d00e]['length'])continue;const _0x5ecd93=[];for(let _0x468a60=_0x19d00e+0x1;_0x468a60<_0x37bc87['length'];_0x468a60++)0x0!=_0x37bc87[_0x468a60]['length']&&_0x1e71c8(_0x37bc87[_0x19d00e],_0x37bc87[_0x468a60])&&_0x5ecd93['push'](_0x468a60);for(const _0xb2771a of _0x5ecd93)_0x37bc87[_0x19d00e]=_0x37bc87[_0x19d00e]['concat'](_0x37bc87[_0xb2771a]),_0x37bc87[_0xb2771a]=[];}for(const _0x3f08b3 of _0x37bc87)for(let _0x27b294=0x0;_0x27b294<_0x3f08b3['length'];_0x27b294++){const _0x15ab39=_0x3f08b3[_0x27b294+0x1]||null;_0x3f08b3[_0x27b294]['next']!==_0x15ab39&&(_0x3f08b3[_0x27b294]['next']=_0x15ab39);}for(const _0x523cd5 of _0x37bc87)for(let _0x31f048=0x0;_0x31f048<_0x523cd5['length'];_0x31f048++){const _0x1c4f95=_0x523cd5[_0x31f048-0x1]||null;_0x523cd5[_0x31f048]['previous']!==_0x1c4f95&&(_0x523cd5[_0x31f048]['previous']=_0x1c4f95);}function _0x1e71c8(_0x192adb,_0x39c830){if(_0x192adb[0x0]['attributes']['groupId']!==_0x39c830[0x0]['attributes']['groupId']&&_0x192adb[0x0]['author']!==_0x39c830[0x0]['author'])return!0x1;if(!function(_0x5359c2,_0x5b9ebb){if(!_0x5359c2['hasComments']&&!_0x5b9ebb['hasComments'])return!0x0;if(_0x5359c2['hasComments']&&_0x5b9ebb['hasComments'])return!0x1;if(_0x5359c2['hasComments']&&_0x5b9ebb['createdAt']<_0x5359c2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5b9ebb['hasComments']&&_0x5359c2['createdAt']<_0x5b9ebb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x192adb[0x0],_0x39c830[0x0]))return!0x1;const _0x2e497f=Pt(_0x192adb[0x0]['attributes'],['groupId','trackingSessionId']),_0x4081e5=Pt(_0x39c830[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2d2cfe(_0x2e497f,_0x4081e5))return!0x1;if(_0x192adb[0x0]['attributes']['groupId']==_0x39c830[0x0]['attributes']['groupId'])return!0x0;if(_0x192adb[0x0]['attributes']['trackingSessionId']!==_0x39c830[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x192adb['every'](_0x182be8=>_0x39c830['some'](_0x2d285f=>_0x182be8['getFirstRange']()['isEqual'](_0x2d285f['getFirstRange']())))&&_0x39c830['every'](_0x21d10f=>_0x192adb['some'](_0x27b4cf=>_0x21d10f['getFirstRange']()['isEqual'](_0x27b4cf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x293744){const _0x2af71d=Array['from'](_0x293744),_0x1a14cc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4d64ad=_0x1a14cc['filter'](_0x26f740=>!_0x293744['has'](_0x26f740)),_0xcacaaa=new Map(_0x2af71d['map'](_0x234a30=>[_0x234a30,this['_suggestionFactory']['getSuggestionCallback'](_0x234a30['type'],_0x234a30['subType'],'join')])),_0x1d142f=new Map(_0x1a14cc['map'](_0x2eb570=>[_0x2eb570,_0x2eb570['getRanges']()]));for(let _0x2f1bfa=0x0;_0x2f1bfa<_0x2af71d['length'];_0x2f1bfa++){if(_0x51772a(this,_0x2af71d[_0x2f1bfa],_0x2af71d,_0x2f1bfa+0x1))return!0x0;}for(let _0x874a2d=0x0;_0x874a2d<_0x2af71d['length'];_0x874a2d++){if(_0x51772a(this,_0x2af71d[_0x874a2d],_0x4d64ad,0x0))return!0x0;}return!0x1;function _0x51772a(_0x114d90,_0x189576,_0x9477d9,_0x257f89){for(let _0x2d4aca=_0x257f89;_0x2d4aca<_0x9477d9['length'];_0x2d4aca++){const _0x387b4d=_0x9477d9[_0x2d4aca];if(_0x387b4d['type']!==_0x189576['type']||_0x387b4d['author']['id']!==_0x189576['author']['id']||_0x387b4d['subType']!==_0x189576['subType'])continue;if(!en(_0x189576,_0x387b4d))continue;if('attribute'==_0x189576['type']&&_0x189576['data']['oldValue']!=_0x387b4d['data']['oldValue'])continue;if('attribute'==_0x189576['type']&&_0x114d90['_isBlockAttribute'](_0x189576['data']['key']))continue;if('formatBlock'==_0x189576['type']){const _0x5071a4=_0x114d90['editor']['model'],_0x3e6278=_0x189576['getContainedElement']();if(_0x3e6278&&(_0x5071a4['schema']['isObject'](_0x3e6278)||_0x5071a4['schema']['isLimit'](_0x3e6278)))continue;}const _0x2dabf7=_0xcacaaa['get'](_0x189576),_0x3997c8=_0x1d142f['get'](_0x189576),_0x39c687=_0x1d142f['get'](_0x387b4d),_0x543ea8=_0x189576['commentThread']&&_0x189576['commentThread']['length'],_0x23a06f=_0x387b4d['commentThread']&&_0x387b4d['commentThread']['length'];if(!_0x543ea8&&_0x2dabf7(_0x39c687,_0x3997c8))return _0x114d90['_joinSuggestions'](_0x387b4d,_0x189576),_0x1d142f['delete'](_0x189576),!0x0;if(!_0x23a06f&&_0x2dabf7(_0x3997c8,_0x39c687))return _0x114d90['_joinSuggestions'](_0x189576,_0x387b4d),_0x1d142f['delete'](_0x387b4d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1c5b68,_0x3f4b29){if(_0x1c5b68['isMultiRange']){for(const _0x3ef4ff of _0x3f4b29['getRanges']())_0x1c5b68['addRange'](_0x3ef4ff);}else{const _0x51d2f4=_0x3f4b29['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1c5b68,this['_model']['createRange'](_0x1c5b68['getFirstRange']()['start'],_0x51d2f4));}_0x3f4b29['removeMarkers']();}['_getMarkerAnnouncementText'](_0x9b6696,_0x409f80,_0x535977){const _0x71435a=_0x9b6696['startsWith']('format')||_0x9b6696['startsWith']('attribute')?'FORMATTING':_0x9b6696['toUpperCase']();return o(this['editor']['locale'],_0x409f80+'_'+_0x71435a+'_SUGGESTION_ANNOUNCEMENT',_0x535977);}['_initAriaMarkerChangeAnnouncements'](){const _0x4bd132=this['editor'];if(!_0x4bd132['ui'])return;const {ariaLiveAnnouncer:_0x34e14a}=_0x4bd132['ui'];_0x5d8fd9(this['_model'],({left:_0x412661,entered:_0x2377c6})=>{for(const _0x4f4bef of _0x412661){const {group:_0x58e8ad,type:_0x1bc214}=this['_splitMarkerName'](_0x4f4bef['name']);if('suggestion'===_0x58e8ad){_0x34e14a['announce'](this['_getMarkerAnnouncementText'](_0x1bc214,'LEAVE'));break;}}for(const _0x2afbcb of _0x2377c6){const {group:_0x439e17,type:_0x20491f}=this['_splitMarkerName'](_0x2afbcb['name']);if('suggestion'===_0x439e17){_0x34e14a['announce'](this['_getMarkerAnnouncementText'](_0x20491f,'ENTER',_0x5b4cf3(_0x27c05d)));break;}}});}['_processAttributeChanges'](_0x311026){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3b8aed=this['editor'],_0x28d302=_0x3b8aed['model']['document']['differ']['getChanges']();if(0x0==_0x28d302['length'])return!0x1;const _0x3bf728=[],_0x22b1f1=_0x28d302['filter'](_0x129d94=>'attribute'==_0x129d94['type']),_0x3b0ea1=_0x28d302['filter'](_0x2744f1=>'insert'==_0x2744f1['type']&&'$text'!=_0x2744f1['name']),_0x24f882=_0x28d302['filter'](_0x18f695=>'remove'==_0x18f695['type']&&'$text'!=_0x18f695['name']);for(const _0x3bb12b of _0x22b1f1)_0x3bf728['push']({'key':_0x3bb12b['attributeKey'],'newValue':_0x3bb12b['attributeNewValue'],'oldValue':_0x3bb12b['attributeOldValue'],'range':Zt(_0x3bb12b['range'],_0x3b8aed['model'])});for(const _0x278f24 of _0x3b0ea1){const _0x8377f7=_0x24f882['find'](_0x3edcdb=>_0x3edcdb['position']['isEqual'](_0x278f24['position']));_0x8377f7&&_0x3bf728['push']({'key':m,'newValue':_0x278f24['name'],'oldValue':_0x8377f7['name'],'range':_0x3b8aed['model']['createRangeOn'](_0x278f24['position']['nodeAfter'])});}return 0x0!=_0x3bf728['length']&&this['_reduceExistingSuggestions'](_0x311026,_0x3bf728);}['_processAttributeSuggestions'](_0x7f5e53){let _0x396983=!0x1;const _0xbfc743=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x478420=>_0x478420['data']['newRange']&&_0x478420['name']['startsWith']('suggestion:attribute:'));for(const _0x2dc7f7 of _0xbfc743){const {subType:_0x332df5,id:_0x20e643}=this['_splitMarkerName'](_0x2dc7f7['name']),_0x273828=_0x332df5['split']('|')[0x0];for(const _0x51e402 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x51e402['id']!=_0x20e643&&'attribute'==_0x51e402['type']&&_0x51e402['data']&&_0x51e402['data']['key']==_0x273828&&_0x51e402['getFirstRange']()['isIntersecting'](_0x2dc7f7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x51e402,_0x2dc7f7['data']['newRange'],_0x7f5e53),_0x396983=!0x0);}return _0x396983;}['recordAttributeChanges'](_0x56be40){this['_recordAttributeSuggestions']=!0x0,_0x56be40();}['_isRegisteredAttribute'](_0x51ec3c){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x51ec3c);}['_reduceExistingSuggestions'](_0x5c4f89,_0x2f1f37){if(0x0==_0x2f1f37['length'])return!0x1;let _0x452a85=!0x1;for(const _0x8b50c4 of _0x2f1f37){const _0x395e97=this['_findSuggestions'](_0x8b50c4['range'],'attribute')['filter'](_0x40aee9=>!_0x40aee9['meta']['isNextTo'])['map'](_0x3ac2a3=>_0x3ac2a3['suggestion']),_0x4c62fe=_0x3d0cd8({'newValue':_0x8b50c4['newValue']});_0x395e97['filter'](_0x261668=>{const [_0x36eae8,_0x120670]=_0x261668['subType']['split']('|');return _0x36eae8==_0x8b50c4['key']&&_0x120670!=_0x4c62fe;})['forEach'](_0x5a54e8=>{this['_reduceSuggestionAttributeRange'](_0x5a54e8,_0x8b50c4['range'],_0x5c4f89),_0x452a85=!0x0;});}return _0x452a85;}['_reduceSuggestionAttributeRange'](_0x573f00,_0x293aae,_0x5edd9e){const _0x593811=_0x573f00['getFirstRange']()['getDifference'](_0x293aae);0x0!==_0x593811['length']?0x1!==_0x593811['length']?this['_breakSuggestionMarker'](_0x573f00,_0x293aae['start'],_0x293aae['end']):this['_setSuggestionRange'](_0x573f00,_0x593811[0x0]):_0x5edd9e['removeMarker'](_0x573f00['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x686f9f){this['_editor']=_0x686f9f,this['_model']=_0x686f9f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb10d52,_0x5ea673,_0x4f5dc2,_0x4db40b,_0x3c6fbb,_0x20cda9,_0x54ec17){return new x(this['_model'],{'type':_0xb10d52,'subType':_0x5ea673,'id':_0x4f5dc2,'originalSuggestionId':_0x54ec17,'author':_0x4db40b,'creator':_0x4db40b,'attributes':_0x3c6fbb,'onAttributesChange':_0x20cda9,'onAccept':(..._0x166889)=>this['getSuggestionCallback'](_0xb10d52,_0x5ea673,'accept')(..._0x166889),'onDiscard':(..._0x252669)=>this['getSuggestionCallback'](_0xb10d52,_0x5ea673,'discard')(..._0x252669)});}['registerCustomCallback'](_0x5d8356,_0x5e9aa5,_0x3b0a3a,_0x262fb9){const _0x5ef2c6=_0x5d8356+':'+_0x5e9aa5+':'+_0x3b0a3a;this['_customCallbacks']['set'](_0x5ef2c6,_0x262fb9);}['getSuggestionCallback'](_0x1047bb,_0x56e978,_0x2e5e03){const _0x150d08=_0x1047bb+':'+_0x56e978+':'+_0x2e5e03;return this['_customCallbacks']['get'](_0x150d08)||this['_defaultCallbacks']['get'](_0x1047bb+':'+_0x2e5e03);}['_registerDefaultCallbacks'](){const _0x2cfdb1=()=>!0x1,_0x384c0a=_0x2ffd0d=>{_0x2ffd0d['sort']((_0x58dfad,_0x42627d)=>_0x58dfad['start']['isBefore'](_0x42627d['start'])?0x1:-0x1),this['_model']['change'](_0x31814b=>{for(const _0xb69c06 of _0x2ffd0d){let _0x28dd23;_0x28dd23=_0xb69c06['end']['isAtEnd']&&_0xb69c06['end']['parent']==_0xb69c06['start']['nodeAfter']?_0x31814b['createSelection'](_0xb69c06['start']['nodeAfter'],'on'):_0x31814b['createSelection'](_0xb69c06),this['_model']['deleteContent'](_0x28dd23,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x397e41=(_0x201ea6,_0x5c9474)=>{_0x5c9474&&this['_model']['change'](_0x2a94e9=>{const {commandName:_0x49adb3,commandParams:_0x319014=[]}=_0x5c9474,_0x536bde=_0x201ea6['map'](_0x227210=>(Kt(_0x227210)&&(_0x227210=this['_model']['createRange'](_0x227210['end'])),_0x227210))['filter'](_0x24d74b=>'$graveyard'!==_0x24d74b['root']['rootName']);if(_0x536bde['length']<0x1)return;const _0x2e2140=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x59784f=>_0x13a0c3['fromRange'](_0x59784f));_0x2a94e9['setSelection'](_0x536bde);for(const _0x56fbb2 of this['_editor']['commands']['commands']())_0x56fbb2['refresh']();_0x319014['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x49adb3,..._0x319014);const _0x484bc6=_0x2e2140['filter'](_0x4dbfd7=>'$graveyard'!=_0x4dbfd7['root']['rootName']);_0x484bc6['length']>0x0&&_0x2a94e9['setSelection'](_0x484bc6);for(const _0xd995bf of _0x2e2140)_0xd995bf['detach']();});},_0x557110=(_0x5b792c,_0x5c43c9)=>0x1==_0x5b792c['length']&&0x1==_0x5c43c9['length']&&_0x5b792c[0x0]['end']['isEqual'](_0x5c43c9[0x0]['start']),_0x4a5064=(_0x31a305,_0x56a542,_0x1f34d1,_0x41a06a)=>nn(_0x31a305,_0x56a542,_0x1f34d1,_0x41a06a)?[_0x31a305,_0x56a542]:nn(_0x56a542,_0x31a305,_0x41a06a,_0x1f34d1)?[_0x56a542,_0x31a305]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2cfdb1),this['_defaultCallbacks']['set']('insertion:discard',_0x384c0a),this['_defaultCallbacks']['set']('insertion:join',_0x557110),this['_defaultCallbacks']['set']('insertion:chain',_0x4a5064),this['_defaultCallbacks']['set']('deletion:accept',_0x384c0a),this['_defaultCallbacks']['set']('deletion:discard',_0x2cfdb1),this['_defaultCallbacks']['set']('deletion:join',_0x557110),this['_defaultCallbacks']['set']('deletion:chain',_0x4a5064),this['_defaultCallbacks']['set']('formatInline:accept',_0x397e41),this['_defaultCallbacks']['set']('formatInline:discard',_0x2cfdb1),this['_defaultCallbacks']['set']('formatInline:join',_0x557110),this['_defaultCallbacks']['set']('formatInline:chain',_0x2cfdb1),this['_defaultCallbacks']['set']('formatBlock:accept',_0x397e41),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2cfdb1),this['_defaultCallbacks']['set']('formatBlock:join',_0x557110),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2cfdb1),this['_defaultCallbacks']['set']('attribute:accept',_0x2cfdb1),this['_defaultCallbacks']['set']('attribute:discard',(_0x144366,_0x1eeb6c)=>{if(!_0x1eeb6c)return;const _0x175048=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x54b94e=>{if(_0x1eeb6c['key']==m)for(const _0x3dae02 of _0x144366){const _0x105410=_0x3dae02['start']['nodeAfter'],_0x1526b3=_0x1eeb6c['oldValue'];_0x54b94e['rename'](_0x105410,_0x1526b3);}else{if(_0x175048['_isBlockAttribute'](_0x1eeb6c['key'])){for(const _0x3a239d of _0x144366)void 0x0!==_0x1eeb6c['oldValue']?_0x54b94e['setAttribute'](_0x1eeb6c['key'],_0x1eeb6c['oldValue'],_0x3a239d['start']['nodeAfter']):_0x54b94e['removeAttribute'](_0x1eeb6c['key'],_0x3a239d['start']['nodeAfter']);}else{for(const _0x1601f9 of _0x144366)_0x1eeb6c['oldValue']?_0x54b94e['setAttribute'](_0x1eeb6c['key'],_0x1eeb6c['oldValue'],_0x1601f9):_0x54b94e['removeAttribute'](_0x1eeb6c['key'],_0x1601f9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x557110);}}function zt(_0x3a6791,_0x55d0b3,_0x17d880){for(const _0x5b3ae8 of _0x55d0b3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b3ae8['root']==_0x5b3ae8)return!0x1;if(!_0x17d880['containsItem'](_0x5b3ae8))return!0x1;if(_0x3a6791['isObject'](_0x5b3ae8)||_0x3a6791['isLimit'](_0x5b3ae8))return!0x0;}return!0x1;}function Kt(_0x1cd7fa){return _0x1cd7fa['end']['parent']==_0x1cd7fa['start']['nodeAfter']&&_0x1cd7fa['end']['isAtStart'];}function Wt(_0x1f17ab,_0x4ad4dd,_0x1e6d3b,_0x52abf2){const _0x221768=_0x5a6197=>!_0x5a6197['item']['is']('$textProxy')&&!_0x52abf2['isObject'](_0x5a6197['item']),_0x162b28=_0x1f17ab['start']['getLastMatchingPosition'](_0x221768),_0x3ab502=_0x1f17ab['end']['getLastMatchingPosition'](_0x221768,{'direction':'backward'});return(!_0x1f17ab['start']['isEqual'](_0x162b28)||!_0x1f17ab['end']['isEqual'](_0x3ab502))&&(_0x162b28['isBefore'](_0x3ab502)?_0x1e6d3b['updateMarker'](_0x4ad4dd,{'range':_0x1e6d3b['createRange'](_0x162b28,_0x3ab502)}):_0x1e6d3b['removeMarker'](_0x4ad4dd),!0x0);}function Ht(_0xbde0ce){return _0x3d0cd8(_0xbde0ce);}function Qt(_0x19d04f){const _0x7366bb=_0x19d04f['start']['nodeAfter'];return _0x7366bb&&_0x7366bb['is']('element');}function Xt(_0x4dbe7a){return Kt(_0x4dbe7a)||function(_0x5eb6a){return _0x5eb6a['start']['parent']==_0x5eb6a['end']['nodeBefore']&&_0x5eb6a['start']['isAtEnd'];}(_0x4dbe7a);}function Yt(_0x50e4f8,_0x321976){try{const _0x112969=_0x50e4f8['getRange']();for(const _0x460980 of _0x321976)if(_0x50e4f8!==_0x460980&&_0x112969&&_0x112969['isIntersecting'](_0x460980['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x9405aa,_0x55233a){return null==_0x9405aa['end']['nodeBefore']&&_0x9405aa['end']['parent']==_0x9405aa['start']['nodeAfter']?tn(_0x9405aa['start']['nodeAfter'],_0x55233a):_0x9405aa;}function tn(_0x2364ab,_0x306d5b){const _0x553dd6=_0x306d5b['schema']['isObject'](_0x2364ab)||_0x306d5b['schema']['isSelectable'](_0x2364ab);return _0x306d5b['createRange'](_0x306d5b['createPositionAt'](_0x2364ab,'before'),_0x553dd6?_0x306d5b['createPositionAfter'](_0x2364ab):_0x306d5b['createPositionAt'](_0x2364ab,'end'));}function nn(_0x54f221,_0x44245f,_0x31b377,_0x8c395){return!!en(_0x54f221,_0x44245f)&&_0x31b377['end']['isEqual'](_0x8c395['start']);}function en(_0x31189c,_0xccd603){if(!_0x31189c['_isDataLoaded']||!_0xccd603['_isDataLoaded'])return!0x1;const _0x3a900c=new Set(Object['keys'](_0x31189c['attributes'])),_0x45b312=new Set(Object['keys'](_0xccd603['attributes']));if(_0x3a900c['delete']('groupId'),_0x45b312['delete']('groupId'),0x0==_0x3a900c['size']&&0x0==_0x45b312['size'])return!0x0;if(_0x3a900c['size']!=_0x45b312['size'])return!0x1;const _0xd81440={..._0x31189c['attributes']},_0x102c47={..._0xccd603['attributes']};return delete _0xd81440['groupId'],delete _0x102c47['groupId'],JSON['stringify'](_0xd81440)==JSON['stringify'](_0x102c47);}function sn(_0x359c87,_0x458128){const _0x2a5e80=on(_0x359c87['attributes']),_0x470a7d=on(_0x458128);if(!_0x359c87['_isDataLoaded'])return!0x1;for(const _0x9df0c0 of Object['keys'](_0x470a7d))if(!_0x2d2cfe(_0x2a5e80[_0x9df0c0],_0x470a7d[_0x9df0c0]))return!0x1;return!0x0;}function on(_0x3b37d6){const _0x3cd0cd=Object['assign']({},_0x3b37d6);return delete _0x3cd0cd['skipNestingCheck'],delete _0x3cd0cd['tablePasteChainId'],_0x3cd0cd;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x544e3a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x55c79c,_0x2a4739,_0x453088,_0x378eb7){super(),this['model']=_0x2a4739,this['view']=_0x453088,this['commentThreadController']=_0x378eb7,this['_editor']=_0x55c79c,this['_acceptCommand']=_0x55c79c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x55c79c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x31aed8,_0x560d95)=>_0x31aed8||_0x560d95),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4aa1a9=>_0x4aa1a9&&this['_editor']['model']['canEditAt'](_0x2a4739['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42601e=>_0x42601e&&this['_editor']['model']['canEditAt'](_0x2a4739['getRanges']())),this['_pendingAction']=null,_0x453088['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x453088,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x453088,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x453088,'change:isDirty',()=>{_0x453088['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 _0x10498d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x10498d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x41a816{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4187af,_0x15f398,_0x4b4ddf,_0x4d17e1){super(_0x4187af),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x345832(_0x4187af,o(_0x4187af,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x15f398['authoredAt']),this['bind']('authoredAt')['to'](_0x15f398),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',_0x15f398,'authoredAt',this,'descriptionParts',(_0x5118d6,_0x122ce1,_0x4ca03a)=>{const _0x49ad83=_0x4ca03a['map'](_0x3592e8=>ls(_0x3592e8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5118d6-0x1,_0x15f398['author']['name'],_0x122ce1?_0x4d17e1['formatDateTime'](_0x122ce1):'',new DOMParser()['parseFromString'](_0x49ad83,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1f57f1(),this['focusTracker']=new _0x29eec2(),this['keystrokes']=new _0x20401d(),this['focusCycler']=new _0x4d7910({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1ca19b=>_0x1ca19b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x15f398,this['_localUser']=_0x4b4ddf,this['_config']=_0x4d17e1,_0x4d17e1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5ede28(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x353269}=this['_config'];this['commentsListView']=new _0x353269(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',_0x2e248a=>_0x2e248a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x44067f,_0x2f1189)=>_0x44067f||!!_0x2f1189);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4e4e92}=this['_config'],_0x5ec1ee=new _0x4e4e92(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1cb631=_0x5ec1ee['commentInputView'];return _0x5ec1ee['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1cb631,'value',(_0x51e411,_0x3bf6ca,_0x52a173)=>!!_0x52a173||_0x51e411&&!_0x3bf6ca),_0x1cb631['on']('submit',(_0x557fc9,_0x1575c0)=>{this['fire']('addComment',_0x1575c0),_0x1cb631['editor']['setData']('');}),_0x1cb631['on']('cancel',()=>this['focus']()),_0x1cb631['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5ec1ee;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x49c47f,_0x32f211,_0x11e811,_0x3c2c95){super(_0x49c47f,_0x32f211,_0x11e811,_0x3c2c95),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1ac779=>_0x1ac779&&_0x1ac779[0x0]?_0x1ac779[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x37e486,_0x2da5af)=>{let _0x4d42af='';for(const _0x347d33 of _0x37e486)_0x4d42af+='<p>'+ls(_0x347d33['content'],_0x347d33['color'])+'</p>';return _0x2da5af?_0x4d42af:_0x158af9(_0x4d42af,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3c2c95['SuggestionView'](_0x49c47f,_0x32f211,{'formatDateTime':_0x3c2c95['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 _0x2eeee8=this['bindTemplate'],_0x27078e=[this['suggestionView']];return this['commentsListView']&&_0x27078e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x27078e['push'](this['commentThreadInputView']),_0x27078e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2eeee8['if']('isActive','ck-suggestion-wrapper--active'),_0x2eeee8['to']('type',_0x276c6f=>'ck-suggestion-'+_0x276c6f),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':_0x2eeee8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x27078e};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x41a816{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x59a1f7,_0x9f0f6e,_0x2cf8cc){super(_0x59a1f7),this['_model']=_0x9f0f6e,this['_config']=_0x2cf8cc,this['set']('description',''),this['bind']('authoredAt')['to'](_0x9f0f6e),this['acceptButton']=this['_createButton'](o(_0x59a1f7,'Accept\x20suggestion'),_0x3ddcc0,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x59a1f7,'Discard\x20suggestion'),_0x14adc4,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x52e884(_0x59a1f7,_0x9f0f6e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1f57f1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x29eec2(),this['keystrokes']=new _0x20401d(),this['focusCycler']=new _0x4d7910({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2ec05f=>_0x2ec05f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x43cce1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x43cce1['innerHTML']=this['description'],this['on']('change:description',(_0x6e4a61,_0x19736f,_0x4b6013)=>{_0x43cce1['innerHTML']=_0x4b6013;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2a64af=this['bindTemplate'],_0x1e0de2=[{'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':_0x2a64af['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a64af['to']('authoredAt',_0x2d95bb=>this['_config']['formatDateTime'](_0x2d95bb))}]}]},{'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']&&_0x1e0de2['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':_0x1e0de2}]};}['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'](_0x582d8d,_0xa824c6,_0x884f8a,_0xa5c587,_0xe46c02){const _0xd4b46e=new _0x467e93(this['locale']);return _0xd4b46e['set']({'label':_0x582d8d,'icon':_0xa824c6,'tooltip':!0x0,'tooltipPosition':_0xe46c02}),_0xd4b46e['extendTemplate']({'attributes':{'class':_0x884f8a}}),_0xd4b46e['on']('execute',()=>{this['fire'](_0xa5c587,this['_model']['id']);}),_0xd4b46e;}['_setupKeyboardNavigation'](){const _0xe404cc=this['element'];this['keystrokes']['listenTo'](_0xe404cc);for(const _0x373af3 of this['focusables'])this['focusTracker']['add'](_0x373af3['element']),this['keystrokes']['listenTo'](_0x373af3['element']);this['keystrokes']['set']('enter',(_0x555876,_0xd3cda2)=>{_0xe404cc===_0x555876['target']&&(this['focusCycler']['focusFirst'](),_0xd3cda2());}),this['keystrokes']['set']('esc',(_0xa13033,_0x3215bd)=>{_0xe404cc!==_0xa13033['target']&&(this['focus'](),_0x3215bd());});}}class u extends _0x4bb77d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4f0c6c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfdc3fc){super(_0xfdc3fc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x21c5d9=this['editor']['config'];_0x21c5d9['define']('trackChanges.SuggestionThreadView',fe),_0x21c5d9['define']('trackChanges.SuggestionView',we),_0x21c5d9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x21c5d9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x522ea0,_0x505839){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xcec19,_0x2388b9]of this['_handleControllerBuffer']){const _0x2263fe=this['_suggestionToController']['has'](_0xcec19);_0x2263fe||_0x2388b9?_0x2263fe&&_0x2388b9&&this['_destroyController'](_0xcec19):this['_initializeController'](_0xcec19);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x522ea0,_0x505839);}['init'](){const _0x6e2518=this['editor'],_0x5cd486=_0x6e2518['plugins']['get']('TrackChangesEditing'),_0x78b7c3=_0x6e2518['plugins']['get']('Annotations'),_0x4ad826=_0x6e2518['plugins']['get']('EditorAnnotations'),_0x33257a=_0x6e2518['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4ad826['addSourceCollector'](()=>{const _0xddae80=[];for(const [_0x570ea7,_0x54331d]of Array['from'](this['_suggestionToController'])){const _0x2bd082=_0x570ea7['getAllAdjacentSuggestions'](),_0x4f2c86=[];for(const _0x1b3d9f of _0x2bd082){if(!_0x1b3d9f['isInContent'])continue;if(_0x1b3d9f['isMultiRange']){_0x4f2c86['push'](..._0x1b3d9f['getRanges']());continue;}const _0x5da819=_0x1b3d9f['getFirstRange']();if(_0x4f2c86['length']>0x0){const _0xe16aa8=_0x4f2c86[0x0]['getJoined'](_0x5da819);if(_0xe16aa8){_0x4f2c86[0x0]=_0xe16aa8;continue;}}_0x4f2c86['push'](_0x5da819);}_0xddae80['push']([_0x54331d['view'],_0x4f2c86]);}return _0xddae80;}),this['listenTo'](_0x5cd486,'suggestionLoaded',(_0x175e90,_0x863292)=>{this['listenTo'](_0x863292,'change:previous',(_0x4d31b2,_0x4aafed,_0x4a159f,_0x1d3937)=>{_0x863292['isInContent']&&(null==_0x4a159f?(this['_updateController'](_0x1d3937['head']),this['_handleSuggestionControllerDelayed'](_0x863292,!0x1)):(this['_updateController'](_0x4a159f['head']),null==_0x1d3937&&this['_handleSuggestionControllerDelayed'](_0x863292,!0x0)));}),null!==_0x863292['previous']?this['_updateController'](_0x863292['head']):this['_handleSuggestionControllerDelayed'](_0x863292,!0x1);}),this['listenTo'](_0x5cd486,'suggestionUnloaded',(_0x3db431,_0x29b8d9,_0x169565)=>{this['stopListening'](_0x29b8d9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x29b8d9),this['_suggestionToController']['has'](_0x29b8d9)&&this['_destroyController'](_0x29b8d9),_0x169565&&this['_updateController'](_0x169565['head']);}),this['listenTo'](_0x5cd486,'suggestionChanged',(_0x589b6a,_0x105363)=>{this['_updateController'](_0x105363);}),this['listenTo'](_0x78b7c3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x33257a,'addComment',(_0x3b5a60,{threadId:_0x1e9b3b,isFromAdapter:_0x46cb1a})=>{if(_0x46cb1a||!_0x5cd486['hasSuggestion'](_0x1e9b3b))return;const _0x5561d0=_0x5cd486['getSuggestion'](_0x1e9b3b);this['_suggestionToController']['get'](_0x5561d0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1cf816=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f5bab;for(const _0x2a22c6 in _0x1cf816){const _0x11a74b=_0x2a22c6,_0x32b46b=_0x1cf816[_0x11a74b];if('trackChangesLicenseKeyValid'==_0x32b46b||'trackChangesLicenseKeyInvalid'==_0x32b46b||'trackChangesLicenseKeyExpired'==_0x32b46b||'trackChangesLicenseKeyDomainLimit'==_0x32b46b||'trackChangesLicenseKeyNotAllowed'==_0x32b46b||'trackChangesLicenseKeyEvaluationLimit'==_0x32b46b||'trackChangesLicenseKeyUsageLimit'==_0x32b46b){delete _0x1cf816[_0x11a74b],_0x4f5bab=_0x32b46b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4f5bab&&_0x1cf816['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4f5bab&&_0x1cf816['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4f5bab&&_0x1cf816['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4f5bab&&_0x1cf816['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4f5bab&&_0x1cf816['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4f5bab&&_0x1cf816['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1d42cb){const _0x40bd2b=this['_suggestionToController']['get'](_0x1d42cb);if(!_0x40bd2b)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x40bd2b['view'])||null;}['getSuggestionForAnnotation'](_0x9fa0c6){const _0x96c31f=this['_viewToController']['get'](_0x9fa0c6['innerView']);return _0x96c31f?_0x96c31f['model']:null;}['_refreshActiveMarkers'](){const _0x35ebdc=this['editor']['plugins']['get']('Annotations'),_0x42e72c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4df91d=Array['from'](_0x35ebdc['activeAnnotations'],_0x2af49c=>_0x2af49c['innerView'])['filter'](_0x15e071=>this['_viewToController']['has'](_0x15e071)),_0x3accc9=[];for(const _0xf071bc of _0x4df91d){const _0x440981=this['_viewToController']['get'](_0xf071bc)['model']['getAllAdjacentSuggestions']();_0x3accc9['push'](..._0x440981['reduce']((_0x549a7e,_0x2ef4a0)=>[..._0x549a7e,..._0x2ef4a0['getMarkerNames']()],[]));}_0x42e72c['activeMarkers']=_0x3accc9;}['_addUIComponentsToFactory'](){const _0x560b5b=this['editor'],_0x8a9a9d=_0x560b5b['locale'],_0xb0ceca=o(_0x8a9a9d,'Track\x20changes'),_0x309096=new _0x3e0553([{'type':'switchbutton','model':new _0x49fff2({'withText':!0x0,'isToggleable':!0x0,'label':_0xb0ceca,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x49fff2({'withText':!0x0,'label':o(_0x8a9a9d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49fff2({'withText':!0x0,'label':o(_0x8a9a9d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49fff2({'withText':!0x0,'label':o(_0x8a9a9d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x49fff2({'withText':!0x0,'label':o(_0x8a9a9d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x560b5b['plugins']['has']('TrackChangesPreview')&&_0x309096['addMany']([{'type':'separator'},{'type':'button','model':new _0x49fff2({'withText':!0x0,'label':o(_0x8a9a9d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2d84d1 of _0x309096)if(ke(_0x2d84d1)){const _0x42f21e=_0x560b5b['commands']['get'](_0x2d84d1['model']['commandName']);_0x2d84d1['model']['bind']('isOn','isEnabled')['to'](_0x42f21e,'value','isEnabled');}_0x560b5b['ui']['componentFactory']['add']('trackChanges',_0x185921=>this['_createToolbarButton'](_0x185921,_0x309096,_0xb0ceca)),_0x560b5b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b2712=>this['_createMenuBarMenu'](_0x5b2712,_0x309096,_0xb0ceca));}['_createToolbarButton'](_0x3ac440,_0x33db2d,_0x44ef57){const _0x44c773=_0x483a6b(_0x3ac440,_0x34f1d9),_0x3b9be3=this['editor']['commands']['get']('trackChanges');_0x44c773['buttonView']['set']({'tooltip':_0x44ef57,'label':_0x44ef57,'icon':_0x3ed89c}),_0x44c773['buttonView']['bind']('isOn')['to'](_0x3b9be3,'value'),_0x44c773['buttonView']['on']('execute',()=>{_0x3b9be3['execute'](),this['editor']['editing']['view']['focus']();}),_0x132e80(_0x44c773,_0x33db2d,{'role':'menu'});const _0x482424=[];for(const _0x2888ee of _0x33db2d)ke(_0x2888ee)&&_0x482424['push'](this['editor']['commands']['get'](_0x2888ee['model']['commandName']));const _0x599d3a=_0x44c773['buttonView'];return _0x599d3a['actionView']['unbind']('isEnabled'),_0x599d3a['arrowView']['unbind']('isEnabled'),_0x599d3a['actionView']['bind']('isEnabled')['to'](_0x3b9be3,'isEnabled'),_0x599d3a['arrowView']['bind']('isEnabled')['toMany'](_0x482424,'isEnabled',(..._0x44d5e6)=>_0x44d5e6['some'](_0x432d6b=>_0x432d6b)),_0x44c773['on']('execute',_0x471f13=>{this['editor']['execute'](_0x471f13['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x44c773;}['_createMenuBarMenu'](_0x40921a,_0x1e130b,_0x45af5){const _0x339932=new _0xdb2595(_0x40921a),_0x464271=this['editor']['commands']['get']('trackChanges');_0x339932['buttonView']['set']({'label':_0x45af5,'icon':_0x3ed89c});const _0x3f5501=new _0x158120(_0x40921a);for(const _0x4c0632 of _0x1e130b){if('separator'==_0x4c0632['type']){_0x3f5501['items']['add'](new _0x582eb9(_0x40921a));continue;}const _0x41afd6=new _0x187ba1(_0x40921a,_0x339932),_0x1707a8=new _0x1aeae6(_0x40921a),_0xb5e97b=_0x4c0632['model'];_0x1707a8['bind'](...Object['keys'](_0xb5e97b))['to'](_0xb5e97b),_0x1707a8['delegate']('execute')['to'](_0x339932),_0x1707a8['on']('execute',()=>{this['editor']['execute'](_0xb5e97b['commandName']),this['editor']['editing']['view']['focus']();}),_0x41afd6['children']['add'](_0x1707a8),_0x3f5501['items']['add'](_0x41afd6);}return _0x339932['bind']('isEnabled')['to'](_0x464271,'isEnabled'),_0x339932['panelView']['children']['add'](_0x3f5501),_0x339932;}['_initializeController'](_0x436326){const _0x18b0c5=this['editor'],_0x130cae=_0x18b0c5['config'],_0x3f6f27=_0x18b0c5['plugins']['get']('Annotations'),_0x110ab7=_0x18b0c5['plugins']['get']('CommentsRepository'),_0x2a3286=_0x18b0c5['plugins']['get']('EditorAnnotations'),_0x4c80c2=_0x18b0c5['plugins']['get'](_0x4f0c6c)['me'],_0x545d87=_0x130cae['get']('trackChanges')['SuggestionThreadView'],_0x2da959=_0x130cae['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x12f2d6,CommentThreadInputView:_0x558eb9}=_0x18b0c5['plugins']['get']('CommentsUI');let _0x27c568,_0x1c0704,_0x44bb43;this['_annotationViews']['has'](_0x436326['id'])?(_0x1c0704=this['_annotationViews']['get'](_0x436326['id']),_0x27c568=_0x1c0704['mainView']):(_0x27c568=new _0x545d87(_0x18b0c5['locale'],_0x436326,_0x4c80c2,{'disableComments':this['_disableComments'],'editorConfig':{..._0x130cae['get']('comments.editorConfig'),'licenseKey':_0x130cae['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x130cae['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x130cae['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x130cae['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4fe80b(_0x130cae['get']('locale'),_0x18b0c5['locale']),'CommentView':_0x130cae['get']('comments')['CommentView'],'CommentsListView':_0x12f2d6,'CommentThreadInputView':_0x558eb9,'SuggestionView':_0x2da959}),_0x27c568['suggestionView']['acceptButton']['on']('execute',()=>{_0x18b0c5['editing']['view']['focus']();}),_0x27c568['suggestionView']['discardButton']['on']('execute',()=>{_0x18b0c5['editing']['view']['focus']();}),_0x1c0704=_0x3f6f27['createAnnotationView'](this['editor']['locale'],_0x27c568),_0x1c0704['bind']('isDirty')['to'](_0x27c568,'isDirty'),_0x1c0704['bind']('length')['to'](_0x27c568),_0x1c0704['bind']('type')['to'](_0x27c568,'type',_0x4ca29f=>'suggestion-'+_0x4ca29f),_0x27c568['on']('escape',()=>{_0x44bb43['fire']('escape');}),this['_annotationViews']['set'](_0x436326['id'],_0x1c0704));const _0x251a64=_0x110ab7['createCommentThreadController'](_0x436326['commentThread'],_0x27c568),_0x17e9f1=new pe(_0x18b0c5,_0x436326,_0x27c568,_0x251a64),_0x37732d=_0x436326['getAllAdjacentSuggestions']()['filter'](_0x4187a5=>_0x4187a5['isInContent']);_0x27c568['descriptionParts']=_0x18b0c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x37732d),this['_suggestionToController']['set'](_0x436326,_0x17e9f1),this['_viewToController']['set'](_0x27c568,_0x17e9f1);const _0x4fbb9d=()=>{const _0x514f04=[],_0x1921b9=_0x436326['getAllAdjacentSuggestions']()['filter'](_0x449c63=>_0x449c63['isInContent']);for(const _0x21686b of _0x1921b9)_0x514f04['push'](..._0x21686b['getMarkers']());return _0x260b9e(_0x18b0c5['editing'],_0x514f04);};_0x44bb43=_0x3f6f27['createAnnotation']({'view':_0x1c0704,'target':_0x4fbb9d,'type':()=>'suggestion-'+_0x17e9f1['view']['type'],'isVisible':!!_0x4fbb9d()}),_0x110ab7['_bindAnnotationToEditors'](_0x27c568,_0x44bb43),_0x3f6f27['add'](_0x44bb43),_0x2a3286['registerAnnotation'](_0x44bb43);}['_destroyController'](_0x4b80b5){const _0x317855=this['editor']['plugins']['get']('CommentsRepository'),_0x2779b4=this['editor']['plugins']['get']('Annotations'),_0x458dd1=this['_suggestionToController']['get'](_0x4b80b5),_0x5a5e86=_0x458dd1['view'],_0x495c8f=_0x2779b4['getByInnerView'](_0x5a5e86);_0x317855['_unbindEditors'](_0x5a5e86),_0x495c8f&&_0x2779b4['remove'](_0x495c8f),this['_suggestionToController']['delete'](_0x4b80b5),this['_viewToController']['delete'](_0x5a5e86),_0x458dd1['destroy']();}['_updateController'](_0xfbc9b){if(!_0xfbc9b['isInContent']||!this['_suggestionToController']['has'](_0xfbc9b))return;const _0x907d8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d59a3=this['_suggestionToController']['get'](_0xfbc9b),_0x259e27=_0xfbc9b['getAllAdjacentSuggestions']();_0x5d59a3['view']['descriptionParts']=_0x907d8e['descriptionFactory']['getDescriptions'](_0x259e27);}['destroy'](){for(const _0x814e86 of this['_suggestionToController']['keys']())this['_destroyController'](_0x814e86);for(const _0x63717f of this['_annotationViews']['values']())_0x63717f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x30802e){return'model'in _0x30802e;}class Ne extends _0x4bb77d{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x573209){this['editor']['plugins']['get'](d)['adapter']=_0x573209;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x3b769c){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x3b769c);}['getSuggestions']({skipNotAttached:_0x2ecf8a=!0x1,toJSON:_0x3f2f5f=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2ecf8a,'toJSON':_0x3f2f5f});}['getSuggestion'](_0x4e8040){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x4e8040);}}const p=['Pagination'];class re extends _0x4bb77d{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1ae6ec=this['editor'];if(_0x1ae6ec['config']['define']('trackChangesData.editorCreator',_0x227184=>{const _0x2c1236=_0x1ae6ec['model']['document']['getRootNames']()['reduce']((_0xcab9b0,_0x555e7b)=>(_0xcab9b0[_0x555e7b]='',_0xcab9b0),{});return _0x1ae6ec['constructor']['create'](_0x2c1236,_0x227184);}),'function'!=typeof _0x1ae6ec['config']['get']('trackChangesData')['editorCreator'])throw new _0x38b249('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5bf35e){return P(this['editor'],!0x0,_0x5bf35e);}['getDataWithDiscardedSuggestions'](_0x308a0b){return P(this['editor'],!0x1,_0x308a0b);}}class Fe extends _0x4bb77d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32b923){function _0x504cf9(_0x15d035){return _0x15d035['map'](_0x16d215=>String['fromCharCode'](_0x16d215))['join']('');}super(_0x32b923),this['result']='end',_0x32b923[_0x504cf9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x504cf9([0x76,0x69,0x65,0x77])][_0x504cf9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x504cf9([0x61,0x75,0x74,0x6f]),_0x32b923[_0x504cf9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x504cf9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x504cf9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x504cf9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x504cf9([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 De(_0x1ff66c){return void 0x0!==_0x1ff66c['getRootsAttributes'];}async function P(_0x2bbef7,_0x10ccdd,_0x225bdd){const _0x53243d=_0x393970(_0x2bbef7,p);_0x53243d['plugins']['push'](d,Fe),_0x53243d['rootsAttributes']=De(_0x2bbef7)?_0x2bbef7['getRootsAttributes']():void 0x0;const _0x48c32c=document['createDocumentFragment'](),_0x2a9248=_0x2bbef7['config']['get']('trackChangesData')['editorCreator'],_0xcfd240=await _0x2a9248(_0x53243d,()=>function(_0x59baf3){const _0x2b2744=document['createElement']('div');return _0x59baf3['appendChild'](_0x2b2744),_0x2b2744;}(_0x48c32c));!function(_0x1e761e,_0x881b48){const _0x1fab23=_0x1e761e['model']['document']['getRootNames']()['reduce']((_0x35602a,_0x56149b)=>(_0x35602a[_0x56149b]=_0x1e761e['data']['get']({'rootName':_0x56149b}),_0x35602a),{}),_0x330657=_0x1e761e['plugins']['get']('Users')['users']['map'](_0x15ab67=>({'id':_0x15ab67['id'],'name':_0x15ab67['name']})),_0x2b040d=_0x1e761e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5aee14=_0x1e761e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x231687=_0x881b48['plugins']['get']('Users'),_0x1baa47=_0x881b48['plugins']['get']('TrackChangesEditing'),_0x26ad18=_0x881b48['plugins']['get']('CommentsRepository');for(const _0x3a7702 of _0x26ad18['getCommentThreads']())_0x3a7702['remove']();for(const _0x457786 of _0x330657)_0x231687['getUser'](_0x457786['id'])||_0x231687['addUser'](_0x457786);_0x231687['me']||_0x231687['useAnonymousUser']();for(const _0x258f57 of _0x5aee14)_0x26ad18['addCommentThread'](_0x258f57);for(const _0x3e5afe of _0x2b040d)_0x1baa47['addSuggestionData'](_0x3e5afe);_0x881b48['data']['set'](_0x1fab23);}(_0x2bbef7,_0xcfd240),_0xcfd240['execute'](_0x10ccdd?'acceptAllSuggestions':'discardAllSuggestions');const _0x265ee4=De(_0xcfd240)?_0xcfd240['getFullData'](_0x225bdd):_0xcfd240['data']['get'](_0x225bdd);return await _0xcfd240['destroy'](),_0x265ee4;}class Me extends _0x41a816{['options'];constructor(_0x11471d,_0x12ff5e){super(_0x11471d),this['options']=_0x12ff5e,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'](_0x3c1cd5,_0xa8adb2){if(!this['element'])return;const _0x992b16=[];for(const [_0x2ce4e7,_0x5d3c4d]of _0x3c1cd5){const _0x160aa2=document['createElement']('div');_0x160aa2['setAttribute']('data-ck-root-name',_0x2ce4e7),_0x160aa2['className']=_0x5d3c4d['classes']+'\x20ck-track-changes-preview__root-container',_0x160aa2['innerHTML']=_0x5d3c4d['content'],_0x992b16['push'](_0x160aa2);}_0xa8adb2(this['element'],_0x992b16),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x196061{constructor(_0x129be8){super(_0x129be8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3a3e6b=this['editor'],_0x3da857=_0x3a3e6b['locale'],_0x2c9b7f=_0x3a3e6b['plugins']['get']('Dialog');let _0x14af05;const _0x3109d4=function(_0x2ef599){const _0x47c6c9={};if('editables'in _0x2ef599['ui']['view']){for(const [_0x14e7d9,_0x173be6]of Object['entries'](_0x2ef599['ui']['view']['editables']))_0x47c6c9[_0x14e7d9]=_0x173be6['element'];}else _0x47c6c9[_0x2ef599['model']['document']['getRootNames']()[0x0]]=_0x2ef599['ui']['view']['editable']['element'];return _0x47c6c9;}(_0x3a3e6b),_0x5b4f6e=function(_0x1197f2){let _0x515b70=0x0;for(const _0x42a014 of Object['values'](_0x1197f2))_0x515b70=Math['max'](_0x515b70,_0x42a014['getBoundingClientRect']()['width']);let _0x51d4d3=0x0;for(const _0x29af1d of Object['values'](_0x1197f2))_0x51d4d3+=_0x29af1d['getBoundingClientRect']()['height'];const _0x3cb1e5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x31b021=Math['min'](_0x51d4d3,_0x3cb1e5);return{'width':_0x515b70,'height':_0x31b021};}(_0x3109d4);_0x2c9b7f['show']({'id':'finalContentPreview','title':o(_0x3da857,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3da857,{'dialogRects':_0x5b4f6e}),'onHide':()=>{_0x14af05['detachFromDom']();},'onShow':()=>{_0x3a3e6b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4747d4=>{const _0x54a4d7=this['_standarizeRootsData'](_0x4747d4,_0x3a3e6b,_0x3109d4);_0x2c9b7f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54a4d7,_0x3a3e6b['config']['get']('trackChanges.preview.renderFunction'));}),_0x14af05=new _0x367055(_0x3da857,[_0x2c9b7f['view']]),_0x14af05['attachToDom'](),_0x14af05['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3a3e6b['once']('destroy',()=>{_0x14af05['detachFromDom']();});const _0x6ecb60=_0x2c9b7f['view']['headerView']['class'];_0x2c9b7f['view']['headerView']['class']=_0x6ecb60?_0x6ecb60+'\x20ck-reset_all':'ck-reset_all',_0x2c9b7f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2c9b7f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x20a9f2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3af8e9=_0x20a9f2['previewMode'],_0x1d4dd9={};if('$labels'===_0x3af8e9){for(const _0x4e2997 of _0x20a9f2['getMergeFieldsIds']())_0x1d4dd9[_0x4e2997]=_0x20a9f2['getLabel'](_0x4e2997)||_0x4e2997;}else{const _0x38376b='$defaultValues'===_0x3af8e9?_0x20a9f2['getDefaultValues']():_0x20a9f2['getDataSetValues'](_0x3af8e9,!0x0);for(const _0x36984d of Object['entries'](_0x38376b)){const [_0x5b5101,_0x336029]=_0x36984d;_0x1d4dd9[_0x5b5101]=null!==_0x336029?_0x336029:_0x20a9f2['getLabel'](_0x5b5101)||_0x5b5101;}}return{'mergeFieldsData':_0x1d4dd9};}['_standarizeRootsData'](_0x2d9af4,_0x45f294,_0x4a1cd0){let _0x52a926;if('string'==typeof _0x2d9af4){const _0x440a68=_0x45f294['model']['document']['getRootNames']()[0x0];_0x52a926={[_0x440a68]:_0x2d9af4};}else _0x52a926=_0x2d9af4;const _0x1fa152=this['_fixMediaEmbeds'](_0x52a926,_0x45f294),_0x47f9c3=function(_0x2a9068,_0x284f62){for(const [_0x39e1b4,_0x25766e]of _0x2a9068)_0x25766e['classes']=_0x284f62[_0x39e1b4]['classList']['value']['replace']('ck-focused','');return _0x2a9068;}(this['_sortRoots'](_0x45f294)['reduce']((_0x54f6af,_0x580457)=>(_0x54f6af['push']([_0x580457,{'content':_0x1fa152[_0x580457],'classes':''}]),_0x54f6af),[]),_0x4a1cd0);return _0x47f9c3;}['_fixMediaEmbeds'](_0x1107b6,_0x244c53){if(!_0x244c53['plugins']['has']('MediaEmbedEditing'))return _0x1107b6;const _0x39ea1b=_0x244c53['plugins']['get']('MediaEmbedEditing');for(const [_0x16df3b,_0x45dab5]of Object['entries'](_0x1107b6)){const _0x4babf5=document['createElement']('div');_0x4babf5['innerHTML']=_0x45dab5,(_0x4babf5['querySelectorAll']('figure.media')['forEach'](_0x34936e=>{const _0x48d84d=_0x34936e['querySelector']('oembed');if(_0x48d84d){const _0x5e4f85=_0x48d84d['getAttribute']('url');if(_0x5e4f85){const _0x3df920=_0x39ea1b['registry']['getMediaViewElement'](new _0x15bf6a(_0x244c53['editing']['view']['document']),_0x5e4f85,{'elementName':'','renderForEditingView':!0x0}),_0x2042ae=document['createElement']('div');_0x2042ae['classList']['add']('ck-media__wrapper'),_0x3df920['render'](_0x2042ae,_0x244c53['editing']['view']['domConverter']),_0x48d84d['replaceWith'](_0x2042ae);}}}),_0x1107b6[_0x16df3b]=_0x4babf5['innerHTML']);}return _0x1107b6;}['_sortRoots'](_0x4e80cd){if(!function(_0x184ee0){return void 0x0!==_0x184ee0['getRootsAttributes'];}(_0x4e80cd))return _0x4e80cd['model']['document']['getRootNames']();const _0x1a0f35=[],_0x58ae1d=new Map();for(const _0x2bcc9c of _0x4e80cd['model']['document']['getRootNames']()){const _0x469fc5=_0x4e80cd['editing']['view']['getDomRoot'](_0x2bcc9c)['getClientRects']()['item'](0x0);_0x1a0f35['push'](_0x2bcc9c),_0x58ae1d['set'](_0x2bcc9c,_0x469fc5);}return _0x1a0f35['sort']((_0x1ea9cf,_0x22c064)=>{const _0x380e37=_0x58ae1d['get'](_0x1ea9cf),_0x33d0f7=_0x58ae1d['get'](_0x22c064);return _0x380e37['y']-_0x33d0f7['y']||_0x380e37['x']-_0x33d0f7['x'];}),_0x1a0f35;}}class Ue extends _0x4bb77d{static get['requires'](){return[re,_0x3e905b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5dd03a){super(_0x5dd03a),_0x5dd03a['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5dd03a['config']['define']('trackChanges.preview.renderFunction',(_0x18414a,_0x468070)=>{for(const _0x1aea4a of _0x468070)_0x18414a['appendChild'](_0x1aea4a);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|