@ckeditor/ckeditor5-track-changes 48.8.1-alpha.0 → 48.8.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4ad4da(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xf3acd7,_0x288045){super(),this['id']=_0x288045['id'],this['type']=_0x288045['type'],this['subType']=_0x288045['subType']||null,this['author']=_0x288045['author'],this['creator']=_0x288045['creator']||_0x288045['author'],this['isExternal']=Boolean(_0x288045['attributes']&&_0x288045['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x288045['originalSuggestionId']||null,this['_model']=_0xf3acd7,this['_onAccept']=_0x288045['onAccept'],this['_onDiscard']=_0x288045['onDiscard'],this['_onAttributesChange']=_0x288045['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x288045['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 _0x110a8d=this;for(;_0x110a8d['previous'];)_0x110a8d=_0x110a8d['previous'];return _0x110a8d;}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'](_0xbe17e7){this['_markerNames']['add'](_0xbe17e7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x48f448=>this['_model']['markers']['get'](_0x48f448))['filter'](_0x3f22e3=>_0x3f22e3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3aad47=>{for(const _0x4798a7 of this['getMarkers']())_0x3aad47['removeMarker'](_0x4798a7);}),this['_markerNames']['clear']();}['removeMarker'](_0xdce04a){this['_model']['change'](_0x1b3e87=>{_0x1b3e87['removeMarker'](_0xdce04a);}),this['_markerNames']['delete'](_0xdce04a);}['addRange'](_0x5d58f7){const _0x17f0a4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x17f0a4),this['_model']['change'](_0x3d2650=>{_0x3d2650['addMarker'](_0x17f0a4,{'range':_0x5d58f7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3923c8){for(const _0x4d3478 of this['getRanges']())if(_0x4d3478['isIntersecting'](_0x3923c8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x323d74=>_0x323d74['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c002b,_0x424f6b)=>[..._0x4c002b,..._0x424f6b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4fa380=this['getRanges']();if(0x1!=_0x4fa380['length'])return null;const _0x232ba2=_0x4fa380[0x0],_0x4f2938=_0x232ba2['start']['nodeAfter'],_0x47a377=_0x232ba2['end']['nodeBefore'];return _0x4f2938 instanceof _0x1e449a?_0x4f2938!=_0x47a377?null:_0x4f2938: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 _0x3bbe09=[];let _0x1ac7d0=this['head'];for(;_0x1ac7d0;)_0x3bbe09['push'](_0x1ac7d0),_0x1ac7d0=_0x1ac7d0['next'];return _0x3bbe09;}['setAttribute'](_0x3ba795,_0x53d56b){const _0x4d257c=nt(this['attributes']);it(_0x4d257c,_0x3ba795,_0x53d56b),st(_0x4d257c,this['attributes'])||(this['attributes']=_0x4d257c,this['_onAttributesChange'](_0x4d257c));}['removeAttribute'](_0x34b2a1){const _0x3c1bfd=nt(this['attributes']);rt(_0x3c1bfd,_0x34b2a1),st(_0x3c1bfd,this['attributes'])||(this['attributes']=_0x3c1bfd,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 _0x15c67d()['substr'](0x1,0x5);}}function Tt(_0x2fff89,_0x3874ef,_0x5af6e7){const _0x5a8e5f=_0x2fff89['t'],t=_0x2fff89['t'];switch(_0x3874ef){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',_0x5af6e7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5af6e7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5af6e7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5af6e7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5af6e7);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',_0x5af6e7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5af6e7);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',_0x5af6e7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5af6e7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5af6e7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5af6e7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5af6e7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5af6e7);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5af6e7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5af6e7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5af6e7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5af6e7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5af6e7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5af6e7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5af6e7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5af6e7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5af6e7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5af6e7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5af6e7);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5af6e7);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5af6e7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5af6e7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5af6e7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5af6e7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5af6e7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5af6e7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5af6e7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5af6e7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5af6e7);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x5af6e7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5af6e7);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'},_0x5af6e7);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5af6e7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5af6e7);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5af6e7);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5af6e7);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5af6e7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5af6e7);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'},_0x5af6e7);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5af6e7);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 _0x5a8e5f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5af6e7);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5a8e5f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5af6e7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5af6e7);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'},_0x5af6e7);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'},_0x5af6e7);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'},_0x5af6e7);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3874ef;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2aa442,_0x177440){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2aa442,this['_locale']=_0x177440;}['getDescriptions'](_0x4265a){const _0x4a3866=[],_0x2a09fc=new Set(),_0x180422=new Set();for(let _0x4f1d91=0x0;_0x4f1d91<_0x4265a['length'];_0x4f1d91++){const _0xd4b34d=_0x4265a[_0x4f1d91];if(!_0xd4b34d['isInContent'])continue;const _0x5a3a34=this['_handleCustomCallbackDescription'](_0xd4b34d);if(_0x5a3a34){if(null!=_0xd4b34d['subType']){if(_0x2a09fc['has'](_0xd4b34d['subType']))continue;_0x2a09fc['add'](_0xd4b34d['subType']);}_0x4a3866['push'](_0x5a3a34);}else{if('attribute'==_0xd4b34d['type']){const _0xbe1be7=_0xd4b34d['data']['key'];if(_0x180422['has'](_0xbe1be7))continue;_0x180422['add'](_0xd4b34d['data']['key']),_0xbe1be7==Ft?this['_handleRenameSuggestionDescription'](_0x4a3866,_0xd4b34d):this['_handleAttributeSuggestionDescription'](_0x4a3866,_0xd4b34d);continue;}'insertion'!=_0xd4b34d['type']&&'deletion'!=_0xd4b34d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4a3866,_0xd4b34d,_0x4265a[_0x4f1d91+0x1]);}}return this['_resolveDescriptionItems'](_0x4a3866);}['registerDescriptionCallback'](_0x33d728){this['_customCallbacks']['push'](_0x33d728);}['registerElementLabel'](_0x3c325b,_0x36757a,_0x2d2f4c=_0x4f16be['normal']){'function'==typeof _0x3c325b?_0x269903(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3c325b,'label':_0x36757a,'priority':_0x2d2f4c}):this['_itemLabels']['set'](_0x3c325b,_0x36757a);}['registerAttributeLabel'](_0x38c2a8,_0x44245d){this['_attributeLabels']['set'](_0x38c2a8,_0x44245d);}['getItemLabel'](_0x4408a6,_0x497e15=0x1){let _0x4d4309;for(const _0x26ccc6 of this['_itemLabelsCallbacks'])if(_0x26ccc6['matchingCallback'](_0x4408a6)){_0x4d4309=_0x26ccc6['label'];break;}return _0x4d4309||(_0x4d4309=this['_itemLabels']['get'](_0x4408a6['name'])),_0x4d4309?_0x4d4309(_0x497e15):0x1!==_0x497e15?_0x497e15+'\x20'+_0x4408a6['name']+'s':''+_0x4408a6['name'];}['_addDescriptionItems'](_0x3db2e4,_0x4a0d00){const _0x52121c=_0x4a0d00['getFirstRange']()['getWalker'](),_0x56d021='insertion'==_0x4a0d00['type']?'add':'remove';for(const _0x4f9c96 of _0x52121c){const _0x477ded=_0x4f9c96['item'],_0x76b3c3=_0x3db2e4[_0x3db2e4['length']-0x1];if(_0x477ded['is']('$textProxy'))_0x76b3c3&&_0x76b3c3['type']['indexOf']('Container')>-0x1&&_0x3db2e4['pop'](),_0x76b3c3&&'text'==_0x76b3c3['type']?_0x76b3c3[_0x56d021]+=_0x477ded['data']:_0x3db2e4['push']({'type':'text','add':'add'==_0x56d021?_0x477ded['data']:'','remove':'remove'==_0x56d021?_0x477ded['data']:''});else{if(this['_schema']['isObject'](_0x477ded)){const _0x4767bc=_0x477ded;if(_0x76b3c3&&_0x76b3c3['type']['indexOf']('Container')>-0x1&&_0x3db2e4['pop'](),'elementEnd'==_0x4f9c96['type'])continue;_0x76b3c3&&_0x76b3c3['type']==_0x56d021+'Object'&&_0x76b3c3['element']['name']==_0x4767bc['name']?_0x76b3c3['quantity']++:_0x3db2e4['push']({'type':_0x56d021+'Object','element':_0x4767bc,'quantity':0x1}),_0x52121c['skip'](_0x490d17=>!('elementEnd'==_0x490d17['type']&&_0x490d17['item']==_0x477ded));}else{if(this['_schema']['checkChild'](_0x477ded,'$text')||_0x477ded['is']('element','softBreak')){const _0x4afaf2=_0x477ded;if('add'==_0x56d021&&'elementStart'==_0x4f9c96['type']||'remove'==_0x56d021&&'elementEnd'==_0x4f9c96['type'])continue;if(_0x76b3c3&&-0x1==_0x76b3c3['type']['indexOf']('Container')){'text'==_0x76b3c3['type']&&(_0x76b3c3[_0x56d021]+='\x0a');continue;}let _0x33465e;if(_0x33465e='add'==_0x56d021?_0x4afaf2['nextSibling']&&!this['_schema']['isObject'](_0x4afaf2['nextSibling'])?_0x4afaf2['nextSibling']:null:_0x4afaf2['previousSibling']&&!this['_schema']['isObject'](_0x4afaf2['previousSibling'])?_0x4afaf2['previousSibling']:null,_0x4afaf2['isEmpty']||_0x33465e&&_0x33465e['isEmpty']){const _0x3b21ca=_0x33465e&&_0x33465e['isEmpty']?_0x33465e:_0x4afaf2;_0x76b3c3&&_0x76b3c3['type']==_0x56d021+'EmptyContainer'&&_0x76b3c3['element']['name']==_0x3b21ca['name']?_0x76b3c3['quantity']++:_0x3db2e4['push']({'type':_0x56d021+'EmptyContainer','element':_0x3b21ca,'quantity':0x1});}else _0x3db2e4['push']({'type':_0x56d021+'Container','element':_0x4afaf2});}}}}}['_resolveDescriptionItems'](_0x48dc5d){const _0x1429fa=this['_locale'],_0x11a12d=[],_0x4e2c0e=[],_0xfa3e8a=[];for(const _0x88de81 of _0x48dc5d)switch(_0x88de81['type']){case'text':if(_0x88de81['add']=_0x88de81['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x88de81['remove']=_0x88de81['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x88de81['add']&&''!=_0x88de81['remove']){_0x11a12d['push']({'type':'replace','content':Tt(_0x1429fa,'REPLACE_TEXT',['\x22'+_0x88de81['remove']+'\x22','\x22'+_0x88de81['add']+'\x22'])});continue;}if(null!=_0x88de81['add']['match'](/^ +$/)){_0x11a12d['push']({'type':'insertion','content':Tt(_0x1429fa,'*Insert:*\x20%0',Tt(_0x1429fa,'ELEMENT_SPACE',_0x88de81['add']['length']))});continue;}if(null!=_0x88de81['remove']['match'](/^ +$/)){_0x11a12d['push']({'type':'deletion','content':Tt(_0x1429fa,'*Remove:*\x20%0',Tt(_0x1429fa,'ELEMENT_SPACE',_0x88de81['remove']['length']))});continue;}if(''!=_0x88de81['add']){_0x11a12d['push']({'type':'insertion','content':Tt(_0x1429fa,'*Insert:*\x20%0','\x22'+_0x88de81['add']+'\x22')});continue;}_0x11a12d['push']({'type':'deletion','content':Tt(_0x1429fa,'*Remove:*\x20%0','\x22'+_0x88de81['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x11a12d['push']({'type':'insertion','content':Tt(_0x1429fa,'*Insert:*\x20%0',this['getItemLabel'](_0x88de81['element'],_0x88de81['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x11a12d['push']({'type':'deletion','content':Tt(_0x1429fa,'*Remove:*\x20%0',this['getItemLabel'](_0x88de81['element'],_0x88de81['quantity']))});continue;case'addContainer':_0x11a12d['push']({'type':'insertion','content':Tt(_0x1429fa,'*Split:*\x20%0',this['getItemLabel'](_0x88de81['element'],_0x88de81['quantity']))});continue;case'removeContainer':_0x11a12d['push']({'type':'deletion','content':Tt(_0x1429fa,'*Merge:*\x20%0',this['getItemLabel'](_0x88de81['element'],_0x88de81['quantity']))});continue;case'addFormat':_0x4e2c0e['push'](_0x88de81['key']);continue;case'removeFormat':_0xfa3e8a['push'](_0x88de81['key']);continue;default:_0x11a12d['push'](_0x88de81);}if(_0x4e2c0e['length']){const _0x3b050d=_0x4e2c0e['map'](_0x481774=>this['_attributeLabels']['has'](_0x481774)?this['_attributeLabels']['get'](_0x481774):_0x481774)['join'](',\x20');_0x11a12d['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x3b050d)});}if(_0xfa3e8a['length']){const _0x2f7d99=_0xfa3e8a['map'](_0x57c3dd=>this['_attributeLabels']['has'](_0x57c3dd)?this['_attributeLabels']['get'](_0x57c3dd):_0x57c3dd)['join'](',\x20');_0x11a12d['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f7d99)});}return _0x11a12d;}['_handleCustomCallbackDescription'](_0x2e77ae){for(const _0x216182 of this['_customCallbacks']){const _0x37cdc4=_0x216182(_0x2e77ae);if(_0x37cdc4&&'type'in _0x37cdc4)return _0x37cdc4;}}['_handleAttributeSuggestionDescription'](_0x1bbb58,_0x3a3604){const _0x3f0890=_0x3a3604['data'],_0x5b1c24=void 0x0===_0x3f0890['newValue']?'removeFormat':'addFormat';_0x1bbb58['push']({'type':_0x5b1c24,'key':_0x3f0890['key']});}['_handleRenameSuggestionDescription'](_0x13f073,_0x3efe5c){_0x13f073['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3efe5c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4012f7,_0x4d707c,_0x128b95){if(this['_addDescriptionItems'](_0x4012f7,_0x4d707c),_0x128b95&&_0x128b95['getFirstRange']()&&!_0x4d707c['getFirstRange']()['end']['isEqual'](_0x128b95['getFirstRange']()['start'])){const _0xee0cee=_0x4012f7[_0x4012f7['length']-0x1],_0x53d523='insertion'==_0x4d707c['type']?'add':'remove';_0xee0cee&&'text'==_0xee0cee['type']&&(_0xee0cee[_0x53d523]+='\x0a');}}}class TrackChangesAIAssistant extends _0x3cecf3{['afterInit'](){const _0x21b9ff=this['editor'],_0x198cc4=_0x21b9ff['plugins']['get']('TrackChangesEditing');_0x21b9ff['commands']['get']('showAIAssistant')&&_0x198cc4['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x3cecf3{['afterInit'](){const _0x25355f=this['editor'],_0x44d414=_0x25355f['plugins']['get']('TrackChangesEditing');_0x25355f['commands']['get']('toggleAi')&&_0x44d414['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x3cecf3{['afterInit'](){const _0x3446c5=this['editor'],_0x2c608a=_0x3446c5['plugins']['get']('TrackChangesEditing');_0x3446c5['commands']['get']('aiQuickAction')&&_0x2c608a['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x3cecf3{['afterInit'](){const _0x2c98fa=this['editor'],_0x159056=_0x2c98fa['locale'];if(!_0x2c98fa['plugins']['has']('AlignmentEditing'))return;const _0x65c110=_0x2c98fa['plugins']['get']('TrackChangesEditing');_0x65c110['enableDefaultAttributesIntegration']('alignment'),_0x65c110['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x159056,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309b60=this['editor'],_0x12f689=_0x309b60['locale'];_0x309b60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7656e7=>{if('formatBlock'!=_0x7656e7['type'])return;const {data:_0x12c443}=_0x7656e7;if(_0x12c443&&'alignment'==_0x12c443['commandName']){const _0x2ece61=_0x12c443['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x12f689,'*Format:*\x20%0',function(_0x3024a0){switch(_0x3024a0){case'left':return Tt(_0x12f689,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x12f689,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x12f689,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x12f689,'FORMAT_JUSTIFY_TEXT');}}(_0x2ece61))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x3cecf3{['afterInit'](){const _0x275db8=this['editor'],_0x443e78=_0x275db8['plugins']['get']('TrackChangesEditing'),_0x430e52=_0x275db8['locale'];for(const _0x432d04 of _t){if(!_0x275db8['plugins']['has'](_0x432d04))continue;const _0x535954=_0x432d04['slice'](0x0,-0x7)['toLowerCase'](),_0x3e180d='FORMAT_'+_0x535954['toUpperCase']();_0x443e78['enableDefaultAttributesIntegration'](_0x535954),_0x443e78['descriptionFactory']['registerAttributeLabel'](_0x535954,Tt(_0x430e52,_0x3e180d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x371aeb=this['editor'],_0x1cb212=_0x371aeb['locale'],_0x29dd01=_0x371aeb['plugins']['get']('TrackChangesEditing');function _0x5f59ff(_0x462c9b,_0x489a75){_0x29dd01['descriptionFactory']['registerDescriptionCallback'](_0x568e81=>{if('formatInline'!=_0x568e81['type'])return;const {data:_0x2861a3}=_0x568e81;return _0x2861a3&&_0x2861a3['commandName']===_0x462c9b?_0x2861a3['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1cb212,'*Format:*\x20%0',_0x489a75)}:{'type':'format','content':Tt(_0x1cb212,'*Remove\x20format:*\x20%0',_0x489a75)}:void 0x0;});}_0x5f59ff('bold',Tt(_0x1cb212,'FORMAT_BOLD')),_0x5f59ff('italic',Tt(_0x1cb212,'FORMAT_ITALIC')),_0x5f59ff('underline',Tt(_0x1cb212,'FORMAT_UNDERLINE')),_0x5f59ff('code',Tt(_0x1cb212,'FORMAT_CODE')),_0x5f59ff('strikethrough',Tt(_0x1cb212,'FORMAT_STRIKETHROUGH')),_0x5f59ff('subscript',Tt(_0x1cb212,'FORMAT_SUBSCRIPT')),_0x5f59ff('superscript',Tt(_0x1cb212,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x3cecf3{['afterInit'](){const _0x47db1a=this['editor'],_0x39c833=_0x47db1a['locale'];if(!_0x47db1a['plugins']['has']('BlockQuoteEditing'))return;const _0x45ef70=_0x47db1a['plugins']['get']('TrackChangesEditing'),_0x4ab880=this['editor']['commands']['get']('blockQuote');_0x45ef70['enableCommand']('blockQuote',(_0x3172f6,_0x373c41={})=>{const _0x35c040=this['editor']['model']['document']['selection'],_0x5901b3=_0x373c41&&void 0x0!==_0x373c41['forceValue']?_0x373c41['forceValue']:!_0x4ab880['value'];let _0x58282e=[];if(_0x5901b3){const _0x58d0e8=Array['from'](_0x35c040['getSelectedBlocks']())['filter'](_0x362dad=>pt(_0x362dad)||function(_0x463864,_0x5e93ab){const _0x3f700e=_0x5e93ab['checkChild'](_0x463864['parent'],'blockQuote'),_0x2fe578=_0x5e93ab['checkChild'](['$root','blockQuote'],_0x463864);return _0x3f700e&&_0x2fe578;}(_0x362dad,this['editor']['model']['schema']));_0x58282e=ft(_0x58d0e8,_0x47db1a['model']);}else{const _0x162b1d=Array['from'](_0x35c040['getSelectedBlocks']())['filter'](_0x48fbb3=>pt(_0x48fbb3));_0x58282e=ft(_0x162b1d,_0x47db1a['model']);}_0x47db1a['model']['change'](()=>{for(const _0x4f8cce of _0x58282e)_0x45ef70['markBlockFormat'](_0x4f8cce,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5901b3}]});});}),_0x45ef70['descriptionFactory']['registerDescriptionCallback'](_0x7f86c=>{const {data:_0x3f5dd0}=_0x7f86c;if(_0x3f5dd0&&'blockQuote'==_0x3f5dd0['commandName']){const _0x18c7ff=Tt(_0x39c833,'ELEMENT_BLOCK_QUOTE');return _0x3f5dd0['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x39c833,'*Set\x20format:*\x20%0',_0x18c7ff)}:{'type':'format','content':Tt(_0x39c833,'*Remove\x20format:*\x20%0',_0x18c7ff)};}});}}function pt(_0x533e27){return'blockQuote'==_0x533e27['parent']['name'];}class TrackChangesBookmark extends _0x3cecf3{['afterInit'](){const _0x40e345=this['editor'],_0x45dca3=_0x40e345['locale'],_0x62f52a=_0x40e345['plugins']['get']('TrackChangesEditing');_0x40e345['plugins']['has']('BookmarkEditing')&&(_0x62f52a['enableCommand']('insertBookmark'),_0x62f52a['enableDefaultAttributesIntegration']('updateBookmark'),_0x62f52a['descriptionFactory']['registerDescriptionCallback'](_0x51445b=>{if('insertion'!=_0x51445b['type']&&'deletion'!=_0x51445b['type']&&'attribute'!=_0x51445b['type'])return;const _0x2b2ed4=_0x51445b['getContainedElement']();if(null==_0x2b2ed4)return;if(!_0x2b2ed4['is']('element','bookmark'))return;const _0x5b9567=_0x2b2ed4['getAttribute']('bookmarkId');if('insertion'==_0x51445b['type'])return{'type':'insertion','content':Tt(_0x45dca3,'*Insert:*\x20%0','\x22'+_0x5b9567+'\x22\x20'+Tt(_0x45dca3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x51445b['type'])return{'type':'deletion','content':Tt(_0x45dca3,'*Remove:*\x20%0','\x22'+_0x5b9567+'\x22\x20'+Tt(_0x45dca3,'ELEMENT_BOOKMARK'))};const {data:_0x6dd184}=_0x51445b;if(!_0x6dd184||'bookmarkId'!=_0x6dd184['key'])return;return{'type':'format','content':Tt(_0x45dca3,'*Set\x20bookmark:*\x20%0','\x22'+_0x6dd184['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x3cecf3{['afterInit'](){const _0x42d765=this['editor'];_0x42d765['plugins']['has']('CaseChange')&&(_0x42d765['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x42d765['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x42d765['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x3cecf3{['afterInit'](){const _0x5e1cd6=this['editor'];_0x5e1cd6['commands']['get']('ckbox')&&_0x5e1cd6['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x3cecf3{['afterInit'](){const _0x11ab4c=this['editor'];if(!_0x11ab4c['plugins']['has']('CodeBlock'))return;const _0x49dd33=_0x11ab4c['plugins']['get']('TrackChangesEditing'),_0x5421c7=_0x11ab4c['locale'],_0x15e53f=_0x11ab4c['config']['get']('codeBlock')['languages'],_0x142700=_0x11ab4c['commands']['get']('codeBlock');_0x49dd33['enableCommand']('indentCodeBlock'),_0x49dd33['enableCommand']('outdentCodeBlock'),_0x49dd33['enableCommand']('codeBlock',(_0x4da49e,_0x1ad704={})=>{const _0x37d04e=_0x11ab4c['model'],_0x3a6814=_0x11ab4c['model']['document']['selection'],_0x33c307=_0x1ad704&&void 0x0!==_0x1ad704['forceValue']?_0x1ad704['forceValue']:!_0x142700['value'];let _0x2f70a;_0x1ad704['language']||(_0x1ad704['language']=_0x15e53f[0x0]['language']),_0x2f70a=_0x33c307?Array['from'](_0x3a6814['getSelectedBlocks']())['filter'](_0x3f3a09=>Ct(_0x3f3a09)||function(_0x4debf9,_0x163e50){if(_0x4debf9['is']('rootElement')||_0x163e50['isLimit'](_0x4debf9))return!0x1;return _0x163e50['checkChild'](_0x4debf9['parent'],'codeBlock');}(_0x3f3a09,_0x37d04e['schema'])):Array['from'](_0x3a6814['getSelectedBlocks']())['filter'](_0x3e7598=>Ct(_0x3e7598));const _0x58d2db=ft(_0x2f70a,_0x37d04e);_0x37d04e['change'](()=>{for(const _0x35f07c of _0x58d2db)_0x49dd33['markBlockFormat'](_0x35f07c,{'commandName':'codeBlock','commandParams':[{..._0x1ad704,'forceValue':_0x33c307}],'formatGroupId':'blockName'});});}),(_0x49dd33['descriptionFactory']['registerElementLabel']('codeBlock',_0x3cbebc=>Tt(_0x5421c7,'ELEMENT_CODE_BLOCK',_0x3cbebc)),_0x49dd33['descriptionFactory']['registerDescriptionCallback'](_0x4c4fcc=>{if('formatBlock'!=_0x4c4fcc['type'])return;const _0x1999f6=_0x5421c7['t'],{data:_0x5955c8}=_0x4c4fcc;if(!_0x5955c8||'codeBlock'!=_0x5955c8['commandName'])return;const _0x28269d=_0x5955c8['commandParams'][0x0]['language'],_0x138be7=_0x1999f6(_0x15e53f['find'](_0x3bdb73=>_0x3bdb73['language']===_0x28269d)['label'])['toLowerCase']();return _0x5955c8['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x5421c7,'*Set\x20format:*\x20%0',Tt(_0x5421c7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x138be7+')')}:{'type':'format','content':Tt(_0x5421c7,'*Remove\x20format:*\x20%0',Tt(_0x5421c7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x4de467){return'codeBlock'==_0x4de467['name'];}class TrackChangesComments extends _0x3cecf3{['afterInit'](){const _0x1b9071=this['editor'];if(!_0x1b9071['plugins']['has']('CommentsEditing'))return;_0x1b9071['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x3cecf3{static get['requires'](){return[at];}['init'](){const _0x4fa193=this['editor'],_0x5d676f=_0x4fa193['plugins']['get']('TrackChangesEditing');_0x5d676f['enableCommand']('delete');const _0x58b836=_0x4fa193['commands']['get']('deleteForward');_0x5d676f['enableCommand']('deleteForward',(_0x37cf98,_0x28b585={})=>{const _0x49307f=_0x4fa193['model']['createSelection'](_0x4fa193['model']['document']['selection']);_0x49307f['isCollapsed']&&_0x4fa193['model']['modifySelection'](_0x49307f,{'direction':'forward','unit':_0x28b585['unit']});const _0x1b6202=_0x49307f['getFirstRange'](),_0x114b0b=_0x52f028['fromRange'](_0x1b6202);let _0x3f11bf;_0x37cf98(_0x28b585),_0x3f11bf='$graveyard'==_0x114b0b['root']['rootName']?_0x4fa193['model']['createRange'](_0x1b6202['start']):_0x4fa193['model']['createRange'](_0x114b0b['start'],_0x114b0b['end']),_0x114b0b['detach'](),_0x4fa193['model']['enqueueChange'](_0x58b836['buffer']['batch'],_0x25dd3c=>{_0x58b836['buffer']['lock'](),_0x25dd3c['setSelection'](_0x25dd3c['createRange'](_0x3f11bf['end'])),_0x58b836['buffer']['unlock']();});});}}class TrackChangesList extends _0x3cecf3{['afterInit'](){const _0x1de5bf=this['editor'];if(!_0x1de5bf['plugins']['has']('ListEditing'))return;const _0xe02b12=_0x1de5bf['locale'],_0x5bfd1b=_0x1de5bf['plugins']['get']('TrackChangesEditing'),_0x663e5f=_0x1de5bf['plugins']['has']('TodoListEditing'),_0x18efe2=!!_0x1de5bf['config']['get']('list.multiBlock');function _0x4ef730(_0x37ed2c){return{'type':'format','content':''+Tt(_0xe02b12,'*Set\x20format:*\x20%0',_0x37ed2c)};}function _0x5a7bba(_0x219cf4){return{'type':'format','content':''+Tt(_0xe02b12,'*Remove\x20format:*\x20%0',_0x219cf4)};}_0x5bfd1b['enableDefaultAttributesIntegration']('numberedList'),_0x5bfd1b['enableDefaultAttributesIntegration']('bulletedList'),_0x5bfd1b['enableDefaultAttributesIntegration']('customNumberedList'),_0x5bfd1b['enableDefaultAttributesIntegration']('customBulletedList'),_0x5bfd1b['enableDefaultAttributesIntegration']('indentList'),_0x5bfd1b['enableDefaultAttributesIntegration']('outdentList'),_0x5bfd1b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5bfd1b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x18efe2&&(_0x5bfd1b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5bfd1b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x663e5f&&(_0x5bfd1b['enableDefaultAttributesIntegration']('todoList'),_0x5bfd1b['enableDefaultAttributesIntegration']('checkTodoList'),_0x5bfd1b['descriptionFactory']['registerDescriptionCallback'](_0x2b1aa7=>{const {data:_0x2db6e2}=_0x2b1aa7;if(_0x2db6e2&&'todoListChecked'==_0x2db6e2['key'])return{'type':'format','content':_0x2db6e2['newValue']?Tt(_0xe02b12,'*Check\x20item*'):Tt(_0xe02b12,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5b0646=>{if(_0x5b0646['batch']['isUndo'])return!0x1;let _0x29cbf2=!0x1;const _0x247e9b=_0x5bfd1b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b6511=>'todoListChecked'===_0x5bfd1b['_getAttributeKey'](_0x3b6511));for(const _0x538732 of _0x247e9b){'todo'!=_0x538732['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5bfd1b['_findSuggestions'](_0x538732['getFirstRange'](),'attribute')['find'](_0xd2a842=>'listType'===_0x5bfd1b['_getAttributeKey'](_0xd2a842['suggestion']))||(_0x5b0646['removeMarker'](_0x538732['getFirstMarker']()),_0x29cbf2=!0x0));}return _0x29cbf2;})),_0x5bfd1b['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0xe02b12,'FORMAT_INDENT'));const _0x1e5b33={'type':'format','content':''};_0x5bfd1b['descriptionFactory']['registerDescriptionCallback'](_0x4495e6=>{const {data:_0xcd5c30}=_0x4495e6;if(!_0xcd5c30||'listType'!=_0xcd5c30['key'])return;let _0x45b6a9=_0x4495e6['head'];for(;_0x45b6a9;){if(_0x45b6a9['data']&&(('listStyle'==_0x45b6a9['data']['key']||'listMarkerStyle'==_0x45b6a9['data']['key'])&&(_0x45b6a9['data']['newValue']&&'default'!=_0x45b6a9['data']['newValue']||'default'!=_0x45b6a9['data']['oldValue']&&!_0xcd5c30['newValue'])||!_0x18efe2&&_0x45b6a9['data']['key']==Ft))return _0x1e5b33;_0x45b6a9=_0x45b6a9['next'];}if(null==_0xcd5c30['newValue'])switch(_0xcd5c30['oldValue']){case'bulleted':return _0x5a7bba(Tt(_0xe02b12,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5a7bba(Tt(_0xe02b12,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5a7bba(Tt(_0xe02b12,'ELEMENT_TODO_LIST'));}switch(_0xcd5c30['newValue']){case'bulleted':return _0x4ef730(Tt(_0xe02b12,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ef730(Tt(_0xe02b12,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ef730(Tt(_0xe02b12,'ELEMENT_TODO_LIST'));}}),_0x5bfd1b['descriptionFactory']['registerDescriptionCallback'](_0x5f131e=>{const {data:_0xeca03e}=_0x5f131e;if(_0xeca03e&&'listIndent'==_0xeca03e['key'])return null==_0xeca03e['newValue']||null==_0xeca03e['oldValue']&&0x0==_0xeca03e['newValue']?_0x1e5b33:void 0x0;}),_0x5bfd1b['descriptionFactory']['registerDescriptionCallback'](_0x58be7c=>{if('attribute'!=_0x58be7c['type'])return;const {data:_0x501aa6}=_0x58be7c;if(!_0x501aa6||'listItemId'!=_0x501aa6['key'])return;const _0x32b3e8=kt(_0x58be7c);return'newValue'==_0x32b3e8?{'type':'format','content':Tt(_0xe02b12,'*Merge:*\x20list\x20item')}:'oldValue'==_0x32b3e8?{'type':'format','content':Tt(_0xe02b12,'*Split:*\x20list\x20item')}:_0x1e5b33;}),_0x1de5bf['model']['document']['registerPostFixer'](_0x3709ee=>this['listItemIdFixer'](_0x3709ee)),_0x1de5bf['model']['document']['registerPostFixer'](_0x513dc9=>this['noTrackChangesFixer'](_0x513dc9)),_0x1de5bf['model']['document']['on']('change:data',(_0x1266ab,_0x5e82b0)=>{if(_0x5e82b0['isUndo']||!_0x5e82b0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x55c582){if(_0x55c582['batch']['isUndo']||!_0x55c582['batch']['isLocal'])return!0x1;let _0x3e025b=!0x1;const _0x44ff8f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12a6f1=>_0x12a6f1['data']&&'listItemId'==_0x12a6f1['data']['key'])['filter'](_0x1ae448=>_0x1ae448['data']['newValue']&&_0x1ae448['data']['oldValue']);for(const _0x353a31 of _0x44ff8f)kt(_0x353a31)||(_0x55c582['removeMarker'](_0x353a31['getFirstMarker']()),_0x3e025b=!0x0);return _0x3e025b;}['noTrackChangesFixer'](_0x13dc9d){if(_0x13dc9d['batch']['isUndo']||!_0x13dc9d['batch']['isLocal'])return!0x1;const _0x57fe76=this['editor']['model']['document']['differ'],_0x1e7376=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1e7376['trackChangesCommand']['value'])return!0x1;let _0x2ad3a1=!0x1;const _0x4456a7=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0xcfc4b3=_0x57fe76['getChanges']()['filter'](_0x1a1371=>'attribute'==_0x1a1371['type'])['filter'](_0x3d965a=>_0x4456a7['has'](_0x3d965a['attributeKey']));if(0x0==_0xcfc4b3['length'])return _0x2ad3a1;const _0x59e444=new Set(_0x57fe76['getMarkersToAdd']()['filter'](_0x3e9521=>{if(!_0x3e9521['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x383a1f=_0x309b71(_0x3e9521['name'])['subType']['split']('|')[0x0];return _0x4456a7['has'](_0x383a1f);})['map'](_0xcd9235=>_0x309b71(_0xcd9235['name'])['id']));for(const _0x11a2bd of _0xcfc4b3){const _0xcd09e1=_0x1e7376['_findSuggestions'](_0x11a2bd['range'],'attribute')['filter'](_0x3c4f66=>{if(_0x3c4f66['meta']['isNextTo'])return!0x1;if(_0x59e444['has'](_0x3c4f66['suggestion']['id']))return!0x1;const _0x2bbb9e=_0x1e7376['_getAttributeKey'](_0x3c4f66['suggestion']);return _0x4456a7['has'](_0x2bbb9e);})['map'](_0x2c1fe1=>_0x2c1fe1['suggestion']);if(_0xcd09e1['length']){for(const _0x1442e0 of _0xcd09e1)_0x13dc9d['removeMarker'](_0x1442e0['getFirstMarker']());_0x2ad3a1=!0x0;}}return _0x2ad3a1;}['assureChains'](){const _0x5caac1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c5742=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xb87eac;const _0x46531e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3cee65=>{if(_0x3cee65['data']['oldRange']||!_0x3cee65['data']['newRange'])return null;if(!_0x3cee65['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4366de}=_0x309b71(_0x3cee65['name']);if(!_0x5caac1['hasSuggestion'](_0x4366de))return null;const _0x4c5e70=_0x5caac1['getSuggestion'](_0x4366de);return _0x3c5742['includes'](_0x4c5e70['data']['key']);})['map'](_0x52bec0=>{const {id:_0x3282e2}=_0x309b71(_0x52bec0['name']),_0x2ba156=_0x5caac1['getSuggestion'](_0x3282e2);return _0xb87eac=_0x2ba156['attributes']['groupId'],_0x2ba156['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x46531e['size'])return;const _0xd42f6e=_0x5caac1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c9117=>'attribute'==_0x4c9117['type']&&_0x4c9117['data']&&_0x3c5742['includes'](_0x4c9117['data']['key'])&&_0x4c9117['attributes']['groupId']!=_0xb87eac)['map'](_0x3361af=>({'listItem':_0x3361af['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3361af['attributes']['groupId']})),_0x4426db=new Set();for(const {groupId:_0xbc0e3a,listItem:_0x116b10}of _0xd42f6e)_0x46531e['has'](_0x116b10)&&_0x4426db['add'](_0xbc0e3a);for(const _0x5aedb5 of _0x5caac1['getSuggestions']())_0x4426db['has'](_0x5aedb5['attributes']['groupId'])&&_0x5aedb5['setAttribute']('groupId',_0xb87eac);}['_supportLegacySuggestions'](){const _0xe889ba=this['editor'],_0x5b58ff=_0xe889ba['locale'],_0x2c224a=_0xe889ba['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2c224a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3edee1,_0x5f1b80){const _0x54bbb1=[];for(let _0x10c860 of _0x3edee1)_0x10c860['start']['nodeAfter']===_0x10c860['end']['parent']&&(_0x10c860=_0xe889ba['model']['createRange'](_0xe889ba['model']['createPositionAt'](_0x10c860['start']['nodeAfter'],0x0))),_0x54bbb1['push'](_0x10c860);_0xe889ba['model']['change'](_0x1d374b=>{const _0x236ea=_0xe889ba['model']['document']['selection'],_0x4c4d8d=Array['from'](_0x236ea['getRanges']())['map'](_0xd52d95=>_0x52f028['fromRange'](_0xd52d95));_0x1d374b['setSelection'](_0x54bbb1),_0xe889ba['commands']['get'](_0x5f1b80['commandName'])['refresh'](),_0x5f1b80['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xe889ba['execute'](_0x5f1b80['commandName'],..._0x5f1b80['commandParams']),_0x1d374b['setSelection'](_0x4c4d8d);for(const _0x11c27d of _0x4c4d8d)_0x11c27d['detach']();});}),_0x2c224a['descriptionFactory']['registerElementLabel'](function(_0x3a794f){const _0x5a9e62=!_0xe889ba['model']['schema']['isObject'](_0x3a794f),_0x2bfea1=_0x3a794f['previousSibling'],_0x4e95c5=_0x3a794f['nextSibling'],_0x443583=_0x3a794f['getAttribute']('listItemId'),_0x40ee66=!_0x2bfea1||_0x2bfea1['getAttribute']('listItemId')!==_0x443583,_0x5cb530=!_0x4e95c5||_0x4e95c5['getAttribute']('listItemId')!==_0x443583;return _0x5a9e62&&Boolean(_0x443583)&&_0x40ee66&&_0x5cb530;},_0x39b9c3=>Tt(_0x5b58ff,'ELEMENT_LIST_ITEM',_0x39b9c3));}['_registerLegacyDescription'](){const _0x1dc872=this['editor'],_0x2c24b1=_0x1dc872['locale'];function _0x15762d(_0x39006f){const _0x435105=_0x1dc872['commands']['get']('bulletedList')['value'],_0x4d5617=_0x1dc872['commands']['get']('numberedList')['value'];return'numberedList'===_0x39006f?_0x435105:_0x4d5617;}_0x1dc872['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a32b8){if('formatBlock'!=_0x4a32b8['type'])return;const {data:_0x3e5149}=_0x4a32b8;if(!_0x3e5149)return;let _0x1adc5a,_0x3b5374,_0x1d9bc3,_0x484381;switch(_0x3e5149['commandName']){case'bulletedList':_0x1d9bc3=_0x3e5149['commandParams'][0x0]['forceValue'],_0x484381=_0x15762d(_0x3e5149['commandName']),_0x1adc5a=_0x1d9bc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x484381&&_0x1dc872['config']['get']('list.multiBlock')||(_0x1adc5a='*Change\x20to:*\x20%0'),_0x3b5374={'type':'format','content':Tt(_0x2c24b1,_0x1adc5a,Tt(_0x2c24b1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1d9bc3=_0x3e5149['commandParams'][0x0]['forceValue'],_0x484381=_0x15762d(_0x3e5149['commandName']),_0x1adc5a=_0x1d9bc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x484381&&_0x1dc872['config']['get']('list.multiBlock')||(_0x1adc5a='*Change\x20to:*\x20%0'),_0x3b5374={'type':'format','content':Tt(_0x2c24b1,_0x1adc5a,Tt(_0x2c24b1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1adc5a='*Indent:*\x20%0',_0x3b5374={'type':'format','content':Tt(_0x2c24b1,_0x1adc5a,Tt(_0x2c24b1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1adc5a=function(_0x544ac7){const _0x5b2c89=_0x544ac7['getFirstRange']();let _0x71379e=_0x5b2c89['start']['nodeAfter'];for(;_0x71379e&&_0x5b2c89['containsItem'](_0x71379e);){if(_0x71379e['getAttribute']('listIndent')>0x0)return!0x1;_0x71379e=_0x71379e['nextSibling'];}return!0x0;}(_0x4a32b8)?Tt(_0x2c24b1,'*Format:*\x20remove\x20from\x20%0',Tt(_0x2c24b1,function(_0x4be34e){return'ELEMENT_'+_0x4be34e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a32b8))):Tt(_0x2c24b1,'*Outdent:*\x20%0',Tt(_0x2c24b1,'ELEMENT_LIST_ITEM')),_0x3b5374={'type':'format','content':_0x1adc5a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3e5149['multipleBlocks']&&(_0x1adc5a='*Merge:*\x20%0',_0x3b5374={'type':'deletion','content':Tt(_0x2c24b1,_0x1adc5a,Tt(_0x2c24b1,'ELEMENT_LIST_ITEM'))});}return _0x3b5374;});}}function kt(_0x4ee656){let _0x4179e4=_0x4ee656['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4179e4;){const _0x4f4078=_0x4179e4['getAttribute']('listItemId');if(!_0x4f4078)return!0x1;if(_0x4f4078==_0x4ee656['data']['newValue'])return'newValue';if(_0x4f4078==_0x4ee656['data']['oldValue'])return'oldValue';_0x4179e4=_0x4179e4['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2bfb29=this['editor']['config']['get']('list.properties'),_0x15af91=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bfb29['styles']&&_0x15af91['enableDefaultAttributesIntegration']('listStyle'),_0x2bfb29['reversed']&&_0x15af91['enableDefaultAttributesIntegration']('listReversed'),_0x2bfb29['startIndex']&&_0x15af91['enableDefaultAttributesIntegration']('listStart');const _0x54759e={'type':'format','content':''};_0x15af91['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5ed9cd=this['editor']['locale'];_0x15af91['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x5ed9cd,'FORMAT_LIST_REVERSED')),_0x15af91['descriptionFactory']['registerDescriptionCallback'](_0x47e1ea=>{const {data:_0x539ca1}=_0x47e1ea;if(_0x539ca1&&'listReversed'==_0x539ca1['key'])return null==_0x539ca1['newValue']||0x0==_0x539ca1['newValue']&&null==_0x539ca1['oldValue']?_0x54759e:void 0x0;}),_0x15af91['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x5ed9cd,'FORMAT_LIST_START')),_0x15af91['descriptionFactory']['registerDescriptionCallback'](_0x58f8ec=>{const {data:_0x3bbbde}=_0x58f8ec;if(_0x3bbbde&&'listStart'==_0x3bbbde['key'])return null==_0x3bbbde['newValue']||0x1==_0x3bbbde['newValue']&&null==_0x3bbbde['oldValue']?_0x54759e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x25309c=>{if(_0x25309c['batch']['isUndo'])return!0x1;let _0x179697=!0x1;const _0x1b2a80=_0x15af91['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ebcd5=>{const _0x1f6af2=_0x15af91['_getAttributeKey'](_0x1ebcd5);return'listStart'==_0x1f6af2||'listReversed'==_0x1f6af2;});for(const _0x527a9c of _0x1b2a80){const _0x4502d6=_0x527a9c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4502d6||'customNumbered'==_0x4502d6)continue;_0x15af91['_findSuggestions'](_0x527a9c['getFirstRange'](),'attribute')['find'](_0x5bbc67=>'listType'==_0x15af91['_getAttributeKey'](_0x5bbc67['suggestion']))||(_0x25309c['removeMarker'](_0x527a9c['getFirstMarker']()),_0x179697=!0x0);}return _0x179697;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xd4574a){const _0x9988c6=this['editor']['locale'],{data:_0x4ee5a6}=_0xd4574a,_0x53aebb={'type':'format','content':''};if(!_0x4ee5a6||'listStyle'!=_0x4ee5a6['key'])return;if(!_0x4ee5a6['oldValue'])return'default'==_0x4ee5a6['newValue']?_0x53aebb:{'type':'format','content':''+Tt(_0x9988c6,'*Set\x20format:*\x20%0',Tt(_0x9988c6,this['_getTranslationKeyForListStyle'](_0x4ee5a6['newValue'])))};if(!_0x4ee5a6['newValue']){if('default'==_0x4ee5a6['oldValue'])return _0x53aebb;let _0x302675=_0xd4574a['head'];for(;_0x302675;){if(_0x302675['data']&&'listType'==_0x302675['data']['key']&&_0x302675['data']['newValue'])return _0x53aebb;_0x302675=_0x302675['next'];}return{'type':'format','content':''+Tt(_0x9988c6,'*Remove\x20format:*\x20%0',Tt(_0x9988c6,this['_getTranslationKeyForListStyle'](_0x4ee5a6['oldValue'])))};}if('default'!=_0x4ee5a6['newValue'])return{'type':'format','content':''+Tt(_0x9988c6,'*Set\x20format:*\x20%0',Tt(_0x9988c6,this['_getTranslationKeyForListStyle'](_0x4ee5a6['newValue'])))};let _0x445873=_0xd4574a['head'];for(;_0x445873;){if(_0x445873['data']&&'listType'==_0x445873['data']['key']&&_0x445873['data']['newValue']&&_0x445873['data']['oldValue'])return _0x53aebb;_0x445873=_0x445873['next'];}return{'type':'format','content':Tt(_0x9988c6,'*Set\x20format:*\x20%0',Tt(_0x9988c6,'ELEMENT_'+_0xd4574a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x321f8e=this['editor'],_0x3f2601=_0x321f8e['locale'];_0x321f8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2abc9d=>{if('formatBlock'!=_0x2abc9d['type'])return;const {data:_0x3dd552}=_0x2abc9d;if(!_0x3dd552)return;let _0x218058,_0x431539;switch(_0x3dd552['commandName']){case'listStyle':_0x218058='*Change\x20to:*\x20%0',_0x431539={'type':'format','content':Tt(_0x3f2601,_0x218058,Tt(_0x3f2601,this['_getTranslationKeyForListStyle'](_0x3dd552['commandParams'][0x0]['type'])))};break;case'listReversed':_0x218058=_0x3dd552['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x431539={'type':'format','content':Tt(_0x3f2601,_0x218058)};break;case'listStart':_0x218058='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x431539={'type':'format','content':Tt(_0x3f2601,_0x218058,_0x3dd552['commandParams'][0x0]['startIndex'])};}return _0x431539;});}['_getTranslationKeyForListStyle'](_0x13a14a){return'ELEMENT_'+function(_0x4aacfc){if(Lt['includes'](_0x4aacfc))return'bulleted';if(It['includes'](_0x4aacfc))return'numbered';return null;}(_0x13a14a)['toUpperCase']()+'_LIST_'+_0x13a14a['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x3cecf3{['afterInit'](){const _0x95bf2d=this['editor'];_0x95bf2d['commands']['get']('emoji')&&_0x95bf2d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x3cecf3{static get['requires'](){return[lt];}['init'](){const _0xf24325=this['editor'],_0x19712d=_0xf24325['plugins']['get']('TrackChangesEditing'),_0x49de2c=_0xf24325['commands']['get']('enter');_0x19712d['enableCommand']('enter',()=>{_0xf24325['model']['change'](_0x2366a1=>{const _0x2eddf9=_0xf24325['model']['document']['selection'],_0x6889cb=_0x2eddf9['getFirstPosition'](),_0xbdaa71=_0x52f028['fromRange'](_0x2eddf9['getFirstRange']());if(_0x49de2c['enterBlock'](_0x2366a1)){const _0x1029bb=_0xf24325['model']['createPositionAt'](_0x6889cb['parent']['nextSibling'],0x0),_0x39e11c=_0x2366a1['createRange'](_0x6889cb,_0x1029bb);_0x19712d['markInsertion'](_0x39e11c);}else _0x2366a1['setSelection'](_0x2366a1['createRange'](_0xbdaa71['end']));_0xbdaa71['detach'](),_0x49de2c['fire']('afterExecute',{'writer':_0x2366a1});});});}}class TrackChangesFindAndReplace extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x412c19=this['editor']['plugins']['get']('TrackChangesEditing');_0x412c19['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x412c19['enableCommand']('findNext'),_0x412c19['enableCommand']('findPrevious'),_0x412c19['enableCommand']('replace'),_0x412c19['enableCommand']('replaceAll');}['handleFindCommand'](_0x26b12a,_0x4ac2be,_0x126879={}){const _0x28bf94=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26b12a(_0x4d56ea=>{let _0x179990=('string'==typeof _0x4ac2be?_0x28bf94['findByTextCallback'](_0x4ac2be,_0x126879):_0x4ac2be)(_0x4d56ea);Array['isArray'](_0x179990)&&(_0x179990={'results':_0x179990,'searchText':'string'==typeof _0x4ac2be?_0x4ac2be:''});const _0x295dad=_0x179990['results']['filter'](_0x66ff6=>!0x1===this['_isInDeletionRange'](_0x66ff6,_0x4d56ea['item']));return{..._0x179990,'results':_0x295dad};},_0x126879);}['_isInDeletionRange'](_0x12232e,_0x3d978a){const _0x153ec2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d978a,_0x12232e['start']),this['editor']['model']['createPositionAt'](_0x3d978a,_0x12232e['end']));for(const _0x39291c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x153ec2['getIntersection'](_0x39291c['getRange']()))return!0x0;return!0x1;}}const bt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x3cecf3{['afterInit'](){const _0x5e1f7c=this['editor']['locale'],_0x28c072=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x21d7d3,commandName:_0x4e5877}of bt)this['editor']['plugins']['has'](_0x21d7d3)&&_0x28c072['enableDefaultAttributesIntegration'](_0x4e5877);_0x28c072['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x5e1f7c,'FORMAT_FONT_SIZE')),_0x28c072['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x5e1f7c,'FORMAT_FONT_FAMILY')),_0x28c072['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x5e1f7c,'FORMAT_FONT_COLOR')),_0x28c072['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x5e1f7c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c3794=this['editor'],_0x256bd6=_0x4c3794['locale'];_0x4c3794['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b9204=>{const _0x26ef0e=_0x256bd6['t'];if('formatInline'!=_0x4b9204['type'])return;const {data:_0x535068}=_0x4b9204;if(null!=_0x535068){if('fontSize'==_0x535068['commandName']){const _0x1d8389=_0x535068['commandParams'][0x0]['value'];if(_0x1d8389){const _0x1d8012=_0x26ef0e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x48e1c4=>_0x48e1c4['model']==_0x1d8389)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x256bd6,'*Set\x20font\x20size:*\x20%0',_0x1d8012)};}return{'type':'format','content':Tt(_0x256bd6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x535068['commandName']){const _0x5723cc=_0x535068['commandParams'][0x0]['value'];return _0x5723cc?{'type':'format','content':Tt(_0x256bd6,'*Set\x20font\x20family:*\x20%0',_0x5723cc)}:{'type':'format','content':Tt(_0x256bd6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x535068['commandName']){const _0xc89a78=_0x535068['commandParams'][0x0]['value'];if(_0xc89a78){const _0x2df410=_0x588851(this['editor']['config']['get']('fontColor.colors'))['find'](_0x429581=>_0x429581['model']==_0xc89a78);let _0x4b6edb=_0xc89a78,_0x4ea443='';return _0x2df410&&(_0x4b6edb=_0x2df410['label'],_0x4ea443=_0x26ef0e(_0x4b6edb)['toLowerCase']()),{'type':'format','content':Tt(_0x256bd6,'*Set\x20font\x20color:*\x20%0',_0x4ea443)['trim'](),'color':{'value':_0xc89a78,'title':_0x4ea443||_0x4b6edb}};}return{'type':'format','content':Tt(_0x256bd6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x535068['commandName']){const _0x2a832a=_0x535068['commandParams'][0x0]['value'];if(_0x2a832a){const _0x2ba095=_0x588851(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b58a0=>_0x5b58a0['model']==_0x2a832a);let _0x3f2565=_0x2a832a,_0x134533='';return _0x2ba095&&(_0x3f2565=_0x2ba095['label'],_0x134533=_0x26ef0e(_0x3f2565)['toLowerCase']()),{'type':'format','content':Tt(_0x256bd6,'*Set\x20font\x20background\x20color:*\x20%0',_0x134533)['trim'](),'color':{'value':_0x2a832a,'title':_0x134533||_0x3f2565}};}return{'type':'format','content':Tt(_0x256bd6,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x3cecf3{['afterInit'](){const {plugins:_0x383e5d}=this['editor'];_0x383e5d['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x383e5d['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2569de,plugins:_0x2dd0b1,commands:_0x4e81e0}=this['editor'],_0x19439e=_0x2dd0b1['get']('TrackChangesEditing');_0x4e81e0['get']('footnotesStyle')&&_0x19439e['enableDefaultAttributesIntegration']('footnotesStyle'),_0x4e81e0['get']('footnotesStart')&&_0x19439e['enableDefaultAttributesIntegration']('footnotesStart'),_0x19439e['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x2569de,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x19439e['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x2569de,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x54b4d3=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5f37a1,commands:_0x5603ae}=this['editor'];_0x5603ae['get']('insertFootnote')&&_0x54b4d3['enableCommand']('insertFootnote'),_0x54b4d3['descriptionFactory']['registerElementLabel']('footnoteRef',_0x9899a3=>Tt(_0x5f37a1,'ELEMENT_FOOTNOTE_REF',_0x9899a3)),_0x54b4d3['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x367e9b=>Tt(_0x5f37a1,'ELEMENT_FOOTNOTE_DEFINITION',_0x367e9b)),_0x54b4d3['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x39ed71=>Tt(_0x5f37a1,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x39ed71));}}class TrackChangesFormatPainter extends _0x3cecf3{['afterInit'](){const _0x4b657f=this['editor'],_0x5c14f5=_0x4b657f['plugins']['get']('TrackChangesEditing'),_0x51e637=_0x4b657f['commands']['get']('copyFormat'),_0x149261=_0x4b657f['commands']['get']('pasteFormat');_0x51e637&&_0x149261&&(_0x5c14f5['enableDefaultAttributesIntegration']('pasteFormat'),_0x5c14f5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1e8e46=this['editor'],_0xffb293=_0x1e8e46['locale'];_0x1e8e46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a4272=>{if('formatBlock'!=_0x3a4272['type']&&'formatInline'!=_0x3a4272['type'])return;const {data:_0x1ce5dd}=_0x3a4272;if(_0x1ce5dd&&'pasteFormat'===_0x1ce5dd['commandName']){const _0x45ab14=[],_0x37d2a3=_0x1ce5dd['commandParams'][0x0];for(const [_0x386605,_0xa3f961]of Object['entries'](_0x37d2a3))_0x45ab14['push'](At(_0x1e8e46,_0x386605,_0xa3f961));return _0x45ab14['length']?{'type':'format','content':Tt(_0xffb293,'*Set\x20format\x20to:*\x20%0',_0x45ab14['join'](',\x20'))}:{'type':'format','content':Tt(_0xffb293,'*Remove\x20all\x20formatting*')};}});}}function At(_0x4526f7,_0xec3d29,_0x428256){const _0xbb6547=_0x4526f7['locale']['t'],_0x40e2b3=_0xec3d29['split'](/(?=[A-Z])/)['join']('\x20'),_0x17e6c6=_0xbb6547(_0x40e2b3['charAt'](0x0)['toUpperCase']()+_0x40e2b3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x428256)return _0x17e6c6;if('fontColor'===_0xec3d29||'fontBackgroundColor'===_0xec3d29){const _0x5b1914=_0x588851(_0x4526f7['config']['get']('fontColor.colors'))['find'](_0x14328a=>_0x14328a['model']==_0x428256);return _0x17e6c6+'\x20('+(_0x5b1914?_0xbb6547(_0x5b1914['label'])['toLowerCase']():_0x428256)+')';}if('fontSize'===_0xec3d29&&isNaN(parseFloat(_0x428256))){const _0x1e9bb0=_0x4526f7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4526f7['config']['get']('fontSize.options'))['find'](_0x71a52c=>_0x71a52c['model']==_0x428256);return _0x17e6c6+'\x20('+(_0x1e9bb0?_0xbb6547(_0x1e9bb0['title'])['toLowerCase']():_0x428256)+')';}return _0x17e6c6+'\x20('+_0x428256+')';}class TrackChangesHeading extends _0x3cecf3{['_headingOptions'];['afterInit'](){const _0x4f1566=this['editor'];if(!_0x4f1566['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4f1566['config']['get']('heading.options');const _0x459a71=_0x4f1566['locale'],_0x3e44d6=_0x4f1566['plugins']['get']('TrackChangesEditing');_0x3e44d6['enableDefaultAttributesIntegration']('heading');for(const _0x302617 of this['_headingOptions'])'paragraph'!=_0x302617['model']&&_0x3e44d6['descriptionFactory']['registerElementLabel'](_0x302617['model'],_0x3c893f=>{const _0x31ef1b=this['_getHeadingLevel'](_0x302617['model']);return null!==_0x31ef1b?_0x535cc1(_0x3c893f,_0x31ef1b):_0x3ecad5(_0x3c893f,_0x302617['title']);});function _0x535cc1(_0x34dbe8,_0x4cc0b2){return Tt(_0x459a71,'ELEMENT_HEADING',[_0x34dbe8,_0x4cc0b2]);}function _0x3ecad5(_0x4fb17c,_0x5eb695){return Tt(_0x459a71,'ELEMENT_HEADING_CUSTOM',[_0x4fb17c,_0x5eb695]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x793fa=this['editor'],_0x5d2190=_0x793fa['locale'];function _0x474544(_0x294463,_0x32ae65){return Tt(_0x5d2190,'ELEMENT_HEADING_CUSTOM',[_0x294463,_0x32ae65]);}_0x793fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ef3e6=>{if('formatBlock'!=_0x5ef3e6['type'])return;const {data:_0x2abbd9}=_0x5ef3e6;if(_0x2abbd9&&'heading'==_0x2abbd9['commandName']){const _0x334956=_0x2abbd9['commandParams'][0x0]['value'],_0x462c38=this['_getHeadingLevel'](_0x334956);if(null!==_0x462c38)return{'type':'format','content':Tt(_0x5d2190,'*Change\x20to:*\x20%0',(_0x18ffa6=0x1,_0x49207d=_0x462c38,Tt(_0x5d2190,'ELEMENT_HEADING',[_0x18ffa6,_0x49207d])))};const _0x33204d=this['_headingOptions']['find'](_0x26d754=>_0x26d754['model']===_0x334956)['title'];return{'type':'format','content':Tt(_0x5d2190,'*Change\x20to:*\x20%0',_0x474544(0x1,_0x33204d))};}var _0x18ffa6,_0x49207d;});}['_getHeadingLevel'](_0x2af399){const _0xf6cb7f=_0x2af399['match'](/^heading(\d+)/);if(_0xf6cb7f)return _0xf6cb7f[0x1];const _0x49b18c=this['_headingOptions']?.['find'](_0x59dfc4=>_0x59dfc4['model']==_0x2af399);if(_0x49b18c&&_0x49b18c['view']){const _0x3c299a=_0x49b18c['view'],_0x4f6569=(_0x3c299a['name']??_0x3c299a)['match'](/^h(\d+)/);if(_0x4f6569)return _0x4f6569[0x1];}return null;}}class TrackChangesHighlight extends _0x3cecf3{['afterInit'](){const _0x292267=this['editor'];if(!_0x292267['plugins']['has']('HighlightEditing'))return;const _0x407468=_0x292267['plugins']['get']('TrackChangesEditing'),_0x575330=_0x292267['locale'];_0x407468['enableDefaultAttributesIntegration']('highlight'),_0x407468['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x575330,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b1a2d=this['editor'],_0x171347=_0x3b1a2d['locale'];_0x3b1a2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5683d5=>{if('formatInline'!=_0x5683d5['type'])return;const {data:_0xb13428}=_0x5683d5;if(_0xb13428&&'highlight'==_0xb13428['commandName']){const _0x39b3b3=_0x171347['t'],_0x473fac=_0xb13428['commandParams'][0x0]['value'];if(_0x473fac){const _0x609a53=_0x3b1a2d['config']['get']('highlight.options')['find'](_0x3000e8=>_0x3000e8['model']==_0x473fac),_0x5bdfff=_0x39b3b3(_0x609a53['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x171347,'*Set\x20highlight:*\x20%0',_0x5bdfff),'color':{'value':_0x609a53['color'],'title':_0x609a53['title']}};}return{'type':'format','content':Tt(_0x171347,'*Remove\x20highlight*',Tt(_0x171347,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x3cecf3{['afterInit'](){const _0x49c5bd=this['editor'];if(!_0x49c5bd['plugins']['has']('HorizontalLineEditing'))return;_0x49c5bd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa08776=_0x49c5bd['plugins']['get']('TrackChangesEditing'),_0x4b1adf=_0x49c5bd['locale'];_0xa08776['descriptionFactory']['registerElementLabel']('horizontalLine',_0x17d9ef=>Tt(_0x4b1adf,'ELEMENT_HORIZONTAL_LINE',_0x17d9ef));}}class TrackChangesHtmlEmbed extends _0x3cecf3{['afterInit'](){const _0x2f3f24=this['editor'];if(!_0x2f3f24['plugins']['has']('HtmlEmbed'))return;const _0x4dcb3b=_0x2f3f24['plugins']['get']('TrackChangesEditing'),_0x2e7532=_0x2f3f24['locale'];_0x4dcb3b['descriptionFactory']['registerElementLabel']('rawHtml',_0x2eee77=>Tt(_0x2e7532,'ELEMENT_HTML_EMBED',_0x2eee77)),_0x4dcb3b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4dcb3b['descriptionFactory']['registerDescriptionCallback'](_0x46831f=>{if('attribute'!=_0x46831f['type'])return;const {data:_0x2322d7}=_0x46831f;if(_0x2322d7&&'value'==_0x2322d7['key']&&_0x46831f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4799d5=Tt(_0x2e7532,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x2e7532,'*Change\x20%0\x20content*',_0x4799d5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bbf22=this['editor'],_0x46fb15=_0x2bbf22['locale'];_0x2bbf22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e96f=>{if('formatBlock'!=_0x18e96f['type'])return;const {data:_0xa1fed9}=_0x18e96f;if(_0xa1fed9&&'htmlEmbed'==_0xa1fed9['commandName']){const _0x465189=Tt(_0x46fb15,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x46fb15,'*Change\x20%0\x20content*',_0x465189)};}});}}class TrackChangesImage extends _0x3cecf3{['afterInit'](){const _0xf51803=this['editor'];if(!_0xf51803['plugins']['has']('ImageEditing'))return;const _0x4b92f0=_0xf51803['plugins']['get']('TrackChangesEditing'),_0x1f1711=_0xf51803['plugins']['get']('ImageUtils'),_0x4b4e79=_0xf51803['locale'];_0x4b92f0['enableCommand']('insertImage'),_0x4b92f0['descriptionFactory']['registerElementLabel']('imageBlock',_0x462937=>Tt(_0x4b4e79,'ELEMENT_IMAGE',_0x462937)),_0x4b92f0['descriptionFactory']['registerElementLabel']('imageInline',_0x4c42fc=>Tt(_0x4b4e79,'ELEMENT_INLINE_IMAGE',_0x4c42fc)),_0x4b92f0['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x4b4e79,'ELEMENT_CAPTION')),_0xf51803['plugins']['has']('ImageUploadEditing')&&_0x4b92f0['enableCommand']('uploadImage'),_0xf51803['plugins']['has']('ImageBlockEditing')&&_0xf51803['plugins']['has']('ImageInlineEditing')&&(_0x4b92f0['enableCommand']('imageTypeInline',(_0x50da99,_0x119eb6)=>{const _0x55350e=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']);_0xf51803['model']['change'](()=>{_0x4b92f0['markBlockFormat'](_0x55350e,{'commandName':'imageTypeInline','commandParams':[_0x119eb6]},[],'convertBlockImageToInline');});}),_0x4b92f0['enableCommand']('imageTypeBlock',(_0x2de2b3,_0x4a6bc1)=>{_0xf51803['model']['change'](_0x259b84=>{let _0x526846=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']),_0x1a60af=_0x259b84['createRangeOn'](_0x526846);const _0xf1ea8=tt['fromPosition'](_0x1a60af['start'],'toPrevious'),_0xe3acb7=tt['fromPosition'](_0x1a60af['end'],'toNext');_0x4b92f0['forceDefaultExecution'](()=>_0x2de2b3(_0x4a6bc1)),_0x526846=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']),_0x1a60af=_0x259b84['createRangeOn'](_0x526846);const _0x175bc8=_0x259b84['createRange'](_0xf1ea8,_0xe3acb7);_0xf1ea8['detach'](),_0xe3acb7['detach'](),_0x4b92f0['markBlockFormat'](_0x526846,{'commandName':'imageTypeInline','commandParams':[_0x4a6bc1]},[],'convertInlineImageToBlock'),_0x175bc8['start']['isBefore'](_0x1a60af['start'])&&_0x4b92f0['markInsertion'](_0x259b84['createRange'](_0x175bc8['start'],_0x1a60af['start']),'convertInlineImageToBlock'),_0x1a60af['end']['isBefore'](_0x175bc8['end'])&&_0x4b92f0['markInsertion'](_0x259b84['createRange'](_0x1a60af['end'],_0x175bc8['end']),'convertInlineImageToBlock');});}),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4b92f0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2fd457])=>{const _0x49fcee=_0x4b92f0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x10bf3b=_0x2fd457['start'],_0x1868bd=_0x2fd457['end'];const _0xd099be=_0xf51803['model']['schema']['getNearestSelectionRange'](_0x10bf3b,'backward'),_0x123457=_0xf51803['model']['schema']['getNearestSelectionRange'](_0x1868bd,'forward');_0xd099be['isCollapsed']&&(_0x10bf3b=_0xd099be['start']),_0x123457['isCollapsed']&&(_0x1868bd=_0x123457['end']),_0x49fcee([_0xf51803['model']['createRange'](_0x10bf3b,_0x1868bd)]);}),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ebafc),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ebafc)),_0xf51803['plugins']['has']('ImageCaptionEditing')&&(_0x4b92f0['enableCommand']('toggleImageCaption',(_0x4e3d66,_0x12b51c)=>{const _0x5964e2=_0xf51803['plugins']['get']('ImageCaptionUtils');let _0x1b0cff=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']),_0x527073=_0x5964e2['getCaptionFromImageModelElement'](_0x1b0cff);_0xf51803['model']['change'](()=>{if(_0x527073)return void _0x4b92f0['markDeletion'](_0xf51803['model']['createRangeOn'](_0x527073));const _0x55d57e=_0x1f1711['isBlockImage'](_0x1b0cff);_0x4e3d66(_0x12b51c),_0x1b0cff=_0x1f1711['getClosestSelectedImageElement'](_0xf51803['model']['document']['selection']),_0x527073=_0x5964e2['getCaptionFromImageModelElement'](_0x1b0cff),_0x4b92f0['markInsertion'](_0xf51803['model']['createRangeOn'](_0x527073),_0x55d57e?null:'imageCaption');});}),_0x4b92f0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ebafc));const _0x5b7ca2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4dd24f(_0x13db4a,_0x6e0360){const _0x36bb1e=_0x5b7ca2['findIndex'](({type:_0x6ee1c5,subType:_0x1dd62a})=>_0x13db4a['type']==_0x6ee1c5&&_0x13db4a['subType']==_0x1dd62a),_0x302898=_0x5b7ca2['findIndex'](({type:_0x37d7bc,subType:_0x19cd9c})=>_0x6e0360['type']==_0x37d7bc&&_0x6e0360['subType']==_0x19cd9c);if(_0x36bb1e<0x0||_0x302898<0x0)return!0x1;const _0x1c6be3=_0x13db4a['getFirstRange'](),_0xb15b8f=_0x6e0360['getFirstRange']();if((0x0==_0x36bb1e||0x1==_0x36bb1e)&&0x2==_0x302898&&_0x1c6be3['isIntersecting'](_0xb15b8f))return!0x0;if(0x2==_0x36bb1e&&0x3==_0x302898){const _0xbe215c=_0x4b92f0['_findSuggestions'](_0x1c6be3,'insertion')['filter'](({suggestion:_0x1ed90c,meta:_0x49305f})=>_0x49305f['isOwn']&&'convertInlineImageToBlock'==_0x1ed90c['subType']);if(_0xbe215c['length']>0x1&&_0xb15b8f['end']['isEqual'](_0x1c6be3['start']))return!0x0;if(0x1==_0xbe215c['length']&&(_0x1c6be3['start']['isEqual'](_0xb15b8f['end'])||_0x1c6be3['end']['isEqual'](_0xb15b8f['start'])))return!0x0;}if(0x3==_0x36bb1e&&0x3==_0x302898&&_0x1c6be3['start']['isBefore'](_0xb15b8f['start'])){const _0x5bc39d=_0x1c6be3['end']['nodeAfter'],_0x460b4f=_0xb15b8f['start']['nodeBefore'];return _0x1f1711['isBlockImage'](_0x5bc39d)&&_0x5bc39d===_0x460b4f;}return!0x1;}function _0x5ebafc(_0x7cef65,_0x46e3b0){return _0x4dd24f(_0x7cef65,_0x46e3b0)?[_0x7cef65,_0x46e3b0]:_0x4dd24f(_0x46e3b0,_0x7cef65)?[_0x46e3b0,_0x7cef65]:null;}_0xf51803['plugins']['has']('ImageResize')&&(_0x4b92f0['enableDefaultAttributesIntegration']('resizeImage'),_0x4b92f0['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x4b4e79,'FORMAT_IMAGE_SIZE'))),_0xf51803['plugins']['has']('ImageTextAlternativeEditing')&&_0x4b92f0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xf51803['plugins']['has']('PictureEditing')&&_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x59c7ab=>{if('attribute'!=_0x59c7ab['type'])return;const {data:_0x40b05b}=_0x59c7ab;return _0x40b05b&&'sources'==_0x40b05b['key']?{'type':'format','content':''}:void 0x0;}),_0xf51803['plugins']['has']('ImageSizeAttributes')&&_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x4802ce=>{if('attribute'!=_0x4802ce['type'])return;const {data:_0x171360}=_0x4802ce;return!_0x171360||'width'!=_0x171360['key']&&'height'!=_0x171360['key']?void 0x0:{'type':'format','content':''};}),_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x290de0=>{if(!!_0x5b7ca2['find'](({type:_0x113c84,subType:_0x1dfeed})=>_0x290de0['type']==_0x113c84&&_0x290de0['subType']==_0x1dfeed))return _0x290de0['previous']?{}:void 0x0;}),_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x444469=>{if('insertion'==_0x444469['type']||'deletion'==_0x444469['type']){const _0x228bbf=_0x444469['getContainedElement']();if(_0x228bbf&&_0x228bbf['is']('element','caption'))return{'type':'insertion'==_0x444469['type']?'addObject':'removeObject','element':_0x228bbf,'quantity':0x1};}}),_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x4c2f50=>'formatBlock'==_0x4c2f50['type']&&'convertInlineImageToBlock'==_0x4c2f50['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4c2f50['type']&&'convertBlockImageToInline'==_0x4c2f50['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4b92f0['descriptionFactory']['registerDescriptionCallback'](_0x20e5d7=>{if('attribute'!=_0x20e5d7['type'])return;const {data:_0x25261b}=_0x20e5d7;if(!_0x25261b||'alt'!=_0x25261b['key'])return;const _0x425086=_0x25261b['newValue'];return _0x425086?{'type':'format','content':Tt(_0x4b4e79,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x425086+'\x22')}:{'type':'format','content':Tt(_0x4b4e79,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2235ba=this['editor'],_0x21405d=_0x2235ba['locale'];_0x2235ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cbf4d=>{if('formatBlock'!=_0x4cbf4d['type']&&'formatInline'!=_0x4cbf4d['type'])return;const {data:_0x4f3cd2}=_0x4cbf4d;if(_0x4f3cd2){if('imageTextAlternative'==_0x4f3cd2['commandName']){const _0x2ba3b4=_0x4f3cd2['commandParams'][0x0]['newValue'];return _0x2ba3b4?{'type':'format','content':Tt(_0x21405d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ba3b4+'\x22')}:{'type':'format','content':Tt(_0x21405d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4f3cd2['commandName']){const _0x1afb06=_0x4f3cd2['commandParams'][0x0]['width'];return _0x1afb06?{'type':'format','content':Tt(_0x21405d,'*Set\x20image\x20width:*\x20%0',_0x1afb06)}:{'type':'format','content':Tt(_0x21405d,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa5d2b2=this['editor']['locale'],_0x2956fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2956fb['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2956fb['descriptionFactory']['registerDescriptionCallback'](_0x5a4071=>{if('attribute'!=_0x5a4071['type'])return;const {data:_0x3826eb}=_0x5a4071;return _0x3826eb&&'src'==_0x3826eb['key']?_0x3826eb['newValue']&&_0x3826eb['oldValue']?{'type':'format','content':Tt(_0xa5d2b2,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4628fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4628fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4628fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4628fd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4628fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd327e5=this['editor'],_0x5ed0f4=_0xd327e5['locale'];_0xd327e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c4002=>{if('formatBlock'!=_0x3c4002['type']&&'formatInline'!=_0x3c4002['type'])return;const {data:_0x4e0d99}=_0x3c4002;if(!_0x4e0d99||'replaceImageSource'!=_0x4e0d99['commandName'])return;return{'type':'format','content':Tt(_0x5ed0f4,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x3cecf3{['afterInit'](){const _0x4ac3d9=this['editor'];if(!_0x4ac3d9['plugins']['has']('ImageStyleEditing'))return;const _0x79e6af=_0x4ac3d9['plugins']['get']('TrackChangesEditing'),_0x5df7d6=_0x4ac3d9['plugins']['get']('ImageUtils'),_0x3cb757={};_0x79e6af['enableCommand']('imageStyle',(_0x542411,_0x176d38)=>{const _0x337ffa=_0x4ac3d9['plugins']['get']('Users')['me'],_0x2d71f1=_0x4ac3d9['commands']['get']('imageStyle');let _0x31cbfe=_0x5df7d6['getClosestSelectedImageElement'](_0x4ac3d9['model']['document']['selection']),_0x40362b=_0x4ac3d9['model']['createRangeOn'](_0x31cbfe),_0x19732f=_0x2d71f1['value'];if(_0x19732f==_0x176d38['value'])return;const _0x526c47={'commandName':'imageStyle','commandParams':[_0x176d38],'formatGroupId':_0x15c67d()};_0x4ac3d9['model']['change'](()=>{if(_0x79e6af['getSuggestions']()['filter'](_0x1ee28e=>_0x1ee28e['isInContent']&&_0x337ffa==_0x1ee28e['author']&&('formatBlock'==_0x1ee28e['type']||'formatInline'==_0x1ee28e['type'])&&('imageStylePreApply'==_0x1ee28e['subType']||'imageStylePostApply'==_0x1ee28e['subType'])&&_0x1ee28e['getFirstRange']()['isEqual'](_0x40362b))['forEach'](_0x157d17=>_0x79e6af['discardSuggestion'](_0x157d17['head'])),_0x31cbfe=_0x5df7d6['getClosestSelectedImageElement'](_0x4ac3d9['model']['document']['selection']),_0x40362b=_0x4ac3d9['model']['createRangeOn'](_0x31cbfe),_0x2d71f1['refresh'](),_0x4ac3d9['commands']['get']('imageTypeInline')['refresh'](),_0x4ac3d9['commands']['get']('imageTypeBlock')['refresh'](),_0x19732f=_0x2d71f1['value'],_0x19732f!=_0x176d38['value'])return _0x5df7d6['isInlineImage'](_0x31cbfe)&&_0x2d71f1['shouldConvertImageType'](_0x176d38['value'],_0x31cbfe)?(_0x542411({..._0x176d38,'setImageSizes':!0x1}),_0x31cbfe=_0x5df7d6['getClosestSelectedImageElement'](_0x4ac3d9['model']['document']['selection']),void _0x79e6af['markBlockFormat'](_0x31cbfe,{..._0x526c47,'commandReversedParams':[{'value':_0x19732f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5df7d6['isBlockImage'](_0x31cbfe)?_0x79e6af['markBlockFormat'](_0x31cbfe,_0x526c47,[],'imageStylePostApply'):_0x79e6af['markInlineFormat'](_0x40362b,_0x526c47,'imageStylePostApply'));});});for(const _0xc7525e of _0x4ac3d9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3cb757[_0xc7525e['name']]=_0xc7525e['title']['toLowerCase']();_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x44de8e])=>{_0x5df7d6['setImageNaturalSizeAttributes'](_0x44de8e['getContainedElement']());}),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x13341d,_0x4749c1)=>{_0x79e6af['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x13341d,{'commandName':_0x4749c1['commandName'],'commandParams':_0x4749c1['commandReversedParams']});}),_0x79e6af['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xd4e278,_0x509b9b){if(_0xfa1c2a(_0xd4e278,_0x509b9b))return[_0xd4e278,_0x509b9b];if(_0xfa1c2a(_0x509b9b,_0xd4e278))return[_0x509b9b,_0xd4e278];return null;});const _0x7a441e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xfa1c2a(_0x2ff908,_0x19138a){const _0x1cc4ba=_0x7a441e['findIndex'](({type:_0x23e17d,subType:_0x4d0cfe})=>_0x2ff908['type']==_0x23e17d&&_0x2ff908['subType']==_0x4d0cfe),_0x4479be=_0x7a441e['findIndex'](({type:_0x107076,subType:_0x178e48})=>_0x19138a['type']==_0x107076&&_0x19138a['subType']==_0x178e48);if(_0x1cc4ba<0x0||_0x4479be<0x0)return!0x1;const _0x152e36=_0x2ff908['getFirstRange'](),_0x32a764=_0x19138a['getFirstRange']();if((0x0==_0x1cc4ba||0x1==_0x1cc4ba)&&0x2==_0x4479be&&_0x152e36['isIntersecting'](_0x32a764))return!0x0;if(0x2==_0x1cc4ba&&0x3==_0x4479be){const _0x3ddc4d=_0x79e6af['_findSuggestions'](_0x152e36,'insertion')['filter'](({suggestion:_0x1a8253,meta:_0x4c6b86})=>_0x4c6b86['isOwn']&&'convertInlineImageToBlock'==_0x1a8253['subType']);if(_0x3ddc4d['length']>0x1&&_0x32a764['end']['isEqual'](_0x152e36['start']))return!0x0;if(0x1==_0x3ddc4d['length']&&(_0x152e36['start']['isEqual'](_0x32a764['end'])||_0x152e36['end']['isEqual'](_0x32a764['start'])))return!0x0;}if(0x3==_0x1cc4ba&&0x3==_0x4479be&&_0x152e36['start']['isBefore'](_0x32a764['start'])){const _0x1e48fd=_0x152e36['end']['nodeAfter'],_0x597045=_0x32a764['start']['nodeBefore'];return _0x5df7d6['isBlockImage'](_0x1e48fd)&&_0x1e48fd===_0x597045;}return!0x1;}_0x4ac3d9['model']['document']['registerPostFixer'](()=>{let _0x1c0c1a=!0x1;const _0x4dc032=Array['from'](_0x4ac3d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x57db08,data:_0x38109d}of _0x4dc032){const {group:_0x4ae37b,type:_0x4f7a4d,subType:_0x577e5c,id:_0x39d5d3}=_0x309b71(_0x57db08);if('suggestion'==_0x4ae37b&&_0x79e6af['hasSuggestion'](_0x39d5d3)){if('formatBlock'==_0x4f7a4d&&('imageStylePreApply'==_0x577e5c||'imageStylePostApply'==_0x577e5c)){const _0x3661ee=_0x79e6af['getSuggestion'](_0x39d5d3);if(_0x38109d['newRange']){const _0x196631=_0x3661ee['getFirstRange']()['getContainedElement']();if(_0x5df7d6['isBlockImage'](_0x196631))continue;_0x79e6af['discardSuggestion'](_0x3661ee),_0x1c0c1a=!0x0;}}if('insertion'==_0x4f7a4d&&'imageCaption'==_0x577e5c&&!_0x38109d['newRange']){const _0x49f614=_0x79e6af['getSuggestion'](_0x39d5d3);_0x49f614['next']&&_0x49f614['next']['isInContent']&&(_0x79e6af['discardSuggestion'](_0x49f614['next']),_0x1c0c1a=!0x0);}}}return _0x1c0c1a;}),this['_registerLegacyDescription'](_0x3cb757);}['_registerLegacyDescription'](_0x437f46){const _0x4a7cee=this['editor'],_0x59aa28=_0x4a7cee['locale'];_0x4a7cee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e506b=>{if('formatBlock'!=_0x2e506b['type']&&'formatInline'!=_0x2e506b['type'])return;const {data:_0x1986a9}=_0x2e506b;if(!_0x1986a9||'imageStyle'!=_0x1986a9['commandName'])return;const _0x22b7a5=_0x1986a9['commandParams'][0x0]['value'];return _0x198f69('side'===_0x22b7a5?Tt(_0x59aa28,'FORMAT_SIDE_IMAGE'):_0x437f46[_0x22b7a5]||_0x22b7a5);function _0x198f69(_0x27e5ff){return{'type':'format','content':Tt(_0x59aa28,'*Format:*\x20%0',_0x27e5ff)};}});}}class TrackChangesImportWord extends _0x3cecf3{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4978a5){super(_0x4978a5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x58ea0d=this['editor'],_0x1239ba=_0x58ea0d['commands']['get']('importWord'),_0x4c6c9f=_0x58ea0d['commands']['get']('trackChanges');_0x1239ba&&(_0x1239ba['on']('execute',(_0x4761c7,[,_0x541f75])=>{this['_trackChangesValueDuringImport']=_0x4c6c9f['value'],_0x541f75['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1239ba,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1239ba,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4c6c9f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x58ea0d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xb2368e,_0xb7c448){const {suggestions:_0x3e8366}=_0xb7c448,_0x16df02=this['editor']['commands']['get']('trackChanges'),_0x25eeb0=_0x16df02['value'];this['_trackChangesValueDuringImport']!==_0x25eeb0&&(_0x16df02['execute'](),this['_trackChangesExecuted']=!0x0),_0x3e8366&&_0x3e8366['forEach'](({id:_0x94e414,type:_0x2934cf,author:_0x3ae1a4,created_at:_0x4e986b})=>{const _0x1c84cb={'id':_0x94e414,'type':_0x2934cf,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3ae1a4,'createdAt':_0x4e986b?new Date(_0x4e986b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c84cb);});}}class TrackChangesIndent extends _0x3cecf3{['afterInit'](){const _0x4cd2c5=this['editor'],_0x3dcd27=_0x4cd2c5['plugins']['get']('TrackChangesEditing');if(_0x4cd2c5['plugins']['has']('IndentEditing')&&(_0x3dcd27['enableCommand']('indent'),_0x3dcd27['enableCommand']('outdent')),_0x4cd2c5['plugins']['has']('IndentBlock')){for(const _0x514c73 of['indentBlock','outdentBlock'])_0x3dcd27['enableDefaultAttributesIntegration'](_0x514c73);if(_0x4cd2c5['plugins']['has']('ListEditing')){for(const _0x1b1c5f of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3dcd27['enableDefaultAttributesIntegration'](_0x1b1c5f);}}const _0x598271=_0x4cd2c5['locale'];_0x3dcd27['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x598271,'FORMAT_INDENT')),_0x3dcd27['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x598271,'FORMAT_INDENT')),_0x3dcd27['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x598271,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50a5f9=this['editor'],_0x5610d9=_0x50a5f9['locale'],_0x5a327b=_0x50a5f9['plugins']['get']('TrackChangesEditing');_0x5a327b['descriptionFactory']['registerDescriptionCallback'](_0x38e08d=>{if('formatBlock'!=_0x38e08d['type'])return;const {data:_0x2cdf86}=_0x38e08d;if(!_0x2cdf86)return;if('indentBlock'!=_0x2cdf86['commandName']&&'outdentBlock'!=_0x2cdf86['commandName'])return;const _0x3801e6=_0x38e08d['getItems']()[0x0],_0x48c330=_0x5a327b['descriptionFactory']['getItemLabel'](_0x3801e6);return'indentBlock'==_0x2cdf86['commandName']?{'type':'format','content':Tt(_0x5610d9,'*Indent:*\x20%0',_0x48c330)}:'outdentBlock'==_0x2cdf86['commandName']?{'type':'format','content':Tt(_0x5610d9,'*Outdent:*\x20%0',_0x48c330)}:void 0x0;});}}class TrackChangesInputCommand extends _0x3cecf3{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x3cecf3{['afterInit'](){const _0x29e5ad=this['editor'];if(!_0x29e5ad['plugins']['has']('LinkEditing'))return;const _0x2242b7=_0x29e5ad['plugins']['get']('TrackChangesEditing'),_0x1ea3f0=_0x29e5ad['commands']['get']('link');_0x2242b7['enableDefaultAttributesIntegration']('link'),_0x2242b7['enableDefaultAttributesIntegration']('unlink');for(const _0x40e052 of _0x1ea3f0['manualDecorators'])_0x2242b7['descriptionFactory']['registerAttributeLabel'](_0x40e052['id'],'link\x20('+_0x40e052['label']['toLowerCase']()+')');_0x2242b7['descriptionFactory']['registerDescriptionCallback'](_0x8998b5=>{if('attribute'!=_0x8998b5['type'])return;const {data:_0x140a4b}=_0x8998b5;if(!_0x140a4b||'linkHref'!=_0x140a4b['key'])return;const _0x2f00fe=_0x140a4b['newValue'],_0x5e3429=_0x29e5ad['locale'];return{'type':'format','content':null==_0x2f00fe?Tt(_0x5e3429,'*Remove\x20link*'):Tt(_0x5e3429,'*Set\x20link:*\x20%0','\x22'+_0x2f00fe+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59b9ab=this['editor'],_0x36c3a9=_0x59b9ab['locale'];_0x59b9ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24c314=>{if('formatInline'!=_0x24c314['type'])return;const {data:_0x3dfa50}=_0x24c314;if(_0x3dfa50){if('link'==_0x3dfa50['commandName']){const _0x4f2b85=_0x3dfa50['commandParams'][0x0];return{'type':'format','content':Tt(_0x36c3a9,'*Set\x20link:*\x20%0','\x22'+_0x4f2b85+'\x22')};}return'unlink'==_0x3dfa50['commandName']?{'type':'format','content':Tt(_0x36c3a9,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x3cecf3{['afterInit'](){const _0x372d74=this['editor'],_0xcf6d5d=_0x372d74['locale'];if(!_0x372d74['plugins']['has']('LegacyListEditing'))return;const _0x8a1ad4=_0x372d74['plugins']['get']('TrackChangesEditing'),_0x3b1e48=_0x372d74['plugins']['has']('LegacyTodoListEditing');function _0xdbde88(_0x2a738e){return()=>{const _0x48beec=_0x372d74['model']['document']['selection'],_0x3d375f=_0x372d74['commands']['get'](_0x2a738e);if(_0x3d375f['value'])return void _0x372d74['execute']('paragraph',{});const _0x2173a3=_0x2a738e['slice'](0x0,-0x4),_0x29aec9=function(_0x4bf495,_0x4c129a,_0x161d0d){let _0x263851=Array['from'](_0x4bf495)['filter'](_0x327d6c=>function(_0x2ed62e,_0x21648b){return _0x21648b['checkChild'](_0x2ed62e['parent'],'listItem')&&!_0x21648b['isObject'](_0x2ed62e);}(_0x327d6c,_0x161d0d));_0x263851=_0x263851['filter'](_0x580e02=>!_0x580e02['is']('element','listItem')||_0x580e02['getAttribute']('listType')!=_0x4c129a);const _0x5358f0=new Set();for(const _0x50cd65 of _0x263851)_0x50cd65['is']('element','listItem')?_0x5358f0['add'](St(_0x50cd65)):_0x5358f0['add'](_0x50cd65);return Array['from'](_0x5358f0);}(_0x48beec['getSelectedBlocks'](),_0x2173a3,_0x372d74['model']['schema']);_0x372d74['model']['change'](()=>{for(const _0x18483c of _0x29aec9)_0x8a1ad4['markBlockFormat'](_0x18483c,{'commandName':_0x2a738e,'commandParams':[{'forceValue':!_0x3d375f['value']}],'formatGroupId':'blockName'},yt(_0x18483c));});};}function _0x1ae7c8(_0x27c317){return()=>{const _0x507b33=function(_0x44428c){let _0x15c9bd=Array['from'](_0x44428c);const _0x39929f=_0x15c9bd['findIndex'](_0x8c7c86=>'listItem'!=_0x8c7c86['name']);return _0x39929f>-0x1&&(_0x15c9bd=_0x15c9bd['slice'](0x0,_0x39929f)),_0x15c9bd;}(_0x372d74['model']['document']['selection']['getSelectedBlocks']()),_0x1a3771=_0x372d74['model']['createRange'](_0x372d74['model']['createPositionAt'](_0x507b33[0x0],'before'),_0x372d74['model']['createPositionAt'](_0x507b33[_0x507b33['length']-0x1],'end'));_0x372d74['model']['change'](()=>{_0x8a1ad4['markBlockFormat'](_0x1a3771,{'commandName':_0x27c317,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28b423){const _0x5b5c7d=new Set();for(const _0xc15194 of _0x28b423){let _0x172a55=_0xc15194['nextSibling'];for(;_0x172a55&&_0x172a55['getAttribute']('listIndent')>_0xc15194['getAttribute']('listIndent');)_0x5b5c7d['add'](_0x172a55),_0x172a55=_0x172a55['nextSibling'];}return Array['from'](_0x5b5c7d);}(_0x507b33));});};}_0x8a1ad4['enableCommand']('numberedList',_0xdbde88('numberedList')),_0x8a1ad4['enableCommand']('bulletedList',_0xdbde88('bulletedList')),_0x3b1e48&&_0x8a1ad4['enableCommand']('todoList',_0xdbde88('todoList')),_0x8a1ad4['enableCommand']('indentList',_0x1ae7c8('indentList')),_0x8a1ad4['enableCommand']('outdentList',_0x1ae7c8('outdentList')),_0x3b1e48&&_0x8a1ad4['enableCommand']('checkTodoList',()=>{const _0x2b64fb=_0x372d74['commands']['get']('checkTodoList'),_0x395b24=Array['from'](_0x2b64fb['_selectedElements']);_0x395b24['filter'](_0x20e7a9=>_0x20e7a9['getAttribute']('todoListChecked')!=_0x2b64fb['value']),_0x372d74['model']['change'](()=>{for(const _0x49d43f of _0x395b24)_0x8a1ad4['markBlockFormat'](_0x49d43f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b64fb['value']}]});});}),_0x8a1ad4['descriptionFactory']['registerElementLabel']('listItem',_0x249e1d=>Tt(_0xcf6d5d,'ELEMENT_LIST_ITEM',_0x249e1d)),_0x8a1ad4['descriptionFactory']['registerDescriptionCallback'](_0x2db4dd=>{if('formatBlock'!=_0x2db4dd['type']&&'formatInline'!=_0x2db4dd['type'])return;const {data:_0x8f0480}=_0x2db4dd;if(_0x8f0480){if('numberedList'==_0x8f0480['commandName']||'bulletedList'==_0x8f0480['commandName']||'todoList'==_0x8f0480['commandName'])switch(_0x8f0480['commandName']['replace']('List','')){case'bulleted':return _0x5b7c3d(Tt(_0xcf6d5d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b7c3d(Tt(_0xcf6d5d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b7c3d(Tt(_0xcf6d5d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x8f0480['commandName'])return{'type':'format','content':Tt(_0xcf6d5d,'*Indent:*\x20%0',Tt(_0xcf6d5d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x8f0480['commandName'])return{'type':'format','content':Tt(_0xcf6d5d,'*Outdent:*\x20%0',Tt(_0xcf6d5d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x8f0480['commandName'])return _0x8f0480['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xcf6d5d,'*Check\x20item*')}:{'type':'format','content':Tt(_0xcf6d5d,'*Uncheck\x20item*')};}function _0x5b7c3d(_0xc0525f){return{'type':'format','content':Tt(_0xcf6d5d,'*Change\x20to:*\x20%0',_0xc0525f)};}});}}function St(_0x590e40){const _0x3bf48b=_0x590e40['getAttribute']('listIndent');if(0x0==_0x3bf48b)return _0x590e40;let _0x1cd31e=_0x590e40;for(;_0x590e40['previousSibling']&&_0x590e40['previousSibling']['is']('element','listItem');){const _0x11a35c=_0x590e40['previousSibling']['getAttribute']('listIndent');if(_0x11a35c==_0x3bf48b)_0x1cd31e=_0x590e40['previousSibling'];else{if(_0x11a35c<_0x3bf48b)break;}_0x590e40=_0x590e40['previousSibling'];}return _0x1cd31e;}function yt(_0x43728e){const _0x5b1f48=[];if(_0x43728e['is']('element','listItem')&&_0x43728e['getAttribute']('listIndent')>0x0){let _0x156a52=_0x43728e['nextSibling'];for(;_0x156a52&&'listItem'==_0x156a52['name']&&_0x156a52['getAttribute']('listIndent')==_0x43728e['getAttribute']('listIndent');)_0x5b1f48['push'](_0x156a52),_0x156a52=_0x156a52['nextSibling'];}return _0x5b1f48;}class TrackChangesLegacyListProperties extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x15e110=this['editor']['config']['get']('list.properties'),_0x336a15=this['editor']['plugins']['get']('TrackChangesEditing');_0x15e110['styles']&&_0x336a15['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x15e110['reversed']&&_0x336a15['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x15e110['startIndex']&&_0x336a15['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x336a15['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1355d4,_0x2eb1f3={}){const _0x14e84e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f6637=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x14e84e['markMultiRangeBlockFormat'](_0x2f6637,{'commandName':'listStyle','commandParams':[{'type':_0x2eb1f3['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x8bd3c0,_0x31ce4c={}){const _0x4616b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x97fea8=this['_getSuggestionBlocks'](_0x13b5d8=>_0x13b5d8['is']('element','listItem')&&'numbered'===_0x13b5d8['getAttribute']('listType'));if(_0x97fea8['length']<0x1)return;const _0xc64af6=_0x97fea8['map'](_0x543494=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x543494,'before'),this['editor']['model']['createPositionAt'](_0x543494,0x0)));this['editor']['model']['change'](()=>{_0x4616b1['markMultiRangeBlockFormat'](_0xc64af6,{'commandName':'listReversed','commandParams':[{'reversed':_0x31ce4c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1493e7,_0x4070fa={}){const _0x19c8a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f944a=this['_getSuggestionBlocks'](_0x1939a1=>_0x1939a1['is']('element','listItem')&&'numbered'===_0x1939a1['getAttribute']('listType'));if(_0x3f944a['length']<0x1)return;const _0x4c1e34=_0x3f944a['map'](_0x17c35b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17c35b,'before'),this['editor']['model']['createPositionAt'](_0x17c35b,0x0)));this['editor']['model']['change'](()=>{_0x19c8a0['markMultiRangeBlockFormat'](_0x4c1e34,{'commandName':'listStart','commandParams':[{'startIndex':_0x4070fa['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x179d22){if('formatBlock'!=_0x179d22['type']&&'formatInline'!=_0x179d22['type'])return;const _0x456469=this['editor']['locale'],{data:_0x1b9183}=_0x179d22;if(!_0x1b9183)return;let _0x5c3776,_0x204a93;switch(_0x1b9183['commandName']){case'listStyle':_0x5c3776='*Change\x20to:*\x20%0',_0x204a93={'type':'format','content':Tt(_0x456469,_0x5c3776,Tt(_0x456469,this['_getTranslationKeyForListStyle'](_0x1b9183['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c3776=_0x1b9183['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x204a93={'type':'format','content':Tt(_0x456469,_0x5c3776)};break;case'listStart':_0x5c3776='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x204a93={'type':'format','content':Tt(_0x456469,_0x5c3776,_0x1b9183['commandParams'][0x0]['startIndex'])};}return _0x204a93;}['_getSuggestionBlocksForListStyle'](){const _0x59d746=this['editor']['plugins']['get']('LegacyListUtils');let _0x204af0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x204af0[0x0]?.['is']('element','listItem')&&_0x204af0['unshift'](..._0x59d746['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x204af0[_0x204af0['length']-0x1]?.['is']('element','listItem')&&_0x204af0['push'](..._0x59d746['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x204af0=[...new Set(_0x204af0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x204af0=_0x204af0['filter'](_0x25ebfe=>_0x25ebfe['is']('element','listItem'))),_0x204af0;}['_getSuggestionBlocks'](_0x476cb3){const _0x4a9a9e=this['editor']['plugins']['get']('LegacyListUtils');let _0x3888ee=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x476cb3)['map'](_0x3736c3=>{const _0x185354=this['editor']['model']['createPositionAt'](_0x3736c3,0x0);return[..._0x4a9a9e['getSiblingNodes'](_0x185354,'backward'),..._0x4a9a9e['getSiblingNodes'](_0x185354,'forward')];})['flat']();return _0x3888ee=[...new Set(_0x3888ee)],_0x3888ee;}['_getTranslationKeyForListStyle'](_0x3370da){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3370da)||'default')['toUpperCase']()+'_LIST_'+_0x3370da['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x3cecf3{['afterInit'](){const _0x2c1e38=this['editor'];if(!_0x2c1e38['plugins']['has']('MediaEmbedEditing'))return;const _0x3d1411=_0x2c1e38['plugins']['get']('TrackChangesEditing'),_0x23a5a2=_0x2c1e38['locale'];_0x3d1411['enableCommand']('mediaEmbed'),_0x3d1411['descriptionFactory']['registerElementLabel']('media',_0x3d32fa=>Tt(_0x23a5a2,'ELEMENT_MEDIA',_0x3d32fa));}}class TrackChangesMention extends _0x3cecf3{['afterInit'](){const _0x5e541e=this['editor'];_0x5e541e['plugins']['has']('MentionEditing')&&_0x5e541e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x3cecf3{['afterInit'](){const _0x14048b=this['editor'];if(!_0x14048b['plugins']['has']('MergeFieldsEditing'))return;const _0x5ece8a=_0x14048b['plugins']['get']('TrackChangesEditing'),_0xdc1695=_0x14048b['locale'];_0x5ece8a['enableCommand']('insertMergeField'),_0x5ece8a['enableCommand']('insertMergeFieldBlock'),_0x5ece8a['enableCommand']('insertMergeFieldImage'),_0x5ece8a['descriptionFactory']['registerElementLabel']('mergeField',_0x37457d=>Tt(_0xdc1695,'ELEMENT_MERGE_FIELD',_0x37457d)),_0x5ece8a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2d3772=>Tt(_0xdc1695,'ELEMENT_MERGE_FIELD',_0x2d3772)),_0x5ece8a['descriptionFactory']['registerDescriptionCallback'](_0x1e076f=>{if('insertion'!=_0x1e076f['type']&&'deletion'!=_0x1e076f['type'])return;const _0x55ebee=_0x1e076f['getContainedElement']();if(null==_0x55ebee)return;const _0x35329b=_0x14048b['plugins']['get']('MergeFieldsEditing');let _0x5b83e3;switch(_0x35329b['getMergeFieldType'](_0x55ebee)){case null:return;case'image':{const _0x200b6a=_0x35329b['unwrapAffixes'](_0x55ebee['getAttribute']('src'));_0x5b83e3=_0x35329b['getLabel'](_0x200b6a)||_0x200b6a;break;}default:{const _0x19485c=_0x55ebee['getAttribute']('id');_0x5b83e3=_0x35329b['getLabel'](_0x19485c)||_0x19485c;break;}}return'insertion'==_0x1e076f['type']?{'type':'insertion','content':Tt(_0xdc1695,'*Insert:*\x20%0','\x22'+_0x5b83e3+'\x22\x20'+Tt(_0xdc1695,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0xdc1695,'*Remove:*\x20%0','\x22'+_0x5b83e3+'\x22\x20'+Tt(_0xdc1695,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x3cecf3{['afterInit'](){const _0x38a005=this['editor'],_0x4e6945=_0x38a005['plugins']['get']('TrackChangesEditing');_0x38a005['plugins']['has']('MultiLevelList')&&(_0x4e6945['enableDefaultAttributesIntegration']('multiLevelList'),_0x4e6945['descriptionFactory']['registerDescriptionCallback'](_0x38690e=>this['handleDescriptions'](_0x38690e)));}['handleDescriptions'](_0x169d71){const _0x449722=this['editor']['locale'],{data:_0x3abeb9}=_0x169d71,_0x4a0366={'type':'format','content':''};if(_0x3abeb9&&'listMarkerStyle'==_0x3abeb9['key']){if(!_0x3abeb9['oldValue'])return{'type':'format','content':Tt(_0x449722,'*Set\x20format:*\x20%0',Tt(_0x449722,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3abeb9['newValue']+')'};if(!_0x3abeb9['newValue']){let _0x4e5eef=_0x169d71['head'];for(;_0x4e5eef;){if(_0x4e5eef['data']&&'listType'==_0x4e5eef['data']['key']&&_0x4e5eef['data']['newValue'])return _0x4a0366;_0x4e5eef=_0x4e5eef['next'];}return{'type':'format','content':Tt(_0x449722,'*Remove\x20format:*\x20%0',Tt(_0x449722,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3abeb9['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x3cecf3{['afterInit'](){const _0x420bd1=this['editor'];if(!_0x420bd1['plugins']['has']('PageBreakEditing'))return;_0x420bd1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x23b6e4=_0x420bd1['plugins']['get']('TrackChangesEditing'),_0x588a24=_0x420bd1['locale'];_0x23b6e4['descriptionFactory']['registerElementLabel']('pageBreak',_0x1ee6e0=>Tt(_0x588a24,'ELEMENT_PAGE_BREAK',_0x1ee6e0));}}class TrackChangesParagraph extends _0x3cecf3{['afterInit'](){const _0x88b315=this['editor'];if(!_0x88b315['plugins']['has']('Paragraph'))return;const _0x42313b=_0x88b315['locale'],_0x314af7=_0x88b315['plugins']['get']('TrackChangesEditing');_0x314af7['descriptionFactory']['registerElementLabel']('paragraph',_0x1b8b2f=>Tt(_0x42313b,'ELEMENT_PARAGRAPH',_0x1b8b2f)),_0x314af7['enableDefaultAttributesIntegration']('paragraph'),_0x314af7['enableCommand']('insertParagraph');const _0x43c397=_0x314af7['descriptionFactory'];_0x43c397['registerDescriptionCallback'](_0x24cc6a=>{if('insertion'!==_0x24cc6a['type'])return;const {start:_0x36174f,end:_0x4501d1}=_0x24cc6a['getFirstRange']();if(!_0x36174f['isTouching'](_0x4501d1)||!_0x36174f['nodeAfter'])return;const _0x4fe36f=_0x88b315['model']['schema'],_0x5ecbbf=_0x36174f['nodeAfter'];return _0x4fe36f['isBlock'](_0x5ecbbf)&&!_0x4fe36f['isLimit'](_0x5ecbbf)&&_0x4fe36f['checkChild'](_0x5ecbbf,'$text')?{'type':'insertion','content':Tt(_0x42313b,'*Insert:*\x20%0',_0x43c397['getItemLabel'](_0x5ecbbf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dabc6=this['editor'],_0x29b205=_0x4dabc6['locale'];_0x4dabc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25ec92=>{if('formatBlock'!=_0x25ec92['type'])return;const {data:_0x5327c8}=_0x25ec92;return _0x5327c8&&'paragraph'==_0x5327c8['commandName']?{'type':'format','content':Tt(_0x29b205,'*Change\x20to:*\x20%0',Tt(_0x29b205,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x3cecf3{['afterInit'](){const _0x532cbe=this['editor'];_0x532cbe['commands']['get']('replaceSource')&&_0x532cbe['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x3cecf3{['afterInit'](){const _0x317d44=this['editor'];if(!_0x317d44['plugins']['has']('RemoveFormatEditing'))return;_0x317d44['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2435ff=this['editor'];_0x2435ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x104e10=>{if('formatBlock'!=_0x104e10['type']&&'formatInline'!=_0x104e10['type'])return;const {data:_0x303dc6}=_0x104e10;return _0x303dc6&&'removeFormat'==_0x303dc6['commandName']?{'type':'format','content':Tt(_0x2435ff['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x3cecf3{['afterInit'](){const _0x5345b0=this['editor'];if(!_0x5345b0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1a3cff=_0x5345b0['plugins']['get']('TrackChangesEditing');_0x1a3cff['enableCommand']('goToPreviousRestrictedEditingException'),_0x1a3cff['enableCommand']('goToNextRestrictedEditingException');const _0x296521=_0x5345b0['plugins']['get']('RestrictedEditingModeEditing');_0x296521['enableCommand']('trackChanges'),_0x296521['enableCommand']('acceptSuggestion'),_0x296521['enableCommand']('discardSuggestion'),_0x296521['enableCommand']('acceptAllSuggestions'),_0x296521['enableCommand']('discardAllSuggestions'),_0x296521['enableCommand']('acceptSelectedSuggestions'),_0x296521['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x3cecf3{['afterInit'](){const _0xfe0718=this['editor'];if(!_0xfe0718['plugins']['has']('ShiftEnter'))return;const _0xca9abc=_0xfe0718['plugins']['get']('TrackChangesEditing');_0xca9abc['enableCommand']('shiftEnter'),_0xca9abc['descriptionFactory']['registerElementLabel']('softBreak',_0x181910=>Tt(_0xfe0718['locale'],'ELEMENT_LINE_BREAK',_0x181910));}}function Rt(_0x4b3745,_0x1acbdf,_0xcc2d13){const _0x1cecbe=[];for(const _0x18592e of _0x1acbdf['getItems']())_0x18592e['hasAttribute'](_0x4b3745)&&_0x1cecbe['push'](_0xcc2d13['createRangeOn'](_0x18592e));return _0x1cecbe;}class TrackChangesStandardEditingMode extends _0x3cecf3{['afterInit'](){const _0x52290e=this['editor'],_0x246fcf=_0x52290e['plugins']['get']('TrackChangesEditing');_0x52290e['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x246fcf['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2cb63b=this['editor'],_0x55fd4c=_0x2cb63b['model'],_0x3294b6=_0x2cb63b['locale'],_0x5c1ac1=_0x2cb63b['plugins']['get']('TrackChangesEditing'),_0x5e6245='restrictedEditingException',_0x396e25=_0x2cb63b['commands']['get'](_0x5e6245);_0x5c1ac1['enableCommand'](_0x5e6245,(_0x19f827,_0x16aa2c={})=>{const _0x1a127b=_0x55fd4c['document']['selection'];if(_0x1a127b['isCollapsed'])return void _0x19f827(_0x16aa2c);const _0x26df30=void 0x0!==_0x16aa2c['forceValue']?_0x16aa2c['forceValue']:!_0x396e25['value'];_0x55fd4c['change'](()=>{const _0x309097=Array['from'](_0x1a127b['getRanges']());for(const _0x1025ef of _0x309097){const _0xe76e99=_0x26df30?[_0x1025ef]:Rt(_0x5e6245,_0x1025ef,_0x55fd4c);for(const _0x1cf10f of _0xe76e99)_0x5c1ac1['markInlineFormat'](_0x1cf10f,{'commandName':_0x5e6245,'commandParams':[{'forceValue':_0x26df30}]});}});}),_0x5c1ac1['descriptionFactory']['registerDescriptionCallback'](_0x982f6=>{if('formatBlock'!=_0x982f6['type']&&'formatInline'!=_0x982f6['type'])return;const {data:_0x586230}=_0x982f6;return _0x586230&&_0x586230['commandName']==_0x5e6245?_0x586230['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3294b6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x3294b6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x33c37f=this['editor'],_0x552e6d=_0x33c37f['locale'],_0x5be63e=_0x33c37f['plugins']['get']('TrackChangesEditing'),_0x3c12b3='restrictedEditingExceptionBlock',_0x329aab=this['editor']['commands']['get'](_0x3c12b3);_0x5be63e['enableCommand'](_0x3c12b3,(_0x53d575,_0x159fb8={})=>{const _0x15b918=this['editor']['model']['document']['selection'],_0x4c430d=_0x159fb8&&void 0x0!==_0x159fb8['forceValue']?_0x159fb8['forceValue']:!_0x329aab['value'];let _0x564d6f=[];if(_0x4c430d){const _0xe0291f=Array['from'](_0x15b918['getSelectedBlocks']())['filter'](_0x1403b3=>function(_0x4439eb){return!!_0x4439eb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1403b3)||function(_0x599278,_0x468e9a){const _0x7b87fc=_0x468e9a['createContext'](_0x599278['parent']);if(!_0x468e9a['checkChild'](_0x7b87fc,'restrictedEditingException'))return!0x1;if(!_0x468e9a['checkChild'](_0x7b87fc['push']('restrictedEditingException'),_0x599278))return!0x1;return!0x0;}(_0x1403b3,this['editor']['model']['schema']));_0x564d6f=ft(_0xe0291f,_0x33c37f['model']);}else{const _0x32eaae=Array['from'](_0x15b918['getSelectedBlocks']())['map'](_0x1688e3=>function(_0x1e1a05){let _0x5d7a19=_0x1e1a05;for(;_0x5d7a19['parent'];){if('restrictedEditingException'==_0x5d7a19['parent']['name'])return _0x5d7a19;_0x5d7a19=_0x5d7a19['parent'];}return null;}(_0x1688e3))['filter'](_0x468c9c=>!!_0x468c9c);_0x564d6f=ft(_0x32eaae,_0x33c37f['model']);}_0x33c37f['model']['change'](()=>{for(const _0x8f5ec1 of _0x564d6f)_0x5be63e['markBlockFormat'](_0x8f5ec1,{'commandName':_0x3c12b3,'commandParams':[{'forceValue':_0x4c430d}]});});}),_0x5be63e['descriptionFactory']['registerDescriptionCallback'](_0x21555b=>{const {data:_0x4f34ba}=_0x21555b;if(_0x4f34ba&&_0x4f34ba['commandName']==_0x3c12b3)return _0x4f34ba['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x552e6d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x552e6d,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x3cecf3{['afterInit'](){const _0x412204=this['editor'];if(!_0x412204['plugins']['has']('Style')||!_0x412204['plugins']['has']('DataSchema'))return;const _0x407fd0=_0x412204['plugins']['get']('TrackChangesEditing'),_0x551a39=_0x412204['locale'],_0x1b6352=_0x412204['config']['get']('style')||{},_0x2bf32f=_0x412204['plugins']['get']('GeneralHtmlSupport'),_0x33cf23=_0x412204['plugins']['get']('StyleUtils')['normalizeConfig'](_0x412204['plugins']['get']('DataSchema'),_0x1b6352['definitions']);_0x407fd0['enableDefaultAttributesIntegration']('style');const _0x5736da=new Set();for(const _0x167e08 of _0x33cf23['block']){const _0x4ba060=_0x2bf32f['getGhsAttributeNameForElement'](_0x167e08['element']);_0x5736da['add'](_0x4ba060);}const _0x1869a5=new Set();for(const _0x6f56e4 of _0x33cf23['inline']){const _0x544ac5=_0x2bf32f['getGhsAttributeNameForElement'](_0x6f56e4['element']);_0x1869a5['add'](_0x544ac5);for(const _0x13a541 of _0x6f56e4['ghsAttributes'])_0x1869a5['add'](_0x13a541);}for(const _0x3883b4 of _0x5736da)_0x407fd0['descriptionFactory']['registerAttributeLabel'](_0x3883b4,Tt(_0x551a39,'FORMAT_STYLE'));for(const _0x4a81bb of _0x1869a5)_0x407fd0['descriptionFactory']['registerAttributeLabel'](_0x4a81bb,Tt(_0x551a39,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ccb27=this['editor'],_0x2424cd=_0x4ccb27['locale'];_0x4ccb27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b372e=>{if('formatBlock'!=_0x5b372e['type']&&'formatInline'!=_0x5b372e['type'])return;const {data:_0x46315b}=_0x5b372e;return _0x46315b&&'style'===_0x46315b['commandName']?_0x46315b['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x2424cd,'*Set\x20format:*\x20%0',_0x46315b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x2424cd,'*Remove\x20format:*\x20%0',_0x46315b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x3cecf3{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2d7c2d){super(_0x2d7c2d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x61bd55=this['editor'],_0x16dff5=_0x61bd55['model']['document']['selection'];if(!_0x61bd55['plugins']['has']('TableEditing'))return;const _0x39790d=_0x61bd55['locale'],_0x33f8d3=_0x61bd55['plugins']['get']('TrackChangesEditing'),_0x261bff=_0x61bd55['plugins']['get']('TableUtils');_0x33f8d3['descriptionFactory']['registerElementLabel']('table',_0x239b74=>Tt(_0x39790d,'ELEMENT_TABLE',_0x239b74)),this['_setupColumnsRowsFixing'](),_0x33f8d3['enableCommand']('insertTable'),_0x33f8d3['enableCommand']('selectTableRow'),_0x33f8d3['enableCommand']('selectTableColumn');for(const _0x27f3f4 of['insertTableRowAbove','insertTableRowBelow']){const _0x591ce8=_0x61bd55['commands']['get'](_0x27f3f4);_0x33f8d3['enableCommand'](_0x27f3f4,_0x4733d4=>{_0x61bd55['model']['change'](_0x108317=>{_0x4733d4();const _0xc9ff41='above'===_0x591ce8['order'],_0x1f215e=_0x261bff['getSelectionAffectedTableCells'](_0x16dff5),_0x2a5224=_0x261bff['getRowIndexes'](_0x1f215e),_0x47460b=_0xc9ff41?_0x2a5224['first']-0x1:_0x2a5224['last']+0x1,_0x3a3dae=_0x1f215e[0x0]['findAncestor']('table'),_0x69a629=_0x261bff['createTableWalker'](_0x3a3dae,{'startRow':_0x47460b,'endRow':_0x47460b}),_0x341082=Array['from'](_0x69a629)['map'](_0x21e231=>_0x108317['createRangeOn'](_0x21e231['cell']));_0x33f8d3['markMultiRangeInsertion'](_0x341082,'tableRow');});});}for(const _0x4468e9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x13d782=_0x61bd55['commands']['get'](_0x4468e9);_0x33f8d3['enableCommand'](_0x4468e9,_0x4eab7a=>{_0x61bd55['model']['change'](_0x4cdd2a=>{_0x4eab7a();const _0x5df80d='left'===_0x13d782['order'],_0x374be4=_0x261bff['getSelectionAffectedTableCells'](_0x16dff5),_0x5c3c55=_0x261bff['getColumnIndexes'](_0x374be4),_0x38c0b0=_0x5df80d?_0x5c3c55['first']-0x1:_0x5c3c55['last']+0x1,_0x5301ef=_0x374be4[0x0]['findAncestor']('table'),_0x1c8d7f=_0x261bff['createTableWalker'](_0x5301ef,{'startRow':0x0,'column':_0x38c0b0,'includeAllSlots':!0x1}),_0x3311d3=Array['from'](_0x1c8d7f)['map'](_0x559bbc=>_0x4cdd2a['createRangeOn'](_0x559bbc['cell']));_0x33f8d3['markMultiRangeInsertion'](_0x3311d3,'tableColumn');});});}for(const _0x1d2b05 of['removeTableRow','removeTableColumn']){const _0x5f257c=_0x1d2b05['substr'](0xb),_0x33919d=_0x5f257c['toLowerCase'](),_0x103212=_0x33919d['substr'](0x0,0x3)+'span',_0x2ca75b='table'+_0x5f257c,_0x214828='min'+_0x5f257c,_0x194fca='max'+_0x5f257c;_0x33f8d3['enableCommand'](_0x1d2b05,()=>{_0x61bd55['model']['change'](_0x4b480d=>{const _0x3794bb=_0x261bff['getSelectionAffectedTableCells'](_0x16dff5),_0x3e67eb=_0x3794bb[0x0]['findAncestor']('table');let _0xd59d63;if('removeTableRow'==_0x1d2b05){const _0x1d93f4=_0x261bff['getRowIndexes'](_0x3794bb);_0xd59d63={'startRow':_0x1d93f4['first'],'endRow':_0x1d93f4['last'],'includeAllSlots':!0x0};}else{const _0x56df70=_0x261bff['getColumnIndexes'](_0x3794bb);_0xd59d63={'startColumn':_0x56df70['first'],'endColumn':_0x56df70['last'],'includeAllSlots':!0x0};}const _0x35e4e6=_0x261bff['createTableWalker'](_0x3e67eb,_0xd59d63),_0x2ffb89=Array['from'](_0x35e4e6)['map'](({cell:_0x18e411})=>_0x18e411),_0x3c7d37=Nt(_0x2ffb89['filter'](_0x5d9999=>_0x5d9999['hasAttribute'](_0x103212))),_0x107bff=Nt(_0x2ffb89['filter'](_0xdbec2a=>!_0xdbec2a['hasAttribute'](_0x103212)))['map'](_0xdd3d08=>_0x4b480d['createRangeOn'](_0xdd3d08)),_0x28bd3f=_0x33f8d3['markMultiRangeDeletion'](_0x107bff,_0x2ca75b);if(_0x28bd3f&&('tableRow'==_0x28bd3f['subType']||'tableColumn'==_0x28bd3f['subType'])){const _0x2ef075=this['_getSuggestionCoords'](_0x28bd3f);for(const _0x7b3347 of _0x3c7d37){const _0x183b57=_0x4b480d['createRangeOn'](_0x7b3347),_0x208608=_0x261bff['getCellLocation'](_0x7b3347),_0x5da49b=_0x7b3347['getAttribute'](_0x103212)-0x1,_0x96adbe=_0x2ef075[_0x214828],_0x1f4fc9=_0x2ef075[_0x194fca];_0x96adbe<=_0x208608[_0x33919d]&&_0x208608[_0x33919d]+_0x5da49b<=_0x1f4fc9&&_0x28bd3f['addRange'](_0x183b57);}}});});}function _0x93dc9b(_0x18cc59){const _0xe8744c=Array['from'](_0x16dff5['getRanges']())['map'](_0x38ac01=>_0x52f028['fromRange'](_0x38ac01));_0x61bd55['model']['change'](_0x3d0656=>{const _0x310ca2=_0x3d0656['batch'];_0x18cc59=_0x18cc59['filter'](_0x45d81f=>'$graveyard'!=_0x45d81f['root']['rootName']),_0x3d0656['setSelection'](_0x18cc59),_0x61bd55['commands']['get']('removeTableRow')['refresh'](),_0x61bd55['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x61bd55['model']['enqueueChange'](()=>{_0x61bd55['model']['enqueueChange'](_0x310ca2,_0x596d36=>{const _0xbe3442=_0xe8744c['filter'](_0xa3dd6=>'$graveyard'!=_0xa3dd6['root']['rootName']);_0xbe3442['length']>0x0&&_0x596d36['setSelection'](_0xbe3442);for(const _0x51b3dd of _0xe8744c)_0x51b3dd['detach']();});});});}function _0x34fb40(_0x1a5c47){_0x61bd55['model']['change'](_0x5285a2=>{const _0x163631=Array['from'](_0x16dff5['getRanges']())['map'](_0x18e73d=>_0x52f028['fromRange'](_0x18e73d)),_0x571bda=[];for(const _0x64b7c6 of _0x1a5c47)for(const _0x3c82dc of _0x64b7c6['getItems']({'shallow':!0x0}))_0x571bda['push'](_0x3c82dc);for(const _0x1e9869 of _0x571bda)'$graveyard'!=_0x1e9869['root']['rootName']&&(_0x5285a2['setSelection'](_0x5285a2['createPositionAt'](_0x1e9869,0x0)),_0x61bd55['commands']['get']('removeTableColumn')['refresh'](),_0x61bd55['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5b12d7=_0x163631['filter'](_0xe121f4=>'$graveyard'!=_0xe121f4['root']['rootName']);_0x5b12d7['length']>0x0&&_0x5285a2['setSelection'](_0x5b12d7);for(const _0x1e03a0 of _0x163631)_0x1e03a0['detach']();});}function _0x33013e(_0x2b3308,_0x505696){return _0x505696['every'](_0x168167=>_0x2b3308['some'](_0xa84d02=>_0xa84d02['end']['isEqual'](_0x168167['start'])||_0x168167['end']['isEqual'](_0xa84d02['start'])));}function _0x21ea74(_0x5dbe7e,_0x38c91d){return!_0x5dbe7e['some'](_0x31c88b=>_0x38c91d['some'](_0x506472=>_0x31c88b['isIntersecting'](_0x506472)))&&_0x5dbe7e['some'](_0x5ab211=>_0x38c91d['some'](_0x2604bb=>_0x5ab211['end']['isTouching'](_0x2604bb['start'])));}_0x33f8d3['descriptionFactory']['registerDescriptionCallback'](_0x1ba191=>{if('insertion'!=_0x1ba191['type']&&'deletion'!=_0x1ba191['type'])return;const _0x4fdfcd=_0x1ba191['getContainedElement']();if(null!=_0x4fdfcd&&_0x4fdfcd['is']('element','table')){if('insertion'==_0x1ba191['type']){const _0x156b7d=_0x1ba191['getItems']()['filter'](_0x24f5f6=>_0x24f5f6['is']('$textProxy'))['map'](_0x46f1ca=>_0x46f1ca['data']);if(_0x156b7d['length'])return{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x156b7d['join']('\x20')+'\x22'))};}if('deletion'==_0x1ba191['type']){const _0x4acc33=_0x1ba191['getItems']()['filter'](_0x5e2eea=>_0x5e2eea['is']('$textProxy'))['map'](_0x1ba185=>_0x1ba185['data']);if(_0x4acc33['length'])return{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4acc33['join']('\x20')+'\x22'))};}}}),_0x33f8d3['descriptionFactory']['registerDescriptionCallback'](_0x573ef3=>{if('tableRow'==_0x573ef3['subType']){const _0x2ef4f0=_0x573ef3['getItems']()['filter'](_0x2d3ae2=>_0x2d3ae2['is']('$textProxy'))['map'](_0x25e794=>_0x25e794['data']),_0x3fb3ef=this['_getSuggestionCoords'](_0x573ef3),_0x335d43=_0x3fb3ef['maxRow']-_0x3fb3ef['minRow']+0x1;if('insertion'==_0x573ef3['type'])return _0x2ef4f0['length']?{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x335d43,'\x22'+_0x2ef4f0['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_ROW',_0x335d43))};if('deletion'==_0x573ef3['type'])return _0x2ef4f0['length']?{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x335d43,'\x22'+_0x2ef4f0['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_ROW',_0x335d43))};}if('tableColumn'==_0x573ef3['subType']){const _0x205513=_0x573ef3['getItems']()['filter'](_0x1a6aae=>_0x1a6aae['is']('$textProxy'))['map'](_0x3ae029=>_0x3ae029['data']),_0x22b8dd=this['_getSuggestionCoords'](_0x573ef3),_0x24d18b=_0x22b8dd['maxColumn']-_0x22b8dd['minColumn']+0x1;if('insertion'==_0x573ef3['type'])return _0x205513['length']?{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24d18b,'\x22'+_0x205513['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x39790d,'*Insert:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_COLUMN',_0x24d18b))};if('deletion'==_0x573ef3['type'])return _0x205513['length']?{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x24d18b,'\x22'+_0x205513['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x39790d,'*Remove:*\x20%0',Tt(_0x39790d,'ELEMENT_TABLE_COLUMN',_0x24d18b))};}}),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x93dc9b),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x93dc9b),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34fb40),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34fb40),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33013e),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33013e),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x21ea74),_0x33f8d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x21ea74);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1a7e94=this['editor'],_0x3d23b8=_0x1a7e94['model']['document']['selection'];return(_0x397b1e,_0x32cd18)=>{_0x1a7e94['model']['change'](_0x2937c5=>{const {commandName:_0x1e9bd8,commandParams:_0x3f7e2d}=_0x32cd18;let _0x395619=_0x397b1e[0x0]['end']['nodeBefore'];_0x3f7e2d&&_0x3f7e2d[0x0]&&!0x1===_0x3f7e2d[0x0]['forceValue']&&(_0x395619=_0x397b1e[0x0]['start']['nodeAfter']);const _0x247bf4=_0x2937c5['createRangeIn'](_0x395619);if('$graveyard'==_0x247bf4['root']['rootName'])return;const _0x4cb07a=Array['from'](_0x3d23b8['getRanges']())['map'](_0x2e1840=>_0x52f028['fromRange'](_0x2e1840));_0x2937c5['setSelection'](_0x247bf4),_0x1a7e94['commands']['get'](_0x1e9bd8)['refresh'](),_0x3f7e2d['push']({'forceDefaultExecution':!0x0}),_0x1a7e94['execute'](_0x1e9bd8,..._0x3f7e2d);const _0x58832d=_0x4cb07a['filter'](_0x9e7428=>'$graveyard'!=_0x9e7428['root']['rootName']);_0x58832d['length']>0x0&&_0x2937c5['setSelection'](_0x58832d);for(const _0x2ff7b4 of _0x4cb07a)_0x2ff7b4['detach']();});};}['_getCoordsForCells'](_0x549075){const _0x5a6392=this['editor']['plugins']['get']('TableUtils');let _0x1d10f3=Number['MAX_SAFE_INTEGER'],_0x56989d=Number['MIN_SAFE_INTEGER'],_0x75c02c=Number['MAX_SAFE_INTEGER'],_0x282916=Number['MIN_SAFE_INTEGER'];for(const _0x1b3d57 of _0x549075){if('$graveyard'==_0x1b3d57['root']['rootName'])continue;const {row:_0x20ba9c,column:_0x16dda6}=_0x5a6392['getCellLocation'](_0x1b3d57),_0x46df5f=_0x1b3d57['hasAttribute']('rowspan')?_0x1b3d57['getAttribute']('rowspan')-0x1:0x0,_0x305fb0=_0x1b3d57['hasAttribute']('colspan')?_0x1b3d57['getAttribute']('colspan')-0x1:0x0;_0x1d10f3=_0x20ba9c<_0x1d10f3?_0x20ba9c:_0x1d10f3,_0x56989d=_0x20ba9c+_0x46df5f>_0x56989d?_0x20ba9c+_0x46df5f:_0x56989d,_0x75c02c=_0x16dda6<_0x75c02c?_0x16dda6:_0x75c02c,_0x282916=_0x16dda6+_0x305fb0>_0x282916?_0x16dda6+_0x305fb0:_0x282916;}return{'minRow':_0x1d10f3,'maxRow':_0x56989d,'minColumn':_0x75c02c,'maxColumn':_0x282916};}['_setupColumnsRowsFixing'](){const _0x1c9e96=this['editor'],_0x5b88e3=_0x1c9e96['plugins']['get']('TrackChangesEditing'),_0x3292c6=_0x1c9e96['plugins']['get']('TableUtils');_0x1c9e96['model']['document']['on']('change:data',()=>{const _0xbfdce2=Array['from'](_0x1c9e96['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ed267,data:_0x383ead}of _0xbfdce2){const {group:_0x83b926,id:_0xb7495e,subType:_0x1ab58d}=_0x309b71(_0x2ed267);if('suggestion'!=_0x83b926)continue;if(null!=_0x383ead['oldRange'])continue;const _0x24a617=_0x5b88e3['getSuggestion'](_0xb7495e);this['_tablePostFixingSubtypes']['includes'](_0x1ab58d)&&this['_tableSuggestions']['add'](_0x24a617);}},{'priority':'low'});const _0x4284b9=(_0x265b28,_0x40d60c)=>{let _0x474207=!0x1;const _0xd4d328=_0x40d60c['createRangeOn'](_0x265b28),_0x24462a=_0x265b28['findAncestor']('table'),_0x552e64=_0x3292c6['getCellLocation'](_0x265b28);for(const _0x58c980 of this['_tableSuggestions']){const _0x3c42db=_0x58c980['subType'],_0x125741=_0x3c42db['startsWith']('tablePaste'),_0x6ea3cb=_0x3c42db['substr'](_0x125741?0xa:0x5),_0x4cc5fd=_0x6ea3cb['toLowerCase'](),_0x4512b6=_0x4cc5fd['substr'](0x0,0x3)+'span',_0x1a71c5='min'+_0x6ea3cb,_0x54d09a='max'+_0x6ea3cb;if(!_0x58c980['isInContent'])continue;if(_0x24462a!=_0x58c980['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x58c980['isIntersectingWithRange'](_0xd4d328))continue;const _0x3bca62=_0x265b28['hasAttribute'](_0x4512b6)?_0x265b28['getAttribute'](_0x4512b6)-0x1:0x0,_0x436911=this['_getSuggestionCoords'](_0x58c980),_0x25bf0c=_0x436911[_0x1a71c5],_0x34fa36=_0x436911[_0x54d09a];_0x25bf0c<=_0x552e64[_0x4cc5fd]&&_0x552e64[_0x4cc5fd]+_0x3bca62<=_0x34fa36&&(_0x58c980['addRange'](_0xd4d328),_0x474207=!0x0);}return _0x474207;};_0x1c9e96['model']['document']['registerPostFixer'](_0x42a770=>{let _0x5c84f2=!0x1;for(const _0x1a8e09 of _0x1c9e96['model']['document']['differ']['getChanges']())if('insert'==_0x1a8e09['type']){if('tableRow'==_0x1a8e09['name']){for(const _0x743884 of _0x1a8e09['position']['nodeAfter']['getChildren']())_0x5c84f2=_0x5c84f2||_0x4284b9(_0x743884,_0x42a770);}else'tableCell'==_0x1a8e09['name']&&(_0x5c84f2=_0x5c84f2||_0x4284b9(_0x1a8e09['position']['nodeAfter'],_0x42a770));}return _0x5c84f2;});}['_getSuggestionCoords'](_0x49ff1f){return this['_getCoordsForCells'](_0x49ff1f['getRanges']()['map'](_0x8aef53=>_0x8aef53['start']['nodeAfter']));}}function Nt(_0xa97e03){return Array['from'](new Set(_0xa97e03)['values']());}class TrackChangesTableMergeSplit extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x12bd63=this['editor'],_0x272508=_0x12bd63['model']['document']['selection'],_0x52f793=_0x12bd63['locale'];if(!_0x12bd63['plugins']['has']('TableEditing'))return;const _0x59c288=_0x12bd63['plugins']['get']('TrackChangesEditing'),_0x1da55b=_0x12bd63['plugins']['get']('TableUtils'),_0x3bf016=_0x12bd63['plugins']['get'](TrackChangesTable);_0x3bf016['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x59c288['enableCommand']('mergeTableCells',()=>{const _0x18acb9=_0x1da55b['getSelectionAffectedTableCells'](_0x12bd63['model']['document']['selection']);_0x12bd63['model']['change'](()=>{_0x59c288['markMultiRangeBlockFormat'](_0x18acb9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x12bd63['commands']['get']('mergeTableCells')['on']('execute',(_0x131121,_0x971e93)=>{_0x12bd63['commands']['get']('trackChanges')['value']&&(_0x971e93['length']>0x0&&_0x971e93[_0x971e93['length']-0x1]&&_0x971e93[_0x971e93['length']-0x1]['forceDefaultExecution']||_0x59c288['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x131121['stop']());},{'priority':'highest'});for(const _0x4a162f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4fcca0=_0x12bd63['commands']['get'](_0x4a162f);_0x59c288['enableCommand'](_0x4a162f,()=>{const _0x1ef661=_0x12bd63['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4cd0fb=>_0x4cd0fb['is']('element','tableCell')),_0x79aff9=_0x4fcca0['value'];_0x12bd63['model']['change'](()=>{_0x59c288['markMultiRangeBlockFormat']([_0x1ef661,_0x79aff9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37315e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1aa80d=_0x12bd63['commands']['get'](_0x37315e);_0x59c288['enableCommand'](_0x37315e,()=>{const _0x1c0acf=_0x1da55b['getSelectionAffectedTableCells'](_0x12bd63['model']['document']['selection'])[0x0],_0x5e0c8e=_0x1c0acf['findAncestor']('table'),{column:_0x50339b,row:_0x50fc5b}=_0x1da55b['getCellLocation'](_0x1c0acf);let _0x9bf7df=[];if('horizontally'==_0x1aa80d['direction']){const _0x1dd7f3=_0x1da55b['createTableWalker'](_0x5e0c8e,{'startRow':_0x50fc5b,'endRow':_0x50fc5b,'includeAllSlots':!0x0});_0x9bf7df=Array['from'](_0x1dd7f3)['map'](_0x2ec290=>_0x2ec290['cell']);}else{const _0x517f92=_0x1da55b['createTableWalker'](_0x5e0c8e,{'column':_0x50339b,'includeAllSlots':!0x0});_0x9bf7df=Array['from'](_0x517f92)['map'](_0x53ae69=>_0x53ae69['cell']);}_0x12bd63['model']['change'](_0x15ae35=>{_0x59c288['markBlockFormat'](_0x15ae35['createRangeOn'](_0x1c0acf),{'commandName':_0x37315e,'commandParams':[]},_0x9bf7df,_0x37315e);});});}_0x59c288['descriptionFactory']['registerDescriptionCallback'](_0xda67ee=>{if('formatBlock'!=_0xda67ee['type']&&'formatInline'!=_0xda67ee['type'])return;const {data:_0x32bf84}=_0xda67ee;return _0x32bf84&&'mergeTableCells'==_0x32bf84['commandName']?{'type':'format','content':Tt(_0x52f793,'*Merge\x20cells*')}:void 0x0;}),_0x59c288['descriptionFactory']['registerDescriptionCallback'](_0xaf2923=>{if('formatBlock'!=_0xaf2923['type']&&'formatInline'!=_0xaf2923['type'])return;const {data:_0x15a4bc}=_0xaf2923;return _0x15a4bc?'splitTableCellVertically'==_0x15a4bc['commandName']?{'type':'format','content':Tt(_0x52f793,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x15a4bc['commandName']?{'type':'format','content':Tt(_0x52f793,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x265cf3=_0x3bf016['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b987d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x59c288['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b987d,'accept',_0x265cf3);for(const _0x2b01be of['splitTableCellVertically','splitTableCellHorizontally'])_0x59c288['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b01be,'accept',_0x265cf3);_0x59c288['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x47daa5=>{_0x12bd63['model']['change'](_0x57a5db=>{const _0x499856=Array['from'](_0x272508['getRanges']())['map'](_0x3b0435=>_0x52f028['fromRange'](_0x3b0435));_0x57a5db['setSelection'](_0x47daa5),_0x12bd63['commands']['get']('mergeTableCells')['refresh'](),_0x12bd63['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x36e881=_0x499856['filter'](_0x191b9a=>'$graveyard'!=_0x191b9a['root']['rootName']);_0x36e881['length']>0x0&&_0x57a5db['setSelection'](_0x36e881);for(const _0x1c18ab of _0x499856)_0x1c18ab['detach']();});});for(const _0x12a342 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x25291b=_0x12bd63['commands']['get'](_0x12a342);_0x25291b['on']('set:isEnabled',(_0x5db2db,_0x1a4421,_0x578741)=>{if(_0x578741){const _0x41cfd6=_0x12bd63['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x339604=>_0x339604['is']('element','tableCell'));this['_areMergableCells'](_0x25291b['value'],_0x41cfd6)||(_0x5db2db['return']=!0x1,_0x5db2db['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xc66a60=this['editor']['commands']['get']('mergeTableCells'),_0x3c9035=this['editor']['plugins']['get']('TableUtils');if(!_0xc66a60['isEnabled'])return!0x1;const _0x5a6a4c=_0x3c9035['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1410ed of _0x5a6a4c)for(const _0x216596 of _0x5a6a4c)if(_0x1410ed!=_0x216596&&!this['_areMergableCells'](_0x1410ed,_0x216596))return!0x1;return!0x0;}['_areMergableCells'](_0x2f252d,_0x2ce809){const _0x4a6716=this['editor']['plugins']['get']('TrackChangesEditing'),_0x422d59=this['editor']['model']['createRangeOn'](_0x2f252d),_0x4f0a29=this['editor']['model']['createRangeOn'](_0x2ce809),_0x200cd6=new Set(),_0x542c65=new Set();for(const _0x2e0b08 of _0x4a6716['getSuggestions']())if(('insertion'==_0x2e0b08['type']||'deletion'==_0x2e0b08['type']||'mergeTableCells'==_0x2e0b08['subType'])&&_0x2e0b08['isInContent']){for(const _0x2ad042 of _0x2e0b08['getRanges']())_0x2ad042['containsRange'](_0x422d59,!0x0)&&_0x200cd6['add'](_0x2e0b08['type']+':'+_0x2e0b08['author']['id']),_0x2ad042['containsRange'](_0x4f0a29,!0x0)&&_0x542c65['add'](_0x2e0b08['type']+':'+_0x2e0b08['author']['id']);}if(_0x200cd6['size']!=_0x542c65['size'])return!0x1;for(const _0x3bbaa8 of _0x200cd6)if(!_0x542c65['has'](_0x3bbaa8))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x528288=this['editor'];if(!_0x528288['plugins']['has']('TableEditing'))return;const _0x184fa0=_0x528288['locale'],_0x548ca0=_0x528288['plugins']['get']('TrackChangesEditing');_0x548ca0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x548ca0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x548ca0['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x184fa0,'FORMAT_HEADER_ROW')),_0x548ca0['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x184fa0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f46c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12b82b=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x3f46c0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x12b82b),_0x3f46c0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x12b82b),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x13886c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x348402=this['editor']['plugins']['get']('TableUtils');function _0x5e902f({showActiveMarker:_0x207dff=!0x0,setDataAttribute:_0x117094=!0x0}={}){return(_0xfb9a16,_0x1d5d0a,_0x4a57b9)=>{const {type:_0x1993b8,id:_0x39a5a5}=_0x309b71(_0x1d5d0a['markerName']);if(!_0x13886c['hasSuggestion'](_0x39a5a5))return;const _0x168b1e=_0x13886c['getSuggestion'](_0x39a5a5),_0x4ac368=_0x168b1e['data'];if('formatBlock'!=_0x168b1e['type']||!_0x4ac368||'setTableColumnHeader'!=_0x4ac368['commandName'])return;if(_0x1d5d0a['item'])return void _0xfb9a16['stop']();if(!_0x4a57b9['consumable']['consume'](_0x1d5d0a['markerRange'],_0xfb9a16['name']))return;const _0x5aacf6=_0x1d5d0a['markerRange']['start']['nodeAfter'],_0x2520a6=_0x1d5d0a['markerRange']['end']['nodeBefore'],_0x580d4a=_0x5aacf6['parent']['parent'],{column:_0x1b2db5}=_0x348402['getCellLocation'](_0x5aacf6),{column:_0x558c40}=_0x348402['getCellLocation'](_0x2520a6);for(let _0x42af01=_0x1b2db5;_0x42af01<=_0x558c40;_0x42af01++){const _0x9a5583=_0x348402['createTableWalker'](_0x580d4a,{'column':_0x42af01,'includeAllSlots':!0x1});for(const _0x3a2445 of _0x9a5583){const _0x5bd3ac=_0x3a2445['cell'],_0x1b1a15=_0x4a57b9['mapper']['toViewElement'](_0x5bd3ac);_0x4a57b9['writer']['addClass']('ck-suggestion-marker-'+_0x1993b8,_0x1b1a15),_0x117094&&_0x4a57b9['writer']['setAttribute']('data-suggestion',_0x39a5a5,_0x1b1a15),_0x4a57b9['mapper']['bindElementToMarker'](_0x1b1a15,_0x1d5d0a['markerName']),_0x207dff&&(_0x13886c['activeMarkers']['includes'](_0x1d5d0a['markerName'])?_0x4a57b9['writer']['addClass']('ck-suggestion-marker--active',_0x1b1a15):_0x4a57b9['writer']['removeClass']('ck-suggestion-marker--active',_0x1b1a15));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5e902f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x37f640,_0x25336b,_0x1c18e1)=>{_0x1c18e1['options']['showSuggestionHighlights']&&_0x5e902f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x37f640,_0x25336b,_0x1c18e1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x33a3c7,_0x452466,_0x96ca8f)=>{const {type:_0x25742b,id:_0x46ae82}=_0x309b71(_0x452466['markerName']);if(!_0x13886c['hasSuggestion'](_0x46ae82))return;const _0x3debab=_0x13886c['getSuggestion'](_0x46ae82),_0x4052e3=_0x3debab['data'];if('formatBlock'!=_0x3debab['type']||!_0x4052e3||'setTableColumnHeader'!=_0x4052e3['commandName'])return;const _0x338fba=_0x96ca8f['mapper']['markerNameToElements'](_0x452466['markerName']);if(_0x338fba){for(const _0x220d2a of _0x338fba)_0x96ca8f['writer']['removeClass']('ck-suggestion-marker-'+_0x25742b,_0x220d2a),_0x96ca8f['writer']['removeClass']('ck-suggestion-marker--active',_0x220d2a),_0x96ca8f['writer']['removeAttribute']('data-suggestion',_0x220d2a),_0x96ca8f['mapper']['unbindElementFromMarkerName'](_0x220d2a,_0x452466['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x105bf2=this['editor'],_0x505d90=_0x105bf2['locale'];function _0x244c24(_0x4996a8){return{'type':'format','content':Tt(_0x505d90,'*Format:*\x20%0',_0x4996a8)};}_0x105bf2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e9637=>{if('formatBlock'!=_0x4e9637['type'])return;const {data:_0x1170a1}=_0x4e9637;if(_0x1170a1){if('setTableRowHeader'==_0x1170a1['commandName']){const _0x5e6ccd=_0x1170a1['commandParams'][0x0]['forceValue'];return _0x244c24(Tt(_0x505d90,_0x5e6ccd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1170a1['commandName']){const _0x2c2ee9=_0x1170a1['commandParams'][0x0]['forceValue'];return _0x244c24(Tt(_0x505d90,_0x2c2ee9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1f1a8d=this['editor'];if(!_0x1f1a8d['plugins']['has']('TableEditing')||!_0x1f1a8d['config']['get']('table.enableFooters'))return;const _0xbd3669=_0x1f1a8d['locale'],_0x5e3168=_0x1f1a8d['plugins']['get']('TrackChangesEditing');_0x5e3168['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5e3168['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0xbd3669,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x3cecf3{['afterInit'](){const _0x3cef4d=this['editor'],_0x4e9fd0=_0x3cef4d['locale'],_0x32a20f=_0x3cef4d['plugins']['get']('TrackChangesEditing');function _0x33b036(_0x5baf3e){return{'type':'format','content':''+Tt(_0x4e9fd0,'*Set\x20table\x20type:*\x20%0',_0x5baf3e)};}_0x3cef4d['plugins']['has']('TableLayout')&&(_0x32a20f['enableCommand']('insertTableLayout'),_0x32a20f['enableDefaultAttributesIntegration']('tableType'),_0x32a20f['descriptionFactory']['registerElementLabel'](_0x4a5d9f=>_0x4a5d9f['is']('element','table')&&'layout'===_0x4a5d9f['getAttribute']('tableType'),_0x4a64d8=>Tt(_0x4e9fd0,'ELEMENT_LAYOUT_TABLE',_0x4a64d8)),_0x32a20f['descriptionFactory']['registerDescriptionCallback'](_0x4468c3=>{const {data:_0x4c644c}=_0x4468c3;if(_0x4c644c&&'tableType'==_0x4c644c['key'])switch(_0x4c644c['newValue']){case'layout':return _0x33b036(Tt(_0x4e9fd0,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x33b036(Tt(_0x4e9fd0,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Mt['map'](_0x40650f=>[_0x40650f,null]));class TrackChangesTableClipboard extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x339c10=this['editor'];if(!_0x339c10['plugins']['has']('TableClipboard'))return;const _0x4b0531=_0x339c10['plugins']['get']('TrackChangesEditing'),_0xcdbe12=_0x339c10['plugins']['get']('TableUtils'),_0x212aa0=_0x339c10['plugins']['get'](TrackChangesTable),_0x235e99=_0x339c10['plugins']['get']('TableClipboard'),_0x5958c7=_0x339c10['plugins']['get']('TableSelection'),_0x5b0017=_0x339c10['plugins']['get'](ut);_0x212aa0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x339c10['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x339c10['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f109f=null,_0x558ca1=!0x1;_0x5b0017['on']('contentInsertion',(_0x531ae8,_0x210095)=>{_0x558ca1='paste'===_0x210095['method'];}),_0x339c10['model']['on']('insertContent',(_0x4d7519,_0x27edea)=>{if(!_0x558ca1&&null===_0x5958c7['getSelectedTableCells']())return;const [_0x3eb2cb,_0x7991f5]=_0x27edea,_0x238c53=_0x27edea[_0x27edea['length']-0x1];_0x238c53&&_0x238c53['forceDefaultExecution']||_0x4b0531['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x29899e,_0x515bab,_0x5172df,_0x95d5d7,_0x2fd81e){if(_0x515bab&&!_0x515bab['is']('documentSelection'))return!0x1;const _0x3f0b5c=_0x2fd81e['getTableIfOnlyTableInContent'](_0x29899e,_0x5172df);if(!_0x3f0b5c||!Bt(_0x3f0b5c,void 0x0,_0x95d5d7))return!0x1;const _0x5e0f2c=_0x95d5d7['getSelectionAffectedTableCells'](_0x5172df['document']['selection']);if(!_0x5e0f2c['length'])return!0x1;const _0x2cab15=_0x5e0f2c[0x0]['findAncestor']('table'),_0x20cf27=_0x95d5d7['getRowIndexes'](_0x5e0f2c),_0x3ad1c9=_0x95d5d7['getColumnIndexes'](_0x5e0f2c),_0x1276c3={'startRow':_0x20cf27['first'],'endRow':_0x20cf27['last'],'startColumn':_0x3ad1c9['first'],'endColumn':_0x3ad1c9['last']};return 0x1==_0x5e0f2c['length']&&(_0x1276c3['endRow']+=_0x95d5d7['getRows'](_0x3f0b5c)-0x1,_0x1276c3['endColumn']+=_0x95d5d7['getColumns'](_0x3f0b5c)-0x1),Bt(_0x2cab15,_0x1276c3,_0x95d5d7);}(_0x3eb2cb,_0x7991f5,_0x339c10['model'],_0xcdbe12,_0x235e99)&&(_0x4d7519['stop'](),_0x2f109f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x339c10['model']['change'](()=>{_0x339c10['model']['insertContent'](_0x27edea[0x0],_0x27edea[0x1],_0x27edea[0x2],{'forceDefaultExecution':!0x0});const _0x35b296=_0x15c67d(),{rowInsertionRanges:_0x400239,columnInsertionRanges:_0x4b4ac2,insertionRanges:_0x426081,deletionRanges:_0x3ec54f,cells:_0x7b18e8}=_0x2f109f;_0x400239['length']&&_0x4b0531['markMultiRangeInsertion'](_0x400239,'tablePasteRow',{'tablePasteChainId':_0x35b296}),_0x4b4ac2['length']&&_0x4b0531['markMultiRangeInsertion'](_0x4b4ac2,'tablePasteColumn',{'tablePasteChainId':_0x35b296}),_0x426081['length']&&(_0x4b0531['markMultiRangeInsertion'](_0x426081,'tablePaste',{'tablePasteChainId':_0x35b296,'skipNestingCheck':!0x0}),_0x426081['forEach'](_0x5ebdac=>_0x5ebdac['detach']?.())),_0x3ec54f['length']&&(_0x4b0531['markMultiRangeDeletion'](_0x3ec54f,'tablePaste',{'tablePasteChainId':_0x35b296,'skipNestingCheck':!0x0}),_0x3ec54f['forEach'](_0x166703=>_0x166703['detach']?.()));const _0x4b4f7d=_0x4b0531['markMultiRangeBlockFormat'](_0x7b18e8['map'](({element:_0x3e771e})=>_0x3e771e),{'formatGroupId':_0x15c67d()},[],'tablePasteCell',{'tablePasteChainId':_0x35b296});if(_0x4b4f7d){const _0x54312f=_0x4b4f7d['getMarkers'](),_0x57502b=[];for(const {element:_0x3c51a6,attributes:_0x417974}of _0x7b18e8){if(!_0x417974)continue;const _0x45a44b=_0x339c10['model']['createRangeOn'](_0x3c51a6),_0x1924fb=_0x54312f['find'](_0x4e28a2=>_0x4e28a2['getRange']()['isEqual'](_0x45a44b));_0x1924fb&&_0x57502b['push']([_0x1924fb['name'],_0x417974]);}_0x57502b['length']&&_0x4b4f7d['setAttribute']('markerAttributes',Object['fromEntries'](_0x57502b));}_0x2f109f=null;}));},{'priority':_0x4f16be['high']+0xa}),_0x5b0017['on']('contentInsertion',()=>{_0x558ca1=!0x1;},{'priority':'lowest'}),_0x339c10['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2a30fc,_0x2720ce)=>{const [_0x40a3fb,_0x4a4b4d,,_0x41ef42]=_0x2720ce;if(!_0x2f109f)return;_0x2a30fc['stop']();const _0x5a6147=_0x40a3fb['cell'],_0x49bb59=_0x4a4b4d,_0x9b51d2=wt(_0x5a6147),_0x1f3e10=wt(_0x49bb59);_0x2a30fc['return']=_0x5a6147;let _0x5aff8e=null,_0x4e9ed3=null;if(_0x1f3e10||_0x9b51d2){if(_0x9b51d2&&!_0x1f3e10){_0x41ef42['remove'](_0x5a6147['getChild'](0x0));for(const _0x3c790d of Array['from'](_0x49bb59['getChildren']()))_0x41ef42['insert'](_0x3c790d,_0x5a6147,'end');const _0x5f48c8=_0x2f109f['rowInsertionIndexes']['includes'](_0x40a3fb['row']),_0x55a1ec=_0x2f109f['columnInsertionIndexes']['includes'](_0x40a3fb['column']);_0x5f48c8||_0x55a1ec||(_0x5aff8e=_0x52f028['fromRange'](_0x41ef42['createRangeIn'](_0x5a6147)));}else _0x1f3e10&&!_0x9b51d2&&(_0x4e9ed3=_0x41ef42['createRangeIn'](_0x5a6147));}else{const _0x5a64bf=_0x41ef42['createElement']('tableCellSuggestion'),_0x3eea34=_0x41ef42['createElement']('tableCellSuggestion');_0x41ef42['wrap'](_0x41ef42['createRangeIn'](_0x5a6147),_0x3eea34),_0x41ef42['insert'](_0x5a64bf,_0x5a6147,0x0);for(const _0x2c2408 of Array['from'](_0x49bb59['getChildren']()))_0x41ef42['insert'](_0x2c2408,_0x5a64bf,'end');_0x5aff8e=_0x52f028['fromRange'](_0x41ef42['createRangeOn'](_0x5a64bf)),_0x4e9ed3=_0x52f028['fromRange'](_0x41ef42['createRangeOn'](_0x3eea34));}const _0x46d433=Array['from'](_0x49bb59['getAttributes']())['filter'](([_0x4a718e])=>Mt['includes'](_0x4a718e));_0x2f109f['cells']['push']({'element':_0x5a6147,'attributes':_0x46d433['length']?Object['fromEntries'](_0x46d433):null}),_0x5aff8e&&_0x2f109f['insertionRanges']['push'](_0x5aff8e),_0x4e9ed3&&_0x2f109f['deletionRanges']['push'](_0x4e9ed3);},{'priority':'high'}),_0xcdbe12['on']('insertColumns',(_0x2b0a3f,_0xf58fbf)=>{const [_0xd838a4,_0x316f21={}]=_0xf58fbf;if(!_0x2f109f)return;const _0x599a28=_0x316f21['at']||0x0,_0x2e3ef1=_0x316f21['columns']||0x1;_0x2f109f['columnInsertionIndexes']=new Array(_0x2e3ef1)['fill'](_0x599a28)['map']((_0x549ef4,_0xffe906)=>_0x549ef4+_0xffe906);for(const {cell:_0x533406}of _0xcdbe12['createTableWalker'](_0xd838a4,{'startColumn':_0x599a28,'endColumn':_0x599a28+_0x2e3ef1-0x1}))_0x2f109f['columnInsertionRanges']['push'](_0x339c10['model']['createRangeOn'](_0x533406));},{'priority':'low'}),_0xcdbe12['on']('insertRows',(_0x56c063,_0x4793b6)=>{const [_0x3f59b1,_0x461f8c={}]=_0x4793b6;if(!_0x2f109f)return;const _0x2f7550=_0x461f8c['at']||0x0,_0x14e71d=_0x461f8c['rows']||0x1;_0x2f109f['rowInsertionIndexes']=new Array(_0x14e71d)['fill'](_0x2f7550)['map']((_0x23ac70,_0x4b4566)=>_0x23ac70+_0x4b4566);for(const {cell:_0x4d5273}of _0xcdbe12['createTableWalker'](_0x3f59b1,{'startRow':_0x2f7550,'endRow':_0x2f7550+_0x14e71d-0x1}))_0x2f109f['rowInsertionRanges']['push'](_0x339c10['model']['createRangeOn'](_0x4d5273));},{'priority':'low'}),_0x4b0531['descriptionFactory']['registerDescriptionCallback'](_0x53c6b9=>{if(_0x53c6b9['subType']&&_0x53c6b9['subType']['startsWith']('tablePaste'))return _0x53c6b9['previous']?{}:{'type':'insertion','content':Tt(_0x339c10['locale'],'*Replace\x20table\x20cells*')};});const _0x43311a=()=>!0x1;for(const _0x292e6d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b0531['_suggestionFactory']['registerCustomCallback']('insertion',_0x292e6d,'join',_0x43311a),_0x4b0531['_suggestionFactory']['registerCustomCallback']('deletion',_0x292e6d,'join',_0x43311a),_0x4b0531['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x292e6d,'join',_0x43311a);_0x4b0531['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43311a),_0x4b0531['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x320c08,_0x23fcf9,_0x4e9af4)=>{const _0x525536=_0x320c08['map'](_0x303791=>_0x303791['getContainedElement']())['filter'](_0x44f87c=>_0x44f87c),_0x512b32=new Map(_0x525536['map'](_0x3ea953=>[_0x3ea953,null]));if(_0x2f109f){for(const {element:_0x1fad61,attributes:_0x1cbbfc}of _0x2f109f['cells'])_0x1cbbfc&&_0x512b32['set'](_0x1fad61,_0x1cbbfc);}else{if(_0x4e9af4&&_0x4e9af4['markerAttributes'])for(const [_0x587c4f,_0x451ac4]of Object['entries'](_0x4e9af4['markerAttributes'])){const _0x1b5718=_0x339c10['model']['markers']['get'](_0x587c4f),_0x440061=_0x1b5718?_0x1b5718['getRange']()['getContainedElement']():null;_0x440061&&_0x512b32['set'](_0x440061,_0x451ac4);}}_0x339c10['model']['change'](_0x2d9dd1=>{for(const [_0x3d15e2,_0x4a92de]of _0x512b32)_0x2d9dd1['setAttributes']({...Ot,..._0x4a92de},_0x3d15e2);});});const _0x3195c1=(_0x29681c,_0x23d0f8)=>{_0x4b0531['_suggestionFactory']['registerCustomCallback'](_0x29681c,'tablePaste',_0x23d0f8,(_0x2f1d37,_0x4b694a,_0xd8b447)=>{_0x339c10['model']['change'](_0x47a43b=>{const _0x443d62=[];for(const _0x2d98aa of _0x2f1d37){const _0x11ae2d=_0x2d98aa['start']['nodeAfter'];_0x11ae2d['is']('element','tableCellSuggestion')&&_0x443d62['push'](_0x11ae2d);}_0x4b0531['_suggestionFactory']['getSuggestionCallback'](_0x29681c,null,_0x23d0f8)(_0x2f1d37,_0x4b694a,_0xd8b447);for(const _0x166046 of _0x443d62)'$graveyard'!=_0x166046['root']['rootName']&&_0x47a43b['unwrap'](_0x166046);});});};_0x3195c1('insertion','accept'),_0x3195c1('insertion','discard'),_0x3195c1('deletion','accept'),_0x3195c1('deletion','discard'),_0x4b0531['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x264299=>{const _0x517571=_0x264299['map'](_0x342ded=>_0x342ded['getContainedElement']()),_0x4aa368=_0x517571[0x0]['findAncestor']('table'),{minRow:_0x4bab12,maxRow:_0x135d71}=_0x212aa0['_getCoordsForCells'](_0x517571);_0xcdbe12['removeRows'](_0x4aa368,{'at':_0x4bab12,'rows':_0x135d71-_0x4bab12+0x1});}),_0x4b0531['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4e0814=>{const _0x261de1=_0x4e0814['map'](_0x5c1d61=>_0x5c1d61['getContainedElement']()),_0x1373f4=_0x261de1[0x0]['findAncestor']('table'),{minColumn:_0x389e18,maxColumn:_0xec9924}=_0x212aa0['_getCoordsForCells'](_0x261de1);_0xcdbe12['removeColumns'](_0x1373f4,{'at':_0x389e18,'columns':_0xec9924-_0x389e18+0x1});});const _0x5b0184=(_0x4f6575,_0x536a34)=>{if(!_0x536a34['subType']||!_0x536a34['subType']['startsWith']('tablePaste'))return;const _0x50f2c4=_0x536a34['attributes']['tablePasteChainId'],_0x266275=_0x4b0531['getSuggestions']()['filter'](_0x2dc105=>_0x2dc105['isInContent']&&_0x2dc105['attributes']&&_0x2dc105['attributes']['tablePasteChainId']==_0x50f2c4);_0x266275['length']&&_0x536a34['getAllAdjacentSuggestions']()['length']!=_0x266275['length']&&_0x266275['reduce']((_0x223575,_0x1af06a)=>(_0x223575['next']=_0x1af06a,_0x1af06a['previous']=_0x223575,_0x1af06a));};function _0x462afa(_0x14152b,_0x4aa5ab=!0x0){const {id:_0x24f56c,authorId:_0x4321d6}=_0x309b71(_0x14152b['markerName']),_0x54514f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x377d12=_0x4b0531['activeMarkers']['includes'](_0x14152b['markerName']);return _0x377d12&&_0x54514f['push']('ck-suggestion-marker--active'),{'classes':_0x54514f,'attributes':{'data-suggestion':_0x24f56c,'data-author-id':_0x4321d6},'priority':_0x377d12&&_0x4aa5ab?0xbc2:0xbb8};}_0x4b0531['on']('suggestionLoaded',_0x5b0184,{'priority':'high'}),_0x4b0531['on']('suggestionUnloaded',_0x5b0184,{'priority':'high'}),_0x339c10['model']['document']['registerPostFixer'](()=>{let _0x3753f1=!0x1;const _0x48a633=Array['from'](_0x339c10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4cf51c,data:_0x13b347}of _0x48a633){const {group:_0xb4e7ac,type:_0xceac45,id:_0x271211}=_0x309b71(_0x4cf51c);if('suggestion'!=_0xb4e7ac||'deletion'!=_0xceac45||_0x13b347['oldRange'])continue;if(!_0x4b0531['hasSuggestion'](_0x271211))continue;const _0x390b3c=_0x4b0531['getSuggestion'](_0x271211)['getRanges'](),_0x3eb89c=_0x339c10['plugins']['get']('Users')['me'];for(const _0x12e216 of _0x4b0531['getSuggestions']()){if(!_0x12e216['isInContent']||_0x12e216['author']!=_0x3eb89c)continue;if('formatBlock'!=_0x12e216['type']||'tablePasteCell'!=_0x12e216['subType'])continue;if(_0x12e216['getRanges']()['every'](_0x51b50b=>_0x390b3c['some'](_0x471f82=>_0x471f82['containsRange'](_0x51b50b,!0x0)))){for(const _0x4cc2f8 of _0x12e216['getAllAdjacentSuggestions']())_0x4cc2f8['isInContent']&&(_0x4cc2f8['discard'](),_0x3753f1=!0x0);}}}return _0x3753f1;}),_0x339c10['model']['document']['registerPostFixer'](_0x4bc5f2=>{const _0x18db35=_0x339c10['commands']['get']('redo');if(!_0x18db35||!_0x18db35['_createdBatches']['has'](_0x4bc5f2['batch']))return!0x1;let _0x12d1ae=!0x1;const _0x24272c=_0x339c10['plugins']['get']('Users')['me'],_0x18005f=_0x339c10['model']['document']['differ']['getChanges'](),_0x280d24=Array['from'](_0x339c10['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xae88a1,data:_0x4da108})=>{const {group:_0x585b2e,subType:_0x464dad,authorId:_0x158469}=_0x309b71(_0xae88a1);return'suggestion'==_0x585b2e&&'tablePaste'==_0x464dad&&_0x158469==_0x24272c['id']&&!_0x4da108['oldRange'];});for(const _0x43ccb0 of _0x18005f){if('insert'!=_0x43ccb0['type']||'tableCellSuggestion'!=_0x43ccb0['name']||0x1!=_0x43ccb0['length'])continue;const _0x562b47=_0x4bc5f2['createRange'](_0x43ccb0['position'],_0x43ccb0['position']['getShiftedBy'](0x1));if(!_0x280d24['find'](({data:_0x5a1f57})=>_0x5a1f57['newRange']['isEqual'](_0x562b47))){for(const {name:_0x17066c,data:_0xff7e2f}of _0x280d24)if(_0x562b47['containsRange'](_0xff7e2f['newRange'])){_0x4bc5f2['updateMarker'](_0x17066c,{'range':_0x562b47}),_0x12d1ae=!0x0;break;}}}return _0x12d1ae;}),_0x339c10['model']['document']['registerPostFixer'](_0x12eb49=>{let _0x57cbff=!0x1;const _0x58e5b6=_0x339c10['plugins']['get']('Users')['me'],_0x2464d3=_0x4b0531['getSuggestions']()['filter'](_0x5c47d8=>_0x5c47d8['isInContent']&&_0x5c47d8['author']==_0x58e5b6),_0x3316de=new Set(),_0x1ad72b=new Set();for(const _0xf4f393 of _0x2464d3)if('tablePaste'==_0xf4f393['subType'])for(const _0x1363f6 of _0xf4f393['getMarkers']()){const _0xb1a089=_0x1363f6['getRange']()['getContainedElement']();if(_0xb1a089){if(_0xb1a089['is']('element','tableCellSuggestion')&&wt(_0xb1a089)){_0xf4f393['removeMarker'](_0x1363f6['name']),_0x3316de['add'](_0xb1a089),_0x57cbff=!0x0;const _0x56bfac=_0xb1a089['nextSibling'],_0x309185=_0xb1a089['previousSibling'],_0x6ba1b2=_0x56bfac&&_0x56bfac['is']('element','tableCellSuggestion'),_0x53e612=_0x309185&&_0x309185['is']('element','tableCellSuggestion');_0x6ba1b2&&!_0x3316de['has'](_0x56bfac)&&_0x1ad72b['add'](_0x56bfac),_0x53e612&&!_0x3316de['has'](_0x309185)&&_0x1ad72b['add'](_0x309185);}else _0xb1a089['is']('element','paragraph')&&_0xb1a089['isEmpty']&&(_0xf4f393['removeMarker'](_0x1363f6['name']),_0x57cbff=!0x0);}}else{if('tablePasteCell'==_0xf4f393['subType']){if(!_0xf4f393['attributes']||!_0xf4f393['attributes']['tablePasteChainId'])continue;const _0x545c83=_0xf4f393['attributes']['markerAttributes'];if(_0x545c83&&Object['keys'](_0x545c83)['length'])continue;const _0x5c85e8=_0xf4f393['attributes']['tablePasteChainId'];let _0x2c44e0=!0x0,_0x5f36fa=!0x0;for(const _0x556a7b of _0x2464d3)if(_0x556a7b['subType']&&_0x556a7b['subType']['startsWith']('tablePaste')){if(!_0x556a7b['attributes']['tablePasteChainId']){_0x5f36fa=!0x1;break;}if(_0x556a7b['id']!=_0xf4f393['id']&&_0x556a7b['attributes']['tablePasteChainId']==_0x5c85e8){_0x2c44e0=!0x1;break;}}_0x5f36fa&&_0x2c44e0&&(_0xf4f393['removeMarkers'](),_0x57cbff=!0x0);}}for(const _0x4053d2 of _0x3316de)_0x12eb49['remove'](_0x4053d2);for(const _0x433040 of _0x1ad72b)_0x12eb49['unwrap'](_0x433040);return _0x57cbff;}),_0x339c10['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1a1e39=>_0x462afa(_0x1a1e39),'converterPriority':'high'}),_0x339c10['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36c878,_0x40f540)=>_0x40f540['options']['showSuggestionHighlights']?_0x462afa(_0x36c878,!0x1):null,'converterPriority':'high'});const _0x58a0a3=_0x339c10['editing']['view'];this['listenTo'](_0x58a0a3['document'],'clipboardOutput',(_0x38ab4e,_0x22adc4)=>{const _0x37285c=[];for(const _0x42c4bc of _0x58a0a3['createRangeIn'](_0x22adc4['content'])['getItems']())_0x42c4bc['is']('element','suggestion-td')&&_0x37285c['push'](_0x42c4bc);_0x58a0a3['change'](_0x374d92=>{for(const _0x8d2025 of _0x37285c)_0x374d92['move'](_0x374d92['createRangeIn'](_0x8d2025),_0x374d92['createPositionBefore'](_0x8d2025)),_0x374d92['remove'](_0x8d2025);});});}}function wt(_0x13dec2){if(_0x13dec2['isEmpty'])return!0x0;const _0x4a8f18=_0x13dec2['getChild'](0x0);return _0x4a8f18['is']('element','paragraph')&&_0x4a8f18['isEmpty'];}function Bt(_0xbe1f1e,_0x1f070f={},_0x411b2b){for(const {isAnchor:_0x225ddd,cellHeight:_0x356ba8,cellWidth:_0x2581af}of _0x411b2b['createTableWalker'](_0xbe1f1e,{'includeAllSlots':!0x0,..._0x1f070f}))if(!_0x225ddd||0x1!=_0x356ba8||0x1!=_0x2581af)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x3cecf3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37ea7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x37ea7b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37ea7b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37ea7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37ea7b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37ea7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37ea7b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1c619c,_0xd8723e){const _0xdd5dc8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23e097=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x114a12=_0xd8723e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3cc4ba=_0x23e097['getColumnGroupElement'](_0x114a12);let _0xf48c22=_0x3cc4ba?_0x23e097['getTableColumnsWidths'](_0x3cc4ba):null,_0x5714a2=_0x114a12['getAttribute']('tableWidth')||null;const _0x301271=_0xd8723e['tableWidth']||_0x5714a2,_0x4753dd=_0xd8723e['columnWidths']||_0xf48c22,_0x1f43a0=this['editor']['plugins']['get']('Users')['me'];for(const _0x14d40e of _0xdd5dc8['getSuggestions']()){const _0x34fa5d=_0x14d40e['getContainedElement']();if('resizeTable'===_0x14d40e['subType']&&_0x34fa5d===_0x114a12){_0x14d40e['author']!==_0x1f43a0&&_0x14d40e['discard']();const _0x129bb7=_0x14d40e['data']['commandParams'];_0x5714a2=_0x129bb7[0x0]['tableWidth'],_0xf48c22=_0x129bb7[0x0]['columnWidths'];break;}}_0x1c619c({'table':_0x114a12,'tableWidth':_0x301271,'columnWidths':_0x4753dd}),_0xdd5dc8['markBlockFormat'](_0x114a12,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5714a2,'columnWidths':_0xf48c22}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1902ce){if('formatBlock'!=_0x1902ce['type']&&'formatInline'!=_0x1902ce['type'])return;const {data:_0x5c8b85}=_0x1902ce;if(_0x5c8b85&&'resizeTable'===_0x5c8b85['formatGroupId']){const _0x165875='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x165875)};}}}class TrackChangesTemplate extends _0x3cecf3{['afterInit'](){const _0x291613=this['editor'];_0x291613['plugins']['has']('Template')&&_0x291613['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x3cecf3{['afterInit'](){const _0x4fa97e=this['editor'];if(!_0x4fa97e['commands']['get']('insertTableOfContents'))return;_0x4fa97e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1069b3=_0x4fa97e['plugins']['get']('TrackChangesEditing'),_0x323d82=_0x4fa97e['locale'];_0x1069b3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x141a04=>Tt(_0x323d82,'ELEMENT_TABLE_OF_CONTENTS',_0x141a04));}}class TrackChangesTitle extends _0x3cecf3{['afterInit'](){const _0x1dc373=this['editor'];if(!_0x1dc373['plugins']['has']('Title'))return;_0x1dc373['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x1dc373['locale'],'ELEMENT_TITLE')),_0x1dc373['model']['document']['registerPostFixer'](_0x1cb2e4=>{let _0x50e1fc=!0x1;const _0x1b3334=Array['from'](_0x1dc373['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x544206,data:_0x5a3823}of _0x1b3334){const {group:_0xf17683}=_0x309b71(_0x544206);if('suggestion'!==_0xf17683||!_0x5a3823['newRange'])continue;const _0x41a05e=_0x5a3823['newRange'],_0x70a6db=_0x41a05e['end']['nodeBefore'];if(!_0x70a6db||!_0x70a6db['is']('element','title-content'))continue;if(!_0x41a05e['start']['isTouching'](_0x41a05e['end']))continue;const _0xa5f904=_0x1dc373['model']['schema']['getNearestSelectionRange'](_0x41a05e['end'],'forward');if(_0xa5f904&&_0xa5f904['isCollapsed']){const _0x2570d8=_0x1cb2e4['createRange'](_0x41a05e['start'],_0xa5f904['start']);_0x2570d8['isEqual'](_0x41a05e)||(_0x1cb2e4['updateMarker'](_0x544206,{'range':_0x2570d8}),_0x50e1fc=!0x0);}_0x50e1fc||(_0x1cb2e4['removeMarker'](_0x544206),_0x50e1fc=!0x0);}return _0x50e1fc;});}}class TrackChangesUploadcare extends _0x3cecf3{['afterInit'](){const _0x7bbfcc=this['editor'],_0x38ec20=_0x7bbfcc['plugins']['get']('TrackChangesEditing');_0x7bbfcc['plugins']['has']('Uploadcare')&&(_0x38ec20['enableCommand']('uploadcare'),_0x7bbfcc['plugins']['has']('UploadcareImageEdit')&&(_0x38ec20['enableCommand']('uploadcareImageEdit'),_0x38ec20['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x38ec20['descriptionFactory']['registerDescriptionCallback'](_0x3b0ea5=>{if('attribute'!=_0x3b0ea5['type'])return;const {data:_0x9b9716}=_0x3b0ea5;return _0x9b9716&&'uploadcareImageId'==_0x9b9716['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x3cecf3{['afterInit'](){const _0x2ec2a4=this['editor'],_0x1b7912=_0x2ec2a4['plugins']['get']('TrackChangesEditing');_0x2ec2a4['plugins']['has']('UndoEditing')&&(_0x1b7912['enableCommand']('undo'),_0x1b7912['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x3cecf3{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x50c485=this['editor'];if(!_0x50c485['plugins']['has']('TableCaptionEditing'))return;_0x50c485['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x3cecf3{['tableProperties'];['tableCellProperties'];constructor(_0x252b13){super(_0x252b13),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x11d7a4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x18f26e of this['tableProperties'])_0x11d7a4['enableCommand'](_0x18f26e,(_0x1570e7,_0x1efa55)=>{const _0x5a7a7a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x18f26e,[_0x5a7a7a],this['tableProperties'],'tableProperties',_0x1570e7,_0x1efa55);});_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x11d7a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e9420,_0x40fc62)=>this['handleDiscardAction'](this['tableProperties'],_0x2e9420,_0x40fc62)),_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x132751 of this['tableCellProperties'])this['editor']['commands']['get'](_0x132751)&&_0x11d7a4['enableCommand'](_0x132751,(_0x396454,_0x3c8b5f)=>{const _0x5b4915=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x132751,_0x5b4915,this['tableCellProperties'],'tableCellProperties',_0x396454,_0x3c8b5f);});_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x11d7a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xeb31cd,_0x5eba73)=>this['handleDiscardAction'](this['tableCellProperties'],_0xeb31cd,_0x5eba73)),_0x11d7a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x11d7a4['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x11d7a4['descriptionFactory']['registerDescriptionCallback'](_0x2e7eaf=>this['handleSuggestionDescription'](_0x2e7eaf)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2c75e7,_0x124c04,_0x1d2f06,_0x22d12f,_0x13338f,_0x2f9edf){const _0x5b3fcc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f9edf['batch'],()=>{for(const _0x14d7ec of _0x124c04){if(this['_getSuggestion'](_0x14d7ec,_0x22d12f))_0x13338f(_0x2f9edf);else{const _0x2f47ad={};for(const _0x507f9b of _0x1d2f06){const _0x329969=_0x14d7ec['getAttribute'](_0x507f9b);void 0x0!==_0x329969&&(_0x2f47ad[_0x507f9b]=_0x329969);}_0x13338f(_0x2f9edf),_0x5b3fcc['markBlockFormat'](_0x14d7ec,{'commandParams':[_0x2f47ad]},[],_0x22d12f);}}});}['handleDiscardAction'](_0x4d9c1a,_0x576ae0,_0x4ed4da){const _0x23d8e8=_0x576ae0[0x0]['start']['nodeAfter'],_0xb9ca99=_0x4ed4da['commandParams'][0x0];this['editor']['model']['change'](_0x6da834=>{for(const _0x3f83f9 of _0x4d9c1a)void 0x0!==_0xb9ca99[_0x3f83f9]?_0x6da834['setAttribute'](_0x3f83f9,_0xb9ca99[_0x3f83f9],_0x23d8e8):_0x6da834['removeAttribute'](_0x3f83f9,_0x23d8e8);});}['handleSuggestionDescription'](_0xfa167e){if(_0xfa167e['data'])switch(_0xfa167e['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x49fb23,_0x5e2df6){const _0x4019ef=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x53c3d8 of _0x4019ef['getSuggestions']({'skipNotAttached':!0x0})){const _0x1b23f8=_0x53c3d8['getContainedElement']();if(_0x53c3d8['subType']===_0x5e2df6&&_0x1b23f8===_0x49fb23)return _0x53c3d8;}return null;}['_registerTablePropertiesAttributes'](){const _0x55b632=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4400a9=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x593922 of _0x4400a9){const _0x309539=_0x593922['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x55b632['descriptionFactory']['registerAttributeLabel'](_0x593922,Tt(this['editor']['locale'],'FORMAT_'+_0x309539));}}}class TrackChangesLineHeight extends _0x3cecf3{['afterInit'](){const _0x4ab7a7=this['editor'];if(!_0x4ab7a7['plugins']['has']('LineHeight'))return;const _0x4d0b35=_0x4ab7a7['plugins']['get']('TrackChangesEditing'),_0x2224d1=_0x4ab7a7['locale'];_0x4d0b35['enableDefaultAttributesIntegration']('lineHeight'),_0x4d0b35['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x2224d1,'FORMAT_LINE_HEIGHT'));}}const Ft='$elementName';class TrackChangesEditing extends _0x3cecf3{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x3aec4d,_0x3a1f76,_0x519d42,_0x24243d,_0x261f31,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a3f65){super(_0x2a3f65),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x419538,_0x38755d,_0x344549,_0x4d6230)=>{this['_model']['change'](()=>{for(const _0x53b2f2 of[..._0x4d6230,..._0x344549])this['_model']['markers']['has'](_0x53b2f2)&&_0x2a3f65['editing']['reconvertMarker'](_0x53b2f2);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2a3f65['plugins']['get'](_0x3aec4d),this['_suggestionsConversion']=_0x2a3f65['plugins']['get'](_0x3a1f76),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2a3f65['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a3f65['config']['get']('trackChanges.trackFormatChanges'),_0x2a3f65['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a3f65['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x2a3f65,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x57ab58=this['editor'];_0x57ab58['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x125502,{writer:_0x297183})=>{let _0x11be73='suggestion:'+_0x125502['getAttribute']('suggestion-type')+':'+_0x125502['getAttribute']('id');return _0x125502['getAttribute']('marker-count')&&(_0x11be73+=':'+_0x125502['getAttribute']('marker-count')),_0x297183['createElement']('$marker',{'data-name':_0x11be73});}}),_0x57ab58['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x57ab58['model']['document']['registerPostFixer'](_0x252ad7=>{let _0x4f172f=!0x1;const _0x4a8840=Array['from'](_0x57ab58['model']['document']['differ']['getChangedMarkers']()),_0x3c43ac=new Set();for(const {name:_0x524120,data:_0x251dd7}of _0x4a8840){const {group:_0xe9fa05,type:_0x472ed1,subType:_0x45ffe2,id:_0x28fc94}=_0x309b71(_0x524120);if('suggestion'!==_0xe9fa05)continue;const _0x2471a1=_0x45ffe2?'suggestion:'+_0x472ed1+':'+_0x45ffe2+':'+_0x28fc94:'suggestion:'+_0x472ed1+':'+_0x28fc94,_0x19f00d=_0x57ab58['model']['markers']['getMarkersGroup'](_0x2471a1),_0x4e5f67=_0x57ab58['model']['markers']['get'](_0x524120),_0x4e3a2f=this['_suggestions']['get'](_0x28fc94);if(null!=_0x251dd7['newRange']){'formatInline'==_0x472ed1&&(_0x4f172f=_0x4f172f||xt(_0x251dd7['newRange'],_0x524120,_0x252ad7,_0x57ab58['model']['schema']));const _0x596fbb='attribute'==_0x472ed1&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x45ffe2)),_0x42a324='attribute'==_0x472ed1&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x45ffe2));if(_0x251dd7['newRange']['isCollapsed']||'$graveyard'==_0x251dd7['newRange']['root']['rootName']||'formatBlock'==_0x472ed1&&!Ut(_0x251dd7['newRange'])||_0x596fbb&&!Ut(_0x251dd7['newRange'])||_0x42a324&&Gt(_0x251dd7['newRange'])||'deletion'==_0x472ed1&&Gt(_0x251dd7['newRange'])||_0x4e5f67&&Ht(_0x4e5f67,_0x19f00d))_0x252ad7['removeMarker'](_0x524120),_0x4f172f=!0x0;else{if(!_0x4e3a2f||!_0x4e3a2f['isInContent'])continue;if(_0x251dd7['newRange']&&_0x251dd7['oldRange']&&_0x251dd7['newRange']['isEqual'](_0x251dd7['oldRange']))continue;_0x3c43ac['add'](_0x4e3a2f);}}}return _0x3c43ac['size']>0x0&&(_0x4f172f=!!this['_joinWithAdjacentSuggestions'](_0x3c43ac)||_0x4f172f),_0x4f172f;}),_0x57ab58['model']['document']['registerPostFixer'](_0x3ff121=>{let _0x4f0212=!0x1;for(const _0x46011c of _0x57ab58['model']['document']['differ']['getChanges']())if('insert'==_0x46011c['type'])for(const _0x381a5e of this['_suggestions']['values']()){if(_0x381a5e['isMultiRange']||!_0x381a5e['isInContent'])continue;const _0x5d90f1='formatBlock'==_0x381a5e['type'],_0x48a3f4=this['_getAttributeKey'](_0x381a5e),_0x10c204=_0x48a3f4&&this['_suggestionsConversion']['isBlockAttribute'](_0x48a3f4);if(!_0x5d90f1&&!_0x10c204)continue;const _0x437dc8=_0x381a5e['getFirstRange']();if(_0x437dc8['start']['parent']!=_0x437dc8['end']['parent']&&!_0x437dc8['end']['isAtEnd']){const _0x55b640=_0x57ab58['model']['createPositionAt'](_0x437dc8['start']['nodeAfter'],'end'),_0x1ebf90=_0x57ab58['model']['createRange'](_0x437dc8['start'],_0x55b640);_0x3ff121['updateMarker'](_0x381a5e['getFirstMarker'](),{'range':_0x1ebf90}),_0x4f0212=!0x0;}}return _0x4f0212;}),_0x57ab58['model']['document']['registerPostFixer'](_0x241e42=>this['_processAttributeChanges'](_0x241e42)),_0x57ab58['model']['document']['registerPostFixer'](_0x3e5cf2=>!_0x3e5cf2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3e5cf2)),_0x57ab58['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x57ab58['model']['document']['on']('change:data',(_0x73ce26,_0x566ad9)=>{if(!_0x566ad9['isLocal']||_0x566ad9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1bffc7=_0x57ab58['model']['document']['differ']['getChanges']();if(0x0==_0x1bffc7['length'])return;const _0x269186=[],_0x5ec425=_0x1bffc7['filter'](_0x1de096=>'attribute'==_0x1de096['type']),_0x418c38=_0x1bffc7['filter'](_0x89601e=>'insert'==_0x89601e['type']&&'$text'!=_0x89601e['name']);for(const _0x4b8bc6 of _0x5ec425)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4b8bc6['attributeKey'])&&_0x269186['push']({'key':_0x4b8bc6['attributeKey'],'newValue':_0x4b8bc6['attributeNewValue'],'oldValue':_0x4b8bc6['attributeOldValue'],'range':$t(_0x4b8bc6['range'],_0x57ab58['model'])});for(const _0x1a64e7 of _0x418c38){if('rename'!=_0x1a64e7['action']&&'refresh'!=_0x1a64e7['action'])continue;const _0x280d79=Vt(_0x1a64e7['position']['nodeAfter'],_0x57ab58['model']),_0x1bacac=_0x1a64e7['before'];'rename'==_0x1a64e7['action']&&_0x269186['push']({'key':Ft,'newValue':_0x1a64e7['name'],'oldValue':_0x1bacac['name'],'range':_0x280d79});for(const [_0x4ede35,_0x463728]of _0x1bacac['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4ede35))continue;const _0x4ab409=_0x1a64e7['attributes']['get'](_0x4ede35);_0x463728!==_0x4ab409&&_0x269186['push']({'key':_0x4ede35,'newValue':_0x4ab409,'oldValue':_0x463728,'range':_0x280d79});}for(const [_0x56081a,_0x2d6575]of _0x1a64e7['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x56081a)&&(_0x1bacac['attributes']['has'](_0x56081a)||_0x269186['push']({'key':_0x56081a,'newValue':_0x2d6575,'oldValue':null,'range':_0x280d79}));}0x0!=_0x269186['length']&&_0x57ab58['model']['enqueueChange'](_0x566ad9,_0x569a6b=>{const _0x114371=_0x15c67d();for(const {range:_0x3f2acc,key:_0x4d00b1,oldValue:_0x4637ee,newValue:_0x3d4fa4}of _0x269186)this['markAttributeChange'](_0x3f2acc,_0x4d00b1,_0x4637ee,_0x3d4fa4,{'groupId':_0x114371});this['_reduceExistingSuggestions'](_0x569a6b,_0x269186);});},{'priority':'lowest'}),_0x57ab58['model']['markers']['on']('update:suggestion',(_0x20a3bf,_0x78a615,_0x2f8090)=>{if(null==_0x2f8090){const {id:_0x36de5b}=_0x309b71(_0x78a615['name']),_0xd435c2=this['_suggestions']['get'](_0x36de5b);_0xd435c2&&_0xd435c2['addMarkerName'](_0x78a615['name']);}}),_0x57ab58['model']['document']['on']('change:data',()=>{const _0x5e40db=Array['from'](_0x57ab58['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4c1a6f=>'suggestion'===_0x309b71(_0x4c1a6f['name'])['group']);if(0x0===_0x5e40db['length'])return;_0x5e40db['sort']((_0x4d1eee,_0x206ce1)=>{const _0x43e1fe=_0x4d1eee['data']['oldRange'],_0x166ad1=_0x206ce1['data']['oldRange'];return null===_0x43e1fe&&null===_0x166ad1?0x0:null===_0x43e1fe&&null!==_0x166ad1?-0x1:null!==_0x43e1fe&&null===_0x166ad1?0x1:_0x43e1fe['start']['isBefore'](_0x166ad1['start'])?-0x1:0x1;});const _0xd44101=new Set(),_0x29ebd8=new Set();for(const {name:_0x355554,data:_0x51d6a9}of _0x5e40db){const {id:_0x24aebb}=_0x309b71(_0x355554);if(null===_0x51d6a9['oldRange']){const _0x46517e=this['_handleNewSuggestionMarker'](_0x355554);_0x29ebd8['add'](_0x46517e);}else{const _0x42243c=this['_suggestions']['get'](_0x24aebb);null!==_0x51d6a9['newRange']||_0x42243c['isInContent']?(_0xd44101['add'](_0x42243c['head']),_0x29ebd8['add'](_0x42243c)):this['_removeSuggestion'](_0x42243c);}}_0x29ebd8['size']>0x0&&this['_refreshSuggestionsChain'](_0x29ebd8);for(const _0x3ae099 of _0xd44101)this['fire']('suggestionChanged',_0x3ae099);}),_0x57ab58['model']['on']('applyOperation',(_0x5ac67c,_0x1b7fc0)=>{const _0xaeba05=_0x1b7fc0[0x0];if(!this['_suggestions']['size'])return;if(!_0xaeba05['isDocumentOperation'])return;if(_0xaeba05['batch']['isUndo']||!_0xaeba05['batch']['isLocal'])return;let _0x5c7e49,_0x6585b9;switch(_0xaeba05['type']){case'insert':_0x5c7e49=_0x57ab58['model']['createPositionAt'](_0xaeba05['position']),_0x6585b9=_0x5c7e49['getShiftedBy'](_0xaeba05['howMany']);break;case'split':_0x5c7e49=_0x57ab58['model']['createPositionAt'](_0xaeba05['splitPosition']),_0x6585b9=_0x57ab58['model']['createPositionAt'](_0xaeba05['moveTargetPosition']);break;case'move':_0x5c7e49=_0x57ab58['model']['createPositionAt'](_0xaeba05['targetPosition']),_0x6585b9=_0x5c7e49['getShiftedBy'](_0xaeba05['howMany']);break;default:return;}const _0x21c182=_0x57ab58['model']['createRange'](_0x5c7e49,_0x6585b9);_0x57ab58['model']['change'](()=>{for(const {suggestion:_0x30574e,meta:_0x44e47d}of this['_findSuggestions'](_0x21c182)){if(_0x30574e['isMultiRange'])continue;if('formatInline'==_0x30574e['type'])continue;const _0x4d695e=this['_getAttributeKey'](_0x30574e);if(_0x4d695e&&this['_suggestionsConversion']['isBlockAttribute'](_0x4d695e)&&'split'!=_0xaeba05['type'])continue;const _0x1e622c=_0x30574e['data']&&_0x30574e['data']['multipleBlocks'];('formatBlock'!=_0x30574e['type']||'split'==_0xaeba05['type']&&!_0x1e622c)&&(_0x44e47d['containsRangeInObject']||'insertion'==_0x30574e['type']&&_0x44e47d['isOwn']||_0x30574e['getFirstRange']()['containsRange'](_0x21c182)&&this['_breakSuggestionMarker'](_0x30574e,_0x5c7e49,_0x6585b9));}});},{'priority':'lowest'}),_0x57ab58['model']['on']('deleteContent',(_0x309096,_0x28d7fc)=>{const _0x3079b6=_0x28d7fc[0x0],_0x3d3955=_0x28d7fc[0x1];if(_0x3d3955&&_0x3d3955['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3079b6['isCollapsed'])return;const _0x216fbf=_0x57ab58['model']['schema'],{start:_0x517794,end:_0x10a50f}=_0x3079b6['getFirstRange'](),_0x22375a=_0x517794['nodeAfter']&&_0x216fbf['isLimit'](_0x517794['nodeAfter'])?null:_0x216fbf['getNearestSelectionRange'](_0x517794,'forward'),_0x4771a1=_0x10a50f['nodeBefore']&&_0x216fbf['isLimit'](_0x10a50f['nodeBefore'])?null:_0x216fbf['getNearestSelectionRange'](_0x10a50f,'backward'),_0x5a0d86=_0x57ab58['model']['createRange'](_0x22375a?_0x22375a['start']:_0x517794,_0x4771a1?_0x4771a1['end']:_0x10a50f);_0x57ab58['model']['change'](_0x19544c=>{this['markDeletion'](_0x5a0d86);const _0x209204=_0x57ab58['model']['schema']['getNearestSelectionRange'](_0x5a0d86['start']);_0x3079b6['is']('documentSelection')?_0x19544c['setSelection'](_0x209204):_0x3079b6['setTo'](_0x209204);}),_0x309096['stop']();},{'priority':_0x4f16be['normal']+0xa}),_0x57ab58['model']['on']('insertContent',(_0x4fafcd,_0x2e905d)=>{const _0x198b52=_0x2e905d[_0x2e905d['length']-0x1];_0x198b52&&_0x198b52['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x57ab58['model']['change'](()=>{let _0x1d477f=_0x57ab58['model']['insertContent'](_0x2e905d[0x0],_0x2e905d[0x1],_0x2e905d[0x2],{'forceDefaultExecution':!0x0});if(!_0x1d477f)return;_0x4fafcd['return']=_0x1d477f['clone']();const _0xfd80bd=_0x1d477f['end']['nodeBefore'],_0x126e89=_0x57ab58['model']['schema'];_0xfd80bd&&_0x126e89['isBlock'](_0xfd80bd)&&!_0x126e89['isObject'](_0xfd80bd)&&(_0x1d477f=_0x57ab58['model']['createRange'](_0x1d477f['start'],_0x57ab58['model']['createPositionAt'](_0xfd80bd,'end'))),this['markInsertion'](_0x1d477f);}),_0x4fafcd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x56dc43=new AcceptSuggestionCommand(_0x57ab58,this['_suggestions']);_0x57ab58['commands']['add']('acceptSuggestion',_0x56dc43),this['enableCommand']('acceptSuggestion');const _0x53f141=new DiscardSuggestionCommand(_0x57ab58,this['_suggestions']);_0x57ab58['commands']['add']('discardSuggestion',_0x53f141),this['enableCommand']('discardSuggestion'),_0x57ab58['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x57ab58,_0x56dc43,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x57ab58['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x57ab58,_0x53f141,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x57ab58['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x57ab58,_0x56dc43,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x57ab58['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x57ab58,_0x53f141,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x542a01=_0x57ab58['plugins']['get'](_0x3aec4d);this['listenTo'](_0x542a01,'addComment',(_0x18303d,{threadId:_0x1cfbb2})=>{const _0x4a4ee7=this['_suggestions']['get'](_0x1cfbb2);_0x4a4ee7&&_0x4a4ee7['commentThread']&&0x1===_0x4a4ee7['commentThread']['length']&&this['_updateSuggestionData'](_0x1cfbb2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x542a01,'removeComment',(_0x247958,{threadId:_0x18aac8})=>{const _0x51cdc5=this['_suggestions']['get'](_0x18aac8);_0x51cdc5&&_0x51cdc5['commentThread']&&!_0x51cdc5['commentThread']['length']&&this['_updateSuggestionData'](_0x18aac8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2e37b0){const _0x221869=_0x3bb245([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]),_0x29b000=0x3d8d0df,_0x388287=0x3df5aff^_0x29b000,_0x4c8ca8=window[_0x3bb245([0x44,0x61,0x74,0x65])][_0x3bb245([0x6e,0x6f,0x77])](),_0x5086a6=_0x2e37b0[_0x3bb245([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x191106=new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e6446=>{_0x5086a6[_0x3bb245([0x6f,0x6e,0x63,0x65])](_0x3bb245([0x72,0x65,0x61,0x64,0x79]),_0x2e6446);}),_0x21f007={[_0x3bb245([0x6b,0x74,0x79])]:_0x3bb245([0x45,0x43]),[_0x3bb245([0x75,0x73,0x65])]:_0x3bb245([0x73,0x69,0x67]),[_0x3bb245([0x63,0x72,0x76])]:_0x3bb245([0x50,0x2d,0x32,0x35,0x36]),[_0x3bb245([0x78])]:_0x3bb245([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]),[_0x3bb245([0x79])]:_0x3bb245([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]),[_0x3bb245([0x61,0x6c,0x67])]:_0x3bb245([0x45,0x53,0x32,0x35,0x36])},_0x21dacc=_0x5086a6[_0x3bb245([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3bb245([0x67,0x65,0x74])](_0x3bb245([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3fc5dc(){let _0x422898,_0x29af46=null,_0x3e2119=null;try{if(_0x21dacc==_0x3bb245([0x47,0x50,0x4c]))return _0x3bb245([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x422898=_0x2e25fe(),!_0x422898)return _0x3bb245([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x422898[_0x3bb245([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e2119=_0x112107(_0x422898[_0x3bb245([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x422898[_0x3bb245([0x6a,0x74,0x69])])),await _0x3ea31b()?_0x35e125()?_0x2a74f0()?_0x3bb245([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4519bf()?(_0x422898[_0x3bb245([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3bb245([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29af46=_0x217e1c(_0x3bb245([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa70cd9()):_0x3bb245([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb245([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3bb245([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3bb245([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a74f0(){const _0xc175d0=[_0x3bb245([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3bb245([0x74,0x72,0x69,0x61,0x6c])][_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x422898[_0x3bb245([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c8ca8/0x3e8:0xe10*_0x388287;return _0x422898[_0x3bb245([0x65,0x78,0x70])]<_0xc175d0;}function _0x35e125(){const _0x3f954c=_0x422898[_0x3bb245([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3f954c)return!0x1;if(_0x3f954c[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb245([0x2a])))return!0x0;if(_0x3f954c[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb245([0x54,0x43])))return!0x0;if(_0x3f954c[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb245([0x52,0x54,0x43]))){if(_0x416876())return!0x0;if(_0x2d4051()||_0x33019e())return!0x0;}return!0x1;}function _0x4519bf(){const _0x51fc8e=_0x422898[_0x3bb245([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x51fc8e||0x0==_0x51fc8e[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50d84d}=new URL(window[_0x3bb245([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x51fc8e[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50d84d))return!0x0;const _0x27c787=_0x50d84d[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])](_0x3bb245([0x2e]));return _0x51fc8e[_0x3bb245([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2453bf=>_0x2453bf[_0x3bb245([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb245([0x2a])))[_0x3bb245([0x6d,0x61,0x70])](_0x78ee2f=>_0x78ee2f[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])](_0x3bb245([0x2e])))[_0x3bb245([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x554450=>_0x554450[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27c787[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bb245([0x6d,0x61,0x70])](_0x2e37de=>Array(_0x27c787[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e37de[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3bb245([0x66,0x69,0x6c,0x6c])](_0x2e37de[0x0]===_0x3bb245([0x2a])?_0x3bb245([0x2a]):'')[_0x3bb245([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e37de))[_0x3bb245([0x73,0x6f,0x6d,0x65])](_0x1b627d=>_0x27c787[_0x3bb245([0x65,0x76,0x65,0x72,0x79])]((_0x5a95be,_0x205f50)=>_0x1b627d[_0x205f50]===_0x5a95be||_0x1b627d[_0x205f50]===_0x3bb245([0x2a])));}function _0xa70cd9(){return _0x29af46&&_0x3e2119?new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x125921,_0x597644)=>{_0x29af46[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x125921,_0x597644),_0x3e2119[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x5d8775=>{_0x5d8775!=_0x3bb245([0x56,0x61,0x6c,0x69,0x64])&&_0x125921(_0x5d8775);},_0x597644);}):_0x29af46||_0x3e2119||_0x3bb245([0x56,0x61,0x6c,0x69,0x64]);}}function _0x112107(_0x51b0b0,_0x2b63c9){return new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x253a1b=>{if(_0x1986f1())return _0x253a1b(_0x3bb245([0x56,0x61,0x6c,0x69,0x64]));_0x1bc02e(),_0x5086a6[_0x3bb245([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3bb245([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf50faa=!0x1;const _0x4c332a=_0x15c67d();function _0x7308f3(_0x459276){return!!_0x459276&&(typeof _0x459276===_0x3bb245([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x459276===_0x3bb245([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x459276[_0x3bb245([0x74,0x68,0x65,0x6e])]===_0x3bb245([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x459276[_0x3bb245([0x63,0x61,0x74,0x63,0x68])]===_0x3bb245([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1ee97f(_0x38d173){_0x2f8854(_0x38d173)[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x131fec=>{if(!_0x131fec||_0x131fec[_0x3bb245([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3bb245([0x6f,0x6b]))return _0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46ab2b(_0x4f9cfb(_0x4c332a+_0x2b63c9))!=_0x131fec[_0x3bb245([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3bb245([0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x128a9d=>(_0x2fa576(),_0x128a9d),()=>{const _0x1366a4=_0x247f45();return null==_0x1366a4?(_0x2fa576(),_0x3bb245([0x56,0x61,0x6c,0x69,0x64])):_0x3bb245(_0x4c8ca8-_0x1366a4>(0x27d454df^_0x29b000)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x253a1b)[_0x3bb245([0x63,0x61,0x74,0x63,0x68])](()=>{_0x253a1b(_0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a6f37=0x3ee3e5f^_0x29b000;function _0x2fa576(){const _0x22e80c=_0x3bb245([0x6c,0x6c,0x63,0x74,0x2d])+_0x46ab2b(_0x4f9cfb(_0x51b0b0)),_0x14fdcd=_0x20978a(_0x46ab2b(window[_0x3bb245([0x4d,0x61,0x74,0x68])][_0x3bb245([0x63,0x65,0x69,0x6c])](_0x4c8ca8/_0x3a6f37)));window[_0x3bb245([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb245([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22e80c,_0x14fdcd);}function _0x247f45(){const _0x1f8635=_0x3bb245([0x6c,0x6c,0x63,0x74,0x2d])+_0x46ab2b(_0x4f9cfb(_0x51b0b0)),_0x14fbb9=window[_0x3bb245([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3bb245([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f8635);return _0x14fbb9?window[_0x3bb245([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20978a(_0x14fbb9),0x10)*_0x3a6f37:null;}function _0x2f8854(_0x4cf37b){return new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c4b1e,_0x25ce92)=>{_0x4cf37b[_0x3bb245([0x74,0x68,0x65,0x6e])](_0x3c4b1e,_0x25ce92),window[_0x3bb245([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x25ce92,0x3d9041f^_0x29b000);});}}_0x5086a6[_0x3bb245([0x6f,0x6e])](_0x3bb245([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4724d0,_0x13e7c6)=>{if(_0x13e7c6[0x0]!=_0x51b0b0)return _0x253a1b(_0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13e7c6[0x1]={..._0x13e7c6[0x1],[_0x3bb245([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c332a};},{[_0x3bb245([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb245([0x68,0x69,0x67,0x68])}),_0x5086a6[_0x3bb245([0x6f,0x6e])](_0x3bb245([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34e764=>{_0x7308f3(_0x34e764[_0x3bb245([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf50faa=!0x0,_0x1ee97f(_0x34e764[_0x3bb245([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3bb245([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3bb245([0x6c,0x6f,0x77])}),_0x191106[_0x3bb245([0x74,0x68,0x65,0x6e])](()=>{_0xf50faa||_0x253a1b(_0x3bb245([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1986f1(){return _0x5086a6[_0x3bb245([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb245([0x76,0x69,0x65,0x77])][_0x3bb245([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3bb245([0x61,0x75,0x74,0x6f]);}function _0x1bc02e(){_0x5086a6[_0x3bb245([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb245([0x76,0x69,0x65,0x77])][_0x3bb245([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bb245([0x61,0x75,0x74,0x6f]);}}function _0x217e1c(_0x3b530e){const _0x508273=[new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35e35a=>setTimeout(_0x35e35a,0x3d1ee13^_0x29b000)),_0x191106[_0x3bb245([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2210da=>{let _0x331c5b=0x0;_0x5086a6[_0x3bb245([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb245([0x6f,0x6e])](_0x3bb245([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x286bd6,_0x3db4dd)=>{_0x3db4dd[0x0][_0x3bb245([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x331c5b++,_0x331c5b==(0x3d8d537^_0x29b000)&&(_0x2210da(),_0x286bd6[_0x3bb245([0x6f,0x66,0x66])]());});}))];return window[_0x3bb245([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bb245([0x72,0x61,0x63,0x65])](_0x508273)[_0x3bb245([0x74,0x68,0x65,0x6e])](()=>_0x3b530e);}async function _0x37054b(){await _0x191106,_0x5086a6[_0x3bb245([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb245([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34f4aa,_0x5086a6[_0x3bb245([0x6d,0x6f,0x64,0x65,0x6c])][_0x3bb245([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34f4aa,_0x5086a6[_0x3bb245([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3bb245([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x416876(){return _0x4334f4(_0x3bb245([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1f331c(_0x3bb245([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3bb245([0x73,0x74,0x61,0x74,0x65])]==_0x3bb245([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2d4051(){return _0x4334f4(_0x3bb245([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 _0x33019e(){return _0x4334f4(_0x3bb245([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3ff19c(_0x867cf4){const _0xd5afd7=_0xebf96c();_0x5086a6[_0xd5afd7]=_0x3bb245([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x867cf4,_0x867cf4!=_0x3bb245([0x56,0x61,0x6c,0x69,0x64])&&_0x37054b();}function _0xebf96c(){const _0xad3c1d=window[_0x3bb245([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3bb245([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3bb245([0x6e,0x6f,0x77])]())[_0x3bb245([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3bb245([0x2e]),'');let _0x4d69c0=_0x3bb245([0x52]);for(let _0x115394=0x0;_0x115394<_0xad3c1d[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x115394+=0x2){let _0x491fdc=window[_0x3bb245([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xad3c1d[_0x3bb245([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x115394,_0x115394+0x2));_0x491fdc>=_0x221869[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x491fdc-=_0x221869[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d69c0+=_0x221869[_0x491fdc];}return _0x4d69c0;}function _0x2e25fe(){const _0x52c8dc=_0x21dacc[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])](_0x3bb245([0x2e]));if(0x3!=_0x52c8dc[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f3924(_0x52c8dc[0x1]);function _0x4f3924(_0x3681d0){const _0x37bea8=_0x11bbfb(_0x3681d0);return _0x37bea8&&_0x256dde()?_0x37bea8:null;function _0x256dde(){const _0x5210ef=_0x37bea8[_0x3bb245([0x6a,0x74,0x69])],_0xafeacb=window[_0x3bb245([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5210ef[_0x3bb245([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5210ef[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2864ec={..._0x37bea8,[_0x3bb245([0x6a,0x74,0x69])]:_0x5210ef[_0x3bb245([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5210ef[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2864ec[_0x3bb245([0x76,0x63])],_0x4f9cfb(_0x2864ec)==_0xafeacb;}}}async function _0x3ea31b(){let _0x9098f0=!0x0;try{const _0x2e914a=_0x21dacc[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])](_0x3bb245([0x2e])),[_0x48949a,_0x51630e,_0x590375]=_0x2e914a;return _0x144911(_0x48949a),await _0xb53672(_0x48949a,_0x51630e,_0x590375),_0x9098f0;}catch{return!0x1;}function _0x144911(_0x514c1f){const _0x4d1e0c=_0x11bbfb(_0x514c1f);_0x4d1e0c&&_0x4d1e0c[_0x3bb245([0x61,0x6c,0x67])]==_0x3bb245([0x45,0x53,0x32,0x35,0x36])||(_0x9098f0=!0x1);}async function _0xb53672(_0x4eaf3b,_0x5f3909,_0x2c3dfb){const _0x5799c3=window[_0x3bb245([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3bb245([0x66,0x72,0x6f,0x6d])](_0x339cc2(_0x2c3dfb),_0x34e91b=>_0x34e91b[_0x3bb245([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x364ff7=new window[(_0x3bb245([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3bb245([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4eaf3b+_0x3bb245([0x2e])+_0x5f3909),_0x47148b=window[_0x3bb245([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3bb245([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47148b)return;const _0x54d1eb=await _0x47148b[_0x3bb245([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3bb245([0x6a,0x77,0x6b]),_0x21f007,{[_0x3bb245([0x6e,0x61,0x6d,0x65])]:_0x3bb245([0x45,0x43,0x44,0x53,0x41]),[_0x3bb245([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3bb245([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3bb245([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47148b[_0x3bb245([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3bb245([0x6e,0x61,0x6d,0x65])]:_0x3bb245([0x45,0x43,0x44,0x53,0x41]),[_0x3bb245([0x68,0x61,0x73,0x68])]:{[_0x3bb245([0x6e,0x61,0x6d,0x65])]:_0x3bb245([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54d1eb,_0x5799c3,_0x364ff7)||(_0x9098f0=!0x1);}}function _0x11bbfb(_0x51e299){return _0x51e299[_0x3bb245([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3bb245([0x65,0x79]))?JSON[_0x3bb245([0x70,0x61,0x72,0x73,0x65])](_0x339cc2(_0x51e299)):null;}function _0x339cc2(_0x934456){return window[_0x3bb245([0x61,0x74,0x6f,0x62])](_0x934456[_0x3bb245([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3bb245([0x2b]))[_0x3bb245([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3bb245([0x2f])));}function _0x4f9cfb(_0x58364b){let _0x11540d=0x1505;function _0x30472a(_0x9b39de){for(let _0x95a26b=0x0;_0x95a26b<_0x9b39de[_0x3bb245([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x95a26b++){const _0x2e1ffe=_0x9b39de[_0x3bb245([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x95a26b);_0x11540d=(_0x11540d<<0x5)+_0x11540d+_0x2e1ffe,_0x11540d&=_0x11540d;}}function _0x29bff3(_0x1a7c82){Array[_0x3bb245([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a7c82)?_0x1a7c82[_0x3bb245([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x29bff3):_0x1a7c82&&typeof _0x1a7c82==_0x3bb245([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3bb245([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a7c82)[_0x3bb245([0x73,0x6f,0x72,0x74])]()[_0x3bb245([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x203473,_0x54ab84])=>{_0x30472a(_0x203473),_0x29bff3(_0x54ab84);}):_0x30472a(window[_0x3bb245([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a7c82));}return _0x29bff3(_0x58364b),_0x11540d>>>0x0;}function _0x46ab2b(_0x2231a3){return _0x2231a3[_0x3bb245([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3bb245([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3bb245([0x30]));}function _0x20978a(_0xdd03cb){return _0xdd03cb[_0x3bb245([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3bb245([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3bb245([0x6a,0x6f,0x69,0x6e])]('');}function _0x4334f4(_0x5c8acb){return _0x5086a6[_0x3bb245([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb245([0x68,0x61,0x73])](_0x5c8acb);}function _0x1f331c(_0x16382e){return _0x5086a6[_0x3bb245([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3bb245([0x67,0x65,0x74])](_0x16382e);}function _0x34f4aa(){}function _0x3bb245(_0x2b3901){return _0x2b3901['map'](_0x5ddf03=>String['fromCharCode'](_0x5ddf03))['join']('');}_0x3ff19c(await _0x3fc5dc());}(this);}set['adapter'](_0x3a26f7){if(this['_adapter'])throw new _0xf305a4('track-changes-adapter-already-set',this);this['_adapter']=_0x3a26f7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13b527=!0x1,toJSON:_0x365301=!0x1}={}){const _0x170abb=[];for(const _0x47324a of this['_suggestions']['values']())_0x13b527&&!_0x47324a['isInContent']||_0x170abb['push'](_0x47324a);return _0x365301?_0x170abb['map'](_0x39edde=>_0x39edde['toJSON']()):_0x170abb;}['getSuggestion'](_0x59c966){const _0x30b438=this['_suggestions']['get'](_0x59c966);if(!_0x30b438)throw new _0xf305a4('track-changes-suggestion-not-found',this);return _0x30b438;}['hasSuggestion'](_0x475734){return this['_suggestions']['has'](_0x475734);}['addSuggestionData'](_0x2a8bfc){const {authorId:_0x1bec2c,id:_0x1c7929,originalSuggestionId:_0x3475e5,attributes:_0x5f3414}=_0x2a8bfc,[_0x2000ce,_0x512864]=_0x2a8bfc['type']['split'](':'),_0x5943db=this['_suggestions']['get'](_0x1c7929)||this['_createSuggestion'](_0x2000ce,_0x512864,_0x1c7929,_0x1bec2c,_0x5f3414,_0x3475e5);if(this['_addThreadToSuggestion'](_0x5943db),this['_checkSuggestionCorrectness'](_0x5943db,_0x2000ce,_0x512864||null,_0x1bec2c),_0x5943db['createdAt']=_0x2a8bfc['createdAt'],_0x5943db['_isDataLoaded']=!0x0,_0x5f3414&&_0x5f3414['@external']){const _0x391002=_0x5f3414['@external'],_0x58b48=this['_getExternalAuthor'](_0x391002['authorName']);_0x5943db['authoredAt']=_0x391002['createdAt'],_0x5943db['author']=_0x58b48,_0x5943db['isExternal']=!0x0;}else _0x5943db['authoredAt']=_0x2a8bfc['createdAt'];switch(_0x2a8bfc['data']&&(_0x5943db['data']=_0x2a8bfc['data']),_0x2a8bfc['attributes']&&(_0x5943db['attributes']=_0x2a8bfc['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5943db['_saved']=!0x0),this['_suggestionState']['get'](_0x5943db)){case'notReady':this['_suggestionState']['set'](_0x5943db,'dataReady');break;case'markerReady':_0x5943db['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5943db])),this['_refreshSuggestionsChain'](new Set([_0x5943db])),this['_suggestionState']['set'](_0x5943db,'ready'),this['fire']('suggestionLoaded',_0x5943db)):this['_suggestionState']['set'](_0x5943db,'removed');}return _0x5943db;}['acceptSuggestion'](_0x22d7dc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c68e1 of _0x22d7dc['getAllAdjacentSuggestions']())_0x5c68e1['accept']();});});}['discardSuggestion'](_0x20f571){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e3fbd of _0x20f571['getAllAdjacentSuggestions']())_0x3e3fbd['discard']();});});}['enableCommand'](_0x2cf503,_0x16e4b1){const _0x41b3f1=this['editor']['commands']['get'](_0x2cf503);if(!_0x41b3f1)throw new _0xf305a4('track-changes-command-not-found',this,{'commandName':_0x2cf503});if(this['_enabledCommands']['has'](_0x41b3f1))throw new _0xf305a4('track-changes-enable-command-twice',this,{'commandName':_0x2cf503});this['_enabledCommands']['add'](_0x41b3f1),_0x16e4b1&&_0x41b3f1['on']('execute',(_0x53dc6c,_0x414201)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x414201['length']>0x0&&_0x414201[_0x414201['length']-0x1]&&_0x414201[_0x414201['length']-0x1]['forceDefaultExecution']?_0x414201['pop']():(_0x53dc6c['return']=_0x16e4b1((..._0xef78b5)=>_0x41b3f1['execute'](..._0xef78b5,{'forceDefaultExecution':!0x0}),..._0x414201),_0x53dc6c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4f640b){let _0x34e921,_0x1ba7a2;const _0x1ed160=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x34e921=_0x4f640b();}catch(_0xafed7a){_0x1ba7a2=_0xafed7a;}return _0x1ed160||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1ba7a2&&_0xf305a4['rethrowUnexpectedError'](_0x1ba7a2,this),_0x34e921;}['markInsertion'](_0x1383ca,_0x53c707=null,_0x31b2b1={}){if(_0x1383ca['isCollapsed'])return null;const _0x136a13=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x31b2b1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x313cb8,meta:_0x15781d}of this['_findSuggestions'](_0x1383ca,'insertion'))if(_0x15781d['isOwn']){if(!_0x15781d['isNextTo']){if(_0x15781d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x313cb8,_0x31b2b1))continue;return _0x313cb8;}if(zt(_0x313cb8,_0x31b2b1))return _0x313cb8;this['_breakSuggestionMarker'](_0x313cb8,_0x1383ca['start'],_0x1383ca['end']);break;}if(_0x53c707==_0x313cb8['subType']&&zt(_0x313cb8,_0x31b2b1)){const _0x3e0c97=_0x313cb8['getFirstRange']();return _0x3e0c97['start']['isEqual'](_0x1383ca['end'])?this['_setSuggestionRange'](_0x313cb8,this['_model']['createRange'](_0x1383ca['start'],_0x3e0c97['end'])):this['_setSuggestionRange'](_0x313cb8,this['_model']['createRange'](_0x3e0c97['start'],_0x1383ca['end'])),_0x313cb8;}}const _0x4fe533=_0x15c67d(),_0xc977ed=_0x136a13['id'],_0x3b045b=_0x53c707?'insertion:'+_0x53c707:'insertion',_0x25bb35=this['_setSuggestionData']({'id':_0x4fe533,'type':_0x3b045b,'createdAt':new Date(),'authorId':_0xc977ed,'attributes':_0x31b2b1});return this['_addSuggestionMarker'](_0x3b045b,_0x4fe533,_0xc977ed,_0x1383ca),_0x25bb35;}['markMultiRangeInsertion'](_0x502100,_0x2a45fb='multi',_0x5519c3={}){const _0xf0696a=this['editor']['plugins']['get']('Users')['me'],_0x47b428=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2a45fb,'join');this['_trackingSessionId']&&(_0x5519c3['trackingSessionId']=this['_trackingSessionId']);for(const _0x2e916f of this['getSuggestions']())if(_0x2e916f['author']['id']==_0xf0696a['id']&&'insertion'==_0x2e916f['type']&&_0x2e916f['subType']==_0x2a45fb&&zt(_0x2e916f,_0x5519c3)&&(_0x47b428(_0x2e916f['getRanges'](),_0x502100)||_0x47b428(_0x502100,_0x2e916f['getRanges']()))){for(const _0x119b83 of _0x502100)_0x2e916f['addRange'](_0x119b83);return _0x2e916f;}for(const {suggestion:_0x2c3df4,meta:_0x3e7024}of this['_findSuggestions'](_0x502100,'insertion')){if(!_0x3e7024['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3e7024['containsRangeInObject'])continue;if(!zt(_0x2c3df4,_0x5519c3))continue;let _0x48738c=!0x0;for(const _0x392ff1 of _0x2c3df4['getRanges']())for(const _0x4cbf96 of _0x502100)if(!_0x392ff1['containsRange'](_0x4cbf96)){_0x48738c=!0x1;break;}if(_0x48738c)return _0x2c3df4;}const _0x532902=_0x15c67d(),_0x26614f=_0xf0696a['id'],_0x195f43='insertion:'+_0x2a45fb,_0xdc428b=this['_setSuggestionData']({'id':_0x532902,'type':_0x195f43,'createdAt':new Date(),'authorId':_0x26614f,'attributes':_0x5519c3});for(const _0xd13a06 of _0x502100)this['_addSuggestionMarker'](_0x195f43,_0x532902,_0x26614f,_0xd13a06,Suggestion['getMultiRangeId']());return _0xdc428b;}['markInlineFormat'](_0x56c5de,_0x908347,_0x7e3052=null,_0x2b5db5={}){if(_0x7e3052=_0x7e3052||Pt(_0x908347),_0x56c5de['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2b5db5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3cd10e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7e3052,'accept');return this['forceDefaultExecution'](()=>_0x3cd10e([_0x56c5de],_0x908347,_0x2b5db5)),null;}const _0x36581a=this['editor']['plugins']['get']('Users')['me'],_0x6b7553=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x58f008,meta:_0xe8641}of this['_findSuggestions'](_0x56c5de,'insertion'))_0xe8641['isOwn']&&!_0xe8641['isInsideObject']&&_0x6b7553['push'](..._0x58f008['getRanges']());}const _0x5b71b4=function(_0x13a548,_0x4eb848){const _0x4d7cb5=[];for(const _0x2d0679 of _0x4eb848){const _0x34bef0=_0x13a548['getIntersection'](_0x2d0679);_0x34bef0&&_0x4d7cb5['push'](_0x34bef0);}return _0x4d7cb5;}(_0x56c5de,_0x6b7553),_0x461794=function(_0x295999,_0x517f00){const _0x35ba39=[_0x295999];for(const _0x46c818 of _0x517f00){let _0x2da771=0x0;for(;_0x2da771<_0x35ba39['length'];){const _0x4c05c1=_0x35ba39[_0x2da771]['getDifference'](_0x46c818);_0x35ba39['splice'](_0x2da771,0x1,..._0x4c05c1),_0x2da771+=_0x4c05c1['length'];}}return _0x35ba39;}(_0x56c5de,_0x6b7553);_0x5b71b4['length']&&this['_model']['change'](()=>{for(const _0x3e68f6 of _0x5b71b4){const _0x136da1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7e3052,'accept');this['forceDefaultExecution'](()=>_0x136da1([_0x3e68f6],_0x908347,_0x2b5db5));}});for(const _0x260a90 of _0x461794){let _0x1fc29d=null,_0x944571=_0x260a90['start'],_0x572149=_0x260a90['end'];for(const {suggestion:_0x1c834b,meta:_0x5b1e1d}of this['_findSuggestions'](_0x260a90,'formatInline')){if(!_0x5b1e1d['isOwn'])continue;if(_0x1c834b['subType']!=_0x7e3052)continue;if(!zt(_0x1c834b,_0x2b5db5))continue;const _0x14b2f3=_0x1c834b['getFirstRange']();if(_0x14b2f3['containsRange'](_0x260a90,!0x0))return null;_0x944571=_0x944571['isBefore'](_0x14b2f3['start'])?_0x944571:_0x14b2f3['start'],_0x572149=_0x572149['isAfter'](_0x14b2f3['end'])?_0x572149:_0x14b2f3['end'],_0x1fc29d?_0x14b2f3['start']['isBefore'](_0x1fc29d['getFirstRange']()['start'])?(_0x1fc29d['removeMarkers'](),_0x1fc29d=_0x1c834b):_0x1c834b['removeMarkers']():_0x1fc29d=_0x1c834b;}const _0x1bab8f=this['_model']['createRange'](_0x944571,_0x572149);if(_0x1fc29d)this['_setSuggestionRange'](_0x1fc29d,_0x1bab8f);else{const _0x2d7aa8=_0x15c67d(),_0x1f8d8a=_0x36581a['id'];this['_setSuggestionData']({'id':_0x2d7aa8,'type':'formatInline:'+_0x7e3052,'data':_0x908347,'createdAt':new Date(),'authorId':_0x1f8d8a,'attributes':_0x2b5db5}),this['_addSuggestionMarker']('formatInline:'+_0x7e3052,_0x2d7aa8,_0x1f8d8a,_0x1bab8f);}}return null;}['markBlockFormat'](_0x2524de,_0x56d7f8,_0x279c2a=[],_0x1ac745=null,_0x231eb8={}){_0x56d7f8['formatGroupId']||(_0x56d7f8['formatGroupId']=_0x56d7f8['commandName']),_0x56d7f8['multipleBlocks']=_0x2524de['is']('range'),_0x1ac745=_0x1ac745||Pt(_0x56d7f8);const _0x5c4f26=_0x279c2a['map'](_0x402d56=>Vt(_0x402d56,this['_model'])),_0x945a5e=_0x2524de['is']('range')?_0x2524de:Vt(_0x2524de,this['_model']);if(this['_trackingSessionId']&&(_0x231eb8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a2d7d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac745,'accept');return this['forceDefaultExecution'](()=>_0x5a2d7d([_0x945a5e],_0x56d7f8,_0x231eb8)),null;}_0x5c4f26['push'](_0x945a5e);let _0x4cd7c5=!0x0;for(const _0x5a2380 of _0x5c4f26)if(!this['_rangeIsInLocalUserInsertion'](_0x5a2380)){_0x4cd7c5=!0x1;break;}if(_0x4cd7c5&&'always'!==this['_trackFormatChanges']){const _0x59c369=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ac745,'accept');return this['forceDefaultExecution'](()=>_0x59c369([_0x945a5e],_0x56d7f8,_0x231eb8)),null;}let _0xafec9e=null,_0x49ed32=_0x945a5e['start'],_0x59b49a=_0x945a5e['end'];for(const {suggestion:_0x2b9530,meta:_0x425ae2}of this['_findSuggestions'](_0x945a5e,'formatBlock')){if(!_0x425ae2['isOwn'])continue;if(_0x425ae2['isNextTo']||_0x425ae2['containsRangeInObject']||_0x425ae2['isInsideObject'])continue;if(_0x2b9530['data']['formatGroupId']!=_0x56d7f8['formatGroupId'])continue;if(!zt(_0x2b9530,_0x231eb8))continue;const _0x3f21c1=_0x2b9530['getFirstRange']();if(_0x2b9530['subType']==_0x1ac745){if(_0x3f21c1['containsRange'](_0x945a5e,!0x0))return null;_0x49ed32=_0x49ed32['isBefore'](_0x3f21c1['start'])?_0x49ed32:_0x3f21c1['start'],_0x59b49a=_0x59b49a['isAfter'](_0x3f21c1['end'])?_0x59b49a:_0x3f21c1['end'],_0xafec9e?_0x3f21c1['start']['isBefore'](_0xafec9e['getFirstRange']()['start'])?(_0xafec9e['removeMarkers'](),_0xafec9e=_0x2b9530):_0x2b9530['removeMarkers']():_0xafec9e=_0x2b9530;}else{const _0x3abf96=_0x945a5e['getIntersection'](_0x3f21c1);this['_cutOutSuggestionMarker'](_0x2b9530,_0x3abf96);}}const _0x3fe2bb=this['editor']['plugins']['get']('Users')['me'],_0x39b766=_0x15c67d(),_0x2699bb=_0x3fe2bb['id'];if(_0xafec9e)return this['_setSuggestionRange'](_0xafec9e,this['_model']['createRange'](_0x49ed32,_0x59b49a)),_0xafec9e;{const _0x2b5985=this['_setSuggestionData']({'id':_0x39b766,'type':'formatBlock:'+_0x1ac745,'data':_0x56d7f8,'createdAt':new Date(),'authorId':_0x2699bb,'attributes':_0x231eb8});return this['_addSuggestionMarker']('formatBlock:'+_0x1ac745,_0x39b766,_0x2699bb,this['_model']['createRange'](_0x49ed32,_0x59b49a)),_0x2b5985;}}['markMultiRangeBlockFormat'](_0x3b9d83,_0x547a82,_0x568f36=[],_0x57fe5c=null,_0x4f3213={}){_0x547a82['formatGroupId']||(_0x547a82['formatGroupId']=_0x547a82['commandName']);const _0x48fd9b=_0x3b9d83[0x0];_0x547a82['multipleBlocks']=_0x48fd9b['is']('range'),_0x57fe5c=_0x57fe5c||Pt(_0x547a82);const _0x1b0154=_0x568f36['map'](_0xe2576=>Vt(_0xe2576,this['_model'])),_0x6c69a3=_0x48fd9b['is']('range')?_0x3b9d83:_0x3b9d83['map'](_0x5ae227=>Vt(_0x5ae227,this['_model']));if(this['_trackingSessionId']&&(_0x4f3213['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2aebe0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57fe5c,'accept');return this['forceDefaultExecution'](()=>_0x2aebe0(_0x6c69a3,_0x547a82,_0x4f3213)),null;}_0x1b0154['push'](..._0x6c69a3);let _0x218a68=!0x0;for(const _0x2c48a7 of _0x1b0154)if(!this['_rangeIsInLocalUserInsertion'](_0x2c48a7)){_0x218a68=!0x1;break;}if(_0x218a68&&'always'!==this['_trackFormatChanges']){const _0x509736=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57fe5c,'accept');return this['forceDefaultExecution'](()=>_0x509736(_0x6c69a3,_0x547a82,_0x4f3213)),null;}const _0xd8daec=this['editor']['plugins']['get']('Users')['me'];for(const _0x51f49e of this['getSuggestions']()){const _0xd6ed46=_0x51f49e['data'];if(_0x51f49e['author']['id']!=_0xd8daec['id'])continue;if('formatBlock'!=_0x51f49e['type']||_0xd6ed46['formatGroupId']!=_0x547a82['formatGroupId'])continue;if(!zt(_0x51f49e,_0x4f3213))continue;const _0x5ad70f=_0x51f49e['subType']==_0x57fe5c;for(let _0x14bb19=0x0;_0x14bb19<_0x6c69a3['length'];_0x14bb19++){const _0xb2e194=_0x6c69a3[_0x14bb19];for(const _0x24b1de of _0x51f49e['getMarkers']()){const _0x2d39e2=_0x24b1de['getRange']();if(_0xb2e194['isEqual'](_0x2d39e2)){_0x5ad70f?(_0x6c69a3['splice'](_0x14bb19,0x1),_0x14bb19--):_0x51f49e['removeMarker'](_0x24b1de['name']);break;}}}}if(0x0==_0x6c69a3['length'])return null;const _0x1667d8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57fe5c,'join');for(const _0xfa1e3c of this['getSuggestions']()){const _0x565213=_0xfa1e3c['data'];if(_0xfa1e3c['author']['id']==_0xd8daec['id']&&('formatBlock'==_0xfa1e3c['type']&&_0x565213['formatGroupId']==_0x547a82['formatGroupId']&&_0xfa1e3c['subType']==_0x57fe5c&&zt(_0xfa1e3c,_0x4f3213)&&(_0x1667d8(_0xfa1e3c['getRanges'](),_0x6c69a3)||_0x1667d8(_0x6c69a3,_0xfa1e3c['getRanges']())))){for(const _0x2b3559 of _0x6c69a3)_0xfa1e3c['addRange'](_0x2b3559);return _0xfa1e3c;}}const _0x5cc19d=_0x15c67d(),_0x3636c5=_0xd8daec['id'],_0x4c8bed='formatBlock:'+_0x57fe5c,_0x45c20f=this['_setSuggestionData']({'id':_0x5cc19d,'type':_0x4c8bed,'data':_0x547a82,'createdAt':new Date(),'authorId':_0x3636c5,'attributes':_0x4f3213});for(const _0x2edffb of _0x6c69a3)this['_addSuggestionMarker'](_0x4c8bed,_0x5cc19d,_0x3636c5,_0x2edffb,Suggestion['getMultiRangeId']());return _0x45c20f;}['markDeletion'](_0x3a8156,_0x2383b2=null,_0x44dba2={}){if(_0x3a8156['isCollapsed'])return null;const _0x1262f2=this['editor']['plugins']['get']('Users')['me'],_0x167482=new _0x52f028(_0x3a8156['start'],_0x3a8156['end']);this['_trackingSessionId']&&(_0x44dba2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5dfb69,meta:_0x201c1b}of this['_findSuggestions'](_0x167482,'insertion'))if(_0x201c1b['isOwn']&&!_0x201c1b['isNextTo']){if(_0x5dfb69['isMultiRange']){const _0x3f66b5=_0x5dfb69['getRanges']()['filter'](_0x22e0f2=>'$graveyard'!=_0x22e0f2['root']['rootName']);_0x3f66b5['every'](_0x249b3e=>_0x167482['containsRange'](_0x249b3e,!0x0))&&_0x5dfb69['discard']();if(_0x3f66b5['some'](_0x3825d4=>_0x3825d4['containsRange'](_0x167482,!0x0))){const _0x49f394=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2383b2,'accept');return this['forceDefaultExecution'](()=>_0x49f394([_0x167482],null,_0x44dba2)),null;}}else{const _0xdb14=_0x167482['getIntersection'](_0x5dfb69['getFirstRange']());null!==_0xdb14&&_0x5dfb69['_onDiscard']([_0xdb14],null,_0x44dba2);}}if(_0x167482['detach'](),_0x167482['isCollapsed']||'$graveyard'==_0x167482['root']['rootName'])return null;let _0x5c1f06=null,_0x282fd0=_0x167482['start'],_0xe7e423=_0x167482['end'];const _0x1d172a=this['_findSuggestions'](_0x167482,'deletion');for(const {suggestion:_0x112ace,meta:_0x1ddc1e}of _0x1d172a){const _0x25f183=this['_model']['createRange'](_0x282fd0,_0xe7e423);if(_0x1ddc1e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1ddc1e['containsRangeInObject']&&!_0x1ddc1e['isInsideObject'])){if(_0x112ace['isMultiRange']){if(!zt(_0x112ace,_0x44dba2))continue;let _0xc7167a=!0x0;for(const _0x36478c of _0x112ace['getRanges']()){if(_0x36478c['containsRange'](_0x25f183,!0x0))return _0x112ace;_0x25f183['containsRange'](_0x36478c)||(_0xc7167a=!0x1);}_0xc7167a&&_0x112ace['discard']();}else{const _0x41307d=_0x112ace['getFirstRange']();if(_0x41307d['containsRange'](_0x25f183,!0x0))return _0x112ace;if(!zt(_0x112ace,_0x44dba2)){_0x25f183['containsRange'](_0x41307d)?_0x112ace['removeMarkers']():_0x41307d['containsPosition'](_0x282fd0)?_0x282fd0=_0x41307d['end']:_0x41307d['containsPosition'](_0xe7e423)&&(_0xe7e423=_0x41307d['start']);continue;}_0x282fd0=_0x282fd0['isBefore'](_0x41307d['start'])?_0x282fd0:_0x41307d['start'],_0xe7e423=_0xe7e423['isAfter'](_0x41307d['end'])?_0xe7e423:_0x41307d['end'],_0x44dba2=Object['assign']({},_0x112ace['attributes']),_0x5c1f06?_0x41307d['start']['isBefore'](_0x5c1f06['getFirstRange']()['start'])?(_0x5c1f06['removeMarkers'](),_0x5c1f06=_0x112ace):_0x112ace['removeMarkers']():_0x5c1f06=_0x112ace;}}}if(_0x5c1f06)return this['_setSuggestionRange'](_0x5c1f06,this['_model']['createRange'](_0x282fd0,_0xe7e423)),_0x5c1f06;{const _0x31fa2f=_0x15c67d(),_0x252484=this['_model']['createRange'](_0x282fd0,_0xe7e423),_0xa681e9=_0x1262f2['id'],_0x164be7=_0x2383b2?'deletion:'+_0x2383b2:'deletion',_0x3c5aaf=this['_setSuggestionData']({'id':_0x31fa2f,'type':_0x164be7,'createdAt':new Date(),'authorId':_0xa681e9,'attributes':_0x44dba2});return this['_addSuggestionMarker'](_0x164be7,_0x31fa2f,_0xa681e9,_0x252484),_0x3c5aaf;}}['markMultiRangeDeletion'](_0x14ab0e,_0x5081e8='multi',_0x389a19={}){const _0x2fac70=this['editor']['plugins']['get']('Users')['me'],_0x3fc295=_0x14ab0e['map'](_0x532fce=>new _0x52f028(_0x532fce['start'],_0x532fce['end'])),_0x4dc726=new Set();this['_trackingSessionId']&&(_0x389a19['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x40c3e1,meta:_0x538f33}of this['_findSuggestions'](_0x3fc295,'insertion'))_0x538f33['isOwn']&&!_0x538f33['isNextTo']&&_0x4dc726['add'](_0x40c3e1);for(const _0x58fc39 of _0x4dc726)if(_0x58fc39['isMultiRange']){const _0x3146c7=_0x58fc39['getRanges']();(!_0x58fc39['attributes']||!_0x58fc39['attributes']['skipNestingCheck'])&&(_0x3146c7['every'](_0x2af4fd=>_0x3fc295['some'](_0x1fc6d0=>_0x1fc6d0['containsRange'](_0x2af4fd,!0x0)))&&_0x58fc39['discard']());if(_0x3fc295['every'](_0xe43b70=>_0x3146c7['some'](_0x1bf3df=>_0x1bf3df['containsRange'](_0xe43b70,!0x0)))){const _0x38e1cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5081e8,'accept');return this['forceDefaultExecution'](()=>_0x38e1cf(_0x14ab0e,null,_0x389a19)),null;}}else{const _0x27ebdd=_0x58fc39['getFirstRange']();_0x3fc295['some'](_0x33b6b5=>_0x33b6b5['containsRange'](_0x27ebdd,!0x0))&&_0x58fc39['discard']();if(_0x3fc295['every'](_0x486b19=>_0x27ebdd['containsRange'](_0x486b19,!0x0))){const _0x254a86=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5081e8,'accept');return this['forceDefaultExecution'](()=>_0x254a86(_0x3fc295,null,_0x389a19)),null;}}const _0x1ad814=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5081e8,'join');let _0x41cb91=null;for(const _0x99136d of this['getSuggestions']())if(_0x99136d['author']['id']==_0x2fac70['id']&&_0x99136d['isInContent']&&'deletion'==_0x99136d['type']&&_0x99136d['subType']==_0x5081e8&&zt(_0x99136d,_0x389a19)&&(_0x1ad814(_0x99136d['getRanges'](),_0x3fc295)||_0x1ad814(_0x3fc295,_0x99136d['getRanges']()))){if(_0x41cb91){if(_0x99136d['commentThread']&&_0x99136d['commentThread']['length'])continue;for(const _0x4565b6 of _0x99136d['getRanges']())_0x41cb91['isIntersectingWithRange'](_0x4565b6)||_0x41cb91['addRange'](_0x4565b6);_0x99136d['removeMarkers']();}else{_0x41cb91=_0x99136d;for(const _0x4c4162 of _0x3fc295)_0x99136d['isIntersectingWithRange'](_0x4c4162)||_0x99136d['addRange'](_0x4c4162);}}if(_0x41cb91)return _0x41cb91;_0x4dc726['clear']();for(const {suggestion:_0x3b3163,meta:_0x53dc66}of this['_findSuggestions'](_0x3fc295,'deletion'))_0x53dc66['isOwn']&&(this['_mergeNestedSuggestions']||!_0x53dc66['containsRangeInObject']&&!_0x53dc66['isInsideObject'])&&zt(_0x3b3163,_0x389a19)&&_0x4dc726['add'](_0x3b3163);for(const _0x1fde28 of _0x4dc726){const _0x2ad27f=_0x1fde28['getRanges']();if(!_0x389a19||!_0x389a19['skipNestingCheck']){if(_0x3fc295['every'](_0x315975=>_0x2ad27f['some'](_0x18d01d=>_0x18d01d['containsRange'](_0x315975,!0x0))))return _0x1fde28;}(!_0x1fde28['attributes']||!_0x1fde28['attributes']['skipNestingCheck'])&&(_0x2ad27f['every'](_0x3ea7c0=>_0x3fc295['some'](_0x1a60b=>_0x1a60b['containsRange'](_0x3ea7c0,!0x0)))&&_0x1fde28['discard']());}const _0x18ec5f=_0x15c67d(),_0x20e935=_0x2fac70['id'],_0x175a1e='deletion:'+_0x5081e8,_0x346a6d=this['_setSuggestionData']({'id':_0x18ec5f,'type':_0x175a1e,'createdAt':new Date(),'authorId':_0x20e935,'attributes':_0x389a19});for(const _0x2483fa of _0x3fc295)_0x2483fa['detach'](),_0x2483fa['isCollapsed']||'$graveyard'==_0x2483fa['root']['rootName']||this['_addSuggestionMarker'](_0x175a1e,_0x18ec5f,_0x20e935,_0x2483fa,Suggestion['getMultiRangeId']());return _0x346a6d;}['markAttributeChange'](_0x59cdac,_0x44eb6f,_0xe91d6,_0x2b6e6e,_0x45f465){if(_0x59cdac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x150e9c=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e6fa6=Array['from'](this['_suggestions']['values']())['filter'](_0xc14939=>'attribute'==_0xc14939['type']&&_0xc14939['data']['key']==_0x44eb6f&&_0xc14939['isIntersectingWithRange'](_0x59cdac));if(this['_trackingSessionId']&&(_0x45f465['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4cde5a=this['_findSuggestions'](_0x59cdac,'insertion')['filter'](({meta:_0xcfc21d})=>_0xcfc21d['isOwn']&&!_0xcfc21d['isInsideObject']&&!_0xcfc21d['isNextTo'])['map'](({suggestion:_0x1bbd04})=>_0x1bbd04);_0x3e6fa6['unshift'](..._0x4cde5a);}const _0x4619ce=new Map([[_0x59cdac,_0xe91d6]]);for(const _0x75f149 of _0x3e6fa6){const _0x402685='attribute'==_0x75f149['type']?_0x75f149['data']['oldValue']:void 0x0,_0x277251=_0x75f149['getFirstRange'](),_0x4739ef=Array['from'](_0x4619ce['keys']())['find'](_0x6ccb0d=>_0x6ccb0d['isIntersecting'](_0x277251));if(!_0x4739ef)continue;const _0x30007f=_0x4739ef['getDifference'](_0x277251);this['_suggestionsConversion']['isBlockAttribute'](_0x44eb6f)&&'insertion'==_0x75f149['type']&&0x0!=_0x30007f['length']||(_0x4619ce['delete'](_0x4739ef),_0x30007f['forEach'](_0x1b5a4e=>{_0x4619ce['set'](_0x1b5a4e,_0xe91d6);}),'insertion'!=_0x75f149['type']&&_0x402685!=_0x2b6e6e&&_0x4619ce['set'](_0x4739ef['getIntersection'](_0x277251),_0x402685));}const _0x4e4e89=[];for(const [_0x4b45ef,_0xb244ad]of _0x4619ce){const _0x556b91=_0x15c67d(),_0x137427={'key':_0x44eb6f,'oldValue':_0xb244ad,'newValue':_0x2b6e6e};_0x44eb6f['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':_0x44eb6f});const _0x5c5b65=('attribute:'+(_0x44eb6f+'|'+Pt({'newValue':_0x2b6e6e})))['substring'](0x0,0x3c),_0x40e3ab=this['_setSuggestionData']({'id':_0x556b91,'type':_0x5c5b65,'data':_0x137427,'createdAt':new Date(),'authorId':_0x150e9c,'attributes':_0x45f465});_0x4e4e89['push'](_0x40e3ab),this['_addSuggestionMarker'](_0x5c5b65,_0x556b91,_0x150e9c,_0x4b45ef);}return _0x4e4e89;}['enableDefaultAttributesIntegration'](_0x3b2897){this['enableCommand'](_0x3b2897,(_0xe86e18,..._0xfd6177)=>{this['recordAttributeChanges'](()=>{_0xe86e18(..._0xfd6177);});});}['startTrackingSession'](_0x3b0623){return this['_trackingSessionId']=void 0x0!==_0x3b0623?_0x3b0623:_0x15c67d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1080c4){return'attribute'==_0x1080c4['type']?Xt(_0x1080c4['subType']):null;}['_applyOperationsAsSuggestions'](_0x1ad435){if(0x0==_0x1ad435['length'])return;const _0x10fad8=this['editor'],_0x46409b=_0x10fad8['plugins']['get'](_0x261f31),_0x4561dd=[];_0x10fad8['model']['change'](_0x3db44f=>{for(let _0x49c609=0x0;_0x49c609<_0x1ad435['length'];_0x49c609++){const _0x45fb7f=_0x1ad435[_0x49c609];if(_0x45fb7f['baseVersion']=_0x10fad8['model']['document']['version'],_0x45fb7f['isDocumentOperation']=!0x0,_0x46409b['isMarkedRemoveOperation'](_0x45fb7f)){const _0x3ffe01=_0x2dd2a4(_0x45fb7f['newRange'],_0x10fad8['model']);_0x4561dd['unshift'](_0x52f028['fromRange'](_0x3ffe01));}else switch(_0x45fb7f['type']){case'rename':{const _0xa783a8=_0x45fb7f['oldName'],_0x1c2d83=_0x45fb7f['newName'];if(_0xa783a8==_0x1c2d83)break;_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);const _0x196639='$elementName',_0x4330bd=_0x45fb7f['position'],_0x5c6d81=_0x10fad8['model']['createRange'](_0x4330bd,_0x10fad8['model']['createPositionAt'](_0x4330bd['nodeAfter'],'end'));this['markAttributeChange'](_0x5c6d81,_0x196639,_0xa783a8,_0x1c2d83,{'groupId':_0x15c67d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x8f3512=_0x45fb7f['oldValue'],_0x427851=_0x45fb7f['newValue'];if(_0x8f3512==_0x427851)break;_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);const _0xc19c1d=_0x45fb7f['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xc19c1d))break;const _0x30145a=_0x2dd2a4(_0x45fb7f['range'],_0x10fad8['model']);this['markAttributeChange'](_0x30145a,_0xc19c1d,_0x8f3512,_0x427851,{'groupId':_0x15c67d()});break;}case'insert':{_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);if(_0x1ad435[_0x49c609+0x1]&&'move'==_0x1ad435[_0x49c609+0x1]['type'])break;const _0x4a19ee=_0x45fb7f['position'],_0x4e1357=_0x45fb7f['howMany'],_0x20c4ca=_0x2dd2a4(_0x10fad8['model']['createRange'](_0x4a19ee,_0x4a19ee['getShiftedBy'](_0x4e1357)),_0x10fad8['model']);this['markInsertion'](_0x20c4ca);break;}case'split':{_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);const _0x4a9c42=_0x45fb7f['splitPosition'],_0x4ddffd=_0x45fb7f['moveTargetPosition'];this['markInsertion'](_0x10fad8['model']['createRange'](_0x4a9c42,_0x4ddffd));break;}case'move':case'remove':_0x3db44f['batch']['addOperation'](_0x45fb7f),_0x10fad8['model']['applyOperation'](_0x45fb7f);}}for(const _0x3fa41b of _0x4561dd)_0x3fa41b['detach'](),this['markDeletion'](_0x3fa41b);});}['_setSuggestionRange'](_0x57a64d,_0x423cc7){const _0x3a0587=_0x57a64d['getFirstMarker']();this['_model']['change'](_0x452465=>{_0x452465['updateMarker'](_0x3a0587,{'range':_0x423cc7});});}['_addThreadToSuggestion'](_0x580766){const _0x564878=_0x580766['id'],_0x43af62=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x564878)||this['_commentsRepository']['addCommentThread']({'channelId':_0x43af62,'threadId':_0x564878,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x40c9ed=this['_commentsRepository']['getCommentThread'](_0x564878);_0x40c9ed['unbind']('isRemovable'),_0x40c9ed['isRemovable']=!0x1,_0x580766['commentThread']=_0x40c9ed;}['_checkSuggestionCorrectness'](_0x2be559,_0xce28ee,_0x3a753c,_0x1232d7){if(_0x2be559['type']!=_0xce28ee||_0x2be559['subType']!=_0x3a753c||_0x2be559['creator']['id']!=_0x1232d7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xf305a4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x12b778,_0x32c2a3){const _0x318e5f=_0x12b778['getFirstRange']();if(_0x32c2a3['isEqual'](_0x318e5f))_0x12b778['removeMarkers']();else{if(_0x318e5f['containsRange'](_0x32c2a3)){const _0x376d7e=this['_model']['createPositionAt'](_0x32c2a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x12b778,this['_model']['createRange'](_0x318e5f['start'],_0x376d7e));const _0x58995a=_0x15c67d(),_0x3fdec0=_0x12b778['creator']['id'],_0x595c91=_0x12b778['type']+':'+_0x12b778['subType'];this['_setSuggestionData']({'id':_0x58995a,'type':_0x595c91,'createdAt':new Date(),'authorId':_0x3fdec0,'data':_0x12b778['data'],'attributes':_0x12b778['attributes']});const _0x155900=this['_model']['createPositionAt'](_0x32c2a3['end']['parent'],'after'),_0x35948c=this['_model']['createRange'](_0x155900,_0x318e5f['end']);this['_addSuggestionMarker'](_0x595c91,_0x58995a,_0x3fdec0,_0x35948c);}else{if(_0x318e5f['containsPosition'](_0x32c2a3['start'])){const _0x2ec92c=this['_model']['createPositionAt'](_0x32c2a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x12b778,this['_model']['createRange'](_0x318e5f['start'],_0x2ec92c));}else{const _0x2b27bd=this['_model']['createPositionAt'](_0x32c2a3['end']['parent'],'after');this['_setSuggestionRange'](_0x12b778,this['_model']['createRange'](_0x2b27bd,_0x318e5f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x58c45c){for(const {suggestion:_0x4a6697,meta:_0x4d5c10}of this['_findSuggestions'](_0x58c45c,'insertion')){if(!_0x4d5c10['isOwn'])continue;const _0x4f24a6=_0x4a6697['getRanges']();for(const _0x31d2f0 of _0x4f24a6)if(!_0x58c45c['getDifference'](_0x31d2f0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10f158){return this['editor']['plugins']['get']('Users')['getUser'](_0x10f158);}['_getExternalAuthor'](_0x58e58f){const _0x5c5d65=this['editor']['plugins']['get']('Users'),_0x2d3c03=_0x8ab510('external:'+_0x58e58f),_0xd3ff99=_0x5c5d65['getUser'](_0x2d3c03);return _0xd3ff99||_0x5c5d65['addUser']({'id':_0x2d3c03,'name':_0x58e58f});}['_createSuggestion'](_0x17290c,_0x81ab6d,_0x552207,_0x26e8a1,_0x1c6748,_0x256060){const _0x54da52=this['_getAuthorFromId'](_0x26e8a1);if(!_0x54da52)throw new _0xf305a4('track-changes-user-not-found',this,{'authorId':_0x26e8a1,'suggestionId':_0x552207});const _0x34d4c3=this['_suggestionFactory']['buildSuggestion'](_0x17290c,_0x81ab6d,_0x552207,_0x54da52,_0x1c6748,_0x380926=>{this['_updateSuggestionData'](_0x552207,{'attributes':_0x380926});const _0x25cabd=this['getSuggestion'](_0x552207);this['_joinWithAdjacentSuggestions'](new Set([_0x25cabd])),this['_refreshSuggestionsChain'](new Set([_0x25cabd]));},_0x256060);return this['listenTo'](_0x34d4c3,'accept',()=>{this['_updateSuggestionData'](_0x552207,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x34d4c3,'discard',()=>{this['_updateSuggestionData'](_0x552207,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x552207,_0x34d4c3),this['_suggestionState']['set'](_0x34d4c3,'notReady'),_0x34d4c3;}['_breakSuggestionMarker'](_0x30f730,_0x54440f,_0x4141b7){const _0x56497d=_0x30f730['getFirstRange'](),_0x406bbd=_0x56497d['start'],_0x22da1d=_0x56497d['end'];this['_setSuggestionRange'](_0x30f730,this['_model']['createRange'](_0x406bbd,_0x54440f));const _0x9279cb=_0x15c67d(),_0x130862=_0x30f730['creator']['id'],_0x3879ec=_0x30f730['type']+(_0x30f730['subType']?':'+_0x30f730['subType']:'');this['_setSuggestionData']({'id':_0x9279cb,'type':_0x3879ec,'createdAt':new Date(),'authorId':_0x130862,'originalSuggestionId':_0x30f730['_originalSuggestionId']||_0x30f730['id'],'attributes':_0x30f730['attributes'],'data':_0x30f730['data']});const _0x16a845=this['_getAttributeKey'](_0x30f730);('formatBlock'==_0x30f730['type']||_0x16a845&&this['_suggestionsConversion']['isBlockAttribute'](_0x16a845))&&(_0x4141b7=this['_model']['createPositionBefore'](_0x4141b7['parent'])),this['_addSuggestionMarker'](_0x3879ec,_0x9279cb,_0x130862,this['_model']['createRange'](_0x4141b7,_0x22da1d));}['_findSuggestions'](_0x539e53,_0x1dff92=null){const _0x2ab8a5=[],_0x1039bb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x539e53)||(_0x539e53=[_0x539e53]);for(const _0x444712 of this['getSuggestions']()){if(!_0x444712['isInContent'])continue;if(_0x1dff92&&_0x444712['type']!=_0x1dff92)continue;let _0x57b2d0=!0x1;for(const _0x330c79 of _0x444712['getRanges']()){for(const _0x5a14e1 of _0x539e53){const _0x3585ef=_0x5a14e1['start']['isEqual'](_0x330c79['end'])||_0x5a14e1['end']['isEqual'](_0x330c79['start']);if(_0x3585ef||_0x5a14e1['getIntersection'](_0x330c79)){const _0x175b42=_0x5a14e1['containsRange'](_0x330c79)&&Dt(this['_model']['schema'],_0x330c79['start'],_0x5a14e1),_0x316aee=_0x330c79['containsRange'](_0x5a14e1)&&Dt(this['_model']['schema'],_0x5a14e1['start'],_0x330c79);_0x2ab8a5['push']({'suggestion':_0x444712,'meta':{'isOwn':_0x1039bb==_0x444712['author'],'isNextTo':_0x3585ef,'isInsideObject':_0x175b42,'containsRangeInObject':_0x316aee}}),_0x57b2d0=!0x0;break;}}if(_0x57b2d0)break;}}return _0x2ab8a5;}['_addSuggestionMarker'](_0xfac866,_0x37c630,_0x495a16,_0x164338,_0x5b2e06){this['_model']['change'](_0xd8f08b=>{let _0xc904ee='suggestion:'+_0xfac866+':'+_0x37c630+':'+_0x495a16;_0x5b2e06&&(_0xc904ee=_0xc904ee+':'+_0x5b2e06),_0xd8f08b['addMarker'](_0xc904ee,{'range':_0x164338,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x71d12b){const _0x527ff2=_0x71d12b['previous'],_0x53ab46=_0x71d12b['next'];_0x71d12b['previous']=null,_0x71d12b['next']=null,null!=_0x527ff2&&_0x527ff2['next']==_0x71d12b&&(_0x527ff2['next']=_0x53ab46),null!=_0x53ab46&&_0x53ab46['previous']==_0x71d12b&&(_0x53ab46['previous']=_0x527ff2),'ready'==this['_suggestionState']['get'](_0x71d12b)&&(this['_suggestionState']['set'](_0x71d12b,'removed'),this['fire']('suggestionUnloaded',_0x71d12b,_0x527ff2,_0x53ab46));}['_setSuggestionData'](_0x12cdcf){const _0x1f4653=_0x12cdcf['id'],_0xda94d8=this['addSuggestionData'](_0x12cdcf);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1dc463=this['editor']['plugins']['get']('PendingActions'),_0x2dbbf6=_0xda94d8['hasComments'],_0x25af30=_0xda94d8['subType']?_0xda94d8['type']+':'+_0xda94d8['subType']:_0xda94d8['type'],_0x5ddbbd=this['editor']['locale'],_0x488304=_0x1dc463['add'](Tt(_0x5ddbbd,'PENDING_ACTION_SUGGESTION')),_0x121157={'id':_0x1f4653,'type':_0x25af30,'hasComments':_0x2dbbf6,'data':_0x12cdcf['data']||null,'originalSuggestionId':_0x12cdcf['originalSuggestionId']||null,'attributes':_0xda94d8['attributes']};this['_adapter']['addSuggestion'](_0x121157)['then'](_0x4dbab9=>{_0xda94d8['_saved']=!0x0,_0x1dc463['remove'](_0x488304),_0x4dbab9&&_0x4dbab9['createdAt']&&(this['_suggestions']['get'](_0x1f4653)['createdAt']=_0x4dbab9['createdAt']);})['catch'](_0x158ec0=>{throw _0x245ac6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xda94d8['discard']();}),_0xda94d8['stopListening'](),this['_suggestions']['delete'](_0xda94d8['id']),this['_suggestionState']['delete'](_0xda94d8),_0x158ec0;});}return _0xda94d8;}['_updateSuggestionData'](_0x31ec67,_0x377d26){const _0x1c0277=this['editor']['plugins']['get']('PendingActions'),_0x30caa0=this['getSuggestion'](_0x31ec67);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30caa0['_saved']){const _0x249e7f=_0x1c0277['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x31ec67,_0x377d26)['then'](()=>{_0x1c0277['remove'](_0x249e7f);});}else _0x30caa0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x31ec67,_0x377d26);});}}['_getSuggestionData'](_0x48bf87){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xf305a4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x48bf87);}['_handleNewSuggestionMarker'](_0x4f24b3){const {id:_0x46dfed,type:_0x1a829,subType:_0x4b4e4f,authorId:_0x2819b3}=_0x309b71(_0x4f24b3),_0xa0c731=this['_suggestions']['get'](_0x46dfed)||this['_createSuggestion'](_0x1a829,_0x4b4e4f,_0x46dfed,_0x2819b3,{});switch(this['_checkSuggestionCorrectness'](_0xa0c731,_0x1a829,_0x4b4e4f,_0x2819b3),this['_suggestionState']['get'](_0xa0c731)){case'notReady':this['_getSuggestionData'](_0x46dfed)['then'](_0x104f13=>{let _0x442be5=Promise['resolve']();_0x104f13['hasComments']&&(_0x442be5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x46dfed})),_0x442be5['then'](()=>{this['addSuggestionData'](_0x104f13)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xa0c731,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x46dfed,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xa0c731,'ready'),this['fire']('suggestionLoaded',_0xa0c731);break;case'ready':this['fire']('suggestionChanged',_0xa0c731);}return _0xa0c731['addMarkerName'](_0x4f24b3),_0xa0c731;}['_refreshSuggestionsChain'](_0x9ab49b){const _0x39adff=Array['from'](_0x9ab49b),_0x37c012=_0x39adff['filter'](_0x416806=>'attribute'==_0x416806['type']);this['_refreshAttributeSuggestionsChain'](_0x37c012);const _0x55dc2e=_0x39adff['filter'](_0x14fd3c=>!_0x14fd3c['isMultiRange']&&'attribute'!=_0x14fd3c['type']),_0xa015f3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c10ad=>!_0x6c10ad['isMultiRange']&&'attribute'!=_0x6c10ad['type']),_0x5e78dc=_0xa015f3['filter'](_0x52dbdf=>!_0x9ab49b['has'](_0x52dbdf)),_0x2827d1=new Map(_0xa015f3['map'](_0x4d5ab6=>[_0x4d5ab6,this['_suggestionFactory']['getSuggestionCallback'](_0x4d5ab6['type'],_0x4d5ab6['subType'],'chain')])),_0x433c07=new Map(_0xa015f3['map'](_0x3bace2=>[_0x3bace2,_0x3bace2['getFirstRange']()])),_0x3fba39=new Set(),_0x55df34=new Set();for(let _0x38e340=0x0;_0x38e340<_0x55dc2e['length'];_0x38e340++)_0x2dfab7(_0x55dc2e[_0x38e340],_0x55dc2e,_0x38e340+0x1);for(let _0x18d5c0=0x0;_0x18d5c0<_0x55dc2e['length'];_0x18d5c0++)_0x2dfab7(_0x55dc2e[_0x18d5c0],_0x5e78dc,0x0);const _0x3333d5=new Set();for(let _0x546368=0x0;_0x546368<_0x55dc2e['length'];_0x546368++){const _0x23518d=_0x55dc2e[_0x546368];!_0x55df34['has'](_0x23518d)&&_0x23518d['previous']&&(_0x3333d5['add'](_0x23518d['previous']),_0x23518d['previous']['next']===_0x23518d&&(_0x23518d['previous']['next']=null),_0x23518d['previous']=null),!_0x3fba39['has'](_0x23518d)&&_0x23518d['next']&&(_0x3333d5['add'](_0x23518d['next']),_0x23518d['next']['previous']===_0x23518d&&(_0x23518d['next']['previous']=null),_0x23518d['next']=null);}function _0x2dfab7(_0x4a59eb,_0x1c4268,_0x3d3d52){for(let _0x2bc0bb=_0x3d3d52;_0x2bc0bb<_0x1c4268['length'];_0x2bc0bb++){const _0x31cd96=_0x18ed16(_0x4a59eb,_0x1c4268[_0x2bc0bb]);_0x31cd96&&(_0x31cd96[0x0]['next']=_0x31cd96[0x1],_0x31cd96[0x1]['previous']=_0x31cd96[0x0],_0x3fba39['add'](_0x31cd96[0x0]),_0x55df34['add'](_0x31cd96[0x1]));}}function _0x18ed16(_0x101df1,_0x55d981){if(_0x101df1['author']['id']!==_0x55d981['author']['id'])return null;const _0x16ccdd=_0x2827d1['get'](_0x101df1)(_0x101df1,_0x55d981,_0x433c07['get'](_0x101df1),_0x433c07['get'](_0x55d981));if(!_0x16ccdd)return null;return _0x2827d1['get'](_0x55d981)(_0x101df1,_0x55d981,_0x433c07['get'](_0x101df1),_0x433c07['get'](_0x55d981))?_0x16ccdd[0x1]['commentThread']&&_0x16ccdd[0x1]['commentThread']['length']?null:_0x16ccdd:null;}_0x3333d5['size']&&this['_refreshSuggestionsChain'](_0x3333d5);}['_refreshAttributeSuggestionsChain'](_0x6552fd){if(0x0==_0x6552fd['length'])return;const _0x3e2de2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49759f=>'attribute'==_0x49759f['type']&&_0x49759f['_isDataLoaded']),_0x2b4411=[],_0x53c0f5=new Map();for(const _0x153c47 of _0x3e2de2){const _0x3d56fb=_0x8ab510(_0x153c47['attributes']);_0x53c0f5['has'](_0x3d56fb)||(_0x53c0f5['set'](_0x3d56fb,_0x2b4411['length']),_0x2b4411['push']([]));const _0x53d835=_0x53c0f5['get'](_0x3d56fb);_0x2b4411[_0x53d835]['push'](_0x153c47);}!(function(){_0x2b4411['sort']((_0x2978ce,_0x3d2902)=>{const _0x160873=_0x2978ce[0x0]['createdAt'],_0x30b551=_0x3d2902[0x0]['createdAt'];return _0x160873==_0x30b551?_0x2978ce[0x0]['attributes']['groupId']<_0x3d2902[0x0]['attributes']['groupId']?-0x1:0x1:_0x160873<_0x30b551?-0x1:0x1;});for(const _0x2dd930 of _0x2b4411)_0x2dd930['sort']((_0x40395b,_0x32f8d8)=>_0x40395b['id']<_0x32f8d8['id']?-0x1:0x1);}());for(let _0x2c95fe=0x0;_0x2c95fe<_0x2b4411['length'];_0x2c95fe++){if(0x0==_0x2b4411[_0x2c95fe]['length'])continue;const _0x475fba=[];for(let _0x540f70=_0x2c95fe+0x1;_0x540f70<_0x2b4411['length'];_0x540f70++)0x0!=_0x2b4411[_0x540f70]['length']&&_0x54fc71(_0x2b4411[_0x2c95fe],_0x2b4411[_0x540f70])&&_0x475fba['push'](_0x540f70);for(const _0x22ac71 of _0x475fba)_0x2b4411[_0x2c95fe]=_0x2b4411[_0x2c95fe]['concat'](_0x2b4411[_0x22ac71]),_0x2b4411[_0x22ac71]=[];}for(const _0x2127f5 of _0x2b4411)for(let _0x3f0f91=0x0;_0x3f0f91<_0x2127f5['length'];_0x3f0f91++){const _0xbb226a=_0x2127f5[_0x3f0f91+0x1]||null;_0x2127f5[_0x3f0f91]['next']!==_0xbb226a&&(_0x2127f5[_0x3f0f91]['next']=_0xbb226a);}for(const _0x411bba of _0x2b4411)for(let _0x5c65e4=0x0;_0x5c65e4<_0x411bba['length'];_0x5c65e4++){const _0x550fb0=_0x411bba[_0x5c65e4-0x1]||null;_0x411bba[_0x5c65e4]['previous']!==_0x550fb0&&(_0x411bba[_0x5c65e4]['previous']=_0x550fb0);}function _0x54fc71(_0x231135,_0x55c12f){if(_0x231135[0x0]['attributes']['groupId']!==_0x55c12f[0x0]['attributes']['groupId']&&_0x231135[0x0]['author']!==_0x55c12f[0x0]['author'])return!0x1;if(!function(_0x2fb454,_0x33567b){if(!_0x2fb454['hasComments']&&!_0x33567b['hasComments'])return!0x0;if(_0x2fb454['hasComments']&&_0x33567b['hasComments'])return!0x1;if(_0x2fb454['hasComments']&&_0x33567b['createdAt']<_0x2fb454['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x33567b['hasComments']&&_0x2fb454['createdAt']<_0x33567b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x231135[0x0],_0x55c12f[0x0]))return!0x1;const _0x3b3149=ot(_0x231135[0x0]['attributes'],['groupId','trackingSessionId']),_0x308978=ot(_0x55c12f[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x3b3149,_0x308978))return!0x1;if(_0x231135[0x0]['attributes']['groupId']==_0x55c12f[0x0]['attributes']['groupId'])return!0x0;if(_0x231135[0x0]['attributes']['trackingSessionId']!==_0x55c12f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x231135['every'](_0x122f3f=>_0x55c12f['some'](_0x31668e=>_0x122f3f['getFirstRange']()['isEqual'](_0x31668e['getFirstRange']())))&&_0x55c12f['every'](_0x3ed901=>_0x231135['some'](_0x547c82=>_0x3ed901['getFirstRange']()['isEqual'](_0x547c82['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x389f96){const _0x4ded04=Array['from'](_0x389f96),_0x52632a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2fdb59=_0x52632a['filter'](_0x541bbd=>!_0x389f96['has'](_0x541bbd)),_0x395673=new Map(_0x4ded04['map'](_0x4c8f56=>[_0x4c8f56,this['_suggestionFactory']['getSuggestionCallback'](_0x4c8f56['type'],_0x4c8f56['subType'],'join')])),_0xe683d6=new Map(_0x52632a['map'](_0x5a82d7=>[_0x5a82d7,_0x5a82d7['getRanges']()]));for(let _0x75286=0x0;_0x75286<_0x4ded04['length'];_0x75286++){if(_0xb2616e(this,_0x4ded04[_0x75286],_0x4ded04,_0x75286+0x1))return!0x0;}for(let _0x5ca70d=0x0;_0x5ca70d<_0x4ded04['length'];_0x5ca70d++){if(_0xb2616e(this,_0x4ded04[_0x5ca70d],_0x2fdb59,0x0))return!0x0;}return!0x1;function _0xb2616e(_0x41dfc5,_0x583fbf,_0x22e166,_0x34bf31){for(let _0x4219d0=_0x34bf31;_0x4219d0<_0x22e166['length'];_0x4219d0++){const _0x426f2c=_0x22e166[_0x4219d0];if(_0x426f2c['type']!==_0x583fbf['type']||_0x426f2c['author']['id']!==_0x583fbf['author']['id']||_0x426f2c['subType']!==_0x583fbf['subType'])continue;if(!jt(_0x583fbf,_0x426f2c))continue;if('attribute'==_0x583fbf['type']&&_0x583fbf['data']['oldValue']!=_0x426f2c['data']['oldValue'])continue;if('attribute'==_0x583fbf['type']&&_0x41dfc5['_suggestionsConversion']['isBlockAttribute'](_0x583fbf['data']['key']))continue;if('formatBlock'==_0x583fbf['type']){const _0x5b2e37=_0x41dfc5['editor']['model'],_0x1bf19d=_0x583fbf['getContainedElement']();if(_0x1bf19d&&(_0x5b2e37['schema']['isObject'](_0x1bf19d)||_0x5b2e37['schema']['isLimit'](_0x1bf19d)))continue;}const _0x4f4e51=_0x395673['get'](_0x583fbf),_0x3584c7=_0xe683d6['get'](_0x583fbf),_0x9c819c=_0xe683d6['get'](_0x426f2c),_0xa76657=_0x583fbf['commentThread']&&_0x583fbf['commentThread']['length'],_0x18652c=_0x426f2c['commentThread']&&_0x426f2c['commentThread']['length'];if(!_0xa76657&&_0x4f4e51(_0x9c819c,_0x3584c7))return _0x41dfc5['_joinSuggestions'](_0x426f2c,_0x583fbf),_0xe683d6['delete'](_0x583fbf),!0x0;if(!_0x18652c&&_0x4f4e51(_0x3584c7,_0x9c819c))return _0x41dfc5['_joinSuggestions'](_0x583fbf,_0x426f2c),_0xe683d6['delete'](_0x426f2c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1ac356,_0x171ed5){if(_0x1ac356['isMultiRange']){for(const _0x3f5904 of _0x171ed5['getRanges']())_0x1ac356['addRange'](_0x3f5904);}else{const _0x3d4308=_0x171ed5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1ac356,this['_model']['createRange'](_0x1ac356['getFirstRange']()['start'],_0x3d4308));}_0x171ed5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1d8a73,_0x459194,_0x5a60f7){const _0x26c137=_0x1d8a73['startsWith']('format')||_0x1d8a73['startsWith']('attribute')?'FORMATTING':_0x1d8a73['toUpperCase']();return Tt(this['editor']['locale'],_0x459194+'_'+_0x26c137+'_SUGGESTION_ANNOUNCEMENT',_0x5a60f7);}['_initAriaMarkerChangeAnnouncements'](){const _0x2af26f=this['editor'];if(!_0x2af26f['ui'])return;const {ariaLiveAnnouncer:_0xb30817}=_0x2af26f['ui'];_0x111019(this['_model'],({left:_0x176c0c,entered:_0x25e044})=>{for(const _0x12123e of _0x176c0c){const {group:_0x5307b2,type:_0x27cfe7}=_0x309b71(_0x12123e['name']);if('suggestion'===_0x5307b2){_0xb30817['announce'](this['_getMarkerAnnouncementText'](_0x27cfe7,'LEAVE'));break;}}for(const _0x4a9ea6 of _0x25e044){const {group:_0x5e1763,type:_0x3491f6}=_0x309b71(_0x4a9ea6['name']);if('suggestion'===_0x5e1763){_0xb30817['announce'](this['_getMarkerAnnouncementText'](_0x3491f6,'ENTER',_0x4f5ab9(_0x140de9)));break;}}});}['_processAttributeChanges'](_0x596e30){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4a4250=this['editor'],_0x48ebce=_0x4a4250['model']['document']['differ']['getChanges']();if(0x0==_0x48ebce['length'])return!0x1;const _0x56a5f8=[],_0x4649fa=_0x48ebce['filter'](_0x4673d8=>'attribute'==_0x4673d8['type']),_0x5daef4=_0x48ebce['filter'](_0x33b0e1=>'insert'==_0x33b0e1['type']&&'$text'!=_0x33b0e1['name']),_0x1bc13e=_0x48ebce['filter'](_0x56f8b4=>'remove'==_0x56f8b4['type']&&'$text'!=_0x56f8b4['name']);for(const _0x1749bb of _0x4649fa)_0x56a5f8['push']({'key':_0x1749bb['attributeKey'],'newValue':_0x1749bb['attributeNewValue'],'oldValue':_0x1749bb['attributeOldValue'],'range':$t(_0x1749bb['range'],_0x4a4250['model'])});for(const _0x3a1ef7 of _0x5daef4){const _0x1d294b=_0x1bc13e['find'](_0x176692=>_0x176692['position']['isEqual'](_0x3a1ef7['position']));_0x1d294b&&_0x56a5f8['push']({'key':Ft,'newValue':_0x3a1ef7['name'],'oldValue':_0x1d294b['name'],'range':_0x4a4250['model']['createRangeOn'](_0x3a1ef7['position']['nodeAfter'])});}return 0x0!=_0x56a5f8['length']&&this['_reduceExistingSuggestions'](_0x596e30,_0x56a5f8);}['_processAttributeSuggestions'](_0x2a07de){let _0x304bed=!0x1;const _0x3bea24=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4dae5b=>_0x4dae5b['data']['newRange']&&_0x4dae5b['name']['startsWith']('suggestion:attribute:'));for(const _0x34e4dd of _0x3bea24){const {subType:_0x58f641,id:_0x5456ea}=_0x309b71(_0x34e4dd['name']),_0x4541df=_0x58f641['split']('|')[0x0];for(const _0xe6c9bf of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe6c9bf['id']!=_0x5456ea&&'attribute'==_0xe6c9bf['type']&&_0xe6c9bf['data']&&_0xe6c9bf['data']['key']==_0x4541df&&_0xe6c9bf['getFirstRange']()['isIntersecting'](_0x34e4dd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe6c9bf,_0x34e4dd['data']['newRange'],_0x2a07de),_0x304bed=!0x0);}return _0x304bed;}['recordAttributeChanges'](_0x5593cd){this['_recordAttributeSuggestions']=!0x0,_0x5593cd();}['_reduceExistingSuggestions'](_0x550696,_0x2abba4){if(0x0==_0x2abba4['length'])return!0x1;let _0x505e2c=!0x1;for(const _0x4faf22 of _0x2abba4){const _0x2d4348=this['_findSuggestions'](_0x4faf22['range'],'attribute')['filter'](_0x227013=>!_0x227013['meta']['isNextTo'])['map'](_0x551100=>_0x551100['suggestion']),_0x577940=_0x8ab510({'newValue':_0x4faf22['newValue']});_0x2d4348['filter'](_0x60c1e9=>{const [_0x4209f7,_0x14e655]=_0x60c1e9['subType']['split']('|');return _0x4209f7==_0x4faf22['key']&&_0x14e655!=_0x577940;})['forEach'](_0x987885=>{this['_reduceSuggestionAttributeRange'](_0x987885,_0x4faf22['range'],_0x550696),_0x505e2c=!0x0;});}return _0x505e2c;}['_reduceSuggestionAttributeRange'](_0xb3c27c,_0x367428,_0x4b3219){const _0x500443=_0xb3c27c['getFirstRange']()['getDifference'](_0x367428);0x0!==_0x500443['length']?0x1!==_0x500443['length']?this['_breakSuggestionMarker'](_0xb3c27c,_0x367428['start'],_0x367428['end']):this['_setSuggestionRange'](_0xb3c27c,_0x500443[0x0]):_0x4b3219['removeMarker'](_0xb3c27c['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x146f2b){this['_editor']=_0x146f2b,this['_model']=_0x146f2b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5e5ad9,_0x14631e,_0x353342,_0x3c645b,_0x54c9a8,_0x2c5d0b,_0x1bdc91){return new Suggestion(this['_model'],{'type':_0x5e5ad9,'subType':_0x14631e,'id':_0x353342,'originalSuggestionId':_0x1bdc91,'author':_0x3c645b,'creator':_0x3c645b,'attributes':_0x54c9a8,'onAttributesChange':_0x2c5d0b,'onAccept':(..._0x3cac9b)=>this['getSuggestionCallback'](_0x5e5ad9,_0x14631e,'accept')(..._0x3cac9b),'onDiscard':(..._0x2295ed)=>this['getSuggestionCallback'](_0x5e5ad9,_0x14631e,'discard')(..._0x2295ed)});}['registerCustomCallback'](_0x4b8b6e,_0x459f4a,_0xfd693b,_0x6f7a49){const _0x50c0d6=_0x4b8b6e+':'+_0x459f4a+':'+_0xfd693b;this['_customCallbacks']['set'](_0x50c0d6,_0x6f7a49);}['getSuggestionCallback'](_0x5bc132,_0x3012fb,_0x33522f){const _0x2b42e0=_0x5bc132+':'+_0x3012fb+':'+_0x33522f;return this['_customCallbacks']['get'](_0x2b42e0)||this['_defaultCallbacks']['get'](_0x5bc132+':'+_0x33522f);}['_registerDefaultCallbacks'](){const _0x285713=()=>!0x1,_0x526a16=_0x1877c3=>{_0x1877c3['sort']((_0xb12e33,_0x44adae)=>_0xb12e33['start']['isBefore'](_0x44adae['start'])?0x1:-0x1),this['_model']['change'](_0x184aef=>{for(const _0x20dbf6 of _0x1877c3){let _0x514f29;_0x514f29=_0x20dbf6['end']['isAtEnd']&&_0x20dbf6['end']['parent']==_0x20dbf6['start']['nodeAfter']?_0x184aef['createSelection'](_0x20dbf6['start']['nodeAfter'],'on'):_0x184aef['createSelection'](_0x20dbf6),this['_model']['deleteContent'](_0x514f29,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x468646=(_0xd88468,_0x4a9e37)=>{_0x4a9e37&&this['_model']['change'](_0x339f70=>{const {commandName:_0x2b69e3,commandParams:_0x5a08f7=[]}=_0x4a9e37,_0x109d30=_0xd88468['map'](_0x409d8c=>(vt(_0x409d8c)&&(_0x409d8c=this['_model']['createRange'](_0x409d8c['end'])),_0x409d8c))['filter'](_0x4e9bce=>'$graveyard'!==_0x4e9bce['root']['rootName']);if(_0x109d30['length']<0x1)return;const _0x1df95d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xde672c=>_0x52f028['fromRange'](_0xde672c));_0x339f70['setSelection'](_0x109d30);for(const _0x3ea647 of this['_editor']['commands']['commands']())_0x3ea647['refresh']();_0x5a08f7['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2b69e3,..._0x5a08f7);const _0x1a132e=_0x1df95d['filter'](_0x148fcb=>'$graveyard'!=_0x148fcb['root']['rootName']);_0x1a132e['length']>0x0&&_0x339f70['setSelection'](_0x1a132e);for(const _0x32ef87 of _0x1df95d)_0x32ef87['detach']();});},_0x290504=(_0x39266e,_0x37789b)=>0x1==_0x39266e['length']&&0x1==_0x37789b['length']&&_0x39266e[0x0]['end']['isEqual'](_0x37789b[0x0]['start']),_0x1df838=(_0x301d82,_0x1628e4,_0xb972c2,_0x2e5760)=>Wt(_0x301d82,_0x1628e4,_0xb972c2,_0x2e5760)?[_0x301d82,_0x1628e4]:Wt(_0x1628e4,_0x301d82,_0x2e5760,_0xb972c2)?[_0x1628e4,_0x301d82]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x285713),this['_defaultCallbacks']['set']('insertion:discard',_0x526a16),this['_defaultCallbacks']['set']('insertion:join',_0x290504),this['_defaultCallbacks']['set']('insertion:chain',_0x1df838),this['_defaultCallbacks']['set']('deletion:accept',_0x526a16),this['_defaultCallbacks']['set']('deletion:discard',_0x285713),this['_defaultCallbacks']['set']('deletion:join',_0x290504),this['_defaultCallbacks']['set']('deletion:chain',_0x1df838),this['_defaultCallbacks']['set']('formatInline:accept',_0x468646),this['_defaultCallbacks']['set']('formatInline:discard',_0x285713),this['_defaultCallbacks']['set']('formatInline:join',_0x290504),this['_defaultCallbacks']['set']('formatInline:chain',_0x285713),this['_defaultCallbacks']['set']('formatBlock:accept',_0x468646),this['_defaultCallbacks']['set']('formatBlock:discard',_0x285713),this['_defaultCallbacks']['set']('formatBlock:join',_0x290504),this['_defaultCallbacks']['set']('formatBlock:chain',_0x285713),this['_defaultCallbacks']['set']('attribute:accept',_0x285713),this['_defaultCallbacks']['set']('attribute:discard',(_0x35453b,_0x443436)=>{if(!_0x443436)return;const _0x2bfbe4=this['_editor']['plugins']['get'](_0x3a1f76);this['_model']['change'](_0x29ff68=>{if(_0x443436['key']==Ft)for(const _0x1500f7 of _0x35453b){const _0x46b666=_0x1500f7['start']['nodeAfter'],_0x2aacc7=_0x443436['oldValue'];_0x29ff68['rename'](_0x46b666,_0x2aacc7);}else{if(_0x2bfbe4['isBlockAttribute'](_0x443436['key'])){for(const _0x34c744 of _0x35453b)void 0x0!==_0x443436['oldValue']?_0x29ff68['setAttribute'](_0x443436['key'],_0x443436['oldValue'],_0x34c744['start']['nodeAfter']):_0x29ff68['removeAttribute'](_0x443436['key'],_0x34c744['start']['nodeAfter']);}else{for(const _0xd1b8d5 of _0x35453b)_0x443436['oldValue']?_0x29ff68['setAttribute'](_0x443436['key'],_0x443436['oldValue'],_0xd1b8d5):_0x29ff68['removeAttribute'](_0x443436['key'],_0xd1b8d5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x290504);}}function Dt(_0xbc6fd6,_0x1caa2d,_0x2ce1e8){for(const _0x51f084 of _0x1caa2d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51f084['root']==_0x51f084)return!0x1;if(!_0x2ce1e8['containsItem'](_0x51f084))return!0x1;if(_0xbc6fd6['isObject'](_0x51f084)||_0xbc6fd6['isLimit'](_0x51f084))return!0x0;}return!0x1;}function vt(_0x1eee14){return _0x1eee14['end']['parent']==_0x1eee14['start']['nodeAfter']&&_0x1eee14['end']['isAtStart'];}function xt(_0x1e4ca0,_0x4e13cf,_0x1451a3,_0x3dc4c2){const _0x1b52e0=_0xceede1=>!_0xceede1['item']['is']('$textProxy')&&!_0x3dc4c2['isObject'](_0xceede1['item']),_0x416295=_0x1e4ca0['start']['getLastMatchingPosition'](_0x1b52e0),_0x17f8e5=_0x1e4ca0['end']['getLastMatchingPosition'](_0x1b52e0,{'direction':'backward'});return(!_0x1e4ca0['start']['isEqual'](_0x416295)||!_0x1e4ca0['end']['isEqual'](_0x17f8e5))&&(_0x416295['isBefore'](_0x17f8e5)?_0x1451a3['updateMarker'](_0x4e13cf,{'range':_0x1451a3['createRange'](_0x416295,_0x17f8e5)}):_0x1451a3['removeMarker'](_0x4e13cf),!0x0);}function Pt(_0x3b3512){return _0x8ab510(_0x3b3512);}function Ut(_0x4c06b5){const _0x33f34f=_0x4c06b5['start']['nodeAfter'];return _0x33f34f&&_0x33f34f['is']('element');}function Gt(_0x1c922f){return vt(_0x1c922f)||function(_0x21bcab){return _0x21bcab['start']['parent']==_0x21bcab['end']['nodeBefore']&&_0x21bcab['start']['isAtEnd'];}(_0x1c922f);}function Ht(_0x54dc2e,_0x4dd337){try{const _0x269de7=_0x54dc2e['getRange']();for(const _0xc5472e of _0x4dd337)if(_0x54dc2e!==_0xc5472e&&_0x269de7&&_0x269de7['isIntersecting'](_0xc5472e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x328149,_0x379319){return null==_0x328149['end']['nodeBefore']&&_0x328149['end']['parent']==_0x328149['start']['nodeAfter']?Vt(_0x328149['start']['nodeAfter'],_0x379319):_0x328149;}function Vt(_0x199056,_0x56f9c5){const _0x85e5f0=_0x56f9c5['schema']['isObject'](_0x199056)||_0x56f9c5['schema']['isSelectable'](_0x199056);return _0x56f9c5['createRange'](_0x56f9c5['createPositionAt'](_0x199056,'before'),_0x85e5f0?_0x56f9c5['createPositionAfter'](_0x199056):_0x56f9c5['createPositionAt'](_0x199056,'end'));}function Wt(_0x13b6e3,_0x53b4db,_0x3216c6,_0xfd4a7d){return!!jt(_0x13b6e3,_0x53b4db)&&_0x3216c6['end']['isEqual'](_0xfd4a7d['start']);}function jt(_0x4b238c,_0xf420c0){if(!_0x4b238c['_isDataLoaded']||!_0xf420c0['_isDataLoaded'])return!0x1;const _0x517c3e=new Set(Object['keys'](_0x4b238c['attributes'])),_0x8d9b7d=new Set(Object['keys'](_0xf420c0['attributes']));if(_0x517c3e['delete']('groupId'),_0x8d9b7d['delete']('groupId'),0x0==_0x517c3e['size']&&0x0==_0x8d9b7d['size'])return!0x0;if(_0x517c3e['size']!=_0x8d9b7d['size'])return!0x1;const _0x3d8b1d={..._0x4b238c['attributes']},_0xdc1957={..._0xf420c0['attributes']};return delete _0x3d8b1d['groupId'],delete _0xdc1957['groupId'],JSON['stringify'](_0x3d8b1d)==JSON['stringify'](_0xdc1957);}function zt(_0x591784,_0x447d13){const _0x35e614=Kt(_0x591784['attributes']),_0xe79464=Kt(_0x447d13);if(!_0x591784['_isDataLoaded'])return!0x1;for(const _0x45705b of Object['keys'](_0xe79464))if(!st(_0x35e614[_0x45705b],_0xe79464[_0x45705b]))return!0x1;return!0x0;}function Kt(_0x4f7a7e){const _0x500d60=Object['assign']({},_0x4f7a7e);return delete _0x500d60['skipNestingCheck'],delete _0x500d60['tablePasteChainId'],_0x500d60;}function Xt(_0x15e523){return _0x15e523['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x4ad4da(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4ba525,_0x51a43a,_0x4910a0,_0x19c9a9){super(),this['model']=_0x51a43a,this['view']=_0x4910a0,this['commentThreadController']=_0x19c9a9,this['_editor']=_0x4ba525,this['_acceptCommand']=_0x4ba525['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4ba525['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x545d9a,_0x5609a2)=>_0x545d9a||_0x5609a2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x335d19=>_0x335d19&&this['_editor']['model']['canEditAt'](_0x51a43a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x56fe33=>_0x56fe33&&this['_editor']['model']['canEditAt'](_0x51a43a['getRanges']())),this['_pendingAction']=null,_0x4910a0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4910a0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4910a0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4910a0,'change:isDirty',()=>{_0x4910a0['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 _0x6120f8=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x6120f8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x1d4965{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x50b24e,_0x13c444,_0x10353e,_0x3291e9){super(_0x50b24e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2e66ab(_0x50b24e,Tt(_0x50b24e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x13c444['authoredAt']),this['bind']('authoredAt')['to'](_0x13c444),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',_0x13c444,'authoredAt',this,'descriptionParts',(_0x57333e,_0x46f42f,_0x11b139)=>{const _0x16d57d=_0x11b139['map'](_0x5a07ce=>ht(_0x5a07ce['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x57333e-0x1,_0x13c444['author']['name'],_0x46f42f?_0x3291e9['formatDateTime'](_0x46f42f):'',new DOMParser()['parseFromString'](_0x16d57d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2cde5a(),this['focusTracker']=new _0x510f0b(),this['keystrokes']=new _0x144cb2(),this['focusCycler']=new _0x21f97f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x46cd4a=>_0x46cd4a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x13c444,this['_localUser']=_0x10353e,this['_config']=_0x3291e9,_0x3291e9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x47cc6b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1584bc}=this['_config'];this['commentsListView']=new _0x1584bc(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',_0x348115=>_0x348115+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x35890a,_0x4483db)=>_0x35890a||!!_0x4483db);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5f1c56}=this['_config'],_0x2bc919=new _0x5f1c56(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x164534=_0x2bc919['commentInputView'];return _0x2bc919['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x164534,'value',(_0x272cd0,_0x5ef22c,_0x5aba7a)=>!!_0x5aba7a||_0x272cd0&&!_0x5ef22c),_0x164534['on']('submit',(_0x45f474,_0x53e7a4)=>{this['fire']('addComment',_0x53e7a4),_0x164534['editor']['setData']('');}),_0x164534['on']('cancel',()=>this['focus']()),_0x164534['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2bc919;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x5b6852,_0xfa8c14,_0xfca969,_0x5a1305){super(_0x5b6852,_0xfa8c14,_0xfca969,_0x5a1305),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x21ff8d=>_0x21ff8d&&_0x21ff8d[0x0]?_0x21ff8d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2db4ef,_0x2445d6)=>{let _0x401a79='';for(const _0xdb8e7b of _0x2db4ef)_0x401a79+='<p>'+ht(_0xdb8e7b['content'],_0xdb8e7b['color'])+'</p>';return _0x2445d6?_0x401a79:_0x487fd4(_0x401a79,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5a1305['SuggestionView'](_0x5b6852,_0xfa8c14,{'formatDateTime':_0x5a1305['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 _0x237d3b=this['bindTemplate'],_0x2b5615=[this['suggestionView']];return this['commentsListView']&&_0x2b5615['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2b5615['push'](this['commentThreadInputView']),_0x2b5615['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x237d3b['if']('isActive','ck-suggestion-wrapper--active'),_0x237d3b['to']('type',_0x59c2bf=>'ck-suggestion-'+_0x59c2bf),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':_0x237d3b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2b5615};}['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 SuggestionView extends _0x1d4965{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23ce49,_0xe1a6fb,_0x241850){super(_0x23ce49),this['_model']=_0xe1a6fb,this['_config']=_0x241850,this['set']('description',''),this['bind']('authoredAt')['to'](_0xe1a6fb),this['acceptButton']=this['_createButton'](Tt(_0x23ce49,'Accept\x20suggestion'),_0x52f1a9,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x23ce49,'Discard\x20suggestion'),_0x2ee486,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xa2432f(_0x23ce49,_0xe1a6fb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2cde5a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x510f0b(),this['keystrokes']=new _0x144cb2(),this['focusCycler']=new _0x21f97f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3d8659=>_0x3d8659['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x9ec493=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x9ec493['innerHTML']=this['description'],this['on']('change:description',(_0x2b09da,_0x342bf6,_0x485f6c)=>{_0x9ec493['innerHTML']=_0x485f6c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x384708=this['bindTemplate'],_0x31fbc3=[{'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':_0x384708['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x384708['to']('authoredAt',_0x8d7788=>this['_config']['formatDateTime'](_0x8d7788))}]}]},{'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']&&_0x31fbc3['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':_0x31fbc3}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2834fa,_0x5ce3f8,_0x2494bf,_0x4aba6d,_0x4f196b){const _0x1b0e0a=new _0x34b590(this['locale']);return _0x1b0e0a['set']({'label':_0x2834fa,'icon':_0x5ce3f8,'tooltip':!0x0,'tooltipPosition':_0x4f196b}),_0x1b0e0a['extendTemplate']({'attributes':{'class':_0x2494bf}}),_0x1b0e0a['on']('execute',()=>{this['fire'](_0x4aba6d,this['_model']['id']);}),_0x1b0e0a;}['_setupKeyboardNavigation'](){const _0x1b4220=this['element'];this['keystrokes']['listenTo'](_0x1b4220);for(const _0xbb4e94 of this['focusables'])this['focusTracker']['add'](_0xbb4e94['element']),this['keystrokes']['listenTo'](_0xbb4e94['element']);this['keystrokes']['set']('enter',(_0x1ab78a,_0x271964)=>{_0x1b4220===_0x1ab78a['target']&&(this['focusCycler']['focusFirst'](),_0x271964());}),this['keystrokes']['set']('esc',(_0x3e2911,_0x25d629)=>{_0x1b4220!==_0x3e2911['target']&&(this['focus'](),_0x25d629());});}}class TrackChangesUI extends _0x3cecf3{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x519d42,_0x3aec4d,_0x3a1a56,_0x334083];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10d7fb){super(_0x10d7fb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x39f39b=this['editor']['config'];_0x39f39b['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x39f39b['define']('trackChanges.SuggestionView',SuggestionView),_0x39f39b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x39f39b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1b11a5,_0x223fe4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4cf7e8,_0x1e3432]of this['_handleControllerBuffer']){const _0x198d4b=this['_suggestionToController']['has'](_0x4cf7e8);_0x198d4b||_0x1e3432?_0x198d4b&&_0x1e3432&&this['_destroyController'](_0x4cf7e8):this['_initializeController'](_0x4cf7e8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x334083)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1b11a5,_0x223fe4);}['init'](){const _0x1d3a27=this['editor'],_0x3eaf7c=_0x1d3a27['plugins']['get'](TrackChangesEditing),_0x42577a=_0x1d3a27['plugins']['get'](_0x3a1a56),_0x205d70=_0x1d3a27['plugins']['get'](_0x334083),_0x4022e1=_0x1d3a27['plugins']['get'](_0x3aec4d);this['_addUIComponentsToFactory'](),_0x205d70['addSourceCollector'](()=>{const _0x1b9ac5=[];for(const [_0x37fcf2,_0x3517fb]of Array['from'](this['_suggestionToController'])){const _0x37e050=_0x37fcf2['getAllAdjacentSuggestions'](),_0x163d70=[];for(const _0x5775af of _0x37e050){if(!_0x5775af['isInContent'])continue;if(_0x5775af['isMultiRange']){_0x163d70['push'](..._0x5775af['getRanges']());continue;}const _0x4eb330=_0x5775af['getFirstRange']();if(_0x163d70['length']>0x0){const _0x534a85=_0x163d70[0x0]['getJoined'](_0x4eb330);if(_0x534a85){_0x163d70[0x0]=_0x534a85;continue;}}_0x163d70['push'](_0x4eb330);}_0x1b9ac5['push']([_0x3517fb['view'],_0x163d70]);}return _0x1b9ac5;}),this['listenTo'](_0x3eaf7c,'suggestionLoaded',(_0x5ab11d,_0x594529)=>{this['listenTo'](_0x594529,'change:previous',(_0x31811a,_0x3d6ea6,_0x1626d,_0x1c3404)=>{_0x594529['isInContent']&&(null==_0x1626d?(this['_updateController'](_0x1c3404['head']),this['_handleSuggestionControllerDelayed'](_0x594529,!0x1)):(this['_updateController'](_0x1626d['head']),null==_0x1c3404&&this['_handleSuggestionControllerDelayed'](_0x594529,!0x0)));}),null!==_0x594529['previous']?this['_updateController'](_0x594529['head']):this['_handleSuggestionControllerDelayed'](_0x594529,!0x1);}),this['listenTo'](_0x3eaf7c,'suggestionUnloaded',(_0xe9a1cf,_0x1e754b,_0x163275)=>{this['stopListening'](_0x1e754b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1e754b),this['_suggestionToController']['has'](_0x1e754b)&&this['_destroyController'](_0x1e754b),_0x163275&&this['_updateController'](_0x163275['head']);}),this['listenTo'](_0x3eaf7c,'suggestionChanged',(_0x3cc3e4,_0x2f1b35)=>{this['_updateController'](_0x2f1b35);}),this['listenTo'](_0x42577a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4022e1,'addComment',(_0x4c532e,{threadId:_0x59e896,isFromAdapter:_0x27720b})=>{if(_0x27720b||!_0x3eaf7c['hasSuggestion'](_0x59e896))return;const _0x23a1b6=_0x3eaf7c['getSuggestion'](_0x59e896);this['_suggestionToController']['get'](_0x23a1b6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x138ab7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24f62c;for(const _0x1ccc0a in _0x138ab7){const _0x5d1979=_0x1ccc0a,_0x1bde6e=_0x138ab7[_0x5d1979];if('trackChangesLicenseKeyValid'==_0x1bde6e||'trackChangesLicenseKeyInvalid'==_0x1bde6e||'trackChangesLicenseKeyExpired'==_0x1bde6e||'trackChangesLicenseKeyDomainLimit'==_0x1bde6e||'trackChangesLicenseKeyNotAllowed'==_0x1bde6e||'trackChangesLicenseKeyEvaluationLimit'==_0x1bde6e||'trackChangesLicenseKeyUsageLimit'==_0x1bde6e){delete _0x138ab7[_0x5d1979],_0x24f62c=_0x1bde6e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x24f62c&&_0x138ab7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x24f62c&&_0x138ab7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x24f62c&&_0x138ab7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x24f62c&&_0x138ab7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x24f62c&&_0x138ab7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x24f62c&&_0x138ab7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2afa46){const _0x55dd19=this['_suggestionToController']['get'](_0x2afa46);if(!_0x55dd19)return null;return this['editor']['plugins']['get'](_0x3a1a56)['getByInnerView'](_0x55dd19['view'])||null;}['getSuggestionForAnnotation'](_0x4b3843){const _0x4b9ae2=this['_viewToController']['get'](_0x4b3843['innerView']);return _0x4b9ae2?_0x4b9ae2['model']:null;}['_refreshActiveMarkers'](){const _0x2cdf01=this['editor']['plugins']['get'](_0x3a1a56),_0x12edda=this['editor']['plugins']['get'](TrackChangesEditing),_0x4fe7d=Array['from'](_0x2cdf01['activeAnnotations'],_0x49e818=>_0x49e818['innerView'])['filter'](_0x43cd38=>this['_viewToController']['has'](_0x43cd38)),_0x2baab0=[];for(const _0xb3d933 of _0x4fe7d){const _0x4ae64a=this['_viewToController']['get'](_0xb3d933)['model']['getAllAdjacentSuggestions']();_0x2baab0['push'](..._0x4ae64a['reduce']((_0x1dfeb1,_0x31b8d0)=>[..._0x1dfeb1,..._0x31b8d0['getMarkerNames']()],[]));}_0x12edda['activeMarkers']=_0x2baab0;}['_addUIComponentsToFactory'](){const _0x2b483d=this['editor'],_0x19751a=_0x2b483d['locale'],_0x305e16=Tt(_0x19751a,'Track\x20changes'),_0x300224=new _0x4eedf8([{'type':'switchbutton','model':new _0x4bcee2({'withText':!0x0,'isToggleable':!0x0,'label':_0x305e16,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2b483d['plugins']['has']('TrackChangesPreview')&&_0x300224['addMany']([{'type':'separator'},{'type':'button','model':new _0x4bcee2({'withText':!0x0,'label':Tt(_0x19751a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x48354e of _0x300224)if(Yt(_0x48354e)){const _0x4512a6=_0x2b483d['commands']['get'](_0x48354e['model']['commandName']);_0x48354e['model']['bind']('isOn','isEnabled')['to'](_0x4512a6,'value','isEnabled');}_0x2b483d['ui']['componentFactory']['add']('trackChanges',_0x2d2b9d=>this['_createToolbarButton'](_0x2d2b9d,_0x300224,_0x305e16)),_0x2b483d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x26f91b=>this['_createMenuBarMenu'](_0x26f91b,_0x300224,_0x305e16));}['_createToolbarButton'](_0x5cd07e,_0x1de135,_0x2e38fc){const _0x436862=_0x427557(_0x5cd07e,_0x1277f5),_0x10d200=this['editor']['commands']['get']('trackChanges');_0x436862['buttonView']['set']({'tooltip':_0x2e38fc,'label':_0x2e38fc,'icon':_0x26eeb4}),_0x436862['buttonView']['bind']('isOn')['to'](_0x10d200,'value'),_0x436862['buttonView']['on']('execute',()=>{_0x10d200['execute'](),this['editor']['editing']['view']['focus']();}),_0x25df39(_0x436862,_0x1de135,{'role':'menu'});const _0x15c7cc=[];for(const _0x1dbb44 of _0x1de135)Yt(_0x1dbb44)&&_0x15c7cc['push'](this['editor']['commands']['get'](_0x1dbb44['model']['commandName']));const _0x373737=_0x436862['buttonView'];return _0x373737['actionView']['unbind']('isEnabled'),_0x373737['arrowView']['unbind']('isEnabled'),_0x373737['actionView']['bind']('isEnabled')['to'](_0x10d200,'isEnabled'),_0x373737['arrowView']['bind']('isEnabled')['toMany'](_0x15c7cc,'isEnabled',(..._0x42c311)=>_0x42c311['some'](_0x26a959=>_0x26a959)),_0x436862['on']('execute',_0x565232=>{this['editor']['execute'](_0x565232['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x436862;}['_createMenuBarMenu'](_0x31c0c5,_0x6d610b,_0x346cc8){const _0x572f89=new _0x329c9d(_0x31c0c5),_0x36e16f=this['editor']['commands']['get']('trackChanges');_0x572f89['buttonView']['set']({'label':_0x346cc8,'icon':_0x26eeb4});const _0x1c306e=new _0x45ae9b(_0x31c0c5);for(const _0x37a7be of _0x6d610b){if('separator'==_0x37a7be['type']){_0x1c306e['items']['add'](new _0x115fe3(_0x31c0c5));continue;}const _0x2ccb00=new _0x1992a8(_0x31c0c5,_0x572f89),_0x54fa66=new _0x3e12cd(_0x31c0c5),_0x360564=_0x37a7be['model'];_0x54fa66['bind'](...Object['keys'](_0x360564))['to'](_0x360564),_0x54fa66['delegate']('execute')['to'](_0x572f89),_0x54fa66['on']('execute',()=>{this['editor']['execute'](_0x360564['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ccb00['children']['add'](_0x54fa66),_0x1c306e['items']['add'](_0x2ccb00);}return _0x572f89['bind']('isEnabled')['to'](_0x36e16f,'isEnabled'),_0x572f89['panelView']['children']['add'](_0x1c306e),_0x572f89;}['_initializeController'](_0x1e6e22){const _0x5b5394=this['editor'],_0x58b433=_0x5b5394['config'],_0x289092=_0x5b5394['plugins']['get'](_0x3a1a56),_0x56b286=_0x5b5394['plugins']['get'](_0x3aec4d),_0x151172=_0x5b5394['plugins']['get'](_0x334083),_0x4bc849=_0x5b5394['plugins']['get'](_0x519d42)['me'],_0x11951e=_0x58b433['get']('trackChanges')['SuggestionThreadView'],_0x433012=_0x58b433['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x590b33,CommentThreadInputView:_0x27151b}=_0x5b5394['plugins']['get']('CommentsUI');let _0x431884,_0xeb2954,_0x3644ac;this['_annotationViews']['has'](_0x1e6e22['id'])?(_0xeb2954=this['_annotationViews']['get'](_0x1e6e22['id']),_0x431884=_0xeb2954['mainView']):(_0x431884=new _0x11951e(_0x5b5394['locale'],_0x1e6e22,_0x4bc849,{'disableComments':this['_disableComments'],'editorConfig':{..._0x58b433['get']('comments.editorConfig'),'licenseKey':_0x58b433['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x58b433['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x58b433['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x58b433['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2ae8ac(_0x58b433['get']('locale'),_0x5b5394['locale']),'CommentView':_0x58b433['get']('comments')['CommentView'],'CommentsListView':_0x590b33,'CommentThreadInputView':_0x27151b,'SuggestionView':_0x433012}),_0x431884['suggestionView']['acceptButton']['on']('execute',()=>{_0x5b5394['editing']['view']['focus']();}),_0x431884['suggestionView']['discardButton']['on']('execute',()=>{_0x5b5394['editing']['view']['focus']();}),_0xeb2954=_0x289092['createAnnotationView'](this['editor']['locale'],_0x431884),_0xeb2954['bind']('isDirty')['to'](_0x431884,'isDirty'),_0xeb2954['bind']('length')['to'](_0x431884),_0xeb2954['bind']('type')['to'](_0x431884,'type',_0x20f634=>'suggestion-'+_0x20f634),_0x431884['on']('escape',()=>{_0x3644ac['fire']('escape');}),this['_annotationViews']['set'](_0x1e6e22['id'],_0xeb2954));const _0x5b37b2=_0x56b286['createCommentThreadController'](_0x1e6e22['commentThread'],_0x431884),_0x5c1bff=new SuggestionController(_0x5b5394,_0x1e6e22,_0x431884,_0x5b37b2),_0x528bdb=_0x1e6e22['getAllAdjacentSuggestions']()['filter'](_0x457948=>_0x457948['isInContent']);_0x431884['descriptionParts']=_0x5b5394['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x528bdb),this['_suggestionToController']['set'](_0x1e6e22,_0x5c1bff),this['_viewToController']['set'](_0x431884,_0x5c1bff);const _0x1227f4=()=>{const _0x5bfdc1=[],_0x907ff3=_0x1e6e22['getAllAdjacentSuggestions']()['filter'](_0x3593db=>_0x3593db['isInContent']);for(const _0x298d60 of _0x907ff3)_0x5bfdc1['push'](..._0x298d60['getMarkers']());return _0x4c4f2f(_0x5b5394['editing'],_0x5bfdc1);};_0x3644ac=_0x289092['createAnnotation']({'view':_0xeb2954,'target':_0x1227f4,'type':()=>'suggestion-'+_0x5c1bff['view']['type'],'isVisible':!!_0x1227f4()}),_0x56b286['_bindAnnotationToEditors'](_0x431884,_0x3644ac),_0x289092['add'](_0x3644ac),_0x151172['registerAnnotation'](_0x3644ac);}['_destroyController'](_0x4a777f){const _0x23d3d3=this['editor']['plugins']['get'](_0x3aec4d),_0x33f40d=this['editor']['plugins']['get'](_0x3a1a56),_0xfb9e40=this['_suggestionToController']['get'](_0x4a777f),_0x5de593=_0xfb9e40['view'],_0xdfed05=_0x33f40d['getByInnerView'](_0x5de593);_0x23d3d3['_unbindEditors'](_0x5de593),_0xdfed05&&_0x33f40d['remove'](_0xdfed05),this['_suggestionToController']['delete'](_0x4a777f),this['_viewToController']['delete'](_0x5de593),_0xfb9e40['destroy']();}['_updateController'](_0xe23cd2){if(!_0xe23cd2['isInContent']||!this['_suggestionToController']['has'](_0xe23cd2))return;const _0x51f1ff=this['editor']['plugins']['get'](TrackChangesEditing),_0x350d88=this['_suggestionToController']['get'](_0xe23cd2),_0x201617=_0xe23cd2['getAllAdjacentSuggestions']();_0x350d88['view']['descriptionParts']=_0x51f1ff['descriptionFactory']['getDescriptions'](_0x201617);}['destroy'](){for(const _0x4e6219 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4e6219);for(const _0xe8b605 of this['_annotationViews']['values']())_0xe8b605['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x5866d0){return'model'in _0x5866d0;}class TrackChanges extends _0x3cecf3{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x381b09];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3cf8ab){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x3cf8ab;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x4c7ee2){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x4c7ee2);}['getSuggestions']({skipNotAttached:_0xc35bed=!0x1,toJSON:_0x45c12d=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0xc35bed,'toJSON':_0x45c12d});}['getSuggestion'](_0xef9bcd){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0xef9bcd);}}const qt=['Pagination'];class TrackChangesData extends _0x3cecf3{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3ff26b=this['editor'];if(_0x3ff26b['config']['define']('trackChangesData.editorCreator',_0x25fdae=>{const _0x8a6a6=_0x3ff26b['model']['document']['getRootNames']()['reduce']((_0x5e7b2f,_0x835d83)=>(_0x5e7b2f[_0x835d83]='',_0x5e7b2f),{});return _0x3ff26b['constructor']['create'](_0x8a6a6,_0x25fdae);}),'function'!=typeof _0x3ff26b['config']['get']('trackChangesData')['editorCreator'])throw new _0xf305a4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4cb59b){return Zt(this['editor'],!0x0,_0x4cb59b);}['getDataWithDiscardedSuggestions'](_0x286028){return Zt(this['editor'],!0x1,_0x286028);}}class TrackChangesDataGetter extends _0x3cecf3{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x288249){function _0x17486b(_0x231e0d){return _0x231e0d['map'](_0x337902=>String['fromCharCode'](_0x337902))['join']('');}super(_0x288249),this['result']='end',_0x288249[_0x17486b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17486b([0x76,0x69,0x65,0x77])][_0x17486b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17486b([0x61,0x75,0x74,0x6f]),_0x288249[_0x17486b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17486b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17486b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17486b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17486b([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 Qt(_0x3ccc5c){return void 0x0!==_0x3ccc5c['getRootsAttributes'];}async function Zt(_0x890728,_0x2d0564,_0x3f8f92){const _0x2cad34=_0x32a910(_0x890728,qt);if(_0x2cad34['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x890728)){_0x2cad34['roots']=Object['create'](null);for(const _0x496f35 of _0x890728['model']['document']['getRootNames']())_0x2cad34['roots'][_0x496f35]={'modelAttributes':_0x890728['getRootAttributes'](_0x496f35)};}const _0x3f1e90=document['createDocumentFragment'](),_0x338451=_0x890728['config']['get']('trackChangesData')['editorCreator'],_0x2c7021=await _0x338451(_0x2cad34,()=>function(_0x83e5bc){const _0x53d1c3=document['createElement']('div');return _0x83e5bc['appendChild'](_0x53d1c3),_0x53d1c3;}(_0x3f1e90));!function(_0x17cece,_0x2aaff8){const _0x360544=_0x17cece['model']['document']['getRootNames']()['reduce']((_0x60dc69,_0x1aefa1)=>(_0x60dc69[_0x1aefa1]=_0x17cece['data']['get']({'rootName':_0x1aefa1}),_0x60dc69),{}),_0x3b87ae=_0x17cece['plugins']['get']('Users')['users']['map'](_0x25593e=>({'id':_0x25593e['id'],'name':_0x25593e['name']})),_0x2f8a27=_0x17cece['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x36bc4a=_0x17cece['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6c71c5=_0x2aaff8['plugins']['get']('Users'),_0x2a454a=_0x2aaff8['plugins']['get']('TrackChangesEditing'),_0x5c3ff5=_0x2aaff8['plugins']['get']('CommentsRepository');for(const _0x629d43 of _0x5c3ff5['getCommentThreads']())_0x629d43['remove']();for(const _0x117ba3 of _0x3b87ae)_0x6c71c5['getUser'](_0x117ba3['id'])||_0x6c71c5['addUser'](_0x117ba3);_0x6c71c5['me']||_0x6c71c5['useAnonymousUser']();for(const _0x1fb8b4 of _0x36bc4a)_0x5c3ff5['addCommentThread'](_0x1fb8b4);for(const _0x4c5476 of _0x2f8a27)_0x2a454a['addSuggestionData'](_0x4c5476);_0x2aaff8['data']['set'](_0x360544);}(_0x890728,_0x2c7021),_0x2c7021['execute'](_0x2d0564?'acceptAllSuggestions':'discardAllSuggestions');const _0x20d586=Qt(_0x2c7021)?_0x2c7021['getFullData'](_0x3f8f92):_0x2c7021['data']['get'](_0x3f8f92);return await _0x2c7021['destroy'](),_0x20d586;}class TrackChangesPreviewView extends _0x1d4965{['options'];constructor(_0x40238e,_0x39c8a4){super(_0x40238e),this['options']=_0x39c8a4,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'](_0x1133a3,_0x8e8909){if(!this['element'])return;const _0xd540a4=[];for(const [_0x2c29fa,_0x18b169]of _0x1133a3){const _0x48d1bd=document['createElement']('div');_0x48d1bd['setAttribute']('data-ck-root-name',_0x2c29fa),_0x48d1bd['className']=_0x18b169['classes']+'\x20ck-track-changes-preview__root-container',_0x48d1bd['innerHTML']=_0x18b169['content'],_0xd540a4['push'](_0x48d1bd);}_0x8e8909(this['element'],_0xd540a4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x3a2e57{constructor(_0x7cb824){super(_0x7cb824),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x51f070=this['editor'],_0x24f70d=_0x51f070['locale'],_0x5a3aa5=_0x51f070['plugins']['get']('Dialog');let _0x560ce9;const _0x22daf3=function(_0x871815){const _0xe3345f={};if('editables'in _0x871815['ui']['view']){for(const [_0x537590,_0x8f7adc]of Object['entries'](_0x871815['ui']['view']['editables']))_0xe3345f[_0x537590]=_0x8f7adc['element'];}else _0xe3345f[_0x871815['model']['document']['getRootNames']()[0x0]]=_0x871815['ui']['view']['editable']['element'];return _0xe3345f;}(_0x51f070),_0x5cf18e=function(_0x2440b6){let _0x3d4e9f=0x0;for(const _0x516677 of Object['values'](_0x2440b6))_0x3d4e9f=Math['max'](_0x3d4e9f,_0x516677['getBoundingClientRect']()['width']);let _0x3e0bad=0x0;for(const _0x25f965 of Object['values'](_0x2440b6))_0x3e0bad+=_0x25f965['getBoundingClientRect']()['height'];const _0x1c1533=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x579d2d=Math['min'](_0x3e0bad,_0x1c1533);return{'width':_0x3d4e9f,'height':_0x579d2d};}(_0x22daf3);_0x5a3aa5['show']({'id':'finalContentPreview','title':Tt(_0x24f70d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x24f70d,{'dialogRects':_0x5cf18e}),'onHide':()=>{_0x560ce9['detachFromDom']();},'onShow':()=>{_0x51f070['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3c2f64=>{const _0x48d860=this['_standarizeRootsData'](_0x3c2f64,_0x51f070,_0x22daf3);_0x5a3aa5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x48d860,_0x51f070['config']['get']('trackChanges.preview.renderFunction'));}),_0x560ce9=new _0xeff71e(_0x24f70d,[_0x5a3aa5['view']]),_0x560ce9['attachToDom'](),_0x560ce9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x51f070['once']('destroy',()=>{_0x560ce9['detachFromDom']();});const _0x1bad5e=_0x5a3aa5['view']['headerView']['class'];_0x5a3aa5['view']['headerView']['class']=_0x1bad5e?_0x1bad5e+'\x20ck-reset_all':'ck-reset_all',_0x5a3aa5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5a3aa5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4df602=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x50c174=_0x4df602['previewMode'],_0x33ab37={};if('$labels'===_0x50c174){for(const _0xbeb724 of _0x4df602['getMergeFieldsIds']())_0x33ab37[_0xbeb724]=_0x4df602['getLabel'](_0xbeb724)||_0xbeb724;}else{const _0x24b006='$defaultValues'===_0x50c174?_0x4df602['getDefaultValues']():_0x4df602['getDataSetValues'](_0x50c174,!0x0);for(const _0x460bb2 of Object['entries'](_0x24b006)){const [_0x3cdd1f,_0x5c7751]=_0x460bb2;_0x33ab37[_0x3cdd1f]=null!==_0x5c7751?_0x5c7751:_0x4df602['getLabel'](_0x3cdd1f)||_0x3cdd1f;}}return{'mergeFieldsData':_0x33ab37};}['_standarizeRootsData'](_0x2683d5,_0x47cd9e,_0x2798fa){let _0x40bebc;if('string'==typeof _0x2683d5){const _0x52a04b=_0x47cd9e['model']['document']['getRootNames']()[0x0];_0x40bebc={[_0x52a04b]:_0x2683d5};}else _0x40bebc=_0x2683d5;const _0x251c23=this['_fixMediaEmbeds'](_0x40bebc,_0x47cd9e),_0x31af29=function(_0x989f23,_0x1a9b65){for(const [_0x4ea414,_0x335361]of _0x989f23)_0x335361['classes']=_0x1a9b65[_0x4ea414]['classList']['value']['replace']('ck-focused','');return _0x989f23;}(this['_sortRoots'](_0x47cd9e)['reduce']((_0xad1c9,_0x486372)=>(_0xad1c9['push']([_0x486372,{'content':_0x251c23[_0x486372],'classes':''}]),_0xad1c9),[]),_0x2798fa);return _0x31af29;}['_fixMediaEmbeds'](_0x4679f5,_0x3ef085){if(!_0x3ef085['plugins']['has']('MediaEmbedEditing'))return _0x4679f5;const _0x218c33=_0x3ef085['plugins']['get']('MediaEmbedEditing');for(const [_0x46578a,_0x2ceaf2]of Object['entries'](_0x4679f5)){const _0x386d99=document['createElement']('div');_0x386d99['innerHTML']=_0x2ceaf2,(_0x386d99['querySelectorAll']('figure.media')['forEach'](_0x13aa5b=>{const _0x22e6b2=_0x13aa5b['querySelector']('oembed');if(_0x22e6b2){const _0x3a6414=_0x22e6b2['getAttribute']('url');if(_0x3a6414){const _0x905c5e=_0x218c33['registry']['getMediaViewElement'](new et(_0x3ef085['editing']['view']['document']),_0x3a6414,{'elementName':'','renderForEditingView':!0x0}),_0x338f86=document['createElement']('div');_0x338f86['classList']['add']('ck-media__wrapper'),_0x905c5e['render'](_0x338f86,_0x3ef085['editing']['view']['domConverter']),_0x22e6b2['replaceWith'](_0x338f86);}}}),_0x4679f5[_0x46578a]=_0x386d99['innerHTML']);}return _0x4679f5;}['_sortRoots'](_0x33fc90){if(!function(_0x1429cb){return void 0x0!==_0x1429cb['getRootsAttributes'];}(_0x33fc90))return _0x33fc90['model']['document']['getRootNames']();const _0x1ec5ec=[],_0x331cd0=new Map();for(const _0x3e3ac3 of _0x33fc90['model']['document']['getRootNames']()){const _0x104807=_0x33fc90['editing']['view']['getDomRoot'](_0x3e3ac3)['getClientRects']()['item'](0x0);_0x1ec5ec['push'](_0x3e3ac3),_0x331cd0['set'](_0x3e3ac3,_0x104807);}return _0x1ec5ec['sort']((_0x1669ba,_0x490175)=>{const _0x3acd7b=_0x331cd0['get'](_0x1669ba),_0x33002c=_0x331cd0['get'](_0x490175);return _0x3acd7b['y']-_0x33002c['y']||_0x3acd7b['x']-_0x33002c['x'];}),_0x1ec5ec;}}class TrackChangesPreview extends _0x3cecf3{static get['requires'](){return[TrackChangesData,_0x1403a8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9d1659){super(_0x9d1659),_0x9d1659['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x9d1659['config']['define']('trackChanges.preview.renderFunction',(_0x40e5e5,_0x12c3b3)=>{for(const _0x347c9b of _0x12c3b3)_0x40e5e5['appendChild'](_0x347c9b);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};
|
|
23
|
+
import{Command as _0x4a3a6c,Plugin as _0x1b042a,PendingActions as _0x5989c4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x2e3e9f,Annotations as _0x134463,EditorAnnotations as _0x2b0d1d,Comments as _0x522814}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x2992e4,ObservableMixin as _0x3c23d7,uid as _0x2375fd,priorities as _0x196bca,insertToPriorityArray as _0x5423cd,logWarning as _0x50b7b8,getEnvKeystrokeText as _0x21d050,FocusTracker as _0x5d0c26,KeystrokeHandler as _0x506df3,Collection as _0x743895}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x333ecc,IconCancel as _0x57c6bd,IconTrackChanges as _0x3fc479}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x252336,View as _0x45ba2b,ViewCollection as _0xe861d7,FocusCycler as _0x3d145f,UIModel as _0x4d5172,createDropdown as _0x565160,SplitButtonView as _0x57ec08,addListToDropdown as _0x2824d6,MenuBarMenuView as _0x155a74,MenuBarMenuListView as _0x352c61,ListSeparatorView as _0x1d7000,MenuBarMenuListItemView as _0x4f4607,MenuBarMenuListItemButtonView as _0x50967b,BodyCollection as _0x1aebc,Dialog as _0x4042ab}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x11d9f0,SuggestionsConversion as _0x45f6b6,Users as _0x97b95d,DocumentCompare as _0x56c137,fixElementSuggestionRange as _0x5dc878,hashObject as _0x54b6ec,surroundingMarkersDetector as _0x273667,FOCUS_ANNOTATION_KEYSTROKE as _0x1b2bd3,AriaDescriptionView as _0x4a4323,setupThreadKeyboardNavigation as _0x1972d2,trimHtml as _0x23312a,UserView as _0xe23deb,LateFocusButtonView as _0x14b3e,getDateTimeFormatter as _0x324fb2,getAllMarkersDomElementsSorted as _0x2a695a,sanitizeEditorConfig as _0x2291ec}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x50074d,ModelLiveRange as _0x4099e3,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class TrackChangesCommand extends _0x4a3a6c{['_enabledCommands'];constructor(_0x5d97e0,_0x40af2b){super(_0x5d97e0),this['_enabledCommands']=_0x40af2b,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 _0x39002e of this['editor']['commands']['commands']())_0x39002e['affectsData']&&!this['_enabledCommands']['has'](_0x39002e)&&_0x39002e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x360e17 of this['editor']['commands']['commands']())_0x360e17['affectsData']&&!this['_enabledCommands']['has'](_0x360e17)&&_0x360e17['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x4a3a6c{['_suggestions'];constructor(_0x46566a,_0xa36025){super(_0x46566a),this['_suggestions']=_0xa36025,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c3ae2){const _0x1465a1=this['_suggestions']['get'](_0x5c3ae2);if(!_0x1465a1)throw new _0x2992e4('track-changes-accept-suggestion-not-found',this);const _0x4f9606=_0x1465a1['getRanges']();this['editor']['model']['canEditAt'](_0x4f9606)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1465a1);}}class DiscardSuggestionCommand extends _0x4a3a6c{['_suggestions'];constructor(_0x53a051,_0x225aff){super(_0x53a051),this['_suggestions']=_0x225aff,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5db6fc){const _0xff308=this['_suggestions']['get'](_0x5db6fc);if(!_0xff308)throw new _0x2992e4('track-changes-discard-suggestion-not-found',this);const _0x2a4fe7=_0xff308['getRanges']();this['editor']['model']['canEditAt'](_0x2a4fe7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xff308);}}function ht(_0x44b346,_0x559eb1){let _0x2bacc8='';return _0x2bacc8+=_0x44b346['split']('*')['map']((_0x12e39b,_0x3a73f9)=>_0x3a73f9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+gt(_0x12e39b)+'</span>':gt(_0x12e39b))['join'](''),_0x559eb1&&(_0x2bacc8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x559eb1['value']+'\x22\x20title=\x22'+_0x559eb1['title']+'\x22></span>'),_0x2bacc8;}function gt(_0x48b334){const _0x58384c=document['createElement']('span');return _0x58384c['innerText']=_0x48b334,_0x58384c['innerHTML'];}function dt(_0x5ed8e8){return _0x5ed8e8['sort']((_0xa39544,_0x4beb30)=>'attribute'===_0xa39544['type']&&'attribute'!==_0x4beb30['type']?-0x1:'attribute'!==_0xa39544['type']&&'attribute'===_0x4beb30['type']?0x1:'deletion'==_0xa39544['type']&&'deletion'!=_0x4beb30['type']?-0x1:'deletion'!=_0xa39544['type']&&'deletion'==_0x4beb30['type']?0x1:0x0);}function ft(_0x556bfb,_0x408dea){let _0x53109a,_0xf9e312=0x0;const _0x210f62=[],_0x3a6462=_0x408dea['schema'];for(;_0xf9e312<_0x556bfb['length'];){const _0x32d017=_0x556bfb[_0xf9e312],_0x563d9a=_0x556bfb[_0xf9e312+0x1];_0x53109a||(_0x53109a=_0x408dea['createPositionBefore'](_0x32d017)),mt(_0x408dea,_0x32d017,_0x563d9a)||(_0x210f62['push'](_0x408dea['createRange'](_0x53109a,_0x3a6462['isObject'](_0x32d017)?_0x408dea['createPositionAfter'](_0x32d017):_0x408dea['createPositionAt'](_0x32d017,'end'))),_0x53109a=null),_0xf9e312++;}return _0x210f62;}function mt(_0x22459f,_0x17b8ee,_0x378206){if(!_0x378206)return!0x1;const _0x4ce98c=_0x22459f['createPositionAfter'](_0x17b8ee),_0x5b1b65=_0x22459f['createPositionBefore'](_0x378206);return _0x4ce98c['isTouching'](_0x5b1b65);}function Et(_0xb1757e,_0xf20d7,_0x304989){for(;_0x304989['length'];){const _0x585e8f=_0x304989['splice'](0x0,0x64);_0xb1757e['change'](()=>{for(const _0x3ee0fc of _0x585e8f)_0x3ee0fc['isInContent']&&_0xf20d7['execute'](_0x3ee0fc['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x4a3a6c{['_command'];['_suggestions'];constructor(_0x12802f,_0x30e700,_0x7bd65d){super(_0x12802f),this['_command']=_0x30e700,this['_suggestions']=_0x7bd65d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4bf3ec=Array['from'](this['_suggestions']['values']())['some'](_0x5ba104=>_0x5ba104['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4bf3ec;}['execute'](){const _0x26cb9c=dt(Array['from'](this['_suggestions']['values']()));for(const _0xe66add of _0x26cb9c){const _0x167796=_0xe66add['getRanges']();if(!this['editor']['model']['canEditAt'](_0x167796))return;}Et(this['editor']['model'],this['_command'],_0x26cb9c);}}class ExecuteOnSelectedSuggestionsCommand extends _0x4a3a6c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1e8bb4,_0x3fe407,_0x264ec0){super(_0x1e8bb4),this['_command']=_0x3fe407,this['_suggestions']=_0x264ec0,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x26ba29=this['editor']['model']['document']['selection'],_0x34158b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x35ac61,_0x45fba4){const _0x4afcbb=Array['from'](_0x35ac61['getRanges']()),_0x53375a=new Set();for(const _0x47bfcb of _0x45fba4)if(_0x47bfcb['isInContent']){for(const _0x52896c of _0x4afcbb)for(const _0x340166 of _0x47bfcb['getRanges']())(_0x52896c['isIntersecting'](_0x340166)||_0x35ac61['isCollapsed']&&!_0x47bfcb['isMultiRange']&&_0x47bfcb['next']&&_0x340166['end']['isTouching'](_0x52896c['start']))&&_0x53375a['add'](_0x47bfcb);}return _0x53375a;}(_0x26ba29,_0x34158b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x188ad8=dt(Array['from'](this['_selectedSuggestions']));for(const _0x5e34d3 of _0x188ad8){const _0x4ab995=_0x5e34d3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4ab995))return;}Et(this['editor']['model'],this['_command'],_0x188ad8);}}class Suggestion extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3c23d7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xc31e28,_0x23463e){super(),this['id']=_0x23463e['id'],this['type']=_0x23463e['type'],this['subType']=_0x23463e['subType']||null,this['author']=_0x23463e['author'],this['creator']=_0x23463e['creator']||_0x23463e['author'],this['isExternal']=Boolean(_0x23463e['attributes']&&_0x23463e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x23463e['originalSuggestionId']||null,this['_model']=_0xc31e28,this['_onAccept']=_0x23463e['onAccept'],this['_onDiscard']=_0x23463e['onDiscard'],this['_onAttributesChange']=_0x23463e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x23463e['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 _0x1dcf16=this;for(;_0x1dcf16['previous'];)_0x1dcf16=_0x1dcf16['previous'];return _0x1dcf16;}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'](_0x4345f7){this['_markerNames']['add'](_0x4345f7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x294ca8=>this['_model']['markers']['get'](_0x294ca8))['filter'](_0x5393f0=>_0x5393f0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b9651=>{for(const _0xda41a1 of this['getMarkers']())_0x2b9651['removeMarker'](_0xda41a1);}),this['_markerNames']['clear']();}['removeMarker'](_0x26c4c9){this['_model']['change'](_0x2c2999=>{_0x2c2999['removeMarker'](_0x26c4c9);}),this['_markerNames']['delete'](_0x26c4c9);}['addRange'](_0x2f0802){const _0x4f7846='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4f7846),this['_model']['change'](_0x55a8b6=>{_0x55a8b6['addMarker'](_0x4f7846,{'range':_0x2f0802,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x53ed46){for(const _0x3e081b of this['getRanges']())if(_0x3e081b['isIntersecting'](_0x53ed46))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4252b2=>_0x4252b2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x335b3b,_0x2faac4)=>[..._0x335b3b,..._0x2faac4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5b9a49=this['getRanges']();if(0x1!=_0x5b9a49['length'])return null;const _0x5ae73f=_0x5b9a49[0x0],_0x16218a=_0x5ae73f['start']['nodeAfter'],_0x2ade72=_0x5ae73f['end']['nodeBefore'];return _0x16218a instanceof _0x50074d?_0x16218a!=_0x2ade72?null:_0x16218a: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 _0x5c6585=[];let _0x54cd56=this['head'];for(;_0x54cd56;)_0x5c6585['push'](_0x54cd56),_0x54cd56=_0x54cd56['next'];return _0x5c6585;}['setAttribute'](_0xfce612,_0x20716e){const _0x2396b2=nt(this['attributes']);it(_0x2396b2,_0xfce612,_0x20716e),st(_0x2396b2,this['attributes'])||(this['attributes']=_0x2396b2,this['_onAttributesChange'](_0x2396b2));}['removeAttribute'](_0x4adf57){const _0x55e21=nt(this['attributes']);rt(_0x55e21,_0x4adf57),st(_0x55e21,this['attributes'])||(this['attributes']=_0x55e21,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 _0x2375fd()['substr'](0x1,0x5);}}function Tt(_0x3cf94a,_0x1894da,_0x3b6fbb){const _0x251e13=_0x3cf94a['t'],t=_0x3cf94a['t'];switch(_0x1894da){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',_0x3b6fbb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3b6fbb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3b6fbb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3b6fbb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3b6fbb);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',_0x3b6fbb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3b6fbb);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',_0x3b6fbb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3b6fbb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3b6fbb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3b6fbb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3b6fbb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3b6fbb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3b6fbb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3b6fbb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3b6fbb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3b6fbb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3b6fbb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3b6fbb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3b6fbb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3b6fbb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3b6fbb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3b6fbb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3b6fbb);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3b6fbb);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3b6fbb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3b6fbb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3b6fbb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3b6fbb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3b6fbb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3b6fbb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3b6fbb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3b6fbb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3b6fbb);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3b6fbb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3b6fbb);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'},_0x3b6fbb);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x3b6fbb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3b6fbb);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3b6fbb);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3b6fbb);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3b6fbb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3b6fbb);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'},_0x3b6fbb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3b6fbb);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 _0x251e13({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3b6fbb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x251e13({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3b6fbb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3b6fbb);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'},_0x3b6fbb);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'},_0x3b6fbb);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'},_0x3b6fbb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1894da;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b3db9,_0x54f240){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b3db9,this['_locale']=_0x54f240;}['getDescriptions'](_0x9e506e){const _0x52c13e=[],_0x736656=new Set(),_0x4d9887=new Set();for(let _0x55d98e=0x0;_0x55d98e<_0x9e506e['length'];_0x55d98e++){const _0x518e0c=_0x9e506e[_0x55d98e];if(!_0x518e0c['isInContent'])continue;const _0x53c0c1=this['_handleCustomCallbackDescription'](_0x518e0c);if(_0x53c0c1){if(null!=_0x518e0c['subType']){if(_0x736656['has'](_0x518e0c['subType']))continue;_0x736656['add'](_0x518e0c['subType']);}_0x52c13e['push'](_0x53c0c1);}else{if('attribute'==_0x518e0c['type']){const _0x413efb=_0x518e0c['data']['key'];if(_0x4d9887['has'](_0x413efb))continue;_0x4d9887['add'](_0x518e0c['data']['key']),_0x413efb==Ft?this['_handleRenameSuggestionDescription'](_0x52c13e,_0x518e0c):this['_handleAttributeSuggestionDescription'](_0x52c13e,_0x518e0c);continue;}'insertion'!=_0x518e0c['type']&&'deletion'!=_0x518e0c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x52c13e,_0x518e0c,_0x9e506e[_0x55d98e+0x1]);}}return this['_resolveDescriptionItems'](_0x52c13e);}['registerDescriptionCallback'](_0x37220d){this['_customCallbacks']['push'](_0x37220d);}['registerElementLabel'](_0x473f78,_0x30dc32,_0x1781c2=_0x196bca['normal']){'function'==typeof _0x473f78?_0x5423cd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x473f78,'label':_0x30dc32,'priority':_0x1781c2}):this['_itemLabels']['set'](_0x473f78,_0x30dc32);}['registerAttributeLabel'](_0x1525e8,_0x36b48a){this['_attributeLabels']['set'](_0x1525e8,_0x36b48a);}['getItemLabel'](_0x516fb1,_0x30817f=0x1){let _0x4826c4;for(const _0x55862d of this['_itemLabelsCallbacks'])if(_0x55862d['matchingCallback'](_0x516fb1)){_0x4826c4=_0x55862d['label'];break;}return _0x4826c4||(_0x4826c4=this['_itemLabels']['get'](_0x516fb1['name'])),_0x4826c4?_0x4826c4(_0x30817f):0x1!==_0x30817f?_0x30817f+'\x20'+_0x516fb1['name']+'s':''+_0x516fb1['name'];}['_addDescriptionItems'](_0x29ecee,_0x5999b7){const _0x51493a=_0x5999b7['getFirstRange']()['getWalker'](),_0x451a88='insertion'==_0x5999b7['type']?'add':'remove';for(const _0x951c33 of _0x51493a){const _0x820b03=_0x951c33['item'],_0x1ccf22=_0x29ecee[_0x29ecee['length']-0x1];if(_0x820b03['is']('$textProxy'))_0x1ccf22&&_0x1ccf22['type']['indexOf']('Container')>-0x1&&_0x29ecee['pop'](),_0x1ccf22&&'text'==_0x1ccf22['type']?_0x1ccf22[_0x451a88]+=_0x820b03['data']:_0x29ecee['push']({'type':'text','add':'add'==_0x451a88?_0x820b03['data']:'','remove':'remove'==_0x451a88?_0x820b03['data']:''});else{if(this['_schema']['isObject'](_0x820b03)){const _0x1086b6=_0x820b03;if(_0x1ccf22&&_0x1ccf22['type']['indexOf']('Container')>-0x1&&_0x29ecee['pop'](),'elementEnd'==_0x951c33['type'])continue;_0x1ccf22&&_0x1ccf22['type']==_0x451a88+'Object'&&_0x1ccf22['element']['name']==_0x1086b6['name']?_0x1ccf22['quantity']++:_0x29ecee['push']({'type':_0x451a88+'Object','element':_0x1086b6,'quantity':0x1}),_0x51493a['skip'](_0x40a2d4=>!('elementEnd'==_0x40a2d4['type']&&_0x40a2d4['item']==_0x820b03));}else{if(this['_schema']['checkChild'](_0x820b03,'$text')||_0x820b03['is']('element','softBreak')){const _0x250d2d=_0x820b03;if('add'==_0x451a88&&'elementStart'==_0x951c33['type']||'remove'==_0x451a88&&'elementEnd'==_0x951c33['type'])continue;if(_0x1ccf22&&-0x1==_0x1ccf22['type']['indexOf']('Container')){'text'==_0x1ccf22['type']&&(_0x1ccf22[_0x451a88]+='\x0a');continue;}let _0x22e374;if(_0x22e374='add'==_0x451a88?_0x250d2d['nextSibling']&&!this['_schema']['isObject'](_0x250d2d['nextSibling'])?_0x250d2d['nextSibling']:null:_0x250d2d['previousSibling']&&!this['_schema']['isObject'](_0x250d2d['previousSibling'])?_0x250d2d['previousSibling']:null,_0x250d2d['isEmpty']||_0x22e374&&_0x22e374['isEmpty']){const _0x37390f=_0x22e374&&_0x22e374['isEmpty']?_0x22e374:_0x250d2d;_0x1ccf22&&_0x1ccf22['type']==_0x451a88+'EmptyContainer'&&_0x1ccf22['element']['name']==_0x37390f['name']?_0x1ccf22['quantity']++:_0x29ecee['push']({'type':_0x451a88+'EmptyContainer','element':_0x37390f,'quantity':0x1});}else _0x29ecee['push']({'type':_0x451a88+'Container','element':_0x250d2d});}}}}}['_resolveDescriptionItems'](_0x511d0e){const _0x150f66=this['_locale'],_0x4c5b86=[],_0x3e0e66=[],_0x4f9c82=[];for(const _0x180a5f of _0x511d0e)switch(_0x180a5f['type']){case'text':if(_0x180a5f['add']=_0x180a5f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x180a5f['remove']=_0x180a5f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x180a5f['add']&&''!=_0x180a5f['remove']){_0x4c5b86['push']({'type':'replace','content':Tt(_0x150f66,'REPLACE_TEXT',['\x22'+_0x180a5f['remove']+'\x22','\x22'+_0x180a5f['add']+'\x22'])});continue;}if(null!=_0x180a5f['add']['match'](/^ +$/)){_0x4c5b86['push']({'type':'insertion','content':Tt(_0x150f66,'*Insert:*\x20%0',Tt(_0x150f66,'ELEMENT_SPACE',_0x180a5f['add']['length']))});continue;}if(null!=_0x180a5f['remove']['match'](/^ +$/)){_0x4c5b86['push']({'type':'deletion','content':Tt(_0x150f66,'*Remove:*\x20%0',Tt(_0x150f66,'ELEMENT_SPACE',_0x180a5f['remove']['length']))});continue;}if(''!=_0x180a5f['add']){_0x4c5b86['push']({'type':'insertion','content':Tt(_0x150f66,'*Insert:*\x20%0','\x22'+_0x180a5f['add']+'\x22')});continue;}_0x4c5b86['push']({'type':'deletion','content':Tt(_0x150f66,'*Remove:*\x20%0','\x22'+_0x180a5f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c5b86['push']({'type':'insertion','content':Tt(_0x150f66,'*Insert:*\x20%0',this['getItemLabel'](_0x180a5f['element'],_0x180a5f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c5b86['push']({'type':'deletion','content':Tt(_0x150f66,'*Remove:*\x20%0',this['getItemLabel'](_0x180a5f['element'],_0x180a5f['quantity']))});continue;case'addContainer':_0x4c5b86['push']({'type':'insertion','content':Tt(_0x150f66,'*Split:*\x20%0',this['getItemLabel'](_0x180a5f['element'],_0x180a5f['quantity']))});continue;case'removeContainer':_0x4c5b86['push']({'type':'deletion','content':Tt(_0x150f66,'*Merge:*\x20%0',this['getItemLabel'](_0x180a5f['element'],_0x180a5f['quantity']))});continue;case'addFormat':_0x3e0e66['push'](_0x180a5f['key']);continue;case'removeFormat':_0x4f9c82['push'](_0x180a5f['key']);continue;default:_0x4c5b86['push'](_0x180a5f);}if(_0x3e0e66['length']){const _0x58f860=_0x3e0e66['map'](_0x36f68b=>this['_attributeLabels']['has'](_0x36f68b)?this['_attributeLabels']['get'](_0x36f68b):_0x36f68b)['join'](',\x20');_0x4c5b86['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x58f860)});}if(_0x4f9c82['length']){const _0xfd8748=_0x4f9c82['map'](_0x429899=>this['_attributeLabels']['has'](_0x429899)?this['_attributeLabels']['get'](_0x429899):_0x429899)['join'](',\x20');_0x4c5b86['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0xfd8748)});}return _0x4c5b86;}['_handleCustomCallbackDescription'](_0x5d968b){for(const _0x57a791 of this['_customCallbacks']){const _0x395073=_0x57a791(_0x5d968b);if(_0x395073&&'type'in _0x395073)return _0x395073;}}['_handleAttributeSuggestionDescription'](_0x1e65ca,_0x3fdc8c){const _0x2d88b4=_0x3fdc8c['data'],_0x2afaca=void 0x0===_0x2d88b4['newValue']?'removeFormat':'addFormat';_0x1e65ca['push']({'type':_0x2afaca,'key':_0x2d88b4['key']});}['_handleRenameSuggestionDescription'](_0x3d98f5,_0x41ab8e){_0x3d98f5['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x41ab8e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1bb1c6,_0x1d383e,_0x1d892b){if(this['_addDescriptionItems'](_0x1bb1c6,_0x1d383e),_0x1d892b&&_0x1d892b['getFirstRange']()&&!_0x1d383e['getFirstRange']()['end']['isEqual'](_0x1d892b['getFirstRange']()['start'])){const _0xcde0b0=_0x1bb1c6[_0x1bb1c6['length']-0x1],_0x319633='insertion'==_0x1d383e['type']?'add':'remove';_0xcde0b0&&'text'==_0xcde0b0['type']&&(_0xcde0b0[_0x319633]+='\x0a');}}}class TrackChangesAIAssistant extends _0x1b042a{['afterInit'](){const _0x311c8b=this['editor'],_0x2595e7=_0x311c8b['plugins']['get']('TrackChangesEditing');_0x311c8b['commands']['get']('showAIAssistant')&&_0x2595e7['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x1b042a{['afterInit'](){const _0x4d47ae=this['editor'],_0x4f7f78=_0x4d47ae['plugins']['get']('TrackChangesEditing');_0x4d47ae['commands']['get']('toggleAi')&&_0x4f7f78['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x1b042a{['afterInit'](){const _0x3319ae=this['editor'],_0x6d31b8=_0x3319ae['plugins']['get']('TrackChangesEditing');_0x3319ae['commands']['get']('aiQuickAction')&&_0x6d31b8['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x1b042a{['afterInit'](){const _0x1d54cf=this['editor'],_0xd61b49=_0x1d54cf['locale'];if(!_0x1d54cf['plugins']['has']('AlignmentEditing'))return;const _0x2eb196=_0x1d54cf['plugins']['get']('TrackChangesEditing');_0x2eb196['enableDefaultAttributesIntegration']('alignment'),_0x2eb196['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0xd61b49,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x406534=this['editor'],_0x1b5523=_0x406534['locale'];_0x406534['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x87fc3=>{if('formatBlock'!=_0x87fc3['type'])return;const {data:_0x2bea09}=_0x87fc3;if(_0x2bea09&&'alignment'==_0x2bea09['commandName']){const _0x280aa9=_0x2bea09['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x1b5523,'*Format:*\x20%0',function(_0x34a0e9){switch(_0x34a0e9){case'left':return Tt(_0x1b5523,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x1b5523,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x1b5523,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x1b5523,'FORMAT_JUSTIFY_TEXT');}}(_0x280aa9))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x1b042a{['afterInit'](){const _0x102637=this['editor'],_0x18ba28=_0x102637['plugins']['get']('TrackChangesEditing'),_0x2c3dfe=_0x102637['locale'];for(const _0x25fda4 of _t){if(!_0x102637['plugins']['has'](_0x25fda4))continue;const _0x21c2c0=_0x25fda4['slice'](0x0,-0x7)['toLowerCase'](),_0x24b5ce='FORMAT_'+_0x21c2c0['toUpperCase']();_0x18ba28['enableDefaultAttributesIntegration'](_0x21c2c0),_0x18ba28['descriptionFactory']['registerAttributeLabel'](_0x21c2c0,Tt(_0x2c3dfe,_0x24b5ce));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cbe9c=this['editor'],_0x3f6246=_0x1cbe9c['locale'],_0x440776=_0x1cbe9c['plugins']['get']('TrackChangesEditing');function _0xf81e33(_0x6d02d4,_0x1d743e){_0x440776['descriptionFactory']['registerDescriptionCallback'](_0x3dc802=>{if('formatInline'!=_0x3dc802['type'])return;const {data:_0x6527b9}=_0x3dc802;return _0x6527b9&&_0x6527b9['commandName']===_0x6d02d4?_0x6527b9['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3f6246,'*Format:*\x20%0',_0x1d743e)}:{'type':'format','content':Tt(_0x3f6246,'*Remove\x20format:*\x20%0',_0x1d743e)}:void 0x0;});}_0xf81e33('bold',Tt(_0x3f6246,'FORMAT_BOLD')),_0xf81e33('italic',Tt(_0x3f6246,'FORMAT_ITALIC')),_0xf81e33('underline',Tt(_0x3f6246,'FORMAT_UNDERLINE')),_0xf81e33('code',Tt(_0x3f6246,'FORMAT_CODE')),_0xf81e33('strikethrough',Tt(_0x3f6246,'FORMAT_STRIKETHROUGH')),_0xf81e33('subscript',Tt(_0x3f6246,'FORMAT_SUBSCRIPT')),_0xf81e33('superscript',Tt(_0x3f6246,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x1b042a{['afterInit'](){const _0x571735=this['editor'],_0x4843e5=_0x571735['locale'];if(!_0x571735['plugins']['has']('BlockQuoteEditing'))return;const _0x19e9da=_0x571735['plugins']['get']('TrackChangesEditing'),_0x5c5264=this['editor']['commands']['get']('blockQuote');_0x19e9da['enableCommand']('blockQuote',(_0x11a2ca,_0xf24f87={})=>{const _0x4fd9b0=this['editor']['model']['document']['selection'],_0x2c3948=_0xf24f87&&void 0x0!==_0xf24f87['forceValue']?_0xf24f87['forceValue']:!_0x5c5264['value'];let _0x1995ae=[];if(_0x2c3948){const _0x5f2cec=Array['from'](_0x4fd9b0['getSelectedBlocks']())['filter'](_0x3f8265=>pt(_0x3f8265)||function(_0x961c21,_0x37462c){const _0x74ac64=_0x37462c['checkChild'](_0x961c21['parent'],'blockQuote'),_0x27714c=_0x37462c['checkChild'](['$root','blockQuote'],_0x961c21);return _0x74ac64&&_0x27714c;}(_0x3f8265,this['editor']['model']['schema']));_0x1995ae=ft(_0x5f2cec,_0x571735['model']);}else{const _0x49d7f0=Array['from'](_0x4fd9b0['getSelectedBlocks']())['filter'](_0x4bf125=>pt(_0x4bf125));_0x1995ae=ft(_0x49d7f0,_0x571735['model']);}_0x571735['model']['change'](()=>{for(const _0x2fcfeb of _0x1995ae)_0x19e9da['markBlockFormat'](_0x2fcfeb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c3948}]});});}),_0x19e9da['descriptionFactory']['registerDescriptionCallback'](_0x445621=>{const {data:_0x26a5ff}=_0x445621;if(_0x26a5ff&&'blockQuote'==_0x26a5ff['commandName']){const _0x554c06=Tt(_0x4843e5,'ELEMENT_BLOCK_QUOTE');return _0x26a5ff['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4843e5,'*Set\x20format:*\x20%0',_0x554c06)}:{'type':'format','content':Tt(_0x4843e5,'*Remove\x20format:*\x20%0',_0x554c06)};}});}}function pt(_0x1a9038){return'blockQuote'==_0x1a9038['parent']['name'];}class TrackChangesBookmark extends _0x1b042a{['afterInit'](){const _0x32e696=this['editor'],_0x30d660=_0x32e696['locale'],_0x43ae34=_0x32e696['plugins']['get']('TrackChangesEditing');_0x32e696['plugins']['has']('BookmarkEditing')&&(_0x43ae34['enableCommand']('insertBookmark'),_0x43ae34['enableDefaultAttributesIntegration']('updateBookmark'),_0x43ae34['descriptionFactory']['registerDescriptionCallback'](_0x37bfaf=>{if('insertion'!=_0x37bfaf['type']&&'deletion'!=_0x37bfaf['type']&&'attribute'!=_0x37bfaf['type'])return;const _0x1f8b28=_0x37bfaf['getContainedElement']();if(null==_0x1f8b28)return;if(!_0x1f8b28['is']('element','bookmark'))return;const _0x1752d8=_0x1f8b28['getAttribute']('bookmarkId');if('insertion'==_0x37bfaf['type'])return{'type':'insertion','content':Tt(_0x30d660,'*Insert:*\x20%0','\x22'+_0x1752d8+'\x22\x20'+Tt(_0x30d660,'ELEMENT_BOOKMARK'))};if('deletion'==_0x37bfaf['type'])return{'type':'deletion','content':Tt(_0x30d660,'*Remove:*\x20%0','\x22'+_0x1752d8+'\x22\x20'+Tt(_0x30d660,'ELEMENT_BOOKMARK'))};const {data:_0x2de330}=_0x37bfaf;if(!_0x2de330||'bookmarkId'!=_0x2de330['key'])return;return{'type':'format','content':Tt(_0x30d660,'*Set\x20bookmark:*\x20%0','\x22'+_0x2de330['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x1b042a{['afterInit'](){const _0x4f02fe=this['editor'];_0x4f02fe['plugins']['has']('CaseChange')&&(_0x4f02fe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4f02fe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4f02fe['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x1b042a{['afterInit'](){const _0x345784=this['editor'];_0x345784['commands']['get']('ckbox')&&_0x345784['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x1b042a{['afterInit'](){const _0x31cc2f=this['editor'];if(!_0x31cc2f['plugins']['has']('CodeBlock'))return;const _0x172971=_0x31cc2f['plugins']['get']('TrackChangesEditing'),_0x4a1e22=_0x31cc2f['locale'],_0x49fb06=_0x31cc2f['config']['get']('codeBlock')['languages'],_0xfe2aa5=_0x31cc2f['commands']['get']('codeBlock');_0x172971['enableCommand']('indentCodeBlock'),_0x172971['enableCommand']('outdentCodeBlock'),_0x172971['enableCommand']('codeBlock',(_0x54fe67,_0x41afd9={})=>{const _0x42dc99=_0x31cc2f['model'],_0xddda13=_0x31cc2f['model']['document']['selection'],_0x362645=_0x41afd9&&void 0x0!==_0x41afd9['forceValue']?_0x41afd9['forceValue']:!_0xfe2aa5['value'];let _0x440747;_0x41afd9['language']||(_0x41afd9['language']=_0x49fb06[0x0]['language']),_0x440747=_0x362645?Array['from'](_0xddda13['getSelectedBlocks']())['filter'](_0x3069d0=>Ct(_0x3069d0)||function(_0x4df722,_0x10f68b){if(_0x4df722['is']('rootElement')||_0x10f68b['isLimit'](_0x4df722))return!0x1;return _0x10f68b['checkChild'](_0x4df722['parent'],'codeBlock');}(_0x3069d0,_0x42dc99['schema'])):Array['from'](_0xddda13['getSelectedBlocks']())['filter'](_0x2dd67b=>Ct(_0x2dd67b));const _0x5dce0f=ft(_0x440747,_0x42dc99);_0x42dc99['change'](()=>{for(const _0x1aefb3 of _0x5dce0f)_0x172971['markBlockFormat'](_0x1aefb3,{'commandName':'codeBlock','commandParams':[{..._0x41afd9,'forceValue':_0x362645}],'formatGroupId':'blockName'});});}),(_0x172971['descriptionFactory']['registerElementLabel']('codeBlock',_0xd4c6b0=>Tt(_0x4a1e22,'ELEMENT_CODE_BLOCK',_0xd4c6b0)),_0x172971['descriptionFactory']['registerDescriptionCallback'](_0x2a9a43=>{if('formatBlock'!=_0x2a9a43['type'])return;const _0x1cc92c=_0x4a1e22['t'],{data:_0x337347}=_0x2a9a43;if(!_0x337347||'codeBlock'!=_0x337347['commandName'])return;const _0x5616f0=_0x337347['commandParams'][0x0]['language'],_0x5e0a60=_0x1cc92c(_0x49fb06['find'](_0x188cc3=>_0x188cc3['language']===_0x5616f0)['label'])['toLowerCase']();return _0x337347['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4a1e22,'*Set\x20format:*\x20%0',Tt(_0x4a1e22,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e0a60+')')}:{'type':'format','content':Tt(_0x4a1e22,'*Remove\x20format:*\x20%0',Tt(_0x4a1e22,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x4e55ea){return'codeBlock'==_0x4e55ea['name'];}class TrackChangesComments extends _0x1b042a{['afterInit'](){const _0x42504c=this['editor'];if(!_0x42504c['plugins']['has']('CommentsEditing'))return;_0x42504c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x1b042a{static get['requires'](){return[at];}['init'](){const _0x4ec59e=this['editor'],_0x450dc3=_0x4ec59e['plugins']['get']('TrackChangesEditing');_0x450dc3['enableCommand']('delete');const _0x45d449=_0x4ec59e['commands']['get']('deleteForward');_0x450dc3['enableCommand']('deleteForward',(_0x35d4f5,_0x4b7b12={})=>{const _0x2b6736=_0x4ec59e['model']['createSelection'](_0x4ec59e['model']['document']['selection']);_0x2b6736['isCollapsed']&&_0x4ec59e['model']['modifySelection'](_0x2b6736,{'direction':'forward','unit':_0x4b7b12['unit']});const _0x3f29b7=_0x2b6736['getFirstRange'](),_0x21729a=_0x4099e3['fromRange'](_0x3f29b7);let _0x3b45e7;_0x35d4f5(_0x4b7b12),_0x3b45e7='$graveyard'==_0x21729a['root']['rootName']?_0x4ec59e['model']['createRange'](_0x3f29b7['start']):_0x4ec59e['model']['createRange'](_0x21729a['start'],_0x21729a['end']),_0x21729a['detach'](),_0x4ec59e['model']['enqueueChange'](_0x45d449['buffer']['batch'],_0x38aa61=>{_0x45d449['buffer']['lock'](),_0x38aa61['setSelection'](_0x38aa61['createRange'](_0x3b45e7['end'])),_0x45d449['buffer']['unlock']();});});}}class TrackChangesList extends _0x1b042a{['afterInit'](){const _0x4d72f2=this['editor'];if(!_0x4d72f2['plugins']['has']('ListEditing'))return;const _0x56b6e5=_0x4d72f2['locale'],_0x422a8e=_0x4d72f2['plugins']['get']('TrackChangesEditing'),_0x5cf4a7=_0x4d72f2['plugins']['has']('TodoListEditing'),_0x400fbb=!!_0x4d72f2['config']['get']('list.multiBlock');function _0x3c50b6(_0x20f785){return{'type':'format','content':''+Tt(_0x56b6e5,'*Set\x20format:*\x20%0',_0x20f785)};}function _0x1d50a3(_0x14bc3a){return{'type':'format','content':''+Tt(_0x56b6e5,'*Remove\x20format:*\x20%0',_0x14bc3a)};}_0x422a8e['enableDefaultAttributesIntegration']('numberedList'),_0x422a8e['enableDefaultAttributesIntegration']('bulletedList'),_0x422a8e['enableDefaultAttributesIntegration']('customNumberedList'),_0x422a8e['enableDefaultAttributesIntegration']('customBulletedList'),_0x422a8e['enableDefaultAttributesIntegration']('indentList'),_0x422a8e['enableDefaultAttributesIntegration']('outdentList'),_0x422a8e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x422a8e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x400fbb&&(_0x422a8e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x422a8e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5cf4a7&&(_0x422a8e['enableDefaultAttributesIntegration']('todoList'),_0x422a8e['enableDefaultAttributesIntegration']('checkTodoList'),_0x422a8e['descriptionFactory']['registerDescriptionCallback'](_0xac43c3=>{const {data:_0x1c1066}=_0xac43c3;if(_0x1c1066&&'todoListChecked'==_0x1c1066['key'])return{'type':'format','content':_0x1c1066['newValue']?Tt(_0x56b6e5,'*Check\x20item*'):Tt(_0x56b6e5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x345fc6=>{if(_0x345fc6['batch']['isUndo'])return!0x1;let _0x8669f5=!0x1;const _0x4f986d=_0x422a8e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58cb51=>'todoListChecked'===_0x422a8e['_getAttributeKey'](_0x58cb51));for(const _0x598359 of _0x4f986d){'todo'!=_0x598359['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x422a8e['_findSuggestions'](_0x598359['getFirstRange'](),'attribute')['find'](_0x273623=>'listType'===_0x422a8e['_getAttributeKey'](_0x273623['suggestion']))||(_0x345fc6['removeMarker'](_0x598359['getFirstMarker']()),_0x8669f5=!0x0));}return _0x8669f5;})),_0x422a8e['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x56b6e5,'FORMAT_INDENT'));const _0x33a12d={'type':'format','content':''};_0x422a8e['descriptionFactory']['registerDescriptionCallback'](_0x554c12=>{const {data:_0x5a1a62}=_0x554c12;if(!_0x5a1a62||'listType'!=_0x5a1a62['key'])return;let _0x4cd6b=_0x554c12['head'];for(;_0x4cd6b;){if(_0x4cd6b['data']&&(('listStyle'==_0x4cd6b['data']['key']||'listMarkerStyle'==_0x4cd6b['data']['key'])&&(_0x4cd6b['data']['newValue']&&'default'!=_0x4cd6b['data']['newValue']||'default'!=_0x4cd6b['data']['oldValue']&&!_0x5a1a62['newValue'])||!_0x400fbb&&_0x4cd6b['data']['key']==Ft))return _0x33a12d;_0x4cd6b=_0x4cd6b['next'];}if(null==_0x5a1a62['newValue'])switch(_0x5a1a62['oldValue']){case'bulleted':return _0x1d50a3(Tt(_0x56b6e5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d50a3(Tt(_0x56b6e5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d50a3(Tt(_0x56b6e5,'ELEMENT_TODO_LIST'));}switch(_0x5a1a62['newValue']){case'bulleted':return _0x3c50b6(Tt(_0x56b6e5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c50b6(Tt(_0x56b6e5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c50b6(Tt(_0x56b6e5,'ELEMENT_TODO_LIST'));}}),_0x422a8e['descriptionFactory']['registerDescriptionCallback'](_0x376359=>{const {data:_0x3f25c4}=_0x376359;if(_0x3f25c4&&'listIndent'==_0x3f25c4['key'])return null==_0x3f25c4['newValue']||null==_0x3f25c4['oldValue']&&0x0==_0x3f25c4['newValue']?_0x33a12d:void 0x0;}),_0x422a8e['descriptionFactory']['registerDescriptionCallback'](_0x342c60=>{if('attribute'!=_0x342c60['type'])return;const {data:_0x539341}=_0x342c60;if(!_0x539341||'listItemId'!=_0x539341['key'])return;const _0x5dff1c=kt(_0x342c60);return'newValue'==_0x5dff1c?{'type':'format','content':Tt(_0x56b6e5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5dff1c?{'type':'format','content':Tt(_0x56b6e5,'*Split:*\x20list\x20item')}:_0x33a12d;}),_0x4d72f2['model']['document']['registerPostFixer'](_0x154f3e=>this['listItemIdFixer'](_0x154f3e)),_0x4d72f2['model']['document']['registerPostFixer'](_0x2cf0b1=>this['noTrackChangesFixer'](_0x2cf0b1)),_0x4d72f2['model']['document']['on']('change:data',(_0x2b7571,_0x548c16)=>{if(_0x548c16['isUndo']||!_0x548c16['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3279f6){if(_0x3279f6['batch']['isUndo']||!_0x3279f6['batch']['isLocal'])return!0x1;let _0x418b4f=!0x1;const _0x301bc8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59dd14=>_0x59dd14['data']&&'listItemId'==_0x59dd14['data']['key'])['filter'](_0x5aee5d=>_0x5aee5d['data']['newValue']&&_0x5aee5d['data']['oldValue']);for(const _0x434bf6 of _0x301bc8)kt(_0x434bf6)||(_0x3279f6['removeMarker'](_0x434bf6['getFirstMarker']()),_0x418b4f=!0x0);return _0x418b4f;}['noTrackChangesFixer'](_0x294976){if(_0x294976['batch']['isUndo']||!_0x294976['batch']['isLocal'])return!0x1;const _0x117e26=this['editor']['model']['document']['differ'],_0x1aaaa1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1aaaa1['trackChangesCommand']['value'])return!0x1;let _0x1eea75=!0x1;const _0x358f53=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x495de9=_0x117e26['getChanges']()['filter'](_0x555854=>'attribute'==_0x555854['type'])['filter'](_0x478a98=>_0x358f53['has'](_0x478a98['attributeKey']));if(0x0==_0x495de9['length'])return _0x1eea75;const _0x3951b4=new Set(_0x117e26['getMarkersToAdd']()['filter'](_0x3a81f2=>{if(!_0x3a81f2['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x29a3ca=_0x11d9f0(_0x3a81f2['name'])['subType']['split']('|')[0x0];return _0x358f53['has'](_0x29a3ca);})['map'](_0x483fdd=>_0x11d9f0(_0x483fdd['name'])['id']));for(const _0x3db656 of _0x495de9){const _0x4d7d66=_0x1aaaa1['_findSuggestions'](_0x3db656['range'],'attribute')['filter'](_0x3d9bc9=>{if(_0x3d9bc9['meta']['isNextTo'])return!0x1;if(_0x3951b4['has'](_0x3d9bc9['suggestion']['id']))return!0x1;const _0x36db16=_0x1aaaa1['_getAttributeKey'](_0x3d9bc9['suggestion']);return _0x358f53['has'](_0x36db16);})['map'](_0x3a52b8=>_0x3a52b8['suggestion']);if(_0x4d7d66['length']){for(const _0xdc0219 of _0x4d7d66)_0x294976['removeMarker'](_0xdc0219['getFirstMarker']());_0x1eea75=!0x0;}}return _0x1eea75;}['assureChains'](){const _0x4dcbbf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x302521=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xbf4674;const _0x3c7bc8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ae51a=>{if(_0x1ae51a['data']['oldRange']||!_0x1ae51a['data']['newRange'])return null;if(!_0x1ae51a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4c6d25}=_0x11d9f0(_0x1ae51a['name']);if(!_0x4dcbbf['hasSuggestion'](_0x4c6d25))return null;const _0x4a79ee=_0x4dcbbf['getSuggestion'](_0x4c6d25);return _0x302521['includes'](_0x4a79ee['data']['key']);})['map'](_0x5ad4e9=>{const {id:_0x7bc6d9}=_0x11d9f0(_0x5ad4e9['name']),_0x4d820=_0x4dcbbf['getSuggestion'](_0x7bc6d9);return _0xbf4674=_0x4d820['attributes']['groupId'],_0x4d820['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3c7bc8['size'])return;const _0x54bc00=_0x4dcbbf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x461f31=>'attribute'==_0x461f31['type']&&_0x461f31['data']&&_0x302521['includes'](_0x461f31['data']['key'])&&_0x461f31['attributes']['groupId']!=_0xbf4674)['map'](_0x3e02c2=>({'listItem':_0x3e02c2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3e02c2['attributes']['groupId']})),_0x4bfb70=new Set();for(const {groupId:_0x5231ac,listItem:_0x46dc9d}of _0x54bc00)_0x3c7bc8['has'](_0x46dc9d)&&_0x4bfb70['add'](_0x5231ac);for(const _0x10c23a of _0x4dcbbf['getSuggestions']())_0x4bfb70['has'](_0x10c23a['attributes']['groupId'])&&_0x10c23a['setAttribute']('groupId',_0xbf4674);}['_supportLegacySuggestions'](){const _0x20ae27=this['editor'],_0x47ac9e=_0x20ae27['locale'],_0x2240de=_0x20ae27['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2240de['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2818ee,_0x4b744c){const _0x44a176=[];for(let _0x1136a7 of _0x2818ee)_0x1136a7['start']['nodeAfter']===_0x1136a7['end']['parent']&&(_0x1136a7=_0x20ae27['model']['createRange'](_0x20ae27['model']['createPositionAt'](_0x1136a7['start']['nodeAfter'],0x0))),_0x44a176['push'](_0x1136a7);_0x20ae27['model']['change'](_0x3b5837=>{const _0x2b936a=_0x20ae27['model']['document']['selection'],_0x280ecb=Array['from'](_0x2b936a['getRanges']())['map'](_0x4687f1=>_0x4099e3['fromRange'](_0x4687f1));_0x3b5837['setSelection'](_0x44a176),_0x20ae27['commands']['get'](_0x4b744c['commandName'])['refresh'](),_0x4b744c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x20ae27['execute'](_0x4b744c['commandName'],..._0x4b744c['commandParams']),_0x3b5837['setSelection'](_0x280ecb);for(const _0x374fbb of _0x280ecb)_0x374fbb['detach']();});}),_0x2240de['descriptionFactory']['registerElementLabel'](function(_0x5543ad){const _0x1aa3ac=!_0x20ae27['model']['schema']['isObject'](_0x5543ad),_0x786dc8=_0x5543ad['previousSibling'],_0x98331b=_0x5543ad['nextSibling'],_0x4faff2=_0x5543ad['getAttribute']('listItemId'),_0x53ad37=!_0x786dc8||_0x786dc8['getAttribute']('listItemId')!==_0x4faff2,_0x323db1=!_0x98331b||_0x98331b['getAttribute']('listItemId')!==_0x4faff2;return _0x1aa3ac&&Boolean(_0x4faff2)&&_0x53ad37&&_0x323db1;},_0xbdd83e=>Tt(_0x47ac9e,'ELEMENT_LIST_ITEM',_0xbdd83e));}['_registerLegacyDescription'](){const _0x3e15aa=this['editor'],_0xac7a9c=_0x3e15aa['locale'];function _0x2137f9(_0x5e1587){const _0x1f9d4c=_0x3e15aa['commands']['get']('bulletedList')['value'],_0x3a3d90=_0x3e15aa['commands']['get']('numberedList')['value'];return'numberedList'===_0x5e1587?_0x1f9d4c:_0x3a3d90;}_0x3e15aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x461d0f){if('formatBlock'!=_0x461d0f['type'])return;const {data:_0x4151cd}=_0x461d0f;if(!_0x4151cd)return;let _0x3c9499,_0x3d6526,_0x5c68a3,_0x574d56;switch(_0x4151cd['commandName']){case'bulletedList':_0x5c68a3=_0x4151cd['commandParams'][0x0]['forceValue'],_0x574d56=_0x2137f9(_0x4151cd['commandName']),_0x3c9499=_0x5c68a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x574d56&&_0x3e15aa['config']['get']('list.multiBlock')||(_0x3c9499='*Change\x20to:*\x20%0'),_0x3d6526={'type':'format','content':Tt(_0xac7a9c,_0x3c9499,Tt(_0xac7a9c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5c68a3=_0x4151cd['commandParams'][0x0]['forceValue'],_0x574d56=_0x2137f9(_0x4151cd['commandName']),_0x3c9499=_0x5c68a3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x574d56&&_0x3e15aa['config']['get']('list.multiBlock')||(_0x3c9499='*Change\x20to:*\x20%0'),_0x3d6526={'type':'format','content':Tt(_0xac7a9c,_0x3c9499,Tt(_0xac7a9c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3c9499='*Indent:*\x20%0',_0x3d6526={'type':'format','content':Tt(_0xac7a9c,_0x3c9499,Tt(_0xac7a9c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3c9499=function(_0x5b5adf){const _0x116f2b=_0x5b5adf['getFirstRange']();let _0x2e3969=_0x116f2b['start']['nodeAfter'];for(;_0x2e3969&&_0x116f2b['containsItem'](_0x2e3969);){if(_0x2e3969['getAttribute']('listIndent')>0x0)return!0x1;_0x2e3969=_0x2e3969['nextSibling'];}return!0x0;}(_0x461d0f)?Tt(_0xac7a9c,'*Format:*\x20remove\x20from\x20%0',Tt(_0xac7a9c,function(_0x5bca6b){return'ELEMENT_'+_0x5bca6b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x461d0f))):Tt(_0xac7a9c,'*Outdent:*\x20%0',Tt(_0xac7a9c,'ELEMENT_LIST_ITEM')),_0x3d6526={'type':'format','content':_0x3c9499};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4151cd['multipleBlocks']&&(_0x3c9499='*Merge:*\x20%0',_0x3d6526={'type':'deletion','content':Tt(_0xac7a9c,_0x3c9499,Tt(_0xac7a9c,'ELEMENT_LIST_ITEM'))});}return _0x3d6526;});}}function kt(_0x486c26){let _0xfb7c9d=_0x486c26['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xfb7c9d;){const _0x519b06=_0xfb7c9d['getAttribute']('listItemId');if(!_0x519b06)return!0x1;if(_0x519b06==_0x486c26['data']['newValue'])return'newValue';if(_0x519b06==_0x486c26['data']['oldValue'])return'oldValue';_0xfb7c9d=_0xfb7c9d['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x54c496=this['editor']['config']['get']('list.properties'),_0x427d7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x54c496['styles']&&_0x427d7d['enableDefaultAttributesIntegration']('listStyle'),_0x54c496['reversed']&&_0x427d7d['enableDefaultAttributesIntegration']('listReversed'),_0x54c496['startIndex']&&_0x427d7d['enableDefaultAttributesIntegration']('listStart');const _0x265ce6={'type':'format','content':''};_0x427d7d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x147ea4=this['editor']['locale'];_0x427d7d['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x147ea4,'FORMAT_LIST_REVERSED')),_0x427d7d['descriptionFactory']['registerDescriptionCallback'](_0x5bfcea=>{const {data:_0x5ce72e}=_0x5bfcea;if(_0x5ce72e&&'listReversed'==_0x5ce72e['key'])return null==_0x5ce72e['newValue']||0x0==_0x5ce72e['newValue']&&null==_0x5ce72e['oldValue']?_0x265ce6:void 0x0;}),_0x427d7d['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x147ea4,'FORMAT_LIST_START')),_0x427d7d['descriptionFactory']['registerDescriptionCallback'](_0x35a547=>{const {data:_0x3c9a63}=_0x35a547;if(_0x3c9a63&&'listStart'==_0x3c9a63['key'])return null==_0x3c9a63['newValue']||0x1==_0x3c9a63['newValue']&&null==_0x3c9a63['oldValue']?_0x265ce6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3c20d9=>{if(_0x3c20d9['batch']['isUndo'])return!0x1;let _0x150361=!0x1;const _0x15a8ae=_0x427d7d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f55d3=>{const _0x2bcd7b=_0x427d7d['_getAttributeKey'](_0x4f55d3);return'listStart'==_0x2bcd7b||'listReversed'==_0x2bcd7b;});for(const _0xd43173 of _0x15a8ae){const _0x17910f=_0xd43173['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x17910f||'customNumbered'==_0x17910f)continue;_0x427d7d['_findSuggestions'](_0xd43173['getFirstRange'](),'attribute')['find'](_0x327dd2=>'listType'==_0x427d7d['_getAttributeKey'](_0x327dd2['suggestion']))||(_0x3c20d9['removeMarker'](_0xd43173['getFirstMarker']()),_0x150361=!0x0);}return _0x150361;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4c0e1a){const _0x381f54=this['editor']['locale'],{data:_0x3326e1}=_0x4c0e1a,_0x6cbb81={'type':'format','content':''};if(!_0x3326e1||'listStyle'!=_0x3326e1['key'])return;if(!_0x3326e1['oldValue'])return'default'==_0x3326e1['newValue']?_0x6cbb81:{'type':'format','content':''+Tt(_0x381f54,'*Set\x20format:*\x20%0',Tt(_0x381f54,this['_getTranslationKeyForListStyle'](_0x3326e1['newValue'])))};if(!_0x3326e1['newValue']){if('default'==_0x3326e1['oldValue'])return _0x6cbb81;let _0x451f8a=_0x4c0e1a['head'];for(;_0x451f8a;){if(_0x451f8a['data']&&'listType'==_0x451f8a['data']['key']&&_0x451f8a['data']['newValue'])return _0x6cbb81;_0x451f8a=_0x451f8a['next'];}return{'type':'format','content':''+Tt(_0x381f54,'*Remove\x20format:*\x20%0',Tt(_0x381f54,this['_getTranslationKeyForListStyle'](_0x3326e1['oldValue'])))};}if('default'!=_0x3326e1['newValue'])return{'type':'format','content':''+Tt(_0x381f54,'*Set\x20format:*\x20%0',Tt(_0x381f54,this['_getTranslationKeyForListStyle'](_0x3326e1['newValue'])))};let _0x2c85f4=_0x4c0e1a['head'];for(;_0x2c85f4;){if(_0x2c85f4['data']&&'listType'==_0x2c85f4['data']['key']&&_0x2c85f4['data']['newValue']&&_0x2c85f4['data']['oldValue'])return _0x6cbb81;_0x2c85f4=_0x2c85f4['next'];}return{'type':'format','content':Tt(_0x381f54,'*Set\x20format:*\x20%0',Tt(_0x381f54,'ELEMENT_'+_0x4c0e1a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x391c5d=this['editor'],_0x208085=_0x391c5d['locale'];_0x391c5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x186a33=>{if('formatBlock'!=_0x186a33['type'])return;const {data:_0x423919}=_0x186a33;if(!_0x423919)return;let _0x1b3c17,_0x115d2b;switch(_0x423919['commandName']){case'listStyle':_0x1b3c17='*Change\x20to:*\x20%0',_0x115d2b={'type':'format','content':Tt(_0x208085,_0x1b3c17,Tt(_0x208085,this['_getTranslationKeyForListStyle'](_0x423919['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b3c17=_0x423919['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x115d2b={'type':'format','content':Tt(_0x208085,_0x1b3c17)};break;case'listStart':_0x1b3c17='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x115d2b={'type':'format','content':Tt(_0x208085,_0x1b3c17,_0x423919['commandParams'][0x0]['startIndex'])};}return _0x115d2b;});}['_getTranslationKeyForListStyle'](_0x561ad5){return'ELEMENT_'+function(_0x1b7aad){if(Lt['includes'](_0x1b7aad))return'bulleted';if(It['includes'](_0x1b7aad))return'numbered';return null;}(_0x561ad5)['toUpperCase']()+'_LIST_'+_0x561ad5['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x1b042a{['afterInit'](){const _0x5efca0=this['editor'];_0x5efca0['commands']['get']('emoji')&&_0x5efca0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x1b042a{static get['requires'](){return[lt];}['init'](){const _0x57516e=this['editor'],_0x5dd592=_0x57516e['plugins']['get']('TrackChangesEditing'),_0x2d1f77=_0x57516e['commands']['get']('enter');_0x5dd592['enableCommand']('enter',()=>{_0x57516e['model']['change'](_0x4ad0c6=>{const _0x2f0c1d=_0x57516e['model']['document']['selection'],_0x2343cf=_0x2f0c1d['getFirstPosition'](),_0x584230=_0x4099e3['fromRange'](_0x2f0c1d['getFirstRange']());if(_0x2d1f77['enterBlock'](_0x4ad0c6)){const _0x405b88=_0x57516e['model']['createPositionAt'](_0x2343cf['parent']['nextSibling'],0x0),_0x52d7ef=_0x4ad0c6['createRange'](_0x2343cf,_0x405b88);_0x5dd592['markInsertion'](_0x52d7ef);}else _0x4ad0c6['setSelection'](_0x4ad0c6['createRange'](_0x584230['end']));_0x584230['detach'](),_0x2d1f77['fire']('afterExecute',{'writer':_0x4ad0c6});});});}}class TrackChangesFindAndReplace extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x53c14e=this['editor']['plugins']['get']('TrackChangesEditing');_0x53c14e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x53c14e['enableCommand']('findNext'),_0x53c14e['enableCommand']('findPrevious'),_0x53c14e['enableCommand']('replace'),_0x53c14e['enableCommand']('replaceAll');}['handleFindCommand'](_0x3de635,_0x7ae2eb,_0x2e9b3d={}){const _0x2f0d2c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3de635(_0x211f24=>{let _0xae3f=('string'==typeof _0x7ae2eb?_0x2f0d2c['findByTextCallback'](_0x7ae2eb,_0x2e9b3d):_0x7ae2eb)(_0x211f24);Array['isArray'](_0xae3f)&&(_0xae3f={'results':_0xae3f,'searchText':'string'==typeof _0x7ae2eb?_0x7ae2eb:''});const _0x3b7ee3=_0xae3f['results']['filter'](_0x1eccfc=>!0x1===this['_isInDeletionRange'](_0x1eccfc,_0x211f24['item']));return{..._0xae3f,'results':_0x3b7ee3};},_0x2e9b3d);}['_isInDeletionRange'](_0x1dccff,_0x1a801b){const _0xf01f90=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a801b,_0x1dccff['start']),this['editor']['model']['createPositionAt'](_0x1a801b,_0x1dccff['end']));for(const _0x8a86e1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xf01f90['getIntersection'](_0x8a86e1['getRange']()))return!0x0;return!0x1;}}const bt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x1b042a{['afterInit'](){const _0x426b57=this['editor']['locale'],_0x412b04=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2b3ed3,commandName:_0x4245b5}of bt)this['editor']['plugins']['has'](_0x2b3ed3)&&_0x412b04['enableDefaultAttributesIntegration'](_0x4245b5);_0x412b04['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x426b57,'FORMAT_FONT_SIZE')),_0x412b04['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x426b57,'FORMAT_FONT_FAMILY')),_0x412b04['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x426b57,'FORMAT_FONT_COLOR')),_0x412b04['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x426b57,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13af1a=this['editor'],_0x2f1f2f=_0x13af1a['locale'];_0x13af1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29dc2d=>{const _0x4f446a=_0x2f1f2f['t'];if('formatInline'!=_0x29dc2d['type'])return;const {data:_0x195418}=_0x29dc2d;if(null!=_0x195418){if('fontSize'==_0x195418['commandName']){const _0x46e268=_0x195418['commandParams'][0x0]['value'];if(_0x46e268){const _0x269e45=_0x4f446a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x201757=>_0x201757['model']==_0x46e268)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x2f1f2f,'*Set\x20font\x20size:*\x20%0',_0x269e45)};}return{'type':'format','content':Tt(_0x2f1f2f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x195418['commandName']){const _0x330d89=_0x195418['commandParams'][0x0]['value'];return _0x330d89?{'type':'format','content':Tt(_0x2f1f2f,'*Set\x20font\x20family:*\x20%0',_0x330d89)}:{'type':'format','content':Tt(_0x2f1f2f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x195418['commandName']){const _0xb96245=_0x195418['commandParams'][0x0]['value'];if(_0xb96245){const _0x18a15e=_0x252336(this['editor']['config']['get']('fontColor.colors'))['find'](_0x16c245=>_0x16c245['model']==_0xb96245);let _0x1229ca=_0xb96245,_0x49822d='';return _0x18a15e&&(_0x1229ca=_0x18a15e['label'],_0x49822d=_0x4f446a(_0x1229ca)['toLowerCase']()),{'type':'format','content':Tt(_0x2f1f2f,'*Set\x20font\x20color:*\x20%0',_0x49822d)['trim'](),'color':{'value':_0xb96245,'title':_0x49822d||_0x1229ca}};}return{'type':'format','content':Tt(_0x2f1f2f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x195418['commandName']){const _0x332b35=_0x195418['commandParams'][0x0]['value'];if(_0x332b35){const _0xd09402=_0x252336(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xaefcd1=>_0xaefcd1['model']==_0x332b35);let _0x7f3fb8=_0x332b35,_0xdb575b='';return _0xd09402&&(_0x7f3fb8=_0xd09402['label'],_0xdb575b=_0x4f446a(_0x7f3fb8)['toLowerCase']()),{'type':'format','content':Tt(_0x2f1f2f,'*Set\x20font\x20background\x20color:*\x20%0',_0xdb575b)['trim'](),'color':{'value':_0x332b35,'title':_0xdb575b||_0x7f3fb8}};}return{'type':'format','content':Tt(_0x2f1f2f,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x1b042a{['afterInit'](){const {plugins:_0x749ac1}=this['editor'];_0x749ac1['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x749ac1['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1cc4c9,plugins:_0x410a19,commands:_0x55bf5d}=this['editor'],_0x5e88dd=_0x410a19['get']('TrackChangesEditing');_0x55bf5d['get']('footnotesStyle')&&_0x5e88dd['enableDefaultAttributesIntegration']('footnotesStyle'),_0x55bf5d['get']('footnotesStart')&&_0x5e88dd['enableDefaultAttributesIntegration']('footnotesStart'),_0x5e88dd['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x1cc4c9,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5e88dd['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x1cc4c9,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5171f6=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x225136,commands:_0x5f1b06}=this['editor'];_0x5f1b06['get']('insertFootnote')&&_0x5171f6['enableCommand']('insertFootnote'),_0x5171f6['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2095f2=>Tt(_0x225136,'ELEMENT_FOOTNOTE_REF',_0x2095f2)),_0x5171f6['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x43aa4f=>Tt(_0x225136,'ELEMENT_FOOTNOTE_DEFINITION',_0x43aa4f)),_0x5171f6['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x34bc07=>Tt(_0x225136,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x34bc07));}}class TrackChangesFormatPainter extends _0x1b042a{['afterInit'](){const _0x4ae424=this['editor'],_0x13af8f=_0x4ae424['plugins']['get']('TrackChangesEditing'),_0x1e513b=_0x4ae424['commands']['get']('copyFormat'),_0x4612b1=_0x4ae424['commands']['get']('pasteFormat');_0x1e513b&&_0x4612b1&&(_0x13af8f['enableDefaultAttributesIntegration']('pasteFormat'),_0x13af8f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x47fa30=this['editor'],_0x11392f=_0x47fa30['locale'];_0x47fa30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b8e90=>{if('formatBlock'!=_0x3b8e90['type']&&'formatInline'!=_0x3b8e90['type'])return;const {data:_0x53a459}=_0x3b8e90;if(_0x53a459&&'pasteFormat'===_0x53a459['commandName']){const _0x274d2d=[],_0x75e6e6=_0x53a459['commandParams'][0x0];for(const [_0x264114,_0x17d99b]of Object['entries'](_0x75e6e6))_0x274d2d['push'](At(_0x47fa30,_0x264114,_0x17d99b));return _0x274d2d['length']?{'type':'format','content':Tt(_0x11392f,'*Set\x20format\x20to:*\x20%0',_0x274d2d['join'](',\x20'))}:{'type':'format','content':Tt(_0x11392f,'*Remove\x20all\x20formatting*')};}});}}function At(_0x42adf4,_0x28dc8f,_0x227cb1){const _0x4651b8=_0x42adf4['locale']['t'],_0x4f4ab8=_0x28dc8f['split'](/(?=[A-Z])/)['join']('\x20'),_0x2800fc=_0x4651b8(_0x4f4ab8['charAt'](0x0)['toUpperCase']()+_0x4f4ab8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x227cb1)return _0x2800fc;if('fontColor'===_0x28dc8f||'fontBackgroundColor'===_0x28dc8f){const _0x12b0cb=_0x252336(_0x42adf4['config']['get']('fontColor.colors'))['find'](_0x318aa3=>_0x318aa3['model']==_0x227cb1);return _0x2800fc+'\x20('+(_0x12b0cb?_0x4651b8(_0x12b0cb['label'])['toLowerCase']():_0x227cb1)+')';}if('fontSize'===_0x28dc8f&&isNaN(parseFloat(_0x227cb1))){const _0x248148=_0x42adf4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x42adf4['config']['get']('fontSize.options'))['find'](_0x15e608=>_0x15e608['model']==_0x227cb1);return _0x2800fc+'\x20('+(_0x248148?_0x4651b8(_0x248148['title'])['toLowerCase']():_0x227cb1)+')';}return _0x2800fc+'\x20('+_0x227cb1+')';}class TrackChangesHeading extends _0x1b042a{['_headingOptions'];['afterInit'](){const _0x13dcd9=this['editor'];if(!_0x13dcd9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x13dcd9['config']['get']('heading.options');const _0x3a04b7=_0x13dcd9['locale'],_0x464878=_0x13dcd9['plugins']['get']('TrackChangesEditing');_0x464878['enableDefaultAttributesIntegration']('heading');for(const _0x31a0a1 of this['_headingOptions'])'paragraph'!=_0x31a0a1['model']&&_0x464878['descriptionFactory']['registerElementLabel'](_0x31a0a1['model'],_0x13dc03=>{const _0x4fbfd3=this['_getHeadingLevel'](_0x31a0a1['model']);return null!==_0x4fbfd3?_0x20144e(_0x13dc03,_0x4fbfd3):_0x3da08d(_0x13dc03,_0x31a0a1['title']);});function _0x20144e(_0x5dcf52,_0x66fedc){return Tt(_0x3a04b7,'ELEMENT_HEADING',[_0x5dcf52,_0x66fedc]);}function _0x3da08d(_0x376ce5,_0x5594cf){return Tt(_0x3a04b7,'ELEMENT_HEADING_CUSTOM',[_0x376ce5,_0x5594cf]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13eebc=this['editor'],_0x49d46d=_0x13eebc['locale'];function _0x3c36fd(_0x2e35e3,_0x48ffb2){return Tt(_0x49d46d,'ELEMENT_HEADING_CUSTOM',[_0x2e35e3,_0x48ffb2]);}_0x13eebc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x61d376=>{if('formatBlock'!=_0x61d376['type'])return;const {data:_0x2ba2d4}=_0x61d376;if(_0x2ba2d4&&'heading'==_0x2ba2d4['commandName']){const _0x5de634=_0x2ba2d4['commandParams'][0x0]['value'],_0x412cf2=this['_getHeadingLevel'](_0x5de634);if(null!==_0x412cf2)return{'type':'format','content':Tt(_0x49d46d,'*Change\x20to:*\x20%0',(_0x284863=0x1,_0x4b5e9c=_0x412cf2,Tt(_0x49d46d,'ELEMENT_HEADING',[_0x284863,_0x4b5e9c])))};const _0xbd7acf=this['_headingOptions']['find'](_0x5162f3=>_0x5162f3['model']===_0x5de634)['title'];return{'type':'format','content':Tt(_0x49d46d,'*Change\x20to:*\x20%0',_0x3c36fd(0x1,_0xbd7acf))};}var _0x284863,_0x4b5e9c;});}['_getHeadingLevel'](_0x52926d){const _0x3a973b=_0x52926d['match'](/^heading(\d+)/);if(_0x3a973b)return _0x3a973b[0x1];const _0x313194=this['_headingOptions']?.['find'](_0x54e765=>_0x54e765['model']==_0x52926d);if(_0x313194&&_0x313194['view']){const _0x44f5d4=_0x313194['view'],_0x4ce7cb=(_0x44f5d4['name']??_0x44f5d4)['match'](/^h(\d+)/);if(_0x4ce7cb)return _0x4ce7cb[0x1];}return null;}}class TrackChangesHighlight extends _0x1b042a{['afterInit'](){const _0x2b67ad=this['editor'];if(!_0x2b67ad['plugins']['has']('HighlightEditing'))return;const _0x1620a2=_0x2b67ad['plugins']['get']('TrackChangesEditing'),_0x2be853=_0x2b67ad['locale'];_0x1620a2['enableDefaultAttributesIntegration']('highlight'),_0x1620a2['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x2be853,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32dc2e=this['editor'],_0x45a0cf=_0x32dc2e['locale'];_0x32dc2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x428fec=>{if('formatInline'!=_0x428fec['type'])return;const {data:_0x52abee}=_0x428fec;if(_0x52abee&&'highlight'==_0x52abee['commandName']){const _0x5d5888=_0x45a0cf['t'],_0x329ef8=_0x52abee['commandParams'][0x0]['value'];if(_0x329ef8){const _0x28b54b=_0x32dc2e['config']['get']('highlight.options')['find'](_0x56e01d=>_0x56e01d['model']==_0x329ef8),_0x2f12d5=_0x5d5888(_0x28b54b['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x45a0cf,'*Set\x20highlight:*\x20%0',_0x2f12d5),'color':{'value':_0x28b54b['color'],'title':_0x28b54b['title']}};}return{'type':'format','content':Tt(_0x45a0cf,'*Remove\x20highlight*',Tt(_0x45a0cf,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x1b042a{['afterInit'](){const _0x3d78e1=this['editor'];if(!_0x3d78e1['plugins']['has']('HorizontalLineEditing'))return;_0x3d78e1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3be4b1=_0x3d78e1['plugins']['get']('TrackChangesEditing'),_0x3a33e9=_0x3d78e1['locale'];_0x3be4b1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x521007=>Tt(_0x3a33e9,'ELEMENT_HORIZONTAL_LINE',_0x521007));}}class TrackChangesHtmlEmbed extends _0x1b042a{['afterInit'](){const _0x4a5ad4=this['editor'];if(!_0x4a5ad4['plugins']['has']('HtmlEmbed'))return;const _0x5e5279=_0x4a5ad4['plugins']['get']('TrackChangesEditing'),_0x33253b=_0x4a5ad4['locale'];_0x5e5279['descriptionFactory']['registerElementLabel']('rawHtml',_0x3003fa=>Tt(_0x33253b,'ELEMENT_HTML_EMBED',_0x3003fa)),_0x5e5279['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e5279['descriptionFactory']['registerDescriptionCallback'](_0x527273=>{if('attribute'!=_0x527273['type'])return;const {data:_0xe562b7}=_0x527273;if(_0xe562b7&&'value'==_0xe562b7['key']&&_0x527273['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x20a86d=Tt(_0x33253b,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x33253b,'*Change\x20%0\x20content*',_0x20a86d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x108c9c=this['editor'],_0x17cfb7=_0x108c9c['locale'];_0x108c9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20c61c=>{if('formatBlock'!=_0x20c61c['type'])return;const {data:_0x63eef8}=_0x20c61c;if(_0x63eef8&&'htmlEmbed'==_0x63eef8['commandName']){const _0x512bb1=Tt(_0x17cfb7,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x17cfb7,'*Change\x20%0\x20content*',_0x512bb1)};}});}}class TrackChangesImage extends _0x1b042a{['afterInit'](){const _0x412e8e=this['editor'];if(!_0x412e8e['plugins']['has']('ImageEditing'))return;const _0x3283e0=_0x412e8e['plugins']['get']('TrackChangesEditing'),_0x57ee57=_0x412e8e['plugins']['get']('ImageUtils'),_0x46e8cb=_0x412e8e['locale'];_0x3283e0['enableCommand']('insertImage'),_0x3283e0['descriptionFactory']['registerElementLabel']('imageBlock',_0x45f189=>Tt(_0x46e8cb,'ELEMENT_IMAGE',_0x45f189)),_0x3283e0['descriptionFactory']['registerElementLabel']('imageInline',_0x21ab33=>Tt(_0x46e8cb,'ELEMENT_INLINE_IMAGE',_0x21ab33)),_0x3283e0['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x46e8cb,'ELEMENT_CAPTION')),_0x412e8e['plugins']['has']('ImageUploadEditing')&&_0x3283e0['enableCommand']('uploadImage'),_0x412e8e['plugins']['has']('ImageBlockEditing')&&_0x412e8e['plugins']['has']('ImageInlineEditing')&&(_0x3283e0['enableCommand']('imageTypeInline',(_0x101307,_0x49b9be)=>{const _0xa5b2c4=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']);_0x412e8e['model']['change'](()=>{_0x3283e0['markBlockFormat'](_0xa5b2c4,{'commandName':'imageTypeInline','commandParams':[_0x49b9be]},[],'convertBlockImageToInline');});}),_0x3283e0['enableCommand']('imageTypeBlock',(_0x3f3e2a,_0x725e95)=>{_0x412e8e['model']['change'](_0x458297=>{let _0x949df9=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']),_0x3c9472=_0x458297['createRangeOn'](_0x949df9);const _0x43985f=tt['fromPosition'](_0x3c9472['start'],'toPrevious'),_0x10e056=tt['fromPosition'](_0x3c9472['end'],'toNext');_0x3283e0['forceDefaultExecution'](()=>_0x3f3e2a(_0x725e95)),_0x949df9=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']),_0x3c9472=_0x458297['createRangeOn'](_0x949df9);const _0x6a5258=_0x458297['createRange'](_0x43985f,_0x10e056);_0x43985f['detach'](),_0x10e056['detach'](),_0x3283e0['markBlockFormat'](_0x949df9,{'commandName':'imageTypeInline','commandParams':[_0x725e95]},[],'convertInlineImageToBlock'),_0x6a5258['start']['isBefore'](_0x3c9472['start'])&&_0x3283e0['markInsertion'](_0x458297['createRange'](_0x6a5258['start'],_0x3c9472['start']),'convertInlineImageToBlock'),_0x3c9472['end']['isBefore'](_0x6a5258['end'])&&_0x3283e0['markInsertion'](_0x458297['createRange'](_0x3c9472['end'],_0x6a5258['end']),'convertInlineImageToBlock');});}),_0x3283e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3283e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3283e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3283e0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3283e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3283e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xdf4658])=>{const _0x3413c8=_0x3283e0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x25d415=_0xdf4658['start'],_0xc1ea70=_0xdf4658['end'];const _0x2f56e3=_0x412e8e['model']['schema']['getNearestSelectionRange'](_0x25d415,'backward'),_0x586bea=_0x412e8e['model']['schema']['getNearestSelectionRange'](_0xc1ea70,'forward');_0x2f56e3['isCollapsed']&&(_0x25d415=_0x2f56e3['start']),_0x586bea['isCollapsed']&&(_0xc1ea70=_0x586bea['end']),_0x3413c8([_0x412e8e['model']['createRange'](_0x25d415,_0xc1ea70)]);}),_0x3283e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18976b),_0x3283e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18976b)),_0x412e8e['plugins']['has']('ImageCaptionEditing')&&(_0x3283e0['enableCommand']('toggleImageCaption',(_0x2f32d7,_0x536c89)=>{const _0x4efb00=_0x412e8e['plugins']['get']('ImageCaptionUtils');let _0xecb760=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']),_0x37c75d=_0x4efb00['getCaptionFromImageModelElement'](_0xecb760);_0x412e8e['model']['change'](()=>{if(_0x37c75d)return void _0x3283e0['markDeletion'](_0x412e8e['model']['createRangeOn'](_0x37c75d));const _0x4b0a1=_0x57ee57['isBlockImage'](_0xecb760);_0x2f32d7(_0x536c89),_0xecb760=_0x57ee57['getClosestSelectedImageElement'](_0x412e8e['model']['document']['selection']),_0x37c75d=_0x4efb00['getCaptionFromImageModelElement'](_0xecb760),_0x3283e0['markInsertion'](_0x412e8e['model']['createRangeOn'](_0x37c75d),_0x4b0a1?null:'imageCaption');});}),_0x3283e0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18976b));const _0x296a82=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x47ff40(_0x3fa751,_0x52b6a2){const _0x5b417a=_0x296a82['findIndex'](({type:_0x14e6b8,subType:_0x102990})=>_0x3fa751['type']==_0x14e6b8&&_0x3fa751['subType']==_0x102990),_0x407fb2=_0x296a82['findIndex'](({type:_0x31fd36,subType:_0x1eae60})=>_0x52b6a2['type']==_0x31fd36&&_0x52b6a2['subType']==_0x1eae60);if(_0x5b417a<0x0||_0x407fb2<0x0)return!0x1;const _0x2aded1=_0x3fa751['getFirstRange'](),_0x5a1d3d=_0x52b6a2['getFirstRange']();if((0x0==_0x5b417a||0x1==_0x5b417a)&&0x2==_0x407fb2&&_0x2aded1['isIntersecting'](_0x5a1d3d))return!0x0;if(0x2==_0x5b417a&&0x3==_0x407fb2){const _0x213dbc=_0x3283e0['_findSuggestions'](_0x2aded1,'insertion')['filter'](({suggestion:_0x654a56,meta:_0x1861ac})=>_0x1861ac['isOwn']&&'convertInlineImageToBlock'==_0x654a56['subType']);if(_0x213dbc['length']>0x1&&_0x5a1d3d['end']['isEqual'](_0x2aded1['start']))return!0x0;if(0x1==_0x213dbc['length']&&(_0x2aded1['start']['isEqual'](_0x5a1d3d['end'])||_0x2aded1['end']['isEqual'](_0x5a1d3d['start'])))return!0x0;}if(0x3==_0x5b417a&&0x3==_0x407fb2&&_0x2aded1['start']['isBefore'](_0x5a1d3d['start'])){const _0x55ae51=_0x2aded1['end']['nodeAfter'],_0x24d03d=_0x5a1d3d['start']['nodeBefore'];return _0x57ee57['isBlockImage'](_0x55ae51)&&_0x55ae51===_0x24d03d;}return!0x1;}function _0x18976b(_0x1ace0b,_0x3effd6){return _0x47ff40(_0x1ace0b,_0x3effd6)?[_0x1ace0b,_0x3effd6]:_0x47ff40(_0x3effd6,_0x1ace0b)?[_0x3effd6,_0x1ace0b]:null;}_0x412e8e['plugins']['has']('ImageResize')&&(_0x3283e0['enableDefaultAttributesIntegration']('resizeImage'),_0x3283e0['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x46e8cb,'FORMAT_IMAGE_SIZE'))),_0x412e8e['plugins']['has']('ImageTextAlternativeEditing')&&_0x3283e0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x412e8e['plugins']['has']('PictureEditing')&&_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x1ca537=>{if('attribute'!=_0x1ca537['type'])return;const {data:_0x5363d4}=_0x1ca537;return _0x5363d4&&'sources'==_0x5363d4['key']?{'type':'format','content':''}:void 0x0;}),_0x412e8e['plugins']['has']('ImageSizeAttributes')&&_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x40b114=>{if('attribute'!=_0x40b114['type'])return;const {data:_0x252bc0}=_0x40b114;return!_0x252bc0||'width'!=_0x252bc0['key']&&'height'!=_0x252bc0['key']?void 0x0:{'type':'format','content':''};}),_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x505443=>{if(!!_0x296a82['find'](({type:_0x450ca5,subType:_0x5cc51e})=>_0x505443['type']==_0x450ca5&&_0x505443['subType']==_0x5cc51e))return _0x505443['previous']?{}:void 0x0;}),_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x5c72b9=>{if('insertion'==_0x5c72b9['type']||'deletion'==_0x5c72b9['type']){const _0x5a5b3f=_0x5c72b9['getContainedElement']();if(_0x5a5b3f&&_0x5a5b3f['is']('element','caption'))return{'type':'insertion'==_0x5c72b9['type']?'addObject':'removeObject','element':_0x5a5b3f,'quantity':0x1};}}),_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x5942df=>'formatBlock'==_0x5942df['type']&&'convertInlineImageToBlock'==_0x5942df['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5942df['type']&&'convertBlockImageToInline'==_0x5942df['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3283e0['descriptionFactory']['registerDescriptionCallback'](_0x5090b4=>{if('attribute'!=_0x5090b4['type'])return;const {data:_0x2369e6}=_0x5090b4;if(!_0x2369e6||'alt'!=_0x2369e6['key'])return;const _0x2a6afc=_0x2369e6['newValue'];return _0x2a6afc?{'type':'format','content':Tt(_0x46e8cb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a6afc+'\x22')}:{'type':'format','content':Tt(_0x46e8cb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34a00a=this['editor'],_0x44ed21=_0x34a00a['locale'];_0x34a00a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe2fce9=>{if('formatBlock'!=_0xe2fce9['type']&&'formatInline'!=_0xe2fce9['type'])return;const {data:_0x2470e2}=_0xe2fce9;if(_0x2470e2){if('imageTextAlternative'==_0x2470e2['commandName']){const _0x5af494=_0x2470e2['commandParams'][0x0]['newValue'];return _0x5af494?{'type':'format','content':Tt(_0x44ed21,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5af494+'\x22')}:{'type':'format','content':Tt(_0x44ed21,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2470e2['commandName']){const _0x106c14=_0x2470e2['commandParams'][0x0]['width'];return _0x106c14?{'type':'format','content':Tt(_0x44ed21,'*Set\x20image\x20width:*\x20%0',_0x106c14)}:{'type':'format','content':Tt(_0x44ed21,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1edd02=this['editor']['locale'],_0x1c6acd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c6acd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1c6acd['descriptionFactory']['registerDescriptionCallback'](_0x82e191=>{if('attribute'!=_0x82e191['type'])return;const {data:_0x5de026}=_0x82e191;return _0x5de026&&'src'==_0x5de026['key']?_0x5de026['newValue']&&_0x5de026['oldValue']?{'type':'format','content':Tt(_0x1edd02,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d1bb9=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d1bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d1bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d1bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d1bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x391327=this['editor'],_0x19ed8c=_0x391327['locale'];_0x391327['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29991f=>{if('formatBlock'!=_0x29991f['type']&&'formatInline'!=_0x29991f['type'])return;const {data:_0x20d47d}=_0x29991f;if(!_0x20d47d||'replaceImageSource'!=_0x20d47d['commandName'])return;return{'type':'format','content':Tt(_0x19ed8c,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x1b042a{['afterInit'](){const _0xe4a27d=this['editor'];if(!_0xe4a27d['plugins']['has']('ImageStyleEditing'))return;const _0x599976=_0xe4a27d['plugins']['get']('TrackChangesEditing'),_0x485893=_0xe4a27d['plugins']['get']('ImageUtils'),_0x37e378={};_0x599976['enableCommand']('imageStyle',(_0x368d6c,_0x424c88)=>{const _0x18f7d5=_0xe4a27d['plugins']['get']('Users')['me'],_0x17b6d0=_0xe4a27d['commands']['get']('imageStyle');let _0x3f452b=_0x485893['getClosestSelectedImageElement'](_0xe4a27d['model']['document']['selection']),_0x4f0755=_0xe4a27d['model']['createRangeOn'](_0x3f452b),_0x1c6214=_0x17b6d0['value'];if(_0x1c6214==_0x424c88['value'])return;const _0x52414e={'commandName':'imageStyle','commandParams':[_0x424c88],'formatGroupId':_0x2375fd()};_0xe4a27d['model']['change'](()=>{if(_0x599976['getSuggestions']()['filter'](_0x532d91=>_0x532d91['isInContent']&&_0x18f7d5==_0x532d91['author']&&('formatBlock'==_0x532d91['type']||'formatInline'==_0x532d91['type'])&&('imageStylePreApply'==_0x532d91['subType']||'imageStylePostApply'==_0x532d91['subType'])&&_0x532d91['getFirstRange']()['isEqual'](_0x4f0755))['forEach'](_0x361dde=>_0x599976['discardSuggestion'](_0x361dde['head'])),_0x3f452b=_0x485893['getClosestSelectedImageElement'](_0xe4a27d['model']['document']['selection']),_0x4f0755=_0xe4a27d['model']['createRangeOn'](_0x3f452b),_0x17b6d0['refresh'](),_0xe4a27d['commands']['get']('imageTypeInline')['refresh'](),_0xe4a27d['commands']['get']('imageTypeBlock')['refresh'](),_0x1c6214=_0x17b6d0['value'],_0x1c6214!=_0x424c88['value'])return _0x485893['isInlineImage'](_0x3f452b)&&_0x17b6d0['shouldConvertImageType'](_0x424c88['value'],_0x3f452b)?(_0x368d6c({..._0x424c88,'setImageSizes':!0x1}),_0x3f452b=_0x485893['getClosestSelectedImageElement'](_0xe4a27d['model']['document']['selection']),void _0x599976['markBlockFormat'](_0x3f452b,{..._0x52414e,'commandReversedParams':[{'value':_0x1c6214||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x485893['isBlockImage'](_0x3f452b)?_0x599976['markBlockFormat'](_0x3f452b,_0x52414e,[],'imageStylePostApply'):_0x599976['markInlineFormat'](_0x4f0755,_0x52414e,'imageStylePostApply'));});});for(const _0x2b0a10 of _0xe4a27d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x37e378[_0x2b0a10['name']]=_0x2b0a10['title']['toLowerCase']();_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x599976['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x271fe5])=>{_0x485893['setImageNaturalSizeAttributes'](_0x271fe5['getContainedElement']());}),_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x55adcf,_0x14f6b6)=>{_0x599976['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x55adcf,{'commandName':_0x14f6b6['commandName'],'commandParams':_0x14f6b6['commandReversedParams']});}),_0x599976['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5a7511,_0x211f15){if(_0xdd2b7b(_0x5a7511,_0x211f15))return[_0x5a7511,_0x211f15];if(_0xdd2b7b(_0x211f15,_0x5a7511))return[_0x211f15,_0x5a7511];return null;});const _0x1b297e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xdd2b7b(_0x4a8519,_0x2ac985){const _0x35f8d4=_0x1b297e['findIndex'](({type:_0x4469d6,subType:_0x3c465b})=>_0x4a8519['type']==_0x4469d6&&_0x4a8519['subType']==_0x3c465b),_0x5b8e63=_0x1b297e['findIndex'](({type:_0x6d205f,subType:_0x25a1e2})=>_0x2ac985['type']==_0x6d205f&&_0x2ac985['subType']==_0x25a1e2);if(_0x35f8d4<0x0||_0x5b8e63<0x0)return!0x1;const _0x571dff=_0x4a8519['getFirstRange'](),_0x86bd9c=_0x2ac985['getFirstRange']();if((0x0==_0x35f8d4||0x1==_0x35f8d4)&&0x2==_0x5b8e63&&_0x571dff['isIntersecting'](_0x86bd9c))return!0x0;if(0x2==_0x35f8d4&&0x3==_0x5b8e63){const _0x34786c=_0x599976['_findSuggestions'](_0x571dff,'insertion')['filter'](({suggestion:_0x75e1b0,meta:_0x2d713c})=>_0x2d713c['isOwn']&&'convertInlineImageToBlock'==_0x75e1b0['subType']);if(_0x34786c['length']>0x1&&_0x86bd9c['end']['isEqual'](_0x571dff['start']))return!0x0;if(0x1==_0x34786c['length']&&(_0x571dff['start']['isEqual'](_0x86bd9c['end'])||_0x571dff['end']['isEqual'](_0x86bd9c['start'])))return!0x0;}if(0x3==_0x35f8d4&&0x3==_0x5b8e63&&_0x571dff['start']['isBefore'](_0x86bd9c['start'])){const _0x323fc6=_0x571dff['end']['nodeAfter'],_0x27aead=_0x86bd9c['start']['nodeBefore'];return _0x485893['isBlockImage'](_0x323fc6)&&_0x323fc6===_0x27aead;}return!0x1;}_0xe4a27d['model']['document']['registerPostFixer'](()=>{let _0x3ad620=!0x1;const _0x16433f=Array['from'](_0xe4a27d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xad2647,data:_0x319605}of _0x16433f){const {group:_0x19917a,type:_0xe7cc3a,subType:_0x35692e,id:_0x40fe2d}=_0x11d9f0(_0xad2647);if('suggestion'==_0x19917a&&_0x599976['hasSuggestion'](_0x40fe2d)){if('formatBlock'==_0xe7cc3a&&('imageStylePreApply'==_0x35692e||'imageStylePostApply'==_0x35692e)){const _0xc18237=_0x599976['getSuggestion'](_0x40fe2d);if(_0x319605['newRange']){const _0x4f207c=_0xc18237['getFirstRange']()['getContainedElement']();if(_0x485893['isBlockImage'](_0x4f207c))continue;_0x599976['discardSuggestion'](_0xc18237),_0x3ad620=!0x0;}}if('insertion'==_0xe7cc3a&&'imageCaption'==_0x35692e&&!_0x319605['newRange']){const _0x508590=_0x599976['getSuggestion'](_0x40fe2d);_0x508590['next']&&_0x508590['next']['isInContent']&&(_0x599976['discardSuggestion'](_0x508590['next']),_0x3ad620=!0x0);}}}return _0x3ad620;}),this['_registerLegacyDescription'](_0x37e378);}['_registerLegacyDescription'](_0x532c01){const _0x1dc4d9=this['editor'],_0x462eaa=_0x1dc4d9['locale'];_0x1dc4d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d550e=>{if('formatBlock'!=_0x1d550e['type']&&'formatInline'!=_0x1d550e['type'])return;const {data:_0x34e302}=_0x1d550e;if(!_0x34e302||'imageStyle'!=_0x34e302['commandName'])return;const _0x367ea9=_0x34e302['commandParams'][0x0]['value'];return _0x299dae('side'===_0x367ea9?Tt(_0x462eaa,'FORMAT_SIDE_IMAGE'):_0x532c01[_0x367ea9]||_0x367ea9);function _0x299dae(_0x23395b){return{'type':'format','content':Tt(_0x462eaa,'*Format:*\x20%0',_0x23395b)};}});}}class TrackChangesImportWord extends _0x1b042a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3a051b){super(_0x3a051b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x72b1dc=this['editor'],_0x243d51=_0x72b1dc['commands']['get']('importWord'),_0x59829e=_0x72b1dc['commands']['get']('trackChanges');_0x243d51&&(_0x243d51['on']('execute',(_0x482650,[,_0x887f1])=>{this['_trackChangesValueDuringImport']=_0x59829e['value'],_0x887f1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x243d51,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x243d51,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59829e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x72b1dc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5181fc,_0x2b52c8){const {suggestions:_0x19c64d}=_0x2b52c8,_0x3a8ac2=this['editor']['commands']['get']('trackChanges'),_0x24c70b=_0x3a8ac2['value'];this['_trackChangesValueDuringImport']!==_0x24c70b&&(_0x3a8ac2['execute'](),this['_trackChangesExecuted']=!0x0),_0x19c64d&&_0x19c64d['forEach'](({id:_0xf0420c,type:_0x5bfa13,author:_0x13ba16,created_at:_0x5937a2})=>{const _0x4ebcdb={'id':_0xf0420c,'type':_0x5bfa13,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x13ba16,'createdAt':_0x5937a2?new Date(_0x5937a2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4ebcdb);});}}class TrackChangesIndent extends _0x1b042a{['afterInit'](){const _0x46b245=this['editor'],_0xf3ba67=_0x46b245['plugins']['get']('TrackChangesEditing');if(_0x46b245['plugins']['has']('IndentEditing')&&(_0xf3ba67['enableCommand']('indent'),_0xf3ba67['enableCommand']('outdent')),_0x46b245['plugins']['has']('IndentBlock')){for(const _0x6eb534 of['indentBlock','outdentBlock'])_0xf3ba67['enableDefaultAttributesIntegration'](_0x6eb534);if(_0x46b245['plugins']['has']('ListEditing')){for(const _0x255e05 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xf3ba67['enableDefaultAttributesIntegration'](_0x255e05);}}const _0x5c1633=_0x46b245['locale'];_0xf3ba67['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x5c1633,'FORMAT_INDENT')),_0xf3ba67['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x5c1633,'FORMAT_INDENT')),_0xf3ba67['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x5c1633,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530a09=this['editor'],_0x1478ae=_0x530a09['locale'],_0x40512f=_0x530a09['plugins']['get']('TrackChangesEditing');_0x40512f['descriptionFactory']['registerDescriptionCallback'](_0x3658a8=>{if('formatBlock'!=_0x3658a8['type'])return;const {data:_0x14d4cf}=_0x3658a8;if(!_0x14d4cf)return;if('indentBlock'!=_0x14d4cf['commandName']&&'outdentBlock'!=_0x14d4cf['commandName'])return;const _0x66baa5=_0x3658a8['getItems']()[0x0],_0x167784=_0x40512f['descriptionFactory']['getItemLabel'](_0x66baa5);return'indentBlock'==_0x14d4cf['commandName']?{'type':'format','content':Tt(_0x1478ae,'*Indent:*\x20%0',_0x167784)}:'outdentBlock'==_0x14d4cf['commandName']?{'type':'format','content':Tt(_0x1478ae,'*Outdent:*\x20%0',_0x167784)}:void 0x0;});}}class TrackChangesInputCommand extends _0x1b042a{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x1b042a{['afterInit'](){const _0x370eb5=this['editor'];if(!_0x370eb5['plugins']['has']('LinkEditing'))return;const _0x431d23=_0x370eb5['plugins']['get']('TrackChangesEditing'),_0x179321=_0x370eb5['commands']['get']('link');_0x431d23['enableDefaultAttributesIntegration']('link'),_0x431d23['enableDefaultAttributesIntegration']('unlink');for(const _0x564139 of _0x179321['manualDecorators'])_0x431d23['descriptionFactory']['registerAttributeLabel'](_0x564139['id'],'link\x20('+_0x564139['label']['toLowerCase']()+')');_0x431d23['descriptionFactory']['registerDescriptionCallback'](_0x35bdc7=>{if('attribute'!=_0x35bdc7['type'])return;const {data:_0x30d634}=_0x35bdc7;if(!_0x30d634||'linkHref'!=_0x30d634['key'])return;const _0x5112a6=_0x30d634['newValue'],_0x1b9323=_0x370eb5['locale'];return{'type':'format','content':null==_0x5112a6?Tt(_0x1b9323,'*Remove\x20link*'):Tt(_0x1b9323,'*Set\x20link:*\x20%0','\x22'+_0x5112a6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ae0a0=this['editor'],_0x56fc5a=_0x5ae0a0['locale'];_0x5ae0a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x447c70=>{if('formatInline'!=_0x447c70['type'])return;const {data:_0x5d0a44}=_0x447c70;if(_0x5d0a44){if('link'==_0x5d0a44['commandName']){const _0x29e828=_0x5d0a44['commandParams'][0x0];return{'type':'format','content':Tt(_0x56fc5a,'*Set\x20link:*\x20%0','\x22'+_0x29e828+'\x22')};}return'unlink'==_0x5d0a44['commandName']?{'type':'format','content':Tt(_0x56fc5a,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x1b042a{['afterInit'](){const _0x172022=this['editor'],_0x44d483=_0x172022['locale'];if(!_0x172022['plugins']['has']('LegacyListEditing'))return;const _0x440ac4=_0x172022['plugins']['get']('TrackChangesEditing'),_0x57cb47=_0x172022['plugins']['has']('LegacyTodoListEditing');function _0x360bd3(_0x5e8d35){return()=>{const _0x1f529c=_0x172022['model']['document']['selection'],_0x2bbc03=_0x172022['commands']['get'](_0x5e8d35);if(_0x2bbc03['value'])return void _0x172022['execute']('paragraph',{});const _0x5a15ca=_0x5e8d35['slice'](0x0,-0x4),_0xdbc176=function(_0x51efc9,_0x54e6a0,_0x58452d){let _0x114ea7=Array['from'](_0x51efc9)['filter'](_0x3ab97f=>function(_0x4dd8f5,_0x3da606){return _0x3da606['checkChild'](_0x4dd8f5['parent'],'listItem')&&!_0x3da606['isObject'](_0x4dd8f5);}(_0x3ab97f,_0x58452d));_0x114ea7=_0x114ea7['filter'](_0xba1438=>!_0xba1438['is']('element','listItem')||_0xba1438['getAttribute']('listType')!=_0x54e6a0);const _0x4b5055=new Set();for(const _0xa5ecce of _0x114ea7)_0xa5ecce['is']('element','listItem')?_0x4b5055['add'](St(_0xa5ecce)):_0x4b5055['add'](_0xa5ecce);return Array['from'](_0x4b5055);}(_0x1f529c['getSelectedBlocks'](),_0x5a15ca,_0x172022['model']['schema']);_0x172022['model']['change'](()=>{for(const _0x2c748d of _0xdbc176)_0x440ac4['markBlockFormat'](_0x2c748d,{'commandName':_0x5e8d35,'commandParams':[{'forceValue':!_0x2bbc03['value']}],'formatGroupId':'blockName'},yt(_0x2c748d));});};}function _0x50bfaa(_0x3f2381){return()=>{const _0x5cefc1=function(_0x113d93){let _0x236991=Array['from'](_0x113d93);const _0xda1af5=_0x236991['findIndex'](_0x143b55=>'listItem'!=_0x143b55['name']);return _0xda1af5>-0x1&&(_0x236991=_0x236991['slice'](0x0,_0xda1af5)),_0x236991;}(_0x172022['model']['document']['selection']['getSelectedBlocks']()),_0x270248=_0x172022['model']['createRange'](_0x172022['model']['createPositionAt'](_0x5cefc1[0x0],'before'),_0x172022['model']['createPositionAt'](_0x5cefc1[_0x5cefc1['length']-0x1],'end'));_0x172022['model']['change'](()=>{_0x440ac4['markBlockFormat'](_0x270248,{'commandName':_0x3f2381,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c5f44){const _0x32d8f9=new Set();for(const _0x247848 of _0x3c5f44){let _0x2d619d=_0x247848['nextSibling'];for(;_0x2d619d&&_0x2d619d['getAttribute']('listIndent')>_0x247848['getAttribute']('listIndent');)_0x32d8f9['add'](_0x2d619d),_0x2d619d=_0x2d619d['nextSibling'];}return Array['from'](_0x32d8f9);}(_0x5cefc1));});};}_0x440ac4['enableCommand']('numberedList',_0x360bd3('numberedList')),_0x440ac4['enableCommand']('bulletedList',_0x360bd3('bulletedList')),_0x57cb47&&_0x440ac4['enableCommand']('todoList',_0x360bd3('todoList')),_0x440ac4['enableCommand']('indentList',_0x50bfaa('indentList')),_0x440ac4['enableCommand']('outdentList',_0x50bfaa('outdentList')),_0x57cb47&&_0x440ac4['enableCommand']('checkTodoList',()=>{const _0x5e70ea=_0x172022['commands']['get']('checkTodoList'),_0x3c02e5=Array['from'](_0x5e70ea['_selectedElements']);_0x3c02e5['filter'](_0x13156f=>_0x13156f['getAttribute']('todoListChecked')!=_0x5e70ea['value']),_0x172022['model']['change'](()=>{for(const _0xe9c6b1 of _0x3c02e5)_0x440ac4['markBlockFormat'](_0xe9c6b1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5e70ea['value']}]});});}),_0x440ac4['descriptionFactory']['registerElementLabel']('listItem',_0x27fe71=>Tt(_0x44d483,'ELEMENT_LIST_ITEM',_0x27fe71)),_0x440ac4['descriptionFactory']['registerDescriptionCallback'](_0x4f2dde=>{if('formatBlock'!=_0x4f2dde['type']&&'formatInline'!=_0x4f2dde['type'])return;const {data:_0x58d548}=_0x4f2dde;if(_0x58d548){if('numberedList'==_0x58d548['commandName']||'bulletedList'==_0x58d548['commandName']||'todoList'==_0x58d548['commandName'])switch(_0x58d548['commandName']['replace']('List','')){case'bulleted':return _0x832503(Tt(_0x44d483,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x832503(Tt(_0x44d483,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x832503(Tt(_0x44d483,'ELEMENT_TODO_LIST'));}if('indentList'==_0x58d548['commandName'])return{'type':'format','content':Tt(_0x44d483,'*Indent:*\x20%0',Tt(_0x44d483,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x58d548['commandName'])return{'type':'format','content':Tt(_0x44d483,'*Outdent:*\x20%0',Tt(_0x44d483,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x58d548['commandName'])return _0x58d548['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x44d483,'*Check\x20item*')}:{'type':'format','content':Tt(_0x44d483,'*Uncheck\x20item*')};}function _0x832503(_0x46897d){return{'type':'format','content':Tt(_0x44d483,'*Change\x20to:*\x20%0',_0x46897d)};}});}}function St(_0xf282d0){const _0x5a5e60=_0xf282d0['getAttribute']('listIndent');if(0x0==_0x5a5e60)return _0xf282d0;let _0x472df5=_0xf282d0;for(;_0xf282d0['previousSibling']&&_0xf282d0['previousSibling']['is']('element','listItem');){const _0x106d1d=_0xf282d0['previousSibling']['getAttribute']('listIndent');if(_0x106d1d==_0x5a5e60)_0x472df5=_0xf282d0['previousSibling'];else{if(_0x106d1d<_0x5a5e60)break;}_0xf282d0=_0xf282d0['previousSibling'];}return _0x472df5;}function yt(_0x598e01){const _0x22e354=[];if(_0x598e01['is']('element','listItem')&&_0x598e01['getAttribute']('listIndent')>0x0){let _0x16ae4f=_0x598e01['nextSibling'];for(;_0x16ae4f&&'listItem'==_0x16ae4f['name']&&_0x16ae4f['getAttribute']('listIndent')==_0x598e01['getAttribute']('listIndent');)_0x22e354['push'](_0x16ae4f),_0x16ae4f=_0x16ae4f['nextSibling'];}return _0x22e354;}class TrackChangesLegacyListProperties extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x54c3b1=this['editor']['config']['get']('list.properties'),_0x901668=this['editor']['plugins']['get']('TrackChangesEditing');_0x54c3b1['styles']&&_0x901668['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x54c3b1['reversed']&&_0x901668['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x54c3b1['startIndex']&&_0x901668['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x901668['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x59c9d2,_0x2e63b9={}){const _0x1f4d4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x265bd8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1f4d4f['markMultiRangeBlockFormat'](_0x265bd8,{'commandName':'listStyle','commandParams':[{'type':_0x2e63b9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x546a73,_0x23d1d5={}){const _0x221853=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4726db=this['_getSuggestionBlocks'](_0xf44b31=>_0xf44b31['is']('element','listItem')&&'numbered'===_0xf44b31['getAttribute']('listType'));if(_0x4726db['length']<0x1)return;const _0x2861db=_0x4726db['map'](_0x32147c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32147c,'before'),this['editor']['model']['createPositionAt'](_0x32147c,0x0)));this['editor']['model']['change'](()=>{_0x221853['markMultiRangeBlockFormat'](_0x2861db,{'commandName':'listReversed','commandParams':[{'reversed':_0x23d1d5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x39d25f,_0x3d4110={}){const _0x279d32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x544e14=this['_getSuggestionBlocks'](_0x406510=>_0x406510['is']('element','listItem')&&'numbered'===_0x406510['getAttribute']('listType'));if(_0x544e14['length']<0x1)return;const _0x173817=_0x544e14['map'](_0x4c7e20=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c7e20,'before'),this['editor']['model']['createPositionAt'](_0x4c7e20,0x0)));this['editor']['model']['change'](()=>{_0x279d32['markMultiRangeBlockFormat'](_0x173817,{'commandName':'listStart','commandParams':[{'startIndex':_0x3d4110['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5d441f){if('formatBlock'!=_0x5d441f['type']&&'formatInline'!=_0x5d441f['type'])return;const _0x415cc0=this['editor']['locale'],{data:_0x36832e}=_0x5d441f;if(!_0x36832e)return;let _0x58497c,_0x214b83;switch(_0x36832e['commandName']){case'listStyle':_0x58497c='*Change\x20to:*\x20%0',_0x214b83={'type':'format','content':Tt(_0x415cc0,_0x58497c,Tt(_0x415cc0,this['_getTranslationKeyForListStyle'](_0x36832e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x58497c=_0x36832e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x214b83={'type':'format','content':Tt(_0x415cc0,_0x58497c)};break;case'listStart':_0x58497c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x214b83={'type':'format','content':Tt(_0x415cc0,_0x58497c,_0x36832e['commandParams'][0x0]['startIndex'])};}return _0x214b83;}['_getSuggestionBlocksForListStyle'](){const _0xa72044=this['editor']['plugins']['get']('LegacyListUtils');let _0x3249c8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3249c8[0x0]?.['is']('element','listItem')&&_0x3249c8['unshift'](..._0xa72044['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3249c8[_0x3249c8['length']-0x1]?.['is']('element','listItem')&&_0x3249c8['push'](..._0xa72044['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3249c8=[...new Set(_0x3249c8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3249c8=_0x3249c8['filter'](_0x3e4a59=>_0x3e4a59['is']('element','listItem'))),_0x3249c8;}['_getSuggestionBlocks'](_0x133568){const _0x4f2605=this['editor']['plugins']['get']('LegacyListUtils');let _0x20f9ee=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x133568)['map'](_0x6ff1d4=>{const _0x2d2560=this['editor']['model']['createPositionAt'](_0x6ff1d4,0x0);return[..._0x4f2605['getSiblingNodes'](_0x2d2560,'backward'),..._0x4f2605['getSiblingNodes'](_0x2d2560,'forward')];})['flat']();return _0x20f9ee=[...new Set(_0x20f9ee)],_0x20f9ee;}['_getTranslationKeyForListStyle'](_0x466872){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x466872)||'default')['toUpperCase']()+'_LIST_'+_0x466872['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x1b042a{['afterInit'](){const _0x2f222f=this['editor'];if(!_0x2f222f['plugins']['has']('MediaEmbedEditing'))return;const _0x487b51=_0x2f222f['plugins']['get']('TrackChangesEditing'),_0x47b85d=_0x2f222f['locale'];_0x487b51['enableCommand']('mediaEmbed'),_0x487b51['descriptionFactory']['registerElementLabel']('media',_0x5e04ef=>Tt(_0x47b85d,'ELEMENT_MEDIA',_0x5e04ef));}}class TrackChangesMention extends _0x1b042a{['afterInit'](){const _0x22393c=this['editor'];_0x22393c['plugins']['has']('MentionEditing')&&_0x22393c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x1b042a{['afterInit'](){const _0x11643b=this['editor'];if(!_0x11643b['plugins']['has']('MergeFieldsEditing'))return;const _0x72184c=_0x11643b['plugins']['get']('TrackChangesEditing'),_0x439826=_0x11643b['locale'];_0x72184c['enableCommand']('insertMergeField'),_0x72184c['enableCommand']('insertMergeFieldBlock'),_0x72184c['enableCommand']('insertMergeFieldImage'),_0x72184c['descriptionFactory']['registerElementLabel']('mergeField',_0x569ff7=>Tt(_0x439826,'ELEMENT_MERGE_FIELD',_0x569ff7)),_0x72184c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x43cda6=>Tt(_0x439826,'ELEMENT_MERGE_FIELD',_0x43cda6)),_0x72184c['descriptionFactory']['registerDescriptionCallback'](_0x3879d6=>{if('insertion'!=_0x3879d6['type']&&'deletion'!=_0x3879d6['type'])return;const _0x4829d9=_0x3879d6['getContainedElement']();if(null==_0x4829d9)return;const _0x1b704d=_0x11643b['plugins']['get']('MergeFieldsEditing');let _0x5624dc;switch(_0x1b704d['getMergeFieldType'](_0x4829d9)){case null:return;case'image':{const _0xf99b0b=_0x1b704d['unwrapAffixes'](_0x4829d9['getAttribute']('src'));_0x5624dc=_0x1b704d['getLabel'](_0xf99b0b)||_0xf99b0b;break;}default:{const _0x8d630d=_0x4829d9['getAttribute']('id');_0x5624dc=_0x1b704d['getLabel'](_0x8d630d)||_0x8d630d;break;}}return'insertion'==_0x3879d6['type']?{'type':'insertion','content':Tt(_0x439826,'*Insert:*\x20%0','\x22'+_0x5624dc+'\x22\x20'+Tt(_0x439826,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x439826,'*Remove:*\x20%0','\x22'+_0x5624dc+'\x22\x20'+Tt(_0x439826,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x1b042a{['afterInit'](){const _0x53b2ce=this['editor'],_0x4b15fb=_0x53b2ce['plugins']['get']('TrackChangesEditing');_0x53b2ce['plugins']['has']('MultiLevelList')&&(_0x4b15fb['enableDefaultAttributesIntegration']('multiLevelList'),_0x4b15fb['descriptionFactory']['registerDescriptionCallback'](_0x2c95ad=>this['handleDescriptions'](_0x2c95ad)));}['handleDescriptions'](_0x36f3e2){const _0x5768c9=this['editor']['locale'],{data:_0x17a5cc}=_0x36f3e2,_0x46edb3={'type':'format','content':''};if(_0x17a5cc&&'listMarkerStyle'==_0x17a5cc['key']){if(!_0x17a5cc['oldValue'])return{'type':'format','content':Tt(_0x5768c9,'*Set\x20format:*\x20%0',Tt(_0x5768c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x17a5cc['newValue']+')'};if(!_0x17a5cc['newValue']){let _0xbce73e=_0x36f3e2['head'];for(;_0xbce73e;){if(_0xbce73e['data']&&'listType'==_0xbce73e['data']['key']&&_0xbce73e['data']['newValue'])return _0x46edb3;_0xbce73e=_0xbce73e['next'];}return{'type':'format','content':Tt(_0x5768c9,'*Remove\x20format:*\x20%0',Tt(_0x5768c9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x17a5cc['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x1b042a{['afterInit'](){const _0x156760=this['editor'];if(!_0x156760['plugins']['has']('PageBreakEditing'))return;_0x156760['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4eddae=_0x156760['plugins']['get']('TrackChangesEditing'),_0x4f2d3c=_0x156760['locale'];_0x4eddae['descriptionFactory']['registerElementLabel']('pageBreak',_0x5ebbf5=>Tt(_0x4f2d3c,'ELEMENT_PAGE_BREAK',_0x5ebbf5));}}class TrackChangesParagraph extends _0x1b042a{['afterInit'](){const _0x32139a=this['editor'];if(!_0x32139a['plugins']['has']('Paragraph'))return;const _0x4b524f=_0x32139a['locale'],_0x161bfa=_0x32139a['plugins']['get']('TrackChangesEditing');_0x161bfa['descriptionFactory']['registerElementLabel']('paragraph',_0x2e3fba=>Tt(_0x4b524f,'ELEMENT_PARAGRAPH',_0x2e3fba)),_0x161bfa['enableDefaultAttributesIntegration']('paragraph'),_0x161bfa['enableCommand']('insertParagraph');const _0x1e2b93=_0x161bfa['descriptionFactory'];_0x1e2b93['registerDescriptionCallback'](_0x5dca37=>{if('insertion'!==_0x5dca37['type'])return;const {start:_0x43b3d7,end:_0x2b7acd}=_0x5dca37['getFirstRange']();if(!_0x43b3d7['isTouching'](_0x2b7acd)||!_0x43b3d7['nodeAfter'])return;const _0x1a8dc3=_0x32139a['model']['schema'],_0x3ef0cf=_0x43b3d7['nodeAfter'];return _0x1a8dc3['isBlock'](_0x3ef0cf)&&!_0x1a8dc3['isLimit'](_0x3ef0cf)&&_0x1a8dc3['checkChild'](_0x3ef0cf,'$text')?{'type':'insertion','content':Tt(_0x4b524f,'*Insert:*\x20%0',_0x1e2b93['getItemLabel'](_0x3ef0cf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2253ee=this['editor'],_0x5c0ff3=_0x2253ee['locale'];_0x2253ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x532582=>{if('formatBlock'!=_0x532582['type'])return;const {data:_0x1f9183}=_0x532582;return _0x1f9183&&'paragraph'==_0x1f9183['commandName']?{'type':'format','content':Tt(_0x5c0ff3,'*Change\x20to:*\x20%0',Tt(_0x5c0ff3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x1b042a{['afterInit'](){const _0x1896b7=this['editor'];_0x1896b7['commands']['get']('replaceSource')&&_0x1896b7['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x1b042a{['afterInit'](){const _0x4cb484=this['editor'];if(!_0x4cb484['plugins']['has']('RemoveFormatEditing'))return;_0x4cb484['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cedea=this['editor'];_0x3cedea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5eaaea=>{if('formatBlock'!=_0x5eaaea['type']&&'formatInline'!=_0x5eaaea['type'])return;const {data:_0x16d19e}=_0x5eaaea;return _0x16d19e&&'removeFormat'==_0x16d19e['commandName']?{'type':'format','content':Tt(_0x3cedea['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x1b042a{['afterInit'](){const _0x5322e9=this['editor'];if(!_0x5322e9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ad09a=_0x5322e9['plugins']['get']('TrackChangesEditing');_0x1ad09a['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ad09a['enableCommand']('goToNextRestrictedEditingException');const _0x39cbbb=_0x5322e9['plugins']['get']('RestrictedEditingModeEditing');_0x39cbbb['enableCommand']('trackChanges'),_0x39cbbb['enableCommand']('acceptSuggestion'),_0x39cbbb['enableCommand']('discardSuggestion'),_0x39cbbb['enableCommand']('acceptAllSuggestions'),_0x39cbbb['enableCommand']('discardAllSuggestions'),_0x39cbbb['enableCommand']('acceptSelectedSuggestions'),_0x39cbbb['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x1b042a{['afterInit'](){const _0x1e27e4=this['editor'];if(!_0x1e27e4['plugins']['has']('ShiftEnter'))return;const _0x124937=_0x1e27e4['plugins']['get']('TrackChangesEditing');_0x124937['enableCommand']('shiftEnter'),_0x124937['descriptionFactory']['registerElementLabel']('softBreak',_0x4461a0=>Tt(_0x1e27e4['locale'],'ELEMENT_LINE_BREAK',_0x4461a0));}}function Rt(_0x1c1433,_0x1417e4,_0x9b60e4){const _0x5ebf09=[];for(const _0x556b9b of _0x1417e4['getItems']())_0x556b9b['hasAttribute'](_0x1c1433)&&_0x5ebf09['push'](_0x9b60e4['createRangeOn'](_0x556b9b));return _0x5ebf09;}class TrackChangesStandardEditingMode extends _0x1b042a{['afterInit'](){const _0x41c949=this['editor'],_0x158a81=_0x41c949['plugins']['get']('TrackChangesEditing');_0x41c949['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x158a81['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x35fe56=this['editor'],_0x33d29e=_0x35fe56['model'],_0x21deef=_0x35fe56['locale'],_0x45639e=_0x35fe56['plugins']['get']('TrackChangesEditing'),_0x1f62df='restrictedEditingException',_0xa51179=_0x35fe56['commands']['get'](_0x1f62df);_0x45639e['enableCommand'](_0x1f62df,(_0x1655bb,_0x2408d5={})=>{const _0x42cf27=_0x33d29e['document']['selection'];if(_0x42cf27['isCollapsed'])return void _0x1655bb(_0x2408d5);const _0x439438=void 0x0!==_0x2408d5['forceValue']?_0x2408d5['forceValue']:!_0xa51179['value'];_0x33d29e['change'](()=>{const _0x14598b=Array['from'](_0x42cf27['getRanges']());for(const _0x55d9af of _0x14598b){const _0x4eb39c=_0x439438?[_0x55d9af]:Rt(_0x1f62df,_0x55d9af,_0x33d29e);for(const _0x43030a of _0x4eb39c)_0x45639e['markInlineFormat'](_0x43030a,{'commandName':_0x1f62df,'commandParams':[{'forceValue':_0x439438}]});}});}),_0x45639e['descriptionFactory']['registerDescriptionCallback'](_0x3bce0e=>{if('formatBlock'!=_0x3bce0e['type']&&'formatInline'!=_0x3bce0e['type'])return;const {data:_0x5c0a84}=_0x3bce0e;return _0x5c0a84&&_0x5c0a84['commandName']==_0x1f62df?_0x5c0a84['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x21deef,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x21deef,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x262f30=this['editor'],_0x27359c=_0x262f30['locale'],_0x25ef3f=_0x262f30['plugins']['get']('TrackChangesEditing'),_0x291199='restrictedEditingExceptionBlock',_0xd31e30=this['editor']['commands']['get'](_0x291199);_0x25ef3f['enableCommand'](_0x291199,(_0x491e5b,_0x44fc0b={})=>{const _0x36702e=this['editor']['model']['document']['selection'],_0x30c2c8=_0x44fc0b&&void 0x0!==_0x44fc0b['forceValue']?_0x44fc0b['forceValue']:!_0xd31e30['value'];let _0x2c064f=[];if(_0x30c2c8){const _0x4fc055=Array['from'](_0x36702e['getSelectedBlocks']())['filter'](_0x57f94f=>function(_0xe12d21){return!!_0xe12d21['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x57f94f)||function(_0x9e504a,_0x50d97c){const _0x5753f4=_0x50d97c['createContext'](_0x9e504a['parent']);if(!_0x50d97c['checkChild'](_0x5753f4,'restrictedEditingException'))return!0x1;if(!_0x50d97c['checkChild'](_0x5753f4['push']('restrictedEditingException'),_0x9e504a))return!0x1;return!0x0;}(_0x57f94f,this['editor']['model']['schema']));_0x2c064f=ft(_0x4fc055,_0x262f30['model']);}else{const _0x110c5a=Array['from'](_0x36702e['getSelectedBlocks']())['map'](_0x1dcd21=>function(_0xc9fe42){let _0x61c572=_0xc9fe42;for(;_0x61c572['parent'];){if('restrictedEditingException'==_0x61c572['parent']['name'])return _0x61c572;_0x61c572=_0x61c572['parent'];}return null;}(_0x1dcd21))['filter'](_0xa2820a=>!!_0xa2820a);_0x2c064f=ft(_0x110c5a,_0x262f30['model']);}_0x262f30['model']['change'](()=>{for(const _0x5d4cf3 of _0x2c064f)_0x25ef3f['markBlockFormat'](_0x5d4cf3,{'commandName':_0x291199,'commandParams':[{'forceValue':_0x30c2c8}]});});}),_0x25ef3f['descriptionFactory']['registerDescriptionCallback'](_0x289233=>{const {data:_0x564147}=_0x289233;if(_0x564147&&_0x564147['commandName']==_0x291199)return _0x564147['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x27359c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x27359c,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x1b042a{['afterInit'](){const _0xf08018=this['editor'];if(!_0xf08018['plugins']['has']('Style')||!_0xf08018['plugins']['has']('DataSchema'))return;const _0x391a61=_0xf08018['plugins']['get']('TrackChangesEditing'),_0x40336b=_0xf08018['locale'],_0x345d23=_0xf08018['config']['get']('style')||{},_0x281e5c=_0xf08018['plugins']['get']('GeneralHtmlSupport'),_0x26936f=_0xf08018['plugins']['get']('StyleUtils')['normalizeConfig'](_0xf08018['plugins']['get']('DataSchema'),_0x345d23['definitions']);_0x391a61['enableDefaultAttributesIntegration']('style');const _0x32d817=new Set();for(const _0x3a6ddc of _0x26936f['block']){const _0x248bf5=_0x281e5c['getGhsAttributeNameForElement'](_0x3a6ddc['element']);_0x32d817['add'](_0x248bf5);}const _0x24c45a=new Set();for(const _0x56c696 of _0x26936f['inline']){const _0x3fc893=_0x281e5c['getGhsAttributeNameForElement'](_0x56c696['element']);_0x24c45a['add'](_0x3fc893);for(const _0x11905d of _0x56c696['ghsAttributes'])_0x24c45a['add'](_0x11905d);}for(const _0x101758 of _0x32d817)_0x391a61['descriptionFactory']['registerAttributeLabel'](_0x101758,Tt(_0x40336b,'FORMAT_STYLE'));for(const _0x13d619 of _0x24c45a)_0x391a61['descriptionFactory']['registerAttributeLabel'](_0x13d619,Tt(_0x40336b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b9eca=this['editor'],_0x584acd=_0x2b9eca['locale'];_0x2b9eca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d4c7c=>{if('formatBlock'!=_0x5d4c7c['type']&&'formatInline'!=_0x5d4c7c['type'])return;const {data:_0x289176}=_0x5d4c7c;return _0x289176&&'style'===_0x289176['commandName']?_0x289176['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x584acd,'*Set\x20format:*\x20%0',_0x289176['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x584acd,'*Remove\x20format:*\x20%0',_0x289176['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x1b042a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x23e4e8){super(_0x23e4e8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x31a21f=this['editor'],_0x2f5b04=_0x31a21f['model']['document']['selection'];if(!_0x31a21f['plugins']['has']('TableEditing'))return;const _0x4bd3cb=_0x31a21f['locale'],_0x40f7cc=_0x31a21f['plugins']['get']('TrackChangesEditing'),_0x3415f6=_0x31a21f['plugins']['get']('TableUtils');_0x40f7cc['descriptionFactory']['registerElementLabel']('table',_0x50bebd=>Tt(_0x4bd3cb,'ELEMENT_TABLE',_0x50bebd)),this['_setupColumnsRowsFixing'](),_0x40f7cc['enableCommand']('insertTable'),_0x40f7cc['enableCommand']('selectTableRow'),_0x40f7cc['enableCommand']('selectTableColumn');for(const _0x6d2ddc of['insertTableRowAbove','insertTableRowBelow']){const _0x4b1c85=_0x31a21f['commands']['get'](_0x6d2ddc);_0x40f7cc['enableCommand'](_0x6d2ddc,_0x3ba1ef=>{_0x31a21f['model']['change'](_0x17cfdf=>{_0x3ba1ef();const _0x983283='above'===_0x4b1c85['order'],_0x5c3152=_0x3415f6['getSelectionAffectedTableCells'](_0x2f5b04),_0x16f4dd=_0x3415f6['getRowIndexes'](_0x5c3152),_0xb6d68d=_0x983283?_0x16f4dd['first']-0x1:_0x16f4dd['last']+0x1,_0x4035ba=_0x5c3152[0x0]['findAncestor']('table'),_0x1c7012=_0x3415f6['createTableWalker'](_0x4035ba,{'startRow':_0xb6d68d,'endRow':_0xb6d68d}),_0x4e4760=Array['from'](_0x1c7012)['map'](_0x23ce31=>_0x17cfdf['createRangeOn'](_0x23ce31['cell']));_0x40f7cc['markMultiRangeInsertion'](_0x4e4760,'tableRow');});});}for(const _0x3d6eb5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5384d1=_0x31a21f['commands']['get'](_0x3d6eb5);_0x40f7cc['enableCommand'](_0x3d6eb5,_0x5e3dbb=>{_0x31a21f['model']['change'](_0x376bda=>{_0x5e3dbb();const _0x5619af='left'===_0x5384d1['order'],_0x355970=_0x3415f6['getSelectionAffectedTableCells'](_0x2f5b04),_0x27f5df=_0x3415f6['getColumnIndexes'](_0x355970),_0x2abe38=_0x5619af?_0x27f5df['first']-0x1:_0x27f5df['last']+0x1,_0x9aacea=_0x355970[0x0]['findAncestor']('table'),_0x36f465=_0x3415f6['createTableWalker'](_0x9aacea,{'startRow':0x0,'column':_0x2abe38,'includeAllSlots':!0x1}),_0x577d42=Array['from'](_0x36f465)['map'](_0x569d48=>_0x376bda['createRangeOn'](_0x569d48['cell']));_0x40f7cc['markMultiRangeInsertion'](_0x577d42,'tableColumn');});});}for(const _0x2498f5 of['removeTableRow','removeTableColumn']){const _0x4c4baf=_0x2498f5['substr'](0xb),_0x3d5666=_0x4c4baf['toLowerCase'](),_0x34828b=_0x3d5666['substr'](0x0,0x3)+'span',_0x1ae462='table'+_0x4c4baf,_0x20c40e='min'+_0x4c4baf,_0x428f6c='max'+_0x4c4baf;_0x40f7cc['enableCommand'](_0x2498f5,()=>{_0x31a21f['model']['change'](_0x6c4e8c=>{const _0x2e7fc5=_0x3415f6['getSelectionAffectedTableCells'](_0x2f5b04),_0x196232=_0x2e7fc5[0x0]['findAncestor']('table');let _0x5e1bd2;if('removeTableRow'==_0x2498f5){const _0x38edb5=_0x3415f6['getRowIndexes'](_0x2e7fc5);_0x5e1bd2={'startRow':_0x38edb5['first'],'endRow':_0x38edb5['last'],'includeAllSlots':!0x0};}else{const _0x586e89=_0x3415f6['getColumnIndexes'](_0x2e7fc5);_0x5e1bd2={'startColumn':_0x586e89['first'],'endColumn':_0x586e89['last'],'includeAllSlots':!0x0};}const _0xd6a364=_0x3415f6['createTableWalker'](_0x196232,_0x5e1bd2),_0x192f38=Array['from'](_0xd6a364)['map'](({cell:_0x5df945})=>_0x5df945),_0x2b8059=Nt(_0x192f38['filter'](_0x111e33=>_0x111e33['hasAttribute'](_0x34828b))),_0x2f017c=Nt(_0x192f38['filter'](_0x4d4d0e=>!_0x4d4d0e['hasAttribute'](_0x34828b)))['map'](_0x4bcf40=>_0x6c4e8c['createRangeOn'](_0x4bcf40)),_0x1f9207=_0x40f7cc['markMultiRangeDeletion'](_0x2f017c,_0x1ae462);if(_0x1f9207&&('tableRow'==_0x1f9207['subType']||'tableColumn'==_0x1f9207['subType'])){const _0x19d2f5=this['_getSuggestionCoords'](_0x1f9207);for(const _0x5a89df of _0x2b8059){const _0x103922=_0x6c4e8c['createRangeOn'](_0x5a89df),_0x436fc0=_0x3415f6['getCellLocation'](_0x5a89df),_0x2522f4=_0x5a89df['getAttribute'](_0x34828b)-0x1,_0x4038f1=_0x19d2f5[_0x20c40e],_0x2c47d3=_0x19d2f5[_0x428f6c];_0x4038f1<=_0x436fc0[_0x3d5666]&&_0x436fc0[_0x3d5666]+_0x2522f4<=_0x2c47d3&&_0x1f9207['addRange'](_0x103922);}}});});}function _0xf89a11(_0x8326d8){const _0xd3107a=Array['from'](_0x2f5b04['getRanges']())['map'](_0x5dc876=>_0x4099e3['fromRange'](_0x5dc876));_0x31a21f['model']['change'](_0x32a7d6=>{const _0xbaa3df=_0x32a7d6['batch'];_0x8326d8=_0x8326d8['filter'](_0x3387ed=>'$graveyard'!=_0x3387ed['root']['rootName']),_0x32a7d6['setSelection'](_0x8326d8),_0x31a21f['commands']['get']('removeTableRow')['refresh'](),_0x31a21f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x31a21f['model']['enqueueChange'](()=>{_0x31a21f['model']['enqueueChange'](_0xbaa3df,_0x5194b0=>{const _0x170fc2=_0xd3107a['filter'](_0x43914d=>'$graveyard'!=_0x43914d['root']['rootName']);_0x170fc2['length']>0x0&&_0x5194b0['setSelection'](_0x170fc2);for(const _0x43507a of _0xd3107a)_0x43507a['detach']();});});});}function _0x3c0178(_0x548182){_0x31a21f['model']['change'](_0x5b4b9e=>{const _0x20221d=Array['from'](_0x2f5b04['getRanges']())['map'](_0x41a54d=>_0x4099e3['fromRange'](_0x41a54d)),_0x14c885=[];for(const _0x40cc26 of _0x548182)for(const _0x286c81 of _0x40cc26['getItems']({'shallow':!0x0}))_0x14c885['push'](_0x286c81);for(const _0x30fcce of _0x14c885)'$graveyard'!=_0x30fcce['root']['rootName']&&(_0x5b4b9e['setSelection'](_0x5b4b9e['createPositionAt'](_0x30fcce,0x0)),_0x31a21f['commands']['get']('removeTableColumn')['refresh'](),_0x31a21f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d0b79=_0x20221d['filter'](_0x19a674=>'$graveyard'!=_0x19a674['root']['rootName']);_0x5d0b79['length']>0x0&&_0x5b4b9e['setSelection'](_0x5d0b79);for(const _0x3b3e1d of _0x20221d)_0x3b3e1d['detach']();});}function _0x987da8(_0x305109,_0x7c7586){return _0x7c7586['every'](_0x1a2885=>_0x305109['some'](_0x3718e5=>_0x3718e5['end']['isEqual'](_0x1a2885['start'])||_0x1a2885['end']['isEqual'](_0x3718e5['start'])));}function _0x32e648(_0xa8261b,_0x8919ea){return!_0xa8261b['some'](_0x106c42=>_0x8919ea['some'](_0x15114a=>_0x106c42['isIntersecting'](_0x15114a)))&&_0xa8261b['some'](_0x2b253d=>_0x8919ea['some'](_0x3cb6fb=>_0x2b253d['end']['isTouching'](_0x3cb6fb['start'])));}_0x40f7cc['descriptionFactory']['registerDescriptionCallback'](_0x54217c=>{if('insertion'!=_0x54217c['type']&&'deletion'!=_0x54217c['type'])return;const _0x3b938b=_0x54217c['getContainedElement']();if(null!=_0x3b938b&&_0x3b938b['is']('element','table')){if('insertion'==_0x54217c['type']){const _0x3efff6=_0x54217c['getItems']()['filter'](_0x10ba7f=>_0x10ba7f['is']('$textProxy'))['map'](_0x229369=>_0x229369['data']);if(_0x3efff6['length'])return{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3efff6['join']('\x20')+'\x22'))};}if('deletion'==_0x54217c['type']){const _0x12756a=_0x54217c['getItems']()['filter'](_0x189779=>_0x189779['is']('$textProxy'))['map'](_0x35688a=>_0x35688a['data']);if(_0x12756a['length'])return{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12756a['join']('\x20')+'\x22'))};}}}),_0x40f7cc['descriptionFactory']['registerDescriptionCallback'](_0x2bb3e6=>{if('tableRow'==_0x2bb3e6['subType']){const _0x18c0d8=_0x2bb3e6['getItems']()['filter'](_0xdad4c8=>_0xdad4c8['is']('$textProxy'))['map'](_0x2eb716=>_0x2eb716['data']),_0x1c599e=this['_getSuggestionCoords'](_0x2bb3e6),_0x17c3d2=_0x1c599e['maxRow']-_0x1c599e['minRow']+0x1;if('insertion'==_0x2bb3e6['type'])return _0x18c0d8['length']?{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17c3d2,'\x22'+_0x18c0d8['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_ROW',_0x17c3d2))};if('deletion'==_0x2bb3e6['type'])return _0x18c0d8['length']?{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17c3d2,'\x22'+_0x18c0d8['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_ROW',_0x17c3d2))};}if('tableColumn'==_0x2bb3e6['subType']){const _0x28807f=_0x2bb3e6['getItems']()['filter'](_0x19e70a=>_0x19e70a['is']('$textProxy'))['map'](_0xef3e32=>_0xef3e32['data']),_0x4a3525=this['_getSuggestionCoords'](_0x2bb3e6),_0x31adf9=_0x4a3525['maxColumn']-_0x4a3525['minColumn']+0x1;if('insertion'==_0x2bb3e6['type'])return _0x28807f['length']?{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31adf9,'\x22'+_0x28807f['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x4bd3cb,'*Insert:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_COLUMN',_0x31adf9))};if('deletion'==_0x2bb3e6['type'])return _0x28807f['length']?{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31adf9,'\x22'+_0x28807f['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x4bd3cb,'*Remove:*\x20%0',Tt(_0x4bd3cb,'ELEMENT_TABLE_COLUMN',_0x31adf9))};}}),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf89a11),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf89a11),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c0178),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c0178),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x987da8),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x987da8),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x32e648),_0x40f7cc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x32e648);}['_acceptFormatSuggestionCallbackFactory'](){const _0x162a28=this['editor'],_0x2803cb=_0x162a28['model']['document']['selection'];return(_0x25e292,_0x64b8b5)=>{_0x162a28['model']['change'](_0xde43ae=>{const {commandName:_0x5952ab,commandParams:_0xe6229c}=_0x64b8b5;let _0x916d74=_0x25e292[0x0]['end']['nodeBefore'];_0xe6229c&&_0xe6229c[0x0]&&!0x1===_0xe6229c[0x0]['forceValue']&&(_0x916d74=_0x25e292[0x0]['start']['nodeAfter']);const _0x49ab9f=_0xde43ae['createRangeIn'](_0x916d74);if('$graveyard'==_0x49ab9f['root']['rootName'])return;const _0x23bfbd=Array['from'](_0x2803cb['getRanges']())['map'](_0x1dd58d=>_0x4099e3['fromRange'](_0x1dd58d));_0xde43ae['setSelection'](_0x49ab9f),_0x162a28['commands']['get'](_0x5952ab)['refresh'](),_0xe6229c['push']({'forceDefaultExecution':!0x0}),_0x162a28['execute'](_0x5952ab,..._0xe6229c);const _0x2e5684=_0x23bfbd['filter'](_0x51044c=>'$graveyard'!=_0x51044c['root']['rootName']);_0x2e5684['length']>0x0&&_0xde43ae['setSelection'](_0x2e5684);for(const _0x5b5ad1 of _0x23bfbd)_0x5b5ad1['detach']();});};}['_getCoordsForCells'](_0x27c995){const _0x2a9d5d=this['editor']['plugins']['get']('TableUtils');let _0x4a6f95=Number['MAX_SAFE_INTEGER'],_0x3fb7dc=Number['MIN_SAFE_INTEGER'],_0x538018=Number['MAX_SAFE_INTEGER'],_0x5a5209=Number['MIN_SAFE_INTEGER'];for(const _0x4ef05d of _0x27c995){if('$graveyard'==_0x4ef05d['root']['rootName'])continue;const {row:_0x3735c6,column:_0x396a4f}=_0x2a9d5d['getCellLocation'](_0x4ef05d),_0x3673dd=_0x4ef05d['hasAttribute']('rowspan')?_0x4ef05d['getAttribute']('rowspan')-0x1:0x0,_0xcae53a=_0x4ef05d['hasAttribute']('colspan')?_0x4ef05d['getAttribute']('colspan')-0x1:0x0;_0x4a6f95=_0x3735c6<_0x4a6f95?_0x3735c6:_0x4a6f95,_0x3fb7dc=_0x3735c6+_0x3673dd>_0x3fb7dc?_0x3735c6+_0x3673dd:_0x3fb7dc,_0x538018=_0x396a4f<_0x538018?_0x396a4f:_0x538018,_0x5a5209=_0x396a4f+_0xcae53a>_0x5a5209?_0x396a4f+_0xcae53a:_0x5a5209;}return{'minRow':_0x4a6f95,'maxRow':_0x3fb7dc,'minColumn':_0x538018,'maxColumn':_0x5a5209};}['_setupColumnsRowsFixing'](){const _0x3e907e=this['editor'],_0x5235f2=_0x3e907e['plugins']['get']('TrackChangesEditing'),_0x152bac=_0x3e907e['plugins']['get']('TableUtils');_0x3e907e['model']['document']['on']('change:data',()=>{const _0x10e7c9=Array['from'](_0x3e907e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24f58e,data:_0x38f190}of _0x10e7c9){const {group:_0x334624,id:_0xbd89e,subType:_0x45694e}=_0x11d9f0(_0x24f58e);if('suggestion'!=_0x334624)continue;if(null!=_0x38f190['oldRange'])continue;const _0x2e1f97=_0x5235f2['getSuggestion'](_0xbd89e);this['_tablePostFixingSubtypes']['includes'](_0x45694e)&&this['_tableSuggestions']['add'](_0x2e1f97);}},{'priority':'low'});const _0x4553a8=(_0x2cf09c,_0x467eef)=>{let _0x387b9a=!0x1;const _0xf21470=_0x467eef['createRangeOn'](_0x2cf09c),_0x458ac4=_0x2cf09c['findAncestor']('table'),_0x51001d=_0x152bac['getCellLocation'](_0x2cf09c);for(const _0xdb2acb of this['_tableSuggestions']){const _0x1a1139=_0xdb2acb['subType'],_0x531565=_0x1a1139['startsWith']('tablePaste'),_0x3683b4=_0x1a1139['substr'](_0x531565?0xa:0x5),_0x4ac63e=_0x3683b4['toLowerCase'](),_0x4f6f91=_0x4ac63e['substr'](0x0,0x3)+'span',_0x36d6cc='min'+_0x3683b4,_0x270831='max'+_0x3683b4;if(!_0xdb2acb['isInContent'])continue;if(_0x458ac4!=_0xdb2acb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xdb2acb['isIntersectingWithRange'](_0xf21470))continue;const _0x5ce95d=_0x2cf09c['hasAttribute'](_0x4f6f91)?_0x2cf09c['getAttribute'](_0x4f6f91)-0x1:0x0,_0x2dc189=this['_getSuggestionCoords'](_0xdb2acb),_0x41b034=_0x2dc189[_0x36d6cc],_0xb49813=_0x2dc189[_0x270831];_0x41b034<=_0x51001d[_0x4ac63e]&&_0x51001d[_0x4ac63e]+_0x5ce95d<=_0xb49813&&(_0xdb2acb['addRange'](_0xf21470),_0x387b9a=!0x0);}return _0x387b9a;};_0x3e907e['model']['document']['registerPostFixer'](_0x54bb01=>{let _0x1860a7=!0x1;for(const _0x91bdb7 of _0x3e907e['model']['document']['differ']['getChanges']())if('insert'==_0x91bdb7['type']){if('tableRow'==_0x91bdb7['name']){for(const _0x10ab8b of _0x91bdb7['position']['nodeAfter']['getChildren']())_0x1860a7=_0x1860a7||_0x4553a8(_0x10ab8b,_0x54bb01);}else'tableCell'==_0x91bdb7['name']&&(_0x1860a7=_0x1860a7||_0x4553a8(_0x91bdb7['position']['nodeAfter'],_0x54bb01));}return _0x1860a7;});}['_getSuggestionCoords'](_0x52c72b){return this['_getCoordsForCells'](_0x52c72b['getRanges']()['map'](_0x381de6=>_0x381de6['start']['nodeAfter']));}}function Nt(_0x352cbc){return Array['from'](new Set(_0x352cbc)['values']());}class TrackChangesTableMergeSplit extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x45892b=this['editor'],_0x4e0293=_0x45892b['model']['document']['selection'],_0x1736a4=_0x45892b['locale'];if(!_0x45892b['plugins']['has']('TableEditing'))return;const _0x31ec14=_0x45892b['plugins']['get']('TrackChangesEditing'),_0x5e3794=_0x45892b['plugins']['get']('TableUtils'),_0x256414=_0x45892b['plugins']['get'](TrackChangesTable);_0x256414['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x31ec14['enableCommand']('mergeTableCells',()=>{const _0x39512c=_0x5e3794['getSelectionAffectedTableCells'](_0x45892b['model']['document']['selection']);_0x45892b['model']['change'](()=>{_0x31ec14['markMultiRangeBlockFormat'](_0x39512c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x45892b['commands']['get']('mergeTableCells')['on']('execute',(_0x25d87e,_0x153511)=>{_0x45892b['commands']['get']('trackChanges')['value']&&(_0x153511['length']>0x0&&_0x153511[_0x153511['length']-0x1]&&_0x153511[_0x153511['length']-0x1]['forceDefaultExecution']||_0x31ec14['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x25d87e['stop']());},{'priority':'highest'});for(const _0x3b11c7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3e178e=_0x45892b['commands']['get'](_0x3b11c7);_0x31ec14['enableCommand'](_0x3b11c7,()=>{const _0x52e981=_0x45892b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x282678=>_0x282678['is']('element','tableCell')),_0x2d61cd=_0x3e178e['value'];_0x45892b['model']['change'](()=>{_0x31ec14['markMultiRangeBlockFormat']([_0x52e981,_0x2d61cd],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x146d74 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f9892=_0x45892b['commands']['get'](_0x146d74);_0x31ec14['enableCommand'](_0x146d74,()=>{const _0x3710bf=_0x5e3794['getSelectionAffectedTableCells'](_0x45892b['model']['document']['selection'])[0x0],_0x4ec6b4=_0x3710bf['findAncestor']('table'),{column:_0x43fedd,row:_0x4ea184}=_0x5e3794['getCellLocation'](_0x3710bf);let _0x2ba996=[];if('horizontally'==_0x2f9892['direction']){const _0xb676ab=_0x5e3794['createTableWalker'](_0x4ec6b4,{'startRow':_0x4ea184,'endRow':_0x4ea184,'includeAllSlots':!0x0});_0x2ba996=Array['from'](_0xb676ab)['map'](_0x3cb5c5=>_0x3cb5c5['cell']);}else{const _0x177945=_0x5e3794['createTableWalker'](_0x4ec6b4,{'column':_0x43fedd,'includeAllSlots':!0x0});_0x2ba996=Array['from'](_0x177945)['map'](_0x1e2693=>_0x1e2693['cell']);}_0x45892b['model']['change'](_0xaeac=>{_0x31ec14['markBlockFormat'](_0xaeac['createRangeOn'](_0x3710bf),{'commandName':_0x146d74,'commandParams':[]},_0x2ba996,_0x146d74);});});}_0x31ec14['descriptionFactory']['registerDescriptionCallback'](_0x3096cd=>{if('formatBlock'!=_0x3096cd['type']&&'formatInline'!=_0x3096cd['type'])return;const {data:_0x11a9ec}=_0x3096cd;return _0x11a9ec&&'mergeTableCells'==_0x11a9ec['commandName']?{'type':'format','content':Tt(_0x1736a4,'*Merge\x20cells*')}:void 0x0;}),_0x31ec14['descriptionFactory']['registerDescriptionCallback'](_0x51d049=>{if('formatBlock'!=_0x51d049['type']&&'formatInline'!=_0x51d049['type'])return;const {data:_0x14c8f5}=_0x51d049;return _0x14c8f5?'splitTableCellVertically'==_0x14c8f5['commandName']?{'type':'format','content':Tt(_0x1736a4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14c8f5['commandName']?{'type':'format','content':Tt(_0x1736a4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x72121f=_0x256414['_acceptFormatSuggestionCallbackFactory']();for(const _0x31dcd1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x31ec14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31dcd1,'accept',_0x72121f);for(const _0x14ea7d of['splitTableCellVertically','splitTableCellHorizontally'])_0x31ec14['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14ea7d,'accept',_0x72121f);_0x31ec14['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x23ac93=>{_0x45892b['model']['change'](_0x42b2bc=>{const _0x110916=Array['from'](_0x4e0293['getRanges']())['map'](_0x489d07=>_0x4099e3['fromRange'](_0x489d07));_0x42b2bc['setSelection'](_0x23ac93),_0x45892b['commands']['get']('mergeTableCells')['refresh'](),_0x45892b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1d2cb3=_0x110916['filter'](_0x193400=>'$graveyard'!=_0x193400['root']['rootName']);_0x1d2cb3['length']>0x0&&_0x42b2bc['setSelection'](_0x1d2cb3);for(const _0x15973c of _0x110916)_0x15973c['detach']();});});for(const _0x423e85 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4f1945=_0x45892b['commands']['get'](_0x423e85);_0x4f1945['on']('set:isEnabled',(_0x4c05c8,_0x412270,_0x47a886)=>{if(_0x47a886){const _0xb4f67=_0x45892b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a475c=>_0x3a475c['is']('element','tableCell'));this['_areMergableCells'](_0x4f1945['value'],_0xb4f67)||(_0x4c05c8['return']=!0x1,_0x4c05c8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x289255=this['editor']['commands']['get']('mergeTableCells'),_0x436cbc=this['editor']['plugins']['get']('TableUtils');if(!_0x289255['isEnabled'])return!0x1;const _0x820d34=_0x436cbc['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x419d24 of _0x820d34)for(const _0x3cf54e of _0x820d34)if(_0x419d24!=_0x3cf54e&&!this['_areMergableCells'](_0x419d24,_0x3cf54e))return!0x1;return!0x0;}['_areMergableCells'](_0xefc67d,_0x5e6350){const _0x51ea6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e803=this['editor']['model']['createRangeOn'](_0xefc67d),_0x1ba39e=this['editor']['model']['createRangeOn'](_0x5e6350),_0x210fbf=new Set(),_0x29717b=new Set();for(const _0x12d48b of _0x51ea6a['getSuggestions']())if(('insertion'==_0x12d48b['type']||'deletion'==_0x12d48b['type']||'mergeTableCells'==_0x12d48b['subType'])&&_0x12d48b['isInContent']){for(const _0x4a9d40 of _0x12d48b['getRanges']())_0x4a9d40['containsRange'](_0x49e803,!0x0)&&_0x210fbf['add'](_0x12d48b['type']+':'+_0x12d48b['author']['id']),_0x4a9d40['containsRange'](_0x1ba39e,!0x0)&&_0x29717b['add'](_0x12d48b['type']+':'+_0x12d48b['author']['id']);}if(_0x210fbf['size']!=_0x29717b['size'])return!0x1;for(const _0x1ea144 of _0x210fbf)if(!_0x29717b['has'](_0x1ea144))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x130049=this['editor'];if(!_0x130049['plugins']['has']('TableEditing'))return;const _0x14dd42=_0x130049['locale'],_0x48cdb1=_0x130049['plugins']['get']('TrackChangesEditing');_0x48cdb1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x48cdb1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x48cdb1['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x14dd42,'FORMAT_HEADER_ROW')),_0x48cdb1['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x14dd42,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4c1242=this['editor']['plugins']['get']('TrackChangesEditing'),_0x208744=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x4c1242['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x208744),_0x4c1242['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x208744),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x390a5d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26cc69=this['editor']['plugins']['get']('TableUtils');function _0xaa94c5({showActiveMarker:_0x2c000b=!0x0,setDataAttribute:_0x5a9c2e=!0x0}={}){return(_0x2ddcdc,_0x50ef30,_0x366adc)=>{const {type:_0x2f60d2,id:_0x31690c}=_0x11d9f0(_0x50ef30['markerName']);if(!_0x390a5d['hasSuggestion'](_0x31690c))return;const _0x53cf3a=_0x390a5d['getSuggestion'](_0x31690c),_0x5e7cc6=_0x53cf3a['data'];if('formatBlock'!=_0x53cf3a['type']||!_0x5e7cc6||'setTableColumnHeader'!=_0x5e7cc6['commandName'])return;if(_0x50ef30['item'])return void _0x2ddcdc['stop']();if(!_0x366adc['consumable']['consume'](_0x50ef30['markerRange'],_0x2ddcdc['name']))return;const _0x2c59a2=_0x50ef30['markerRange']['start']['nodeAfter'],_0x1ef3bd=_0x50ef30['markerRange']['end']['nodeBefore'],_0x855fb3=_0x2c59a2['parent']['parent'],{column:_0x5c9896}=_0x26cc69['getCellLocation'](_0x2c59a2),{column:_0x3c2760}=_0x26cc69['getCellLocation'](_0x1ef3bd);for(let _0x242df9=_0x5c9896;_0x242df9<=_0x3c2760;_0x242df9++){const _0x59160a=_0x26cc69['createTableWalker'](_0x855fb3,{'column':_0x242df9,'includeAllSlots':!0x1});for(const _0x3819de of _0x59160a){const _0x18670c=_0x3819de['cell'],_0x5add0a=_0x366adc['mapper']['toViewElement'](_0x18670c);_0x366adc['writer']['addClass']('ck-suggestion-marker-'+_0x2f60d2,_0x5add0a),_0x5a9c2e&&_0x366adc['writer']['setAttribute']('data-suggestion',_0x31690c,_0x5add0a),_0x366adc['mapper']['bindElementToMarker'](_0x5add0a,_0x50ef30['markerName']),_0x2c000b&&(_0x390a5d['activeMarkers']['includes'](_0x50ef30['markerName'])?_0x366adc['writer']['addClass']('ck-suggestion-marker--active',_0x5add0a):_0x366adc['writer']['removeClass']('ck-suggestion-marker--active',_0x5add0a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xaa94c5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x423c8f,_0x44a3ef,_0x49b125)=>{_0x49b125['options']['showSuggestionHighlights']&&_0xaa94c5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x423c8f,_0x44a3ef,_0x49b125);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x54aa78,_0x38394e,_0x5df0be)=>{const {type:_0x5acec5,id:_0x25a795}=_0x11d9f0(_0x38394e['markerName']);if(!_0x390a5d['hasSuggestion'](_0x25a795))return;const _0x41779e=_0x390a5d['getSuggestion'](_0x25a795),_0x4ab6f3=_0x41779e['data'];if('formatBlock'!=_0x41779e['type']||!_0x4ab6f3||'setTableColumnHeader'!=_0x4ab6f3['commandName'])return;const _0x3af0b6=_0x5df0be['mapper']['markerNameToElements'](_0x38394e['markerName']);if(_0x3af0b6){for(const _0x2e2020 of _0x3af0b6)_0x5df0be['writer']['removeClass']('ck-suggestion-marker-'+_0x5acec5,_0x2e2020),_0x5df0be['writer']['removeClass']('ck-suggestion-marker--active',_0x2e2020),_0x5df0be['writer']['removeAttribute']('data-suggestion',_0x2e2020),_0x5df0be['mapper']['unbindElementFromMarkerName'](_0x2e2020,_0x38394e['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5d615f=this['editor'],_0x3bdace=_0x5d615f['locale'];function _0x2982cd(_0x27fde9){return{'type':'format','content':Tt(_0x3bdace,'*Format:*\x20%0',_0x27fde9)};}_0x5d615f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16d3a3=>{if('formatBlock'!=_0x16d3a3['type'])return;const {data:_0x92084f}=_0x16d3a3;if(_0x92084f){if('setTableRowHeader'==_0x92084f['commandName']){const _0x33e0da=_0x92084f['commandParams'][0x0]['forceValue'];return _0x2982cd(Tt(_0x3bdace,_0x33e0da?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x92084f['commandName']){const _0x4e7ebe=_0x92084f['commandParams'][0x0]['forceValue'];return _0x2982cd(Tt(_0x3bdace,_0x4e7ebe?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x65aa94=this['editor'];if(!_0x65aa94['plugins']['has']('TableEditing')||!_0x65aa94['config']['get']('table.enableFooters'))return;const _0x37189c=_0x65aa94['locale'],_0x1ee498=_0x65aa94['plugins']['get']('TrackChangesEditing');_0x1ee498['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1ee498['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x37189c,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x1b042a{['afterInit'](){const _0x2a1867=this['editor'],_0x5c9e32=_0x2a1867['locale'],_0x379f31=_0x2a1867['plugins']['get']('TrackChangesEditing');function _0x54a1e9(_0x1c3a0a){return{'type':'format','content':''+Tt(_0x5c9e32,'*Set\x20table\x20type:*\x20%0',_0x1c3a0a)};}_0x2a1867['plugins']['has']('TableLayout')&&(_0x379f31['enableCommand']('insertTableLayout'),_0x379f31['enableDefaultAttributesIntegration']('tableType'),_0x379f31['descriptionFactory']['registerElementLabel'](_0x3e4ff7=>_0x3e4ff7['is']('element','table')&&'layout'===_0x3e4ff7['getAttribute']('tableType'),_0x196271=>Tt(_0x5c9e32,'ELEMENT_LAYOUT_TABLE',_0x196271)),_0x379f31['descriptionFactory']['registerDescriptionCallback'](_0x1fc674=>{const {data:_0x1ce262}=_0x1fc674;if(_0x1ce262&&'tableType'==_0x1ce262['key'])switch(_0x1ce262['newValue']){case'layout':return _0x54a1e9(Tt(_0x5c9e32,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x54a1e9(Tt(_0x5c9e32,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Mt['map'](_0x1f105c=>[_0x1f105c,null]));class TrackChangesTableClipboard extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x29da81=this['editor'];if(!_0x29da81['plugins']['has']('TableClipboard'))return;const _0x396fac=_0x29da81['plugins']['get']('TrackChangesEditing'),_0xd5d9a5=_0x29da81['plugins']['get']('TableUtils'),_0xcfa4e9=_0x29da81['plugins']['get'](TrackChangesTable),_0x3a499c=_0x29da81['plugins']['get']('TableClipboard'),_0x2bfdf4=_0x29da81['plugins']['get']('TableSelection'),_0x3027df=_0x29da81['plugins']['get'](ut);_0xcfa4e9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x29da81['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x29da81['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x103947=null,_0xb7de97=!0x1;_0x3027df['on']('contentInsertion',(_0x58ec65,_0x40ec95)=>{_0xb7de97='paste'===_0x40ec95['method'];}),_0x29da81['model']['on']('insertContent',(_0x1e16b9,_0x21df69)=>{if(!_0xb7de97&&null===_0x2bfdf4['getSelectedTableCells']())return;const [_0x566f0c,_0x2423b9]=_0x21df69,_0x555a3e=_0x21df69[_0x21df69['length']-0x1];_0x555a3e&&_0x555a3e['forceDefaultExecution']||_0x396fac['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x475d04,_0x4fe03f,_0x2485e6,_0x44215e,_0x388038){if(_0x4fe03f&&!_0x4fe03f['is']('documentSelection'))return!0x1;const _0x18bd91=_0x388038['getTableIfOnlyTableInContent'](_0x475d04,_0x2485e6);if(!_0x18bd91||!Bt(_0x18bd91,void 0x0,_0x44215e))return!0x1;const _0x5f6899=_0x44215e['getSelectionAffectedTableCells'](_0x2485e6['document']['selection']);if(!_0x5f6899['length'])return!0x1;const _0x1571c3=_0x5f6899[0x0]['findAncestor']('table'),_0x5ba463=_0x44215e['getRowIndexes'](_0x5f6899),_0xa04f53=_0x44215e['getColumnIndexes'](_0x5f6899),_0x324e59={'startRow':_0x5ba463['first'],'endRow':_0x5ba463['last'],'startColumn':_0xa04f53['first'],'endColumn':_0xa04f53['last']};return 0x1==_0x5f6899['length']&&(_0x324e59['endRow']+=_0x44215e['getRows'](_0x18bd91)-0x1,_0x324e59['endColumn']+=_0x44215e['getColumns'](_0x18bd91)-0x1),Bt(_0x1571c3,_0x324e59,_0x44215e);}(_0x566f0c,_0x2423b9,_0x29da81['model'],_0xd5d9a5,_0x3a499c)&&(_0x1e16b9['stop'](),_0x103947={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x29da81['model']['change'](()=>{_0x29da81['model']['insertContent'](_0x21df69[0x0],_0x21df69[0x1],_0x21df69[0x2],{'forceDefaultExecution':!0x0});const _0x46cbd1=_0x2375fd(),{rowInsertionRanges:_0x24ff2f,columnInsertionRanges:_0x6fa9e7,insertionRanges:_0x373fbc,deletionRanges:_0x172b76,cells:_0x14767e}=_0x103947;_0x24ff2f['length']&&_0x396fac['markMultiRangeInsertion'](_0x24ff2f,'tablePasteRow',{'tablePasteChainId':_0x46cbd1}),_0x6fa9e7['length']&&_0x396fac['markMultiRangeInsertion'](_0x6fa9e7,'tablePasteColumn',{'tablePasteChainId':_0x46cbd1}),_0x373fbc['length']&&(_0x396fac['markMultiRangeInsertion'](_0x373fbc,'tablePaste',{'tablePasteChainId':_0x46cbd1,'skipNestingCheck':!0x0}),_0x373fbc['forEach'](_0xdcf317=>_0xdcf317['detach']?.())),_0x172b76['length']&&(_0x396fac['markMultiRangeDeletion'](_0x172b76,'tablePaste',{'tablePasteChainId':_0x46cbd1,'skipNestingCheck':!0x0}),_0x172b76['forEach'](_0x2a28f9=>_0x2a28f9['detach']?.()));const _0x2af521=_0x396fac['markMultiRangeBlockFormat'](_0x14767e['map'](({element:_0x2af2de})=>_0x2af2de),{'formatGroupId':_0x2375fd()},[],'tablePasteCell',{'tablePasteChainId':_0x46cbd1});if(_0x2af521){const _0x3c6907=_0x2af521['getMarkers'](),_0x50c398=[];for(const {element:_0x509e49,attributes:_0xc2f5ff}of _0x14767e){if(!_0xc2f5ff)continue;const _0x3ac1ab=_0x29da81['model']['createRangeOn'](_0x509e49),_0x43ba51=_0x3c6907['find'](_0x2d0d4d=>_0x2d0d4d['getRange']()['isEqual'](_0x3ac1ab));_0x43ba51&&_0x50c398['push']([_0x43ba51['name'],_0xc2f5ff]);}_0x50c398['length']&&_0x2af521['setAttribute']('markerAttributes',Object['fromEntries'](_0x50c398));}_0x103947=null;}));},{'priority':_0x196bca['high']+0xa}),_0x3027df['on']('contentInsertion',()=>{_0xb7de97=!0x1;},{'priority':'lowest'}),_0x29da81['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x46b9c6,_0x3dba1b)=>{const [_0xe31141,_0x29d91c,,_0xef841b]=_0x3dba1b;if(!_0x103947)return;_0x46b9c6['stop']();const _0x12655c=_0xe31141['cell'],_0xd5eb75=_0x29d91c,_0xed7171=wt(_0x12655c),_0x4ee551=wt(_0xd5eb75);_0x46b9c6['return']=_0x12655c;let _0x4c2ae5=null,_0x35868c=null;if(_0x4ee551||_0xed7171){if(_0xed7171&&!_0x4ee551){_0xef841b['remove'](_0x12655c['getChild'](0x0));for(const _0xe95453 of Array['from'](_0xd5eb75['getChildren']()))_0xef841b['insert'](_0xe95453,_0x12655c,'end');const _0x224ffe=_0x103947['rowInsertionIndexes']['includes'](_0xe31141['row']),_0x423ae3=_0x103947['columnInsertionIndexes']['includes'](_0xe31141['column']);_0x224ffe||_0x423ae3||(_0x4c2ae5=_0x4099e3['fromRange'](_0xef841b['createRangeIn'](_0x12655c)));}else _0x4ee551&&!_0xed7171&&(_0x35868c=_0xef841b['createRangeIn'](_0x12655c));}else{const _0x1fec05=_0xef841b['createElement']('tableCellSuggestion'),_0x386a8a=_0xef841b['createElement']('tableCellSuggestion');_0xef841b['wrap'](_0xef841b['createRangeIn'](_0x12655c),_0x386a8a),_0xef841b['insert'](_0x1fec05,_0x12655c,0x0);for(const _0x587a14 of Array['from'](_0xd5eb75['getChildren']()))_0xef841b['insert'](_0x587a14,_0x1fec05,'end');_0x4c2ae5=_0x4099e3['fromRange'](_0xef841b['createRangeOn'](_0x1fec05)),_0x35868c=_0x4099e3['fromRange'](_0xef841b['createRangeOn'](_0x386a8a));}const _0x409643=Array['from'](_0xd5eb75['getAttributes']())['filter'](([_0x389bd6])=>Mt['includes'](_0x389bd6));_0x103947['cells']['push']({'element':_0x12655c,'attributes':_0x409643['length']?Object['fromEntries'](_0x409643):null}),_0x4c2ae5&&_0x103947['insertionRanges']['push'](_0x4c2ae5),_0x35868c&&_0x103947['deletionRanges']['push'](_0x35868c);},{'priority':'high'}),_0xd5d9a5['on']('insertColumns',(_0x19fe60,_0x53b30d)=>{const [_0x114668,_0x5db119={}]=_0x53b30d;if(!_0x103947)return;const _0x2fbda2=_0x5db119['at']||0x0,_0x60a342=_0x5db119['columns']||0x1;_0x103947['columnInsertionIndexes']=new Array(_0x60a342)['fill'](_0x2fbda2)['map']((_0x2f339e,_0x3b5fd8)=>_0x2f339e+_0x3b5fd8);for(const {cell:_0x401092}of _0xd5d9a5['createTableWalker'](_0x114668,{'startColumn':_0x2fbda2,'endColumn':_0x2fbda2+_0x60a342-0x1}))_0x103947['columnInsertionRanges']['push'](_0x29da81['model']['createRangeOn'](_0x401092));},{'priority':'low'}),_0xd5d9a5['on']('insertRows',(_0x3658ef,_0x59b156)=>{const [_0x237297,_0x1733db={}]=_0x59b156;if(!_0x103947)return;const _0x2b7371=_0x1733db['at']||0x0,_0x260def=_0x1733db['rows']||0x1;_0x103947['rowInsertionIndexes']=new Array(_0x260def)['fill'](_0x2b7371)['map']((_0x21279c,_0x18755e)=>_0x21279c+_0x18755e);for(const {cell:_0x1b15d7}of _0xd5d9a5['createTableWalker'](_0x237297,{'startRow':_0x2b7371,'endRow':_0x2b7371+_0x260def-0x1}))_0x103947['rowInsertionRanges']['push'](_0x29da81['model']['createRangeOn'](_0x1b15d7));},{'priority':'low'}),_0x396fac['descriptionFactory']['registerDescriptionCallback'](_0x3fef22=>{if(_0x3fef22['subType']&&_0x3fef22['subType']['startsWith']('tablePaste'))return _0x3fef22['previous']?{}:{'type':'insertion','content':Tt(_0x29da81['locale'],'*Replace\x20table\x20cells*')};});const _0x45e7b7=()=>!0x1;for(const _0x41d2b1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x396fac['_suggestionFactory']['registerCustomCallback']('insertion',_0x41d2b1,'join',_0x45e7b7),_0x396fac['_suggestionFactory']['registerCustomCallback']('deletion',_0x41d2b1,'join',_0x45e7b7),_0x396fac['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41d2b1,'join',_0x45e7b7);_0x396fac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x45e7b7),_0x396fac['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x456b8c,_0x426ef6,_0x115c6c)=>{const _0x1cf1e8=_0x456b8c['map'](_0x379b92=>_0x379b92['getContainedElement']())['filter'](_0x5cacf6=>_0x5cacf6),_0x5401b7=new Map(_0x1cf1e8['map'](_0x3ed0c7=>[_0x3ed0c7,null]));if(_0x103947){for(const {element:_0x4f735b,attributes:_0x322d60}of _0x103947['cells'])_0x322d60&&_0x5401b7['set'](_0x4f735b,_0x322d60);}else{if(_0x115c6c&&_0x115c6c['markerAttributes'])for(const [_0x46c8f9,_0x25f6ee]of Object['entries'](_0x115c6c['markerAttributes'])){const _0x2b943a=_0x29da81['model']['markers']['get'](_0x46c8f9),_0x525374=_0x2b943a?_0x2b943a['getRange']()['getContainedElement']():null;_0x525374&&_0x5401b7['set'](_0x525374,_0x25f6ee);}}_0x29da81['model']['change'](_0x1ad13c=>{for(const [_0x3c0407,_0x10e24d]of _0x5401b7)_0x1ad13c['setAttributes']({...Ot,..._0x10e24d},_0x3c0407);});});const _0x31b4dc=(_0x48e9eb,_0x3c3fa1)=>{_0x396fac['_suggestionFactory']['registerCustomCallback'](_0x48e9eb,'tablePaste',_0x3c3fa1,(_0x3c5028,_0x30b8ca,_0x36c1e7)=>{_0x29da81['model']['change'](_0x55490c=>{const _0x2a1eb8=[];for(const _0x6d0b19 of _0x3c5028){const _0x344035=_0x6d0b19['start']['nodeAfter'];_0x344035['is']('element','tableCellSuggestion')&&_0x2a1eb8['push'](_0x344035);}_0x396fac['_suggestionFactory']['getSuggestionCallback'](_0x48e9eb,null,_0x3c3fa1)(_0x3c5028,_0x30b8ca,_0x36c1e7);for(const _0x129b37 of _0x2a1eb8)'$graveyard'!=_0x129b37['root']['rootName']&&_0x55490c['unwrap'](_0x129b37);});});};_0x31b4dc('insertion','accept'),_0x31b4dc('insertion','discard'),_0x31b4dc('deletion','accept'),_0x31b4dc('deletion','discard'),_0x396fac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4eb5e6=>{const _0x5ba511=_0x4eb5e6['map'](_0x2fcdf8=>_0x2fcdf8['getContainedElement']()),_0x5d8ee7=_0x5ba511[0x0]['findAncestor']('table'),{minRow:_0x2f6948,maxRow:_0x13980b}=_0xcfa4e9['_getCoordsForCells'](_0x5ba511);_0xd5d9a5['removeRows'](_0x5d8ee7,{'at':_0x2f6948,'rows':_0x13980b-_0x2f6948+0x1});}),_0x396fac['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x14ec70=>{const _0x2f0ed0=_0x14ec70['map'](_0x59ed68=>_0x59ed68['getContainedElement']()),_0x173494=_0x2f0ed0[0x0]['findAncestor']('table'),{minColumn:_0x3817b8,maxColumn:_0x1ed605}=_0xcfa4e9['_getCoordsForCells'](_0x2f0ed0);_0xd5d9a5['removeColumns'](_0x173494,{'at':_0x3817b8,'columns':_0x1ed605-_0x3817b8+0x1});});const _0xb3f952=(_0x22c62a,_0xe05ff)=>{if(!_0xe05ff['subType']||!_0xe05ff['subType']['startsWith']('tablePaste'))return;const _0x38448b=_0xe05ff['attributes']['tablePasteChainId'],_0x177f85=_0x396fac['getSuggestions']()['filter'](_0x10ea66=>_0x10ea66['isInContent']&&_0x10ea66['attributes']&&_0x10ea66['attributes']['tablePasteChainId']==_0x38448b);_0x177f85['length']&&_0xe05ff['getAllAdjacentSuggestions']()['length']!=_0x177f85['length']&&_0x177f85['reduce']((_0x11b30b,_0x25a056)=>(_0x11b30b['next']=_0x25a056,_0x25a056['previous']=_0x11b30b,_0x25a056));};function _0x56677d(_0x14f9c5,_0x1f2058=!0x0){const {id:_0x3708fb,authorId:_0x16c248}=_0x11d9f0(_0x14f9c5['markerName']),_0x3651a0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f1d50=_0x396fac['activeMarkers']['includes'](_0x14f9c5['markerName']);return _0x5f1d50&&_0x3651a0['push']('ck-suggestion-marker--active'),{'classes':_0x3651a0,'attributes':{'data-suggestion':_0x3708fb,'data-author-id':_0x16c248},'priority':_0x5f1d50&&_0x1f2058?0xbc2:0xbb8};}_0x396fac['on']('suggestionLoaded',_0xb3f952,{'priority':'high'}),_0x396fac['on']('suggestionUnloaded',_0xb3f952,{'priority':'high'}),_0x29da81['model']['document']['registerPostFixer'](()=>{let _0x3f60d6=!0x1;const _0x21bba7=Array['from'](_0x29da81['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1364c8,data:_0x185fe3}of _0x21bba7){const {group:_0x286190,type:_0x139a45,id:_0x1c9cb6}=_0x11d9f0(_0x1364c8);if('suggestion'!=_0x286190||'deletion'!=_0x139a45||_0x185fe3['oldRange'])continue;if(!_0x396fac['hasSuggestion'](_0x1c9cb6))continue;const _0x202c95=_0x396fac['getSuggestion'](_0x1c9cb6)['getRanges'](),_0x54487b=_0x29da81['plugins']['get']('Users')['me'];for(const _0x925eb9 of _0x396fac['getSuggestions']()){if(!_0x925eb9['isInContent']||_0x925eb9['author']!=_0x54487b)continue;if('formatBlock'!=_0x925eb9['type']||'tablePasteCell'!=_0x925eb9['subType'])continue;if(_0x925eb9['getRanges']()['every'](_0x41fa3d=>_0x202c95['some'](_0x40adf1=>_0x40adf1['containsRange'](_0x41fa3d,!0x0)))){for(const _0x26037d of _0x925eb9['getAllAdjacentSuggestions']())_0x26037d['isInContent']&&(_0x26037d['discard'](),_0x3f60d6=!0x0);}}}return _0x3f60d6;}),_0x29da81['model']['document']['registerPostFixer'](_0x5db2b1=>{const _0x5275b4=_0x29da81['commands']['get']('redo');if(!_0x5275b4||!_0x5275b4['_createdBatches']['has'](_0x5db2b1['batch']))return!0x1;let _0x3bc172=!0x1;const _0x34402a=_0x29da81['plugins']['get']('Users')['me'],_0xd91128=_0x29da81['model']['document']['differ']['getChanges'](),_0x30bc7d=Array['from'](_0x29da81['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3c1ee2,data:_0x4c092d})=>{const {group:_0x1163b9,subType:_0x2ff7fc,authorId:_0x33c920}=_0x11d9f0(_0x3c1ee2);return'suggestion'==_0x1163b9&&'tablePaste'==_0x2ff7fc&&_0x33c920==_0x34402a['id']&&!_0x4c092d['oldRange'];});for(const _0x310389 of _0xd91128){if('insert'!=_0x310389['type']||'tableCellSuggestion'!=_0x310389['name']||0x1!=_0x310389['length'])continue;const _0x27535b=_0x5db2b1['createRange'](_0x310389['position'],_0x310389['position']['getShiftedBy'](0x1));if(!_0x30bc7d['find'](({data:_0x5d00d9})=>_0x5d00d9['newRange']['isEqual'](_0x27535b))){for(const {name:_0x54b567,data:_0x352cfd}of _0x30bc7d)if(_0x27535b['containsRange'](_0x352cfd['newRange'])){_0x5db2b1['updateMarker'](_0x54b567,{'range':_0x27535b}),_0x3bc172=!0x0;break;}}}return _0x3bc172;}),_0x29da81['model']['document']['registerPostFixer'](_0x41dab6=>{let _0x54f580=!0x1;const _0x342ef8=_0x29da81['plugins']['get']('Users')['me'],_0x577246=_0x396fac['getSuggestions']()['filter'](_0x220e86=>_0x220e86['isInContent']&&_0x220e86['author']==_0x342ef8),_0x34baa9=new Set(),_0x3f593e=new Set();for(const _0x235c20 of _0x577246)if('tablePaste'==_0x235c20['subType'])for(const _0x3bb436 of _0x235c20['getMarkers']()){const _0x44df04=_0x3bb436['getRange']()['getContainedElement']();if(_0x44df04){if(_0x44df04['is']('element','tableCellSuggestion')&&wt(_0x44df04)){_0x235c20['removeMarker'](_0x3bb436['name']),_0x34baa9['add'](_0x44df04),_0x54f580=!0x0;const _0x9a74c5=_0x44df04['nextSibling'],_0x4e2933=_0x44df04['previousSibling'],_0x51da84=_0x9a74c5&&_0x9a74c5['is']('element','tableCellSuggestion'),_0x24fe52=_0x4e2933&&_0x4e2933['is']('element','tableCellSuggestion');_0x51da84&&!_0x34baa9['has'](_0x9a74c5)&&_0x3f593e['add'](_0x9a74c5),_0x24fe52&&!_0x34baa9['has'](_0x4e2933)&&_0x3f593e['add'](_0x4e2933);}else _0x44df04['is']('element','paragraph')&&_0x44df04['isEmpty']&&(_0x235c20['removeMarker'](_0x3bb436['name']),_0x54f580=!0x0);}}else{if('tablePasteCell'==_0x235c20['subType']){if(!_0x235c20['attributes']||!_0x235c20['attributes']['tablePasteChainId'])continue;const _0x2f7a01=_0x235c20['attributes']['markerAttributes'];if(_0x2f7a01&&Object['keys'](_0x2f7a01)['length'])continue;const _0x14d758=_0x235c20['attributes']['tablePasteChainId'];let _0x39fcdd=!0x0,_0x28230e=!0x0;for(const _0x3256ca of _0x577246)if(_0x3256ca['subType']&&_0x3256ca['subType']['startsWith']('tablePaste')){if(!_0x3256ca['attributes']['tablePasteChainId']){_0x28230e=!0x1;break;}if(_0x3256ca['id']!=_0x235c20['id']&&_0x3256ca['attributes']['tablePasteChainId']==_0x14d758){_0x39fcdd=!0x1;break;}}_0x28230e&&_0x39fcdd&&(_0x235c20['removeMarkers'](),_0x54f580=!0x0);}}for(const _0x168e88 of _0x34baa9)_0x41dab6['remove'](_0x168e88);for(const _0x338148 of _0x3f593e)_0x41dab6['unwrap'](_0x338148);return _0x54f580;}),_0x29da81['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x579a81=>_0x56677d(_0x579a81),'converterPriority':'high'}),_0x29da81['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x459cab,_0x35db53)=>_0x35db53['options']['showSuggestionHighlights']?_0x56677d(_0x459cab,!0x1):null,'converterPriority':'high'});const _0x201f31=_0x29da81['editing']['view'];this['listenTo'](_0x201f31['document'],'clipboardOutput',(_0x5d40e7,_0x285bdf)=>{const _0x4dd20f=[];for(const _0x1078a8 of _0x201f31['createRangeIn'](_0x285bdf['content'])['getItems']())_0x1078a8['is']('element','suggestion-td')&&_0x4dd20f['push'](_0x1078a8);_0x201f31['change'](_0x412f84=>{for(const _0x34b648 of _0x4dd20f)_0x412f84['move'](_0x412f84['createRangeIn'](_0x34b648),_0x412f84['createPositionBefore'](_0x34b648)),_0x412f84['remove'](_0x34b648);});});}}function wt(_0x1e607a){if(_0x1e607a['isEmpty'])return!0x0;const _0x45e523=_0x1e607a['getChild'](0x0);return _0x45e523['is']('element','paragraph')&&_0x45e523['isEmpty'];}function Bt(_0xb2e30,_0x35e1a9={},_0x4d6869){for(const {isAnchor:_0x2ea261,cellHeight:_0x1dcfb8,cellWidth:_0x393a32}of _0x4d6869['createTableWalker'](_0xb2e30,{'includeAllSlots':!0x0,..._0x35e1a9}))if(!_0x2ea261||0x1!=_0x1dcfb8||0x1!=_0x393a32)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x1b042a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a72df=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a72df['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a72df['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a72df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a72df['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a72df['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a72df['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x12816c,_0x3a2ff1){const _0x5e7e93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f7f75=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3ea94a=_0x3a2ff1['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xdcc690=_0x1f7f75['getColumnGroupElement'](_0x3ea94a);let _0x2acc75=_0xdcc690?_0x1f7f75['getTableColumnsWidths'](_0xdcc690):null,_0x2056dc=_0x3ea94a['getAttribute']('tableWidth')||null;const _0x568e95=_0x3a2ff1['tableWidth']||_0x2056dc,_0x6e4799=_0x3a2ff1['columnWidths']||_0x2acc75,_0x14fe4f=this['editor']['plugins']['get']('Users')['me'];for(const _0x1facd3 of _0x5e7e93['getSuggestions']()){const _0xa88725=_0x1facd3['getContainedElement']();if('resizeTable'===_0x1facd3['subType']&&_0xa88725===_0x3ea94a){_0x1facd3['author']!==_0x14fe4f&&_0x1facd3['discard']();const _0x52bc86=_0x1facd3['data']['commandParams'];_0x2056dc=_0x52bc86[0x0]['tableWidth'],_0x2acc75=_0x52bc86[0x0]['columnWidths'];break;}}_0x12816c({'table':_0x3ea94a,'tableWidth':_0x568e95,'columnWidths':_0x6e4799}),_0x5e7e93['markBlockFormat'](_0x3ea94a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2056dc,'columnWidths':_0x2acc75}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x489527){if('formatBlock'!=_0x489527['type']&&'formatInline'!=_0x489527['type'])return;const {data:_0x4cfbd9}=_0x489527;if(_0x4cfbd9&&'resizeTable'===_0x4cfbd9['formatGroupId']){const _0x2bc323='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x2bc323)};}}}class TrackChangesTemplate extends _0x1b042a{['afterInit'](){const _0x3ff08c=this['editor'];_0x3ff08c['plugins']['has']('Template')&&_0x3ff08c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x1b042a{['afterInit'](){const _0x5a164c=this['editor'];if(!_0x5a164c['commands']['get']('insertTableOfContents'))return;_0x5a164c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x47dc59=_0x5a164c['plugins']['get']('TrackChangesEditing'),_0x437388=_0x5a164c['locale'];_0x47dc59['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3cdb83=>Tt(_0x437388,'ELEMENT_TABLE_OF_CONTENTS',_0x3cdb83));}}class TrackChangesTitle extends _0x1b042a{['afterInit'](){const _0x38b0b7=this['editor'];if(!_0x38b0b7['plugins']['has']('Title'))return;_0x38b0b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x38b0b7['locale'],'ELEMENT_TITLE')),_0x38b0b7['model']['document']['registerPostFixer'](_0x4e85cb=>{let _0x49ff05=!0x1;const _0x30baba=Array['from'](_0x38b0b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa3e6cd,data:_0xd021b2}of _0x30baba){const {group:_0x4be129}=_0x11d9f0(_0xa3e6cd);if('suggestion'!==_0x4be129||!_0xd021b2['newRange'])continue;const _0xb17fe9=_0xd021b2['newRange'],_0xd22517=_0xb17fe9['end']['nodeBefore'];if(!_0xd22517||!_0xd22517['is']('element','title-content'))continue;if(!_0xb17fe9['start']['isTouching'](_0xb17fe9['end']))continue;const _0x1073ef=_0x38b0b7['model']['schema']['getNearestSelectionRange'](_0xb17fe9['end'],'forward');if(_0x1073ef&&_0x1073ef['isCollapsed']){const _0x1c7b11=_0x4e85cb['createRange'](_0xb17fe9['start'],_0x1073ef['start']);_0x1c7b11['isEqual'](_0xb17fe9)||(_0x4e85cb['updateMarker'](_0xa3e6cd,{'range':_0x1c7b11}),_0x49ff05=!0x0);}_0x49ff05||(_0x4e85cb['removeMarker'](_0xa3e6cd),_0x49ff05=!0x0);}return _0x49ff05;});}}class TrackChangesUploadcare extends _0x1b042a{['afterInit'](){const _0x3e7223=this['editor'],_0x54bee4=_0x3e7223['plugins']['get']('TrackChangesEditing');_0x3e7223['plugins']['has']('Uploadcare')&&(_0x54bee4['enableCommand']('uploadcare'),_0x3e7223['plugins']['has']('UploadcareImageEdit')&&(_0x54bee4['enableCommand']('uploadcareImageEdit'),_0x54bee4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x54bee4['descriptionFactory']['registerDescriptionCallback'](_0x455add=>{if('attribute'!=_0x455add['type'])return;const {data:_0x927bcc}=_0x455add;return _0x927bcc&&'uploadcareImageId'==_0x927bcc['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x1b042a{['afterInit'](){const _0x366795=this['editor'],_0x5ffe1f=_0x366795['plugins']['get']('TrackChangesEditing');_0x366795['plugins']['has']('UndoEditing')&&(_0x5ffe1f['enableCommand']('undo'),_0x5ffe1f['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x1b042a{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x2514c2=this['editor'];if(!_0x2514c2['plugins']['has']('TableCaptionEditing'))return;_0x2514c2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x1b042a{['tableProperties'];['tableCellProperties'];constructor(_0x338f60){super(_0x338f60),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x183389=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x51e702 of this['tableProperties'])_0x183389['enableCommand'](_0x51e702,(_0x3d1810,_0xd53aab)=>{const _0x24ff38=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x51e702,[_0x24ff38],this['tableProperties'],'tableProperties',_0x3d1810,_0xd53aab);});_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x183389['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x52c6ae,_0x15decf)=>this['handleDiscardAction'](this['tableProperties'],_0x52c6ae,_0x15decf)),_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1cf705 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1cf705)&&_0x183389['enableCommand'](_0x1cf705,(_0xde4289,_0x225fa2)=>{const _0x30d11c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1cf705,_0x30d11c,this['tableCellProperties'],'tableCellProperties',_0xde4289,_0x225fa2);});_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x183389['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x51bc77,_0x4cec3e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x51bc77,_0x4cec3e)),_0x183389['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x183389['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x183389['descriptionFactory']['registerDescriptionCallback'](_0x19060a=>this['handleSuggestionDescription'](_0x19060a)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x76a6eb,_0x58b76d,_0xceace9,_0x2bb722,_0x18d874,_0x7f7b58){const _0x4fadce=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x7f7b58['batch'],()=>{for(const _0x5caef3 of _0x58b76d){if(this['_getSuggestion'](_0x5caef3,_0x2bb722))_0x18d874(_0x7f7b58);else{const _0x4f0a5b={};for(const _0x361846 of _0xceace9){const _0x5579db=_0x5caef3['getAttribute'](_0x361846);void 0x0!==_0x5579db&&(_0x4f0a5b[_0x361846]=_0x5579db);}_0x18d874(_0x7f7b58),_0x4fadce['markBlockFormat'](_0x5caef3,{'commandParams':[_0x4f0a5b]},[],_0x2bb722);}}});}['handleDiscardAction'](_0x3c802f,_0x4a7dd6,_0x19c356){const _0x135478=_0x4a7dd6[0x0]['start']['nodeAfter'],_0x496244=_0x19c356['commandParams'][0x0];this['editor']['model']['change'](_0x183aa5=>{for(const _0xb56076 of _0x3c802f)void 0x0!==_0x496244[_0xb56076]?_0x183aa5['setAttribute'](_0xb56076,_0x496244[_0xb56076],_0x135478):_0x183aa5['removeAttribute'](_0xb56076,_0x135478);});}['handleSuggestionDescription'](_0x1a066e){if(_0x1a066e['data'])switch(_0x1a066e['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xfcf24b,_0x12ed27){const _0x47b9de=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x47caf0 of _0x47b9de['getSuggestions']({'skipNotAttached':!0x0})){const _0x40e300=_0x47caf0['getContainedElement']();if(_0x47caf0['subType']===_0x12ed27&&_0x40e300===_0xfcf24b)return _0x47caf0;}return null;}['_registerTablePropertiesAttributes'](){const _0x5bf045=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e37ac=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x31a639 of _0x4e37ac){const _0x4e1a07=_0x31a639['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5bf045['descriptionFactory']['registerAttributeLabel'](_0x31a639,Tt(this['editor']['locale'],'FORMAT_'+_0x4e1a07));}}}class TrackChangesLineHeight extends _0x1b042a{['afterInit'](){const _0x58570a=this['editor'];if(!_0x58570a['plugins']['has']('LineHeight'))return;const _0x16501d=_0x58570a['plugins']['get']('TrackChangesEditing'),_0x3321d4=_0x58570a['locale'];_0x16501d['enableDefaultAttributesIntegration']('lineHeight'),_0x16501d['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x3321d4,'FORMAT_LINE_HEIGHT'));}}const Ft='$elementName';class TrackChangesEditing extends _0x1b042a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x2e3e9f,_0x45f6b6,_0x97b95d,_0x5989c4,_0x56c137,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fc701){super(_0x4fc701),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4b6313,_0x10735b,_0x1a9d00,_0x3e3ce9)=>{this['_model']['change'](()=>{for(const _0x237748 of[..._0x3e3ce9,..._0x1a9d00])this['_model']['markers']['has'](_0x237748)&&_0x4fc701['editing']['reconvertMarker'](_0x237748);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4fc701['plugins']['get'](_0x2e3e9f),this['_suggestionsConversion']=_0x4fc701['plugins']['get'](_0x45f6b6),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4fc701['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4fc701['config']['get']('trackChanges.trackFormatChanges'),_0x4fc701['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4fc701['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x4fc701,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3950f6=this['editor'];_0x3950f6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x404ef0,{writer:_0x3fbe08})=>{let _0x2b5abc='suggestion:'+_0x404ef0['getAttribute']('suggestion-type')+':'+_0x404ef0['getAttribute']('id');return _0x404ef0['getAttribute']('marker-count')&&(_0x2b5abc+=':'+_0x404ef0['getAttribute']('marker-count')),_0x3fbe08['createElement']('$marker',{'data-name':_0x2b5abc});}}),_0x3950f6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3950f6['model']['document']['registerPostFixer'](_0x8fa03a=>{let _0x2993cd=!0x1;const _0x39b5a2=Array['from'](_0x3950f6['model']['document']['differ']['getChangedMarkers']()),_0x5c834f=new Set();for(const {name:_0x230eb5,data:_0x2d7e10}of _0x39b5a2){const {group:_0x4fc82c,type:_0x563732,subType:_0xb921db,id:_0x230b3b}=_0x11d9f0(_0x230eb5);if('suggestion'!==_0x4fc82c)continue;const _0x25d756=_0xb921db?'suggestion:'+_0x563732+':'+_0xb921db+':'+_0x230b3b:'suggestion:'+_0x563732+':'+_0x230b3b,_0x4e75a0=_0x3950f6['model']['markers']['getMarkersGroup'](_0x25d756),_0x51b8fe=_0x3950f6['model']['markers']['get'](_0x230eb5),_0x585361=this['_suggestions']['get'](_0x230b3b);if(null!=_0x2d7e10['newRange']){'formatInline'==_0x563732&&(_0x2993cd=_0x2993cd||xt(_0x2d7e10['newRange'],_0x230eb5,_0x8fa03a,_0x3950f6['model']['schema']));const _0x153ba9='attribute'==_0x563732&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0xb921db)),_0x5b868a='attribute'==_0x563732&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0xb921db));if(_0x2d7e10['newRange']['isCollapsed']||'$graveyard'==_0x2d7e10['newRange']['root']['rootName']||'formatBlock'==_0x563732&&!Ut(_0x2d7e10['newRange'])||_0x153ba9&&!Ut(_0x2d7e10['newRange'])||_0x5b868a&&Gt(_0x2d7e10['newRange'])||'deletion'==_0x563732&&Gt(_0x2d7e10['newRange'])||_0x51b8fe&&Ht(_0x51b8fe,_0x4e75a0))_0x8fa03a['removeMarker'](_0x230eb5),_0x2993cd=!0x0;else{if(!_0x585361||!_0x585361['isInContent'])continue;if(_0x2d7e10['newRange']&&_0x2d7e10['oldRange']&&_0x2d7e10['newRange']['isEqual'](_0x2d7e10['oldRange']))continue;_0x5c834f['add'](_0x585361);}}}return _0x5c834f['size']>0x0&&(_0x2993cd=!!this['_joinWithAdjacentSuggestions'](_0x5c834f)||_0x2993cd),_0x2993cd;}),_0x3950f6['model']['document']['registerPostFixer'](_0x374bd8=>{let _0x36fb11=!0x1;for(const _0x3e55f7 of _0x3950f6['model']['document']['differ']['getChanges']())if('insert'==_0x3e55f7['type'])for(const _0xf86afa of this['_suggestions']['values']()){if(_0xf86afa['isMultiRange']||!_0xf86afa['isInContent'])continue;const _0xd47558='formatBlock'==_0xf86afa['type'],_0x49bf24=this['_getAttributeKey'](_0xf86afa),_0x3ed618=_0x49bf24&&this['_suggestionsConversion']['isBlockAttribute'](_0x49bf24);if(!_0xd47558&&!_0x3ed618)continue;const _0x3d091d=_0xf86afa['getFirstRange']();if(_0x3d091d['start']['parent']!=_0x3d091d['end']['parent']&&!_0x3d091d['end']['isAtEnd']){const _0x5da805=_0x3950f6['model']['createPositionAt'](_0x3d091d['start']['nodeAfter'],'end'),_0x4425d8=_0x3950f6['model']['createRange'](_0x3d091d['start'],_0x5da805);_0x374bd8['updateMarker'](_0xf86afa['getFirstMarker'](),{'range':_0x4425d8}),_0x36fb11=!0x0;}}return _0x36fb11;}),_0x3950f6['model']['document']['registerPostFixer'](_0x37ac78=>this['_processAttributeChanges'](_0x37ac78)),_0x3950f6['model']['document']['registerPostFixer'](_0x677acc=>!_0x677acc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x677acc)),_0x3950f6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3950f6['model']['document']['on']('change:data',(_0x53f22f,_0x29dab9)=>{if(!_0x29dab9['isLocal']||_0x29dab9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xaeaa47=_0x3950f6['model']['document']['differ']['getChanges']();if(0x0==_0xaeaa47['length'])return;const _0x5f220b=[],_0x125fc5=_0xaeaa47['filter'](_0x325b36=>'attribute'==_0x325b36['type']),_0x4d670c=_0xaeaa47['filter'](_0x5c9688=>'insert'==_0x5c9688['type']&&'$text'!=_0x5c9688['name']);for(const _0x4f4aa1 of _0x125fc5)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4f4aa1['attributeKey'])&&_0x5f220b['push']({'key':_0x4f4aa1['attributeKey'],'newValue':_0x4f4aa1['attributeNewValue'],'oldValue':_0x4f4aa1['attributeOldValue'],'range':$t(_0x4f4aa1['range'],_0x3950f6['model'])});for(const _0x37e86d of _0x4d670c){if('rename'!=_0x37e86d['action']&&'refresh'!=_0x37e86d['action'])continue;const _0x21ff75=Vt(_0x37e86d['position']['nodeAfter'],_0x3950f6['model']),_0x32d3a9=_0x37e86d['before'];'rename'==_0x37e86d['action']&&_0x5f220b['push']({'key':Ft,'newValue':_0x37e86d['name'],'oldValue':_0x32d3a9['name'],'range':_0x21ff75});for(const [_0x23e630,_0x40a2f0]of _0x32d3a9['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x23e630))continue;const _0x3ba81d=_0x37e86d['attributes']['get'](_0x23e630);_0x40a2f0!==_0x3ba81d&&_0x5f220b['push']({'key':_0x23e630,'newValue':_0x3ba81d,'oldValue':_0x40a2f0,'range':_0x21ff75});}for(const [_0x1a1e63,_0x51eddb]of _0x37e86d['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1a1e63)&&(_0x32d3a9['attributes']['has'](_0x1a1e63)||_0x5f220b['push']({'key':_0x1a1e63,'newValue':_0x51eddb,'oldValue':null,'range':_0x21ff75}));}0x0!=_0x5f220b['length']&&_0x3950f6['model']['enqueueChange'](_0x29dab9,_0x350983=>{const _0x588541=_0x2375fd();for(const {range:_0x233ff9,key:_0x2a53d8,oldValue:_0x51a9e8,newValue:_0xcdeb45}of _0x5f220b)this['markAttributeChange'](_0x233ff9,_0x2a53d8,_0x51a9e8,_0xcdeb45,{'groupId':_0x588541});this['_reduceExistingSuggestions'](_0x350983,_0x5f220b);});},{'priority':'lowest'}),_0x3950f6['model']['markers']['on']('update:suggestion',(_0x5a58a2,_0xa7c263,_0x38ade1)=>{if(null==_0x38ade1){const {id:_0x2743e2}=_0x11d9f0(_0xa7c263['name']),_0x535070=this['_suggestions']['get'](_0x2743e2);_0x535070&&_0x535070['addMarkerName'](_0xa7c263['name']);}}),_0x3950f6['model']['document']['on']('change:data',()=>{const _0x1a63be=Array['from'](_0x3950f6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x514bf8=>'suggestion'===_0x11d9f0(_0x514bf8['name'])['group']);if(0x0===_0x1a63be['length'])return;_0x1a63be['sort']((_0x3177dd,_0x25d880)=>{const _0x9be03e=_0x3177dd['data']['oldRange'],_0x1f2e0c=_0x25d880['data']['oldRange'];return null===_0x9be03e&&null===_0x1f2e0c?0x0:null===_0x9be03e&&null!==_0x1f2e0c?-0x1:null!==_0x9be03e&&null===_0x1f2e0c?0x1:_0x9be03e['start']['isBefore'](_0x1f2e0c['start'])?-0x1:0x1;});const _0x364f62=new Set(),_0x5454d1=new Set();for(const {name:_0x48f88a,data:_0x4b9d0f}of _0x1a63be){const {id:_0x50faec}=_0x11d9f0(_0x48f88a);if(null===_0x4b9d0f['oldRange']){const _0x2096af=this['_handleNewSuggestionMarker'](_0x48f88a);_0x5454d1['add'](_0x2096af);}else{const _0x5e20c4=this['_suggestions']['get'](_0x50faec);null!==_0x4b9d0f['newRange']||_0x5e20c4['isInContent']?(_0x364f62['add'](_0x5e20c4['head']),_0x5454d1['add'](_0x5e20c4)):this['_removeSuggestion'](_0x5e20c4);}}_0x5454d1['size']>0x0&&this['_refreshSuggestionsChain'](_0x5454d1);for(const _0xae1e40 of _0x364f62)this['fire']('suggestionChanged',_0xae1e40);}),_0x3950f6['model']['on']('applyOperation',(_0x160222,_0x5f29cd)=>{const _0x508669=_0x5f29cd[0x0];if(!this['_suggestions']['size'])return;if(!_0x508669['isDocumentOperation'])return;if(_0x508669['batch']['isUndo']||!_0x508669['batch']['isLocal'])return;let _0x544872,_0x307226;switch(_0x508669['type']){case'insert':_0x544872=_0x3950f6['model']['createPositionAt'](_0x508669['position']),_0x307226=_0x544872['getShiftedBy'](_0x508669['howMany']);break;case'split':_0x544872=_0x3950f6['model']['createPositionAt'](_0x508669['splitPosition']),_0x307226=_0x3950f6['model']['createPositionAt'](_0x508669['moveTargetPosition']);break;case'move':_0x544872=_0x3950f6['model']['createPositionAt'](_0x508669['targetPosition']),_0x307226=_0x544872['getShiftedBy'](_0x508669['howMany']);break;default:return;}const _0xe3089c=_0x3950f6['model']['createRange'](_0x544872,_0x307226);_0x3950f6['model']['change'](()=>{for(const {suggestion:_0x9131ca,meta:_0x2f2c45}of this['_findSuggestions'](_0xe3089c)){if(_0x9131ca['isMultiRange'])continue;if('formatInline'==_0x9131ca['type'])continue;const _0x56b4ed=this['_getAttributeKey'](_0x9131ca);if(_0x56b4ed&&this['_suggestionsConversion']['isBlockAttribute'](_0x56b4ed)&&'split'!=_0x508669['type'])continue;const _0x2ad1e5=_0x9131ca['data']&&_0x9131ca['data']['multipleBlocks'];('formatBlock'!=_0x9131ca['type']||'split'==_0x508669['type']&&!_0x2ad1e5)&&(_0x2f2c45['containsRangeInObject']||'insertion'==_0x9131ca['type']&&_0x2f2c45['isOwn']||_0x9131ca['getFirstRange']()['containsRange'](_0xe3089c)&&this['_breakSuggestionMarker'](_0x9131ca,_0x544872,_0x307226));}});},{'priority':'lowest'}),_0x3950f6['model']['on']('deleteContent',(_0x68a5c1,_0x3b61c1)=>{const _0x524010=_0x3b61c1[0x0],_0x176868=_0x3b61c1[0x1];if(_0x176868&&_0x176868['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x524010['isCollapsed'])return;const _0x4b0feb=_0x3950f6['model']['schema'],{start:_0x41777f,end:_0x254ee9}=_0x524010['getFirstRange'](),_0x42765a=_0x41777f['nodeAfter']&&_0x4b0feb['isLimit'](_0x41777f['nodeAfter'])?null:_0x4b0feb['getNearestSelectionRange'](_0x41777f,'forward'),_0xb565a=_0x254ee9['nodeBefore']&&_0x4b0feb['isLimit'](_0x254ee9['nodeBefore'])?null:_0x4b0feb['getNearestSelectionRange'](_0x254ee9,'backward'),_0x445b7f=_0x3950f6['model']['createRange'](_0x42765a?_0x42765a['start']:_0x41777f,_0xb565a?_0xb565a['end']:_0x254ee9);_0x3950f6['model']['change'](_0x4f9cbf=>{this['markDeletion'](_0x445b7f);const _0x4b7409=_0x3950f6['model']['schema']['getNearestSelectionRange'](_0x445b7f['start']);_0x524010['is']('documentSelection')?_0x4f9cbf['setSelection'](_0x4b7409):_0x524010['setTo'](_0x4b7409);}),_0x68a5c1['stop']();},{'priority':_0x196bca['normal']+0xa}),_0x3950f6['model']['on']('insertContent',(_0x5421b4,_0x522404)=>{const _0x4f5480=_0x522404[_0x522404['length']-0x1];_0x4f5480&&_0x4f5480['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3950f6['model']['change'](()=>{let _0x3a1ee5=_0x3950f6['model']['insertContent'](_0x522404[0x0],_0x522404[0x1],_0x522404[0x2],{'forceDefaultExecution':!0x0});if(!_0x3a1ee5)return;_0x5421b4['return']=_0x3a1ee5['clone']();const _0x2818d6=_0x3a1ee5['end']['nodeBefore'],_0x34fb6e=_0x3950f6['model']['schema'];_0x2818d6&&_0x34fb6e['isBlock'](_0x2818d6)&&!_0x34fb6e['isObject'](_0x2818d6)&&(_0x3a1ee5=_0x3950f6['model']['createRange'](_0x3a1ee5['start'],_0x3950f6['model']['createPositionAt'](_0x2818d6,'end'))),this['markInsertion'](_0x3a1ee5);}),_0x5421b4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2155a4=new AcceptSuggestionCommand(_0x3950f6,this['_suggestions']);_0x3950f6['commands']['add']('acceptSuggestion',_0x2155a4),this['enableCommand']('acceptSuggestion');const _0x49d167=new DiscardSuggestionCommand(_0x3950f6,this['_suggestions']);_0x3950f6['commands']['add']('discardSuggestion',_0x49d167),this['enableCommand']('discardSuggestion'),_0x3950f6['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3950f6,_0x2155a4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3950f6['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3950f6,_0x49d167,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3950f6['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3950f6,_0x2155a4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3950f6['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3950f6,_0x49d167,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1b1efc=_0x3950f6['plugins']['get'](_0x2e3e9f);this['listenTo'](_0x1b1efc,'addComment',(_0x578637,{threadId:_0x361f18})=>{const _0x34b33d=this['_suggestions']['get'](_0x361f18);_0x34b33d&&_0x34b33d['commentThread']&&0x1===_0x34b33d['commentThread']['length']&&this['_updateSuggestionData'](_0x361f18,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1b1efc,'removeComment',(_0x2bbf4c,{threadId:_0x55441c})=>{const _0x543a88=this['_suggestions']['get'](_0x55441c);_0x543a88&&_0x543a88['commentThread']&&!_0x543a88['commentThread']['length']&&this['_updateSuggestionData'](_0x55441c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c6516){const _0xd9fe31=_0x344bd9([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]),_0x424634=0x3d8d0df,_0x3c5ee5=0x3df5a8f^_0x424634,_0x485edc=window[_0x344bd9([0x44,0x61,0x74,0x65])][_0x344bd9([0x6e,0x6f,0x77])](),_0x54e333=_0x4c6516[_0x344bd9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b45cb=new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337075=>{_0x54e333[_0x344bd9([0x6f,0x6e,0x63,0x65])](_0x344bd9([0x72,0x65,0x61,0x64,0x79]),_0x337075);}),_0x5737f2={[_0x344bd9([0x6b,0x74,0x79])]:_0x344bd9([0x45,0x43]),[_0x344bd9([0x75,0x73,0x65])]:_0x344bd9([0x73,0x69,0x67]),[_0x344bd9([0x63,0x72,0x76])]:_0x344bd9([0x50,0x2d,0x32,0x35,0x36]),[_0x344bd9([0x78])]:_0x344bd9([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]),[_0x344bd9([0x79])]:_0x344bd9([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]),[_0x344bd9([0x61,0x6c,0x67])]:_0x344bd9([0x45,0x53,0x32,0x35,0x36])},_0x5f5901=_0x54e333[_0x344bd9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x344bd9([0x67,0x65,0x74])](_0x344bd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x553b1d(){let _0x5f4530,_0x4f6f36=null,_0x8789e0=null;try{if(_0x5f5901==_0x344bd9([0x47,0x50,0x4c]))return _0x344bd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f4530=_0x354d5c(),!_0x5f4530)return _0x344bd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f4530[_0x344bd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8789e0=_0x39cabb(_0x5f4530[_0x344bd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f4530[_0x344bd9([0x6a,0x74,0x69])])),await _0x148d56()?_0x27c809()?_0x69ebd1()?_0x344bd9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1104b5()?(_0x5f4530[_0x344bd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x344bd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f6f36=_0x24b4cb(_0x344bd9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x72e901()):_0x344bd9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x344bd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x344bd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x344bd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x69ebd1(){const _0x1700a3=[_0x344bd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x344bd9([0x74,0x72,0x69,0x61,0x6c])][_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f4530[_0x344bd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x485edc/0x3e8:0xe10*_0x3c5ee5;return _0x5f4530[_0x344bd9([0x65,0x78,0x70])]<_0x1700a3;}function _0x27c809(){const _0x195223=_0x5f4530[_0x344bd9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x195223)return!0x1;if(_0x195223[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x344bd9([0x2a])))return!0x0;if(_0x195223[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x344bd9([0x54,0x43])))return!0x0;if(_0x195223[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x344bd9([0x52,0x54,0x43]))){if(_0x531e8e())return!0x0;if(_0x4af15a()||_0x3b1761())return!0x0;}return!0x1;}function _0x1104b5(){const _0x2acc48=_0x5f4530[_0x344bd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2acc48||0x0==_0x2acc48[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29d5ed}=new URL(window[_0x344bd9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2acc48[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29d5ed))return!0x0;const _0x2fbad2=_0x29d5ed[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])](_0x344bd9([0x2e]));return _0x2acc48[_0x344bd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cf370=>_0x4cf370[_0x344bd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x344bd9([0x2a])))[_0x344bd9([0x6d,0x61,0x70])](_0x2a9c30=>_0x2a9c30[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])](_0x344bd9([0x2e])))[_0x344bd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20ba1d=>_0x20ba1d[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2fbad2[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x344bd9([0x6d,0x61,0x70])](_0x4446e7=>Array(_0x2fbad2[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4446e7[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x344bd9([0x66,0x69,0x6c,0x6c])](_0x4446e7[0x0]===_0x344bd9([0x2a])?_0x344bd9([0x2a]):'')[_0x344bd9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4446e7))[_0x344bd9([0x73,0x6f,0x6d,0x65])](_0x59e93f=>_0x2fbad2[_0x344bd9([0x65,0x76,0x65,0x72,0x79])]((_0x1da52a,_0x563355)=>_0x59e93f[_0x563355]===_0x1da52a||_0x59e93f[_0x563355]===_0x344bd9([0x2a])));}function _0x72e901(){return _0x4f6f36&&_0x8789e0?new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23e9a2,_0x12e014)=>{_0x4f6f36[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x23e9a2,_0x12e014),_0x8789e0[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x53bc07=>{_0x53bc07!=_0x344bd9([0x56,0x61,0x6c,0x69,0x64])&&_0x23e9a2(_0x53bc07);},_0x12e014);}):_0x4f6f36||_0x8789e0||_0x344bd9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x39cabb(_0x4f298,_0x52fc6d){return new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1722ff=>{if(_0x270876())return _0x1722ff(_0x344bd9([0x56,0x61,0x6c,0x69,0x64]));_0xed616d(),_0x54e333[_0x344bd9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x344bd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x549722=!0x1;const _0x126eee=_0x2375fd();function _0x3b82d3(_0x3aa53c){return!!_0x3aa53c&&(typeof _0x3aa53c===_0x344bd9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3aa53c===_0x344bd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3aa53c[_0x344bd9([0x74,0x68,0x65,0x6e])]===_0x344bd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3aa53c[_0x344bd9([0x63,0x61,0x74,0x63,0x68])]===_0x344bd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x38486a(_0x46f754){_0x15d20a(_0x46f754)[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x2dd289=>{if(!_0x2dd289||_0x2dd289[_0x344bd9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x344bd9([0x6f,0x6b]))return _0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45e9ce(_0x12a30d(_0x126eee+_0x52fc6d))!=_0x2dd289[_0x344bd9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x344bd9([0x56,0x61,0x6c,0x69,0x64]);})[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x35277b=>(_0x40b9c1(),_0x35277b),()=>{const _0x5349a2=_0x201a28();return null==_0x5349a2?(_0x40b9c1(),_0x344bd9([0x56,0x61,0x6c,0x69,0x64])):_0x344bd9(_0x485edc-_0x5349a2>(0x27d454df^_0x424634)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x1722ff)[_0x344bd9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1722ff(_0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7db14e=0x3ee3e5f^_0x424634;function _0x40b9c1(){const _0x5553aa=_0x344bd9([0x6c,0x6c,0x63,0x74,0x2d])+_0x45e9ce(_0x12a30d(_0x4f298)),_0x2ebb85=_0x2f8a82(_0x45e9ce(window[_0x344bd9([0x4d,0x61,0x74,0x68])][_0x344bd9([0x63,0x65,0x69,0x6c])](_0x485edc/_0x7db14e)));window[_0x344bd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x344bd9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5553aa,_0x2ebb85);}function _0x201a28(){const _0x25bf41=_0x344bd9([0x6c,0x6c,0x63,0x74,0x2d])+_0x45e9ce(_0x12a30d(_0x4f298)),_0x12e7f2=window[_0x344bd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x344bd9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25bf41);return _0x12e7f2?window[_0x344bd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f8a82(_0x12e7f2),0x10)*_0x7db14e:null;}function _0x15d20a(_0x4b751a){return new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19f0cf,_0x2377e4)=>{_0x4b751a[_0x344bd9([0x74,0x68,0x65,0x6e])](_0x19f0cf,_0x2377e4),window[_0x344bd9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2377e4,0x3d9041f^_0x424634);});}}_0x54e333[_0x344bd9([0x6f,0x6e])](_0x344bd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x459d1f,_0x5e913a)=>{if(_0x5e913a[0x0]!=_0x4f298)return _0x1722ff(_0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e913a[0x1]={..._0x5e913a[0x1],[_0x344bd9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x126eee};},{[_0x344bd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x344bd9([0x68,0x69,0x67,0x68])}),_0x54e333[_0x344bd9([0x6f,0x6e])](_0x344bd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x10c2b=>{_0x3b82d3(_0x10c2b[_0x344bd9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x549722=!0x0,_0x38486a(_0x10c2b[_0x344bd9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x344bd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x344bd9([0x6c,0x6f,0x77])}),_0x3b45cb[_0x344bd9([0x74,0x68,0x65,0x6e])](()=>{_0x549722||_0x1722ff(_0x344bd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x270876(){return _0x54e333[_0x344bd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x344bd9([0x76,0x69,0x65,0x77])][_0x344bd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x344bd9([0x61,0x75,0x74,0x6f]);}function _0xed616d(){_0x54e333[_0x344bd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x344bd9([0x76,0x69,0x65,0x77])][_0x344bd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x344bd9([0x61,0x75,0x74,0x6f]);}}function _0x24b4cb(_0x4469c3){const _0x15bbf5=[new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3985=>setTimeout(_0x5c3985,0x3d1ee13^_0x424634)),_0x3b45cb[_0x344bd9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8017=>{let _0x213a43=0x0;_0x54e333[_0x344bd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x344bd9([0x6f,0x6e])](_0x344bd9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xac2d4e,_0x3cd3a6)=>{_0x3cd3a6[0x0][_0x344bd9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x213a43++,_0x213a43==(0x3d8d537^_0x424634)&&(_0x3e8017(),_0xac2d4e[_0x344bd9([0x6f,0x66,0x66])]());});}))];return window[_0x344bd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x344bd9([0x72,0x61,0x63,0x65])](_0x15bbf5)[_0x344bd9([0x74,0x68,0x65,0x6e])](()=>_0x4469c3);}async function _0x29a9be(){await _0x3b45cb,_0x54e333[_0x344bd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x344bd9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10fa1f,_0x54e333[_0x344bd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x344bd9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10fa1f,_0x54e333[_0x344bd9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x344bd9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x531e8e(){return _0x336b21(_0x344bd9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x23c289(_0x344bd9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x344bd9([0x73,0x74,0x61,0x74,0x65])]==_0x344bd9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4af15a(){return _0x336b21(_0x344bd9([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 _0x3b1761(){return _0x336b21(_0x344bd9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3aacfc(_0x2decf6){const _0x2f09fc=_0x2dd492();_0x54e333[_0x2f09fc]=_0x344bd9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2decf6,_0x2decf6!=_0x344bd9([0x56,0x61,0x6c,0x69,0x64])&&_0x29a9be();}function _0x2dd492(){const _0x212f07=window[_0x344bd9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x344bd9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x344bd9([0x6e,0x6f,0x77])]())[_0x344bd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x344bd9([0x2e]),'');let _0x2c5b11=_0x344bd9([0x52]);for(let _0x38c212=0x0;_0x38c212<_0x212f07[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38c212+=0x2){let _0x382103=window[_0x344bd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x212f07[_0x344bd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38c212,_0x38c212+0x2));_0x382103>=_0xd9fe31[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x382103-=_0xd9fe31[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c5b11+=_0xd9fe31[_0x382103];}return _0x2c5b11;}function _0x354d5c(){const _0x118fdc=_0x5f5901[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])](_0x344bd9([0x2e]));if(0x3!=_0x118fdc[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3204a6(_0x118fdc[0x1]);function _0x3204a6(_0x1fe2a7){const _0x3afd2f=_0x2086d7(_0x1fe2a7);return _0x3afd2f&&_0x3c4aba()?_0x3afd2f:null;function _0x3c4aba(){const _0x543ee0=_0x3afd2f[_0x344bd9([0x6a,0x74,0x69])],_0x20559e=window[_0x344bd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543ee0[_0x344bd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x543ee0[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4be4ea={..._0x3afd2f,[_0x344bd9([0x6a,0x74,0x69])]:_0x543ee0[_0x344bd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x543ee0[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4be4ea[_0x344bd9([0x76,0x63])],_0x12a30d(_0x4be4ea)==_0x20559e;}}}async function _0x148d56(){let _0xe25c64=!0x0;try{const _0x44256a=_0x5f5901[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])](_0x344bd9([0x2e])),[_0x5a51c6,_0x174b88,_0x402fff]=_0x44256a;return _0x59b51e(_0x5a51c6),await _0x57195b(_0x5a51c6,_0x174b88,_0x402fff),_0xe25c64;}catch{return!0x1;}function _0x59b51e(_0xf7f4ab){const _0x39a41c=_0x2086d7(_0xf7f4ab);_0x39a41c&&_0x39a41c[_0x344bd9([0x61,0x6c,0x67])]==_0x344bd9([0x45,0x53,0x32,0x35,0x36])||(_0xe25c64=!0x1);}async function _0x57195b(_0x885e8e,_0x4c9c3a,_0x1f2105){const _0x130e10=window[_0x344bd9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x344bd9([0x66,0x72,0x6f,0x6d])](_0x59b29c(_0x1f2105),_0x3a8b7d=>_0x3a8b7d[_0x344bd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x291b69=new window[(_0x344bd9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x344bd9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x885e8e+_0x344bd9([0x2e])+_0x4c9c3a),_0x4be9d4=window[_0x344bd9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x344bd9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4be9d4)return;const _0x3fc328=await _0x4be9d4[_0x344bd9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x344bd9([0x6a,0x77,0x6b]),_0x5737f2,{[_0x344bd9([0x6e,0x61,0x6d,0x65])]:_0x344bd9([0x45,0x43,0x44,0x53,0x41]),[_0x344bd9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x344bd9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x344bd9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4be9d4[_0x344bd9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x344bd9([0x6e,0x61,0x6d,0x65])]:_0x344bd9([0x45,0x43,0x44,0x53,0x41]),[_0x344bd9([0x68,0x61,0x73,0x68])]:{[_0x344bd9([0x6e,0x61,0x6d,0x65])]:_0x344bd9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3fc328,_0x130e10,_0x291b69)||(_0xe25c64=!0x1);}}function _0x2086d7(_0x21a5ab){return _0x21a5ab[_0x344bd9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x344bd9([0x65,0x79]))?JSON[_0x344bd9([0x70,0x61,0x72,0x73,0x65])](_0x59b29c(_0x21a5ab)):null;}function _0x59b29c(_0x407eb8){return window[_0x344bd9([0x61,0x74,0x6f,0x62])](_0x407eb8[_0x344bd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x344bd9([0x2b]))[_0x344bd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x344bd9([0x2f])));}function _0x12a30d(_0x5d4c3a){let _0x5dcfb3=0x1505;function _0x47feca(_0x41dff5){for(let _0x1f3aa8=0x0;_0x1f3aa8<_0x41dff5[_0x344bd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f3aa8++){const _0x47493f=_0x41dff5[_0x344bd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f3aa8);_0x5dcfb3=(_0x5dcfb3<<0x5)+_0x5dcfb3+_0x47493f,_0x5dcfb3&=_0x5dcfb3;}}function _0x1249a0(_0x1150cd){Array[_0x344bd9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1150cd)?_0x1150cd[_0x344bd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1249a0):_0x1150cd&&typeof _0x1150cd==_0x344bd9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x344bd9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1150cd)[_0x344bd9([0x73,0x6f,0x72,0x74])]()[_0x344bd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e4044,_0x3236e5])=>{_0x47feca(_0x1e4044),_0x1249a0(_0x3236e5);}):_0x47feca(window[_0x344bd9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1150cd));}return _0x1249a0(_0x5d4c3a),_0x5dcfb3>>>0x0;}function _0x45e9ce(_0x3a271e){return _0x3a271e[_0x344bd9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x344bd9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x344bd9([0x30]));}function _0x2f8a82(_0x5168ef){return _0x5168ef[_0x344bd9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x344bd9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x344bd9([0x6a,0x6f,0x69,0x6e])]('');}function _0x336b21(_0x31b24a){return _0x54e333[_0x344bd9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x344bd9([0x68,0x61,0x73])](_0x31b24a);}function _0x23c289(_0x37fdb6){return _0x54e333[_0x344bd9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x344bd9([0x67,0x65,0x74])](_0x37fdb6);}function _0x10fa1f(){}function _0x344bd9(_0x5518d5){return _0x5518d5['map'](_0x1bda3a=>String['fromCharCode'](_0x1bda3a))['join']('');}_0x3aacfc(await _0x553b1d());}(this);}set['adapter'](_0x80f7c6){if(this['_adapter'])throw new _0x2992e4('track-changes-adapter-already-set',this);this['_adapter']=_0x80f7c6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x8e5609=!0x1,toJSON:_0x4cbb21=!0x1}={}){const _0x2d0de5=[];for(const _0x473ba7 of this['_suggestions']['values']())_0x8e5609&&!_0x473ba7['isInContent']||_0x2d0de5['push'](_0x473ba7);return _0x4cbb21?_0x2d0de5['map'](_0x54d93b=>_0x54d93b['toJSON']()):_0x2d0de5;}['getSuggestion'](_0x161233){const _0x3d55a9=this['_suggestions']['get'](_0x161233);if(!_0x3d55a9)throw new _0x2992e4('track-changes-suggestion-not-found',this);return _0x3d55a9;}['hasSuggestion'](_0x5e2c5e){return this['_suggestions']['has'](_0x5e2c5e);}['addSuggestionData'](_0x213ffe){const {authorId:_0x3f2e74,id:_0x1d17d6,originalSuggestionId:_0x5c750e,attributes:_0x2acb8a}=_0x213ffe,[_0x222dba,_0xe01095]=_0x213ffe['type']['split'](':'),_0x5478c3=this['_suggestions']['get'](_0x1d17d6)||this['_createSuggestion'](_0x222dba,_0xe01095,_0x1d17d6,_0x3f2e74,_0x2acb8a,_0x5c750e);if(this['_addThreadToSuggestion'](_0x5478c3),this['_checkSuggestionCorrectness'](_0x5478c3,_0x222dba,_0xe01095||null,_0x3f2e74),_0x5478c3['createdAt']=_0x213ffe['createdAt'],_0x5478c3['_isDataLoaded']=!0x0,_0x2acb8a&&_0x2acb8a['@external']){const _0xc89a46=_0x2acb8a['@external'],_0x16b5a9=this['_getExternalAuthor'](_0xc89a46['authorName']);_0x5478c3['authoredAt']=_0xc89a46['createdAt'],_0x5478c3['author']=_0x16b5a9,_0x5478c3['isExternal']=!0x0;}else _0x5478c3['authoredAt']=_0x213ffe['createdAt'];switch(_0x213ffe['data']&&(_0x5478c3['data']=_0x213ffe['data']),_0x213ffe['attributes']&&(_0x5478c3['attributes']=_0x213ffe['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5478c3['_saved']=!0x0),this['_suggestionState']['get'](_0x5478c3)){case'notReady':this['_suggestionState']['set'](_0x5478c3,'dataReady');break;case'markerReady':_0x5478c3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5478c3])),this['_refreshSuggestionsChain'](new Set([_0x5478c3])),this['_suggestionState']['set'](_0x5478c3,'ready'),this['fire']('suggestionLoaded',_0x5478c3)):this['_suggestionState']['set'](_0x5478c3,'removed');}return _0x5478c3;}['acceptSuggestion'](_0x43cd42){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4bab80 of _0x43cd42['getAllAdjacentSuggestions']())_0x4bab80['accept']();});});}['discardSuggestion'](_0x37b28a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4036dc of _0x37b28a['getAllAdjacentSuggestions']())_0x4036dc['discard']();});});}['enableCommand'](_0x234d39,_0x3aaded){const _0x531fc0=this['editor']['commands']['get'](_0x234d39);if(!_0x531fc0)throw new _0x2992e4('track-changes-command-not-found',this,{'commandName':_0x234d39});if(this['_enabledCommands']['has'](_0x531fc0))throw new _0x2992e4('track-changes-enable-command-twice',this,{'commandName':_0x234d39});this['_enabledCommands']['add'](_0x531fc0),_0x3aaded&&_0x531fc0['on']('execute',(_0x65cf65,_0x1c3966)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1c3966['length']>0x0&&_0x1c3966[_0x1c3966['length']-0x1]&&_0x1c3966[_0x1c3966['length']-0x1]['forceDefaultExecution']?_0x1c3966['pop']():(_0x65cf65['return']=_0x3aaded((..._0xe459a4)=>_0x531fc0['execute'](..._0xe459a4,{'forceDefaultExecution':!0x0}),..._0x1c3966),_0x65cf65['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x54338c){let _0x1b90df,_0x313f1c;const _0x3ae66e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b90df=_0x54338c();}catch(_0x4444c1){_0x313f1c=_0x4444c1;}return _0x3ae66e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x313f1c&&_0x2992e4['rethrowUnexpectedError'](_0x313f1c,this),_0x1b90df;}['markInsertion'](_0x352dce,_0x1bd981=null,_0x4d6f8e={}){if(_0x352dce['isCollapsed'])return null;const _0x1187da=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4d6f8e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xd52972,meta:_0x5f07c6}of this['_findSuggestions'](_0x352dce,'insertion'))if(_0x5f07c6['isOwn']){if(!_0x5f07c6['isNextTo']){if(_0x5f07c6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xd52972,_0x4d6f8e))continue;return _0xd52972;}if(zt(_0xd52972,_0x4d6f8e))return _0xd52972;this['_breakSuggestionMarker'](_0xd52972,_0x352dce['start'],_0x352dce['end']);break;}if(_0x1bd981==_0xd52972['subType']&&zt(_0xd52972,_0x4d6f8e)){const _0x303e30=_0xd52972['getFirstRange']();return _0x303e30['start']['isEqual'](_0x352dce['end'])?this['_setSuggestionRange'](_0xd52972,this['_model']['createRange'](_0x352dce['start'],_0x303e30['end'])):this['_setSuggestionRange'](_0xd52972,this['_model']['createRange'](_0x303e30['start'],_0x352dce['end'])),_0xd52972;}}const _0xa63152=_0x2375fd(),_0x582db9=_0x1187da['id'],_0x36c5d7=_0x1bd981?'insertion:'+_0x1bd981:'insertion',_0x21c54d=this['_setSuggestionData']({'id':_0xa63152,'type':_0x36c5d7,'createdAt':new Date(),'authorId':_0x582db9,'attributes':_0x4d6f8e});return this['_addSuggestionMarker'](_0x36c5d7,_0xa63152,_0x582db9,_0x352dce),_0x21c54d;}['markMultiRangeInsertion'](_0x58bc17,_0x5e2bea='multi',_0x98ae29={}){const _0x4dc5b2=this['editor']['plugins']['get']('Users')['me'],_0x3055a6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5e2bea,'join');this['_trackingSessionId']&&(_0x98ae29['trackingSessionId']=this['_trackingSessionId']);for(const _0x277e6f of this['getSuggestions']())if(_0x277e6f['author']['id']==_0x4dc5b2['id']&&'insertion'==_0x277e6f['type']&&_0x277e6f['subType']==_0x5e2bea&&zt(_0x277e6f,_0x98ae29)&&(_0x3055a6(_0x277e6f['getRanges'](),_0x58bc17)||_0x3055a6(_0x58bc17,_0x277e6f['getRanges']()))){for(const _0x32a033 of _0x58bc17)_0x277e6f['addRange'](_0x32a033);return _0x277e6f;}for(const {suggestion:_0x28fe8c,meta:_0x3adf37}of this['_findSuggestions'](_0x58bc17,'insertion')){if(!_0x3adf37['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3adf37['containsRangeInObject'])continue;if(!zt(_0x28fe8c,_0x98ae29))continue;let _0x5e67c9=!0x0;for(const _0x7ed479 of _0x28fe8c['getRanges']())for(const _0x6665d6 of _0x58bc17)if(!_0x7ed479['containsRange'](_0x6665d6)){_0x5e67c9=!0x1;break;}if(_0x5e67c9)return _0x28fe8c;}const _0xf56583=_0x2375fd(),_0x5148a7=_0x4dc5b2['id'],_0x33fdb9='insertion:'+_0x5e2bea,_0x2f1a98=this['_setSuggestionData']({'id':_0xf56583,'type':_0x33fdb9,'createdAt':new Date(),'authorId':_0x5148a7,'attributes':_0x98ae29});for(const _0x49d789 of _0x58bc17)this['_addSuggestionMarker'](_0x33fdb9,_0xf56583,_0x5148a7,_0x49d789,Suggestion['getMultiRangeId']());return _0x2f1a98;}['markInlineFormat'](_0x5681a4,_0x251c0a,_0x1f9ef1=null,_0x20f335={}){if(_0x1f9ef1=_0x1f9ef1||Pt(_0x251c0a),_0x5681a4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x20f335['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x52223c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f9ef1,'accept');return this['forceDefaultExecution'](()=>_0x52223c([_0x5681a4],_0x251c0a,_0x20f335)),null;}const _0x5e8ebb=this['editor']['plugins']['get']('Users')['me'],_0x12a459=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f28a4,meta:_0x15d75b}of this['_findSuggestions'](_0x5681a4,'insertion'))_0x15d75b['isOwn']&&!_0x15d75b['isInsideObject']&&_0x12a459['push'](..._0x3f28a4['getRanges']());}const _0x5b5b00=function(_0x29734c,_0x22b7fd){const _0x31fcc6=[];for(const _0x2123d7 of _0x22b7fd){const _0x8d7ed3=_0x29734c['getIntersection'](_0x2123d7);_0x8d7ed3&&_0x31fcc6['push'](_0x8d7ed3);}return _0x31fcc6;}(_0x5681a4,_0x12a459),_0x58efa6=function(_0x328d5b,_0x460856){const _0xf500=[_0x328d5b];for(const _0x32f87e of _0x460856){let _0x256ad9=0x0;for(;_0x256ad9<_0xf500['length'];){const _0x19cd2e=_0xf500[_0x256ad9]['getDifference'](_0x32f87e);_0xf500['splice'](_0x256ad9,0x1,..._0x19cd2e),_0x256ad9+=_0x19cd2e['length'];}}return _0xf500;}(_0x5681a4,_0x12a459);_0x5b5b00['length']&&this['_model']['change'](()=>{for(const _0x3ec86c of _0x5b5b00){const _0x514176=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f9ef1,'accept');this['forceDefaultExecution'](()=>_0x514176([_0x3ec86c],_0x251c0a,_0x20f335));}});for(const _0x19c9ff of _0x58efa6){let _0x2c14da=null,_0x29bd21=_0x19c9ff['start'],_0x4c6ecf=_0x19c9ff['end'];for(const {suggestion:_0x33ab4c,meta:_0x5163c7}of this['_findSuggestions'](_0x19c9ff,'formatInline')){if(!_0x5163c7['isOwn'])continue;if(_0x33ab4c['subType']!=_0x1f9ef1)continue;if(!zt(_0x33ab4c,_0x20f335))continue;const _0x5e5821=_0x33ab4c['getFirstRange']();if(_0x5e5821['containsRange'](_0x19c9ff,!0x0))return null;_0x29bd21=_0x29bd21['isBefore'](_0x5e5821['start'])?_0x29bd21:_0x5e5821['start'],_0x4c6ecf=_0x4c6ecf['isAfter'](_0x5e5821['end'])?_0x4c6ecf:_0x5e5821['end'],_0x2c14da?_0x5e5821['start']['isBefore'](_0x2c14da['getFirstRange']()['start'])?(_0x2c14da['removeMarkers'](),_0x2c14da=_0x33ab4c):_0x33ab4c['removeMarkers']():_0x2c14da=_0x33ab4c;}const _0x35e440=this['_model']['createRange'](_0x29bd21,_0x4c6ecf);if(_0x2c14da)this['_setSuggestionRange'](_0x2c14da,_0x35e440);else{const _0x15f5c9=_0x2375fd(),_0x3467f6=_0x5e8ebb['id'];this['_setSuggestionData']({'id':_0x15f5c9,'type':'formatInline:'+_0x1f9ef1,'data':_0x251c0a,'createdAt':new Date(),'authorId':_0x3467f6,'attributes':_0x20f335}),this['_addSuggestionMarker']('formatInline:'+_0x1f9ef1,_0x15f5c9,_0x3467f6,_0x35e440);}}return null;}['markBlockFormat'](_0xf7fe61,_0x55a61b,_0x447166=[],_0xc2cec=null,_0x1e3bf9={}){_0x55a61b['formatGroupId']||(_0x55a61b['formatGroupId']=_0x55a61b['commandName']),_0x55a61b['multipleBlocks']=_0xf7fe61['is']('range'),_0xc2cec=_0xc2cec||Pt(_0x55a61b);const _0x1bb7e3=_0x447166['map'](_0x45bda5=>Vt(_0x45bda5,this['_model'])),_0x459a82=_0xf7fe61['is']('range')?_0xf7fe61:Vt(_0xf7fe61,this['_model']);if(this['_trackingSessionId']&&(_0x1e3bf9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x56db8b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc2cec,'accept');return this['forceDefaultExecution'](()=>_0x56db8b([_0x459a82],_0x55a61b,_0x1e3bf9)),null;}_0x1bb7e3['push'](_0x459a82);let _0x4238b6=!0x0;for(const _0x5a8d40 of _0x1bb7e3)if(!this['_rangeIsInLocalUserInsertion'](_0x5a8d40)){_0x4238b6=!0x1;break;}if(_0x4238b6&&'always'!==this['_trackFormatChanges']){const _0x34c51b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc2cec,'accept');return this['forceDefaultExecution'](()=>_0x34c51b([_0x459a82],_0x55a61b,_0x1e3bf9)),null;}let _0x1e9775=null,_0xd1ccd5=_0x459a82['start'],_0x343439=_0x459a82['end'];for(const {suggestion:_0x4de1fa,meta:_0x579212}of this['_findSuggestions'](_0x459a82,'formatBlock')){if(!_0x579212['isOwn'])continue;if(_0x579212['isNextTo']||_0x579212['containsRangeInObject']||_0x579212['isInsideObject'])continue;if(_0x4de1fa['data']['formatGroupId']!=_0x55a61b['formatGroupId'])continue;if(!zt(_0x4de1fa,_0x1e3bf9))continue;const _0x15b658=_0x4de1fa['getFirstRange']();if(_0x4de1fa['subType']==_0xc2cec){if(_0x15b658['containsRange'](_0x459a82,!0x0))return null;_0xd1ccd5=_0xd1ccd5['isBefore'](_0x15b658['start'])?_0xd1ccd5:_0x15b658['start'],_0x343439=_0x343439['isAfter'](_0x15b658['end'])?_0x343439:_0x15b658['end'],_0x1e9775?_0x15b658['start']['isBefore'](_0x1e9775['getFirstRange']()['start'])?(_0x1e9775['removeMarkers'](),_0x1e9775=_0x4de1fa):_0x4de1fa['removeMarkers']():_0x1e9775=_0x4de1fa;}else{const _0x26204f=_0x459a82['getIntersection'](_0x15b658);this['_cutOutSuggestionMarker'](_0x4de1fa,_0x26204f);}}const _0x8970fa=this['editor']['plugins']['get']('Users')['me'],_0xef0530=_0x2375fd(),_0x100e82=_0x8970fa['id'];if(_0x1e9775)return this['_setSuggestionRange'](_0x1e9775,this['_model']['createRange'](_0xd1ccd5,_0x343439)),_0x1e9775;{const _0xe0005e=this['_setSuggestionData']({'id':_0xef0530,'type':'formatBlock:'+_0xc2cec,'data':_0x55a61b,'createdAt':new Date(),'authorId':_0x100e82,'attributes':_0x1e3bf9});return this['_addSuggestionMarker']('formatBlock:'+_0xc2cec,_0xef0530,_0x100e82,this['_model']['createRange'](_0xd1ccd5,_0x343439)),_0xe0005e;}}['markMultiRangeBlockFormat'](_0x5122df,_0x52e4b6,_0xf13914=[],_0x38032b=null,_0xe32fc9={}){_0x52e4b6['formatGroupId']||(_0x52e4b6['formatGroupId']=_0x52e4b6['commandName']);const _0x515af5=_0x5122df[0x0];_0x52e4b6['multipleBlocks']=_0x515af5['is']('range'),_0x38032b=_0x38032b||Pt(_0x52e4b6);const _0x2580e0=_0xf13914['map'](_0x12d1fb=>Vt(_0x12d1fb,this['_model'])),_0x3d121e=_0x515af5['is']('range')?_0x5122df:_0x5122df['map'](_0x33bca1=>Vt(_0x33bca1,this['_model']));if(this['_trackingSessionId']&&(_0xe32fc9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2e1ff5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38032b,'accept');return this['forceDefaultExecution'](()=>_0x2e1ff5(_0x3d121e,_0x52e4b6,_0xe32fc9)),null;}_0x2580e0['push'](..._0x3d121e);let _0x526c95=!0x0;for(const _0x254264 of _0x2580e0)if(!this['_rangeIsInLocalUserInsertion'](_0x254264)){_0x526c95=!0x1;break;}if(_0x526c95&&'always'!==this['_trackFormatChanges']){const _0x64493b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38032b,'accept');return this['forceDefaultExecution'](()=>_0x64493b(_0x3d121e,_0x52e4b6,_0xe32fc9)),null;}const _0x23466a=this['editor']['plugins']['get']('Users')['me'];for(const _0x4463f5 of this['getSuggestions']()){const _0x3df193=_0x4463f5['data'];if(_0x4463f5['author']['id']!=_0x23466a['id'])continue;if('formatBlock'!=_0x4463f5['type']||_0x3df193['formatGroupId']!=_0x52e4b6['formatGroupId'])continue;if(!zt(_0x4463f5,_0xe32fc9))continue;const _0x2008cf=_0x4463f5['subType']==_0x38032b;for(let _0x2e3de2=0x0;_0x2e3de2<_0x3d121e['length'];_0x2e3de2++){const _0xf9c3eb=_0x3d121e[_0x2e3de2];for(const _0x5bac66 of _0x4463f5['getMarkers']()){const _0x36f64c=_0x5bac66['getRange']();if(_0xf9c3eb['isEqual'](_0x36f64c)){_0x2008cf?(_0x3d121e['splice'](_0x2e3de2,0x1),_0x2e3de2--):_0x4463f5['removeMarker'](_0x5bac66['name']);break;}}}}if(0x0==_0x3d121e['length'])return null;const _0x506427=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38032b,'join');for(const _0x76909e of this['getSuggestions']()){const _0x16709a=_0x76909e['data'];if(_0x76909e['author']['id']==_0x23466a['id']&&('formatBlock'==_0x76909e['type']&&_0x16709a['formatGroupId']==_0x52e4b6['formatGroupId']&&_0x76909e['subType']==_0x38032b&&zt(_0x76909e,_0xe32fc9)&&(_0x506427(_0x76909e['getRanges'](),_0x3d121e)||_0x506427(_0x3d121e,_0x76909e['getRanges']())))){for(const _0x1d17a1 of _0x3d121e)_0x76909e['addRange'](_0x1d17a1);return _0x76909e;}}const _0x1a9ecf=_0x2375fd(),_0xe22469=_0x23466a['id'],_0x470e34='formatBlock:'+_0x38032b,_0x482baa=this['_setSuggestionData']({'id':_0x1a9ecf,'type':_0x470e34,'data':_0x52e4b6,'createdAt':new Date(),'authorId':_0xe22469,'attributes':_0xe32fc9});for(const _0x547e27 of _0x3d121e)this['_addSuggestionMarker'](_0x470e34,_0x1a9ecf,_0xe22469,_0x547e27,Suggestion['getMultiRangeId']());return _0x482baa;}['markDeletion'](_0x4e9a23,_0x3f9132=null,_0x2e8f1d={}){if(_0x4e9a23['isCollapsed'])return null;const _0x73aeb7=this['editor']['plugins']['get']('Users')['me'],_0x1aa8f4=new _0x4099e3(_0x4e9a23['start'],_0x4e9a23['end']);this['_trackingSessionId']&&(_0x2e8f1d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x318e5d,meta:_0x1832aa}of this['_findSuggestions'](_0x1aa8f4,'insertion'))if(_0x1832aa['isOwn']&&!_0x1832aa['isNextTo']){if(_0x318e5d['isMultiRange']){const _0x49c104=_0x318e5d['getRanges']()['filter'](_0x204617=>'$graveyard'!=_0x204617['root']['rootName']);_0x49c104['every'](_0x6c7f9c=>_0x1aa8f4['containsRange'](_0x6c7f9c,!0x0))&&_0x318e5d['discard']();if(_0x49c104['some'](_0x33155b=>_0x33155b['containsRange'](_0x1aa8f4,!0x0))){const _0x728cbc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f9132,'accept');return this['forceDefaultExecution'](()=>_0x728cbc([_0x1aa8f4],null,_0x2e8f1d)),null;}}else{const _0x1f26e5=_0x1aa8f4['getIntersection'](_0x318e5d['getFirstRange']());null!==_0x1f26e5&&_0x318e5d['_onDiscard']([_0x1f26e5],null,_0x2e8f1d);}}if(_0x1aa8f4['detach'](),_0x1aa8f4['isCollapsed']||'$graveyard'==_0x1aa8f4['root']['rootName'])return null;let _0x15f2e4=null,_0x5a8f08=_0x1aa8f4['start'],_0x15081b=_0x1aa8f4['end'];const _0x47f8b4=this['_findSuggestions'](_0x1aa8f4,'deletion');for(const {suggestion:_0x49da64,meta:_0xa647af}of _0x47f8b4){const _0x5d0206=this['_model']['createRange'](_0x5a8f08,_0x15081b);if(_0xa647af['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa647af['containsRangeInObject']&&!_0xa647af['isInsideObject'])){if(_0x49da64['isMultiRange']){if(!zt(_0x49da64,_0x2e8f1d))continue;let _0x47435c=!0x0;for(const _0x42adc2 of _0x49da64['getRanges']()){if(_0x42adc2['containsRange'](_0x5d0206,!0x0))return _0x49da64;_0x5d0206['containsRange'](_0x42adc2)||(_0x47435c=!0x1);}_0x47435c&&_0x49da64['discard']();}else{const _0x242e45=_0x49da64['getFirstRange']();if(_0x242e45['containsRange'](_0x5d0206,!0x0))return _0x49da64;if(!zt(_0x49da64,_0x2e8f1d)){_0x5d0206['containsRange'](_0x242e45)?_0x49da64['removeMarkers']():_0x242e45['containsPosition'](_0x5a8f08)?_0x5a8f08=_0x242e45['end']:_0x242e45['containsPosition'](_0x15081b)&&(_0x15081b=_0x242e45['start']);continue;}_0x5a8f08=_0x5a8f08['isBefore'](_0x242e45['start'])?_0x5a8f08:_0x242e45['start'],_0x15081b=_0x15081b['isAfter'](_0x242e45['end'])?_0x15081b:_0x242e45['end'],_0x2e8f1d=Object['assign']({},_0x49da64['attributes']),_0x15f2e4?_0x242e45['start']['isBefore'](_0x15f2e4['getFirstRange']()['start'])?(_0x15f2e4['removeMarkers'](),_0x15f2e4=_0x49da64):_0x49da64['removeMarkers']():_0x15f2e4=_0x49da64;}}}if(_0x15f2e4)return this['_setSuggestionRange'](_0x15f2e4,this['_model']['createRange'](_0x5a8f08,_0x15081b)),_0x15f2e4;{const _0x281579=_0x2375fd(),_0x56f9cd=this['_model']['createRange'](_0x5a8f08,_0x15081b),_0x19b970=_0x73aeb7['id'],_0x39b3d2=_0x3f9132?'deletion:'+_0x3f9132:'deletion',_0x4c59b0=this['_setSuggestionData']({'id':_0x281579,'type':_0x39b3d2,'createdAt':new Date(),'authorId':_0x19b970,'attributes':_0x2e8f1d});return this['_addSuggestionMarker'](_0x39b3d2,_0x281579,_0x19b970,_0x56f9cd),_0x4c59b0;}}['markMultiRangeDeletion'](_0x370c20,_0x22ee2a='multi',_0x355613={}){const _0x2ee952=this['editor']['plugins']['get']('Users')['me'],_0x5c0339=_0x370c20['map'](_0x486222=>new _0x4099e3(_0x486222['start'],_0x486222['end'])),_0x2c66fc=new Set();this['_trackingSessionId']&&(_0x355613['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34b4bb,meta:_0x1bab15}of this['_findSuggestions'](_0x5c0339,'insertion'))_0x1bab15['isOwn']&&!_0x1bab15['isNextTo']&&_0x2c66fc['add'](_0x34b4bb);for(const _0x591a7f of _0x2c66fc)if(_0x591a7f['isMultiRange']){const _0xec5cfd=_0x591a7f['getRanges']();(!_0x591a7f['attributes']||!_0x591a7f['attributes']['skipNestingCheck'])&&(_0xec5cfd['every'](_0x1ab958=>_0x5c0339['some'](_0x82fdc1=>_0x82fdc1['containsRange'](_0x1ab958,!0x0)))&&_0x591a7f['discard']());if(_0x5c0339['every'](_0x43ff67=>_0xec5cfd['some'](_0x51a1b6=>_0x51a1b6['containsRange'](_0x43ff67,!0x0)))){const _0xd93b56=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22ee2a,'accept');return this['forceDefaultExecution'](()=>_0xd93b56(_0x370c20,null,_0x355613)),null;}}else{const _0x3a080d=_0x591a7f['getFirstRange']();_0x5c0339['some'](_0x514630=>_0x514630['containsRange'](_0x3a080d,!0x0))&&_0x591a7f['discard']();if(_0x5c0339['every'](_0x56c43f=>_0x3a080d['containsRange'](_0x56c43f,!0x0))){const _0x407e96=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22ee2a,'accept');return this['forceDefaultExecution'](()=>_0x407e96(_0x5c0339,null,_0x355613)),null;}}const _0xe8ff4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22ee2a,'join');let _0x12c0cc=null;for(const _0x2cfcd8 of this['getSuggestions']())if(_0x2cfcd8['author']['id']==_0x2ee952['id']&&_0x2cfcd8['isInContent']&&'deletion'==_0x2cfcd8['type']&&_0x2cfcd8['subType']==_0x22ee2a&&zt(_0x2cfcd8,_0x355613)&&(_0xe8ff4(_0x2cfcd8['getRanges'](),_0x5c0339)||_0xe8ff4(_0x5c0339,_0x2cfcd8['getRanges']()))){if(_0x12c0cc){if(_0x2cfcd8['commentThread']&&_0x2cfcd8['commentThread']['length'])continue;for(const _0x166626 of _0x2cfcd8['getRanges']())_0x12c0cc['isIntersectingWithRange'](_0x166626)||_0x12c0cc['addRange'](_0x166626);_0x2cfcd8['removeMarkers']();}else{_0x12c0cc=_0x2cfcd8;for(const _0x330756 of _0x5c0339)_0x2cfcd8['isIntersectingWithRange'](_0x330756)||_0x2cfcd8['addRange'](_0x330756);}}if(_0x12c0cc)return _0x12c0cc;_0x2c66fc['clear']();for(const {suggestion:_0x158b64,meta:_0x481bbb}of this['_findSuggestions'](_0x5c0339,'deletion'))_0x481bbb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x481bbb['containsRangeInObject']&&!_0x481bbb['isInsideObject'])&&zt(_0x158b64,_0x355613)&&_0x2c66fc['add'](_0x158b64);for(const _0x2fe6cb of _0x2c66fc){const _0x4f8f42=_0x2fe6cb['getRanges']();if(!_0x355613||!_0x355613['skipNestingCheck']){if(_0x5c0339['every'](_0x65c49=>_0x4f8f42['some'](_0xe65290=>_0xe65290['containsRange'](_0x65c49,!0x0))))return _0x2fe6cb;}(!_0x2fe6cb['attributes']||!_0x2fe6cb['attributes']['skipNestingCheck'])&&(_0x4f8f42['every'](_0x2a32e2=>_0x5c0339['some'](_0x126a16=>_0x126a16['containsRange'](_0x2a32e2,!0x0)))&&_0x2fe6cb['discard']());}const _0x260834=_0x2375fd(),_0x4bc96b=_0x2ee952['id'],_0x5c4d64='deletion:'+_0x22ee2a,_0x36a936=this['_setSuggestionData']({'id':_0x260834,'type':_0x5c4d64,'createdAt':new Date(),'authorId':_0x4bc96b,'attributes':_0x355613});for(const _0x4d7ee1 of _0x5c0339)_0x4d7ee1['detach'](),_0x4d7ee1['isCollapsed']||'$graveyard'==_0x4d7ee1['root']['rootName']||this['_addSuggestionMarker'](_0x5c4d64,_0x260834,_0x4bc96b,_0x4d7ee1,Suggestion['getMultiRangeId']());return _0x36a936;}['markAttributeChange'](_0x16f04b,_0x53700e,_0x50b450,_0x7d894d,_0x38b361){if(_0x16f04b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1d33bb=this['editor']['plugins']['get']('Users')['me']['id'],_0x108fef=Array['from'](this['_suggestions']['values']())['filter'](_0xb205c0=>'attribute'==_0xb205c0['type']&&_0xb205c0['data']['key']==_0x53700e&&_0xb205c0['isIntersectingWithRange'](_0x16f04b));if(this['_trackingSessionId']&&(_0x38b361['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xcbcdbd=this['_findSuggestions'](_0x16f04b,'insertion')['filter'](({meta:_0x946ea3})=>_0x946ea3['isOwn']&&!_0x946ea3['isInsideObject']&&!_0x946ea3['isNextTo'])['map'](({suggestion:_0x3e32f5})=>_0x3e32f5);_0x108fef['unshift'](..._0xcbcdbd);}const _0x3ab6fb=new Map([[_0x16f04b,_0x50b450]]);for(const _0x1dda3e of _0x108fef){const _0x364d0b='attribute'==_0x1dda3e['type']?_0x1dda3e['data']['oldValue']:void 0x0,_0x365810=_0x1dda3e['getFirstRange'](),_0x3d20d9=Array['from'](_0x3ab6fb['keys']())['find'](_0x24a14a=>_0x24a14a['isIntersecting'](_0x365810));if(!_0x3d20d9)continue;const _0x4a8d7e=_0x3d20d9['getDifference'](_0x365810);this['_suggestionsConversion']['isBlockAttribute'](_0x53700e)&&'insertion'==_0x1dda3e['type']&&0x0!=_0x4a8d7e['length']||(_0x3ab6fb['delete'](_0x3d20d9),_0x4a8d7e['forEach'](_0x3e54cf=>{_0x3ab6fb['set'](_0x3e54cf,_0x50b450);}),'insertion'!=_0x1dda3e['type']&&_0x364d0b!=_0x7d894d&&_0x3ab6fb['set'](_0x3d20d9['getIntersection'](_0x365810),_0x364d0b));}const _0x393f10=[];for(const [_0x1fc3c2,_0x57fdee]of _0x3ab6fb){const _0x10d186=_0x2375fd(),_0x1d0743={'key':_0x53700e,'oldValue':_0x57fdee,'newValue':_0x7d894d};_0x53700e['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':_0x53700e});const _0x57d1c5=('attribute:'+(_0x53700e+'|'+Pt({'newValue':_0x7d894d})))['substring'](0x0,0x3c),_0x49b799=this['_setSuggestionData']({'id':_0x10d186,'type':_0x57d1c5,'data':_0x1d0743,'createdAt':new Date(),'authorId':_0x1d33bb,'attributes':_0x38b361});_0x393f10['push'](_0x49b799),this['_addSuggestionMarker'](_0x57d1c5,_0x10d186,_0x1d33bb,_0x1fc3c2);}return _0x393f10;}['enableDefaultAttributesIntegration'](_0xc684b9){this['enableCommand'](_0xc684b9,(_0x54a9c8,..._0x387dbf)=>{this['recordAttributeChanges'](()=>{_0x54a9c8(..._0x387dbf);});});}['startTrackingSession'](_0x2860ed){return this['_trackingSessionId']=void 0x0!==_0x2860ed?_0x2860ed:_0x2375fd(),this['_trackingSessionId'];}['_getAttributeKey'](_0x54124f){return'attribute'==_0x54124f['type']?Xt(_0x54124f['subType']):null;}['_applyOperationsAsSuggestions'](_0x5f2fce){if(0x0==_0x5f2fce['length'])return;const _0x4fda74=this['editor'],_0x31e2ab=_0x4fda74['plugins']['get'](_0x56c137),_0x2d9d03=[];_0x4fda74['model']['change'](_0x3fde96=>{for(let _0x5915c7=0x0;_0x5915c7<_0x5f2fce['length'];_0x5915c7++){const _0x4537d3=_0x5f2fce[_0x5915c7];if(_0x4537d3['baseVersion']=_0x4fda74['model']['document']['version'],_0x4537d3['isDocumentOperation']=!0x0,_0x31e2ab['isMarkedRemoveOperation'](_0x4537d3)){const _0x46f615=_0x5dc878(_0x4537d3['newRange'],_0x4fda74['model']);_0x2d9d03['unshift'](_0x4099e3['fromRange'](_0x46f615));}else switch(_0x4537d3['type']){case'rename':{const _0x59a0dc=_0x4537d3['oldName'],_0x8d6eee=_0x4537d3['newName'];if(_0x59a0dc==_0x8d6eee)break;_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);const _0x281ac0='$elementName',_0x21fd99=_0x4537d3['position'],_0x39dbfb=_0x4fda74['model']['createRange'](_0x21fd99,_0x4fda74['model']['createPositionAt'](_0x21fd99['nodeAfter'],'end'));this['markAttributeChange'](_0x39dbfb,_0x281ac0,_0x59a0dc,_0x8d6eee,{'groupId':_0x2375fd()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3d74f7=_0x4537d3['oldValue'],_0x103244=_0x4537d3['newValue'];if(_0x3d74f7==_0x103244)break;_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);const _0x4c856f=_0x4537d3['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4c856f))break;const _0x16fc77=_0x5dc878(_0x4537d3['range'],_0x4fda74['model']);this['markAttributeChange'](_0x16fc77,_0x4c856f,_0x3d74f7,_0x103244,{'groupId':_0x2375fd()});break;}case'insert':{_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);if(_0x5f2fce[_0x5915c7+0x1]&&'move'==_0x5f2fce[_0x5915c7+0x1]['type'])break;const _0x232c47=_0x4537d3['position'],_0x485a7b=_0x4537d3['howMany'],_0x4632ca=_0x5dc878(_0x4fda74['model']['createRange'](_0x232c47,_0x232c47['getShiftedBy'](_0x485a7b)),_0x4fda74['model']);this['markInsertion'](_0x4632ca);break;}case'split':{_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);const _0x28d6fa=_0x4537d3['splitPosition'],_0x21d140=_0x4537d3['moveTargetPosition'];this['markInsertion'](_0x4fda74['model']['createRange'](_0x28d6fa,_0x21d140));break;}case'move':case'remove':_0x3fde96['batch']['addOperation'](_0x4537d3),_0x4fda74['model']['applyOperation'](_0x4537d3);}}for(const _0x20f646 of _0x2d9d03)_0x20f646['detach'](),this['markDeletion'](_0x20f646);});}['_setSuggestionRange'](_0x5e9153,_0x54131d){const _0x2911b8=_0x5e9153['getFirstMarker']();this['_model']['change'](_0x236331=>{_0x236331['updateMarker'](_0x2911b8,{'range':_0x54131d});});}['_addThreadToSuggestion'](_0x344b25){const _0x34725b=_0x344b25['id'],_0x542bd9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x34725b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x542bd9,'threadId':_0x34725b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1466d5=this['_commentsRepository']['getCommentThread'](_0x34725b);_0x1466d5['unbind']('isRemovable'),_0x1466d5['isRemovable']=!0x1,_0x344b25['commentThread']=_0x1466d5;}['_checkSuggestionCorrectness'](_0x3780dd,_0x31ca4e,_0x5ecf82,_0x43146d){if(_0x3780dd['type']!=_0x31ca4e||_0x3780dd['subType']!=_0x5ecf82||_0x3780dd['creator']['id']!=_0x43146d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2992e4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1ee276,_0x11ac49){const _0x356ac3=_0x1ee276['getFirstRange']();if(_0x11ac49['isEqual'](_0x356ac3))_0x1ee276['removeMarkers']();else{if(_0x356ac3['containsRange'](_0x11ac49)){const _0x745ed4=this['_model']['createPositionAt'](_0x11ac49['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ee276,this['_model']['createRange'](_0x356ac3['start'],_0x745ed4));const _0x2a7193=_0x2375fd(),_0x47137e=_0x1ee276['creator']['id'],_0xb1add8=_0x1ee276['type']+':'+_0x1ee276['subType'];this['_setSuggestionData']({'id':_0x2a7193,'type':_0xb1add8,'createdAt':new Date(),'authorId':_0x47137e,'data':_0x1ee276['data'],'attributes':_0x1ee276['attributes']});const _0x4cb776=this['_model']['createPositionAt'](_0x11ac49['end']['parent'],'after'),_0x53cc10=this['_model']['createRange'](_0x4cb776,_0x356ac3['end']);this['_addSuggestionMarker'](_0xb1add8,_0x2a7193,_0x47137e,_0x53cc10);}else{if(_0x356ac3['containsPosition'](_0x11ac49['start'])){const _0x3b1c64=this['_model']['createPositionAt'](_0x11ac49['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ee276,this['_model']['createRange'](_0x356ac3['start'],_0x3b1c64));}else{const _0x149eab=this['_model']['createPositionAt'](_0x11ac49['end']['parent'],'after');this['_setSuggestionRange'](_0x1ee276,this['_model']['createRange'](_0x149eab,_0x356ac3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x312e84){for(const {suggestion:_0x1605cc,meta:_0x1e99a3}of this['_findSuggestions'](_0x312e84,'insertion')){if(!_0x1e99a3['isOwn'])continue;const _0x2e1518=_0x1605cc['getRanges']();for(const _0x992893 of _0x2e1518)if(!_0x312e84['getDifference'](_0x992893)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x22ecef){return this['editor']['plugins']['get']('Users')['getUser'](_0x22ecef);}['_getExternalAuthor'](_0x4ccd9d){const _0x226a95=this['editor']['plugins']['get']('Users'),_0x80c21e=_0x54b6ec('external:'+_0x4ccd9d),_0x42776b=_0x226a95['getUser'](_0x80c21e);return _0x42776b||_0x226a95['addUser']({'id':_0x80c21e,'name':_0x4ccd9d});}['_createSuggestion'](_0x28a2a0,_0x3739bd,_0x1027ce,_0x30e297,_0xf650cd,_0x2f3a6b){const _0xa1557a=this['_getAuthorFromId'](_0x30e297);if(!_0xa1557a)throw new _0x2992e4('track-changes-user-not-found',this,{'authorId':_0x30e297,'suggestionId':_0x1027ce});const _0x27b0cd=this['_suggestionFactory']['buildSuggestion'](_0x28a2a0,_0x3739bd,_0x1027ce,_0xa1557a,_0xf650cd,_0x4ee85c=>{this['_updateSuggestionData'](_0x1027ce,{'attributes':_0x4ee85c});const _0x4b02c5=this['getSuggestion'](_0x1027ce);this['_joinWithAdjacentSuggestions'](new Set([_0x4b02c5])),this['_refreshSuggestionsChain'](new Set([_0x4b02c5]));},_0x2f3a6b);return this['listenTo'](_0x27b0cd,'accept',()=>{this['_updateSuggestionData'](_0x1027ce,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x27b0cd,'discard',()=>{this['_updateSuggestionData'](_0x1027ce,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1027ce,_0x27b0cd),this['_suggestionState']['set'](_0x27b0cd,'notReady'),_0x27b0cd;}['_breakSuggestionMarker'](_0x12953c,_0x3fa79f,_0x31f366){const _0x44bdf2=_0x12953c['getFirstRange'](),_0x51e558=_0x44bdf2['start'],_0x590acf=_0x44bdf2['end'];this['_setSuggestionRange'](_0x12953c,this['_model']['createRange'](_0x51e558,_0x3fa79f));const _0x469eda=_0x2375fd(),_0x1d10d0=_0x12953c['creator']['id'],_0x34e61b=_0x12953c['type']+(_0x12953c['subType']?':'+_0x12953c['subType']:'');this['_setSuggestionData']({'id':_0x469eda,'type':_0x34e61b,'createdAt':new Date(),'authorId':_0x1d10d0,'originalSuggestionId':_0x12953c['_originalSuggestionId']||_0x12953c['id'],'attributes':_0x12953c['attributes'],'data':_0x12953c['data']});const _0x4bd46c=this['_getAttributeKey'](_0x12953c);('formatBlock'==_0x12953c['type']||_0x4bd46c&&this['_suggestionsConversion']['isBlockAttribute'](_0x4bd46c))&&(_0x31f366=this['_model']['createPositionBefore'](_0x31f366['parent'])),this['_addSuggestionMarker'](_0x34e61b,_0x469eda,_0x1d10d0,this['_model']['createRange'](_0x31f366,_0x590acf));}['_findSuggestions'](_0x165d2f,_0x64943=null){const _0x5cfb90=[],_0x2c71fb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x165d2f)||(_0x165d2f=[_0x165d2f]);for(const _0xb77a89 of this['getSuggestions']()){if(!_0xb77a89['isInContent'])continue;if(_0x64943&&_0xb77a89['type']!=_0x64943)continue;let _0x160c1d=!0x1;for(const _0x5528fc of _0xb77a89['getRanges']()){for(const _0x253a63 of _0x165d2f){const _0x4702ee=_0x253a63['start']['isEqual'](_0x5528fc['end'])||_0x253a63['end']['isEqual'](_0x5528fc['start']);if(_0x4702ee||_0x253a63['getIntersection'](_0x5528fc)){const _0x500ba=_0x253a63['containsRange'](_0x5528fc)&&Dt(this['_model']['schema'],_0x5528fc['start'],_0x253a63),_0x3033a9=_0x5528fc['containsRange'](_0x253a63)&&Dt(this['_model']['schema'],_0x253a63['start'],_0x5528fc);_0x5cfb90['push']({'suggestion':_0xb77a89,'meta':{'isOwn':_0x2c71fb==_0xb77a89['author'],'isNextTo':_0x4702ee,'isInsideObject':_0x500ba,'containsRangeInObject':_0x3033a9}}),_0x160c1d=!0x0;break;}}if(_0x160c1d)break;}}return _0x5cfb90;}['_addSuggestionMarker'](_0x374180,_0x5e3f56,_0x6f6f22,_0x5361b0,_0x35b66f){this['_model']['change'](_0x308686=>{let _0x238d9c='suggestion:'+_0x374180+':'+_0x5e3f56+':'+_0x6f6f22;_0x35b66f&&(_0x238d9c=_0x238d9c+':'+_0x35b66f),_0x308686['addMarker'](_0x238d9c,{'range':_0x5361b0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1bff89){const _0x3fc857=_0x1bff89['previous'],_0x479d18=_0x1bff89['next'];_0x1bff89['previous']=null,_0x1bff89['next']=null,null!=_0x3fc857&&_0x3fc857['next']==_0x1bff89&&(_0x3fc857['next']=_0x479d18),null!=_0x479d18&&_0x479d18['previous']==_0x1bff89&&(_0x479d18['previous']=_0x3fc857),'ready'==this['_suggestionState']['get'](_0x1bff89)&&(this['_suggestionState']['set'](_0x1bff89,'removed'),this['fire']('suggestionUnloaded',_0x1bff89,_0x3fc857,_0x479d18));}['_setSuggestionData'](_0x1a2e9c){const _0x342d5f=_0x1a2e9c['id'],_0x50d00d=this['addSuggestionData'](_0x1a2e9c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b46ee=this['editor']['plugins']['get']('PendingActions'),_0x36071f=_0x50d00d['hasComments'],_0x3786b5=_0x50d00d['subType']?_0x50d00d['type']+':'+_0x50d00d['subType']:_0x50d00d['type'],_0x3a484b=this['editor']['locale'],_0x5bd99d=_0x1b46ee['add'](Tt(_0x3a484b,'PENDING_ACTION_SUGGESTION')),_0x5b9c3d={'id':_0x342d5f,'type':_0x3786b5,'hasComments':_0x36071f,'data':_0x1a2e9c['data']||null,'originalSuggestionId':_0x1a2e9c['originalSuggestionId']||null,'attributes':_0x50d00d['attributes']};this['_adapter']['addSuggestion'](_0x5b9c3d)['then'](_0x4cd245=>{_0x50d00d['_saved']=!0x0,_0x1b46ee['remove'](_0x5bd99d),_0x4cd245&&_0x4cd245['createdAt']&&(this['_suggestions']['get'](_0x342d5f)['createdAt']=_0x4cd245['createdAt']);})['catch'](_0x5d5eaf=>{throw _0x50b7b8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x50d00d['discard']();}),_0x50d00d['stopListening'](),this['_suggestions']['delete'](_0x50d00d['id']),this['_suggestionState']['delete'](_0x50d00d),_0x5d5eaf;});}return _0x50d00d;}['_updateSuggestionData'](_0x546ea9,_0x303475){const _0x3bd978=this['editor']['plugins']['get']('PendingActions'),_0x11ecb3=this['getSuggestion'](_0x546ea9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x11ecb3['_saved']){const _0x41150e=_0x3bd978['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x546ea9,_0x303475)['then'](()=>{_0x3bd978['remove'](_0x41150e);});}else _0x11ecb3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x546ea9,_0x303475);});}}['_getSuggestionData'](_0x33ad96){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2992e4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x33ad96);}['_handleNewSuggestionMarker'](_0x44764a){const {id:_0x820fb7,type:_0x320428,subType:_0x4420d9,authorId:_0x5a079d}=_0x11d9f0(_0x44764a),_0x19a026=this['_suggestions']['get'](_0x820fb7)||this['_createSuggestion'](_0x320428,_0x4420d9,_0x820fb7,_0x5a079d,{});switch(this['_checkSuggestionCorrectness'](_0x19a026,_0x320428,_0x4420d9,_0x5a079d),this['_suggestionState']['get'](_0x19a026)){case'notReady':this['_getSuggestionData'](_0x820fb7)['then'](_0x4fa525=>{let _0x2667bd=Promise['resolve']();_0x4fa525['hasComments']&&(_0x2667bd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x820fb7})),_0x2667bd['then'](()=>{this['addSuggestionData'](_0x4fa525)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x19a026,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x820fb7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x19a026,'ready'),this['fire']('suggestionLoaded',_0x19a026);break;case'ready':this['fire']('suggestionChanged',_0x19a026);}return _0x19a026['addMarkerName'](_0x44764a),_0x19a026;}['_refreshSuggestionsChain'](_0x56ac9a){const _0x1ed019=Array['from'](_0x56ac9a),_0x494de1=_0x1ed019['filter'](_0x44e4f0=>'attribute'==_0x44e4f0['type']);this['_refreshAttributeSuggestionsChain'](_0x494de1);const _0x3471e8=_0x1ed019['filter'](_0x9468f1=>!_0x9468f1['isMultiRange']&&'attribute'!=_0x9468f1['type']),_0x528a77=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa7c6a5=>!_0xa7c6a5['isMultiRange']&&'attribute'!=_0xa7c6a5['type']),_0x27176d=_0x528a77['filter'](_0x1ec447=>!_0x56ac9a['has'](_0x1ec447)),_0x273cff=new Map(_0x528a77['map'](_0x5920e6=>[_0x5920e6,this['_suggestionFactory']['getSuggestionCallback'](_0x5920e6['type'],_0x5920e6['subType'],'chain')])),_0x237656=new Map(_0x528a77['map'](_0x4305d7=>[_0x4305d7,_0x4305d7['getFirstRange']()])),_0x4d9d65=new Set(),_0xa4e92=new Set();for(let _0x3c495b=0x0;_0x3c495b<_0x3471e8['length'];_0x3c495b++)_0x39942e(_0x3471e8[_0x3c495b],_0x3471e8,_0x3c495b+0x1);for(let _0x40a571=0x0;_0x40a571<_0x3471e8['length'];_0x40a571++)_0x39942e(_0x3471e8[_0x40a571],_0x27176d,0x0);const _0x505af8=new Set();for(let _0xe358c2=0x0;_0xe358c2<_0x3471e8['length'];_0xe358c2++){const _0x4bbb17=_0x3471e8[_0xe358c2];!_0xa4e92['has'](_0x4bbb17)&&_0x4bbb17['previous']&&(_0x505af8['add'](_0x4bbb17['previous']),_0x4bbb17['previous']['next']===_0x4bbb17&&(_0x4bbb17['previous']['next']=null),_0x4bbb17['previous']=null),!_0x4d9d65['has'](_0x4bbb17)&&_0x4bbb17['next']&&(_0x505af8['add'](_0x4bbb17['next']),_0x4bbb17['next']['previous']===_0x4bbb17&&(_0x4bbb17['next']['previous']=null),_0x4bbb17['next']=null);}function _0x39942e(_0x3f1180,_0x14170a,_0x8c48){for(let _0x2f0c79=_0x8c48;_0x2f0c79<_0x14170a['length'];_0x2f0c79++){const _0x4265c2=_0x51f4bf(_0x3f1180,_0x14170a[_0x2f0c79]);_0x4265c2&&(_0x4265c2[0x0]['next']=_0x4265c2[0x1],_0x4265c2[0x1]['previous']=_0x4265c2[0x0],_0x4d9d65['add'](_0x4265c2[0x0]),_0xa4e92['add'](_0x4265c2[0x1]));}}function _0x51f4bf(_0x268ba9,_0x23fca1){if(_0x268ba9['author']['id']!==_0x23fca1['author']['id'])return null;const _0x4c91b5=_0x273cff['get'](_0x268ba9)(_0x268ba9,_0x23fca1,_0x237656['get'](_0x268ba9),_0x237656['get'](_0x23fca1));if(!_0x4c91b5)return null;return _0x273cff['get'](_0x23fca1)(_0x268ba9,_0x23fca1,_0x237656['get'](_0x268ba9),_0x237656['get'](_0x23fca1))?_0x4c91b5[0x1]['commentThread']&&_0x4c91b5[0x1]['commentThread']['length']?null:_0x4c91b5:null;}_0x505af8['size']&&this['_refreshSuggestionsChain'](_0x505af8);}['_refreshAttributeSuggestionsChain'](_0x51f81d){if(0x0==_0x51f81d['length'])return;const _0x83e35a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a497b=>'attribute'==_0x5a497b['type']&&_0x5a497b['_isDataLoaded']),_0xd3d6b0=[],_0x360ae=new Map();for(const _0x403e15 of _0x83e35a){const _0x3260d8=_0x54b6ec(_0x403e15['attributes']);_0x360ae['has'](_0x3260d8)||(_0x360ae['set'](_0x3260d8,_0xd3d6b0['length']),_0xd3d6b0['push']([]));const _0x474e34=_0x360ae['get'](_0x3260d8);_0xd3d6b0[_0x474e34]['push'](_0x403e15);}!(function(){_0xd3d6b0['sort']((_0xaecf9d,_0x595bba)=>{const _0x5cbcb0=_0xaecf9d[0x0]['createdAt'],_0x43f703=_0x595bba[0x0]['createdAt'];return _0x5cbcb0==_0x43f703?_0xaecf9d[0x0]['attributes']['groupId']<_0x595bba[0x0]['attributes']['groupId']?-0x1:0x1:_0x5cbcb0<_0x43f703?-0x1:0x1;});for(const _0x56fdd0 of _0xd3d6b0)_0x56fdd0['sort']((_0x1cb86c,_0x30f317)=>_0x1cb86c['id']<_0x30f317['id']?-0x1:0x1);}());for(let _0x3d0b4c=0x0;_0x3d0b4c<_0xd3d6b0['length'];_0x3d0b4c++){if(0x0==_0xd3d6b0[_0x3d0b4c]['length'])continue;const _0x2d66b8=[];for(let _0x287cdf=_0x3d0b4c+0x1;_0x287cdf<_0xd3d6b0['length'];_0x287cdf++)0x0!=_0xd3d6b0[_0x287cdf]['length']&&_0x5e4baa(_0xd3d6b0[_0x3d0b4c],_0xd3d6b0[_0x287cdf])&&_0x2d66b8['push'](_0x287cdf);for(const _0x1b987b of _0x2d66b8)_0xd3d6b0[_0x3d0b4c]=_0xd3d6b0[_0x3d0b4c]['concat'](_0xd3d6b0[_0x1b987b]),_0xd3d6b0[_0x1b987b]=[];}for(const _0x2b90e6 of _0xd3d6b0)for(let _0x1ddc15=0x0;_0x1ddc15<_0x2b90e6['length'];_0x1ddc15++){const _0x2cec76=_0x2b90e6[_0x1ddc15+0x1]||null;_0x2b90e6[_0x1ddc15]['next']!==_0x2cec76&&(_0x2b90e6[_0x1ddc15]['next']=_0x2cec76);}for(const _0x4e5ccc of _0xd3d6b0)for(let _0x4f8ebe=0x0;_0x4f8ebe<_0x4e5ccc['length'];_0x4f8ebe++){const _0x55228f=_0x4e5ccc[_0x4f8ebe-0x1]||null;_0x4e5ccc[_0x4f8ebe]['previous']!==_0x55228f&&(_0x4e5ccc[_0x4f8ebe]['previous']=_0x55228f);}function _0x5e4baa(_0x1fe751,_0x3eae8d){if(_0x1fe751[0x0]['attributes']['groupId']!==_0x3eae8d[0x0]['attributes']['groupId']&&_0x1fe751[0x0]['author']!==_0x3eae8d[0x0]['author'])return!0x1;if(!function(_0x102a64,_0x424cef){if(!_0x102a64['hasComments']&&!_0x424cef['hasComments'])return!0x0;if(_0x102a64['hasComments']&&_0x424cef['hasComments'])return!0x1;if(_0x102a64['hasComments']&&_0x424cef['createdAt']<_0x102a64['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x424cef['hasComments']&&_0x102a64['createdAt']<_0x424cef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1fe751[0x0],_0x3eae8d[0x0]))return!0x1;const _0x22fe35=ot(_0x1fe751[0x0]['attributes'],['groupId','trackingSessionId']),_0x25ddc4=ot(_0x3eae8d[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x22fe35,_0x25ddc4))return!0x1;if(_0x1fe751[0x0]['attributes']['groupId']==_0x3eae8d[0x0]['attributes']['groupId'])return!0x0;if(_0x1fe751[0x0]['attributes']['trackingSessionId']!==_0x3eae8d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1fe751['every'](_0x3a2d9a=>_0x3eae8d['some'](_0x224c07=>_0x3a2d9a['getFirstRange']()['isEqual'](_0x224c07['getFirstRange']())))&&_0x3eae8d['every'](_0x4351d8=>_0x1fe751['some'](_0x18e931=>_0x4351d8['getFirstRange']()['isEqual'](_0x18e931['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe0ad6b){const _0x1c9e4d=Array['from'](_0xe0ad6b),_0x4a6017=this['getSuggestions']({'skipNotAttached':!0x0}),_0xfe812c=_0x4a6017['filter'](_0x286902=>!_0xe0ad6b['has'](_0x286902)),_0x28cb8d=new Map(_0x1c9e4d['map'](_0x1305cd=>[_0x1305cd,this['_suggestionFactory']['getSuggestionCallback'](_0x1305cd['type'],_0x1305cd['subType'],'join')])),_0x524ab9=new Map(_0x4a6017['map'](_0xc3b9c2=>[_0xc3b9c2,_0xc3b9c2['getRanges']()]));for(let _0x78dbbb=0x0;_0x78dbbb<_0x1c9e4d['length'];_0x78dbbb++){if(_0x28349b(this,_0x1c9e4d[_0x78dbbb],_0x1c9e4d,_0x78dbbb+0x1))return!0x0;}for(let _0x25cd3a=0x0;_0x25cd3a<_0x1c9e4d['length'];_0x25cd3a++){if(_0x28349b(this,_0x1c9e4d[_0x25cd3a],_0xfe812c,0x0))return!0x0;}return!0x1;function _0x28349b(_0x25fb36,_0x4a04e6,_0x47647d,_0x9da324){for(let _0x560330=_0x9da324;_0x560330<_0x47647d['length'];_0x560330++){const _0x3eb7a7=_0x47647d[_0x560330];if(_0x3eb7a7['type']!==_0x4a04e6['type']||_0x3eb7a7['author']['id']!==_0x4a04e6['author']['id']||_0x3eb7a7['subType']!==_0x4a04e6['subType'])continue;if(!jt(_0x4a04e6,_0x3eb7a7))continue;if('attribute'==_0x4a04e6['type']&&_0x4a04e6['data']['oldValue']!=_0x3eb7a7['data']['oldValue'])continue;if('attribute'==_0x4a04e6['type']&&_0x25fb36['_suggestionsConversion']['isBlockAttribute'](_0x4a04e6['data']['key']))continue;if('formatBlock'==_0x4a04e6['type']){const _0x243d1a=_0x25fb36['editor']['model'],_0x5ce7c=_0x4a04e6['getContainedElement']();if(_0x5ce7c&&(_0x243d1a['schema']['isObject'](_0x5ce7c)||_0x243d1a['schema']['isLimit'](_0x5ce7c)))continue;}const _0x52d078=_0x28cb8d['get'](_0x4a04e6),_0x4db20a=_0x524ab9['get'](_0x4a04e6),_0x1fb2a3=_0x524ab9['get'](_0x3eb7a7),_0x47b5d9=_0x4a04e6['commentThread']&&_0x4a04e6['commentThread']['length'],_0x43e686=_0x3eb7a7['commentThread']&&_0x3eb7a7['commentThread']['length'];if(!_0x47b5d9&&_0x52d078(_0x1fb2a3,_0x4db20a))return _0x25fb36['_joinSuggestions'](_0x3eb7a7,_0x4a04e6),_0x524ab9['delete'](_0x4a04e6),!0x0;if(!_0x43e686&&_0x52d078(_0x4db20a,_0x1fb2a3))return _0x25fb36['_joinSuggestions'](_0x4a04e6,_0x3eb7a7),_0x524ab9['delete'](_0x3eb7a7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1a7cdf,_0x337373){if(_0x1a7cdf['isMultiRange']){for(const _0xb854c1 of _0x337373['getRanges']())_0x1a7cdf['addRange'](_0xb854c1);}else{const _0x36cd4b=_0x337373['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1a7cdf,this['_model']['createRange'](_0x1a7cdf['getFirstRange']()['start'],_0x36cd4b));}_0x337373['removeMarkers']();}['_getMarkerAnnouncementText'](_0x323f01,_0x5b598f,_0x49d1c6){const _0x4e2f85=_0x323f01['startsWith']('format')||_0x323f01['startsWith']('attribute')?'FORMATTING':_0x323f01['toUpperCase']();return Tt(this['editor']['locale'],_0x5b598f+'_'+_0x4e2f85+'_SUGGESTION_ANNOUNCEMENT',_0x49d1c6);}['_initAriaMarkerChangeAnnouncements'](){const _0x266ba0=this['editor'];if(!_0x266ba0['ui'])return;const {ariaLiveAnnouncer:_0x31b8ea}=_0x266ba0['ui'];_0x273667(this['_model'],({left:_0x2eebc8,entered:_0x4af781})=>{for(const _0x52fa54 of _0x2eebc8){const {group:_0x126242,type:_0x38add0}=_0x11d9f0(_0x52fa54['name']);if('suggestion'===_0x126242){_0x31b8ea['announce'](this['_getMarkerAnnouncementText'](_0x38add0,'LEAVE'));break;}}for(const _0x1f530c of _0x4af781){const {group:_0x14a053,type:_0x56715f}=_0x11d9f0(_0x1f530c['name']);if('suggestion'===_0x14a053){_0x31b8ea['announce'](this['_getMarkerAnnouncementText'](_0x56715f,'ENTER',_0x21d050(_0x1b2bd3)));break;}}});}['_processAttributeChanges'](_0x4328b2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x29c356=this['editor'],_0x316c7a=_0x29c356['model']['document']['differ']['getChanges']();if(0x0==_0x316c7a['length'])return!0x1;const _0x569afd=[],_0x576075=_0x316c7a['filter'](_0x3ca2ae=>'attribute'==_0x3ca2ae['type']),_0x2d03a8=_0x316c7a['filter'](_0x5aa76a=>'insert'==_0x5aa76a['type']&&'$text'!=_0x5aa76a['name']),_0x183cf3=_0x316c7a['filter'](_0x291a5e=>'remove'==_0x291a5e['type']&&'$text'!=_0x291a5e['name']);for(const _0x30c622 of _0x576075)_0x569afd['push']({'key':_0x30c622['attributeKey'],'newValue':_0x30c622['attributeNewValue'],'oldValue':_0x30c622['attributeOldValue'],'range':$t(_0x30c622['range'],_0x29c356['model'])});for(const _0x11231c of _0x2d03a8){const _0x5b8954=_0x183cf3['find'](_0x4ba98f=>_0x4ba98f['position']['isEqual'](_0x11231c['position']));_0x5b8954&&_0x569afd['push']({'key':Ft,'newValue':_0x11231c['name'],'oldValue':_0x5b8954['name'],'range':_0x29c356['model']['createRangeOn'](_0x11231c['position']['nodeAfter'])});}return 0x0!=_0x569afd['length']&&this['_reduceExistingSuggestions'](_0x4328b2,_0x569afd);}['_processAttributeSuggestions'](_0x3ac75b){let _0x44f824=!0x1;const _0x32f096=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x428472=>_0x428472['data']['newRange']&&_0x428472['name']['startsWith']('suggestion:attribute:'));for(const _0xb2fbbf of _0x32f096){const {subType:_0x283dd7,id:_0x2e7e8e}=_0x11d9f0(_0xb2fbbf['name']),_0xb66f00=_0x283dd7['split']('|')[0x0];for(const _0xfae0d9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xfae0d9['id']!=_0x2e7e8e&&'attribute'==_0xfae0d9['type']&&_0xfae0d9['data']&&_0xfae0d9['data']['key']==_0xb66f00&&_0xfae0d9['getFirstRange']()['isIntersecting'](_0xb2fbbf['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xfae0d9,_0xb2fbbf['data']['newRange'],_0x3ac75b),_0x44f824=!0x0);}return _0x44f824;}['recordAttributeChanges'](_0x14288b){this['_recordAttributeSuggestions']=!0x0,_0x14288b();}['_reduceExistingSuggestions'](_0x2141c4,_0x28daa4){if(0x0==_0x28daa4['length'])return!0x1;let _0x11a8d0=!0x1;for(const _0x1aa0cc of _0x28daa4){const _0x5120b7=this['_findSuggestions'](_0x1aa0cc['range'],'attribute')['filter'](_0x3df7ae=>!_0x3df7ae['meta']['isNextTo'])['map'](_0x57b71a=>_0x57b71a['suggestion']),_0x1e18ea=_0x54b6ec({'newValue':_0x1aa0cc['newValue']});_0x5120b7['filter'](_0x2a9619=>{const [_0x21f4dd,_0x1328ba]=_0x2a9619['subType']['split']('|');return _0x21f4dd==_0x1aa0cc['key']&&_0x1328ba!=_0x1e18ea;})['forEach'](_0x56ee98=>{this['_reduceSuggestionAttributeRange'](_0x56ee98,_0x1aa0cc['range'],_0x2141c4),_0x11a8d0=!0x0;});}return _0x11a8d0;}['_reduceSuggestionAttributeRange'](_0x4dbc1b,_0x4cc267,_0x1a0b86){const _0x599a06=_0x4dbc1b['getFirstRange']()['getDifference'](_0x4cc267);0x0!==_0x599a06['length']?0x1!==_0x599a06['length']?this['_breakSuggestionMarker'](_0x4dbc1b,_0x4cc267['start'],_0x4cc267['end']):this['_setSuggestionRange'](_0x4dbc1b,_0x599a06[0x0]):_0x1a0b86['removeMarker'](_0x4dbc1b['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x575d63){this['_editor']=_0x575d63,this['_model']=_0x575d63['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x34a0b8,_0x28329e,_0x10045f,_0x2ace41,_0x3edb36,_0x1bf5c4,_0x49f2f7){return new Suggestion(this['_model'],{'type':_0x34a0b8,'subType':_0x28329e,'id':_0x10045f,'originalSuggestionId':_0x49f2f7,'author':_0x2ace41,'creator':_0x2ace41,'attributes':_0x3edb36,'onAttributesChange':_0x1bf5c4,'onAccept':(..._0x563af5)=>this['getSuggestionCallback'](_0x34a0b8,_0x28329e,'accept')(..._0x563af5),'onDiscard':(..._0x25ef8d)=>this['getSuggestionCallback'](_0x34a0b8,_0x28329e,'discard')(..._0x25ef8d)});}['registerCustomCallback'](_0x45401a,_0x272afc,_0x30f437,_0x4dc2fc){const _0xbf8d35=_0x45401a+':'+_0x272afc+':'+_0x30f437;this['_customCallbacks']['set'](_0xbf8d35,_0x4dc2fc);}['getSuggestionCallback'](_0x1c8427,_0x32bed9,_0x1ee332){const _0x1ab7da=_0x1c8427+':'+_0x32bed9+':'+_0x1ee332;return this['_customCallbacks']['get'](_0x1ab7da)||this['_defaultCallbacks']['get'](_0x1c8427+':'+_0x1ee332);}['_registerDefaultCallbacks'](){const _0x3aa4e8=()=>!0x1,_0x280125=_0x31762f=>{_0x31762f['sort']((_0x53e983,_0x5ed923)=>_0x53e983['start']['isBefore'](_0x5ed923['start'])?0x1:-0x1),this['_model']['change'](_0x2833fa=>{for(const _0x19cbe0 of _0x31762f){let _0x2829ed;_0x2829ed=_0x19cbe0['end']['isAtEnd']&&_0x19cbe0['end']['parent']==_0x19cbe0['start']['nodeAfter']?_0x2833fa['createSelection'](_0x19cbe0['start']['nodeAfter'],'on'):_0x2833fa['createSelection'](_0x19cbe0),this['_model']['deleteContent'](_0x2829ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x283749=(_0x2e446d,_0xa18d55)=>{_0xa18d55&&this['_model']['change'](_0x3be7e4=>{const {commandName:_0x1b168e,commandParams:_0x32aacf=[]}=_0xa18d55,_0x5cf110=_0x2e446d['map'](_0x13ad79=>(vt(_0x13ad79)&&(_0x13ad79=this['_model']['createRange'](_0x13ad79['end'])),_0x13ad79))['filter'](_0x2a1a1c=>'$graveyard'!==_0x2a1a1c['root']['rootName']);if(_0x5cf110['length']<0x1)return;const _0x2eb344=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4d6cdc=>_0x4099e3['fromRange'](_0x4d6cdc));_0x3be7e4['setSelection'](_0x5cf110);for(const _0x241115 of this['_editor']['commands']['commands']())_0x241115['refresh']();_0x32aacf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1b168e,..._0x32aacf);const _0x58b6b8=_0x2eb344['filter'](_0x418e33=>'$graveyard'!=_0x418e33['root']['rootName']);_0x58b6b8['length']>0x0&&_0x3be7e4['setSelection'](_0x58b6b8);for(const _0x44d1bd of _0x2eb344)_0x44d1bd['detach']();});},_0x4154a4=(_0x35fd70,_0x1e02f0)=>0x1==_0x35fd70['length']&&0x1==_0x1e02f0['length']&&_0x35fd70[0x0]['end']['isEqual'](_0x1e02f0[0x0]['start']),_0x24d950=(_0x10b917,_0x5e9e5b,_0x56622e,_0x53c3ed)=>Wt(_0x10b917,_0x5e9e5b,_0x56622e,_0x53c3ed)?[_0x10b917,_0x5e9e5b]:Wt(_0x5e9e5b,_0x10b917,_0x53c3ed,_0x56622e)?[_0x5e9e5b,_0x10b917]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3aa4e8),this['_defaultCallbacks']['set']('insertion:discard',_0x280125),this['_defaultCallbacks']['set']('insertion:join',_0x4154a4),this['_defaultCallbacks']['set']('insertion:chain',_0x24d950),this['_defaultCallbacks']['set']('deletion:accept',_0x280125),this['_defaultCallbacks']['set']('deletion:discard',_0x3aa4e8),this['_defaultCallbacks']['set']('deletion:join',_0x4154a4),this['_defaultCallbacks']['set']('deletion:chain',_0x24d950),this['_defaultCallbacks']['set']('formatInline:accept',_0x283749),this['_defaultCallbacks']['set']('formatInline:discard',_0x3aa4e8),this['_defaultCallbacks']['set']('formatInline:join',_0x4154a4),this['_defaultCallbacks']['set']('formatInline:chain',_0x3aa4e8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x283749),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3aa4e8),this['_defaultCallbacks']['set']('formatBlock:join',_0x4154a4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3aa4e8),this['_defaultCallbacks']['set']('attribute:accept',_0x3aa4e8),this['_defaultCallbacks']['set']('attribute:discard',(_0x15991a,_0x86645)=>{if(!_0x86645)return;const _0x3fb4ac=this['_editor']['plugins']['get'](_0x45f6b6);this['_model']['change'](_0x588df1=>{if(_0x86645['key']==Ft)for(const _0x457571 of _0x15991a){const _0x117ddd=_0x457571['start']['nodeAfter'],_0x701ef=_0x86645['oldValue'];_0x588df1['rename'](_0x117ddd,_0x701ef);}else{if(_0x3fb4ac['isBlockAttribute'](_0x86645['key'])){for(const _0x42ff6c of _0x15991a)void 0x0!==_0x86645['oldValue']?_0x588df1['setAttribute'](_0x86645['key'],_0x86645['oldValue'],_0x42ff6c['start']['nodeAfter']):_0x588df1['removeAttribute'](_0x86645['key'],_0x42ff6c['start']['nodeAfter']);}else{for(const _0x25016b of _0x15991a)_0x86645['oldValue']?_0x588df1['setAttribute'](_0x86645['key'],_0x86645['oldValue'],_0x25016b):_0x588df1['removeAttribute'](_0x86645['key'],_0x25016b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4154a4);}}function Dt(_0x4f30d4,_0x353214,_0x542662){for(const _0x53f800 of _0x353214['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x53f800['root']==_0x53f800)return!0x1;if(!_0x542662['containsItem'](_0x53f800))return!0x1;if(_0x4f30d4['isObject'](_0x53f800)||_0x4f30d4['isLimit'](_0x53f800))return!0x0;}return!0x1;}function vt(_0x1f1eba){return _0x1f1eba['end']['parent']==_0x1f1eba['start']['nodeAfter']&&_0x1f1eba['end']['isAtStart'];}function xt(_0x42ee58,_0x4a875d,_0x2365f5,_0x2b6485){const _0x267746=_0x30d1df=>!_0x30d1df['item']['is']('$textProxy')&&!_0x2b6485['isObject'](_0x30d1df['item']),_0x11e67b=_0x42ee58['start']['getLastMatchingPosition'](_0x267746),_0x5c0fd7=_0x42ee58['end']['getLastMatchingPosition'](_0x267746,{'direction':'backward'});return(!_0x42ee58['start']['isEqual'](_0x11e67b)||!_0x42ee58['end']['isEqual'](_0x5c0fd7))&&(_0x11e67b['isBefore'](_0x5c0fd7)?_0x2365f5['updateMarker'](_0x4a875d,{'range':_0x2365f5['createRange'](_0x11e67b,_0x5c0fd7)}):_0x2365f5['removeMarker'](_0x4a875d),!0x0);}function Pt(_0x4d3622){return _0x54b6ec(_0x4d3622);}function Ut(_0x691033){const _0x51c195=_0x691033['start']['nodeAfter'];return _0x51c195&&_0x51c195['is']('element');}function Gt(_0x274280){return vt(_0x274280)||function(_0x1164e8){return _0x1164e8['start']['parent']==_0x1164e8['end']['nodeBefore']&&_0x1164e8['start']['isAtEnd'];}(_0x274280);}function Ht(_0x4cfae8,_0xc352f8){try{const _0x4e2857=_0x4cfae8['getRange']();for(const _0x2e6900 of _0xc352f8)if(_0x4cfae8!==_0x2e6900&&_0x4e2857&&_0x4e2857['isIntersecting'](_0x2e6900['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x451809,_0x4d9dd3){return null==_0x451809['end']['nodeBefore']&&_0x451809['end']['parent']==_0x451809['start']['nodeAfter']?Vt(_0x451809['start']['nodeAfter'],_0x4d9dd3):_0x451809;}function Vt(_0x103deb,_0x10f583){const _0x462eae=_0x10f583['schema']['isObject'](_0x103deb)||_0x10f583['schema']['isSelectable'](_0x103deb);return _0x10f583['createRange'](_0x10f583['createPositionAt'](_0x103deb,'before'),_0x462eae?_0x10f583['createPositionAfter'](_0x103deb):_0x10f583['createPositionAt'](_0x103deb,'end'));}function Wt(_0x453ea0,_0x1b3fdb,_0x4eeafa,_0x23d0cb){return!!jt(_0x453ea0,_0x1b3fdb)&&_0x4eeafa['end']['isEqual'](_0x23d0cb['start']);}function jt(_0x25ba94,_0x4fa08a){if(!_0x25ba94['_isDataLoaded']||!_0x4fa08a['_isDataLoaded'])return!0x1;const _0x3a9453=new Set(Object['keys'](_0x25ba94['attributes'])),_0x497223=new Set(Object['keys'](_0x4fa08a['attributes']));if(_0x3a9453['delete']('groupId'),_0x497223['delete']('groupId'),0x0==_0x3a9453['size']&&0x0==_0x497223['size'])return!0x0;if(_0x3a9453['size']!=_0x497223['size'])return!0x1;const _0x19ad6a={..._0x25ba94['attributes']},_0x1c4f31={..._0x4fa08a['attributes']};return delete _0x19ad6a['groupId'],delete _0x1c4f31['groupId'],JSON['stringify'](_0x19ad6a)==JSON['stringify'](_0x1c4f31);}function zt(_0x41b1e8,_0x137744){const _0x25b931=Kt(_0x41b1e8['attributes']),_0x4f8e77=Kt(_0x137744);if(!_0x41b1e8['_isDataLoaded'])return!0x1;for(const _0x5286db of Object['keys'](_0x4f8e77))if(!st(_0x25b931[_0x5286db],_0x4f8e77[_0x5286db]))return!0x1;return!0x0;}function Kt(_0x5edaa2){const _0x53cf60=Object['assign']({},_0x5edaa2);return delete _0x53cf60['skipNestingCheck'],delete _0x53cf60['tablePasteChainId'],_0x53cf60;}function Xt(_0x1be0ba){return _0x1be0ba['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3c23d7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x41b4e8,_0x257e01,_0x5f41ea,_0x331b1d){super(),this['model']=_0x257e01,this['view']=_0x5f41ea,this['commentThreadController']=_0x331b1d,this['_editor']=_0x41b4e8,this['_acceptCommand']=_0x41b4e8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x41b4e8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2f8580,_0x9bde7b)=>_0x2f8580||_0x9bde7b),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x551209=>_0x551209&&this['_editor']['model']['canEditAt'](_0x257e01['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2ba1f5=>_0x2ba1f5&&this['_editor']['model']['canEditAt'](_0x257e01['getRanges']())),this['_pendingAction']=null,_0x5f41ea['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5f41ea,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5f41ea,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5f41ea,'change:isDirty',()=>{_0x5f41ea['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 _0x2157f0=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2157f0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x45ba2b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x477aff,_0x2d05b7,_0x8d73b2,_0x2ec0c4){super(_0x477aff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4a4323(_0x477aff,Tt(_0x477aff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2d05b7['authoredAt']),this['bind']('authoredAt')['to'](_0x2d05b7),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',_0x2d05b7,'authoredAt',this,'descriptionParts',(_0x1d5234,_0x3337f9,_0x186010)=>{const _0x7e39d0=_0x186010['map'](_0x49dc82=>ht(_0x49dc82['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1d5234-0x1,_0x2d05b7['author']['name'],_0x3337f9?_0x2ec0c4['formatDateTime'](_0x3337f9):'',new DOMParser()['parseFromString'](_0x7e39d0,'text/html')['body']['textContent']]);}),this['focusables']=new _0xe861d7(),this['focusTracker']=new _0x5d0c26(),this['keystrokes']=new _0x506df3(),this['focusCycler']=new _0x3d145f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x31c3d3=>_0x31c3d3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2d05b7,this['_localUser']=_0x8d73b2,this['_config']=_0x2ec0c4,_0x2ec0c4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1972d2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2333eb}=this['_config'];this['commentsListView']=new _0x2333eb(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',_0xf27438=>_0xf27438+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x25fad7,_0x44d832)=>_0x25fad7||!!_0x44d832);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59acb2}=this['_config'],_0x1c20fc=new _0x59acb2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4db91d=_0x1c20fc['commentInputView'];return _0x1c20fc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4db91d,'value',(_0x2c4ca0,_0x5695cd,_0x211b4a)=>!!_0x211b4a||_0x2c4ca0&&!_0x5695cd),_0x4db91d['on']('submit',(_0x43a619,_0x51db05)=>{this['fire']('addComment',_0x51db05),_0x4db91d['editor']['setData']('');}),_0x4db91d['on']('cancel',()=>this['focus']()),_0x4db91d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1c20fc;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x5bef9a,_0xbd7aa9,_0x339483,_0x58abf1){super(_0x5bef9a,_0xbd7aa9,_0x339483,_0x58abf1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x8c4662=>_0x8c4662&&_0x8c4662[0x0]?_0x8c4662[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x102d70,_0x80370a)=>{let _0x50c302='';for(const _0x5667cd of _0x102d70)_0x50c302+='<p>'+ht(_0x5667cd['content'],_0x5667cd['color'])+'</p>';return _0x80370a?_0x50c302:_0x23312a(_0x50c302,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x58abf1['SuggestionView'](_0x5bef9a,_0xbd7aa9,{'formatDateTime':_0x58abf1['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 _0x2e4e28=this['bindTemplate'],_0x544adc=[this['suggestionView']];return this['commentsListView']&&_0x544adc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x544adc['push'](this['commentThreadInputView']),_0x544adc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e4e28['if']('isActive','ck-suggestion-wrapper--active'),_0x2e4e28['to']('type',_0x17ed78=>'ck-suggestion-'+_0x17ed78),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':_0x2e4e28['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x544adc};}['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 SuggestionView extends _0x45ba2b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5f590c,_0x19ab33,_0x176efd){super(_0x5f590c),this['_model']=_0x19ab33,this['_config']=_0x176efd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x19ab33),this['acceptButton']=this['_createButton'](Tt(_0x5f590c,'Accept\x20suggestion'),_0x333ecc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x5f590c,'Discard\x20suggestion'),_0x57c6bd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xe23deb(_0x5f590c,_0x19ab33['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xe861d7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5d0c26(),this['keystrokes']=new _0x506df3(),this['focusCycler']=new _0x3d145f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2ff2c1=>_0x2ff2c1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3a8a10=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3a8a10['innerHTML']=this['description'],this['on']('change:description',(_0x4212dc,_0x1c510e,_0x574615)=>{_0x3a8a10['innerHTML']=_0x574615;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xe346a9=this['bindTemplate'],_0x4674f0=[{'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':_0xe346a9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xe346a9['to']('authoredAt',_0x27d986=>this['_config']['formatDateTime'](_0x27d986))}]}]},{'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']&&_0x4674f0['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':_0x4674f0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4301ac,_0x3f038f,_0x1a8b42,_0x30b1a4,_0x5b2fd5){const _0x4b471b=new _0x14b3e(this['locale']);return _0x4b471b['set']({'label':_0x4301ac,'icon':_0x3f038f,'tooltip':!0x0,'tooltipPosition':_0x5b2fd5}),_0x4b471b['extendTemplate']({'attributes':{'class':_0x1a8b42}}),_0x4b471b['on']('execute',()=>{this['fire'](_0x30b1a4,this['_model']['id']);}),_0x4b471b;}['_setupKeyboardNavigation'](){const _0x5a2534=this['element'];this['keystrokes']['listenTo'](_0x5a2534);for(const _0x476bc3 of this['focusables'])this['focusTracker']['add'](_0x476bc3['element']),this['keystrokes']['listenTo'](_0x476bc3['element']);this['keystrokes']['set']('enter',(_0x375b67,_0x5d2c88)=>{_0x5a2534===_0x375b67['target']&&(this['focusCycler']['focusFirst'](),_0x5d2c88());}),this['keystrokes']['set']('esc',(_0x147599,_0x4b18b6)=>{_0x5a2534!==_0x147599['target']&&(this['focus'](),_0x4b18b6());});}}class TrackChangesUI extends _0x1b042a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x97b95d,_0x2e3e9f,_0x134463,_0x2b0d1d];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ba448){super(_0x4ba448),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x393d1a=this['editor']['config'];_0x393d1a['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x393d1a['define']('trackChanges.SuggestionView',SuggestionView),_0x393d1a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x393d1a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36de13,_0x193332){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x527942,_0x358f30]of this['_handleControllerBuffer']){const _0x551741=this['_suggestionToController']['has'](_0x527942);_0x551741||_0x358f30?_0x551741&&_0x358f30&&this['_destroyController'](_0x527942):this['_initializeController'](_0x527942);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2b0d1d)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36de13,_0x193332);}['init'](){const _0x1c59b1=this['editor'],_0x37ee42=_0x1c59b1['plugins']['get'](TrackChangesEditing),_0x5e3289=_0x1c59b1['plugins']['get'](_0x134463),_0x17ccca=_0x1c59b1['plugins']['get'](_0x2b0d1d),_0xf3b66e=_0x1c59b1['plugins']['get'](_0x2e3e9f);this['_addUIComponentsToFactory'](),_0x17ccca['addSourceCollector'](()=>{const _0x3c818f=[];for(const [_0x45ef3d,_0x4213f3]of Array['from'](this['_suggestionToController'])){const _0x4ef129=_0x45ef3d['getAllAdjacentSuggestions'](),_0x393608=[];for(const _0x4cfc3b of _0x4ef129){if(!_0x4cfc3b['isInContent'])continue;if(_0x4cfc3b['isMultiRange']){_0x393608['push'](..._0x4cfc3b['getRanges']());continue;}const _0x5f3a5d=_0x4cfc3b['getFirstRange']();if(_0x393608['length']>0x0){const _0x182a69=_0x393608[0x0]['getJoined'](_0x5f3a5d);if(_0x182a69){_0x393608[0x0]=_0x182a69;continue;}}_0x393608['push'](_0x5f3a5d);}_0x3c818f['push']([_0x4213f3['view'],_0x393608]);}return _0x3c818f;}),this['listenTo'](_0x37ee42,'suggestionLoaded',(_0x1aef21,_0x3c5f48)=>{this['listenTo'](_0x3c5f48,'change:previous',(_0x198973,_0x19baaf,_0x305048,_0x34792a)=>{_0x3c5f48['isInContent']&&(null==_0x305048?(this['_updateController'](_0x34792a['head']),this['_handleSuggestionControllerDelayed'](_0x3c5f48,!0x1)):(this['_updateController'](_0x305048['head']),null==_0x34792a&&this['_handleSuggestionControllerDelayed'](_0x3c5f48,!0x0)));}),null!==_0x3c5f48['previous']?this['_updateController'](_0x3c5f48['head']):this['_handleSuggestionControllerDelayed'](_0x3c5f48,!0x1);}),this['listenTo'](_0x37ee42,'suggestionUnloaded',(_0x2de22a,_0x341928,_0x5dbd9d)=>{this['stopListening'](_0x341928,'change:previous'),this['_handleControllerBuffer']['delete'](_0x341928),this['_suggestionToController']['has'](_0x341928)&&this['_destroyController'](_0x341928),_0x5dbd9d&&this['_updateController'](_0x5dbd9d['head']);}),this['listenTo'](_0x37ee42,'suggestionChanged',(_0x2e5d6f,_0x4274e0)=>{this['_updateController'](_0x4274e0);}),this['listenTo'](_0x5e3289,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xf3b66e,'addComment',(_0x36091d,{threadId:_0x341a99,isFromAdapter:_0x46489f})=>{if(_0x46489f||!_0x37ee42['hasSuggestion'](_0x341a99))return;const _0x27c3ff=_0x37ee42['getSuggestion'](_0x341a99);this['_suggestionToController']['get'](_0x27c3ff)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c5d44=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5128c8;for(const _0x27cdc9 in _0x1c5d44){const _0x515e8a=_0x27cdc9,_0x3d9921=_0x1c5d44[_0x515e8a];if('trackChangesLicenseKeyValid'==_0x3d9921||'trackChangesLicenseKeyInvalid'==_0x3d9921||'trackChangesLicenseKeyExpired'==_0x3d9921||'trackChangesLicenseKeyDomainLimit'==_0x3d9921||'trackChangesLicenseKeyNotAllowed'==_0x3d9921||'trackChangesLicenseKeyEvaluationLimit'==_0x3d9921||'trackChangesLicenseKeyUsageLimit'==_0x3d9921){delete _0x1c5d44[_0x515e8a],_0x5128c8=_0x3d9921,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5128c8&&_0x1c5d44['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5128c8&&_0x1c5d44['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5128c8&&_0x1c5d44['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5128c8&&_0x1c5d44['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5128c8&&_0x1c5d44['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5128c8&&_0x1c5d44['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x31065a){const _0x2d67eb=this['_suggestionToController']['get'](_0x31065a);if(!_0x2d67eb)return null;return this['editor']['plugins']['get'](_0x134463)['getByInnerView'](_0x2d67eb['view'])||null;}['getSuggestionForAnnotation'](_0x324c38){const _0x488666=this['_viewToController']['get'](_0x324c38['innerView']);return _0x488666?_0x488666['model']:null;}['_refreshActiveMarkers'](){const _0x4da168=this['editor']['plugins']['get'](_0x134463),_0x154c53=this['editor']['plugins']['get'](TrackChangesEditing),_0x2a0a9e=Array['from'](_0x4da168['activeAnnotations'],_0x44155a=>_0x44155a['innerView'])['filter'](_0x451580=>this['_viewToController']['has'](_0x451580)),_0x51a2b7=[];for(const _0x20e5df of _0x2a0a9e){const _0xcf8471=this['_viewToController']['get'](_0x20e5df)['model']['getAllAdjacentSuggestions']();_0x51a2b7['push'](..._0xcf8471['reduce']((_0x50311b,_0x3853b7)=>[..._0x50311b,..._0x3853b7['getMarkerNames']()],[]));}_0x154c53['activeMarkers']=_0x51a2b7;}['_addUIComponentsToFactory'](){const _0x141a8b=this['editor'],_0x231b19=_0x141a8b['locale'],_0x3dafa4=Tt(_0x231b19,'Track\x20changes'),_0x32cb13=new _0x743895([{'type':'switchbutton','model':new _0x4d5172({'withText':!0x0,'isToggleable':!0x0,'label':_0x3dafa4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x141a8b['plugins']['has']('TrackChangesPreview')&&_0x32cb13['addMany']([{'type':'separator'},{'type':'button','model':new _0x4d5172({'withText':!0x0,'label':Tt(_0x231b19,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3f586a of _0x32cb13)if(Yt(_0x3f586a)){const _0x3c6cb3=_0x141a8b['commands']['get'](_0x3f586a['model']['commandName']);_0x3f586a['model']['bind']('isOn','isEnabled')['to'](_0x3c6cb3,'value','isEnabled');}_0x141a8b['ui']['componentFactory']['add']('trackChanges',_0x1689a8=>this['_createToolbarButton'](_0x1689a8,_0x32cb13,_0x3dafa4)),_0x141a8b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2120ab=>this['_createMenuBarMenu'](_0x2120ab,_0x32cb13,_0x3dafa4));}['_createToolbarButton'](_0x1ecbb6,_0x3c94ad,_0x2cd62c){const _0x51a799=_0x565160(_0x1ecbb6,_0x57ec08),_0x426747=this['editor']['commands']['get']('trackChanges');_0x51a799['buttonView']['set']({'tooltip':_0x2cd62c,'label':_0x2cd62c,'icon':_0x3fc479}),_0x51a799['buttonView']['bind']('isOn')['to'](_0x426747,'value'),_0x51a799['buttonView']['on']('execute',()=>{_0x426747['execute'](),this['editor']['editing']['view']['focus']();}),_0x2824d6(_0x51a799,_0x3c94ad,{'role':'menu'});const _0x2757e3=[];for(const _0x394371 of _0x3c94ad)Yt(_0x394371)&&_0x2757e3['push'](this['editor']['commands']['get'](_0x394371['model']['commandName']));const _0x2e7874=_0x51a799['buttonView'];return _0x2e7874['actionView']['unbind']('isEnabled'),_0x2e7874['arrowView']['unbind']('isEnabled'),_0x2e7874['actionView']['bind']('isEnabled')['to'](_0x426747,'isEnabled'),_0x2e7874['arrowView']['bind']('isEnabled')['toMany'](_0x2757e3,'isEnabled',(..._0x49a8f8)=>_0x49a8f8['some'](_0x58295e=>_0x58295e)),_0x51a799['on']('execute',_0x1b4663=>{this['editor']['execute'](_0x1b4663['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x51a799;}['_createMenuBarMenu'](_0x4f368a,_0x381d48,_0x49bf2b){const _0x1ec4a4=new _0x155a74(_0x4f368a),_0x53d68f=this['editor']['commands']['get']('trackChanges');_0x1ec4a4['buttonView']['set']({'label':_0x49bf2b,'icon':_0x3fc479});const _0x3716ae=new _0x352c61(_0x4f368a);for(const _0x38d284 of _0x381d48){if('separator'==_0x38d284['type']){_0x3716ae['items']['add'](new _0x1d7000(_0x4f368a));continue;}const _0x18dff6=new _0x4f4607(_0x4f368a,_0x1ec4a4),_0x5ed7ce=new _0x50967b(_0x4f368a),_0xf968cc=_0x38d284['model'];_0x5ed7ce['bind'](...Object['keys'](_0xf968cc))['to'](_0xf968cc),_0x5ed7ce['delegate']('execute')['to'](_0x1ec4a4),_0x5ed7ce['on']('execute',()=>{this['editor']['execute'](_0xf968cc['commandName']),this['editor']['editing']['view']['focus']();}),_0x18dff6['children']['add'](_0x5ed7ce),_0x3716ae['items']['add'](_0x18dff6);}return _0x1ec4a4['bind']('isEnabled')['to'](_0x53d68f,'isEnabled'),_0x1ec4a4['panelView']['children']['add'](_0x3716ae),_0x1ec4a4;}['_initializeController'](_0x260ad0){const _0x5843f4=this['editor'],_0x55cee9=_0x5843f4['config'],_0x345140=_0x5843f4['plugins']['get'](_0x134463),_0x54691f=_0x5843f4['plugins']['get'](_0x2e3e9f),_0x1da0c2=_0x5843f4['plugins']['get'](_0x2b0d1d),_0x249e23=_0x5843f4['plugins']['get'](_0x97b95d)['me'],_0x2eaedf=_0x55cee9['get']('trackChanges')['SuggestionThreadView'],_0x1c63e3=_0x55cee9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x9b8823,CommentThreadInputView:_0xb17fee}=_0x5843f4['plugins']['get']('CommentsUI');let _0x1188c2,_0xaaf73,_0x306ab7;this['_annotationViews']['has'](_0x260ad0['id'])?(_0xaaf73=this['_annotationViews']['get'](_0x260ad0['id']),_0x1188c2=_0xaaf73['mainView']):(_0x1188c2=new _0x2eaedf(_0x5843f4['locale'],_0x260ad0,_0x249e23,{'disableComments':this['_disableComments'],'editorConfig':{..._0x55cee9['get']('comments.editorConfig'),'licenseKey':_0x55cee9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x55cee9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x55cee9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x55cee9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x324fb2(_0x55cee9['get']('locale'),_0x5843f4['locale']),'CommentView':_0x55cee9['get']('comments')['CommentView'],'CommentsListView':_0x9b8823,'CommentThreadInputView':_0xb17fee,'SuggestionView':_0x1c63e3}),_0x1188c2['suggestionView']['acceptButton']['on']('execute',()=>{_0x5843f4['editing']['view']['focus']();}),_0x1188c2['suggestionView']['discardButton']['on']('execute',()=>{_0x5843f4['editing']['view']['focus']();}),_0xaaf73=_0x345140['createAnnotationView'](this['editor']['locale'],_0x1188c2),_0xaaf73['bind']('isDirty')['to'](_0x1188c2,'isDirty'),_0xaaf73['bind']('length')['to'](_0x1188c2),_0xaaf73['bind']('type')['to'](_0x1188c2,'type',_0x4612f0=>'suggestion-'+_0x4612f0),_0x1188c2['on']('escape',()=>{_0x306ab7['fire']('escape');}),this['_annotationViews']['set'](_0x260ad0['id'],_0xaaf73));const _0x280c95=_0x54691f['createCommentThreadController'](_0x260ad0['commentThread'],_0x1188c2),_0x27bdb2=new SuggestionController(_0x5843f4,_0x260ad0,_0x1188c2,_0x280c95),_0x436fb0=_0x260ad0['getAllAdjacentSuggestions']()['filter'](_0x552db3=>_0x552db3['isInContent']);_0x1188c2['descriptionParts']=_0x5843f4['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x436fb0),this['_suggestionToController']['set'](_0x260ad0,_0x27bdb2),this['_viewToController']['set'](_0x1188c2,_0x27bdb2);const _0x45a31d=()=>{const _0x303898=[],_0x41835a=_0x260ad0['getAllAdjacentSuggestions']()['filter'](_0x2cdf96=>_0x2cdf96['isInContent']);for(const _0x546cad of _0x41835a)_0x303898['push'](..._0x546cad['getMarkers']());return _0x2a695a(_0x5843f4['editing'],_0x303898);};_0x306ab7=_0x345140['createAnnotation']({'view':_0xaaf73,'target':_0x45a31d,'type':()=>'suggestion-'+_0x27bdb2['view']['type'],'isVisible':!!_0x45a31d()}),_0x54691f['_bindAnnotationToEditors'](_0x1188c2,_0x306ab7),_0x345140['add'](_0x306ab7),_0x1da0c2['registerAnnotation'](_0x306ab7);}['_destroyController'](_0xe7ea0d){const _0x8e0719=this['editor']['plugins']['get'](_0x2e3e9f),_0x3a7471=this['editor']['plugins']['get'](_0x134463),_0x36bd12=this['_suggestionToController']['get'](_0xe7ea0d),_0xa22639=_0x36bd12['view'],_0x4cc5a7=_0x3a7471['getByInnerView'](_0xa22639);_0x8e0719['_unbindEditors'](_0xa22639),_0x4cc5a7&&_0x3a7471['remove'](_0x4cc5a7),this['_suggestionToController']['delete'](_0xe7ea0d),this['_viewToController']['delete'](_0xa22639),_0x36bd12['destroy']();}['_updateController'](_0xeb5f88){if(!_0xeb5f88['isInContent']||!this['_suggestionToController']['has'](_0xeb5f88))return;const _0x5e08e0=this['editor']['plugins']['get'](TrackChangesEditing),_0x544013=this['_suggestionToController']['get'](_0xeb5f88),_0x1d42dd=_0xeb5f88['getAllAdjacentSuggestions']();_0x544013['view']['descriptionParts']=_0x5e08e0['descriptionFactory']['getDescriptions'](_0x1d42dd);}['destroy'](){for(const _0x167faf of this['_suggestionToController']['keys']())this['_destroyController'](_0x167faf);for(const _0x274a2a of this['_annotationViews']['values']())_0x274a2a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x2c6835){return'model'in _0x2c6835;}class TrackChanges extends _0x1b042a{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x522814];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x43d59b){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x43d59b;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x4fbf7a){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x4fbf7a);}['getSuggestions']({skipNotAttached:_0x3ae7d3=!0x1,toJSON:_0x5e2ac0=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x3ae7d3,'toJSON':_0x5e2ac0});}['getSuggestion'](_0x598b36){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x598b36);}}const qt=['Pagination'];class TrackChangesData extends _0x1b042a{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x486ddf=this['editor'];if(_0x486ddf['config']['define']('trackChangesData.editorCreator',_0x833b72=>{const _0x4fb7f2=_0x486ddf['model']['document']['getRootNames']()['reduce']((_0x3d1274,_0x598cd0)=>(_0x3d1274[_0x598cd0]='',_0x3d1274),{});return _0x486ddf['constructor']['create'](_0x4fb7f2,_0x833b72);}),'function'!=typeof _0x486ddf['config']['get']('trackChangesData')['editorCreator'])throw new _0x2992e4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x266edc){return Zt(this['editor'],!0x0,_0x266edc);}['getDataWithDiscardedSuggestions'](_0x6b5130){return Zt(this['editor'],!0x1,_0x6b5130);}}class TrackChangesDataGetter extends _0x1b042a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54550c){function _0x3edb76(_0x565054){return _0x565054['map'](_0x5601a8=>String['fromCharCode'](_0x5601a8))['join']('');}super(_0x54550c),this['result']='end',_0x54550c[_0x3edb76([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3edb76([0x76,0x69,0x65,0x77])][_0x3edb76([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3edb76([0x61,0x75,0x74,0x6f]),_0x54550c[_0x3edb76([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3edb76([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3edb76([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3edb76([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3edb76([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 Qt(_0x10d331){return void 0x0!==_0x10d331['getRootsAttributes'];}async function Zt(_0x46c009,_0xced9ed,_0x3aa729){const _0x130c29=_0x2291ec(_0x46c009,qt);if(_0x130c29['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x46c009)){_0x130c29['roots']=Object['create'](null);for(const _0xec19cf of _0x46c009['model']['document']['getRootNames']())_0x130c29['roots'][_0xec19cf]={'modelAttributes':_0x46c009['getRootAttributes'](_0xec19cf)};}const _0x5a1b41=document['createDocumentFragment'](),_0x6dd5c3=_0x46c009['config']['get']('trackChangesData')['editorCreator'],_0x35bee9=await _0x6dd5c3(_0x130c29,()=>function(_0x4680db){const _0x21321f=document['createElement']('div');return _0x4680db['appendChild'](_0x21321f),_0x21321f;}(_0x5a1b41));!function(_0x5a2271,_0x2793b4){const _0x15a7b8=_0x5a2271['model']['document']['getRootNames']()['reduce']((_0x4dfffc,_0x5dccc2)=>(_0x4dfffc[_0x5dccc2]=_0x5a2271['data']['get']({'rootName':_0x5dccc2}),_0x4dfffc),{}),_0x32d371=_0x5a2271['plugins']['get']('Users')['users']['map'](_0x4a10f3=>({'id':_0x4a10f3['id'],'name':_0x4a10f3['name']})),_0x2b724c=_0x5a2271['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16c0f6=_0x5a2271['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x452192=_0x2793b4['plugins']['get']('Users'),_0x4d737c=_0x2793b4['plugins']['get']('TrackChangesEditing'),_0x498fd=_0x2793b4['plugins']['get']('CommentsRepository');for(const _0xbee069 of _0x498fd['getCommentThreads']())_0xbee069['remove']();for(const _0x274d14 of _0x32d371)_0x452192['getUser'](_0x274d14['id'])||_0x452192['addUser'](_0x274d14);_0x452192['me']||_0x452192['useAnonymousUser']();for(const _0x5d9780 of _0x16c0f6)_0x498fd['addCommentThread'](_0x5d9780);for(const _0x40e920 of _0x2b724c)_0x4d737c['addSuggestionData'](_0x40e920);_0x2793b4['data']['set'](_0x15a7b8);}(_0x46c009,_0x35bee9),_0x35bee9['execute'](_0xced9ed?'acceptAllSuggestions':'discardAllSuggestions');const _0x3c82ed=Qt(_0x35bee9)?_0x35bee9['getFullData'](_0x3aa729):_0x35bee9['data']['get'](_0x3aa729);return await _0x35bee9['destroy'](),_0x3c82ed;}class TrackChangesPreviewView extends _0x45ba2b{['options'];constructor(_0xd80f14,_0x3089c0){super(_0xd80f14),this['options']=_0x3089c0,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'](_0x2b5b44,_0x130ccd){if(!this['element'])return;const _0x126c9e=[];for(const [_0x484916,_0x4d458c]of _0x2b5b44){const _0x506734=document['createElement']('div');_0x506734['setAttribute']('data-ck-root-name',_0x484916),_0x506734['className']=_0x4d458c['classes']+'\x20ck-track-changes-preview__root-container',_0x506734['innerHTML']=_0x4d458c['content'],_0x126c9e['push'](_0x506734);}_0x130ccd(this['element'],_0x126c9e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x4a3a6c{constructor(_0x3ea28d){super(_0x3ea28d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x378c42=this['editor'],_0x55c5b1=_0x378c42['locale'],_0x18eacf=_0x378c42['plugins']['get']('Dialog');let _0x2ac8c6;const _0x3c04b2=function(_0x5cd0fd){const _0x5cc80e={};if('editables'in _0x5cd0fd['ui']['view']){for(const [_0x5cc514,_0xfdba4a]of Object['entries'](_0x5cd0fd['ui']['view']['editables']))_0x5cc80e[_0x5cc514]=_0xfdba4a['element'];}else _0x5cc80e[_0x5cd0fd['model']['document']['getRootNames']()[0x0]]=_0x5cd0fd['ui']['view']['editable']['element'];return _0x5cc80e;}(_0x378c42),_0x132e0f=function(_0xe53d5f){let _0x3369a3=0x0;for(const _0x23df7d of Object['values'](_0xe53d5f))_0x3369a3=Math['max'](_0x3369a3,_0x23df7d['getBoundingClientRect']()['width']);let _0x3b2c09=0x0;for(const _0x41d9ff of Object['values'](_0xe53d5f))_0x3b2c09+=_0x41d9ff['getBoundingClientRect']()['height'];const _0xc667fd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3e9a98=Math['min'](_0x3b2c09,_0xc667fd);return{'width':_0x3369a3,'height':_0x3e9a98};}(_0x3c04b2);_0x18eacf['show']({'id':'finalContentPreview','title':Tt(_0x55c5b1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x55c5b1,{'dialogRects':_0x132e0f}),'onHide':()=>{_0x2ac8c6['detachFromDom']();},'onShow':()=>{_0x378c42['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4949ab=>{const _0x4fd578=this['_standarizeRootsData'](_0x4949ab,_0x378c42,_0x3c04b2);_0x18eacf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4fd578,_0x378c42['config']['get']('trackChanges.preview.renderFunction'));}),_0x2ac8c6=new _0x1aebc(_0x55c5b1,[_0x18eacf['view']]),_0x2ac8c6['attachToDom'](),_0x2ac8c6['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x378c42['once']('destroy',()=>{_0x2ac8c6['detachFromDom']();});const _0x6457c0=_0x18eacf['view']['headerView']['class'];_0x18eacf['view']['headerView']['class']=_0x6457c0?_0x6457c0+'\x20ck-reset_all':'ck-reset_all',_0x18eacf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x18eacf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2055d5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x239aa9=_0x2055d5['previewMode'],_0x51271e={};if('$labels'===_0x239aa9){for(const _0x307c56 of _0x2055d5['getMergeFieldsIds']())_0x51271e[_0x307c56]=_0x2055d5['getLabel'](_0x307c56)||_0x307c56;}else{const _0x57745d='$defaultValues'===_0x239aa9?_0x2055d5['getDefaultValues']():_0x2055d5['getDataSetValues'](_0x239aa9,!0x0);for(const _0x2a9dcd of Object['entries'](_0x57745d)){const [_0x5338d8,_0x632b2e]=_0x2a9dcd;_0x51271e[_0x5338d8]=null!==_0x632b2e?_0x632b2e:_0x2055d5['getLabel'](_0x5338d8)||_0x5338d8;}}return{'mergeFieldsData':_0x51271e};}['_standarizeRootsData'](_0x56b94b,_0x474550,_0x3b719c){let _0xb97df0;if('string'==typeof _0x56b94b){const _0x4f8bfa=_0x474550['model']['document']['getRootNames']()[0x0];_0xb97df0={[_0x4f8bfa]:_0x56b94b};}else _0xb97df0=_0x56b94b;const _0x5f0655=this['_fixMediaEmbeds'](_0xb97df0,_0x474550),_0x5c0b6e=function(_0x6212ba,_0x2606d1){for(const [_0xeefc7f,_0x25a1bf]of _0x6212ba)_0x25a1bf['classes']=_0x2606d1[_0xeefc7f]['classList']['value']['replace']('ck-focused','');return _0x6212ba;}(this['_sortRoots'](_0x474550)['reduce']((_0x50942b,_0x1fcc95)=>(_0x50942b['push']([_0x1fcc95,{'content':_0x5f0655[_0x1fcc95],'classes':''}]),_0x50942b),[]),_0x3b719c);return _0x5c0b6e;}['_fixMediaEmbeds'](_0x1e3d3c,_0x5db6d9){if(!_0x5db6d9['plugins']['has']('MediaEmbedEditing'))return _0x1e3d3c;const _0x20c761=_0x5db6d9['plugins']['get']('MediaEmbedEditing');for(const [_0x63ccb7,_0x999ae]of Object['entries'](_0x1e3d3c)){const _0x131c24=document['createElement']('div');_0x131c24['innerHTML']=_0x999ae,(_0x131c24['querySelectorAll']('figure.media')['forEach'](_0x10bc42=>{const _0x377670=_0x10bc42['querySelector']('oembed');if(_0x377670){const _0xbd4fbf=_0x377670['getAttribute']('url');if(_0xbd4fbf){const _0x4d92ad=_0x20c761['registry']['getMediaViewElement'](new et(_0x5db6d9['editing']['view']['document']),_0xbd4fbf,{'elementName':'','renderForEditingView':!0x0}),_0x225448=document['createElement']('div');_0x225448['classList']['add']('ck-media__wrapper'),_0x4d92ad['render'](_0x225448,_0x5db6d9['editing']['view']['domConverter']),_0x377670['replaceWith'](_0x225448);}}}),_0x1e3d3c[_0x63ccb7]=_0x131c24['innerHTML']);}return _0x1e3d3c;}['_sortRoots'](_0x20a3c3){if(!function(_0x394593){return void 0x0!==_0x394593['getRootsAttributes'];}(_0x20a3c3))return _0x20a3c3['model']['document']['getRootNames']();const _0x4f2eee=[],_0x2d6eb0=new Map();for(const _0x3ef9ea of _0x20a3c3['model']['document']['getRootNames']()){const _0x40fb61=_0x20a3c3['editing']['view']['getDomRoot'](_0x3ef9ea)['getClientRects']()['item'](0x0);_0x4f2eee['push'](_0x3ef9ea),_0x2d6eb0['set'](_0x3ef9ea,_0x40fb61);}return _0x4f2eee['sort']((_0x4e1e02,_0x357dce)=>{const _0x8cb4ca=_0x2d6eb0['get'](_0x4e1e02),_0x3d9782=_0x2d6eb0['get'](_0x357dce);return _0x8cb4ca['y']-_0x3d9782['y']||_0x8cb4ca['x']-_0x3d9782['x'];}),_0x4f2eee;}}class TrackChangesPreview extends _0x1b042a{static get['requires'](){return[TrackChangesData,_0x4042ab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d54e4){super(_0x4d54e4),_0x4d54e4['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x4d54e4['config']['define']('trackChanges.preview.renderFunction',(_0xf84edb,_0x2083f9)=>{for(const _0x3c8427 of _0x2083f9)_0xf84edb['appendChild'](_0x3c8427);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};
|