@ckeditor/ckeditor5-track-changes 47.2.0-alpha.3 → 47.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x5b7c3b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x151a85,_0xa7a720){super(),this['id']=_0xa7a720['id'],this['type']=_0xa7a720['type'],this['subType']=_0xa7a720['subType']||null,this['author']=_0xa7a720['author'],this['creator']=_0xa7a720['creator']||_0xa7a720['author'],this['isExternal']=Boolean(_0xa7a720['attributes']&&_0xa7a720['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xa7a720['originalSuggestionId']||null,this['_model']=_0x151a85,this['_onAccept']=_0xa7a720['onAccept'],this['_onDiscard']=_0xa7a720['onDiscard'],this['_onAttributesChange']=_0xa7a720['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xa7a720['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 _0x555791=this;for(;_0x555791['previous'];)_0x555791=_0x555791['previous'];return _0x555791;}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'](_0x4cd383){this['_markerNames']['add'](_0x4cd383);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x16f154=>this['_model']['markers']['get'](_0x16f154))['filter'](_0x4d82c9=>_0x4d82c9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1a0438=>{for(const _0x5040fd of this['getMarkers']())_0x1a0438['removeMarker'](_0x5040fd);}),this['_markerNames']['clear']();}['removeMarker'](_0x1b1f6a){this['_model']['change'](_0x2e2e91=>{_0x2e2e91['removeMarker'](_0x1b1f6a);}),this['_markerNames']['delete'](_0x1b1f6a);}['addRange'](_0x4e417f){const _0x2a5a5c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x2a5a5c),this['_model']['change'](_0x4615da=>{_0x4615da['addMarker'](_0x2a5a5c,{'range':_0x4e417f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x9f03ee){for(const _0x26e8d5 of this['getRanges']())if(_0x26e8d5['isIntersecting'](_0x9f03ee))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x558fff=>_0x558fff['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xb3aea,_0x249900)=>[..._0xb3aea,..._0x249900['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x977da9=this['getRanges']();if(0x1!=_0x977da9['length'])return null;const _0x4058be=_0x977da9[0x0],_0x5acf15=_0x4058be['start']['nodeAfter'],_0xab9d40=_0x4058be['end']['nodeBefore'];return _0x5acf15 instanceof _0x3aecfb?_0x5acf15!=_0xab9d40?null:_0x5acf15: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 _0x3dc86f=[];let _0x1c46f8=this['head'];for(;_0x1c46f8;)_0x3dc86f['push'](_0x1c46f8),_0x1c46f8=_0x1c46f8['next'];return _0x3dc86f;}['setAttribute'](_0x41d15e,_0x20101c){const _0x479130=_0x52e560(this['attributes']);_0x52ae7e(_0x479130,_0x41d15e,_0x20101c),_0x30af54(_0x479130,this['attributes'])||(this['attributes']=_0x479130,this['_onAttributesChange'](_0x479130));}['removeAttribute'](_0x159f33){const _0x7a7f9a=_0x52e560(this['attributes']);_0x302388(_0x7a7f9a,_0x159f33),_0x30af54(_0x7a7f9a,this['attributes'])||(this['attributes']=_0x7a7f9a,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 _0x2844ab()['substr'](0x1,0x5);}}function o(_0x591f1f,_0x222a85,_0x3cfab1){const _0x23018f=_0x591f1f['t'],t=_0x591f1f['t'];switch(_0x222a85){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',_0x3cfab1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3cfab1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3cfab1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3cfab1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3cfab1);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',_0x3cfab1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3cfab1);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',_0x3cfab1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3cfab1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3cfab1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3cfab1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3cfab1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3cfab1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3cfab1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3cfab1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3cfab1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3cfab1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3cfab1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3cfab1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3cfab1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3cfab1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3cfab1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3cfab1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3cfab1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3cfab1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3cfab1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3cfab1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3cfab1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3cfab1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3cfab1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3cfab1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3cfab1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3cfab1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3cfab1);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3cfab1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3cfab1);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'},_0x3cfab1);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_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'},_0x3cfab1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3cfab1);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3cfab1);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3cfab1);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3cfab1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3cfab1);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'},_0x3cfab1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3cfab1);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 _0x23018f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3cfab1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x23018f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3cfab1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3cfab1);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'},_0x3cfab1);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'},_0x3cfab1);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'},_0x3cfab1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x222a85;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x210df9,_0x27873a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x210df9,this['_locale']=_0x27873a;}['getDescriptions'](_0x4b51b7){const _0x1126f9=[],_0x5d38d8=new Set(),_0x1b6cc8=new Set();for(let _0x1a0bb1=0x0;_0x1a0bb1<_0x4b51b7['length'];_0x1a0bb1++){const _0x1d2db1=_0x4b51b7[_0x1a0bb1];if(!_0x1d2db1['isInContent'])continue;const _0x59a4ce=this['_handleCustomCallbackDescription'](_0x1d2db1);if(_0x59a4ce){if(null!=_0x1d2db1['subType']){if(_0x5d38d8['has'](_0x1d2db1['subType']))continue;_0x5d38d8['add'](_0x1d2db1['subType']);}_0x1126f9['push'](_0x59a4ce);}else{if('attribute'==_0x1d2db1['type']){const _0xdf2053=_0x1d2db1['data']['key'];if(_0x1b6cc8['has'](_0xdf2053))continue;_0x1b6cc8['add'](_0x1d2db1['data']['key']),_0xdf2053==m?this['_handleRenameSuggestionDescription'](_0x1126f9,_0x1d2db1):this['_handleAttributeSuggestionDescription'](_0x1126f9,_0x1d2db1);continue;}'insertion'!=_0x1d2db1['type']&&'deletion'!=_0x1d2db1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1126f9,_0x1d2db1,_0x4b51b7[_0x1a0bb1+0x1]);}}return this['_resolveDescriptionItems'](_0x1126f9);}['registerDescriptionCallback'](_0x281a91){this['_customCallbacks']['push'](_0x281a91);}['registerElementLabel'](_0x18e440,_0x267540,_0x18f217=_0x5b2bcf['normal']){'function'==typeof _0x18e440?_0x21ebcb(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18e440,'label':_0x267540,'priority':_0x18f217}):this['_itemLabels']['set'](_0x18e440,_0x267540);}['registerAttributeLabel'](_0x3b97e9,_0x5c0e04){this['_attributeLabels']['set'](_0x3b97e9,_0x5c0e04);}['getItemLabel'](_0xd2f87d,_0x3f0cec=0x1){let _0x339e21;for(const _0x34b17e of this['_itemLabelsCallbacks'])if(_0x34b17e['matchingCallback'](_0xd2f87d)){_0x339e21=_0x34b17e['label'];break;}return _0x339e21||(_0x339e21=this['_itemLabels']['get'](_0xd2f87d['name'])),_0x339e21?_0x339e21(_0x3f0cec):0x1!==_0x3f0cec?_0x3f0cec+'\x20'+_0xd2f87d['name']+'s':''+_0xd2f87d['name'];}['_addDescriptionItems'](_0x127c0e,_0x7ef21e){const _0x4ca9f6=_0x7ef21e['getFirstRange']()['getWalker'](),_0x33c837='insertion'==_0x7ef21e['type']?'add':'remove';for(const _0x56d7b5 of _0x4ca9f6){const _0xfcd978=_0x56d7b5['item'],_0x303270=_0x127c0e[_0x127c0e['length']-0x1];if(_0xfcd978['is']('$textProxy'))_0x303270&&_0x303270['type']['indexOf']('Container')>-0x1&&_0x127c0e['pop'](),_0x303270&&'text'==_0x303270['type']?_0x303270[_0x33c837]+=_0xfcd978['data']:_0x127c0e['push']({'type':'text','add':'add'==_0x33c837?_0xfcd978['data']:'','remove':'remove'==_0x33c837?_0xfcd978['data']:''});else{if(this['_schema']['isObject'](_0xfcd978)){const _0x404546=_0xfcd978;if(_0x303270&&_0x303270['type']['indexOf']('Container')>-0x1&&_0x127c0e['pop'](),'elementEnd'==_0x56d7b5['type'])continue;_0x303270&&_0x303270['type']==_0x33c837+'Object'&&_0x303270['element']['name']==_0x404546['name']?_0x303270['quantity']++:_0x127c0e['push']({'type':_0x33c837+'Object','element':_0x404546,'quantity':0x1}),_0x4ca9f6['skip'](_0x7ce87=>!('elementEnd'==_0x7ce87['type']&&_0x7ce87['item']==_0xfcd978));}else{if(this['_schema']['checkChild'](_0xfcd978,'$text')||_0xfcd978['is']('element','softBreak')){const _0x1c42fa=_0xfcd978;if('add'==_0x33c837&&'elementStart'==_0x56d7b5['type']||'remove'==_0x33c837&&'elementEnd'==_0x56d7b5['type'])continue;if(_0x303270&&-0x1==_0x303270['type']['indexOf']('Container')){'text'==_0x303270['type']&&(_0x303270[_0x33c837]+='\x0a');continue;}let _0x4c3b24;if(_0x4c3b24='add'==_0x33c837?_0x1c42fa['nextSibling']&&!this['_schema']['isObject'](_0x1c42fa['nextSibling'])?_0x1c42fa['nextSibling']:null:_0x1c42fa['previousSibling']&&!this['_schema']['isObject'](_0x1c42fa['previousSibling'])?_0x1c42fa['previousSibling']:null,_0x1c42fa['isEmpty']||_0x4c3b24&&_0x4c3b24['isEmpty']){const _0x43c653=_0x4c3b24&&_0x4c3b24['isEmpty']?_0x4c3b24:_0x1c42fa;_0x303270&&_0x303270['type']==_0x33c837+'EmptyContainer'&&_0x303270['element']['name']==_0x43c653['name']?_0x303270['quantity']++:_0x127c0e['push']({'type':_0x33c837+'EmptyContainer','element':_0x43c653,'quantity':0x1});}else _0x127c0e['push']({'type':_0x33c837+'Container','element':_0x1c42fa});}}}}}['_resolveDescriptionItems'](_0x41a742){const _0x32e5c9=this['_locale'],_0x320af5=[],_0x11f290=[],_0x4b604d=[];for(const _0x3b2cdb of _0x41a742)switch(_0x3b2cdb['type']){case'text':if(_0x3b2cdb['add']=_0x3b2cdb['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3b2cdb['remove']=_0x3b2cdb['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3b2cdb['add']&&''!=_0x3b2cdb['remove']){_0x320af5['push']({'type':'replace','content':o(_0x32e5c9,'REPLACE_TEXT',['\x22'+_0x3b2cdb['remove']+'\x22','\x22'+_0x3b2cdb['add']+'\x22'])});continue;}if(null!=_0x3b2cdb['add']['match'](/^ +$/)){_0x320af5['push']({'type':'insertion','content':o(_0x32e5c9,'*Insert:*\x20%0',o(_0x32e5c9,'ELEMENT_SPACE',_0x3b2cdb['add']['length']))});continue;}if(null!=_0x3b2cdb['remove']['match'](/^ +$/)){_0x320af5['push']({'type':'deletion','content':o(_0x32e5c9,'*Remove:*\x20%0',o(_0x32e5c9,'ELEMENT_SPACE',_0x3b2cdb['remove']['length']))});continue;}if(''!=_0x3b2cdb['add']){_0x320af5['push']({'type':'insertion','content':o(_0x32e5c9,'*Insert:*\x20%0','\x22'+_0x3b2cdb['add']+'\x22')});continue;}_0x320af5['push']({'type':'deletion','content':o(_0x32e5c9,'*Remove:*\x20%0','\x22'+_0x3b2cdb['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x320af5['push']({'type':'insertion','content':o(_0x32e5c9,'*Insert:*\x20%0',this['getItemLabel'](_0x3b2cdb['element'],_0x3b2cdb['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x320af5['push']({'type':'deletion','content':o(_0x32e5c9,'*Remove:*\x20%0',this['getItemLabel'](_0x3b2cdb['element'],_0x3b2cdb['quantity']))});continue;case'addContainer':_0x320af5['push']({'type':'insertion','content':o(_0x32e5c9,'*Split:*\x20%0',this['getItemLabel'](_0x3b2cdb['element'],_0x3b2cdb['quantity']))});continue;case'removeContainer':_0x320af5['push']({'type':'deletion','content':o(_0x32e5c9,'*Merge:*\x20%0',this['getItemLabel'](_0x3b2cdb['element'],_0x3b2cdb['quantity']))});continue;case'addFormat':_0x11f290['push'](_0x3b2cdb['key']);continue;case'removeFormat':_0x4b604d['push'](_0x3b2cdb['key']);continue;default:_0x320af5['push'](_0x3b2cdb);}if(_0x11f290['length']){const _0x1bf798=_0x11f290['map'](_0x214974=>this['_attributeLabels']['has'](_0x214974)?this['_attributeLabels']['get'](_0x214974):_0x214974)['join'](',\x20');_0x320af5['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1bf798)});}if(_0x4b604d['length']){const _0xa59a12=_0x4b604d['map'](_0x313b0f=>this['_attributeLabels']['has'](_0x313b0f)?this['_attributeLabels']['get'](_0x313b0f):_0x313b0f)['join'](',\x20');_0x320af5['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xa59a12)});}return _0x320af5;}['_handleCustomCallbackDescription'](_0x365c7f){for(const _0x529c07 of this['_customCallbacks']){const _0x3fd4c9=_0x529c07(_0x365c7f);if(_0x3fd4c9&&'type'in _0x3fd4c9)return _0x3fd4c9;}}['_handleAttributeSuggestionDescription'](_0x304157,_0x422b3c){const _0x2bfac7=_0x422b3c['data'],_0x50a174=void 0x0===_0x2bfac7['newValue']?'removeFormat':'addFormat';_0x304157['push']({'type':_0x50a174,'key':_0x2bfac7['key']});}['_handleRenameSuggestionDescription'](_0x34221f,_0x495c13){_0x34221f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x495c13['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3bff73,_0x56f6ee,_0x40a838){if(this['_addDescriptionItems'](_0x3bff73,_0x56f6ee),_0x40a838&&_0x40a838['getFirstRange']()&&!_0x56f6ee['getFirstRange']()['end']['isEqual'](_0x40a838['getFirstRange']()['start'])){const _0x4f122b=_0x3bff73[_0x3bff73['length']-0x1],_0x2cb323='insertion'==_0x56f6ee['type']?'add':'remove';_0x4f122b&&'text'==_0x4f122b['type']&&(_0x4f122b[_0x2cb323]+='\x0a');}}}class R extends _0x147a49{['afterInit'](){const _0x1e83c7=this['editor'],_0x14dd0c=_0x1e83c7['plugins']['get']('TrackChangesEditing');_0x1e83c7['commands']['get']('showAIAssistant')&&_0x14dd0c['enableCommand']('showAIAssistant');}}class T extends _0x147a49{['afterInit'](){const _0x4de6ac=this['editor'],_0x7441bf=_0x4de6ac['plugins']['get']('TrackChangesEditing');_0x4de6ac['commands']['get']('toggleAi')&&_0x7441bf['enableCommand']('toggleAi');}}class E extends _0x147a49{['afterInit'](){const _0x1bb7b1=this['editor'],_0x44d094=_0x1bb7b1['plugins']['get']('TrackChangesEditing');_0x1bb7b1['commands']['get']('aiQuickAction')&&_0x44d094['enableCommand']('aiQuickAction');}}class U extends _0x147a49{['afterInit'](){const _0x45b88a=this['editor'],_0x1c6005=_0x45b88a['locale'];if(!_0x45b88a['plugins']['has']('AlignmentEditing'))return;const _0x1ff411=_0x45b88a['plugins']['get']('TrackChangesEditing');_0x1ff411['enableDefaultAttributesIntegration']('alignment'),_0x1ff411['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1c6005,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56cf26=this['editor'],_0x120833=_0x56cf26['locale'];_0x56cf26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x381ee0=>{if('formatBlock'!=_0x381ee0['type'])return;const {data:_0x235277}=_0x381ee0;if(_0x235277&&'alignment'==_0x235277['commandName']){const _0x27d4be=_0x235277['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x120833,'*Format:*\x20%0',function(_0x5313b8){switch(_0x5313b8){case'left':return o(_0x120833,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x120833,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x120833,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x120833,'FORMAT_JUSTIFY_TEXT');}}(_0x27d4be))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x147a49{['afterInit'](){const _0x3a1c62=this['editor'],_0x47458c=_0x3a1c62['plugins']['get']('TrackChangesEditing'),_0x44eebd=_0x3a1c62['locale'];for(const _0xcc0bb8 of ti){if(!_0x3a1c62['plugins']['has'](_0xcc0bb8))continue;const _0x80e71=_0xcc0bb8['slice'](0x0,-0x7)['toLowerCase'](),_0x5d5714='FORMAT_'+_0x80e71['toUpperCase']();_0x47458c['enableDefaultAttributesIntegration'](_0x80e71),_0x47458c['descriptionFactory']['registerAttributeLabel'](_0x80e71,o(_0x44eebd,_0x5d5714));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440e1c=this['editor'],_0x5c474c=_0x440e1c['locale'],_0x3f84a2=_0x440e1c['plugins']['get']('TrackChangesEditing');function _0x3b5001(_0x2c24df,_0x50ba77){_0x3f84a2['descriptionFactory']['registerDescriptionCallback'](_0x4da749=>{if('formatInline'!=_0x4da749['type'])return;const {data:_0x1146d7}=_0x4da749;return _0x1146d7&&_0x1146d7['commandName']===_0x2c24df?_0x1146d7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c474c,'*Format:*\x20%0',_0x50ba77)}:{'type':'format','content':o(_0x5c474c,'*Remove\x20format:*\x20%0',_0x50ba77)}:void 0x0;});}_0x3b5001('bold',o(_0x5c474c,'FORMAT_BOLD')),_0x3b5001('italic',o(_0x5c474c,'FORMAT_ITALIC')),_0x3b5001('underline',o(_0x5c474c,'FORMAT_UNDERLINE')),_0x3b5001('code',o(_0x5c474c,'FORMAT_CODE')),_0x3b5001('strikethrough',o(_0x5c474c,'FORMAT_STRIKETHROUGH')),_0x3b5001('subscript',o(_0x5c474c,'FORMAT_SUBSCRIPT')),_0x3b5001('superscript',o(_0x5c474c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x147a49{['afterInit'](){const _0x104ec7=this['editor'],_0x1aabd1=_0x104ec7['locale'];if(!_0x104ec7['plugins']['has']('BlockQuoteEditing'))return;const _0x63f4e4=_0x104ec7['plugins']['get']('TrackChangesEditing'),_0x3fe708=this['editor']['commands']['get']('blockQuote');_0x63f4e4['enableCommand']('blockQuote',(_0x4dc918,_0x177948={})=>{const _0x49eda4=this['editor']['model']['document']['selection'],_0x5cf9b3=_0x177948&&void 0x0!==_0x177948['forceValue']?_0x177948['forceValue']:!_0x3fe708['value'];let _0xb1039=[];if(_0x5cf9b3){const _0x22db1b=Array['from'](_0x49eda4['getSelectedBlocks']())['filter'](_0x39842c=>oo(_0x39842c)||function(_0x53cd6b,_0x4eff08){const _0xf3bb24=_0x4eff08['checkChild'](_0x53cd6b['parent'],'blockQuote'),_0x1f6fbf=_0x4eff08['checkChild'](['$root','blockQuote'],_0x53cd6b);return _0xf3bb24&&_0x1f6fbf;}(_0x39842c,this['editor']['model']['schema']));_0xb1039=to(_0x22db1b,_0x104ec7['model']);}else{const _0x46d77a=Array['from'](_0x49eda4['getSelectedBlocks']())['filter'](_0x1586c8=>oo(_0x1586c8));_0xb1039=to(_0x46d77a,_0x104ec7['model']);}_0x104ec7['model']['change'](()=>{for(const _0x291845 of _0xb1039)_0x63f4e4['markBlockFormat'](_0x291845,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5cf9b3}]});});}),_0x63f4e4['descriptionFactory']['registerDescriptionCallback'](_0x1c5eef=>{const {data:_0x1736a1}=_0x1c5eef;if(_0x1736a1&&'blockQuote'==_0x1736a1['commandName']){const _0x5518b0=o(_0x1aabd1,'ELEMENT_BLOCK_QUOTE');return _0x1736a1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1aabd1,'*Set\x20format:*\x20%0',_0x5518b0)}:{'type':'format','content':o(_0x1aabd1,'*Remove\x20format:*\x20%0',_0x5518b0)};}});}}function oo(_0x205641){return'blockQuote'==_0x205641['parent']['name'];}class G extends _0x147a49{['afterInit'](){const _0x47d972=this['editor'],_0x232735=_0x47d972['locale'],_0x49ab11=_0x47d972['plugins']['get']('TrackChangesEditing');_0x47d972['plugins']['has']('BookmarkEditing')&&(_0x49ab11['enableCommand']('insertBookmark'),_0x49ab11['enableDefaultAttributesIntegration']('updateBookmark'),_0x49ab11['descriptionFactory']['registerDescriptionCallback'](_0x1c98d1=>{if('insertion'!=_0x1c98d1['type']&&'deletion'!=_0x1c98d1['type']&&'attribute'!=_0x1c98d1['type'])return;const _0x4140cb=_0x1c98d1['getContainedElement']();if(null==_0x4140cb)return;if(!_0x4140cb['is']('element','bookmark'))return;const _0x3b053e=_0x4140cb['getAttribute']('bookmarkId');if('insertion'==_0x1c98d1['type'])return{'type':'insertion','content':o(_0x232735,'*Insert:*\x20%0','\x22'+_0x3b053e+'\x22\x20'+o(_0x232735,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c98d1['type'])return{'type':'deletion','content':o(_0x232735,'*Remove:*\x20%0','\x22'+_0x3b053e+'\x22\x20'+o(_0x232735,'ELEMENT_BOOKMARK'))};const {data:_0x3039ab}=_0x1c98d1;if(!_0x3039ab||'bookmarkId'!=_0x3039ab['key'])return;return{'type':'format','content':o(_0x232735,'*Set\x20bookmark:*\x20%0','\x22'+_0x3039ab['newValue']+'\x22')};}));}}class L extends _0x147a49{['afterInit'](){const _0x558e17=this['editor'];_0x558e17['plugins']['has']('CaseChange')&&(_0x558e17['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x558e17['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x558e17['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x147a49{['afterInit'](){const _0x60487d=this['editor'];_0x60487d['commands']['get']('ckbox')&&_0x60487d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x147a49{['afterInit'](){const _0xd3f74d=this['editor'];if(!_0xd3f74d['plugins']['has']('CodeBlock'))return;const _0x240c6a=_0xd3f74d['plugins']['get']('TrackChangesEditing'),_0x59c105=_0xd3f74d['locale'],_0x3e069a=_0xd3f74d['config']['get']('codeBlock')['languages'],_0x500f30=_0xd3f74d['commands']['get']('codeBlock');_0x240c6a['enableCommand']('indentCodeBlock'),_0x240c6a['enableCommand']('outdentCodeBlock'),_0x240c6a['enableCommand']('codeBlock',(_0x277516,_0x1660f2={})=>{const _0x46bbdd=_0xd3f74d['model'],_0x3d4ecf=_0xd3f74d['model']['document']['selection'],_0x4651f3=_0x1660f2&&void 0x0!==_0x1660f2['forceValue']?_0x1660f2['forceValue']:!_0x500f30['value'];let _0x5e195d;_0x1660f2['language']||(_0x1660f2['language']=_0x3e069a[0x0]['language']),_0x5e195d=_0x4651f3?Array['from'](_0x3d4ecf['getSelectedBlocks']())['filter'](_0x528419=>co(_0x528419)||function(_0x1af393,_0x3434b0){if(_0x1af393['is']('rootElement')||_0x3434b0['isLimit'](_0x1af393))return!0x1;return _0x3434b0['checkChild'](_0x1af393['parent'],'codeBlock');}(_0x528419,_0x46bbdd['schema'])):Array['from'](_0x3d4ecf['getSelectedBlocks']())['filter'](_0x45d3d0=>co(_0x45d3d0));const _0x26df76=to(_0x5e195d,_0x46bbdd);_0x46bbdd['change'](()=>{for(const _0x77cb14 of _0x26df76)_0x240c6a['markBlockFormat'](_0x77cb14,{'commandName':'codeBlock','commandParams':[{..._0x1660f2,'forceValue':_0x4651f3}],'formatGroupId':'blockName'});});}),(_0x240c6a['descriptionFactory']['registerElementLabel']('codeBlock',_0x3e6596=>o(_0x59c105,'ELEMENT_CODE_BLOCK',_0x3e6596)),_0x240c6a['descriptionFactory']['registerDescriptionCallback'](_0xf0066e=>{if('formatBlock'!=_0xf0066e['type'])return;const _0x24947d=_0x59c105['t'],{data:_0x2569b2}=_0xf0066e;if(!_0x2569b2||'codeBlock'!=_0x2569b2['commandName'])return;const _0x3176e6=_0x2569b2['commandParams'][0x0]['language'],_0xb30dd2=_0x24947d(_0x3e069a['find'](_0x1d0a98=>_0x1d0a98['language']===_0x3176e6)['label'])['toLowerCase']();return _0x2569b2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x59c105,'*Set\x20format:*\x20%0',o(_0x59c105,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xb30dd2+')')}:{'type':'format','content':o(_0x59c105,'*Remove\x20format:*\x20%0',o(_0x59c105,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3962fc){return'codeBlock'==_0x3962fc['name'];}class z extends _0x147a49{['afterInit'](){const _0x280360=this['editor'];if(!_0x280360['plugins']['has']('CommentsEditing'))return;_0x280360['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x147a49{static get['requires'](){return[_0x28754f];}['init'](){const _0x29c8b6=this['editor'],_0x481b24=_0x29c8b6['plugins']['get']('TrackChangesEditing');_0x481b24['enableCommand']('delete');const _0x4147bf=_0x29c8b6['commands']['get']('deleteForward');_0x481b24['enableCommand']('deleteForward',(_0x2f8990,_0x351e9b={})=>{const _0x30828a=_0x29c8b6['model']['createSelection'](_0x29c8b6['model']['document']['selection']);_0x30828a['isCollapsed']&&_0x29c8b6['model']['modifySelection'](_0x30828a,{'direction':'forward','unit':_0x351e9b['unit']});const _0x5970c0=_0x30828a['getFirstRange'](),_0x5ee0d3=_0x468db3['fromRange'](_0x5970c0);let _0x2e0c37;_0x2f8990(_0x351e9b),_0x2e0c37='$graveyard'==_0x5ee0d3['root']['rootName']?_0x29c8b6['model']['createRange'](_0x5970c0['start']):_0x29c8b6['model']['createRange'](_0x5ee0d3['start'],_0x5ee0d3['end']),_0x5ee0d3['detach'](),_0x29c8b6['model']['enqueueChange'](_0x4147bf['buffer']['batch'],_0x4442dd=>{_0x4147bf['buffer']['lock'](),_0x4442dd['setSelection'](_0x4442dd['createRange'](_0x2e0c37['end'])),_0x4147bf['buffer']['unlock']();});});}}class W extends _0x147a49{['afterInit'](){const _0x584b29=this['editor'];if(!_0x584b29['plugins']['has']('ListEditing'))return;const _0x2e83c0=_0x584b29['locale'],_0x4fbb63=_0x584b29['plugins']['get']('TrackChangesEditing'),_0x55a53f=_0x584b29['plugins']['has']('TodoListEditing'),_0xed7183=!!_0x584b29['config']['get']('list.multiBlock');function _0x3ad5c9(_0x125ff2){return{'type':'format','content':''+o(_0x2e83c0,'*Set\x20format:*\x20%0',_0x125ff2)};}function _0x590dce(_0x232636){return{'type':'format','content':''+o(_0x2e83c0,'*Remove\x20format:*\x20%0',_0x232636)};}_0x4fbb63['enableDefaultAttributesIntegration']('numberedList'),_0x4fbb63['enableDefaultAttributesIntegration']('bulletedList'),_0x4fbb63['enableDefaultAttributesIntegration']('customNumberedList'),_0x4fbb63['enableDefaultAttributesIntegration']('customBulletedList'),_0x4fbb63['enableDefaultAttributesIntegration']('indentList'),_0x4fbb63['enableDefaultAttributesIntegration']('outdentList'),_0x4fbb63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4fbb63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xed7183&&(_0x4fbb63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4fbb63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x55a53f&&(_0x4fbb63['enableDefaultAttributesIntegration']('todoList'),_0x4fbb63['enableDefaultAttributesIntegration']('checkTodoList'),_0x4fbb63['descriptionFactory']['registerDescriptionCallback'](_0x41bc87=>{const {data:_0x35b94d}=_0x41bc87;if(_0x35b94d&&'todoListChecked'==_0x35b94d['key'])return{'type':'format','content':_0x35b94d['newValue']?o(_0x2e83c0,'*Check\x20item*'):o(_0x2e83c0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1ff912=>{if(_0x1ff912['batch']['isUndo'])return!0x1;let _0x21d918=!0x1;const _0x4fc94a=_0x4fbb63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20f759=>'todoListChecked'===_0x4fbb63['_getAttributeKey'](_0x20f759));for(const _0x59da69 of _0x4fc94a){'todo'!=_0x59da69['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4fbb63['_findSuggestions'](_0x59da69['getFirstRange'](),'attribute')['find'](_0x213ebf=>'listType'===_0x4fbb63['_getAttributeKey'](_0x213ebf['suggestion']))||(_0x1ff912['removeMarker'](_0x59da69['getFirstMarker']()),_0x21d918=!0x0));}return _0x21d918;})),_0x4fbb63['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e83c0,'FORMAT_INDENT'));const _0x400be7={'type':'format','content':''};_0x4fbb63['descriptionFactory']['registerDescriptionCallback'](_0x5977cd=>{const {data:_0x45cbe8}=_0x5977cd;if(!_0x45cbe8||'listType'!=_0x45cbe8['key'])return;let _0x1e4266=_0x5977cd['head'];for(;_0x1e4266;){if(_0x1e4266['data']&&(('listStyle'==_0x1e4266['data']['key']||'listMarkerStyle'==_0x1e4266['data']['key'])&&(_0x1e4266['data']['newValue']&&'default'!=_0x1e4266['data']['newValue']||'default'!=_0x1e4266['data']['oldValue']&&!_0x45cbe8['newValue'])||!_0xed7183&&_0x1e4266['data']['key']==m))return _0x400be7;_0x1e4266=_0x1e4266['next'];}if(null==_0x45cbe8['newValue'])switch(_0x45cbe8['oldValue']){case'bulleted':return _0x590dce(o(_0x2e83c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x590dce(o(_0x2e83c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x590dce(o(_0x2e83c0,'ELEMENT_TODO_LIST'));}switch(_0x45cbe8['newValue']){case'bulleted':return _0x3ad5c9(o(_0x2e83c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ad5c9(o(_0x2e83c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ad5c9(o(_0x2e83c0,'ELEMENT_TODO_LIST'));}}),_0x4fbb63['descriptionFactory']['registerDescriptionCallback'](_0x3b8917=>{const {data:_0x58ca15}=_0x3b8917;if(_0x58ca15&&'listIndent'==_0x58ca15['key'])return null==_0x58ca15['newValue']||null==_0x58ca15['oldValue']&&0x0==_0x58ca15['newValue']?_0x400be7:void 0x0;}),_0x4fbb63['descriptionFactory']['registerDescriptionCallback'](_0x3332af=>{if('attribute'!=_0x3332af['type'])return;const {data:_0x3ccd76}=_0x3332af;if(!_0x3ccd76||'listItemId'!=_0x3ccd76['key'])return;const _0x5ae23c=Te(_0x3332af);return'newValue'==_0x5ae23c?{'type':'format','content':o(_0x2e83c0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5ae23c?{'type':'format','content':o(_0x2e83c0,'*Split:*\x20list\x20item')}:_0x400be7;}),_0x584b29['model']['document']['registerPostFixer'](_0x10b764=>this['listItemIdFixer'](_0x10b764)),_0x584b29['model']['document']['registerPostFixer'](_0x29fcc8=>this['noTrackChangesFixer'](_0x29fcc8)),_0x584b29['model']['document']['on']('change:data',(_0x2ebf1c,_0x2f4a83)=>{if(_0x2f4a83['isUndo']||!_0x2f4a83['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x559ce9){if(_0x559ce9['batch']['isUndo']||!_0x559ce9['batch']['isLocal'])return!0x1;let _0xcbfee3=!0x1;const _0x458bb8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c77ca=>_0x1c77ca['data']&&'listItemId'==_0x1c77ca['data']['key'])['filter'](_0x536173=>_0x536173['data']['newValue']&&_0x536173['data']['oldValue']);for(const _0x247b85 of _0x458bb8)Te(_0x247b85)||(_0x559ce9['removeMarker'](_0x247b85['getFirstMarker']()),_0xcbfee3=!0x0);return _0xcbfee3;}['noTrackChangesFixer'](_0xcd506d){if(_0xcd506d['batch']['isUndo']||!_0xcd506d['batch']['isLocal'])return!0x1;const _0x2c9ea5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2c9ea5['trackChangesCommand']['value'])return!0x1;let _0x45e11e=!0x1;const _0x27e158=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x139956=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5abe6c=>'attribute'==_0x5abe6c['type'])['filter'](_0x1097bb=>_0x27e158['includes'](_0x1097bb['attributeKey']));if(0x0==_0x139956['length'])return _0x45e11e;for(const _0x55c1b7 of _0x139956){const _0x37aca0=_0x2c9ea5['_findSuggestions'](_0x55c1b7['range'],'attribute')['filter'](_0x1f3b40=>!_0x1f3b40['meta']['isNextTo'])['map'](_0x5252fa=>_0x5252fa['suggestion'])['filter'](_0x3650b8=>{const _0x1cfed8=_0x2c9ea5['_getAttributeKey'](_0x3650b8);return _0x27e158['includes'](_0x1cfed8);});if(_0x37aca0['length']){for(const _0x7697a5 of _0x37aca0)_0xcd506d['removeMarker'](_0x7697a5['getFirstMarker']());_0x45e11e=!0x0;}}return _0x45e11e;}['assureChains'](){const _0x38324c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41600d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32e46a;const _0x12564e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14b8a2=>{if(_0x14b8a2['data']['oldRange']||!_0x14b8a2['data']['newRange'])return null;if(!_0x14b8a2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1561dc}=_0x38324c['_splitMarkerName'](_0x14b8a2['name']);if(!_0x38324c['hasSuggestion'](_0x1561dc))return null;const _0x956d8a=_0x38324c['getSuggestion'](_0x1561dc);return _0x41600d['includes'](_0x956d8a['data']['key']);})['map'](_0x1cfca2=>{const {id:_0x33cf3c}=_0x38324c['_splitMarkerName'](_0x1cfca2['name']),_0x1af99c=_0x38324c['getSuggestion'](_0x33cf3c);return _0x32e46a=_0x1af99c['attributes']['groupId'],_0x1af99c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x12564e['size'])return;const _0x29de35=_0x38324c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b72b8=>'attribute'==_0x1b72b8['type']&&_0x1b72b8['data']&&_0x41600d['includes'](_0x1b72b8['data']['key'])&&_0x1b72b8['attributes']['groupId']!=_0x32e46a)['map'](_0x2dc3cc=>({'listItem':_0x2dc3cc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2dc3cc['attributes']['groupId']})),_0x23cf6a=new Set();for(const {groupId:_0x5402c4,listItem:_0x5e7f42}of _0x29de35)_0x12564e['has'](_0x5e7f42)&&_0x23cf6a['add'](_0x5402c4);for(const _0xd3521a of _0x38324c['getSuggestions']())_0x23cf6a['has'](_0xd3521a['attributes']['groupId'])&&_0xd3521a['setAttribute']('groupId',_0x32e46a);}['_supportLegacySuggestions'](){const _0xa02863=this['editor'],_0x40bc25=_0xa02863['locale'],_0x15fa6b=_0xa02863['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x15fa6b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4d427a,_0x15fa8d){const _0x14ac4e=[];for(let _0x2467d6 of _0x4d427a)_0x2467d6['start']['nodeAfter']===_0x2467d6['end']['parent']&&(_0x2467d6=_0xa02863['model']['createRange'](_0xa02863['model']['createPositionAt'](_0x2467d6['start']['nodeAfter'],0x0))),_0x14ac4e['push'](_0x2467d6);_0xa02863['model']['change'](_0x84f7d=>{const _0x573577=_0xa02863['model']['document']['selection'],_0x199fd8=Array['from'](_0x573577['getRanges']())['map'](_0x30a479=>_0x468db3['fromRange'](_0x30a479));_0x84f7d['setSelection'](_0x14ac4e),_0xa02863['commands']['get'](_0x15fa8d['commandName'])['refresh'](),_0x15fa8d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa02863['execute'](_0x15fa8d['commandName'],..._0x15fa8d['commandParams']),_0x84f7d['setSelection'](_0x199fd8);for(const _0x2479c3 of _0x199fd8)_0x2479c3['detach']();});}),_0x15fa6b['descriptionFactory']['registerElementLabel'](function(_0x3996fc){const _0x935561=!_0xa02863['model']['schema']['isObject'](_0x3996fc),_0x381dda=_0x3996fc['previousSibling'],_0x4e584f=_0x3996fc['nextSibling'],_0x3a4651=_0x3996fc['getAttribute']('listItemId'),_0x3f9d98=!_0x381dda||_0x381dda['getAttribute']('listItemId')!==_0x3a4651,_0x1f59b8=!_0x4e584f||_0x4e584f['getAttribute']('listItemId')!==_0x3a4651;return _0x935561&&Boolean(_0x3a4651)&&_0x3f9d98&&_0x1f59b8;},_0x595023=>o(_0x40bc25,'ELEMENT_LIST_ITEM',_0x595023));}['_registerLegacyDescription'](){const _0x3f9e24=this['editor'],_0x36ed23=_0x3f9e24['locale'];function _0x2d44f8(_0x845734){const _0x54669d=_0x3f9e24['commands']['get']('bulletedList')['value'],_0x3e8aa2=_0x3f9e24['commands']['get']('numberedList')['value'];return'numberedList'===_0x845734?_0x54669d:_0x3e8aa2;}_0x3f9e24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2a8001){if('formatBlock'!=_0x2a8001['type'])return;const {data:_0x6a24dd}=_0x2a8001;if(!_0x6a24dd)return;let _0x86d92b,_0x4312ef,_0x3a11a3,_0x4cc34a;switch(_0x6a24dd['commandName']){case'bulletedList':_0x3a11a3=_0x6a24dd['commandParams'][0x0]['forceValue'],_0x4cc34a=_0x2d44f8(_0x6a24dd['commandName']),_0x86d92b=_0x3a11a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4cc34a&&_0x3f9e24['config']['get']('list.multiBlock')||(_0x86d92b='*Change\x20to:*\x20%0'),_0x4312ef={'type':'format','content':o(_0x36ed23,_0x86d92b,o(_0x36ed23,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3a11a3=_0x6a24dd['commandParams'][0x0]['forceValue'],_0x4cc34a=_0x2d44f8(_0x6a24dd['commandName']),_0x86d92b=_0x3a11a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4cc34a&&_0x3f9e24['config']['get']('list.multiBlock')||(_0x86d92b='*Change\x20to:*\x20%0'),_0x4312ef={'type':'format','content':o(_0x36ed23,_0x86d92b,o(_0x36ed23,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x86d92b='*Indent:*\x20%0',_0x4312ef={'type':'format','content':o(_0x36ed23,_0x86d92b,o(_0x36ed23,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x86d92b=function(_0x10a519){const _0x2298f8=_0x10a519['getFirstRange']();let _0x5d3cdd=_0x2298f8['start']['nodeAfter'];for(;_0x5d3cdd&&_0x2298f8['containsItem'](_0x5d3cdd);){if(_0x5d3cdd['getAttribute']('listIndent')>0x0)return!0x1;_0x5d3cdd=_0x5d3cdd['nextSibling'];}return!0x0;}(_0x2a8001)?o(_0x36ed23,'*Format:*\x20remove\x20from\x20%0',o(_0x36ed23,function(_0x507795){return'ELEMENT_'+_0x507795['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2a8001))):o(_0x36ed23,'*Outdent:*\x20%0',o(_0x36ed23,'ELEMENT_LIST_ITEM')),_0x4312ef={'type':'format','content':_0x86d92b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x6a24dd['multipleBlocks']&&(_0x86d92b='*Merge:*\x20%0',_0x4312ef={'type':'deletion','content':o(_0x36ed23,_0x86d92b,o(_0x36ed23,'ELEMENT_LIST_ITEM'))});}return _0x4312ef;});}}function Te(_0x41224d){let _0x1c6e78=_0x41224d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1c6e78;){const _0x1caacb=_0x1c6e78['getAttribute']('listItemId');if(!_0x1caacb)return!0x1;if(_0x1caacb==_0x41224d['data']['newValue'])return'newValue';if(_0x1caacb==_0x41224d['data']['oldValue'])return'oldValue';_0x1c6e78=_0x1c6e78['previousSibling'];}return!0x1;}class H extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x16e389=this['editor']['config']['get']('list.properties'),_0x38ea6c=this['editor']['plugins']['get']('TrackChangesEditing');_0x16e389['styles']&&_0x38ea6c['enableDefaultAttributesIntegration']('listStyle'),_0x16e389['reversed']&&_0x38ea6c['enableDefaultAttributesIntegration']('listReversed'),_0x16e389['startIndex']&&_0x38ea6c['enableDefaultAttributesIntegration']('listStart');const _0x1af7a4={'type':'format','content':''};_0x38ea6c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xeb5903=this['editor']['locale'];_0x38ea6c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xeb5903,'FORMAT_LIST_REVERSED')),_0x38ea6c['descriptionFactory']['registerDescriptionCallback'](_0x1f7048=>{const {data:_0x483ec2}=_0x1f7048;if(_0x483ec2&&'listReversed'==_0x483ec2['key'])return null==_0x483ec2['newValue']||0x0==_0x483ec2['newValue']&&null==_0x483ec2['oldValue']?_0x1af7a4:void 0x0;}),_0x38ea6c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xeb5903,'FORMAT_LIST_START')),_0x38ea6c['descriptionFactory']['registerDescriptionCallback'](_0x11e733=>{const {data:_0x2bffed}=_0x11e733;if(_0x2bffed&&'listStart'==_0x2bffed['key'])return null==_0x2bffed['newValue']||0x1==_0x2bffed['newValue']&&null==_0x2bffed['oldValue']?_0x1af7a4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x21a20d=>{if(_0x21a20d['batch']['isUndo'])return!0x1;let _0x5488ba=!0x1;const _0x2aa5eb=_0x38ea6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1759f0=>{const _0x59d6f6=_0x38ea6c['_getAttributeKey'](_0x1759f0);return'listStart'==_0x59d6f6||'listReversed'==_0x59d6f6;});for(const _0x4e4535 of _0x2aa5eb){const _0x4b8700=_0x4e4535['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4b8700||'customNumbered'==_0x4b8700)continue;_0x38ea6c['_findSuggestions'](_0x4e4535['getFirstRange'](),'attribute')['find'](_0x48e3d4=>'listType'==_0x38ea6c['_getAttributeKey'](_0x48e3d4['suggestion']))||(_0x21a20d['removeMarker'](_0x4e4535['getFirstMarker']()),_0x5488ba=!0x0);}return _0x5488ba;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a1979){const _0x163095=this['editor']['locale'],{data:_0x1eb9ce}=_0x3a1979,_0x18a76b={'type':'format','content':''};if(!_0x1eb9ce||'listStyle'!=_0x1eb9ce['key'])return;if(!_0x1eb9ce['oldValue'])return'default'==_0x1eb9ce['newValue']?_0x18a76b:{'type':'format','content':''+o(_0x163095,'*Set\x20format:*\x20%0',o(_0x163095,this['_getTranslationKeyForListStyle'](_0x1eb9ce['newValue'])))};if(!_0x1eb9ce['newValue']){if('default'==_0x1eb9ce['oldValue'])return _0x18a76b;let _0x1de9cf=_0x3a1979['head'];for(;_0x1de9cf;){if(_0x1de9cf['data']&&'listType'==_0x1de9cf['data']['key']&&_0x1de9cf['data']['newValue'])return _0x18a76b;_0x1de9cf=_0x1de9cf['next'];}return{'type':'format','content':''+o(_0x163095,'*Remove\x20format:*\x20%0',o(_0x163095,this['_getTranslationKeyForListStyle'](_0x1eb9ce['oldValue'])))};}if('default'!=_0x1eb9ce['newValue'])return{'type':'format','content':''+o(_0x163095,'*Set\x20format:*\x20%0',o(_0x163095,this['_getTranslationKeyForListStyle'](_0x1eb9ce['newValue'])))};let _0x26d821=_0x3a1979['head'];for(;_0x26d821;){if(_0x26d821['data']&&'listType'==_0x26d821['data']['key']&&_0x26d821['data']['newValue']&&_0x26d821['data']['oldValue'])return _0x18a76b;_0x26d821=_0x26d821['next'];}return{'type':'format','content':o(_0x163095,'*Set\x20format:*\x20%0',o(_0x163095,'ELEMENT_'+_0x3a1979['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x35bd4d=this['editor'],_0x1f99c1=_0x35bd4d['locale'];_0x35bd4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52a5c2=>{if('formatBlock'!=_0x52a5c2['type'])return;const {data:_0x41fee5}=_0x52a5c2;if(!_0x41fee5)return;let _0xaa4a4f,_0x113c99;switch(_0x41fee5['commandName']){case'listStyle':_0xaa4a4f='*Change\x20to:*\x20%0',_0x113c99={'type':'format','content':o(_0x1f99c1,_0xaa4a4f,o(_0x1f99c1,this['_getTranslationKeyForListStyle'](_0x41fee5['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaa4a4f=_0x41fee5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x113c99={'type':'format','content':o(_0x1f99c1,_0xaa4a4f)};break;case'listStart':_0xaa4a4f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x113c99={'type':'format','content':o(_0x1f99c1,_0xaa4a4f,_0x41fee5['commandParams'][0x0]['startIndex'])};}return _0x113c99;});}['_getTranslationKeyForListStyle'](_0x514cf5){return'ELEMENT_'+function(_0x16a87b){if(ye['includes'](_0x16a87b))return'bulleted';if(Se['includes'](_0x16a87b))return'numbered';return null;}(_0x514cf5)['toUpperCase']()+'_LIST_'+_0x514cf5['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x147a49{['afterInit'](){const _0x3c925d=this['editor'];_0x3c925d['commands']['get']('emoji')&&_0x3c925d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x147a49{static get['requires'](){return[_0x38b7b4];}['init'](){const _0x306f3e=this['editor'],_0x17a62e=_0x306f3e['plugins']['get']('TrackChangesEditing'),_0x881c5e=_0x306f3e['commands']['get']('enter');_0x17a62e['enableCommand']('enter',()=>{_0x306f3e['model']['change'](_0x236ddf=>{const _0x4db3bb=_0x306f3e['model']['document']['selection'],_0xd6be75=_0x4db3bb['getFirstPosition'](),_0x41e433=_0x468db3['fromRange'](_0x4db3bb['getFirstRange']());if(_0x881c5e['enterBlock'](_0x236ddf)){const _0x40b77c=_0x306f3e['model']['createPositionAt'](_0xd6be75['parent']['nextSibling'],0x0),_0x473afa=_0x236ddf['createRange'](_0xd6be75,_0x40b77c);_0x17a62e['markInsertion'](_0x473afa);}else _0x236ddf['setSelection'](_0x236ddf['createRange'](_0x41e433['end']));_0x41e433['detach'](),_0x881c5e['fire']('afterExecute',{'writer':_0x236ddf});});});}}class Y extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2eb6e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2eb6e8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2eb6e8['enableCommand']('findNext'),_0x2eb6e8['enableCommand']('findPrevious'),_0x2eb6e8['enableCommand']('replace'),_0x2eb6e8['enableCommand']('replaceAll');}['handleFindCommand'](_0x3d22a8,_0x1af781,_0x18d3a7={}){const _0x92fa9c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3d22a8(_0x382981=>{let _0x376866=('string'==typeof _0x1af781?_0x92fa9c['findByTextCallback'](_0x1af781,_0x18d3a7):_0x1af781)(_0x382981);Array['isArray'](_0x376866)&&(_0x376866={'results':_0x376866,'searchText':'string'==typeof _0x1af781?_0x1af781:''});const _0x352557=_0x376866['results']['filter'](_0x807d=>!0x1===this['_isInDeletionRange'](_0x807d,_0x382981['item']));return{..._0x376866,'results':_0x352557};},_0x18d3a7);}['_isInDeletionRange'](_0x28bd60,_0x1753e8){const _0x2e7108=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1753e8,_0x28bd60['start']),this['editor']['model']['createPositionAt'](_0x1753e8,_0x28bd60['end']));for(const _0x14472c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2e7108['getIntersection'](_0x14472c['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x147a49{['afterInit'](){const _0x4cbc04=this['editor']['locale'],_0x3729d0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3f1841,commandName:_0x539ab4}of eo)this['editor']['plugins']['has'](_0x3f1841)&&_0x3729d0['enableDefaultAttributesIntegration'](_0x539ab4);_0x3729d0['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4cbc04,'FORMAT_FONT_SIZE')),_0x3729d0['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4cbc04,'FORMAT_FONT_FAMILY')),_0x3729d0['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4cbc04,'FORMAT_FONT_COLOR')),_0x3729d0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4cbc04,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x485839=this['editor'],_0xeb1b63=_0x485839['locale'];_0x485839['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x182482=>{const _0x5957f7=_0xeb1b63['t'];if('formatInline'!=_0x182482['type'])return;const {data:_0x46ac29}=_0x182482;if(null!=_0x46ac29){if('fontSize'==_0x46ac29['commandName']){const _0xef7c3e=_0x46ac29['commandParams'][0x0]['value'];if(_0xef7c3e){const _0x5d63e1=_0x5957f7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5d0d62=>_0x5d0d62['model']==_0xef7c3e)['title'])['toLowerCase']();return{'type':'format','content':o(_0xeb1b63,'*Set\x20font\x20size:*\x20%0',_0x5d63e1)};}return{'type':'format','content':o(_0xeb1b63,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x46ac29['commandName']){const _0x49308f=_0x46ac29['commandParams'][0x0]['value'];return _0x49308f?{'type':'format','content':o(_0xeb1b63,'*Set\x20font\x20family:*\x20%0',_0x49308f)}:{'type':'format','content':o(_0xeb1b63,'*Reset\x20font\x20family*')};}if('fontColor'==_0x46ac29['commandName']){const _0x194673=_0x46ac29['commandParams'][0x0]['value'];if(_0x194673){const _0x59de51=_0x1d782c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f103b=>_0x5f103b['model']==_0x194673);let _0x11b796=_0x194673,_0x48e8a2='';return _0x59de51&&(_0x11b796=_0x59de51['label'],_0x48e8a2=_0x5957f7(_0x11b796)['toLowerCase']()),{'type':'format','content':o(_0xeb1b63,'*Set\x20font\x20color:*\x20%0',_0x48e8a2)['trim'](),'color':{'value':_0x194673,'title':_0x48e8a2||_0x11b796}};}return{'type':'format','content':o(_0xeb1b63,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x46ac29['commandName']){const _0x5eeeeb=_0x46ac29['commandParams'][0x0]['value'];if(_0x5eeeeb){const _0x178a53=_0x1d782c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2bd3b5=>_0x2bd3b5['model']==_0x5eeeeb);let _0x20cda3=_0x5eeeeb,_0xd62932='';return _0x178a53&&(_0x20cda3=_0x178a53['label'],_0xd62932=_0x5957f7(_0x20cda3)['toLowerCase']()),{'type':'format','content':o(_0xeb1b63,'*Set\x20font\x20background\x20color:*\x20%0',_0xd62932)['trim'](),'color':{'value':_0x5eeeeb,'title':_0xd62932||_0x20cda3}};}return{'type':'format','content':o(_0xeb1b63,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x147a49{['afterInit'](){const {plugins:_0x2c74c7}=this['editor'];_0x2c74c7['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2c74c7['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x76f0c6,plugins:_0x540c89,commands:_0x35acd4}=this['editor'],_0xbc339c=_0x540c89['get']('TrackChangesEditing');_0x35acd4['get']('footnotesStyle')&&_0xbc339c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x35acd4['get']('footnotesStart')&&_0xbc339c['enableDefaultAttributesIntegration']('footnotesStart'),_0xbc339c['registerBlockAttribute']('footnotesListStyle'),_0xbc339c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x76f0c6,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xbc339c['registerBlockAttribute']('footnotesListStart'),_0xbc339c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x76f0c6,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5df6d0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x42964c,commands:_0x18ccdf}=this['editor'];_0x18ccdf['get']('insertFootnote')&&_0x5df6d0['enableCommand']('insertFootnote'),_0x5df6d0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2e67b7=>o(_0x42964c,'ELEMENT_FOOTNOTE_REF',_0x2e67b7)),_0x5df6d0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x32ac7b=>o(_0x42964c,'ELEMENT_FOOTNOTE_DEFINITION',_0x32ac7b)),_0x5df6d0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1d041e=>o(_0x42964c,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1d041e));}}class nt extends _0x147a49{['afterInit'](){const _0xad71d1=this['editor'],_0x30b6db=_0xad71d1['plugins']['get']('TrackChangesEditing'),_0x5589fe=_0xad71d1['commands']['get']('copyFormat'),_0x509e86=_0xad71d1['commands']['get']('pasteFormat');_0x5589fe&&_0x509e86&&(_0x30b6db['enableDefaultAttributesIntegration']('pasteFormat'),_0x30b6db['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4e74b8=this['editor'],_0xbeedca=_0x4e74b8['locale'];_0x4e74b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29ed86=>{if('formatBlock'!=_0x29ed86['type']&&'formatInline'!=_0x29ed86['type'])return;const {data:_0x503c28}=_0x29ed86;if(_0x503c28&&'pasteFormat'===_0x503c28['commandName']){const _0x44a64d=[],_0x3b9a20=_0x503c28['commandParams'][0x0];for(const [_0x4507a2,_0x1482fa]of Object['entries'](_0x3b9a20))_0x44a64d['push'](ro(_0x4e74b8,_0x4507a2,_0x1482fa));return _0x44a64d['length']?{'type':'format','content':o(_0xbeedca,'*Set\x20format\x20to:*\x20%0',_0x44a64d['join'](',\x20'))}:{'type':'format','content':o(_0xbeedca,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xb8e634,_0x46940c,_0x324139){const _0xabada3=_0xb8e634['locale']['t'],_0x3c303e=_0x46940c['split'](/(?=[A-Z])/)['join']('\x20'),_0x381143=_0xabada3(_0x3c303e['charAt'](0x0)['toUpperCase']()+_0x3c303e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x324139)return _0x381143;if('fontColor'===_0x46940c||'fontBackgroundColor'===_0x46940c){const _0x31cbb6=_0x1d782c(_0xb8e634['config']['get']('fontColor.colors'))['find'](_0x1c13d0=>_0x1c13d0['model']==_0x324139);return _0x381143+'\x20('+(_0x31cbb6?_0xabada3(_0x31cbb6['label'])['toLowerCase']():_0x324139)+')';}if('fontSize'===_0x46940c&&isNaN(parseFloat(_0x324139))){const _0x1771ed=_0xb8e634['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xb8e634['config']['get']('fontSize.options'))['find'](_0x2b6220=>_0x2b6220['model']==_0x324139);return _0x381143+'\x20('+(_0x1771ed?_0xabada3(_0x1771ed['title'])['toLowerCase']():_0x324139)+')';}return _0x381143+'\x20('+_0x324139+')';}class it extends _0x147a49{['_headingOptions'];['afterInit'](){const _0x23f194=this['editor'];if(!_0x23f194['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x23f194['config']['get']('heading.options');const _0x4fe35e=_0x23f194['locale'],_0x1ccf5b=_0x23f194['plugins']['get']('TrackChangesEditing');_0x1ccf5b['enableDefaultAttributesIntegration']('heading');for(const _0x1bed06 of this['_headingOptions'])'paragraph'!=_0x1bed06['model']&&_0x1ccf5b['descriptionFactory']['registerElementLabel'](_0x1bed06['model'],_0x5375d4=>{const _0x1620fd=this['_getHeadingLevel'](_0x1bed06['model']);return null!==_0x1620fd?_0xfb8f05(_0x5375d4,_0x1620fd):_0x2672a4(_0x5375d4,_0x1bed06['title']);});function _0xfb8f05(_0x3cddcc,_0x2bb76c){return o(_0x4fe35e,'ELEMENT_HEADING',[_0x3cddcc,_0x2bb76c]);}function _0x2672a4(_0x5d6c7e,_0x306a73){return o(_0x4fe35e,'ELEMENT_HEADING_CUSTOM',[_0x5d6c7e,_0x306a73]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5889a0=this['editor'],_0xd8b329=_0x5889a0['locale'];function _0x1c0e83(_0x2f3253,_0x7b7b4d){return o(_0xd8b329,'ELEMENT_HEADING_CUSTOM',[_0x2f3253,_0x7b7b4d]);}_0x5889a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb29c18=>{if('formatBlock'!=_0xb29c18['type'])return;const {data:_0x5194e0}=_0xb29c18;if(_0x5194e0&&'heading'==_0x5194e0['commandName']){const _0x4444ed=_0x5194e0['commandParams'][0x0]['value'],_0x343f72=this['_getHeadingLevel'](_0x4444ed);if(null!==_0x343f72)return{'type':'format','content':o(_0xd8b329,'*Change\x20to:*\x20%0',(_0x2bd8ee=0x1,_0x40942e=_0x343f72,o(_0xd8b329,'ELEMENT_HEADING',[_0x2bd8ee,_0x40942e])))};const _0x1854fd=this['_headingOptions']['find'](_0x514ecd=>_0x514ecd['model']===_0x4444ed)['title'];return{'type':'format','content':o(_0xd8b329,'*Change\x20to:*\x20%0',_0x1c0e83(0x1,_0x1854fd))};}var _0x2bd8ee,_0x40942e;});}['_getHeadingLevel'](_0x1653f6){const _0x10bf0c=_0x1653f6['match'](/^heading(\d+)/);if(_0x10bf0c)return _0x10bf0c[0x1];const _0x1253ec=this['_headingOptions']?.['find'](_0x2549f0=>_0x2549f0['model']==_0x1653f6);if(_0x1253ec&&_0x1253ec['view']){const _0x476e75=_0x1253ec['view'],_0x28fd05=(_0x476e75['name']??_0x476e75)['match'](/^h(\d+)/);if(_0x28fd05)return _0x28fd05[0x1];}return null;}}class et extends _0x147a49{['afterInit'](){const _0x41852f=this['editor'];if(!_0x41852f['plugins']['has']('HighlightEditing'))return;const _0x2bbe5a=_0x41852f['plugins']['get']('TrackChangesEditing'),_0x3defa3=_0x41852f['locale'];_0x2bbe5a['enableDefaultAttributesIntegration']('highlight'),_0x2bbe5a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3defa3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba371=this['editor'],_0x2afbb9=_0x1ba371['locale'];_0x1ba371['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x245adf=>{if('formatInline'!=_0x245adf['type'])return;const {data:_0xcfef01}=_0x245adf;if(_0xcfef01&&'highlight'==_0xcfef01['commandName']){const _0x3b3b01=_0x2afbb9['t'],_0x101fed=_0xcfef01['commandParams'][0x0]['value'];if(_0x101fed){const _0x26826e=_0x1ba371['config']['get']('highlight.options')['find'](_0x5cc8c9=>_0x5cc8c9['model']==_0x101fed),_0x4c0f1d=_0x3b3b01(_0x26826e['title'])['toLowerCase']();return{'type':'format','content':o(_0x2afbb9,'*Set\x20highlight:*\x20%0',_0x4c0f1d),'color':{'value':_0x26826e['color'],'title':_0x26826e['title']}};}return{'type':'format','content':o(_0x2afbb9,'*Remove\x20highlight*',o(_0x2afbb9,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x147a49{['afterInit'](){const _0x311fca=this['editor'];if(!_0x311fca['plugins']['has']('HorizontalLineEditing'))return;_0x311fca['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x23a3b4=_0x311fca['plugins']['get']('TrackChangesEditing'),_0x18b5a6=_0x311fca['locale'];_0x23a3b4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31538f=>o(_0x18b5a6,'ELEMENT_HORIZONTAL_LINE',_0x31538f));}}class ot extends _0x147a49{['afterInit'](){const _0x5f4bcb=this['editor'];if(!_0x5f4bcb['plugins']['has']('HtmlEmbed'))return;const _0x2854f1=_0x5f4bcb['plugins']['get']('TrackChangesEditing'),_0x10de82=_0x5f4bcb['locale'];_0x2854f1['descriptionFactory']['registerElementLabel']('rawHtml',_0x514cef=>o(_0x10de82,'ELEMENT_HTML_EMBED',_0x514cef)),_0x2854f1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2854f1['descriptionFactory']['registerDescriptionCallback'](_0x2e0254=>{if('attribute'!=_0x2e0254['type'])return;const {data:_0x18f31d}=_0x2e0254;if(_0x18f31d&&'value'==_0x18f31d['key']&&_0x2e0254['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x25d426=o(_0x10de82,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x10de82,'*Change\x20%0\x20content*',_0x25d426)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x545e17=this['editor'],_0x22cc4c=_0x545e17['locale'];_0x545e17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b23e7=>{if('formatBlock'!=_0x5b23e7['type'])return;const {data:_0x158c46}=_0x5b23e7;if(_0x158c46&&'htmlEmbed'==_0x158c46['commandName']){const _0x348512=o(_0x22cc4c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x22cc4c,'*Change\x20%0\x20content*',_0x348512)};}});}}class rt extends _0x147a49{['afterInit'](){const _0x8fcbec=this['editor'];if(!_0x8fcbec['plugins']['has']('ImageEditing'))return;const _0x15c7b0=_0x8fcbec['plugins']['get']('TrackChangesEditing'),_0x4819a1=_0x8fcbec['plugins']['get']('ImageUtils'),_0x248c41=_0x8fcbec['locale'];_0x15c7b0['enableCommand']('insertImage'),_0x15c7b0['descriptionFactory']['registerElementLabel']('imageBlock',_0x50a774=>o(_0x248c41,'ELEMENT_IMAGE',_0x50a774)),_0x15c7b0['descriptionFactory']['registerElementLabel']('imageInline',_0x2a875f=>o(_0x248c41,'ELEMENT_INLINE_IMAGE',_0x2a875f)),_0x15c7b0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x248c41,'ELEMENT_CAPTION')),_0x8fcbec['plugins']['has']('ImageUploadEditing')&&_0x15c7b0['enableCommand']('uploadImage'),_0x8fcbec['plugins']['has']('ImageBlockEditing')&&_0x8fcbec['plugins']['has']('ImageInlineEditing')&&(_0x15c7b0['enableCommand']('imageTypeInline',(_0x7969,_0x300f8d)=>{const _0x371b1e=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']);_0x8fcbec['model']['change'](()=>{_0x15c7b0['markBlockFormat'](_0x371b1e,{'commandName':'imageTypeInline','commandParams':[_0x300f8d]},[],'convertBlockImageToInline');});}),_0x15c7b0['enableCommand']('imageTypeBlock',(_0x413d31,_0x4caa8d)=>{_0x8fcbec['model']['change'](_0x597fdd=>{let _0x369120=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']),_0x5a2900=_0x597fdd['createRangeOn'](_0x369120);const _0x5365f0=_0x3a67eb['fromPosition'](_0x5a2900['start'],'toPrevious'),_0x3d966c=_0x3a67eb['fromPosition'](_0x5a2900['end'],'toNext');_0x15c7b0['forceDefaultExecution'](()=>_0x413d31(_0x4caa8d)),_0x369120=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']),_0x5a2900=_0x597fdd['createRangeOn'](_0x369120);const _0x3a5e70=_0x597fdd['createRange'](_0x5365f0,_0x3d966c);_0x5365f0['detach'](),_0x3d966c['detach'](),_0x15c7b0['markBlockFormat'](_0x369120,{'commandName':'imageTypeInline','commandParams':[_0x4caa8d]},[],'convertInlineImageToBlock'),_0x3a5e70['start']['isBefore'](_0x5a2900['start'])&&_0x15c7b0['markInsertion'](_0x597fdd['createRange'](_0x3a5e70['start'],_0x5a2900['start']),'convertInlineImageToBlock'),_0x5a2900['end']['isBefore'](_0x3a5e70['end'])&&_0x15c7b0['markInsertion'](_0x597fdd['createRange'](_0x5a2900['end'],_0x3a5e70['end']),'convertInlineImageToBlock');});}),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x15c7b0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x220a57])=>{const _0x3ea426=_0x15c7b0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x22a213=_0x220a57['start'],_0x29722e=_0x220a57['end'];const _0x58c42e=_0x8fcbec['model']['schema']['getNearestSelectionRange'](_0x22a213,'backward'),_0x2a1ba7=_0x8fcbec['model']['schema']['getNearestSelectionRange'](_0x29722e,'forward');_0x58c42e['isCollapsed']&&(_0x22a213=_0x58c42e['start']),_0x2a1ba7['isCollapsed']&&(_0x29722e=_0x2a1ba7['end']),_0x3ea426([_0x8fcbec['model']['createRange'](_0x22a213,_0x29722e)]);}),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2c186e),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2c186e)),_0x8fcbec['plugins']['has']('ImageCaptionEditing')&&(_0x15c7b0['enableCommand']('toggleImageCaption',(_0x210507,_0x43cafa)=>{const _0xae6bd2=_0x8fcbec['plugins']['get']('ImageCaptionUtils');let _0x3e02f4=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']),_0x359681=_0xae6bd2['getCaptionFromImageModelElement'](_0x3e02f4);_0x8fcbec['model']['change'](()=>{if(_0x359681)return void _0x15c7b0['markDeletion'](_0x8fcbec['model']['createRangeOn'](_0x359681));const _0x3306cd=_0x4819a1['isBlockImage'](_0x3e02f4);_0x210507(_0x43cafa),_0x3e02f4=_0x4819a1['getClosestSelectedImageElement'](_0x8fcbec['model']['document']['selection']),_0x359681=_0xae6bd2['getCaptionFromImageModelElement'](_0x3e02f4),_0x15c7b0['markInsertion'](_0x8fcbec['model']['createRangeOn'](_0x359681),_0x3306cd?null:'imageCaption');});}),_0x15c7b0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2c186e));const _0x45e199=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5f1114(_0xa2aec3,_0x13e10a){const _0x2458d6=_0x45e199['findIndex'](({type:_0x8354b3,subType:_0x4b221a})=>_0xa2aec3['type']==_0x8354b3&&_0xa2aec3['subType']==_0x4b221a),_0x2d2295=_0x45e199['findIndex'](({type:_0x1256cf,subType:_0x45d976})=>_0x13e10a['type']==_0x1256cf&&_0x13e10a['subType']==_0x45d976);if(_0x2458d6<0x0||_0x2d2295<0x0)return!0x1;const _0x591a06=_0xa2aec3['getFirstRange'](),_0x5ae4a5=_0x13e10a['getFirstRange']();if((0x0==_0x2458d6||0x1==_0x2458d6)&&0x2==_0x2d2295&&_0x591a06['isIntersecting'](_0x5ae4a5))return!0x0;if(0x2==_0x2458d6&&0x3==_0x2d2295){const _0x18fa0b=_0x15c7b0['_findSuggestions'](_0x591a06,'insertion')['filter'](({suggestion:_0x3f96e4,meta:_0x19c858})=>_0x19c858['isOwn']&&'convertInlineImageToBlock'==_0x3f96e4['subType']);if(_0x18fa0b['length']>0x1&&_0x5ae4a5['end']['isEqual'](_0x591a06['start']))return!0x0;if(0x1==_0x18fa0b['length']&&(_0x591a06['start']['isEqual'](_0x5ae4a5['end'])||_0x591a06['end']['isEqual'](_0x5ae4a5['start'])))return!0x0;}if(0x3==_0x2458d6&&0x3==_0x2d2295&&_0x591a06['start']['isBefore'](_0x5ae4a5['start'])){const _0x3d6cbe=_0x591a06['end']['nodeAfter'],_0x53e75e=_0x5ae4a5['start']['nodeBefore'];return _0x4819a1['isBlockImage'](_0x3d6cbe)&&_0x3d6cbe===_0x53e75e;}return!0x1;}function _0x2c186e(_0x456486,_0xe70567){return _0x5f1114(_0x456486,_0xe70567)?[_0x456486,_0xe70567]:_0x5f1114(_0xe70567,_0x456486)?[_0xe70567,_0x456486]:null;}_0x8fcbec['plugins']['has']('ImageResize')&&(_0x15c7b0['enableDefaultAttributesIntegration']('resizeImage'),_0x15c7b0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x248c41,'FORMAT_IMAGE_SIZE'))),_0x8fcbec['plugins']['has']('ImageTextAlternativeEditing')&&_0x15c7b0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8fcbec['plugins']['has']('PictureEditing')&&_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x5992a9=>{if('attribute'!=_0x5992a9['type'])return;const {data:_0x412ed3}=_0x5992a9;return _0x412ed3&&'sources'==_0x412ed3['key']?{'type':'format','content':''}:void 0x0;}),_0x8fcbec['plugins']['has']('ImageSizeAttributes')&&_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x20df35=>{if('attribute'!=_0x20df35['type'])return;const {data:_0x535921}=_0x20df35;return!_0x535921||'width'!=_0x535921['key']&&'height'!=_0x535921['key']?void 0x0:{'type':'format','content':''};}),_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x5e10c5=>{if(!!_0x45e199['find'](({type:_0x2468b3,subType:_0x174bd0})=>_0x5e10c5['type']==_0x2468b3&&_0x5e10c5['subType']==_0x174bd0))return _0x5e10c5['previous']?{}:void 0x0;}),_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x3b363a=>{if('insertion'==_0x3b363a['type']||'deletion'==_0x3b363a['type']){const _0x1b80cc=_0x3b363a['getContainedElement']();if(_0x1b80cc&&_0x1b80cc['is']('element','caption'))return{'type':'insertion'==_0x3b363a['type']?'addObject':'removeObject','element':_0x1b80cc,'quantity':0x1};}}),_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x2eb183=>'formatBlock'==_0x2eb183['type']&&'convertInlineImageToBlock'==_0x2eb183['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2eb183['type']&&'convertBlockImageToInline'==_0x2eb183['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x15c7b0['descriptionFactory']['registerDescriptionCallback'](_0x37c085=>{if('attribute'!=_0x37c085['type'])return;const {data:_0x1392f2}=_0x37c085;if(!_0x1392f2||'alt'!=_0x1392f2['key'])return;const _0x7fe045=_0x1392f2['newValue'];return _0x7fe045?{'type':'format','content':o(_0x248c41,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7fe045+'\x22')}:{'type':'format','content':o(_0x248c41,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a3665=this['editor'],_0x1205ac=_0x1a3665['locale'];_0x1a3665['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x555fe9=>{if('formatBlock'!=_0x555fe9['type']&&'formatInline'!=_0x555fe9['type'])return;const {data:_0x125c3b}=_0x555fe9;if(_0x125c3b){if('imageTextAlternative'==_0x125c3b['commandName']){const _0x3bd4d2=_0x125c3b['commandParams'][0x0]['newValue'];return _0x3bd4d2?{'type':'format','content':o(_0x1205ac,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3bd4d2+'\x22')}:{'type':'format','content':o(_0x1205ac,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x125c3b['commandName']){const _0x3fba78=_0x125c3b['commandParams'][0x0]['width'];return _0x3fba78?{'type':'format','content':o(_0x1205ac,'*Set\x20image\x20width:*\x20%0',_0x3fba78)}:{'type':'format','content':o(_0x1205ac,'*Reset\x20image\x20width*')};}}});}}class at extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x269688=this['editor']['locale'],_0x1be964=this['editor']['plugins']['get']('TrackChangesEditing');_0x1be964['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1be964['descriptionFactory']['registerDescriptionCallback'](_0x5eae6f=>{if('attribute'!=_0x5eae6f['type'])return;const {data:_0x509b3c}=_0x5eae6f;return _0x509b3c&&'src'==_0x509b3c['key']?_0x509b3c['newValue']&&_0x509b3c['oldValue']?{'type':'format','content':o(_0x269688,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4713e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4713e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4713e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4713e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4713e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505d8c=this['editor'],_0x256950=_0x505d8c['locale'];_0x505d8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4206c0=>{if('formatBlock'!=_0x4206c0['type']&&'formatInline'!=_0x4206c0['type'])return;const {data:_0x43b2f0}=_0x4206c0;if(!_0x43b2f0||'replaceImageSource'!=_0x43b2f0['commandName'])return;return{'type':'format','content':o(_0x256950,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x147a49{['afterInit'](){const _0x21b8cd=this['editor'];if(!_0x21b8cd['plugins']['has']('ImageStyleEditing'))return;const _0x30a991=_0x21b8cd['plugins']['get']('TrackChangesEditing'),_0x43d506=_0x21b8cd['plugins']['get']('ImageUtils'),_0x4df286={};_0x30a991['enableCommand']('imageStyle',(_0x3f90a5,_0x1e086f)=>{const _0x264d73=_0x21b8cd['plugins']['get']('Users')['me'],_0x19fa4a=_0x21b8cd['commands']['get']('imageStyle');let _0x39564c=_0x43d506['getClosestSelectedImageElement'](_0x21b8cd['model']['document']['selection']),_0x49e4f7=_0x21b8cd['model']['createRangeOn'](_0x39564c),_0x3c3879=_0x19fa4a['value'];if(_0x3c3879==_0x1e086f['value'])return;const _0x5a062b={'commandName':'imageStyle','commandParams':[_0x1e086f],'formatGroupId':_0x2844ab()};_0x21b8cd['model']['change'](()=>{if(_0x30a991['getSuggestions']()['filter'](_0x3e3e79=>_0x3e3e79['isInContent']&&_0x264d73==_0x3e3e79['author']&&('formatBlock'==_0x3e3e79['type']||'formatInline'==_0x3e3e79['type'])&&('imageStylePreApply'==_0x3e3e79['subType']||'imageStylePostApply'==_0x3e3e79['subType'])&&_0x3e3e79['getFirstRange']()['isEqual'](_0x49e4f7))['forEach'](_0x1023eb=>_0x30a991['discardSuggestion'](_0x1023eb['head'])),_0x39564c=_0x43d506['getClosestSelectedImageElement'](_0x21b8cd['model']['document']['selection']),_0x49e4f7=_0x21b8cd['model']['createRangeOn'](_0x39564c),_0x19fa4a['refresh'](),_0x21b8cd['commands']['get']('imageTypeInline')['refresh'](),_0x21b8cd['commands']['get']('imageTypeBlock')['refresh'](),_0x3c3879=_0x19fa4a['value'],_0x3c3879!=_0x1e086f['value'])return _0x43d506['isInlineImage'](_0x39564c)&&_0x19fa4a['shouldConvertImageType'](_0x1e086f['value'],_0x39564c)?(_0x3f90a5({..._0x1e086f,'setImageSizes':!0x1}),_0x39564c=_0x43d506['getClosestSelectedImageElement'](_0x21b8cd['model']['document']['selection']),void _0x30a991['markBlockFormat'](_0x39564c,{..._0x5a062b,'commandReversedParams':[{'value':_0x3c3879||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x43d506['isBlockImage'](_0x39564c)?_0x30a991['markBlockFormat'](_0x39564c,_0x5a062b,[],'imageStylePostApply'):_0x30a991['markInlineFormat'](_0x49e4f7,_0x5a062b,'imageStylePostApply'));});});for(const _0x425410 of _0x21b8cd['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4df286[_0x425410['name']]=_0x425410['title']['toLowerCase']();_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x46f448])=>{_0x43d506['setImageNaturalSizeAttributes'](_0x46f448['getContainedElement']());}),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x17faa2,_0x421e82)=>{_0x30a991['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x17faa2,{'commandName':_0x421e82['commandName'],'commandParams':_0x421e82['commandReversedParams']});}),_0x30a991['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3bd648,_0x1de1df){if(_0x3556fa(_0x3bd648,_0x1de1df))return[_0x3bd648,_0x1de1df];if(_0x3556fa(_0x1de1df,_0x3bd648))return[_0x1de1df,_0x3bd648];return null;});const _0x426c1b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3556fa(_0x5ca671,_0x3f834b){const _0x48117f=_0x426c1b['findIndex'](({type:_0x310017,subType:_0x38d3d9})=>_0x5ca671['type']==_0x310017&&_0x5ca671['subType']==_0x38d3d9),_0x1d900a=_0x426c1b['findIndex'](({type:_0x3a6234,subType:_0x31fc46})=>_0x3f834b['type']==_0x3a6234&&_0x3f834b['subType']==_0x31fc46);if(_0x48117f<0x0||_0x1d900a<0x0)return!0x1;const _0x4dc4a7=_0x5ca671['getFirstRange'](),_0x410f81=_0x3f834b['getFirstRange']();if((0x0==_0x48117f||0x1==_0x48117f)&&0x2==_0x1d900a&&_0x4dc4a7['isIntersecting'](_0x410f81))return!0x0;if(0x2==_0x48117f&&0x3==_0x1d900a){const _0x2350f1=_0x30a991['_findSuggestions'](_0x4dc4a7,'insertion')['filter'](({suggestion:_0x56090c,meta:_0x225659})=>_0x225659['isOwn']&&'convertInlineImageToBlock'==_0x56090c['subType']);if(_0x2350f1['length']>0x1&&_0x410f81['end']['isEqual'](_0x4dc4a7['start']))return!0x0;if(0x1==_0x2350f1['length']&&(_0x4dc4a7['start']['isEqual'](_0x410f81['end'])||_0x4dc4a7['end']['isEqual'](_0x410f81['start'])))return!0x0;}if(0x3==_0x48117f&&0x3==_0x1d900a&&_0x4dc4a7['start']['isBefore'](_0x410f81['start'])){const _0x790505=_0x4dc4a7['end']['nodeAfter'],_0x57f1c8=_0x410f81['start']['nodeBefore'];return _0x43d506['isBlockImage'](_0x790505)&&_0x790505===_0x57f1c8;}return!0x1;}_0x21b8cd['model']['document']['registerPostFixer'](()=>{let _0x52d9fc=!0x1;const _0x592f65=Array['from'](_0x21b8cd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25aa77,data:_0x18830d}of _0x592f65){const {group:_0x5f5c96,type:_0x314f62,subType:_0x6c6c6d,id:_0x3b6c63}=_0x30a991['_splitMarkerName'](_0x25aa77);if('suggestion'==_0x5f5c96&&_0x30a991['hasSuggestion'](_0x3b6c63)){if('formatBlock'==_0x314f62&&('imageStylePreApply'==_0x6c6c6d||'imageStylePostApply'==_0x6c6c6d)){const _0x1d0953=_0x30a991['getSuggestion'](_0x3b6c63);if(_0x18830d['newRange']){const _0x85cce8=_0x1d0953['getFirstRange']()['getContainedElement']();if(_0x43d506['isBlockImage'](_0x85cce8))continue;_0x30a991['discardSuggestion'](_0x1d0953),_0x52d9fc=!0x0;}}if('insertion'==_0x314f62&&'imageCaption'==_0x6c6c6d&&!_0x18830d['newRange']){const _0x5f1aec=_0x30a991['getSuggestion'](_0x3b6c63);_0x5f1aec['next']&&_0x5f1aec['next']['isInContent']&&(_0x30a991['discardSuggestion'](_0x5f1aec['next']),_0x52d9fc=!0x0);}}}return _0x52d9fc;}),this['_registerLegacyDescription'](_0x4df286);}['_registerLegacyDescription'](_0x23b574){const _0x49b998=this['editor'],_0x465afa=_0x49b998['locale'];_0x49b998['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d6953=>{if('formatBlock'!=_0x6d6953['type']&&'formatInline'!=_0x6d6953['type'])return;const {data:_0x446c80}=_0x6d6953;if(!_0x446c80||'imageStyle'!=_0x446c80['commandName'])return;const _0x47f187=_0x446c80['commandParams'][0x0]['value'];return _0x1cd8fe('side'===_0x47f187?o(_0x465afa,'FORMAT_SIDE_IMAGE'):_0x23b574[_0x47f187]||_0x47f187);function _0x1cd8fe(_0x59153b){return{'type':'format','content':o(_0x465afa,'*Format:*\x20%0',_0x59153b)};}});}}class ut extends _0x147a49{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x31c0a9){super(_0x31c0a9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2efeef=this['editor'],_0x54ef35=_0x2efeef['commands']['get']('importWord'),_0x47f8a5=_0x2efeef['commands']['get']('trackChanges');_0x54ef35&&(_0x54ef35['on']('execute',(_0x101378,[,_0x6f90f9])=>{this['_trackChangesValueDuringImport']=_0x47f8a5['value'],_0x6f90f9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x54ef35,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x54ef35,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x47f8a5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2efeef['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3fbedc,_0x5a04ef){const {suggestions:_0x59867c}=_0x5a04ef,_0x4ca123=this['editor']['commands']['get']('trackChanges'),_0x43e6af=_0x4ca123['value'];this['_trackChangesValueDuringImport']!==_0x43e6af&&(_0x4ca123['execute'](),this['_trackChangesExecuted']=!0x0),_0x59867c&&_0x59867c['forEach'](({id:_0x546483,type:_0x29a290,author:_0x23f8b2,created_at:_0x307849})=>{const _0x39e4ae={'id':_0x546483,'type':_0x29a290,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x23f8b2,'createdAt':_0x307849?new Date(_0x307849):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x39e4ae);});}}class ft extends _0x147a49{['afterInit'](){const _0x1fb706=this['editor'],_0x2ef9c9=_0x1fb706['plugins']['get']('TrackChangesEditing');if(_0x1fb706['plugins']['has']('IndentEditing')&&(_0x2ef9c9['enableCommand']('indent'),_0x2ef9c9['enableCommand']('outdent')),_0x1fb706['plugins']['has']('IndentBlock')){for(const _0x3113cf of['indentBlock','outdentBlock'])_0x2ef9c9['enableDefaultAttributesIntegration'](_0x3113cf);}const _0x3efa91=_0x1fb706['locale'];_0x2ef9c9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3efa91,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb404f8=this['editor'],_0x358437=_0xb404f8['locale'],_0xf4b618=_0xb404f8['plugins']['get']('TrackChangesEditing');_0xf4b618['descriptionFactory']['registerDescriptionCallback'](_0x34be65=>{if('formatBlock'!=_0x34be65['type'])return;const {data:_0x40c97f}=_0x34be65;if(!_0x40c97f)return;if('indentBlock'!=_0x40c97f['commandName']&&'outdentBlock'!=_0x40c97f['commandName'])return;const _0x2d66bd=_0x34be65['getItems']()[0x0],_0x295c5c=_0xf4b618['descriptionFactory']['getItemLabel'](_0x2d66bd);return'indentBlock'==_0x40c97f['commandName']?{'type':'format','content':o(_0x358437,'*Indent:*\x20%0',_0x295c5c)}:'outdentBlock'==_0x40c97f['commandName']?{'type':'format','content':o(_0x358437,'*Outdent:*\x20%0',_0x295c5c)}:void 0x0;});}}class ht extends _0x147a49{static get['requires'](){return[_0x33fae4];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x147a49{['afterInit'](){const _0x1cf90c=this['editor'];if(!_0x1cf90c['plugins']['has']('LinkEditing'))return;const _0x57f906=_0x1cf90c['plugins']['get']('TrackChangesEditing'),_0x2feefb=_0x1cf90c['commands']['get']('link');_0x57f906['enableDefaultAttributesIntegration']('link'),_0x57f906['enableDefaultAttributesIntegration']('unlink');for(const _0x2afd40 of _0x2feefb['manualDecorators'])_0x57f906['descriptionFactory']['registerAttributeLabel'](_0x2afd40['id'],'link\x20('+_0x2afd40['label']['toLowerCase']()+')');_0x57f906['descriptionFactory']['registerDescriptionCallback'](_0x2a7872=>{if('attribute'!=_0x2a7872['type'])return;const {data:_0x1ef72c}=_0x2a7872;if(!_0x1ef72c||'linkHref'!=_0x1ef72c['key'])return;const _0x416b9b=_0x1ef72c['newValue'],_0x5dfafd=_0x1cf90c['locale'];return{'type':'format','content':null==_0x416b9b?o(_0x5dfafd,'*Remove\x20link*'):o(_0x5dfafd,'*Set\x20link:*\x20%0','\x22'+_0x416b9b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50626e=this['editor'],_0x89f76b=_0x50626e['locale'];_0x50626e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29b21c=>{if('formatInline'!=_0x29b21c['type'])return;const {data:_0x56e7c3}=_0x29b21c;if(_0x56e7c3){if('link'==_0x56e7c3['commandName']){const _0x1b2700=_0x56e7c3['commandParams'][0x0];return{'type':'format','content':o(_0x89f76b,'*Set\x20link:*\x20%0','\x22'+_0x1b2700+'\x22')};}return'unlink'==_0x56e7c3['commandName']?{'type':'format','content':o(_0x89f76b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x147a49{['afterInit'](){const _0x123c51=this['editor'],_0xb154a2=_0x123c51['locale'];if(!_0x123c51['plugins']['has']('LegacyListEditing'))return;const _0xb7f067=_0x123c51['plugins']['get']('TrackChangesEditing'),_0x4f0388=_0x123c51['plugins']['has']('LegacyTodoListEditing');function _0x408eb5(_0x43cd07){return()=>{const _0x45128d=_0x123c51['model']['document']['selection'],_0x574896=_0x123c51['commands']['get'](_0x43cd07);if(_0x574896['value'])return void _0x123c51['execute']('paragraph',{});const _0x806c52=_0x43cd07['slice'](0x0,-0x4),_0x45b5fc=function(_0x5ab7f0,_0x136932,_0x3d87c0){let _0x165cdc=Array['from'](_0x5ab7f0)['filter'](_0x145bd1=>function(_0x522bb4,_0x51a296){return _0x51a296['checkChild'](_0x522bb4['parent'],'listItem')&&!_0x51a296['isObject'](_0x522bb4);}(_0x145bd1,_0x3d87c0));_0x165cdc=_0x165cdc['filter'](_0x3fbbc0=>!_0x3fbbc0['is']('element','listItem')||_0x3fbbc0['getAttribute']('listType')!=_0x136932);const _0x262caf=new Set();for(const _0x3ea985 of _0x165cdc)_0x3ea985['is']('element','listItem')?_0x262caf['add'](Le(_0x3ea985)):_0x262caf['add'](_0x3ea985);return Array['from'](_0x262caf);}(_0x45128d['getSelectedBlocks'](),_0x806c52,_0x123c51['model']['schema']);_0x123c51['model']['change'](()=>{for(const _0x56f6ed of _0x45b5fc)_0xb7f067['markBlockFormat'](_0x56f6ed,{'commandName':_0x43cd07,'commandParams':[{'forceValue':!_0x574896['value']}],'formatGroupId':'blockName'},Ee(_0x56f6ed));});};}function _0x5d29d2(_0x548d4a){return()=>{const _0x25fe93=function(_0x3c4ba0){let _0x322d35=Array['from'](_0x3c4ba0);const _0x5166d2=_0x322d35['findIndex'](_0x426b11=>'listItem'!=_0x426b11['name']);return _0x5166d2>-0x1&&(_0x322d35=_0x322d35['slice'](0x0,_0x5166d2)),_0x322d35;}(_0x123c51['model']['document']['selection']['getSelectedBlocks']()),_0x2ed95e=_0x123c51['model']['createRange'](_0x123c51['model']['createPositionAt'](_0x25fe93[0x0],'before'),_0x123c51['model']['createPositionAt'](_0x25fe93[_0x25fe93['length']-0x1],'end'));_0x123c51['model']['change'](()=>{_0xb7f067['markBlockFormat'](_0x2ed95e,{'commandName':_0x548d4a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e6164){const _0x4d06b0=new Set();for(const _0x5c38a3 of _0x3e6164){let _0x300563=_0x5c38a3['nextSibling'];for(;_0x300563&&_0x300563['getAttribute']('listIndent')>_0x5c38a3['getAttribute']('listIndent');)_0x4d06b0['add'](_0x300563),_0x300563=_0x300563['nextSibling'];}return Array['from'](_0x4d06b0);}(_0x25fe93));});};}_0xb7f067['enableCommand']('numberedList',_0x408eb5('numberedList')),_0xb7f067['enableCommand']('bulletedList',_0x408eb5('bulletedList')),_0x4f0388&&_0xb7f067['enableCommand']('todoList',_0x408eb5('todoList')),_0xb7f067['enableCommand']('indentList',_0x5d29d2('indentList')),_0xb7f067['enableCommand']('outdentList',_0x5d29d2('outdentList')),_0x4f0388&&_0xb7f067['enableCommand']('checkTodoList',()=>{const _0xf07414=_0x123c51['commands']['get']('checkTodoList'),_0x1f780f=Array['from'](_0xf07414['_selectedElements']);_0x1f780f['filter'](_0x82e82b=>_0x82e82b['getAttribute']('todoListChecked')!=_0xf07414['value']),_0x123c51['model']['change'](()=>{for(const _0x4fbf5b of _0x1f780f)_0xb7f067['markBlockFormat'](_0x4fbf5b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xf07414['value']}]});});}),_0xb7f067['descriptionFactory']['registerElementLabel']('listItem',_0xe09c6=>o(_0xb154a2,'ELEMENT_LIST_ITEM',_0xe09c6)),_0xb7f067['descriptionFactory']['registerDescriptionCallback'](_0x5c1155=>{if('formatBlock'!=_0x5c1155['type']&&'formatInline'!=_0x5c1155['type'])return;const {data:_0x258bdc}=_0x5c1155;if(_0x258bdc){if('numberedList'==_0x258bdc['commandName']||'bulletedList'==_0x258bdc['commandName']||'todoList'==_0x258bdc['commandName'])switch(_0x258bdc['commandName']['replace']('List','')){case'bulleted':return _0xaa0fe3(o(_0xb154a2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xaa0fe3(o(_0xb154a2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xaa0fe3(o(_0xb154a2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x258bdc['commandName'])return{'type':'format','content':o(_0xb154a2,'*Indent:*\x20%0',o(_0xb154a2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x258bdc['commandName'])return{'type':'format','content':o(_0xb154a2,'*Outdent:*\x20%0',o(_0xb154a2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x258bdc['commandName'])return _0x258bdc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb154a2,'*Check\x20item*')}:{'type':'format','content':o(_0xb154a2,'*Uncheck\x20item*')};}function _0xaa0fe3(_0x846e81){return{'type':'format','content':o(_0xb154a2,'*Change\x20to:*\x20%0',_0x846e81)};}});}}function Le(_0x520ee9){const _0x1558a3=_0x520ee9['getAttribute']('listIndent');if(0x0==_0x1558a3)return _0x520ee9;let _0x1a5226=_0x520ee9;for(;_0x520ee9['previousSibling']&&_0x520ee9['previousSibling']['is']('element','listItem');){const _0x406637=_0x520ee9['previousSibling']['getAttribute']('listIndent');if(_0x406637==_0x1558a3)_0x1a5226=_0x520ee9['previousSibling'];else{if(_0x406637<_0x1558a3)break;}_0x520ee9=_0x520ee9['previousSibling'];}return _0x1a5226;}function Ee(_0x1ef5f5){const _0x4bc401=[];if(_0x1ef5f5['is']('element','listItem')&&_0x1ef5f5['getAttribute']('listIndent')>0x0){let _0x4d4869=_0x1ef5f5['nextSibling'];for(;_0x4d4869&&'listItem'==_0x4d4869['name']&&_0x4d4869['getAttribute']('listIndent')==_0x1ef5f5['getAttribute']('listIndent');)_0x4bc401['push'](_0x4d4869),_0x4d4869=_0x4d4869['nextSibling'];}return _0x4bc401;}class mt extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x50069b=this['editor']['config']['get']('list.properties'),_0x16e54a=this['editor']['plugins']['get']('TrackChangesEditing');_0x50069b['styles']&&_0x16e54a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x50069b['reversed']&&_0x16e54a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x50069b['startIndex']&&_0x16e54a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x16e54a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5c81df,_0x1f46fe={}){const _0x620936=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e7731=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x620936['markMultiRangeBlockFormat'](_0x2e7731,{'commandName':'listStyle','commandParams':[{'type':_0x1f46fe['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2457a9,_0x102801={}){const _0x15e165=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58027e=this['_getSuggestionBlocks'](_0x2f66c3=>_0x2f66c3['is']('element','listItem')&&'numbered'===_0x2f66c3['getAttribute']('listType'));if(_0x58027e['length']<0x1)return;const _0x41ce7c=_0x58027e['map'](_0x3a4813=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a4813,'before'),this['editor']['model']['createPositionAt'](_0x3a4813,0x0)));this['editor']['model']['change'](()=>{_0x15e165['markMultiRangeBlockFormat'](_0x41ce7c,{'commandName':'listReversed','commandParams':[{'reversed':_0x102801['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2a38a3,_0x36c689={}){const _0x1b5bdb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c3e84=this['_getSuggestionBlocks'](_0x6bb9e8=>_0x6bb9e8['is']('element','listItem')&&'numbered'===_0x6bb9e8['getAttribute']('listType'));if(_0x5c3e84['length']<0x1)return;const _0x190b1e=_0x5c3e84['map'](_0x164ce0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x164ce0,'before'),this['editor']['model']['createPositionAt'](_0x164ce0,0x0)));this['editor']['model']['change'](()=>{_0x1b5bdb['markMultiRangeBlockFormat'](_0x190b1e,{'commandName':'listStart','commandParams':[{'startIndex':_0x36c689['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1048c1){if('formatBlock'!=_0x1048c1['type']&&'formatInline'!=_0x1048c1['type'])return;const _0x1fab8e=this['editor']['locale'],{data:_0x1c1092}=_0x1048c1;if(!_0x1c1092)return;let _0x2e3e23,_0x5108ad;switch(_0x1c1092['commandName']){case'listStyle':_0x2e3e23='*Change\x20to:*\x20%0',_0x5108ad={'type':'format','content':o(_0x1fab8e,_0x2e3e23,o(_0x1fab8e,this['_getTranslationKeyForListStyle'](_0x1c1092['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2e3e23=_0x1c1092['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5108ad={'type':'format','content':o(_0x1fab8e,_0x2e3e23)};break;case'listStart':_0x2e3e23='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5108ad={'type':'format','content':o(_0x1fab8e,_0x2e3e23,_0x1c1092['commandParams'][0x0]['startIndex'])};}return _0x5108ad;}['_getSuggestionBlocksForListStyle'](){const _0x3a9138=this['editor']['plugins']['get']('LegacyListUtils');let _0x239d8f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x239d8f[0x0]?.['is']('element','listItem')&&_0x239d8f['unshift'](..._0x3a9138['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x239d8f[_0x239d8f['length']-0x1]?.['is']('element','listItem')&&_0x239d8f['push'](..._0x3a9138['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x239d8f=[...new Set(_0x239d8f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x239d8f=_0x239d8f['filter'](_0x2a7dc0=>_0x2a7dc0['is']('element','listItem'))),_0x239d8f;}['_getSuggestionBlocks'](_0x55736b){const _0x44b48a=this['editor']['plugins']['get']('LegacyListUtils');let _0x487405=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x55736b)['map'](_0x51f7e7=>{const _0x534ff5=this['editor']['model']['createPositionAt'](_0x51f7e7,0x0);return[..._0x44b48a['getSiblingNodes'](_0x534ff5,'backward'),..._0x44b48a['getSiblingNodes'](_0x534ff5,'forward')];})['flat']();return _0x487405=[...new Set(_0x487405)],_0x487405;}['_getTranslationKeyForListStyle'](_0x22456b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x22456b)||'default')['toUpperCase']()+'_LIST_'+_0x22456b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x147a49{['afterInit'](){const _0x31a1a4=this['editor'];if(!_0x31a1a4['plugins']['has']('MediaEmbedEditing'))return;const _0x39bacb=_0x31a1a4['plugins']['get']('TrackChangesEditing'),_0x58b9fc=_0x31a1a4['locale'];_0x39bacb['enableCommand']('mediaEmbed'),_0x39bacb['descriptionFactory']['registerElementLabel']('media',_0x2442bb=>o(_0x58b9fc,'ELEMENT_MEDIA',_0x2442bb));}}class pt extends _0x147a49{['afterInit'](){const _0x1ae931=this['editor'];_0x1ae931['plugins']['has']('MentionEditing')&&_0x1ae931['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x147a49{['afterInit'](){const _0x2f66c7=this['editor'];if(!_0x2f66c7['plugins']['has']('MergeFieldsEditing'))return;const _0x24b85a=_0x2f66c7['plugins']['get']('TrackChangesEditing'),_0x133163=_0x2f66c7['locale'];_0x24b85a['enableCommand']('insertMergeField'),_0x24b85a['enableCommand']('insertMergeFieldBlock'),_0x24b85a['enableCommand']('insertMergeFieldImage'),_0x24b85a['descriptionFactory']['registerElementLabel']('mergeField',_0x7b04b5=>o(_0x133163,'ELEMENT_MERGE_FIELD',_0x7b04b5)),_0x24b85a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x14dc83=>o(_0x133163,'ELEMENT_MERGE_FIELD',_0x14dc83)),_0x24b85a['descriptionFactory']['registerDescriptionCallback'](_0x164bbd=>{if('insertion'!=_0x164bbd['type']&&'deletion'!=_0x164bbd['type'])return;const _0x5d6e3f=_0x164bbd['getContainedElement']();if(null==_0x5d6e3f)return;const _0x463852=_0x2f66c7['plugins']['get']('MergeFieldsEditing');let _0x3475c9;switch(_0x463852['getMergeFieldType'](_0x5d6e3f)){case null:return;case'image':{const _0x17d2de=_0x463852['unwrapAffixes'](_0x5d6e3f['getAttribute']('src'));_0x3475c9=_0x463852['getLabel'](_0x17d2de)||_0x17d2de;break;}default:{const _0x44739c=_0x5d6e3f['getAttribute']('id');_0x3475c9=_0x463852['getLabel'](_0x44739c)||_0x44739c;break;}}return'insertion'==_0x164bbd['type']?{'type':'insertion','content':o(_0x133163,'*Insert:*\x20%0','\x22'+_0x3475c9+'\x22\x20'+o(_0x133163,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x133163,'*Remove:*\x20%0','\x22'+_0x3475c9+'\x22\x20'+o(_0x133163,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x147a49{['afterInit'](){const _0x46c42e=this['editor'],_0x5ac04c=_0x46c42e['plugins']['get']('TrackChangesEditing');_0x46c42e['plugins']['has']('MultiLevelList')&&(_0x5ac04c['enableDefaultAttributesIntegration']('multiLevelList'),_0x5ac04c['descriptionFactory']['registerDescriptionCallback'](_0x2ccc89=>this['handleDescriptions'](_0x2ccc89)));}['handleDescriptions'](_0x324e61){const _0xac0514=this['editor']['locale'],{data:_0x22ee1b}=_0x324e61,_0x581215={'type':'format','content':''};if(_0x22ee1b&&'listMarkerStyle'==_0x22ee1b['key']){if(!_0x22ee1b['oldValue'])return{'type':'format','content':o(_0xac0514,'*Set\x20format:*\x20%0',o(_0xac0514,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x22ee1b['newValue']+')'};if(!_0x22ee1b['newValue']){let _0x27e373=_0x324e61['head'];for(;_0x27e373;){if(_0x27e373['data']&&'listType'==_0x27e373['data']['key']&&_0x27e373['data']['newValue'])return _0x581215;_0x27e373=_0x27e373['next'];}return{'type':'format','content':o(_0xac0514,'*Remove\x20format:*\x20%0',o(_0xac0514,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x22ee1b['oldValue']+')'};}}}}class bt extends _0x147a49{['afterInit'](){const _0x66ec6c=this['editor'];if(!_0x66ec6c['plugins']['has']('PageBreakEditing'))return;_0x66ec6c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4c9cd3=_0x66ec6c['plugins']['get']('TrackChangesEditing'),_0x300f0b=_0x66ec6c['locale'];_0x4c9cd3['descriptionFactory']['registerElementLabel']('pageBreak',_0x2032bc=>o(_0x300f0b,'ELEMENT_PAGE_BREAK',_0x2032bc));}}class yt extends _0x147a49{['afterInit'](){const _0x4f8ad9=this['editor'];if(!_0x4f8ad9['plugins']['has']('Paragraph'))return;const _0x131c67=_0x4f8ad9['locale'],_0x1e0270=_0x4f8ad9['plugins']['get']('TrackChangesEditing');_0x1e0270['descriptionFactory']['registerElementLabel']('paragraph',_0x3d8daa=>o(_0x131c67,'ELEMENT_PARAGRAPH',_0x3d8daa)),_0x1e0270['enableDefaultAttributesIntegration']('paragraph'),_0x1e0270['enableCommand']('insertParagraph');const _0x3e426d=_0x1e0270['descriptionFactory'];_0x3e426d['registerDescriptionCallback'](_0x495ecd=>{if('insertion'!==_0x495ecd['type'])return;const {start:_0x1d4a41,end:_0x2d965e}=_0x495ecd['getFirstRange']();if(!_0x1d4a41['isTouching'](_0x2d965e)||!_0x1d4a41['nodeAfter'])return;const _0x2f49ce=_0x4f8ad9['model']['schema'],_0x1da1aa=_0x1d4a41['nodeAfter'];return _0x2f49ce['isBlock'](_0x1da1aa)&&!_0x2f49ce['isLimit'](_0x1da1aa)&&_0x2f49ce['checkChild'](_0x1da1aa,'$text')?{'type':'insertion','content':o(_0x131c67,'*Insert:*\x20%0',_0x3e426d['getItemLabel'](_0x1da1aa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b9314=this['editor'],_0x5b8e4c=_0x9b9314['locale'];_0x9b9314['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x599af4=>{if('formatBlock'!=_0x599af4['type'])return;const {data:_0x4f8c0d}=_0x599af4;return _0x4f8c0d&&'paragraph'==_0x4f8c0d['commandName']?{'type':'format','content':o(_0x5b8e4c,'*Change\x20to:*\x20%0',o(_0x5b8e4c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x147a49{['afterInit'](){const _0x18f97c=this['editor'];_0x18f97c['commands']['get']('replaceSource')&&_0x18f97c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x147a49{['afterInit'](){const _0xb231b4=this['editor'];if(!_0xb231b4['plugins']['has']('RemoveFormatEditing'))return;_0xb231b4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e7aa=this['editor'];_0x53e7aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4663aa=>{if('formatBlock'!=_0x4663aa['type']&&'formatInline'!=_0x4663aa['type'])return;const {data:_0x3f8f42}=_0x4663aa;return _0x3f8f42&&'removeFormat'==_0x3f8f42['commandName']?{'type':'format','content':o(_0x53e7aa['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x147a49{['afterInit'](){const _0x528391=this['editor'];if(!_0x528391['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x582c78=_0x528391['plugins']['get']('TrackChangesEditing');_0x582c78['enableCommand']('goToPreviousRestrictedEditingException'),_0x582c78['enableCommand']('goToNextRestrictedEditingException');const _0xf57a77=_0x528391['plugins']['get']('RestrictedEditingModeEditing');_0xf57a77['enableCommand']('trackChanges'),_0xf57a77['enableCommand']('acceptSuggestion'),_0xf57a77['enableCommand']('discardSuggestion'),_0xf57a77['enableCommand']('acceptAllSuggestions'),_0xf57a77['enableCommand']('discardAllSuggestions'),_0xf57a77['enableCommand']('acceptSelectedSuggestions'),_0xf57a77['enableCommand']('discardSelectedSuggestions');}}class At extends _0x147a49{['afterInit'](){const _0x3bcffb=this['editor'];if(!_0x3bcffb['plugins']['has']('ShiftEnter'))return;const _0x5c3f93=_0x3bcffb['plugins']['get']('TrackChangesEditing');_0x5c3f93['enableCommand']('shiftEnter'),_0x5c3f93['descriptionFactory']['registerElementLabel']('softBreak',_0x5be092=>o(_0x3bcffb['locale'],'ELEMENT_LINE_BREAK',_0x5be092));}}function an(_0x1ea5fa,_0x417676,_0x468a99){const _0x1f109d=[];for(const _0x426dff of _0x417676['getItems']())_0x426dff['hasAttribute'](_0x1ea5fa)&&_0x1f109d['push'](_0x468a99['createRangeOn'](_0x426dff));return _0x1f109d;}class _t extends _0x147a49{['afterInit'](){this['editor']['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand']());}['_enableEditingExceptionCommand'](){const _0x449697=this['editor'],_0x301502=_0x449697['model'],_0x15ec3a=_0x449697['locale'],_0x6ad0df=_0x449697['plugins']['get']('TrackChangesEditing'),_0x34dad3='restrictedEditingException',_0x3e9f0c=_0x449697['commands']['get'](_0x34dad3);_0x6ad0df['enableCommand'](_0x34dad3,(_0x35d486,_0x23a2f5={})=>{const _0x53f83f=_0x301502['document']['selection'];if(_0x53f83f['isCollapsed'])return void _0x35d486(_0x23a2f5);const _0x22dea6=void 0x0!==_0x23a2f5['forceValue']?_0x23a2f5['forceValue']:!_0x3e9f0c['value'];_0x301502['change'](()=>{const _0x2d35e9=Array['from'](_0x53f83f['getRanges']());for(const _0x4dd257 of _0x2d35e9){const _0x2627db=_0x22dea6?[_0x4dd257]:an(_0x34dad3,_0x4dd257,_0x301502);for(const _0x25e8d5 of _0x2627db)_0x6ad0df['markInlineFormat'](_0x25e8d5,{'commandName':_0x34dad3,'commandParams':[{'forceValue':_0x22dea6}]});}});}),_0x6ad0df['descriptionFactory']['registerDescriptionCallback'](_0x5a8502=>{if('formatBlock'!=_0x5a8502['type']&&'formatInline'!=_0x5a8502['type'])return;const {data:_0x176ffe}=_0x5a8502;return _0x176ffe&&_0x176ffe['commandName']==_0x34dad3?_0x176ffe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15ec3a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x15ec3a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x16ddbb=this['editor'],_0x54b803=_0x16ddbb['locale'],_0x1b1717=_0x16ddbb['plugins']['get']('TrackChangesEditing'),_0x458bd6='restrictedEditingExceptionBlock',_0x17e10a=this['editor']['commands']['get'](_0x458bd6);_0x1b1717['enableCommand'](_0x458bd6,(_0x869533,_0x1a33fc={})=>{const _0x447bdd=this['editor']['model']['document']['selection'],_0x26e00e=_0x1a33fc&&void 0x0!==_0x1a33fc['forceValue']?_0x1a33fc['forceValue']:!_0x17e10a['value'];let _0xba9e61=[];if(_0x26e00e){const _0x9a2c34=Array['from'](_0x447bdd['getSelectedBlocks']())['filter'](_0x67b0fb=>function(_0x1cc3d6){return!!_0x1cc3d6['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x67b0fb)||function(_0x1f311e,_0x1e3ef3){const _0x170d69=_0x1e3ef3['createContext'](_0x1f311e['parent']);if(!_0x1e3ef3['checkChild'](_0x170d69,'restrictedEditingException'))return!0x1;if(!_0x1e3ef3['checkChild'](_0x170d69['push']('restrictedEditingException'),_0x1f311e))return!0x1;return!0x0;}(_0x67b0fb,this['editor']['model']['schema']));_0xba9e61=to(_0x9a2c34,_0x16ddbb['model']);}else{const _0x909201=Array['from'](_0x447bdd['getSelectedBlocks']())['map'](_0x3e62d5=>function(_0x373c75){let _0xc2fe5b=_0x373c75;for(;_0xc2fe5b['parent'];){if('restrictedEditingException'==_0xc2fe5b['parent']['name'])return _0xc2fe5b;_0xc2fe5b=_0xc2fe5b['parent'];}return null;}(_0x3e62d5))['filter'](_0x306b26=>!!_0x306b26);_0xba9e61=to(_0x909201,_0x16ddbb['model']);}_0x16ddbb['model']['change'](()=>{for(const _0x3ec5e3 of _0xba9e61)_0x1b1717['markBlockFormat'](_0x3ec5e3,{'commandName':_0x458bd6,'commandParams':[{'forceValue':_0x26e00e}]});});}),_0x1b1717['descriptionFactory']['registerDescriptionCallback'](_0x4ec456=>{const {data:_0x21ed69}=_0x4ec456;if(_0x21ed69&&_0x21ed69['commandName']==_0x458bd6)return _0x21ed69['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54b803,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x54b803,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x147a49{['afterInit'](){const _0xfc3295=this['editor'];if(!_0xfc3295['plugins']['has']('Style')||!_0xfc3295['plugins']['has']('DataSchema'))return;const _0x232841=_0xfc3295['plugins']['get']('TrackChangesEditing'),_0x212110=_0xfc3295['locale'],_0x49de0c=_0xfc3295['config']['get']('style')||{},_0x1fb1ba=_0xfc3295['plugins']['get']('GeneralHtmlSupport'),_0x365894=_0xfc3295['plugins']['get']('StyleUtils')['normalizeConfig'](_0xfc3295['plugins']['get']('DataSchema'),_0x49de0c['definitions']);_0x232841['enableDefaultAttributesIntegration']('style');const _0xda8a6e=new Set();for(const _0x4c4d2e of _0x365894['block']){const _0x26a7f1=_0x1fb1ba['getGhsAttributeNameForElement'](_0x4c4d2e['element']);_0xda8a6e['add'](_0x26a7f1);}const _0x43cd96=new Set();for(const _0x11ff47 of _0x365894['inline']){const _0x26dba5=_0x1fb1ba['getGhsAttributeNameForElement'](_0x11ff47['element']);_0x43cd96['add'](_0x26dba5);for(const _0x552e94 of _0x11ff47['ghsAttributes'])_0x43cd96['add'](_0x552e94);}for(const _0x9e02de of _0xda8a6e)_0x232841['descriptionFactory']['registerAttributeLabel'](_0x9e02de,o(_0x212110,'FORMAT_STYLE'));for(const _0x67d684 of _0x43cd96)_0x232841['descriptionFactory']['registerAttributeLabel'](_0x67d684,o(_0x212110,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a535f=this['editor'],_0xe3f75a=_0x5a535f['locale'];_0x5a535f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3784ff=>{if('formatBlock'!=_0x3784ff['type']&&'formatInline'!=_0x3784ff['type'])return;const {data:_0xa4318e}=_0x3784ff;return _0xa4318e&&'style'===_0xa4318e['commandName']?_0xa4318e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe3f75a,'*Set\x20format:*\x20%0',_0xa4318e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xe3f75a,'*Remove\x20format:*\x20%0',_0xa4318e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x147a49{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9133a){super(_0x9133a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x145556=this['editor'],_0x2479d9=_0x145556['model']['document']['selection'];if(!_0x145556['plugins']['has']('TableEditing'))return;const _0x2d5dfa=_0x145556['locale'],_0x5508e1=_0x145556['plugins']['get']('TrackChangesEditing'),_0x2e234d=_0x145556['plugins']['get']('TableUtils');_0x5508e1['descriptionFactory']['registerElementLabel']('table',_0x151375=>o(_0x2d5dfa,'ELEMENT_TABLE',_0x151375)),this['_setupColumnsRowsFixing'](),_0x5508e1['enableCommand']('insertTable'),_0x5508e1['enableCommand']('selectTableRow'),_0x5508e1['enableCommand']('selectTableColumn');for(const _0x5da8b2 of['insertTableRowAbove','insertTableRowBelow']){const _0x5c2b9e=_0x145556['commands']['get'](_0x5da8b2);_0x5508e1['enableCommand'](_0x5da8b2,_0x3453ed=>{_0x145556['model']['change'](_0x5f34e4=>{_0x3453ed();const _0x2be90e='above'===_0x5c2b9e['order'],_0x1d04fa=_0x2e234d['getSelectionAffectedTableCells'](_0x2479d9),_0xe2c56e=_0x2e234d['getRowIndexes'](_0x1d04fa),_0x3bf592=_0x2be90e?_0xe2c56e['first']-0x1:_0xe2c56e['last']+0x1,_0x52f1ac=_0x1d04fa[0x0]['findAncestor']('table'),_0x24d3e4=_0x2e234d['createTableWalker'](_0x52f1ac,{'startRow':_0x3bf592,'endRow':_0x3bf592}),_0x8f8748=Array['from'](_0x24d3e4)['map'](_0x40ec15=>_0x5f34e4['createRangeOn'](_0x40ec15['cell']));_0x5508e1['markMultiRangeInsertion'](_0x8f8748,'tableRow');});});}for(const _0x1d0ee9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b50d8=_0x145556['commands']['get'](_0x1d0ee9);_0x5508e1['enableCommand'](_0x1d0ee9,_0x257203=>{_0x145556['model']['change'](_0x5796ff=>{_0x257203();const _0x1b738a='left'===_0x5b50d8['order'],_0x3371d=_0x2e234d['getSelectionAffectedTableCells'](_0x2479d9),_0x4252e0=_0x2e234d['getColumnIndexes'](_0x3371d),_0x498e3e=_0x1b738a?_0x4252e0['first']-0x1:_0x4252e0['last']+0x1,_0x4576b4=_0x3371d[0x0]['findAncestor']('table'),_0x491764=_0x2e234d['createTableWalker'](_0x4576b4,{'startRow':0x0,'column':_0x498e3e,'includeAllSlots':!0x1}),_0x1831bf=Array['from'](_0x491764)['map'](_0x2a0c24=>_0x5796ff['createRangeOn'](_0x2a0c24['cell']));_0x5508e1['markMultiRangeInsertion'](_0x1831bf,'tableColumn');});});}for(const _0x499fee of['removeTableRow','removeTableColumn']){const _0x5140d7=_0x499fee['substr'](0xb),_0x2356ba=_0x5140d7['toLowerCase'](),_0x18fa1d=_0x2356ba['substr'](0x0,0x3)+'span',_0x1f1fa7='table'+_0x5140d7,_0x48e71e='min'+_0x5140d7,_0xe5ae5a='max'+_0x5140d7;_0x5508e1['enableCommand'](_0x499fee,()=>{_0x145556['model']['change'](_0x3a5369=>{const _0x25b5b0=_0x2e234d['getSelectionAffectedTableCells'](_0x2479d9),_0x35b7f7=_0x25b5b0[0x0]['findAncestor']('table');let _0x1d1dbe;if('removeTableRow'==_0x499fee){const _0x907d98=_0x2e234d['getRowIndexes'](_0x25b5b0);_0x1d1dbe={'startRow':_0x907d98['first'],'endRow':_0x907d98['last'],'includeAllSlots':!0x0};}else{const _0x448659=_0x2e234d['getColumnIndexes'](_0x25b5b0);_0x1d1dbe={'startColumn':_0x448659['first'],'endColumn':_0x448659['last'],'includeAllSlots':!0x0};}const _0x57339c=_0x2e234d['createTableWalker'](_0x35b7f7,_0x1d1dbe),_0xb0b083=Array['from'](_0x57339c)['map'](({cell:_0x1c6bbd})=>_0x1c6bbd),_0x5c734c=_e(_0xb0b083['filter'](_0x44d99b=>_0x44d99b['hasAttribute'](_0x18fa1d))),_0xb95aaa=_e(_0xb0b083['filter'](_0x90c852=>!_0x90c852['hasAttribute'](_0x18fa1d)))['map'](_0x19f539=>_0x3a5369['createRangeOn'](_0x19f539)),_0x298fe7=_0x5508e1['markMultiRangeDeletion'](_0xb95aaa,_0x1f1fa7);if(_0x298fe7&&('tableRow'==_0x298fe7['subType']||'tableColumn'==_0x298fe7['subType'])){const _0x20821f=this['_getSuggestionCoords'](_0x298fe7);for(const _0x401ff8 of _0x5c734c){const _0x2f74a9=_0x3a5369['createRangeOn'](_0x401ff8),_0x1316af=_0x2e234d['getCellLocation'](_0x401ff8),_0x30ae4a=_0x401ff8['getAttribute'](_0x18fa1d)-0x1,_0x2112d0=_0x20821f[_0x48e71e],_0x24fd44=_0x20821f[_0xe5ae5a];_0x2112d0<=_0x1316af[_0x2356ba]&&_0x1316af[_0x2356ba]+_0x30ae4a<=_0x24fd44&&_0x298fe7['addRange'](_0x2f74a9);}}});});}function _0x2521e9(_0x4184fe){const _0x2eeb84=Array['from'](_0x2479d9['getRanges']())['map'](_0x6ceadd=>_0x468db3['fromRange'](_0x6ceadd));_0x145556['model']['change'](_0x4e0b5f=>{const _0xcdf39d=_0x4e0b5f['batch'];_0x4184fe=_0x4184fe['filter'](_0x55d3e8=>'$graveyard'!=_0x55d3e8['root']['rootName']),_0x4e0b5f['setSelection'](_0x4184fe),_0x145556['commands']['get']('removeTableRow')['refresh'](),_0x145556['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x145556['model']['enqueueChange'](()=>{_0x145556['model']['enqueueChange'](_0xcdf39d,_0x277676=>{const _0x24a7f9=_0x2eeb84['filter'](_0x52a8cc=>'$graveyard'!=_0x52a8cc['root']['rootName']);_0x24a7f9['length']>0x0&&_0x277676['setSelection'](_0x24a7f9);for(const _0x2d52b8 of _0x2eeb84)_0x2d52b8['detach']();});});});}function _0x48e3e3(_0x2ddee0){_0x145556['model']['change'](_0xa219cd=>{const _0x286ebb=Array['from'](_0x2479d9['getRanges']())['map'](_0x1d3740=>_0x468db3['fromRange'](_0x1d3740)),_0x3091f0=[];for(const _0x2b9bbd of _0x2ddee0)for(const _0x537f14 of _0x2b9bbd['getItems']({'shallow':!0x0}))_0x3091f0['push'](_0x537f14);for(const _0xeb2292 of _0x3091f0)'$graveyard'!=_0xeb2292['root']['rootName']&&(_0xa219cd['setSelection'](_0xa219cd['createPositionAt'](_0xeb2292,0x0)),_0x145556['commands']['get']('removeTableColumn')['refresh'](),_0x145556['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x62cc6=_0x286ebb['filter'](_0x3869a7=>'$graveyard'!=_0x3869a7['root']['rootName']);_0x62cc6['length']>0x0&&_0xa219cd['setSelection'](_0x62cc6);for(const _0x318eba of _0x286ebb)_0x318eba['detach']();});}function _0x49ce2a(_0x53bbde,_0x101dfa){return _0x101dfa['every'](_0x14fdd1=>_0x53bbde['some'](_0x455efc=>_0x455efc['end']['isEqual'](_0x14fdd1['start'])||_0x14fdd1['end']['isEqual'](_0x455efc['start'])));}function _0x5ce785(_0x1d4f10,_0x3520c5){return!_0x1d4f10['some'](_0x47aa11=>_0x3520c5['some'](_0x4cc921=>_0x47aa11['isIntersecting'](_0x4cc921)))&&_0x1d4f10['some'](_0x3ab20a=>_0x3520c5['some'](_0x553cc2=>_0x3ab20a['end']['isTouching'](_0x553cc2['start'])));}_0x5508e1['descriptionFactory']['registerDescriptionCallback'](_0x5734fe=>{if('insertion'!=_0x5734fe['type']&&'deletion'!=_0x5734fe['type'])return;const _0x30da4c=_0x5734fe['getContainedElement']();if(null!=_0x30da4c&&_0x30da4c['is']('element','table')){if('insertion'==_0x5734fe['type']){const _0x3cfdcb=_0x5734fe['getItems']()['filter'](_0x1a7268=>_0x1a7268['is']('$textProxy'))['map'](_0x5012f4=>_0x5012f4['data']);if(_0x3cfdcb['length'])return{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3cfdcb['join']('\x20')+'\x22'))};}if('deletion'==_0x5734fe['type']){const _0x4de5e1=_0x5734fe['getItems']()['filter'](_0x3f17e7=>_0x3f17e7['is']('$textProxy'))['map'](_0x209a0c=>_0x209a0c['data']);if(_0x4de5e1['length'])return{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4de5e1['join']('\x20')+'\x22'))};}}}),_0x5508e1['descriptionFactory']['registerDescriptionCallback'](_0x5ad242=>{if('tableRow'==_0x5ad242['subType']){const _0x31be6e=_0x5ad242['getItems']()['filter'](_0x4cee74=>_0x4cee74['is']('$textProxy'))['map'](_0x54c0a2=>_0x54c0a2['data']),_0x4ec1c9=this['_getSuggestionCoords'](_0x5ad242),_0x397b77=_0x4ec1c9['maxRow']-_0x4ec1c9['minRow']+0x1;if('insertion'==_0x5ad242['type'])return _0x31be6e['length']?{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x397b77,'\x22'+_0x31be6e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_ROW',_0x397b77))};if('deletion'==_0x5ad242['type'])return _0x31be6e['length']?{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x397b77,'\x22'+_0x31be6e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_ROW',_0x397b77))};}if('tableColumn'==_0x5ad242['subType']){const _0x723a89=_0x5ad242['getItems']()['filter'](_0x53674b=>_0x53674b['is']('$textProxy'))['map'](_0x36a4a2=>_0x36a4a2['data']),_0x2ac9ac=this['_getSuggestionCoords'](_0x5ad242),_0x28ad87=_0x2ac9ac['maxColumn']-_0x2ac9ac['minColumn']+0x1;if('insertion'==_0x5ad242['type'])return _0x723a89['length']?{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28ad87,'\x22'+_0x723a89['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d5dfa,'*Insert:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_COLUMN',_0x28ad87))};if('deletion'==_0x5ad242['type'])return _0x723a89['length']?{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28ad87,'\x22'+_0x723a89['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d5dfa,'*Remove:*\x20%0',o(_0x2d5dfa,'ELEMENT_TABLE_COLUMN',_0x28ad87))};}}),_0x5508e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2521e9),_0x5508e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2521e9),_0x5508e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x48e3e3),_0x5508e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x48e3e3),_0x5508e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x49ce2a),_0x5508e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x49ce2a),_0x5508e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ce785),_0x5508e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ce785);}['_acceptFormatSuggestionCallbackFactory'](){const _0x22e52a=this['editor'],_0x3aa3fa=_0x22e52a['model']['document']['selection'];return(_0x126a41,_0x4b56ec)=>{_0x22e52a['model']['change'](_0x13d34f=>{const {commandName:_0x1658f7,commandParams:_0x24f30d}=_0x4b56ec;let _0x1a32c0=_0x126a41[0x0]['end']['nodeBefore'];_0x24f30d&&_0x24f30d[0x0]&&!0x1===_0x24f30d[0x0]['forceValue']&&(_0x1a32c0=_0x126a41[0x0]['start']['nodeAfter']);const _0x5bb7e8=_0x13d34f['createRangeIn'](_0x1a32c0);if('$graveyard'==_0x5bb7e8['root']['rootName'])return;const _0x4dd9e7=Array['from'](_0x3aa3fa['getRanges']())['map'](_0x2acc8e=>_0x468db3['fromRange'](_0x2acc8e));_0x13d34f['setSelection'](_0x5bb7e8),_0x22e52a['commands']['get'](_0x1658f7)['refresh'](),_0x24f30d['push']({'forceDefaultExecution':!0x0}),_0x22e52a['execute'](_0x1658f7,..._0x24f30d);const _0x29b3e3=_0x4dd9e7['filter'](_0x375b4a=>'$graveyard'!=_0x375b4a['root']['rootName']);_0x29b3e3['length']>0x0&&_0x13d34f['setSelection'](_0x29b3e3);for(const _0x3b80e7 of _0x4dd9e7)_0x3b80e7['detach']();});};}['_getCoordsForCells'](_0x48fc2a){const _0x46f806=this['editor']['plugins']['get']('TableUtils');let _0x2efc3a=Number['MAX_SAFE_INTEGER'],_0x52e768=Number['MIN_SAFE_INTEGER'],_0x458e73=Number['MAX_SAFE_INTEGER'],_0x1bb0f4=Number['MIN_SAFE_INTEGER'];for(const _0x134067 of _0x48fc2a){if('$graveyard'==_0x134067['root']['rootName'])continue;const {row:_0x31aec9,column:_0x4c5ec5}=_0x46f806['getCellLocation'](_0x134067),_0x2ac7be=_0x134067['hasAttribute']('rowspan')?_0x134067['getAttribute']('rowspan')-0x1:0x0,_0x5655ff=_0x134067['hasAttribute']('colspan')?_0x134067['getAttribute']('colspan')-0x1:0x0;_0x2efc3a=_0x31aec9<_0x2efc3a?_0x31aec9:_0x2efc3a,_0x52e768=_0x31aec9+_0x2ac7be>_0x52e768?_0x31aec9+_0x2ac7be:_0x52e768,_0x458e73=_0x4c5ec5<_0x458e73?_0x4c5ec5:_0x458e73,_0x1bb0f4=_0x4c5ec5+_0x5655ff>_0x1bb0f4?_0x4c5ec5+_0x5655ff:_0x1bb0f4;}return{'minRow':_0x2efc3a,'maxRow':_0x52e768,'minColumn':_0x458e73,'maxColumn':_0x1bb0f4};}['_setupColumnsRowsFixing'](){const _0x50e6d4=this['editor'],_0x5a5b95=_0x50e6d4['plugins']['get']('TrackChangesEditing'),_0x1ad7de=_0x50e6d4['plugins']['get']('TableUtils');_0x50e6d4['model']['document']['on']('change:data',()=>{const _0x3511f6=Array['from'](_0x50e6d4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x394a9,data:_0x1e69a4}of _0x3511f6){const {group:_0x36be1c,id:_0x149522,subType:_0x2aa791}=_0x5a5b95['_splitMarkerName'](_0x394a9);if('suggestion'!=_0x36be1c)continue;if(null!=_0x1e69a4['oldRange'])continue;const _0x4435b0=_0x5a5b95['getSuggestion'](_0x149522);this['_tablePostFixingSubtypes']['includes'](_0x2aa791)&&this['_tableSuggestions']['add'](_0x4435b0);}},{'priority':'low'});const _0x4f5cbf=(_0x4c5c32,_0x5d0398)=>{let _0x4f0310=!0x1;const _0x16e30d=_0x5d0398['createRangeOn'](_0x4c5c32),_0x4fa721=_0x4c5c32['findAncestor']('table'),_0x2b9b82=_0x1ad7de['getCellLocation'](_0x4c5c32);for(const _0x121614 of this['_tableSuggestions']){const _0x11bdf4=_0x121614['subType'],_0x13f31b=_0x11bdf4['startsWith']('tablePaste'),_0x12d7ae=_0x11bdf4['substr'](_0x13f31b?0xa:0x5),_0x8700b1=_0x12d7ae['toLowerCase'](),_0x4b6a87=_0x8700b1['substr'](0x0,0x3)+'span',_0x28ca32='min'+_0x12d7ae,_0x246a3d='max'+_0x12d7ae;if(!_0x121614['isInContent'])continue;if(_0x4fa721!=_0x121614['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x121614['isIntersectingWithRange'](_0x16e30d))continue;const _0x13f475=_0x4c5c32['hasAttribute'](_0x4b6a87)?_0x4c5c32['getAttribute'](_0x4b6a87)-0x1:0x0,_0x4f515f=this['_getSuggestionCoords'](_0x121614),_0x56c9ba=_0x4f515f[_0x28ca32],_0x36bc0e=_0x4f515f[_0x246a3d];_0x56c9ba<=_0x2b9b82[_0x8700b1]&&_0x2b9b82[_0x8700b1]+_0x13f475<=_0x36bc0e&&(_0x121614['addRange'](_0x16e30d),_0x4f0310=!0x0);}return _0x4f0310;};_0x50e6d4['model']['document']['registerPostFixer'](_0xac9b23=>{let _0x377732=!0x1;for(const _0x19127d of _0x50e6d4['model']['document']['differ']['getChanges']())if('insert'==_0x19127d['type']){if('tableRow'==_0x19127d['name']){for(const _0x344c08 of _0x19127d['position']['nodeAfter']['getChildren']())_0x377732=_0x377732||_0x4f5cbf(_0x344c08,_0xac9b23);}else'tableCell'==_0x19127d['name']&&(_0x377732=_0x377732||_0x4f5cbf(_0x19127d['position']['nodeAfter'],_0xac9b23));}return _0x377732;});}['_getSuggestionCoords'](_0x5517f5){return this['_getCoordsForCells'](_0x5517f5['getRanges']()['map'](_0xc78e32=>_0xc78e32['start']['nodeAfter']));}}function _e(_0x390b62){return Array['from'](new Set(_0x390b62)['values']());}class $t extends _0x147a49{static get['requires'](){return[Nt];}['afterInit'](){const _0x330670=this['editor'],_0x56b3b3=_0x330670['model']['document']['selection'],_0x4aaa5e=_0x330670['locale'];if(!_0x330670['plugins']['has']('TableEditing'))return;const _0x391b45=_0x330670['plugins']['get']('TrackChangesEditing'),_0x21555b=_0x330670['plugins']['get']('TableUtils'),_0x54e28d=_0x330670['plugins']['get'](Nt);_0x54e28d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x391b45['enableCommand']('mergeTableCells',()=>{const _0x2b1d00=_0x21555b['getSelectionAffectedTableCells'](_0x330670['model']['document']['selection']);_0x330670['model']['change'](()=>{_0x391b45['markMultiRangeBlockFormat'](_0x2b1d00,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x330670['commands']['get']('mergeTableCells')['on']('execute',(_0x58160d,_0x2fbcca)=>{_0x330670['commands']['get']('trackChanges')['value']&&(_0x2fbcca['length']>0x0&&_0x2fbcca[_0x2fbcca['length']-0x1]&&_0x2fbcca[_0x2fbcca['length']-0x1]['forceDefaultExecution']||_0x391b45['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x58160d['stop']());},{'priority':'highest'});for(const _0x5c7264 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x12fe39=_0x330670['commands']['get'](_0x5c7264);_0x391b45['enableCommand'](_0x5c7264,()=>{const _0x584ab4=_0x330670['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xcfd539=>_0xcfd539['is']('element','tableCell')),_0x5e0682=_0x12fe39['value'];_0x330670['model']['change'](()=>{_0x391b45['markMultiRangeBlockFormat']([_0x584ab4,_0x5e0682],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x282ac2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c89da=_0x330670['commands']['get'](_0x282ac2);_0x391b45['enableCommand'](_0x282ac2,()=>{const _0x2d8d94=_0x21555b['getSelectionAffectedTableCells'](_0x330670['model']['document']['selection'])[0x0],_0x10333f=_0x2d8d94['findAncestor']('table'),{column:_0x13cd61,row:_0x39a0f5}=_0x21555b['getCellLocation'](_0x2d8d94);let _0x42a563=[];if('horizontally'==_0x1c89da['direction']){const _0x14be18=_0x21555b['createTableWalker'](_0x10333f,{'startRow':_0x39a0f5,'endRow':_0x39a0f5,'includeAllSlots':!0x0});_0x42a563=Array['from'](_0x14be18)['map'](_0x5bcf0c=>_0x5bcf0c['cell']);}else{const _0x41cea5=_0x21555b['createTableWalker'](_0x10333f,{'column':_0x13cd61,'includeAllSlots':!0x0});_0x42a563=Array['from'](_0x41cea5)['map'](_0x415d10=>_0x415d10['cell']);}_0x330670['model']['change'](_0x5e6d8c=>{_0x391b45['markBlockFormat'](_0x5e6d8c['createRangeOn'](_0x2d8d94),{'commandName':_0x282ac2,'commandParams':[]},_0x42a563,_0x282ac2);});});}_0x391b45['descriptionFactory']['registerDescriptionCallback'](_0x2b5796=>{if('formatBlock'!=_0x2b5796['type']&&'formatInline'!=_0x2b5796['type'])return;const {data:_0x2a6ef5}=_0x2b5796;return _0x2a6ef5&&'mergeTableCells'==_0x2a6ef5['commandName']?{'type':'format','content':o(_0x4aaa5e,'*Merge\x20cells*')}:void 0x0;}),_0x391b45['descriptionFactory']['registerDescriptionCallback'](_0x57e6ec=>{if('formatBlock'!=_0x57e6ec['type']&&'formatInline'!=_0x57e6ec['type'])return;const {data:_0x5ac73b}=_0x57e6ec;return _0x5ac73b?'splitTableCellVertically'==_0x5ac73b['commandName']?{'type':'format','content':o(_0x4aaa5e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5ac73b['commandName']?{'type':'format','content':o(_0x4aaa5e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x447479=_0x54e28d['_acceptFormatSuggestionCallbackFactory']();for(const _0x206ca4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x391b45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x206ca4,'accept',_0x447479);for(const _0x440447 of['splitTableCellVertically','splitTableCellHorizontally'])_0x391b45['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x440447,'accept',_0x447479);_0x391b45['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x34a8b4=>{_0x330670['model']['change'](_0x1dac5b=>{const _0x8705bc=Array['from'](_0x56b3b3['getRanges']())['map'](_0x4ebec3=>_0x468db3['fromRange'](_0x4ebec3));_0x1dac5b['setSelection'](_0x34a8b4),_0x330670['commands']['get']('mergeTableCells')['refresh'](),_0x330670['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x55ce10=_0x8705bc['filter'](_0x5a1c7d=>'$graveyard'!=_0x5a1c7d['root']['rootName']);_0x55ce10['length']>0x0&&_0x1dac5b['setSelection'](_0x55ce10);for(const _0x32cc34 of _0x8705bc)_0x32cc34['detach']();});});for(const _0x53d2a2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4af244=_0x330670['commands']['get'](_0x53d2a2);_0x4af244['on']('set:isEnabled',(_0x4fec0b,_0x1f9446,_0x387a75)=>{if(_0x387a75){const _0x47d0e3=_0x330670['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x230122=>_0x230122['is']('element','tableCell'));this['_areMergableCells'](_0x4af244['value'],_0x47d0e3)||(_0x4fec0b['return']=!0x1,_0x4fec0b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x561bbf=this['editor']['commands']['get']('mergeTableCells'),_0x134da1=this['editor']['plugins']['get']('TableUtils');if(!_0x561bbf['isEnabled'])return!0x1;const _0x315ae0=_0x134da1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1d6af6 of _0x315ae0)for(const _0xabb7be of _0x315ae0)if(_0x1d6af6!=_0xabb7be&&!this['_areMergableCells'](_0x1d6af6,_0xabb7be))return!0x1;return!0x0;}['_areMergableCells'](_0x3d9182,_0x2d0d0c){const _0x429341=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55706b=this['editor']['model']['createRangeOn'](_0x3d9182),_0x421cc7=this['editor']['model']['createRangeOn'](_0x2d0d0c),_0x4086ba=new Set(),_0x186114=new Set();for(const _0x1537f5 of _0x429341['getSuggestions']())if(('insertion'==_0x1537f5['type']||'deletion'==_0x1537f5['type']||'mergeTableCells'==_0x1537f5['subType'])&&_0x1537f5['isInContent']){for(const _0x20943b of _0x1537f5['getRanges']())_0x20943b['containsRange'](_0x55706b,!0x0)&&_0x4086ba['add'](_0x1537f5['type']+':'+_0x1537f5['author']['id']),_0x20943b['containsRange'](_0x421cc7,!0x0)&&_0x186114['add'](_0x1537f5['type']+':'+_0x1537f5['author']['id']);}if(_0x4086ba['size']!=_0x186114['size'])return!0x1;for(const _0x5732af of _0x4086ba)if(!_0x186114['has'](_0x5732af))return!0x1;return!0x0;}}class vt extends _0x147a49{static get['requires'](){return[Nt];}['afterInit'](){const _0x539c7e=this['editor'];if(!_0x539c7e['plugins']['has']('TableEditing'))return;const _0x226738=_0x539c7e['locale'],_0x1b1f91=_0x539c7e['plugins']['get']('TrackChangesEditing');_0x1b1f91['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b1f91['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b1f91['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x226738,'FORMAT_HEADER_ROW')),_0x1b1f91['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x226738,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x246928=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd1fe80=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x246928['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xd1fe80),_0x246928['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xd1fe80),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x1612d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49da43=this['editor']['plugins']['get']('TableUtils');function _0x316ba8({showActiveMarker:_0x3025e2=!0x0,setDataAttribute:_0x18d60f=!0x0}={}){return(_0x2c3df3,_0x56dbfa,_0xc1c264)=>{const {type:_0x43cd7d,id:_0x5de685}=_0x1612d4['_splitMarkerName'](_0x56dbfa['markerName']);if(!_0x1612d4['hasSuggestion'](_0x5de685))return;const _0x5d5980=_0x1612d4['getSuggestion'](_0x5de685),_0x3b81b0=_0x5d5980['data'];if('formatBlock'!=_0x5d5980['type']||!_0x3b81b0||'setTableColumnHeader'!=_0x3b81b0['commandName'])return;if(_0x56dbfa['item'])return void _0x2c3df3['stop']();if(!_0xc1c264['consumable']['consume'](_0x56dbfa['markerRange'],_0x2c3df3['name']))return;const _0x38f7b8=_0x56dbfa['markerRange']['start']['nodeAfter'],_0x4f8568=_0x56dbfa['markerRange']['end']['nodeBefore'],_0x304b94=_0x38f7b8['parent']['parent'],{column:_0x3b7f30}=_0x49da43['getCellLocation'](_0x38f7b8),{column:_0x3bc31c}=_0x49da43['getCellLocation'](_0x4f8568);for(let _0x33b6a5=_0x3b7f30;_0x33b6a5<=_0x3bc31c;_0x33b6a5++){const _0x3b5a0e=_0x49da43['createTableWalker'](_0x304b94,{'column':_0x33b6a5,'includeAllSlots':!0x1});for(const _0x3f12ef of _0x3b5a0e){const _0x2c8f11=_0x3f12ef['cell'],_0x3dc23e=_0xc1c264['mapper']['toViewElement'](_0x2c8f11);_0xc1c264['writer']['addClass']('ck-suggestion-marker-'+_0x43cd7d,_0x3dc23e),_0x18d60f&&_0xc1c264['writer']['setAttribute']('data-suggestion',_0x5de685,_0x3dc23e),_0xc1c264['mapper']['bindElementToMarker'](_0x3dc23e,_0x56dbfa['markerName']),_0x3025e2&&(_0x1612d4['activeMarkers']['includes'](_0x56dbfa['markerName'])?_0xc1c264['writer']['addClass']('ck-suggestion-marker--active',_0x3dc23e):_0xc1c264['writer']['removeClass']('ck-suggestion-marker--active',_0x3dc23e));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x316ba8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1392dc,_0x59abd6,_0x4c3249)=>{_0x4c3249['options']['showSuggestionHighlights']&&_0x316ba8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1392dc,_0x59abd6,_0x4c3249);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3dc1ab,_0x4219c3,_0x1acbfe)=>{const {type:_0x2a2fe1,id:_0x30e823}=_0x1612d4['_splitMarkerName'](_0x4219c3['markerName']);if(!_0x1612d4['hasSuggestion'](_0x30e823))return;const _0x29d47d=_0x1612d4['getSuggestion'](_0x30e823),_0x16e7e7=_0x29d47d['data'];if('formatBlock'!=_0x29d47d['type']||!_0x16e7e7||'setTableColumnHeader'!=_0x16e7e7['commandName'])return;const _0x3cf25d=_0x1acbfe['mapper']['markerNameToElements'](_0x4219c3['markerName']);if(_0x3cf25d){for(const _0xc07d62 of _0x3cf25d)_0x1acbfe['writer']['removeClass']('ck-suggestion-marker-'+_0x2a2fe1,_0xc07d62),_0x1acbfe['writer']['removeClass']('ck-suggestion-marker--active',_0xc07d62),_0x1acbfe['writer']['removeAttribute']('data-suggestion',_0xc07d62),_0x1acbfe['mapper']['unbindElementFromMarkerName'](_0xc07d62,_0x4219c3['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x12c603=this['editor'],_0x46d294=_0x12c603['locale'];function _0x233aa7(_0x2ea403){return{'type':'format','content':o(_0x46d294,'*Format:*\x20%0',_0x2ea403)};}_0x12c603['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30a471=>{if('formatBlock'!=_0x30a471['type'])return;const {data:_0x37fecd}=_0x30a471;if(_0x37fecd){if('setTableRowHeader'==_0x37fecd['commandName']){const _0x448b0d=_0x37fecd['commandParams'][0x0]['forceValue'];return _0x233aa7(o(_0x46d294,_0x448b0d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x37fecd['commandName']){const _0x40306d=_0x37fecd['commandParams'][0x0]['forceValue'];return _0x233aa7(o(_0x46d294,_0x40306d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x147a49{['afterInit'](){const _0x4bd377=this['editor'],_0x2c925d=_0x4bd377['locale'],_0x4ae038=_0x4bd377['plugins']['get']('TrackChangesEditing');function _0x2fc84b(_0x561359){return{'type':'format','content':''+o(_0x2c925d,'*Set\x20table\x20type:*\x20%0',_0x561359)};}_0x4bd377['plugins']['has']('TableLayout')&&(_0x4ae038['enableCommand']('insertTableLayout'),_0x4ae038['enableDefaultAttributesIntegration']('tableType'),_0x4ae038['descriptionFactory']['registerElementLabel'](_0x28d092=>_0x28d092['is']('element','table')&&'layout'===_0x28d092['getAttribute']('tableType'),_0x5e0d43=>o(_0x2c925d,'ELEMENT_LAYOUT_TABLE',_0x5e0d43)),_0x4ae038['descriptionFactory']['registerDescriptionCallback'](_0x458a28=>{const {data:_0x179b55}=_0x458a28;if(_0x179b55&&'tableType'==_0x179b55['key'])switch(_0x179b55['newValue']){case'layout':return _0x2fc84b(o(_0x2c925d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2fc84b(o(_0x2c925d,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x5f06c8=>[_0x5f06c8,null]));class Bt extends _0x147a49{static get['requires'](){return[Nt];}['afterInit'](){const _0x4722e9=this['editor'];if(!_0x4722e9['plugins']['has']('TableClipboard'))return;const _0x2e5a9e=_0x4722e9['plugins']['get']('TrackChangesEditing'),_0x471973=_0x4722e9['plugins']['get']('TableUtils'),_0xdcdc5b=_0x4722e9['plugins']['get'](Nt),_0x2ad5a2=_0x4722e9['plugins']['get']('TableClipboard'),_0x2fe800=_0x4722e9['plugins']['get']('TableSelection'),_0x44fa4d=_0x4722e9['plugins']['get'](_0x484d22);_0xdcdc5b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4722e9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4722e9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2853f3=null,_0x25cad0=!0x1;_0x44fa4d['on']('contentInsertion',(_0x593356,_0x20fff0)=>{_0x25cad0='paste'===_0x20fff0['method'];}),_0x4722e9['model']['on']('insertContent',(_0xa63058,_0x5246d5)=>{if(!_0x25cad0&&null===_0x2fe800['getSelectedTableCells']())return;const [_0x56c441,_0x3aef67]=_0x5246d5,_0x7fb88a=_0x5246d5[_0x5246d5['length']-0x1];_0x7fb88a&&_0x7fb88a['forceDefaultExecution']||_0x2e5a9e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x521484,_0x412722,_0x416740,_0xfb82c2,_0x281752){if(_0x412722&&!_0x412722['is']('documentSelection'))return!0x1;const _0x12d37b=_0x281752['getTableIfOnlyTableInContent'](_0x521484,_0x416740);if(!_0x12d37b||!Oe(_0x12d37b,void 0x0,_0xfb82c2))return!0x1;const _0x1aa4e0=_0xfb82c2['getSelectionAffectedTableCells'](_0x416740['document']['selection']);if(!_0x1aa4e0['length'])return!0x1;const _0x5743cb=_0x1aa4e0[0x0]['findAncestor']('table'),_0x333b17=_0xfb82c2['getRowIndexes'](_0x1aa4e0),_0x17720c=_0xfb82c2['getColumnIndexes'](_0x1aa4e0),_0x2c4cdc={'startRow':_0x333b17['first'],'endRow':_0x333b17['last'],'startColumn':_0x17720c['first'],'endColumn':_0x17720c['last']};return 0x1==_0x1aa4e0['length']&&(_0x2c4cdc['endRow']+=_0xfb82c2['getRows'](_0x12d37b)-0x1,_0x2c4cdc['endColumn']+=_0xfb82c2['getColumns'](_0x12d37b)-0x1),Oe(_0x5743cb,_0x2c4cdc,_0xfb82c2);}(_0x56c441,_0x3aef67,_0x4722e9['model'],_0x471973,_0x2ad5a2)&&(_0xa63058['stop'](),_0x2853f3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4722e9['model']['change'](()=>{_0x4722e9['model']['insertContent'](_0x5246d5[0x0],_0x5246d5[0x1],_0x5246d5[0x2],{'forceDefaultExecution':!0x0});const _0x574ed7=_0x2844ab(),{rowInsertionRanges:_0x1c1ed7,columnInsertionRanges:_0x14677e,insertionRanges:_0x39c308,deletionRanges:_0x2c3f63,cells:_0x4f5d70}=_0x2853f3;_0x1c1ed7['length']&&_0x2e5a9e['markMultiRangeInsertion'](_0x1c1ed7,'tablePasteRow',{'tablePasteChainId':_0x574ed7}),_0x14677e['length']&&_0x2e5a9e['markMultiRangeInsertion'](_0x14677e,'tablePasteColumn',{'tablePasteChainId':_0x574ed7}),_0x39c308['length']&&(_0x2e5a9e['markMultiRangeInsertion'](_0x39c308,'tablePaste',{'tablePasteChainId':_0x574ed7,'skipNestingCheck':!0x0}),_0x39c308['forEach'](_0x22985d=>_0x22985d['detach']?.())),_0x2c3f63['length']&&(_0x2e5a9e['markMultiRangeDeletion'](_0x2c3f63,'tablePaste',{'tablePasteChainId':_0x574ed7,'skipNestingCheck':!0x0}),_0x2c3f63['forEach'](_0x34ba3e=>_0x34ba3e['detach']?.()));const _0x548f99=_0x2e5a9e['markMultiRangeBlockFormat'](_0x4f5d70['map'](({element:_0x37db1c})=>_0x37db1c),{'formatGroupId':_0x2844ab()},[],'tablePasteCell',{'tablePasteChainId':_0x574ed7});if(_0x548f99){const _0xd2e561=_0x548f99['getMarkers'](),_0x48417c=[];for(const {element:_0x1df051,attributes:_0x34965d}of _0x4f5d70){if(!_0x34965d)continue;const _0x372a57=_0x4722e9['model']['createRangeOn'](_0x1df051),_0x3397f8=_0xd2e561['find'](_0x20de66=>_0x20de66['getRange']()['isEqual'](_0x372a57));_0x3397f8&&_0x48417c['push']([_0x3397f8['name'],_0x34965d]);}_0x48417c['length']&&_0x548f99['setAttribute']('markerAttributes',Object['fromEntries'](_0x48417c));}_0x2853f3=null;}));},{'priority':_0x5b2bcf['high']+0xa}),_0x44fa4d['on']('contentInsertion',()=>{_0x25cad0=!0x1;},{'priority':'lowest'}),_0x4722e9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x52bc03,_0x3b9cd6)=>{const [_0x4f9636,_0x382418,,_0x204a36]=_0x3b9cd6;if(!_0x2853f3)return;_0x52bc03['stop']();const _0x55f50c=_0x4f9636['cell'],_0x5d4ba7=_0x382418,_0xd86e63=Be(_0x55f50c),_0x2afb5e=Be(_0x5d4ba7);_0x52bc03['return']=_0x55f50c;let _0x4787a2=null,_0x54c66d=null;if(_0x2afb5e||_0xd86e63){if(_0xd86e63&&!_0x2afb5e){_0x204a36['remove'](_0x55f50c['getChild'](0x0));for(const _0x501504 of Array['from'](_0x5d4ba7['getChildren']()))_0x204a36['insert'](_0x501504,_0x55f50c,'end');const _0x423725=_0x2853f3['rowInsertionIndexes']['includes'](_0x4f9636['row']),_0x15b3d9=_0x2853f3['columnInsertionIndexes']['includes'](_0x4f9636['column']);_0x423725||_0x15b3d9||(_0x4787a2=_0x468db3['fromRange'](_0x204a36['createRangeIn'](_0x55f50c)));}else _0x2afb5e&&!_0xd86e63&&(_0x54c66d=_0x204a36['createRangeIn'](_0x55f50c));}else{const _0x4af947=_0x204a36['createElement']('tableCellSuggestion'),_0x14b072=_0x204a36['createElement']('tableCellSuggestion');_0x204a36['wrap'](_0x204a36['createRangeIn'](_0x55f50c),_0x14b072),_0x204a36['insert'](_0x4af947,_0x55f50c,0x0);for(const _0x2e3d49 of Array['from'](_0x5d4ba7['getChildren']()))_0x204a36['insert'](_0x2e3d49,_0x4af947,'end');_0x4787a2=_0x468db3['fromRange'](_0x204a36['createRangeOn'](_0x4af947)),_0x54c66d=_0x468db3['fromRange'](_0x204a36['createRangeOn'](_0x14b072));}const _0x29f32d=Array['from'](_0x5d4ba7['getAttributes']())['filter'](([_0x51b82a])=>Re['includes'](_0x51b82a));_0x2853f3['cells']['push']({'element':_0x55f50c,'attributes':_0x29f32d['length']?Object['fromEntries'](_0x29f32d):null}),_0x4787a2&&_0x2853f3['insertionRanges']['push'](_0x4787a2),_0x54c66d&&_0x2853f3['deletionRanges']['push'](_0x54c66d);},{'priority':'high'}),_0x471973['on']('insertColumns',(_0x1dc69d,_0x1e14cc)=>{const [_0x4f0b47,_0x127bfb={}]=_0x1e14cc;if(!_0x2853f3)return;const _0xc22364=_0x127bfb['at']||0x0,_0x4bc6a4=_0x127bfb['columns']||0x1;_0x2853f3['columnInsertionIndexes']=new Array(_0x4bc6a4)['fill'](_0xc22364)['map']((_0x255f0b,_0x224f8d)=>_0x255f0b+_0x224f8d);for(const {cell:_0x4ad2c5}of _0x471973['createTableWalker'](_0x4f0b47,{'startColumn':_0xc22364,'endColumn':_0xc22364+_0x4bc6a4-0x1}))_0x2853f3['columnInsertionRanges']['push'](_0x4722e9['model']['createRangeOn'](_0x4ad2c5));},{'priority':'low'}),_0x471973['on']('insertRows',(_0x42a02c,_0xb6cdb5)=>{const [_0x4868ce,_0x12842e={}]=_0xb6cdb5;if(!_0x2853f3)return;const _0x30d2d7=_0x12842e['at']||0x0,_0x3146af=_0x12842e['rows']||0x1;_0x2853f3['rowInsertionIndexes']=new Array(_0x3146af)['fill'](_0x30d2d7)['map']((_0x3a0fe1,_0x1614fd)=>_0x3a0fe1+_0x1614fd);for(const {cell:_0x2996b3}of _0x471973['createTableWalker'](_0x4868ce,{'startRow':_0x30d2d7,'endRow':_0x30d2d7+_0x3146af-0x1}))_0x2853f3['rowInsertionRanges']['push'](_0x4722e9['model']['createRangeOn'](_0x2996b3));},{'priority':'low'}),_0x2e5a9e['descriptionFactory']['registerDescriptionCallback'](_0x19f4b7=>{if(_0x19f4b7['subType']&&_0x19f4b7['subType']['startsWith']('tablePaste'))return _0x19f4b7['previous']?{}:{'type':'insertion','content':o(_0x4722e9['locale'],'*Replace\x20table\x20cells*')};});const _0x560385=()=>!0x1;for(const _0x3520e3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('insertion',_0x3520e3,'join',_0x560385),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('deletion',_0x3520e3,'join',_0x560385),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3520e3,'join',_0x560385);_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x560385),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2f702a,_0x127f66,_0x294b1c)=>{const _0x8bac71=_0x2f702a['map'](_0x45c45e=>_0x45c45e['getContainedElement']())['filter'](_0x150b15=>_0x150b15),_0x469b92=new Map(_0x8bac71['map'](_0x41b0de=>[_0x41b0de,null]));if(_0x2853f3){for(const {element:_0x291273,attributes:_0x2f149c}of _0x2853f3['cells'])_0x2f149c&&_0x469b92['set'](_0x291273,_0x2f149c);}else{if(_0x294b1c&&_0x294b1c['markerAttributes'])for(const [_0x7138cb,_0x3f9dc9]of Object['entries'](_0x294b1c['markerAttributes'])){const _0x14650e=_0x4722e9['model']['markers']['get'](_0x7138cb),_0x5e6351=_0x14650e?_0x14650e['getRange']()['getContainedElement']():null;_0x5e6351&&_0x469b92['set'](_0x5e6351,_0x3f9dc9);}}_0x4722e9['model']['change'](_0x3fd1d9=>{for(const [_0xbb6d04,_0x107f2b]of _0x469b92)_0x3fd1d9['setAttributes']({...Ae,..._0x107f2b},_0xbb6d04);});});const _0x469fc8=(_0x247f50,_0x36ba15)=>{_0x2e5a9e['_suggestionFactory']['registerCustomCallback'](_0x247f50,'tablePaste',_0x36ba15,(_0xcf2144,_0x2d3325,_0x29691d)=>{_0x4722e9['model']['change'](_0x2a5c11=>{const _0x1929a2=[];for(const _0x69ea1f of _0xcf2144){const _0x474abd=_0x69ea1f['start']['nodeAfter'];_0x474abd['is']('element','tableCellSuggestion')&&_0x1929a2['push'](_0x474abd);}_0x2e5a9e['_suggestionFactory']['getSuggestionCallback'](_0x247f50,null,_0x36ba15)(_0xcf2144,_0x2d3325,_0x29691d);for(const _0x58313f of _0x1929a2)'$graveyard'!=_0x58313f['root']['rootName']&&_0x2a5c11['unwrap'](_0x58313f);});});};_0x469fc8('insertion','accept'),_0x469fc8('insertion','discard'),_0x469fc8('deletion','accept'),_0x469fc8('deletion','discard'),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2de3d4=>{const _0x3fe8db=_0x2de3d4['map'](_0x57ae30=>_0x57ae30['getContainedElement']()),_0x2afd46=_0x3fe8db[0x0]['findAncestor']('table'),{minRow:_0x27f58a,maxRow:_0x531cfa}=_0xdcdc5b['_getCoordsForCells'](_0x3fe8db);_0x471973['removeRows'](_0x2afd46,{'at':_0x27f58a,'rows':_0x531cfa-_0x27f58a+0x1});}),_0x2e5a9e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4c00e6=>{const _0x329aa9=_0x4c00e6['map'](_0x4bffe4=>_0x4bffe4['getContainedElement']()),_0x4ea654=_0x329aa9[0x0]['findAncestor']('table'),{minColumn:_0x5b535e,maxColumn:_0x1ed8c6}=_0xdcdc5b['_getCoordsForCells'](_0x329aa9);_0x471973['removeColumns'](_0x4ea654,{'at':_0x5b535e,'columns':_0x1ed8c6-_0x5b535e+0x1});});const _0x113129=(_0x249455,_0x28cce3)=>{if(!_0x28cce3['subType']||!_0x28cce3['subType']['startsWith']('tablePaste'))return;const _0x581c2b=_0x28cce3['attributes']['tablePasteChainId'],_0x440883=_0x2e5a9e['getSuggestions']()['filter'](_0x1c3022=>_0x1c3022['isInContent']&&_0x1c3022['attributes']&&_0x1c3022['attributes']['tablePasteChainId']==_0x581c2b);_0x440883['length']&&_0x28cce3['getAllAdjacentSuggestions']()['length']!=_0x440883['length']&&_0x440883['reduce']((_0x85ea49,_0x4516f6)=>(_0x85ea49['next']=_0x4516f6,_0x4516f6['previous']=_0x85ea49,_0x4516f6));};function _0x17cff2(_0x4d5591,_0x400054=!0x0){const {id:_0x55aa47,authorId:_0x12deaf}=_0x2e5a9e['_splitMarkerName'](_0x4d5591['markerName']),_0x1b4661=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x365548=_0x2e5a9e['activeMarkers']['includes'](_0x4d5591['markerName']);return _0x365548&&_0x1b4661['push']('ck-suggestion-marker--active'),{'classes':_0x1b4661,'attributes':{'data-suggestion':_0x55aa47,'data-author-id':_0x12deaf},'priority':_0x365548&&_0x400054?0xbc2:0xbb8};}_0x2e5a9e['on']('suggestionLoaded',_0x113129,{'priority':'high'}),_0x2e5a9e['on']('suggestionUnloaded',_0x113129,{'priority':'high'}),_0x4722e9['model']['document']['registerPostFixer'](()=>{let _0x233d3a=!0x1;const _0x32f73c=Array['from'](_0x4722e9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x308e80,data:_0x1af0ac}of _0x32f73c){const {group:_0x5ecf95,type:_0x385aa5,id:_0x2b1311}=_0x2e5a9e['_splitMarkerName'](_0x308e80);if('suggestion'!=_0x5ecf95||'deletion'!=_0x385aa5||_0x1af0ac['oldRange'])continue;if(!_0x2e5a9e['hasSuggestion'](_0x2b1311))continue;const _0x55fef3=_0x2e5a9e['getSuggestion'](_0x2b1311)['getRanges'](),_0x511ac1=_0x4722e9['plugins']['get']('Users')['me'];for(const _0x41999f of _0x2e5a9e['getSuggestions']()){if(!_0x41999f['isInContent']||_0x41999f['author']!=_0x511ac1)continue;if('formatBlock'!=_0x41999f['type']||'tablePasteCell'!=_0x41999f['subType'])continue;if(_0x41999f['getRanges']()['every'](_0x2f3fbb=>_0x55fef3['some'](_0x979b43=>_0x979b43['containsRange'](_0x2f3fbb,!0x0)))){for(const _0x2d0ded of _0x41999f['getAllAdjacentSuggestions']())_0x2d0ded['isInContent']&&(_0x2d0ded['discard'](),_0x233d3a=!0x0);}}}return _0x233d3a;}),_0x4722e9['model']['document']['registerPostFixer'](_0x906a64=>{const _0x123139=_0x4722e9['commands']['get']('redo');if(!_0x123139||!_0x123139['_createdBatches']['has'](_0x906a64['batch']))return!0x1;let _0x10b46a=!0x1;const _0x334d30=_0x4722e9['plugins']['get']('Users')['me'],_0x256b9c=_0x4722e9['model']['document']['differ']['getChanges'](),_0x2ec9dc=Array['from'](_0x4722e9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x54b066,data:_0x3a81c5})=>{const {group:_0x226f8b,subType:_0x583f62,authorId:_0x459dca}=_0x2e5a9e['_splitMarkerName'](_0x54b066);return'suggestion'==_0x226f8b&&'tablePaste'==_0x583f62&&_0x459dca==_0x334d30['id']&&!_0x3a81c5['oldRange'];});for(const _0x5d9475 of _0x256b9c){if('insert'!=_0x5d9475['type']||'tableCellSuggestion'!=_0x5d9475['name']||0x1!=_0x5d9475['length'])continue;const _0x505c2c=_0x906a64['createRange'](_0x5d9475['position'],_0x5d9475['position']['getShiftedBy'](0x1));if(!_0x2ec9dc['find'](({data:_0x4a03b7})=>_0x4a03b7['newRange']['isEqual'](_0x505c2c))){for(const {name:_0x5a9f77,data:_0x33c750}of _0x2ec9dc)if(_0x505c2c['containsRange'](_0x33c750['newRange'])){_0x906a64['updateMarker'](_0x5a9f77,{'range':_0x505c2c}),_0x10b46a=!0x0;break;}}}return _0x10b46a;}),_0x4722e9['model']['document']['registerPostFixer'](_0x5d126e=>{let _0x3c83a9=!0x1;const _0x57f79b=_0x4722e9['plugins']['get']('Users')['me'],_0x1af55f=_0x2e5a9e['getSuggestions']()['filter'](_0x1486ac=>_0x1486ac['isInContent']&&_0x1486ac['author']==_0x57f79b),_0x36234a=new Set(),_0x5a7aa8=new Set();for(const _0x2cb0c8 of _0x1af55f)if('tablePaste'==_0x2cb0c8['subType'])for(const _0x406bdc of _0x2cb0c8['getMarkers']()){const _0x1c754c=_0x406bdc['getRange']()['getContainedElement']();if(_0x1c754c){if(_0x1c754c['is']('element','tableCellSuggestion')&&Be(_0x1c754c)){_0x2cb0c8['removeMarker'](_0x406bdc['name']),_0x36234a['add'](_0x1c754c),_0x3c83a9=!0x0;const _0x1832f3=_0x1c754c['nextSibling'],_0x52e1e4=_0x1c754c['previousSibling'],_0x40af6f=_0x1832f3&&_0x1832f3['is']('element','tableCellSuggestion'),_0x1a2068=_0x52e1e4&&_0x52e1e4['is']('element','tableCellSuggestion');_0x40af6f&&!_0x36234a['has'](_0x1832f3)&&_0x5a7aa8['add'](_0x1832f3),_0x1a2068&&!_0x36234a['has'](_0x52e1e4)&&_0x5a7aa8['add'](_0x52e1e4);}else _0x1c754c['is']('element','paragraph')&&_0x1c754c['isEmpty']&&(_0x2cb0c8['removeMarker'](_0x406bdc['name']),_0x3c83a9=!0x0);}}else{if('tablePasteCell'==_0x2cb0c8['subType']){if(!_0x2cb0c8['attributes']||!_0x2cb0c8['attributes']['tablePasteChainId'])continue;const _0x387289=_0x2cb0c8['attributes']['markerAttributes'];if(_0x387289&&Object['keys'](_0x387289)['length'])continue;const _0x1a9dc9=_0x2cb0c8['attributes']['tablePasteChainId'];let _0x391142=!0x0,_0x52bfa0=!0x0;for(const _0x24df9b of _0x1af55f)if(_0x24df9b['subType']&&_0x24df9b['subType']['startsWith']('tablePaste')){if(!_0x24df9b['attributes']['tablePasteChainId']){_0x52bfa0=!0x1;break;}if(_0x24df9b['id']!=_0x2cb0c8['id']&&_0x24df9b['attributes']['tablePasteChainId']==_0x1a9dc9){_0x391142=!0x1;break;}}_0x52bfa0&&_0x391142&&(_0x2cb0c8['removeMarkers'](),_0x3c83a9=!0x0);}}for(const _0x549c0a of _0x36234a)_0x5d126e['remove'](_0x549c0a);for(const _0x26423b of _0x5a7aa8)_0x5d126e['unwrap'](_0x26423b);return _0x3c83a9;}),_0x4722e9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c7d7c=>_0x17cff2(_0x5c7d7c),'converterPriority':'high'}),_0x4722e9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29d3d2,_0x2fb6f3)=>_0x2fb6f3['options']['showSuggestionHighlights']?_0x17cff2(_0x29d3d2,!0x1):null,'converterPriority':'high'});const _0x3f55ab=_0x4722e9['editing']['view'];this['listenTo'](_0x3f55ab['document'],'clipboardOutput',(_0x5eb63f,_0x3d69b2)=>{const _0x396846=[];for(const _0x3cb1d5 of _0x3f55ab['createRangeIn'](_0x3d69b2['content'])['getItems']())_0x3cb1d5['is']('element','suggestion-td')&&_0x396846['push'](_0x3cb1d5);_0x3f55ab['change'](_0x53ac95=>{for(const _0x316e4b of _0x396846)_0x53ac95['move'](_0x53ac95['createRangeIn'](_0x316e4b),_0x53ac95['createPositionBefore'](_0x316e4b)),_0x53ac95['remove'](_0x316e4b);});});}}function Be(_0x429e79){if(_0x429e79['isEmpty'])return!0x0;const _0x5425a4=_0x429e79['getChild'](0x0);return _0x5425a4['is']('element','paragraph')&&_0x5425a4['isEmpty'];}function Oe(_0x12a421,_0x37969f={},_0x2a2f0b){for(const {isAnchor:_0x2f3733,cellHeight:_0x644e1,cellWidth:_0x3900fb}of _0x2a2f0b['createTableWalker'](_0x12a421,{'includeAllSlots':!0x0,..._0x37969f}))if(!_0x2f3733||0x1!=_0x644e1||0x1!=_0x3900fb)return!0x1;return!0x0;}class Ot extends _0x147a49{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4d1829=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d1829['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4d1829['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4d1829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d1829['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4d1829['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4d1829['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x36ffd6,_0x2a558a){const _0x436eab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b15fe=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xde0700=_0x2a558a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x13bdad=_0x3b15fe['getColumnGroupElement'](_0xde0700);let _0x815940=_0x13bdad?_0x3b15fe['getTableColumnsWidths'](_0x13bdad):null,_0x16e826=_0xde0700['getAttribute']('tableWidth')||null;const _0x56f697=_0x2a558a['tableWidth']||_0x16e826,_0x5c3ad9=_0x2a558a['columnWidths']||_0x815940,_0x1768fd=this['editor']['plugins']['get']('Users')['me'];for(const _0x3110bf of _0x436eab['getSuggestions']()){const _0x4b8a78=_0x3110bf['getContainedElement']();if('resizeTable'===_0x3110bf['subType']&&_0x4b8a78===_0xde0700){_0x3110bf['author']!==_0x1768fd&&_0x3110bf['discard']();const _0x5c758d=_0x3110bf['data']['commandParams'];_0x16e826=_0x5c758d[0x0]['tableWidth'],_0x815940=_0x5c758d[0x0]['columnWidths'];break;}}_0x36ffd6({'table':_0xde0700,'tableWidth':_0x56f697,'columnWidths':_0x5c3ad9}),_0x436eab['markBlockFormat'](_0xde0700,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16e826,'columnWidths':_0x815940}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4fe93e){if('formatBlock'!=_0x4fe93e['type']&&'formatInline'!=_0x4fe93e['type'])return;const {data:_0x583dbd}=_0x4fe93e;if(_0x583dbd&&'resizeTable'===_0x583dbd['formatGroupId']){const _0x3a4af4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3a4af4)};}}}class xt extends _0x147a49{['afterInit'](){const _0xc805b5=this['editor'];_0xc805b5['plugins']['has']('Template')&&_0xc805b5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x147a49{['afterInit'](){const _0x1c7e3b=this['editor'];if(!_0x1c7e3b['commands']['get']('insertTableOfContents'))return;_0x1c7e3b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x62d643=_0x1c7e3b['plugins']['get']('TrackChangesEditing'),_0x566378=_0x1c7e3b['locale'];_0x62d643['descriptionFactory']['registerElementLabel']('tableOfContents',_0x277438=>o(_0x566378,'ELEMENT_TABLE_OF_CONTENTS',_0x277438));}}class Rt extends _0x147a49{['afterInit'](){const _0x1759e0=this['editor'];if(!_0x1759e0['plugins']['has']('Title'))return;const _0x5f56d5=_0x1759e0['plugins']['get']('TrackChangesEditing');_0x5f56d5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1759e0['locale'],'ELEMENT_TITLE')),_0x1759e0['model']['document']['registerPostFixer'](_0x372d8e=>{let _0x2a777a=!0x1;const _0x301abc=Array['from'](_0x1759e0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d68a7,data:_0x101d94}of _0x301abc){const {group:_0x66f7ac}=_0x5f56d5['_splitMarkerName'](_0x4d68a7);if('suggestion'!==_0x66f7ac||!_0x101d94['newRange'])continue;const _0x503805=_0x101d94['newRange'],_0x4a8788=_0x503805['end']['nodeBefore'];if(!_0x4a8788||!_0x4a8788['is']('element','title-content'))continue;if(!_0x503805['start']['isTouching'](_0x503805['end']))continue;const _0x188c6e=_0x1759e0['model']['schema']['getNearestSelectionRange'](_0x503805['end'],'forward');if(_0x188c6e&&_0x188c6e['isCollapsed']){const _0x17eba5=_0x372d8e['createRange'](_0x503805['start'],_0x188c6e['start']);_0x17eba5['isEqual'](_0x503805)||(_0x372d8e['updateMarker'](_0x4d68a7,{'range':_0x17eba5}),_0x2a777a=!0x0);}_0x2a777a||(_0x372d8e['removeMarker'](_0x4d68a7),_0x2a777a=!0x0);}return _0x2a777a;});}}class Tt extends _0x147a49{['afterInit'](){const _0x2f5f86=this['editor'],_0xa0ed4d=_0x2f5f86['plugins']['get']('TrackChangesEditing');_0x2f5f86['plugins']['has']('Uploadcare')&&(_0xa0ed4d['enableCommand']('uploadcare'),_0x2f5f86['plugins']['has']('UploadcareImageEdit')&&(_0xa0ed4d['enableCommand']('uploadcareImageEdit'),_0xa0ed4d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xa0ed4d['descriptionFactory']['registerDescriptionCallback'](_0x59d825=>{if('attribute'!=_0x59d825['type'])return;const {data:_0x1dd613}=_0x59d825;return _0x1dd613&&'uploadcareImageId'==_0x1dd613['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x147a49{['afterInit'](){const _0x57eadf=this['editor'],_0x423b12=_0x57eadf['plugins']['get']('TrackChangesEditing');_0x57eadf['plugins']['has']('UndoEditing')&&(_0x423b12['enableCommand']('undo'),_0x423b12['enableCommand']('redo'));}}class Ut extends _0x147a49{static get['requires'](){return[Nt];}['afterInit'](){const _0x13e56b=this['editor'];if(!_0x13e56b['plugins']['has']('TableCaptionEditing'))return;_0x13e56b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x147a49{['tableProperties'];['tableCellProperties'];constructor(_0xfa297c){super(_0xfa297c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4a2326=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1bd835 of this['tableProperties'])_0x4a2326['enableCommand'](_0x1bd835,(_0x2ee182,_0x45a7d8)=>{const _0x27555c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1bd835,[_0x27555c],this['tableProperties'],'tableProperties',_0x2ee182,_0x45a7d8);});_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4a2326['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x27f5c8,_0x4c51b7)=>this['handleDiscardAction'](this['tableProperties'],_0x27f5c8,_0x4c51b7)),_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1497f1 of this['tableCellProperties'])_0x4a2326['enableCommand'](_0x1497f1,(_0x582ebd,_0x22fedd)=>{const _0x259dde=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1497f1,_0x259dde,this['tableCellProperties'],'tableCellProperties',_0x582ebd,_0x22fedd);});_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4a2326['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49e032,_0x56c4fc)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49e032,_0x56c4fc)),_0x4a2326['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4a2326['descriptionFactory']['registerDescriptionCallback'](_0x501e09=>this['handleSuggestionDescription'](_0x501e09)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xfd0a76,_0x2ea97f,_0x9252fd,_0x3dfc98,_0x1033e8,_0xeb45ec){const _0x2c62bd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xeb45ec['batch'],()=>{for(const _0x3e330f of _0x2ea97f){if(this['_getSuggestion'](_0x3e330f,_0x3dfc98))_0x1033e8(_0xeb45ec);else{const _0x51e5ab={};for(const _0xd1876f of _0x9252fd){const _0xa83bb2=_0x3e330f['getAttribute'](_0xd1876f);void 0x0!==_0xa83bb2&&(_0x51e5ab[_0xd1876f]=_0xa83bb2);}_0x1033e8(_0xeb45ec),_0x2c62bd['markBlockFormat'](_0x3e330f,{'commandParams':[_0x51e5ab]},[],_0x3dfc98);}}});}['handleDiscardAction'](_0x31ea64,_0x1ba455,_0x339d5e){const _0x81d6e2=_0x1ba455[0x0]['start']['nodeAfter'],_0x4f1b75=_0x339d5e['commandParams'][0x0];this['editor']['model']['change'](_0x23d6ee=>{for(const _0x1dc0a0 of _0x31ea64)void 0x0!==_0x4f1b75[_0x1dc0a0]?_0x23d6ee['setAttribute'](_0x1dc0a0,_0x4f1b75[_0x1dc0a0],_0x81d6e2):_0x23d6ee['removeAttribute'](_0x1dc0a0,_0x81d6e2);});}['handleSuggestionDescription'](_0x2a8046){if(_0x2a8046['data'])switch(_0x2a8046['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'](_0x1a73ce,_0x2dff82){const _0x274ec2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4cbe24 of _0x274ec2['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d3e1a=_0x4cbe24['getContainedElement']();if(_0x4cbe24['subType']===_0x2dff82&&_0x5d3e1a===_0x1a73ce)return _0x4cbe24;}return null;}['_registerTablePropertiesAttributes'](){const _0x1eba2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28b5ed=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x37934f of _0x28b5ed){const _0xaa0267=_0x37934f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1eba2b['descriptionFactory']['registerAttributeLabel'](_0x37934f,o(this['editor']['locale'],'FORMAT_'+_0xaa0267));}}}class Ft extends _0x147a49{['afterInit'](){const _0x4a4e6d=this['editor'];if(!_0x4a4e6d['plugins']['has']('LineHeight'))return;const _0x3db5b9=_0x4a4e6d['plugins']['get']('TrackChangesEditing'),_0x532df5=_0x4a4e6d['locale'];_0x3db5b9['enableDefaultAttributesIntegration']('lineHeight'),_0x3db5b9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x532df5,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x147a49{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x3370ef,_0x537b05,_0xb40c62,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x560354){super(_0x560354),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5816ee,_0x6d3fe1,_0x3b3098,_0x324648)=>{this['_model']['change'](()=>{for(const _0x353a0c of[..._0x324648,..._0x3b3098])this['_model']['markers']['has'](_0x353a0c)&&_0x560354['editing']['reconvertMarker'](_0x353a0c);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x560354['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x560354['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x560354['config']['get']('trackChanges.trackFormatChanges'),_0x560354['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x560354['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x560354,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x24d17d=this['editor'];_0x24d17d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5a1018,{writer:_0x3bce1f})=>{let _0x4bd229='suggestion:'+_0x5a1018['getAttribute']('suggestion-type')+':'+_0x5a1018['getAttribute']('id');return _0x5a1018['getAttribute']('marker-count')&&(_0x4bd229+=':'+_0x5a1018['getAttribute']('marker-count')),_0x3bce1f['createElement']('$marker',{'data-name':_0x4bd229});}}),_0x24d17d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x24d17d['model']['document']['registerPostFixer'](_0x5c2d74=>{let _0x55be28=!0x1;const _0x18c81c=Array['from'](_0x24d17d['model']['document']['differ']['getChangedMarkers']()),_0x3d6651=new Set();for(const {name:_0x3c2d22,data:_0x449584}of _0x18c81c){const {group:_0x4f80a6,type:_0x5eea82,subType:_0x3e6ca6,id:_0x4438fa}=this['_splitMarkerName'](_0x3c2d22);if('suggestion'!==_0x4f80a6)continue;const _0x5b0365=_0x3e6ca6?'suggestion:'+_0x5eea82+':'+_0x3e6ca6+':'+_0x4438fa:'suggestion:'+_0x5eea82+':'+_0x4438fa,_0x491a96=_0x24d17d['model']['markers']['getMarkersGroup'](_0x5b0365),_0x392ced=_0x24d17d['model']['markers']['get'](_0x3c2d22),_0x582abe=this['_suggestions']['get'](_0x4438fa);if(null!=_0x449584['newRange']){'formatInline'==_0x5eea82&&(_0x55be28=_0x55be28||Wt(_0x449584['newRange'],_0x3c2d22,_0x5c2d74,_0x24d17d['model']['schema']));const _0x54a075='attribute'==_0x5eea82&&this['_isBlockAttribute'](_0x3e6ca6['split']('|')[0x0]),_0x4f6d87='attribute'==_0x5eea82&&this['_isInlineAttribute'](_0x3e6ca6['split']('|')[0x0]);if(_0x449584['newRange']['isCollapsed']||'$graveyard'==_0x449584['newRange']['root']['rootName']||'formatBlock'==_0x5eea82&&!Qt(_0x449584['newRange'])||_0x54a075&&!Qt(_0x449584['newRange'])||_0x4f6d87&&Xt(_0x449584['newRange'])||'deletion'==_0x5eea82&&Xt(_0x449584['newRange'])||_0x392ced&&Yt(_0x392ced,_0x491a96))_0x5c2d74['removeMarker'](_0x3c2d22),_0x55be28=!0x0;else{if(!_0x582abe||!_0x582abe['isInContent'])continue;if(_0x449584['newRange']&&_0x449584['oldRange']&&_0x449584['newRange']['isEqual'](_0x449584['oldRange']))continue;_0x3d6651['add'](_0x582abe);}}}return _0x3d6651['size']>0x0&&(_0x55be28=!!this['_joinWithAdjacentSuggestions'](_0x3d6651)||_0x55be28),_0x55be28;}),_0x24d17d['model']['document']['registerPostFixer'](_0x7660d=>{let _0xdfc514=!0x1;for(const _0x4e3d6d of _0x24d17d['model']['document']['differ']['getChanges']())if('insert'==_0x4e3d6d['type'])for(const _0x5b36b1 of this['_suggestions']['values']()){if(_0x5b36b1['isMultiRange']||!_0x5b36b1['isInContent'])continue;const _0xc774d1='formatBlock'==_0x5b36b1['type'],_0x25dcf6=this['_getAttributeKey'](_0x5b36b1),_0x3aebb2=_0x25dcf6&&this['_isBlockAttribute'](_0x25dcf6);if(!_0xc774d1&&!_0x3aebb2)continue;const _0x5e9f75=_0x5b36b1['getFirstRange']();if(_0x5e9f75['start']['parent']!=_0x5e9f75['end']['parent']&&!_0x5e9f75['end']['isAtEnd']){const _0x2cf2f0=_0x24d17d['model']['createPositionAt'](_0x5e9f75['start']['nodeAfter'],'end'),_0x15d43c=_0x24d17d['model']['createRange'](_0x5e9f75['start'],_0x2cf2f0);_0x7660d['updateMarker'](_0x5b36b1['getFirstMarker'](),{'range':_0x15d43c}),_0xdfc514=!0x0;}}return _0xdfc514;}),_0x24d17d['model']['document']['registerPostFixer'](_0x221be3=>this['_processAttributeChanges'](_0x221be3)),_0x24d17d['model']['document']['registerPostFixer'](_0x3f3f72=>!_0x3f3f72['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3f3f72)),_0x24d17d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x24d17d['model']['document']['on']('change:data',(_0x306189,_0x506dbf)=>{if(!_0x506dbf['isLocal']||_0x506dbf['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x225679=_0x24d17d['model']['document']['differ']['getChanges']();if(0x0==_0x225679['length'])return;const _0x3645e6=[],_0x275a57=_0x225679['filter'](_0x4d5757=>'attribute'==_0x4d5757['type']),_0x5d9a01=_0x225679['filter'](_0x282c5b=>'insert'==_0x282c5b['type']&&'$text'!=_0x282c5b['name']);for(const _0x47e2e4 of _0x275a57)this['_isRegisteredAttribute'](_0x47e2e4['attributeKey'])&&_0x3645e6['push']({'key':_0x47e2e4['attributeKey'],'newValue':_0x47e2e4['attributeNewValue'],'oldValue':_0x47e2e4['attributeOldValue'],'range':Zt(_0x47e2e4['range'],_0x24d17d['model'])});for(const _0x389a40 of _0x5d9a01){if('rename'!=_0x389a40['action']&&'refresh'!=_0x389a40['action'])continue;const _0x3b8144=tn(_0x389a40['position']['nodeAfter'],_0x24d17d['model']),_0x43e24d=_0x389a40['before'];'rename'==_0x389a40['action']&&_0x3645e6['push']({'key':m,'newValue':_0x389a40['name'],'oldValue':_0x43e24d['name'],'range':_0x3b8144});for(const [_0xaa670e,_0x411c49]of _0x43e24d['attributes']){if(!this['_isRegisteredAttribute'](_0xaa670e))continue;const _0x21e889=_0x389a40['attributes']['get'](_0xaa670e);_0x411c49!==_0x21e889&&_0x3645e6['push']({'key':_0xaa670e,'newValue':_0x21e889,'oldValue':_0x411c49,'range':_0x3b8144});}for(const [_0x3357ee,_0x4ef8a5]of _0x389a40['attributes'])this['_isRegisteredAttribute'](_0x3357ee)&&(_0x43e24d['attributes']['has'](_0x3357ee)||_0x3645e6['push']({'key':_0x3357ee,'newValue':_0x4ef8a5,'oldValue':null,'range':_0x3b8144}));}0x0!=_0x3645e6['length']&&_0x24d17d['model']['enqueueChange'](_0x506dbf,_0x13d105=>{const _0x5698da=_0x2844ab();for(const {range:_0x5cc3e0,key:_0x43a256,oldValue:_0x2aa04f,newValue:_0x3d4159}of _0x3645e6)this['markAttributeChange'](_0x5cc3e0,_0x43a256,_0x2aa04f,_0x3d4159,{'groupId':_0x5698da});this['_reduceExistingSuggestions'](_0x13d105,_0x3645e6);});},{'priority':'lowest'}),_0x24d17d['model']['markers']['on']('update:suggestion',(_0xa398bd,_0x356442,_0x1773fd)=>{if(null==_0x1773fd){const {id:_0xa1252}=this['_splitMarkerName'](_0x356442['name']),_0x36ac93=this['_suggestions']['get'](_0xa1252);_0x36ac93&&_0x36ac93['addMarkerName'](_0x356442['name']);}}),_0x24d17d['model']['document']['on']('change:data',()=>{const _0x4f21a8=Array['from'](_0x24d17d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x330ce0=>'suggestion'===this['_splitMarkerName'](_0x330ce0['name'])['group']);if(0x0===_0x4f21a8['length'])return;_0x4f21a8['sort']((_0x5ad71c,_0x1b6108)=>{const _0x4cc08e=_0x5ad71c['data']['oldRange'],_0x47ddbb=_0x1b6108['data']['oldRange'];return null===_0x4cc08e&&null===_0x47ddbb?0x0:null===_0x4cc08e&&null!==_0x47ddbb?-0x1:null!==_0x4cc08e&&null===_0x47ddbb?0x1:_0x4cc08e['start']['isBefore'](_0x47ddbb['start'])?-0x1:0x1;});const _0x16f5d9=new Set(),_0x12006d=new Set();for(const {name:_0x105a0f,data:_0x56ad5a}of _0x4f21a8){const {id:_0xa6cc7}=this['_splitMarkerName'](_0x105a0f);if(null===_0x56ad5a['oldRange']){const _0x3236bc=this['_handleNewSuggestionMarker'](_0x105a0f);_0x12006d['add'](_0x3236bc);}else{const _0x5b812f=this['_suggestions']['get'](_0xa6cc7);null!==_0x56ad5a['newRange']||_0x5b812f['isInContent']?(_0x16f5d9['add'](_0x5b812f['head']),_0x12006d['add'](_0x5b812f)):this['_removeSuggestion'](_0x5b812f);}}_0x12006d['size']>0x0&&this['_refreshSuggestionsChain'](_0x12006d);for(const _0x56c24b of _0x16f5d9)this['fire']('suggestionChanged',_0x56c24b);}),_0x24d17d['model']['on']('applyOperation',(_0x5922d5,_0x2682f4)=>{const _0x2a396e=_0x2682f4[0x0];if(!this['_suggestions']['size'])return;if(!_0x2a396e['isDocumentOperation'])return;if(_0x2a396e['batch']['isUndo']||!_0x2a396e['batch']['isLocal'])return;let _0x5d5095,_0x594a89;switch(_0x2a396e['type']){case'insert':_0x5d5095=_0x24d17d['model']['createPositionAt'](_0x2a396e['position']),_0x594a89=_0x5d5095['getShiftedBy'](_0x2a396e['howMany']);break;case'split':_0x5d5095=_0x24d17d['model']['createPositionAt'](_0x2a396e['splitPosition']),_0x594a89=_0x24d17d['model']['createPositionAt'](_0x2a396e['moveTargetPosition']);break;case'move':_0x5d5095=_0x24d17d['model']['createPositionAt'](_0x2a396e['targetPosition']),_0x594a89=_0x5d5095['getShiftedBy'](_0x2a396e['howMany']);break;default:return;}const _0x4c3062=_0x24d17d['model']['createRange'](_0x5d5095,_0x594a89);_0x24d17d['model']['change'](()=>{for(const {suggestion:_0xee363c,meta:_0x79ef13}of this['_findSuggestions'](_0x4c3062)){if(_0xee363c['isMultiRange'])continue;if('formatInline'==_0xee363c['type'])continue;const _0x3f98e9=this['_getAttributeKey'](_0xee363c);if(_0x3f98e9&&this['_isBlockAttribute'](_0x3f98e9)&&'split'!=_0x2a396e['type'])continue;const _0x59911c=_0xee363c['data']&&_0xee363c['data']['multipleBlocks'];('formatBlock'!=_0xee363c['type']||'split'==_0x2a396e['type']&&!_0x59911c)&&(_0x79ef13['containsRangeInObject']||'insertion'==_0xee363c['type']&&_0x79ef13['isOwn']||_0xee363c['getFirstRange']()['containsRange'](_0x4c3062)&&this['_breakSuggestionMarker'](_0xee363c,_0x5d5095,_0x594a89));}});},{'priority':'lowest'}),_0x24d17d['model']['on']('deleteContent',(_0x1f192e,_0x1de9b8)=>{const _0x5f1c33=_0x1de9b8[0x0],_0x19d2c9=_0x1de9b8[0x1];if(_0x19d2c9&&_0x19d2c9['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5f1c33['isCollapsed'])return;const _0x2b6e8e=_0x24d17d['model']['schema'],{start:_0x21c3c5,end:_0x5cafab}=_0x5f1c33['getFirstRange'](),_0x4bee92=_0x21c3c5['nodeAfter']&&_0x2b6e8e['isLimit'](_0x21c3c5['nodeAfter'])?null:_0x2b6e8e['getNearestSelectionRange'](_0x21c3c5,'forward'),_0x2fc4a2=_0x5cafab['nodeBefore']&&_0x2b6e8e['isLimit'](_0x5cafab['nodeBefore'])?null:_0x2b6e8e['getNearestSelectionRange'](_0x5cafab,'backward'),_0x37835b=_0x24d17d['model']['createRange'](_0x4bee92?_0x4bee92['start']:_0x21c3c5,_0x2fc4a2?_0x2fc4a2['end']:_0x5cafab);_0x24d17d['model']['change'](_0x164861=>{this['markDeletion'](_0x37835b);const _0x43f945=_0x24d17d['model']['schema']['getNearestSelectionRange'](_0x37835b['start']);_0x5f1c33['is']('documentSelection')?_0x164861['setSelection'](_0x43f945):_0x5f1c33['setTo'](_0x43f945);}),_0x1f192e['stop']();},{'priority':_0x5b2bcf['normal']+0xa}),_0x24d17d['model']['on']('insertContent',(_0x1ffdee,_0x3d4d52)=>{const _0x24b007=_0x3d4d52[_0x3d4d52['length']-0x1];_0x24b007&&_0x24b007['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x24d17d['model']['change'](()=>{let _0x51964d=_0x24d17d['model']['insertContent'](_0x3d4d52[0x0],_0x3d4d52[0x1],_0x3d4d52[0x2],{'forceDefaultExecution':!0x0});if(!_0x51964d)return;_0x1ffdee['return']=_0x51964d['clone']();const _0x46b648=_0x51964d['end']['nodeBefore'],_0x31c75f=_0x24d17d['model']['schema'];_0x46b648&&_0x31c75f['isBlock'](_0x46b648)&&!_0x31c75f['isObject'](_0x46b648)&&(_0x51964d=_0x24d17d['model']['createRange'](_0x51964d['start'],_0x24d17d['model']['createPositionAt'](_0x46b648,'end'))),this['markInsertion'](_0x51964d);}),_0x1ffdee['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x37e126=new v(_0x24d17d,this['_suggestions']);_0x24d17d['commands']['add']('acceptSuggestion',_0x37e126),this['enableCommand']('acceptSuggestion');const _0x1441ac=new D(_0x24d17d,this['_suggestions']);_0x24d17d['commands']['add']('discardSuggestion',_0x1441ac),this['enableCommand']('discardSuggestion'),_0x24d17d['commands']['add']('acceptAllSuggestions',new B(_0x24d17d,_0x37e126,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x24d17d['commands']['add']('discardAllSuggestions',new B(_0x24d17d,_0x1441ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x24d17d['commands']['add']('acceptSelectedSuggestions',new O(_0x24d17d,_0x37e126,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x24d17d['commands']['add']('discardSelectedSuggestions',new O(_0x24d17d,_0x1441ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20d052=_0x24d17d['plugins']['get']('CommentsRepository');this['listenTo'](_0x20d052,'addComment',(_0x5b12a9,{threadId:_0x1c7758})=>{const _0x55d72e=this['_suggestions']['get'](_0x1c7758);_0x55d72e&&_0x55d72e['commentThread']&&0x1===_0x55d72e['commentThread']['length']&&this['_updateSuggestionData'](_0x1c7758,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20d052,'removeComment',(_0x25d8cb,{threadId:_0x2cfdb9})=>{const _0xa49823=this['_suggestions']['get'](_0x2cfdb9);_0xa49823&&_0xa49823['commentThread']&&!_0xa49823['commentThread']['length']&&this['_updateSuggestionData'](_0x2cfdb9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x330753){const _0x3a4174=_0x3bc697([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]),_0x1f13dd=0x3d8d0df,_0x25d7eb=0x3dfa707^_0x1f13dd,_0x5b99d9=window[_0x3bc697([0x44,0x61,0x74,0x65])][_0x3bc697([0x6e,0x6f,0x77])](),_0xbe7155=_0x330753[_0x3bc697([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47e4d0=new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x508fee=>{_0xbe7155[_0x3bc697([0x6f,0x6e,0x63,0x65])](_0x3bc697([0x72,0x65,0x61,0x64,0x79]),_0x508fee);}),_0x527b16={[_0x3bc697([0x6b,0x74,0x79])]:_0x3bc697([0x45,0x43]),[_0x3bc697([0x75,0x73,0x65])]:_0x3bc697([0x73,0x69,0x67]),[_0x3bc697([0x63,0x72,0x76])]:_0x3bc697([0x50,0x2d,0x32,0x35,0x36]),[_0x3bc697([0x78])]:_0x3bc697([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]),[_0x3bc697([0x79])]:_0x3bc697([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]),[_0x3bc697([0x61,0x6c,0x67])]:_0x3bc697([0x45,0x53,0x32,0x35,0x36])},_0x5debc9=_0xbe7155[_0x3bc697([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bc697([0x67,0x65,0x74])](_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1dce48(){let _0x3934a4,_0x4111bf=null,_0x178628=null;try{if(_0x5debc9==_0x3bc697([0x47,0x50,0x4c]))return _0x3bc697([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3934a4=_0x110e1e(),!_0x3934a4)return _0x3bc697([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3934a4[_0x3bc697([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x178628=_0x58806a(_0x3934a4[_0x3bc697([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3934a4[_0x3bc697([0x6a,0x74,0x69])])),await _0x2dbdcc()?_0x4881fd()?_0x3acc1b()?_0x3bc697([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3222a6()?(_0x3934a4[_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bc697([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4111bf=_0x3d67c1(_0x3bc697([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3934a4[_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bc697([0x74,0x72,0x69,0x61,0x6c])&&(_0x4111bf=_0x3d67c1(_0x3bc697([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b782d()):_0x3bc697([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bc697([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bc697([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bc697([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3acc1b(){const _0x11ca32=[_0x3bc697([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bc697([0x74,0x72,0x69,0x61,0x6c])][_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3934a4[_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b99d9/0x3e8:0xe10*_0x25d7eb;return _0x3934a4[_0x3bc697([0x65,0x78,0x70])]<_0x11ca32;}function _0x4881fd(){const _0x43b1f0=_0x3934a4[_0x3bc697([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x43b1f0)return!0x1;if(_0x43b1f0[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc697([0x2a])))return!0x0;if(_0x43b1f0[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc697([0x54,0x43])))return!0x0;if(_0x43b1f0[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc697([0x52,0x54,0x43]))){if(_0x485845())return!0x0;if(_0x526662()||_0x294ae8())return!0x0;}return!0x1;}function _0x3222a6(){const _0x397290=_0x3934a4[_0x3bc697([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x397290||0x0==_0x397290[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x300f85}=new URL(window[_0x3bc697([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x397290[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x300f85))return!0x0;const _0x3419fd=_0x300f85[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])](_0x3bc697([0x2e]));return _0x397290[_0x3bc697([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d02f1=>_0x1d02f1[_0x3bc697([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bc697([0x2a])))[_0x3bc697([0x6d,0x61,0x70])](_0x25e960=>_0x25e960[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])](_0x3bc697([0x2e])))[_0x3bc697([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xee0d76=>_0xee0d76[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3419fd[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bc697([0x6d,0x61,0x70])](_0x1b333b=>Array(_0x3419fd[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1b333b[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bc697([0x66,0x69,0x6c,0x6c])](_0x1b333b[0x0]===_0x3bc697([0x2a])?_0x3bc697([0x2a]):'')[_0x3bc697([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1b333b))[_0x3bc697([0x73,0x6f,0x6d,0x65])](_0x2835f8=>_0x3419fd[_0x3bc697([0x65,0x76,0x65,0x72,0x79])]((_0x10399d,_0x4c37fd)=>_0x2835f8[_0x4c37fd]===_0x10399d||_0x2835f8[_0x4c37fd]===_0x3bc697([0x2a])));}function _0x4b782d(){return _0x4111bf&&_0x178628?new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ef490,_0x59ebeb)=>{_0x4111bf[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x1ef490,_0x59ebeb),_0x178628[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x14abaa=>{_0x14abaa!=_0x3bc697([0x56,0x61,0x6c,0x69,0x64])&&_0x1ef490(_0x14abaa);},_0x59ebeb);}):_0x4111bf||_0x178628||_0x3bc697([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58806a(_0x4dc67d,_0x4eed79){return new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cf903=>{if(_0x1eabbf())return _0x4cf903(_0x3bc697([0x56,0x61,0x6c,0x69,0x64]));_0x4f6a66(),_0xbe7155[_0x3bc697([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bc697([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fb642=!0x1;const _0x327d1b=_0x2844ab();function _0x149684(_0x1c328a){return!!_0x1c328a&&(typeof _0x1c328a===_0x3bc697([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1c328a===_0x3bc697([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1c328a[_0x3bc697([0x74,0x68,0x65,0x6e])]===_0x3bc697([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1c328a[_0x3bc697([0x63,0x61,0x74,0x63,0x68])]===_0x3bc697([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48594b(_0x367aef){_0x56132a(_0x367aef)[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x1cb8e9=>{if(!_0x1cb8e9||_0x1cb8e9[_0x3bc697([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bc697([0x6f,0x6b]))return _0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x465c11(_0x4c2f45(_0x327d1b+_0x4eed79))!=_0x1cb8e9[_0x3bc697([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bc697([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x139f4b=>(_0x376503(),_0x139f4b),()=>{const _0x5c22e3=_0x597e09();return null==_0x5c22e3?(_0x376503(),_0x3bc697([0x56,0x61,0x6c,0x69,0x64])):_0x3bc697(_0x5b99d9-_0x5c22e3>(0x27d454df^_0x1f13dd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x4cf903)[_0x3bc697([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4cf903(_0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x182065=0x3ee3e5f^_0x1f13dd;function _0x376503(){const _0xeff03=_0x3bc697([0x6c,0x6c,0x63,0x74,0x2d])+_0x465c11(_0x4c2f45(_0x4dc67d)),_0x24cbb3=_0x15cd78(_0x465c11(window[_0x3bc697([0x4d,0x61,0x74,0x68])][_0x3bc697([0x63,0x65,0x69,0x6c])](_0x5b99d9/_0x182065)));window[_0x3bc697([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bc697([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeff03,_0x24cbb3);}function _0x597e09(){const _0x46c214=_0x3bc697([0x6c,0x6c,0x63,0x74,0x2d])+_0x465c11(_0x4c2f45(_0x4dc67d)),_0xce2a48=window[_0x3bc697([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bc697([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46c214);return _0xce2a48?window[_0x3bc697([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15cd78(_0xce2a48),0x10)*_0x182065:null;}function _0x56132a(_0x3aed7e){return new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x631811,_0x3fc01c)=>{_0x3aed7e[_0x3bc697([0x74,0x68,0x65,0x6e])](_0x631811,_0x3fc01c),window[_0x3bc697([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3fc01c,0x3d9041f^_0x1f13dd);});}}_0xbe7155[_0x3bc697([0x6f,0x6e])](_0x3bc697([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x23c0e5,_0x31554d)=>{if(_0x31554d[0x0]!=_0x4dc67d)return _0x4cf903(_0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31554d[0x1]={..._0x31554d[0x1],[_0x3bc697([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x327d1b};},{[_0x3bc697([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bc697([0x68,0x69,0x67,0x68])}),_0xbe7155[_0x3bc697([0x6f,0x6e])](_0x3bc697([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2163f1=>{_0x149684(_0x2163f1[_0x3bc697([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fb642=!0x0,_0x48594b(_0x2163f1[_0x3bc697([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bc697([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bc697([0x6c,0x6f,0x77])}),_0x47e4d0[_0x3bc697([0x74,0x68,0x65,0x6e])](()=>{_0x4fb642||_0x4cf903(_0x3bc697([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1eabbf(){return _0xbe7155[_0x3bc697([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bc697([0x76,0x69,0x65,0x77])][_0x3bc697([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bc697([0x61,0x75,0x74,0x6f]);}function _0x4f6a66(){_0xbe7155[_0x3bc697([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bc697([0x76,0x69,0x65,0x77])][_0x3bc697([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bc697([0x61,0x75,0x74,0x6f]);}}function _0x3d67c1(_0x4bbdf6){const _0x4d1275=[new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x342966=>setTimeout(_0x342966,0x3d1ee13^_0x1f13dd)),_0x47e4d0[_0x3bc697([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f9828=>{let _0x161744=0x0;_0xbe7155[_0x3bc697([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc697([0x6f,0x6e])](_0x3bc697([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c6e1e,_0x293923)=>{_0x293923[0x0][_0x3bc697([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x161744++,_0x161744==(0x3d8d127^_0x1f13dd)&&(_0x3f9828(),_0x3c6e1e[_0x3bc697([0x6f,0x66,0x66])]());});}))];return window[_0x3bc697([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bc697([0x72,0x61,0x63,0x65])](_0x4d1275)[_0x3bc697([0x74,0x68,0x65,0x6e])](()=>_0x4bbdf6);}async function _0x3b4292(){await _0x47e4d0,_0xbe7155[_0x3bc697([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc697([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59abaf,_0xbe7155[_0x3bc697([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bc697([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59abaf,_0xbe7155[_0x3bc697([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bc697([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x485845(){return _0x1216ae(_0x3bc697([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x693afc(_0x3bc697([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3bc697([0x73,0x74,0x61,0x74,0x65])]==_0x3bc697([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x526662(){return _0x1216ae(_0x3bc697([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 _0x294ae8(){return _0x1216ae(_0x3bc697([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e1e26(_0x181f4d){const _0x55d797=_0x473390();_0xbe7155[_0x55d797]=_0x3bc697([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x181f4d,_0x181f4d!=_0x3bc697([0x56,0x61,0x6c,0x69,0x64])&&_0x3b4292();}function _0x473390(){const _0x46da8a=window[_0x3bc697([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bc697([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bc697([0x6e,0x6f,0x77])]())[_0x3bc697([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bc697([0x2e]),'');let _0x267d82=_0x3bc697([0x52]);for(let _0x32f3e9=0x0;_0x32f3e9<_0x46da8a[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32f3e9+=0x2){let _0x712da0=window[_0x3bc697([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46da8a[_0x3bc697([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32f3e9,_0x32f3e9+0x2));_0x712da0>=_0x3a4174[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x712da0-=_0x3a4174[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x267d82+=_0x3a4174[_0x712da0];}return _0x267d82;}function _0x110e1e(){const _0x3f7747=_0x5debc9[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])](_0x3bc697([0x2e]));if(0x3!=_0x3f7747[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x484862(_0x3f7747[0x1]);function _0x484862(_0x27b992){const _0x16f3ec=_0x44610a(_0x27b992);return _0x16f3ec&&_0x7d3883()?_0x16f3ec:null;function _0x7d3883(){const _0x80a1d2=_0x16f3ec[_0x3bc697([0x6a,0x74,0x69])],_0x2f1f2c=window[_0x3bc697([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x80a1d2[_0x3bc697([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x80a1d2[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x14258c={..._0x16f3ec,[_0x3bc697([0x6a,0x74,0x69])]:_0x80a1d2[_0x3bc697([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x80a1d2[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x14258c[_0x3bc697([0x76,0x63])],_0x4c2f45(_0x14258c)==_0x2f1f2c;}}}async function _0x2dbdcc(){let _0x8c75d=!0x0;try{const _0x2d4fce=_0x5debc9[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])](_0x3bc697([0x2e])),[_0x1e59ed,_0x5bf146,_0x2cc2db]=_0x2d4fce;return _0x2a28a9(_0x1e59ed),await _0x513580(_0x1e59ed,_0x5bf146,_0x2cc2db),_0x8c75d;}catch{return!0x1;}function _0x2a28a9(_0x38bbc0){const _0x456b46=_0x44610a(_0x38bbc0);_0x456b46&&_0x456b46[_0x3bc697([0x61,0x6c,0x67])]==_0x3bc697([0x45,0x53,0x32,0x35,0x36])||(_0x8c75d=!0x1);}async function _0x513580(_0x2f54b3,_0x3d3478,_0x2b341b){const _0x189ea3=window[_0x3bc697([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bc697([0x66,0x72,0x6f,0x6d])](_0x18835f(_0x2b341b),_0x22c44e=>_0x22c44e[_0x3bc697([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21d2e8=new window[(_0x3bc697([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bc697([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f54b3+_0x3bc697([0x2e])+_0x3d3478),_0x225c65=window[_0x3bc697([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bc697([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x225c65)return;const _0x5baec1=await _0x225c65[_0x3bc697([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bc697([0x6a,0x77,0x6b]),_0x527b16,{[_0x3bc697([0x6e,0x61,0x6d,0x65])]:_0x3bc697([0x45,0x43,0x44,0x53,0x41]),[_0x3bc697([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bc697([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bc697([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x225c65[_0x3bc697([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bc697([0x6e,0x61,0x6d,0x65])]:_0x3bc697([0x45,0x43,0x44,0x53,0x41]),[_0x3bc697([0x68,0x61,0x73,0x68])]:{[_0x3bc697([0x6e,0x61,0x6d,0x65])]:_0x3bc697([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5baec1,_0x189ea3,_0x21d2e8)||(_0x8c75d=!0x1);}}function _0x44610a(_0x56a071){return _0x56a071[_0x3bc697([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bc697([0x65,0x79]))?JSON[_0x3bc697([0x70,0x61,0x72,0x73,0x65])](_0x18835f(_0x56a071)):null;}function _0x18835f(_0x18a052){return window[_0x3bc697([0x61,0x74,0x6f,0x62])](_0x18a052[_0x3bc697([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bc697([0x2b]))[_0x3bc697([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bc697([0x2f])));}function _0x4c2f45(_0x47f7cd){let _0xbe157c=0x1505;function _0x316d6c(_0x1b0382){for(let _0x35b5ea=0x0;_0x35b5ea<_0x1b0382[_0x3bc697([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35b5ea++){const _0x6fa0ff=_0x1b0382[_0x3bc697([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35b5ea);_0xbe157c=(_0xbe157c<<0x5)+_0xbe157c+_0x6fa0ff,_0xbe157c&=_0xbe157c;}}function _0x131844(_0x3beec2){Array[_0x3bc697([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3beec2)?_0x3beec2[_0x3bc697([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x131844):_0x3beec2&&typeof _0x3beec2==_0x3bc697([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bc697([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3beec2)[_0x3bc697([0x73,0x6f,0x72,0x74])]()[_0x3bc697([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cb26c,_0x46c943])=>{_0x316d6c(_0x1cb26c),_0x131844(_0x46c943);}):_0x316d6c(window[_0x3bc697([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3beec2));}return _0x131844(_0x47f7cd),_0xbe157c>>>0x0;}function _0x465c11(_0x2e82b4){return _0x2e82b4[_0x3bc697([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bc697([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bc697([0x30]));}function _0x15cd78(_0xe14d78){return _0xe14d78[_0x3bc697([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bc697([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bc697([0x6a,0x6f,0x69,0x6e])]('');}function _0x1216ae(_0x56774b){return _0xbe7155[_0x3bc697([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bc697([0x68,0x61,0x73])](_0x56774b);}function _0x693afc(_0x1cf8ef){return _0xbe7155[_0x3bc697([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bc697([0x67,0x65,0x74])](_0x1cf8ef);}function _0x59abaf(){}function _0x3bc697(_0x31bd87){return _0x31bd87['map'](_0x44931a=>String['fromCharCode'](_0x44931a))['join']('');}_0x2e1e26(await _0x1dce48());}(this);}set['adapter'](_0x36473e){if(this['_adapter'])throw new _0x42e154('track-changes-adapter-already-set',this);this['_adapter']=_0x36473e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xe36ac4=!0x1,toJSON:_0x356b3e=!0x1}={}){const _0x323dd1=[];for(const _0x128c55 of this['_suggestions']['values']())_0xe36ac4&&!_0x128c55['isInContent']||_0x323dd1['push'](_0x128c55);return _0x356b3e?_0x323dd1['map'](_0x465c9d=>_0x465c9d['toJSON']()):_0x323dd1;}['getSuggestion'](_0x56a096){const _0x2c8167=this['_suggestions']['get'](_0x56a096);if(!_0x2c8167)throw new _0x42e154('track-changes-suggestion-not-found',this);return _0x2c8167;}['hasSuggestion'](_0x2f9e4e){return this['_suggestions']['has'](_0x2f9e4e);}['addSuggestionData'](_0x8e75f9){const {authorId:_0x4a216c,id:_0x2fb17d,originalSuggestionId:_0x75b065,attributes:_0x342ae9}=_0x8e75f9,[_0x54807f,_0x48e605]=_0x8e75f9['type']['split'](':'),_0x43313b=this['_suggestions']['get'](_0x2fb17d)||this['_createSuggestion'](_0x54807f,_0x48e605,_0x2fb17d,_0x4a216c,_0x342ae9,_0x75b065);if(this['_addThreadToSuggestion'](_0x43313b),this['_checkSuggestionCorrectness'](_0x43313b,_0x54807f,_0x48e605||null,_0x4a216c),_0x43313b['createdAt']=_0x8e75f9['createdAt'],_0x43313b['_isDataLoaded']=!0x0,_0x342ae9&&_0x342ae9['@external']){const _0x3b9c81=_0x342ae9['@external'],_0x103bd4=this['_getExternalAuthor'](_0x3b9c81['authorName']);_0x43313b['authoredAt']=_0x3b9c81['createdAt'],_0x43313b['author']=_0x103bd4,_0x43313b['isExternal']=!0x0;}else _0x43313b['authoredAt']=_0x8e75f9['createdAt'];switch(_0x8e75f9['data']&&(_0x43313b['data']=_0x8e75f9['data']),_0x8e75f9['attributes']&&(_0x43313b['attributes']=_0x8e75f9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x43313b['_saved']=!0x0),this['_suggestionState']['get'](_0x43313b)){case'notReady':this['_suggestionState']['set'](_0x43313b,'dataReady');break;case'markerReady':_0x43313b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x43313b])),this['_refreshSuggestionsChain'](new Set([_0x43313b])),this['_suggestionState']['set'](_0x43313b,'ready'),this['fire']('suggestionLoaded',_0x43313b)):this['_suggestionState']['set'](_0x43313b,'removed');}return _0x43313b;}['acceptSuggestion'](_0x9be6a5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x591813 of _0x9be6a5['getAllAdjacentSuggestions']())_0x591813['accept']();});});}['discardSuggestion'](_0x1fe977){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x505d18 of _0x1fe977['getAllAdjacentSuggestions']())_0x505d18['discard']();});});}['enableCommand'](_0x4f3ce3,_0x4c414b){const _0x43ecaa=this['editor']['commands']['get'](_0x4f3ce3);if(!_0x43ecaa)throw new _0x42e154('track-changes-command-not-found',this,{'commandName':_0x4f3ce3});if(this['_enabledCommands']['has'](_0x43ecaa))throw new _0x42e154('track-changes-enable-command-twice',this,{'commandName':_0x4f3ce3});this['_enabledCommands']['add'](_0x43ecaa),_0x4c414b&&_0x43ecaa['on']('execute',(_0x2dc011,_0x565142)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x565142['length']>0x0&&_0x565142[_0x565142['length']-0x1]&&_0x565142[_0x565142['length']-0x1]['forceDefaultExecution']?_0x565142['pop']():(_0x2dc011['return']=_0x4c414b((..._0x3d323f)=>_0x43ecaa['execute'](..._0x3d323f,{'forceDefaultExecution':!0x0}),..._0x565142),_0x2dc011['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xfc81b9){let _0x4c68a2,_0x57128c;const _0x3754b9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c68a2=_0xfc81b9();}catch(_0x929374){_0x57128c=_0x929374;}return _0x3754b9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x57128c&&_0x42e154['rethrowUnexpectedError'](_0x57128c,this),_0x4c68a2;}['markInsertion'](_0x23d3e5,_0x9dc74c=null,_0x5a731c={}){if(_0x23d3e5['isCollapsed'])return null;const _0x3aef6f=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5a731c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4eae55,meta:_0x59941a}of this['_findSuggestions'](_0x23d3e5,'insertion'))if(_0x59941a['isOwn']){if(!_0x59941a['isNextTo']){if(_0x59941a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x4eae55,_0x5a731c))continue;return _0x4eae55;}if(sn(_0x4eae55,_0x5a731c))return _0x4eae55;this['_breakSuggestionMarker'](_0x4eae55,_0x23d3e5['start'],_0x23d3e5['end']);break;}if(_0x9dc74c==_0x4eae55['subType']&&sn(_0x4eae55,_0x5a731c)){const _0x1c36fd=_0x4eae55['getFirstRange']();return _0x1c36fd['start']['isEqual'](_0x23d3e5['end'])?this['_setSuggestionRange'](_0x4eae55,this['_model']['createRange'](_0x23d3e5['start'],_0x1c36fd['end'])):this['_setSuggestionRange'](_0x4eae55,this['_model']['createRange'](_0x1c36fd['start'],_0x23d3e5['end'])),_0x4eae55;}}const _0x575072=_0x2844ab(),_0x7120de=_0x3aef6f['id'],_0x664767=_0x9dc74c?'insertion:'+_0x9dc74c:'insertion',_0x1d739e=this['_setSuggestionData']({'id':_0x575072,'type':_0x664767,'createdAt':new Date(),'authorId':_0x7120de,'attributes':_0x5a731c});return this['_addSuggestionMarker'](_0x664767,_0x575072,_0x7120de,_0x23d3e5),_0x1d739e;}['markMultiRangeInsertion'](_0xc5d16f,_0x32beaa='multi',_0x2f58e1={}){const _0x56ad47=this['editor']['plugins']['get']('Users')['me'],_0x4123c1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x32beaa,'join');this['_trackingSessionId']&&(_0x2f58e1['trackingSessionId']=this['_trackingSessionId']);for(const _0x27d2f3 of this['getSuggestions']())if(_0x27d2f3['author']['id']==_0x56ad47['id']&&'insertion'==_0x27d2f3['type']&&_0x27d2f3['subType']==_0x32beaa&&sn(_0x27d2f3,_0x2f58e1)&&(_0x4123c1(_0x27d2f3['getRanges'](),_0xc5d16f)||_0x4123c1(_0xc5d16f,_0x27d2f3['getRanges']()))){for(const _0x162b3f of _0xc5d16f)_0x27d2f3['addRange'](_0x162b3f);return _0x27d2f3;}for(const {suggestion:_0x1b734c,meta:_0x1ffb8c}of this['_findSuggestions'](_0xc5d16f,'insertion')){if(!_0x1ffb8c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1ffb8c['containsRangeInObject'])continue;if(!sn(_0x1b734c,_0x2f58e1))continue;let _0xeca775=!0x0;for(const _0x10b6ef of _0x1b734c['getRanges']())for(const _0x24949d of _0xc5d16f)if(!_0x10b6ef['containsRange'](_0x24949d)){_0xeca775=!0x1;break;}if(_0xeca775)return _0x1b734c;}const _0x315c9c=_0x2844ab(),_0x2dc85f=_0x56ad47['id'],_0x52def5='insertion:'+_0x32beaa,_0x24a6a7=this['_setSuggestionData']({'id':_0x315c9c,'type':_0x52def5,'createdAt':new Date(),'authorId':_0x2dc85f,'attributes':_0x2f58e1});for(const _0x13275b of _0xc5d16f)this['_addSuggestionMarker'](_0x52def5,_0x315c9c,_0x2dc85f,_0x13275b,x['getMultiRangeId']());return _0x24a6a7;}['markInlineFormat'](_0x10f17b,_0x2dba9a,_0x2baa6c=null,_0x5c417c={}){if(_0x2baa6c=_0x2baa6c||Ht(_0x2dba9a),_0x10f17b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5c417c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x33982e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2baa6c,'accept');return this['forceDefaultExecution'](()=>_0x33982e([_0x10f17b],_0x2dba9a,_0x5c417c)),null;}const _0x209a7d=this['editor']['plugins']['get']('Users')['me'],_0x3d7899=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b7253,meta:_0x4a0806}of this['_findSuggestions'](_0x10f17b,'insertion'))_0x4a0806['isOwn']&&!_0x4a0806['isInsideObject']&&_0x3d7899['push'](..._0x3b7253['getRanges']());}const _0x24e66a=function(_0x372476,_0x35d31b){const _0x3344e6=[];for(const _0x1b9f58 of _0x35d31b){const _0x67ef73=_0x372476['getIntersection'](_0x1b9f58);_0x67ef73&&_0x3344e6['push'](_0x67ef73);}return _0x3344e6;}(_0x10f17b,_0x3d7899),_0x300502=function(_0x167956,_0x529681){const _0x3855a3=[_0x167956];for(const _0x2b5a74 of _0x529681){let _0x23433b=0x0;for(;_0x23433b<_0x3855a3['length'];){const _0x27bbf5=_0x3855a3[_0x23433b]['getDifference'](_0x2b5a74);_0x3855a3['splice'](_0x23433b,0x1,..._0x27bbf5),_0x23433b+=_0x27bbf5['length'];}}return _0x3855a3;}(_0x10f17b,_0x3d7899);_0x24e66a['length']&&this['_model']['change'](()=>{for(const _0x4f94b9 of _0x24e66a){const _0x1f690a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2baa6c,'accept');this['forceDefaultExecution'](()=>_0x1f690a([_0x4f94b9],_0x2dba9a,_0x5c417c));}});for(const _0x3e9557 of _0x300502){let _0x1ad8e1=null,_0x5b7421=_0x3e9557['start'],_0x3e132a=_0x3e9557['end'];for(const {suggestion:_0x183163,meta:_0x43a1f0}of this['_findSuggestions'](_0x3e9557,'formatInline')){if(!_0x43a1f0['isOwn'])continue;if(_0x183163['subType']!=_0x2baa6c)continue;if(!sn(_0x183163,_0x5c417c))continue;const _0x1f10e3=_0x183163['getFirstRange']();if(_0x1f10e3['containsRange'](_0x3e9557,!0x0))return null;_0x5b7421=_0x5b7421['isBefore'](_0x1f10e3['start'])?_0x5b7421:_0x1f10e3['start'],_0x3e132a=_0x3e132a['isAfter'](_0x1f10e3['end'])?_0x3e132a:_0x1f10e3['end'],_0x1ad8e1?_0x1f10e3['start']['isBefore'](_0x1ad8e1['getFirstRange']()['start'])?(_0x1ad8e1['removeMarkers'](),_0x1ad8e1=_0x183163):_0x183163['removeMarkers']():_0x1ad8e1=_0x183163;}const _0x409583=this['_model']['createRange'](_0x5b7421,_0x3e132a);if(_0x1ad8e1)this['_setSuggestionRange'](_0x1ad8e1,_0x409583);else{const _0x3f1949=_0x2844ab(),_0x449d7c=_0x209a7d['id'];this['_setSuggestionData']({'id':_0x3f1949,'type':'formatInline:'+_0x2baa6c,'data':_0x2dba9a,'createdAt':new Date(),'authorId':_0x449d7c,'attributes':_0x5c417c}),this['_addSuggestionMarker']('formatInline:'+_0x2baa6c,_0x3f1949,_0x449d7c,_0x409583);}}return null;}['markBlockFormat'](_0x353aab,_0x2fa5ce,_0xcf6572=[],_0x1c31c8=null,_0x58c605={}){_0x2fa5ce['formatGroupId']||(_0x2fa5ce['formatGroupId']=_0x2fa5ce['commandName']),_0x2fa5ce['multipleBlocks']=_0x353aab['is']('range'),_0x1c31c8=_0x1c31c8||Ht(_0x2fa5ce);const _0x19468b=_0xcf6572['map'](_0x32f6a9=>tn(_0x32f6a9,this['_model'])),_0x464539=_0x353aab['is']('range')?_0x353aab:tn(_0x353aab,this['_model']);if(this['_trackingSessionId']&&(_0x58c605['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x550c6a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c31c8,'accept');return this['forceDefaultExecution'](()=>_0x550c6a([_0x464539],_0x2fa5ce,_0x58c605)),null;}_0x19468b['push'](_0x464539);let _0x41180a=!0x0;for(const _0x296d6a of _0x19468b)if(!this['_rangeIsInLocalUserInsertion'](_0x296d6a)){_0x41180a=!0x1;break;}if(_0x41180a&&'always'!==this['_trackFormatChanges']){const _0x1c50b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c31c8,'accept');return this['forceDefaultExecution'](()=>_0x1c50b8([_0x464539],_0x2fa5ce,_0x58c605)),null;}let _0x94655a=null,_0xeb0a5e=_0x464539['start'],_0x1a7fa6=_0x464539['end'];for(const {suggestion:_0x5b43f1,meta:_0x1e10a0}of this['_findSuggestions'](_0x464539,'formatBlock')){if(!_0x1e10a0['isOwn'])continue;if(_0x1e10a0['isNextTo']||_0x1e10a0['containsRangeInObject']||_0x1e10a0['isInsideObject'])continue;if(_0x5b43f1['data']['formatGroupId']!=_0x2fa5ce['formatGroupId'])continue;if(!sn(_0x5b43f1,_0x58c605))continue;const _0x17d72f=_0x5b43f1['getFirstRange']();if(_0x5b43f1['subType']==_0x1c31c8){if(_0x17d72f['containsRange'](_0x464539,!0x0))return null;_0xeb0a5e=_0xeb0a5e['isBefore'](_0x17d72f['start'])?_0xeb0a5e:_0x17d72f['start'],_0x1a7fa6=_0x1a7fa6['isAfter'](_0x17d72f['end'])?_0x1a7fa6:_0x17d72f['end'],_0x94655a?_0x17d72f['start']['isBefore'](_0x94655a['getFirstRange']()['start'])?(_0x94655a['removeMarkers'](),_0x94655a=_0x5b43f1):_0x5b43f1['removeMarkers']():_0x94655a=_0x5b43f1;}else{const _0x28fa10=_0x464539['getIntersection'](_0x17d72f);this['_cutOutSuggestionMarker'](_0x5b43f1,_0x28fa10);}}const _0x4beb08=this['editor']['plugins']['get']('Users')['me'],_0xfa9c9d=_0x2844ab(),_0x301a2f=_0x4beb08['id'];if(_0x94655a)return this['_setSuggestionRange'](_0x94655a,this['_model']['createRange'](_0xeb0a5e,_0x1a7fa6)),_0x94655a;{const _0x1bf483=this['_setSuggestionData']({'id':_0xfa9c9d,'type':'formatBlock:'+_0x1c31c8,'data':_0x2fa5ce,'createdAt':new Date(),'authorId':_0x301a2f,'attributes':_0x58c605});return this['_addSuggestionMarker']('formatBlock:'+_0x1c31c8,_0xfa9c9d,_0x301a2f,this['_model']['createRange'](_0xeb0a5e,_0x1a7fa6)),_0x1bf483;}}['markMultiRangeBlockFormat'](_0x49c1d0,_0x4b74f1,_0x244362=[],_0x3fe7d9=null,_0x3c468c={}){_0x4b74f1['formatGroupId']||(_0x4b74f1['formatGroupId']=_0x4b74f1['commandName']);const _0x546004=_0x49c1d0[0x0];_0x4b74f1['multipleBlocks']=_0x546004['is']('range'),_0x3fe7d9=_0x3fe7d9||Ht(_0x4b74f1);const _0x669c44=_0x244362['map'](_0x3b2e3d=>tn(_0x3b2e3d,this['_model'])),_0x277441=_0x546004['is']('range')?_0x49c1d0:_0x49c1d0['map'](_0x39ca81=>tn(_0x39ca81,this['_model']));if(this['_trackingSessionId']&&(_0x3c468c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4884fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fe7d9,'accept');return this['forceDefaultExecution'](()=>_0x4884fa(_0x277441,_0x4b74f1,_0x3c468c)),null;}_0x669c44['push'](..._0x277441);let _0x51c5bf=!0x0;for(const _0x292fce of _0x669c44)if(!this['_rangeIsInLocalUserInsertion'](_0x292fce)){_0x51c5bf=!0x1;break;}if(_0x51c5bf&&'always'!==this['_trackFormatChanges']){const _0x5d3634=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fe7d9,'accept');return this['forceDefaultExecution'](()=>_0x5d3634(_0x277441,_0x4b74f1,_0x3c468c)),null;}const _0x8a8156=this['editor']['plugins']['get']('Users')['me'];for(const _0x741afd of this['getSuggestions']()){const _0x532aeb=_0x741afd['data'];if(_0x741afd['author']['id']!=_0x8a8156['id'])continue;if('formatBlock'!=_0x741afd['type']||_0x532aeb['formatGroupId']!=_0x4b74f1['formatGroupId'])continue;if(!sn(_0x741afd,_0x3c468c))continue;const _0x20017b=_0x741afd['subType']==_0x3fe7d9;for(let _0x551812=0x0;_0x551812<_0x277441['length'];_0x551812++){const _0x47c48f=_0x277441[_0x551812];for(const _0x438a8d of _0x741afd['getMarkers']()){const _0x205cf7=_0x438a8d['getRange']();if(_0x47c48f['isEqual'](_0x205cf7)){_0x20017b?(_0x277441['splice'](_0x551812,0x1),_0x551812--):_0x741afd['removeMarker'](_0x438a8d['name']);break;}}}}if(0x0==_0x277441['length'])return null;const _0x583c14=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fe7d9,'join');for(const _0x33c0ca of this['getSuggestions']()){const _0x2d931a=_0x33c0ca['data'];if(_0x33c0ca['author']['id']==_0x8a8156['id']&&('formatBlock'==_0x33c0ca['type']&&_0x2d931a['formatGroupId']==_0x4b74f1['formatGroupId']&&_0x33c0ca['subType']==_0x3fe7d9&&sn(_0x33c0ca,_0x3c468c)&&(_0x583c14(_0x33c0ca['getRanges'](),_0x277441)||_0x583c14(_0x277441,_0x33c0ca['getRanges']())))){for(const _0xae4a51 of _0x277441)_0x33c0ca['addRange'](_0xae4a51);return _0x33c0ca;}}const _0x1953fb=_0x2844ab(),_0x70710c=_0x8a8156['id'],_0x26ee8f='formatBlock:'+_0x3fe7d9,_0x4c1e43=this['_setSuggestionData']({'id':_0x1953fb,'type':_0x26ee8f,'data':_0x4b74f1,'createdAt':new Date(),'authorId':_0x70710c,'attributes':_0x3c468c});for(const _0x44eebe of _0x277441)this['_addSuggestionMarker'](_0x26ee8f,_0x1953fb,_0x70710c,_0x44eebe,x['getMultiRangeId']());return _0x4c1e43;}['markDeletion'](_0x2656e6,_0x519816=null,_0x51c2d8={}){if(_0x2656e6['isCollapsed'])return null;const _0x480bf2=this['editor']['plugins']['get']('Users')['me'],_0x11f042=new _0x468db3(_0x2656e6['start'],_0x2656e6['end']);this['_trackingSessionId']&&(_0x51c2d8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x534a70,meta:_0x44d9f3}of this['_findSuggestions'](_0x11f042,'insertion'))if(_0x44d9f3['isOwn']&&!_0x44d9f3['isNextTo']){if(_0x534a70['isMultiRange']){const _0x2317c6=_0x534a70['getRanges']()['filter'](_0x92c40=>'$graveyard'!=_0x92c40['root']['rootName']);_0x2317c6['every'](_0x1de1ea=>_0x11f042['containsRange'](_0x1de1ea,!0x0))&&_0x534a70['discard']();if(_0x2317c6['some'](_0x28a5f9=>_0x28a5f9['containsRange'](_0x11f042,!0x0))){const _0x2fabac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x519816,'accept');return this['forceDefaultExecution'](()=>_0x2fabac([_0x11f042],null,_0x51c2d8)),null;}}else{const _0x17bd90=_0x11f042['getIntersection'](_0x534a70['getFirstRange']());null!==_0x17bd90&&_0x534a70['_onDiscard']([_0x17bd90],null,_0x51c2d8);}}if(_0x11f042['detach'](),_0x11f042['isCollapsed']||'$graveyard'==_0x11f042['root']['rootName'])return null;let _0x293b6f=null,_0x14776f=_0x11f042['start'],_0x18bdff=_0x11f042['end'];const _0x5264f0=this['_findSuggestions'](_0x11f042,'deletion');for(const {suggestion:_0x4c4279,meta:_0x3adaaa}of _0x5264f0){const _0x2a9e4d=this['_model']['createRange'](_0x14776f,_0x18bdff);if(_0x3adaaa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3adaaa['containsRangeInObject']&&!_0x3adaaa['isInsideObject'])){if(_0x4c4279['isMultiRange']){if(!sn(_0x4c4279,_0x51c2d8))continue;let _0x2b6c84=!0x0;for(const _0x3f2725 of _0x4c4279['getRanges']()){if(_0x3f2725['containsRange'](_0x2a9e4d,!0x0))return _0x4c4279;_0x2a9e4d['containsRange'](_0x3f2725)||(_0x2b6c84=!0x1);}_0x2b6c84&&_0x4c4279['discard']();}else{const _0x39ed2c=_0x4c4279['getFirstRange']();if(_0x39ed2c['containsRange'](_0x2a9e4d,!0x0))return _0x4c4279;if(!sn(_0x4c4279,_0x51c2d8)){_0x2a9e4d['containsRange'](_0x39ed2c)?_0x4c4279['removeMarkers']():_0x39ed2c['containsPosition'](_0x14776f)?_0x14776f=_0x39ed2c['end']:_0x39ed2c['containsPosition'](_0x18bdff)&&(_0x18bdff=_0x39ed2c['start']);continue;}_0x14776f=_0x14776f['isBefore'](_0x39ed2c['start'])?_0x14776f:_0x39ed2c['start'],_0x18bdff=_0x18bdff['isAfter'](_0x39ed2c['end'])?_0x18bdff:_0x39ed2c['end'],_0x51c2d8=Object['assign']({},_0x4c4279['attributes']),_0x293b6f?_0x39ed2c['start']['isBefore'](_0x293b6f['getFirstRange']()['start'])?(_0x293b6f['removeMarkers'](),_0x293b6f=_0x4c4279):_0x4c4279['removeMarkers']():_0x293b6f=_0x4c4279;}}}if(_0x293b6f)return this['_setSuggestionRange'](_0x293b6f,this['_model']['createRange'](_0x14776f,_0x18bdff)),_0x293b6f;{const _0x57286f=_0x2844ab(),_0x9b30b=this['_model']['createRange'](_0x14776f,_0x18bdff),_0x4365ec=_0x480bf2['id'],_0x439ae6=_0x519816?'deletion:'+_0x519816:'deletion',_0x24db54=this['_setSuggestionData']({'id':_0x57286f,'type':_0x439ae6,'createdAt':new Date(),'authorId':_0x4365ec,'attributes':_0x51c2d8});return this['_addSuggestionMarker'](_0x439ae6,_0x57286f,_0x4365ec,_0x9b30b),_0x24db54;}}['markMultiRangeDeletion'](_0x33f4b5,_0x315524='multi',_0x2ed80a={}){const _0x4638fb=this['editor']['plugins']['get']('Users')['me'],_0xe473e1=_0x33f4b5['map'](_0x5354be=>new _0x468db3(_0x5354be['start'],_0x5354be['end'])),_0x402e7e=new Set();this['_trackingSessionId']&&(_0x2ed80a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x408306,meta:_0x1dd73c}of this['_findSuggestions'](_0xe473e1,'insertion'))_0x1dd73c['isOwn']&&!_0x1dd73c['isNextTo']&&_0x402e7e['add'](_0x408306);for(const _0x3c8095 of _0x402e7e)if(_0x3c8095['isMultiRange']){const _0x4eda49=_0x3c8095['getRanges']();(!_0x3c8095['attributes']||!_0x3c8095['attributes']['skipNestingCheck'])&&(_0x4eda49['every'](_0xba18f0=>_0xe473e1['some'](_0x4ef05c=>_0x4ef05c['containsRange'](_0xba18f0,!0x0)))&&_0x3c8095['discard']());if(_0xe473e1['every'](_0x2b6a29=>_0x4eda49['some'](_0x2568a8=>_0x2568a8['containsRange'](_0x2b6a29,!0x0)))){const _0x344a36=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x315524,'accept');return this['forceDefaultExecution'](()=>_0x344a36(_0x33f4b5,null,_0x2ed80a)),null;}}else{const _0xb7c273=_0x3c8095['getFirstRange']();_0xe473e1['some'](_0x43b0a8=>_0x43b0a8['containsRange'](_0xb7c273,!0x0))&&_0x3c8095['discard']();if(_0xe473e1['every'](_0x32f6e9=>_0xb7c273['containsRange'](_0x32f6e9,!0x0))){const _0x41160d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x315524,'accept');return this['forceDefaultExecution'](()=>_0x41160d(_0xe473e1,null,_0x2ed80a)),null;}}const _0x2e23e8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x315524,'join');let _0x36beea=null;for(const _0x2f9f85 of this['getSuggestions']())if(_0x2f9f85['author']['id']==_0x4638fb['id']&&_0x2f9f85['isInContent']&&'deletion'==_0x2f9f85['type']&&_0x2f9f85['subType']==_0x315524&&sn(_0x2f9f85,_0x2ed80a)&&(_0x2e23e8(_0x2f9f85['getRanges'](),_0xe473e1)||_0x2e23e8(_0xe473e1,_0x2f9f85['getRanges']()))){if(_0x36beea){if(_0x2f9f85['commentThread']&&_0x2f9f85['commentThread']['length'])continue;for(const _0x3a08fb of _0x2f9f85['getRanges']())_0x36beea['isIntersectingWithRange'](_0x3a08fb)||_0x36beea['addRange'](_0x3a08fb);_0x2f9f85['removeMarkers']();}else{_0x36beea=_0x2f9f85;for(const _0x338aac of _0xe473e1)_0x2f9f85['isIntersectingWithRange'](_0x338aac)||_0x2f9f85['addRange'](_0x338aac);}}if(_0x36beea)return _0x36beea;_0x402e7e['clear']();for(const {suggestion:_0x510207,meta:_0x2b8217}of this['_findSuggestions'](_0xe473e1,'deletion'))_0x2b8217['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2b8217['containsRangeInObject']&&!_0x2b8217['isInsideObject'])&&sn(_0x510207,_0x2ed80a)&&_0x402e7e['add'](_0x510207);for(const _0x3f5051 of _0x402e7e){const _0x4234c2=_0x3f5051['getRanges']();if(!_0x2ed80a||!_0x2ed80a['skipNestingCheck']){if(_0xe473e1['every'](_0x37d060=>_0x4234c2['some'](_0x29e8cb=>_0x29e8cb['containsRange'](_0x37d060,!0x0))))return _0x3f5051;}(!_0x3f5051['attributes']||!_0x3f5051['attributes']['skipNestingCheck'])&&(_0x4234c2['every'](_0x2b32e5=>_0xe473e1['some'](_0xff3f81=>_0xff3f81['containsRange'](_0x2b32e5,!0x0)))&&_0x3f5051['discard']());}const _0x3452b6=_0x2844ab(),_0x1bd849=_0x4638fb['id'],_0x4caf72='deletion:'+_0x315524,_0x3de501=this['_setSuggestionData']({'id':_0x3452b6,'type':_0x4caf72,'createdAt':new Date(),'authorId':_0x1bd849,'attributes':_0x2ed80a});for(const _0x214214 of _0xe473e1)_0x214214['detach'](),_0x214214['isCollapsed']||'$graveyard'==_0x214214['root']['rootName']||this['_addSuggestionMarker'](_0x4caf72,_0x3452b6,_0x1bd849,_0x214214,x['getMultiRangeId']());return _0x3de501;}['markAttributeChange'](_0x3bb30b,_0x2a9c37,_0x5f48ae,_0x262126,_0xb3fc4e){if(_0x3bb30b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3da5f6=this['editor']['plugins']['get']('Users')['me']['id'],_0x4906b1=Array['from'](this['_suggestions']['values']())['filter'](_0x516a83=>'attribute'==_0x516a83['type']&&_0x516a83['data']['key']==_0x2a9c37&&_0x516a83['isIntersectingWithRange'](_0x3bb30b));if(this['_trackingSessionId']&&(_0xb3fc4e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x56de67=this['_findSuggestions'](_0x3bb30b,'insertion')['filter'](({meta:_0x30dbaa})=>_0x30dbaa['isOwn']&&!_0x30dbaa['isInsideObject']&&!_0x30dbaa['isNextTo'])['map'](({suggestion:_0x16eeb9})=>_0x16eeb9);_0x4906b1['unshift'](..._0x56de67);}const _0x4fe5c6=new Map([[_0x3bb30b,_0x5f48ae]]);for(const _0x5cc088 of _0x4906b1){const _0x198d89='attribute'==_0x5cc088['type']?_0x5cc088['data']['oldValue']:void 0x0,_0x1f2214=_0x5cc088['getFirstRange'](),_0x4b7cf8=Array['from'](_0x4fe5c6['keys']())['find'](_0x3c1e86=>_0x3c1e86['isIntersecting'](_0x1f2214));if(!_0x4b7cf8)continue;const _0x3e9f75=_0x4b7cf8['getDifference'](_0x1f2214);this['_isBlockAttribute'](_0x2a9c37)&&'insertion'==_0x5cc088['type']&&0x0!=_0x3e9f75['length']||(_0x4fe5c6['delete'](_0x4b7cf8),_0x3e9f75['forEach'](_0x144c62=>{_0x4fe5c6['set'](_0x144c62,_0x5f48ae);}),'insertion'!=_0x5cc088['type']&&_0x198d89!=_0x262126&&_0x4fe5c6['set'](_0x4b7cf8['getIntersection'](_0x1f2214),_0x198d89));}const _0x4fe766=[];for(const [_0x582ba2,_0x4ded40]of _0x4fe5c6){const _0x5a619e=_0x2844ab(),_0xab4450={'key':_0x2a9c37,'oldValue':_0x4ded40,'newValue':_0x262126};_0x2a9c37['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':_0x2a9c37});const _0x182848=('attribute:'+(_0x2a9c37+'|'+Ht({'newValue':_0x262126})))['substring'](0x0,0x3c),_0x5d9e66=this['_setSuggestionData']({'id':_0x5a619e,'type':_0x182848,'data':_0xab4450,'createdAt':new Date(),'authorId':_0x3da5f6,'attributes':_0xb3fc4e});_0x4fe766['push'](_0x5d9e66),this['_addSuggestionMarker'](_0x182848,_0x5a619e,_0x3da5f6,_0x582ba2);}return _0x4fe766;}['enableDefaultAttributesIntegration'](_0x5ecde6){this['enableCommand'](_0x5ecde6,(_0x5285cf,..._0x2915a1)=>{this['recordAttributeChanges'](()=>{_0x5285cf(..._0x2915a1);});});}['registerBlockAttribute'](_0x1fdcf3){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x1fdcf3);}['registerInlineAttribute'](_0x1d0e3f){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1d0e3f);}['startTrackingSession'](_0x395c6d){return this['_trackingSessionId']=void 0x0!==_0x395c6d?_0x395c6d:_0x2844ab(),this['_trackingSessionId'];}['_getAttributeKey'](_0x21e55c){return'attribute'==_0x21e55c['type']?_0x21e55c['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x3f45c0){if(0x0==_0x3f45c0['length'])return;const _0x5c31fd=this['editor'],_0x3d5583=_0x5c31fd['plugins']['get'](_0xb40c62),_0x6598ee=[];_0x5c31fd['model']['change'](_0x4b6eb8=>{for(let _0x38bdc2=0x0;_0x38bdc2<_0x3f45c0['length'];_0x38bdc2++){const _0x2b23b9=_0x3f45c0[_0x38bdc2];if(_0x2b23b9['baseVersion']=_0x5c31fd['model']['document']['version'],_0x2b23b9['isDocumentOperation']=!0x0,_0x3d5583['isMarkedRemoveOperation'](_0x2b23b9)){const _0x2c9bc7=Lt(_0x2b23b9['newRange'],_0x5c31fd['model']);_0x6598ee['unshift'](_0x468db3['fromRange'](_0x2c9bc7));}else switch(_0x2b23b9['type']){case'rename':{const _0x5c6d73=_0x2b23b9['oldName'],_0x2facd4=_0x2b23b9['newName'];if(_0x5c6d73==_0x2facd4)break;_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);const _0x29db25='$elementName',_0x511506=_0x2b23b9['position'],_0x1eaa72=_0x5c31fd['model']['createRange'](_0x511506,_0x5c31fd['model']['createPositionAt'](_0x511506['nodeAfter'],'end'));this['markAttributeChange'](_0x1eaa72,_0x29db25,_0x5c6d73,_0x2facd4,{'groupId':_0x2844ab()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x55f23d=_0x2b23b9['oldValue'],_0x3d23e8=_0x2b23b9['newValue'];if(_0x55f23d==_0x3d23e8)break;_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);const _0x17ba1f=_0x2b23b9['key'];if(!this['_isRegisteredAttribute'](_0x17ba1f))break;const _0xf498b5=Lt(_0x2b23b9['range'],_0x5c31fd['model']);this['markAttributeChange'](_0xf498b5,_0x17ba1f,_0x55f23d,_0x3d23e8,{'groupId':_0x2844ab()});break;}case'insert':{_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);if(_0x3f45c0[_0x38bdc2+0x1]&&'move'==_0x3f45c0[_0x38bdc2+0x1]['type'])break;const _0x3fc814=_0x2b23b9['position'],_0x53308c=_0x2b23b9['howMany'],_0x43364d=Lt(_0x5c31fd['model']['createRange'](_0x3fc814,_0x3fc814['getShiftedBy'](_0x53308c)),_0x5c31fd['model']);this['markInsertion'](_0x43364d);break;}case'split':{_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);const _0x57e2a8=_0x2b23b9['splitPosition'],_0x3db4e5=_0x2b23b9['moveTargetPosition'];this['markInsertion'](_0x5c31fd['model']['createRange'](_0x57e2a8,_0x3db4e5));break;}case'move':case'remove':_0x4b6eb8['batch']['addOperation'](_0x2b23b9),_0x5c31fd['model']['applyOperation'](_0x2b23b9);}}for(const _0x589da4 of _0x6598ee)_0x589da4['detach'](),this['markDeletion'](_0x589da4);});}['_setSuggestionRange'](_0x1d7edd,_0x475458){const _0xbd854a=_0x1d7edd['getFirstMarker']();this['_model']['change'](_0x38c387=>{_0x38c387['updateMarker'](_0xbd854a,{'range':_0x475458});});}['_addThreadToSuggestion'](_0x9c8e09){const _0x3bcbce=_0x9c8e09['id'],_0x50c97c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3bcbce)||this['_commentsRepository']['addCommentThread']({'channelId':_0x50c97c,'threadId':_0x3bcbce,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x147217=this['_commentsRepository']['getCommentThread'](_0x3bcbce);_0x147217['unbind']('isRemovable'),_0x147217['isRemovable']=!0x1,_0x9c8e09['commentThread']=_0x147217;}['_checkSuggestionCorrectness'](_0x262703,_0x3bbdde,_0x5255e6,_0x494aed){if(_0x262703['type']!=_0x3bbdde||_0x262703['subType']!=_0x5255e6||_0x262703['creator']['id']!=_0x494aed)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x42e154('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b7034,_0x381a52){const _0x5259a2=_0x3b7034['getFirstRange']();if(_0x381a52['isEqual'](_0x5259a2))_0x3b7034['removeMarkers']();else{if(_0x5259a2['containsRange'](_0x381a52)){const _0x3a3ee1=this['_model']['createPositionAt'](_0x381a52['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b7034,this['_model']['createRange'](_0x5259a2['start'],_0x3a3ee1));const _0x15c124=_0x2844ab(),_0x37ffd4=_0x3b7034['creator']['id'],_0x543358=_0x3b7034['type']+':'+_0x3b7034['subType'];this['_setSuggestionData']({'id':_0x15c124,'type':_0x543358,'createdAt':new Date(),'authorId':_0x37ffd4,'data':_0x3b7034['data'],'attributes':_0x3b7034['attributes']});const _0x1183f5=this['_model']['createPositionAt'](_0x381a52['end']['parent'],'after'),_0x13b6ac=this['_model']['createRange'](_0x1183f5,_0x5259a2['end']);this['_addSuggestionMarker'](_0x543358,_0x15c124,_0x37ffd4,_0x13b6ac);}else{if(_0x5259a2['containsPosition'](_0x381a52['start'])){const _0x15430b=this['_model']['createPositionAt'](_0x381a52['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b7034,this['_model']['createRange'](_0x5259a2['start'],_0x15430b));}else{const _0xc20243=this['_model']['createPositionAt'](_0x381a52['end']['parent'],'after');this['_setSuggestionRange'](_0x3b7034,this['_model']['createRange'](_0xc20243,_0x5259a2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x37b61a){for(const {suggestion:_0x1182d1,meta:_0x53dc64}of this['_findSuggestions'](_0x37b61a,'insertion')){if(!_0x53dc64['isOwn'])continue;const _0x674792=_0x1182d1['getRanges']();for(const _0x275358 of _0x674792)if(!_0x37b61a['getDifference'](_0x275358)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5b05fd){return this['editor']['plugins']['get']('Users')['getUser'](_0x5b05fd);}['_getExternalAuthor'](_0x4f94bc){const _0x5a1426=this['editor']['plugins']['get']('Users'),_0x26981b=_0x1c5c8a('external:'+_0x4f94bc),_0x2cabef=_0x5a1426['getUser'](_0x26981b);return _0x2cabef||_0x5a1426['addUser']({'id':_0x26981b,'name':_0x4f94bc});}['_createSuggestion'](_0x212690,_0x1e4590,_0x464f64,_0x47496e,_0x1efb4b,_0x5f2d95){const _0x2b2ae2=this['_getAuthorFromId'](_0x47496e);if(!_0x2b2ae2)throw new _0x42e154('track-changes-user-not-found',this,{'authorId':_0x47496e,'suggestionId':_0x464f64});const _0x3109c4=this['_suggestionFactory']['buildSuggestion'](_0x212690,_0x1e4590,_0x464f64,_0x2b2ae2,_0x1efb4b,_0x219788=>{this['_updateSuggestionData'](_0x464f64,{'attributes':_0x219788});const _0x1802c6=this['getSuggestion'](_0x464f64);this['_joinWithAdjacentSuggestions'](new Set([_0x1802c6])),this['_refreshSuggestionsChain'](new Set([_0x1802c6]));},_0x5f2d95);return this['listenTo'](_0x3109c4,'accept',()=>{this['_updateSuggestionData'](_0x464f64,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3109c4,'discard',()=>{this['_updateSuggestionData'](_0x464f64,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x464f64,_0x3109c4),this['_suggestionState']['set'](_0x3109c4,'notReady'),_0x3109c4;}['_splitMarkerName'](_0x487017){return Gt(_0x487017);}['_breakSuggestionMarker'](_0x5466f0,_0xa2497c,_0x4d8f82){const _0x4ec55f=_0x5466f0['getFirstRange'](),_0x50c8e3=_0x4ec55f['start'],_0xb30b0c=_0x4ec55f['end'];this['_setSuggestionRange'](_0x5466f0,this['_model']['createRange'](_0x50c8e3,_0xa2497c));const _0x523d8a=_0x2844ab(),_0x25748a=_0x5466f0['creator']['id'],_0x1105ce=_0x5466f0['type']+(_0x5466f0['subType']?':'+_0x5466f0['subType']:'');this['_setSuggestionData']({'id':_0x523d8a,'type':_0x1105ce,'createdAt':new Date(),'authorId':_0x25748a,'originalSuggestionId':_0x5466f0['_originalSuggestionId']||_0x5466f0['id'],'attributes':_0x5466f0['attributes'],'data':_0x5466f0['data']});const _0x7b840d=this['_getAttributeKey'](_0x5466f0);('formatBlock'==_0x5466f0['type']||_0x7b840d&&this['_isBlockAttribute'](_0x7b840d))&&(_0x4d8f82=this['_model']['createPositionBefore'](_0x4d8f82['parent'])),this['_addSuggestionMarker'](_0x1105ce,_0x523d8a,_0x25748a,this['_model']['createRange'](_0x4d8f82,_0xb30b0c));}['_findSuggestions'](_0x41a8f8,_0x2e4386=null){const _0x295864=[],_0x2a7fe0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x41a8f8)||(_0x41a8f8=[_0x41a8f8]);for(const _0x53a6fb of this['getSuggestions']()){if(!_0x53a6fb['isInContent'])continue;if(_0x2e4386&&_0x53a6fb['type']!=_0x2e4386)continue;let _0x12ee42=!0x1;for(const _0x31fab3 of _0x53a6fb['getRanges']()){for(const _0x51c96d of _0x41a8f8){const _0x208cde=_0x51c96d['start']['isEqual'](_0x31fab3['end'])||_0x51c96d['end']['isEqual'](_0x31fab3['start']);if(_0x208cde||_0x51c96d['getIntersection'](_0x31fab3)){const _0x3249ea=_0x51c96d['containsRange'](_0x31fab3)&&zt(this['_model']['schema'],_0x31fab3['start'],_0x51c96d),_0x1a2286=_0x31fab3['containsRange'](_0x51c96d)&&zt(this['_model']['schema'],_0x51c96d['start'],_0x31fab3);_0x295864['push']({'suggestion':_0x53a6fb,'meta':{'isOwn':_0x2a7fe0==_0x53a6fb['author'],'isNextTo':_0x208cde,'isInsideObject':_0x3249ea,'containsRangeInObject':_0x1a2286}}),_0x12ee42=!0x0;break;}}if(_0x12ee42)break;}}return _0x295864;}['_addSuggestionMarker'](_0x42ca98,_0x4840bb,_0x1856a8,_0x21ac7b,_0x18e900){this['_model']['change'](_0x35ea67=>{let _0x42a7bb='suggestion:'+_0x42ca98+':'+_0x4840bb+':'+_0x1856a8;_0x18e900&&(_0x42a7bb=_0x42a7bb+':'+_0x18e900),_0x35ea67['addMarker'](_0x42a7bb,{'range':_0x21ac7b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1caada){const _0x3d31e5=_0x1caada['previous'],_0xff029a=_0x1caada['next'];_0x1caada['previous']=null,_0x1caada['next']=null,null!=_0x3d31e5&&_0x3d31e5['next']==_0x1caada&&(_0x3d31e5['next']=_0xff029a),null!=_0xff029a&&_0xff029a['previous']==_0x1caada&&(_0xff029a['previous']=_0x3d31e5),'ready'==this['_suggestionState']['get'](_0x1caada)&&(this['_suggestionState']['set'](_0x1caada,'removed'),this['fire']('suggestionUnloaded',_0x1caada,_0x3d31e5,_0xff029a));}['_setSuggestionData'](_0xa9fb25){const _0x452c8e=_0xa9fb25['id'],_0x38bb36=this['addSuggestionData'](_0xa9fb25);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x33ac09=this['editor']['plugins']['get']('PendingActions'),_0x5eab31=_0x38bb36['hasComments'],_0x4b03d0=_0x38bb36['subType']?_0x38bb36['type']+':'+_0x38bb36['subType']:_0x38bb36['type'],_0x2361b0=this['editor']['locale'],_0x25e43a=_0x33ac09['add'](o(_0x2361b0,'PENDING_ACTION_SUGGESTION')),_0x566e74={'id':_0x452c8e,'type':_0x4b03d0,'hasComments':_0x5eab31,'data':_0xa9fb25['data']||null,'originalSuggestionId':_0xa9fb25['originalSuggestionId']||null,'attributes':_0x38bb36['attributes']};this['_adapter']['addSuggestion'](_0x566e74)['then'](_0x20f24f=>{_0x38bb36['_saved']=!0x0,_0x33ac09['remove'](_0x25e43a),_0x20f24f&&_0x20f24f['createdAt']&&(this['_suggestions']['get'](_0x452c8e)['createdAt']=_0x20f24f['createdAt']);})['catch'](_0x22f123=>{throw _0x2ee89f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x38bb36['discard']();}),_0x38bb36['stopListening'](),this['_suggestions']['delete'](_0x38bb36['id']),this['_suggestionState']['delete'](_0x38bb36),_0x22f123;});}return _0x38bb36;}['_isBlockAttribute'](_0x34e1e7){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x34e1e7);}['_isInlineAttribute'](_0x49bf52){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x49bf52);}['_updateSuggestionData'](_0x43e0f9,_0xd0b82e){const _0x4e343c=this['editor']['plugins']['get']('PendingActions'),_0x568e2f=this['getSuggestion'](_0x43e0f9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x568e2f['_saved']){const _0x473465=_0x4e343c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x43e0f9,_0xd0b82e)['then'](()=>{_0x4e343c['remove'](_0x473465);});}else _0x568e2f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x43e0f9,_0xd0b82e);});}}['_getSuggestionData'](_0x461f3e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x42e154('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x461f3e);}['_handleNewSuggestionMarker'](_0x4bf601){const {id:_0x11f792,type:_0x4aec67,subType:_0x440145,authorId:_0xd96753}=this['_splitMarkerName'](_0x4bf601),_0x22ffbc=this['_suggestions']['get'](_0x11f792)||this['_createSuggestion'](_0x4aec67,_0x440145,_0x11f792,_0xd96753,{});switch(this['_checkSuggestionCorrectness'](_0x22ffbc,_0x4aec67,_0x440145,_0xd96753),this['_suggestionState']['get'](_0x22ffbc)){case'notReady':this['_getSuggestionData'](_0x11f792)['then'](_0x2792c4=>{let _0x21fc0f=Promise['resolve']();_0x2792c4['hasComments']&&(_0x21fc0f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x11f792})),_0x21fc0f['then'](()=>{this['addSuggestionData'](_0x2792c4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x22ffbc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x11f792,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x22ffbc,'ready'),this['fire']('suggestionLoaded',_0x22ffbc);break;case'ready':this['fire']('suggestionChanged',_0x22ffbc);}return _0x22ffbc['addMarkerName'](_0x4bf601),_0x22ffbc;}['_refreshSuggestionsChain'](_0x55fd2d){const _0x578c24=Array['from'](_0x55fd2d),_0x3ba4cc=_0x578c24['filter'](_0x21442d=>'attribute'==_0x21442d['type']);this['_refreshAttributeSuggestionsChain'](_0x3ba4cc);const _0x24f420=_0x578c24['filter'](_0x48763b=>!_0x48763b['isMultiRange']&&'attribute'!=_0x48763b['type']),_0x2481f7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52f1ff=>!_0x52f1ff['isMultiRange']&&'attribute'!=_0x52f1ff['type']),_0x4f730f=_0x2481f7['filter'](_0x1f72a8=>!_0x55fd2d['has'](_0x1f72a8)),_0x510a7=new Map(_0x2481f7['map'](_0x597772=>[_0x597772,this['_suggestionFactory']['getSuggestionCallback'](_0x597772['type'],_0x597772['subType'],'chain')])),_0x2a719e=new Map(_0x2481f7['map'](_0x5d489e=>[_0x5d489e,_0x5d489e['getFirstRange']()])),_0x720ba5=new Set(),_0x1824d1=new Set();for(let _0x4f57d6=0x0;_0x4f57d6<_0x24f420['length'];_0x4f57d6++)_0x276650(_0x24f420[_0x4f57d6],_0x24f420,_0x4f57d6+0x1);for(let _0x25a9a1=0x0;_0x25a9a1<_0x24f420['length'];_0x25a9a1++)_0x276650(_0x24f420[_0x25a9a1],_0x4f730f,0x0);const _0x26d8c7=new Set();for(let _0x13bc8d=0x0;_0x13bc8d<_0x24f420['length'];_0x13bc8d++){const _0xb9ceb6=_0x24f420[_0x13bc8d];!_0x1824d1['has'](_0xb9ceb6)&&_0xb9ceb6['previous']&&(_0x26d8c7['add'](_0xb9ceb6['previous']),_0xb9ceb6['previous']['next']===_0xb9ceb6&&(_0xb9ceb6['previous']['next']=null),_0xb9ceb6['previous']=null),!_0x720ba5['has'](_0xb9ceb6)&&_0xb9ceb6['next']&&(_0x26d8c7['add'](_0xb9ceb6['next']),_0xb9ceb6['next']['previous']===_0xb9ceb6&&(_0xb9ceb6['next']['previous']=null),_0xb9ceb6['next']=null);}function _0x276650(_0x1173ad,_0x318849,_0x56eb88){for(let _0x53e603=_0x56eb88;_0x53e603<_0x318849['length'];_0x53e603++){const _0x19858c=_0x461ad8(_0x1173ad,_0x318849[_0x53e603]);_0x19858c&&(_0x19858c[0x0]['next']=_0x19858c[0x1],_0x19858c[0x1]['previous']=_0x19858c[0x0],_0x720ba5['add'](_0x19858c[0x0]),_0x1824d1['add'](_0x19858c[0x1]));}}function _0x461ad8(_0x143a63,_0x3ab16f){if(_0x143a63['author']['id']!==_0x3ab16f['author']['id'])return null;const _0x4dd1e9=_0x510a7['get'](_0x143a63)(_0x143a63,_0x3ab16f,_0x2a719e['get'](_0x143a63),_0x2a719e['get'](_0x3ab16f));if(!_0x4dd1e9)return null;return _0x510a7['get'](_0x3ab16f)(_0x143a63,_0x3ab16f,_0x2a719e['get'](_0x143a63),_0x2a719e['get'](_0x3ab16f))?_0x4dd1e9[0x1]['commentThread']&&_0x4dd1e9[0x1]['commentThread']['length']?null:_0x4dd1e9:null;}_0x26d8c7['size']&&this['_refreshSuggestionsChain'](_0x26d8c7);}['_refreshAttributeSuggestionsChain'](_0x315a9a){if(0x0==_0x315a9a['length'])return;const _0x4abdb1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xac0b10=>'attribute'==_0xac0b10['type']&&_0xac0b10['_isDataLoaded']),_0x498450=[],_0x3eade9=new Map();for(const _0x7e6c42 of _0x4abdb1){const _0x30eec6=_0x1c5c8a(_0x7e6c42['attributes']);_0x3eade9['has'](_0x30eec6)||(_0x3eade9['set'](_0x30eec6,_0x498450['length']),_0x498450['push']([]));const _0x427c0e=_0x3eade9['get'](_0x30eec6);_0x498450[_0x427c0e]['push'](_0x7e6c42);}!(function(){_0x498450['sort']((_0x3ac3e5,_0x48713f)=>{const _0x42cb0f=_0x3ac3e5[0x0]['createdAt'],_0x215a5f=_0x48713f[0x0]['createdAt'];return _0x42cb0f==_0x215a5f?_0x3ac3e5[0x0]['attributes']['groupId']<_0x48713f[0x0]['attributes']['groupId']?-0x1:0x1:_0x42cb0f<_0x215a5f?-0x1:0x1;});for(const _0x3bab27 of _0x498450)_0x3bab27['sort']((_0x2a859c,_0x5477e9)=>_0x2a859c['id']<_0x5477e9['id']?-0x1:0x1);}());for(let _0x360cf6=0x0;_0x360cf6<_0x498450['length'];_0x360cf6++){if(0x0==_0x498450[_0x360cf6]['length'])continue;const _0x339d42=[];for(let _0x4d35b0=_0x360cf6+0x1;_0x4d35b0<_0x498450['length'];_0x4d35b0++)0x0!=_0x498450[_0x4d35b0]['length']&&_0x35214a(_0x498450[_0x360cf6],_0x498450[_0x4d35b0])&&_0x339d42['push'](_0x4d35b0);for(const _0x34501d of _0x339d42)_0x498450[_0x360cf6]=_0x498450[_0x360cf6]['concat'](_0x498450[_0x34501d]),_0x498450[_0x34501d]=[];}for(const _0x22428f of _0x498450)for(let _0x5ba4cb=0x0;_0x5ba4cb<_0x22428f['length'];_0x5ba4cb++){const _0x1c9565=_0x22428f[_0x5ba4cb+0x1]||null;_0x22428f[_0x5ba4cb]['next']!==_0x1c9565&&(_0x22428f[_0x5ba4cb]['next']=_0x1c9565);}for(const _0x22aa47 of _0x498450)for(let _0x1c7062=0x0;_0x1c7062<_0x22aa47['length'];_0x1c7062++){const _0x1ae026=_0x22aa47[_0x1c7062-0x1]||null;_0x22aa47[_0x1c7062]['previous']!==_0x1ae026&&(_0x22aa47[_0x1c7062]['previous']=_0x1ae026);}function _0x35214a(_0x2dec7d,_0x31ea7a){if(_0x2dec7d[0x0]['attributes']['groupId']!==_0x31ea7a[0x0]['attributes']['groupId']&&_0x2dec7d[0x0]['author']!==_0x31ea7a[0x0]['author'])return!0x1;if(!function(_0xd2aac2,_0x24b141){if(!_0xd2aac2['hasComments']&&!_0x24b141['hasComments'])return!0x0;if(_0xd2aac2['hasComments']&&_0x24b141['hasComments'])return!0x1;if(_0xd2aac2['hasComments']&&_0x24b141['createdAt']<_0xd2aac2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x24b141['hasComments']&&_0xd2aac2['createdAt']<_0x24b141['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2dec7d[0x0],_0x31ea7a[0x0]))return!0x1;const _0x26095a=Pt(_0x2dec7d[0x0]['attributes'],['groupId','trackingSessionId']),_0x1b6df0=Pt(_0x31ea7a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x30af54(_0x26095a,_0x1b6df0))return!0x1;if(_0x2dec7d[0x0]['attributes']['groupId']==_0x31ea7a[0x0]['attributes']['groupId'])return!0x0;if(_0x2dec7d[0x0]['attributes']['trackingSessionId']!==_0x31ea7a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2dec7d['every'](_0x2718cd=>_0x31ea7a['some'](_0x53bd8a=>_0x2718cd['getFirstRange']()['isEqual'](_0x53bd8a['getFirstRange']())))&&_0x31ea7a['every'](_0xa0419c=>_0x2dec7d['some'](_0x3061ca=>_0xa0419c['getFirstRange']()['isEqual'](_0x3061ca['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x449eda){const _0x1b8d4a=Array['from'](_0x449eda),_0x2f77e7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x44767d=_0x2f77e7['filter'](_0x506e13=>!_0x449eda['has'](_0x506e13)),_0x21a6a1=new Map(_0x1b8d4a['map'](_0x2da635=>[_0x2da635,this['_suggestionFactory']['getSuggestionCallback'](_0x2da635['type'],_0x2da635['subType'],'join')])),_0x44ba97=new Map(_0x2f77e7['map'](_0x9049b7=>[_0x9049b7,_0x9049b7['getRanges']()]));for(let _0x20130c=0x0;_0x20130c<_0x1b8d4a['length'];_0x20130c++){if(_0x2f1fe5(this,_0x1b8d4a[_0x20130c],_0x1b8d4a,_0x20130c+0x1))return!0x0;}for(let _0x1972ca=0x0;_0x1972ca<_0x1b8d4a['length'];_0x1972ca++){if(_0x2f1fe5(this,_0x1b8d4a[_0x1972ca],_0x44767d,0x0))return!0x0;}return!0x1;function _0x2f1fe5(_0x49ae19,_0x8738da,_0x4a6bb7,_0xcf35d2){for(let _0x4cdace=_0xcf35d2;_0x4cdace<_0x4a6bb7['length'];_0x4cdace++){const _0x282b79=_0x4a6bb7[_0x4cdace];if(_0x282b79['type']!==_0x8738da['type']||_0x282b79['author']['id']!==_0x8738da['author']['id']||_0x282b79['subType']!==_0x8738da['subType'])continue;if(!en(_0x8738da,_0x282b79))continue;if('attribute'==_0x8738da['type']&&_0x8738da['data']['oldValue']!=_0x282b79['data']['oldValue'])continue;if('attribute'==_0x8738da['type']&&_0x49ae19['_isBlockAttribute'](_0x8738da['data']['key']))continue;if('formatBlock'==_0x8738da['type']){const _0x2bef2e=_0x49ae19['editor']['model'],_0x591907=_0x8738da['getContainedElement']();if(_0x591907&&(_0x2bef2e['schema']['isObject'](_0x591907)||_0x2bef2e['schema']['isLimit'](_0x591907)))continue;}const _0x257bcb=_0x21a6a1['get'](_0x8738da),_0x2ec60b=_0x44ba97['get'](_0x8738da),_0x3368b0=_0x44ba97['get'](_0x282b79),_0x1b506f=_0x8738da['commentThread']&&_0x8738da['commentThread']['length'],_0x1f98e8=_0x282b79['commentThread']&&_0x282b79['commentThread']['length'];if(!_0x1b506f&&_0x257bcb(_0x3368b0,_0x2ec60b))return _0x49ae19['_joinSuggestions'](_0x282b79,_0x8738da),_0x44ba97['delete'](_0x8738da),!0x0;if(!_0x1f98e8&&_0x257bcb(_0x2ec60b,_0x3368b0))return _0x49ae19['_joinSuggestions'](_0x8738da,_0x282b79),_0x44ba97['delete'](_0x282b79),!0x0;}return!0x1;}}['_joinSuggestions'](_0x30146b,_0x121f39){if(_0x30146b['isMultiRange']){for(const _0x5b3553 of _0x121f39['getRanges']())_0x30146b['addRange'](_0x5b3553);}else{const _0x5ae33d=_0x121f39['getFirstRange']()['end'];this['_setSuggestionRange'](_0x30146b,this['_model']['createRange'](_0x30146b['getFirstRange']()['start'],_0x5ae33d));}_0x121f39['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3f144a,_0x115387,_0x3e8d2e){const _0x2a3440=_0x3f144a['startsWith']('format')||_0x3f144a['startsWith']('attribute')?'FORMATTING':_0x3f144a['toUpperCase']();return o(this['editor']['locale'],_0x115387+'_'+_0x2a3440+'_SUGGESTION_ANNOUNCEMENT',_0x3e8d2e);}['_initAriaMarkerChangeAnnouncements'](){const _0x1e13fe=this['editor'];if(!_0x1e13fe['ui'])return;const {ariaLiveAnnouncer:_0x2b0834}=_0x1e13fe['ui'];_0x6f073a(this['_model'],({left:_0x4b1bc0,entered:_0x105b84})=>{for(const _0x425838 of _0x4b1bc0){const {group:_0x57c902,type:_0x3c6f40}=this['_splitMarkerName'](_0x425838['name']);if('suggestion'===_0x57c902){_0x2b0834['announce'](this['_getMarkerAnnouncementText'](_0x3c6f40,'LEAVE'));break;}}for(const _0x2eccd4 of _0x105b84){const {group:_0x131902,type:_0x2165f7}=this['_splitMarkerName'](_0x2eccd4['name']);if('suggestion'===_0x131902){_0x2b0834['announce'](this['_getMarkerAnnouncementText'](_0x2165f7,'ENTER',_0x4d50d7(_0x2146b9)));break;}}});}['_processAttributeChanges'](_0x4f7c4c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x41c0d1=this['editor'],_0x52d7a3=_0x41c0d1['model']['document']['differ']['getChanges']();if(0x0==_0x52d7a3['length'])return!0x1;const _0x5ac76b=[],_0x2f3e79=_0x52d7a3['filter'](_0x84447b=>'attribute'==_0x84447b['type']),_0x4b5c8d=_0x52d7a3['filter'](_0x3682f5=>'insert'==_0x3682f5['type']&&'$text'!=_0x3682f5['name']),_0x4e9743=_0x52d7a3['filter'](_0xf61a4=>'remove'==_0xf61a4['type']&&'$text'!=_0xf61a4['name']);for(const _0x38a266 of _0x2f3e79)_0x5ac76b['push']({'key':_0x38a266['attributeKey'],'newValue':_0x38a266['attributeNewValue'],'oldValue':_0x38a266['attributeOldValue'],'range':Zt(_0x38a266['range'],_0x41c0d1['model'])});for(const _0x2b5709 of _0x4b5c8d){const _0x5916b8=_0x4e9743['find'](_0x2eae3f=>_0x2eae3f['position']['isEqual'](_0x2b5709['position']));_0x5916b8&&_0x5ac76b['push']({'key':m,'newValue':_0x2b5709['name'],'oldValue':_0x5916b8['name'],'range':_0x41c0d1['model']['createRangeOn'](_0x2b5709['position']['nodeAfter'])});}return 0x0!=_0x5ac76b['length']&&this['_reduceExistingSuggestions'](_0x4f7c4c,_0x5ac76b);}['_processAttributeSuggestions'](_0x477e6a){let _0x28c763=!0x1;const _0x41cca4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x130d4b=>_0x130d4b['data']['newRange']&&_0x130d4b['name']['startsWith']('suggestion:attribute:'));for(const _0x328044 of _0x41cca4){const {subType:_0x3bae81,id:_0x4ac9eb}=this['_splitMarkerName'](_0x328044['name']),_0x128058=_0x3bae81['split']('|')[0x0];for(const _0xe46b68 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe46b68['id']!=_0x4ac9eb&&'attribute'==_0xe46b68['type']&&_0xe46b68['data']&&_0xe46b68['data']['key']==_0x128058&&_0xe46b68['getFirstRange']()['isIntersecting'](_0x328044['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe46b68,_0x328044['data']['newRange'],_0x477e6a),_0x28c763=!0x0);}return _0x28c763;}['recordAttributeChanges'](_0xd16f0d){this['_recordAttributeSuggestions']=!0x0,_0xd16f0d();}['_isRegisteredAttribute'](_0x942238){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x942238);}['_reduceExistingSuggestions'](_0x5d9ad5,_0x27b10b){if(0x0==_0x27b10b['length'])return!0x1;let _0x5d1ae6=!0x1;for(const _0x4cf576 of _0x27b10b){const _0x3d7f2a=this['_findSuggestions'](_0x4cf576['range'],'attribute')['filter'](_0x4bf339=>!_0x4bf339['meta']['isNextTo'])['map'](_0x5fb1ef=>_0x5fb1ef['suggestion']),_0x543145=_0x1c5c8a({'newValue':_0x4cf576['newValue']});_0x3d7f2a['filter'](_0x4106b3=>{const [_0x27e8bd,_0x540b48]=_0x4106b3['subType']['split']('|');return _0x27e8bd==_0x4cf576['key']&&_0x540b48!=_0x543145;})['forEach'](_0x1ed7a9=>{this['_reduceSuggestionAttributeRange'](_0x1ed7a9,_0x4cf576['range'],_0x5d9ad5),_0x5d1ae6=!0x0;});}return _0x5d1ae6;}['_reduceSuggestionAttributeRange'](_0x1c3cdc,_0x5acb54,_0x3b3c83){const _0x3c1f07=_0x1c3cdc['getFirstRange']()['getDifference'](_0x5acb54);0x0!==_0x3c1f07['length']?0x1!==_0x3c1f07['length']?this['_breakSuggestionMarker'](_0x1c3cdc,_0x5acb54['start'],_0x5acb54['end']):this['_setSuggestionRange'](_0x1c3cdc,_0x3c1f07[0x0]):_0x3b3c83['removeMarker'](_0x1c3cdc['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1bfb70){this['_editor']=_0x1bfb70,this['_model']=_0x1bfb70['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x49c626,_0x47c480,_0x4840e7,_0x15e8ed,_0x2b77a2,_0x392771,_0x48acf2){return new x(this['_model'],{'type':_0x49c626,'subType':_0x47c480,'id':_0x4840e7,'originalSuggestionId':_0x48acf2,'author':_0x15e8ed,'creator':_0x15e8ed,'attributes':_0x2b77a2,'onAttributesChange':_0x392771,'onAccept':(..._0x47a4a6)=>this['getSuggestionCallback'](_0x49c626,_0x47c480,'accept')(..._0x47a4a6),'onDiscard':(..._0x4f8373)=>this['getSuggestionCallback'](_0x49c626,_0x47c480,'discard')(..._0x4f8373)});}['registerCustomCallback'](_0x468d97,_0x479c54,_0x548829,_0x5f4d07){const _0x170872=_0x468d97+':'+_0x479c54+':'+_0x548829;this['_customCallbacks']['set'](_0x170872,_0x5f4d07);}['getSuggestionCallback'](_0x2221be,_0x3611c3,_0x27b248){const _0x359b50=_0x2221be+':'+_0x3611c3+':'+_0x27b248;return this['_customCallbacks']['get'](_0x359b50)||this['_defaultCallbacks']['get'](_0x2221be+':'+_0x27b248);}['_registerDefaultCallbacks'](){const _0x1c9702=()=>!0x1,_0x5dddc7=_0x564169=>{_0x564169['sort']((_0x5d9564,_0x33cc65)=>_0x5d9564['start']['isBefore'](_0x33cc65['start'])?0x1:-0x1),this['_model']['change'](_0x4306e5=>{for(const _0x2499b1 of _0x564169){let _0x3d7952;_0x3d7952=_0x2499b1['end']['isAtEnd']&&_0x2499b1['end']['parent']==_0x2499b1['start']['nodeAfter']?_0x4306e5['createSelection'](_0x2499b1['start']['nodeAfter'],'on'):_0x4306e5['createSelection'](_0x2499b1),this['_model']['deleteContent'](_0x3d7952,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4afdc6=(_0x4bccf6,_0x475867)=>{_0x475867&&this['_model']['change'](_0x4dd479=>{const {commandName:_0x367b22,commandParams:_0x18e0c8=[]}=_0x475867,_0x25e025=_0x4bccf6['map'](_0xf1dba0=>(Kt(_0xf1dba0)&&(_0xf1dba0=this['_model']['createRange'](_0xf1dba0['end'])),_0xf1dba0))['filter'](_0x40b784=>'$graveyard'!==_0x40b784['root']['rootName']);if(_0x25e025['length']<0x1)return;const _0x45e50e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x570cdb=>_0x468db3['fromRange'](_0x570cdb));_0x4dd479['setSelection'](_0x25e025);for(const _0x269951 of this['_editor']['commands']['commands']())_0x269951['refresh']();_0x18e0c8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x367b22,..._0x18e0c8);const _0xa9ac5c=_0x45e50e['filter'](_0x995a15=>'$graveyard'!=_0x995a15['root']['rootName']);_0xa9ac5c['length']>0x0&&_0x4dd479['setSelection'](_0xa9ac5c);for(const _0x4d574e of _0x45e50e)_0x4d574e['detach']();});},_0x17be40=(_0x47709b,_0xd24141)=>0x1==_0x47709b['length']&&0x1==_0xd24141['length']&&_0x47709b[0x0]['end']['isEqual'](_0xd24141[0x0]['start']),_0x3bbc6b=(_0x47b223,_0x4060cd,_0x1136a8,_0x58d127)=>nn(_0x47b223,_0x4060cd,_0x1136a8,_0x58d127)?[_0x47b223,_0x4060cd]:nn(_0x4060cd,_0x47b223,_0x58d127,_0x1136a8)?[_0x4060cd,_0x47b223]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1c9702),this['_defaultCallbacks']['set']('insertion:discard',_0x5dddc7),this['_defaultCallbacks']['set']('insertion:join',_0x17be40),this['_defaultCallbacks']['set']('insertion:chain',_0x3bbc6b),this['_defaultCallbacks']['set']('deletion:accept',_0x5dddc7),this['_defaultCallbacks']['set']('deletion:discard',_0x1c9702),this['_defaultCallbacks']['set']('deletion:join',_0x17be40),this['_defaultCallbacks']['set']('deletion:chain',_0x3bbc6b),this['_defaultCallbacks']['set']('formatInline:accept',_0x4afdc6),this['_defaultCallbacks']['set']('formatInline:discard',_0x1c9702),this['_defaultCallbacks']['set']('formatInline:join',_0x17be40),this['_defaultCallbacks']['set']('formatInline:chain',_0x1c9702),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4afdc6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1c9702),this['_defaultCallbacks']['set']('formatBlock:join',_0x17be40),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1c9702),this['_defaultCallbacks']['set']('attribute:accept',_0x1c9702),this['_defaultCallbacks']['set']('attribute:discard',(_0xeb1eb1,_0x4019ab)=>{if(!_0x4019ab)return;const _0x31d225=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x284959=>{if(_0x4019ab['key']==m)for(const _0x4e7071 of _0xeb1eb1){const _0x154c4a=_0x4e7071['start']['nodeAfter'],_0xca6e3f=_0x4019ab['oldValue'];_0x284959['rename'](_0x154c4a,_0xca6e3f);}else{if(_0x31d225['_isBlockAttribute'](_0x4019ab['key'])){for(const _0x38ef96 of _0xeb1eb1)void 0x0!==_0x4019ab['oldValue']?_0x284959['setAttribute'](_0x4019ab['key'],_0x4019ab['oldValue'],_0x38ef96['start']['nodeAfter']):_0x284959['removeAttribute'](_0x4019ab['key'],_0x38ef96['start']['nodeAfter']);}else{for(const _0x170e88 of _0xeb1eb1)_0x4019ab['oldValue']?_0x284959['setAttribute'](_0x4019ab['key'],_0x4019ab['oldValue'],_0x170e88):_0x284959['removeAttribute'](_0x4019ab['key'],_0x170e88);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x17be40);}}function zt(_0x4b0e9d,_0x5cc264,_0x449086){for(const _0x3f0962 of _0x5cc264['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3f0962['root']==_0x3f0962)return!0x1;if(!_0x449086['containsItem'](_0x3f0962))return!0x1;if(_0x4b0e9d['isObject'](_0x3f0962)||_0x4b0e9d['isLimit'](_0x3f0962))return!0x0;}return!0x1;}function Kt(_0x55959c){return _0x55959c['end']['parent']==_0x55959c['start']['nodeAfter']&&_0x55959c['end']['isAtStart'];}function Wt(_0x46ca21,_0x164f62,_0x3709ef,_0x3dcec6){const _0x52d766=_0x4b7473=>!_0x4b7473['item']['is']('$textProxy')&&!_0x3dcec6['isObject'](_0x4b7473['item']),_0x17c7e6=_0x46ca21['start']['getLastMatchingPosition'](_0x52d766),_0xb70ad3=_0x46ca21['end']['getLastMatchingPosition'](_0x52d766,{'direction':'backward'});return(!_0x46ca21['start']['isEqual'](_0x17c7e6)||!_0x46ca21['end']['isEqual'](_0xb70ad3))&&(_0x17c7e6['isBefore'](_0xb70ad3)?_0x3709ef['updateMarker'](_0x164f62,{'range':_0x3709ef['createRange'](_0x17c7e6,_0xb70ad3)}):_0x3709ef['removeMarker'](_0x164f62),!0x0);}function Ht(_0x34d4e6){return _0x1c5c8a(_0x34d4e6);}function Qt(_0x2de0e1){const _0x106cf4=_0x2de0e1['start']['nodeAfter'];return _0x106cf4&&_0x106cf4['is']('element');}function Xt(_0xa413d2){return Kt(_0xa413d2)||function(_0x3d7eeb){return _0x3d7eeb['start']['parent']==_0x3d7eeb['end']['nodeBefore']&&_0x3d7eeb['start']['isAtEnd'];}(_0xa413d2);}function Yt(_0x509754,_0x333fe3){try{const _0x269d63=_0x509754['getRange']();for(const _0x4c8ea2 of _0x333fe3)if(_0x509754!==_0x4c8ea2&&_0x269d63&&_0x269d63['isIntersecting'](_0x4c8ea2['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x537b9c,_0x1c9288){return null==_0x537b9c['end']['nodeBefore']&&_0x537b9c['end']['parent']==_0x537b9c['start']['nodeAfter']?tn(_0x537b9c['start']['nodeAfter'],_0x1c9288):_0x537b9c;}function tn(_0x3d5a97,_0xe236a0){const _0x455af8=_0xe236a0['schema']['isObject'](_0x3d5a97)||_0xe236a0['schema']['isSelectable'](_0x3d5a97);return _0xe236a0['createRange'](_0xe236a0['createPositionAt'](_0x3d5a97,'before'),_0x455af8?_0xe236a0['createPositionAfter'](_0x3d5a97):_0xe236a0['createPositionAt'](_0x3d5a97,'end'));}function nn(_0x1419e4,_0x4e7aef,_0x3f1903,_0x5f5d6d){return!!en(_0x1419e4,_0x4e7aef)&&_0x3f1903['end']['isEqual'](_0x5f5d6d['start']);}function en(_0x11178b,_0x118d19){if(!_0x11178b['_isDataLoaded']||!_0x118d19['_isDataLoaded'])return!0x1;const _0x29c05b=new Set(Object['keys'](_0x11178b['attributes'])),_0x5aca2f=new Set(Object['keys'](_0x118d19['attributes']));if(_0x29c05b['delete']('groupId'),_0x5aca2f['delete']('groupId'),0x0==_0x29c05b['size']&&0x0==_0x5aca2f['size'])return!0x0;if(_0x29c05b['size']!=_0x5aca2f['size'])return!0x1;const _0x72f8bc={..._0x11178b['attributes']},_0x56334f={..._0x118d19['attributes']};return delete _0x72f8bc['groupId'],delete _0x56334f['groupId'],JSON['stringify'](_0x72f8bc)==JSON['stringify'](_0x56334f);}function sn(_0x4ad218,_0x168768){const _0x265196=on(_0x4ad218['attributes']),_0x3b71a4=on(_0x168768);if(!_0x4ad218['_isDataLoaded'])return!0x1;for(const _0x494263 of Object['keys'](_0x3b71a4))if(!_0x30af54(_0x265196[_0x494263],_0x3b71a4[_0x494263]))return!0x1;return!0x0;}function on(_0x863fae){const _0x325301=Object['assign']({},_0x863fae);return delete _0x325301['skipNestingCheck'],delete _0x325301['tablePasteChainId'],_0x325301;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x5b7c3b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3fd581,_0x4661d0,_0x13cb06,_0x450881){super(),this['model']=_0x4661d0,this['view']=_0x13cb06,this['commentThreadController']=_0x450881,this['_editor']=_0x3fd581,this['_acceptCommand']=_0x3fd581['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3fd581['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4cb48e,_0x36907d)=>_0x4cb48e||_0x36907d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35f3aa=>_0x35f3aa&&this['_editor']['model']['canEditAt'](_0x4661d0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x432cb4=>_0x432cb4&&this['_editor']['model']['canEditAt'](_0x4661d0['getRanges']())),this['_pendingAction']=null,_0x13cb06['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x13cb06,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x13cb06,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x13cb06,'change:isDirty',()=>{_0x13cb06['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 _0x5d1b19=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5d1b19);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x18358c{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1e2ada,_0x262492,_0x5caf5e,_0x560966){super(_0x1e2ada),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1b65a6(_0x1e2ada,o(_0x1e2ada,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x262492['authoredAt']),this['bind']('authoredAt')['to'](_0x262492),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',_0x262492,'authoredAt',this,'descriptionParts',(_0x26a02e,_0x57139e,_0x253010)=>{const _0x5b1a12=_0x253010['map'](_0x3bbfcc=>ls(_0x3bbfcc['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x26a02e-0x1,_0x262492['author']['name'],_0x57139e?_0x560966['formatDateTime'](_0x57139e):'',new DOMParser()['parseFromString'](_0x5b1a12,'text/html')['body']['textContent']]);}),this['focusables']=new _0xb3ad92(),this['focusTracker']=new _0x24067a(),this['keystrokes']=new _0x30fe5a(),this['focusCycler']=new _0x5cd336({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1dafbd=>_0x1dafbd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x262492,this['_localUser']=_0x5caf5e,this['_config']=_0x560966,_0x560966['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x209082(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x313c0d}=this['_config'];this['commentsListView']=new _0x313c0d(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',_0x974145=>_0x974145+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3dc391,_0x119182)=>_0x3dc391||!!_0x119182);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c0e2b}=this['_config'],_0x31a459=new _0x2c0e2b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x56b47c=_0x31a459['commentInputView'];return _0x31a459['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x56b47c,'value',(_0x4818c5,_0x22e22b,_0x26c652)=>!!_0x26c652||_0x4818c5&&!_0x22e22b),_0x56b47c['on']('submit',(_0x234b7d,_0x59b7d7)=>{this['fire']('addComment',_0x59b7d7),_0x56b47c['editor']['setData']('');}),_0x56b47c['on']('cancel',()=>this['focus']()),_0x56b47c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x31a459;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x23d284,_0x3265e4,_0x394038,_0x355b9f){super(_0x23d284,_0x3265e4,_0x394038,_0x355b9f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x42ff41=>_0x42ff41&&_0x42ff41[0x0]?_0x42ff41[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4bb700,_0x57a2a7)=>{let _0x5f5086='';for(const _0x5c6b0c of _0x4bb700)_0x5f5086+='<p>'+ls(_0x5c6b0c['content'],_0x5c6b0c['color'])+'</p>';return _0x57a2a7?_0x5f5086:_0x308ad3(_0x5f5086,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x355b9f['SuggestionView'](_0x23d284,_0x3265e4,{'formatDateTime':_0x355b9f['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 _0x44c8ce=this['bindTemplate'],_0x3e6171=[this['suggestionView']];return this['commentsListView']&&_0x3e6171['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e6171['push'](this['commentThreadInputView']),_0x3e6171['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x44c8ce['if']('isActive','ck-suggestion-wrapper--active'),_0x44c8ce['to']('type',_0x5ae72c=>'ck-suggestion-'+_0x5ae72c),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':_0x44c8ce['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e6171};}['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 _0x18358c{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x277bab,_0x6b1ac0,_0x2c9eac){super(_0x277bab),this['_model']=_0x6b1ac0,this['_config']=_0x2c9eac,this['set']('description',''),this['bind']('authoredAt')['to'](_0x6b1ac0),this['acceptButton']=this['_createButton'](o(_0x277bab,'Accept\x20suggestion'),_0x93aebd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x277bab,'Discard\x20suggestion'),_0x128635,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4b908f(_0x277bab,_0x6b1ac0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xb3ad92([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x24067a(),this['keystrokes']=new _0x30fe5a(),this['focusCycler']=new _0x5cd336({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4d5e88=>_0x4d5e88['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x48fee9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x48fee9['innerHTML']=this['description'],this['on']('change:description',(_0x181886,_0xa57c36,_0x39680a)=>{_0x48fee9['innerHTML']=_0x39680a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x58be9d=this['bindTemplate'],_0x26addb=[{'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':_0x58be9d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x58be9d['to']('authoredAt',_0x29d21e=>this['_config']['formatDateTime'](_0x29d21e))}]}]},{'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']&&_0x26addb['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':_0x26addb}]};}['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'](_0x4464ba,_0x264012,_0x565620,_0x52d24e,_0x292c63){const _0x41834d=new _0x5516a9(this['locale']);return _0x41834d['set']({'label':_0x4464ba,'icon':_0x264012,'tooltip':!0x0,'tooltipPosition':_0x292c63}),_0x41834d['extendTemplate']({'attributes':{'class':_0x565620}}),_0x41834d['on']('execute',()=>{this['fire'](_0x52d24e,this['_model']['id']);}),_0x41834d;}['_setupKeyboardNavigation'](){const _0x30a647=this['element'];this['keystrokes']['listenTo'](_0x30a647);for(const _0x5dea9b of this['focusables'])this['focusTracker']['add'](_0x5dea9b['element']),this['keystrokes']['listenTo'](_0x5dea9b['element']);this['keystrokes']['set']('enter',(_0xf9b629,_0x349898)=>{_0x30a647===_0xf9b629['target']&&(this['focusCycler']['focusFirst'](),_0x349898());}),this['keystrokes']['set']('esc',(_0x1e862c,_0x1c14ca)=>{_0x30a647!==_0x1e862c['target']&&(this['focus'](),_0x1c14ca());});}}class u extends _0x147a49{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3370ef,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a1673){super(_0x3a1673),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5ea67e=this['editor']['config'];_0x5ea67e['define']('trackChanges.SuggestionThreadView',fe),_0x5ea67e['define']('trackChanges.SuggestionView',we),_0x5ea67e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5ea67e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xb2c715,_0x5514c7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x54dec6,_0x501c02]of this['_handleControllerBuffer']){const _0x14359e=this['_suggestionToController']['has'](_0x54dec6);_0x14359e||_0x501c02?_0x14359e&&_0x501c02&&this['_destroyController'](_0x54dec6):this['_initializeController'](_0x54dec6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xb2c715,_0x5514c7);}['init'](){const _0x34242a=this['editor'],_0x18007d=_0x34242a['plugins']['get']('TrackChangesEditing'),_0x105fea=_0x34242a['plugins']['get']('Annotations'),_0x4b06b1=_0x34242a['plugins']['get']('EditorAnnotations'),_0x154825=_0x34242a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4b06b1['addSourceCollector'](()=>{const _0x21c5ac=[];for(const [_0x407135,_0x4a437e]of Array['from'](this['_suggestionToController'])){const _0x1eddf6=_0x407135['getAllAdjacentSuggestions'](),_0x3e9356=[];for(const _0x2b4e46 of _0x1eddf6){if(!_0x2b4e46['isInContent'])continue;if(_0x2b4e46['isMultiRange']){_0x3e9356['push'](..._0x2b4e46['getRanges']());continue;}const _0x37d83f=_0x2b4e46['getFirstRange']();if(_0x3e9356['length']>0x0){const _0x36d57e=_0x3e9356[0x0]['getJoined'](_0x37d83f);if(_0x36d57e){_0x3e9356[0x0]=_0x36d57e;continue;}}_0x3e9356['push'](_0x37d83f);}_0x21c5ac['push']([_0x4a437e['view'],_0x3e9356]);}return _0x21c5ac;}),this['listenTo'](_0x18007d,'suggestionLoaded',(_0x40f71b,_0x27522c)=>{this['listenTo'](_0x27522c,'change:previous',(_0x5387cb,_0x5bbbe4,_0x44fd93,_0x4f3395)=>{_0x27522c['isInContent']&&(null==_0x44fd93?(this['_updateController'](_0x4f3395['head']),this['_handleSuggestionControllerDelayed'](_0x27522c,!0x1)):(this['_updateController'](_0x44fd93['head']),null==_0x4f3395&&this['_handleSuggestionControllerDelayed'](_0x27522c,!0x0)));}),null!==_0x27522c['previous']?this['_updateController'](_0x27522c['head']):this['_handleSuggestionControllerDelayed'](_0x27522c,!0x1);}),this['listenTo'](_0x18007d,'suggestionUnloaded',(_0x5de64c,_0x259179,_0x37b4a3)=>{this['stopListening'](_0x259179,'change:previous'),this['_handleControllerBuffer']['delete'](_0x259179),this['_suggestionToController']['has'](_0x259179)&&this['_destroyController'](_0x259179),_0x37b4a3&&this['_updateController'](_0x37b4a3['head']);}),this['listenTo'](_0x18007d,'suggestionChanged',(_0x46d312,_0x5ba724)=>{this['_updateController'](_0x5ba724);}),this['listenTo'](_0x105fea,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x154825,'addComment',(_0xe73c81,{threadId:_0x2be8fa,isFromAdapter:_0x563042})=>{if(_0x563042||!_0x18007d['hasSuggestion'](_0x2be8fa))return;const _0x321fd8=_0x18007d['getSuggestion'](_0x2be8fa);this['_suggestionToController']['get'](_0x321fd8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3996b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x453248;for(const _0x429f3c in _0x3996b2){const _0x1810ff=_0x429f3c,_0x2c2fc4=_0x3996b2[_0x1810ff];if('trackChangesLicenseKeyValid'==_0x2c2fc4||'trackChangesLicenseKeyInvalid'==_0x2c2fc4||'trackChangesLicenseKeyExpired'==_0x2c2fc4||'trackChangesLicenseKeyDomainLimit'==_0x2c2fc4||'trackChangesLicenseKeyNotAllowed'==_0x2c2fc4||'trackChangesLicenseKeyEvaluationLimit'==_0x2c2fc4||'trackChangesLicenseKeyTrialLimit'==_0x2c2fc4||'trackChangesLicenseKeyUsageLimit'==_0x2c2fc4){delete _0x3996b2[_0x1810ff],_0x453248=_0x2c2fc4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x453248&&_0x3996b2['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x453248&&_0x3996b2['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x453248&&_0x3996b2['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x453248&&_0x3996b2['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x453248&&_0x3996b2['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x453248&&_0x3996b2['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x453248&&_0x3996b2['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4d78ef){const _0xabbe16=this['_suggestionToController']['get'](_0x4d78ef);if(!_0xabbe16)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xabbe16['view'])||null;}['getSuggestionForAnnotation'](_0x33cc9d){const _0x537926=this['_viewToController']['get'](_0x33cc9d['innerView']);return _0x537926?_0x537926['model']:null;}['_refreshActiveMarkers'](){const _0x42a453=this['editor']['plugins']['get']('Annotations'),_0x4c2bf9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30a5d5=Array['from'](_0x42a453['activeAnnotations'],_0x4c5ebc=>_0x4c5ebc['innerView'])['filter'](_0x3fd33f=>this['_viewToController']['has'](_0x3fd33f)),_0x2e3cbe=[];for(const _0xb7cbe4 of _0x30a5d5){const _0x3ea738=this['_viewToController']['get'](_0xb7cbe4)['model']['getAllAdjacentSuggestions']();_0x2e3cbe['push'](..._0x3ea738['reduce']((_0x2e17ff,_0x70bd2)=>[..._0x2e17ff,..._0x70bd2['getMarkerNames']()],[]));}_0x4c2bf9['activeMarkers']=_0x2e3cbe;}['_addUIComponentsToFactory'](){const _0x1fe7cf=this['editor'],_0x7954d3=_0x1fe7cf['locale'],_0x5eeb37=o(_0x7954d3,'Track\x20changes'),_0x3305ee=new _0x291895([{'type':'switchbutton','model':new _0xbb7344({'withText':!0x0,'isToggleable':!0x0,'label':_0x5eeb37,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1fe7cf['plugins']['has']('TrackChangesPreview')&&_0x3305ee['addMany']([{'type':'separator'},{'type':'button','model':new _0xbb7344({'withText':!0x0,'label':o(_0x7954d3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x550951 of _0x3305ee)if(ke(_0x550951)){const _0x1e2414=_0x1fe7cf['commands']['get'](_0x550951['model']['commandName']);_0x550951['model']['bind']('isOn','isEnabled')['to'](_0x1e2414,'value','isEnabled');}_0x1fe7cf['ui']['componentFactory']['add']('trackChanges',_0x5dbac2=>this['_createToolbarButton'](_0x5dbac2,_0x3305ee,_0x5eeb37)),_0x1fe7cf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x54b978=>this['_createMenuBarMenu'](_0x54b978,_0x3305ee,_0x5eeb37));}['_createToolbarButton'](_0x19efe2,_0x1da73b,_0x274ccc){const _0x491188=_0x6a5f9e(_0x19efe2,_0x50ba97),_0x3427ed=this['editor']['commands']['get']('trackChanges');_0x491188['buttonView']['set']({'tooltip':_0x274ccc,'label':_0x274ccc,'icon':_0x3c57fa}),_0x491188['buttonView']['bind']('isOn')['to'](_0x3427ed,'value'),_0x491188['buttonView']['on']('execute',()=>{_0x3427ed['execute'](),this['editor']['editing']['view']['focus']();}),_0x73ef36(_0x491188,_0x1da73b,{'role':'menu'});const _0x54dff3=[];for(const _0x5291a5 of _0x1da73b)ke(_0x5291a5)&&_0x54dff3['push'](this['editor']['commands']['get'](_0x5291a5['model']['commandName']));const _0x1ebd10=_0x491188['buttonView'];return _0x1ebd10['actionView']['unbind']('isEnabled'),_0x1ebd10['arrowView']['unbind']('isEnabled'),_0x1ebd10['actionView']['bind']('isEnabled')['to'](_0x3427ed,'isEnabled'),_0x1ebd10['arrowView']['bind']('isEnabled')['toMany'](_0x54dff3,'isEnabled',(..._0x1f0307)=>_0x1f0307['some'](_0x312a47=>_0x312a47)),_0x491188['on']('execute',_0x3ed87c=>{this['editor']['execute'](_0x3ed87c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x491188;}['_createMenuBarMenu'](_0x56840c,_0x3d064,_0x5a3443){const _0x192bd6=new _0xdf8ce5(_0x56840c),_0x18078e=this['editor']['commands']['get']('trackChanges');_0x192bd6['buttonView']['set']({'label':_0x5a3443,'icon':_0x3c57fa});const _0x4a3bcc=new _0x4da092(_0x56840c);for(const _0x3a9166 of _0x3d064){if('separator'==_0x3a9166['type']){_0x4a3bcc['items']['add'](new _0x186f66(_0x56840c));continue;}const _0x428b47=new _0x2836cd(_0x56840c,_0x192bd6),_0x19abc5=new _0x499f4d(_0x56840c),_0x197426=_0x3a9166['model'];_0x19abc5['bind'](...Object['keys'](_0x197426))['to'](_0x197426),_0x19abc5['delegate']('execute')['to'](_0x192bd6),_0x19abc5['on']('execute',()=>{this['editor']['execute'](_0x197426['commandName']),this['editor']['editing']['view']['focus']();}),_0x428b47['children']['add'](_0x19abc5),_0x4a3bcc['items']['add'](_0x428b47);}return _0x192bd6['bind']('isEnabled')['to'](_0x18078e,'isEnabled'),_0x192bd6['panelView']['children']['add'](_0x4a3bcc),_0x192bd6;}['_initializeController'](_0x2a5bf6){const _0x48bcac=this['editor'],_0x1e41d6=_0x48bcac['config'],_0x1fa71a=_0x48bcac['plugins']['get']('Annotations'),_0x44d3ac=_0x48bcac['plugins']['get']('CommentsRepository'),_0x2dc4a4=_0x48bcac['plugins']['get']('EditorAnnotations'),_0x5303d1=_0x48bcac['plugins']['get'](_0x3370ef)['me'],_0x3445d0=_0x1e41d6['get']('trackChanges')['SuggestionThreadView'],_0x277ca8=_0x1e41d6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x39e478,CommentThreadInputView:_0x2ae3ce}=_0x48bcac['plugins']['get']('CommentsUI');let _0x26f32a,_0x5afa2d,_0x4f976b;this['_annotationViews']['has'](_0x2a5bf6['id'])?(_0x5afa2d=this['_annotationViews']['get'](_0x2a5bf6['id']),_0x26f32a=_0x5afa2d['mainView']):(_0x26f32a=new _0x3445d0(_0x48bcac['locale'],_0x2a5bf6,_0x5303d1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1e41d6['get']('comments.editorConfig'),'licenseKey':_0x1e41d6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1e41d6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e41d6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1e41d6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x39bb71(_0x1e41d6['get']('locale'),_0x48bcac['locale']),'CommentView':_0x1e41d6['get']('comments')['CommentView'],'CommentsListView':_0x39e478,'CommentThreadInputView':_0x2ae3ce,'SuggestionView':_0x277ca8}),_0x26f32a['suggestionView']['acceptButton']['on']('execute',()=>{_0x48bcac['editing']['view']['focus']();}),_0x26f32a['suggestionView']['discardButton']['on']('execute',()=>{_0x48bcac['editing']['view']['focus']();}),_0x5afa2d=_0x1fa71a['createAnnotationView'](this['editor']['locale'],_0x26f32a),_0x5afa2d['bind']('isDirty')['to'](_0x26f32a,'isDirty'),_0x5afa2d['bind']('length')['to'](_0x26f32a),_0x5afa2d['bind']('type')['to'](_0x26f32a,'type',_0xa7ca48=>'suggestion-'+_0xa7ca48),_0x26f32a['on']('escape',()=>{_0x4f976b['fire']('escape');}),this['_annotationViews']['set'](_0x2a5bf6['id'],_0x5afa2d));const _0x557891=_0x44d3ac['createCommentThreadController'](_0x2a5bf6['commentThread'],_0x26f32a),_0x104faa=new pe(_0x48bcac,_0x2a5bf6,_0x26f32a,_0x557891),_0x59ed50=_0x2a5bf6['getAllAdjacentSuggestions']()['filter'](_0x480169=>_0x480169['isInContent']);_0x26f32a['descriptionParts']=_0x48bcac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x59ed50),this['_suggestionToController']['set'](_0x2a5bf6,_0x104faa),this['_viewToController']['set'](_0x26f32a,_0x104faa);const _0x32d3eb=()=>{const _0x1f779e=[],_0x538b63=_0x2a5bf6['getAllAdjacentSuggestions']()['filter'](_0x5f2ad7=>_0x5f2ad7['isInContent']);for(const _0x37054c of _0x538b63)_0x1f779e['push'](..._0x37054c['getMarkers']());return _0x171825(_0x48bcac['editing'],_0x1f779e);};_0x4f976b=_0x1fa71a['createAnnotation']({'view':_0x5afa2d,'target':_0x32d3eb,'type':()=>'suggestion-'+_0x104faa['view']['type'],'isVisible':!!_0x32d3eb()}),_0x44d3ac['_bindAnnotationToEditors'](_0x26f32a,_0x4f976b),_0x1fa71a['add'](_0x4f976b),_0x2dc4a4['registerAnnotation'](_0x4f976b);}['_destroyController'](_0x397f45){const _0x1b1a48=this['editor']['plugins']['get']('CommentsRepository'),_0x3578f1=this['editor']['plugins']['get']('Annotations'),_0x5dd9a9=this['_suggestionToController']['get'](_0x397f45),_0x51b926=_0x5dd9a9['view'],_0x2b51ca=_0x3578f1['getByInnerView'](_0x51b926);_0x1b1a48['_unbindEditors'](_0x51b926),_0x2b51ca&&_0x3578f1['remove'](_0x2b51ca),this['_suggestionToController']['delete'](_0x397f45),this['_viewToController']['delete'](_0x51b926),_0x5dd9a9['destroy']();}['_updateController'](_0x5c188e){if(!_0x5c188e['isInContent']||!this['_suggestionToController']['has'](_0x5c188e))return;const _0x3556b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f07eb=this['_suggestionToController']['get'](_0x5c188e),_0x5d5417=_0x5c188e['getAllAdjacentSuggestions']();_0x4f07eb['view']['descriptionParts']=_0x3556b3['descriptionFactory']['getDescriptions'](_0x5d5417);}['destroy'](){for(const _0x5a9e7c of this['_suggestionToController']['keys']())this['_destroyController'](_0x5a9e7c);for(const _0x41c6fd of this['_annotationViews']['values']())_0x41c6fd['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5ce579){return'model'in _0x5ce579;}class Ne extends _0x147a49{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x10b556){this['editor']['plugins']['get'](d)['adapter']=_0x10b556;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4d10e9){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4d10e9);}['getSuggestions']({skipNotAttached:_0xa95c24=!0x1,toJSON:_0x39b41a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0xa95c24,'toJSON':_0x39b41a});}['getSuggestion'](_0x1d1019){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1d1019);}}const p=['Pagination'];class re extends _0x147a49{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x41b078=this['editor'];if(_0x41b078['config']['define']('trackChangesData.editorCreator',_0xb21af1=>{const _0x5debc0=_0x41b078['model']['document']['getRootNames']()['reduce']((_0x384313,_0x1d0147)=>(_0x384313[_0x1d0147]='',_0x384313),{});return _0x41b078['constructor']['create'](_0x5debc0,_0xb21af1);}),'function'!=typeof _0x41b078['config']['get']('trackChangesData')['editorCreator'])throw new _0x42e154('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x16b66d){return P(this['editor'],!0x0,_0x16b66d);}['getDataWithDiscardedSuggestions'](_0x5b4ce5){return P(this['editor'],!0x1,_0x5b4ce5);}}class Fe extends _0x147a49{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x356227){function _0x49cb8a(_0x1b08f4){return _0x1b08f4['map'](_0x2625c2=>String['fromCharCode'](_0x2625c2))['join']('');}super(_0x356227),this['result']='end',_0x356227[_0x49cb8a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49cb8a([0x76,0x69,0x65,0x77])][_0x49cb8a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49cb8a([0x61,0x75,0x74,0x6f]),_0x356227[_0x49cb8a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x49cb8a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49cb8a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x49cb8a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x49cb8a([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(_0x3d70ea){return void 0x0!==_0x3d70ea['getRootsAttributes'];}async function P(_0x1e910f,_0x3ff166,_0x240e37){const _0x15693b=_0x3f4499(_0x1e910f,p);_0x15693b['plugins']['push'](d,Fe),_0x15693b['rootsAttributes']=De(_0x1e910f)?_0x1e910f['getRootsAttributes']():void 0x0;const _0x45ba6e=document['createDocumentFragment'](),_0x55f908=_0x1e910f['config']['get']('trackChangesData')['editorCreator'],_0x58c2b1=await _0x55f908(_0x15693b,()=>function(_0x5f2f65){const _0x14b382=document['createElement']('div');return _0x5f2f65['appendChild'](_0x14b382),_0x14b382;}(_0x45ba6e));!function(_0x3a6c35,_0x2cd0d0){const _0xbb6e82=_0x3a6c35['model']['document']['getRootNames']()['reduce']((_0x2b5abe,_0x501bca)=>(_0x2b5abe[_0x501bca]=_0x3a6c35['data']['get']({'rootName':_0x501bca}),_0x2b5abe),{}),_0x2a10c2=_0x3a6c35['plugins']['get']('Users')['users']['map'](_0x2077d6=>({'id':_0x2077d6['id'],'name':_0x2077d6['name']})),_0x4e10c4=_0x3a6c35['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x357dd0=_0x3a6c35['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x22b6a2=_0x2cd0d0['plugins']['get']('Users'),_0x121664=_0x2cd0d0['plugins']['get']('TrackChangesEditing'),_0x49bec2=_0x2cd0d0['plugins']['get']('CommentsRepository');for(const _0xc39f78 of _0x49bec2['getCommentThreads']())_0xc39f78['remove']();for(const _0x26028f of _0x2a10c2)_0x22b6a2['getUser'](_0x26028f['id'])||_0x22b6a2['addUser'](_0x26028f);_0x22b6a2['me']||_0x22b6a2['useAnonymousUser']();for(const _0x1e7926 of _0x357dd0)_0x49bec2['addCommentThread'](_0x1e7926);for(const _0xb245b2 of _0x4e10c4)_0x121664['addSuggestionData'](_0xb245b2);_0x2cd0d0['data']['set'](_0xbb6e82);}(_0x1e910f,_0x58c2b1),_0x58c2b1['execute'](_0x3ff166?'acceptAllSuggestions':'discardAllSuggestions');const _0x478ca7=De(_0x58c2b1)?_0x58c2b1['getFullData'](_0x240e37):_0x58c2b1['data']['get'](_0x240e37);return await _0x58c2b1['destroy'](),_0x478ca7;}class Me extends _0x18358c{['options'];constructor(_0x4ba7ca,_0x3e77cb){super(_0x4ba7ca),this['options']=_0x3e77cb,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'](_0x15e07a,_0x3f8f1f){if(!this['element'])return;const _0x1a177f=[];for(const [_0x865ace,_0x5901eb]of _0x15e07a){const _0x4ac960=document['createElement']('div');_0x4ac960['setAttribute']('data-ck-root-name',_0x865ace),_0x4ac960['className']=_0x5901eb['classes']+'\x20ck-track-changes-preview__root-container',_0x4ac960['innerHTML']=_0x5901eb['content'],_0x1a177f['push'](_0x4ac960);}_0x3f8f1f(this['element'],_0x1a177f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x36cb6b{constructor(_0x530211){super(_0x530211),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4642a2=this['editor'],_0x4fc2b4=_0x4642a2['locale'],_0x2e32f2=_0x4642a2['plugins']['get']('Dialog');let _0x52d210;const _0x55eba0=function(_0x3b654d){const _0x45b163={};if('editables'in _0x3b654d['ui']['view']){for(const [_0x178b7b,_0x345106]of Object['entries'](_0x3b654d['ui']['view']['editables']))_0x45b163[_0x178b7b]=_0x345106['element'];}else _0x45b163[_0x3b654d['model']['document']['getRootNames']()[0x0]]=_0x3b654d['ui']['view']['editable']['element'];return _0x45b163;}(_0x4642a2),_0x534809=function(_0x5a1652){let _0x254f32=0x0;for(const _0x187b5e of Object['values'](_0x5a1652))_0x254f32=Math['max'](_0x254f32,_0x187b5e['getBoundingClientRect']()['width']);let _0x12811f=0x0;for(const _0x392dd8 of Object['values'](_0x5a1652))_0x12811f+=_0x392dd8['getBoundingClientRect']()['height'];const _0x15a505=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x7c3b=Math['min'](_0x12811f,_0x15a505);return{'width':_0x254f32,'height':_0x7c3b};}(_0x55eba0);_0x2e32f2['show']({'id':'finalContentPreview','title':o(_0x4fc2b4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4fc2b4,{'dialogRects':_0x534809}),'onHide':()=>{_0x52d210['detachFromDom']();},'onShow':()=>{_0x4642a2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3b1f9a=>{const _0x3123a9=this['_standarizeRootsData'](_0x3b1f9a,_0x4642a2,_0x55eba0);_0x2e32f2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3123a9,_0x4642a2['config']['get']('trackChanges.preview.renderFunction'));}),_0x52d210=new _0x6095a8(_0x4fc2b4,[_0x2e32f2['view']]),_0x52d210['attachToDom'](),_0x52d210['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4642a2['once']('destroy',()=>{_0x52d210['detachFromDom']();});const _0x253879=_0x2e32f2['view']['headerView']['class'];_0x2e32f2['view']['headerView']['class']=_0x253879?_0x253879+'\x20ck-reset_all':'ck-reset_all',_0x2e32f2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2e32f2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x428e5b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2b1c6b=_0x428e5b['previewMode'],_0x32d18a={};if('$labels'===_0x2b1c6b){for(const _0x34634b of _0x428e5b['getMergeFieldsIds']())_0x32d18a[_0x34634b]=_0x428e5b['getLabel'](_0x34634b)||_0x34634b;}else{const _0x14bded='$defaultValues'===_0x2b1c6b?_0x428e5b['getDefaultValues']():_0x428e5b['getDataSetValues'](_0x2b1c6b,!0x0);for(const _0x187679 of Object['entries'](_0x14bded)){const [_0x4e447c,_0x300082]=_0x187679;_0x32d18a[_0x4e447c]=null!==_0x300082?_0x300082:_0x428e5b['getLabel'](_0x4e447c)||_0x4e447c;}}return{'mergeFieldsData':_0x32d18a};}['_standarizeRootsData'](_0xa8fe8e,_0x132cd2,_0x2630f1){let _0x7b80d8;if('string'==typeof _0xa8fe8e){const _0xbe79f7=_0x132cd2['model']['document']['getRootNames']()[0x0];_0x7b80d8={[_0xbe79f7]:_0xa8fe8e};}else _0x7b80d8=_0xa8fe8e;const _0x2e1e4b=this['_fixMediaEmbeds'](_0x7b80d8,_0x132cd2),_0x381892=function(_0x193542,_0x1734bb){for(const [_0x1b150d,_0x4e237c]of _0x193542)_0x4e237c['classes']=_0x1734bb[_0x1b150d]['classList']['value']['replace']('ck-focused','');return _0x193542;}(this['_sortRoots'](_0x132cd2)['reduce']((_0x3f28b9,_0xd74cf7)=>(_0x3f28b9['push']([_0xd74cf7,{'content':_0x2e1e4b[_0xd74cf7],'classes':''}]),_0x3f28b9),[]),_0x2630f1);return _0x381892;}['_fixMediaEmbeds'](_0xd24aef,_0x13d260){if(!_0x13d260['plugins']['has']('MediaEmbedEditing'))return _0xd24aef;const _0x53ec32=_0x13d260['plugins']['get']('MediaEmbedEditing');for(const [_0x32e7f9,_0x1e34f0]of Object['entries'](_0xd24aef)){const _0x4b0d35=document['createElement']('div');_0x4b0d35['innerHTML']=_0x1e34f0,(_0x4b0d35['querySelectorAll']('figure.media')['forEach'](_0x5d514e=>{const _0x25e698=_0x5d514e['querySelector']('oembed');if(_0x25e698){const _0x35e8e1=_0x25e698['getAttribute']('url');if(_0x35e8e1){const _0x197070=_0x53ec32['registry']['getMediaViewElement'](new _0x3b300a(_0x13d260['editing']['view']['document']),_0x35e8e1,{'elementName':'','renderForEditingView':!0x0}),_0x5670dc=document['createElement']('div');_0x5670dc['classList']['add']('ck-media__wrapper'),_0x197070['render'](_0x5670dc,_0x13d260['editing']['view']['domConverter']),_0x25e698['replaceWith'](_0x5670dc);}}}),_0xd24aef[_0x32e7f9]=_0x4b0d35['innerHTML']);}return _0xd24aef;}['_sortRoots'](_0x54777f){if(!function(_0x1e9de5){return void 0x0!==_0x1e9de5['getRootsAttributes'];}(_0x54777f))return _0x54777f['model']['document']['getRootNames']();const _0xe7d4c5=[],_0x18eea1=new Map();for(const _0x48ead1 of _0x54777f['model']['document']['getRootNames']()){const _0x5372af=_0x54777f['editing']['view']['getDomRoot'](_0x48ead1)['getClientRects']()['item'](0x0);_0xe7d4c5['push'](_0x48ead1),_0x18eea1['set'](_0x48ead1,_0x5372af);}return _0xe7d4c5['sort']((_0x1a2a58,_0x4d9dd7)=>{const _0x2e6e43=_0x18eea1['get'](_0x1a2a58),_0x28de8d=_0x18eea1['get'](_0x4d9dd7);return _0x2e6e43['y']-_0x28de8d['y']||_0x2e6e43['x']-_0x28de8d['x'];}),_0xe7d4c5;}}class Ue extends _0x147a49{static get['requires'](){return[re,_0x453e65];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f85d4){super(_0x4f85d4),_0x4f85d4['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4f85d4['config']['define']('trackChanges.preview.renderFunction',(_0x4c871d,_0x5b0602)=>{for(const _0x55d896 of _0x5b0602)_0x4c871d['appendChild'](_0x55d896);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x189985,Plugin as _0x4942e1,PendingActions as _0x404716}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x16ebc5,ObservableMixin as _0x56428c,uid as _0x512e19,priorities as _0x2f03ee,insertToPriorityArray as _0x16e1e3,logWarning as _0x6e283a,getEnvKeystrokeText as _0x1f6e36,FocusTracker as _0x55f986,KeystrokeHandler as _0x452982,Collection as _0x2455fd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x8a9674,IconCancel as _0x5289ec,IconTrackChanges as _0x1fde3f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x45a464,View as _0x48f0dd,ViewCollection as _0x946761,FocusCycler as _0x38cca0,UIModel as _0x746fc5,createDropdown as _0x46abfb,SplitButtonView as _0x1341a2,addListToDropdown as _0x4e853f,MenuBarMenuView as _0x9a08bc,MenuBarMenuListView as _0x26bc00,ListSeparatorView as _0x4c5d96,MenuBarMenuListItemView as _0x33a1b1,MenuBarMenuListItemButtonView as _0x341474,BodyCollection as _0x44c0a0,Dialog as _0x2e2e8e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x91df2d,DocumentCompare as _0x3d631f,hashObject as _0x50d2ee,surroundingMarkersDetector as _0xf9c874,FOCUS_ANNOTATION_KEYSTROKE as _0x441f38,AriaDescriptionView as _0x33e922,setupThreadKeyboardNavigation as _0x3989fc,trimHtml as _0x46f0ef,UserView as _0x5a8190,LateFocusButtonView as _0x3311b2,getDateTimeFormatter as _0x425671,getAllMarkersDomElementsSorted as _0x5234aa,sanitizeEditorConfig as _0x276efb}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x39e7b6,ModelLiveRange as _0x5bf397,ModelLivePosition as _0x193721,ViewDowncastWriter as _0x4fc21c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x1b6cff,set as _0x49c1bc,isEqual as _0x5cdaa6,unset as _0x5b597e,omit as Pt}from'es-toolkit/compat';import{Delete as _0x5cc173,Input as _0x51147b}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x35d2b7}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x31755d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x189985{['_enabledCommands'];constructor(_0x4608cb,_0x4d63a9){super(_0x4608cb),this['_enabledCommands']=_0x4d63a9,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 _0x34c611 of this['editor']['commands']['commands']())_0x34c611['affectsData']&&!this['_enabledCommands']['has'](_0x34c611)&&_0x34c611['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5c9ac2 of this['editor']['commands']['commands']())_0x5c9ac2['affectsData']&&!this['_enabledCommands']['has'](_0x5c9ac2)&&_0x5c9ac2['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x189985{['_suggestions'];constructor(_0x177e37,_0x17129d){super(_0x177e37),this['_suggestions']=_0x17129d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x21fbce){const _0x45b175=this['_suggestions']['get'](_0x21fbce);if(!_0x45b175)throw new _0x16ebc5('track-changes-accept-suggestion-not-found',this);const _0x5eee40=_0x45b175['getRanges']();this['editor']['model']['canEditAt'](_0x5eee40)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x45b175);}}class D extends _0x189985{['_suggestions'];constructor(_0x1d6ce1,_0x1c71d4){super(_0x1d6ce1),this['_suggestions']=_0x1c71d4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd4dbbc){const _0x66f94c=this['_suggestions']['get'](_0xd4dbbc);if(!_0x66f94c)throw new _0x16ebc5('track-changes-discard-suggestion-not-found',this);const _0x4a6334=_0x66f94c['getRanges']();this['editor']['model']['canEditAt'](_0x4a6334)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x66f94c);}}function ls(_0x467b05,_0x10ebbf){let _0x1b4ac5='';return _0x1b4ac5+=_0x467b05['split']('*')['map']((_0x2d6012,_0x1bd7ed)=>_0x1bd7ed%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x2d6012)+'</span>':rn(_0x2d6012))['join'](''),_0x10ebbf&&(_0x1b4ac5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x10ebbf['value']+'\x22\x20title=\x22'+_0x10ebbf['title']+'\x22></span>'),_0x1b4ac5;}function rn(_0x4b4a77){const _0x95ab90=document['createElement']('span');return _0x95ab90['innerText']=_0x4b4a77,_0x95ab90['innerHTML'];}function ts(_0x3ff2c5){return _0x3ff2c5['sort']((_0x5a892b,_0x12cfa6)=>'attribute'===_0x5a892b['type']&&'attribute'!==_0x12cfa6['type']?-0x1:'attribute'!==_0x5a892b['type']&&'attribute'===_0x12cfa6['type']?0x1:'deletion'==_0x5a892b['type']&&'deletion'!=_0x12cfa6['type']?-0x1:'deletion'!=_0x5a892b['type']&&'deletion'==_0x12cfa6['type']?0x1:0x0);}function to(_0x4c437c,_0x5be456){let _0x256155,_0x54c977=0x0;const _0x20f8c6=[],_0x2bef51=_0x5be456['schema'];for(;_0x54c977<_0x4c437c['length'];){const _0x20cdb5=_0x4c437c[_0x54c977],_0x2ea872=_0x4c437c[_0x54c977+0x1];_0x256155||(_0x256155=_0x5be456['createPositionBefore'](_0x20cdb5)),cn(_0x5be456,_0x20cdb5,_0x2ea872)||(_0x20f8c6['push'](_0x5be456['createRange'](_0x256155,_0x2bef51['isObject'](_0x20cdb5)?_0x5be456['createPositionAfter'](_0x20cdb5):_0x5be456['createPositionAt'](_0x20cdb5,'end'))),_0x256155=null),_0x54c977++;}return _0x20f8c6;}function cn(_0x1674f0,_0x316baa,_0x4ca8d8){if(!_0x4ca8d8)return!0x1;const _0x5e61c7=_0x1674f0['createPositionAfter'](_0x316baa),_0x533b86=_0x1674f0['createPositionBefore'](_0x4ca8d8);return _0x5e61c7['isTouching'](_0x533b86);}function rs(_0x21653d,_0x38bcb1,_0x2a9a6e){for(;_0x2a9a6e['length'];){const _0x3f332f=_0x2a9a6e['splice'](0x0,0x64);_0x21653d['change'](()=>{for(const _0xb5d62e of _0x3f332f)_0xb5d62e['isInContent']&&_0x38bcb1['execute'](_0xb5d62e['id']);});}}class B extends _0x189985{['_command'];['_suggestions'];constructor(_0x54afed,_0x271c72,_0x4d07a6){super(_0x54afed),this['_command']=_0x271c72,this['_suggestions']=_0x4d07a6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x24afb2=Array['from'](this['_suggestions']['values']())['some'](_0x51903b=>_0x51903b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x24afb2;}['execute'](){const _0x30c00a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x36b346 of _0x30c00a){const _0x2513e9=_0x36b346['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2513e9))return;}rs(this['editor']['model'],this['_command'],_0x30c00a);}}class O extends _0x189985{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5ddc64,_0x2a98dc,_0x428792){super(_0x5ddc64),this['_command']=_0x2a98dc,this['_suggestions']=_0x428792,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x71bd25=this['editor']['model']['document']['selection'],_0x193565=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x31507b,_0x4b3f21){const _0x3abdaa=Array['from'](_0x31507b['getRanges']()),_0x17df94=new Set();for(const _0x3b541d of _0x4b3f21)if(_0x3b541d['isInContent']){for(const _0x1220c2 of _0x3abdaa)for(const _0x430982 of _0x3b541d['getRanges']())(_0x1220c2['isIntersecting'](_0x430982)||_0x31507b['isCollapsed']&&!_0x3b541d['isMultiRange']&&_0x3b541d['next']&&_0x430982['end']['isTouching'](_0x1220c2['start']))&&_0x17df94['add'](_0x3b541d);}return _0x17df94;}(_0x71bd25,_0x193565),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x179d5c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x25fda5 of _0x179d5c){const _0x3f92f0=_0x25fda5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3f92f0))return;}rs(this['editor']['model'],this['_command'],_0x179d5c);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x56428c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4535dc,_0x5c9659){super(),this['id']=_0x5c9659['id'],this['type']=_0x5c9659['type'],this['subType']=_0x5c9659['subType']||null,this['author']=_0x5c9659['author'],this['creator']=_0x5c9659['creator']||_0x5c9659['author'],this['isExternal']=Boolean(_0x5c9659['attributes']&&_0x5c9659['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5c9659['originalSuggestionId']||null,this['_model']=_0x4535dc,this['_onAccept']=_0x5c9659['onAccept'],this['_onDiscard']=_0x5c9659['onDiscard'],this['_onAttributesChange']=_0x5c9659['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5c9659['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 _0x441591=this;for(;_0x441591['previous'];)_0x441591=_0x441591['previous'];return _0x441591;}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'](_0x311759){this['_markerNames']['add'](_0x311759);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3f3891=>this['_model']['markers']['get'](_0x3f3891))['filter'](_0x1fa849=>_0x1fa849);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x35be2e=>{for(const _0x49bb75 of this['getMarkers']())_0x35be2e['removeMarker'](_0x49bb75);}),this['_markerNames']['clear']();}['removeMarker'](_0x49cece){this['_model']['change'](_0x19cd28=>{_0x19cd28['removeMarker'](_0x49cece);}),this['_markerNames']['delete'](_0x49cece);}['addRange'](_0x1c223c){const _0x37ab16='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x37ab16),this['_model']['change'](_0x550b89=>{_0x550b89['addMarker'](_0x37ab16,{'range':_0x1c223c,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x154bf2){for(const _0x36bba9 of this['getRanges']())if(_0x36bba9['isIntersecting'](_0x154bf2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x104d96=>_0x104d96['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x29483b,_0x33a2a0)=>[..._0x29483b,..._0x33a2a0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x433f7b=this['getRanges']();if(0x1!=_0x433f7b['length'])return null;const _0xe666ed=_0x433f7b[0x0],_0x1d2e0a=_0xe666ed['start']['nodeAfter'],_0x4814fb=_0xe666ed['end']['nodeBefore'];return _0x1d2e0a instanceof _0x39e7b6?_0x1d2e0a!=_0x4814fb?null:_0x1d2e0a: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 _0x1cbc9b=[];let _0x376971=this['head'];for(;_0x376971;)_0x1cbc9b['push'](_0x376971),_0x376971=_0x376971['next'];return _0x1cbc9b;}['setAttribute'](_0x450353,_0x2a58f2){const _0x385fde=_0x1b6cff(this['attributes']);_0x49c1bc(_0x385fde,_0x450353,_0x2a58f2),_0x5cdaa6(_0x385fde,this['attributes'])||(this['attributes']=_0x385fde,this['_onAttributesChange'](_0x385fde));}['removeAttribute'](_0xcdf0e1){const _0x3b1438=_0x1b6cff(this['attributes']);_0x5b597e(_0x3b1438,_0xcdf0e1),_0x5cdaa6(_0x3b1438,this['attributes'])||(this['attributes']=_0x3b1438,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 _0x512e19()['substr'](0x1,0x5);}}function o(_0x3ba5c3,_0x112050,_0x266aac){const _0x35e1eb=_0x3ba5c3['t'],t=_0x3ba5c3['t'];switch(_0x112050){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',_0x266aac);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x266aac);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x266aac);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x266aac);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x266aac);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',_0x266aac);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x266aac);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',_0x266aac);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x266aac);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x266aac);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x266aac);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x266aac);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x266aac);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x266aac);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x266aac);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x266aac);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x266aac);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x266aac);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x266aac);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x266aac);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x266aac);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x266aac);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x266aac);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x266aac);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x266aac);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'},_0x266aac);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x266aac);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x266aac);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x266aac);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x266aac);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x266aac);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x266aac);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x266aac);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'},_0x266aac);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x266aac);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x266aac);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x266aac);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x266aac);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x266aac);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x266aac);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'},_0x266aac);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_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'},_0x266aac);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x266aac);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'},_0x266aac);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x266aac);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'},_0x266aac);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x266aac);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x266aac);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x266aac);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x266aac);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x266aac);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'},_0x266aac);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x266aac);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 _0x35e1eb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x266aac);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x35e1eb({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x266aac);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x266aac);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'},_0x266aac);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'},_0x266aac);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'},_0x266aac);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x112050;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x69782f,_0x290c72){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x69782f,this['_locale']=_0x290c72;}['getDescriptions'](_0x24a20c){const _0x198b23=[],_0x196d96=new Set(),_0x18c8c5=new Set();for(let _0x1f3726=0x0;_0x1f3726<_0x24a20c['length'];_0x1f3726++){const _0x119a63=_0x24a20c[_0x1f3726];if(!_0x119a63['isInContent'])continue;const _0x3b70a9=this['_handleCustomCallbackDescription'](_0x119a63);if(_0x3b70a9){if(null!=_0x119a63['subType']){if(_0x196d96['has'](_0x119a63['subType']))continue;_0x196d96['add'](_0x119a63['subType']);}_0x198b23['push'](_0x3b70a9);}else{if('attribute'==_0x119a63['type']){const _0x127cc8=_0x119a63['data']['key'];if(_0x18c8c5['has'](_0x127cc8))continue;_0x18c8c5['add'](_0x119a63['data']['key']),_0x127cc8==m?this['_handleRenameSuggestionDescription'](_0x198b23,_0x119a63):this['_handleAttributeSuggestionDescription'](_0x198b23,_0x119a63);continue;}'insertion'!=_0x119a63['type']&&'deletion'!=_0x119a63['type']||this['_handleInsertRemoveSuggestionDescription'](_0x198b23,_0x119a63,_0x24a20c[_0x1f3726+0x1]);}}return this['_resolveDescriptionItems'](_0x198b23);}['registerDescriptionCallback'](_0x5a3de5){this['_customCallbacks']['push'](_0x5a3de5);}['registerElementLabel'](_0xb61006,_0x24712a,_0xf172b5=_0x2f03ee['normal']){'function'==typeof _0xb61006?_0x16e1e3(this['_itemLabelsCallbacks'],{'matchingCallback':_0xb61006,'label':_0x24712a,'priority':_0xf172b5}):this['_itemLabels']['set'](_0xb61006,_0x24712a);}['registerAttributeLabel'](_0x39caa7,_0x4d2844){this['_attributeLabels']['set'](_0x39caa7,_0x4d2844);}['getItemLabel'](_0x464109,_0x2c3d69=0x1){let _0x200566;for(const _0x1ff629 of this['_itemLabelsCallbacks'])if(_0x1ff629['matchingCallback'](_0x464109)){_0x200566=_0x1ff629['label'];break;}return _0x200566||(_0x200566=this['_itemLabels']['get'](_0x464109['name'])),_0x200566?_0x200566(_0x2c3d69):0x1!==_0x2c3d69?_0x2c3d69+'\x20'+_0x464109['name']+'s':''+_0x464109['name'];}['_addDescriptionItems'](_0x2e3b08,_0x37d892){const _0x50feb3=_0x37d892['getFirstRange']()['getWalker'](),_0x59d814='insertion'==_0x37d892['type']?'add':'remove';for(const _0x398beb of _0x50feb3){const _0x30f712=_0x398beb['item'],_0x377aac=_0x2e3b08[_0x2e3b08['length']-0x1];if(_0x30f712['is']('$textProxy'))_0x377aac&&_0x377aac['type']['indexOf']('Container')>-0x1&&_0x2e3b08['pop'](),_0x377aac&&'text'==_0x377aac['type']?_0x377aac[_0x59d814]+=_0x30f712['data']:_0x2e3b08['push']({'type':'text','add':'add'==_0x59d814?_0x30f712['data']:'','remove':'remove'==_0x59d814?_0x30f712['data']:''});else{if(this['_schema']['isObject'](_0x30f712)){const _0x10dade=_0x30f712;if(_0x377aac&&_0x377aac['type']['indexOf']('Container')>-0x1&&_0x2e3b08['pop'](),'elementEnd'==_0x398beb['type'])continue;_0x377aac&&_0x377aac['type']==_0x59d814+'Object'&&_0x377aac['element']['name']==_0x10dade['name']?_0x377aac['quantity']++:_0x2e3b08['push']({'type':_0x59d814+'Object','element':_0x10dade,'quantity':0x1}),_0x50feb3['skip'](_0x42d8ad=>!('elementEnd'==_0x42d8ad['type']&&_0x42d8ad['item']==_0x30f712));}else{if(this['_schema']['checkChild'](_0x30f712,'$text')||_0x30f712['is']('element','softBreak')){const _0x2012a8=_0x30f712;if('add'==_0x59d814&&'elementStart'==_0x398beb['type']||'remove'==_0x59d814&&'elementEnd'==_0x398beb['type'])continue;if(_0x377aac&&-0x1==_0x377aac['type']['indexOf']('Container')){'text'==_0x377aac['type']&&(_0x377aac[_0x59d814]+='\x0a');continue;}let _0x5a48f5;if(_0x5a48f5='add'==_0x59d814?_0x2012a8['nextSibling']&&!this['_schema']['isObject'](_0x2012a8['nextSibling'])?_0x2012a8['nextSibling']:null:_0x2012a8['previousSibling']&&!this['_schema']['isObject'](_0x2012a8['previousSibling'])?_0x2012a8['previousSibling']:null,_0x2012a8['isEmpty']||_0x5a48f5&&_0x5a48f5['isEmpty']){const _0x4a0bee=_0x5a48f5&&_0x5a48f5['isEmpty']?_0x5a48f5:_0x2012a8;_0x377aac&&_0x377aac['type']==_0x59d814+'EmptyContainer'&&_0x377aac['element']['name']==_0x4a0bee['name']?_0x377aac['quantity']++:_0x2e3b08['push']({'type':_0x59d814+'EmptyContainer','element':_0x4a0bee,'quantity':0x1});}else _0x2e3b08['push']({'type':_0x59d814+'Container','element':_0x2012a8});}}}}}['_resolveDescriptionItems'](_0x340a82){const _0x33b353=this['_locale'],_0x49055e=[],_0x21bc07=[],_0x116769=[];for(const _0x49544f of _0x340a82)switch(_0x49544f['type']){case'text':if(_0x49544f['add']=_0x49544f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x49544f['remove']=_0x49544f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x49544f['add']&&''!=_0x49544f['remove']){_0x49055e['push']({'type':'replace','content':o(_0x33b353,'REPLACE_TEXT',['\x22'+_0x49544f['remove']+'\x22','\x22'+_0x49544f['add']+'\x22'])});continue;}if(null!=_0x49544f['add']['match'](/^ +$/)){_0x49055e['push']({'type':'insertion','content':o(_0x33b353,'*Insert:*\x20%0',o(_0x33b353,'ELEMENT_SPACE',_0x49544f['add']['length']))});continue;}if(null!=_0x49544f['remove']['match'](/^ +$/)){_0x49055e['push']({'type':'deletion','content':o(_0x33b353,'*Remove:*\x20%0',o(_0x33b353,'ELEMENT_SPACE',_0x49544f['remove']['length']))});continue;}if(''!=_0x49544f['add']){_0x49055e['push']({'type':'insertion','content':o(_0x33b353,'*Insert:*\x20%0','\x22'+_0x49544f['add']+'\x22')});continue;}_0x49055e['push']({'type':'deletion','content':o(_0x33b353,'*Remove:*\x20%0','\x22'+_0x49544f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x49055e['push']({'type':'insertion','content':o(_0x33b353,'*Insert:*\x20%0',this['getItemLabel'](_0x49544f['element'],_0x49544f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x49055e['push']({'type':'deletion','content':o(_0x33b353,'*Remove:*\x20%0',this['getItemLabel'](_0x49544f['element'],_0x49544f['quantity']))});continue;case'addContainer':_0x49055e['push']({'type':'insertion','content':o(_0x33b353,'*Split:*\x20%0',this['getItemLabel'](_0x49544f['element'],_0x49544f['quantity']))});continue;case'removeContainer':_0x49055e['push']({'type':'deletion','content':o(_0x33b353,'*Merge:*\x20%0',this['getItemLabel'](_0x49544f['element'],_0x49544f['quantity']))});continue;case'addFormat':_0x21bc07['push'](_0x49544f['key']);continue;case'removeFormat':_0x116769['push'](_0x49544f['key']);continue;default:_0x49055e['push'](_0x49544f);}if(_0x21bc07['length']){const _0x2fba58=_0x21bc07['map'](_0xaa088a=>this['_attributeLabels']['has'](_0xaa088a)?this['_attributeLabels']['get'](_0xaa088a):_0xaa088a)['join'](',\x20');_0x49055e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2fba58)});}if(_0x116769['length']){const _0x1e6a7b=_0x116769['map'](_0x3d24df=>this['_attributeLabels']['has'](_0x3d24df)?this['_attributeLabels']['get'](_0x3d24df):_0x3d24df)['join'](',\x20');_0x49055e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1e6a7b)});}return _0x49055e;}['_handleCustomCallbackDescription'](_0x178bbf){for(const _0x406d1a of this['_customCallbacks']){const _0x30c816=_0x406d1a(_0x178bbf);if(_0x30c816&&'type'in _0x30c816)return _0x30c816;}}['_handleAttributeSuggestionDescription'](_0x40628d,_0x4f68c6){const _0x2a1be8=_0x4f68c6['data'],_0x455f9e=void 0x0===_0x2a1be8['newValue']?'removeFormat':'addFormat';_0x40628d['push']({'type':_0x455f9e,'key':_0x2a1be8['key']});}['_handleRenameSuggestionDescription'](_0x2106f6,_0x57232d){_0x2106f6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x57232d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x163521,_0x38d389,_0x40b01f){if(this['_addDescriptionItems'](_0x163521,_0x38d389),_0x40b01f&&_0x40b01f['getFirstRange']()&&!_0x38d389['getFirstRange']()['end']['isEqual'](_0x40b01f['getFirstRange']()['start'])){const _0x1d1566=_0x163521[_0x163521['length']-0x1],_0x448151='insertion'==_0x38d389['type']?'add':'remove';_0x1d1566&&'text'==_0x1d1566['type']&&(_0x1d1566[_0x448151]+='\x0a');}}}class R extends _0x4942e1{['afterInit'](){const _0x49a7d4=this['editor'],_0x7a3b78=_0x49a7d4['plugins']['get']('TrackChangesEditing');_0x49a7d4['commands']['get']('showAIAssistant')&&_0x7a3b78['enableCommand']('showAIAssistant');}}class T extends _0x4942e1{['afterInit'](){const _0x40c250=this['editor'],_0x114789=_0x40c250['plugins']['get']('TrackChangesEditing');_0x40c250['commands']['get']('toggleAi')&&_0x114789['enableCommand']('toggleAi');}}class E extends _0x4942e1{['afterInit'](){const _0xa3eb28=this['editor'],_0x4b3d55=_0xa3eb28['plugins']['get']('TrackChangesEditing');_0xa3eb28['commands']['get']('aiQuickAction')&&_0x4b3d55['enableCommand']('aiQuickAction');}}class U extends _0x4942e1{['afterInit'](){const _0x31b952=this['editor'],_0x5d201b=_0x31b952['locale'];if(!_0x31b952['plugins']['has']('AlignmentEditing'))return;const _0x43efe9=_0x31b952['plugins']['get']('TrackChangesEditing');_0x43efe9['enableDefaultAttributesIntegration']('alignment'),_0x43efe9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5d201b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5112f8=this['editor'],_0xa5b901=_0x5112f8['locale'];_0x5112f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5409f8=>{if('formatBlock'!=_0x5409f8['type'])return;const {data:_0x475ee8}=_0x5409f8;if(_0x475ee8&&'alignment'==_0x475ee8['commandName']){const _0x3cb95c=_0x475ee8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xa5b901,'*Format:*\x20%0',function(_0x1c4eb1){switch(_0x1c4eb1){case'left':return o(_0xa5b901,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xa5b901,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xa5b901,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xa5b901,'FORMAT_JUSTIFY_TEXT');}}(_0x3cb95c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x4942e1{['afterInit'](){const _0x267188=this['editor'],_0x5e0afd=_0x267188['plugins']['get']('TrackChangesEditing'),_0x2880aa=_0x267188['locale'];for(const _0x2fe3b4 of ti){if(!_0x267188['plugins']['has'](_0x2fe3b4))continue;const _0x5c9aa3=_0x2fe3b4['slice'](0x0,-0x7)['toLowerCase'](),_0x3a94d6='FORMAT_'+_0x5c9aa3['toUpperCase']();_0x5e0afd['enableDefaultAttributesIntegration'](_0x5c9aa3),_0x5e0afd['descriptionFactory']['registerAttributeLabel'](_0x5c9aa3,o(_0x2880aa,_0x3a94d6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca437=this['editor'],_0x529984=_0x2ca437['locale'],_0x4cb283=_0x2ca437['plugins']['get']('TrackChangesEditing');function _0x39ecb9(_0x45372d,_0x41324e){_0x4cb283['descriptionFactory']['registerDescriptionCallback'](_0x54007d=>{if('formatInline'!=_0x54007d['type'])return;const {data:_0x2c3db0}=_0x54007d;return _0x2c3db0&&_0x2c3db0['commandName']===_0x45372d?_0x2c3db0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x529984,'*Format:*\x20%0',_0x41324e)}:{'type':'format','content':o(_0x529984,'*Remove\x20format:*\x20%0',_0x41324e)}:void 0x0;});}_0x39ecb9('bold',o(_0x529984,'FORMAT_BOLD')),_0x39ecb9('italic',o(_0x529984,'FORMAT_ITALIC')),_0x39ecb9('underline',o(_0x529984,'FORMAT_UNDERLINE')),_0x39ecb9('code',o(_0x529984,'FORMAT_CODE')),_0x39ecb9('strikethrough',o(_0x529984,'FORMAT_STRIKETHROUGH')),_0x39ecb9('subscript',o(_0x529984,'FORMAT_SUBSCRIPT')),_0x39ecb9('superscript',o(_0x529984,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4942e1{['afterInit'](){const _0x5ae4bc=this['editor'],_0x1692a3=_0x5ae4bc['locale'];if(!_0x5ae4bc['plugins']['has']('BlockQuoteEditing'))return;const _0x40b3b5=_0x5ae4bc['plugins']['get']('TrackChangesEditing'),_0x50742e=this['editor']['commands']['get']('blockQuote');_0x40b3b5['enableCommand']('blockQuote',(_0x37252c,_0x1fa71f={})=>{const _0x345ddd=this['editor']['model']['document']['selection'],_0x2b6d12=_0x1fa71f&&void 0x0!==_0x1fa71f['forceValue']?_0x1fa71f['forceValue']:!_0x50742e['value'];let _0x381eb5=[];if(_0x2b6d12){const _0x4d94ef=Array['from'](_0x345ddd['getSelectedBlocks']())['filter'](_0x5d3bcd=>oo(_0x5d3bcd)||function(_0x346676,_0x10fd5d){const _0x1f69e9=_0x10fd5d['checkChild'](_0x346676['parent'],'blockQuote'),_0x1b6864=_0x10fd5d['checkChild'](['$root','blockQuote'],_0x346676);return _0x1f69e9&&_0x1b6864;}(_0x5d3bcd,this['editor']['model']['schema']));_0x381eb5=to(_0x4d94ef,_0x5ae4bc['model']);}else{const _0x9c6f78=Array['from'](_0x345ddd['getSelectedBlocks']())['filter'](_0x16b705=>oo(_0x16b705));_0x381eb5=to(_0x9c6f78,_0x5ae4bc['model']);}_0x5ae4bc['model']['change'](()=>{for(const _0x2fa97f of _0x381eb5)_0x40b3b5['markBlockFormat'](_0x2fa97f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2b6d12}]});});}),_0x40b3b5['descriptionFactory']['registerDescriptionCallback'](_0x51353c=>{const {data:_0x398cda}=_0x51353c;if(_0x398cda&&'blockQuote'==_0x398cda['commandName']){const _0x2179f2=o(_0x1692a3,'ELEMENT_BLOCK_QUOTE');return _0x398cda['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1692a3,'*Set\x20format:*\x20%0',_0x2179f2)}:{'type':'format','content':o(_0x1692a3,'*Remove\x20format:*\x20%0',_0x2179f2)};}});}}function oo(_0x12b628){return'blockQuote'==_0x12b628['parent']['name'];}class G extends _0x4942e1{['afterInit'](){const _0x5a15dd=this['editor'],_0x5fa9e4=_0x5a15dd['locale'],_0x26fbd3=_0x5a15dd['plugins']['get']('TrackChangesEditing');_0x5a15dd['plugins']['has']('BookmarkEditing')&&(_0x26fbd3['enableCommand']('insertBookmark'),_0x26fbd3['enableDefaultAttributesIntegration']('updateBookmark'),_0x26fbd3['descriptionFactory']['registerDescriptionCallback'](_0x34d719=>{if('insertion'!=_0x34d719['type']&&'deletion'!=_0x34d719['type']&&'attribute'!=_0x34d719['type'])return;const _0x42bef1=_0x34d719['getContainedElement']();if(null==_0x42bef1)return;if(!_0x42bef1['is']('element','bookmark'))return;const _0x58b8df=_0x42bef1['getAttribute']('bookmarkId');if('insertion'==_0x34d719['type'])return{'type':'insertion','content':o(_0x5fa9e4,'*Insert:*\x20%0','\x22'+_0x58b8df+'\x22\x20'+o(_0x5fa9e4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x34d719['type'])return{'type':'deletion','content':o(_0x5fa9e4,'*Remove:*\x20%0','\x22'+_0x58b8df+'\x22\x20'+o(_0x5fa9e4,'ELEMENT_BOOKMARK'))};const {data:_0x4bb30f}=_0x34d719;if(!_0x4bb30f||'bookmarkId'!=_0x4bb30f['key'])return;return{'type':'format','content':o(_0x5fa9e4,'*Set\x20bookmark:*\x20%0','\x22'+_0x4bb30f['newValue']+'\x22')};}));}}class L extends _0x4942e1{['afterInit'](){const _0x40a145=this['editor'];_0x40a145['plugins']['has']('CaseChange')&&(_0x40a145['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x40a145['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x40a145['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x4942e1{['afterInit'](){const _0x420ffa=this['editor'];_0x420ffa['commands']['get']('ckbox')&&_0x420ffa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4942e1{['afterInit'](){const _0x4530d9=this['editor'];if(!_0x4530d9['plugins']['has']('CodeBlock'))return;const _0x39785f=_0x4530d9['plugins']['get']('TrackChangesEditing'),_0x385193=_0x4530d9['locale'],_0x786961=_0x4530d9['config']['get']('codeBlock')['languages'],_0x33b1ef=_0x4530d9['commands']['get']('codeBlock');_0x39785f['enableCommand']('indentCodeBlock'),_0x39785f['enableCommand']('outdentCodeBlock'),_0x39785f['enableCommand']('codeBlock',(_0x3231e8,_0x4d76d8={})=>{const _0x54a1b4=_0x4530d9['model'],_0x184279=_0x4530d9['model']['document']['selection'],_0x5f12c7=_0x4d76d8&&void 0x0!==_0x4d76d8['forceValue']?_0x4d76d8['forceValue']:!_0x33b1ef['value'];let _0x2e4ab1;_0x4d76d8['language']||(_0x4d76d8['language']=_0x786961[0x0]['language']),_0x2e4ab1=_0x5f12c7?Array['from'](_0x184279['getSelectedBlocks']())['filter'](_0xe3a20d=>co(_0xe3a20d)||function(_0x51b522,_0x4ff648){if(_0x51b522['is']('rootElement')||_0x4ff648['isLimit'](_0x51b522))return!0x1;return _0x4ff648['checkChild'](_0x51b522['parent'],'codeBlock');}(_0xe3a20d,_0x54a1b4['schema'])):Array['from'](_0x184279['getSelectedBlocks']())['filter'](_0x1996d6=>co(_0x1996d6));const _0x11bf8b=to(_0x2e4ab1,_0x54a1b4);_0x54a1b4['change'](()=>{for(const _0x50c0a4 of _0x11bf8b)_0x39785f['markBlockFormat'](_0x50c0a4,{'commandName':'codeBlock','commandParams':[{..._0x4d76d8,'forceValue':_0x5f12c7}],'formatGroupId':'blockName'});});}),(_0x39785f['descriptionFactory']['registerElementLabel']('codeBlock',_0x5e7a7c=>o(_0x385193,'ELEMENT_CODE_BLOCK',_0x5e7a7c)),_0x39785f['descriptionFactory']['registerDescriptionCallback'](_0x1f0bd6=>{if('formatBlock'!=_0x1f0bd6['type'])return;const _0x159b9f=_0x385193['t'],{data:_0x183871}=_0x1f0bd6;if(!_0x183871||'codeBlock'!=_0x183871['commandName'])return;const _0x582a05=_0x183871['commandParams'][0x0]['language'],_0x33d613=_0x159b9f(_0x786961['find'](_0x470271=>_0x470271['language']===_0x582a05)['label'])['toLowerCase']();return _0x183871['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x385193,'*Set\x20format:*\x20%0',o(_0x385193,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33d613+')')}:{'type':'format','content':o(_0x385193,'*Remove\x20format:*\x20%0',o(_0x385193,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x420af8){return'codeBlock'==_0x420af8['name'];}class z extends _0x4942e1{['afterInit'](){const _0xd68f13=this['editor'];if(!_0xd68f13['plugins']['has']('CommentsEditing'))return;_0xd68f13['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x4942e1{static get['requires'](){return[_0x5cc173];}['init'](){const _0x21f0ef=this['editor'],_0x457cd0=_0x21f0ef['plugins']['get']('TrackChangesEditing');_0x457cd0['enableCommand']('delete');const _0x12baaa=_0x21f0ef['commands']['get']('deleteForward');_0x457cd0['enableCommand']('deleteForward',(_0x3c2ae4,_0x37bcfb={})=>{const _0x2d2521=_0x21f0ef['model']['createSelection'](_0x21f0ef['model']['document']['selection']);_0x2d2521['isCollapsed']&&_0x21f0ef['model']['modifySelection'](_0x2d2521,{'direction':'forward','unit':_0x37bcfb['unit']});const _0x12603f=_0x2d2521['getFirstRange'](),_0x563fd3=_0x5bf397['fromRange'](_0x12603f);let _0x5c0478;_0x3c2ae4(_0x37bcfb),_0x5c0478='$graveyard'==_0x563fd3['root']['rootName']?_0x21f0ef['model']['createRange'](_0x12603f['start']):_0x21f0ef['model']['createRange'](_0x563fd3['start'],_0x563fd3['end']),_0x563fd3['detach'](),_0x21f0ef['model']['enqueueChange'](_0x12baaa['buffer']['batch'],_0x5efdcf=>{_0x12baaa['buffer']['lock'](),_0x5efdcf['setSelection'](_0x5efdcf['createRange'](_0x5c0478['end'])),_0x12baaa['buffer']['unlock']();});});}}class W extends _0x4942e1{['afterInit'](){const _0x58b4be=this['editor'];if(!_0x58b4be['plugins']['has']('ListEditing'))return;const _0x51063c=_0x58b4be['locale'],_0x4beaf8=_0x58b4be['plugins']['get']('TrackChangesEditing'),_0x5bfa8d=_0x58b4be['plugins']['has']('TodoListEditing'),_0x38bc7d=!!_0x58b4be['config']['get']('list.multiBlock');function _0x94cb78(_0x34fcc4){return{'type':'format','content':''+o(_0x51063c,'*Set\x20format:*\x20%0',_0x34fcc4)};}function _0x1cebec(_0x1e0246){return{'type':'format','content':''+o(_0x51063c,'*Remove\x20format:*\x20%0',_0x1e0246)};}_0x4beaf8['enableDefaultAttributesIntegration']('numberedList'),_0x4beaf8['enableDefaultAttributesIntegration']('bulletedList'),_0x4beaf8['enableDefaultAttributesIntegration']('customNumberedList'),_0x4beaf8['enableDefaultAttributesIntegration']('customBulletedList'),_0x4beaf8['enableDefaultAttributesIntegration']('indentList'),_0x4beaf8['enableDefaultAttributesIntegration']('outdentList'),_0x4beaf8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4beaf8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x38bc7d&&(_0x4beaf8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4beaf8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5bfa8d&&(_0x4beaf8['enableDefaultAttributesIntegration']('todoList'),_0x4beaf8['enableDefaultAttributesIntegration']('checkTodoList'),_0x4beaf8['descriptionFactory']['registerDescriptionCallback'](_0x2806c7=>{const {data:_0x2a36a5}=_0x2806c7;if(_0x2a36a5&&'todoListChecked'==_0x2a36a5['key'])return{'type':'format','content':_0x2a36a5['newValue']?o(_0x51063c,'*Check\x20item*'):o(_0x51063c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x341178=>{if(_0x341178['batch']['isUndo'])return!0x1;let _0x469f70=!0x1;const _0x382a15=_0x4beaf8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x281cb6=>'todoListChecked'===_0x4beaf8['_getAttributeKey'](_0x281cb6));for(const _0x25d3b0 of _0x382a15){'todo'!=_0x25d3b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4beaf8['_findSuggestions'](_0x25d3b0['getFirstRange'](),'attribute')['find'](_0x2ddede=>'listType'===_0x4beaf8['_getAttributeKey'](_0x2ddede['suggestion']))||(_0x341178['removeMarker'](_0x25d3b0['getFirstMarker']()),_0x469f70=!0x0));}return _0x469f70;})),_0x4beaf8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x51063c,'FORMAT_INDENT'));const _0x36a36b={'type':'format','content':''};_0x4beaf8['descriptionFactory']['registerDescriptionCallback'](_0x4a78a5=>{const {data:_0x4ae24c}=_0x4a78a5;if(!_0x4ae24c||'listType'!=_0x4ae24c['key'])return;let _0x272e78=_0x4a78a5['head'];for(;_0x272e78;){if(_0x272e78['data']&&(('listStyle'==_0x272e78['data']['key']||'listMarkerStyle'==_0x272e78['data']['key'])&&(_0x272e78['data']['newValue']&&'default'!=_0x272e78['data']['newValue']||'default'!=_0x272e78['data']['oldValue']&&!_0x4ae24c['newValue'])||!_0x38bc7d&&_0x272e78['data']['key']==m))return _0x36a36b;_0x272e78=_0x272e78['next'];}if(null==_0x4ae24c['newValue'])switch(_0x4ae24c['oldValue']){case'bulleted':return _0x1cebec(o(_0x51063c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cebec(o(_0x51063c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cebec(o(_0x51063c,'ELEMENT_TODO_LIST'));}switch(_0x4ae24c['newValue']){case'bulleted':return _0x94cb78(o(_0x51063c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x94cb78(o(_0x51063c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x94cb78(o(_0x51063c,'ELEMENT_TODO_LIST'));}}),_0x4beaf8['descriptionFactory']['registerDescriptionCallback'](_0x31fcfa=>{const {data:_0x28da75}=_0x31fcfa;if(_0x28da75&&'listIndent'==_0x28da75['key'])return null==_0x28da75['newValue']||null==_0x28da75['oldValue']&&0x0==_0x28da75['newValue']?_0x36a36b:void 0x0;}),_0x4beaf8['descriptionFactory']['registerDescriptionCallback'](_0x55db7d=>{if('attribute'!=_0x55db7d['type'])return;const {data:_0x33ddbe}=_0x55db7d;if(!_0x33ddbe||'listItemId'!=_0x33ddbe['key'])return;const _0x2c606b=Te(_0x55db7d);return'newValue'==_0x2c606b?{'type':'format','content':o(_0x51063c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2c606b?{'type':'format','content':o(_0x51063c,'*Split:*\x20list\x20item')}:_0x36a36b;}),_0x58b4be['model']['document']['registerPostFixer'](_0x534e0d=>this['listItemIdFixer'](_0x534e0d)),_0x58b4be['model']['document']['registerPostFixer'](_0x1539ce=>this['noTrackChangesFixer'](_0x1539ce)),_0x58b4be['model']['document']['on']('change:data',(_0x431de4,_0x43e3e5)=>{if(_0x43e3e5['isUndo']||!_0x43e3e5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5b951d){if(_0x5b951d['batch']['isUndo']||!_0x5b951d['batch']['isLocal'])return!0x1;let _0x180c5e=!0x1;const _0x7ee427=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1284cc=>_0x1284cc['data']&&'listItemId'==_0x1284cc['data']['key'])['filter'](_0x11d749=>_0x11d749['data']['newValue']&&_0x11d749['data']['oldValue']);for(const _0xe80b7 of _0x7ee427)Te(_0xe80b7)||(_0x5b951d['removeMarker'](_0xe80b7['getFirstMarker']()),_0x180c5e=!0x0);return _0x180c5e;}['noTrackChangesFixer'](_0x3783fc){if(_0x3783fc['batch']['isUndo']||!_0x3783fc['batch']['isLocal'])return!0x1;const _0xf60f5e=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xf60f5e['trackChangesCommand']['value'])return!0x1;let _0x4fb5ce=!0x1;const _0x3ef41d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x21f869=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xd0f85d=>'attribute'==_0xd0f85d['type'])['filter'](_0x2437f7=>_0x3ef41d['includes'](_0x2437f7['attributeKey']));if(0x0==_0x21f869['length'])return _0x4fb5ce;for(const _0x26921b of _0x21f869){const _0x1a90ec=_0xf60f5e['_findSuggestions'](_0x26921b['range'],'attribute')['filter'](_0x5737d0=>!_0x5737d0['meta']['isNextTo'])['map'](_0x36d9e3=>_0x36d9e3['suggestion'])['filter'](_0x5e3b46=>{const _0x3a0dd9=_0xf60f5e['_getAttributeKey'](_0x5e3b46);return _0x3ef41d['includes'](_0x3a0dd9);});if(_0x1a90ec['length']){for(const _0x350749 of _0x1a90ec)_0x3783fc['removeMarker'](_0x350749['getFirstMarker']());_0x4fb5ce=!0x0;}}return _0x4fb5ce;}['assureChains'](){const _0x298451=this['editor']['plugins']['get']('TrackChangesEditing'),_0x366bcd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x392acf;const _0xe55aed=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e3dee=>{if(_0x4e3dee['data']['oldRange']||!_0x4e3dee['data']['newRange'])return null;if(!_0x4e3dee['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x568042}=_0x298451['_splitMarkerName'](_0x4e3dee['name']);if(!_0x298451['hasSuggestion'](_0x568042))return null;const _0x5e09f7=_0x298451['getSuggestion'](_0x568042);return _0x366bcd['includes'](_0x5e09f7['data']['key']);})['map'](_0x5473c7=>{const {id:_0x5e8a31}=_0x298451['_splitMarkerName'](_0x5473c7['name']),_0x4eb921=_0x298451['getSuggestion'](_0x5e8a31);return _0x392acf=_0x4eb921['attributes']['groupId'],_0x4eb921['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xe55aed['size'])return;const _0x481e89=_0x298451['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c5118=>'attribute'==_0x1c5118['type']&&_0x1c5118['data']&&_0x366bcd['includes'](_0x1c5118['data']['key'])&&_0x1c5118['attributes']['groupId']!=_0x392acf)['map'](_0x1c97a9=>({'listItem':_0x1c97a9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1c97a9['attributes']['groupId']})),_0x3997b6=new Set();for(const {groupId:_0x68e4bf,listItem:_0x4f7c32}of _0x481e89)_0xe55aed['has'](_0x4f7c32)&&_0x3997b6['add'](_0x68e4bf);for(const _0x2c044e of _0x298451['getSuggestions']())_0x3997b6['has'](_0x2c044e['attributes']['groupId'])&&_0x2c044e['setAttribute']('groupId',_0x392acf);}['_supportLegacySuggestions'](){const _0x2e2be5=this['editor'],_0x4a8308=_0x2e2be5['locale'],_0x45241f=_0x2e2be5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x45241f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37dfc0,_0x3cdc71){const _0x17c970=[];for(let _0x9c5c56 of _0x37dfc0)_0x9c5c56['start']['nodeAfter']===_0x9c5c56['end']['parent']&&(_0x9c5c56=_0x2e2be5['model']['createRange'](_0x2e2be5['model']['createPositionAt'](_0x9c5c56['start']['nodeAfter'],0x0))),_0x17c970['push'](_0x9c5c56);_0x2e2be5['model']['change'](_0x551ac8=>{const _0x312962=_0x2e2be5['model']['document']['selection'],_0x396334=Array['from'](_0x312962['getRanges']())['map'](_0x187486=>_0x5bf397['fromRange'](_0x187486));_0x551ac8['setSelection'](_0x17c970),_0x2e2be5['commands']['get'](_0x3cdc71['commandName'])['refresh'](),_0x3cdc71['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e2be5['execute'](_0x3cdc71['commandName'],..._0x3cdc71['commandParams']),_0x551ac8['setSelection'](_0x396334);for(const _0x14b770 of _0x396334)_0x14b770['detach']();});}),_0x45241f['descriptionFactory']['registerElementLabel'](function(_0x4a19e5){const _0x44194a=!_0x2e2be5['model']['schema']['isObject'](_0x4a19e5),_0x25fda=_0x4a19e5['previousSibling'],_0x5228de=_0x4a19e5['nextSibling'],_0x22c142=_0x4a19e5['getAttribute']('listItemId'),_0x57ab2f=!_0x25fda||_0x25fda['getAttribute']('listItemId')!==_0x22c142,_0x3b48d7=!_0x5228de||_0x5228de['getAttribute']('listItemId')!==_0x22c142;return _0x44194a&&Boolean(_0x22c142)&&_0x57ab2f&&_0x3b48d7;},_0x4a2639=>o(_0x4a8308,'ELEMENT_LIST_ITEM',_0x4a2639));}['_registerLegacyDescription'](){const _0x1d4550=this['editor'],_0x186019=_0x1d4550['locale'];function _0x8284e1(_0xb22ca6){const _0x2bac41=_0x1d4550['commands']['get']('bulletedList')['value'],_0xe199cc=_0x1d4550['commands']['get']('numberedList')['value'];return'numberedList'===_0xb22ca6?_0x2bac41:_0xe199cc;}_0x1d4550['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3c79d0){if('formatBlock'!=_0x3c79d0['type'])return;const {data:_0x569d0f}=_0x3c79d0;if(!_0x569d0f)return;let _0x46189c,_0x3a7128,_0x24bc79,_0x1ae2e1;switch(_0x569d0f['commandName']){case'bulletedList':_0x24bc79=_0x569d0f['commandParams'][0x0]['forceValue'],_0x1ae2e1=_0x8284e1(_0x569d0f['commandName']),_0x46189c=_0x24bc79?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ae2e1&&_0x1d4550['config']['get']('list.multiBlock')||(_0x46189c='*Change\x20to:*\x20%0'),_0x3a7128={'type':'format','content':o(_0x186019,_0x46189c,o(_0x186019,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x24bc79=_0x569d0f['commandParams'][0x0]['forceValue'],_0x1ae2e1=_0x8284e1(_0x569d0f['commandName']),_0x46189c=_0x24bc79?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ae2e1&&_0x1d4550['config']['get']('list.multiBlock')||(_0x46189c='*Change\x20to:*\x20%0'),_0x3a7128={'type':'format','content':o(_0x186019,_0x46189c,o(_0x186019,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x46189c='*Indent:*\x20%0',_0x3a7128={'type':'format','content':o(_0x186019,_0x46189c,o(_0x186019,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x46189c=function(_0x158ded){const _0x597977=_0x158ded['getFirstRange']();let _0x1ce155=_0x597977['start']['nodeAfter'];for(;_0x1ce155&&_0x597977['containsItem'](_0x1ce155);){if(_0x1ce155['getAttribute']('listIndent')>0x0)return!0x1;_0x1ce155=_0x1ce155['nextSibling'];}return!0x0;}(_0x3c79d0)?o(_0x186019,'*Format:*\x20remove\x20from\x20%0',o(_0x186019,function(_0x3583cd){return'ELEMENT_'+_0x3583cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3c79d0))):o(_0x186019,'*Outdent:*\x20%0',o(_0x186019,'ELEMENT_LIST_ITEM')),_0x3a7128={'type':'format','content':_0x46189c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x569d0f['multipleBlocks']&&(_0x46189c='*Merge:*\x20%0',_0x3a7128={'type':'deletion','content':o(_0x186019,_0x46189c,o(_0x186019,'ELEMENT_LIST_ITEM'))});}return _0x3a7128;});}}function Te(_0x25b6ba){let _0x2af12f=_0x25b6ba['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2af12f;){const _0x275cc5=_0x2af12f['getAttribute']('listItemId');if(!_0x275cc5)return!0x1;if(_0x275cc5==_0x25b6ba['data']['newValue'])return'newValue';if(_0x275cc5==_0x25b6ba['data']['oldValue'])return'oldValue';_0x2af12f=_0x2af12f['previousSibling'];}return!0x1;}class H extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4b6978=this['editor']['config']['get']('list.properties'),_0x2cb9e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b6978['styles']&&_0x2cb9e8['enableDefaultAttributesIntegration']('listStyle'),_0x4b6978['reversed']&&_0x2cb9e8['enableDefaultAttributesIntegration']('listReversed'),_0x4b6978['startIndex']&&_0x2cb9e8['enableDefaultAttributesIntegration']('listStart');const _0xab1c70={'type':'format','content':''};_0x2cb9e8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x47fe1b=this['editor']['locale'];_0x2cb9e8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x47fe1b,'FORMAT_LIST_REVERSED')),_0x2cb9e8['descriptionFactory']['registerDescriptionCallback'](_0x37d305=>{const {data:_0x47defe}=_0x37d305;if(_0x47defe&&'listReversed'==_0x47defe['key'])return null==_0x47defe['newValue']||0x0==_0x47defe['newValue']&&null==_0x47defe['oldValue']?_0xab1c70:void 0x0;}),_0x2cb9e8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x47fe1b,'FORMAT_LIST_START')),_0x2cb9e8['descriptionFactory']['registerDescriptionCallback'](_0x3eefa0=>{const {data:_0x48a944}=_0x3eefa0;if(_0x48a944&&'listStart'==_0x48a944['key'])return null==_0x48a944['newValue']||0x1==_0x48a944['newValue']&&null==_0x48a944['oldValue']?_0xab1c70:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5172fd=>{if(_0x5172fd['batch']['isUndo'])return!0x1;let _0x16b2c5=!0x1;const _0x310e57=_0x2cb9e8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d4a41=>{const _0x383e08=_0x2cb9e8['_getAttributeKey'](_0x5d4a41);return'listStart'==_0x383e08||'listReversed'==_0x383e08;});for(const _0xa35d06 of _0x310e57){const _0x437c6b=_0xa35d06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x437c6b||'customNumbered'==_0x437c6b)continue;_0x2cb9e8['_findSuggestions'](_0xa35d06['getFirstRange'](),'attribute')['find'](_0x3fc7bb=>'listType'==_0x2cb9e8['_getAttributeKey'](_0x3fc7bb['suggestion']))||(_0x5172fd['removeMarker'](_0xa35d06['getFirstMarker']()),_0x16b2c5=!0x0);}return _0x16b2c5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x266042){const _0x3acc54=this['editor']['locale'],{data:_0xd91d21}=_0x266042,_0xb3bbcb={'type':'format','content':''};if(!_0xd91d21||'listStyle'!=_0xd91d21['key'])return;if(!_0xd91d21['oldValue'])return'default'==_0xd91d21['newValue']?_0xb3bbcb:{'type':'format','content':''+o(_0x3acc54,'*Set\x20format:*\x20%0',o(_0x3acc54,this['_getTranslationKeyForListStyle'](_0xd91d21['newValue'])))};if(!_0xd91d21['newValue']){if('default'==_0xd91d21['oldValue'])return _0xb3bbcb;let _0x2dd3ff=_0x266042['head'];for(;_0x2dd3ff;){if(_0x2dd3ff['data']&&'listType'==_0x2dd3ff['data']['key']&&_0x2dd3ff['data']['newValue'])return _0xb3bbcb;_0x2dd3ff=_0x2dd3ff['next'];}return{'type':'format','content':''+o(_0x3acc54,'*Remove\x20format:*\x20%0',o(_0x3acc54,this['_getTranslationKeyForListStyle'](_0xd91d21['oldValue'])))};}if('default'!=_0xd91d21['newValue'])return{'type':'format','content':''+o(_0x3acc54,'*Set\x20format:*\x20%0',o(_0x3acc54,this['_getTranslationKeyForListStyle'](_0xd91d21['newValue'])))};let _0x4dd5ae=_0x266042['head'];for(;_0x4dd5ae;){if(_0x4dd5ae['data']&&'listType'==_0x4dd5ae['data']['key']&&_0x4dd5ae['data']['newValue']&&_0x4dd5ae['data']['oldValue'])return _0xb3bbcb;_0x4dd5ae=_0x4dd5ae['next'];}return{'type':'format','content':o(_0x3acc54,'*Set\x20format:*\x20%0',o(_0x3acc54,'ELEMENT_'+_0x266042['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x252d6e=this['editor'],_0x2475e7=_0x252d6e['locale'];_0x252d6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ed069=>{if('formatBlock'!=_0x4ed069['type'])return;const {data:_0x199342}=_0x4ed069;if(!_0x199342)return;let _0xaebf16,_0x201e98;switch(_0x199342['commandName']){case'listStyle':_0xaebf16='*Change\x20to:*\x20%0',_0x201e98={'type':'format','content':o(_0x2475e7,_0xaebf16,o(_0x2475e7,this['_getTranslationKeyForListStyle'](_0x199342['commandParams'][0x0]['type'])))};break;case'listReversed':_0xaebf16=_0x199342['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x201e98={'type':'format','content':o(_0x2475e7,_0xaebf16)};break;case'listStart':_0xaebf16='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x201e98={'type':'format','content':o(_0x2475e7,_0xaebf16,_0x199342['commandParams'][0x0]['startIndex'])};}return _0x201e98;});}['_getTranslationKeyForListStyle'](_0x30f55f){return'ELEMENT_'+function(_0x2e924d){if(ye['includes'](_0x2e924d))return'bulleted';if(Se['includes'](_0x2e924d))return'numbered';return null;}(_0x30f55f)['toUpperCase']()+'_LIST_'+_0x30f55f['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x4942e1{['afterInit'](){const _0x10714c=this['editor'];_0x10714c['commands']['get']('emoji')&&_0x10714c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x4942e1{static get['requires'](){return[_0x35d2b7];}['init'](){const _0x5b3112=this['editor'],_0x2bcf70=_0x5b3112['plugins']['get']('TrackChangesEditing'),_0x8a6e35=_0x5b3112['commands']['get']('enter');_0x2bcf70['enableCommand']('enter',()=>{_0x5b3112['model']['change'](_0xaa3e24=>{const _0x1d7535=_0x5b3112['model']['document']['selection'],_0x365db6=_0x1d7535['getFirstPosition'](),_0x4f595f=_0x5bf397['fromRange'](_0x1d7535['getFirstRange']());if(_0x8a6e35['enterBlock'](_0xaa3e24)){const _0x1e1992=_0x5b3112['model']['createPositionAt'](_0x365db6['parent']['nextSibling'],0x0),_0x549832=_0xaa3e24['createRange'](_0x365db6,_0x1e1992);_0x2bcf70['markInsertion'](_0x549832);}else _0xaa3e24['setSelection'](_0xaa3e24['createRange'](_0x4f595f['end']));_0x4f595f['detach'](),_0x8a6e35['fire']('afterExecute',{'writer':_0xaa3e24});});});}}class Y extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xef61ff=this['editor']['plugins']['get']('TrackChangesEditing');_0xef61ff['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xef61ff['enableCommand']('findNext'),_0xef61ff['enableCommand']('findPrevious'),_0xef61ff['enableCommand']('replace'),_0xef61ff['enableCommand']('replaceAll');}['handleFindCommand'](_0x47e6c0,_0x2e3041,_0x4ce9b7={}){const _0x5c64e0=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x47e6c0(_0x581deb=>{let _0x2b6e90=('string'==typeof _0x2e3041?_0x5c64e0['findByTextCallback'](_0x2e3041,_0x4ce9b7):_0x2e3041)(_0x581deb);Array['isArray'](_0x2b6e90)&&(_0x2b6e90={'results':_0x2b6e90,'searchText':'string'==typeof _0x2e3041?_0x2e3041:''});const _0x4f53f7=_0x2b6e90['results']['filter'](_0x2079a7=>!0x1===this['_isInDeletionRange'](_0x2079a7,_0x581deb['item']));return{..._0x2b6e90,'results':_0x4f53f7};},_0x4ce9b7);}['_isInDeletionRange'](_0xb759c9,_0x454a9f){const _0x11d428=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x454a9f,_0xb759c9['start']),this['editor']['model']['createPositionAt'](_0x454a9f,_0xb759c9['end']));for(const _0x44d257 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x11d428['getIntersection'](_0x44d257['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x4942e1{['afterInit'](){const _0x3a33d6=this['editor']['locale'],_0x46aa03=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x21d0d6,commandName:_0x11bdb4}of eo)this['editor']['plugins']['has'](_0x21d0d6)&&_0x46aa03['enableDefaultAttributesIntegration'](_0x11bdb4);_0x46aa03['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3a33d6,'FORMAT_FONT_SIZE')),_0x46aa03['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3a33d6,'FORMAT_FONT_FAMILY')),_0x46aa03['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3a33d6,'FORMAT_FONT_COLOR')),_0x46aa03['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3a33d6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dcd5c=this['editor'],_0x5d2d0b=_0x1dcd5c['locale'];_0x1dcd5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5af66e=>{const _0x10eb49=_0x5d2d0b['t'];if('formatInline'!=_0x5af66e['type'])return;const {data:_0x39a57d}=_0x5af66e;if(null!=_0x39a57d){if('fontSize'==_0x39a57d['commandName']){const _0x3b1f85=_0x39a57d['commandParams'][0x0]['value'];if(_0x3b1f85){const _0x3d6b01=_0x10eb49(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a6cfb=>_0x1a6cfb['model']==_0x3b1f85)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5d2d0b,'*Set\x20font\x20size:*\x20%0',_0x3d6b01)};}return{'type':'format','content':o(_0x5d2d0b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x39a57d['commandName']){const _0x57566e=_0x39a57d['commandParams'][0x0]['value'];return _0x57566e?{'type':'format','content':o(_0x5d2d0b,'*Set\x20font\x20family:*\x20%0',_0x57566e)}:{'type':'format','content':o(_0x5d2d0b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x39a57d['commandName']){const _0x1213bb=_0x39a57d['commandParams'][0x0]['value'];if(_0x1213bb){const _0x5820dd=_0x45a464(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1ffd15=>_0x1ffd15['model']==_0x1213bb);let _0x1a91a1=_0x1213bb,_0x2754ba='';return _0x5820dd&&(_0x1a91a1=_0x5820dd['label'],_0x2754ba=_0x10eb49(_0x1a91a1)['toLowerCase']()),{'type':'format','content':o(_0x5d2d0b,'*Set\x20font\x20color:*\x20%0',_0x2754ba)['trim'](),'color':{'value':_0x1213bb,'title':_0x2754ba||_0x1a91a1}};}return{'type':'format','content':o(_0x5d2d0b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x39a57d['commandName']){const _0x379c5c=_0x39a57d['commandParams'][0x0]['value'];if(_0x379c5c){const _0xd5c867=_0x45a464(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1cddb2=>_0x1cddb2['model']==_0x379c5c);let _0x341b6e=_0x379c5c,_0x30b573='';return _0xd5c867&&(_0x341b6e=_0xd5c867['label'],_0x30b573=_0x10eb49(_0x341b6e)['toLowerCase']()),{'type':'format','content':o(_0x5d2d0b,'*Set\x20font\x20background\x20color:*\x20%0',_0x30b573)['trim'](),'color':{'value':_0x379c5c,'title':_0x30b573||_0x341b6e}};}return{'type':'format','content':o(_0x5d2d0b,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x4942e1{['afterInit'](){const {plugins:_0x33b7b3}=this['editor'];_0x33b7b3['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x33b7b3['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1a5941,plugins:_0x33031a,commands:_0x9390e7}=this['editor'],_0x5f5b9c=_0x33031a['get']('TrackChangesEditing');_0x9390e7['get']('footnotesStyle')&&_0x5f5b9c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x9390e7['get']('footnotesStart')&&_0x5f5b9c['enableDefaultAttributesIntegration']('footnotesStart'),_0x5f5b9c['registerBlockAttribute']('footnotesListStyle'),_0x5f5b9c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x1a5941,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5f5b9c['registerBlockAttribute']('footnotesListStart'),_0x5f5b9c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x1a5941,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x11118c=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xbc6c42,commands:_0x55a313}=this['editor'];_0x55a313['get']('insertFootnote')&&_0x11118c['enableCommand']('insertFootnote'),_0x11118c['descriptionFactory']['registerElementLabel']('footnoteRef',_0x42fac1=>o(_0xbc6c42,'ELEMENT_FOOTNOTE_REF',_0x42fac1)),_0x11118c['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3b399d=>o(_0xbc6c42,'ELEMENT_FOOTNOTE_DEFINITION',_0x3b399d)),_0x11118c['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x17933c=>o(_0xbc6c42,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x17933c));}}class nt extends _0x4942e1{['afterInit'](){const _0x59d712=this['editor'],_0x4a5661=_0x59d712['plugins']['get']('TrackChangesEditing'),_0x1234ca=_0x59d712['commands']['get']('copyFormat'),_0x3b9ae0=_0x59d712['commands']['get']('pasteFormat');_0x1234ca&&_0x3b9ae0&&(_0x4a5661['enableDefaultAttributesIntegration']('pasteFormat'),_0x4a5661['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1dabbf=this['editor'],_0x479128=_0x1dabbf['locale'];_0x1dabbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a53fe=>{if('formatBlock'!=_0x1a53fe['type']&&'formatInline'!=_0x1a53fe['type'])return;const {data:_0xd6ef27}=_0x1a53fe;if(_0xd6ef27&&'pasteFormat'===_0xd6ef27['commandName']){const _0x185097=[],_0x1825eb=_0xd6ef27['commandParams'][0x0];for(const [_0x5c5878,_0x40b272]of Object['entries'](_0x1825eb))_0x185097['push'](ro(_0x1dabbf,_0x5c5878,_0x40b272));return _0x185097['length']?{'type':'format','content':o(_0x479128,'*Set\x20format\x20to:*\x20%0',_0x185097['join'](',\x20'))}:{'type':'format','content':o(_0x479128,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1492bd,_0xa3f737,_0x195e29){const _0x9ff65f=_0x1492bd['locale']['t'],_0x177579=_0xa3f737['split'](/(?=[A-Z])/)['join']('\x20'),_0x2387bb=_0x9ff65f(_0x177579['charAt'](0x0)['toUpperCase']()+_0x177579['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x195e29)return _0x2387bb;if('fontColor'===_0xa3f737||'fontBackgroundColor'===_0xa3f737){const _0x51de69=_0x45a464(_0x1492bd['config']['get']('fontColor.colors'))['find'](_0x36c825=>_0x36c825['model']==_0x195e29);return _0x2387bb+'\x20('+(_0x51de69?_0x9ff65f(_0x51de69['label'])['toLowerCase']():_0x195e29)+')';}if('fontSize'===_0xa3f737&&isNaN(parseFloat(_0x195e29))){const _0x404b44=_0x1492bd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1492bd['config']['get']('fontSize.options'))['find'](_0x522443=>_0x522443['model']==_0x195e29);return _0x2387bb+'\x20('+(_0x404b44?_0x9ff65f(_0x404b44['title'])['toLowerCase']():_0x195e29)+')';}return _0x2387bb+'\x20('+_0x195e29+')';}class it extends _0x4942e1{['_headingOptions'];['afterInit'](){const _0x464a0b=this['editor'];if(!_0x464a0b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x464a0b['config']['get']('heading.options');const _0x4c384a=_0x464a0b['locale'],_0x3c6195=_0x464a0b['plugins']['get']('TrackChangesEditing');_0x3c6195['enableDefaultAttributesIntegration']('heading');for(const _0x46be19 of this['_headingOptions'])'paragraph'!=_0x46be19['model']&&_0x3c6195['descriptionFactory']['registerElementLabel'](_0x46be19['model'],_0x53712e=>{const _0x3681f1=this['_getHeadingLevel'](_0x46be19['model']);return null!==_0x3681f1?_0x385465(_0x53712e,_0x3681f1):_0x5e1496(_0x53712e,_0x46be19['title']);});function _0x385465(_0x27eb3e,_0x1f5db9){return o(_0x4c384a,'ELEMENT_HEADING',[_0x27eb3e,_0x1f5db9]);}function _0x5e1496(_0x4b321d,_0x5038d0){return o(_0x4c384a,'ELEMENT_HEADING_CUSTOM',[_0x4b321d,_0x5038d0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dffef=this['editor'],_0x334378=_0x5dffef['locale'];function _0x4037d3(_0x155a03,_0x53ebb5){return o(_0x334378,'ELEMENT_HEADING_CUSTOM',[_0x155a03,_0x53ebb5]);}_0x5dffef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1924ba=>{if('formatBlock'!=_0x1924ba['type'])return;const {data:_0x44c80e}=_0x1924ba;if(_0x44c80e&&'heading'==_0x44c80e['commandName']){const _0xe36023=_0x44c80e['commandParams'][0x0]['value'],_0x2a3fd5=this['_getHeadingLevel'](_0xe36023);if(null!==_0x2a3fd5)return{'type':'format','content':o(_0x334378,'*Change\x20to:*\x20%0',(_0x3d4e37=0x1,_0xc787bc=_0x2a3fd5,o(_0x334378,'ELEMENT_HEADING',[_0x3d4e37,_0xc787bc])))};const _0xa2ed58=this['_headingOptions']['find'](_0x29bb44=>_0x29bb44['model']===_0xe36023)['title'];return{'type':'format','content':o(_0x334378,'*Change\x20to:*\x20%0',_0x4037d3(0x1,_0xa2ed58))};}var _0x3d4e37,_0xc787bc;});}['_getHeadingLevel'](_0x243cd6){const _0xaf2f75=_0x243cd6['match'](/^heading(\d+)/);if(_0xaf2f75)return _0xaf2f75[0x1];const _0x46848f=this['_headingOptions']?.['find'](_0x28f1a9=>_0x28f1a9['model']==_0x243cd6);if(_0x46848f&&_0x46848f['view']){const _0x800a76=_0x46848f['view'],_0x3d4b1c=(_0x800a76['name']??_0x800a76)['match'](/^h(\d+)/);if(_0x3d4b1c)return _0x3d4b1c[0x1];}return null;}}class et extends _0x4942e1{['afterInit'](){const _0x5e6392=this['editor'];if(!_0x5e6392['plugins']['has']('HighlightEditing'))return;const _0x546fc3=_0x5e6392['plugins']['get']('TrackChangesEditing'),_0xe505d4=_0x5e6392['locale'];_0x546fc3['enableDefaultAttributesIntegration']('highlight'),_0x546fc3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xe505d4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x144712=this['editor'],_0x1b5417=_0x144712['locale'];_0x144712['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa279d8=>{if('formatInline'!=_0xa279d8['type'])return;const {data:_0x223551}=_0xa279d8;if(_0x223551&&'highlight'==_0x223551['commandName']){const _0x1865b3=_0x1b5417['t'],_0x440f2c=_0x223551['commandParams'][0x0]['value'];if(_0x440f2c){const _0x45b78e=_0x144712['config']['get']('highlight.options')['find'](_0x3c5a41=>_0x3c5a41['model']==_0x440f2c),_0x53e4ef=_0x1865b3(_0x45b78e['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b5417,'*Set\x20highlight:*\x20%0',_0x53e4ef),'color':{'value':_0x45b78e['color'],'title':_0x45b78e['title']}};}return{'type':'format','content':o(_0x1b5417,'*Remove\x20highlight*',o(_0x1b5417,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x4942e1{['afterInit'](){const _0x1528c0=this['editor'];if(!_0x1528c0['plugins']['has']('HorizontalLineEditing'))return;_0x1528c0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5aaab4=_0x1528c0['plugins']['get']('TrackChangesEditing'),_0x1d688c=_0x1528c0['locale'];_0x5aaab4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d3fe4=>o(_0x1d688c,'ELEMENT_HORIZONTAL_LINE',_0x4d3fe4));}}class ot extends _0x4942e1{['afterInit'](){const _0x1d2536=this['editor'];if(!_0x1d2536['plugins']['has']('HtmlEmbed'))return;const _0xe8ae0c=_0x1d2536['plugins']['get']('TrackChangesEditing'),_0x213ca6=_0x1d2536['locale'];_0xe8ae0c['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d51d0=>o(_0x213ca6,'ELEMENT_HTML_EMBED',_0x5d51d0)),_0xe8ae0c['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe8ae0c['descriptionFactory']['registerDescriptionCallback'](_0x253dde=>{if('attribute'!=_0x253dde['type'])return;const {data:_0x3bb1a7}=_0x253dde;if(_0x3bb1a7&&'value'==_0x3bb1a7['key']&&_0x253dde['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x554861=o(_0x213ca6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x213ca6,'*Change\x20%0\x20content*',_0x554861)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c6ff=this['editor'],_0x23295b=_0x39c6ff['locale'];_0x39c6ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ca09d=>{if('formatBlock'!=_0x5ca09d['type'])return;const {data:_0x76dcf7}=_0x5ca09d;if(_0x76dcf7&&'htmlEmbed'==_0x76dcf7['commandName']){const _0x3d8ee9=o(_0x23295b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x23295b,'*Change\x20%0\x20content*',_0x3d8ee9)};}});}}class rt extends _0x4942e1{['afterInit'](){const _0x5d3739=this['editor'];if(!_0x5d3739['plugins']['has']('ImageEditing'))return;const _0x42557d=_0x5d3739['plugins']['get']('TrackChangesEditing'),_0x43761d=_0x5d3739['plugins']['get']('ImageUtils'),_0x41c173=_0x5d3739['locale'];_0x42557d['enableCommand']('insertImage'),_0x42557d['descriptionFactory']['registerElementLabel']('imageBlock',_0x120906=>o(_0x41c173,'ELEMENT_IMAGE',_0x120906)),_0x42557d['descriptionFactory']['registerElementLabel']('imageInline',_0x50fe32=>o(_0x41c173,'ELEMENT_INLINE_IMAGE',_0x50fe32)),_0x42557d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x41c173,'ELEMENT_CAPTION')),_0x5d3739['plugins']['has']('ImageUploadEditing')&&_0x42557d['enableCommand']('uploadImage'),_0x5d3739['plugins']['has']('ImageBlockEditing')&&_0x5d3739['plugins']['has']('ImageInlineEditing')&&(_0x42557d['enableCommand']('imageTypeInline',(_0x120e14,_0x190999)=>{const _0x5b5c4c=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']);_0x5d3739['model']['change'](()=>{_0x42557d['markBlockFormat'](_0x5b5c4c,{'commandName':'imageTypeInline','commandParams':[_0x190999]},[],'convertBlockImageToInline');});}),_0x42557d['enableCommand']('imageTypeBlock',(_0x134b78,_0x1f8a36)=>{_0x5d3739['model']['change'](_0x5429b9=>{let _0x2a89bd=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']),_0x50cb9c=_0x5429b9['createRangeOn'](_0x2a89bd);const _0x415cbc=_0x193721['fromPosition'](_0x50cb9c['start'],'toPrevious'),_0x473cea=_0x193721['fromPosition'](_0x50cb9c['end'],'toNext');_0x42557d['forceDefaultExecution'](()=>_0x134b78(_0x1f8a36)),_0x2a89bd=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']),_0x50cb9c=_0x5429b9['createRangeOn'](_0x2a89bd);const _0x48bf44=_0x5429b9['createRange'](_0x415cbc,_0x473cea);_0x415cbc['detach'](),_0x473cea['detach'](),_0x42557d['markBlockFormat'](_0x2a89bd,{'commandName':'imageTypeInline','commandParams':[_0x1f8a36]},[],'convertInlineImageToBlock'),_0x48bf44['start']['isBefore'](_0x50cb9c['start'])&&_0x42557d['markInsertion'](_0x5429b9['createRange'](_0x48bf44['start'],_0x50cb9c['start']),'convertInlineImageToBlock'),_0x50cb9c['end']['isBefore'](_0x48bf44['end'])&&_0x42557d['markInsertion'](_0x5429b9['createRange'](_0x50cb9c['end'],_0x48bf44['end']),'convertInlineImageToBlock');});}),_0x42557d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x42557d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x42557d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x42557d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x42557d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x42557d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4abd86])=>{const _0x76b593=_0x42557d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4e8470=_0x4abd86['start'],_0x1e9885=_0x4abd86['end'];const _0x54b2d5=_0x5d3739['model']['schema']['getNearestSelectionRange'](_0x4e8470,'backward'),_0x17854a=_0x5d3739['model']['schema']['getNearestSelectionRange'](_0x1e9885,'forward');_0x54b2d5['isCollapsed']&&(_0x4e8470=_0x54b2d5['start']),_0x17854a['isCollapsed']&&(_0x1e9885=_0x17854a['end']),_0x76b593([_0x5d3739['model']['createRange'](_0x4e8470,_0x1e9885)]);}),_0x42557d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xccdc97),_0x42557d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xccdc97)),_0x5d3739['plugins']['has']('ImageCaptionEditing')&&(_0x42557d['enableCommand']('toggleImageCaption',(_0x2cdb03,_0x19fb80)=>{const _0x5c2eeb=_0x5d3739['plugins']['get']('ImageCaptionUtils');let _0x2c04cc=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']),_0x4cba26=_0x5c2eeb['getCaptionFromImageModelElement'](_0x2c04cc);_0x5d3739['model']['change'](()=>{if(_0x4cba26)return void _0x42557d['markDeletion'](_0x5d3739['model']['createRangeOn'](_0x4cba26));const _0x2bc5c6=_0x43761d['isBlockImage'](_0x2c04cc);_0x2cdb03(_0x19fb80),_0x2c04cc=_0x43761d['getClosestSelectedImageElement'](_0x5d3739['model']['document']['selection']),_0x4cba26=_0x5c2eeb['getCaptionFromImageModelElement'](_0x2c04cc),_0x42557d['markInsertion'](_0x5d3739['model']['createRangeOn'](_0x4cba26),_0x2bc5c6?null:'imageCaption');});}),_0x42557d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xccdc97));const _0x1b3e9b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44e80d(_0x4cfdc5,_0x3317e8){const _0x79b082=_0x1b3e9b['findIndex'](({type:_0x1cffaa,subType:_0x151a4f})=>_0x4cfdc5['type']==_0x1cffaa&&_0x4cfdc5['subType']==_0x151a4f),_0x2a16dc=_0x1b3e9b['findIndex'](({type:_0x1963be,subType:_0x2d1150})=>_0x3317e8['type']==_0x1963be&&_0x3317e8['subType']==_0x2d1150);if(_0x79b082<0x0||_0x2a16dc<0x0)return!0x1;const _0x33b7c7=_0x4cfdc5['getFirstRange'](),_0x2624b7=_0x3317e8['getFirstRange']();if((0x0==_0x79b082||0x1==_0x79b082)&&0x2==_0x2a16dc&&_0x33b7c7['isIntersecting'](_0x2624b7))return!0x0;if(0x2==_0x79b082&&0x3==_0x2a16dc){const _0xcd3bf=_0x42557d['_findSuggestions'](_0x33b7c7,'insertion')['filter'](({suggestion:_0x450c91,meta:_0x5e48a8})=>_0x5e48a8['isOwn']&&'convertInlineImageToBlock'==_0x450c91['subType']);if(_0xcd3bf['length']>0x1&&_0x2624b7['end']['isEqual'](_0x33b7c7['start']))return!0x0;if(0x1==_0xcd3bf['length']&&(_0x33b7c7['start']['isEqual'](_0x2624b7['end'])||_0x33b7c7['end']['isEqual'](_0x2624b7['start'])))return!0x0;}if(0x3==_0x79b082&&0x3==_0x2a16dc&&_0x33b7c7['start']['isBefore'](_0x2624b7['start'])){const _0x30b5bf=_0x33b7c7['end']['nodeAfter'],_0x2a1147=_0x2624b7['start']['nodeBefore'];return _0x43761d['isBlockImage'](_0x30b5bf)&&_0x30b5bf===_0x2a1147;}return!0x1;}function _0xccdc97(_0x28194a,_0x363cec){return _0x44e80d(_0x28194a,_0x363cec)?[_0x28194a,_0x363cec]:_0x44e80d(_0x363cec,_0x28194a)?[_0x363cec,_0x28194a]:null;}_0x5d3739['plugins']['has']('ImageResize')&&(_0x42557d['enableDefaultAttributesIntegration']('resizeImage'),_0x42557d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x41c173,'FORMAT_IMAGE_SIZE'))),_0x5d3739['plugins']['has']('ImageTextAlternativeEditing')&&_0x42557d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5d3739['plugins']['has']('PictureEditing')&&_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x25df1f=>{if('attribute'!=_0x25df1f['type'])return;const {data:_0x18ce94}=_0x25df1f;return _0x18ce94&&'sources'==_0x18ce94['key']?{'type':'format','content':''}:void 0x0;}),_0x5d3739['plugins']['has']('ImageSizeAttributes')&&_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x5aea7e=>{if('attribute'!=_0x5aea7e['type'])return;const {data:_0x3e3751}=_0x5aea7e;return!_0x3e3751||'width'!=_0x3e3751['key']&&'height'!=_0x3e3751['key']?void 0x0:{'type':'format','content':''};}),_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x312a03=>{if(!!_0x1b3e9b['find'](({type:_0x382ecc,subType:_0x79d527})=>_0x312a03['type']==_0x382ecc&&_0x312a03['subType']==_0x79d527))return _0x312a03['previous']?{}:void 0x0;}),_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x1b7c33=>{if('insertion'==_0x1b7c33['type']||'deletion'==_0x1b7c33['type']){const _0x16d0dc=_0x1b7c33['getContainedElement']();if(_0x16d0dc&&_0x16d0dc['is']('element','caption'))return{'type':'insertion'==_0x1b7c33['type']?'addObject':'removeObject','element':_0x16d0dc,'quantity':0x1};}}),_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x2452ec=>'formatBlock'==_0x2452ec['type']&&'convertInlineImageToBlock'==_0x2452ec['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2452ec['type']&&'convertBlockImageToInline'==_0x2452ec['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x42557d['descriptionFactory']['registerDescriptionCallback'](_0x26a1be=>{if('attribute'!=_0x26a1be['type'])return;const {data:_0x506f44}=_0x26a1be;if(!_0x506f44||'alt'!=_0x506f44['key'])return;const _0x2dacd9=_0x506f44['newValue'];return _0x2dacd9?{'type':'format','content':o(_0x41c173,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2dacd9+'\x22')}:{'type':'format','content':o(_0x41c173,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d8a0f=this['editor'],_0x267f95=_0x1d8a0f['locale'];_0x1d8a0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x185877=>{if('formatBlock'!=_0x185877['type']&&'formatInline'!=_0x185877['type'])return;const {data:_0xca92cb}=_0x185877;if(_0xca92cb){if('imageTextAlternative'==_0xca92cb['commandName']){const _0x22c7a3=_0xca92cb['commandParams'][0x0]['newValue'];return _0x22c7a3?{'type':'format','content':o(_0x267f95,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22c7a3+'\x22')}:{'type':'format','content':o(_0x267f95,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xca92cb['commandName']){const _0x1d114d=_0xca92cb['commandParams'][0x0]['width'];return _0x1d114d?{'type':'format','content':o(_0x267f95,'*Set\x20image\x20width:*\x20%0',_0x1d114d)}:{'type':'format','content':o(_0x267f95,'*Reset\x20image\x20width*')};}}});}}class at extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5d465e=this['editor']['locale'],_0x240e61=this['editor']['plugins']['get']('TrackChangesEditing');_0x240e61['enableDefaultAttributesIntegration']('replaceImageSource'),_0x240e61['descriptionFactory']['registerDescriptionCallback'](_0x574793=>{if('attribute'!=_0x574793['type'])return;const {data:_0x52baa1}=_0x574793;return _0x52baa1&&'src'==_0x52baa1['key']?_0x52baa1['newValue']&&_0x52baa1['oldValue']?{'type':'format','content':o(_0x5d465e,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20960d=this['editor']['plugins']['get']('TrackChangesEditing');_0x20960d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20960d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20960d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20960d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x198b0b=this['editor'],_0x2dfeb4=_0x198b0b['locale'];_0x198b0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5113f0=>{if('formatBlock'!=_0x5113f0['type']&&'formatInline'!=_0x5113f0['type'])return;const {data:_0x29f26e}=_0x5113f0;if(!_0x29f26e||'replaceImageSource'!=_0x29f26e['commandName'])return;return{'type':'format','content':o(_0x2dfeb4,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x4942e1{['afterInit'](){const _0x3644a6=this['editor'];if(!_0x3644a6['plugins']['has']('ImageStyleEditing'))return;const _0xf52258=_0x3644a6['plugins']['get']('TrackChangesEditing'),_0x7821e0=_0x3644a6['plugins']['get']('ImageUtils'),_0x4786d5={};_0xf52258['enableCommand']('imageStyle',(_0x15bc5e,_0x4de02c)=>{const _0x223f35=_0x3644a6['plugins']['get']('Users')['me'],_0x25a3dd=_0x3644a6['commands']['get']('imageStyle');let _0x2db209=_0x7821e0['getClosestSelectedImageElement'](_0x3644a6['model']['document']['selection']),_0x9f6db9=_0x3644a6['model']['createRangeOn'](_0x2db209),_0x5247d6=_0x25a3dd['value'];if(_0x5247d6==_0x4de02c['value'])return;const _0x256e22={'commandName':'imageStyle','commandParams':[_0x4de02c],'formatGroupId':_0x512e19()};_0x3644a6['model']['change'](()=>{if(_0xf52258['getSuggestions']()['filter'](_0x2f003b=>_0x2f003b['isInContent']&&_0x223f35==_0x2f003b['author']&&('formatBlock'==_0x2f003b['type']||'formatInline'==_0x2f003b['type'])&&('imageStylePreApply'==_0x2f003b['subType']||'imageStylePostApply'==_0x2f003b['subType'])&&_0x2f003b['getFirstRange']()['isEqual'](_0x9f6db9))['forEach'](_0x2f8975=>_0xf52258['discardSuggestion'](_0x2f8975['head'])),_0x2db209=_0x7821e0['getClosestSelectedImageElement'](_0x3644a6['model']['document']['selection']),_0x9f6db9=_0x3644a6['model']['createRangeOn'](_0x2db209),_0x25a3dd['refresh'](),_0x3644a6['commands']['get']('imageTypeInline')['refresh'](),_0x3644a6['commands']['get']('imageTypeBlock')['refresh'](),_0x5247d6=_0x25a3dd['value'],_0x5247d6!=_0x4de02c['value'])return _0x7821e0['isInlineImage'](_0x2db209)&&_0x25a3dd['shouldConvertImageType'](_0x4de02c['value'],_0x2db209)?(_0x15bc5e({..._0x4de02c,'setImageSizes':!0x1}),_0x2db209=_0x7821e0['getClosestSelectedImageElement'](_0x3644a6['model']['document']['selection']),void _0xf52258['markBlockFormat'](_0x2db209,{..._0x256e22,'commandReversedParams':[{'value':_0x5247d6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x7821e0['isBlockImage'](_0x2db209)?_0xf52258['markBlockFormat'](_0x2db209,_0x256e22,[],'imageStylePostApply'):_0xf52258['markInlineFormat'](_0x9f6db9,_0x256e22,'imageStylePostApply'));});});for(const _0x5ec2d4 of _0x3644a6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4786d5[_0x5ec2d4['name']]=_0x5ec2d4['title']['toLowerCase']();_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c529b])=>{_0x7821e0['setImageNaturalSizeAttributes'](_0x5c529b['getContainedElement']());}),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x41da0c,_0x140ef2)=>{_0xf52258['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x41da0c,{'commandName':_0x140ef2['commandName'],'commandParams':_0x140ef2['commandReversedParams']});}),_0xf52258['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2a0940,_0x51d51e){if(_0x2023da(_0x2a0940,_0x51d51e))return[_0x2a0940,_0x51d51e];if(_0x2023da(_0x51d51e,_0x2a0940))return[_0x51d51e,_0x2a0940];return null;});const _0x69b018=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2023da(_0x439c5d,_0x4f0edc){const _0xa6d295=_0x69b018['findIndex'](({type:_0x24b624,subType:_0x2aebf7})=>_0x439c5d['type']==_0x24b624&&_0x439c5d['subType']==_0x2aebf7),_0x1cf749=_0x69b018['findIndex'](({type:_0x5e54e1,subType:_0x3ac9c8})=>_0x4f0edc['type']==_0x5e54e1&&_0x4f0edc['subType']==_0x3ac9c8);if(_0xa6d295<0x0||_0x1cf749<0x0)return!0x1;const _0x3142b9=_0x439c5d['getFirstRange'](),_0x36c153=_0x4f0edc['getFirstRange']();if((0x0==_0xa6d295||0x1==_0xa6d295)&&0x2==_0x1cf749&&_0x3142b9['isIntersecting'](_0x36c153))return!0x0;if(0x2==_0xa6d295&&0x3==_0x1cf749){const _0x1ac15a=_0xf52258['_findSuggestions'](_0x3142b9,'insertion')['filter'](({suggestion:_0x112a35,meta:_0x235adf})=>_0x235adf['isOwn']&&'convertInlineImageToBlock'==_0x112a35['subType']);if(_0x1ac15a['length']>0x1&&_0x36c153['end']['isEqual'](_0x3142b9['start']))return!0x0;if(0x1==_0x1ac15a['length']&&(_0x3142b9['start']['isEqual'](_0x36c153['end'])||_0x3142b9['end']['isEqual'](_0x36c153['start'])))return!0x0;}if(0x3==_0xa6d295&&0x3==_0x1cf749&&_0x3142b9['start']['isBefore'](_0x36c153['start'])){const _0x3ad0b4=_0x3142b9['end']['nodeAfter'],_0x89d943=_0x36c153['start']['nodeBefore'];return _0x7821e0['isBlockImage'](_0x3ad0b4)&&_0x3ad0b4===_0x89d943;}return!0x1;}_0x3644a6['model']['document']['registerPostFixer'](()=>{let _0x1a5515=!0x1;const _0x494451=Array['from'](_0x3644a6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2517df,data:_0x35209b}of _0x494451){const {group:_0xa6d62d,type:_0x2aad5a,subType:_0x312b5e,id:_0x3fe45f}=_0xf52258['_splitMarkerName'](_0x2517df);if('suggestion'==_0xa6d62d&&_0xf52258['hasSuggestion'](_0x3fe45f)){if('formatBlock'==_0x2aad5a&&('imageStylePreApply'==_0x312b5e||'imageStylePostApply'==_0x312b5e)){const _0x2086d0=_0xf52258['getSuggestion'](_0x3fe45f);if(_0x35209b['newRange']){const _0x3eb78c=_0x2086d0['getFirstRange']()['getContainedElement']();if(_0x7821e0['isBlockImage'](_0x3eb78c))continue;_0xf52258['discardSuggestion'](_0x2086d0),_0x1a5515=!0x0;}}if('insertion'==_0x2aad5a&&'imageCaption'==_0x312b5e&&!_0x35209b['newRange']){const _0x139753=_0xf52258['getSuggestion'](_0x3fe45f);_0x139753['next']&&_0x139753['next']['isInContent']&&(_0xf52258['discardSuggestion'](_0x139753['next']),_0x1a5515=!0x0);}}}return _0x1a5515;}),this['_registerLegacyDescription'](_0x4786d5);}['_registerLegacyDescription'](_0x30b822){const _0x54a8ce=this['editor'],_0x2e7889=_0x54a8ce['locale'];_0x54a8ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cdb99=>{if('formatBlock'!=_0x3cdb99['type']&&'formatInline'!=_0x3cdb99['type'])return;const {data:_0x5b839c}=_0x3cdb99;if(!_0x5b839c||'imageStyle'!=_0x5b839c['commandName'])return;const _0x41887c=_0x5b839c['commandParams'][0x0]['value'];return _0x1365e3('side'===_0x41887c?o(_0x2e7889,'FORMAT_SIDE_IMAGE'):_0x30b822[_0x41887c]||_0x41887c);function _0x1365e3(_0x21ca62){return{'type':'format','content':o(_0x2e7889,'*Format:*\x20%0',_0x21ca62)};}});}}class ut extends _0x4942e1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4a4146){super(_0x4a4146),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3c88cd=this['editor'],_0x38eaf3=_0x3c88cd['commands']['get']('importWord'),_0x52110a=_0x3c88cd['commands']['get']('trackChanges');_0x38eaf3&&(_0x38eaf3['on']('execute',(_0x5461f4,[,_0x172a3d])=>{this['_trackChangesValueDuringImport']=_0x52110a['value'],_0x172a3d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x38eaf3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x38eaf3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x52110a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3c88cd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2ce683,_0xc23ece){const {suggestions:_0x1b2414}=_0xc23ece,_0x29c54d=this['editor']['commands']['get']('trackChanges'),_0x30f2e1=_0x29c54d['value'];this['_trackChangesValueDuringImport']!==_0x30f2e1&&(_0x29c54d['execute'](),this['_trackChangesExecuted']=!0x0),_0x1b2414&&_0x1b2414['forEach'](({id:_0x566aa4,type:_0x2fa7e3,author:_0x2dfc3b,created_at:_0x338941})=>{const _0x263f4a={'id':_0x566aa4,'type':_0x2fa7e3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2dfc3b,'createdAt':_0x338941?new Date(_0x338941):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x263f4a);});}}class ft extends _0x4942e1{['afterInit'](){const _0xd8369f=this['editor'],_0x3da642=_0xd8369f['plugins']['get']('TrackChangesEditing');if(_0xd8369f['plugins']['has']('IndentEditing')&&(_0x3da642['enableCommand']('indent'),_0x3da642['enableCommand']('outdent')),_0xd8369f['plugins']['has']('IndentBlock')){for(const _0x380a60 of['indentBlock','outdentBlock'])_0x3da642['enableDefaultAttributesIntegration'](_0x380a60);}const _0x2a56c0=_0xd8369f['locale'];_0x3da642['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2a56c0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf55138=this['editor'],_0x31ba03=_0xf55138['locale'],_0x322c7d=_0xf55138['plugins']['get']('TrackChangesEditing');_0x322c7d['descriptionFactory']['registerDescriptionCallback'](_0x1782b4=>{if('formatBlock'!=_0x1782b4['type'])return;const {data:_0x1035c2}=_0x1782b4;if(!_0x1035c2)return;if('indentBlock'!=_0x1035c2['commandName']&&'outdentBlock'!=_0x1035c2['commandName'])return;const _0x2d45da=_0x1782b4['getItems']()[0x0],_0x5932c2=_0x322c7d['descriptionFactory']['getItemLabel'](_0x2d45da);return'indentBlock'==_0x1035c2['commandName']?{'type':'format','content':o(_0x31ba03,'*Indent:*\x20%0',_0x5932c2)}:'outdentBlock'==_0x1035c2['commandName']?{'type':'format','content':o(_0x31ba03,'*Outdent:*\x20%0',_0x5932c2)}:void 0x0;});}}class ht extends _0x4942e1{static get['requires'](){return[_0x51147b];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x4942e1{['afterInit'](){const _0x3ac9f9=this['editor'];if(!_0x3ac9f9['plugins']['has']('LinkEditing'))return;const _0x2c1175=_0x3ac9f9['plugins']['get']('TrackChangesEditing'),_0xd83c09=_0x3ac9f9['commands']['get']('link');_0x2c1175['enableDefaultAttributesIntegration']('link'),_0x2c1175['enableDefaultAttributesIntegration']('unlink');for(const _0x150746 of _0xd83c09['manualDecorators'])_0x2c1175['descriptionFactory']['registerAttributeLabel'](_0x150746['id'],'link\x20('+_0x150746['label']['toLowerCase']()+')');_0x2c1175['descriptionFactory']['registerDescriptionCallback'](_0x20c5a0=>{if('attribute'!=_0x20c5a0['type'])return;const {data:_0x66f5fc}=_0x20c5a0;if(!_0x66f5fc||'linkHref'!=_0x66f5fc['key'])return;const _0x5d8b0e=_0x66f5fc['newValue'],_0x584b2=_0x3ac9f9['locale'];return{'type':'format','content':null==_0x5d8b0e?o(_0x584b2,'*Remove\x20link*'):o(_0x584b2,'*Set\x20link:*\x20%0','\x22'+_0x5d8b0e+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f95a4=this['editor'],_0x1b48e3=_0x3f95a4['locale'];_0x3f95a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508824=>{if('formatInline'!=_0x508824['type'])return;const {data:_0x38a883}=_0x508824;if(_0x38a883){if('link'==_0x38a883['commandName']){const _0xc612d3=_0x38a883['commandParams'][0x0];return{'type':'format','content':o(_0x1b48e3,'*Set\x20link:*\x20%0','\x22'+_0xc612d3+'\x22')};}return'unlink'==_0x38a883['commandName']?{'type':'format','content':o(_0x1b48e3,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x4942e1{['afterInit'](){const _0x14f391=this['editor'],_0x5d650b=_0x14f391['locale'];if(!_0x14f391['plugins']['has']('LegacyListEditing'))return;const _0x3736db=_0x14f391['plugins']['get']('TrackChangesEditing'),_0x84ba69=_0x14f391['plugins']['has']('LegacyTodoListEditing');function _0x51f47b(_0x1615e5){return()=>{const _0x10a66c=_0x14f391['model']['document']['selection'],_0x1acf6d=_0x14f391['commands']['get'](_0x1615e5);if(_0x1acf6d['value'])return void _0x14f391['execute']('paragraph',{});const _0x373885=_0x1615e5['slice'](0x0,-0x4),_0x1b1d89=function(_0x18a230,_0x54dd54,_0x29c19c){let _0x25799d=Array['from'](_0x18a230)['filter'](_0x2595f7=>function(_0xb66703,_0xb43f8d){return _0xb43f8d['checkChild'](_0xb66703['parent'],'listItem')&&!_0xb43f8d['isObject'](_0xb66703);}(_0x2595f7,_0x29c19c));_0x25799d=_0x25799d['filter'](_0x5f5bc8=>!_0x5f5bc8['is']('element','listItem')||_0x5f5bc8['getAttribute']('listType')!=_0x54dd54);const _0x591661=new Set();for(const _0x33eca4 of _0x25799d)_0x33eca4['is']('element','listItem')?_0x591661['add'](Le(_0x33eca4)):_0x591661['add'](_0x33eca4);return Array['from'](_0x591661);}(_0x10a66c['getSelectedBlocks'](),_0x373885,_0x14f391['model']['schema']);_0x14f391['model']['change'](()=>{for(const _0x7ba87e of _0x1b1d89)_0x3736db['markBlockFormat'](_0x7ba87e,{'commandName':_0x1615e5,'commandParams':[{'forceValue':!_0x1acf6d['value']}],'formatGroupId':'blockName'},Ee(_0x7ba87e));});};}function _0x2fa3ff(_0x8212b0){return()=>{const _0x1f1bd9=function(_0x52be3f){let _0x5180e3=Array['from'](_0x52be3f);const _0x503183=_0x5180e3['findIndex'](_0x301c6b=>'listItem'!=_0x301c6b['name']);return _0x503183>-0x1&&(_0x5180e3=_0x5180e3['slice'](0x0,_0x503183)),_0x5180e3;}(_0x14f391['model']['document']['selection']['getSelectedBlocks']()),_0x556efa=_0x14f391['model']['createRange'](_0x14f391['model']['createPositionAt'](_0x1f1bd9[0x0],'before'),_0x14f391['model']['createPositionAt'](_0x1f1bd9[_0x1f1bd9['length']-0x1],'end'));_0x14f391['model']['change'](()=>{_0x3736db['markBlockFormat'](_0x556efa,{'commandName':_0x8212b0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1bca62){const _0x4b6b61=new Set();for(const _0x28920c of _0x1bca62){let _0x42680d=_0x28920c['nextSibling'];for(;_0x42680d&&_0x42680d['getAttribute']('listIndent')>_0x28920c['getAttribute']('listIndent');)_0x4b6b61['add'](_0x42680d),_0x42680d=_0x42680d['nextSibling'];}return Array['from'](_0x4b6b61);}(_0x1f1bd9));});};}_0x3736db['enableCommand']('numberedList',_0x51f47b('numberedList')),_0x3736db['enableCommand']('bulletedList',_0x51f47b('bulletedList')),_0x84ba69&&_0x3736db['enableCommand']('todoList',_0x51f47b('todoList')),_0x3736db['enableCommand']('indentList',_0x2fa3ff('indentList')),_0x3736db['enableCommand']('outdentList',_0x2fa3ff('outdentList')),_0x84ba69&&_0x3736db['enableCommand']('checkTodoList',()=>{const _0x1fda2d=_0x14f391['commands']['get']('checkTodoList'),_0x4179ea=Array['from'](_0x1fda2d['_selectedElements']);_0x4179ea['filter'](_0x1024e5=>_0x1024e5['getAttribute']('todoListChecked')!=_0x1fda2d['value']),_0x14f391['model']['change'](()=>{for(const _0xaba2d5 of _0x4179ea)_0x3736db['markBlockFormat'](_0xaba2d5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1fda2d['value']}]});});}),_0x3736db['descriptionFactory']['registerElementLabel']('listItem',_0x2b0638=>o(_0x5d650b,'ELEMENT_LIST_ITEM',_0x2b0638)),_0x3736db['descriptionFactory']['registerDescriptionCallback'](_0x5f26f9=>{if('formatBlock'!=_0x5f26f9['type']&&'formatInline'!=_0x5f26f9['type'])return;const {data:_0x23c29e}=_0x5f26f9;if(_0x23c29e){if('numberedList'==_0x23c29e['commandName']||'bulletedList'==_0x23c29e['commandName']||'todoList'==_0x23c29e['commandName'])switch(_0x23c29e['commandName']['replace']('List','')){case'bulleted':return _0x48c806(o(_0x5d650b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48c806(o(_0x5d650b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48c806(o(_0x5d650b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23c29e['commandName'])return{'type':'format','content':o(_0x5d650b,'*Indent:*\x20%0',o(_0x5d650b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23c29e['commandName'])return{'type':'format','content':o(_0x5d650b,'*Outdent:*\x20%0',o(_0x5d650b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23c29e['commandName'])return _0x23c29e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d650b,'*Check\x20item*')}:{'type':'format','content':o(_0x5d650b,'*Uncheck\x20item*')};}function _0x48c806(_0x40992e){return{'type':'format','content':o(_0x5d650b,'*Change\x20to:*\x20%0',_0x40992e)};}});}}function Le(_0x4eff3b){const _0x20adfc=_0x4eff3b['getAttribute']('listIndent');if(0x0==_0x20adfc)return _0x4eff3b;let _0x4ebb7f=_0x4eff3b;for(;_0x4eff3b['previousSibling']&&_0x4eff3b['previousSibling']['is']('element','listItem');){const _0x510c2e=_0x4eff3b['previousSibling']['getAttribute']('listIndent');if(_0x510c2e==_0x20adfc)_0x4ebb7f=_0x4eff3b['previousSibling'];else{if(_0x510c2e<_0x20adfc)break;}_0x4eff3b=_0x4eff3b['previousSibling'];}return _0x4ebb7f;}function Ee(_0x2d3735){const _0x5bdeee=[];if(_0x2d3735['is']('element','listItem')&&_0x2d3735['getAttribute']('listIndent')>0x0){let _0x52bd8c=_0x2d3735['nextSibling'];for(;_0x52bd8c&&'listItem'==_0x52bd8c['name']&&_0x52bd8c['getAttribute']('listIndent')==_0x2d3735['getAttribute']('listIndent');)_0x5bdeee['push'](_0x52bd8c),_0x52bd8c=_0x52bd8c['nextSibling'];}return _0x5bdeee;}class mt extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x280233=this['editor']['config']['get']('list.properties'),_0xf35da2=this['editor']['plugins']['get']('TrackChangesEditing');_0x280233['styles']&&_0xf35da2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x280233['reversed']&&_0xf35da2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x280233['startIndex']&&_0xf35da2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf35da2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5195a7,_0x3fc490={}){const _0x12c6df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b2bfb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x12c6df['markMultiRangeBlockFormat'](_0x2b2bfb,{'commandName':'listStyle','commandParams':[{'type':_0x3fc490['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x582ffd,_0x5a5a77={}){const _0xb8d7e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ad568=this['_getSuggestionBlocks'](_0x145e7b=>_0x145e7b['is']('element','listItem')&&'numbered'===_0x145e7b['getAttribute']('listType'));if(_0x4ad568['length']<0x1)return;const _0x4c89ba=_0x4ad568['map'](_0x1f3516=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f3516,'before'),this['editor']['model']['createPositionAt'](_0x1f3516,0x0)));this['editor']['model']['change'](()=>{_0xb8d7e0['markMultiRangeBlockFormat'](_0x4c89ba,{'commandName':'listReversed','commandParams':[{'reversed':_0x5a5a77['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x493c91,_0x369491={}){const _0x316cb0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4306f6=this['_getSuggestionBlocks'](_0x39e191=>_0x39e191['is']('element','listItem')&&'numbered'===_0x39e191['getAttribute']('listType'));if(_0x4306f6['length']<0x1)return;const _0x4107b2=_0x4306f6['map'](_0x4fe2e1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fe2e1,'before'),this['editor']['model']['createPositionAt'](_0x4fe2e1,0x0)));this['editor']['model']['change'](()=>{_0x316cb0['markMultiRangeBlockFormat'](_0x4107b2,{'commandName':'listStart','commandParams':[{'startIndex':_0x369491['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5cd692){if('formatBlock'!=_0x5cd692['type']&&'formatInline'!=_0x5cd692['type'])return;const _0x4f3925=this['editor']['locale'],{data:_0x297771}=_0x5cd692;if(!_0x297771)return;let _0x21423c,_0x42d83e;switch(_0x297771['commandName']){case'listStyle':_0x21423c='*Change\x20to:*\x20%0',_0x42d83e={'type':'format','content':o(_0x4f3925,_0x21423c,o(_0x4f3925,this['_getTranslationKeyForListStyle'](_0x297771['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21423c=_0x297771['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x42d83e={'type':'format','content':o(_0x4f3925,_0x21423c)};break;case'listStart':_0x21423c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x42d83e={'type':'format','content':o(_0x4f3925,_0x21423c,_0x297771['commandParams'][0x0]['startIndex'])};}return _0x42d83e;}['_getSuggestionBlocksForListStyle'](){const _0x310a02=this['editor']['plugins']['get']('LegacyListUtils');let _0x19971a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x19971a[0x0]?.['is']('element','listItem')&&_0x19971a['unshift'](..._0x310a02['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x19971a[_0x19971a['length']-0x1]?.['is']('element','listItem')&&_0x19971a['push'](..._0x310a02['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x19971a=[...new Set(_0x19971a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x19971a=_0x19971a['filter'](_0x4b016d=>_0x4b016d['is']('element','listItem'))),_0x19971a;}['_getSuggestionBlocks'](_0x114502){const _0x57fc10=this['editor']['plugins']['get']('LegacyListUtils');let _0x3b8197=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x114502)['map'](_0x539a4f=>{const _0x1be5cb=this['editor']['model']['createPositionAt'](_0x539a4f,0x0);return[..._0x57fc10['getSiblingNodes'](_0x1be5cb,'backward'),..._0x57fc10['getSiblingNodes'](_0x1be5cb,'forward')];})['flat']();return _0x3b8197=[...new Set(_0x3b8197)],_0x3b8197;}['_getTranslationKeyForListStyle'](_0x20d522){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x20d522)||'default')['toUpperCase']()+'_LIST_'+_0x20d522['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4942e1{['afterInit'](){const _0x1fa00d=this['editor'];if(!_0x1fa00d['plugins']['has']('MediaEmbedEditing'))return;const _0x7b195b=_0x1fa00d['plugins']['get']('TrackChangesEditing'),_0x343059=_0x1fa00d['locale'];_0x7b195b['enableCommand']('mediaEmbed'),_0x7b195b['descriptionFactory']['registerElementLabel']('media',_0x65f316=>o(_0x343059,'ELEMENT_MEDIA',_0x65f316));}}class pt extends _0x4942e1{['afterInit'](){const _0x2e68db=this['editor'];_0x2e68db['plugins']['has']('MentionEditing')&&_0x2e68db['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x4942e1{['afterInit'](){const _0x540acb=this['editor'];if(!_0x540acb['plugins']['has']('MergeFieldsEditing'))return;const _0x21904c=_0x540acb['plugins']['get']('TrackChangesEditing'),_0xd21505=_0x540acb['locale'];_0x21904c['enableCommand']('insertMergeField'),_0x21904c['enableCommand']('insertMergeFieldBlock'),_0x21904c['enableCommand']('insertMergeFieldImage'),_0x21904c['descriptionFactory']['registerElementLabel']('mergeField',_0x2b9fa8=>o(_0xd21505,'ELEMENT_MERGE_FIELD',_0x2b9fa8)),_0x21904c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x56743b=>o(_0xd21505,'ELEMENT_MERGE_FIELD',_0x56743b)),_0x21904c['descriptionFactory']['registerDescriptionCallback'](_0x20cc0b=>{if('insertion'!=_0x20cc0b['type']&&'deletion'!=_0x20cc0b['type'])return;const _0x3322bf=_0x20cc0b['getContainedElement']();if(null==_0x3322bf)return;const _0x36b939=_0x540acb['plugins']['get']('MergeFieldsEditing');let _0x130a25;switch(_0x36b939['getMergeFieldType'](_0x3322bf)){case null:return;case'image':{const _0x5c64a6=_0x36b939['unwrapAffixes'](_0x3322bf['getAttribute']('src'));_0x130a25=_0x36b939['getLabel'](_0x5c64a6)||_0x5c64a6;break;}default:{const _0x584881=_0x3322bf['getAttribute']('id');_0x130a25=_0x36b939['getLabel'](_0x584881)||_0x584881;break;}}return'insertion'==_0x20cc0b['type']?{'type':'insertion','content':o(_0xd21505,'*Insert:*\x20%0','\x22'+_0x130a25+'\x22\x20'+o(_0xd21505,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xd21505,'*Remove:*\x20%0','\x22'+_0x130a25+'\x22\x20'+o(_0xd21505,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x4942e1{['afterInit'](){const _0x103136=this['editor'],_0x45c084=_0x103136['plugins']['get']('TrackChangesEditing');_0x103136['plugins']['has']('MultiLevelList')&&(_0x45c084['enableDefaultAttributesIntegration']('multiLevelList'),_0x45c084['descriptionFactory']['registerDescriptionCallback'](_0x547bc0=>this['handleDescriptions'](_0x547bc0)));}['handleDescriptions'](_0x3c6991){const _0x25e2ab=this['editor']['locale'],{data:_0x89c143}=_0x3c6991,_0x25e640={'type':'format','content':''};if(_0x89c143&&'listMarkerStyle'==_0x89c143['key']){if(!_0x89c143['oldValue'])return{'type':'format','content':o(_0x25e2ab,'*Set\x20format:*\x20%0',o(_0x25e2ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x89c143['newValue']+')'};if(!_0x89c143['newValue']){let _0x502205=_0x3c6991['head'];for(;_0x502205;){if(_0x502205['data']&&'listType'==_0x502205['data']['key']&&_0x502205['data']['newValue'])return _0x25e640;_0x502205=_0x502205['next'];}return{'type':'format','content':o(_0x25e2ab,'*Remove\x20format:*\x20%0',o(_0x25e2ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x89c143['oldValue']+')'};}}}}class bt extends _0x4942e1{['afterInit'](){const _0x1917e7=this['editor'];if(!_0x1917e7['plugins']['has']('PageBreakEditing'))return;_0x1917e7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x506fab=_0x1917e7['plugins']['get']('TrackChangesEditing'),_0x3e54dc=_0x1917e7['locale'];_0x506fab['descriptionFactory']['registerElementLabel']('pageBreak',_0xc19076=>o(_0x3e54dc,'ELEMENT_PAGE_BREAK',_0xc19076));}}class yt extends _0x4942e1{['afterInit'](){const _0x21bd80=this['editor'];if(!_0x21bd80['plugins']['has']('Paragraph'))return;const _0x248e4e=_0x21bd80['locale'],_0x2384cc=_0x21bd80['plugins']['get']('TrackChangesEditing');_0x2384cc['descriptionFactory']['registerElementLabel']('paragraph',_0x2dcdae=>o(_0x248e4e,'ELEMENT_PARAGRAPH',_0x2dcdae)),_0x2384cc['enableDefaultAttributesIntegration']('paragraph'),_0x2384cc['enableCommand']('insertParagraph');const _0x2bd9ac=_0x2384cc['descriptionFactory'];_0x2bd9ac['registerDescriptionCallback'](_0x34628c=>{if('insertion'!==_0x34628c['type'])return;const {start:_0x59d626,end:_0x367e81}=_0x34628c['getFirstRange']();if(!_0x59d626['isTouching'](_0x367e81)||!_0x59d626['nodeAfter'])return;const _0x2d4f40=_0x21bd80['model']['schema'],_0x220f43=_0x59d626['nodeAfter'];return _0x2d4f40['isBlock'](_0x220f43)&&!_0x2d4f40['isLimit'](_0x220f43)&&_0x2d4f40['checkChild'](_0x220f43,'$text')?{'type':'insertion','content':o(_0x248e4e,'*Insert:*\x20%0',_0x2bd9ac['getItemLabel'](_0x220f43,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c0aff=this['editor'],_0x470699=_0x2c0aff['locale'];_0x2c0aff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x199900=>{if('formatBlock'!=_0x199900['type'])return;const {data:_0xfe4555}=_0x199900;return _0xfe4555&&'paragraph'==_0xfe4555['commandName']?{'type':'format','content':o(_0x470699,'*Change\x20to:*\x20%0',o(_0x470699,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x4942e1{['afterInit'](){const _0x102d48=this['editor'];_0x102d48['commands']['get']('replaceSource')&&_0x102d48['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x4942e1{['afterInit'](){const _0x16455a=this['editor'];if(!_0x16455a['plugins']['has']('RemoveFormatEditing'))return;_0x16455a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ef3d8=this['editor'];_0x2ef3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30f4f1=>{if('formatBlock'!=_0x30f4f1['type']&&'formatInline'!=_0x30f4f1['type'])return;const {data:_0x50e14f}=_0x30f4f1;return _0x50e14f&&'removeFormat'==_0x50e14f['commandName']?{'type':'format','content':o(_0x2ef3d8['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x4942e1{['afterInit'](){const _0x4158a9=this['editor'];if(!_0x4158a9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e6c4a=_0x4158a9['plugins']['get']('TrackChangesEditing');_0x3e6c4a['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e6c4a['enableCommand']('goToNextRestrictedEditingException');const _0x50a5b4=_0x4158a9['plugins']['get']('RestrictedEditingModeEditing');_0x50a5b4['enableCommand']('trackChanges'),_0x50a5b4['enableCommand']('acceptSuggestion'),_0x50a5b4['enableCommand']('discardSuggestion'),_0x50a5b4['enableCommand']('acceptAllSuggestions'),_0x50a5b4['enableCommand']('discardAllSuggestions'),_0x50a5b4['enableCommand']('acceptSelectedSuggestions'),_0x50a5b4['enableCommand']('discardSelectedSuggestions');}}class At extends _0x4942e1{['afterInit'](){const _0x15264a=this['editor'];if(!_0x15264a['plugins']['has']('ShiftEnter'))return;const _0x5b291b=_0x15264a['plugins']['get']('TrackChangesEditing');_0x5b291b['enableCommand']('shiftEnter'),_0x5b291b['descriptionFactory']['registerElementLabel']('softBreak',_0x106921=>o(_0x15264a['locale'],'ELEMENT_LINE_BREAK',_0x106921));}}function an(_0xeeff30,_0x1b1bc3,_0x2744c3){const _0x256bff=[];for(const _0x1e80bf of _0x1b1bc3['getItems']())_0x1e80bf['hasAttribute'](_0xeeff30)&&_0x256bff['push'](_0x2744c3['createRangeOn'](_0x1e80bf));return _0x256bff;}class _t extends _0x4942e1{['afterInit'](){this['editor']['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand']());}['_enableEditingExceptionCommand'](){const _0x385bc4=this['editor'],_0x2dd961=_0x385bc4['model'],_0x55a175=_0x385bc4['locale'],_0x164686=_0x385bc4['plugins']['get']('TrackChangesEditing'),_0x3b65fa='restrictedEditingException',_0x118a84=_0x385bc4['commands']['get'](_0x3b65fa);_0x164686['enableCommand'](_0x3b65fa,(_0x4584bd,_0x2e7d62={})=>{const _0x160655=_0x2dd961['document']['selection'];if(_0x160655['isCollapsed'])return void _0x4584bd(_0x2e7d62);const _0xf5ad3e=void 0x0!==_0x2e7d62['forceValue']?_0x2e7d62['forceValue']:!_0x118a84['value'];_0x2dd961['change'](()=>{const _0x2eea0b=Array['from'](_0x160655['getRanges']());for(const _0x5a863c of _0x2eea0b){const _0x267b1d=_0xf5ad3e?[_0x5a863c]:an(_0x3b65fa,_0x5a863c,_0x2dd961);for(const _0x45b0ba of _0x267b1d)_0x164686['markInlineFormat'](_0x45b0ba,{'commandName':_0x3b65fa,'commandParams':[{'forceValue':_0xf5ad3e}]});}});}),_0x164686['descriptionFactory']['registerDescriptionCallback'](_0x14378e=>{if('formatBlock'!=_0x14378e['type']&&'formatInline'!=_0x14378e['type'])return;const {data:_0x42be8e}=_0x14378e;return _0x42be8e&&_0x42be8e['commandName']==_0x3b65fa?_0x42be8e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55a175,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x55a175,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x554377=this['editor'],_0x594a01=_0x554377['locale'],_0x48fab2=_0x554377['plugins']['get']('TrackChangesEditing'),_0x30b1c9='restrictedEditingExceptionBlock',_0x52dd14=this['editor']['commands']['get'](_0x30b1c9);_0x48fab2['enableCommand'](_0x30b1c9,(_0x4edaae,_0xd16013={})=>{const _0x53eccd=this['editor']['model']['document']['selection'],_0x5e155a=_0xd16013&&void 0x0!==_0xd16013['forceValue']?_0xd16013['forceValue']:!_0x52dd14['value'];let _0x49a14a=[];if(_0x5e155a){const _0x241160=Array['from'](_0x53eccd['getSelectedBlocks']())['filter'](_0x1a7361=>function(_0x5ddfcf){return!!_0x5ddfcf['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1a7361)||function(_0x1a5f25,_0x3565df){const _0x3d089a=_0x3565df['createContext'](_0x1a5f25['parent']);if(!_0x3565df['checkChild'](_0x3d089a,'restrictedEditingException'))return!0x1;if(!_0x3565df['checkChild'](_0x3d089a['push']('restrictedEditingException'),_0x1a5f25))return!0x1;return!0x0;}(_0x1a7361,this['editor']['model']['schema']));_0x49a14a=to(_0x241160,_0x554377['model']);}else{const _0x7edb89=Array['from'](_0x53eccd['getSelectedBlocks']())['map'](_0x4ca87e=>function(_0x5622e8){let _0x4c0a00=_0x5622e8;for(;_0x4c0a00['parent'];){if('restrictedEditingException'==_0x4c0a00['parent']['name'])return _0x4c0a00;_0x4c0a00=_0x4c0a00['parent'];}return null;}(_0x4ca87e))['filter'](_0x40bf0f=>!!_0x40bf0f);_0x49a14a=to(_0x7edb89,_0x554377['model']);}_0x554377['model']['change'](()=>{for(const _0x15b6a2 of _0x49a14a)_0x48fab2['markBlockFormat'](_0x15b6a2,{'commandName':_0x30b1c9,'commandParams':[{'forceValue':_0x5e155a}]});});}),_0x48fab2['descriptionFactory']['registerDescriptionCallback'](_0x23ef31=>{const {data:_0x272b0c}=_0x23ef31;if(_0x272b0c&&_0x272b0c['commandName']==_0x30b1c9)return _0x272b0c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x594a01,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x594a01,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x4942e1{['afterInit'](){const _0x582273=this['editor'];if(!_0x582273['plugins']['has']('Style')||!_0x582273['plugins']['has']('DataSchema'))return;const _0x4e4f45=_0x582273['plugins']['get']('TrackChangesEditing'),_0x239b11=_0x582273['locale'],_0x5dfaf3=_0x582273['config']['get']('style')||{},_0x4e5100=_0x582273['plugins']['get']('GeneralHtmlSupport'),_0x5c3133=_0x582273['plugins']['get']('StyleUtils')['normalizeConfig'](_0x582273['plugins']['get']('DataSchema'),_0x5dfaf3['definitions']);_0x4e4f45['enableDefaultAttributesIntegration']('style');const _0xf6ad44=new Set();for(const _0x10acde of _0x5c3133['block']){const _0x11e530=_0x4e5100['getGhsAttributeNameForElement'](_0x10acde['element']);_0xf6ad44['add'](_0x11e530);}const _0x1b025e=new Set();for(const _0x5f1b8f of _0x5c3133['inline']){const _0x46dda2=_0x4e5100['getGhsAttributeNameForElement'](_0x5f1b8f['element']);_0x1b025e['add'](_0x46dda2);for(const _0x348161 of _0x5f1b8f['ghsAttributes'])_0x1b025e['add'](_0x348161);}for(const _0x5d036f of _0xf6ad44)_0x4e4f45['descriptionFactory']['registerAttributeLabel'](_0x5d036f,o(_0x239b11,'FORMAT_STYLE'));for(const _0x32451a of _0x1b025e)_0x4e4f45['descriptionFactory']['registerAttributeLabel'](_0x32451a,o(_0x239b11,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c30c4=this['editor'],_0x42c1ce=_0x1c30c4['locale'];_0x1c30c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x328c61=>{if('formatBlock'!=_0x328c61['type']&&'formatInline'!=_0x328c61['type'])return;const {data:_0x3b04f0}=_0x328c61;return _0x3b04f0&&'style'===_0x3b04f0['commandName']?_0x3b04f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42c1ce,'*Set\x20format:*\x20%0',_0x3b04f0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x42c1ce,'*Remove\x20format:*\x20%0',_0x3b04f0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x4942e1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x7fdc74){super(_0x7fdc74),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x23fbf0=this['editor'],_0x3fe5e9=_0x23fbf0['model']['document']['selection'];if(!_0x23fbf0['plugins']['has']('TableEditing'))return;const _0x1d5a19=_0x23fbf0['locale'],_0x2e51a6=_0x23fbf0['plugins']['get']('TrackChangesEditing'),_0xcdcb74=_0x23fbf0['plugins']['get']('TableUtils');_0x2e51a6['descriptionFactory']['registerElementLabel']('table',_0x572d62=>o(_0x1d5a19,'ELEMENT_TABLE',_0x572d62)),this['_setupColumnsRowsFixing'](),_0x2e51a6['enableCommand']('insertTable'),_0x2e51a6['enableCommand']('selectTableRow'),_0x2e51a6['enableCommand']('selectTableColumn');for(const _0x33d08c of['insertTableRowAbove','insertTableRowBelow']){const _0x43cb74=_0x23fbf0['commands']['get'](_0x33d08c);_0x2e51a6['enableCommand'](_0x33d08c,_0x458fdd=>{_0x23fbf0['model']['change'](_0x4c4a59=>{_0x458fdd();const _0xec28dd='above'===_0x43cb74['order'],_0x58110f=_0xcdcb74['getSelectionAffectedTableCells'](_0x3fe5e9),_0x3de82d=_0xcdcb74['getRowIndexes'](_0x58110f),_0x35ab69=_0xec28dd?_0x3de82d['first']-0x1:_0x3de82d['last']+0x1,_0x2ccb17=_0x58110f[0x0]['findAncestor']('table'),_0x1c56c3=_0xcdcb74['createTableWalker'](_0x2ccb17,{'startRow':_0x35ab69,'endRow':_0x35ab69}),_0x5dd239=Array['from'](_0x1c56c3)['map'](_0x263ff3=>_0x4c4a59['createRangeOn'](_0x263ff3['cell']));_0x2e51a6['markMultiRangeInsertion'](_0x5dd239,'tableRow');});});}for(const _0x14d0e3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x13773e=_0x23fbf0['commands']['get'](_0x14d0e3);_0x2e51a6['enableCommand'](_0x14d0e3,_0x500de4=>{_0x23fbf0['model']['change'](_0x298e0c=>{_0x500de4();const _0x577b3e='left'===_0x13773e['order'],_0x2cb285=_0xcdcb74['getSelectionAffectedTableCells'](_0x3fe5e9),_0x1aa9a2=_0xcdcb74['getColumnIndexes'](_0x2cb285),_0x3be576=_0x577b3e?_0x1aa9a2['first']-0x1:_0x1aa9a2['last']+0x1,_0x4b81e8=_0x2cb285[0x0]['findAncestor']('table'),_0x2f8378=_0xcdcb74['createTableWalker'](_0x4b81e8,{'startRow':0x0,'column':_0x3be576,'includeAllSlots':!0x1}),_0x9d9cb4=Array['from'](_0x2f8378)['map'](_0x5df361=>_0x298e0c['createRangeOn'](_0x5df361['cell']));_0x2e51a6['markMultiRangeInsertion'](_0x9d9cb4,'tableColumn');});});}for(const _0x4abd15 of['removeTableRow','removeTableColumn']){const _0x4ffe9b=_0x4abd15['substr'](0xb),_0x56d345=_0x4ffe9b['toLowerCase'](),_0x23465e=_0x56d345['substr'](0x0,0x3)+'span',_0x6c9991='table'+_0x4ffe9b,_0x4f45e='min'+_0x4ffe9b,_0x216bb2='max'+_0x4ffe9b;_0x2e51a6['enableCommand'](_0x4abd15,()=>{_0x23fbf0['model']['change'](_0x1f0fa1=>{const _0x27abd2=_0xcdcb74['getSelectionAffectedTableCells'](_0x3fe5e9),_0x38ec13=_0x27abd2[0x0]['findAncestor']('table');let _0x2c6982;if('removeTableRow'==_0x4abd15){const _0x52e900=_0xcdcb74['getRowIndexes'](_0x27abd2);_0x2c6982={'startRow':_0x52e900['first'],'endRow':_0x52e900['last'],'includeAllSlots':!0x0};}else{const _0x56022a=_0xcdcb74['getColumnIndexes'](_0x27abd2);_0x2c6982={'startColumn':_0x56022a['first'],'endColumn':_0x56022a['last'],'includeAllSlots':!0x0};}const _0x5054a5=_0xcdcb74['createTableWalker'](_0x38ec13,_0x2c6982),_0x2cda03=Array['from'](_0x5054a5)['map'](({cell:_0x5a613d})=>_0x5a613d),_0xee7d22=_e(_0x2cda03['filter'](_0x54e7db=>_0x54e7db['hasAttribute'](_0x23465e))),_0x9251f0=_e(_0x2cda03['filter'](_0x2f6579=>!_0x2f6579['hasAttribute'](_0x23465e)))['map'](_0x5ee142=>_0x1f0fa1['createRangeOn'](_0x5ee142)),_0x2209e3=_0x2e51a6['markMultiRangeDeletion'](_0x9251f0,_0x6c9991);if(_0x2209e3&&('tableRow'==_0x2209e3['subType']||'tableColumn'==_0x2209e3['subType'])){const _0x4853cb=this['_getSuggestionCoords'](_0x2209e3);for(const _0x5214ef of _0xee7d22){const _0x3bc448=_0x1f0fa1['createRangeOn'](_0x5214ef),_0x23c621=_0xcdcb74['getCellLocation'](_0x5214ef),_0x3a9ad6=_0x5214ef['getAttribute'](_0x23465e)-0x1,_0x5d6e77=_0x4853cb[_0x4f45e],_0x4b0bbb=_0x4853cb[_0x216bb2];_0x5d6e77<=_0x23c621[_0x56d345]&&_0x23c621[_0x56d345]+_0x3a9ad6<=_0x4b0bbb&&_0x2209e3['addRange'](_0x3bc448);}}});});}function _0x32ce30(_0x41e941){const _0x398626=Array['from'](_0x3fe5e9['getRanges']())['map'](_0x78c44a=>_0x5bf397['fromRange'](_0x78c44a));_0x23fbf0['model']['change'](_0x44a065=>{const _0x5e90c4=_0x44a065['batch'];_0x41e941=_0x41e941['filter'](_0x21a19d=>'$graveyard'!=_0x21a19d['root']['rootName']),_0x44a065['setSelection'](_0x41e941),_0x23fbf0['commands']['get']('removeTableRow')['refresh'](),_0x23fbf0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x23fbf0['model']['enqueueChange'](()=>{_0x23fbf0['model']['enqueueChange'](_0x5e90c4,_0x226542=>{const _0x1a42a0=_0x398626['filter'](_0x5773aa=>'$graveyard'!=_0x5773aa['root']['rootName']);_0x1a42a0['length']>0x0&&_0x226542['setSelection'](_0x1a42a0);for(const _0xdcb4db of _0x398626)_0xdcb4db['detach']();});});});}function _0x18a8a5(_0x3bbd44){_0x23fbf0['model']['change'](_0x2d2883=>{const _0x33033b=Array['from'](_0x3fe5e9['getRanges']())['map'](_0x5aabbe=>_0x5bf397['fromRange'](_0x5aabbe)),_0x215544=[];for(const _0xfce56f of _0x3bbd44)for(const _0x56e76c of _0xfce56f['getItems']({'shallow':!0x0}))_0x215544['push'](_0x56e76c);for(const _0x40f949 of _0x215544)'$graveyard'!=_0x40f949['root']['rootName']&&(_0x2d2883['setSelection'](_0x2d2883['createPositionAt'](_0x40f949,0x0)),_0x23fbf0['commands']['get']('removeTableColumn')['refresh'](),_0x23fbf0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x10b227=_0x33033b['filter'](_0x34fe34=>'$graveyard'!=_0x34fe34['root']['rootName']);_0x10b227['length']>0x0&&_0x2d2883['setSelection'](_0x10b227);for(const _0x41ab73 of _0x33033b)_0x41ab73['detach']();});}function _0x263432(_0x4a7af9,_0x2d87c3){return _0x2d87c3['every'](_0x1fd58e=>_0x4a7af9['some'](_0x102e86=>_0x102e86['end']['isEqual'](_0x1fd58e['start'])||_0x1fd58e['end']['isEqual'](_0x102e86['start'])));}function _0x2e8865(_0x46e079,_0x146ec4){return!_0x46e079['some'](_0x224b23=>_0x146ec4['some'](_0x136c6f=>_0x224b23['isIntersecting'](_0x136c6f)))&&_0x46e079['some'](_0x2b964b=>_0x146ec4['some'](_0x30fff6=>_0x2b964b['end']['isTouching'](_0x30fff6['start'])));}_0x2e51a6['descriptionFactory']['registerDescriptionCallback'](_0x29d4bd=>{if('insertion'!=_0x29d4bd['type']&&'deletion'!=_0x29d4bd['type'])return;const _0x6f719f=_0x29d4bd['getContainedElement']();if(null!=_0x6f719f&&_0x6f719f['is']('element','table')){if('insertion'==_0x29d4bd['type']){const _0x118044=_0x29d4bd['getItems']()['filter'](_0x38eb0c=>_0x38eb0c['is']('$textProxy'))['map'](_0x5b6d04=>_0x5b6d04['data']);if(_0x118044['length'])return{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x118044['join']('\x20')+'\x22'))};}if('deletion'==_0x29d4bd['type']){const _0x4836ca=_0x29d4bd['getItems']()['filter'](_0xbd3626=>_0xbd3626['is']('$textProxy'))['map'](_0x12d00d=>_0x12d00d['data']);if(_0x4836ca['length'])return{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4836ca['join']('\x20')+'\x22'))};}}}),_0x2e51a6['descriptionFactory']['registerDescriptionCallback'](_0x1bc525=>{if('tableRow'==_0x1bc525['subType']){const _0x496725=_0x1bc525['getItems']()['filter'](_0x59c6e2=>_0x59c6e2['is']('$textProxy'))['map'](_0x5864ba=>_0x5864ba['data']),_0x21e45d=this['_getSuggestionCoords'](_0x1bc525),_0x18a15c=_0x21e45d['maxRow']-_0x21e45d['minRow']+0x1;if('insertion'==_0x1bc525['type'])return _0x496725['length']?{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18a15c,'\x22'+_0x496725['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_ROW',_0x18a15c))};if('deletion'==_0x1bc525['type'])return _0x496725['length']?{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x18a15c,'\x22'+_0x496725['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_ROW',_0x18a15c))};}if('tableColumn'==_0x1bc525['subType']){const _0x4910ac=_0x1bc525['getItems']()['filter'](_0x3aca4e=>_0x3aca4e['is']('$textProxy'))['map'](_0xddab78=>_0xddab78['data']),_0x1f7ab2=this['_getSuggestionCoords'](_0x1bc525),_0x567112=_0x1f7ab2['maxColumn']-_0x1f7ab2['minColumn']+0x1;if('insertion'==_0x1bc525['type'])return _0x4910ac['length']?{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567112,'\x22'+_0x4910ac['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1d5a19,'*Insert:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_COLUMN',_0x567112))};if('deletion'==_0x1bc525['type'])return _0x4910ac['length']?{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567112,'\x22'+_0x4910ac['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1d5a19,'*Remove:*\x20%0',o(_0x1d5a19,'ELEMENT_TABLE_COLUMN',_0x567112))};}}),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32ce30),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32ce30),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x18a8a5),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x18a8a5),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x263432),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x263432),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2e8865),_0x2e51a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2e8865);}['_acceptFormatSuggestionCallbackFactory'](){const _0x846e8c=this['editor'],_0xfe4b95=_0x846e8c['model']['document']['selection'];return(_0x32ae89,_0x99fba1)=>{_0x846e8c['model']['change'](_0x2920c8=>{const {commandName:_0x2db8ff,commandParams:_0x18eae5}=_0x99fba1;let _0x12ec1e=_0x32ae89[0x0]['end']['nodeBefore'];_0x18eae5&&_0x18eae5[0x0]&&!0x1===_0x18eae5[0x0]['forceValue']&&(_0x12ec1e=_0x32ae89[0x0]['start']['nodeAfter']);const _0x19316f=_0x2920c8['createRangeIn'](_0x12ec1e);if('$graveyard'==_0x19316f['root']['rootName'])return;const _0x1f2ad9=Array['from'](_0xfe4b95['getRanges']())['map'](_0x37b127=>_0x5bf397['fromRange'](_0x37b127));_0x2920c8['setSelection'](_0x19316f),_0x846e8c['commands']['get'](_0x2db8ff)['refresh'](),_0x18eae5['push']({'forceDefaultExecution':!0x0}),_0x846e8c['execute'](_0x2db8ff,..._0x18eae5);const _0x5de560=_0x1f2ad9['filter'](_0x170f97=>'$graveyard'!=_0x170f97['root']['rootName']);_0x5de560['length']>0x0&&_0x2920c8['setSelection'](_0x5de560);for(const _0x5f5c20 of _0x1f2ad9)_0x5f5c20['detach']();});};}['_getCoordsForCells'](_0x2f761e){const _0x12db66=this['editor']['plugins']['get']('TableUtils');let _0x3f550d=Number['MAX_SAFE_INTEGER'],_0xd185f4=Number['MIN_SAFE_INTEGER'],_0x595858=Number['MAX_SAFE_INTEGER'],_0x39454a=Number['MIN_SAFE_INTEGER'];for(const _0x1c5e03 of _0x2f761e){if('$graveyard'==_0x1c5e03['root']['rootName'])continue;const {row:_0x1ca3a5,column:_0x3b6d59}=_0x12db66['getCellLocation'](_0x1c5e03),_0x149782=_0x1c5e03['hasAttribute']('rowspan')?_0x1c5e03['getAttribute']('rowspan')-0x1:0x0,_0x591c5b=_0x1c5e03['hasAttribute']('colspan')?_0x1c5e03['getAttribute']('colspan')-0x1:0x0;_0x3f550d=_0x1ca3a5<_0x3f550d?_0x1ca3a5:_0x3f550d,_0xd185f4=_0x1ca3a5+_0x149782>_0xd185f4?_0x1ca3a5+_0x149782:_0xd185f4,_0x595858=_0x3b6d59<_0x595858?_0x3b6d59:_0x595858,_0x39454a=_0x3b6d59+_0x591c5b>_0x39454a?_0x3b6d59+_0x591c5b:_0x39454a;}return{'minRow':_0x3f550d,'maxRow':_0xd185f4,'minColumn':_0x595858,'maxColumn':_0x39454a};}['_setupColumnsRowsFixing'](){const _0xc1d370=this['editor'],_0x301aa0=_0xc1d370['plugins']['get']('TrackChangesEditing'),_0x2d6cb5=_0xc1d370['plugins']['get']('TableUtils');_0xc1d370['model']['document']['on']('change:data',()=>{const _0x119811=Array['from'](_0xc1d370['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19afdf,data:_0x93380}of _0x119811){const {group:_0x1a4abb,id:_0x217c36,subType:_0x2ad343}=_0x301aa0['_splitMarkerName'](_0x19afdf);if('suggestion'!=_0x1a4abb)continue;if(null!=_0x93380['oldRange'])continue;const _0x50a22f=_0x301aa0['getSuggestion'](_0x217c36);this['_tablePostFixingSubtypes']['includes'](_0x2ad343)&&this['_tableSuggestions']['add'](_0x50a22f);}},{'priority':'low'});const _0x1ada62=(_0x4bfb91,_0x344f66)=>{let _0x2d6db8=!0x1;const _0x246b91=_0x344f66['createRangeOn'](_0x4bfb91),_0x49e57c=_0x4bfb91['findAncestor']('table'),_0x401d04=_0x2d6cb5['getCellLocation'](_0x4bfb91);for(const _0x4436d1 of this['_tableSuggestions']){const _0x4250f5=_0x4436d1['subType'],_0x51b03c=_0x4250f5['startsWith']('tablePaste'),_0x336aed=_0x4250f5['substr'](_0x51b03c?0xa:0x5),_0x97804b=_0x336aed['toLowerCase'](),_0xa594fc=_0x97804b['substr'](0x0,0x3)+'span',_0x4ea621='min'+_0x336aed,_0x1dc399='max'+_0x336aed;if(!_0x4436d1['isInContent'])continue;if(_0x49e57c!=_0x4436d1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4436d1['isIntersectingWithRange'](_0x246b91))continue;const _0x16b681=_0x4bfb91['hasAttribute'](_0xa594fc)?_0x4bfb91['getAttribute'](_0xa594fc)-0x1:0x0,_0x4cc4b8=this['_getSuggestionCoords'](_0x4436d1),_0x179179=_0x4cc4b8[_0x4ea621],_0xa4dae7=_0x4cc4b8[_0x1dc399];_0x179179<=_0x401d04[_0x97804b]&&_0x401d04[_0x97804b]+_0x16b681<=_0xa4dae7&&(_0x4436d1['addRange'](_0x246b91),_0x2d6db8=!0x0);}return _0x2d6db8;};_0xc1d370['model']['document']['registerPostFixer'](_0x522830=>{let _0x4071e3=!0x1;for(const _0x2fa66c of _0xc1d370['model']['document']['differ']['getChanges']())if('insert'==_0x2fa66c['type']){if('tableRow'==_0x2fa66c['name']){for(const _0x266e6a of _0x2fa66c['position']['nodeAfter']['getChildren']())_0x4071e3=_0x4071e3||_0x1ada62(_0x266e6a,_0x522830);}else'tableCell'==_0x2fa66c['name']&&(_0x4071e3=_0x4071e3||_0x1ada62(_0x2fa66c['position']['nodeAfter'],_0x522830));}return _0x4071e3;});}['_getSuggestionCoords'](_0x1c7cad){return this['_getCoordsForCells'](_0x1c7cad['getRanges']()['map'](_0x1a50dc=>_0x1a50dc['start']['nodeAfter']));}}function _e(_0xc1cc20){return Array['from'](new Set(_0xc1cc20)['values']());}class $t extends _0x4942e1{static get['requires'](){return[Nt];}['afterInit'](){const _0x257904=this['editor'],_0x25f219=_0x257904['model']['document']['selection'],_0x31cccb=_0x257904['locale'];if(!_0x257904['plugins']['has']('TableEditing'))return;const _0xd68d2a=_0x257904['plugins']['get']('TrackChangesEditing'),_0x52da83=_0x257904['plugins']['get']('TableUtils'),_0x5bb36f=_0x257904['plugins']['get'](Nt);_0x5bb36f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xd68d2a['enableCommand']('mergeTableCells',()=>{const _0x106ced=_0x52da83['getSelectionAffectedTableCells'](_0x257904['model']['document']['selection']);_0x257904['model']['change'](()=>{_0xd68d2a['markMultiRangeBlockFormat'](_0x106ced,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x257904['commands']['get']('mergeTableCells')['on']('execute',(_0x4e7ca1,_0x296626)=>{_0x257904['commands']['get']('trackChanges')['value']&&(_0x296626['length']>0x0&&_0x296626[_0x296626['length']-0x1]&&_0x296626[_0x296626['length']-0x1]['forceDefaultExecution']||_0xd68d2a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4e7ca1['stop']());},{'priority':'highest'});for(const _0x3a314f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x16c225=_0x257904['commands']['get'](_0x3a314f);_0xd68d2a['enableCommand'](_0x3a314f,()=>{const _0x461f27=_0x257904['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x162931=>_0x162931['is']('element','tableCell')),_0x29e18a=_0x16c225['value'];_0x257904['model']['change'](()=>{_0xd68d2a['markMultiRangeBlockFormat']([_0x461f27,_0x29e18a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55419f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x268081=_0x257904['commands']['get'](_0x55419f);_0xd68d2a['enableCommand'](_0x55419f,()=>{const _0x450407=_0x52da83['getSelectionAffectedTableCells'](_0x257904['model']['document']['selection'])[0x0],_0x5d90b3=_0x450407['findAncestor']('table'),{column:_0xaac510,row:_0x47b940}=_0x52da83['getCellLocation'](_0x450407);let _0x5a0b3b=[];if('horizontally'==_0x268081['direction']){const _0x3d3488=_0x52da83['createTableWalker'](_0x5d90b3,{'startRow':_0x47b940,'endRow':_0x47b940,'includeAllSlots':!0x0});_0x5a0b3b=Array['from'](_0x3d3488)['map'](_0x1d864d=>_0x1d864d['cell']);}else{const _0x306fec=_0x52da83['createTableWalker'](_0x5d90b3,{'column':_0xaac510,'includeAllSlots':!0x0});_0x5a0b3b=Array['from'](_0x306fec)['map'](_0x4c61fc=>_0x4c61fc['cell']);}_0x257904['model']['change'](_0x57479a=>{_0xd68d2a['markBlockFormat'](_0x57479a['createRangeOn'](_0x450407),{'commandName':_0x55419f,'commandParams':[]},_0x5a0b3b,_0x55419f);});});}_0xd68d2a['descriptionFactory']['registerDescriptionCallback'](_0x3274a0=>{if('formatBlock'!=_0x3274a0['type']&&'formatInline'!=_0x3274a0['type'])return;const {data:_0x27685b}=_0x3274a0;return _0x27685b&&'mergeTableCells'==_0x27685b['commandName']?{'type':'format','content':o(_0x31cccb,'*Merge\x20cells*')}:void 0x0;}),_0xd68d2a['descriptionFactory']['registerDescriptionCallback'](_0x156d9b=>{if('formatBlock'!=_0x156d9b['type']&&'formatInline'!=_0x156d9b['type'])return;const {data:_0x4a3a85}=_0x156d9b;return _0x4a3a85?'splitTableCellVertically'==_0x4a3a85['commandName']?{'type':'format','content':o(_0x31cccb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4a3a85['commandName']?{'type':'format','content':o(_0x31cccb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46fdcf=_0x5bb36f['_acceptFormatSuggestionCallbackFactory']();for(const _0x39a1ce of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xd68d2a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39a1ce,'accept',_0x46fdcf);for(const _0x45bf34 of['splitTableCellVertically','splitTableCellHorizontally'])_0xd68d2a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45bf34,'accept',_0x46fdcf);_0xd68d2a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x36c572=>{_0x257904['model']['change'](_0x3eb619=>{const _0x5ac018=Array['from'](_0x25f219['getRanges']())['map'](_0x28b0fd=>_0x5bf397['fromRange'](_0x28b0fd));_0x3eb619['setSelection'](_0x36c572),_0x257904['commands']['get']('mergeTableCells')['refresh'](),_0x257904['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x53f6ea=_0x5ac018['filter'](_0x92a92e=>'$graveyard'!=_0x92a92e['root']['rootName']);_0x53f6ea['length']>0x0&&_0x3eb619['setSelection'](_0x53f6ea);for(const _0x2e0027 of _0x5ac018)_0x2e0027['detach']();});});for(const _0x34dba4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5b9093=_0x257904['commands']['get'](_0x34dba4);_0x5b9093['on']('set:isEnabled',(_0x490f2f,_0x3b5ab2,_0x349320)=>{if(_0x349320){const _0x3c1f23=_0x257904['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2431f7=>_0x2431f7['is']('element','tableCell'));this['_areMergableCells'](_0x5b9093['value'],_0x3c1f23)||(_0x490f2f['return']=!0x1,_0x490f2f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2de934=this['editor']['commands']['get']('mergeTableCells'),_0x536baa=this['editor']['plugins']['get']('TableUtils');if(!_0x2de934['isEnabled'])return!0x1;const _0xc0d187=_0x536baa['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4a2112 of _0xc0d187)for(const _0x41ec60 of _0xc0d187)if(_0x4a2112!=_0x41ec60&&!this['_areMergableCells'](_0x4a2112,_0x41ec60))return!0x1;return!0x0;}['_areMergableCells'](_0x5df835,_0x17a346){const _0x1c3301=this['editor']['plugins']['get']('TrackChangesEditing'),_0x281fe9=this['editor']['model']['createRangeOn'](_0x5df835),_0x167c1a=this['editor']['model']['createRangeOn'](_0x17a346),_0xf9d118=new Set(),_0x4a20f3=new Set();for(const _0x4c457e of _0x1c3301['getSuggestions']())if(('insertion'==_0x4c457e['type']||'deletion'==_0x4c457e['type']||'mergeTableCells'==_0x4c457e['subType'])&&_0x4c457e['isInContent']){for(const _0x560285 of _0x4c457e['getRanges']())_0x560285['containsRange'](_0x281fe9,!0x0)&&_0xf9d118['add'](_0x4c457e['type']+':'+_0x4c457e['author']['id']),_0x560285['containsRange'](_0x167c1a,!0x0)&&_0x4a20f3['add'](_0x4c457e['type']+':'+_0x4c457e['author']['id']);}if(_0xf9d118['size']!=_0x4a20f3['size'])return!0x1;for(const _0x2015bf of _0xf9d118)if(!_0x4a20f3['has'](_0x2015bf))return!0x1;return!0x0;}}class vt extends _0x4942e1{static get['requires'](){return[Nt];}['afterInit'](){const _0x271398=this['editor'];if(!_0x271398['plugins']['has']('TableEditing'))return;const _0x5a0eca=_0x271398['locale'],_0x2a9e90=_0x271398['plugins']['get']('TrackChangesEditing');_0x2a9e90['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2a9e90['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2a9e90['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5a0eca,'FORMAT_HEADER_ROW')),_0x2a9e90['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5a0eca,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54e52d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fb564=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x54e52d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4fb564),_0x54e52d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4fb564),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2a619b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2aea19=this['editor']['plugins']['get']('TableUtils');function _0x423e87({showActiveMarker:_0x4302f4=!0x0,setDataAttribute:_0x2737eb=!0x0}={}){return(_0x2bb54e,_0xdd365e,_0x2868dd)=>{const {type:_0x452f2d,id:_0x37e485}=_0x2a619b['_splitMarkerName'](_0xdd365e['markerName']);if(!_0x2a619b['hasSuggestion'](_0x37e485))return;const _0x3ac0f9=_0x2a619b['getSuggestion'](_0x37e485),_0x5b9762=_0x3ac0f9['data'];if('formatBlock'!=_0x3ac0f9['type']||!_0x5b9762||'setTableColumnHeader'!=_0x5b9762['commandName'])return;if(_0xdd365e['item'])return void _0x2bb54e['stop']();if(!_0x2868dd['consumable']['consume'](_0xdd365e['markerRange'],_0x2bb54e['name']))return;const _0xeeebb=_0xdd365e['markerRange']['start']['nodeAfter'],_0x3e9e85=_0xdd365e['markerRange']['end']['nodeBefore'],_0x11d601=_0xeeebb['parent']['parent'],{column:_0x3a4201}=_0x2aea19['getCellLocation'](_0xeeebb),{column:_0x5bffc9}=_0x2aea19['getCellLocation'](_0x3e9e85);for(let _0x81a5d1=_0x3a4201;_0x81a5d1<=_0x5bffc9;_0x81a5d1++){const _0x119a64=_0x2aea19['createTableWalker'](_0x11d601,{'column':_0x81a5d1,'includeAllSlots':!0x1});for(const _0x35810a of _0x119a64){const _0x23ea6d=_0x35810a['cell'],_0x4bc308=_0x2868dd['mapper']['toViewElement'](_0x23ea6d);_0x2868dd['writer']['addClass']('ck-suggestion-marker-'+_0x452f2d,_0x4bc308),_0x2737eb&&_0x2868dd['writer']['setAttribute']('data-suggestion',_0x37e485,_0x4bc308),_0x2868dd['mapper']['bindElementToMarker'](_0x4bc308,_0xdd365e['markerName']),_0x4302f4&&(_0x2a619b['activeMarkers']['includes'](_0xdd365e['markerName'])?_0x2868dd['writer']['addClass']('ck-suggestion-marker--active',_0x4bc308):_0x2868dd['writer']['removeClass']('ck-suggestion-marker--active',_0x4bc308));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x423e87(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11cb37,_0x4ccf14,_0x10e451)=>{_0x10e451['options']['showSuggestionHighlights']&&_0x423e87({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x11cb37,_0x4ccf14,_0x10e451);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e34f0,_0x348fbc,_0x4fa7be)=>{const {type:_0x3c4386,id:_0xd288af}=_0x2a619b['_splitMarkerName'](_0x348fbc['markerName']);if(!_0x2a619b['hasSuggestion'](_0xd288af))return;const _0x594d7c=_0x2a619b['getSuggestion'](_0xd288af),_0x546cd0=_0x594d7c['data'];if('formatBlock'!=_0x594d7c['type']||!_0x546cd0||'setTableColumnHeader'!=_0x546cd0['commandName'])return;const _0x5c9c5c=_0x4fa7be['mapper']['markerNameToElements'](_0x348fbc['markerName']);if(_0x5c9c5c){for(const _0x3184ea of _0x5c9c5c)_0x4fa7be['writer']['removeClass']('ck-suggestion-marker-'+_0x3c4386,_0x3184ea),_0x4fa7be['writer']['removeClass']('ck-suggestion-marker--active',_0x3184ea),_0x4fa7be['writer']['removeAttribute']('data-suggestion',_0x3184ea),_0x4fa7be['mapper']['unbindElementFromMarkerName'](_0x3184ea,_0x348fbc['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1d850b=this['editor'],_0x57082e=_0x1d850b['locale'];function _0x35d586(_0x35a1ec){return{'type':'format','content':o(_0x57082e,'*Format:*\x20%0',_0x35a1ec)};}_0x1d850b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51dc47=>{if('formatBlock'!=_0x51dc47['type'])return;const {data:_0x5b3c09}=_0x51dc47;if(_0x5b3c09){if('setTableRowHeader'==_0x5b3c09['commandName']){const _0x585c87=_0x5b3c09['commandParams'][0x0]['forceValue'];return _0x35d586(o(_0x57082e,_0x585c87?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5b3c09['commandName']){const _0x59408d=_0x5b3c09['commandParams'][0x0]['forceValue'];return _0x35d586(o(_0x57082e,_0x59408d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x4942e1{['afterInit'](){const _0x26555a=this['editor'],_0x3b8137=_0x26555a['locale'],_0x1d51cd=_0x26555a['plugins']['get']('TrackChangesEditing');function _0x5c3220(_0x101a2b){return{'type':'format','content':''+o(_0x3b8137,'*Set\x20table\x20type:*\x20%0',_0x101a2b)};}_0x26555a['plugins']['has']('TableLayout')&&(_0x1d51cd['enableCommand']('insertTableLayout'),_0x1d51cd['enableDefaultAttributesIntegration']('tableType'),_0x1d51cd['descriptionFactory']['registerElementLabel'](_0x3c7c7e=>_0x3c7c7e['is']('element','table')&&'layout'===_0x3c7c7e['getAttribute']('tableType'),_0x233b93=>o(_0x3b8137,'ELEMENT_LAYOUT_TABLE',_0x233b93)),_0x1d51cd['descriptionFactory']['registerDescriptionCallback'](_0x230cad=>{const {data:_0x4f00df}=_0x230cad;if(_0x4f00df&&'tableType'==_0x4f00df['key'])switch(_0x4f00df['newValue']){case'layout':return _0x5c3220(o(_0x3b8137,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5c3220(o(_0x3b8137,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x10b859=>[_0x10b859,null]));class Bt extends _0x4942e1{static get['requires'](){return[Nt];}['afterInit'](){const _0x4f6d8e=this['editor'];if(!_0x4f6d8e['plugins']['has']('TableClipboard'))return;const _0x1f50d5=_0x4f6d8e['plugins']['get']('TrackChangesEditing'),_0xf4213f=_0x4f6d8e['plugins']['get']('TableUtils'),_0x4754c1=_0x4f6d8e['plugins']['get'](Nt),_0x46ed10=_0x4f6d8e['plugins']['get']('TableClipboard'),_0xf42621=_0x4f6d8e['plugins']['get']('TableSelection'),_0x2da65c=_0x4f6d8e['plugins']['get'](_0x31755d);_0x4754c1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4f6d8e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4f6d8e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5a7706=null,_0x191f2f=!0x1;_0x2da65c['on']('contentInsertion',(_0xefa636,_0x41b41c)=>{_0x191f2f='paste'===_0x41b41c['method'];}),_0x4f6d8e['model']['on']('insertContent',(_0x3753f8,_0x198872)=>{if(!_0x191f2f&&null===_0xf42621['getSelectedTableCells']())return;const [_0x948697,_0x470b0c]=_0x198872,_0x4c3f8e=_0x198872[_0x198872['length']-0x1];_0x4c3f8e&&_0x4c3f8e['forceDefaultExecution']||_0x1f50d5['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x594933,_0x1ed4c9,_0x382b7c,_0x4f85e2,_0x4a0f47){if(_0x1ed4c9&&!_0x1ed4c9['is']('documentSelection'))return!0x1;const _0x362625=_0x4a0f47['getTableIfOnlyTableInContent'](_0x594933,_0x382b7c);if(!_0x362625||!Oe(_0x362625,void 0x0,_0x4f85e2))return!0x1;const _0x7e44fd=_0x4f85e2['getSelectionAffectedTableCells'](_0x382b7c['document']['selection']);if(!_0x7e44fd['length'])return!0x1;const _0x1eab7b=_0x7e44fd[0x0]['findAncestor']('table'),_0x4986ce=_0x4f85e2['getRowIndexes'](_0x7e44fd),_0x3d90c3=_0x4f85e2['getColumnIndexes'](_0x7e44fd),_0x4df43a={'startRow':_0x4986ce['first'],'endRow':_0x4986ce['last'],'startColumn':_0x3d90c3['first'],'endColumn':_0x3d90c3['last']};return 0x1==_0x7e44fd['length']&&(_0x4df43a['endRow']+=_0x4f85e2['getRows'](_0x362625)-0x1,_0x4df43a['endColumn']+=_0x4f85e2['getColumns'](_0x362625)-0x1),Oe(_0x1eab7b,_0x4df43a,_0x4f85e2);}(_0x948697,_0x470b0c,_0x4f6d8e['model'],_0xf4213f,_0x46ed10)&&(_0x3753f8['stop'](),_0x5a7706={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4f6d8e['model']['change'](()=>{_0x4f6d8e['model']['insertContent'](_0x198872[0x0],_0x198872[0x1],_0x198872[0x2],{'forceDefaultExecution':!0x0});const _0x5532dd=_0x512e19(),{rowInsertionRanges:_0x58e7b1,columnInsertionRanges:_0x5924b4,insertionRanges:_0x2e9a19,deletionRanges:_0x289bb8,cells:_0x222524}=_0x5a7706;_0x58e7b1['length']&&_0x1f50d5['markMultiRangeInsertion'](_0x58e7b1,'tablePasteRow',{'tablePasteChainId':_0x5532dd}),_0x5924b4['length']&&_0x1f50d5['markMultiRangeInsertion'](_0x5924b4,'tablePasteColumn',{'tablePasteChainId':_0x5532dd}),_0x2e9a19['length']&&(_0x1f50d5['markMultiRangeInsertion'](_0x2e9a19,'tablePaste',{'tablePasteChainId':_0x5532dd,'skipNestingCheck':!0x0}),_0x2e9a19['forEach'](_0x3b8d89=>_0x3b8d89['detach']?.())),_0x289bb8['length']&&(_0x1f50d5['markMultiRangeDeletion'](_0x289bb8,'tablePaste',{'tablePasteChainId':_0x5532dd,'skipNestingCheck':!0x0}),_0x289bb8['forEach'](_0x4d1774=>_0x4d1774['detach']?.()));const _0x491dba=_0x1f50d5['markMultiRangeBlockFormat'](_0x222524['map'](({element:_0x40dc21})=>_0x40dc21),{'formatGroupId':_0x512e19()},[],'tablePasteCell',{'tablePasteChainId':_0x5532dd});if(_0x491dba){const _0x4386e8=_0x491dba['getMarkers'](),_0x3bad69=[];for(const {element:_0x2ecf92,attributes:_0x253012}of _0x222524){if(!_0x253012)continue;const _0x4f27c1=_0x4f6d8e['model']['createRangeOn'](_0x2ecf92),_0x5b498f=_0x4386e8['find'](_0x30c249=>_0x30c249['getRange']()['isEqual'](_0x4f27c1));_0x5b498f&&_0x3bad69['push']([_0x5b498f['name'],_0x253012]);}_0x3bad69['length']&&_0x491dba['setAttribute']('markerAttributes',Object['fromEntries'](_0x3bad69));}_0x5a7706=null;}));},{'priority':_0x2f03ee['high']+0xa}),_0x2da65c['on']('contentInsertion',()=>{_0x191f2f=!0x1;},{'priority':'lowest'}),_0x4f6d8e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3e71e4,_0x3ff812)=>{const [_0x5e7eb4,_0x4f6913,,_0x421b8b]=_0x3ff812;if(!_0x5a7706)return;_0x3e71e4['stop']();const _0x416237=_0x5e7eb4['cell'],_0xe0dc48=_0x4f6913,_0xd8a4ca=Be(_0x416237),_0x50906f=Be(_0xe0dc48);_0x3e71e4['return']=_0x416237;let _0x4713fe=null,_0xe708b4=null;if(_0x50906f||_0xd8a4ca){if(_0xd8a4ca&&!_0x50906f){_0x421b8b['remove'](_0x416237['getChild'](0x0));for(const _0xc31e42 of Array['from'](_0xe0dc48['getChildren']()))_0x421b8b['insert'](_0xc31e42,_0x416237,'end');const _0x28bfd0=_0x5a7706['rowInsertionIndexes']['includes'](_0x5e7eb4['row']),_0x29fc4f=_0x5a7706['columnInsertionIndexes']['includes'](_0x5e7eb4['column']);_0x28bfd0||_0x29fc4f||(_0x4713fe=_0x5bf397['fromRange'](_0x421b8b['createRangeIn'](_0x416237)));}else _0x50906f&&!_0xd8a4ca&&(_0xe708b4=_0x421b8b['createRangeIn'](_0x416237));}else{const _0x5e1160=_0x421b8b['createElement']('tableCellSuggestion'),_0x32d3f6=_0x421b8b['createElement']('tableCellSuggestion');_0x421b8b['wrap'](_0x421b8b['createRangeIn'](_0x416237),_0x32d3f6),_0x421b8b['insert'](_0x5e1160,_0x416237,0x0);for(const _0x1d9d43 of Array['from'](_0xe0dc48['getChildren']()))_0x421b8b['insert'](_0x1d9d43,_0x5e1160,'end');_0x4713fe=_0x5bf397['fromRange'](_0x421b8b['createRangeOn'](_0x5e1160)),_0xe708b4=_0x5bf397['fromRange'](_0x421b8b['createRangeOn'](_0x32d3f6));}const _0x3926b5=Array['from'](_0xe0dc48['getAttributes']())['filter'](([_0x3b3231])=>Re['includes'](_0x3b3231));_0x5a7706['cells']['push']({'element':_0x416237,'attributes':_0x3926b5['length']?Object['fromEntries'](_0x3926b5):null}),_0x4713fe&&_0x5a7706['insertionRanges']['push'](_0x4713fe),_0xe708b4&&_0x5a7706['deletionRanges']['push'](_0xe708b4);},{'priority':'high'}),_0xf4213f['on']('insertColumns',(_0x410cf2,_0x1fb439)=>{const [_0x2244d5,_0x5284c6={}]=_0x1fb439;if(!_0x5a7706)return;const _0x1166e=_0x5284c6['at']||0x0,_0x140dc6=_0x5284c6['columns']||0x1;_0x5a7706['columnInsertionIndexes']=new Array(_0x140dc6)['fill'](_0x1166e)['map']((_0x496127,_0x96666c)=>_0x496127+_0x96666c);for(const {cell:_0x1211fa}of _0xf4213f['createTableWalker'](_0x2244d5,{'startColumn':_0x1166e,'endColumn':_0x1166e+_0x140dc6-0x1}))_0x5a7706['columnInsertionRanges']['push'](_0x4f6d8e['model']['createRangeOn'](_0x1211fa));},{'priority':'low'}),_0xf4213f['on']('insertRows',(_0x162964,_0x3060e5)=>{const [_0x343dca,_0x3639f4={}]=_0x3060e5;if(!_0x5a7706)return;const _0xd85db4=_0x3639f4['at']||0x0,_0x4e2949=_0x3639f4['rows']||0x1;_0x5a7706['rowInsertionIndexes']=new Array(_0x4e2949)['fill'](_0xd85db4)['map']((_0x3f59c8,_0x544ac1)=>_0x3f59c8+_0x544ac1);for(const {cell:_0x25b60e}of _0xf4213f['createTableWalker'](_0x343dca,{'startRow':_0xd85db4,'endRow':_0xd85db4+_0x4e2949-0x1}))_0x5a7706['rowInsertionRanges']['push'](_0x4f6d8e['model']['createRangeOn'](_0x25b60e));},{'priority':'low'}),_0x1f50d5['descriptionFactory']['registerDescriptionCallback'](_0x30f492=>{if(_0x30f492['subType']&&_0x30f492['subType']['startsWith']('tablePaste'))return _0x30f492['previous']?{}:{'type':'insertion','content':o(_0x4f6d8e['locale'],'*Replace\x20table\x20cells*')};});const _0x1fdcda=()=>!0x1;for(const _0x41d13c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f50d5['_suggestionFactory']['registerCustomCallback']('insertion',_0x41d13c,'join',_0x1fdcda),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('deletion',_0x41d13c,'join',_0x1fdcda),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41d13c,'join',_0x1fdcda);_0x1f50d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1fdcda),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4f76c6,_0xa6ba61,_0x4bca9b)=>{const _0x4f0700=_0x4f76c6['map'](_0xfce2b6=>_0xfce2b6['getContainedElement']())['filter'](_0x2458d6=>_0x2458d6),_0x2fade8=new Map(_0x4f0700['map'](_0x1bbd5e=>[_0x1bbd5e,null]));if(_0x5a7706){for(const {element:_0x20832c,attributes:_0x32bd6}of _0x5a7706['cells'])_0x32bd6&&_0x2fade8['set'](_0x20832c,_0x32bd6);}else{if(_0x4bca9b&&_0x4bca9b['markerAttributes'])for(const [_0x8af6e8,_0x542ef8]of Object['entries'](_0x4bca9b['markerAttributes'])){const _0x3268ca=_0x4f6d8e['model']['markers']['get'](_0x8af6e8),_0xdeeddd=_0x3268ca?_0x3268ca['getRange']()['getContainedElement']():null;_0xdeeddd&&_0x2fade8['set'](_0xdeeddd,_0x542ef8);}}_0x4f6d8e['model']['change'](_0x205274=>{for(const [_0x380cc6,_0x2a8a41]of _0x2fade8)_0x205274['setAttributes']({...Ae,..._0x2a8a41},_0x380cc6);});});const _0x3f3b35=(_0x18e191,_0x22f08c)=>{_0x1f50d5['_suggestionFactory']['registerCustomCallback'](_0x18e191,'tablePaste',_0x22f08c,(_0x4b8890,_0x3590e3,_0x528f16)=>{_0x4f6d8e['model']['change'](_0x5e7871=>{const _0x4864b0=[];for(const _0x1609b2 of _0x4b8890){const _0x1cd0be=_0x1609b2['start']['nodeAfter'];_0x1cd0be['is']('element','tableCellSuggestion')&&_0x4864b0['push'](_0x1cd0be);}_0x1f50d5['_suggestionFactory']['getSuggestionCallback'](_0x18e191,null,_0x22f08c)(_0x4b8890,_0x3590e3,_0x528f16);for(const _0x23d195 of _0x4864b0)'$graveyard'!=_0x23d195['root']['rootName']&&_0x5e7871['unwrap'](_0x23d195);});});};_0x3f3b35('insertion','accept'),_0x3f3b35('insertion','discard'),_0x3f3b35('deletion','accept'),_0x3f3b35('deletion','discard'),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1d3330=>{const _0x5202e5=_0x1d3330['map'](_0x35a4bf=>_0x35a4bf['getContainedElement']()),_0x4bfeea=_0x5202e5[0x0]['findAncestor']('table'),{minRow:_0x133994,maxRow:_0x2f6a1e}=_0x4754c1['_getCoordsForCells'](_0x5202e5);_0xf4213f['removeRows'](_0x4bfeea,{'at':_0x133994,'rows':_0x2f6a1e-_0x133994+0x1});}),_0x1f50d5['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x39e0ec=>{const _0x1f9fb7=_0x39e0ec['map'](_0x5eed6d=>_0x5eed6d['getContainedElement']()),_0x2b79c0=_0x1f9fb7[0x0]['findAncestor']('table'),{minColumn:_0x51d519,maxColumn:_0x27bf29}=_0x4754c1['_getCoordsForCells'](_0x1f9fb7);_0xf4213f['removeColumns'](_0x2b79c0,{'at':_0x51d519,'columns':_0x27bf29-_0x51d519+0x1});});const _0x21ec6c=(_0x11a7b8,_0x3fd00d)=>{if(!_0x3fd00d['subType']||!_0x3fd00d['subType']['startsWith']('tablePaste'))return;const _0x4795aa=_0x3fd00d['attributes']['tablePasteChainId'],_0x5cf98d=_0x1f50d5['getSuggestions']()['filter'](_0x36481d=>_0x36481d['isInContent']&&_0x36481d['attributes']&&_0x36481d['attributes']['tablePasteChainId']==_0x4795aa);_0x5cf98d['length']&&_0x3fd00d['getAllAdjacentSuggestions']()['length']!=_0x5cf98d['length']&&_0x5cf98d['reduce']((_0x469878,_0x2febf8)=>(_0x469878['next']=_0x2febf8,_0x2febf8['previous']=_0x469878,_0x2febf8));};function _0x103038(_0x505f01,_0x379cdd=!0x0){const {id:_0x59ac14,authorId:_0x4da829}=_0x1f50d5['_splitMarkerName'](_0x505f01['markerName']),_0x49abc9=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x44096b=_0x1f50d5['activeMarkers']['includes'](_0x505f01['markerName']);return _0x44096b&&_0x49abc9['push']('ck-suggestion-marker--active'),{'classes':_0x49abc9,'attributes':{'data-suggestion':_0x59ac14,'data-author-id':_0x4da829},'priority':_0x44096b&&_0x379cdd?0xbc2:0xbb8};}_0x1f50d5['on']('suggestionLoaded',_0x21ec6c,{'priority':'high'}),_0x1f50d5['on']('suggestionUnloaded',_0x21ec6c,{'priority':'high'}),_0x4f6d8e['model']['document']['registerPostFixer'](()=>{let _0x50cd24=!0x1;const _0x83a809=Array['from'](_0x4f6d8e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x577bb4,data:_0x2c9b79}of _0x83a809){const {group:_0x5a4f20,type:_0x6a0d30,id:_0x13bf6c}=_0x1f50d5['_splitMarkerName'](_0x577bb4);if('suggestion'!=_0x5a4f20||'deletion'!=_0x6a0d30||_0x2c9b79['oldRange'])continue;if(!_0x1f50d5['hasSuggestion'](_0x13bf6c))continue;const _0x2afc3e=_0x1f50d5['getSuggestion'](_0x13bf6c)['getRanges'](),_0xe6aba5=_0x4f6d8e['plugins']['get']('Users')['me'];for(const _0x2cdb39 of _0x1f50d5['getSuggestions']()){if(!_0x2cdb39['isInContent']||_0x2cdb39['author']!=_0xe6aba5)continue;if('formatBlock'!=_0x2cdb39['type']||'tablePasteCell'!=_0x2cdb39['subType'])continue;if(_0x2cdb39['getRanges']()['every'](_0x204156=>_0x2afc3e['some'](_0x1b00ca=>_0x1b00ca['containsRange'](_0x204156,!0x0)))){for(const _0x1447b0 of _0x2cdb39['getAllAdjacentSuggestions']())_0x1447b0['isInContent']&&(_0x1447b0['discard'](),_0x50cd24=!0x0);}}}return _0x50cd24;}),_0x4f6d8e['model']['document']['registerPostFixer'](_0x54b1d6=>{const _0x4da29b=_0x4f6d8e['commands']['get']('redo');if(!_0x4da29b||!_0x4da29b['_createdBatches']['has'](_0x54b1d6['batch']))return!0x1;let _0x33b250=!0x1;const _0x475b24=_0x4f6d8e['plugins']['get']('Users')['me'],_0x23fc10=_0x4f6d8e['model']['document']['differ']['getChanges'](),_0x5003c2=Array['from'](_0x4f6d8e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x303d0d,data:_0x1579aa})=>{const {group:_0x4b12de,subType:_0x43f1e3,authorId:_0x28bf6d}=_0x1f50d5['_splitMarkerName'](_0x303d0d);return'suggestion'==_0x4b12de&&'tablePaste'==_0x43f1e3&&_0x28bf6d==_0x475b24['id']&&!_0x1579aa['oldRange'];});for(const _0x45e1e0 of _0x23fc10){if('insert'!=_0x45e1e0['type']||'tableCellSuggestion'!=_0x45e1e0['name']||0x1!=_0x45e1e0['length'])continue;const _0x53c780=_0x54b1d6['createRange'](_0x45e1e0['position'],_0x45e1e0['position']['getShiftedBy'](0x1));if(!_0x5003c2['find'](({data:_0x566e24})=>_0x566e24['newRange']['isEqual'](_0x53c780))){for(const {name:_0x340fe2,data:_0x41c32d}of _0x5003c2)if(_0x53c780['containsRange'](_0x41c32d['newRange'])){_0x54b1d6['updateMarker'](_0x340fe2,{'range':_0x53c780}),_0x33b250=!0x0;break;}}}return _0x33b250;}),_0x4f6d8e['model']['document']['registerPostFixer'](_0x4a528b=>{let _0x4f132f=!0x1;const _0x49903e=_0x4f6d8e['plugins']['get']('Users')['me'],_0x1cd876=_0x1f50d5['getSuggestions']()['filter'](_0x2122be=>_0x2122be['isInContent']&&_0x2122be['author']==_0x49903e),_0x5d8252=new Set(),_0x3679de=new Set();for(const _0x2d86fe of _0x1cd876)if('tablePaste'==_0x2d86fe['subType'])for(const _0x5d97d4 of _0x2d86fe['getMarkers']()){const _0x264a68=_0x5d97d4['getRange']()['getContainedElement']();if(_0x264a68){if(_0x264a68['is']('element','tableCellSuggestion')&&Be(_0x264a68)){_0x2d86fe['removeMarker'](_0x5d97d4['name']),_0x5d8252['add'](_0x264a68),_0x4f132f=!0x0;const _0x547204=_0x264a68['nextSibling'],_0x2fe191=_0x264a68['previousSibling'],_0x2952cb=_0x547204&&_0x547204['is']('element','tableCellSuggestion'),_0x147726=_0x2fe191&&_0x2fe191['is']('element','tableCellSuggestion');_0x2952cb&&!_0x5d8252['has'](_0x547204)&&_0x3679de['add'](_0x547204),_0x147726&&!_0x5d8252['has'](_0x2fe191)&&_0x3679de['add'](_0x2fe191);}else _0x264a68['is']('element','paragraph')&&_0x264a68['isEmpty']&&(_0x2d86fe['removeMarker'](_0x5d97d4['name']),_0x4f132f=!0x0);}}else{if('tablePasteCell'==_0x2d86fe['subType']){if(!_0x2d86fe['attributes']||!_0x2d86fe['attributes']['tablePasteChainId'])continue;const _0x5b8218=_0x2d86fe['attributes']['markerAttributes'];if(_0x5b8218&&Object['keys'](_0x5b8218)['length'])continue;const _0x2b96bd=_0x2d86fe['attributes']['tablePasteChainId'];let _0x123a32=!0x0,_0x19b2ca=!0x0;for(const _0x596526 of _0x1cd876)if(_0x596526['subType']&&_0x596526['subType']['startsWith']('tablePaste')){if(!_0x596526['attributes']['tablePasteChainId']){_0x19b2ca=!0x1;break;}if(_0x596526['id']!=_0x2d86fe['id']&&_0x596526['attributes']['tablePasteChainId']==_0x2b96bd){_0x123a32=!0x1;break;}}_0x19b2ca&&_0x123a32&&(_0x2d86fe['removeMarkers'](),_0x4f132f=!0x0);}}for(const _0x54d77e of _0x5d8252)_0x4a528b['remove'](_0x54d77e);for(const _0x33125f of _0x3679de)_0x4a528b['unwrap'](_0x33125f);return _0x4f132f;}),_0x4f6d8e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5c1189=>_0x103038(_0x5c1189),'converterPriority':'high'}),_0x4f6d8e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3bd2ca,_0x3bf77b)=>_0x3bf77b['options']['showSuggestionHighlights']?_0x103038(_0x3bd2ca,!0x1):null,'converterPriority':'high'});const _0x4cdb6d=_0x4f6d8e['editing']['view'];this['listenTo'](_0x4cdb6d['document'],'clipboardOutput',(_0x116f81,_0x578df5)=>{const _0x84f7c8=[];for(const _0x234c4a of _0x4cdb6d['createRangeIn'](_0x578df5['content'])['getItems']())_0x234c4a['is']('element','suggestion-td')&&_0x84f7c8['push'](_0x234c4a);_0x4cdb6d['change'](_0x404200=>{for(const _0x5b9be8 of _0x84f7c8)_0x404200['move'](_0x404200['createRangeIn'](_0x5b9be8),_0x404200['createPositionBefore'](_0x5b9be8)),_0x404200['remove'](_0x5b9be8);});});}}function Be(_0x23fb2e){if(_0x23fb2e['isEmpty'])return!0x0;const _0x1baac4=_0x23fb2e['getChild'](0x0);return _0x1baac4['is']('element','paragraph')&&_0x1baac4['isEmpty'];}function Oe(_0x48e82a,_0x5cc668={},_0x17c6d0){for(const {isAnchor:_0x44968d,cellHeight:_0x140ed6,cellWidth:_0x55fdc3}of _0x17c6d0['createTableWalker'](_0x48e82a,{'includeAllSlots':!0x0,..._0x5cc668}))if(!_0x44968d||0x1!=_0x140ed6||0x1!=_0x55fdc3)return!0x1;return!0x0;}class Ot extends _0x4942e1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f6d86=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f6d86['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f6d86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f6d86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f6d86['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f6d86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f6d86['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x6ab16f,_0x392621){const _0x951f1a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a61a5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4c73fb=_0x392621['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x43ee8b=_0x3a61a5['getColumnGroupElement'](_0x4c73fb);let _0x39283c=_0x43ee8b?_0x3a61a5['getTableColumnsWidths'](_0x43ee8b):null,_0x15441a=_0x4c73fb['getAttribute']('tableWidth')||null;const _0x247913=_0x392621['tableWidth']||_0x15441a,_0xc869da=_0x392621['columnWidths']||_0x39283c,_0x4d1904=this['editor']['plugins']['get']('Users')['me'];for(const _0xcdffe0 of _0x951f1a['getSuggestions']()){const _0x36e530=_0xcdffe0['getContainedElement']();if('resizeTable'===_0xcdffe0['subType']&&_0x36e530===_0x4c73fb){_0xcdffe0['author']!==_0x4d1904&&_0xcdffe0['discard']();const _0xe519cf=_0xcdffe0['data']['commandParams'];_0x15441a=_0xe519cf[0x0]['tableWidth'],_0x39283c=_0xe519cf[0x0]['columnWidths'];break;}}_0x6ab16f({'table':_0x4c73fb,'tableWidth':_0x247913,'columnWidths':_0xc869da}),_0x951f1a['markBlockFormat'](_0x4c73fb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x15441a,'columnWidths':_0x39283c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x493756){if('formatBlock'!=_0x493756['type']&&'formatInline'!=_0x493756['type'])return;const {data:_0x2fd714}=_0x493756;if(_0x2fd714&&'resizeTable'===_0x2fd714['formatGroupId']){const _0x36dae3='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x36dae3)};}}}class xt extends _0x4942e1{['afterInit'](){const _0x850f06=this['editor'];_0x850f06['plugins']['has']('Template')&&_0x850f06['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x4942e1{['afterInit'](){const _0x18663f=this['editor'];if(!_0x18663f['commands']['get']('insertTableOfContents'))return;_0x18663f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x33d58=_0x18663f['plugins']['get']('TrackChangesEditing'),_0x46485e=_0x18663f['locale'];_0x33d58['descriptionFactory']['registerElementLabel']('tableOfContents',_0x64724c=>o(_0x46485e,'ELEMENT_TABLE_OF_CONTENTS',_0x64724c));}}class Rt extends _0x4942e1{['afterInit'](){const _0x5b5a35=this['editor'];if(!_0x5b5a35['plugins']['has']('Title'))return;const _0x422019=_0x5b5a35['plugins']['get']('TrackChangesEditing');_0x422019['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5b5a35['locale'],'ELEMENT_TITLE')),_0x5b5a35['model']['document']['registerPostFixer'](_0x665146=>{let _0x36dead=!0x1;const _0x2fbcc9=Array['from'](_0x5b5a35['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4cc40b,data:_0x1b5747}of _0x2fbcc9){const {group:_0x523603}=_0x422019['_splitMarkerName'](_0x4cc40b);if('suggestion'!==_0x523603||!_0x1b5747['newRange'])continue;const _0xb5002f=_0x1b5747['newRange'],_0x1d504e=_0xb5002f['end']['nodeBefore'];if(!_0x1d504e||!_0x1d504e['is']('element','title-content'))continue;if(!_0xb5002f['start']['isTouching'](_0xb5002f['end']))continue;const _0x37c053=_0x5b5a35['model']['schema']['getNearestSelectionRange'](_0xb5002f['end'],'forward');if(_0x37c053&&_0x37c053['isCollapsed']){const _0x441f7b=_0x665146['createRange'](_0xb5002f['start'],_0x37c053['start']);_0x441f7b['isEqual'](_0xb5002f)||(_0x665146['updateMarker'](_0x4cc40b,{'range':_0x441f7b}),_0x36dead=!0x0);}_0x36dead||(_0x665146['removeMarker'](_0x4cc40b),_0x36dead=!0x0);}return _0x36dead;});}}class Tt extends _0x4942e1{['afterInit'](){const _0x1e8003=this['editor'],_0x191f8d=_0x1e8003['plugins']['get']('TrackChangesEditing');_0x1e8003['plugins']['has']('Uploadcare')&&(_0x191f8d['enableCommand']('uploadcare'),_0x1e8003['plugins']['has']('UploadcareImageEdit')&&(_0x191f8d['enableCommand']('uploadcareImageEdit'),_0x191f8d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x191f8d['descriptionFactory']['registerDescriptionCallback'](_0x52d722=>{if('attribute'!=_0x52d722['type'])return;const {data:_0x44c919}=_0x52d722;return _0x44c919&&'uploadcareImageId'==_0x44c919['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x4942e1{['afterInit'](){const _0x38394c=this['editor'],_0x3aa59f=_0x38394c['plugins']['get']('TrackChangesEditing');_0x38394c['plugins']['has']('UndoEditing')&&(_0x3aa59f['enableCommand']('undo'),_0x3aa59f['enableCommand']('redo'));}}class Ut extends _0x4942e1{static get['requires'](){return[Nt];}['afterInit'](){const _0x58917a=this['editor'];if(!_0x58917a['plugins']['has']('TableCaptionEditing'))return;_0x58917a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x4942e1{['tableProperties'];['tableCellProperties'];constructor(_0x20e6a6){super(_0x20e6a6),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4794df=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x18926e of this['tableProperties'])_0x4794df['enableCommand'](_0x18926e,(_0x380452,_0x29b2b0)=>{const _0x16156f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x18926e,[_0x16156f],this['tableProperties'],'tableProperties',_0x380452,_0x29b2b0);});_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4794df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x35933c,_0x5a0fd4)=>this['handleDiscardAction'](this['tableProperties'],_0x35933c,_0x5a0fd4)),_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x158529 of this['tableCellProperties'])_0x4794df['enableCommand'](_0x158529,(_0x48ab6a,_0xa0466e)=>{const _0x3db568=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x158529,_0x3db568,this['tableCellProperties'],'tableCellProperties',_0x48ab6a,_0xa0466e);});_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4794df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x11a39a,_0x4884cb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x11a39a,_0x4884cb)),_0x4794df['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4794df['descriptionFactory']['registerDescriptionCallback'](_0x349775=>this['handleSuggestionDescription'](_0x349775)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x27ca11,_0xb73b77,_0x45b737,_0xdefa63,_0x21ee7a,_0x2d745){const _0x588a80=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2d745['batch'],()=>{for(const _0x5f49b9 of _0xb73b77){if(this['_getSuggestion'](_0x5f49b9,_0xdefa63))_0x21ee7a(_0x2d745);else{const _0x3011a8={};for(const _0x34e6e4 of _0x45b737){const _0xd385d=_0x5f49b9['getAttribute'](_0x34e6e4);void 0x0!==_0xd385d&&(_0x3011a8[_0x34e6e4]=_0xd385d);}_0x21ee7a(_0x2d745),_0x588a80['markBlockFormat'](_0x5f49b9,{'commandParams':[_0x3011a8]},[],_0xdefa63);}}});}['handleDiscardAction'](_0x1da15b,_0x24b76f,_0x2f498f){const _0xe4096d=_0x24b76f[0x0]['start']['nodeAfter'],_0x36cd15=_0x2f498f['commandParams'][0x0];this['editor']['model']['change'](_0x4c3670=>{for(const _0x477435 of _0x1da15b)void 0x0!==_0x36cd15[_0x477435]?_0x4c3670['setAttribute'](_0x477435,_0x36cd15[_0x477435],_0xe4096d):_0x4c3670['removeAttribute'](_0x477435,_0xe4096d);});}['handleSuggestionDescription'](_0x49c960){if(_0x49c960['data'])switch(_0x49c960['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'](_0x496648,_0xd168a6){const _0x4ce46b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x30c395 of _0x4ce46b['getSuggestions']({'skipNotAttached':!0x0})){const _0x5230a0=_0x30c395['getContainedElement']();if(_0x30c395['subType']===_0xd168a6&&_0x5230a0===_0x496648)return _0x30c395;}return null;}['_registerTablePropertiesAttributes'](){const _0x4849f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41f83f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x11b6da of _0x41f83f){const _0x337f33=_0x11b6da['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4849f3['descriptionFactory']['registerAttributeLabel'](_0x11b6da,o(this['editor']['locale'],'FORMAT_'+_0x337f33));}}}class Ft extends _0x4942e1{['afterInit'](){const _0x396c8f=this['editor'];if(!_0x396c8f['plugins']['has']('LineHeight'))return;const _0x58d28f=_0x396c8f['plugins']['get']('TrackChangesEditing'),_0x55fa83=_0x396c8f['locale'];_0x58d28f['enableDefaultAttributesIntegration']('lineHeight'),_0x58d28f['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x55fa83,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4942e1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x91df2d,_0x404716,_0x3d631f,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41ad19){super(_0x41ad19),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5cbe26,_0x5ef5ca,_0x5bd08b,_0x56c1d1)=>{this['_model']['change'](()=>{for(const _0x1a30df of[..._0x56c1d1,..._0x5bd08b])this['_model']['markers']['has'](_0x1a30df)&&_0x41ad19['editing']['reconvertMarker'](_0x1a30df);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x41ad19['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x41ad19['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x41ad19['config']['get']('trackChanges.trackFormatChanges'),_0x41ad19['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x41ad19['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x41ad19,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x422208=this['editor'];_0x422208['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1d2e17,{writer:_0x4dea47})=>{let _0x28378c='suggestion:'+_0x1d2e17['getAttribute']('suggestion-type')+':'+_0x1d2e17['getAttribute']('id');return _0x1d2e17['getAttribute']('marker-count')&&(_0x28378c+=':'+_0x1d2e17['getAttribute']('marker-count')),_0x4dea47['createElement']('$marker',{'data-name':_0x28378c});}}),_0x422208['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x422208['model']['document']['registerPostFixer'](_0x580119=>{let _0x4a476e=!0x1;const _0x55733f=Array['from'](_0x422208['model']['document']['differ']['getChangedMarkers']()),_0x53461a=new Set();for(const {name:_0x5b415f,data:_0xc6bed6}of _0x55733f){const {group:_0x277ed2,type:_0xad217e,subType:_0xa549df,id:_0x1d7ae9}=this['_splitMarkerName'](_0x5b415f);if('suggestion'!==_0x277ed2)continue;const _0x569828=_0xa549df?'suggestion:'+_0xad217e+':'+_0xa549df+':'+_0x1d7ae9:'suggestion:'+_0xad217e+':'+_0x1d7ae9,_0x1bd3a6=_0x422208['model']['markers']['getMarkersGroup'](_0x569828),_0x170c83=_0x422208['model']['markers']['get'](_0x5b415f),_0x51852c=this['_suggestions']['get'](_0x1d7ae9);if(null!=_0xc6bed6['newRange']){'formatInline'==_0xad217e&&(_0x4a476e=_0x4a476e||Wt(_0xc6bed6['newRange'],_0x5b415f,_0x580119,_0x422208['model']['schema']));const _0xcbf4f4='attribute'==_0xad217e&&this['_isBlockAttribute'](_0xa549df['split']('|')[0x0]),_0x1fd8b1='attribute'==_0xad217e&&this['_isInlineAttribute'](_0xa549df['split']('|')[0x0]);if(_0xc6bed6['newRange']['isCollapsed']||'$graveyard'==_0xc6bed6['newRange']['root']['rootName']||'formatBlock'==_0xad217e&&!Qt(_0xc6bed6['newRange'])||_0xcbf4f4&&!Qt(_0xc6bed6['newRange'])||_0x1fd8b1&&Xt(_0xc6bed6['newRange'])||'deletion'==_0xad217e&&Xt(_0xc6bed6['newRange'])||_0x170c83&&Yt(_0x170c83,_0x1bd3a6))_0x580119['removeMarker'](_0x5b415f),_0x4a476e=!0x0;else{if(!_0x51852c||!_0x51852c['isInContent'])continue;if(_0xc6bed6['newRange']&&_0xc6bed6['oldRange']&&_0xc6bed6['newRange']['isEqual'](_0xc6bed6['oldRange']))continue;_0x53461a['add'](_0x51852c);}}}return _0x53461a['size']>0x0&&(_0x4a476e=!!this['_joinWithAdjacentSuggestions'](_0x53461a)||_0x4a476e),_0x4a476e;}),_0x422208['model']['document']['registerPostFixer'](_0x43fdb9=>{let _0x2d3dac=!0x1;for(const _0x34a872 of _0x422208['model']['document']['differ']['getChanges']())if('insert'==_0x34a872['type'])for(const _0x33d507 of this['_suggestions']['values']()){if(_0x33d507['isMultiRange']||!_0x33d507['isInContent'])continue;const _0x480caa='formatBlock'==_0x33d507['type'],_0x2cfb20=this['_getAttributeKey'](_0x33d507),_0x7188d7=_0x2cfb20&&this['_isBlockAttribute'](_0x2cfb20);if(!_0x480caa&&!_0x7188d7)continue;const _0x5a8a31=_0x33d507['getFirstRange']();if(_0x5a8a31['start']['parent']!=_0x5a8a31['end']['parent']&&!_0x5a8a31['end']['isAtEnd']){const _0x11b6c4=_0x422208['model']['createPositionAt'](_0x5a8a31['start']['nodeAfter'],'end'),_0x52309c=_0x422208['model']['createRange'](_0x5a8a31['start'],_0x11b6c4);_0x43fdb9['updateMarker'](_0x33d507['getFirstMarker'](),{'range':_0x52309c}),_0x2d3dac=!0x0;}}return _0x2d3dac;}),_0x422208['model']['document']['registerPostFixer'](_0x3506da=>this['_processAttributeChanges'](_0x3506da)),_0x422208['model']['document']['registerPostFixer'](_0x1e7ac3=>!_0x1e7ac3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1e7ac3)),_0x422208['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x422208['model']['document']['on']('change:data',(_0x5d1bc4,_0x5af601)=>{if(!_0x5af601['isLocal']||_0x5af601['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x221528=_0x422208['model']['document']['differ']['getChanges']();if(0x0==_0x221528['length'])return;const _0xbc95ab=[],_0x4e3cc8=_0x221528['filter'](_0x1f6c81=>'attribute'==_0x1f6c81['type']),_0x3707b1=_0x221528['filter'](_0x39991f=>'insert'==_0x39991f['type']&&'$text'!=_0x39991f['name']);for(const _0x2c5da7 of _0x4e3cc8)this['_isRegisteredAttribute'](_0x2c5da7['attributeKey'])&&_0xbc95ab['push']({'key':_0x2c5da7['attributeKey'],'newValue':_0x2c5da7['attributeNewValue'],'oldValue':_0x2c5da7['attributeOldValue'],'range':Zt(_0x2c5da7['range'],_0x422208['model'])});for(const _0x24b7a7 of _0x3707b1){if('rename'!=_0x24b7a7['action']&&'refresh'!=_0x24b7a7['action'])continue;const _0xeb9058=tn(_0x24b7a7['position']['nodeAfter'],_0x422208['model']),_0x5f5b0=_0x24b7a7['before'];'rename'==_0x24b7a7['action']&&_0xbc95ab['push']({'key':m,'newValue':_0x24b7a7['name'],'oldValue':_0x5f5b0['name'],'range':_0xeb9058});for(const [_0x22b6ef,_0x4dc936]of _0x5f5b0['attributes']){if(!this['_isRegisteredAttribute'](_0x22b6ef))continue;const _0xdabbb9=_0x24b7a7['attributes']['get'](_0x22b6ef);_0x4dc936!==_0xdabbb9&&_0xbc95ab['push']({'key':_0x22b6ef,'newValue':_0xdabbb9,'oldValue':_0x4dc936,'range':_0xeb9058});}for(const [_0x14eca9,_0x41c4dc]of _0x24b7a7['attributes'])this['_isRegisteredAttribute'](_0x14eca9)&&(_0x5f5b0['attributes']['has'](_0x14eca9)||_0xbc95ab['push']({'key':_0x14eca9,'newValue':_0x41c4dc,'oldValue':null,'range':_0xeb9058}));}0x0!=_0xbc95ab['length']&&_0x422208['model']['enqueueChange'](_0x5af601,_0xe647ec=>{const _0x520d2f=_0x512e19();for(const {range:_0x1f3143,key:_0x537c3a,oldValue:_0x91ee4,newValue:_0x5b33a0}of _0xbc95ab)this['markAttributeChange'](_0x1f3143,_0x537c3a,_0x91ee4,_0x5b33a0,{'groupId':_0x520d2f});this['_reduceExistingSuggestions'](_0xe647ec,_0xbc95ab);});},{'priority':'lowest'}),_0x422208['model']['markers']['on']('update:suggestion',(_0x44b816,_0x591737,_0x46ecdd)=>{if(null==_0x46ecdd){const {id:_0x5e21b4}=this['_splitMarkerName'](_0x591737['name']),_0x554565=this['_suggestions']['get'](_0x5e21b4);_0x554565&&_0x554565['addMarkerName'](_0x591737['name']);}}),_0x422208['model']['document']['on']('change:data',()=>{const _0x25d601=Array['from'](_0x422208['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c3999=>'suggestion'===this['_splitMarkerName'](_0x1c3999['name'])['group']);if(0x0===_0x25d601['length'])return;_0x25d601['sort']((_0x2e81c2,_0x306406)=>{const _0x5e0f65=_0x2e81c2['data']['oldRange'],_0x149232=_0x306406['data']['oldRange'];return null===_0x5e0f65&&null===_0x149232?0x0:null===_0x5e0f65&&null!==_0x149232?-0x1:null!==_0x5e0f65&&null===_0x149232?0x1:_0x5e0f65['start']['isBefore'](_0x149232['start'])?-0x1:0x1;});const _0x4e52fa=new Set(),_0x4e37a8=new Set();for(const {name:_0x500984,data:_0x2b2d0f}of _0x25d601){const {id:_0x12959a}=this['_splitMarkerName'](_0x500984);if(null===_0x2b2d0f['oldRange']){const _0x50da43=this['_handleNewSuggestionMarker'](_0x500984);_0x4e37a8['add'](_0x50da43);}else{const _0xf90bf5=this['_suggestions']['get'](_0x12959a);null!==_0x2b2d0f['newRange']||_0xf90bf5['isInContent']?(_0x4e52fa['add'](_0xf90bf5['head']),_0x4e37a8['add'](_0xf90bf5)):this['_removeSuggestion'](_0xf90bf5);}}_0x4e37a8['size']>0x0&&this['_refreshSuggestionsChain'](_0x4e37a8);for(const _0x545790 of _0x4e52fa)this['fire']('suggestionChanged',_0x545790);}),_0x422208['model']['on']('applyOperation',(_0x159858,_0x9770c6)=>{const _0x12f516=_0x9770c6[0x0];if(!this['_suggestions']['size'])return;if(!_0x12f516['isDocumentOperation'])return;if(_0x12f516['batch']['isUndo']||!_0x12f516['batch']['isLocal'])return;let _0x21d6ef,_0x365c36;switch(_0x12f516['type']){case'insert':_0x21d6ef=_0x422208['model']['createPositionAt'](_0x12f516['position']),_0x365c36=_0x21d6ef['getShiftedBy'](_0x12f516['howMany']);break;case'split':_0x21d6ef=_0x422208['model']['createPositionAt'](_0x12f516['splitPosition']),_0x365c36=_0x422208['model']['createPositionAt'](_0x12f516['moveTargetPosition']);break;case'move':_0x21d6ef=_0x422208['model']['createPositionAt'](_0x12f516['targetPosition']),_0x365c36=_0x21d6ef['getShiftedBy'](_0x12f516['howMany']);break;default:return;}const _0x56bdc1=_0x422208['model']['createRange'](_0x21d6ef,_0x365c36);_0x422208['model']['change'](()=>{for(const {suggestion:_0x5dbd80,meta:_0x262963}of this['_findSuggestions'](_0x56bdc1)){if(_0x5dbd80['isMultiRange'])continue;if('formatInline'==_0x5dbd80['type'])continue;const _0x30789e=this['_getAttributeKey'](_0x5dbd80);if(_0x30789e&&this['_isBlockAttribute'](_0x30789e)&&'split'!=_0x12f516['type'])continue;const _0x43574b=_0x5dbd80['data']&&_0x5dbd80['data']['multipleBlocks'];('formatBlock'!=_0x5dbd80['type']||'split'==_0x12f516['type']&&!_0x43574b)&&(_0x262963['containsRangeInObject']||'insertion'==_0x5dbd80['type']&&_0x262963['isOwn']||_0x5dbd80['getFirstRange']()['containsRange'](_0x56bdc1)&&this['_breakSuggestionMarker'](_0x5dbd80,_0x21d6ef,_0x365c36));}});},{'priority':'lowest'}),_0x422208['model']['on']('deleteContent',(_0x33464e,_0x36a4e7)=>{const _0xdeec02=_0x36a4e7[0x0],_0x51d09a=_0x36a4e7[0x1];if(_0x51d09a&&_0x51d09a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xdeec02['isCollapsed'])return;const _0x1b29b9=_0x422208['model']['schema'],{start:_0x179dfb,end:_0x369a36}=_0xdeec02['getFirstRange'](),_0x5f34a6=_0x179dfb['nodeAfter']&&_0x1b29b9['isLimit'](_0x179dfb['nodeAfter'])?null:_0x1b29b9['getNearestSelectionRange'](_0x179dfb,'forward'),_0x291f65=_0x369a36['nodeBefore']&&_0x1b29b9['isLimit'](_0x369a36['nodeBefore'])?null:_0x1b29b9['getNearestSelectionRange'](_0x369a36,'backward'),_0x4e9492=_0x422208['model']['createRange'](_0x5f34a6?_0x5f34a6['start']:_0x179dfb,_0x291f65?_0x291f65['end']:_0x369a36);_0x422208['model']['change'](_0x494277=>{this['markDeletion'](_0x4e9492);const _0x59014f=_0x422208['model']['schema']['getNearestSelectionRange'](_0x4e9492['start']);_0xdeec02['is']('documentSelection')?_0x494277['setSelection'](_0x59014f):_0xdeec02['setTo'](_0x59014f);}),_0x33464e['stop']();},{'priority':_0x2f03ee['normal']+0xa}),_0x422208['model']['on']('insertContent',(_0x25f304,_0x11c344)=>{const _0x10c99f=_0x11c344[_0x11c344['length']-0x1];_0x10c99f&&_0x10c99f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x422208['model']['change'](()=>{let _0x3f17f=_0x422208['model']['insertContent'](_0x11c344[0x0],_0x11c344[0x1],_0x11c344[0x2],{'forceDefaultExecution':!0x0});if(!_0x3f17f)return;_0x25f304['return']=_0x3f17f['clone']();const _0x1bd485=_0x3f17f['end']['nodeBefore'],_0x266bc9=_0x422208['model']['schema'];_0x1bd485&&_0x266bc9['isBlock'](_0x1bd485)&&!_0x266bc9['isObject'](_0x1bd485)&&(_0x3f17f=_0x422208['model']['createRange'](_0x3f17f['start'],_0x422208['model']['createPositionAt'](_0x1bd485,'end'))),this['markInsertion'](_0x3f17f);}),_0x25f304['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5314a0=new v(_0x422208,this['_suggestions']);_0x422208['commands']['add']('acceptSuggestion',_0x5314a0),this['enableCommand']('acceptSuggestion');const _0x30f9fd=new D(_0x422208,this['_suggestions']);_0x422208['commands']['add']('discardSuggestion',_0x30f9fd),this['enableCommand']('discardSuggestion'),_0x422208['commands']['add']('acceptAllSuggestions',new B(_0x422208,_0x5314a0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x422208['commands']['add']('discardAllSuggestions',new B(_0x422208,_0x30f9fd,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x422208['commands']['add']('acceptSelectedSuggestions',new O(_0x422208,_0x5314a0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x422208['commands']['add']('discardSelectedSuggestions',new O(_0x422208,_0x30f9fd,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x14c660=_0x422208['plugins']['get']('CommentsRepository');this['listenTo'](_0x14c660,'addComment',(_0x17e31a,{threadId:_0xcfd892})=>{const _0x2314e0=this['_suggestions']['get'](_0xcfd892);_0x2314e0&&_0x2314e0['commentThread']&&0x1===_0x2314e0['commentThread']['length']&&this['_updateSuggestionData'](_0xcfd892,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x14c660,'removeComment',(_0x46c99d,{threadId:_0x45f60d})=>{const _0x343258=this['_suggestions']['get'](_0x45f60d);_0x343258&&_0x343258['commentThread']&&!_0x343258['commentThread']['length']&&this['_updateSuggestionData'](_0x45f60d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1a13a0){const _0x481477=_0x595bca([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]),_0x2b1c68=0x3d8d0df,_0x35e2d1=0x3dfa72f^_0x2b1c68,_0xe8fb66=window[_0x595bca([0x44,0x61,0x74,0x65])][_0x595bca([0x6e,0x6f,0x77])](),_0x284c1a=_0x1a13a0[_0x595bca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4dc1c0=new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f4a06=>{_0x284c1a[_0x595bca([0x6f,0x6e,0x63,0x65])](_0x595bca([0x72,0x65,0x61,0x64,0x79]),_0x4f4a06);}),_0x1a505c={[_0x595bca([0x6b,0x74,0x79])]:_0x595bca([0x45,0x43]),[_0x595bca([0x75,0x73,0x65])]:_0x595bca([0x73,0x69,0x67]),[_0x595bca([0x63,0x72,0x76])]:_0x595bca([0x50,0x2d,0x32,0x35,0x36]),[_0x595bca([0x78])]:_0x595bca([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]),[_0x595bca([0x79])]:_0x595bca([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]),[_0x595bca([0x61,0x6c,0x67])]:_0x595bca([0x45,0x53,0x32,0x35,0x36])},_0x5c31b1=_0x284c1a[_0x595bca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x595bca([0x67,0x65,0x74])](_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c471d(){let _0x2292e2,_0x3bf81c=null,_0x4b76d7=null;try{if(_0x5c31b1==_0x595bca([0x47,0x50,0x4c]))return _0x595bca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2292e2=_0x492c21(),!_0x2292e2)return _0x595bca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2292e2[_0x595bca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b76d7=_0x952c91(_0x2292e2[_0x595bca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2292e2[_0x595bca([0x6a,0x74,0x69])])),await _0x2154ef()?_0x16e061()?_0x3df524()?_0x595bca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22d22a()?(_0x2292e2[_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x595bca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3bf81c=_0x49296e(_0x595bca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2292e2[_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x595bca([0x74,0x72,0x69,0x61,0x6c])&&(_0x3bf81c=_0x49296e(_0x595bca([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x354cb4()):_0x595bca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x595bca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x595bca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x595bca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3df524(){const _0x44efd3=[_0x595bca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x595bca([0x74,0x72,0x69,0x61,0x6c])][_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2292e2[_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe8fb66/0x3e8:0xe10*_0x35e2d1;return _0x2292e2[_0x595bca([0x65,0x78,0x70])]<_0x44efd3;}function _0x16e061(){const _0x245454=_0x2292e2[_0x595bca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x245454)return!0x1;if(_0x245454[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595bca([0x2a])))return!0x0;if(_0x245454[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595bca([0x54,0x43])))return!0x0;if(_0x245454[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595bca([0x52,0x54,0x43]))){if(_0x50ddf3())return!0x0;if(_0x35c451()||_0x153415())return!0x0;}return!0x1;}function _0x22d22a(){const _0x1d3821=_0x2292e2[_0x595bca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d3821||0x0==_0x1d3821[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x560187}=new URL(window[_0x595bca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d3821[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x560187))return!0x0;const _0x1ae287=_0x560187[_0x595bca([0x73,0x70,0x6c,0x69,0x74])](_0x595bca([0x2e]));return _0x1d3821[_0x595bca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b5869=>_0x1b5869[_0x595bca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595bca([0x2a])))[_0x595bca([0x6d,0x61,0x70])](_0x4e952b=>_0x4e952b[_0x595bca([0x73,0x70,0x6c,0x69,0x74])](_0x595bca([0x2e])))[_0x595bca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23d3a9=>_0x23d3a9[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ae287[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x595bca([0x6d,0x61,0x70])](_0x440c81=>Array(_0x1ae287[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x440c81[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x595bca([0x66,0x69,0x6c,0x6c])](_0x440c81[0x0]===_0x595bca([0x2a])?_0x595bca([0x2a]):'')[_0x595bca([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x440c81))[_0x595bca([0x73,0x6f,0x6d,0x65])](_0x56dc5f=>_0x1ae287[_0x595bca([0x65,0x76,0x65,0x72,0x79])]((_0x485e70,_0x111b76)=>_0x56dc5f[_0x111b76]===_0x485e70||_0x56dc5f[_0x111b76]===_0x595bca([0x2a])));}function _0x354cb4(){return _0x3bf81c&&_0x4b76d7?new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23ecea,_0x49ced0)=>{_0x3bf81c[_0x595bca([0x74,0x68,0x65,0x6e])](_0x23ecea,_0x49ced0),_0x4b76d7[_0x595bca([0x74,0x68,0x65,0x6e])](_0x5321dc=>{_0x5321dc!=_0x595bca([0x56,0x61,0x6c,0x69,0x64])&&_0x23ecea(_0x5321dc);},_0x49ced0);}):_0x3bf81c||_0x4b76d7||_0x595bca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x952c91(_0xcf5a0f,_0x15296f){return new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x121d49=>{if(_0x1b6876())return _0x121d49(_0x595bca([0x56,0x61,0x6c,0x69,0x64]));_0x5c7e8b(),_0x284c1a[_0x595bca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x595bca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x163713=!0x1;const _0x302622=_0x512e19();function _0x2ca6f9(_0x7d47e){return!!_0x7d47e&&(typeof _0x7d47e===_0x595bca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7d47e===_0x595bca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7d47e[_0x595bca([0x74,0x68,0x65,0x6e])]===_0x595bca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7d47e[_0x595bca([0x63,0x61,0x74,0x63,0x68])]===_0x595bca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a481c(_0x5b3d03){_0x125991(_0x5b3d03)[_0x595bca([0x74,0x68,0x65,0x6e])](_0x397477=>{if(!_0x397477||_0x397477[_0x595bca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x595bca([0x6f,0x6b]))return _0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29a8b9(_0x311c9c(_0x302622+_0x15296f))!=_0x397477[_0x595bca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x595bca([0x56,0x61,0x6c,0x69,0x64]);})[_0x595bca([0x74,0x68,0x65,0x6e])](_0x115540=>(_0x1b79a4(),_0x115540),()=>{const _0x40baa4=_0x5eff29();return null==_0x40baa4?(_0x1b79a4(),_0x595bca([0x56,0x61,0x6c,0x69,0x64])):_0x595bca(_0xe8fb66-_0x40baa4>(0x27d454df^_0x2b1c68)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x595bca([0x74,0x68,0x65,0x6e])](_0x121d49)[_0x595bca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x121d49(_0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd5a188=0x3ee3e5f^_0x2b1c68;function _0x1b79a4(){const _0x425143=_0x595bca([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a8b9(_0x311c9c(_0xcf5a0f)),_0x31d59e=_0x31b570(_0x29a8b9(window[_0x595bca([0x4d,0x61,0x74,0x68])][_0x595bca([0x63,0x65,0x69,0x6c])](_0xe8fb66/_0xd5a188)));window[_0x595bca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x595bca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x425143,_0x31d59e);}function _0x5eff29(){const _0x1fc89d=_0x595bca([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a8b9(_0x311c9c(_0xcf5a0f)),_0x4fc664=window[_0x595bca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x595bca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fc89d);return _0x4fc664?window[_0x595bca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31b570(_0x4fc664),0x10)*_0xd5a188:null;}function _0x125991(_0x11f8ba){return new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2da4d6,_0x1c61ed)=>{_0x11f8ba[_0x595bca([0x74,0x68,0x65,0x6e])](_0x2da4d6,_0x1c61ed),window[_0x595bca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c61ed,0x3d9041f^_0x2b1c68);});}}_0x284c1a[_0x595bca([0x6f,0x6e])](_0x595bca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ea988,_0x1add64)=>{if(_0x1add64[0x0]!=_0xcf5a0f)return _0x121d49(_0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1add64[0x1]={..._0x1add64[0x1],[_0x595bca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x302622};},{[_0x595bca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x595bca([0x68,0x69,0x67,0x68])}),_0x284c1a[_0x595bca([0x6f,0x6e])](_0x595bca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3123c6=>{_0x2ca6f9(_0x3123c6[_0x595bca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x163713=!0x0,_0x5a481c(_0x3123c6[_0x595bca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x595bca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x595bca([0x6c,0x6f,0x77])}),_0x4dc1c0[_0x595bca([0x74,0x68,0x65,0x6e])](()=>{_0x163713||_0x121d49(_0x595bca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b6876(){return _0x284c1a[_0x595bca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x595bca([0x76,0x69,0x65,0x77])][_0x595bca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x595bca([0x61,0x75,0x74,0x6f]);}function _0x5c7e8b(){_0x284c1a[_0x595bca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x595bca([0x76,0x69,0x65,0x77])][_0x595bca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x595bca([0x61,0x75,0x74,0x6f]);}}function _0x49296e(_0xcb6652){const _0x1d31f9=[new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a1871=>setTimeout(_0x1a1871,0x3d1ee13^_0x2b1c68)),_0x4dc1c0[_0x595bca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2878bf=>{let _0x4127ff=0x0;_0x284c1a[_0x595bca([0x6d,0x6f,0x64,0x65,0x6c])][_0x595bca([0x6f,0x6e])](_0x595bca([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x261cd3,_0x3de41e)=>{_0x3de41e[0x0][_0x595bca([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4127ff++,_0x4127ff==(0x3d8d127^_0x2b1c68)&&(_0x2878bf(),_0x261cd3[_0x595bca([0x6f,0x66,0x66])]());});}))];return window[_0x595bca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x595bca([0x72,0x61,0x63,0x65])](_0x1d31f9)[_0x595bca([0x74,0x68,0x65,0x6e])](()=>_0xcb6652);}async function _0x50018d(){await _0x4dc1c0,_0x284c1a[_0x595bca([0x6d,0x6f,0x64,0x65,0x6c])][_0x595bca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x586212,_0x284c1a[_0x595bca([0x6d,0x6f,0x64,0x65,0x6c])][_0x595bca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x586212,_0x284c1a[_0x595bca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x595bca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50ddf3(){return _0x4f8c58(_0x595bca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xd8d5a8(_0x595bca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x595bca([0x73,0x74,0x61,0x74,0x65])]==_0x595bca([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x35c451(){return _0x4f8c58(_0x595bca([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 _0x153415(){return _0x4f8c58(_0x595bca([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x49136a(_0x309fac){const _0x13cf4a=_0x459dcd();_0x284c1a[_0x13cf4a]=_0x595bca([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x309fac,_0x309fac!=_0x595bca([0x56,0x61,0x6c,0x69,0x64])&&_0x50018d();}function _0x459dcd(){const _0x2c136d=window[_0x595bca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x595bca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x595bca([0x6e,0x6f,0x77])]())[_0x595bca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x595bca([0x2e]),'');let _0x3bee2e=_0x595bca([0x52]);for(let _0x59f70e=0x0;_0x59f70e<_0x2c136d[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59f70e+=0x2){let _0x347aaa=window[_0x595bca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c136d[_0x595bca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59f70e,_0x59f70e+0x2));_0x347aaa>=_0x481477[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x347aaa-=_0x481477[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bee2e+=_0x481477[_0x347aaa];}return _0x3bee2e;}function _0x492c21(){const _0x6b654d=_0x5c31b1[_0x595bca([0x73,0x70,0x6c,0x69,0x74])](_0x595bca([0x2e]));if(0x3!=_0x6b654d[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x555bea(_0x6b654d[0x1]);function _0x555bea(_0x44d5a5){const _0x4c220f=_0x3a1348(_0x44d5a5);return _0x4c220f&&_0x52d2dc()?_0x4c220f:null;function _0x52d2dc(){const _0x5a28ff=_0x4c220f[_0x595bca([0x6a,0x74,0x69])],_0x91be74=window[_0x595bca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a28ff[_0x595bca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a28ff[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x8b5437={..._0x4c220f,[_0x595bca([0x6a,0x74,0x69])]:_0x5a28ff[_0x595bca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a28ff[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x8b5437[_0x595bca([0x76,0x63])],_0x311c9c(_0x8b5437)==_0x91be74;}}}async function _0x2154ef(){let _0xe64e59=!0x0;try{const _0x19a7ad=_0x5c31b1[_0x595bca([0x73,0x70,0x6c,0x69,0x74])](_0x595bca([0x2e])),[_0x147286,_0x4fe479,_0xaf7ec7]=_0x19a7ad;return _0x46abb1(_0x147286),await _0x1eb1d7(_0x147286,_0x4fe479,_0xaf7ec7),_0xe64e59;}catch{return!0x1;}function _0x46abb1(_0x143faa){const _0xccc8a4=_0x3a1348(_0x143faa);_0xccc8a4&&_0xccc8a4[_0x595bca([0x61,0x6c,0x67])]==_0x595bca([0x45,0x53,0x32,0x35,0x36])||(_0xe64e59=!0x1);}async function _0x1eb1d7(_0x33e41d,_0x8a9205,_0x5e5c6a){const _0x1b00b2=window[_0x595bca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x595bca([0x66,0x72,0x6f,0x6d])](_0xc15c23(_0x5e5c6a),_0x206dff=>_0x206dff[_0x595bca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdac6cc=new window[(_0x595bca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x595bca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33e41d+_0x595bca([0x2e])+_0x8a9205),_0x3dc3a4=window[_0x595bca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x595bca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3dc3a4)return;const _0x47dbe7=await _0x3dc3a4[_0x595bca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x595bca([0x6a,0x77,0x6b]),_0x1a505c,{[_0x595bca([0x6e,0x61,0x6d,0x65])]:_0x595bca([0x45,0x43,0x44,0x53,0x41]),[_0x595bca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x595bca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x595bca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3dc3a4[_0x595bca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x595bca([0x6e,0x61,0x6d,0x65])]:_0x595bca([0x45,0x43,0x44,0x53,0x41]),[_0x595bca([0x68,0x61,0x73,0x68])]:{[_0x595bca([0x6e,0x61,0x6d,0x65])]:_0x595bca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47dbe7,_0x1b00b2,_0xdac6cc)||(_0xe64e59=!0x1);}}function _0x3a1348(_0x1b0687){return _0x1b0687[_0x595bca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x595bca([0x65,0x79]))?JSON[_0x595bca([0x70,0x61,0x72,0x73,0x65])](_0xc15c23(_0x1b0687)):null;}function _0xc15c23(_0x38e64c){return window[_0x595bca([0x61,0x74,0x6f,0x62])](_0x38e64c[_0x595bca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x595bca([0x2b]))[_0x595bca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x595bca([0x2f])));}function _0x311c9c(_0x32cd8b){let _0x1efa44=0x1505;function _0x69cb2f(_0x1693a9){for(let _0x1e7ee5=0x0;_0x1e7ee5<_0x1693a9[_0x595bca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e7ee5++){const _0x459796=_0x1693a9[_0x595bca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e7ee5);_0x1efa44=(_0x1efa44<<0x5)+_0x1efa44+_0x459796,_0x1efa44&=_0x1efa44;}}function _0x56ff77(_0x5673b4){Array[_0x595bca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5673b4)?_0x5673b4[_0x595bca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56ff77):_0x5673b4&&typeof _0x5673b4==_0x595bca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x595bca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5673b4)[_0x595bca([0x73,0x6f,0x72,0x74])]()[_0x595bca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40fb90,_0x26f39b])=>{_0x69cb2f(_0x40fb90),_0x56ff77(_0x26f39b);}):_0x69cb2f(window[_0x595bca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5673b4));}return _0x56ff77(_0x32cd8b),_0x1efa44>>>0x0;}function _0x29a8b9(_0xd40e3){return _0xd40e3[_0x595bca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x595bca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x595bca([0x30]));}function _0x31b570(_0x1ebed2){return _0x1ebed2[_0x595bca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x595bca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x595bca([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f8c58(_0x2bd954){return _0x284c1a[_0x595bca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x595bca([0x68,0x61,0x73])](_0x2bd954);}function _0xd8d5a8(_0x41663f){return _0x284c1a[_0x595bca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x595bca([0x67,0x65,0x74])](_0x41663f);}function _0x586212(){}function _0x595bca(_0x28194c){return _0x28194c['map'](_0x4a6108=>String['fromCharCode'](_0x4a6108))['join']('');}_0x49136a(await _0x3c471d());}(this);}set['adapter'](_0x2a4789){if(this['_adapter'])throw new _0x16ebc5('track-changes-adapter-already-set',this);this['_adapter']=_0x2a4789;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4777cd=!0x1,toJSON:_0x4d9172=!0x1}={}){const _0x4d7124=[];for(const _0x5cd3ea of this['_suggestions']['values']())_0x4777cd&&!_0x5cd3ea['isInContent']||_0x4d7124['push'](_0x5cd3ea);return _0x4d9172?_0x4d7124['map'](_0x4fe268=>_0x4fe268['toJSON']()):_0x4d7124;}['getSuggestion'](_0x3eed01){const _0x258ac5=this['_suggestions']['get'](_0x3eed01);if(!_0x258ac5)throw new _0x16ebc5('track-changes-suggestion-not-found',this);return _0x258ac5;}['hasSuggestion'](_0x43024b){return this['_suggestions']['has'](_0x43024b);}['addSuggestionData'](_0x15ad75){const {authorId:_0x301d33,id:_0x3d3819,originalSuggestionId:_0x343f16,attributes:_0x680fec}=_0x15ad75,[_0x5a13fa,_0x2e93e3]=_0x15ad75['type']['split'](':'),_0x3909e3=this['_suggestions']['get'](_0x3d3819)||this['_createSuggestion'](_0x5a13fa,_0x2e93e3,_0x3d3819,_0x301d33,_0x680fec,_0x343f16);if(this['_addThreadToSuggestion'](_0x3909e3),this['_checkSuggestionCorrectness'](_0x3909e3,_0x5a13fa,_0x2e93e3||null,_0x301d33),_0x3909e3['createdAt']=_0x15ad75['createdAt'],_0x3909e3['_isDataLoaded']=!0x0,_0x680fec&&_0x680fec['@external']){const _0x9ef915=_0x680fec['@external'],_0x5ad941=this['_getExternalAuthor'](_0x9ef915['authorName']);_0x3909e3['authoredAt']=_0x9ef915['createdAt'],_0x3909e3['author']=_0x5ad941,_0x3909e3['isExternal']=!0x0;}else _0x3909e3['authoredAt']=_0x15ad75['createdAt'];switch(_0x15ad75['data']&&(_0x3909e3['data']=_0x15ad75['data']),_0x15ad75['attributes']&&(_0x3909e3['attributes']=_0x15ad75['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3909e3['_saved']=!0x0),this['_suggestionState']['get'](_0x3909e3)){case'notReady':this['_suggestionState']['set'](_0x3909e3,'dataReady');break;case'markerReady':_0x3909e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3909e3])),this['_refreshSuggestionsChain'](new Set([_0x3909e3])),this['_suggestionState']['set'](_0x3909e3,'ready'),this['fire']('suggestionLoaded',_0x3909e3)):this['_suggestionState']['set'](_0x3909e3,'removed');}return _0x3909e3;}['acceptSuggestion'](_0x4d8ab5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x9f9a32 of _0x4d8ab5['getAllAdjacentSuggestions']())_0x9f9a32['accept']();});});}['discardSuggestion'](_0x3c365e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5aaeb5 of _0x3c365e['getAllAdjacentSuggestions']())_0x5aaeb5['discard']();});});}['enableCommand'](_0x5339d5,_0x3972e0){const _0x5d9447=this['editor']['commands']['get'](_0x5339d5);if(!_0x5d9447)throw new _0x16ebc5('track-changes-command-not-found',this,{'commandName':_0x5339d5});if(this['_enabledCommands']['has'](_0x5d9447))throw new _0x16ebc5('track-changes-enable-command-twice',this,{'commandName':_0x5339d5});this['_enabledCommands']['add'](_0x5d9447),_0x3972e0&&_0x5d9447['on']('execute',(_0x4d023f,_0x25cb3f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x25cb3f['length']>0x0&&_0x25cb3f[_0x25cb3f['length']-0x1]&&_0x25cb3f[_0x25cb3f['length']-0x1]['forceDefaultExecution']?_0x25cb3f['pop']():(_0x4d023f['return']=_0x3972e0((..._0x4a32a9)=>_0x5d9447['execute'](..._0x4a32a9,{'forceDefaultExecution':!0x0}),..._0x25cb3f),_0x4d023f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x117d5d){let _0x33d519,_0x337fbd;const _0x479ab6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33d519=_0x117d5d();}catch(_0x37af49){_0x337fbd=_0x37af49;}return _0x479ab6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x337fbd&&_0x16ebc5['rethrowUnexpectedError'](_0x337fbd,this),_0x33d519;}['markInsertion'](_0x13b603,_0x15bcef=null,_0x2c55f6={}){if(_0x13b603['isCollapsed'])return null;const _0x2b03bc=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2c55f6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28c715,meta:_0x25a8fc}of this['_findSuggestions'](_0x13b603,'insertion'))if(_0x25a8fc['isOwn']){if(!_0x25a8fc['isNextTo']){if(_0x25a8fc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x28c715,_0x2c55f6))continue;return _0x28c715;}if(sn(_0x28c715,_0x2c55f6))return _0x28c715;this['_breakSuggestionMarker'](_0x28c715,_0x13b603['start'],_0x13b603['end']);break;}if(_0x15bcef==_0x28c715['subType']&&sn(_0x28c715,_0x2c55f6)){const _0x5a0595=_0x28c715['getFirstRange']();return _0x5a0595['start']['isEqual'](_0x13b603['end'])?this['_setSuggestionRange'](_0x28c715,this['_model']['createRange'](_0x13b603['start'],_0x5a0595['end'])):this['_setSuggestionRange'](_0x28c715,this['_model']['createRange'](_0x5a0595['start'],_0x13b603['end'])),_0x28c715;}}const _0x4d5223=_0x512e19(),_0x19f285=_0x2b03bc['id'],_0x265876=_0x15bcef?'insertion:'+_0x15bcef:'insertion',_0x2a1e8f=this['_setSuggestionData']({'id':_0x4d5223,'type':_0x265876,'createdAt':new Date(),'authorId':_0x19f285,'attributes':_0x2c55f6});return this['_addSuggestionMarker'](_0x265876,_0x4d5223,_0x19f285,_0x13b603),_0x2a1e8f;}['markMultiRangeInsertion'](_0x29f084,_0x473016='multi',_0x2e63ce={}){const _0x4cbdcb=this['editor']['plugins']['get']('Users')['me'],_0x3d0122=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x473016,'join');this['_trackingSessionId']&&(_0x2e63ce['trackingSessionId']=this['_trackingSessionId']);for(const _0x52c9aa of this['getSuggestions']())if(_0x52c9aa['author']['id']==_0x4cbdcb['id']&&'insertion'==_0x52c9aa['type']&&_0x52c9aa['subType']==_0x473016&&sn(_0x52c9aa,_0x2e63ce)&&(_0x3d0122(_0x52c9aa['getRanges'](),_0x29f084)||_0x3d0122(_0x29f084,_0x52c9aa['getRanges']()))){for(const _0x37197a of _0x29f084)_0x52c9aa['addRange'](_0x37197a);return _0x52c9aa;}for(const {suggestion:_0x594e26,meta:_0x1be0bf}of this['_findSuggestions'](_0x29f084,'insertion')){if(!_0x1be0bf['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1be0bf['containsRangeInObject'])continue;if(!sn(_0x594e26,_0x2e63ce))continue;let _0x53ec56=!0x0;for(const _0x56907b of _0x594e26['getRanges']())for(const _0x253208 of _0x29f084)if(!_0x56907b['containsRange'](_0x253208)){_0x53ec56=!0x1;break;}if(_0x53ec56)return _0x594e26;}const _0x281f8b=_0x512e19(),_0x61edf1=_0x4cbdcb['id'],_0x47059a='insertion:'+_0x473016,_0x556677=this['_setSuggestionData']({'id':_0x281f8b,'type':_0x47059a,'createdAt':new Date(),'authorId':_0x61edf1,'attributes':_0x2e63ce});for(const _0x525fb0 of _0x29f084)this['_addSuggestionMarker'](_0x47059a,_0x281f8b,_0x61edf1,_0x525fb0,x['getMultiRangeId']());return _0x556677;}['markInlineFormat'](_0x14f3b9,_0x4dc13e,_0x1539e8=null,_0xe056ac={}){if(_0x1539e8=_0x1539e8||Ht(_0x4dc13e),_0x14f3b9['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xe056ac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ed3c1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1539e8,'accept');return this['forceDefaultExecution'](()=>_0x1ed3c1([_0x14f3b9],_0x4dc13e,_0xe056ac)),null;}const _0x1438c6=this['editor']['plugins']['get']('Users')['me'],_0x4900b1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1bb12a,meta:_0x1f8e00}of this['_findSuggestions'](_0x14f3b9,'insertion'))_0x1f8e00['isOwn']&&!_0x1f8e00['isInsideObject']&&_0x4900b1['push'](..._0x1bb12a['getRanges']());}const _0x3bedc3=function(_0x210bf1,_0xca749a){const _0x5d666=[];for(const _0x71a26e of _0xca749a){const _0x1cd3fb=_0x210bf1['getIntersection'](_0x71a26e);_0x1cd3fb&&_0x5d666['push'](_0x1cd3fb);}return _0x5d666;}(_0x14f3b9,_0x4900b1),_0x7ea79=function(_0x1ba4ef,_0x1f00dc){const _0x195c3c=[_0x1ba4ef];for(const _0x125625 of _0x1f00dc){let _0x2f53b4=0x0;for(;_0x2f53b4<_0x195c3c['length'];){const _0x4db739=_0x195c3c[_0x2f53b4]['getDifference'](_0x125625);_0x195c3c['splice'](_0x2f53b4,0x1,..._0x4db739),_0x2f53b4+=_0x4db739['length'];}}return _0x195c3c;}(_0x14f3b9,_0x4900b1);_0x3bedc3['length']&&this['_model']['change'](()=>{for(const _0x513297 of _0x3bedc3){const _0x4bdb83=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1539e8,'accept');this['forceDefaultExecution'](()=>_0x4bdb83([_0x513297],_0x4dc13e,_0xe056ac));}});for(const _0x1c6578 of _0x7ea79){let _0x1843da=null,_0x21f7ea=_0x1c6578['start'],_0x3d533f=_0x1c6578['end'];for(const {suggestion:_0x4c7d49,meta:_0x3263d7}of this['_findSuggestions'](_0x1c6578,'formatInline')){if(!_0x3263d7['isOwn'])continue;if(_0x4c7d49['subType']!=_0x1539e8)continue;if(!sn(_0x4c7d49,_0xe056ac))continue;const _0x1bcd5f=_0x4c7d49['getFirstRange']();if(_0x1bcd5f['containsRange'](_0x1c6578,!0x0))return null;_0x21f7ea=_0x21f7ea['isBefore'](_0x1bcd5f['start'])?_0x21f7ea:_0x1bcd5f['start'],_0x3d533f=_0x3d533f['isAfter'](_0x1bcd5f['end'])?_0x3d533f:_0x1bcd5f['end'],_0x1843da?_0x1bcd5f['start']['isBefore'](_0x1843da['getFirstRange']()['start'])?(_0x1843da['removeMarkers'](),_0x1843da=_0x4c7d49):_0x4c7d49['removeMarkers']():_0x1843da=_0x4c7d49;}const _0x18cb01=this['_model']['createRange'](_0x21f7ea,_0x3d533f);if(_0x1843da)this['_setSuggestionRange'](_0x1843da,_0x18cb01);else{const _0x3a1cab=_0x512e19(),_0x5a207c=_0x1438c6['id'];this['_setSuggestionData']({'id':_0x3a1cab,'type':'formatInline:'+_0x1539e8,'data':_0x4dc13e,'createdAt':new Date(),'authorId':_0x5a207c,'attributes':_0xe056ac}),this['_addSuggestionMarker']('formatInline:'+_0x1539e8,_0x3a1cab,_0x5a207c,_0x18cb01);}}return null;}['markBlockFormat'](_0x19a7cd,_0x3e8877,_0x557a77=[],_0x11d792=null,_0x4f4435={}){_0x3e8877['formatGroupId']||(_0x3e8877['formatGroupId']=_0x3e8877['commandName']),_0x3e8877['multipleBlocks']=_0x19a7cd['is']('range'),_0x11d792=_0x11d792||Ht(_0x3e8877);const _0x5a3b82=_0x557a77['map'](_0x32da30=>tn(_0x32da30,this['_model'])),_0x4281b4=_0x19a7cd['is']('range')?_0x19a7cd:tn(_0x19a7cd,this['_model']);if(this['_trackingSessionId']&&(_0x4f4435['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x698e78=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d792,'accept');return this['forceDefaultExecution'](()=>_0x698e78([_0x4281b4],_0x3e8877,_0x4f4435)),null;}_0x5a3b82['push'](_0x4281b4);let _0x2c7c7f=!0x0;for(const _0x2ec5c1 of _0x5a3b82)if(!this['_rangeIsInLocalUserInsertion'](_0x2ec5c1)){_0x2c7c7f=!0x1;break;}if(_0x2c7c7f&&'always'!==this['_trackFormatChanges']){const _0xae982b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11d792,'accept');return this['forceDefaultExecution'](()=>_0xae982b([_0x4281b4],_0x3e8877,_0x4f4435)),null;}let _0x150866=null,_0x23c1c3=_0x4281b4['start'],_0x33330e=_0x4281b4['end'];for(const {suggestion:_0x3482c6,meta:_0x3f643b}of this['_findSuggestions'](_0x4281b4,'formatBlock')){if(!_0x3f643b['isOwn'])continue;if(_0x3f643b['isNextTo']||_0x3f643b['containsRangeInObject']||_0x3f643b['isInsideObject'])continue;if(_0x3482c6['data']['formatGroupId']!=_0x3e8877['formatGroupId'])continue;if(!sn(_0x3482c6,_0x4f4435))continue;const _0x1166be=_0x3482c6['getFirstRange']();if(_0x3482c6['subType']==_0x11d792){if(_0x1166be['containsRange'](_0x4281b4,!0x0))return null;_0x23c1c3=_0x23c1c3['isBefore'](_0x1166be['start'])?_0x23c1c3:_0x1166be['start'],_0x33330e=_0x33330e['isAfter'](_0x1166be['end'])?_0x33330e:_0x1166be['end'],_0x150866?_0x1166be['start']['isBefore'](_0x150866['getFirstRange']()['start'])?(_0x150866['removeMarkers'](),_0x150866=_0x3482c6):_0x3482c6['removeMarkers']():_0x150866=_0x3482c6;}else{const _0x24484d=_0x4281b4['getIntersection'](_0x1166be);this['_cutOutSuggestionMarker'](_0x3482c6,_0x24484d);}}const _0x450317=this['editor']['plugins']['get']('Users')['me'],_0x485a68=_0x512e19(),_0x260f7d=_0x450317['id'];if(_0x150866)return this['_setSuggestionRange'](_0x150866,this['_model']['createRange'](_0x23c1c3,_0x33330e)),_0x150866;{const _0x3326bb=this['_setSuggestionData']({'id':_0x485a68,'type':'formatBlock:'+_0x11d792,'data':_0x3e8877,'createdAt':new Date(),'authorId':_0x260f7d,'attributes':_0x4f4435});return this['_addSuggestionMarker']('formatBlock:'+_0x11d792,_0x485a68,_0x260f7d,this['_model']['createRange'](_0x23c1c3,_0x33330e)),_0x3326bb;}}['markMultiRangeBlockFormat'](_0x20cf36,_0x423b64,_0x397148=[],_0x4898de=null,_0x4492f0={}){_0x423b64['formatGroupId']||(_0x423b64['formatGroupId']=_0x423b64['commandName']);const _0xf913f5=_0x20cf36[0x0];_0x423b64['multipleBlocks']=_0xf913f5['is']('range'),_0x4898de=_0x4898de||Ht(_0x423b64);const _0x2e1f20=_0x397148['map'](_0x23bb06=>tn(_0x23bb06,this['_model'])),_0x1d19bf=_0xf913f5['is']('range')?_0x20cf36:_0x20cf36['map'](_0x2fbb13=>tn(_0x2fbb13,this['_model']));if(this['_trackingSessionId']&&(_0x4492f0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x12ebf1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4898de,'accept');return this['forceDefaultExecution'](()=>_0x12ebf1(_0x1d19bf,_0x423b64,_0x4492f0)),null;}_0x2e1f20['push'](..._0x1d19bf);let _0x474f0d=!0x0;for(const _0x35752a of _0x2e1f20)if(!this['_rangeIsInLocalUserInsertion'](_0x35752a)){_0x474f0d=!0x1;break;}if(_0x474f0d&&'always'!==this['_trackFormatChanges']){const _0x384ace=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4898de,'accept');return this['forceDefaultExecution'](()=>_0x384ace(_0x1d19bf,_0x423b64,_0x4492f0)),null;}const _0xe9216b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5629ba of this['getSuggestions']()){const _0x358c7f=_0x5629ba['data'];if(_0x5629ba['author']['id']!=_0xe9216b['id'])continue;if('formatBlock'!=_0x5629ba['type']||_0x358c7f['formatGroupId']!=_0x423b64['formatGroupId'])continue;if(!sn(_0x5629ba,_0x4492f0))continue;const _0x5ec24a=_0x5629ba['subType']==_0x4898de;for(let _0x2ed45a=0x0;_0x2ed45a<_0x1d19bf['length'];_0x2ed45a++){const _0x3a224e=_0x1d19bf[_0x2ed45a];for(const _0x3599bf of _0x5629ba['getMarkers']()){const _0x4792de=_0x3599bf['getRange']();if(_0x3a224e['isEqual'](_0x4792de)){_0x5ec24a?(_0x1d19bf['splice'](_0x2ed45a,0x1),_0x2ed45a--):_0x5629ba['removeMarker'](_0x3599bf['name']);break;}}}}if(0x0==_0x1d19bf['length'])return null;const _0x3be412=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4898de,'join');for(const _0x321569 of this['getSuggestions']()){const _0x2f1f14=_0x321569['data'];if(_0x321569['author']['id']==_0xe9216b['id']&&('formatBlock'==_0x321569['type']&&_0x2f1f14['formatGroupId']==_0x423b64['formatGroupId']&&_0x321569['subType']==_0x4898de&&sn(_0x321569,_0x4492f0)&&(_0x3be412(_0x321569['getRanges'](),_0x1d19bf)||_0x3be412(_0x1d19bf,_0x321569['getRanges']())))){for(const _0x2aeb61 of _0x1d19bf)_0x321569['addRange'](_0x2aeb61);return _0x321569;}}const _0x44d2f6=_0x512e19(),_0x3ec268=_0xe9216b['id'],_0x3adeb9='formatBlock:'+_0x4898de,_0x4bcf0f=this['_setSuggestionData']({'id':_0x44d2f6,'type':_0x3adeb9,'data':_0x423b64,'createdAt':new Date(),'authorId':_0x3ec268,'attributes':_0x4492f0});for(const _0xb69348 of _0x1d19bf)this['_addSuggestionMarker'](_0x3adeb9,_0x44d2f6,_0x3ec268,_0xb69348,x['getMultiRangeId']());return _0x4bcf0f;}['markDeletion'](_0x3233b3,_0x30e083=null,_0x563a76={}){if(_0x3233b3['isCollapsed'])return null;const _0x13626a=this['editor']['plugins']['get']('Users')['me'],_0x303e1d=new _0x5bf397(_0x3233b3['start'],_0x3233b3['end']);this['_trackingSessionId']&&(_0x563a76['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b462e,meta:_0x1e0ffa}of this['_findSuggestions'](_0x303e1d,'insertion'))if(_0x1e0ffa['isOwn']&&!_0x1e0ffa['isNextTo']){if(_0x3b462e['isMultiRange']){const _0x35bb0a=_0x3b462e['getRanges']()['filter'](_0x5325a4=>'$graveyard'!=_0x5325a4['root']['rootName']);_0x35bb0a['every'](_0x2e6ca1=>_0x303e1d['containsRange'](_0x2e6ca1,!0x0))&&_0x3b462e['discard']();if(_0x35bb0a['some'](_0xeeb138=>_0xeeb138['containsRange'](_0x303e1d,!0x0))){const _0x2a48c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30e083,'accept');return this['forceDefaultExecution'](()=>_0x2a48c1([_0x303e1d],null,_0x563a76)),null;}}else{const _0x54b684=_0x303e1d['getIntersection'](_0x3b462e['getFirstRange']());null!==_0x54b684&&_0x3b462e['_onDiscard']([_0x54b684],null,_0x563a76);}}if(_0x303e1d['detach'](),_0x303e1d['isCollapsed']||'$graveyard'==_0x303e1d['root']['rootName'])return null;let _0x30ac1b=null,_0x275727=_0x303e1d['start'],_0x211c04=_0x303e1d['end'];const _0x4fea51=this['_findSuggestions'](_0x303e1d,'deletion');for(const {suggestion:_0x3f0058,meta:_0x8f7971}of _0x4fea51){const _0x13a23d=this['_model']['createRange'](_0x275727,_0x211c04);if(_0x8f7971['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8f7971['containsRangeInObject']&&!_0x8f7971['isInsideObject'])){if(_0x3f0058['isMultiRange']){if(!sn(_0x3f0058,_0x563a76))continue;let _0x418eb6=!0x0;for(const _0x44b54a of _0x3f0058['getRanges']()){if(_0x44b54a['containsRange'](_0x13a23d,!0x0))return _0x3f0058;_0x13a23d['containsRange'](_0x44b54a)||(_0x418eb6=!0x1);}_0x418eb6&&_0x3f0058['discard']();}else{const _0x16be76=_0x3f0058['getFirstRange']();if(_0x16be76['containsRange'](_0x13a23d,!0x0))return _0x3f0058;if(!sn(_0x3f0058,_0x563a76)){_0x13a23d['containsRange'](_0x16be76)?_0x3f0058['removeMarkers']():_0x16be76['containsPosition'](_0x275727)?_0x275727=_0x16be76['end']:_0x16be76['containsPosition'](_0x211c04)&&(_0x211c04=_0x16be76['start']);continue;}_0x275727=_0x275727['isBefore'](_0x16be76['start'])?_0x275727:_0x16be76['start'],_0x211c04=_0x211c04['isAfter'](_0x16be76['end'])?_0x211c04:_0x16be76['end'],_0x563a76=Object['assign']({},_0x3f0058['attributes']),_0x30ac1b?_0x16be76['start']['isBefore'](_0x30ac1b['getFirstRange']()['start'])?(_0x30ac1b['removeMarkers'](),_0x30ac1b=_0x3f0058):_0x3f0058['removeMarkers']():_0x30ac1b=_0x3f0058;}}}if(_0x30ac1b)return this['_setSuggestionRange'](_0x30ac1b,this['_model']['createRange'](_0x275727,_0x211c04)),_0x30ac1b;{const _0x6c0c67=_0x512e19(),_0x37400c=this['_model']['createRange'](_0x275727,_0x211c04),_0x8e773f=_0x13626a['id'],_0x130eb0=_0x30e083?'deletion:'+_0x30e083:'deletion',_0x1387a2=this['_setSuggestionData']({'id':_0x6c0c67,'type':_0x130eb0,'createdAt':new Date(),'authorId':_0x8e773f,'attributes':_0x563a76});return this['_addSuggestionMarker'](_0x130eb0,_0x6c0c67,_0x8e773f,_0x37400c),_0x1387a2;}}['markMultiRangeDeletion'](_0xc16568,_0x17fbb3='multi',_0x785de3={}){const _0xd3cd73=this['editor']['plugins']['get']('Users')['me'],_0x133798=_0xc16568['map'](_0x11bd40=>new _0x5bf397(_0x11bd40['start'],_0x11bd40['end'])),_0x4fad1a=new Set();this['_trackingSessionId']&&(_0x785de3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3d5450,meta:_0x1bf29d}of this['_findSuggestions'](_0x133798,'insertion'))_0x1bf29d['isOwn']&&!_0x1bf29d['isNextTo']&&_0x4fad1a['add'](_0x3d5450);for(const _0x1a349e of _0x4fad1a)if(_0x1a349e['isMultiRange']){const _0x1e5cca=_0x1a349e['getRanges']();(!_0x1a349e['attributes']||!_0x1a349e['attributes']['skipNestingCheck'])&&(_0x1e5cca['every'](_0x1f3381=>_0x133798['some'](_0x58f2e6=>_0x58f2e6['containsRange'](_0x1f3381,!0x0)))&&_0x1a349e['discard']());if(_0x133798['every'](_0x126d4e=>_0x1e5cca['some'](_0x1c6b2e=>_0x1c6b2e['containsRange'](_0x126d4e,!0x0)))){const _0x4560d0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17fbb3,'accept');return this['forceDefaultExecution'](()=>_0x4560d0(_0xc16568,null,_0x785de3)),null;}}else{const _0x355cc1=_0x1a349e['getFirstRange']();_0x133798['some'](_0x1dccfa=>_0x1dccfa['containsRange'](_0x355cc1,!0x0))&&_0x1a349e['discard']();if(_0x133798['every'](_0x28d7ab=>_0x355cc1['containsRange'](_0x28d7ab,!0x0))){const _0x25f95e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17fbb3,'accept');return this['forceDefaultExecution'](()=>_0x25f95e(_0x133798,null,_0x785de3)),null;}}const _0xa49ad5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17fbb3,'join');let _0x2f46ad=null;for(const _0x5e7a85 of this['getSuggestions']())if(_0x5e7a85['author']['id']==_0xd3cd73['id']&&_0x5e7a85['isInContent']&&'deletion'==_0x5e7a85['type']&&_0x5e7a85['subType']==_0x17fbb3&&sn(_0x5e7a85,_0x785de3)&&(_0xa49ad5(_0x5e7a85['getRanges'](),_0x133798)||_0xa49ad5(_0x133798,_0x5e7a85['getRanges']()))){if(_0x2f46ad){if(_0x5e7a85['commentThread']&&_0x5e7a85['commentThread']['length'])continue;for(const _0x262145 of _0x5e7a85['getRanges']())_0x2f46ad['isIntersectingWithRange'](_0x262145)||_0x2f46ad['addRange'](_0x262145);_0x5e7a85['removeMarkers']();}else{_0x2f46ad=_0x5e7a85;for(const _0x2d650b of _0x133798)_0x5e7a85['isIntersectingWithRange'](_0x2d650b)||_0x5e7a85['addRange'](_0x2d650b);}}if(_0x2f46ad)return _0x2f46ad;_0x4fad1a['clear']();for(const {suggestion:_0x212425,meta:_0x1aedf5}of this['_findSuggestions'](_0x133798,'deletion'))_0x1aedf5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1aedf5['containsRangeInObject']&&!_0x1aedf5['isInsideObject'])&&sn(_0x212425,_0x785de3)&&_0x4fad1a['add'](_0x212425);for(const _0x343e0b of _0x4fad1a){const _0x51d84e=_0x343e0b['getRanges']();if(!_0x785de3||!_0x785de3['skipNestingCheck']){if(_0x133798['every'](_0x5e26b5=>_0x51d84e['some'](_0x421978=>_0x421978['containsRange'](_0x5e26b5,!0x0))))return _0x343e0b;}(!_0x343e0b['attributes']||!_0x343e0b['attributes']['skipNestingCheck'])&&(_0x51d84e['every'](_0xca0dcf=>_0x133798['some'](_0x2a9233=>_0x2a9233['containsRange'](_0xca0dcf,!0x0)))&&_0x343e0b['discard']());}const _0x2b7f9d=_0x512e19(),_0x54935b=_0xd3cd73['id'],_0x3999aa='deletion:'+_0x17fbb3,_0x493a8=this['_setSuggestionData']({'id':_0x2b7f9d,'type':_0x3999aa,'createdAt':new Date(),'authorId':_0x54935b,'attributes':_0x785de3});for(const _0x29d2ad of _0x133798)_0x29d2ad['detach'](),_0x29d2ad['isCollapsed']||'$graveyard'==_0x29d2ad['root']['rootName']||this['_addSuggestionMarker'](_0x3999aa,_0x2b7f9d,_0x54935b,_0x29d2ad,x['getMultiRangeId']());return _0x493a8;}['markAttributeChange'](_0x58f1e8,_0x4c8960,_0x585261,_0x303fe3,_0x3d1132){if(_0x58f1e8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3f8a88=this['editor']['plugins']['get']('Users')['me']['id'],_0x478be2=Array['from'](this['_suggestions']['values']())['filter'](_0x14ad27=>'attribute'==_0x14ad27['type']&&_0x14ad27['data']['key']==_0x4c8960&&_0x14ad27['isIntersectingWithRange'](_0x58f1e8));if(this['_trackingSessionId']&&(_0x3d1132['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x425e24=this['_findSuggestions'](_0x58f1e8,'insertion')['filter'](({meta:_0x416b0d})=>_0x416b0d['isOwn']&&!_0x416b0d['isInsideObject']&&!_0x416b0d['isNextTo'])['map'](({suggestion:_0x354519})=>_0x354519);_0x478be2['unshift'](..._0x425e24);}const _0x4cf221=new Map([[_0x58f1e8,_0x585261]]);for(const _0x335336 of _0x478be2){const _0x3b1813='attribute'==_0x335336['type']?_0x335336['data']['oldValue']:void 0x0,_0x45dd86=_0x335336['getFirstRange'](),_0x5e3208=Array['from'](_0x4cf221['keys']())['find'](_0x54c63a=>_0x54c63a['isIntersecting'](_0x45dd86));if(!_0x5e3208)continue;const _0x5b5f1a=_0x5e3208['getDifference'](_0x45dd86);this['_isBlockAttribute'](_0x4c8960)&&'insertion'==_0x335336['type']&&0x0!=_0x5b5f1a['length']||(_0x4cf221['delete'](_0x5e3208),_0x5b5f1a['forEach'](_0x580f6e=>{_0x4cf221['set'](_0x580f6e,_0x585261);}),'insertion'!=_0x335336['type']&&_0x3b1813!=_0x303fe3&&_0x4cf221['set'](_0x5e3208['getIntersection'](_0x45dd86),_0x3b1813));}const _0xff9aa0=[];for(const [_0x4ae797,_0x30f37a]of _0x4cf221){const _0x3c4f72=_0x512e19(),_0x3ecb45={'key':_0x4c8960,'oldValue':_0x30f37a,'newValue':_0x303fe3};_0x4c8960['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':_0x4c8960});const _0x54f2b7=('attribute:'+(_0x4c8960+'|'+Ht({'newValue':_0x303fe3})))['substring'](0x0,0x3c),_0x2a81c5=this['_setSuggestionData']({'id':_0x3c4f72,'type':_0x54f2b7,'data':_0x3ecb45,'createdAt':new Date(),'authorId':_0x3f8a88,'attributes':_0x3d1132});_0xff9aa0['push'](_0x2a81c5),this['_addSuggestionMarker'](_0x54f2b7,_0x3c4f72,_0x3f8a88,_0x4ae797);}return _0xff9aa0;}['enableDefaultAttributesIntegration'](_0x453ca2){this['enableCommand'](_0x453ca2,(_0x8d461b,..._0x511d9a)=>{this['recordAttributeChanges'](()=>{_0x8d461b(..._0x511d9a);});});}['registerBlockAttribute'](_0x29c1ba){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x29c1ba);}['registerInlineAttribute'](_0x4fc507){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x4fc507);}['startTrackingSession'](_0x54c7b6){return this['_trackingSessionId']=void 0x0!==_0x54c7b6?_0x54c7b6:_0x512e19(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3ca875){return'attribute'==_0x3ca875['type']?_0x3ca875['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x50c6ec){if(0x0==_0x50c6ec['length'])return;const _0x2a6734=this['editor'],_0x699c37=_0x2a6734['plugins']['get'](_0x3d631f),_0x5e3891=[];_0x2a6734['model']['change'](_0x33f627=>{for(let _0x335ac7=0x0;_0x335ac7<_0x50c6ec['length'];_0x335ac7++){const _0x1af3d3=_0x50c6ec[_0x335ac7];if(_0x1af3d3['baseVersion']=_0x2a6734['model']['document']['version'],_0x1af3d3['isDocumentOperation']=!0x0,_0x699c37['isMarkedRemoveOperation'](_0x1af3d3)){const _0x4da6b1=Lt(_0x1af3d3['newRange'],_0x2a6734['model']);_0x5e3891['unshift'](_0x5bf397['fromRange'](_0x4da6b1));}else switch(_0x1af3d3['type']){case'rename':{const _0x129897=_0x1af3d3['oldName'],_0x5347ba=_0x1af3d3['newName'];if(_0x129897==_0x5347ba)break;_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);const _0x401f33='$elementName',_0x30089b=_0x1af3d3['position'],_0x5f4666=_0x2a6734['model']['createRange'](_0x30089b,_0x2a6734['model']['createPositionAt'](_0x30089b['nodeAfter'],'end'));this['markAttributeChange'](_0x5f4666,_0x401f33,_0x129897,_0x5347ba,{'groupId':_0x512e19()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x49336b=_0x1af3d3['oldValue'],_0x2427e4=_0x1af3d3['newValue'];if(_0x49336b==_0x2427e4)break;_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);const _0x4b6bc9=_0x1af3d3['key'];if(!this['_isRegisteredAttribute'](_0x4b6bc9))break;const _0x3fdee7=Lt(_0x1af3d3['range'],_0x2a6734['model']);this['markAttributeChange'](_0x3fdee7,_0x4b6bc9,_0x49336b,_0x2427e4,{'groupId':_0x512e19()});break;}case'insert':{_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);if(_0x50c6ec[_0x335ac7+0x1]&&'move'==_0x50c6ec[_0x335ac7+0x1]['type'])break;const _0x21f732=_0x1af3d3['position'],_0x46923b=_0x1af3d3['howMany'],_0x7cf1e0=Lt(_0x2a6734['model']['createRange'](_0x21f732,_0x21f732['getShiftedBy'](_0x46923b)),_0x2a6734['model']);this['markInsertion'](_0x7cf1e0);break;}case'split':{_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);const _0x5f3cc1=_0x1af3d3['splitPosition'],_0x4e892e=_0x1af3d3['moveTargetPosition'];this['markInsertion'](_0x2a6734['model']['createRange'](_0x5f3cc1,_0x4e892e));break;}case'move':case'remove':_0x33f627['batch']['addOperation'](_0x1af3d3),_0x2a6734['model']['applyOperation'](_0x1af3d3);}}for(const _0xc53eaa of _0x5e3891)_0xc53eaa['detach'](),this['markDeletion'](_0xc53eaa);});}['_setSuggestionRange'](_0x303497,_0xab08b5){const _0x5d71c5=_0x303497['getFirstMarker']();this['_model']['change'](_0x4b8224=>{_0x4b8224['updateMarker'](_0x5d71c5,{'range':_0xab08b5});});}['_addThreadToSuggestion'](_0x554fdb){const _0xfea1e7=_0x554fdb['id'],_0x2c9863=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xfea1e7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c9863,'threadId':_0xfea1e7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d2552=this['_commentsRepository']['getCommentThread'](_0xfea1e7);_0x3d2552['unbind']('isRemovable'),_0x3d2552['isRemovable']=!0x1,_0x554fdb['commentThread']=_0x3d2552;}['_checkSuggestionCorrectness'](_0x524cdc,_0x1ccd43,_0x2d9418,_0x41e7f){if(_0x524cdc['type']!=_0x1ccd43||_0x524cdc['subType']!=_0x2d9418||_0x524cdc['creator']['id']!=_0x41e7f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x16ebc5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5d0c4b,_0x52b879){const _0x36d6f9=_0x5d0c4b['getFirstRange']();if(_0x52b879['isEqual'](_0x36d6f9))_0x5d0c4b['removeMarkers']();else{if(_0x36d6f9['containsRange'](_0x52b879)){const _0x3b6ad1=this['_model']['createPositionAt'](_0x52b879['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d0c4b,this['_model']['createRange'](_0x36d6f9['start'],_0x3b6ad1));const _0x6aef25=_0x512e19(),_0x582f9b=_0x5d0c4b['creator']['id'],_0x16f873=_0x5d0c4b['type']+':'+_0x5d0c4b['subType'];this['_setSuggestionData']({'id':_0x6aef25,'type':_0x16f873,'createdAt':new Date(),'authorId':_0x582f9b,'data':_0x5d0c4b['data'],'attributes':_0x5d0c4b['attributes']});const _0x26da35=this['_model']['createPositionAt'](_0x52b879['end']['parent'],'after'),_0x48c1ac=this['_model']['createRange'](_0x26da35,_0x36d6f9['end']);this['_addSuggestionMarker'](_0x16f873,_0x6aef25,_0x582f9b,_0x48c1ac);}else{if(_0x36d6f9['containsPosition'](_0x52b879['start'])){const _0x405980=this['_model']['createPositionAt'](_0x52b879['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d0c4b,this['_model']['createRange'](_0x36d6f9['start'],_0x405980));}else{const _0x33f7b8=this['_model']['createPositionAt'](_0x52b879['end']['parent'],'after');this['_setSuggestionRange'](_0x5d0c4b,this['_model']['createRange'](_0x33f7b8,_0x36d6f9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13f703){for(const {suggestion:_0x5e6fc0,meta:_0x25c7b5}of this['_findSuggestions'](_0x13f703,'insertion')){if(!_0x25c7b5['isOwn'])continue;const _0x1588a8=_0x5e6fc0['getRanges']();for(const _0x2b5afe of _0x1588a8)if(!_0x13f703['getDifference'](_0x2b5afe)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x21e976){return this['editor']['plugins']['get']('Users')['getUser'](_0x21e976);}['_getExternalAuthor'](_0x34f57b){const _0x15da4a=this['editor']['plugins']['get']('Users'),_0x259bd9=_0x50d2ee('external:'+_0x34f57b),_0x4d5c3d=_0x15da4a['getUser'](_0x259bd9);return _0x4d5c3d||_0x15da4a['addUser']({'id':_0x259bd9,'name':_0x34f57b});}['_createSuggestion'](_0x3d3664,_0x59cc34,_0x5b2f22,_0x26ce1c,_0x2a6271,_0x36fe88){const _0x27c663=this['_getAuthorFromId'](_0x26ce1c);if(!_0x27c663)throw new _0x16ebc5('track-changes-user-not-found',this,{'authorId':_0x26ce1c,'suggestionId':_0x5b2f22});const _0x23bc9a=this['_suggestionFactory']['buildSuggestion'](_0x3d3664,_0x59cc34,_0x5b2f22,_0x27c663,_0x2a6271,_0x5bfc56=>{this['_updateSuggestionData'](_0x5b2f22,{'attributes':_0x5bfc56});const _0x465afc=this['getSuggestion'](_0x5b2f22);this['_joinWithAdjacentSuggestions'](new Set([_0x465afc])),this['_refreshSuggestionsChain'](new Set([_0x465afc]));},_0x36fe88);return this['listenTo'](_0x23bc9a,'accept',()=>{this['_updateSuggestionData'](_0x5b2f22,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x23bc9a,'discard',()=>{this['_updateSuggestionData'](_0x5b2f22,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b2f22,_0x23bc9a),this['_suggestionState']['set'](_0x23bc9a,'notReady'),_0x23bc9a;}['_splitMarkerName'](_0x15660f){return Gt(_0x15660f);}['_breakSuggestionMarker'](_0x14175e,_0x1d0bf8,_0x24ab0c){const _0x36d539=_0x14175e['getFirstRange'](),_0x3ae074=_0x36d539['start'],_0x3eb9de=_0x36d539['end'];this['_setSuggestionRange'](_0x14175e,this['_model']['createRange'](_0x3ae074,_0x1d0bf8));const _0x1bd1c3=_0x512e19(),_0x1bfca6=_0x14175e['creator']['id'],_0x22f1fb=_0x14175e['type']+(_0x14175e['subType']?':'+_0x14175e['subType']:'');this['_setSuggestionData']({'id':_0x1bd1c3,'type':_0x22f1fb,'createdAt':new Date(),'authorId':_0x1bfca6,'originalSuggestionId':_0x14175e['_originalSuggestionId']||_0x14175e['id'],'attributes':_0x14175e['attributes'],'data':_0x14175e['data']});const _0x511b62=this['_getAttributeKey'](_0x14175e);('formatBlock'==_0x14175e['type']||_0x511b62&&this['_isBlockAttribute'](_0x511b62))&&(_0x24ab0c=this['_model']['createPositionBefore'](_0x24ab0c['parent'])),this['_addSuggestionMarker'](_0x22f1fb,_0x1bd1c3,_0x1bfca6,this['_model']['createRange'](_0x24ab0c,_0x3eb9de));}['_findSuggestions'](_0x4fa2d8,_0x39bb95=null){const _0x51d9b2=[],_0x2864e5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4fa2d8)||(_0x4fa2d8=[_0x4fa2d8]);for(const _0x2e63d7 of this['getSuggestions']()){if(!_0x2e63d7['isInContent'])continue;if(_0x39bb95&&_0x2e63d7['type']!=_0x39bb95)continue;let _0xe943ba=!0x1;for(const _0x364a5b of _0x2e63d7['getRanges']()){for(const _0x3260c2 of _0x4fa2d8){const _0x37521d=_0x3260c2['start']['isEqual'](_0x364a5b['end'])||_0x3260c2['end']['isEqual'](_0x364a5b['start']);if(_0x37521d||_0x3260c2['getIntersection'](_0x364a5b)){const _0x1b09b3=_0x3260c2['containsRange'](_0x364a5b)&&zt(this['_model']['schema'],_0x364a5b['start'],_0x3260c2),_0x7cebe2=_0x364a5b['containsRange'](_0x3260c2)&&zt(this['_model']['schema'],_0x3260c2['start'],_0x364a5b);_0x51d9b2['push']({'suggestion':_0x2e63d7,'meta':{'isOwn':_0x2864e5==_0x2e63d7['author'],'isNextTo':_0x37521d,'isInsideObject':_0x1b09b3,'containsRangeInObject':_0x7cebe2}}),_0xe943ba=!0x0;break;}}if(_0xe943ba)break;}}return _0x51d9b2;}['_addSuggestionMarker'](_0x48b384,_0x18f8b7,_0x9bfdf1,_0x150e12,_0x282038){this['_model']['change'](_0x516a68=>{let _0x41c8c1='suggestion:'+_0x48b384+':'+_0x18f8b7+':'+_0x9bfdf1;_0x282038&&(_0x41c8c1=_0x41c8c1+':'+_0x282038),_0x516a68['addMarker'](_0x41c8c1,{'range':_0x150e12,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4ab5bc){const _0xb739c8=_0x4ab5bc['previous'],_0x2a696c=_0x4ab5bc['next'];_0x4ab5bc['previous']=null,_0x4ab5bc['next']=null,null!=_0xb739c8&&_0xb739c8['next']==_0x4ab5bc&&(_0xb739c8['next']=_0x2a696c),null!=_0x2a696c&&_0x2a696c['previous']==_0x4ab5bc&&(_0x2a696c['previous']=_0xb739c8),'ready'==this['_suggestionState']['get'](_0x4ab5bc)&&(this['_suggestionState']['set'](_0x4ab5bc,'removed'),this['fire']('suggestionUnloaded',_0x4ab5bc,_0xb739c8,_0x2a696c));}['_setSuggestionData'](_0x1bc38e){const _0x13d0e8=_0x1bc38e['id'],_0x14eeba=this['addSuggestionData'](_0x1bc38e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x282600=this['editor']['plugins']['get']('PendingActions'),_0x3eea0b=_0x14eeba['hasComments'],_0x526ac9=_0x14eeba['subType']?_0x14eeba['type']+':'+_0x14eeba['subType']:_0x14eeba['type'],_0x50a828=this['editor']['locale'],_0x59ff4f=_0x282600['add'](o(_0x50a828,'PENDING_ACTION_SUGGESTION')),_0x4ecb35={'id':_0x13d0e8,'type':_0x526ac9,'hasComments':_0x3eea0b,'data':_0x1bc38e['data']||null,'originalSuggestionId':_0x1bc38e['originalSuggestionId']||null,'attributes':_0x14eeba['attributes']};this['_adapter']['addSuggestion'](_0x4ecb35)['then'](_0x56d9cc=>{_0x14eeba['_saved']=!0x0,_0x282600['remove'](_0x59ff4f),_0x56d9cc&&_0x56d9cc['createdAt']&&(this['_suggestions']['get'](_0x13d0e8)['createdAt']=_0x56d9cc['createdAt']);})['catch'](_0x135332=>{throw _0x6e283a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x14eeba['discard']();}),_0x14eeba['stopListening'](),this['_suggestions']['delete'](_0x14eeba['id']),this['_suggestionState']['delete'](_0x14eeba),_0x135332;});}return _0x14eeba;}['_isBlockAttribute'](_0x4e26d2){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x4e26d2);}['_isInlineAttribute'](_0x5d3090){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x5d3090);}['_updateSuggestionData'](_0x44f304,_0x11dded){const _0x439fc0=this['editor']['plugins']['get']('PendingActions'),_0xc000ce=this['getSuggestion'](_0x44f304);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xc000ce['_saved']){const _0x567d35=_0x439fc0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x44f304,_0x11dded)['then'](()=>{_0x439fc0['remove'](_0x567d35);});}else _0xc000ce['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x44f304,_0x11dded);});}}['_getSuggestionData'](_0x2d37bc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x16ebc5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d37bc);}['_handleNewSuggestionMarker'](_0x51335){const {id:_0x108cc2,type:_0x1f7fb9,subType:_0x53cb35,authorId:_0x4f2fe1}=this['_splitMarkerName'](_0x51335),_0x4d40e0=this['_suggestions']['get'](_0x108cc2)||this['_createSuggestion'](_0x1f7fb9,_0x53cb35,_0x108cc2,_0x4f2fe1,{});switch(this['_checkSuggestionCorrectness'](_0x4d40e0,_0x1f7fb9,_0x53cb35,_0x4f2fe1),this['_suggestionState']['get'](_0x4d40e0)){case'notReady':this['_getSuggestionData'](_0x108cc2)['then'](_0x524b73=>{let _0x53017b=Promise['resolve']();_0x524b73['hasComments']&&(_0x53017b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x108cc2})),_0x53017b['then'](()=>{this['addSuggestionData'](_0x524b73)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4d40e0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x108cc2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4d40e0,'ready'),this['fire']('suggestionLoaded',_0x4d40e0);break;case'ready':this['fire']('suggestionChanged',_0x4d40e0);}return _0x4d40e0['addMarkerName'](_0x51335),_0x4d40e0;}['_refreshSuggestionsChain'](_0x466c4b){const _0x5655bc=Array['from'](_0x466c4b),_0x3d33c8=_0x5655bc['filter'](_0x585302=>'attribute'==_0x585302['type']);this['_refreshAttributeSuggestionsChain'](_0x3d33c8);const _0xc88510=_0x5655bc['filter'](_0x381c5e=>!_0x381c5e['isMultiRange']&&'attribute'!=_0x381c5e['type']),_0x170753=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ebd72=>!_0x5ebd72['isMultiRange']&&'attribute'!=_0x5ebd72['type']),_0x26d4b7=_0x170753['filter'](_0x3ab313=>!_0x466c4b['has'](_0x3ab313)),_0x19b8ae=new Map(_0x170753['map'](_0x411e34=>[_0x411e34,this['_suggestionFactory']['getSuggestionCallback'](_0x411e34['type'],_0x411e34['subType'],'chain')])),_0x5dea85=new Map(_0x170753['map'](_0x3526c2=>[_0x3526c2,_0x3526c2['getFirstRange']()])),_0x2f2551=new Set(),_0x399933=new Set();for(let _0x597566=0x0;_0x597566<_0xc88510['length'];_0x597566++)_0xe8df8c(_0xc88510[_0x597566],_0xc88510,_0x597566+0x1);for(let _0x426407=0x0;_0x426407<_0xc88510['length'];_0x426407++)_0xe8df8c(_0xc88510[_0x426407],_0x26d4b7,0x0);const _0x4c4d6e=new Set();for(let _0x23e78d=0x0;_0x23e78d<_0xc88510['length'];_0x23e78d++){const _0x37084b=_0xc88510[_0x23e78d];!_0x399933['has'](_0x37084b)&&_0x37084b['previous']&&(_0x4c4d6e['add'](_0x37084b['previous']),_0x37084b['previous']['next']===_0x37084b&&(_0x37084b['previous']['next']=null),_0x37084b['previous']=null),!_0x2f2551['has'](_0x37084b)&&_0x37084b['next']&&(_0x4c4d6e['add'](_0x37084b['next']),_0x37084b['next']['previous']===_0x37084b&&(_0x37084b['next']['previous']=null),_0x37084b['next']=null);}function _0xe8df8c(_0x417710,_0x2a65ff,_0x3be549){for(let _0x270feb=_0x3be549;_0x270feb<_0x2a65ff['length'];_0x270feb++){const _0x5dae59=_0x2a201c(_0x417710,_0x2a65ff[_0x270feb]);_0x5dae59&&(_0x5dae59[0x0]['next']=_0x5dae59[0x1],_0x5dae59[0x1]['previous']=_0x5dae59[0x0],_0x2f2551['add'](_0x5dae59[0x0]),_0x399933['add'](_0x5dae59[0x1]));}}function _0x2a201c(_0x40e436,_0x2a833f){if(_0x40e436['author']['id']!==_0x2a833f['author']['id'])return null;const _0x533d8c=_0x19b8ae['get'](_0x40e436)(_0x40e436,_0x2a833f,_0x5dea85['get'](_0x40e436),_0x5dea85['get'](_0x2a833f));if(!_0x533d8c)return null;return _0x19b8ae['get'](_0x2a833f)(_0x40e436,_0x2a833f,_0x5dea85['get'](_0x40e436),_0x5dea85['get'](_0x2a833f))?_0x533d8c[0x1]['commentThread']&&_0x533d8c[0x1]['commentThread']['length']?null:_0x533d8c:null;}_0x4c4d6e['size']&&this['_refreshSuggestionsChain'](_0x4c4d6e);}['_refreshAttributeSuggestionsChain'](_0x33fd74){if(0x0==_0x33fd74['length'])return;const _0x1097f7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x268ffc=>'attribute'==_0x268ffc['type']&&_0x268ffc['_isDataLoaded']),_0x4f922b=[],_0x45f06e=new Map();for(const _0x3fad51 of _0x1097f7){const _0xcb2f2d=_0x50d2ee(_0x3fad51['attributes']);_0x45f06e['has'](_0xcb2f2d)||(_0x45f06e['set'](_0xcb2f2d,_0x4f922b['length']),_0x4f922b['push']([]));const _0x14bd61=_0x45f06e['get'](_0xcb2f2d);_0x4f922b[_0x14bd61]['push'](_0x3fad51);}!(function(){_0x4f922b['sort']((_0x303d1f,_0x30ba7c)=>{const _0x1cb1af=_0x303d1f[0x0]['createdAt'],_0xd5877d=_0x30ba7c[0x0]['createdAt'];return _0x1cb1af==_0xd5877d?_0x303d1f[0x0]['attributes']['groupId']<_0x30ba7c[0x0]['attributes']['groupId']?-0x1:0x1:_0x1cb1af<_0xd5877d?-0x1:0x1;});for(const _0x153619 of _0x4f922b)_0x153619['sort']((_0xa0d93a,_0x45390c)=>_0xa0d93a['id']<_0x45390c['id']?-0x1:0x1);}());for(let _0x39d7bb=0x0;_0x39d7bb<_0x4f922b['length'];_0x39d7bb++){if(0x0==_0x4f922b[_0x39d7bb]['length'])continue;const _0x567056=[];for(let _0x392df7=_0x39d7bb+0x1;_0x392df7<_0x4f922b['length'];_0x392df7++)0x0!=_0x4f922b[_0x392df7]['length']&&_0x265629(_0x4f922b[_0x39d7bb],_0x4f922b[_0x392df7])&&_0x567056['push'](_0x392df7);for(const _0x1b152f of _0x567056)_0x4f922b[_0x39d7bb]=_0x4f922b[_0x39d7bb]['concat'](_0x4f922b[_0x1b152f]),_0x4f922b[_0x1b152f]=[];}for(const _0x437281 of _0x4f922b)for(let _0x143330=0x0;_0x143330<_0x437281['length'];_0x143330++){const _0x2c73af=_0x437281[_0x143330+0x1]||null;_0x437281[_0x143330]['next']!==_0x2c73af&&(_0x437281[_0x143330]['next']=_0x2c73af);}for(const _0x6f3fa6 of _0x4f922b)for(let _0x2600d5=0x0;_0x2600d5<_0x6f3fa6['length'];_0x2600d5++){const _0xa9bcf5=_0x6f3fa6[_0x2600d5-0x1]||null;_0x6f3fa6[_0x2600d5]['previous']!==_0xa9bcf5&&(_0x6f3fa6[_0x2600d5]['previous']=_0xa9bcf5);}function _0x265629(_0x501edb,_0x19a562){if(_0x501edb[0x0]['attributes']['groupId']!==_0x19a562[0x0]['attributes']['groupId']&&_0x501edb[0x0]['author']!==_0x19a562[0x0]['author'])return!0x1;if(!function(_0x33209a,_0x35eeef){if(!_0x33209a['hasComments']&&!_0x35eeef['hasComments'])return!0x0;if(_0x33209a['hasComments']&&_0x35eeef['hasComments'])return!0x1;if(_0x33209a['hasComments']&&_0x35eeef['createdAt']<_0x33209a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x35eeef['hasComments']&&_0x33209a['createdAt']<_0x35eeef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x501edb[0x0],_0x19a562[0x0]))return!0x1;const _0x4d4ca9=Pt(_0x501edb[0x0]['attributes'],['groupId','trackingSessionId']),_0x1c9c1f=Pt(_0x19a562[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5cdaa6(_0x4d4ca9,_0x1c9c1f))return!0x1;if(_0x501edb[0x0]['attributes']['groupId']==_0x19a562[0x0]['attributes']['groupId'])return!0x0;if(_0x501edb[0x0]['attributes']['trackingSessionId']!==_0x19a562[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x501edb['every'](_0x21ff42=>_0x19a562['some'](_0x29b060=>_0x21ff42['getFirstRange']()['isEqual'](_0x29b060['getFirstRange']())))&&_0x19a562['every'](_0x2d7fde=>_0x501edb['some'](_0x4c0c2c=>_0x2d7fde['getFirstRange']()['isEqual'](_0x4c0c2c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x252145){const _0x6ea325=Array['from'](_0x252145),_0x22e3f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3d5df9=_0x22e3f2['filter'](_0x32d249=>!_0x252145['has'](_0x32d249)),_0x4ae9a9=new Map(_0x6ea325['map'](_0x3d1693=>[_0x3d1693,this['_suggestionFactory']['getSuggestionCallback'](_0x3d1693['type'],_0x3d1693['subType'],'join')])),_0x4999e0=new Map(_0x22e3f2['map'](_0x5dc229=>[_0x5dc229,_0x5dc229['getRanges']()]));for(let _0x1b2e3f=0x0;_0x1b2e3f<_0x6ea325['length'];_0x1b2e3f++){if(_0x27c5e4(this,_0x6ea325[_0x1b2e3f],_0x6ea325,_0x1b2e3f+0x1))return!0x0;}for(let _0x343490=0x0;_0x343490<_0x6ea325['length'];_0x343490++){if(_0x27c5e4(this,_0x6ea325[_0x343490],_0x3d5df9,0x0))return!0x0;}return!0x1;function _0x27c5e4(_0x1a60f1,_0x55de49,_0xfaec2a,_0x4c4db5){for(let _0xb5a940=_0x4c4db5;_0xb5a940<_0xfaec2a['length'];_0xb5a940++){const _0x30380a=_0xfaec2a[_0xb5a940];if(_0x30380a['type']!==_0x55de49['type']||_0x30380a['author']['id']!==_0x55de49['author']['id']||_0x30380a['subType']!==_0x55de49['subType'])continue;if(!en(_0x55de49,_0x30380a))continue;if('attribute'==_0x55de49['type']&&_0x55de49['data']['oldValue']!=_0x30380a['data']['oldValue'])continue;if('attribute'==_0x55de49['type']&&_0x1a60f1['_isBlockAttribute'](_0x55de49['data']['key']))continue;if('formatBlock'==_0x55de49['type']){const _0x5ce875=_0x1a60f1['editor']['model'],_0x27f7b7=_0x55de49['getContainedElement']();if(_0x27f7b7&&(_0x5ce875['schema']['isObject'](_0x27f7b7)||_0x5ce875['schema']['isLimit'](_0x27f7b7)))continue;}const _0x12fe9c=_0x4ae9a9['get'](_0x55de49),_0x479ae4=_0x4999e0['get'](_0x55de49),_0x2a7f31=_0x4999e0['get'](_0x30380a),_0x5511cc=_0x55de49['commentThread']&&_0x55de49['commentThread']['length'],_0x2e75fe=_0x30380a['commentThread']&&_0x30380a['commentThread']['length'];if(!_0x5511cc&&_0x12fe9c(_0x2a7f31,_0x479ae4))return _0x1a60f1['_joinSuggestions'](_0x30380a,_0x55de49),_0x4999e0['delete'](_0x55de49),!0x0;if(!_0x2e75fe&&_0x12fe9c(_0x479ae4,_0x2a7f31))return _0x1a60f1['_joinSuggestions'](_0x55de49,_0x30380a),_0x4999e0['delete'](_0x30380a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x178b09,_0x4fbb30){if(_0x178b09['isMultiRange']){for(const _0x1c5577 of _0x4fbb30['getRanges']())_0x178b09['addRange'](_0x1c5577);}else{const _0xa1dc27=_0x4fbb30['getFirstRange']()['end'];this['_setSuggestionRange'](_0x178b09,this['_model']['createRange'](_0x178b09['getFirstRange']()['start'],_0xa1dc27));}_0x4fbb30['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c9e04,_0x362ea7,_0xb671cf){const _0x5be07a=_0x1c9e04['startsWith']('format')||_0x1c9e04['startsWith']('attribute')?'FORMATTING':_0x1c9e04['toUpperCase']();return o(this['editor']['locale'],_0x362ea7+'_'+_0x5be07a+'_SUGGESTION_ANNOUNCEMENT',_0xb671cf);}['_initAriaMarkerChangeAnnouncements'](){const _0x477120=this['editor'];if(!_0x477120['ui'])return;const {ariaLiveAnnouncer:_0x5c6a84}=_0x477120['ui'];_0xf9c874(this['_model'],({left:_0x4a080a,entered:_0x4ed851})=>{for(const _0x319396 of _0x4a080a){const {group:_0x44a941,type:_0x1d928b}=this['_splitMarkerName'](_0x319396['name']);if('suggestion'===_0x44a941){_0x5c6a84['announce'](this['_getMarkerAnnouncementText'](_0x1d928b,'LEAVE'));break;}}for(const _0x1cae1d of _0x4ed851){const {group:_0x39a761,type:_0x207b04}=this['_splitMarkerName'](_0x1cae1d['name']);if('suggestion'===_0x39a761){_0x5c6a84['announce'](this['_getMarkerAnnouncementText'](_0x207b04,'ENTER',_0x1f6e36(_0x441f38)));break;}}});}['_processAttributeChanges'](_0x28c41a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d817d=this['editor'],_0x2a9f47=_0x5d817d['model']['document']['differ']['getChanges']();if(0x0==_0x2a9f47['length'])return!0x1;const _0x2eb81d=[],_0x28281f=_0x2a9f47['filter'](_0x55422d=>'attribute'==_0x55422d['type']),_0x259735=_0x2a9f47['filter'](_0x30c3b7=>'insert'==_0x30c3b7['type']&&'$text'!=_0x30c3b7['name']),_0x5c14a4=_0x2a9f47['filter'](_0x2799d8=>'remove'==_0x2799d8['type']&&'$text'!=_0x2799d8['name']);for(const _0x303d06 of _0x28281f)_0x2eb81d['push']({'key':_0x303d06['attributeKey'],'newValue':_0x303d06['attributeNewValue'],'oldValue':_0x303d06['attributeOldValue'],'range':Zt(_0x303d06['range'],_0x5d817d['model'])});for(const _0x3b6a3e of _0x259735){const _0x3da2d7=_0x5c14a4['find'](_0x1659b9=>_0x1659b9['position']['isEqual'](_0x3b6a3e['position']));_0x3da2d7&&_0x2eb81d['push']({'key':m,'newValue':_0x3b6a3e['name'],'oldValue':_0x3da2d7['name'],'range':_0x5d817d['model']['createRangeOn'](_0x3b6a3e['position']['nodeAfter'])});}return 0x0!=_0x2eb81d['length']&&this['_reduceExistingSuggestions'](_0x28c41a,_0x2eb81d);}['_processAttributeSuggestions'](_0x39bb73){let _0x5ebdbe=!0x1;const _0x116b65=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2e30e8=>_0x2e30e8['data']['newRange']&&_0x2e30e8['name']['startsWith']('suggestion:attribute:'));for(const _0x44951f of _0x116b65){const {subType:_0x773458,id:_0x615696}=this['_splitMarkerName'](_0x44951f['name']),_0x4824f6=_0x773458['split']('|')[0x0];for(const _0x297e84 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x297e84['id']!=_0x615696&&'attribute'==_0x297e84['type']&&_0x297e84['data']&&_0x297e84['data']['key']==_0x4824f6&&_0x297e84['getFirstRange']()['isIntersecting'](_0x44951f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x297e84,_0x44951f['data']['newRange'],_0x39bb73),_0x5ebdbe=!0x0);}return _0x5ebdbe;}['recordAttributeChanges'](_0x5e7130){this['_recordAttributeSuggestions']=!0x0,_0x5e7130();}['_isRegisteredAttribute'](_0x4d5423){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x4d5423);}['_reduceExistingSuggestions'](_0x2795cd,_0x37f166){if(0x0==_0x37f166['length'])return!0x1;let _0x5c1a2a=!0x1;for(const _0x5614bb of _0x37f166){const _0x230e35=this['_findSuggestions'](_0x5614bb['range'],'attribute')['filter'](_0x11d60b=>!_0x11d60b['meta']['isNextTo'])['map'](_0x4220c3=>_0x4220c3['suggestion']),_0x1dd5e3=_0x50d2ee({'newValue':_0x5614bb['newValue']});_0x230e35['filter'](_0x321404=>{const [_0x2d1ad2,_0x57dbbc]=_0x321404['subType']['split']('|');return _0x2d1ad2==_0x5614bb['key']&&_0x57dbbc!=_0x1dd5e3;})['forEach'](_0x2e39de=>{this['_reduceSuggestionAttributeRange'](_0x2e39de,_0x5614bb['range'],_0x2795cd),_0x5c1a2a=!0x0;});}return _0x5c1a2a;}['_reduceSuggestionAttributeRange'](_0x122991,_0x2c413e,_0x30cdf2){const _0x43c173=_0x122991['getFirstRange']()['getDifference'](_0x2c413e);0x0!==_0x43c173['length']?0x1!==_0x43c173['length']?this['_breakSuggestionMarker'](_0x122991,_0x2c413e['start'],_0x2c413e['end']):this['_setSuggestionRange'](_0x122991,_0x43c173[0x0]):_0x30cdf2['removeMarker'](_0x122991['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3517a1){this['_editor']=_0x3517a1,this['_model']=_0x3517a1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2546f0,_0x47af7a,_0x26df71,_0x28ab92,_0x462267,_0x3dd493,_0x34425f){return new x(this['_model'],{'type':_0x2546f0,'subType':_0x47af7a,'id':_0x26df71,'originalSuggestionId':_0x34425f,'author':_0x28ab92,'creator':_0x28ab92,'attributes':_0x462267,'onAttributesChange':_0x3dd493,'onAccept':(..._0x1b7753)=>this['getSuggestionCallback'](_0x2546f0,_0x47af7a,'accept')(..._0x1b7753),'onDiscard':(..._0x277f74)=>this['getSuggestionCallback'](_0x2546f0,_0x47af7a,'discard')(..._0x277f74)});}['registerCustomCallback'](_0x184974,_0x488f85,_0x401653,_0x70b05a){const _0x1baa56=_0x184974+':'+_0x488f85+':'+_0x401653;this['_customCallbacks']['set'](_0x1baa56,_0x70b05a);}['getSuggestionCallback'](_0x46a299,_0x2b45e2,_0x4f8320){const _0x2faba9=_0x46a299+':'+_0x2b45e2+':'+_0x4f8320;return this['_customCallbacks']['get'](_0x2faba9)||this['_defaultCallbacks']['get'](_0x46a299+':'+_0x4f8320);}['_registerDefaultCallbacks'](){const _0xf6881f=()=>!0x1,_0x2f0cf4=_0x1ff7a4=>{_0x1ff7a4['sort']((_0x4be864,_0x230758)=>_0x4be864['start']['isBefore'](_0x230758['start'])?0x1:-0x1),this['_model']['change'](_0x5d6582=>{for(const _0x36b920 of _0x1ff7a4){let _0x3ac0bc;_0x3ac0bc=_0x36b920['end']['isAtEnd']&&_0x36b920['end']['parent']==_0x36b920['start']['nodeAfter']?_0x5d6582['createSelection'](_0x36b920['start']['nodeAfter'],'on'):_0x5d6582['createSelection'](_0x36b920),this['_model']['deleteContent'](_0x3ac0bc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4938ad=(_0xa992ba,_0x4c3321)=>{_0x4c3321&&this['_model']['change'](_0x4f863a=>{const {commandName:_0x26b8e0,commandParams:_0xdd50a0=[]}=_0x4c3321,_0x1b8f33=_0xa992ba['map'](_0x4df8d8=>(Kt(_0x4df8d8)&&(_0x4df8d8=this['_model']['createRange'](_0x4df8d8['end'])),_0x4df8d8))['filter'](_0x134d3f=>'$graveyard'!==_0x134d3f['root']['rootName']);if(_0x1b8f33['length']<0x1)return;const _0x2859e8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd18b06=>_0x5bf397['fromRange'](_0xd18b06));_0x4f863a['setSelection'](_0x1b8f33);for(const _0x4e07c7 of this['_editor']['commands']['commands']())_0x4e07c7['refresh']();_0xdd50a0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x26b8e0,..._0xdd50a0);const _0x5e9621=_0x2859e8['filter'](_0x149e36=>'$graveyard'!=_0x149e36['root']['rootName']);_0x5e9621['length']>0x0&&_0x4f863a['setSelection'](_0x5e9621);for(const _0x54e27f of _0x2859e8)_0x54e27f['detach']();});},_0x43b530=(_0x4b7205,_0x13a81e)=>0x1==_0x4b7205['length']&&0x1==_0x13a81e['length']&&_0x4b7205[0x0]['end']['isEqual'](_0x13a81e[0x0]['start']),_0x44f3b7=(_0x41b6cf,_0x82ff23,_0x50d5d6,_0x37223f)=>nn(_0x41b6cf,_0x82ff23,_0x50d5d6,_0x37223f)?[_0x41b6cf,_0x82ff23]:nn(_0x82ff23,_0x41b6cf,_0x37223f,_0x50d5d6)?[_0x82ff23,_0x41b6cf]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf6881f),this['_defaultCallbacks']['set']('insertion:discard',_0x2f0cf4),this['_defaultCallbacks']['set']('insertion:join',_0x43b530),this['_defaultCallbacks']['set']('insertion:chain',_0x44f3b7),this['_defaultCallbacks']['set']('deletion:accept',_0x2f0cf4),this['_defaultCallbacks']['set']('deletion:discard',_0xf6881f),this['_defaultCallbacks']['set']('deletion:join',_0x43b530),this['_defaultCallbacks']['set']('deletion:chain',_0x44f3b7),this['_defaultCallbacks']['set']('formatInline:accept',_0x4938ad),this['_defaultCallbacks']['set']('formatInline:discard',_0xf6881f),this['_defaultCallbacks']['set']('formatInline:join',_0x43b530),this['_defaultCallbacks']['set']('formatInline:chain',_0xf6881f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4938ad),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf6881f),this['_defaultCallbacks']['set']('formatBlock:join',_0x43b530),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf6881f),this['_defaultCallbacks']['set']('attribute:accept',_0xf6881f),this['_defaultCallbacks']['set']('attribute:discard',(_0x4745d5,_0x344d1d)=>{if(!_0x344d1d)return;const _0x37291c=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1597f5=>{if(_0x344d1d['key']==m)for(const _0x406256 of _0x4745d5){const _0x518b38=_0x406256['start']['nodeAfter'],_0x3a4f6c=_0x344d1d['oldValue'];_0x1597f5['rename'](_0x518b38,_0x3a4f6c);}else{if(_0x37291c['_isBlockAttribute'](_0x344d1d['key'])){for(const _0x30dedb of _0x4745d5)void 0x0!==_0x344d1d['oldValue']?_0x1597f5['setAttribute'](_0x344d1d['key'],_0x344d1d['oldValue'],_0x30dedb['start']['nodeAfter']):_0x1597f5['removeAttribute'](_0x344d1d['key'],_0x30dedb['start']['nodeAfter']);}else{for(const _0x3fc919 of _0x4745d5)_0x344d1d['oldValue']?_0x1597f5['setAttribute'](_0x344d1d['key'],_0x344d1d['oldValue'],_0x3fc919):_0x1597f5['removeAttribute'](_0x344d1d['key'],_0x3fc919);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x43b530);}}function zt(_0x3f9d69,_0x10972d,_0x3a1b76){for(const _0xbed8c4 of _0x10972d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbed8c4['root']==_0xbed8c4)return!0x1;if(!_0x3a1b76['containsItem'](_0xbed8c4))return!0x1;if(_0x3f9d69['isObject'](_0xbed8c4)||_0x3f9d69['isLimit'](_0xbed8c4))return!0x0;}return!0x1;}function Kt(_0x3bb842){return _0x3bb842['end']['parent']==_0x3bb842['start']['nodeAfter']&&_0x3bb842['end']['isAtStart'];}function Wt(_0x1eaebe,_0x5022d0,_0x234280,_0xdffe3c){const _0x12cee6=_0x112017=>!_0x112017['item']['is']('$textProxy')&&!_0xdffe3c['isObject'](_0x112017['item']),_0x55b6c2=_0x1eaebe['start']['getLastMatchingPosition'](_0x12cee6),_0x3a8c17=_0x1eaebe['end']['getLastMatchingPosition'](_0x12cee6,{'direction':'backward'});return(!_0x1eaebe['start']['isEqual'](_0x55b6c2)||!_0x1eaebe['end']['isEqual'](_0x3a8c17))&&(_0x55b6c2['isBefore'](_0x3a8c17)?_0x234280['updateMarker'](_0x5022d0,{'range':_0x234280['createRange'](_0x55b6c2,_0x3a8c17)}):_0x234280['removeMarker'](_0x5022d0),!0x0);}function Ht(_0x58a5ec){return _0x50d2ee(_0x58a5ec);}function Qt(_0x5f3771){const _0x24ea2d=_0x5f3771['start']['nodeAfter'];return _0x24ea2d&&_0x24ea2d['is']('element');}function Xt(_0xd06e56){return Kt(_0xd06e56)||function(_0x1153f6){return _0x1153f6['start']['parent']==_0x1153f6['end']['nodeBefore']&&_0x1153f6['start']['isAtEnd'];}(_0xd06e56);}function Yt(_0x555779,_0x4e022d){try{const _0x4c1750=_0x555779['getRange']();for(const _0x440c55 of _0x4e022d)if(_0x555779!==_0x440c55&&_0x4c1750&&_0x4c1750['isIntersecting'](_0x440c55['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x5d77da,_0x3e1088){return null==_0x5d77da['end']['nodeBefore']&&_0x5d77da['end']['parent']==_0x5d77da['start']['nodeAfter']?tn(_0x5d77da['start']['nodeAfter'],_0x3e1088):_0x5d77da;}function tn(_0x1d4763,_0x16e964){const _0x18c956=_0x16e964['schema']['isObject'](_0x1d4763)||_0x16e964['schema']['isSelectable'](_0x1d4763);return _0x16e964['createRange'](_0x16e964['createPositionAt'](_0x1d4763,'before'),_0x18c956?_0x16e964['createPositionAfter'](_0x1d4763):_0x16e964['createPositionAt'](_0x1d4763,'end'));}function nn(_0x188a89,_0x5c855a,_0x5519df,_0x4cc553){return!!en(_0x188a89,_0x5c855a)&&_0x5519df['end']['isEqual'](_0x4cc553['start']);}function en(_0x5ab513,_0x1d52ce){if(!_0x5ab513['_isDataLoaded']||!_0x1d52ce['_isDataLoaded'])return!0x1;const _0x1e0c84=new Set(Object['keys'](_0x5ab513['attributes'])),_0x420c68=new Set(Object['keys'](_0x1d52ce['attributes']));if(_0x1e0c84['delete']('groupId'),_0x420c68['delete']('groupId'),0x0==_0x1e0c84['size']&&0x0==_0x420c68['size'])return!0x0;if(_0x1e0c84['size']!=_0x420c68['size'])return!0x1;const _0x3e929a={..._0x5ab513['attributes']},_0x3d5cfb={..._0x1d52ce['attributes']};return delete _0x3e929a['groupId'],delete _0x3d5cfb['groupId'],JSON['stringify'](_0x3e929a)==JSON['stringify'](_0x3d5cfb);}function sn(_0x393738,_0xfdccca){const _0x55e01a=on(_0x393738['attributes']),_0x2eb1d5=on(_0xfdccca);if(!_0x393738['_isDataLoaded'])return!0x1;for(const _0xbe8760 of Object['keys'](_0x2eb1d5))if(!_0x5cdaa6(_0x55e01a[_0xbe8760],_0x2eb1d5[_0xbe8760]))return!0x1;return!0x0;}function on(_0x2a7f25){const _0x34f493=Object['assign']({},_0x2a7f25);return delete _0x34f493['skipNestingCheck'],delete _0x34f493['tablePasteChainId'],_0x34f493;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x56428c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1aa0c2,_0xc2b156,_0x11059b,_0x237197){super(),this['model']=_0xc2b156,this['view']=_0x11059b,this['commentThreadController']=_0x237197,this['_editor']=_0x1aa0c2,this['_acceptCommand']=_0x1aa0c2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1aa0c2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x32a410,_0xce5ffd)=>_0x32a410||_0xce5ffd),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2be9dc=>_0x2be9dc&&this['_editor']['model']['canEditAt'](_0xc2b156['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x465220=>_0x465220&&this['_editor']['model']['canEditAt'](_0xc2b156['getRanges']())),this['_pendingAction']=null,_0x11059b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x11059b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x11059b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x11059b,'change:isDirty',()=>{_0x11059b['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 _0x355c12=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x355c12);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x48f0dd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x22c262,_0x28ece7,_0x5897c3,_0x3e5f31){super(_0x22c262),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x33e922(_0x22c262,o(_0x22c262,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x28ece7['authoredAt']),this['bind']('authoredAt')['to'](_0x28ece7),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',_0x28ece7,'authoredAt',this,'descriptionParts',(_0x36e205,_0x4d0806,_0x3b8bc2)=>{const _0xfc0a05=_0x3b8bc2['map'](_0x1981ad=>ls(_0x1981ad['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x36e205-0x1,_0x28ece7['author']['name'],_0x4d0806?_0x3e5f31['formatDateTime'](_0x4d0806):'',new DOMParser()['parseFromString'](_0xfc0a05,'text/html')['body']['textContent']]);}),this['focusables']=new _0x946761(),this['focusTracker']=new _0x55f986(),this['keystrokes']=new _0x452982(),this['focusCycler']=new _0x38cca0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xae5a5e=>_0xae5a5e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x28ece7,this['_localUser']=_0x5897c3,this['_config']=_0x3e5f31,_0x3e5f31['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3989fc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x479da0}=this['_config'];this['commentsListView']=new _0x479da0(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',_0x49c6d0=>_0x49c6d0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3bd073,_0xf8100c)=>_0x3bd073||!!_0xf8100c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4e0eae}=this['_config'],_0x5e9ac1=new _0x4e0eae(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b2755=_0x5e9ac1['commentInputView'];return _0x5e9ac1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b2755,'value',(_0x356065,_0x49bc82,_0x16fe6f)=>!!_0x16fe6f||_0x356065&&!_0x49bc82),_0x2b2755['on']('submit',(_0x22a855,_0x28a5aa)=>{this['fire']('addComment',_0x28a5aa),_0x2b2755['editor']['setData']('');}),_0x2b2755['on']('cancel',()=>this['focus']()),_0x2b2755['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5e9ac1;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4449f2,_0x1fae27,_0x2273bc,_0x347b7c){super(_0x4449f2,_0x1fae27,_0x2273bc,_0x347b7c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x550ebb=>_0x550ebb&&_0x550ebb[0x0]?_0x550ebb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1264b6,_0x5b75c7)=>{let _0x1b101e='';for(const _0x145306 of _0x1264b6)_0x1b101e+='<p>'+ls(_0x145306['content'],_0x145306['color'])+'</p>';return _0x5b75c7?_0x1b101e:_0x46f0ef(_0x1b101e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x347b7c['SuggestionView'](_0x4449f2,_0x1fae27,{'formatDateTime':_0x347b7c['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 _0x585c14=this['bindTemplate'],_0x3eb85=[this['suggestionView']];return this['commentsListView']&&_0x3eb85['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3eb85['push'](this['commentThreadInputView']),_0x3eb85['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x585c14['if']('isActive','ck-suggestion-wrapper--active'),_0x585c14['to']('type',_0x39f7b4=>'ck-suggestion-'+_0x39f7b4),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':_0x585c14['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3eb85};}['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 _0x48f0dd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2ea7ec,_0x4aa020,_0x328d20){super(_0x2ea7ec),this['_model']=_0x4aa020,this['_config']=_0x328d20,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4aa020),this['acceptButton']=this['_createButton'](o(_0x2ea7ec,'Accept\x20suggestion'),_0x8a9674,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2ea7ec,'Discard\x20suggestion'),_0x5289ec,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5a8190(_0x2ea7ec,_0x4aa020['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x946761([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x55f986(),this['keystrokes']=new _0x452982(),this['focusCycler']=new _0x38cca0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2322e8=>_0x2322e8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2da06a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2da06a['innerHTML']=this['description'],this['on']('change:description',(_0x253fac,_0x422e36,_0xfa9e0f)=>{_0x2da06a['innerHTML']=_0xfa9e0f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x44bd55=this['bindTemplate'],_0x15be59=[{'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':_0x44bd55['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x44bd55['to']('authoredAt',_0x78aca5=>this['_config']['formatDateTime'](_0x78aca5))}]}]},{'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']&&_0x15be59['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':_0x15be59}]};}['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'](_0x5cf90e,_0x373ae9,_0x41481d,_0x13105c,_0x547689){const _0x384176=new _0x3311b2(this['locale']);return _0x384176['set']({'label':_0x5cf90e,'icon':_0x373ae9,'tooltip':!0x0,'tooltipPosition':_0x547689}),_0x384176['extendTemplate']({'attributes':{'class':_0x41481d}}),_0x384176['on']('execute',()=>{this['fire'](_0x13105c,this['_model']['id']);}),_0x384176;}['_setupKeyboardNavigation'](){const _0x1102b8=this['element'];this['keystrokes']['listenTo'](_0x1102b8);for(const _0x24a76 of this['focusables'])this['focusTracker']['add'](_0x24a76['element']),this['keystrokes']['listenTo'](_0x24a76['element']);this['keystrokes']['set']('enter',(_0x10e9f8,_0x4fc7c7)=>{_0x1102b8===_0x10e9f8['target']&&(this['focusCycler']['focusFirst'](),_0x4fc7c7());}),this['keystrokes']['set']('esc',(_0x32ffc1,_0x55006a)=>{_0x1102b8!==_0x32ffc1['target']&&(this['focus'](),_0x55006a());});}}class u extends _0x4942e1{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x91df2d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2adab6){super(_0x2adab6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x33905a=this['editor']['config'];_0x33905a['define']('trackChanges.SuggestionThreadView',fe),_0x33905a['define']('trackChanges.SuggestionView',we),_0x33905a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x33905a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x297982,_0x851c6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x240c78,_0x54093b]of this['_handleControllerBuffer']){const _0x254015=this['_suggestionToController']['has'](_0x240c78);_0x254015||_0x54093b?_0x254015&&_0x54093b&&this['_destroyController'](_0x240c78):this['_initializeController'](_0x240c78);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x297982,_0x851c6);}['init'](){const _0x511d0b=this['editor'],_0x55b33a=_0x511d0b['plugins']['get']('TrackChangesEditing'),_0x1d74c9=_0x511d0b['plugins']['get']('Annotations'),_0x41f70e=_0x511d0b['plugins']['get']('EditorAnnotations'),_0x3f7750=_0x511d0b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x41f70e['addSourceCollector'](()=>{const _0x1f72be=[];for(const [_0x3c26a5,_0x49451e]of Array['from'](this['_suggestionToController'])){const _0x270965=_0x3c26a5['getAllAdjacentSuggestions'](),_0x4deac6=[];for(const _0xbbd63d of _0x270965){if(!_0xbbd63d['isInContent'])continue;if(_0xbbd63d['isMultiRange']){_0x4deac6['push'](..._0xbbd63d['getRanges']());continue;}const _0x2bc23e=_0xbbd63d['getFirstRange']();if(_0x4deac6['length']>0x0){const _0x3e6b86=_0x4deac6[0x0]['getJoined'](_0x2bc23e);if(_0x3e6b86){_0x4deac6[0x0]=_0x3e6b86;continue;}}_0x4deac6['push'](_0x2bc23e);}_0x1f72be['push']([_0x49451e['view'],_0x4deac6]);}return _0x1f72be;}),this['listenTo'](_0x55b33a,'suggestionLoaded',(_0x5ca019,_0x41e01d)=>{this['listenTo'](_0x41e01d,'change:previous',(_0x1b4134,_0x205508,_0x3840c9,_0x8f8f78)=>{_0x41e01d['isInContent']&&(null==_0x3840c9?(this['_updateController'](_0x8f8f78['head']),this['_handleSuggestionControllerDelayed'](_0x41e01d,!0x1)):(this['_updateController'](_0x3840c9['head']),null==_0x8f8f78&&this['_handleSuggestionControllerDelayed'](_0x41e01d,!0x0)));}),null!==_0x41e01d['previous']?this['_updateController'](_0x41e01d['head']):this['_handleSuggestionControllerDelayed'](_0x41e01d,!0x1);}),this['listenTo'](_0x55b33a,'suggestionUnloaded',(_0x48b8b8,_0x3e9845,_0x28ac36)=>{this['stopListening'](_0x3e9845,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3e9845),this['_suggestionToController']['has'](_0x3e9845)&&this['_destroyController'](_0x3e9845),_0x28ac36&&this['_updateController'](_0x28ac36['head']);}),this['listenTo'](_0x55b33a,'suggestionChanged',(_0x3c8787,_0x484e43)=>{this['_updateController'](_0x484e43);}),this['listenTo'](_0x1d74c9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3f7750,'addComment',(_0x472dee,{threadId:_0x5e3877,isFromAdapter:_0x193716})=>{if(_0x193716||!_0x55b33a['hasSuggestion'](_0x5e3877))return;const _0x172bf3=_0x55b33a['getSuggestion'](_0x5e3877);this['_suggestionToController']['get'](_0x172bf3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x17059a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47a7ff;for(const _0x824657 in _0x17059a){const _0x10aa98=_0x824657,_0x213775=_0x17059a[_0x10aa98];if('trackChangesLicenseKeyValid'==_0x213775||'trackChangesLicenseKeyInvalid'==_0x213775||'trackChangesLicenseKeyExpired'==_0x213775||'trackChangesLicenseKeyDomainLimit'==_0x213775||'trackChangesLicenseKeyNotAllowed'==_0x213775||'trackChangesLicenseKeyEvaluationLimit'==_0x213775||'trackChangesLicenseKeyTrialLimit'==_0x213775||'trackChangesLicenseKeyUsageLimit'==_0x213775){delete _0x17059a[_0x10aa98],_0x47a7ff=_0x213775,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x47a7ff&&_0x17059a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x47a7ff&&_0x17059a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x47a7ff&&_0x17059a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x47a7ff&&_0x17059a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x47a7ff&&_0x17059a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x47a7ff&&_0x17059a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x47a7ff&&_0x17059a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5ae148){const _0x46eb88=this['_suggestionToController']['get'](_0x5ae148);if(!_0x46eb88)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x46eb88['view'])||null;}['getSuggestionForAnnotation'](_0x5d6ffa){const _0x21a9a3=this['_viewToController']['get'](_0x5d6ffa['innerView']);return _0x21a9a3?_0x21a9a3['model']:null;}['_refreshActiveMarkers'](){const _0x43ebb3=this['editor']['plugins']['get']('Annotations'),_0x29bd60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13803f=Array['from'](_0x43ebb3['activeAnnotations'],_0xaa4a4a=>_0xaa4a4a['innerView'])['filter'](_0x5d61c8=>this['_viewToController']['has'](_0x5d61c8)),_0x3958e9=[];for(const _0x1aed32 of _0x13803f){const _0x5f13d8=this['_viewToController']['get'](_0x1aed32)['model']['getAllAdjacentSuggestions']();_0x3958e9['push'](..._0x5f13d8['reduce']((_0x5c9116,_0x33c2bf)=>[..._0x5c9116,..._0x33c2bf['getMarkerNames']()],[]));}_0x29bd60['activeMarkers']=_0x3958e9;}['_addUIComponentsToFactory'](){const _0x482839=this['editor'],_0x5ccfbe=_0x482839['locale'],_0x2a5cc8=o(_0x5ccfbe,'Track\x20changes'),_0x12b464=new _0x2455fd([{'type':'switchbutton','model':new _0x746fc5({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a5cc8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x482839['plugins']['has']('TrackChangesPreview')&&_0x12b464['addMany']([{'type':'separator'},{'type':'button','model':new _0x746fc5({'withText':!0x0,'label':o(_0x5ccfbe,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5a72be of _0x12b464)if(ke(_0x5a72be)){const _0x3148ec=_0x482839['commands']['get'](_0x5a72be['model']['commandName']);_0x5a72be['model']['bind']('isOn','isEnabled')['to'](_0x3148ec,'value','isEnabled');}_0x482839['ui']['componentFactory']['add']('trackChanges',_0xacca69=>this['_createToolbarButton'](_0xacca69,_0x12b464,_0x2a5cc8)),_0x482839['ui']['componentFactory']['add']('menuBar:trackChanges',_0x575e58=>this['_createMenuBarMenu'](_0x575e58,_0x12b464,_0x2a5cc8));}['_createToolbarButton'](_0x36c9dd,_0x51a882,_0x11d90d){const _0x320e8e=_0x46abfb(_0x36c9dd,_0x1341a2),_0x16b2d6=this['editor']['commands']['get']('trackChanges');_0x320e8e['buttonView']['set']({'tooltip':_0x11d90d,'label':_0x11d90d,'icon':_0x1fde3f}),_0x320e8e['buttonView']['bind']('isOn')['to'](_0x16b2d6,'value'),_0x320e8e['buttonView']['on']('execute',()=>{_0x16b2d6['execute'](),this['editor']['editing']['view']['focus']();}),_0x4e853f(_0x320e8e,_0x51a882,{'role':'menu'});const _0x1537a9=[];for(const _0x215bbc of _0x51a882)ke(_0x215bbc)&&_0x1537a9['push'](this['editor']['commands']['get'](_0x215bbc['model']['commandName']));const _0x2d005b=_0x320e8e['buttonView'];return _0x2d005b['actionView']['unbind']('isEnabled'),_0x2d005b['arrowView']['unbind']('isEnabled'),_0x2d005b['actionView']['bind']('isEnabled')['to'](_0x16b2d6,'isEnabled'),_0x2d005b['arrowView']['bind']('isEnabled')['toMany'](_0x1537a9,'isEnabled',(..._0x46aac3)=>_0x46aac3['some'](_0x4925d8=>_0x4925d8)),_0x320e8e['on']('execute',_0x3caf41=>{this['editor']['execute'](_0x3caf41['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x320e8e;}['_createMenuBarMenu'](_0x52c631,_0x2897d5,_0xdf9795){const _0x1cb057=new _0x9a08bc(_0x52c631),_0x1dfeab=this['editor']['commands']['get']('trackChanges');_0x1cb057['buttonView']['set']({'label':_0xdf9795,'icon':_0x1fde3f});const _0x4dec27=new _0x26bc00(_0x52c631);for(const _0x950192 of _0x2897d5){if('separator'==_0x950192['type']){_0x4dec27['items']['add'](new _0x4c5d96(_0x52c631));continue;}const _0x2763b8=new _0x33a1b1(_0x52c631,_0x1cb057),_0x5a3a28=new _0x341474(_0x52c631),_0xa13976=_0x950192['model'];_0x5a3a28['bind'](...Object['keys'](_0xa13976))['to'](_0xa13976),_0x5a3a28['delegate']('execute')['to'](_0x1cb057),_0x5a3a28['on']('execute',()=>{this['editor']['execute'](_0xa13976['commandName']),this['editor']['editing']['view']['focus']();}),_0x2763b8['children']['add'](_0x5a3a28),_0x4dec27['items']['add'](_0x2763b8);}return _0x1cb057['bind']('isEnabled')['to'](_0x1dfeab,'isEnabled'),_0x1cb057['panelView']['children']['add'](_0x4dec27),_0x1cb057;}['_initializeController'](_0x486195){const _0x55e743=this['editor'],_0x11ceea=_0x55e743['config'],_0x3f9828=_0x55e743['plugins']['get']('Annotations'),_0x4d5e6e=_0x55e743['plugins']['get']('CommentsRepository'),_0x44892f=_0x55e743['plugins']['get']('EditorAnnotations'),_0x362d1d=_0x55e743['plugins']['get'](_0x91df2d)['me'],_0x40843e=_0x11ceea['get']('trackChanges')['SuggestionThreadView'],_0xada2de=_0x11ceea['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1d4c1f,CommentThreadInputView:_0x4db5a5}=_0x55e743['plugins']['get']('CommentsUI');let _0x3fcd69,_0x3bf542,_0x18dc76;this['_annotationViews']['has'](_0x486195['id'])?(_0x3bf542=this['_annotationViews']['get'](_0x486195['id']),_0x3fcd69=_0x3bf542['mainView']):(_0x3fcd69=new _0x40843e(_0x55e743['locale'],_0x486195,_0x362d1d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x11ceea['get']('comments.editorConfig'),'licenseKey':_0x11ceea['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x11ceea['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x11ceea['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x11ceea['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x425671(_0x11ceea['get']('locale'),_0x55e743['locale']),'CommentView':_0x11ceea['get']('comments')['CommentView'],'CommentsListView':_0x1d4c1f,'CommentThreadInputView':_0x4db5a5,'SuggestionView':_0xada2de}),_0x3fcd69['suggestionView']['acceptButton']['on']('execute',()=>{_0x55e743['editing']['view']['focus']();}),_0x3fcd69['suggestionView']['discardButton']['on']('execute',()=>{_0x55e743['editing']['view']['focus']();}),_0x3bf542=_0x3f9828['createAnnotationView'](this['editor']['locale'],_0x3fcd69),_0x3bf542['bind']('isDirty')['to'](_0x3fcd69,'isDirty'),_0x3bf542['bind']('length')['to'](_0x3fcd69),_0x3bf542['bind']('type')['to'](_0x3fcd69,'type',_0xf4f20f=>'suggestion-'+_0xf4f20f),_0x3fcd69['on']('escape',()=>{_0x18dc76['fire']('escape');}),this['_annotationViews']['set'](_0x486195['id'],_0x3bf542));const _0xb80a87=_0x4d5e6e['createCommentThreadController'](_0x486195['commentThread'],_0x3fcd69),_0x5cc417=new pe(_0x55e743,_0x486195,_0x3fcd69,_0xb80a87),_0x335653=_0x486195['getAllAdjacentSuggestions']()['filter'](_0xec3d93=>_0xec3d93['isInContent']);_0x3fcd69['descriptionParts']=_0x55e743['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x335653),this['_suggestionToController']['set'](_0x486195,_0x5cc417),this['_viewToController']['set'](_0x3fcd69,_0x5cc417);const _0x1bcbef=()=>{const _0x3fa5fb=[],_0x417d65=_0x486195['getAllAdjacentSuggestions']()['filter'](_0x2f160a=>_0x2f160a['isInContent']);for(const _0x3ed4ab of _0x417d65)_0x3fa5fb['push'](..._0x3ed4ab['getMarkers']());return _0x5234aa(_0x55e743['editing'],_0x3fa5fb);};_0x18dc76=_0x3f9828['createAnnotation']({'view':_0x3bf542,'target':_0x1bcbef,'type':()=>'suggestion-'+_0x5cc417['view']['type'],'isVisible':!!_0x1bcbef()}),_0x4d5e6e['_bindAnnotationToEditors'](_0x3fcd69,_0x18dc76),_0x3f9828['add'](_0x18dc76),_0x44892f['registerAnnotation'](_0x18dc76);}['_destroyController'](_0x3bcbb9){const _0x10fd7f=this['editor']['plugins']['get']('CommentsRepository'),_0x1d8153=this['editor']['plugins']['get']('Annotations'),_0x2a5aeb=this['_suggestionToController']['get'](_0x3bcbb9),_0x5321bd=_0x2a5aeb['view'],_0x7b2254=_0x1d8153['getByInnerView'](_0x5321bd);_0x10fd7f['_unbindEditors'](_0x5321bd),_0x7b2254&&_0x1d8153['remove'](_0x7b2254),this['_suggestionToController']['delete'](_0x3bcbb9),this['_viewToController']['delete'](_0x5321bd),_0x2a5aeb['destroy']();}['_updateController'](_0x7b8c94){if(!_0x7b8c94['isInContent']||!this['_suggestionToController']['has'](_0x7b8c94))return;const _0x1641ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x465077=this['_suggestionToController']['get'](_0x7b8c94),_0x1109f4=_0x7b8c94['getAllAdjacentSuggestions']();_0x465077['view']['descriptionParts']=_0x1641ef['descriptionFactory']['getDescriptions'](_0x1109f4);}['destroy'](){for(const _0x1ad9d1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1ad9d1);for(const _0x2f8277 of this['_annotationViews']['values']())_0x2f8277['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x341333){return'model'in _0x341333;}class Ne extends _0x4942e1{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5640a9){this['editor']['plugins']['get'](d)['adapter']=_0x5640a9;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x390714){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x390714);}['getSuggestions']({skipNotAttached:_0x20fda3=!0x1,toJSON:_0x2c4d5e=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x20fda3,'toJSON':_0x2c4d5e});}['getSuggestion'](_0x393139){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x393139);}}const p=['Pagination'];class re extends _0x4942e1{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x464b91=this['editor'];if(_0x464b91['config']['define']('trackChangesData.editorCreator',_0x50b505=>{const _0x2e75d5=_0x464b91['model']['document']['getRootNames']()['reduce']((_0x5237b4,_0x45a20f)=>(_0x5237b4[_0x45a20f]='',_0x5237b4),{});return _0x464b91['constructor']['create'](_0x2e75d5,_0x50b505);}),'function'!=typeof _0x464b91['config']['get']('trackChangesData')['editorCreator'])throw new _0x16ebc5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5859e3){return P(this['editor'],!0x0,_0x5859e3);}['getDataWithDiscardedSuggestions'](_0x4d0803){return P(this['editor'],!0x1,_0x4d0803);}}class Fe extends _0x4942e1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9442c4){function _0x2fcc2d(_0x5f5b3a){return _0x5f5b3a['map'](_0x5831e1=>String['fromCharCode'](_0x5831e1))['join']('');}super(_0x9442c4),this['result']='end',_0x9442c4[_0x2fcc2d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fcc2d([0x76,0x69,0x65,0x77])][_0x2fcc2d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fcc2d([0x61,0x75,0x74,0x6f]),_0x9442c4[_0x2fcc2d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2fcc2d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fcc2d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2fcc2d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2fcc2d([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(_0x1ee82c){return void 0x0!==_0x1ee82c['getRootsAttributes'];}async function P(_0x27babc,_0x24080b,_0x4b3fdb){const _0x690389=_0x276efb(_0x27babc,p);_0x690389['plugins']['push'](d,Fe),_0x690389['rootsAttributes']=De(_0x27babc)?_0x27babc['getRootsAttributes']():void 0x0;const _0x2a1e27=document['createDocumentFragment'](),_0x134695=_0x27babc['config']['get']('trackChangesData')['editorCreator'],_0x573e07=await _0x134695(_0x690389,()=>function(_0x36a1a2){const _0xbb6ecd=document['createElement']('div');return _0x36a1a2['appendChild'](_0xbb6ecd),_0xbb6ecd;}(_0x2a1e27));!function(_0x1ad977,_0x29c87f){const _0x1d6efb=_0x1ad977['model']['document']['getRootNames']()['reduce']((_0x82ce0b,_0x14b8e3)=>(_0x82ce0b[_0x14b8e3]=_0x1ad977['data']['get']({'rootName':_0x14b8e3}),_0x82ce0b),{}),_0x41a1b1=_0x1ad977['plugins']['get']('Users')['users']['map'](_0x1ed9b4=>({'id':_0x1ed9b4['id'],'name':_0x1ed9b4['name']})),_0x2c3f94=_0x1ad977['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xef2655=_0x1ad977['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55f436=_0x29c87f['plugins']['get']('Users'),_0xddac80=_0x29c87f['plugins']['get']('TrackChangesEditing'),_0x32d363=_0x29c87f['plugins']['get']('CommentsRepository');for(const _0x5add12 of _0x32d363['getCommentThreads']())_0x5add12['remove']();for(const _0x1588d1 of _0x41a1b1)_0x55f436['getUser'](_0x1588d1['id'])||_0x55f436['addUser'](_0x1588d1);_0x55f436['me']||_0x55f436['useAnonymousUser']();for(const _0x3014ad of _0xef2655)_0x32d363['addCommentThread'](_0x3014ad);for(const _0x25cde3 of _0x2c3f94)_0xddac80['addSuggestionData'](_0x25cde3);_0x29c87f['data']['set'](_0x1d6efb);}(_0x27babc,_0x573e07),_0x573e07['execute'](_0x24080b?'acceptAllSuggestions':'discardAllSuggestions');const _0x13cf1b=De(_0x573e07)?_0x573e07['getFullData'](_0x4b3fdb):_0x573e07['data']['get'](_0x4b3fdb);return await _0x573e07['destroy'](),_0x13cf1b;}class Me extends _0x48f0dd{['options'];constructor(_0x34eb43,_0x1e08ba){super(_0x34eb43),this['options']=_0x1e08ba,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'](_0x1375f2,_0x3524f5){if(!this['element'])return;const _0x5a157c=[];for(const [_0x1e8f8b,_0x12412d]of _0x1375f2){const _0x2dd713=document['createElement']('div');_0x2dd713['setAttribute']('data-ck-root-name',_0x1e8f8b),_0x2dd713['className']=_0x12412d['classes']+'\x20ck-track-changes-preview__root-container',_0x2dd713['innerHTML']=_0x12412d['content'],_0x5a157c['push'](_0x2dd713);}_0x3524f5(this['element'],_0x5a157c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x189985{constructor(_0x30cd74){super(_0x30cd74),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x103dbe=this['editor'],_0x1fa0a2=_0x103dbe['locale'],_0x5496c7=_0x103dbe['plugins']['get']('Dialog');let _0x21242b;const _0x36db85=function(_0x102049){const _0x43bcd2={};if('editables'in _0x102049['ui']['view']){for(const [_0x33647f,_0x280a8c]of Object['entries'](_0x102049['ui']['view']['editables']))_0x43bcd2[_0x33647f]=_0x280a8c['element'];}else _0x43bcd2[_0x102049['model']['document']['getRootNames']()[0x0]]=_0x102049['ui']['view']['editable']['element'];return _0x43bcd2;}(_0x103dbe),_0x16b12e=function(_0x254e6f){let _0x1f7a29=0x0;for(const _0x5f0863 of Object['values'](_0x254e6f))_0x1f7a29=Math['max'](_0x1f7a29,_0x5f0863['getBoundingClientRect']()['width']);let _0x27e03f=0x0;for(const _0x2f247d of Object['values'](_0x254e6f))_0x27e03f+=_0x2f247d['getBoundingClientRect']()['height'];const _0xf30931=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x293f41=Math['min'](_0x27e03f,_0xf30931);return{'width':_0x1f7a29,'height':_0x293f41};}(_0x36db85);_0x5496c7['show']({'id':'finalContentPreview','title':o(_0x1fa0a2,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1fa0a2,{'dialogRects':_0x16b12e}),'onHide':()=>{_0x21242b['detachFromDom']();},'onShow':()=>{_0x103dbe['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1ed6d3=>{const _0x12bbbe=this['_standarizeRootsData'](_0x1ed6d3,_0x103dbe,_0x36db85);_0x5496c7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x12bbbe,_0x103dbe['config']['get']('trackChanges.preview.renderFunction'));}),_0x21242b=new _0x44c0a0(_0x1fa0a2,[_0x5496c7['view']]),_0x21242b['attachToDom'](),_0x21242b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x103dbe['once']('destroy',()=>{_0x21242b['detachFromDom']();});const _0x3ee86d=_0x5496c7['view']['headerView']['class'];_0x5496c7['view']['headerView']['class']=_0x3ee86d?_0x3ee86d+'\x20ck-reset_all':'ck-reset_all',_0x5496c7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5496c7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x12fba8=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1fb9b3=_0x12fba8['previewMode'],_0x2ef8bd={};if('$labels'===_0x1fb9b3){for(const _0x2baec3 of _0x12fba8['getMergeFieldsIds']())_0x2ef8bd[_0x2baec3]=_0x12fba8['getLabel'](_0x2baec3)||_0x2baec3;}else{const _0x4f7cb8='$defaultValues'===_0x1fb9b3?_0x12fba8['getDefaultValues']():_0x12fba8['getDataSetValues'](_0x1fb9b3,!0x0);for(const _0x10a23f of Object['entries'](_0x4f7cb8)){const [_0x62d5ec,_0x49e7da]=_0x10a23f;_0x2ef8bd[_0x62d5ec]=null!==_0x49e7da?_0x49e7da:_0x12fba8['getLabel'](_0x62d5ec)||_0x62d5ec;}}return{'mergeFieldsData':_0x2ef8bd};}['_standarizeRootsData'](_0x474e4f,_0x8019e1,_0x29e20a){let _0x88915d;if('string'==typeof _0x474e4f){const _0x41b78d=_0x8019e1['model']['document']['getRootNames']()[0x0];_0x88915d={[_0x41b78d]:_0x474e4f};}else _0x88915d=_0x474e4f;const _0x523ec0=this['_fixMediaEmbeds'](_0x88915d,_0x8019e1),_0x518873=function(_0x594841,_0x4c59b6){for(const [_0x21ef27,_0x266e4d]of _0x594841)_0x266e4d['classes']=_0x4c59b6[_0x21ef27]['classList']['value']['replace']('ck-focused','');return _0x594841;}(this['_sortRoots'](_0x8019e1)['reduce']((_0x570476,_0x2cc54b)=>(_0x570476['push']([_0x2cc54b,{'content':_0x523ec0[_0x2cc54b],'classes':''}]),_0x570476),[]),_0x29e20a);return _0x518873;}['_fixMediaEmbeds'](_0x498a7f,_0x5a24f6){if(!_0x5a24f6['plugins']['has']('MediaEmbedEditing'))return _0x498a7f;const _0x258bf2=_0x5a24f6['plugins']['get']('MediaEmbedEditing');for(const [_0x37e80f,_0x3e19c2]of Object['entries'](_0x498a7f)){const _0x4b0257=document['createElement']('div');_0x4b0257['innerHTML']=_0x3e19c2,(_0x4b0257['querySelectorAll']('figure.media')['forEach'](_0x38befd=>{const _0x49dbe9=_0x38befd['querySelector']('oembed');if(_0x49dbe9){const _0x42e80a=_0x49dbe9['getAttribute']('url');if(_0x42e80a){const _0x53e819=_0x258bf2['registry']['getMediaViewElement'](new _0x4fc21c(_0x5a24f6['editing']['view']['document']),_0x42e80a,{'elementName':'','renderForEditingView':!0x0}),_0xf9d485=document['createElement']('div');_0xf9d485['classList']['add']('ck-media__wrapper'),_0x53e819['render'](_0xf9d485,_0x5a24f6['editing']['view']['domConverter']),_0x49dbe9['replaceWith'](_0xf9d485);}}}),_0x498a7f[_0x37e80f]=_0x4b0257['innerHTML']);}return _0x498a7f;}['_sortRoots'](_0x1316c9){if(!function(_0x1f41e0){return void 0x0!==_0x1f41e0['getRootsAttributes'];}(_0x1316c9))return _0x1316c9['model']['document']['getRootNames']();const _0x4e49e5=[],_0x294830=new Map();for(const _0x4ea54a of _0x1316c9['model']['document']['getRootNames']()){const _0xb9c29f=_0x1316c9['editing']['view']['getDomRoot'](_0x4ea54a)['getClientRects']()['item'](0x0);_0x4e49e5['push'](_0x4ea54a),_0x294830['set'](_0x4ea54a,_0xb9c29f);}return _0x4e49e5['sort']((_0x797f91,_0x135654)=>{const _0x330c90=_0x294830['get'](_0x797f91),_0x3cd691=_0x294830['get'](_0x135654);return _0x330c90['y']-_0x3cd691['y']||_0x330c90['x']-_0x3cd691['x'];}),_0x4e49e5;}}class Ue extends _0x4942e1{static get['requires'](){return[re,_0x2e2e8e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x478948){super(_0x478948),_0x478948['commands']['add']('previewFinalContent',new te(this['editor'])),_0x478948['config']['define']('trackChanges.preview.renderFunction',(_0x119cca,_0x5bc417)=>{for(const _0x1b0b31 of _0x5bc417)_0x119cca['appendChild'](_0x1b0b31);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|