@ckeditor/ckeditor5-track-changes 48.8.1-alpha.1 → 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
|
-
_0x1b398d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2a12f7,_0x13c5db){super(),this['id']=_0x13c5db['id'],this['type']=_0x13c5db['type'],this['subType']=_0x13c5db['subType']||null,this['author']=_0x13c5db['author'],this['creator']=_0x13c5db['creator']||_0x13c5db['author'],this['isExternal']=Boolean(_0x13c5db['attributes']&&_0x13c5db['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x13c5db['originalSuggestionId']||null,this['_model']=_0x2a12f7,this['_onAccept']=_0x13c5db['onAccept'],this['_onDiscard']=_0x13c5db['onDiscard'],this['_onAttributesChange']=_0x13c5db['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x13c5db['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 _0x39d2a6=this;for(;_0x39d2a6['previous'];)_0x39d2a6=_0x39d2a6['previous'];return _0x39d2a6;}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'](_0x49ff48){this['_markerNames']['add'](_0x49ff48);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x468122=>this['_model']['markers']['get'](_0x468122))['filter'](_0x168d5f=>_0x168d5f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb165ad=>{for(const _0x59ef4c of this['getMarkers']())_0xb165ad['removeMarker'](_0x59ef4c);}),this['_markerNames']['clear']();}['removeMarker'](_0x1795d5){this['_model']['change'](_0x393921=>{_0x393921['removeMarker'](_0x1795d5);}),this['_markerNames']['delete'](_0x1795d5);}['addRange'](_0x6f4384){const _0xb7cb70='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xb7cb70),this['_model']['change'](_0x3e0790=>{_0x3e0790['addMarker'](_0xb7cb70,{'range':_0x6f4384,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x13ab57){for(const _0x399717 of this['getRanges']())if(_0x399717['isIntersecting'](_0x13ab57))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x107987=>_0x107987['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3df981,_0x1ba224)=>[..._0x3df981,..._0x1ba224['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xd486d7=this['getRanges']();if(0x1!=_0xd486d7['length'])return null;const _0x4fa38d=_0xd486d7[0x0],_0x35931b=_0x4fa38d['start']['nodeAfter'],_0x5801a6=_0x4fa38d['end']['nodeBefore'];return _0x35931b instanceof _0x100e3b?_0x35931b!=_0x5801a6?null:_0x35931b: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 _0x35b799=[];let _0x50106c=this['head'];for(;_0x50106c;)_0x35b799['push'](_0x50106c),_0x50106c=_0x50106c['next'];return _0x35b799;}['setAttribute'](_0x4ba9d1,_0x866a68){const _0x551b07=nt(this['attributes']);it(_0x551b07,_0x4ba9d1,_0x866a68),st(_0x551b07,this['attributes'])||(this['attributes']=_0x551b07,this['_onAttributesChange'](_0x551b07));}['removeAttribute'](_0x488fef){const _0x18e3b2=nt(this['attributes']);rt(_0x18e3b2,_0x488fef),st(_0x18e3b2,this['attributes'])||(this['attributes']=_0x18e3b2,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 _0x272311()['substr'](0x1,0x5);}}function Tt(_0x58af8f,_0x486823,_0x168b35){const _0x422951=_0x58af8f['t'],t=_0x58af8f['t'];switch(_0x486823){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',_0x168b35);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x168b35);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x168b35);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x168b35);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x168b35);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',_0x168b35);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x168b35);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',_0x168b35);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x168b35);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x168b35);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x168b35);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x168b35);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x168b35);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x168b35);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x168b35);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x168b35);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x168b35);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x168b35);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x168b35);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x168b35);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x168b35);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x168b35);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x168b35);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x168b35);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x168b35);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'},_0x168b35);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x168b35);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x168b35);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x168b35);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x168b35);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x168b35);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x168b35);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x168b35);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'},_0x168b35);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x168b35);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x168b35);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x168b35);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x168b35);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'},_0x168b35);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x168b35);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'},_0x168b35);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'},_0x168b35);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x168b35);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'},_0x168b35);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x168b35);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'},_0x168b35);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x168b35);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x168b35);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x168b35);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x168b35);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x168b35);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'},_0x168b35);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x168b35);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 _0x422951({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x168b35);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x422951({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x168b35);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x168b35);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'},_0x168b35);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'},_0x168b35);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'},_0x168b35);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x486823;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x470dff,_0x24240a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x470dff,this['_locale']=_0x24240a;}['getDescriptions'](_0xa6d227){const _0x1fe18c=[],_0x33ceb9=new Set(),_0x162d13=new Set();for(let _0x1ad69c=0x0;_0x1ad69c<_0xa6d227['length'];_0x1ad69c++){const _0x277a90=_0xa6d227[_0x1ad69c];if(!_0x277a90['isInContent'])continue;const _0x3e7384=this['_handleCustomCallbackDescription'](_0x277a90);if(_0x3e7384){if(null!=_0x277a90['subType']){if(_0x33ceb9['has'](_0x277a90['subType']))continue;_0x33ceb9['add'](_0x277a90['subType']);}_0x1fe18c['push'](_0x3e7384);}else{if('attribute'==_0x277a90['type']){const _0x403755=_0x277a90['data']['key'];if(_0x162d13['has'](_0x403755))continue;_0x162d13['add'](_0x277a90['data']['key']),_0x403755==Ft?this['_handleRenameSuggestionDescription'](_0x1fe18c,_0x277a90):this['_handleAttributeSuggestionDescription'](_0x1fe18c,_0x277a90);continue;}'insertion'!=_0x277a90['type']&&'deletion'!=_0x277a90['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1fe18c,_0x277a90,_0xa6d227[_0x1ad69c+0x1]);}}return this['_resolveDescriptionItems'](_0x1fe18c);}['registerDescriptionCallback'](_0x2bb650){this['_customCallbacks']['push'](_0x2bb650);}['registerElementLabel'](_0x13696f,_0x64f17e,_0x594202=_0x3bd827['normal']){'function'==typeof _0x13696f?_0x1532aa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x13696f,'label':_0x64f17e,'priority':_0x594202}):this['_itemLabels']['set'](_0x13696f,_0x64f17e);}['registerAttributeLabel'](_0x19c36c,_0x27fdbd){this['_attributeLabels']['set'](_0x19c36c,_0x27fdbd);}['getItemLabel'](_0x1bb95e,_0x5985e0=0x1){let _0x141983;for(const _0x533988 of this['_itemLabelsCallbacks'])if(_0x533988['matchingCallback'](_0x1bb95e)){_0x141983=_0x533988['label'];break;}return _0x141983||(_0x141983=this['_itemLabels']['get'](_0x1bb95e['name'])),_0x141983?_0x141983(_0x5985e0):0x1!==_0x5985e0?_0x5985e0+'\x20'+_0x1bb95e['name']+'s':''+_0x1bb95e['name'];}['_addDescriptionItems'](_0x23285a,_0x329e5a){const _0x306d9a=_0x329e5a['getFirstRange']()['getWalker'](),_0x2773f6='insertion'==_0x329e5a['type']?'add':'remove';for(const _0x491560 of _0x306d9a){const _0x1cb4ef=_0x491560['item'],_0x5b3f0d=_0x23285a[_0x23285a['length']-0x1];if(_0x1cb4ef['is']('$textProxy'))_0x5b3f0d&&_0x5b3f0d['type']['indexOf']('Container')>-0x1&&_0x23285a['pop'](),_0x5b3f0d&&'text'==_0x5b3f0d['type']?_0x5b3f0d[_0x2773f6]+=_0x1cb4ef['data']:_0x23285a['push']({'type':'text','add':'add'==_0x2773f6?_0x1cb4ef['data']:'','remove':'remove'==_0x2773f6?_0x1cb4ef['data']:''});else{if(this['_schema']['isObject'](_0x1cb4ef)){const _0x20945e=_0x1cb4ef;if(_0x5b3f0d&&_0x5b3f0d['type']['indexOf']('Container')>-0x1&&_0x23285a['pop'](),'elementEnd'==_0x491560['type'])continue;_0x5b3f0d&&_0x5b3f0d['type']==_0x2773f6+'Object'&&_0x5b3f0d['element']['name']==_0x20945e['name']?_0x5b3f0d['quantity']++:_0x23285a['push']({'type':_0x2773f6+'Object','element':_0x20945e,'quantity':0x1}),_0x306d9a['skip'](_0x22fbc1=>!('elementEnd'==_0x22fbc1['type']&&_0x22fbc1['item']==_0x1cb4ef));}else{if(this['_schema']['checkChild'](_0x1cb4ef,'$text')||_0x1cb4ef['is']('element','softBreak')){const _0x411615=_0x1cb4ef;if('add'==_0x2773f6&&'elementStart'==_0x491560['type']||'remove'==_0x2773f6&&'elementEnd'==_0x491560['type'])continue;if(_0x5b3f0d&&-0x1==_0x5b3f0d['type']['indexOf']('Container')){'text'==_0x5b3f0d['type']&&(_0x5b3f0d[_0x2773f6]+='\x0a');continue;}let _0x5f4e8b;if(_0x5f4e8b='add'==_0x2773f6?_0x411615['nextSibling']&&!this['_schema']['isObject'](_0x411615['nextSibling'])?_0x411615['nextSibling']:null:_0x411615['previousSibling']&&!this['_schema']['isObject'](_0x411615['previousSibling'])?_0x411615['previousSibling']:null,_0x411615['isEmpty']||_0x5f4e8b&&_0x5f4e8b['isEmpty']){const _0xd07abe=_0x5f4e8b&&_0x5f4e8b['isEmpty']?_0x5f4e8b:_0x411615;_0x5b3f0d&&_0x5b3f0d['type']==_0x2773f6+'EmptyContainer'&&_0x5b3f0d['element']['name']==_0xd07abe['name']?_0x5b3f0d['quantity']++:_0x23285a['push']({'type':_0x2773f6+'EmptyContainer','element':_0xd07abe,'quantity':0x1});}else _0x23285a['push']({'type':_0x2773f6+'Container','element':_0x411615});}}}}}['_resolveDescriptionItems'](_0x69084a){const _0x155b5f=this['_locale'],_0x5f1f6e=[],_0x5e7f5c=[],_0x365f28=[];for(const _0x4dc63c of _0x69084a)switch(_0x4dc63c['type']){case'text':if(_0x4dc63c['add']=_0x4dc63c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4dc63c['remove']=_0x4dc63c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4dc63c['add']&&''!=_0x4dc63c['remove']){_0x5f1f6e['push']({'type':'replace','content':Tt(_0x155b5f,'REPLACE_TEXT',['\x22'+_0x4dc63c['remove']+'\x22','\x22'+_0x4dc63c['add']+'\x22'])});continue;}if(null!=_0x4dc63c['add']['match'](/^ +$/)){_0x5f1f6e['push']({'type':'insertion','content':Tt(_0x155b5f,'*Insert:*\x20%0',Tt(_0x155b5f,'ELEMENT_SPACE',_0x4dc63c['add']['length']))});continue;}if(null!=_0x4dc63c['remove']['match'](/^ +$/)){_0x5f1f6e['push']({'type':'deletion','content':Tt(_0x155b5f,'*Remove:*\x20%0',Tt(_0x155b5f,'ELEMENT_SPACE',_0x4dc63c['remove']['length']))});continue;}if(''!=_0x4dc63c['add']){_0x5f1f6e['push']({'type':'insertion','content':Tt(_0x155b5f,'*Insert:*\x20%0','\x22'+_0x4dc63c['add']+'\x22')});continue;}_0x5f1f6e['push']({'type':'deletion','content':Tt(_0x155b5f,'*Remove:*\x20%0','\x22'+_0x4dc63c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5f1f6e['push']({'type':'insertion','content':Tt(_0x155b5f,'*Insert:*\x20%0',this['getItemLabel'](_0x4dc63c['element'],_0x4dc63c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5f1f6e['push']({'type':'deletion','content':Tt(_0x155b5f,'*Remove:*\x20%0',this['getItemLabel'](_0x4dc63c['element'],_0x4dc63c['quantity']))});continue;case'addContainer':_0x5f1f6e['push']({'type':'insertion','content':Tt(_0x155b5f,'*Split:*\x20%0',this['getItemLabel'](_0x4dc63c['element'],_0x4dc63c['quantity']))});continue;case'removeContainer':_0x5f1f6e['push']({'type':'deletion','content':Tt(_0x155b5f,'*Merge:*\x20%0',this['getItemLabel'](_0x4dc63c['element'],_0x4dc63c['quantity']))});continue;case'addFormat':_0x5e7f5c['push'](_0x4dc63c['key']);continue;case'removeFormat':_0x365f28['push'](_0x4dc63c['key']);continue;default:_0x5f1f6e['push'](_0x4dc63c);}if(_0x5e7f5c['length']){const _0x2ad318=_0x5e7f5c['map'](_0x4c8ce4=>this['_attributeLabels']['has'](_0x4c8ce4)?this['_attributeLabels']['get'](_0x4c8ce4):_0x4c8ce4)['join'](',\x20');_0x5f1f6e['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x2ad318)});}if(_0x365f28['length']){const _0x2f4090=_0x365f28['map'](_0xadd347=>this['_attributeLabels']['has'](_0xadd347)?this['_attributeLabels']['get'](_0xadd347):_0xadd347)['join'](',\x20');_0x5f1f6e['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f4090)});}return _0x5f1f6e;}['_handleCustomCallbackDescription'](_0x44904b){for(const _0x28ff25 of this['_customCallbacks']){const _0x2b9b57=_0x28ff25(_0x44904b);if(_0x2b9b57&&'type'in _0x2b9b57)return _0x2b9b57;}}['_handleAttributeSuggestionDescription'](_0x1a9ce8,_0x2e7863){const _0x1b3f7=_0x2e7863['data'],_0x458514=void 0x0===_0x1b3f7['newValue']?'removeFormat':'addFormat';_0x1a9ce8['push']({'type':_0x458514,'key':_0x1b3f7['key']});}['_handleRenameSuggestionDescription'](_0x4e1263,_0x5a9685){_0x4e1263['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a9685['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x459ee4,_0x48bd1b,_0x21c011){if(this['_addDescriptionItems'](_0x459ee4,_0x48bd1b),_0x21c011&&_0x21c011['getFirstRange']()&&!_0x48bd1b['getFirstRange']()['end']['isEqual'](_0x21c011['getFirstRange']()['start'])){const _0x2bb2a5=_0x459ee4[_0x459ee4['length']-0x1],_0x2f6da9='insertion'==_0x48bd1b['type']?'add':'remove';_0x2bb2a5&&'text'==_0x2bb2a5['type']&&(_0x2bb2a5[_0x2f6da9]+='\x0a');}}}class TrackChangesAIAssistant extends _0x5a485e{['afterInit'](){const _0x19fab3=this['editor'],_0x444562=_0x19fab3['plugins']['get']('TrackChangesEditing');_0x19fab3['commands']['get']('showAIAssistant')&&_0x444562['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x5a485e{['afterInit'](){const _0x2c5ac1=this['editor'],_0x303190=_0x2c5ac1['plugins']['get']('TrackChangesEditing');_0x2c5ac1['commands']['get']('toggleAi')&&_0x303190['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x5a485e{['afterInit'](){const _0x3c8ce5=this['editor'],_0x17c9fa=_0x3c8ce5['plugins']['get']('TrackChangesEditing');_0x3c8ce5['commands']['get']('aiQuickAction')&&_0x17c9fa['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x5a485e{['afterInit'](){const _0x1cbacb=this['editor'],_0x9b19c3=_0x1cbacb['locale'];if(!_0x1cbacb['plugins']['has']('AlignmentEditing'))return;const _0x39edfb=_0x1cbacb['plugins']['get']('TrackChangesEditing');_0x39edfb['enableDefaultAttributesIntegration']('alignment'),_0x39edfb['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x9b19c3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d4765=this['editor'],_0x3f031c=_0x2d4765['locale'];_0x2d4765['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x154985=>{if('formatBlock'!=_0x154985['type'])return;const {data:_0x26d983}=_0x154985;if(_0x26d983&&'alignment'==_0x26d983['commandName']){const _0x4dc651=_0x26d983['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x3f031c,'*Format:*\x20%0',function(_0x424bb1){switch(_0x424bb1){case'left':return Tt(_0x3f031c,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x3f031c,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x3f031c,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x3f031c,'FORMAT_JUSTIFY_TEXT');}}(_0x4dc651))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x5a485e{['afterInit'](){const _0x3f584f=this['editor'],_0x438422=_0x3f584f['plugins']['get']('TrackChangesEditing'),_0x4247ae=_0x3f584f['locale'];for(const _0x3d4a3f of _t){if(!_0x3f584f['plugins']['has'](_0x3d4a3f))continue;const _0x328ba4=_0x3d4a3f['slice'](0x0,-0x7)['toLowerCase'](),_0x2072dd='FORMAT_'+_0x328ba4['toUpperCase']();_0x438422['enableDefaultAttributesIntegration'](_0x328ba4),_0x438422['descriptionFactory']['registerAttributeLabel'](_0x328ba4,Tt(_0x4247ae,_0x2072dd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4875d0=this['editor'],_0x31000c=_0x4875d0['locale'],_0xd7fd6e=_0x4875d0['plugins']['get']('TrackChangesEditing');function _0x2a4116(_0x132a0f,_0x5b88c2){_0xd7fd6e['descriptionFactory']['registerDescriptionCallback'](_0x2542f2=>{if('formatInline'!=_0x2542f2['type'])return;const {data:_0x576f0d}=_0x2542f2;return _0x576f0d&&_0x576f0d['commandName']===_0x132a0f?_0x576f0d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x31000c,'*Format:*\x20%0',_0x5b88c2)}:{'type':'format','content':Tt(_0x31000c,'*Remove\x20format:*\x20%0',_0x5b88c2)}:void 0x0;});}_0x2a4116('bold',Tt(_0x31000c,'FORMAT_BOLD')),_0x2a4116('italic',Tt(_0x31000c,'FORMAT_ITALIC')),_0x2a4116('underline',Tt(_0x31000c,'FORMAT_UNDERLINE')),_0x2a4116('code',Tt(_0x31000c,'FORMAT_CODE')),_0x2a4116('strikethrough',Tt(_0x31000c,'FORMAT_STRIKETHROUGH')),_0x2a4116('subscript',Tt(_0x31000c,'FORMAT_SUBSCRIPT')),_0x2a4116('superscript',Tt(_0x31000c,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x5a485e{['afterInit'](){const _0x221ac=this['editor'],_0x163bcd=_0x221ac['locale'];if(!_0x221ac['plugins']['has']('BlockQuoteEditing'))return;const _0x47f59a=_0x221ac['plugins']['get']('TrackChangesEditing'),_0x509b89=this['editor']['commands']['get']('blockQuote');_0x47f59a['enableCommand']('blockQuote',(_0x167d25,_0x4147a2={})=>{const _0x1d206d=this['editor']['model']['document']['selection'],_0x4a84a0=_0x4147a2&&void 0x0!==_0x4147a2['forceValue']?_0x4147a2['forceValue']:!_0x509b89['value'];let _0x140e96=[];if(_0x4a84a0){const _0x1edd86=Array['from'](_0x1d206d['getSelectedBlocks']())['filter'](_0xfcc25f=>pt(_0xfcc25f)||function(_0x36573a,_0x2ca0a0){const _0x1e7377=_0x2ca0a0['checkChild'](_0x36573a['parent'],'blockQuote'),_0x42562e=_0x2ca0a0['checkChild'](['$root','blockQuote'],_0x36573a);return _0x1e7377&&_0x42562e;}(_0xfcc25f,this['editor']['model']['schema']));_0x140e96=ft(_0x1edd86,_0x221ac['model']);}else{const _0x584199=Array['from'](_0x1d206d['getSelectedBlocks']())['filter'](_0x228804=>pt(_0x228804));_0x140e96=ft(_0x584199,_0x221ac['model']);}_0x221ac['model']['change'](()=>{for(const _0x555864 of _0x140e96)_0x47f59a['markBlockFormat'](_0x555864,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4a84a0}]});});}),_0x47f59a['descriptionFactory']['registerDescriptionCallback'](_0x51307e=>{const {data:_0x142f7b}=_0x51307e;if(_0x142f7b&&'blockQuote'==_0x142f7b['commandName']){const _0x2c3576=Tt(_0x163bcd,'ELEMENT_BLOCK_QUOTE');return _0x142f7b['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x163bcd,'*Set\x20format:*\x20%0',_0x2c3576)}:{'type':'format','content':Tt(_0x163bcd,'*Remove\x20format:*\x20%0',_0x2c3576)};}});}}function pt(_0x13e69a){return'blockQuote'==_0x13e69a['parent']['name'];}class TrackChangesBookmark extends _0x5a485e{['afterInit'](){const _0x1e1b8b=this['editor'],_0x5d632c=_0x1e1b8b['locale'],_0x388131=_0x1e1b8b['plugins']['get']('TrackChangesEditing');_0x1e1b8b['plugins']['has']('BookmarkEditing')&&(_0x388131['enableCommand']('insertBookmark'),_0x388131['enableDefaultAttributesIntegration']('updateBookmark'),_0x388131['descriptionFactory']['registerDescriptionCallback'](_0x23cdf0=>{if('insertion'!=_0x23cdf0['type']&&'deletion'!=_0x23cdf0['type']&&'attribute'!=_0x23cdf0['type'])return;const _0x71a88e=_0x23cdf0['getContainedElement']();if(null==_0x71a88e)return;if(!_0x71a88e['is']('element','bookmark'))return;const _0x8295b6=_0x71a88e['getAttribute']('bookmarkId');if('insertion'==_0x23cdf0['type'])return{'type':'insertion','content':Tt(_0x5d632c,'*Insert:*\x20%0','\x22'+_0x8295b6+'\x22\x20'+Tt(_0x5d632c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x23cdf0['type'])return{'type':'deletion','content':Tt(_0x5d632c,'*Remove:*\x20%0','\x22'+_0x8295b6+'\x22\x20'+Tt(_0x5d632c,'ELEMENT_BOOKMARK'))};const {data:_0x14f395}=_0x23cdf0;if(!_0x14f395||'bookmarkId'!=_0x14f395['key'])return;return{'type':'format','content':Tt(_0x5d632c,'*Set\x20bookmark:*\x20%0','\x22'+_0x14f395['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x5a485e{['afterInit'](){const _0x3f380d=this['editor'];_0x3f380d['plugins']['has']('CaseChange')&&(_0x3f380d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f380d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f380d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x5a485e{['afterInit'](){const _0x477582=this['editor'];_0x477582['commands']['get']('ckbox')&&_0x477582['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x5a485e{['afterInit'](){const _0x374133=this['editor'];if(!_0x374133['plugins']['has']('CodeBlock'))return;const _0xb5341e=_0x374133['plugins']['get']('TrackChangesEditing'),_0x1b5abd=_0x374133['locale'],_0x10fb60=_0x374133['config']['get']('codeBlock')['languages'],_0x17c11e=_0x374133['commands']['get']('codeBlock');_0xb5341e['enableCommand']('indentCodeBlock'),_0xb5341e['enableCommand']('outdentCodeBlock'),_0xb5341e['enableCommand']('codeBlock',(_0x42dfd7,_0x2769a0={})=>{const _0xfc57db=_0x374133['model'],_0x4683de=_0x374133['model']['document']['selection'],_0xb3b4d9=_0x2769a0&&void 0x0!==_0x2769a0['forceValue']?_0x2769a0['forceValue']:!_0x17c11e['value'];let _0x32b7b6;_0x2769a0['language']||(_0x2769a0['language']=_0x10fb60[0x0]['language']),_0x32b7b6=_0xb3b4d9?Array['from'](_0x4683de['getSelectedBlocks']())['filter'](_0x2ea2b6=>Ct(_0x2ea2b6)||function(_0x185ab6,_0x51463c){if(_0x185ab6['is']('rootElement')||_0x51463c['isLimit'](_0x185ab6))return!0x1;return _0x51463c['checkChild'](_0x185ab6['parent'],'codeBlock');}(_0x2ea2b6,_0xfc57db['schema'])):Array['from'](_0x4683de['getSelectedBlocks']())['filter'](_0x5a3687=>Ct(_0x5a3687));const _0x102b9d=ft(_0x32b7b6,_0xfc57db);_0xfc57db['change'](()=>{for(const _0x141a4a of _0x102b9d)_0xb5341e['markBlockFormat'](_0x141a4a,{'commandName':'codeBlock','commandParams':[{..._0x2769a0,'forceValue':_0xb3b4d9}],'formatGroupId':'blockName'});});}),(_0xb5341e['descriptionFactory']['registerElementLabel']('codeBlock',_0x7a9406=>Tt(_0x1b5abd,'ELEMENT_CODE_BLOCK',_0x7a9406)),_0xb5341e['descriptionFactory']['registerDescriptionCallback'](_0x56ed92=>{if('formatBlock'!=_0x56ed92['type'])return;const _0x16dd30=_0x1b5abd['t'],{data:_0xca40d0}=_0x56ed92;if(!_0xca40d0||'codeBlock'!=_0xca40d0['commandName'])return;const _0x18123f=_0xca40d0['commandParams'][0x0]['language'],_0x2605c2=_0x16dd30(_0x10fb60['find'](_0x1121d9=>_0x1121d9['language']===_0x18123f)['label'])['toLowerCase']();return _0xca40d0['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1b5abd,'*Set\x20format:*\x20%0',Tt(_0x1b5abd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2605c2+')')}:{'type':'format','content':Tt(_0x1b5abd,'*Remove\x20format:*\x20%0',Tt(_0x1b5abd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x364872){return'codeBlock'==_0x364872['name'];}class TrackChangesComments extends _0x5a485e{['afterInit'](){const _0x566628=this['editor'];if(!_0x566628['plugins']['has']('CommentsEditing'))return;_0x566628['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x5a485e{static get['requires'](){return[at];}['init'](){const _0x22c698=this['editor'],_0x2fa92d=_0x22c698['plugins']['get']('TrackChangesEditing');_0x2fa92d['enableCommand']('delete');const _0x259e3f=_0x22c698['commands']['get']('deleteForward');_0x2fa92d['enableCommand']('deleteForward',(_0x3483ca,_0x21d886={})=>{const _0x5b12cd=_0x22c698['model']['createSelection'](_0x22c698['model']['document']['selection']);_0x5b12cd['isCollapsed']&&_0x22c698['model']['modifySelection'](_0x5b12cd,{'direction':'forward','unit':_0x21d886['unit']});const _0xac43ed=_0x5b12cd['getFirstRange'](),_0x322bbe=_0x53b34c['fromRange'](_0xac43ed);let _0xb0402a;_0x3483ca(_0x21d886),_0xb0402a='$graveyard'==_0x322bbe['root']['rootName']?_0x22c698['model']['createRange'](_0xac43ed['start']):_0x22c698['model']['createRange'](_0x322bbe['start'],_0x322bbe['end']),_0x322bbe['detach'](),_0x22c698['model']['enqueueChange'](_0x259e3f['buffer']['batch'],_0x3d4992=>{_0x259e3f['buffer']['lock'](),_0x3d4992['setSelection'](_0x3d4992['createRange'](_0xb0402a['end'])),_0x259e3f['buffer']['unlock']();});});}}class TrackChangesList extends _0x5a485e{['afterInit'](){const _0x4de2a4=this['editor'];if(!_0x4de2a4['plugins']['has']('ListEditing'))return;const _0x15c648=_0x4de2a4['locale'],_0x83292b=_0x4de2a4['plugins']['get']('TrackChangesEditing'),_0x7929e6=_0x4de2a4['plugins']['has']('TodoListEditing'),_0x29af91=!!_0x4de2a4['config']['get']('list.multiBlock');function _0x141b0c(_0x52cf88){return{'type':'format','content':''+Tt(_0x15c648,'*Set\x20format:*\x20%0',_0x52cf88)};}function _0x54cacb(_0x1b2c73){return{'type':'format','content':''+Tt(_0x15c648,'*Remove\x20format:*\x20%0',_0x1b2c73)};}_0x83292b['enableDefaultAttributesIntegration']('numberedList'),_0x83292b['enableDefaultAttributesIntegration']('bulletedList'),_0x83292b['enableDefaultAttributesIntegration']('customNumberedList'),_0x83292b['enableDefaultAttributesIntegration']('customBulletedList'),_0x83292b['enableDefaultAttributesIntegration']('indentList'),_0x83292b['enableDefaultAttributesIntegration']('outdentList'),_0x83292b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x83292b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x29af91&&(_0x83292b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x83292b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x7929e6&&(_0x83292b['enableDefaultAttributesIntegration']('todoList'),_0x83292b['enableDefaultAttributesIntegration']('checkTodoList'),_0x83292b['descriptionFactory']['registerDescriptionCallback'](_0x498efc=>{const {data:_0x50d60b}=_0x498efc;if(_0x50d60b&&'todoListChecked'==_0x50d60b['key'])return{'type':'format','content':_0x50d60b['newValue']?Tt(_0x15c648,'*Check\x20item*'):Tt(_0x15c648,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4d1928=>{if(_0x4d1928['batch']['isUndo'])return!0x1;let _0x272065=!0x1;const _0x10519b=_0x83292b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20c8ea=>'todoListChecked'===_0x83292b['_getAttributeKey'](_0x20c8ea));for(const _0x252bbf of _0x10519b){'todo'!=_0x252bbf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x83292b['_findSuggestions'](_0x252bbf['getFirstRange'](),'attribute')['find'](_0xbf3872=>'listType'===_0x83292b['_getAttributeKey'](_0xbf3872['suggestion']))||(_0x4d1928['removeMarker'](_0x252bbf['getFirstMarker']()),_0x272065=!0x0));}return _0x272065;})),_0x83292b['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x15c648,'FORMAT_INDENT'));const _0x16358b={'type':'format','content':''};_0x83292b['descriptionFactory']['registerDescriptionCallback'](_0xe462f8=>{const {data:_0x4f077c}=_0xe462f8;if(!_0x4f077c||'listType'!=_0x4f077c['key'])return;let _0x32ed73=_0xe462f8['head'];for(;_0x32ed73;){if(_0x32ed73['data']&&(('listStyle'==_0x32ed73['data']['key']||'listMarkerStyle'==_0x32ed73['data']['key'])&&(_0x32ed73['data']['newValue']&&'default'!=_0x32ed73['data']['newValue']||'default'!=_0x32ed73['data']['oldValue']&&!_0x4f077c['newValue'])||!_0x29af91&&_0x32ed73['data']['key']==Ft))return _0x16358b;_0x32ed73=_0x32ed73['next'];}if(null==_0x4f077c['newValue'])switch(_0x4f077c['oldValue']){case'bulleted':return _0x54cacb(Tt(_0x15c648,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54cacb(Tt(_0x15c648,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54cacb(Tt(_0x15c648,'ELEMENT_TODO_LIST'));}switch(_0x4f077c['newValue']){case'bulleted':return _0x141b0c(Tt(_0x15c648,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x141b0c(Tt(_0x15c648,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x141b0c(Tt(_0x15c648,'ELEMENT_TODO_LIST'));}}),_0x83292b['descriptionFactory']['registerDescriptionCallback'](_0xde7159=>{const {data:_0xd3901d}=_0xde7159;if(_0xd3901d&&'listIndent'==_0xd3901d['key'])return null==_0xd3901d['newValue']||null==_0xd3901d['oldValue']&&0x0==_0xd3901d['newValue']?_0x16358b:void 0x0;}),_0x83292b['descriptionFactory']['registerDescriptionCallback'](_0x49cb9f=>{if('attribute'!=_0x49cb9f['type'])return;const {data:_0x1f83f7}=_0x49cb9f;if(!_0x1f83f7||'listItemId'!=_0x1f83f7['key'])return;const _0x5a92ae=kt(_0x49cb9f);return'newValue'==_0x5a92ae?{'type':'format','content':Tt(_0x15c648,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5a92ae?{'type':'format','content':Tt(_0x15c648,'*Split:*\x20list\x20item')}:_0x16358b;}),_0x4de2a4['model']['document']['registerPostFixer'](_0x1291c7=>this['listItemIdFixer'](_0x1291c7)),_0x4de2a4['model']['document']['registerPostFixer'](_0x50aa42=>this['noTrackChangesFixer'](_0x50aa42)),_0x4de2a4['model']['document']['on']('change:data',(_0x26e448,_0x50da87)=>{if(_0x50da87['isUndo']||!_0x50da87['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2bf87d){if(_0x2bf87d['batch']['isUndo']||!_0x2bf87d['batch']['isLocal'])return!0x1;let _0x5db5ee=!0x1;const _0x310a96=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2daa81=>_0x2daa81['data']&&'listItemId'==_0x2daa81['data']['key'])['filter'](_0x42e5cb=>_0x42e5cb['data']['newValue']&&_0x42e5cb['data']['oldValue']);for(const _0x6c66dd of _0x310a96)kt(_0x6c66dd)||(_0x2bf87d['removeMarker'](_0x6c66dd['getFirstMarker']()),_0x5db5ee=!0x0);return _0x5db5ee;}['noTrackChangesFixer'](_0x5188fc){if(_0x5188fc['batch']['isUndo']||!_0x5188fc['batch']['isLocal'])return!0x1;const _0xbb57f9=this['editor']['model']['document']['differ'],_0x524ee1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x524ee1['trackChangesCommand']['value'])return!0x1;let _0xef547b=!0x1;const _0x5a9a62=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x544996=_0xbb57f9['getChanges']()['filter'](_0x293b68=>'attribute'==_0x293b68['type'])['filter'](_0x2bae5b=>_0x5a9a62['has'](_0x2bae5b['attributeKey']));if(0x0==_0x544996['length'])return _0xef547b;const _0xaa188a=new Set(_0xbb57f9['getMarkersToAdd']()['filter'](_0x1eaaaf=>{if(!_0x1eaaaf['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x572c86=_0x5cc320(_0x1eaaaf['name'])['subType']['split']('|')[0x0];return _0x5a9a62['has'](_0x572c86);})['map'](_0x108f04=>_0x5cc320(_0x108f04['name'])['id']));for(const _0x427ca7 of _0x544996){const _0x4bc25b=_0x524ee1['_findSuggestions'](_0x427ca7['range'],'attribute')['filter'](_0x219038=>{if(_0x219038['meta']['isNextTo'])return!0x1;if(_0xaa188a['has'](_0x219038['suggestion']['id']))return!0x1;const _0x107f6e=_0x524ee1['_getAttributeKey'](_0x219038['suggestion']);return _0x5a9a62['has'](_0x107f6e);})['map'](_0x18221f=>_0x18221f['suggestion']);if(_0x4bc25b['length']){for(const _0x478b78 of _0x4bc25b)_0x5188fc['removeMarker'](_0x478b78['getFirstMarker']());_0xef547b=!0x0;}}return _0xef547b;}['assureChains'](){const _0xc249ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45db42=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f7cf0;const _0x47f416=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x572b04=>{if(_0x572b04['data']['oldRange']||!_0x572b04['data']['newRange'])return null;if(!_0x572b04['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x354017}=_0x5cc320(_0x572b04['name']);if(!_0xc249ac['hasSuggestion'](_0x354017))return null;const _0x3918c3=_0xc249ac['getSuggestion'](_0x354017);return _0x45db42['includes'](_0x3918c3['data']['key']);})['map'](_0xd4ddb=>{const {id:_0x127076}=_0x5cc320(_0xd4ddb['name']),_0x2478da=_0xc249ac['getSuggestion'](_0x127076);return _0x3f7cf0=_0x2478da['attributes']['groupId'],_0x2478da['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x47f416['size'])return;const _0x53383f=_0xc249ac['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e3c6a=>'attribute'==_0x4e3c6a['type']&&_0x4e3c6a['data']&&_0x45db42['includes'](_0x4e3c6a['data']['key'])&&_0x4e3c6a['attributes']['groupId']!=_0x3f7cf0)['map'](_0x573801=>({'listItem':_0x573801['getFirstRange']()['start']['nodeAfter'],'groupId':_0x573801['attributes']['groupId']})),_0x110b04=new Set();for(const {groupId:_0x393961,listItem:_0x4ad587}of _0x53383f)_0x47f416['has'](_0x4ad587)&&_0x110b04['add'](_0x393961);for(const _0x580033 of _0xc249ac['getSuggestions']())_0x110b04['has'](_0x580033['attributes']['groupId'])&&_0x580033['setAttribute']('groupId',_0x3f7cf0);}['_supportLegacySuggestions'](){const _0x151107=this['editor'],_0x1f3753=_0x151107['locale'],_0x5857ad=_0x151107['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5857ad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5cbdf4,_0x471b01){const _0xc4d994=[];for(let _0x58ce93 of _0x5cbdf4)_0x58ce93['start']['nodeAfter']===_0x58ce93['end']['parent']&&(_0x58ce93=_0x151107['model']['createRange'](_0x151107['model']['createPositionAt'](_0x58ce93['start']['nodeAfter'],0x0))),_0xc4d994['push'](_0x58ce93);_0x151107['model']['change'](_0x30b514=>{const _0xd48551=_0x151107['model']['document']['selection'],_0x38d6a2=Array['from'](_0xd48551['getRanges']())['map'](_0x37bc97=>_0x53b34c['fromRange'](_0x37bc97));_0x30b514['setSelection'](_0xc4d994),_0x151107['commands']['get'](_0x471b01['commandName'])['refresh'](),_0x471b01['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x151107['execute'](_0x471b01['commandName'],..._0x471b01['commandParams']),_0x30b514['setSelection'](_0x38d6a2);for(const _0x10d5ff of _0x38d6a2)_0x10d5ff['detach']();});}),_0x5857ad['descriptionFactory']['registerElementLabel'](function(_0x342cbe){const _0x625ea6=!_0x151107['model']['schema']['isObject'](_0x342cbe),_0x1c0073=_0x342cbe['previousSibling'],_0x364cf3=_0x342cbe['nextSibling'],_0x2fe946=_0x342cbe['getAttribute']('listItemId'),_0x34dacb=!_0x1c0073||_0x1c0073['getAttribute']('listItemId')!==_0x2fe946,_0x7de997=!_0x364cf3||_0x364cf3['getAttribute']('listItemId')!==_0x2fe946;return _0x625ea6&&Boolean(_0x2fe946)&&_0x34dacb&&_0x7de997;},_0x956b89=>Tt(_0x1f3753,'ELEMENT_LIST_ITEM',_0x956b89));}['_registerLegacyDescription'](){const _0x28304e=this['editor'],_0x1cc3f9=_0x28304e['locale'];function _0x483c45(_0x36ac41){const _0x5db159=_0x28304e['commands']['get']('bulletedList')['value'],_0xc595cc=_0x28304e['commands']['get']('numberedList')['value'];return'numberedList'===_0x36ac41?_0x5db159:_0xc595cc;}_0x28304e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x142bad){if('formatBlock'!=_0x142bad['type'])return;const {data:_0x2fbbc6}=_0x142bad;if(!_0x2fbbc6)return;let _0xd8711e,_0x5f57d1,_0x46bc7d,_0x5a101d;switch(_0x2fbbc6['commandName']){case'bulletedList':_0x46bc7d=_0x2fbbc6['commandParams'][0x0]['forceValue'],_0x5a101d=_0x483c45(_0x2fbbc6['commandName']),_0xd8711e=_0x46bc7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a101d&&_0x28304e['config']['get']('list.multiBlock')||(_0xd8711e='*Change\x20to:*\x20%0'),_0x5f57d1={'type':'format','content':Tt(_0x1cc3f9,_0xd8711e,Tt(_0x1cc3f9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x46bc7d=_0x2fbbc6['commandParams'][0x0]['forceValue'],_0x5a101d=_0x483c45(_0x2fbbc6['commandName']),_0xd8711e=_0x46bc7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5a101d&&_0x28304e['config']['get']('list.multiBlock')||(_0xd8711e='*Change\x20to:*\x20%0'),_0x5f57d1={'type':'format','content':Tt(_0x1cc3f9,_0xd8711e,Tt(_0x1cc3f9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xd8711e='*Indent:*\x20%0',_0x5f57d1={'type':'format','content':Tt(_0x1cc3f9,_0xd8711e,Tt(_0x1cc3f9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xd8711e=function(_0x14734e){const _0x5d096d=_0x14734e['getFirstRange']();let _0x63327d=_0x5d096d['start']['nodeAfter'];for(;_0x63327d&&_0x5d096d['containsItem'](_0x63327d);){if(_0x63327d['getAttribute']('listIndent')>0x0)return!0x1;_0x63327d=_0x63327d['nextSibling'];}return!0x0;}(_0x142bad)?Tt(_0x1cc3f9,'*Format:*\x20remove\x20from\x20%0',Tt(_0x1cc3f9,function(_0x2db1c0){return'ELEMENT_'+_0x2db1c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x142bad))):Tt(_0x1cc3f9,'*Outdent:*\x20%0',Tt(_0x1cc3f9,'ELEMENT_LIST_ITEM')),_0x5f57d1={'type':'format','content':_0xd8711e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2fbbc6['multipleBlocks']&&(_0xd8711e='*Merge:*\x20%0',_0x5f57d1={'type':'deletion','content':Tt(_0x1cc3f9,_0xd8711e,Tt(_0x1cc3f9,'ELEMENT_LIST_ITEM'))});}return _0x5f57d1;});}}function kt(_0x49af68){let _0x3eb2c7=_0x49af68['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3eb2c7;){const _0x442bae=_0x3eb2c7['getAttribute']('listItemId');if(!_0x442bae)return!0x1;if(_0x442bae==_0x49af68['data']['newValue'])return'newValue';if(_0x442bae==_0x49af68['data']['oldValue'])return'oldValue';_0x3eb2c7=_0x3eb2c7['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x164d49=this['editor']['config']['get']('list.properties'),_0x3810b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x164d49['styles']&&_0x3810b2['enableDefaultAttributesIntegration']('listStyle'),_0x164d49['reversed']&&_0x3810b2['enableDefaultAttributesIntegration']('listReversed'),_0x164d49['startIndex']&&_0x3810b2['enableDefaultAttributesIntegration']('listStart');const _0x295486={'type':'format','content':''};_0x3810b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x296d05=this['editor']['locale'];_0x3810b2['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x296d05,'FORMAT_LIST_REVERSED')),_0x3810b2['descriptionFactory']['registerDescriptionCallback'](_0x5d4aa=>{const {data:_0x482a06}=_0x5d4aa;if(_0x482a06&&'listReversed'==_0x482a06['key'])return null==_0x482a06['newValue']||0x0==_0x482a06['newValue']&&null==_0x482a06['oldValue']?_0x295486:void 0x0;}),_0x3810b2['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x296d05,'FORMAT_LIST_START')),_0x3810b2['descriptionFactory']['registerDescriptionCallback'](_0x48bb2e=>{const {data:_0x3a1532}=_0x48bb2e;if(_0x3a1532&&'listStart'==_0x3a1532['key'])return null==_0x3a1532['newValue']||0x1==_0x3a1532['newValue']&&null==_0x3a1532['oldValue']?_0x295486:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x37cb38=>{if(_0x37cb38['batch']['isUndo'])return!0x1;let _0x121551=!0x1;const _0x2b9a2e=_0x3810b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31c734=>{const _0x4b2e46=_0x3810b2['_getAttributeKey'](_0x31c734);return'listStart'==_0x4b2e46||'listReversed'==_0x4b2e46;});for(const _0x1dfab1 of _0x2b9a2e){const _0x14ce95=_0x1dfab1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x14ce95||'customNumbered'==_0x14ce95)continue;_0x3810b2['_findSuggestions'](_0x1dfab1['getFirstRange'](),'attribute')['find'](_0xdfe5cf=>'listType'==_0x3810b2['_getAttributeKey'](_0xdfe5cf['suggestion']))||(_0x37cb38['removeMarker'](_0x1dfab1['getFirstMarker']()),_0x121551=!0x0);}return _0x121551;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x12e30b){const _0x5d5b4c=this['editor']['locale'],{data:_0x7a7130}=_0x12e30b,_0x31e309={'type':'format','content':''};if(!_0x7a7130||'listStyle'!=_0x7a7130['key'])return;if(!_0x7a7130['oldValue'])return'default'==_0x7a7130['newValue']?_0x31e309:{'type':'format','content':''+Tt(_0x5d5b4c,'*Set\x20format:*\x20%0',Tt(_0x5d5b4c,this['_getTranslationKeyForListStyle'](_0x7a7130['newValue'])))};if(!_0x7a7130['newValue']){if('default'==_0x7a7130['oldValue'])return _0x31e309;let _0x4edd33=_0x12e30b['head'];for(;_0x4edd33;){if(_0x4edd33['data']&&'listType'==_0x4edd33['data']['key']&&_0x4edd33['data']['newValue'])return _0x31e309;_0x4edd33=_0x4edd33['next'];}return{'type':'format','content':''+Tt(_0x5d5b4c,'*Remove\x20format:*\x20%0',Tt(_0x5d5b4c,this['_getTranslationKeyForListStyle'](_0x7a7130['oldValue'])))};}if('default'!=_0x7a7130['newValue'])return{'type':'format','content':''+Tt(_0x5d5b4c,'*Set\x20format:*\x20%0',Tt(_0x5d5b4c,this['_getTranslationKeyForListStyle'](_0x7a7130['newValue'])))};let _0x96448c=_0x12e30b['head'];for(;_0x96448c;){if(_0x96448c['data']&&'listType'==_0x96448c['data']['key']&&_0x96448c['data']['newValue']&&_0x96448c['data']['oldValue'])return _0x31e309;_0x96448c=_0x96448c['next'];}return{'type':'format','content':Tt(_0x5d5b4c,'*Set\x20format:*\x20%0',Tt(_0x5d5b4c,'ELEMENT_'+_0x12e30b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x27475d=this['editor'],_0x56fc6d=_0x27475d['locale'];_0x27475d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42a68b=>{if('formatBlock'!=_0x42a68b['type'])return;const {data:_0x3d9a73}=_0x42a68b;if(!_0x3d9a73)return;let _0x2c07e0,_0x6cdd57;switch(_0x3d9a73['commandName']){case'listStyle':_0x2c07e0='*Change\x20to:*\x20%0',_0x6cdd57={'type':'format','content':Tt(_0x56fc6d,_0x2c07e0,Tt(_0x56fc6d,this['_getTranslationKeyForListStyle'](_0x3d9a73['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c07e0=_0x3d9a73['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6cdd57={'type':'format','content':Tt(_0x56fc6d,_0x2c07e0)};break;case'listStart':_0x2c07e0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6cdd57={'type':'format','content':Tt(_0x56fc6d,_0x2c07e0,_0x3d9a73['commandParams'][0x0]['startIndex'])};}return _0x6cdd57;});}['_getTranslationKeyForListStyle'](_0x4951d5){return'ELEMENT_'+function(_0x2f774c){if(Lt['includes'](_0x2f774c))return'bulleted';if(It['includes'](_0x2f774c))return'numbered';return null;}(_0x4951d5)['toUpperCase']()+'_LIST_'+_0x4951d5['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 _0x5a485e{['afterInit'](){const _0x2c4f92=this['editor'];_0x2c4f92['commands']['get']('emoji')&&_0x2c4f92['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x5a485e{static get['requires'](){return[lt];}['init'](){const _0x4f225a=this['editor'],_0xa64bf0=_0x4f225a['plugins']['get']('TrackChangesEditing'),_0x271c7b=_0x4f225a['commands']['get']('enter');_0xa64bf0['enableCommand']('enter',()=>{_0x4f225a['model']['change'](_0x426925=>{const _0x4f0ac3=_0x4f225a['model']['document']['selection'],_0x40191d=_0x4f0ac3['getFirstPosition'](),_0x491aaa=_0x53b34c['fromRange'](_0x4f0ac3['getFirstRange']());if(_0x271c7b['enterBlock'](_0x426925)){const _0x2c8c4a=_0x4f225a['model']['createPositionAt'](_0x40191d['parent']['nextSibling'],0x0),_0x38abe8=_0x426925['createRange'](_0x40191d,_0x2c8c4a);_0xa64bf0['markInsertion'](_0x38abe8);}else _0x426925['setSelection'](_0x426925['createRange'](_0x491aaa['end']));_0x491aaa['detach'](),_0x271c7b['fire']('afterExecute',{'writer':_0x426925});});});}}class TrackChangesFindAndReplace extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x365bc6=this['editor']['plugins']['get']('TrackChangesEditing');_0x365bc6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x365bc6['enableCommand']('findNext'),_0x365bc6['enableCommand']('findPrevious'),_0x365bc6['enableCommand']('replace'),_0x365bc6['enableCommand']('replaceAll');}['handleFindCommand'](_0x2dc49d,_0x19cd1f,_0x1f6606={}){const _0xc0f7ec=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2dc49d(_0x26e241=>{let _0x236c16=('string'==typeof _0x19cd1f?_0xc0f7ec['findByTextCallback'](_0x19cd1f,_0x1f6606):_0x19cd1f)(_0x26e241);Array['isArray'](_0x236c16)&&(_0x236c16={'results':_0x236c16,'searchText':'string'==typeof _0x19cd1f?_0x19cd1f:''});const _0x4a6982=_0x236c16['results']['filter'](_0x2555e9=>!0x1===this['_isInDeletionRange'](_0x2555e9,_0x26e241['item']));return{..._0x236c16,'results':_0x4a6982};},_0x1f6606);}['_isInDeletionRange'](_0x1357dc,_0x5d46f5){const _0x4e89f9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d46f5,_0x1357dc['start']),this['editor']['model']['createPositionAt'](_0x5d46f5,_0x1357dc['end']));for(const _0x4e68ce of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4e89f9['getIntersection'](_0x4e68ce['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 _0x5a485e{['afterInit'](){const _0x396a2d=this['editor']['locale'],_0x49a601=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x17581f,commandName:_0x233683}of bt)this['editor']['plugins']['has'](_0x17581f)&&_0x49a601['enableDefaultAttributesIntegration'](_0x233683);_0x49a601['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x396a2d,'FORMAT_FONT_SIZE')),_0x49a601['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x396a2d,'FORMAT_FONT_FAMILY')),_0x49a601['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x396a2d,'FORMAT_FONT_COLOR')),_0x49a601['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x396a2d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f2ae1=this['editor'],_0x4d86af=_0x4f2ae1['locale'];_0x4f2ae1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39f017=>{const _0x378bad=_0x4d86af['t'];if('formatInline'!=_0x39f017['type'])return;const {data:_0x891b31}=_0x39f017;if(null!=_0x891b31){if('fontSize'==_0x891b31['commandName']){const _0x33a242=_0x891b31['commandParams'][0x0]['value'];if(_0x33a242){const _0x4f5efe=_0x378bad(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5c4be8=>_0x5c4be8['model']==_0x33a242)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x4d86af,'*Set\x20font\x20size:*\x20%0',_0x4f5efe)};}return{'type':'format','content':Tt(_0x4d86af,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x891b31['commandName']){const _0x303e99=_0x891b31['commandParams'][0x0]['value'];return _0x303e99?{'type':'format','content':Tt(_0x4d86af,'*Set\x20font\x20family:*\x20%0',_0x303e99)}:{'type':'format','content':Tt(_0x4d86af,'*Reset\x20font\x20family*')};}if('fontColor'==_0x891b31['commandName']){const _0x330e17=_0x891b31['commandParams'][0x0]['value'];if(_0x330e17){const _0x12204a=_0x4d4289(this['editor']['config']['get']('fontColor.colors'))['find'](_0x13ccdf=>_0x13ccdf['model']==_0x330e17);let _0x11414e=_0x330e17,_0x46ff60='';return _0x12204a&&(_0x11414e=_0x12204a['label'],_0x46ff60=_0x378bad(_0x11414e)['toLowerCase']()),{'type':'format','content':Tt(_0x4d86af,'*Set\x20font\x20color:*\x20%0',_0x46ff60)['trim'](),'color':{'value':_0x330e17,'title':_0x46ff60||_0x11414e}};}return{'type':'format','content':Tt(_0x4d86af,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x891b31['commandName']){const _0x14bef8=_0x891b31['commandParams'][0x0]['value'];if(_0x14bef8){const _0x9bc013=_0x4d4289(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3c5e7f=>_0x3c5e7f['model']==_0x14bef8);let _0x2b5854=_0x14bef8,_0x3eed3d='';return _0x9bc013&&(_0x2b5854=_0x9bc013['label'],_0x3eed3d=_0x378bad(_0x2b5854)['toLowerCase']()),{'type':'format','content':Tt(_0x4d86af,'*Set\x20font\x20background\x20color:*\x20%0',_0x3eed3d)['trim'](),'color':{'value':_0x14bef8,'title':_0x3eed3d||_0x2b5854}};}return{'type':'format','content':Tt(_0x4d86af,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x5a485e{['afterInit'](){const {plugins:_0x4d8ae0}=this['editor'];_0x4d8ae0['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4d8ae0['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x3558b8,plugins:_0xa5b78a,commands:_0x43bbe4}=this['editor'],_0xa05bfb=_0xa5b78a['get']('TrackChangesEditing');_0x43bbe4['get']('footnotesStyle')&&_0xa05bfb['enableDefaultAttributesIntegration']('footnotesStyle'),_0x43bbe4['get']('footnotesStart')&&_0xa05bfb['enableDefaultAttributesIntegration']('footnotesStart'),_0xa05bfb['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x3558b8,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xa05bfb['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x3558b8,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x38400d=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x45bb8d,commands:_0x38e7be}=this['editor'];_0x38e7be['get']('insertFootnote')&&_0x38400d['enableCommand']('insertFootnote'),_0x38400d['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4412f8=>Tt(_0x45bb8d,'ELEMENT_FOOTNOTE_REF',_0x4412f8)),_0x38400d['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3a1a7c=>Tt(_0x45bb8d,'ELEMENT_FOOTNOTE_DEFINITION',_0x3a1a7c)),_0x38400d['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4da442=>Tt(_0x45bb8d,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4da442));}}class TrackChangesFormatPainter extends _0x5a485e{['afterInit'](){const _0xd889d8=this['editor'],_0x2cc5fe=_0xd889d8['plugins']['get']('TrackChangesEditing'),_0x33ec47=_0xd889d8['commands']['get']('copyFormat'),_0x1ead47=_0xd889d8['commands']['get']('pasteFormat');_0x33ec47&&_0x1ead47&&(_0x2cc5fe['enableDefaultAttributesIntegration']('pasteFormat'),_0x2cc5fe['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3c8271=this['editor'],_0x3caa49=_0x3c8271['locale'];_0x3c8271['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13ce65=>{if('formatBlock'!=_0x13ce65['type']&&'formatInline'!=_0x13ce65['type'])return;const {data:_0x5a571c}=_0x13ce65;if(_0x5a571c&&'pasteFormat'===_0x5a571c['commandName']){const _0x541bbf=[],_0x2a3556=_0x5a571c['commandParams'][0x0];for(const [_0x7f2b9,_0x541577]of Object['entries'](_0x2a3556))_0x541bbf['push'](At(_0x3c8271,_0x7f2b9,_0x541577));return _0x541bbf['length']?{'type':'format','content':Tt(_0x3caa49,'*Set\x20format\x20to:*\x20%0',_0x541bbf['join'](',\x20'))}:{'type':'format','content':Tt(_0x3caa49,'*Remove\x20all\x20formatting*')};}});}}function At(_0x19fcb2,_0x504f59,_0x3504f3){const _0x4c2dfc=_0x19fcb2['locale']['t'],_0x4eb8e7=_0x504f59['split'](/(?=[A-Z])/)['join']('\x20'),_0x84bf0e=_0x4c2dfc(_0x4eb8e7['charAt'](0x0)['toUpperCase']()+_0x4eb8e7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3504f3)return _0x84bf0e;if('fontColor'===_0x504f59||'fontBackgroundColor'===_0x504f59){const _0x4ea767=_0x4d4289(_0x19fcb2['config']['get']('fontColor.colors'))['find'](_0x31d4d3=>_0x31d4d3['model']==_0x3504f3);return _0x84bf0e+'\x20('+(_0x4ea767?_0x4c2dfc(_0x4ea767['label'])['toLowerCase']():_0x3504f3)+')';}if('fontSize'===_0x504f59&&isNaN(parseFloat(_0x3504f3))){const _0x3fd363=_0x19fcb2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x19fcb2['config']['get']('fontSize.options'))['find'](_0x3d0e6=>_0x3d0e6['model']==_0x3504f3);return _0x84bf0e+'\x20('+(_0x3fd363?_0x4c2dfc(_0x3fd363['title'])['toLowerCase']():_0x3504f3)+')';}return _0x84bf0e+'\x20('+_0x3504f3+')';}class TrackChangesHeading extends _0x5a485e{['_headingOptions'];['afterInit'](){const _0x4dd746=this['editor'];if(!_0x4dd746['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4dd746['config']['get']('heading.options');const _0x200e12=_0x4dd746['locale'],_0x50c92d=_0x4dd746['plugins']['get']('TrackChangesEditing');_0x50c92d['enableDefaultAttributesIntegration']('heading');for(const _0xdab3b7 of this['_headingOptions'])'paragraph'!=_0xdab3b7['model']&&_0x50c92d['descriptionFactory']['registerElementLabel'](_0xdab3b7['model'],_0x188d7a=>{const _0x64af8d=this['_getHeadingLevel'](_0xdab3b7['model']);return null!==_0x64af8d?_0x10b7e3(_0x188d7a,_0x64af8d):_0x4c7d2c(_0x188d7a,_0xdab3b7['title']);});function _0x10b7e3(_0x611d13,_0x2c75b8){return Tt(_0x200e12,'ELEMENT_HEADING',[_0x611d13,_0x2c75b8]);}function _0x4c7d2c(_0x18ce45,_0x48ede4){return Tt(_0x200e12,'ELEMENT_HEADING_CUSTOM',[_0x18ce45,_0x48ede4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4186b1=this['editor'],_0x5a22e4=_0x4186b1['locale'];function _0x45f4cd(_0x15bf73,_0x5d1271){return Tt(_0x5a22e4,'ELEMENT_HEADING_CUSTOM',[_0x15bf73,_0x5d1271]);}_0x4186b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f8c0a=>{if('formatBlock'!=_0x2f8c0a['type'])return;const {data:_0x22e5ab}=_0x2f8c0a;if(_0x22e5ab&&'heading'==_0x22e5ab['commandName']){const _0x2bd7c3=_0x22e5ab['commandParams'][0x0]['value'],_0x5cc8d6=this['_getHeadingLevel'](_0x2bd7c3);if(null!==_0x5cc8d6)return{'type':'format','content':Tt(_0x5a22e4,'*Change\x20to:*\x20%0',(_0x6d6de2=0x1,_0x4f87ec=_0x5cc8d6,Tt(_0x5a22e4,'ELEMENT_HEADING',[_0x6d6de2,_0x4f87ec])))};const _0x25ba88=this['_headingOptions']['find'](_0x52f85b=>_0x52f85b['model']===_0x2bd7c3)['title'];return{'type':'format','content':Tt(_0x5a22e4,'*Change\x20to:*\x20%0',_0x45f4cd(0x1,_0x25ba88))};}var _0x6d6de2,_0x4f87ec;});}['_getHeadingLevel'](_0x514ec8){const _0x4b6653=_0x514ec8['match'](/^heading(\d+)/);if(_0x4b6653)return _0x4b6653[0x1];const _0x10d7f8=this['_headingOptions']?.['find'](_0x34c7c7=>_0x34c7c7['model']==_0x514ec8);if(_0x10d7f8&&_0x10d7f8['view']){const _0x4c53c8=_0x10d7f8['view'],_0x5dab0d=(_0x4c53c8['name']??_0x4c53c8)['match'](/^h(\d+)/);if(_0x5dab0d)return _0x5dab0d[0x1];}return null;}}class TrackChangesHighlight extends _0x5a485e{['afterInit'](){const _0x54023b=this['editor'];if(!_0x54023b['plugins']['has']('HighlightEditing'))return;const _0x340703=_0x54023b['plugins']['get']('TrackChangesEditing'),_0x3495bb=_0x54023b['locale'];_0x340703['enableDefaultAttributesIntegration']('highlight'),_0x340703['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x3495bb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20825f=this['editor'],_0x3ccbdf=_0x20825f['locale'];_0x20825f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31623b=>{if('formatInline'!=_0x31623b['type'])return;const {data:_0x3ac2e6}=_0x31623b;if(_0x3ac2e6&&'highlight'==_0x3ac2e6['commandName']){const _0x5c826b=_0x3ccbdf['t'],_0x315af1=_0x3ac2e6['commandParams'][0x0]['value'];if(_0x315af1){const _0x27878c=_0x20825f['config']['get']('highlight.options')['find'](_0x276638=>_0x276638['model']==_0x315af1),_0x967f94=_0x5c826b(_0x27878c['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x3ccbdf,'*Set\x20highlight:*\x20%0',_0x967f94),'color':{'value':_0x27878c['color'],'title':_0x27878c['title']}};}return{'type':'format','content':Tt(_0x3ccbdf,'*Remove\x20highlight*',Tt(_0x3ccbdf,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x5a485e{['afterInit'](){const _0x49c42d=this['editor'];if(!_0x49c42d['plugins']['has']('HorizontalLineEditing'))return;_0x49c42d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4877b5=_0x49c42d['plugins']['get']('TrackChangesEditing'),_0x3dda36=_0x49c42d['locale'];_0x4877b5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x45217f=>Tt(_0x3dda36,'ELEMENT_HORIZONTAL_LINE',_0x45217f));}}class TrackChangesHtmlEmbed extends _0x5a485e{['afterInit'](){const _0xc27733=this['editor'];if(!_0xc27733['plugins']['has']('HtmlEmbed'))return;const _0x1affcc=_0xc27733['plugins']['get']('TrackChangesEditing'),_0x222a24=_0xc27733['locale'];_0x1affcc['descriptionFactory']['registerElementLabel']('rawHtml',_0x3b0887=>Tt(_0x222a24,'ELEMENT_HTML_EMBED',_0x3b0887)),_0x1affcc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1affcc['descriptionFactory']['registerDescriptionCallback'](_0xa8491=>{if('attribute'!=_0xa8491['type'])return;const {data:_0x556c70}=_0xa8491;if(_0x556c70&&'value'==_0x556c70['key']&&_0xa8491['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x33a22a=Tt(_0x222a24,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x222a24,'*Change\x20%0\x20content*',_0x33a22a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33ced2=this['editor'],_0x2d7f50=_0x33ced2['locale'];_0x33ced2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa4f8f5=>{if('formatBlock'!=_0xa4f8f5['type'])return;const {data:_0x513f5b}=_0xa4f8f5;if(_0x513f5b&&'htmlEmbed'==_0x513f5b['commandName']){const _0x2baaae=Tt(_0x2d7f50,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x2d7f50,'*Change\x20%0\x20content*',_0x2baaae)};}});}}class TrackChangesImage extends _0x5a485e{['afterInit'](){const _0x14c807=this['editor'];if(!_0x14c807['plugins']['has']('ImageEditing'))return;const _0x1e5f1e=_0x14c807['plugins']['get']('TrackChangesEditing'),_0xeb0bc8=_0x14c807['plugins']['get']('ImageUtils'),_0x2a899c=_0x14c807['locale'];_0x1e5f1e['enableCommand']('insertImage'),_0x1e5f1e['descriptionFactory']['registerElementLabel']('imageBlock',_0xa77e99=>Tt(_0x2a899c,'ELEMENT_IMAGE',_0xa77e99)),_0x1e5f1e['descriptionFactory']['registerElementLabel']('imageInline',_0x50316f=>Tt(_0x2a899c,'ELEMENT_INLINE_IMAGE',_0x50316f)),_0x1e5f1e['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x2a899c,'ELEMENT_CAPTION')),_0x14c807['plugins']['has']('ImageUploadEditing')&&_0x1e5f1e['enableCommand']('uploadImage'),_0x14c807['plugins']['has']('ImageBlockEditing')&&_0x14c807['plugins']['has']('ImageInlineEditing')&&(_0x1e5f1e['enableCommand']('imageTypeInline',(_0x3f043c,_0x321f3b)=>{const _0x2d4ea2=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']);_0x14c807['model']['change'](()=>{_0x1e5f1e['markBlockFormat'](_0x2d4ea2,{'commandName':'imageTypeInline','commandParams':[_0x321f3b]},[],'convertBlockImageToInline');});}),_0x1e5f1e['enableCommand']('imageTypeBlock',(_0x26b2fa,_0x5c823e)=>{_0x14c807['model']['change'](_0x43069e=>{let _0x18440f=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']),_0x546857=_0x43069e['createRangeOn'](_0x18440f);const _0xfde980=tt['fromPosition'](_0x546857['start'],'toPrevious'),_0x2cf00c=tt['fromPosition'](_0x546857['end'],'toNext');_0x1e5f1e['forceDefaultExecution'](()=>_0x26b2fa(_0x5c823e)),_0x18440f=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']),_0x546857=_0x43069e['createRangeOn'](_0x18440f);const _0x5c59a0=_0x43069e['createRange'](_0xfde980,_0x2cf00c);_0xfde980['detach'](),_0x2cf00c['detach'](),_0x1e5f1e['markBlockFormat'](_0x18440f,{'commandName':'imageTypeInline','commandParams':[_0x5c823e]},[],'convertInlineImageToBlock'),_0x5c59a0['start']['isBefore'](_0x546857['start'])&&_0x1e5f1e['markInsertion'](_0x43069e['createRange'](_0x5c59a0['start'],_0x546857['start']),'convertInlineImageToBlock'),_0x546857['end']['isBefore'](_0x5c59a0['end'])&&_0x1e5f1e['markInsertion'](_0x43069e['createRange'](_0x546857['end'],_0x5c59a0['end']),'convertInlineImageToBlock');});}),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e5f1e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x44c600])=>{const _0x1454c4=_0x1e5f1e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1fb451=_0x44c600['start'],_0x1eda56=_0x44c600['end'];const _0x532a0a=_0x14c807['model']['schema']['getNearestSelectionRange'](_0x1fb451,'backward'),_0x1aa648=_0x14c807['model']['schema']['getNearestSelectionRange'](_0x1eda56,'forward');_0x532a0a['isCollapsed']&&(_0x1fb451=_0x532a0a['start']),_0x1aa648['isCollapsed']&&(_0x1eda56=_0x1aa648['end']),_0x1454c4([_0x14c807['model']['createRange'](_0x1fb451,_0x1eda56)]);}),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1a3589),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1a3589)),_0x14c807['plugins']['has']('ImageCaptionEditing')&&(_0x1e5f1e['enableCommand']('toggleImageCaption',(_0x27d203,_0x191704)=>{const _0x5f2f04=_0x14c807['plugins']['get']('ImageCaptionUtils');let _0x23d50=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']),_0x42bdfe=_0x5f2f04['getCaptionFromImageModelElement'](_0x23d50);_0x14c807['model']['change'](()=>{if(_0x42bdfe)return void _0x1e5f1e['markDeletion'](_0x14c807['model']['createRangeOn'](_0x42bdfe));const _0x2285cb=_0xeb0bc8['isBlockImage'](_0x23d50);_0x27d203(_0x191704),_0x23d50=_0xeb0bc8['getClosestSelectedImageElement'](_0x14c807['model']['document']['selection']),_0x42bdfe=_0x5f2f04['getCaptionFromImageModelElement'](_0x23d50),_0x1e5f1e['markInsertion'](_0x14c807['model']['createRangeOn'](_0x42bdfe),_0x2285cb?null:'imageCaption');});}),_0x1e5f1e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1a3589));const _0x46f2f7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x242c32(_0x184b92,_0xdaa1fa){const _0x42dde4=_0x46f2f7['findIndex'](({type:_0x4cb483,subType:_0x56c3e5})=>_0x184b92['type']==_0x4cb483&&_0x184b92['subType']==_0x56c3e5),_0x37fdde=_0x46f2f7['findIndex'](({type:_0x42f3e7,subType:_0x277bf1})=>_0xdaa1fa['type']==_0x42f3e7&&_0xdaa1fa['subType']==_0x277bf1);if(_0x42dde4<0x0||_0x37fdde<0x0)return!0x1;const _0x49d214=_0x184b92['getFirstRange'](),_0xdf1e5f=_0xdaa1fa['getFirstRange']();if((0x0==_0x42dde4||0x1==_0x42dde4)&&0x2==_0x37fdde&&_0x49d214['isIntersecting'](_0xdf1e5f))return!0x0;if(0x2==_0x42dde4&&0x3==_0x37fdde){const _0x542fb3=_0x1e5f1e['_findSuggestions'](_0x49d214,'insertion')['filter'](({suggestion:_0x3a4c98,meta:_0x22b2a8})=>_0x22b2a8['isOwn']&&'convertInlineImageToBlock'==_0x3a4c98['subType']);if(_0x542fb3['length']>0x1&&_0xdf1e5f['end']['isEqual'](_0x49d214['start']))return!0x0;if(0x1==_0x542fb3['length']&&(_0x49d214['start']['isEqual'](_0xdf1e5f['end'])||_0x49d214['end']['isEqual'](_0xdf1e5f['start'])))return!0x0;}if(0x3==_0x42dde4&&0x3==_0x37fdde&&_0x49d214['start']['isBefore'](_0xdf1e5f['start'])){const _0x224bf2=_0x49d214['end']['nodeAfter'],_0x641ec=_0xdf1e5f['start']['nodeBefore'];return _0xeb0bc8['isBlockImage'](_0x224bf2)&&_0x224bf2===_0x641ec;}return!0x1;}function _0x1a3589(_0x4f93a9,_0x52339e){return _0x242c32(_0x4f93a9,_0x52339e)?[_0x4f93a9,_0x52339e]:_0x242c32(_0x52339e,_0x4f93a9)?[_0x52339e,_0x4f93a9]:null;}_0x14c807['plugins']['has']('ImageResize')&&(_0x1e5f1e['enableDefaultAttributesIntegration']('resizeImage'),_0x1e5f1e['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x2a899c,'FORMAT_IMAGE_SIZE'))),_0x14c807['plugins']['has']('ImageTextAlternativeEditing')&&_0x1e5f1e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x14c807['plugins']['has']('PictureEditing')&&_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x365fb7=>{if('attribute'!=_0x365fb7['type'])return;const {data:_0xf36495}=_0x365fb7;return _0xf36495&&'sources'==_0xf36495['key']?{'type':'format','content':''}:void 0x0;}),_0x14c807['plugins']['has']('ImageSizeAttributes')&&_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x479e21=>{if('attribute'!=_0x479e21['type'])return;const {data:_0x45b6c9}=_0x479e21;return!_0x45b6c9||'width'!=_0x45b6c9['key']&&'height'!=_0x45b6c9['key']?void 0x0:{'type':'format','content':''};}),_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x59470b=>{if(!!_0x46f2f7['find'](({type:_0x2f6ec2,subType:_0x36ca86})=>_0x59470b['type']==_0x2f6ec2&&_0x59470b['subType']==_0x36ca86))return _0x59470b['previous']?{}:void 0x0;}),_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x4aaf1f=>{if('insertion'==_0x4aaf1f['type']||'deletion'==_0x4aaf1f['type']){const _0x5f2d22=_0x4aaf1f['getContainedElement']();if(_0x5f2d22&&_0x5f2d22['is']('element','caption'))return{'type':'insertion'==_0x4aaf1f['type']?'addObject':'removeObject','element':_0x5f2d22,'quantity':0x1};}}),_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x4a8381=>'formatBlock'==_0x4a8381['type']&&'convertInlineImageToBlock'==_0x4a8381['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4a8381['type']&&'convertBlockImageToInline'==_0x4a8381['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e5f1e['descriptionFactory']['registerDescriptionCallback'](_0x3cd649=>{if('attribute'!=_0x3cd649['type'])return;const {data:_0x3daeef}=_0x3cd649;if(!_0x3daeef||'alt'!=_0x3daeef['key'])return;const _0x9b50ba=_0x3daeef['newValue'];return _0x9b50ba?{'type':'format','content':Tt(_0x2a899c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9b50ba+'\x22')}:{'type':'format','content':Tt(_0x2a899c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x261c2f=this['editor'],_0x1d6c20=_0x261c2f['locale'];_0x261c2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bab96=>{if('formatBlock'!=_0x1bab96['type']&&'formatInline'!=_0x1bab96['type'])return;const {data:_0x1bad4f}=_0x1bab96;if(_0x1bad4f){if('imageTextAlternative'==_0x1bad4f['commandName']){const _0x2c5272=_0x1bad4f['commandParams'][0x0]['newValue'];return _0x2c5272?{'type':'format','content':Tt(_0x1d6c20,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c5272+'\x22')}:{'type':'format','content':Tt(_0x1d6c20,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1bad4f['commandName']){const _0x43ef65=_0x1bad4f['commandParams'][0x0]['width'];return _0x43ef65?{'type':'format','content':Tt(_0x1d6c20,'*Set\x20image\x20width:*\x20%0',_0x43ef65)}:{'type':'format','content':Tt(_0x1d6c20,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x421a39=this['editor']['locale'],_0x563a9d=this['editor']['plugins']['get']('TrackChangesEditing');_0x563a9d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x563a9d['descriptionFactory']['registerDescriptionCallback'](_0x5e6d91=>{if('attribute'!=_0x5e6d91['type'])return;const {data:_0x21612b}=_0x5e6d91;return _0x21612b&&'src'==_0x21612b['key']?_0x21612b['newValue']&&_0x21612b['oldValue']?{'type':'format','content':Tt(_0x421a39,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2e089c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e089c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2e089c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e089c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2e089c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22004c=this['editor'],_0x4a9d86=_0x22004c['locale'];_0x22004c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x517fc2=>{if('formatBlock'!=_0x517fc2['type']&&'formatInline'!=_0x517fc2['type'])return;const {data:_0x257cbc}=_0x517fc2;if(!_0x257cbc||'replaceImageSource'!=_0x257cbc['commandName'])return;return{'type':'format','content':Tt(_0x4a9d86,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x5a485e{['afterInit'](){const _0xe037f9=this['editor'];if(!_0xe037f9['plugins']['has']('ImageStyleEditing'))return;const _0x8502ef=_0xe037f9['plugins']['get']('TrackChangesEditing'),_0x333ba4=_0xe037f9['plugins']['get']('ImageUtils'),_0x267494={};_0x8502ef['enableCommand']('imageStyle',(_0x5ce535,_0x17392e)=>{const _0x59081e=_0xe037f9['plugins']['get']('Users')['me'],_0x33de1c=_0xe037f9['commands']['get']('imageStyle');let _0x3ccfc5=_0x333ba4['getClosestSelectedImageElement'](_0xe037f9['model']['document']['selection']),_0xde3a53=_0xe037f9['model']['createRangeOn'](_0x3ccfc5),_0x4f194c=_0x33de1c['value'];if(_0x4f194c==_0x17392e['value'])return;const _0x11da42={'commandName':'imageStyle','commandParams':[_0x17392e],'formatGroupId':_0x272311()};_0xe037f9['model']['change'](()=>{if(_0x8502ef['getSuggestions']()['filter'](_0x416d8b=>_0x416d8b['isInContent']&&_0x59081e==_0x416d8b['author']&&('formatBlock'==_0x416d8b['type']||'formatInline'==_0x416d8b['type'])&&('imageStylePreApply'==_0x416d8b['subType']||'imageStylePostApply'==_0x416d8b['subType'])&&_0x416d8b['getFirstRange']()['isEqual'](_0xde3a53))['forEach'](_0x16b3c6=>_0x8502ef['discardSuggestion'](_0x16b3c6['head'])),_0x3ccfc5=_0x333ba4['getClosestSelectedImageElement'](_0xe037f9['model']['document']['selection']),_0xde3a53=_0xe037f9['model']['createRangeOn'](_0x3ccfc5),_0x33de1c['refresh'](),_0xe037f9['commands']['get']('imageTypeInline')['refresh'](),_0xe037f9['commands']['get']('imageTypeBlock')['refresh'](),_0x4f194c=_0x33de1c['value'],_0x4f194c!=_0x17392e['value'])return _0x333ba4['isInlineImage'](_0x3ccfc5)&&_0x33de1c['shouldConvertImageType'](_0x17392e['value'],_0x3ccfc5)?(_0x5ce535({..._0x17392e,'setImageSizes':!0x1}),_0x3ccfc5=_0x333ba4['getClosestSelectedImageElement'](_0xe037f9['model']['document']['selection']),void _0x8502ef['markBlockFormat'](_0x3ccfc5,{..._0x11da42,'commandReversedParams':[{'value':_0x4f194c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x333ba4['isBlockImage'](_0x3ccfc5)?_0x8502ef['markBlockFormat'](_0x3ccfc5,_0x11da42,[],'imageStylePostApply'):_0x8502ef['markInlineFormat'](_0xde3a53,_0x11da42,'imageStylePostApply'));});});for(const _0x57adce of _0xe037f9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x267494[_0x57adce['name']]=_0x57adce['title']['toLowerCase']();_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2deda6])=>{_0x333ba4['setImageNaturalSizeAttributes'](_0x2deda6['getContainedElement']());}),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x43e8a3,_0x4277ec)=>{_0x8502ef['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x43e8a3,{'commandName':_0x4277ec['commandName'],'commandParams':_0x4277ec['commandReversedParams']});}),_0x8502ef['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x11c2e4,_0x3047c2){if(_0x83fa3d(_0x11c2e4,_0x3047c2))return[_0x11c2e4,_0x3047c2];if(_0x83fa3d(_0x3047c2,_0x11c2e4))return[_0x3047c2,_0x11c2e4];return null;});const _0xc4f6a9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x83fa3d(_0x25e958,_0x38ae9c){const _0x25d500=_0xc4f6a9['findIndex'](({type:_0x27ca94,subType:_0x1e3b75})=>_0x25e958['type']==_0x27ca94&&_0x25e958['subType']==_0x1e3b75),_0x223a69=_0xc4f6a9['findIndex'](({type:_0x5c3601,subType:_0x5ee48e})=>_0x38ae9c['type']==_0x5c3601&&_0x38ae9c['subType']==_0x5ee48e);if(_0x25d500<0x0||_0x223a69<0x0)return!0x1;const _0x2dc532=_0x25e958['getFirstRange'](),_0x793ddf=_0x38ae9c['getFirstRange']();if((0x0==_0x25d500||0x1==_0x25d500)&&0x2==_0x223a69&&_0x2dc532['isIntersecting'](_0x793ddf))return!0x0;if(0x2==_0x25d500&&0x3==_0x223a69){const _0x278f2f=_0x8502ef['_findSuggestions'](_0x2dc532,'insertion')['filter'](({suggestion:_0x124051,meta:_0x2b65df})=>_0x2b65df['isOwn']&&'convertInlineImageToBlock'==_0x124051['subType']);if(_0x278f2f['length']>0x1&&_0x793ddf['end']['isEqual'](_0x2dc532['start']))return!0x0;if(0x1==_0x278f2f['length']&&(_0x2dc532['start']['isEqual'](_0x793ddf['end'])||_0x2dc532['end']['isEqual'](_0x793ddf['start'])))return!0x0;}if(0x3==_0x25d500&&0x3==_0x223a69&&_0x2dc532['start']['isBefore'](_0x793ddf['start'])){const _0xfce3eb=_0x2dc532['end']['nodeAfter'],_0x2d6c3a=_0x793ddf['start']['nodeBefore'];return _0x333ba4['isBlockImage'](_0xfce3eb)&&_0xfce3eb===_0x2d6c3a;}return!0x1;}_0xe037f9['model']['document']['registerPostFixer'](()=>{let _0x1ec74e=!0x1;const _0x4dc88b=Array['from'](_0xe037f9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x472dee,data:_0x52d5ea}of _0x4dc88b){const {group:_0x3e729e,type:_0x2a0418,subType:_0x5cef58,id:_0x3b43df}=_0x5cc320(_0x472dee);if('suggestion'==_0x3e729e&&_0x8502ef['hasSuggestion'](_0x3b43df)){if('formatBlock'==_0x2a0418&&('imageStylePreApply'==_0x5cef58||'imageStylePostApply'==_0x5cef58)){const _0xee78c9=_0x8502ef['getSuggestion'](_0x3b43df);if(_0x52d5ea['newRange']){const _0x1620b2=_0xee78c9['getFirstRange']()['getContainedElement']();if(_0x333ba4['isBlockImage'](_0x1620b2))continue;_0x8502ef['discardSuggestion'](_0xee78c9),_0x1ec74e=!0x0;}}if('insertion'==_0x2a0418&&'imageCaption'==_0x5cef58&&!_0x52d5ea['newRange']){const _0x1cf807=_0x8502ef['getSuggestion'](_0x3b43df);_0x1cf807['next']&&_0x1cf807['next']['isInContent']&&(_0x8502ef['discardSuggestion'](_0x1cf807['next']),_0x1ec74e=!0x0);}}}return _0x1ec74e;}),this['_registerLegacyDescription'](_0x267494);}['_registerLegacyDescription'](_0x310a7b){const _0x2ce0dc=this['editor'],_0x11b49e=_0x2ce0dc['locale'];_0x2ce0dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a47a4=>{if('formatBlock'!=_0x1a47a4['type']&&'formatInline'!=_0x1a47a4['type'])return;const {data:_0x142b9e}=_0x1a47a4;if(!_0x142b9e||'imageStyle'!=_0x142b9e['commandName'])return;const _0x385e1e=_0x142b9e['commandParams'][0x0]['value'];return _0x3049a4('side'===_0x385e1e?Tt(_0x11b49e,'FORMAT_SIDE_IMAGE'):_0x310a7b[_0x385e1e]||_0x385e1e);function _0x3049a4(_0x8b4592){return{'type':'format','content':Tt(_0x11b49e,'*Format:*\x20%0',_0x8b4592)};}});}}class TrackChangesImportWord extends _0x5a485e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3ee621){super(_0x3ee621),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xeb24ae=this['editor'],_0x18aeb1=_0xeb24ae['commands']['get']('importWord'),_0x510f3d=_0xeb24ae['commands']['get']('trackChanges');_0x18aeb1&&(_0x18aeb1['on']('execute',(_0x1934cd,[,_0x58023b])=>{this['_trackChangesValueDuringImport']=_0x510f3d['value'],_0x58023b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x18aeb1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x18aeb1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x510f3d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xeb24ae['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1d9f8c,_0x84a103){const {suggestions:_0x1d1b27}=_0x84a103,_0x3deb9d=this['editor']['commands']['get']('trackChanges'),_0x3ea429=_0x3deb9d['value'];this['_trackChangesValueDuringImport']!==_0x3ea429&&(_0x3deb9d['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d1b27&&_0x1d1b27['forEach'](({id:_0x8d9a1c,type:_0x70a7c5,author:_0x4b154c,created_at:_0x382d95})=>{const _0x4330e8={'id':_0x8d9a1c,'type':_0x70a7c5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4b154c,'createdAt':_0x382d95?new Date(_0x382d95):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4330e8);});}}class TrackChangesIndent extends _0x5a485e{['afterInit'](){const _0x17dca7=this['editor'],_0x278492=_0x17dca7['plugins']['get']('TrackChangesEditing');if(_0x17dca7['plugins']['has']('IndentEditing')&&(_0x278492['enableCommand']('indent'),_0x278492['enableCommand']('outdent')),_0x17dca7['plugins']['has']('IndentBlock')){for(const _0x76a430 of['indentBlock','outdentBlock'])_0x278492['enableDefaultAttributesIntegration'](_0x76a430);if(_0x17dca7['plugins']['has']('ListEditing')){for(const _0x55cd22 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x278492['enableDefaultAttributesIntegration'](_0x55cd22);}}const _0x2df02b=_0x17dca7['locale'];_0x278492['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x2df02b,'FORMAT_INDENT')),_0x278492['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x2df02b,'FORMAT_INDENT')),_0x278492['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x2df02b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x455807=this['editor'],_0x5648c6=_0x455807['locale'],_0x164825=_0x455807['plugins']['get']('TrackChangesEditing');_0x164825['descriptionFactory']['registerDescriptionCallback'](_0x113eb7=>{if('formatBlock'!=_0x113eb7['type'])return;const {data:_0x2712d3}=_0x113eb7;if(!_0x2712d3)return;if('indentBlock'!=_0x2712d3['commandName']&&'outdentBlock'!=_0x2712d3['commandName'])return;const _0x232f6d=_0x113eb7['getItems']()[0x0],_0x3c63cf=_0x164825['descriptionFactory']['getItemLabel'](_0x232f6d);return'indentBlock'==_0x2712d3['commandName']?{'type':'format','content':Tt(_0x5648c6,'*Indent:*\x20%0',_0x3c63cf)}:'outdentBlock'==_0x2712d3['commandName']?{'type':'format','content':Tt(_0x5648c6,'*Outdent:*\x20%0',_0x3c63cf)}:void 0x0;});}}class TrackChangesInputCommand extends _0x5a485e{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x5a485e{['afterInit'](){const _0x87ace4=this['editor'];if(!_0x87ace4['plugins']['has']('LinkEditing'))return;const _0x5287a0=_0x87ace4['plugins']['get']('TrackChangesEditing'),_0x5554eb=_0x87ace4['commands']['get']('link');_0x5287a0['enableDefaultAttributesIntegration']('link'),_0x5287a0['enableDefaultAttributesIntegration']('unlink');for(const _0x3dc0e6 of _0x5554eb['manualDecorators'])_0x5287a0['descriptionFactory']['registerAttributeLabel'](_0x3dc0e6['id'],'link\x20('+_0x3dc0e6['label']['toLowerCase']()+')');_0x5287a0['descriptionFactory']['registerDescriptionCallback'](_0xc8c687=>{if('attribute'!=_0xc8c687['type'])return;const {data:_0x4f7fa8}=_0xc8c687;if(!_0x4f7fa8||'linkHref'!=_0x4f7fa8['key'])return;const _0x32fcb9=_0x4f7fa8['newValue'],_0x934376=_0x87ace4['locale'];return{'type':'format','content':null==_0x32fcb9?Tt(_0x934376,'*Remove\x20link*'):Tt(_0x934376,'*Set\x20link:*\x20%0','\x22'+_0x32fcb9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x175495=this['editor'],_0x124c56=_0x175495['locale'];_0x175495['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x120460=>{if('formatInline'!=_0x120460['type'])return;const {data:_0x4d2f49}=_0x120460;if(_0x4d2f49){if('link'==_0x4d2f49['commandName']){const _0x1778ba=_0x4d2f49['commandParams'][0x0];return{'type':'format','content':Tt(_0x124c56,'*Set\x20link:*\x20%0','\x22'+_0x1778ba+'\x22')};}return'unlink'==_0x4d2f49['commandName']?{'type':'format','content':Tt(_0x124c56,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x5a485e{['afterInit'](){const _0x2537e9=this['editor'],_0xead1d6=_0x2537e9['locale'];if(!_0x2537e9['plugins']['has']('LegacyListEditing'))return;const _0x461f01=_0x2537e9['plugins']['get']('TrackChangesEditing'),_0x991556=_0x2537e9['plugins']['has']('LegacyTodoListEditing');function _0x3d0793(_0x15cdac){return()=>{const _0x16114f=_0x2537e9['model']['document']['selection'],_0x3550af=_0x2537e9['commands']['get'](_0x15cdac);if(_0x3550af['value'])return void _0x2537e9['execute']('paragraph',{});const _0x367db9=_0x15cdac['slice'](0x0,-0x4),_0x1512b0=function(_0x42cf54,_0x5668f5,_0x76524b){let _0x36ca25=Array['from'](_0x42cf54)['filter'](_0x174d06=>function(_0x4a9d55,_0x3d600a){return _0x3d600a['checkChild'](_0x4a9d55['parent'],'listItem')&&!_0x3d600a['isObject'](_0x4a9d55);}(_0x174d06,_0x76524b));_0x36ca25=_0x36ca25['filter'](_0x70470b=>!_0x70470b['is']('element','listItem')||_0x70470b['getAttribute']('listType')!=_0x5668f5);const _0x3f0571=new Set();for(const _0x1d91f2 of _0x36ca25)_0x1d91f2['is']('element','listItem')?_0x3f0571['add'](St(_0x1d91f2)):_0x3f0571['add'](_0x1d91f2);return Array['from'](_0x3f0571);}(_0x16114f['getSelectedBlocks'](),_0x367db9,_0x2537e9['model']['schema']);_0x2537e9['model']['change'](()=>{for(const _0x41f7d8 of _0x1512b0)_0x461f01['markBlockFormat'](_0x41f7d8,{'commandName':_0x15cdac,'commandParams':[{'forceValue':!_0x3550af['value']}],'formatGroupId':'blockName'},yt(_0x41f7d8));});};}function _0xa40f1e(_0x5c4139){return()=>{const _0x5b09d8=function(_0x3955df){let _0x429c04=Array['from'](_0x3955df);const _0x263433=_0x429c04['findIndex'](_0x2b0507=>'listItem'!=_0x2b0507['name']);return _0x263433>-0x1&&(_0x429c04=_0x429c04['slice'](0x0,_0x263433)),_0x429c04;}(_0x2537e9['model']['document']['selection']['getSelectedBlocks']()),_0x10a85b=_0x2537e9['model']['createRange'](_0x2537e9['model']['createPositionAt'](_0x5b09d8[0x0],'before'),_0x2537e9['model']['createPositionAt'](_0x5b09d8[_0x5b09d8['length']-0x1],'end'));_0x2537e9['model']['change'](()=>{_0x461f01['markBlockFormat'](_0x10a85b,{'commandName':_0x5c4139,'commandParams':[],'formatGroupId':'listIndent'},function(_0x341df6){const _0x26a7b9=new Set();for(const _0x29d10f of _0x341df6){let _0x3a9c22=_0x29d10f['nextSibling'];for(;_0x3a9c22&&_0x3a9c22['getAttribute']('listIndent')>_0x29d10f['getAttribute']('listIndent');)_0x26a7b9['add'](_0x3a9c22),_0x3a9c22=_0x3a9c22['nextSibling'];}return Array['from'](_0x26a7b9);}(_0x5b09d8));});};}_0x461f01['enableCommand']('numberedList',_0x3d0793('numberedList')),_0x461f01['enableCommand']('bulletedList',_0x3d0793('bulletedList')),_0x991556&&_0x461f01['enableCommand']('todoList',_0x3d0793('todoList')),_0x461f01['enableCommand']('indentList',_0xa40f1e('indentList')),_0x461f01['enableCommand']('outdentList',_0xa40f1e('outdentList')),_0x991556&&_0x461f01['enableCommand']('checkTodoList',()=>{const _0x2955ed=_0x2537e9['commands']['get']('checkTodoList'),_0x138b67=Array['from'](_0x2955ed['_selectedElements']);_0x138b67['filter'](_0x11eec1=>_0x11eec1['getAttribute']('todoListChecked')!=_0x2955ed['value']),_0x2537e9['model']['change'](()=>{for(const _0x218351 of _0x138b67)_0x461f01['markBlockFormat'](_0x218351,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2955ed['value']}]});});}),_0x461f01['descriptionFactory']['registerElementLabel']('listItem',_0xafc6b=>Tt(_0xead1d6,'ELEMENT_LIST_ITEM',_0xafc6b)),_0x461f01['descriptionFactory']['registerDescriptionCallback'](_0x2413ac=>{if('formatBlock'!=_0x2413ac['type']&&'formatInline'!=_0x2413ac['type'])return;const {data:_0x5f139d}=_0x2413ac;if(_0x5f139d){if('numberedList'==_0x5f139d['commandName']||'bulletedList'==_0x5f139d['commandName']||'todoList'==_0x5f139d['commandName'])switch(_0x5f139d['commandName']['replace']('List','')){case'bulleted':return _0x199ca3(Tt(_0xead1d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x199ca3(Tt(_0xead1d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x199ca3(Tt(_0xead1d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5f139d['commandName'])return{'type':'format','content':Tt(_0xead1d6,'*Indent:*\x20%0',Tt(_0xead1d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5f139d['commandName'])return{'type':'format','content':Tt(_0xead1d6,'*Outdent:*\x20%0',Tt(_0xead1d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5f139d['commandName'])return _0x5f139d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xead1d6,'*Check\x20item*')}:{'type':'format','content':Tt(_0xead1d6,'*Uncheck\x20item*')};}function _0x199ca3(_0x1dec10){return{'type':'format','content':Tt(_0xead1d6,'*Change\x20to:*\x20%0',_0x1dec10)};}});}}function St(_0x46afe4){const _0x2be50c=_0x46afe4['getAttribute']('listIndent');if(0x0==_0x2be50c)return _0x46afe4;let _0x32019d=_0x46afe4;for(;_0x46afe4['previousSibling']&&_0x46afe4['previousSibling']['is']('element','listItem');){const _0x43f679=_0x46afe4['previousSibling']['getAttribute']('listIndent');if(_0x43f679==_0x2be50c)_0x32019d=_0x46afe4['previousSibling'];else{if(_0x43f679<_0x2be50c)break;}_0x46afe4=_0x46afe4['previousSibling'];}return _0x32019d;}function yt(_0x5054a5){const _0x5aeaa8=[];if(_0x5054a5['is']('element','listItem')&&_0x5054a5['getAttribute']('listIndent')>0x0){let _0x47d19c=_0x5054a5['nextSibling'];for(;_0x47d19c&&'listItem'==_0x47d19c['name']&&_0x47d19c['getAttribute']('listIndent')==_0x5054a5['getAttribute']('listIndent');)_0x5aeaa8['push'](_0x47d19c),_0x47d19c=_0x47d19c['nextSibling'];}return _0x5aeaa8;}class TrackChangesLegacyListProperties extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x55e346=this['editor']['config']['get']('list.properties'),_0x18f3cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x55e346['styles']&&_0x18f3cd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x55e346['reversed']&&_0x18f3cd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x55e346['startIndex']&&_0x18f3cd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x18f3cd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x328fb6,_0x2f7a5e={}){const _0x431451=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbcdc6a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x431451['markMultiRangeBlockFormat'](_0xbcdc6a,{'commandName':'listStyle','commandParams':[{'type':_0x2f7a5e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d6b4d,_0x53f434={}){const _0x177783=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b5d72=this['_getSuggestionBlocks'](_0x2bb496=>_0x2bb496['is']('element','listItem')&&'numbered'===_0x2bb496['getAttribute']('listType'));if(_0x1b5d72['length']<0x1)return;const _0x93ffe=_0x1b5d72['map'](_0xaf3e8e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xaf3e8e,'before'),this['editor']['model']['createPositionAt'](_0xaf3e8e,0x0)));this['editor']['model']['change'](()=>{_0x177783['markMultiRangeBlockFormat'](_0x93ffe,{'commandName':'listReversed','commandParams':[{'reversed':_0x53f434['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x368a05,_0x467ef6={}){const _0x24b808=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5657a6=this['_getSuggestionBlocks'](_0x55bb76=>_0x55bb76['is']('element','listItem')&&'numbered'===_0x55bb76['getAttribute']('listType'));if(_0x5657a6['length']<0x1)return;const _0x45916b=_0x5657a6['map'](_0x2271dd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2271dd,'before'),this['editor']['model']['createPositionAt'](_0x2271dd,0x0)));this['editor']['model']['change'](()=>{_0x24b808['markMultiRangeBlockFormat'](_0x45916b,{'commandName':'listStart','commandParams':[{'startIndex':_0x467ef6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1195be){if('formatBlock'!=_0x1195be['type']&&'formatInline'!=_0x1195be['type'])return;const _0x475a90=this['editor']['locale'],{data:_0x10fce0}=_0x1195be;if(!_0x10fce0)return;let _0x525081,_0x24c60a;switch(_0x10fce0['commandName']){case'listStyle':_0x525081='*Change\x20to:*\x20%0',_0x24c60a={'type':'format','content':Tt(_0x475a90,_0x525081,Tt(_0x475a90,this['_getTranslationKeyForListStyle'](_0x10fce0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x525081=_0x10fce0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24c60a={'type':'format','content':Tt(_0x475a90,_0x525081)};break;case'listStart':_0x525081='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24c60a={'type':'format','content':Tt(_0x475a90,_0x525081,_0x10fce0['commandParams'][0x0]['startIndex'])};}return _0x24c60a;}['_getSuggestionBlocksForListStyle'](){const _0x2ba96e=this['editor']['plugins']['get']('LegacyListUtils');let _0xc6695d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xc6695d[0x0]?.['is']('element','listItem')&&_0xc6695d['unshift'](..._0x2ba96e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xc6695d[_0xc6695d['length']-0x1]?.['is']('element','listItem')&&_0xc6695d['push'](..._0x2ba96e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xc6695d=[...new Set(_0xc6695d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xc6695d=_0xc6695d['filter'](_0x284ba2=>_0x284ba2['is']('element','listItem'))),_0xc6695d;}['_getSuggestionBlocks'](_0xd6a96){const _0x257b5c=this['editor']['plugins']['get']('LegacyListUtils');let _0x503aaf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xd6a96)['map'](_0x488480=>{const _0x49f457=this['editor']['model']['createPositionAt'](_0x488480,0x0);return[..._0x257b5c['getSiblingNodes'](_0x49f457,'backward'),..._0x257b5c['getSiblingNodes'](_0x49f457,'forward')];})['flat']();return _0x503aaf=[...new Set(_0x503aaf)],_0x503aaf;}['_getTranslationKeyForListStyle'](_0x39076c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39076c)||'default')['toUpperCase']()+'_LIST_'+_0x39076c['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x5a485e{['afterInit'](){const _0x425311=this['editor'];if(!_0x425311['plugins']['has']('MediaEmbedEditing'))return;const _0x1ade19=_0x425311['plugins']['get']('TrackChangesEditing'),_0x20021a=_0x425311['locale'];_0x1ade19['enableCommand']('mediaEmbed'),_0x1ade19['descriptionFactory']['registerElementLabel']('media',_0x12b644=>Tt(_0x20021a,'ELEMENT_MEDIA',_0x12b644));}}class TrackChangesMention extends _0x5a485e{['afterInit'](){const _0x55af4d=this['editor'];_0x55af4d['plugins']['has']('MentionEditing')&&_0x55af4d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x5a485e{['afterInit'](){const _0xcff689=this['editor'];if(!_0xcff689['plugins']['has']('MergeFieldsEditing'))return;const _0xb4828b=_0xcff689['plugins']['get']('TrackChangesEditing'),_0x516e37=_0xcff689['locale'];_0xb4828b['enableCommand']('insertMergeField'),_0xb4828b['enableCommand']('insertMergeFieldBlock'),_0xb4828b['enableCommand']('insertMergeFieldImage'),_0xb4828b['descriptionFactory']['registerElementLabel']('mergeField',_0x3fcd18=>Tt(_0x516e37,'ELEMENT_MERGE_FIELD',_0x3fcd18)),_0xb4828b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29f987=>Tt(_0x516e37,'ELEMENT_MERGE_FIELD',_0x29f987)),_0xb4828b['descriptionFactory']['registerDescriptionCallback'](_0x3c266a=>{if('insertion'!=_0x3c266a['type']&&'deletion'!=_0x3c266a['type'])return;const _0xe73536=_0x3c266a['getContainedElement']();if(null==_0xe73536)return;const _0xa35461=_0xcff689['plugins']['get']('MergeFieldsEditing');let _0x4fc27a;switch(_0xa35461['getMergeFieldType'](_0xe73536)){case null:return;case'image':{const _0x2654b3=_0xa35461['unwrapAffixes'](_0xe73536['getAttribute']('src'));_0x4fc27a=_0xa35461['getLabel'](_0x2654b3)||_0x2654b3;break;}default:{const _0x53a2e0=_0xe73536['getAttribute']('id');_0x4fc27a=_0xa35461['getLabel'](_0x53a2e0)||_0x53a2e0;break;}}return'insertion'==_0x3c266a['type']?{'type':'insertion','content':Tt(_0x516e37,'*Insert:*\x20%0','\x22'+_0x4fc27a+'\x22\x20'+Tt(_0x516e37,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x516e37,'*Remove:*\x20%0','\x22'+_0x4fc27a+'\x22\x20'+Tt(_0x516e37,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x5a485e{['afterInit'](){const _0x19b64d=this['editor'],_0x32214f=_0x19b64d['plugins']['get']('TrackChangesEditing');_0x19b64d['plugins']['has']('MultiLevelList')&&(_0x32214f['enableDefaultAttributesIntegration']('multiLevelList'),_0x32214f['descriptionFactory']['registerDescriptionCallback'](_0x4ecddc=>this['handleDescriptions'](_0x4ecddc)));}['handleDescriptions'](_0x1a1616){const _0x17b30b=this['editor']['locale'],{data:_0x32dfe3}=_0x1a1616,_0x367654={'type':'format','content':''};if(_0x32dfe3&&'listMarkerStyle'==_0x32dfe3['key']){if(!_0x32dfe3['oldValue'])return{'type':'format','content':Tt(_0x17b30b,'*Set\x20format:*\x20%0',Tt(_0x17b30b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32dfe3['newValue']+')'};if(!_0x32dfe3['newValue']){let _0x1db1c8=_0x1a1616['head'];for(;_0x1db1c8;){if(_0x1db1c8['data']&&'listType'==_0x1db1c8['data']['key']&&_0x1db1c8['data']['newValue'])return _0x367654;_0x1db1c8=_0x1db1c8['next'];}return{'type':'format','content':Tt(_0x17b30b,'*Remove\x20format:*\x20%0',Tt(_0x17b30b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32dfe3['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x5a485e{['afterInit'](){const _0x5d0ef7=this['editor'];if(!_0x5d0ef7['plugins']['has']('PageBreakEditing'))return;_0x5d0ef7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x34f321=_0x5d0ef7['plugins']['get']('TrackChangesEditing'),_0x2a339a=_0x5d0ef7['locale'];_0x34f321['descriptionFactory']['registerElementLabel']('pageBreak',_0x4df806=>Tt(_0x2a339a,'ELEMENT_PAGE_BREAK',_0x4df806));}}class TrackChangesParagraph extends _0x5a485e{['afterInit'](){const _0x4367c9=this['editor'];if(!_0x4367c9['plugins']['has']('Paragraph'))return;const _0x36f2d6=_0x4367c9['locale'],_0x4f2afb=_0x4367c9['plugins']['get']('TrackChangesEditing');_0x4f2afb['descriptionFactory']['registerElementLabel']('paragraph',_0x54ef10=>Tt(_0x36f2d6,'ELEMENT_PARAGRAPH',_0x54ef10)),_0x4f2afb['enableDefaultAttributesIntegration']('paragraph'),_0x4f2afb['enableCommand']('insertParagraph');const _0x564e06=_0x4f2afb['descriptionFactory'];_0x564e06['registerDescriptionCallback'](_0x5aeaba=>{if('insertion'!==_0x5aeaba['type'])return;const {start:_0x28339a,end:_0x16eed5}=_0x5aeaba['getFirstRange']();if(!_0x28339a['isTouching'](_0x16eed5)||!_0x28339a['nodeAfter'])return;const _0x33d59d=_0x4367c9['model']['schema'],_0x2f4589=_0x28339a['nodeAfter'];return _0x33d59d['isBlock'](_0x2f4589)&&!_0x33d59d['isLimit'](_0x2f4589)&&_0x33d59d['checkChild'](_0x2f4589,'$text')?{'type':'insertion','content':Tt(_0x36f2d6,'*Insert:*\x20%0',_0x564e06['getItemLabel'](_0x2f4589,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2356a0=this['editor'],_0x222e72=_0x2356a0['locale'];_0x2356a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x243012=>{if('formatBlock'!=_0x243012['type'])return;const {data:_0x242d6}=_0x243012;return _0x242d6&&'paragraph'==_0x242d6['commandName']?{'type':'format','content':Tt(_0x222e72,'*Change\x20to:*\x20%0',Tt(_0x222e72,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x5a485e{['afterInit'](){const _0x3947f6=this['editor'];_0x3947f6['commands']['get']('replaceSource')&&_0x3947f6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x5a485e{['afterInit'](){const _0x51286a=this['editor'];if(!_0x51286a['plugins']['has']('RemoveFormatEditing'))return;_0x51286a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c8a51=this['editor'];_0x2c8a51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3670ea=>{if('formatBlock'!=_0x3670ea['type']&&'formatInline'!=_0x3670ea['type'])return;const {data:_0x4672f4}=_0x3670ea;return _0x4672f4&&'removeFormat'==_0x4672f4['commandName']?{'type':'format','content':Tt(_0x2c8a51['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x5a485e{['afterInit'](){const _0x3bf9c1=this['editor'];if(!_0x3bf9c1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x30c5d3=_0x3bf9c1['plugins']['get']('TrackChangesEditing');_0x30c5d3['enableCommand']('goToPreviousRestrictedEditingException'),_0x30c5d3['enableCommand']('goToNextRestrictedEditingException');const _0x4504c0=_0x3bf9c1['plugins']['get']('RestrictedEditingModeEditing');_0x4504c0['enableCommand']('trackChanges'),_0x4504c0['enableCommand']('acceptSuggestion'),_0x4504c0['enableCommand']('discardSuggestion'),_0x4504c0['enableCommand']('acceptAllSuggestions'),_0x4504c0['enableCommand']('discardAllSuggestions'),_0x4504c0['enableCommand']('acceptSelectedSuggestions'),_0x4504c0['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x5a485e{['afterInit'](){const _0x5eed15=this['editor'];if(!_0x5eed15['plugins']['has']('ShiftEnter'))return;const _0x454f80=_0x5eed15['plugins']['get']('TrackChangesEditing');_0x454f80['enableCommand']('shiftEnter'),_0x454f80['descriptionFactory']['registerElementLabel']('softBreak',_0x237f91=>Tt(_0x5eed15['locale'],'ELEMENT_LINE_BREAK',_0x237f91));}}function Rt(_0x186e97,_0x41a4e3,_0x44e044){const _0x51247f=[];for(const _0xefb7c6 of _0x41a4e3['getItems']())_0xefb7c6['hasAttribute'](_0x186e97)&&_0x51247f['push'](_0x44e044['createRangeOn'](_0xefb7c6));return _0x51247f;}class TrackChangesStandardEditingMode extends _0x5a485e{['afterInit'](){const _0x4fd592=this['editor'],_0x2abbcb=_0x4fd592['plugins']['get']('TrackChangesEditing');_0x4fd592['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2abbcb['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x540a39=this['editor'],_0x34cca9=_0x540a39['model'],_0x4e7813=_0x540a39['locale'],_0x26166e=_0x540a39['plugins']['get']('TrackChangesEditing'),_0x54ecbd='restrictedEditingException',_0x3787e2=_0x540a39['commands']['get'](_0x54ecbd);_0x26166e['enableCommand'](_0x54ecbd,(_0x242cbd,_0x112c04={})=>{const _0x3befcc=_0x34cca9['document']['selection'];if(_0x3befcc['isCollapsed'])return void _0x242cbd(_0x112c04);const _0xb9750f=void 0x0!==_0x112c04['forceValue']?_0x112c04['forceValue']:!_0x3787e2['value'];_0x34cca9['change'](()=>{const _0x2015d2=Array['from'](_0x3befcc['getRanges']());for(const _0x5d9ef0 of _0x2015d2){const _0x516814=_0xb9750f?[_0x5d9ef0]:Rt(_0x54ecbd,_0x5d9ef0,_0x34cca9);for(const _0xfeec8 of _0x516814)_0x26166e['markInlineFormat'](_0xfeec8,{'commandName':_0x54ecbd,'commandParams':[{'forceValue':_0xb9750f}]});}});}),_0x26166e['descriptionFactory']['registerDescriptionCallback'](_0x762855=>{if('formatBlock'!=_0x762855['type']&&'formatInline'!=_0x762855['type'])return;const {data:_0x2f445d}=_0x762855;return _0x2f445d&&_0x2f445d['commandName']==_0x54ecbd?_0x2f445d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4e7813,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x4e7813,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1c27df=this['editor'],_0x1aa87f=_0x1c27df['locale'],_0x5d3da4=_0x1c27df['plugins']['get']('TrackChangesEditing'),_0x46c442='restrictedEditingExceptionBlock',_0x54dec7=this['editor']['commands']['get'](_0x46c442);_0x5d3da4['enableCommand'](_0x46c442,(_0x2aae62,_0x4236ef={})=>{const _0x21ba12=this['editor']['model']['document']['selection'],_0x37f9cb=_0x4236ef&&void 0x0!==_0x4236ef['forceValue']?_0x4236ef['forceValue']:!_0x54dec7['value'];let _0x327236=[];if(_0x37f9cb){const _0x26d8ed=Array['from'](_0x21ba12['getSelectedBlocks']())['filter'](_0x396688=>function(_0x4407b3){return!!_0x4407b3['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x396688)||function(_0x3da4ae,_0x45e71f){const _0x167878=_0x45e71f['createContext'](_0x3da4ae['parent']);if(!_0x45e71f['checkChild'](_0x167878,'restrictedEditingException'))return!0x1;if(!_0x45e71f['checkChild'](_0x167878['push']('restrictedEditingException'),_0x3da4ae))return!0x1;return!0x0;}(_0x396688,this['editor']['model']['schema']));_0x327236=ft(_0x26d8ed,_0x1c27df['model']);}else{const _0x148e2d=Array['from'](_0x21ba12['getSelectedBlocks']())['map'](_0x5c4e6c=>function(_0x22eec4){let _0x33cf2f=_0x22eec4;for(;_0x33cf2f['parent'];){if('restrictedEditingException'==_0x33cf2f['parent']['name'])return _0x33cf2f;_0x33cf2f=_0x33cf2f['parent'];}return null;}(_0x5c4e6c))['filter'](_0x5257e1=>!!_0x5257e1);_0x327236=ft(_0x148e2d,_0x1c27df['model']);}_0x1c27df['model']['change'](()=>{for(const _0x4b8f95 of _0x327236)_0x5d3da4['markBlockFormat'](_0x4b8f95,{'commandName':_0x46c442,'commandParams':[{'forceValue':_0x37f9cb}]});});}),_0x5d3da4['descriptionFactory']['registerDescriptionCallback'](_0x533e5a=>{const {data:_0x5d2c5a}=_0x533e5a;if(_0x5d2c5a&&_0x5d2c5a['commandName']==_0x46c442)return _0x5d2c5a['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1aa87f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x1aa87f,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x5a485e{['afterInit'](){const _0x4bab7b=this['editor'];if(!_0x4bab7b['plugins']['has']('Style')||!_0x4bab7b['plugins']['has']('DataSchema'))return;const _0x333c2d=_0x4bab7b['plugins']['get']('TrackChangesEditing'),_0xeb0f71=_0x4bab7b['locale'],_0x4ccfb5=_0x4bab7b['config']['get']('style')||{},_0x47ec85=_0x4bab7b['plugins']['get']('GeneralHtmlSupport'),_0x1eb0c2=_0x4bab7b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4bab7b['plugins']['get']('DataSchema'),_0x4ccfb5['definitions']);_0x333c2d['enableDefaultAttributesIntegration']('style');const _0x3e5bbd=new Set();for(const _0x3bffe8 of _0x1eb0c2['block']){const _0x5c0d9c=_0x47ec85['getGhsAttributeNameForElement'](_0x3bffe8['element']);_0x3e5bbd['add'](_0x5c0d9c);}const _0x48eb79=new Set();for(const _0x26dca4 of _0x1eb0c2['inline']){const _0x5429d9=_0x47ec85['getGhsAttributeNameForElement'](_0x26dca4['element']);_0x48eb79['add'](_0x5429d9);for(const _0x2573a7 of _0x26dca4['ghsAttributes'])_0x48eb79['add'](_0x2573a7);}for(const _0x2e9a5e of _0x3e5bbd)_0x333c2d['descriptionFactory']['registerAttributeLabel'](_0x2e9a5e,Tt(_0xeb0f71,'FORMAT_STYLE'));for(const _0x210b2d of _0x48eb79)_0x333c2d['descriptionFactory']['registerAttributeLabel'](_0x210b2d,Tt(_0xeb0f71,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5beb48=this['editor'],_0xea9eb7=_0x5beb48['locale'];_0x5beb48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x408535=>{if('formatBlock'!=_0x408535['type']&&'formatInline'!=_0x408535['type'])return;const {data:_0x1c3597}=_0x408535;return _0x1c3597&&'style'===_0x1c3597['commandName']?_0x1c3597['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xea9eb7,'*Set\x20format:*\x20%0',_0x1c3597['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0xea9eb7,'*Remove\x20format:*\x20%0',_0x1c3597['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x5a485e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x40c030){super(_0x40c030),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4cafb1=this['editor'],_0x1cbde9=_0x4cafb1['model']['document']['selection'];if(!_0x4cafb1['plugins']['has']('TableEditing'))return;const _0x2a726f=_0x4cafb1['locale'],_0x5a2346=_0x4cafb1['plugins']['get']('TrackChangesEditing'),_0x4e78e0=_0x4cafb1['plugins']['get']('TableUtils');_0x5a2346['descriptionFactory']['registerElementLabel']('table',_0xcd561e=>Tt(_0x2a726f,'ELEMENT_TABLE',_0xcd561e)),this['_setupColumnsRowsFixing'](),_0x5a2346['enableCommand']('insertTable'),_0x5a2346['enableCommand']('selectTableRow'),_0x5a2346['enableCommand']('selectTableColumn');for(const _0x5426d4 of['insertTableRowAbove','insertTableRowBelow']){const _0x4e2997=_0x4cafb1['commands']['get'](_0x5426d4);_0x5a2346['enableCommand'](_0x5426d4,_0x2b5e48=>{_0x4cafb1['model']['change'](_0x56f836=>{_0x2b5e48();const _0x2901b9='above'===_0x4e2997['order'],_0x2cdaee=_0x4e78e0['getSelectionAffectedTableCells'](_0x1cbde9),_0x10ff4c=_0x4e78e0['getRowIndexes'](_0x2cdaee),_0x258e86=_0x2901b9?_0x10ff4c['first']-0x1:_0x10ff4c['last']+0x1,_0x37f824=_0x2cdaee[0x0]['findAncestor']('table'),_0xb03d1a=_0x4e78e0['createTableWalker'](_0x37f824,{'startRow':_0x258e86,'endRow':_0x258e86}),_0x5e81d4=Array['from'](_0xb03d1a)['map'](_0x37a0d3=>_0x56f836['createRangeOn'](_0x37a0d3['cell']));_0x5a2346['markMultiRangeInsertion'](_0x5e81d4,'tableRow');});});}for(const _0x58d17f of['insertTableColumnLeft','insertTableColumnRight']){const _0x470fa6=_0x4cafb1['commands']['get'](_0x58d17f);_0x5a2346['enableCommand'](_0x58d17f,_0x1a996b=>{_0x4cafb1['model']['change'](_0x22b43b=>{_0x1a996b();const _0x3cde3d='left'===_0x470fa6['order'],_0x4313ce=_0x4e78e0['getSelectionAffectedTableCells'](_0x1cbde9),_0x25e934=_0x4e78e0['getColumnIndexes'](_0x4313ce),_0x27d334=_0x3cde3d?_0x25e934['first']-0x1:_0x25e934['last']+0x1,_0x446d2a=_0x4313ce[0x0]['findAncestor']('table'),_0x4da671=_0x4e78e0['createTableWalker'](_0x446d2a,{'startRow':0x0,'column':_0x27d334,'includeAllSlots':!0x1}),_0x13c796=Array['from'](_0x4da671)['map'](_0x39fd46=>_0x22b43b['createRangeOn'](_0x39fd46['cell']));_0x5a2346['markMultiRangeInsertion'](_0x13c796,'tableColumn');});});}for(const _0x5751ea of['removeTableRow','removeTableColumn']){const _0x3fd28e=_0x5751ea['substr'](0xb),_0x58b35c=_0x3fd28e['toLowerCase'](),_0x45fca6=_0x58b35c['substr'](0x0,0x3)+'span',_0x527d5a='table'+_0x3fd28e,_0xb43e38='min'+_0x3fd28e,_0x4e5cf1='max'+_0x3fd28e;_0x5a2346['enableCommand'](_0x5751ea,()=>{_0x4cafb1['model']['change'](_0x150352=>{const _0x2cb618=_0x4e78e0['getSelectionAffectedTableCells'](_0x1cbde9),_0x1bee85=_0x2cb618[0x0]['findAncestor']('table');let _0x2f186d;if('removeTableRow'==_0x5751ea){const _0x205e15=_0x4e78e0['getRowIndexes'](_0x2cb618);_0x2f186d={'startRow':_0x205e15['first'],'endRow':_0x205e15['last'],'includeAllSlots':!0x0};}else{const _0x4dfa88=_0x4e78e0['getColumnIndexes'](_0x2cb618);_0x2f186d={'startColumn':_0x4dfa88['first'],'endColumn':_0x4dfa88['last'],'includeAllSlots':!0x0};}const _0x1bc616=_0x4e78e0['createTableWalker'](_0x1bee85,_0x2f186d),_0x3c2e75=Array['from'](_0x1bc616)['map'](({cell:_0xd57390})=>_0xd57390),_0x40e7e2=Nt(_0x3c2e75['filter'](_0x5225f2=>_0x5225f2['hasAttribute'](_0x45fca6))),_0xb1d7e=Nt(_0x3c2e75['filter'](_0x1ace5b=>!_0x1ace5b['hasAttribute'](_0x45fca6)))['map'](_0x377372=>_0x150352['createRangeOn'](_0x377372)),_0x26878f=_0x5a2346['markMultiRangeDeletion'](_0xb1d7e,_0x527d5a);if(_0x26878f&&('tableRow'==_0x26878f['subType']||'tableColumn'==_0x26878f['subType'])){const _0x2e7dd0=this['_getSuggestionCoords'](_0x26878f);for(const _0x1b5a6d of _0x40e7e2){const _0x1e4f4c=_0x150352['createRangeOn'](_0x1b5a6d),_0x4e6f77=_0x4e78e0['getCellLocation'](_0x1b5a6d),_0x36cac7=_0x1b5a6d['getAttribute'](_0x45fca6)-0x1,_0x394053=_0x2e7dd0[_0xb43e38],_0x2f0415=_0x2e7dd0[_0x4e5cf1];_0x394053<=_0x4e6f77[_0x58b35c]&&_0x4e6f77[_0x58b35c]+_0x36cac7<=_0x2f0415&&_0x26878f['addRange'](_0x1e4f4c);}}});});}function _0xfd074a(_0x45b7ee){const _0x199219=Array['from'](_0x1cbde9['getRanges']())['map'](_0x374177=>_0x53b34c['fromRange'](_0x374177));_0x4cafb1['model']['change'](_0x132dc9=>{const _0x2f6eef=_0x132dc9['batch'];_0x45b7ee=_0x45b7ee['filter'](_0x391635=>'$graveyard'!=_0x391635['root']['rootName']),_0x132dc9['setSelection'](_0x45b7ee),_0x4cafb1['commands']['get']('removeTableRow')['refresh'](),_0x4cafb1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4cafb1['model']['enqueueChange'](()=>{_0x4cafb1['model']['enqueueChange'](_0x2f6eef,_0x374b05=>{const _0x36a4f6=_0x199219['filter'](_0x1b039b=>'$graveyard'!=_0x1b039b['root']['rootName']);_0x36a4f6['length']>0x0&&_0x374b05['setSelection'](_0x36a4f6);for(const _0x3c3347 of _0x199219)_0x3c3347['detach']();});});});}function _0x100d48(_0x1ac087){_0x4cafb1['model']['change'](_0x5e59a9=>{const _0x440ed5=Array['from'](_0x1cbde9['getRanges']())['map'](_0x1eddeb=>_0x53b34c['fromRange'](_0x1eddeb)),_0x1700cd=[];for(const _0x55a849 of _0x1ac087)for(const _0x183671 of _0x55a849['getItems']({'shallow':!0x0}))_0x1700cd['push'](_0x183671);for(const _0x346b0f of _0x1700cd)'$graveyard'!=_0x346b0f['root']['rootName']&&(_0x5e59a9['setSelection'](_0x5e59a9['createPositionAt'](_0x346b0f,0x0)),_0x4cafb1['commands']['get']('removeTableColumn')['refresh'](),_0x4cafb1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4c369b=_0x440ed5['filter'](_0x47df47=>'$graveyard'!=_0x47df47['root']['rootName']);_0x4c369b['length']>0x0&&_0x5e59a9['setSelection'](_0x4c369b);for(const _0x1bf66f of _0x440ed5)_0x1bf66f['detach']();});}function _0x2726b0(_0x32e1ff,_0x4c853c){return _0x4c853c['every'](_0x5efd17=>_0x32e1ff['some'](_0x388a1e=>_0x388a1e['end']['isEqual'](_0x5efd17['start'])||_0x5efd17['end']['isEqual'](_0x388a1e['start'])));}function _0x39e646(_0x3d6b43,_0xa81f8c){return!_0x3d6b43['some'](_0x2f3ff1=>_0xa81f8c['some'](_0x13df4e=>_0x2f3ff1['isIntersecting'](_0x13df4e)))&&_0x3d6b43['some'](_0xe50e4d=>_0xa81f8c['some'](_0x2923f0=>_0xe50e4d['end']['isTouching'](_0x2923f0['start'])));}_0x5a2346['descriptionFactory']['registerDescriptionCallback'](_0x354cbf=>{if('insertion'!=_0x354cbf['type']&&'deletion'!=_0x354cbf['type'])return;const _0x3627d6=_0x354cbf['getContainedElement']();if(null!=_0x3627d6&&_0x3627d6['is']('element','table')){if('insertion'==_0x354cbf['type']){const _0x1fc8d4=_0x354cbf['getItems']()['filter'](_0x5187dd=>_0x5187dd['is']('$textProxy'))['map'](_0x29acf2=>_0x29acf2['data']);if(_0x1fc8d4['length'])return{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fc8d4['join']('\x20')+'\x22'))};}if('deletion'==_0x354cbf['type']){const _0x4f4e09=_0x354cbf['getItems']()['filter'](_0x54188d=>_0x54188d['is']('$textProxy'))['map'](_0x5abd73=>_0x5abd73['data']);if(_0x4f4e09['length'])return{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f4e09['join']('\x20')+'\x22'))};}}}),_0x5a2346['descriptionFactory']['registerDescriptionCallback'](_0x3157b5=>{if('tableRow'==_0x3157b5['subType']){const _0x3b47af=_0x3157b5['getItems']()['filter'](_0x1be399=>_0x1be399['is']('$textProxy'))['map'](_0xcbdece=>_0xcbdece['data']),_0x55447f=this['_getSuggestionCoords'](_0x3157b5),_0x154bda=_0x55447f['maxRow']-_0x55447f['minRow']+0x1;if('insertion'==_0x3157b5['type'])return _0x3b47af['length']?{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x154bda,'\x22'+_0x3b47af['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_ROW',_0x154bda))};if('deletion'==_0x3157b5['type'])return _0x3b47af['length']?{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x154bda,'\x22'+_0x3b47af['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_ROW',_0x154bda))};}if('tableColumn'==_0x3157b5['subType']){const _0x26152c=_0x3157b5['getItems']()['filter'](_0xb4c368=>_0xb4c368['is']('$textProxy'))['map'](_0x1133c6=>_0x1133c6['data']),_0x36467f=this['_getSuggestionCoords'](_0x3157b5),_0x2bbd19=_0x36467f['maxColumn']-_0x36467f['minColumn']+0x1;if('insertion'==_0x3157b5['type'])return _0x26152c['length']?{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2bbd19,'\x22'+_0x26152c['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x2a726f,'*Insert:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_COLUMN',_0x2bbd19))};if('deletion'==_0x3157b5['type'])return _0x26152c['length']?{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2bbd19,'\x22'+_0x26152c['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x2a726f,'*Remove:*\x20%0',Tt(_0x2a726f,'ELEMENT_TABLE_COLUMN',_0x2bbd19))};}}),_0x5a2346['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xfd074a),_0x5a2346['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xfd074a),_0x5a2346['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x100d48),_0x5a2346['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x100d48),_0x5a2346['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2726b0),_0x5a2346['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2726b0),_0x5a2346['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x39e646),_0x5a2346['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x39e646);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18859d=this['editor'],_0x24685a=_0x18859d['model']['document']['selection'];return(_0xfcebf5,_0x3c99cc)=>{_0x18859d['model']['change'](_0x41bc2c=>{const {commandName:_0x3634ef,commandParams:_0x1f2c11}=_0x3c99cc;let _0x382673=_0xfcebf5[0x0]['end']['nodeBefore'];_0x1f2c11&&_0x1f2c11[0x0]&&!0x1===_0x1f2c11[0x0]['forceValue']&&(_0x382673=_0xfcebf5[0x0]['start']['nodeAfter']);const _0x22a3a5=_0x41bc2c['createRangeIn'](_0x382673);if('$graveyard'==_0x22a3a5['root']['rootName'])return;const _0x525197=Array['from'](_0x24685a['getRanges']())['map'](_0x1cc978=>_0x53b34c['fromRange'](_0x1cc978));_0x41bc2c['setSelection'](_0x22a3a5),_0x18859d['commands']['get'](_0x3634ef)['refresh'](),_0x1f2c11['push']({'forceDefaultExecution':!0x0}),_0x18859d['execute'](_0x3634ef,..._0x1f2c11);const _0x46e9ab=_0x525197['filter'](_0x4bfc78=>'$graveyard'!=_0x4bfc78['root']['rootName']);_0x46e9ab['length']>0x0&&_0x41bc2c['setSelection'](_0x46e9ab);for(const _0x5c0f01 of _0x525197)_0x5c0f01['detach']();});};}['_getCoordsForCells'](_0x44ffcd){const _0x5ad18a=this['editor']['plugins']['get']('TableUtils');let _0x203f15=Number['MAX_SAFE_INTEGER'],_0x334173=Number['MIN_SAFE_INTEGER'],_0x5e5786=Number['MAX_SAFE_INTEGER'],_0x475af2=Number['MIN_SAFE_INTEGER'];for(const _0x29733e of _0x44ffcd){if('$graveyard'==_0x29733e['root']['rootName'])continue;const {row:_0x4da3c7,column:_0x5c0cba}=_0x5ad18a['getCellLocation'](_0x29733e),_0x629ff4=_0x29733e['hasAttribute']('rowspan')?_0x29733e['getAttribute']('rowspan')-0x1:0x0,_0x5a0900=_0x29733e['hasAttribute']('colspan')?_0x29733e['getAttribute']('colspan')-0x1:0x0;_0x203f15=_0x4da3c7<_0x203f15?_0x4da3c7:_0x203f15,_0x334173=_0x4da3c7+_0x629ff4>_0x334173?_0x4da3c7+_0x629ff4:_0x334173,_0x5e5786=_0x5c0cba<_0x5e5786?_0x5c0cba:_0x5e5786,_0x475af2=_0x5c0cba+_0x5a0900>_0x475af2?_0x5c0cba+_0x5a0900:_0x475af2;}return{'minRow':_0x203f15,'maxRow':_0x334173,'minColumn':_0x5e5786,'maxColumn':_0x475af2};}['_setupColumnsRowsFixing'](){const _0x535852=this['editor'],_0x49c052=_0x535852['plugins']['get']('TrackChangesEditing'),_0x573960=_0x535852['plugins']['get']('TableUtils');_0x535852['model']['document']['on']('change:data',()=>{const _0x2e97a4=Array['from'](_0x535852['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x228826,data:_0x5a8065}of _0x2e97a4){const {group:_0x3e3c72,id:_0x369843,subType:_0x325ae1}=_0x5cc320(_0x228826);if('suggestion'!=_0x3e3c72)continue;if(null!=_0x5a8065['oldRange'])continue;const _0x3c09e1=_0x49c052['getSuggestion'](_0x369843);this['_tablePostFixingSubtypes']['includes'](_0x325ae1)&&this['_tableSuggestions']['add'](_0x3c09e1);}},{'priority':'low'});const _0x58dd60=(_0x1492d8,_0x18b4f2)=>{let _0x405700=!0x1;const _0x3b7ec0=_0x18b4f2['createRangeOn'](_0x1492d8),_0x23ef5d=_0x1492d8['findAncestor']('table'),_0x5e59cc=_0x573960['getCellLocation'](_0x1492d8);for(const _0x3d5efc of this['_tableSuggestions']){const _0x25695=_0x3d5efc['subType'],_0x39e233=_0x25695['startsWith']('tablePaste'),_0x162d84=_0x25695['substr'](_0x39e233?0xa:0x5),_0x29fc5d=_0x162d84['toLowerCase'](),_0x3fd52c=_0x29fc5d['substr'](0x0,0x3)+'span',_0x131503='min'+_0x162d84,_0x36af13='max'+_0x162d84;if(!_0x3d5efc['isInContent'])continue;if(_0x23ef5d!=_0x3d5efc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3d5efc['isIntersectingWithRange'](_0x3b7ec0))continue;const _0x22671b=_0x1492d8['hasAttribute'](_0x3fd52c)?_0x1492d8['getAttribute'](_0x3fd52c)-0x1:0x0,_0x32f01c=this['_getSuggestionCoords'](_0x3d5efc),_0x2e5c2c=_0x32f01c[_0x131503],_0x2cfcbe=_0x32f01c[_0x36af13];_0x2e5c2c<=_0x5e59cc[_0x29fc5d]&&_0x5e59cc[_0x29fc5d]+_0x22671b<=_0x2cfcbe&&(_0x3d5efc['addRange'](_0x3b7ec0),_0x405700=!0x0);}return _0x405700;};_0x535852['model']['document']['registerPostFixer'](_0x31bfe0=>{let _0x3909f0=!0x1;for(const _0x4dc723 of _0x535852['model']['document']['differ']['getChanges']())if('insert'==_0x4dc723['type']){if('tableRow'==_0x4dc723['name']){for(const _0x42c1d7 of _0x4dc723['position']['nodeAfter']['getChildren']())_0x3909f0=_0x3909f0||_0x58dd60(_0x42c1d7,_0x31bfe0);}else'tableCell'==_0x4dc723['name']&&(_0x3909f0=_0x3909f0||_0x58dd60(_0x4dc723['position']['nodeAfter'],_0x31bfe0));}return _0x3909f0;});}['_getSuggestionCoords'](_0x1bdcb9){return this['_getCoordsForCells'](_0x1bdcb9['getRanges']()['map'](_0x5dabbc=>_0x5dabbc['start']['nodeAfter']));}}function Nt(_0x1719da){return Array['from'](new Set(_0x1719da)['values']());}class TrackChangesTableMergeSplit extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x404176=this['editor'],_0x24eca4=_0x404176['model']['document']['selection'],_0x22c4ce=_0x404176['locale'];if(!_0x404176['plugins']['has']('TableEditing'))return;const _0x3f3dc1=_0x404176['plugins']['get']('TrackChangesEditing'),_0x18a303=_0x404176['plugins']['get']('TableUtils'),_0x3232fb=_0x404176['plugins']['get'](TrackChangesTable);_0x3232fb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3f3dc1['enableCommand']('mergeTableCells',()=>{const _0x113ee5=_0x18a303['getSelectionAffectedTableCells'](_0x404176['model']['document']['selection']);_0x404176['model']['change'](()=>{_0x3f3dc1['markMultiRangeBlockFormat'](_0x113ee5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x404176['commands']['get']('mergeTableCells')['on']('execute',(_0x162637,_0x1811d9)=>{_0x404176['commands']['get']('trackChanges')['value']&&(_0x1811d9['length']>0x0&&_0x1811d9[_0x1811d9['length']-0x1]&&_0x1811d9[_0x1811d9['length']-0x1]['forceDefaultExecution']||_0x3f3dc1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x162637['stop']());},{'priority':'highest'});for(const _0x47cfef of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b1078=_0x404176['commands']['get'](_0x47cfef);_0x3f3dc1['enableCommand'](_0x47cfef,()=>{const _0x591305=_0x404176['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dd9f7=>_0x4dd9f7['is']('element','tableCell')),_0x72f1b0=_0x1b1078['value'];_0x404176['model']['change'](()=>{_0x3f3dc1['markMultiRangeBlockFormat']([_0x591305,_0x72f1b0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x220b72 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17f0da=_0x404176['commands']['get'](_0x220b72);_0x3f3dc1['enableCommand'](_0x220b72,()=>{const _0x5b0b53=_0x18a303['getSelectionAffectedTableCells'](_0x404176['model']['document']['selection'])[0x0],_0x26b57b=_0x5b0b53['findAncestor']('table'),{column:_0x57bbf6,row:_0xa08088}=_0x18a303['getCellLocation'](_0x5b0b53);let _0x19a96c=[];if('horizontally'==_0x17f0da['direction']){const _0x2e783b=_0x18a303['createTableWalker'](_0x26b57b,{'startRow':_0xa08088,'endRow':_0xa08088,'includeAllSlots':!0x0});_0x19a96c=Array['from'](_0x2e783b)['map'](_0x2c28da=>_0x2c28da['cell']);}else{const _0x5e8713=_0x18a303['createTableWalker'](_0x26b57b,{'column':_0x57bbf6,'includeAllSlots':!0x0});_0x19a96c=Array['from'](_0x5e8713)['map'](_0x2addbf=>_0x2addbf['cell']);}_0x404176['model']['change'](_0x5f257c=>{_0x3f3dc1['markBlockFormat'](_0x5f257c['createRangeOn'](_0x5b0b53),{'commandName':_0x220b72,'commandParams':[]},_0x19a96c,_0x220b72);});});}_0x3f3dc1['descriptionFactory']['registerDescriptionCallback'](_0x35eca7=>{if('formatBlock'!=_0x35eca7['type']&&'formatInline'!=_0x35eca7['type'])return;const {data:_0x2fb05e}=_0x35eca7;return _0x2fb05e&&'mergeTableCells'==_0x2fb05e['commandName']?{'type':'format','content':Tt(_0x22c4ce,'*Merge\x20cells*')}:void 0x0;}),_0x3f3dc1['descriptionFactory']['registerDescriptionCallback'](_0x340422=>{if('formatBlock'!=_0x340422['type']&&'formatInline'!=_0x340422['type'])return;const {data:_0x3524ee}=_0x340422;return _0x3524ee?'splitTableCellVertically'==_0x3524ee['commandName']?{'type':'format','content':Tt(_0x22c4ce,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3524ee['commandName']?{'type':'format','content':Tt(_0x22c4ce,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1774a4=_0x3232fb['_acceptFormatSuggestionCallbackFactory']();for(const _0x1ec99d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3f3dc1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ec99d,'accept',_0x1774a4);for(const _0x41039e of['splitTableCellVertically','splitTableCellHorizontally'])_0x3f3dc1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41039e,'accept',_0x1774a4);_0x3f3dc1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x43073d=>{_0x404176['model']['change'](_0x569e51=>{const _0x2c5f3f=Array['from'](_0x24eca4['getRanges']())['map'](_0x25d1fa=>_0x53b34c['fromRange'](_0x25d1fa));_0x569e51['setSelection'](_0x43073d),_0x404176['commands']['get']('mergeTableCells')['refresh'](),_0x404176['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x60373=_0x2c5f3f['filter'](_0x2ba776=>'$graveyard'!=_0x2ba776['root']['rootName']);_0x60373['length']>0x0&&_0x569e51['setSelection'](_0x60373);for(const _0x43e69b of _0x2c5f3f)_0x43e69b['detach']();});});for(const _0x4fb238 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37dfab=_0x404176['commands']['get'](_0x4fb238);_0x37dfab['on']('set:isEnabled',(_0x456804,_0x188fd5,_0x39a6ef)=>{if(_0x39a6ef){const _0x1026a2=_0x404176['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4582aa=>_0x4582aa['is']('element','tableCell'));this['_areMergableCells'](_0x37dfab['value'],_0x1026a2)||(_0x456804['return']=!0x1,_0x456804['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a5297=this['editor']['commands']['get']('mergeTableCells'),_0x53db14=this['editor']['plugins']['get']('TableUtils');if(!_0x4a5297['isEnabled'])return!0x1;const _0x5cd940=_0x53db14['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x339d65 of _0x5cd940)for(const _0x461692 of _0x5cd940)if(_0x339d65!=_0x461692&&!this['_areMergableCells'](_0x339d65,_0x461692))return!0x1;return!0x0;}['_areMergableCells'](_0x112851,_0x14e887){const _0x15c48e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x353fa2=this['editor']['model']['createRangeOn'](_0x112851),_0x47648a=this['editor']['model']['createRangeOn'](_0x14e887),_0x5edb70=new Set(),_0x57eb82=new Set();for(const _0x30bf99 of _0x15c48e['getSuggestions']())if(('insertion'==_0x30bf99['type']||'deletion'==_0x30bf99['type']||'mergeTableCells'==_0x30bf99['subType'])&&_0x30bf99['isInContent']){for(const _0x15f511 of _0x30bf99['getRanges']())_0x15f511['containsRange'](_0x353fa2,!0x0)&&_0x5edb70['add'](_0x30bf99['type']+':'+_0x30bf99['author']['id']),_0x15f511['containsRange'](_0x47648a,!0x0)&&_0x57eb82['add'](_0x30bf99['type']+':'+_0x30bf99['author']['id']);}if(_0x5edb70['size']!=_0x57eb82['size'])return!0x1;for(const _0x4f7acc of _0x5edb70)if(!_0x57eb82['has'](_0x4f7acc))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0xe5583=this['editor'];if(!_0xe5583['plugins']['has']('TableEditing'))return;const _0x5db780=_0xe5583['locale'],_0x19dab0=_0xe5583['plugins']['get']('TrackChangesEditing');_0x19dab0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x19dab0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x19dab0['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x5db780,'FORMAT_HEADER_ROW')),_0x19dab0['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x5db780,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3eda85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16eea4=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x3eda85['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x16eea4),_0x3eda85['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x16eea4),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x15c123=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42fd37=this['editor']['plugins']['get']('TableUtils');function _0x512a01({showActiveMarker:_0x152f3c=!0x0,setDataAttribute:_0x208dd2=!0x0}={}){return(_0x27c122,_0x494955,_0x4444a9)=>{const {type:_0x52fa9d,id:_0x172467}=_0x5cc320(_0x494955['markerName']);if(!_0x15c123['hasSuggestion'](_0x172467))return;const _0xb5dc95=_0x15c123['getSuggestion'](_0x172467),_0x7bc6f2=_0xb5dc95['data'];if('formatBlock'!=_0xb5dc95['type']||!_0x7bc6f2||'setTableColumnHeader'!=_0x7bc6f2['commandName'])return;if(_0x494955['item'])return void _0x27c122['stop']();if(!_0x4444a9['consumable']['consume'](_0x494955['markerRange'],_0x27c122['name']))return;const _0x1c1a5b=_0x494955['markerRange']['start']['nodeAfter'],_0x4a2ef1=_0x494955['markerRange']['end']['nodeBefore'],_0x2f6a87=_0x1c1a5b['parent']['parent'],{column:_0x192325}=_0x42fd37['getCellLocation'](_0x1c1a5b),{column:_0x47f583}=_0x42fd37['getCellLocation'](_0x4a2ef1);for(let _0x5b7410=_0x192325;_0x5b7410<=_0x47f583;_0x5b7410++){const _0x384fd2=_0x42fd37['createTableWalker'](_0x2f6a87,{'column':_0x5b7410,'includeAllSlots':!0x1});for(const _0x1cdc9f of _0x384fd2){const _0x52fe5a=_0x1cdc9f['cell'],_0x12e1fa=_0x4444a9['mapper']['toViewElement'](_0x52fe5a);_0x4444a9['writer']['addClass']('ck-suggestion-marker-'+_0x52fa9d,_0x12e1fa),_0x208dd2&&_0x4444a9['writer']['setAttribute']('data-suggestion',_0x172467,_0x12e1fa),_0x4444a9['mapper']['bindElementToMarker'](_0x12e1fa,_0x494955['markerName']),_0x152f3c&&(_0x15c123['activeMarkers']['includes'](_0x494955['markerName'])?_0x4444a9['writer']['addClass']('ck-suggestion-marker--active',_0x12e1fa):_0x4444a9['writer']['removeClass']('ck-suggestion-marker--active',_0x12e1fa));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x512a01(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x258364,_0x1046ee,_0x17522c)=>{_0x17522c['options']['showSuggestionHighlights']&&_0x512a01({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x258364,_0x1046ee,_0x17522c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2f096f,_0x47dca3,_0x460a0c)=>{const {type:_0x57268a,id:_0x15a4be}=_0x5cc320(_0x47dca3['markerName']);if(!_0x15c123['hasSuggestion'](_0x15a4be))return;const _0x225675=_0x15c123['getSuggestion'](_0x15a4be),_0x24d519=_0x225675['data'];if('formatBlock'!=_0x225675['type']||!_0x24d519||'setTableColumnHeader'!=_0x24d519['commandName'])return;const _0x13ace2=_0x460a0c['mapper']['markerNameToElements'](_0x47dca3['markerName']);if(_0x13ace2){for(const _0x976c69 of _0x13ace2)_0x460a0c['writer']['removeClass']('ck-suggestion-marker-'+_0x57268a,_0x976c69),_0x460a0c['writer']['removeClass']('ck-suggestion-marker--active',_0x976c69),_0x460a0c['writer']['removeAttribute']('data-suggestion',_0x976c69),_0x460a0c['mapper']['unbindElementFromMarkerName'](_0x976c69,_0x47dca3['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x24e517=this['editor'],_0x4c43f5=_0x24e517['locale'];function _0x59924f(_0x4c5c7b){return{'type':'format','content':Tt(_0x4c43f5,'*Format:*\x20%0',_0x4c5c7b)};}_0x24e517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x335204=>{if('formatBlock'!=_0x335204['type'])return;const {data:_0x716df0}=_0x335204;if(_0x716df0){if('setTableRowHeader'==_0x716df0['commandName']){const _0x21133a=_0x716df0['commandParams'][0x0]['forceValue'];return _0x59924f(Tt(_0x4c43f5,_0x21133a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x716df0['commandName']){const _0x1b179d=_0x716df0['commandParams'][0x0]['forceValue'];return _0x59924f(Tt(_0x4c43f5,_0x1b179d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x20e448=this['editor'];if(!_0x20e448['plugins']['has']('TableEditing')||!_0x20e448['config']['get']('table.enableFooters'))return;const _0x321f5d=_0x20e448['locale'],_0x2dfb62=_0x20e448['plugins']['get']('TrackChangesEditing');_0x2dfb62['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x2dfb62['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x321f5d,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x5a485e{['afterInit'](){const _0x4136fa=this['editor'],_0x30184a=_0x4136fa['locale'],_0x450c8a=_0x4136fa['plugins']['get']('TrackChangesEditing');function _0x3eb523(_0x485580){return{'type':'format','content':''+Tt(_0x30184a,'*Set\x20table\x20type:*\x20%0',_0x485580)};}_0x4136fa['plugins']['has']('TableLayout')&&(_0x450c8a['enableCommand']('insertTableLayout'),_0x450c8a['enableDefaultAttributesIntegration']('tableType'),_0x450c8a['descriptionFactory']['registerElementLabel'](_0x5df9c9=>_0x5df9c9['is']('element','table')&&'layout'===_0x5df9c9['getAttribute']('tableType'),_0x406281=>Tt(_0x30184a,'ELEMENT_LAYOUT_TABLE',_0x406281)),_0x450c8a['descriptionFactory']['registerDescriptionCallback'](_0x365e66=>{const {data:_0x57b10f}=_0x365e66;if(_0x57b10f&&'tableType'==_0x57b10f['key'])switch(_0x57b10f['newValue']){case'layout':return _0x3eb523(Tt(_0x30184a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3eb523(Tt(_0x30184a,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Mt['map'](_0x49b631=>[_0x49b631,null]));class TrackChangesTableClipboard extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x5d39c7=this['editor'];if(!_0x5d39c7['plugins']['has']('TableClipboard'))return;const _0x570bed=_0x5d39c7['plugins']['get']('TrackChangesEditing'),_0x427e0e=_0x5d39c7['plugins']['get']('TableUtils'),_0x4626e8=_0x5d39c7['plugins']['get'](TrackChangesTable),_0x26f70b=_0x5d39c7['plugins']['get']('TableClipboard'),_0x2b3b43=_0x5d39c7['plugins']['get']('TableSelection'),_0x3c6aed=_0x5d39c7['plugins']['get'](ut);_0x4626e8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5d39c7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5d39c7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x172c67=null,_0x2aa40d=!0x1;_0x3c6aed['on']('contentInsertion',(_0x4c96d4,_0x156a9f)=>{_0x2aa40d='paste'===_0x156a9f['method'];}),_0x5d39c7['model']['on']('insertContent',(_0x1eed00,_0x1b4ae3)=>{if(!_0x2aa40d&&null===_0x2b3b43['getSelectedTableCells']())return;const [_0x332f55,_0x3c123c]=_0x1b4ae3,_0xe0e578=_0x1b4ae3[_0x1b4ae3['length']-0x1];_0xe0e578&&_0xe0e578['forceDefaultExecution']||_0x570bed['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5bc84f,_0x3e6138,_0x4657c3,_0x3ad342,_0x418c0b){if(_0x3e6138&&!_0x3e6138['is']('documentSelection'))return!0x1;const _0x26dfb2=_0x418c0b['getTableIfOnlyTableInContent'](_0x5bc84f,_0x4657c3);if(!_0x26dfb2||!Bt(_0x26dfb2,void 0x0,_0x3ad342))return!0x1;const _0x2bd281=_0x3ad342['getSelectionAffectedTableCells'](_0x4657c3['document']['selection']);if(!_0x2bd281['length'])return!0x1;const _0x49fc10=_0x2bd281[0x0]['findAncestor']('table'),_0x51dc49=_0x3ad342['getRowIndexes'](_0x2bd281),_0x63696e=_0x3ad342['getColumnIndexes'](_0x2bd281),_0x53380b={'startRow':_0x51dc49['first'],'endRow':_0x51dc49['last'],'startColumn':_0x63696e['first'],'endColumn':_0x63696e['last']};return 0x1==_0x2bd281['length']&&(_0x53380b['endRow']+=_0x3ad342['getRows'](_0x26dfb2)-0x1,_0x53380b['endColumn']+=_0x3ad342['getColumns'](_0x26dfb2)-0x1),Bt(_0x49fc10,_0x53380b,_0x3ad342);}(_0x332f55,_0x3c123c,_0x5d39c7['model'],_0x427e0e,_0x26f70b)&&(_0x1eed00['stop'](),_0x172c67={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5d39c7['model']['change'](()=>{_0x5d39c7['model']['insertContent'](_0x1b4ae3[0x0],_0x1b4ae3[0x1],_0x1b4ae3[0x2],{'forceDefaultExecution':!0x0});const _0x29e372=_0x272311(),{rowInsertionRanges:_0x129fe3,columnInsertionRanges:_0x2c5cfc,insertionRanges:_0x4a441e,deletionRanges:_0x51f6d1,cells:_0x589f5f}=_0x172c67;_0x129fe3['length']&&_0x570bed['markMultiRangeInsertion'](_0x129fe3,'tablePasteRow',{'tablePasteChainId':_0x29e372}),_0x2c5cfc['length']&&_0x570bed['markMultiRangeInsertion'](_0x2c5cfc,'tablePasteColumn',{'tablePasteChainId':_0x29e372}),_0x4a441e['length']&&(_0x570bed['markMultiRangeInsertion'](_0x4a441e,'tablePaste',{'tablePasteChainId':_0x29e372,'skipNestingCheck':!0x0}),_0x4a441e['forEach'](_0x42054b=>_0x42054b['detach']?.())),_0x51f6d1['length']&&(_0x570bed['markMultiRangeDeletion'](_0x51f6d1,'tablePaste',{'tablePasteChainId':_0x29e372,'skipNestingCheck':!0x0}),_0x51f6d1['forEach'](_0x266790=>_0x266790['detach']?.()));const _0x243c54=_0x570bed['markMultiRangeBlockFormat'](_0x589f5f['map'](({element:_0x3a57bb})=>_0x3a57bb),{'formatGroupId':_0x272311()},[],'tablePasteCell',{'tablePasteChainId':_0x29e372});if(_0x243c54){const _0x244f47=_0x243c54['getMarkers'](),_0x2c04fa=[];for(const {element:_0x2ea613,attributes:_0x951684}of _0x589f5f){if(!_0x951684)continue;const _0x1cc5c6=_0x5d39c7['model']['createRangeOn'](_0x2ea613),_0x300784=_0x244f47['find'](_0x1905cf=>_0x1905cf['getRange']()['isEqual'](_0x1cc5c6));_0x300784&&_0x2c04fa['push']([_0x300784['name'],_0x951684]);}_0x2c04fa['length']&&_0x243c54['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c04fa));}_0x172c67=null;}));},{'priority':_0x3bd827['high']+0xa}),_0x3c6aed['on']('contentInsertion',()=>{_0x2aa40d=!0x1;},{'priority':'lowest'}),_0x5d39c7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44708c,_0x2123f3)=>{const [_0x23635d,_0x2fb244,,_0x3cc796]=_0x2123f3;if(!_0x172c67)return;_0x44708c['stop']();const _0x1e81a3=_0x23635d['cell'],_0x59ec20=_0x2fb244,_0x1b11f3=wt(_0x1e81a3),_0x36ce60=wt(_0x59ec20);_0x44708c['return']=_0x1e81a3;let _0x3fcadc=null,_0x98ff03=null;if(_0x36ce60||_0x1b11f3){if(_0x1b11f3&&!_0x36ce60){_0x3cc796['remove'](_0x1e81a3['getChild'](0x0));for(const _0x50df92 of Array['from'](_0x59ec20['getChildren']()))_0x3cc796['insert'](_0x50df92,_0x1e81a3,'end');const _0x599f47=_0x172c67['rowInsertionIndexes']['includes'](_0x23635d['row']),_0x5dfd60=_0x172c67['columnInsertionIndexes']['includes'](_0x23635d['column']);_0x599f47||_0x5dfd60||(_0x3fcadc=_0x53b34c['fromRange'](_0x3cc796['createRangeIn'](_0x1e81a3)));}else _0x36ce60&&!_0x1b11f3&&(_0x98ff03=_0x3cc796['createRangeIn'](_0x1e81a3));}else{const _0x590e00=_0x3cc796['createElement']('tableCellSuggestion'),_0x513cd4=_0x3cc796['createElement']('tableCellSuggestion');_0x3cc796['wrap'](_0x3cc796['createRangeIn'](_0x1e81a3),_0x513cd4),_0x3cc796['insert'](_0x590e00,_0x1e81a3,0x0);for(const _0x1035a7 of Array['from'](_0x59ec20['getChildren']()))_0x3cc796['insert'](_0x1035a7,_0x590e00,'end');_0x3fcadc=_0x53b34c['fromRange'](_0x3cc796['createRangeOn'](_0x590e00)),_0x98ff03=_0x53b34c['fromRange'](_0x3cc796['createRangeOn'](_0x513cd4));}const _0x4e21a0=Array['from'](_0x59ec20['getAttributes']())['filter'](([_0x53ac1a])=>Mt['includes'](_0x53ac1a));_0x172c67['cells']['push']({'element':_0x1e81a3,'attributes':_0x4e21a0['length']?Object['fromEntries'](_0x4e21a0):null}),_0x3fcadc&&_0x172c67['insertionRanges']['push'](_0x3fcadc),_0x98ff03&&_0x172c67['deletionRanges']['push'](_0x98ff03);},{'priority':'high'}),_0x427e0e['on']('insertColumns',(_0x24afa2,_0x4992fc)=>{const [_0x526940,_0x439e70={}]=_0x4992fc;if(!_0x172c67)return;const _0x5cdd3a=_0x439e70['at']||0x0,_0x460544=_0x439e70['columns']||0x1;_0x172c67['columnInsertionIndexes']=new Array(_0x460544)['fill'](_0x5cdd3a)['map']((_0x4deae3,_0x343dcf)=>_0x4deae3+_0x343dcf);for(const {cell:_0x248d4c}of _0x427e0e['createTableWalker'](_0x526940,{'startColumn':_0x5cdd3a,'endColumn':_0x5cdd3a+_0x460544-0x1}))_0x172c67['columnInsertionRanges']['push'](_0x5d39c7['model']['createRangeOn'](_0x248d4c));},{'priority':'low'}),_0x427e0e['on']('insertRows',(_0x4dd374,_0x34395c)=>{const [_0x3ea617,_0x41e521={}]=_0x34395c;if(!_0x172c67)return;const _0x2721a9=_0x41e521['at']||0x0,_0xf12c0d=_0x41e521['rows']||0x1;_0x172c67['rowInsertionIndexes']=new Array(_0xf12c0d)['fill'](_0x2721a9)['map']((_0x208a83,_0x17381d)=>_0x208a83+_0x17381d);for(const {cell:_0x4c0da8}of _0x427e0e['createTableWalker'](_0x3ea617,{'startRow':_0x2721a9,'endRow':_0x2721a9+_0xf12c0d-0x1}))_0x172c67['rowInsertionRanges']['push'](_0x5d39c7['model']['createRangeOn'](_0x4c0da8));},{'priority':'low'}),_0x570bed['descriptionFactory']['registerDescriptionCallback'](_0xbaeaf0=>{if(_0xbaeaf0['subType']&&_0xbaeaf0['subType']['startsWith']('tablePaste'))return _0xbaeaf0['previous']?{}:{'type':'insertion','content':Tt(_0x5d39c7['locale'],'*Replace\x20table\x20cells*')};});const _0x41f2aa=()=>!0x1;for(const _0x5be227 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x570bed['_suggestionFactory']['registerCustomCallback']('insertion',_0x5be227,'join',_0x41f2aa),_0x570bed['_suggestionFactory']['registerCustomCallback']('deletion',_0x5be227,'join',_0x41f2aa),_0x570bed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5be227,'join',_0x41f2aa);_0x570bed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x41f2aa),_0x570bed['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4f0f40,_0x28b456,_0x492ee5)=>{const _0x27643a=_0x4f0f40['map'](_0x3b626e=>_0x3b626e['getContainedElement']())['filter'](_0x5e627e=>_0x5e627e),_0x5f3771=new Map(_0x27643a['map'](_0x16bf55=>[_0x16bf55,null]));if(_0x172c67){for(const {element:_0x333821,attributes:_0x1595d8}of _0x172c67['cells'])_0x1595d8&&_0x5f3771['set'](_0x333821,_0x1595d8);}else{if(_0x492ee5&&_0x492ee5['markerAttributes'])for(const [_0x20ba09,_0x26e09d]of Object['entries'](_0x492ee5['markerAttributes'])){const _0x1901d8=_0x5d39c7['model']['markers']['get'](_0x20ba09),_0x1b3244=_0x1901d8?_0x1901d8['getRange']()['getContainedElement']():null;_0x1b3244&&_0x5f3771['set'](_0x1b3244,_0x26e09d);}}_0x5d39c7['model']['change'](_0x4aa8c0=>{for(const [_0x29001d,_0x171d21]of _0x5f3771)_0x4aa8c0['setAttributes']({...Ot,..._0x171d21},_0x29001d);});});const _0x4e1a68=(_0x4afcfa,_0x226959)=>{_0x570bed['_suggestionFactory']['registerCustomCallback'](_0x4afcfa,'tablePaste',_0x226959,(_0x1b7547,_0x7406e3,_0x5238bd)=>{_0x5d39c7['model']['change'](_0x43cf84=>{const _0x14ed46=[];for(const _0x341ae5 of _0x1b7547){const _0x42b093=_0x341ae5['start']['nodeAfter'];_0x42b093['is']('element','tableCellSuggestion')&&_0x14ed46['push'](_0x42b093);}_0x570bed['_suggestionFactory']['getSuggestionCallback'](_0x4afcfa,null,_0x226959)(_0x1b7547,_0x7406e3,_0x5238bd);for(const _0xbfe10a of _0x14ed46)'$graveyard'!=_0xbfe10a['root']['rootName']&&_0x43cf84['unwrap'](_0xbfe10a);});});};_0x4e1a68('insertion','accept'),_0x4e1a68('insertion','discard'),_0x4e1a68('deletion','accept'),_0x4e1a68('deletion','discard'),_0x570bed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1a3911=>{const _0x4e4a4d=_0x1a3911['map'](_0x512cac=>_0x512cac['getContainedElement']()),_0x3578ea=_0x4e4a4d[0x0]['findAncestor']('table'),{minRow:_0x34ef1a,maxRow:_0x1be45a}=_0x4626e8['_getCoordsForCells'](_0x4e4a4d);_0x427e0e['removeRows'](_0x3578ea,{'at':_0x34ef1a,'rows':_0x1be45a-_0x34ef1a+0x1});}),_0x570bed['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x175a32=>{const _0x55df7e=_0x175a32['map'](_0x1e8759=>_0x1e8759['getContainedElement']()),_0x4d5b9b=_0x55df7e[0x0]['findAncestor']('table'),{minColumn:_0x1317e6,maxColumn:_0x846c0}=_0x4626e8['_getCoordsForCells'](_0x55df7e);_0x427e0e['removeColumns'](_0x4d5b9b,{'at':_0x1317e6,'columns':_0x846c0-_0x1317e6+0x1});});const _0x398c53=(_0x28dae8,_0x443a43)=>{if(!_0x443a43['subType']||!_0x443a43['subType']['startsWith']('tablePaste'))return;const _0x36e6e6=_0x443a43['attributes']['tablePasteChainId'],_0x216f38=_0x570bed['getSuggestions']()['filter'](_0x4d211e=>_0x4d211e['isInContent']&&_0x4d211e['attributes']&&_0x4d211e['attributes']['tablePasteChainId']==_0x36e6e6);_0x216f38['length']&&_0x443a43['getAllAdjacentSuggestions']()['length']!=_0x216f38['length']&&_0x216f38['reduce']((_0x2c7665,_0x2ed8c4)=>(_0x2c7665['next']=_0x2ed8c4,_0x2ed8c4['previous']=_0x2c7665,_0x2ed8c4));};function _0x2b77ad(_0x3a43c2,_0x1602a6=!0x0){const {id:_0x278380,authorId:_0x71657e}=_0x5cc320(_0x3a43c2['markerName']),_0x48b5ec=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbf1859=_0x570bed['activeMarkers']['includes'](_0x3a43c2['markerName']);return _0xbf1859&&_0x48b5ec['push']('ck-suggestion-marker--active'),{'classes':_0x48b5ec,'attributes':{'data-suggestion':_0x278380,'data-author-id':_0x71657e},'priority':_0xbf1859&&_0x1602a6?0xbc2:0xbb8};}_0x570bed['on']('suggestionLoaded',_0x398c53,{'priority':'high'}),_0x570bed['on']('suggestionUnloaded',_0x398c53,{'priority':'high'}),_0x5d39c7['model']['document']['registerPostFixer'](()=>{let _0x3cfb0d=!0x1;const _0x3afb7f=Array['from'](_0x5d39c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x502844,data:_0x4ac437}of _0x3afb7f){const {group:_0x2d18b0,type:_0x2de2d3,id:_0x349f7a}=_0x5cc320(_0x502844);if('suggestion'!=_0x2d18b0||'deletion'!=_0x2de2d3||_0x4ac437['oldRange'])continue;if(!_0x570bed['hasSuggestion'](_0x349f7a))continue;const _0x1eb81e=_0x570bed['getSuggestion'](_0x349f7a)['getRanges'](),_0x5485a7=_0x5d39c7['plugins']['get']('Users')['me'];for(const _0x193543 of _0x570bed['getSuggestions']()){if(!_0x193543['isInContent']||_0x193543['author']!=_0x5485a7)continue;if('formatBlock'!=_0x193543['type']||'tablePasteCell'!=_0x193543['subType'])continue;if(_0x193543['getRanges']()['every'](_0x3a47ec=>_0x1eb81e['some'](_0xbd454=>_0xbd454['containsRange'](_0x3a47ec,!0x0)))){for(const _0x366a9e of _0x193543['getAllAdjacentSuggestions']())_0x366a9e['isInContent']&&(_0x366a9e['discard'](),_0x3cfb0d=!0x0);}}}return _0x3cfb0d;}),_0x5d39c7['model']['document']['registerPostFixer'](_0x2d1b4f=>{const _0x30c595=_0x5d39c7['commands']['get']('redo');if(!_0x30c595||!_0x30c595['_createdBatches']['has'](_0x2d1b4f['batch']))return!0x1;let _0x397005=!0x1;const _0x587288=_0x5d39c7['plugins']['get']('Users')['me'],_0x2b7f1b=_0x5d39c7['model']['document']['differ']['getChanges'](),_0x45c23a=Array['from'](_0x5d39c7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5c634b,data:_0x3a4c56})=>{const {group:_0x3cdff8,subType:_0xa9c402,authorId:_0x5122f7}=_0x5cc320(_0x5c634b);return'suggestion'==_0x3cdff8&&'tablePaste'==_0xa9c402&&_0x5122f7==_0x587288['id']&&!_0x3a4c56['oldRange'];});for(const _0x56e12d of _0x2b7f1b){if('insert'!=_0x56e12d['type']||'tableCellSuggestion'!=_0x56e12d['name']||0x1!=_0x56e12d['length'])continue;const _0x37841e=_0x2d1b4f['createRange'](_0x56e12d['position'],_0x56e12d['position']['getShiftedBy'](0x1));if(!_0x45c23a['find'](({data:_0x41826d})=>_0x41826d['newRange']['isEqual'](_0x37841e))){for(const {name:_0x55b0f7,data:_0x516e3c}of _0x45c23a)if(_0x37841e['containsRange'](_0x516e3c['newRange'])){_0x2d1b4f['updateMarker'](_0x55b0f7,{'range':_0x37841e}),_0x397005=!0x0;break;}}}return _0x397005;}),_0x5d39c7['model']['document']['registerPostFixer'](_0x1b9f35=>{let _0x58c163=!0x1;const _0x2935ec=_0x5d39c7['plugins']['get']('Users')['me'],_0x319965=_0x570bed['getSuggestions']()['filter'](_0x2f70ae=>_0x2f70ae['isInContent']&&_0x2f70ae['author']==_0x2935ec),_0x37c270=new Set(),_0x1a5a10=new Set();for(const _0x1a6113 of _0x319965)if('tablePaste'==_0x1a6113['subType'])for(const _0xd40d0d of _0x1a6113['getMarkers']()){const _0x3649cb=_0xd40d0d['getRange']()['getContainedElement']();if(_0x3649cb){if(_0x3649cb['is']('element','tableCellSuggestion')&&wt(_0x3649cb)){_0x1a6113['removeMarker'](_0xd40d0d['name']),_0x37c270['add'](_0x3649cb),_0x58c163=!0x0;const _0x2b4344=_0x3649cb['nextSibling'],_0x433e71=_0x3649cb['previousSibling'],_0xff07f1=_0x2b4344&&_0x2b4344['is']('element','tableCellSuggestion'),_0x4659de=_0x433e71&&_0x433e71['is']('element','tableCellSuggestion');_0xff07f1&&!_0x37c270['has'](_0x2b4344)&&_0x1a5a10['add'](_0x2b4344),_0x4659de&&!_0x37c270['has'](_0x433e71)&&_0x1a5a10['add'](_0x433e71);}else _0x3649cb['is']('element','paragraph')&&_0x3649cb['isEmpty']&&(_0x1a6113['removeMarker'](_0xd40d0d['name']),_0x58c163=!0x0);}}else{if('tablePasteCell'==_0x1a6113['subType']){if(!_0x1a6113['attributes']||!_0x1a6113['attributes']['tablePasteChainId'])continue;const _0x1f8899=_0x1a6113['attributes']['markerAttributes'];if(_0x1f8899&&Object['keys'](_0x1f8899)['length'])continue;const _0x6f466e=_0x1a6113['attributes']['tablePasteChainId'];let _0x31ae3e=!0x0,_0x2d3283=!0x0;for(const _0x2c352f of _0x319965)if(_0x2c352f['subType']&&_0x2c352f['subType']['startsWith']('tablePaste')){if(!_0x2c352f['attributes']['tablePasteChainId']){_0x2d3283=!0x1;break;}if(_0x2c352f['id']!=_0x1a6113['id']&&_0x2c352f['attributes']['tablePasteChainId']==_0x6f466e){_0x31ae3e=!0x1;break;}}_0x2d3283&&_0x31ae3e&&(_0x1a6113['removeMarkers'](),_0x58c163=!0x0);}}for(const _0x3f9b84 of _0x37c270)_0x1b9f35['remove'](_0x3f9b84);for(const _0x256c29 of _0x1a5a10)_0x1b9f35['unwrap'](_0x256c29);return _0x58c163;}),_0x5d39c7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xb34c3d=>_0x2b77ad(_0xb34c3d),'converterPriority':'high'}),_0x5d39c7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc1330e,_0x177b12)=>_0x177b12['options']['showSuggestionHighlights']?_0x2b77ad(_0xc1330e,!0x1):null,'converterPriority':'high'});const _0x314a56=_0x5d39c7['editing']['view'];this['listenTo'](_0x314a56['document'],'clipboardOutput',(_0x3b8603,_0x2b59c5)=>{const _0x3c2ce4=[];for(const _0x39eed5 of _0x314a56['createRangeIn'](_0x2b59c5['content'])['getItems']())_0x39eed5['is']('element','suggestion-td')&&_0x3c2ce4['push'](_0x39eed5);_0x314a56['change'](_0x3ba2a6=>{for(const _0x13c122 of _0x3c2ce4)_0x3ba2a6['move'](_0x3ba2a6['createRangeIn'](_0x13c122),_0x3ba2a6['createPositionBefore'](_0x13c122)),_0x3ba2a6['remove'](_0x13c122);});});}}function wt(_0xfdc5c1){if(_0xfdc5c1['isEmpty'])return!0x0;const _0x3651b1=_0xfdc5c1['getChild'](0x0);return _0x3651b1['is']('element','paragraph')&&_0x3651b1['isEmpty'];}function Bt(_0x13f7f3,_0x43f751={},_0x2079ed){for(const {isAnchor:_0x26be9a,cellHeight:_0x3d6e30,cellWidth:_0x4fc385}of _0x2079ed['createTableWalker'](_0x13f7f3,{'includeAllSlots':!0x0,..._0x43f751}))if(!_0x26be9a||0x1!=_0x3d6e30||0x1!=_0x4fc385)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x5a485e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x594f3e=this['editor']['plugins']['get']('TrackChangesEditing');_0x594f3e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x594f3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x594f3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x594f3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x594f3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x594f3e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5395c9,_0x292748){const _0x16508e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c45d4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x344ee5=_0x292748['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ed7fe=_0x3c45d4['getColumnGroupElement'](_0x344ee5);let _0x457723=_0x4ed7fe?_0x3c45d4['getTableColumnsWidths'](_0x4ed7fe):null,_0xc6adb1=_0x344ee5['getAttribute']('tableWidth')||null;const _0x10dfaf=_0x292748['tableWidth']||_0xc6adb1,_0x521c16=_0x292748['columnWidths']||_0x457723,_0x32b009=this['editor']['plugins']['get']('Users')['me'];for(const _0x4571ea of _0x16508e['getSuggestions']()){const _0x3c92d9=_0x4571ea['getContainedElement']();if('resizeTable'===_0x4571ea['subType']&&_0x3c92d9===_0x344ee5){_0x4571ea['author']!==_0x32b009&&_0x4571ea['discard']();const _0x19d49e=_0x4571ea['data']['commandParams'];_0xc6adb1=_0x19d49e[0x0]['tableWidth'],_0x457723=_0x19d49e[0x0]['columnWidths'];break;}}_0x5395c9({'table':_0x344ee5,'tableWidth':_0x10dfaf,'columnWidths':_0x521c16}),_0x16508e['markBlockFormat'](_0x344ee5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xc6adb1,'columnWidths':_0x457723}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x479fd0){if('formatBlock'!=_0x479fd0['type']&&'formatInline'!=_0x479fd0['type'])return;const {data:_0x4b581c}=_0x479fd0;if(_0x4b581c&&'resizeTable'===_0x4b581c['formatGroupId']){const _0x47562e='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x47562e)};}}}class TrackChangesTemplate extends _0x5a485e{['afterInit'](){const _0x481069=this['editor'];_0x481069['plugins']['has']('Template')&&_0x481069['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x5a485e{['afterInit'](){const _0x12102b=this['editor'];if(!_0x12102b['commands']['get']('insertTableOfContents'))return;_0x12102b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x513a56=_0x12102b['plugins']['get']('TrackChangesEditing'),_0x2874d8=_0x12102b['locale'];_0x513a56['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4a1d04=>Tt(_0x2874d8,'ELEMENT_TABLE_OF_CONTENTS',_0x4a1d04));}}class TrackChangesTitle extends _0x5a485e{['afterInit'](){const _0x5643fa=this['editor'];if(!_0x5643fa['plugins']['has']('Title'))return;_0x5643fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x5643fa['locale'],'ELEMENT_TITLE')),_0x5643fa['model']['document']['registerPostFixer'](_0x1f8eb=>{let _0x35cfb1=!0x1;const _0x580144=Array['from'](_0x5643fa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x337ef3,data:_0x57ddbe}of _0x580144){const {group:_0x159793}=_0x5cc320(_0x337ef3);if('suggestion'!==_0x159793||!_0x57ddbe['newRange'])continue;const _0x1499c6=_0x57ddbe['newRange'],_0x10703e=_0x1499c6['end']['nodeBefore'];if(!_0x10703e||!_0x10703e['is']('element','title-content'))continue;if(!_0x1499c6['start']['isTouching'](_0x1499c6['end']))continue;const _0x47dc87=_0x5643fa['model']['schema']['getNearestSelectionRange'](_0x1499c6['end'],'forward');if(_0x47dc87&&_0x47dc87['isCollapsed']){const _0x17633d=_0x1f8eb['createRange'](_0x1499c6['start'],_0x47dc87['start']);_0x17633d['isEqual'](_0x1499c6)||(_0x1f8eb['updateMarker'](_0x337ef3,{'range':_0x17633d}),_0x35cfb1=!0x0);}_0x35cfb1||(_0x1f8eb['removeMarker'](_0x337ef3),_0x35cfb1=!0x0);}return _0x35cfb1;});}}class TrackChangesUploadcare extends _0x5a485e{['afterInit'](){const _0x16150b=this['editor'],_0x61c10a=_0x16150b['plugins']['get']('TrackChangesEditing');_0x16150b['plugins']['has']('Uploadcare')&&(_0x61c10a['enableCommand']('uploadcare'),_0x16150b['plugins']['has']('UploadcareImageEdit')&&(_0x61c10a['enableCommand']('uploadcareImageEdit'),_0x61c10a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x61c10a['descriptionFactory']['registerDescriptionCallback'](_0x5b999c=>{if('attribute'!=_0x5b999c['type'])return;const {data:_0x25ed30}=_0x5b999c;return _0x25ed30&&'uploadcareImageId'==_0x25ed30['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x5a485e{['afterInit'](){const _0x397924=this['editor'],_0x4f91c5=_0x397924['plugins']['get']('TrackChangesEditing');_0x397924['plugins']['has']('UndoEditing')&&(_0x4f91c5['enableCommand']('undo'),_0x4f91c5['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x5a485e{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x2caeb8=this['editor'];if(!_0x2caeb8['plugins']['has']('TableCaptionEditing'))return;_0x2caeb8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x5a485e{['tableProperties'];['tableCellProperties'];constructor(_0x5b28c0){super(_0x5b28c0),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 _0x3fc86e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x192ce8 of this['tableProperties'])_0x3fc86e['enableCommand'](_0x192ce8,(_0x3976df,_0x5cb5db)=>{const _0x443a78=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x192ce8,[_0x443a78],this['tableProperties'],'tableProperties',_0x3976df,_0x5cb5db);});_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3fc86e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x21b755,_0x5a1d9d)=>this['handleDiscardAction'](this['tableProperties'],_0x21b755,_0x5a1d9d)),_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45a279 of this['tableCellProperties'])this['editor']['commands']['get'](_0x45a279)&&_0x3fc86e['enableCommand'](_0x45a279,(_0xb0d812,_0x136449)=>{const _0x4dcc61=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45a279,_0x4dcc61,this['tableCellProperties'],'tableCellProperties',_0xb0d812,_0x136449);});_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3fc86e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d25c8,_0x19f29e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d25c8,_0x19f29e)),_0x3fc86e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3fc86e['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3fc86e['descriptionFactory']['registerDescriptionCallback'](_0xfa9044=>this['handleSuggestionDescription'](_0xfa9044)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xd9cf54,_0xc3d396,_0x460b87,_0x3d64c9,_0x1f5333,_0x1334ad){const _0x56af21=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1334ad['batch'],()=>{for(const _0x1bef55 of _0xc3d396){if(this['_getSuggestion'](_0x1bef55,_0x3d64c9))_0x1f5333(_0x1334ad);else{const _0x17bc2b={};for(const _0x2e6f48 of _0x460b87){const _0x59a087=_0x1bef55['getAttribute'](_0x2e6f48);void 0x0!==_0x59a087&&(_0x17bc2b[_0x2e6f48]=_0x59a087);}_0x1f5333(_0x1334ad),_0x56af21['markBlockFormat'](_0x1bef55,{'commandParams':[_0x17bc2b]},[],_0x3d64c9);}}});}['handleDiscardAction'](_0x2a4825,_0xcc4797,_0x2a8ce9){const _0x28369a=_0xcc4797[0x0]['start']['nodeAfter'],_0xfd3131=_0x2a8ce9['commandParams'][0x0];this['editor']['model']['change'](_0x3ff4d2=>{for(const _0x223d66 of _0x2a4825)void 0x0!==_0xfd3131[_0x223d66]?_0x3ff4d2['setAttribute'](_0x223d66,_0xfd3131[_0x223d66],_0x28369a):_0x3ff4d2['removeAttribute'](_0x223d66,_0x28369a);});}['handleSuggestionDescription'](_0x5dc19f){if(_0x5dc19f['data'])switch(_0x5dc19f['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'](_0x4fb931,_0x7c0937){const _0x3d5cac=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x585092 of _0x3d5cac['getSuggestions']({'skipNotAttached':!0x0})){const _0x274627=_0x585092['getContainedElement']();if(_0x585092['subType']===_0x7c0937&&_0x274627===_0x4fb931)return _0x585092;}return null;}['_registerTablePropertiesAttributes'](){const _0x1c4761=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb2a192=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x33f5a0 of _0xb2a192){const _0x6295ac=_0x33f5a0['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1c4761['descriptionFactory']['registerAttributeLabel'](_0x33f5a0,Tt(this['editor']['locale'],'FORMAT_'+_0x6295ac));}}}class TrackChangesLineHeight extends _0x5a485e{['afterInit'](){const _0x3a8dd4=this['editor'];if(!_0x3a8dd4['plugins']['has']('LineHeight'))return;const _0x3221c1=_0x3a8dd4['plugins']['get']('TrackChangesEditing'),_0x3ff4ff=_0x3a8dd4['locale'];_0x3221c1['enableDefaultAttributesIntegration']('lineHeight'),_0x3221c1['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x3ff4ff,'FORMAT_LINE_HEIGHT'));}}const Ft='$elementName';class TrackChangesEditing extends _0x5a485e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x112fe0,_0x31f2dc,_0x41f7d1,_0x23777d,_0x228d70,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(_0x32d37f){super(_0x32d37f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2d29c9,_0x2e89ec,_0x5e971e,_0x3e1ea4)=>{this['_model']['change'](()=>{for(const _0x5e2e50 of[..._0x3e1ea4,..._0x5e971e])this['_model']['markers']['has'](_0x5e2e50)&&_0x32d37f['editing']['reconvertMarker'](_0x5e2e50);});}),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']=_0x32d37f['plugins']['get'](_0x112fe0),this['_suggestionsConversion']=_0x32d37f['plugins']['get'](_0x31f2dc),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x32d37f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x32d37f['config']['get']('trackChanges.trackFormatChanges'),_0x32d37f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x32d37f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x32d37f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2fe55a=this['editor'];_0x2fe55a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ab4ce,{writer:_0x540ff9})=>{let _0x4cdda5='suggestion:'+_0x4ab4ce['getAttribute']('suggestion-type')+':'+_0x4ab4ce['getAttribute']('id');return _0x4ab4ce['getAttribute']('marker-count')&&(_0x4cdda5+=':'+_0x4ab4ce['getAttribute']('marker-count')),_0x540ff9['createElement']('$marker',{'data-name':_0x4cdda5});}}),_0x2fe55a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2fe55a['model']['document']['registerPostFixer'](_0x2e41cc=>{let _0x1fe6ad=!0x1;const _0x2643b4=Array['from'](_0x2fe55a['model']['document']['differ']['getChangedMarkers']()),_0x34245c=new Set();for(const {name:_0x5b1ee9,data:_0x14611f}of _0x2643b4){const {group:_0x148b73,type:_0x677e59,subType:_0x36d3c3,id:_0x48cdd5}=_0x5cc320(_0x5b1ee9);if('suggestion'!==_0x148b73)continue;const _0x34f0fe=_0x36d3c3?'suggestion:'+_0x677e59+':'+_0x36d3c3+':'+_0x48cdd5:'suggestion:'+_0x677e59+':'+_0x48cdd5,_0x41f52e=_0x2fe55a['model']['markers']['getMarkersGroup'](_0x34f0fe),_0x4131cc=_0x2fe55a['model']['markers']['get'](_0x5b1ee9),_0x259c58=this['_suggestions']['get'](_0x48cdd5);if(null!=_0x14611f['newRange']){'formatInline'==_0x677e59&&(_0x1fe6ad=_0x1fe6ad||xt(_0x14611f['newRange'],_0x5b1ee9,_0x2e41cc,_0x2fe55a['model']['schema']));const _0x475cda='attribute'==_0x677e59&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x36d3c3)),_0x12f90f='attribute'==_0x677e59&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x36d3c3));if(_0x14611f['newRange']['isCollapsed']||'$graveyard'==_0x14611f['newRange']['root']['rootName']||'formatBlock'==_0x677e59&&!Ut(_0x14611f['newRange'])||_0x475cda&&!Ut(_0x14611f['newRange'])||_0x12f90f&&Gt(_0x14611f['newRange'])||'deletion'==_0x677e59&&Gt(_0x14611f['newRange'])||_0x4131cc&&Ht(_0x4131cc,_0x41f52e))_0x2e41cc['removeMarker'](_0x5b1ee9),_0x1fe6ad=!0x0;else{if(!_0x259c58||!_0x259c58['isInContent'])continue;if(_0x14611f['newRange']&&_0x14611f['oldRange']&&_0x14611f['newRange']['isEqual'](_0x14611f['oldRange']))continue;_0x34245c['add'](_0x259c58);}}}return _0x34245c['size']>0x0&&(_0x1fe6ad=!!this['_joinWithAdjacentSuggestions'](_0x34245c)||_0x1fe6ad),_0x1fe6ad;}),_0x2fe55a['model']['document']['registerPostFixer'](_0x52b1e9=>{let _0x58d752=!0x1;for(const _0x3949e6 of _0x2fe55a['model']['document']['differ']['getChanges']())if('insert'==_0x3949e6['type'])for(const _0x297322 of this['_suggestions']['values']()){if(_0x297322['isMultiRange']||!_0x297322['isInContent'])continue;const _0x4421eb='formatBlock'==_0x297322['type'],_0x14fde4=this['_getAttributeKey'](_0x297322),_0x1efef5=_0x14fde4&&this['_suggestionsConversion']['isBlockAttribute'](_0x14fde4);if(!_0x4421eb&&!_0x1efef5)continue;const _0xbddfde=_0x297322['getFirstRange']();if(_0xbddfde['start']['parent']!=_0xbddfde['end']['parent']&&!_0xbddfde['end']['isAtEnd']){const _0x11de6d=_0x2fe55a['model']['createPositionAt'](_0xbddfde['start']['nodeAfter'],'end'),_0x3b09ed=_0x2fe55a['model']['createRange'](_0xbddfde['start'],_0x11de6d);_0x52b1e9['updateMarker'](_0x297322['getFirstMarker'](),{'range':_0x3b09ed}),_0x58d752=!0x0;}}return _0x58d752;}),_0x2fe55a['model']['document']['registerPostFixer'](_0x1976d2=>this['_processAttributeChanges'](_0x1976d2)),_0x2fe55a['model']['document']['registerPostFixer'](_0x1c2f24=>!_0x1c2f24['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1c2f24)),_0x2fe55a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2fe55a['model']['document']['on']('change:data',(_0x3c9a1c,_0x15f9da)=>{if(!_0x15f9da['isLocal']||_0x15f9da['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x51a623=_0x2fe55a['model']['document']['differ']['getChanges']();if(0x0==_0x51a623['length'])return;const _0x3ad1c4=[],_0x2e2efd=_0x51a623['filter'](_0x145c83=>'attribute'==_0x145c83['type']),_0x590fa3=_0x51a623['filter'](_0x9904f8=>'insert'==_0x9904f8['type']&&'$text'!=_0x9904f8['name']);for(const _0x3f2605 of _0x2e2efd)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3f2605['attributeKey'])&&_0x3ad1c4['push']({'key':_0x3f2605['attributeKey'],'newValue':_0x3f2605['attributeNewValue'],'oldValue':_0x3f2605['attributeOldValue'],'range':$t(_0x3f2605['range'],_0x2fe55a['model'])});for(const _0x213e6d of _0x590fa3){if('rename'!=_0x213e6d['action']&&'refresh'!=_0x213e6d['action'])continue;const _0x38e547=Vt(_0x213e6d['position']['nodeAfter'],_0x2fe55a['model']),_0x313040=_0x213e6d['before'];'rename'==_0x213e6d['action']&&_0x3ad1c4['push']({'key':Ft,'newValue':_0x213e6d['name'],'oldValue':_0x313040['name'],'range':_0x38e547});for(const [_0x3abf3a,_0x4897de]of _0x313040['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3abf3a))continue;const _0x27485e=_0x213e6d['attributes']['get'](_0x3abf3a);_0x4897de!==_0x27485e&&_0x3ad1c4['push']({'key':_0x3abf3a,'newValue':_0x27485e,'oldValue':_0x4897de,'range':_0x38e547});}for(const [_0x32a91a,_0x59d6ee]of _0x213e6d['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x32a91a)&&(_0x313040['attributes']['has'](_0x32a91a)||_0x3ad1c4['push']({'key':_0x32a91a,'newValue':_0x59d6ee,'oldValue':null,'range':_0x38e547}));}0x0!=_0x3ad1c4['length']&&_0x2fe55a['model']['enqueueChange'](_0x15f9da,_0x5a53de=>{const _0x54c1b3=_0x272311();for(const {range:_0x281c08,key:_0x3e854b,oldValue:_0x3aab4c,newValue:_0x29579a}of _0x3ad1c4)this['markAttributeChange'](_0x281c08,_0x3e854b,_0x3aab4c,_0x29579a,{'groupId':_0x54c1b3});this['_reduceExistingSuggestions'](_0x5a53de,_0x3ad1c4);});},{'priority':'lowest'}),_0x2fe55a['model']['markers']['on']('update:suggestion',(_0x27faba,_0x35957d,_0x2211b6)=>{if(null==_0x2211b6){const {id:_0x22d153}=_0x5cc320(_0x35957d['name']),_0x59038d=this['_suggestions']['get'](_0x22d153);_0x59038d&&_0x59038d['addMarkerName'](_0x35957d['name']);}}),_0x2fe55a['model']['document']['on']('change:data',()=>{const _0x335010=Array['from'](_0x2fe55a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1efbf2=>'suggestion'===_0x5cc320(_0x1efbf2['name'])['group']);if(0x0===_0x335010['length'])return;_0x335010['sort']((_0x424ff8,_0x5e9dc4)=>{const _0x2862d4=_0x424ff8['data']['oldRange'],_0x15058f=_0x5e9dc4['data']['oldRange'];return null===_0x2862d4&&null===_0x15058f?0x0:null===_0x2862d4&&null!==_0x15058f?-0x1:null!==_0x2862d4&&null===_0x15058f?0x1:_0x2862d4['start']['isBefore'](_0x15058f['start'])?-0x1:0x1;});const _0x578ed2=new Set(),_0x402026=new Set();for(const {name:_0x7d08d5,data:_0x575f66}of _0x335010){const {id:_0x298be4}=_0x5cc320(_0x7d08d5);if(null===_0x575f66['oldRange']){const _0x307d6d=this['_handleNewSuggestionMarker'](_0x7d08d5);_0x402026['add'](_0x307d6d);}else{const _0x2a897e=this['_suggestions']['get'](_0x298be4);null!==_0x575f66['newRange']||_0x2a897e['isInContent']?(_0x578ed2['add'](_0x2a897e['head']),_0x402026['add'](_0x2a897e)):this['_removeSuggestion'](_0x2a897e);}}_0x402026['size']>0x0&&this['_refreshSuggestionsChain'](_0x402026);for(const _0x493826 of _0x578ed2)this['fire']('suggestionChanged',_0x493826);}),_0x2fe55a['model']['on']('applyOperation',(_0x2359fa,_0x26c89b)=>{const _0x1d91f3=_0x26c89b[0x0];if(!this['_suggestions']['size'])return;if(!_0x1d91f3['isDocumentOperation'])return;if(_0x1d91f3['batch']['isUndo']||!_0x1d91f3['batch']['isLocal'])return;let _0x1fbfb6,_0x201b2b;switch(_0x1d91f3['type']){case'insert':_0x1fbfb6=_0x2fe55a['model']['createPositionAt'](_0x1d91f3['position']),_0x201b2b=_0x1fbfb6['getShiftedBy'](_0x1d91f3['howMany']);break;case'split':_0x1fbfb6=_0x2fe55a['model']['createPositionAt'](_0x1d91f3['splitPosition']),_0x201b2b=_0x2fe55a['model']['createPositionAt'](_0x1d91f3['moveTargetPosition']);break;case'move':_0x1fbfb6=_0x2fe55a['model']['createPositionAt'](_0x1d91f3['targetPosition']),_0x201b2b=_0x1fbfb6['getShiftedBy'](_0x1d91f3['howMany']);break;default:return;}const _0x1ef77b=_0x2fe55a['model']['createRange'](_0x1fbfb6,_0x201b2b);_0x2fe55a['model']['change'](()=>{for(const {suggestion:_0x2b9484,meta:_0x23073c}of this['_findSuggestions'](_0x1ef77b)){if(_0x2b9484['isMultiRange'])continue;if('formatInline'==_0x2b9484['type'])continue;const _0x319044=this['_getAttributeKey'](_0x2b9484);if(_0x319044&&this['_suggestionsConversion']['isBlockAttribute'](_0x319044)&&'split'!=_0x1d91f3['type'])continue;const _0x580849=_0x2b9484['data']&&_0x2b9484['data']['multipleBlocks'];('formatBlock'!=_0x2b9484['type']||'split'==_0x1d91f3['type']&&!_0x580849)&&(_0x23073c['containsRangeInObject']||'insertion'==_0x2b9484['type']&&_0x23073c['isOwn']||_0x2b9484['getFirstRange']()['containsRange'](_0x1ef77b)&&this['_breakSuggestionMarker'](_0x2b9484,_0x1fbfb6,_0x201b2b));}});},{'priority':'lowest'}),_0x2fe55a['model']['on']('deleteContent',(_0x4bb9a1,_0x2254f5)=>{const _0x53fd31=_0x2254f5[0x0],_0x56328b=_0x2254f5[0x1];if(_0x56328b&&_0x56328b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x53fd31['isCollapsed'])return;const _0x360945=_0x2fe55a['model']['schema'],{start:_0x16f148,end:_0x4e5b6c}=_0x53fd31['getFirstRange'](),_0x55f290=_0x16f148['nodeAfter']&&_0x360945['isLimit'](_0x16f148['nodeAfter'])?null:_0x360945['getNearestSelectionRange'](_0x16f148,'forward'),_0x2de4ec=_0x4e5b6c['nodeBefore']&&_0x360945['isLimit'](_0x4e5b6c['nodeBefore'])?null:_0x360945['getNearestSelectionRange'](_0x4e5b6c,'backward'),_0x53e68a=_0x2fe55a['model']['createRange'](_0x55f290?_0x55f290['start']:_0x16f148,_0x2de4ec?_0x2de4ec['end']:_0x4e5b6c);_0x2fe55a['model']['change'](_0x5b5860=>{this['markDeletion'](_0x53e68a);const _0x5f04c3=_0x2fe55a['model']['schema']['getNearestSelectionRange'](_0x53e68a['start']);_0x53fd31['is']('documentSelection')?_0x5b5860['setSelection'](_0x5f04c3):_0x53fd31['setTo'](_0x5f04c3);}),_0x4bb9a1['stop']();},{'priority':_0x3bd827['normal']+0xa}),_0x2fe55a['model']['on']('insertContent',(_0x273d9c,_0x39c1bb)=>{const _0x543b28=_0x39c1bb[_0x39c1bb['length']-0x1];_0x543b28&&_0x543b28['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2fe55a['model']['change'](()=>{let _0x516f34=_0x2fe55a['model']['insertContent'](_0x39c1bb[0x0],_0x39c1bb[0x1],_0x39c1bb[0x2],{'forceDefaultExecution':!0x0});if(!_0x516f34)return;_0x273d9c['return']=_0x516f34['clone']();const _0x17be82=_0x516f34['end']['nodeBefore'],_0x1c6104=_0x2fe55a['model']['schema'];_0x17be82&&_0x1c6104['isBlock'](_0x17be82)&&!_0x1c6104['isObject'](_0x17be82)&&(_0x516f34=_0x2fe55a['model']['createRange'](_0x516f34['start'],_0x2fe55a['model']['createPositionAt'](_0x17be82,'end'))),this['markInsertion'](_0x516f34);}),_0x273d9c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x408d4=new AcceptSuggestionCommand(_0x2fe55a,this['_suggestions']);_0x2fe55a['commands']['add']('acceptSuggestion',_0x408d4),this['enableCommand']('acceptSuggestion');const _0x535b95=new DiscardSuggestionCommand(_0x2fe55a,this['_suggestions']);_0x2fe55a['commands']['add']('discardSuggestion',_0x535b95),this['enableCommand']('discardSuggestion'),_0x2fe55a['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x2fe55a,_0x408d4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2fe55a['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x2fe55a,_0x535b95,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2fe55a['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x2fe55a,_0x408d4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2fe55a['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x2fe55a,_0x535b95,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x33bc48=_0x2fe55a['plugins']['get'](_0x112fe0);this['listenTo'](_0x33bc48,'addComment',(_0x942948,{threadId:_0x4507c4})=>{const _0x3dddd9=this['_suggestions']['get'](_0x4507c4);_0x3dddd9&&_0x3dddd9['commentThread']&&0x1===_0x3dddd9['commentThread']['length']&&this['_updateSuggestionData'](_0x4507c4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x33bc48,'removeComment',(_0x251fef,{threadId:_0x593413})=>{const _0x15409e=this['_suggestions']['get'](_0x593413);_0x15409e&&_0x15409e['commentThread']&&!_0x15409e['commentThread']['length']&&this['_updateSuggestionData'](_0x593413,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x129ec2){const _0x50fe8e=_0x260deb([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]),_0x56e677=0x3d8d0df,_0x571de4=0x3df5ae7^_0x56e677,_0x4338a8=window[_0x260deb([0x44,0x61,0x74,0x65])][_0x260deb([0x6e,0x6f,0x77])](),_0x318ed9=_0x129ec2[_0x260deb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x130e1a=new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1db6af=>{_0x318ed9[_0x260deb([0x6f,0x6e,0x63,0x65])](_0x260deb([0x72,0x65,0x61,0x64,0x79]),_0x1db6af);}),_0x1f9d97={[_0x260deb([0x6b,0x74,0x79])]:_0x260deb([0x45,0x43]),[_0x260deb([0x75,0x73,0x65])]:_0x260deb([0x73,0x69,0x67]),[_0x260deb([0x63,0x72,0x76])]:_0x260deb([0x50,0x2d,0x32,0x35,0x36]),[_0x260deb([0x78])]:_0x260deb([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]),[_0x260deb([0x79])]:_0x260deb([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]),[_0x260deb([0x61,0x6c,0x67])]:_0x260deb([0x45,0x53,0x32,0x35,0x36])},_0xbd01df=_0x318ed9[_0x260deb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x260deb([0x67,0x65,0x74])](_0x260deb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x28cd22(){let _0x4c9d69,_0x56b0b3=null,_0x2c119b=null;try{if(_0xbd01df==_0x260deb([0x47,0x50,0x4c]))return _0x260deb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c9d69=_0x255d9a(),!_0x4c9d69)return _0x260deb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c9d69[_0x260deb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2c119b=_0xa117f1(_0x4c9d69[_0x260deb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c9d69[_0x260deb([0x6a,0x74,0x69])])),await _0x448b20()?_0x4a86cd()?_0x334766()?_0x260deb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d8603()?(_0x4c9d69[_0x260deb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x260deb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56b0b3=_0x44933e(_0x260deb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3784e6()):_0x260deb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x260deb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x260deb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x260deb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x334766(){const _0x138751=[_0x260deb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x260deb([0x74,0x72,0x69,0x61,0x6c])][_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c9d69[_0x260deb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4338a8/0x3e8:0xe10*_0x571de4;return _0x4c9d69[_0x260deb([0x65,0x78,0x70])]<_0x138751;}function _0x4a86cd(){const _0xd9fe=_0x4c9d69[_0x260deb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd9fe)return!0x1;if(_0xd9fe[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260deb([0x2a])))return!0x0;if(_0xd9fe[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260deb([0x54,0x43])))return!0x0;if(_0xd9fe[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260deb([0x52,0x54,0x43]))){if(_0x2a5015())return!0x0;if(_0x23fb86()||_0x4dfe33())return!0x0;}return!0x1;}function _0x4d8603(){const _0x101007=_0x4c9d69[_0x260deb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x101007||0x0==_0x101007[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36eae1}=new URL(window[_0x260deb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x101007[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36eae1))return!0x0;const _0x655c60=_0x36eae1[_0x260deb([0x73,0x70,0x6c,0x69,0x74])](_0x260deb([0x2e]));return _0x101007[_0x260deb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a8e22=>_0x1a8e22[_0x260deb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x260deb([0x2a])))[_0x260deb([0x6d,0x61,0x70])](_0xbe012b=>_0xbe012b[_0x260deb([0x73,0x70,0x6c,0x69,0x74])](_0x260deb([0x2e])))[_0x260deb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x228228=>_0x228228[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x655c60[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x260deb([0x6d,0x61,0x70])](_0x4b05f6=>Array(_0x655c60[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4b05f6[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x260deb([0x66,0x69,0x6c,0x6c])](_0x4b05f6[0x0]===_0x260deb([0x2a])?_0x260deb([0x2a]):'')[_0x260deb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4b05f6))[_0x260deb([0x73,0x6f,0x6d,0x65])](_0x388f57=>_0x655c60[_0x260deb([0x65,0x76,0x65,0x72,0x79])]((_0x15997d,_0x43e9b6)=>_0x388f57[_0x43e9b6]===_0x15997d||_0x388f57[_0x43e9b6]===_0x260deb([0x2a])));}function _0x3784e6(){return _0x56b0b3&&_0x2c119b?new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11b743,_0x361bdf)=>{_0x56b0b3[_0x260deb([0x74,0x68,0x65,0x6e])](_0x11b743,_0x361bdf),_0x2c119b[_0x260deb([0x74,0x68,0x65,0x6e])](_0x1c3226=>{_0x1c3226!=_0x260deb([0x56,0x61,0x6c,0x69,0x64])&&_0x11b743(_0x1c3226);},_0x361bdf);}):_0x56b0b3||_0x2c119b||_0x260deb([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa117f1(_0x54fc8b,_0x337e5d){return new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b8396=>{if(_0x130ef4())return _0x1b8396(_0x260deb([0x56,0x61,0x6c,0x69,0x64]));_0x2fed8c(),_0x318ed9[_0x260deb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x260deb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bc45c=!0x1;const _0x51ca42=_0x272311();function _0x538535(_0x3cadfb){return!!_0x3cadfb&&(typeof _0x3cadfb===_0x260deb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3cadfb===_0x260deb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3cadfb[_0x260deb([0x74,0x68,0x65,0x6e])]===_0x260deb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3cadfb[_0x260deb([0x63,0x61,0x74,0x63,0x68])]===_0x260deb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2148a7(_0xd9273c){_0x3d58fa(_0xd9273c)[_0x260deb([0x74,0x68,0x65,0x6e])](_0x209acc=>{if(!_0x209acc||_0x209acc[_0x260deb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x260deb([0x6f,0x6b]))return _0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x50e10c(_0x5040a3(_0x51ca42+_0x337e5d))!=_0x209acc[_0x260deb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x260deb([0x56,0x61,0x6c,0x69,0x64]);})[_0x260deb([0x74,0x68,0x65,0x6e])](_0x4c501e=>(_0x105337(),_0x4c501e),()=>{const _0x2dee8e=_0x109d20();return null==_0x2dee8e?(_0x105337(),_0x260deb([0x56,0x61,0x6c,0x69,0x64])):_0x260deb(_0x4338a8-_0x2dee8e>(0x27d454df^_0x56e677)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x260deb([0x74,0x68,0x65,0x6e])](_0x1b8396)[_0x260deb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b8396(_0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7f1b03=0x3ee3e5f^_0x56e677;function _0x105337(){const _0x417eb2=_0x260deb([0x6c,0x6c,0x63,0x74,0x2d])+_0x50e10c(_0x5040a3(_0x54fc8b)),_0xbb6d10=_0xab3243(_0x50e10c(window[_0x260deb([0x4d,0x61,0x74,0x68])][_0x260deb([0x63,0x65,0x69,0x6c])](_0x4338a8/_0x7f1b03)));window[_0x260deb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x260deb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x417eb2,_0xbb6d10);}function _0x109d20(){const _0x1c96b2=_0x260deb([0x6c,0x6c,0x63,0x74,0x2d])+_0x50e10c(_0x5040a3(_0x54fc8b)),_0x226de9=window[_0x260deb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x260deb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c96b2);return _0x226de9?window[_0x260deb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xab3243(_0x226de9),0x10)*_0x7f1b03:null;}function _0x3d58fa(_0x234671){return new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x200505,_0xa33471)=>{_0x234671[_0x260deb([0x74,0x68,0x65,0x6e])](_0x200505,_0xa33471),window[_0x260deb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa33471,0x3d9041f^_0x56e677);});}}_0x318ed9[_0x260deb([0x6f,0x6e])](_0x260deb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d012e,_0x644c5d)=>{if(_0x644c5d[0x0]!=_0x54fc8b)return _0x1b8396(_0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x644c5d[0x1]={..._0x644c5d[0x1],[_0x260deb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51ca42};},{[_0x260deb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x260deb([0x68,0x69,0x67,0x68])}),_0x318ed9[_0x260deb([0x6f,0x6e])](_0x260deb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x41b0d1=>{_0x538535(_0x41b0d1[_0x260deb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bc45c=!0x0,_0x2148a7(_0x41b0d1[_0x260deb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x260deb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x260deb([0x6c,0x6f,0x77])}),_0x130e1a[_0x260deb([0x74,0x68,0x65,0x6e])](()=>{_0x3bc45c||_0x1b8396(_0x260deb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x130ef4(){return _0x318ed9[_0x260deb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x260deb([0x76,0x69,0x65,0x77])][_0x260deb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x260deb([0x61,0x75,0x74,0x6f]);}function _0x2fed8c(){_0x318ed9[_0x260deb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x260deb([0x76,0x69,0x65,0x77])][_0x260deb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x260deb([0x61,0x75,0x74,0x6f]);}}function _0x44933e(_0x419b0c){const _0x326336=[new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ee1e7=>setTimeout(_0x2ee1e7,0x3d1ee13^_0x56e677)),_0x130e1a[_0x260deb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x388590=>{let _0x4943d1=0x0;_0x318ed9[_0x260deb([0x6d,0x6f,0x64,0x65,0x6c])][_0x260deb([0x6f,0x6e])](_0x260deb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33ffd0,_0x44c030)=>{_0x44c030[0x0][_0x260deb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4943d1++,_0x4943d1==(0x3d8d537^_0x56e677)&&(_0x388590(),_0x33ffd0[_0x260deb([0x6f,0x66,0x66])]());});}))];return window[_0x260deb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x260deb([0x72,0x61,0x63,0x65])](_0x326336)[_0x260deb([0x74,0x68,0x65,0x6e])](()=>_0x419b0c);}async function _0x5b8286(){await _0x130e1a,_0x318ed9[_0x260deb([0x6d,0x6f,0x64,0x65,0x6c])][_0x260deb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2dd5a9,_0x318ed9[_0x260deb([0x6d,0x6f,0x64,0x65,0x6c])][_0x260deb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2dd5a9,_0x318ed9[_0x260deb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x260deb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a5015(){return _0x307ff0(_0x260deb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2aed36(_0x260deb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x260deb([0x73,0x74,0x61,0x74,0x65])]==_0x260deb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x23fb86(){return _0x307ff0(_0x260deb([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 _0x4dfe33(){return _0x307ff0(_0x260deb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xa75bce(_0x1736db){const _0x48e754=_0xeb7a37();_0x318ed9[_0x48e754]=_0x260deb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1736db,_0x1736db!=_0x260deb([0x56,0x61,0x6c,0x69,0x64])&&_0x5b8286();}function _0xeb7a37(){const _0x27736f=window[_0x260deb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x260deb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x260deb([0x6e,0x6f,0x77])]())[_0x260deb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x260deb([0x2e]),'');let _0x51cd1c=_0x260deb([0x52]);for(let _0x55bdcd=0x0;_0x55bdcd<_0x27736f[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bdcd+=0x2){let _0x38a911=window[_0x260deb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27736f[_0x260deb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55bdcd,_0x55bdcd+0x2));_0x38a911>=_0x50fe8e[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x38a911-=_0x50fe8e[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51cd1c+=_0x50fe8e[_0x38a911];}return _0x51cd1c;}function _0x255d9a(){const _0x39d27c=_0xbd01df[_0x260deb([0x73,0x70,0x6c,0x69,0x74])](_0x260deb([0x2e]));if(0x3!=_0x39d27c[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x558e22(_0x39d27c[0x1]);function _0x558e22(_0x523871){const _0x3b2d0b=_0x6774fb(_0x523871);return _0x3b2d0b&&_0x2c1a96()?_0x3b2d0b:null;function _0x2c1a96(){const _0x25a4e7=_0x3b2d0b[_0x260deb([0x6a,0x74,0x69])],_0x5e0859=window[_0x260deb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25a4e7[_0x260deb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25a4e7[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1de2c9={..._0x3b2d0b,[_0x260deb([0x6a,0x74,0x69])]:_0x25a4e7[_0x260deb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25a4e7[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1de2c9[_0x260deb([0x76,0x63])],_0x5040a3(_0x1de2c9)==_0x5e0859;}}}async function _0x448b20(){let _0x45887d=!0x0;try{const _0x1a4104=_0xbd01df[_0x260deb([0x73,0x70,0x6c,0x69,0x74])](_0x260deb([0x2e])),[_0x110598,_0xf91e53,_0x284d33]=_0x1a4104;return _0x28d8b1(_0x110598),await _0x27fb17(_0x110598,_0xf91e53,_0x284d33),_0x45887d;}catch{return!0x1;}function _0x28d8b1(_0x58fe86){const _0x25631b=_0x6774fb(_0x58fe86);_0x25631b&&_0x25631b[_0x260deb([0x61,0x6c,0x67])]==_0x260deb([0x45,0x53,0x32,0x35,0x36])||(_0x45887d=!0x1);}async function _0x27fb17(_0x2dca1f,_0x23cd02,_0x4173a8){const _0x176ad0=window[_0x260deb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x260deb([0x66,0x72,0x6f,0x6d])](_0x82ed51(_0x4173a8),_0x5d7686=>_0x5d7686[_0x260deb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15973d=new window[(_0x260deb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x260deb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2dca1f+_0x260deb([0x2e])+_0x23cd02),_0x4d3cf0=window[_0x260deb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x260deb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d3cf0)return;const _0x4d2de6=await _0x4d3cf0[_0x260deb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x260deb([0x6a,0x77,0x6b]),_0x1f9d97,{[_0x260deb([0x6e,0x61,0x6d,0x65])]:_0x260deb([0x45,0x43,0x44,0x53,0x41]),[_0x260deb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x260deb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x260deb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d3cf0[_0x260deb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x260deb([0x6e,0x61,0x6d,0x65])]:_0x260deb([0x45,0x43,0x44,0x53,0x41]),[_0x260deb([0x68,0x61,0x73,0x68])]:{[_0x260deb([0x6e,0x61,0x6d,0x65])]:_0x260deb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d2de6,_0x176ad0,_0x15973d)||(_0x45887d=!0x1);}}function _0x6774fb(_0x1ef828){return _0x1ef828[_0x260deb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x260deb([0x65,0x79]))?JSON[_0x260deb([0x70,0x61,0x72,0x73,0x65])](_0x82ed51(_0x1ef828)):null;}function _0x82ed51(_0x420b71){return window[_0x260deb([0x61,0x74,0x6f,0x62])](_0x420b71[_0x260deb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x260deb([0x2b]))[_0x260deb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x260deb([0x2f])));}function _0x5040a3(_0x154c84){let _0x44c9da=0x1505;function _0x96e394(_0x191b37){for(let _0x552948=0x0;_0x552948<_0x191b37[_0x260deb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x552948++){const _0x39f0b1=_0x191b37[_0x260deb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x552948);_0x44c9da=(_0x44c9da<<0x5)+_0x44c9da+_0x39f0b1,_0x44c9da&=_0x44c9da;}}function _0x5b699b(_0x528866){Array[_0x260deb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x528866)?_0x528866[_0x260deb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b699b):_0x528866&&typeof _0x528866==_0x260deb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x260deb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x528866)[_0x260deb([0x73,0x6f,0x72,0x74])]()[_0x260deb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f2879,_0x72729e])=>{_0x96e394(_0x3f2879),_0x5b699b(_0x72729e);}):_0x96e394(window[_0x260deb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x528866));}return _0x5b699b(_0x154c84),_0x44c9da>>>0x0;}function _0x50e10c(_0x5b50dc){return _0x5b50dc[_0x260deb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x260deb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x260deb([0x30]));}function _0xab3243(_0x3fd237){return _0x3fd237[_0x260deb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x260deb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x260deb([0x6a,0x6f,0x69,0x6e])]('');}function _0x307ff0(_0x578dfd){return _0x318ed9[_0x260deb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x260deb([0x68,0x61,0x73])](_0x578dfd);}function _0x2aed36(_0x4bb436){return _0x318ed9[_0x260deb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x260deb([0x67,0x65,0x74])](_0x4bb436);}function _0x2dd5a9(){}function _0x260deb(_0x130049){return _0x130049['map'](_0x59cbc0=>String['fromCharCode'](_0x59cbc0))['join']('');}_0xa75bce(await _0x28cd22());}(this);}set['adapter'](_0x151263){if(this['_adapter'])throw new _0xa0bdff('track-changes-adapter-already-set',this);this['_adapter']=_0x151263;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5574d9=!0x1,toJSON:_0x3c7418=!0x1}={}){const _0x43259b=[];for(const _0x1072a3 of this['_suggestions']['values']())_0x5574d9&&!_0x1072a3['isInContent']||_0x43259b['push'](_0x1072a3);return _0x3c7418?_0x43259b['map'](_0x70fb61=>_0x70fb61['toJSON']()):_0x43259b;}['getSuggestion'](_0x32596d){const _0x32fac8=this['_suggestions']['get'](_0x32596d);if(!_0x32fac8)throw new _0xa0bdff('track-changes-suggestion-not-found',this);return _0x32fac8;}['hasSuggestion'](_0x3fe366){return this['_suggestions']['has'](_0x3fe366);}['addSuggestionData'](_0x2f63e9){const {authorId:_0x3d2e0e,id:_0x2173fc,originalSuggestionId:_0xb0aeb4,attributes:_0x56b798}=_0x2f63e9,[_0x61da16,_0x493187]=_0x2f63e9['type']['split'](':'),_0x5c81c6=this['_suggestions']['get'](_0x2173fc)||this['_createSuggestion'](_0x61da16,_0x493187,_0x2173fc,_0x3d2e0e,_0x56b798,_0xb0aeb4);if(this['_addThreadToSuggestion'](_0x5c81c6),this['_checkSuggestionCorrectness'](_0x5c81c6,_0x61da16,_0x493187||null,_0x3d2e0e),_0x5c81c6['createdAt']=_0x2f63e9['createdAt'],_0x5c81c6['_isDataLoaded']=!0x0,_0x56b798&&_0x56b798['@external']){const _0x959d55=_0x56b798['@external'],_0x93356f=this['_getExternalAuthor'](_0x959d55['authorName']);_0x5c81c6['authoredAt']=_0x959d55['createdAt'],_0x5c81c6['author']=_0x93356f,_0x5c81c6['isExternal']=!0x0;}else _0x5c81c6['authoredAt']=_0x2f63e9['createdAt'];switch(_0x2f63e9['data']&&(_0x5c81c6['data']=_0x2f63e9['data']),_0x2f63e9['attributes']&&(_0x5c81c6['attributes']=_0x2f63e9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5c81c6['_saved']=!0x0),this['_suggestionState']['get'](_0x5c81c6)){case'notReady':this['_suggestionState']['set'](_0x5c81c6,'dataReady');break;case'markerReady':_0x5c81c6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5c81c6])),this['_refreshSuggestionsChain'](new Set([_0x5c81c6])),this['_suggestionState']['set'](_0x5c81c6,'ready'),this['fire']('suggestionLoaded',_0x5c81c6)):this['_suggestionState']['set'](_0x5c81c6,'removed');}return _0x5c81c6;}['acceptSuggestion'](_0x25ab78){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x279ee7 of _0x25ab78['getAllAdjacentSuggestions']())_0x279ee7['accept']();});});}['discardSuggestion'](_0x5765df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x46373a of _0x5765df['getAllAdjacentSuggestions']())_0x46373a['discard']();});});}['enableCommand'](_0x504d02,_0xce4dbb){const _0x35de1e=this['editor']['commands']['get'](_0x504d02);if(!_0x35de1e)throw new _0xa0bdff('track-changes-command-not-found',this,{'commandName':_0x504d02});if(this['_enabledCommands']['has'](_0x35de1e))throw new _0xa0bdff('track-changes-enable-command-twice',this,{'commandName':_0x504d02});this['_enabledCommands']['add'](_0x35de1e),_0xce4dbb&&_0x35de1e['on']('execute',(_0x110629,_0x183eee)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x183eee['length']>0x0&&_0x183eee[_0x183eee['length']-0x1]&&_0x183eee[_0x183eee['length']-0x1]['forceDefaultExecution']?_0x183eee['pop']():(_0x110629['return']=_0xce4dbb((..._0x9949c5)=>_0x35de1e['execute'](..._0x9949c5,{'forceDefaultExecution':!0x0}),..._0x183eee),_0x110629['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3c6f2a){let _0x40130b,_0x1ddf2e;const _0x262bc2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x40130b=_0x3c6f2a();}catch(_0x197370){_0x1ddf2e=_0x197370;}return _0x262bc2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1ddf2e&&_0xa0bdff['rethrowUnexpectedError'](_0x1ddf2e,this),_0x40130b;}['markInsertion'](_0x11cd0d,_0x4a1d1f=null,_0x38ea58={}){if(_0x11cd0d['isCollapsed'])return null;const _0x31e839=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x38ea58['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b5b7d,meta:_0x4a26b3}of this['_findSuggestions'](_0x11cd0d,'insertion'))if(_0x4a26b3['isOwn']){if(!_0x4a26b3['isNextTo']){if(_0x4a26b3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x5b5b7d,_0x38ea58))continue;return _0x5b5b7d;}if(zt(_0x5b5b7d,_0x38ea58))return _0x5b5b7d;this['_breakSuggestionMarker'](_0x5b5b7d,_0x11cd0d['start'],_0x11cd0d['end']);break;}if(_0x4a1d1f==_0x5b5b7d['subType']&&zt(_0x5b5b7d,_0x38ea58)){const _0x5d6b42=_0x5b5b7d['getFirstRange']();return _0x5d6b42['start']['isEqual'](_0x11cd0d['end'])?this['_setSuggestionRange'](_0x5b5b7d,this['_model']['createRange'](_0x11cd0d['start'],_0x5d6b42['end'])):this['_setSuggestionRange'](_0x5b5b7d,this['_model']['createRange'](_0x5d6b42['start'],_0x11cd0d['end'])),_0x5b5b7d;}}const _0x799b55=_0x272311(),_0x2a8a25=_0x31e839['id'],_0x5f2754=_0x4a1d1f?'insertion:'+_0x4a1d1f:'insertion',_0x20b148=this['_setSuggestionData']({'id':_0x799b55,'type':_0x5f2754,'createdAt':new Date(),'authorId':_0x2a8a25,'attributes':_0x38ea58});return this['_addSuggestionMarker'](_0x5f2754,_0x799b55,_0x2a8a25,_0x11cd0d),_0x20b148;}['markMultiRangeInsertion'](_0x4937a7,_0x1b46df='multi',_0x1263c3={}){const _0x148e18=this['editor']['plugins']['get']('Users')['me'],_0x30bc16=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1b46df,'join');this['_trackingSessionId']&&(_0x1263c3['trackingSessionId']=this['_trackingSessionId']);for(const _0x1c1d52 of this['getSuggestions']())if(_0x1c1d52['author']['id']==_0x148e18['id']&&'insertion'==_0x1c1d52['type']&&_0x1c1d52['subType']==_0x1b46df&&zt(_0x1c1d52,_0x1263c3)&&(_0x30bc16(_0x1c1d52['getRanges'](),_0x4937a7)||_0x30bc16(_0x4937a7,_0x1c1d52['getRanges']()))){for(const _0x328b36 of _0x4937a7)_0x1c1d52['addRange'](_0x328b36);return _0x1c1d52;}for(const {suggestion:_0x704ea2,meta:_0x1953c3}of this['_findSuggestions'](_0x4937a7,'insertion')){if(!_0x1953c3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1953c3['containsRangeInObject'])continue;if(!zt(_0x704ea2,_0x1263c3))continue;let _0x215cd8=!0x0;for(const _0x38a3f1 of _0x704ea2['getRanges']())for(const _0x4f3332 of _0x4937a7)if(!_0x38a3f1['containsRange'](_0x4f3332)){_0x215cd8=!0x1;break;}if(_0x215cd8)return _0x704ea2;}const _0x29eb16=_0x272311(),_0x4145d9=_0x148e18['id'],_0x4e9f64='insertion:'+_0x1b46df,_0x38b876=this['_setSuggestionData']({'id':_0x29eb16,'type':_0x4e9f64,'createdAt':new Date(),'authorId':_0x4145d9,'attributes':_0x1263c3});for(const _0x542aa3 of _0x4937a7)this['_addSuggestionMarker'](_0x4e9f64,_0x29eb16,_0x4145d9,_0x542aa3,Suggestion['getMultiRangeId']());return _0x38b876;}['markInlineFormat'](_0x3c1083,_0x3515d3,_0x27905d=null,_0x49d131={}){if(_0x27905d=_0x27905d||Pt(_0x3515d3),_0x3c1083['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x49d131['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x51b117=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27905d,'accept');return this['forceDefaultExecution'](()=>_0x51b117([_0x3c1083],_0x3515d3,_0x49d131)),null;}const _0x2f7f7d=this['editor']['plugins']['get']('Users')['me'],_0x4b8e16=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xaf2538,meta:_0x53a3d6}of this['_findSuggestions'](_0x3c1083,'insertion'))_0x53a3d6['isOwn']&&!_0x53a3d6['isInsideObject']&&_0x4b8e16['push'](..._0xaf2538['getRanges']());}const _0x585907=function(_0x31d9de,_0x1bd669){const _0x4af343=[];for(const _0xfed18f of _0x1bd669){const _0xdb2f9e=_0x31d9de['getIntersection'](_0xfed18f);_0xdb2f9e&&_0x4af343['push'](_0xdb2f9e);}return _0x4af343;}(_0x3c1083,_0x4b8e16),_0x2147c8=function(_0x11056a,_0x4c285f){const _0x9909a4=[_0x11056a];for(const _0x42109c of _0x4c285f){let _0x4da394=0x0;for(;_0x4da394<_0x9909a4['length'];){const _0x132c2f=_0x9909a4[_0x4da394]['getDifference'](_0x42109c);_0x9909a4['splice'](_0x4da394,0x1,..._0x132c2f),_0x4da394+=_0x132c2f['length'];}}return _0x9909a4;}(_0x3c1083,_0x4b8e16);_0x585907['length']&&this['_model']['change'](()=>{for(const _0x234ac0 of _0x585907){const _0x1bb2f6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27905d,'accept');this['forceDefaultExecution'](()=>_0x1bb2f6([_0x234ac0],_0x3515d3,_0x49d131));}});for(const _0x3c470c of _0x2147c8){let _0x31d2a0=null,_0x568265=_0x3c470c['start'],_0x3dc328=_0x3c470c['end'];for(const {suggestion:_0x40fed3,meta:_0x31d0a0}of this['_findSuggestions'](_0x3c470c,'formatInline')){if(!_0x31d0a0['isOwn'])continue;if(_0x40fed3['subType']!=_0x27905d)continue;if(!zt(_0x40fed3,_0x49d131))continue;const _0x19675f=_0x40fed3['getFirstRange']();if(_0x19675f['containsRange'](_0x3c470c,!0x0))return null;_0x568265=_0x568265['isBefore'](_0x19675f['start'])?_0x568265:_0x19675f['start'],_0x3dc328=_0x3dc328['isAfter'](_0x19675f['end'])?_0x3dc328:_0x19675f['end'],_0x31d2a0?_0x19675f['start']['isBefore'](_0x31d2a0['getFirstRange']()['start'])?(_0x31d2a0['removeMarkers'](),_0x31d2a0=_0x40fed3):_0x40fed3['removeMarkers']():_0x31d2a0=_0x40fed3;}const _0x1ccf48=this['_model']['createRange'](_0x568265,_0x3dc328);if(_0x31d2a0)this['_setSuggestionRange'](_0x31d2a0,_0x1ccf48);else{const _0x16d751=_0x272311(),_0x14ee18=_0x2f7f7d['id'];this['_setSuggestionData']({'id':_0x16d751,'type':'formatInline:'+_0x27905d,'data':_0x3515d3,'createdAt':new Date(),'authorId':_0x14ee18,'attributes':_0x49d131}),this['_addSuggestionMarker']('formatInline:'+_0x27905d,_0x16d751,_0x14ee18,_0x1ccf48);}}return null;}['markBlockFormat'](_0x2048b2,_0x2a2de0,_0x4d5ee1=[],_0x1fb25f=null,_0xca80fe={}){_0x2a2de0['formatGroupId']||(_0x2a2de0['formatGroupId']=_0x2a2de0['commandName']),_0x2a2de0['multipleBlocks']=_0x2048b2['is']('range'),_0x1fb25f=_0x1fb25f||Pt(_0x2a2de0);const _0x3464cf=_0x4d5ee1['map'](_0x31c5dd=>Vt(_0x31c5dd,this['_model'])),_0x6626a2=_0x2048b2['is']('range')?_0x2048b2:Vt(_0x2048b2,this['_model']);if(this['_trackingSessionId']&&(_0xca80fe['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c3724=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fb25f,'accept');return this['forceDefaultExecution'](()=>_0x1c3724([_0x6626a2],_0x2a2de0,_0xca80fe)),null;}_0x3464cf['push'](_0x6626a2);let _0x14af8a=!0x0;for(const _0x5c4c38 of _0x3464cf)if(!this['_rangeIsInLocalUserInsertion'](_0x5c4c38)){_0x14af8a=!0x1;break;}if(_0x14af8a&&'always'!==this['_trackFormatChanges']){const _0x5d44d5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fb25f,'accept');return this['forceDefaultExecution'](()=>_0x5d44d5([_0x6626a2],_0x2a2de0,_0xca80fe)),null;}let _0x4aaa71=null,_0x4638bb=_0x6626a2['start'],_0x254ef9=_0x6626a2['end'];for(const {suggestion:_0x11566b,meta:_0x316dff}of this['_findSuggestions'](_0x6626a2,'formatBlock')){if(!_0x316dff['isOwn'])continue;if(_0x316dff['isNextTo']||_0x316dff['containsRangeInObject']||_0x316dff['isInsideObject'])continue;if(_0x11566b['data']['formatGroupId']!=_0x2a2de0['formatGroupId'])continue;if(!zt(_0x11566b,_0xca80fe))continue;const _0x18032f=_0x11566b['getFirstRange']();if(_0x11566b['subType']==_0x1fb25f){if(_0x18032f['containsRange'](_0x6626a2,!0x0))return null;_0x4638bb=_0x4638bb['isBefore'](_0x18032f['start'])?_0x4638bb:_0x18032f['start'],_0x254ef9=_0x254ef9['isAfter'](_0x18032f['end'])?_0x254ef9:_0x18032f['end'],_0x4aaa71?_0x18032f['start']['isBefore'](_0x4aaa71['getFirstRange']()['start'])?(_0x4aaa71['removeMarkers'](),_0x4aaa71=_0x11566b):_0x11566b['removeMarkers']():_0x4aaa71=_0x11566b;}else{const _0x8811f1=_0x6626a2['getIntersection'](_0x18032f);this['_cutOutSuggestionMarker'](_0x11566b,_0x8811f1);}}const _0x4d9e74=this['editor']['plugins']['get']('Users')['me'],_0x46fa07=_0x272311(),_0x1dbdd7=_0x4d9e74['id'];if(_0x4aaa71)return this['_setSuggestionRange'](_0x4aaa71,this['_model']['createRange'](_0x4638bb,_0x254ef9)),_0x4aaa71;{const _0x27d69e=this['_setSuggestionData']({'id':_0x46fa07,'type':'formatBlock:'+_0x1fb25f,'data':_0x2a2de0,'createdAt':new Date(),'authorId':_0x1dbdd7,'attributes':_0xca80fe});return this['_addSuggestionMarker']('formatBlock:'+_0x1fb25f,_0x46fa07,_0x1dbdd7,this['_model']['createRange'](_0x4638bb,_0x254ef9)),_0x27d69e;}}['markMultiRangeBlockFormat'](_0x26b6fa,_0x3a7dab,_0x59fa10=[],_0x126cd4=null,_0x46fb67={}){_0x3a7dab['formatGroupId']||(_0x3a7dab['formatGroupId']=_0x3a7dab['commandName']);const _0x83ce23=_0x26b6fa[0x0];_0x3a7dab['multipleBlocks']=_0x83ce23['is']('range'),_0x126cd4=_0x126cd4||Pt(_0x3a7dab);const _0x191f2e=_0x59fa10['map'](_0x39eb71=>Vt(_0x39eb71,this['_model'])),_0x2586c0=_0x83ce23['is']('range')?_0x26b6fa:_0x26b6fa['map'](_0x195435=>Vt(_0x195435,this['_model']));if(this['_trackingSessionId']&&(_0x46fb67['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x504ce3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x126cd4,'accept');return this['forceDefaultExecution'](()=>_0x504ce3(_0x2586c0,_0x3a7dab,_0x46fb67)),null;}_0x191f2e['push'](..._0x2586c0);let _0x397911=!0x0;for(const _0x8d4348 of _0x191f2e)if(!this['_rangeIsInLocalUserInsertion'](_0x8d4348)){_0x397911=!0x1;break;}if(_0x397911&&'always'!==this['_trackFormatChanges']){const _0x453852=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x126cd4,'accept');return this['forceDefaultExecution'](()=>_0x453852(_0x2586c0,_0x3a7dab,_0x46fb67)),null;}const _0x2e6ea1=this['editor']['plugins']['get']('Users')['me'];for(const _0x5bf1fb of this['getSuggestions']()){const _0x377976=_0x5bf1fb['data'];if(_0x5bf1fb['author']['id']!=_0x2e6ea1['id'])continue;if('formatBlock'!=_0x5bf1fb['type']||_0x377976['formatGroupId']!=_0x3a7dab['formatGroupId'])continue;if(!zt(_0x5bf1fb,_0x46fb67))continue;const _0x47e8e4=_0x5bf1fb['subType']==_0x126cd4;for(let _0xc641a5=0x0;_0xc641a5<_0x2586c0['length'];_0xc641a5++){const _0x3b2c9b=_0x2586c0[_0xc641a5];for(const _0xd2a5a3 of _0x5bf1fb['getMarkers']()){const _0x1710ac=_0xd2a5a3['getRange']();if(_0x3b2c9b['isEqual'](_0x1710ac)){_0x47e8e4?(_0x2586c0['splice'](_0xc641a5,0x1),_0xc641a5--):_0x5bf1fb['removeMarker'](_0xd2a5a3['name']);break;}}}}if(0x0==_0x2586c0['length'])return null;const _0x883252=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x126cd4,'join');for(const _0xf79c36 of this['getSuggestions']()){const _0x36fc35=_0xf79c36['data'];if(_0xf79c36['author']['id']==_0x2e6ea1['id']&&('formatBlock'==_0xf79c36['type']&&_0x36fc35['formatGroupId']==_0x3a7dab['formatGroupId']&&_0xf79c36['subType']==_0x126cd4&&zt(_0xf79c36,_0x46fb67)&&(_0x883252(_0xf79c36['getRanges'](),_0x2586c0)||_0x883252(_0x2586c0,_0xf79c36['getRanges']())))){for(const _0x2126d0 of _0x2586c0)_0xf79c36['addRange'](_0x2126d0);return _0xf79c36;}}const _0x293221=_0x272311(),_0x4f4b09=_0x2e6ea1['id'],_0x3284aa='formatBlock:'+_0x126cd4,_0x1afd00=this['_setSuggestionData']({'id':_0x293221,'type':_0x3284aa,'data':_0x3a7dab,'createdAt':new Date(),'authorId':_0x4f4b09,'attributes':_0x46fb67});for(const _0x381c0b of _0x2586c0)this['_addSuggestionMarker'](_0x3284aa,_0x293221,_0x4f4b09,_0x381c0b,Suggestion['getMultiRangeId']());return _0x1afd00;}['markDeletion'](_0x4b27bf,_0xbff01c=null,_0x3d7e07={}){if(_0x4b27bf['isCollapsed'])return null;const _0x2052f1=this['editor']['plugins']['get']('Users')['me'],_0x3fcc6c=new _0x53b34c(_0x4b27bf['start'],_0x4b27bf['end']);this['_trackingSessionId']&&(_0x3d7e07['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x384807,meta:_0x493b84}of this['_findSuggestions'](_0x3fcc6c,'insertion'))if(_0x493b84['isOwn']&&!_0x493b84['isNextTo']){if(_0x384807['isMultiRange']){const _0x227206=_0x384807['getRanges']()['filter'](_0x27cecb=>'$graveyard'!=_0x27cecb['root']['rootName']);_0x227206['every'](_0x293089=>_0x3fcc6c['containsRange'](_0x293089,!0x0))&&_0x384807['discard']();if(_0x227206['some'](_0x4b4a6e=>_0x4b4a6e['containsRange'](_0x3fcc6c,!0x0))){const _0x3e68dc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbff01c,'accept');return this['forceDefaultExecution'](()=>_0x3e68dc([_0x3fcc6c],null,_0x3d7e07)),null;}}else{const _0x225839=_0x3fcc6c['getIntersection'](_0x384807['getFirstRange']());null!==_0x225839&&_0x384807['_onDiscard']([_0x225839],null,_0x3d7e07);}}if(_0x3fcc6c['detach'](),_0x3fcc6c['isCollapsed']||'$graveyard'==_0x3fcc6c['root']['rootName'])return null;let _0x286c30=null,_0x501167=_0x3fcc6c['start'],_0x3c824b=_0x3fcc6c['end'];const _0x1e629b=this['_findSuggestions'](_0x3fcc6c,'deletion');for(const {suggestion:_0xc644e3,meta:_0x978c6b}of _0x1e629b){const _0xabe2e3=this['_model']['createRange'](_0x501167,_0x3c824b);if(_0x978c6b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x978c6b['containsRangeInObject']&&!_0x978c6b['isInsideObject'])){if(_0xc644e3['isMultiRange']){if(!zt(_0xc644e3,_0x3d7e07))continue;let _0x46dbc9=!0x0;for(const _0xe35769 of _0xc644e3['getRanges']()){if(_0xe35769['containsRange'](_0xabe2e3,!0x0))return _0xc644e3;_0xabe2e3['containsRange'](_0xe35769)||(_0x46dbc9=!0x1);}_0x46dbc9&&_0xc644e3['discard']();}else{const _0x54fa01=_0xc644e3['getFirstRange']();if(_0x54fa01['containsRange'](_0xabe2e3,!0x0))return _0xc644e3;if(!zt(_0xc644e3,_0x3d7e07)){_0xabe2e3['containsRange'](_0x54fa01)?_0xc644e3['removeMarkers']():_0x54fa01['containsPosition'](_0x501167)?_0x501167=_0x54fa01['end']:_0x54fa01['containsPosition'](_0x3c824b)&&(_0x3c824b=_0x54fa01['start']);continue;}_0x501167=_0x501167['isBefore'](_0x54fa01['start'])?_0x501167:_0x54fa01['start'],_0x3c824b=_0x3c824b['isAfter'](_0x54fa01['end'])?_0x3c824b:_0x54fa01['end'],_0x3d7e07=Object['assign']({},_0xc644e3['attributes']),_0x286c30?_0x54fa01['start']['isBefore'](_0x286c30['getFirstRange']()['start'])?(_0x286c30['removeMarkers'](),_0x286c30=_0xc644e3):_0xc644e3['removeMarkers']():_0x286c30=_0xc644e3;}}}if(_0x286c30)return this['_setSuggestionRange'](_0x286c30,this['_model']['createRange'](_0x501167,_0x3c824b)),_0x286c30;{const _0x523a16=_0x272311(),_0x4d4a40=this['_model']['createRange'](_0x501167,_0x3c824b),_0x2a053e=_0x2052f1['id'],_0x101ba6=_0xbff01c?'deletion:'+_0xbff01c:'deletion',_0x411ac9=this['_setSuggestionData']({'id':_0x523a16,'type':_0x101ba6,'createdAt':new Date(),'authorId':_0x2a053e,'attributes':_0x3d7e07});return this['_addSuggestionMarker'](_0x101ba6,_0x523a16,_0x2a053e,_0x4d4a40),_0x411ac9;}}['markMultiRangeDeletion'](_0x39272c,_0x52af26='multi',_0x3537cb={}){const _0x467fc1=this['editor']['plugins']['get']('Users')['me'],_0x57a6c1=_0x39272c['map'](_0x2d77aa=>new _0x53b34c(_0x2d77aa['start'],_0x2d77aa['end'])),_0x37e247=new Set();this['_trackingSessionId']&&(_0x3537cb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x24195b,meta:_0x2d3759}of this['_findSuggestions'](_0x57a6c1,'insertion'))_0x2d3759['isOwn']&&!_0x2d3759['isNextTo']&&_0x37e247['add'](_0x24195b);for(const _0x4df38e of _0x37e247)if(_0x4df38e['isMultiRange']){const _0x363faf=_0x4df38e['getRanges']();(!_0x4df38e['attributes']||!_0x4df38e['attributes']['skipNestingCheck'])&&(_0x363faf['every'](_0x24f82e=>_0x57a6c1['some'](_0x2be695=>_0x2be695['containsRange'](_0x24f82e,!0x0)))&&_0x4df38e['discard']());if(_0x57a6c1['every'](_0x4f3d8c=>_0x363faf['some'](_0x1804e2=>_0x1804e2['containsRange'](_0x4f3d8c,!0x0)))){const _0x331555=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52af26,'accept');return this['forceDefaultExecution'](()=>_0x331555(_0x39272c,null,_0x3537cb)),null;}}else{const _0x49b844=_0x4df38e['getFirstRange']();_0x57a6c1['some'](_0x55ca29=>_0x55ca29['containsRange'](_0x49b844,!0x0))&&_0x4df38e['discard']();if(_0x57a6c1['every'](_0x444f95=>_0x49b844['containsRange'](_0x444f95,!0x0))){const _0x16a76c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52af26,'accept');return this['forceDefaultExecution'](()=>_0x16a76c(_0x57a6c1,null,_0x3537cb)),null;}}const _0x605692=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x52af26,'join');let _0x55fc13=null;for(const _0x32fb26 of this['getSuggestions']())if(_0x32fb26['author']['id']==_0x467fc1['id']&&_0x32fb26['isInContent']&&'deletion'==_0x32fb26['type']&&_0x32fb26['subType']==_0x52af26&&zt(_0x32fb26,_0x3537cb)&&(_0x605692(_0x32fb26['getRanges'](),_0x57a6c1)||_0x605692(_0x57a6c1,_0x32fb26['getRanges']()))){if(_0x55fc13){if(_0x32fb26['commentThread']&&_0x32fb26['commentThread']['length'])continue;for(const _0x36ab7d of _0x32fb26['getRanges']())_0x55fc13['isIntersectingWithRange'](_0x36ab7d)||_0x55fc13['addRange'](_0x36ab7d);_0x32fb26['removeMarkers']();}else{_0x55fc13=_0x32fb26;for(const _0xb0ed5 of _0x57a6c1)_0x32fb26['isIntersectingWithRange'](_0xb0ed5)||_0x32fb26['addRange'](_0xb0ed5);}}if(_0x55fc13)return _0x55fc13;_0x37e247['clear']();for(const {suggestion:_0x4ab2fb,meta:_0x4c4243}of this['_findSuggestions'](_0x57a6c1,'deletion'))_0x4c4243['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c4243['containsRangeInObject']&&!_0x4c4243['isInsideObject'])&&zt(_0x4ab2fb,_0x3537cb)&&_0x37e247['add'](_0x4ab2fb);for(const _0x260c69 of _0x37e247){const _0x3b5c04=_0x260c69['getRanges']();if(!_0x3537cb||!_0x3537cb['skipNestingCheck']){if(_0x57a6c1['every'](_0x5d8783=>_0x3b5c04['some'](_0x340972=>_0x340972['containsRange'](_0x5d8783,!0x0))))return _0x260c69;}(!_0x260c69['attributes']||!_0x260c69['attributes']['skipNestingCheck'])&&(_0x3b5c04['every'](_0x39be6b=>_0x57a6c1['some'](_0x7dd353=>_0x7dd353['containsRange'](_0x39be6b,!0x0)))&&_0x260c69['discard']());}const _0x2c070b=_0x272311(),_0x6bf83e=_0x467fc1['id'],_0x38f735='deletion:'+_0x52af26,_0x10153f=this['_setSuggestionData']({'id':_0x2c070b,'type':_0x38f735,'createdAt':new Date(),'authorId':_0x6bf83e,'attributes':_0x3537cb});for(const _0x43d05e of _0x57a6c1)_0x43d05e['detach'](),_0x43d05e['isCollapsed']||'$graveyard'==_0x43d05e['root']['rootName']||this['_addSuggestionMarker'](_0x38f735,_0x2c070b,_0x6bf83e,_0x43d05e,Suggestion['getMultiRangeId']());return _0x10153f;}['markAttributeChange'](_0x61c494,_0x1387ac,_0xf3b92a,_0x2d8992,_0x5de0e7){if(_0x61c494['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24b166=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c6230=Array['from'](this['_suggestions']['values']())['filter'](_0x5b2593=>'attribute'==_0x5b2593['type']&&_0x5b2593['data']['key']==_0x1387ac&&_0x5b2593['isIntersectingWithRange'](_0x61c494));if(this['_trackingSessionId']&&(_0x5de0e7['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x17e089=this['_findSuggestions'](_0x61c494,'insertion')['filter'](({meta:_0x30c4c9})=>_0x30c4c9['isOwn']&&!_0x30c4c9['isInsideObject']&&!_0x30c4c9['isNextTo'])['map'](({suggestion:_0x23f5d0})=>_0x23f5d0);_0x5c6230['unshift'](..._0x17e089);}const _0x2802a3=new Map([[_0x61c494,_0xf3b92a]]);for(const _0x3f0b81 of _0x5c6230){const _0x514550='attribute'==_0x3f0b81['type']?_0x3f0b81['data']['oldValue']:void 0x0,_0x4e5ea5=_0x3f0b81['getFirstRange'](),_0x41429d=Array['from'](_0x2802a3['keys']())['find'](_0x474158=>_0x474158['isIntersecting'](_0x4e5ea5));if(!_0x41429d)continue;const _0x14d29f=_0x41429d['getDifference'](_0x4e5ea5);this['_suggestionsConversion']['isBlockAttribute'](_0x1387ac)&&'insertion'==_0x3f0b81['type']&&0x0!=_0x14d29f['length']||(_0x2802a3['delete'](_0x41429d),_0x14d29f['forEach'](_0x48b98f=>{_0x2802a3['set'](_0x48b98f,_0xf3b92a);}),'insertion'!=_0x3f0b81['type']&&_0x514550!=_0x2d8992&&_0x2802a3['set'](_0x41429d['getIntersection'](_0x4e5ea5),_0x514550));}const _0x31e695=[];for(const [_0x19a0a1,_0x4c4f0b]of _0x2802a3){const _0x55db46=_0x272311(),_0x308352={'key':_0x1387ac,'oldValue':_0x4c4f0b,'newValue':_0x2d8992};_0x1387ac['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':_0x1387ac});const _0x5c25d9=('attribute:'+(_0x1387ac+'|'+Pt({'newValue':_0x2d8992})))['substring'](0x0,0x3c),_0x2ef1eb=this['_setSuggestionData']({'id':_0x55db46,'type':_0x5c25d9,'data':_0x308352,'createdAt':new Date(),'authorId':_0x24b166,'attributes':_0x5de0e7});_0x31e695['push'](_0x2ef1eb),this['_addSuggestionMarker'](_0x5c25d9,_0x55db46,_0x24b166,_0x19a0a1);}return _0x31e695;}['enableDefaultAttributesIntegration'](_0x2fde9d){this['enableCommand'](_0x2fde9d,(_0xfa9025,..._0x278224)=>{this['recordAttributeChanges'](()=>{_0xfa9025(..._0x278224);});});}['startTrackingSession'](_0x37098d){return this['_trackingSessionId']=void 0x0!==_0x37098d?_0x37098d:_0x272311(),this['_trackingSessionId'];}['_getAttributeKey'](_0x32ca5d){return'attribute'==_0x32ca5d['type']?Xt(_0x32ca5d['subType']):null;}['_applyOperationsAsSuggestions'](_0x54a0b5){if(0x0==_0x54a0b5['length'])return;const _0x4be419=this['editor'],_0x1636f8=_0x4be419['plugins']['get'](_0x228d70),_0x1c47fa=[];_0x4be419['model']['change'](_0x19b71d=>{for(let _0x46bdca=0x0;_0x46bdca<_0x54a0b5['length'];_0x46bdca++){const _0x289fac=_0x54a0b5[_0x46bdca];if(_0x289fac['baseVersion']=_0x4be419['model']['document']['version'],_0x289fac['isDocumentOperation']=!0x0,_0x1636f8['isMarkedRemoveOperation'](_0x289fac)){const _0x27d1ab=_0x1b2bbe(_0x289fac['newRange'],_0x4be419['model']);_0x1c47fa['unshift'](_0x53b34c['fromRange'](_0x27d1ab));}else switch(_0x289fac['type']){case'rename':{const _0x4f08af=_0x289fac['oldName'],_0x5d5c22=_0x289fac['newName'];if(_0x4f08af==_0x5d5c22)break;_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);const _0x123cce='$elementName',_0x2091b4=_0x289fac['position'],_0x5572db=_0x4be419['model']['createRange'](_0x2091b4,_0x4be419['model']['createPositionAt'](_0x2091b4['nodeAfter'],'end'));this['markAttributeChange'](_0x5572db,_0x123cce,_0x4f08af,_0x5d5c22,{'groupId':_0x272311()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1a710c=_0x289fac['oldValue'],_0x4e67cb=_0x289fac['newValue'];if(_0x1a710c==_0x4e67cb)break;_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);const _0x2159a5=_0x289fac['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2159a5))break;const _0x5c3c25=_0x1b2bbe(_0x289fac['range'],_0x4be419['model']);this['markAttributeChange'](_0x5c3c25,_0x2159a5,_0x1a710c,_0x4e67cb,{'groupId':_0x272311()});break;}case'insert':{_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);if(_0x54a0b5[_0x46bdca+0x1]&&'move'==_0x54a0b5[_0x46bdca+0x1]['type'])break;const _0x5562ab=_0x289fac['position'],_0x2f3f0f=_0x289fac['howMany'],_0x51513c=_0x1b2bbe(_0x4be419['model']['createRange'](_0x5562ab,_0x5562ab['getShiftedBy'](_0x2f3f0f)),_0x4be419['model']);this['markInsertion'](_0x51513c);break;}case'split':{_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);const _0x1197ad=_0x289fac['splitPosition'],_0x5c151e=_0x289fac['moveTargetPosition'];this['markInsertion'](_0x4be419['model']['createRange'](_0x1197ad,_0x5c151e));break;}case'move':case'remove':_0x19b71d['batch']['addOperation'](_0x289fac),_0x4be419['model']['applyOperation'](_0x289fac);}}for(const _0x3c4e6a of _0x1c47fa)_0x3c4e6a['detach'](),this['markDeletion'](_0x3c4e6a);});}['_setSuggestionRange'](_0x4927b5,_0x36759c){const _0x10bc68=_0x4927b5['getFirstMarker']();this['_model']['change'](_0x178b3c=>{_0x178b3c['updateMarker'](_0x10bc68,{'range':_0x36759c});});}['_addThreadToSuggestion'](_0x50d6a2){const _0x2a15ed=_0x50d6a2['id'],_0x291ed8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a15ed)||this['_commentsRepository']['addCommentThread']({'channelId':_0x291ed8,'threadId':_0x2a15ed,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c638b=this['_commentsRepository']['getCommentThread'](_0x2a15ed);_0x4c638b['unbind']('isRemovable'),_0x4c638b['isRemovable']=!0x1,_0x50d6a2['commentThread']=_0x4c638b;}['_checkSuggestionCorrectness'](_0x3d42c5,_0x2a0db7,_0x43fb33,_0xb8b950){if(_0x3d42c5['type']!=_0x2a0db7||_0x3d42c5['subType']!=_0x43fb33||_0x3d42c5['creator']['id']!=_0xb8b950)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa0bdff('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2ccaf4,_0x5504ff){const _0x2782c8=_0x2ccaf4['getFirstRange']();if(_0x5504ff['isEqual'](_0x2782c8))_0x2ccaf4['removeMarkers']();else{if(_0x2782c8['containsRange'](_0x5504ff)){const _0x2daa8c=this['_model']['createPositionAt'](_0x5504ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2ccaf4,this['_model']['createRange'](_0x2782c8['start'],_0x2daa8c));const _0x5559f8=_0x272311(),_0x547b29=_0x2ccaf4['creator']['id'],_0x98c6b=_0x2ccaf4['type']+':'+_0x2ccaf4['subType'];this['_setSuggestionData']({'id':_0x5559f8,'type':_0x98c6b,'createdAt':new Date(),'authorId':_0x547b29,'data':_0x2ccaf4['data'],'attributes':_0x2ccaf4['attributes']});const _0x224094=this['_model']['createPositionAt'](_0x5504ff['end']['parent'],'after'),_0x21ae18=this['_model']['createRange'](_0x224094,_0x2782c8['end']);this['_addSuggestionMarker'](_0x98c6b,_0x5559f8,_0x547b29,_0x21ae18);}else{if(_0x2782c8['containsPosition'](_0x5504ff['start'])){const _0x3a8441=this['_model']['createPositionAt'](_0x5504ff['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2ccaf4,this['_model']['createRange'](_0x2782c8['start'],_0x3a8441));}else{const _0x33e3f9=this['_model']['createPositionAt'](_0x5504ff['end']['parent'],'after');this['_setSuggestionRange'](_0x2ccaf4,this['_model']['createRange'](_0x33e3f9,_0x2782c8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x363e23){for(const {suggestion:_0x123906,meta:_0xa8b9e7}of this['_findSuggestions'](_0x363e23,'insertion')){if(!_0xa8b9e7['isOwn'])continue;const _0xf2a00f=_0x123906['getRanges']();for(const _0x411847 of _0xf2a00f)if(!_0x363e23['getDifference'](_0x411847)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10a676){return this['editor']['plugins']['get']('Users')['getUser'](_0x10a676);}['_getExternalAuthor'](_0x1c7fdf){const _0x28c439=this['editor']['plugins']['get']('Users'),_0x1a1fad=_0x3caef6('external:'+_0x1c7fdf),_0x123213=_0x28c439['getUser'](_0x1a1fad);return _0x123213||_0x28c439['addUser']({'id':_0x1a1fad,'name':_0x1c7fdf});}['_createSuggestion'](_0x48c127,_0x1cc1d7,_0x1dec2e,_0xeca1b9,_0x4a9ab1,_0x2b27cf){const _0x3ca924=this['_getAuthorFromId'](_0xeca1b9);if(!_0x3ca924)throw new _0xa0bdff('track-changes-user-not-found',this,{'authorId':_0xeca1b9,'suggestionId':_0x1dec2e});const _0x7cec12=this['_suggestionFactory']['buildSuggestion'](_0x48c127,_0x1cc1d7,_0x1dec2e,_0x3ca924,_0x4a9ab1,_0x3d7c41=>{this['_updateSuggestionData'](_0x1dec2e,{'attributes':_0x3d7c41});const _0x1bf0f6=this['getSuggestion'](_0x1dec2e);this['_joinWithAdjacentSuggestions'](new Set([_0x1bf0f6])),this['_refreshSuggestionsChain'](new Set([_0x1bf0f6]));},_0x2b27cf);return this['listenTo'](_0x7cec12,'accept',()=>{this['_updateSuggestionData'](_0x1dec2e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x7cec12,'discard',()=>{this['_updateSuggestionData'](_0x1dec2e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1dec2e,_0x7cec12),this['_suggestionState']['set'](_0x7cec12,'notReady'),_0x7cec12;}['_breakSuggestionMarker'](_0x36a954,_0x19740f,_0x3a7ab8){const _0x5dfd5c=_0x36a954['getFirstRange'](),_0x17e781=_0x5dfd5c['start'],_0x2f67c6=_0x5dfd5c['end'];this['_setSuggestionRange'](_0x36a954,this['_model']['createRange'](_0x17e781,_0x19740f));const _0x23f099=_0x272311(),_0x22f619=_0x36a954['creator']['id'],_0x43586e=_0x36a954['type']+(_0x36a954['subType']?':'+_0x36a954['subType']:'');this['_setSuggestionData']({'id':_0x23f099,'type':_0x43586e,'createdAt':new Date(),'authorId':_0x22f619,'originalSuggestionId':_0x36a954['_originalSuggestionId']||_0x36a954['id'],'attributes':_0x36a954['attributes'],'data':_0x36a954['data']});const _0x96347b=this['_getAttributeKey'](_0x36a954);('formatBlock'==_0x36a954['type']||_0x96347b&&this['_suggestionsConversion']['isBlockAttribute'](_0x96347b))&&(_0x3a7ab8=this['_model']['createPositionBefore'](_0x3a7ab8['parent'])),this['_addSuggestionMarker'](_0x43586e,_0x23f099,_0x22f619,this['_model']['createRange'](_0x3a7ab8,_0x2f67c6));}['_findSuggestions'](_0x47b6be,_0x934bc7=null){const _0x4d729e=[],_0xde7322=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x47b6be)||(_0x47b6be=[_0x47b6be]);for(const _0x1274f8 of this['getSuggestions']()){if(!_0x1274f8['isInContent'])continue;if(_0x934bc7&&_0x1274f8['type']!=_0x934bc7)continue;let _0xfdb56f=!0x1;for(const _0x2f3ab1 of _0x1274f8['getRanges']()){for(const _0x386e50 of _0x47b6be){const _0x2d5637=_0x386e50['start']['isEqual'](_0x2f3ab1['end'])||_0x386e50['end']['isEqual'](_0x2f3ab1['start']);if(_0x2d5637||_0x386e50['getIntersection'](_0x2f3ab1)){const _0x242481=_0x386e50['containsRange'](_0x2f3ab1)&&Dt(this['_model']['schema'],_0x2f3ab1['start'],_0x386e50),_0x1f693f=_0x2f3ab1['containsRange'](_0x386e50)&&Dt(this['_model']['schema'],_0x386e50['start'],_0x2f3ab1);_0x4d729e['push']({'suggestion':_0x1274f8,'meta':{'isOwn':_0xde7322==_0x1274f8['author'],'isNextTo':_0x2d5637,'isInsideObject':_0x242481,'containsRangeInObject':_0x1f693f}}),_0xfdb56f=!0x0;break;}}if(_0xfdb56f)break;}}return _0x4d729e;}['_addSuggestionMarker'](_0x4e1c39,_0x4e823b,_0x152ddb,_0x423b1a,_0x54fd25){this['_model']['change'](_0x235b45=>{let _0x17e74a='suggestion:'+_0x4e1c39+':'+_0x4e823b+':'+_0x152ddb;_0x54fd25&&(_0x17e74a=_0x17e74a+':'+_0x54fd25),_0x235b45['addMarker'](_0x17e74a,{'range':_0x423b1a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1bbd21){const _0x275dee=_0x1bbd21['previous'],_0x1eeaae=_0x1bbd21['next'];_0x1bbd21['previous']=null,_0x1bbd21['next']=null,null!=_0x275dee&&_0x275dee['next']==_0x1bbd21&&(_0x275dee['next']=_0x1eeaae),null!=_0x1eeaae&&_0x1eeaae['previous']==_0x1bbd21&&(_0x1eeaae['previous']=_0x275dee),'ready'==this['_suggestionState']['get'](_0x1bbd21)&&(this['_suggestionState']['set'](_0x1bbd21,'removed'),this['fire']('suggestionUnloaded',_0x1bbd21,_0x275dee,_0x1eeaae));}['_setSuggestionData'](_0x306dc5){const _0xf3c795=_0x306dc5['id'],_0x4137c3=this['addSuggestionData'](_0x306dc5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x325508=this['editor']['plugins']['get']('PendingActions'),_0x2a34b2=_0x4137c3['hasComments'],_0x4cc164=_0x4137c3['subType']?_0x4137c3['type']+':'+_0x4137c3['subType']:_0x4137c3['type'],_0x42a048=this['editor']['locale'],_0x40d938=_0x325508['add'](Tt(_0x42a048,'PENDING_ACTION_SUGGESTION')),_0x51a4fd={'id':_0xf3c795,'type':_0x4cc164,'hasComments':_0x2a34b2,'data':_0x306dc5['data']||null,'originalSuggestionId':_0x306dc5['originalSuggestionId']||null,'attributes':_0x4137c3['attributes']};this['_adapter']['addSuggestion'](_0x51a4fd)['then'](_0x394a8d=>{_0x4137c3['_saved']=!0x0,_0x325508['remove'](_0x40d938),_0x394a8d&&_0x394a8d['createdAt']&&(this['_suggestions']['get'](_0xf3c795)['createdAt']=_0x394a8d['createdAt']);})['catch'](_0x467776=>{throw _0x232ae8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4137c3['discard']();}),_0x4137c3['stopListening'](),this['_suggestions']['delete'](_0x4137c3['id']),this['_suggestionState']['delete'](_0x4137c3),_0x467776;});}return _0x4137c3;}['_updateSuggestionData'](_0x4d8cd4,_0x1c6177){const _0x2b38a5=this['editor']['plugins']['get']('PendingActions'),_0x5e424e=this['getSuggestion'](_0x4d8cd4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5e424e['_saved']){const _0x32ad45=_0x2b38a5['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4d8cd4,_0x1c6177)['then'](()=>{_0x2b38a5['remove'](_0x32ad45);});}else _0x5e424e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d8cd4,_0x1c6177);});}}['_getSuggestionData'](_0x464bc0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa0bdff('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x464bc0);}['_handleNewSuggestionMarker'](_0x39eb4c){const {id:_0x288610,type:_0x516c1e,subType:_0x25820e,authorId:_0xc61481}=_0x5cc320(_0x39eb4c),_0x2ac426=this['_suggestions']['get'](_0x288610)||this['_createSuggestion'](_0x516c1e,_0x25820e,_0x288610,_0xc61481,{});switch(this['_checkSuggestionCorrectness'](_0x2ac426,_0x516c1e,_0x25820e,_0xc61481),this['_suggestionState']['get'](_0x2ac426)){case'notReady':this['_getSuggestionData'](_0x288610)['then'](_0x1fd7d6=>{let _0x49b6ee=Promise['resolve']();_0x1fd7d6['hasComments']&&(_0x49b6ee=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x288610})),_0x49b6ee['then'](()=>{this['addSuggestionData'](_0x1fd7d6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2ac426,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x288610,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2ac426,'ready'),this['fire']('suggestionLoaded',_0x2ac426);break;case'ready':this['fire']('suggestionChanged',_0x2ac426);}return _0x2ac426['addMarkerName'](_0x39eb4c),_0x2ac426;}['_refreshSuggestionsChain'](_0x3ca380){const _0x5d8cf8=Array['from'](_0x3ca380),_0x6601db=_0x5d8cf8['filter'](_0x183919=>'attribute'==_0x183919['type']);this['_refreshAttributeSuggestionsChain'](_0x6601db);const _0x3b7178=_0x5d8cf8['filter'](_0x3c5144=>!_0x3c5144['isMultiRange']&&'attribute'!=_0x3c5144['type']),_0x305fb7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x16ab12=>!_0x16ab12['isMultiRange']&&'attribute'!=_0x16ab12['type']),_0x3e99c4=_0x305fb7['filter'](_0x4f9329=>!_0x3ca380['has'](_0x4f9329)),_0x274598=new Map(_0x305fb7['map'](_0x41c50c=>[_0x41c50c,this['_suggestionFactory']['getSuggestionCallback'](_0x41c50c['type'],_0x41c50c['subType'],'chain')])),_0x362e59=new Map(_0x305fb7['map'](_0x5e2043=>[_0x5e2043,_0x5e2043['getFirstRange']()])),_0x2c8f85=new Set(),_0x13d93b=new Set();for(let _0xfb8333=0x0;_0xfb8333<_0x3b7178['length'];_0xfb8333++)_0x374038(_0x3b7178[_0xfb8333],_0x3b7178,_0xfb8333+0x1);for(let _0x359866=0x0;_0x359866<_0x3b7178['length'];_0x359866++)_0x374038(_0x3b7178[_0x359866],_0x3e99c4,0x0);const _0x16c214=new Set();for(let _0x1f44e3=0x0;_0x1f44e3<_0x3b7178['length'];_0x1f44e3++){const _0xbc6a9d=_0x3b7178[_0x1f44e3];!_0x13d93b['has'](_0xbc6a9d)&&_0xbc6a9d['previous']&&(_0x16c214['add'](_0xbc6a9d['previous']),_0xbc6a9d['previous']['next']===_0xbc6a9d&&(_0xbc6a9d['previous']['next']=null),_0xbc6a9d['previous']=null),!_0x2c8f85['has'](_0xbc6a9d)&&_0xbc6a9d['next']&&(_0x16c214['add'](_0xbc6a9d['next']),_0xbc6a9d['next']['previous']===_0xbc6a9d&&(_0xbc6a9d['next']['previous']=null),_0xbc6a9d['next']=null);}function _0x374038(_0x36d110,_0x4dc3c9,_0x5201a4){for(let _0x4e327b=_0x5201a4;_0x4e327b<_0x4dc3c9['length'];_0x4e327b++){const _0x56301e=_0x1ee4b7(_0x36d110,_0x4dc3c9[_0x4e327b]);_0x56301e&&(_0x56301e[0x0]['next']=_0x56301e[0x1],_0x56301e[0x1]['previous']=_0x56301e[0x0],_0x2c8f85['add'](_0x56301e[0x0]),_0x13d93b['add'](_0x56301e[0x1]));}}function _0x1ee4b7(_0x22ce12,_0xce8d26){if(_0x22ce12['author']['id']!==_0xce8d26['author']['id'])return null;const _0x288b88=_0x274598['get'](_0x22ce12)(_0x22ce12,_0xce8d26,_0x362e59['get'](_0x22ce12),_0x362e59['get'](_0xce8d26));if(!_0x288b88)return null;return _0x274598['get'](_0xce8d26)(_0x22ce12,_0xce8d26,_0x362e59['get'](_0x22ce12),_0x362e59['get'](_0xce8d26))?_0x288b88[0x1]['commentThread']&&_0x288b88[0x1]['commentThread']['length']?null:_0x288b88:null;}_0x16c214['size']&&this['_refreshSuggestionsChain'](_0x16c214);}['_refreshAttributeSuggestionsChain'](_0x3d1097){if(0x0==_0x3d1097['length'])return;const _0x29aece=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x437f74=>'attribute'==_0x437f74['type']&&_0x437f74['_isDataLoaded']),_0x46e221=[],_0x48a72a=new Map();for(const _0x436254 of _0x29aece){const _0x324a46=_0x3caef6(_0x436254['attributes']);_0x48a72a['has'](_0x324a46)||(_0x48a72a['set'](_0x324a46,_0x46e221['length']),_0x46e221['push']([]));const _0x1e9585=_0x48a72a['get'](_0x324a46);_0x46e221[_0x1e9585]['push'](_0x436254);}!(function(){_0x46e221['sort']((_0xe018d7,_0x57cb64)=>{const _0x419d66=_0xe018d7[0x0]['createdAt'],_0x1592af=_0x57cb64[0x0]['createdAt'];return _0x419d66==_0x1592af?_0xe018d7[0x0]['attributes']['groupId']<_0x57cb64[0x0]['attributes']['groupId']?-0x1:0x1:_0x419d66<_0x1592af?-0x1:0x1;});for(const _0x3b63e4 of _0x46e221)_0x3b63e4['sort']((_0x12d486,_0x5dd37e)=>_0x12d486['id']<_0x5dd37e['id']?-0x1:0x1);}());for(let _0x4d391a=0x0;_0x4d391a<_0x46e221['length'];_0x4d391a++){if(0x0==_0x46e221[_0x4d391a]['length'])continue;const _0x4271a3=[];for(let _0x199db4=_0x4d391a+0x1;_0x199db4<_0x46e221['length'];_0x199db4++)0x0!=_0x46e221[_0x199db4]['length']&&_0x1e4d8c(_0x46e221[_0x4d391a],_0x46e221[_0x199db4])&&_0x4271a3['push'](_0x199db4);for(const _0x1dc09d of _0x4271a3)_0x46e221[_0x4d391a]=_0x46e221[_0x4d391a]['concat'](_0x46e221[_0x1dc09d]),_0x46e221[_0x1dc09d]=[];}for(const _0x4da3cf of _0x46e221)for(let _0xe2863f=0x0;_0xe2863f<_0x4da3cf['length'];_0xe2863f++){const _0x5ccf23=_0x4da3cf[_0xe2863f+0x1]||null;_0x4da3cf[_0xe2863f]['next']!==_0x5ccf23&&(_0x4da3cf[_0xe2863f]['next']=_0x5ccf23);}for(const _0x4531d8 of _0x46e221)for(let _0x21f772=0x0;_0x21f772<_0x4531d8['length'];_0x21f772++){const _0x67e598=_0x4531d8[_0x21f772-0x1]||null;_0x4531d8[_0x21f772]['previous']!==_0x67e598&&(_0x4531d8[_0x21f772]['previous']=_0x67e598);}function _0x1e4d8c(_0xafd5c0,_0x162410){if(_0xafd5c0[0x0]['attributes']['groupId']!==_0x162410[0x0]['attributes']['groupId']&&_0xafd5c0[0x0]['author']!==_0x162410[0x0]['author'])return!0x1;if(!function(_0x251baa,_0x2a5093){if(!_0x251baa['hasComments']&&!_0x2a5093['hasComments'])return!0x0;if(_0x251baa['hasComments']&&_0x2a5093['hasComments'])return!0x1;if(_0x251baa['hasComments']&&_0x2a5093['createdAt']<_0x251baa['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2a5093['hasComments']&&_0x251baa['createdAt']<_0x2a5093['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xafd5c0[0x0],_0x162410[0x0]))return!0x1;const _0x3f9455=ot(_0xafd5c0[0x0]['attributes'],['groupId','trackingSessionId']),_0x525acb=ot(_0x162410[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x3f9455,_0x525acb))return!0x1;if(_0xafd5c0[0x0]['attributes']['groupId']==_0x162410[0x0]['attributes']['groupId'])return!0x0;if(_0xafd5c0[0x0]['attributes']['trackingSessionId']!==_0x162410[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xafd5c0['every'](_0x38d57a=>_0x162410['some'](_0x315f8a=>_0x38d57a['getFirstRange']()['isEqual'](_0x315f8a['getFirstRange']())))&&_0x162410['every'](_0x130d23=>_0xafd5c0['some'](_0x41022d=>_0x130d23['getFirstRange']()['isEqual'](_0x41022d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x533b8b){const _0x2d8ec9=Array['from'](_0x533b8b),_0x30da58=this['getSuggestions']({'skipNotAttached':!0x0}),_0x14a3b4=_0x30da58['filter'](_0x555759=>!_0x533b8b['has'](_0x555759)),_0x51d180=new Map(_0x2d8ec9['map'](_0x12840d=>[_0x12840d,this['_suggestionFactory']['getSuggestionCallback'](_0x12840d['type'],_0x12840d['subType'],'join')])),_0x35ab4d=new Map(_0x30da58['map'](_0x23ee3c=>[_0x23ee3c,_0x23ee3c['getRanges']()]));for(let _0x1617b6=0x0;_0x1617b6<_0x2d8ec9['length'];_0x1617b6++){if(_0x2b47f8(this,_0x2d8ec9[_0x1617b6],_0x2d8ec9,_0x1617b6+0x1))return!0x0;}for(let _0xfe6af9=0x0;_0xfe6af9<_0x2d8ec9['length'];_0xfe6af9++){if(_0x2b47f8(this,_0x2d8ec9[_0xfe6af9],_0x14a3b4,0x0))return!0x0;}return!0x1;function _0x2b47f8(_0x4916f6,_0x572719,_0x23e224,_0x4bd765){for(let _0x48b499=_0x4bd765;_0x48b499<_0x23e224['length'];_0x48b499++){const _0x3c14ba=_0x23e224[_0x48b499];if(_0x3c14ba['type']!==_0x572719['type']||_0x3c14ba['author']['id']!==_0x572719['author']['id']||_0x3c14ba['subType']!==_0x572719['subType'])continue;if(!jt(_0x572719,_0x3c14ba))continue;if('attribute'==_0x572719['type']&&_0x572719['data']['oldValue']!=_0x3c14ba['data']['oldValue'])continue;if('attribute'==_0x572719['type']&&_0x4916f6['_suggestionsConversion']['isBlockAttribute'](_0x572719['data']['key']))continue;if('formatBlock'==_0x572719['type']){const _0xed83ec=_0x4916f6['editor']['model'],_0x2153f9=_0x572719['getContainedElement']();if(_0x2153f9&&(_0xed83ec['schema']['isObject'](_0x2153f9)||_0xed83ec['schema']['isLimit'](_0x2153f9)))continue;}const _0x2b0c71=_0x51d180['get'](_0x572719),_0x87782e=_0x35ab4d['get'](_0x572719),_0xd90706=_0x35ab4d['get'](_0x3c14ba),_0x3c8189=_0x572719['commentThread']&&_0x572719['commentThread']['length'],_0x2f0c4c=_0x3c14ba['commentThread']&&_0x3c14ba['commentThread']['length'];if(!_0x3c8189&&_0x2b0c71(_0xd90706,_0x87782e))return _0x4916f6['_joinSuggestions'](_0x3c14ba,_0x572719),_0x35ab4d['delete'](_0x572719),!0x0;if(!_0x2f0c4c&&_0x2b0c71(_0x87782e,_0xd90706))return _0x4916f6['_joinSuggestions'](_0x572719,_0x3c14ba),_0x35ab4d['delete'](_0x3c14ba),!0x0;}return!0x1;}}['_joinSuggestions'](_0x340151,_0x194bf4){if(_0x340151['isMultiRange']){for(const _0x431d00 of _0x194bf4['getRanges']())_0x340151['addRange'](_0x431d00);}else{const _0x4cb2fd=_0x194bf4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x340151,this['_model']['createRange'](_0x340151['getFirstRange']()['start'],_0x4cb2fd));}_0x194bf4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2af7aa,_0x29841a,_0x1f3ccf){const _0x4bf37a=_0x2af7aa['startsWith']('format')||_0x2af7aa['startsWith']('attribute')?'FORMATTING':_0x2af7aa['toUpperCase']();return Tt(this['editor']['locale'],_0x29841a+'_'+_0x4bf37a+'_SUGGESTION_ANNOUNCEMENT',_0x1f3ccf);}['_initAriaMarkerChangeAnnouncements'](){const _0x2b6cfd=this['editor'];if(!_0x2b6cfd['ui'])return;const {ariaLiveAnnouncer:_0x5a3aaf}=_0x2b6cfd['ui'];_0x3ac1bf(this['_model'],({left:_0x27b5be,entered:_0x46b515})=>{for(const _0x39d16c of _0x27b5be){const {group:_0x1ed5c1,type:_0x5aec8a}=_0x5cc320(_0x39d16c['name']);if('suggestion'===_0x1ed5c1){_0x5a3aaf['announce'](this['_getMarkerAnnouncementText'](_0x5aec8a,'LEAVE'));break;}}for(const _0x59e500 of _0x46b515){const {group:_0x24d131,type:_0x388620}=_0x5cc320(_0x59e500['name']);if('suggestion'===_0x24d131){_0x5a3aaf['announce'](this['_getMarkerAnnouncementText'](_0x388620,'ENTER',_0x86b319(_0x1a2fa4)));break;}}});}['_processAttributeChanges'](_0x272861){if(this['_recordAttributeSuggestions'])return!0x1;const _0x593e2c=this['editor'],_0x42aedf=_0x593e2c['model']['document']['differ']['getChanges']();if(0x0==_0x42aedf['length'])return!0x1;const _0x166a39=[],_0x4956f0=_0x42aedf['filter'](_0x2ab369=>'attribute'==_0x2ab369['type']),_0x17fd5d=_0x42aedf['filter'](_0xfe9ac4=>'insert'==_0xfe9ac4['type']&&'$text'!=_0xfe9ac4['name']),_0x15b198=_0x42aedf['filter'](_0x47bd32=>'remove'==_0x47bd32['type']&&'$text'!=_0x47bd32['name']);for(const _0x50afc5 of _0x4956f0)_0x166a39['push']({'key':_0x50afc5['attributeKey'],'newValue':_0x50afc5['attributeNewValue'],'oldValue':_0x50afc5['attributeOldValue'],'range':$t(_0x50afc5['range'],_0x593e2c['model'])});for(const _0x210901 of _0x17fd5d){const _0x4120dd=_0x15b198['find'](_0x2fab64=>_0x2fab64['position']['isEqual'](_0x210901['position']));_0x4120dd&&_0x166a39['push']({'key':Ft,'newValue':_0x210901['name'],'oldValue':_0x4120dd['name'],'range':_0x593e2c['model']['createRangeOn'](_0x210901['position']['nodeAfter'])});}return 0x0!=_0x166a39['length']&&this['_reduceExistingSuggestions'](_0x272861,_0x166a39);}['_processAttributeSuggestions'](_0x261fba){let _0x4775b8=!0x1;const _0x36c865=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x264bc5=>_0x264bc5['data']['newRange']&&_0x264bc5['name']['startsWith']('suggestion:attribute:'));for(const _0x48530b of _0x36c865){const {subType:_0x46e5c7,id:_0x4a65f4}=_0x5cc320(_0x48530b['name']),_0x45a7b3=_0x46e5c7['split']('|')[0x0];for(const _0x1860cd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1860cd['id']!=_0x4a65f4&&'attribute'==_0x1860cd['type']&&_0x1860cd['data']&&_0x1860cd['data']['key']==_0x45a7b3&&_0x1860cd['getFirstRange']()['isIntersecting'](_0x48530b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1860cd,_0x48530b['data']['newRange'],_0x261fba),_0x4775b8=!0x0);}return _0x4775b8;}['recordAttributeChanges'](_0x2ddc69){this['_recordAttributeSuggestions']=!0x0,_0x2ddc69();}['_reduceExistingSuggestions'](_0x5e80cf,_0x4f0d52){if(0x0==_0x4f0d52['length'])return!0x1;let _0x3940fe=!0x1;for(const _0x37f311 of _0x4f0d52){const _0x25abd0=this['_findSuggestions'](_0x37f311['range'],'attribute')['filter'](_0x24902e=>!_0x24902e['meta']['isNextTo'])['map'](_0x307cf6=>_0x307cf6['suggestion']),_0x46615e=_0x3caef6({'newValue':_0x37f311['newValue']});_0x25abd0['filter'](_0x2d375a=>{const [_0x18146a,_0x642133]=_0x2d375a['subType']['split']('|');return _0x18146a==_0x37f311['key']&&_0x642133!=_0x46615e;})['forEach'](_0xbe6969=>{this['_reduceSuggestionAttributeRange'](_0xbe6969,_0x37f311['range'],_0x5e80cf),_0x3940fe=!0x0;});}return _0x3940fe;}['_reduceSuggestionAttributeRange'](_0x1cd9d2,_0x12554a,_0x4859d8){const _0x57bad5=_0x1cd9d2['getFirstRange']()['getDifference'](_0x12554a);0x0!==_0x57bad5['length']?0x1!==_0x57bad5['length']?this['_breakSuggestionMarker'](_0x1cd9d2,_0x12554a['start'],_0x12554a['end']):this['_setSuggestionRange'](_0x1cd9d2,_0x57bad5[0x0]):_0x4859d8['removeMarker'](_0x1cd9d2['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x33a577){this['_editor']=_0x33a577,this['_model']=_0x33a577['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2969dd,_0x5ba43f,_0x285a02,_0x118b46,_0x45abb6,_0x3d48d9,_0x273bea){return new Suggestion(this['_model'],{'type':_0x2969dd,'subType':_0x5ba43f,'id':_0x285a02,'originalSuggestionId':_0x273bea,'author':_0x118b46,'creator':_0x118b46,'attributes':_0x45abb6,'onAttributesChange':_0x3d48d9,'onAccept':(..._0x4717be)=>this['getSuggestionCallback'](_0x2969dd,_0x5ba43f,'accept')(..._0x4717be),'onDiscard':(..._0x4c0b2a)=>this['getSuggestionCallback'](_0x2969dd,_0x5ba43f,'discard')(..._0x4c0b2a)});}['registerCustomCallback'](_0x1c6d87,_0x3eed77,_0x19f054,_0xf109f2){const _0x41b2a6=_0x1c6d87+':'+_0x3eed77+':'+_0x19f054;this['_customCallbacks']['set'](_0x41b2a6,_0xf109f2);}['getSuggestionCallback'](_0x19445f,_0x49d424,_0x4295be){const _0x419ae5=_0x19445f+':'+_0x49d424+':'+_0x4295be;return this['_customCallbacks']['get'](_0x419ae5)||this['_defaultCallbacks']['get'](_0x19445f+':'+_0x4295be);}['_registerDefaultCallbacks'](){const _0x35186e=()=>!0x1,_0x5673d5=_0x40f92b=>{_0x40f92b['sort']((_0x42a0bc,_0x3b4160)=>_0x42a0bc['start']['isBefore'](_0x3b4160['start'])?0x1:-0x1),this['_model']['change'](_0x19d419=>{for(const _0x290b85 of _0x40f92b){let _0x4a0477;_0x4a0477=_0x290b85['end']['isAtEnd']&&_0x290b85['end']['parent']==_0x290b85['start']['nodeAfter']?_0x19d419['createSelection'](_0x290b85['start']['nodeAfter'],'on'):_0x19d419['createSelection'](_0x290b85),this['_model']['deleteContent'](_0x4a0477,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x399442=(_0x1bdea4,_0x32e375)=>{_0x32e375&&this['_model']['change'](_0x165b8d=>{const {commandName:_0x1d9e45,commandParams:_0x1ff02a=[]}=_0x32e375,_0x5712f7=_0x1bdea4['map'](_0x5a25db=>(vt(_0x5a25db)&&(_0x5a25db=this['_model']['createRange'](_0x5a25db['end'])),_0x5a25db))['filter'](_0x3f338=>'$graveyard'!==_0x3f338['root']['rootName']);if(_0x5712f7['length']<0x1)return;const _0x6cdeef=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3d2ac6=>_0x53b34c['fromRange'](_0x3d2ac6));_0x165b8d['setSelection'](_0x5712f7);for(const _0x8e7653 of this['_editor']['commands']['commands']())_0x8e7653['refresh']();_0x1ff02a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1d9e45,..._0x1ff02a);const _0x228bca=_0x6cdeef['filter'](_0x511a14=>'$graveyard'!=_0x511a14['root']['rootName']);_0x228bca['length']>0x0&&_0x165b8d['setSelection'](_0x228bca);for(const _0x3c371a of _0x6cdeef)_0x3c371a['detach']();});},_0x14b687=(_0x42cf4c,_0x2dbe68)=>0x1==_0x42cf4c['length']&&0x1==_0x2dbe68['length']&&_0x42cf4c[0x0]['end']['isEqual'](_0x2dbe68[0x0]['start']),_0x393951=(_0x4f9a86,_0x507e73,_0x52bcfc,_0x582e3b)=>Wt(_0x4f9a86,_0x507e73,_0x52bcfc,_0x582e3b)?[_0x4f9a86,_0x507e73]:Wt(_0x507e73,_0x4f9a86,_0x582e3b,_0x52bcfc)?[_0x507e73,_0x4f9a86]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35186e),this['_defaultCallbacks']['set']('insertion:discard',_0x5673d5),this['_defaultCallbacks']['set']('insertion:join',_0x14b687),this['_defaultCallbacks']['set']('insertion:chain',_0x393951),this['_defaultCallbacks']['set']('deletion:accept',_0x5673d5),this['_defaultCallbacks']['set']('deletion:discard',_0x35186e),this['_defaultCallbacks']['set']('deletion:join',_0x14b687),this['_defaultCallbacks']['set']('deletion:chain',_0x393951),this['_defaultCallbacks']['set']('formatInline:accept',_0x399442),this['_defaultCallbacks']['set']('formatInline:discard',_0x35186e),this['_defaultCallbacks']['set']('formatInline:join',_0x14b687),this['_defaultCallbacks']['set']('formatInline:chain',_0x35186e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x399442),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35186e),this['_defaultCallbacks']['set']('formatBlock:join',_0x14b687),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35186e),this['_defaultCallbacks']['set']('attribute:accept',_0x35186e),this['_defaultCallbacks']['set']('attribute:discard',(_0x432fad,_0xd5ec4d)=>{if(!_0xd5ec4d)return;const _0x4bcd74=this['_editor']['plugins']['get'](_0x31f2dc);this['_model']['change'](_0x1c3d08=>{if(_0xd5ec4d['key']==Ft)for(const _0x165530 of _0x432fad){const _0x4ad996=_0x165530['start']['nodeAfter'],_0x333fe8=_0xd5ec4d['oldValue'];_0x1c3d08['rename'](_0x4ad996,_0x333fe8);}else{if(_0x4bcd74['isBlockAttribute'](_0xd5ec4d['key'])){for(const _0x5bb590 of _0x432fad)void 0x0!==_0xd5ec4d['oldValue']?_0x1c3d08['setAttribute'](_0xd5ec4d['key'],_0xd5ec4d['oldValue'],_0x5bb590['start']['nodeAfter']):_0x1c3d08['removeAttribute'](_0xd5ec4d['key'],_0x5bb590['start']['nodeAfter']);}else{for(const _0x4d046b of _0x432fad)_0xd5ec4d['oldValue']?_0x1c3d08['setAttribute'](_0xd5ec4d['key'],_0xd5ec4d['oldValue'],_0x4d046b):_0x1c3d08['removeAttribute'](_0xd5ec4d['key'],_0x4d046b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x14b687);}}function Dt(_0x12677c,_0x204c9f,_0x43f731){for(const _0x581d85 of _0x204c9f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x581d85['root']==_0x581d85)return!0x1;if(!_0x43f731['containsItem'](_0x581d85))return!0x1;if(_0x12677c['isObject'](_0x581d85)||_0x12677c['isLimit'](_0x581d85))return!0x0;}return!0x1;}function vt(_0x257a82){return _0x257a82['end']['parent']==_0x257a82['start']['nodeAfter']&&_0x257a82['end']['isAtStart'];}function xt(_0x19560f,_0x5e3a94,_0x14849c,_0x59e88b){const _0x199fde=_0x21855e=>!_0x21855e['item']['is']('$textProxy')&&!_0x59e88b['isObject'](_0x21855e['item']),_0x3c07b3=_0x19560f['start']['getLastMatchingPosition'](_0x199fde),_0x5188a7=_0x19560f['end']['getLastMatchingPosition'](_0x199fde,{'direction':'backward'});return(!_0x19560f['start']['isEqual'](_0x3c07b3)||!_0x19560f['end']['isEqual'](_0x5188a7))&&(_0x3c07b3['isBefore'](_0x5188a7)?_0x14849c['updateMarker'](_0x5e3a94,{'range':_0x14849c['createRange'](_0x3c07b3,_0x5188a7)}):_0x14849c['removeMarker'](_0x5e3a94),!0x0);}function Pt(_0xfc6c0f){return _0x3caef6(_0xfc6c0f);}function Ut(_0x33e1af){const _0x44517e=_0x33e1af['start']['nodeAfter'];return _0x44517e&&_0x44517e['is']('element');}function Gt(_0x11da81){return vt(_0x11da81)||function(_0x3721db){return _0x3721db['start']['parent']==_0x3721db['end']['nodeBefore']&&_0x3721db['start']['isAtEnd'];}(_0x11da81);}function Ht(_0x294c12,_0x3d426d){try{const _0x2c9217=_0x294c12['getRange']();for(const _0x378f4d of _0x3d426d)if(_0x294c12!==_0x378f4d&&_0x2c9217&&_0x2c9217['isIntersecting'](_0x378f4d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x1fe011,_0xf068ec){return null==_0x1fe011['end']['nodeBefore']&&_0x1fe011['end']['parent']==_0x1fe011['start']['nodeAfter']?Vt(_0x1fe011['start']['nodeAfter'],_0xf068ec):_0x1fe011;}function Vt(_0x2e3713,_0x2ba624){const _0x3889e0=_0x2ba624['schema']['isObject'](_0x2e3713)||_0x2ba624['schema']['isSelectable'](_0x2e3713);return _0x2ba624['createRange'](_0x2ba624['createPositionAt'](_0x2e3713,'before'),_0x3889e0?_0x2ba624['createPositionAfter'](_0x2e3713):_0x2ba624['createPositionAt'](_0x2e3713,'end'));}function Wt(_0x20026f,_0x4d956a,_0x3ce454,_0x52b144){return!!jt(_0x20026f,_0x4d956a)&&_0x3ce454['end']['isEqual'](_0x52b144['start']);}function jt(_0xac7369,_0x34e09d){if(!_0xac7369['_isDataLoaded']||!_0x34e09d['_isDataLoaded'])return!0x1;const _0x5659a7=new Set(Object['keys'](_0xac7369['attributes'])),_0x3dd7ad=new Set(Object['keys'](_0x34e09d['attributes']));if(_0x5659a7['delete']('groupId'),_0x3dd7ad['delete']('groupId'),0x0==_0x5659a7['size']&&0x0==_0x3dd7ad['size'])return!0x0;if(_0x5659a7['size']!=_0x3dd7ad['size'])return!0x1;const _0x517f56={..._0xac7369['attributes']},_0x2df6b9={..._0x34e09d['attributes']};return delete _0x517f56['groupId'],delete _0x2df6b9['groupId'],JSON['stringify'](_0x517f56)==JSON['stringify'](_0x2df6b9);}function zt(_0x18aa0a,_0x44a504){const _0x1a506f=Kt(_0x18aa0a['attributes']),_0x59d73f=Kt(_0x44a504);if(!_0x18aa0a['_isDataLoaded'])return!0x1;for(const _0x32c7cb of Object['keys'](_0x59d73f))if(!st(_0x1a506f[_0x32c7cb],_0x59d73f[_0x32c7cb]))return!0x1;return!0x0;}function Kt(_0x56b579){const _0x2fa780=Object['assign']({},_0x56b579);return delete _0x2fa780['skipNestingCheck'],delete _0x2fa780['tablePasteChainId'],_0x2fa780;}function Xt(_0xd9bfd){return _0xd9bfd['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x1b398d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x205984,_0x2d0543,_0x3d6627,_0x1f8cb4){super(),this['model']=_0x2d0543,this['view']=_0x3d6627,this['commentThreadController']=_0x1f8cb4,this['_editor']=_0x205984,this['_acceptCommand']=_0x205984['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x205984['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x320579,_0x2e41fc)=>_0x320579||_0x2e41fc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x311d40=>_0x311d40&&this['_editor']['model']['canEditAt'](_0x2d0543['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x408e10=>_0x408e10&&this['_editor']['model']['canEditAt'](_0x2d0543['getRanges']())),this['_pendingAction']=null,_0x3d6627['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3d6627,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3d6627,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3d6627,'change:isDirty',()=>{_0x3d6627['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 _0x1db2f2=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1db2f2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x1febdd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x259138,_0x1e7f66,_0x273bd2,_0x1cf231){super(_0x259138),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2cca85(_0x259138,Tt(_0x259138,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1e7f66['authoredAt']),this['bind']('authoredAt')['to'](_0x1e7f66),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',_0x1e7f66,'authoredAt',this,'descriptionParts',(_0x18e690,_0x294546,_0x147424)=>{const _0x329751=_0x147424['map'](_0x3d48c6=>ht(_0x3d48c6['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x18e690-0x1,_0x1e7f66['author']['name'],_0x294546?_0x1cf231['formatDateTime'](_0x294546):'',new DOMParser()['parseFromString'](_0x329751,'text/html')['body']['textContent']]);}),this['focusables']=new _0x385980(),this['focusTracker']=new _0x59dd35(),this['keystrokes']=new _0x490a6e(),this['focusCycler']=new _0x4b765b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x6fa2b5=>_0x6fa2b5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1e7f66,this['_localUser']=_0x273bd2,this['_config']=_0x1cf231,_0x1cf231['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3e4ab7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x14b447}=this['_config'];this['commentsListView']=new _0x14b447(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',_0x410b3a=>_0x410b3a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x32889e,_0x275dde)=>_0x32889e||!!_0x275dde);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x24357f}=this['_config'],_0x17cc33=new _0x24357f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xd4ecbb=_0x17cc33['commentInputView'];return _0x17cc33['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xd4ecbb,'value',(_0x3e5d1f,_0x48f883,_0x1473df)=>!!_0x1473df||_0x3e5d1f&&!_0x48f883),_0xd4ecbb['on']('submit',(_0x4acce1,_0x3b99c2)=>{this['fire']('addComment',_0x3b99c2),_0xd4ecbb['editor']['setData']('');}),_0xd4ecbb['on']('cancel',()=>this['focus']()),_0xd4ecbb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x17cc33;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x1e6bc7,_0x398b26,_0x2cb450,_0x303e9b){super(_0x1e6bc7,_0x398b26,_0x2cb450,_0x303e9b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x30f001=>_0x30f001&&_0x30f001[0x0]?_0x30f001[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x22e366,_0x513a1b)=>{let _0x507d26='';for(const _0x1c7884 of _0x22e366)_0x507d26+='<p>'+ht(_0x1c7884['content'],_0x1c7884['color'])+'</p>';return _0x513a1b?_0x507d26:_0x135ae5(_0x507d26,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x303e9b['SuggestionView'](_0x1e6bc7,_0x398b26,{'formatDateTime':_0x303e9b['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 _0x3dba53=this['bindTemplate'],_0x98705a=[this['suggestionView']];return this['commentsListView']&&_0x98705a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x98705a['push'](this['commentThreadInputView']),_0x98705a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3dba53['if']('isActive','ck-suggestion-wrapper--active'),_0x3dba53['to']('type',_0x481554=>'ck-suggestion-'+_0x481554),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':_0x3dba53['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x98705a};}['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 _0x1febdd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5cd59f,_0x95a3,_0x1d234f){super(_0x5cd59f),this['_model']=_0x95a3,this['_config']=_0x1d234f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x95a3),this['acceptButton']=this['_createButton'](Tt(_0x5cd59f,'Accept\x20suggestion'),_0x288cb6,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x5cd59f,'Discard\x20suggestion'),_0xef5af9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x346b02(_0x5cd59f,_0x95a3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x385980([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x59dd35(),this['keystrokes']=new _0x490a6e(),this['focusCycler']=new _0x4b765b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa7ea7f=>_0xa7ea7f['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x594d47=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x594d47['innerHTML']=this['description'],this['on']('change:description',(_0x4c6fe6,_0x4112a2,_0x60deaf)=>{_0x594d47['innerHTML']=_0x60deaf;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4bc371=this['bindTemplate'],_0x4e82af=[{'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':_0x4bc371['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4bc371['to']('authoredAt',_0x5cae36=>this['_config']['formatDateTime'](_0x5cae36))}]}]},{'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']&&_0x4e82af['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':_0x4e82af}]};}['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'](_0x2592a5,_0x1fa69b,_0x10e44f,_0x3d6ede,_0x374898){const _0x4884f9=new _0xdf261d(this['locale']);return _0x4884f9['set']({'label':_0x2592a5,'icon':_0x1fa69b,'tooltip':!0x0,'tooltipPosition':_0x374898}),_0x4884f9['extendTemplate']({'attributes':{'class':_0x10e44f}}),_0x4884f9['on']('execute',()=>{this['fire'](_0x3d6ede,this['_model']['id']);}),_0x4884f9;}['_setupKeyboardNavigation'](){const _0x543244=this['element'];this['keystrokes']['listenTo'](_0x543244);for(const _0x100932 of this['focusables'])this['focusTracker']['add'](_0x100932['element']),this['keystrokes']['listenTo'](_0x100932['element']);this['keystrokes']['set']('enter',(_0x5e0a3c,_0x25716c)=>{_0x543244===_0x5e0a3c['target']&&(this['focusCycler']['focusFirst'](),_0x25716c());}),this['keystrokes']['set']('esc',(_0x1b99ef,_0x4a3b2e)=>{_0x543244!==_0x1b99ef['target']&&(this['focus'](),_0x4a3b2e());});}}class TrackChangesUI extends _0x5a485e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x41f7d1,_0x112fe0,_0xd384be,_0x234e7e];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x564c9e){super(_0x564c9e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4e604d=this['editor']['config'];_0x4e604d['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x4e604d['define']('trackChanges.SuggestionView',SuggestionView),_0x4e604d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4e604d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x474f86,_0x2665b1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4a2a07,_0x4499a1]of this['_handleControllerBuffer']){const _0x54afc3=this['_suggestionToController']['has'](_0x4a2a07);_0x54afc3||_0x4499a1?_0x54afc3&&_0x4499a1&&this['_destroyController'](_0x4a2a07):this['_initializeController'](_0x4a2a07);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x234e7e)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x474f86,_0x2665b1);}['init'](){const _0x51ee26=this['editor'],_0x2e5e8d=_0x51ee26['plugins']['get'](TrackChangesEditing),_0x1623a9=_0x51ee26['plugins']['get'](_0xd384be),_0x1ed64a=_0x51ee26['plugins']['get'](_0x234e7e),_0xbb4a66=_0x51ee26['plugins']['get'](_0x112fe0);this['_addUIComponentsToFactory'](),_0x1ed64a['addSourceCollector'](()=>{const _0x5bc39b=[];for(const [_0x251b60,_0x2979ba]of Array['from'](this['_suggestionToController'])){const _0x4d3b41=_0x251b60['getAllAdjacentSuggestions'](),_0x1f4dc6=[];for(const _0xbb978f of _0x4d3b41){if(!_0xbb978f['isInContent'])continue;if(_0xbb978f['isMultiRange']){_0x1f4dc6['push'](..._0xbb978f['getRanges']());continue;}const _0x63056f=_0xbb978f['getFirstRange']();if(_0x1f4dc6['length']>0x0){const _0x383a37=_0x1f4dc6[0x0]['getJoined'](_0x63056f);if(_0x383a37){_0x1f4dc6[0x0]=_0x383a37;continue;}}_0x1f4dc6['push'](_0x63056f);}_0x5bc39b['push']([_0x2979ba['view'],_0x1f4dc6]);}return _0x5bc39b;}),this['listenTo'](_0x2e5e8d,'suggestionLoaded',(_0x756193,_0x8c1151)=>{this['listenTo'](_0x8c1151,'change:previous',(_0x1f2a78,_0x5321af,_0x696938,_0x111abb)=>{_0x8c1151['isInContent']&&(null==_0x696938?(this['_updateController'](_0x111abb['head']),this['_handleSuggestionControllerDelayed'](_0x8c1151,!0x1)):(this['_updateController'](_0x696938['head']),null==_0x111abb&&this['_handleSuggestionControllerDelayed'](_0x8c1151,!0x0)));}),null!==_0x8c1151['previous']?this['_updateController'](_0x8c1151['head']):this['_handleSuggestionControllerDelayed'](_0x8c1151,!0x1);}),this['listenTo'](_0x2e5e8d,'suggestionUnloaded',(_0xe7bac0,_0x22c273,_0x54ee0d)=>{this['stopListening'](_0x22c273,'change:previous'),this['_handleControllerBuffer']['delete'](_0x22c273),this['_suggestionToController']['has'](_0x22c273)&&this['_destroyController'](_0x22c273),_0x54ee0d&&this['_updateController'](_0x54ee0d['head']);}),this['listenTo'](_0x2e5e8d,'suggestionChanged',(_0x3626c9,_0x3ab9b8)=>{this['_updateController'](_0x3ab9b8);}),this['listenTo'](_0x1623a9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xbb4a66,'addComment',(_0x3c2846,{threadId:_0x1bb9a9,isFromAdapter:_0x12f2cf})=>{if(_0x12f2cf||!_0x2e5e8d['hasSuggestion'](_0x1bb9a9))return;const _0x514f8b=_0x2e5e8d['getSuggestion'](_0x1bb9a9);this['_suggestionToController']['get'](_0x514f8b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd1f93d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23dda4;for(const _0xd652fe in _0xd1f93d){const _0x142814=_0xd652fe,_0x15a4c6=_0xd1f93d[_0x142814];if('trackChangesLicenseKeyValid'==_0x15a4c6||'trackChangesLicenseKeyInvalid'==_0x15a4c6||'trackChangesLicenseKeyExpired'==_0x15a4c6||'trackChangesLicenseKeyDomainLimit'==_0x15a4c6||'trackChangesLicenseKeyNotAllowed'==_0x15a4c6||'trackChangesLicenseKeyEvaluationLimit'==_0x15a4c6||'trackChangesLicenseKeyUsageLimit'==_0x15a4c6){delete _0xd1f93d[_0x142814],_0x23dda4=_0x15a4c6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x23dda4&&_0xd1f93d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x23dda4&&_0xd1f93d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x23dda4&&_0xd1f93d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x23dda4&&_0xd1f93d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x23dda4&&_0xd1f93d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x23dda4&&_0xd1f93d['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x136c27){const _0x11f311=this['_suggestionToController']['get'](_0x136c27);if(!_0x11f311)return null;return this['editor']['plugins']['get'](_0xd384be)['getByInnerView'](_0x11f311['view'])||null;}['getSuggestionForAnnotation'](_0xc358ee){const _0x281223=this['_viewToController']['get'](_0xc358ee['innerView']);return _0x281223?_0x281223['model']:null;}['_refreshActiveMarkers'](){const _0x5d5ce6=this['editor']['plugins']['get'](_0xd384be),_0x17d211=this['editor']['plugins']['get'](TrackChangesEditing),_0x53e2a1=Array['from'](_0x5d5ce6['activeAnnotations'],_0x31b20f=>_0x31b20f['innerView'])['filter'](_0x237917=>this['_viewToController']['has'](_0x237917)),_0x4f5ff0=[];for(const _0x277fea of _0x53e2a1){const _0x2af965=this['_viewToController']['get'](_0x277fea)['model']['getAllAdjacentSuggestions']();_0x4f5ff0['push'](..._0x2af965['reduce']((_0xf060d9,_0x367171)=>[..._0xf060d9,..._0x367171['getMarkerNames']()],[]));}_0x17d211['activeMarkers']=_0x4f5ff0;}['_addUIComponentsToFactory'](){const _0x38e22b=this['editor'],_0x300e8d=_0x38e22b['locale'],_0x2a6455=Tt(_0x300e8d,'Track\x20changes'),_0x323ee6=new _0x29be2c([{'type':'switchbutton','model':new _0x886259({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a6455,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x38e22b['plugins']['has']('TrackChangesPreview')&&_0x323ee6['addMany']([{'type':'separator'},{'type':'button','model':new _0x886259({'withText':!0x0,'label':Tt(_0x300e8d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x353de8 of _0x323ee6)if(Yt(_0x353de8)){const _0x293792=_0x38e22b['commands']['get'](_0x353de8['model']['commandName']);_0x353de8['model']['bind']('isOn','isEnabled')['to'](_0x293792,'value','isEnabled');}_0x38e22b['ui']['componentFactory']['add']('trackChanges',_0x4a2cb3=>this['_createToolbarButton'](_0x4a2cb3,_0x323ee6,_0x2a6455)),_0x38e22b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4a2763=>this['_createMenuBarMenu'](_0x4a2763,_0x323ee6,_0x2a6455));}['_createToolbarButton'](_0x5f19c8,_0x519f02,_0x1e4a79){const _0x696b73=_0x21ae11(_0x5f19c8,_0x5adb68),_0x5d7816=this['editor']['commands']['get']('trackChanges');_0x696b73['buttonView']['set']({'tooltip':_0x1e4a79,'label':_0x1e4a79,'icon':_0x3c5a70}),_0x696b73['buttonView']['bind']('isOn')['to'](_0x5d7816,'value'),_0x696b73['buttonView']['on']('execute',()=>{_0x5d7816['execute'](),this['editor']['editing']['view']['focus']();}),_0x40f11c(_0x696b73,_0x519f02,{'role':'menu'});const _0x5f52a2=[];for(const _0x58425b of _0x519f02)Yt(_0x58425b)&&_0x5f52a2['push'](this['editor']['commands']['get'](_0x58425b['model']['commandName']));const _0x3663e0=_0x696b73['buttonView'];return _0x3663e0['actionView']['unbind']('isEnabled'),_0x3663e0['arrowView']['unbind']('isEnabled'),_0x3663e0['actionView']['bind']('isEnabled')['to'](_0x5d7816,'isEnabled'),_0x3663e0['arrowView']['bind']('isEnabled')['toMany'](_0x5f52a2,'isEnabled',(..._0x21c04c)=>_0x21c04c['some'](_0xe32a42=>_0xe32a42)),_0x696b73['on']('execute',_0x1bcd5a=>{this['editor']['execute'](_0x1bcd5a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x696b73;}['_createMenuBarMenu'](_0x542dda,_0x170eb3,_0x3e2d66){const _0x1f59bd=new _0x2eb164(_0x542dda),_0x2c1534=this['editor']['commands']['get']('trackChanges');_0x1f59bd['buttonView']['set']({'label':_0x3e2d66,'icon':_0x3c5a70});const _0x13fe07=new _0x39fe7a(_0x542dda);for(const _0x1b488a of _0x170eb3){if('separator'==_0x1b488a['type']){_0x13fe07['items']['add'](new _0x577f57(_0x542dda));continue;}const _0x1abf86=new _0x47c0d3(_0x542dda,_0x1f59bd),_0x358216=new _0x1b2e37(_0x542dda),_0x571907=_0x1b488a['model'];_0x358216['bind'](...Object['keys'](_0x571907))['to'](_0x571907),_0x358216['delegate']('execute')['to'](_0x1f59bd),_0x358216['on']('execute',()=>{this['editor']['execute'](_0x571907['commandName']),this['editor']['editing']['view']['focus']();}),_0x1abf86['children']['add'](_0x358216),_0x13fe07['items']['add'](_0x1abf86);}return _0x1f59bd['bind']('isEnabled')['to'](_0x2c1534,'isEnabled'),_0x1f59bd['panelView']['children']['add'](_0x13fe07),_0x1f59bd;}['_initializeController'](_0x4b0144){const _0x16155c=this['editor'],_0x45e20a=_0x16155c['config'],_0x460476=_0x16155c['plugins']['get'](_0xd384be),_0x459473=_0x16155c['plugins']['get'](_0x112fe0),_0x2aaf8c=_0x16155c['plugins']['get'](_0x234e7e),_0x34a32a=_0x16155c['plugins']['get'](_0x41f7d1)['me'],_0x85a5c7=_0x45e20a['get']('trackChanges')['SuggestionThreadView'],_0x4820ce=_0x45e20a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51b84,CommentThreadInputView:_0x2ff355}=_0x16155c['plugins']['get']('CommentsUI');let _0x180c55,_0x37065e,_0x139b4a;this['_annotationViews']['has'](_0x4b0144['id'])?(_0x37065e=this['_annotationViews']['get'](_0x4b0144['id']),_0x180c55=_0x37065e['mainView']):(_0x180c55=new _0x85a5c7(_0x16155c['locale'],_0x4b0144,_0x34a32a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x45e20a['get']('comments.editorConfig'),'licenseKey':_0x45e20a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x45e20a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x45e20a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x45e20a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x403978(_0x45e20a['get']('locale'),_0x16155c['locale']),'CommentView':_0x45e20a['get']('comments')['CommentView'],'CommentsListView':_0x51b84,'CommentThreadInputView':_0x2ff355,'SuggestionView':_0x4820ce}),_0x180c55['suggestionView']['acceptButton']['on']('execute',()=>{_0x16155c['editing']['view']['focus']();}),_0x180c55['suggestionView']['discardButton']['on']('execute',()=>{_0x16155c['editing']['view']['focus']();}),_0x37065e=_0x460476['createAnnotationView'](this['editor']['locale'],_0x180c55),_0x37065e['bind']('isDirty')['to'](_0x180c55,'isDirty'),_0x37065e['bind']('length')['to'](_0x180c55),_0x37065e['bind']('type')['to'](_0x180c55,'type',_0x339ba8=>'suggestion-'+_0x339ba8),_0x180c55['on']('escape',()=>{_0x139b4a['fire']('escape');}),this['_annotationViews']['set'](_0x4b0144['id'],_0x37065e));const _0x27aeec=_0x459473['createCommentThreadController'](_0x4b0144['commentThread'],_0x180c55),_0x19f28f=new SuggestionController(_0x16155c,_0x4b0144,_0x180c55,_0x27aeec),_0x4ac1a0=_0x4b0144['getAllAdjacentSuggestions']()['filter'](_0x24e2dc=>_0x24e2dc['isInContent']);_0x180c55['descriptionParts']=_0x16155c['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x4ac1a0),this['_suggestionToController']['set'](_0x4b0144,_0x19f28f),this['_viewToController']['set'](_0x180c55,_0x19f28f);const _0x1a8b3f=()=>{const _0xcbbbc0=[],_0x1cff8b=_0x4b0144['getAllAdjacentSuggestions']()['filter'](_0x4b9cce=>_0x4b9cce['isInContent']);for(const _0x530466 of _0x1cff8b)_0xcbbbc0['push'](..._0x530466['getMarkers']());return _0xe1a4e5(_0x16155c['editing'],_0xcbbbc0);};_0x139b4a=_0x460476['createAnnotation']({'view':_0x37065e,'target':_0x1a8b3f,'type':()=>'suggestion-'+_0x19f28f['view']['type'],'isVisible':!!_0x1a8b3f()}),_0x459473['_bindAnnotationToEditors'](_0x180c55,_0x139b4a),_0x460476['add'](_0x139b4a),_0x2aaf8c['registerAnnotation'](_0x139b4a);}['_destroyController'](_0x884e6){const _0xbf627c=this['editor']['plugins']['get'](_0x112fe0),_0x3f6b78=this['editor']['plugins']['get'](_0xd384be),_0x21a49=this['_suggestionToController']['get'](_0x884e6),_0xa75e67=_0x21a49['view'],_0x105ae6=_0x3f6b78['getByInnerView'](_0xa75e67);_0xbf627c['_unbindEditors'](_0xa75e67),_0x105ae6&&_0x3f6b78['remove'](_0x105ae6),this['_suggestionToController']['delete'](_0x884e6),this['_viewToController']['delete'](_0xa75e67),_0x21a49['destroy']();}['_updateController'](_0x8e579f){if(!_0x8e579f['isInContent']||!this['_suggestionToController']['has'](_0x8e579f))return;const _0x4d6155=this['editor']['plugins']['get'](TrackChangesEditing),_0xe93a5d=this['_suggestionToController']['get'](_0x8e579f),_0x285df8=_0x8e579f['getAllAdjacentSuggestions']();_0xe93a5d['view']['descriptionParts']=_0x4d6155['descriptionFactory']['getDescriptions'](_0x285df8);}['destroy'](){for(const _0x295c76 of this['_suggestionToController']['keys']())this['_destroyController'](_0x295c76);for(const _0x1d6850 of this['_annotationViews']['values']())_0x1d6850['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x51dd87){return'model'in _0x51dd87;}class TrackChanges extends _0x5a485e{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x4f8bc7];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xac9419){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0xac9419;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0xdb6547){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0xdb6547);}['getSuggestions']({skipNotAttached:_0x32640b=!0x1,toJSON:_0x3d6425=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x32640b,'toJSON':_0x3d6425});}['getSuggestion'](_0x230408){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x230408);}}const qt=['Pagination'];class TrackChangesData extends _0x5a485e{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4cafcc=this['editor'];if(_0x4cafcc['config']['define']('trackChangesData.editorCreator',_0x372460=>{const _0x1072ec=_0x4cafcc['model']['document']['getRootNames']()['reduce']((_0x45b351,_0x1af318)=>(_0x45b351[_0x1af318]='',_0x45b351),{});return _0x4cafcc['constructor']['create'](_0x1072ec,_0x372460);}),'function'!=typeof _0x4cafcc['config']['get']('trackChangesData')['editorCreator'])throw new _0xa0bdff('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x283e7b){return Zt(this['editor'],!0x0,_0x283e7b);}['getDataWithDiscardedSuggestions'](_0x54fb6f){return Zt(this['editor'],!0x1,_0x54fb6f);}}class TrackChangesDataGetter extends _0x5a485e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2963d0){function _0x57f9f7(_0x19016e){return _0x19016e['map'](_0x8953d5=>String['fromCharCode'](_0x8953d5))['join']('');}super(_0x2963d0),this['result']='end',_0x2963d0[_0x57f9f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57f9f7([0x76,0x69,0x65,0x77])][_0x57f9f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57f9f7([0x61,0x75,0x74,0x6f]),_0x2963d0[_0x57f9f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x57f9f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57f9f7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x57f9f7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x57f9f7([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(_0xe63de1){return void 0x0!==_0xe63de1['getRootsAttributes'];}async function Zt(_0x35fc60,_0x173bce,_0x6da910){const _0x136759=_0x274be0(_0x35fc60,qt);if(_0x136759['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x35fc60)){_0x136759['roots']=Object['create'](null);for(const _0x31dbf1 of _0x35fc60['model']['document']['getRootNames']())_0x136759['roots'][_0x31dbf1]={'modelAttributes':_0x35fc60['getRootAttributes'](_0x31dbf1)};}const _0x964eff=document['createDocumentFragment'](),_0x3dd091=_0x35fc60['config']['get']('trackChangesData')['editorCreator'],_0x35940e=await _0x3dd091(_0x136759,()=>function(_0x44b1ea){const _0x288bcb=document['createElement']('div');return _0x44b1ea['appendChild'](_0x288bcb),_0x288bcb;}(_0x964eff));!function(_0x1fd57a,_0x2be8e3){const _0x1bc7d9=_0x1fd57a['model']['document']['getRootNames']()['reduce']((_0x2dcf57,_0x4af3a5)=>(_0x2dcf57[_0x4af3a5]=_0x1fd57a['data']['get']({'rootName':_0x4af3a5}),_0x2dcf57),{}),_0x540304=_0x1fd57a['plugins']['get']('Users')['users']['map'](_0x51b1a1=>({'id':_0x51b1a1['id'],'name':_0x51b1a1['name']})),_0x1046bd=_0x1fd57a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5586fc=_0x1fd57a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4c9cf8=_0x2be8e3['plugins']['get']('Users'),_0x13fab7=_0x2be8e3['plugins']['get']('TrackChangesEditing'),_0x9ae335=_0x2be8e3['plugins']['get']('CommentsRepository');for(const _0x55a319 of _0x9ae335['getCommentThreads']())_0x55a319['remove']();for(const _0x3f125d of _0x540304)_0x4c9cf8['getUser'](_0x3f125d['id'])||_0x4c9cf8['addUser'](_0x3f125d);_0x4c9cf8['me']||_0x4c9cf8['useAnonymousUser']();for(const _0xfb4147 of _0x5586fc)_0x9ae335['addCommentThread'](_0xfb4147);for(const _0x5798a2 of _0x1046bd)_0x13fab7['addSuggestionData'](_0x5798a2);_0x2be8e3['data']['set'](_0x1bc7d9);}(_0x35fc60,_0x35940e),_0x35940e['execute'](_0x173bce?'acceptAllSuggestions':'discardAllSuggestions');const _0x58bbe3=Qt(_0x35940e)?_0x35940e['getFullData'](_0x6da910):_0x35940e['data']['get'](_0x6da910);return await _0x35940e['destroy'](),_0x58bbe3;}class TrackChangesPreviewView extends _0x1febdd{['options'];constructor(_0x29b5c3,_0x5e46f9){super(_0x29b5c3),this['options']=_0x5e46f9,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'](_0x1e6fea,_0x4d7004){if(!this['element'])return;const _0x157ad8=[];for(const [_0x1fada2,_0x17463c]of _0x1e6fea){const _0x5aa6de=document['createElement']('div');_0x5aa6de['setAttribute']('data-ck-root-name',_0x1fada2),_0x5aa6de['className']=_0x17463c['classes']+'\x20ck-track-changes-preview__root-container',_0x5aa6de['innerHTML']=_0x17463c['content'],_0x157ad8['push'](_0x5aa6de);}_0x4d7004(this['element'],_0x157ad8),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x468faf{constructor(_0x87a91e){super(_0x87a91e),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x306d06=this['editor'],_0x5178e3=_0x306d06['locale'],_0x13d270=_0x306d06['plugins']['get']('Dialog');let _0x121000;const _0x122d43=function(_0x2ae89e){const _0x3553a8={};if('editables'in _0x2ae89e['ui']['view']){for(const [_0x9ff4fb,_0x5274da]of Object['entries'](_0x2ae89e['ui']['view']['editables']))_0x3553a8[_0x9ff4fb]=_0x5274da['element'];}else _0x3553a8[_0x2ae89e['model']['document']['getRootNames']()[0x0]]=_0x2ae89e['ui']['view']['editable']['element'];return _0x3553a8;}(_0x306d06),_0xae16b0=function(_0x5b5336){let _0x596d5e=0x0;for(const _0x1bd710 of Object['values'](_0x5b5336))_0x596d5e=Math['max'](_0x596d5e,_0x1bd710['getBoundingClientRect']()['width']);let _0x5a4905=0x0;for(const _0x117466 of Object['values'](_0x5b5336))_0x5a4905+=_0x117466['getBoundingClientRect']()['height'];const _0x3b10f8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5deaed=Math['min'](_0x5a4905,_0x3b10f8);return{'width':_0x596d5e,'height':_0x5deaed};}(_0x122d43);_0x13d270['show']({'id':'finalContentPreview','title':Tt(_0x5178e3,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x5178e3,{'dialogRects':_0xae16b0}),'onHide':()=>{_0x121000['detachFromDom']();},'onShow':()=>{_0x306d06['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2d6091=>{const _0x56cbfa=this['_standarizeRootsData'](_0x2d6091,_0x306d06,_0x122d43);_0x13d270['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x56cbfa,_0x306d06['config']['get']('trackChanges.preview.renderFunction'));}),_0x121000=new _0x42698c(_0x5178e3,[_0x13d270['view']]),_0x121000['attachToDom'](),_0x121000['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x306d06['once']('destroy',()=>{_0x121000['detachFromDom']();});const _0x124967=_0x13d270['view']['headerView']['class'];_0x13d270['view']['headerView']['class']=_0x124967?_0x124967+'\x20ck-reset_all':'ck-reset_all',_0x13d270['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x13d270['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x6d808e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57de0f=_0x6d808e['previewMode'],_0xce3eb8={};if('$labels'===_0x57de0f){for(const _0x4551b9 of _0x6d808e['getMergeFieldsIds']())_0xce3eb8[_0x4551b9]=_0x6d808e['getLabel'](_0x4551b9)||_0x4551b9;}else{const _0x32501e='$defaultValues'===_0x57de0f?_0x6d808e['getDefaultValues']():_0x6d808e['getDataSetValues'](_0x57de0f,!0x0);for(const _0x296f4a of Object['entries'](_0x32501e)){const [_0x4c0b5e,_0xe44647]=_0x296f4a;_0xce3eb8[_0x4c0b5e]=null!==_0xe44647?_0xe44647:_0x6d808e['getLabel'](_0x4c0b5e)||_0x4c0b5e;}}return{'mergeFieldsData':_0xce3eb8};}['_standarizeRootsData'](_0x3f3d23,_0x3b67a3,_0xdacba8){let _0x4cd820;if('string'==typeof _0x3f3d23){const _0x51229e=_0x3b67a3['model']['document']['getRootNames']()[0x0];_0x4cd820={[_0x51229e]:_0x3f3d23};}else _0x4cd820=_0x3f3d23;const _0x192bd1=this['_fixMediaEmbeds'](_0x4cd820,_0x3b67a3),_0x4a271f=function(_0x506502,_0x39579d){for(const [_0x32a0bd,_0x57d193]of _0x506502)_0x57d193['classes']=_0x39579d[_0x32a0bd]['classList']['value']['replace']('ck-focused','');return _0x506502;}(this['_sortRoots'](_0x3b67a3)['reduce']((_0x2f88e9,_0x6a6efa)=>(_0x2f88e9['push']([_0x6a6efa,{'content':_0x192bd1[_0x6a6efa],'classes':''}]),_0x2f88e9),[]),_0xdacba8);return _0x4a271f;}['_fixMediaEmbeds'](_0x891b72,_0x14c68d){if(!_0x14c68d['plugins']['has']('MediaEmbedEditing'))return _0x891b72;const _0x4b328d=_0x14c68d['plugins']['get']('MediaEmbedEditing');for(const [_0x24a083,_0x552cb5]of Object['entries'](_0x891b72)){const _0x263f26=document['createElement']('div');_0x263f26['innerHTML']=_0x552cb5,(_0x263f26['querySelectorAll']('figure.media')['forEach'](_0x420c26=>{const _0x181e15=_0x420c26['querySelector']('oembed');if(_0x181e15){const _0x372776=_0x181e15['getAttribute']('url');if(_0x372776){const _0x1ce191=_0x4b328d['registry']['getMediaViewElement'](new et(_0x14c68d['editing']['view']['document']),_0x372776,{'elementName':'','renderForEditingView':!0x0}),_0x17b0ca=document['createElement']('div');_0x17b0ca['classList']['add']('ck-media__wrapper'),_0x1ce191['render'](_0x17b0ca,_0x14c68d['editing']['view']['domConverter']),_0x181e15['replaceWith'](_0x17b0ca);}}}),_0x891b72[_0x24a083]=_0x263f26['innerHTML']);}return _0x891b72;}['_sortRoots'](_0x48370d){if(!function(_0x41751a){return void 0x0!==_0x41751a['getRootsAttributes'];}(_0x48370d))return _0x48370d['model']['document']['getRootNames']();const _0x462041=[],_0x445454=new Map();for(const _0x55537b of _0x48370d['model']['document']['getRootNames']()){const _0x5931cc=_0x48370d['editing']['view']['getDomRoot'](_0x55537b)['getClientRects']()['item'](0x0);_0x462041['push'](_0x55537b),_0x445454['set'](_0x55537b,_0x5931cc);}return _0x462041['sort']((_0x3cd0aa,_0x140f08)=>{const _0x13e84d=_0x445454['get'](_0x3cd0aa),_0x236d37=_0x445454['get'](_0x140f08);return _0x13e84d['y']-_0x236d37['y']||_0x13e84d['x']-_0x236d37['x'];}),_0x462041;}}class TrackChangesPreview extends _0x5a485e{static get['requires'](){return[TrackChangesData,_0x36958a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d0ec9){super(_0x5d0ec9),_0x5d0ec9['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x5d0ec9['config']['define']('trackChanges.preview.renderFunction',(_0x552945,_0x52427f)=>{for(const _0xa6e10c of _0x52427f)_0x552945['appendChild'](_0xa6e10c);});}}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};
|