@ckeditor/ckeditor5-track-changes 47.7.0-alpha.4 → 47.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +26 -26
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x2e55e5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5f4f23,_0x51f305){super(),this['id']=_0x51f305['id'],this['type']=_0x51f305['type'],this['subType']=_0x51f305['subType']||null,this['author']=_0x51f305['author'],this['creator']=_0x51f305['creator']||_0x51f305['author'],this['isExternal']=Boolean(_0x51f305['attributes']&&_0x51f305['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x51f305['originalSuggestionId']||null,this['_model']=_0x5f4f23,this['_onAccept']=_0x51f305['onAccept'],this['_onDiscard']=_0x51f305['onDiscard'],this['_onAttributesChange']=_0x51f305['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x51f305['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 _0x22ceb0=this;for(;_0x22ceb0['previous'];)_0x22ceb0=_0x22ceb0['previous'];return _0x22ceb0;}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'](_0x2c3543){this['_markerNames']['add'](_0x2c3543);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b71ad=>this['_model']['markers']['get'](_0x2b71ad))['filter'](_0x2267aa=>_0x2267aa);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x100ce2=>{for(const _0x3dbcb8 of this['getMarkers']())_0x100ce2['removeMarker'](_0x3dbcb8);}),this['_markerNames']['clear']();}['removeMarker'](_0x2e116a){this['_model']['change'](_0x50e52e=>{_0x50e52e['removeMarker'](_0x2e116a);}),this['_markerNames']['delete'](_0x2e116a);}['addRange'](_0x23dada){const _0x2f7d87='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x2f7d87),this['_model']['change'](_0xf24d14=>{_0xf24d14['addMarker'](_0x2f7d87,{'range':_0x23dada,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b276d){for(const _0x4a5c98 of this['getRanges']())if(_0x4a5c98['isIntersecting'](_0x4b276d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3f7154=>_0x3f7154['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x183c85,_0x134f76)=>[..._0x183c85,..._0x134f76['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xef007a=this['getRanges']();if(0x1!=_0xef007a['length'])return null;const _0x90783a=_0xef007a[0x0],_0x2cf420=_0x90783a['start']['nodeAfter'],_0x57cd6a=_0x90783a['end']['nodeBefore'];return _0x2cf420 instanceof _0x50dc45?_0x2cf420!=_0x57cd6a?null:_0x2cf420: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 _0x21903c=[];let _0x50b5a5=this['head'];for(;_0x50b5a5;)_0x21903c['push'](_0x50b5a5),_0x50b5a5=_0x50b5a5['next'];return _0x21903c;}['setAttribute'](_0xb88c3d,_0x3e2b12){const _0x2da05c=_0x33dddf(this['attributes']);_0x2680eb(_0x2da05c,_0xb88c3d,_0x3e2b12),_0x296815(_0x2da05c,this['attributes'])||(this['attributes']=_0x2da05c,this['_onAttributesChange'](_0x2da05c));}['removeAttribute'](_0xc5c69){const _0x1b93e4=_0x33dddf(this['attributes']);_0x17b583(_0x1b93e4,_0xc5c69),_0x296815(_0x1b93e4,this['attributes'])||(this['attributes']=_0x1b93e4,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 _0x186142()['substr'](0x1,0x5);}}function o(_0x4ede38,_0x82eef6,_0x804875){const _0x37bf02=_0x4ede38['t'],t=_0x4ede38['t'];switch(_0x82eef6){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',_0x804875);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x804875);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x804875);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x804875);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x804875);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',_0x804875);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x804875);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',_0x804875);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x804875);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x804875);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x804875);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x804875);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x804875);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x804875);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x804875);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x804875);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x804875);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x804875);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x804875);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x804875);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x804875);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x804875);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x804875);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x804875);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x804875);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'},_0x804875);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x804875);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x804875);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x804875);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x804875);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x804875);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x804875);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x804875);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'},_0x804875);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x804875);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x804875);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x804875);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x804875);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x804875);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x804875);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'},_0x804875);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'},_0x804875);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x804875);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'},_0x804875);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x804875);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'},_0x804875);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x804875);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x804875);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x804875);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x804875);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x804875);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'},_0x804875);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x804875);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 _0x37bf02({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x804875);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x37bf02({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x804875);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x804875);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'},_0x804875);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'},_0x804875);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'},_0x804875);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x82eef6;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ea3ec,_0x4f368e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ea3ec,this['_locale']=_0x4f368e;}['getDescriptions'](_0x223a3e){const _0x611396=[],_0xeac079=new Set(),_0x4f7511=new Set();for(let _0x281932=0x0;_0x281932<_0x223a3e['length'];_0x281932++){const _0x583b49=_0x223a3e[_0x281932];if(!_0x583b49['isInContent'])continue;const _0xc49064=this['_handleCustomCallbackDescription'](_0x583b49);if(_0xc49064){if(null!=_0x583b49['subType']){if(_0xeac079['has'](_0x583b49['subType']))continue;_0xeac079['add'](_0x583b49['subType']);}_0x611396['push'](_0xc49064);}else{if('attribute'==_0x583b49['type']){const _0x3d429a=_0x583b49['data']['key'];if(_0x4f7511['has'](_0x3d429a))continue;_0x4f7511['add'](_0x583b49['data']['key']),_0x3d429a==m?this['_handleRenameSuggestionDescription'](_0x611396,_0x583b49):this['_handleAttributeSuggestionDescription'](_0x611396,_0x583b49);continue;}'insertion'!=_0x583b49['type']&&'deletion'!=_0x583b49['type']||this['_handleInsertRemoveSuggestionDescription'](_0x611396,_0x583b49,_0x223a3e[_0x281932+0x1]);}}return this['_resolveDescriptionItems'](_0x611396);}['registerDescriptionCallback'](_0x4dc2b8){this['_customCallbacks']['push'](_0x4dc2b8);}['registerElementLabel'](_0x47c578,_0x4ac1ce,_0x44ca63=_0x449b90['normal']){'function'==typeof _0x47c578?_0x20a514(this['_itemLabelsCallbacks'],{'matchingCallback':_0x47c578,'label':_0x4ac1ce,'priority':_0x44ca63}):this['_itemLabels']['set'](_0x47c578,_0x4ac1ce);}['registerAttributeLabel'](_0x3b824d,_0x4c59af){this['_attributeLabels']['set'](_0x3b824d,_0x4c59af);}['getItemLabel'](_0x1936fa,_0x4a6bac=0x1){let _0x650e68;for(const _0x2b323d of this['_itemLabelsCallbacks'])if(_0x2b323d['matchingCallback'](_0x1936fa)){_0x650e68=_0x2b323d['label'];break;}return _0x650e68||(_0x650e68=this['_itemLabels']['get'](_0x1936fa['name'])),_0x650e68?_0x650e68(_0x4a6bac):0x1!==_0x4a6bac?_0x4a6bac+'\x20'+_0x1936fa['name']+'s':''+_0x1936fa['name'];}['_addDescriptionItems'](_0x5f1ed7,_0x368f34){const _0x101ef8=_0x368f34['getFirstRange']()['getWalker'](),_0x3d8f28='insertion'==_0x368f34['type']?'add':'remove';for(const _0x549d0d of _0x101ef8){const _0x5c2629=_0x549d0d['item'],_0x407dfe=_0x5f1ed7[_0x5f1ed7['length']-0x1];if(_0x5c2629['is']('$textProxy'))_0x407dfe&&_0x407dfe['type']['indexOf']('Container')>-0x1&&_0x5f1ed7['pop'](),_0x407dfe&&'text'==_0x407dfe['type']?_0x407dfe[_0x3d8f28]+=_0x5c2629['data']:_0x5f1ed7['push']({'type':'text','add':'add'==_0x3d8f28?_0x5c2629['data']:'','remove':'remove'==_0x3d8f28?_0x5c2629['data']:''});else{if(this['_schema']['isObject'](_0x5c2629)){const _0x14f148=_0x5c2629;if(_0x407dfe&&_0x407dfe['type']['indexOf']('Container')>-0x1&&_0x5f1ed7['pop'](),'elementEnd'==_0x549d0d['type'])continue;_0x407dfe&&_0x407dfe['type']==_0x3d8f28+'Object'&&_0x407dfe['element']['name']==_0x14f148['name']?_0x407dfe['quantity']++:_0x5f1ed7['push']({'type':_0x3d8f28+'Object','element':_0x14f148,'quantity':0x1}),_0x101ef8['skip'](_0x1a81d5=>!('elementEnd'==_0x1a81d5['type']&&_0x1a81d5['item']==_0x5c2629));}else{if(this['_schema']['checkChild'](_0x5c2629,'$text')||_0x5c2629['is']('element','softBreak')){const _0x5ba701=_0x5c2629;if('add'==_0x3d8f28&&'elementStart'==_0x549d0d['type']||'remove'==_0x3d8f28&&'elementEnd'==_0x549d0d['type'])continue;if(_0x407dfe&&-0x1==_0x407dfe['type']['indexOf']('Container')){'text'==_0x407dfe['type']&&(_0x407dfe[_0x3d8f28]+='\x0a');continue;}let _0x52e3f0;if(_0x52e3f0='add'==_0x3d8f28?_0x5ba701['nextSibling']&&!this['_schema']['isObject'](_0x5ba701['nextSibling'])?_0x5ba701['nextSibling']:null:_0x5ba701['previousSibling']&&!this['_schema']['isObject'](_0x5ba701['previousSibling'])?_0x5ba701['previousSibling']:null,_0x5ba701['isEmpty']||_0x52e3f0&&_0x52e3f0['isEmpty']){const _0xcbef78=_0x52e3f0&&_0x52e3f0['isEmpty']?_0x52e3f0:_0x5ba701;_0x407dfe&&_0x407dfe['type']==_0x3d8f28+'EmptyContainer'&&_0x407dfe['element']['name']==_0xcbef78['name']?_0x407dfe['quantity']++:_0x5f1ed7['push']({'type':_0x3d8f28+'EmptyContainer','element':_0xcbef78,'quantity':0x1});}else _0x5f1ed7['push']({'type':_0x3d8f28+'Container','element':_0x5ba701});}}}}}['_resolveDescriptionItems'](_0x1ba197){const _0x242b46=this['_locale'],_0x4ca4a4=[],_0x279433=[],_0x25d0ea=[];for(const _0x1458d2 of _0x1ba197)switch(_0x1458d2['type']){case'text':if(_0x1458d2['add']=_0x1458d2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1458d2['remove']=_0x1458d2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1458d2['add']&&''!=_0x1458d2['remove']){_0x4ca4a4['push']({'type':'replace','content':o(_0x242b46,'REPLACE_TEXT',['\x22'+_0x1458d2['remove']+'\x22','\x22'+_0x1458d2['add']+'\x22'])});continue;}if(null!=_0x1458d2['add']['match'](/^ +$/)){_0x4ca4a4['push']({'type':'insertion','content':o(_0x242b46,'*Insert:*\x20%0',o(_0x242b46,'ELEMENT_SPACE',_0x1458d2['add']['length']))});continue;}if(null!=_0x1458d2['remove']['match'](/^ +$/)){_0x4ca4a4['push']({'type':'deletion','content':o(_0x242b46,'*Remove:*\x20%0',o(_0x242b46,'ELEMENT_SPACE',_0x1458d2['remove']['length']))});continue;}if(''!=_0x1458d2['add']){_0x4ca4a4['push']({'type':'insertion','content':o(_0x242b46,'*Insert:*\x20%0','\x22'+_0x1458d2['add']+'\x22')});continue;}_0x4ca4a4['push']({'type':'deletion','content':o(_0x242b46,'*Remove:*\x20%0','\x22'+_0x1458d2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ca4a4['push']({'type':'insertion','content':o(_0x242b46,'*Insert:*\x20%0',this['getItemLabel'](_0x1458d2['element'],_0x1458d2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ca4a4['push']({'type':'deletion','content':o(_0x242b46,'*Remove:*\x20%0',this['getItemLabel'](_0x1458d2['element'],_0x1458d2['quantity']))});continue;case'addContainer':_0x4ca4a4['push']({'type':'insertion','content':o(_0x242b46,'*Split:*\x20%0',this['getItemLabel'](_0x1458d2['element'],_0x1458d2['quantity']))});continue;case'removeContainer':_0x4ca4a4['push']({'type':'deletion','content':o(_0x242b46,'*Merge:*\x20%0',this['getItemLabel'](_0x1458d2['element'],_0x1458d2['quantity']))});continue;case'addFormat':_0x279433['push'](_0x1458d2['key']);continue;case'removeFormat':_0x25d0ea['push'](_0x1458d2['key']);continue;default:_0x4ca4a4['push'](_0x1458d2);}if(_0x279433['length']){const _0x4ca0a0=_0x279433['map'](_0xe4264f=>this['_attributeLabels']['has'](_0xe4264f)?this['_attributeLabels']['get'](_0xe4264f):_0xe4264f)['join'](',\x20');_0x4ca4a4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4ca0a0)});}if(_0x25d0ea['length']){const _0x1cc6ab=_0x25d0ea['map'](_0x13536a=>this['_attributeLabels']['has'](_0x13536a)?this['_attributeLabels']['get'](_0x13536a):_0x13536a)['join'](',\x20');_0x4ca4a4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1cc6ab)});}return _0x4ca4a4;}['_handleCustomCallbackDescription'](_0xe75a7f){for(const _0x5e2e85 of this['_customCallbacks']){const _0x27dffb=_0x5e2e85(_0xe75a7f);if(_0x27dffb&&'type'in _0x27dffb)return _0x27dffb;}}['_handleAttributeSuggestionDescription'](_0x5c6a30,_0x2da973){const _0x2d7a49=_0x2da973['data'],_0x13bf34=void 0x0===_0x2d7a49['newValue']?'removeFormat':'addFormat';_0x5c6a30['push']({'type':_0x13bf34,'key':_0x2d7a49['key']});}['_handleRenameSuggestionDescription'](_0x4b94b5,_0x518b3e){_0x4b94b5['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x518b3e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x30507f,_0x206920,_0x485d18){if(this['_addDescriptionItems'](_0x30507f,_0x206920),_0x485d18&&_0x485d18['getFirstRange']()&&!_0x206920['getFirstRange']()['end']['isEqual'](_0x485d18['getFirstRange']()['start'])){const _0x5a6610=_0x30507f[_0x30507f['length']-0x1],_0x590e2e='insertion'==_0x206920['type']?'add':'remove';_0x5a6610&&'text'==_0x5a6610['type']&&(_0x5a6610[_0x590e2e]+='\x0a');}}}class U extends _0x40606b{['afterInit'](){const _0x226035=this['editor'],_0x5ccffc=_0x226035['plugins']['get']('TrackChangesEditing');_0x226035['commands']['get']('showAIAssistant')&&_0x5ccffc['enableCommand']('showAIAssistant');}}class V extends _0x40606b{['afterInit'](){const _0x184422=this['editor'],_0x253035=_0x184422['plugins']['get']('TrackChangesEditing');_0x184422['commands']['get']('toggleAi')&&_0x253035['enableCommand']('toggleAi');}}class F extends _0x40606b{['afterInit'](){const _0x3c5d57=this['editor'],_0x2e239d=_0x3c5d57['plugins']['get']('TrackChangesEditing');_0x3c5d57['commands']['get']('aiQuickAction')&&_0x2e239d['enableCommand']('aiQuickAction');}}class G extends _0x40606b{['afterInit'](){const _0x1b27c0=this['editor'],_0x41fbbc=_0x1b27c0['locale'];if(!_0x1b27c0['plugins']['has']('AlignmentEditing'))return;const _0x481b21=_0x1b27c0['plugins']['get']('TrackChangesEditing');_0x481b21['enableDefaultAttributesIntegration']('alignment'),_0x481b21['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x41fbbc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cdeb2=this['editor'],_0x51c6aa=_0x1cdeb2['locale'];_0x1cdeb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28eb4c=>{if('formatBlock'!=_0x28eb4c['type'])return;const {data:_0x18858c}=_0x28eb4c;if(_0x18858c&&'alignment'==_0x18858c['commandName']){const _0x216101=_0x18858c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x51c6aa,'*Format:*\x20%0',function(_0x2f18a2){switch(_0x2f18a2){case'left':return o(_0x51c6aa,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x51c6aa,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x51c6aa,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x51c6aa,'FORMAT_JUSTIFY_TEXT');}}(_0x216101))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x40606b{['afterInit'](){const _0x438a29=this['editor'],_0x7c6a36=_0x438a29['plugins']['get']('TrackChangesEditing'),_0x2f5fbe=_0x438a29['locale'];for(const _0x1598e0 of ti){if(!_0x438a29['plugins']['has'](_0x1598e0))continue;const _0x2fad8a=_0x1598e0['slice'](0x0,-0x7)['toLowerCase'](),_0x5bb103='FORMAT_'+_0x2fad8a['toUpperCase']();_0x7c6a36['enableDefaultAttributesIntegration'](_0x2fad8a),_0x7c6a36['descriptionFactory']['registerAttributeLabel'](_0x2fad8a,o(_0x2f5fbe,_0x5bb103));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dbab3=this['editor'],_0x1e5aa5=_0x2dbab3['locale'],_0x40ef58=_0x2dbab3['plugins']['get']('TrackChangesEditing');function _0x54faa3(_0x4d231d,_0x1ad24f){_0x40ef58['descriptionFactory']['registerDescriptionCallback'](_0x1b52f5=>{if('formatInline'!=_0x1b52f5['type'])return;const {data:_0x18ac29}=_0x1b52f5;return _0x18ac29&&_0x18ac29['commandName']===_0x4d231d?_0x18ac29['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e5aa5,'*Format:*\x20%0',_0x1ad24f)}:{'type':'format','content':o(_0x1e5aa5,'*Remove\x20format:*\x20%0',_0x1ad24f)}:void 0x0;});}_0x54faa3('bold',o(_0x1e5aa5,'FORMAT_BOLD')),_0x54faa3('italic',o(_0x1e5aa5,'FORMAT_ITALIC')),_0x54faa3('underline',o(_0x1e5aa5,'FORMAT_UNDERLINE')),_0x54faa3('code',o(_0x1e5aa5,'FORMAT_CODE')),_0x54faa3('strikethrough',o(_0x1e5aa5,'FORMAT_STRIKETHROUGH')),_0x54faa3('subscript',o(_0x1e5aa5,'FORMAT_SUBSCRIPT')),_0x54faa3('superscript',o(_0x1e5aa5,'FORMAT_SUPERSCRIPT'));}}class J extends _0x40606b{['afterInit'](){const _0x4bef32=this['editor'],_0x399221=_0x4bef32['locale'];if(!_0x4bef32['plugins']['has']('BlockQuoteEditing'))return;const _0x1bacf9=_0x4bef32['plugins']['get']('TrackChangesEditing'),_0x2aa313=this['editor']['commands']['get']('blockQuote');_0x1bacf9['enableCommand']('blockQuote',(_0x57ca9f,_0x394fb4={})=>{const _0x35b64a=this['editor']['model']['document']['selection'],_0x2230b3=_0x394fb4&&void 0x0!==_0x394fb4['forceValue']?_0x394fb4['forceValue']:!_0x2aa313['value'];let _0x2ff17d=[];if(_0x2230b3){const _0x24fbba=Array['from'](_0x35b64a['getSelectedBlocks']())['filter'](_0x454436=>oo(_0x454436)||function(_0x5b0f2d,_0x515850){const _0x3255ce=_0x515850['checkChild'](_0x5b0f2d['parent'],'blockQuote'),_0x522b92=_0x515850['checkChild'](['$root','blockQuote'],_0x5b0f2d);return _0x3255ce&&_0x522b92;}(_0x454436,this['editor']['model']['schema']));_0x2ff17d=to(_0x24fbba,_0x4bef32['model']);}else{const _0x3bf58d=Array['from'](_0x35b64a['getSelectedBlocks']())['filter'](_0x3558a5=>oo(_0x3558a5));_0x2ff17d=to(_0x3bf58d,_0x4bef32['model']);}_0x4bef32['model']['change'](()=>{for(const _0x4363af of _0x2ff17d)_0x1bacf9['markBlockFormat'](_0x4363af,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2230b3}]});});}),_0x1bacf9['descriptionFactory']['registerDescriptionCallback'](_0x3732ec=>{const {data:_0x404fab}=_0x3732ec;if(_0x404fab&&'blockQuote'==_0x404fab['commandName']){const _0x885940=o(_0x399221,'ELEMENT_BLOCK_QUOTE');return _0x404fab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x399221,'*Set\x20format:*\x20%0',_0x885940)}:{'type':'format','content':o(_0x399221,'*Remove\x20format:*\x20%0',_0x885940)};}});}}function oo(_0xb3a999){return'blockQuote'==_0xb3a999['parent']['name'];}class q extends _0x40606b{['afterInit'](){const _0x37c855=this['editor'],_0xd730aa=_0x37c855['locale'],_0x1bd8bd=_0x37c855['plugins']['get']('TrackChangesEditing');_0x37c855['plugins']['has']('BookmarkEditing')&&(_0x1bd8bd['enableCommand']('insertBookmark'),_0x1bd8bd['enableDefaultAttributesIntegration']('updateBookmark'),_0x1bd8bd['descriptionFactory']['registerDescriptionCallback'](_0x1860a1=>{if('insertion'!=_0x1860a1['type']&&'deletion'!=_0x1860a1['type']&&'attribute'!=_0x1860a1['type'])return;const _0x3f76c2=_0x1860a1['getContainedElement']();if(null==_0x3f76c2)return;if(!_0x3f76c2['is']('element','bookmark'))return;const _0x4d9ac1=_0x3f76c2['getAttribute']('bookmarkId');if('insertion'==_0x1860a1['type'])return{'type':'insertion','content':o(_0xd730aa,'*Insert:*\x20%0','\x22'+_0x4d9ac1+'\x22\x20'+o(_0xd730aa,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1860a1['type'])return{'type':'deletion','content':o(_0xd730aa,'*Remove:*\x20%0','\x22'+_0x4d9ac1+'\x22\x20'+o(_0xd730aa,'ELEMENT_BOOKMARK'))};const {data:_0x4b1858}=_0x1860a1;if(!_0x4b1858||'bookmarkId'!=_0x4b1858['key'])return;return{'type':'format','content':o(_0xd730aa,'*Set\x20bookmark:*\x20%0','\x22'+_0x4b1858['newValue']+'\x22')};}));}}class z extends _0x40606b{['afterInit'](){const _0x26a2cb=this['editor'];_0x26a2cb['plugins']['has']('CaseChange')&&(_0x26a2cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x26a2cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x26a2cb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x40606b{['afterInit'](){const _0x5cc6b2=this['editor'];_0x5cc6b2['commands']['get']('ckbox')&&_0x5cc6b2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x40606b{['afterInit'](){const _0x5cbf40=this['editor'];if(!_0x5cbf40['plugins']['has']('CodeBlock'))return;const _0x55aafb=_0x5cbf40['plugins']['get']('TrackChangesEditing'),_0x38f827=_0x5cbf40['locale'],_0x3ae1c3=_0x5cbf40['config']['get']('codeBlock')['languages'],_0x38da40=_0x5cbf40['commands']['get']('codeBlock');_0x55aafb['enableCommand']('indentCodeBlock'),_0x55aafb['enableCommand']('outdentCodeBlock'),_0x55aafb['enableCommand']('codeBlock',(_0x26e785,_0x53a958={})=>{const _0x5a4327=_0x5cbf40['model'],_0x440cd6=_0x5cbf40['model']['document']['selection'],_0x49e68b=_0x53a958&&void 0x0!==_0x53a958['forceValue']?_0x53a958['forceValue']:!_0x38da40['value'];let _0x85d772;_0x53a958['language']||(_0x53a958['language']=_0x3ae1c3[0x0]['language']),_0x85d772=_0x49e68b?Array['from'](_0x440cd6['getSelectedBlocks']())['filter'](_0x515c30=>co(_0x515c30)||function(_0x4e7c42,_0x12916e){if(_0x4e7c42['is']('rootElement')||_0x12916e['isLimit'](_0x4e7c42))return!0x1;return _0x12916e['checkChild'](_0x4e7c42['parent'],'codeBlock');}(_0x515c30,_0x5a4327['schema'])):Array['from'](_0x440cd6['getSelectedBlocks']())['filter'](_0x4700d6=>co(_0x4700d6));const _0x3e3776=to(_0x85d772,_0x5a4327);_0x5a4327['change'](()=>{for(const _0xb866d0 of _0x3e3776)_0x55aafb['markBlockFormat'](_0xb866d0,{'commandName':'codeBlock','commandParams':[{..._0x53a958,'forceValue':_0x49e68b}],'formatGroupId':'blockName'});});}),(_0x55aafb['descriptionFactory']['registerElementLabel']('codeBlock',_0x45d2fd=>o(_0x38f827,'ELEMENT_CODE_BLOCK',_0x45d2fd)),_0x55aafb['descriptionFactory']['registerDescriptionCallback'](_0x4db552=>{if('formatBlock'!=_0x4db552['type'])return;const _0x5e1c0e=_0x38f827['t'],{data:_0x441b13}=_0x4db552;if(!_0x441b13||'codeBlock'!=_0x441b13['commandName'])return;const _0x7824b2=_0x441b13['commandParams'][0x0]['language'],_0x3b73eb=_0x5e1c0e(_0x3ae1c3['find'](_0x566ce7=>_0x566ce7['language']===_0x7824b2)['label'])['toLowerCase']();return _0x441b13['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38f827,'*Set\x20format:*\x20%0',o(_0x38f827,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b73eb+')')}:{'type':'format','content':o(_0x38f827,'*Remove\x20format:*\x20%0',o(_0x38f827,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x35eeee){return'codeBlock'==_0x35eeee['name'];}class H extends _0x40606b{['afterInit'](){const _0x2b81ad=this['editor'];if(!_0x2b81ad['plugins']['has']('CommentsEditing'))return;_0x2b81ad['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x40606b{static get['requires'](){return[_0x2195e5];}['init'](){const _0x1ecc18=this['editor'],_0x2ce403=_0x1ecc18['plugins']['get']('TrackChangesEditing');_0x2ce403['enableCommand']('delete');const _0x4a0c54=_0x1ecc18['commands']['get']('deleteForward');_0x2ce403['enableCommand']('deleteForward',(_0x48da27,_0x444698={})=>{const _0xa1374=_0x1ecc18['model']['createSelection'](_0x1ecc18['model']['document']['selection']);_0xa1374['isCollapsed']&&_0x1ecc18['model']['modifySelection'](_0xa1374,{'direction':'forward','unit':_0x444698['unit']});const _0x162ffd=_0xa1374['getFirstRange'](),_0x1fb476=_0x2d0a07['fromRange'](_0x162ffd);let _0x46f3cc;_0x48da27(_0x444698),_0x46f3cc='$graveyard'==_0x1fb476['root']['rootName']?_0x1ecc18['model']['createRange'](_0x162ffd['start']):_0x1ecc18['model']['createRange'](_0x1fb476['start'],_0x1fb476['end']),_0x1fb476['detach'](),_0x1ecc18['model']['enqueueChange'](_0x4a0c54['buffer']['batch'],_0x395878=>{_0x4a0c54['buffer']['lock'](),_0x395878['setSelection'](_0x395878['createRange'](_0x46f3cc['end'])),_0x4a0c54['buffer']['unlock']();});});}}class X extends _0x40606b{['afterInit'](){const _0x504a00=this['editor'];if(!_0x504a00['plugins']['has']('ListEditing'))return;const _0x80c70c=_0x504a00['locale'],_0x2216ef=_0x504a00['plugins']['get']('TrackChangesEditing'),_0x19c312=_0x504a00['plugins']['has']('TodoListEditing'),_0x395190=!!_0x504a00['config']['get']('list.multiBlock');function _0x4505c2(_0x5b45f1){return{'type':'format','content':''+o(_0x80c70c,'*Set\x20format:*\x20%0',_0x5b45f1)};}function _0x1bdbdd(_0x3e325e){return{'type':'format','content':''+o(_0x80c70c,'*Remove\x20format:*\x20%0',_0x3e325e)};}_0x2216ef['enableDefaultAttributesIntegration']('numberedList'),_0x2216ef['enableDefaultAttributesIntegration']('bulletedList'),_0x2216ef['enableDefaultAttributesIntegration']('customNumberedList'),_0x2216ef['enableDefaultAttributesIntegration']('customBulletedList'),_0x2216ef['enableDefaultAttributesIntegration']('indentList'),_0x2216ef['enableDefaultAttributesIntegration']('outdentList'),_0x2216ef['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2216ef['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x395190&&(_0x2216ef['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2216ef['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x19c312&&(_0x2216ef['enableDefaultAttributesIntegration']('todoList'),_0x2216ef['enableDefaultAttributesIntegration']('checkTodoList'),_0x2216ef['descriptionFactory']['registerDescriptionCallback'](_0x57ee76=>{const {data:_0x2bcf57}=_0x57ee76;if(_0x2bcf57&&'todoListChecked'==_0x2bcf57['key'])return{'type':'format','content':_0x2bcf57['newValue']?o(_0x80c70c,'*Check\x20item*'):o(_0x80c70c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3eac9e=>{if(_0x3eac9e['batch']['isUndo'])return!0x1;let _0x566fd8=!0x1;const _0x4c99e7=_0x2216ef['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x312498=>'todoListChecked'===_0x2216ef['_getAttributeKey'](_0x312498));for(const _0x195159 of _0x4c99e7){'todo'!=_0x195159['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2216ef['_findSuggestions'](_0x195159['getFirstRange'](),'attribute')['find'](_0x520af9=>'listType'===_0x2216ef['_getAttributeKey'](_0x520af9['suggestion']))||(_0x3eac9e['removeMarker'](_0x195159['getFirstMarker']()),_0x566fd8=!0x0));}return _0x566fd8;})),_0x2216ef['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x80c70c,'FORMAT_INDENT'));const _0x14999a={'type':'format','content':''};_0x2216ef['descriptionFactory']['registerDescriptionCallback'](_0x221c36=>{const {data:_0x426da0}=_0x221c36;if(!_0x426da0||'listType'!=_0x426da0['key'])return;let _0x20d86b=_0x221c36['head'];for(;_0x20d86b;){if(_0x20d86b['data']&&(('listStyle'==_0x20d86b['data']['key']||'listMarkerStyle'==_0x20d86b['data']['key'])&&(_0x20d86b['data']['newValue']&&'default'!=_0x20d86b['data']['newValue']||'default'!=_0x20d86b['data']['oldValue']&&!_0x426da0['newValue'])||!_0x395190&&_0x20d86b['data']['key']==m))return _0x14999a;_0x20d86b=_0x20d86b['next'];}if(null==_0x426da0['newValue'])switch(_0x426da0['oldValue']){case'bulleted':return _0x1bdbdd(o(_0x80c70c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1bdbdd(o(_0x80c70c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1bdbdd(o(_0x80c70c,'ELEMENT_TODO_LIST'));}switch(_0x426da0['newValue']){case'bulleted':return _0x4505c2(o(_0x80c70c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4505c2(o(_0x80c70c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4505c2(o(_0x80c70c,'ELEMENT_TODO_LIST'));}}),_0x2216ef['descriptionFactory']['registerDescriptionCallback'](_0x4189a5=>{const {data:_0x4356f3}=_0x4189a5;if(_0x4356f3&&'listIndent'==_0x4356f3['key'])return null==_0x4356f3['newValue']||null==_0x4356f3['oldValue']&&0x0==_0x4356f3['newValue']?_0x14999a:void 0x0;}),_0x2216ef['descriptionFactory']['registerDescriptionCallback'](_0x364237=>{if('attribute'!=_0x364237['type'])return;const {data:_0x52abcb}=_0x364237;if(!_0x52abcb||'listItemId'!=_0x52abcb['key'])return;const _0x2666b4=Te(_0x364237);return'newValue'==_0x2666b4?{'type':'format','content':o(_0x80c70c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2666b4?{'type':'format','content':o(_0x80c70c,'*Split:*\x20list\x20item')}:_0x14999a;}),_0x504a00['model']['document']['registerPostFixer'](_0x3799bc=>this['listItemIdFixer'](_0x3799bc)),_0x504a00['model']['document']['registerPostFixer'](_0x427553=>this['noTrackChangesFixer'](_0x427553)),_0x504a00['model']['document']['on']('change:data',(_0xdc9085,_0x591dbc)=>{if(_0x591dbc['isUndo']||!_0x591dbc['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5eaf99){if(_0x5eaf99['batch']['isUndo']||!_0x5eaf99['batch']['isLocal'])return!0x1;let _0x1e7010=!0x1;const _0x49567f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e93e0=>_0x1e93e0['data']&&'listItemId'==_0x1e93e0['data']['key'])['filter'](_0x109f90=>_0x109f90['data']['newValue']&&_0x109f90['data']['oldValue']);for(const _0x5757db of _0x49567f)Te(_0x5757db)||(_0x5eaf99['removeMarker'](_0x5757db['getFirstMarker']()),_0x1e7010=!0x0);return _0x1e7010;}['noTrackChangesFixer'](_0x1cf614){if(_0x1cf614['batch']['isUndo']||!_0x1cf614['batch']['isLocal'])return!0x1;const _0x36aabf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x36aabf['trackChangesCommand']['value'])return!0x1;let _0x3326a5=!0x1;const _0x3a44ac=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3a08e6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x37cdfc=>'attribute'==_0x37cdfc['type'])['filter'](_0x327379=>_0x3a44ac['includes'](_0x327379['attributeKey']));if(0x0==_0x3a08e6['length'])return _0x3326a5;for(const _0x3fb31b of _0x3a08e6){const _0x14ab8=_0x36aabf['_findSuggestions'](_0x3fb31b['range'],'attribute')['filter'](_0x29de64=>!_0x29de64['meta']['isNextTo'])['map'](_0x3ef66e=>_0x3ef66e['suggestion'])['filter'](_0x39cc96=>{const _0x40784b=_0x36aabf['_getAttributeKey'](_0x39cc96);return _0x3a44ac['includes'](_0x40784b);});if(_0x14ab8['length']){for(const _0x3aa968 of _0x14ab8)_0x1cf614['removeMarker'](_0x3aa968['getFirstMarker']());_0x3326a5=!0x0;}}return _0x3326a5;}['assureChains'](){const _0xe40ab5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d4dc6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3460b2;const _0x4d6036=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x428b86=>{if(_0x428b86['data']['oldRange']||!_0x428b86['data']['newRange'])return null;if(!_0x428b86['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xf55ed6}=_0xe40ab5['_splitMarkerName'](_0x428b86['name']);if(!_0xe40ab5['hasSuggestion'](_0xf55ed6))return null;const _0x194bfa=_0xe40ab5['getSuggestion'](_0xf55ed6);return _0x3d4dc6['includes'](_0x194bfa['data']['key']);})['map'](_0x46a22e=>{const {id:_0x4f7c5f}=_0xe40ab5['_splitMarkerName'](_0x46a22e['name']),_0xf3dd28=_0xe40ab5['getSuggestion'](_0x4f7c5f);return _0x3460b2=_0xf3dd28['attributes']['groupId'],_0xf3dd28['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4d6036['size'])return;const _0x428717=_0xe40ab5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2218e3=>'attribute'==_0x2218e3['type']&&_0x2218e3['data']&&_0x3d4dc6['includes'](_0x2218e3['data']['key'])&&_0x2218e3['attributes']['groupId']!=_0x3460b2)['map'](_0x3c7c5b=>({'listItem':_0x3c7c5b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3c7c5b['attributes']['groupId']})),_0x4eae2a=new Set();for(const {groupId:_0x2f54c5,listItem:_0x31a494}of _0x428717)_0x4d6036['has'](_0x31a494)&&_0x4eae2a['add'](_0x2f54c5);for(const _0x2611ab of _0xe40ab5['getSuggestions']())_0x4eae2a['has'](_0x2611ab['attributes']['groupId'])&&_0x2611ab['setAttribute']('groupId',_0x3460b2);}['_supportLegacySuggestions'](){const _0x41f034=this['editor'],_0x588a55=_0x41f034['locale'],_0x38ff97=_0x41f034['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x38ff97['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x81b0c8,_0x59bd27){const _0x2ecba2=[];for(let _0xa1e59f of _0x81b0c8)_0xa1e59f['start']['nodeAfter']===_0xa1e59f['end']['parent']&&(_0xa1e59f=_0x41f034['model']['createRange'](_0x41f034['model']['createPositionAt'](_0xa1e59f['start']['nodeAfter'],0x0))),_0x2ecba2['push'](_0xa1e59f);_0x41f034['model']['change'](_0x5cbd10=>{const _0x34d219=_0x41f034['model']['document']['selection'],_0x508625=Array['from'](_0x34d219['getRanges']())['map'](_0x348ec3=>_0x2d0a07['fromRange'](_0x348ec3));_0x5cbd10['setSelection'](_0x2ecba2),_0x41f034['commands']['get'](_0x59bd27['commandName'])['refresh'](),_0x59bd27['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x41f034['execute'](_0x59bd27['commandName'],..._0x59bd27['commandParams']),_0x5cbd10['setSelection'](_0x508625);for(const _0x205660 of _0x508625)_0x205660['detach']();});}),_0x38ff97['descriptionFactory']['registerElementLabel'](function(_0x290f9c){const _0x3a15e7=!_0x41f034['model']['schema']['isObject'](_0x290f9c),_0xeec48b=_0x290f9c['previousSibling'],_0x8d76b2=_0x290f9c['nextSibling'],_0x1c9844=_0x290f9c['getAttribute']('listItemId'),_0x1cbf45=!_0xeec48b||_0xeec48b['getAttribute']('listItemId')!==_0x1c9844,_0x4b7a82=!_0x8d76b2||_0x8d76b2['getAttribute']('listItemId')!==_0x1c9844;return _0x3a15e7&&Boolean(_0x1c9844)&&_0x1cbf45&&_0x4b7a82;},_0x34aa66=>o(_0x588a55,'ELEMENT_LIST_ITEM',_0x34aa66));}['_registerLegacyDescription'](){const _0x5e2644=this['editor'],_0x29eff0=_0x5e2644['locale'];function _0x35346b(_0x337964){const _0x16424f=_0x5e2644['commands']['get']('bulletedList')['value'],_0x5e852e=_0x5e2644['commands']['get']('numberedList')['value'];return'numberedList'===_0x337964?_0x16424f:_0x5e852e;}_0x5e2644['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x308f31){if('formatBlock'!=_0x308f31['type'])return;const {data:_0x1fe63e}=_0x308f31;if(!_0x1fe63e)return;let _0x27d863,_0x8d67df,_0x560fc1,_0x351779;switch(_0x1fe63e['commandName']){case'bulletedList':_0x560fc1=_0x1fe63e['commandParams'][0x0]['forceValue'],_0x351779=_0x35346b(_0x1fe63e['commandName']),_0x27d863=_0x560fc1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x351779&&_0x5e2644['config']['get']('list.multiBlock')||(_0x27d863='*Change\x20to:*\x20%0'),_0x8d67df={'type':'format','content':o(_0x29eff0,_0x27d863,o(_0x29eff0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x560fc1=_0x1fe63e['commandParams'][0x0]['forceValue'],_0x351779=_0x35346b(_0x1fe63e['commandName']),_0x27d863=_0x560fc1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x351779&&_0x5e2644['config']['get']('list.multiBlock')||(_0x27d863='*Change\x20to:*\x20%0'),_0x8d67df={'type':'format','content':o(_0x29eff0,_0x27d863,o(_0x29eff0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x27d863='*Indent:*\x20%0',_0x8d67df={'type':'format','content':o(_0x29eff0,_0x27d863,o(_0x29eff0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x27d863=function(_0x19b1c9){const _0x5e7411=_0x19b1c9['getFirstRange']();let _0x3472ab=_0x5e7411['start']['nodeAfter'];for(;_0x3472ab&&_0x5e7411['containsItem'](_0x3472ab);){if(_0x3472ab['getAttribute']('listIndent')>0x0)return!0x1;_0x3472ab=_0x3472ab['nextSibling'];}return!0x0;}(_0x308f31)?o(_0x29eff0,'*Format:*\x20remove\x20from\x20%0',o(_0x29eff0,function(_0x2d4704){return'ELEMENT_'+_0x2d4704['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x308f31))):o(_0x29eff0,'*Outdent:*\x20%0',o(_0x29eff0,'ELEMENT_LIST_ITEM')),_0x8d67df={'type':'format','content':_0x27d863};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1fe63e['multipleBlocks']&&(_0x27d863='*Merge:*\x20%0',_0x8d67df={'type':'deletion','content':o(_0x29eff0,_0x27d863,o(_0x29eff0,'ELEMENT_LIST_ITEM'))});}return _0x8d67df;});}}function Te(_0x268f15){let _0x59b1bd=_0x268f15['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x59b1bd;){const _0x23a4a2=_0x59b1bd['getAttribute']('listItemId');if(!_0x23a4a2)return!0x1;if(_0x23a4a2==_0x268f15['data']['newValue'])return'newValue';if(_0x23a4a2==_0x268f15['data']['oldValue'])return'oldValue';_0x59b1bd=_0x59b1bd['previousSibling'];}return!0x1;}class Y extends _0x40606b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x266f5f=this['editor']['config']['get']('list.properties'),_0x1ea81e=this['editor']['plugins']['get']('TrackChangesEditing');_0x266f5f['styles']&&_0x1ea81e['enableDefaultAttributesIntegration']('listStyle'),_0x266f5f['reversed']&&_0x1ea81e['enableDefaultAttributesIntegration']('listReversed'),_0x266f5f['startIndex']&&_0x1ea81e['enableDefaultAttributesIntegration']('listStart');const _0x526832={'type':'format','content':''};_0x1ea81e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3e8bed=this['editor']['locale'];_0x1ea81e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3e8bed,'FORMAT_LIST_REVERSED')),_0x1ea81e['descriptionFactory']['registerDescriptionCallback'](_0x4a2f58=>{const {data:_0x498792}=_0x4a2f58;if(_0x498792&&'listReversed'==_0x498792['key'])return null==_0x498792['newValue']||0x0==_0x498792['newValue']&&null==_0x498792['oldValue']?_0x526832:void 0x0;}),_0x1ea81e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3e8bed,'FORMAT_LIST_START')),_0x1ea81e['descriptionFactory']['registerDescriptionCallback'](_0x3d6f60=>{const {data:_0x4efdd1}=_0x3d6f60;if(_0x4efdd1&&'listStart'==_0x4efdd1['key'])return null==_0x4efdd1['newValue']||0x1==_0x4efdd1['newValue']&&null==_0x4efdd1['oldValue']?_0x526832:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x443894=>{if(_0x443894['batch']['isUndo'])return!0x1;let _0x456bc4=!0x1;const _0x125cec=_0x1ea81e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d341b=>{const _0x37b481=_0x1ea81e['_getAttributeKey'](_0x5d341b);return'listStart'==_0x37b481||'listReversed'==_0x37b481;});for(const _0x1445a8 of _0x125cec){const _0x11179b=_0x1445a8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x11179b||'customNumbered'==_0x11179b)continue;_0x1ea81e['_findSuggestions'](_0x1445a8['getFirstRange'](),'attribute')['find'](_0x3b763b=>'listType'==_0x1ea81e['_getAttributeKey'](_0x3b763b['suggestion']))||(_0x443894['removeMarker'](_0x1445a8['getFirstMarker']()),_0x456bc4=!0x0);}return _0x456bc4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x560625){const _0x3d1f13=this['editor']['locale'],{data:_0x18e406}=_0x560625,_0x122019={'type':'format','content':''};if(!_0x18e406||'listStyle'!=_0x18e406['key'])return;if(!_0x18e406['oldValue'])return'default'==_0x18e406['newValue']?_0x122019:{'type':'format','content':''+o(_0x3d1f13,'*Set\x20format:*\x20%0',o(_0x3d1f13,this['_getTranslationKeyForListStyle'](_0x18e406['newValue'])))};if(!_0x18e406['newValue']){if('default'==_0x18e406['oldValue'])return _0x122019;let _0xdbe9cd=_0x560625['head'];for(;_0xdbe9cd;){if(_0xdbe9cd['data']&&'listType'==_0xdbe9cd['data']['key']&&_0xdbe9cd['data']['newValue'])return _0x122019;_0xdbe9cd=_0xdbe9cd['next'];}return{'type':'format','content':''+o(_0x3d1f13,'*Remove\x20format:*\x20%0',o(_0x3d1f13,this['_getTranslationKeyForListStyle'](_0x18e406['oldValue'])))};}if('default'!=_0x18e406['newValue'])return{'type':'format','content':''+o(_0x3d1f13,'*Set\x20format:*\x20%0',o(_0x3d1f13,this['_getTranslationKeyForListStyle'](_0x18e406['newValue'])))};let _0x28e5ff=_0x560625['head'];for(;_0x28e5ff;){if(_0x28e5ff['data']&&'listType'==_0x28e5ff['data']['key']&&_0x28e5ff['data']['newValue']&&_0x28e5ff['data']['oldValue'])return _0x122019;_0x28e5ff=_0x28e5ff['next'];}return{'type':'format','content':o(_0x3d1f13,'*Set\x20format:*\x20%0',o(_0x3d1f13,'ELEMENT_'+_0x560625['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x59756f=this['editor'],_0x32a085=_0x59756f['locale'];_0x59756f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc98ba=>{if('formatBlock'!=_0xc98ba['type'])return;const {data:_0x4c9569}=_0xc98ba;if(!_0x4c9569)return;let _0x13e23c,_0x145ded;switch(_0x4c9569['commandName']){case'listStyle':_0x13e23c='*Change\x20to:*\x20%0',_0x145ded={'type':'format','content':o(_0x32a085,_0x13e23c,o(_0x32a085,this['_getTranslationKeyForListStyle'](_0x4c9569['commandParams'][0x0]['type'])))};break;case'listReversed':_0x13e23c=_0x4c9569['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x145ded={'type':'format','content':o(_0x32a085,_0x13e23c)};break;case'listStart':_0x13e23c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x145ded={'type':'format','content':o(_0x32a085,_0x13e23c,_0x4c9569['commandParams'][0x0]['startIndex'])};}return _0x145ded;});}['_getTranslationKeyForListStyle'](_0x481a69){return'ELEMENT_'+function(_0x51439c){if(ye['includes'](_0x51439c))return'bulleted';if(Se['includes'](_0x51439c))return'numbered';return null;}(_0x481a69)['toUpperCase']()+'_LIST_'+_0x481a69['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x40606b{['afterInit'](){const _0x143546=this['editor'];_0x143546['commands']['get']('emoji')&&_0x143546['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x40606b{static get['requires'](){return[_0x6ab921];}['init'](){const _0x2333fb=this['editor'],_0x27c795=_0x2333fb['plugins']['get']('TrackChangesEditing'),_0x4b17b7=_0x2333fb['commands']['get']('enter');_0x27c795['enableCommand']('enter',()=>{_0x2333fb['model']['change'](_0x523249=>{const _0x30411f=_0x2333fb['model']['document']['selection'],_0x35d234=_0x30411f['getFirstPosition'](),_0x3b9ba0=_0x2d0a07['fromRange'](_0x30411f['getFirstRange']());if(_0x4b17b7['enterBlock'](_0x523249)){const _0x4b1bc8=_0x2333fb['model']['createPositionAt'](_0x35d234['parent']['nextSibling'],0x0),_0xcd6ca5=_0x523249['createRange'](_0x35d234,_0x4b1bc8);_0x27c795['markInsertion'](_0xcd6ca5);}else _0x523249['setSelection'](_0x523249['createRange'](_0x3b9ba0['end']));_0x3b9ba0['detach'](),_0x4b17b7['fire']('afterExecute',{'writer':_0x523249});});});}}class nt extends _0x40606b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x48212b=this['editor']['plugins']['get']('TrackChangesEditing');_0x48212b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x48212b['enableCommand']('findNext'),_0x48212b['enableCommand']('findPrevious'),_0x48212b['enableCommand']('replace'),_0x48212b['enableCommand']('replaceAll');}['handleFindCommand'](_0x5522a4,_0x15ca5a,_0x5f319f={}){const _0xab22c7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5522a4(_0x5d790e=>{let _0x4c89e8=('string'==typeof _0x15ca5a?_0xab22c7['findByTextCallback'](_0x15ca5a,_0x5f319f):_0x15ca5a)(_0x5d790e);Array['isArray'](_0x4c89e8)&&(_0x4c89e8={'results':_0x4c89e8,'searchText':'string'==typeof _0x15ca5a?_0x15ca5a:''});const _0x15b5be=_0x4c89e8['results']['filter'](_0x23460f=>!0x1===this['_isInDeletionRange'](_0x23460f,_0x5d790e['item']));return{..._0x4c89e8,'results':_0x15b5be};},_0x5f319f);}['_isInDeletionRange'](_0xb0003a,_0x427bd9){const _0xc7c44c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x427bd9,_0xb0003a['start']),this['editor']['model']['createPositionAt'](_0x427bd9,_0xb0003a['end']));for(const _0x32a06b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xc7c44c['getIntersection'](_0x32a06b['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x40606b{['afterInit'](){const _0x264ed1=this['editor']['locale'],_0x58299d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4fbebf,commandName:_0x4b9690}of eo)this['editor']['plugins']['has'](_0x4fbebf)&&_0x58299d['enableDefaultAttributesIntegration'](_0x4b9690);_0x58299d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x264ed1,'FORMAT_FONT_SIZE')),_0x58299d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x264ed1,'FORMAT_FONT_FAMILY')),_0x58299d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x264ed1,'FORMAT_FONT_COLOR')),_0x58299d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x264ed1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bab0f=this['editor'],_0x56f77b=_0x4bab0f['locale'];_0x4bab0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42f132=>{const _0x83a4cc=_0x56f77b['t'];if('formatInline'!=_0x42f132['type'])return;const {data:_0x35b94d}=_0x42f132;if(null!=_0x35b94d){if('fontSize'==_0x35b94d['commandName']){const _0x6097a0=_0x35b94d['commandParams'][0x0]['value'];if(_0x6097a0){const _0x150976=_0x83a4cc(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x51c558=>_0x51c558['model']==_0x6097a0)['title'])['toLowerCase']();return{'type':'format','content':o(_0x56f77b,'*Set\x20font\x20size:*\x20%0',_0x150976)};}return{'type':'format','content':o(_0x56f77b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x35b94d['commandName']){const _0x1b294a=_0x35b94d['commandParams'][0x0]['value'];return _0x1b294a?{'type':'format','content':o(_0x56f77b,'*Set\x20font\x20family:*\x20%0',_0x1b294a)}:{'type':'format','content':o(_0x56f77b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x35b94d['commandName']){const _0x4af8a3=_0x35b94d['commandParams'][0x0]['value'];if(_0x4af8a3){const _0x9fc939=_0x476b03(this['editor']['config']['get']('fontColor.colors'))['find'](_0x533cbb=>_0x533cbb['model']==_0x4af8a3);let _0x5092f5=_0x4af8a3,_0x330f0b='';return _0x9fc939&&(_0x5092f5=_0x9fc939['label'],_0x330f0b=_0x83a4cc(_0x5092f5)['toLowerCase']()),{'type':'format','content':o(_0x56f77b,'*Set\x20font\x20color:*\x20%0',_0x330f0b)['trim'](),'color':{'value':_0x4af8a3,'title':_0x330f0b||_0x5092f5}};}return{'type':'format','content':o(_0x56f77b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x35b94d['commandName']){const _0x2d8a88=_0x35b94d['commandParams'][0x0]['value'];if(_0x2d8a88){const _0x1fbe74=_0x476b03(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x16d5c6=>_0x16d5c6['model']==_0x2d8a88);let _0x2e1cc1=_0x2d8a88,_0x502f88='';return _0x1fbe74&&(_0x2e1cc1=_0x1fbe74['label'],_0x502f88=_0x83a4cc(_0x2e1cc1)['toLowerCase']()),{'type':'format','content':o(_0x56f77b,'*Set\x20font\x20background\x20color:*\x20%0',_0x502f88)['trim'](),'color':{'value':_0x2d8a88,'title':_0x502f88||_0x2e1cc1}};}return{'type':'format','content':o(_0x56f77b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x40606b{['afterInit'](){const {plugins:_0x2ea9d}=this['editor'];_0x2ea9d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2ea9d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x32877e,plugins:_0xf5c010,commands:_0x35366e}=this['editor'],_0x2df0d8=_0xf5c010['get']('TrackChangesEditing');_0x35366e['get']('footnotesStyle')&&_0x2df0d8['enableDefaultAttributesIntegration']('footnotesStyle'),_0x35366e['get']('footnotesStart')&&_0x2df0d8['enableDefaultAttributesIntegration']('footnotesStart'),_0x2df0d8['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x32877e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2df0d8['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x32877e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x1e19ed=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xe5678d,commands:_0x27fedb}=this['editor'];_0x27fedb['get']('insertFootnote')&&_0x1e19ed['enableCommand']('insertFootnote'),_0x1e19ed['descriptionFactory']['registerElementLabel']('footnoteRef',_0x10f92e=>o(_0xe5678d,'ELEMENT_FOOTNOTE_REF',_0x10f92e)),_0x1e19ed['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x438472=>o(_0xe5678d,'ELEMENT_FOOTNOTE_DEFINITION',_0x438472)),_0x1e19ed['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x43b2f1=>o(_0xe5678d,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x43b2f1));}}class st extends _0x40606b{['afterInit'](){const _0x2b7ef1=this['editor'],_0x31a462=_0x2b7ef1['plugins']['get']('TrackChangesEditing'),_0x2e2266=_0x2b7ef1['commands']['get']('copyFormat'),_0x5bbea9=_0x2b7ef1['commands']['get']('pasteFormat');_0x2e2266&&_0x5bbea9&&(_0x31a462['enableDefaultAttributesIntegration']('pasteFormat'),_0x31a462['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2e5e98=this['editor'],_0x4d17e4=_0x2e5e98['locale'];_0x2e5e98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x66acf=>{if('formatBlock'!=_0x66acf['type']&&'formatInline'!=_0x66acf['type'])return;const {data:_0x2031bb}=_0x66acf;if(_0x2031bb&&'pasteFormat'===_0x2031bb['commandName']){const _0xc70e2e=[],_0x23420d=_0x2031bb['commandParams'][0x0];for(const [_0x1e6415,_0x252704]of Object['entries'](_0x23420d))_0xc70e2e['push'](ro(_0x2e5e98,_0x1e6415,_0x252704));return _0xc70e2e['length']?{'type':'format','content':o(_0x4d17e4,'*Set\x20format\x20to:*\x20%0',_0xc70e2e['join'](',\x20'))}:{'type':'format','content':o(_0x4d17e4,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1d2592,_0x2346e3,_0xccb921){const _0x5213d4=_0x1d2592['locale']['t'],_0x3ac7b8=_0x2346e3['split'](/(?=[A-Z])/)['join']('\x20'),_0x584cb3=_0x5213d4(_0x3ac7b8['charAt'](0x0)['toUpperCase']()+_0x3ac7b8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xccb921)return _0x584cb3;if('fontColor'===_0x2346e3||'fontBackgroundColor'===_0x2346e3){const _0x326b60=_0x476b03(_0x1d2592['config']['get']('fontColor.colors'))['find'](_0x66a7e9=>_0x66a7e9['model']==_0xccb921);return _0x584cb3+'\x20('+(_0x326b60?_0x5213d4(_0x326b60['label'])['toLowerCase']():_0xccb921)+')';}if('fontSize'===_0x2346e3&&isNaN(parseFloat(_0xccb921))){const _0xd81345=_0x1d2592['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1d2592['config']['get']('fontSize.options'))['find'](_0x2b494f=>_0x2b494f['model']==_0xccb921);return _0x584cb3+'\x20('+(_0xd81345?_0x5213d4(_0xd81345['title'])['toLowerCase']():_0xccb921)+')';}return _0x584cb3+'\x20('+_0xccb921+')';}class ot extends _0x40606b{['_headingOptions'];['afterInit'](){const _0x5c7507=this['editor'];if(!_0x5c7507['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5c7507['config']['get']('heading.options');const _0x59d726=_0x5c7507['locale'],_0xed503e=_0x5c7507['plugins']['get']('TrackChangesEditing');_0xed503e['enableDefaultAttributesIntegration']('heading');for(const _0x2c87d5 of this['_headingOptions'])'paragraph'!=_0x2c87d5['model']&&_0xed503e['descriptionFactory']['registerElementLabel'](_0x2c87d5['model'],_0x423aa2=>{const _0x1d6e58=this['_getHeadingLevel'](_0x2c87d5['model']);return null!==_0x1d6e58?_0x43a71e(_0x423aa2,_0x1d6e58):_0x506d5c(_0x423aa2,_0x2c87d5['title']);});function _0x43a71e(_0x58cb33,_0xe4b8bd){return o(_0x59d726,'ELEMENT_HEADING',[_0x58cb33,_0xe4b8bd]);}function _0x506d5c(_0x3700af,_0x17335f){return o(_0x59d726,'ELEMENT_HEADING_CUSTOM',[_0x3700af,_0x17335f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc676=this['editor'],_0x142741=_0x4bc676['locale'];function _0x3110ae(_0x4a3cd9,_0x153f91){return o(_0x142741,'ELEMENT_HEADING_CUSTOM',[_0x4a3cd9,_0x153f91]);}_0x4bc676['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x248ae6=>{if('formatBlock'!=_0x248ae6['type'])return;const {data:_0x49bff1}=_0x248ae6;if(_0x49bff1&&'heading'==_0x49bff1['commandName']){const _0x4261d4=_0x49bff1['commandParams'][0x0]['value'],_0x50b324=this['_getHeadingLevel'](_0x4261d4);if(null!==_0x50b324)return{'type':'format','content':o(_0x142741,'*Change\x20to:*\x20%0',(_0x1d7add=0x1,_0xa1742b=_0x50b324,o(_0x142741,'ELEMENT_HEADING',[_0x1d7add,_0xa1742b])))};const _0x450ac1=this['_headingOptions']['find'](_0x4d0c46=>_0x4d0c46['model']===_0x4261d4)['title'];return{'type':'format','content':o(_0x142741,'*Change\x20to:*\x20%0',_0x3110ae(0x1,_0x450ac1))};}var _0x1d7add,_0xa1742b;});}['_getHeadingLevel'](_0x3796ba){const _0x358903=_0x3796ba['match'](/^heading(\d+)/);if(_0x358903)return _0x358903[0x1];const _0x374cdb=this['_headingOptions']?.['find'](_0x3e1848=>_0x3e1848['model']==_0x3796ba);if(_0x374cdb&&_0x374cdb['view']){const _0x397452=_0x374cdb['view'],_0x14dfdc=(_0x397452['name']??_0x397452)['match'](/^h(\d+)/);if(_0x14dfdc)return _0x14dfdc[0x1];}return null;}}class rt extends _0x40606b{['afterInit'](){const _0x41273d=this['editor'];if(!_0x41273d['plugins']['has']('HighlightEditing'))return;const _0x519e29=_0x41273d['plugins']['get']('TrackChangesEditing'),_0x3836a1=_0x41273d['locale'];_0x519e29['enableDefaultAttributesIntegration']('highlight'),_0x519e29['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3836a1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d26eb=this['editor'],_0x5ec199=_0x4d26eb['locale'];_0x4d26eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x576bd8=>{if('formatInline'!=_0x576bd8['type'])return;const {data:_0x2c5ac6}=_0x576bd8;if(_0x2c5ac6&&'highlight'==_0x2c5ac6['commandName']){const _0x4a2215=_0x5ec199['t'],_0x8cf605=_0x2c5ac6['commandParams'][0x0]['value'];if(_0x8cf605){const _0x5d4b01=_0x4d26eb['config']['get']('highlight.options')['find'](_0xecdb78=>_0xecdb78['model']==_0x8cf605),_0x226579=_0x4a2215(_0x5d4b01['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ec199,'*Set\x20highlight:*\x20%0',_0x226579),'color':{'value':_0x5d4b01['color'],'title':_0x5d4b01['title']}};}return{'type':'format','content':o(_0x5ec199,'*Remove\x20highlight*',o(_0x5ec199,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x40606b{['afterInit'](){const _0xf995b3=this['editor'];if(!_0xf995b3['plugins']['has']('HorizontalLineEditing'))return;_0xf995b3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x566c0f=_0xf995b3['plugins']['get']('TrackChangesEditing'),_0x41ea43=_0xf995b3['locale'];_0x566c0f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3515bf=>o(_0x41ea43,'ELEMENT_HORIZONTAL_LINE',_0x3515bf));}}class ct extends _0x40606b{['afterInit'](){const _0x442c55=this['editor'];if(!_0x442c55['plugins']['has']('HtmlEmbed'))return;const _0x2836ef=_0x442c55['plugins']['get']('TrackChangesEditing'),_0xaf1344=_0x442c55['locale'];_0x2836ef['descriptionFactory']['registerElementLabel']('rawHtml',_0x36f4a8=>o(_0xaf1344,'ELEMENT_HTML_EMBED',_0x36f4a8)),_0x2836ef['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2836ef['descriptionFactory']['registerDescriptionCallback'](_0x50a57c=>{if('attribute'!=_0x50a57c['type'])return;const {data:_0x4c66aa}=_0x50a57c;if(_0x4c66aa&&'value'==_0x4c66aa['key']&&_0x50a57c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4b3523=o(_0xaf1344,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xaf1344,'*Change\x20%0\x20content*',_0x4b3523)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eac8e=this['editor'],_0x41a9fc=_0x2eac8e['locale'];_0x2eac8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fd366=>{if('formatBlock'!=_0x3fd366['type'])return;const {data:_0x53d1ef}=_0x3fd366;if(_0x53d1ef&&'htmlEmbed'==_0x53d1ef['commandName']){const _0x43949f=o(_0x41a9fc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41a9fc,'*Change\x20%0\x20content*',_0x43949f)};}});}}class ut extends _0x40606b{['afterInit'](){const _0x4328aa=this['editor'];if(!_0x4328aa['plugins']['has']('ImageEditing'))return;const _0x2c8958=_0x4328aa['plugins']['get']('TrackChangesEditing'),_0x190e27=_0x4328aa['plugins']['get']('ImageUtils'),_0x2732a2=_0x4328aa['locale'];_0x2c8958['enableCommand']('insertImage'),_0x2c8958['descriptionFactory']['registerElementLabel']('imageBlock',_0x4c744a=>o(_0x2732a2,'ELEMENT_IMAGE',_0x4c744a)),_0x2c8958['descriptionFactory']['registerElementLabel']('imageInline',_0x49026c=>o(_0x2732a2,'ELEMENT_INLINE_IMAGE',_0x49026c)),_0x2c8958['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2732a2,'ELEMENT_CAPTION')),_0x4328aa['plugins']['has']('ImageUploadEditing')&&_0x2c8958['enableCommand']('uploadImage'),_0x4328aa['plugins']['has']('ImageBlockEditing')&&_0x4328aa['plugins']['has']('ImageInlineEditing')&&(_0x2c8958['enableCommand']('imageTypeInline',(_0x43459f,_0x45b406)=>{const _0x4a2789=_0x190e27['getClosestSelectedImageElement'](_0x4328aa['model']['document']['selection']);_0x4328aa['model']['change'](()=>{_0x2c8958['markBlockFormat'](_0x4a2789,{'commandName':'imageTypeInline','commandParams':[_0x45b406]},[],'convertBlockImageToInline');});}),_0x2c8958['enableCommand']('imageTypeBlock',(_0x185d4e,_0x22e7eb)=>{_0x4328aa['model']['change'](_0x1b663c=>{let _0x2b17ff=_0x190e27['getClosestSelectedImageElement'](_0x4328aa['model']['document']['selection']),_0x10ddfb=_0x1b663c['createRangeOn'](_0x2b17ff);const _0x1917b5=_0x1c07eb['fromPosition'](_0x10ddfb['start'],'toPrevious'),_0x582f3b=_0x1c07eb['fromPosition'](_0x10ddfb['end'],'toNext');_0x2c8958['forceDefaultExecution'](()=>_0x185d4e(_0x22e7eb)),_0x2b17ff=_0x190e27['getClosestSelectedImageElement'](_0x4328aa['model']['document']['selection']),_0x10ddfb=_0x1b663c['createRangeOn'](_0x2b17ff);const _0x20d60b=_0x1b663c['createRange'](_0x1917b5,_0x582f3b);_0x1917b5['detach'](),_0x582f3b['detach'](),_0x2c8958['markBlockFormat'](_0x2b17ff,{'commandName':'imageTypeInline','commandParams':[_0x22e7eb]},[],'convertInlineImageToBlock'),_0x20d60b['start']['isBefore'](_0x10ddfb['start'])&&_0x2c8958['markInsertion'](_0x1b663c['createRange'](_0x20d60b['start'],_0x10ddfb['start']),'convertInlineImageToBlock'),_0x10ddfb['end']['isBefore'](_0x20d60b['end'])&&_0x2c8958['markInsertion'](_0x1b663c['createRange'](_0x10ddfb['end'],_0x20d60b['end']),'convertInlineImageToBlock');});}),_0x2c8958['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2c8958['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2c8958['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2c8958['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2c8958['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2c8958['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3917cd])=>{const _0x5324f7=_0x2c8958['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x16bcef=_0x3917cd['start'],_0xf2c0e1=_0x3917cd['end'];const _0x1b2f88=_0x4328aa['model']['schema']['getNearestSelectionRange'](_0x16bcef,'backward'),_0x162b49=_0x4328aa['model']['schema']['getNearestSelectionRange'](_0xf2c0e1,'forward');_0x1b2f88['isCollapsed']&&(_0x16bcef=_0x1b2f88['start']),_0x162b49['isCollapsed']&&(_0xf2c0e1=_0x162b49['end']),_0x5324f7([_0x4328aa['model']['createRange'](_0x16bcef,_0xf2c0e1)]);}),_0x2c8958['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1a0e84),_0x2c8958['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1a0e84)),_0x4328aa['plugins']['has']('ImageCaptionEditing')&&(_0x2c8958['enableCommand']('toggleImageCaption',(_0x512b61,_0x882c55)=>{const _0x1b5e24=_0x4328aa['plugins']['get']('ImageCaptionUtils');let _0x2f69b0=_0x190e27['getClosestSelectedImageElement'](_0x4328aa['model']['document']['selection']),_0x45baf2=_0x1b5e24['getCaptionFromImageModelElement'](_0x2f69b0);_0x4328aa['model']['change'](()=>{if(_0x45baf2)return void _0x2c8958['markDeletion'](_0x4328aa['model']['createRangeOn'](_0x45baf2));const _0x36b7ee=_0x190e27['isBlockImage'](_0x2f69b0);_0x512b61(_0x882c55),_0x2f69b0=_0x190e27['getClosestSelectedImageElement'](_0x4328aa['model']['document']['selection']),_0x45baf2=_0x1b5e24['getCaptionFromImageModelElement'](_0x2f69b0),_0x2c8958['markInsertion'](_0x4328aa['model']['createRangeOn'](_0x45baf2),_0x36b7ee?null:'imageCaption');});}),_0x2c8958['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1a0e84));const _0x4b0cfd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32e311(_0x527298,_0x13b3c4){const _0x5bea8c=_0x4b0cfd['findIndex'](({type:_0x2a0f2b,subType:_0x54681f})=>_0x527298['type']==_0x2a0f2b&&_0x527298['subType']==_0x54681f),_0x2f73e3=_0x4b0cfd['findIndex'](({type:_0x49552c,subType:_0x1e1136})=>_0x13b3c4['type']==_0x49552c&&_0x13b3c4['subType']==_0x1e1136);if(_0x5bea8c<0x0||_0x2f73e3<0x0)return!0x1;const _0xdedeb2=_0x527298['getFirstRange'](),_0x35948a=_0x13b3c4['getFirstRange']();if((0x0==_0x5bea8c||0x1==_0x5bea8c)&&0x2==_0x2f73e3&&_0xdedeb2['isIntersecting'](_0x35948a))return!0x0;if(0x2==_0x5bea8c&&0x3==_0x2f73e3){const _0x164d1e=_0x2c8958['_findSuggestions'](_0xdedeb2,'insertion')['filter'](({suggestion:_0x7ee9e4,meta:_0x3baafa})=>_0x3baafa['isOwn']&&'convertInlineImageToBlock'==_0x7ee9e4['subType']);if(_0x164d1e['length']>0x1&&_0x35948a['end']['isEqual'](_0xdedeb2['start']))return!0x0;if(0x1==_0x164d1e['length']&&(_0xdedeb2['start']['isEqual'](_0x35948a['end'])||_0xdedeb2['end']['isEqual'](_0x35948a['start'])))return!0x0;}if(0x3==_0x5bea8c&&0x3==_0x2f73e3&&_0xdedeb2['start']['isBefore'](_0x35948a['start'])){const _0x37d577=_0xdedeb2['end']['nodeAfter'],_0x2ad7c9=_0x35948a['start']['nodeBefore'];return _0x190e27['isBlockImage'](_0x37d577)&&_0x37d577===_0x2ad7c9;}return!0x1;}function _0x1a0e84(_0x593b1b,_0xfa60d7){return _0x32e311(_0x593b1b,_0xfa60d7)?[_0x593b1b,_0xfa60d7]:_0x32e311(_0xfa60d7,_0x593b1b)?[_0xfa60d7,_0x593b1b]:null;}_0x4328aa['plugins']['has']('ImageResize')&&(_0x2c8958['enableDefaultAttributesIntegration']('resizeImage'),_0x2c8958['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2732a2,'FORMAT_IMAGE_SIZE'))),_0x4328aa['plugins']['has']('ImageTextAlternativeEditing')&&_0x2c8958['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4328aa['plugins']['has']('PictureEditing')&&_0x2c8958['descriptionFactory']['registerDescriptionCallback'](_0x534559=>{if('attribute'!=_0x534559['type'])return;const {data:_0x5b263c}=_0x534559;return _0x5b263c&&'sources'==_0x5b263c['key']?{'type':'format','content':''}:void 0x0;}),_0x4328aa['plugins']['has']('ImageSizeAttributes')&&_0x2c8958['descriptionFactory']['registerDescriptionCallback'](_0x3fe850=>{if('attribute'!=_0x3fe850['type'])return;const {data:_0x14f26a}=_0x3fe850;return!_0x14f26a||'width'!=_0x14f26a['key']&&'height'!=_0x14f26a['key']?void 0x0:{'type':'format','content':''};}),_0x2c8958['descriptionFactory']['registerDescriptionCallback'](_0x42a6e8=>{if(!!_0x4b0cfd['find'](({type:_0x1daf0b,subType:_0x43fcb7})=>_0x42a6e8['type']==_0x1daf0b&&_0x42a6e8['subType']==_0x43fcb7))return _0x42a6e8['previous']?{}:void 0x0;}),_0x2c8958['descriptionFactory']['registerDescriptionCallback'](_0x5b8e5f=>{if('insertion'==_0x5b8e5f['type']||'deletion'==_0x5b8e5f['type']){const _0x100968=_0x5b8e5f['getContainedElement']();if(_0x100968&&_0x100968['is']('element','caption'))return{'type':'insertion'==_0x5b8e5f['type']?'addObject':'removeObject','element':_0x100968,'quantity':0x1};}}),_0x2c8958['descriptionFactory']['registerDescriptionCallback'](_0x4231b4=>'formatBlock'==_0x4231b4['type']&&'convertInlineImageToBlock'==_0x4231b4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4231b4['type']&&'convertBlockImageToInline'==_0x4231b4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2c8958['descriptionFactory']['registerDescriptionCallback'](_0x1aae1c=>{if('attribute'!=_0x1aae1c['type'])return;const {data:_0x465737}=_0x1aae1c;if(!_0x465737||'alt'!=_0x465737['key'])return;const _0x250b61=_0x465737['newValue'];return _0x250b61?{'type':'format','content':o(_0x2732a2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x250b61+'\x22')}:{'type':'format','content':o(_0x2732a2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32d20b=this['editor'],_0x22cbbc=_0x32d20b['locale'];_0x32d20b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc9bce=>{if('formatBlock'!=_0xc9bce['type']&&'formatInline'!=_0xc9bce['type'])return;const {data:_0x37868c}=_0xc9bce;if(_0x37868c){if('imageTextAlternative'==_0x37868c['commandName']){const _0x1431f8=_0x37868c['commandParams'][0x0]['newValue'];return _0x1431f8?{'type':'format','content':o(_0x22cbbc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1431f8+'\x22')}:{'type':'format','content':o(_0x22cbbc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x37868c['commandName']){const _0xedcac8=_0x37868c['commandParams'][0x0]['width'];return _0xedcac8?{'type':'format','content':o(_0x22cbbc,'*Set\x20image\x20width:*\x20%0',_0xedcac8)}:{'type':'format','content':o(_0x22cbbc,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x40606b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x57b4bb=this['editor']['locale'],_0x5c6cf0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c6cf0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5c6cf0['descriptionFactory']['registerDescriptionCallback'](_0x46d714=>{if('attribute'!=_0x46d714['type'])return;const {data:_0x342095}=_0x46d714;return _0x342095&&'src'==_0x342095['key']?_0x342095['newValue']&&_0x342095['oldValue']?{'type':'format','content':o(_0x57b4bb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58c530=this['editor']['plugins']['get']('TrackChangesEditing');_0x58c530['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x58c530['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58c530['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x58c530['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d8636=this['editor'],_0x4a16c5=_0x2d8636['locale'];_0x2d8636['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd6abf7=>{if('formatBlock'!=_0xd6abf7['type']&&'formatInline'!=_0xd6abf7['type'])return;const {data:_0x5e6306}=_0xd6abf7;if(!_0x5e6306||'replaceImageSource'!=_0x5e6306['commandName'])return;return{'type':'format','content':o(_0x4a16c5,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x40606b{['afterInit'](){const _0x529f13=this['editor'];if(!_0x529f13['plugins']['has']('ImageStyleEditing'))return;const _0xc95e63=_0x529f13['plugins']['get']('TrackChangesEditing'),_0x1e470d=_0x529f13['plugins']['get']('ImageUtils'),_0x51511f={};_0xc95e63['enableCommand']('imageStyle',(_0x5586d3,_0x5ea294)=>{const _0x3a8b63=_0x529f13['plugins']['get']('Users')['me'],_0x37342a=_0x529f13['commands']['get']('imageStyle');let _0x162f39=_0x1e470d['getClosestSelectedImageElement'](_0x529f13['model']['document']['selection']),_0x3222f0=_0x529f13['model']['createRangeOn'](_0x162f39),_0xf6227f=_0x37342a['value'];if(_0xf6227f==_0x5ea294['value'])return;const _0x4303ae={'commandName':'imageStyle','commandParams':[_0x5ea294],'formatGroupId':_0x186142()};_0x529f13['model']['change'](()=>{if(_0xc95e63['getSuggestions']()['filter'](_0x1c0cec=>_0x1c0cec['isInContent']&&_0x3a8b63==_0x1c0cec['author']&&('formatBlock'==_0x1c0cec['type']||'formatInline'==_0x1c0cec['type'])&&('imageStylePreApply'==_0x1c0cec['subType']||'imageStylePostApply'==_0x1c0cec['subType'])&&_0x1c0cec['getFirstRange']()['isEqual'](_0x3222f0))['forEach'](_0xbd5124=>_0xc95e63['discardSuggestion'](_0xbd5124['head'])),_0x162f39=_0x1e470d['getClosestSelectedImageElement'](_0x529f13['model']['document']['selection']),_0x3222f0=_0x529f13['model']['createRangeOn'](_0x162f39),_0x37342a['refresh'](),_0x529f13['commands']['get']('imageTypeInline')['refresh'](),_0x529f13['commands']['get']('imageTypeBlock')['refresh'](),_0xf6227f=_0x37342a['value'],_0xf6227f!=_0x5ea294['value'])return _0x1e470d['isInlineImage'](_0x162f39)&&_0x37342a['shouldConvertImageType'](_0x5ea294['value'],_0x162f39)?(_0x5586d3({..._0x5ea294,'setImageSizes':!0x1}),_0x162f39=_0x1e470d['getClosestSelectedImageElement'](_0x529f13['model']['document']['selection']),void _0xc95e63['markBlockFormat'](_0x162f39,{..._0x4303ae,'commandReversedParams':[{'value':_0xf6227f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e470d['isBlockImage'](_0x162f39)?_0xc95e63['markBlockFormat'](_0x162f39,_0x4303ae,[],'imageStylePostApply'):_0xc95e63['markInlineFormat'](_0x3222f0,_0x4303ae,'imageStylePostApply'));});});for(const _0x355b01 of _0x529f13['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51511f[_0x355b01['name']]=_0x355b01['title']['toLowerCase']();_0xc95e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xc95e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xc95e63['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xc95e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3bf658])=>{_0x1e470d['setImageNaturalSizeAttributes'](_0x3bf658['getContainedElement']());}),_0xc95e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x48ff0c,_0x58dbea)=>{_0xc95e63['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x48ff0c,{'commandName':_0x58dbea['commandName'],'commandParams':_0x58dbea['commandReversedParams']});}),_0xc95e63['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x347a50,_0x129fdf){if(_0x4ed44a(_0x347a50,_0x129fdf))return[_0x347a50,_0x129fdf];if(_0x4ed44a(_0x129fdf,_0x347a50))return[_0x129fdf,_0x347a50];return null;});const _0x5ef987=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ed44a(_0x2277d5,_0x45bd59){const _0x471756=_0x5ef987['findIndex'](({type:_0x3d4ee8,subType:_0x55693})=>_0x2277d5['type']==_0x3d4ee8&&_0x2277d5['subType']==_0x55693),_0x33cca7=_0x5ef987['findIndex'](({type:_0x44a9ce,subType:_0x1d886e})=>_0x45bd59['type']==_0x44a9ce&&_0x45bd59['subType']==_0x1d886e);if(_0x471756<0x0||_0x33cca7<0x0)return!0x1;const _0x4c030f=_0x2277d5['getFirstRange'](),_0x474f70=_0x45bd59['getFirstRange']();if((0x0==_0x471756||0x1==_0x471756)&&0x2==_0x33cca7&&_0x4c030f['isIntersecting'](_0x474f70))return!0x0;if(0x2==_0x471756&&0x3==_0x33cca7){const _0x36082d=_0xc95e63['_findSuggestions'](_0x4c030f,'insertion')['filter'](({suggestion:_0x58922c,meta:_0x5941e1})=>_0x5941e1['isOwn']&&'convertInlineImageToBlock'==_0x58922c['subType']);if(_0x36082d['length']>0x1&&_0x474f70['end']['isEqual'](_0x4c030f['start']))return!0x0;if(0x1==_0x36082d['length']&&(_0x4c030f['start']['isEqual'](_0x474f70['end'])||_0x4c030f['end']['isEqual'](_0x474f70['start'])))return!0x0;}if(0x3==_0x471756&&0x3==_0x33cca7&&_0x4c030f['start']['isBefore'](_0x474f70['start'])){const _0x37cdd7=_0x4c030f['end']['nodeAfter'],_0x3b325e=_0x474f70['start']['nodeBefore'];return _0x1e470d['isBlockImage'](_0x37cdd7)&&_0x37cdd7===_0x3b325e;}return!0x1;}_0x529f13['model']['document']['registerPostFixer'](()=>{let _0x5d18c4=!0x1;const _0x1768d6=Array['from'](_0x529f13['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43ab88,data:_0x5629a1}of _0x1768d6){const {group:_0x44545d,type:_0x101784,subType:_0xef8348,id:_0x1e45f6}=_0xc95e63['_splitMarkerName'](_0x43ab88);if('suggestion'==_0x44545d&&_0xc95e63['hasSuggestion'](_0x1e45f6)){if('formatBlock'==_0x101784&&('imageStylePreApply'==_0xef8348||'imageStylePostApply'==_0xef8348)){const _0x174b36=_0xc95e63['getSuggestion'](_0x1e45f6);if(_0x5629a1['newRange']){const _0x542448=_0x174b36['getFirstRange']()['getContainedElement']();if(_0x1e470d['isBlockImage'](_0x542448))continue;_0xc95e63['discardSuggestion'](_0x174b36),_0x5d18c4=!0x0;}}if('insertion'==_0x101784&&'imageCaption'==_0xef8348&&!_0x5629a1['newRange']){const _0x5c966d=_0xc95e63['getSuggestion'](_0x1e45f6);_0x5c966d['next']&&_0x5c966d['next']['isInContent']&&(_0xc95e63['discardSuggestion'](_0x5c966d['next']),_0x5d18c4=!0x0);}}}return _0x5d18c4;}),this['_registerLegacyDescription'](_0x51511f);}['_registerLegacyDescription'](_0x210fc2){const _0x1bd9a6=this['editor'],_0x5aa57e=_0x1bd9a6['locale'];_0x1bd9a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbee684=>{if('formatBlock'!=_0xbee684['type']&&'formatInline'!=_0xbee684['type'])return;const {data:_0x39b522}=_0xbee684;if(!_0x39b522||'imageStyle'!=_0x39b522['commandName'])return;const _0x4f559a=_0x39b522['commandParams'][0x0]['value'];return _0x3f7d93('side'===_0x4f559a?o(_0x5aa57e,'FORMAT_SIDE_IMAGE'):_0x210fc2[_0x4f559a]||_0x4f559a);function _0x3f7d93(_0x23b618){return{'type':'format','content':o(_0x5aa57e,'*Format:*\x20%0',_0x23b618)};}});}}class lt extends _0x40606b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5bf51a){super(_0x5bf51a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4a02f8=this['editor'],_0x2835f6=_0x4a02f8['commands']['get']('importWord'),_0x2d568e=_0x4a02f8['commands']['get']('trackChanges');_0x2835f6&&(_0x2835f6['on']('execute',(_0x21109b,[,_0x5d18ec])=>{this['_trackChangesValueDuringImport']=_0x2d568e['value'],_0x5d18ec['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2835f6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2835f6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2d568e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a02f8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x48dbf4,_0x1be479){const {suggestions:_0x2c6a51}=_0x1be479,_0x5c90cc=this['editor']['commands']['get']('trackChanges'),_0x472291=_0x5c90cc['value'];this['_trackChangesValueDuringImport']!==_0x472291&&(_0x5c90cc['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c6a51&&_0x2c6a51['forEach'](({id:_0x2c91d5,type:_0x5ae3ad,author:_0x4e5a4f,created_at:_0x5c26fe})=>{const _0x4e13b9={'id':_0x2c91d5,'type':_0x5ae3ad,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4e5a4f,'createdAt':_0x5c26fe?new Date(_0x5c26fe):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e13b9);});}}class gt extends _0x40606b{['afterInit'](){const _0x4e3764=this['editor'],_0x231d13=_0x4e3764['plugins']['get']('TrackChangesEditing');if(_0x4e3764['plugins']['has']('IndentEditing')&&(_0x231d13['enableCommand']('indent'),_0x231d13['enableCommand']('outdent')),_0x4e3764['plugins']['has']('IndentBlock')){for(const _0x4875df of['indentBlock','outdentBlock'])_0x231d13['enableDefaultAttributesIntegration'](_0x4875df);if(_0x4e3764['plugins']['has']('ListEditing')){for(const _0x42242f of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x231d13['enableDefaultAttributesIntegration'](_0x42242f);}}const _0x1f1640=_0x4e3764['locale'];_0x231d13['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1f1640,'FORMAT_INDENT')),_0x231d13['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x1f1640,'FORMAT_INDENT')),_0x231d13['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x1f1640,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x121618=this['editor'],_0x53031d=_0x121618['locale'],_0xbed5d3=_0x121618['plugins']['get']('TrackChangesEditing');_0xbed5d3['descriptionFactory']['registerDescriptionCallback'](_0x282552=>{if('formatBlock'!=_0x282552['type'])return;const {data:_0x2058b3}=_0x282552;if(!_0x2058b3)return;if('indentBlock'!=_0x2058b3['commandName']&&'outdentBlock'!=_0x2058b3['commandName'])return;const _0x139df9=_0x282552['getItems']()[0x0],_0x44d18d=_0xbed5d3['descriptionFactory']['getItemLabel'](_0x139df9);return'indentBlock'==_0x2058b3['commandName']?{'type':'format','content':o(_0x53031d,'*Indent:*\x20%0',_0x44d18d)}:'outdentBlock'==_0x2058b3['commandName']?{'type':'format','content':o(_0x53031d,'*Outdent:*\x20%0',_0x44d18d)}:void 0x0;});}}class mt extends _0x40606b{static get['requires'](){return[_0x21f132];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x40606b{['afterInit'](){const _0x46a01a=this['editor'];if(!_0x46a01a['plugins']['has']('LinkEditing'))return;const _0x34ab63=_0x46a01a['plugins']['get']('TrackChangesEditing'),_0x51acc7=_0x46a01a['commands']['get']('link');_0x34ab63['enableDefaultAttributesIntegration']('link'),_0x34ab63['enableDefaultAttributesIntegration']('unlink');for(const _0x2927c9 of _0x51acc7['manualDecorators'])_0x34ab63['descriptionFactory']['registerAttributeLabel'](_0x2927c9['id'],'link\x20('+_0x2927c9['label']['toLowerCase']()+')');_0x34ab63['descriptionFactory']['registerDescriptionCallback'](_0x152f75=>{if('attribute'!=_0x152f75['type'])return;const {data:_0x415308}=_0x152f75;if(!_0x415308||'linkHref'!=_0x415308['key'])return;const _0x1b263c=_0x415308['newValue'],_0x134e07=_0x46a01a['locale'];return{'type':'format','content':null==_0x1b263c?o(_0x134e07,'*Remove\x20link*'):o(_0x134e07,'*Set\x20link:*\x20%0','\x22'+_0x1b263c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f0c8=this['editor'],_0x4c8374=_0x32f0c8['locale'];_0x32f0c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20c301=>{if('formatInline'!=_0x20c301['type'])return;const {data:_0x371be5}=_0x20c301;if(_0x371be5){if('link'==_0x371be5['commandName']){const _0x147d1c=_0x371be5['commandParams'][0x0];return{'type':'format','content':o(_0x4c8374,'*Set\x20link:*\x20%0','\x22'+_0x147d1c+'\x22')};}return'unlink'==_0x371be5['commandName']?{'type':'format','content':o(_0x4c8374,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x40606b{['afterInit'](){const _0x8b9346=this['editor'],_0x212708=_0x8b9346['locale'];if(!_0x8b9346['plugins']['has']('LegacyListEditing'))return;const _0x6d13f1=_0x8b9346['plugins']['get']('TrackChangesEditing'),_0x410bf1=_0x8b9346['plugins']['has']('LegacyTodoListEditing');function _0x1d7fbe(_0x17e7b0){return()=>{const _0x53dfbb=_0x8b9346['model']['document']['selection'],_0x587e16=_0x8b9346['commands']['get'](_0x17e7b0);if(_0x587e16['value'])return void _0x8b9346['execute']('paragraph',{});const _0x226739=_0x17e7b0['slice'](0x0,-0x4),_0x17e9f5=function(_0x644bbd,_0x570869,_0x577d04){let _0x332d6f=Array['from'](_0x644bbd)['filter'](_0x9c2a4e=>function(_0x1269ee,_0x26e7e0){return _0x26e7e0['checkChild'](_0x1269ee['parent'],'listItem')&&!_0x26e7e0['isObject'](_0x1269ee);}(_0x9c2a4e,_0x577d04));_0x332d6f=_0x332d6f['filter'](_0x588864=>!_0x588864['is']('element','listItem')||_0x588864['getAttribute']('listType')!=_0x570869);const _0x4508d1=new Set();for(const _0x3f5683 of _0x332d6f)_0x3f5683['is']('element','listItem')?_0x4508d1['add'](Le(_0x3f5683)):_0x4508d1['add'](_0x3f5683);return Array['from'](_0x4508d1);}(_0x53dfbb['getSelectedBlocks'](),_0x226739,_0x8b9346['model']['schema']);_0x8b9346['model']['change'](()=>{for(const _0x82ab76 of _0x17e9f5)_0x6d13f1['markBlockFormat'](_0x82ab76,{'commandName':_0x17e7b0,'commandParams':[{'forceValue':!_0x587e16['value']}],'formatGroupId':'blockName'},Ee(_0x82ab76));});};}function _0x31883c(_0x552346){return()=>{const _0x2b6b02=function(_0x1653e6){let _0x2245d2=Array['from'](_0x1653e6);const _0x1ce177=_0x2245d2['findIndex'](_0x18b4b9=>'listItem'!=_0x18b4b9['name']);return _0x1ce177>-0x1&&(_0x2245d2=_0x2245d2['slice'](0x0,_0x1ce177)),_0x2245d2;}(_0x8b9346['model']['document']['selection']['getSelectedBlocks']()),_0x3f4f25=_0x8b9346['model']['createRange'](_0x8b9346['model']['createPositionAt'](_0x2b6b02[0x0],'before'),_0x8b9346['model']['createPositionAt'](_0x2b6b02[_0x2b6b02['length']-0x1],'end'));_0x8b9346['model']['change'](()=>{_0x6d13f1['markBlockFormat'](_0x3f4f25,{'commandName':_0x552346,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4a9037){const _0x227b05=new Set();for(const _0x56df03 of _0x4a9037){let _0x3b2333=_0x56df03['nextSibling'];for(;_0x3b2333&&_0x3b2333['getAttribute']('listIndent')>_0x56df03['getAttribute']('listIndent');)_0x227b05['add'](_0x3b2333),_0x3b2333=_0x3b2333['nextSibling'];}return Array['from'](_0x227b05);}(_0x2b6b02));});};}_0x6d13f1['enableCommand']('numberedList',_0x1d7fbe('numberedList')),_0x6d13f1['enableCommand']('bulletedList',_0x1d7fbe('bulletedList')),_0x410bf1&&_0x6d13f1['enableCommand']('todoList',_0x1d7fbe('todoList')),_0x6d13f1['enableCommand']('indentList',_0x31883c('indentList')),_0x6d13f1['enableCommand']('outdentList',_0x31883c('outdentList')),_0x410bf1&&_0x6d13f1['enableCommand']('checkTodoList',()=>{const _0x47b3ba=_0x8b9346['commands']['get']('checkTodoList'),_0x34ed66=Array['from'](_0x47b3ba['_selectedElements']);_0x34ed66['filter'](_0x17a5de=>_0x17a5de['getAttribute']('todoListChecked')!=_0x47b3ba['value']),_0x8b9346['model']['change'](()=>{for(const _0x2ebca0 of _0x34ed66)_0x6d13f1['markBlockFormat'](_0x2ebca0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47b3ba['value']}]});});}),_0x6d13f1['descriptionFactory']['registerElementLabel']('listItem',_0x22c13f=>o(_0x212708,'ELEMENT_LIST_ITEM',_0x22c13f)),_0x6d13f1['descriptionFactory']['registerDescriptionCallback'](_0x4c63c0=>{if('formatBlock'!=_0x4c63c0['type']&&'formatInline'!=_0x4c63c0['type'])return;const {data:_0x3001bc}=_0x4c63c0;if(_0x3001bc){if('numberedList'==_0x3001bc['commandName']||'bulletedList'==_0x3001bc['commandName']||'todoList'==_0x3001bc['commandName'])switch(_0x3001bc['commandName']['replace']('List','')){case'bulleted':return _0x56e52e(o(_0x212708,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56e52e(o(_0x212708,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56e52e(o(_0x212708,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3001bc['commandName'])return{'type':'format','content':o(_0x212708,'*Indent:*\x20%0',o(_0x212708,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3001bc['commandName'])return{'type':'format','content':o(_0x212708,'*Outdent:*\x20%0',o(_0x212708,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3001bc['commandName'])return _0x3001bc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x212708,'*Check\x20item*')}:{'type':'format','content':o(_0x212708,'*Uncheck\x20item*')};}function _0x56e52e(_0x4695e1){return{'type':'format','content':o(_0x212708,'*Change\x20to:*\x20%0',_0x4695e1)};}});}}function Le(_0x2289df){const _0xdeeb80=_0x2289df['getAttribute']('listIndent');if(0x0==_0xdeeb80)return _0x2289df;let _0xf33d9b=_0x2289df;for(;_0x2289df['previousSibling']&&_0x2289df['previousSibling']['is']('element','listItem');){const _0x21febf=_0x2289df['previousSibling']['getAttribute']('listIndent');if(_0x21febf==_0xdeeb80)_0xf33d9b=_0x2289df['previousSibling'];else{if(_0x21febf<_0xdeeb80)break;}_0x2289df=_0x2289df['previousSibling'];}return _0xf33d9b;}function Ee(_0x12d3f6){const _0xb001f6=[];if(_0x12d3f6['is']('element','listItem')&&_0x12d3f6['getAttribute']('listIndent')>0x0){let _0x3f9e30=_0x12d3f6['nextSibling'];for(;_0x3f9e30&&'listItem'==_0x3f9e30['name']&&_0x3f9e30['getAttribute']('listIndent')==_0x12d3f6['getAttribute']('listIndent');)_0xb001f6['push'](_0x3f9e30),_0x3f9e30=_0x3f9e30['nextSibling'];}return _0xb001f6;}class wt extends _0x40606b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4402b7=this['editor']['config']['get']('list.properties'),_0x1fe829=this['editor']['plugins']['get']('TrackChangesEditing');_0x4402b7['styles']&&_0x1fe829['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4402b7['reversed']&&_0x1fe829['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4402b7['startIndex']&&_0x1fe829['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1fe829['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5e083f,_0x3443b8={}){const _0x573ad6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d0aa=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x573ad6['markMultiRangeBlockFormat'](_0x39d0aa,{'commandName':'listStyle','commandParams':[{'type':_0x3443b8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x53a37f,_0x4f9796={}){const _0xdbece8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8409ca=this['_getSuggestionBlocks'](_0x13736f=>_0x13736f['is']('element','listItem')&&'numbered'===_0x13736f['getAttribute']('listType'));if(_0x8409ca['length']<0x1)return;const _0x2936a=_0x8409ca['map'](_0x1e7695=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e7695,'before'),this['editor']['model']['createPositionAt'](_0x1e7695,0x0)));this['editor']['model']['change'](()=>{_0xdbece8['markMultiRangeBlockFormat'](_0x2936a,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f9796['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x44b9a6,_0x29893e={}){const _0x3b2bf6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x460be3=this['_getSuggestionBlocks'](_0x3263e4=>_0x3263e4['is']('element','listItem')&&'numbered'===_0x3263e4['getAttribute']('listType'));if(_0x460be3['length']<0x1)return;const _0x4f9057=_0x460be3['map'](_0x384ca2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x384ca2,'before'),this['editor']['model']['createPositionAt'](_0x384ca2,0x0)));this['editor']['model']['change'](()=>{_0x3b2bf6['markMultiRangeBlockFormat'](_0x4f9057,{'commandName':'listStart','commandParams':[{'startIndex':_0x29893e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15c973){if('formatBlock'!=_0x15c973['type']&&'formatInline'!=_0x15c973['type'])return;const _0x4b1d79=this['editor']['locale'],{data:_0x1fb27c}=_0x15c973;if(!_0x1fb27c)return;let _0xcd2abc,_0x598b68;switch(_0x1fb27c['commandName']){case'listStyle':_0xcd2abc='*Change\x20to:*\x20%0',_0x598b68={'type':'format','content':o(_0x4b1d79,_0xcd2abc,o(_0x4b1d79,this['_getTranslationKeyForListStyle'](_0x1fb27c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcd2abc=_0x1fb27c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x598b68={'type':'format','content':o(_0x4b1d79,_0xcd2abc)};break;case'listStart':_0xcd2abc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x598b68={'type':'format','content':o(_0x4b1d79,_0xcd2abc,_0x1fb27c['commandParams'][0x0]['startIndex'])};}return _0x598b68;}['_getSuggestionBlocksForListStyle'](){const _0x5414cf=this['editor']['plugins']['get']('LegacyListUtils');let _0x3804e8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3804e8[0x0]?.['is']('element','listItem')&&_0x3804e8['unshift'](..._0x5414cf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3804e8[_0x3804e8['length']-0x1]?.['is']('element','listItem')&&_0x3804e8['push'](..._0x5414cf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3804e8=[...new Set(_0x3804e8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3804e8=_0x3804e8['filter'](_0x390f4c=>_0x390f4c['is']('element','listItem'))),_0x3804e8;}['_getSuggestionBlocks'](_0x4c4a40){const _0x548ab6=this['editor']['plugins']['get']('LegacyListUtils');let _0x17c055=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c4a40)['map'](_0x1608b1=>{const _0x342de2=this['editor']['model']['createPositionAt'](_0x1608b1,0x0);return[..._0x548ab6['getSiblingNodes'](_0x342de2,'backward'),..._0x548ab6['getSiblingNodes'](_0x342de2,'forward')];})['flat']();return _0x17c055=[...new Set(_0x17c055)],_0x17c055;}['_getTranslationKeyForListStyle'](_0x236205){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x236205)||'default')['toUpperCase']()+'_LIST_'+_0x236205['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x40606b{['afterInit'](){const _0x3d7b18=this['editor'];if(!_0x3d7b18['plugins']['has']('MediaEmbedEditing'))return;const _0x79010e=_0x3d7b18['plugins']['get']('TrackChangesEditing'),_0x3a928e=_0x3d7b18['locale'];_0x79010e['enableCommand']('mediaEmbed'),_0x79010e['descriptionFactory']['registerElementLabel']('media',_0x42d1a3=>o(_0x3a928e,'ELEMENT_MEDIA',_0x42d1a3));}}class bt extends _0x40606b{['afterInit'](){const _0x1e6d73=this['editor'];_0x1e6d73['plugins']['has']('MentionEditing')&&_0x1e6d73['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x40606b{['afterInit'](){const _0x5b2f4b=this['editor'];if(!_0x5b2f4b['plugins']['has']('MergeFieldsEditing'))return;const _0x3c551f=_0x5b2f4b['plugins']['get']('TrackChangesEditing'),_0x2cbb1c=_0x5b2f4b['locale'];_0x3c551f['enableCommand']('insertMergeField'),_0x3c551f['enableCommand']('insertMergeFieldBlock'),_0x3c551f['enableCommand']('insertMergeFieldImage'),_0x3c551f['descriptionFactory']['registerElementLabel']('mergeField',_0x5e9f37=>o(_0x2cbb1c,'ELEMENT_MERGE_FIELD',_0x5e9f37)),_0x3c551f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1f2d5d=>o(_0x2cbb1c,'ELEMENT_MERGE_FIELD',_0x1f2d5d)),_0x3c551f['descriptionFactory']['registerDescriptionCallback'](_0x6cc18e=>{if('insertion'!=_0x6cc18e['type']&&'deletion'!=_0x6cc18e['type'])return;const _0x570f49=_0x6cc18e['getContainedElement']();if(null==_0x570f49)return;const _0x23fb64=_0x5b2f4b['plugins']['get']('MergeFieldsEditing');let _0x4b4324;switch(_0x23fb64['getMergeFieldType'](_0x570f49)){case null:return;case'image':{const _0x370f17=_0x23fb64['unwrapAffixes'](_0x570f49['getAttribute']('src'));_0x4b4324=_0x23fb64['getLabel'](_0x370f17)||_0x370f17;break;}default:{const _0x26b2f9=_0x570f49['getAttribute']('id');_0x4b4324=_0x23fb64['getLabel'](_0x26b2f9)||_0x26b2f9;break;}}return'insertion'==_0x6cc18e['type']?{'type':'insertion','content':o(_0x2cbb1c,'*Insert:*\x20%0','\x22'+_0x4b4324+'\x22\x20'+o(_0x2cbb1c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2cbb1c,'*Remove:*\x20%0','\x22'+_0x4b4324+'\x22\x20'+o(_0x2cbb1c,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x40606b{['afterInit'](){const _0x3f2f67=this['editor'],_0x11d105=_0x3f2f67['plugins']['get']('TrackChangesEditing');_0x3f2f67['plugins']['has']('MultiLevelList')&&(_0x11d105['enableDefaultAttributesIntegration']('multiLevelList'),_0x11d105['descriptionFactory']['registerDescriptionCallback'](_0x207440=>this['handleDescriptions'](_0x207440)));}['handleDescriptions'](_0x10edbe){const _0xf6cec3=this['editor']['locale'],{data:_0x5a084f}=_0x10edbe,_0x1e3c80={'type':'format','content':''};if(_0x5a084f&&'listMarkerStyle'==_0x5a084f['key']){if(!_0x5a084f['oldValue'])return{'type':'format','content':o(_0xf6cec3,'*Set\x20format:*\x20%0',o(_0xf6cec3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a084f['newValue']+')'};if(!_0x5a084f['newValue']){let _0x4ac129=_0x10edbe['head'];for(;_0x4ac129;){if(_0x4ac129['data']&&'listType'==_0x4ac129['data']['key']&&_0x4ac129['data']['newValue'])return _0x1e3c80;_0x4ac129=_0x4ac129['next'];}return{'type':'format','content':o(_0xf6cec3,'*Remove\x20format:*\x20%0',o(_0xf6cec3,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5a084f['oldValue']+')'};}}}}class St extends _0x40606b{['afterInit'](){const _0x5db615=this['editor'];if(!_0x5db615['plugins']['has']('PageBreakEditing'))return;_0x5db615['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2a4c1a=_0x5db615['plugins']['get']('TrackChangesEditing'),_0xa78bf8=_0x5db615['locale'];_0x2a4c1a['descriptionFactory']['registerElementLabel']('pageBreak',_0x5e794c=>o(_0xa78bf8,'ELEMENT_PAGE_BREAK',_0x5e794c));}}class It extends _0x40606b{['afterInit'](){const _0x450b8d=this['editor'];if(!_0x450b8d['plugins']['has']('Paragraph'))return;const _0x27e35f=_0x450b8d['locale'],_0x375e0c=_0x450b8d['plugins']['get']('TrackChangesEditing');_0x375e0c['descriptionFactory']['registerElementLabel']('paragraph',_0x2b9260=>o(_0x27e35f,'ELEMENT_PARAGRAPH',_0x2b9260)),_0x375e0c['enableDefaultAttributesIntegration']('paragraph'),_0x375e0c['enableCommand']('insertParagraph');const _0x46a2ee=_0x375e0c['descriptionFactory'];_0x46a2ee['registerDescriptionCallback'](_0x415ceb=>{if('insertion'!==_0x415ceb['type'])return;const {start:_0x3467c6,end:_0xc9a40b}=_0x415ceb['getFirstRange']();if(!_0x3467c6['isTouching'](_0xc9a40b)||!_0x3467c6['nodeAfter'])return;const _0x58f0c7=_0x450b8d['model']['schema'],_0x22d1de=_0x3467c6['nodeAfter'];return _0x58f0c7['isBlock'](_0x22d1de)&&!_0x58f0c7['isLimit'](_0x22d1de)&&_0x58f0c7['checkChild'](_0x22d1de,'$text')?{'type':'insertion','content':o(_0x27e35f,'*Insert:*\x20%0',_0x46a2ee['getItemLabel'](_0x22d1de,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xef97a5=this['editor'],_0x37c93d=_0xef97a5['locale'];_0xef97a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x431524=>{if('formatBlock'!=_0x431524['type'])return;const {data:_0x29b337}=_0x431524;return _0x29b337&&'paragraph'==_0x29b337['commandName']?{'type':'format','content':o(_0x37c93d,'*Change\x20to:*\x20%0',o(_0x37c93d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x40606b{['afterInit'](){const _0x35594d=this['editor'];_0x35594d['commands']['get']('replaceSource')&&_0x35594d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x40606b{['afterInit'](){const _0x541de7=this['editor'];if(!_0x541de7['plugins']['has']('RemoveFormatEditing'))return;_0x541de7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3cdbf=this['editor'];_0xd3cdbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54bde0=>{if('formatBlock'!=_0x54bde0['type']&&'formatInline'!=_0x54bde0['type'])return;const {data:_0x41e8c5}=_0x54bde0;return _0x41e8c5&&'removeFormat'==_0x41e8c5['commandName']?{'type':'format','content':o(_0xd3cdbf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x40606b{['afterInit'](){const _0x353cbb=this['editor'];if(!_0x353cbb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2e3d88=_0x353cbb['plugins']['get']('TrackChangesEditing');_0x2e3d88['enableCommand']('goToPreviousRestrictedEditingException'),_0x2e3d88['enableCommand']('goToNextRestrictedEditingException');const _0x2d0efa=_0x353cbb['plugins']['get']('RestrictedEditingModeEditing');_0x2d0efa['enableCommand']('trackChanges'),_0x2d0efa['enableCommand']('acceptSuggestion'),_0x2d0efa['enableCommand']('discardSuggestion'),_0x2d0efa['enableCommand']('acceptAllSuggestions'),_0x2d0efa['enableCommand']('discardAllSuggestions'),_0x2d0efa['enableCommand']('acceptSelectedSuggestions'),_0x2d0efa['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x40606b{['afterInit'](){const _0x333f4a=this['editor'];if(!_0x333f4a['plugins']['has']('ShiftEnter'))return;const _0x4692f2=_0x333f4a['plugins']['get']('TrackChangesEditing');_0x4692f2['enableCommand']('shiftEnter'),_0x4692f2['descriptionFactory']['registerElementLabel']('softBreak',_0x44d59a=>o(_0x333f4a['locale'],'ELEMENT_LINE_BREAK',_0x44d59a));}}function an(_0x156d71,_0x5c1d02,_0x461238){const _0x683bb0=[];for(const _0x44c66b of _0x5c1d02['getItems']())_0x44c66b['hasAttribute'](_0x156d71)&&_0x683bb0['push'](_0x461238['createRangeOn'](_0x44c66b));return _0x683bb0;}class $t extends _0x40606b{['afterInit'](){const _0x3b5810=this['editor'],_0x22727e=_0x3b5810['plugins']['get']('TrackChangesEditing');_0x3b5810['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x22727e['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1ab194=this['editor'],_0x2e6bd4=_0x1ab194['model'],_0x251c22=_0x1ab194['locale'],_0x376f86=_0x1ab194['plugins']['get']('TrackChangesEditing'),_0x4d046d='restrictedEditingException',_0x201d8b=_0x1ab194['commands']['get'](_0x4d046d);_0x376f86['enableCommand'](_0x4d046d,(_0x2eac48,_0x4e4ee3={})=>{const _0x2581cc=_0x2e6bd4['document']['selection'];if(_0x2581cc['isCollapsed'])return void _0x2eac48(_0x4e4ee3);const _0x160847=void 0x0!==_0x4e4ee3['forceValue']?_0x4e4ee3['forceValue']:!_0x201d8b['value'];_0x2e6bd4['change'](()=>{const _0x25a76b=Array['from'](_0x2581cc['getRanges']());for(const _0x91387e of _0x25a76b){const _0x4168de=_0x160847?[_0x91387e]:an(_0x4d046d,_0x91387e,_0x2e6bd4);for(const _0x1586a6 of _0x4168de)_0x376f86['markInlineFormat'](_0x1586a6,{'commandName':_0x4d046d,'commandParams':[{'forceValue':_0x160847}]});}});}),_0x376f86['descriptionFactory']['registerDescriptionCallback'](_0x433376=>{if('formatBlock'!=_0x433376['type']&&'formatInline'!=_0x433376['type'])return;const {data:_0x140cba}=_0x433376;return _0x140cba&&_0x140cba['commandName']==_0x4d046d?_0x140cba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x251c22,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x251c22,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x54cd63=this['editor'],_0x27a0ec=_0x54cd63['locale'],_0x3be3d4=_0x54cd63['plugins']['get']('TrackChangesEditing'),_0x2c75ec='restrictedEditingExceptionBlock',_0x28f7e1=this['editor']['commands']['get'](_0x2c75ec);_0x3be3d4['enableCommand'](_0x2c75ec,(_0x57707a,_0x125305={})=>{const _0x50fb09=this['editor']['model']['document']['selection'],_0x46d154=_0x125305&&void 0x0!==_0x125305['forceValue']?_0x125305['forceValue']:!_0x28f7e1['value'];let _0x3d97d4=[];if(_0x46d154){const _0x36c045=Array['from'](_0x50fb09['getSelectedBlocks']())['filter'](_0x3a8a91=>function(_0x2a987a){return!!_0x2a987a['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3a8a91)||function(_0x4e415d,_0x3ecaa1){const _0x256854=_0x3ecaa1['createContext'](_0x4e415d['parent']);if(!_0x3ecaa1['checkChild'](_0x256854,'restrictedEditingException'))return!0x1;if(!_0x3ecaa1['checkChild'](_0x256854['push']('restrictedEditingException'),_0x4e415d))return!0x1;return!0x0;}(_0x3a8a91,this['editor']['model']['schema']));_0x3d97d4=to(_0x36c045,_0x54cd63['model']);}else{const _0x500dc5=Array['from'](_0x50fb09['getSelectedBlocks']())['map'](_0x408f80=>function(_0x1cc007){let _0x17c955=_0x1cc007;for(;_0x17c955['parent'];){if('restrictedEditingException'==_0x17c955['parent']['name'])return _0x17c955;_0x17c955=_0x17c955['parent'];}return null;}(_0x408f80))['filter'](_0xed5430=>!!_0xed5430);_0x3d97d4=to(_0x500dc5,_0x54cd63['model']);}_0x54cd63['model']['change'](()=>{for(const _0x39ad9c of _0x3d97d4)_0x3be3d4['markBlockFormat'](_0x39ad9c,{'commandName':_0x2c75ec,'commandParams':[{'forceValue':_0x46d154}]});});}),_0x3be3d4['descriptionFactory']['registerDescriptionCallback'](_0x21a43a=>{const {data:_0x4ecdae}=_0x21a43a;if(_0x4ecdae&&_0x4ecdae['commandName']==_0x2c75ec)return _0x4ecdae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x27a0ec,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x27a0ec,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x40606b{['afterInit'](){const _0x1aecc7=this['editor'];if(!_0x1aecc7['plugins']['has']('Style')||!_0x1aecc7['plugins']['has']('DataSchema'))return;const _0x5a0c9d=_0x1aecc7['plugins']['get']('TrackChangesEditing'),_0x132e5e=_0x1aecc7['locale'],_0x4c627e=_0x1aecc7['config']['get']('style')||{},_0x99e4ad=_0x1aecc7['plugins']['get']('GeneralHtmlSupport'),_0x5bae5b=_0x1aecc7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1aecc7['plugins']['get']('DataSchema'),_0x4c627e['definitions']);_0x5a0c9d['enableDefaultAttributesIntegration']('style');const _0x1adc21=new Set();for(const _0x1298ee of _0x5bae5b['block']){const _0x52a874=_0x99e4ad['getGhsAttributeNameForElement'](_0x1298ee['element']);_0x1adc21['add'](_0x52a874);}const _0x562a4a=new Set();for(const _0x5066ae of _0x5bae5b['inline']){const _0x20ba8c=_0x99e4ad['getGhsAttributeNameForElement'](_0x5066ae['element']);_0x562a4a['add'](_0x20ba8c);for(const _0x54a87e of _0x5066ae['ghsAttributes'])_0x562a4a['add'](_0x54a87e);}for(const _0x745c09 of _0x1adc21)_0x5a0c9d['descriptionFactory']['registerAttributeLabel'](_0x745c09,o(_0x132e5e,'FORMAT_STYLE'));for(const _0x2b3cc7 of _0x562a4a)_0x5a0c9d['descriptionFactory']['registerAttributeLabel'](_0x2b3cc7,o(_0x132e5e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f77c1=this['editor'],_0x588808=_0x1f77c1['locale'];_0x1f77c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdbd204=>{if('formatBlock'!=_0xdbd204['type']&&'formatInline'!=_0xdbd204['type'])return;const {data:_0x31acd1}=_0xdbd204;return _0x31acd1&&'style'===_0x31acd1['commandName']?_0x31acd1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x588808,'*Set\x20format:*\x20%0',_0x31acd1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x588808,'*Remove\x20format:*\x20%0',_0x31acd1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x40606b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4f607e){super(_0x4f607e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x36b903=this['editor'],_0x1c98f2=_0x36b903['model']['document']['selection'];if(!_0x36b903['plugins']['has']('TableEditing'))return;const _0x3e143e=_0x36b903['locale'],_0x5aa8f4=_0x36b903['plugins']['get']('TrackChangesEditing'),_0x1364c8=_0x36b903['plugins']['get']('TableUtils');_0x5aa8f4['descriptionFactory']['registerElementLabel']('table',_0x1f265d=>o(_0x3e143e,'ELEMENT_TABLE',_0x1f265d)),this['_setupColumnsRowsFixing'](),_0x5aa8f4['enableCommand']('insertTable'),_0x5aa8f4['enableCommand']('selectTableRow'),_0x5aa8f4['enableCommand']('selectTableColumn');for(const _0x3ed703 of['insertTableRowAbove','insertTableRowBelow']){const _0x3494b8=_0x36b903['commands']['get'](_0x3ed703);_0x5aa8f4['enableCommand'](_0x3ed703,_0x356ad4=>{_0x36b903['model']['change'](_0x23be46=>{_0x356ad4();const _0x413298='above'===_0x3494b8['order'],_0x4c0b5a=_0x1364c8['getSelectionAffectedTableCells'](_0x1c98f2),_0x41c627=_0x1364c8['getRowIndexes'](_0x4c0b5a),_0x549f1a=_0x413298?_0x41c627['first']-0x1:_0x41c627['last']+0x1,_0x21f0f6=_0x4c0b5a[0x0]['findAncestor']('table'),_0xd02da3=_0x1364c8['createTableWalker'](_0x21f0f6,{'startRow':_0x549f1a,'endRow':_0x549f1a}),_0x4bb807=Array['from'](_0xd02da3)['map'](_0x51b026=>_0x23be46['createRangeOn'](_0x51b026['cell']));_0x5aa8f4['markMultiRangeInsertion'](_0x4bb807,'tableRow');});});}for(const _0x27f07c of['insertTableColumnLeft','insertTableColumnRight']){const _0x53868a=_0x36b903['commands']['get'](_0x27f07c);_0x5aa8f4['enableCommand'](_0x27f07c,_0x30d694=>{_0x36b903['model']['change'](_0x98e703=>{_0x30d694();const _0x3d152c='left'===_0x53868a['order'],_0xede591=_0x1364c8['getSelectionAffectedTableCells'](_0x1c98f2),_0x537af7=_0x1364c8['getColumnIndexes'](_0xede591),_0x15ab73=_0x3d152c?_0x537af7['first']-0x1:_0x537af7['last']+0x1,_0x37047d=_0xede591[0x0]['findAncestor']('table'),_0x371668=_0x1364c8['createTableWalker'](_0x37047d,{'startRow':0x0,'column':_0x15ab73,'includeAllSlots':!0x1}),_0x243ee4=Array['from'](_0x371668)['map'](_0x3220aa=>_0x98e703['createRangeOn'](_0x3220aa['cell']));_0x5aa8f4['markMultiRangeInsertion'](_0x243ee4,'tableColumn');});});}for(const _0x4491d3 of['removeTableRow','removeTableColumn']){const _0x3b1879=_0x4491d3['substr'](0xb),_0x18d15c=_0x3b1879['toLowerCase'](),_0x545fe7=_0x18d15c['substr'](0x0,0x3)+'span',_0x3954f0='table'+_0x3b1879,_0x3a42a1='min'+_0x3b1879,_0xbb8198='max'+_0x3b1879;_0x5aa8f4['enableCommand'](_0x4491d3,()=>{_0x36b903['model']['change'](_0x57862a=>{const _0x3440ca=_0x1364c8['getSelectionAffectedTableCells'](_0x1c98f2),_0xce8259=_0x3440ca[0x0]['findAncestor']('table');let _0x5fa8e2;if('removeTableRow'==_0x4491d3){const _0x544843=_0x1364c8['getRowIndexes'](_0x3440ca);_0x5fa8e2={'startRow':_0x544843['first'],'endRow':_0x544843['last'],'includeAllSlots':!0x0};}else{const _0x4173df=_0x1364c8['getColumnIndexes'](_0x3440ca);_0x5fa8e2={'startColumn':_0x4173df['first'],'endColumn':_0x4173df['last'],'includeAllSlots':!0x0};}const _0x187fd8=_0x1364c8['createTableWalker'](_0xce8259,_0x5fa8e2),_0x41fd0f=Array['from'](_0x187fd8)['map'](({cell:_0x221024})=>_0x221024),_0x495bb9=_e(_0x41fd0f['filter'](_0x5eb7df=>_0x5eb7df['hasAttribute'](_0x545fe7))),_0x36b373=_e(_0x41fd0f['filter'](_0x3afea0=>!_0x3afea0['hasAttribute'](_0x545fe7)))['map'](_0x3997a9=>_0x57862a['createRangeOn'](_0x3997a9)),_0x297408=_0x5aa8f4['markMultiRangeDeletion'](_0x36b373,_0x3954f0);if(_0x297408&&('tableRow'==_0x297408['subType']||'tableColumn'==_0x297408['subType'])){const _0x80d449=this['_getSuggestionCoords'](_0x297408);for(const _0x5b764f of _0x495bb9){const _0x5e331a=_0x57862a['createRangeOn'](_0x5b764f),_0x5c8a68=_0x1364c8['getCellLocation'](_0x5b764f),_0x354507=_0x5b764f['getAttribute'](_0x545fe7)-0x1,_0x10ab07=_0x80d449[_0x3a42a1],_0x1fb801=_0x80d449[_0xbb8198];_0x10ab07<=_0x5c8a68[_0x18d15c]&&_0x5c8a68[_0x18d15c]+_0x354507<=_0x1fb801&&_0x297408['addRange'](_0x5e331a);}}});});}function _0x27a88d(_0x473cd7){const _0x16cf26=Array['from'](_0x1c98f2['getRanges']())['map'](_0x29c875=>_0x2d0a07['fromRange'](_0x29c875));_0x36b903['model']['change'](_0x385f20=>{const _0x3b9676=_0x385f20['batch'];_0x473cd7=_0x473cd7['filter'](_0x4d7592=>'$graveyard'!=_0x4d7592['root']['rootName']),_0x385f20['setSelection'](_0x473cd7),_0x36b903['commands']['get']('removeTableRow')['refresh'](),_0x36b903['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x36b903['model']['enqueueChange'](()=>{_0x36b903['model']['enqueueChange'](_0x3b9676,_0x2ed421=>{const _0x18bc4b=_0x16cf26['filter'](_0x33de33=>'$graveyard'!=_0x33de33['root']['rootName']);_0x18bc4b['length']>0x0&&_0x2ed421['setSelection'](_0x18bc4b);for(const _0x2139ab of _0x16cf26)_0x2139ab['detach']();});});});}function _0x42c6a3(_0x5802a9){_0x36b903['model']['change'](_0x2d9bf8=>{const _0x30248d=Array['from'](_0x1c98f2['getRanges']())['map'](_0x4c8ae2=>_0x2d0a07['fromRange'](_0x4c8ae2)),_0x2e3b8e=[];for(const _0x50f455 of _0x5802a9)for(const _0x4c6d39 of _0x50f455['getItems']({'shallow':!0x0}))_0x2e3b8e['push'](_0x4c6d39);for(const _0x46d46d of _0x2e3b8e)'$graveyard'!=_0x46d46d['root']['rootName']&&(_0x2d9bf8['setSelection'](_0x2d9bf8['createPositionAt'](_0x46d46d,0x0)),_0x36b903['commands']['get']('removeTableColumn')['refresh'](),_0x36b903['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x317f15=_0x30248d['filter'](_0x1b284e=>'$graveyard'!=_0x1b284e['root']['rootName']);_0x317f15['length']>0x0&&_0x2d9bf8['setSelection'](_0x317f15);for(const _0x5b7f63 of _0x30248d)_0x5b7f63['detach']();});}function _0x1fcb56(_0x2b9011,_0x32f3db){return _0x32f3db['every'](_0x112477=>_0x2b9011['some'](_0x519a7b=>_0x519a7b['end']['isEqual'](_0x112477['start'])||_0x112477['end']['isEqual'](_0x519a7b['start'])));}function _0x441517(_0x33de5f,_0x478281){return!_0x33de5f['some'](_0x56c7f3=>_0x478281['some'](_0x2c49a5=>_0x56c7f3['isIntersecting'](_0x2c49a5)))&&_0x33de5f['some'](_0x265d2e=>_0x478281['some'](_0x43d169=>_0x265d2e['end']['isTouching'](_0x43d169['start'])));}_0x5aa8f4['descriptionFactory']['registerDescriptionCallback'](_0x3332da=>{if('insertion'!=_0x3332da['type']&&'deletion'!=_0x3332da['type'])return;const _0x257857=_0x3332da['getContainedElement']();if(null!=_0x257857&&_0x257857['is']('element','table')){if('insertion'==_0x3332da['type']){const _0x4b01e6=_0x3332da['getItems']()['filter'](_0x5cb2ed=>_0x5cb2ed['is']('$textProxy'))['map'](_0x2494ec=>_0x2494ec['data']);if(_0x4b01e6['length'])return{'type':'insertion','content':o(_0x3e143e,'*Insert:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b01e6['join']('\x20')+'\x22'))};}if('deletion'==_0x3332da['type']){const _0x1b4b7a=_0x3332da['getItems']()['filter'](_0x580e89=>_0x580e89['is']('$textProxy'))['map'](_0x27ba1b=>_0x27ba1b['data']);if(_0x1b4b7a['length'])return{'type':'deletion','content':o(_0x3e143e,'*Remove:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b4b7a['join']('\x20')+'\x22'))};}}}),_0x5aa8f4['descriptionFactory']['registerDescriptionCallback'](_0x3efb06=>{if('tableRow'==_0x3efb06['subType']){const _0x35bc38=_0x3efb06['getItems']()['filter'](_0x68c826=>_0x68c826['is']('$textProxy'))['map'](_0x1ba7d4=>_0x1ba7d4['data']),_0x4c4b1c=this['_getSuggestionCoords'](_0x3efb06),_0x3b27ec=_0x4c4b1c['maxRow']-_0x4c4b1c['minRow']+0x1;if('insertion'==_0x3efb06['type'])return _0x35bc38['length']?{'type':'insertion','content':o(_0x3e143e,'*Insert:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3b27ec,'\x22'+_0x35bc38['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3e143e,'*Insert:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_ROW',_0x3b27ec))};if('deletion'==_0x3efb06['type'])return _0x35bc38['length']?{'type':'deletion','content':o(_0x3e143e,'*Remove:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3b27ec,'\x22'+_0x35bc38['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3e143e,'*Remove:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_ROW',_0x3b27ec))};}if('tableColumn'==_0x3efb06['subType']){const _0x4e5dd3=_0x3efb06['getItems']()['filter'](_0x393997=>_0x393997['is']('$textProxy'))['map'](_0x11f374=>_0x11f374['data']),_0x1ea62e=this['_getSuggestionCoords'](_0x3efb06),_0x73045a=_0x1ea62e['maxColumn']-_0x1ea62e['minColumn']+0x1;if('insertion'==_0x3efb06['type'])return _0x4e5dd3['length']?{'type':'insertion','content':o(_0x3e143e,'*Insert:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x73045a,'\x22'+_0x4e5dd3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3e143e,'*Insert:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_COLUMN',_0x73045a))};if('deletion'==_0x3efb06['type'])return _0x4e5dd3['length']?{'type':'deletion','content':o(_0x3e143e,'*Remove:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x73045a,'\x22'+_0x4e5dd3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3e143e,'*Remove:*\x20%0',o(_0x3e143e,'ELEMENT_TABLE_COLUMN',_0x73045a))};}}),_0x5aa8f4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x27a88d),_0x5aa8f4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x27a88d),_0x5aa8f4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42c6a3),_0x5aa8f4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42c6a3),_0x5aa8f4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1fcb56),_0x5aa8f4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1fcb56),_0x5aa8f4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x441517),_0x5aa8f4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x441517);}['_acceptFormatSuggestionCallbackFactory'](){const _0x13e050=this['editor'],_0x4fb5d7=_0x13e050['model']['document']['selection'];return(_0x28c7fb,_0x51dfef)=>{_0x13e050['model']['change'](_0x26eae9=>{const {commandName:_0x3876e5,commandParams:_0x230d44}=_0x51dfef;let _0x223bee=_0x28c7fb[0x0]['end']['nodeBefore'];_0x230d44&&_0x230d44[0x0]&&!0x1===_0x230d44[0x0]['forceValue']&&(_0x223bee=_0x28c7fb[0x0]['start']['nodeAfter']);const _0x3610fe=_0x26eae9['createRangeIn'](_0x223bee);if('$graveyard'==_0x3610fe['root']['rootName'])return;const _0x4396fa=Array['from'](_0x4fb5d7['getRanges']())['map'](_0x5b8d9d=>_0x2d0a07['fromRange'](_0x5b8d9d));_0x26eae9['setSelection'](_0x3610fe),_0x13e050['commands']['get'](_0x3876e5)['refresh'](),_0x230d44['push']({'forceDefaultExecution':!0x0}),_0x13e050['execute'](_0x3876e5,..._0x230d44);const _0x1eded7=_0x4396fa['filter'](_0x275f73=>'$graveyard'!=_0x275f73['root']['rootName']);_0x1eded7['length']>0x0&&_0x26eae9['setSelection'](_0x1eded7);for(const _0x6e7af1 of _0x4396fa)_0x6e7af1['detach']();});};}['_getCoordsForCells'](_0x29ace9){const _0x417bc1=this['editor']['plugins']['get']('TableUtils');let _0x5a7a8e=Number['MAX_SAFE_INTEGER'],_0x4da3be=Number['MIN_SAFE_INTEGER'],_0xfd2333=Number['MAX_SAFE_INTEGER'],_0x322de0=Number['MIN_SAFE_INTEGER'];for(const _0x2dddeb of _0x29ace9){if('$graveyard'==_0x2dddeb['root']['rootName'])continue;const {row:_0x1985c3,column:_0x4707dd}=_0x417bc1['getCellLocation'](_0x2dddeb),_0x18f463=_0x2dddeb['hasAttribute']('rowspan')?_0x2dddeb['getAttribute']('rowspan')-0x1:0x0,_0x5ae546=_0x2dddeb['hasAttribute']('colspan')?_0x2dddeb['getAttribute']('colspan')-0x1:0x0;_0x5a7a8e=_0x1985c3<_0x5a7a8e?_0x1985c3:_0x5a7a8e,_0x4da3be=_0x1985c3+_0x18f463>_0x4da3be?_0x1985c3+_0x18f463:_0x4da3be,_0xfd2333=_0x4707dd<_0xfd2333?_0x4707dd:_0xfd2333,_0x322de0=_0x4707dd+_0x5ae546>_0x322de0?_0x4707dd+_0x5ae546:_0x322de0;}return{'minRow':_0x5a7a8e,'maxRow':_0x4da3be,'minColumn':_0xfd2333,'maxColumn':_0x322de0};}['_setupColumnsRowsFixing'](){const _0x5163c7=this['editor'],_0x363cb0=_0x5163c7['plugins']['get']('TrackChangesEditing'),_0x5ce4a4=_0x5163c7['plugins']['get']('TableUtils');_0x5163c7['model']['document']['on']('change:data',()=>{const _0xe22f7f=Array['from'](_0x5163c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x447142,data:_0x74a3c2}of _0xe22f7f){const {group:_0x31fd73,id:_0x90aad6,subType:_0x2180c4}=_0x363cb0['_splitMarkerName'](_0x447142);if('suggestion'!=_0x31fd73)continue;if(null!=_0x74a3c2['oldRange'])continue;const _0x545931=_0x363cb0['getSuggestion'](_0x90aad6);this['_tablePostFixingSubtypes']['includes'](_0x2180c4)&&this['_tableSuggestions']['add'](_0x545931);}},{'priority':'low'});const _0x7cb1cf=(_0x53f269,_0xd0a6c3)=>{let _0x4a5d75=!0x1;const _0x382cda=_0xd0a6c3['createRangeOn'](_0x53f269),_0x381744=_0x53f269['findAncestor']('table'),_0x5596da=_0x5ce4a4['getCellLocation'](_0x53f269);for(const _0x1a3c50 of this['_tableSuggestions']){const _0x5286bb=_0x1a3c50['subType'],_0x68c4de=_0x5286bb['startsWith']('tablePaste'),_0x493548=_0x5286bb['substr'](_0x68c4de?0xa:0x5),_0x17411b=_0x493548['toLowerCase'](),_0x2755f5=_0x17411b['substr'](0x0,0x3)+'span',_0x4d6615='min'+_0x493548,_0x20ac3f='max'+_0x493548;if(!_0x1a3c50['isInContent'])continue;if(_0x381744!=_0x1a3c50['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1a3c50['isIntersectingWithRange'](_0x382cda))continue;const _0x39f0cc=_0x53f269['hasAttribute'](_0x2755f5)?_0x53f269['getAttribute'](_0x2755f5)-0x1:0x0,_0x2b42c9=this['_getSuggestionCoords'](_0x1a3c50),_0x406896=_0x2b42c9[_0x4d6615],_0x1027bb=_0x2b42c9[_0x20ac3f];_0x406896<=_0x5596da[_0x17411b]&&_0x5596da[_0x17411b]+_0x39f0cc<=_0x1027bb&&(_0x1a3c50['addRange'](_0x382cda),_0x4a5d75=!0x0);}return _0x4a5d75;};_0x5163c7['model']['document']['registerPostFixer'](_0x13866c=>{let _0x27ee4a=!0x1;for(const _0x264d5e of _0x5163c7['model']['document']['differ']['getChanges']())if('insert'==_0x264d5e['type']){if('tableRow'==_0x264d5e['name']){for(const _0x219e92 of _0x264d5e['position']['nodeAfter']['getChildren']())_0x27ee4a=_0x27ee4a||_0x7cb1cf(_0x219e92,_0x13866c);}else'tableCell'==_0x264d5e['name']&&(_0x27ee4a=_0x27ee4a||_0x7cb1cf(_0x264d5e['position']['nodeAfter'],_0x13866c));}return _0x27ee4a;});}['_getSuggestionCoords'](_0x7715c4){return this['_getCoordsForCells'](_0x7715c4['getRanges']()['map'](_0x3b2708=>_0x3b2708['start']['nodeAfter']));}}function _e(_0x113dfc){return Array['from'](new Set(_0x113dfc)['values']());}class Bt extends _0x40606b{static get['requires'](){return[Dt];}['afterInit'](){const _0x4f1fe3=this['editor'],_0x3c251c=_0x4f1fe3['model']['document']['selection'],_0x410f0d=_0x4f1fe3['locale'];if(!_0x4f1fe3['plugins']['has']('TableEditing'))return;const _0x1ddd84=_0x4f1fe3['plugins']['get']('TrackChangesEditing'),_0x2455ce=_0x4f1fe3['plugins']['get']('TableUtils'),_0x3f0590=_0x4f1fe3['plugins']['get'](Dt);_0x3f0590['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ddd84['enableCommand']('mergeTableCells',()=>{const _0x28983f=_0x2455ce['getSelectionAffectedTableCells'](_0x4f1fe3['model']['document']['selection']);_0x4f1fe3['model']['change'](()=>{_0x1ddd84['markMultiRangeBlockFormat'](_0x28983f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4f1fe3['commands']['get']('mergeTableCells')['on']('execute',(_0x3e9d39,_0x4833c1)=>{_0x4f1fe3['commands']['get']('trackChanges')['value']&&(_0x4833c1['length']>0x0&&_0x4833c1[_0x4833c1['length']-0x1]&&_0x4833c1[_0x4833c1['length']-0x1]['forceDefaultExecution']||_0x1ddd84['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3e9d39['stop']());},{'priority':'highest'});for(const _0x3c15ca of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x29f470=_0x4f1fe3['commands']['get'](_0x3c15ca);_0x1ddd84['enableCommand'](_0x3c15ca,()=>{const _0x30cba8=_0x4f1fe3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4723bb=>_0x4723bb['is']('element','tableCell')),_0x112c4a=_0x29f470['value'];_0x4f1fe3['model']['change'](()=>{_0x1ddd84['markMultiRangeBlockFormat']([_0x30cba8,_0x112c4a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2bd3b8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x16175c=_0x4f1fe3['commands']['get'](_0x2bd3b8);_0x1ddd84['enableCommand'](_0x2bd3b8,()=>{const _0xbf3969=_0x2455ce['getSelectionAffectedTableCells'](_0x4f1fe3['model']['document']['selection'])[0x0],_0xb83521=_0xbf3969['findAncestor']('table'),{column:_0x27a4ca,row:_0x1d3a5f}=_0x2455ce['getCellLocation'](_0xbf3969);let _0x583d16=[];if('horizontally'==_0x16175c['direction']){const _0x1fe425=_0x2455ce['createTableWalker'](_0xb83521,{'startRow':_0x1d3a5f,'endRow':_0x1d3a5f,'includeAllSlots':!0x0});_0x583d16=Array['from'](_0x1fe425)['map'](_0x540cad=>_0x540cad['cell']);}else{const _0x37a9b7=_0x2455ce['createTableWalker'](_0xb83521,{'column':_0x27a4ca,'includeAllSlots':!0x0});_0x583d16=Array['from'](_0x37a9b7)['map'](_0x19b04f=>_0x19b04f['cell']);}_0x4f1fe3['model']['change'](_0x2a7dfa=>{_0x1ddd84['markBlockFormat'](_0x2a7dfa['createRangeOn'](_0xbf3969),{'commandName':_0x2bd3b8,'commandParams':[]},_0x583d16,_0x2bd3b8);});});}_0x1ddd84['descriptionFactory']['registerDescriptionCallback'](_0x2d1c3c=>{if('formatBlock'!=_0x2d1c3c['type']&&'formatInline'!=_0x2d1c3c['type'])return;const {data:_0x110f11}=_0x2d1c3c;return _0x110f11&&'mergeTableCells'==_0x110f11['commandName']?{'type':'format','content':o(_0x410f0d,'*Merge\x20cells*')}:void 0x0;}),_0x1ddd84['descriptionFactory']['registerDescriptionCallback'](_0x387c02=>{if('formatBlock'!=_0x387c02['type']&&'formatInline'!=_0x387c02['type'])return;const {data:_0xf2c755}=_0x387c02;return _0xf2c755?'splitTableCellVertically'==_0xf2c755['commandName']?{'type':'format','content':o(_0x410f0d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xf2c755['commandName']?{'type':'format','content':o(_0x410f0d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x314c08=_0x3f0590['_acceptFormatSuggestionCallbackFactory']();for(const _0x41aef5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ddd84['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41aef5,'accept',_0x314c08);for(const _0x149922 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ddd84['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x149922,'accept',_0x314c08);_0x1ddd84['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x312553=>{_0x4f1fe3['model']['change'](_0x3ab3c4=>{const _0x4826be=Array['from'](_0x3c251c['getRanges']())['map'](_0x3c26eb=>_0x2d0a07['fromRange'](_0x3c26eb));_0x3ab3c4['setSelection'](_0x312553),_0x4f1fe3['commands']['get']('mergeTableCells')['refresh'](),_0x4f1fe3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x73f9ef=_0x4826be['filter'](_0x140103=>'$graveyard'!=_0x140103['root']['rootName']);_0x73f9ef['length']>0x0&&_0x3ab3c4['setSelection'](_0x73f9ef);for(const _0xe0ec6f of _0x4826be)_0xe0ec6f['detach']();});});for(const _0x27884f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x18ec13=_0x4f1fe3['commands']['get'](_0x27884f);_0x18ec13['on']('set:isEnabled',(_0x1fd38c,_0x18cb9a,_0x21f568)=>{if(_0x21f568){const _0x42dffb=_0x4f1fe3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x513db9=>_0x513db9['is']('element','tableCell'));this['_areMergableCells'](_0x18ec13['value'],_0x42dffb)||(_0x1fd38c['return']=!0x1,_0x1fd38c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2c123b=this['editor']['commands']['get']('mergeTableCells'),_0x44985b=this['editor']['plugins']['get']('TableUtils');if(!_0x2c123b['isEnabled'])return!0x1;const _0x5c1720=_0x44985b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x594cc6 of _0x5c1720)for(const _0x4ae319 of _0x5c1720)if(_0x594cc6!=_0x4ae319&&!this['_areMergableCells'](_0x594cc6,_0x4ae319))return!0x1;return!0x0;}['_areMergableCells'](_0x46cb5a,_0x3916f6){const _0x4f9203=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20b3f3=this['editor']['model']['createRangeOn'](_0x46cb5a),_0x310ad2=this['editor']['model']['createRangeOn'](_0x3916f6),_0x22d39d=new Set(),_0x1efddb=new Set();for(const _0x5f3fe7 of _0x4f9203['getSuggestions']())if(('insertion'==_0x5f3fe7['type']||'deletion'==_0x5f3fe7['type']||'mergeTableCells'==_0x5f3fe7['subType'])&&_0x5f3fe7['isInContent']){for(const _0x3c1b9e of _0x5f3fe7['getRanges']())_0x3c1b9e['containsRange'](_0x20b3f3,!0x0)&&_0x22d39d['add'](_0x5f3fe7['type']+':'+_0x5f3fe7['author']['id']),_0x3c1b9e['containsRange'](_0x310ad2,!0x0)&&_0x1efddb['add'](_0x5f3fe7['type']+':'+_0x5f3fe7['author']['id']);}if(_0x22d39d['size']!=_0x1efddb['size'])return!0x1;for(const _0x1eb058 of _0x22d39d)if(!_0x1efddb['has'](_0x1eb058))return!0x1;return!0x0;}}class Ot extends _0x40606b{static get['requires'](){return[Dt];}['afterInit'](){const _0x49faa7=this['editor'];if(!_0x49faa7['plugins']['has']('TableEditing'))return;const _0x356abe=_0x49faa7['locale'],_0x23dd9d=_0x49faa7['plugins']['get']('TrackChangesEditing');_0x23dd9d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x23dd9d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x23dd9d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x356abe,'FORMAT_HEADER_ROW')),_0x23dd9d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x356abe,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3bc93a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x642a78=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x3bc93a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x642a78),_0x3bc93a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x642a78),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x18e6df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cb441=this['editor']['plugins']['get']('TableUtils');function _0x2cc348({showActiveMarker:_0x343b7e=!0x0,setDataAttribute:_0x42da48=!0x0}={}){return(_0x282378,_0x4e627f,_0x463e24)=>{const {type:_0x3c56d2,id:_0xa82948}=_0x18e6df['_splitMarkerName'](_0x4e627f['markerName']);if(!_0x18e6df['hasSuggestion'](_0xa82948))return;const _0x2fe1fd=_0x18e6df['getSuggestion'](_0xa82948),_0x53fd05=_0x2fe1fd['data'];if('formatBlock'!=_0x2fe1fd['type']||!_0x53fd05||'setTableColumnHeader'!=_0x53fd05['commandName'])return;if(_0x4e627f['item'])return void _0x282378['stop']();if(!_0x463e24['consumable']['consume'](_0x4e627f['markerRange'],_0x282378['name']))return;const _0x3e1ce4=_0x4e627f['markerRange']['start']['nodeAfter'],_0x2ff056=_0x4e627f['markerRange']['end']['nodeBefore'],_0x31b4f2=_0x3e1ce4['parent']['parent'],{column:_0x31e983}=_0x2cb441['getCellLocation'](_0x3e1ce4),{column:_0x30ac46}=_0x2cb441['getCellLocation'](_0x2ff056);for(let _0x20866d=_0x31e983;_0x20866d<=_0x30ac46;_0x20866d++){const _0x424d14=_0x2cb441['createTableWalker'](_0x31b4f2,{'column':_0x20866d,'includeAllSlots':!0x1});for(const _0x17287c of _0x424d14){const _0x40e7bf=_0x17287c['cell'],_0x205ef8=_0x463e24['mapper']['toViewElement'](_0x40e7bf);_0x463e24['writer']['addClass']('ck-suggestion-marker-'+_0x3c56d2,_0x205ef8),_0x42da48&&_0x463e24['writer']['setAttribute']('data-suggestion',_0xa82948,_0x205ef8),_0x463e24['mapper']['bindElementToMarker'](_0x205ef8,_0x4e627f['markerName']),_0x343b7e&&(_0x18e6df['activeMarkers']['includes'](_0x4e627f['markerName'])?_0x463e24['writer']['addClass']('ck-suggestion-marker--active',_0x205ef8):_0x463e24['writer']['removeClass']('ck-suggestion-marker--active',_0x205ef8));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2cc348(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3b6b6b,_0x23add4,_0x39ed65)=>{_0x39ed65['options']['showSuggestionHighlights']&&_0x2cc348({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3b6b6b,_0x23add4,_0x39ed65);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x52b3aa,_0x18e440,_0x30daf0)=>{const {type:_0x4903d2,id:_0x1f4eb2}=_0x18e6df['_splitMarkerName'](_0x18e440['markerName']);if(!_0x18e6df['hasSuggestion'](_0x1f4eb2))return;const _0x1876d6=_0x18e6df['getSuggestion'](_0x1f4eb2),_0x233903=_0x1876d6['data'];if('formatBlock'!=_0x1876d6['type']||!_0x233903||'setTableColumnHeader'!=_0x233903['commandName'])return;const _0x4e6157=_0x30daf0['mapper']['markerNameToElements'](_0x18e440['markerName']);if(_0x4e6157){for(const _0x365b98 of _0x4e6157)_0x30daf0['writer']['removeClass']('ck-suggestion-marker-'+_0x4903d2,_0x365b98),_0x30daf0['writer']['removeClass']('ck-suggestion-marker--active',_0x365b98),_0x30daf0['writer']['removeAttribute']('data-suggestion',_0x365b98),_0x30daf0['mapper']['unbindElementFromMarkerName'](_0x365b98,_0x18e440['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4e2d39=this['editor'],_0x2ab8cf=_0x4e2d39['locale'];function _0x5da0d3(_0x5bb6d9){return{'type':'format','content':o(_0x2ab8cf,'*Format:*\x20%0',_0x5bb6d9)};}_0x4e2d39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21f6eb=>{if('formatBlock'!=_0x21f6eb['type'])return;const {data:_0x58b3e1}=_0x21f6eb;if(_0x58b3e1){if('setTableRowHeader'==_0x58b3e1['commandName']){const _0x399c41=_0x58b3e1['commandParams'][0x0]['forceValue'];return _0x5da0d3(o(_0x2ab8cf,_0x399c41?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x58b3e1['commandName']){const _0x346b88=_0x58b3e1['commandParams'][0x0]['forceValue'];return _0x5da0d3(o(_0x2ab8cf,_0x346b88?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x40606b{['afterInit'](){const _0xa1c2d2=this['editor'],_0x5702b2=_0xa1c2d2['locale'],_0x164775=_0xa1c2d2['plugins']['get']('TrackChangesEditing');function _0x10a168(_0x472548){return{'type':'format','content':''+o(_0x5702b2,'*Set\x20table\x20type:*\x20%0',_0x472548)};}_0xa1c2d2['plugins']['has']('TableLayout')&&(_0x164775['enableCommand']('insertTableLayout'),_0x164775['enableDefaultAttributesIntegration']('tableType'),_0x164775['descriptionFactory']['registerElementLabel'](_0x5b80e6=>_0x5b80e6['is']('element','table')&&'layout'===_0x5b80e6['getAttribute']('tableType'),_0x46826b=>o(_0x5702b2,'ELEMENT_LAYOUT_TABLE',_0x46826b)),_0x164775['descriptionFactory']['registerDescriptionCallback'](_0x234984=>{const {data:_0x394c6e}=_0x234984;if(_0x394c6e&&'tableType'==_0x394c6e['key'])switch(_0x394c6e['newValue']){case'layout':return _0x10a168(o(_0x5702b2,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x10a168(o(_0x5702b2,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x44a8f7=>[_0x44a8f7,null]));class Mt extends _0x40606b{static get['requires'](){return[Dt];}['afterInit'](){const _0x410080=this['editor'];if(!_0x410080['plugins']['has']('TableClipboard'))return;const _0x546075=_0x410080['plugins']['get']('TrackChangesEditing'),_0xa168a2=_0x410080['plugins']['get']('TableUtils'),_0x586c53=_0x410080['plugins']['get'](Dt),_0x3be4a5=_0x410080['plugins']['get']('TableClipboard'),_0x522b3=_0x410080['plugins']['get']('TableSelection'),_0x38400c=_0x410080['plugins']['get'](_0x2dc0e9);_0x586c53['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x410080['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x410080['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x23e991=null,_0x2e7097=!0x1;_0x38400c['on']('contentInsertion',(_0x35457e,_0x22c081)=>{_0x2e7097='paste'===_0x22c081['method'];}),_0x410080['model']['on']('insertContent',(_0x41039f,_0x36d49d)=>{if(!_0x2e7097&&null===_0x522b3['getSelectedTableCells']())return;const [_0x159180,_0x3c9b65]=_0x36d49d,_0x54ccb0=_0x36d49d[_0x36d49d['length']-0x1];_0x54ccb0&&_0x54ccb0['forceDefaultExecution']||_0x546075['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2e50f5,_0x4efbd3,_0x593719,_0x32f479,_0x12dda5){if(_0x4efbd3&&!_0x4efbd3['is']('documentSelection'))return!0x1;const _0x5f2758=_0x12dda5['getTableIfOnlyTableInContent'](_0x2e50f5,_0x593719);if(!_0x5f2758||!Oe(_0x5f2758,void 0x0,_0x32f479))return!0x1;const _0x39fdcf=_0x32f479['getSelectionAffectedTableCells'](_0x593719['document']['selection']);if(!_0x39fdcf['length'])return!0x1;const _0x27c85a=_0x39fdcf[0x0]['findAncestor']('table'),_0x249bf2=_0x32f479['getRowIndexes'](_0x39fdcf),_0x57b6bf=_0x32f479['getColumnIndexes'](_0x39fdcf),_0x3364a7={'startRow':_0x249bf2['first'],'endRow':_0x249bf2['last'],'startColumn':_0x57b6bf['first'],'endColumn':_0x57b6bf['last']};return 0x1==_0x39fdcf['length']&&(_0x3364a7['endRow']+=_0x32f479['getRows'](_0x5f2758)-0x1,_0x3364a7['endColumn']+=_0x32f479['getColumns'](_0x5f2758)-0x1),Oe(_0x27c85a,_0x3364a7,_0x32f479);}(_0x159180,_0x3c9b65,_0x410080['model'],_0xa168a2,_0x3be4a5)&&(_0x41039f['stop'](),_0x23e991={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x410080['model']['change'](()=>{_0x410080['model']['insertContent'](_0x36d49d[0x0],_0x36d49d[0x1],_0x36d49d[0x2],{'forceDefaultExecution':!0x0});const _0x11f86=_0x186142(),{rowInsertionRanges:_0x3b501d,columnInsertionRanges:_0x36d95d,insertionRanges:_0x34357b,deletionRanges:_0x3c0292,cells:_0x363d1c}=_0x23e991;_0x3b501d['length']&&_0x546075['markMultiRangeInsertion'](_0x3b501d,'tablePasteRow',{'tablePasteChainId':_0x11f86}),_0x36d95d['length']&&_0x546075['markMultiRangeInsertion'](_0x36d95d,'tablePasteColumn',{'tablePasteChainId':_0x11f86}),_0x34357b['length']&&(_0x546075['markMultiRangeInsertion'](_0x34357b,'tablePaste',{'tablePasteChainId':_0x11f86,'skipNestingCheck':!0x0}),_0x34357b['forEach'](_0xd2e1c6=>_0xd2e1c6['detach']?.())),_0x3c0292['length']&&(_0x546075['markMultiRangeDeletion'](_0x3c0292,'tablePaste',{'tablePasteChainId':_0x11f86,'skipNestingCheck':!0x0}),_0x3c0292['forEach'](_0x3b8f42=>_0x3b8f42['detach']?.()));const _0x2a9453=_0x546075['markMultiRangeBlockFormat'](_0x363d1c['map'](({element:_0x13a558})=>_0x13a558),{'formatGroupId':_0x186142()},[],'tablePasteCell',{'tablePasteChainId':_0x11f86});if(_0x2a9453){const _0x50b9c5=_0x2a9453['getMarkers'](),_0xc79546=[];for(const {element:_0x2be9e5,attributes:_0x5ec41f}of _0x363d1c){if(!_0x5ec41f)continue;const _0x10d769=_0x410080['model']['createRangeOn'](_0x2be9e5),_0x38f297=_0x50b9c5['find'](_0x2d5ea8=>_0x2d5ea8['getRange']()['isEqual'](_0x10d769));_0x38f297&&_0xc79546['push']([_0x38f297['name'],_0x5ec41f]);}_0xc79546['length']&&_0x2a9453['setAttribute']('markerAttributes',Object['fromEntries'](_0xc79546));}_0x23e991=null;}));},{'priority':_0x449b90['high']+0xa}),_0x38400c['on']('contentInsertion',()=>{_0x2e7097=!0x1;},{'priority':'lowest'}),_0x410080['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x36a3c8,_0x4d02fb)=>{const [_0x588cc2,_0x22afc1,,_0x277807]=_0x4d02fb;if(!_0x23e991)return;_0x36a3c8['stop']();const _0xdb6bce=_0x588cc2['cell'],_0x46d118=_0x22afc1,_0x353466=Be(_0xdb6bce),_0x67df72=Be(_0x46d118);_0x36a3c8['return']=_0xdb6bce;let _0x17b524=null,_0x37833c=null;if(_0x67df72||_0x353466){if(_0x353466&&!_0x67df72){_0x277807['remove'](_0xdb6bce['getChild'](0x0));for(const _0x20eafb of Array['from'](_0x46d118['getChildren']()))_0x277807['insert'](_0x20eafb,_0xdb6bce,'end');const _0x1c2e02=_0x23e991['rowInsertionIndexes']['includes'](_0x588cc2['row']),_0x52ed04=_0x23e991['columnInsertionIndexes']['includes'](_0x588cc2['column']);_0x1c2e02||_0x52ed04||(_0x17b524=_0x2d0a07['fromRange'](_0x277807['createRangeIn'](_0xdb6bce)));}else _0x67df72&&!_0x353466&&(_0x37833c=_0x277807['createRangeIn'](_0xdb6bce));}else{const _0x4774ee=_0x277807['createElement']('tableCellSuggestion'),_0x557d2d=_0x277807['createElement']('tableCellSuggestion');_0x277807['wrap'](_0x277807['createRangeIn'](_0xdb6bce),_0x557d2d),_0x277807['insert'](_0x4774ee,_0xdb6bce,0x0);for(const _0x3006d6 of Array['from'](_0x46d118['getChildren']()))_0x277807['insert'](_0x3006d6,_0x4774ee,'end');_0x17b524=_0x2d0a07['fromRange'](_0x277807['createRangeOn'](_0x4774ee)),_0x37833c=_0x2d0a07['fromRange'](_0x277807['createRangeOn'](_0x557d2d));}const _0x46ddf9=Array['from'](_0x46d118['getAttributes']())['filter'](([_0x57b349])=>Re['includes'](_0x57b349));_0x23e991['cells']['push']({'element':_0xdb6bce,'attributes':_0x46ddf9['length']?Object['fromEntries'](_0x46ddf9):null}),_0x17b524&&_0x23e991['insertionRanges']['push'](_0x17b524),_0x37833c&&_0x23e991['deletionRanges']['push'](_0x37833c);},{'priority':'high'}),_0xa168a2['on']('insertColumns',(_0xfc1677,_0x2c24ef)=>{const [_0x308f25,_0xd40d37={}]=_0x2c24ef;if(!_0x23e991)return;const _0x55f4a5=_0xd40d37['at']||0x0,_0x18db7c=_0xd40d37['columns']||0x1;_0x23e991['columnInsertionIndexes']=new Array(_0x18db7c)['fill'](_0x55f4a5)['map']((_0x5b7e9e,_0x580dd5)=>_0x5b7e9e+_0x580dd5);for(const {cell:_0x3ac575}of _0xa168a2['createTableWalker'](_0x308f25,{'startColumn':_0x55f4a5,'endColumn':_0x55f4a5+_0x18db7c-0x1}))_0x23e991['columnInsertionRanges']['push'](_0x410080['model']['createRangeOn'](_0x3ac575));},{'priority':'low'}),_0xa168a2['on']('insertRows',(_0x5873c7,_0x3192ba)=>{const [_0x56bf4b,_0x3e73ae={}]=_0x3192ba;if(!_0x23e991)return;const _0x3412b6=_0x3e73ae['at']||0x0,_0x2d642e=_0x3e73ae['rows']||0x1;_0x23e991['rowInsertionIndexes']=new Array(_0x2d642e)['fill'](_0x3412b6)['map']((_0x430255,_0x3ad5f5)=>_0x430255+_0x3ad5f5);for(const {cell:_0x3a7310}of _0xa168a2['createTableWalker'](_0x56bf4b,{'startRow':_0x3412b6,'endRow':_0x3412b6+_0x2d642e-0x1}))_0x23e991['rowInsertionRanges']['push'](_0x410080['model']['createRangeOn'](_0x3a7310));},{'priority':'low'}),_0x546075['descriptionFactory']['registerDescriptionCallback'](_0x31d946=>{if(_0x31d946['subType']&&_0x31d946['subType']['startsWith']('tablePaste'))return _0x31d946['previous']?{}:{'type':'insertion','content':o(_0x410080['locale'],'*Replace\x20table\x20cells*')};});const _0x28beb2=()=>!0x1;for(const _0x1e9573 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x546075['_suggestionFactory']['registerCustomCallback']('insertion',_0x1e9573,'join',_0x28beb2),_0x546075['_suggestionFactory']['registerCustomCallback']('deletion',_0x1e9573,'join',_0x28beb2),_0x546075['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e9573,'join',_0x28beb2);_0x546075['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x28beb2),_0x546075['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x19d01b,_0x3fb39e,_0x58f552)=>{const _0x198ebb=_0x19d01b['map'](_0x3f2d26=>_0x3f2d26['getContainedElement']())['filter'](_0x47d2e7=>_0x47d2e7),_0x674a28=new Map(_0x198ebb['map'](_0x29f046=>[_0x29f046,null]));if(_0x23e991){for(const {element:_0x17e2b3,attributes:_0x10daa1}of _0x23e991['cells'])_0x10daa1&&_0x674a28['set'](_0x17e2b3,_0x10daa1);}else{if(_0x58f552&&_0x58f552['markerAttributes'])for(const [_0x179a8d,_0x5bc978]of Object['entries'](_0x58f552['markerAttributes'])){const _0x209fc5=_0x410080['model']['markers']['get'](_0x179a8d),_0x374ff5=_0x209fc5?_0x209fc5['getRange']()['getContainedElement']():null;_0x374ff5&&_0x674a28['set'](_0x374ff5,_0x5bc978);}}_0x410080['model']['change'](_0x56358d=>{for(const [_0x1d6f61,_0x249979]of _0x674a28)_0x56358d['setAttributes']({...Ae,..._0x249979},_0x1d6f61);});});const _0x5a4cbd=(_0x55d8c9,_0x433b55)=>{_0x546075['_suggestionFactory']['registerCustomCallback'](_0x55d8c9,'tablePaste',_0x433b55,(_0x5dca57,_0xdb81af,_0x494ac6)=>{_0x410080['model']['change'](_0x344ac1=>{const _0x39f97a=[];for(const _0x199e1a of _0x5dca57){const _0x178a6c=_0x199e1a['start']['nodeAfter'];_0x178a6c['is']('element','tableCellSuggestion')&&_0x39f97a['push'](_0x178a6c);}_0x546075['_suggestionFactory']['getSuggestionCallback'](_0x55d8c9,null,_0x433b55)(_0x5dca57,_0xdb81af,_0x494ac6);for(const _0x316b34 of _0x39f97a)'$graveyard'!=_0x316b34['root']['rootName']&&_0x344ac1['unwrap'](_0x316b34);});});};_0x5a4cbd('insertion','accept'),_0x5a4cbd('insertion','discard'),_0x5a4cbd('deletion','accept'),_0x5a4cbd('deletion','discard'),_0x546075['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5beba4=>{const _0x14a332=_0x5beba4['map'](_0x54ea0b=>_0x54ea0b['getContainedElement']()),_0x2ed0a=_0x14a332[0x0]['findAncestor']('table'),{minRow:_0x5728c4,maxRow:_0x5763a7}=_0x586c53['_getCoordsForCells'](_0x14a332);_0xa168a2['removeRows'](_0x2ed0a,{'at':_0x5728c4,'rows':_0x5763a7-_0x5728c4+0x1});}),_0x546075['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x193dbd=>{const _0x467dd8=_0x193dbd['map'](_0x229190=>_0x229190['getContainedElement']()),_0x25ac50=_0x467dd8[0x0]['findAncestor']('table'),{minColumn:_0x3baef9,maxColumn:_0x59a155}=_0x586c53['_getCoordsForCells'](_0x467dd8);_0xa168a2['removeColumns'](_0x25ac50,{'at':_0x3baef9,'columns':_0x59a155-_0x3baef9+0x1});});const _0x524992=(_0x3b8b53,_0x56e455)=>{if(!_0x56e455['subType']||!_0x56e455['subType']['startsWith']('tablePaste'))return;const _0x5e6fa7=_0x56e455['attributes']['tablePasteChainId'],_0x4a3bc9=_0x546075['getSuggestions']()['filter'](_0x11a913=>_0x11a913['isInContent']&&_0x11a913['attributes']&&_0x11a913['attributes']['tablePasteChainId']==_0x5e6fa7);_0x4a3bc9['length']&&_0x56e455['getAllAdjacentSuggestions']()['length']!=_0x4a3bc9['length']&&_0x4a3bc9['reduce']((_0x10443b,_0xc4fb3)=>(_0x10443b['next']=_0xc4fb3,_0xc4fb3['previous']=_0x10443b,_0xc4fb3));};function _0x2652c2(_0x331da5,_0x59ecde=!0x0){const {id:_0x585052,authorId:_0x23f294}=_0x546075['_splitMarkerName'](_0x331da5['markerName']),_0x1e7376=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5c9603=_0x546075['activeMarkers']['includes'](_0x331da5['markerName']);return _0x5c9603&&_0x1e7376['push']('ck-suggestion-marker--active'),{'classes':_0x1e7376,'attributes':{'data-suggestion':_0x585052,'data-author-id':_0x23f294},'priority':_0x5c9603&&_0x59ecde?0xbc2:0xbb8};}_0x546075['on']('suggestionLoaded',_0x524992,{'priority':'high'}),_0x546075['on']('suggestionUnloaded',_0x524992,{'priority':'high'}),_0x410080['model']['document']['registerPostFixer'](()=>{let _0x799f43=!0x1;const _0x3142b0=Array['from'](_0x410080['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58a945,data:_0x282ce9}of _0x3142b0){const {group:_0x30025b,type:_0x25f4b8,id:_0x10a30a}=_0x546075['_splitMarkerName'](_0x58a945);if('suggestion'!=_0x30025b||'deletion'!=_0x25f4b8||_0x282ce9['oldRange'])continue;if(!_0x546075['hasSuggestion'](_0x10a30a))continue;const _0x23d61d=_0x546075['getSuggestion'](_0x10a30a)['getRanges'](),_0x5aab1a=_0x410080['plugins']['get']('Users')['me'];for(const _0x183a64 of _0x546075['getSuggestions']()){if(!_0x183a64['isInContent']||_0x183a64['author']!=_0x5aab1a)continue;if('formatBlock'!=_0x183a64['type']||'tablePasteCell'!=_0x183a64['subType'])continue;if(_0x183a64['getRanges']()['every'](_0x105317=>_0x23d61d['some'](_0x3276f8=>_0x3276f8['containsRange'](_0x105317,!0x0)))){for(const _0x4db5ab of _0x183a64['getAllAdjacentSuggestions']())_0x4db5ab['isInContent']&&(_0x4db5ab['discard'](),_0x799f43=!0x0);}}}return _0x799f43;}),_0x410080['model']['document']['registerPostFixer'](_0x2798dd=>{const _0x19083e=_0x410080['commands']['get']('redo');if(!_0x19083e||!_0x19083e['_createdBatches']['has'](_0x2798dd['batch']))return!0x1;let _0x1869e6=!0x1;const _0x205ece=_0x410080['plugins']['get']('Users')['me'],_0x53ae8f=_0x410080['model']['document']['differ']['getChanges'](),_0x4d7c0f=Array['from'](_0x410080['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x159c99,data:_0x268aa7})=>{const {group:_0x5c834a,subType:_0x1eb6a6,authorId:_0x4ef5e0}=_0x546075['_splitMarkerName'](_0x159c99);return'suggestion'==_0x5c834a&&'tablePaste'==_0x1eb6a6&&_0x4ef5e0==_0x205ece['id']&&!_0x268aa7['oldRange'];});for(const _0x300eb6 of _0x53ae8f){if('insert'!=_0x300eb6['type']||'tableCellSuggestion'!=_0x300eb6['name']||0x1!=_0x300eb6['length'])continue;const _0xe2d98a=_0x2798dd['createRange'](_0x300eb6['position'],_0x300eb6['position']['getShiftedBy'](0x1));if(!_0x4d7c0f['find'](({data:_0x423932})=>_0x423932['newRange']['isEqual'](_0xe2d98a))){for(const {name:_0x289f65,data:_0x8cdbe}of _0x4d7c0f)if(_0xe2d98a['containsRange'](_0x8cdbe['newRange'])){_0x2798dd['updateMarker'](_0x289f65,{'range':_0xe2d98a}),_0x1869e6=!0x0;break;}}}return _0x1869e6;}),_0x410080['model']['document']['registerPostFixer'](_0x4527ca=>{let _0x58ef48=!0x1;const _0x616639=_0x410080['plugins']['get']('Users')['me'],_0x4f3b26=_0x546075['getSuggestions']()['filter'](_0x316cf9=>_0x316cf9['isInContent']&&_0x316cf9['author']==_0x616639),_0x130312=new Set(),_0x35a278=new Set();for(const _0x15732a of _0x4f3b26)if('tablePaste'==_0x15732a['subType'])for(const _0x176e65 of _0x15732a['getMarkers']()){const _0x1fdfe1=_0x176e65['getRange']()['getContainedElement']();if(_0x1fdfe1){if(_0x1fdfe1['is']('element','tableCellSuggestion')&&Be(_0x1fdfe1)){_0x15732a['removeMarker'](_0x176e65['name']),_0x130312['add'](_0x1fdfe1),_0x58ef48=!0x0;const _0x4a41df=_0x1fdfe1['nextSibling'],_0x480fb1=_0x1fdfe1['previousSibling'],_0x2711c0=_0x4a41df&&_0x4a41df['is']('element','tableCellSuggestion'),_0x232b57=_0x480fb1&&_0x480fb1['is']('element','tableCellSuggestion');_0x2711c0&&!_0x130312['has'](_0x4a41df)&&_0x35a278['add'](_0x4a41df),_0x232b57&&!_0x130312['has'](_0x480fb1)&&_0x35a278['add'](_0x480fb1);}else _0x1fdfe1['is']('element','paragraph')&&_0x1fdfe1['isEmpty']&&(_0x15732a['removeMarker'](_0x176e65['name']),_0x58ef48=!0x0);}}else{if('tablePasteCell'==_0x15732a['subType']){if(!_0x15732a['attributes']||!_0x15732a['attributes']['tablePasteChainId'])continue;const _0x3e86e7=_0x15732a['attributes']['markerAttributes'];if(_0x3e86e7&&Object['keys'](_0x3e86e7)['length'])continue;const _0x128a4f=_0x15732a['attributes']['tablePasteChainId'];let _0x52f5de=!0x0,_0x3a62f2=!0x0;for(const _0x1cd473 of _0x4f3b26)if(_0x1cd473['subType']&&_0x1cd473['subType']['startsWith']('tablePaste')){if(!_0x1cd473['attributes']['tablePasteChainId']){_0x3a62f2=!0x1;break;}if(_0x1cd473['id']!=_0x15732a['id']&&_0x1cd473['attributes']['tablePasteChainId']==_0x128a4f){_0x52f5de=!0x1;break;}}_0x3a62f2&&_0x52f5de&&(_0x15732a['removeMarkers'](),_0x58ef48=!0x0);}}for(const _0x3309bd of _0x130312)_0x4527ca['remove'](_0x3309bd);for(const _0x1daa7e of _0x35a278)_0x4527ca['unwrap'](_0x1daa7e);return _0x58ef48;}),_0x410080['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4a9e4b=>_0x2652c2(_0x4a9e4b),'converterPriority':'high'}),_0x410080['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x32336c,_0x9e85c6)=>_0x9e85c6['options']['showSuggestionHighlights']?_0x2652c2(_0x32336c,!0x1):null,'converterPriority':'high'});const _0x4e0736=_0x410080['editing']['view'];this['listenTo'](_0x4e0736['document'],'clipboardOutput',(_0x45c78e,_0x1c8868)=>{const _0x27d802=[];for(const _0x55d9ef of _0x4e0736['createRangeIn'](_0x1c8868['content'])['getItems']())_0x55d9ef['is']('element','suggestion-td')&&_0x27d802['push'](_0x55d9ef);_0x4e0736['change'](_0x4df004=>{for(const _0xa5445a of _0x27d802)_0x4df004['move'](_0x4df004['createRangeIn'](_0xa5445a),_0x4df004['createPositionBefore'](_0xa5445a)),_0x4df004['remove'](_0xa5445a);});});}}function Be(_0x5d459){if(_0x5d459['isEmpty'])return!0x0;const _0x38e1e5=_0x5d459['getChild'](0x0);return _0x38e1e5['is']('element','paragraph')&&_0x38e1e5['isEmpty'];}function Oe(_0x5a0a6d,_0x2acb15={},_0x4927cd){for(const {isAnchor:_0x5bf8b8,cellHeight:_0x308cf3,cellWidth:_0x5d9303}of _0x4927cd['createTableWalker'](_0x5a0a6d,{'includeAllSlots':!0x0,..._0x2acb15}))if(!_0x5bf8b8||0x1!=_0x308cf3||0x1!=_0x5d9303)return!0x1;return!0x0;}class Rt extends _0x40606b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x453ffc=this['editor']['plugins']['get']('TrackChangesEditing');_0x453ffc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x453ffc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x453ffc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x453ffc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x453ffc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x453ffc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b486a,_0x552052){const _0x5104f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x558bc3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xb72ff7=_0x552052['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5a0f38=_0x558bc3['getColumnGroupElement'](_0xb72ff7);let _0x406371=_0x5a0f38?_0x558bc3['getTableColumnsWidths'](_0x5a0f38):null,_0x32c215=_0xb72ff7['getAttribute']('tableWidth')||null;const _0x66738b=_0x552052['tableWidth']||_0x32c215,_0x2be2ef=_0x552052['columnWidths']||_0x406371,_0x3881a8=this['editor']['plugins']['get']('Users')['me'];for(const _0xd2636d of _0x5104f6['getSuggestions']()){const _0x84f8ad=_0xd2636d['getContainedElement']();if('resizeTable'===_0xd2636d['subType']&&_0x84f8ad===_0xb72ff7){_0xd2636d['author']!==_0x3881a8&&_0xd2636d['discard']();const _0x711e5c=_0xd2636d['data']['commandParams'];_0x32c215=_0x711e5c[0x0]['tableWidth'],_0x406371=_0x711e5c[0x0]['columnWidths'];break;}}_0x4b486a({'table':_0xb72ff7,'tableWidth':_0x66738b,'columnWidths':_0x2be2ef}),_0x5104f6['markBlockFormat'](_0xb72ff7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x32c215,'columnWidths':_0x406371}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x520acb){if('formatBlock'!=_0x520acb['type']&&'formatInline'!=_0x520acb['type'])return;const {data:_0x4872c7}=_0x520acb;if(_0x4872c7&&'resizeTable'===_0x4872c7['formatGroupId']){const _0x53fc05='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x53fc05)};}}}class Tt extends _0x40606b{['afterInit'](){const _0x22db83=this['editor'];_0x22db83['plugins']['has']('Template')&&_0x22db83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x40606b{['afterInit'](){const _0x147a04=this['editor'];if(!_0x147a04['commands']['get']('insertTableOfContents'))return;_0x147a04['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x6e30c7=_0x147a04['plugins']['get']('TrackChangesEditing'),_0x4278ef=_0x147a04['locale'];_0x6e30c7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x337295=>o(_0x4278ef,'ELEMENT_TABLE_OF_CONTENTS',_0x337295));}}class Ut extends _0x40606b{['afterInit'](){const _0x489947=this['editor'];if(!_0x489947['plugins']['has']('Title'))return;const _0x1b903d=_0x489947['plugins']['get']('TrackChangesEditing');_0x1b903d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x489947['locale'],'ELEMENT_TITLE')),_0x489947['model']['document']['registerPostFixer'](_0x57ab87=>{let _0x5928fc=!0x1;const _0x674850=Array['from'](_0x489947['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x449dca,data:_0x45ad76}of _0x674850){const {group:_0x1ccfa6}=_0x1b903d['_splitMarkerName'](_0x449dca);if('suggestion'!==_0x1ccfa6||!_0x45ad76['newRange'])continue;const _0x37f1e2=_0x45ad76['newRange'],_0x2136f8=_0x37f1e2['end']['nodeBefore'];if(!_0x2136f8||!_0x2136f8['is']('element','title-content'))continue;if(!_0x37f1e2['start']['isTouching'](_0x37f1e2['end']))continue;const _0x2ad71f=_0x489947['model']['schema']['getNearestSelectionRange'](_0x37f1e2['end'],'forward');if(_0x2ad71f&&_0x2ad71f['isCollapsed']){const _0x2bd1da=_0x57ab87['createRange'](_0x37f1e2['start'],_0x2ad71f['start']);_0x2bd1da['isEqual'](_0x37f1e2)||(_0x57ab87['updateMarker'](_0x449dca,{'range':_0x2bd1da}),_0x5928fc=!0x0);}_0x5928fc||(_0x57ab87['removeMarker'](_0x449dca),_0x5928fc=!0x0);}return _0x5928fc;});}}class Vt extends _0x40606b{['afterInit'](){const _0x40679f=this['editor'],_0x3ac7a2=_0x40679f['plugins']['get']('TrackChangesEditing');_0x40679f['plugins']['has']('Uploadcare')&&(_0x3ac7a2['enableCommand']('uploadcare'),_0x40679f['plugins']['has']('UploadcareImageEdit')&&(_0x3ac7a2['enableCommand']('uploadcareImageEdit'),_0x3ac7a2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3ac7a2['descriptionFactory']['registerDescriptionCallback'](_0x18edb1=>{if('attribute'!=_0x18edb1['type'])return;const {data:_0x2e388e}=_0x18edb1;return _0x2e388e&&'uploadcareImageId'==_0x2e388e['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x40606b{['afterInit'](){const _0xa4c238=this['editor'],_0xfa6986=_0xa4c238['plugins']['get']('TrackChangesEditing');_0xa4c238['plugins']['has']('UndoEditing')&&(_0xfa6986['enableCommand']('undo'),_0xfa6986['enableCommand']('redo'));}}class Pt extends _0x40606b{static get['requires'](){return[Dt];}['afterInit'](){const _0x4774fe=this['editor'];if(!_0x4774fe['plugins']['has']('TableCaptionEditing'))return;_0x4774fe['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x40606b{['tableProperties'];['tableCellProperties'];constructor(_0x31d9b9){super(_0x31d9b9),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x31d9b9['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 _0x3a3021=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x440300 of this['tableProperties'])_0x3a3021['enableCommand'](_0x440300,(_0x247d40,_0x38a2a1)=>{const _0x29a7f7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x440300,[_0x29a7f7],this['tableProperties'],'tableProperties',_0x247d40,_0x38a2a1);});_0x3a3021['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3a3021['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a3021['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5d5787,_0x4f60d9)=>this['handleDiscardAction'](this['tableProperties'],_0x5d5787,_0x4f60d9)),_0x3a3021['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2b5f2e of this['tableCellProperties'])this['editor']['commands']['get'](_0x2b5f2e)&&_0x3a3021['enableCommand'](_0x2b5f2e,(_0x23cbe5,_0x431421)=>{const _0x3c951a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2b5f2e,_0x3c951a,this['tableCellProperties'],'tableCellProperties',_0x23cbe5,_0x431421);});_0x3a3021['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3a3021['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a3021['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5ae10f,_0xee5d18)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5ae10f,_0xee5d18)),_0x3a3021['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3a3021['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3a3021['descriptionFactory']['registerDescriptionCallback'](_0x2ed0ed=>this['handleSuggestionDescription'](_0x2ed0ed)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2a486f,_0x52e87f,_0x70ab7b,_0x1924e1,_0x4a26a9,_0x11db97){const _0x5b233e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x11db97['batch'],()=>{for(const _0x2cb2ef of _0x52e87f){if(this['_getSuggestion'](_0x2cb2ef,_0x1924e1))_0x4a26a9(_0x11db97);else{const _0x4c0e9f={};for(const _0x11c28f of _0x70ab7b){const _0x4e9ab7=_0x2cb2ef['getAttribute'](_0x11c28f);void 0x0!==_0x4e9ab7&&(_0x4c0e9f[_0x11c28f]=_0x4e9ab7);}_0x4a26a9(_0x11db97),_0x5b233e['markBlockFormat'](_0x2cb2ef,{'commandParams':[_0x4c0e9f]},[],_0x1924e1);}}});}['handleDiscardAction'](_0x2a6cd1,_0x1efee1,_0xa78007){const _0xfbc8d1=_0x1efee1[0x0]['start']['nodeAfter'],_0x5f1cce=_0xa78007['commandParams'][0x0];this['editor']['model']['change'](_0x1fc158=>{for(const _0x2c9f28 of _0x2a6cd1)void 0x0!==_0x5f1cce[_0x2c9f28]?_0x1fc158['setAttribute'](_0x2c9f28,_0x5f1cce[_0x2c9f28],_0xfbc8d1):_0x1fc158['removeAttribute'](_0x2c9f28,_0xfbc8d1);});}['handleSuggestionDescription'](_0x133764){if(_0x133764['data'])switch(_0x133764['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'](_0x11314a,_0x56971a){const _0x3bed9c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x37c297 of _0x3bed9c['getSuggestions']({'skipNotAttached':!0x0})){const _0x267da4=_0x37c297['getContainedElement']();if(_0x37c297['subType']===_0x56971a&&_0x267da4===_0x11314a)return _0x37c297;}return null;}['_registerTablePropertiesAttributes'](){const _0x12078c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51db99=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x46953e of _0x51db99){const _0xce3d5e=_0x46953e['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x12078c['descriptionFactory']['registerAttributeLabel'](_0x46953e,o(this['editor']['locale'],'FORMAT_'+_0xce3d5e));}}}class Lt extends _0x40606b{['afterInit'](){const _0x2ce23a=this['editor'];if(!_0x2ce23a['plugins']['has']('LineHeight'))return;const _0x3bf79e=_0x2ce23a['plugins']['get']('TrackChangesEditing'),_0x4bccac=_0x2ce23a['locale'];_0x3bf79e['enableDefaultAttributesIntegration']('lineHeight'),_0x3bf79e['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4bccac,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x40606b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1c636c,_0x441a0c,_0x5394b4,_0x6cf12,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x456f8c){super(_0x456f8c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5ac041,_0x2a78c9,_0x4939b9,_0x51e6e9)=>{this['_model']['change'](()=>{for(const _0x5d5c70 of[..._0x51e6e9,..._0x4939b9])this['_model']['markers']['has'](_0x5d5c70)&&_0x456f8c['editing']['reconvertMarker'](_0x5d5c70);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x456f8c['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x456f8c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x456f8c['config']['get']('trackChanges.trackFormatChanges'),_0x456f8c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x456f8c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x456f8c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x515881=this['editor'];_0x515881['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x8dc4dc,{writer:_0x2b912a})=>{let _0x288952='suggestion:'+_0x8dc4dc['getAttribute']('suggestion-type')+':'+_0x8dc4dc['getAttribute']('id');return _0x8dc4dc['getAttribute']('marker-count')&&(_0x288952+=':'+_0x8dc4dc['getAttribute']('marker-count')),_0x2b912a['createElement']('$marker',{'data-name':_0x288952});}}),_0x515881['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x515881['model']['document']['registerPostFixer'](_0x502a50=>{let _0x167609=!0x1;const _0x3ff79b=Array['from'](_0x515881['model']['document']['differ']['getChangedMarkers']()),_0x1bc87e=new Set();for(const {name:_0x44659b,data:_0x26e276}of _0x3ff79b){const {group:_0xd3a328,type:_0x2cbd64,subType:_0x2eaff8,id:_0x3a726a}=this['_splitMarkerName'](_0x44659b);if('suggestion'!==_0xd3a328)continue;const _0x1cc873=_0x2eaff8?'suggestion:'+_0x2cbd64+':'+_0x2eaff8+':'+_0x3a726a:'suggestion:'+_0x2cbd64+':'+_0x3a726a,_0x17ffdf=_0x515881['model']['markers']['getMarkersGroup'](_0x1cc873),_0x3e4caf=_0x515881['model']['markers']['get'](_0x44659b),_0x44bfb6=this['_suggestions']['get'](_0x3a726a);if(null!=_0x26e276['newRange']){'formatInline'==_0x2cbd64&&(_0x167609=_0x167609||Wt(_0x26e276['newRange'],_0x44659b,_0x502a50,_0x515881['model']['schema']));const _0x31441f='attribute'==_0x2cbd64&&this['_isBlockAttribute'](_0x2eaff8['split']('|')[0x0]),_0x1ea76a='attribute'==_0x2cbd64&&this['_isInlineAttribute'](_0x2eaff8['split']('|')[0x0]);if(_0x26e276['newRange']['isCollapsed']||'$graveyard'==_0x26e276['newRange']['root']['rootName']||'formatBlock'==_0x2cbd64&&!Qt(_0x26e276['newRange'])||_0x31441f&&!Qt(_0x26e276['newRange'])||_0x1ea76a&&Xt(_0x26e276['newRange'])||'deletion'==_0x2cbd64&&Xt(_0x26e276['newRange'])||_0x3e4caf&&Yt(_0x3e4caf,_0x17ffdf))_0x502a50['removeMarker'](_0x44659b),_0x167609=!0x0;else{if(!_0x44bfb6||!_0x44bfb6['isInContent'])continue;if(_0x26e276['newRange']&&_0x26e276['oldRange']&&_0x26e276['newRange']['isEqual'](_0x26e276['oldRange']))continue;_0x1bc87e['add'](_0x44bfb6);}}}return _0x1bc87e['size']>0x0&&(_0x167609=!!this['_joinWithAdjacentSuggestions'](_0x1bc87e)||_0x167609),_0x167609;}),_0x515881['model']['document']['registerPostFixer'](_0x3939ad=>{let _0x51ec92=!0x1;for(const _0x1350a5 of _0x515881['model']['document']['differ']['getChanges']())if('insert'==_0x1350a5['type'])for(const _0xaf7cc of this['_suggestions']['values']()){if(_0xaf7cc['isMultiRange']||!_0xaf7cc['isInContent'])continue;const _0x5552ab='formatBlock'==_0xaf7cc['type'],_0x3816d0=this['_getAttributeKey'](_0xaf7cc),_0x2e032f=_0x3816d0&&this['_isBlockAttribute'](_0x3816d0);if(!_0x5552ab&&!_0x2e032f)continue;const _0xa4dfc6=_0xaf7cc['getFirstRange']();if(_0xa4dfc6['start']['parent']!=_0xa4dfc6['end']['parent']&&!_0xa4dfc6['end']['isAtEnd']){const _0x65813d=_0x515881['model']['createPositionAt'](_0xa4dfc6['start']['nodeAfter'],'end'),_0x58965e=_0x515881['model']['createRange'](_0xa4dfc6['start'],_0x65813d);_0x3939ad['updateMarker'](_0xaf7cc['getFirstMarker'](),{'range':_0x58965e}),_0x51ec92=!0x0;}}return _0x51ec92;}),_0x515881['model']['document']['registerPostFixer'](_0x4442f4=>this['_processAttributeChanges'](_0x4442f4)),_0x515881['model']['document']['registerPostFixer'](_0x19f495=>!_0x19f495['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x19f495)),_0x515881['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x515881['model']['document']['on']('change:data',(_0x46a416,_0x598d7)=>{if(!_0x598d7['isLocal']||_0x598d7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5d73f0=_0x515881['model']['document']['differ']['getChanges']();if(0x0==_0x5d73f0['length'])return;const _0x404f7f=[],_0x339074=_0x5d73f0['filter'](_0x5792e4=>'attribute'==_0x5792e4['type']),_0x2f5548=_0x5d73f0['filter'](_0x55226a=>'insert'==_0x55226a['type']&&'$text'!=_0x55226a['name']);for(const _0x574c61 of _0x339074)this['_isRegisteredAttribute'](_0x574c61['attributeKey'])&&_0x404f7f['push']({'key':_0x574c61['attributeKey'],'newValue':_0x574c61['attributeNewValue'],'oldValue':_0x574c61['attributeOldValue'],'range':Zt(_0x574c61['range'],_0x515881['model'])});for(const _0x2983e4 of _0x2f5548){if('rename'!=_0x2983e4['action']&&'refresh'!=_0x2983e4['action'])continue;const _0x188883=tn(_0x2983e4['position']['nodeAfter'],_0x515881['model']),_0x24dc7f=_0x2983e4['before'];'rename'==_0x2983e4['action']&&_0x404f7f['push']({'key':m,'newValue':_0x2983e4['name'],'oldValue':_0x24dc7f['name'],'range':_0x188883});for(const [_0x1052f5,_0x3044ee]of _0x24dc7f['attributes']){if(!this['_isRegisteredAttribute'](_0x1052f5))continue;const _0x2c0049=_0x2983e4['attributes']['get'](_0x1052f5);_0x3044ee!==_0x2c0049&&_0x404f7f['push']({'key':_0x1052f5,'newValue':_0x2c0049,'oldValue':_0x3044ee,'range':_0x188883});}for(const [_0x599312,_0xf3e956]of _0x2983e4['attributes'])this['_isRegisteredAttribute'](_0x599312)&&(_0x24dc7f['attributes']['has'](_0x599312)||_0x404f7f['push']({'key':_0x599312,'newValue':_0xf3e956,'oldValue':null,'range':_0x188883}));}0x0!=_0x404f7f['length']&&_0x515881['model']['enqueueChange'](_0x598d7,_0x443d6e=>{const _0xbda870=_0x186142();for(const {range:_0x53d26c,key:_0x4a9241,oldValue:_0x2ce81d,newValue:_0x1b9226}of _0x404f7f)this['markAttributeChange'](_0x53d26c,_0x4a9241,_0x2ce81d,_0x1b9226,{'groupId':_0xbda870});this['_reduceExistingSuggestions'](_0x443d6e,_0x404f7f);});},{'priority':'lowest'}),_0x515881['model']['markers']['on']('update:suggestion',(_0x36c237,_0xc26455,_0x201d3f)=>{if(null==_0x201d3f){const {id:_0x5ebf8f}=this['_splitMarkerName'](_0xc26455['name']),_0x41eaf=this['_suggestions']['get'](_0x5ebf8f);_0x41eaf&&_0x41eaf['addMarkerName'](_0xc26455['name']);}}),_0x515881['model']['document']['on']('change:data',()=>{const _0x1674f3=Array['from'](_0x515881['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3d0669=>'suggestion'===this['_splitMarkerName'](_0x3d0669['name'])['group']);if(0x0===_0x1674f3['length'])return;_0x1674f3['sort']((_0x4360e1,_0x5e2782)=>{const _0x1fd923=_0x4360e1['data']['oldRange'],_0x3ec4bc=_0x5e2782['data']['oldRange'];return null===_0x1fd923&&null===_0x3ec4bc?0x0:null===_0x1fd923&&null!==_0x3ec4bc?-0x1:null!==_0x1fd923&&null===_0x3ec4bc?0x1:_0x1fd923['start']['isBefore'](_0x3ec4bc['start'])?-0x1:0x1;});const _0x1487fe=new Set(),_0x1278f6=new Set();for(const {name:_0x163d91,data:_0x4f7d6f}of _0x1674f3){const {id:_0x201045}=this['_splitMarkerName'](_0x163d91);if(null===_0x4f7d6f['oldRange']){const _0x100260=this['_handleNewSuggestionMarker'](_0x163d91);_0x1278f6['add'](_0x100260);}else{const _0x548eb9=this['_suggestions']['get'](_0x201045);null!==_0x4f7d6f['newRange']||_0x548eb9['isInContent']?(_0x1487fe['add'](_0x548eb9['head']),_0x1278f6['add'](_0x548eb9)):this['_removeSuggestion'](_0x548eb9);}}_0x1278f6['size']>0x0&&this['_refreshSuggestionsChain'](_0x1278f6);for(const _0x36530 of _0x1487fe)this['fire']('suggestionChanged',_0x36530);}),_0x515881['model']['on']('applyOperation',(_0x2b9779,_0x50d0df)=>{const _0x3131b8=_0x50d0df[0x0];if(!this['_suggestions']['size'])return;if(!_0x3131b8['isDocumentOperation'])return;if(_0x3131b8['batch']['isUndo']||!_0x3131b8['batch']['isLocal'])return;let _0x34072c,_0x2dc304;switch(_0x3131b8['type']){case'insert':_0x34072c=_0x515881['model']['createPositionAt'](_0x3131b8['position']),_0x2dc304=_0x34072c['getShiftedBy'](_0x3131b8['howMany']);break;case'split':_0x34072c=_0x515881['model']['createPositionAt'](_0x3131b8['splitPosition']),_0x2dc304=_0x515881['model']['createPositionAt'](_0x3131b8['moveTargetPosition']);break;case'move':_0x34072c=_0x515881['model']['createPositionAt'](_0x3131b8['targetPosition']),_0x2dc304=_0x34072c['getShiftedBy'](_0x3131b8['howMany']);break;default:return;}const _0x33c8cb=_0x515881['model']['createRange'](_0x34072c,_0x2dc304);_0x515881['model']['change'](()=>{for(const {suggestion:_0x32493b,meta:_0x11f4b3}of this['_findSuggestions'](_0x33c8cb)){if(_0x32493b['isMultiRange'])continue;if('formatInline'==_0x32493b['type'])continue;const _0x93113a=this['_getAttributeKey'](_0x32493b);if(_0x93113a&&this['_isBlockAttribute'](_0x93113a)&&'split'!=_0x3131b8['type'])continue;const _0x44973f=_0x32493b['data']&&_0x32493b['data']['multipleBlocks'];('formatBlock'!=_0x32493b['type']||'split'==_0x3131b8['type']&&!_0x44973f)&&(_0x11f4b3['containsRangeInObject']||'insertion'==_0x32493b['type']&&_0x11f4b3['isOwn']||_0x32493b['getFirstRange']()['containsRange'](_0x33c8cb)&&this['_breakSuggestionMarker'](_0x32493b,_0x34072c,_0x2dc304));}});},{'priority':'lowest'}),_0x515881['model']['on']('deleteContent',(_0x3f6f87,_0x478ce8)=>{const _0x3438e3=_0x478ce8[0x0],_0x40662f=_0x478ce8[0x1];if(_0x40662f&&_0x40662f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3438e3['isCollapsed'])return;const _0x1fde1e=_0x515881['model']['schema'],{start:_0x56feba,end:_0x55f66d}=_0x3438e3['getFirstRange'](),_0x37ca3e=_0x56feba['nodeAfter']&&_0x1fde1e['isLimit'](_0x56feba['nodeAfter'])?null:_0x1fde1e['getNearestSelectionRange'](_0x56feba,'forward'),_0x101fc0=_0x55f66d['nodeBefore']&&_0x1fde1e['isLimit'](_0x55f66d['nodeBefore'])?null:_0x1fde1e['getNearestSelectionRange'](_0x55f66d,'backward'),_0x2e5448=_0x515881['model']['createRange'](_0x37ca3e?_0x37ca3e['start']:_0x56feba,_0x101fc0?_0x101fc0['end']:_0x55f66d);_0x515881['model']['change'](_0x305eb8=>{this['markDeletion'](_0x2e5448);const _0x3e0d8f=_0x515881['model']['schema']['getNearestSelectionRange'](_0x2e5448['start']);_0x3438e3['is']('documentSelection')?_0x305eb8['setSelection'](_0x3e0d8f):_0x3438e3['setTo'](_0x3e0d8f);}),_0x3f6f87['stop']();},{'priority':_0x449b90['normal']+0xa}),_0x515881['model']['on']('insertContent',(_0x11f6cb,_0x53d424)=>{const _0x1ec097=_0x53d424[_0x53d424['length']-0x1];_0x1ec097&&_0x1ec097['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x515881['model']['change'](()=>{let _0x29f02b=_0x515881['model']['insertContent'](_0x53d424[0x0],_0x53d424[0x1],_0x53d424[0x2],{'forceDefaultExecution':!0x0});if(!_0x29f02b)return;_0x11f6cb['return']=_0x29f02b['clone']();const _0x2d9494=_0x29f02b['end']['nodeBefore'],_0x21a290=_0x515881['model']['schema'];_0x2d9494&&_0x21a290['isBlock'](_0x2d9494)&&!_0x21a290['isObject'](_0x2d9494)&&(_0x29f02b=_0x515881['model']['createRange'](_0x29f02b['start'],_0x515881['model']['createPositionAt'](_0x2d9494,'end'))),this['markInsertion'](_0x29f02b);}),_0x11f6cb['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x537b3b=new O(_0x515881,this['_suggestions']);_0x515881['commands']['add']('acceptSuggestion',_0x537b3b),this['enableCommand']('acceptSuggestion');const _0x33e852=new x(_0x515881,this['_suggestions']);_0x515881['commands']['add']('discardSuggestion',_0x33e852),this['enableCommand']('discardSuggestion'),_0x515881['commands']['add']('acceptAllSuggestions',new M(_0x515881,_0x537b3b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x515881['commands']['add']('discardAllSuggestions',new M(_0x515881,_0x33e852,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x515881['commands']['add']('acceptSelectedSuggestions',new R(_0x515881,_0x537b3b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x515881['commands']['add']('discardSelectedSuggestions',new R(_0x515881,_0x33e852,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4fc4df=_0x515881['plugins']['get']('CommentsRepository');this['listenTo'](_0x4fc4df,'addComment',(_0xb760a8,{threadId:_0x9371c5})=>{const _0x113e72=this['_suggestions']['get'](_0x9371c5);_0x113e72&&_0x113e72['commentThread']&&0x1===_0x113e72['commentThread']['length']&&this['_updateSuggestionData'](_0x9371c5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4fc4df,'removeComment',(_0x362340,{threadId:_0x2339b5})=>{const _0x359b37=this['_suggestions']['get'](_0x2339b5);_0x359b37&&_0x359b37['commentThread']&&!_0x359b37['commentThread']['length']&&this['_updateSuggestionData'](_0x2339b5,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4e303f){const _0x1ad7f7=_0x4e3c90([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]),_0x20f6ac=0x3d8d0df,_0xdacaf4=0x3df578f^_0x20f6ac,_0x2b038d=window[_0x4e3c90([0x44,0x61,0x74,0x65])][_0x4e3c90([0x6e,0x6f,0x77])](),_0x4d1fe2=_0x4e303f[_0x4e3c90([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f6dc3=new window[(_0x4e3c90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53823d=>{_0x4d1fe2[_0x4e3c90([0x6f,0x6e,0x63,0x65])](_0x4e3c90([0x72,0x65,0x61,0x64,0x79]),_0x53823d);}),_0x41b014={[_0x4e3c90([0x6b,0x74,0x79])]:_0x4e3c90([0x45,0x43]),[_0x4e3c90([0x75,0x73,0x65])]:_0x4e3c90([0x73,0x69,0x67]),[_0x4e3c90([0x63,0x72,0x76])]:_0x4e3c90([0x50,0x2d,0x32,0x35,0x36]),[_0x4e3c90([0x78])]:_0x4e3c90([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]),[_0x4e3c90([0x79])]:_0x4e3c90([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]),[_0x4e3c90([0x61,0x6c,0x67])]:_0x4e3c90([0x45,0x53,0x32,0x35,0x36])},_0x35ca0c=_0x4d1fe2[_0x4e3c90([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e3c90([0x67,0x65,0x74])](_0x4e3c90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7b1cb8(){let _0x138b29,_0x1499fd=null,_0xb13195=null;try{if(_0x35ca0c==_0x4e3c90([0x47,0x50,0x4c]))return _0x4e3c90([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x138b29=_0x18cc9a(),!_0x138b29)return _0x4e3c90([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x138b29[_0x4e3c90([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb13195=_0x13bc29(_0x138b29[_0x4e3c90([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x138b29[_0x4e3c90([0x6a,0x74,0x69])])),await _0xdf03e2()?_0x5a5687()?_0x1daa7c()?_0x4e3c90([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d0a58()?(_0x138b29[_0x4e3c90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e3c90([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1499fd=_0x7e0e0e(_0x4e3c90([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5548ec()):_0x4e3c90([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e3c90([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e3c90([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4e3c90([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1daa7c(){const _0x496144=[_0x4e3c90([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e3c90([0x74,0x72,0x69,0x61,0x6c])][_0x4e3c90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x138b29[_0x4e3c90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b038d/0x3e8:0xe10*_0xdacaf4;return _0x138b29[_0x4e3c90([0x65,0x78,0x70])]<_0x496144;}function _0x5a5687(){const _0x28b36a=_0x138b29[_0x4e3c90([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x28b36a)return!0x1;if(_0x28b36a[_0x4e3c90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3c90([0x2a])))return!0x0;if(_0x28b36a[_0x4e3c90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3c90([0x54,0x43])))return!0x0;if(_0x28b36a[_0x4e3c90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3c90([0x52,0x54,0x43]))){if(_0x53316c())return!0x0;if(_0xbfd1b0()||_0x31e03f())return!0x0;}return!0x1;}function _0x5d0a58(){const _0x254235=_0x138b29[_0x4e3c90([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x254235||0x0==_0x254235[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x653a06}=new URL(window[_0x4e3c90([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x254235[_0x4e3c90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x653a06))return!0x0;const _0x4251e1=_0x653a06[_0x4e3c90([0x73,0x70,0x6c,0x69,0x74])](_0x4e3c90([0x2e]));return _0x254235[_0x4e3c90([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37eefc=>_0x37eefc[_0x4e3c90([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e3c90([0x2a])))[_0x4e3c90([0x6d,0x61,0x70])](_0x564e16=>_0x564e16[_0x4e3c90([0x73,0x70,0x6c,0x69,0x74])](_0x4e3c90([0x2e])))[_0x4e3c90([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44364a=>_0x44364a[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4251e1[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e3c90([0x6d,0x61,0x70])](_0x851f62=>Array(_0x4251e1[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x851f62[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4e3c90([0x66,0x69,0x6c,0x6c])](_0x851f62[0x0]===_0x4e3c90([0x2a])?_0x4e3c90([0x2a]):'')[_0x4e3c90([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x851f62))[_0x4e3c90([0x73,0x6f,0x6d,0x65])](_0xd0ad38=>_0x4251e1[_0x4e3c90([0x65,0x76,0x65,0x72,0x79])]((_0x4ceb36,_0x1979b)=>_0xd0ad38[_0x1979b]===_0x4ceb36||_0xd0ad38[_0x1979b]===_0x4e3c90([0x2a])));}function _0x5548ec(){return _0x1499fd&&_0xb13195?new window[(_0x4e3c90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x260a69,_0x3d8af2)=>{_0x1499fd[_0x4e3c90([0x74,0x68,0x65,0x6e])](_0x260a69,_0x3d8af2),_0xb13195[_0x4e3c90([0x74,0x68,0x65,0x6e])](_0x28cba4=>{_0x28cba4!=_0x4e3c90([0x56,0x61,0x6c,0x69,0x64])&&_0x260a69(_0x28cba4);},_0x3d8af2);}):_0x1499fd||_0xb13195||_0x4e3c90([0x56,0x61,0x6c,0x69,0x64]);}}function _0x13bc29(_0x585f13,_0x1e2d15){return new window[(_0x4e3c90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25322f=>{if(_0x1b113d())return _0x25322f(_0x4e3c90([0x56,0x61,0x6c,0x69,0x64]));_0x1599ec(),_0x4d1fe2[_0x4e3c90([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e3c90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e1f15=!0x1;const _0x4074cc=_0x186142();function _0x4eff5f(_0x1bd4cf){return!!_0x1bd4cf&&(typeof _0x1bd4cf===_0x4e3c90([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1bd4cf===_0x4e3c90([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1bd4cf[_0x4e3c90([0x74,0x68,0x65,0x6e])]===_0x4e3c90([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1bd4cf[_0x4e3c90([0x63,0x61,0x74,0x63,0x68])]===_0x4e3c90([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a82ff(_0x41456d){_0xdebabf(_0x41456d)[_0x4e3c90([0x74,0x68,0x65,0x6e])](_0x20ebeb=>{if(!_0x20ebeb||_0x20ebeb[_0x4e3c90([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e3c90([0x6f,0x6b]))return _0x4e3c90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x124b49(_0x34411a(_0x4074cc+_0x1e2d15))!=_0x20ebeb[_0x4e3c90([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e3c90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e3c90([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e3c90([0x74,0x68,0x65,0x6e])](_0xcc10c3=>(_0x2f58c7(),_0xcc10c3),()=>{const _0x47b475=_0x2e607a();return null==_0x47b475?(_0x2f58c7(),_0x4e3c90([0x56,0x61,0x6c,0x69,0x64])):_0x4e3c90(_0x2b038d-_0x47b475>(0x27d454df^_0x20f6ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e3c90([0x74,0x68,0x65,0x6e])](_0x25322f)[_0x4e3c90([0x63,0x61,0x74,0x63,0x68])](()=>{_0x25322f(_0x4e3c90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48aae8=0x3ee3e5f^_0x20f6ac;function _0x2f58c7(){const _0x3e8688=_0x4e3c90([0x6c,0x6c,0x63,0x74,0x2d])+_0x124b49(_0x34411a(_0x585f13)),_0x115575=_0x36ab74(_0x124b49(window[_0x4e3c90([0x4d,0x61,0x74,0x68])][_0x4e3c90([0x63,0x65,0x69,0x6c])](_0x2b038d/_0x48aae8)));window[_0x4e3c90([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e3c90([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e8688,_0x115575);}function _0x2e607a(){const _0x46ca11=_0x4e3c90([0x6c,0x6c,0x63,0x74,0x2d])+_0x124b49(_0x34411a(_0x585f13)),_0x55ce77=window[_0x4e3c90([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e3c90([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46ca11);return _0x55ce77?window[_0x4e3c90([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36ab74(_0x55ce77),0x10)*_0x48aae8:null;}function _0xdebabf(_0x3b9383){return new window[(_0x4e3c90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x337fbd,_0x5010ca)=>{_0x3b9383[_0x4e3c90([0x74,0x68,0x65,0x6e])](_0x337fbd,_0x5010ca),window[_0x4e3c90([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5010ca,0x3d9041f^_0x20f6ac);});}}_0x4d1fe2[_0x4e3c90([0x6f,0x6e])](_0x4e3c90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x159633,_0x452ef2)=>{if(_0x452ef2[0x0]!=_0x585f13)return _0x25322f(_0x4e3c90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x452ef2[0x1]={..._0x452ef2[0x1],[_0x4e3c90([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4074cc};},{[_0x4e3c90([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e3c90([0x68,0x69,0x67,0x68])}),_0x4d1fe2[_0x4e3c90([0x6f,0x6e])](_0x4e3c90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b1593=>{_0x4eff5f(_0x5b1593[_0x4e3c90([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e1f15=!0x0,_0x5a82ff(_0x5b1593[_0x4e3c90([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e3c90([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e3c90([0x6c,0x6f,0x77])}),_0x2f6dc3[_0x4e3c90([0x74,0x68,0x65,0x6e])](()=>{_0x1e1f15||_0x25322f(_0x4e3c90([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b113d(){return _0x4d1fe2[_0x4e3c90([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e3c90([0x76,0x69,0x65,0x77])][_0x4e3c90([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e3c90([0x61,0x75,0x74,0x6f]);}function _0x1599ec(){_0x4d1fe2[_0x4e3c90([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e3c90([0x76,0x69,0x65,0x77])][_0x4e3c90([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e3c90([0x61,0x75,0x74,0x6f]);}}function _0x7e0e0e(_0x344bbc){const _0x20937f=[new window[(_0x4e3c90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51bdf6=>setTimeout(_0x51bdf6,0x3d1ee13^_0x20f6ac)),_0x2f6dc3[_0x4e3c90([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e3c90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bb4b1=>{let _0x16570e=0x0;_0x4d1fe2[_0x4e3c90([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e3c90([0x6f,0x6e])](_0x4e3c90([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40bdf2,_0x4dea20)=>{_0x4dea20[0x0][_0x4e3c90([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16570e++,_0x16570e==(0x3d8d537^_0x20f6ac)&&(_0x1bb4b1(),_0x40bdf2[_0x4e3c90([0x6f,0x66,0x66])]());});}))];return window[_0x4e3c90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e3c90([0x72,0x61,0x63,0x65])](_0x20937f)[_0x4e3c90([0x74,0x68,0x65,0x6e])](()=>_0x344bbc);}async function _0x219523(){await _0x2f6dc3,_0x4d1fe2[_0x4e3c90([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e3c90([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x412ad2,_0x4d1fe2[_0x4e3c90([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e3c90([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x412ad2,_0x4d1fe2[_0x4e3c90([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e3c90([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53316c(){return _0x1c4fc2(_0x4e3c90([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2ad4f0(_0x4e3c90([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4e3c90([0x73,0x74,0x61,0x74,0x65])]==_0x4e3c90([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbfd1b0(){return _0x1c4fc2(_0x4e3c90([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 _0x31e03f(){return _0x1c4fc2(_0x4e3c90([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x168489(_0x45d9b1){const _0x48b72f=_0x350c08();_0x4d1fe2[_0x48b72f]=_0x4e3c90([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45d9b1,_0x45d9b1!=_0x4e3c90([0x56,0x61,0x6c,0x69,0x64])&&_0x219523();}function _0x350c08(){const _0x42ecf4=window[_0x4e3c90([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e3c90([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e3c90([0x6e,0x6f,0x77])]())[_0x4e3c90([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e3c90([0x2e]),'');let _0x2b9dff=_0x4e3c90([0x52]);for(let _0x3da673=0x0;_0x3da673<_0x42ecf4[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3da673+=0x2){let _0xb8c8a6=window[_0x4e3c90([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42ecf4[_0x4e3c90([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3da673,_0x3da673+0x2));_0xb8c8a6>=_0x1ad7f7[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb8c8a6-=_0x1ad7f7[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b9dff+=_0x1ad7f7[_0xb8c8a6];}return _0x2b9dff;}function _0x18cc9a(){const _0x51f08b=_0x35ca0c[_0x4e3c90([0x73,0x70,0x6c,0x69,0x74])](_0x4e3c90([0x2e]));if(0x3!=_0x51f08b[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x544f91(_0x51f08b[0x1]);function _0x544f91(_0x14c514){const _0x3536c9=_0x4ed6c1(_0x14c514);return _0x3536c9&&_0x362732()?_0x3536c9:null;function _0x362732(){const _0xde9f5d=_0x3536c9[_0x4e3c90([0x6a,0x74,0x69])],_0x41695f=window[_0x4e3c90([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xde9f5d[_0x4e3c90([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xde9f5d[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3066e1={..._0x3536c9,[_0x4e3c90([0x6a,0x74,0x69])]:_0xde9f5d[_0x4e3c90([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xde9f5d[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3066e1[_0x4e3c90([0x76,0x63])],_0x34411a(_0x3066e1)==_0x41695f;}}}async function _0xdf03e2(){let _0x3dd778=!0x0;try{const _0x18d7e8=_0x35ca0c[_0x4e3c90([0x73,0x70,0x6c,0x69,0x74])](_0x4e3c90([0x2e])),[_0x24a2b6,_0x3c5ccb,_0x14d566]=_0x18d7e8;return _0x5ee601(_0x24a2b6),await _0x1cc89b(_0x24a2b6,_0x3c5ccb,_0x14d566),_0x3dd778;}catch{return!0x1;}function _0x5ee601(_0x3fd8f6){const _0x3b4c9f=_0x4ed6c1(_0x3fd8f6);_0x3b4c9f&&_0x3b4c9f[_0x4e3c90([0x61,0x6c,0x67])]==_0x4e3c90([0x45,0x53,0x32,0x35,0x36])||(_0x3dd778=!0x1);}async function _0x1cc89b(_0x1af77e,_0x35b5f2,_0x5bc4ad){const _0x57530c=window[_0x4e3c90([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e3c90([0x66,0x72,0x6f,0x6d])](_0x529597(_0x5bc4ad),_0x511d8b=>_0x511d8b[_0x4e3c90([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x478b3c=new window[(_0x4e3c90([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e3c90([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1af77e+_0x4e3c90([0x2e])+_0x35b5f2),_0x59e7eb=window[_0x4e3c90([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e3c90([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59e7eb)return;const _0xc5d435=await _0x59e7eb[_0x4e3c90([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e3c90([0x6a,0x77,0x6b]),_0x41b014,{[_0x4e3c90([0x6e,0x61,0x6d,0x65])]:_0x4e3c90([0x45,0x43,0x44,0x53,0x41]),[_0x4e3c90([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e3c90([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e3c90([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59e7eb[_0x4e3c90([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e3c90([0x6e,0x61,0x6d,0x65])]:_0x4e3c90([0x45,0x43,0x44,0x53,0x41]),[_0x4e3c90([0x68,0x61,0x73,0x68])]:{[_0x4e3c90([0x6e,0x61,0x6d,0x65])]:_0x4e3c90([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc5d435,_0x57530c,_0x478b3c)||(_0x3dd778=!0x1);}}function _0x4ed6c1(_0x5ab631){return _0x5ab631[_0x4e3c90([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e3c90([0x65,0x79]))?JSON[_0x4e3c90([0x70,0x61,0x72,0x73,0x65])](_0x529597(_0x5ab631)):null;}function _0x529597(_0x49d782){return window[_0x4e3c90([0x61,0x74,0x6f,0x62])](_0x49d782[_0x4e3c90([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e3c90([0x2b]))[_0x4e3c90([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e3c90([0x2f])));}function _0x34411a(_0x5efdce){let _0x31d1fc=0x1505;function _0x31f82e(_0x4b6ad6){for(let _0x5cf69a=0x0;_0x5cf69a<_0x4b6ad6[_0x4e3c90([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cf69a++){const _0x1eae56=_0x4b6ad6[_0x4e3c90([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cf69a);_0x31d1fc=(_0x31d1fc<<0x5)+_0x31d1fc+_0x1eae56,_0x31d1fc&=_0x31d1fc;}}function _0x57b1ac(_0x3a8cfa){Array[_0x4e3c90([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a8cfa)?_0x3a8cfa[_0x4e3c90([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57b1ac):_0x3a8cfa&&typeof _0x3a8cfa==_0x4e3c90([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e3c90([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a8cfa)[_0x4e3c90([0x73,0x6f,0x72,0x74])]()[_0x4e3c90([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x488aca,_0x5a5db7])=>{_0x31f82e(_0x488aca),_0x57b1ac(_0x5a5db7);}):_0x31f82e(window[_0x4e3c90([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a8cfa));}return _0x57b1ac(_0x5efdce),_0x31d1fc>>>0x0;}function _0x124b49(_0x112060){return _0x112060[_0x4e3c90([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e3c90([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e3c90([0x30]));}function _0x36ab74(_0x35b438){return _0x35b438[_0x4e3c90([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e3c90([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e3c90([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c4fc2(_0x2199b9){return _0x4d1fe2[_0x4e3c90([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e3c90([0x68,0x61,0x73])](_0x2199b9);}function _0x2ad4f0(_0x5a11b3){return _0x4d1fe2[_0x4e3c90([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e3c90([0x67,0x65,0x74])](_0x5a11b3);}function _0x412ad2(){}function _0x4e3c90(_0x570fbe){return _0x570fbe['map'](_0x5b8829=>String['fromCharCode'](_0x5b8829))['join']('');}_0x168489(await _0x7b1cb8());}(this);}set['adapter'](_0x11fb16){if(this['_adapter'])throw new _0x9b4c60('track-changes-adapter-already-set',this);this['_adapter']=_0x11fb16;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x34c543=!0x1,toJSON:_0x278f79=!0x1}={}){const _0x41015c=[];for(const _0x1240f4 of this['_suggestions']['values']())_0x34c543&&!_0x1240f4['isInContent']||_0x41015c['push'](_0x1240f4);return _0x278f79?_0x41015c['map'](_0x4ce349=>_0x4ce349['toJSON']()):_0x41015c;}['getSuggestion'](_0x47cbfe){const _0x4c3d84=this['_suggestions']['get'](_0x47cbfe);if(!_0x4c3d84)throw new _0x9b4c60('track-changes-suggestion-not-found',this);return _0x4c3d84;}['hasSuggestion'](_0x1b0e1c){return this['_suggestions']['has'](_0x1b0e1c);}['addSuggestionData'](_0x4cef1b){const {authorId:_0x5c3d29,id:_0x32b51b,originalSuggestionId:_0x514a76,attributes:_0x24429b}=_0x4cef1b,[_0x3e0f80,_0x460d7b]=_0x4cef1b['type']['split'](':'),_0x440816=this['_suggestions']['get'](_0x32b51b)||this['_createSuggestion'](_0x3e0f80,_0x460d7b,_0x32b51b,_0x5c3d29,_0x24429b,_0x514a76);if(this['_addThreadToSuggestion'](_0x440816),this['_checkSuggestionCorrectness'](_0x440816,_0x3e0f80,_0x460d7b||null,_0x5c3d29),_0x440816['createdAt']=_0x4cef1b['createdAt'],_0x440816['_isDataLoaded']=!0x0,_0x24429b&&_0x24429b['@external']){const _0x2044b3=_0x24429b['@external'],_0x10073a=this['_getExternalAuthor'](_0x2044b3['authorName']);_0x440816['authoredAt']=_0x2044b3['createdAt'],_0x440816['author']=_0x10073a,_0x440816['isExternal']=!0x0;}else _0x440816['authoredAt']=_0x4cef1b['createdAt'];switch(_0x4cef1b['data']&&(_0x440816['data']=_0x4cef1b['data']),_0x4cef1b['attributes']&&(_0x440816['attributes']=_0x4cef1b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x440816['_saved']=!0x0),this['_suggestionState']['get'](_0x440816)){case'notReady':this['_suggestionState']['set'](_0x440816,'dataReady');break;case'markerReady':_0x440816['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x440816])),this['_refreshSuggestionsChain'](new Set([_0x440816])),this['_suggestionState']['set'](_0x440816,'ready'),this['fire']('suggestionLoaded',_0x440816)):this['_suggestionState']['set'](_0x440816,'removed');}return _0x440816;}['acceptSuggestion'](_0x2034aa){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x11c869 of _0x2034aa['getAllAdjacentSuggestions']())_0x11c869['accept']();});});}['discardSuggestion'](_0x1e8a67){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xe1f07b of _0x1e8a67['getAllAdjacentSuggestions']())_0xe1f07b['discard']();});});}['enableCommand'](_0x4eaa51,_0x4143f3){const _0xcfee3b=this['editor']['commands']['get'](_0x4eaa51);if(!_0xcfee3b)throw new _0x9b4c60('track-changes-command-not-found',this,{'commandName':_0x4eaa51});if(this['_enabledCommands']['has'](_0xcfee3b))throw new _0x9b4c60('track-changes-enable-command-twice',this,{'commandName':_0x4eaa51});this['_enabledCommands']['add'](_0xcfee3b),_0x4143f3&&_0xcfee3b['on']('execute',(_0x20ca84,_0x4ae071)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4ae071['length']>0x0&&_0x4ae071[_0x4ae071['length']-0x1]&&_0x4ae071[_0x4ae071['length']-0x1]['forceDefaultExecution']?_0x4ae071['pop']():(_0x20ca84['return']=_0x4143f3((..._0x578e35)=>_0xcfee3b['execute'](..._0x578e35,{'forceDefaultExecution':!0x0}),..._0x4ae071),_0x20ca84['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5d2055){let _0x2cc448,_0xbadaf;const _0x563cb0=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2cc448=_0x5d2055();}catch(_0x5a8966){_0xbadaf=_0x5a8966;}return _0x563cb0||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbadaf&&_0x9b4c60['rethrowUnexpectedError'](_0xbadaf,this),_0x2cc448;}['markInsertion'](_0x1b8efb,_0x2b75c2=null,_0x3bd7bc={}){if(_0x1b8efb['isCollapsed'])return null;const _0x18a9fb=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3bd7bc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x243024,meta:_0x255908}of this['_findSuggestions'](_0x1b8efb,'insertion'))if(_0x255908['isOwn']){if(!_0x255908['isNextTo']){if(_0x255908['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x243024,_0x3bd7bc))continue;return _0x243024;}if(sn(_0x243024,_0x3bd7bc))return _0x243024;this['_breakSuggestionMarker'](_0x243024,_0x1b8efb['start'],_0x1b8efb['end']);break;}if(_0x2b75c2==_0x243024['subType']&&sn(_0x243024,_0x3bd7bc)){const _0x3c2cb4=_0x243024['getFirstRange']();return _0x3c2cb4['start']['isEqual'](_0x1b8efb['end'])?this['_setSuggestionRange'](_0x243024,this['_model']['createRange'](_0x1b8efb['start'],_0x3c2cb4['end'])):this['_setSuggestionRange'](_0x243024,this['_model']['createRange'](_0x3c2cb4['start'],_0x1b8efb['end'])),_0x243024;}}const _0x5c109c=_0x186142(),_0x1ed5c6=_0x18a9fb['id'],_0x3a5502=_0x2b75c2?'insertion:'+_0x2b75c2:'insertion',_0x6f5589=this['_setSuggestionData']({'id':_0x5c109c,'type':_0x3a5502,'createdAt':new Date(),'authorId':_0x1ed5c6,'attributes':_0x3bd7bc});return this['_addSuggestionMarker'](_0x3a5502,_0x5c109c,_0x1ed5c6,_0x1b8efb),_0x6f5589;}['markMultiRangeInsertion'](_0x31a130,_0x23972f='multi',_0x37a212={}){const _0x5268a5=this['editor']['plugins']['get']('Users')['me'],_0x3f4919=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x23972f,'join');this['_trackingSessionId']&&(_0x37a212['trackingSessionId']=this['_trackingSessionId']);for(const _0x12e334 of this['getSuggestions']())if(_0x12e334['author']['id']==_0x5268a5['id']&&'insertion'==_0x12e334['type']&&_0x12e334['subType']==_0x23972f&&sn(_0x12e334,_0x37a212)&&(_0x3f4919(_0x12e334['getRanges'](),_0x31a130)||_0x3f4919(_0x31a130,_0x12e334['getRanges']()))){for(const _0x59e08f of _0x31a130)_0x12e334['addRange'](_0x59e08f);return _0x12e334;}for(const {suggestion:_0x58e8e3,meta:_0x1d48e4}of this['_findSuggestions'](_0x31a130,'insertion')){if(!_0x1d48e4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1d48e4['containsRangeInObject'])continue;if(!sn(_0x58e8e3,_0x37a212))continue;let _0x14094d=!0x0;for(const _0x51965a of _0x58e8e3['getRanges']())for(const _0x29f74d of _0x31a130)if(!_0x51965a['containsRange'](_0x29f74d)){_0x14094d=!0x1;break;}if(_0x14094d)return _0x58e8e3;}const _0x1e7790=_0x186142(),_0x20f425=_0x5268a5['id'],_0xcef83a='insertion:'+_0x23972f,_0x23083f=this['_setSuggestionData']({'id':_0x1e7790,'type':_0xcef83a,'createdAt':new Date(),'authorId':_0x20f425,'attributes':_0x37a212});for(const _0x4bc9c9 of _0x31a130)this['_addSuggestionMarker'](_0xcef83a,_0x1e7790,_0x20f425,_0x4bc9c9,T['getMultiRangeId']());return _0x23083f;}['markInlineFormat'](_0x5bff94,_0x3217b5,_0x1bbaba=null,_0x3eac8c={}){if(_0x1bbaba=_0x1bbaba||Ht(_0x3217b5),_0x5bff94['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3eac8c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x10ced7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bbaba,'accept');return this['forceDefaultExecution'](()=>_0x10ced7([_0x5bff94],_0x3217b5,_0x3eac8c)),null;}const _0x4fcc39=this['editor']['plugins']['get']('Users')['me'],_0x16c8ea=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a9e05,meta:_0x953737}of this['_findSuggestions'](_0x5bff94,'insertion'))_0x953737['isOwn']&&!_0x953737['isInsideObject']&&_0x16c8ea['push'](..._0x2a9e05['getRanges']());}const _0x32f8c9=function(_0x34bbff,_0x33720b){const _0x1fbe3a=[];for(const _0xcef487 of _0x33720b){const _0x183eea=_0x34bbff['getIntersection'](_0xcef487);_0x183eea&&_0x1fbe3a['push'](_0x183eea);}return _0x1fbe3a;}(_0x5bff94,_0x16c8ea),_0xf6be49=function(_0x4cf1c7,_0x22928d){const _0x44a6e9=[_0x4cf1c7];for(const _0x1baff1 of _0x22928d){let _0x351bb6=0x0;for(;_0x351bb6<_0x44a6e9['length'];){const _0x3fbe39=_0x44a6e9[_0x351bb6]['getDifference'](_0x1baff1);_0x44a6e9['splice'](_0x351bb6,0x1,..._0x3fbe39),_0x351bb6+=_0x3fbe39['length'];}}return _0x44a6e9;}(_0x5bff94,_0x16c8ea);_0x32f8c9['length']&&this['_model']['change'](()=>{for(const _0x901f23 of _0x32f8c9){const _0x46a371=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bbaba,'accept');this['forceDefaultExecution'](()=>_0x46a371([_0x901f23],_0x3217b5,_0x3eac8c));}});for(const _0x596f43 of _0xf6be49){let _0x188471=null,_0x34ee3d=_0x596f43['start'],_0x10f33d=_0x596f43['end'];for(const {suggestion:_0x17cd02,meta:_0x2cccbe}of this['_findSuggestions'](_0x596f43,'formatInline')){if(!_0x2cccbe['isOwn'])continue;if(_0x17cd02['subType']!=_0x1bbaba)continue;if(!sn(_0x17cd02,_0x3eac8c))continue;const _0x4abac0=_0x17cd02['getFirstRange']();if(_0x4abac0['containsRange'](_0x596f43,!0x0))return null;_0x34ee3d=_0x34ee3d['isBefore'](_0x4abac0['start'])?_0x34ee3d:_0x4abac0['start'],_0x10f33d=_0x10f33d['isAfter'](_0x4abac0['end'])?_0x10f33d:_0x4abac0['end'],_0x188471?_0x4abac0['start']['isBefore'](_0x188471['getFirstRange']()['start'])?(_0x188471['removeMarkers'](),_0x188471=_0x17cd02):_0x17cd02['removeMarkers']():_0x188471=_0x17cd02;}const _0x2c7584=this['_model']['createRange'](_0x34ee3d,_0x10f33d);if(_0x188471)this['_setSuggestionRange'](_0x188471,_0x2c7584);else{const _0x448dee=_0x186142(),_0x47f626=_0x4fcc39['id'];this['_setSuggestionData']({'id':_0x448dee,'type':'formatInline:'+_0x1bbaba,'data':_0x3217b5,'createdAt':new Date(),'authorId':_0x47f626,'attributes':_0x3eac8c}),this['_addSuggestionMarker']('formatInline:'+_0x1bbaba,_0x448dee,_0x47f626,_0x2c7584);}}return null;}['markBlockFormat'](_0x5f912a,_0x2876f7,_0x555795=[],_0xaf66f4=null,_0x4c2580={}){_0x2876f7['formatGroupId']||(_0x2876f7['formatGroupId']=_0x2876f7['commandName']),_0x2876f7['multipleBlocks']=_0x5f912a['is']('range'),_0xaf66f4=_0xaf66f4||Ht(_0x2876f7);const _0x1f6b23=_0x555795['map'](_0x2b19a6=>tn(_0x2b19a6,this['_model'])),_0x483542=_0x5f912a['is']('range')?_0x5f912a:tn(_0x5f912a,this['_model']);if(this['_trackingSessionId']&&(_0x4c2580['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2bb218=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xaf66f4,'accept');return this['forceDefaultExecution'](()=>_0x2bb218([_0x483542],_0x2876f7,_0x4c2580)),null;}_0x1f6b23['push'](_0x483542);let _0x3c7f0a=!0x0;for(const _0x531b94 of _0x1f6b23)if(!this['_rangeIsInLocalUserInsertion'](_0x531b94)){_0x3c7f0a=!0x1;break;}if(_0x3c7f0a&&'always'!==this['_trackFormatChanges']){const _0x563da0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xaf66f4,'accept');return this['forceDefaultExecution'](()=>_0x563da0([_0x483542],_0x2876f7,_0x4c2580)),null;}let _0x565f1f=null,_0x6b27d=_0x483542['start'],_0x46942a=_0x483542['end'];for(const {suggestion:_0x121f9a,meta:_0x5f21c2}of this['_findSuggestions'](_0x483542,'formatBlock')){if(!_0x5f21c2['isOwn'])continue;if(_0x5f21c2['isNextTo']||_0x5f21c2['containsRangeInObject']||_0x5f21c2['isInsideObject'])continue;if(_0x121f9a['data']['formatGroupId']!=_0x2876f7['formatGroupId'])continue;if(!sn(_0x121f9a,_0x4c2580))continue;const _0x5355da=_0x121f9a['getFirstRange']();if(_0x121f9a['subType']==_0xaf66f4){if(_0x5355da['containsRange'](_0x483542,!0x0))return null;_0x6b27d=_0x6b27d['isBefore'](_0x5355da['start'])?_0x6b27d:_0x5355da['start'],_0x46942a=_0x46942a['isAfter'](_0x5355da['end'])?_0x46942a:_0x5355da['end'],_0x565f1f?_0x5355da['start']['isBefore'](_0x565f1f['getFirstRange']()['start'])?(_0x565f1f['removeMarkers'](),_0x565f1f=_0x121f9a):_0x121f9a['removeMarkers']():_0x565f1f=_0x121f9a;}else{const _0x41d3b5=_0x483542['getIntersection'](_0x5355da);this['_cutOutSuggestionMarker'](_0x121f9a,_0x41d3b5);}}const _0xd7de29=this['editor']['plugins']['get']('Users')['me'],_0x6908b7=_0x186142(),_0x62046a=_0xd7de29['id'];if(_0x565f1f)return this['_setSuggestionRange'](_0x565f1f,this['_model']['createRange'](_0x6b27d,_0x46942a)),_0x565f1f;{const _0x10cad1=this['_setSuggestionData']({'id':_0x6908b7,'type':'formatBlock:'+_0xaf66f4,'data':_0x2876f7,'createdAt':new Date(),'authorId':_0x62046a,'attributes':_0x4c2580});return this['_addSuggestionMarker']('formatBlock:'+_0xaf66f4,_0x6908b7,_0x62046a,this['_model']['createRange'](_0x6b27d,_0x46942a)),_0x10cad1;}}['markMultiRangeBlockFormat'](_0x59d74f,_0xaa066b,_0x37631e=[],_0x46cb14=null,_0x40037a={}){_0xaa066b['formatGroupId']||(_0xaa066b['formatGroupId']=_0xaa066b['commandName']);const _0xaf3ea7=_0x59d74f[0x0];_0xaa066b['multipleBlocks']=_0xaf3ea7['is']('range'),_0x46cb14=_0x46cb14||Ht(_0xaa066b);const _0x56bde2=_0x37631e['map'](_0x4590a7=>tn(_0x4590a7,this['_model'])),_0x26c42c=_0xaf3ea7['is']('range')?_0x59d74f:_0x59d74f['map'](_0x48ab77=>tn(_0x48ab77,this['_model']));if(this['_trackingSessionId']&&(_0x40037a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x450804=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x46cb14,'accept');return this['forceDefaultExecution'](()=>_0x450804(_0x26c42c,_0xaa066b,_0x40037a)),null;}_0x56bde2['push'](..._0x26c42c);let _0x550243=!0x0;for(const _0x36a526 of _0x56bde2)if(!this['_rangeIsInLocalUserInsertion'](_0x36a526)){_0x550243=!0x1;break;}if(_0x550243&&'always'!==this['_trackFormatChanges']){const _0x283f39=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x46cb14,'accept');return this['forceDefaultExecution'](()=>_0x283f39(_0x26c42c,_0xaa066b,_0x40037a)),null;}const _0x3c3156=this['editor']['plugins']['get']('Users')['me'];for(const _0x409439 of this['getSuggestions']()){const _0x3343a7=_0x409439['data'];if(_0x409439['author']['id']!=_0x3c3156['id'])continue;if('formatBlock'!=_0x409439['type']||_0x3343a7['formatGroupId']!=_0xaa066b['formatGroupId'])continue;if(!sn(_0x409439,_0x40037a))continue;const _0x4152a9=_0x409439['subType']==_0x46cb14;for(let _0x1c7918=0x0;_0x1c7918<_0x26c42c['length'];_0x1c7918++){const _0x54a020=_0x26c42c[_0x1c7918];for(const _0x4a9b36 of _0x409439['getMarkers']()){const _0xdd7db7=_0x4a9b36['getRange']();if(_0x54a020['isEqual'](_0xdd7db7)){_0x4152a9?(_0x26c42c['splice'](_0x1c7918,0x1),_0x1c7918--):_0x409439['removeMarker'](_0x4a9b36['name']);break;}}}}if(0x0==_0x26c42c['length'])return null;const _0x6883f4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x46cb14,'join');for(const _0x397fce of this['getSuggestions']()){const _0x24016e=_0x397fce['data'];if(_0x397fce['author']['id']==_0x3c3156['id']&&('formatBlock'==_0x397fce['type']&&_0x24016e['formatGroupId']==_0xaa066b['formatGroupId']&&_0x397fce['subType']==_0x46cb14&&sn(_0x397fce,_0x40037a)&&(_0x6883f4(_0x397fce['getRanges'](),_0x26c42c)||_0x6883f4(_0x26c42c,_0x397fce['getRanges']())))){for(const _0x43a289 of _0x26c42c)_0x397fce['addRange'](_0x43a289);return _0x397fce;}}const _0x3ca06f=_0x186142(),_0x104498=_0x3c3156['id'],_0x39d290='formatBlock:'+_0x46cb14,_0x1db66b=this['_setSuggestionData']({'id':_0x3ca06f,'type':_0x39d290,'data':_0xaa066b,'createdAt':new Date(),'authorId':_0x104498,'attributes':_0x40037a});for(const _0x55a8cd of _0x26c42c)this['_addSuggestionMarker'](_0x39d290,_0x3ca06f,_0x104498,_0x55a8cd,T['getMultiRangeId']());return _0x1db66b;}['markDeletion'](_0x542de8,_0x1b193f=null,_0x367916={}){if(_0x542de8['isCollapsed'])return null;const _0xd26f11=this['editor']['plugins']['get']('Users')['me'],_0x2472bc=new _0x2d0a07(_0x542de8['start'],_0x542de8['end']);this['_trackingSessionId']&&(_0x367916['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x415c8a,meta:_0x251d5d}of this['_findSuggestions'](_0x2472bc,'insertion'))if(_0x251d5d['isOwn']&&!_0x251d5d['isNextTo']){if(_0x415c8a['isMultiRange']){const _0x2250fe=_0x415c8a['getRanges']()['filter'](_0x156f1e=>'$graveyard'!=_0x156f1e['root']['rootName']);_0x2250fe['every'](_0x360ca0=>_0x2472bc['containsRange'](_0x360ca0,!0x0))&&_0x415c8a['discard']();if(_0x2250fe['some'](_0x29a15d=>_0x29a15d['containsRange'](_0x2472bc,!0x0))){const _0x504d7c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1b193f,'accept');return this['forceDefaultExecution'](()=>_0x504d7c([_0x2472bc],null,_0x367916)),null;}}else{const _0x46dd2b=_0x2472bc['getIntersection'](_0x415c8a['getFirstRange']());null!==_0x46dd2b&&_0x415c8a['_onDiscard']([_0x46dd2b],null,_0x367916);}}if(_0x2472bc['detach'](),_0x2472bc['isCollapsed']||'$graveyard'==_0x2472bc['root']['rootName'])return null;let _0x40f742=null,_0xb1dc7c=_0x2472bc['start'],_0x3c2c5a=_0x2472bc['end'];const _0x38abac=this['_findSuggestions'](_0x2472bc,'deletion');for(const {suggestion:_0x440fdd,meta:_0x2cc338}of _0x38abac){const _0x49e7cf=this['_model']['createRange'](_0xb1dc7c,_0x3c2c5a);if(_0x2cc338['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2cc338['containsRangeInObject']&&!_0x2cc338['isInsideObject'])){if(_0x440fdd['isMultiRange']){if(!sn(_0x440fdd,_0x367916))continue;let _0x2273b1=!0x0;for(const _0x267cf9 of _0x440fdd['getRanges']()){if(_0x267cf9['containsRange'](_0x49e7cf,!0x0))return _0x440fdd;_0x49e7cf['containsRange'](_0x267cf9)||(_0x2273b1=!0x1);}_0x2273b1&&_0x440fdd['discard']();}else{const _0x2b570d=_0x440fdd['getFirstRange']();if(_0x2b570d['containsRange'](_0x49e7cf,!0x0))return _0x440fdd;if(!sn(_0x440fdd,_0x367916)){_0x49e7cf['containsRange'](_0x2b570d)?_0x440fdd['removeMarkers']():_0x2b570d['containsPosition'](_0xb1dc7c)?_0xb1dc7c=_0x2b570d['end']:_0x2b570d['containsPosition'](_0x3c2c5a)&&(_0x3c2c5a=_0x2b570d['start']);continue;}_0xb1dc7c=_0xb1dc7c['isBefore'](_0x2b570d['start'])?_0xb1dc7c:_0x2b570d['start'],_0x3c2c5a=_0x3c2c5a['isAfter'](_0x2b570d['end'])?_0x3c2c5a:_0x2b570d['end'],_0x367916=Object['assign']({},_0x440fdd['attributes']),_0x40f742?_0x2b570d['start']['isBefore'](_0x40f742['getFirstRange']()['start'])?(_0x40f742['removeMarkers'](),_0x40f742=_0x440fdd):_0x440fdd['removeMarkers']():_0x40f742=_0x440fdd;}}}if(_0x40f742)return this['_setSuggestionRange'](_0x40f742,this['_model']['createRange'](_0xb1dc7c,_0x3c2c5a)),_0x40f742;{const _0xfe315=_0x186142(),_0x53e2f7=this['_model']['createRange'](_0xb1dc7c,_0x3c2c5a),_0x234c00=_0xd26f11['id'],_0x25b1f0=_0x1b193f?'deletion:'+_0x1b193f:'deletion',_0x5bcf60=this['_setSuggestionData']({'id':_0xfe315,'type':_0x25b1f0,'createdAt':new Date(),'authorId':_0x234c00,'attributes':_0x367916});return this['_addSuggestionMarker'](_0x25b1f0,_0xfe315,_0x234c00,_0x53e2f7),_0x5bcf60;}}['markMultiRangeDeletion'](_0x5c3d50,_0x45a3d5='multi',_0x5dfa67={}){const _0x271aac=this['editor']['plugins']['get']('Users')['me'],_0xf7c546=_0x5c3d50['map'](_0x853f53=>new _0x2d0a07(_0x853f53['start'],_0x853f53['end'])),_0x1317cd=new Set();this['_trackingSessionId']&&(_0x5dfa67['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x45f4cb,meta:_0x29c3fb}of this['_findSuggestions'](_0xf7c546,'insertion'))_0x29c3fb['isOwn']&&!_0x29c3fb['isNextTo']&&_0x1317cd['add'](_0x45f4cb);for(const _0x3de379 of _0x1317cd)if(_0x3de379['isMultiRange']){const _0x1f1b21=_0x3de379['getRanges']();(!_0x3de379['attributes']||!_0x3de379['attributes']['skipNestingCheck'])&&(_0x1f1b21['every'](_0x3d90d4=>_0xf7c546['some'](_0x498ff6=>_0x498ff6['containsRange'](_0x3d90d4,!0x0)))&&_0x3de379['discard']());if(_0xf7c546['every'](_0x14b8e2=>_0x1f1b21['some'](_0x3a2601=>_0x3a2601['containsRange'](_0x14b8e2,!0x0)))){const _0x74bf81=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45a3d5,'accept');return this['forceDefaultExecution'](()=>_0x74bf81(_0x5c3d50,null,_0x5dfa67)),null;}}else{const _0x2730fa=_0x3de379['getFirstRange']();_0xf7c546['some'](_0x3b5c5e=>_0x3b5c5e['containsRange'](_0x2730fa,!0x0))&&_0x3de379['discard']();if(_0xf7c546['every'](_0x4e825a=>_0x2730fa['containsRange'](_0x4e825a,!0x0))){const _0x2c68e4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45a3d5,'accept');return this['forceDefaultExecution'](()=>_0x2c68e4(_0xf7c546,null,_0x5dfa67)),null;}}const _0x54e871=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45a3d5,'join');let _0x44e60a=null;for(const _0x41de45 of this['getSuggestions']())if(_0x41de45['author']['id']==_0x271aac['id']&&_0x41de45['isInContent']&&'deletion'==_0x41de45['type']&&_0x41de45['subType']==_0x45a3d5&&sn(_0x41de45,_0x5dfa67)&&(_0x54e871(_0x41de45['getRanges'](),_0xf7c546)||_0x54e871(_0xf7c546,_0x41de45['getRanges']()))){if(_0x44e60a){if(_0x41de45['commentThread']&&_0x41de45['commentThread']['length'])continue;for(const _0x4b8d4d of _0x41de45['getRanges']())_0x44e60a['isIntersectingWithRange'](_0x4b8d4d)||_0x44e60a['addRange'](_0x4b8d4d);_0x41de45['removeMarkers']();}else{_0x44e60a=_0x41de45;for(const _0x45e553 of _0xf7c546)_0x41de45['isIntersectingWithRange'](_0x45e553)||_0x41de45['addRange'](_0x45e553);}}if(_0x44e60a)return _0x44e60a;_0x1317cd['clear']();for(const {suggestion:_0x167b36,meta:_0xed500d}of this['_findSuggestions'](_0xf7c546,'deletion'))_0xed500d['isOwn']&&(this['_mergeNestedSuggestions']||!_0xed500d['containsRangeInObject']&&!_0xed500d['isInsideObject'])&&sn(_0x167b36,_0x5dfa67)&&_0x1317cd['add'](_0x167b36);for(const _0x2a9bfa of _0x1317cd){const _0x246044=_0x2a9bfa['getRanges']();if(!_0x5dfa67||!_0x5dfa67['skipNestingCheck']){if(_0xf7c546['every'](_0x2e0b17=>_0x246044['some'](_0x3af2a7=>_0x3af2a7['containsRange'](_0x2e0b17,!0x0))))return _0x2a9bfa;}(!_0x2a9bfa['attributes']||!_0x2a9bfa['attributes']['skipNestingCheck'])&&(_0x246044['every'](_0x7a17f5=>_0xf7c546['some'](_0x2d1b77=>_0x2d1b77['containsRange'](_0x7a17f5,!0x0)))&&_0x2a9bfa['discard']());}const _0x3bf806=_0x186142(),_0x17707b=_0x271aac['id'],_0x315fd5='deletion:'+_0x45a3d5,_0x1cabab=this['_setSuggestionData']({'id':_0x3bf806,'type':_0x315fd5,'createdAt':new Date(),'authorId':_0x17707b,'attributes':_0x5dfa67});for(const _0x53ca93 of _0xf7c546)_0x53ca93['detach'](),_0x53ca93['isCollapsed']||'$graveyard'==_0x53ca93['root']['rootName']||this['_addSuggestionMarker'](_0x315fd5,_0x3bf806,_0x17707b,_0x53ca93,T['getMultiRangeId']());return _0x1cabab;}['markAttributeChange'](_0x5ba48c,_0x3242e3,_0x2bfcf0,_0x57d39e,_0x5457e3){if(_0x5ba48c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3becdc=this['editor']['plugins']['get']('Users')['me']['id'],_0x3846d3=Array['from'](this['_suggestions']['values']())['filter'](_0x3fd918=>'attribute'==_0x3fd918['type']&&_0x3fd918['data']['key']==_0x3242e3&&_0x3fd918['isIntersectingWithRange'](_0x5ba48c));if(this['_trackingSessionId']&&(_0x5457e3['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x22d409=this['_findSuggestions'](_0x5ba48c,'insertion')['filter'](({meta:_0x47f62a})=>_0x47f62a['isOwn']&&!_0x47f62a['isInsideObject']&&!_0x47f62a['isNextTo'])['map'](({suggestion:_0x18a366})=>_0x18a366);_0x3846d3['unshift'](..._0x22d409);}const _0x31988f=new Map([[_0x5ba48c,_0x2bfcf0]]);for(const _0x1ec210 of _0x3846d3){const _0x164de1='attribute'==_0x1ec210['type']?_0x1ec210['data']['oldValue']:void 0x0,_0x3f4eee=_0x1ec210['getFirstRange'](),_0x325252=Array['from'](_0x31988f['keys']())['find'](_0x24e663=>_0x24e663['isIntersecting'](_0x3f4eee));if(!_0x325252)continue;const _0x46e667=_0x325252['getDifference'](_0x3f4eee);this['_isBlockAttribute'](_0x3242e3)&&'insertion'==_0x1ec210['type']&&0x0!=_0x46e667['length']||(_0x31988f['delete'](_0x325252),_0x46e667['forEach'](_0x35cee4=>{_0x31988f['set'](_0x35cee4,_0x2bfcf0);}),'insertion'!=_0x1ec210['type']&&_0x164de1!=_0x57d39e&&_0x31988f['set'](_0x325252['getIntersection'](_0x3f4eee),_0x164de1));}const _0x17957d=[];for(const [_0x1b68a5,_0x20eae8]of _0x31988f){const _0x21250c=_0x186142(),_0x37a16d={'key':_0x3242e3,'oldValue':_0x20eae8,'newValue':_0x57d39e};_0x3242e3['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':_0x3242e3});const _0xe927ec=('attribute:'+(_0x3242e3+'|'+Ht({'newValue':_0x57d39e})))['substring'](0x0,0x3c),_0xd0a55=this['_setSuggestionData']({'id':_0x21250c,'type':_0xe927ec,'data':_0x37a16d,'createdAt':new Date(),'authorId':_0x3becdc,'attributes':_0x5457e3});_0x17957d['push'](_0xd0a55),this['_addSuggestionMarker'](_0xe927ec,_0x21250c,_0x3becdc,_0x1b68a5);}return _0x17957d;}['enableDefaultAttributesIntegration'](_0x164897){this['enableCommand'](_0x164897,(_0x5f00bc,..._0x1ec354)=>{this['recordAttributeChanges'](()=>{_0x5f00bc(..._0x1ec354);});});}['registerBlockAttribute'](_0x1161fb){this['editor']['plugins']['get'](_0x1c636c)['registerBlockAttribute'](_0x1161fb);}['registerInlineAttribute'](_0x5d9770){this['editor']['plugins']['get'](_0x1c636c)['registerInlineAttribute'](_0x5d9770);}['startTrackingSession'](_0x1923a7){return this['_trackingSessionId']=void 0x0!==_0x1923a7?_0x1923a7:_0x186142(),this['_trackingSessionId'];}['_getAttributeKey'](_0x16f701){return'attribute'==_0x16f701['type']?_0x16f701['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x442fc4){if(0x0==_0x442fc4['length'])return;const _0x7c6382=this['editor'],_0x3636a1=_0x7c6382['plugins']['get'](_0x6cf12),_0x42d9a0=[];_0x7c6382['model']['change'](_0xbf5c74=>{for(let _0x4b227f=0x0;_0x4b227f<_0x442fc4['length'];_0x4b227f++){const _0x2d622=_0x442fc4[_0x4b227f];if(_0x2d622['baseVersion']=_0x7c6382['model']['document']['version'],_0x2d622['isDocumentOperation']=!0x0,_0x3636a1['isMarkedRemoveOperation'](_0x2d622)){const _0x1da1eb=_0x15f50e(_0x2d622['newRange'],_0x7c6382['model']);_0x42d9a0['unshift'](_0x2d0a07['fromRange'](_0x1da1eb));}else switch(_0x2d622['type']){case'rename':{const _0x79c9f9=_0x2d622['oldName'],_0x4f84ca=_0x2d622['newName'];if(_0x79c9f9==_0x4f84ca)break;_0xbf5c74['batch']['addOperation'](_0x2d622),_0x7c6382['model']['applyOperation'](_0x2d622);const _0x5ba1e7='$elementName',_0xf71677=_0x2d622['position'],_0x29e07=_0x7c6382['model']['createRange'](_0xf71677,_0x7c6382['model']['createPositionAt'](_0xf71677['nodeAfter'],'end'));this['markAttributeChange'](_0x29e07,_0x5ba1e7,_0x79c9f9,_0x4f84ca,{'groupId':_0x186142()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1f8cb9=_0x2d622['oldValue'],_0x3d4349=_0x2d622['newValue'];if(_0x1f8cb9==_0x3d4349)break;_0xbf5c74['batch']['addOperation'](_0x2d622),_0x7c6382['model']['applyOperation'](_0x2d622);const _0x42e9f1=_0x2d622['key'];if(!this['_isRegisteredAttribute'](_0x42e9f1))break;const _0x18a879=_0x15f50e(_0x2d622['range'],_0x7c6382['model']);this['markAttributeChange'](_0x18a879,_0x42e9f1,_0x1f8cb9,_0x3d4349,{'groupId':_0x186142()});break;}case'insert':{_0xbf5c74['batch']['addOperation'](_0x2d622),_0x7c6382['model']['applyOperation'](_0x2d622);if(_0x442fc4[_0x4b227f+0x1]&&'move'==_0x442fc4[_0x4b227f+0x1]['type'])break;const _0x1daca9=_0x2d622['position'],_0x2bc7da=_0x2d622['howMany'],_0x143ce8=_0x15f50e(_0x7c6382['model']['createRange'](_0x1daca9,_0x1daca9['getShiftedBy'](_0x2bc7da)),_0x7c6382['model']);this['markInsertion'](_0x143ce8);break;}case'split':{_0xbf5c74['batch']['addOperation'](_0x2d622),_0x7c6382['model']['applyOperation'](_0x2d622);const _0x23df5a=_0x2d622['splitPosition'],_0x3c6c59=_0x2d622['moveTargetPosition'];this['markInsertion'](_0x7c6382['model']['createRange'](_0x23df5a,_0x3c6c59));break;}case'move':case'remove':_0xbf5c74['batch']['addOperation'](_0x2d622),_0x7c6382['model']['applyOperation'](_0x2d622);}}for(const _0x5076ff of _0x42d9a0)_0x5076ff['detach'](),this['markDeletion'](_0x5076ff);});}['_setSuggestionRange'](_0x334ad9,_0x53d2fe){const _0x3ab758=_0x334ad9['getFirstMarker']();this['_model']['change'](_0x5974c4=>{_0x5974c4['updateMarker'](_0x3ab758,{'range':_0x53d2fe});});}['_addThreadToSuggestion'](_0x3485a8){const _0x5252da=_0x3485a8['id'],_0x5a3e57=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5252da)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5a3e57,'threadId':_0x5252da,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1bd24f=this['_commentsRepository']['getCommentThread'](_0x5252da);_0x1bd24f['unbind']('isRemovable'),_0x1bd24f['isRemovable']=!0x1,_0x3485a8['commentThread']=_0x1bd24f;}['_checkSuggestionCorrectness'](_0x397145,_0x33332c,_0x5da07b,_0x540730){if(_0x397145['type']!=_0x33332c||_0x397145['subType']!=_0x5da07b||_0x397145['creator']['id']!=_0x540730)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x9b4c60('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3a6121,_0x28bba8){const _0x21d8fd=_0x3a6121['getFirstRange']();if(_0x28bba8['isEqual'](_0x21d8fd))_0x3a6121['removeMarkers']();else{if(_0x21d8fd['containsRange'](_0x28bba8)){const _0x493b65=this['_model']['createPositionAt'](_0x28bba8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a6121,this['_model']['createRange'](_0x21d8fd['start'],_0x493b65));const _0x15fef1=_0x186142(),_0x58f0a1=_0x3a6121['creator']['id'],_0x4b4b68=_0x3a6121['type']+':'+_0x3a6121['subType'];this['_setSuggestionData']({'id':_0x15fef1,'type':_0x4b4b68,'createdAt':new Date(),'authorId':_0x58f0a1,'data':_0x3a6121['data'],'attributes':_0x3a6121['attributes']});const _0x36a957=this['_model']['createPositionAt'](_0x28bba8['end']['parent'],'after'),_0x2100b3=this['_model']['createRange'](_0x36a957,_0x21d8fd['end']);this['_addSuggestionMarker'](_0x4b4b68,_0x15fef1,_0x58f0a1,_0x2100b3);}else{if(_0x21d8fd['containsPosition'](_0x28bba8['start'])){const _0x2e1d8f=this['_model']['createPositionAt'](_0x28bba8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a6121,this['_model']['createRange'](_0x21d8fd['start'],_0x2e1d8f));}else{const _0x2ebd9b=this['_model']['createPositionAt'](_0x28bba8['end']['parent'],'after');this['_setSuggestionRange'](_0x3a6121,this['_model']['createRange'](_0x2ebd9b,_0x21d8fd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x281620){for(const {suggestion:_0x534c29,meta:_0x3b3413}of this['_findSuggestions'](_0x281620,'insertion')){if(!_0x3b3413['isOwn'])continue;const _0x5ea5e2=_0x534c29['getRanges']();for(const _0x272f0a of _0x5ea5e2)if(!_0x281620['getDifference'](_0x272f0a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x58cf47){return this['editor']['plugins']['get']('Users')['getUser'](_0x58cf47);}['_getExternalAuthor'](_0x4f71c6){const _0x4585fb=this['editor']['plugins']['get']('Users'),_0x382f57=_0xa25f63('external:'+_0x4f71c6),_0x28f606=_0x4585fb['getUser'](_0x382f57);return _0x28f606||_0x4585fb['addUser']({'id':_0x382f57,'name':_0x4f71c6});}['_createSuggestion'](_0x4bfd0c,_0x70b19,_0x14bb61,_0x51f42a,_0x490560,_0x6cda5f){const _0x66342d=this['_getAuthorFromId'](_0x51f42a);if(!_0x66342d)throw new _0x9b4c60('track-changes-user-not-found',this,{'authorId':_0x51f42a,'suggestionId':_0x14bb61});const _0x28aa5b=this['_suggestionFactory']['buildSuggestion'](_0x4bfd0c,_0x70b19,_0x14bb61,_0x66342d,_0x490560,_0x1b208c=>{this['_updateSuggestionData'](_0x14bb61,{'attributes':_0x1b208c});const _0x888140=this['getSuggestion'](_0x14bb61);this['_joinWithAdjacentSuggestions'](new Set([_0x888140])),this['_refreshSuggestionsChain'](new Set([_0x888140]));},_0x6cda5f);return this['listenTo'](_0x28aa5b,'accept',()=>{this['_updateSuggestionData'](_0x14bb61,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x28aa5b,'discard',()=>{this['_updateSuggestionData'](_0x14bb61,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x14bb61,_0x28aa5b),this['_suggestionState']['set'](_0x28aa5b,'notReady'),_0x28aa5b;}['_splitMarkerName'](_0x3c6f80){return _0x5afe04(_0x3c6f80);}['_breakSuggestionMarker'](_0xa01a93,_0x41f10e,_0x1f4aa2){const _0x2856e0=_0xa01a93['getFirstRange'](),_0x47a6a5=_0x2856e0['start'],_0x33a9c2=_0x2856e0['end'];this['_setSuggestionRange'](_0xa01a93,this['_model']['createRange'](_0x47a6a5,_0x41f10e));const _0x4f9cf4=_0x186142(),_0x332b95=_0xa01a93['creator']['id'],_0x3926db=_0xa01a93['type']+(_0xa01a93['subType']?':'+_0xa01a93['subType']:'');this['_setSuggestionData']({'id':_0x4f9cf4,'type':_0x3926db,'createdAt':new Date(),'authorId':_0x332b95,'originalSuggestionId':_0xa01a93['_originalSuggestionId']||_0xa01a93['id'],'attributes':_0xa01a93['attributes'],'data':_0xa01a93['data']});const _0x581660=this['_getAttributeKey'](_0xa01a93);('formatBlock'==_0xa01a93['type']||_0x581660&&this['_isBlockAttribute'](_0x581660))&&(_0x1f4aa2=this['_model']['createPositionBefore'](_0x1f4aa2['parent'])),this['_addSuggestionMarker'](_0x3926db,_0x4f9cf4,_0x332b95,this['_model']['createRange'](_0x1f4aa2,_0x33a9c2));}['_findSuggestions'](_0x35c98e,_0xedf13a=null){const _0x4b0dd3=[],_0x279748=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x35c98e)||(_0x35c98e=[_0x35c98e]);for(const _0xddb933 of this['getSuggestions']()){if(!_0xddb933['isInContent'])continue;if(_0xedf13a&&_0xddb933['type']!=_0xedf13a)continue;let _0x2cfea8=!0x1;for(const _0x5c1301 of _0xddb933['getRanges']()){for(const _0x416d53 of _0x35c98e){const _0x3a35a6=_0x416d53['start']['isEqual'](_0x5c1301['end'])||_0x416d53['end']['isEqual'](_0x5c1301['start']);if(_0x3a35a6||_0x416d53['getIntersection'](_0x5c1301)){const _0x561413=_0x416d53['containsRange'](_0x5c1301)&&zt(this['_model']['schema'],_0x5c1301['start'],_0x416d53),_0xca6dc5=_0x5c1301['containsRange'](_0x416d53)&&zt(this['_model']['schema'],_0x416d53['start'],_0x5c1301);_0x4b0dd3['push']({'suggestion':_0xddb933,'meta':{'isOwn':_0x279748==_0xddb933['author'],'isNextTo':_0x3a35a6,'isInsideObject':_0x561413,'containsRangeInObject':_0xca6dc5}}),_0x2cfea8=!0x0;break;}}if(_0x2cfea8)break;}}return _0x4b0dd3;}['_addSuggestionMarker'](_0x5d17e1,_0x556f84,_0x23f60e,_0x564176,_0x2eeabb){this['_model']['change'](_0x32b3da=>{let _0x47a03f='suggestion:'+_0x5d17e1+':'+_0x556f84+':'+_0x23f60e;_0x2eeabb&&(_0x47a03f=_0x47a03f+':'+_0x2eeabb),_0x32b3da['addMarker'](_0x47a03f,{'range':_0x564176,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x13c6d7){const _0x4f7aaf=_0x13c6d7['previous'],_0xd21d3c=_0x13c6d7['next'];_0x13c6d7['previous']=null,_0x13c6d7['next']=null,null!=_0x4f7aaf&&_0x4f7aaf['next']==_0x13c6d7&&(_0x4f7aaf['next']=_0xd21d3c),null!=_0xd21d3c&&_0xd21d3c['previous']==_0x13c6d7&&(_0xd21d3c['previous']=_0x4f7aaf),'ready'==this['_suggestionState']['get'](_0x13c6d7)&&(this['_suggestionState']['set'](_0x13c6d7,'removed'),this['fire']('suggestionUnloaded',_0x13c6d7,_0x4f7aaf,_0xd21d3c));}['_setSuggestionData'](_0x96ec73){const _0x374143=_0x96ec73['id'],_0x4fd5bb=this['addSuggestionData'](_0x96ec73);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x470fdd=this['editor']['plugins']['get']('PendingActions'),_0x4158e2=_0x4fd5bb['hasComments'],_0x5dd921=_0x4fd5bb['subType']?_0x4fd5bb['type']+':'+_0x4fd5bb['subType']:_0x4fd5bb['type'],_0xd29310=this['editor']['locale'],_0xd23369=_0x470fdd['add'](o(_0xd29310,'PENDING_ACTION_SUGGESTION')),_0x1dc079={'id':_0x374143,'type':_0x5dd921,'hasComments':_0x4158e2,'data':_0x96ec73['data']||null,'originalSuggestionId':_0x96ec73['originalSuggestionId']||null,'attributes':_0x4fd5bb['attributes']};this['_adapter']['addSuggestion'](_0x1dc079)['then'](_0x449526=>{_0x4fd5bb['_saved']=!0x0,_0x470fdd['remove'](_0xd23369),_0x449526&&_0x449526['createdAt']&&(this['_suggestions']['get'](_0x374143)['createdAt']=_0x449526['createdAt']);})['catch'](_0x1c4bbf=>{throw _0x140c21('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4fd5bb['discard']();}),_0x4fd5bb['stopListening'](),this['_suggestions']['delete'](_0x4fd5bb['id']),this['_suggestionState']['delete'](_0x4fd5bb),_0x1c4bbf;});}return _0x4fd5bb;}['_isBlockAttribute'](_0x45270a){return this['editor']['plugins']['get'](_0x1c636c)['isBlockAttribute'](_0x45270a);}['_isInlineAttribute'](_0x4a07df){return this['editor']['plugins']['get'](_0x1c636c)['isInlineAttribute'](_0x4a07df);}['_updateSuggestionData'](_0x5b309f,_0x53385a){const _0x1e82a6=this['editor']['plugins']['get']('PendingActions'),_0x4aab1b=this['getSuggestion'](_0x5b309f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4aab1b['_saved']){const _0x482276=_0x1e82a6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5b309f,_0x53385a)['then'](()=>{_0x1e82a6['remove'](_0x482276);});}else _0x4aab1b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5b309f,_0x53385a);});}}['_getSuggestionData'](_0x3aee65){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x9b4c60('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3aee65);}['_handleNewSuggestionMarker'](_0xf09953){const {id:_0x41604e,type:_0x2e5c4f,subType:_0xecc486,authorId:_0x222833}=this['_splitMarkerName'](_0xf09953),_0x5654c3=this['_suggestions']['get'](_0x41604e)||this['_createSuggestion'](_0x2e5c4f,_0xecc486,_0x41604e,_0x222833,{});switch(this['_checkSuggestionCorrectness'](_0x5654c3,_0x2e5c4f,_0xecc486,_0x222833),this['_suggestionState']['get'](_0x5654c3)){case'notReady':this['_getSuggestionData'](_0x41604e)['then'](_0x3f50c1=>{let _0x4f654a=Promise['resolve']();_0x3f50c1['hasComments']&&(_0x4f654a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x41604e})),_0x4f654a['then'](()=>{this['addSuggestionData'](_0x3f50c1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5654c3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x41604e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5654c3,'ready'),this['fire']('suggestionLoaded',_0x5654c3);break;case'ready':this['fire']('suggestionChanged',_0x5654c3);}return _0x5654c3['addMarkerName'](_0xf09953),_0x5654c3;}['_refreshSuggestionsChain'](_0x1f7a09){const _0x25c9e4=Array['from'](_0x1f7a09),_0x58c817=_0x25c9e4['filter'](_0x35fe38=>'attribute'==_0x35fe38['type']);this['_refreshAttributeSuggestionsChain'](_0x58c817);const _0x508082=_0x25c9e4['filter'](_0x76fe9b=>!_0x76fe9b['isMultiRange']&&'attribute'!=_0x76fe9b['type']),_0x137ba0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x978d03=>!_0x978d03['isMultiRange']&&'attribute'!=_0x978d03['type']),_0x21e4ab=_0x137ba0['filter'](_0x391b8e=>!_0x1f7a09['has'](_0x391b8e)),_0x385744=new Map(_0x137ba0['map'](_0x425d07=>[_0x425d07,this['_suggestionFactory']['getSuggestionCallback'](_0x425d07['type'],_0x425d07['subType'],'chain')])),_0x291836=new Map(_0x137ba0['map'](_0x3845a2=>[_0x3845a2,_0x3845a2['getFirstRange']()])),_0x33e6e=new Set(),_0x28777e=new Set();for(let _0x6241cf=0x0;_0x6241cf<_0x508082['length'];_0x6241cf++)_0x2a4e11(_0x508082[_0x6241cf],_0x508082,_0x6241cf+0x1);for(let _0x214c1e=0x0;_0x214c1e<_0x508082['length'];_0x214c1e++)_0x2a4e11(_0x508082[_0x214c1e],_0x21e4ab,0x0);const _0x353324=new Set();for(let _0x371e02=0x0;_0x371e02<_0x508082['length'];_0x371e02++){const _0x3e0d37=_0x508082[_0x371e02];!_0x28777e['has'](_0x3e0d37)&&_0x3e0d37['previous']&&(_0x353324['add'](_0x3e0d37['previous']),_0x3e0d37['previous']['next']===_0x3e0d37&&(_0x3e0d37['previous']['next']=null),_0x3e0d37['previous']=null),!_0x33e6e['has'](_0x3e0d37)&&_0x3e0d37['next']&&(_0x353324['add'](_0x3e0d37['next']),_0x3e0d37['next']['previous']===_0x3e0d37&&(_0x3e0d37['next']['previous']=null),_0x3e0d37['next']=null);}function _0x2a4e11(_0x1211a6,_0x56cc36,_0x6862d7){for(let _0x1e74a5=_0x6862d7;_0x1e74a5<_0x56cc36['length'];_0x1e74a5++){const _0xc93f18=_0x56767e(_0x1211a6,_0x56cc36[_0x1e74a5]);_0xc93f18&&(_0xc93f18[0x0]['next']=_0xc93f18[0x1],_0xc93f18[0x1]['previous']=_0xc93f18[0x0],_0x33e6e['add'](_0xc93f18[0x0]),_0x28777e['add'](_0xc93f18[0x1]));}}function _0x56767e(_0x323f51,_0x329bbb){if(_0x323f51['author']['id']!==_0x329bbb['author']['id'])return null;const _0x186149=_0x385744['get'](_0x323f51)(_0x323f51,_0x329bbb,_0x291836['get'](_0x323f51),_0x291836['get'](_0x329bbb));if(!_0x186149)return null;return _0x385744['get'](_0x329bbb)(_0x323f51,_0x329bbb,_0x291836['get'](_0x323f51),_0x291836['get'](_0x329bbb))?_0x186149[0x1]['commentThread']&&_0x186149[0x1]['commentThread']['length']?null:_0x186149:null;}_0x353324['size']&&this['_refreshSuggestionsChain'](_0x353324);}['_refreshAttributeSuggestionsChain'](_0x50eeac){if(0x0==_0x50eeac['length'])return;const _0x468cfc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3759a5=>'attribute'==_0x3759a5['type']&&_0x3759a5['_isDataLoaded']),_0x347425=[],_0x637d12=new Map();for(const _0x425f7f of _0x468cfc){const _0x423672=_0xa25f63(_0x425f7f['attributes']);_0x637d12['has'](_0x423672)||(_0x637d12['set'](_0x423672,_0x347425['length']),_0x347425['push']([]));const _0x41825e=_0x637d12['get'](_0x423672);_0x347425[_0x41825e]['push'](_0x425f7f);}!(function(){_0x347425['sort']((_0x4f8c21,_0x5ea797)=>{const _0x27eb1e=_0x4f8c21[0x0]['createdAt'],_0x185ece=_0x5ea797[0x0]['createdAt'];return _0x27eb1e==_0x185ece?_0x4f8c21[0x0]['attributes']['groupId']<_0x5ea797[0x0]['attributes']['groupId']?-0x1:0x1:_0x27eb1e<_0x185ece?-0x1:0x1;});for(const _0x37474d of _0x347425)_0x37474d['sort']((_0x2271c7,_0xacc59f)=>_0x2271c7['id']<_0xacc59f['id']?-0x1:0x1);}());for(let _0xce81f0=0x0;_0xce81f0<_0x347425['length'];_0xce81f0++){if(0x0==_0x347425[_0xce81f0]['length'])continue;const _0x3c05b5=[];for(let _0x363b0d=_0xce81f0+0x1;_0x363b0d<_0x347425['length'];_0x363b0d++)0x0!=_0x347425[_0x363b0d]['length']&&_0x3af2c5(_0x347425[_0xce81f0],_0x347425[_0x363b0d])&&_0x3c05b5['push'](_0x363b0d);for(const _0x45c52 of _0x3c05b5)_0x347425[_0xce81f0]=_0x347425[_0xce81f0]['concat'](_0x347425[_0x45c52]),_0x347425[_0x45c52]=[];}for(const _0x412e98 of _0x347425)for(let _0x3627ab=0x0;_0x3627ab<_0x412e98['length'];_0x3627ab++){const _0x3b9dd6=_0x412e98[_0x3627ab+0x1]||null;_0x412e98[_0x3627ab]['next']!==_0x3b9dd6&&(_0x412e98[_0x3627ab]['next']=_0x3b9dd6);}for(const _0x846534 of _0x347425)for(let _0x5bcb0a=0x0;_0x5bcb0a<_0x846534['length'];_0x5bcb0a++){const _0xd16b7a=_0x846534[_0x5bcb0a-0x1]||null;_0x846534[_0x5bcb0a]['previous']!==_0xd16b7a&&(_0x846534[_0x5bcb0a]['previous']=_0xd16b7a);}function _0x3af2c5(_0x1d7b22,_0x1cb654){if(_0x1d7b22[0x0]['attributes']['groupId']!==_0x1cb654[0x0]['attributes']['groupId']&&_0x1d7b22[0x0]['author']!==_0x1cb654[0x0]['author'])return!0x1;if(!function(_0x3b51a3,_0x1d17f5){if(!_0x3b51a3['hasComments']&&!_0x1d17f5['hasComments'])return!0x0;if(_0x3b51a3['hasComments']&&_0x1d17f5['hasComments'])return!0x1;if(_0x3b51a3['hasComments']&&_0x1d17f5['createdAt']<_0x3b51a3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1d17f5['hasComments']&&_0x3b51a3['createdAt']<_0x1d17f5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d7b22[0x0],_0x1cb654[0x0]))return!0x1;const _0x3f8c82=Jt(_0x1d7b22[0x0]['attributes'],['groupId','trackingSessionId']),_0x6477a6=Jt(_0x1cb654[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x296815(_0x3f8c82,_0x6477a6))return!0x1;if(_0x1d7b22[0x0]['attributes']['groupId']==_0x1cb654[0x0]['attributes']['groupId'])return!0x0;if(_0x1d7b22[0x0]['attributes']['trackingSessionId']!==_0x1cb654[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1d7b22['every'](_0xddbdf0=>_0x1cb654['some'](_0xda278=>_0xddbdf0['getFirstRange']()['isEqual'](_0xda278['getFirstRange']())))&&_0x1cb654['every'](_0x4d1ac7=>_0x1d7b22['some'](_0x505ae8=>_0x4d1ac7['getFirstRange']()['isEqual'](_0x505ae8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3af6ee){const _0x5251a1=Array['from'](_0x3af6ee),_0x5e0947=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4bb84d=_0x5e0947['filter'](_0x276699=>!_0x3af6ee['has'](_0x276699)),_0x278c83=new Map(_0x5251a1['map'](_0x211815=>[_0x211815,this['_suggestionFactory']['getSuggestionCallback'](_0x211815['type'],_0x211815['subType'],'join')])),_0xbe50cd=new Map(_0x5e0947['map'](_0x2fdd9a=>[_0x2fdd9a,_0x2fdd9a['getRanges']()]));for(let _0x38de95=0x0;_0x38de95<_0x5251a1['length'];_0x38de95++){if(_0x327905(this,_0x5251a1[_0x38de95],_0x5251a1,_0x38de95+0x1))return!0x0;}for(let _0x64f64c=0x0;_0x64f64c<_0x5251a1['length'];_0x64f64c++){if(_0x327905(this,_0x5251a1[_0x64f64c],_0x4bb84d,0x0))return!0x0;}return!0x1;function _0x327905(_0x1bc347,_0x410891,_0x438ad3,_0x4f5a6a){for(let _0x15ead1=_0x4f5a6a;_0x15ead1<_0x438ad3['length'];_0x15ead1++){const _0x2e9002=_0x438ad3[_0x15ead1];if(_0x2e9002['type']!==_0x410891['type']||_0x2e9002['author']['id']!==_0x410891['author']['id']||_0x2e9002['subType']!==_0x410891['subType'])continue;if(!en(_0x410891,_0x2e9002))continue;if('attribute'==_0x410891['type']&&_0x410891['data']['oldValue']!=_0x2e9002['data']['oldValue'])continue;if('attribute'==_0x410891['type']&&_0x1bc347['_isBlockAttribute'](_0x410891['data']['key']))continue;if('formatBlock'==_0x410891['type']){const _0x4cf86c=_0x1bc347['editor']['model'],_0x4800bd=_0x410891['getContainedElement']();if(_0x4800bd&&(_0x4cf86c['schema']['isObject'](_0x4800bd)||_0x4cf86c['schema']['isLimit'](_0x4800bd)))continue;}const _0x1127a6=_0x278c83['get'](_0x410891),_0x24c712=_0xbe50cd['get'](_0x410891),_0x6a5ec1=_0xbe50cd['get'](_0x2e9002),_0x441e3d=_0x410891['commentThread']&&_0x410891['commentThread']['length'],_0x41ea24=_0x2e9002['commentThread']&&_0x2e9002['commentThread']['length'];if(!_0x441e3d&&_0x1127a6(_0x6a5ec1,_0x24c712))return _0x1bc347['_joinSuggestions'](_0x2e9002,_0x410891),_0xbe50cd['delete'](_0x410891),!0x0;if(!_0x41ea24&&_0x1127a6(_0x24c712,_0x6a5ec1))return _0x1bc347['_joinSuggestions'](_0x410891,_0x2e9002),_0xbe50cd['delete'](_0x2e9002),!0x0;}return!0x1;}}['_joinSuggestions'](_0xcda9b7,_0x4eee43){if(_0xcda9b7['isMultiRange']){for(const _0xdfef8c of _0x4eee43['getRanges']())_0xcda9b7['addRange'](_0xdfef8c);}else{const _0x137165=_0x4eee43['getFirstRange']()['end'];this['_setSuggestionRange'](_0xcda9b7,this['_model']['createRange'](_0xcda9b7['getFirstRange']()['start'],_0x137165));}_0x4eee43['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1e3166,_0x1369ae,_0x1381cf){const _0x239002=_0x1e3166['startsWith']('format')||_0x1e3166['startsWith']('attribute')?'FORMATTING':_0x1e3166['toUpperCase']();return o(this['editor']['locale'],_0x1369ae+'_'+_0x239002+'_SUGGESTION_ANNOUNCEMENT',_0x1381cf);}['_initAriaMarkerChangeAnnouncements'](){const _0x25ff84=this['editor'];if(!_0x25ff84['ui'])return;const {ariaLiveAnnouncer:_0x3aa315}=_0x25ff84['ui'];_0x34d6c5(this['_model'],({left:_0x3ca5b1,entered:_0x3baa8c})=>{for(const _0x43633e of _0x3ca5b1){const {group:_0x7597,type:_0x2d524c}=this['_splitMarkerName'](_0x43633e['name']);if('suggestion'===_0x7597){_0x3aa315['announce'](this['_getMarkerAnnouncementText'](_0x2d524c,'LEAVE'));break;}}for(const _0x30d426 of _0x3baa8c){const {group:_0x49a700,type:_0x6b752e}=this['_splitMarkerName'](_0x30d426['name']);if('suggestion'===_0x49a700){_0x3aa315['announce'](this['_getMarkerAnnouncementText'](_0x6b752e,'ENTER',_0x38a6f9(_0x46d197)));break;}}});}['_processAttributeChanges'](_0x28591f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x43949c=this['editor'],_0x3294af=_0x43949c['model']['document']['differ']['getChanges']();if(0x0==_0x3294af['length'])return!0x1;const _0x2ab950=[],_0x5f0d59=_0x3294af['filter'](_0x5f379d=>'attribute'==_0x5f379d['type']),_0x1aa3a2=_0x3294af['filter'](_0x5cfbd3=>'insert'==_0x5cfbd3['type']&&'$text'!=_0x5cfbd3['name']),_0x5000e8=_0x3294af['filter'](_0x1f42b9=>'remove'==_0x1f42b9['type']&&'$text'!=_0x1f42b9['name']);for(const _0x54b9d7 of _0x5f0d59)_0x2ab950['push']({'key':_0x54b9d7['attributeKey'],'newValue':_0x54b9d7['attributeNewValue'],'oldValue':_0x54b9d7['attributeOldValue'],'range':Zt(_0x54b9d7['range'],_0x43949c['model'])});for(const _0x75c76f of _0x1aa3a2){const _0x2f8d3e=_0x5000e8['find'](_0x12a5d1=>_0x12a5d1['position']['isEqual'](_0x75c76f['position']));_0x2f8d3e&&_0x2ab950['push']({'key':m,'newValue':_0x75c76f['name'],'oldValue':_0x2f8d3e['name'],'range':_0x43949c['model']['createRangeOn'](_0x75c76f['position']['nodeAfter'])});}return 0x0!=_0x2ab950['length']&&this['_reduceExistingSuggestions'](_0x28591f,_0x2ab950);}['_processAttributeSuggestions'](_0x532415){let _0x1f4830=!0x1;const _0x5d1fbf=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x28055e=>_0x28055e['data']['newRange']&&_0x28055e['name']['startsWith']('suggestion:attribute:'));for(const _0x512df4 of _0x5d1fbf){const {subType:_0xeb6514,id:_0x11d206}=this['_splitMarkerName'](_0x512df4['name']),_0xf268f9=_0xeb6514['split']('|')[0x0];for(const _0x207c39 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x207c39['id']!=_0x11d206&&'attribute'==_0x207c39['type']&&_0x207c39['data']&&_0x207c39['data']['key']==_0xf268f9&&_0x207c39['getFirstRange']()['isIntersecting'](_0x512df4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x207c39,_0x512df4['data']['newRange'],_0x532415),_0x1f4830=!0x0);}return _0x1f4830;}['recordAttributeChanges'](_0xda7346){this['_recordAttributeSuggestions']=!0x0,_0xda7346();}['_isRegisteredAttribute'](_0x51e57d){return this['editor']['plugins']['get'](_0x1c636c)['isRegisteredAttribute'](_0x51e57d);}['_reduceExistingSuggestions'](_0x3dac19,_0x1ac5f5){if(0x0==_0x1ac5f5['length'])return!0x1;let _0x5e0251=!0x1;for(const _0x49450f of _0x1ac5f5){const _0x32aadf=this['_findSuggestions'](_0x49450f['range'],'attribute')['filter'](_0x46aa08=>!_0x46aa08['meta']['isNextTo'])['map'](_0x58b856=>_0x58b856['suggestion']),_0x56e137=_0xa25f63({'newValue':_0x49450f['newValue']});_0x32aadf['filter'](_0xf3742f=>{const [_0x43ab28,_0x5df642]=_0xf3742f['subType']['split']('|');return _0x43ab28==_0x49450f['key']&&_0x5df642!=_0x56e137;})['forEach'](_0xb9901e=>{this['_reduceSuggestionAttributeRange'](_0xb9901e,_0x49450f['range'],_0x3dac19),_0x5e0251=!0x0;});}return _0x5e0251;}['_reduceSuggestionAttributeRange'](_0x185065,_0x46fd3f,_0x89da4b){const _0x4fbd9b=_0x185065['getFirstRange']()['getDifference'](_0x46fd3f);0x0!==_0x4fbd9b['length']?0x1!==_0x4fbd9b['length']?this['_breakSuggestionMarker'](_0x185065,_0x46fd3f['start'],_0x46fd3f['end']):this['_setSuggestionRange'](_0x185065,_0x4fbd9b[0x0]):_0x89da4b['removeMarker'](_0x185065['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5daeea){this['_editor']=_0x5daeea,this['_model']=_0x5daeea['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x35873e,_0x2ebf99,_0x4431be,_0x362d51,_0x21b576,_0x1f5f05,_0x3241a6){return new T(this['_model'],{'type':_0x35873e,'subType':_0x2ebf99,'id':_0x4431be,'originalSuggestionId':_0x3241a6,'author':_0x362d51,'creator':_0x362d51,'attributes':_0x21b576,'onAttributesChange':_0x1f5f05,'onAccept':(..._0x46dc1c)=>this['getSuggestionCallback'](_0x35873e,_0x2ebf99,'accept')(..._0x46dc1c),'onDiscard':(..._0x4a3027)=>this['getSuggestionCallback'](_0x35873e,_0x2ebf99,'discard')(..._0x4a3027)});}['registerCustomCallback'](_0xdf66b3,_0x5f14ec,_0x426d3e,_0x1b2271){const _0x56901a=_0xdf66b3+':'+_0x5f14ec+':'+_0x426d3e;this['_customCallbacks']['set'](_0x56901a,_0x1b2271);}['getSuggestionCallback'](_0x5dd405,_0x171669,_0x56d14e){const _0x354eb1=_0x5dd405+':'+_0x171669+':'+_0x56d14e;return this['_customCallbacks']['get'](_0x354eb1)||this['_defaultCallbacks']['get'](_0x5dd405+':'+_0x56d14e);}['_registerDefaultCallbacks'](){const _0x41cc1a=()=>!0x1,_0x471764=_0x1d2bd5=>{_0x1d2bd5['sort']((_0x1450de,_0x1a78cf)=>_0x1450de['start']['isBefore'](_0x1a78cf['start'])?0x1:-0x1),this['_model']['change'](_0x45b9af=>{for(const _0x2a293f of _0x1d2bd5){let _0x3784e5;_0x3784e5=_0x2a293f['end']['isAtEnd']&&_0x2a293f['end']['parent']==_0x2a293f['start']['nodeAfter']?_0x45b9af['createSelection'](_0x2a293f['start']['nodeAfter'],'on'):_0x45b9af['createSelection'](_0x2a293f),this['_model']['deleteContent'](_0x3784e5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5c4280=(_0xa6a811,_0x5408a2)=>{_0x5408a2&&this['_model']['change'](_0x39bc0c=>{const {commandName:_0x499ee6,commandParams:_0x590f81=[]}=_0x5408a2,_0x21d63c=_0xa6a811['map'](_0x13ab1a=>(Kt(_0x13ab1a)&&(_0x13ab1a=this['_model']['createRange'](_0x13ab1a['end'])),_0x13ab1a))['filter'](_0x444fc7=>'$graveyard'!==_0x444fc7['root']['rootName']);if(_0x21d63c['length']<0x1)return;const _0x189424=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x343a3e=>_0x2d0a07['fromRange'](_0x343a3e));_0x39bc0c['setSelection'](_0x21d63c);for(const _0x276e7b of this['_editor']['commands']['commands']())_0x276e7b['refresh']();_0x590f81['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x499ee6,..._0x590f81);const _0x524964=_0x189424['filter'](_0x2b9543=>'$graveyard'!=_0x2b9543['root']['rootName']);_0x524964['length']>0x0&&_0x39bc0c['setSelection'](_0x524964);for(const _0x5427dc of _0x189424)_0x5427dc['detach']();});},_0x3c6493=(_0x24632a,_0x29cfa4)=>0x1==_0x24632a['length']&&0x1==_0x29cfa4['length']&&_0x24632a[0x0]['end']['isEqual'](_0x29cfa4[0x0]['start']),_0x55b035=(_0x4cbbee,_0x2af453,_0x424aba,_0x5a0f4f)=>nn(_0x4cbbee,_0x2af453,_0x424aba,_0x5a0f4f)?[_0x4cbbee,_0x2af453]:nn(_0x2af453,_0x4cbbee,_0x5a0f4f,_0x424aba)?[_0x2af453,_0x4cbbee]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x41cc1a),this['_defaultCallbacks']['set']('insertion:discard',_0x471764),this['_defaultCallbacks']['set']('insertion:join',_0x3c6493),this['_defaultCallbacks']['set']('insertion:chain',_0x55b035),this['_defaultCallbacks']['set']('deletion:accept',_0x471764),this['_defaultCallbacks']['set']('deletion:discard',_0x41cc1a),this['_defaultCallbacks']['set']('deletion:join',_0x3c6493),this['_defaultCallbacks']['set']('deletion:chain',_0x55b035),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c4280),this['_defaultCallbacks']['set']('formatInline:discard',_0x41cc1a),this['_defaultCallbacks']['set']('formatInline:join',_0x3c6493),this['_defaultCallbacks']['set']('formatInline:chain',_0x41cc1a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c4280),this['_defaultCallbacks']['set']('formatBlock:discard',_0x41cc1a),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c6493),this['_defaultCallbacks']['set']('formatBlock:chain',_0x41cc1a),this['_defaultCallbacks']['set']('attribute:accept',_0x41cc1a),this['_defaultCallbacks']['set']('attribute:discard',(_0xe7ddb5,_0x4d8868)=>{if(!_0x4d8868)return;const _0x222e05=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x356cf0=>{if(_0x4d8868['key']==m)for(const _0x2acd20 of _0xe7ddb5){const _0x291163=_0x2acd20['start']['nodeAfter'],_0x2d438f=_0x4d8868['oldValue'];_0x356cf0['rename'](_0x291163,_0x2d438f);}else{if(_0x222e05['_isBlockAttribute'](_0x4d8868['key'])){for(const _0x5ac09d of _0xe7ddb5)void 0x0!==_0x4d8868['oldValue']?_0x356cf0['setAttribute'](_0x4d8868['key'],_0x4d8868['oldValue'],_0x5ac09d['start']['nodeAfter']):_0x356cf0['removeAttribute'](_0x4d8868['key'],_0x5ac09d['start']['nodeAfter']);}else{for(const _0x272164 of _0xe7ddb5)_0x4d8868['oldValue']?_0x356cf0['setAttribute'](_0x4d8868['key'],_0x4d8868['oldValue'],_0x272164):_0x356cf0['removeAttribute'](_0x4d8868['key'],_0x272164);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c6493);}}function zt(_0x35831f,_0x9b778e,_0x55db93){for(const _0x9a8b1f of _0x9b778e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x9a8b1f['root']==_0x9a8b1f)return!0x1;if(!_0x55db93['containsItem'](_0x9a8b1f))return!0x1;if(_0x35831f['isObject'](_0x9a8b1f)||_0x35831f['isLimit'](_0x9a8b1f))return!0x0;}return!0x1;}function Kt(_0x2f3856){return _0x2f3856['end']['parent']==_0x2f3856['start']['nodeAfter']&&_0x2f3856['end']['isAtStart'];}function Wt(_0x5a062f,_0x3e3907,_0x32fe0d,_0x3b0b10){const _0x46e566=_0x35be08=>!_0x35be08['item']['is']('$textProxy')&&!_0x3b0b10['isObject'](_0x35be08['item']),_0x31c78d=_0x5a062f['start']['getLastMatchingPosition'](_0x46e566),_0x11134d=_0x5a062f['end']['getLastMatchingPosition'](_0x46e566,{'direction':'backward'});return(!_0x5a062f['start']['isEqual'](_0x31c78d)||!_0x5a062f['end']['isEqual'](_0x11134d))&&(_0x31c78d['isBefore'](_0x11134d)?_0x32fe0d['updateMarker'](_0x3e3907,{'range':_0x32fe0d['createRange'](_0x31c78d,_0x11134d)}):_0x32fe0d['removeMarker'](_0x3e3907),!0x0);}function Ht(_0x507cc5){return _0xa25f63(_0x507cc5);}function Qt(_0x23d63d){const _0x2193d0=_0x23d63d['start']['nodeAfter'];return _0x2193d0&&_0x2193d0['is']('element');}function Xt(_0x20c9e1){return Kt(_0x20c9e1)||function(_0x192adb){return _0x192adb['start']['parent']==_0x192adb['end']['nodeBefore']&&_0x192adb['start']['isAtEnd'];}(_0x20c9e1);}function Yt(_0x56796e,_0x7f609e){try{const _0x386d04=_0x56796e['getRange']();for(const _0x4a8164 of _0x7f609e)if(_0x56796e!==_0x4a8164&&_0x386d04&&_0x386d04['isIntersecting'](_0x4a8164['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x522f9d,_0x595cce){return null==_0x522f9d['end']['nodeBefore']&&_0x522f9d['end']['parent']==_0x522f9d['start']['nodeAfter']?tn(_0x522f9d['start']['nodeAfter'],_0x595cce):_0x522f9d;}function tn(_0x14666f,_0x5ae6af){const _0x359298=_0x5ae6af['schema']['isObject'](_0x14666f)||_0x5ae6af['schema']['isSelectable'](_0x14666f);return _0x5ae6af['createRange'](_0x5ae6af['createPositionAt'](_0x14666f,'before'),_0x359298?_0x5ae6af['createPositionAfter'](_0x14666f):_0x5ae6af['createPositionAt'](_0x14666f,'end'));}function nn(_0x9572c1,_0x4477b5,_0x514cd1,_0x1f5e7c){return!!en(_0x9572c1,_0x4477b5)&&_0x514cd1['end']['isEqual'](_0x1f5e7c['start']);}function en(_0x4d97ab,_0x2654ef){if(!_0x4d97ab['_isDataLoaded']||!_0x2654ef['_isDataLoaded'])return!0x1;const _0x5ef283=new Set(Object['keys'](_0x4d97ab['attributes'])),_0x406731=new Set(Object['keys'](_0x2654ef['attributes']));if(_0x5ef283['delete']('groupId'),_0x406731['delete']('groupId'),0x0==_0x5ef283['size']&&0x0==_0x406731['size'])return!0x0;if(_0x5ef283['size']!=_0x406731['size'])return!0x1;const _0x22c230={..._0x4d97ab['attributes']},_0x53b13a={..._0x2654ef['attributes']};return delete _0x22c230['groupId'],delete _0x53b13a['groupId'],JSON['stringify'](_0x22c230)==JSON['stringify'](_0x53b13a);}function sn(_0x365edc,_0x110682){const _0x3da1d4=on(_0x365edc['attributes']),_0x7af9a5=on(_0x110682);if(!_0x365edc['_isDataLoaded'])return!0x1;for(const _0x69600c of Object['keys'](_0x7af9a5))if(!_0x296815(_0x3da1d4[_0x69600c],_0x7af9a5[_0x69600c]))return!0x1;return!0x0;}function on(_0x1b4ae1){const _0x5c94ba=Object['assign']({},_0x1b4ae1);return delete _0x5c94ba['skipNestingCheck'],delete _0x5c94ba['tablePasteChainId'],_0x5c94ba;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x2e55e5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xd89a3b,_0x2a770f,_0x44e92f,_0x1a4cab){super(),this['model']=_0x2a770f,this['view']=_0x44e92f,this['commentThreadController']=_0x1a4cab,this['_editor']=_0xd89a3b,this['_acceptCommand']=_0xd89a3b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xd89a3b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1ad4a2,_0x459cb8)=>_0x1ad4a2||_0x459cb8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x31ad47=>_0x31ad47&&this['_editor']['model']['canEditAt'](_0x2a770f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x41589c=>_0x41589c&&this['_editor']['model']['canEditAt'](_0x2a770f['getRanges']())),this['_pendingAction']=null,_0x44e92f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x44e92f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x44e92f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x44e92f,'change:isDirty',()=>{_0x44e92f['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 _0x4b0a22=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4b0a22);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x563d26{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3486ce,_0x4e7575,_0x299ab5,_0x55fa42){super(_0x3486ce),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b6c2b(_0x3486ce,o(_0x3486ce,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4e7575['authoredAt']),this['bind']('authoredAt')['to'](_0x4e7575),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',_0x4e7575,'authoredAt',this,'descriptionParts',(_0xc49eb2,_0x379d41,_0x4e1567)=>{const _0x5cc352=_0x4e1567['map'](_0x112a82=>ls(_0x112a82['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xc49eb2-0x1,_0x4e7575['author']['name'],_0x379d41?_0x55fa42['formatDateTime'](_0x379d41):'',new DOMParser()['parseFromString'](_0x5cc352,'text/html')['body']['textContent']]);}),this['focusables']=new _0x318978(),this['focusTracker']=new _0x52ecff(),this['keystrokes']=new _0xaafe83(),this['focusCycler']=new _0x1d36f9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x208896=>_0x208896['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4e7575,this['_localUser']=_0x299ab5,this['_config']=_0x55fa42,_0x55fa42['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x561b4b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x114828}=this['_config'];this['commentsListView']=new _0x114828(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',_0x506450=>_0x506450+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x56e1f5,_0x11d676)=>_0x56e1f5||!!_0x11d676);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2b5259}=this['_config'],_0x33ff56=new _0x2b5259(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1d3d77=_0x33ff56['commentInputView'];return _0x33ff56['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1d3d77,'value',(_0x50e85c,_0x49c769,_0xc58f35)=>!!_0xc58f35||_0x50e85c&&!_0x49c769),_0x1d3d77['on']('submit',(_0x34494c,_0x832b5c)=>{this['fire']('addComment',_0x832b5c),_0x1d3d77['editor']['setData']('');}),_0x1d3d77['on']('cancel',()=>this['focus']()),_0x1d3d77['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x33ff56;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x5acb56,_0x347bc2,_0x15783e,_0x5ec23e){super(_0x5acb56,_0x347bc2,_0x15783e,_0x5ec23e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x32bc71=>_0x32bc71&&_0x32bc71[0x0]?_0x32bc71[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2e7933,_0x29f3e8)=>{let _0x1f69f5='';for(const _0x2c83a8 of _0x2e7933)_0x1f69f5+='<p>'+ls(_0x2c83a8['content'],_0x2c83a8['color'])+'</p>';return _0x29f3e8?_0x1f69f5:_0x4c86e5(_0x1f69f5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5ec23e['SuggestionView'](_0x5acb56,_0x347bc2,{'formatDateTime':_0x5ec23e['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 _0x27a989=this['bindTemplate'],_0x152d2a=[this['suggestionView']];return this['commentsListView']&&_0x152d2a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x152d2a['push'](this['commentThreadInputView']),_0x152d2a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x27a989['if']('isActive','ck-suggestion-wrapper--active'),_0x27a989['to']('type',_0xc755f1=>'ck-suggestion-'+_0xc755f1),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':_0x27a989['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x152d2a};}['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 _0x563d26{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3f3a80,_0x1c633a,_0x5775da){super(_0x3f3a80),this['_model']=_0x1c633a,this['_config']=_0x5775da,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1c633a),this['acceptButton']=this['_createButton'](o(_0x3f3a80,'Accept\x20suggestion'),_0x36c46f,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3f3a80,'Discard\x20suggestion'),_0x356156,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x22ad06(_0x3f3a80,_0x1c633a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x318978([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x52ecff(),this['keystrokes']=new _0xaafe83(),this['focusCycler']=new _0x1d36f9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4a1c4c=>_0x4a1c4c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x41c046=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x41c046['innerHTML']=this['description'],this['on']('change:description',(_0x3751b5,_0x4374f7,_0x162837)=>{_0x41c046['innerHTML']=_0x162837;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2f81fa=this['bindTemplate'],_0x45d951=[{'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':_0x2f81fa['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2f81fa['to']('authoredAt',_0x899d8b=>this['_config']['formatDateTime'](_0x899d8b))}]}]},{'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']&&_0x45d951['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':_0x45d951}]};}['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'](_0x4853ff,_0xdd5dc0,_0x3b7596,_0x54ddca,_0x1ee892){const _0x157fb8=new _0x473b5a(this['locale']);return _0x157fb8['set']({'label':_0x4853ff,'icon':_0xdd5dc0,'tooltip':!0x0,'tooltipPosition':_0x1ee892}),_0x157fb8['extendTemplate']({'attributes':{'class':_0x3b7596}}),_0x157fb8['on']('execute',()=>{this['fire'](_0x54ddca,this['_model']['id']);}),_0x157fb8;}['_setupKeyboardNavigation'](){const _0x2962d8=this['element'];this['keystrokes']['listenTo'](_0x2962d8);for(const _0x16eee2 of this['focusables'])this['focusTracker']['add'](_0x16eee2['element']),this['keystrokes']['listenTo'](_0x16eee2['element']);this['keystrokes']['set']('enter',(_0x5ee79c,_0x4f89c1)=>{_0x2962d8===_0x5ee79c['target']&&(this['focusCycler']['focusFirst'](),_0x4f89c1());}),this['keystrokes']['set']('esc',(_0x58ad3e,_0x334390)=>{_0x2962d8!==_0x58ad3e['target']&&(this['focus'](),_0x334390());});}}class u extends _0x40606b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x441a0c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57b946){super(_0x57b946),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2c4cc0=this['editor']['config'];_0x2c4cc0['define']('trackChanges.SuggestionThreadView',fe),_0x2c4cc0['define']('trackChanges.SuggestionView',we),_0x2c4cc0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2c4cc0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x291414,_0x3de74f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x292548,_0x282c8b]of this['_handleControllerBuffer']){const _0x5b6d42=this['_suggestionToController']['has'](_0x292548);_0x5b6d42||_0x282c8b?_0x5b6d42&&_0x282c8b&&this['_destroyController'](_0x292548):this['_initializeController'](_0x292548);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x291414,_0x3de74f);}['init'](){const _0x47eac2=this['editor'],_0x3bfb29=_0x47eac2['plugins']['get']('TrackChangesEditing'),_0x4be1c2=_0x47eac2['plugins']['get']('Annotations'),_0x56ddba=_0x47eac2['plugins']['get']('EditorAnnotations'),_0x2cb75c=_0x47eac2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x56ddba['addSourceCollector'](()=>{const _0x26953a=[];for(const [_0x30cf78,_0x427169]of Array['from'](this['_suggestionToController'])){const _0x55c8ae=_0x30cf78['getAllAdjacentSuggestions'](),_0x1b15cf=[];for(const _0x34442f of _0x55c8ae){if(!_0x34442f['isInContent'])continue;if(_0x34442f['isMultiRange']){_0x1b15cf['push'](..._0x34442f['getRanges']());continue;}const _0x27f6f8=_0x34442f['getFirstRange']();if(_0x1b15cf['length']>0x0){const _0x2f8bc5=_0x1b15cf[0x0]['getJoined'](_0x27f6f8);if(_0x2f8bc5){_0x1b15cf[0x0]=_0x2f8bc5;continue;}}_0x1b15cf['push'](_0x27f6f8);}_0x26953a['push']([_0x427169['view'],_0x1b15cf]);}return _0x26953a;}),this['listenTo'](_0x3bfb29,'suggestionLoaded',(_0x4e404b,_0x47aae9)=>{this['listenTo'](_0x47aae9,'change:previous',(_0x4f8e28,_0x38a8a3,_0x3819ba,_0xc54b5a)=>{_0x47aae9['isInContent']&&(null==_0x3819ba?(this['_updateController'](_0xc54b5a['head']),this['_handleSuggestionControllerDelayed'](_0x47aae9,!0x1)):(this['_updateController'](_0x3819ba['head']),null==_0xc54b5a&&this['_handleSuggestionControllerDelayed'](_0x47aae9,!0x0)));}),null!==_0x47aae9['previous']?this['_updateController'](_0x47aae9['head']):this['_handleSuggestionControllerDelayed'](_0x47aae9,!0x1);}),this['listenTo'](_0x3bfb29,'suggestionUnloaded',(_0x493a73,_0x3cf871,_0x3991be)=>{this['stopListening'](_0x3cf871,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3cf871),this['_suggestionToController']['has'](_0x3cf871)&&this['_destroyController'](_0x3cf871),_0x3991be&&this['_updateController'](_0x3991be['head']);}),this['listenTo'](_0x3bfb29,'suggestionChanged',(_0x6a33da,_0x6116f5)=>{this['_updateController'](_0x6116f5);}),this['listenTo'](_0x4be1c2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2cb75c,'addComment',(_0x37cec0,{threadId:_0x7ec3e6,isFromAdapter:_0x361af1})=>{if(_0x361af1||!_0x3bfb29['hasSuggestion'](_0x7ec3e6))return;const _0x522bff=_0x3bfb29['getSuggestion'](_0x7ec3e6);this['_suggestionToController']['get'](_0x522bff)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40a818=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35ef92;for(const _0x4bbf6e in _0x40a818){const _0x3c7a74=_0x4bbf6e,_0x35846b=_0x40a818[_0x3c7a74];if('trackChangesLicenseKeyValid'==_0x35846b||'trackChangesLicenseKeyInvalid'==_0x35846b||'trackChangesLicenseKeyExpired'==_0x35846b||'trackChangesLicenseKeyDomainLimit'==_0x35846b||'trackChangesLicenseKeyNotAllowed'==_0x35846b||'trackChangesLicenseKeyEvaluationLimit'==_0x35846b||'trackChangesLicenseKeyUsageLimit'==_0x35846b){delete _0x40a818[_0x3c7a74],_0x35ef92=_0x35846b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x35ef92&&_0x40a818['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x35ef92&&_0x40a818['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x35ef92&&_0x40a818['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x35ef92&&_0x40a818['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x35ef92&&_0x40a818['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x35ef92&&_0x40a818['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x57076e){const _0x2a6036=this['_suggestionToController']['get'](_0x57076e);if(!_0x2a6036)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2a6036['view'])||null;}['getSuggestionForAnnotation'](_0x19642f){const _0x4df2ca=this['_viewToController']['get'](_0x19642f['innerView']);return _0x4df2ca?_0x4df2ca['model']:null;}['_refreshActiveMarkers'](){const _0x2a0574=this['editor']['plugins']['get']('Annotations'),_0x486860=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bb3d9=Array['from'](_0x2a0574['activeAnnotations'],_0x43724d=>_0x43724d['innerView'])['filter'](_0x2464b1=>this['_viewToController']['has'](_0x2464b1)),_0x5bef66=[];for(const _0x3c79d2 of _0x4bb3d9){const _0x36bfdf=this['_viewToController']['get'](_0x3c79d2)['model']['getAllAdjacentSuggestions']();_0x5bef66['push'](..._0x36bfdf['reduce']((_0x3054fa,_0x584e96)=>[..._0x3054fa,..._0x584e96['getMarkerNames']()],[]));}_0x486860['activeMarkers']=_0x5bef66;}['_addUIComponentsToFactory'](){const _0x2cac40=this['editor'],_0x161643=_0x2cac40['locale'],_0x9de0d9=o(_0x161643,'Track\x20changes'),_0x4776bc=new _0x4f1e63([{'type':'switchbutton','model':new _0x3e549e({'withText':!0x0,'isToggleable':!0x0,'label':_0x9de0d9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3e549e({'withText':!0x0,'label':o(_0x161643,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3e549e({'withText':!0x0,'label':o(_0x161643,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3e549e({'withText':!0x0,'label':o(_0x161643,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3e549e({'withText':!0x0,'label':o(_0x161643,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2cac40['plugins']['has']('TrackChangesPreview')&&_0x4776bc['addMany']([{'type':'separator'},{'type':'button','model':new _0x3e549e({'withText':!0x0,'label':o(_0x161643,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x556ef8 of _0x4776bc)if(ke(_0x556ef8)){const _0x3fbf10=_0x2cac40['commands']['get'](_0x556ef8['model']['commandName']);_0x556ef8['model']['bind']('isOn','isEnabled')['to'](_0x3fbf10,'value','isEnabled');}_0x2cac40['ui']['componentFactory']['add']('trackChanges',_0xabb212=>this['_createToolbarButton'](_0xabb212,_0x4776bc,_0x9de0d9)),_0x2cac40['ui']['componentFactory']['add']('menuBar:trackChanges',_0x55bbd9=>this['_createMenuBarMenu'](_0x55bbd9,_0x4776bc,_0x9de0d9));}['_createToolbarButton'](_0xb94999,_0x3aaa36,_0x275c09){const _0x1a8d6a=_0x3cac16(_0xb94999,_0x27ed37),_0x522bc0=this['editor']['commands']['get']('trackChanges');_0x1a8d6a['buttonView']['set']({'tooltip':_0x275c09,'label':_0x275c09,'icon':_0x1e7895}),_0x1a8d6a['buttonView']['bind']('isOn')['to'](_0x522bc0,'value'),_0x1a8d6a['buttonView']['on']('execute',()=>{_0x522bc0['execute'](),this['editor']['editing']['view']['focus']();}),_0x3d99db(_0x1a8d6a,_0x3aaa36,{'role':'menu'});const _0xf72324=[];for(const _0x205df1 of _0x3aaa36)ke(_0x205df1)&&_0xf72324['push'](this['editor']['commands']['get'](_0x205df1['model']['commandName']));const _0x90f3bd=_0x1a8d6a['buttonView'];return _0x90f3bd['actionView']['unbind']('isEnabled'),_0x90f3bd['arrowView']['unbind']('isEnabled'),_0x90f3bd['actionView']['bind']('isEnabled')['to'](_0x522bc0,'isEnabled'),_0x90f3bd['arrowView']['bind']('isEnabled')['toMany'](_0xf72324,'isEnabled',(..._0x49daeb)=>_0x49daeb['some'](_0x1b6de9=>_0x1b6de9)),_0x1a8d6a['on']('execute',_0x3571a8=>{this['editor']['execute'](_0x3571a8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a8d6a;}['_createMenuBarMenu'](_0x19f3dc,_0x3f3015,_0x2f8be0){const _0x5da9a0=new _0x5accc2(_0x19f3dc),_0x395030=this['editor']['commands']['get']('trackChanges');_0x5da9a0['buttonView']['set']({'label':_0x2f8be0,'icon':_0x1e7895});const _0x4d7af1=new _0x182dee(_0x19f3dc);for(const _0x2b4830 of _0x3f3015){if('separator'==_0x2b4830['type']){_0x4d7af1['items']['add'](new _0x3fb307(_0x19f3dc));continue;}const _0x41b4af=new _0x1d8221(_0x19f3dc,_0x5da9a0),_0x47a815=new _0x4e34b0(_0x19f3dc),_0x2e9776=_0x2b4830['model'];_0x47a815['bind'](...Object['keys'](_0x2e9776))['to'](_0x2e9776),_0x47a815['delegate']('execute')['to'](_0x5da9a0),_0x47a815['on']('execute',()=>{this['editor']['execute'](_0x2e9776['commandName']),this['editor']['editing']['view']['focus']();}),_0x41b4af['children']['add'](_0x47a815),_0x4d7af1['items']['add'](_0x41b4af);}return _0x5da9a0['bind']('isEnabled')['to'](_0x395030,'isEnabled'),_0x5da9a0['panelView']['children']['add'](_0x4d7af1),_0x5da9a0;}['_initializeController'](_0x3e7203){const _0x134ec2=this['editor'],_0x2d05b0=_0x134ec2['config'],_0x1f2d62=_0x134ec2['plugins']['get']('Annotations'),_0x3a804f=_0x134ec2['plugins']['get']('CommentsRepository'),_0x2bc839=_0x134ec2['plugins']['get']('EditorAnnotations'),_0x1a3f5d=_0x134ec2['plugins']['get'](_0x441a0c)['me'],_0xcbcb1c=_0x2d05b0['get']('trackChanges')['SuggestionThreadView'],_0x450fdc=_0x2d05b0['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x33802f,CommentThreadInputView:_0x21de94}=_0x134ec2['plugins']['get']('CommentsUI');let _0x3a4f78,_0x26fcd0,_0x419940;this['_annotationViews']['has'](_0x3e7203['id'])?(_0x26fcd0=this['_annotationViews']['get'](_0x3e7203['id']),_0x3a4f78=_0x26fcd0['mainView']):(_0x3a4f78=new _0xcbcb1c(_0x134ec2['locale'],_0x3e7203,_0x1a3f5d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2d05b0['get']('comments.editorConfig'),'licenseKey':_0x2d05b0['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2d05b0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2d05b0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2d05b0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5bd1b5(_0x2d05b0['get']('locale'),_0x134ec2['locale']),'CommentView':_0x2d05b0['get']('comments')['CommentView'],'CommentsListView':_0x33802f,'CommentThreadInputView':_0x21de94,'SuggestionView':_0x450fdc}),_0x3a4f78['suggestionView']['acceptButton']['on']('execute',()=>{_0x134ec2['editing']['view']['focus']();}),_0x3a4f78['suggestionView']['discardButton']['on']('execute',()=>{_0x134ec2['editing']['view']['focus']();}),_0x26fcd0=_0x1f2d62['createAnnotationView'](this['editor']['locale'],_0x3a4f78),_0x26fcd0['bind']('isDirty')['to'](_0x3a4f78,'isDirty'),_0x26fcd0['bind']('length')['to'](_0x3a4f78),_0x26fcd0['bind']('type')['to'](_0x3a4f78,'type',_0x4934e3=>'suggestion-'+_0x4934e3),_0x3a4f78['on']('escape',()=>{_0x419940['fire']('escape');}),this['_annotationViews']['set'](_0x3e7203['id'],_0x26fcd0));const _0x163527=_0x3a804f['createCommentThreadController'](_0x3e7203['commentThread'],_0x3a4f78),_0x47704c=new pe(_0x134ec2,_0x3e7203,_0x3a4f78,_0x163527),_0x207e67=_0x3e7203['getAllAdjacentSuggestions']()['filter'](_0x2bf54b=>_0x2bf54b['isInContent']);_0x3a4f78['descriptionParts']=_0x134ec2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x207e67),this['_suggestionToController']['set'](_0x3e7203,_0x47704c),this['_viewToController']['set'](_0x3a4f78,_0x47704c);const _0x290e39=()=>{const _0x25551e=[],_0x51ba6e=_0x3e7203['getAllAdjacentSuggestions']()['filter'](_0x322ec2=>_0x322ec2['isInContent']);for(const _0x84f0bc of _0x51ba6e)_0x25551e['push'](..._0x84f0bc['getMarkers']());return _0x35e00b(_0x134ec2['editing'],_0x25551e);};_0x419940=_0x1f2d62['createAnnotation']({'view':_0x26fcd0,'target':_0x290e39,'type':()=>'suggestion-'+_0x47704c['view']['type'],'isVisible':!!_0x290e39()}),_0x3a804f['_bindAnnotationToEditors'](_0x3a4f78,_0x419940),_0x1f2d62['add'](_0x419940),_0x2bc839['registerAnnotation'](_0x419940);}['_destroyController'](_0x5a5fbe){const _0x202338=this['editor']['plugins']['get']('CommentsRepository'),_0x4d24b1=this['editor']['plugins']['get']('Annotations'),_0x54833e=this['_suggestionToController']['get'](_0x5a5fbe),_0x267abb=_0x54833e['view'],_0x5deafc=_0x4d24b1['getByInnerView'](_0x267abb);_0x202338['_unbindEditors'](_0x267abb),_0x5deafc&&_0x4d24b1['remove'](_0x5deafc),this['_suggestionToController']['delete'](_0x5a5fbe),this['_viewToController']['delete'](_0x267abb),_0x54833e['destroy']();}['_updateController'](_0x5f5afe){if(!_0x5f5afe['isInContent']||!this['_suggestionToController']['has'](_0x5f5afe))return;const _0x2c77da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43a273=this['_suggestionToController']['get'](_0x5f5afe),_0x5e0151=_0x5f5afe['getAllAdjacentSuggestions']();_0x43a273['view']['descriptionParts']=_0x2c77da['descriptionFactory']['getDescriptions'](_0x5e0151);}['destroy'](){for(const _0x324d54 of this['_suggestionToController']['keys']())this['_destroyController'](_0x324d54);for(const _0x3e838 of this['_annotationViews']['values']())_0x3e838['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x32c0d3){return'model'in _0x32c0d3;}class Ne extends _0x40606b{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xf3dc10){this['editor']['plugins']['get'](d)['adapter']=_0xf3dc10;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x5aee18){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x5aee18);}['getSuggestions']({skipNotAttached:_0x370a4f=!0x1,toJSON:_0x34b227=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x370a4f,'toJSON':_0x34b227});}['getSuggestion'](_0x154ce3){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x154ce3);}}const p=['Pagination'];class re extends _0x40606b{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x522554=this['editor'];if(_0x522554['config']['define']('trackChangesData.editorCreator',_0x330292=>{const _0x536911=_0x522554['model']['document']['getRootNames']()['reduce']((_0x841ac2,_0x70b62e)=>(_0x841ac2[_0x70b62e]='',_0x841ac2),{});return _0x522554['constructor']['create'](_0x536911,_0x330292);}),'function'!=typeof _0x522554['config']['get']('trackChangesData')['editorCreator'])throw new _0x9b4c60('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x49e545){return P(this['editor'],!0x0,_0x49e545);}['getDataWithDiscardedSuggestions'](_0x34ba71){return P(this['editor'],!0x1,_0x34ba71);}}class Fe extends _0x40606b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2b1d94){function _0x211855(_0x3b0125){return _0x3b0125['map'](_0x5e2094=>String['fromCharCode'](_0x5e2094))['join']('');}super(_0x2b1d94),this['result']='end',_0x2b1d94[_0x211855([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x211855([0x76,0x69,0x65,0x77])][_0x211855([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x211855([0x61,0x75,0x74,0x6f]),_0x2b1d94[_0x211855([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x211855([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x211855([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x211855([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x211855([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(_0x125691){return void 0x0!==_0x125691['getRootsAttributes'];}async function P(_0x2b9062,_0xb692f,_0x1db7d8){const _0x38c001=_0x4be5de(_0x2b9062,p);_0x38c001['plugins']['push'](d,Fe),_0x38c001['rootsAttributes']=De(_0x2b9062)?_0x2b9062['getRootsAttributes']():void 0x0;const _0x22be7e=document['createDocumentFragment'](),_0x1e84f1=_0x2b9062['config']['get']('trackChangesData')['editorCreator'],_0x3b0daa=await _0x1e84f1(_0x38c001,()=>function(_0x1abf95){const _0x8a8889=document['createElement']('div');return _0x1abf95['appendChild'](_0x8a8889),_0x8a8889;}(_0x22be7e));!function(_0x18e765,_0x5e0989){const _0x52d1e2=_0x18e765['model']['document']['getRootNames']()['reduce']((_0x3b3b55,_0x427785)=>(_0x3b3b55[_0x427785]=_0x18e765['data']['get']({'rootName':_0x427785}),_0x3b3b55),{}),_0xc3896d=_0x18e765['plugins']['get']('Users')['users']['map'](_0x14094c=>({'id':_0x14094c['id'],'name':_0x14094c['name']})),_0x136904=_0x18e765['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x33d8c2=_0x18e765['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5edcde=_0x5e0989['plugins']['get']('Users'),_0x399d70=_0x5e0989['plugins']['get']('TrackChangesEditing'),_0x516b01=_0x5e0989['plugins']['get']('CommentsRepository');for(const _0x26e6bb of _0x516b01['getCommentThreads']())_0x26e6bb['remove']();for(const _0xbcc557 of _0xc3896d)_0x5edcde['getUser'](_0xbcc557['id'])||_0x5edcde['addUser'](_0xbcc557);_0x5edcde['me']||_0x5edcde['useAnonymousUser']();for(const _0x3a0154 of _0x33d8c2)_0x516b01['addCommentThread'](_0x3a0154);for(const _0x251c06 of _0x136904)_0x399d70['addSuggestionData'](_0x251c06);_0x5e0989['data']['set'](_0x52d1e2);}(_0x2b9062,_0x3b0daa),_0x3b0daa['execute'](_0xb692f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5a5f0d=De(_0x3b0daa)?_0x3b0daa['getFullData'](_0x1db7d8):_0x3b0daa['data']['get'](_0x1db7d8);return await _0x3b0daa['destroy'](),_0x5a5f0d;}class Me extends _0x563d26{['options'];constructor(_0x1cd1b6,_0x45ebcb){super(_0x1cd1b6),this['options']=_0x45ebcb,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'](_0x3a84a6,_0x199242){if(!this['element'])return;const _0x50e419=[];for(const [_0x32d5dc,_0x35f68c]of _0x3a84a6){const _0xa9ad4=document['createElement']('div');_0xa9ad4['setAttribute']('data-ck-root-name',_0x32d5dc),_0xa9ad4['className']=_0x35f68c['classes']+'\x20ck-track-changes-preview__root-container',_0xa9ad4['innerHTML']=_0x35f68c['content'],_0x50e419['push'](_0xa9ad4);}_0x199242(this['element'],_0x50e419),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x205399{constructor(_0x412894){super(_0x412894),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2f6cf1=this['editor'],_0x20eb48=_0x2f6cf1['locale'],_0x482d01=_0x2f6cf1['plugins']['get']('Dialog');let _0x717ed3;const _0x1bf5fa=function(_0x538dc7){const _0x842bb5={};if('editables'in _0x538dc7['ui']['view']){for(const [_0x5513a2,_0x5c8cf2]of Object['entries'](_0x538dc7['ui']['view']['editables']))_0x842bb5[_0x5513a2]=_0x5c8cf2['element'];}else _0x842bb5[_0x538dc7['model']['document']['getRootNames']()[0x0]]=_0x538dc7['ui']['view']['editable']['element'];return _0x842bb5;}(_0x2f6cf1),_0xb3b6f5=function(_0xc6db0f){let _0x35adf0=0x0;for(const _0xccce64 of Object['values'](_0xc6db0f))_0x35adf0=Math['max'](_0x35adf0,_0xccce64['getBoundingClientRect']()['width']);let _0x2dcc28=0x0;for(const _0xa9fe7f of Object['values'](_0xc6db0f))_0x2dcc28+=_0xa9fe7f['getBoundingClientRect']()['height'];const _0x136852=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x952850=Math['min'](_0x2dcc28,_0x136852);return{'width':_0x35adf0,'height':_0x952850};}(_0x1bf5fa);_0x482d01['show']({'id':'finalContentPreview','title':o(_0x20eb48,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x20eb48,{'dialogRects':_0xb3b6f5}),'onHide':()=>{_0x717ed3['detachFromDom']();},'onShow':()=>{_0x2f6cf1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3c9e95=>{const _0x304e19=this['_standarizeRootsData'](_0x3c9e95,_0x2f6cf1,_0x1bf5fa);_0x482d01['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x304e19,_0x2f6cf1['config']['get']('trackChanges.preview.renderFunction'));}),_0x717ed3=new _0x54dae4(_0x20eb48,[_0x482d01['view']]),_0x717ed3['attachToDom'](),_0x717ed3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2f6cf1['once']('destroy',()=>{_0x717ed3['detachFromDom']();});const _0x2b51be=_0x482d01['view']['headerView']['class'];_0x482d01['view']['headerView']['class']=_0x2b51be?_0x2b51be+'\x20ck-reset_all':'ck-reset_all',_0x482d01['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x482d01['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3e1a0c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xa312ce=_0x3e1a0c['previewMode'],_0x4f26c9={};if('$labels'===_0xa312ce){for(const _0x272a42 of _0x3e1a0c['getMergeFieldsIds']())_0x4f26c9[_0x272a42]=_0x3e1a0c['getLabel'](_0x272a42)||_0x272a42;}else{const _0x5c6e9b='$defaultValues'===_0xa312ce?_0x3e1a0c['getDefaultValues']():_0x3e1a0c['getDataSetValues'](_0xa312ce,!0x0);for(const _0x307edb of Object['entries'](_0x5c6e9b)){const [_0x34fe3a,_0x438347]=_0x307edb;_0x4f26c9[_0x34fe3a]=null!==_0x438347?_0x438347:_0x3e1a0c['getLabel'](_0x34fe3a)||_0x34fe3a;}}return{'mergeFieldsData':_0x4f26c9};}['_standarizeRootsData'](_0xd11338,_0x18a359,_0x5661bc){let _0x507234;if('string'==typeof _0xd11338){const _0x499744=_0x18a359['model']['document']['getRootNames']()[0x0];_0x507234={[_0x499744]:_0xd11338};}else _0x507234=_0xd11338;const _0x49b617=this['_fixMediaEmbeds'](_0x507234,_0x18a359),_0x20bf4a=function(_0x16990c,_0x11373a){for(const [_0x4524fd,_0x42cb23]of _0x16990c)_0x42cb23['classes']=_0x11373a[_0x4524fd]['classList']['value']['replace']('ck-focused','');return _0x16990c;}(this['_sortRoots'](_0x18a359)['reduce']((_0x51fcf0,_0x12fd96)=>(_0x51fcf0['push']([_0x12fd96,{'content':_0x49b617[_0x12fd96],'classes':''}]),_0x51fcf0),[]),_0x5661bc);return _0x20bf4a;}['_fixMediaEmbeds'](_0x101f02,_0x53ef1f){if(!_0x53ef1f['plugins']['has']('MediaEmbedEditing'))return _0x101f02;const _0x1356ff=_0x53ef1f['plugins']['get']('MediaEmbedEditing');for(const [_0x2fafcb,_0x374f60]of Object['entries'](_0x101f02)){const _0x2418dd=document['createElement']('div');_0x2418dd['innerHTML']=_0x374f60,(_0x2418dd['querySelectorAll']('figure.media')['forEach'](_0x3dbbd5=>{const _0x40cb3c=_0x3dbbd5['querySelector']('oembed');if(_0x40cb3c){const _0xb987f3=_0x40cb3c['getAttribute']('url');if(_0xb987f3){const _0xa2cd98=_0x1356ff['registry']['getMediaViewElement'](new _0x3db7dc(_0x53ef1f['editing']['view']['document']),_0xb987f3,{'elementName':'','renderForEditingView':!0x0}),_0x249a2e=document['createElement']('div');_0x249a2e['classList']['add']('ck-media__wrapper'),_0xa2cd98['render'](_0x249a2e,_0x53ef1f['editing']['view']['domConverter']),_0x40cb3c['replaceWith'](_0x249a2e);}}}),_0x101f02[_0x2fafcb]=_0x2418dd['innerHTML']);}return _0x101f02;}['_sortRoots'](_0x25bd92){if(!function(_0xd7e1f4){return void 0x0!==_0xd7e1f4['getRootsAttributes'];}(_0x25bd92))return _0x25bd92['model']['document']['getRootNames']();const _0x3c4869=[],_0x17eeab=new Map();for(const _0x2f82c5 of _0x25bd92['model']['document']['getRootNames']()){const _0x191c24=_0x25bd92['editing']['view']['getDomRoot'](_0x2f82c5)['getClientRects']()['item'](0x0);_0x3c4869['push'](_0x2f82c5),_0x17eeab['set'](_0x2f82c5,_0x191c24);}return _0x3c4869['sort']((_0x532333,_0x57212c)=>{const _0x3c8db2=_0x17eeab['get'](_0x532333),_0x2686c9=_0x17eeab['get'](_0x57212c);return _0x3c8db2['y']-_0x2686c9['y']||_0x3c8db2['x']-_0x2686c9['x'];}),_0x3c4869;}}class Ue extends _0x40606b{static get['requires'](){return[re,_0xc1fd6c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x381b7b){super(_0x381b7b),_0x381b7b['commands']['add']('previewFinalContent',new te(this['editor'])),_0x381b7b['config']['define']('trackChanges.preview.renderFunction',(_0x2e1d8c,_0x475a9c)=>{for(const _0x17e92b of _0x475a9c)_0x2e1d8c['appendChild'](_0x17e92b);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x24197b,Plugin as _0x21b897,PendingActions as _0x2d9cd0}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x14cf5c,ObservableMixin as _0x51c730,uid as _0x507a09,priorities as _0x40db57,insertToPriorityArray as _0x5493ae,logWarning as _0x3596a7,getEnvKeystrokeText as _0x4edabd,FocusTracker as _0x12c130,KeystrokeHandler as _0x4e7933,Collection as _0x252848}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xf86e55,IconCancel as _0x38a1f6,IconTrackChanges as _0x492e81}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x447646,View as _0x7bfbf9,ViewCollection as _0x309c9f,FocusCycler as _0x336e4b,UIModel as _0x454017,createDropdown as _0x3e2c8a,SplitButtonView as _0x2e7f7c,addListToDropdown as _0x373682,MenuBarMenuView as _0x47ab01,MenuBarMenuListView as _0x22920b,ListSeparatorView as _0x432481,MenuBarMenuListItemView as _0x39d185,MenuBarMenuListItemButtonView as _0x33663e,BodyCollection as _0x1cc187,Dialog as _0x591aba}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x321259,Users as _0x269535,DocumentCompare as _0x22aaf0,fixElementSuggestionRange as _0x34d940,hashObject as _0x4590a1,splitSuggestionMarkerName as _0x35735f,surroundingMarkersDetector as _0x47accf,FOCUS_ANNOTATION_KEYSTROKE as _0xd78f29,AriaDescriptionView as _0x215f3f,setupThreadKeyboardNavigation as _0x46e44e,trimHtml as _0x4e9505,UserView as _0x4a26c2,LateFocusButtonView as _0x404ead,getDateTimeFormatter as _0x283982,getAllMarkersDomElementsSorted as _0x168d2f,sanitizeEditorConfig as _0x3c94be}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1561ae,ModelLiveRange as _0x5d12c9,ModelLivePosition as _0x2ce536,ViewDowncastWriter as _0x27ab5e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x18e2f5,set as _0x15cbb4,isEqual as _0x41a4ca,unset as _0x5dab03,omit as Jt}from'es-toolkit/compat';import{Delete as _0x1037fe,Input as _0x30dd16}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5166e6}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x479657}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x24197b{['_enabledCommands'];constructor(_0x22d8d8,_0x36c171){super(_0x22d8d8),this['_enabledCommands']=_0x36c171,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 _0x2652ab of this['editor']['commands']['commands']())_0x2652ab['affectsData']&&!this['_enabledCommands']['has'](_0x2652ab)&&_0x2652ab['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3357ab of this['editor']['commands']['commands']())_0x3357ab['affectsData']&&!this['_enabledCommands']['has'](_0x3357ab)&&_0x3357ab['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x24197b{['_suggestions'];constructor(_0x44e189,_0x22f608){super(_0x44e189),this['_suggestions']=_0x22f608,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4c1625){const _0x2cf6e3=this['_suggestions']['get'](_0x4c1625);if(!_0x2cf6e3)throw new _0x14cf5c('track-changes-accept-suggestion-not-found',this);const _0x2f2e5d=_0x2cf6e3['getRanges']();this['editor']['model']['canEditAt'](_0x2f2e5d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2cf6e3);}}class x extends _0x24197b{['_suggestions'];constructor(_0x28c106,_0xdf4154){super(_0x28c106),this['_suggestions']=_0xdf4154,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x40e285){const _0x33253e=this['_suggestions']['get'](_0x40e285);if(!_0x33253e)throw new _0x14cf5c('track-changes-discard-suggestion-not-found',this);const _0x54ed25=_0x33253e['getRanges']();this['editor']['model']['canEditAt'](_0x54ed25)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x33253e);}}function ls(_0x374ed9,_0x5ec110){let _0x31b14c='';return _0x31b14c+=_0x374ed9['split']('*')['map']((_0x144afc,_0x4b3f78)=>_0x4b3f78%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x144afc)+'</span>':rn(_0x144afc))['join'](''),_0x5ec110&&(_0x31b14c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5ec110['value']+'\x22\x20title=\x22'+_0x5ec110['title']+'\x22></span>'),_0x31b14c;}function rn(_0x46b701){const _0x5f428a=document['createElement']('span');return _0x5f428a['innerText']=_0x46b701,_0x5f428a['innerHTML'];}function ts(_0x516207){return _0x516207['sort']((_0x464ca3,_0xe63193)=>'attribute'===_0x464ca3['type']&&'attribute'!==_0xe63193['type']?-0x1:'attribute'!==_0x464ca3['type']&&'attribute'===_0xe63193['type']?0x1:'deletion'==_0x464ca3['type']&&'deletion'!=_0xe63193['type']?-0x1:'deletion'!=_0x464ca3['type']&&'deletion'==_0xe63193['type']?0x1:0x0);}function to(_0x21bb3d,_0x267bf0){let _0x163bef,_0x2f0c3f=0x0;const _0x4f3cd1=[],_0x33c950=_0x267bf0['schema'];for(;_0x2f0c3f<_0x21bb3d['length'];){const _0x45674a=_0x21bb3d[_0x2f0c3f],_0x18a64f=_0x21bb3d[_0x2f0c3f+0x1];_0x163bef||(_0x163bef=_0x267bf0['createPositionBefore'](_0x45674a)),cn(_0x267bf0,_0x45674a,_0x18a64f)||(_0x4f3cd1['push'](_0x267bf0['createRange'](_0x163bef,_0x33c950['isObject'](_0x45674a)?_0x267bf0['createPositionAfter'](_0x45674a):_0x267bf0['createPositionAt'](_0x45674a,'end'))),_0x163bef=null),_0x2f0c3f++;}return _0x4f3cd1;}function cn(_0x411391,_0x196d27,_0x30eb57){if(!_0x30eb57)return!0x1;const _0x5aa623=_0x411391['createPositionAfter'](_0x196d27),_0x2f0ce0=_0x411391['createPositionBefore'](_0x30eb57);return _0x5aa623['isTouching'](_0x2f0ce0);}function rs(_0x35e4d4,_0x55542e,_0x5cf6ac){for(;_0x5cf6ac['length'];){const _0x19eb04=_0x5cf6ac['splice'](0x0,0x64);_0x35e4d4['change'](()=>{for(const _0x7d118b of _0x19eb04)_0x7d118b['isInContent']&&_0x55542e['execute'](_0x7d118b['id']);});}}class M extends _0x24197b{['_command'];['_suggestions'];constructor(_0x4e0e5e,_0x2b292c,_0x9b5d39){super(_0x4e0e5e),this['_command']=_0x2b292c,this['_suggestions']=_0x9b5d39,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2bbca4=Array['from'](this['_suggestions']['values']())['some'](_0x199d42=>_0x199d42['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2bbca4;}['execute'](){const _0x53e85d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x36b98f of _0x53e85d){const _0xc1fa1b=_0x36b98f['getRanges']();if(!this['editor']['model']['canEditAt'](_0xc1fa1b))return;}rs(this['editor']['model'],this['_command'],_0x53e85d);}}class R extends _0x24197b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2b296b,_0x3c09d8,_0x476d98){super(_0x2b296b),this['_command']=_0x3c09d8,this['_suggestions']=_0x476d98,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x24f33f=this['editor']['model']['document']['selection'],_0x4aa498=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1f97f1,_0x58e0cf){const _0x168a07=Array['from'](_0x1f97f1['getRanges']()),_0x5b595e=new Set();for(const _0xa3a037 of _0x58e0cf)if(_0xa3a037['isInContent']){for(const _0x6ae55 of _0x168a07)for(const _0x10f1e5 of _0xa3a037['getRanges']())(_0x6ae55['isIntersecting'](_0x10f1e5)||_0x1f97f1['isCollapsed']&&!_0xa3a037['isMultiRange']&&_0xa3a037['next']&&_0x10f1e5['end']['isTouching'](_0x6ae55['start']))&&_0x5b595e['add'](_0xa3a037);}return _0x5b595e;}(_0x24f33f,_0x4aa498),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x21eb20=ts(Array['from'](this['_selectedSuggestions']));for(const _0x232c6d of _0x21eb20){const _0x5e96cd=_0x232c6d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e96cd))return;}rs(this['editor']['model'],this['_command'],_0x21eb20);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x51c730(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x30710c,_0x1251ce){super(),this['id']=_0x1251ce['id'],this['type']=_0x1251ce['type'],this['subType']=_0x1251ce['subType']||null,this['author']=_0x1251ce['author'],this['creator']=_0x1251ce['creator']||_0x1251ce['author'],this['isExternal']=Boolean(_0x1251ce['attributes']&&_0x1251ce['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1251ce['originalSuggestionId']||null,this['_model']=_0x30710c,this['_onAccept']=_0x1251ce['onAccept'],this['_onDiscard']=_0x1251ce['onDiscard'],this['_onAttributesChange']=_0x1251ce['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1251ce['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 _0x2ca516=this;for(;_0x2ca516['previous'];)_0x2ca516=_0x2ca516['previous'];return _0x2ca516;}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'](_0x266d40){this['_markerNames']['add'](_0x266d40);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2f530e=>this['_model']['markers']['get'](_0x2f530e))['filter'](_0x4fa566=>_0x4fa566);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1dfa1a=>{for(const _0x4d4ece of this['getMarkers']())_0x1dfa1a['removeMarker'](_0x4d4ece);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ecd6d){this['_model']['change'](_0x393d35=>{_0x393d35['removeMarker'](_0x3ecd6d);}),this['_markerNames']['delete'](_0x3ecd6d);}['addRange'](_0x30b51c){const _0x4bcad3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4bcad3),this['_model']['change'](_0x3c4a99=>{_0x3c4a99['addMarker'](_0x4bcad3,{'range':_0x30b51c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x304830){for(const _0x342310 of this['getRanges']())if(_0x342310['isIntersecting'](_0x304830))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2b4370=>_0x2b4370['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4cbed6,_0x140612)=>[..._0x4cbed6,..._0x140612['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x260ff0=this['getRanges']();if(0x1!=_0x260ff0['length'])return null;const _0x511da6=_0x260ff0[0x0],_0x2d0555=_0x511da6['start']['nodeAfter'],_0x3c5620=_0x511da6['end']['nodeBefore'];return _0x2d0555 instanceof _0x1561ae?_0x2d0555!=_0x3c5620?null:_0x2d0555: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 _0x3d3779=[];let _0x525b7b=this['head'];for(;_0x525b7b;)_0x3d3779['push'](_0x525b7b),_0x525b7b=_0x525b7b['next'];return _0x3d3779;}['setAttribute'](_0x441b02,_0x7a2b79){const _0x3fc6ff=_0x18e2f5(this['attributes']);_0x15cbb4(_0x3fc6ff,_0x441b02,_0x7a2b79),_0x41a4ca(_0x3fc6ff,this['attributes'])||(this['attributes']=_0x3fc6ff,this['_onAttributesChange'](_0x3fc6ff));}['removeAttribute'](_0x14f443){const _0x5684d9=_0x18e2f5(this['attributes']);_0x5dab03(_0x5684d9,_0x14f443),_0x41a4ca(_0x5684d9,this['attributes'])||(this['attributes']=_0x5684d9,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 _0x507a09()['substr'](0x1,0x5);}}function o(_0x568c0d,_0x2069fb,_0x8b402){const _0x346c33=_0x568c0d['t'],t=_0x568c0d['t'];switch(_0x2069fb){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',_0x8b402);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x8b402);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x8b402);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x8b402);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x8b402);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',_0x8b402);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x8b402);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',_0x8b402);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x8b402);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x8b402);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x8b402);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x8b402);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x8b402);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x8b402);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x8b402);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x8b402);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x8b402);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x8b402);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x8b402);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x8b402);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x8b402);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x8b402);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x8b402);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x8b402);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x8b402);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'},_0x8b402);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x8b402);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x8b402);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x8b402);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x8b402);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x8b402);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x8b402);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x8b402);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'},_0x8b402);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x8b402);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x8b402);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x8b402);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x8b402);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x8b402);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x8b402);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'},_0x8b402);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'},_0x8b402);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x8b402);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'},_0x8b402);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x8b402);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'},_0x8b402);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x8b402);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x8b402);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x8b402);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x8b402);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x8b402);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'},_0x8b402);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x8b402);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 _0x346c33({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x8b402);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x346c33({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x8b402);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x8b402);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'},_0x8b402);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'},_0x8b402);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'},_0x8b402);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2069fb;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3811e3,_0x4ba40b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3811e3,this['_locale']=_0x4ba40b;}['getDescriptions'](_0x482eb0){const _0x4c5993=[],_0x3e3d95=new Set(),_0x29addf=new Set();for(let _0x2cc466=0x0;_0x2cc466<_0x482eb0['length'];_0x2cc466++){const _0x537c10=_0x482eb0[_0x2cc466];if(!_0x537c10['isInContent'])continue;const _0x43194c=this['_handleCustomCallbackDescription'](_0x537c10);if(_0x43194c){if(null!=_0x537c10['subType']){if(_0x3e3d95['has'](_0x537c10['subType']))continue;_0x3e3d95['add'](_0x537c10['subType']);}_0x4c5993['push'](_0x43194c);}else{if('attribute'==_0x537c10['type']){const _0x3107f3=_0x537c10['data']['key'];if(_0x29addf['has'](_0x3107f3))continue;_0x29addf['add'](_0x537c10['data']['key']),_0x3107f3==m?this['_handleRenameSuggestionDescription'](_0x4c5993,_0x537c10):this['_handleAttributeSuggestionDescription'](_0x4c5993,_0x537c10);continue;}'insertion'!=_0x537c10['type']&&'deletion'!=_0x537c10['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4c5993,_0x537c10,_0x482eb0[_0x2cc466+0x1]);}}return this['_resolveDescriptionItems'](_0x4c5993);}['registerDescriptionCallback'](_0x476ad6){this['_customCallbacks']['push'](_0x476ad6);}['registerElementLabel'](_0x4209a6,_0x380f06,_0x54a506=_0x40db57['normal']){'function'==typeof _0x4209a6?_0x5493ae(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4209a6,'label':_0x380f06,'priority':_0x54a506}):this['_itemLabels']['set'](_0x4209a6,_0x380f06);}['registerAttributeLabel'](_0x2fdd45,_0x3cd162){this['_attributeLabels']['set'](_0x2fdd45,_0x3cd162);}['getItemLabel'](_0x3bec72,_0x4906a1=0x1){let _0x47ad97;for(const _0x8dc030 of this['_itemLabelsCallbacks'])if(_0x8dc030['matchingCallback'](_0x3bec72)){_0x47ad97=_0x8dc030['label'];break;}return _0x47ad97||(_0x47ad97=this['_itemLabels']['get'](_0x3bec72['name'])),_0x47ad97?_0x47ad97(_0x4906a1):0x1!==_0x4906a1?_0x4906a1+'\x20'+_0x3bec72['name']+'s':''+_0x3bec72['name'];}['_addDescriptionItems'](_0x45efad,_0x52b5c2){const _0x1cb2d6=_0x52b5c2['getFirstRange']()['getWalker'](),_0x469c9e='insertion'==_0x52b5c2['type']?'add':'remove';for(const _0x12911f of _0x1cb2d6){const _0x1ad06d=_0x12911f['item'],_0x20a422=_0x45efad[_0x45efad['length']-0x1];if(_0x1ad06d['is']('$textProxy'))_0x20a422&&_0x20a422['type']['indexOf']('Container')>-0x1&&_0x45efad['pop'](),_0x20a422&&'text'==_0x20a422['type']?_0x20a422[_0x469c9e]+=_0x1ad06d['data']:_0x45efad['push']({'type':'text','add':'add'==_0x469c9e?_0x1ad06d['data']:'','remove':'remove'==_0x469c9e?_0x1ad06d['data']:''});else{if(this['_schema']['isObject'](_0x1ad06d)){const _0x4f40f2=_0x1ad06d;if(_0x20a422&&_0x20a422['type']['indexOf']('Container')>-0x1&&_0x45efad['pop'](),'elementEnd'==_0x12911f['type'])continue;_0x20a422&&_0x20a422['type']==_0x469c9e+'Object'&&_0x20a422['element']['name']==_0x4f40f2['name']?_0x20a422['quantity']++:_0x45efad['push']({'type':_0x469c9e+'Object','element':_0x4f40f2,'quantity':0x1}),_0x1cb2d6['skip'](_0x255275=>!('elementEnd'==_0x255275['type']&&_0x255275['item']==_0x1ad06d));}else{if(this['_schema']['checkChild'](_0x1ad06d,'$text')||_0x1ad06d['is']('element','softBreak')){const _0x47ae2a=_0x1ad06d;if('add'==_0x469c9e&&'elementStart'==_0x12911f['type']||'remove'==_0x469c9e&&'elementEnd'==_0x12911f['type'])continue;if(_0x20a422&&-0x1==_0x20a422['type']['indexOf']('Container')){'text'==_0x20a422['type']&&(_0x20a422[_0x469c9e]+='\x0a');continue;}let _0x16d518;if(_0x16d518='add'==_0x469c9e?_0x47ae2a['nextSibling']&&!this['_schema']['isObject'](_0x47ae2a['nextSibling'])?_0x47ae2a['nextSibling']:null:_0x47ae2a['previousSibling']&&!this['_schema']['isObject'](_0x47ae2a['previousSibling'])?_0x47ae2a['previousSibling']:null,_0x47ae2a['isEmpty']||_0x16d518&&_0x16d518['isEmpty']){const _0x5d393f=_0x16d518&&_0x16d518['isEmpty']?_0x16d518:_0x47ae2a;_0x20a422&&_0x20a422['type']==_0x469c9e+'EmptyContainer'&&_0x20a422['element']['name']==_0x5d393f['name']?_0x20a422['quantity']++:_0x45efad['push']({'type':_0x469c9e+'EmptyContainer','element':_0x5d393f,'quantity':0x1});}else _0x45efad['push']({'type':_0x469c9e+'Container','element':_0x47ae2a});}}}}}['_resolveDescriptionItems'](_0x2ab6e6){const _0x5d623f=this['_locale'],_0x4b9364=[],_0x4f9c5a=[],_0x390674=[];for(const _0x158380 of _0x2ab6e6)switch(_0x158380['type']){case'text':if(_0x158380['add']=_0x158380['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x158380['remove']=_0x158380['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x158380['add']&&''!=_0x158380['remove']){_0x4b9364['push']({'type':'replace','content':o(_0x5d623f,'REPLACE_TEXT',['\x22'+_0x158380['remove']+'\x22','\x22'+_0x158380['add']+'\x22'])});continue;}if(null!=_0x158380['add']['match'](/^ +$/)){_0x4b9364['push']({'type':'insertion','content':o(_0x5d623f,'*Insert:*\x20%0',o(_0x5d623f,'ELEMENT_SPACE',_0x158380['add']['length']))});continue;}if(null!=_0x158380['remove']['match'](/^ +$/)){_0x4b9364['push']({'type':'deletion','content':o(_0x5d623f,'*Remove:*\x20%0',o(_0x5d623f,'ELEMENT_SPACE',_0x158380['remove']['length']))});continue;}if(''!=_0x158380['add']){_0x4b9364['push']({'type':'insertion','content':o(_0x5d623f,'*Insert:*\x20%0','\x22'+_0x158380['add']+'\x22')});continue;}_0x4b9364['push']({'type':'deletion','content':o(_0x5d623f,'*Remove:*\x20%0','\x22'+_0x158380['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4b9364['push']({'type':'insertion','content':o(_0x5d623f,'*Insert:*\x20%0',this['getItemLabel'](_0x158380['element'],_0x158380['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4b9364['push']({'type':'deletion','content':o(_0x5d623f,'*Remove:*\x20%0',this['getItemLabel'](_0x158380['element'],_0x158380['quantity']))});continue;case'addContainer':_0x4b9364['push']({'type':'insertion','content':o(_0x5d623f,'*Split:*\x20%0',this['getItemLabel'](_0x158380['element'],_0x158380['quantity']))});continue;case'removeContainer':_0x4b9364['push']({'type':'deletion','content':o(_0x5d623f,'*Merge:*\x20%0',this['getItemLabel'](_0x158380['element'],_0x158380['quantity']))});continue;case'addFormat':_0x4f9c5a['push'](_0x158380['key']);continue;case'removeFormat':_0x390674['push'](_0x158380['key']);continue;default:_0x4b9364['push'](_0x158380);}if(_0x4f9c5a['length']){const _0x4cbb8c=_0x4f9c5a['map'](_0x10a496=>this['_attributeLabels']['has'](_0x10a496)?this['_attributeLabels']['get'](_0x10a496):_0x10a496)['join'](',\x20');_0x4b9364['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4cbb8c)});}if(_0x390674['length']){const _0x45d0ee=_0x390674['map'](_0x290301=>this['_attributeLabels']['has'](_0x290301)?this['_attributeLabels']['get'](_0x290301):_0x290301)['join'](',\x20');_0x4b9364['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x45d0ee)});}return _0x4b9364;}['_handleCustomCallbackDescription'](_0x5e2d90){for(const _0x57eb7e of this['_customCallbacks']){const _0x33c426=_0x57eb7e(_0x5e2d90);if(_0x33c426&&'type'in _0x33c426)return _0x33c426;}}['_handleAttributeSuggestionDescription'](_0x271cdc,_0x43dbd1){const _0x577584=_0x43dbd1['data'],_0x24ba2a=void 0x0===_0x577584['newValue']?'removeFormat':'addFormat';_0x271cdc['push']({'type':_0x24ba2a,'key':_0x577584['key']});}['_handleRenameSuggestionDescription'](_0x4f09fc,_0x5a7e10){_0x4f09fc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a7e10['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x35cd3d,_0x22f075,_0x39590c){if(this['_addDescriptionItems'](_0x35cd3d,_0x22f075),_0x39590c&&_0x39590c['getFirstRange']()&&!_0x22f075['getFirstRange']()['end']['isEqual'](_0x39590c['getFirstRange']()['start'])){const _0x5a0aef=_0x35cd3d[_0x35cd3d['length']-0x1],_0x2a1491='insertion'==_0x22f075['type']?'add':'remove';_0x5a0aef&&'text'==_0x5a0aef['type']&&(_0x5a0aef[_0x2a1491]+='\x0a');}}}class U extends _0x21b897{['afterInit'](){const _0x3a93a5=this['editor'],_0x2bbb01=_0x3a93a5['plugins']['get']('TrackChangesEditing');_0x3a93a5['commands']['get']('showAIAssistant')&&_0x2bbb01['enableCommand']('showAIAssistant');}}class V extends _0x21b897{['afterInit'](){const _0x4a5e6a=this['editor'],_0x4543c4=_0x4a5e6a['plugins']['get']('TrackChangesEditing');_0x4a5e6a['commands']['get']('toggleAi')&&_0x4543c4['enableCommand']('toggleAi');}}class F extends _0x21b897{['afterInit'](){const _0x5c99dd=this['editor'],_0x2bb364=_0x5c99dd['plugins']['get']('TrackChangesEditing');_0x5c99dd['commands']['get']('aiQuickAction')&&_0x2bb364['enableCommand']('aiQuickAction');}}class G extends _0x21b897{['afterInit'](){const _0x3ea13c=this['editor'],_0xf8da44=_0x3ea13c['locale'];if(!_0x3ea13c['plugins']['has']('AlignmentEditing'))return;const _0x1022d7=_0x3ea13c['plugins']['get']('TrackChangesEditing');_0x1022d7['enableDefaultAttributesIntegration']('alignment'),_0x1022d7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xf8da44,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d0f06=this['editor'],_0x38ff31=_0x4d0f06['locale'];_0x4d0f06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x541aa7=>{if('formatBlock'!=_0x541aa7['type'])return;const {data:_0x1e7e64}=_0x541aa7;if(_0x1e7e64&&'alignment'==_0x1e7e64['commandName']){const _0x437a27=_0x1e7e64['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x38ff31,'*Format:*\x20%0',function(_0x54576b){switch(_0x54576b){case'left':return o(_0x38ff31,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x38ff31,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x38ff31,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x38ff31,'FORMAT_JUSTIFY_TEXT');}}(_0x437a27))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x21b897{['afterInit'](){const _0x262fde=this['editor'],_0x5216d8=_0x262fde['plugins']['get']('TrackChangesEditing'),_0x1f07d1=_0x262fde['locale'];for(const _0x4aa91f of ti){if(!_0x262fde['plugins']['has'](_0x4aa91f))continue;const _0x1776fc=_0x4aa91f['slice'](0x0,-0x7)['toLowerCase'](),_0x4d7d47='FORMAT_'+_0x1776fc['toUpperCase']();_0x5216d8['enableDefaultAttributesIntegration'](_0x1776fc),_0x5216d8['descriptionFactory']['registerAttributeLabel'](_0x1776fc,o(_0x1f07d1,_0x4d7d47));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47e821=this['editor'],_0x5b579c=_0x47e821['locale'],_0x35f3b1=_0x47e821['plugins']['get']('TrackChangesEditing');function _0x35daa0(_0x3b54a9,_0x129c5d){_0x35f3b1['descriptionFactory']['registerDescriptionCallback'](_0x1feb88=>{if('formatInline'!=_0x1feb88['type'])return;const {data:_0x38bd9e}=_0x1feb88;return _0x38bd9e&&_0x38bd9e['commandName']===_0x3b54a9?_0x38bd9e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b579c,'*Format:*\x20%0',_0x129c5d)}:{'type':'format','content':o(_0x5b579c,'*Remove\x20format:*\x20%0',_0x129c5d)}:void 0x0;});}_0x35daa0('bold',o(_0x5b579c,'FORMAT_BOLD')),_0x35daa0('italic',o(_0x5b579c,'FORMAT_ITALIC')),_0x35daa0('underline',o(_0x5b579c,'FORMAT_UNDERLINE')),_0x35daa0('code',o(_0x5b579c,'FORMAT_CODE')),_0x35daa0('strikethrough',o(_0x5b579c,'FORMAT_STRIKETHROUGH')),_0x35daa0('subscript',o(_0x5b579c,'FORMAT_SUBSCRIPT')),_0x35daa0('superscript',o(_0x5b579c,'FORMAT_SUPERSCRIPT'));}}class J extends _0x21b897{['afterInit'](){const _0x428bf4=this['editor'],_0x2b7c88=_0x428bf4['locale'];if(!_0x428bf4['plugins']['has']('BlockQuoteEditing'))return;const _0x84199f=_0x428bf4['plugins']['get']('TrackChangesEditing'),_0xb187c1=this['editor']['commands']['get']('blockQuote');_0x84199f['enableCommand']('blockQuote',(_0x18229f,_0x239b44={})=>{const _0x4dc6db=this['editor']['model']['document']['selection'],_0x2674cb=_0x239b44&&void 0x0!==_0x239b44['forceValue']?_0x239b44['forceValue']:!_0xb187c1['value'];let _0x49ac31=[];if(_0x2674cb){const _0x5f406c=Array['from'](_0x4dc6db['getSelectedBlocks']())['filter'](_0x232350=>oo(_0x232350)||function(_0x1facfe,_0x5b0502){const _0x23eb3e=_0x5b0502['checkChild'](_0x1facfe['parent'],'blockQuote'),_0x3cb5ba=_0x5b0502['checkChild'](['$root','blockQuote'],_0x1facfe);return _0x23eb3e&&_0x3cb5ba;}(_0x232350,this['editor']['model']['schema']));_0x49ac31=to(_0x5f406c,_0x428bf4['model']);}else{const _0x2cb2b3=Array['from'](_0x4dc6db['getSelectedBlocks']())['filter'](_0x3ee16d=>oo(_0x3ee16d));_0x49ac31=to(_0x2cb2b3,_0x428bf4['model']);}_0x428bf4['model']['change'](()=>{for(const _0x3a3de3 of _0x49ac31)_0x84199f['markBlockFormat'](_0x3a3de3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2674cb}]});});}),_0x84199f['descriptionFactory']['registerDescriptionCallback'](_0x496358=>{const {data:_0x95a3fb}=_0x496358;if(_0x95a3fb&&'blockQuote'==_0x95a3fb['commandName']){const _0x25035e=o(_0x2b7c88,'ELEMENT_BLOCK_QUOTE');return _0x95a3fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b7c88,'*Set\x20format:*\x20%0',_0x25035e)}:{'type':'format','content':o(_0x2b7c88,'*Remove\x20format:*\x20%0',_0x25035e)};}});}}function oo(_0x5f2a3e){return'blockQuote'==_0x5f2a3e['parent']['name'];}class q extends _0x21b897{['afterInit'](){const _0x4317d2=this['editor'],_0x539016=_0x4317d2['locale'],_0x589a2e=_0x4317d2['plugins']['get']('TrackChangesEditing');_0x4317d2['plugins']['has']('BookmarkEditing')&&(_0x589a2e['enableCommand']('insertBookmark'),_0x589a2e['enableDefaultAttributesIntegration']('updateBookmark'),_0x589a2e['descriptionFactory']['registerDescriptionCallback'](_0x45ede3=>{if('insertion'!=_0x45ede3['type']&&'deletion'!=_0x45ede3['type']&&'attribute'!=_0x45ede3['type'])return;const _0x4ba0c1=_0x45ede3['getContainedElement']();if(null==_0x4ba0c1)return;if(!_0x4ba0c1['is']('element','bookmark'))return;const _0x3bf10a=_0x4ba0c1['getAttribute']('bookmarkId');if('insertion'==_0x45ede3['type'])return{'type':'insertion','content':o(_0x539016,'*Insert:*\x20%0','\x22'+_0x3bf10a+'\x22\x20'+o(_0x539016,'ELEMENT_BOOKMARK'))};if('deletion'==_0x45ede3['type'])return{'type':'deletion','content':o(_0x539016,'*Remove:*\x20%0','\x22'+_0x3bf10a+'\x22\x20'+o(_0x539016,'ELEMENT_BOOKMARK'))};const {data:_0x4ffa79}=_0x45ede3;if(!_0x4ffa79||'bookmarkId'!=_0x4ffa79['key'])return;return{'type':'format','content':o(_0x539016,'*Set\x20bookmark:*\x20%0','\x22'+_0x4ffa79['newValue']+'\x22')};}));}}class z extends _0x21b897{['afterInit'](){const _0x3e79b9=this['editor'];_0x3e79b9['plugins']['has']('CaseChange')&&(_0x3e79b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3e79b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3e79b9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x21b897{['afterInit'](){const _0x4678f1=this['editor'];_0x4678f1['commands']['get']('ckbox')&&_0x4678f1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x21b897{['afterInit'](){const _0x58d987=this['editor'];if(!_0x58d987['plugins']['has']('CodeBlock'))return;const _0x1dae76=_0x58d987['plugins']['get']('TrackChangesEditing'),_0x387baf=_0x58d987['locale'],_0x5b49dd=_0x58d987['config']['get']('codeBlock')['languages'],_0x5d919f=_0x58d987['commands']['get']('codeBlock');_0x1dae76['enableCommand']('indentCodeBlock'),_0x1dae76['enableCommand']('outdentCodeBlock'),_0x1dae76['enableCommand']('codeBlock',(_0x389429,_0x501914={})=>{const _0x5358b4=_0x58d987['model'],_0x4f2f5a=_0x58d987['model']['document']['selection'],_0x10114c=_0x501914&&void 0x0!==_0x501914['forceValue']?_0x501914['forceValue']:!_0x5d919f['value'];let _0x268133;_0x501914['language']||(_0x501914['language']=_0x5b49dd[0x0]['language']),_0x268133=_0x10114c?Array['from'](_0x4f2f5a['getSelectedBlocks']())['filter'](_0x2900fa=>co(_0x2900fa)||function(_0x411004,_0x2c4abe){if(_0x411004['is']('rootElement')||_0x2c4abe['isLimit'](_0x411004))return!0x1;return _0x2c4abe['checkChild'](_0x411004['parent'],'codeBlock');}(_0x2900fa,_0x5358b4['schema'])):Array['from'](_0x4f2f5a['getSelectedBlocks']())['filter'](_0x48f8ad=>co(_0x48f8ad));const _0x2649c0=to(_0x268133,_0x5358b4);_0x5358b4['change'](()=>{for(const _0x34e181 of _0x2649c0)_0x1dae76['markBlockFormat'](_0x34e181,{'commandName':'codeBlock','commandParams':[{..._0x501914,'forceValue':_0x10114c}],'formatGroupId':'blockName'});});}),(_0x1dae76['descriptionFactory']['registerElementLabel']('codeBlock',_0x5e61ec=>o(_0x387baf,'ELEMENT_CODE_BLOCK',_0x5e61ec)),_0x1dae76['descriptionFactory']['registerDescriptionCallback'](_0x642d4d=>{if('formatBlock'!=_0x642d4d['type'])return;const _0x5a1e65=_0x387baf['t'],{data:_0x33fac7}=_0x642d4d;if(!_0x33fac7||'codeBlock'!=_0x33fac7['commandName'])return;const _0x42d7ee=_0x33fac7['commandParams'][0x0]['language'],_0x4286f6=_0x5a1e65(_0x5b49dd['find'](_0x2f1cf9=>_0x2f1cf9['language']===_0x42d7ee)['label'])['toLowerCase']();return _0x33fac7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x387baf,'*Set\x20format:*\x20%0',o(_0x387baf,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4286f6+')')}:{'type':'format','content':o(_0x387baf,'*Remove\x20format:*\x20%0',o(_0x387baf,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5abba1){return'codeBlock'==_0x5abba1['name'];}class H extends _0x21b897{['afterInit'](){const _0x11d438=this['editor'];if(!_0x11d438['plugins']['has']('CommentsEditing'))return;_0x11d438['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x21b897{static get['requires'](){return[_0x1037fe];}['init'](){const _0x1fec0b=this['editor'],_0x5768cf=_0x1fec0b['plugins']['get']('TrackChangesEditing');_0x5768cf['enableCommand']('delete');const _0x588873=_0x1fec0b['commands']['get']('deleteForward');_0x5768cf['enableCommand']('deleteForward',(_0x34508a,_0x1799ba={})=>{const _0x2bcc70=_0x1fec0b['model']['createSelection'](_0x1fec0b['model']['document']['selection']);_0x2bcc70['isCollapsed']&&_0x1fec0b['model']['modifySelection'](_0x2bcc70,{'direction':'forward','unit':_0x1799ba['unit']});const _0x3ba033=_0x2bcc70['getFirstRange'](),_0x42ff46=_0x5d12c9['fromRange'](_0x3ba033);let _0x88b319;_0x34508a(_0x1799ba),_0x88b319='$graveyard'==_0x42ff46['root']['rootName']?_0x1fec0b['model']['createRange'](_0x3ba033['start']):_0x1fec0b['model']['createRange'](_0x42ff46['start'],_0x42ff46['end']),_0x42ff46['detach'](),_0x1fec0b['model']['enqueueChange'](_0x588873['buffer']['batch'],_0x268350=>{_0x588873['buffer']['lock'](),_0x268350['setSelection'](_0x268350['createRange'](_0x88b319['end'])),_0x588873['buffer']['unlock']();});});}}class X extends _0x21b897{['afterInit'](){const _0x20a5d6=this['editor'];if(!_0x20a5d6['plugins']['has']('ListEditing'))return;const _0x1c343e=_0x20a5d6['locale'],_0xb57370=_0x20a5d6['plugins']['get']('TrackChangesEditing'),_0x3ff46a=_0x20a5d6['plugins']['has']('TodoListEditing'),_0xf9b8ce=!!_0x20a5d6['config']['get']('list.multiBlock');function _0x1eac70(_0x11e3de){return{'type':'format','content':''+o(_0x1c343e,'*Set\x20format:*\x20%0',_0x11e3de)};}function _0x1c256b(_0x24eea6){return{'type':'format','content':''+o(_0x1c343e,'*Remove\x20format:*\x20%0',_0x24eea6)};}_0xb57370['enableDefaultAttributesIntegration']('numberedList'),_0xb57370['enableDefaultAttributesIntegration']('bulletedList'),_0xb57370['enableDefaultAttributesIntegration']('customNumberedList'),_0xb57370['enableDefaultAttributesIntegration']('customBulletedList'),_0xb57370['enableDefaultAttributesIntegration']('indentList'),_0xb57370['enableDefaultAttributesIntegration']('outdentList'),_0xb57370['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xb57370['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xf9b8ce&&(_0xb57370['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xb57370['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3ff46a&&(_0xb57370['enableDefaultAttributesIntegration']('todoList'),_0xb57370['enableDefaultAttributesIntegration']('checkTodoList'),_0xb57370['descriptionFactory']['registerDescriptionCallback'](_0x42c540=>{const {data:_0x3dfa6b}=_0x42c540;if(_0x3dfa6b&&'todoListChecked'==_0x3dfa6b['key'])return{'type':'format','content':_0x3dfa6b['newValue']?o(_0x1c343e,'*Check\x20item*'):o(_0x1c343e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5635ab=>{if(_0x5635ab['batch']['isUndo'])return!0x1;let _0x5d3905=!0x1;const _0x2da992=_0xb57370['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5eec25=>'todoListChecked'===_0xb57370['_getAttributeKey'](_0x5eec25));for(const _0x2885aa of _0x2da992){'todo'!=_0x2885aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xb57370['_findSuggestions'](_0x2885aa['getFirstRange'](),'attribute')['find'](_0x6c2c2b=>'listType'===_0xb57370['_getAttributeKey'](_0x6c2c2b['suggestion']))||(_0x5635ab['removeMarker'](_0x2885aa['getFirstMarker']()),_0x5d3905=!0x0));}return _0x5d3905;})),_0xb57370['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1c343e,'FORMAT_INDENT'));const _0x449a0d={'type':'format','content':''};_0xb57370['descriptionFactory']['registerDescriptionCallback'](_0x524a54=>{const {data:_0x56a096}=_0x524a54;if(!_0x56a096||'listType'!=_0x56a096['key'])return;let _0xed6854=_0x524a54['head'];for(;_0xed6854;){if(_0xed6854['data']&&(('listStyle'==_0xed6854['data']['key']||'listMarkerStyle'==_0xed6854['data']['key'])&&(_0xed6854['data']['newValue']&&'default'!=_0xed6854['data']['newValue']||'default'!=_0xed6854['data']['oldValue']&&!_0x56a096['newValue'])||!_0xf9b8ce&&_0xed6854['data']['key']==m))return _0x449a0d;_0xed6854=_0xed6854['next'];}if(null==_0x56a096['newValue'])switch(_0x56a096['oldValue']){case'bulleted':return _0x1c256b(o(_0x1c343e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c256b(o(_0x1c343e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c256b(o(_0x1c343e,'ELEMENT_TODO_LIST'));}switch(_0x56a096['newValue']){case'bulleted':return _0x1eac70(o(_0x1c343e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1eac70(o(_0x1c343e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1eac70(o(_0x1c343e,'ELEMENT_TODO_LIST'));}}),_0xb57370['descriptionFactory']['registerDescriptionCallback'](_0x37b78a=>{const {data:_0x572664}=_0x37b78a;if(_0x572664&&'listIndent'==_0x572664['key'])return null==_0x572664['newValue']||null==_0x572664['oldValue']&&0x0==_0x572664['newValue']?_0x449a0d:void 0x0;}),_0xb57370['descriptionFactory']['registerDescriptionCallback'](_0x4b72c5=>{if('attribute'!=_0x4b72c5['type'])return;const {data:_0x51075e}=_0x4b72c5;if(!_0x51075e||'listItemId'!=_0x51075e['key'])return;const _0x5bbd28=Te(_0x4b72c5);return'newValue'==_0x5bbd28?{'type':'format','content':o(_0x1c343e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5bbd28?{'type':'format','content':o(_0x1c343e,'*Split:*\x20list\x20item')}:_0x449a0d;}),_0x20a5d6['model']['document']['registerPostFixer'](_0x406c1d=>this['listItemIdFixer'](_0x406c1d)),_0x20a5d6['model']['document']['registerPostFixer'](_0x43e686=>this['noTrackChangesFixer'](_0x43e686)),_0x20a5d6['model']['document']['on']('change:data',(_0x38a060,_0xf8b039)=>{if(_0xf8b039['isUndo']||!_0xf8b039['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3946d7){if(_0x3946d7['batch']['isUndo']||!_0x3946d7['batch']['isLocal'])return!0x1;let _0x2f5c48=!0x1;const _0x2fc20e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x41d40f=>_0x41d40f['data']&&'listItemId'==_0x41d40f['data']['key'])['filter'](_0x1b1113=>_0x1b1113['data']['newValue']&&_0x1b1113['data']['oldValue']);for(const _0x26e8ea of _0x2fc20e)Te(_0x26e8ea)||(_0x3946d7['removeMarker'](_0x26e8ea['getFirstMarker']()),_0x2f5c48=!0x0);return _0x2f5c48;}['noTrackChangesFixer'](_0x313263){if(_0x313263['batch']['isUndo']||!_0x313263['batch']['isLocal'])return!0x1;const _0x3d26cf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3d26cf['trackChangesCommand']['value'])return!0x1;let _0x35a439=!0x1;const _0x2d8658=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5e06bc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5d0901=>'attribute'==_0x5d0901['type'])['filter'](_0x3c6372=>_0x2d8658['includes'](_0x3c6372['attributeKey']));if(0x0==_0x5e06bc['length'])return _0x35a439;for(const _0x1f427e of _0x5e06bc){const _0x3180c7=_0x3d26cf['_findSuggestions'](_0x1f427e['range'],'attribute')['filter'](_0x416c55=>!_0x416c55['meta']['isNextTo'])['map'](_0x2d82b2=>_0x2d82b2['suggestion'])['filter'](_0x7b0919=>{const _0x4ab7b0=_0x3d26cf['_getAttributeKey'](_0x7b0919);return _0x2d8658['includes'](_0x4ab7b0);});if(_0x3180c7['length']){for(const _0x186c51 of _0x3180c7)_0x313263['removeMarker'](_0x186c51['getFirstMarker']());_0x35a439=!0x0;}}return _0x35a439;}['assureChains'](){const _0x1af49d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x116606=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a20d1;const _0x164b55=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x9db238=>{if(_0x9db238['data']['oldRange']||!_0x9db238['data']['newRange'])return null;if(!_0x9db238['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x27a006}=_0x1af49d['_splitMarkerName'](_0x9db238['name']);if(!_0x1af49d['hasSuggestion'](_0x27a006))return null;const _0x377d76=_0x1af49d['getSuggestion'](_0x27a006);return _0x116606['includes'](_0x377d76['data']['key']);})['map'](_0x3087bd=>{const {id:_0x115135}=_0x1af49d['_splitMarkerName'](_0x3087bd['name']),_0x29a612=_0x1af49d['getSuggestion'](_0x115135);return _0x1a20d1=_0x29a612['attributes']['groupId'],_0x29a612['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x164b55['size'])return;const _0xc01265=_0x1af49d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9b5c54=>'attribute'==_0x9b5c54['type']&&_0x9b5c54['data']&&_0x116606['includes'](_0x9b5c54['data']['key'])&&_0x9b5c54['attributes']['groupId']!=_0x1a20d1)['map'](_0x567584=>({'listItem':_0x567584['getFirstRange']()['start']['nodeAfter'],'groupId':_0x567584['attributes']['groupId']})),_0x54065a=new Set();for(const {groupId:_0x4a4515,listItem:_0x36c8e3}of _0xc01265)_0x164b55['has'](_0x36c8e3)&&_0x54065a['add'](_0x4a4515);for(const _0x1d5623 of _0x1af49d['getSuggestions']())_0x54065a['has'](_0x1d5623['attributes']['groupId'])&&_0x1d5623['setAttribute']('groupId',_0x1a20d1);}['_supportLegacySuggestions'](){const _0x3e0bee=this['editor'],_0x6075f7=_0x3e0bee['locale'],_0x15dbed=_0x3e0bee['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x15dbed['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x173d97,_0xb947cb){const _0x779bb2=[];for(let _0x4a2748 of _0x173d97)_0x4a2748['start']['nodeAfter']===_0x4a2748['end']['parent']&&(_0x4a2748=_0x3e0bee['model']['createRange'](_0x3e0bee['model']['createPositionAt'](_0x4a2748['start']['nodeAfter'],0x0))),_0x779bb2['push'](_0x4a2748);_0x3e0bee['model']['change'](_0x131b85=>{const _0xa45696=_0x3e0bee['model']['document']['selection'],_0x374def=Array['from'](_0xa45696['getRanges']())['map'](_0x5da536=>_0x5d12c9['fromRange'](_0x5da536));_0x131b85['setSelection'](_0x779bb2),_0x3e0bee['commands']['get'](_0xb947cb['commandName'])['refresh'](),_0xb947cb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3e0bee['execute'](_0xb947cb['commandName'],..._0xb947cb['commandParams']),_0x131b85['setSelection'](_0x374def);for(const _0x29b6de of _0x374def)_0x29b6de['detach']();});}),_0x15dbed['descriptionFactory']['registerElementLabel'](function(_0xe30c4f){const _0x5df96d=!_0x3e0bee['model']['schema']['isObject'](_0xe30c4f),_0x1bc948=_0xe30c4f['previousSibling'],_0x2436fa=_0xe30c4f['nextSibling'],_0x1a40c7=_0xe30c4f['getAttribute']('listItemId'),_0x131b11=!_0x1bc948||_0x1bc948['getAttribute']('listItemId')!==_0x1a40c7,_0x17858f=!_0x2436fa||_0x2436fa['getAttribute']('listItemId')!==_0x1a40c7;return _0x5df96d&&Boolean(_0x1a40c7)&&_0x131b11&&_0x17858f;},_0x220745=>o(_0x6075f7,'ELEMENT_LIST_ITEM',_0x220745));}['_registerLegacyDescription'](){const _0x1d9338=this['editor'],_0xfa2f48=_0x1d9338['locale'];function _0x76e3a0(_0x52020b){const _0x391728=_0x1d9338['commands']['get']('bulletedList')['value'],_0x61e2ec=_0x1d9338['commands']['get']('numberedList')['value'];return'numberedList'===_0x52020b?_0x391728:_0x61e2ec;}_0x1d9338['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x476b08){if('formatBlock'!=_0x476b08['type'])return;const {data:_0x49dd70}=_0x476b08;if(!_0x49dd70)return;let _0x1655e2,_0x24e0f8,_0x4a87a6,_0x3ffc9b;switch(_0x49dd70['commandName']){case'bulletedList':_0x4a87a6=_0x49dd70['commandParams'][0x0]['forceValue'],_0x3ffc9b=_0x76e3a0(_0x49dd70['commandName']),_0x1655e2=_0x4a87a6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ffc9b&&_0x1d9338['config']['get']('list.multiBlock')||(_0x1655e2='*Change\x20to:*\x20%0'),_0x24e0f8={'type':'format','content':o(_0xfa2f48,_0x1655e2,o(_0xfa2f48,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4a87a6=_0x49dd70['commandParams'][0x0]['forceValue'],_0x3ffc9b=_0x76e3a0(_0x49dd70['commandName']),_0x1655e2=_0x4a87a6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ffc9b&&_0x1d9338['config']['get']('list.multiBlock')||(_0x1655e2='*Change\x20to:*\x20%0'),_0x24e0f8={'type':'format','content':o(_0xfa2f48,_0x1655e2,o(_0xfa2f48,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1655e2='*Indent:*\x20%0',_0x24e0f8={'type':'format','content':o(_0xfa2f48,_0x1655e2,o(_0xfa2f48,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1655e2=function(_0x2b627f){const _0x478da6=_0x2b627f['getFirstRange']();let _0xefba64=_0x478da6['start']['nodeAfter'];for(;_0xefba64&&_0x478da6['containsItem'](_0xefba64);){if(_0xefba64['getAttribute']('listIndent')>0x0)return!0x1;_0xefba64=_0xefba64['nextSibling'];}return!0x0;}(_0x476b08)?o(_0xfa2f48,'*Format:*\x20remove\x20from\x20%0',o(_0xfa2f48,function(_0x3453a7){return'ELEMENT_'+_0x3453a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x476b08))):o(_0xfa2f48,'*Outdent:*\x20%0',o(_0xfa2f48,'ELEMENT_LIST_ITEM')),_0x24e0f8={'type':'format','content':_0x1655e2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x49dd70['multipleBlocks']&&(_0x1655e2='*Merge:*\x20%0',_0x24e0f8={'type':'deletion','content':o(_0xfa2f48,_0x1655e2,o(_0xfa2f48,'ELEMENT_LIST_ITEM'))});}return _0x24e0f8;});}}function Te(_0x4d9c49){let _0x49c566=_0x4d9c49['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x49c566;){const _0x16e5df=_0x49c566['getAttribute']('listItemId');if(!_0x16e5df)return!0x1;if(_0x16e5df==_0x4d9c49['data']['newValue'])return'newValue';if(_0x16e5df==_0x4d9c49['data']['oldValue'])return'oldValue';_0x49c566=_0x49c566['previousSibling'];}return!0x1;}class Y extends _0x21b897{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x308586=this['editor']['config']['get']('list.properties'),_0x52a3bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x308586['styles']&&_0x52a3bf['enableDefaultAttributesIntegration']('listStyle'),_0x308586['reversed']&&_0x52a3bf['enableDefaultAttributesIntegration']('listReversed'),_0x308586['startIndex']&&_0x52a3bf['enableDefaultAttributesIntegration']('listStart');const _0x57bf51={'type':'format','content':''};_0x52a3bf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x22b893=this['editor']['locale'];_0x52a3bf['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x22b893,'FORMAT_LIST_REVERSED')),_0x52a3bf['descriptionFactory']['registerDescriptionCallback'](_0x28f054=>{const {data:_0x54c2d9}=_0x28f054;if(_0x54c2d9&&'listReversed'==_0x54c2d9['key'])return null==_0x54c2d9['newValue']||0x0==_0x54c2d9['newValue']&&null==_0x54c2d9['oldValue']?_0x57bf51:void 0x0;}),_0x52a3bf['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x22b893,'FORMAT_LIST_START')),_0x52a3bf['descriptionFactory']['registerDescriptionCallback'](_0x1f3ea9=>{const {data:_0x3428e3}=_0x1f3ea9;if(_0x3428e3&&'listStart'==_0x3428e3['key'])return null==_0x3428e3['newValue']||0x1==_0x3428e3['newValue']&&null==_0x3428e3['oldValue']?_0x57bf51:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x42f8d5=>{if(_0x42f8d5['batch']['isUndo'])return!0x1;let _0x4b2170=!0x1;const _0x36f973=_0x52a3bf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a1595=>{const _0x381f1c=_0x52a3bf['_getAttributeKey'](_0x3a1595);return'listStart'==_0x381f1c||'listReversed'==_0x381f1c;});for(const _0x5912dd of _0x36f973){const _0x22015e=_0x5912dd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x22015e||'customNumbered'==_0x22015e)continue;_0x52a3bf['_findSuggestions'](_0x5912dd['getFirstRange'](),'attribute')['find'](_0x19fb6e=>'listType'==_0x52a3bf['_getAttributeKey'](_0x19fb6e['suggestion']))||(_0x42f8d5['removeMarker'](_0x5912dd['getFirstMarker']()),_0x4b2170=!0x0);}return _0x4b2170;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2ea5a2){const _0x3c2737=this['editor']['locale'],{data:_0x1ad18a}=_0x2ea5a2,_0x2f62c0={'type':'format','content':''};if(!_0x1ad18a||'listStyle'!=_0x1ad18a['key'])return;if(!_0x1ad18a['oldValue'])return'default'==_0x1ad18a['newValue']?_0x2f62c0:{'type':'format','content':''+o(_0x3c2737,'*Set\x20format:*\x20%0',o(_0x3c2737,this['_getTranslationKeyForListStyle'](_0x1ad18a['newValue'])))};if(!_0x1ad18a['newValue']){if('default'==_0x1ad18a['oldValue'])return _0x2f62c0;let _0x736fa=_0x2ea5a2['head'];for(;_0x736fa;){if(_0x736fa['data']&&'listType'==_0x736fa['data']['key']&&_0x736fa['data']['newValue'])return _0x2f62c0;_0x736fa=_0x736fa['next'];}return{'type':'format','content':''+o(_0x3c2737,'*Remove\x20format:*\x20%0',o(_0x3c2737,this['_getTranslationKeyForListStyle'](_0x1ad18a['oldValue'])))};}if('default'!=_0x1ad18a['newValue'])return{'type':'format','content':''+o(_0x3c2737,'*Set\x20format:*\x20%0',o(_0x3c2737,this['_getTranslationKeyForListStyle'](_0x1ad18a['newValue'])))};let _0x12a1ef=_0x2ea5a2['head'];for(;_0x12a1ef;){if(_0x12a1ef['data']&&'listType'==_0x12a1ef['data']['key']&&_0x12a1ef['data']['newValue']&&_0x12a1ef['data']['oldValue'])return _0x2f62c0;_0x12a1ef=_0x12a1ef['next'];}return{'type':'format','content':o(_0x3c2737,'*Set\x20format:*\x20%0',o(_0x3c2737,'ELEMENT_'+_0x2ea5a2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1d59dd=this['editor'],_0x554869=_0x1d59dd['locale'];_0x1d59dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50d24d=>{if('formatBlock'!=_0x50d24d['type'])return;const {data:_0xea6cd2}=_0x50d24d;if(!_0xea6cd2)return;let _0x434213,_0x10fbca;switch(_0xea6cd2['commandName']){case'listStyle':_0x434213='*Change\x20to:*\x20%0',_0x10fbca={'type':'format','content':o(_0x554869,_0x434213,o(_0x554869,this['_getTranslationKeyForListStyle'](_0xea6cd2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x434213=_0xea6cd2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x10fbca={'type':'format','content':o(_0x554869,_0x434213)};break;case'listStart':_0x434213='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x10fbca={'type':'format','content':o(_0x554869,_0x434213,_0xea6cd2['commandParams'][0x0]['startIndex'])};}return _0x10fbca;});}['_getTranslationKeyForListStyle'](_0x2a3a10){return'ELEMENT_'+function(_0x2280cb){if(ye['includes'](_0x2280cb))return'bulleted';if(Se['includes'](_0x2280cb))return'numbered';return null;}(_0x2a3a10)['toUpperCase']()+'_LIST_'+_0x2a3a10['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x21b897{['afterInit'](){const _0x1ed085=this['editor'];_0x1ed085['commands']['get']('emoji')&&_0x1ed085['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x21b897{static get['requires'](){return[_0x5166e6];}['init'](){const _0x2af61e=this['editor'],_0x59bf2a=_0x2af61e['plugins']['get']('TrackChangesEditing'),_0x2b394e=_0x2af61e['commands']['get']('enter');_0x59bf2a['enableCommand']('enter',()=>{_0x2af61e['model']['change'](_0xedac0f=>{const _0x2aad97=_0x2af61e['model']['document']['selection'],_0x31141f=_0x2aad97['getFirstPosition'](),_0xaa7356=_0x5d12c9['fromRange'](_0x2aad97['getFirstRange']());if(_0x2b394e['enterBlock'](_0xedac0f)){const _0x2b84d2=_0x2af61e['model']['createPositionAt'](_0x31141f['parent']['nextSibling'],0x0),_0x9557c8=_0xedac0f['createRange'](_0x31141f,_0x2b84d2);_0x59bf2a['markInsertion'](_0x9557c8);}else _0xedac0f['setSelection'](_0xedac0f['createRange'](_0xaa7356['end']));_0xaa7356['detach'](),_0x2b394e['fire']('afterExecute',{'writer':_0xedac0f});});});}}class nt extends _0x21b897{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x44fa72=this['editor']['plugins']['get']('TrackChangesEditing');_0x44fa72['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x44fa72['enableCommand']('findNext'),_0x44fa72['enableCommand']('findPrevious'),_0x44fa72['enableCommand']('replace'),_0x44fa72['enableCommand']('replaceAll');}['handleFindCommand'](_0x2330a3,_0x1046bf,_0x10e9ba={}){const _0x1b59da=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2330a3(_0x5c5c56=>{let _0x31d0c2=('string'==typeof _0x1046bf?_0x1b59da['findByTextCallback'](_0x1046bf,_0x10e9ba):_0x1046bf)(_0x5c5c56);Array['isArray'](_0x31d0c2)&&(_0x31d0c2={'results':_0x31d0c2,'searchText':'string'==typeof _0x1046bf?_0x1046bf:''});const _0x454442=_0x31d0c2['results']['filter'](_0x44bc8a=>!0x1===this['_isInDeletionRange'](_0x44bc8a,_0x5c5c56['item']));return{..._0x31d0c2,'results':_0x454442};},_0x10e9ba);}['_isInDeletionRange'](_0x1a5e03,_0x19f12a){const _0x23f3a3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19f12a,_0x1a5e03['start']),this['editor']['model']['createPositionAt'](_0x19f12a,_0x1a5e03['end']));for(const _0x401782 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23f3a3['getIntersection'](_0x401782['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x21b897{['afterInit'](){const _0x2d75a4=this['editor']['locale'],_0x4427c0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x523b45,commandName:_0x2fe89c}of eo)this['editor']['plugins']['has'](_0x523b45)&&_0x4427c0['enableDefaultAttributesIntegration'](_0x2fe89c);_0x4427c0['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2d75a4,'FORMAT_FONT_SIZE')),_0x4427c0['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2d75a4,'FORMAT_FONT_FAMILY')),_0x4427c0['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2d75a4,'FORMAT_FONT_COLOR')),_0x4427c0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2d75a4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x353aae=this['editor'],_0xdd3dee=_0x353aae['locale'];_0x353aae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4426cd=>{const _0x5cd088=_0xdd3dee['t'];if('formatInline'!=_0x4426cd['type'])return;const {data:_0x2cd2f9}=_0x4426cd;if(null!=_0x2cd2f9){if('fontSize'==_0x2cd2f9['commandName']){const _0x2e7239=_0x2cd2f9['commandParams'][0x0]['value'];if(_0x2e7239){const _0x4fcc6f=_0x5cd088(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x155e6f=>_0x155e6f['model']==_0x2e7239)['title'])['toLowerCase']();return{'type':'format','content':o(_0xdd3dee,'*Set\x20font\x20size:*\x20%0',_0x4fcc6f)};}return{'type':'format','content':o(_0xdd3dee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2cd2f9['commandName']){const _0x1e7d88=_0x2cd2f9['commandParams'][0x0]['value'];return _0x1e7d88?{'type':'format','content':o(_0xdd3dee,'*Set\x20font\x20family:*\x20%0',_0x1e7d88)}:{'type':'format','content':o(_0xdd3dee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2cd2f9['commandName']){const _0x33a7f2=_0x2cd2f9['commandParams'][0x0]['value'];if(_0x33a7f2){const _0x340e0d=_0x447646(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e4d9a=>_0x1e4d9a['model']==_0x33a7f2);let _0x328d84=_0x33a7f2,_0x16be49='';return _0x340e0d&&(_0x328d84=_0x340e0d['label'],_0x16be49=_0x5cd088(_0x328d84)['toLowerCase']()),{'type':'format','content':o(_0xdd3dee,'*Set\x20font\x20color:*\x20%0',_0x16be49)['trim'](),'color':{'value':_0x33a7f2,'title':_0x16be49||_0x328d84}};}return{'type':'format','content':o(_0xdd3dee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2cd2f9['commandName']){const _0x53aaa6=_0x2cd2f9['commandParams'][0x0]['value'];if(_0x53aaa6){const _0xd3730d=_0x447646(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2b3997=>_0x2b3997['model']==_0x53aaa6);let _0x360af4=_0x53aaa6,_0x2570cd='';return _0xd3730d&&(_0x360af4=_0xd3730d['label'],_0x2570cd=_0x5cd088(_0x360af4)['toLowerCase']()),{'type':'format','content':o(_0xdd3dee,'*Set\x20font\x20background\x20color:*\x20%0',_0x2570cd)['trim'](),'color':{'value':_0x53aaa6,'title':_0x2570cd||_0x360af4}};}return{'type':'format','content':o(_0xdd3dee,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x21b897{['afterInit'](){const {plugins:_0x55af2d}=this['editor'];_0x55af2d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x55af2d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x63f877,plugins:_0x10aec7,commands:_0x43b73c}=this['editor'],_0x183c04=_0x10aec7['get']('TrackChangesEditing');_0x43b73c['get']('footnotesStyle')&&_0x183c04['enableDefaultAttributesIntegration']('footnotesStyle'),_0x43b73c['get']('footnotesStart')&&_0x183c04['enableDefaultAttributesIntegration']('footnotesStart'),_0x183c04['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x63f877,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x183c04['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x63f877,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x518c50=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5d7936,commands:_0x1723db}=this['editor'];_0x1723db['get']('insertFootnote')&&_0x518c50['enableCommand']('insertFootnote'),_0x518c50['descriptionFactory']['registerElementLabel']('footnoteRef',_0x5eadee=>o(_0x5d7936,'ELEMENT_FOOTNOTE_REF',_0x5eadee)),_0x518c50['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3961bb=>o(_0x5d7936,'ELEMENT_FOOTNOTE_DEFINITION',_0x3961bb)),_0x518c50['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1173d6=>o(_0x5d7936,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1173d6));}}class st extends _0x21b897{['afterInit'](){const _0xe67616=this['editor'],_0x3838b5=_0xe67616['plugins']['get']('TrackChangesEditing'),_0xa0091=_0xe67616['commands']['get']('copyFormat'),_0xc0df97=_0xe67616['commands']['get']('pasteFormat');_0xa0091&&_0xc0df97&&(_0x3838b5['enableDefaultAttributesIntegration']('pasteFormat'),_0x3838b5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4cf937=this['editor'],_0x487b21=_0x4cf937['locale'];_0x4cf937['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13147d=>{if('formatBlock'!=_0x13147d['type']&&'formatInline'!=_0x13147d['type'])return;const {data:_0x2d009c}=_0x13147d;if(_0x2d009c&&'pasteFormat'===_0x2d009c['commandName']){const _0x32b5a0=[],_0x53e7a6=_0x2d009c['commandParams'][0x0];for(const [_0x2371bc,_0x3e9196]of Object['entries'](_0x53e7a6))_0x32b5a0['push'](ro(_0x4cf937,_0x2371bc,_0x3e9196));return _0x32b5a0['length']?{'type':'format','content':o(_0x487b21,'*Set\x20format\x20to:*\x20%0',_0x32b5a0['join'](',\x20'))}:{'type':'format','content':o(_0x487b21,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x166fbf,_0x411979,_0x24894c){const _0x33f951=_0x166fbf['locale']['t'],_0x436370=_0x411979['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b0caf=_0x33f951(_0x436370['charAt'](0x0)['toUpperCase']()+_0x436370['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x24894c)return _0x4b0caf;if('fontColor'===_0x411979||'fontBackgroundColor'===_0x411979){const _0x48c9f9=_0x447646(_0x166fbf['config']['get']('fontColor.colors'))['find'](_0x75254c=>_0x75254c['model']==_0x24894c);return _0x4b0caf+'\x20('+(_0x48c9f9?_0x33f951(_0x48c9f9['label'])['toLowerCase']():_0x24894c)+')';}if('fontSize'===_0x411979&&isNaN(parseFloat(_0x24894c))){const _0x21d616=_0x166fbf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x166fbf['config']['get']('fontSize.options'))['find'](_0x56905f=>_0x56905f['model']==_0x24894c);return _0x4b0caf+'\x20('+(_0x21d616?_0x33f951(_0x21d616['title'])['toLowerCase']():_0x24894c)+')';}return _0x4b0caf+'\x20('+_0x24894c+')';}class ot extends _0x21b897{['_headingOptions'];['afterInit'](){const _0x43ba5e=this['editor'];if(!_0x43ba5e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x43ba5e['config']['get']('heading.options');const _0x7cc952=_0x43ba5e['locale'],_0x951c82=_0x43ba5e['plugins']['get']('TrackChangesEditing');_0x951c82['enableDefaultAttributesIntegration']('heading');for(const _0xc9174d of this['_headingOptions'])'paragraph'!=_0xc9174d['model']&&_0x951c82['descriptionFactory']['registerElementLabel'](_0xc9174d['model'],_0x5eede9=>{const _0x6de85d=this['_getHeadingLevel'](_0xc9174d['model']);return null!==_0x6de85d?_0x22870e(_0x5eede9,_0x6de85d):_0xdc4478(_0x5eede9,_0xc9174d['title']);});function _0x22870e(_0x459e35,_0x1f9f35){return o(_0x7cc952,'ELEMENT_HEADING',[_0x459e35,_0x1f9f35]);}function _0xdc4478(_0x302b11,_0x592eb3){return o(_0x7cc952,'ELEMENT_HEADING_CUSTOM',[_0x302b11,_0x592eb3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e3629=this['editor'],_0x42435b=_0x1e3629['locale'];function _0x24f75c(_0xa87f80,_0x17288f){return o(_0x42435b,'ELEMENT_HEADING_CUSTOM',[_0xa87f80,_0x17288f]);}_0x1e3629['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ca56=>{if('formatBlock'!=_0x56ca56['type'])return;const {data:_0x18c629}=_0x56ca56;if(_0x18c629&&'heading'==_0x18c629['commandName']){const _0x1e96e9=_0x18c629['commandParams'][0x0]['value'],_0x1e9741=this['_getHeadingLevel'](_0x1e96e9);if(null!==_0x1e9741)return{'type':'format','content':o(_0x42435b,'*Change\x20to:*\x20%0',(_0x260285=0x1,_0x2739b8=_0x1e9741,o(_0x42435b,'ELEMENT_HEADING',[_0x260285,_0x2739b8])))};const _0x5b20fb=this['_headingOptions']['find'](_0x3805c8=>_0x3805c8['model']===_0x1e96e9)['title'];return{'type':'format','content':o(_0x42435b,'*Change\x20to:*\x20%0',_0x24f75c(0x1,_0x5b20fb))};}var _0x260285,_0x2739b8;});}['_getHeadingLevel'](_0x12963a){const _0x28bd89=_0x12963a['match'](/^heading(\d+)/);if(_0x28bd89)return _0x28bd89[0x1];const _0x21e2fe=this['_headingOptions']?.['find'](_0x48fe9e=>_0x48fe9e['model']==_0x12963a);if(_0x21e2fe&&_0x21e2fe['view']){const _0x513b98=_0x21e2fe['view'],_0x34138a=(_0x513b98['name']??_0x513b98)['match'](/^h(\d+)/);if(_0x34138a)return _0x34138a[0x1];}return null;}}class rt extends _0x21b897{['afterInit'](){const _0x4f4306=this['editor'];if(!_0x4f4306['plugins']['has']('HighlightEditing'))return;const _0x592846=_0x4f4306['plugins']['get']('TrackChangesEditing'),_0x5c72a0=_0x4f4306['locale'];_0x592846['enableDefaultAttributesIntegration']('highlight'),_0x592846['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5c72a0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5aa311=this['editor'],_0x2998af=_0x5aa311['locale'];_0x5aa311['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x258e7c=>{if('formatInline'!=_0x258e7c['type'])return;const {data:_0x42e199}=_0x258e7c;if(_0x42e199&&'highlight'==_0x42e199['commandName']){const _0x570088=_0x2998af['t'],_0x573bf0=_0x42e199['commandParams'][0x0]['value'];if(_0x573bf0){const _0x2fa521=_0x5aa311['config']['get']('highlight.options')['find'](_0x4c7e60=>_0x4c7e60['model']==_0x573bf0),_0x2ff638=_0x570088(_0x2fa521['title'])['toLowerCase']();return{'type':'format','content':o(_0x2998af,'*Set\x20highlight:*\x20%0',_0x2ff638),'color':{'value':_0x2fa521['color'],'title':_0x2fa521['title']}};}return{'type':'format','content':o(_0x2998af,'*Remove\x20highlight*',o(_0x2998af,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x21b897{['afterInit'](){const _0x34b095=this['editor'];if(!_0x34b095['plugins']['has']('HorizontalLineEditing'))return;_0x34b095['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x37f3ec=_0x34b095['plugins']['get']('TrackChangesEditing'),_0x124be0=_0x34b095['locale'];_0x37f3ec['descriptionFactory']['registerElementLabel']('horizontalLine',_0x28cdda=>o(_0x124be0,'ELEMENT_HORIZONTAL_LINE',_0x28cdda));}}class ct extends _0x21b897{['afterInit'](){const _0xc8bd5e=this['editor'];if(!_0xc8bd5e['plugins']['has']('HtmlEmbed'))return;const _0x1846ba=_0xc8bd5e['plugins']['get']('TrackChangesEditing'),_0x48b823=_0xc8bd5e['locale'];_0x1846ba['descriptionFactory']['registerElementLabel']('rawHtml',_0x3573f1=>o(_0x48b823,'ELEMENT_HTML_EMBED',_0x3573f1)),_0x1846ba['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1846ba['descriptionFactory']['registerDescriptionCallback'](_0x3afdf4=>{if('attribute'!=_0x3afdf4['type'])return;const {data:_0x490385}=_0x3afdf4;if(_0x490385&&'value'==_0x490385['key']&&_0x3afdf4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x82e56b=o(_0x48b823,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x48b823,'*Change\x20%0\x20content*',_0x82e56b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a9e49=this['editor'],_0x68d51f=_0x4a9e49['locale'];_0x4a9e49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x411655=>{if('formatBlock'!=_0x411655['type'])return;const {data:_0x7d68e3}=_0x411655;if(_0x7d68e3&&'htmlEmbed'==_0x7d68e3['commandName']){const _0x4e0960=o(_0x68d51f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x68d51f,'*Change\x20%0\x20content*',_0x4e0960)};}});}}class ut extends _0x21b897{['afterInit'](){const _0x5b2f95=this['editor'];if(!_0x5b2f95['plugins']['has']('ImageEditing'))return;const _0x1853b9=_0x5b2f95['plugins']['get']('TrackChangesEditing'),_0x207000=_0x5b2f95['plugins']['get']('ImageUtils'),_0x258c63=_0x5b2f95['locale'];_0x1853b9['enableCommand']('insertImage'),_0x1853b9['descriptionFactory']['registerElementLabel']('imageBlock',_0xd6e547=>o(_0x258c63,'ELEMENT_IMAGE',_0xd6e547)),_0x1853b9['descriptionFactory']['registerElementLabel']('imageInline',_0x2d766f=>o(_0x258c63,'ELEMENT_INLINE_IMAGE',_0x2d766f)),_0x1853b9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x258c63,'ELEMENT_CAPTION')),_0x5b2f95['plugins']['has']('ImageUploadEditing')&&_0x1853b9['enableCommand']('uploadImage'),_0x5b2f95['plugins']['has']('ImageBlockEditing')&&_0x5b2f95['plugins']['has']('ImageInlineEditing')&&(_0x1853b9['enableCommand']('imageTypeInline',(_0xd6642c,_0x30aa1)=>{const _0x3df705=_0x207000['getClosestSelectedImageElement'](_0x5b2f95['model']['document']['selection']);_0x5b2f95['model']['change'](()=>{_0x1853b9['markBlockFormat'](_0x3df705,{'commandName':'imageTypeInline','commandParams':[_0x30aa1]},[],'convertBlockImageToInline');});}),_0x1853b9['enableCommand']('imageTypeBlock',(_0x3af453,_0x4bdd0e)=>{_0x5b2f95['model']['change'](_0x326e06=>{let _0x569510=_0x207000['getClosestSelectedImageElement'](_0x5b2f95['model']['document']['selection']),_0x501869=_0x326e06['createRangeOn'](_0x569510);const _0x546da3=_0x2ce536['fromPosition'](_0x501869['start'],'toPrevious'),_0x7f4099=_0x2ce536['fromPosition'](_0x501869['end'],'toNext');_0x1853b9['forceDefaultExecution'](()=>_0x3af453(_0x4bdd0e)),_0x569510=_0x207000['getClosestSelectedImageElement'](_0x5b2f95['model']['document']['selection']),_0x501869=_0x326e06['createRangeOn'](_0x569510);const _0x531529=_0x326e06['createRange'](_0x546da3,_0x7f4099);_0x546da3['detach'](),_0x7f4099['detach'](),_0x1853b9['markBlockFormat'](_0x569510,{'commandName':'imageTypeInline','commandParams':[_0x4bdd0e]},[],'convertInlineImageToBlock'),_0x531529['start']['isBefore'](_0x501869['start'])&&_0x1853b9['markInsertion'](_0x326e06['createRange'](_0x531529['start'],_0x501869['start']),'convertInlineImageToBlock'),_0x501869['end']['isBefore'](_0x531529['end'])&&_0x1853b9['markInsertion'](_0x326e06['createRange'](_0x501869['end'],_0x531529['end']),'convertInlineImageToBlock');});}),_0x1853b9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1853b9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1853b9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1853b9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1853b9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1853b9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xf4453])=>{const _0x46afd0=_0x1853b9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5b7225=_0xf4453['start'],_0x2a11ba=_0xf4453['end'];const _0x14a561=_0x5b2f95['model']['schema']['getNearestSelectionRange'](_0x5b7225,'backward'),_0xb2248e=_0x5b2f95['model']['schema']['getNearestSelectionRange'](_0x2a11ba,'forward');_0x14a561['isCollapsed']&&(_0x5b7225=_0x14a561['start']),_0xb2248e['isCollapsed']&&(_0x2a11ba=_0xb2248e['end']),_0x46afd0([_0x5b2f95['model']['createRange'](_0x5b7225,_0x2a11ba)]);}),_0x1853b9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x7c08af),_0x1853b9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x7c08af)),_0x5b2f95['plugins']['has']('ImageCaptionEditing')&&(_0x1853b9['enableCommand']('toggleImageCaption',(_0x100160,_0x4d3017)=>{const _0x102d92=_0x5b2f95['plugins']['get']('ImageCaptionUtils');let _0xe7839b=_0x207000['getClosestSelectedImageElement'](_0x5b2f95['model']['document']['selection']),_0x3f493d=_0x102d92['getCaptionFromImageModelElement'](_0xe7839b);_0x5b2f95['model']['change'](()=>{if(_0x3f493d)return void _0x1853b9['markDeletion'](_0x5b2f95['model']['createRangeOn'](_0x3f493d));const _0x207d79=_0x207000['isBlockImage'](_0xe7839b);_0x100160(_0x4d3017),_0xe7839b=_0x207000['getClosestSelectedImageElement'](_0x5b2f95['model']['document']['selection']),_0x3f493d=_0x102d92['getCaptionFromImageModelElement'](_0xe7839b),_0x1853b9['markInsertion'](_0x5b2f95['model']['createRangeOn'](_0x3f493d),_0x207d79?null:'imageCaption');});}),_0x1853b9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x7c08af));const _0x2c2360=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ec663(_0x3de842,_0x2928e6){const _0x14b99f=_0x2c2360['findIndex'](({type:_0x59a748,subType:_0x17a8f1})=>_0x3de842['type']==_0x59a748&&_0x3de842['subType']==_0x17a8f1),_0x4e5b44=_0x2c2360['findIndex'](({type:_0x408af9,subType:_0x2e2fca})=>_0x2928e6['type']==_0x408af9&&_0x2928e6['subType']==_0x2e2fca);if(_0x14b99f<0x0||_0x4e5b44<0x0)return!0x1;const _0x44ae8f=_0x3de842['getFirstRange'](),_0x215311=_0x2928e6['getFirstRange']();if((0x0==_0x14b99f||0x1==_0x14b99f)&&0x2==_0x4e5b44&&_0x44ae8f['isIntersecting'](_0x215311))return!0x0;if(0x2==_0x14b99f&&0x3==_0x4e5b44){const _0x19a9d7=_0x1853b9['_findSuggestions'](_0x44ae8f,'insertion')['filter'](({suggestion:_0x57d245,meta:_0x2e6750})=>_0x2e6750['isOwn']&&'convertInlineImageToBlock'==_0x57d245['subType']);if(_0x19a9d7['length']>0x1&&_0x215311['end']['isEqual'](_0x44ae8f['start']))return!0x0;if(0x1==_0x19a9d7['length']&&(_0x44ae8f['start']['isEqual'](_0x215311['end'])||_0x44ae8f['end']['isEqual'](_0x215311['start'])))return!0x0;}if(0x3==_0x14b99f&&0x3==_0x4e5b44&&_0x44ae8f['start']['isBefore'](_0x215311['start'])){const _0x387f1e=_0x44ae8f['end']['nodeAfter'],_0x52bb35=_0x215311['start']['nodeBefore'];return _0x207000['isBlockImage'](_0x387f1e)&&_0x387f1e===_0x52bb35;}return!0x1;}function _0x7c08af(_0x283f3b,_0x52a8bb){return _0x5ec663(_0x283f3b,_0x52a8bb)?[_0x283f3b,_0x52a8bb]:_0x5ec663(_0x52a8bb,_0x283f3b)?[_0x52a8bb,_0x283f3b]:null;}_0x5b2f95['plugins']['has']('ImageResize')&&(_0x1853b9['enableDefaultAttributesIntegration']('resizeImage'),_0x1853b9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x258c63,'FORMAT_IMAGE_SIZE'))),_0x5b2f95['plugins']['has']('ImageTextAlternativeEditing')&&_0x1853b9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5b2f95['plugins']['has']('PictureEditing')&&_0x1853b9['descriptionFactory']['registerDescriptionCallback'](_0x37f6e6=>{if('attribute'!=_0x37f6e6['type'])return;const {data:_0x35bac3}=_0x37f6e6;return _0x35bac3&&'sources'==_0x35bac3['key']?{'type':'format','content':''}:void 0x0;}),_0x5b2f95['plugins']['has']('ImageSizeAttributes')&&_0x1853b9['descriptionFactory']['registerDescriptionCallback'](_0x24db02=>{if('attribute'!=_0x24db02['type'])return;const {data:_0x434cbf}=_0x24db02;return!_0x434cbf||'width'!=_0x434cbf['key']&&'height'!=_0x434cbf['key']?void 0x0:{'type':'format','content':''};}),_0x1853b9['descriptionFactory']['registerDescriptionCallback'](_0x18df94=>{if(!!_0x2c2360['find'](({type:_0xd16ff5,subType:_0x1a73c4})=>_0x18df94['type']==_0xd16ff5&&_0x18df94['subType']==_0x1a73c4))return _0x18df94['previous']?{}:void 0x0;}),_0x1853b9['descriptionFactory']['registerDescriptionCallback'](_0x1c7664=>{if('insertion'==_0x1c7664['type']||'deletion'==_0x1c7664['type']){const _0x19708=_0x1c7664['getContainedElement']();if(_0x19708&&_0x19708['is']('element','caption'))return{'type':'insertion'==_0x1c7664['type']?'addObject':'removeObject','element':_0x19708,'quantity':0x1};}}),_0x1853b9['descriptionFactory']['registerDescriptionCallback'](_0x37d411=>'formatBlock'==_0x37d411['type']&&'convertInlineImageToBlock'==_0x37d411['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x37d411['type']&&'convertBlockImageToInline'==_0x37d411['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1853b9['descriptionFactory']['registerDescriptionCallback'](_0xd06d07=>{if('attribute'!=_0xd06d07['type'])return;const {data:_0x9657ed}=_0xd06d07;if(!_0x9657ed||'alt'!=_0x9657ed['key'])return;const _0x47e59a=_0x9657ed['newValue'];return _0x47e59a?{'type':'format','content':o(_0x258c63,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47e59a+'\x22')}:{'type':'format','content':o(_0x258c63,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42e528=this['editor'],_0x362975=_0x42e528['locale'];_0x42e528['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a67a2=>{if('formatBlock'!=_0x1a67a2['type']&&'formatInline'!=_0x1a67a2['type'])return;const {data:_0x2cd2ef}=_0x1a67a2;if(_0x2cd2ef){if('imageTextAlternative'==_0x2cd2ef['commandName']){const _0x29b444=_0x2cd2ef['commandParams'][0x0]['newValue'];return _0x29b444?{'type':'format','content':o(_0x362975,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29b444+'\x22')}:{'type':'format','content':o(_0x362975,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2cd2ef['commandName']){const _0x3dfea3=_0x2cd2ef['commandParams'][0x0]['width'];return _0x3dfea3?{'type':'format','content':o(_0x362975,'*Set\x20image\x20width:*\x20%0',_0x3dfea3)}:{'type':'format','content':o(_0x362975,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x21b897{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xdb43a9=this['editor']['locale'],_0x26fc5f=this['editor']['plugins']['get']('TrackChangesEditing');_0x26fc5f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x26fc5f['descriptionFactory']['registerDescriptionCallback'](_0x1bdf61=>{if('attribute'!=_0x1bdf61['type'])return;const {data:_0x269c7f}=_0x1bdf61;return _0x269c7f&&'src'==_0x269c7f['key']?_0x269c7f['newValue']&&_0x269c7f['oldValue']?{'type':'format','content':o(_0xdb43a9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4ede8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ede8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4ede8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4ede8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4ede8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a3372=this['editor'],_0x4f0063=_0x3a3372['locale'];_0x3a3372['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34ea81=>{if('formatBlock'!=_0x34ea81['type']&&'formatInline'!=_0x34ea81['type'])return;const {data:_0x5b570c}=_0x34ea81;if(!_0x5b570c||'replaceImageSource'!=_0x5b570c['commandName'])return;return{'type':'format','content':o(_0x4f0063,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x21b897{['afterInit'](){const _0x5e8fd0=this['editor'];if(!_0x5e8fd0['plugins']['has']('ImageStyleEditing'))return;const _0x4b7c78=_0x5e8fd0['plugins']['get']('TrackChangesEditing'),_0x2c58a6=_0x5e8fd0['plugins']['get']('ImageUtils'),_0xb10a98={};_0x4b7c78['enableCommand']('imageStyle',(_0x3e71eb,_0x5203ad)=>{const _0x29ca85=_0x5e8fd0['plugins']['get']('Users')['me'],_0x88c729=_0x5e8fd0['commands']['get']('imageStyle');let _0x44397c=_0x2c58a6['getClosestSelectedImageElement'](_0x5e8fd0['model']['document']['selection']),_0x26ff33=_0x5e8fd0['model']['createRangeOn'](_0x44397c),_0x77b3c=_0x88c729['value'];if(_0x77b3c==_0x5203ad['value'])return;const _0x5a1b1b={'commandName':'imageStyle','commandParams':[_0x5203ad],'formatGroupId':_0x507a09()};_0x5e8fd0['model']['change'](()=>{if(_0x4b7c78['getSuggestions']()['filter'](_0x335b30=>_0x335b30['isInContent']&&_0x29ca85==_0x335b30['author']&&('formatBlock'==_0x335b30['type']||'formatInline'==_0x335b30['type'])&&('imageStylePreApply'==_0x335b30['subType']||'imageStylePostApply'==_0x335b30['subType'])&&_0x335b30['getFirstRange']()['isEqual'](_0x26ff33))['forEach'](_0x24a4f4=>_0x4b7c78['discardSuggestion'](_0x24a4f4['head'])),_0x44397c=_0x2c58a6['getClosestSelectedImageElement'](_0x5e8fd0['model']['document']['selection']),_0x26ff33=_0x5e8fd0['model']['createRangeOn'](_0x44397c),_0x88c729['refresh'](),_0x5e8fd0['commands']['get']('imageTypeInline')['refresh'](),_0x5e8fd0['commands']['get']('imageTypeBlock')['refresh'](),_0x77b3c=_0x88c729['value'],_0x77b3c!=_0x5203ad['value'])return _0x2c58a6['isInlineImage'](_0x44397c)&&_0x88c729['shouldConvertImageType'](_0x5203ad['value'],_0x44397c)?(_0x3e71eb({..._0x5203ad,'setImageSizes':!0x1}),_0x44397c=_0x2c58a6['getClosestSelectedImageElement'](_0x5e8fd0['model']['document']['selection']),void _0x4b7c78['markBlockFormat'](_0x44397c,{..._0x5a1b1b,'commandReversedParams':[{'value':_0x77b3c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c58a6['isBlockImage'](_0x44397c)?_0x4b7c78['markBlockFormat'](_0x44397c,_0x5a1b1b,[],'imageStylePostApply'):_0x4b7c78['markInlineFormat'](_0x26ff33,_0x5a1b1b,'imageStylePostApply'));});});for(const _0x49d7be of _0x5e8fd0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xb10a98[_0x49d7be['name']]=_0x49d7be['title']['toLowerCase']();_0x4b7c78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4b7c78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4b7c78['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4b7c78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x49de59])=>{_0x2c58a6['setImageNaturalSizeAttributes'](_0x49de59['getContainedElement']());}),_0x4b7c78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x49b145,_0x272c57)=>{_0x4b7c78['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x49b145,{'commandName':_0x272c57['commandName'],'commandParams':_0x272c57['commandReversedParams']});}),_0x4b7c78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x339585,_0x37da43){if(_0x58ea08(_0x339585,_0x37da43))return[_0x339585,_0x37da43];if(_0x58ea08(_0x37da43,_0x339585))return[_0x37da43,_0x339585];return null;});const _0x5ccaab=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58ea08(_0x2d4267,_0x2540ea){const _0x2ecdfe=_0x5ccaab['findIndex'](({type:_0x5a59f1,subType:_0xa2a249})=>_0x2d4267['type']==_0x5a59f1&&_0x2d4267['subType']==_0xa2a249),_0x1491c7=_0x5ccaab['findIndex'](({type:_0x2d1836,subType:_0x8dc9d3})=>_0x2540ea['type']==_0x2d1836&&_0x2540ea['subType']==_0x8dc9d3);if(_0x2ecdfe<0x0||_0x1491c7<0x0)return!0x1;const _0x4f0f68=_0x2d4267['getFirstRange'](),_0x4a2a89=_0x2540ea['getFirstRange']();if((0x0==_0x2ecdfe||0x1==_0x2ecdfe)&&0x2==_0x1491c7&&_0x4f0f68['isIntersecting'](_0x4a2a89))return!0x0;if(0x2==_0x2ecdfe&&0x3==_0x1491c7){const _0x111ed7=_0x4b7c78['_findSuggestions'](_0x4f0f68,'insertion')['filter'](({suggestion:_0x44da0e,meta:_0x146e64})=>_0x146e64['isOwn']&&'convertInlineImageToBlock'==_0x44da0e['subType']);if(_0x111ed7['length']>0x1&&_0x4a2a89['end']['isEqual'](_0x4f0f68['start']))return!0x0;if(0x1==_0x111ed7['length']&&(_0x4f0f68['start']['isEqual'](_0x4a2a89['end'])||_0x4f0f68['end']['isEqual'](_0x4a2a89['start'])))return!0x0;}if(0x3==_0x2ecdfe&&0x3==_0x1491c7&&_0x4f0f68['start']['isBefore'](_0x4a2a89['start'])){const _0xa8b2c7=_0x4f0f68['end']['nodeAfter'],_0x2fc9d1=_0x4a2a89['start']['nodeBefore'];return _0x2c58a6['isBlockImage'](_0xa8b2c7)&&_0xa8b2c7===_0x2fc9d1;}return!0x1;}_0x5e8fd0['model']['document']['registerPostFixer'](()=>{let _0xc6be9d=!0x1;const _0x206c0d=Array['from'](_0x5e8fd0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x407371,data:_0x238a0e}of _0x206c0d){const {group:_0x51d6fc,type:_0x591d65,subType:_0x5cc901,id:_0x2789c5}=_0x4b7c78['_splitMarkerName'](_0x407371);if('suggestion'==_0x51d6fc&&_0x4b7c78['hasSuggestion'](_0x2789c5)){if('formatBlock'==_0x591d65&&('imageStylePreApply'==_0x5cc901||'imageStylePostApply'==_0x5cc901)){const _0x3e115d=_0x4b7c78['getSuggestion'](_0x2789c5);if(_0x238a0e['newRange']){const _0x57ea98=_0x3e115d['getFirstRange']()['getContainedElement']();if(_0x2c58a6['isBlockImage'](_0x57ea98))continue;_0x4b7c78['discardSuggestion'](_0x3e115d),_0xc6be9d=!0x0;}}if('insertion'==_0x591d65&&'imageCaption'==_0x5cc901&&!_0x238a0e['newRange']){const _0x3e6bd3=_0x4b7c78['getSuggestion'](_0x2789c5);_0x3e6bd3['next']&&_0x3e6bd3['next']['isInContent']&&(_0x4b7c78['discardSuggestion'](_0x3e6bd3['next']),_0xc6be9d=!0x0);}}}return _0xc6be9d;}),this['_registerLegacyDescription'](_0xb10a98);}['_registerLegacyDescription'](_0x2ee74c){const _0x219342=this['editor'],_0x1bfc30=_0x219342['locale'];_0x219342['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b3860=>{if('formatBlock'!=_0x3b3860['type']&&'formatInline'!=_0x3b3860['type'])return;const {data:_0x4b3647}=_0x3b3860;if(!_0x4b3647||'imageStyle'!=_0x4b3647['commandName'])return;const _0x391e7d=_0x4b3647['commandParams'][0x0]['value'];return _0x495002('side'===_0x391e7d?o(_0x1bfc30,'FORMAT_SIDE_IMAGE'):_0x2ee74c[_0x391e7d]||_0x391e7d);function _0x495002(_0x114295){return{'type':'format','content':o(_0x1bfc30,'*Format:*\x20%0',_0x114295)};}});}}class lt extends _0x21b897{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2fa9fd){super(_0x2fa9fd),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5d22a8=this['editor'],_0x13ed0c=_0x5d22a8['commands']['get']('importWord'),_0x5abca5=_0x5d22a8['commands']['get']('trackChanges');_0x13ed0c&&(_0x13ed0c['on']('execute',(_0x569d54,[,_0x1b8cc2])=>{this['_trackChangesValueDuringImport']=_0x5abca5['value'],_0x1b8cc2['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x13ed0c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x13ed0c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5abca5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5d22a8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1b0320,_0x2ec6a7){const {suggestions:_0xf02071}=_0x2ec6a7,_0x47a47=this['editor']['commands']['get']('trackChanges'),_0x34dfb7=_0x47a47['value'];this['_trackChangesValueDuringImport']!==_0x34dfb7&&(_0x47a47['execute'](),this['_trackChangesExecuted']=!0x0),_0xf02071&&_0xf02071['forEach'](({id:_0xff8461,type:_0x587a56,author:_0x5f4beb,created_at:_0x287c44})=>{const _0x4b25d9={'id':_0xff8461,'type':_0x587a56,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5f4beb,'createdAt':_0x287c44?new Date(_0x287c44):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4b25d9);});}}class gt extends _0x21b897{['afterInit'](){const _0x12942f=this['editor'],_0x236230=_0x12942f['plugins']['get']('TrackChangesEditing');if(_0x12942f['plugins']['has']('IndentEditing')&&(_0x236230['enableCommand']('indent'),_0x236230['enableCommand']('outdent')),_0x12942f['plugins']['has']('IndentBlock')){for(const _0x3ad23d of['indentBlock','outdentBlock'])_0x236230['enableDefaultAttributesIntegration'](_0x3ad23d);if(_0x12942f['plugins']['has']('ListEditing')){for(const _0xe22927 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x236230['enableDefaultAttributesIntegration'](_0xe22927);}}const _0x2987c3=_0x12942f['locale'];_0x236230['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2987c3,'FORMAT_INDENT')),_0x236230['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x2987c3,'FORMAT_INDENT')),_0x236230['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x2987c3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59b46e=this['editor'],_0x2ca918=_0x59b46e['locale'],_0xa4b7f1=_0x59b46e['plugins']['get']('TrackChangesEditing');_0xa4b7f1['descriptionFactory']['registerDescriptionCallback'](_0x13aee3=>{if('formatBlock'!=_0x13aee3['type'])return;const {data:_0x137ddd}=_0x13aee3;if(!_0x137ddd)return;if('indentBlock'!=_0x137ddd['commandName']&&'outdentBlock'!=_0x137ddd['commandName'])return;const _0x478e80=_0x13aee3['getItems']()[0x0],_0x39dd9c=_0xa4b7f1['descriptionFactory']['getItemLabel'](_0x478e80);return'indentBlock'==_0x137ddd['commandName']?{'type':'format','content':o(_0x2ca918,'*Indent:*\x20%0',_0x39dd9c)}:'outdentBlock'==_0x137ddd['commandName']?{'type':'format','content':o(_0x2ca918,'*Outdent:*\x20%0',_0x39dd9c)}:void 0x0;});}}class mt extends _0x21b897{static get['requires'](){return[_0x30dd16];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x21b897{['afterInit'](){const _0x24bbfa=this['editor'];if(!_0x24bbfa['plugins']['has']('LinkEditing'))return;const _0xf6a743=_0x24bbfa['plugins']['get']('TrackChangesEditing'),_0x2860fd=_0x24bbfa['commands']['get']('link');_0xf6a743['enableDefaultAttributesIntegration']('link'),_0xf6a743['enableDefaultAttributesIntegration']('unlink');for(const _0x32ff97 of _0x2860fd['manualDecorators'])_0xf6a743['descriptionFactory']['registerAttributeLabel'](_0x32ff97['id'],'link\x20('+_0x32ff97['label']['toLowerCase']()+')');_0xf6a743['descriptionFactory']['registerDescriptionCallback'](_0x6dc863=>{if('attribute'!=_0x6dc863['type'])return;const {data:_0x49e1b5}=_0x6dc863;if(!_0x49e1b5||'linkHref'!=_0x49e1b5['key'])return;const _0x48d502=_0x49e1b5['newValue'],_0x453b24=_0x24bbfa['locale'];return{'type':'format','content':null==_0x48d502?o(_0x453b24,'*Remove\x20link*'):o(_0x453b24,'*Set\x20link:*\x20%0','\x22'+_0x48d502+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58afd9=this['editor'],_0x2651c9=_0x58afd9['locale'];_0x58afd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d454=>{if('formatInline'!=_0x34d454['type'])return;const {data:_0x54ddb8}=_0x34d454;if(_0x54ddb8){if('link'==_0x54ddb8['commandName']){const _0x510074=_0x54ddb8['commandParams'][0x0];return{'type':'format','content':o(_0x2651c9,'*Set\x20link:*\x20%0','\x22'+_0x510074+'\x22')};}return'unlink'==_0x54ddb8['commandName']?{'type':'format','content':o(_0x2651c9,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x21b897{['afterInit'](){const _0x5c0575=this['editor'],_0x46623a=_0x5c0575['locale'];if(!_0x5c0575['plugins']['has']('LegacyListEditing'))return;const _0x392cc3=_0x5c0575['plugins']['get']('TrackChangesEditing'),_0x5ab826=_0x5c0575['plugins']['has']('LegacyTodoListEditing');function _0x4b0202(_0x494b40){return()=>{const _0x56221c=_0x5c0575['model']['document']['selection'],_0x4c57e0=_0x5c0575['commands']['get'](_0x494b40);if(_0x4c57e0['value'])return void _0x5c0575['execute']('paragraph',{});const _0x27fc4f=_0x494b40['slice'](0x0,-0x4),_0x125bd9=function(_0x3de7f8,_0x396420,_0x4cf3cc){let _0xfa88b1=Array['from'](_0x3de7f8)['filter'](_0x59470a=>function(_0x1e4eb5,_0xaec2dd){return _0xaec2dd['checkChild'](_0x1e4eb5['parent'],'listItem')&&!_0xaec2dd['isObject'](_0x1e4eb5);}(_0x59470a,_0x4cf3cc));_0xfa88b1=_0xfa88b1['filter'](_0x4522a6=>!_0x4522a6['is']('element','listItem')||_0x4522a6['getAttribute']('listType')!=_0x396420);const _0x115498=new Set();for(const _0x148cf9 of _0xfa88b1)_0x148cf9['is']('element','listItem')?_0x115498['add'](Le(_0x148cf9)):_0x115498['add'](_0x148cf9);return Array['from'](_0x115498);}(_0x56221c['getSelectedBlocks'](),_0x27fc4f,_0x5c0575['model']['schema']);_0x5c0575['model']['change'](()=>{for(const _0x58e6de of _0x125bd9)_0x392cc3['markBlockFormat'](_0x58e6de,{'commandName':_0x494b40,'commandParams':[{'forceValue':!_0x4c57e0['value']}],'formatGroupId':'blockName'},Ee(_0x58e6de));});};}function _0x24b3b5(_0x1e6b39){return()=>{const _0x383aad=function(_0x1f43a7){let _0x3d1c51=Array['from'](_0x1f43a7);const _0x442700=_0x3d1c51['findIndex'](_0x1e1caa=>'listItem'!=_0x1e1caa['name']);return _0x442700>-0x1&&(_0x3d1c51=_0x3d1c51['slice'](0x0,_0x442700)),_0x3d1c51;}(_0x5c0575['model']['document']['selection']['getSelectedBlocks']()),_0x14d1ba=_0x5c0575['model']['createRange'](_0x5c0575['model']['createPositionAt'](_0x383aad[0x0],'before'),_0x5c0575['model']['createPositionAt'](_0x383aad[_0x383aad['length']-0x1],'end'));_0x5c0575['model']['change'](()=>{_0x392cc3['markBlockFormat'](_0x14d1ba,{'commandName':_0x1e6b39,'commandParams':[],'formatGroupId':'listIndent'},function(_0x139138){const _0x31fd67=new Set();for(const _0x56df0a of _0x139138){let _0x5c954d=_0x56df0a['nextSibling'];for(;_0x5c954d&&_0x5c954d['getAttribute']('listIndent')>_0x56df0a['getAttribute']('listIndent');)_0x31fd67['add'](_0x5c954d),_0x5c954d=_0x5c954d['nextSibling'];}return Array['from'](_0x31fd67);}(_0x383aad));});};}_0x392cc3['enableCommand']('numberedList',_0x4b0202('numberedList')),_0x392cc3['enableCommand']('bulletedList',_0x4b0202('bulletedList')),_0x5ab826&&_0x392cc3['enableCommand']('todoList',_0x4b0202('todoList')),_0x392cc3['enableCommand']('indentList',_0x24b3b5('indentList')),_0x392cc3['enableCommand']('outdentList',_0x24b3b5('outdentList')),_0x5ab826&&_0x392cc3['enableCommand']('checkTodoList',()=>{const _0x52414c=_0x5c0575['commands']['get']('checkTodoList'),_0x281dba=Array['from'](_0x52414c['_selectedElements']);_0x281dba['filter'](_0x49298d=>_0x49298d['getAttribute']('todoListChecked')!=_0x52414c['value']),_0x5c0575['model']['change'](()=>{for(const _0x3a8de3 of _0x281dba)_0x392cc3['markBlockFormat'](_0x3a8de3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x52414c['value']}]});});}),_0x392cc3['descriptionFactory']['registerElementLabel']('listItem',_0x25769b=>o(_0x46623a,'ELEMENT_LIST_ITEM',_0x25769b)),_0x392cc3['descriptionFactory']['registerDescriptionCallback'](_0x40526d=>{if('formatBlock'!=_0x40526d['type']&&'formatInline'!=_0x40526d['type'])return;const {data:_0x423d87}=_0x40526d;if(_0x423d87){if('numberedList'==_0x423d87['commandName']||'bulletedList'==_0x423d87['commandName']||'todoList'==_0x423d87['commandName'])switch(_0x423d87['commandName']['replace']('List','')){case'bulleted':return _0x2036cb(o(_0x46623a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2036cb(o(_0x46623a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2036cb(o(_0x46623a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x423d87['commandName'])return{'type':'format','content':o(_0x46623a,'*Indent:*\x20%0',o(_0x46623a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x423d87['commandName'])return{'type':'format','content':o(_0x46623a,'*Outdent:*\x20%0',o(_0x46623a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x423d87['commandName'])return _0x423d87['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46623a,'*Check\x20item*')}:{'type':'format','content':o(_0x46623a,'*Uncheck\x20item*')};}function _0x2036cb(_0xe01965){return{'type':'format','content':o(_0x46623a,'*Change\x20to:*\x20%0',_0xe01965)};}});}}function Le(_0x271164){const _0x58f067=_0x271164['getAttribute']('listIndent');if(0x0==_0x58f067)return _0x271164;let _0x147969=_0x271164;for(;_0x271164['previousSibling']&&_0x271164['previousSibling']['is']('element','listItem');){const _0x2eff82=_0x271164['previousSibling']['getAttribute']('listIndent');if(_0x2eff82==_0x58f067)_0x147969=_0x271164['previousSibling'];else{if(_0x2eff82<_0x58f067)break;}_0x271164=_0x271164['previousSibling'];}return _0x147969;}function Ee(_0x4ac09d){const _0x53a600=[];if(_0x4ac09d['is']('element','listItem')&&_0x4ac09d['getAttribute']('listIndent')>0x0){let _0x436788=_0x4ac09d['nextSibling'];for(;_0x436788&&'listItem'==_0x436788['name']&&_0x436788['getAttribute']('listIndent')==_0x4ac09d['getAttribute']('listIndent');)_0x53a600['push'](_0x436788),_0x436788=_0x436788['nextSibling'];}return _0x53a600;}class wt extends _0x21b897{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3d2d84=this['editor']['config']['get']('list.properties'),_0x8f91d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d2d84['styles']&&_0x8f91d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3d2d84['reversed']&&_0x8f91d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3d2d84['startIndex']&&_0x8f91d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x8f91d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x516cd0,_0x19286b={}){const _0x49efef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26cf66=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x49efef['markMultiRangeBlockFormat'](_0x26cf66,{'commandName':'listStyle','commandParams':[{'type':_0x19286b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3a2383,_0x50cf68={}){const _0x305329=this['editor']['plugins']['get']('TrackChangesEditing'),_0x121eae=this['_getSuggestionBlocks'](_0x149856=>_0x149856['is']('element','listItem')&&'numbered'===_0x149856['getAttribute']('listType'));if(_0x121eae['length']<0x1)return;const _0x452bfa=_0x121eae['map'](_0x5146bb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5146bb,'before'),this['editor']['model']['createPositionAt'](_0x5146bb,0x0)));this['editor']['model']['change'](()=>{_0x305329['markMultiRangeBlockFormat'](_0x452bfa,{'commandName':'listReversed','commandParams':[{'reversed':_0x50cf68['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x10f038,_0x2bebf1={}){const _0x2eb46b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fa1b1=this['_getSuggestionBlocks'](_0x5812ea=>_0x5812ea['is']('element','listItem')&&'numbered'===_0x5812ea['getAttribute']('listType'));if(_0x1fa1b1['length']<0x1)return;const _0x860d89=_0x1fa1b1['map'](_0x2cbdc6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2cbdc6,'before'),this['editor']['model']['createPositionAt'](_0x2cbdc6,0x0)));this['editor']['model']['change'](()=>{_0x2eb46b['markMultiRangeBlockFormat'](_0x860d89,{'commandName':'listStart','commandParams':[{'startIndex':_0x2bebf1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x575a6b){if('formatBlock'!=_0x575a6b['type']&&'formatInline'!=_0x575a6b['type'])return;const _0x5d023c=this['editor']['locale'],{data:_0x1aed84}=_0x575a6b;if(!_0x1aed84)return;let _0x4560d1,_0xe4080e;switch(_0x1aed84['commandName']){case'listStyle':_0x4560d1='*Change\x20to:*\x20%0',_0xe4080e={'type':'format','content':o(_0x5d023c,_0x4560d1,o(_0x5d023c,this['_getTranslationKeyForListStyle'](_0x1aed84['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4560d1=_0x1aed84['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe4080e={'type':'format','content':o(_0x5d023c,_0x4560d1)};break;case'listStart':_0x4560d1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe4080e={'type':'format','content':o(_0x5d023c,_0x4560d1,_0x1aed84['commandParams'][0x0]['startIndex'])};}return _0xe4080e;}['_getSuggestionBlocksForListStyle'](){const _0x38ebc9=this['editor']['plugins']['get']('LegacyListUtils');let _0xf5a477=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xf5a477[0x0]?.['is']('element','listItem')&&_0xf5a477['unshift'](..._0x38ebc9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xf5a477[_0xf5a477['length']-0x1]?.['is']('element','listItem')&&_0xf5a477['push'](..._0x38ebc9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xf5a477=[...new Set(_0xf5a477)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xf5a477=_0xf5a477['filter'](_0xd4c387=>_0xd4c387['is']('element','listItem'))),_0xf5a477;}['_getSuggestionBlocks'](_0x2bf9bd){const _0x54fa20=this['editor']['plugins']['get']('LegacyListUtils');let _0x55d00e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2bf9bd)['map'](_0x58e7a7=>{const _0xefcd69=this['editor']['model']['createPositionAt'](_0x58e7a7,0x0);return[..._0x54fa20['getSiblingNodes'](_0xefcd69,'backward'),..._0x54fa20['getSiblingNodes'](_0xefcd69,'forward')];})['flat']();return _0x55d00e=[...new Set(_0x55d00e)],_0x55d00e;}['_getTranslationKeyForListStyle'](_0x338a33){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x338a33)||'default')['toUpperCase']()+'_LIST_'+_0x338a33['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x21b897{['afterInit'](){const _0x3feb0f=this['editor'];if(!_0x3feb0f['plugins']['has']('MediaEmbedEditing'))return;const _0x469161=_0x3feb0f['plugins']['get']('TrackChangesEditing'),_0x1f93eb=_0x3feb0f['locale'];_0x469161['enableCommand']('mediaEmbed'),_0x469161['descriptionFactory']['registerElementLabel']('media',_0x3b5fc6=>o(_0x1f93eb,'ELEMENT_MEDIA',_0x3b5fc6));}}class bt extends _0x21b897{['afterInit'](){const _0x20434e=this['editor'];_0x20434e['plugins']['has']('MentionEditing')&&_0x20434e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x21b897{['afterInit'](){const _0x5e7c5b=this['editor'];if(!_0x5e7c5b['plugins']['has']('MergeFieldsEditing'))return;const _0x4301d1=_0x5e7c5b['plugins']['get']('TrackChangesEditing'),_0x3d48a2=_0x5e7c5b['locale'];_0x4301d1['enableCommand']('insertMergeField'),_0x4301d1['enableCommand']('insertMergeFieldBlock'),_0x4301d1['enableCommand']('insertMergeFieldImage'),_0x4301d1['descriptionFactory']['registerElementLabel']('mergeField',_0x122fec=>o(_0x3d48a2,'ELEMENT_MERGE_FIELD',_0x122fec)),_0x4301d1['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x524092=>o(_0x3d48a2,'ELEMENT_MERGE_FIELD',_0x524092)),_0x4301d1['descriptionFactory']['registerDescriptionCallback'](_0xb7f0a3=>{if('insertion'!=_0xb7f0a3['type']&&'deletion'!=_0xb7f0a3['type'])return;const _0x14c841=_0xb7f0a3['getContainedElement']();if(null==_0x14c841)return;const _0x545c16=_0x5e7c5b['plugins']['get']('MergeFieldsEditing');let _0x39a186;switch(_0x545c16['getMergeFieldType'](_0x14c841)){case null:return;case'image':{const _0x30ad6b=_0x545c16['unwrapAffixes'](_0x14c841['getAttribute']('src'));_0x39a186=_0x545c16['getLabel'](_0x30ad6b)||_0x30ad6b;break;}default:{const _0x5213f8=_0x14c841['getAttribute']('id');_0x39a186=_0x545c16['getLabel'](_0x5213f8)||_0x5213f8;break;}}return'insertion'==_0xb7f0a3['type']?{'type':'insertion','content':o(_0x3d48a2,'*Insert:*\x20%0','\x22'+_0x39a186+'\x22\x20'+o(_0x3d48a2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3d48a2,'*Remove:*\x20%0','\x22'+_0x39a186+'\x22\x20'+o(_0x3d48a2,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x21b897{['afterInit'](){const _0x2a773a=this['editor'],_0x2c6c85=_0x2a773a['plugins']['get']('TrackChangesEditing');_0x2a773a['plugins']['has']('MultiLevelList')&&(_0x2c6c85['enableDefaultAttributesIntegration']('multiLevelList'),_0x2c6c85['descriptionFactory']['registerDescriptionCallback'](_0xfc5491=>this['handleDescriptions'](_0xfc5491)));}['handleDescriptions'](_0x13c4d2){const _0x410830=this['editor']['locale'],{data:_0x3c5fbd}=_0x13c4d2,_0x2bf116={'type':'format','content':''};if(_0x3c5fbd&&'listMarkerStyle'==_0x3c5fbd['key']){if(!_0x3c5fbd['oldValue'])return{'type':'format','content':o(_0x410830,'*Set\x20format:*\x20%0',o(_0x410830,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c5fbd['newValue']+')'};if(!_0x3c5fbd['newValue']){let _0x4dd77a=_0x13c4d2['head'];for(;_0x4dd77a;){if(_0x4dd77a['data']&&'listType'==_0x4dd77a['data']['key']&&_0x4dd77a['data']['newValue'])return _0x2bf116;_0x4dd77a=_0x4dd77a['next'];}return{'type':'format','content':o(_0x410830,'*Remove\x20format:*\x20%0',o(_0x410830,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c5fbd['oldValue']+')'};}}}}class St extends _0x21b897{['afterInit'](){const _0x51d986=this['editor'];if(!_0x51d986['plugins']['has']('PageBreakEditing'))return;_0x51d986['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x375ce4=_0x51d986['plugins']['get']('TrackChangesEditing'),_0x185973=_0x51d986['locale'];_0x375ce4['descriptionFactory']['registerElementLabel']('pageBreak',_0x5935e2=>o(_0x185973,'ELEMENT_PAGE_BREAK',_0x5935e2));}}class It extends _0x21b897{['afterInit'](){const _0x107f94=this['editor'];if(!_0x107f94['plugins']['has']('Paragraph'))return;const _0x16426e=_0x107f94['locale'],_0x2cef98=_0x107f94['plugins']['get']('TrackChangesEditing');_0x2cef98['descriptionFactory']['registerElementLabel']('paragraph',_0x4a58f1=>o(_0x16426e,'ELEMENT_PARAGRAPH',_0x4a58f1)),_0x2cef98['enableDefaultAttributesIntegration']('paragraph'),_0x2cef98['enableCommand']('insertParagraph');const _0x4d2060=_0x2cef98['descriptionFactory'];_0x4d2060['registerDescriptionCallback'](_0x139d0f=>{if('insertion'!==_0x139d0f['type'])return;const {start:_0x271d2a,end:_0x11ae93}=_0x139d0f['getFirstRange']();if(!_0x271d2a['isTouching'](_0x11ae93)||!_0x271d2a['nodeAfter'])return;const _0x14eb10=_0x107f94['model']['schema'],_0x2628dd=_0x271d2a['nodeAfter'];return _0x14eb10['isBlock'](_0x2628dd)&&!_0x14eb10['isLimit'](_0x2628dd)&&_0x14eb10['checkChild'](_0x2628dd,'$text')?{'type':'insertion','content':o(_0x16426e,'*Insert:*\x20%0',_0x4d2060['getItemLabel'](_0x2628dd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fc7bf=this['editor'],_0x138105=_0x2fc7bf['locale'];_0x2fc7bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c0521=>{if('formatBlock'!=_0x5c0521['type'])return;const {data:_0x15aae5}=_0x5c0521;return _0x15aae5&&'paragraph'==_0x15aae5['commandName']?{'type':'format','content':o(_0x138105,'*Change\x20to:*\x20%0',o(_0x138105,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x21b897{['afterInit'](){const _0x289ff7=this['editor'];_0x289ff7['commands']['get']('replaceSource')&&_0x289ff7['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x21b897{['afterInit'](){const _0x257f50=this['editor'];if(!_0x257f50['plugins']['has']('RemoveFormatEditing'))return;_0x257f50['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x203b34=this['editor'];_0x203b34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ae438=>{if('formatBlock'!=_0x2ae438['type']&&'formatInline'!=_0x2ae438['type'])return;const {data:_0x1bf14c}=_0x2ae438;return _0x1bf14c&&'removeFormat'==_0x1bf14c['commandName']?{'type':'format','content':o(_0x203b34['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x21b897{['afterInit'](){const _0x101c58=this['editor'];if(!_0x101c58['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4008f8=_0x101c58['plugins']['get']('TrackChangesEditing');_0x4008f8['enableCommand']('goToPreviousRestrictedEditingException'),_0x4008f8['enableCommand']('goToNextRestrictedEditingException');const _0x193293=_0x101c58['plugins']['get']('RestrictedEditingModeEditing');_0x193293['enableCommand']('trackChanges'),_0x193293['enableCommand']('acceptSuggestion'),_0x193293['enableCommand']('discardSuggestion'),_0x193293['enableCommand']('acceptAllSuggestions'),_0x193293['enableCommand']('discardAllSuggestions'),_0x193293['enableCommand']('acceptSelectedSuggestions'),_0x193293['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x21b897{['afterInit'](){const _0x28459a=this['editor'];if(!_0x28459a['plugins']['has']('ShiftEnter'))return;const _0x87753c=_0x28459a['plugins']['get']('TrackChangesEditing');_0x87753c['enableCommand']('shiftEnter'),_0x87753c['descriptionFactory']['registerElementLabel']('softBreak',_0x44695f=>o(_0x28459a['locale'],'ELEMENT_LINE_BREAK',_0x44695f));}}function an(_0x19ca00,_0x320cae,_0x18bb42){const _0x172000=[];for(const _0x396b72 of _0x320cae['getItems']())_0x396b72['hasAttribute'](_0x19ca00)&&_0x172000['push'](_0x18bb42['createRangeOn'](_0x396b72));return _0x172000;}class $t extends _0x21b897{['afterInit'](){const _0x4b7afe=this['editor'],_0x2e45e7=_0x4b7afe['plugins']['get']('TrackChangesEditing');_0x4b7afe['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2e45e7['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x186ded=this['editor'],_0x1d337f=_0x186ded['model'],_0x35142c=_0x186ded['locale'],_0x100577=_0x186ded['plugins']['get']('TrackChangesEditing'),_0x57291b='restrictedEditingException',_0x4e8fdb=_0x186ded['commands']['get'](_0x57291b);_0x100577['enableCommand'](_0x57291b,(_0x2807e9,_0x535c29={})=>{const _0x53d587=_0x1d337f['document']['selection'];if(_0x53d587['isCollapsed'])return void _0x2807e9(_0x535c29);const _0x47756d=void 0x0!==_0x535c29['forceValue']?_0x535c29['forceValue']:!_0x4e8fdb['value'];_0x1d337f['change'](()=>{const _0x29de63=Array['from'](_0x53d587['getRanges']());for(const _0x5f2624 of _0x29de63){const _0x38fd0e=_0x47756d?[_0x5f2624]:an(_0x57291b,_0x5f2624,_0x1d337f);for(const _0x5e59b3 of _0x38fd0e)_0x100577['markInlineFormat'](_0x5e59b3,{'commandName':_0x57291b,'commandParams':[{'forceValue':_0x47756d}]});}});}),_0x100577['descriptionFactory']['registerDescriptionCallback'](_0x3581b1=>{if('formatBlock'!=_0x3581b1['type']&&'formatInline'!=_0x3581b1['type'])return;const {data:_0x451e51}=_0x3581b1;return _0x451e51&&_0x451e51['commandName']==_0x57291b?_0x451e51['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35142c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x35142c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xda8beb=this['editor'],_0x31e87c=_0xda8beb['locale'],_0x2641a5=_0xda8beb['plugins']['get']('TrackChangesEditing'),_0x289240='restrictedEditingExceptionBlock',_0x5b43f3=this['editor']['commands']['get'](_0x289240);_0x2641a5['enableCommand'](_0x289240,(_0xd628fd,_0x798613={})=>{const _0x1adbb6=this['editor']['model']['document']['selection'],_0x18a7b9=_0x798613&&void 0x0!==_0x798613['forceValue']?_0x798613['forceValue']:!_0x5b43f3['value'];let _0x225d8d=[];if(_0x18a7b9){const _0x3c1d93=Array['from'](_0x1adbb6['getSelectedBlocks']())['filter'](_0x378f3d=>function(_0x5b1106){return!!_0x5b1106['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x378f3d)||function(_0x1ed67e,_0x3451be){const _0x3b1327=_0x3451be['createContext'](_0x1ed67e['parent']);if(!_0x3451be['checkChild'](_0x3b1327,'restrictedEditingException'))return!0x1;if(!_0x3451be['checkChild'](_0x3b1327['push']('restrictedEditingException'),_0x1ed67e))return!0x1;return!0x0;}(_0x378f3d,this['editor']['model']['schema']));_0x225d8d=to(_0x3c1d93,_0xda8beb['model']);}else{const _0x35eb42=Array['from'](_0x1adbb6['getSelectedBlocks']())['map'](_0x18cad0=>function(_0x108df8){let _0x183a82=_0x108df8;for(;_0x183a82['parent'];){if('restrictedEditingException'==_0x183a82['parent']['name'])return _0x183a82;_0x183a82=_0x183a82['parent'];}return null;}(_0x18cad0))['filter'](_0x54243d=>!!_0x54243d);_0x225d8d=to(_0x35eb42,_0xda8beb['model']);}_0xda8beb['model']['change'](()=>{for(const _0x422583 of _0x225d8d)_0x2641a5['markBlockFormat'](_0x422583,{'commandName':_0x289240,'commandParams':[{'forceValue':_0x18a7b9}]});});}),_0x2641a5['descriptionFactory']['registerDescriptionCallback'](_0x410d00=>{const {data:_0x376775}=_0x410d00;if(_0x376775&&_0x376775['commandName']==_0x289240)return _0x376775['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31e87c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x31e87c,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x21b897{['afterInit'](){const _0x1f575f=this['editor'];if(!_0x1f575f['plugins']['has']('Style')||!_0x1f575f['plugins']['has']('DataSchema'))return;const _0x14e428=_0x1f575f['plugins']['get']('TrackChangesEditing'),_0x45a210=_0x1f575f['locale'],_0x7034e5=_0x1f575f['config']['get']('style')||{},_0x384f93=_0x1f575f['plugins']['get']('GeneralHtmlSupport'),_0x2dbf2b=_0x1f575f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1f575f['plugins']['get']('DataSchema'),_0x7034e5['definitions']);_0x14e428['enableDefaultAttributesIntegration']('style');const _0x553fa2=new Set();for(const _0xb27d45 of _0x2dbf2b['block']){const _0xcc99e2=_0x384f93['getGhsAttributeNameForElement'](_0xb27d45['element']);_0x553fa2['add'](_0xcc99e2);}const _0x35ecb6=new Set();for(const _0x447346 of _0x2dbf2b['inline']){const _0x2a1e02=_0x384f93['getGhsAttributeNameForElement'](_0x447346['element']);_0x35ecb6['add'](_0x2a1e02);for(const _0x2085b6 of _0x447346['ghsAttributes'])_0x35ecb6['add'](_0x2085b6);}for(const _0x5533b2 of _0x553fa2)_0x14e428['descriptionFactory']['registerAttributeLabel'](_0x5533b2,o(_0x45a210,'FORMAT_STYLE'));for(const _0xae5b89 of _0x35ecb6)_0x14e428['descriptionFactory']['registerAttributeLabel'](_0xae5b89,o(_0x45a210,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x583c0b=this['editor'],_0x543555=_0x583c0b['locale'];_0x583c0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd384=>{if('formatBlock'!=_0x1cd384['type']&&'formatInline'!=_0x1cd384['type'])return;const {data:_0x3e3f8a}=_0x1cd384;return _0x3e3f8a&&'style'===_0x3e3f8a['commandName']?_0x3e3f8a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x543555,'*Set\x20format:*\x20%0',_0x3e3f8a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x543555,'*Remove\x20format:*\x20%0',_0x3e3f8a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x21b897{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x43482b){super(_0x43482b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x53f9bb=this['editor'],_0x8acb63=_0x53f9bb['model']['document']['selection'];if(!_0x53f9bb['plugins']['has']('TableEditing'))return;const _0x2a60bc=_0x53f9bb['locale'],_0x5a1944=_0x53f9bb['plugins']['get']('TrackChangesEditing'),_0x4fb5d2=_0x53f9bb['plugins']['get']('TableUtils');_0x5a1944['descriptionFactory']['registerElementLabel']('table',_0x2dc671=>o(_0x2a60bc,'ELEMENT_TABLE',_0x2dc671)),this['_setupColumnsRowsFixing'](),_0x5a1944['enableCommand']('insertTable'),_0x5a1944['enableCommand']('selectTableRow'),_0x5a1944['enableCommand']('selectTableColumn');for(const _0x4bbe93 of['insertTableRowAbove','insertTableRowBelow']){const _0x55a615=_0x53f9bb['commands']['get'](_0x4bbe93);_0x5a1944['enableCommand'](_0x4bbe93,_0x34516d=>{_0x53f9bb['model']['change'](_0x256726=>{_0x34516d();const _0x4037cf='above'===_0x55a615['order'],_0x372a9f=_0x4fb5d2['getSelectionAffectedTableCells'](_0x8acb63),_0x2806a7=_0x4fb5d2['getRowIndexes'](_0x372a9f),_0x22dcb7=_0x4037cf?_0x2806a7['first']-0x1:_0x2806a7['last']+0x1,_0x27c312=_0x372a9f[0x0]['findAncestor']('table'),_0x46b9d1=_0x4fb5d2['createTableWalker'](_0x27c312,{'startRow':_0x22dcb7,'endRow':_0x22dcb7}),_0x1dd785=Array['from'](_0x46b9d1)['map'](_0x5df0f6=>_0x256726['createRangeOn'](_0x5df0f6['cell']));_0x5a1944['markMultiRangeInsertion'](_0x1dd785,'tableRow');});});}for(const _0x3422fc of['insertTableColumnLeft','insertTableColumnRight']){const _0x1a3871=_0x53f9bb['commands']['get'](_0x3422fc);_0x5a1944['enableCommand'](_0x3422fc,_0x481506=>{_0x53f9bb['model']['change'](_0x160078=>{_0x481506();const _0x297d64='left'===_0x1a3871['order'],_0x179af7=_0x4fb5d2['getSelectionAffectedTableCells'](_0x8acb63),_0x50944f=_0x4fb5d2['getColumnIndexes'](_0x179af7),_0x1f3c71=_0x297d64?_0x50944f['first']-0x1:_0x50944f['last']+0x1,_0x12da6f=_0x179af7[0x0]['findAncestor']('table'),_0x24b567=_0x4fb5d2['createTableWalker'](_0x12da6f,{'startRow':0x0,'column':_0x1f3c71,'includeAllSlots':!0x1}),_0x21b9a8=Array['from'](_0x24b567)['map'](_0x5afa5e=>_0x160078['createRangeOn'](_0x5afa5e['cell']));_0x5a1944['markMultiRangeInsertion'](_0x21b9a8,'tableColumn');});});}for(const _0x584c8b of['removeTableRow','removeTableColumn']){const _0x3a002e=_0x584c8b['substr'](0xb),_0x5bc52e=_0x3a002e['toLowerCase'](),_0x310d49=_0x5bc52e['substr'](0x0,0x3)+'span',_0x4b3607='table'+_0x3a002e,_0x450a1e='min'+_0x3a002e,_0x2ac4ca='max'+_0x3a002e;_0x5a1944['enableCommand'](_0x584c8b,()=>{_0x53f9bb['model']['change'](_0x3fd8b5=>{const _0xf9b990=_0x4fb5d2['getSelectionAffectedTableCells'](_0x8acb63),_0x283af4=_0xf9b990[0x0]['findAncestor']('table');let _0x294574;if('removeTableRow'==_0x584c8b){const _0x50db15=_0x4fb5d2['getRowIndexes'](_0xf9b990);_0x294574={'startRow':_0x50db15['first'],'endRow':_0x50db15['last'],'includeAllSlots':!0x0};}else{const _0x4ff9d7=_0x4fb5d2['getColumnIndexes'](_0xf9b990);_0x294574={'startColumn':_0x4ff9d7['first'],'endColumn':_0x4ff9d7['last'],'includeAllSlots':!0x0};}const _0x41914e=_0x4fb5d2['createTableWalker'](_0x283af4,_0x294574),_0x37ba50=Array['from'](_0x41914e)['map'](({cell:_0x46add9})=>_0x46add9),_0x471fbd=_e(_0x37ba50['filter'](_0x1a53e8=>_0x1a53e8['hasAttribute'](_0x310d49))),_0x2049db=_e(_0x37ba50['filter'](_0x21683f=>!_0x21683f['hasAttribute'](_0x310d49)))['map'](_0x4fb4bc=>_0x3fd8b5['createRangeOn'](_0x4fb4bc)),_0x2ab2cd=_0x5a1944['markMultiRangeDeletion'](_0x2049db,_0x4b3607);if(_0x2ab2cd&&('tableRow'==_0x2ab2cd['subType']||'tableColumn'==_0x2ab2cd['subType'])){const _0x55c030=this['_getSuggestionCoords'](_0x2ab2cd);for(const _0x710f1d of _0x471fbd){const _0x4a44cc=_0x3fd8b5['createRangeOn'](_0x710f1d),_0x119caf=_0x4fb5d2['getCellLocation'](_0x710f1d),_0x21240f=_0x710f1d['getAttribute'](_0x310d49)-0x1,_0x3324d4=_0x55c030[_0x450a1e],_0x21983a=_0x55c030[_0x2ac4ca];_0x3324d4<=_0x119caf[_0x5bc52e]&&_0x119caf[_0x5bc52e]+_0x21240f<=_0x21983a&&_0x2ab2cd['addRange'](_0x4a44cc);}}});});}function _0x1da003(_0x5e1c05){const _0x16d55e=Array['from'](_0x8acb63['getRanges']())['map'](_0x4a1e06=>_0x5d12c9['fromRange'](_0x4a1e06));_0x53f9bb['model']['change'](_0x4206c4=>{const _0x36e1e2=_0x4206c4['batch'];_0x5e1c05=_0x5e1c05['filter'](_0x29ad29=>'$graveyard'!=_0x29ad29['root']['rootName']),_0x4206c4['setSelection'](_0x5e1c05),_0x53f9bb['commands']['get']('removeTableRow')['refresh'](),_0x53f9bb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x53f9bb['model']['enqueueChange'](()=>{_0x53f9bb['model']['enqueueChange'](_0x36e1e2,_0x67abb2=>{const _0x1a78d7=_0x16d55e['filter'](_0x4e2141=>'$graveyard'!=_0x4e2141['root']['rootName']);_0x1a78d7['length']>0x0&&_0x67abb2['setSelection'](_0x1a78d7);for(const _0x3cf60b of _0x16d55e)_0x3cf60b['detach']();});});});}function _0xe8ebe8(_0x2f3ef5){_0x53f9bb['model']['change'](_0x89917d=>{const _0x247725=Array['from'](_0x8acb63['getRanges']())['map'](_0x25f837=>_0x5d12c9['fromRange'](_0x25f837)),_0x1a97b1=[];for(const _0x529aa5 of _0x2f3ef5)for(const _0x1e223f of _0x529aa5['getItems']({'shallow':!0x0}))_0x1a97b1['push'](_0x1e223f);for(const _0x9b1bf2 of _0x1a97b1)'$graveyard'!=_0x9b1bf2['root']['rootName']&&(_0x89917d['setSelection'](_0x89917d['createPositionAt'](_0x9b1bf2,0x0)),_0x53f9bb['commands']['get']('removeTableColumn')['refresh'](),_0x53f9bb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x20e45e=_0x247725['filter'](_0x32908c=>'$graveyard'!=_0x32908c['root']['rootName']);_0x20e45e['length']>0x0&&_0x89917d['setSelection'](_0x20e45e);for(const _0x1944d6 of _0x247725)_0x1944d6['detach']();});}function _0x1f3cec(_0x1c1b9e,_0x5b0f5c){return _0x5b0f5c['every'](_0x280b5c=>_0x1c1b9e['some'](_0x3be961=>_0x3be961['end']['isEqual'](_0x280b5c['start'])||_0x280b5c['end']['isEqual'](_0x3be961['start'])));}function _0x3165cd(_0x37f93e,_0x46e8a9){return!_0x37f93e['some'](_0x34820a=>_0x46e8a9['some'](_0x1eccff=>_0x34820a['isIntersecting'](_0x1eccff)))&&_0x37f93e['some'](_0x3bf44b=>_0x46e8a9['some'](_0x1ec1b5=>_0x3bf44b['end']['isTouching'](_0x1ec1b5['start'])));}_0x5a1944['descriptionFactory']['registerDescriptionCallback'](_0x5e62df=>{if('insertion'!=_0x5e62df['type']&&'deletion'!=_0x5e62df['type'])return;const _0x5f0f74=_0x5e62df['getContainedElement']();if(null!=_0x5f0f74&&_0x5f0f74['is']('element','table')){if('insertion'==_0x5e62df['type']){const _0x5e1eac=_0x5e62df['getItems']()['filter'](_0x5ee81e=>_0x5ee81e['is']('$textProxy'))['map'](_0x1fa07a=>_0x1fa07a['data']);if(_0x5e1eac['length'])return{'type':'insertion','content':o(_0x2a60bc,'*Insert:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e1eac['join']('\x20')+'\x22'))};}if('deletion'==_0x5e62df['type']){const _0x37a6fc=_0x5e62df['getItems']()['filter'](_0x1b3f9e=>_0x1b3f9e['is']('$textProxy'))['map'](_0x367496=>_0x367496['data']);if(_0x37a6fc['length'])return{'type':'deletion','content':o(_0x2a60bc,'*Remove:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37a6fc['join']('\x20')+'\x22'))};}}}),_0x5a1944['descriptionFactory']['registerDescriptionCallback'](_0x4b5075=>{if('tableRow'==_0x4b5075['subType']){const _0x551aed=_0x4b5075['getItems']()['filter'](_0x48cdf0=>_0x48cdf0['is']('$textProxy'))['map'](_0x2c6686=>_0x2c6686['data']),_0x5d94da=this['_getSuggestionCoords'](_0x4b5075),_0x529cf8=_0x5d94da['maxRow']-_0x5d94da['minRow']+0x1;if('insertion'==_0x4b5075['type'])return _0x551aed['length']?{'type':'insertion','content':o(_0x2a60bc,'*Insert:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x529cf8,'\x22'+_0x551aed['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2a60bc,'*Insert:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_ROW',_0x529cf8))};if('deletion'==_0x4b5075['type'])return _0x551aed['length']?{'type':'deletion','content':o(_0x2a60bc,'*Remove:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x529cf8,'\x22'+_0x551aed['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2a60bc,'*Remove:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_ROW',_0x529cf8))};}if('tableColumn'==_0x4b5075['subType']){const _0x43325c=_0x4b5075['getItems']()['filter'](_0x5ea69b=>_0x5ea69b['is']('$textProxy'))['map'](_0xe02359=>_0xe02359['data']),_0xe4fac6=this['_getSuggestionCoords'](_0x4b5075),_0x4e72d5=_0xe4fac6['maxColumn']-_0xe4fac6['minColumn']+0x1;if('insertion'==_0x4b5075['type'])return _0x43325c['length']?{'type':'insertion','content':o(_0x2a60bc,'*Insert:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4e72d5,'\x22'+_0x43325c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2a60bc,'*Insert:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_COLUMN',_0x4e72d5))};if('deletion'==_0x4b5075['type'])return _0x43325c['length']?{'type':'deletion','content':o(_0x2a60bc,'*Remove:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4e72d5,'\x22'+_0x43325c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2a60bc,'*Remove:*\x20%0',o(_0x2a60bc,'ELEMENT_TABLE_COLUMN',_0x4e72d5))};}}),_0x5a1944['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1da003),_0x5a1944['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1da003),_0x5a1944['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xe8ebe8),_0x5a1944['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xe8ebe8),_0x5a1944['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f3cec),_0x5a1944['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f3cec),_0x5a1944['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3165cd),_0x5a1944['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3165cd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x584860=this['editor'],_0x571012=_0x584860['model']['document']['selection'];return(_0x399cc7,_0x4af0b9)=>{_0x584860['model']['change'](_0x7e6924=>{const {commandName:_0x2a8c04,commandParams:_0x3710b1}=_0x4af0b9;let _0x5c8794=_0x399cc7[0x0]['end']['nodeBefore'];_0x3710b1&&_0x3710b1[0x0]&&!0x1===_0x3710b1[0x0]['forceValue']&&(_0x5c8794=_0x399cc7[0x0]['start']['nodeAfter']);const _0x2706c5=_0x7e6924['createRangeIn'](_0x5c8794);if('$graveyard'==_0x2706c5['root']['rootName'])return;const _0x4dd65f=Array['from'](_0x571012['getRanges']())['map'](_0x9a9821=>_0x5d12c9['fromRange'](_0x9a9821));_0x7e6924['setSelection'](_0x2706c5),_0x584860['commands']['get'](_0x2a8c04)['refresh'](),_0x3710b1['push']({'forceDefaultExecution':!0x0}),_0x584860['execute'](_0x2a8c04,..._0x3710b1);const _0x911d99=_0x4dd65f['filter'](_0x5e3160=>'$graveyard'!=_0x5e3160['root']['rootName']);_0x911d99['length']>0x0&&_0x7e6924['setSelection'](_0x911d99);for(const _0x3bad99 of _0x4dd65f)_0x3bad99['detach']();});};}['_getCoordsForCells'](_0x434ea2){const _0x5c0230=this['editor']['plugins']['get']('TableUtils');let _0x352c17=Number['MAX_SAFE_INTEGER'],_0x29bc86=Number['MIN_SAFE_INTEGER'],_0x38ca34=Number['MAX_SAFE_INTEGER'],_0x1f1de1=Number['MIN_SAFE_INTEGER'];for(const _0xe91e10 of _0x434ea2){if('$graveyard'==_0xe91e10['root']['rootName'])continue;const {row:_0x2209d2,column:_0x4e1d41}=_0x5c0230['getCellLocation'](_0xe91e10),_0x31f6e9=_0xe91e10['hasAttribute']('rowspan')?_0xe91e10['getAttribute']('rowspan')-0x1:0x0,_0x180d46=_0xe91e10['hasAttribute']('colspan')?_0xe91e10['getAttribute']('colspan')-0x1:0x0;_0x352c17=_0x2209d2<_0x352c17?_0x2209d2:_0x352c17,_0x29bc86=_0x2209d2+_0x31f6e9>_0x29bc86?_0x2209d2+_0x31f6e9:_0x29bc86,_0x38ca34=_0x4e1d41<_0x38ca34?_0x4e1d41:_0x38ca34,_0x1f1de1=_0x4e1d41+_0x180d46>_0x1f1de1?_0x4e1d41+_0x180d46:_0x1f1de1;}return{'minRow':_0x352c17,'maxRow':_0x29bc86,'minColumn':_0x38ca34,'maxColumn':_0x1f1de1};}['_setupColumnsRowsFixing'](){const _0x2122ae=this['editor'],_0x3545c8=_0x2122ae['plugins']['get']('TrackChangesEditing'),_0x1b5dd5=_0x2122ae['plugins']['get']('TableUtils');_0x2122ae['model']['document']['on']('change:data',()=>{const _0x298506=Array['from'](_0x2122ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x193dd0,data:_0x285902}of _0x298506){const {group:_0x54f165,id:_0x19f152,subType:_0x4acd59}=_0x3545c8['_splitMarkerName'](_0x193dd0);if('suggestion'!=_0x54f165)continue;if(null!=_0x285902['oldRange'])continue;const _0x57846b=_0x3545c8['getSuggestion'](_0x19f152);this['_tablePostFixingSubtypes']['includes'](_0x4acd59)&&this['_tableSuggestions']['add'](_0x57846b);}},{'priority':'low'});const _0x5ba29e=(_0x1e01ee,_0x350435)=>{let _0x1c4990=!0x1;const _0x5a9d74=_0x350435['createRangeOn'](_0x1e01ee),_0xba46a0=_0x1e01ee['findAncestor']('table'),_0x3a4b22=_0x1b5dd5['getCellLocation'](_0x1e01ee);for(const _0xb083e3 of this['_tableSuggestions']){const _0x3e00c5=_0xb083e3['subType'],_0x4c43de=_0x3e00c5['startsWith']('tablePaste'),_0x5d9189=_0x3e00c5['substr'](_0x4c43de?0xa:0x5),_0x15328b=_0x5d9189['toLowerCase'](),_0x2a4099=_0x15328b['substr'](0x0,0x3)+'span',_0x45548e='min'+_0x5d9189,_0x10ca47='max'+_0x5d9189;if(!_0xb083e3['isInContent'])continue;if(_0xba46a0!=_0xb083e3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb083e3['isIntersectingWithRange'](_0x5a9d74))continue;const _0x5250eb=_0x1e01ee['hasAttribute'](_0x2a4099)?_0x1e01ee['getAttribute'](_0x2a4099)-0x1:0x0,_0x4f1501=this['_getSuggestionCoords'](_0xb083e3),_0x9cbb7f=_0x4f1501[_0x45548e],_0x32ca9=_0x4f1501[_0x10ca47];_0x9cbb7f<=_0x3a4b22[_0x15328b]&&_0x3a4b22[_0x15328b]+_0x5250eb<=_0x32ca9&&(_0xb083e3['addRange'](_0x5a9d74),_0x1c4990=!0x0);}return _0x1c4990;};_0x2122ae['model']['document']['registerPostFixer'](_0xab28c8=>{let _0x17c668=!0x1;for(const _0x5e7aec of _0x2122ae['model']['document']['differ']['getChanges']())if('insert'==_0x5e7aec['type']){if('tableRow'==_0x5e7aec['name']){for(const _0x1d2598 of _0x5e7aec['position']['nodeAfter']['getChildren']())_0x17c668=_0x17c668||_0x5ba29e(_0x1d2598,_0xab28c8);}else'tableCell'==_0x5e7aec['name']&&(_0x17c668=_0x17c668||_0x5ba29e(_0x5e7aec['position']['nodeAfter'],_0xab28c8));}return _0x17c668;});}['_getSuggestionCoords'](_0x316c99){return this['_getCoordsForCells'](_0x316c99['getRanges']()['map'](_0x32300b=>_0x32300b['start']['nodeAfter']));}}function _e(_0x10c95c){return Array['from'](new Set(_0x10c95c)['values']());}class Bt extends _0x21b897{static get['requires'](){return[Dt];}['afterInit'](){const _0x19656a=this['editor'],_0x59e9f0=_0x19656a['model']['document']['selection'],_0x1a76ae=_0x19656a['locale'];if(!_0x19656a['plugins']['has']('TableEditing'))return;const _0x4b0f6e=_0x19656a['plugins']['get']('TrackChangesEditing'),_0x270e1b=_0x19656a['plugins']['get']('TableUtils'),_0x21b02b=_0x19656a['plugins']['get'](Dt);_0x21b02b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4b0f6e['enableCommand']('mergeTableCells',()=>{const _0x2b574f=_0x270e1b['getSelectionAffectedTableCells'](_0x19656a['model']['document']['selection']);_0x19656a['model']['change'](()=>{_0x4b0f6e['markMultiRangeBlockFormat'](_0x2b574f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x19656a['commands']['get']('mergeTableCells')['on']('execute',(_0x4c5a9a,_0x8f4387)=>{_0x19656a['commands']['get']('trackChanges')['value']&&(_0x8f4387['length']>0x0&&_0x8f4387[_0x8f4387['length']-0x1]&&_0x8f4387[_0x8f4387['length']-0x1]['forceDefaultExecution']||_0x4b0f6e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4c5a9a['stop']());},{'priority':'highest'});for(const _0x4eeb35 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x561dc5=_0x19656a['commands']['get'](_0x4eeb35);_0x4b0f6e['enableCommand'](_0x4eeb35,()=>{const _0x5e05b9=_0x19656a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x11ad52=>_0x11ad52['is']('element','tableCell')),_0x1f232b=_0x561dc5['value'];_0x19656a['model']['change'](()=>{_0x4b0f6e['markMultiRangeBlockFormat']([_0x5e05b9,_0x1f232b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x28c999 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14236e=_0x19656a['commands']['get'](_0x28c999);_0x4b0f6e['enableCommand'](_0x28c999,()=>{const _0x559ced=_0x270e1b['getSelectionAffectedTableCells'](_0x19656a['model']['document']['selection'])[0x0],_0x1d93d9=_0x559ced['findAncestor']('table'),{column:_0x5413c2,row:_0x10e214}=_0x270e1b['getCellLocation'](_0x559ced);let _0x26f69f=[];if('horizontally'==_0x14236e['direction']){const _0x13057d=_0x270e1b['createTableWalker'](_0x1d93d9,{'startRow':_0x10e214,'endRow':_0x10e214,'includeAllSlots':!0x0});_0x26f69f=Array['from'](_0x13057d)['map'](_0x40c504=>_0x40c504['cell']);}else{const _0x11536d=_0x270e1b['createTableWalker'](_0x1d93d9,{'column':_0x5413c2,'includeAllSlots':!0x0});_0x26f69f=Array['from'](_0x11536d)['map'](_0x36aae4=>_0x36aae4['cell']);}_0x19656a['model']['change'](_0xf6a36e=>{_0x4b0f6e['markBlockFormat'](_0xf6a36e['createRangeOn'](_0x559ced),{'commandName':_0x28c999,'commandParams':[]},_0x26f69f,_0x28c999);});});}_0x4b0f6e['descriptionFactory']['registerDescriptionCallback'](_0x37b3a2=>{if('formatBlock'!=_0x37b3a2['type']&&'formatInline'!=_0x37b3a2['type'])return;const {data:_0x5c2123}=_0x37b3a2;return _0x5c2123&&'mergeTableCells'==_0x5c2123['commandName']?{'type':'format','content':o(_0x1a76ae,'*Merge\x20cells*')}:void 0x0;}),_0x4b0f6e['descriptionFactory']['registerDescriptionCallback'](_0x3169e4=>{if('formatBlock'!=_0x3169e4['type']&&'formatInline'!=_0x3169e4['type'])return;const {data:_0x3b6863}=_0x3169e4;return _0x3b6863?'splitTableCellVertically'==_0x3b6863['commandName']?{'type':'format','content':o(_0x1a76ae,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b6863['commandName']?{'type':'format','content':o(_0x1a76ae,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5c9372=_0x21b02b['_acceptFormatSuggestionCallbackFactory']();for(const _0xd056c1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4b0f6e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd056c1,'accept',_0x5c9372);for(const _0x2a7ce8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4b0f6e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a7ce8,'accept',_0x5c9372);_0x4b0f6e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x375f68=>{_0x19656a['model']['change'](_0x5f02af=>{const _0x5af556=Array['from'](_0x59e9f0['getRanges']())['map'](_0x1186ce=>_0x5d12c9['fromRange'](_0x1186ce));_0x5f02af['setSelection'](_0x375f68),_0x19656a['commands']['get']('mergeTableCells')['refresh'](),_0x19656a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c6574=_0x5af556['filter'](_0x15c312=>'$graveyard'!=_0x15c312['root']['rootName']);_0x2c6574['length']>0x0&&_0x5f02af['setSelection'](_0x2c6574);for(const _0x4e9c5f of _0x5af556)_0x4e9c5f['detach']();});});for(const _0x46a80a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1ede11=_0x19656a['commands']['get'](_0x46a80a);_0x1ede11['on']('set:isEnabled',(_0x696f3d,_0x221623,_0x1f1742)=>{if(_0x1f1742){const _0x598466=_0x19656a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x398ec0=>_0x398ec0['is']('element','tableCell'));this['_areMergableCells'](_0x1ede11['value'],_0x598466)||(_0x696f3d['return']=!0x1,_0x696f3d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x358a0a=this['editor']['commands']['get']('mergeTableCells'),_0x4dff0b=this['editor']['plugins']['get']('TableUtils');if(!_0x358a0a['isEnabled'])return!0x1;const _0x2e42d3=_0x4dff0b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1f34ba of _0x2e42d3)for(const _0x36e013 of _0x2e42d3)if(_0x1f34ba!=_0x36e013&&!this['_areMergableCells'](_0x1f34ba,_0x36e013))return!0x1;return!0x0;}['_areMergableCells'](_0x54e06b,_0x46e40d){const _0x5183eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbaf1f5=this['editor']['model']['createRangeOn'](_0x54e06b),_0x4977b7=this['editor']['model']['createRangeOn'](_0x46e40d),_0x3916c7=new Set(),_0x2375c5=new Set();for(const _0xa76a14 of _0x5183eb['getSuggestions']())if(('insertion'==_0xa76a14['type']||'deletion'==_0xa76a14['type']||'mergeTableCells'==_0xa76a14['subType'])&&_0xa76a14['isInContent']){for(const _0x233e3a of _0xa76a14['getRanges']())_0x233e3a['containsRange'](_0xbaf1f5,!0x0)&&_0x3916c7['add'](_0xa76a14['type']+':'+_0xa76a14['author']['id']),_0x233e3a['containsRange'](_0x4977b7,!0x0)&&_0x2375c5['add'](_0xa76a14['type']+':'+_0xa76a14['author']['id']);}if(_0x3916c7['size']!=_0x2375c5['size'])return!0x1;for(const _0x5327dd of _0x3916c7)if(!_0x2375c5['has'](_0x5327dd))return!0x1;return!0x0;}}class Ot extends _0x21b897{static get['requires'](){return[Dt];}['afterInit'](){const _0x2c48b6=this['editor'];if(!_0x2c48b6['plugins']['has']('TableEditing'))return;const _0x1c5656=_0x2c48b6['locale'],_0x396a81=_0x2c48b6['plugins']['get']('TrackChangesEditing');_0x396a81['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x396a81['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x396a81['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c5656,'FORMAT_HEADER_ROW')),_0x396a81['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c5656,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f1314=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc3fa22=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x1f1314['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc3fa22),_0x1f1314['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc3fa22),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x27e1ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56dfb1=this['editor']['plugins']['get']('TableUtils');function _0x3ea400({showActiveMarker:_0x3d2243=!0x0,setDataAttribute:_0x2a80a5=!0x0}={}){return(_0x4f69e6,_0x71208f,_0x31438a)=>{const {type:_0x28e39a,id:_0x4fd3b8}=_0x27e1ea['_splitMarkerName'](_0x71208f['markerName']);if(!_0x27e1ea['hasSuggestion'](_0x4fd3b8))return;const _0x4583a6=_0x27e1ea['getSuggestion'](_0x4fd3b8),_0x1da602=_0x4583a6['data'];if('formatBlock'!=_0x4583a6['type']||!_0x1da602||'setTableColumnHeader'!=_0x1da602['commandName'])return;if(_0x71208f['item'])return void _0x4f69e6['stop']();if(!_0x31438a['consumable']['consume'](_0x71208f['markerRange'],_0x4f69e6['name']))return;const _0x28425=_0x71208f['markerRange']['start']['nodeAfter'],_0xe24623=_0x71208f['markerRange']['end']['nodeBefore'],_0x49b006=_0x28425['parent']['parent'],{column:_0x1f6363}=_0x56dfb1['getCellLocation'](_0x28425),{column:_0x286d14}=_0x56dfb1['getCellLocation'](_0xe24623);for(let _0x1b4984=_0x1f6363;_0x1b4984<=_0x286d14;_0x1b4984++){const _0x231edf=_0x56dfb1['createTableWalker'](_0x49b006,{'column':_0x1b4984,'includeAllSlots':!0x1});for(const _0x17c280 of _0x231edf){const _0x5cc071=_0x17c280['cell'],_0x1cb2d1=_0x31438a['mapper']['toViewElement'](_0x5cc071);_0x31438a['writer']['addClass']('ck-suggestion-marker-'+_0x28e39a,_0x1cb2d1),_0x2a80a5&&_0x31438a['writer']['setAttribute']('data-suggestion',_0x4fd3b8,_0x1cb2d1),_0x31438a['mapper']['bindElementToMarker'](_0x1cb2d1,_0x71208f['markerName']),_0x3d2243&&(_0x27e1ea['activeMarkers']['includes'](_0x71208f['markerName'])?_0x31438a['writer']['addClass']('ck-suggestion-marker--active',_0x1cb2d1):_0x31438a['writer']['removeClass']('ck-suggestion-marker--active',_0x1cb2d1));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3ea400(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x158ea1,_0x26952a,_0x3ea4a6)=>{_0x3ea4a6['options']['showSuggestionHighlights']&&_0x3ea400({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x158ea1,_0x26952a,_0x3ea4a6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x58baef,_0x5413b8,_0x4b0d68)=>{const {type:_0x2115c5,id:_0xb630c7}=_0x27e1ea['_splitMarkerName'](_0x5413b8['markerName']);if(!_0x27e1ea['hasSuggestion'](_0xb630c7))return;const _0x286e73=_0x27e1ea['getSuggestion'](_0xb630c7),_0x21b8cc=_0x286e73['data'];if('formatBlock'!=_0x286e73['type']||!_0x21b8cc||'setTableColumnHeader'!=_0x21b8cc['commandName'])return;const _0x1862a1=_0x4b0d68['mapper']['markerNameToElements'](_0x5413b8['markerName']);if(_0x1862a1){for(const _0x3558e5 of _0x1862a1)_0x4b0d68['writer']['removeClass']('ck-suggestion-marker-'+_0x2115c5,_0x3558e5),_0x4b0d68['writer']['removeClass']('ck-suggestion-marker--active',_0x3558e5),_0x4b0d68['writer']['removeAttribute']('data-suggestion',_0x3558e5),_0x4b0d68['mapper']['unbindElementFromMarkerName'](_0x3558e5,_0x5413b8['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3d23fb=this['editor'],_0x209a51=_0x3d23fb['locale'];function _0x3aa316(_0x385552){return{'type':'format','content':o(_0x209a51,'*Format:*\x20%0',_0x385552)};}_0x3d23fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2880a0=>{if('formatBlock'!=_0x2880a0['type'])return;const {data:_0x1aeba8}=_0x2880a0;if(_0x1aeba8){if('setTableRowHeader'==_0x1aeba8['commandName']){const _0xf14576=_0x1aeba8['commandParams'][0x0]['forceValue'];return _0x3aa316(o(_0x209a51,_0xf14576?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1aeba8['commandName']){const _0x2d73e8=_0x1aeba8['commandParams'][0x0]['forceValue'];return _0x3aa316(o(_0x209a51,_0x2d73e8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x21b897{['afterInit'](){const _0x25cc2e=this['editor'],_0x566ab3=_0x25cc2e['locale'],_0xf7ecd=_0x25cc2e['plugins']['get']('TrackChangesEditing');function _0x2b662f(_0x3466e3){return{'type':'format','content':''+o(_0x566ab3,'*Set\x20table\x20type:*\x20%0',_0x3466e3)};}_0x25cc2e['plugins']['has']('TableLayout')&&(_0xf7ecd['enableCommand']('insertTableLayout'),_0xf7ecd['enableDefaultAttributesIntegration']('tableType'),_0xf7ecd['descriptionFactory']['registerElementLabel'](_0x251af3=>_0x251af3['is']('element','table')&&'layout'===_0x251af3['getAttribute']('tableType'),_0x4feb0d=>o(_0x566ab3,'ELEMENT_LAYOUT_TABLE',_0x4feb0d)),_0xf7ecd['descriptionFactory']['registerDescriptionCallback'](_0x2c2a5f=>{const {data:_0x58d97d}=_0x2c2a5f;if(_0x58d97d&&'tableType'==_0x58d97d['key'])switch(_0x58d97d['newValue']){case'layout':return _0x2b662f(o(_0x566ab3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2b662f(o(_0x566ab3,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x102707=>[_0x102707,null]));class Mt extends _0x21b897{static get['requires'](){return[Dt];}['afterInit'](){const _0x200b84=this['editor'];if(!_0x200b84['plugins']['has']('TableClipboard'))return;const _0x480a9c=_0x200b84['plugins']['get']('TrackChangesEditing'),_0x548dce=_0x200b84['plugins']['get']('TableUtils'),_0x37347b=_0x200b84['plugins']['get'](Dt),_0x11427f=_0x200b84['plugins']['get']('TableClipboard'),_0x48a0bb=_0x200b84['plugins']['get']('TableSelection'),_0x506639=_0x200b84['plugins']['get'](_0x479657);_0x37347b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x200b84['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x200b84['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5f169e=null,_0x4bed88=!0x1;_0x506639['on']('contentInsertion',(_0x37e718,_0x5a67a9)=>{_0x4bed88='paste'===_0x5a67a9['method'];}),_0x200b84['model']['on']('insertContent',(_0x25305a,_0x207ed4)=>{if(!_0x4bed88&&null===_0x48a0bb['getSelectedTableCells']())return;const [_0x455d35,_0x18d828]=_0x207ed4,_0x1a18e8=_0x207ed4[_0x207ed4['length']-0x1];_0x1a18e8&&_0x1a18e8['forceDefaultExecution']||_0x480a9c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2d2a83,_0x285b41,_0x8306df,_0x179587,_0x2a32c6){if(_0x285b41&&!_0x285b41['is']('documentSelection'))return!0x1;const _0x586b17=_0x2a32c6['getTableIfOnlyTableInContent'](_0x2d2a83,_0x8306df);if(!_0x586b17||!Oe(_0x586b17,void 0x0,_0x179587))return!0x1;const _0x1a0114=_0x179587['getSelectionAffectedTableCells'](_0x8306df['document']['selection']);if(!_0x1a0114['length'])return!0x1;const _0x340b84=_0x1a0114[0x0]['findAncestor']('table'),_0x48ad90=_0x179587['getRowIndexes'](_0x1a0114),_0x48d99c=_0x179587['getColumnIndexes'](_0x1a0114),_0x3ee46d={'startRow':_0x48ad90['first'],'endRow':_0x48ad90['last'],'startColumn':_0x48d99c['first'],'endColumn':_0x48d99c['last']};return 0x1==_0x1a0114['length']&&(_0x3ee46d['endRow']+=_0x179587['getRows'](_0x586b17)-0x1,_0x3ee46d['endColumn']+=_0x179587['getColumns'](_0x586b17)-0x1),Oe(_0x340b84,_0x3ee46d,_0x179587);}(_0x455d35,_0x18d828,_0x200b84['model'],_0x548dce,_0x11427f)&&(_0x25305a['stop'](),_0x5f169e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x200b84['model']['change'](()=>{_0x200b84['model']['insertContent'](_0x207ed4[0x0],_0x207ed4[0x1],_0x207ed4[0x2],{'forceDefaultExecution':!0x0});const _0x5d742c=_0x507a09(),{rowInsertionRanges:_0x542eab,columnInsertionRanges:_0x36080b,insertionRanges:_0x5ba6a7,deletionRanges:_0x2deb32,cells:_0x48843f}=_0x5f169e;_0x542eab['length']&&_0x480a9c['markMultiRangeInsertion'](_0x542eab,'tablePasteRow',{'tablePasteChainId':_0x5d742c}),_0x36080b['length']&&_0x480a9c['markMultiRangeInsertion'](_0x36080b,'tablePasteColumn',{'tablePasteChainId':_0x5d742c}),_0x5ba6a7['length']&&(_0x480a9c['markMultiRangeInsertion'](_0x5ba6a7,'tablePaste',{'tablePasteChainId':_0x5d742c,'skipNestingCheck':!0x0}),_0x5ba6a7['forEach'](_0x13016a=>_0x13016a['detach']?.())),_0x2deb32['length']&&(_0x480a9c['markMultiRangeDeletion'](_0x2deb32,'tablePaste',{'tablePasteChainId':_0x5d742c,'skipNestingCheck':!0x0}),_0x2deb32['forEach'](_0x3f35fb=>_0x3f35fb['detach']?.()));const _0x20b4b1=_0x480a9c['markMultiRangeBlockFormat'](_0x48843f['map'](({element:_0x282aa7})=>_0x282aa7),{'formatGroupId':_0x507a09()},[],'tablePasteCell',{'tablePasteChainId':_0x5d742c});if(_0x20b4b1){const _0x5c436f=_0x20b4b1['getMarkers'](),_0x444875=[];for(const {element:_0x2040bd,attributes:_0x48a8c5}of _0x48843f){if(!_0x48a8c5)continue;const _0x4bf930=_0x200b84['model']['createRangeOn'](_0x2040bd),_0x3f8d23=_0x5c436f['find'](_0x5b8666=>_0x5b8666['getRange']()['isEqual'](_0x4bf930));_0x3f8d23&&_0x444875['push']([_0x3f8d23['name'],_0x48a8c5]);}_0x444875['length']&&_0x20b4b1['setAttribute']('markerAttributes',Object['fromEntries'](_0x444875));}_0x5f169e=null;}));},{'priority':_0x40db57['high']+0xa}),_0x506639['on']('contentInsertion',()=>{_0x4bed88=!0x1;},{'priority':'lowest'}),_0x200b84['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x17691f,_0x405081)=>{const [_0xa3eed0,_0x2ba843,,_0x13804e]=_0x405081;if(!_0x5f169e)return;_0x17691f['stop']();const _0x3b7dd4=_0xa3eed0['cell'],_0x2d7dfb=_0x2ba843,_0x5f285f=Be(_0x3b7dd4),_0xcaa107=Be(_0x2d7dfb);_0x17691f['return']=_0x3b7dd4;let _0x108f31=null,_0x4361b1=null;if(_0xcaa107||_0x5f285f){if(_0x5f285f&&!_0xcaa107){_0x13804e['remove'](_0x3b7dd4['getChild'](0x0));for(const _0x38232f of Array['from'](_0x2d7dfb['getChildren']()))_0x13804e['insert'](_0x38232f,_0x3b7dd4,'end');const _0x184632=_0x5f169e['rowInsertionIndexes']['includes'](_0xa3eed0['row']),_0xf1b387=_0x5f169e['columnInsertionIndexes']['includes'](_0xa3eed0['column']);_0x184632||_0xf1b387||(_0x108f31=_0x5d12c9['fromRange'](_0x13804e['createRangeIn'](_0x3b7dd4)));}else _0xcaa107&&!_0x5f285f&&(_0x4361b1=_0x13804e['createRangeIn'](_0x3b7dd4));}else{const _0x2ef333=_0x13804e['createElement']('tableCellSuggestion'),_0x54f724=_0x13804e['createElement']('tableCellSuggestion');_0x13804e['wrap'](_0x13804e['createRangeIn'](_0x3b7dd4),_0x54f724),_0x13804e['insert'](_0x2ef333,_0x3b7dd4,0x0);for(const _0x54477a of Array['from'](_0x2d7dfb['getChildren']()))_0x13804e['insert'](_0x54477a,_0x2ef333,'end');_0x108f31=_0x5d12c9['fromRange'](_0x13804e['createRangeOn'](_0x2ef333)),_0x4361b1=_0x5d12c9['fromRange'](_0x13804e['createRangeOn'](_0x54f724));}const _0xfe53a9=Array['from'](_0x2d7dfb['getAttributes']())['filter'](([_0x1ed910])=>Re['includes'](_0x1ed910));_0x5f169e['cells']['push']({'element':_0x3b7dd4,'attributes':_0xfe53a9['length']?Object['fromEntries'](_0xfe53a9):null}),_0x108f31&&_0x5f169e['insertionRanges']['push'](_0x108f31),_0x4361b1&&_0x5f169e['deletionRanges']['push'](_0x4361b1);},{'priority':'high'}),_0x548dce['on']('insertColumns',(_0x43707a,_0x5e5d5c)=>{const [_0xb4d533,_0x17b5ff={}]=_0x5e5d5c;if(!_0x5f169e)return;const _0x481451=_0x17b5ff['at']||0x0,_0x3144cb=_0x17b5ff['columns']||0x1;_0x5f169e['columnInsertionIndexes']=new Array(_0x3144cb)['fill'](_0x481451)['map']((_0x1467b3,_0x3c4c9e)=>_0x1467b3+_0x3c4c9e);for(const {cell:_0x586d82}of _0x548dce['createTableWalker'](_0xb4d533,{'startColumn':_0x481451,'endColumn':_0x481451+_0x3144cb-0x1}))_0x5f169e['columnInsertionRanges']['push'](_0x200b84['model']['createRangeOn'](_0x586d82));},{'priority':'low'}),_0x548dce['on']('insertRows',(_0x9f6393,_0x134452)=>{const [_0x25522e,_0x38935e={}]=_0x134452;if(!_0x5f169e)return;const _0x3ed8de=_0x38935e['at']||0x0,_0x312fc5=_0x38935e['rows']||0x1;_0x5f169e['rowInsertionIndexes']=new Array(_0x312fc5)['fill'](_0x3ed8de)['map']((_0x5c3495,_0x54d80c)=>_0x5c3495+_0x54d80c);for(const {cell:_0xd9230d}of _0x548dce['createTableWalker'](_0x25522e,{'startRow':_0x3ed8de,'endRow':_0x3ed8de+_0x312fc5-0x1}))_0x5f169e['rowInsertionRanges']['push'](_0x200b84['model']['createRangeOn'](_0xd9230d));},{'priority':'low'}),_0x480a9c['descriptionFactory']['registerDescriptionCallback'](_0x8b4363=>{if(_0x8b4363['subType']&&_0x8b4363['subType']['startsWith']('tablePaste'))return _0x8b4363['previous']?{}:{'type':'insertion','content':o(_0x200b84['locale'],'*Replace\x20table\x20cells*')};});const _0x1fc6e0=()=>!0x1;for(const _0x1f0798 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x480a9c['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f0798,'join',_0x1fc6e0),_0x480a9c['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f0798,'join',_0x1fc6e0),_0x480a9c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f0798,'join',_0x1fc6e0);_0x480a9c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1fc6e0),_0x480a9c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5beb70,_0x4815bf,_0x9b1293)=>{const _0x471447=_0x5beb70['map'](_0x47b99d=>_0x47b99d['getContainedElement']())['filter'](_0x13d4cb=>_0x13d4cb),_0x18fddf=new Map(_0x471447['map'](_0x5ddec0=>[_0x5ddec0,null]));if(_0x5f169e){for(const {element:_0x2fe91e,attributes:_0x5e1bf6}of _0x5f169e['cells'])_0x5e1bf6&&_0x18fddf['set'](_0x2fe91e,_0x5e1bf6);}else{if(_0x9b1293&&_0x9b1293['markerAttributes'])for(const [_0x48f220,_0x393da2]of Object['entries'](_0x9b1293['markerAttributes'])){const _0x3daac8=_0x200b84['model']['markers']['get'](_0x48f220),_0x31c544=_0x3daac8?_0x3daac8['getRange']()['getContainedElement']():null;_0x31c544&&_0x18fddf['set'](_0x31c544,_0x393da2);}}_0x200b84['model']['change'](_0x1c86ad=>{for(const [_0x3ee0f1,_0xc3b7a5]of _0x18fddf)_0x1c86ad['setAttributes']({...Ae,..._0xc3b7a5},_0x3ee0f1);});});const _0x3f5ab6=(_0x211200,_0x22c95d)=>{_0x480a9c['_suggestionFactory']['registerCustomCallback'](_0x211200,'tablePaste',_0x22c95d,(_0x457bc5,_0xc6697f,_0x50a141)=>{_0x200b84['model']['change'](_0x249aee=>{const _0x398202=[];for(const _0x21e82f of _0x457bc5){const _0x18079f=_0x21e82f['start']['nodeAfter'];_0x18079f['is']('element','tableCellSuggestion')&&_0x398202['push'](_0x18079f);}_0x480a9c['_suggestionFactory']['getSuggestionCallback'](_0x211200,null,_0x22c95d)(_0x457bc5,_0xc6697f,_0x50a141);for(const _0x10a2cd of _0x398202)'$graveyard'!=_0x10a2cd['root']['rootName']&&_0x249aee['unwrap'](_0x10a2cd);});});};_0x3f5ab6('insertion','accept'),_0x3f5ab6('insertion','discard'),_0x3f5ab6('deletion','accept'),_0x3f5ab6('deletion','discard'),_0x480a9c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x30f4f6=>{const _0xd9eae=_0x30f4f6['map'](_0xa9d9a4=>_0xa9d9a4['getContainedElement']()),_0x369783=_0xd9eae[0x0]['findAncestor']('table'),{minRow:_0x19574d,maxRow:_0x4a1eaa}=_0x37347b['_getCoordsForCells'](_0xd9eae);_0x548dce['removeRows'](_0x369783,{'at':_0x19574d,'rows':_0x4a1eaa-_0x19574d+0x1});}),_0x480a9c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5c5831=>{const _0x53f7ff=_0x5c5831['map'](_0x12bfa8=>_0x12bfa8['getContainedElement']()),_0x32913b=_0x53f7ff[0x0]['findAncestor']('table'),{minColumn:_0x5435b8,maxColumn:_0x5dedee}=_0x37347b['_getCoordsForCells'](_0x53f7ff);_0x548dce['removeColumns'](_0x32913b,{'at':_0x5435b8,'columns':_0x5dedee-_0x5435b8+0x1});});const _0x223003=(_0x48d293,_0x32edfc)=>{if(!_0x32edfc['subType']||!_0x32edfc['subType']['startsWith']('tablePaste'))return;const _0x8978cb=_0x32edfc['attributes']['tablePasteChainId'],_0x368e30=_0x480a9c['getSuggestions']()['filter'](_0x502ac5=>_0x502ac5['isInContent']&&_0x502ac5['attributes']&&_0x502ac5['attributes']['tablePasteChainId']==_0x8978cb);_0x368e30['length']&&_0x32edfc['getAllAdjacentSuggestions']()['length']!=_0x368e30['length']&&_0x368e30['reduce']((_0x4979a9,_0x4112b5)=>(_0x4979a9['next']=_0x4112b5,_0x4112b5['previous']=_0x4979a9,_0x4112b5));};function _0x4618d8(_0x4563cc,_0x21cd80=!0x0){const {id:_0xe8a16c,authorId:_0x42d0bb}=_0x480a9c['_splitMarkerName'](_0x4563cc['markerName']),_0x1d994b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x715279=_0x480a9c['activeMarkers']['includes'](_0x4563cc['markerName']);return _0x715279&&_0x1d994b['push']('ck-suggestion-marker--active'),{'classes':_0x1d994b,'attributes':{'data-suggestion':_0xe8a16c,'data-author-id':_0x42d0bb},'priority':_0x715279&&_0x21cd80?0xbc2:0xbb8};}_0x480a9c['on']('suggestionLoaded',_0x223003,{'priority':'high'}),_0x480a9c['on']('suggestionUnloaded',_0x223003,{'priority':'high'}),_0x200b84['model']['document']['registerPostFixer'](()=>{let _0x388598=!0x1;const _0x13cadf=Array['from'](_0x200b84['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x46c889,data:_0x3425fc}of _0x13cadf){const {group:_0x440b39,type:_0x1eb12d,id:_0x2ebe99}=_0x480a9c['_splitMarkerName'](_0x46c889);if('suggestion'!=_0x440b39||'deletion'!=_0x1eb12d||_0x3425fc['oldRange'])continue;if(!_0x480a9c['hasSuggestion'](_0x2ebe99))continue;const _0x378b49=_0x480a9c['getSuggestion'](_0x2ebe99)['getRanges'](),_0x15f5f5=_0x200b84['plugins']['get']('Users')['me'];for(const _0x365ec0 of _0x480a9c['getSuggestions']()){if(!_0x365ec0['isInContent']||_0x365ec0['author']!=_0x15f5f5)continue;if('formatBlock'!=_0x365ec0['type']||'tablePasteCell'!=_0x365ec0['subType'])continue;if(_0x365ec0['getRanges']()['every'](_0x52caa7=>_0x378b49['some'](_0x91a5c6=>_0x91a5c6['containsRange'](_0x52caa7,!0x0)))){for(const _0x3d8973 of _0x365ec0['getAllAdjacentSuggestions']())_0x3d8973['isInContent']&&(_0x3d8973['discard'](),_0x388598=!0x0);}}}return _0x388598;}),_0x200b84['model']['document']['registerPostFixer'](_0x19df48=>{const _0x1a08d2=_0x200b84['commands']['get']('redo');if(!_0x1a08d2||!_0x1a08d2['_createdBatches']['has'](_0x19df48['batch']))return!0x1;let _0x46e06f=!0x1;const _0x1e2c01=_0x200b84['plugins']['get']('Users')['me'],_0x3c282d=_0x200b84['model']['document']['differ']['getChanges'](),_0x1976e1=Array['from'](_0x200b84['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x14adfa,data:_0x1a6b35})=>{const {group:_0x52e420,subType:_0xaf0fd3,authorId:_0x375624}=_0x480a9c['_splitMarkerName'](_0x14adfa);return'suggestion'==_0x52e420&&'tablePaste'==_0xaf0fd3&&_0x375624==_0x1e2c01['id']&&!_0x1a6b35['oldRange'];});for(const _0x320085 of _0x3c282d){if('insert'!=_0x320085['type']||'tableCellSuggestion'!=_0x320085['name']||0x1!=_0x320085['length'])continue;const _0x3b1f16=_0x19df48['createRange'](_0x320085['position'],_0x320085['position']['getShiftedBy'](0x1));if(!_0x1976e1['find'](({data:_0xcd4a99})=>_0xcd4a99['newRange']['isEqual'](_0x3b1f16))){for(const {name:_0x5358f7,data:_0x4f924a}of _0x1976e1)if(_0x3b1f16['containsRange'](_0x4f924a['newRange'])){_0x19df48['updateMarker'](_0x5358f7,{'range':_0x3b1f16}),_0x46e06f=!0x0;break;}}}return _0x46e06f;}),_0x200b84['model']['document']['registerPostFixer'](_0x1f5573=>{let _0xe33181=!0x1;const _0x367440=_0x200b84['plugins']['get']('Users')['me'],_0xf72189=_0x480a9c['getSuggestions']()['filter'](_0x15c255=>_0x15c255['isInContent']&&_0x15c255['author']==_0x367440),_0x370d1d=new Set(),_0x80adff=new Set();for(const _0x132d02 of _0xf72189)if('tablePaste'==_0x132d02['subType'])for(const _0x25591a of _0x132d02['getMarkers']()){const _0x2337a2=_0x25591a['getRange']()['getContainedElement']();if(_0x2337a2){if(_0x2337a2['is']('element','tableCellSuggestion')&&Be(_0x2337a2)){_0x132d02['removeMarker'](_0x25591a['name']),_0x370d1d['add'](_0x2337a2),_0xe33181=!0x0;const _0x564c9e=_0x2337a2['nextSibling'],_0x29d9be=_0x2337a2['previousSibling'],_0x74a83c=_0x564c9e&&_0x564c9e['is']('element','tableCellSuggestion'),_0x464310=_0x29d9be&&_0x29d9be['is']('element','tableCellSuggestion');_0x74a83c&&!_0x370d1d['has'](_0x564c9e)&&_0x80adff['add'](_0x564c9e),_0x464310&&!_0x370d1d['has'](_0x29d9be)&&_0x80adff['add'](_0x29d9be);}else _0x2337a2['is']('element','paragraph')&&_0x2337a2['isEmpty']&&(_0x132d02['removeMarker'](_0x25591a['name']),_0xe33181=!0x0);}}else{if('tablePasteCell'==_0x132d02['subType']){if(!_0x132d02['attributes']||!_0x132d02['attributes']['tablePasteChainId'])continue;const _0x27fb7d=_0x132d02['attributes']['markerAttributes'];if(_0x27fb7d&&Object['keys'](_0x27fb7d)['length'])continue;const _0x4d8664=_0x132d02['attributes']['tablePasteChainId'];let _0x4de5f6=!0x0,_0x4d8f58=!0x0;for(const _0x2c1782 of _0xf72189)if(_0x2c1782['subType']&&_0x2c1782['subType']['startsWith']('tablePaste')){if(!_0x2c1782['attributes']['tablePasteChainId']){_0x4d8f58=!0x1;break;}if(_0x2c1782['id']!=_0x132d02['id']&&_0x2c1782['attributes']['tablePasteChainId']==_0x4d8664){_0x4de5f6=!0x1;break;}}_0x4d8f58&&_0x4de5f6&&(_0x132d02['removeMarkers'](),_0xe33181=!0x0);}}for(const _0x2f1e0b of _0x370d1d)_0x1f5573['remove'](_0x2f1e0b);for(const _0x474a48 of _0x80adff)_0x1f5573['unwrap'](_0x474a48);return _0xe33181;}),_0x200b84['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3be839=>_0x4618d8(_0x3be839),'converterPriority':'high'}),_0x200b84['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x127739,_0xd7656b)=>_0xd7656b['options']['showSuggestionHighlights']?_0x4618d8(_0x127739,!0x1):null,'converterPriority':'high'});const _0x54cdc1=_0x200b84['editing']['view'];this['listenTo'](_0x54cdc1['document'],'clipboardOutput',(_0x224e12,_0x302423)=>{const _0x1f1d17=[];for(const _0x7337f9 of _0x54cdc1['createRangeIn'](_0x302423['content'])['getItems']())_0x7337f9['is']('element','suggestion-td')&&_0x1f1d17['push'](_0x7337f9);_0x54cdc1['change'](_0x1f5161=>{for(const _0x1c33af of _0x1f1d17)_0x1f5161['move'](_0x1f5161['createRangeIn'](_0x1c33af),_0x1f5161['createPositionBefore'](_0x1c33af)),_0x1f5161['remove'](_0x1c33af);});});}}function Be(_0x494851){if(_0x494851['isEmpty'])return!0x0;const _0x4bd0c6=_0x494851['getChild'](0x0);return _0x4bd0c6['is']('element','paragraph')&&_0x4bd0c6['isEmpty'];}function Oe(_0x2b827d,_0x58dade={},_0x3901e6){for(const {isAnchor:_0x40df4f,cellHeight:_0x3f4422,cellWidth:_0xef2345}of _0x3901e6['createTableWalker'](_0x2b827d,{'includeAllSlots':!0x0,..._0x58dade}))if(!_0x40df4f||0x1!=_0x3f4422||0x1!=_0xef2345)return!0x1;return!0x0;}class Rt extends _0x21b897{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xe6b8b2=this['editor']['plugins']['get']('TrackChangesEditing');_0xe6b8b2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xe6b8b2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xe6b8b2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe6b8b2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xe6b8b2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xe6b8b2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x259eae,_0x23db72){const _0x16b7a4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x318399=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x326d65=_0x23db72['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x55adf9=_0x318399['getColumnGroupElement'](_0x326d65);let _0x11ebd2=_0x55adf9?_0x318399['getTableColumnsWidths'](_0x55adf9):null,_0x242001=_0x326d65['getAttribute']('tableWidth')||null;const _0x5a0bbf=_0x23db72['tableWidth']||_0x242001,_0x2edc22=_0x23db72['columnWidths']||_0x11ebd2,_0x59173a=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c940d of _0x16b7a4['getSuggestions']()){const _0x2e0eb9=_0x2c940d['getContainedElement']();if('resizeTable'===_0x2c940d['subType']&&_0x2e0eb9===_0x326d65){_0x2c940d['author']!==_0x59173a&&_0x2c940d['discard']();const _0x255d06=_0x2c940d['data']['commandParams'];_0x242001=_0x255d06[0x0]['tableWidth'],_0x11ebd2=_0x255d06[0x0]['columnWidths'];break;}}_0x259eae({'table':_0x326d65,'tableWidth':_0x5a0bbf,'columnWidths':_0x2edc22}),_0x16b7a4['markBlockFormat'](_0x326d65,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x242001,'columnWidths':_0x11ebd2}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x57759b){if('formatBlock'!=_0x57759b['type']&&'formatInline'!=_0x57759b['type'])return;const {data:_0x3327a5}=_0x57759b;if(_0x3327a5&&'resizeTable'===_0x3327a5['formatGroupId']){const _0x482ee9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x482ee9)};}}}class Tt extends _0x21b897{['afterInit'](){const _0x1fafee=this['editor'];_0x1fafee['plugins']['has']('Template')&&_0x1fafee['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x21b897{['afterInit'](){const _0xcb847a=this['editor'];if(!_0xcb847a['commands']['get']('insertTableOfContents'))return;_0xcb847a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xf78807=_0xcb847a['plugins']['get']('TrackChangesEditing'),_0x1dcb77=_0xcb847a['locale'];_0xf78807['descriptionFactory']['registerElementLabel']('tableOfContents',_0xe76394=>o(_0x1dcb77,'ELEMENT_TABLE_OF_CONTENTS',_0xe76394));}}class Ut extends _0x21b897{['afterInit'](){const _0x3ebe05=this['editor'];if(!_0x3ebe05['plugins']['has']('Title'))return;const _0x506e1b=_0x3ebe05['plugins']['get']('TrackChangesEditing');_0x506e1b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3ebe05['locale'],'ELEMENT_TITLE')),_0x3ebe05['model']['document']['registerPostFixer'](_0x1a7540=>{let _0x5d0537=!0x1;const _0x3fd168=Array['from'](_0x3ebe05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x551f2c,data:_0x26f65d}of _0x3fd168){const {group:_0x53daba}=_0x506e1b['_splitMarkerName'](_0x551f2c);if('suggestion'!==_0x53daba||!_0x26f65d['newRange'])continue;const _0x1f9258=_0x26f65d['newRange'],_0x1f5930=_0x1f9258['end']['nodeBefore'];if(!_0x1f5930||!_0x1f5930['is']('element','title-content'))continue;if(!_0x1f9258['start']['isTouching'](_0x1f9258['end']))continue;const _0x4e0cfe=_0x3ebe05['model']['schema']['getNearestSelectionRange'](_0x1f9258['end'],'forward');if(_0x4e0cfe&&_0x4e0cfe['isCollapsed']){const _0x40eedb=_0x1a7540['createRange'](_0x1f9258['start'],_0x4e0cfe['start']);_0x40eedb['isEqual'](_0x1f9258)||(_0x1a7540['updateMarker'](_0x551f2c,{'range':_0x40eedb}),_0x5d0537=!0x0);}_0x5d0537||(_0x1a7540['removeMarker'](_0x551f2c),_0x5d0537=!0x0);}return _0x5d0537;});}}class Vt extends _0x21b897{['afterInit'](){const _0x3b8273=this['editor'],_0x2317be=_0x3b8273['plugins']['get']('TrackChangesEditing');_0x3b8273['plugins']['has']('Uploadcare')&&(_0x2317be['enableCommand']('uploadcare'),_0x3b8273['plugins']['has']('UploadcareImageEdit')&&(_0x2317be['enableCommand']('uploadcareImageEdit'),_0x2317be['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2317be['descriptionFactory']['registerDescriptionCallback'](_0x4b3512=>{if('attribute'!=_0x4b3512['type'])return;const {data:_0x432f76}=_0x4b3512;return _0x432f76&&'uploadcareImageId'==_0x432f76['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x21b897{['afterInit'](){const _0x1e2dfa=this['editor'],_0x5828a2=_0x1e2dfa['plugins']['get']('TrackChangesEditing');_0x1e2dfa['plugins']['has']('UndoEditing')&&(_0x5828a2['enableCommand']('undo'),_0x5828a2['enableCommand']('redo'));}}class Pt extends _0x21b897{static get['requires'](){return[Dt];}['afterInit'](){const _0x4e2fe4=this['editor'];if(!_0x4e2fe4['plugins']['has']('TableCaptionEditing'))return;_0x4e2fe4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x21b897{['tableProperties'];['tableCellProperties'];constructor(_0x4fae2b){super(_0x4fae2b),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x4fae2b['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 _0x42f23a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2ff48f of this['tableProperties'])_0x42f23a['enableCommand'](_0x2ff48f,(_0x59bfde,_0x3a55b8)=>{const _0x3ec5cd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2ff48f,[_0x3ec5cd],this['tableProperties'],'tableProperties',_0x59bfde,_0x3a55b8);});_0x42f23a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x42f23a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42f23a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x524e2f,_0x163e4c)=>this['handleDiscardAction'](this['tableProperties'],_0x524e2f,_0x163e4c)),_0x42f23a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x415e6e of this['tableCellProperties'])this['editor']['commands']['get'](_0x415e6e)&&_0x42f23a['enableCommand'](_0x415e6e,(_0x1cde0f,_0x102223)=>{const _0x3547a0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x415e6e,_0x3547a0,this['tableCellProperties'],'tableCellProperties',_0x1cde0f,_0x102223);});_0x42f23a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x42f23a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42f23a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x58acba,_0x819854)=>this['handleDiscardAction'](this['tableCellProperties'],_0x58acba,_0x819854)),_0x42f23a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x42f23a['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x42f23a['descriptionFactory']['registerDescriptionCallback'](_0x5eac85=>this['handleSuggestionDescription'](_0x5eac85)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x13f545,_0x21556f,_0x380a63,_0x20c330,_0x1b3234,_0x5d40a0){const _0x3da3a0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5d40a0['batch'],()=>{for(const _0x4a44e7 of _0x21556f){if(this['_getSuggestion'](_0x4a44e7,_0x20c330))_0x1b3234(_0x5d40a0);else{const _0x5a040c={};for(const _0x4f8626 of _0x380a63){const _0x1602d5=_0x4a44e7['getAttribute'](_0x4f8626);void 0x0!==_0x1602d5&&(_0x5a040c[_0x4f8626]=_0x1602d5);}_0x1b3234(_0x5d40a0),_0x3da3a0['markBlockFormat'](_0x4a44e7,{'commandParams':[_0x5a040c]},[],_0x20c330);}}});}['handleDiscardAction'](_0x390ebc,_0x1c0319,_0xd40674){const _0x282a73=_0x1c0319[0x0]['start']['nodeAfter'],_0x3930c5=_0xd40674['commandParams'][0x0];this['editor']['model']['change'](_0x4a512f=>{for(const _0x88e60d of _0x390ebc)void 0x0!==_0x3930c5[_0x88e60d]?_0x4a512f['setAttribute'](_0x88e60d,_0x3930c5[_0x88e60d],_0x282a73):_0x4a512f['removeAttribute'](_0x88e60d,_0x282a73);});}['handleSuggestionDescription'](_0x31bdeb){if(_0x31bdeb['data'])switch(_0x31bdeb['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'](_0x5f4c3d,_0x216c08){const _0x580126=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5ada9a of _0x580126['getSuggestions']({'skipNotAttached':!0x0})){const _0x205827=_0x5ada9a['getContainedElement']();if(_0x5ada9a['subType']===_0x216c08&&_0x205827===_0x5f4c3d)return _0x5ada9a;}return null;}['_registerTablePropertiesAttributes'](){const _0x22abc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x564150=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x30cd77 of _0x564150){const _0x54d258=_0x30cd77['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x22abc3['descriptionFactory']['registerAttributeLabel'](_0x30cd77,o(this['editor']['locale'],'FORMAT_'+_0x54d258));}}}class Lt extends _0x21b897{['afterInit'](){const _0xaac360=this['editor'];if(!_0xaac360['plugins']['has']('LineHeight'))return;const _0x3c3325=_0xaac360['plugins']['get']('TrackChangesEditing'),_0x263ff7=_0xaac360['locale'];_0x3c3325['enableDefaultAttributesIntegration']('lineHeight'),_0x3c3325['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x263ff7,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x21b897{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x321259,_0x269535,_0x2d9cd0,_0x22aaf0,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x327356){super(_0x327356),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49ba47,_0x1c9d6a,_0x72c1f3,_0x43c329)=>{this['_model']['change'](()=>{for(const _0x155f09 of[..._0x43c329,..._0x72c1f3])this['_model']['markers']['has'](_0x155f09)&&_0x327356['editing']['reconvertMarker'](_0x155f09);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x327356['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x327356['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x327356['config']['get']('trackChanges.trackFormatChanges'),_0x327356['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x327356['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x327356,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x35315e=this['editor'];_0x35315e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2379cb,{writer:_0x19f00a})=>{let _0x6d8162='suggestion:'+_0x2379cb['getAttribute']('suggestion-type')+':'+_0x2379cb['getAttribute']('id');return _0x2379cb['getAttribute']('marker-count')&&(_0x6d8162+=':'+_0x2379cb['getAttribute']('marker-count')),_0x19f00a['createElement']('$marker',{'data-name':_0x6d8162});}}),_0x35315e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x35315e['model']['document']['registerPostFixer'](_0x28b93e=>{let _0x21401e=!0x1;const _0x18425a=Array['from'](_0x35315e['model']['document']['differ']['getChangedMarkers']()),_0x5e0db9=new Set();for(const {name:_0x214cf7,data:_0x22b115}of _0x18425a){const {group:_0x117a18,type:_0x489572,subType:_0x1012c3,id:_0x378b59}=this['_splitMarkerName'](_0x214cf7);if('suggestion'!==_0x117a18)continue;const _0x426718=_0x1012c3?'suggestion:'+_0x489572+':'+_0x1012c3+':'+_0x378b59:'suggestion:'+_0x489572+':'+_0x378b59,_0x34368b=_0x35315e['model']['markers']['getMarkersGroup'](_0x426718),_0x303ba6=_0x35315e['model']['markers']['get'](_0x214cf7),_0x27c6fb=this['_suggestions']['get'](_0x378b59);if(null!=_0x22b115['newRange']){'formatInline'==_0x489572&&(_0x21401e=_0x21401e||Wt(_0x22b115['newRange'],_0x214cf7,_0x28b93e,_0x35315e['model']['schema']));const _0x313978='attribute'==_0x489572&&this['_isBlockAttribute'](_0x1012c3['split']('|')[0x0]),_0x492f50='attribute'==_0x489572&&this['_isInlineAttribute'](_0x1012c3['split']('|')[0x0]);if(_0x22b115['newRange']['isCollapsed']||'$graveyard'==_0x22b115['newRange']['root']['rootName']||'formatBlock'==_0x489572&&!Qt(_0x22b115['newRange'])||_0x313978&&!Qt(_0x22b115['newRange'])||_0x492f50&&Xt(_0x22b115['newRange'])||'deletion'==_0x489572&&Xt(_0x22b115['newRange'])||_0x303ba6&&Yt(_0x303ba6,_0x34368b))_0x28b93e['removeMarker'](_0x214cf7),_0x21401e=!0x0;else{if(!_0x27c6fb||!_0x27c6fb['isInContent'])continue;if(_0x22b115['newRange']&&_0x22b115['oldRange']&&_0x22b115['newRange']['isEqual'](_0x22b115['oldRange']))continue;_0x5e0db9['add'](_0x27c6fb);}}}return _0x5e0db9['size']>0x0&&(_0x21401e=!!this['_joinWithAdjacentSuggestions'](_0x5e0db9)||_0x21401e),_0x21401e;}),_0x35315e['model']['document']['registerPostFixer'](_0x150e95=>{let _0x1ed658=!0x1;for(const _0x4bc9cb of _0x35315e['model']['document']['differ']['getChanges']())if('insert'==_0x4bc9cb['type'])for(const _0xff0b12 of this['_suggestions']['values']()){if(_0xff0b12['isMultiRange']||!_0xff0b12['isInContent'])continue;const _0x108f89='formatBlock'==_0xff0b12['type'],_0x4700a7=this['_getAttributeKey'](_0xff0b12),_0x1b297=_0x4700a7&&this['_isBlockAttribute'](_0x4700a7);if(!_0x108f89&&!_0x1b297)continue;const _0x42d0c9=_0xff0b12['getFirstRange']();if(_0x42d0c9['start']['parent']!=_0x42d0c9['end']['parent']&&!_0x42d0c9['end']['isAtEnd']){const _0x43d01b=_0x35315e['model']['createPositionAt'](_0x42d0c9['start']['nodeAfter'],'end'),_0x175407=_0x35315e['model']['createRange'](_0x42d0c9['start'],_0x43d01b);_0x150e95['updateMarker'](_0xff0b12['getFirstMarker'](),{'range':_0x175407}),_0x1ed658=!0x0;}}return _0x1ed658;}),_0x35315e['model']['document']['registerPostFixer'](_0x323a64=>this['_processAttributeChanges'](_0x323a64)),_0x35315e['model']['document']['registerPostFixer'](_0x467e08=>!_0x467e08['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x467e08)),_0x35315e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x35315e['model']['document']['on']('change:data',(_0x1354f2,_0x2ba133)=>{if(!_0x2ba133['isLocal']||_0x2ba133['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2d92d3=_0x35315e['model']['document']['differ']['getChanges']();if(0x0==_0x2d92d3['length'])return;const _0x3248ca=[],_0x7a30da=_0x2d92d3['filter'](_0x52e184=>'attribute'==_0x52e184['type']),_0x32fc7e=_0x2d92d3['filter'](_0x3a08ea=>'insert'==_0x3a08ea['type']&&'$text'!=_0x3a08ea['name']);for(const _0xf5d3d7 of _0x7a30da)this['_isRegisteredAttribute'](_0xf5d3d7['attributeKey'])&&_0x3248ca['push']({'key':_0xf5d3d7['attributeKey'],'newValue':_0xf5d3d7['attributeNewValue'],'oldValue':_0xf5d3d7['attributeOldValue'],'range':Zt(_0xf5d3d7['range'],_0x35315e['model'])});for(const _0x15ab01 of _0x32fc7e){if('rename'!=_0x15ab01['action']&&'refresh'!=_0x15ab01['action'])continue;const _0x24865e=tn(_0x15ab01['position']['nodeAfter'],_0x35315e['model']),_0x35aa45=_0x15ab01['before'];'rename'==_0x15ab01['action']&&_0x3248ca['push']({'key':m,'newValue':_0x15ab01['name'],'oldValue':_0x35aa45['name'],'range':_0x24865e});for(const [_0x7e1a3b,_0x3cd963]of _0x35aa45['attributes']){if(!this['_isRegisteredAttribute'](_0x7e1a3b))continue;const _0x1101a9=_0x15ab01['attributes']['get'](_0x7e1a3b);_0x3cd963!==_0x1101a9&&_0x3248ca['push']({'key':_0x7e1a3b,'newValue':_0x1101a9,'oldValue':_0x3cd963,'range':_0x24865e});}for(const [_0x2a9f3b,_0x339ed6]of _0x15ab01['attributes'])this['_isRegisteredAttribute'](_0x2a9f3b)&&(_0x35aa45['attributes']['has'](_0x2a9f3b)||_0x3248ca['push']({'key':_0x2a9f3b,'newValue':_0x339ed6,'oldValue':null,'range':_0x24865e}));}0x0!=_0x3248ca['length']&&_0x35315e['model']['enqueueChange'](_0x2ba133,_0x125c61=>{const _0x1fc35f=_0x507a09();for(const {range:_0x20548a,key:_0x4f30d3,oldValue:_0xb0ec93,newValue:_0x2db69e}of _0x3248ca)this['markAttributeChange'](_0x20548a,_0x4f30d3,_0xb0ec93,_0x2db69e,{'groupId':_0x1fc35f});this['_reduceExistingSuggestions'](_0x125c61,_0x3248ca);});},{'priority':'lowest'}),_0x35315e['model']['markers']['on']('update:suggestion',(_0xcee9bd,_0x4685ff,_0x217842)=>{if(null==_0x217842){const {id:_0x958267}=this['_splitMarkerName'](_0x4685ff['name']),_0x40f83e=this['_suggestions']['get'](_0x958267);_0x40f83e&&_0x40f83e['addMarkerName'](_0x4685ff['name']);}}),_0x35315e['model']['document']['on']('change:data',()=>{const _0x294290=Array['from'](_0x35315e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4534e9=>'suggestion'===this['_splitMarkerName'](_0x4534e9['name'])['group']);if(0x0===_0x294290['length'])return;_0x294290['sort']((_0x2656c5,_0x37c382)=>{const _0x1816a6=_0x2656c5['data']['oldRange'],_0x1014e4=_0x37c382['data']['oldRange'];return null===_0x1816a6&&null===_0x1014e4?0x0:null===_0x1816a6&&null!==_0x1014e4?-0x1:null!==_0x1816a6&&null===_0x1014e4?0x1:_0x1816a6['start']['isBefore'](_0x1014e4['start'])?-0x1:0x1;});const _0x290042=new Set(),_0xd8f69c=new Set();for(const {name:_0x4c363c,data:_0x4e8d8b}of _0x294290){const {id:_0x5f4073}=this['_splitMarkerName'](_0x4c363c);if(null===_0x4e8d8b['oldRange']){const _0xcc30bd=this['_handleNewSuggestionMarker'](_0x4c363c);_0xd8f69c['add'](_0xcc30bd);}else{const _0x3384e5=this['_suggestions']['get'](_0x5f4073);null!==_0x4e8d8b['newRange']||_0x3384e5['isInContent']?(_0x290042['add'](_0x3384e5['head']),_0xd8f69c['add'](_0x3384e5)):this['_removeSuggestion'](_0x3384e5);}}_0xd8f69c['size']>0x0&&this['_refreshSuggestionsChain'](_0xd8f69c);for(const _0x325a25 of _0x290042)this['fire']('suggestionChanged',_0x325a25);}),_0x35315e['model']['on']('applyOperation',(_0x2a4cec,_0x299f90)=>{const _0x1abbf8=_0x299f90[0x0];if(!this['_suggestions']['size'])return;if(!_0x1abbf8['isDocumentOperation'])return;if(_0x1abbf8['batch']['isUndo']||!_0x1abbf8['batch']['isLocal'])return;let _0x40e2fa,_0x78a0e8;switch(_0x1abbf8['type']){case'insert':_0x40e2fa=_0x35315e['model']['createPositionAt'](_0x1abbf8['position']),_0x78a0e8=_0x40e2fa['getShiftedBy'](_0x1abbf8['howMany']);break;case'split':_0x40e2fa=_0x35315e['model']['createPositionAt'](_0x1abbf8['splitPosition']),_0x78a0e8=_0x35315e['model']['createPositionAt'](_0x1abbf8['moveTargetPosition']);break;case'move':_0x40e2fa=_0x35315e['model']['createPositionAt'](_0x1abbf8['targetPosition']),_0x78a0e8=_0x40e2fa['getShiftedBy'](_0x1abbf8['howMany']);break;default:return;}const _0x2ffe94=_0x35315e['model']['createRange'](_0x40e2fa,_0x78a0e8);_0x35315e['model']['change'](()=>{for(const {suggestion:_0xc66508,meta:_0x297b11}of this['_findSuggestions'](_0x2ffe94)){if(_0xc66508['isMultiRange'])continue;if('formatInline'==_0xc66508['type'])continue;const _0x13d398=this['_getAttributeKey'](_0xc66508);if(_0x13d398&&this['_isBlockAttribute'](_0x13d398)&&'split'!=_0x1abbf8['type'])continue;const _0x50a313=_0xc66508['data']&&_0xc66508['data']['multipleBlocks'];('formatBlock'!=_0xc66508['type']||'split'==_0x1abbf8['type']&&!_0x50a313)&&(_0x297b11['containsRangeInObject']||'insertion'==_0xc66508['type']&&_0x297b11['isOwn']||_0xc66508['getFirstRange']()['containsRange'](_0x2ffe94)&&this['_breakSuggestionMarker'](_0xc66508,_0x40e2fa,_0x78a0e8));}});},{'priority':'lowest'}),_0x35315e['model']['on']('deleteContent',(_0x4dc216,_0x3e1c4b)=>{const _0x5a00ac=_0x3e1c4b[0x0],_0xc19879=_0x3e1c4b[0x1];if(_0xc19879&&_0xc19879['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5a00ac['isCollapsed'])return;const _0x585ed5=_0x35315e['model']['schema'],{start:_0x1c5364,end:_0x2b4669}=_0x5a00ac['getFirstRange'](),_0x119d8e=_0x1c5364['nodeAfter']&&_0x585ed5['isLimit'](_0x1c5364['nodeAfter'])?null:_0x585ed5['getNearestSelectionRange'](_0x1c5364,'forward'),_0x57f4e1=_0x2b4669['nodeBefore']&&_0x585ed5['isLimit'](_0x2b4669['nodeBefore'])?null:_0x585ed5['getNearestSelectionRange'](_0x2b4669,'backward'),_0x3de65b=_0x35315e['model']['createRange'](_0x119d8e?_0x119d8e['start']:_0x1c5364,_0x57f4e1?_0x57f4e1['end']:_0x2b4669);_0x35315e['model']['change'](_0x867988=>{this['markDeletion'](_0x3de65b);const _0x67e1c5=_0x35315e['model']['schema']['getNearestSelectionRange'](_0x3de65b['start']);_0x5a00ac['is']('documentSelection')?_0x867988['setSelection'](_0x67e1c5):_0x5a00ac['setTo'](_0x67e1c5);}),_0x4dc216['stop']();},{'priority':_0x40db57['normal']+0xa}),_0x35315e['model']['on']('insertContent',(_0x5dc002,_0x2ee0a2)=>{const _0x1c69b8=_0x2ee0a2[_0x2ee0a2['length']-0x1];_0x1c69b8&&_0x1c69b8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x35315e['model']['change'](()=>{let _0x13eec8=_0x35315e['model']['insertContent'](_0x2ee0a2[0x0],_0x2ee0a2[0x1],_0x2ee0a2[0x2],{'forceDefaultExecution':!0x0});if(!_0x13eec8)return;_0x5dc002['return']=_0x13eec8['clone']();const _0x32b022=_0x13eec8['end']['nodeBefore'],_0x5d830f=_0x35315e['model']['schema'];_0x32b022&&_0x5d830f['isBlock'](_0x32b022)&&!_0x5d830f['isObject'](_0x32b022)&&(_0x13eec8=_0x35315e['model']['createRange'](_0x13eec8['start'],_0x35315e['model']['createPositionAt'](_0x32b022,'end'))),this['markInsertion'](_0x13eec8);}),_0x5dc002['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x541c8a=new O(_0x35315e,this['_suggestions']);_0x35315e['commands']['add']('acceptSuggestion',_0x541c8a),this['enableCommand']('acceptSuggestion');const _0x1448ad=new x(_0x35315e,this['_suggestions']);_0x35315e['commands']['add']('discardSuggestion',_0x1448ad),this['enableCommand']('discardSuggestion'),_0x35315e['commands']['add']('acceptAllSuggestions',new M(_0x35315e,_0x541c8a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x35315e['commands']['add']('discardAllSuggestions',new M(_0x35315e,_0x1448ad,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x35315e['commands']['add']('acceptSelectedSuggestions',new R(_0x35315e,_0x541c8a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x35315e['commands']['add']('discardSelectedSuggestions',new R(_0x35315e,_0x1448ad,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1c9daf=_0x35315e['plugins']['get']('CommentsRepository');this['listenTo'](_0x1c9daf,'addComment',(_0x2337da,{threadId:_0x2b4f97})=>{const _0x1924f7=this['_suggestions']['get'](_0x2b4f97);_0x1924f7&&_0x1924f7['commentThread']&&0x1===_0x1924f7['commentThread']['length']&&this['_updateSuggestionData'](_0x2b4f97,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1c9daf,'removeComment',(_0x25cbf0,{threadId:_0x4a7fe9})=>{const _0x4b0bad=this['_suggestions']['get'](_0x4a7fe9);_0x4b0bad&&_0x4b0bad['commentThread']&&!_0x4b0bad['commentThread']['length']&&this['_updateSuggestionData'](_0x4a7fe9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1eae8d){const _0x2aee5a=_0x4834b9([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]),_0xf3798f=0x3d8d0df,_0x2c3968=0x3df57b7^_0xf3798f,_0x3fc5b7=window[_0x4834b9([0x44,0x61,0x74,0x65])][_0x4834b9([0x6e,0x6f,0x77])](),_0x50e012=_0x1eae8d[_0x4834b9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xd7f93d=new window[(_0x4834b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5686fb=>{_0x50e012[_0x4834b9([0x6f,0x6e,0x63,0x65])](_0x4834b9([0x72,0x65,0x61,0x64,0x79]),_0x5686fb);}),_0x23618a={[_0x4834b9([0x6b,0x74,0x79])]:_0x4834b9([0x45,0x43]),[_0x4834b9([0x75,0x73,0x65])]:_0x4834b9([0x73,0x69,0x67]),[_0x4834b9([0x63,0x72,0x76])]:_0x4834b9([0x50,0x2d,0x32,0x35,0x36]),[_0x4834b9([0x78])]:_0x4834b9([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]),[_0x4834b9([0x79])]:_0x4834b9([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]),[_0x4834b9([0x61,0x6c,0x67])]:_0x4834b9([0x45,0x53,0x32,0x35,0x36])},_0x57ef98=_0x50e012[_0x4834b9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4834b9([0x67,0x65,0x74])](_0x4834b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b755b(){let _0x2f9af3,_0x444abc=null,_0x5cb9a9=null;try{if(_0x57ef98==_0x4834b9([0x47,0x50,0x4c]))return _0x4834b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2f9af3=_0x3745da(),!_0x2f9af3)return _0x4834b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2f9af3[_0x4834b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5cb9a9=_0x2a93f2(_0x2f9af3[_0x4834b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2f9af3[_0x4834b9([0x6a,0x74,0x69])])),await _0x1b394e()?_0x4c216f()?_0xd06b1d()?_0x4834b9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x46022e()?(_0x2f9af3[_0x4834b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4834b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x444abc=_0x311d0b(_0x4834b9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x441dc4()):_0x4834b9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4834b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4834b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4834b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd06b1d(){const _0x16472d=[_0x4834b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4834b9([0x74,0x72,0x69,0x61,0x6c])][_0x4834b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f9af3[_0x4834b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fc5b7/0x3e8:0xe10*_0x2c3968;return _0x2f9af3[_0x4834b9([0x65,0x78,0x70])]<_0x16472d;}function _0x4c216f(){const _0x30736b=_0x2f9af3[_0x4834b9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x30736b)return!0x1;if(_0x30736b[_0x4834b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4834b9([0x2a])))return!0x0;if(_0x30736b[_0x4834b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4834b9([0x54,0x43])))return!0x0;if(_0x30736b[_0x4834b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4834b9([0x52,0x54,0x43]))){if(_0x3ed313())return!0x0;if(_0x30fcdf()||_0xe06882())return!0x0;}return!0x1;}function _0x46022e(){const _0x1ee77f=_0x2f9af3[_0x4834b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ee77f||0x0==_0x1ee77f[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x206563}=new URL(window[_0x4834b9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ee77f[_0x4834b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x206563))return!0x0;const _0x57cd2c=_0x206563[_0x4834b9([0x73,0x70,0x6c,0x69,0x74])](_0x4834b9([0x2e]));return _0x1ee77f[_0x4834b9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe2504a=>_0xe2504a[_0x4834b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4834b9([0x2a])))[_0x4834b9([0x6d,0x61,0x70])](_0x38e167=>_0x38e167[_0x4834b9([0x73,0x70,0x6c,0x69,0x74])](_0x4834b9([0x2e])))[_0x4834b9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32f1e0=>_0x32f1e0[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x57cd2c[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4834b9([0x6d,0x61,0x70])](_0x13660=>Array(_0x57cd2c[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13660[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4834b9([0x66,0x69,0x6c,0x6c])](_0x13660[0x0]===_0x4834b9([0x2a])?_0x4834b9([0x2a]):'')[_0x4834b9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13660))[_0x4834b9([0x73,0x6f,0x6d,0x65])](_0x3d9816=>_0x57cd2c[_0x4834b9([0x65,0x76,0x65,0x72,0x79])]((_0x496590,_0x2b5122)=>_0x3d9816[_0x2b5122]===_0x496590||_0x3d9816[_0x2b5122]===_0x4834b9([0x2a])));}function _0x441dc4(){return _0x444abc&&_0x5cb9a9?new window[(_0x4834b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x536ffd,_0xd947fe)=>{_0x444abc[_0x4834b9([0x74,0x68,0x65,0x6e])](_0x536ffd,_0xd947fe),_0x5cb9a9[_0x4834b9([0x74,0x68,0x65,0x6e])](_0x104caf=>{_0x104caf!=_0x4834b9([0x56,0x61,0x6c,0x69,0x64])&&_0x536ffd(_0x104caf);},_0xd947fe);}):_0x444abc||_0x5cb9a9||_0x4834b9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a93f2(_0x577247,_0x2a46d2){return new window[(_0x4834b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5baf74=>{if(_0x702111())return _0x5baf74(_0x4834b9([0x56,0x61,0x6c,0x69,0x64]));_0x5e2dac(),_0x50e012[_0x4834b9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4834b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x175ba9=!0x1;const _0x227c15=_0x507a09();function _0x5df231(_0xdcf009){return!!_0xdcf009&&(typeof _0xdcf009===_0x4834b9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xdcf009===_0x4834b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xdcf009[_0x4834b9([0x74,0x68,0x65,0x6e])]===_0x4834b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xdcf009[_0x4834b9([0x63,0x61,0x74,0x63,0x68])]===_0x4834b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bf07d(_0x1d69e4){_0x5aa500(_0x1d69e4)[_0x4834b9([0x74,0x68,0x65,0x6e])](_0x2445c9=>{if(!_0x2445c9||_0x2445c9[_0x4834b9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4834b9([0x6f,0x6b]))return _0x4834b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14891f(_0x76b8c0(_0x227c15+_0x2a46d2))!=_0x2445c9[_0x4834b9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4834b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4834b9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4834b9([0x74,0x68,0x65,0x6e])](_0x9f2f93=>(_0xf97ace(),_0x9f2f93),()=>{const _0x367686=_0x4bbf6e();return null==_0x367686?(_0xf97ace(),_0x4834b9([0x56,0x61,0x6c,0x69,0x64])):_0x4834b9(_0x3fc5b7-_0x367686>(0x27d454df^_0xf3798f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4834b9([0x74,0x68,0x65,0x6e])](_0x5baf74)[_0x4834b9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5baf74(_0x4834b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x392f34=0x3ee3e5f^_0xf3798f;function _0xf97ace(){const _0x180a17=_0x4834b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x14891f(_0x76b8c0(_0x577247)),_0x45d447=_0x4294ba(_0x14891f(window[_0x4834b9([0x4d,0x61,0x74,0x68])][_0x4834b9([0x63,0x65,0x69,0x6c])](_0x3fc5b7/_0x392f34)));window[_0x4834b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4834b9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x180a17,_0x45d447);}function _0x4bbf6e(){const _0x3d73e0=_0x4834b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x14891f(_0x76b8c0(_0x577247)),_0x58f0a4=window[_0x4834b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4834b9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d73e0);return _0x58f0a4?window[_0x4834b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4294ba(_0x58f0a4),0x10)*_0x392f34:null;}function _0x5aa500(_0x575bc5){return new window[(_0x4834b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b292,_0x46599a)=>{_0x575bc5[_0x4834b9([0x74,0x68,0x65,0x6e])](_0x5b292,_0x46599a),window[_0x4834b9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46599a,0x3d9041f^_0xf3798f);});}}_0x50e012[_0x4834b9([0x6f,0x6e])](_0x4834b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d10c5,_0x277f48)=>{if(_0x277f48[0x0]!=_0x577247)return _0x5baf74(_0x4834b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x277f48[0x1]={..._0x277f48[0x1],[_0x4834b9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x227c15};},{[_0x4834b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4834b9([0x68,0x69,0x67,0x68])}),_0x50e012[_0x4834b9([0x6f,0x6e])](_0x4834b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x48c64a=>{_0x5df231(_0x48c64a[_0x4834b9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x175ba9=!0x0,_0x3bf07d(_0x48c64a[_0x4834b9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4834b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4834b9([0x6c,0x6f,0x77])}),_0xd7f93d[_0x4834b9([0x74,0x68,0x65,0x6e])](()=>{_0x175ba9||_0x5baf74(_0x4834b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x702111(){return _0x50e012[_0x4834b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4834b9([0x76,0x69,0x65,0x77])][_0x4834b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4834b9([0x61,0x75,0x74,0x6f]);}function _0x5e2dac(){_0x50e012[_0x4834b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4834b9([0x76,0x69,0x65,0x77])][_0x4834b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4834b9([0x61,0x75,0x74,0x6f]);}}function _0x311d0b(_0x1aa77e){const _0x15c374=[new window[(_0x4834b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24aa82=>setTimeout(_0x24aa82,0x3d1ee13^_0xf3798f)),_0xd7f93d[_0x4834b9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4834b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dba6d=>{let _0x5adf6c=0x0;_0x50e012[_0x4834b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4834b9([0x6f,0x6e])](_0x4834b9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b83da,_0x2aa810)=>{_0x2aa810[0x0][_0x4834b9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5adf6c++,_0x5adf6c==(0x3d8d537^_0xf3798f)&&(_0x2dba6d(),_0x2b83da[_0x4834b9([0x6f,0x66,0x66])]());});}))];return window[_0x4834b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4834b9([0x72,0x61,0x63,0x65])](_0x15c374)[_0x4834b9([0x74,0x68,0x65,0x6e])](()=>_0x1aa77e);}async function _0x3aa51d(){await _0xd7f93d,_0x50e012[_0x4834b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4834b9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2825a8,_0x50e012[_0x4834b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4834b9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2825a8,_0x50e012[_0x4834b9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4834b9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ed313(){return _0x121568(_0x4834b9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x333f91(_0x4834b9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4834b9([0x73,0x74,0x61,0x74,0x65])]==_0x4834b9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x30fcdf(){return _0x121568(_0x4834b9([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 _0xe06882(){return _0x121568(_0x4834b9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x323e9c(_0xea6f3f){const _0x1f98ed=_0x521ff8();_0x50e012[_0x1f98ed]=_0x4834b9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xea6f3f,_0xea6f3f!=_0x4834b9([0x56,0x61,0x6c,0x69,0x64])&&_0x3aa51d();}function _0x521ff8(){const _0x11959f=window[_0x4834b9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4834b9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4834b9([0x6e,0x6f,0x77])]())[_0x4834b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4834b9([0x2e]),'');let _0x5718d9=_0x4834b9([0x52]);for(let _0x38969e=0x0;_0x38969e<_0x11959f[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38969e+=0x2){let _0x5d3fc2=window[_0x4834b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11959f[_0x4834b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38969e,_0x38969e+0x2));_0x5d3fc2>=_0x2aee5a[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d3fc2-=_0x2aee5a[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5718d9+=_0x2aee5a[_0x5d3fc2];}return _0x5718d9;}function _0x3745da(){const _0x37f381=_0x57ef98[_0x4834b9([0x73,0x70,0x6c,0x69,0x74])](_0x4834b9([0x2e]));if(0x3!=_0x37f381[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x133120(_0x37f381[0x1]);function _0x133120(_0x331208){const _0x5663de=_0x1baf89(_0x331208);return _0x5663de&&_0x6483a0()?_0x5663de:null;function _0x6483a0(){const _0x287e8e=_0x5663de[_0x4834b9([0x6a,0x74,0x69])],_0x40e4b7=window[_0x4834b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287e8e[_0x4834b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x287e8e[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x305217={..._0x5663de,[_0x4834b9([0x6a,0x74,0x69])]:_0x287e8e[_0x4834b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x287e8e[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x305217[_0x4834b9([0x76,0x63])],_0x76b8c0(_0x305217)==_0x40e4b7;}}}async function _0x1b394e(){let _0x5f49a1=!0x0;try{const _0x26de83=_0x57ef98[_0x4834b9([0x73,0x70,0x6c,0x69,0x74])](_0x4834b9([0x2e])),[_0x511369,_0x3e6fa1,_0x3735cb]=_0x26de83;return _0x16af62(_0x511369),await _0x1d9246(_0x511369,_0x3e6fa1,_0x3735cb),_0x5f49a1;}catch{return!0x1;}function _0x16af62(_0x5c534a){const _0x353465=_0x1baf89(_0x5c534a);_0x353465&&_0x353465[_0x4834b9([0x61,0x6c,0x67])]==_0x4834b9([0x45,0x53,0x32,0x35,0x36])||(_0x5f49a1=!0x1);}async function _0x1d9246(_0x414d62,_0x59e4a1,_0x344b9b){const _0x3fe1ab=window[_0x4834b9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4834b9([0x66,0x72,0x6f,0x6d])](_0x308b64(_0x344b9b),_0x45725d=>_0x45725d[_0x4834b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4993a3=new window[(_0x4834b9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4834b9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x414d62+_0x4834b9([0x2e])+_0x59e4a1),_0x199e3d=window[_0x4834b9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4834b9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x199e3d)return;const _0xb57d2f=await _0x199e3d[_0x4834b9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4834b9([0x6a,0x77,0x6b]),_0x23618a,{[_0x4834b9([0x6e,0x61,0x6d,0x65])]:_0x4834b9([0x45,0x43,0x44,0x53,0x41]),[_0x4834b9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4834b9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4834b9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x199e3d[_0x4834b9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4834b9([0x6e,0x61,0x6d,0x65])]:_0x4834b9([0x45,0x43,0x44,0x53,0x41]),[_0x4834b9([0x68,0x61,0x73,0x68])]:{[_0x4834b9([0x6e,0x61,0x6d,0x65])]:_0x4834b9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb57d2f,_0x3fe1ab,_0x4993a3)||(_0x5f49a1=!0x1);}}function _0x1baf89(_0x554ee7){return _0x554ee7[_0x4834b9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4834b9([0x65,0x79]))?JSON[_0x4834b9([0x70,0x61,0x72,0x73,0x65])](_0x308b64(_0x554ee7)):null;}function _0x308b64(_0x9f26c0){return window[_0x4834b9([0x61,0x74,0x6f,0x62])](_0x9f26c0[_0x4834b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4834b9([0x2b]))[_0x4834b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4834b9([0x2f])));}function _0x76b8c0(_0x1f0062){let _0x28408c=0x1505;function _0x5065b7(_0x1f92e6){for(let _0x46571b=0x0;_0x46571b<_0x1f92e6[_0x4834b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46571b++){const _0x371ecb=_0x1f92e6[_0x4834b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46571b);_0x28408c=(_0x28408c<<0x5)+_0x28408c+_0x371ecb,_0x28408c&=_0x28408c;}}function _0x101de7(_0x535a70){Array[_0x4834b9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x535a70)?_0x535a70[_0x4834b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x101de7):_0x535a70&&typeof _0x535a70==_0x4834b9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4834b9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x535a70)[_0x4834b9([0x73,0x6f,0x72,0x74])]()[_0x4834b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x368cc7,_0xdfc8e7])=>{_0x5065b7(_0x368cc7),_0x101de7(_0xdfc8e7);}):_0x5065b7(window[_0x4834b9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x535a70));}return _0x101de7(_0x1f0062),_0x28408c>>>0x0;}function _0x14891f(_0x58d513){return _0x58d513[_0x4834b9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4834b9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4834b9([0x30]));}function _0x4294ba(_0x18d367){return _0x18d367[_0x4834b9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4834b9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4834b9([0x6a,0x6f,0x69,0x6e])]('');}function _0x121568(_0x27cc2b){return _0x50e012[_0x4834b9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4834b9([0x68,0x61,0x73])](_0x27cc2b);}function _0x333f91(_0x3ce92a){return _0x50e012[_0x4834b9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4834b9([0x67,0x65,0x74])](_0x3ce92a);}function _0x2825a8(){}function _0x4834b9(_0x1690f7){return _0x1690f7['map'](_0x13ff24=>String['fromCharCode'](_0x13ff24))['join']('');}_0x323e9c(await _0x5b755b());}(this);}set['adapter'](_0x426686){if(this['_adapter'])throw new _0x14cf5c('track-changes-adapter-already-set',this);this['_adapter']=_0x426686;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ad53f=!0x1,toJSON:_0x44ac8f=!0x1}={}){const _0x2ad40b=[];for(const _0x11dbd6 of this['_suggestions']['values']())_0x2ad53f&&!_0x11dbd6['isInContent']||_0x2ad40b['push'](_0x11dbd6);return _0x44ac8f?_0x2ad40b['map'](_0x4bb331=>_0x4bb331['toJSON']()):_0x2ad40b;}['getSuggestion'](_0x3eebfb){const _0x446c42=this['_suggestions']['get'](_0x3eebfb);if(!_0x446c42)throw new _0x14cf5c('track-changes-suggestion-not-found',this);return _0x446c42;}['hasSuggestion'](_0x70c895){return this['_suggestions']['has'](_0x70c895);}['addSuggestionData'](_0x578cdb){const {authorId:_0x2a0c15,id:_0x562cd2,originalSuggestionId:_0xe73f0e,attributes:_0x545e81}=_0x578cdb,[_0x4577d6,_0x4935f4]=_0x578cdb['type']['split'](':'),_0x59e2f6=this['_suggestions']['get'](_0x562cd2)||this['_createSuggestion'](_0x4577d6,_0x4935f4,_0x562cd2,_0x2a0c15,_0x545e81,_0xe73f0e);if(this['_addThreadToSuggestion'](_0x59e2f6),this['_checkSuggestionCorrectness'](_0x59e2f6,_0x4577d6,_0x4935f4||null,_0x2a0c15),_0x59e2f6['createdAt']=_0x578cdb['createdAt'],_0x59e2f6['_isDataLoaded']=!0x0,_0x545e81&&_0x545e81['@external']){const _0x1af5a6=_0x545e81['@external'],_0xbcaf9c=this['_getExternalAuthor'](_0x1af5a6['authorName']);_0x59e2f6['authoredAt']=_0x1af5a6['createdAt'],_0x59e2f6['author']=_0xbcaf9c,_0x59e2f6['isExternal']=!0x0;}else _0x59e2f6['authoredAt']=_0x578cdb['createdAt'];switch(_0x578cdb['data']&&(_0x59e2f6['data']=_0x578cdb['data']),_0x578cdb['attributes']&&(_0x59e2f6['attributes']=_0x578cdb['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x59e2f6['_saved']=!0x0),this['_suggestionState']['get'](_0x59e2f6)){case'notReady':this['_suggestionState']['set'](_0x59e2f6,'dataReady');break;case'markerReady':_0x59e2f6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x59e2f6])),this['_refreshSuggestionsChain'](new Set([_0x59e2f6])),this['_suggestionState']['set'](_0x59e2f6,'ready'),this['fire']('suggestionLoaded',_0x59e2f6)):this['_suggestionState']['set'](_0x59e2f6,'removed');}return _0x59e2f6;}['acceptSuggestion'](_0x33541d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x22345e of _0x33541d['getAllAdjacentSuggestions']())_0x22345e['accept']();});});}['discardSuggestion'](_0x1986c4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3ecd47 of _0x1986c4['getAllAdjacentSuggestions']())_0x3ecd47['discard']();});});}['enableCommand'](_0x1c1081,_0x1853ab){const _0x1581a4=this['editor']['commands']['get'](_0x1c1081);if(!_0x1581a4)throw new _0x14cf5c('track-changes-command-not-found',this,{'commandName':_0x1c1081});if(this['_enabledCommands']['has'](_0x1581a4))throw new _0x14cf5c('track-changes-enable-command-twice',this,{'commandName':_0x1c1081});this['_enabledCommands']['add'](_0x1581a4),_0x1853ab&&_0x1581a4['on']('execute',(_0x39633b,_0x4461d1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4461d1['length']>0x0&&_0x4461d1[_0x4461d1['length']-0x1]&&_0x4461d1[_0x4461d1['length']-0x1]['forceDefaultExecution']?_0x4461d1['pop']():(_0x39633b['return']=_0x1853ab((..._0x3d5090)=>_0x1581a4['execute'](..._0x3d5090,{'forceDefaultExecution':!0x0}),..._0x4461d1),_0x39633b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4acf46){let _0x4db282,_0x552cba;const _0x5cba2d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4db282=_0x4acf46();}catch(_0x212517){_0x552cba=_0x212517;}return _0x5cba2d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x552cba&&_0x14cf5c['rethrowUnexpectedError'](_0x552cba,this),_0x4db282;}['markInsertion'](_0x3a40aa,_0x5445ef=null,_0x7967f7={}){if(_0x3a40aa['isCollapsed'])return null;const _0x512799=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x7967f7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x29859f,meta:_0x4bcb43}of this['_findSuggestions'](_0x3a40aa,'insertion'))if(_0x4bcb43['isOwn']){if(!_0x4bcb43['isNextTo']){if(_0x4bcb43['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x29859f,_0x7967f7))continue;return _0x29859f;}if(sn(_0x29859f,_0x7967f7))return _0x29859f;this['_breakSuggestionMarker'](_0x29859f,_0x3a40aa['start'],_0x3a40aa['end']);break;}if(_0x5445ef==_0x29859f['subType']&&sn(_0x29859f,_0x7967f7)){const _0x3ac7ce=_0x29859f['getFirstRange']();return _0x3ac7ce['start']['isEqual'](_0x3a40aa['end'])?this['_setSuggestionRange'](_0x29859f,this['_model']['createRange'](_0x3a40aa['start'],_0x3ac7ce['end'])):this['_setSuggestionRange'](_0x29859f,this['_model']['createRange'](_0x3ac7ce['start'],_0x3a40aa['end'])),_0x29859f;}}const _0x518e96=_0x507a09(),_0x144f74=_0x512799['id'],_0x16093d=_0x5445ef?'insertion:'+_0x5445ef:'insertion',_0x3bcce8=this['_setSuggestionData']({'id':_0x518e96,'type':_0x16093d,'createdAt':new Date(),'authorId':_0x144f74,'attributes':_0x7967f7});return this['_addSuggestionMarker'](_0x16093d,_0x518e96,_0x144f74,_0x3a40aa),_0x3bcce8;}['markMultiRangeInsertion'](_0x16c1a8,_0x445c48='multi',_0x22ff53={}){const _0xab9eaa=this['editor']['plugins']['get']('Users')['me'],_0x56d9c7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x445c48,'join');this['_trackingSessionId']&&(_0x22ff53['trackingSessionId']=this['_trackingSessionId']);for(const _0x61f183 of this['getSuggestions']())if(_0x61f183['author']['id']==_0xab9eaa['id']&&'insertion'==_0x61f183['type']&&_0x61f183['subType']==_0x445c48&&sn(_0x61f183,_0x22ff53)&&(_0x56d9c7(_0x61f183['getRanges'](),_0x16c1a8)||_0x56d9c7(_0x16c1a8,_0x61f183['getRanges']()))){for(const _0x49c1ae of _0x16c1a8)_0x61f183['addRange'](_0x49c1ae);return _0x61f183;}for(const {suggestion:_0x319393,meta:_0x4fbdf9}of this['_findSuggestions'](_0x16c1a8,'insertion')){if(!_0x4fbdf9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4fbdf9['containsRangeInObject'])continue;if(!sn(_0x319393,_0x22ff53))continue;let _0x116f26=!0x0;for(const _0x5c340e of _0x319393['getRanges']())for(const _0x3293c2 of _0x16c1a8)if(!_0x5c340e['containsRange'](_0x3293c2)){_0x116f26=!0x1;break;}if(_0x116f26)return _0x319393;}const _0x3c68eb=_0x507a09(),_0x48b585=_0xab9eaa['id'],_0x113d8e='insertion:'+_0x445c48,_0x33f937=this['_setSuggestionData']({'id':_0x3c68eb,'type':_0x113d8e,'createdAt':new Date(),'authorId':_0x48b585,'attributes':_0x22ff53});for(const _0x1cb8d5 of _0x16c1a8)this['_addSuggestionMarker'](_0x113d8e,_0x3c68eb,_0x48b585,_0x1cb8d5,T['getMultiRangeId']());return _0x33f937;}['markInlineFormat'](_0x47a6a1,_0x55fddb,_0x3fbdbe=null,_0x2d85e9={}){if(_0x3fbdbe=_0x3fbdbe||Ht(_0x55fddb),_0x47a6a1['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2d85e9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x49f9ad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3fbdbe,'accept');return this['forceDefaultExecution'](()=>_0x49f9ad([_0x47a6a1],_0x55fddb,_0x2d85e9)),null;}const _0x2071ff=this['editor']['plugins']['get']('Users')['me'],_0x486194=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a828a,meta:_0x57021f}of this['_findSuggestions'](_0x47a6a1,'insertion'))_0x57021f['isOwn']&&!_0x57021f['isInsideObject']&&_0x486194['push'](..._0x2a828a['getRanges']());}const _0x1a44d6=function(_0x35a42d,_0x12723c){const _0x2e1a4a=[];for(const _0xd2e676 of _0x12723c){const _0x35d6ba=_0x35a42d['getIntersection'](_0xd2e676);_0x35d6ba&&_0x2e1a4a['push'](_0x35d6ba);}return _0x2e1a4a;}(_0x47a6a1,_0x486194),_0x1dc421=function(_0x1e6109,_0x36d7fc){const _0x566165=[_0x1e6109];for(const _0x1b0784 of _0x36d7fc){let _0x4777ec=0x0;for(;_0x4777ec<_0x566165['length'];){const _0x2cfe72=_0x566165[_0x4777ec]['getDifference'](_0x1b0784);_0x566165['splice'](_0x4777ec,0x1,..._0x2cfe72),_0x4777ec+=_0x2cfe72['length'];}}return _0x566165;}(_0x47a6a1,_0x486194);_0x1a44d6['length']&&this['_model']['change'](()=>{for(const _0x77cc24 of _0x1a44d6){const _0xf9b314=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3fbdbe,'accept');this['forceDefaultExecution'](()=>_0xf9b314([_0x77cc24],_0x55fddb,_0x2d85e9));}});for(const _0xf9ebce of _0x1dc421){let _0x388762=null,_0x38717d=_0xf9ebce['start'],_0x3f7a2e=_0xf9ebce['end'];for(const {suggestion:_0x557a69,meta:_0x44e2fd}of this['_findSuggestions'](_0xf9ebce,'formatInline')){if(!_0x44e2fd['isOwn'])continue;if(_0x557a69['subType']!=_0x3fbdbe)continue;if(!sn(_0x557a69,_0x2d85e9))continue;const _0x463395=_0x557a69['getFirstRange']();if(_0x463395['containsRange'](_0xf9ebce,!0x0))return null;_0x38717d=_0x38717d['isBefore'](_0x463395['start'])?_0x38717d:_0x463395['start'],_0x3f7a2e=_0x3f7a2e['isAfter'](_0x463395['end'])?_0x3f7a2e:_0x463395['end'],_0x388762?_0x463395['start']['isBefore'](_0x388762['getFirstRange']()['start'])?(_0x388762['removeMarkers'](),_0x388762=_0x557a69):_0x557a69['removeMarkers']():_0x388762=_0x557a69;}const _0x5c03db=this['_model']['createRange'](_0x38717d,_0x3f7a2e);if(_0x388762)this['_setSuggestionRange'](_0x388762,_0x5c03db);else{const _0x503315=_0x507a09(),_0x2bddf9=_0x2071ff['id'];this['_setSuggestionData']({'id':_0x503315,'type':'formatInline:'+_0x3fbdbe,'data':_0x55fddb,'createdAt':new Date(),'authorId':_0x2bddf9,'attributes':_0x2d85e9}),this['_addSuggestionMarker']('formatInline:'+_0x3fbdbe,_0x503315,_0x2bddf9,_0x5c03db);}}return null;}['markBlockFormat'](_0x34d328,_0x24082e,_0x54218c=[],_0xc679e3=null,_0x3ca8c3={}){_0x24082e['formatGroupId']||(_0x24082e['formatGroupId']=_0x24082e['commandName']),_0x24082e['multipleBlocks']=_0x34d328['is']('range'),_0xc679e3=_0xc679e3||Ht(_0x24082e);const _0x5bbebc=_0x54218c['map'](_0x128b3f=>tn(_0x128b3f,this['_model'])),_0x5b0afd=_0x34d328['is']('range')?_0x34d328:tn(_0x34d328,this['_model']);if(this['_trackingSessionId']&&(_0x3ca8c3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x58f3da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc679e3,'accept');return this['forceDefaultExecution'](()=>_0x58f3da([_0x5b0afd],_0x24082e,_0x3ca8c3)),null;}_0x5bbebc['push'](_0x5b0afd);let _0x2d43da=!0x0;for(const _0x3dd855 of _0x5bbebc)if(!this['_rangeIsInLocalUserInsertion'](_0x3dd855)){_0x2d43da=!0x1;break;}if(_0x2d43da&&'always'!==this['_trackFormatChanges']){const _0x4e1dd0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc679e3,'accept');return this['forceDefaultExecution'](()=>_0x4e1dd0([_0x5b0afd],_0x24082e,_0x3ca8c3)),null;}let _0x1ee570=null,_0x305bec=_0x5b0afd['start'],_0x22abde=_0x5b0afd['end'];for(const {suggestion:_0x66b181,meta:_0x398a06}of this['_findSuggestions'](_0x5b0afd,'formatBlock')){if(!_0x398a06['isOwn'])continue;if(_0x398a06['isNextTo']||_0x398a06['containsRangeInObject']||_0x398a06['isInsideObject'])continue;if(_0x66b181['data']['formatGroupId']!=_0x24082e['formatGroupId'])continue;if(!sn(_0x66b181,_0x3ca8c3))continue;const _0xf01179=_0x66b181['getFirstRange']();if(_0x66b181['subType']==_0xc679e3){if(_0xf01179['containsRange'](_0x5b0afd,!0x0))return null;_0x305bec=_0x305bec['isBefore'](_0xf01179['start'])?_0x305bec:_0xf01179['start'],_0x22abde=_0x22abde['isAfter'](_0xf01179['end'])?_0x22abde:_0xf01179['end'],_0x1ee570?_0xf01179['start']['isBefore'](_0x1ee570['getFirstRange']()['start'])?(_0x1ee570['removeMarkers'](),_0x1ee570=_0x66b181):_0x66b181['removeMarkers']():_0x1ee570=_0x66b181;}else{const _0x950cda=_0x5b0afd['getIntersection'](_0xf01179);this['_cutOutSuggestionMarker'](_0x66b181,_0x950cda);}}const _0x31f84e=this['editor']['plugins']['get']('Users')['me'],_0x38d4f9=_0x507a09(),_0x7aa39d=_0x31f84e['id'];if(_0x1ee570)return this['_setSuggestionRange'](_0x1ee570,this['_model']['createRange'](_0x305bec,_0x22abde)),_0x1ee570;{const _0x4edc96=this['_setSuggestionData']({'id':_0x38d4f9,'type':'formatBlock:'+_0xc679e3,'data':_0x24082e,'createdAt':new Date(),'authorId':_0x7aa39d,'attributes':_0x3ca8c3});return this['_addSuggestionMarker']('formatBlock:'+_0xc679e3,_0x38d4f9,_0x7aa39d,this['_model']['createRange'](_0x305bec,_0x22abde)),_0x4edc96;}}['markMultiRangeBlockFormat'](_0x46260e,_0x2c674e,_0x12b9dc=[],_0x471343=null,_0x363095={}){_0x2c674e['formatGroupId']||(_0x2c674e['formatGroupId']=_0x2c674e['commandName']);const _0x553cda=_0x46260e[0x0];_0x2c674e['multipleBlocks']=_0x553cda['is']('range'),_0x471343=_0x471343||Ht(_0x2c674e);const _0x4c8d45=_0x12b9dc['map'](_0x203e2d=>tn(_0x203e2d,this['_model'])),_0x36bc59=_0x553cda['is']('range')?_0x46260e:_0x46260e['map'](_0x1442b0=>tn(_0x1442b0,this['_model']));if(this['_trackingSessionId']&&(_0x363095['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x15e9d2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x471343,'accept');return this['forceDefaultExecution'](()=>_0x15e9d2(_0x36bc59,_0x2c674e,_0x363095)),null;}_0x4c8d45['push'](..._0x36bc59);let _0x109e1d=!0x0;for(const _0x3a5aaa of _0x4c8d45)if(!this['_rangeIsInLocalUserInsertion'](_0x3a5aaa)){_0x109e1d=!0x1;break;}if(_0x109e1d&&'always'!==this['_trackFormatChanges']){const _0x38adb4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x471343,'accept');return this['forceDefaultExecution'](()=>_0x38adb4(_0x36bc59,_0x2c674e,_0x363095)),null;}const _0x2581f9=this['editor']['plugins']['get']('Users')['me'];for(const _0x442963 of this['getSuggestions']()){const _0x526ea2=_0x442963['data'];if(_0x442963['author']['id']!=_0x2581f9['id'])continue;if('formatBlock'!=_0x442963['type']||_0x526ea2['formatGroupId']!=_0x2c674e['formatGroupId'])continue;if(!sn(_0x442963,_0x363095))continue;const _0x53b8c0=_0x442963['subType']==_0x471343;for(let _0x512df4=0x0;_0x512df4<_0x36bc59['length'];_0x512df4++){const _0x10eeb9=_0x36bc59[_0x512df4];for(const _0x450ee1 of _0x442963['getMarkers']()){const _0x1cbb70=_0x450ee1['getRange']();if(_0x10eeb9['isEqual'](_0x1cbb70)){_0x53b8c0?(_0x36bc59['splice'](_0x512df4,0x1),_0x512df4--):_0x442963['removeMarker'](_0x450ee1['name']);break;}}}}if(0x0==_0x36bc59['length'])return null;const _0x3b50e8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x471343,'join');for(const _0x150df9 of this['getSuggestions']()){const _0x5486b6=_0x150df9['data'];if(_0x150df9['author']['id']==_0x2581f9['id']&&('formatBlock'==_0x150df9['type']&&_0x5486b6['formatGroupId']==_0x2c674e['formatGroupId']&&_0x150df9['subType']==_0x471343&&sn(_0x150df9,_0x363095)&&(_0x3b50e8(_0x150df9['getRanges'](),_0x36bc59)||_0x3b50e8(_0x36bc59,_0x150df9['getRanges']())))){for(const _0x28d9e9 of _0x36bc59)_0x150df9['addRange'](_0x28d9e9);return _0x150df9;}}const _0x1fe07a=_0x507a09(),_0x1f9496=_0x2581f9['id'],_0x48e934='formatBlock:'+_0x471343,_0x8b8d8e=this['_setSuggestionData']({'id':_0x1fe07a,'type':_0x48e934,'data':_0x2c674e,'createdAt':new Date(),'authorId':_0x1f9496,'attributes':_0x363095});for(const _0xf5f7d5 of _0x36bc59)this['_addSuggestionMarker'](_0x48e934,_0x1fe07a,_0x1f9496,_0xf5f7d5,T['getMultiRangeId']());return _0x8b8d8e;}['markDeletion'](_0x22eaba,_0x2d8a3b=null,_0x24ab4d={}){if(_0x22eaba['isCollapsed'])return null;const _0xeaeff1=this['editor']['plugins']['get']('Users')['me'],_0x49c446=new _0x5d12c9(_0x22eaba['start'],_0x22eaba['end']);this['_trackingSessionId']&&(_0x24ab4d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1e0f09,meta:_0x42d803}of this['_findSuggestions'](_0x49c446,'insertion'))if(_0x42d803['isOwn']&&!_0x42d803['isNextTo']){if(_0x1e0f09['isMultiRange']){const _0x52c683=_0x1e0f09['getRanges']()['filter'](_0x3985a0=>'$graveyard'!=_0x3985a0['root']['rootName']);_0x52c683['every'](_0x2675dc=>_0x49c446['containsRange'](_0x2675dc,!0x0))&&_0x1e0f09['discard']();if(_0x52c683['some'](_0x54b06e=>_0x54b06e['containsRange'](_0x49c446,!0x0))){const _0x11c8d3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d8a3b,'accept');return this['forceDefaultExecution'](()=>_0x11c8d3([_0x49c446],null,_0x24ab4d)),null;}}else{const _0x3e10e3=_0x49c446['getIntersection'](_0x1e0f09['getFirstRange']());null!==_0x3e10e3&&_0x1e0f09['_onDiscard']([_0x3e10e3],null,_0x24ab4d);}}if(_0x49c446['detach'](),_0x49c446['isCollapsed']||'$graveyard'==_0x49c446['root']['rootName'])return null;let _0x40c15b=null,_0x317f68=_0x49c446['start'],_0x18dce0=_0x49c446['end'];const _0x7b2e13=this['_findSuggestions'](_0x49c446,'deletion');for(const {suggestion:_0x1c2f78,meta:_0x53bd6e}of _0x7b2e13){const _0xe74f0f=this['_model']['createRange'](_0x317f68,_0x18dce0);if(_0x53bd6e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53bd6e['containsRangeInObject']&&!_0x53bd6e['isInsideObject'])){if(_0x1c2f78['isMultiRange']){if(!sn(_0x1c2f78,_0x24ab4d))continue;let _0x2e548a=!0x0;for(const _0x1adcd8 of _0x1c2f78['getRanges']()){if(_0x1adcd8['containsRange'](_0xe74f0f,!0x0))return _0x1c2f78;_0xe74f0f['containsRange'](_0x1adcd8)||(_0x2e548a=!0x1);}_0x2e548a&&_0x1c2f78['discard']();}else{const _0x413eb1=_0x1c2f78['getFirstRange']();if(_0x413eb1['containsRange'](_0xe74f0f,!0x0))return _0x1c2f78;if(!sn(_0x1c2f78,_0x24ab4d)){_0xe74f0f['containsRange'](_0x413eb1)?_0x1c2f78['removeMarkers']():_0x413eb1['containsPosition'](_0x317f68)?_0x317f68=_0x413eb1['end']:_0x413eb1['containsPosition'](_0x18dce0)&&(_0x18dce0=_0x413eb1['start']);continue;}_0x317f68=_0x317f68['isBefore'](_0x413eb1['start'])?_0x317f68:_0x413eb1['start'],_0x18dce0=_0x18dce0['isAfter'](_0x413eb1['end'])?_0x18dce0:_0x413eb1['end'],_0x24ab4d=Object['assign']({},_0x1c2f78['attributes']),_0x40c15b?_0x413eb1['start']['isBefore'](_0x40c15b['getFirstRange']()['start'])?(_0x40c15b['removeMarkers'](),_0x40c15b=_0x1c2f78):_0x1c2f78['removeMarkers']():_0x40c15b=_0x1c2f78;}}}if(_0x40c15b)return this['_setSuggestionRange'](_0x40c15b,this['_model']['createRange'](_0x317f68,_0x18dce0)),_0x40c15b;{const _0x4cdb0a=_0x507a09(),_0x4cd6c0=this['_model']['createRange'](_0x317f68,_0x18dce0),_0x408b94=_0xeaeff1['id'],_0x47aa52=_0x2d8a3b?'deletion:'+_0x2d8a3b:'deletion',_0x205710=this['_setSuggestionData']({'id':_0x4cdb0a,'type':_0x47aa52,'createdAt':new Date(),'authorId':_0x408b94,'attributes':_0x24ab4d});return this['_addSuggestionMarker'](_0x47aa52,_0x4cdb0a,_0x408b94,_0x4cd6c0),_0x205710;}}['markMultiRangeDeletion'](_0x3a053c,_0x36adbb='multi',_0xbeec5e={}){const _0x45bf50=this['editor']['plugins']['get']('Users')['me'],_0x272bf1=_0x3a053c['map'](_0x5ec6a6=>new _0x5d12c9(_0x5ec6a6['start'],_0x5ec6a6['end'])),_0x46a576=new Set();this['_trackingSessionId']&&(_0xbeec5e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x15d249,meta:_0x2d05b6}of this['_findSuggestions'](_0x272bf1,'insertion'))_0x2d05b6['isOwn']&&!_0x2d05b6['isNextTo']&&_0x46a576['add'](_0x15d249);for(const _0x4693ba of _0x46a576)if(_0x4693ba['isMultiRange']){const _0x3ad1ab=_0x4693ba['getRanges']();(!_0x4693ba['attributes']||!_0x4693ba['attributes']['skipNestingCheck'])&&(_0x3ad1ab['every'](_0x445137=>_0x272bf1['some'](_0x4269a5=>_0x4269a5['containsRange'](_0x445137,!0x0)))&&_0x4693ba['discard']());if(_0x272bf1['every'](_0x26c98e=>_0x3ad1ab['some'](_0x41a9c6=>_0x41a9c6['containsRange'](_0x26c98e,!0x0)))){const _0x529e54=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x36adbb,'accept');return this['forceDefaultExecution'](()=>_0x529e54(_0x3a053c,null,_0xbeec5e)),null;}}else{const _0x3b6532=_0x4693ba['getFirstRange']();_0x272bf1['some'](_0x4a6d44=>_0x4a6d44['containsRange'](_0x3b6532,!0x0))&&_0x4693ba['discard']();if(_0x272bf1['every'](_0x545d18=>_0x3b6532['containsRange'](_0x545d18,!0x0))){const _0x3e736a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x36adbb,'accept');return this['forceDefaultExecution'](()=>_0x3e736a(_0x272bf1,null,_0xbeec5e)),null;}}const _0x590c3a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x36adbb,'join');let _0x2c314b=null;for(const _0x14b6c4 of this['getSuggestions']())if(_0x14b6c4['author']['id']==_0x45bf50['id']&&_0x14b6c4['isInContent']&&'deletion'==_0x14b6c4['type']&&_0x14b6c4['subType']==_0x36adbb&&sn(_0x14b6c4,_0xbeec5e)&&(_0x590c3a(_0x14b6c4['getRanges'](),_0x272bf1)||_0x590c3a(_0x272bf1,_0x14b6c4['getRanges']()))){if(_0x2c314b){if(_0x14b6c4['commentThread']&&_0x14b6c4['commentThread']['length'])continue;for(const _0x15e57a of _0x14b6c4['getRanges']())_0x2c314b['isIntersectingWithRange'](_0x15e57a)||_0x2c314b['addRange'](_0x15e57a);_0x14b6c4['removeMarkers']();}else{_0x2c314b=_0x14b6c4;for(const _0x4ec044 of _0x272bf1)_0x14b6c4['isIntersectingWithRange'](_0x4ec044)||_0x14b6c4['addRange'](_0x4ec044);}}if(_0x2c314b)return _0x2c314b;_0x46a576['clear']();for(const {suggestion:_0x3923c4,meta:_0x59fad6}of this['_findSuggestions'](_0x272bf1,'deletion'))_0x59fad6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x59fad6['containsRangeInObject']&&!_0x59fad6['isInsideObject'])&&sn(_0x3923c4,_0xbeec5e)&&_0x46a576['add'](_0x3923c4);for(const _0x33ee48 of _0x46a576){const _0x107603=_0x33ee48['getRanges']();if(!_0xbeec5e||!_0xbeec5e['skipNestingCheck']){if(_0x272bf1['every'](_0x26bfef=>_0x107603['some'](_0x32a4ae=>_0x32a4ae['containsRange'](_0x26bfef,!0x0))))return _0x33ee48;}(!_0x33ee48['attributes']||!_0x33ee48['attributes']['skipNestingCheck'])&&(_0x107603['every'](_0xdf45b5=>_0x272bf1['some'](_0x479d31=>_0x479d31['containsRange'](_0xdf45b5,!0x0)))&&_0x33ee48['discard']());}const _0x406619=_0x507a09(),_0x5cb03c=_0x45bf50['id'],_0x2fc826='deletion:'+_0x36adbb,_0x2cfbe8=this['_setSuggestionData']({'id':_0x406619,'type':_0x2fc826,'createdAt':new Date(),'authorId':_0x5cb03c,'attributes':_0xbeec5e});for(const _0x31626c of _0x272bf1)_0x31626c['detach'](),_0x31626c['isCollapsed']||'$graveyard'==_0x31626c['root']['rootName']||this['_addSuggestionMarker'](_0x2fc826,_0x406619,_0x5cb03c,_0x31626c,T['getMultiRangeId']());return _0x2cfbe8;}['markAttributeChange'](_0x33c837,_0x424f54,_0x55054b,_0x2a7c00,_0x12f073){if(_0x33c837['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5deb8f=this['editor']['plugins']['get']('Users')['me']['id'],_0x34c1b2=Array['from'](this['_suggestions']['values']())['filter'](_0x4bf4ff=>'attribute'==_0x4bf4ff['type']&&_0x4bf4ff['data']['key']==_0x424f54&&_0x4bf4ff['isIntersectingWithRange'](_0x33c837));if(this['_trackingSessionId']&&(_0x12f073['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4eac8f=this['_findSuggestions'](_0x33c837,'insertion')['filter'](({meta:_0x5385b9})=>_0x5385b9['isOwn']&&!_0x5385b9['isInsideObject']&&!_0x5385b9['isNextTo'])['map'](({suggestion:_0x5aab91})=>_0x5aab91);_0x34c1b2['unshift'](..._0x4eac8f);}const _0x1ff376=new Map([[_0x33c837,_0x55054b]]);for(const _0x4b3ab7 of _0x34c1b2){const _0x2b03fd='attribute'==_0x4b3ab7['type']?_0x4b3ab7['data']['oldValue']:void 0x0,_0x6d9761=_0x4b3ab7['getFirstRange'](),_0x2c5f6f=Array['from'](_0x1ff376['keys']())['find'](_0x2d3641=>_0x2d3641['isIntersecting'](_0x6d9761));if(!_0x2c5f6f)continue;const _0x555fca=_0x2c5f6f['getDifference'](_0x6d9761);this['_isBlockAttribute'](_0x424f54)&&'insertion'==_0x4b3ab7['type']&&0x0!=_0x555fca['length']||(_0x1ff376['delete'](_0x2c5f6f),_0x555fca['forEach'](_0x352e19=>{_0x1ff376['set'](_0x352e19,_0x55054b);}),'insertion'!=_0x4b3ab7['type']&&_0x2b03fd!=_0x2a7c00&&_0x1ff376['set'](_0x2c5f6f['getIntersection'](_0x6d9761),_0x2b03fd));}const _0x10c86d=[];for(const [_0xaec8cd,_0x5c2638]of _0x1ff376){const _0x2d2bf0=_0x507a09(),_0x197628={'key':_0x424f54,'oldValue':_0x5c2638,'newValue':_0x2a7c00};_0x424f54['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':_0x424f54});const _0x175489=('attribute:'+(_0x424f54+'|'+Ht({'newValue':_0x2a7c00})))['substring'](0x0,0x3c),_0x13bded=this['_setSuggestionData']({'id':_0x2d2bf0,'type':_0x175489,'data':_0x197628,'createdAt':new Date(),'authorId':_0x5deb8f,'attributes':_0x12f073});_0x10c86d['push'](_0x13bded),this['_addSuggestionMarker'](_0x175489,_0x2d2bf0,_0x5deb8f,_0xaec8cd);}return _0x10c86d;}['enableDefaultAttributesIntegration'](_0x1132f2){this['enableCommand'](_0x1132f2,(_0x5a10da,..._0x181d91)=>{this['recordAttributeChanges'](()=>{_0x5a10da(..._0x181d91);});});}['registerBlockAttribute'](_0x53725b){this['editor']['plugins']['get'](_0x321259)['registerBlockAttribute'](_0x53725b);}['registerInlineAttribute'](_0xc1da65){this['editor']['plugins']['get'](_0x321259)['registerInlineAttribute'](_0xc1da65);}['startTrackingSession'](_0x261564){return this['_trackingSessionId']=void 0x0!==_0x261564?_0x261564:_0x507a09(),this['_trackingSessionId'];}['_getAttributeKey'](_0x594a9d){return'attribute'==_0x594a9d['type']?_0x594a9d['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x596d06){if(0x0==_0x596d06['length'])return;const _0x3f268b=this['editor'],_0x228a96=_0x3f268b['plugins']['get'](_0x22aaf0),_0x50de45=[];_0x3f268b['model']['change'](_0x52bc29=>{for(let _0x47d2c7=0x0;_0x47d2c7<_0x596d06['length'];_0x47d2c7++){const _0x1e2b44=_0x596d06[_0x47d2c7];if(_0x1e2b44['baseVersion']=_0x3f268b['model']['document']['version'],_0x1e2b44['isDocumentOperation']=!0x0,_0x228a96['isMarkedRemoveOperation'](_0x1e2b44)){const _0x2d7a85=_0x34d940(_0x1e2b44['newRange'],_0x3f268b['model']);_0x50de45['unshift'](_0x5d12c9['fromRange'](_0x2d7a85));}else switch(_0x1e2b44['type']){case'rename':{const _0x4c3ab8=_0x1e2b44['oldName'],_0x1d7e81=_0x1e2b44['newName'];if(_0x4c3ab8==_0x1d7e81)break;_0x52bc29['batch']['addOperation'](_0x1e2b44),_0x3f268b['model']['applyOperation'](_0x1e2b44);const _0x5676a1='$elementName',_0x31f86d=_0x1e2b44['position'],_0x3e7bc9=_0x3f268b['model']['createRange'](_0x31f86d,_0x3f268b['model']['createPositionAt'](_0x31f86d['nodeAfter'],'end'));this['markAttributeChange'](_0x3e7bc9,_0x5676a1,_0x4c3ab8,_0x1d7e81,{'groupId':_0x507a09()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xaa77ff=_0x1e2b44['oldValue'],_0x468cf5=_0x1e2b44['newValue'];if(_0xaa77ff==_0x468cf5)break;_0x52bc29['batch']['addOperation'](_0x1e2b44),_0x3f268b['model']['applyOperation'](_0x1e2b44);const _0x13e140=_0x1e2b44['key'];if(!this['_isRegisteredAttribute'](_0x13e140))break;const _0x20c04c=_0x34d940(_0x1e2b44['range'],_0x3f268b['model']);this['markAttributeChange'](_0x20c04c,_0x13e140,_0xaa77ff,_0x468cf5,{'groupId':_0x507a09()});break;}case'insert':{_0x52bc29['batch']['addOperation'](_0x1e2b44),_0x3f268b['model']['applyOperation'](_0x1e2b44);if(_0x596d06[_0x47d2c7+0x1]&&'move'==_0x596d06[_0x47d2c7+0x1]['type'])break;const _0x43ce07=_0x1e2b44['position'],_0xf8cc25=_0x1e2b44['howMany'],_0x3eba67=_0x34d940(_0x3f268b['model']['createRange'](_0x43ce07,_0x43ce07['getShiftedBy'](_0xf8cc25)),_0x3f268b['model']);this['markInsertion'](_0x3eba67);break;}case'split':{_0x52bc29['batch']['addOperation'](_0x1e2b44),_0x3f268b['model']['applyOperation'](_0x1e2b44);const _0x154567=_0x1e2b44['splitPosition'],_0x1ed3ba=_0x1e2b44['moveTargetPosition'];this['markInsertion'](_0x3f268b['model']['createRange'](_0x154567,_0x1ed3ba));break;}case'move':case'remove':_0x52bc29['batch']['addOperation'](_0x1e2b44),_0x3f268b['model']['applyOperation'](_0x1e2b44);}}for(const _0x129ba5 of _0x50de45)_0x129ba5['detach'](),this['markDeletion'](_0x129ba5);});}['_setSuggestionRange'](_0x4897e5,_0x28069b){const _0x526cbc=_0x4897e5['getFirstMarker']();this['_model']['change'](_0x569f21=>{_0x569f21['updateMarker'](_0x526cbc,{'range':_0x28069b});});}['_addThreadToSuggestion'](_0x558eca){const _0x22f925=_0x558eca['id'],_0x41d8c9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x22f925)||this['_commentsRepository']['addCommentThread']({'channelId':_0x41d8c9,'threadId':_0x22f925,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4066d6=this['_commentsRepository']['getCommentThread'](_0x22f925);_0x4066d6['unbind']('isRemovable'),_0x4066d6['isRemovable']=!0x1,_0x558eca['commentThread']=_0x4066d6;}['_checkSuggestionCorrectness'](_0x256fd8,_0x4c06eb,_0x38b749,_0x34b013){if(_0x256fd8['type']!=_0x4c06eb||_0x256fd8['subType']!=_0x38b749||_0x256fd8['creator']['id']!=_0x34b013)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x14cf5c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1ff416,_0x3603f3){const _0x4452f1=_0x1ff416['getFirstRange']();if(_0x3603f3['isEqual'](_0x4452f1))_0x1ff416['removeMarkers']();else{if(_0x4452f1['containsRange'](_0x3603f3)){const _0x5e8904=this['_model']['createPositionAt'](_0x3603f3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ff416,this['_model']['createRange'](_0x4452f1['start'],_0x5e8904));const _0x1e1fcb=_0x507a09(),_0x214ffb=_0x1ff416['creator']['id'],_0x113e8c=_0x1ff416['type']+':'+_0x1ff416['subType'];this['_setSuggestionData']({'id':_0x1e1fcb,'type':_0x113e8c,'createdAt':new Date(),'authorId':_0x214ffb,'data':_0x1ff416['data'],'attributes':_0x1ff416['attributes']});const _0x11e784=this['_model']['createPositionAt'](_0x3603f3['end']['parent'],'after'),_0x58b047=this['_model']['createRange'](_0x11e784,_0x4452f1['end']);this['_addSuggestionMarker'](_0x113e8c,_0x1e1fcb,_0x214ffb,_0x58b047);}else{if(_0x4452f1['containsPosition'](_0x3603f3['start'])){const _0x5832f5=this['_model']['createPositionAt'](_0x3603f3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ff416,this['_model']['createRange'](_0x4452f1['start'],_0x5832f5));}else{const _0x1c0cde=this['_model']['createPositionAt'](_0x3603f3['end']['parent'],'after');this['_setSuggestionRange'](_0x1ff416,this['_model']['createRange'](_0x1c0cde,_0x4452f1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x557069){for(const {suggestion:_0x10ab3a,meta:_0x55b216}of this['_findSuggestions'](_0x557069,'insertion')){if(!_0x55b216['isOwn'])continue;const _0xf89ceb=_0x10ab3a['getRanges']();for(const _0x2c2de8 of _0xf89ceb)if(!_0x557069['getDifference'](_0x2c2de8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5cd757){return this['editor']['plugins']['get']('Users')['getUser'](_0x5cd757);}['_getExternalAuthor'](_0x27127d){const _0x2c16b0=this['editor']['plugins']['get']('Users'),_0x3b79c4=_0x4590a1('external:'+_0x27127d),_0x1dc5f5=_0x2c16b0['getUser'](_0x3b79c4);return _0x1dc5f5||_0x2c16b0['addUser']({'id':_0x3b79c4,'name':_0x27127d});}['_createSuggestion'](_0x143fc6,_0x7be5de,_0x373a84,_0x2acca9,_0x32c64b,_0x5c7db6){const _0x45ff13=this['_getAuthorFromId'](_0x2acca9);if(!_0x45ff13)throw new _0x14cf5c('track-changes-user-not-found',this,{'authorId':_0x2acca9,'suggestionId':_0x373a84});const _0x9411c=this['_suggestionFactory']['buildSuggestion'](_0x143fc6,_0x7be5de,_0x373a84,_0x45ff13,_0x32c64b,_0x34ce83=>{this['_updateSuggestionData'](_0x373a84,{'attributes':_0x34ce83});const _0xef0761=this['getSuggestion'](_0x373a84);this['_joinWithAdjacentSuggestions'](new Set([_0xef0761])),this['_refreshSuggestionsChain'](new Set([_0xef0761]));},_0x5c7db6);return this['listenTo'](_0x9411c,'accept',()=>{this['_updateSuggestionData'](_0x373a84,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x9411c,'discard',()=>{this['_updateSuggestionData'](_0x373a84,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x373a84,_0x9411c),this['_suggestionState']['set'](_0x9411c,'notReady'),_0x9411c;}['_splitMarkerName'](_0x2f28ed){return _0x35735f(_0x2f28ed);}['_breakSuggestionMarker'](_0x74fd63,_0x2271bf,_0x543f1e){const _0x11be74=_0x74fd63['getFirstRange'](),_0x23f29f=_0x11be74['start'],_0xd6d4d9=_0x11be74['end'];this['_setSuggestionRange'](_0x74fd63,this['_model']['createRange'](_0x23f29f,_0x2271bf));const _0x23f72d=_0x507a09(),_0x454c50=_0x74fd63['creator']['id'],_0x39d254=_0x74fd63['type']+(_0x74fd63['subType']?':'+_0x74fd63['subType']:'');this['_setSuggestionData']({'id':_0x23f72d,'type':_0x39d254,'createdAt':new Date(),'authorId':_0x454c50,'originalSuggestionId':_0x74fd63['_originalSuggestionId']||_0x74fd63['id'],'attributes':_0x74fd63['attributes'],'data':_0x74fd63['data']});const _0xe332d4=this['_getAttributeKey'](_0x74fd63);('formatBlock'==_0x74fd63['type']||_0xe332d4&&this['_isBlockAttribute'](_0xe332d4))&&(_0x543f1e=this['_model']['createPositionBefore'](_0x543f1e['parent'])),this['_addSuggestionMarker'](_0x39d254,_0x23f72d,_0x454c50,this['_model']['createRange'](_0x543f1e,_0xd6d4d9));}['_findSuggestions'](_0x4ea840,_0x5ac556=null){const _0x44a9c9=[],_0x4a6491=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4ea840)||(_0x4ea840=[_0x4ea840]);for(const _0x5ac39d of this['getSuggestions']()){if(!_0x5ac39d['isInContent'])continue;if(_0x5ac556&&_0x5ac39d['type']!=_0x5ac556)continue;let _0x58e8d9=!0x1;for(const _0x1181b9 of _0x5ac39d['getRanges']()){for(const _0x334a1f of _0x4ea840){const _0x17eb91=_0x334a1f['start']['isEqual'](_0x1181b9['end'])||_0x334a1f['end']['isEqual'](_0x1181b9['start']);if(_0x17eb91||_0x334a1f['getIntersection'](_0x1181b9)){const _0x4d44a4=_0x334a1f['containsRange'](_0x1181b9)&&zt(this['_model']['schema'],_0x1181b9['start'],_0x334a1f),_0x23141c=_0x1181b9['containsRange'](_0x334a1f)&&zt(this['_model']['schema'],_0x334a1f['start'],_0x1181b9);_0x44a9c9['push']({'suggestion':_0x5ac39d,'meta':{'isOwn':_0x4a6491==_0x5ac39d['author'],'isNextTo':_0x17eb91,'isInsideObject':_0x4d44a4,'containsRangeInObject':_0x23141c}}),_0x58e8d9=!0x0;break;}}if(_0x58e8d9)break;}}return _0x44a9c9;}['_addSuggestionMarker'](_0x11edb8,_0x166c1f,_0x5967dd,_0x2d06b0,_0x28fad3){this['_model']['change'](_0x34f6fd=>{let _0x30dd53='suggestion:'+_0x11edb8+':'+_0x166c1f+':'+_0x5967dd;_0x28fad3&&(_0x30dd53=_0x30dd53+':'+_0x28fad3),_0x34f6fd['addMarker'](_0x30dd53,{'range':_0x2d06b0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5bd4ec){const _0x28fe7b=_0x5bd4ec['previous'],_0x180479=_0x5bd4ec['next'];_0x5bd4ec['previous']=null,_0x5bd4ec['next']=null,null!=_0x28fe7b&&_0x28fe7b['next']==_0x5bd4ec&&(_0x28fe7b['next']=_0x180479),null!=_0x180479&&_0x180479['previous']==_0x5bd4ec&&(_0x180479['previous']=_0x28fe7b),'ready'==this['_suggestionState']['get'](_0x5bd4ec)&&(this['_suggestionState']['set'](_0x5bd4ec,'removed'),this['fire']('suggestionUnloaded',_0x5bd4ec,_0x28fe7b,_0x180479));}['_setSuggestionData'](_0x18ae35){const _0x2b1569=_0x18ae35['id'],_0x3b2e4b=this['addSuggestionData'](_0x18ae35);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x93f6d7=this['editor']['plugins']['get']('PendingActions'),_0x578551=_0x3b2e4b['hasComments'],_0x1ba915=_0x3b2e4b['subType']?_0x3b2e4b['type']+':'+_0x3b2e4b['subType']:_0x3b2e4b['type'],_0x57057b=this['editor']['locale'],_0x3478be=_0x93f6d7['add'](o(_0x57057b,'PENDING_ACTION_SUGGESTION')),_0x1d476f={'id':_0x2b1569,'type':_0x1ba915,'hasComments':_0x578551,'data':_0x18ae35['data']||null,'originalSuggestionId':_0x18ae35['originalSuggestionId']||null,'attributes':_0x3b2e4b['attributes']};this['_adapter']['addSuggestion'](_0x1d476f)['then'](_0x8171d=>{_0x3b2e4b['_saved']=!0x0,_0x93f6d7['remove'](_0x3478be),_0x8171d&&_0x8171d['createdAt']&&(this['_suggestions']['get'](_0x2b1569)['createdAt']=_0x8171d['createdAt']);})['catch'](_0x58aac3=>{throw _0x3596a7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b2e4b['discard']();}),_0x3b2e4b['stopListening'](),this['_suggestions']['delete'](_0x3b2e4b['id']),this['_suggestionState']['delete'](_0x3b2e4b),_0x58aac3;});}return _0x3b2e4b;}['_isBlockAttribute'](_0x27da64){return this['editor']['plugins']['get'](_0x321259)['isBlockAttribute'](_0x27da64);}['_isInlineAttribute'](_0x3b6502){return this['editor']['plugins']['get'](_0x321259)['isInlineAttribute'](_0x3b6502);}['_updateSuggestionData'](_0x1dbfe8,_0x115ef3){const _0x10fd55=this['editor']['plugins']['get']('PendingActions'),_0x32c848=this['getSuggestion'](_0x1dbfe8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x32c848['_saved']){const _0x2baf29=_0x10fd55['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1dbfe8,_0x115ef3)['then'](()=>{_0x10fd55['remove'](_0x2baf29);});}else _0x32c848['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1dbfe8,_0x115ef3);});}}['_getSuggestionData'](_0x50f3f3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x14cf5c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50f3f3);}['_handleNewSuggestionMarker'](_0x3aed86){const {id:_0x12531c,type:_0x549212,subType:_0x2665d7,authorId:_0x239ba0}=this['_splitMarkerName'](_0x3aed86),_0x2ff93b=this['_suggestions']['get'](_0x12531c)||this['_createSuggestion'](_0x549212,_0x2665d7,_0x12531c,_0x239ba0,{});switch(this['_checkSuggestionCorrectness'](_0x2ff93b,_0x549212,_0x2665d7,_0x239ba0),this['_suggestionState']['get'](_0x2ff93b)){case'notReady':this['_getSuggestionData'](_0x12531c)['then'](_0x2c7a33=>{let _0x28d498=Promise['resolve']();_0x2c7a33['hasComments']&&(_0x28d498=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x12531c})),_0x28d498['then'](()=>{this['addSuggestionData'](_0x2c7a33)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2ff93b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x12531c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2ff93b,'ready'),this['fire']('suggestionLoaded',_0x2ff93b);break;case'ready':this['fire']('suggestionChanged',_0x2ff93b);}return _0x2ff93b['addMarkerName'](_0x3aed86),_0x2ff93b;}['_refreshSuggestionsChain'](_0x2e1b95){const _0x1af93c=Array['from'](_0x2e1b95),_0x265de7=_0x1af93c['filter'](_0x28578c=>'attribute'==_0x28578c['type']);this['_refreshAttributeSuggestionsChain'](_0x265de7);const _0x5ac91c=_0x1af93c['filter'](_0x112ba5=>!_0x112ba5['isMultiRange']&&'attribute'!=_0x112ba5['type']),_0x5c2717=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51640c=>!_0x51640c['isMultiRange']&&'attribute'!=_0x51640c['type']),_0x6760a3=_0x5c2717['filter'](_0x3db64c=>!_0x2e1b95['has'](_0x3db64c)),_0x526abe=new Map(_0x5c2717['map'](_0x52051a=>[_0x52051a,this['_suggestionFactory']['getSuggestionCallback'](_0x52051a['type'],_0x52051a['subType'],'chain')])),_0x2e7798=new Map(_0x5c2717['map'](_0x252091=>[_0x252091,_0x252091['getFirstRange']()])),_0x32ebca=new Set(),_0x374d62=new Set();for(let _0x31c104=0x0;_0x31c104<_0x5ac91c['length'];_0x31c104++)_0x1ab7be(_0x5ac91c[_0x31c104],_0x5ac91c,_0x31c104+0x1);for(let _0x2fdb77=0x0;_0x2fdb77<_0x5ac91c['length'];_0x2fdb77++)_0x1ab7be(_0x5ac91c[_0x2fdb77],_0x6760a3,0x0);const _0x3c660f=new Set();for(let _0x315a13=0x0;_0x315a13<_0x5ac91c['length'];_0x315a13++){const _0x6d1d6f=_0x5ac91c[_0x315a13];!_0x374d62['has'](_0x6d1d6f)&&_0x6d1d6f['previous']&&(_0x3c660f['add'](_0x6d1d6f['previous']),_0x6d1d6f['previous']['next']===_0x6d1d6f&&(_0x6d1d6f['previous']['next']=null),_0x6d1d6f['previous']=null),!_0x32ebca['has'](_0x6d1d6f)&&_0x6d1d6f['next']&&(_0x3c660f['add'](_0x6d1d6f['next']),_0x6d1d6f['next']['previous']===_0x6d1d6f&&(_0x6d1d6f['next']['previous']=null),_0x6d1d6f['next']=null);}function _0x1ab7be(_0x24d29d,_0x30b62e,_0x54d29a){for(let _0x19ecb6=_0x54d29a;_0x19ecb6<_0x30b62e['length'];_0x19ecb6++){const _0x37d20d=_0x3f5e19(_0x24d29d,_0x30b62e[_0x19ecb6]);_0x37d20d&&(_0x37d20d[0x0]['next']=_0x37d20d[0x1],_0x37d20d[0x1]['previous']=_0x37d20d[0x0],_0x32ebca['add'](_0x37d20d[0x0]),_0x374d62['add'](_0x37d20d[0x1]));}}function _0x3f5e19(_0x549540,_0x3b1851){if(_0x549540['author']['id']!==_0x3b1851['author']['id'])return null;const _0x5184da=_0x526abe['get'](_0x549540)(_0x549540,_0x3b1851,_0x2e7798['get'](_0x549540),_0x2e7798['get'](_0x3b1851));if(!_0x5184da)return null;return _0x526abe['get'](_0x3b1851)(_0x549540,_0x3b1851,_0x2e7798['get'](_0x549540),_0x2e7798['get'](_0x3b1851))?_0x5184da[0x1]['commentThread']&&_0x5184da[0x1]['commentThread']['length']?null:_0x5184da:null;}_0x3c660f['size']&&this['_refreshSuggestionsChain'](_0x3c660f);}['_refreshAttributeSuggestionsChain'](_0x34cfe9){if(0x0==_0x34cfe9['length'])return;const _0x480bfc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c1235=>'attribute'==_0x4c1235['type']&&_0x4c1235['_isDataLoaded']),_0x1d79af=[],_0x4f664d=new Map();for(const _0x402d82 of _0x480bfc){const _0x6cb31b=_0x4590a1(_0x402d82['attributes']);_0x4f664d['has'](_0x6cb31b)||(_0x4f664d['set'](_0x6cb31b,_0x1d79af['length']),_0x1d79af['push']([]));const _0x21d797=_0x4f664d['get'](_0x6cb31b);_0x1d79af[_0x21d797]['push'](_0x402d82);}!(function(){_0x1d79af['sort']((_0x5451e1,_0x50db1b)=>{const _0x2ffc84=_0x5451e1[0x0]['createdAt'],_0x4239c8=_0x50db1b[0x0]['createdAt'];return _0x2ffc84==_0x4239c8?_0x5451e1[0x0]['attributes']['groupId']<_0x50db1b[0x0]['attributes']['groupId']?-0x1:0x1:_0x2ffc84<_0x4239c8?-0x1:0x1;});for(const _0x20ab9e of _0x1d79af)_0x20ab9e['sort']((_0xd029bc,_0x2ad616)=>_0xd029bc['id']<_0x2ad616['id']?-0x1:0x1);}());for(let _0x52c38b=0x0;_0x52c38b<_0x1d79af['length'];_0x52c38b++){if(0x0==_0x1d79af[_0x52c38b]['length'])continue;const _0xe8a385=[];for(let _0xf19203=_0x52c38b+0x1;_0xf19203<_0x1d79af['length'];_0xf19203++)0x0!=_0x1d79af[_0xf19203]['length']&&_0x374989(_0x1d79af[_0x52c38b],_0x1d79af[_0xf19203])&&_0xe8a385['push'](_0xf19203);for(const _0x2392f7 of _0xe8a385)_0x1d79af[_0x52c38b]=_0x1d79af[_0x52c38b]['concat'](_0x1d79af[_0x2392f7]),_0x1d79af[_0x2392f7]=[];}for(const _0x5b12fb of _0x1d79af)for(let _0x14fd28=0x0;_0x14fd28<_0x5b12fb['length'];_0x14fd28++){const _0x50ff00=_0x5b12fb[_0x14fd28+0x1]||null;_0x5b12fb[_0x14fd28]['next']!==_0x50ff00&&(_0x5b12fb[_0x14fd28]['next']=_0x50ff00);}for(const _0x1c3dd2 of _0x1d79af)for(let _0x2f9509=0x0;_0x2f9509<_0x1c3dd2['length'];_0x2f9509++){const _0x287a06=_0x1c3dd2[_0x2f9509-0x1]||null;_0x1c3dd2[_0x2f9509]['previous']!==_0x287a06&&(_0x1c3dd2[_0x2f9509]['previous']=_0x287a06);}function _0x374989(_0x2a3109,_0x22abe9){if(_0x2a3109[0x0]['attributes']['groupId']!==_0x22abe9[0x0]['attributes']['groupId']&&_0x2a3109[0x0]['author']!==_0x22abe9[0x0]['author'])return!0x1;if(!function(_0x1c42e4,_0x2f372f){if(!_0x1c42e4['hasComments']&&!_0x2f372f['hasComments'])return!0x0;if(_0x1c42e4['hasComments']&&_0x2f372f['hasComments'])return!0x1;if(_0x1c42e4['hasComments']&&_0x2f372f['createdAt']<_0x1c42e4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2f372f['hasComments']&&_0x1c42e4['createdAt']<_0x2f372f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2a3109[0x0],_0x22abe9[0x0]))return!0x1;const _0x165445=Jt(_0x2a3109[0x0]['attributes'],['groupId','trackingSessionId']),_0x2f3a9c=Jt(_0x22abe9[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x41a4ca(_0x165445,_0x2f3a9c))return!0x1;if(_0x2a3109[0x0]['attributes']['groupId']==_0x22abe9[0x0]['attributes']['groupId'])return!0x0;if(_0x2a3109[0x0]['attributes']['trackingSessionId']!==_0x22abe9[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2a3109['every'](_0x1a9456=>_0x22abe9['some'](_0x3067ec=>_0x1a9456['getFirstRange']()['isEqual'](_0x3067ec['getFirstRange']())))&&_0x22abe9['every'](_0x472318=>_0x2a3109['some'](_0x31197b=>_0x472318['getFirstRange']()['isEqual'](_0x31197b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5ad6bf){const _0x3890ee=Array['from'](_0x5ad6bf),_0x3ea7db=this['getSuggestions']({'skipNotAttached':!0x0}),_0x47df07=_0x3ea7db['filter'](_0x2f2715=>!_0x5ad6bf['has'](_0x2f2715)),_0x50e3e4=new Map(_0x3890ee['map'](_0x60d189=>[_0x60d189,this['_suggestionFactory']['getSuggestionCallback'](_0x60d189['type'],_0x60d189['subType'],'join')])),_0xc11509=new Map(_0x3ea7db['map'](_0x276dc2=>[_0x276dc2,_0x276dc2['getRanges']()]));for(let _0x228536=0x0;_0x228536<_0x3890ee['length'];_0x228536++){if(_0x315770(this,_0x3890ee[_0x228536],_0x3890ee,_0x228536+0x1))return!0x0;}for(let _0x32d718=0x0;_0x32d718<_0x3890ee['length'];_0x32d718++){if(_0x315770(this,_0x3890ee[_0x32d718],_0x47df07,0x0))return!0x0;}return!0x1;function _0x315770(_0x4aeb70,_0x4e1904,_0x3cc12d,_0x5759c2){for(let _0x482415=_0x5759c2;_0x482415<_0x3cc12d['length'];_0x482415++){const _0x384cc9=_0x3cc12d[_0x482415];if(_0x384cc9['type']!==_0x4e1904['type']||_0x384cc9['author']['id']!==_0x4e1904['author']['id']||_0x384cc9['subType']!==_0x4e1904['subType'])continue;if(!en(_0x4e1904,_0x384cc9))continue;if('attribute'==_0x4e1904['type']&&_0x4e1904['data']['oldValue']!=_0x384cc9['data']['oldValue'])continue;if('attribute'==_0x4e1904['type']&&_0x4aeb70['_isBlockAttribute'](_0x4e1904['data']['key']))continue;if('formatBlock'==_0x4e1904['type']){const _0x1835aa=_0x4aeb70['editor']['model'],_0x2f9cac=_0x4e1904['getContainedElement']();if(_0x2f9cac&&(_0x1835aa['schema']['isObject'](_0x2f9cac)||_0x1835aa['schema']['isLimit'](_0x2f9cac)))continue;}const _0x2f116e=_0x50e3e4['get'](_0x4e1904),_0x3a0896=_0xc11509['get'](_0x4e1904),_0x573f3e=_0xc11509['get'](_0x384cc9),_0x1ee5d5=_0x4e1904['commentThread']&&_0x4e1904['commentThread']['length'],_0x54e32c=_0x384cc9['commentThread']&&_0x384cc9['commentThread']['length'];if(!_0x1ee5d5&&_0x2f116e(_0x573f3e,_0x3a0896))return _0x4aeb70['_joinSuggestions'](_0x384cc9,_0x4e1904),_0xc11509['delete'](_0x4e1904),!0x0;if(!_0x54e32c&&_0x2f116e(_0x3a0896,_0x573f3e))return _0x4aeb70['_joinSuggestions'](_0x4e1904,_0x384cc9),_0xc11509['delete'](_0x384cc9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x88a5de,_0x5df944){if(_0x88a5de['isMultiRange']){for(const _0x398c76 of _0x5df944['getRanges']())_0x88a5de['addRange'](_0x398c76);}else{const _0x58ba0b=_0x5df944['getFirstRange']()['end'];this['_setSuggestionRange'](_0x88a5de,this['_model']['createRange'](_0x88a5de['getFirstRange']()['start'],_0x58ba0b));}_0x5df944['removeMarkers']();}['_getMarkerAnnouncementText'](_0x43147e,_0x348a33,_0x21dcad){const _0x2d4fe3=_0x43147e['startsWith']('format')||_0x43147e['startsWith']('attribute')?'FORMATTING':_0x43147e['toUpperCase']();return o(this['editor']['locale'],_0x348a33+'_'+_0x2d4fe3+'_SUGGESTION_ANNOUNCEMENT',_0x21dcad);}['_initAriaMarkerChangeAnnouncements'](){const _0x13ed1d=this['editor'];if(!_0x13ed1d['ui'])return;const {ariaLiveAnnouncer:_0x1797f6}=_0x13ed1d['ui'];_0x47accf(this['_model'],({left:_0x1a00bd,entered:_0x54ecef})=>{for(const _0x3ed44a of _0x1a00bd){const {group:_0x5d1383,type:_0x573dab}=this['_splitMarkerName'](_0x3ed44a['name']);if('suggestion'===_0x5d1383){_0x1797f6['announce'](this['_getMarkerAnnouncementText'](_0x573dab,'LEAVE'));break;}}for(const _0x3b6678 of _0x54ecef){const {group:_0x16caf5,type:_0xdcfb61}=this['_splitMarkerName'](_0x3b6678['name']);if('suggestion'===_0x16caf5){_0x1797f6['announce'](this['_getMarkerAnnouncementText'](_0xdcfb61,'ENTER',_0x4edabd(_0xd78f29)));break;}}});}['_processAttributeChanges'](_0x4298f5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4f2044=this['editor'],_0xf3ff83=_0x4f2044['model']['document']['differ']['getChanges']();if(0x0==_0xf3ff83['length'])return!0x1;const _0x30eb2d=[],_0x23b34b=_0xf3ff83['filter'](_0x3a724c=>'attribute'==_0x3a724c['type']),_0x10fa59=_0xf3ff83['filter'](_0x36ed1c=>'insert'==_0x36ed1c['type']&&'$text'!=_0x36ed1c['name']),_0x37595a=_0xf3ff83['filter'](_0x248711=>'remove'==_0x248711['type']&&'$text'!=_0x248711['name']);for(const _0x366751 of _0x23b34b)_0x30eb2d['push']({'key':_0x366751['attributeKey'],'newValue':_0x366751['attributeNewValue'],'oldValue':_0x366751['attributeOldValue'],'range':Zt(_0x366751['range'],_0x4f2044['model'])});for(const _0x398253 of _0x10fa59){const _0x421856=_0x37595a['find'](_0x43a58c=>_0x43a58c['position']['isEqual'](_0x398253['position']));_0x421856&&_0x30eb2d['push']({'key':m,'newValue':_0x398253['name'],'oldValue':_0x421856['name'],'range':_0x4f2044['model']['createRangeOn'](_0x398253['position']['nodeAfter'])});}return 0x0!=_0x30eb2d['length']&&this['_reduceExistingSuggestions'](_0x4298f5,_0x30eb2d);}['_processAttributeSuggestions'](_0xf87a5f){let _0x4d85af=!0x1;const _0x2da135=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x514b5b=>_0x514b5b['data']['newRange']&&_0x514b5b['name']['startsWith']('suggestion:attribute:'));for(const _0x4151c7 of _0x2da135){const {subType:_0x2b1ab0,id:_0x47ae6a}=this['_splitMarkerName'](_0x4151c7['name']),_0x1e78dc=_0x2b1ab0['split']('|')[0x0];for(const _0x5d5111 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5d5111['id']!=_0x47ae6a&&'attribute'==_0x5d5111['type']&&_0x5d5111['data']&&_0x5d5111['data']['key']==_0x1e78dc&&_0x5d5111['getFirstRange']()['isIntersecting'](_0x4151c7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5d5111,_0x4151c7['data']['newRange'],_0xf87a5f),_0x4d85af=!0x0);}return _0x4d85af;}['recordAttributeChanges'](_0x2d31ea){this['_recordAttributeSuggestions']=!0x0,_0x2d31ea();}['_isRegisteredAttribute'](_0x2d7494){return this['editor']['plugins']['get'](_0x321259)['isRegisteredAttribute'](_0x2d7494);}['_reduceExistingSuggestions'](_0x1d8516,_0x29175f){if(0x0==_0x29175f['length'])return!0x1;let _0x4ad4a2=!0x1;for(const _0xd0fbcc of _0x29175f){const _0x77cc8=this['_findSuggestions'](_0xd0fbcc['range'],'attribute')['filter'](_0x2e7a3f=>!_0x2e7a3f['meta']['isNextTo'])['map'](_0x13a6ea=>_0x13a6ea['suggestion']),_0xfa8f46=_0x4590a1({'newValue':_0xd0fbcc['newValue']});_0x77cc8['filter'](_0x3c2dd9=>{const [_0xa947b,_0x1a9a16]=_0x3c2dd9['subType']['split']('|');return _0xa947b==_0xd0fbcc['key']&&_0x1a9a16!=_0xfa8f46;})['forEach'](_0x4da776=>{this['_reduceSuggestionAttributeRange'](_0x4da776,_0xd0fbcc['range'],_0x1d8516),_0x4ad4a2=!0x0;});}return _0x4ad4a2;}['_reduceSuggestionAttributeRange'](_0xe8a61,_0x13f712,_0x24f397){const _0x53ab24=_0xe8a61['getFirstRange']()['getDifference'](_0x13f712);0x0!==_0x53ab24['length']?0x1!==_0x53ab24['length']?this['_breakSuggestionMarker'](_0xe8a61,_0x13f712['start'],_0x13f712['end']):this['_setSuggestionRange'](_0xe8a61,_0x53ab24[0x0]):_0x24f397['removeMarker'](_0xe8a61['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4833cd){this['_editor']=_0x4833cd,this['_model']=_0x4833cd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1f7e15,_0xa6fffc,_0x21c61b,_0x4ff4cf,_0xe8b788,_0x38c912,_0x1c9080){return new T(this['_model'],{'type':_0x1f7e15,'subType':_0xa6fffc,'id':_0x21c61b,'originalSuggestionId':_0x1c9080,'author':_0x4ff4cf,'creator':_0x4ff4cf,'attributes':_0xe8b788,'onAttributesChange':_0x38c912,'onAccept':(..._0x4ca222)=>this['getSuggestionCallback'](_0x1f7e15,_0xa6fffc,'accept')(..._0x4ca222),'onDiscard':(..._0x2b4bed)=>this['getSuggestionCallback'](_0x1f7e15,_0xa6fffc,'discard')(..._0x2b4bed)});}['registerCustomCallback'](_0xa91a93,_0x92f74,_0x3bcfce,_0x1da848){const _0x584798=_0xa91a93+':'+_0x92f74+':'+_0x3bcfce;this['_customCallbacks']['set'](_0x584798,_0x1da848);}['getSuggestionCallback'](_0x51529c,_0xccc695,_0xd0da94){const _0x6e14f8=_0x51529c+':'+_0xccc695+':'+_0xd0da94;return this['_customCallbacks']['get'](_0x6e14f8)||this['_defaultCallbacks']['get'](_0x51529c+':'+_0xd0da94);}['_registerDefaultCallbacks'](){const _0x5acf20=()=>!0x1,_0x4b21f9=_0x3cb0fc=>{_0x3cb0fc['sort']((_0x2e84bf,_0x1485d9)=>_0x2e84bf['start']['isBefore'](_0x1485d9['start'])?0x1:-0x1),this['_model']['change'](_0x10133f=>{for(const _0x4ff3a3 of _0x3cb0fc){let _0x525454;_0x525454=_0x4ff3a3['end']['isAtEnd']&&_0x4ff3a3['end']['parent']==_0x4ff3a3['start']['nodeAfter']?_0x10133f['createSelection'](_0x4ff3a3['start']['nodeAfter'],'on'):_0x10133f['createSelection'](_0x4ff3a3),this['_model']['deleteContent'](_0x525454,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1e8d19=(_0x240642,_0x149b8d)=>{_0x149b8d&&this['_model']['change'](_0x40afaf=>{const {commandName:_0xb742b5,commandParams:_0x117820=[]}=_0x149b8d,_0x2cb034=_0x240642['map'](_0x368521=>(Kt(_0x368521)&&(_0x368521=this['_model']['createRange'](_0x368521['end'])),_0x368521))['filter'](_0x23fcbb=>'$graveyard'!==_0x23fcbb['root']['rootName']);if(_0x2cb034['length']<0x1)return;const _0x5328ca=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1478a5=>_0x5d12c9['fromRange'](_0x1478a5));_0x40afaf['setSelection'](_0x2cb034);for(const _0x43efbc of this['_editor']['commands']['commands']())_0x43efbc['refresh']();_0x117820['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xb742b5,..._0x117820);const _0x26430e=_0x5328ca['filter'](_0x437e63=>'$graveyard'!=_0x437e63['root']['rootName']);_0x26430e['length']>0x0&&_0x40afaf['setSelection'](_0x26430e);for(const _0x52b884 of _0x5328ca)_0x52b884['detach']();});},_0x4f56fe=(_0xcebda5,_0x2e7c78)=>0x1==_0xcebda5['length']&&0x1==_0x2e7c78['length']&&_0xcebda5[0x0]['end']['isEqual'](_0x2e7c78[0x0]['start']),_0x25f63c=(_0xf3bbb4,_0x317470,_0x810e31,_0x4a2fb0)=>nn(_0xf3bbb4,_0x317470,_0x810e31,_0x4a2fb0)?[_0xf3bbb4,_0x317470]:nn(_0x317470,_0xf3bbb4,_0x4a2fb0,_0x810e31)?[_0x317470,_0xf3bbb4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5acf20),this['_defaultCallbacks']['set']('insertion:discard',_0x4b21f9),this['_defaultCallbacks']['set']('insertion:join',_0x4f56fe),this['_defaultCallbacks']['set']('insertion:chain',_0x25f63c),this['_defaultCallbacks']['set']('deletion:accept',_0x4b21f9),this['_defaultCallbacks']['set']('deletion:discard',_0x5acf20),this['_defaultCallbacks']['set']('deletion:join',_0x4f56fe),this['_defaultCallbacks']['set']('deletion:chain',_0x25f63c),this['_defaultCallbacks']['set']('formatInline:accept',_0x1e8d19),this['_defaultCallbacks']['set']('formatInline:discard',_0x5acf20),this['_defaultCallbacks']['set']('formatInline:join',_0x4f56fe),this['_defaultCallbacks']['set']('formatInline:chain',_0x5acf20),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1e8d19),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5acf20),this['_defaultCallbacks']['set']('formatBlock:join',_0x4f56fe),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5acf20),this['_defaultCallbacks']['set']('attribute:accept',_0x5acf20),this['_defaultCallbacks']['set']('attribute:discard',(_0x290ac7,_0x2dfcc2)=>{if(!_0x2dfcc2)return;const _0x3e9b7d=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4db2d9=>{if(_0x2dfcc2['key']==m)for(const _0x1d0d36 of _0x290ac7){const _0x42d06c=_0x1d0d36['start']['nodeAfter'],_0x4b4c69=_0x2dfcc2['oldValue'];_0x4db2d9['rename'](_0x42d06c,_0x4b4c69);}else{if(_0x3e9b7d['_isBlockAttribute'](_0x2dfcc2['key'])){for(const _0x3fdf57 of _0x290ac7)void 0x0!==_0x2dfcc2['oldValue']?_0x4db2d9['setAttribute'](_0x2dfcc2['key'],_0x2dfcc2['oldValue'],_0x3fdf57['start']['nodeAfter']):_0x4db2d9['removeAttribute'](_0x2dfcc2['key'],_0x3fdf57['start']['nodeAfter']);}else{for(const _0x3beacc of _0x290ac7)_0x2dfcc2['oldValue']?_0x4db2d9['setAttribute'](_0x2dfcc2['key'],_0x2dfcc2['oldValue'],_0x3beacc):_0x4db2d9['removeAttribute'](_0x2dfcc2['key'],_0x3beacc);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4f56fe);}}function zt(_0x395f45,_0x2e12d6,_0x2375db){for(const _0x490721 of _0x2e12d6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x490721['root']==_0x490721)return!0x1;if(!_0x2375db['containsItem'](_0x490721))return!0x1;if(_0x395f45['isObject'](_0x490721)||_0x395f45['isLimit'](_0x490721))return!0x0;}return!0x1;}function Kt(_0x5697a4){return _0x5697a4['end']['parent']==_0x5697a4['start']['nodeAfter']&&_0x5697a4['end']['isAtStart'];}function Wt(_0x528534,_0x5bf7ef,_0x1dcf11,_0x476feb){const _0x7f9693=_0x3eb8d4=>!_0x3eb8d4['item']['is']('$textProxy')&&!_0x476feb['isObject'](_0x3eb8d4['item']),_0x552865=_0x528534['start']['getLastMatchingPosition'](_0x7f9693),_0x539c3e=_0x528534['end']['getLastMatchingPosition'](_0x7f9693,{'direction':'backward'});return(!_0x528534['start']['isEqual'](_0x552865)||!_0x528534['end']['isEqual'](_0x539c3e))&&(_0x552865['isBefore'](_0x539c3e)?_0x1dcf11['updateMarker'](_0x5bf7ef,{'range':_0x1dcf11['createRange'](_0x552865,_0x539c3e)}):_0x1dcf11['removeMarker'](_0x5bf7ef),!0x0);}function Ht(_0x44a57c){return _0x4590a1(_0x44a57c);}function Qt(_0x26a745){const _0x93f489=_0x26a745['start']['nodeAfter'];return _0x93f489&&_0x93f489['is']('element');}function Xt(_0xecf61){return Kt(_0xecf61)||function(_0x4b6048){return _0x4b6048['start']['parent']==_0x4b6048['end']['nodeBefore']&&_0x4b6048['start']['isAtEnd'];}(_0xecf61);}function Yt(_0x45186c,_0x45cf74){try{const _0xf3745c=_0x45186c['getRange']();for(const _0xc54601 of _0x45cf74)if(_0x45186c!==_0xc54601&&_0xf3745c&&_0xf3745c['isIntersecting'](_0xc54601['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0xe1ecca,_0x405d61){return null==_0xe1ecca['end']['nodeBefore']&&_0xe1ecca['end']['parent']==_0xe1ecca['start']['nodeAfter']?tn(_0xe1ecca['start']['nodeAfter'],_0x405d61):_0xe1ecca;}function tn(_0x591faa,_0x3c5d65){const _0x30650f=_0x3c5d65['schema']['isObject'](_0x591faa)||_0x3c5d65['schema']['isSelectable'](_0x591faa);return _0x3c5d65['createRange'](_0x3c5d65['createPositionAt'](_0x591faa,'before'),_0x30650f?_0x3c5d65['createPositionAfter'](_0x591faa):_0x3c5d65['createPositionAt'](_0x591faa,'end'));}function nn(_0x116241,_0x47b7e8,_0x18007c,_0x536afa){return!!en(_0x116241,_0x47b7e8)&&_0x18007c['end']['isEqual'](_0x536afa['start']);}function en(_0x33bf02,_0x2e022d){if(!_0x33bf02['_isDataLoaded']||!_0x2e022d['_isDataLoaded'])return!0x1;const _0x54e6ad=new Set(Object['keys'](_0x33bf02['attributes'])),_0x6b3f81=new Set(Object['keys'](_0x2e022d['attributes']));if(_0x54e6ad['delete']('groupId'),_0x6b3f81['delete']('groupId'),0x0==_0x54e6ad['size']&&0x0==_0x6b3f81['size'])return!0x0;if(_0x54e6ad['size']!=_0x6b3f81['size'])return!0x1;const _0x159df4={..._0x33bf02['attributes']},_0xee3b2e={..._0x2e022d['attributes']};return delete _0x159df4['groupId'],delete _0xee3b2e['groupId'],JSON['stringify'](_0x159df4)==JSON['stringify'](_0xee3b2e);}function sn(_0x4ac2eb,_0x44a17b){const _0x1335aa=on(_0x4ac2eb['attributes']),_0x28c36a=on(_0x44a17b);if(!_0x4ac2eb['_isDataLoaded'])return!0x1;for(const _0x1cc0c9 of Object['keys'](_0x28c36a))if(!_0x41a4ca(_0x1335aa[_0x1cc0c9],_0x28c36a[_0x1cc0c9]))return!0x1;return!0x0;}function on(_0xd8a0c8){const _0x578cb1=Object['assign']({},_0xd8a0c8);return delete _0x578cb1['skipNestingCheck'],delete _0x578cb1['tablePasteChainId'],_0x578cb1;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x51c730(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3f222a,_0x3c1d44,_0x350d6b,_0x4100b5){super(),this['model']=_0x3c1d44,this['view']=_0x350d6b,this['commentThreadController']=_0x4100b5,this['_editor']=_0x3f222a,this['_acceptCommand']=_0x3f222a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3f222a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4f7c69,_0x3945b8)=>_0x4f7c69||_0x3945b8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x52defb=>_0x52defb&&this['_editor']['model']['canEditAt'](_0x3c1d44['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x34b45f=>_0x34b45f&&this['_editor']['model']['canEditAt'](_0x3c1d44['getRanges']())),this['_pendingAction']=null,_0x350d6b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x350d6b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x350d6b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x350d6b,'change:isDirty',()=>{_0x350d6b['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 _0x5a768d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5a768d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x7bfbf9{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x262cb4,_0x2a6bd7,_0x4518fe,_0x462bc2){super(_0x262cb4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x215f3f(_0x262cb4,o(_0x262cb4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2a6bd7['authoredAt']),this['bind']('authoredAt')['to'](_0x2a6bd7),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',_0x2a6bd7,'authoredAt',this,'descriptionParts',(_0x3abfad,_0x44c4b4,_0x789615)=>{const _0x18f133=_0x789615['map'](_0x3769cd=>ls(_0x3769cd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3abfad-0x1,_0x2a6bd7['author']['name'],_0x44c4b4?_0x462bc2['formatDateTime'](_0x44c4b4):'',new DOMParser()['parseFromString'](_0x18f133,'text/html')['body']['textContent']]);}),this['focusables']=new _0x309c9f(),this['focusTracker']=new _0x12c130(),this['keystrokes']=new _0x4e7933(),this['focusCycler']=new _0x336e4b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x102ed8=>_0x102ed8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2a6bd7,this['_localUser']=_0x4518fe,this['_config']=_0x462bc2,_0x462bc2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x46e44e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x43ad1b}=this['_config'];this['commentsListView']=new _0x43ad1b(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',_0x27ecb7=>_0x27ecb7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x46aa78,_0x53bc8f)=>_0x46aa78||!!_0x53bc8f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x453a1d}=this['_config'],_0x238cf7=new _0x453a1d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2402bc=_0x238cf7['commentInputView'];return _0x238cf7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2402bc,'value',(_0x1ceb9c,_0x1fde66,_0x137e88)=>!!_0x137e88||_0x1ceb9c&&!_0x1fde66),_0x2402bc['on']('submit',(_0x90e3ab,_0x439410)=>{this['fire']('addComment',_0x439410),_0x2402bc['editor']['setData']('');}),_0x2402bc['on']('cancel',()=>this['focus']()),_0x2402bc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x238cf7;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x37b569,_0x4dbc5a,_0x5e8ccb,_0x398364){super(_0x37b569,_0x4dbc5a,_0x5e8ccb,_0x398364),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x217de0=>_0x217de0&&_0x217de0[0x0]?_0x217de0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x33ac32,_0x417c8a)=>{let _0x1c43fe='';for(const _0x12229c of _0x33ac32)_0x1c43fe+='<p>'+ls(_0x12229c['content'],_0x12229c['color'])+'</p>';return _0x417c8a?_0x1c43fe:_0x4e9505(_0x1c43fe,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x398364['SuggestionView'](_0x37b569,_0x4dbc5a,{'formatDateTime':_0x398364['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 _0x4e7e9d=this['bindTemplate'],_0x582905=[this['suggestionView']];return this['commentsListView']&&_0x582905['push'](this['commentsListView']),this['commentThreadInputView']&&_0x582905['push'](this['commentThreadInputView']),_0x582905['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4e7e9d['if']('isActive','ck-suggestion-wrapper--active'),_0x4e7e9d['to']('type',_0x2ee014=>'ck-suggestion-'+_0x2ee014),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':_0x4e7e9d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x582905};}['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 _0x7bfbf9{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4b34cf,_0x1c96a0,_0x43990b){super(_0x4b34cf),this['_model']=_0x1c96a0,this['_config']=_0x43990b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1c96a0),this['acceptButton']=this['_createButton'](o(_0x4b34cf,'Accept\x20suggestion'),_0xf86e55,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4b34cf,'Discard\x20suggestion'),_0x38a1f6,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4a26c2(_0x4b34cf,_0x1c96a0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x309c9f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x12c130(),this['keystrokes']=new _0x4e7933(),this['focusCycler']=new _0x336e4b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x457a43=>_0x457a43['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x567ecf=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x567ecf['innerHTML']=this['description'],this['on']('change:description',(_0x10843a,_0x5f0f3e,_0x276b33)=>{_0x567ecf['innerHTML']=_0x276b33;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x151cc1=this['bindTemplate'],_0x1f1caf=[{'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':_0x151cc1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x151cc1['to']('authoredAt',_0x39de33=>this['_config']['formatDateTime'](_0x39de33))}]}]},{'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']&&_0x1f1caf['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':_0x1f1caf}]};}['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'](_0x1ae3f0,_0x5bc058,_0x1178ac,_0x351251,_0x3e70fd){const _0x5ac829=new _0x404ead(this['locale']);return _0x5ac829['set']({'label':_0x1ae3f0,'icon':_0x5bc058,'tooltip':!0x0,'tooltipPosition':_0x3e70fd}),_0x5ac829['extendTemplate']({'attributes':{'class':_0x1178ac}}),_0x5ac829['on']('execute',()=>{this['fire'](_0x351251,this['_model']['id']);}),_0x5ac829;}['_setupKeyboardNavigation'](){const _0x11903b=this['element'];this['keystrokes']['listenTo'](_0x11903b);for(const _0x3104ff of this['focusables'])this['focusTracker']['add'](_0x3104ff['element']),this['keystrokes']['listenTo'](_0x3104ff['element']);this['keystrokes']['set']('enter',(_0x5ce315,_0x3c8fda)=>{_0x11903b===_0x5ce315['target']&&(this['focusCycler']['focusFirst'](),_0x3c8fda());}),this['keystrokes']['set']('esc',(_0x4f9a5e,_0x12ec59)=>{_0x11903b!==_0x4f9a5e['target']&&(this['focus'](),_0x12ec59());});}}class u extends _0x21b897{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x269535,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x335600){super(_0x335600),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4cb4e9=this['editor']['config'];_0x4cb4e9['define']('trackChanges.SuggestionThreadView',fe),_0x4cb4e9['define']('trackChanges.SuggestionView',we),_0x4cb4e9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4cb4e9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4dd035,_0x335437){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5f371f,_0x161742]of this['_handleControllerBuffer']){const _0x260bf0=this['_suggestionToController']['has'](_0x5f371f);_0x260bf0||_0x161742?_0x260bf0&&_0x161742&&this['_destroyController'](_0x5f371f):this['_initializeController'](_0x5f371f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4dd035,_0x335437);}['init'](){const _0xfcfb8a=this['editor'],_0x4fadd1=_0xfcfb8a['plugins']['get']('TrackChangesEditing'),_0x51fac2=_0xfcfb8a['plugins']['get']('Annotations'),_0x19ee28=_0xfcfb8a['plugins']['get']('EditorAnnotations'),_0x58220c=_0xfcfb8a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x19ee28['addSourceCollector'](()=>{const _0x4eb5ae=[];for(const [_0x3a98b5,_0x44a822]of Array['from'](this['_suggestionToController'])){const _0x53abdf=_0x3a98b5['getAllAdjacentSuggestions'](),_0x28343e=[];for(const _0x4afed3 of _0x53abdf){if(!_0x4afed3['isInContent'])continue;if(_0x4afed3['isMultiRange']){_0x28343e['push'](..._0x4afed3['getRanges']());continue;}const _0x37d2e0=_0x4afed3['getFirstRange']();if(_0x28343e['length']>0x0){const _0x1f9d7e=_0x28343e[0x0]['getJoined'](_0x37d2e0);if(_0x1f9d7e){_0x28343e[0x0]=_0x1f9d7e;continue;}}_0x28343e['push'](_0x37d2e0);}_0x4eb5ae['push']([_0x44a822['view'],_0x28343e]);}return _0x4eb5ae;}),this['listenTo'](_0x4fadd1,'suggestionLoaded',(_0x120430,_0x247396)=>{this['listenTo'](_0x247396,'change:previous',(_0x164588,_0x517ef4,_0x134590,_0x7c1786)=>{_0x247396['isInContent']&&(null==_0x134590?(this['_updateController'](_0x7c1786['head']),this['_handleSuggestionControllerDelayed'](_0x247396,!0x1)):(this['_updateController'](_0x134590['head']),null==_0x7c1786&&this['_handleSuggestionControllerDelayed'](_0x247396,!0x0)));}),null!==_0x247396['previous']?this['_updateController'](_0x247396['head']):this['_handleSuggestionControllerDelayed'](_0x247396,!0x1);}),this['listenTo'](_0x4fadd1,'suggestionUnloaded',(_0x4cc83e,_0x20b0c6,_0x3f8e0b)=>{this['stopListening'](_0x20b0c6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x20b0c6),this['_suggestionToController']['has'](_0x20b0c6)&&this['_destroyController'](_0x20b0c6),_0x3f8e0b&&this['_updateController'](_0x3f8e0b['head']);}),this['listenTo'](_0x4fadd1,'suggestionChanged',(_0x5cd71d,_0x5645b1)=>{this['_updateController'](_0x5645b1);}),this['listenTo'](_0x51fac2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x58220c,'addComment',(_0x46922f,{threadId:_0x5c6607,isFromAdapter:_0x171668})=>{if(_0x171668||!_0x4fadd1['hasSuggestion'](_0x5c6607))return;const _0x231cc9=_0x4fadd1['getSuggestion'](_0x5c6607);this['_suggestionToController']['get'](_0x231cc9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x393933=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5bf59f;for(const _0x3ae0a4 in _0x393933){const _0x1b58f7=_0x3ae0a4,_0x16a583=_0x393933[_0x1b58f7];if('trackChangesLicenseKeyValid'==_0x16a583||'trackChangesLicenseKeyInvalid'==_0x16a583||'trackChangesLicenseKeyExpired'==_0x16a583||'trackChangesLicenseKeyDomainLimit'==_0x16a583||'trackChangesLicenseKeyNotAllowed'==_0x16a583||'trackChangesLicenseKeyEvaluationLimit'==_0x16a583||'trackChangesLicenseKeyUsageLimit'==_0x16a583){delete _0x393933[_0x1b58f7],_0x5bf59f=_0x16a583,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5bf59f&&_0x393933['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5bf59f&&_0x393933['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5bf59f&&_0x393933['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5bf59f&&_0x393933['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5bf59f&&_0x393933['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5bf59f&&_0x393933['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x16dde8){const _0x1bd6c2=this['_suggestionToController']['get'](_0x16dde8);if(!_0x1bd6c2)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1bd6c2['view'])||null;}['getSuggestionForAnnotation'](_0x19cee5){const _0x6c9146=this['_viewToController']['get'](_0x19cee5['innerView']);return _0x6c9146?_0x6c9146['model']:null;}['_refreshActiveMarkers'](){const _0x3acc03=this['editor']['plugins']['get']('Annotations'),_0x3b3242=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23853b=Array['from'](_0x3acc03['activeAnnotations'],_0xcf0d2e=>_0xcf0d2e['innerView'])['filter'](_0x15db34=>this['_viewToController']['has'](_0x15db34)),_0x584b2e=[];for(const _0x4d6c59 of _0x23853b){const _0x447d3b=this['_viewToController']['get'](_0x4d6c59)['model']['getAllAdjacentSuggestions']();_0x584b2e['push'](..._0x447d3b['reduce']((_0x57ecc4,_0x4c72c1)=>[..._0x57ecc4,..._0x4c72c1['getMarkerNames']()],[]));}_0x3b3242['activeMarkers']=_0x584b2e;}['_addUIComponentsToFactory'](){const _0x5731f2=this['editor'],_0x5b27ac=_0x5731f2['locale'],_0x448927=o(_0x5b27ac,'Track\x20changes'),_0x4cea42=new _0x252848([{'type':'switchbutton','model':new _0x454017({'withText':!0x0,'isToggleable':!0x0,'label':_0x448927,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x454017({'withText':!0x0,'label':o(_0x5b27ac,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x454017({'withText':!0x0,'label':o(_0x5b27ac,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x454017({'withText':!0x0,'label':o(_0x5b27ac,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x454017({'withText':!0x0,'label':o(_0x5b27ac,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5731f2['plugins']['has']('TrackChangesPreview')&&_0x4cea42['addMany']([{'type':'separator'},{'type':'button','model':new _0x454017({'withText':!0x0,'label':o(_0x5b27ac,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x398c2f of _0x4cea42)if(ke(_0x398c2f)){const _0x390cdb=_0x5731f2['commands']['get'](_0x398c2f['model']['commandName']);_0x398c2f['model']['bind']('isOn','isEnabled')['to'](_0x390cdb,'value','isEnabled');}_0x5731f2['ui']['componentFactory']['add']('trackChanges',_0x4fcc14=>this['_createToolbarButton'](_0x4fcc14,_0x4cea42,_0x448927)),_0x5731f2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x145df4=>this['_createMenuBarMenu'](_0x145df4,_0x4cea42,_0x448927));}['_createToolbarButton'](_0xcc56b3,_0x2f711a,_0x28fd47){const _0x58703b=_0x3e2c8a(_0xcc56b3,_0x2e7f7c),_0x301782=this['editor']['commands']['get']('trackChanges');_0x58703b['buttonView']['set']({'tooltip':_0x28fd47,'label':_0x28fd47,'icon':_0x492e81}),_0x58703b['buttonView']['bind']('isOn')['to'](_0x301782,'value'),_0x58703b['buttonView']['on']('execute',()=>{_0x301782['execute'](),this['editor']['editing']['view']['focus']();}),_0x373682(_0x58703b,_0x2f711a,{'role':'menu'});const _0x199395=[];for(const _0x45f108 of _0x2f711a)ke(_0x45f108)&&_0x199395['push'](this['editor']['commands']['get'](_0x45f108['model']['commandName']));const _0x27cc25=_0x58703b['buttonView'];return _0x27cc25['actionView']['unbind']('isEnabled'),_0x27cc25['arrowView']['unbind']('isEnabled'),_0x27cc25['actionView']['bind']('isEnabled')['to'](_0x301782,'isEnabled'),_0x27cc25['arrowView']['bind']('isEnabled')['toMany'](_0x199395,'isEnabled',(..._0x4b5d7c)=>_0x4b5d7c['some'](_0x3c7d1b=>_0x3c7d1b)),_0x58703b['on']('execute',_0x10adbc=>{this['editor']['execute'](_0x10adbc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x58703b;}['_createMenuBarMenu'](_0x240cbb,_0x1307eb,_0x6fc08c){const _0x58bd72=new _0x47ab01(_0x240cbb),_0x2afbfb=this['editor']['commands']['get']('trackChanges');_0x58bd72['buttonView']['set']({'label':_0x6fc08c,'icon':_0x492e81});const _0x5bdb69=new _0x22920b(_0x240cbb);for(const _0x14446f of _0x1307eb){if('separator'==_0x14446f['type']){_0x5bdb69['items']['add'](new _0x432481(_0x240cbb));continue;}const _0x2a0786=new _0x39d185(_0x240cbb,_0x58bd72),_0x3e55d2=new _0x33663e(_0x240cbb),_0x370489=_0x14446f['model'];_0x3e55d2['bind'](...Object['keys'](_0x370489))['to'](_0x370489),_0x3e55d2['delegate']('execute')['to'](_0x58bd72),_0x3e55d2['on']('execute',()=>{this['editor']['execute'](_0x370489['commandName']),this['editor']['editing']['view']['focus']();}),_0x2a0786['children']['add'](_0x3e55d2),_0x5bdb69['items']['add'](_0x2a0786);}return _0x58bd72['bind']('isEnabled')['to'](_0x2afbfb,'isEnabled'),_0x58bd72['panelView']['children']['add'](_0x5bdb69),_0x58bd72;}['_initializeController'](_0x2b5fd9){const _0x20833d=this['editor'],_0x39ca08=_0x20833d['config'],_0x24421a=_0x20833d['plugins']['get']('Annotations'),_0x3d590c=_0x20833d['plugins']['get']('CommentsRepository'),_0x53ee85=_0x20833d['plugins']['get']('EditorAnnotations'),_0x342eb1=_0x20833d['plugins']['get'](_0x269535)['me'],_0x48069a=_0x39ca08['get']('trackChanges')['SuggestionThreadView'],_0x123f0f=_0x39ca08['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4ceea7,CommentThreadInputView:_0x490c24}=_0x20833d['plugins']['get']('CommentsUI');let _0x3ae543,_0x61a0bb,_0x3d968d;this['_annotationViews']['has'](_0x2b5fd9['id'])?(_0x61a0bb=this['_annotationViews']['get'](_0x2b5fd9['id']),_0x3ae543=_0x61a0bb['mainView']):(_0x3ae543=new _0x48069a(_0x20833d['locale'],_0x2b5fd9,_0x342eb1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x39ca08['get']('comments.editorConfig'),'licenseKey':_0x39ca08['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x39ca08['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x39ca08['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x39ca08['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x283982(_0x39ca08['get']('locale'),_0x20833d['locale']),'CommentView':_0x39ca08['get']('comments')['CommentView'],'CommentsListView':_0x4ceea7,'CommentThreadInputView':_0x490c24,'SuggestionView':_0x123f0f}),_0x3ae543['suggestionView']['acceptButton']['on']('execute',()=>{_0x20833d['editing']['view']['focus']();}),_0x3ae543['suggestionView']['discardButton']['on']('execute',()=>{_0x20833d['editing']['view']['focus']();}),_0x61a0bb=_0x24421a['createAnnotationView'](this['editor']['locale'],_0x3ae543),_0x61a0bb['bind']('isDirty')['to'](_0x3ae543,'isDirty'),_0x61a0bb['bind']('length')['to'](_0x3ae543),_0x61a0bb['bind']('type')['to'](_0x3ae543,'type',_0x1fa9b2=>'suggestion-'+_0x1fa9b2),_0x3ae543['on']('escape',()=>{_0x3d968d['fire']('escape');}),this['_annotationViews']['set'](_0x2b5fd9['id'],_0x61a0bb));const _0x496973=_0x3d590c['createCommentThreadController'](_0x2b5fd9['commentThread'],_0x3ae543),_0x31365a=new pe(_0x20833d,_0x2b5fd9,_0x3ae543,_0x496973),_0xb2dac3=_0x2b5fd9['getAllAdjacentSuggestions']()['filter'](_0x1d579e=>_0x1d579e['isInContent']);_0x3ae543['descriptionParts']=_0x20833d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xb2dac3),this['_suggestionToController']['set'](_0x2b5fd9,_0x31365a),this['_viewToController']['set'](_0x3ae543,_0x31365a);const _0x53a9bd=()=>{const _0x370811=[],_0x5168d6=_0x2b5fd9['getAllAdjacentSuggestions']()['filter'](_0x46807b=>_0x46807b['isInContent']);for(const _0x944cc7 of _0x5168d6)_0x370811['push'](..._0x944cc7['getMarkers']());return _0x168d2f(_0x20833d['editing'],_0x370811);};_0x3d968d=_0x24421a['createAnnotation']({'view':_0x61a0bb,'target':_0x53a9bd,'type':()=>'suggestion-'+_0x31365a['view']['type'],'isVisible':!!_0x53a9bd()}),_0x3d590c['_bindAnnotationToEditors'](_0x3ae543,_0x3d968d),_0x24421a['add'](_0x3d968d),_0x53ee85['registerAnnotation'](_0x3d968d);}['_destroyController'](_0x208aba){const _0x5ddeb3=this['editor']['plugins']['get']('CommentsRepository'),_0x502fc4=this['editor']['plugins']['get']('Annotations'),_0x5e6e40=this['_suggestionToController']['get'](_0x208aba),_0x27a6c7=_0x5e6e40['view'],_0x3914e6=_0x502fc4['getByInnerView'](_0x27a6c7);_0x5ddeb3['_unbindEditors'](_0x27a6c7),_0x3914e6&&_0x502fc4['remove'](_0x3914e6),this['_suggestionToController']['delete'](_0x208aba),this['_viewToController']['delete'](_0x27a6c7),_0x5e6e40['destroy']();}['_updateController'](_0x1f492a){if(!_0x1f492a['isInContent']||!this['_suggestionToController']['has'](_0x1f492a))return;const _0x54b73e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f402f=this['_suggestionToController']['get'](_0x1f492a),_0x4647af=_0x1f492a['getAllAdjacentSuggestions']();_0x5f402f['view']['descriptionParts']=_0x54b73e['descriptionFactory']['getDescriptions'](_0x4647af);}['destroy'](){for(const _0x1ac3b4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1ac3b4);for(const _0x57abeb of this['_annotationViews']['values']())_0x57abeb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3a790a){return'model'in _0x3a790a;}class Ne extends _0x21b897{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x35d7b3){this['editor']['plugins']['get'](d)['adapter']=_0x35d7b3;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x92b7b8){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x92b7b8);}['getSuggestions']({skipNotAttached:_0x3084c5=!0x1,toJSON:_0x431d83=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3084c5,'toJSON':_0x431d83});}['getSuggestion'](_0x40ccfe){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x40ccfe);}}const p=['Pagination'];class re extends _0x21b897{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x213437=this['editor'];if(_0x213437['config']['define']('trackChangesData.editorCreator',_0x46c6e2=>{const _0x26e5e7=_0x213437['model']['document']['getRootNames']()['reduce']((_0x165f83,_0x23efc0)=>(_0x165f83[_0x23efc0]='',_0x165f83),{});return _0x213437['constructor']['create'](_0x26e5e7,_0x46c6e2);}),'function'!=typeof _0x213437['config']['get']('trackChangesData')['editorCreator'])throw new _0x14cf5c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x30d19d){return P(this['editor'],!0x0,_0x30d19d);}['getDataWithDiscardedSuggestions'](_0x53ba5a){return P(this['editor'],!0x1,_0x53ba5a);}}class Fe extends _0x21b897{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x545432){function _0x572e94(_0x103082){return _0x103082['map'](_0x43d4ba=>String['fromCharCode'](_0x43d4ba))['join']('');}super(_0x545432),this['result']='end',_0x545432[_0x572e94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572e94([0x76,0x69,0x65,0x77])][_0x572e94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x572e94([0x61,0x75,0x74,0x6f]),_0x545432[_0x572e94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x572e94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x572e94([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x572e94([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x572e94([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(_0xd4c3ce){return void 0x0!==_0xd4c3ce['getRootsAttributes'];}async function P(_0x1baaa7,_0x5e7fdc,_0xb6b5e4){const _0x1d4e58=_0x3c94be(_0x1baaa7,p);_0x1d4e58['plugins']['push'](d,Fe),_0x1d4e58['rootsAttributes']=De(_0x1baaa7)?_0x1baaa7['getRootsAttributes']():void 0x0;const _0x177141=document['createDocumentFragment'](),_0x32f316=_0x1baaa7['config']['get']('trackChangesData')['editorCreator'],_0x17b6df=await _0x32f316(_0x1d4e58,()=>function(_0x4f416f){const _0x3679e7=document['createElement']('div');return _0x4f416f['appendChild'](_0x3679e7),_0x3679e7;}(_0x177141));!function(_0x2fadda,_0x330687){const _0x3d5ca5=_0x2fadda['model']['document']['getRootNames']()['reduce']((_0x58867c,_0x38001e)=>(_0x58867c[_0x38001e]=_0x2fadda['data']['get']({'rootName':_0x38001e}),_0x58867c),{}),_0x20e8d5=_0x2fadda['plugins']['get']('Users')['users']['map'](_0x425055=>({'id':_0x425055['id'],'name':_0x425055['name']})),_0x38adb9=_0x2fadda['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x283a59=_0x2fadda['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3aaeff=_0x330687['plugins']['get']('Users'),_0xd82db9=_0x330687['plugins']['get']('TrackChangesEditing'),_0x28c593=_0x330687['plugins']['get']('CommentsRepository');for(const _0x459cca of _0x28c593['getCommentThreads']())_0x459cca['remove']();for(const _0x333deb of _0x20e8d5)_0x3aaeff['getUser'](_0x333deb['id'])||_0x3aaeff['addUser'](_0x333deb);_0x3aaeff['me']||_0x3aaeff['useAnonymousUser']();for(const _0xb5a871 of _0x283a59)_0x28c593['addCommentThread'](_0xb5a871);for(const _0xf9aab9 of _0x38adb9)_0xd82db9['addSuggestionData'](_0xf9aab9);_0x330687['data']['set'](_0x3d5ca5);}(_0x1baaa7,_0x17b6df),_0x17b6df['execute'](_0x5e7fdc?'acceptAllSuggestions':'discardAllSuggestions');const _0x4775b3=De(_0x17b6df)?_0x17b6df['getFullData'](_0xb6b5e4):_0x17b6df['data']['get'](_0xb6b5e4);return await _0x17b6df['destroy'](),_0x4775b3;}class Me extends _0x7bfbf9{['options'];constructor(_0x5584d5,_0x4d3875){super(_0x5584d5),this['options']=_0x4d3875,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'](_0x4582e8,_0x4e4d11){if(!this['element'])return;const _0x16678e=[];for(const [_0x395e19,_0x2674a6]of _0x4582e8){const _0x137f0b=document['createElement']('div');_0x137f0b['setAttribute']('data-ck-root-name',_0x395e19),_0x137f0b['className']=_0x2674a6['classes']+'\x20ck-track-changes-preview__root-container',_0x137f0b['innerHTML']=_0x2674a6['content'],_0x16678e['push'](_0x137f0b);}_0x4e4d11(this['element'],_0x16678e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x24197b{constructor(_0x51d5c4){super(_0x51d5c4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4987ec=this['editor'],_0x36f980=_0x4987ec['locale'],_0x2973a7=_0x4987ec['plugins']['get']('Dialog');let _0x346639;const _0x407b0e=function(_0xb6ebfe){const _0x4f07e6={};if('editables'in _0xb6ebfe['ui']['view']){for(const [_0x97266b,_0x49a529]of Object['entries'](_0xb6ebfe['ui']['view']['editables']))_0x4f07e6[_0x97266b]=_0x49a529['element'];}else _0x4f07e6[_0xb6ebfe['model']['document']['getRootNames']()[0x0]]=_0xb6ebfe['ui']['view']['editable']['element'];return _0x4f07e6;}(_0x4987ec),_0x972032=function(_0x2d0396){let _0x2f53e2=0x0;for(const _0x581d37 of Object['values'](_0x2d0396))_0x2f53e2=Math['max'](_0x2f53e2,_0x581d37['getBoundingClientRect']()['width']);let _0x435150=0x0;for(const _0x335cfb of Object['values'](_0x2d0396))_0x435150+=_0x335cfb['getBoundingClientRect']()['height'];const _0x18e6fc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3419e1=Math['min'](_0x435150,_0x18e6fc);return{'width':_0x2f53e2,'height':_0x3419e1};}(_0x407b0e);_0x2973a7['show']({'id':'finalContentPreview','title':o(_0x36f980,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x36f980,{'dialogRects':_0x972032}),'onHide':()=>{_0x346639['detachFromDom']();},'onShow':()=>{_0x4987ec['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4ac43f=>{const _0x26104c=this['_standarizeRootsData'](_0x4ac43f,_0x4987ec,_0x407b0e);_0x2973a7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x26104c,_0x4987ec['config']['get']('trackChanges.preview.renderFunction'));}),_0x346639=new _0x1cc187(_0x36f980,[_0x2973a7['view']]),_0x346639['attachToDom'](),_0x346639['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4987ec['once']('destroy',()=>{_0x346639['detachFromDom']();});const _0x25d80b=_0x2973a7['view']['headerView']['class'];_0x2973a7['view']['headerView']['class']=_0x25d80b?_0x25d80b+'\x20ck-reset_all':'ck-reset_all',_0x2973a7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2973a7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5f3466=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x26a85f=_0x5f3466['previewMode'],_0x147c64={};if('$labels'===_0x26a85f){for(const _0x2e3732 of _0x5f3466['getMergeFieldsIds']())_0x147c64[_0x2e3732]=_0x5f3466['getLabel'](_0x2e3732)||_0x2e3732;}else{const _0x30f1ee='$defaultValues'===_0x26a85f?_0x5f3466['getDefaultValues']():_0x5f3466['getDataSetValues'](_0x26a85f,!0x0);for(const _0x4f16a9 of Object['entries'](_0x30f1ee)){const [_0x37f0a8,_0x38cf04]=_0x4f16a9;_0x147c64[_0x37f0a8]=null!==_0x38cf04?_0x38cf04:_0x5f3466['getLabel'](_0x37f0a8)||_0x37f0a8;}}return{'mergeFieldsData':_0x147c64};}['_standarizeRootsData'](_0x848d26,_0xe6cedd,_0x523c5){let _0x47890b;if('string'==typeof _0x848d26){const _0x7dfab2=_0xe6cedd['model']['document']['getRootNames']()[0x0];_0x47890b={[_0x7dfab2]:_0x848d26};}else _0x47890b=_0x848d26;const _0x2ba3bf=this['_fixMediaEmbeds'](_0x47890b,_0xe6cedd),_0x1b7716=function(_0xe3799c,_0x12ea24){for(const [_0x27753c,_0x48ce93]of _0xe3799c)_0x48ce93['classes']=_0x12ea24[_0x27753c]['classList']['value']['replace']('ck-focused','');return _0xe3799c;}(this['_sortRoots'](_0xe6cedd)['reduce']((_0x180770,_0x1c2e5e)=>(_0x180770['push']([_0x1c2e5e,{'content':_0x2ba3bf[_0x1c2e5e],'classes':''}]),_0x180770),[]),_0x523c5);return _0x1b7716;}['_fixMediaEmbeds'](_0x423bc0,_0x3aa6f0){if(!_0x3aa6f0['plugins']['has']('MediaEmbedEditing'))return _0x423bc0;const _0x3a9fd7=_0x3aa6f0['plugins']['get']('MediaEmbedEditing');for(const [_0x307a65,_0x185607]of Object['entries'](_0x423bc0)){const _0x2c4550=document['createElement']('div');_0x2c4550['innerHTML']=_0x185607,(_0x2c4550['querySelectorAll']('figure.media')['forEach'](_0x4144da=>{const _0x5ec888=_0x4144da['querySelector']('oembed');if(_0x5ec888){const _0xd20631=_0x5ec888['getAttribute']('url');if(_0xd20631){const _0x170be5=_0x3a9fd7['registry']['getMediaViewElement'](new _0x27ab5e(_0x3aa6f0['editing']['view']['document']),_0xd20631,{'elementName':'','renderForEditingView':!0x0}),_0x537cfe=document['createElement']('div');_0x537cfe['classList']['add']('ck-media__wrapper'),_0x170be5['render'](_0x537cfe,_0x3aa6f0['editing']['view']['domConverter']),_0x5ec888['replaceWith'](_0x537cfe);}}}),_0x423bc0[_0x307a65]=_0x2c4550['innerHTML']);}return _0x423bc0;}['_sortRoots'](_0xb0c678){if(!function(_0xfd27ca){return void 0x0!==_0xfd27ca['getRootsAttributes'];}(_0xb0c678))return _0xb0c678['model']['document']['getRootNames']();const _0x10a633=[],_0x2d1910=new Map();for(const _0x2c8323 of _0xb0c678['model']['document']['getRootNames']()){const _0x5ac920=_0xb0c678['editing']['view']['getDomRoot'](_0x2c8323)['getClientRects']()['item'](0x0);_0x10a633['push'](_0x2c8323),_0x2d1910['set'](_0x2c8323,_0x5ac920);}return _0x10a633['sort']((_0xb07183,_0x19317a)=>{const _0x2b6279=_0x2d1910['get'](_0xb07183),_0x5cbd43=_0x2d1910['get'](_0x19317a);return _0x2b6279['y']-_0x5cbd43['y']||_0x2b6279['x']-_0x5cbd43['x'];}),_0x10a633;}}class Ue extends _0x21b897{static get['requires'](){return[re,_0x591aba];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34be9c){super(_0x34be9c),_0x34be9c['commands']['add']('previewFinalContent',new te(this['editor'])),_0x34be9c['config']['define']('trackChanges.preview.renderFunction',(_0x294bf5,_0x32e49a)=>{for(const _0x402636 of _0x32e49a)_0x294bf5['appendChild'](_0x402636);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|