@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250816.0 → 0.0.0-nightly-20250818.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x37f24f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x249a43,_0xb9e75a){super(),this['id']=_0xb9e75a['id'],this['type']=_0xb9e75a['type'],this['subType']=_0xb9e75a['subType']||null,this['author']=_0xb9e75a['author'],this['creator']=_0xb9e75a['creator']||_0xb9e75a['author'],this['isExternal']=Boolean(_0xb9e75a['attributes']&&_0xb9e75a['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xb9e75a['originalSuggestionId']||null,this['_model']=_0x249a43,this['_onAccept']=_0xb9e75a['onAccept'],this['_onDiscard']=_0xb9e75a['onDiscard'],this['_onAttributesChange']=_0xb9e75a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb9e75a['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 _0x3c1cd5=this;for(;_0x3c1cd5['previous'];)_0x3c1cd5=_0x3c1cd5['previous'];return _0x3c1cd5;}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'](_0x5ed416){this['_markerNames']['add'](_0x5ed416);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x222ccf=>this['_model']['markers']['get'](_0x222ccf))['filter'](_0x280343=>_0x280343);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x404d85=>{for(const _0x283e42 of this['getMarkers']())_0x404d85['removeMarker'](_0x283e42);}),this['_markerNames']['clear']();}['removeMarker'](_0x190885){this['_model']['change'](_0x22b2b5=>{_0x22b2b5['removeMarker'](_0x190885);}),this['_markerNames']['delete'](_0x190885);}['addRange'](_0x2e20c6){const _0x3032c6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x3032c6),this['_model']['change'](_0x174639=>{_0x174639['addMarker'](_0x3032c6,{'range':_0x2e20c6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b2026){for(const _0x237132 of this['getRanges']())if(_0x237132['isIntersecting'](_0x4b2026))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5590b2=>_0x5590b2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x10e104,_0x44c002)=>[..._0x10e104,..._0x44c002['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x488dbf=this['getRanges']();if(0x1!=_0x488dbf['length'])return null;const _0xfb1153=_0x488dbf[0x0],_0x331a07=_0xfb1153['start']['nodeAfter'],_0x4af2b=_0xfb1153['end']['nodeBefore'];return _0x331a07 instanceof _0x568c0b?_0x331a07!=_0x4af2b?null:_0x331a07: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 _0x243bf0=[];let _0x35cf86=this['head'];for(;_0x35cf86;)_0x243bf0['push'](_0x35cf86),_0x35cf86=_0x35cf86['next'];return _0x243bf0;}['setAttribute'](_0x3425f5,_0x4b0ebd){const _0x46803d=_0x25ede2(this['attributes']);_0x36b055(_0x46803d,_0x3425f5,_0x4b0ebd),_0x5ee984(_0x46803d,this['attributes'])||(this['attributes']=_0x46803d,this['_onAttributesChange'](_0x46803d));}['removeAttribute'](_0xf8bd21){const _0x565ba0=_0x25ede2(this['attributes']);_0x47f796(_0x565ba0,_0xf8bd21),_0x5ee984(_0x565ba0,this['attributes'])||(this['attributes']=_0x565ba0,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 _0x324767()['substr'](0x1,0x5);}}function o(_0x25cd7a,_0x49ae3c,_0x38ada3){const _0x4cca99=_0x25cd7a['t'],t=_0x25cd7a['t'];switch(_0x49ae3c){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',_0x38ada3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x38ada3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x38ada3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x38ada3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x38ada3);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',_0x38ada3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x38ada3);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',_0x38ada3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x38ada3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x38ada3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x38ada3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x38ada3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x38ada3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x38ada3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x38ada3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x38ada3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x38ada3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x38ada3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x38ada3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x38ada3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x38ada3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x38ada3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x38ada3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x38ada3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x38ada3);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'},_0x38ada3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x38ada3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x38ada3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x38ada3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x38ada3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x38ada3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x38ada3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x38ada3);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'},_0x38ada3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x38ada3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x38ada3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x38ada3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x38ada3);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x38ada3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x38ada3);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'},_0x38ada3);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x38ada3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x38ada3);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'},_0x38ada3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x38ada3);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'},_0x38ada3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x38ada3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x38ada3);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'},_0x38ada3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x38ada3);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 _0x4cca99({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x38ada3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4cca99({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x38ada3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x38ada3);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'},_0x38ada3);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'},_0x38ada3);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'},_0x38ada3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x49ae3c;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d72f9,_0x1a009d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d72f9,this['_locale']=_0x1a009d;}['getDescriptions'](_0x13b476){const _0xb7ce66=[],_0x5b5025=new Set(),_0x280650=new Set();for(let _0x5e37eb=0x0;_0x5e37eb<_0x13b476['length'];_0x5e37eb++){const _0x5c22f6=_0x13b476[_0x5e37eb];if(!_0x5c22f6['isInContent'])continue;const _0x362810=this['_handleCustomCallbackDescription'](_0x5c22f6);if(_0x362810){if(null!=_0x5c22f6['subType']){if(_0x5b5025['has'](_0x5c22f6['subType']))continue;_0x5b5025['add'](_0x5c22f6['subType']);}_0xb7ce66['push'](_0x362810);}else{if('attribute'==_0x5c22f6['type']){const _0x1d9129=_0x5c22f6['data']['key'];if(_0x280650['has'](_0x1d9129))continue;_0x280650['add'](_0x5c22f6['data']['key']),_0x1d9129==m?this['_handleRenameSuggestionDescription'](_0xb7ce66,_0x5c22f6):this['_handleAttributeSuggestionDescription'](_0xb7ce66,_0x5c22f6);continue;}'insertion'!=_0x5c22f6['type']&&'deletion'!=_0x5c22f6['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb7ce66,_0x5c22f6,_0x13b476[_0x5e37eb+0x1]);}}return this['_resolveDescriptionItems'](_0xb7ce66);}['registerDescriptionCallback'](_0x471027){this['_customCallbacks']['push'](_0x471027);}['registerElementLabel'](_0x4a2ea9,_0x4f0cf1,_0x4a0861=_0x45dc8c['normal']){'function'==typeof _0x4a2ea9?_0x4d6ddb(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4a2ea9,'label':_0x4f0cf1,'priority':_0x4a0861}):this['_itemLabels']['set'](_0x4a2ea9,_0x4f0cf1);}['registerAttributeLabel'](_0x234e58,_0x1d946a){this['_attributeLabels']['set'](_0x234e58,_0x1d946a);}['getItemLabel'](_0x285699,_0x5d2d81=0x1){let _0x462e47;for(const _0x7dec0 of this['_itemLabelsCallbacks'])if(_0x7dec0['matchingCallback'](_0x285699)){_0x462e47=_0x7dec0['label'];break;}return _0x462e47||(_0x462e47=this['_itemLabels']['get'](_0x285699['name'])),_0x462e47?_0x462e47(_0x5d2d81):0x1!==_0x5d2d81?_0x5d2d81+'\x20'+_0x285699['name']+'s':''+_0x285699['name'];}['_addDescriptionItems'](_0x419fb4,_0x4dd302){const _0x2cec3d=_0x4dd302['getFirstRange']()['getWalker'](),_0x1f7b31='insertion'==_0x4dd302['type']?'add':'remove';for(const _0x4aa73d of _0x2cec3d){const _0x31b5c3=_0x4aa73d['item'],_0x151816=_0x419fb4[_0x419fb4['length']-0x1];if(_0x31b5c3['is']('$textProxy'))_0x151816&&_0x151816['type']['indexOf']('Container')>-0x1&&_0x419fb4['pop'](),_0x151816&&'text'==_0x151816['type']?_0x151816[_0x1f7b31]+=_0x31b5c3['data']:_0x419fb4['push']({'type':'text','add':'add'==_0x1f7b31?_0x31b5c3['data']:'','remove':'remove'==_0x1f7b31?_0x31b5c3['data']:''});else{if(this['_schema']['isObject'](_0x31b5c3)){const _0x336f9f=_0x31b5c3;if(_0x151816&&_0x151816['type']['indexOf']('Container')>-0x1&&_0x419fb4['pop'](),'elementEnd'==_0x4aa73d['type'])continue;_0x151816&&_0x151816['type']==_0x1f7b31+'Object'&&_0x151816['element']['name']==_0x336f9f['name']?_0x151816['quantity']++:_0x419fb4['push']({'type':_0x1f7b31+'Object','element':_0x336f9f,'quantity':0x1}),_0x2cec3d['skip'](_0x2753fa=>!('elementEnd'==_0x2753fa['type']&&_0x2753fa['item']==_0x31b5c3));}else{if(this['_schema']['checkChild'](_0x31b5c3,'$text')||_0x31b5c3['is']('element','softBreak')){const _0x43c8c9=_0x31b5c3;if('add'==_0x1f7b31&&'elementStart'==_0x4aa73d['type']||'remove'==_0x1f7b31&&'elementEnd'==_0x4aa73d['type'])continue;if(_0x151816&&-0x1==_0x151816['type']['indexOf']('Container')){'text'==_0x151816['type']&&(_0x151816[_0x1f7b31]+='\x0a');continue;}let _0x41c611;if(_0x41c611='add'==_0x1f7b31?_0x43c8c9['nextSibling']&&!this['_schema']['isObject'](_0x43c8c9['nextSibling'])?_0x43c8c9['nextSibling']:null:_0x43c8c9['previousSibling']&&!this['_schema']['isObject'](_0x43c8c9['previousSibling'])?_0x43c8c9['previousSibling']:null,_0x43c8c9['isEmpty']||_0x41c611&&_0x41c611['isEmpty']){const _0x42e1ff=_0x41c611&&_0x41c611['isEmpty']?_0x41c611:_0x43c8c9;_0x151816&&_0x151816['type']==_0x1f7b31+'EmptyContainer'&&_0x151816['element']['name']==_0x42e1ff['name']?_0x151816['quantity']++:_0x419fb4['push']({'type':_0x1f7b31+'EmptyContainer','element':_0x42e1ff,'quantity':0x1});}else _0x419fb4['push']({'type':_0x1f7b31+'Container','element':_0x43c8c9});}}}}}['_resolveDescriptionItems'](_0x3e9576){const _0x2cdaf9=this['_locale'],_0x5a0de3=[],_0x298281=[],_0x368775=[];for(const _0x8d5f57 of _0x3e9576)switch(_0x8d5f57['type']){case'text':if(_0x8d5f57['add']=_0x8d5f57['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x8d5f57['remove']=_0x8d5f57['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x8d5f57['add']&&''!=_0x8d5f57['remove']){_0x5a0de3['push']({'type':'replace','content':o(_0x2cdaf9,'REPLACE_TEXT',['\x22'+_0x8d5f57['remove']+'\x22','\x22'+_0x8d5f57['add']+'\x22'])});continue;}if(null!=_0x8d5f57['add']['match'](/^ +$/)){_0x5a0de3['push']({'type':'insertion','content':o(_0x2cdaf9,'*Insert:*\x20%0',o(_0x2cdaf9,'ELEMENT_SPACE',_0x8d5f57['add']['length']))});continue;}if(null!=_0x8d5f57['remove']['match'](/^ +$/)){_0x5a0de3['push']({'type':'deletion','content':o(_0x2cdaf9,'*Remove:*\x20%0',o(_0x2cdaf9,'ELEMENT_SPACE',_0x8d5f57['remove']['length']))});continue;}if(''!=_0x8d5f57['add']){_0x5a0de3['push']({'type':'insertion','content':o(_0x2cdaf9,'*Insert:*\x20%0','\x22'+_0x8d5f57['add']+'\x22')});continue;}_0x5a0de3['push']({'type':'deletion','content':o(_0x2cdaf9,'*Remove:*\x20%0','\x22'+_0x8d5f57['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5a0de3['push']({'type':'insertion','content':o(_0x2cdaf9,'*Insert:*\x20%0',this['getItemLabel'](_0x8d5f57['element'],_0x8d5f57['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5a0de3['push']({'type':'deletion','content':o(_0x2cdaf9,'*Remove:*\x20%0',this['getItemLabel'](_0x8d5f57['element'],_0x8d5f57['quantity']))});continue;case'addContainer':_0x5a0de3['push']({'type':'insertion','content':o(_0x2cdaf9,'*Split:*\x20%0',this['getItemLabel'](_0x8d5f57['element'],_0x8d5f57['quantity']))});continue;case'removeContainer':_0x5a0de3['push']({'type':'deletion','content':o(_0x2cdaf9,'*Merge:*\x20%0',this['getItemLabel'](_0x8d5f57['element'],_0x8d5f57['quantity']))});continue;case'addFormat':_0x298281['push'](_0x8d5f57['key']);continue;case'removeFormat':_0x368775['push'](_0x8d5f57['key']);continue;default:_0x5a0de3['push'](_0x8d5f57);}if(_0x298281['length']){const _0x192b7f=_0x298281['map'](_0x4a45bb=>this['_attributeLabels']['has'](_0x4a45bb)?this['_attributeLabels']['get'](_0x4a45bb):_0x4a45bb)['join'](',\x20');_0x5a0de3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x192b7f)});}if(_0x368775['length']){const _0x523248=_0x368775['map'](_0x162a7c=>this['_attributeLabels']['has'](_0x162a7c)?this['_attributeLabels']['get'](_0x162a7c):_0x162a7c)['join'](',\x20');_0x5a0de3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x523248)});}return _0x5a0de3;}['_handleCustomCallbackDescription'](_0x3efaa5){for(const _0x31c92c of this['_customCallbacks']){const _0x7e76f8=_0x31c92c(_0x3efaa5);if(_0x7e76f8&&'type'in _0x7e76f8)return _0x7e76f8;}}['_handleAttributeSuggestionDescription'](_0x53b358,_0x20b410){const _0x1f2e24=_0x20b410['data'],_0x2997fa=void 0x0===_0x1f2e24['newValue']?'removeFormat':'addFormat';_0x53b358['push']({'type':_0x2997fa,'key':_0x1f2e24['key']});}['_handleRenameSuggestionDescription'](_0x313a78,_0x166185){_0x313a78['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x166185['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x356157,_0x4953eb,_0x18b418){if(this['_addDescriptionItems'](_0x356157,_0x4953eb),_0x18b418&&_0x18b418['getFirstRange']()&&!_0x4953eb['getFirstRange']()['end']['isEqual'](_0x18b418['getFirstRange']()['start'])){const _0xce559e=_0x356157[_0x356157['length']-0x1],_0x3bdaf8='insertion'==_0x4953eb['type']?'add':'remove';_0xce559e&&'text'==_0xce559e['type']&&(_0xce559e[_0x3bdaf8]+='\x0a');}}}class O extends _0x15e299{['afterInit'](){const _0x123ef4=this['editor'],_0x1717c5=_0x123ef4['plugins']['get']('TrackChangesEditing');_0x123ef4['commands']['get']('showAIAssistant')&&_0x1717c5['enableCommand']('showAIAssistant');}}class E extends _0x15e299{['afterInit'](){const _0x2bd5dd=this['editor'],_0x1fd40f=_0x2bd5dd['locale'];if(!_0x2bd5dd['plugins']['has']('AlignmentEditing'))return;const _0x7fcb2c=_0x2bd5dd['plugins']['get']('TrackChangesEditing');_0x7fcb2c['enableDefaultAttributesIntegration']('alignment'),_0x7fcb2c['registerBlockAttribute']('alignment'),_0x7fcb2c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1fd40f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18b0d1=this['editor'],_0x213935=_0x18b0d1['locale'];_0x18b0d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6cd0bf=>{if('formatBlock'!=_0x6cd0bf['type'])return;const {data:_0x5e12da}=_0x6cd0bf;if(_0x5e12da&&'alignment'==_0x5e12da['commandName']){const _0x1b95f2=_0x5e12da['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x213935,'*Format:*\x20%0',function(_0x105051){switch(_0x105051){case'left':return o(_0x213935,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x213935,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x213935,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x213935,'FORMAT_JUSTIFY_TEXT');}}(_0x1b95f2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x15e299{['afterInit'](){const _0x119709=this['editor'],_0x3d1dec=_0x119709['plugins']['get']('TrackChangesEditing'),_0x5d59db=_0x119709['locale'];for(const _0x3e3872 of ti){if(!_0x119709['plugins']['has'](_0x3e3872))continue;const _0x54b631=_0x3e3872['slice'](0x0,-0x7)['toLowerCase'](),_0x54e5b4='FORMAT_'+_0x54b631['toUpperCase']();_0x3d1dec['enableDefaultAttributesIntegration'](_0x54b631),_0x3d1dec['registerInlineAttribute'](_0x54b631),_0x3d1dec['descriptionFactory']['registerAttributeLabel'](_0x54b631,o(_0x5d59db,_0x54e5b4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57fe1d=this['editor'],_0x5af6fc=_0x57fe1d['locale'],_0x3e1536=_0x57fe1d['plugins']['get']('TrackChangesEditing');function _0x510f42(_0x51d18f,_0x3b8570){_0x3e1536['descriptionFactory']['registerDescriptionCallback'](_0x11a92b=>{if('formatInline'!=_0x11a92b['type'])return;const {data:_0x29ad60}=_0x11a92b;return _0x29ad60&&_0x29ad60['commandName']===_0x51d18f?_0x29ad60['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5af6fc,'*Format:*\x20%0',_0x3b8570)}:{'type':'format','content':o(_0x5af6fc,'*Remove\x20format:*\x20%0',_0x3b8570)}:void 0x0;});}_0x510f42('bold',o(_0x5af6fc,'FORMAT_BOLD')),_0x510f42('italic',o(_0x5af6fc,'FORMAT_ITALIC')),_0x510f42('underline',o(_0x5af6fc,'FORMAT_UNDERLINE')),_0x510f42('code',o(_0x5af6fc,'FORMAT_CODE')),_0x510f42('strikethrough',o(_0x5af6fc,'FORMAT_STRIKETHROUGH')),_0x510f42('subscript',o(_0x5af6fc,'FORMAT_SUBSCRIPT')),_0x510f42('superscript',o(_0x5af6fc,'FORMAT_SUPERSCRIPT'));}}class U extends _0x15e299{['afterInit'](){const _0x31e532=this['editor'],_0x31e59c=_0x31e532['locale'];if(!_0x31e532['plugins']['has']('BlockQuoteEditing'))return;const _0x48f747=_0x31e532['plugins']['get']('TrackChangesEditing'),_0x1a1509=this['editor']['commands']['get']('blockQuote');_0x48f747['enableCommand']('blockQuote',(_0x272c84,_0x553fe3={})=>{const _0x23c4e4=this['editor']['model']['document']['selection'],_0x473ac0=_0x553fe3&&void 0x0!==_0x553fe3['forceValue']?_0x553fe3['forceValue']:!_0x1a1509['value'];let _0x491a4d=[];if(_0x473ac0){const _0x2647fd=Array['from'](_0x23c4e4['getSelectedBlocks']())['filter'](_0x453088=>oo(_0x453088)||function(_0x58b143,_0x8f5df3){const _0x216ed1=_0x8f5df3['checkChild'](_0x58b143['parent'],'blockQuote'),_0x5da4d0=_0x8f5df3['checkChild'](['$root','blockQuote'],_0x58b143);return _0x216ed1&&_0x5da4d0;}(_0x453088,this['editor']['model']['schema']));_0x491a4d=to(_0x2647fd,_0x31e532['model']);}else{const _0x491a6c=Array['from'](_0x23c4e4['getSelectedBlocks']())['filter'](_0x1127a7=>oo(_0x1127a7));_0x491a4d=to(_0x491a6c,_0x31e532['model']);}_0x31e532['model']['change'](()=>{for(const _0x507bac of _0x491a4d)_0x48f747['markBlockFormat'](_0x507bac,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x473ac0}]});});}),_0x48f747['descriptionFactory']['registerDescriptionCallback'](_0x5d7a88=>{const {data:_0x41c3b5}=_0x5d7a88;if(_0x41c3b5&&'blockQuote'==_0x41c3b5['commandName']){const _0xbe7432=o(_0x31e59c,'ELEMENT_BLOCK_QUOTE');return _0x41c3b5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31e59c,'*Set\x20format:*\x20%0',_0xbe7432)}:{'type':'format','content':o(_0x31e59c,'*Remove\x20format:*\x20%0',_0xbe7432)};}});}}function oo(_0x52214d){return'blockQuote'==_0x52214d['parent']['name'];}class V extends _0x15e299{['afterInit'](){const _0x2fa5c7=this['editor'],_0x2756d0=_0x2fa5c7['locale'],_0x304f6c=_0x2fa5c7['plugins']['get']('TrackChangesEditing');_0x2fa5c7['plugins']['has']('BookmarkEditing')&&(_0x304f6c['enableCommand']('insertBookmark'),_0x304f6c['enableDefaultAttributesIntegration']('updateBookmark'),_0x304f6c['registerBlockAttribute']('bookmarkId'),_0x304f6c['descriptionFactory']['registerDescriptionCallback'](_0x18d3c2=>{if('insertion'!=_0x18d3c2['type']&&'deletion'!=_0x18d3c2['type']&&'attribute'!=_0x18d3c2['type'])return;const _0x291654=_0x18d3c2['getContainedElement']();if(null==_0x291654)return;if(!_0x291654['is']('element','bookmark'))return;const _0x257dec=_0x291654['getAttribute']('bookmarkId');if('insertion'==_0x18d3c2['type'])return{'type':'insertion','content':o(_0x2756d0,'*Insert:*\x20%0','\x22'+_0x257dec+'\x22\x20'+o(_0x2756d0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x18d3c2['type'])return{'type':'deletion','content':o(_0x2756d0,'*Remove:*\x20%0','\x22'+_0x257dec+'\x22\x20'+o(_0x2756d0,'ELEMENT_BOOKMARK'))};const {data:_0x4db867}=_0x18d3c2;if(!_0x4db867||'bookmarkId'!=_0x4db867['key'])return;return{'type':'format','content':o(_0x2756d0,'*Set\x20bookmark:*\x20%0','\x22'+_0x4db867['newValue']+'\x22')};}));}}class F extends _0x15e299{['afterInit'](){const _0x1fb22f=this['editor'];_0x1fb22f['plugins']['has']('CaseChange')&&(_0x1fb22f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1fb22f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1fb22f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x15e299{['afterInit'](){const _0x32a9f9=this['editor'];_0x32a9f9['commands']['get']('ckbox')&&_0x32a9f9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x15e299{['afterInit'](){const _0x94a4ec=this['editor'];if(!_0x94a4ec['plugins']['has']('CodeBlock'))return;const _0x5d94ee=_0x94a4ec['plugins']['get']('TrackChangesEditing'),_0x34c8bf=_0x94a4ec['locale'],_0x457ee8=_0x94a4ec['config']['get']('codeBlock')['languages'],_0x42fefb=_0x94a4ec['commands']['get']('codeBlock');_0x5d94ee['enableCommand']('indentCodeBlock'),_0x5d94ee['enableCommand']('outdentCodeBlock'),_0x5d94ee['enableCommand']('codeBlock',(_0xb1ff35,_0x552d24={})=>{const _0xba62e3=_0x94a4ec['model'],_0xf62525=_0x94a4ec['model']['document']['selection'],_0x139116=_0x552d24&&void 0x0!==_0x552d24['forceValue']?_0x552d24['forceValue']:!_0x42fefb['value'];let _0x47716c;_0x552d24['language']||(_0x552d24['language']=_0x457ee8[0x0]['language']),_0x47716c=_0x139116?Array['from'](_0xf62525['getSelectedBlocks']())['filter'](_0x19cccd=>co(_0x19cccd)||function(_0x546cfb,_0x3f39c2){if(_0x546cfb['is']('rootElement')||_0x3f39c2['isLimit'](_0x546cfb))return!0x1;return _0x3f39c2['checkChild'](_0x546cfb['parent'],'codeBlock');}(_0x19cccd,_0xba62e3['schema'])):Array['from'](_0xf62525['getSelectedBlocks']())['filter'](_0x2240b0=>co(_0x2240b0));const _0x575610=to(_0x47716c,_0xba62e3);_0xba62e3['change'](()=>{for(const _0x4250b1 of _0x575610)_0x5d94ee['markBlockFormat'](_0x4250b1,{'commandName':'codeBlock','commandParams':[{..._0x552d24,'forceValue':_0x139116}],'formatGroupId':'blockName'});});}),(_0x5d94ee['descriptionFactory']['registerElementLabel']('codeBlock',_0x14d780=>o(_0x34c8bf,'ELEMENT_CODE_BLOCK',_0x14d780)),_0x5d94ee['descriptionFactory']['registerDescriptionCallback'](_0x4637f8=>{if('formatBlock'!=_0x4637f8['type'])return;const _0x5985e4=_0x34c8bf['t'],{data:_0x3e0c59}=_0x4637f8;if(!_0x3e0c59||'codeBlock'!=_0x3e0c59['commandName'])return;const _0xcb8bb1=_0x3e0c59['commandParams'][0x0]['language'],_0x366cfd=_0x5985e4(_0x457ee8['find'](_0x1321ab=>_0x1321ab['language']===_0xcb8bb1)['label'])['toLowerCase']();return _0x3e0c59['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34c8bf,'*Set\x20format:*\x20%0',o(_0x34c8bf,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x366cfd+')')}:{'type':'format','content':o(_0x34c8bf,'*Remove\x20format:*\x20%0',o(_0x34c8bf,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x281f47){return'codeBlock'==_0x281f47['name'];}class J extends _0x15e299{['afterInit'](){const _0x1ed387=this['editor'];if(!_0x1ed387['plugins']['has']('CommentsEditing'))return;_0x1ed387['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5a81b8,_0x4386ee,_0x19c912){const _0x5e3a93=[];for(const _0x2e4b28 of _0x4386ee['getItems']())_0x2e4b28['hasAttribute'](_0x5a81b8)&&_0x5e3a93['push'](_0x19c912['createRangeOn'](_0x2e4b28));return _0x5e3a93;}function De(_0xdf792f,_0x59cf82,{showActiveMarker:_0x3ab123=!0x0}={}){const _0x1a725b=_0xdf792f['plugins']['get']('TrackChangesEditing');return(_0x1d8296,_0x355e48,_0x450193)=>{if(!_0x450193['consumable']['test'](_0x355e48['markerRange'],_0x1d8296['name']))return;const _0x6cb951=_0x355e48['markerRange']['getWalker'](),_0x53066f=_0x355e48['markerRange']['start'],_0x2e0c1b=_0xdf792f['model']['schema'];let _0x14c22c=null,_0x1022fd=null,_0x3091ed=!0x1,_0x1b17c9=!0x1;for(const _0x2513fd of _0x6cb951){const _0x5a09b7=_0x2513fd['item'];_0x3091ed=_0x3091ed||_0x2e0c1b['isContent'](_0x5a09b7);const _0x4e41ef=_0x450193['mapper']['toViewElement'](_0x5a09b7);if(_0x4e41ef&&_0x4e41ef['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2513fd['type']&&(_0x2e0c1b['isBlock'](_0x5a09b7)&&!_0x2e0c1b['isLimit'](_0x5a09b7)&&(_0x5a09b7['nextSibling']||_0x53066f['isAtEnd']?_0x14c22c&&_0x14c22c['parent']==_0x5a09b7||(_0x14c22c=_0x5a09b7,_0x1d2ae9(_0x2513fd['previousPosition']),_0x1b17c9=!0x0):_0x1022fd=_0x1022fd||_0x2513fd['previousPosition']));}function _0x1d2ae9(_0x121dba){const {id:_0x50c7e8,authorId:_0x526797}=_0x1a725b['_splitMarkerName'](_0x355e48['markerName']),_0x461d3c=_0x450193['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x59cf82,'data-suggestion':_0x50c7e8,'data-author-id':_0x526797}),_0x2ef665=_0x450193['mapper']['toViewPosition'](_0x121dba);_0x3ab123&&_0x1a725b['activeMarkers']['includes'](_0x355e48['markerName'])&&_0x450193['writer']['addClass']('ck-suggestion-marker--active',_0x461d3c),_0x450193['writer']['insert'](_0x2ef665,_0x461d3c),_0x450193['mapper']['bindElementToMarker'](_0x461d3c,_0x355e48['markerName']);}_0x3091ed||_0x1b17c9||!_0x1022fd||_0x1d2ae9(_0x1022fd);};}class K extends _0x15e299{static get['requires'](){return[_0x3e79da];}['init'](){const _0x5bb66c=this['editor'],_0x21c4d2=_0x5bb66c['plugins']['get']('TrackChangesEditing');_0x21c4d2['enableCommand']('delete');const _0x2db55b=_0x5bb66c['commands']['get']('deleteForward');_0x21c4d2['enableCommand']('deleteForward',(_0x53f75c,_0x22f56e={})=>{const _0x1c5fca=_0x5bb66c['model']['createSelection'](_0x5bb66c['model']['document']['selection']);_0x1c5fca['isCollapsed']&&_0x5bb66c['model']['modifySelection'](_0x1c5fca,{'direction':'forward','unit':_0x22f56e['unit']});const _0x33223b=_0x1c5fca['getFirstRange'](),_0x38db3d=_0x19c427['fromRange'](_0x33223b);let _0xbf5d2;_0x53f75c(_0x22f56e),_0xbf5d2='$graveyard'==_0x38db3d['root']['rootName']?_0x5bb66c['model']['createRange'](_0x33223b['start']):_0x5bb66c['model']['createRange'](_0x38db3d['start'],_0x38db3d['end']),_0x38db3d['detach'](),_0x5bb66c['model']['enqueueChange'](_0x2db55b['buffer']['batch'],_0x5525b6=>{_0x2db55b['buffer']['lock'](),_0x5525b6['setSelection'](_0x5525b6['createRange'](_0xbf5d2['end'])),_0x2db55b['buffer']['unlock']();});}),_0x5bb66c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5bb66c,'merge'),{'priority':'high'}),_0x5bb66c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x10bdd4,_0x4b6ef7,_0x453815)=>{_0x453815['options']['showSuggestionHighlights']&&De(_0x5bb66c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x10bdd4,_0x4b6ef7,_0x453815);},{'priority':'high'}),_0x5bb66c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x38ee9e,_0x53a85a,_0x356b33)=>{const _0x22b1da=_0x356b33['mapper']['markerNameToElements'](_0x53a85a['markerName']);if(_0x22b1da){for(const _0x26a001 of _0x22b1da)_0x26a001['is']('uiElement')&&(_0x356b33['mapper']['unbindElementFromMarkerName'](_0x26a001,_0x53a85a['markerName']),_0x356b33['writer']['remove'](_0x26a001));}},{'priority':'high'});}}class H extends _0x15e299{['afterInit'](){const _0x1caa5b=this['editor'];if(!_0x1caa5b['plugins']['has']('ListEditing'))return;const _0x50b4a3=_0x1caa5b['locale'],_0x236829=_0x1caa5b['plugins']['get']('TrackChangesEditing'),_0x468a24=_0x1caa5b['plugins']['has']('TodoListEditing'),_0x438a09=!!_0x1caa5b['config']['get']('list.multiBlock');function _0x2b59b0(_0x44c6c8){return{'type':'format','content':''+o(_0x50b4a3,'*Set\x20format:*\x20%0',_0x44c6c8)};}function _0x4812d1(_0xc90808){return{'type':'format','content':''+o(_0x50b4a3,'*Remove\x20format:*\x20%0',_0xc90808)};}_0x236829['enableDefaultAttributesIntegration']('numberedList'),_0x236829['enableDefaultAttributesIntegration']('bulletedList'),_0x236829['enableDefaultAttributesIntegration']('customNumberedList'),_0x236829['enableDefaultAttributesIntegration']('customBulletedList'),_0x236829['enableDefaultAttributesIntegration']('indentList'),_0x236829['enableDefaultAttributesIntegration']('outdentList'),_0x236829['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x236829['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x236829['registerBlockAttribute']('listItemId'),_0x236829['registerBlockAttribute']('listType'),_0x236829['registerBlockAttribute']('listIndent'),_0x438a09&&(_0x236829['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x236829['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x468a24&&(_0x236829['enableDefaultAttributesIntegration']('todoList'),_0x236829['enableDefaultAttributesIntegration']('checkTodoList'),_0x236829['registerBlockAttribute']('todoListChecked'),_0x236829['descriptionFactory']['registerDescriptionCallback'](_0x33e17b=>{const {data:_0x406577}=_0x33e17b;if(_0x406577&&'todoListChecked'==_0x406577['key'])return{'type':'format','content':_0x406577['newValue']?o(_0x50b4a3,'*Check\x20item*'):o(_0x50b4a3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x554524=>{if(_0x554524['batch']['isUndo'])return!0x1;let _0x356fc8=!0x1;const _0x4a8ae9=_0x236829['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x438046=>'todoListChecked'===_0x236829['_getAttributeKey'](_0x438046));for(const _0x1b0d9c of _0x4a8ae9){'todo'!=_0x1b0d9c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x236829['_findSuggestions'](_0x1b0d9c['getFirstRange'](),'attribute')['find'](_0x5e27ef=>'listType'===_0x236829['_getAttributeKey'](_0x5e27ef['suggestion']))||(_0x554524['removeMarker'](_0x1b0d9c['getFirstMarker']()),_0x356fc8=!0x0));}return _0x356fc8;})),_0x236829['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x50b4a3,'FORMAT_INDENT'));const _0x41643c={'type':'format','content':''};_0x236829['descriptionFactory']['registerDescriptionCallback'](_0x8b4696=>{const {data:_0x2e59ae}=_0x8b4696;if(!_0x2e59ae||'listType'!=_0x2e59ae['key'])return;let _0x30f7e5=_0x8b4696['head'];for(;_0x30f7e5;){if(_0x30f7e5['data']&&(('listStyle'==_0x30f7e5['data']['key']||'listMarkerStyle'==_0x30f7e5['data']['key'])&&(_0x30f7e5['data']['newValue']&&'default'!=_0x30f7e5['data']['newValue']||'default'!=_0x30f7e5['data']['oldValue']&&!_0x2e59ae['newValue'])||!_0x438a09&&_0x30f7e5['data']['key']==m))return _0x41643c;_0x30f7e5=_0x30f7e5['next'];}if(null==_0x2e59ae['newValue'])switch(_0x2e59ae['oldValue']){case'bulleted':return _0x4812d1(o(_0x50b4a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4812d1(o(_0x50b4a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4812d1(o(_0x50b4a3,'ELEMENT_TODO_LIST'));}switch(_0x2e59ae['newValue']){case'bulleted':return _0x2b59b0(o(_0x50b4a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b59b0(o(_0x50b4a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b59b0(o(_0x50b4a3,'ELEMENT_TODO_LIST'));}}),_0x236829['descriptionFactory']['registerDescriptionCallback'](_0x388baf=>{const {data:_0x4fa6cb}=_0x388baf;if(_0x4fa6cb&&'listIndent'==_0x4fa6cb['key'])return null==_0x4fa6cb['newValue']||null==_0x4fa6cb['oldValue']&&0x0==_0x4fa6cb['newValue']?_0x41643c:void 0x0;}),_0x236829['descriptionFactory']['registerDescriptionCallback'](_0x1e2bfd=>{if('attribute'!=_0x1e2bfd['type'])return;const {data:_0x5d1b9a}=_0x1e2bfd;if(!_0x5d1b9a||'listItemId'!=_0x5d1b9a['key'])return;const _0x3e60f0=Te(_0x1e2bfd);return'newValue'==_0x3e60f0?{'type':'format','content':o(_0x50b4a3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3e60f0?{'type':'format','content':o(_0x50b4a3,'*Split:*\x20list\x20item')}:_0x41643c;}),_0x1caa5b['model']['document']['registerPostFixer'](_0x83f29c=>this['listItemIdFixer'](_0x83f29c)),_0x1caa5b['model']['document']['registerPostFixer'](_0x28a6d1=>this['noTrackChangesFixer'](_0x28a6d1)),_0x1caa5b['model']['document']['on']('change:data',(_0x2a0ad,_0x5ab8be)=>{if(_0x5ab8be['isUndo']||!_0x5ab8be['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x177182){if(_0x177182['batch']['isUndo']||!_0x177182['batch']['isLocal'])return!0x1;let _0x1d3c72=!0x1;const _0xae8de4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x565c11=>_0x565c11['data']&&'listItemId'==_0x565c11['data']['key'])['filter'](_0x5d3de2=>_0x5d3de2['data']['newValue']&&_0x5d3de2['data']['oldValue']);for(const _0x4f2f86 of _0xae8de4)Te(_0x4f2f86)||(_0x177182['removeMarker'](_0x4f2f86['getFirstMarker']()),_0x1d3c72=!0x0);return _0x1d3c72;}['noTrackChangesFixer'](_0x1690cc){if(_0x1690cc['batch']['isUndo']||!_0x1690cc['batch']['isLocal'])return!0x1;const _0x16b6a8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x16b6a8['trackChangesCommand']['value'])return!0x1;let _0x6bdad3=!0x1;const _0x28ba1a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x54c9c9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3ec95e=>'attribute'==_0x3ec95e['type'])['filter'](_0x1c6344=>_0x28ba1a['includes'](_0x1c6344['attributeKey']));if(0x0==_0x54c9c9['length'])return _0x6bdad3;for(const _0x12684e of _0x54c9c9){const _0x18c827=_0x16b6a8['_findSuggestions'](_0x12684e['range'],'attribute')['filter'](_0x282142=>!_0x282142['meta']['isNextTo'])['map'](_0x12f353=>_0x12f353['suggestion'])['filter'](_0x14279f=>{const _0x468062=_0x16b6a8['_getAttributeKey'](_0x14279f);return _0x28ba1a['includes'](_0x468062);});if(_0x18c827['length']){for(const _0x3465e3 of _0x18c827)_0x1690cc['removeMarker'](_0x3465e3['getFirstMarker']());_0x6bdad3=!0x0;}}return _0x6bdad3;}['assureChains'](){const _0x2fcc9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcbe164=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f8ef1;const _0x17df53=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2c93cd=>{if(_0x2c93cd['data']['oldRange']||!_0x2c93cd['data']['newRange'])return null;if(!_0x2c93cd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x556149}=_0x2fcc9a['_splitMarkerName'](_0x2c93cd['name']);if(!_0x2fcc9a['hasSuggestion'](_0x556149))return null;const _0x38fb10=_0x2fcc9a['getSuggestion'](_0x556149);return _0xcbe164['includes'](_0x38fb10['data']['key']);})['map'](_0x19b544=>{const {id:_0x2450b6}=_0x2fcc9a['_splitMarkerName'](_0x19b544['name']),_0x3aa0c3=_0x2fcc9a['getSuggestion'](_0x2450b6);return _0x4f8ef1=_0x3aa0c3['attributes']['groupId'],_0x3aa0c3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x17df53['size'])return;const _0x5706d8=_0x2fcc9a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c72b6=>'attribute'==_0x5c72b6['type']&&_0x5c72b6['data']&&_0xcbe164['includes'](_0x5c72b6['data']['key'])&&_0x5c72b6['attributes']['groupId']!=_0x4f8ef1)['map'](_0x6bf06c=>({'listItem':_0x6bf06c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x6bf06c['attributes']['groupId']})),_0x2bb75e=new Set();for(const {groupId:_0x343838,listItem:_0x4abcb8}of _0x5706d8)_0x17df53['has'](_0x4abcb8)&&_0x2bb75e['add'](_0x343838);for(const _0x3075ad of _0x2fcc9a['getSuggestions']())_0x2bb75e['has'](_0x3075ad['attributes']['groupId'])&&_0x3075ad['setAttribute']('groupId',_0x4f8ef1);}['_supportLegacySuggestions'](){const _0x5103d7=this['editor'],_0x444a58=_0x5103d7['locale'],_0x2e8e9f=_0x5103d7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2e8e9f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x43ac94,_0x689949){const _0x2de74a=[];for(let _0x3ccd17 of _0x43ac94)_0x3ccd17['start']['nodeAfter']===_0x3ccd17['end']['parent']&&(_0x3ccd17=_0x5103d7['model']['createRange'](_0x5103d7['model']['createPositionAt'](_0x3ccd17['start']['nodeAfter'],0x0))),_0x2de74a['push'](_0x3ccd17);_0x5103d7['model']['change'](_0x49fe37=>{const _0x4c5177=_0x5103d7['model']['document']['selection'],_0x3627cb=Array['from'](_0x4c5177['getRanges']())['map'](_0x597492=>_0x19c427['fromRange'](_0x597492));_0x49fe37['setSelection'](_0x2de74a),_0x5103d7['commands']['get'](_0x689949['commandName'])['refresh'](),_0x689949['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5103d7['execute'](_0x689949['commandName'],..._0x689949['commandParams']),_0x49fe37['setSelection'](_0x3627cb);for(const _0xaf69e5 of _0x3627cb)_0xaf69e5['detach']();});}),_0x2e8e9f['descriptionFactory']['registerElementLabel'](function(_0x210bda){const _0x5946da=!_0x5103d7['model']['schema']['isObject'](_0x210bda),_0xaa55cc=_0x210bda['previousSibling'],_0x31c232=_0x210bda['nextSibling'],_0x3af524=_0x210bda['getAttribute']('listItemId'),_0x1ae2c4=!_0xaa55cc||_0xaa55cc['getAttribute']('listItemId')!==_0x3af524,_0x16ba6f=!_0x31c232||_0x31c232['getAttribute']('listItemId')!==_0x3af524;return _0x5946da&&Boolean(_0x3af524)&&_0x1ae2c4&&_0x16ba6f;},_0x561a25=>o(_0x444a58,'ELEMENT_LIST_ITEM',_0x561a25));}['_registerLegacyDescription'](){const _0x1ea502=this['editor'],_0x11ef75=_0x1ea502['locale'];function _0x372ce1(_0x7ab125){const _0x34267b=_0x1ea502['commands']['get']('bulletedList')['value'],_0x2a99f7=_0x1ea502['commands']['get']('numberedList')['value'];return'numberedList'===_0x7ab125?_0x34267b:_0x2a99f7;}_0x1ea502['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4829a9){if('formatBlock'!=_0x4829a9['type'])return;const {data:_0x26c4e8}=_0x4829a9;if(!_0x26c4e8)return;let _0x375bd3,_0x22588b,_0x422ffb,_0x3b7215;switch(_0x26c4e8['commandName']){case'bulletedList':_0x422ffb=_0x26c4e8['commandParams'][0x0]['forceValue'],_0x3b7215=_0x372ce1(_0x26c4e8['commandName']),_0x375bd3=_0x422ffb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b7215&&_0x1ea502['config']['get']('list.multiBlock')||(_0x375bd3='*Change\x20to:*\x20%0'),_0x22588b={'type':'format','content':o(_0x11ef75,_0x375bd3,o(_0x11ef75,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x422ffb=_0x26c4e8['commandParams'][0x0]['forceValue'],_0x3b7215=_0x372ce1(_0x26c4e8['commandName']),_0x375bd3=_0x422ffb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b7215&&_0x1ea502['config']['get']('list.multiBlock')||(_0x375bd3='*Change\x20to:*\x20%0'),_0x22588b={'type':'format','content':o(_0x11ef75,_0x375bd3,o(_0x11ef75,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x375bd3='*Indent:*\x20%0',_0x22588b={'type':'format','content':o(_0x11ef75,_0x375bd3,o(_0x11ef75,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x375bd3=function(_0x9391eb){const _0xd63fcb=_0x9391eb['getFirstRange']();let _0x355546=_0xd63fcb['start']['nodeAfter'];for(;_0x355546&&_0xd63fcb['containsItem'](_0x355546);){if(_0x355546['getAttribute']('listIndent')>0x0)return!0x1;_0x355546=_0x355546['nextSibling'];}return!0x0;}(_0x4829a9)?o(_0x11ef75,'*Format:*\x20remove\x20from\x20%0',o(_0x11ef75,function(_0x14e43e){return'ELEMENT_'+_0x14e43e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4829a9))):o(_0x11ef75,'*Outdent:*\x20%0',o(_0x11ef75,'ELEMENT_LIST_ITEM')),_0x22588b={'type':'format','content':_0x375bd3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x26c4e8['multipleBlocks']&&(_0x375bd3='*Merge:*\x20%0',_0x22588b={'type':'deletion','content':o(_0x11ef75,_0x375bd3,o(_0x11ef75,'ELEMENT_LIST_ITEM'))});}return _0x22588b;});}}function Te(_0x3e5012){let _0x2727ff=_0x3e5012['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2727ff;){const _0x5900d6=_0x2727ff['getAttribute']('listItemId');if(!_0x5900d6)return!0x1;if(_0x5900d6==_0x3e5012['data']['newValue'])return'newValue';if(_0x5900d6==_0x3e5012['data']['oldValue'])return'oldValue';_0x2727ff=_0x2727ff['previousSibling'];}return!0x1;}class q extends _0x15e299{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3a9082=this['editor']['config']['get']('list.properties'),_0x1efea3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a9082['styles']&&(_0x1efea3['enableDefaultAttributesIntegration']('listStyle'),_0x1efea3['registerBlockAttribute']('listStyle')),_0x3a9082['reversed']&&(_0x1efea3['enableDefaultAttributesIntegration']('listReversed'),_0x1efea3['registerBlockAttribute']('listReversed')),_0x3a9082['startIndex']&&(_0x1efea3['enableDefaultAttributesIntegration']('listStart'),_0x1efea3['registerBlockAttribute']('listStart'));const _0x5b4f43={'type':'format','content':''};_0x1efea3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x22de11=this['editor']['locale'];_0x1efea3['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x22de11,'FORMAT_LIST_REVERSED')),_0x1efea3['descriptionFactory']['registerDescriptionCallback'](_0x1b48c1=>{const {data:_0x4e8b78}=_0x1b48c1;if(_0x4e8b78&&'listReversed'==_0x4e8b78['key'])return null==_0x4e8b78['newValue']||0x0==_0x4e8b78['newValue']&&null==_0x4e8b78['oldValue']?_0x5b4f43:void 0x0;}),_0x1efea3['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x22de11,'FORMAT_LIST_START')),_0x1efea3['descriptionFactory']['registerDescriptionCallback'](_0x114840=>{const {data:_0x524b66}=_0x114840;if(_0x524b66&&'listStart'==_0x524b66['key'])return null==_0x524b66['newValue']||0x1==_0x524b66['newValue']&&null==_0x524b66['oldValue']?_0x5b4f43:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2e4c8e=>{if(_0x2e4c8e['batch']['isUndo'])return!0x1;let _0x555410=!0x1;const _0x29a58f=_0x1efea3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x270576=>{const _0x1b622a=_0x1efea3['_getAttributeKey'](_0x270576);return'listStart'==_0x1b622a||'listReversed'==_0x1b622a;});for(const _0xcd504e of _0x29a58f){const _0x36373b=_0xcd504e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x36373b||'customNumbered'==_0x36373b)continue;_0x1efea3['_findSuggestions'](_0xcd504e['getFirstRange'](),'attribute')['find'](_0x25ca8f=>'listType'==_0x1efea3['_getAttributeKey'](_0x25ca8f['suggestion']))||(_0x2e4c8e['removeMarker'](_0xcd504e['getFirstMarker']()),_0x555410=!0x0);}return _0x555410;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xf76bc3){const _0x4e20f4=this['editor']['locale'],{data:_0x317673}=_0xf76bc3,_0x5330f8={'type':'format','content':''};if(!_0x317673||'listStyle'!=_0x317673['key'])return;if(!_0x317673['oldValue'])return'default'==_0x317673['newValue']?_0x5330f8:{'type':'format','content':''+o(_0x4e20f4,'*Set\x20format:*\x20%0',o(_0x4e20f4,this['_getTranslationKeyForListStyle'](_0x317673['newValue'])))};if(!_0x317673['newValue']){if('default'==_0x317673['oldValue'])return _0x5330f8;let _0x1795f1=_0xf76bc3['head'];for(;_0x1795f1;){if(_0x1795f1['data']&&'listType'==_0x1795f1['data']['key']&&_0x1795f1['data']['newValue'])return _0x5330f8;_0x1795f1=_0x1795f1['next'];}return{'type':'format','content':''+o(_0x4e20f4,'*Remove\x20format:*\x20%0',o(_0x4e20f4,this['_getTranslationKeyForListStyle'](_0x317673['oldValue'])))};}if('default'!=_0x317673['newValue'])return{'type':'format','content':''+o(_0x4e20f4,'*Set\x20format:*\x20%0',o(_0x4e20f4,this['_getTranslationKeyForListStyle'](_0x317673['newValue'])))};let _0x4ab217=_0xf76bc3['head'];for(;_0x4ab217;){if(_0x4ab217['data']&&'listType'==_0x4ab217['data']['key']&&_0x4ab217['data']['newValue']&&_0x4ab217['data']['oldValue'])return _0x5330f8;_0x4ab217=_0x4ab217['next'];}return{'type':'format','content':o(_0x4e20f4,'*Set\x20format:*\x20%0',o(_0x4e20f4,'ELEMENT_'+_0xf76bc3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x126b26=this['editor'],_0x117f1e=_0x126b26['locale'];_0x126b26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xad4fd4=>{if('formatBlock'!=_0xad4fd4['type'])return;const {data:_0xf73a36}=_0xad4fd4;if(!_0xf73a36)return;let _0x1e03fa,_0x27afa9;switch(_0xf73a36['commandName']){case'listStyle':_0x1e03fa='*Change\x20to:*\x20%0',_0x27afa9={'type':'format','content':o(_0x117f1e,_0x1e03fa,o(_0x117f1e,this['_getTranslationKeyForListStyle'](_0xf73a36['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1e03fa=_0xf73a36['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27afa9={'type':'format','content':o(_0x117f1e,_0x1e03fa)};break;case'listStart':_0x1e03fa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27afa9={'type':'format','content':o(_0x117f1e,_0x1e03fa,_0xf73a36['commandParams'][0x0]['startIndex'])};}return _0x27afa9;});}['_getTranslationKeyForListStyle'](_0x231777){return'ELEMENT_'+function(_0x334a32){if(Se['includes'](_0x334a32))return'bulleted';if(_e['includes'](_0x334a32))return'numbered';return null;}(_0x231777)['toUpperCase']()+'_LIST_'+_0x231777['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x15e299{['afterInit'](){const _0xdf3879=this['editor'];_0xdf3879['commands']['get']('emoji')&&_0xdf3879['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x15e299{static get['requires'](){return[_0x38ef1d];}['init'](){const _0xd54a72=this['editor'],_0x5e5276=_0xd54a72['plugins']['get']('TrackChangesEditing'),_0xcc1bb0=_0xd54a72['commands']['get']('enter');_0x5e5276['enableCommand']('enter',()=>{_0xd54a72['model']['change'](_0x363688=>{const _0x17c382=_0xd54a72['model']['document']['selection'],_0x3e0373=_0x17c382['getFirstPosition'](),_0x24356c=_0x19c427['fromRange'](_0x17c382['getFirstRange']());if(_0xcc1bb0['enterBlock'](_0x363688)){const _0x32137d=_0xd54a72['model']['createPositionAt'](_0x3e0373['parent']['nextSibling'],0x0),_0x2dabbe=_0x363688['createRange'](_0x3e0373,_0x32137d);_0x5e5276['markInsertion'](_0x2dabbe);}else _0x363688['setSelection'](_0x363688['createRange'](_0x24356c['end']));_0x24356c['detach'](),_0xcc1bb0['fire']('afterExecute',{'writer':_0x363688});});}),_0xd54a72['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xd54a72,'split'),{'priority':'high'}),_0xd54a72['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x22d42a,_0x5bc68d,_0xc36c96)=>{const _0x401500=_0xc36c96['mapper']['markerNameToElements'](_0x5bc68d['markerName']);if(_0x401500){for(const _0x2871c4 of _0x401500)_0x2871c4['hasClass']('ck-suggestion-marker-split')&&(_0xc36c96['mapper']['unbindElementFromMarkerName'](_0x2871c4,_0x5bc68d['markerName']),_0xc36c96['writer']['remove'](_0x2871c4));}},{'priority':'high'}),_0xd54a72['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x49f79d,_0x4599d5,_0x3d3196)=>{_0x3d3196['options']['showSuggestionHighlights']&&De(_0xd54a72,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x49f79d,_0x4599d5,_0x3d3196);},{'priority':'high'});}}class Q extends _0x15e299{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1f5233=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f5233['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1f5233['enableCommand']('findNext'),_0x1f5233['enableCommand']('findPrevious'),_0x1f5233['enableCommand']('replace'),_0x1f5233['enableCommand']('replaceAll');}['handleFindCommand'](_0x41145a,_0x249d79,_0x2cfde3={}){const _0x59bf14=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x41145a(_0x53fd43=>{let _0x1aae26=('string'==typeof _0x249d79?_0x59bf14['findByTextCallback'](_0x249d79,_0x2cfde3):_0x249d79)(_0x53fd43);Array['isArray'](_0x1aae26)&&(_0x1aae26={'results':_0x1aae26,'searchText':'string'==typeof _0x249d79?_0x249d79:''});const _0x215229=_0x1aae26['results']['filter'](_0x14d1bb=>!0x1===this['_isInDeletionRange'](_0x14d1bb,_0x53fd43['item']));return{..._0x1aae26,'results':_0x215229};},_0x2cfde3);}['_isInDeletionRange'](_0x4421b9,_0x26c3c2){const _0x1562ea=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26c3c2,_0x4421b9['start']),this['editor']['model']['createPositionAt'](_0x26c3c2,_0x4421b9['end']));for(const _0x44e2e5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1562ea['getIntersection'](_0x44e2e5['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x15e299{['afterInit'](){const _0x3dda2b=this['editor']['locale'],_0x4f8079=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x57c8bb,commandName:_0x38b865}of eo)this['editor']['plugins']['has'](_0x57c8bb)&&(_0x4f8079['enableDefaultAttributesIntegration'](_0x38b865),_0x4f8079['registerInlineAttribute'](_0x38b865));_0x4f8079['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3dda2b,'FORMAT_FONT_SIZE')),_0x4f8079['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3dda2b,'FORMAT_FONT_FAMILY')),_0x4f8079['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3dda2b,'FORMAT_FONT_COLOR')),_0x4f8079['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3dda2b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27e619=this['editor'],_0x17c0d7=_0x27e619['locale'];_0x27e619['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2430ad=>{const _0x1a61e4=_0x17c0d7['t'];if('formatInline'!=_0x2430ad['type'])return;const {data:_0x3f7b73}=_0x2430ad;if(null!=_0x3f7b73){if('fontSize'==_0x3f7b73['commandName']){const _0x111be1=_0x3f7b73['commandParams'][0x0]['value'];if(_0x111be1){const _0x129702=_0x1a61e4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4fe416=>_0x4fe416['model']==_0x111be1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x17c0d7,'*Set\x20font\x20size:*\x20%0',_0x129702)};}return{'type':'format','content':o(_0x17c0d7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3f7b73['commandName']){const _0x40c2ba=_0x3f7b73['commandParams'][0x0]['value'];return _0x40c2ba?{'type':'format','content':o(_0x17c0d7,'*Set\x20font\x20family:*\x20%0',_0x40c2ba)}:{'type':'format','content':o(_0x17c0d7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3f7b73['commandName']){const _0x10d89b=_0x3f7b73['commandParams'][0x0]['value'];if(_0x10d89b){const _0x3f38a2=_0x2af9bc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x582e77=>_0x582e77['model']==_0x10d89b);let _0x2673dd=_0x10d89b,_0x203f32='';return _0x3f38a2&&(_0x2673dd=_0x3f38a2['label'],_0x203f32=_0x1a61e4(_0x2673dd)['toLowerCase']()),{'type':'format','content':o(_0x17c0d7,'*Set\x20font\x20color:*\x20%0',_0x203f32)['trim'](),'color':{'value':_0x10d89b,'title':_0x203f32||_0x2673dd}};}return{'type':'format','content':o(_0x17c0d7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3f7b73['commandName']){const _0x3e287d=_0x3f7b73['commandParams'][0x0]['value'];if(_0x3e287d){const _0x32a643=_0x2af9bc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x439883=>_0x439883['model']==_0x3e287d);let _0x364734=_0x3e287d,_0x37d936='';return _0x32a643&&(_0x364734=_0x32a643['label'],_0x37d936=_0x1a61e4(_0x364734)['toLowerCase']()),{'type':'format','content':o(_0x17c0d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x37d936)['trim'](),'color':{'value':_0x3e287d,'title':_0x37d936||_0x364734}};}return{'type':'format','content':o(_0x17c0d7,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x15e299{['afterInit'](){const _0x1c4b14=this['editor'],_0x31a0b3=_0x1c4b14['plugins']['get']('TrackChangesEditing'),_0x2335dc=_0x1c4b14['commands']['get']('copyFormat'),_0x50cad7=_0x1c4b14['commands']['get']('pasteFormat');_0x2335dc&&_0x50cad7&&(_0x31a0b3['enableDefaultAttributesIntegration']('pasteFormat'),_0x31a0b3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5717c7=this['editor'],_0x1dc38b=_0x5717c7['locale'];_0x5717c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f67fa=>{if('formatBlock'!=_0x3f67fa['type']&&'formatInline'!=_0x3f67fa['type'])return;const {data:_0x24da2f}=_0x3f67fa;if(_0x24da2f&&'pasteFormat'===_0x24da2f['commandName']){const _0x44af9a=[],_0x56cdd7=_0x24da2f['commandParams'][0x0];for(const [_0x2306e4,_0x26b56b]of Object['entries'](_0x56cdd7))_0x44af9a['push'](ro(_0x5717c7,_0x2306e4,_0x26b56b));return _0x44af9a['length']?{'type':'format','content':o(_0x1dc38b,'*Set\x20format\x20to:*\x20%0',_0x44af9a['join'](',\x20'))}:{'type':'format','content':o(_0x1dc38b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xd4fde8,_0x55b6ac,_0x1deaa8){const _0x59dc70=_0xd4fde8['locale']['t'],_0x45c9b6=_0x55b6ac['split'](/(?=[A-Z])/)['join']('\x20'),_0x1312de=_0x59dc70(_0x45c9b6['charAt'](0x0)['toUpperCase']()+_0x45c9b6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1deaa8)return _0x1312de;if('fontColor'===_0x55b6ac||'fontBackgroundColor'===_0x55b6ac){const _0x1689cf=_0x2af9bc(_0xd4fde8['config']['get']('fontColor.colors'))['find'](_0x25c43c=>_0x25c43c['model']==_0x1deaa8);return _0x1312de+'\x20('+(_0x1689cf?_0x59dc70(_0x1689cf['label'])['toLowerCase']():_0x1deaa8)+')';}if('fontSize'===_0x55b6ac&&isNaN(parseFloat(_0x1deaa8))){const _0x3de405=_0xd4fde8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xd4fde8['config']['get']('fontSize.options'))['find'](_0x4b54cc=>_0x4b54cc['model']==_0x1deaa8);return _0x1312de+'\x20('+(_0x3de405?_0x59dc70(_0x3de405['title'])['toLowerCase']():_0x1deaa8)+')';}return _0x1312de+'\x20('+_0x1deaa8+')';}class Z extends _0x15e299{['_headingOptions'];['afterInit'](){const _0x3c539a=this['editor'];if(!_0x3c539a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3c539a['config']['get']('heading.options');const _0x5f080a=_0x3c539a['locale'],_0x250e83=_0x3c539a['plugins']['get']('TrackChangesEditing');_0x250e83['enableDefaultAttributesIntegration']('heading');for(const _0xbae35a of this['_headingOptions'])'paragraph'!=_0xbae35a['model']&&_0x250e83['descriptionFactory']['registerElementLabel'](_0xbae35a['model'],_0x3b239f=>{const _0x4b29a7=this['_getHeadingLevel'](_0xbae35a['model']);return null!==_0x4b29a7?_0x16e2f3(_0x3b239f,_0x4b29a7):_0x53a68c(_0x3b239f,_0xbae35a['title']);});function _0x16e2f3(_0x536616,_0x58e881){return o(_0x5f080a,'ELEMENT_HEADING',[_0x536616,_0x58e881]);}function _0x53a68c(_0x5557cc,_0x32a440){return o(_0x5f080a,'ELEMENT_HEADING_CUSTOM',[_0x5557cc,_0x32a440]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb64bb=this['editor'],_0x336803=_0xdb64bb['locale'];function _0x174ee3(_0x21c252,_0x316c4b){return o(_0x336803,'ELEMENT_HEADING_CUSTOM',[_0x21c252,_0x316c4b]);}_0xdb64bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cb674=>{if('formatBlock'!=_0x4cb674['type'])return;const {data:_0x48ba6d}=_0x4cb674;if(_0x48ba6d&&'heading'==_0x48ba6d['commandName']){const _0x722232=_0x48ba6d['commandParams'][0x0]['value'],_0x5098b0=this['_getHeadingLevel'](_0x722232);if(null!==_0x5098b0)return{'type':'format','content':o(_0x336803,'*Change\x20to:*\x20%0',(_0x4d0b11=0x1,_0x12f6ea=_0x5098b0,o(_0x336803,'ELEMENT_HEADING',[_0x4d0b11,_0x12f6ea])))};const _0x33fee3=this['_headingOptions']['find'](_0x10cc8a=>_0x10cc8a['model']===_0x722232)['title'];return{'type':'format','content':o(_0x336803,'*Change\x20to:*\x20%0',_0x174ee3(0x1,_0x33fee3))};}var _0x4d0b11,_0x12f6ea;});}['_getHeadingLevel'](_0x2ab9b3){const _0x1d7d77=_0x2ab9b3['match'](/^heading(\d+)/);if(_0x1d7d77)return _0x1d7d77[0x1];const _0x4de672=this['_headingOptions']?.['find'](_0x495e15=>_0x495e15['model']==_0x2ab9b3);if(_0x4de672&&_0x4de672['view']){const _0x35fe74=_0x4de672['view'],_0x31ce7c=(_0x35fe74['name']??_0x35fe74)['match'](/^h(\d+)/);if(_0x31ce7c)return _0x31ce7c[0x1];}return null;}}class tt extends _0x15e299{['afterInit'](){const _0x4038e4=this['editor'];if(!_0x4038e4['plugins']['has']('HighlightEditing'))return;const _0xc6d237=_0x4038e4['plugins']['get']('TrackChangesEditing'),_0x185cbe=_0x4038e4['locale'];_0xc6d237['enableDefaultAttributesIntegration']('highlight'),_0xc6d237['registerInlineAttribute']('highlight'),_0xc6d237['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x185cbe,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d34ee=this['editor'],_0xa0650c=_0x1d34ee['locale'];_0x1d34ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41635d=>{if('formatInline'!=_0x41635d['type'])return;const {data:_0x4454b8}=_0x41635d;if(_0x4454b8&&'highlight'==_0x4454b8['commandName']){const _0x168222=_0xa0650c['t'],_0x5afeae=_0x4454b8['commandParams'][0x0]['value'];if(_0x5afeae){const _0x565b97=_0x1d34ee['config']['get']('highlight.options')['find'](_0xbe0c44=>_0xbe0c44['model']==_0x5afeae),_0x3503c2=_0x168222(_0x565b97['title'])['toLowerCase']();return{'type':'format','content':o(_0xa0650c,'*Set\x20highlight:*\x20%0',_0x3503c2),'color':{'value':_0x565b97['color'],'title':_0x565b97['title']}};}return{'type':'format','content':o(_0xa0650c,'*Remove\x20highlight*',o(_0xa0650c,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x15e299{['afterInit'](){const _0x460555=this['editor'];if(!_0x460555['plugins']['has']('HorizontalLineEditing'))return;_0x460555['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x33530d=_0x460555['plugins']['get']('TrackChangesEditing'),_0xfc477d=_0x460555['locale'];_0x33530d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x50e48b=>o(_0xfc477d,'ELEMENT_HORIZONTAL_LINE',_0x50e48b)),_0x460555['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x252a4c,{writer:_0x20936d,options:_0x8f1df6})=>{if(!_0x8f1df6['showSuggestionHighlights'])return null;const _0xe0ea93=_0x20936d['createContainerElement']('div'),_0x2968a6=_0x20936d['createEmptyElement']('hr');return _0x20936d['addClass']('ck-horizontal-line',_0xe0ea93),_0x20936d['insert'](_0x20936d['createPositionAt'](_0xe0ea93,0x0),_0x2968a6),_0xe0ea93;},'converterPriority':'high'});}}class nt extends _0x15e299{['afterInit'](){const _0xe4a315=this['editor'];if(!_0xe4a315['plugins']['has']('HtmlEmbed'))return;const _0xa6d836=_0xe4a315['plugins']['get']('TrackChangesEditing'),_0x3b6205=_0xe4a315['locale'];_0xa6d836['descriptionFactory']['registerElementLabel']('rawHtml',_0x24aa34=>o(_0x3b6205,'ELEMENT_HTML_EMBED',_0x24aa34)),_0xa6d836['enableDefaultAttributesIntegration']('htmlEmbed'),_0xa6d836['registerBlockAttribute']('value'),_0xa6d836['descriptionFactory']['registerDescriptionCallback'](_0x731541=>{if('attribute'!=_0x731541['type'])return;const {data:_0x4f4d4f}=_0x731541;if(_0x4f4d4f&&'value'==_0x4f4d4f['key']&&_0x731541['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x595523=o(_0x3b6205,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3b6205,'*Change\x20%0\x20content*',_0x595523)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445d45=this['editor'],_0x550955=_0x445d45['locale'];_0x445d45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28bded=>{if('formatBlock'!=_0x28bded['type'])return;const {data:_0x3e7bea}=_0x28bded;if(_0x3e7bea&&'htmlEmbed'==_0x3e7bea['commandName']){const _0x3d1af3=o(_0x550955,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x550955,'*Change\x20%0\x20content*',_0x3d1af3)};}});}}class et extends _0x15e299{['afterInit'](){const _0x151a8a=this['editor'];if(!_0x151a8a['plugins']['has']('ImageEditing'))return;const _0x288111=_0x151a8a['plugins']['get']('TrackChangesEditing'),_0x56d521=_0x151a8a['plugins']['get']('ImageUtils'),_0x2837b0=_0x151a8a['locale'];_0x288111['enableCommand']('insertImage'),_0x288111['descriptionFactory']['registerElementLabel']('imageBlock',_0x35a199=>o(_0x2837b0,'ELEMENT_IMAGE',_0x35a199)),_0x288111['descriptionFactory']['registerElementLabel']('imageInline',_0x31de21=>o(_0x2837b0,'ELEMENT_INLINE_IMAGE',_0x31de21)),_0x288111['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2837b0,'ELEMENT_CAPTION')),_0x151a8a['plugins']['has']('ImageUploadEditing')&&_0x288111['enableCommand']('uploadImage'),_0x151a8a['plugins']['has']('ImageBlockEditing')&&_0x151a8a['plugins']['has']('ImageInlineEditing')&&(_0x288111['enableCommand']('imageTypeInline',(_0x5a54f6,_0x5d6430)=>{const _0x28421c=_0x56d521['getClosestSelectedImageElement'](_0x151a8a['model']['document']['selection']);_0x151a8a['model']['change'](()=>{_0x288111['markBlockFormat'](_0x28421c,{'commandName':'imageTypeInline','commandParams':[_0x5d6430]},[],'convertBlockImageToInline');});}),_0x288111['enableCommand']('imageTypeBlock',(_0x970b36,_0x16d65d)=>{_0x151a8a['model']['change'](_0x4f0445=>{let _0x446021=_0x56d521['getClosestSelectedImageElement'](_0x151a8a['model']['document']['selection']),_0x2cf50f=_0x4f0445['createRangeOn'](_0x446021);const _0xf61c6e=_0x1e3d96['fromPosition'](_0x2cf50f['start'],'toPrevious'),_0x2ff5fa=_0x1e3d96['fromPosition'](_0x2cf50f['end'],'toNext');_0x288111['forceDefaultExecution'](()=>_0x970b36(_0x16d65d)),_0x446021=_0x56d521['getClosestSelectedImageElement'](_0x151a8a['model']['document']['selection']),_0x2cf50f=_0x4f0445['createRangeOn'](_0x446021);const _0x1389cd=_0x4f0445['createRange'](_0xf61c6e,_0x2ff5fa);_0xf61c6e['detach'](),_0x2ff5fa['detach'](),_0x288111['markBlockFormat'](_0x446021,{'commandName':'imageTypeInline','commandParams':[_0x16d65d]},[],'convertInlineImageToBlock'),_0x1389cd['start']['isBefore'](_0x2cf50f['start'])&&_0x288111['markInsertion'](_0x4f0445['createRange'](_0x1389cd['start'],_0x2cf50f['start']),'convertInlineImageToBlock'),_0x2cf50f['end']['isBefore'](_0x1389cd['end'])&&_0x288111['markInsertion'](_0x4f0445['createRange'](_0x2cf50f['end'],_0x1389cd['end']),'convertInlineImageToBlock');});}),_0x288111['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x288111['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x288111['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x288111['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x288111['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x288111['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4971b0])=>{const _0x2d826c=_0x288111['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e5ab0=_0x4971b0['start'],_0x57b004=_0x4971b0['end'];const _0x356638=_0x151a8a['model']['schema']['getNearestSelectionRange'](_0x2e5ab0,'backward'),_0x6ad66e=_0x151a8a['model']['schema']['getNearestSelectionRange'](_0x57b004,'forward');_0x356638['isCollapsed']&&(_0x2e5ab0=_0x356638['start']),_0x6ad66e['isCollapsed']&&(_0x57b004=_0x6ad66e['end']),_0x2d826c([_0x151a8a['model']['createRange'](_0x2e5ab0,_0x57b004)]);}),_0x288111['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x475200),_0x288111['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x475200)),_0x151a8a['plugins']['has']('ImageCaptionEditing')&&(_0x288111['enableCommand']('toggleImageCaption',(_0x3da0ca,_0x2c63e6)=>{const _0x46b9fb=_0x151a8a['plugins']['get']('ImageCaptionUtils');let _0x367c99=_0x56d521['getClosestSelectedImageElement'](_0x151a8a['model']['document']['selection']),_0x5a1205=_0x46b9fb['getCaptionFromImageModelElement'](_0x367c99);_0x151a8a['model']['change'](()=>{if(_0x5a1205)return void _0x288111['markDeletion'](_0x151a8a['model']['createRangeOn'](_0x5a1205));const _0x17ad94=_0x56d521['isBlockImage'](_0x367c99);_0x3da0ca(_0x2c63e6),_0x367c99=_0x56d521['getClosestSelectedImageElement'](_0x151a8a['model']['document']['selection']),_0x5a1205=_0x46b9fb['getCaptionFromImageModelElement'](_0x367c99),_0x288111['markInsertion'](_0x151a8a['model']['createRangeOn'](_0x5a1205),_0x17ad94?null:'imageCaption');});}),_0x288111['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x475200));const _0x4eb964=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27aa40(_0x115434,_0x2a0d7a){const _0x3f0aaf=_0x4eb964['findIndex'](({type:_0x57566d,subType:_0x106e4d})=>_0x115434['type']==_0x57566d&&_0x115434['subType']==_0x106e4d),_0x54bc93=_0x4eb964['findIndex'](({type:_0x2455a8,subType:_0x39b715})=>_0x2a0d7a['type']==_0x2455a8&&_0x2a0d7a['subType']==_0x39b715);if(_0x3f0aaf<0x0||_0x54bc93<0x0)return!0x1;const _0x4a345c=_0x115434['getFirstRange'](),_0x2f4db5=_0x2a0d7a['getFirstRange']();if((0x0==_0x3f0aaf||0x1==_0x3f0aaf)&&0x2==_0x54bc93&&_0x4a345c['isIntersecting'](_0x2f4db5))return!0x0;if(0x2==_0x3f0aaf&&0x3==_0x54bc93){const _0x39fafc=_0x288111['_findSuggestions'](_0x4a345c,'insertion')['filter'](({suggestion:_0x22058c,meta:_0x526eeb})=>_0x526eeb['isOwn']&&'convertInlineImageToBlock'==_0x22058c['subType']);if(_0x39fafc['length']>0x1&&_0x2f4db5['end']['isEqual'](_0x4a345c['start']))return!0x0;if(0x1==_0x39fafc['length']&&(_0x4a345c['start']['isEqual'](_0x2f4db5['end'])||_0x4a345c['end']['isEqual'](_0x2f4db5['start'])))return!0x0;}if(0x3==_0x3f0aaf&&0x3==_0x54bc93&&_0x4a345c['start']['isBefore'](_0x2f4db5['start'])){const _0x2c5394=_0x4a345c['end']['nodeAfter'],_0x42d541=_0x2f4db5['start']['nodeBefore'];return _0x56d521['isBlockImage'](_0x2c5394)&&_0x2c5394===_0x42d541;}return!0x1;}function _0x475200(_0x5c5627,_0xfd9935){return _0x27aa40(_0x5c5627,_0xfd9935)?[_0x5c5627,_0xfd9935]:_0x27aa40(_0xfd9935,_0x5c5627)?[_0xfd9935,_0x5c5627]:null;}_0x151a8a['plugins']['has']('ImageResize')&&(_0x288111['enableDefaultAttributesIntegration']('resizeImage'),_0x288111['registerBlockAttribute']('resizedWidth'),_0x288111['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2837b0,'FORMAT_IMAGE_SIZE'))),_0x151a8a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x288111['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x288111['registerBlockAttribute']('alt')),_0x151a8a['plugins']['has']('PictureEditing')&&(_0x288111['registerBlockAttribute']('sources'),_0x288111['descriptionFactory']['registerDescriptionCallback'](_0x160afa=>{if('attribute'!=_0x160afa['type'])return;const {data:_0x392071}=_0x160afa;return _0x392071&&'sources'==_0x392071['key']?{'type':'format','content':''}:void 0x0;})),_0x151a8a['plugins']['has']('ImageSizeAttributes')&&(_0x288111['registerBlockAttribute']('width'),_0x288111['registerBlockAttribute']('height'),_0x288111['descriptionFactory']['registerDescriptionCallback'](_0x3e1acf=>{if('attribute'!=_0x3e1acf['type'])return;const {data:_0x5df9ee}=_0x3e1acf;return!_0x5df9ee||'width'!=_0x5df9ee['key']&&'height'!=_0x5df9ee['key']?void 0x0:{'type':'format','content':''};})),_0x288111['descriptionFactory']['registerDescriptionCallback'](_0x18707b=>{if(!!_0x4eb964['find'](({type:_0x5390ce,subType:_0x53eba0})=>_0x18707b['type']==_0x5390ce&&_0x18707b['subType']==_0x53eba0))return _0x18707b['previous']?{}:void 0x0;}),_0x288111['descriptionFactory']['registerDescriptionCallback'](_0x4c2c4a=>{if('insertion'==_0x4c2c4a['type']||'deletion'==_0x4c2c4a['type']){const _0x4d127d=_0x4c2c4a['getContainedElement']();if(_0x4d127d&&_0x4d127d['is']('element','caption'))return{'type':'insertion'==_0x4c2c4a['type']?'addObject':'removeObject','element':_0x4d127d,'quantity':0x1};}}),_0x288111['descriptionFactory']['registerDescriptionCallback'](_0x29964f=>'formatBlock'==_0x29964f['type']&&'convertInlineImageToBlock'==_0x29964f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x29964f['type']&&'convertBlockImageToInline'==_0x29964f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x288111['descriptionFactory']['registerDescriptionCallback'](_0x236c2c=>{if('attribute'!=_0x236c2c['type'])return;const {data:_0x2e57c4}=_0x236c2c;if(!_0x2e57c4||'alt'!=_0x2e57c4['key'])return;const _0x54aeb2=_0x2e57c4['newValue'];return _0x54aeb2?{'type':'format','content':o(_0x2837b0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54aeb2+'\x22')}:{'type':'format','content':o(_0x2837b0,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xddce1e=this['editor'],_0x58f23a=_0xddce1e['locale'];_0xddce1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x475f75=>{if('formatBlock'!=_0x475f75['type']&&'formatInline'!=_0x475f75['type'])return;const {data:_0x597bf1}=_0x475f75;if(_0x597bf1){if('imageTextAlternative'==_0x597bf1['commandName']){const _0x27d428=_0x597bf1['commandParams'][0x0]['newValue'];return _0x27d428?{'type':'format','content':o(_0x58f23a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x27d428+'\x22')}:{'type':'format','content':o(_0x58f23a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x597bf1['commandName']){const _0x52a317=_0x597bf1['commandParams'][0x0]['width'];return _0x52a317?{'type':'format','content':o(_0x58f23a,'*Set\x20image\x20width:*\x20%0',_0x52a317)}:{'type':'format','content':o(_0x58f23a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x15e299{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2bd0d8=this['editor']['locale'],_0x480bc3=this['editor']['plugins']['get']('TrackChangesEditing');_0x480bc3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x480bc3['registerBlockAttribute']('src'),_0x480bc3['descriptionFactory']['registerDescriptionCallback'](_0x32e079=>{if('attribute'!=_0x32e079['type'])return;const {data:_0x44bd19}=_0x32e079;return _0x44bd19&&'src'==_0x44bd19['key']?_0x44bd19['newValue']&&_0x44bd19['oldValue']?{'type':'format','content':o(_0x2bd0d8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5bbec5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bbec5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5bbec5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5bbec5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5bbec5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b0604=this['editor'],_0x1417a7=_0x2b0604['locale'];_0x2b0604['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9aa0b9=>{if('formatBlock'!=_0x9aa0b9['type']&&'formatInline'!=_0x9aa0b9['type'])return;const {data:_0x50149e}=_0x9aa0b9;if(!_0x50149e||'replaceImageSource'!=_0x50149e['commandName'])return;return{'type':'format','content':o(_0x1417a7,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x15e299{['afterInit'](){const _0xc9244b=this['editor'];if(!_0xc9244b['plugins']['has']('ImageStyleEditing'))return;const _0xbcc42a=_0xc9244b['plugins']['get']('TrackChangesEditing'),_0x3f5dd4=_0xc9244b['plugins']['get']('ImageUtils'),_0x4373a0={};_0xbcc42a['enableCommand']('imageStyle',(_0x286e49,_0x24a7e4)=>{const _0x3254f1=_0xc9244b['plugins']['get']('Users')['me'],_0x37d974=_0xc9244b['commands']['get']('imageStyle');let _0x5972ca=_0x3f5dd4['getClosestSelectedImageElement'](_0xc9244b['model']['document']['selection']),_0x4e666f=_0xc9244b['model']['createRangeOn'](_0x5972ca),_0x2715ca=_0x37d974['value'];if(_0x2715ca==_0x24a7e4['value'])return;const _0x38a406={'commandName':'imageStyle','commandParams':[_0x24a7e4],'formatGroupId':_0x324767()};_0xc9244b['model']['change'](()=>{if(_0xbcc42a['getSuggestions']()['filter'](_0x2c87c5=>_0x2c87c5['isInContent']&&_0x3254f1==_0x2c87c5['author']&&('formatBlock'==_0x2c87c5['type']||'formatInline'==_0x2c87c5['type'])&&('imageStylePreApply'==_0x2c87c5['subType']||'imageStylePostApply'==_0x2c87c5['subType'])&&_0x2c87c5['getFirstRange']()['isEqual'](_0x4e666f))['forEach'](_0x175abf=>_0xbcc42a['discardSuggestion'](_0x175abf['head'])),_0x5972ca=_0x3f5dd4['getClosestSelectedImageElement'](_0xc9244b['model']['document']['selection']),_0x4e666f=_0xc9244b['model']['createRangeOn'](_0x5972ca),_0x37d974['refresh'](),_0xc9244b['commands']['get']('imageTypeInline')['refresh'](),_0xc9244b['commands']['get']('imageTypeBlock')['refresh'](),_0x2715ca=_0x37d974['value'],_0x2715ca!=_0x24a7e4['value'])return _0x3f5dd4['isInlineImage'](_0x5972ca)&&_0x37d974['shouldConvertImageType'](_0x24a7e4['value'],_0x5972ca)?(_0x286e49({..._0x24a7e4,'setImageSizes':!0x1}),_0x5972ca=_0x3f5dd4['getClosestSelectedImageElement'](_0xc9244b['model']['document']['selection']),void _0xbcc42a['markBlockFormat'](_0x5972ca,{..._0x38a406,'commandReversedParams':[{'value':_0x2715ca||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3f5dd4['isBlockImage'](_0x5972ca)?_0xbcc42a['markBlockFormat'](_0x5972ca,_0x38a406,[],'imageStylePostApply'):_0xbcc42a['markInlineFormat'](_0x4e666f,_0x38a406,'imageStylePostApply'));});});for(const _0x3deb0b of _0xc9244b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4373a0[_0x3deb0b['name']]=_0x3deb0b['title']['toLowerCase']();_0xbcc42a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xbcc42a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xbcc42a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xbcc42a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x47331b])=>{_0x3f5dd4['setImageNaturalSizeAttributes'](_0x47331b['getContainedElement']());}),_0xbcc42a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x581f40,_0x57abb3)=>{_0xbcc42a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x581f40,{'commandName':_0x57abb3['commandName'],'commandParams':_0x57abb3['commandReversedParams']});}),_0xbcc42a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x236a45,_0x59fe3e){if(_0x2188c9(_0x236a45,_0x59fe3e))return[_0x236a45,_0x59fe3e];if(_0x2188c9(_0x59fe3e,_0x236a45))return[_0x59fe3e,_0x236a45];return null;});const _0x1c48e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2188c9(_0xefcf0f,_0x2159fe){const _0x1dd6af=_0x1c48e0['findIndex'](({type:_0xbacbaa,subType:_0x55d90d})=>_0xefcf0f['type']==_0xbacbaa&&_0xefcf0f['subType']==_0x55d90d),_0x262bd4=_0x1c48e0['findIndex'](({type:_0x262a78,subType:_0x2dea14})=>_0x2159fe['type']==_0x262a78&&_0x2159fe['subType']==_0x2dea14);if(_0x1dd6af<0x0||_0x262bd4<0x0)return!0x1;const _0x9bfd50=_0xefcf0f['getFirstRange'](),_0x747dc9=_0x2159fe['getFirstRange']();if((0x0==_0x1dd6af||0x1==_0x1dd6af)&&0x2==_0x262bd4&&_0x9bfd50['isIntersecting'](_0x747dc9))return!0x0;if(0x2==_0x1dd6af&&0x3==_0x262bd4){const _0x84c2b8=_0xbcc42a['_findSuggestions'](_0x9bfd50,'insertion')['filter'](({suggestion:_0x4b43de,meta:_0x73f2d3})=>_0x73f2d3['isOwn']&&'convertInlineImageToBlock'==_0x4b43de['subType']);if(_0x84c2b8['length']>0x1&&_0x747dc9['end']['isEqual'](_0x9bfd50['start']))return!0x0;if(0x1==_0x84c2b8['length']&&(_0x9bfd50['start']['isEqual'](_0x747dc9['end'])||_0x9bfd50['end']['isEqual'](_0x747dc9['start'])))return!0x0;}if(0x3==_0x1dd6af&&0x3==_0x262bd4&&_0x9bfd50['start']['isBefore'](_0x747dc9['start'])){const _0x797267=_0x9bfd50['end']['nodeAfter'],_0xd636a6=_0x747dc9['start']['nodeBefore'];return _0x3f5dd4['isBlockImage'](_0x797267)&&_0x797267===_0xd636a6;}return!0x1;}_0xc9244b['model']['document']['registerPostFixer'](()=>{let _0x24436d=!0x1;const _0x599255=Array['from'](_0xc9244b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa2dbc3,data:_0x47857a}of _0x599255){const {group:_0xcdf651,type:_0x4d2d95,subType:_0x2c5325,id:_0x3d862a}=_0xbcc42a['_splitMarkerName'](_0xa2dbc3);if('suggestion'==_0xcdf651&&_0xbcc42a['hasSuggestion'](_0x3d862a)){if('formatBlock'==_0x4d2d95&&('imageStylePreApply'==_0x2c5325||'imageStylePostApply'==_0x2c5325)){const _0x243ff4=_0xbcc42a['getSuggestion'](_0x3d862a);if(_0x47857a['newRange']){const _0x25d5be=_0x243ff4['getFirstRange']()['getContainedElement']();if(_0x3f5dd4['isBlockImage'](_0x25d5be))continue;_0xbcc42a['discardSuggestion'](_0x243ff4),_0x24436d=!0x0;}}if('insertion'==_0x4d2d95&&'imageCaption'==_0x2c5325&&!_0x47857a['newRange']){const _0x31944e=_0xbcc42a['getSuggestion'](_0x3d862a);_0x31944e['next']&&_0x31944e['next']['isInContent']&&(_0xbcc42a['discardSuggestion'](_0x31944e['next']),_0x24436d=!0x0);}}}return _0x24436d;}),this['_registerLegacyDescription'](_0x4373a0);}['_registerLegacyDescription'](_0x5cd57f){const _0x1b831b=this['editor'],_0x166974=_0x1b831b['locale'];_0x1b831b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x194366=>{if('formatBlock'!=_0x194366['type']&&'formatInline'!=_0x194366['type'])return;const {data:_0x4abb00}=_0x194366;if(!_0x4abb00||'imageStyle'!=_0x4abb00['commandName'])return;const _0x7429e3=_0x4abb00['commandParams'][0x0]['value'];return _0x399807('side'===_0x7429e3?o(_0x166974,'FORMAT_SIDE_IMAGE'):_0x5cd57f[_0x7429e3]||_0x7429e3);function _0x399807(_0x224a48){return{'type':'format','content':o(_0x166974,'*Format:*\x20%0',_0x224a48)};}});}}class rt extends _0x15e299{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x54123b){super(_0x54123b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x242b2d=this['editor'],_0x54c2ab=_0x242b2d['commands']['get']('importWord'),_0x73c1c=_0x242b2d['commands']['get']('trackChanges');_0x54c2ab&&(_0x54c2ab['on']('execute',(_0x271f90,[,_0x160a07])=>{this['_trackChangesValueDuringImport']=_0x73c1c['value'],_0x160a07['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x54c2ab,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x54c2ab,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x73c1c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x242b2d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x28f080,_0x15d078){const {suggestions:_0x3e0788}=_0x15d078,_0x26ba54=this['editor']['commands']['get']('trackChanges'),_0x2ccaa1=_0x26ba54['value'];this['_trackChangesValueDuringImport']!==_0x2ccaa1&&(_0x26ba54['execute'](),this['_trackChangesExecuted']=!0x0),_0x3e0788&&_0x3e0788['forEach'](({id:_0x2f14a9,type:_0x5ef851,author:_0x3ddec2,created_at:_0x47b4d4})=>{const _0x35cc84={'id':_0x2f14a9,'type':_0x5ef851,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3ddec2,'createdAt':_0x47b4d4?new Date(_0x47b4d4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x35cc84);});}}class at extends _0x15e299{['afterInit'](){const _0x52252d=this['editor'],_0x460a0f=_0x52252d['plugins']['get']('TrackChangesEditing');if(_0x52252d['plugins']['has']('IndentEditing')&&(_0x460a0f['enableCommand']('indent'),_0x460a0f['enableCommand']('outdent')),_0x52252d['plugins']['has']('IndentBlock')){for(const _0x586588 of['indentBlock','outdentBlock'])_0x460a0f['enableDefaultAttributesIntegration'](_0x586588);}const _0x39e002=_0x52252d['locale'];_0x460a0f['registerBlockAttribute']('blockIndent'),_0x460a0f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x39e002,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x76149c=this['editor'],_0x31602e=_0x76149c['locale'],_0x3fafc6=_0x76149c['plugins']['get']('TrackChangesEditing');_0x3fafc6['descriptionFactory']['registerDescriptionCallback'](_0x15fe9c=>{if('formatBlock'!=_0x15fe9c['type'])return;const {data:_0x18e1a6}=_0x15fe9c;if(!_0x18e1a6)return;if('indentBlock'!=_0x18e1a6['commandName']&&'outdentBlock'!=_0x18e1a6['commandName'])return;const _0x39154f=_0x15fe9c['getItems']()[0x0],_0x2ccaae=_0x3fafc6['descriptionFactory']['getItemLabel'](_0x39154f);return'indentBlock'==_0x18e1a6['commandName']?{'type':'format','content':o(_0x31602e,'*Indent:*\x20%0',_0x2ccaae)}:'outdentBlock'==_0x18e1a6['commandName']?{'type':'format','content':o(_0x31602e,'*Outdent:*\x20%0',_0x2ccaae)}:void 0x0;});}}class ct extends _0x15e299{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x15e299{['afterInit'](){const _0x3a400d=this['editor'];if(!_0x3a400d['plugins']['has']('LinkEditing'))return;const _0x316942=_0x3a400d['plugins']['get']('TrackChangesEditing'),_0x46b70a=_0x3a400d['commands']['get']('link');_0x316942['enableDefaultAttributesIntegration']('link'),_0x316942['enableDefaultAttributesIntegration']('unlink'),_0x316942['registerInlineAttribute']('linkHref');for(const _0x1e0fa9 of _0x46b70a['manualDecorators'])_0x316942['registerInlineAttribute'](_0x1e0fa9['id']),_0x316942['descriptionFactory']['registerAttributeLabel'](_0x1e0fa9['id'],'link\x20('+_0x1e0fa9['label']['toLowerCase']()+')');_0x316942['descriptionFactory']['registerDescriptionCallback'](_0x55db46=>{if('attribute'!=_0x55db46['type'])return;const {data:_0x222f67}=_0x55db46;if(!_0x222f67||'linkHref'!=_0x222f67['key'])return;const _0x437834=_0x222f67['newValue'],_0x56ca66=_0x3a400d['locale'];return{'type':'format','content':null==_0x437834?o(_0x56ca66,'*Remove\x20link*'):o(_0x56ca66,'*Set\x20link:*\x20%0','\x22'+_0x437834+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc252fc=this['editor'],_0xb81469=_0xc252fc['locale'];_0xc252fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13a6a8=>{if('formatInline'!=_0x13a6a8['type'])return;const {data:_0x4d0701}=_0x13a6a8;if(_0x4d0701){if('link'==_0x4d0701['commandName']){const _0x557a61=_0x4d0701['commandParams'][0x0];return{'type':'format','content':o(_0xb81469,'*Set\x20link:*\x20%0','\x22'+_0x557a61+'\x22')};}return'unlink'==_0x4d0701['commandName']?{'type':'format','content':o(_0xb81469,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x15e299{['afterInit'](){const _0x18202a=this['editor'],_0x218a13=_0x18202a['locale'];if(!_0x18202a['plugins']['has']('LegacyListEditing'))return;const _0x102621=_0x18202a['plugins']['get']('TrackChangesEditing'),_0xa588e6=_0x18202a['plugins']['has']('LegacyTodoListEditing');function _0x5c555c(_0xe241c4){return()=>{const _0x14a699=_0x18202a['model']['document']['selection'],_0x48d7e0=_0x18202a['commands']['get'](_0xe241c4);if(_0x48d7e0['value'])return void _0x18202a['execute']('paragraph',{});const _0x31f522=_0xe241c4['slice'](0x0,-0x4),_0x17b456=function(_0x23312d,_0x45839e,_0x51283c){let _0x3481a6=Array['from'](_0x23312d)['filter'](_0x1145d8=>function(_0x4eefb8,_0x4f0029){return _0x4f0029['checkChild'](_0x4eefb8['parent'],'listItem')&&!_0x4f0029['isObject'](_0x4eefb8);}(_0x1145d8,_0x51283c));_0x3481a6=_0x3481a6['filter'](_0x4b8490=>!_0x4b8490['is']('element','listItem')||_0x4b8490['getAttribute']('listType')!=_0x45839e);const _0x3da4b8=new Set();for(const _0x35bab3 of _0x3481a6)_0x35bab3['is']('element','listItem')?_0x3da4b8['add'](Le(_0x35bab3)):_0x3da4b8['add'](_0x35bab3);return Array['from'](_0x3da4b8);}(_0x14a699['getSelectedBlocks'](),_0x31f522,_0x18202a['model']['schema']);_0x18202a['model']['change'](()=>{for(const _0x33fe29 of _0x17b456)_0x102621['markBlockFormat'](_0x33fe29,{'commandName':_0xe241c4,'commandParams':[{'forceValue':!_0x48d7e0['value']}],'formatGroupId':'blockName'},Ee(_0x33fe29));});};}function _0x3164bf(_0x384ff2){return()=>{const _0x1526c8=function(_0x225923){let _0xdacc33=Array['from'](_0x225923);const _0xa2b221=_0xdacc33['findIndex'](_0x3750f5=>'listItem'!=_0x3750f5['name']);return _0xa2b221>-0x1&&(_0xdacc33=_0xdacc33['slice'](0x0,_0xa2b221)),_0xdacc33;}(_0x18202a['model']['document']['selection']['getSelectedBlocks']()),_0x341a48=_0x18202a['model']['createRange'](_0x18202a['model']['createPositionAt'](_0x1526c8[0x0],'before'),_0x18202a['model']['createPositionAt'](_0x1526c8[_0x1526c8['length']-0x1],'end'));_0x18202a['model']['change'](()=>{_0x102621['markBlockFormat'](_0x341a48,{'commandName':_0x384ff2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4e5cae){const _0x155fb7=new Set();for(const _0x153002 of _0x4e5cae){let _0x5d4f56=_0x153002['nextSibling'];for(;_0x5d4f56&&_0x5d4f56['getAttribute']('listIndent')>_0x153002['getAttribute']('listIndent');)_0x155fb7['add'](_0x5d4f56),_0x5d4f56=_0x5d4f56['nextSibling'];}return Array['from'](_0x155fb7);}(_0x1526c8));});};}_0x102621['enableCommand']('numberedList',_0x5c555c('numberedList')),_0x102621['enableCommand']('bulletedList',_0x5c555c('bulletedList')),_0xa588e6&&_0x102621['enableCommand']('todoList',_0x5c555c('todoList')),_0x102621['enableCommand']('indentList',_0x3164bf('indentList')),_0x102621['enableCommand']('outdentList',_0x3164bf('outdentList')),_0xa588e6&&_0x102621['enableCommand']('checkTodoList',()=>{const _0x59848c=_0x18202a['commands']['get']('checkTodoList'),_0x565b83=Array['from'](_0x59848c['_selectedElements']);_0x565b83['filter'](_0x3b7c88=>_0x3b7c88['getAttribute']('todoListChecked')!=_0x59848c['value']),_0x18202a['model']['change'](()=>{for(const _0x1c692d of _0x565b83)_0x102621['markBlockFormat'](_0x1c692d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x59848c['value']}]});});}),_0x102621['descriptionFactory']['registerElementLabel']('listItem',_0xce0380=>o(_0x218a13,'ELEMENT_LIST_ITEM',_0xce0380)),_0x102621['descriptionFactory']['registerDescriptionCallback'](_0x401368=>{if('formatBlock'!=_0x401368['type']&&'formatInline'!=_0x401368['type'])return;const {data:_0x4d319c}=_0x401368;if(_0x4d319c){if('numberedList'==_0x4d319c['commandName']||'bulletedList'==_0x4d319c['commandName']||'todoList'==_0x4d319c['commandName'])switch(_0x4d319c['commandName']['replace']('List','')){case'bulleted':return _0x391726(o(_0x218a13,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x391726(o(_0x218a13,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x391726(o(_0x218a13,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4d319c['commandName'])return{'type':'format','content':o(_0x218a13,'*Indent:*\x20%0',o(_0x218a13,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4d319c['commandName'])return{'type':'format','content':o(_0x218a13,'*Outdent:*\x20%0',o(_0x218a13,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4d319c['commandName'])return _0x4d319c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x218a13,'*Check\x20item*')}:{'type':'format','content':o(_0x218a13,'*Uncheck\x20item*')};}function _0x391726(_0x11efe8){return{'type':'format','content':o(_0x218a13,'*Change\x20to:*\x20%0',_0x11efe8)};}});}}function Le(_0x595d24){const _0x14a07a=_0x595d24['getAttribute']('listIndent');if(0x0==_0x14a07a)return _0x595d24;let _0x49651e=_0x595d24;for(;_0x595d24['previousSibling']&&_0x595d24['previousSibling']['is']('element','listItem');){const _0x108236=_0x595d24['previousSibling']['getAttribute']('listIndent');if(_0x108236==_0x14a07a)_0x49651e=_0x595d24['previousSibling'];else{if(_0x108236<_0x14a07a)break;}_0x595d24=_0x595d24['previousSibling'];}return _0x49651e;}function Ee(_0x1fd5aa){const _0x1f3297=[];if(_0x1fd5aa['is']('element','listItem')&&_0x1fd5aa['getAttribute']('listIndent')>0x0){let _0x58ae40=_0x1fd5aa['nextSibling'];for(;_0x58ae40&&'listItem'==_0x58ae40['name']&&_0x58ae40['getAttribute']('listIndent')==_0x1fd5aa['getAttribute']('listIndent');)_0x1f3297['push'](_0x58ae40),_0x58ae40=_0x58ae40['nextSibling'];}return _0x1f3297;}class ht extends _0x15e299{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x579283=this['editor']['config']['get']('list.properties'),_0x386616=this['editor']['plugins']['get']('TrackChangesEditing');_0x579283['styles']&&_0x386616['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x579283['reversed']&&_0x386616['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x579283['startIndex']&&_0x386616['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x386616['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x13fb1c,_0x3c95c1={}){const _0x47011d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5500d3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47011d['markMultiRangeBlockFormat'](_0x5500d3,{'commandName':'listStyle','commandParams':[{'type':_0x3c95c1['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xc62c7f,_0x159605={}){const _0x1df7df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26c0a9=this['_getSuggestionBlocks'](_0x4820d9=>_0x4820d9['is']('element','listItem')&&'numbered'===_0x4820d9['getAttribute']('listType'));if(_0x26c0a9['length']<0x1)return;const _0x19cb25=_0x26c0a9['map'](_0x33302b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33302b,'before'),this['editor']['model']['createPositionAt'](_0x33302b,0x0)));this['editor']['model']['change'](()=>{_0x1df7df['markMultiRangeBlockFormat'](_0x19cb25,{'commandName':'listReversed','commandParams':[{'reversed':_0x159605['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x277c8f,_0x38040d={}){const _0x204a53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c58e5=this['_getSuggestionBlocks'](_0x3b7890=>_0x3b7890['is']('element','listItem')&&'numbered'===_0x3b7890['getAttribute']('listType'));if(_0x1c58e5['length']<0x1)return;const _0x33b67f=_0x1c58e5['map'](_0x5869ad=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5869ad,'before'),this['editor']['model']['createPositionAt'](_0x5869ad,0x0)));this['editor']['model']['change'](()=>{_0x204a53['markMultiRangeBlockFormat'](_0x33b67f,{'commandName':'listStart','commandParams':[{'startIndex':_0x38040d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x161a86){if('formatBlock'!=_0x161a86['type']&&'formatInline'!=_0x161a86['type'])return;const _0xbf079a=this['editor']['locale'],{data:_0x5b5ca8}=_0x161a86;if(!_0x5b5ca8)return;let _0x39db92,_0x4b5dc0;switch(_0x5b5ca8['commandName']){case'listStyle':_0x39db92='*Change\x20to:*\x20%0',_0x4b5dc0={'type':'format','content':o(_0xbf079a,_0x39db92,o(_0xbf079a,this['_getTranslationKeyForListStyle'](_0x5b5ca8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39db92=_0x5b5ca8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b5dc0={'type':'format','content':o(_0xbf079a,_0x39db92)};break;case'listStart':_0x39db92='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b5dc0={'type':'format','content':o(_0xbf079a,_0x39db92,_0x5b5ca8['commandParams'][0x0]['startIndex'])};}return _0x4b5dc0;}['_getSuggestionBlocksForListStyle'](){const _0x4e5adb=this['editor']['plugins']['get']('LegacyListUtils');let _0x219bf5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x219bf5[0x0]?.['is']('element','listItem')&&_0x219bf5['unshift'](..._0x4e5adb['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x219bf5[_0x219bf5['length']-0x1]?.['is']('element','listItem')&&_0x219bf5['push'](..._0x4e5adb['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x219bf5=[...new Set(_0x219bf5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x219bf5=_0x219bf5['filter'](_0xc131bc=>_0xc131bc['is']('element','listItem'))),_0x219bf5;}['_getSuggestionBlocks'](_0x495d5d){const _0x32f5ae=this['editor']['plugins']['get']('LegacyListUtils');let _0x568177=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x495d5d)['map'](_0x277da2=>{const _0x23ddb9=this['editor']['model']['createPositionAt'](_0x277da2,0x0);return[..._0x32f5ae['getSiblingNodes'](_0x23ddb9,'backward'),..._0x32f5ae['getSiblingNodes'](_0x23ddb9,'forward')];})['flat']();return _0x568177=[...new Set(_0x568177)],_0x568177;}['_getTranslationKeyForListStyle'](_0x5f237b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5f237b)||'default')['toUpperCase']()+'_LIST_'+_0x5f237b['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x15e299{['afterInit'](){const _0x34adb=this['editor'];if(!_0x34adb['plugins']['has']('MediaEmbedEditing'))return;const _0x146e9=_0x34adb['plugins']['get']('TrackChangesEditing'),_0x41a1be=_0x34adb['locale'];_0x146e9['enableCommand']('mediaEmbed'),_0x146e9['descriptionFactory']['registerElementLabel']('media',_0x4b92f0=>o(_0x41a1be,'ELEMENT_MEDIA',_0x4b92f0)),_0x34adb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5097e1,{writer:_0x4f37b1,options:_0x3e3cea})=>{if(_0x3e3cea['showSuggestionHighlights'])return _0x4f37b1['createEmptyElement']('div');},'converterPriority':'high'}),_0x34adb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ce01e,_0xc1d889,_0x131e45)=>{_0x131e45['options']['showSuggestionHighlights']&&_0x1ce01e['stop']();},{'priority':'high'});}}class lt extends _0x15e299{['afterInit'](){const _0xc272db=this['editor'];_0xc272db['plugins']['has']('MentionEditing')&&_0xc272db['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x15e299{['afterInit'](){const _0xfd38b0=this['editor'];if(!_0xfd38b0['plugins']['has']('MergeFieldsEditing'))return;const _0x478a7d=_0xfd38b0['plugins']['get']('TrackChangesEditing'),_0x3e2b78=_0xfd38b0['locale'];_0x478a7d['enableCommand']('insertMergeField'),_0x478a7d['enableCommand']('insertMergeFieldBlock'),_0x478a7d['enableCommand']('insertMergeFieldImage'),_0x478a7d['descriptionFactory']['registerElementLabel']('mergeField',_0x13414e=>o(_0x3e2b78,'ELEMENT_MERGE_FIELD',_0x13414e)),_0x478a7d['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1950d6=>o(_0x3e2b78,'ELEMENT_MERGE_FIELD',_0x1950d6)),_0x478a7d['descriptionFactory']['registerDescriptionCallback'](_0x56cb1e=>{if('insertion'!=_0x56cb1e['type']&&'deletion'!=_0x56cb1e['type'])return;const _0x2bf75d=_0x56cb1e['getContainedElement']();if(null==_0x2bf75d)return;const _0x26e9fd=_0xfd38b0['plugins']['get']('MergeFieldsEditing');let _0xdeeafb;switch(_0x26e9fd['getMergeFieldType'](_0x2bf75d)){case null:return;case'image':{const _0x16f3c2=_0x26e9fd['unwrapAffixes'](_0x2bf75d['getAttribute']('src'));_0xdeeafb=_0x26e9fd['getLabel'](_0x16f3c2)||_0x16f3c2;break;}default:{const _0x2b86ed=_0x2bf75d['getAttribute']('id');_0xdeeafb=_0x26e9fd['getLabel'](_0x2b86ed)||_0x2b86ed;break;}}return'insertion'==_0x56cb1e['type']?{'type':'insertion','content':o(_0x3e2b78,'*Insert:*\x20%0','\x22'+_0xdeeafb+'\x22\x20'+o(_0x3e2b78,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3e2b78,'*Remove:*\x20%0','\x22'+_0xdeeafb+'\x22\x20'+o(_0x3e2b78,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x15e299{['afterInit'](){const _0x24adc0=this['editor'],_0x2a39ab=_0x24adc0['plugins']['get']('TrackChangesEditing');_0x24adc0['plugins']['has']('MultiLevelList')&&(_0x2a39ab['enableDefaultAttributesIntegration']('multiLevelList'),_0x2a39ab['registerBlockAttribute']('listMarkerStyle'),_0x2a39ab['descriptionFactory']['registerDescriptionCallback'](_0x5e26cb=>this['handleDescriptions'](_0x5e26cb)));}['handleDescriptions'](_0xe50316){const _0x432fc9=this['editor']['locale'],{data:_0x2bf5c2}=_0xe50316,_0x1a22c9={'type':'format','content':''};if(_0x2bf5c2&&'listMarkerStyle'==_0x2bf5c2['key']){if(!_0x2bf5c2['oldValue'])return{'type':'format','content':o(_0x432fc9,'*Set\x20format:*\x20%0',o(_0x432fc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2bf5c2['newValue']+')'};if(!_0x2bf5c2['newValue']){let _0x2c568b=_0xe50316['head'];for(;_0x2c568b;){if(_0x2c568b['data']&&'listType'==_0x2c568b['data']['key']&&_0x2c568b['data']['newValue'])return _0x1a22c9;_0x2c568b=_0x2c568b['next'];}return{'type':'format','content':o(_0x432fc9,'*Remove\x20format:*\x20%0',o(_0x432fc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2bf5c2['oldValue']+')'};}}}}class pt extends _0x15e299{['afterInit'](){const _0x47794c=this['editor'];if(!_0x47794c['plugins']['has']('PageBreakEditing'))return;_0x47794c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x140323=_0x47794c['plugins']['get']('TrackChangesEditing'),_0x1cd7fb=_0x47794c['locale'];_0x140323['descriptionFactory']['registerElementLabel']('pageBreak',_0x43b93b=>o(_0x1cd7fb,'ELEMENT_PAGE_BREAK',_0x43b93b));}}class kt extends _0x15e299{['afterInit'](){const _0x36de4d=this['editor'];if(!_0x36de4d['plugins']['has']('Paragraph'))return;const _0x1a1142=_0x36de4d['locale'],_0x531d43=_0x36de4d['plugins']['get']('TrackChangesEditing');_0x531d43['descriptionFactory']['registerElementLabel']('paragraph',_0x1da7d9=>o(_0x1a1142,'ELEMENT_PARAGRAPH',_0x1da7d9)),_0x531d43['enableDefaultAttributesIntegration']('paragraph'),_0x531d43['enableCommand']('insertParagraph'),_0x36de4d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x36de4d),{'priority':'highest'}),_0x36de4d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e4bd8,_0x430163,_0x24b0ba)=>{_0x24b0ba['options']['showSuggestionHighlights']&&nr(_0x36de4d,{'showActiveMarker':!0x1})(_0x1e4bd8,_0x430163,_0x24b0ba);},{'priority':'highest'});const _0x4810cf=_0x531d43['descriptionFactory'];_0x4810cf['registerDescriptionCallback'](_0x4617d3=>{if('insertion'!==_0x4617d3['type'])return;const {start:_0x3e3f6a,end:_0x559f33}=_0x4617d3['getFirstRange']();if(!_0x3e3f6a['isTouching'](_0x559f33)||!_0x3e3f6a['nodeAfter'])return;const _0x12938b=_0x36de4d['model']['schema'],_0x5528a9=_0x3e3f6a['nodeAfter'];return _0x12938b['isBlock'](_0x5528a9)&&!_0x12938b['isLimit'](_0x5528a9)&&_0x12938b['checkChild'](_0x5528a9,'$text')?{'type':'insertion','content':o(_0x1a1142,'*Insert:*\x20%0',_0x4810cf['getItemLabel'](_0x5528a9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19f0f3=this['editor'],_0x8bb54e=_0x19f0f3['locale'];_0x19f0f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bddda=>{if('formatBlock'!=_0x4bddda['type'])return;const {data:_0x5c5789}=_0x4bddda;return _0x5c5789&&'paragraph'==_0x5c5789['commandName']?{'type':'format','content':o(_0x8bb54e,'*Change\x20to:*\x20%0',o(_0x8bb54e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x15f9c6,{showActiveMarker:_0x4cedc4=!0x0}={}){return(_0x2835c4,_0x2218f9,_0x23b383)=>{const _0x1aecba=_0x15f9c6['plugins']['get']('TrackChangesEditing'),_0x2e9ac3=_0x2218f9['markerRange']['start'],_0x3f5ced=_0x2218f9['markerRange']['end'],_0x47133a=_0x15f9c6['model']['schema'];if(!_0x2e9ac3['isTouching'](_0x3f5ced)||!_0x2e9ac3['nodeAfter'])return;const _0x367184=_0x2e9ac3['nodeAfter'];if(_0x47133a['isBlock'](_0x367184)&&!_0x47133a['isLimit'](_0x367184)&&_0x47133a['checkChild'](_0x367184,'$text')){if(!_0x23b383['consumable']['consume'](_0x2218f9['markerRange'],_0x2835c4['name']))return;const {id:_0x50f870,authorId:_0x1e443a}=_0x1aecba['_splitMarkerName'](_0x2218f9['markerName']),_0x254909=_0x23b383['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x50f870,'data-author-id':_0x1e443a}),_0x73030e=_0x23b383['mapper']['toViewPosition'](_0x3f5ced);_0x4cedc4&&_0x1aecba['activeMarkers']['includes'](_0x2218f9['markerName'])&&_0x23b383['writer']['addClass']('ck-suggestion-marker--active',_0x254909),_0x23b383['writer']['insert'](_0x73030e,_0x254909),_0x23b383['mapper']['bindElementToMarker'](_0x254909,_0x2218f9['markerName']);}};}class wt extends _0x15e299{['afterInit'](){const _0x28fd34=this['editor'];_0x28fd34['commands']['get']('replaceSource')&&_0x28fd34['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x15e299{['afterInit'](){const _0x53e86d=this['editor'];if(!_0x53e86d['plugins']['has']('RemoveFormatEditing'))return;_0x53e86d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x528bcf=this['editor'];_0x528bcf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214814=>{if('formatBlock'!=_0x214814['type']&&'formatInline'!=_0x214814['type'])return;const {data:_0xac9976}=_0x214814;return _0xac9976&&'removeFormat'==_0xac9976['commandName']?{'type':'format','content':o(_0x528bcf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x15e299{['afterInit'](){const _0x4e98c3=this['editor'];if(!_0x4e98c3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c2049=_0x4e98c3['plugins']['get']('TrackChangesEditing');_0x4c2049['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c2049['enableCommand']('goToNextRestrictedEditingException');const _0x4c153c=_0x4e98c3['plugins']['get']('RestrictedEditingModeEditing');_0x4c153c['enableCommand']('trackChanges'),_0x4c153c['enableCommand']('acceptSuggestion'),_0x4c153c['enableCommand']('discardSuggestion'),_0x4c153c['enableCommand']('acceptAllSuggestions'),_0x4c153c['enableCommand']('discardAllSuggestions'),_0x4c153c['enableCommand']('acceptSelectedSuggestions'),_0x4c153c['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x15e299{['afterInit'](){const _0x188cbd=this['editor'];if(!_0x188cbd['plugins']['has']('ShiftEnter'))return;const _0x214ef6=_0x188cbd['plugins']['get']('TrackChangesEditing');_0x214ef6['enableCommand']('shiftEnter'),_0x188cbd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x188cbd),{'priority':'high'}),_0x188cbd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x188cbd),{'priority':'high'}),_0x188cbd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x326c74,_0x1dfa30,_0x15c4cf)=>{_0x15c4cf['options']['showSuggestionHighlights']&&je(_0x188cbd,{'showActiveMarker':!0x1})(_0x326c74,_0x1dfa30,_0x15c4cf);}),_0x214ef6['descriptionFactory']['registerElementLabel']('softBreak',_0x4cf8b7=>o(_0x188cbd['locale'],'ELEMENT_LINE_BREAK',_0x4cf8b7));}}function je(_0x39c2c5,{showActiveMarker:_0x494588=!0x0}={}){return(_0x29668c,_0x3b8149,_0x5627eb)=>{const _0x4f5258=_0x39c2c5['plugins']['get']('TrackChangesEditing');if(!_0x5627eb['consumable']['test'](_0x3b8149['markerRange'],_0x29668c['name']))return;const _0x4b4bd1=_0x39c2c5['model'];for(const _0x16e05e of _0x3b8149['markerRange']['getItems']()){if(!_0x16e05e['is']('element','softBreak'))continue;const _0x3adcb1='deletion'==_0x3b8149['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2a5c5e,authorId:_0x207838}=_0x4f5258['_splitMarkerName'](_0x3b8149['markerName']),_0x41fff2=_0x5627eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3adcb1,'data-suggestion':_0x2a5c5e,'data-author-id':_0x207838}),_0x4968ee=_0x5627eb['mapper']['toViewPosition'](_0x4b4bd1['createPositionBefore'](_0x16e05e));_0x494588&&_0x4f5258['activeMarkers']['includes'](_0x3b8149['markerName'])&&_0x5627eb['writer']['addClass']('ck-suggestion-marker--active',_0x41fff2),_0x5627eb['writer']['insert'](_0x4968ee,_0x41fff2),_0x5627eb['mapper']['bindElementToMarker'](_0x41fff2,_0x3b8149['markerName']);}};}class St extends _0x15e299{['afterInit'](){const _0x3a78dc=this['editor'],_0x27ede7=_0x3a78dc['model'],_0x41b30f=_0x3a78dc['locale'];if(!_0x3a78dc['plugins']['has']('StandardEditingModeEditing'))return;const _0x562bc6=_0x3a78dc['plugins']['get']('TrackChangesEditing'),_0x12437f='restrictedEditingException',_0x3b994e=_0x3a78dc['commands']['get'](_0x12437f);_0x562bc6['enableCommand'](_0x12437f,(_0x19b8e1,_0x5c3bc7={})=>{const _0x23772b=_0x27ede7['document']['selection'];if(_0x23772b['isCollapsed'])return void _0x19b8e1(_0x5c3bc7);const _0x3c304a=void 0x0!==_0x5c3bc7['forceValue']?_0x5c3bc7['forceValue']:!_0x3b994e['value'];_0x27ede7['change'](()=>{const _0x4f2316=Array['from'](_0x23772b['getRanges']());for(const _0x4d5220 of _0x4f2316){const _0x2b326f=_0x3c304a?[_0x4d5220]:io(_0x12437f,_0x4d5220,_0x27ede7);for(const _0xea076d of _0x2b326f)_0x562bc6['markInlineFormat'](_0xea076d,{'commandName':_0x12437f,'commandParams':[{'forceValue':_0x3c304a}]});}});}),_0x562bc6['descriptionFactory']['registerDescriptionCallback'](_0x4c071c=>{if('formatBlock'!=_0x4c071c['type']&&'formatInline'!=_0x4c071c['type'])return;const {data:_0x2d4535}=_0x4c071c;return _0x2d4535&&_0x2d4535['commandName']==_0x12437f?_0x2d4535['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41b30f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x41b30f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x15e299{['afterInit'](){const _0x507ad4=this['editor'];if(!_0x507ad4['plugins']['has']('Style')||!_0x507ad4['plugins']['has']('DataSchema'))return;const _0x150ea9=_0x507ad4['plugins']['get']('TrackChangesEditing'),_0x354b1a=_0x507ad4['locale'],_0x531d95=_0x507ad4['config']['get']('style')||{},_0x912d5d=_0x507ad4['plugins']['get']('GeneralHtmlSupport'),_0x42a294=_0x507ad4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x507ad4['plugins']['get']('DataSchema'),_0x531d95['definitions']);_0x150ea9['enableDefaultAttributesIntegration']('style');const _0x1bc668=new Set();for(const _0x4c118f of _0x42a294['block']){const _0x13e4f3=_0x912d5d['getGhsAttributeNameForElement'](_0x4c118f['element']);_0x1bc668['add'](_0x13e4f3);}const _0x2ee1ec=new Set();for(const _0x4d0412 of _0x42a294['inline']){const _0x52ef4c=_0x912d5d['getGhsAttributeNameForElement'](_0x4d0412['element']);_0x2ee1ec['add'](_0x52ef4c);for(const _0x1ef8f6 of _0x4d0412['ghsAttributes'])_0x2ee1ec['add'](_0x1ef8f6);}for(const _0x235303 of _0x1bc668)_0x150ea9['registerBlockAttribute'](_0x235303),_0x150ea9['descriptionFactory']['registerAttributeLabel'](_0x235303,o(_0x354b1a,'FORMAT_STYLE'));for(const _0x416122 of _0x2ee1ec)_0x150ea9['registerInlineAttribute'](_0x416122),_0x150ea9['descriptionFactory']['registerAttributeLabel'](_0x416122,o(_0x354b1a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x553b23=this['editor'],_0xc78659=_0x553b23['locale'];_0x553b23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc6ee=>{if('formatBlock'!=_0x4bc6ee['type']&&'formatInline'!=_0x4bc6ee['type'])return;const {data:_0x2006d7}=_0x4bc6ee;return _0x2006d7&&'style'===_0x2006d7['commandName']?_0x2006d7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc78659,'*Set\x20format:*\x20%0',_0x2006d7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc78659,'*Remove\x20format:*\x20%0',_0x2006d7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x15e299{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x29b65b){super(_0x29b65b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x193474=this['editor'],_0x229d48=_0x193474['model']['document']['selection'];if(!_0x193474['plugins']['has']('TableEditing'))return;const _0x4392f6=_0x193474['locale'],_0x4c1921=_0x193474['plugins']['get']('TrackChangesEditing'),_0x52be12=_0x193474['plugins']['get']('TableUtils');_0x4c1921['descriptionFactory']['registerElementLabel']('table',_0x25cdaf=>o(_0x4392f6,'ELEMENT_TABLE',_0x25cdaf)),this['_setupColumnsRowsFixing'](),_0x4c1921['enableCommand']('insertTable'),_0x4c1921['enableCommand']('selectTableRow'),_0x4c1921['enableCommand']('selectTableColumn');for(const _0x5291d2 of['insertTableRowAbove','insertTableRowBelow']){const _0xead5b5=_0x193474['commands']['get'](_0x5291d2);_0x4c1921['enableCommand'](_0x5291d2,_0x44ae1a=>{_0x193474['model']['change'](_0x24bd88=>{_0x44ae1a();const _0x2eaa98='above'===_0xead5b5['order'],_0x298514=_0x52be12['getSelectionAffectedTableCells'](_0x229d48),_0xaf97da=_0x52be12['getRowIndexes'](_0x298514),_0x2e3397=_0x2eaa98?_0xaf97da['first']-0x1:_0xaf97da['last']+0x1,_0x547b0f=_0x298514[0x0]['findAncestor']('table'),_0x4e3353=_0x52be12['createTableWalker'](_0x547b0f,{'startRow':_0x2e3397,'endRow':_0x2e3397}),_0x91e8e8=Array['from'](_0x4e3353)['map'](_0x3bbadf=>_0x24bd88['createRangeOn'](_0x3bbadf['cell']));_0x4c1921['markMultiRangeInsertion'](_0x91e8e8,'tableRow');});});}for(const _0x1fc94e of['insertTableColumnLeft','insertTableColumnRight']){const _0x3d7973=_0x193474['commands']['get'](_0x1fc94e);_0x4c1921['enableCommand'](_0x1fc94e,_0x47efe4=>{_0x193474['model']['change'](_0x356696=>{_0x47efe4();const _0x15d65f='left'===_0x3d7973['order'],_0x2bd57a=_0x52be12['getSelectionAffectedTableCells'](_0x229d48),_0x2421cf=_0x52be12['getColumnIndexes'](_0x2bd57a),_0x3219c0=_0x15d65f?_0x2421cf['first']-0x1:_0x2421cf['last']+0x1,_0x23eee5=_0x2bd57a[0x0]['findAncestor']('table'),_0x3cbe28=_0x52be12['createTableWalker'](_0x23eee5,{'startRow':0x0,'column':_0x3219c0,'includeAllSlots':!0x1}),_0x438ff3=Array['from'](_0x3cbe28)['map'](_0x2fbe99=>_0x356696['createRangeOn'](_0x2fbe99['cell']));_0x4c1921['markMultiRangeInsertion'](_0x438ff3,'tableColumn');});});}for(const _0x60ab2a of['removeTableRow','removeTableColumn']){const _0x2c1c30=_0x60ab2a['substr'](0xb),_0x2b370e=_0x2c1c30['toLowerCase'](),_0x3d1ab0=_0x2b370e['substr'](0x0,0x3)+'span',_0x1ab075='table'+_0x2c1c30,_0x48c487='min'+_0x2c1c30,_0x52b08e='max'+_0x2c1c30;_0x4c1921['enableCommand'](_0x60ab2a,()=>{_0x193474['model']['change'](_0x123d5d=>{const _0x378ed2=_0x52be12['getSelectionAffectedTableCells'](_0x229d48),_0x43a880=_0x378ed2[0x0]['findAncestor']('table');let _0x345356;if('removeTableRow'==_0x60ab2a){const _0x28ad69=_0x52be12['getRowIndexes'](_0x378ed2);_0x345356={'startRow':_0x28ad69['first'],'endRow':_0x28ad69['last'],'includeAllSlots':!0x0};}else{const _0x15b5be=_0x52be12['getColumnIndexes'](_0x378ed2);_0x345356={'startColumn':_0x15b5be['first'],'endColumn':_0x15b5be['last'],'includeAllSlots':!0x0};}const _0x127a9e=_0x52be12['createTableWalker'](_0x43a880,_0x345356),_0x5ceeef=Array['from'](_0x127a9e)['map'](({cell:_0x1100cb})=>_0x1100cb),_0x39790d=Ne(_0x5ceeef['filter'](_0x5e0424=>_0x5e0424['hasAttribute'](_0x3d1ab0))),_0x501386=Ne(_0x5ceeef['filter'](_0xed2279=>!_0xed2279['hasAttribute'](_0x3d1ab0)))['map'](_0x3c3602=>_0x123d5d['createRangeOn'](_0x3c3602)),_0xa1d0f1=_0x4c1921['markMultiRangeDeletion'](_0x501386,_0x1ab075);if(_0xa1d0f1&&('tableRow'==_0xa1d0f1['subType']||'tableColumn'==_0xa1d0f1['subType'])){const _0x55113d=this['_getSuggestionCoords'](_0xa1d0f1);for(const _0x47787f of _0x39790d){const _0x4767f0=_0x123d5d['createRangeOn'](_0x47787f),_0x2b4e0b=_0x52be12['getCellLocation'](_0x47787f),_0x5844cf=_0x47787f['getAttribute'](_0x3d1ab0)-0x1,_0x346cda=_0x55113d[_0x48c487],_0x239df7=_0x55113d[_0x52b08e];_0x346cda<=_0x2b4e0b[_0x2b370e]&&_0x2b4e0b[_0x2b370e]+_0x5844cf<=_0x239df7&&_0xa1d0f1['addRange'](_0x4767f0);}}});});}function _0x2a9086(_0x5ad3c4){const _0x208846=Array['from'](_0x229d48['getRanges']())['map'](_0x4c2b39=>_0x19c427['fromRange'](_0x4c2b39));_0x193474['model']['change'](_0x13c945=>{const _0x27fc36=_0x13c945['batch'];_0x5ad3c4=_0x5ad3c4['filter'](_0x35911d=>'$graveyard'!=_0x35911d['root']['rootName']),_0x13c945['setSelection'](_0x5ad3c4),_0x193474['commands']['get']('removeTableRow')['refresh'](),_0x193474['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x193474['model']['enqueueChange'](()=>{_0x193474['model']['enqueueChange'](_0x27fc36,_0x279e0f=>{const _0x488db4=_0x208846['filter'](_0x203b8d=>'$graveyard'!=_0x203b8d['root']['rootName']);_0x488db4['length']>0x0&&_0x279e0f['setSelection'](_0x488db4);for(const _0x3e29fa of _0x208846)_0x3e29fa['detach']();});});});}function _0x4b1b15(_0x5a6470){_0x193474['model']['change'](_0x3ca06d=>{const _0xb0ec8f=Array['from'](_0x229d48['getRanges']())['map'](_0x3fd0b0=>_0x19c427['fromRange'](_0x3fd0b0)),_0x297937=[];for(const _0x27ac2d of _0x5a6470)for(const _0x222b00 of _0x27ac2d['getItems']({'shallow':!0x0}))_0x297937['push'](_0x222b00);for(const _0x42ec2c of _0x297937)'$graveyard'!=_0x42ec2c['root']['rootName']&&(_0x3ca06d['setSelection'](_0x3ca06d['createPositionAt'](_0x42ec2c,0x0)),_0x193474['commands']['get']('removeTableColumn')['refresh'](),_0x193474['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x314c8a=_0xb0ec8f['filter'](_0x2cf9cb=>'$graveyard'!=_0x2cf9cb['root']['rootName']);_0x314c8a['length']>0x0&&_0x3ca06d['setSelection'](_0x314c8a);for(const _0x37e5bb of _0xb0ec8f)_0x37e5bb['detach']();});}function _0x3319ce(_0x2ae4a0,_0x1cdf41){return _0x1cdf41['every'](_0x183bd8=>_0x2ae4a0['some'](_0x3d6ea6=>_0x3d6ea6['end']['isEqual'](_0x183bd8['start'])||_0x183bd8['end']['isEqual'](_0x3d6ea6['start'])));}function _0x117bec(_0x579d6f,_0x2be57b){return!_0x579d6f['some'](_0xfad22d=>_0x2be57b['some'](_0x1157ef=>_0xfad22d['isIntersecting'](_0x1157ef)))&&_0x579d6f['some'](_0x46e505=>_0x2be57b['some'](_0x3f0885=>_0x46e505['end']['isTouching'](_0x3f0885['start'])));}_0x193474['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20c08b,_0x54f476,_0x22829b)=>{if(!_0x22829b['options']['showSuggestionHighlights'])return;const _0x433317=_0x54f476['item'];if(!_0x433317||!_0x433317['is']('element','tableCell'))return;const _0x51f58f=_0x22829b['mapper']['toViewElement'](_0x433317);if(_0x51f58f){const {id:_0x3bb706,authorId:_0x4e1677}=_0x4c1921['_splitMarkerName'](_0x54f476['markerName']);_0x1ffcb1(_0x51f58f,_0x22829b['writer'],(_0xb2a66b,_0x58fce1,_0x16e8e8)=>{_0x16e8e8['addClass'](_0x4a89d6(_0x58fce1['classes']),_0xb2a66b),_0x16e8e8['setAttribute']('data-suggestion-id',_0x3bb706,_0xb2a66b),_0x16e8e8['setAttribute']('data-author-id',_0x4e1677,_0xb2a66b);},(_0x302ba6,_0x79223e,_0x29ad13)=>{_0x29ad13['removeClass'](_0x4a89d6(_0x79223e['classes']),_0x302ba6),_0x29ad13['removeAttribute']('data-suggestion-id',_0x302ba6),_0x29ad13['removeAttribute']('data-author-id',_0x302ba6);});}},{'priority':'highest'}),_0x4c1921['descriptionFactory']['registerDescriptionCallback'](_0x339200=>{if('insertion'!=_0x339200['type']&&'deletion'!=_0x339200['type'])return;const _0x22c80a=_0x339200['getContainedElement']();if(null!=_0x22c80a&&_0x22c80a['is']('element','table')){if('insertion'==_0x339200['type']){const _0x12cd5a=_0x339200['getItems']()['filter'](_0x106755=>_0x106755['is']('$textProxy'))['map'](_0x1a4950=>_0x1a4950['data']);if(_0x12cd5a['length'])return{'type':'insertion','content':o(_0x4392f6,'*Insert:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12cd5a['join']('\x20')+'\x22'))};}if('deletion'==_0x339200['type']){const _0x41b17f=_0x339200['getItems']()['filter'](_0x1d413f=>_0x1d413f['is']('$textProxy'))['map'](_0x480940=>_0x480940['data']);if(_0x41b17f['length'])return{'type':'deletion','content':o(_0x4392f6,'*Remove:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x41b17f['join']('\x20')+'\x22'))};}}}),_0x4c1921['descriptionFactory']['registerDescriptionCallback'](_0x4187b9=>{if('tableRow'==_0x4187b9['subType']){const _0x5a448f=_0x4187b9['getItems']()['filter'](_0x2418bb=>_0x2418bb['is']('$textProxy'))['map'](_0x10dd0a=>_0x10dd0a['data']),_0x3766de=this['_getSuggestionCoords'](_0x4187b9),_0x49a304=_0x3766de['maxRow']-_0x3766de['minRow']+0x1;if('insertion'==_0x4187b9['type'])return _0x5a448f['length']?{'type':'insertion','content':o(_0x4392f6,'*Insert:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49a304,'\x22'+_0x5a448f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4392f6,'*Insert:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_ROW',_0x49a304))};if('deletion'==_0x4187b9['type'])return _0x5a448f['length']?{'type':'deletion','content':o(_0x4392f6,'*Remove:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x49a304,'\x22'+_0x5a448f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4392f6,'*Remove:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_ROW',_0x49a304))};}if('tableColumn'==_0x4187b9['subType']){const _0x354dc8=_0x4187b9['getItems']()['filter'](_0x40dee7=>_0x40dee7['is']('$textProxy'))['map'](_0x566799=>_0x566799['data']),_0x21eea3=this['_getSuggestionCoords'](_0x4187b9),_0x8a2cd9=_0x21eea3['maxColumn']-_0x21eea3['minColumn']+0x1;if('insertion'==_0x4187b9['type'])return _0x354dc8['length']?{'type':'insertion','content':o(_0x4392f6,'*Insert:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x8a2cd9,'\x22'+_0x354dc8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4392f6,'*Insert:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_COLUMN',_0x8a2cd9))};if('deletion'==_0x4187b9['type'])return _0x354dc8['length']?{'type':'deletion','content':o(_0x4392f6,'*Remove:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x8a2cd9,'\x22'+_0x354dc8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4392f6,'*Remove:*\x20%0',o(_0x4392f6,'ELEMENT_TABLE_COLUMN',_0x8a2cd9))};}}),_0x4c1921['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2a9086),_0x4c1921['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2a9086),_0x4c1921['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4b1b15),_0x4c1921['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4b1b15),_0x4c1921['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3319ce),_0x4c1921['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3319ce),_0x4c1921['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x117bec),_0x4c1921['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x117bec);}['_acceptFormatSuggestionCallbackFactory'](){const _0x139a93=this['editor'],_0x303b3b=_0x139a93['model']['document']['selection'];return(_0x29bdba,_0x4d2210)=>{_0x139a93['model']['change'](_0xd951a6=>{const {commandName:_0x41be34,commandParams:_0x2712f0}=_0x4d2210;let _0x121627=_0x29bdba[0x0]['end']['nodeBefore'];_0x2712f0&&_0x2712f0[0x0]&&!0x1===_0x2712f0[0x0]['forceValue']&&(_0x121627=_0x29bdba[0x0]['start']['nodeAfter']);const _0x427c2c=_0xd951a6['createRangeIn'](_0x121627);if('$graveyard'==_0x427c2c['root']['rootName'])return;const _0x45f844=Array['from'](_0x303b3b['getRanges']())['map'](_0x39808a=>_0x19c427['fromRange'](_0x39808a));_0xd951a6['setSelection'](_0x427c2c),_0x139a93['commands']['get'](_0x41be34)['refresh'](),_0x2712f0['push']({'forceDefaultExecution':!0x0}),_0x139a93['execute'](_0x41be34,..._0x2712f0);const _0x27181e=_0x45f844['filter'](_0x2c1c03=>'$graveyard'!=_0x2c1c03['root']['rootName']);_0x27181e['length']>0x0&&_0xd951a6['setSelection'](_0x27181e);for(const _0x13d530 of _0x45f844)_0x13d530['detach']();});};}['_getCoordsForCells'](_0x542d7e){const _0x455af1=this['editor']['plugins']['get']('TableUtils');let _0x498e2=Number['MAX_SAFE_INTEGER'],_0x2f6e3b=Number['MIN_SAFE_INTEGER'],_0x4f0a69=Number['MAX_SAFE_INTEGER'],_0x163628=Number['MIN_SAFE_INTEGER'];for(const _0x31d7d1 of _0x542d7e){if('$graveyard'==_0x31d7d1['root']['rootName'])continue;const {row:_0x4fa915,column:_0x158d67}=_0x455af1['getCellLocation'](_0x31d7d1),_0x488eb9=_0x31d7d1['hasAttribute']('rowspan')?_0x31d7d1['getAttribute']('rowspan')-0x1:0x0,_0x36b4d3=_0x31d7d1['hasAttribute']('colspan')?_0x31d7d1['getAttribute']('colspan')-0x1:0x0;_0x498e2=_0x4fa915<_0x498e2?_0x4fa915:_0x498e2,_0x2f6e3b=_0x4fa915+_0x488eb9>_0x2f6e3b?_0x4fa915+_0x488eb9:_0x2f6e3b,_0x4f0a69=_0x158d67<_0x4f0a69?_0x158d67:_0x4f0a69,_0x163628=_0x158d67+_0x36b4d3>_0x163628?_0x158d67+_0x36b4d3:_0x163628;}return{'minRow':_0x498e2,'maxRow':_0x2f6e3b,'minColumn':_0x4f0a69,'maxColumn':_0x163628};}['_setupColumnsRowsFixing'](){const _0x4a08ed=this['editor'],_0x410631=_0x4a08ed['plugins']['get']('TrackChangesEditing'),_0x651a6b=_0x4a08ed['plugins']['get']('TableUtils');_0x4a08ed['model']['document']['on']('change:data',()=>{const _0x27bb40=Array['from'](_0x4a08ed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dcd91,data:_0x36d810}of _0x27bb40){const {group:_0x2b9ff3,id:_0x38cade,subType:_0x5bc5a6}=_0x410631['_splitMarkerName'](_0x5dcd91);if('suggestion'!=_0x2b9ff3)continue;if(null!=_0x36d810['oldRange'])continue;const _0x14724b=_0x410631['getSuggestion'](_0x38cade);this['_tablePostFixingSubtypes']['includes'](_0x5bc5a6)&&this['_tableSuggestions']['add'](_0x14724b);}},{'priority':'low'});const _0x243225=(_0x4335b9,_0x25a7fc)=>{let _0x6fc5b6=!0x1;const _0x5a921b=_0x25a7fc['createRangeOn'](_0x4335b9),_0x6a103=_0x4335b9['findAncestor']('table'),_0x5bcf5f=_0x651a6b['getCellLocation'](_0x4335b9);for(const _0x157eec of this['_tableSuggestions']){const _0x5baba9=_0x157eec['subType'],_0x2bf963=_0x5baba9['startsWith']('tablePaste'),_0x2fa666=_0x5baba9['substr'](_0x2bf963?0xa:0x5),_0x67ce1d=_0x2fa666['toLowerCase'](),_0xb413da=_0x67ce1d['substr'](0x0,0x3)+'span',_0x3c1409='min'+_0x2fa666,_0x431228='max'+_0x2fa666;if(!_0x157eec['isInContent'])continue;if(_0x6a103!=_0x157eec['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x157eec['isIntersectingWithRange'](_0x5a921b))continue;const _0x4a64e0=_0x4335b9['hasAttribute'](_0xb413da)?_0x4335b9['getAttribute'](_0xb413da)-0x1:0x0,_0x4cbb33=this['_getSuggestionCoords'](_0x157eec),_0x59a198=_0x4cbb33[_0x3c1409],_0x292342=_0x4cbb33[_0x431228];_0x59a198<=_0x5bcf5f[_0x67ce1d]&&_0x5bcf5f[_0x67ce1d]+_0x4a64e0<=_0x292342&&(_0x157eec['addRange'](_0x5a921b),_0x6fc5b6=!0x0);}return _0x6fc5b6;};_0x4a08ed['model']['document']['registerPostFixer'](_0x5ade51=>{let _0x522cab=!0x1;for(const _0x326951 of _0x4a08ed['model']['document']['differ']['getChanges']())if('insert'==_0x326951['type']){if('tableRow'==_0x326951['name']){for(const _0x4c02b0 of _0x326951['position']['nodeAfter']['getChildren']())_0x522cab=_0x522cab||_0x243225(_0x4c02b0,_0x5ade51);}else'tableCell'==_0x326951['name']&&(_0x522cab=_0x522cab||_0x243225(_0x326951['position']['nodeAfter'],_0x5ade51));}return _0x522cab;});}['_getSuggestionCoords'](_0xbe5654){return this['_getCoordsForCells'](_0xbe5654['getRanges']()['map'](_0x4f0b10=>_0x4f0b10['start']['nodeAfter']));}}function Ne(_0x2147cc){return Array['from'](new Set(_0x2147cc)['values']());}class _t extends _0x15e299{static get['requires'](){return[At];}['afterInit'](){const _0x52235b=this['editor'],_0x2f4431=_0x52235b['model']['document']['selection'],_0x215772=_0x52235b['locale'];if(!_0x52235b['plugins']['has']('TableEditing'))return;const _0x57426a=_0x52235b['plugins']['get']('TrackChangesEditing'),_0x37c228=_0x52235b['plugins']['get']('TableUtils'),_0xbb7763=_0x52235b['plugins']['get'](At);_0xbb7763['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x57426a['enableCommand']('mergeTableCells',()=>{const _0x4c3e4a=_0x37c228['getSelectionAffectedTableCells'](_0x52235b['model']['document']['selection']);_0x52235b['model']['change'](()=>{_0x57426a['markMultiRangeBlockFormat'](_0x4c3e4a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x52235b['commands']['get']('mergeTableCells')['on']('execute',(_0x462742,_0x3e6e5e)=>{_0x52235b['commands']['get']('trackChanges')['value']&&(_0x3e6e5e['length']>0x0&&_0x3e6e5e[_0x3e6e5e['length']-0x1]&&_0x3e6e5e[_0x3e6e5e['length']-0x1]['forceDefaultExecution']||_0x57426a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x462742['stop']());},{'priority':'highest'});for(const _0x5baa3a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4b6974=_0x52235b['commands']['get'](_0x5baa3a);_0x57426a['enableCommand'](_0x5baa3a,()=>{const _0x4b575b=_0x52235b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x12ab26=>_0x12ab26['is']('element','tableCell')),_0x4bfe80=_0x4b6974['value'];_0x52235b['model']['change'](()=>{_0x57426a['markMultiRangeBlockFormat']([_0x4b575b,_0x4bfe80],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5bd0e6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5a675c=_0x52235b['commands']['get'](_0x5bd0e6);_0x57426a['enableCommand'](_0x5bd0e6,()=>{const _0x2f7ebd=_0x37c228['getSelectionAffectedTableCells'](_0x52235b['model']['document']['selection'])[0x0],_0x327d49=_0x2f7ebd['findAncestor']('table'),{column:_0x3dcde0,row:_0x3174b5}=_0x37c228['getCellLocation'](_0x2f7ebd);let _0x141e3d=[];if('horizontally'==_0x5a675c['direction']){const _0x507da4=_0x37c228['createTableWalker'](_0x327d49,{'startRow':_0x3174b5,'endRow':_0x3174b5,'includeAllSlots':!0x0});_0x141e3d=Array['from'](_0x507da4)['map'](_0x59f7ec=>_0x59f7ec['cell']);}else{const _0x989add=_0x37c228['createTableWalker'](_0x327d49,{'column':_0x3dcde0,'includeAllSlots':!0x0});_0x141e3d=Array['from'](_0x989add)['map'](_0x90c49e=>_0x90c49e['cell']);}_0x52235b['model']['change'](_0x37efaf=>{_0x57426a['markBlockFormat'](_0x37efaf['createRangeOn'](_0x2f7ebd),{'commandName':_0x5bd0e6,'commandParams':[]},_0x141e3d,_0x5bd0e6);});});}_0x57426a['descriptionFactory']['registerDescriptionCallback'](_0x2135be=>{if('formatBlock'!=_0x2135be['type']&&'formatInline'!=_0x2135be['type'])return;const {data:_0x224285}=_0x2135be;return _0x224285&&'mergeTableCells'==_0x224285['commandName']?{'type':'format','content':o(_0x215772,'*Merge\x20cells*')}:void 0x0;}),_0x57426a['descriptionFactory']['registerDescriptionCallback'](_0x18eb55=>{if('formatBlock'!=_0x18eb55['type']&&'formatInline'!=_0x18eb55['type'])return;const {data:_0x300076}=_0x18eb55;return _0x300076?'splitTableCellVertically'==_0x300076['commandName']?{'type':'format','content':o(_0x215772,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x300076['commandName']?{'type':'format','content':o(_0x215772,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x461ee4=_0xbb7763['_acceptFormatSuggestionCallbackFactory']();for(const _0x445cd0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x57426a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x445cd0,'accept',_0x461ee4);for(const _0x3ad668 of['splitTableCellVertically','splitTableCellHorizontally'])_0x57426a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ad668,'accept',_0x461ee4);_0x57426a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2e9000=>{_0x52235b['model']['change'](_0x330e89=>{const _0x163426=Array['from'](_0x2f4431['getRanges']())['map'](_0x46294b=>_0x19c427['fromRange'](_0x46294b));_0x330e89['setSelection'](_0x2e9000),_0x52235b['commands']['get']('mergeTableCells')['refresh'](),_0x52235b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x44ebfa=_0x163426['filter'](_0x44d340=>'$graveyard'!=_0x44d340['root']['rootName']);_0x44ebfa['length']>0x0&&_0x330e89['setSelection'](_0x44ebfa);for(const _0xcaac15 of _0x163426)_0xcaac15['detach']();});});for(const _0x587845 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5d3366=_0x52235b['commands']['get'](_0x587845);_0x5d3366['on']('set:isEnabled',(_0x21668f,_0x3b72df,_0x280ea4)=>{if(_0x280ea4){const _0x2eef21=_0x52235b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x58c576=>_0x58c576['is']('element','tableCell'));this['_areMergableCells'](_0x5d3366['value'],_0x2eef21)||(_0x21668f['return']=!0x1,_0x21668f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a0296=this['editor']['commands']['get']('mergeTableCells'),_0x470331=this['editor']['plugins']['get']('TableUtils');if(!_0x4a0296['isEnabled'])return!0x1;const _0x57b6ed=_0x470331['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4c5c42 of _0x57b6ed)for(const _0x1f1121 of _0x57b6ed)if(_0x4c5c42!=_0x1f1121&&!this['_areMergableCells'](_0x4c5c42,_0x1f1121))return!0x1;return!0x0;}['_areMergableCells'](_0x39cef7,_0x220d36){const _0x1d01d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e8ca9=this['editor']['model']['createRangeOn'](_0x39cef7),_0x44ffa3=this['editor']['model']['createRangeOn'](_0x220d36),_0x5473a6=new Set(),_0x43c13a=new Set();for(const _0x4703ba of _0x1d01d7['getSuggestions']())if(('insertion'==_0x4703ba['type']||'deletion'==_0x4703ba['type']||'mergeTableCells'==_0x4703ba['subType'])&&_0x4703ba['isInContent']){for(const _0x38d0ed of _0x4703ba['getRanges']())_0x38d0ed['containsRange'](_0x3e8ca9,!0x0)&&_0x5473a6['add'](_0x4703ba['type']+':'+_0x4703ba['author']['id']),_0x38d0ed['containsRange'](_0x44ffa3,!0x0)&&_0x43c13a['add'](_0x4703ba['type']+':'+_0x4703ba['author']['id']);}if(_0x5473a6['size']!=_0x43c13a['size'])return!0x1;for(const _0x276fa8 of _0x5473a6)if(!_0x43c13a['has'](_0x276fa8))return!0x1;return!0x0;}}class Ct extends _0x15e299{static get['requires'](){return[At];}['afterInit'](){const _0x14c83e=this['editor'];if(!_0x14c83e['plugins']['has']('TableEditing'))return;const _0x44b287=_0x14c83e['locale'],_0x5a4cc0=_0x14c83e['plugins']['get']('TrackChangesEditing');_0x5a4cc0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5a4cc0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5a4cc0['registerBlockAttribute']('headingRows'),_0x5a4cc0['registerBlockAttribute']('headingColumns'),_0x5a4cc0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x44b287,'FORMAT_HEADER_ROW')),_0x5a4cc0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x44b287,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x170f5f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c74de=this['editor']['plugins']['get']('TableUtils'),_0x3b6864=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0xb80e4f({showActiveMarker:_0x3da014=!0x0,setDataAttribute:_0x4e4cd9=!0x0}={}){return(_0x3ab258,_0x9c9054,_0x2ee584)=>{const {type:_0xec7acd,id:_0x1612c1}=_0x170f5f['_splitMarkerName'](_0x9c9054['markerName']),_0x6f1697=_0x170f5f['getSuggestion'](_0x1612c1),_0x2f4f07=_0x6f1697['data'];if('formatBlock'!=_0x6f1697['type']||!_0x2f4f07||'setTableColumnHeader'!=_0x2f4f07['commandName'])return;if(_0x9c9054['item'])return void _0x3ab258['stop']();if(!_0x2ee584['consumable']['consume'](_0x9c9054['markerRange'],_0x3ab258['name']))return;const _0xcca383=_0x9c9054['markerRange']['start']['nodeAfter'],_0x353c1f=_0x9c9054['markerRange']['end']['nodeBefore'],_0x2fe058=_0xcca383['parent']['parent'],{column:_0x190e25}=_0x5c74de['getCellLocation'](_0xcca383),{column:_0x18b561}=_0x5c74de['getCellLocation'](_0x353c1f);for(let _0x2199b1=_0x190e25;_0x2199b1<=_0x18b561;_0x2199b1++){const _0x434dcb=_0x5c74de['createTableWalker'](_0x2fe058,{'column':_0x2199b1,'includeAllSlots':!0x1});for(const _0x47b2cf of _0x434dcb){const _0x5d9c35=_0x47b2cf['cell'],_0x1c6341=_0x2ee584['mapper']['toViewElement'](_0x5d9c35);_0x2ee584['writer']['addClass']('ck-suggestion-marker-'+_0xec7acd,_0x1c6341),_0x4e4cd9&&_0x2ee584['writer']['setAttribute']('data-suggestion',_0x1612c1,_0x1c6341),_0x2ee584['mapper']['bindElementToMarker'](_0x1c6341,_0x9c9054['markerName']),_0x3da014&&(_0x170f5f['activeMarkers']['includes'](_0x9c9054['markerName'])?_0x2ee584['writer']['addClass']('ck-suggestion-marker--active',_0x1c6341):_0x2ee584['writer']['removeClass']('ck-suggestion-marker--active',_0x1c6341));}}};}_0x170f5f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3b6864),_0x170f5f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3b6864),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb80e4f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1610f1,_0x3c6a24,_0x527019)=>{_0x527019['options']['showSuggestionHighlights']&&_0xb80e4f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1610f1,_0x3c6a24,_0x527019);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xd66025,_0x3d0ad6,_0x5f3645)=>{const {type:_0x1e0c33,id:_0x5c5141}=_0x170f5f['_splitMarkerName'](_0x3d0ad6['markerName']),_0x9eaa5b=_0x170f5f['getSuggestion'](_0x5c5141),_0x5991a2=_0x9eaa5b['data'];if('formatBlock'!=_0x9eaa5b['type']||!_0x5991a2||'setTableColumnHeader'!=_0x5991a2['commandName'])return;const _0x1f40d3=_0x5f3645['mapper']['markerNameToElements'](_0x3d0ad6['markerName']);if(_0x1f40d3){for(const _0x582e1d of _0x1f40d3)_0x5f3645['writer']['removeClass']('ck-suggestion-marker-'+_0x1e0c33,_0x582e1d),_0x5f3645['writer']['removeClass']('ck-suggestion-marker--active',_0x582e1d),_0x5f3645['writer']['removeAttribute']('data-suggestion',_0x582e1d),_0x5f3645['mapper']['unbindElementFromMarkerName'](_0x582e1d,_0x3d0ad6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e234e=this['editor'],_0x1b2aa6=_0x3e234e['locale'];function _0x3a7a36(_0x496b73){return{'type':'format','content':o(_0x1b2aa6,'*Format:*\x20%0',_0x496b73)};}_0x3e234e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ddcda=>{if('formatBlock'!=_0x4ddcda['type'])return;const {data:_0x96e990}=_0x4ddcda;if(_0x96e990){if('setTableRowHeader'==_0x96e990['commandName']){const _0x17f7a8=_0x96e990['commandParams'][0x0]['forceValue'];return _0x3a7a36(o(_0x1b2aa6,_0x17f7a8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x96e990['commandName']){const _0x54cf8d=_0x96e990['commandParams'][0x0]['forceValue'];return _0x3a7a36(o(_0x1b2aa6,_0x54cf8d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x15e299{['afterInit'](){const _0x91c6ac=this['editor'],_0x32bb41=_0x91c6ac['locale'],_0x5414a3=_0x91c6ac['plugins']['get']('TrackChangesEditing');function _0x1af08d(_0xbb18ca){return{'type':'format','content':''+o(_0x32bb41,'*Set\x20table\x20type:*\x20%0',_0xbb18ca)};}_0x91c6ac['plugins']['has']('TableLayout')&&(_0x5414a3['enableCommand']('insertTableLayout'),_0x5414a3['enableDefaultAttributesIntegration']('tableType'),_0x5414a3['registerBlockAttribute']('tableType'),_0x5414a3['descriptionFactory']['registerElementLabel'](_0x496663=>_0x496663['is']('element','table')&&'layout'===_0x496663['getAttribute']('tableType'),_0x21178c=>o(_0x32bb41,'ELEMENT_LAYOUT_TABLE',_0x21178c)),_0x5414a3['descriptionFactory']['registerDescriptionCallback'](_0x27b107=>{const {data:_0x1f0280}=_0x27b107;if(_0x1f0280&&'tableType'==_0x1f0280['key'])switch(_0x1f0280['newValue']){case'layout':return _0x1af08d(o(_0x32bb41,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1af08d(o(_0x32bb41,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x4e8c31=>[_0x4e8c31,null]));class Nt extends _0x15e299{static get['requires'](){return[At];}['afterInit'](){const _0x5a4a4d=this['editor'];if(!_0x5a4a4d['plugins']['has']('TableClipboard'))return;const _0x1ba8c4=_0x5a4a4d['plugins']['get']('TrackChangesEditing'),_0x1cf36a=_0x5a4a4d['plugins']['get']('TableUtils'),_0x1a9998=_0x5a4a4d['plugins']['get'](At),_0x1045aa=_0x5a4a4d['plugins']['get']('TableClipboard'),_0x483da2=_0x5a4a4d['plugins']['get']('TableSelection'),_0x6961cd=_0x5a4a4d['plugins']['get'](_0x1748af);_0x1a9998['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5a4a4d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5a4a4d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5dc028=null,_0x3d9dcc=!0x1;_0x6961cd['on']('contentInsertion',(_0x43ec12,_0x5d8bca)=>{_0x3d9dcc='paste'===_0x5d8bca['method'];}),_0x5a4a4d['model']['on']('insertContent',(_0x241427,_0x11bb78)=>{if(!_0x3d9dcc&&null===_0x483da2['getSelectedTableCells']())return;const [_0x4c4250,_0x541755]=_0x11bb78,_0x1ad9ad=_0x11bb78[_0x11bb78['length']-0x1];_0x1ad9ad&&_0x1ad9ad['forceDefaultExecution']||_0x1ba8c4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4d9c57,_0x48bcd9,_0x523917,_0xd251a5,_0x1d018e){if(_0x48bcd9&&!_0x48bcd9['is']('documentSelection'))return!0x1;const _0x4c47ab=_0x1d018e['getTableIfOnlyTableInContent'](_0x4d9c57,_0x523917);if(!_0x4c47ab||!Ue(_0x4c47ab,void 0x0,_0xd251a5))return!0x1;const _0x300943=_0xd251a5['getSelectionAffectedTableCells'](_0x523917['document']['selection']);if(!_0x300943['length'])return!0x1;const _0xe38bd5=_0x300943[0x0]['findAncestor']('table'),_0x23d0fd=_0xd251a5['getRowIndexes'](_0x300943),_0x1bc51a=_0xd251a5['getColumnIndexes'](_0x300943),_0x34954e={'startRow':_0x23d0fd['first'],'endRow':_0x23d0fd['last'],'startColumn':_0x1bc51a['first'],'endColumn':_0x1bc51a['last']};return 0x1==_0x300943['length']&&(_0x34954e['endRow']+=_0xd251a5['getRows'](_0x4c47ab)-0x1,_0x34954e['endColumn']+=_0xd251a5['getColumns'](_0x4c47ab)-0x1),Ue(_0xe38bd5,_0x34954e,_0xd251a5);}(_0x4c4250,_0x541755,_0x5a4a4d['model'],_0x1cf36a,_0x1045aa)&&(_0x241427['stop'](),_0x5dc028={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5a4a4d['model']['change'](()=>{_0x5a4a4d['model']['insertContent'](_0x11bb78[0x0],_0x11bb78[0x1],_0x11bb78[0x2],{'forceDefaultExecution':!0x0});const _0x4824e9=_0x324767(),{rowInsertionRanges:_0x1fa6e8,columnInsertionRanges:_0x2da81f,insertionRanges:_0x3c1f61,deletionRanges:_0x31ef76,cells:_0x11c225}=_0x5dc028;_0x1fa6e8['length']&&_0x1ba8c4['markMultiRangeInsertion'](_0x1fa6e8,'tablePasteRow',{'tablePasteChainId':_0x4824e9}),_0x2da81f['length']&&_0x1ba8c4['markMultiRangeInsertion'](_0x2da81f,'tablePasteColumn',{'tablePasteChainId':_0x4824e9}),_0x3c1f61['length']&&(_0x1ba8c4['markMultiRangeInsertion'](_0x3c1f61,'tablePaste',{'tablePasteChainId':_0x4824e9,'skipNestingCheck':!0x0}),_0x3c1f61['forEach'](_0x3b2f06=>_0x3b2f06['detach']?.())),_0x31ef76['length']&&(_0x1ba8c4['markMultiRangeDeletion'](_0x31ef76,'tablePaste',{'tablePasteChainId':_0x4824e9,'skipNestingCheck':!0x0}),_0x31ef76['forEach'](_0x93adf0=>_0x93adf0['detach']?.()));const _0x59004c=_0x1ba8c4['markMultiRangeBlockFormat'](_0x11c225['map'](({element:_0x2d7c9b})=>_0x2d7c9b),{'formatGroupId':_0x324767()},[],'tablePasteCell',{'tablePasteChainId':_0x4824e9});if(_0x59004c){const _0x591d56=_0x59004c['getMarkers'](),_0x132b8b=[];for(const {element:_0x459bf5,attributes:_0x103f1c}of _0x11c225){if(!_0x103f1c)continue;const _0x522b7f=_0x5a4a4d['model']['createRangeOn'](_0x459bf5),_0x50180f=_0x591d56['find'](_0x36418a=>_0x36418a['getRange']()['isEqual'](_0x522b7f));_0x50180f&&_0x132b8b['push']([_0x50180f['name'],_0x103f1c]);}_0x132b8b['length']&&_0x59004c['setAttribute']('markerAttributes',Object['fromEntries'](_0x132b8b));}_0x5dc028=null;}));},{'priority':_0x45dc8c['high']+0xa}),_0x6961cd['on']('contentInsertion',()=>{_0x3d9dcc=!0x1;},{'priority':'lowest'}),_0x5a4a4d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x13ee55,_0x1696ba)=>{const [_0x25a951,_0x54be87,,_0x5b1201]=_0x1696ba;if(!_0x5dc028)return;_0x13ee55['stop']();const _0x2bde15=_0x25a951['cell'],_0x5f1af7=_0x54be87,_0x554edc=Oe(_0x2bde15),_0x9c2939=Oe(_0x5f1af7);_0x13ee55['return']=_0x2bde15;let _0x30a713=null,_0xdc57a4=null;if(_0x9c2939||_0x554edc){if(_0x554edc&&!_0x9c2939){_0x5b1201['remove'](_0x2bde15['getChild'](0x0));for(const _0x50ab3a of Array['from'](_0x5f1af7['getChildren']()))_0x5b1201['insert'](_0x50ab3a,_0x2bde15,'end');const _0x424405=_0x5dc028['rowInsertionIndexes']['includes'](_0x25a951['row']),_0x29e1de=_0x5dc028['columnInsertionIndexes']['includes'](_0x25a951['column']);_0x424405||_0x29e1de||(_0x30a713=_0x19c427['fromRange'](_0x5b1201['createRangeIn'](_0x2bde15)));}else _0x9c2939&&!_0x554edc&&(_0xdc57a4=_0x5b1201['createRangeIn'](_0x2bde15));}else{const _0x5d399b=_0x5b1201['createElement']('tableCellSuggestion'),_0x6cb736=_0x5b1201['createElement']('tableCellSuggestion');_0x5b1201['wrap'](_0x5b1201['createRangeIn'](_0x2bde15),_0x6cb736),_0x5b1201['insert'](_0x5d399b,_0x2bde15,0x0);for(const _0x333313 of Array['from'](_0x5f1af7['getChildren']()))_0x5b1201['insert'](_0x333313,_0x5d399b,'end');_0x30a713=_0x19c427['fromRange'](_0x5b1201['createRangeOn'](_0x5d399b)),_0xdc57a4=_0x19c427['fromRange'](_0x5b1201['createRangeOn'](_0x6cb736));}const _0x2d08a6=Array['from'](_0x5f1af7['getAttributes']())['filter'](([_0x386313])=>Be['includes'](_0x386313));_0x5dc028['cells']['push']({'element':_0x2bde15,'attributes':_0x2d08a6['length']?Object['fromEntries'](_0x2d08a6):null}),_0x30a713&&_0x5dc028['insertionRanges']['push'](_0x30a713),_0xdc57a4&&_0x5dc028['deletionRanges']['push'](_0xdc57a4);},{'priority':'high'}),_0x1cf36a['on']('insertColumns',(_0x547323,_0x4dd6e7)=>{const [_0x4ce2a1,_0x9e5d4b={}]=_0x4dd6e7;if(!_0x5dc028)return;const _0x44002f=_0x9e5d4b['at']||0x0,_0x1f4389=_0x9e5d4b['columns']||0x1;_0x5dc028['columnInsertionIndexes']=new Array(_0x1f4389)['fill'](_0x44002f)['map']((_0x29334f,_0x2210de)=>_0x29334f+_0x2210de);for(const {cell:_0x4c62e3}of _0x1cf36a['createTableWalker'](_0x4ce2a1,{'startColumn':_0x44002f,'endColumn':_0x44002f+_0x1f4389-0x1}))_0x5dc028['columnInsertionRanges']['push'](_0x5a4a4d['model']['createRangeOn'](_0x4c62e3));},{'priority':'low'}),_0x1cf36a['on']('insertRows',(_0x571916,_0x70aa9)=>{const [_0x45b848,_0x3f7665={}]=_0x70aa9;if(!_0x5dc028)return;const _0x2997bf=_0x3f7665['at']||0x0,_0x4f38d5=_0x3f7665['rows']||0x1;_0x5dc028['rowInsertionIndexes']=new Array(_0x4f38d5)['fill'](_0x2997bf)['map']((_0x5d950b,_0x356b43)=>_0x5d950b+_0x356b43);for(const {cell:_0x37db7d}of _0x1cf36a['createTableWalker'](_0x45b848,{'startRow':_0x2997bf,'endRow':_0x2997bf+_0x4f38d5-0x1}))_0x5dc028['rowInsertionRanges']['push'](_0x5a4a4d['model']['createRangeOn'](_0x37db7d));},{'priority':'low'}),_0x1ba8c4['descriptionFactory']['registerDescriptionCallback'](_0xc73932=>{if(_0xc73932['subType']&&_0xc73932['subType']['startsWith']('tablePaste'))return _0xc73932['previous']?{}:{'type':'insertion','content':o(_0x5a4a4d['locale'],'*Replace\x20table\x20cells*')};});const _0x2f06a1=()=>!0x1;for(const _0x1d943a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1ba8c4['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d943a,'join',_0x2f06a1),_0x1ba8c4['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d943a,'join',_0x2f06a1),_0x1ba8c4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d943a,'join',_0x2f06a1);_0x1ba8c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2f06a1),_0x1ba8c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a494a,_0x30aebf,_0x907861)=>{const _0x2e81ea=_0x3a494a['map'](_0x2bc51a=>_0x2bc51a['getContainedElement']())['filter'](_0x25f8d8=>_0x25f8d8),_0x10766d=new Map(_0x2e81ea['map'](_0x2e35f0=>[_0x2e35f0,null]));if(_0x5dc028){for(const {element:_0x1c75e8,attributes:_0xde6a20}of _0x5dc028['cells'])_0xde6a20&&_0x10766d['set'](_0x1c75e8,_0xde6a20);}else{if(_0x907861&&_0x907861['markerAttributes'])for(const [_0x171f8a,_0x3c9f2f]of Object['entries'](_0x907861['markerAttributes'])){const _0x32dfd6=_0x5a4a4d['model']['markers']['get'](_0x171f8a),_0x41f047=_0x32dfd6?_0x32dfd6['getRange']()['getContainedElement']():null;_0x41f047&&_0x10766d['set'](_0x41f047,_0x3c9f2f);}}_0x5a4a4d['model']['change'](_0x581d98=>{for(const [_0x30f884,_0x3ed670]of _0x10766d)_0x581d98['setAttributes']({...xe,..._0x3ed670},_0x30f884);});});const _0x1fa4e3=(_0x2b834b,_0x12a741)=>{_0x1ba8c4['_suggestionFactory']['registerCustomCallback'](_0x2b834b,'tablePaste',_0x12a741,(_0x88801c,_0x59facb,_0x36e7a3)=>{_0x5a4a4d['model']['change'](_0x4585e9=>{const _0x39c8e1=[];for(const _0x181622 of _0x88801c){const _0x30f81b=_0x181622['start']['nodeAfter'];_0x30f81b['is']('element','tableCellSuggestion')&&_0x39c8e1['push'](_0x30f81b);}_0x1ba8c4['_suggestionFactory']['getSuggestionCallback'](_0x2b834b,null,_0x12a741)(_0x88801c,_0x59facb,_0x36e7a3);for(const _0x48506b of _0x39c8e1)'$graveyard'!=_0x48506b['root']['rootName']&&_0x4585e9['unwrap'](_0x48506b);});});};_0x1fa4e3('insertion','accept'),_0x1fa4e3('insertion','discard'),_0x1fa4e3('deletion','accept'),_0x1fa4e3('deletion','discard'),_0x1ba8c4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4fea6e=>{const _0x4c5c79=_0x4fea6e['map'](_0x129462=>_0x129462['getContainedElement']()),_0xd8b3a1=_0x4c5c79[0x0]['findAncestor']('table'),{minRow:_0x32fdf0,maxRow:_0x6d8840}=_0x1a9998['_getCoordsForCells'](_0x4c5c79);_0x1cf36a['removeRows'](_0xd8b3a1,{'at':_0x32fdf0,'rows':_0x6d8840-_0x32fdf0+0x1});}),_0x1ba8c4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3c9eb9=>{const _0x53285e=_0x3c9eb9['map'](_0x3de653=>_0x3de653['getContainedElement']()),_0x3c8812=_0x53285e[0x0]['findAncestor']('table'),{minColumn:_0x3a5c36,maxColumn:_0x5adc35}=_0x1a9998['_getCoordsForCells'](_0x53285e);_0x1cf36a['removeColumns'](_0x3c8812,{'at':_0x3a5c36,'columns':_0x5adc35-_0x3a5c36+0x1});});const _0x415be9=(_0x25d796,_0x4f0b5c)=>{if(!_0x4f0b5c['subType']||!_0x4f0b5c['subType']['startsWith']('tablePaste'))return;const _0x1bd7d1=_0x4f0b5c['attributes']['tablePasteChainId'],_0x49f4dd=_0x1ba8c4['getSuggestions']()['filter'](_0x4373a8=>_0x4373a8['isInContent']&&_0x4373a8['attributes']&&_0x4373a8['attributes']['tablePasteChainId']==_0x1bd7d1);_0x49f4dd['length']&&_0x4f0b5c['getAllAdjacentSuggestions']()['length']!=_0x49f4dd['length']&&_0x49f4dd['reduce']((_0x12f1d8,_0x76b94e)=>(_0x12f1d8['next']=_0x76b94e,_0x76b94e['previous']=_0x12f1d8,_0x76b94e));};function _0x2a4476(_0x353ac5,_0x1aedd8=!0x0){const {id:_0x4d2646,authorId:_0x36167b}=_0x1ba8c4['_splitMarkerName'](_0x353ac5['markerName']),_0xd20a44=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x522199=_0x1ba8c4['activeMarkers']['includes'](_0x353ac5['markerName']);return _0x522199&&_0xd20a44['push']('ck-suggestion-marker--active'),{'classes':_0xd20a44,'attributes':{'data-suggestion':_0x4d2646,'data-author-id':_0x36167b},'priority':_0x522199&&_0x1aedd8?0xbc2:0xbb8};}_0x1ba8c4['on']('suggestionLoaded',_0x415be9,{'priority':'high'}),_0x1ba8c4['on']('suggestionUnloaded',_0x415be9,{'priority':'high'}),_0x5a4a4d['model']['document']['registerPostFixer'](()=>{let _0x20d067=!0x1;const _0x10c654=Array['from'](_0x5a4a4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x758e6f,data:_0x176871}of _0x10c654){const {group:_0xa9034b,type:_0x4e8213,id:_0x4b5217}=_0x1ba8c4['_splitMarkerName'](_0x758e6f);if('suggestion'!=_0xa9034b||'deletion'!=_0x4e8213||_0x176871['oldRange'])continue;if(!_0x1ba8c4['hasSuggestion'](_0x4b5217))continue;const _0x33dd99=_0x1ba8c4['getSuggestion'](_0x4b5217)['getRanges'](),_0x103dbf=_0x5a4a4d['plugins']['get']('Users')['me'];for(const _0x593523 of _0x1ba8c4['getSuggestions']()){if(!_0x593523['isInContent']||_0x593523['author']!=_0x103dbf)continue;if('formatBlock'!=_0x593523['type']||'tablePasteCell'!=_0x593523['subType'])continue;if(_0x593523['getRanges']()['every'](_0x245dfb=>_0x33dd99['some'](_0x5cdb4f=>_0x5cdb4f['containsRange'](_0x245dfb,!0x0)))){for(const _0x23e219 of _0x593523['getAllAdjacentSuggestions']())_0x23e219['isInContent']&&(_0x23e219['discard'](),_0x20d067=!0x0);}}}return _0x20d067;}),_0x5a4a4d['model']['document']['registerPostFixer'](_0x6eda23=>{const _0x2ca015=_0x5a4a4d['commands']['get']('redo');if(!_0x2ca015||!_0x2ca015['_createdBatches']['has'](_0x6eda23['batch']))return!0x1;let _0x18f739=!0x1;const _0x43008a=_0x5a4a4d['plugins']['get']('Users')['me'],_0x1e6604=_0x5a4a4d['model']['document']['differ']['getChanges'](),_0x3b264d=Array['from'](_0x5a4a4d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x416544,data:_0x976050})=>{const {group:_0x19a87b,subType:_0x14598b,authorId:_0x1c66f7}=_0x1ba8c4['_splitMarkerName'](_0x416544);return'suggestion'==_0x19a87b&&'tablePaste'==_0x14598b&&_0x1c66f7==_0x43008a['id']&&!_0x976050['oldRange'];});for(const _0x19309e of _0x1e6604){if('insert'!=_0x19309e['type']||'tableCellSuggestion'!=_0x19309e['name']||0x1!=_0x19309e['length'])continue;const _0x3a846d=_0x6eda23['createRange'](_0x19309e['position'],_0x19309e['position']['getShiftedBy'](0x1));if(!_0x3b264d['find'](({data:_0x23916b})=>_0x23916b['newRange']['isEqual'](_0x3a846d))){for(const {name:_0x42e8c4,data:_0xb1a6a}of _0x3b264d)if(_0x3a846d['containsRange'](_0xb1a6a['newRange'])){_0x6eda23['updateMarker'](_0x42e8c4,{'range':_0x3a846d}),_0x18f739=!0x0;break;}}}return _0x18f739;}),_0x5a4a4d['model']['document']['registerPostFixer'](_0x4046eb=>{let _0x2f28db=!0x1;const _0x48f724=_0x5a4a4d['plugins']['get']('Users')['me'],_0x3bb914=_0x1ba8c4['getSuggestions']()['filter'](_0x3479dd=>_0x3479dd['isInContent']&&_0x3479dd['author']==_0x48f724),_0x57a8ef=new Set(),_0x3d9d05=new Set();for(const _0x4b7070 of _0x3bb914)if('tablePaste'==_0x4b7070['subType'])for(const _0x5024ba of _0x4b7070['getMarkers']()){const _0x2c44e7=_0x5024ba['getRange']()['getContainedElement']();if(_0x2c44e7){if(_0x2c44e7['is']('element','tableCellSuggestion')&&Oe(_0x2c44e7)){_0x4b7070['removeMarker'](_0x5024ba['name']),_0x57a8ef['add'](_0x2c44e7),_0x2f28db=!0x0;const _0x18642c=_0x2c44e7['nextSibling'],_0x18f0c6=_0x2c44e7['previousSibling'],_0x28894d=_0x18642c&&_0x18642c['is']('element','tableCellSuggestion'),_0x128942=_0x18f0c6&&_0x18f0c6['is']('element','tableCellSuggestion');_0x28894d&&!_0x57a8ef['has'](_0x18642c)&&_0x3d9d05['add'](_0x18642c),_0x128942&&!_0x57a8ef['has'](_0x18f0c6)&&_0x3d9d05['add'](_0x18f0c6);}else _0x2c44e7['is']('element','paragraph')&&_0x2c44e7['isEmpty']&&(_0x4b7070['removeMarker'](_0x5024ba['name']),_0x2f28db=!0x0);}}else{if('tablePasteCell'==_0x4b7070['subType']){if(!_0x4b7070['attributes']||!_0x4b7070['attributes']['tablePasteChainId'])continue;const _0x5d9729=_0x4b7070['attributes']['markerAttributes'];if(_0x5d9729&&Object['keys'](_0x5d9729)['length'])continue;const _0x2f60b0=_0x4b7070['attributes']['tablePasteChainId'];let _0x589006=!0x0,_0x143a85=!0x0;for(const _0x243bad of _0x3bb914)if(_0x243bad['subType']&&_0x243bad['subType']['startsWith']('tablePaste')){if(!_0x243bad['attributes']['tablePasteChainId']){_0x143a85=!0x1;break;}if(_0x243bad['id']!=_0x4b7070['id']&&_0x243bad['attributes']['tablePasteChainId']==_0x2f60b0){_0x589006=!0x1;break;}}_0x143a85&&_0x589006&&(_0x4b7070['removeMarkers'](),_0x2f28db=!0x0);}}for(const _0x483d7b of _0x57a8ef)_0x4046eb['remove'](_0x483d7b);for(const _0xfda416 of _0x3d9d05)_0x4046eb['unwrap'](_0xfda416);return _0x2f28db;}),_0x5a4a4d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3657d5=>_0x2a4476(_0x3657d5),'converterPriority':'high'}),_0x5a4a4d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4f5d03,_0x39aa11)=>_0x39aa11['options']['showSuggestionHighlights']?_0x2a4476(_0x4f5d03,!0x1):null,'converterPriority':'high'});const _0xac99bc=_0x5a4a4d['editing']['view'];this['listenTo'](_0xac99bc['document'],'clipboardOutput',(_0x1208a9,_0x5716f0)=>{const _0x55395e=[];for(const _0x37db26 of _0xac99bc['createRangeIn'](_0x5716f0['content'])['getItems']())_0x37db26['is']('element','suggestion-td')&&_0x55395e['push'](_0x37db26);_0xac99bc['change'](_0x31a720=>{for(const _0x96d35a of _0x55395e)_0x31a720['move'](_0x31a720['createRangeIn'](_0x96d35a),_0x31a720['createPositionBefore'](_0x96d35a)),_0x31a720['remove'](_0x96d35a);});});}}function Oe(_0x437f7a){if(_0x437f7a['isEmpty'])return!0x0;const _0x36a1e0=_0x437f7a['getChild'](0x0);return _0x36a1e0['is']('element','paragraph')&&_0x36a1e0['isEmpty'];}function Ue(_0x3b6181,_0x2a4b20={},_0x529629){for(const {isAnchor:_0x333811,cellHeight:_0x182268,cellWidth:_0x5397b4}of _0x529629['createTableWalker'](_0x3b6181,{'includeAllSlots':!0x0,..._0x2a4b20}))if(!_0x333811||0x1!=_0x182268||0x1!=_0x5397b4)return!0x1;return!0x0;}class Dt extends _0x15e299{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x28a7f6=this['editor']['plugins']['get']('TrackChangesEditing');_0x28a7f6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x28a7f6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x28a7f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28a7f6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x28a7f6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x28a7f6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x348c67,_0x4036ef){const _0x1f86f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10cd17=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5a7672=_0x4036ef['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x10a7d6=_0x10cd17['getColumnGroupElement'](_0x5a7672);let _0x3057fd=_0x10a7d6?_0x10cd17['getTableColumnsWidths'](_0x10a7d6):null,_0x247149=_0x5a7672['getAttribute']('tableWidth')||null;const _0x4b86a2=_0x4036ef['tableWidth']||_0x247149,_0x197d25=_0x4036ef['columnWidths']||_0x3057fd,_0x1356cf=this['editor']['plugins']['get']('Users')['me'];for(const _0x26758d of _0x1f86f3['getSuggestions']()){const _0x449138=_0x26758d['getContainedElement']();if('resizeTable'===_0x26758d['subType']&&_0x449138===_0x5a7672){_0x26758d['author']!==_0x1356cf&&_0x26758d['discard']();const _0x488935=_0x26758d['data']['commandParams'];_0x247149=_0x488935[0x0]['tableWidth'],_0x3057fd=_0x488935[0x0]['columnWidths'];break;}}_0x348c67({'table':_0x5a7672,'tableWidth':_0x4b86a2,'columnWidths':_0x197d25}),_0x1f86f3['markBlockFormat'](_0x5a7672,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x247149,'columnWidths':_0x3057fd}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x47f41d){if('formatBlock'!=_0x47f41d['type']&&'formatInline'!=_0x47f41d['type'])return;const {data:_0x38a908}=_0x47f41d;if(_0x38a908&&'resizeTable'===_0x38a908['formatGroupId']){const _0x1294db='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1294db)};}}}class $t extends _0x15e299{['afterInit'](){const _0x1a5ccf=this['editor'];_0x1a5ccf['plugins']['has']('Template')&&_0x1a5ccf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x15e299{['afterInit'](){const _0x667e7f=this['editor'];if(!_0x667e7f['commands']['get']('insertTableOfContents'))return;_0x667e7f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3c6c23=_0x667e7f['plugins']['get']('TrackChangesEditing'),_0x85ea81=_0x667e7f['locale'];_0x3c6c23['descriptionFactory']['registerElementLabel']('tableOfContents',_0x24060b=>o(_0x85ea81,'ELEMENT_TABLE_OF_CONTENTS',_0x24060b));}}class Bt extends _0x15e299{['afterInit'](){const _0x38af23=this['editor'];if(!_0x38af23['plugins']['has']('Title'))return;const _0x54927f=_0x38af23['plugins']['get']('TrackChangesEditing');_0x54927f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x38af23['locale'],'ELEMENT_TITLE')),_0x38af23['model']['document']['registerPostFixer'](_0x567e36=>{let _0x1f9d0c=!0x1;const _0x27268d=Array['from'](_0x38af23['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x390d84,data:_0x1d8b25}of _0x27268d){const {group:_0x5cb598}=_0x54927f['_splitMarkerName'](_0x390d84);if('suggestion'!==_0x5cb598||!_0x1d8b25['newRange'])continue;const _0x4fee8c=_0x1d8b25['newRange'],_0x11706f=_0x4fee8c['end']['nodeBefore'];if(!_0x11706f||!_0x11706f['is']('element','title-content'))continue;if(!_0x4fee8c['start']['isTouching'](_0x4fee8c['end']))continue;const _0x356907=_0x38af23['model']['schema']['getNearestSelectionRange'](_0x4fee8c['end'],'forward');if(_0x356907&&_0x356907['isCollapsed']){const _0x73a3c=_0x567e36['createRange'](_0x4fee8c['start'],_0x356907['start']);_0x73a3c['isEqual'](_0x4fee8c)||(_0x567e36['updateMarker'](_0x390d84,{'range':_0x73a3c}),_0x1f9d0c=!0x0);}_0x1f9d0c||(_0x567e36['removeMarker'](_0x390d84),_0x1f9d0c=!0x0);}return _0x1f9d0c;});}}class Tt extends _0x15e299{['afterInit'](){const _0x57335b=this['editor'],_0x5bf8c0=_0x57335b['plugins']['get']('TrackChangesEditing');_0x57335b['plugins']['has']('Uploadcare')&&(_0x5bf8c0['enableCommand']('uploadcare'),_0x57335b['plugins']['has']('UploadcareImageEdit')&&(_0x5bf8c0['enableCommand']('uploadcareImageEdit'),_0x5bf8c0['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5bf8c0['registerBlockAttribute']('uploadcareImageId'),_0x5bf8c0['descriptionFactory']['registerDescriptionCallback'](_0x36991d=>{if('attribute'!=_0x36991d['type'])return;const {data:_0x26dda2}=_0x36991d;return _0x26dda2&&'uploadcareImageId'==_0x26dda2['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x15e299{['afterInit'](){const _0x2c20e6=this['editor'],_0x377856=_0x2c20e6['plugins']['get']('TrackChangesEditing');_0x2c20e6['plugins']['has']('UndoEditing')&&(_0x377856['enableCommand']('undo'),_0x377856['enableCommand']('redo'));}}class Ot extends _0x15e299{static get['requires'](){return[At];}['afterInit'](){const _0x2062f9=this['editor'];if(!_0x2062f9['plugins']['has']('TableCaptionEditing'))return;_0x2062f9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x15e299{['tableProperties'];['tableCellProperties'];constructor(_0x2b5f3e){super(_0x2b5f3e),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x409a80=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x490378 of this['tableProperties'])_0x409a80['enableCommand'](_0x490378,(_0x379498,_0x85dec6)=>{const _0x1d4ce1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x490378,[_0x1d4ce1],this['tableProperties'],'tableProperties',_0x379498,_0x85dec6);});_0x409a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x409a80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x409a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4b65b4,_0x4847c2)=>this['handleDiscardAction'](this['tableProperties'],_0x4b65b4,_0x4847c2)),_0x409a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5f5c37 of this['tableCellProperties'])_0x409a80['enableCommand'](_0x5f5c37,(_0x398f1b,_0x43c025)=>{const _0xe82bb0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5f5c37,_0xe82bb0,this['tableCellProperties'],'tableCellProperties',_0x398f1b,_0x43c025);});_0x409a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x409a80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x409a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1b52e8,_0xfca9b1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1b52e8,_0xfca9b1)),_0x409a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x409a80['descriptionFactory']['registerDescriptionCallback'](_0x338aa1=>this['handleSuggestionDescription'](_0x338aa1)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x151cdf,_0x57212d,_0x317ad0,_0x1f4f71,_0x1281c9,_0x1034fa){const _0x3c7694=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1034fa['batch'],()=>{for(const _0x97dcef of _0x57212d){if(this['_getSuggestion'](_0x97dcef,_0x1f4f71))_0x1281c9(_0x1034fa);else{const _0x44fbe8={};for(const _0x125af1 of _0x317ad0){const _0x453390=_0x97dcef['getAttribute'](_0x125af1);void 0x0!==_0x453390&&(_0x44fbe8[_0x125af1]=_0x453390);}_0x1281c9(_0x1034fa),_0x3c7694['markBlockFormat'](_0x97dcef,{'commandParams':[_0x44fbe8]},[],_0x1f4f71);}}});}['handleDiscardAction'](_0x4187c8,_0x407814,_0x885e6b){const _0x145922=_0x407814[0x0]['start']['nodeAfter'],_0x9a2a5=_0x885e6b['commandParams'][0x0];this['editor']['model']['change'](_0x5cbeb3=>{for(const _0x3e456d of _0x4187c8)void 0x0!==_0x9a2a5[_0x3e456d]?_0x5cbeb3['setAttribute'](_0x3e456d,_0x9a2a5[_0x3e456d],_0x145922):_0x5cbeb3['removeAttribute'](_0x3e456d,_0x145922);});}['handleSuggestionDescription'](_0x5c4f30){if(_0x5c4f30['data'])switch(_0x5c4f30['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2eb75d,_0x1f5497){const _0x71a462=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1aa357 of _0x71a462['getSuggestions']({'skipNotAttached':!0x0})){const _0x2f8739=_0x1aa357['getContainedElement']();if(_0x1aa357['subType']===_0x1f5497&&_0x2f8739===_0x2eb75d)return _0x1aa357;}return null;}['_registerTablePropertiesAttributes'](){const _0x1d22c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50195f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2a1a61 of _0x50195f){const _0x314500=_0x2a1a61['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1d22c8['registerBlockAttribute'](_0x2a1a61),_0x1d22c8['descriptionFactory']['registerAttributeLabel'](_0x2a1a61,o(this['editor']['locale'],'FORMAT_'+_0x314500));}}}class Rt extends _0x15e299{['afterInit'](){const _0x2082b0=this['editor'];if(!_0x2082b0['plugins']['has']('LineHeight'))return;const _0xd4dbf4=_0x2082b0['plugins']['get']('TrackChangesEditing'),_0x3eabe0=_0x2082b0['locale'];_0xd4dbf4['enableDefaultAttributesIntegration']('lineHeight'),_0xd4dbf4['registerBlockAttribute']('lineHeight'),_0xd4dbf4['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3eabe0,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x15e299{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3758e8,_0x460d8f,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21be7b){super(_0x21be7b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x510e20,_0x2b60da,_0x53ac40,_0x578492)=>{this['_model']['change'](()=>{for(const _0x25f924 of[..._0x578492,..._0x53ac40])this['_model']['markers']['has'](_0x25f924)&&_0x21be7b['editing']['reconvertMarker'](_0x25f924);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x21be7b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x21be7b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21be7b['config']['get']('trackChanges.trackFormatChanges'),_0x21be7b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21be7b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x21be7b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x332584=this['editor'],_0x52d153=(_0xdde64d,_0x5c8762)=>{if('attribute'!=_0xdde64d)return'ck-suggestion-marker-'+_0xdde64d;const _0x45c7e8=_0x5c8762['split']('|')[0x0];return this['_isBlockAttribute'](_0x45c7e8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x332584['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x31b47e=>{const {id:_0x37a4fc,authorId:_0xf79160,type:_0x3d2be7,subType:_0x1f995a}=this['_splitMarkerName'](_0x31b47e['markerName']),_0x190f85=['ck-suggestion-marker',_0x52d153(_0x3d2be7,_0x1f995a)];let _0xc9af8e=0xbb8;return this['activeMarkers']['includes'](_0x31b47e['markerName'])&&(_0x190f85['push']('ck-suggestion-marker--active'),_0xc9af8e=0xbc2),'deletion'==_0x3d2be7&&(_0xc9af8e+=0x5),{'classes':_0x190f85,'attributes':{'data-suggestion':_0x37a4fc,'data-author-id':_0xf79160},'priority':_0xc9af8e};}}),_0x332584['conversion']['for']('dataDowncast')['add'](_0x2f345a=>{_0x2f345a['on']('addMarker:suggestion',(_0x4dad8c,_0x12471c,_0x5aaac3)=>{if(!_0x5aaac3['options']['showSuggestionHighlights'])return;const _0x17a9c5=_0x12471c['item'];if(!_0x17a9c5)return;const _0x597269=_0x5aaac3['mapper']['toViewElement'](_0x17a9c5);_0x332584['model']['schema']['isObject'](_0x17a9c5)&&_0x597269&&!_0x597269['getCustomProperty']('widget')&&_0x597269['is']('containerElement')&&_0x12f187(_0x597269,_0x5aaac3['writer']);},{'priority':'high'});}),_0x332584['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1e00c8,_0xa43be8)=>{if(!_0xa43be8['options']['showSuggestionHighlights'])return null;const {id:_0x520431,authorId:_0x37b87a,type:_0x26e937,subType:_0x122364}=this['_splitMarkerName'](_0x1e00c8['markerName']);return{'classes':['ck-suggestion-marker',_0x52d153(_0x26e937,_0x122364)],'priority':0xbb8,'attributes':{'data-suggestion':_0x520431,'data-author-id':_0x37b87a}};}});const _0x544c98=({showActiveMarkers:_0x21949c=!0x0,isAttributeSuggestion:_0x4250d6=!0x1}={})=>(_0x5998e5,_0x4af5b2,_0x424209)=>{if(!_0x4af5b2['item'])return;const {id:_0xe74949,authorId:_0x42a0f1}=this['_splitMarkerName'](_0x4af5b2['markerName']);if(_0x4250d6){const _0x2a0155=this['_suggestions']['get'](_0xe74949),_0x4f9e9f=this['_getAttributeKey'](_0x2a0155);if(!this['_isBlockAttribute'](_0x4f9e9f))return;}if(_0x4af5b2['item']['is']('selection'))return void _0x424209['consumable']['consume'](_0x4af5b2['item'],_0x5998e5['name']);const _0x2a9e3f=_0x424209['mapper']['toViewElement'](_0x4af5b2['item']);if(_0x4af5b2['item']['is']('element')&&_0x332584['model']['schema']['isBlock'](_0x4af5b2['item'])&&!_0x2a9e3f['getCustomProperty']('addHighlight')){_0x424209['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2a9e3f),_0x424209['writer']['setAttribute']('data-suggestion',_0xe74949,_0x2a9e3f),_0x424209['writer']['setAttribute']('data-author-id',_0x42a0f1,_0x2a9e3f),_0x424209['mapper']['bindElementToMarker'](_0x2a9e3f,_0x4af5b2['markerName']),_0x21949c&&(this['activeMarkers']['includes'](_0x4af5b2['markerName'])?_0x424209['writer']['addClass']('ck-suggestion-marker--active',_0x2a9e3f):_0x424209['writer']['removeClass']('ck-suggestion-marker--active',_0x2a9e3f));for(const _0x4cd2fd of _0x332584['model']['createRangeIn'](_0x4af5b2['item'])['getItems']())_0x424209['consumable']['consume'](_0x4cd2fd,_0x5998e5['name']);_0x424209['consumable']['consume'](_0x4af5b2['item'],_0x5998e5['name']);}};_0x332584['conversion']['for']('dataDowncast')['add'](_0x472710=>{_0x472710['on']('addMarker:suggestion:formatBlock',(_0x420d38,_0x4ec2d9,_0x17c0a3)=>{_0x17c0a3['options']['showSuggestionHighlights']&&_0x544c98({'showActiveMarkers':!0x1})(_0x420d38,_0x4ec2d9,_0x17c0a3);},{'priority':'highest'});}),_0x332584['conversion']['for']('dataDowncast')['add'](_0x16ca30=>{_0x16ca30['on']('addMarker:suggestion:attribute',(_0x117c20,_0x180cec,_0x5ec4e0)=>{_0x5ec4e0['options']['showSuggestionHighlights']&&_0x544c98({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x117c20,_0x180cec,_0x5ec4e0);},{'priority':'highest'});}),_0x332584['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3152bb,_0x8910ba)=>{if(_0x8910ba['options']['showSuggestionHighlights']){const {id:_0x55822a,authorId:_0x530eaf}=this['_splitMarkerName'](_0x3152bb);return _0x3152bb['includes'](':split')||_0x3152bb['includes'](':merge')?{'group':'suggestion','name':_0x3152bb['substr'](0xb),'attributes':{'data-suggestion':_0x55822a,'data-author-id':_0x530eaf}}:null;}return{'group':'suggestion','name':_0x3152bb['substr'](0xb)};}}),_0x332584['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x10822d,{writer:_0x154004})=>{let _0x2977a8='suggestion:'+_0x10822d['getAttribute']('suggestion-type')+':'+_0x10822d['getAttribute']('id');return _0x10822d['getAttribute']('marker-count')&&(_0x2977a8+=':'+_0x10822d['getAttribute']('marker-count')),_0x154004['createElement']('$marker',{'data-name':_0x2977a8});}}),_0x332584['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x332584['conversion']['for']('editingDowncast')['add'](_0x54dd1c=>{_0x54dd1c['on']('addMarker:suggestion:formatBlock',_0x544c98(),{'priority':'high'});}),_0x332584['conversion']['for']('editingDowncast')['add'](_0x2e1468=>{_0x2e1468['on']('addMarker:suggestion:attribute',_0x544c98({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x332584['conversion']['for']('editingDowncast')['add'](_0x3195c7=>{_0x3195c7['on']('removeMarker:suggestion:formatBlock',(_0x257831,_0x1a2458,_0x5674f3)=>{const _0x461260=_0x5674f3['mapper']['markerNameToElements'](_0x1a2458['markerName']);if(_0x461260){for(const _0x2931c3 of _0x461260)_0x2931c3['getCustomProperty']('addHighlight')||(_0x5674f3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2931c3),_0x5674f3['writer']['removeAttribute']('data-suggestion',_0x2931c3),_0x5674f3['writer']['removeAttribute']('data-author-id',_0x2931c3),_0x5674f3['mapper']['unbindElementFromMarkerName'](_0x2931c3,_0x1a2458['markerName']));}},{'priority':'high'});}),_0x332584['conversion']['for']('editingDowncast')['add'](_0xfb7276=>{_0xfb7276['on']('removeMarker:suggestion:attribute',(_0x54f3f0,_0x802592,_0x196777)=>{const _0x1ad6c8=_0x196777['mapper']['markerNameToElements'](_0x802592['markerName']);if(!_0x1ad6c8)return;const {id:_0x3ee388}=this['_splitMarkerName'](_0x802592['markerName']),_0x582b21=this['_suggestions']['get'](_0x3ee388),_0x89eb46=this['_getAttributeKey'](_0x582b21);if(this['_isBlockAttribute'](_0x89eb46)){for(const _0x205366 of _0x1ad6c8)_0x205366['getCustomProperty']('addHighlight')||(_0x196777['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x205366),_0x196777['writer']['removeAttribute']('data-suggestion',_0x205366),_0x196777['writer']['removeAttribute']('data-author-id',_0x205366),_0x196777['mapper']['unbindElementFromMarkerName'](_0x205366,_0x802592['markerName']));}},{'priority':'high'});}),_0x332584['model']['document']['registerPostFixer'](_0x476772=>{let _0x3a0a96=!0x1;const _0xea39c5=Array['from'](_0x332584['model']['document']['differ']['getChangedMarkers']()),_0x38f14c=new Set();for(const {name:_0x25d5bb,data:_0xdd5a}of _0xea39c5){const {group:_0xc9dcb4,type:_0x447664,subType:_0x22ffd8,id:_0x445ab6}=this['_splitMarkerName'](_0x25d5bb);if('suggestion'!==_0xc9dcb4)continue;const _0x173eee=_0x22ffd8?'suggestion:'+_0x447664+':'+_0x22ffd8+':'+_0x445ab6:'suggestion:'+_0x447664+':'+_0x445ab6,_0x20e871=_0x332584['model']['markers']['getMarkersGroup'](_0x173eee),_0x4b0a1b=_0x332584['model']['markers']['get'](_0x25d5bb),_0x18fe42=this['_suggestions']['get'](_0x445ab6);if(null!=_0xdd5a['newRange']){'formatInline'==_0x447664&&(_0x3a0a96=_0x3a0a96||Gt(_0xdd5a['newRange'],_0x25d5bb,_0x476772,_0x332584['model']['schema']));const _0x2c16bc='attribute'==_0x447664&&this['_isBlockAttribute'](_0x22ffd8['split']('|')[0x0]),_0x3d927f='attribute'==_0x447664&&this['_isInlineAttribute'](_0x22ffd8['split']('|')[0x0]);if(_0xdd5a['newRange']['isCollapsed']||'$graveyard'==_0xdd5a['newRange']['root']['rootName']||'formatBlock'==_0x447664&&!Jt(_0xdd5a['newRange'])||_0x2c16bc&&!Jt(_0xdd5a['newRange'])||_0x3d927f&&Kt(_0xdd5a['newRange'])||'deletion'==_0x447664&&Kt(_0xdd5a['newRange'])||_0x4b0a1b&&Ht(_0x4b0a1b,_0x20e871))_0x476772['removeMarker'](_0x25d5bb),_0x3a0a96=!0x0;else{if(!_0x18fe42||!_0x18fe42['isInContent'])continue;if(_0xdd5a['newRange']&&_0xdd5a['oldRange']&&_0xdd5a['newRange']['isEqual'](_0xdd5a['oldRange']))continue;_0x38f14c['add'](_0x18fe42);}}}return _0x38f14c['size']>0x0&&(_0x3a0a96=!!this['_joinWithAdjacentSuggestions'](_0x38f14c)||_0x3a0a96),_0x3a0a96;}),_0x332584['model']['document']['registerPostFixer'](_0x43b095=>{let _0x562a82=!0x1;for(const _0x2e16bf of _0x332584['model']['document']['differ']['getChanges']())if('insert'==_0x2e16bf['type'])for(const _0x412d8a of this['_suggestions']['values']()){if(_0x412d8a['isMultiRange']||!_0x412d8a['isInContent'])continue;const _0x2684e9='formatBlock'==_0x412d8a['type'],_0x569814=this['_getAttributeKey'](_0x412d8a),_0xa7129f=_0x569814&&this['_isBlockAttribute'](_0x569814);if(!_0x2684e9&&!_0xa7129f)continue;const _0x18b6fa=_0x412d8a['getFirstRange']();if(_0x18b6fa['start']['parent']!=_0x18b6fa['end']['parent']&&!_0x18b6fa['end']['isAtEnd']){const _0x569419=_0x332584['model']['createPositionAt'](_0x18b6fa['start']['nodeAfter'],'end'),_0x568870=_0x332584['model']['createRange'](_0x18b6fa['start'],_0x569419);_0x43b095['updateMarker'](_0x412d8a['getFirstMarker'](),{'range':_0x568870}),_0x562a82=!0x0;}}return _0x562a82;}),_0x332584['model']['document']['registerPostFixer'](_0x49c107=>this['_processAttributeChanges'](_0x49c107)),_0x332584['model']['document']['registerPostFixer'](_0x220260=>!_0x220260['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x220260)),_0x332584['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x332584['model']['document']['on']('change:data',(_0x391d1f,_0x50fd94)=>{if(!_0x50fd94['isLocal']||_0x50fd94['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x476e89=_0x332584['model']['document']['differ']['getChanges']();if(0x0==_0x476e89['length'])return;const _0xc91437=[],_0x4260c1=_0x476e89['filter'](_0x5ea524=>'attribute'==_0x5ea524['type']),_0x5b0b81=_0x476e89['filter'](_0xfad6d1=>'insert'==_0xfad6d1['type']&&'$text'!=_0xfad6d1['name']);for(const _0x53fc10 of _0x4260c1)this['_isRegisteredAttribute'](_0x53fc10['attributeKey'])&&_0xc91437['push']({'key':_0x53fc10['attributeKey'],'newValue':_0x53fc10['attributeNewValue'],'oldValue':_0x53fc10['attributeOldValue'],'range':qt(_0x53fc10['range'],_0x332584['model'])});for(const _0x5ee792 of _0x5b0b81){if('rename'!=_0x5ee792['action']&&'refresh'!=_0x5ee792['action'])continue;const _0x3e50cb=zt(_0x5ee792['position']['nodeAfter'],_0x332584['model']),_0x4d8d65=_0x5ee792['before'];'rename'==_0x5ee792['action']&&_0xc91437['push']({'key':m,'newValue':_0x5ee792['name'],'oldValue':_0x4d8d65['name'],'range':_0x3e50cb});for(const [_0x45fa9a,_0x113712]of _0x4d8d65['attributes']){if(!this['_isRegisteredAttribute'](_0x45fa9a))continue;const _0xb3e27c=_0x5ee792['attributes']['get'](_0x45fa9a);_0x113712!==_0xb3e27c&&_0xc91437['push']({'key':_0x45fa9a,'newValue':_0xb3e27c,'oldValue':_0x113712,'range':_0x3e50cb});}for(const [_0x4c02f9,_0x4ca0da]of _0x5ee792['attributes'])this['_isRegisteredAttribute'](_0x4c02f9)&&(_0x4d8d65['attributes']['has'](_0x4c02f9)||_0xc91437['push']({'key':_0x4c02f9,'newValue':_0x4ca0da,'oldValue':null,'range':_0x3e50cb}));}0x0!=_0xc91437['length']&&_0x332584['model']['enqueueChange'](_0x50fd94,_0x24c372=>{const _0x2f71ce=_0x324767();for(const {range:_0x477acc,key:_0x34d05c,oldValue:_0x216544,newValue:_0x388ae1}of _0xc91437)this['markAttributeChange'](_0x477acc,_0x34d05c,_0x216544,_0x388ae1,{'groupId':_0x2f71ce});this['_reduceExistingSuggestions'](_0x24c372,_0xc91437);});},{'priority':'lowest'}),_0x332584['model']['markers']['on']('update:suggestion',(_0x42d63e,_0x198114,_0x33d05f)=>{if(null==_0x33d05f){const {id:_0x156313}=this['_splitMarkerName'](_0x198114['name']),_0x42c690=this['_suggestions']['get'](_0x156313);_0x42c690&&_0x42c690['addMarkerName'](_0x198114['name']);}}),_0x332584['model']['document']['on']('change:data',()=>{const _0xfb1657=Array['from'](_0x332584['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4d5302=>'suggestion'===this['_splitMarkerName'](_0x4d5302['name'])['group']);if(0x0===_0xfb1657['length'])return;_0xfb1657['sort']((_0x367f76,_0x48b2dc)=>{const _0x46b108=_0x367f76['data']['oldRange'],_0x3e3971=_0x48b2dc['data']['oldRange'];return null===_0x46b108&&null===_0x3e3971?0x0:null===_0x46b108&&null!==_0x3e3971?-0x1:null!==_0x46b108&&null===_0x3e3971?0x1:_0x46b108['start']['isBefore'](_0x3e3971['start'])?-0x1:0x1;});const _0xb2512=new Set(),_0x13a414=new Set();for(const {name:_0x3c025d,data:_0x4a0c84}of _0xfb1657){const {id:_0x429776}=this['_splitMarkerName'](_0x3c025d);if(null===_0x4a0c84['oldRange']){const _0x322d85=this['_handleNewSuggestionMarker'](_0x3c025d);_0x13a414['add'](_0x322d85);}else{const _0x318030=this['_suggestions']['get'](_0x429776);null!==_0x4a0c84['newRange']||_0x318030['isInContent']?(_0xb2512['add'](_0x318030['head']),_0x13a414['add'](_0x318030)):this['_removeSuggestion'](_0x318030);}}_0x13a414['size']>0x0&&this['_refreshSuggestionsChain'](_0x13a414);for(const _0x14de9c of _0xb2512)this['fire']('suggestionChanged',_0x14de9c);}),_0x332584['model']['on']('applyOperation',(_0x2fc2b5,_0x2fa15a)=>{const _0x4d0377=_0x2fa15a[0x0];if(!this['_suggestions']['size'])return;if(!_0x4d0377['isDocumentOperation'])return;if(_0x4d0377['batch']['isUndo']||!_0x4d0377['batch']['isLocal'])return;let _0x542e36,_0x10fdb0;switch(_0x4d0377['type']){case'insert':_0x542e36=_0x332584['model']['createPositionAt'](_0x4d0377['position']),_0x10fdb0=_0x542e36['getShiftedBy'](_0x4d0377['howMany']);break;case'split':_0x542e36=_0x332584['model']['createPositionAt'](_0x4d0377['splitPosition']),_0x10fdb0=_0x332584['model']['createPositionAt'](_0x4d0377['moveTargetPosition']);break;case'move':_0x542e36=_0x332584['model']['createPositionAt'](_0x4d0377['targetPosition']),_0x10fdb0=_0x542e36['getShiftedBy'](_0x4d0377['howMany']);break;default:return;}const _0x31c0f9=_0x332584['model']['createRange'](_0x542e36,_0x10fdb0);_0x332584['model']['change'](()=>{for(const {suggestion:_0x6bfa09,meta:_0x179c10}of this['_findSuggestions'](_0x31c0f9)){if(_0x6bfa09['isMultiRange'])continue;if('formatInline'==_0x6bfa09['type'])continue;const _0x42e590=this['_getAttributeKey'](_0x6bfa09);if(_0x42e590&&this['_isBlockAttribute'](_0x42e590)&&'split'!=_0x4d0377['type'])continue;const _0x3dc750=_0x6bfa09['data']&&_0x6bfa09['data']['multipleBlocks'];('formatBlock'!=_0x6bfa09['type']||'split'==_0x4d0377['type']&&!_0x3dc750)&&(_0x179c10['containsRangeInObject']||'insertion'==_0x6bfa09['type']&&_0x179c10['isOwn']||_0x6bfa09['getFirstRange']()['containsRange'](_0x31c0f9)&&this['_breakSuggestionMarker'](_0x6bfa09,_0x542e36,_0x10fdb0));}});},{'priority':'lowest'}),_0x332584['model']['on']('deleteContent',(_0xca445e,_0x643331)=>{const _0x1b4882=_0x643331[0x0],_0x494f4d=_0x643331[0x1];if(_0x494f4d&&_0x494f4d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1b4882['isCollapsed'])return;const _0x593da7=_0x332584['model']['schema'],{start:_0x3bc31c,end:_0x40fde8}=_0x1b4882['getFirstRange'](),_0x3fc6e8=_0x3bc31c['nodeAfter']&&_0x593da7['isLimit'](_0x3bc31c['nodeAfter'])?null:_0x593da7['getNearestSelectionRange'](_0x3bc31c,'forward'),_0x583859=_0x40fde8['nodeBefore']&&_0x593da7['isLimit'](_0x40fde8['nodeBefore'])?null:_0x593da7['getNearestSelectionRange'](_0x40fde8,'backward'),_0x41b671=_0x332584['model']['createRange'](_0x3fc6e8?_0x3fc6e8['start']:_0x3bc31c,_0x583859?_0x583859['end']:_0x40fde8);_0x332584['model']['change'](_0x525c97=>{this['markDeletion'](_0x41b671);const _0x173248=_0x332584['model']['schema']['getNearestSelectionRange'](_0x41b671['start']);_0x1b4882['is']('documentSelection')?_0x525c97['setSelection'](_0x173248):_0x1b4882['setTo'](_0x173248);}),_0xca445e['stop']();},{'priority':_0x45dc8c['normal']+0xa}),_0x332584['model']['on']('insertContent',(_0x588154,_0x33fb0b)=>{const _0x1a10f6=_0x33fb0b[_0x33fb0b['length']-0x1];_0x1a10f6&&_0x1a10f6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x332584['model']['change'](()=>{let _0x3421bf=_0x332584['model']['insertContent'](_0x33fb0b[0x0],_0x33fb0b[0x1],_0x33fb0b[0x2],{'forceDefaultExecution':!0x0});if(!_0x3421bf)return;_0x588154['return']=_0x3421bf['clone']();const _0x4fabc3=_0x3421bf['end']['nodeBefore'],_0x122418=_0x332584['model']['schema'];_0x4fabc3&&_0x122418['isBlock'](_0x4fabc3)&&!_0x122418['isObject'](_0x4fabc3)&&(_0x3421bf=_0x332584['model']['createRange'](_0x3421bf['start'],_0x332584['model']['createPositionAt'](_0x4fabc3,'end'))),this['markInsertion'](_0x3421bf);}),_0x588154['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1dc752=new D(_0x332584,this['_suggestions']);_0x332584['commands']['add']('acceptSuggestion',_0x1dc752),this['enableCommand']('acceptSuggestion');const _0x373348=new $(_0x332584,this['_suggestions']);_0x332584['commands']['add']('discardSuggestion',_0x373348),this['enableCommand']('discardSuggestion'),_0x332584['commands']['add']('acceptAllSuggestions',new M(_0x332584,_0x1dc752,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x332584['commands']['add']('discardAllSuggestions',new M(_0x332584,_0x373348,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x332584['commands']['add']('acceptSelectedSuggestions',new B(_0x332584,_0x1dc752,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x332584['commands']['add']('discardSelectedSuggestions',new B(_0x332584,_0x373348,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x8aca2d=_0x332584['plugins']['get']('CommentsRepository');this['listenTo'](_0x8aca2d,'addComment',(_0x2ad693,{threadId:_0x5732a2})=>{const _0x4329d9=this['_suggestions']['get'](_0x5732a2);_0x4329d9&&_0x4329d9['commentThread']&&0x1===_0x4329d9['commentThread']['length']&&this['_updateSuggestionData'](_0x5732a2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x8aca2d,'removeComment',(_0x5023be,{threadId:_0x30f971})=>{const _0x3117b2=this['_suggestions']['get'](_0x30f971);_0x3117b2&&_0x3117b2['commentThread']&&!_0x3117b2['commentThread']['length']&&this['_updateSuggestionData'](_0x30f971,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3fe8d7){const _0x25573d=_0x450c06([0x75,0x45,0x73,0x65,0x32,0x69,0x30,0x74,0x58,0x6b,0x71,0x39,0x59,0x43,0x41,0x6d,0x48,0x78,0x38,0x5a,0x7a,0x4b,0x4f,0x61,0x6c,0x37,0x77,0x76,0x46,0x67,0x44,0x53,0x36,0x70,0x47,0x51,0x6a,0x35,0x72,0x4c,0x4d,0x4e,0x34,0x79,0x68,0x6f,0x50,0x42,0x66,0x6e,0x49,0x4a,0x64,0x31,0x54,0x56,0x55,0x57,0x62,0x63,0x52,0x33]),_0x403a53=0x3a99856e,_0x225242=0x3a9ef5ce^_0x403a53,_0x20193a=window[_0x450c06([0x44,0x61,0x74,0x65])][_0x450c06([0x6e,0x6f,0x77])](),_0x336d2e=_0x3fe8d7[_0x450c06([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x499c60=new window[(_0x450c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51c1a6=>{_0x336d2e[_0x450c06([0x6f,0x6e,0x63,0x65])](_0x450c06([0x72,0x65,0x61,0x64,0x79]),_0x51c1a6);}),_0x57ee1d={[_0x450c06([0x6b,0x74,0x79])]:_0x450c06([0x45,0x43]),[_0x450c06([0x75,0x73,0x65])]:_0x450c06([0x73,0x69,0x67]),[_0x450c06([0x63,0x72,0x76])]:_0x450c06([0x50,0x2d,0x32,0x35,0x36]),[_0x450c06([0x78])]:_0x450c06([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]),[_0x450c06([0x79])]:_0x450c06([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]),[_0x450c06([0x61,0x6c,0x67])]:_0x450c06([0x45,0x53,0x32,0x35,0x36])},_0x5b46d8=_0x336d2e[_0x450c06([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x450c06([0x67,0x65,0x74])](_0x450c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x239598(){let _0x47114a,_0x13f27=null,_0x2a54f4=null;try{if(_0x5b46d8==_0x450c06([0x47,0x50,0x4c]))return _0x450c06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47114a=_0xdc2870(),!_0x47114a)return _0x450c06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47114a[_0x450c06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a54f4=_0x16eb87(_0x47114a[_0x450c06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47114a[_0x450c06([0x6a,0x74,0x69])])),await _0x19d736()?_0x3abbf8()?_0x4d5da5()?_0x450c06([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x453399()?(_0x47114a[_0x450c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x450c06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13f27=_0x4c9ed(_0x450c06([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x47114a[_0x450c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x450c06([0x74,0x72,0x69,0x61,0x6c])&&(_0x13f27=_0x4c9ed(_0x450c06([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x326f81()):_0x450c06([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x450c06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x450c06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x450c06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d5da5(){const _0xfa5a7f=[_0x450c06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x450c06([0x74,0x72,0x69,0x61,0x6c])][_0x450c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47114a[_0x450c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x20193a/0x3e8:0xe10*_0x225242;return _0x47114a[_0x450c06([0x65,0x78,0x70])]<_0xfa5a7f;}function _0x3abbf8(){const _0x3bb43d=_0x47114a[_0x450c06([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3bb43d)return!0x1;if(_0x3bb43d[_0x450c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x450c06([0x2a])))return!0x0;if(_0x3bb43d[_0x450c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x450c06([0x54,0x43])))return!0x0;if(_0x3bb43d[_0x450c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x450c06([0x52,0x54,0x43]))){if(_0x111536())return!0x0;if(_0x42e8a5()||_0x23931d())return!0x0;}return!0x1;}function _0x453399(){const _0x5d6dde=_0x47114a[_0x450c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d6dde||0x0==_0x5d6dde[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44baec}=new URL(window[_0x450c06([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d6dde[_0x450c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44baec))return!0x0;const _0x4537a0=_0x44baec[_0x450c06([0x73,0x70,0x6c,0x69,0x74])](_0x450c06([0x2e]));return _0x5d6dde[_0x450c06([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e2b74=>_0x2e2b74[_0x450c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x450c06([0x2a])))[_0x450c06([0x6d,0x61,0x70])](_0x51bcd3=>_0x51bcd3[_0x450c06([0x73,0x70,0x6c,0x69,0x74])](_0x450c06([0x2e])))[_0x450c06([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xaff340=>_0xaff340[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4537a0[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x450c06([0x6d,0x61,0x70])](_0x32b91e=>Array(_0x4537a0[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x32b91e[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x450c06([0x66,0x69,0x6c,0x6c])](_0x32b91e[0x0]===_0x450c06([0x2a])?_0x450c06([0x2a]):'')[_0x450c06([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x32b91e))[_0x450c06([0x73,0x6f,0x6d,0x65])](_0x40e053=>_0x4537a0[_0x450c06([0x65,0x76,0x65,0x72,0x79])]((_0x567e76,_0xc33d4)=>_0x40e053[_0xc33d4]===_0x567e76||_0x40e053[_0xc33d4]===_0x450c06([0x2a])));}function _0x326f81(){return _0x13f27&&_0x2a54f4?new window[(_0x450c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x165781,_0x4426de)=>{_0x13f27[_0x450c06([0x74,0x68,0x65,0x6e])](_0x165781,_0x4426de),_0x2a54f4[_0x450c06([0x74,0x68,0x65,0x6e])](_0x46cefc=>{_0x46cefc!=_0x450c06([0x56,0x61,0x6c,0x69,0x64])&&_0x165781(_0x46cefc);},_0x4426de);}):_0x13f27||_0x2a54f4||_0x450c06([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16eb87(_0x4028b0,_0x3d665c){return new window[(_0x450c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42dbb2=>{if(_0x2e8d55())return _0x42dbb2(_0x450c06([0x56,0x61,0x6c,0x69,0x64]));_0x131f16(),_0x336d2e[_0x450c06([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x450c06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d3d63=!0x1;const _0x529976=_0x324767();function _0x3b2897(_0x272a67){return!!_0x272a67&&(typeof _0x272a67===_0x450c06([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x272a67===_0x450c06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x272a67[_0x450c06([0x74,0x68,0x65,0x6e])]===_0x450c06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x272a67[_0x450c06([0x63,0x61,0x74,0x63,0x68])]===_0x450c06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1ced80(_0x478545){_0x4c7f39(_0x478545)[_0x450c06([0x74,0x68,0x65,0x6e])](_0x4ec621=>{if(!_0x4ec621||_0x4ec621[_0x450c06([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x450c06([0x6f,0x6b]))return _0x450c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x376f82(_0x149055(_0x529976+_0x3d665c))!=_0x4ec621[_0x450c06([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x450c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x450c06([0x56,0x61,0x6c,0x69,0x64]);})[_0x450c06([0x74,0x68,0x65,0x6e])](_0x55ea53=>(_0x2697b8(),_0x55ea53),()=>{const _0x312ca8=_0x59f71b();return null==_0x312ca8?(_0x2697b8(),_0x450c06([0x56,0x61,0x6c,0x69,0x64])):_0x450c06(_0x20193a-_0x312ca8>(0x1e95016e^_0x403a53)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x450c06([0x74,0x68,0x65,0x6e])](_0x42dbb2)[_0x450c06([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42dbb2(_0x450c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x479430=0x3aaf6bee^_0x403a53;function _0x2697b8(){const _0x2cb096=_0x450c06([0x6c,0x6c,0x63,0x74,0x2d])+_0x376f82(_0x149055(_0x4028b0)),_0x252525=_0x2d9e8d(_0x376f82(window[_0x450c06([0x4d,0x61,0x74,0x68])][_0x450c06([0x63,0x65,0x69,0x6c])](_0x20193a/_0x479430)));window[_0x450c06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x450c06([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cb096,_0x252525);}function _0x59f71b(){const _0x1fa5fe=_0x450c06([0x6c,0x6c,0x63,0x74,0x2d])+_0x376f82(_0x149055(_0x4028b0)),_0x10307a=window[_0x450c06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x450c06([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fa5fe);return _0x10307a?window[_0x450c06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d9e8d(_0x10307a),0x10)*_0x479430:null;}function _0x4c7f39(_0x5cff50){return new window[(_0x450c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e4515,_0x5fd218)=>{_0x5cff50[_0x450c06([0x74,0x68,0x65,0x6e])](_0x1e4515,_0x5fd218),window[_0x450c06([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5fd218,0x3a9851ae^_0x403a53);});}}_0x336d2e[_0x450c06([0x6f,0x6e])](_0x450c06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29402b,_0x4298f5)=>{if(_0x4298f5[0x0]!=_0x4028b0)return _0x42dbb2(_0x450c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4298f5[0x1]={..._0x4298f5[0x1],[_0x450c06([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x529976};},{[_0x450c06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x450c06([0x68,0x69,0x67,0x68])}),_0x336d2e[_0x450c06([0x6f,0x6e])](_0x450c06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x188424=>{_0x3b2897(_0x188424[_0x450c06([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d3d63=!0x0,_0x1ced80(_0x188424[_0x450c06([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x450c06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x450c06([0x6c,0x6f,0x77])}),_0x499c60[_0x450c06([0x74,0x68,0x65,0x6e])](()=>{_0x3d3d63||_0x42dbb2(_0x450c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e8d55(){return _0x336d2e[_0x450c06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x450c06([0x76,0x69,0x65,0x77])][_0x450c06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x450c06([0x61,0x75,0x74,0x6f]);}function _0x131f16(){_0x336d2e[_0x450c06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x450c06([0x76,0x69,0x65,0x77])][_0x450c06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x450c06([0x61,0x75,0x74,0x6f]);}}function _0x4c9ed(_0x3a07fd){const _0xb996b9=[new window[(_0x450c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4742cb=>setTimeout(_0x4742cb,0x3a90bba2^_0x403a53)),_0x499c60[_0x450c06([0x74,0x68,0x65,0x6e])](()=>new window[(_0x450c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c9707=>{let _0x42a9ac=0x0;_0x336d2e[_0x450c06([0x6d,0x6f,0x64,0x65,0x6c])][_0x450c06([0x6f,0x6e])](_0x450c06([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5bd575,_0xb03c63)=>{_0xb03c63[0x0][_0x450c06([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42a9ac++,_0x42a9ac==(0x3a998496^_0x403a53)&&(_0x5c9707(),_0x5bd575[_0x450c06([0x6f,0x66,0x66])]());});}))];return window[_0x450c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x450c06([0x72,0x61,0x63,0x65])](_0xb996b9)[_0x450c06([0x74,0x68,0x65,0x6e])](()=>_0x3a07fd);}async function _0x24ab1b(){await _0x499c60,_0x336d2e[_0x450c06([0x6d,0x6f,0x64,0x65,0x6c])][_0x450c06([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b3d7f,_0x336d2e[_0x450c06([0x6d,0x6f,0x64,0x65,0x6c])][_0x450c06([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b3d7f,_0x336d2e[_0x450c06([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x450c06([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x111536(){return _0x51d4e4(_0x450c06([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4b4d9e(_0x450c06([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x450c06([0x73,0x74,0x61,0x74,0x65])]==_0x450c06([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x42e8a5(){return _0x51d4e4(_0x450c06([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 _0x23931d(){return _0x51d4e4(_0x450c06([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x48f403(_0x41002b){const _0x14ff76=_0x2c81e2();_0x336d2e[_0x14ff76]=_0x450c06([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x41002b,_0x41002b!=_0x450c06([0x56,0x61,0x6c,0x69,0x64])&&_0x24ab1b();}function _0x2c81e2(){const _0x18c90d=window[_0x450c06([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x450c06([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x450c06([0x6e,0x6f,0x77])]())[_0x450c06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x450c06([0x2e]),'');let _0x4f87e7=_0x450c06([0x75]);for(let _0x39158d=0x0;_0x39158d<_0x18c90d[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39158d+=0x2){let _0x3c3e1e=window[_0x450c06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18c90d[_0x450c06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39158d,_0x39158d+0x2));_0x3c3e1e>=_0x25573d[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c3e1e-=_0x25573d[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f87e7+=_0x25573d[_0x3c3e1e];}return _0x4f87e7;}function _0xdc2870(){const _0x2384ba=_0x5b46d8[_0x450c06([0x73,0x70,0x6c,0x69,0x74])](_0x450c06([0x2e]));if(0x3!=_0x2384ba[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x156c44(_0x2384ba[0x1]);function _0x156c44(_0x770371){const _0x1c72c8=_0x31791f(_0x770371);return _0x1c72c8&&_0x268689()?_0x1c72c8:null;function _0x268689(){const _0xd610df=_0x1c72c8[_0x450c06([0x6a,0x74,0x69])],_0x432e71=window[_0x450c06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd610df[_0x450c06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd610df[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12e907={..._0x1c72c8,[_0x450c06([0x6a,0x74,0x69])]:_0xd610df[_0x450c06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xd610df[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12e907[_0x450c06([0x76,0x63])],_0x149055(_0x12e907)==_0x432e71;}}}async function _0x19d736(){let _0x5bea1f=!0x0;try{const _0x163cd0=_0x5b46d8[_0x450c06([0x73,0x70,0x6c,0x69,0x74])](_0x450c06([0x2e])),[_0x1bead6,_0x220ac3,_0x5f341b]=_0x163cd0;return _0x4f4fa5(_0x1bead6),await _0x427125(_0x1bead6,_0x220ac3,_0x5f341b),_0x5bea1f;}catch{return!0x1;}function _0x4f4fa5(_0x5c6651){const _0x294790=_0x31791f(_0x5c6651);_0x294790&&_0x294790[_0x450c06([0x61,0x6c,0x67])]==_0x450c06([0x45,0x53,0x32,0x35,0x36])||(_0x5bea1f=!0x1);}async function _0x427125(_0x1317a3,_0x2f2443,_0x5319e4){const _0x427863=window[_0x450c06([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x450c06([0x66,0x72,0x6f,0x6d])](_0x319afc(_0x5319e4),_0x557542=>_0x557542[_0x450c06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x337655=new window[(_0x450c06([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x450c06([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1317a3+_0x450c06([0x2e])+_0x2f2443),_0x2438d8=window[_0x450c06([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x450c06([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2438d8)return;const _0x5c10ca=await _0x2438d8[_0x450c06([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x450c06([0x6a,0x77,0x6b]),_0x57ee1d,{[_0x450c06([0x6e,0x61,0x6d,0x65])]:_0x450c06([0x45,0x43,0x44,0x53,0x41]),[_0x450c06([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x450c06([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x450c06([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2438d8[_0x450c06([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x450c06([0x6e,0x61,0x6d,0x65])]:_0x450c06([0x45,0x43,0x44,0x53,0x41]),[_0x450c06([0x68,0x61,0x73,0x68])]:{[_0x450c06([0x6e,0x61,0x6d,0x65])]:_0x450c06([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c10ca,_0x427863,_0x337655)||(_0x5bea1f=!0x1);}}function _0x31791f(_0x475c93){return _0x475c93[_0x450c06([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x450c06([0x65,0x79]))?JSON[_0x450c06([0x70,0x61,0x72,0x73,0x65])](_0x319afc(_0x475c93)):null;}function _0x319afc(_0x44e726){return window[_0x450c06([0x61,0x74,0x6f,0x62])](_0x44e726[_0x450c06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x450c06([0x2b]))[_0x450c06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x450c06([0x2f])));}function _0x149055(_0x493591){let _0x2960f8=0x1505;function _0x5c28e4(_0x14c1c4){for(let _0x1166af=0x0;_0x1166af<_0x14c1c4[_0x450c06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1166af++){const _0x287986=_0x14c1c4[_0x450c06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1166af);_0x2960f8=(_0x2960f8<<0x5)+_0x2960f8+_0x287986,_0x2960f8&=_0x2960f8;}}function _0xf7a3ac(_0x581b18){Array[_0x450c06([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x581b18)?_0x581b18[_0x450c06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf7a3ac):_0x581b18&&typeof _0x581b18==_0x450c06([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x450c06([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x581b18)[_0x450c06([0x73,0x6f,0x72,0x74])]()[_0x450c06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xaa7524,_0x22bb49])=>{_0x5c28e4(_0xaa7524),_0xf7a3ac(_0x22bb49);}):_0x5c28e4(window[_0x450c06([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x581b18));}return _0xf7a3ac(_0x493591),_0x2960f8>>>0x0;}function _0x376f82(_0x2ca7b8){return _0x2ca7b8[_0x450c06([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x450c06([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x450c06([0x30]));}function _0x2d9e8d(_0x54394e){return _0x54394e[_0x450c06([0x73,0x70,0x6c,0x69,0x74])]('')[_0x450c06([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x450c06([0x6a,0x6f,0x69,0x6e])]('');}function _0x51d4e4(_0x2fc656){return _0x336d2e[_0x450c06([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x450c06([0x68,0x61,0x73])](_0x2fc656);}function _0x4b4d9e(_0xa104bb){return _0x336d2e[_0x450c06([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x450c06([0x67,0x65,0x74])](_0xa104bb);}function _0x4b3d7f(){}function _0x450c06(_0x53b4e0){return _0x53b4e0['map'](_0x3f99ee=>String['fromCharCode'](_0x3f99ee))['join']('');}_0x48f403(await _0x239598());}(this);}set['adapter'](_0x2655ea){if(this['_adapter'])throw new _0x172784('track-changes-adapter-already-set',this);this['_adapter']=_0x2655ea;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4c9b85=!0x1,toJSON:_0x4a3fea=!0x1}={}){const _0x1acf2d=[];for(const _0x417334 of this['_suggestions']['values']())_0x4c9b85&&!_0x417334['isInContent']||_0x1acf2d['push'](_0x417334);return _0x4a3fea?_0x1acf2d['map'](_0x10e252=>_0x10e252['toJSON']()):_0x1acf2d;}['getSuggestion'](_0x42ca6f){const _0x55f4ac=this['_suggestions']['get'](_0x42ca6f);if(!_0x55f4ac)throw new _0x172784('track-changes-suggestion-not-found',this);return _0x55f4ac;}['hasSuggestion'](_0x1dbbf5){return this['_suggestions']['has'](_0x1dbbf5);}['addSuggestionData'](_0xa4fba2){const {authorId:_0x3e5e55,id:_0x30e9b0,originalSuggestionId:_0x233f13,attributes:_0x55fbd1}=_0xa4fba2,[_0x263c92,_0x4c6076]=_0xa4fba2['type']['split'](':'),_0x75bdd7=this['_suggestions']['get'](_0x30e9b0)||this['_createSuggestion'](_0x263c92,_0x4c6076,_0x30e9b0,_0x3e5e55,_0x55fbd1,_0x233f13);if(this['_addThreadToSuggestion'](_0x75bdd7),this['_checkSuggestionCorrectness'](_0x75bdd7,_0x263c92,_0x4c6076||null,_0x3e5e55),_0x75bdd7['createdAt']=_0xa4fba2['createdAt'],_0x75bdd7['_isDataLoaded']=!0x0,_0x55fbd1&&_0x55fbd1['@external']){const _0x52734f=_0x55fbd1['@external'],_0x85b5ac=this['_getExternalAuthor'](_0x52734f['authorName']);_0x75bdd7['authoredAt']=_0x52734f['createdAt'],_0x75bdd7['author']=_0x85b5ac,_0x75bdd7['isExternal']=!0x0;}else _0x75bdd7['authoredAt']=_0xa4fba2['createdAt'];switch(_0xa4fba2['data']&&(_0x75bdd7['data']=_0xa4fba2['data']),_0xa4fba2['attributes']&&(_0x75bdd7['attributes']=_0xa4fba2['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x75bdd7['_saved']=!0x0),this['_suggestionState']['get'](_0x75bdd7)){case'notReady':this['_suggestionState']['set'](_0x75bdd7,'dataReady');break;case'markerReady':_0x75bdd7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x75bdd7])),this['_refreshSuggestionsChain'](new Set([_0x75bdd7])),this['_suggestionState']['set'](_0x75bdd7,'ready'),this['fire']('suggestionLoaded',_0x75bdd7)):this['_suggestionState']['set'](_0x75bdd7,'removed');}return _0x75bdd7;}['acceptSuggestion'](_0x4fe701){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x50e7f4 of _0x4fe701['getAllAdjacentSuggestions']())_0x50e7f4['accept']();});});}['discardSuggestion'](_0x41712c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3fde1d of _0x41712c['getAllAdjacentSuggestions']())_0x3fde1d['discard']();});});}['enableCommand'](_0x3af53a,_0x344727){const _0x1d1dc5=this['editor']['commands']['get'](_0x3af53a);if(!_0x1d1dc5)throw new _0x172784('track-changes-command-not-found',this,{'commandName':_0x3af53a});if(this['_enabledCommands']['has'](_0x1d1dc5))throw new _0x172784('track-changes-enable-command-twice',this,{'commandName':_0x3af53a});this['_enabledCommands']['add'](_0x1d1dc5),_0x344727&&_0x1d1dc5['on']('execute',(_0x5945d3,_0x5c1cb6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5c1cb6['length']>0x0&&_0x5c1cb6[_0x5c1cb6['length']-0x1]&&_0x5c1cb6[_0x5c1cb6['length']-0x1]['forceDefaultExecution']?_0x5c1cb6['pop']():(_0x5945d3['return']=_0x344727((..._0x38a67a)=>_0x1d1dc5['execute'](..._0x38a67a,{'forceDefaultExecution':!0x0}),..._0x5c1cb6),_0x5945d3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x14f439){let _0x3a1c9d,_0x29999c;const _0x43721b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3a1c9d=_0x14f439();}catch(_0xd6217f){_0x29999c=_0xd6217f;}return _0x43721b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29999c&&_0x172784['rethrowUnexpectedError'](_0x29999c,this),_0x3a1c9d;}['markInsertion'](_0x3ff752,_0xc166e0=null,_0x3a845a={}){if(_0x3ff752['isCollapsed'])return null;const _0x35d2ae=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3a845a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c379e,meta:_0x2bf6ba}of this['_findSuggestions'](_0x3ff752,'insertion'))if(_0x2bf6ba['isOwn']){if(!_0x2bf6ba['isNextTo']){if(_0x2bf6ba['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1c379e,_0x3a845a))continue;return _0x1c379e;}if(Xt(_0x1c379e,_0x3a845a))return _0x1c379e;this['_breakSuggestionMarker'](_0x1c379e,_0x3ff752['start'],_0x3ff752['end']);break;}if(_0xc166e0==_0x1c379e['subType']&&Xt(_0x1c379e,_0x3a845a)){const _0x247494=_0x1c379e['getFirstRange']();return _0x247494['start']['isEqual'](_0x3ff752['end'])?this['_setSuggestionRange'](_0x1c379e,this['_model']['createRange'](_0x3ff752['start'],_0x247494['end'])):this['_setSuggestionRange'](_0x1c379e,this['_model']['createRange'](_0x247494['start'],_0x3ff752['end'])),_0x1c379e;}}const _0xf63236=_0x324767(),_0x40d6c2=_0x35d2ae['id'],_0x4f684e=_0xc166e0?'insertion:'+_0xc166e0:'insertion',_0x20331c=this['_setSuggestionData']({'id':_0xf63236,'type':_0x4f684e,'createdAt':new Date(),'authorId':_0x40d6c2,'attributes':_0x3a845a});return this['_addSuggestionMarker'](_0x4f684e,_0xf63236,_0x40d6c2,_0x3ff752),_0x20331c;}['markMultiRangeInsertion'](_0x488749,_0x5164d2='multi',_0x47c09f={}){const _0x312e4f=this['editor']['plugins']['get']('Users')['me'],_0x4b49fc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5164d2,'join');this['_trackingSessionId']&&(_0x47c09f['trackingSessionId']=this['_trackingSessionId']);for(const _0x1e71fc of this['getSuggestions']())if(_0x1e71fc['author']['id']==_0x312e4f['id']&&'insertion'==_0x1e71fc['type']&&_0x1e71fc['subType']==_0x5164d2&&Xt(_0x1e71fc,_0x47c09f)&&(_0x4b49fc(_0x1e71fc['getRanges'](),_0x488749)||_0x4b49fc(_0x488749,_0x1e71fc['getRanges']()))){for(const _0x1e6ca0 of _0x488749)_0x1e71fc['addRange'](_0x1e6ca0);return _0x1e71fc;}for(const {suggestion:_0xde3ebe,meta:_0x47f6f7}of this['_findSuggestions'](_0x488749,'insertion')){if(!_0x47f6f7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x47f6f7['containsRangeInObject'])continue;if(!Xt(_0xde3ebe,_0x47c09f))continue;let _0x15da11=!0x0;for(const _0xfc04af of _0xde3ebe['getRanges']())for(const _0x4d1751 of _0x488749)if(!_0xfc04af['containsRange'](_0x4d1751)){_0x15da11=!0x1;break;}if(_0x15da11)return _0xde3ebe;}const _0x57ab9f=_0x324767(),_0x1b383d=_0x312e4f['id'],_0x2626ec='insertion:'+_0x5164d2,_0x1aecde=this['_setSuggestionData']({'id':_0x57ab9f,'type':_0x2626ec,'createdAt':new Date(),'authorId':_0x1b383d,'attributes':_0x47c09f});for(const _0x56555d of _0x488749)this['_addSuggestionMarker'](_0x2626ec,_0x57ab9f,_0x1b383d,_0x56555d,T['getMultiRangeId']());return _0x1aecde;}['markInlineFormat'](_0x57870c,_0x497dd7,_0x4f792a=null,_0x1e07ce={}){if(_0x4f792a=_0x4f792a||Lt(_0x497dd7),_0x57870c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1e07ce['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa6a879=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4f792a,'accept');return this['forceDefaultExecution'](()=>_0xa6a879([_0x57870c],_0x497dd7,_0x1e07ce)),null;}const _0x645f1=this['editor']['plugins']['get']('Users')['me'],_0x194203=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2fb3de,meta:_0x119997}of this['_findSuggestions'](_0x57870c,'insertion'))_0x119997['isOwn']&&!_0x119997['isInsideObject']&&_0x194203['push'](..._0x2fb3de['getRanges']());}const _0x3f6fbc=function(_0x4608f2,_0x1f245d){const _0x4e8e96=[];for(const _0x161e94 of _0x1f245d){const _0x4d1220=_0x4608f2['getIntersection'](_0x161e94);_0x4d1220&&_0x4e8e96['push'](_0x4d1220);}return _0x4e8e96;}(_0x57870c,_0x194203),_0x466670=function(_0x406a82,_0x43d5e4){const _0x27848e=[_0x406a82];for(const _0x104632 of _0x43d5e4){let _0x41fa42=0x0;for(;_0x41fa42<_0x27848e['length'];){const _0x1d8d62=_0x27848e[_0x41fa42]['getDifference'](_0x104632);_0x27848e['splice'](_0x41fa42,0x1,..._0x1d8d62),_0x41fa42+=_0x1d8d62['length'];}}return _0x27848e;}(_0x57870c,_0x194203);_0x3f6fbc['length']&&this['_model']['change'](()=>{for(const _0x50b401 of _0x3f6fbc){const _0x1d689a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4f792a,'accept');this['forceDefaultExecution'](()=>_0x1d689a([_0x50b401],_0x497dd7,_0x1e07ce));}});for(const _0x5fc9f of _0x466670){let _0x547fe1=null,_0x5bb16b=_0x5fc9f['start'],_0x3b1aba=_0x5fc9f['end'];for(const {suggestion:_0x4fcb25,meta:_0x55ddd9}of this['_findSuggestions'](_0x5fc9f,'formatInline')){if(!_0x55ddd9['isOwn'])continue;if(_0x4fcb25['subType']!=_0x4f792a)continue;if(!Xt(_0x4fcb25,_0x1e07ce))continue;const _0x5ec5ad=_0x4fcb25['getFirstRange']();if(_0x5ec5ad['containsRange'](_0x5fc9f,!0x0))return null;_0x5bb16b=_0x5bb16b['isBefore'](_0x5ec5ad['start'])?_0x5bb16b:_0x5ec5ad['start'],_0x3b1aba=_0x3b1aba['isAfter'](_0x5ec5ad['end'])?_0x3b1aba:_0x5ec5ad['end'],_0x547fe1?_0x5ec5ad['start']['isBefore'](_0x547fe1['getFirstRange']()['start'])?(_0x547fe1['removeMarkers'](),_0x547fe1=_0x4fcb25):_0x4fcb25['removeMarkers']():_0x547fe1=_0x4fcb25;}const _0x3d4c6f=this['_model']['createRange'](_0x5bb16b,_0x3b1aba);if(_0x547fe1)this['_setSuggestionRange'](_0x547fe1,_0x3d4c6f);else{const _0x508d88=_0x324767(),_0x105058=_0x645f1['id'];this['_setSuggestionData']({'id':_0x508d88,'type':'formatInline:'+_0x4f792a,'data':_0x497dd7,'createdAt':new Date(),'authorId':_0x105058,'attributes':_0x1e07ce}),this['_addSuggestionMarker']('formatInline:'+_0x4f792a,_0x508d88,_0x105058,_0x3d4c6f);}}return null;}['markBlockFormat'](_0x39af62,_0x741a56,_0x49426c=[],_0x422d38=null,_0x1d382b={}){_0x741a56['formatGroupId']||(_0x741a56['formatGroupId']=_0x741a56['commandName']),_0x741a56['multipleBlocks']=_0x39af62['is']('range'),_0x422d38=_0x422d38||Lt(_0x741a56);const _0x34d8ac=_0x49426c['map'](_0x2401aa=>zt(_0x2401aa,this['_model'])),_0x5f07db=_0x39af62['is']('range')?_0x39af62:zt(_0x39af62,this['_model']);if(this['_trackingSessionId']&&(_0x1d382b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5bdf6d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x422d38,'accept');return this['forceDefaultExecution'](()=>_0x5bdf6d([_0x5f07db],_0x741a56,_0x1d382b)),null;}_0x34d8ac['push'](_0x5f07db);let _0x33119c=!0x0;for(const _0x78a54a of _0x34d8ac)if(!this['_rangeIsInLocalUserInsertion'](_0x78a54a)){_0x33119c=!0x1;break;}if(_0x33119c&&'always'!==this['_trackFormatChanges']){const _0x43314c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x422d38,'accept');return this['forceDefaultExecution'](()=>_0x43314c([_0x5f07db],_0x741a56,_0x1d382b)),null;}let _0x567157=null,_0x469370=_0x5f07db['start'],_0x195d6d=_0x5f07db['end'];for(const {suggestion:_0x59bb1b,meta:_0x3743ac}of this['_findSuggestions'](_0x5f07db,'formatBlock')){if(!_0x3743ac['isOwn'])continue;if(_0x3743ac['isNextTo']||_0x3743ac['containsRangeInObject']||_0x3743ac['isInsideObject'])continue;if(_0x59bb1b['data']['formatGroupId']!=_0x741a56['formatGroupId'])continue;if(!Xt(_0x59bb1b,_0x1d382b))continue;const _0x320b03=_0x59bb1b['getFirstRange']();if(_0x59bb1b['subType']==_0x422d38){if(_0x320b03['containsRange'](_0x5f07db,!0x0))return null;_0x469370=_0x469370['isBefore'](_0x320b03['start'])?_0x469370:_0x320b03['start'],_0x195d6d=_0x195d6d['isAfter'](_0x320b03['end'])?_0x195d6d:_0x320b03['end'],_0x567157?_0x320b03['start']['isBefore'](_0x567157['getFirstRange']()['start'])?(_0x567157['removeMarkers'](),_0x567157=_0x59bb1b):_0x59bb1b['removeMarkers']():_0x567157=_0x59bb1b;}else{const _0x5bdad0=_0x5f07db['getIntersection'](_0x320b03);this['_cutOutSuggestionMarker'](_0x59bb1b,_0x5bdad0);}}const _0x4643e3=this['editor']['plugins']['get']('Users')['me'],_0x42304d=_0x324767(),_0x2db4bd=_0x4643e3['id'];if(_0x567157)return this['_setSuggestionRange'](_0x567157,this['_model']['createRange'](_0x469370,_0x195d6d)),_0x567157;{const _0x5199ce=this['_setSuggestionData']({'id':_0x42304d,'type':'formatBlock:'+_0x422d38,'data':_0x741a56,'createdAt':new Date(),'authorId':_0x2db4bd,'attributes':_0x1d382b});return this['_addSuggestionMarker']('formatBlock:'+_0x422d38,_0x42304d,_0x2db4bd,this['_model']['createRange'](_0x469370,_0x195d6d)),_0x5199ce;}}['markMultiRangeBlockFormat'](_0x262e4c,_0x3b5f24,_0x369f4c=[],_0x711d37=null,_0x55df1e={}){_0x3b5f24['formatGroupId']||(_0x3b5f24['formatGroupId']=_0x3b5f24['commandName']);const _0x12e619=_0x262e4c[0x0];_0x3b5f24['multipleBlocks']=_0x12e619['is']('range'),_0x711d37=_0x711d37||Lt(_0x3b5f24);const _0x2b3c08=_0x369f4c['map'](_0x21c67a=>zt(_0x21c67a,this['_model'])),_0x679b95=_0x12e619['is']('range')?_0x262e4c:_0x262e4c['map'](_0x281d3a=>zt(_0x281d3a,this['_model']));if(this['_trackingSessionId']&&(_0x55df1e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x23f724=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x711d37,'accept');return this['forceDefaultExecution'](()=>_0x23f724(_0x679b95,_0x3b5f24,_0x55df1e)),null;}_0x2b3c08['push'](..._0x679b95);let _0xd8f1cb=!0x0;for(const _0x48337c of _0x2b3c08)if(!this['_rangeIsInLocalUserInsertion'](_0x48337c)){_0xd8f1cb=!0x1;break;}if(_0xd8f1cb&&'always'!==this['_trackFormatChanges']){const _0x51fddf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x711d37,'accept');return this['forceDefaultExecution'](()=>_0x51fddf(_0x679b95,_0x3b5f24,_0x55df1e)),null;}const _0x5850b0=this['editor']['plugins']['get']('Users')['me'];for(const _0xd4956a of this['getSuggestions']()){const _0x4897f7=_0xd4956a['data'];if(_0xd4956a['author']['id']!=_0x5850b0['id'])continue;if('formatBlock'!=_0xd4956a['type']||_0x4897f7['formatGroupId']!=_0x3b5f24['formatGroupId'])continue;if(!Xt(_0xd4956a,_0x55df1e))continue;const _0x5e9f18=_0xd4956a['subType']==_0x711d37;for(let _0x3fed69=0x0;_0x3fed69<_0x679b95['length'];_0x3fed69++){const _0x44a84d=_0x679b95[_0x3fed69];for(const _0x44c577 of _0xd4956a['getMarkers']()){const _0x3e629c=_0x44c577['getRange']();if(_0x44a84d['isEqual'](_0x3e629c)){_0x5e9f18?(_0x679b95['splice'](_0x3fed69,0x1),_0x3fed69--):_0xd4956a['removeMarker'](_0x44c577['name']);break;}}}}if(0x0==_0x679b95['length'])return null;const _0x520833=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x711d37,'join');for(const _0x3fda96 of this['getSuggestions']()){const _0x3a250e=_0x3fda96['data'];if(_0x3fda96['author']['id']==_0x5850b0['id']&&('formatBlock'==_0x3fda96['type']&&_0x3a250e['formatGroupId']==_0x3b5f24['formatGroupId']&&_0x3fda96['subType']==_0x711d37&&Xt(_0x3fda96,_0x55df1e)&&(_0x520833(_0x3fda96['getRanges'](),_0x679b95)||_0x520833(_0x679b95,_0x3fda96['getRanges']())))){for(const _0x1b6616 of _0x679b95)_0x3fda96['addRange'](_0x1b6616);return _0x3fda96;}}const _0x6aa41c=_0x324767(),_0x18fc5b=_0x5850b0['id'],_0x371d53='formatBlock:'+_0x711d37,_0x152281=this['_setSuggestionData']({'id':_0x6aa41c,'type':_0x371d53,'data':_0x3b5f24,'createdAt':new Date(),'authorId':_0x18fc5b,'attributes':_0x55df1e});for(const _0x228e0d of _0x679b95)this['_addSuggestionMarker'](_0x371d53,_0x6aa41c,_0x18fc5b,_0x228e0d,T['getMultiRangeId']());return _0x152281;}['markDeletion'](_0x47a3b2,_0x49132c=null,_0x205169={}){if(_0x47a3b2['isCollapsed'])return null;const _0x193121=this['editor']['plugins']['get']('Users')['me'],_0x565270=new _0x19c427(_0x47a3b2['start'],_0x47a3b2['end']);this['_trackingSessionId']&&(_0x205169['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b93e5,meta:_0xcf20f1}of this['_findSuggestions'](_0x565270,'insertion'))if(_0xcf20f1['isOwn']&&!_0xcf20f1['isNextTo']){if(_0x3b93e5['isMultiRange']){const _0x1f5e77=_0x3b93e5['getRanges']()['filter'](_0xdcb1d2=>'$graveyard'!=_0xdcb1d2['root']['rootName']);_0x1f5e77['every'](_0x4584be=>_0x565270['containsRange'](_0x4584be,!0x0))&&_0x3b93e5['discard']();if(_0x1f5e77['some'](_0x584b06=>_0x584b06['containsRange'](_0x565270,!0x0))){const _0x628618=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x49132c,'accept');return this['forceDefaultExecution'](()=>_0x628618([_0x565270],null,_0x205169)),null;}}else{const _0x2d0363=_0x565270['getIntersection'](_0x3b93e5['getFirstRange']());null!==_0x2d0363&&_0x3b93e5['_onDiscard']([_0x2d0363],null,_0x205169);}}if(_0x565270['detach'](),_0x565270['isCollapsed']||'$graveyard'==_0x565270['root']['rootName'])return null;let _0x119a99=null,_0x518060=_0x565270['start'],_0x5eedba=_0x565270['end'];const _0x30314b=this['_findSuggestions'](_0x565270,'deletion');for(const {suggestion:_0x1f3ddd,meta:_0x397d01}of _0x30314b){const _0x38c605=this['_model']['createRange'](_0x518060,_0x5eedba);if(_0x397d01['isOwn']&&(this['_mergeNestedSuggestions']||!_0x397d01['containsRangeInObject']&&!_0x397d01['isInsideObject'])){if(_0x1f3ddd['isMultiRange']){if(!Xt(_0x1f3ddd,_0x205169))continue;let _0x215d57=!0x0;for(const _0x7f2269 of _0x1f3ddd['getRanges']()){if(_0x7f2269['containsRange'](_0x38c605,!0x0))return _0x1f3ddd;_0x38c605['containsRange'](_0x7f2269)||(_0x215d57=!0x1);}_0x215d57&&_0x1f3ddd['discard']();}else{const _0x3e1288=_0x1f3ddd['getFirstRange']();if(_0x3e1288['containsRange'](_0x38c605,!0x0))return _0x1f3ddd;if(!Xt(_0x1f3ddd,_0x205169)){_0x38c605['containsRange'](_0x3e1288)?_0x1f3ddd['removeMarkers']():_0x3e1288['containsPosition'](_0x518060)?_0x518060=_0x3e1288['end']:_0x3e1288['containsPosition'](_0x5eedba)&&(_0x5eedba=_0x3e1288['start']);continue;}_0x518060=_0x518060['isBefore'](_0x3e1288['start'])?_0x518060:_0x3e1288['start'],_0x5eedba=_0x5eedba['isAfter'](_0x3e1288['end'])?_0x5eedba:_0x3e1288['end'],_0x205169=Object['assign']({},_0x1f3ddd['attributes']),_0x119a99?_0x3e1288['start']['isBefore'](_0x119a99['getFirstRange']()['start'])?(_0x119a99['removeMarkers'](),_0x119a99=_0x1f3ddd):_0x1f3ddd['removeMarkers']():_0x119a99=_0x1f3ddd;}}}if(_0x119a99)return this['_setSuggestionRange'](_0x119a99,this['_model']['createRange'](_0x518060,_0x5eedba)),_0x119a99;{const _0x4d4d7a=_0x324767(),_0x4f1594=this['_model']['createRange'](_0x518060,_0x5eedba),_0x830b52=_0x193121['id'],_0x3286a2=_0x49132c?'deletion:'+_0x49132c:'deletion',_0x475a99=this['_setSuggestionData']({'id':_0x4d4d7a,'type':_0x3286a2,'createdAt':new Date(),'authorId':_0x830b52,'attributes':_0x205169});return this['_addSuggestionMarker'](_0x3286a2,_0x4d4d7a,_0x830b52,_0x4f1594),_0x475a99;}}['markMultiRangeDeletion'](_0x3b1513,_0xf29f44='multi',_0x2110b4={}){const _0x21b28f=this['editor']['plugins']['get']('Users')['me'],_0x45c14f=_0x3b1513['map'](_0x591def=>new _0x19c427(_0x591def['start'],_0x591def['end'])),_0x403780=new Set();this['_trackingSessionId']&&(_0x2110b4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53215d,meta:_0x190777}of this['_findSuggestions'](_0x45c14f,'insertion'))_0x190777['isOwn']&&!_0x190777['isNextTo']&&_0x403780['add'](_0x53215d);for(const _0x3975a2 of _0x403780)if(_0x3975a2['isMultiRange']){const _0x2522fc=_0x3975a2['getRanges']();(!_0x3975a2['attributes']||!_0x3975a2['attributes']['skipNestingCheck'])&&(_0x2522fc['every'](_0x22c24b=>_0x45c14f['some'](_0x2f98aa=>_0x2f98aa['containsRange'](_0x22c24b,!0x0)))&&_0x3975a2['discard']());if(_0x45c14f['every'](_0x3399b5=>_0x2522fc['some'](_0x59bfbf=>_0x59bfbf['containsRange'](_0x3399b5,!0x0)))){const _0xc59a0e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf29f44,'accept');return this['forceDefaultExecution'](()=>_0xc59a0e(_0x3b1513,null,_0x2110b4)),null;}}else{const _0x269207=_0x3975a2['getFirstRange']();_0x45c14f['some'](_0x260323=>_0x260323['containsRange'](_0x269207,!0x0))&&_0x3975a2['discard']();if(_0x45c14f['every'](_0x1f4142=>_0x269207['containsRange'](_0x1f4142,!0x0))){const _0x4932ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf29f44,'accept');return this['forceDefaultExecution'](()=>_0x4932ba(_0x45c14f,null,_0x2110b4)),null;}}const _0x29c7c5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xf29f44,'join');let _0x352af0=null;for(const _0x8abaef of this['getSuggestions']())if(_0x8abaef['author']['id']==_0x21b28f['id']&&_0x8abaef['isInContent']&&'deletion'==_0x8abaef['type']&&_0x8abaef['subType']==_0xf29f44&&Xt(_0x8abaef,_0x2110b4)&&(_0x29c7c5(_0x8abaef['getRanges'](),_0x45c14f)||_0x29c7c5(_0x45c14f,_0x8abaef['getRanges']()))){if(_0x352af0){if(_0x8abaef['commentThread']&&_0x8abaef['commentThread']['length'])continue;for(const _0x20e466 of _0x8abaef['getRanges']())_0x352af0['isIntersectingWithRange'](_0x20e466)||_0x352af0['addRange'](_0x20e466);_0x8abaef['removeMarkers']();}else{_0x352af0=_0x8abaef;for(const _0x522d30 of _0x45c14f)_0x8abaef['isIntersectingWithRange'](_0x522d30)||_0x8abaef['addRange'](_0x522d30);}}if(_0x352af0)return _0x352af0;_0x403780['clear']();for(const {suggestion:_0x4c65c2,meta:_0x409f83}of this['_findSuggestions'](_0x45c14f,'deletion'))_0x409f83['isOwn']&&(this['_mergeNestedSuggestions']||!_0x409f83['containsRangeInObject']&&!_0x409f83['isInsideObject'])&&Xt(_0x4c65c2,_0x2110b4)&&_0x403780['add'](_0x4c65c2);for(const _0x1ce95d of _0x403780){const _0x57f122=_0x1ce95d['getRanges']();if(!_0x2110b4||!_0x2110b4['skipNestingCheck']){if(_0x45c14f['every'](_0x3d62ee=>_0x57f122['some'](_0x213dcb=>_0x213dcb['containsRange'](_0x3d62ee,!0x0))))return _0x1ce95d;}(!_0x1ce95d['attributes']||!_0x1ce95d['attributes']['skipNestingCheck'])&&(_0x57f122['every'](_0x11c87d=>_0x45c14f['some'](_0x29fae3=>_0x29fae3['containsRange'](_0x11c87d,!0x0)))&&_0x1ce95d['discard']());}const _0x3881fd=_0x324767(),_0x5de2e5=_0x21b28f['id'],_0xca4cd='deletion:'+_0xf29f44,_0x142fde=this['_setSuggestionData']({'id':_0x3881fd,'type':_0xca4cd,'createdAt':new Date(),'authorId':_0x5de2e5,'attributes':_0x2110b4});for(const _0xf68517 of _0x45c14f)_0xf68517['detach'](),_0xf68517['isCollapsed']||'$graveyard'==_0xf68517['root']['rootName']||this['_addSuggestionMarker'](_0xca4cd,_0x3881fd,_0x5de2e5,_0xf68517,T['getMultiRangeId']());return _0x142fde;}['markAttributeChange'](_0x4788bb,_0x3765e1,_0xadd0e3,_0x5caa34,_0x1dc16e){if(_0x4788bb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x183eed=this['editor']['plugins']['get']('Users')['me']['id'],_0x577ead=Array['from'](this['_suggestions']['values']())['filter'](_0x601ede=>'attribute'==_0x601ede['type']&&_0x601ede['data']['key']==_0x3765e1&&_0x601ede['isIntersectingWithRange'](_0x4788bb));if(this['_trackingSessionId']&&(_0x1dc16e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4d6fc9=this['_findSuggestions'](_0x4788bb,'insertion')['filter'](({meta:_0x3aa993})=>_0x3aa993['isOwn']&&!_0x3aa993['isInsideObject']&&!_0x3aa993['isNextTo'])['map'](({suggestion:_0x17e8ad})=>_0x17e8ad);_0x577ead['unshift'](..._0x4d6fc9);}const _0x16f45b=new Map([[_0x4788bb,_0xadd0e3]]);for(const _0x4ec78d of _0x577ead){const _0x3c97a8='attribute'==_0x4ec78d['type']?_0x4ec78d['data']['oldValue']:void 0x0,_0x276b2d=_0x4ec78d['getFirstRange'](),_0x38b1ff=Array['from'](_0x16f45b['keys']())['find'](_0x3d76d1=>_0x3d76d1['isIntersecting'](_0x276b2d));if(!_0x38b1ff)continue;const _0x19888a=_0x38b1ff['getDifference'](_0x276b2d);this['_isBlockAttribute'](_0x3765e1)&&'insertion'==_0x4ec78d['type']&&0x0!=_0x19888a['length']||(_0x16f45b['delete'](_0x38b1ff),_0x19888a['forEach'](_0x36d2f2=>{_0x16f45b['set'](_0x36d2f2,_0xadd0e3);}),'insertion'!=_0x4ec78d['type']&&_0x3c97a8!=_0x5caa34&&_0x16f45b['set'](_0x38b1ff['getIntersection'](_0x276b2d),_0x3c97a8));}const _0x67dab0=[];for(const [_0x4c4a7b,_0x321895]of _0x16f45b){const _0x4ac82c=_0x324767(),_0x474125={'key':_0x3765e1,'oldValue':_0x321895,'newValue':_0x5caa34};_0x3765e1['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':_0x3765e1});const _0x2b37d2=('attribute:'+(_0x3765e1+'|'+Lt({'newValue':_0x5caa34})))['substring'](0x0,0x3c),_0xa821fd=this['_setSuggestionData']({'id':_0x4ac82c,'type':_0x2b37d2,'data':_0x474125,'createdAt':new Date(),'authorId':_0x183eed,'attributes':_0x1dc16e});_0x67dab0['push'](_0xa821fd),this['_addSuggestionMarker'](_0x2b37d2,_0x4ac82c,_0x183eed,_0x4c4a7b);}return _0x67dab0;}['enableDefaultAttributesIntegration'](_0x11a2a4){this['enableCommand'](_0x11a2a4,(_0x1db1f0,..._0x567db0)=>{this['recordAttributeChanges'](()=>{_0x1db1f0(..._0x567db0);});});}['registerBlockAttribute'](_0x31249d){this['_blockAttributeKeys']['add'](_0x31249d);}['registerInlineAttribute'](_0x4fcd5b){this['_inlineAttributeKeys']['add'](_0x4fcd5b);}['startTrackingSession'](_0x2482bc){return this['_trackingSessionId']=void 0x0!==_0x2482bc?_0x2482bc:_0x324767(),this['_trackingSessionId'];}['_getAttributeKey'](_0x36c664){return'attribute'==_0x36c664['type']?_0x36c664['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3e4db1,_0x3cf216){const _0x1cd449=_0x3e4db1['getFirstMarker']();this['_model']['change'](_0x45c625=>{_0x45c625['updateMarker'](_0x1cd449,{'range':_0x3cf216});});}['_addThreadToSuggestion'](_0x194af4){const _0x3ad22e=_0x194af4['id'],_0x10c14e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3ad22e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x10c14e,'threadId':_0x3ad22e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1c33c1=this['_commentsRepository']['getCommentThread'](_0x3ad22e);_0x1c33c1['unbind']('isRemovable'),_0x1c33c1['isRemovable']=!0x1,_0x194af4['commentThread']=_0x1c33c1;}['_checkSuggestionCorrectness'](_0x524af2,_0x529414,_0x57b155,_0x5007d9){if(_0x524af2['type']!=_0x529414||_0x524af2['subType']!=_0x57b155||_0x524af2['creator']['id']!=_0x5007d9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x172784('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x136d9c,_0x4187ab){const _0x1873ff=_0x136d9c['getFirstRange']();if(_0x4187ab['isEqual'](_0x1873ff))_0x136d9c['removeMarkers']();else{if(_0x1873ff['containsRange'](_0x4187ab)){const _0x2a4702=this['_model']['createPositionAt'](_0x4187ab['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x136d9c,this['_model']['createRange'](_0x1873ff['start'],_0x2a4702));const _0xc3c1e=_0x324767(),_0x32f8b9=_0x136d9c['creator']['id'],_0x330c2c=_0x136d9c['type']+':'+_0x136d9c['subType'];this['_setSuggestionData']({'id':_0xc3c1e,'type':_0x330c2c,'createdAt':new Date(),'authorId':_0x32f8b9,'data':_0x136d9c['data'],'attributes':_0x136d9c['attributes']});const _0x2382da=this['_model']['createPositionAt'](_0x4187ab['end']['parent'],'after'),_0x4464d6=this['_model']['createRange'](_0x2382da,_0x1873ff['end']);this['_addSuggestionMarker'](_0x330c2c,_0xc3c1e,_0x32f8b9,_0x4464d6);}else{if(_0x1873ff['containsPosition'](_0x4187ab['start'])){const _0x59d8c7=this['_model']['createPositionAt'](_0x4187ab['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x136d9c,this['_model']['createRange'](_0x1873ff['start'],_0x59d8c7));}else{const _0x2cb4ca=this['_model']['createPositionAt'](_0x4187ab['end']['parent'],'after');this['_setSuggestionRange'](_0x136d9c,this['_model']['createRange'](_0x2cb4ca,_0x1873ff['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x36646d){for(const {suggestion:_0x28284f,meta:_0x58be00}of this['_findSuggestions'](_0x36646d,'insertion')){if(!_0x58be00['isOwn'])continue;const _0x1fe9c0=_0x28284f['getRanges']();for(const _0x26477f of _0x1fe9c0)if(!_0x36646d['getDifference'](_0x26477f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x571f9e){const _0x34176b=this['editor']['plugins']['get']('Users')['getUser'](_0x571f9e);if(!_0x34176b)throw new _0x172784('track-changes-user-not-found',this);return _0x34176b;}['_getExternalAuthor'](_0x29b535){const _0x5e3835=this['editor']['plugins']['get']('Users'),_0x35452a=_0x4b0cf5('external:'+_0x29b535),_0x26aa97=_0x5e3835['getUser'](_0x35452a);return _0x26aa97||_0x5e3835['addUser']({'id':_0x35452a,'name':_0x29b535});}['_createSuggestion'](_0x45f2e2,_0x2ec918,_0x3ec2e2,_0x4b408c,_0x40debf,_0x206216){const _0x528862=this['_getAuthorFromId'](_0x4b408c),_0x1eadd5=this['_suggestionFactory']['buildSuggestion'](_0x45f2e2,_0x2ec918,_0x3ec2e2,_0x528862,_0x40debf,_0x27c8cb=>{this['_updateSuggestionData'](_0x3ec2e2,{'attributes':_0x27c8cb});const _0x10f778=this['getSuggestion'](_0x3ec2e2);this['_joinWithAdjacentSuggestions'](new Set([_0x10f778])),this['_refreshSuggestionsChain'](new Set([_0x10f778]));},_0x206216);return this['listenTo'](_0x1eadd5,'accept',()=>{this['_updateSuggestionData'](_0x3ec2e2,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1eadd5,'discard',()=>{this['_updateSuggestionData'](_0x3ec2e2,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3ec2e2,_0x1eadd5),this['_suggestionState']['set'](_0x1eadd5,'notReady'),_0x1eadd5;}['_splitMarkerName'](_0x112a76){const _0x2f762a=_0x112a76['split'](':');return{'group':_0x2f762a[0x0],'type':_0x2f762a[0x1],'subType':_0x2f762a['length']>=0x5?_0x2f762a[0x2]:null,'id':_0x2f762a['length']<0x5?_0x2f762a[0x2]:_0x2f762a[0x3],'authorId':_0x2f762a['length']<0x5?_0x2f762a[0x3]:_0x2f762a[0x4],'markerCount':0x6==_0x2f762a['length']?_0x2f762a[0x5]:null};}['_breakSuggestionMarker'](_0x391a37,_0x101562,_0x129863){const _0x500688=_0x391a37['getFirstRange'](),_0x1c5855=_0x500688['start'],_0x5ad8b5=_0x500688['end'];this['_setSuggestionRange'](_0x391a37,this['_model']['createRange'](_0x1c5855,_0x101562));const _0x3fef2d=_0x324767(),_0x45faed=_0x391a37['creator']['id'],_0x138a18=_0x391a37['type']+(_0x391a37['subType']?':'+_0x391a37['subType']:'');this['_setSuggestionData']({'id':_0x3fef2d,'type':_0x138a18,'createdAt':new Date(),'authorId':_0x45faed,'originalSuggestionId':_0x391a37['_originalSuggestionId']||_0x391a37['id'],'attributes':_0x391a37['attributes'],'data':_0x391a37['data']});const _0x1abe16=this['_getAttributeKey'](_0x391a37);('formatBlock'==_0x391a37['type']||_0x1abe16&&this['_isBlockAttribute'](_0x1abe16))&&(_0x129863=this['_model']['createPositionBefore'](_0x129863['parent'])),this['_addSuggestionMarker'](_0x138a18,_0x3fef2d,_0x45faed,this['_model']['createRange'](_0x129863,_0x5ad8b5));}['_findSuggestions'](_0x30dd30,_0x8e336f=null){const _0x31448f=[],_0x27b61c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x30dd30)||(_0x30dd30=[_0x30dd30]);for(const _0xe3f3a3 of this['getSuggestions']()){if(!_0xe3f3a3['isInContent'])continue;if(_0x8e336f&&_0xe3f3a3['type']!=_0x8e336f)continue;let _0x3acf8f=!0x1;for(const _0x447972 of _0xe3f3a3['getRanges']()){for(const _0x33ca85 of _0x30dd30){const _0xe38fe5=_0x33ca85['start']['isEqual'](_0x447972['end'])||_0x33ca85['end']['isEqual'](_0x447972['start']);if(_0xe38fe5||_0x33ca85['getIntersection'](_0x447972)){const _0xc9232f=_0x33ca85['containsRange'](_0x447972)&&Ft(this['_model']['schema'],_0x447972['start'],_0x33ca85),_0x3b4cc5=_0x447972['containsRange'](_0x33ca85)&&Ft(this['_model']['schema'],_0x33ca85['start'],_0x447972);_0x31448f['push']({'suggestion':_0xe3f3a3,'meta':{'isOwn':_0x27b61c==_0xe3f3a3['author'],'isNextTo':_0xe38fe5,'isInsideObject':_0xc9232f,'containsRangeInObject':_0x3b4cc5}}),_0x3acf8f=!0x0;break;}}if(_0x3acf8f)break;}}return _0x31448f;}['_addSuggestionMarker'](_0x557775,_0x217a4a,_0x5b717c,_0x34423d,_0x52d99a){this['_model']['change'](_0x1e5055=>{let _0x5ef9b7='suggestion:'+_0x557775+':'+_0x217a4a+':'+_0x5b717c;_0x52d99a&&(_0x5ef9b7=_0x5ef9b7+':'+_0x52d99a),_0x1e5055['addMarker'](_0x5ef9b7,{'range':_0x34423d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x39d50a){const _0x17e6d6=_0x39d50a['previous'],_0x26b4b2=_0x39d50a['next'];_0x39d50a['previous']=null,_0x39d50a['next']=null,null!=_0x17e6d6&&_0x17e6d6['next']==_0x39d50a&&(_0x17e6d6['next']=_0x26b4b2),null!=_0x26b4b2&&_0x26b4b2['previous']==_0x39d50a&&(_0x26b4b2['previous']=_0x17e6d6),'ready'==this['_suggestionState']['get'](_0x39d50a)&&(this['_suggestionState']['set'](_0x39d50a,'removed'),this['fire']('suggestionUnloaded',_0x39d50a,_0x17e6d6,_0x26b4b2));}['_setSuggestionData'](_0x1d2503){const _0x46d547=_0x1d2503['id'],_0x5cb2bf=this['addSuggestionData'](_0x1d2503);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x390a0c=this['editor']['plugins']['get']('PendingActions'),_0x8144d8=_0x5cb2bf['hasComments'],_0x16743b=_0x5cb2bf['subType']?_0x5cb2bf['type']+':'+_0x5cb2bf['subType']:_0x5cb2bf['type'],_0xc04b09=this['editor']['locale'],_0x358cb6=_0x390a0c['add'](o(_0xc04b09,'PENDING_ACTION_SUGGESTION')),_0x26860f={'id':_0x46d547,'type':_0x16743b,'hasComments':_0x8144d8,'data':_0x1d2503['data']||null,'originalSuggestionId':_0x1d2503['originalSuggestionId']||null,'attributes':_0x5cb2bf['attributes']};this['_adapter']['addSuggestion'](_0x26860f)['then'](_0xc8362e=>{_0x5cb2bf['_saved']=!0x0,_0x390a0c['remove'](_0x358cb6),_0xc8362e&&_0xc8362e['createdAt']&&(this['_suggestions']['get'](_0x46d547)['createdAt']=_0xc8362e['createdAt']);})['catch'](_0x1f757d=>{throw _0x37438d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5cb2bf['discard']();}),_0x5cb2bf['stopListening'](),this['_suggestions']['delete'](_0x5cb2bf['id']),this['_suggestionState']['delete'](_0x5cb2bf),_0x1f757d;});}return _0x5cb2bf;}['_isBlockAttribute'](_0x498d54){return this['_blockAttributeKeys']['has'](_0x498d54);}['_isInlineAttribute'](_0x27d431){return this['_inlineAttributeKeys']['has'](_0x27d431);}['_updateSuggestionData'](_0x5f14a0,_0x317ff8){const _0x34b031=this['editor']['plugins']['get']('PendingActions'),_0x45df89=this['getSuggestion'](_0x5f14a0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x45df89['_saved']){const _0x29aace=_0x34b031['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5f14a0,_0x317ff8)['then'](()=>{_0x34b031['remove'](_0x29aace);});}else _0x45df89['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5f14a0,_0x317ff8);});}}['_getSuggestionData'](_0x5524e8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x172784('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5524e8);}['_handleNewSuggestionMarker'](_0x594e0e){const {id:_0x4a0729,type:_0x2cdd05,subType:_0x358577,authorId:_0x2333d5}=this['_splitMarkerName'](_0x594e0e),_0x27becd=this['_suggestions']['get'](_0x4a0729)||this['_createSuggestion'](_0x2cdd05,_0x358577,_0x4a0729,_0x2333d5,{});switch(this['_checkSuggestionCorrectness'](_0x27becd,_0x2cdd05,_0x358577,_0x2333d5),this['_suggestionState']['get'](_0x27becd)){case'notReady':this['_getSuggestionData'](_0x4a0729)['then'](_0x27cb3b=>{let _0x498696=Promise['resolve']();_0x27cb3b['hasComments']&&(_0x498696=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4a0729})),_0x498696['then'](()=>{this['addSuggestionData'](_0x27cb3b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x27becd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4a0729,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x27becd,'ready'),this['fire']('suggestionLoaded',_0x27becd);break;case'ready':this['fire']('suggestionChanged',_0x27becd);}return _0x27becd['addMarkerName'](_0x594e0e),_0x27becd;}['_refreshSuggestionsChain'](_0x284c7c){const _0x5558d8=Array['from'](_0x284c7c),_0xade8e0=_0x5558d8['filter'](_0x3cfd71=>'attribute'==_0x3cfd71['type']);this['_refreshAttributeSuggestionsChain'](_0xade8e0);const _0x55f5ae=_0x5558d8['filter'](_0x1da688=>!_0x1da688['isMultiRange']&&'attribute'!=_0x1da688['type']),_0x73b4b9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b69cb=>!_0x2b69cb['isMultiRange']&&'attribute'!=_0x2b69cb['type']),_0x22b1c7=_0x73b4b9['filter'](_0x183151=>!_0x284c7c['has'](_0x183151)),_0xf16b51=new Map(_0x73b4b9['map'](_0x24c78a=>[_0x24c78a,this['_suggestionFactory']['getSuggestionCallback'](_0x24c78a['type'],_0x24c78a['subType'],'chain')])),_0x198763=new Map(_0x73b4b9['map'](_0x23f921=>[_0x23f921,_0x23f921['getFirstRange']()])),_0x1c3687=new Set(),_0x1bd897=new Set();for(let _0xf71f68=0x0;_0xf71f68<_0x55f5ae['length'];_0xf71f68++)_0x58991a(_0x55f5ae[_0xf71f68],_0x55f5ae,_0xf71f68+0x1);for(let _0x3c537f=0x0;_0x3c537f<_0x55f5ae['length'];_0x3c537f++)_0x58991a(_0x55f5ae[_0x3c537f],_0x22b1c7,0x0);const _0x11ce65=new Set();for(let _0x199f13=0x0;_0x199f13<_0x55f5ae['length'];_0x199f13++){const _0x31f186=_0x55f5ae[_0x199f13];!_0x1bd897['has'](_0x31f186)&&_0x31f186['previous']&&(_0x11ce65['add'](_0x31f186['previous']),_0x31f186['previous']['next']===_0x31f186&&(_0x31f186['previous']['next']=null),_0x31f186['previous']=null),!_0x1c3687['has'](_0x31f186)&&_0x31f186['next']&&(_0x11ce65['add'](_0x31f186['next']),_0x31f186['next']['previous']===_0x31f186&&(_0x31f186['next']['previous']=null),_0x31f186['next']=null);}function _0x58991a(_0x540377,_0x17ac9a,_0x45f07){for(let _0x176752=_0x45f07;_0x176752<_0x17ac9a['length'];_0x176752++){const _0x4873b1=_0x1d2f1e(_0x540377,_0x17ac9a[_0x176752]);_0x4873b1&&(_0x4873b1[0x0]['next']=_0x4873b1[0x1],_0x4873b1[0x1]['previous']=_0x4873b1[0x0],_0x1c3687['add'](_0x4873b1[0x0]),_0x1bd897['add'](_0x4873b1[0x1]));}}function _0x1d2f1e(_0x393188,_0xfe064a){if(_0x393188['author']['id']!==_0xfe064a['author']['id'])return null;const _0x1ac1a3=_0xf16b51['get'](_0x393188)(_0x393188,_0xfe064a,_0x198763['get'](_0x393188),_0x198763['get'](_0xfe064a));if(!_0x1ac1a3)return null;return _0xf16b51['get'](_0xfe064a)(_0x393188,_0xfe064a,_0x198763['get'](_0x393188),_0x198763['get'](_0xfe064a))?_0x1ac1a3[0x1]['commentThread']&&_0x1ac1a3[0x1]['commentThread']['length']?null:_0x1ac1a3:null;}_0x11ce65['size']&&this['_refreshSuggestionsChain'](_0x11ce65);}['_refreshAttributeSuggestionsChain'](_0x359cdd){if(0x0==_0x359cdd['length'])return;const _0xc6a3d3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58b380=>'attribute'==_0x58b380['type']&&_0x58b380['_isDataLoaded']),_0x46bb6e=[],_0x20e536=new Map();for(const _0x187c5f of _0xc6a3d3){const _0x13e18b=_0x4b0cf5(_0x187c5f['attributes']);_0x20e536['has'](_0x13e18b)||(_0x20e536['set'](_0x13e18b,_0x46bb6e['length']),_0x46bb6e['push']([]));const _0x5599ac=_0x20e536['get'](_0x13e18b);_0x46bb6e[_0x5599ac]['push'](_0x187c5f);}!(function(){_0x46bb6e['sort']((_0xe25111,_0x34cb53)=>{const _0x3dcaac=_0xe25111[0x0]['createdAt'],_0x955a2d=_0x34cb53[0x0]['createdAt'];return _0x3dcaac==_0x955a2d?_0xe25111[0x0]['attributes']['groupId']<_0x34cb53[0x0]['attributes']['groupId']?-0x1:0x1:_0x3dcaac<_0x955a2d?-0x1:0x1;});for(const _0x25bee8 of _0x46bb6e)_0x25bee8['sort']((_0x21f279,_0x4e0262)=>_0x21f279['id']<_0x4e0262['id']?-0x1:0x1);}());for(let _0x54a856=0x0;_0x54a856<_0x46bb6e['length'];_0x54a856++){if(0x0==_0x46bb6e[_0x54a856]['length'])continue;const _0x4a3cfa=[];for(let _0x3345c2=_0x54a856+0x1;_0x3345c2<_0x46bb6e['length'];_0x3345c2++)0x0!=_0x46bb6e[_0x3345c2]['length']&&_0x3ea146(_0x46bb6e[_0x54a856],_0x46bb6e[_0x3345c2])&&_0x4a3cfa['push'](_0x3345c2);for(const _0x3cd117 of _0x4a3cfa)_0x46bb6e[_0x54a856]=_0x46bb6e[_0x54a856]['concat'](_0x46bb6e[_0x3cd117]),_0x46bb6e[_0x3cd117]=[];}for(const _0x29253f of _0x46bb6e)for(let _0x29978d=0x0;_0x29978d<_0x29253f['length'];_0x29978d++){const _0x8fe745=_0x29253f[_0x29978d+0x1]||null;_0x29253f[_0x29978d]['next']!==_0x8fe745&&(_0x29253f[_0x29978d]['next']=_0x8fe745);}for(const _0x5e87c4 of _0x46bb6e)for(let _0x55ead2=0x0;_0x55ead2<_0x5e87c4['length'];_0x55ead2++){const _0x70bf90=_0x5e87c4[_0x55ead2-0x1]||null;_0x5e87c4[_0x55ead2]['previous']!==_0x70bf90&&(_0x5e87c4[_0x55ead2]['previous']=_0x70bf90);}function _0x3ea146(_0x1fd05f,_0x184479){if(_0x1fd05f[0x0]['attributes']['groupId']!==_0x184479[0x0]['attributes']['groupId']&&_0x1fd05f[0x0]['author']!==_0x184479[0x0]['author'])return!0x1;if(!function(_0x36f10c,_0x156ca3){if(!_0x36f10c['hasComments']&&!_0x156ca3['hasComments'])return!0x0;if(_0x36f10c['hasComments']&&_0x156ca3['hasComments'])return!0x1;if(_0x36f10c['hasComments']&&_0x156ca3['createdAt']<_0x36f10c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x156ca3['hasComments']&&_0x36f10c['createdAt']<_0x156ca3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1fd05f[0x0],_0x184479[0x0]))return!0x1;const _0x75b557=Ut(_0x1fd05f[0x0]['attributes'],['groupId','trackingSessionId']),_0x150159=Ut(_0x184479[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5ee984(_0x75b557,_0x150159))return!0x1;if(_0x1fd05f[0x0]['attributes']['groupId']==_0x184479[0x0]['attributes']['groupId'])return!0x0;if(_0x1fd05f[0x0]['attributes']['trackingSessionId']!==_0x184479[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1fd05f['every'](_0x49a654=>_0x184479['some'](_0x1018cb=>_0x49a654['getFirstRange']()['isEqual'](_0x1018cb['getFirstRange']())))&&_0x184479['every'](_0x28e244=>_0x1fd05f['some'](_0x58fab2=>_0x28e244['getFirstRange']()['isEqual'](_0x58fab2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xa11cac){const _0x4eb75b=Array['from'](_0xa11cac),_0x5b09ea=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f11b2=_0x5b09ea['filter'](_0x654a78=>!_0xa11cac['has'](_0x654a78)),_0x4408a7=new Map(_0x4eb75b['map'](_0x549ebf=>[_0x549ebf,this['_suggestionFactory']['getSuggestionCallback'](_0x549ebf['type'],_0x549ebf['subType'],'join')])),_0x61620c=new Map(_0x5b09ea['map'](_0x58a365=>[_0x58a365,_0x58a365['getRanges']()]));for(let _0x55a4cb=0x0;_0x55a4cb<_0x4eb75b['length'];_0x55a4cb++){if(_0x110c79(this,_0x4eb75b[_0x55a4cb],_0x4eb75b,_0x55a4cb+0x1))return!0x0;}for(let _0x60d6ef=0x0;_0x60d6ef<_0x4eb75b['length'];_0x60d6ef++){if(_0x110c79(this,_0x4eb75b[_0x60d6ef],_0x4f11b2,0x0))return!0x0;}return!0x1;function _0x110c79(_0x335077,_0x43507a,_0x13c1f0,_0x36b6f3){for(let _0x59932e=_0x36b6f3;_0x59932e<_0x13c1f0['length'];_0x59932e++){const _0x1c44cb=_0x13c1f0[_0x59932e];if(_0x1c44cb['type']!==_0x43507a['type']||_0x1c44cb['author']['id']!==_0x43507a['author']['id']||_0x1c44cb['subType']!==_0x43507a['subType'])continue;if(!Qt(_0x43507a,_0x1c44cb))continue;if('attribute'==_0x43507a['type']&&_0x43507a['data']['oldValue']!=_0x1c44cb['data']['oldValue'])continue;if('attribute'==_0x43507a['type']&&_0x335077['_isBlockAttribute'](_0x43507a['data']['key']))continue;if('formatBlock'==_0x43507a['type']){const _0x2731ae=_0x335077['editor']['model'],_0x4d8183=_0x43507a['getContainedElement']();if(_0x4d8183&&(_0x2731ae['schema']['isObject'](_0x4d8183)||_0x2731ae['schema']['isLimit'](_0x4d8183)))continue;}const _0xdba679=_0x4408a7['get'](_0x43507a),_0x1eab25=_0x61620c['get'](_0x43507a),_0x5252a7=_0x61620c['get'](_0x1c44cb),_0x21582b=_0x43507a['commentThread']&&_0x43507a['commentThread']['length'],_0x2c78a8=_0x1c44cb['commentThread']&&_0x1c44cb['commentThread']['length'];if(!_0x21582b&&_0xdba679(_0x5252a7,_0x1eab25))return _0x335077['_joinSuggestions'](_0x1c44cb,_0x43507a),_0x61620c['delete'](_0x43507a),!0x0;if(!_0x2c78a8&&_0xdba679(_0x1eab25,_0x5252a7))return _0x335077['_joinSuggestions'](_0x43507a,_0x1c44cb),_0x61620c['delete'](_0x1c44cb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x459e36,_0x3c2375){if(_0x459e36['isMultiRange']){for(const _0x20eb29 of _0x3c2375['getRanges']())_0x459e36['addRange'](_0x20eb29);}else{const _0x23f05f=_0x3c2375['getFirstRange']()['end'];this['_setSuggestionRange'](_0x459e36,this['_model']['createRange'](_0x459e36['getFirstRange']()['start'],_0x23f05f));}_0x3c2375['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2c04c3,_0x190a92,_0x29ac0d){const _0x2c1625=_0x2c04c3['startsWith']('format')||_0x2c04c3['startsWith']('attribute')?'FORMATTING':_0x2c04c3['toUpperCase']();return o(this['editor']['locale'],_0x190a92+'_'+_0x2c1625+'_SUGGESTION_ANNOUNCEMENT',_0x29ac0d);}['_initAriaMarkerChangeAnnouncements'](){const _0x41c85b=this['editor'];if(!_0x41c85b['ui'])return;const {ariaLiveAnnouncer:_0x4e2b17}=_0x41c85b['ui'];_0x396a16(this['_model'],({left:_0x1ed921,entered:_0x49dcf5})=>{for(const _0x4f8a45 of _0x1ed921){const {group:_0x5be75b,type:_0x17de3b}=this['_splitMarkerName'](_0x4f8a45['name']);if('suggestion'===_0x5be75b){_0x4e2b17['announce'](this['_getMarkerAnnouncementText'](_0x17de3b,'LEAVE'));break;}}for(const _0xf59f79 of _0x49dcf5){const {group:_0x2c05ed,type:_0x5f4fe3}=this['_splitMarkerName'](_0xf59f79['name']);if('suggestion'===_0x2c05ed){_0x4e2b17['announce'](this['_getMarkerAnnouncementText'](_0x5f4fe3,'ENTER',_0x2942f2(_0x358e1c)));break;}}});}['_processAttributeChanges'](_0x29efec){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3f3414=this['editor'],_0x584b45=_0x3f3414['model']['document']['differ']['getChanges']();if(0x0==_0x584b45['length'])return!0x1;const _0x1cbbec=[],_0x5e6747=_0x584b45['filter'](_0x37ab86=>'attribute'==_0x37ab86['type']),_0x3bb31a=_0x584b45['filter'](_0x50451c=>'insert'==_0x50451c['type']&&'$text'!=_0x50451c['name']),_0x1b1b71=_0x584b45['filter'](_0x589ce4=>'remove'==_0x589ce4['type']&&'$text'!=_0x589ce4['name']);for(const _0x439ae8 of _0x5e6747)_0x1cbbec['push']({'key':_0x439ae8['attributeKey'],'newValue':_0x439ae8['attributeNewValue'],'oldValue':_0x439ae8['attributeOldValue'],'range':qt(_0x439ae8['range'],_0x3f3414['model'])});for(const _0x5ddd1c of _0x3bb31a){const _0x1c6ccd=_0x1b1b71['find'](_0x26c01e=>_0x26c01e['position']['isEqual'](_0x5ddd1c['position']));_0x1c6ccd&&_0x1cbbec['push']({'key':m,'newValue':_0x5ddd1c['name'],'oldValue':_0x1c6ccd['name'],'range':_0x3f3414['model']['createRangeOn'](_0x5ddd1c['position']['nodeAfter'])});}return 0x0!=_0x1cbbec['length']&&this['_reduceExistingSuggestions'](_0x29efec,_0x1cbbec);}['_processAttributeSuggestions'](_0x1478fc){let _0x4e7bc5=!0x1;const _0x1d34e4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x284e3f=>_0x284e3f['data']['newRange']&&_0x284e3f['name']['startsWith']('suggestion:attribute:'));for(const _0xd66909 of _0x1d34e4){const {subType:_0x11a024,id:_0x11f641}=this['_splitMarkerName'](_0xd66909['name']),_0x3ed77b=_0x11a024['split']('|')[0x0];for(const _0x32d884 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x32d884['id']!=_0x11f641&&'attribute'==_0x32d884['type']&&_0x32d884['data']&&_0x32d884['data']['key']==_0x3ed77b&&_0x32d884['getFirstRange']()['isIntersecting'](_0xd66909['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x32d884,_0xd66909['data']['newRange'],_0x1478fc),_0x4e7bc5=!0x0);}return _0x4e7bc5;}['recordAttributeChanges'](_0x346a36){this['_recordAttributeSuggestions']=!0x0,_0x346a36();}['_isRegisteredAttribute'](_0x4bf688){const _0x5726c8=this['_isBlockAttribute'](_0x4bf688),_0x3f7235=this['_isInlineAttribute'](_0x4bf688);return _0x5726c8||_0x3f7235;}['_reduceExistingSuggestions'](_0x2dc1d0,_0x5e3f40){if(0x0==_0x5e3f40['length'])return!0x1;let _0x4e1013=!0x1;for(const _0x4fcd98 of _0x5e3f40){const _0x1008a5=this['_findSuggestions'](_0x4fcd98['range'],'attribute')['filter'](_0x39b500=>!_0x39b500['meta']['isNextTo'])['map'](_0x445013=>_0x445013['suggestion']),_0x50406a=_0x4b0cf5({'newValue':_0x4fcd98['newValue']});_0x1008a5['filter'](_0xff726=>{const [_0x4c3b85,_0x3e88ea]=_0xff726['subType']['split']('|');return _0x4c3b85==_0x4fcd98['key']&&_0x3e88ea!=_0x50406a;})['forEach'](_0x43220f=>{this['_reduceSuggestionAttributeRange'](_0x43220f,_0x4fcd98['range'],_0x2dc1d0),_0x4e1013=!0x0;});}return _0x4e1013;}['_reduceSuggestionAttributeRange'](_0x9dfc93,_0x218af8,_0x4a8b3c){const _0x31c5df=_0x9dfc93['getFirstRange']()['getDifference'](_0x218af8);0x0!==_0x31c5df['length']?0x1!==_0x31c5df['length']?this['_breakSuggestionMarker'](_0x9dfc93,_0x218af8['start'],_0x218af8['end']):this['_setSuggestionRange'](_0x9dfc93,_0x31c5df[0x0]):_0x4a8b3c['removeMarker'](_0x9dfc93['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xc35dea){this['_editor']=_0xc35dea,this['_model']=_0xc35dea['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x16c56d,_0x9e7d69,_0x4a9d0a,_0x51dce0,_0x1b696c,_0x49d583,_0x38d429){return new T(this['_model'],{'type':_0x16c56d,'subType':_0x9e7d69,'id':_0x4a9d0a,'originalSuggestionId':_0x38d429,'author':_0x51dce0,'creator':_0x51dce0,'attributes':_0x1b696c,'onAttributesChange':_0x49d583,'onAccept':(..._0x9bf73e)=>this['getSuggestionCallback'](_0x16c56d,_0x9e7d69,'accept')(..._0x9bf73e),'onDiscard':(..._0x278015)=>this['getSuggestionCallback'](_0x16c56d,_0x9e7d69,'discard')(..._0x278015)});}['registerCustomCallback'](_0x152c24,_0x4f4a06,_0x1ebb8c,_0x34c345){const _0x406628=_0x152c24+':'+_0x4f4a06+':'+_0x1ebb8c;this['_customCallbacks']['set'](_0x406628,_0x34c345);}['getSuggestionCallback'](_0x28756d,_0xa6df8a,_0x370364){const _0x538655=_0x28756d+':'+_0xa6df8a+':'+_0x370364;return this['_customCallbacks']['get'](_0x538655)||this['_defaultCallbacks']['get'](_0x28756d+':'+_0x370364);}['_registerDefaultCallbacks'](){const _0x2451a2=()=>!0x1,_0xa46211=_0x20d993=>{_0x20d993['sort']((_0x1f4cb0,_0x57eb91)=>_0x1f4cb0['start']['isBefore'](_0x57eb91['start'])?0x1:-0x1),this['_model']['change'](_0x208ffe=>{for(const _0x24113d of _0x20d993){let _0xa005c8;_0xa005c8=_0x24113d['end']['isAtEnd']&&_0x24113d['end']['parent']==_0x24113d['start']['nodeAfter']?_0x208ffe['createSelection'](_0x24113d['start']['nodeAfter'],'on'):_0x208ffe['createSelection'](_0x24113d),this['_model']['deleteContent'](_0xa005c8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x45b227=(_0x55c415,_0x5c0934)=>{_0x5c0934&&this['_model']['change'](_0x438208=>{const {commandName:_0x460848,commandParams:_0x258580=[]}=_0x5c0934,_0x1bd17a=_0x55c415['map'](_0x3bdea4=>(Pt(_0x3bdea4)&&(_0x3bdea4=this['_model']['createRange'](_0x3bdea4['end'])),_0x3bdea4))['filter'](_0x1ee830=>'$graveyard'!==_0x1ee830['root']['rootName']);if(_0x1bd17a['length']<0x1)return;const _0x553d61=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3302a0=>_0x19c427['fromRange'](_0x3302a0));_0x438208['setSelection'](_0x1bd17a);for(const _0x50d172 of this['_editor']['commands']['commands']())_0x50d172['refresh']();_0x258580['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x460848,..._0x258580);const _0x32994b=_0x553d61['filter'](_0x370166=>'$graveyard'!=_0x370166['root']['rootName']);_0x32994b['length']>0x0&&_0x438208['setSelection'](_0x32994b);for(const _0x1c3766 of _0x553d61)_0x1c3766['detach']();});},_0x2d831e=(_0x8e79a0,_0x2610e6)=>0x1==_0x8e79a0['length']&&0x1==_0x2610e6['length']&&_0x8e79a0[0x0]['end']['isEqual'](_0x2610e6[0x0]['start']),_0x4465be=(_0x4db414,_0x555eff,_0x10488c,_0x577460)=>Wt(_0x4db414,_0x555eff,_0x10488c,_0x577460)?[_0x4db414,_0x555eff]:Wt(_0x555eff,_0x4db414,_0x577460,_0x10488c)?[_0x555eff,_0x4db414]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2451a2),this['_defaultCallbacks']['set']('insertion:discard',_0xa46211),this['_defaultCallbacks']['set']('insertion:join',_0x2d831e),this['_defaultCallbacks']['set']('insertion:chain',_0x4465be),this['_defaultCallbacks']['set']('deletion:accept',_0xa46211),this['_defaultCallbacks']['set']('deletion:discard',_0x2451a2),this['_defaultCallbacks']['set']('deletion:join',_0x2d831e),this['_defaultCallbacks']['set']('deletion:chain',_0x4465be),this['_defaultCallbacks']['set']('formatInline:accept',_0x45b227),this['_defaultCallbacks']['set']('formatInline:discard',_0x2451a2),this['_defaultCallbacks']['set']('formatInline:join',_0x2d831e),this['_defaultCallbacks']['set']('formatInline:chain',_0x2451a2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x45b227),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2451a2),this['_defaultCallbacks']['set']('formatBlock:join',_0x2d831e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2451a2),this['_defaultCallbacks']['set']('attribute:accept',_0x2451a2),this['_defaultCallbacks']['set']('attribute:discard',(_0x5225ed,_0x1b15c3)=>{if(!_0x1b15c3)return;const _0x2d8cd3=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x121fe1=>{if(_0x1b15c3['key']==m)for(const _0x20c0eb of _0x5225ed){const _0x423f0d=_0x20c0eb['start']['nodeAfter'],_0x1ffb0b=_0x1b15c3['oldValue'];_0x121fe1['rename'](_0x423f0d,_0x1ffb0b);}else{if(_0x2d8cd3['_isBlockAttribute'](_0x1b15c3['key'])){for(const _0x7d01e5 of _0x5225ed)void 0x0!==_0x1b15c3['oldValue']?_0x121fe1['setAttribute'](_0x1b15c3['key'],_0x1b15c3['oldValue'],_0x7d01e5['start']['nodeAfter']):_0x121fe1['removeAttribute'](_0x1b15c3['key'],_0x7d01e5['start']['nodeAfter']);}else{for(const _0x46b213 of _0x5225ed)_0x1b15c3['oldValue']?_0x121fe1['setAttribute'](_0x1b15c3['key'],_0x1b15c3['oldValue'],_0x46b213):_0x121fe1['removeAttribute'](_0x1b15c3['key'],_0x46b213);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2d831e);}}function Ft(_0x53a2ce,_0x948028,_0x5c45fd){for(const _0x484ca8 of _0x948028['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x484ca8['root']==_0x484ca8)return!0x1;if(!_0x5c45fd['containsItem'](_0x484ca8))return!0x1;if(_0x53a2ce['isObject'](_0x484ca8)||_0x53a2ce['isLimit'](_0x484ca8))return!0x0;}return!0x1;}function Pt(_0x5115d2){return _0x5115d2['end']['parent']==_0x5115d2['start']['nodeAfter']&&_0x5115d2['end']['isAtStart'];}function Gt(_0x29a345,_0x5c2ac8,_0x243056,_0x2e3ca9){const _0x26bb60=_0x1fb3a9=>!_0x1fb3a9['item']['is']('$textProxy')&&!_0x2e3ca9['isObject'](_0x1fb3a9['item']),_0x511067=_0x29a345['start']['getLastMatchingPosition'](_0x26bb60),_0x2036c6=_0x29a345['end']['getLastMatchingPosition'](_0x26bb60,{'direction':'backward'});return(!_0x29a345['start']['isEqual'](_0x511067)||!_0x29a345['end']['isEqual'](_0x2036c6))&&(_0x511067['isBefore'](_0x2036c6)?_0x243056['updateMarker'](_0x5c2ac8,{'range':_0x243056['createRange'](_0x511067,_0x2036c6)}):_0x243056['removeMarker'](_0x5c2ac8),!0x0);}function Lt(_0x55017d){return _0x4b0cf5(_0x55017d);}function Jt(_0x139730){const _0x57d98c=_0x139730['start']['nodeAfter'];return _0x57d98c&&_0x57d98c['is']('element');}function Kt(_0x1f8579){return Pt(_0x1f8579)||function(_0x20366d){return _0x20366d['start']['parent']==_0x20366d['end']['nodeBefore']&&_0x20366d['start']['isAtEnd'];}(_0x1f8579);}function Ht(_0x2c2b59,_0x265de6){try{const _0x3c1aa8=_0x2c2b59['getRange']();for(const _0x482570 of _0x265de6)if(_0x2c2b59!==_0x482570&&_0x3c1aa8&&_0x3c1aa8['isIntersecting'](_0x482570['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x38761b,_0x50e36a){return null==_0x38761b['end']['nodeBefore']&&_0x38761b['end']['parent']==_0x38761b['start']['nodeAfter']?zt(_0x38761b['start']['nodeAfter'],_0x50e36a):_0x38761b;}function zt(_0x40f2d0,_0xad54ac){const _0x5a53ab=_0xad54ac['schema']['isObject'](_0x40f2d0)||_0xad54ac['schema']['isSelectable'](_0x40f2d0);return _0xad54ac['createRange'](_0xad54ac['createPositionAt'](_0x40f2d0,'before'),_0x5a53ab?_0xad54ac['createPositionAfter'](_0x40f2d0):_0xad54ac['createPositionAt'](_0x40f2d0,'end'));}function Wt(_0x2ea7ad,_0x3ef787,_0x8d28e4,_0x366daf){return!!Qt(_0x2ea7ad,_0x3ef787)&&_0x8d28e4['end']['isEqual'](_0x366daf['start']);}function Qt(_0x39df4a,_0x3d4368){if(!_0x39df4a['_isDataLoaded']||!_0x3d4368['_isDataLoaded'])return!0x1;const _0x47dab2=new Set(Object['keys'](_0x39df4a['attributes'])),_0x314b2f=new Set(Object['keys'](_0x3d4368['attributes']));if(_0x47dab2['delete']('groupId'),_0x314b2f['delete']('groupId'),0x0==_0x47dab2['size']&&0x0==_0x314b2f['size'])return!0x0;if(_0x47dab2['size']!=_0x314b2f['size'])return!0x1;const _0x1b2515={..._0x39df4a['attributes']},_0x3fb12f={..._0x3d4368['attributes']};return delete _0x1b2515['groupId'],delete _0x3fb12f['groupId'],JSON['stringify'](_0x1b2515)==JSON['stringify'](_0x3fb12f);}function Xt(_0xa25642,_0x3d6515){const _0xb51238=Yt(_0xa25642['attributes']),_0x2d2d2a=Yt(_0x3d6515);if(!_0xa25642['_isDataLoaded'])return!0x1;for(const _0x48aea9 of Object['keys'](_0x2d2d2a))if(!_0x5ee984(_0xb51238[_0x48aea9],_0x2d2d2a[_0x48aea9]))return!0x1;return!0x0;}function Yt(_0x343cd0){const _0x5188b1=Object['assign']({},_0x343cd0);return delete _0x5188b1['skipNestingCheck'],delete _0x5188b1['tablePasteChainId'],_0x5188b1;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x37f24f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x41ed10,_0x391df8,_0x28cc80,_0x461990){super(),this['model']=_0x391df8,this['view']=_0x28cc80,this['commentThreadController']=_0x461990,this['_editor']=_0x41ed10,this['_acceptCommand']=_0x41ed10['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x41ed10['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xd4d11a,_0xc1c4b0)=>_0xd4d11a||_0xc1c4b0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x324173=>_0x324173&&this['_editor']['model']['canEditAt'](_0x391df8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x16a775=>_0x16a775&&this['_editor']['model']['canEditAt'](_0x391df8['getRanges']())),this['_pendingAction']=null,_0x28cc80['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x28cc80,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x28cc80,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x28cc80,'change:isDirty',()=>{_0x28cc80['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 _0x305cf0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x305cf0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4c7948{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x51f975,_0x510868,_0x49c743,_0x3d5100){super(_0x51f975),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4791d4(_0x51f975,o(_0x51f975,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x510868['authoredAt']),this['bind']('authoredAt')['to'](_0x510868),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',_0x510868,'authoredAt',this,'descriptionParts',(_0x48b7f4,_0x23c620,_0x5615c6)=>{const _0x4e6be5=_0x5615c6['map'](_0x2a125b=>ls(_0x2a125b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48b7f4-0x1,_0x510868['author']['name'],_0x23c620?_0x3d5100['formatDateTime'](_0x23c620):'',new DOMParser()['parseFromString'](_0x4e6be5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5d8b9b(),this['focusTracker']=new _0x23453b(),this['keystrokes']=new _0x1d910b(),this['focusCycler']=new _0x31bf2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f5ef3=>_0x1f5ef3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x510868,this['_localUser']=_0x49c743,this['_config']=_0x3d5100,_0x3d5100['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1d40cb(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1776c7}=this['_config'];this['commentsListView']=new _0x1776c7(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',_0x59b623=>_0x59b623+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2bcdb3,_0x49369b)=>_0x2bcdb3||!!_0x49369b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x59cc32}=this['_config'],_0xd45d69=new _0x59cc32(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5b59a8=_0xd45d69['commentInputView'];return _0xd45d69['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5b59a8,'value',(_0x443d13,_0x10fc94,_0x26336b)=>!!_0x26336b||_0x443d13&&!_0x10fc94),_0x5b59a8['on']('submit',(_0x469a7b,_0xcdf0f1)=>{this['fire']('addComment',_0xcdf0f1),_0x5b59a8['editor']['setData']('');}),_0x5b59a8['on']('cancel',()=>this['focus']()),_0x5b59a8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xd45d69;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x553835,_0x3e5978,_0x4b8375,_0x398040){super(_0x553835,_0x3e5978,_0x4b8375,_0x398040),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26b7b9=>_0x26b7b9&&_0x26b7b9[0x0]?_0x26b7b9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4b9f95,_0x4d473b)=>{let _0xd9239='';for(const _0x4412ad of _0x4b9f95)_0xd9239+='<p>'+ls(_0x4412ad['content'],_0x4412ad['color'])+'</p>';return _0x4d473b?_0xd9239:_0x3d4e52(_0xd9239,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x398040['SuggestionView'](_0x553835,_0x3e5978,{'formatDateTime':_0x398040['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 _0x302c2f=this['bindTemplate'],_0x45e71e=[this['suggestionView']];return this['commentsListView']&&_0x45e71e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x45e71e['push'](this['commentThreadInputView']),_0x45e71e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x302c2f['if']('isActive','ck-suggestion-wrapper--active'),_0x302c2f['to']('type',_0x230db0=>'ck-suggestion-'+_0x230db0),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':_0x302c2f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x45e71e};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4c7948{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x451b2a,_0x38f498,_0x4672db){super(_0x451b2a),this['_model']=_0x38f498,this['_config']=_0x4672db,this['set']('description',''),this['bind']('authoredAt')['to'](_0x38f498),this['acceptButton']=this['_createButton'](o(_0x451b2a,'Accept\x20suggestion'),_0x195107,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x451b2a,'Discard\x20suggestion'),_0x86389b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x13422e(_0x451b2a,_0x38f498['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5d8b9b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x23453b(),this['keystrokes']=new _0x1d910b(),this['focusCycler']=new _0x31bf2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5e3e3d=>_0x5e3e3d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x587601=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x587601['innerHTML']=this['description'],this['on']('change:description',(_0x567dfd,_0x20162a,_0x33874e)=>{_0x587601['innerHTML']=_0x33874e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x292af5=this['bindTemplate'],_0x5dd359=[{'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':_0x292af5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x292af5['to']('authoredAt',_0x4ac2dd=>this['_config']['formatDateTime'](_0x4ac2dd))}]}]},{'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']&&_0x5dd359['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':_0x5dd359}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4b4d9b,_0x166f58,_0x4255ee,_0x4d3b8b,_0x25bc9c){const _0x242f87=new _0x1fd216(this['locale']);return _0x242f87['set']({'label':_0x4b4d9b,'icon':_0x166f58,'tooltip':!0x0,'tooltipPosition':_0x25bc9c}),_0x242f87['extendTemplate']({'attributes':{'class':_0x4255ee}}),_0x242f87['on']('execute',()=>{this['fire'](_0x4d3b8b,this['_model']['id']);}),_0x242f87;}['_setupKeyboardNavigation'](){const _0x199751=this['element'];this['keystrokes']['listenTo'](_0x199751);for(const _0x361d6e of this['focusables'])this['focusTracker']['add'](_0x361d6e['element']),this['keystrokes']['listenTo'](_0x361d6e['element']);this['keystrokes']['set']('enter',(_0x50add8,_0x3c168d)=>{_0x199751===_0x50add8['target']&&(this['focusCycler']['focusFirst'](),_0x3c168d());}),this['keystrokes']['set']('esc',(_0x3eaff,_0x2b3ae5)=>{_0x199751!==_0x3eaff['target']&&(this['focus'](),_0x2b3ae5());});}}class u extends _0x15e299{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3758e8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f84b1){super(_0x4f84b1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x591bab=this['editor']['config'];_0x591bab['define']('trackChanges.SuggestionThreadView',fe),_0x591bab['define']('trackChanges.SuggestionView',we),_0x591bab['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x591bab['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5cc60f,_0x5d60e6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x381542,_0x2d5b00]of this['_handleControllerBuffer']){const _0x3343bc=this['_suggestionToController']['has'](_0x381542);_0x3343bc||_0x2d5b00?_0x3343bc&&_0x2d5b00&&this['_destroyController'](_0x381542):this['_initializeController'](_0x381542);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5cc60f,_0x5d60e6);}['init'](){const _0x12006e=this['editor'],_0x1979a4=_0x12006e['plugins']['get']('TrackChangesEditing'),_0x590226=_0x12006e['plugins']['get']('Annotations'),_0xcf7521=_0x12006e['plugins']['get']('EditorAnnotations'),_0x4b3d94=_0x12006e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xcf7521['addSourceCollector'](()=>{const _0x3c83fe=[];for(const [_0x52e918,_0x1a55ec]of Array['from'](this['_suggestionToController'])){const _0x17412b=_0x52e918['getAllAdjacentSuggestions'](),_0x5d23b4=[];for(const _0x3a7ac7 of _0x17412b){if(!_0x3a7ac7['isInContent'])continue;if(_0x3a7ac7['isMultiRange']){_0x5d23b4['push'](..._0x3a7ac7['getRanges']());continue;}const _0x3cddcc=_0x3a7ac7['getFirstRange']();if(_0x5d23b4['length']>0x0){const _0x178819=_0x5d23b4[0x0]['getJoined'](_0x3cddcc);if(_0x178819){_0x5d23b4[0x0]=_0x178819;continue;}}_0x5d23b4['push'](_0x3cddcc);}_0x3c83fe['push']([_0x1a55ec['view'],_0x5d23b4]);}return _0x3c83fe;}),this['listenTo'](_0x1979a4,'suggestionLoaded',(_0x436f14,_0x45cc38)=>{this['listenTo'](_0x45cc38,'change:previous',(_0x4468b6,_0xd5635b,_0x5cc6be,_0x5a52a8)=>{_0x45cc38['isInContent']&&(null==_0x5cc6be?(this['_updateController'](_0x5a52a8['head']),this['_handleSuggestionControllerDelayed'](_0x45cc38,!0x1)):(this['_updateController'](_0x5cc6be['head']),null==_0x5a52a8&&this['_handleSuggestionControllerDelayed'](_0x45cc38,!0x0)));}),null!==_0x45cc38['previous']?this['_updateController'](_0x45cc38['head']):this['_handleSuggestionControllerDelayed'](_0x45cc38,!0x1);}),this['listenTo'](_0x1979a4,'suggestionUnloaded',(_0x2d8cb6,_0x1ebbb6,_0x1eb80d)=>{this['stopListening'](_0x1ebbb6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ebbb6),this['_suggestionToController']['has'](_0x1ebbb6)&&this['_destroyController'](_0x1ebbb6),_0x1eb80d&&this['_updateController'](_0x1eb80d['head']);}),this['listenTo'](_0x1979a4,'suggestionChanged',(_0x2e00ba,_0x5171c2)=>{this['_updateController'](_0x5171c2);}),this['listenTo'](_0x590226,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b3d94,'addComment',(_0xd7b3ae,{threadId:_0x3328ed,isFromAdapter:_0x4d4106})=>{if(_0x4d4106||!_0x1979a4['hasSuggestion'](_0x3328ed))return;const _0x17c665=_0x1979a4['getSuggestion'](_0x3328ed);this['_suggestionToController']['get'](_0x17c665)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4acf54=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c8ad4;for(const _0x4361e6 in _0x4acf54){const _0x5d5893=_0x4361e6,_0x58d473=_0x4acf54[_0x5d5893];if('trackChangesLicenseKeyValid'==_0x58d473||'trackChangesLicenseKeyInvalid'==_0x58d473||'trackChangesLicenseKeyExpired'==_0x58d473||'trackChangesLicenseKeyDomainLimit'==_0x58d473||'trackChangesLicenseKeyNotAllowed'==_0x58d473||'trackChangesLicenseKeyEvaluationLimit'==_0x58d473||'trackChangesLicenseKeyTrialLimit'==_0x58d473||'trackChangesLicenseKeyUsageLimit'==_0x58d473){delete _0x4acf54[_0x5d5893],_0x1c8ad4=_0x58d473,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c8ad4&&_0x4acf54['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c8ad4&&_0x4acf54['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c8ad4&&_0x4acf54['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c8ad4&&_0x4acf54['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c8ad4&&_0x4acf54['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1c8ad4&&_0x4acf54['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c8ad4&&_0x4acf54['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3ebcfe){const _0x26db9e=this['_suggestionToController']['get'](_0x3ebcfe);if(!_0x26db9e)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x26db9e['view'])||null;}['getSuggestionForAnnotation'](_0x133482){const _0x2fb85e=this['_viewToController']['get'](_0x133482['innerView']);return _0x2fb85e?_0x2fb85e['model']:null;}['_refreshActiveMarkers'](){const _0x46952b=this['editor']['plugins']['get']('Annotations'),_0xc0e838=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26b044=Array['from'](_0x46952b['activeAnnotations'],_0x1204ea=>_0x1204ea['innerView'])['filter'](_0x7f8cdf=>this['_viewToController']['has'](_0x7f8cdf)),_0x14dbc6=[];for(const _0x594125 of _0x26b044){const _0x4761cb=this['_viewToController']['get'](_0x594125)['model']['getAllAdjacentSuggestions']();_0x14dbc6['push'](..._0x4761cb['reduce']((_0x1caf14,_0x339072)=>[..._0x1caf14,..._0x339072['getMarkerNames']()],[]));}_0xc0e838['activeMarkers']=_0x14dbc6;}['_addUIComponentsToFactory'](){const _0x1f407c=this['editor'],_0x7c4d12=_0x1f407c['locale'],_0x35d593=o(_0x7c4d12,'Track\x20changes'),_0x3d30e4=new _0x3959a1([{'type':'switchbutton','model':new _0x52387e({'withText':!0x0,'isToggleable':!0x0,'label':_0x35d593,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x52387e({'withText':!0x0,'label':o(_0x7c4d12,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x52387e({'withText':!0x0,'label':o(_0x7c4d12,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x52387e({'withText':!0x0,'label':o(_0x7c4d12,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x52387e({'withText':!0x0,'label':o(_0x7c4d12,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1f407c['plugins']['has']('TrackChangesPreview')&&_0x3d30e4['addMany']([{'type':'separator'},{'type':'button','model':new _0x52387e({'withText':!0x0,'label':o(_0x7c4d12,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xc32918 of _0x3d30e4)if(ke(_0xc32918)){const _0x3e25c0=_0x1f407c['commands']['get'](_0xc32918['model']['commandName']);_0xc32918['model']['bind']('isOn','isEnabled')['to'](_0x3e25c0,'value','isEnabled');}_0x1f407c['ui']['componentFactory']['add']('trackChanges',_0x4534b5=>this['_createToolbarButton'](_0x4534b5,_0x3d30e4,_0x35d593)),_0x1f407c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x141345=>this['_createMenuBarMenu'](_0x141345,_0x3d30e4,_0x35d593));}['_createToolbarButton'](_0x1931e8,_0x37dd65,_0x4a0a68){const _0x205160=_0x556dc5(_0x1931e8,_0x1c1059),_0x15b542=this['editor']['commands']['get']('trackChanges');_0x205160['buttonView']['set']({'tooltip':_0x4a0a68,'label':_0x4a0a68,'icon':_0xad23eb}),_0x205160['buttonView']['bind']('isOn')['to'](_0x15b542,'value'),_0x205160['buttonView']['on']('execute',()=>{_0x15b542['execute'](),this['editor']['editing']['view']['focus']();}),_0x2bc698(_0x205160,_0x37dd65,{'role':'menu'});const _0x316ca8=[];for(const _0x11fc10 of _0x37dd65)ke(_0x11fc10)&&_0x316ca8['push'](this['editor']['commands']['get'](_0x11fc10['model']['commandName']));const _0x411c30=_0x205160['buttonView'];return _0x411c30['actionView']['unbind']('isEnabled'),_0x411c30['arrowView']['unbind']('isEnabled'),_0x411c30['actionView']['bind']('isEnabled')['to'](_0x15b542,'isEnabled'),_0x411c30['arrowView']['bind']('isEnabled')['toMany'](_0x316ca8,'isEnabled',(..._0xe9478a)=>_0xe9478a['some'](_0x5a5375=>_0x5a5375)),_0x205160['on']('execute',_0x4fcf9a=>{this['editor']['execute'](_0x4fcf9a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x205160;}['_createMenuBarMenu'](_0x18f2d,_0x4ce1fd,_0x241ebd){const _0x10abe1=new _0x84f65a(_0x18f2d),_0x5b58b1=this['editor']['commands']['get']('trackChanges');_0x10abe1['buttonView']['set']({'label':_0x241ebd,'icon':_0xad23eb});const _0x120c7d=new _0x3cf4c9(_0x18f2d);for(const _0x5bd5a9 of _0x4ce1fd){if('separator'==_0x5bd5a9['type']){_0x120c7d['items']['add'](new _0x133a20(_0x18f2d));continue;}const _0x18abbb=new _0x3a7580(_0x18f2d,_0x10abe1),_0x2b1926=new _0x3c0e7e(_0x18f2d),_0x285a82=_0x5bd5a9['model'];_0x2b1926['bind'](...Object['keys'](_0x285a82))['to'](_0x285a82),_0x2b1926['delegate']('execute')['to'](_0x10abe1),_0x2b1926['on']('execute',()=>{this['editor']['execute'](_0x285a82['commandName']),this['editor']['editing']['view']['focus']();}),_0x18abbb['children']['add'](_0x2b1926),_0x120c7d['items']['add'](_0x18abbb);}return _0x10abe1['bind']('isEnabled')['to'](_0x5b58b1,'isEnabled'),_0x10abe1['panelView']['children']['add'](_0x120c7d),_0x10abe1;}['_initializeController'](_0x21f3df){const _0x38effe=this['editor'],_0x530f70=_0x38effe['config'],_0x5b6098=_0x38effe['plugins']['get']('Annotations'),_0x563d1=_0x38effe['plugins']['get']('CommentsRepository'),_0x5052d5=_0x38effe['plugins']['get']('EditorAnnotations'),_0x2c4d1e=_0x38effe['plugins']['get'](_0x3758e8)['me'],_0x3f41eb=_0x530f70['get']('trackChanges')['SuggestionThreadView'],_0x2e3e42=_0x530f70['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1741e4,CommentThreadInputView:_0x2716d4}=_0x38effe['plugins']['get']('CommentsUI');let _0x481ef6,_0x2ecdc5,_0x119721;this['_annotationViews']['has'](_0x21f3df['id'])?(_0x2ecdc5=this['_annotationViews']['get'](_0x21f3df['id']),_0x481ef6=_0x2ecdc5['mainView']):(_0x481ef6=new _0x3f41eb(_0x38effe['locale'],_0x21f3df,_0x2c4d1e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x530f70['get']('comments.editorConfig'),'licenseKey':_0x530f70['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x530f70['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x530f70['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x530f70['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x231ad6(_0x530f70['get']('locale'),_0x38effe['locale']),'CommentView':_0x530f70['get']('comments')['CommentView'],'CommentsListView':_0x1741e4,'CommentThreadInputView':_0x2716d4,'SuggestionView':_0x2e3e42}),_0x481ef6['suggestionView']['acceptButton']['on']('execute',()=>{_0x38effe['editing']['view']['focus']();}),_0x481ef6['suggestionView']['discardButton']['on']('execute',()=>{_0x38effe['editing']['view']['focus']();}),_0x2ecdc5=_0x5b6098['createAnnotationView'](this['editor']['locale'],_0x481ef6),_0x2ecdc5['bind']('isDirty')['to'](_0x481ef6,'isDirty'),_0x2ecdc5['bind']('length')['to'](_0x481ef6),_0x2ecdc5['bind']('type')['to'](_0x481ef6,'type',_0xf2d3a9=>'suggestion-'+_0xf2d3a9),_0x481ef6['on']('escape',()=>{_0x119721['fire']('escape');}),this['_annotationViews']['set'](_0x21f3df['id'],_0x2ecdc5));const _0x31ff3f=_0x563d1['createCommentThreadController'](_0x21f3df['commentThread'],_0x481ef6),_0x5748f1=new pe(_0x38effe,_0x21f3df,_0x481ef6,_0x31ff3f),_0x59484d=_0x21f3df['getAllAdjacentSuggestions']()['filter'](_0x51eeb0=>_0x51eeb0['isInContent']);_0x481ef6['descriptionParts']=_0x38effe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x59484d),this['_suggestionToController']['set'](_0x21f3df,_0x5748f1),this['_viewToController']['set'](_0x481ef6,_0x5748f1);const _0x270169=()=>{const _0x5e33e6=[],_0xceaa6a=_0x21f3df['getAllAdjacentSuggestions']()['filter'](_0x2597bf=>_0x2597bf['isInContent']);for(const _0x4f87ca of _0xceaa6a)_0x5e33e6['push'](..._0x4f87ca['getMarkers']());return _0xf1e1d6(_0x38effe['editing'],_0x5e33e6);};_0x119721=_0x5b6098['createAnnotation']({'view':_0x2ecdc5,'target':_0x270169,'type':()=>'suggestion-'+_0x5748f1['view']['type'],'isVisible':!!_0x270169()}),_0x563d1['_bindAnnotationToEditors'](_0x481ef6,_0x119721),_0x5b6098['add'](_0x119721),_0x5052d5['registerAnnotation'](_0x119721);}['_destroyController'](_0x311241){const _0x310532=this['editor']['plugins']['get']('CommentsRepository'),_0x1bd332=this['editor']['plugins']['get']('Annotations'),_0x4cd555=this['_suggestionToController']['get'](_0x311241),_0x216bba=_0x4cd555['view'],_0x55c710=_0x1bd332['getByInnerView'](_0x216bba);_0x310532['_unbindEditors'](_0x216bba),_0x55c710&&_0x1bd332['remove'](_0x55c710),this['_suggestionToController']['delete'](_0x311241),this['_viewToController']['delete'](_0x216bba),_0x4cd555['destroy']();}['_updateController'](_0x47c014){if(!_0x47c014['isInContent']||!this['_suggestionToController']['has'](_0x47c014))return;const _0x592472=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26e7b2=this['_suggestionToController']['get'](_0x47c014),_0x42312c=_0x47c014['getAllAdjacentSuggestions']();_0x26e7b2['view']['descriptionParts']=_0x592472['descriptionFactory']['getDescriptions'](_0x42312c);}['destroy'](){for(const _0x8bf8e5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x8bf8e5);for(const _0x59d9b3 of this['_annotationViews']['values']())_0x59d9b3['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xb9cd80){return'model'in _0xb9cd80;}class Fe extends _0x15e299{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x13ebcf){this['editor']['plugins']['get'](d)['adapter']=_0x13ebcf;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x27f4de){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x27f4de);}['getSuggestions']({skipNotAttached:_0x1d9eda=!0x1,toJSON:_0x3e853e=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x1d9eda,'toJSON':_0x3e853e});}['getSuggestion'](_0x186bdc){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x186bdc);}}const p=['Pagination'];class re extends _0x15e299{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x42c752=this['editor'];if(_0x42c752['config']['define']('trackChangesData.editorCreator',_0x92bf3b=>{const _0x254b90=_0x42c752['model']['document']['getRootNames']()['reduce']((_0x592135,_0x58486c)=>(_0x592135[_0x58486c]='',_0x592135),{});return _0x42c752['constructor']['create'](_0x254b90,_0x92bf3b);}),'function'!=typeof _0x42c752['config']['get']('trackChangesData')['editorCreator'])throw new _0x172784('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x29f392){return P(this['editor'],!0x0,_0x29f392);}['getDataWithDiscardedSuggestions'](_0x2634d1){return P(this['editor'],!0x1,_0x2634d1);}}class Ge extends _0x15e299{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a7a37){function _0x541a5b(_0x49fbb6){return _0x49fbb6['map'](_0x46ff06=>String['fromCharCode'](_0x46ff06))['join']('');}super(_0x4a7a37),this['result']='end',_0x4a7a37[_0x541a5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x541a5b([0x76,0x69,0x65,0x77])][_0x541a5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x541a5b([0x61,0x75,0x74,0x6f]),_0x4a7a37[_0x541a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x541a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x541a5b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x541a5b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x541a5b([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 He(_0x481bfa){return void 0x0!==_0x481bfa['getRootsAttributes'];}async function P(_0x17aa39,_0x11bbea,_0xdd790e){const _0x2ca5c6=_0x48cdbc(_0x17aa39,p);_0x2ca5c6['plugins']['push'](d,Ge),_0x2ca5c6['rootsAttributes']=He(_0x17aa39)?_0x17aa39['getRootsAttributes']():void 0x0;const _0x2acab5=document['createDocumentFragment'](),_0x5d07a8=_0x17aa39['config']['get']('trackChangesData')['editorCreator'],_0x3bd74b=await _0x5d07a8(_0x2ca5c6,()=>function(_0x3aa7c7){const _0x330f40=document['createElement']('div');return _0x3aa7c7['appendChild'](_0x330f40),_0x330f40;}(_0x2acab5));!function(_0x54d1c1,_0x47100f){const _0x1ea1ba=_0x54d1c1['model']['document']['getRootNames']()['reduce']((_0x47c24a,_0x326bd0)=>(_0x47c24a[_0x326bd0]=_0x54d1c1['data']['get']({'rootName':_0x326bd0}),_0x47c24a),{}),_0x1dd19f=_0x54d1c1['plugins']['get']('Users')['users']['map'](_0x5c52b3=>({'id':_0x5c52b3['id'],'name':_0x5c52b3['name']})),_0x4fd4aa=_0x54d1c1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2fda66=_0x54d1c1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32da1d=_0x47100f['plugins']['get']('Users'),_0x2a4562=_0x47100f['plugins']['get']('TrackChangesEditing'),_0x4d5e73=_0x47100f['plugins']['get']('CommentsRepository');for(const _0x5114b0 of _0x4d5e73['getCommentThreads']())_0x5114b0['remove']();for(const _0x197a09 of _0x1dd19f)_0x32da1d['getUser'](_0x197a09['id'])||_0x32da1d['addUser'](_0x197a09);_0x32da1d['me']||_0x32da1d['useAnonymousUser']();for(const _0x4c7ae6 of _0x2fda66)_0x4d5e73['addCommentThread'](_0x4c7ae6);for(const _0x249056 of _0x4fd4aa)_0x2a4562['addSuggestionData'](_0x249056);_0x47100f['data']['set'](_0x1ea1ba);}(_0x17aa39,_0x3bd74b),_0x3bd74b['execute'](_0x11bbea?'acceptAllSuggestions':'discardAllSuggestions');const _0x357709=He(_0x3bd74b)?_0x3bd74b['getFullData'](_0xdd790e):_0x3bd74b['data']['get'](_0xdd790e);return await _0x3bd74b['destroy'](),_0x357709;}class Me extends _0x4c7948{['options'];constructor(_0x56dcde,_0x50a27a){super(_0x56dcde),this['options']=_0x50a27a,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'](_0x4cb6ce,_0x5ed6cd){if(!this['element'])return;const _0x52966c=[];for(const [_0x3e4a7a,_0x365742]of _0x4cb6ce){const _0x507eae=document['createElement']('div');_0x507eae['setAttribute']('data-ck-root-name',_0x3e4a7a),_0x507eae['className']=_0x365742['classes']+'\x20ck-track-changes-preview__root-container',_0x507eae['innerHTML']=_0x365742['content'],_0x52966c['push'](_0x507eae);}_0x5ed6cd(this['element'],_0x52966c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x4a1f70{constructor(_0x5ad4d0){super(_0x5ad4d0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x345ef8=this['editor'],_0x4be5c0=_0x345ef8['locale'],_0x53d28b=_0x345ef8['plugins']['get']('Dialog');let _0x3af6ed;const _0x3d199a=function(_0x53aad0){const _0x2fe21e={};if('editables'in _0x53aad0['ui']['view']){for(const [_0x1db65e,_0x41e7fe]of Object['entries'](_0x53aad0['ui']['view']['editables']))_0x2fe21e[_0x1db65e]=_0x41e7fe['element'];}else _0x2fe21e[_0x53aad0['model']['document']['getRootNames']()[0x0]]=_0x53aad0['ui']['view']['editable']['element'];return _0x2fe21e;}(_0x345ef8),_0x2cc35a=function(_0x5d8307){let _0x4d4c25=0x0;for(const _0xa9fa7a of Object['values'](_0x5d8307))_0x4d4c25=Math['max'](_0x4d4c25,_0xa9fa7a['getBoundingClientRect']()['width']);let _0x49831f=0x0;for(const _0x28cecf of Object['values'](_0x5d8307))_0x49831f+=_0x28cecf['getBoundingClientRect']()['height'];const _0x779d2e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x8ec077=Math['min'](_0x49831f,_0x779d2e);return{'width':_0x4d4c25,'height':_0x8ec077};}(_0x3d199a);_0x53d28b['show']({'id':'finalContentPreview','title':o(_0x4be5c0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x4be5c0,{'dialogRects':_0x2cc35a}),'onHide':()=>{_0x3af6ed['detachFromDom']();},'onShow':()=>{_0x345ef8['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4b7a4e=>{const _0x2dc6e6=this['_standarizeRootsData'](_0x4b7a4e,_0x345ef8,_0x3d199a);_0x53d28b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2dc6e6,_0x345ef8['config']['get']('trackChanges.preview.renderFunction'));}),_0x3af6ed=new _0x277772(_0x4be5c0,[_0x53d28b['view']]),_0x3af6ed['attachToDom'](),_0x3af6ed['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x345ef8['once']('destroy',()=>{_0x3af6ed['detachFromDom']();});const _0x38a815=_0x53d28b['view']['headerView']['class'];_0x53d28b['view']['headerView']['class']=_0x38a815?_0x38a815+'\x20ck-reset_all':'ck-reset_all',_0x53d28b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x53d28b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x22d386=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x397dd4=_0x22d386['previewMode'],_0x485fa0={};if('$labels'===_0x397dd4){for(const _0x4be81d of _0x22d386['getMergeFieldsIds']())_0x485fa0[_0x4be81d]=_0x22d386['getLabel'](_0x4be81d)||_0x4be81d;}else{const _0x3c270b='$defaultValues'===_0x397dd4?_0x22d386['getDefaultValues']():_0x22d386['getDataSetValues'](_0x397dd4,!0x0);for(const _0x3418fe of Object['entries'](_0x3c270b)){const [_0x99b5c6,_0x33b3f1]=_0x3418fe;_0x485fa0[_0x99b5c6]=null!==_0x33b3f1?_0x33b3f1:_0x22d386['getLabel'](_0x99b5c6)||_0x99b5c6;}}return{'mergeFieldsData':_0x485fa0};}['_standarizeRootsData'](_0x5883f2,_0x248bc3,_0x378892){let _0x5aa99a;if('string'==typeof _0x5883f2){const _0x2e64a3=_0x248bc3['model']['document']['getRootNames']()[0x0];_0x5aa99a={[_0x2e64a3]:_0x5883f2};}else _0x5aa99a=_0x5883f2;const _0x3939dc=this['_fixMediaEmbeds'](_0x5aa99a,_0x248bc3),_0xeb8b1b=function(_0x344773,_0x9155d3){for(const [_0x4bd2db,_0x51d2c0]of _0x344773)_0x51d2c0['classes']=_0x9155d3[_0x4bd2db]['classList']['value']['replace']('ck-focused','');return _0x344773;}(this['_sortRoots'](_0x248bc3)['reduce']((_0x40d99c,_0x58130c)=>(_0x40d99c['push']([_0x58130c,{'content':_0x3939dc[_0x58130c],'classes':''}]),_0x40d99c),[]),_0x378892);return _0xeb8b1b;}['_fixMediaEmbeds'](_0x11bad9,_0xc1a95d){if(!_0xc1a95d['plugins']['has']('MediaEmbedEditing'))return _0x11bad9;const _0x4859bc=_0xc1a95d['plugins']['get']('MediaEmbedEditing');for(const [_0x495fd7,_0x1235a4]of Object['entries'](_0x11bad9)){const _0x3269be=document['createElement']('div');_0x3269be['innerHTML']=_0x1235a4,(_0x3269be['querySelectorAll']('figure.media')['forEach'](_0x3a4ec8=>{const _0x206ab4=_0x3a4ec8['querySelector']('oembed');if(_0x206ab4){const _0x3d0f04=_0x206ab4['getAttribute']('url');if(_0x3d0f04){const _0x39f5e8=_0x4859bc['registry']['getMediaViewElement'](new _0x3f64d3(_0xc1a95d['editing']['view']['document']),_0x3d0f04,{'elementName':'','renderForEditingView':!0x0}),_0x158920=document['createElement']('div');_0x158920['classList']['add']('ck-media__wrapper'),_0x39f5e8['render'](_0x158920,_0xc1a95d['editing']['view']['domConverter']),_0x206ab4['replaceWith'](_0x158920);}}}),_0x11bad9[_0x495fd7]=_0x3269be['innerHTML']);}return _0x11bad9;}['_sortRoots'](_0x445884){if(!function(_0x15a706){return void 0x0!==_0x15a706['getRootsAttributes'];}(_0x445884))return _0x445884['model']['document']['getRootNames']();const _0x39362e=[],_0x515546=new Map();for(const _0x5b8c2d of _0x445884['model']['document']['getRootNames']()){const _0x18e447=_0x445884['editing']['view']['getDomRoot'](_0x5b8c2d)['getClientRects']()['item'](0x0);_0x39362e['push'](_0x5b8c2d),_0x515546['set'](_0x5b8c2d,_0x18e447);}return _0x39362e['sort']((_0x30384a,_0x400fad)=>{const _0x3c0ce7=_0x515546['get'](_0x30384a),_0x1f66e2=_0x515546['get'](_0x400fad);return _0x3c0ce7['y']-_0x1f66e2['y']||_0x3c0ce7['x']-_0x1f66e2['x'];}),_0x39362e;}}class $e extends _0x15e299{static get['requires'](){return[re,_0x7dec1f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e0114){super(_0x1e0114),_0x1e0114['commands']['add']('previewFinalContent',new te(this['editor'])),_0x1e0114['config']['define']('trackChanges.preview.renderFunction',(_0x542f43,_0x18d424)=>{for(const _0x313f02 of _0x18d424)_0x542f43['appendChild'](_0x313f02);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x3fc38b,Plugin as _0x211f0d,PendingActions as _0x3129cd}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x290536,ObservableMixin as _0x423c74,uid as _0x36dab6,priorities as _0x5058de,insertToPriorityArray as _0x24d99f,toArray as _0x2b2790,logWarning as _0x3933fe,getEnvKeystrokeText as _0x27b074,FocusTracker as _0x1de838,KeystrokeHandler as _0x5f0533,Collection as _0xb4cd91}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x14e0e8,IconCancel as _0x193410,IconTrackChanges as _0xa958bd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x60a31e,View as _0x3277a5,ViewCollection as _0x333216,FocusCycler as _0x5264a2,UIModel as _0x14aeb8,createDropdown as _0x47814b,SplitButtonView as _0x5c7c3f,addListToDropdown as _0x43e3fa,MenuBarMenuView as _0x45df19,MenuBarMenuListView as _0x38afaf,ListSeparatorView as _0x5c88a2,MenuBarMenuListItemView as _0x43567e,MenuBarMenuListItemButtonView as _0x3f43b2,BodyCollection as _0x2ecf44,Dialog as _0x5b419d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x429a0e,hashObject as _0x439450,surroundingMarkersDetector as _0x18d3d2,FOCUS_ANNOTATION_KEYSTROKE as _0x1a067e,AriaDescriptionView as _0x2aeb95,setupThreadKeyboardNavigation as _0x36fbf2,trimHtml as _0x577213,UserView as _0x5b3c09,LateFocusButtonView as _0xb2ef6a,getDateTimeFormatter as _0x1ee6dc,getAllMarkersDomElementsSorted as _0x47d81f,sanitizeEditorConfig as _0x5d28dd}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x127af0,ModelLiveRange as _0x2e3e00,ModelLivePosition as _0x51972a,ViewDowncastWriter as _0x450ea9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3f2d83,toWidget as _0x4993fe}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x12f023,set as _0x551c52,isEqual as _0x45b95d,unset as _0x47960b,omit as Ut}from'es-toolkit/compat';import{Delete as _0x33c177,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x410072}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1edb9a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x3fc38b{['_enabledCommands'];constructor(_0x1a459b,_0x1d61ce){super(_0x1a459b),this['_enabledCommands']=_0x1d61ce,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 _0x336f03 of this['editor']['commands']['commands']())_0x336f03['affectsData']&&!this['_enabledCommands']['has'](_0x336f03)&&_0x336f03['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x483357 of this['editor']['commands']['commands']())_0x483357['affectsData']&&!this['_enabledCommands']['has'](_0x483357)&&_0x483357['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x3fc38b{['_suggestions'];constructor(_0x21d565,_0x5391a6){super(_0x21d565),this['_suggestions']=_0x5391a6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x439b9c){const _0x89a5ec=this['_suggestions']['get'](_0x439b9c);if(!_0x89a5ec)throw new _0x290536('track-changes-accept-suggestion-not-found',this);const _0x1b8b61=_0x89a5ec['getRanges']();this['editor']['model']['canEditAt'](_0x1b8b61)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x89a5ec);}}class $ extends _0x3fc38b{['_suggestions'];constructor(_0x3971f5,_0x86f902){super(_0x3971f5),this['_suggestions']=_0x86f902,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3e3c5f){const _0x3fd63c=this['_suggestions']['get'](_0x3e3c5f);if(!_0x3fd63c)throw new _0x290536('track-changes-discard-suggestion-not-found',this);const _0x40db92=_0x3fd63c['getRanges']();this['editor']['model']['canEditAt'](_0x40db92)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3fd63c);}}function ls(_0x4a64e7,_0x4aa8cb){let _0x22cc27='';return _0x22cc27+=_0x4a64e7['split']('*')['map']((_0x176781,_0x59a81c)=>_0x59a81c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x176781)+'</span>':Zt(_0x176781))['join'](''),_0x4aa8cb&&(_0x22cc27+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4aa8cb['value']+'\x22\x20title=\x22'+_0x4aa8cb['title']+'\x22></span>'),_0x22cc27;}function Zt(_0x4e18dd){const _0x315534=document['createElement']('span');return _0x315534['innerText']=_0x4e18dd,_0x315534['innerHTML'];}function ts(_0x415631){return _0x415631['sort']((_0x2eba14,_0x4d9520)=>'attribute'===_0x2eba14['type']&&'attribute'!==_0x4d9520['type']?-0x1:'attribute'!==_0x2eba14['type']&&'attribute'===_0x4d9520['type']?0x1:'deletion'==_0x2eba14['type']&&'deletion'!=_0x4d9520['type']?-0x1:'deletion'!=_0x2eba14['type']&&'deletion'==_0x4d9520['type']?0x1:0x0);}function to(_0x56831a,_0x1c302e){let _0x393534,_0x2f4f31=0x0;const _0x155ff8=[],_0x127b96=_0x1c302e['schema'];for(;_0x2f4f31<_0x56831a['length'];){const _0x22cad6=_0x56831a[_0x2f4f31],_0x1c6900=_0x56831a[_0x2f4f31+0x1];_0x393534||(_0x393534=_0x1c302e['createPositionBefore'](_0x22cad6)),tn(_0x1c302e,_0x22cad6,_0x1c6900)||(_0x155ff8['push'](_0x1c302e['createRange'](_0x393534,_0x127b96['isObject'](_0x22cad6)?_0x1c302e['createPositionAfter'](_0x22cad6):_0x1c302e['createPositionAt'](_0x22cad6,'end'))),_0x393534=null),_0x2f4f31++;}return _0x155ff8;}function tn(_0x29efeb,_0x2c45d6,_0x1431f9){if(!_0x1431f9)return!0x1;const _0x5d687c=_0x29efeb['createPositionAfter'](_0x2c45d6),_0x516a7f=_0x29efeb['createPositionBefore'](_0x1431f9);return _0x5d687c['isTouching'](_0x516a7f);}function rs(_0x17003a,_0x457ece,_0x5a6af4){for(;_0x5a6af4['length'];){const _0xbc89b4=_0x5a6af4['splice'](0x0,0x64);_0x17003a['change'](()=>{for(const _0x6e6ba6 of _0xbc89b4)_0x6e6ba6['isInContent']&&_0x457ece['execute'](_0x6e6ba6['id']);});}}class M extends _0x3fc38b{['_command'];['_suggestions'];constructor(_0x226641,_0x3ef394,_0x5d8e84){super(_0x226641),this['_command']=_0x3ef394,this['_suggestions']=_0x5d8e84,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x521617=Array['from'](this['_suggestions']['values']())['some'](_0x5a1118=>_0x5a1118['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x521617;}['execute'](){const _0x35842e=ts(Array['from'](this['_suggestions']['values']()));for(const _0x102446 of _0x35842e){const _0x1ccdd2=_0x102446['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1ccdd2))return;}rs(this['editor']['model'],this['_command'],_0x35842e);}}class B extends _0x3fc38b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5b41f6,_0x1c142d,_0x11c496){super(_0x5b41f6),this['_command']=_0x1c142d,this['_suggestions']=_0x11c496,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x51acfe=this['editor']['model']['document']['selection'],_0x357cde=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x503ccc,_0x29efe2){const _0x4e3213=Array['from'](_0x503ccc['getRanges']()),_0x4374b3=new Set();for(const _0x2dac5e of _0x29efe2)if(_0x2dac5e['isInContent']){for(const _0x40c94e of _0x4e3213)for(const _0xa04892 of _0x2dac5e['getRanges']())(_0x40c94e['isIntersecting'](_0xa04892)||_0x503ccc['isCollapsed']&&!_0x2dac5e['isMultiRange']&&_0x2dac5e['next']&&_0xa04892['end']['isTouching'](_0x40c94e['start']))&&_0x4374b3['add'](_0x2dac5e);}return _0x4374b3;}(_0x51acfe,_0x357cde),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x566f79=ts(Array['from'](this['_selectedSuggestions']));for(const _0x61f0c of _0x566f79){const _0x238641=_0x61f0c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x238641))return;}rs(this['editor']['model'],this['_command'],_0x566f79);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x423c74(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c6386,_0xcd97ff){super(),this['id']=_0xcd97ff['id'],this['type']=_0xcd97ff['type'],this['subType']=_0xcd97ff['subType']||null,this['author']=_0xcd97ff['author'],this['creator']=_0xcd97ff['creator']||_0xcd97ff['author'],this['isExternal']=Boolean(_0xcd97ff['attributes']&&_0xcd97ff['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xcd97ff['originalSuggestionId']||null,this['_model']=_0x4c6386,this['_onAccept']=_0xcd97ff['onAccept'],this['_onDiscard']=_0xcd97ff['onDiscard'],this['_onAttributesChange']=_0xcd97ff['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xcd97ff['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 _0x3c37c2=this;for(;_0x3c37c2['previous'];)_0x3c37c2=_0x3c37c2['previous'];return _0x3c37c2;}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'](_0x1ef667){this['_markerNames']['add'](_0x1ef667);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x530742=>this['_model']['markers']['get'](_0x530742))['filter'](_0x3af82a=>_0x3af82a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4d2c89=>{for(const _0x1f1224 of this['getMarkers']())_0x4d2c89['removeMarker'](_0x1f1224);}),this['_markerNames']['clear']();}['removeMarker'](_0x30c4a2){this['_model']['change'](_0x566fef=>{_0x566fef['removeMarker'](_0x30c4a2);}),this['_markerNames']['delete'](_0x30c4a2);}['addRange'](_0x913e32){const _0x48b91b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x48b91b),this['_model']['change'](_0x8892c=>{_0x8892c['addMarker'](_0x48b91b,{'range':_0x913e32,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4cb66c){for(const _0x2fc6b2 of this['getRanges']())if(_0x2fc6b2['isIntersecting'](_0x4cb66c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1aa8a1=>_0x1aa8a1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x48158a,_0x13bd89)=>[..._0x48158a,..._0x13bd89['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x13dad1=this['getRanges']();if(0x1!=_0x13dad1['length'])return null;const _0x25c23d=_0x13dad1[0x0],_0x3e9bdf=_0x25c23d['start']['nodeAfter'],_0x3259e5=_0x25c23d['end']['nodeBefore'];return _0x3e9bdf instanceof _0x127af0?_0x3e9bdf!=_0x3259e5?null:_0x3e9bdf: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 _0x1454b2=[];let _0x221e32=this['head'];for(;_0x221e32;)_0x1454b2['push'](_0x221e32),_0x221e32=_0x221e32['next'];return _0x1454b2;}['setAttribute'](_0x216d6a,_0x4c7865){const _0x25ec85=_0x12f023(this['attributes']);_0x551c52(_0x25ec85,_0x216d6a,_0x4c7865),_0x45b95d(_0x25ec85,this['attributes'])||(this['attributes']=_0x25ec85,this['_onAttributesChange'](_0x25ec85));}['removeAttribute'](_0x40011b){const _0xbc1cbf=_0x12f023(this['attributes']);_0x47960b(_0xbc1cbf,_0x40011b),_0x45b95d(_0xbc1cbf,this['attributes'])||(this['attributes']=_0xbc1cbf,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 _0x36dab6()['substr'](0x1,0x5);}}function o(_0x2ce306,_0x3bfd13,_0x40f9ce){const _0x4c5727=_0x2ce306['t'],t=_0x2ce306['t'];switch(_0x3bfd13){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',_0x40f9ce);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x40f9ce);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x40f9ce);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x40f9ce);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x40f9ce);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',_0x40f9ce);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x40f9ce);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',_0x40f9ce);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x40f9ce);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x40f9ce);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x40f9ce);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x40f9ce);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x40f9ce);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x40f9ce);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x40f9ce);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x40f9ce);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x40f9ce);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x40f9ce);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x40f9ce);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x40f9ce);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x40f9ce);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x40f9ce);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x40f9ce);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x40f9ce);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x40f9ce);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'},_0x40f9ce);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x40f9ce);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x40f9ce);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x40f9ce);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x40f9ce);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x40f9ce);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x40f9ce);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x40f9ce);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'},_0x40f9ce);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x40f9ce);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x40f9ce);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x40f9ce);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x40f9ce);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x40f9ce);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x40f9ce);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'},_0x40f9ce);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x40f9ce);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x40f9ce);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'},_0x40f9ce);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x40f9ce);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'},_0x40f9ce);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x40f9ce);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x40f9ce);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'},_0x40f9ce);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x40f9ce);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 _0x4c5727({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x40f9ce);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4c5727({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x40f9ce);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x40f9ce);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'},_0x40f9ce);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'},_0x40f9ce);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'},_0x40f9ce);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3bfd13;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x23b834,_0x212319){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x23b834,this['_locale']=_0x212319;}['getDescriptions'](_0x1b5efe){const _0x4e23c1=[],_0x2afb38=new Set(),_0x228763=new Set();for(let _0x1e2da6=0x0;_0x1e2da6<_0x1b5efe['length'];_0x1e2da6++){const _0x1675f9=_0x1b5efe[_0x1e2da6];if(!_0x1675f9['isInContent'])continue;const _0x57e90e=this['_handleCustomCallbackDescription'](_0x1675f9);if(_0x57e90e){if(null!=_0x1675f9['subType']){if(_0x2afb38['has'](_0x1675f9['subType']))continue;_0x2afb38['add'](_0x1675f9['subType']);}_0x4e23c1['push'](_0x57e90e);}else{if('attribute'==_0x1675f9['type']){const _0x4d4c5d=_0x1675f9['data']['key'];if(_0x228763['has'](_0x4d4c5d))continue;_0x228763['add'](_0x1675f9['data']['key']),_0x4d4c5d==m?this['_handleRenameSuggestionDescription'](_0x4e23c1,_0x1675f9):this['_handleAttributeSuggestionDescription'](_0x4e23c1,_0x1675f9);continue;}'insertion'!=_0x1675f9['type']&&'deletion'!=_0x1675f9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4e23c1,_0x1675f9,_0x1b5efe[_0x1e2da6+0x1]);}}return this['_resolveDescriptionItems'](_0x4e23c1);}['registerDescriptionCallback'](_0x362099){this['_customCallbacks']['push'](_0x362099);}['registerElementLabel'](_0x7c8154,_0x52bae7,_0x54a208=_0x5058de['normal']){'function'==typeof _0x7c8154?_0x24d99f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x7c8154,'label':_0x52bae7,'priority':_0x54a208}):this['_itemLabels']['set'](_0x7c8154,_0x52bae7);}['registerAttributeLabel'](_0x56d66a,_0x3fe52a){this['_attributeLabels']['set'](_0x56d66a,_0x3fe52a);}['getItemLabel'](_0x194715,_0x8a0a8a=0x1){let _0x1af874;for(const _0x1ac241 of this['_itemLabelsCallbacks'])if(_0x1ac241['matchingCallback'](_0x194715)){_0x1af874=_0x1ac241['label'];break;}return _0x1af874||(_0x1af874=this['_itemLabels']['get'](_0x194715['name'])),_0x1af874?_0x1af874(_0x8a0a8a):0x1!==_0x8a0a8a?_0x8a0a8a+'\x20'+_0x194715['name']+'s':''+_0x194715['name'];}['_addDescriptionItems'](_0xed5f4,_0xd61615){const _0x4dbafb=_0xd61615['getFirstRange']()['getWalker'](),_0xfcb876='insertion'==_0xd61615['type']?'add':'remove';for(const _0x16744b of _0x4dbafb){const _0x5da27e=_0x16744b['item'],_0x1a1e56=_0xed5f4[_0xed5f4['length']-0x1];if(_0x5da27e['is']('$textProxy'))_0x1a1e56&&_0x1a1e56['type']['indexOf']('Container')>-0x1&&_0xed5f4['pop'](),_0x1a1e56&&'text'==_0x1a1e56['type']?_0x1a1e56[_0xfcb876]+=_0x5da27e['data']:_0xed5f4['push']({'type':'text','add':'add'==_0xfcb876?_0x5da27e['data']:'','remove':'remove'==_0xfcb876?_0x5da27e['data']:''});else{if(this['_schema']['isObject'](_0x5da27e)){const _0x56b4b6=_0x5da27e;if(_0x1a1e56&&_0x1a1e56['type']['indexOf']('Container')>-0x1&&_0xed5f4['pop'](),'elementEnd'==_0x16744b['type'])continue;_0x1a1e56&&_0x1a1e56['type']==_0xfcb876+'Object'&&_0x1a1e56['element']['name']==_0x56b4b6['name']?_0x1a1e56['quantity']++:_0xed5f4['push']({'type':_0xfcb876+'Object','element':_0x56b4b6,'quantity':0x1}),_0x4dbafb['skip'](_0x1b00b9=>!('elementEnd'==_0x1b00b9['type']&&_0x1b00b9['item']==_0x5da27e));}else{if(this['_schema']['checkChild'](_0x5da27e,'$text')||_0x5da27e['is']('element','softBreak')){const _0x2f8ef0=_0x5da27e;if('add'==_0xfcb876&&'elementStart'==_0x16744b['type']||'remove'==_0xfcb876&&'elementEnd'==_0x16744b['type'])continue;if(_0x1a1e56&&-0x1==_0x1a1e56['type']['indexOf']('Container')){'text'==_0x1a1e56['type']&&(_0x1a1e56[_0xfcb876]+='\x0a');continue;}let _0x55a41b;if(_0x55a41b='add'==_0xfcb876?_0x2f8ef0['nextSibling']&&!this['_schema']['isObject'](_0x2f8ef0['nextSibling'])?_0x2f8ef0['nextSibling']:null:_0x2f8ef0['previousSibling']&&!this['_schema']['isObject'](_0x2f8ef0['previousSibling'])?_0x2f8ef0['previousSibling']:null,_0x2f8ef0['isEmpty']||_0x55a41b&&_0x55a41b['isEmpty']){const _0x1366fa=_0x55a41b&&_0x55a41b['isEmpty']?_0x55a41b:_0x2f8ef0;_0x1a1e56&&_0x1a1e56['type']==_0xfcb876+'EmptyContainer'&&_0x1a1e56['element']['name']==_0x1366fa['name']?_0x1a1e56['quantity']++:_0xed5f4['push']({'type':_0xfcb876+'EmptyContainer','element':_0x1366fa,'quantity':0x1});}else _0xed5f4['push']({'type':_0xfcb876+'Container','element':_0x2f8ef0});}}}}}['_resolveDescriptionItems'](_0xdd3d73){const _0x10643a=this['_locale'],_0x589970=[],_0x244bd3=[],_0x5c7fe3=[];for(const _0x45a4b1 of _0xdd3d73)switch(_0x45a4b1['type']){case'text':if(_0x45a4b1['add']=_0x45a4b1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45a4b1['remove']=_0x45a4b1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45a4b1['add']&&''!=_0x45a4b1['remove']){_0x589970['push']({'type':'replace','content':o(_0x10643a,'REPLACE_TEXT',['\x22'+_0x45a4b1['remove']+'\x22','\x22'+_0x45a4b1['add']+'\x22'])});continue;}if(null!=_0x45a4b1['add']['match'](/^ +$/)){_0x589970['push']({'type':'insertion','content':o(_0x10643a,'*Insert:*\x20%0',o(_0x10643a,'ELEMENT_SPACE',_0x45a4b1['add']['length']))});continue;}if(null!=_0x45a4b1['remove']['match'](/^ +$/)){_0x589970['push']({'type':'deletion','content':o(_0x10643a,'*Remove:*\x20%0',o(_0x10643a,'ELEMENT_SPACE',_0x45a4b1['remove']['length']))});continue;}if(''!=_0x45a4b1['add']){_0x589970['push']({'type':'insertion','content':o(_0x10643a,'*Insert:*\x20%0','\x22'+_0x45a4b1['add']+'\x22')});continue;}_0x589970['push']({'type':'deletion','content':o(_0x10643a,'*Remove:*\x20%0','\x22'+_0x45a4b1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x589970['push']({'type':'insertion','content':o(_0x10643a,'*Insert:*\x20%0',this['getItemLabel'](_0x45a4b1['element'],_0x45a4b1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x589970['push']({'type':'deletion','content':o(_0x10643a,'*Remove:*\x20%0',this['getItemLabel'](_0x45a4b1['element'],_0x45a4b1['quantity']))});continue;case'addContainer':_0x589970['push']({'type':'insertion','content':o(_0x10643a,'*Split:*\x20%0',this['getItemLabel'](_0x45a4b1['element'],_0x45a4b1['quantity']))});continue;case'removeContainer':_0x589970['push']({'type':'deletion','content':o(_0x10643a,'*Merge:*\x20%0',this['getItemLabel'](_0x45a4b1['element'],_0x45a4b1['quantity']))});continue;case'addFormat':_0x244bd3['push'](_0x45a4b1['key']);continue;case'removeFormat':_0x5c7fe3['push'](_0x45a4b1['key']);continue;default:_0x589970['push'](_0x45a4b1);}if(_0x244bd3['length']){const _0x17290e=_0x244bd3['map'](_0x33df36=>this['_attributeLabels']['has'](_0x33df36)?this['_attributeLabels']['get'](_0x33df36):_0x33df36)['join'](',\x20');_0x589970['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x17290e)});}if(_0x5c7fe3['length']){const _0x57b801=_0x5c7fe3['map'](_0x3b7205=>this['_attributeLabels']['has'](_0x3b7205)?this['_attributeLabels']['get'](_0x3b7205):_0x3b7205)['join'](',\x20');_0x589970['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x57b801)});}return _0x589970;}['_handleCustomCallbackDescription'](_0x5acfdd){for(const _0x5ef8c1 of this['_customCallbacks']){const _0x143a69=_0x5ef8c1(_0x5acfdd);if(_0x143a69&&'type'in _0x143a69)return _0x143a69;}}['_handleAttributeSuggestionDescription'](_0x2b7eec,_0x3c7d29){const _0x1274f7=_0x3c7d29['data'],_0x3931f5=void 0x0===_0x1274f7['newValue']?'removeFormat':'addFormat';_0x2b7eec['push']({'type':_0x3931f5,'key':_0x1274f7['key']});}['_handleRenameSuggestionDescription'](_0x185ce7,_0x4c0e65){_0x185ce7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4c0e65['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x342c70,_0x31690d,_0x5a7664){if(this['_addDescriptionItems'](_0x342c70,_0x31690d),_0x5a7664&&_0x5a7664['getFirstRange']()&&!_0x31690d['getFirstRange']()['end']['isEqual'](_0x5a7664['getFirstRange']()['start'])){const _0x2e013c=_0x342c70[_0x342c70['length']-0x1],_0x461145='insertion'==_0x31690d['type']?'add':'remove';_0x2e013c&&'text'==_0x2e013c['type']&&(_0x2e013c[_0x461145]+='\x0a');}}}class O extends _0x211f0d{['afterInit'](){const _0x420459=this['editor'],_0x816dc7=_0x420459['plugins']['get']('TrackChangesEditing');_0x420459['commands']['get']('showAIAssistant')&&_0x816dc7['enableCommand']('showAIAssistant');}}class E extends _0x211f0d{['afterInit'](){const _0x49f4f4=this['editor'],_0x3c5d37=_0x49f4f4['locale'];if(!_0x49f4f4['plugins']['has']('AlignmentEditing'))return;const _0x2d08b1=_0x49f4f4['plugins']['get']('TrackChangesEditing');_0x2d08b1['enableDefaultAttributesIntegration']('alignment'),_0x2d08b1['registerBlockAttribute']('alignment'),_0x2d08b1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3c5d37,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x275160=this['editor'],_0x542595=_0x275160['locale'];_0x275160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21a952=>{if('formatBlock'!=_0x21a952['type'])return;const {data:_0x383526}=_0x21a952;if(_0x383526&&'alignment'==_0x383526['commandName']){const _0x313328=_0x383526['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x542595,'*Format:*\x20%0',function(_0x1454a2){switch(_0x1454a2){case'left':return o(_0x542595,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x542595,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x542595,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x542595,'FORMAT_JUSTIFY_TEXT');}}(_0x313328))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x211f0d{['afterInit'](){const _0x30b8b1=this['editor'],_0x4540f8=_0x30b8b1['plugins']['get']('TrackChangesEditing'),_0x293800=_0x30b8b1['locale'];for(const _0x2142a4 of ti){if(!_0x30b8b1['plugins']['has'](_0x2142a4))continue;const _0x368bd8=_0x2142a4['slice'](0x0,-0x7)['toLowerCase'](),_0x149f35='FORMAT_'+_0x368bd8['toUpperCase']();_0x4540f8['enableDefaultAttributesIntegration'](_0x368bd8),_0x4540f8['registerInlineAttribute'](_0x368bd8),_0x4540f8['descriptionFactory']['registerAttributeLabel'](_0x368bd8,o(_0x293800,_0x149f35));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cd353=this['editor'],_0x520a75=_0x2cd353['locale'],_0x40548b=_0x2cd353['plugins']['get']('TrackChangesEditing');function _0x51d492(_0xea4bd0,_0x4f32bc){_0x40548b['descriptionFactory']['registerDescriptionCallback'](_0x4b6200=>{if('formatInline'!=_0x4b6200['type'])return;const {data:_0x11e6d9}=_0x4b6200;return _0x11e6d9&&_0x11e6d9['commandName']===_0xea4bd0?_0x11e6d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x520a75,'*Format:*\x20%0',_0x4f32bc)}:{'type':'format','content':o(_0x520a75,'*Remove\x20format:*\x20%0',_0x4f32bc)}:void 0x0;});}_0x51d492('bold',o(_0x520a75,'FORMAT_BOLD')),_0x51d492('italic',o(_0x520a75,'FORMAT_ITALIC')),_0x51d492('underline',o(_0x520a75,'FORMAT_UNDERLINE')),_0x51d492('code',o(_0x520a75,'FORMAT_CODE')),_0x51d492('strikethrough',o(_0x520a75,'FORMAT_STRIKETHROUGH')),_0x51d492('subscript',o(_0x520a75,'FORMAT_SUBSCRIPT')),_0x51d492('superscript',o(_0x520a75,'FORMAT_SUPERSCRIPT'));}}class U extends _0x211f0d{['afterInit'](){const _0x52ec66=this['editor'],_0x540e97=_0x52ec66['locale'];if(!_0x52ec66['plugins']['has']('BlockQuoteEditing'))return;const _0x164704=_0x52ec66['plugins']['get']('TrackChangesEditing'),_0x4c6dbd=this['editor']['commands']['get']('blockQuote');_0x164704['enableCommand']('blockQuote',(_0x1b5b64,_0xd312f9={})=>{const _0x1ac517=this['editor']['model']['document']['selection'],_0x424e84=_0xd312f9&&void 0x0!==_0xd312f9['forceValue']?_0xd312f9['forceValue']:!_0x4c6dbd['value'];let _0x55dc74=[];if(_0x424e84){const _0x1af536=Array['from'](_0x1ac517['getSelectedBlocks']())['filter'](_0x28e0e3=>oo(_0x28e0e3)||function(_0x5cfbaf,_0x557949){const _0x2576cf=_0x557949['checkChild'](_0x5cfbaf['parent'],'blockQuote'),_0x4e4125=_0x557949['checkChild'](['$root','blockQuote'],_0x5cfbaf);return _0x2576cf&&_0x4e4125;}(_0x28e0e3,this['editor']['model']['schema']));_0x55dc74=to(_0x1af536,_0x52ec66['model']);}else{const _0x5e4d11=Array['from'](_0x1ac517['getSelectedBlocks']())['filter'](_0x233538=>oo(_0x233538));_0x55dc74=to(_0x5e4d11,_0x52ec66['model']);}_0x52ec66['model']['change'](()=>{for(const _0x428f39 of _0x55dc74)_0x164704['markBlockFormat'](_0x428f39,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x424e84}]});});}),_0x164704['descriptionFactory']['registerDescriptionCallback'](_0xdc3049=>{const {data:_0x4e58fd}=_0xdc3049;if(_0x4e58fd&&'blockQuote'==_0x4e58fd['commandName']){const _0x377262=o(_0x540e97,'ELEMENT_BLOCK_QUOTE');return _0x4e58fd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x540e97,'*Set\x20format:*\x20%0',_0x377262)}:{'type':'format','content':o(_0x540e97,'*Remove\x20format:*\x20%0',_0x377262)};}});}}function oo(_0x228564){return'blockQuote'==_0x228564['parent']['name'];}class V extends _0x211f0d{['afterInit'](){const _0x17858a=this['editor'],_0x36f645=_0x17858a['locale'],_0x840d8e=_0x17858a['plugins']['get']('TrackChangesEditing');_0x17858a['plugins']['has']('BookmarkEditing')&&(_0x840d8e['enableCommand']('insertBookmark'),_0x840d8e['enableDefaultAttributesIntegration']('updateBookmark'),_0x840d8e['registerBlockAttribute']('bookmarkId'),_0x840d8e['descriptionFactory']['registerDescriptionCallback'](_0x5dc809=>{if('insertion'!=_0x5dc809['type']&&'deletion'!=_0x5dc809['type']&&'attribute'!=_0x5dc809['type'])return;const _0x14c653=_0x5dc809['getContainedElement']();if(null==_0x14c653)return;if(!_0x14c653['is']('element','bookmark'))return;const _0x5f5019=_0x14c653['getAttribute']('bookmarkId');if('insertion'==_0x5dc809['type'])return{'type':'insertion','content':o(_0x36f645,'*Insert:*\x20%0','\x22'+_0x5f5019+'\x22\x20'+o(_0x36f645,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5dc809['type'])return{'type':'deletion','content':o(_0x36f645,'*Remove:*\x20%0','\x22'+_0x5f5019+'\x22\x20'+o(_0x36f645,'ELEMENT_BOOKMARK'))};const {data:_0xdd513a}=_0x5dc809;if(!_0xdd513a||'bookmarkId'!=_0xdd513a['key'])return;return{'type':'format','content':o(_0x36f645,'*Set\x20bookmark:*\x20%0','\x22'+_0xdd513a['newValue']+'\x22')};}));}}class F extends _0x211f0d{['afterInit'](){const _0x31df27=this['editor'];_0x31df27['plugins']['has']('CaseChange')&&(_0x31df27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x31df27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x31df27['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x211f0d{['afterInit'](){const _0x468669=this['editor'];_0x468669['commands']['get']('ckbox')&&_0x468669['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x211f0d{['afterInit'](){const _0xf72dab=this['editor'];if(!_0xf72dab['plugins']['has']('CodeBlock'))return;const _0x2bec01=_0xf72dab['plugins']['get']('TrackChangesEditing'),_0x17130e=_0xf72dab['locale'],_0x521da2=_0xf72dab['config']['get']('codeBlock')['languages'],_0x40e12b=_0xf72dab['commands']['get']('codeBlock');_0x2bec01['enableCommand']('indentCodeBlock'),_0x2bec01['enableCommand']('outdentCodeBlock'),_0x2bec01['enableCommand']('codeBlock',(_0x45d757,_0x3cc1b6={})=>{const _0x33338c=_0xf72dab['model'],_0x4f7926=_0xf72dab['model']['document']['selection'],_0x3138a3=_0x3cc1b6&&void 0x0!==_0x3cc1b6['forceValue']?_0x3cc1b6['forceValue']:!_0x40e12b['value'];let _0x4c5e1f;_0x3cc1b6['language']||(_0x3cc1b6['language']=_0x521da2[0x0]['language']),_0x4c5e1f=_0x3138a3?Array['from'](_0x4f7926['getSelectedBlocks']())['filter'](_0x5c9258=>co(_0x5c9258)||function(_0x21fbd2,_0x5d054d){if(_0x21fbd2['is']('rootElement')||_0x5d054d['isLimit'](_0x21fbd2))return!0x1;return _0x5d054d['checkChild'](_0x21fbd2['parent'],'codeBlock');}(_0x5c9258,_0x33338c['schema'])):Array['from'](_0x4f7926['getSelectedBlocks']())['filter'](_0x4a1841=>co(_0x4a1841));const _0x40187e=to(_0x4c5e1f,_0x33338c);_0x33338c['change'](()=>{for(const _0x2f7616 of _0x40187e)_0x2bec01['markBlockFormat'](_0x2f7616,{'commandName':'codeBlock','commandParams':[{..._0x3cc1b6,'forceValue':_0x3138a3}],'formatGroupId':'blockName'});});}),(_0x2bec01['descriptionFactory']['registerElementLabel']('codeBlock',_0x2f784c=>o(_0x17130e,'ELEMENT_CODE_BLOCK',_0x2f784c)),_0x2bec01['descriptionFactory']['registerDescriptionCallback'](_0x7630e3=>{if('formatBlock'!=_0x7630e3['type'])return;const _0x4c98f4=_0x17130e['t'],{data:_0x5741a0}=_0x7630e3;if(!_0x5741a0||'codeBlock'!=_0x5741a0['commandName'])return;const _0x560394=_0x5741a0['commandParams'][0x0]['language'],_0x51b419=_0x4c98f4(_0x521da2['find'](_0x15f86e=>_0x15f86e['language']===_0x560394)['label'])['toLowerCase']();return _0x5741a0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17130e,'*Set\x20format:*\x20%0',o(_0x17130e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x51b419+')')}:{'type':'format','content':o(_0x17130e,'*Remove\x20format:*\x20%0',o(_0x17130e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x54a343){return'codeBlock'==_0x54a343['name'];}class J extends _0x211f0d{['afterInit'](){const _0x30aa01=this['editor'];if(!_0x30aa01['plugins']['has']('CommentsEditing'))return;_0x30aa01['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x40258b,_0x18c30,_0x51884c){const _0x4644fe=[];for(const _0x1acb75 of _0x18c30['getItems']())_0x1acb75['hasAttribute'](_0x40258b)&&_0x4644fe['push'](_0x51884c['createRangeOn'](_0x1acb75));return _0x4644fe;}function De(_0x7ecf04,_0x235bc9,{showActiveMarker:_0x3bb4ef=!0x0}={}){const _0x276db5=_0x7ecf04['plugins']['get']('TrackChangesEditing');return(_0x12172a,_0x1f4f0a,_0x22f0e6)=>{if(!_0x22f0e6['consumable']['test'](_0x1f4f0a['markerRange'],_0x12172a['name']))return;const _0x4d9053=_0x1f4f0a['markerRange']['getWalker'](),_0x567118=_0x1f4f0a['markerRange']['start'],_0xc29833=_0x7ecf04['model']['schema'];let _0x2acf4a=null,_0x119995=null,_0x2b3daa=!0x1,_0x1a479f=!0x1;for(const _0x196c57 of _0x4d9053){const _0x42bdf4=_0x196c57['item'];_0x2b3daa=_0x2b3daa||_0xc29833['isContent'](_0x42bdf4);const _0x14efa8=_0x22f0e6['mapper']['toViewElement'](_0x42bdf4);if(_0x14efa8&&_0x14efa8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x196c57['type']&&(_0xc29833['isBlock'](_0x42bdf4)&&!_0xc29833['isLimit'](_0x42bdf4)&&(_0x42bdf4['nextSibling']||_0x567118['isAtEnd']?_0x2acf4a&&_0x2acf4a['parent']==_0x42bdf4||(_0x2acf4a=_0x42bdf4,_0x33b76e(_0x196c57['previousPosition']),_0x1a479f=!0x0):_0x119995=_0x119995||_0x196c57['previousPosition']));}function _0x33b76e(_0x28bfcf){const {id:_0x315710,authorId:_0x47acec}=_0x276db5['_splitMarkerName'](_0x1f4f0a['markerName']),_0x16d4f9=_0x22f0e6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x235bc9,'data-suggestion':_0x315710,'data-author-id':_0x47acec}),_0x120271=_0x22f0e6['mapper']['toViewPosition'](_0x28bfcf);_0x3bb4ef&&_0x276db5['activeMarkers']['includes'](_0x1f4f0a['markerName'])&&_0x22f0e6['writer']['addClass']('ck-suggestion-marker--active',_0x16d4f9),_0x22f0e6['writer']['insert'](_0x120271,_0x16d4f9),_0x22f0e6['mapper']['bindElementToMarker'](_0x16d4f9,_0x1f4f0a['markerName']);}_0x2b3daa||_0x1a479f||!_0x119995||_0x33b76e(_0x119995);};}class K extends _0x211f0d{static get['requires'](){return[_0x33c177];}['init'](){const _0xbbdf78=this['editor'],_0x2d2c4e=_0xbbdf78['plugins']['get']('TrackChangesEditing');_0x2d2c4e['enableCommand']('delete');const _0x139efe=_0xbbdf78['commands']['get']('deleteForward');_0x2d2c4e['enableCommand']('deleteForward',(_0x50c763,_0x562291={})=>{const _0x395add=_0xbbdf78['model']['createSelection'](_0xbbdf78['model']['document']['selection']);_0x395add['isCollapsed']&&_0xbbdf78['model']['modifySelection'](_0x395add,{'direction':'forward','unit':_0x562291['unit']});const _0x476b29=_0x395add['getFirstRange'](),_0x2402e3=_0x2e3e00['fromRange'](_0x476b29);let _0x684250;_0x50c763(_0x562291),_0x684250='$graveyard'==_0x2402e3['root']['rootName']?_0xbbdf78['model']['createRange'](_0x476b29['start']):_0xbbdf78['model']['createRange'](_0x2402e3['start'],_0x2402e3['end']),_0x2402e3['detach'](),_0xbbdf78['model']['enqueueChange'](_0x139efe['buffer']['batch'],_0x496ab6=>{_0x139efe['buffer']['lock'](),_0x496ab6['setSelection'](_0x496ab6['createRange'](_0x684250['end'])),_0x139efe['buffer']['unlock']();});}),_0xbbdf78['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xbbdf78,'merge'),{'priority':'high'}),_0xbbdf78['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x466a31,_0xc6d162,_0x2b9074)=>{_0x2b9074['options']['showSuggestionHighlights']&&De(_0xbbdf78,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x466a31,_0xc6d162,_0x2b9074);},{'priority':'high'}),_0xbbdf78['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x44b5e5,_0x3a9537,_0x5b6330)=>{const _0x4c8733=_0x5b6330['mapper']['markerNameToElements'](_0x3a9537['markerName']);if(_0x4c8733){for(const _0x167a6a of _0x4c8733)_0x167a6a['is']('uiElement')&&(_0x5b6330['mapper']['unbindElementFromMarkerName'](_0x167a6a,_0x3a9537['markerName']),_0x5b6330['writer']['remove'](_0x167a6a));}},{'priority':'high'});}}class H extends _0x211f0d{['afterInit'](){const _0x17608a=this['editor'];if(!_0x17608a['plugins']['has']('ListEditing'))return;const _0x26384a=_0x17608a['locale'],_0x3db669=_0x17608a['plugins']['get']('TrackChangesEditing'),_0x138962=_0x17608a['plugins']['has']('TodoListEditing'),_0x1f4fd9=!!_0x17608a['config']['get']('list.multiBlock');function _0x269cc0(_0x112d9e){return{'type':'format','content':''+o(_0x26384a,'*Set\x20format:*\x20%0',_0x112d9e)};}function _0x1b3cc1(_0xa103a8){return{'type':'format','content':''+o(_0x26384a,'*Remove\x20format:*\x20%0',_0xa103a8)};}_0x3db669['enableDefaultAttributesIntegration']('numberedList'),_0x3db669['enableDefaultAttributesIntegration']('bulletedList'),_0x3db669['enableDefaultAttributesIntegration']('customNumberedList'),_0x3db669['enableDefaultAttributesIntegration']('customBulletedList'),_0x3db669['enableDefaultAttributesIntegration']('indentList'),_0x3db669['enableDefaultAttributesIntegration']('outdentList'),_0x3db669['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3db669['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3db669['registerBlockAttribute']('listItemId'),_0x3db669['registerBlockAttribute']('listType'),_0x3db669['registerBlockAttribute']('listIndent'),_0x1f4fd9&&(_0x3db669['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3db669['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x138962&&(_0x3db669['enableDefaultAttributesIntegration']('todoList'),_0x3db669['enableDefaultAttributesIntegration']('checkTodoList'),_0x3db669['registerBlockAttribute']('todoListChecked'),_0x3db669['descriptionFactory']['registerDescriptionCallback'](_0x17317d=>{const {data:_0x1ba1ec}=_0x17317d;if(_0x1ba1ec&&'todoListChecked'==_0x1ba1ec['key'])return{'type':'format','content':_0x1ba1ec['newValue']?o(_0x26384a,'*Check\x20item*'):o(_0x26384a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x554838=>{if(_0x554838['batch']['isUndo'])return!0x1;let _0x39a587=!0x1;const _0x1e7aaf=_0x3db669['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1605cc=>'todoListChecked'===_0x3db669['_getAttributeKey'](_0x1605cc));for(const _0x1c8e09 of _0x1e7aaf){'todo'!=_0x1c8e09['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3db669['_findSuggestions'](_0x1c8e09['getFirstRange'](),'attribute')['find'](_0x10df32=>'listType'===_0x3db669['_getAttributeKey'](_0x10df32['suggestion']))||(_0x554838['removeMarker'](_0x1c8e09['getFirstMarker']()),_0x39a587=!0x0));}return _0x39a587;})),_0x3db669['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x26384a,'FORMAT_INDENT'));const _0x3935ca={'type':'format','content':''};_0x3db669['descriptionFactory']['registerDescriptionCallback'](_0x143c7=>{const {data:_0x533d90}=_0x143c7;if(!_0x533d90||'listType'!=_0x533d90['key'])return;let _0xddf4d4=_0x143c7['head'];for(;_0xddf4d4;){if(_0xddf4d4['data']&&(('listStyle'==_0xddf4d4['data']['key']||'listMarkerStyle'==_0xddf4d4['data']['key'])&&(_0xddf4d4['data']['newValue']&&'default'!=_0xddf4d4['data']['newValue']||'default'!=_0xddf4d4['data']['oldValue']&&!_0x533d90['newValue'])||!_0x1f4fd9&&_0xddf4d4['data']['key']==m))return _0x3935ca;_0xddf4d4=_0xddf4d4['next'];}if(null==_0x533d90['newValue'])switch(_0x533d90['oldValue']){case'bulleted':return _0x1b3cc1(o(_0x26384a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b3cc1(o(_0x26384a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b3cc1(o(_0x26384a,'ELEMENT_TODO_LIST'));}switch(_0x533d90['newValue']){case'bulleted':return _0x269cc0(o(_0x26384a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x269cc0(o(_0x26384a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x269cc0(o(_0x26384a,'ELEMENT_TODO_LIST'));}}),_0x3db669['descriptionFactory']['registerDescriptionCallback'](_0x497940=>{const {data:_0x509949}=_0x497940;if(_0x509949&&'listIndent'==_0x509949['key'])return null==_0x509949['newValue']||null==_0x509949['oldValue']&&0x0==_0x509949['newValue']?_0x3935ca:void 0x0;}),_0x3db669['descriptionFactory']['registerDescriptionCallback'](_0x20a773=>{if('attribute'!=_0x20a773['type'])return;const {data:_0x2c16d6}=_0x20a773;if(!_0x2c16d6||'listItemId'!=_0x2c16d6['key'])return;const _0x6e61f0=Te(_0x20a773);return'newValue'==_0x6e61f0?{'type':'format','content':o(_0x26384a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x6e61f0?{'type':'format','content':o(_0x26384a,'*Split:*\x20list\x20item')}:_0x3935ca;}),_0x17608a['model']['document']['registerPostFixer'](_0x18b9a8=>this['listItemIdFixer'](_0x18b9a8)),_0x17608a['model']['document']['registerPostFixer'](_0x141f26=>this['noTrackChangesFixer'](_0x141f26)),_0x17608a['model']['document']['on']('change:data',(_0x36403e,_0x4e4033)=>{if(_0x4e4033['isUndo']||!_0x4e4033['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2fa997){if(_0x2fa997['batch']['isUndo']||!_0x2fa997['batch']['isLocal'])return!0x1;let _0x48d30c=!0x1;const _0x17a46d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28a0fc=>_0x28a0fc['data']&&'listItemId'==_0x28a0fc['data']['key'])['filter'](_0x4a0e11=>_0x4a0e11['data']['newValue']&&_0x4a0e11['data']['oldValue']);for(const _0x4387eb of _0x17a46d)Te(_0x4387eb)||(_0x2fa997['removeMarker'](_0x4387eb['getFirstMarker']()),_0x48d30c=!0x0);return _0x48d30c;}['noTrackChangesFixer'](_0x263e8a){if(_0x263e8a['batch']['isUndo']||!_0x263e8a['batch']['isLocal'])return!0x1;const _0xcec7ca=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xcec7ca['trackChangesCommand']['value'])return!0x1;let _0x4c5545=!0x1;const _0x1bdc97=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3e75fb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x137284=>'attribute'==_0x137284['type'])['filter'](_0x4b62b8=>_0x1bdc97['includes'](_0x4b62b8['attributeKey']));if(0x0==_0x3e75fb['length'])return _0x4c5545;for(const _0x145494 of _0x3e75fb){const _0x5d195a=_0xcec7ca['_findSuggestions'](_0x145494['range'],'attribute')['filter'](_0x5dbf84=>!_0x5dbf84['meta']['isNextTo'])['map'](_0x4bee60=>_0x4bee60['suggestion'])['filter'](_0x1a944e=>{const _0x45a0c8=_0xcec7ca['_getAttributeKey'](_0x1a944e);return _0x1bdc97['includes'](_0x45a0c8);});if(_0x5d195a['length']){for(const _0x3adfa9 of _0x5d195a)_0x263e8a['removeMarker'](_0x3adfa9['getFirstMarker']());_0x4c5545=!0x0;}}return _0x4c5545;}['assureChains'](){const _0x1ec1a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2167fb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x556d4c;const _0x384388=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x481751=>{if(_0x481751['data']['oldRange']||!_0x481751['data']['newRange'])return null;if(!_0x481751['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2ef70c}=_0x1ec1a5['_splitMarkerName'](_0x481751['name']);if(!_0x1ec1a5['hasSuggestion'](_0x2ef70c))return null;const _0x411719=_0x1ec1a5['getSuggestion'](_0x2ef70c);return _0x2167fb['includes'](_0x411719['data']['key']);})['map'](_0x29bdc3=>{const {id:_0xd15814}=_0x1ec1a5['_splitMarkerName'](_0x29bdc3['name']),_0x3cea6d=_0x1ec1a5['getSuggestion'](_0xd15814);return _0x556d4c=_0x3cea6d['attributes']['groupId'],_0x3cea6d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x384388['size'])return;const _0x413509=_0x1ec1a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x561a9b=>'attribute'==_0x561a9b['type']&&_0x561a9b['data']&&_0x2167fb['includes'](_0x561a9b['data']['key'])&&_0x561a9b['attributes']['groupId']!=_0x556d4c)['map'](_0x565ba7=>({'listItem':_0x565ba7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x565ba7['attributes']['groupId']})),_0x178120=new Set();for(const {groupId:_0x94797d,listItem:_0x5555bc}of _0x413509)_0x384388['has'](_0x5555bc)&&_0x178120['add'](_0x94797d);for(const _0xa71382 of _0x1ec1a5['getSuggestions']())_0x178120['has'](_0xa71382['attributes']['groupId'])&&_0xa71382['setAttribute']('groupId',_0x556d4c);}['_supportLegacySuggestions'](){const _0x4ad055=this['editor'],_0x4dac34=_0x4ad055['locale'],_0x2f2797=_0x4ad055['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2f2797['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2ecc73,_0x4470ac){const _0x5c9431=[];for(let _0x2c3ef7 of _0x2ecc73)_0x2c3ef7['start']['nodeAfter']===_0x2c3ef7['end']['parent']&&(_0x2c3ef7=_0x4ad055['model']['createRange'](_0x4ad055['model']['createPositionAt'](_0x2c3ef7['start']['nodeAfter'],0x0))),_0x5c9431['push'](_0x2c3ef7);_0x4ad055['model']['change'](_0x5d6f0a=>{const _0x141e83=_0x4ad055['model']['document']['selection'],_0x370f12=Array['from'](_0x141e83['getRanges']())['map'](_0x12089e=>_0x2e3e00['fromRange'](_0x12089e));_0x5d6f0a['setSelection'](_0x5c9431),_0x4ad055['commands']['get'](_0x4470ac['commandName'])['refresh'](),_0x4470ac['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ad055['execute'](_0x4470ac['commandName'],..._0x4470ac['commandParams']),_0x5d6f0a['setSelection'](_0x370f12);for(const _0x348bf1 of _0x370f12)_0x348bf1['detach']();});}),_0x2f2797['descriptionFactory']['registerElementLabel'](function(_0x1e552d){const _0x32c99f=!_0x4ad055['model']['schema']['isObject'](_0x1e552d),_0x10f051=_0x1e552d['previousSibling'],_0x5a687a=_0x1e552d['nextSibling'],_0xdf2deb=_0x1e552d['getAttribute']('listItemId'),_0x2138a0=!_0x10f051||_0x10f051['getAttribute']('listItemId')!==_0xdf2deb,_0x764184=!_0x5a687a||_0x5a687a['getAttribute']('listItemId')!==_0xdf2deb;return _0x32c99f&&Boolean(_0xdf2deb)&&_0x2138a0&&_0x764184;},_0x3c35d3=>o(_0x4dac34,'ELEMENT_LIST_ITEM',_0x3c35d3));}['_registerLegacyDescription'](){const _0xea46d2=this['editor'],_0x48ba85=_0xea46d2['locale'];function _0xe6a010(_0x12ac5e){const _0x1f4caf=_0xea46d2['commands']['get']('bulletedList')['value'],_0x40c988=_0xea46d2['commands']['get']('numberedList')['value'];return'numberedList'===_0x12ac5e?_0x1f4caf:_0x40c988;}_0xea46d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4fc810){if('formatBlock'!=_0x4fc810['type'])return;const {data:_0x29f184}=_0x4fc810;if(!_0x29f184)return;let _0x4a5b08,_0x318e92,_0x13150c,_0x254d4c;switch(_0x29f184['commandName']){case'bulletedList':_0x13150c=_0x29f184['commandParams'][0x0]['forceValue'],_0x254d4c=_0xe6a010(_0x29f184['commandName']),_0x4a5b08=_0x13150c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x254d4c&&_0xea46d2['config']['get']('list.multiBlock')||(_0x4a5b08='*Change\x20to:*\x20%0'),_0x318e92={'type':'format','content':o(_0x48ba85,_0x4a5b08,o(_0x48ba85,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x13150c=_0x29f184['commandParams'][0x0]['forceValue'],_0x254d4c=_0xe6a010(_0x29f184['commandName']),_0x4a5b08=_0x13150c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x254d4c&&_0xea46d2['config']['get']('list.multiBlock')||(_0x4a5b08='*Change\x20to:*\x20%0'),_0x318e92={'type':'format','content':o(_0x48ba85,_0x4a5b08,o(_0x48ba85,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4a5b08='*Indent:*\x20%0',_0x318e92={'type':'format','content':o(_0x48ba85,_0x4a5b08,o(_0x48ba85,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4a5b08=function(_0x38308d){const _0x4d4451=_0x38308d['getFirstRange']();let _0x50ab2a=_0x4d4451['start']['nodeAfter'];for(;_0x50ab2a&&_0x4d4451['containsItem'](_0x50ab2a);){if(_0x50ab2a['getAttribute']('listIndent')>0x0)return!0x1;_0x50ab2a=_0x50ab2a['nextSibling'];}return!0x0;}(_0x4fc810)?o(_0x48ba85,'*Format:*\x20remove\x20from\x20%0',o(_0x48ba85,function(_0x2477fd){return'ELEMENT_'+_0x2477fd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4fc810))):o(_0x48ba85,'*Outdent:*\x20%0',o(_0x48ba85,'ELEMENT_LIST_ITEM')),_0x318e92={'type':'format','content':_0x4a5b08};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x29f184['multipleBlocks']&&(_0x4a5b08='*Merge:*\x20%0',_0x318e92={'type':'deletion','content':o(_0x48ba85,_0x4a5b08,o(_0x48ba85,'ELEMENT_LIST_ITEM'))});}return _0x318e92;});}}function Te(_0x33c274){let _0xd83f93=_0x33c274['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xd83f93;){const _0x530b71=_0xd83f93['getAttribute']('listItemId');if(!_0x530b71)return!0x1;if(_0x530b71==_0x33c274['data']['newValue'])return'newValue';if(_0x530b71==_0x33c274['data']['oldValue'])return'oldValue';_0xd83f93=_0xd83f93['previousSibling'];}return!0x1;}class q extends _0x211f0d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x31b0fe=this['editor']['config']['get']('list.properties'),_0x468178=this['editor']['plugins']['get']('TrackChangesEditing');_0x31b0fe['styles']&&(_0x468178['enableDefaultAttributesIntegration']('listStyle'),_0x468178['registerBlockAttribute']('listStyle')),_0x31b0fe['reversed']&&(_0x468178['enableDefaultAttributesIntegration']('listReversed'),_0x468178['registerBlockAttribute']('listReversed')),_0x31b0fe['startIndex']&&(_0x468178['enableDefaultAttributesIntegration']('listStart'),_0x468178['registerBlockAttribute']('listStart'));const _0x243871={'type':'format','content':''};_0x468178['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4aad13=this['editor']['locale'];_0x468178['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4aad13,'FORMAT_LIST_REVERSED')),_0x468178['descriptionFactory']['registerDescriptionCallback'](_0x11cc69=>{const {data:_0xc86c9e}=_0x11cc69;if(_0xc86c9e&&'listReversed'==_0xc86c9e['key'])return null==_0xc86c9e['newValue']||0x0==_0xc86c9e['newValue']&&null==_0xc86c9e['oldValue']?_0x243871:void 0x0;}),_0x468178['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4aad13,'FORMAT_LIST_START')),_0x468178['descriptionFactory']['registerDescriptionCallback'](_0x680c1b=>{const {data:_0x33422d}=_0x680c1b;if(_0x33422d&&'listStart'==_0x33422d['key'])return null==_0x33422d['newValue']||0x1==_0x33422d['newValue']&&null==_0x33422d['oldValue']?_0x243871:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2ed144=>{if(_0x2ed144['batch']['isUndo'])return!0x1;let _0x1ac9ae=!0x1;const _0x1f1fd8=_0x468178['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f8039=>{const _0x101c7c=_0x468178['_getAttributeKey'](_0x4f8039);return'listStart'==_0x101c7c||'listReversed'==_0x101c7c;});for(const _0x4616f2 of _0x1f1fd8){const _0x47ede5=_0x4616f2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x47ede5||'customNumbered'==_0x47ede5)continue;_0x468178['_findSuggestions'](_0x4616f2['getFirstRange'](),'attribute')['find'](_0x3645e5=>'listType'==_0x468178['_getAttributeKey'](_0x3645e5['suggestion']))||(_0x2ed144['removeMarker'](_0x4616f2['getFirstMarker']()),_0x1ac9ae=!0x0);}return _0x1ac9ae;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2427f5){const _0x518e00=this['editor']['locale'],{data:_0x1e09de}=_0x2427f5,_0x18bd95={'type':'format','content':''};if(!_0x1e09de||'listStyle'!=_0x1e09de['key'])return;if(!_0x1e09de['oldValue'])return'default'==_0x1e09de['newValue']?_0x18bd95:{'type':'format','content':''+o(_0x518e00,'*Set\x20format:*\x20%0',o(_0x518e00,this['_getTranslationKeyForListStyle'](_0x1e09de['newValue'])))};if(!_0x1e09de['newValue']){if('default'==_0x1e09de['oldValue'])return _0x18bd95;let _0x1eb222=_0x2427f5['head'];for(;_0x1eb222;){if(_0x1eb222['data']&&'listType'==_0x1eb222['data']['key']&&_0x1eb222['data']['newValue'])return _0x18bd95;_0x1eb222=_0x1eb222['next'];}return{'type':'format','content':''+o(_0x518e00,'*Remove\x20format:*\x20%0',o(_0x518e00,this['_getTranslationKeyForListStyle'](_0x1e09de['oldValue'])))};}if('default'!=_0x1e09de['newValue'])return{'type':'format','content':''+o(_0x518e00,'*Set\x20format:*\x20%0',o(_0x518e00,this['_getTranslationKeyForListStyle'](_0x1e09de['newValue'])))};let _0x245ee0=_0x2427f5['head'];for(;_0x245ee0;){if(_0x245ee0['data']&&'listType'==_0x245ee0['data']['key']&&_0x245ee0['data']['newValue']&&_0x245ee0['data']['oldValue'])return _0x18bd95;_0x245ee0=_0x245ee0['next'];}return{'type':'format','content':o(_0x518e00,'*Set\x20format:*\x20%0',o(_0x518e00,'ELEMENT_'+_0x2427f5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x39931b=this['editor'],_0xd86fd4=_0x39931b['locale'];_0x39931b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12216c=>{if('formatBlock'!=_0x12216c['type'])return;const {data:_0x16809c}=_0x12216c;if(!_0x16809c)return;let _0x5098c4,_0xac7ea3;switch(_0x16809c['commandName']){case'listStyle':_0x5098c4='*Change\x20to:*\x20%0',_0xac7ea3={'type':'format','content':o(_0xd86fd4,_0x5098c4,o(_0xd86fd4,this['_getTranslationKeyForListStyle'](_0x16809c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5098c4=_0x16809c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xac7ea3={'type':'format','content':o(_0xd86fd4,_0x5098c4)};break;case'listStart':_0x5098c4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xac7ea3={'type':'format','content':o(_0xd86fd4,_0x5098c4,_0x16809c['commandParams'][0x0]['startIndex'])};}return _0xac7ea3;});}['_getTranslationKeyForListStyle'](_0x5eb954){return'ELEMENT_'+function(_0x22053c){if(Se['includes'](_0x22053c))return'bulleted';if(_e['includes'](_0x22053c))return'numbered';return null;}(_0x5eb954)['toUpperCase']()+'_LIST_'+_0x5eb954['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x211f0d{['afterInit'](){const _0x3fb5bc=this['editor'];_0x3fb5bc['commands']['get']('emoji')&&_0x3fb5bc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x211f0d{static get['requires'](){return[_0x410072];}['init'](){const _0x12eb4a=this['editor'],_0x20a941=_0x12eb4a['plugins']['get']('TrackChangesEditing'),_0x49d441=_0x12eb4a['commands']['get']('enter');_0x20a941['enableCommand']('enter',()=>{_0x12eb4a['model']['change'](_0xc1e6d7=>{const _0x42abb7=_0x12eb4a['model']['document']['selection'],_0x7fc107=_0x42abb7['getFirstPosition'](),_0x14f8dd=_0x2e3e00['fromRange'](_0x42abb7['getFirstRange']());if(_0x49d441['enterBlock'](_0xc1e6d7)){const _0xe22c48=_0x12eb4a['model']['createPositionAt'](_0x7fc107['parent']['nextSibling'],0x0),_0x171bb9=_0xc1e6d7['createRange'](_0x7fc107,_0xe22c48);_0x20a941['markInsertion'](_0x171bb9);}else _0xc1e6d7['setSelection'](_0xc1e6d7['createRange'](_0x14f8dd['end']));_0x14f8dd['detach'](),_0x49d441['fire']('afterExecute',{'writer':_0xc1e6d7});});}),_0x12eb4a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x12eb4a,'split'),{'priority':'high'}),_0x12eb4a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1579da,_0x587137,_0x4f43e8)=>{const _0x194e28=_0x4f43e8['mapper']['markerNameToElements'](_0x587137['markerName']);if(_0x194e28){for(const _0x5ea2e1 of _0x194e28)_0x5ea2e1['hasClass']('ck-suggestion-marker-split')&&(_0x4f43e8['mapper']['unbindElementFromMarkerName'](_0x5ea2e1,_0x587137['markerName']),_0x4f43e8['writer']['remove'](_0x5ea2e1));}},{'priority':'high'}),_0x12eb4a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x27a28e,_0x18ea35,_0x5a9219)=>{_0x5a9219['options']['showSuggestionHighlights']&&De(_0x12eb4a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x27a28e,_0x18ea35,_0x5a9219);},{'priority':'high'});}}class Q extends _0x211f0d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x251024=this['editor']['plugins']['get']('TrackChangesEditing');_0x251024['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x251024['enableCommand']('findNext'),_0x251024['enableCommand']('findPrevious'),_0x251024['enableCommand']('replace'),_0x251024['enableCommand']('replaceAll');}['handleFindCommand'](_0x428649,_0x552f24,_0x852506={}){const _0x5baa6c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x428649(_0x494505=>{let _0x37b498=('string'==typeof _0x552f24?_0x5baa6c['findByTextCallback'](_0x552f24,_0x852506):_0x552f24)(_0x494505);Array['isArray'](_0x37b498)&&(_0x37b498={'results':_0x37b498,'searchText':'string'==typeof _0x552f24?_0x552f24:''});const _0x35fec7=_0x37b498['results']['filter'](_0x436525=>!0x1===this['_isInDeletionRange'](_0x436525,_0x494505['item']));return{..._0x37b498,'results':_0x35fec7};},_0x852506);}['_isInDeletionRange'](_0x5b66a6,_0x4cb97e){const _0x3583f1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4cb97e,_0x5b66a6['start']),this['editor']['model']['createPositionAt'](_0x4cb97e,_0x5b66a6['end']));for(const _0x1c9c37 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3583f1['getIntersection'](_0x1c9c37['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x211f0d{['afterInit'](){const _0x389952=this['editor']['locale'],_0x30c94f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4ffbca,commandName:_0x2b9035}of eo)this['editor']['plugins']['has'](_0x4ffbca)&&(_0x30c94f['enableDefaultAttributesIntegration'](_0x2b9035),_0x30c94f['registerInlineAttribute'](_0x2b9035));_0x30c94f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x389952,'FORMAT_FONT_SIZE')),_0x30c94f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x389952,'FORMAT_FONT_FAMILY')),_0x30c94f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x389952,'FORMAT_FONT_COLOR')),_0x30c94f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x389952,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5661c3=this['editor'],_0x161352=_0x5661c3['locale'];_0x5661c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x581325=>{const _0x3e08c0=_0x161352['t'];if('formatInline'!=_0x581325['type'])return;const {data:_0x226046}=_0x581325;if(null!=_0x226046){if('fontSize'==_0x226046['commandName']){const _0x46a7d9=_0x226046['commandParams'][0x0]['value'];if(_0x46a7d9){const _0x3a6336=_0x3e08c0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x33f2ca=>_0x33f2ca['model']==_0x46a7d9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x161352,'*Set\x20font\x20size:*\x20%0',_0x3a6336)};}return{'type':'format','content':o(_0x161352,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x226046['commandName']){const _0x5a8e85=_0x226046['commandParams'][0x0]['value'];return _0x5a8e85?{'type':'format','content':o(_0x161352,'*Set\x20font\x20family:*\x20%0',_0x5a8e85)}:{'type':'format','content':o(_0x161352,'*Reset\x20font\x20family*')};}if('fontColor'==_0x226046['commandName']){const _0x29b63b=_0x226046['commandParams'][0x0]['value'];if(_0x29b63b){const _0x36aa2b=_0x60a31e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4dd672=>_0x4dd672['model']==_0x29b63b);let _0x1280bc=_0x29b63b,_0x31bd9f='';return _0x36aa2b&&(_0x1280bc=_0x36aa2b['label'],_0x31bd9f=_0x3e08c0(_0x1280bc)['toLowerCase']()),{'type':'format','content':o(_0x161352,'*Set\x20font\x20color:*\x20%0',_0x31bd9f)['trim'](),'color':{'value':_0x29b63b,'title':_0x31bd9f||_0x1280bc}};}return{'type':'format','content':o(_0x161352,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x226046['commandName']){const _0x19e294=_0x226046['commandParams'][0x0]['value'];if(_0x19e294){const _0x44880e=_0x60a31e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5e65f4=>_0x5e65f4['model']==_0x19e294);let _0xaf7822=_0x19e294,_0x36bc3b='';return _0x44880e&&(_0xaf7822=_0x44880e['label'],_0x36bc3b=_0x3e08c0(_0xaf7822)['toLowerCase']()),{'type':'format','content':o(_0x161352,'*Set\x20font\x20background\x20color:*\x20%0',_0x36bc3b)['trim'](),'color':{'value':_0x19e294,'title':_0x36bc3b||_0xaf7822}};}return{'type':'format','content':o(_0x161352,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x211f0d{['afterInit'](){const _0x4354ac=this['editor'],_0x5ce829=_0x4354ac['plugins']['get']('TrackChangesEditing'),_0x405348=_0x4354ac['commands']['get']('copyFormat'),_0xcc3f43=_0x4354ac['commands']['get']('pasteFormat');_0x405348&&_0xcc3f43&&(_0x5ce829['enableDefaultAttributesIntegration']('pasteFormat'),_0x5ce829['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d3806=this['editor'],_0x2cb2ce=_0x1d3806['locale'];_0x1d3806['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575af3=>{if('formatBlock'!=_0x575af3['type']&&'formatInline'!=_0x575af3['type'])return;const {data:_0x12e7a1}=_0x575af3;if(_0x12e7a1&&'pasteFormat'===_0x12e7a1['commandName']){const _0x2c2de2=[],_0xe037f=_0x12e7a1['commandParams'][0x0];for(const [_0x32537d,_0x4ae671]of Object['entries'](_0xe037f))_0x2c2de2['push'](ro(_0x1d3806,_0x32537d,_0x4ae671));return _0x2c2de2['length']?{'type':'format','content':o(_0x2cb2ce,'*Set\x20format\x20to:*\x20%0',_0x2c2de2['join'](',\x20'))}:{'type':'format','content':o(_0x2cb2ce,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x45fb00,_0x4e7910,_0x115ad5){const _0x5bcd34=_0x45fb00['locale']['t'],_0x31cb07=_0x4e7910['split'](/(?=[A-Z])/)['join']('\x20'),_0x534e48=_0x5bcd34(_0x31cb07['charAt'](0x0)['toUpperCase']()+_0x31cb07['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x115ad5)return _0x534e48;if('fontColor'===_0x4e7910||'fontBackgroundColor'===_0x4e7910){const _0x5712e1=_0x60a31e(_0x45fb00['config']['get']('fontColor.colors'))['find'](_0x2e4be6=>_0x2e4be6['model']==_0x115ad5);return _0x534e48+'\x20('+(_0x5712e1?_0x5bcd34(_0x5712e1['label'])['toLowerCase']():_0x115ad5)+')';}if('fontSize'===_0x4e7910&&isNaN(parseFloat(_0x115ad5))){const _0x37a07b=_0x45fb00['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x45fb00['config']['get']('fontSize.options'))['find'](_0x2b32c9=>_0x2b32c9['model']==_0x115ad5);return _0x534e48+'\x20('+(_0x37a07b?_0x5bcd34(_0x37a07b['title'])['toLowerCase']():_0x115ad5)+')';}return _0x534e48+'\x20('+_0x115ad5+')';}class Z extends _0x211f0d{['_headingOptions'];['afterInit'](){const _0x4d4760=this['editor'];if(!_0x4d4760['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4d4760['config']['get']('heading.options');const _0x352f51=_0x4d4760['locale'],_0x31686e=_0x4d4760['plugins']['get']('TrackChangesEditing');_0x31686e['enableDefaultAttributesIntegration']('heading');for(const _0x18d7a1 of this['_headingOptions'])'paragraph'!=_0x18d7a1['model']&&_0x31686e['descriptionFactory']['registerElementLabel'](_0x18d7a1['model'],_0x3e01be=>{const _0x5ca9a4=this['_getHeadingLevel'](_0x18d7a1['model']);return null!==_0x5ca9a4?_0x4e98e5(_0x3e01be,_0x5ca9a4):_0x5d46dc(_0x3e01be,_0x18d7a1['title']);});function _0x4e98e5(_0x5491fd,_0x433b11){return o(_0x352f51,'ELEMENT_HEADING',[_0x5491fd,_0x433b11]);}function _0x5d46dc(_0x46676c,_0x5afbc5){return o(_0x352f51,'ELEMENT_HEADING_CUSTOM',[_0x46676c,_0x5afbc5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f6e03=this['editor'],_0x954bbd=_0x3f6e03['locale'];function _0xaee90e(_0x1f8243,_0x5f3a74){return o(_0x954bbd,'ELEMENT_HEADING_CUSTOM',[_0x1f8243,_0x5f3a74]);}_0x3f6e03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x540b32=>{if('formatBlock'!=_0x540b32['type'])return;const {data:_0x4f2224}=_0x540b32;if(_0x4f2224&&'heading'==_0x4f2224['commandName']){const _0x1a109e=_0x4f2224['commandParams'][0x0]['value'],_0x4383e2=this['_getHeadingLevel'](_0x1a109e);if(null!==_0x4383e2)return{'type':'format','content':o(_0x954bbd,'*Change\x20to:*\x20%0',(_0x5597d4=0x1,_0x49059f=_0x4383e2,o(_0x954bbd,'ELEMENT_HEADING',[_0x5597d4,_0x49059f])))};const _0x26d2d0=this['_headingOptions']['find'](_0x41f45c=>_0x41f45c['model']===_0x1a109e)['title'];return{'type':'format','content':o(_0x954bbd,'*Change\x20to:*\x20%0',_0xaee90e(0x1,_0x26d2d0))};}var _0x5597d4,_0x49059f;});}['_getHeadingLevel'](_0x1d9b33){const _0x22a59b=_0x1d9b33['match'](/^heading(\d+)/);if(_0x22a59b)return _0x22a59b[0x1];const _0x5d3efd=this['_headingOptions']?.['find'](_0x1fa37a=>_0x1fa37a['model']==_0x1d9b33);if(_0x5d3efd&&_0x5d3efd['view']){const _0x2d1f7b=_0x5d3efd['view'],_0x188144=(_0x2d1f7b['name']??_0x2d1f7b)['match'](/^h(\d+)/);if(_0x188144)return _0x188144[0x1];}return null;}}class tt extends _0x211f0d{['afterInit'](){const _0x38133a=this['editor'];if(!_0x38133a['plugins']['has']('HighlightEditing'))return;const _0xd3c555=_0x38133a['plugins']['get']('TrackChangesEditing'),_0x3440fc=_0x38133a['locale'];_0xd3c555['enableDefaultAttributesIntegration']('highlight'),_0xd3c555['registerInlineAttribute']('highlight'),_0xd3c555['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3440fc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d368=this['editor'],_0x20576b=_0x52d368['locale'];_0x52d368['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bfae8=>{if('formatInline'!=_0x3bfae8['type'])return;const {data:_0x81f864}=_0x3bfae8;if(_0x81f864&&'highlight'==_0x81f864['commandName']){const _0x82baf9=_0x20576b['t'],_0x5aa246=_0x81f864['commandParams'][0x0]['value'];if(_0x5aa246){const _0x3d6c92=_0x52d368['config']['get']('highlight.options')['find'](_0x4b40e1=>_0x4b40e1['model']==_0x5aa246),_0x35f961=_0x82baf9(_0x3d6c92['title'])['toLowerCase']();return{'type':'format','content':o(_0x20576b,'*Set\x20highlight:*\x20%0',_0x35f961),'color':{'value':_0x3d6c92['color'],'title':_0x3d6c92['title']}};}return{'type':'format','content':o(_0x20576b,'*Remove\x20highlight*',o(_0x20576b,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x211f0d{['afterInit'](){const _0x36c34a=this['editor'];if(!_0x36c34a['plugins']['has']('HorizontalLineEditing'))return;_0x36c34a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x22dc9e=_0x36c34a['plugins']['get']('TrackChangesEditing'),_0x480037=_0x36c34a['locale'];_0x22dc9e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x221cd4=>o(_0x480037,'ELEMENT_HORIZONTAL_LINE',_0x221cd4)),_0x36c34a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x213d79,{writer:_0x57d8bd,options:_0x321897})=>{if(!_0x321897['showSuggestionHighlights'])return null;const _0x34e747=_0x57d8bd['createContainerElement']('div'),_0x2f6548=_0x57d8bd['createEmptyElement']('hr');return _0x57d8bd['addClass']('ck-horizontal-line',_0x34e747),_0x57d8bd['insert'](_0x57d8bd['createPositionAt'](_0x34e747,0x0),_0x2f6548),_0x34e747;},'converterPriority':'high'});}}class nt extends _0x211f0d{['afterInit'](){const _0x355422=this['editor'];if(!_0x355422['plugins']['has']('HtmlEmbed'))return;const _0x48a255=_0x355422['plugins']['get']('TrackChangesEditing'),_0x408877=_0x355422['locale'];_0x48a255['descriptionFactory']['registerElementLabel']('rawHtml',_0x287ef3=>o(_0x408877,'ELEMENT_HTML_EMBED',_0x287ef3)),_0x48a255['enableDefaultAttributesIntegration']('htmlEmbed'),_0x48a255['registerBlockAttribute']('value'),_0x48a255['descriptionFactory']['registerDescriptionCallback'](_0xf217a6=>{if('attribute'!=_0xf217a6['type'])return;const {data:_0x5c5df9}=_0xf217a6;if(_0x5c5df9&&'value'==_0x5c5df9['key']&&_0xf217a6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2f0b63=o(_0x408877,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x408877,'*Change\x20%0\x20content*',_0x2f0b63)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c5d92=this['editor'],_0x559b97=_0x3c5d92['locale'];_0x3c5d92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe2c971=>{if('formatBlock'!=_0xe2c971['type'])return;const {data:_0x223465}=_0xe2c971;if(_0x223465&&'htmlEmbed'==_0x223465['commandName']){const _0x1c471b=o(_0x559b97,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x559b97,'*Change\x20%0\x20content*',_0x1c471b)};}});}}class et extends _0x211f0d{['afterInit'](){const _0x17895e=this['editor'];if(!_0x17895e['plugins']['has']('ImageEditing'))return;const _0x2a6ce7=_0x17895e['plugins']['get']('TrackChangesEditing'),_0x14fada=_0x17895e['plugins']['get']('ImageUtils'),_0x1a5b2b=_0x17895e['locale'];_0x2a6ce7['enableCommand']('insertImage'),_0x2a6ce7['descriptionFactory']['registerElementLabel']('imageBlock',_0x271b8f=>o(_0x1a5b2b,'ELEMENT_IMAGE',_0x271b8f)),_0x2a6ce7['descriptionFactory']['registerElementLabel']('imageInline',_0xf2ef8=>o(_0x1a5b2b,'ELEMENT_INLINE_IMAGE',_0xf2ef8)),_0x2a6ce7['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1a5b2b,'ELEMENT_CAPTION')),_0x17895e['plugins']['has']('ImageUploadEditing')&&_0x2a6ce7['enableCommand']('uploadImage'),_0x17895e['plugins']['has']('ImageBlockEditing')&&_0x17895e['plugins']['has']('ImageInlineEditing')&&(_0x2a6ce7['enableCommand']('imageTypeInline',(_0x3f82bd,_0x20264c)=>{const _0x5e0196=_0x14fada['getClosestSelectedImageElement'](_0x17895e['model']['document']['selection']);_0x17895e['model']['change'](()=>{_0x2a6ce7['markBlockFormat'](_0x5e0196,{'commandName':'imageTypeInline','commandParams':[_0x20264c]},[],'convertBlockImageToInline');});}),_0x2a6ce7['enableCommand']('imageTypeBlock',(_0x1b2949,_0xbb2be4)=>{_0x17895e['model']['change'](_0x31f706=>{let _0x2a92d2=_0x14fada['getClosestSelectedImageElement'](_0x17895e['model']['document']['selection']),_0x1f6b0c=_0x31f706['createRangeOn'](_0x2a92d2);const _0x188b6d=_0x51972a['fromPosition'](_0x1f6b0c['start'],'toPrevious'),_0x3f5de7=_0x51972a['fromPosition'](_0x1f6b0c['end'],'toNext');_0x2a6ce7['forceDefaultExecution'](()=>_0x1b2949(_0xbb2be4)),_0x2a92d2=_0x14fada['getClosestSelectedImageElement'](_0x17895e['model']['document']['selection']),_0x1f6b0c=_0x31f706['createRangeOn'](_0x2a92d2);const _0x273bd9=_0x31f706['createRange'](_0x188b6d,_0x3f5de7);_0x188b6d['detach'](),_0x3f5de7['detach'](),_0x2a6ce7['markBlockFormat'](_0x2a92d2,{'commandName':'imageTypeInline','commandParams':[_0xbb2be4]},[],'convertInlineImageToBlock'),_0x273bd9['start']['isBefore'](_0x1f6b0c['start'])&&_0x2a6ce7['markInsertion'](_0x31f706['createRange'](_0x273bd9['start'],_0x1f6b0c['start']),'convertInlineImageToBlock'),_0x1f6b0c['end']['isBefore'](_0x273bd9['end'])&&_0x2a6ce7['markInsertion'](_0x31f706['createRange'](_0x1f6b0c['end'],_0x273bd9['end']),'convertInlineImageToBlock');});}),_0x2a6ce7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2a6ce7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2a6ce7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2a6ce7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2a6ce7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2a6ce7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1b221e])=>{const _0x162cb1=_0x2a6ce7['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x14521e=_0x1b221e['start'],_0xd659eb=_0x1b221e['end'];const _0x16378f=_0x17895e['model']['schema']['getNearestSelectionRange'](_0x14521e,'backward'),_0x49b135=_0x17895e['model']['schema']['getNearestSelectionRange'](_0xd659eb,'forward');_0x16378f['isCollapsed']&&(_0x14521e=_0x16378f['start']),_0x49b135['isCollapsed']&&(_0xd659eb=_0x49b135['end']),_0x162cb1([_0x17895e['model']['createRange'](_0x14521e,_0xd659eb)]);}),_0x2a6ce7['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18459a),_0x2a6ce7['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18459a)),_0x17895e['plugins']['has']('ImageCaptionEditing')&&(_0x2a6ce7['enableCommand']('toggleImageCaption',(_0x3f31e0,_0x22247f)=>{const _0x2fd39d=_0x17895e['plugins']['get']('ImageCaptionUtils');let _0x1bba71=_0x14fada['getClosestSelectedImageElement'](_0x17895e['model']['document']['selection']),_0x1b5bfb=_0x2fd39d['getCaptionFromImageModelElement'](_0x1bba71);_0x17895e['model']['change'](()=>{if(_0x1b5bfb)return void _0x2a6ce7['markDeletion'](_0x17895e['model']['createRangeOn'](_0x1b5bfb));const _0x478889=_0x14fada['isBlockImage'](_0x1bba71);_0x3f31e0(_0x22247f),_0x1bba71=_0x14fada['getClosestSelectedImageElement'](_0x17895e['model']['document']['selection']),_0x1b5bfb=_0x2fd39d['getCaptionFromImageModelElement'](_0x1bba71),_0x2a6ce7['markInsertion'](_0x17895e['model']['createRangeOn'](_0x1b5bfb),_0x478889?null:'imageCaption');});}),_0x2a6ce7['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18459a));const _0x6d8d7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5df9d8(_0x28442b,_0x398b28){const _0x3bf7bf=_0x6d8d7['findIndex'](({type:_0x34de83,subType:_0x4ee28c})=>_0x28442b['type']==_0x34de83&&_0x28442b['subType']==_0x4ee28c),_0x1ee0ae=_0x6d8d7['findIndex'](({type:_0x5aa352,subType:_0x2e9c85})=>_0x398b28['type']==_0x5aa352&&_0x398b28['subType']==_0x2e9c85);if(_0x3bf7bf<0x0||_0x1ee0ae<0x0)return!0x1;const _0x30c874=_0x28442b['getFirstRange'](),_0x57b5d5=_0x398b28['getFirstRange']();if((0x0==_0x3bf7bf||0x1==_0x3bf7bf)&&0x2==_0x1ee0ae&&_0x30c874['isIntersecting'](_0x57b5d5))return!0x0;if(0x2==_0x3bf7bf&&0x3==_0x1ee0ae){const _0x13987b=_0x2a6ce7['_findSuggestions'](_0x30c874,'insertion')['filter'](({suggestion:_0x3718d0,meta:_0x26f9fb})=>_0x26f9fb['isOwn']&&'convertInlineImageToBlock'==_0x3718d0['subType']);if(_0x13987b['length']>0x1&&_0x57b5d5['end']['isEqual'](_0x30c874['start']))return!0x0;if(0x1==_0x13987b['length']&&(_0x30c874['start']['isEqual'](_0x57b5d5['end'])||_0x30c874['end']['isEqual'](_0x57b5d5['start'])))return!0x0;}if(0x3==_0x3bf7bf&&0x3==_0x1ee0ae&&_0x30c874['start']['isBefore'](_0x57b5d5['start'])){const _0x49098e=_0x30c874['end']['nodeAfter'],_0x5229db=_0x57b5d5['start']['nodeBefore'];return _0x14fada['isBlockImage'](_0x49098e)&&_0x49098e===_0x5229db;}return!0x1;}function _0x18459a(_0x4f1292,_0xf7e7af){return _0x5df9d8(_0x4f1292,_0xf7e7af)?[_0x4f1292,_0xf7e7af]:_0x5df9d8(_0xf7e7af,_0x4f1292)?[_0xf7e7af,_0x4f1292]:null;}_0x17895e['plugins']['has']('ImageResize')&&(_0x2a6ce7['enableDefaultAttributesIntegration']('resizeImage'),_0x2a6ce7['registerBlockAttribute']('resizedWidth'),_0x2a6ce7['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1a5b2b,'FORMAT_IMAGE_SIZE'))),_0x17895e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2a6ce7['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2a6ce7['registerBlockAttribute']('alt')),_0x17895e['plugins']['has']('PictureEditing')&&(_0x2a6ce7['registerBlockAttribute']('sources'),_0x2a6ce7['descriptionFactory']['registerDescriptionCallback'](_0x3b20d7=>{if('attribute'!=_0x3b20d7['type'])return;const {data:_0x15a2ae}=_0x3b20d7;return _0x15a2ae&&'sources'==_0x15a2ae['key']?{'type':'format','content':''}:void 0x0;})),_0x17895e['plugins']['has']('ImageSizeAttributes')&&(_0x2a6ce7['registerBlockAttribute']('width'),_0x2a6ce7['registerBlockAttribute']('height'),_0x2a6ce7['descriptionFactory']['registerDescriptionCallback'](_0x3f4637=>{if('attribute'!=_0x3f4637['type'])return;const {data:_0x1d44f6}=_0x3f4637;return!_0x1d44f6||'width'!=_0x1d44f6['key']&&'height'!=_0x1d44f6['key']?void 0x0:{'type':'format','content':''};})),_0x2a6ce7['descriptionFactory']['registerDescriptionCallback'](_0x412f13=>{if(!!_0x6d8d7['find'](({type:_0x4fdbab,subType:_0x29b36f})=>_0x412f13['type']==_0x4fdbab&&_0x412f13['subType']==_0x29b36f))return _0x412f13['previous']?{}:void 0x0;}),_0x2a6ce7['descriptionFactory']['registerDescriptionCallback'](_0x37e6ca=>{if('insertion'==_0x37e6ca['type']||'deletion'==_0x37e6ca['type']){const _0x47c419=_0x37e6ca['getContainedElement']();if(_0x47c419&&_0x47c419['is']('element','caption'))return{'type':'insertion'==_0x37e6ca['type']?'addObject':'removeObject','element':_0x47c419,'quantity':0x1};}}),_0x2a6ce7['descriptionFactory']['registerDescriptionCallback'](_0x3f849=>'formatBlock'==_0x3f849['type']&&'convertInlineImageToBlock'==_0x3f849['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3f849['type']&&'convertBlockImageToInline'==_0x3f849['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2a6ce7['descriptionFactory']['registerDescriptionCallback'](_0x40e2b9=>{if('attribute'!=_0x40e2b9['type'])return;const {data:_0x2484c1}=_0x40e2b9;if(!_0x2484c1||'alt'!=_0x2484c1['key'])return;const _0x4a1088=_0x2484c1['newValue'];return _0x4a1088?{'type':'format','content':o(_0x1a5b2b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4a1088+'\x22')}:{'type':'format','content':o(_0x1a5b2b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bb4b5=this['editor'],_0x53aed4=_0x2bb4b5['locale'];_0x2bb4b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e3709=>{if('formatBlock'!=_0x1e3709['type']&&'formatInline'!=_0x1e3709['type'])return;const {data:_0x3c85d0}=_0x1e3709;if(_0x3c85d0){if('imageTextAlternative'==_0x3c85d0['commandName']){const _0x9618f7=_0x3c85d0['commandParams'][0x0]['newValue'];return _0x9618f7?{'type':'format','content':o(_0x53aed4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9618f7+'\x22')}:{'type':'format','content':o(_0x53aed4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3c85d0['commandName']){const _0x3b6f5e=_0x3c85d0['commandParams'][0x0]['width'];return _0x3b6f5e?{'type':'format','content':o(_0x53aed4,'*Set\x20image\x20width:*\x20%0',_0x3b6f5e)}:{'type':'format','content':o(_0x53aed4,'*Reset\x20image\x20width*')};}}});}}class st extends _0x211f0d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4de12b=this['editor']['locale'],_0x183d11=this['editor']['plugins']['get']('TrackChangesEditing');_0x183d11['enableDefaultAttributesIntegration']('replaceImageSource'),_0x183d11['registerBlockAttribute']('src'),_0x183d11['descriptionFactory']['registerDescriptionCallback'](_0x56be23=>{if('attribute'!=_0x56be23['type'])return;const {data:_0x431f9f}=_0x56be23;return _0x431f9f&&'src'==_0x431f9f['key']?_0x431f9f['newValue']&&_0x431f9f['oldValue']?{'type':'format','content':o(_0x4de12b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b6f75=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b6f75['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3b6f75['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b6f75['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3b6f75['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38a044=this['editor'],_0x4a17ba=_0x38a044['locale'];_0x38a044['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d0df=>{if('formatBlock'!=_0x34d0df['type']&&'formatInline'!=_0x34d0df['type'])return;const {data:_0x43f06b}=_0x34d0df;if(!_0x43f06b||'replaceImageSource'!=_0x43f06b['commandName'])return;return{'type':'format','content':o(_0x4a17ba,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x211f0d{['afterInit'](){const _0x44c4bc=this['editor'];if(!_0x44c4bc['plugins']['has']('ImageStyleEditing'))return;const _0x396f86=_0x44c4bc['plugins']['get']('TrackChangesEditing'),_0x3ec64f=_0x44c4bc['plugins']['get']('ImageUtils'),_0x2b480d={};_0x396f86['enableCommand']('imageStyle',(_0x58773b,_0x58b891)=>{const _0x2e5ca7=_0x44c4bc['plugins']['get']('Users')['me'],_0x5232b6=_0x44c4bc['commands']['get']('imageStyle');let _0x397cb9=_0x3ec64f['getClosestSelectedImageElement'](_0x44c4bc['model']['document']['selection']),_0x10205c=_0x44c4bc['model']['createRangeOn'](_0x397cb9),_0x50315a=_0x5232b6['value'];if(_0x50315a==_0x58b891['value'])return;const _0x553866={'commandName':'imageStyle','commandParams':[_0x58b891],'formatGroupId':_0x36dab6()};_0x44c4bc['model']['change'](()=>{if(_0x396f86['getSuggestions']()['filter'](_0x9e2bd=>_0x9e2bd['isInContent']&&_0x2e5ca7==_0x9e2bd['author']&&('formatBlock'==_0x9e2bd['type']||'formatInline'==_0x9e2bd['type'])&&('imageStylePreApply'==_0x9e2bd['subType']||'imageStylePostApply'==_0x9e2bd['subType'])&&_0x9e2bd['getFirstRange']()['isEqual'](_0x10205c))['forEach'](_0x3badab=>_0x396f86['discardSuggestion'](_0x3badab['head'])),_0x397cb9=_0x3ec64f['getClosestSelectedImageElement'](_0x44c4bc['model']['document']['selection']),_0x10205c=_0x44c4bc['model']['createRangeOn'](_0x397cb9),_0x5232b6['refresh'](),_0x44c4bc['commands']['get']('imageTypeInline')['refresh'](),_0x44c4bc['commands']['get']('imageTypeBlock')['refresh'](),_0x50315a=_0x5232b6['value'],_0x50315a!=_0x58b891['value'])return _0x3ec64f['isInlineImage'](_0x397cb9)&&_0x5232b6['shouldConvertImageType'](_0x58b891['value'],_0x397cb9)?(_0x58773b({..._0x58b891,'setImageSizes':!0x1}),_0x397cb9=_0x3ec64f['getClosestSelectedImageElement'](_0x44c4bc['model']['document']['selection']),void _0x396f86['markBlockFormat'](_0x397cb9,{..._0x553866,'commandReversedParams':[{'value':_0x50315a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3ec64f['isBlockImage'](_0x397cb9)?_0x396f86['markBlockFormat'](_0x397cb9,_0x553866,[],'imageStylePostApply'):_0x396f86['markInlineFormat'](_0x10205c,_0x553866,'imageStylePostApply'));});});for(const _0x522f1d of _0x44c4bc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2b480d[_0x522f1d['name']]=_0x522f1d['title']['toLowerCase']();_0x396f86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x396f86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x396f86['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x396f86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x447e68])=>{_0x3ec64f['setImageNaturalSizeAttributes'](_0x447e68['getContainedElement']());}),_0x396f86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x388704,_0x1981a6)=>{_0x396f86['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x388704,{'commandName':_0x1981a6['commandName'],'commandParams':_0x1981a6['commandReversedParams']});}),_0x396f86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x39bc55,_0x29f6ea){if(_0x5408f4(_0x39bc55,_0x29f6ea))return[_0x39bc55,_0x29f6ea];if(_0x5408f4(_0x29f6ea,_0x39bc55))return[_0x29f6ea,_0x39bc55];return null;});const _0x415611=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5408f4(_0x9cf7b,_0x225f1d){const _0x257532=_0x415611['findIndex'](({type:_0x22c290,subType:_0x43eb4b})=>_0x9cf7b['type']==_0x22c290&&_0x9cf7b['subType']==_0x43eb4b),_0xa319dc=_0x415611['findIndex'](({type:_0x83c8f5,subType:_0x753a9c})=>_0x225f1d['type']==_0x83c8f5&&_0x225f1d['subType']==_0x753a9c);if(_0x257532<0x0||_0xa319dc<0x0)return!0x1;const _0x25cbd1=_0x9cf7b['getFirstRange'](),_0x5df054=_0x225f1d['getFirstRange']();if((0x0==_0x257532||0x1==_0x257532)&&0x2==_0xa319dc&&_0x25cbd1['isIntersecting'](_0x5df054))return!0x0;if(0x2==_0x257532&&0x3==_0xa319dc){const _0x41e0bc=_0x396f86['_findSuggestions'](_0x25cbd1,'insertion')['filter'](({suggestion:_0x2d1164,meta:_0x239cd7})=>_0x239cd7['isOwn']&&'convertInlineImageToBlock'==_0x2d1164['subType']);if(_0x41e0bc['length']>0x1&&_0x5df054['end']['isEqual'](_0x25cbd1['start']))return!0x0;if(0x1==_0x41e0bc['length']&&(_0x25cbd1['start']['isEqual'](_0x5df054['end'])||_0x25cbd1['end']['isEqual'](_0x5df054['start'])))return!0x0;}if(0x3==_0x257532&&0x3==_0xa319dc&&_0x25cbd1['start']['isBefore'](_0x5df054['start'])){const _0xaa88f=_0x25cbd1['end']['nodeAfter'],_0x1bec79=_0x5df054['start']['nodeBefore'];return _0x3ec64f['isBlockImage'](_0xaa88f)&&_0xaa88f===_0x1bec79;}return!0x1;}_0x44c4bc['model']['document']['registerPostFixer'](()=>{let _0x3e71a4=!0x1;const _0x370141=Array['from'](_0x44c4bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fd297,data:_0xf6054c}of _0x370141){const {group:_0x11b3b2,type:_0x158e85,subType:_0x3a22fb,id:_0x1a7565}=_0x396f86['_splitMarkerName'](_0x3fd297);if('suggestion'==_0x11b3b2&&_0x396f86['hasSuggestion'](_0x1a7565)){if('formatBlock'==_0x158e85&&('imageStylePreApply'==_0x3a22fb||'imageStylePostApply'==_0x3a22fb)){const _0x319b3b=_0x396f86['getSuggestion'](_0x1a7565);if(_0xf6054c['newRange']){const _0xf76bee=_0x319b3b['getFirstRange']()['getContainedElement']();if(_0x3ec64f['isBlockImage'](_0xf76bee))continue;_0x396f86['discardSuggestion'](_0x319b3b),_0x3e71a4=!0x0;}}if('insertion'==_0x158e85&&'imageCaption'==_0x3a22fb&&!_0xf6054c['newRange']){const _0x171ebc=_0x396f86['getSuggestion'](_0x1a7565);_0x171ebc['next']&&_0x171ebc['next']['isInContent']&&(_0x396f86['discardSuggestion'](_0x171ebc['next']),_0x3e71a4=!0x0);}}}return _0x3e71a4;}),this['_registerLegacyDescription'](_0x2b480d);}['_registerLegacyDescription'](_0x40fbea){const _0x1304ef=this['editor'],_0x39c570=_0x1304ef['locale'];_0x1304ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ef137=>{if('formatBlock'!=_0x4ef137['type']&&'formatInline'!=_0x4ef137['type'])return;const {data:_0x2b44ab}=_0x4ef137;if(!_0x2b44ab||'imageStyle'!=_0x2b44ab['commandName'])return;const _0x30343b=_0x2b44ab['commandParams'][0x0]['value'];return _0x273a70('side'===_0x30343b?o(_0x39c570,'FORMAT_SIDE_IMAGE'):_0x40fbea[_0x30343b]||_0x30343b);function _0x273a70(_0x1a6273){return{'type':'format','content':o(_0x39c570,'*Format:*\x20%0',_0x1a6273)};}});}}class rt extends _0x211f0d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x12b2ac){super(_0x12b2ac),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3ad01a=this['editor'],_0x41ee59=_0x3ad01a['commands']['get']('importWord'),_0x396086=_0x3ad01a['commands']['get']('trackChanges');_0x41ee59&&(_0x41ee59['on']('execute',(_0x170343,[,_0x5828a3])=>{this['_trackChangesValueDuringImport']=_0x396086['value'],_0x5828a3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x41ee59,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x41ee59,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x396086['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3ad01a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x18d978,_0x2c2ea4){const {suggestions:_0x46ce4c}=_0x2c2ea4,_0x55610c=this['editor']['commands']['get']('trackChanges'),_0x586f8a=_0x55610c['value'];this['_trackChangesValueDuringImport']!==_0x586f8a&&(_0x55610c['execute'](),this['_trackChangesExecuted']=!0x0),_0x46ce4c&&_0x46ce4c['forEach'](({id:_0x566d25,type:_0x31498c,author:_0x224858,created_at:_0x512fec})=>{const _0xb01c98={'id':_0x566d25,'type':_0x31498c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x224858,'createdAt':_0x512fec?new Date(_0x512fec):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb01c98);});}}class at extends _0x211f0d{['afterInit'](){const _0x469e9e=this['editor'],_0x301b7b=_0x469e9e['plugins']['get']('TrackChangesEditing');if(_0x469e9e['plugins']['has']('IndentEditing')&&(_0x301b7b['enableCommand']('indent'),_0x301b7b['enableCommand']('outdent')),_0x469e9e['plugins']['has']('IndentBlock')){for(const _0x5617f0 of['indentBlock','outdentBlock'])_0x301b7b['enableDefaultAttributesIntegration'](_0x5617f0);}const _0x529b5e=_0x469e9e['locale'];_0x301b7b['registerBlockAttribute']('blockIndent'),_0x301b7b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x529b5e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x363325=this['editor'],_0x4aa8f2=_0x363325['locale'],_0x18c7c1=_0x363325['plugins']['get']('TrackChangesEditing');_0x18c7c1['descriptionFactory']['registerDescriptionCallback'](_0x2cdfe9=>{if('formatBlock'!=_0x2cdfe9['type'])return;const {data:_0x59e02e}=_0x2cdfe9;if(!_0x59e02e)return;if('indentBlock'!=_0x59e02e['commandName']&&'outdentBlock'!=_0x59e02e['commandName'])return;const _0x18b4a2=_0x2cdfe9['getItems']()[0x0],_0x155975=_0x18c7c1['descriptionFactory']['getItemLabel'](_0x18b4a2);return'indentBlock'==_0x59e02e['commandName']?{'type':'format','content':o(_0x4aa8f2,'*Indent:*\x20%0',_0x155975)}:'outdentBlock'==_0x59e02e['commandName']?{'type':'format','content':o(_0x4aa8f2,'*Outdent:*\x20%0',_0x155975)}:void 0x0;});}}class ct extends _0x211f0d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x211f0d{['afterInit'](){const _0x141319=this['editor'];if(!_0x141319['plugins']['has']('LinkEditing'))return;const _0x37b331=_0x141319['plugins']['get']('TrackChangesEditing'),_0xa75e7f=_0x141319['commands']['get']('link');_0x37b331['enableDefaultAttributesIntegration']('link'),_0x37b331['enableDefaultAttributesIntegration']('unlink'),_0x37b331['registerInlineAttribute']('linkHref');for(const _0x12bce3 of _0xa75e7f['manualDecorators'])_0x37b331['registerInlineAttribute'](_0x12bce3['id']),_0x37b331['descriptionFactory']['registerAttributeLabel'](_0x12bce3['id'],'link\x20('+_0x12bce3['label']['toLowerCase']()+')');_0x37b331['descriptionFactory']['registerDescriptionCallback'](_0x25eced=>{if('attribute'!=_0x25eced['type'])return;const {data:_0x19d346}=_0x25eced;if(!_0x19d346||'linkHref'!=_0x19d346['key'])return;const _0x56f0a2=_0x19d346['newValue'],_0x2c466f=_0x141319['locale'];return{'type':'format','content':null==_0x56f0a2?o(_0x2c466f,'*Remove\x20link*'):o(_0x2c466f,'*Set\x20link:*\x20%0','\x22'+_0x56f0a2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5fdc3f=this['editor'],_0x4ed813=_0x5fdc3f['locale'];_0x5fdc3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ce55e=>{if('formatInline'!=_0x2ce55e['type'])return;const {data:_0x4f1770}=_0x2ce55e;if(_0x4f1770){if('link'==_0x4f1770['commandName']){const _0x113d62=_0x4f1770['commandParams'][0x0];return{'type':'format','content':o(_0x4ed813,'*Set\x20link:*\x20%0','\x22'+_0x113d62+'\x22')};}return'unlink'==_0x4f1770['commandName']?{'type':'format','content':o(_0x4ed813,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x211f0d{['afterInit'](){const _0x194d12=this['editor'],_0x361015=_0x194d12['locale'];if(!_0x194d12['plugins']['has']('LegacyListEditing'))return;const _0x1f6de0=_0x194d12['plugins']['get']('TrackChangesEditing'),_0x17d0f9=_0x194d12['plugins']['has']('LegacyTodoListEditing');function _0x1c59b9(_0x4b9c70){return()=>{const _0x57b263=_0x194d12['model']['document']['selection'],_0x2260c5=_0x194d12['commands']['get'](_0x4b9c70);if(_0x2260c5['value'])return void _0x194d12['execute']('paragraph',{});const _0x353790=_0x4b9c70['slice'](0x0,-0x4),_0x3aed05=function(_0x28c536,_0x2418c3,_0x4f66d5){let _0x2f72cb=Array['from'](_0x28c536)['filter'](_0xd33699=>function(_0x4a2d29,_0x3e5ef0){return _0x3e5ef0['checkChild'](_0x4a2d29['parent'],'listItem')&&!_0x3e5ef0['isObject'](_0x4a2d29);}(_0xd33699,_0x4f66d5));_0x2f72cb=_0x2f72cb['filter'](_0x5b87f7=>!_0x5b87f7['is']('element','listItem')||_0x5b87f7['getAttribute']('listType')!=_0x2418c3);const _0x3d8559=new Set();for(const _0x485cc9 of _0x2f72cb)_0x485cc9['is']('element','listItem')?_0x3d8559['add'](Le(_0x485cc9)):_0x3d8559['add'](_0x485cc9);return Array['from'](_0x3d8559);}(_0x57b263['getSelectedBlocks'](),_0x353790,_0x194d12['model']['schema']);_0x194d12['model']['change'](()=>{for(const _0x2ac111 of _0x3aed05)_0x1f6de0['markBlockFormat'](_0x2ac111,{'commandName':_0x4b9c70,'commandParams':[{'forceValue':!_0x2260c5['value']}],'formatGroupId':'blockName'},Ee(_0x2ac111));});};}function _0x137629(_0x41bc7a){return()=>{const _0xbc3fa8=function(_0x177320){let _0x31a109=Array['from'](_0x177320);const _0x3f8a99=_0x31a109['findIndex'](_0x200f55=>'listItem'!=_0x200f55['name']);return _0x3f8a99>-0x1&&(_0x31a109=_0x31a109['slice'](0x0,_0x3f8a99)),_0x31a109;}(_0x194d12['model']['document']['selection']['getSelectedBlocks']()),_0x178909=_0x194d12['model']['createRange'](_0x194d12['model']['createPositionAt'](_0xbc3fa8[0x0],'before'),_0x194d12['model']['createPositionAt'](_0xbc3fa8[_0xbc3fa8['length']-0x1],'end'));_0x194d12['model']['change'](()=>{_0x1f6de0['markBlockFormat'](_0x178909,{'commandName':_0x41bc7a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1d2782){const _0x2ae508=new Set();for(const _0x27c82d of _0x1d2782){let _0x4dafca=_0x27c82d['nextSibling'];for(;_0x4dafca&&_0x4dafca['getAttribute']('listIndent')>_0x27c82d['getAttribute']('listIndent');)_0x2ae508['add'](_0x4dafca),_0x4dafca=_0x4dafca['nextSibling'];}return Array['from'](_0x2ae508);}(_0xbc3fa8));});};}_0x1f6de0['enableCommand']('numberedList',_0x1c59b9('numberedList')),_0x1f6de0['enableCommand']('bulletedList',_0x1c59b9('bulletedList')),_0x17d0f9&&_0x1f6de0['enableCommand']('todoList',_0x1c59b9('todoList')),_0x1f6de0['enableCommand']('indentList',_0x137629('indentList')),_0x1f6de0['enableCommand']('outdentList',_0x137629('outdentList')),_0x17d0f9&&_0x1f6de0['enableCommand']('checkTodoList',()=>{const _0x23a5b0=_0x194d12['commands']['get']('checkTodoList'),_0x4f62b2=Array['from'](_0x23a5b0['_selectedElements']);_0x4f62b2['filter'](_0x50342d=>_0x50342d['getAttribute']('todoListChecked')!=_0x23a5b0['value']),_0x194d12['model']['change'](()=>{for(const _0x3bf18b of _0x4f62b2)_0x1f6de0['markBlockFormat'](_0x3bf18b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x23a5b0['value']}]});});}),_0x1f6de0['descriptionFactory']['registerElementLabel']('listItem',_0x327233=>o(_0x361015,'ELEMENT_LIST_ITEM',_0x327233)),_0x1f6de0['descriptionFactory']['registerDescriptionCallback'](_0x90b944=>{if('formatBlock'!=_0x90b944['type']&&'formatInline'!=_0x90b944['type'])return;const {data:_0x46b10e}=_0x90b944;if(_0x46b10e){if('numberedList'==_0x46b10e['commandName']||'bulletedList'==_0x46b10e['commandName']||'todoList'==_0x46b10e['commandName'])switch(_0x46b10e['commandName']['replace']('List','')){case'bulleted':return _0x342e47(o(_0x361015,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x342e47(o(_0x361015,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x342e47(o(_0x361015,'ELEMENT_TODO_LIST'));}if('indentList'==_0x46b10e['commandName'])return{'type':'format','content':o(_0x361015,'*Indent:*\x20%0',o(_0x361015,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x46b10e['commandName'])return{'type':'format','content':o(_0x361015,'*Outdent:*\x20%0',o(_0x361015,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x46b10e['commandName'])return _0x46b10e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x361015,'*Check\x20item*')}:{'type':'format','content':o(_0x361015,'*Uncheck\x20item*')};}function _0x342e47(_0x16df76){return{'type':'format','content':o(_0x361015,'*Change\x20to:*\x20%0',_0x16df76)};}});}}function Le(_0x20afa0){const _0xd5cf1=_0x20afa0['getAttribute']('listIndent');if(0x0==_0xd5cf1)return _0x20afa0;let _0x168882=_0x20afa0;for(;_0x20afa0['previousSibling']&&_0x20afa0['previousSibling']['is']('element','listItem');){const _0x365611=_0x20afa0['previousSibling']['getAttribute']('listIndent');if(_0x365611==_0xd5cf1)_0x168882=_0x20afa0['previousSibling'];else{if(_0x365611<_0xd5cf1)break;}_0x20afa0=_0x20afa0['previousSibling'];}return _0x168882;}function Ee(_0x3a4820){const _0x3d1a85=[];if(_0x3a4820['is']('element','listItem')&&_0x3a4820['getAttribute']('listIndent')>0x0){let _0x451e03=_0x3a4820['nextSibling'];for(;_0x451e03&&'listItem'==_0x451e03['name']&&_0x451e03['getAttribute']('listIndent')==_0x3a4820['getAttribute']('listIndent');)_0x3d1a85['push'](_0x451e03),_0x451e03=_0x451e03['nextSibling'];}return _0x3d1a85;}class ht extends _0x211f0d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4e9a1f=this['editor']['config']['get']('list.properties'),_0x503dc4=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e9a1f['styles']&&_0x503dc4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4e9a1f['reversed']&&_0x503dc4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4e9a1f['startIndex']&&_0x503dc4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x503dc4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x8eb90b,_0x23ba77={}){const _0x3eb4ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x476733=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3eb4ea['markMultiRangeBlockFormat'](_0x476733,{'commandName':'listStyle','commandParams':[{'type':_0x23ba77['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5189b6,_0x11489c={}){const _0xa5e89d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x522dd4=this['_getSuggestionBlocks'](_0x43aa43=>_0x43aa43['is']('element','listItem')&&'numbered'===_0x43aa43['getAttribute']('listType'));if(_0x522dd4['length']<0x1)return;const _0x395991=_0x522dd4['map'](_0x5484c9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5484c9,'before'),this['editor']['model']['createPositionAt'](_0x5484c9,0x0)));this['editor']['model']['change'](()=>{_0xa5e89d['markMultiRangeBlockFormat'](_0x395991,{'commandName':'listReversed','commandParams':[{'reversed':_0x11489c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5af58f,_0x4546e6={}){const _0x3f48e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x476df8=this['_getSuggestionBlocks'](_0xb7213b=>_0xb7213b['is']('element','listItem')&&'numbered'===_0xb7213b['getAttribute']('listType'));if(_0x476df8['length']<0x1)return;const _0x35875f=_0x476df8['map'](_0x5d0f5f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d0f5f,'before'),this['editor']['model']['createPositionAt'](_0x5d0f5f,0x0)));this['editor']['model']['change'](()=>{_0x3f48e7['markMultiRangeBlockFormat'](_0x35875f,{'commandName':'listStart','commandParams':[{'startIndex':_0x4546e6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x18b999){if('formatBlock'!=_0x18b999['type']&&'formatInline'!=_0x18b999['type'])return;const _0x250fea=this['editor']['locale'],{data:_0xad5f88}=_0x18b999;if(!_0xad5f88)return;let _0x1189dc,_0x2a37e2;switch(_0xad5f88['commandName']){case'listStyle':_0x1189dc='*Change\x20to:*\x20%0',_0x2a37e2={'type':'format','content':o(_0x250fea,_0x1189dc,o(_0x250fea,this['_getTranslationKeyForListStyle'](_0xad5f88['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1189dc=_0xad5f88['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2a37e2={'type':'format','content':o(_0x250fea,_0x1189dc)};break;case'listStart':_0x1189dc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2a37e2={'type':'format','content':o(_0x250fea,_0x1189dc,_0xad5f88['commandParams'][0x0]['startIndex'])};}return _0x2a37e2;}['_getSuggestionBlocksForListStyle'](){const _0x584133=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b6918=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b6918[0x0]?.['is']('element','listItem')&&_0x5b6918['unshift'](..._0x584133['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b6918[_0x5b6918['length']-0x1]?.['is']('element','listItem')&&_0x5b6918['push'](..._0x584133['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b6918=[...new Set(_0x5b6918)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b6918=_0x5b6918['filter'](_0xdbb5d8=>_0xdbb5d8['is']('element','listItem'))),_0x5b6918;}['_getSuggestionBlocks'](_0x4eee7c){const _0x57ca54=this['editor']['plugins']['get']('LegacyListUtils');let _0xa96999=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4eee7c)['map'](_0x4ef0e6=>{const _0x48c2d3=this['editor']['model']['createPositionAt'](_0x4ef0e6,0x0);return[..._0x57ca54['getSiblingNodes'](_0x48c2d3,'backward'),..._0x57ca54['getSiblingNodes'](_0x48c2d3,'forward')];})['flat']();return _0xa96999=[...new Set(_0xa96999)],_0xa96999;}['_getTranslationKeyForListStyle'](_0x1c232b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1c232b)||'default')['toUpperCase']()+'_LIST_'+_0x1c232b['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x211f0d{['afterInit'](){const _0x5a4c2b=this['editor'];if(!_0x5a4c2b['plugins']['has']('MediaEmbedEditing'))return;const _0x46f8b5=_0x5a4c2b['plugins']['get']('TrackChangesEditing'),_0x5d4220=_0x5a4c2b['locale'];_0x46f8b5['enableCommand']('mediaEmbed'),_0x46f8b5['descriptionFactory']['registerElementLabel']('media',_0x29088b=>o(_0x5d4220,'ELEMENT_MEDIA',_0x29088b)),_0x5a4c2b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4740ce,{writer:_0x2f9a84,options:_0x226477})=>{if(_0x226477['showSuggestionHighlights'])return _0x2f9a84['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a4c2b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x59c3e6,_0x50ec29,_0x4fe6b1)=>{_0x4fe6b1['options']['showSuggestionHighlights']&&_0x59c3e6['stop']();},{'priority':'high'});}}class lt extends _0x211f0d{['afterInit'](){const _0xb3fb3d=this['editor'];_0xb3fb3d['plugins']['has']('MentionEditing')&&_0xb3fb3d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x211f0d{['afterInit'](){const _0x3fa4bb=this['editor'];if(!_0x3fa4bb['plugins']['has']('MergeFieldsEditing'))return;const _0x271659=_0x3fa4bb['plugins']['get']('TrackChangesEditing'),_0x52ebaa=_0x3fa4bb['locale'];_0x271659['enableCommand']('insertMergeField'),_0x271659['enableCommand']('insertMergeFieldBlock'),_0x271659['enableCommand']('insertMergeFieldImage'),_0x271659['descriptionFactory']['registerElementLabel']('mergeField',_0x19acd5=>o(_0x52ebaa,'ELEMENT_MERGE_FIELD',_0x19acd5)),_0x271659['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xdde1d6=>o(_0x52ebaa,'ELEMENT_MERGE_FIELD',_0xdde1d6)),_0x271659['descriptionFactory']['registerDescriptionCallback'](_0x5f1793=>{if('insertion'!=_0x5f1793['type']&&'deletion'!=_0x5f1793['type'])return;const _0x1b9de1=_0x5f1793['getContainedElement']();if(null==_0x1b9de1)return;const _0x44ab45=_0x3fa4bb['plugins']['get']('MergeFieldsEditing');let _0x1b0a23;switch(_0x44ab45['getMergeFieldType'](_0x1b9de1)){case null:return;case'image':{const _0x40a706=_0x44ab45['unwrapAffixes'](_0x1b9de1['getAttribute']('src'));_0x1b0a23=_0x44ab45['getLabel'](_0x40a706)||_0x40a706;break;}default:{const _0x4000e9=_0x1b9de1['getAttribute']('id');_0x1b0a23=_0x44ab45['getLabel'](_0x4000e9)||_0x4000e9;break;}}return'insertion'==_0x5f1793['type']?{'type':'insertion','content':o(_0x52ebaa,'*Insert:*\x20%0','\x22'+_0x1b0a23+'\x22\x20'+o(_0x52ebaa,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x52ebaa,'*Remove:*\x20%0','\x22'+_0x1b0a23+'\x22\x20'+o(_0x52ebaa,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x211f0d{['afterInit'](){const _0x2040d8=this['editor'],_0x3c837b=_0x2040d8['plugins']['get']('TrackChangesEditing');_0x2040d8['plugins']['has']('MultiLevelList')&&(_0x3c837b['enableDefaultAttributesIntegration']('multiLevelList'),_0x3c837b['registerBlockAttribute']('listMarkerStyle'),_0x3c837b['descriptionFactory']['registerDescriptionCallback'](_0x5c4750=>this['handleDescriptions'](_0x5c4750)));}['handleDescriptions'](_0x3029a4){const _0x2f50e2=this['editor']['locale'],{data:_0x4fb76a}=_0x3029a4,_0x5c5d00={'type':'format','content':''};if(_0x4fb76a&&'listMarkerStyle'==_0x4fb76a['key']){if(!_0x4fb76a['oldValue'])return{'type':'format','content':o(_0x2f50e2,'*Set\x20format:*\x20%0',o(_0x2f50e2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4fb76a['newValue']+')'};if(!_0x4fb76a['newValue']){let _0x3dc625=_0x3029a4['head'];for(;_0x3dc625;){if(_0x3dc625['data']&&'listType'==_0x3dc625['data']['key']&&_0x3dc625['data']['newValue'])return _0x5c5d00;_0x3dc625=_0x3dc625['next'];}return{'type':'format','content':o(_0x2f50e2,'*Remove\x20format:*\x20%0',o(_0x2f50e2,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4fb76a['oldValue']+')'};}}}}class pt extends _0x211f0d{['afterInit'](){const _0x39d1c5=this['editor'];if(!_0x39d1c5['plugins']['has']('PageBreakEditing'))return;_0x39d1c5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1be2aa=_0x39d1c5['plugins']['get']('TrackChangesEditing'),_0x5c3698=_0x39d1c5['locale'];_0x1be2aa['descriptionFactory']['registerElementLabel']('pageBreak',_0x3a923d=>o(_0x5c3698,'ELEMENT_PAGE_BREAK',_0x3a923d));}}class kt extends _0x211f0d{['afterInit'](){const _0x58a1ba=this['editor'];if(!_0x58a1ba['plugins']['has']('Paragraph'))return;const _0x3dda71=_0x58a1ba['locale'],_0x3d3060=_0x58a1ba['plugins']['get']('TrackChangesEditing');_0x3d3060['descriptionFactory']['registerElementLabel']('paragraph',_0x2164f5=>o(_0x3dda71,'ELEMENT_PARAGRAPH',_0x2164f5)),_0x3d3060['enableDefaultAttributesIntegration']('paragraph'),_0x3d3060['enableCommand']('insertParagraph'),_0x58a1ba['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x58a1ba),{'priority':'highest'}),_0x58a1ba['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x23eed6,_0x169f83,_0x1b5b73)=>{_0x1b5b73['options']['showSuggestionHighlights']&&nr(_0x58a1ba,{'showActiveMarker':!0x1})(_0x23eed6,_0x169f83,_0x1b5b73);},{'priority':'highest'});const _0x5e0fee=_0x3d3060['descriptionFactory'];_0x5e0fee['registerDescriptionCallback'](_0x4930e4=>{if('insertion'!==_0x4930e4['type'])return;const {start:_0x50449a,end:_0x43177c}=_0x4930e4['getFirstRange']();if(!_0x50449a['isTouching'](_0x43177c)||!_0x50449a['nodeAfter'])return;const _0x5733d2=_0x58a1ba['model']['schema'],_0x297c12=_0x50449a['nodeAfter'];return _0x5733d2['isBlock'](_0x297c12)&&!_0x5733d2['isLimit'](_0x297c12)&&_0x5733d2['checkChild'](_0x297c12,'$text')?{'type':'insertion','content':o(_0x3dda71,'*Insert:*\x20%0',_0x5e0fee['getItemLabel'](_0x297c12,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c6323=this['editor'],_0x422ac4=_0x1c6323['locale'];_0x1c6323['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12c627=>{if('formatBlock'!=_0x12c627['type'])return;const {data:_0x42cac3}=_0x12c627;return _0x42cac3&&'paragraph'==_0x42cac3['commandName']?{'type':'format','content':o(_0x422ac4,'*Change\x20to:*\x20%0',o(_0x422ac4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4f37d7,{showActiveMarker:_0x1a7bc2=!0x0}={}){return(_0x2ec78c,_0x4f0fc9,_0x2ca0ea)=>{const _0x3b9fa4=_0x4f37d7['plugins']['get']('TrackChangesEditing'),_0x3d021a=_0x4f0fc9['markerRange']['start'],_0x2ed2a7=_0x4f0fc9['markerRange']['end'],_0x1ae6c6=_0x4f37d7['model']['schema'];if(!_0x3d021a['isTouching'](_0x2ed2a7)||!_0x3d021a['nodeAfter'])return;const _0x24f7a8=_0x3d021a['nodeAfter'];if(_0x1ae6c6['isBlock'](_0x24f7a8)&&!_0x1ae6c6['isLimit'](_0x24f7a8)&&_0x1ae6c6['checkChild'](_0x24f7a8,'$text')){if(!_0x2ca0ea['consumable']['consume'](_0x4f0fc9['markerRange'],_0x2ec78c['name']))return;const {id:_0x4b6e69,authorId:_0x42ee7a}=_0x3b9fa4['_splitMarkerName'](_0x4f0fc9['markerName']),_0x58fb48=_0x2ca0ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4b6e69,'data-author-id':_0x42ee7a}),_0x1428d0=_0x2ca0ea['mapper']['toViewPosition'](_0x2ed2a7);_0x1a7bc2&&_0x3b9fa4['activeMarkers']['includes'](_0x4f0fc9['markerName'])&&_0x2ca0ea['writer']['addClass']('ck-suggestion-marker--active',_0x58fb48),_0x2ca0ea['writer']['insert'](_0x1428d0,_0x58fb48),_0x2ca0ea['mapper']['bindElementToMarker'](_0x58fb48,_0x4f0fc9['markerName']);}};}class wt extends _0x211f0d{['afterInit'](){const _0x1bed9c=this['editor'];_0x1bed9c['commands']['get']('replaceSource')&&_0x1bed9c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x211f0d{['afterInit'](){const _0x1db618=this['editor'];if(!_0x1db618['plugins']['has']('RemoveFormatEditing'))return;_0x1db618['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23f78f=this['editor'];_0x23f78f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a31e9=>{if('formatBlock'!=_0x3a31e9['type']&&'formatInline'!=_0x3a31e9['type'])return;const {data:_0x1ec035}=_0x3a31e9;return _0x1ec035&&'removeFormat'==_0x1ec035['commandName']?{'type':'format','content':o(_0x23f78f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x211f0d{['afterInit'](){const _0x3f4afe=this['editor'];if(!_0x3f4afe['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4d60de=_0x3f4afe['plugins']['get']('TrackChangesEditing');_0x4d60de['enableCommand']('goToPreviousRestrictedEditingException'),_0x4d60de['enableCommand']('goToNextRestrictedEditingException');const _0x3cb681=_0x3f4afe['plugins']['get']('RestrictedEditingModeEditing');_0x3cb681['enableCommand']('trackChanges'),_0x3cb681['enableCommand']('acceptSuggestion'),_0x3cb681['enableCommand']('discardSuggestion'),_0x3cb681['enableCommand']('acceptAllSuggestions'),_0x3cb681['enableCommand']('discardAllSuggestions'),_0x3cb681['enableCommand']('acceptSelectedSuggestions'),_0x3cb681['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x211f0d{['afterInit'](){const _0x5f3102=this['editor'];if(!_0x5f3102['plugins']['has']('ShiftEnter'))return;const _0x2d0b24=_0x5f3102['plugins']['get']('TrackChangesEditing');_0x2d0b24['enableCommand']('shiftEnter'),_0x5f3102['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5f3102),{'priority':'high'}),_0x5f3102['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5f3102),{'priority':'high'}),_0x5f3102['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a8053,_0x5635d3,_0x1f21ef)=>{_0x1f21ef['options']['showSuggestionHighlights']&&je(_0x5f3102,{'showActiveMarker':!0x1})(_0x2a8053,_0x5635d3,_0x1f21ef);}),_0x2d0b24['descriptionFactory']['registerElementLabel']('softBreak',_0x5cfd89=>o(_0x5f3102['locale'],'ELEMENT_LINE_BREAK',_0x5cfd89));}}function je(_0x164254,{showActiveMarker:_0x50b3b8=!0x0}={}){return(_0x222dc3,_0x3db877,_0x16710e)=>{const _0xe70f3=_0x164254['plugins']['get']('TrackChangesEditing');if(!_0x16710e['consumable']['test'](_0x3db877['markerRange'],_0x222dc3['name']))return;const _0x5a1be1=_0x164254['model'];for(const _0x1409f8 of _0x3db877['markerRange']['getItems']()){if(!_0x1409f8['is']('element','softBreak'))continue;const _0x186371='deletion'==_0x3db877['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x48c94f,authorId:_0x5e1dc6}=_0xe70f3['_splitMarkerName'](_0x3db877['markerName']),_0xf11a3e=_0x16710e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x186371,'data-suggestion':_0x48c94f,'data-author-id':_0x5e1dc6}),_0x4ac598=_0x16710e['mapper']['toViewPosition'](_0x5a1be1['createPositionBefore'](_0x1409f8));_0x50b3b8&&_0xe70f3['activeMarkers']['includes'](_0x3db877['markerName'])&&_0x16710e['writer']['addClass']('ck-suggestion-marker--active',_0xf11a3e),_0x16710e['writer']['insert'](_0x4ac598,_0xf11a3e),_0x16710e['mapper']['bindElementToMarker'](_0xf11a3e,_0x3db877['markerName']);}};}class St extends _0x211f0d{['afterInit'](){const _0x4fa895=this['editor'],_0x475617=_0x4fa895['model'],_0x17eeb1=_0x4fa895['locale'];if(!_0x4fa895['plugins']['has']('StandardEditingModeEditing'))return;const _0x1050d9=_0x4fa895['plugins']['get']('TrackChangesEditing'),_0x2ddd1d='restrictedEditingException',_0x54dedc=_0x4fa895['commands']['get'](_0x2ddd1d);_0x1050d9['enableCommand'](_0x2ddd1d,(_0x2191bc,_0x8a53fe={})=>{const _0x436325=_0x475617['document']['selection'];if(_0x436325['isCollapsed'])return void _0x2191bc(_0x8a53fe);const _0x1a5678=void 0x0!==_0x8a53fe['forceValue']?_0x8a53fe['forceValue']:!_0x54dedc['value'];_0x475617['change'](()=>{const _0x22a75d=Array['from'](_0x436325['getRanges']());for(const _0xe73651 of _0x22a75d){const _0x173ccd=_0x1a5678?[_0xe73651]:io(_0x2ddd1d,_0xe73651,_0x475617);for(const _0x38ca52 of _0x173ccd)_0x1050d9['markInlineFormat'](_0x38ca52,{'commandName':_0x2ddd1d,'commandParams':[{'forceValue':_0x1a5678}]});}});}),_0x1050d9['descriptionFactory']['registerDescriptionCallback'](_0x486e3b=>{if('formatBlock'!=_0x486e3b['type']&&'formatInline'!=_0x486e3b['type'])return;const {data:_0x2c2544}=_0x486e3b;return _0x2c2544&&_0x2c2544['commandName']==_0x2ddd1d?_0x2c2544['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17eeb1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x17eeb1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x211f0d{['afterInit'](){const _0x3e5ffc=this['editor'];if(!_0x3e5ffc['plugins']['has']('Style')||!_0x3e5ffc['plugins']['has']('DataSchema'))return;const _0x331726=_0x3e5ffc['plugins']['get']('TrackChangesEditing'),_0x4eec5e=_0x3e5ffc['locale'],_0x57f228=_0x3e5ffc['config']['get']('style')||{},_0x9a51d8=_0x3e5ffc['plugins']['get']('GeneralHtmlSupport'),_0x11a1f6=_0x3e5ffc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3e5ffc['plugins']['get']('DataSchema'),_0x57f228['definitions']);_0x331726['enableDefaultAttributesIntegration']('style');const _0x39d1c1=new Set();for(const _0x5a325e of _0x11a1f6['block']){const _0x3303b6=_0x9a51d8['getGhsAttributeNameForElement'](_0x5a325e['element']);_0x39d1c1['add'](_0x3303b6);}const _0x52b3c8=new Set();for(const _0x5ee2d5 of _0x11a1f6['inline']){const _0x56d2c3=_0x9a51d8['getGhsAttributeNameForElement'](_0x5ee2d5['element']);_0x52b3c8['add'](_0x56d2c3);for(const _0x30b95e of _0x5ee2d5['ghsAttributes'])_0x52b3c8['add'](_0x30b95e);}for(const _0x3ec095 of _0x39d1c1)_0x331726['registerBlockAttribute'](_0x3ec095),_0x331726['descriptionFactory']['registerAttributeLabel'](_0x3ec095,o(_0x4eec5e,'FORMAT_STYLE'));for(const _0x42ba5a of _0x52b3c8)_0x331726['registerInlineAttribute'](_0x42ba5a),_0x331726['descriptionFactory']['registerAttributeLabel'](_0x42ba5a,o(_0x4eec5e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3672a6=this['editor'],_0x54b132=_0x3672a6['locale'];_0x3672a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x290271=>{if('formatBlock'!=_0x290271['type']&&'formatInline'!=_0x290271['type'])return;const {data:_0x245418}=_0x290271;return _0x245418&&'style'===_0x245418['commandName']?_0x245418['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54b132,'*Set\x20format:*\x20%0',_0x245418['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x54b132,'*Remove\x20format:*\x20%0',_0x245418['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x211f0d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2443c3){super(_0x2443c3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x265477=this['editor'],_0x54ee07=_0x265477['model']['document']['selection'];if(!_0x265477['plugins']['has']('TableEditing'))return;const _0x561bb8=_0x265477['locale'],_0x184ef8=_0x265477['plugins']['get']('TrackChangesEditing'),_0x541ccc=_0x265477['plugins']['get']('TableUtils');_0x184ef8['descriptionFactory']['registerElementLabel']('table',_0x55f80d=>o(_0x561bb8,'ELEMENT_TABLE',_0x55f80d)),this['_setupColumnsRowsFixing'](),_0x184ef8['enableCommand']('insertTable'),_0x184ef8['enableCommand']('selectTableRow'),_0x184ef8['enableCommand']('selectTableColumn');for(const _0x328fd0 of['insertTableRowAbove','insertTableRowBelow']){const _0x15d0c2=_0x265477['commands']['get'](_0x328fd0);_0x184ef8['enableCommand'](_0x328fd0,_0x5281e0=>{_0x265477['model']['change'](_0x2347a1=>{_0x5281e0();const _0x1c3fe0='above'===_0x15d0c2['order'],_0x2b93e8=_0x541ccc['getSelectionAffectedTableCells'](_0x54ee07),_0x4a82ce=_0x541ccc['getRowIndexes'](_0x2b93e8),_0x145b4d=_0x1c3fe0?_0x4a82ce['first']-0x1:_0x4a82ce['last']+0x1,_0xd2d3ea=_0x2b93e8[0x0]['findAncestor']('table'),_0x30958d=_0x541ccc['createTableWalker'](_0xd2d3ea,{'startRow':_0x145b4d,'endRow':_0x145b4d}),_0x1ed646=Array['from'](_0x30958d)['map'](_0x210e7c=>_0x2347a1['createRangeOn'](_0x210e7c['cell']));_0x184ef8['markMultiRangeInsertion'](_0x1ed646,'tableRow');});});}for(const _0x4e8380 of['insertTableColumnLeft','insertTableColumnRight']){const _0x59b4e9=_0x265477['commands']['get'](_0x4e8380);_0x184ef8['enableCommand'](_0x4e8380,_0x47932f=>{_0x265477['model']['change'](_0x5ed259=>{_0x47932f();const _0x3af220='left'===_0x59b4e9['order'],_0xdc26c8=_0x541ccc['getSelectionAffectedTableCells'](_0x54ee07),_0x2837a3=_0x541ccc['getColumnIndexes'](_0xdc26c8),_0x30e43e=_0x3af220?_0x2837a3['first']-0x1:_0x2837a3['last']+0x1,_0x49253a=_0xdc26c8[0x0]['findAncestor']('table'),_0x104c45=_0x541ccc['createTableWalker'](_0x49253a,{'startRow':0x0,'column':_0x30e43e,'includeAllSlots':!0x1}),_0x209175=Array['from'](_0x104c45)['map'](_0x4cb4e8=>_0x5ed259['createRangeOn'](_0x4cb4e8['cell']));_0x184ef8['markMultiRangeInsertion'](_0x209175,'tableColumn');});});}for(const _0x2c576f of['removeTableRow','removeTableColumn']){const _0x12c7f0=_0x2c576f['substr'](0xb),_0x88f2ab=_0x12c7f0['toLowerCase'](),_0x2762a8=_0x88f2ab['substr'](0x0,0x3)+'span',_0x3152fe='table'+_0x12c7f0,_0x37a0b3='min'+_0x12c7f0,_0x10cfa4='max'+_0x12c7f0;_0x184ef8['enableCommand'](_0x2c576f,()=>{_0x265477['model']['change'](_0x3908da=>{const _0x5c5363=_0x541ccc['getSelectionAffectedTableCells'](_0x54ee07),_0x6f84d5=_0x5c5363[0x0]['findAncestor']('table');let _0x1aad37;if('removeTableRow'==_0x2c576f){const _0x2f3af9=_0x541ccc['getRowIndexes'](_0x5c5363);_0x1aad37={'startRow':_0x2f3af9['first'],'endRow':_0x2f3af9['last'],'includeAllSlots':!0x0};}else{const _0x4de2c9=_0x541ccc['getColumnIndexes'](_0x5c5363);_0x1aad37={'startColumn':_0x4de2c9['first'],'endColumn':_0x4de2c9['last'],'includeAllSlots':!0x0};}const _0x233044=_0x541ccc['createTableWalker'](_0x6f84d5,_0x1aad37),_0x50a863=Array['from'](_0x233044)['map'](({cell:_0x28aa81})=>_0x28aa81),_0x4eab8f=Ne(_0x50a863['filter'](_0xef8abb=>_0xef8abb['hasAttribute'](_0x2762a8))),_0x29856b=Ne(_0x50a863['filter'](_0x5b1a19=>!_0x5b1a19['hasAttribute'](_0x2762a8)))['map'](_0x3dfa7f=>_0x3908da['createRangeOn'](_0x3dfa7f)),_0x4db6fc=_0x184ef8['markMultiRangeDeletion'](_0x29856b,_0x3152fe);if(_0x4db6fc&&('tableRow'==_0x4db6fc['subType']||'tableColumn'==_0x4db6fc['subType'])){const _0x500005=this['_getSuggestionCoords'](_0x4db6fc);for(const _0x244f73 of _0x4eab8f){const _0x3d1eb4=_0x3908da['createRangeOn'](_0x244f73),_0x32441a=_0x541ccc['getCellLocation'](_0x244f73),_0xff186a=_0x244f73['getAttribute'](_0x2762a8)-0x1,_0x31338c=_0x500005[_0x37a0b3],_0x5617c3=_0x500005[_0x10cfa4];_0x31338c<=_0x32441a[_0x88f2ab]&&_0x32441a[_0x88f2ab]+_0xff186a<=_0x5617c3&&_0x4db6fc['addRange'](_0x3d1eb4);}}});});}function _0x156f0a(_0xa4f6c5){const _0x4fb40f=Array['from'](_0x54ee07['getRanges']())['map'](_0x14db7e=>_0x2e3e00['fromRange'](_0x14db7e));_0x265477['model']['change'](_0x53a08b=>{const _0x2c507f=_0x53a08b['batch'];_0xa4f6c5=_0xa4f6c5['filter'](_0x56cbd8=>'$graveyard'!=_0x56cbd8['root']['rootName']),_0x53a08b['setSelection'](_0xa4f6c5),_0x265477['commands']['get']('removeTableRow')['refresh'](),_0x265477['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x265477['model']['enqueueChange'](()=>{_0x265477['model']['enqueueChange'](_0x2c507f,_0xf2f3ff=>{const _0x5ccfdb=_0x4fb40f['filter'](_0xa59bf3=>'$graveyard'!=_0xa59bf3['root']['rootName']);_0x5ccfdb['length']>0x0&&_0xf2f3ff['setSelection'](_0x5ccfdb);for(const _0x45161a of _0x4fb40f)_0x45161a['detach']();});});});}function _0x46d8b1(_0xd2fe94){_0x265477['model']['change'](_0x2ff5ef=>{const _0x1e1739=Array['from'](_0x54ee07['getRanges']())['map'](_0x580021=>_0x2e3e00['fromRange'](_0x580021)),_0x3c85f1=[];for(const _0x287a9a of _0xd2fe94)for(const _0x1cac39 of _0x287a9a['getItems']({'shallow':!0x0}))_0x3c85f1['push'](_0x1cac39);for(const _0x5e5594 of _0x3c85f1)'$graveyard'!=_0x5e5594['root']['rootName']&&(_0x2ff5ef['setSelection'](_0x2ff5ef['createPositionAt'](_0x5e5594,0x0)),_0x265477['commands']['get']('removeTableColumn')['refresh'](),_0x265477['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5b8ec6=_0x1e1739['filter'](_0x2860e1=>'$graveyard'!=_0x2860e1['root']['rootName']);_0x5b8ec6['length']>0x0&&_0x2ff5ef['setSelection'](_0x5b8ec6);for(const _0x249498 of _0x1e1739)_0x249498['detach']();});}function _0x37ebc6(_0x16ca6e,_0x3e1cf1){return _0x3e1cf1['every'](_0x528124=>_0x16ca6e['some'](_0x47f393=>_0x47f393['end']['isEqual'](_0x528124['start'])||_0x528124['end']['isEqual'](_0x47f393['start'])));}function _0x224dae(_0x4dfccb,_0x34a2b1){return!_0x4dfccb['some'](_0x280fba=>_0x34a2b1['some'](_0x17f987=>_0x280fba['isIntersecting'](_0x17f987)))&&_0x4dfccb['some'](_0xe8335d=>_0x34a2b1['some'](_0x2fece7=>_0xe8335d['end']['isTouching'](_0x2fece7['start'])));}_0x265477['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xa90bf0,_0x2e7da,_0x3c067e)=>{if(!_0x3c067e['options']['showSuggestionHighlights'])return;const _0x28eb74=_0x2e7da['item'];if(!_0x28eb74||!_0x28eb74['is']('element','tableCell'))return;const _0x23ae97=_0x3c067e['mapper']['toViewElement'](_0x28eb74);if(_0x23ae97){const {id:_0x18e3be,authorId:_0x4ba4f8}=_0x184ef8['_splitMarkerName'](_0x2e7da['markerName']);_0x3f2d83(_0x23ae97,_0x3c067e['writer'],(_0x3f8f10,_0x39ed69,_0x56d4ea)=>{_0x56d4ea['addClass'](_0x2b2790(_0x39ed69['classes']),_0x3f8f10),_0x56d4ea['setAttribute']('data-suggestion-id',_0x18e3be,_0x3f8f10),_0x56d4ea['setAttribute']('data-author-id',_0x4ba4f8,_0x3f8f10);},(_0x190451,_0x37949b,_0x2b8e0f)=>{_0x2b8e0f['removeClass'](_0x2b2790(_0x37949b['classes']),_0x190451),_0x2b8e0f['removeAttribute']('data-suggestion-id',_0x190451),_0x2b8e0f['removeAttribute']('data-author-id',_0x190451);});}},{'priority':'highest'}),_0x184ef8['descriptionFactory']['registerDescriptionCallback'](_0x221480=>{if('insertion'!=_0x221480['type']&&'deletion'!=_0x221480['type'])return;const _0x52cb28=_0x221480['getContainedElement']();if(null!=_0x52cb28&&_0x52cb28['is']('element','table')){if('insertion'==_0x221480['type']){const _0xb454cd=_0x221480['getItems']()['filter'](_0x1c3173=>_0x1c3173['is']('$textProxy'))['map'](_0x3cda97=>_0x3cda97['data']);if(_0xb454cd['length'])return{'type':'insertion','content':o(_0x561bb8,'*Insert:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xb454cd['join']('\x20')+'\x22'))};}if('deletion'==_0x221480['type']){const _0x113ad9=_0x221480['getItems']()['filter'](_0x11c734=>_0x11c734['is']('$textProxy'))['map'](_0x41e49b=>_0x41e49b['data']);if(_0x113ad9['length'])return{'type':'deletion','content':o(_0x561bb8,'*Remove:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x113ad9['join']('\x20')+'\x22'))};}}}),_0x184ef8['descriptionFactory']['registerDescriptionCallback'](_0x4bfa42=>{if('tableRow'==_0x4bfa42['subType']){const _0x18aef3=_0x4bfa42['getItems']()['filter'](_0x586202=>_0x586202['is']('$textProxy'))['map'](_0x26b6a0=>_0x26b6a0['data']),_0x38d5b6=this['_getSuggestionCoords'](_0x4bfa42),_0x512c86=_0x38d5b6['maxRow']-_0x38d5b6['minRow']+0x1;if('insertion'==_0x4bfa42['type'])return _0x18aef3['length']?{'type':'insertion','content':o(_0x561bb8,'*Insert:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x512c86,'\x22'+_0x18aef3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x561bb8,'*Insert:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_ROW',_0x512c86))};if('deletion'==_0x4bfa42['type'])return _0x18aef3['length']?{'type':'deletion','content':o(_0x561bb8,'*Remove:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x512c86,'\x22'+_0x18aef3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x561bb8,'*Remove:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_ROW',_0x512c86))};}if('tableColumn'==_0x4bfa42['subType']){const _0x234d5c=_0x4bfa42['getItems']()['filter'](_0x296136=>_0x296136['is']('$textProxy'))['map'](_0x5eeb93=>_0x5eeb93['data']),_0xb4e305=this['_getSuggestionCoords'](_0x4bfa42),_0x29c967=_0xb4e305['maxColumn']-_0xb4e305['minColumn']+0x1;if('insertion'==_0x4bfa42['type'])return _0x234d5c['length']?{'type':'insertion','content':o(_0x561bb8,'*Insert:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29c967,'\x22'+_0x234d5c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x561bb8,'*Insert:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_COLUMN',_0x29c967))};if('deletion'==_0x4bfa42['type'])return _0x234d5c['length']?{'type':'deletion','content':o(_0x561bb8,'*Remove:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x29c967,'\x22'+_0x234d5c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x561bb8,'*Remove:*\x20%0',o(_0x561bb8,'ELEMENT_TABLE_COLUMN',_0x29c967))};}}),_0x184ef8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x156f0a),_0x184ef8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x156f0a),_0x184ef8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x46d8b1),_0x184ef8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x46d8b1),_0x184ef8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37ebc6),_0x184ef8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37ebc6),_0x184ef8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x224dae),_0x184ef8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x224dae);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1b7a43=this['editor'],_0x3e94e8=_0x1b7a43['model']['document']['selection'];return(_0x46be93,_0x5ec419)=>{_0x1b7a43['model']['change'](_0x53f61f=>{const {commandName:_0x5c9df0,commandParams:_0x135e60}=_0x5ec419;let _0x207628=_0x46be93[0x0]['end']['nodeBefore'];_0x135e60&&_0x135e60[0x0]&&!0x1===_0x135e60[0x0]['forceValue']&&(_0x207628=_0x46be93[0x0]['start']['nodeAfter']);const _0x15fb5e=_0x53f61f['createRangeIn'](_0x207628);if('$graveyard'==_0x15fb5e['root']['rootName'])return;const _0x5ac5b2=Array['from'](_0x3e94e8['getRanges']())['map'](_0x4e89dd=>_0x2e3e00['fromRange'](_0x4e89dd));_0x53f61f['setSelection'](_0x15fb5e),_0x1b7a43['commands']['get'](_0x5c9df0)['refresh'](),_0x135e60['push']({'forceDefaultExecution':!0x0}),_0x1b7a43['execute'](_0x5c9df0,..._0x135e60);const _0x505ca7=_0x5ac5b2['filter'](_0x2a9d1d=>'$graveyard'!=_0x2a9d1d['root']['rootName']);_0x505ca7['length']>0x0&&_0x53f61f['setSelection'](_0x505ca7);for(const _0x2ff27d of _0x5ac5b2)_0x2ff27d['detach']();});};}['_getCoordsForCells'](_0x44f732){const _0x54eb8f=this['editor']['plugins']['get']('TableUtils');let _0xe6c787=Number['MAX_SAFE_INTEGER'],_0x42257e=Number['MIN_SAFE_INTEGER'],_0x233a55=Number['MAX_SAFE_INTEGER'],_0x4eedf6=Number['MIN_SAFE_INTEGER'];for(const _0x19b0e9 of _0x44f732){if('$graveyard'==_0x19b0e9['root']['rootName'])continue;const {row:_0x581ea9,column:_0x15975e}=_0x54eb8f['getCellLocation'](_0x19b0e9),_0x167358=_0x19b0e9['hasAttribute']('rowspan')?_0x19b0e9['getAttribute']('rowspan')-0x1:0x0,_0x3b69ba=_0x19b0e9['hasAttribute']('colspan')?_0x19b0e9['getAttribute']('colspan')-0x1:0x0;_0xe6c787=_0x581ea9<_0xe6c787?_0x581ea9:_0xe6c787,_0x42257e=_0x581ea9+_0x167358>_0x42257e?_0x581ea9+_0x167358:_0x42257e,_0x233a55=_0x15975e<_0x233a55?_0x15975e:_0x233a55,_0x4eedf6=_0x15975e+_0x3b69ba>_0x4eedf6?_0x15975e+_0x3b69ba:_0x4eedf6;}return{'minRow':_0xe6c787,'maxRow':_0x42257e,'minColumn':_0x233a55,'maxColumn':_0x4eedf6};}['_setupColumnsRowsFixing'](){const _0x4ffd3a=this['editor'],_0xbf902d=_0x4ffd3a['plugins']['get']('TrackChangesEditing'),_0x5277ca=_0x4ffd3a['plugins']['get']('TableUtils');_0x4ffd3a['model']['document']['on']('change:data',()=>{const _0x32a0dd=Array['from'](_0x4ffd3a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c34f4,data:_0x36350c}of _0x32a0dd){const {group:_0x4d4475,id:_0x16dab6,subType:_0x257ca4}=_0xbf902d['_splitMarkerName'](_0x5c34f4);if('suggestion'!=_0x4d4475)continue;if(null!=_0x36350c['oldRange'])continue;const _0x2b2102=_0xbf902d['getSuggestion'](_0x16dab6);this['_tablePostFixingSubtypes']['includes'](_0x257ca4)&&this['_tableSuggestions']['add'](_0x2b2102);}},{'priority':'low'});const _0x4cb82b=(_0x39ddcb,_0x31a537)=>{let _0x558dfd=!0x1;const _0x23f1c4=_0x31a537['createRangeOn'](_0x39ddcb),_0x3b42cc=_0x39ddcb['findAncestor']('table'),_0x2af52b=_0x5277ca['getCellLocation'](_0x39ddcb);for(const _0x5dcb58 of this['_tableSuggestions']){const _0x21321e=_0x5dcb58['subType'],_0x529949=_0x21321e['startsWith']('tablePaste'),_0x5780b2=_0x21321e['substr'](_0x529949?0xa:0x5),_0x54edfc=_0x5780b2['toLowerCase'](),_0x2769d9=_0x54edfc['substr'](0x0,0x3)+'span',_0x58a8d6='min'+_0x5780b2,_0x257ab8='max'+_0x5780b2;if(!_0x5dcb58['isInContent'])continue;if(_0x3b42cc!=_0x5dcb58['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5dcb58['isIntersectingWithRange'](_0x23f1c4))continue;const _0x2db157=_0x39ddcb['hasAttribute'](_0x2769d9)?_0x39ddcb['getAttribute'](_0x2769d9)-0x1:0x0,_0x43935e=this['_getSuggestionCoords'](_0x5dcb58),_0x6c1d75=_0x43935e[_0x58a8d6],_0x2b9add=_0x43935e[_0x257ab8];_0x6c1d75<=_0x2af52b[_0x54edfc]&&_0x2af52b[_0x54edfc]+_0x2db157<=_0x2b9add&&(_0x5dcb58['addRange'](_0x23f1c4),_0x558dfd=!0x0);}return _0x558dfd;};_0x4ffd3a['model']['document']['registerPostFixer'](_0x5c220e=>{let _0x3e2d5e=!0x1;for(const _0x197fe1 of _0x4ffd3a['model']['document']['differ']['getChanges']())if('insert'==_0x197fe1['type']){if('tableRow'==_0x197fe1['name']){for(const _0xb8be14 of _0x197fe1['position']['nodeAfter']['getChildren']())_0x3e2d5e=_0x3e2d5e||_0x4cb82b(_0xb8be14,_0x5c220e);}else'tableCell'==_0x197fe1['name']&&(_0x3e2d5e=_0x3e2d5e||_0x4cb82b(_0x197fe1['position']['nodeAfter'],_0x5c220e));}return _0x3e2d5e;});}['_getSuggestionCoords'](_0xe6a128){return this['_getCoordsForCells'](_0xe6a128['getRanges']()['map'](_0xcf54d4=>_0xcf54d4['start']['nodeAfter']));}}function Ne(_0xf399ae){return Array['from'](new Set(_0xf399ae)['values']());}class _t extends _0x211f0d{static get['requires'](){return[At];}['afterInit'](){const _0x11c726=this['editor'],_0x38d404=_0x11c726['model']['document']['selection'],_0x37949a=_0x11c726['locale'];if(!_0x11c726['plugins']['has']('TableEditing'))return;const _0xa0a176=_0x11c726['plugins']['get']('TrackChangesEditing'),_0x5766cc=_0x11c726['plugins']['get']('TableUtils'),_0x36c890=_0x11c726['plugins']['get'](At);_0x36c890['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xa0a176['enableCommand']('mergeTableCells',()=>{const _0xdbd8eb=_0x5766cc['getSelectionAffectedTableCells'](_0x11c726['model']['document']['selection']);_0x11c726['model']['change'](()=>{_0xa0a176['markMultiRangeBlockFormat'](_0xdbd8eb,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x11c726['commands']['get']('mergeTableCells')['on']('execute',(_0x121514,_0x449bb3)=>{_0x11c726['commands']['get']('trackChanges')['value']&&(_0x449bb3['length']>0x0&&_0x449bb3[_0x449bb3['length']-0x1]&&_0x449bb3[_0x449bb3['length']-0x1]['forceDefaultExecution']||_0xa0a176['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x121514['stop']());},{'priority':'highest'});for(const _0x221d94 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x30da59=_0x11c726['commands']['get'](_0x221d94);_0xa0a176['enableCommand'](_0x221d94,()=>{const _0x18935f=_0x11c726['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x368248=>_0x368248['is']('element','tableCell')),_0x371fa4=_0x30da59['value'];_0x11c726['model']['change'](()=>{_0xa0a176['markMultiRangeBlockFormat']([_0x18935f,_0x371fa4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x33dda2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x24e157=_0x11c726['commands']['get'](_0x33dda2);_0xa0a176['enableCommand'](_0x33dda2,()=>{const _0x146cf6=_0x5766cc['getSelectionAffectedTableCells'](_0x11c726['model']['document']['selection'])[0x0],_0x564087=_0x146cf6['findAncestor']('table'),{column:_0x4705d4,row:_0x47d19c}=_0x5766cc['getCellLocation'](_0x146cf6);let _0x4d15e3=[];if('horizontally'==_0x24e157['direction']){const _0x53fd5a=_0x5766cc['createTableWalker'](_0x564087,{'startRow':_0x47d19c,'endRow':_0x47d19c,'includeAllSlots':!0x0});_0x4d15e3=Array['from'](_0x53fd5a)['map'](_0x28c357=>_0x28c357['cell']);}else{const _0xf10d48=_0x5766cc['createTableWalker'](_0x564087,{'column':_0x4705d4,'includeAllSlots':!0x0});_0x4d15e3=Array['from'](_0xf10d48)['map'](_0x313efb=>_0x313efb['cell']);}_0x11c726['model']['change'](_0x5a9fce=>{_0xa0a176['markBlockFormat'](_0x5a9fce['createRangeOn'](_0x146cf6),{'commandName':_0x33dda2,'commandParams':[]},_0x4d15e3,_0x33dda2);});});}_0xa0a176['descriptionFactory']['registerDescriptionCallback'](_0x5e89a9=>{if('formatBlock'!=_0x5e89a9['type']&&'formatInline'!=_0x5e89a9['type'])return;const {data:_0x3ed148}=_0x5e89a9;return _0x3ed148&&'mergeTableCells'==_0x3ed148['commandName']?{'type':'format','content':o(_0x37949a,'*Merge\x20cells*')}:void 0x0;}),_0xa0a176['descriptionFactory']['registerDescriptionCallback'](_0x2000fd=>{if('formatBlock'!=_0x2000fd['type']&&'formatInline'!=_0x2000fd['type'])return;const {data:_0x5084a5}=_0x2000fd;return _0x5084a5?'splitTableCellVertically'==_0x5084a5['commandName']?{'type':'format','content':o(_0x37949a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5084a5['commandName']?{'type':'format','content':o(_0x37949a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2377a1=_0x36c890['_acceptFormatSuggestionCallbackFactory']();for(const _0x106199 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xa0a176['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x106199,'accept',_0x2377a1);for(const _0x4bca64 of['splitTableCellVertically','splitTableCellHorizontally'])_0xa0a176['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bca64,'accept',_0x2377a1);_0xa0a176['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xb02375=>{_0x11c726['model']['change'](_0x3f0f6c=>{const _0x312797=Array['from'](_0x38d404['getRanges']())['map'](_0x45bc52=>_0x2e3e00['fromRange'](_0x45bc52));_0x3f0f6c['setSelection'](_0xb02375),_0x11c726['commands']['get']('mergeTableCells')['refresh'](),_0x11c726['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4446e8=_0x312797['filter'](_0x770ad6=>'$graveyard'!=_0x770ad6['root']['rootName']);_0x4446e8['length']>0x0&&_0x3f0f6c['setSelection'](_0x4446e8);for(const _0x8c3cf0 of _0x312797)_0x8c3cf0['detach']();});});for(const _0x2f7865 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x16242d=_0x11c726['commands']['get'](_0x2f7865);_0x16242d['on']('set:isEnabled',(_0x3acd2d,_0x4c6aa9,_0x43bfae)=>{if(_0x43bfae){const _0x33707f=_0x11c726['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x422b3d=>_0x422b3d['is']('element','tableCell'));this['_areMergableCells'](_0x16242d['value'],_0x33707f)||(_0x3acd2d['return']=!0x1,_0x3acd2d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x459170=this['editor']['commands']['get']('mergeTableCells'),_0x387244=this['editor']['plugins']['get']('TableUtils');if(!_0x459170['isEnabled'])return!0x1;const _0x155966=_0x387244['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x396608 of _0x155966)for(const _0x5aa992 of _0x155966)if(_0x396608!=_0x5aa992&&!this['_areMergableCells'](_0x396608,_0x5aa992))return!0x1;return!0x0;}['_areMergableCells'](_0x31dc66,_0x231c94){const _0x35d805=this['editor']['plugins']['get']('TrackChangesEditing'),_0x183847=this['editor']['model']['createRangeOn'](_0x31dc66),_0x124cdf=this['editor']['model']['createRangeOn'](_0x231c94),_0x3a7d7b=new Set(),_0xde9585=new Set();for(const _0x5c3c03 of _0x35d805['getSuggestions']())if(('insertion'==_0x5c3c03['type']||'deletion'==_0x5c3c03['type']||'mergeTableCells'==_0x5c3c03['subType'])&&_0x5c3c03['isInContent']){for(const _0xf56e65 of _0x5c3c03['getRanges']())_0xf56e65['containsRange'](_0x183847,!0x0)&&_0x3a7d7b['add'](_0x5c3c03['type']+':'+_0x5c3c03['author']['id']),_0xf56e65['containsRange'](_0x124cdf,!0x0)&&_0xde9585['add'](_0x5c3c03['type']+':'+_0x5c3c03['author']['id']);}if(_0x3a7d7b['size']!=_0xde9585['size'])return!0x1;for(const _0x43c8b3 of _0x3a7d7b)if(!_0xde9585['has'](_0x43c8b3))return!0x1;return!0x0;}}class Ct extends _0x211f0d{static get['requires'](){return[At];}['afterInit'](){const _0x5ea6b5=this['editor'];if(!_0x5ea6b5['plugins']['has']('TableEditing'))return;const _0x54cc94=_0x5ea6b5['locale'],_0x5c77d0=_0x5ea6b5['plugins']['get']('TrackChangesEditing');_0x5c77d0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5c77d0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5c77d0['registerBlockAttribute']('headingRows'),_0x5c77d0['registerBlockAttribute']('headingColumns'),_0x5c77d0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x54cc94,'FORMAT_HEADER_ROW')),_0x5c77d0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x54cc94,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x814ded=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da641=this['editor']['plugins']['get']('TableUtils'),_0x3ed92d=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x57442d({showActiveMarker:_0x2caabf=!0x0,setDataAttribute:_0x33a81c=!0x0}={}){return(_0x3607ed,_0x4346df,_0x383cbc)=>{const {type:_0x1cd5bf,id:_0x5a7208}=_0x814ded['_splitMarkerName'](_0x4346df['markerName']),_0x12a9d0=_0x814ded['getSuggestion'](_0x5a7208),_0xd92047=_0x12a9d0['data'];if('formatBlock'!=_0x12a9d0['type']||!_0xd92047||'setTableColumnHeader'!=_0xd92047['commandName'])return;if(_0x4346df['item'])return void _0x3607ed['stop']();if(!_0x383cbc['consumable']['consume'](_0x4346df['markerRange'],_0x3607ed['name']))return;const _0x53ad8a=_0x4346df['markerRange']['start']['nodeAfter'],_0x4b7366=_0x4346df['markerRange']['end']['nodeBefore'],_0x23cd41=_0x53ad8a['parent']['parent'],{column:_0x2f27fa}=_0x3da641['getCellLocation'](_0x53ad8a),{column:_0x34aba3}=_0x3da641['getCellLocation'](_0x4b7366);for(let _0x29bcdf=_0x2f27fa;_0x29bcdf<=_0x34aba3;_0x29bcdf++){const _0x1ac128=_0x3da641['createTableWalker'](_0x23cd41,{'column':_0x29bcdf,'includeAllSlots':!0x1});for(const _0x24d951 of _0x1ac128){const _0xe2d832=_0x24d951['cell'],_0x3c39f5=_0x383cbc['mapper']['toViewElement'](_0xe2d832);_0x383cbc['writer']['addClass']('ck-suggestion-marker-'+_0x1cd5bf,_0x3c39f5),_0x33a81c&&_0x383cbc['writer']['setAttribute']('data-suggestion',_0x5a7208,_0x3c39f5),_0x383cbc['mapper']['bindElementToMarker'](_0x3c39f5,_0x4346df['markerName']),_0x2caabf&&(_0x814ded['activeMarkers']['includes'](_0x4346df['markerName'])?_0x383cbc['writer']['addClass']('ck-suggestion-marker--active',_0x3c39f5):_0x383cbc['writer']['removeClass']('ck-suggestion-marker--active',_0x3c39f5));}}};}_0x814ded['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3ed92d),_0x814ded['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3ed92d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x57442d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45fe2c,_0x4fbb11,_0x5a4c79)=>{_0x5a4c79['options']['showSuggestionHighlights']&&_0x57442d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x45fe2c,_0x4fbb11,_0x5a4c79);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x487e5a,_0x140ea4,_0x1d6955)=>{const {type:_0x4ef9ab,id:_0x390420}=_0x814ded['_splitMarkerName'](_0x140ea4['markerName']),_0x8ad6e0=_0x814ded['getSuggestion'](_0x390420),_0x27bd79=_0x8ad6e0['data'];if('formatBlock'!=_0x8ad6e0['type']||!_0x27bd79||'setTableColumnHeader'!=_0x27bd79['commandName'])return;const _0x5affef=_0x1d6955['mapper']['markerNameToElements'](_0x140ea4['markerName']);if(_0x5affef){for(const _0x44174e of _0x5affef)_0x1d6955['writer']['removeClass']('ck-suggestion-marker-'+_0x4ef9ab,_0x44174e),_0x1d6955['writer']['removeClass']('ck-suggestion-marker--active',_0x44174e),_0x1d6955['writer']['removeAttribute']('data-suggestion',_0x44174e),_0x1d6955['mapper']['unbindElementFromMarkerName'](_0x44174e,_0x140ea4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29f899=this['editor'],_0x487ec0=_0x29f899['locale'];function _0x33940e(_0x253585){return{'type':'format','content':o(_0x487ec0,'*Format:*\x20%0',_0x253585)};}_0x29f899['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3de765=>{if('formatBlock'!=_0x3de765['type'])return;const {data:_0x4d702a}=_0x3de765;if(_0x4d702a){if('setTableRowHeader'==_0x4d702a['commandName']){const _0x418fb5=_0x4d702a['commandParams'][0x0]['forceValue'];return _0x33940e(o(_0x487ec0,_0x418fb5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4d702a['commandName']){const _0x1d9fb5=_0x4d702a['commandParams'][0x0]['forceValue'];return _0x33940e(o(_0x487ec0,_0x1d9fb5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x211f0d{['afterInit'](){const _0x40fe31=this['editor'],_0xbdc8e3=_0x40fe31['locale'],_0x698c89=_0x40fe31['plugins']['get']('TrackChangesEditing');function _0x44b5a5(_0x14c5e9){return{'type':'format','content':''+o(_0xbdc8e3,'*Set\x20table\x20type:*\x20%0',_0x14c5e9)};}_0x40fe31['plugins']['has']('TableLayout')&&(_0x698c89['enableCommand']('insertTableLayout'),_0x698c89['enableDefaultAttributesIntegration']('tableType'),_0x698c89['registerBlockAttribute']('tableType'),_0x698c89['descriptionFactory']['registerElementLabel'](_0x298ed4=>_0x298ed4['is']('element','table')&&'layout'===_0x298ed4['getAttribute']('tableType'),_0x115f8d=>o(_0xbdc8e3,'ELEMENT_LAYOUT_TABLE',_0x115f8d)),_0x698c89['descriptionFactory']['registerDescriptionCallback'](_0x2e68fb=>{const {data:_0x1e6b22}=_0x2e68fb;if(_0x1e6b22&&'tableType'==_0x1e6b22['key'])switch(_0x1e6b22['newValue']){case'layout':return _0x44b5a5(o(_0xbdc8e3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x44b5a5(o(_0xbdc8e3,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x1b9ed2=>[_0x1b9ed2,null]));class Nt extends _0x211f0d{static get['requires'](){return[At];}['afterInit'](){const _0x5e3b59=this['editor'];if(!_0x5e3b59['plugins']['has']('TableClipboard'))return;const _0x10ac7f=_0x5e3b59['plugins']['get']('TrackChangesEditing'),_0x4447a6=_0x5e3b59['plugins']['get']('TableUtils'),_0x173be3=_0x5e3b59['plugins']['get'](At),_0x10efb0=_0x5e3b59['plugins']['get']('TableClipboard'),_0x39d057=_0x5e3b59['plugins']['get']('TableSelection'),_0x53e46d=_0x5e3b59['plugins']['get'](_0x1edb9a);_0x173be3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5e3b59['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5e3b59['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d1fe1=null,_0x48b028=!0x1;_0x53e46d['on']('contentInsertion',(_0x416feb,_0x29ac81)=>{_0x48b028='paste'===_0x29ac81['method'];}),_0x5e3b59['model']['on']('insertContent',(_0x450ec2,_0x3bb75e)=>{if(!_0x48b028&&null===_0x39d057['getSelectedTableCells']())return;const [_0x3b4460,_0x3160c5]=_0x3bb75e,_0x337159=_0x3bb75e[_0x3bb75e['length']-0x1];_0x337159&&_0x337159['forceDefaultExecution']||_0x10ac7f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x42b9b3,_0x253473,_0x51d26f,_0x58d079,_0x34ec6f){if(_0x253473&&!_0x253473['is']('documentSelection'))return!0x1;const _0x8864cb=_0x34ec6f['getTableIfOnlyTableInContent'](_0x42b9b3,_0x51d26f);if(!_0x8864cb||!Ue(_0x8864cb,void 0x0,_0x58d079))return!0x1;const _0x1dce1e=_0x58d079['getSelectionAffectedTableCells'](_0x51d26f['document']['selection']);if(!_0x1dce1e['length'])return!0x1;const _0x325d83=_0x1dce1e[0x0]['findAncestor']('table'),_0x4ebbd1=_0x58d079['getRowIndexes'](_0x1dce1e),_0x38e125=_0x58d079['getColumnIndexes'](_0x1dce1e),_0x5ad568={'startRow':_0x4ebbd1['first'],'endRow':_0x4ebbd1['last'],'startColumn':_0x38e125['first'],'endColumn':_0x38e125['last']};return 0x1==_0x1dce1e['length']&&(_0x5ad568['endRow']+=_0x58d079['getRows'](_0x8864cb)-0x1,_0x5ad568['endColumn']+=_0x58d079['getColumns'](_0x8864cb)-0x1),Ue(_0x325d83,_0x5ad568,_0x58d079);}(_0x3b4460,_0x3160c5,_0x5e3b59['model'],_0x4447a6,_0x10efb0)&&(_0x450ec2['stop'](),_0x1d1fe1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5e3b59['model']['change'](()=>{_0x5e3b59['model']['insertContent'](_0x3bb75e[0x0],_0x3bb75e[0x1],_0x3bb75e[0x2],{'forceDefaultExecution':!0x0});const _0x191766=_0x36dab6(),{rowInsertionRanges:_0x35a3fa,columnInsertionRanges:_0x2066e1,insertionRanges:_0x4d566e,deletionRanges:_0x3977c6,cells:_0x325c10}=_0x1d1fe1;_0x35a3fa['length']&&_0x10ac7f['markMultiRangeInsertion'](_0x35a3fa,'tablePasteRow',{'tablePasteChainId':_0x191766}),_0x2066e1['length']&&_0x10ac7f['markMultiRangeInsertion'](_0x2066e1,'tablePasteColumn',{'tablePasteChainId':_0x191766}),_0x4d566e['length']&&(_0x10ac7f['markMultiRangeInsertion'](_0x4d566e,'tablePaste',{'tablePasteChainId':_0x191766,'skipNestingCheck':!0x0}),_0x4d566e['forEach'](_0x2d711d=>_0x2d711d['detach']?.())),_0x3977c6['length']&&(_0x10ac7f['markMultiRangeDeletion'](_0x3977c6,'tablePaste',{'tablePasteChainId':_0x191766,'skipNestingCheck':!0x0}),_0x3977c6['forEach'](_0x349e88=>_0x349e88['detach']?.()));const _0x32fec0=_0x10ac7f['markMultiRangeBlockFormat'](_0x325c10['map'](({element:_0x50666d})=>_0x50666d),{'formatGroupId':_0x36dab6()},[],'tablePasteCell',{'tablePasteChainId':_0x191766});if(_0x32fec0){const _0x131b57=_0x32fec0['getMarkers'](),_0x175fe9=[];for(const {element:_0x42a81c,attributes:_0x3b7478}of _0x325c10){if(!_0x3b7478)continue;const _0x34178e=_0x5e3b59['model']['createRangeOn'](_0x42a81c),_0x3b31c3=_0x131b57['find'](_0x405440=>_0x405440['getRange']()['isEqual'](_0x34178e));_0x3b31c3&&_0x175fe9['push']([_0x3b31c3['name'],_0x3b7478]);}_0x175fe9['length']&&_0x32fec0['setAttribute']('markerAttributes',Object['fromEntries'](_0x175fe9));}_0x1d1fe1=null;}));},{'priority':_0x5058de['high']+0xa}),_0x53e46d['on']('contentInsertion',()=>{_0x48b028=!0x1;},{'priority':'lowest'}),_0x5e3b59['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22182d,_0x2bd178)=>{const [_0x3f331a,_0x419682,,_0x1c7c4b]=_0x2bd178;if(!_0x1d1fe1)return;_0x22182d['stop']();const _0x40b76d=_0x3f331a['cell'],_0x505986=_0x419682,_0x28cb85=Oe(_0x40b76d),_0x3c42f2=Oe(_0x505986);_0x22182d['return']=_0x40b76d;let _0x3f617b=null,_0x5e4a7b=null;if(_0x3c42f2||_0x28cb85){if(_0x28cb85&&!_0x3c42f2){_0x1c7c4b['remove'](_0x40b76d['getChild'](0x0));for(const _0x260093 of Array['from'](_0x505986['getChildren']()))_0x1c7c4b['insert'](_0x260093,_0x40b76d,'end');const _0x5393e3=_0x1d1fe1['rowInsertionIndexes']['includes'](_0x3f331a['row']),_0x4a05d9=_0x1d1fe1['columnInsertionIndexes']['includes'](_0x3f331a['column']);_0x5393e3||_0x4a05d9||(_0x3f617b=_0x2e3e00['fromRange'](_0x1c7c4b['createRangeIn'](_0x40b76d)));}else _0x3c42f2&&!_0x28cb85&&(_0x5e4a7b=_0x1c7c4b['createRangeIn'](_0x40b76d));}else{const _0xfb8337=_0x1c7c4b['createElement']('tableCellSuggestion'),_0x20e0e3=_0x1c7c4b['createElement']('tableCellSuggestion');_0x1c7c4b['wrap'](_0x1c7c4b['createRangeIn'](_0x40b76d),_0x20e0e3),_0x1c7c4b['insert'](_0xfb8337,_0x40b76d,0x0);for(const _0x2a1665 of Array['from'](_0x505986['getChildren']()))_0x1c7c4b['insert'](_0x2a1665,_0xfb8337,'end');_0x3f617b=_0x2e3e00['fromRange'](_0x1c7c4b['createRangeOn'](_0xfb8337)),_0x5e4a7b=_0x2e3e00['fromRange'](_0x1c7c4b['createRangeOn'](_0x20e0e3));}const _0x335656=Array['from'](_0x505986['getAttributes']())['filter'](([_0x417744])=>Be['includes'](_0x417744));_0x1d1fe1['cells']['push']({'element':_0x40b76d,'attributes':_0x335656['length']?Object['fromEntries'](_0x335656):null}),_0x3f617b&&_0x1d1fe1['insertionRanges']['push'](_0x3f617b),_0x5e4a7b&&_0x1d1fe1['deletionRanges']['push'](_0x5e4a7b);},{'priority':'high'}),_0x4447a6['on']('insertColumns',(_0x43c037,_0x45ff6a)=>{const [_0x131ed5,_0x495106={}]=_0x45ff6a;if(!_0x1d1fe1)return;const _0x54ae27=_0x495106['at']||0x0,_0x517b04=_0x495106['columns']||0x1;_0x1d1fe1['columnInsertionIndexes']=new Array(_0x517b04)['fill'](_0x54ae27)['map']((_0x24145b,_0x248267)=>_0x24145b+_0x248267);for(const {cell:_0x50c7e5}of _0x4447a6['createTableWalker'](_0x131ed5,{'startColumn':_0x54ae27,'endColumn':_0x54ae27+_0x517b04-0x1}))_0x1d1fe1['columnInsertionRanges']['push'](_0x5e3b59['model']['createRangeOn'](_0x50c7e5));},{'priority':'low'}),_0x4447a6['on']('insertRows',(_0x48ca70,_0x1a99b8)=>{const [_0x36246f,_0x561b4c={}]=_0x1a99b8;if(!_0x1d1fe1)return;const _0x3e8ae2=_0x561b4c['at']||0x0,_0x32236b=_0x561b4c['rows']||0x1;_0x1d1fe1['rowInsertionIndexes']=new Array(_0x32236b)['fill'](_0x3e8ae2)['map']((_0x15aebc,_0x3fa258)=>_0x15aebc+_0x3fa258);for(const {cell:_0x195438}of _0x4447a6['createTableWalker'](_0x36246f,{'startRow':_0x3e8ae2,'endRow':_0x3e8ae2+_0x32236b-0x1}))_0x1d1fe1['rowInsertionRanges']['push'](_0x5e3b59['model']['createRangeOn'](_0x195438));},{'priority':'low'}),_0x10ac7f['descriptionFactory']['registerDescriptionCallback'](_0x14927a=>{if(_0x14927a['subType']&&_0x14927a['subType']['startsWith']('tablePaste'))return _0x14927a['previous']?{}:{'type':'insertion','content':o(_0x5e3b59['locale'],'*Replace\x20table\x20cells*')};});const _0x493472=()=>!0x1;for(const _0x2301b2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x10ac7f['_suggestionFactory']['registerCustomCallback']('insertion',_0x2301b2,'join',_0x493472),_0x10ac7f['_suggestionFactory']['registerCustomCallback']('deletion',_0x2301b2,'join',_0x493472),_0x10ac7f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2301b2,'join',_0x493472);_0x10ac7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x493472),_0x10ac7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x393747,_0x46c716,_0x2de34c)=>{const _0x5b9209=_0x393747['map'](_0x47d1e2=>_0x47d1e2['getContainedElement']())['filter'](_0xf13208=>_0xf13208),_0x5427f9=new Map(_0x5b9209['map'](_0x19c628=>[_0x19c628,null]));if(_0x1d1fe1){for(const {element:_0xb005c2,attributes:_0x1a8d92}of _0x1d1fe1['cells'])_0x1a8d92&&_0x5427f9['set'](_0xb005c2,_0x1a8d92);}else{if(_0x2de34c&&_0x2de34c['markerAttributes'])for(const [_0x2d9223,_0x1f5dd5]of Object['entries'](_0x2de34c['markerAttributes'])){const _0x115432=_0x5e3b59['model']['markers']['get'](_0x2d9223),_0x55e344=_0x115432?_0x115432['getRange']()['getContainedElement']():null;_0x55e344&&_0x5427f9['set'](_0x55e344,_0x1f5dd5);}}_0x5e3b59['model']['change'](_0x38efba=>{for(const [_0x414563,_0xccb3d3]of _0x5427f9)_0x38efba['setAttributes']({...xe,..._0xccb3d3},_0x414563);});});const _0x442d99=(_0x1210a1,_0x35cf47)=>{_0x10ac7f['_suggestionFactory']['registerCustomCallback'](_0x1210a1,'tablePaste',_0x35cf47,(_0x101008,_0x121d55,_0x15e040)=>{_0x5e3b59['model']['change'](_0x15e0c8=>{const _0x5a7cf3=[];for(const _0x4933e4 of _0x101008){const _0x9e6f09=_0x4933e4['start']['nodeAfter'];_0x9e6f09['is']('element','tableCellSuggestion')&&_0x5a7cf3['push'](_0x9e6f09);}_0x10ac7f['_suggestionFactory']['getSuggestionCallback'](_0x1210a1,null,_0x35cf47)(_0x101008,_0x121d55,_0x15e040);for(const _0x183277 of _0x5a7cf3)'$graveyard'!=_0x183277['root']['rootName']&&_0x15e0c8['unwrap'](_0x183277);});});};_0x442d99('insertion','accept'),_0x442d99('insertion','discard'),_0x442d99('deletion','accept'),_0x442d99('deletion','discard'),_0x10ac7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x11c4d7=>{const _0x3470cf=_0x11c4d7['map'](_0x413562=>_0x413562['getContainedElement']()),_0x193f22=_0x3470cf[0x0]['findAncestor']('table'),{minRow:_0x2e1c72,maxRow:_0x2e3261}=_0x173be3['_getCoordsForCells'](_0x3470cf);_0x4447a6['removeRows'](_0x193f22,{'at':_0x2e1c72,'rows':_0x2e3261-_0x2e1c72+0x1});}),_0x10ac7f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x24725f=>{const _0x201315=_0x24725f['map'](_0x91f025=>_0x91f025['getContainedElement']()),_0x1b433c=_0x201315[0x0]['findAncestor']('table'),{minColumn:_0x498757,maxColumn:_0x4c46f2}=_0x173be3['_getCoordsForCells'](_0x201315);_0x4447a6['removeColumns'](_0x1b433c,{'at':_0x498757,'columns':_0x4c46f2-_0x498757+0x1});});const _0xa799e1=(_0x152bad,_0xa84499)=>{if(!_0xa84499['subType']||!_0xa84499['subType']['startsWith']('tablePaste'))return;const _0x2e25e1=_0xa84499['attributes']['tablePasteChainId'],_0x194479=_0x10ac7f['getSuggestions']()['filter'](_0x49a236=>_0x49a236['isInContent']&&_0x49a236['attributes']&&_0x49a236['attributes']['tablePasteChainId']==_0x2e25e1);_0x194479['length']&&_0xa84499['getAllAdjacentSuggestions']()['length']!=_0x194479['length']&&_0x194479['reduce']((_0x1c20d3,_0x4c26cd)=>(_0x1c20d3['next']=_0x4c26cd,_0x4c26cd['previous']=_0x1c20d3,_0x4c26cd));};function _0x364905(_0x396a85,_0x5eb0a7=!0x0){const {id:_0x163fa6,authorId:_0x3f20b7}=_0x10ac7f['_splitMarkerName'](_0x396a85['markerName']),_0x192239=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2914ed=_0x10ac7f['activeMarkers']['includes'](_0x396a85['markerName']);return _0x2914ed&&_0x192239['push']('ck-suggestion-marker--active'),{'classes':_0x192239,'attributes':{'data-suggestion':_0x163fa6,'data-author-id':_0x3f20b7},'priority':_0x2914ed&&_0x5eb0a7?0xbc2:0xbb8};}_0x10ac7f['on']('suggestionLoaded',_0xa799e1,{'priority':'high'}),_0x10ac7f['on']('suggestionUnloaded',_0xa799e1,{'priority':'high'}),_0x5e3b59['model']['document']['registerPostFixer'](()=>{let _0x4cdc3d=!0x1;const _0x68a1fd=Array['from'](_0x5e3b59['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa4eb1b,data:_0x442f84}of _0x68a1fd){const {group:_0x572f22,type:_0xf198c3,id:_0x2c6431}=_0x10ac7f['_splitMarkerName'](_0xa4eb1b);if('suggestion'!=_0x572f22||'deletion'!=_0xf198c3||_0x442f84['oldRange'])continue;if(!_0x10ac7f['hasSuggestion'](_0x2c6431))continue;const _0x265782=_0x10ac7f['getSuggestion'](_0x2c6431)['getRanges'](),_0x12d9ee=_0x5e3b59['plugins']['get']('Users')['me'];for(const _0x1731d1 of _0x10ac7f['getSuggestions']()){if(!_0x1731d1['isInContent']||_0x1731d1['author']!=_0x12d9ee)continue;if('formatBlock'!=_0x1731d1['type']||'tablePasteCell'!=_0x1731d1['subType'])continue;if(_0x1731d1['getRanges']()['every'](_0x6e72dd=>_0x265782['some'](_0x40a5ec=>_0x40a5ec['containsRange'](_0x6e72dd,!0x0)))){for(const _0x40de6d of _0x1731d1['getAllAdjacentSuggestions']())_0x40de6d['isInContent']&&(_0x40de6d['discard'](),_0x4cdc3d=!0x0);}}}return _0x4cdc3d;}),_0x5e3b59['model']['document']['registerPostFixer'](_0x3d46a3=>{const _0x257005=_0x5e3b59['commands']['get']('redo');if(!_0x257005||!_0x257005['_createdBatches']['has'](_0x3d46a3['batch']))return!0x1;let _0x16020f=!0x1;const _0x482f73=_0x5e3b59['plugins']['get']('Users')['me'],_0x162cba=_0x5e3b59['model']['document']['differ']['getChanges'](),_0x513171=Array['from'](_0x5e3b59['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x14162f,data:_0xc01343})=>{const {group:_0x1cba95,subType:_0x5caf8b,authorId:_0x590ca7}=_0x10ac7f['_splitMarkerName'](_0x14162f);return'suggestion'==_0x1cba95&&'tablePaste'==_0x5caf8b&&_0x590ca7==_0x482f73['id']&&!_0xc01343['oldRange'];});for(const _0x1fd690 of _0x162cba){if('insert'!=_0x1fd690['type']||'tableCellSuggestion'!=_0x1fd690['name']||0x1!=_0x1fd690['length'])continue;const _0x1ce9aa=_0x3d46a3['createRange'](_0x1fd690['position'],_0x1fd690['position']['getShiftedBy'](0x1));if(!_0x513171['find'](({data:_0x3a2485})=>_0x3a2485['newRange']['isEqual'](_0x1ce9aa))){for(const {name:_0x1a3474,data:_0x10c04a}of _0x513171)if(_0x1ce9aa['containsRange'](_0x10c04a['newRange'])){_0x3d46a3['updateMarker'](_0x1a3474,{'range':_0x1ce9aa}),_0x16020f=!0x0;break;}}}return _0x16020f;}),_0x5e3b59['model']['document']['registerPostFixer'](_0x41bc0f=>{let _0x5eff5b=!0x1;const _0x24e3e2=_0x5e3b59['plugins']['get']('Users')['me'],_0x13232d=_0x10ac7f['getSuggestions']()['filter'](_0x1ab5d5=>_0x1ab5d5['isInContent']&&_0x1ab5d5['author']==_0x24e3e2),_0x472ee1=new Set(),_0x44237e=new Set();for(const _0x4d0fe3 of _0x13232d)if('tablePaste'==_0x4d0fe3['subType'])for(const _0x3c6168 of _0x4d0fe3['getMarkers']()){const _0x357b80=_0x3c6168['getRange']()['getContainedElement']();if(_0x357b80){if(_0x357b80['is']('element','tableCellSuggestion')&&Oe(_0x357b80)){_0x4d0fe3['removeMarker'](_0x3c6168['name']),_0x472ee1['add'](_0x357b80),_0x5eff5b=!0x0;const _0x4555fb=_0x357b80['nextSibling'],_0x84ac7a=_0x357b80['previousSibling'],_0x5ca601=_0x4555fb&&_0x4555fb['is']('element','tableCellSuggestion'),_0x4e0494=_0x84ac7a&&_0x84ac7a['is']('element','tableCellSuggestion');_0x5ca601&&!_0x472ee1['has'](_0x4555fb)&&_0x44237e['add'](_0x4555fb),_0x4e0494&&!_0x472ee1['has'](_0x84ac7a)&&_0x44237e['add'](_0x84ac7a);}else _0x357b80['is']('element','paragraph')&&_0x357b80['isEmpty']&&(_0x4d0fe3['removeMarker'](_0x3c6168['name']),_0x5eff5b=!0x0);}}else{if('tablePasteCell'==_0x4d0fe3['subType']){if(!_0x4d0fe3['attributes']||!_0x4d0fe3['attributes']['tablePasteChainId'])continue;const _0x1a8863=_0x4d0fe3['attributes']['markerAttributes'];if(_0x1a8863&&Object['keys'](_0x1a8863)['length'])continue;const _0x4be1a9=_0x4d0fe3['attributes']['tablePasteChainId'];let _0x263f8b=!0x0,_0x42d180=!0x0;for(const _0x1eb242 of _0x13232d)if(_0x1eb242['subType']&&_0x1eb242['subType']['startsWith']('tablePaste')){if(!_0x1eb242['attributes']['tablePasteChainId']){_0x42d180=!0x1;break;}if(_0x1eb242['id']!=_0x4d0fe3['id']&&_0x1eb242['attributes']['tablePasteChainId']==_0x4be1a9){_0x263f8b=!0x1;break;}}_0x42d180&&_0x263f8b&&(_0x4d0fe3['removeMarkers'](),_0x5eff5b=!0x0);}}for(const _0x16ef51 of _0x472ee1)_0x41bc0f['remove'](_0x16ef51);for(const _0x174002 of _0x44237e)_0x41bc0f['unwrap'](_0x174002);return _0x5eff5b;}),_0x5e3b59['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1099fc=>_0x364905(_0x1099fc),'converterPriority':'high'}),_0x5e3b59['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x26047b,_0x2b5e3a)=>_0x2b5e3a['options']['showSuggestionHighlights']?_0x364905(_0x26047b,!0x1):null,'converterPriority':'high'});const _0xb72858=_0x5e3b59['editing']['view'];this['listenTo'](_0xb72858['document'],'clipboardOutput',(_0x2f0f9e,_0x36cfb)=>{const _0x5a8923=[];for(const _0x4d2b3c of _0xb72858['createRangeIn'](_0x36cfb['content'])['getItems']())_0x4d2b3c['is']('element','suggestion-td')&&_0x5a8923['push'](_0x4d2b3c);_0xb72858['change'](_0x42be63=>{for(const _0x59703b of _0x5a8923)_0x42be63['move'](_0x42be63['createRangeIn'](_0x59703b),_0x42be63['createPositionBefore'](_0x59703b)),_0x42be63['remove'](_0x59703b);});});}}function Oe(_0x57a65c){if(_0x57a65c['isEmpty'])return!0x0;const _0x170437=_0x57a65c['getChild'](0x0);return _0x170437['is']('element','paragraph')&&_0x170437['isEmpty'];}function Ue(_0x36579c,_0x34a4ba={},_0x100bc0){for(const {isAnchor:_0x2a3844,cellHeight:_0x1d3d9f,cellWidth:_0x16b922}of _0x100bc0['createTableWalker'](_0x36579c,{'includeAllSlots':!0x0,..._0x34a4ba}))if(!_0x2a3844||0x1!=_0x1d3d9f||0x1!=_0x16b922)return!0x1;return!0x0;}class Dt extends _0x211f0d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x85d7f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x85d7f8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x85d7f8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x85d7f8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x85d7f8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x85d7f8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x85d7f8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xbf7634,_0x650703){const _0x52cc44=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fc694=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3406dd=_0x650703['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x49384b=_0x1fc694['getColumnGroupElement'](_0x3406dd);let _0x5801c5=_0x49384b?_0x1fc694['getTableColumnsWidths'](_0x49384b):null,_0x4b57d0=_0x3406dd['getAttribute']('tableWidth')||null;const _0x2bf0fd=_0x650703['tableWidth']||_0x4b57d0,_0x4920af=_0x650703['columnWidths']||_0x5801c5,_0x25e1a0=this['editor']['plugins']['get']('Users')['me'];for(const _0x3030d7 of _0x52cc44['getSuggestions']()){const _0x53fa5e=_0x3030d7['getContainedElement']();if('resizeTable'===_0x3030d7['subType']&&_0x53fa5e===_0x3406dd){_0x3030d7['author']!==_0x25e1a0&&_0x3030d7['discard']();const _0x2d25a7=_0x3030d7['data']['commandParams'];_0x4b57d0=_0x2d25a7[0x0]['tableWidth'],_0x5801c5=_0x2d25a7[0x0]['columnWidths'];break;}}_0xbf7634({'table':_0x3406dd,'tableWidth':_0x2bf0fd,'columnWidths':_0x4920af}),_0x52cc44['markBlockFormat'](_0x3406dd,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b57d0,'columnWidths':_0x5801c5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x486147){if('formatBlock'!=_0x486147['type']&&'formatInline'!=_0x486147['type'])return;const {data:_0x231c82}=_0x486147;if(_0x231c82&&'resizeTable'===_0x231c82['formatGroupId']){const _0x51a074='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x51a074)};}}}class $t extends _0x211f0d{['afterInit'](){const _0x25edb4=this['editor'];_0x25edb4['plugins']['has']('Template')&&_0x25edb4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x211f0d{['afterInit'](){const _0x524e20=this['editor'];if(!_0x524e20['commands']['get']('insertTableOfContents'))return;_0x524e20['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2c4cb8=_0x524e20['plugins']['get']('TrackChangesEditing'),_0x174133=_0x524e20['locale'];_0x2c4cb8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x195fa0=>o(_0x174133,'ELEMENT_TABLE_OF_CONTENTS',_0x195fa0));}}class Bt extends _0x211f0d{['afterInit'](){const _0x4978a7=this['editor'];if(!_0x4978a7['plugins']['has']('Title'))return;const _0x432e84=_0x4978a7['plugins']['get']('TrackChangesEditing');_0x432e84['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4978a7['locale'],'ELEMENT_TITLE')),_0x4978a7['model']['document']['registerPostFixer'](_0x4e7d75=>{let _0x905f94=!0x1;const _0x4f4b08=Array['from'](_0x4978a7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x578342,data:_0x5966d2}of _0x4f4b08){const {group:_0x434529}=_0x432e84['_splitMarkerName'](_0x578342);if('suggestion'!==_0x434529||!_0x5966d2['newRange'])continue;const _0x53bf36=_0x5966d2['newRange'],_0x3e611b=_0x53bf36['end']['nodeBefore'];if(!_0x3e611b||!_0x3e611b['is']('element','title-content'))continue;if(!_0x53bf36['start']['isTouching'](_0x53bf36['end']))continue;const _0x39db5c=_0x4978a7['model']['schema']['getNearestSelectionRange'](_0x53bf36['end'],'forward');if(_0x39db5c&&_0x39db5c['isCollapsed']){const _0xc05e01=_0x4e7d75['createRange'](_0x53bf36['start'],_0x39db5c['start']);_0xc05e01['isEqual'](_0x53bf36)||(_0x4e7d75['updateMarker'](_0x578342,{'range':_0xc05e01}),_0x905f94=!0x0);}_0x905f94||(_0x4e7d75['removeMarker'](_0x578342),_0x905f94=!0x0);}return _0x905f94;});}}class Tt extends _0x211f0d{['afterInit'](){const _0x901c18=this['editor'],_0x5566b9=_0x901c18['plugins']['get']('TrackChangesEditing');_0x901c18['plugins']['has']('Uploadcare')&&(_0x5566b9['enableCommand']('uploadcare'),_0x901c18['plugins']['has']('UploadcareImageEdit')&&(_0x5566b9['enableCommand']('uploadcareImageEdit'),_0x5566b9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5566b9['registerBlockAttribute']('uploadcareImageId'),_0x5566b9['descriptionFactory']['registerDescriptionCallback'](_0x1b1e51=>{if('attribute'!=_0x1b1e51['type'])return;const {data:_0xfcf36b}=_0x1b1e51;return _0xfcf36b&&'uploadcareImageId'==_0xfcf36b['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x211f0d{['afterInit'](){const _0x32eee5=this['editor'],_0x1b8b48=_0x32eee5['plugins']['get']('TrackChangesEditing');_0x32eee5['plugins']['has']('UndoEditing')&&(_0x1b8b48['enableCommand']('undo'),_0x1b8b48['enableCommand']('redo'));}}class Ot extends _0x211f0d{static get['requires'](){return[At];}['afterInit'](){const _0x2ecfdc=this['editor'];if(!_0x2ecfdc['plugins']['has']('TableCaptionEditing'))return;_0x2ecfdc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x211f0d{['tableProperties'];['tableCellProperties'];constructor(_0x1d6368){super(_0x1d6368),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1746ae=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x43b399 of this['tableProperties'])_0x1746ae['enableCommand'](_0x43b399,(_0x3dd1f3,_0x1a6e9c)=>{const _0x247c7b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x43b399,[_0x247c7b],this['tableProperties'],'tableProperties',_0x3dd1f3,_0x1a6e9c);});_0x1746ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1746ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1746ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3ecee6,_0x4325eb)=>this['handleDiscardAction'](this['tableProperties'],_0x3ecee6,_0x4325eb)),_0x1746ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3a6b48 of this['tableCellProperties'])_0x1746ae['enableCommand'](_0x3a6b48,(_0x31c61b,_0x24e000)=>{const _0x915d2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3a6b48,_0x915d2,this['tableCellProperties'],'tableCellProperties',_0x31c61b,_0x24e000);});_0x1746ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1746ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1746ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x22b6c1,_0xa081cb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x22b6c1,_0xa081cb)),_0x1746ae['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1746ae['descriptionFactory']['registerDescriptionCallback'](_0x40d6a6=>this['handleSuggestionDescription'](_0x40d6a6)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2b3317,_0x5d7470,_0x5c18b4,_0x53fdd4,_0x3ad043,_0x46bda1){const _0x4ac0d4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x46bda1['batch'],()=>{for(const _0x81e39c of _0x5d7470){if(this['_getSuggestion'](_0x81e39c,_0x53fdd4))_0x3ad043(_0x46bda1);else{const _0x2b4599={};for(const _0x4cfa32 of _0x5c18b4){const _0x1031e4=_0x81e39c['getAttribute'](_0x4cfa32);void 0x0!==_0x1031e4&&(_0x2b4599[_0x4cfa32]=_0x1031e4);}_0x3ad043(_0x46bda1),_0x4ac0d4['markBlockFormat'](_0x81e39c,{'commandParams':[_0x2b4599]},[],_0x53fdd4);}}});}['handleDiscardAction'](_0x581831,_0x485642,_0x17b7e3){const _0x86d6b=_0x485642[0x0]['start']['nodeAfter'],_0x1a8e6d=_0x17b7e3['commandParams'][0x0];this['editor']['model']['change'](_0x41c0bd=>{for(const _0x47f71d of _0x581831)void 0x0!==_0x1a8e6d[_0x47f71d]?_0x41c0bd['setAttribute'](_0x47f71d,_0x1a8e6d[_0x47f71d],_0x86d6b):_0x41c0bd['removeAttribute'](_0x47f71d,_0x86d6b);});}['handleSuggestionDescription'](_0x25778b){if(_0x25778b['data'])switch(_0x25778b['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5c1a8d,_0x58aaa0){const _0xb479b9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4a0c9c of _0xb479b9['getSuggestions']({'skipNotAttached':!0x0})){const _0x5ed682=_0x4a0c9c['getContainedElement']();if(_0x4a0c9c['subType']===_0x58aaa0&&_0x5ed682===_0x5c1a8d)return _0x4a0c9c;}return null;}['_registerTablePropertiesAttributes'](){const _0x11932b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x315bf9=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1da6f9 of _0x315bf9){const _0x2e3a32=_0x1da6f9['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x11932b['registerBlockAttribute'](_0x1da6f9),_0x11932b['descriptionFactory']['registerAttributeLabel'](_0x1da6f9,o(this['editor']['locale'],'FORMAT_'+_0x2e3a32));}}}class Rt extends _0x211f0d{['afterInit'](){const _0x121fee=this['editor'];if(!_0x121fee['plugins']['has']('LineHeight'))return;const _0x1675a9=_0x121fee['plugins']['get']('TrackChangesEditing'),_0x475fbc=_0x121fee['locale'];_0x1675a9['enableDefaultAttributesIntegration']('lineHeight'),_0x1675a9['registerBlockAttribute']('lineHeight'),_0x1675a9['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x475fbc,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x211f0d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x429a0e,_0x3129cd,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x201cb7){super(_0x201cb7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4525f0,_0x49052d,_0x2c637c,_0x84ae1b)=>{this['_model']['change'](()=>{for(const _0x2404cd of[..._0x84ae1b,..._0x2c637c])this['_model']['markers']['has'](_0x2404cd)&&_0x201cb7['editing']['reconvertMarker'](_0x2404cd);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x201cb7['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x201cb7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x201cb7['config']['get']('trackChanges.trackFormatChanges'),_0x201cb7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x201cb7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x201cb7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x37a9d5=this['editor'],_0xfc3744=(_0x5aa955,_0x584fd8)=>{if('attribute'!=_0x5aa955)return'ck-suggestion-marker-'+_0x5aa955;const _0x320738=_0x584fd8['split']('|')[0x0];return this['_isBlockAttribute'](_0x320738)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x37a9d5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x11ef6b=>{const {id:_0x79e63a,authorId:_0x2b2d16,type:_0x46c36f,subType:_0x5b9cc0}=this['_splitMarkerName'](_0x11ef6b['markerName']),_0x904906=['ck-suggestion-marker',_0xfc3744(_0x46c36f,_0x5b9cc0)];let _0x4e013c=0xbb8;return this['activeMarkers']['includes'](_0x11ef6b['markerName'])&&(_0x904906['push']('ck-suggestion-marker--active'),_0x4e013c=0xbc2),'deletion'==_0x46c36f&&(_0x4e013c+=0x5),{'classes':_0x904906,'attributes':{'data-suggestion':_0x79e63a,'data-author-id':_0x2b2d16},'priority':_0x4e013c};}}),_0x37a9d5['conversion']['for']('dataDowncast')['add'](_0x5a48c9=>{_0x5a48c9['on']('addMarker:suggestion',(_0x504ade,_0x1b4bf7,_0x135c14)=>{if(!_0x135c14['options']['showSuggestionHighlights'])return;const _0x286e2e=_0x1b4bf7['item'];if(!_0x286e2e)return;const _0x5e31b2=_0x135c14['mapper']['toViewElement'](_0x286e2e);_0x37a9d5['model']['schema']['isObject'](_0x286e2e)&&_0x5e31b2&&!_0x5e31b2['getCustomProperty']('widget')&&_0x5e31b2['is']('containerElement')&&_0x4993fe(_0x5e31b2,_0x135c14['writer']);},{'priority':'high'});}),_0x37a9d5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x442fb6,_0x698f8e)=>{if(!_0x698f8e['options']['showSuggestionHighlights'])return null;const {id:_0x59a29d,authorId:_0x36f1e4,type:_0x51897c,subType:_0xe5ba39}=this['_splitMarkerName'](_0x442fb6['markerName']);return{'classes':['ck-suggestion-marker',_0xfc3744(_0x51897c,_0xe5ba39)],'priority':0xbb8,'attributes':{'data-suggestion':_0x59a29d,'data-author-id':_0x36f1e4}};}});const _0x288227=({showActiveMarkers:_0x47b858=!0x0,isAttributeSuggestion:_0x464e88=!0x1}={})=>(_0x12b2c2,_0x537caf,_0x1ee40b)=>{if(!_0x537caf['item'])return;const {id:_0xdeca76,authorId:_0x4d2be4}=this['_splitMarkerName'](_0x537caf['markerName']);if(_0x464e88){const _0x20e280=this['_suggestions']['get'](_0xdeca76),_0x5e8888=this['_getAttributeKey'](_0x20e280);if(!this['_isBlockAttribute'](_0x5e8888))return;}if(_0x537caf['item']['is']('selection'))return void _0x1ee40b['consumable']['consume'](_0x537caf['item'],_0x12b2c2['name']);const _0x4ebcd6=_0x1ee40b['mapper']['toViewElement'](_0x537caf['item']);if(_0x537caf['item']['is']('element')&&_0x37a9d5['model']['schema']['isBlock'](_0x537caf['item'])&&!_0x4ebcd6['getCustomProperty']('addHighlight')){_0x1ee40b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4ebcd6),_0x1ee40b['writer']['setAttribute']('data-suggestion',_0xdeca76,_0x4ebcd6),_0x1ee40b['writer']['setAttribute']('data-author-id',_0x4d2be4,_0x4ebcd6),_0x1ee40b['mapper']['bindElementToMarker'](_0x4ebcd6,_0x537caf['markerName']),_0x47b858&&(this['activeMarkers']['includes'](_0x537caf['markerName'])?_0x1ee40b['writer']['addClass']('ck-suggestion-marker--active',_0x4ebcd6):_0x1ee40b['writer']['removeClass']('ck-suggestion-marker--active',_0x4ebcd6));for(const _0x6e4259 of _0x37a9d5['model']['createRangeIn'](_0x537caf['item'])['getItems']())_0x1ee40b['consumable']['consume'](_0x6e4259,_0x12b2c2['name']);_0x1ee40b['consumable']['consume'](_0x537caf['item'],_0x12b2c2['name']);}};_0x37a9d5['conversion']['for']('dataDowncast')['add'](_0x1b7331=>{_0x1b7331['on']('addMarker:suggestion:formatBlock',(_0x1eac52,_0x593905,_0xb93de9)=>{_0xb93de9['options']['showSuggestionHighlights']&&_0x288227({'showActiveMarkers':!0x1})(_0x1eac52,_0x593905,_0xb93de9);},{'priority':'highest'});}),_0x37a9d5['conversion']['for']('dataDowncast')['add'](_0x3215a9=>{_0x3215a9['on']('addMarker:suggestion:attribute',(_0x132b11,_0x1f7277,_0x37460f)=>{_0x37460f['options']['showSuggestionHighlights']&&_0x288227({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x132b11,_0x1f7277,_0x37460f);},{'priority':'highest'});}),_0x37a9d5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2b92c9,_0x304b05)=>{if(_0x304b05['options']['showSuggestionHighlights']){const {id:_0x4c24ca,authorId:_0x9adc78}=this['_splitMarkerName'](_0x2b92c9);return _0x2b92c9['includes'](':split')||_0x2b92c9['includes'](':merge')?{'group':'suggestion','name':_0x2b92c9['substr'](0xb),'attributes':{'data-suggestion':_0x4c24ca,'data-author-id':_0x9adc78}}:null;}return{'group':'suggestion','name':_0x2b92c9['substr'](0xb)};}}),_0x37a9d5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x69966b,{writer:_0x36c008})=>{let _0x521419='suggestion:'+_0x69966b['getAttribute']('suggestion-type')+':'+_0x69966b['getAttribute']('id');return _0x69966b['getAttribute']('marker-count')&&(_0x521419+=':'+_0x69966b['getAttribute']('marker-count')),_0x36c008['createElement']('$marker',{'data-name':_0x521419});}}),_0x37a9d5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x37a9d5['conversion']['for']('editingDowncast')['add'](_0x99b484=>{_0x99b484['on']('addMarker:suggestion:formatBlock',_0x288227(),{'priority':'high'});}),_0x37a9d5['conversion']['for']('editingDowncast')['add'](_0x23ba91=>{_0x23ba91['on']('addMarker:suggestion:attribute',_0x288227({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x37a9d5['conversion']['for']('editingDowncast')['add'](_0x379264=>{_0x379264['on']('removeMarker:suggestion:formatBlock',(_0x21eb1a,_0x1e43de,_0x2db95b)=>{const _0x42d0de=_0x2db95b['mapper']['markerNameToElements'](_0x1e43de['markerName']);if(_0x42d0de){for(const _0x42edb0 of _0x42d0de)_0x42edb0['getCustomProperty']('addHighlight')||(_0x2db95b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x42edb0),_0x2db95b['writer']['removeAttribute']('data-suggestion',_0x42edb0),_0x2db95b['writer']['removeAttribute']('data-author-id',_0x42edb0),_0x2db95b['mapper']['unbindElementFromMarkerName'](_0x42edb0,_0x1e43de['markerName']));}},{'priority':'high'});}),_0x37a9d5['conversion']['for']('editingDowncast')['add'](_0xc03454=>{_0xc03454['on']('removeMarker:suggestion:attribute',(_0x1f4d5d,_0x4a84fa,_0x4fb442)=>{const _0x41b4c7=_0x4fb442['mapper']['markerNameToElements'](_0x4a84fa['markerName']);if(!_0x41b4c7)return;const {id:_0x1df0cf}=this['_splitMarkerName'](_0x4a84fa['markerName']),_0x3efe6f=this['_suggestions']['get'](_0x1df0cf),_0x1e3907=this['_getAttributeKey'](_0x3efe6f);if(this['_isBlockAttribute'](_0x1e3907)){for(const _0x4c99a5 of _0x41b4c7)_0x4c99a5['getCustomProperty']('addHighlight')||(_0x4fb442['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4c99a5),_0x4fb442['writer']['removeAttribute']('data-suggestion',_0x4c99a5),_0x4fb442['writer']['removeAttribute']('data-author-id',_0x4c99a5),_0x4fb442['mapper']['unbindElementFromMarkerName'](_0x4c99a5,_0x4a84fa['markerName']));}},{'priority':'high'});}),_0x37a9d5['model']['document']['registerPostFixer'](_0x11a955=>{let _0x2a21e5=!0x1;const _0x3bf851=Array['from'](_0x37a9d5['model']['document']['differ']['getChangedMarkers']()),_0x2b61fb=new Set();for(const {name:_0x482def,data:_0xf6f282}of _0x3bf851){const {group:_0x1d2a27,type:_0x6bf9b8,subType:_0x2c2709,id:_0x359bfe}=this['_splitMarkerName'](_0x482def);if('suggestion'!==_0x1d2a27)continue;const _0x560d20=_0x2c2709?'suggestion:'+_0x6bf9b8+':'+_0x2c2709+':'+_0x359bfe:'suggestion:'+_0x6bf9b8+':'+_0x359bfe,_0x125d1e=_0x37a9d5['model']['markers']['getMarkersGroup'](_0x560d20),_0x116505=_0x37a9d5['model']['markers']['get'](_0x482def),_0x347660=this['_suggestions']['get'](_0x359bfe);if(null!=_0xf6f282['newRange']){'formatInline'==_0x6bf9b8&&(_0x2a21e5=_0x2a21e5||Gt(_0xf6f282['newRange'],_0x482def,_0x11a955,_0x37a9d5['model']['schema']));const _0x528a04='attribute'==_0x6bf9b8&&this['_isBlockAttribute'](_0x2c2709['split']('|')[0x0]),_0x27d9f7='attribute'==_0x6bf9b8&&this['_isInlineAttribute'](_0x2c2709['split']('|')[0x0]);if(_0xf6f282['newRange']['isCollapsed']||'$graveyard'==_0xf6f282['newRange']['root']['rootName']||'formatBlock'==_0x6bf9b8&&!Jt(_0xf6f282['newRange'])||_0x528a04&&!Jt(_0xf6f282['newRange'])||_0x27d9f7&&Kt(_0xf6f282['newRange'])||'deletion'==_0x6bf9b8&&Kt(_0xf6f282['newRange'])||_0x116505&&Ht(_0x116505,_0x125d1e))_0x11a955['removeMarker'](_0x482def),_0x2a21e5=!0x0;else{if(!_0x347660||!_0x347660['isInContent'])continue;if(_0xf6f282['newRange']&&_0xf6f282['oldRange']&&_0xf6f282['newRange']['isEqual'](_0xf6f282['oldRange']))continue;_0x2b61fb['add'](_0x347660);}}}return _0x2b61fb['size']>0x0&&(_0x2a21e5=!!this['_joinWithAdjacentSuggestions'](_0x2b61fb)||_0x2a21e5),_0x2a21e5;}),_0x37a9d5['model']['document']['registerPostFixer'](_0x5a1729=>{let _0x1bfe20=!0x1;for(const _0x1c8664 of _0x37a9d5['model']['document']['differ']['getChanges']())if('insert'==_0x1c8664['type'])for(const _0x2641e3 of this['_suggestions']['values']()){if(_0x2641e3['isMultiRange']||!_0x2641e3['isInContent'])continue;const _0x5a34eb='formatBlock'==_0x2641e3['type'],_0x380241=this['_getAttributeKey'](_0x2641e3),_0x564fe6=_0x380241&&this['_isBlockAttribute'](_0x380241);if(!_0x5a34eb&&!_0x564fe6)continue;const _0x182703=_0x2641e3['getFirstRange']();if(_0x182703['start']['parent']!=_0x182703['end']['parent']&&!_0x182703['end']['isAtEnd']){const _0x1df9eb=_0x37a9d5['model']['createPositionAt'](_0x182703['start']['nodeAfter'],'end'),_0x56bb0c=_0x37a9d5['model']['createRange'](_0x182703['start'],_0x1df9eb);_0x5a1729['updateMarker'](_0x2641e3['getFirstMarker'](),{'range':_0x56bb0c}),_0x1bfe20=!0x0;}}return _0x1bfe20;}),_0x37a9d5['model']['document']['registerPostFixer'](_0x47673a=>this['_processAttributeChanges'](_0x47673a)),_0x37a9d5['model']['document']['registerPostFixer'](_0x462f74=>!_0x462f74['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x462f74)),_0x37a9d5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x37a9d5['model']['document']['on']('change:data',(_0x5b322a,_0x5116a7)=>{if(!_0x5116a7['isLocal']||_0x5116a7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x33b9d9=_0x37a9d5['model']['document']['differ']['getChanges']();if(0x0==_0x33b9d9['length'])return;const _0x15122d=[],_0xfe1b84=_0x33b9d9['filter'](_0x35ceb6=>'attribute'==_0x35ceb6['type']),_0x284cba=_0x33b9d9['filter'](_0x5180c0=>'insert'==_0x5180c0['type']&&'$text'!=_0x5180c0['name']);for(const _0x3530bc of _0xfe1b84)this['_isRegisteredAttribute'](_0x3530bc['attributeKey'])&&_0x15122d['push']({'key':_0x3530bc['attributeKey'],'newValue':_0x3530bc['attributeNewValue'],'oldValue':_0x3530bc['attributeOldValue'],'range':qt(_0x3530bc['range'],_0x37a9d5['model'])});for(const _0x2140e8 of _0x284cba){if('rename'!=_0x2140e8['action']&&'refresh'!=_0x2140e8['action'])continue;const _0x27f002=zt(_0x2140e8['position']['nodeAfter'],_0x37a9d5['model']),_0x48856b=_0x2140e8['before'];'rename'==_0x2140e8['action']&&_0x15122d['push']({'key':m,'newValue':_0x2140e8['name'],'oldValue':_0x48856b['name'],'range':_0x27f002});for(const [_0x1abdef,_0x5bdaf6]of _0x48856b['attributes']){if(!this['_isRegisteredAttribute'](_0x1abdef))continue;const _0x4518b8=_0x2140e8['attributes']['get'](_0x1abdef);_0x5bdaf6!==_0x4518b8&&_0x15122d['push']({'key':_0x1abdef,'newValue':_0x4518b8,'oldValue':_0x5bdaf6,'range':_0x27f002});}for(const [_0x14ef1e,_0x9d78fe]of _0x2140e8['attributes'])this['_isRegisteredAttribute'](_0x14ef1e)&&(_0x48856b['attributes']['has'](_0x14ef1e)||_0x15122d['push']({'key':_0x14ef1e,'newValue':_0x9d78fe,'oldValue':null,'range':_0x27f002}));}0x0!=_0x15122d['length']&&_0x37a9d5['model']['enqueueChange'](_0x5116a7,_0x229c44=>{const _0x3d7d96=_0x36dab6();for(const {range:_0x3747aa,key:_0x140ef0,oldValue:_0x5c32e6,newValue:_0x3d8851}of _0x15122d)this['markAttributeChange'](_0x3747aa,_0x140ef0,_0x5c32e6,_0x3d8851,{'groupId':_0x3d7d96});this['_reduceExistingSuggestions'](_0x229c44,_0x15122d);});},{'priority':'lowest'}),_0x37a9d5['model']['markers']['on']('update:suggestion',(_0x5105f6,_0x20eea6,_0x58f1db)=>{if(null==_0x58f1db){const {id:_0x8c3f46}=this['_splitMarkerName'](_0x20eea6['name']),_0x6294e4=this['_suggestions']['get'](_0x8c3f46);_0x6294e4&&_0x6294e4['addMarkerName'](_0x20eea6['name']);}}),_0x37a9d5['model']['document']['on']('change:data',()=>{const _0x43811c=Array['from'](_0x37a9d5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x55589e=>'suggestion'===this['_splitMarkerName'](_0x55589e['name'])['group']);if(0x0===_0x43811c['length'])return;_0x43811c['sort']((_0x34b998,_0x472cb9)=>{const _0x37388c=_0x34b998['data']['oldRange'],_0x30fa4a=_0x472cb9['data']['oldRange'];return null===_0x37388c&&null===_0x30fa4a?0x0:null===_0x37388c&&null!==_0x30fa4a?-0x1:null!==_0x37388c&&null===_0x30fa4a?0x1:_0x37388c['start']['isBefore'](_0x30fa4a['start'])?-0x1:0x1;});const _0x158878=new Set(),_0xe6b353=new Set();for(const {name:_0x22d0be,data:_0x267131}of _0x43811c){const {id:_0x1dc074}=this['_splitMarkerName'](_0x22d0be);if(null===_0x267131['oldRange']){const _0x131f2f=this['_handleNewSuggestionMarker'](_0x22d0be);_0xe6b353['add'](_0x131f2f);}else{const _0x55e33e=this['_suggestions']['get'](_0x1dc074);null!==_0x267131['newRange']||_0x55e33e['isInContent']?(_0x158878['add'](_0x55e33e['head']),_0xe6b353['add'](_0x55e33e)):this['_removeSuggestion'](_0x55e33e);}}_0xe6b353['size']>0x0&&this['_refreshSuggestionsChain'](_0xe6b353);for(const _0x5dc333 of _0x158878)this['fire']('suggestionChanged',_0x5dc333);}),_0x37a9d5['model']['on']('applyOperation',(_0x3ee43c,_0x18725d)=>{const _0x2a2a87=_0x18725d[0x0];if(!this['_suggestions']['size'])return;if(!_0x2a2a87['isDocumentOperation'])return;if(_0x2a2a87['batch']['isUndo']||!_0x2a2a87['batch']['isLocal'])return;let _0x48d725,_0x517e03;switch(_0x2a2a87['type']){case'insert':_0x48d725=_0x37a9d5['model']['createPositionAt'](_0x2a2a87['position']),_0x517e03=_0x48d725['getShiftedBy'](_0x2a2a87['howMany']);break;case'split':_0x48d725=_0x37a9d5['model']['createPositionAt'](_0x2a2a87['splitPosition']),_0x517e03=_0x37a9d5['model']['createPositionAt'](_0x2a2a87['moveTargetPosition']);break;case'move':_0x48d725=_0x37a9d5['model']['createPositionAt'](_0x2a2a87['targetPosition']),_0x517e03=_0x48d725['getShiftedBy'](_0x2a2a87['howMany']);break;default:return;}const _0x2c2f31=_0x37a9d5['model']['createRange'](_0x48d725,_0x517e03);_0x37a9d5['model']['change'](()=>{for(const {suggestion:_0x2b6521,meta:_0x1088b8}of this['_findSuggestions'](_0x2c2f31)){if(_0x2b6521['isMultiRange'])continue;if('formatInline'==_0x2b6521['type'])continue;const _0x831a5f=this['_getAttributeKey'](_0x2b6521);if(_0x831a5f&&this['_isBlockAttribute'](_0x831a5f)&&'split'!=_0x2a2a87['type'])continue;const _0x560a73=_0x2b6521['data']&&_0x2b6521['data']['multipleBlocks'];('formatBlock'!=_0x2b6521['type']||'split'==_0x2a2a87['type']&&!_0x560a73)&&(_0x1088b8['containsRangeInObject']||'insertion'==_0x2b6521['type']&&_0x1088b8['isOwn']||_0x2b6521['getFirstRange']()['containsRange'](_0x2c2f31)&&this['_breakSuggestionMarker'](_0x2b6521,_0x48d725,_0x517e03));}});},{'priority':'lowest'}),_0x37a9d5['model']['on']('deleteContent',(_0x31fec8,_0x8a05be)=>{const _0x3a9999=_0x8a05be[0x0],_0x3cb152=_0x8a05be[0x1];if(_0x3cb152&&_0x3cb152['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3a9999['isCollapsed'])return;const _0x3e71e4=_0x37a9d5['model']['schema'],{start:_0x5614,end:_0xb9cf87}=_0x3a9999['getFirstRange'](),_0x3e22f5=_0x5614['nodeAfter']&&_0x3e71e4['isLimit'](_0x5614['nodeAfter'])?null:_0x3e71e4['getNearestSelectionRange'](_0x5614,'forward'),_0x78ea23=_0xb9cf87['nodeBefore']&&_0x3e71e4['isLimit'](_0xb9cf87['nodeBefore'])?null:_0x3e71e4['getNearestSelectionRange'](_0xb9cf87,'backward'),_0x277274=_0x37a9d5['model']['createRange'](_0x3e22f5?_0x3e22f5['start']:_0x5614,_0x78ea23?_0x78ea23['end']:_0xb9cf87);_0x37a9d5['model']['change'](_0x2a4838=>{this['markDeletion'](_0x277274);const _0x2a3f35=_0x37a9d5['model']['schema']['getNearestSelectionRange'](_0x277274['start']);_0x3a9999['is']('documentSelection')?_0x2a4838['setSelection'](_0x2a3f35):_0x3a9999['setTo'](_0x2a3f35);}),_0x31fec8['stop']();},{'priority':_0x5058de['normal']+0xa}),_0x37a9d5['model']['on']('insertContent',(_0x137b5a,_0x19729c)=>{const _0xda1850=_0x19729c[_0x19729c['length']-0x1];_0xda1850&&_0xda1850['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x37a9d5['model']['change'](()=>{let _0x4930b2=_0x37a9d5['model']['insertContent'](_0x19729c[0x0],_0x19729c[0x1],_0x19729c[0x2],{'forceDefaultExecution':!0x0});if(!_0x4930b2)return;_0x137b5a['return']=_0x4930b2['clone']();const _0x40ac6b=_0x4930b2['end']['nodeBefore'],_0x1126e2=_0x37a9d5['model']['schema'];_0x40ac6b&&_0x1126e2['isBlock'](_0x40ac6b)&&!_0x1126e2['isObject'](_0x40ac6b)&&(_0x4930b2=_0x37a9d5['model']['createRange'](_0x4930b2['start'],_0x37a9d5['model']['createPositionAt'](_0x40ac6b,'end'))),this['markInsertion'](_0x4930b2);}),_0x137b5a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ce671=new D(_0x37a9d5,this['_suggestions']);_0x37a9d5['commands']['add']('acceptSuggestion',_0x2ce671),this['enableCommand']('acceptSuggestion');const _0x1c3618=new $(_0x37a9d5,this['_suggestions']);_0x37a9d5['commands']['add']('discardSuggestion',_0x1c3618),this['enableCommand']('discardSuggestion'),_0x37a9d5['commands']['add']('acceptAllSuggestions',new M(_0x37a9d5,_0x2ce671,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x37a9d5['commands']['add']('discardAllSuggestions',new M(_0x37a9d5,_0x1c3618,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x37a9d5['commands']['add']('acceptSelectedSuggestions',new B(_0x37a9d5,_0x2ce671,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x37a9d5['commands']['add']('discardSelectedSuggestions',new B(_0x37a9d5,_0x1c3618,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15fd8a=_0x37a9d5['plugins']['get']('CommentsRepository');this['listenTo'](_0x15fd8a,'addComment',(_0x35b913,{threadId:_0x4954a6})=>{const _0x1c4bda=this['_suggestions']['get'](_0x4954a6);_0x1c4bda&&_0x1c4bda['commentThread']&&0x1===_0x1c4bda['commentThread']['length']&&this['_updateSuggestionData'](_0x4954a6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15fd8a,'removeComment',(_0x3d2e03,{threadId:_0x46b160})=>{const _0x50654a=this['_suggestions']['get'](_0x46b160);_0x50654a&&_0x50654a['commentThread']&&!_0x50654a['commentThread']['length']&&this['_updateSuggestionData'](_0x46b160,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a7a1e){const _0x271a55=_0x5aa07a([0x70,0x54,0x68,0x36,0x4d,0x65,0x45,0x64,0x6b,0x37,0x61,0x48,0x46,0x74,0x78,0x57,0x67,0x59,0x79,0x6d,0x30,0x47,0x41,0x76,0x38,0x71,0x49,0x6e,0x73,0x7a,0x6c,0x6a,0x58,0x75,0x43,0x4f,0x42,0x31,0x6f,0x52,0x63,0x72,0x4b,0x56,0x50,0x33,0x4a,0x35,0x4c,0x77,0x53,0x55,0x51,0x69,0x5a,0x32,0x44,0x39,0x4e,0x34,0x62,0x66]),_0x30e9cb=0x6e3b450a,_0x46fde4=0x6e3c35da^_0x30e9cb,_0x29bda4=window[_0x5aa07a([0x44,0x61,0x74,0x65])][_0x5aa07a([0x6e,0x6f,0x77])](),_0xa785fd=_0x3a7a1e[_0x5aa07a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x16348f=new window[(_0x5aa07a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d344f=>{_0xa785fd[_0x5aa07a([0x6f,0x6e,0x63,0x65])](_0x5aa07a([0x72,0x65,0x61,0x64,0x79]),_0x4d344f);}),_0x88f7cd={[_0x5aa07a([0x6b,0x74,0x79])]:_0x5aa07a([0x45,0x43]),[_0x5aa07a([0x75,0x73,0x65])]:_0x5aa07a([0x73,0x69,0x67]),[_0x5aa07a([0x63,0x72,0x76])]:_0x5aa07a([0x50,0x2d,0x32,0x35,0x36]),[_0x5aa07a([0x78])]:_0x5aa07a([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]),[_0x5aa07a([0x79])]:_0x5aa07a([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]),[_0x5aa07a([0x61,0x6c,0x67])]:_0x5aa07a([0x45,0x53,0x32,0x35,0x36])},_0x1145ce=_0xa785fd[_0x5aa07a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5aa07a([0x67,0x65,0x74])](_0x5aa07a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa56ca8(){let _0x3b72bb,_0x15dfcc=null,_0x276806=null;try{if(_0x1145ce==_0x5aa07a([0x47,0x50,0x4c]))return _0x5aa07a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b72bb=_0xc316f4(),!_0x3b72bb)return _0x5aa07a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b72bb[_0x5aa07a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x276806=_0x357acb(_0x3b72bb[_0x5aa07a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b72bb[_0x5aa07a([0x6a,0x74,0x69])])),await _0x253c01()?_0x5c4242()?_0x2e7042()?_0x5aa07a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3367c2()?(_0x3b72bb[_0x5aa07a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aa07a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15dfcc=_0x3e7e89(_0x5aa07a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b72bb[_0x5aa07a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aa07a([0x74,0x72,0x69,0x61,0x6c])&&(_0x15dfcc=_0x3e7e89(_0x5aa07a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xca4607()):_0x5aa07a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5aa07a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5aa07a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5aa07a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e7042(){const _0x472182=[_0x5aa07a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5aa07a([0x74,0x72,0x69,0x61,0x6c])][_0x5aa07a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b72bb[_0x5aa07a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29bda4/0x3e8:0xe10*_0x46fde4;return _0x3b72bb[_0x5aa07a([0x65,0x78,0x70])]<_0x472182;}function _0x5c4242(){const _0x4746ef=_0x3b72bb[_0x5aa07a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4746ef)return!0x1;if(_0x4746ef[_0x5aa07a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa07a([0x2a])))return!0x0;if(_0x4746ef[_0x5aa07a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa07a([0x54,0x43])))return!0x0;if(_0x4746ef[_0x5aa07a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa07a([0x52,0x54,0x43]))){if(_0x1b0331())return!0x0;if(_0x143c62()||_0x5e052d())return!0x0;}return!0x1;}function _0x3367c2(){const _0x533fa2=_0x3b72bb[_0x5aa07a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x533fa2||0x0==_0x533fa2[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x412db8}=new URL(window[_0x5aa07a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x533fa2[_0x5aa07a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x412db8))return!0x0;const _0x584eb2=_0x412db8[_0x5aa07a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa07a([0x2e]));return _0x533fa2[_0x5aa07a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58f3e2=>_0x58f3e2[_0x5aa07a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa07a([0x2a])))[_0x5aa07a([0x6d,0x61,0x70])](_0x1bc6a0=>_0x1bc6a0[_0x5aa07a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa07a([0x2e])))[_0x5aa07a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d0335=>_0x2d0335[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x584eb2[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5aa07a([0x6d,0x61,0x70])](_0x30711f=>Array(_0x584eb2[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30711f[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5aa07a([0x66,0x69,0x6c,0x6c])](_0x30711f[0x0]===_0x5aa07a([0x2a])?_0x5aa07a([0x2a]):'')[_0x5aa07a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30711f))[_0x5aa07a([0x73,0x6f,0x6d,0x65])](_0x3676bb=>_0x584eb2[_0x5aa07a([0x65,0x76,0x65,0x72,0x79])]((_0x5d2b7d,_0x5234e1)=>_0x3676bb[_0x5234e1]===_0x5d2b7d||_0x3676bb[_0x5234e1]===_0x5aa07a([0x2a])));}function _0xca4607(){return _0x15dfcc&&_0x276806?new window[(_0x5aa07a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a8845,_0x59a6c8)=>{_0x15dfcc[_0x5aa07a([0x74,0x68,0x65,0x6e])](_0x2a8845,_0x59a6c8),_0x276806[_0x5aa07a([0x74,0x68,0x65,0x6e])](_0x171de0=>{_0x171de0!=_0x5aa07a([0x56,0x61,0x6c,0x69,0x64])&&_0x2a8845(_0x171de0);},_0x59a6c8);}):_0x15dfcc||_0x276806||_0x5aa07a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x357acb(_0x1781ce,_0x1d2fc){return new window[(_0x5aa07a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ab8e8=>{if(_0xce9f50())return _0x5ab8e8(_0x5aa07a([0x56,0x61,0x6c,0x69,0x64]));_0x3f96be(),_0xa785fd[_0x5aa07a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5aa07a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x153ac2=!0x1;const _0x2fc171=_0x36dab6();function _0x336c2e(_0x50778a){return!!_0x50778a&&(typeof _0x50778a===_0x5aa07a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x50778a===_0x5aa07a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x50778a[_0x5aa07a([0x74,0x68,0x65,0x6e])]===_0x5aa07a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x50778a[_0x5aa07a([0x63,0x61,0x74,0x63,0x68])]===_0x5aa07a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc4a3e2(_0x1eadde){_0x261ab2(_0x1eadde)[_0x5aa07a([0x74,0x68,0x65,0x6e])](_0x101aff=>{if(!_0x101aff||_0x101aff[_0x5aa07a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5aa07a([0x6f,0x6b]))return _0x5aa07a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cdcd7(_0x13fa14(_0x2fc171+_0x1d2fc))!=_0x101aff[_0x5aa07a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5aa07a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5aa07a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5aa07a([0x74,0x68,0x65,0x6e])](_0x1ade7d=>(_0x5228c9(),_0x1ade7d),()=>{const _0xa9d90e=_0x3179a7();return null==_0xa9d90e?(_0x5228c9(),_0x5aa07a([0x56,0x61,0x6c,0x69,0x64])):_0x5aa07a(_0x29bda4-_0xa9d90e>(0x4a37c10a^_0x30e9cb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5aa07a([0x74,0x68,0x65,0x6e])](_0x5ab8e8)[_0x5aa07a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ab8e8(_0x5aa07a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x326df4=0x6e0dab8a^_0x30e9cb;function _0x5228c9(){const _0x584166=_0x5aa07a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cdcd7(_0x13fa14(_0x1781ce)),_0x2f47f7=_0x5ddd75(_0x3cdcd7(window[_0x5aa07a([0x4d,0x61,0x74,0x68])][_0x5aa07a([0x63,0x65,0x69,0x6c])](_0x29bda4/_0x326df4)));window[_0x5aa07a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aa07a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x584166,_0x2f47f7);}function _0x3179a7(){const _0x22e748=_0x5aa07a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cdcd7(_0x13fa14(_0x1781ce)),_0x4e0c54=window[_0x5aa07a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aa07a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22e748);return _0x4e0c54?window[_0x5aa07a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ddd75(_0x4e0c54),0x10)*_0x326df4:null;}function _0x261ab2(_0x13c7ae){return new window[(_0x5aa07a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b03f2,_0x1be808)=>{_0x13c7ae[_0x5aa07a([0x74,0x68,0x65,0x6e])](_0x3b03f2,_0x1be808),window[_0x5aa07a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1be808,0x6e3a91ca^_0x30e9cb);});}}_0xa785fd[_0x5aa07a([0x6f,0x6e])](_0x5aa07a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4489a6,_0x41cf4a)=>{if(_0x41cf4a[0x0]!=_0x1781ce)return _0x5ab8e8(_0x5aa07a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41cf4a[0x1]={..._0x41cf4a[0x1],[_0x5aa07a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fc171};},{[_0x5aa07a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aa07a([0x68,0x69,0x67,0x68])}),_0xa785fd[_0x5aa07a([0x6f,0x6e])](_0x5aa07a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3abfa0=>{_0x336c2e(_0x3abfa0[_0x5aa07a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x153ac2=!0x0,_0xc4a3e2(_0x3abfa0[_0x5aa07a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5aa07a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aa07a([0x6c,0x6f,0x77])}),_0x16348f[_0x5aa07a([0x74,0x68,0x65,0x6e])](()=>{_0x153ac2||_0x5ab8e8(_0x5aa07a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xce9f50(){return _0xa785fd[_0x5aa07a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aa07a([0x76,0x69,0x65,0x77])][_0x5aa07a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5aa07a([0x61,0x75,0x74,0x6f]);}function _0x3f96be(){_0xa785fd[_0x5aa07a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aa07a([0x76,0x69,0x65,0x77])][_0x5aa07a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5aa07a([0x61,0x75,0x74,0x6f]);}}function _0x3e7e89(_0x2856c9){const _0x5b69c9=[new window[(_0x5aa07a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bf0b2=>setTimeout(_0x3bf0b2,0x6e327bc6^_0x30e9cb)),_0x16348f[_0x5aa07a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5aa07a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22a381=>{let _0x9d066f=0x0;_0xa785fd[_0x5aa07a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa07a([0x6f,0x6e])](_0x5aa07a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1e3edb,_0xb5c2b8)=>{_0xb5c2b8[0x0][_0x5aa07a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9d066f++,_0x9d066f==(0x6e3b44f2^_0x30e9cb)&&(_0x22a381(),_0x1e3edb[_0x5aa07a([0x6f,0x66,0x66])]());});}))];return window[_0x5aa07a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5aa07a([0x72,0x61,0x63,0x65])](_0x5b69c9)[_0x5aa07a([0x74,0x68,0x65,0x6e])](()=>_0x2856c9);}async function _0x156ab9(){await _0x16348f,_0xa785fd[_0x5aa07a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa07a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16e80a,_0xa785fd[_0x5aa07a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa07a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16e80a,_0xa785fd[_0x5aa07a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5aa07a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b0331(){return _0x4e3549(_0x5aa07a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29bb8c(_0x5aa07a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5aa07a([0x73,0x74,0x61,0x74,0x65])]==_0x5aa07a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x143c62(){return _0x4e3549(_0x5aa07a([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 _0x5e052d(){return _0x4e3549(_0x5aa07a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2448b8(_0x44d7fa){const _0x8958f5=_0x4a0eb9();_0xa785fd[_0x8958f5]=_0x5aa07a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44d7fa,_0x44d7fa!=_0x5aa07a([0x56,0x61,0x6c,0x69,0x64])&&_0x156ab9();}function _0x4a0eb9(){const _0x409584=window[_0x5aa07a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5aa07a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5aa07a([0x6e,0x6f,0x77])]())[_0x5aa07a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5aa07a([0x2e]),'');let _0x55b4ff=_0x5aa07a([0x70]);for(let _0x3b6c8f=0x0;_0x3b6c8f<_0x409584[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b6c8f+=0x2){let _0x146e1c=window[_0x5aa07a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x409584[_0x5aa07a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b6c8f,_0x3b6c8f+0x2));_0x146e1c>=_0x271a55[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x146e1c-=_0x271a55[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55b4ff+=_0x271a55[_0x146e1c];}return _0x55b4ff;}function _0xc316f4(){const _0x155a15=_0x1145ce[_0x5aa07a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa07a([0x2e]));if(0x3!=_0x155a15[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xfa4d98(_0x155a15[0x1]);function _0xfa4d98(_0x3fc770){const _0x44a140=_0x2fe091(_0x3fc770);return _0x44a140&&_0x1a5802()?_0x44a140:null;function _0x1a5802(){const _0x31e5e1=_0x44a140[_0x5aa07a([0x6a,0x74,0x69])],_0x23eb30=window[_0x5aa07a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31e5e1[_0x5aa07a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31e5e1[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33ab62={..._0x44a140,[_0x5aa07a([0x6a,0x74,0x69])]:_0x31e5e1[_0x5aa07a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31e5e1[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33ab62[_0x5aa07a([0x76,0x63])],_0x13fa14(_0x33ab62)==_0x23eb30;}}}async function _0x253c01(){let _0x3a9db1=!0x0;try{const _0x1ed6de=_0x1145ce[_0x5aa07a([0x73,0x70,0x6c,0x69,0x74])](_0x5aa07a([0x2e])),[_0x32372f,_0x5cef20,_0x53a2ec]=_0x1ed6de;return _0x217385(_0x32372f),await _0x5d307a(_0x32372f,_0x5cef20,_0x53a2ec),_0x3a9db1;}catch{return!0x1;}function _0x217385(_0x4bf13d){const _0x452f8e=_0x2fe091(_0x4bf13d);_0x452f8e&&_0x452f8e[_0x5aa07a([0x61,0x6c,0x67])]==_0x5aa07a([0x45,0x53,0x32,0x35,0x36])||(_0x3a9db1=!0x1);}async function _0x5d307a(_0x1549d3,_0x31843c,_0x497fa0){const _0xb592f7=window[_0x5aa07a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5aa07a([0x66,0x72,0x6f,0x6d])](_0x5d10fc(_0x497fa0),_0x18404e=>_0x18404e[_0x5aa07a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x157a75=new window[(_0x5aa07a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5aa07a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1549d3+_0x5aa07a([0x2e])+_0x31843c),_0x526e7c=window[_0x5aa07a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5aa07a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x526e7c)return;const _0x49472b=await _0x526e7c[_0x5aa07a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5aa07a([0x6a,0x77,0x6b]),_0x88f7cd,{[_0x5aa07a([0x6e,0x61,0x6d,0x65])]:_0x5aa07a([0x45,0x43,0x44,0x53,0x41]),[_0x5aa07a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5aa07a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5aa07a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x526e7c[_0x5aa07a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5aa07a([0x6e,0x61,0x6d,0x65])]:_0x5aa07a([0x45,0x43,0x44,0x53,0x41]),[_0x5aa07a([0x68,0x61,0x73,0x68])]:{[_0x5aa07a([0x6e,0x61,0x6d,0x65])]:_0x5aa07a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49472b,_0xb592f7,_0x157a75)||(_0x3a9db1=!0x1);}}function _0x2fe091(_0x3741b0){return _0x3741b0[_0x5aa07a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5aa07a([0x65,0x79]))?JSON[_0x5aa07a([0x70,0x61,0x72,0x73,0x65])](_0x5d10fc(_0x3741b0)):null;}function _0x5d10fc(_0x35e917){return window[_0x5aa07a([0x61,0x74,0x6f,0x62])](_0x35e917[_0x5aa07a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5aa07a([0x2b]))[_0x5aa07a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5aa07a([0x2f])));}function _0x13fa14(_0x41f88b){let _0x2391ba=0x1505;function _0x1f2124(_0x237621){for(let _0x2edd86=0x0;_0x2edd86<_0x237621[_0x5aa07a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2edd86++){const _0x36974a=_0x237621[_0x5aa07a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2edd86);_0x2391ba=(_0x2391ba<<0x5)+_0x2391ba+_0x36974a,_0x2391ba&=_0x2391ba;}}function _0x40dd75(_0xfbc318){Array[_0x5aa07a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfbc318)?_0xfbc318[_0x5aa07a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40dd75):_0xfbc318&&typeof _0xfbc318==_0x5aa07a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5aa07a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfbc318)[_0x5aa07a([0x73,0x6f,0x72,0x74])]()[_0x5aa07a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6a0cd2,_0x539b4a])=>{_0x1f2124(_0x6a0cd2),_0x40dd75(_0x539b4a);}):_0x1f2124(window[_0x5aa07a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfbc318));}return _0x40dd75(_0x41f88b),_0x2391ba>>>0x0;}function _0x3cdcd7(_0x3b8e0a){return _0x3b8e0a[_0x5aa07a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5aa07a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5aa07a([0x30]));}function _0x5ddd75(_0x169417){return _0x169417[_0x5aa07a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5aa07a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5aa07a([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e3549(_0x371657){return _0xa785fd[_0x5aa07a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5aa07a([0x68,0x61,0x73])](_0x371657);}function _0x29bb8c(_0x4a0923){return _0xa785fd[_0x5aa07a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5aa07a([0x67,0x65,0x74])](_0x4a0923);}function _0x16e80a(){}function _0x5aa07a(_0x4b14e2){return _0x4b14e2['map'](_0x4ebac3=>String['fromCharCode'](_0x4ebac3))['join']('');}_0x2448b8(await _0xa56ca8());}(this);}set['adapter'](_0x997f31){if(this['_adapter'])throw new _0x290536('track-changes-adapter-already-set',this);this['_adapter']=_0x997f31;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xb9b49e=!0x1,toJSON:_0x431ffd=!0x1}={}){const _0x1f1127=[];for(const _0x3e24a1 of this['_suggestions']['values']())_0xb9b49e&&!_0x3e24a1['isInContent']||_0x1f1127['push'](_0x3e24a1);return _0x431ffd?_0x1f1127['map'](_0x444d18=>_0x444d18['toJSON']()):_0x1f1127;}['getSuggestion'](_0x9ff154){const _0x1ec788=this['_suggestions']['get'](_0x9ff154);if(!_0x1ec788)throw new _0x290536('track-changes-suggestion-not-found',this);return _0x1ec788;}['hasSuggestion'](_0xbcca7e){return this['_suggestions']['has'](_0xbcca7e);}['addSuggestionData'](_0x46eabd){const {authorId:_0x2a45a5,id:_0x2d2eb5,originalSuggestionId:_0x46074f,attributes:_0x2cb8db}=_0x46eabd,[_0xd89a29,_0x4e7617]=_0x46eabd['type']['split'](':'),_0x532ac3=this['_suggestions']['get'](_0x2d2eb5)||this['_createSuggestion'](_0xd89a29,_0x4e7617,_0x2d2eb5,_0x2a45a5,_0x2cb8db,_0x46074f);if(this['_addThreadToSuggestion'](_0x532ac3),this['_checkSuggestionCorrectness'](_0x532ac3,_0xd89a29,_0x4e7617||null,_0x2a45a5),_0x532ac3['createdAt']=_0x46eabd['createdAt'],_0x532ac3['_isDataLoaded']=!0x0,_0x2cb8db&&_0x2cb8db['@external']){const _0xaa9956=_0x2cb8db['@external'],_0x20a13e=this['_getExternalAuthor'](_0xaa9956['authorName']);_0x532ac3['authoredAt']=_0xaa9956['createdAt'],_0x532ac3['author']=_0x20a13e,_0x532ac3['isExternal']=!0x0;}else _0x532ac3['authoredAt']=_0x46eabd['createdAt'];switch(_0x46eabd['data']&&(_0x532ac3['data']=_0x46eabd['data']),_0x46eabd['attributes']&&(_0x532ac3['attributes']=_0x46eabd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x532ac3['_saved']=!0x0),this['_suggestionState']['get'](_0x532ac3)){case'notReady':this['_suggestionState']['set'](_0x532ac3,'dataReady');break;case'markerReady':_0x532ac3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x532ac3])),this['_refreshSuggestionsChain'](new Set([_0x532ac3])),this['_suggestionState']['set'](_0x532ac3,'ready'),this['fire']('suggestionLoaded',_0x532ac3)):this['_suggestionState']['set'](_0x532ac3,'removed');}return _0x532ac3;}['acceptSuggestion'](_0x1a1d4e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd14e21 of _0x1a1d4e['getAllAdjacentSuggestions']())_0xd14e21['accept']();});});}['discardSuggestion'](_0x2688c5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x503093 of _0x2688c5['getAllAdjacentSuggestions']())_0x503093['discard']();});});}['enableCommand'](_0x5ad806,_0x31b146){const _0x1380cf=this['editor']['commands']['get'](_0x5ad806);if(!_0x1380cf)throw new _0x290536('track-changes-command-not-found',this,{'commandName':_0x5ad806});if(this['_enabledCommands']['has'](_0x1380cf))throw new _0x290536('track-changes-enable-command-twice',this,{'commandName':_0x5ad806});this['_enabledCommands']['add'](_0x1380cf),_0x31b146&&_0x1380cf['on']('execute',(_0x433a8f,_0x3cf585)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3cf585['length']>0x0&&_0x3cf585[_0x3cf585['length']-0x1]&&_0x3cf585[_0x3cf585['length']-0x1]['forceDefaultExecution']?_0x3cf585['pop']():(_0x433a8f['return']=_0x31b146((..._0x33c0fd)=>_0x1380cf['execute'](..._0x33c0fd,{'forceDefaultExecution':!0x0}),..._0x3cf585),_0x433a8f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3b8ca9){let _0x5630fd,_0x21f50f;const _0x45d298=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5630fd=_0x3b8ca9();}catch(_0x5aa10d){_0x21f50f=_0x5aa10d;}return _0x45d298||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x21f50f&&_0x290536['rethrowUnexpectedError'](_0x21f50f,this),_0x5630fd;}['markInsertion'](_0x18f3e5,_0x255e5e=null,_0x17e376={}){if(_0x18f3e5['isCollapsed'])return null;const _0x1596fd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x17e376['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x46ea6d,meta:_0x4d88a3}of this['_findSuggestions'](_0x18f3e5,'insertion'))if(_0x4d88a3['isOwn']){if(!_0x4d88a3['isNextTo']){if(_0x4d88a3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x46ea6d,_0x17e376))continue;return _0x46ea6d;}if(Xt(_0x46ea6d,_0x17e376))return _0x46ea6d;this['_breakSuggestionMarker'](_0x46ea6d,_0x18f3e5['start'],_0x18f3e5['end']);break;}if(_0x255e5e==_0x46ea6d['subType']&&Xt(_0x46ea6d,_0x17e376)){const _0x93363a=_0x46ea6d['getFirstRange']();return _0x93363a['start']['isEqual'](_0x18f3e5['end'])?this['_setSuggestionRange'](_0x46ea6d,this['_model']['createRange'](_0x18f3e5['start'],_0x93363a['end'])):this['_setSuggestionRange'](_0x46ea6d,this['_model']['createRange'](_0x93363a['start'],_0x18f3e5['end'])),_0x46ea6d;}}const _0x37de96=_0x36dab6(),_0x4edd95=_0x1596fd['id'],_0x855204=_0x255e5e?'insertion:'+_0x255e5e:'insertion',_0xa20b1b=this['_setSuggestionData']({'id':_0x37de96,'type':_0x855204,'createdAt':new Date(),'authorId':_0x4edd95,'attributes':_0x17e376});return this['_addSuggestionMarker'](_0x855204,_0x37de96,_0x4edd95,_0x18f3e5),_0xa20b1b;}['markMultiRangeInsertion'](_0x303daf,_0x13cf69='multi',_0x5873c6={}){const _0x43b6d3=this['editor']['plugins']['get']('Users')['me'],_0x58f640=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x13cf69,'join');this['_trackingSessionId']&&(_0x5873c6['trackingSessionId']=this['_trackingSessionId']);for(const _0x54ec30 of this['getSuggestions']())if(_0x54ec30['author']['id']==_0x43b6d3['id']&&'insertion'==_0x54ec30['type']&&_0x54ec30['subType']==_0x13cf69&&Xt(_0x54ec30,_0x5873c6)&&(_0x58f640(_0x54ec30['getRanges'](),_0x303daf)||_0x58f640(_0x303daf,_0x54ec30['getRanges']()))){for(const _0x3ab86b of _0x303daf)_0x54ec30['addRange'](_0x3ab86b);return _0x54ec30;}for(const {suggestion:_0x21dad2,meta:_0xce352d}of this['_findSuggestions'](_0x303daf,'insertion')){if(!_0xce352d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xce352d['containsRangeInObject'])continue;if(!Xt(_0x21dad2,_0x5873c6))continue;let _0x30bfbe=!0x0;for(const _0x451b48 of _0x21dad2['getRanges']())for(const _0x57d9ef of _0x303daf)if(!_0x451b48['containsRange'](_0x57d9ef)){_0x30bfbe=!0x1;break;}if(_0x30bfbe)return _0x21dad2;}const _0x47c28d=_0x36dab6(),_0x45719f=_0x43b6d3['id'],_0x37db95='insertion:'+_0x13cf69,_0x461cb0=this['_setSuggestionData']({'id':_0x47c28d,'type':_0x37db95,'createdAt':new Date(),'authorId':_0x45719f,'attributes':_0x5873c6});for(const _0x29f073 of _0x303daf)this['_addSuggestionMarker'](_0x37db95,_0x47c28d,_0x45719f,_0x29f073,T['getMultiRangeId']());return _0x461cb0;}['markInlineFormat'](_0x256b4b,_0x47a8ea,_0x4826a8=null,_0x838903={}){if(_0x4826a8=_0x4826a8||Lt(_0x47a8ea),_0x256b4b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x838903['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x331b06=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4826a8,'accept');return this['forceDefaultExecution'](()=>_0x331b06([_0x256b4b],_0x47a8ea,_0x838903)),null;}const _0x29ea4d=this['editor']['plugins']['get']('Users')['me'],_0x1d0368=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xc7afd4,meta:_0x80f055}of this['_findSuggestions'](_0x256b4b,'insertion'))_0x80f055['isOwn']&&!_0x80f055['isInsideObject']&&_0x1d0368['push'](..._0xc7afd4['getRanges']());}const _0x13174e=function(_0x410a80,_0x38654d){const _0x497292=[];for(const _0x5e8051 of _0x38654d){const _0x3466a9=_0x410a80['getIntersection'](_0x5e8051);_0x3466a9&&_0x497292['push'](_0x3466a9);}return _0x497292;}(_0x256b4b,_0x1d0368),_0x1ac0fe=function(_0x105f2a,_0x3eaedc){const _0x436980=[_0x105f2a];for(const _0x3097b5 of _0x3eaedc){let _0x39aadd=0x0;for(;_0x39aadd<_0x436980['length'];){const _0x47da3b=_0x436980[_0x39aadd]['getDifference'](_0x3097b5);_0x436980['splice'](_0x39aadd,0x1,..._0x47da3b),_0x39aadd+=_0x47da3b['length'];}}return _0x436980;}(_0x256b4b,_0x1d0368);_0x13174e['length']&&this['_model']['change'](()=>{for(const _0x2402d0 of _0x13174e){const _0x240763=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4826a8,'accept');this['forceDefaultExecution'](()=>_0x240763([_0x2402d0],_0x47a8ea,_0x838903));}});for(const _0x3f98fd of _0x1ac0fe){let _0xf4d8ca=null,_0x5ddfb4=_0x3f98fd['start'],_0x19e41d=_0x3f98fd['end'];for(const {suggestion:_0x384f8e,meta:_0x42c253}of this['_findSuggestions'](_0x3f98fd,'formatInline')){if(!_0x42c253['isOwn'])continue;if(_0x384f8e['subType']!=_0x4826a8)continue;if(!Xt(_0x384f8e,_0x838903))continue;const _0x1d53b6=_0x384f8e['getFirstRange']();if(_0x1d53b6['containsRange'](_0x3f98fd,!0x0))return null;_0x5ddfb4=_0x5ddfb4['isBefore'](_0x1d53b6['start'])?_0x5ddfb4:_0x1d53b6['start'],_0x19e41d=_0x19e41d['isAfter'](_0x1d53b6['end'])?_0x19e41d:_0x1d53b6['end'],_0xf4d8ca?_0x1d53b6['start']['isBefore'](_0xf4d8ca['getFirstRange']()['start'])?(_0xf4d8ca['removeMarkers'](),_0xf4d8ca=_0x384f8e):_0x384f8e['removeMarkers']():_0xf4d8ca=_0x384f8e;}const _0x4371c1=this['_model']['createRange'](_0x5ddfb4,_0x19e41d);if(_0xf4d8ca)this['_setSuggestionRange'](_0xf4d8ca,_0x4371c1);else{const _0x14f30d=_0x36dab6(),_0x14a6fc=_0x29ea4d['id'];this['_setSuggestionData']({'id':_0x14f30d,'type':'formatInline:'+_0x4826a8,'data':_0x47a8ea,'createdAt':new Date(),'authorId':_0x14a6fc,'attributes':_0x838903}),this['_addSuggestionMarker']('formatInline:'+_0x4826a8,_0x14f30d,_0x14a6fc,_0x4371c1);}}return null;}['markBlockFormat'](_0x1c91d5,_0x1d5b96,_0x4871a5=[],_0x4b1242=null,_0x214b6b={}){_0x1d5b96['formatGroupId']||(_0x1d5b96['formatGroupId']=_0x1d5b96['commandName']),_0x1d5b96['multipleBlocks']=_0x1c91d5['is']('range'),_0x4b1242=_0x4b1242||Lt(_0x1d5b96);const _0x3a1131=_0x4871a5['map'](_0x3dd0ac=>zt(_0x3dd0ac,this['_model'])),_0x4e2187=_0x1c91d5['is']('range')?_0x1c91d5:zt(_0x1c91d5,this['_model']);if(this['_trackingSessionId']&&(_0x214b6b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x426ca6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b1242,'accept');return this['forceDefaultExecution'](()=>_0x426ca6([_0x4e2187],_0x1d5b96,_0x214b6b)),null;}_0x3a1131['push'](_0x4e2187);let _0x3312a7=!0x0;for(const _0x3be4a9 of _0x3a1131)if(!this['_rangeIsInLocalUserInsertion'](_0x3be4a9)){_0x3312a7=!0x1;break;}if(_0x3312a7&&'always'!==this['_trackFormatChanges']){const _0x165b9b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b1242,'accept');return this['forceDefaultExecution'](()=>_0x165b9b([_0x4e2187],_0x1d5b96,_0x214b6b)),null;}let _0x109439=null,_0x655a4c=_0x4e2187['start'],_0x56e104=_0x4e2187['end'];for(const {suggestion:_0x59f884,meta:_0x475465}of this['_findSuggestions'](_0x4e2187,'formatBlock')){if(!_0x475465['isOwn'])continue;if(_0x475465['isNextTo']||_0x475465['containsRangeInObject']||_0x475465['isInsideObject'])continue;if(_0x59f884['data']['formatGroupId']!=_0x1d5b96['formatGroupId'])continue;if(!Xt(_0x59f884,_0x214b6b))continue;const _0x553714=_0x59f884['getFirstRange']();if(_0x59f884['subType']==_0x4b1242){if(_0x553714['containsRange'](_0x4e2187,!0x0))return null;_0x655a4c=_0x655a4c['isBefore'](_0x553714['start'])?_0x655a4c:_0x553714['start'],_0x56e104=_0x56e104['isAfter'](_0x553714['end'])?_0x56e104:_0x553714['end'],_0x109439?_0x553714['start']['isBefore'](_0x109439['getFirstRange']()['start'])?(_0x109439['removeMarkers'](),_0x109439=_0x59f884):_0x59f884['removeMarkers']():_0x109439=_0x59f884;}else{const _0x5737d9=_0x4e2187['getIntersection'](_0x553714);this['_cutOutSuggestionMarker'](_0x59f884,_0x5737d9);}}const _0x1d6ac5=this['editor']['plugins']['get']('Users')['me'],_0x537f7b=_0x36dab6(),_0x2ac2f9=_0x1d6ac5['id'];if(_0x109439)return this['_setSuggestionRange'](_0x109439,this['_model']['createRange'](_0x655a4c,_0x56e104)),_0x109439;{const _0x3f9232=this['_setSuggestionData']({'id':_0x537f7b,'type':'formatBlock:'+_0x4b1242,'data':_0x1d5b96,'createdAt':new Date(),'authorId':_0x2ac2f9,'attributes':_0x214b6b});return this['_addSuggestionMarker']('formatBlock:'+_0x4b1242,_0x537f7b,_0x2ac2f9,this['_model']['createRange'](_0x655a4c,_0x56e104)),_0x3f9232;}}['markMultiRangeBlockFormat'](_0x4945d5,_0x1ae4d0,_0x5c0b76=[],_0x1ad318=null,_0x4da50c={}){_0x1ae4d0['formatGroupId']||(_0x1ae4d0['formatGroupId']=_0x1ae4d0['commandName']);const _0x3f8e84=_0x4945d5[0x0];_0x1ae4d0['multipleBlocks']=_0x3f8e84['is']('range'),_0x1ad318=_0x1ad318||Lt(_0x1ae4d0);const _0x402dc6=_0x5c0b76['map'](_0x115f8f=>zt(_0x115f8f,this['_model'])),_0x1b1483=_0x3f8e84['is']('range')?_0x4945d5:_0x4945d5['map'](_0x3e759e=>zt(_0x3e759e,this['_model']));if(this['_trackingSessionId']&&(_0x4da50c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b084e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ad318,'accept');return this['forceDefaultExecution'](()=>_0x1b084e(_0x1b1483,_0x1ae4d0,_0x4da50c)),null;}_0x402dc6['push'](..._0x1b1483);let _0x5362fc=!0x0;for(const _0x49210c of _0x402dc6)if(!this['_rangeIsInLocalUserInsertion'](_0x49210c)){_0x5362fc=!0x1;break;}if(_0x5362fc&&'always'!==this['_trackFormatChanges']){const _0x1aa09b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ad318,'accept');return this['forceDefaultExecution'](()=>_0x1aa09b(_0x1b1483,_0x1ae4d0,_0x4da50c)),null;}const _0x4c6d41=this['editor']['plugins']['get']('Users')['me'];for(const _0x33a6e8 of this['getSuggestions']()){const _0x4ac78e=_0x33a6e8['data'];if(_0x33a6e8['author']['id']!=_0x4c6d41['id'])continue;if('formatBlock'!=_0x33a6e8['type']||_0x4ac78e['formatGroupId']!=_0x1ae4d0['formatGroupId'])continue;if(!Xt(_0x33a6e8,_0x4da50c))continue;const _0x12a421=_0x33a6e8['subType']==_0x1ad318;for(let _0x5c3a6f=0x0;_0x5c3a6f<_0x1b1483['length'];_0x5c3a6f++){const _0x411730=_0x1b1483[_0x5c3a6f];for(const _0x1eee00 of _0x33a6e8['getMarkers']()){const _0x45a552=_0x1eee00['getRange']();if(_0x411730['isEqual'](_0x45a552)){_0x12a421?(_0x1b1483['splice'](_0x5c3a6f,0x1),_0x5c3a6f--):_0x33a6e8['removeMarker'](_0x1eee00['name']);break;}}}}if(0x0==_0x1b1483['length'])return null;const _0x318c10=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ad318,'join');for(const _0x1df089 of this['getSuggestions']()){const _0x1361f0=_0x1df089['data'];if(_0x1df089['author']['id']==_0x4c6d41['id']&&('formatBlock'==_0x1df089['type']&&_0x1361f0['formatGroupId']==_0x1ae4d0['formatGroupId']&&_0x1df089['subType']==_0x1ad318&&Xt(_0x1df089,_0x4da50c)&&(_0x318c10(_0x1df089['getRanges'](),_0x1b1483)||_0x318c10(_0x1b1483,_0x1df089['getRanges']())))){for(const _0x15a873 of _0x1b1483)_0x1df089['addRange'](_0x15a873);return _0x1df089;}}const _0x14cf99=_0x36dab6(),_0x4cc74c=_0x4c6d41['id'],_0x486780='formatBlock:'+_0x1ad318,_0x3cae17=this['_setSuggestionData']({'id':_0x14cf99,'type':_0x486780,'data':_0x1ae4d0,'createdAt':new Date(),'authorId':_0x4cc74c,'attributes':_0x4da50c});for(const _0x2683a2 of _0x1b1483)this['_addSuggestionMarker'](_0x486780,_0x14cf99,_0x4cc74c,_0x2683a2,T['getMultiRangeId']());return _0x3cae17;}['markDeletion'](_0x23099c,_0x207aec=null,_0x581f74={}){if(_0x23099c['isCollapsed'])return null;const _0x3a685f=this['editor']['plugins']['get']('Users')['me'],_0x138df4=new _0x2e3e00(_0x23099c['start'],_0x23099c['end']);this['_trackingSessionId']&&(_0x581f74['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5eaf75,meta:_0x4caf08}of this['_findSuggestions'](_0x138df4,'insertion'))if(_0x4caf08['isOwn']&&!_0x4caf08['isNextTo']){if(_0x5eaf75['isMultiRange']){const _0x32091a=_0x5eaf75['getRanges']()['filter'](_0x5086f9=>'$graveyard'!=_0x5086f9['root']['rootName']);_0x32091a['every'](_0x229a45=>_0x138df4['containsRange'](_0x229a45,!0x0))&&_0x5eaf75['discard']();if(_0x32091a['some'](_0x47ec80=>_0x47ec80['containsRange'](_0x138df4,!0x0))){const _0x3cdc0a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x207aec,'accept');return this['forceDefaultExecution'](()=>_0x3cdc0a([_0x138df4],null,_0x581f74)),null;}}else{const _0x155390=_0x138df4['getIntersection'](_0x5eaf75['getFirstRange']());null!==_0x155390&&_0x5eaf75['_onDiscard']([_0x155390],null,_0x581f74);}}if(_0x138df4['detach'](),_0x138df4['isCollapsed']||'$graveyard'==_0x138df4['root']['rootName'])return null;let _0x2848d8=null,_0x473560=_0x138df4['start'],_0x2fe75b=_0x138df4['end'];const _0xde2065=this['_findSuggestions'](_0x138df4,'deletion');for(const {suggestion:_0x593a92,meta:_0x4fd02d}of _0xde2065){const _0x43649a=this['_model']['createRange'](_0x473560,_0x2fe75b);if(_0x4fd02d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4fd02d['containsRangeInObject']&&!_0x4fd02d['isInsideObject'])){if(_0x593a92['isMultiRange']){if(!Xt(_0x593a92,_0x581f74))continue;let _0x1591b4=!0x0;for(const _0x421e2e of _0x593a92['getRanges']()){if(_0x421e2e['containsRange'](_0x43649a,!0x0))return _0x593a92;_0x43649a['containsRange'](_0x421e2e)||(_0x1591b4=!0x1);}_0x1591b4&&_0x593a92['discard']();}else{const _0x4f9823=_0x593a92['getFirstRange']();if(_0x4f9823['containsRange'](_0x43649a,!0x0))return _0x593a92;if(!Xt(_0x593a92,_0x581f74)){_0x43649a['containsRange'](_0x4f9823)?_0x593a92['removeMarkers']():_0x4f9823['containsPosition'](_0x473560)?_0x473560=_0x4f9823['end']:_0x4f9823['containsPosition'](_0x2fe75b)&&(_0x2fe75b=_0x4f9823['start']);continue;}_0x473560=_0x473560['isBefore'](_0x4f9823['start'])?_0x473560:_0x4f9823['start'],_0x2fe75b=_0x2fe75b['isAfter'](_0x4f9823['end'])?_0x2fe75b:_0x4f9823['end'],_0x581f74=Object['assign']({},_0x593a92['attributes']),_0x2848d8?_0x4f9823['start']['isBefore'](_0x2848d8['getFirstRange']()['start'])?(_0x2848d8['removeMarkers'](),_0x2848d8=_0x593a92):_0x593a92['removeMarkers']():_0x2848d8=_0x593a92;}}}if(_0x2848d8)return this['_setSuggestionRange'](_0x2848d8,this['_model']['createRange'](_0x473560,_0x2fe75b)),_0x2848d8;{const _0x4ec7f9=_0x36dab6(),_0x3150a9=this['_model']['createRange'](_0x473560,_0x2fe75b),_0x50cae4=_0x3a685f['id'],_0x14d08e=_0x207aec?'deletion:'+_0x207aec:'deletion',_0x57dec9=this['_setSuggestionData']({'id':_0x4ec7f9,'type':_0x14d08e,'createdAt':new Date(),'authorId':_0x50cae4,'attributes':_0x581f74});return this['_addSuggestionMarker'](_0x14d08e,_0x4ec7f9,_0x50cae4,_0x3150a9),_0x57dec9;}}['markMultiRangeDeletion'](_0x4578ca,_0x31ce3e='multi',_0x3e62a4={}){const _0x4b7f5b=this['editor']['plugins']['get']('Users')['me'],_0x51102e=_0x4578ca['map'](_0x3b17c6=>new _0x2e3e00(_0x3b17c6['start'],_0x3b17c6['end'])),_0x39c496=new Set();this['_trackingSessionId']&&(_0x3e62a4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x244da9,meta:_0x5097b6}of this['_findSuggestions'](_0x51102e,'insertion'))_0x5097b6['isOwn']&&!_0x5097b6['isNextTo']&&_0x39c496['add'](_0x244da9);for(const _0x119c45 of _0x39c496)if(_0x119c45['isMultiRange']){const _0x47b2fd=_0x119c45['getRanges']();(!_0x119c45['attributes']||!_0x119c45['attributes']['skipNestingCheck'])&&(_0x47b2fd['every'](_0xab52d0=>_0x51102e['some'](_0x915a1e=>_0x915a1e['containsRange'](_0xab52d0,!0x0)))&&_0x119c45['discard']());if(_0x51102e['every'](_0x265b47=>_0x47b2fd['some'](_0x374653=>_0x374653['containsRange'](_0x265b47,!0x0)))){const _0x4f750b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31ce3e,'accept');return this['forceDefaultExecution'](()=>_0x4f750b(_0x4578ca,null,_0x3e62a4)),null;}}else{const _0x179a5d=_0x119c45['getFirstRange']();_0x51102e['some'](_0x2d4ccd=>_0x2d4ccd['containsRange'](_0x179a5d,!0x0))&&_0x119c45['discard']();if(_0x51102e['every'](_0x1d43bc=>_0x179a5d['containsRange'](_0x1d43bc,!0x0))){const _0x1b8579=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31ce3e,'accept');return this['forceDefaultExecution'](()=>_0x1b8579(_0x51102e,null,_0x3e62a4)),null;}}const _0x50aedc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31ce3e,'join');let _0x3a196d=null;for(const _0xd96797 of this['getSuggestions']())if(_0xd96797['author']['id']==_0x4b7f5b['id']&&_0xd96797['isInContent']&&'deletion'==_0xd96797['type']&&_0xd96797['subType']==_0x31ce3e&&Xt(_0xd96797,_0x3e62a4)&&(_0x50aedc(_0xd96797['getRanges'](),_0x51102e)||_0x50aedc(_0x51102e,_0xd96797['getRanges']()))){if(_0x3a196d){if(_0xd96797['commentThread']&&_0xd96797['commentThread']['length'])continue;for(const _0x288fa0 of _0xd96797['getRanges']())_0x3a196d['isIntersectingWithRange'](_0x288fa0)||_0x3a196d['addRange'](_0x288fa0);_0xd96797['removeMarkers']();}else{_0x3a196d=_0xd96797;for(const _0x5cfd61 of _0x51102e)_0xd96797['isIntersectingWithRange'](_0x5cfd61)||_0xd96797['addRange'](_0x5cfd61);}}if(_0x3a196d)return _0x3a196d;_0x39c496['clear']();for(const {suggestion:_0x498cd6,meta:_0x5cc7be}of this['_findSuggestions'](_0x51102e,'deletion'))_0x5cc7be['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cc7be['containsRangeInObject']&&!_0x5cc7be['isInsideObject'])&&Xt(_0x498cd6,_0x3e62a4)&&_0x39c496['add'](_0x498cd6);for(const _0x43e2d8 of _0x39c496){const _0x5e68ac=_0x43e2d8['getRanges']();if(!_0x3e62a4||!_0x3e62a4['skipNestingCheck']){if(_0x51102e['every'](_0x3d5d7d=>_0x5e68ac['some'](_0x1143ab=>_0x1143ab['containsRange'](_0x3d5d7d,!0x0))))return _0x43e2d8;}(!_0x43e2d8['attributes']||!_0x43e2d8['attributes']['skipNestingCheck'])&&(_0x5e68ac['every'](_0x1c709e=>_0x51102e['some'](_0x4bb902=>_0x4bb902['containsRange'](_0x1c709e,!0x0)))&&_0x43e2d8['discard']());}const _0xf5a115=_0x36dab6(),_0x4db6bb=_0x4b7f5b['id'],_0xd9eefe='deletion:'+_0x31ce3e,_0x5a5970=this['_setSuggestionData']({'id':_0xf5a115,'type':_0xd9eefe,'createdAt':new Date(),'authorId':_0x4db6bb,'attributes':_0x3e62a4});for(const _0x3d02a6 of _0x51102e)_0x3d02a6['detach'](),_0x3d02a6['isCollapsed']||'$graveyard'==_0x3d02a6['root']['rootName']||this['_addSuggestionMarker'](_0xd9eefe,_0xf5a115,_0x4db6bb,_0x3d02a6,T['getMultiRangeId']());return _0x5a5970;}['markAttributeChange'](_0x149902,_0x447a91,_0x12a793,_0x1d8d4c,_0x3a48ef){if(_0x149902['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x569bbe=this['editor']['plugins']['get']('Users')['me']['id'],_0x3698c4=Array['from'](this['_suggestions']['values']())['filter'](_0x49f4d5=>'attribute'==_0x49f4d5['type']&&_0x49f4d5['data']['key']==_0x447a91&&_0x49f4d5['isIntersectingWithRange'](_0x149902));if(this['_trackingSessionId']&&(_0x3a48ef['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5c766f=this['_findSuggestions'](_0x149902,'insertion')['filter'](({meta:_0x1881b1})=>_0x1881b1['isOwn']&&!_0x1881b1['isInsideObject']&&!_0x1881b1['isNextTo'])['map'](({suggestion:_0x3117b8})=>_0x3117b8);_0x3698c4['unshift'](..._0x5c766f);}const _0x9ba3f0=new Map([[_0x149902,_0x12a793]]);for(const _0x3e0f19 of _0x3698c4){const _0x3a7d26='attribute'==_0x3e0f19['type']?_0x3e0f19['data']['oldValue']:void 0x0,_0xa619bd=_0x3e0f19['getFirstRange'](),_0x2890b3=Array['from'](_0x9ba3f0['keys']())['find'](_0x11852f=>_0x11852f['isIntersecting'](_0xa619bd));if(!_0x2890b3)continue;const _0x358a60=_0x2890b3['getDifference'](_0xa619bd);this['_isBlockAttribute'](_0x447a91)&&'insertion'==_0x3e0f19['type']&&0x0!=_0x358a60['length']||(_0x9ba3f0['delete'](_0x2890b3),_0x358a60['forEach'](_0x578a39=>{_0x9ba3f0['set'](_0x578a39,_0x12a793);}),'insertion'!=_0x3e0f19['type']&&_0x3a7d26!=_0x1d8d4c&&_0x9ba3f0['set'](_0x2890b3['getIntersection'](_0xa619bd),_0x3a7d26));}const _0x17be0e=[];for(const [_0x475453,_0x25fa1a]of _0x9ba3f0){const _0x3b0f5c=_0x36dab6(),_0x4b5e57={'key':_0x447a91,'oldValue':_0x25fa1a,'newValue':_0x1d8d4c};_0x447a91['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':_0x447a91});const _0x53d246=('attribute:'+(_0x447a91+'|'+Lt({'newValue':_0x1d8d4c})))['substring'](0x0,0x3c),_0x2c5351=this['_setSuggestionData']({'id':_0x3b0f5c,'type':_0x53d246,'data':_0x4b5e57,'createdAt':new Date(),'authorId':_0x569bbe,'attributes':_0x3a48ef});_0x17be0e['push'](_0x2c5351),this['_addSuggestionMarker'](_0x53d246,_0x3b0f5c,_0x569bbe,_0x475453);}return _0x17be0e;}['enableDefaultAttributesIntegration'](_0x61dfb9){this['enableCommand'](_0x61dfb9,(_0x26cce4,..._0x2b2f12)=>{this['recordAttributeChanges'](()=>{_0x26cce4(..._0x2b2f12);});});}['registerBlockAttribute'](_0x2e9af9){this['_blockAttributeKeys']['add'](_0x2e9af9);}['registerInlineAttribute'](_0x3b18db){this['_inlineAttributeKeys']['add'](_0x3b18db);}['startTrackingSession'](_0x3c940f){return this['_trackingSessionId']=void 0x0!==_0x3c940f?_0x3c940f:_0x36dab6(),this['_trackingSessionId'];}['_getAttributeKey'](_0x422d63){return'attribute'==_0x422d63['type']?_0x422d63['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x299e6f,_0x1f1f08){const _0x45160e=_0x299e6f['getFirstMarker']();this['_model']['change'](_0x2ed878=>{_0x2ed878['updateMarker'](_0x45160e,{'range':_0x1f1f08});});}['_addThreadToSuggestion'](_0x29166b){const _0x2a35f5=_0x29166b['id'],_0x525cbc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a35f5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x525cbc,'threadId':_0x2a35f5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5ed288=this['_commentsRepository']['getCommentThread'](_0x2a35f5);_0x5ed288['unbind']('isRemovable'),_0x5ed288['isRemovable']=!0x1,_0x29166b['commentThread']=_0x5ed288;}['_checkSuggestionCorrectness'](_0x565eeb,_0x4b1923,_0x4bd361,_0x20a05d){if(_0x565eeb['type']!=_0x4b1923||_0x565eeb['subType']!=_0x4bd361||_0x565eeb['creator']['id']!=_0x20a05d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x290536('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5c4eb1,_0x5b6d6a){const _0x8c6b0b=_0x5c4eb1['getFirstRange']();if(_0x5b6d6a['isEqual'](_0x8c6b0b))_0x5c4eb1['removeMarkers']();else{if(_0x8c6b0b['containsRange'](_0x5b6d6a)){const _0x3c328e=this['_model']['createPositionAt'](_0x5b6d6a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c4eb1,this['_model']['createRange'](_0x8c6b0b['start'],_0x3c328e));const _0x3fde7e=_0x36dab6(),_0x170887=_0x5c4eb1['creator']['id'],_0x5ddf5a=_0x5c4eb1['type']+':'+_0x5c4eb1['subType'];this['_setSuggestionData']({'id':_0x3fde7e,'type':_0x5ddf5a,'createdAt':new Date(),'authorId':_0x170887,'data':_0x5c4eb1['data'],'attributes':_0x5c4eb1['attributes']});const _0x2070e4=this['_model']['createPositionAt'](_0x5b6d6a['end']['parent'],'after'),_0x3d0312=this['_model']['createRange'](_0x2070e4,_0x8c6b0b['end']);this['_addSuggestionMarker'](_0x5ddf5a,_0x3fde7e,_0x170887,_0x3d0312);}else{if(_0x8c6b0b['containsPosition'](_0x5b6d6a['start'])){const _0x2904c6=this['_model']['createPositionAt'](_0x5b6d6a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c4eb1,this['_model']['createRange'](_0x8c6b0b['start'],_0x2904c6));}else{const _0x104fa2=this['_model']['createPositionAt'](_0x5b6d6a['end']['parent'],'after');this['_setSuggestionRange'](_0x5c4eb1,this['_model']['createRange'](_0x104fa2,_0x8c6b0b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x55a9f5){for(const {suggestion:_0x1bcb52,meta:_0x392f39}of this['_findSuggestions'](_0x55a9f5,'insertion')){if(!_0x392f39['isOwn'])continue;const _0x20f978=_0x1bcb52['getRanges']();for(const _0x38f757 of _0x20f978)if(!_0x55a9f5['getDifference'](_0x38f757)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4ddb4a){const _0x5f3dcf=this['editor']['plugins']['get']('Users')['getUser'](_0x4ddb4a);if(!_0x5f3dcf)throw new _0x290536('track-changes-user-not-found',this);return _0x5f3dcf;}['_getExternalAuthor'](_0x490150){const _0x23f84d=this['editor']['plugins']['get']('Users'),_0x47899b=_0x439450('external:'+_0x490150),_0x121006=_0x23f84d['getUser'](_0x47899b);return _0x121006||_0x23f84d['addUser']({'id':_0x47899b,'name':_0x490150});}['_createSuggestion'](_0x195391,_0x4d1101,_0x12a704,_0x2dc92e,_0x5b6ec9,_0x14a213){const _0x1acbe0=this['_getAuthorFromId'](_0x2dc92e),_0x37eea0=this['_suggestionFactory']['buildSuggestion'](_0x195391,_0x4d1101,_0x12a704,_0x1acbe0,_0x5b6ec9,_0xac00f9=>{this['_updateSuggestionData'](_0x12a704,{'attributes':_0xac00f9});const _0xcd6d89=this['getSuggestion'](_0x12a704);this['_joinWithAdjacentSuggestions'](new Set([_0xcd6d89])),this['_refreshSuggestionsChain'](new Set([_0xcd6d89]));},_0x14a213);return this['listenTo'](_0x37eea0,'accept',()=>{this['_updateSuggestionData'](_0x12a704,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x37eea0,'discard',()=>{this['_updateSuggestionData'](_0x12a704,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x12a704,_0x37eea0),this['_suggestionState']['set'](_0x37eea0,'notReady'),_0x37eea0;}['_splitMarkerName'](_0x2fef72){const _0x5d4a63=_0x2fef72['split'](':');return{'group':_0x5d4a63[0x0],'type':_0x5d4a63[0x1],'subType':_0x5d4a63['length']>=0x5?_0x5d4a63[0x2]:null,'id':_0x5d4a63['length']<0x5?_0x5d4a63[0x2]:_0x5d4a63[0x3],'authorId':_0x5d4a63['length']<0x5?_0x5d4a63[0x3]:_0x5d4a63[0x4],'markerCount':0x6==_0x5d4a63['length']?_0x5d4a63[0x5]:null};}['_breakSuggestionMarker'](_0x10d766,_0x3a64d4,_0x396f){const _0x1fa62e=_0x10d766['getFirstRange'](),_0x186e04=_0x1fa62e['start'],_0x12c696=_0x1fa62e['end'];this['_setSuggestionRange'](_0x10d766,this['_model']['createRange'](_0x186e04,_0x3a64d4));const _0x3866a6=_0x36dab6(),_0xab60d1=_0x10d766['creator']['id'],_0x422568=_0x10d766['type']+(_0x10d766['subType']?':'+_0x10d766['subType']:'');this['_setSuggestionData']({'id':_0x3866a6,'type':_0x422568,'createdAt':new Date(),'authorId':_0xab60d1,'originalSuggestionId':_0x10d766['_originalSuggestionId']||_0x10d766['id'],'attributes':_0x10d766['attributes'],'data':_0x10d766['data']});const _0x406191=this['_getAttributeKey'](_0x10d766);('formatBlock'==_0x10d766['type']||_0x406191&&this['_isBlockAttribute'](_0x406191))&&(_0x396f=this['_model']['createPositionBefore'](_0x396f['parent'])),this['_addSuggestionMarker'](_0x422568,_0x3866a6,_0xab60d1,this['_model']['createRange'](_0x396f,_0x12c696));}['_findSuggestions'](_0x24cf34,_0x1055cf=null){const _0x471402=[],_0x4452c8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x24cf34)||(_0x24cf34=[_0x24cf34]);for(const _0x4f290b of this['getSuggestions']()){if(!_0x4f290b['isInContent'])continue;if(_0x1055cf&&_0x4f290b['type']!=_0x1055cf)continue;let _0x8deb20=!0x1;for(const _0x2dad95 of _0x4f290b['getRanges']()){for(const _0xc03c36 of _0x24cf34){const _0x8c7556=_0xc03c36['start']['isEqual'](_0x2dad95['end'])||_0xc03c36['end']['isEqual'](_0x2dad95['start']);if(_0x8c7556||_0xc03c36['getIntersection'](_0x2dad95)){const _0x3df8c9=_0xc03c36['containsRange'](_0x2dad95)&&Ft(this['_model']['schema'],_0x2dad95['start'],_0xc03c36),_0x219a4b=_0x2dad95['containsRange'](_0xc03c36)&&Ft(this['_model']['schema'],_0xc03c36['start'],_0x2dad95);_0x471402['push']({'suggestion':_0x4f290b,'meta':{'isOwn':_0x4452c8==_0x4f290b['author'],'isNextTo':_0x8c7556,'isInsideObject':_0x3df8c9,'containsRangeInObject':_0x219a4b}}),_0x8deb20=!0x0;break;}}if(_0x8deb20)break;}}return _0x471402;}['_addSuggestionMarker'](_0xbd52f5,_0x1ba8b1,_0x31f6c7,_0x5ebac7,_0x2cc9d8){this['_model']['change'](_0x8eb76b=>{let _0x235d47='suggestion:'+_0xbd52f5+':'+_0x1ba8b1+':'+_0x31f6c7;_0x2cc9d8&&(_0x235d47=_0x235d47+':'+_0x2cc9d8),_0x8eb76b['addMarker'](_0x235d47,{'range':_0x5ebac7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x143bc8){const _0x5d75af=_0x143bc8['previous'],_0x3b8b40=_0x143bc8['next'];_0x143bc8['previous']=null,_0x143bc8['next']=null,null!=_0x5d75af&&_0x5d75af['next']==_0x143bc8&&(_0x5d75af['next']=_0x3b8b40),null!=_0x3b8b40&&_0x3b8b40['previous']==_0x143bc8&&(_0x3b8b40['previous']=_0x5d75af),'ready'==this['_suggestionState']['get'](_0x143bc8)&&(this['_suggestionState']['set'](_0x143bc8,'removed'),this['fire']('suggestionUnloaded',_0x143bc8,_0x5d75af,_0x3b8b40));}['_setSuggestionData'](_0x318c4c){const _0x275dd5=_0x318c4c['id'],_0x23f158=this['addSuggestionData'](_0x318c4c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xaa95a0=this['editor']['plugins']['get']('PendingActions'),_0x4fcae6=_0x23f158['hasComments'],_0xd31870=_0x23f158['subType']?_0x23f158['type']+':'+_0x23f158['subType']:_0x23f158['type'],_0x47e973=this['editor']['locale'],_0x4e2382=_0xaa95a0['add'](o(_0x47e973,'PENDING_ACTION_SUGGESTION')),_0x5a394b={'id':_0x275dd5,'type':_0xd31870,'hasComments':_0x4fcae6,'data':_0x318c4c['data']||null,'originalSuggestionId':_0x318c4c['originalSuggestionId']||null,'attributes':_0x23f158['attributes']};this['_adapter']['addSuggestion'](_0x5a394b)['then'](_0x422e88=>{_0x23f158['_saved']=!0x0,_0xaa95a0['remove'](_0x4e2382),_0x422e88&&_0x422e88['createdAt']&&(this['_suggestions']['get'](_0x275dd5)['createdAt']=_0x422e88['createdAt']);})['catch'](_0x45c29c=>{throw _0x3933fe('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x23f158['discard']();}),_0x23f158['stopListening'](),this['_suggestions']['delete'](_0x23f158['id']),this['_suggestionState']['delete'](_0x23f158),_0x45c29c;});}return _0x23f158;}['_isBlockAttribute'](_0x3b763f){return this['_blockAttributeKeys']['has'](_0x3b763f);}['_isInlineAttribute'](_0xf61d69){return this['_inlineAttributeKeys']['has'](_0xf61d69);}['_updateSuggestionData'](_0x250104,_0x278da1){const _0xbc633=this['editor']['plugins']['get']('PendingActions'),_0x2db611=this['getSuggestion'](_0x250104);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2db611['_saved']){const _0xdd4db3=_0xbc633['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x250104,_0x278da1)['then'](()=>{_0xbc633['remove'](_0xdd4db3);});}else _0x2db611['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x250104,_0x278da1);});}}['_getSuggestionData'](_0x57ad8f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x290536('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x57ad8f);}['_handleNewSuggestionMarker'](_0x2e1315){const {id:_0x3e0f27,type:_0x41ea30,subType:_0x5756a5,authorId:_0x443dae}=this['_splitMarkerName'](_0x2e1315),_0x9f20db=this['_suggestions']['get'](_0x3e0f27)||this['_createSuggestion'](_0x41ea30,_0x5756a5,_0x3e0f27,_0x443dae,{});switch(this['_checkSuggestionCorrectness'](_0x9f20db,_0x41ea30,_0x5756a5,_0x443dae),this['_suggestionState']['get'](_0x9f20db)){case'notReady':this['_getSuggestionData'](_0x3e0f27)['then'](_0x32397c=>{let _0x514cc3=Promise['resolve']();_0x32397c['hasComments']&&(_0x514cc3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e0f27})),_0x514cc3['then'](()=>{this['addSuggestionData'](_0x32397c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x9f20db,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e0f27,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x9f20db,'ready'),this['fire']('suggestionLoaded',_0x9f20db);break;case'ready':this['fire']('suggestionChanged',_0x9f20db);}return _0x9f20db['addMarkerName'](_0x2e1315),_0x9f20db;}['_refreshSuggestionsChain'](_0x3aa1b4){const _0x500c88=Array['from'](_0x3aa1b4),_0x2104a7=_0x500c88['filter'](_0x122af3=>'attribute'==_0x122af3['type']);this['_refreshAttributeSuggestionsChain'](_0x2104a7);const _0x52aa22=_0x500c88['filter'](_0x55a769=>!_0x55a769['isMultiRange']&&'attribute'!=_0x55a769['type']),_0x9a50d1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27ab87=>!_0x27ab87['isMultiRange']&&'attribute'!=_0x27ab87['type']),_0x1b6d0=_0x9a50d1['filter'](_0x132ebe=>!_0x3aa1b4['has'](_0x132ebe)),_0x2d62c9=new Map(_0x9a50d1['map'](_0x1eb784=>[_0x1eb784,this['_suggestionFactory']['getSuggestionCallback'](_0x1eb784['type'],_0x1eb784['subType'],'chain')])),_0x3aa41b=new Map(_0x9a50d1['map'](_0x29e0c9=>[_0x29e0c9,_0x29e0c9['getFirstRange']()])),_0x286641=new Set(),_0x1c6c38=new Set();for(let _0x50afc1=0x0;_0x50afc1<_0x52aa22['length'];_0x50afc1++)_0x3fb5fa(_0x52aa22[_0x50afc1],_0x52aa22,_0x50afc1+0x1);for(let _0x3fc0e9=0x0;_0x3fc0e9<_0x52aa22['length'];_0x3fc0e9++)_0x3fb5fa(_0x52aa22[_0x3fc0e9],_0x1b6d0,0x0);const _0xd16af3=new Set();for(let _0x3f44b1=0x0;_0x3f44b1<_0x52aa22['length'];_0x3f44b1++){const _0xd3e624=_0x52aa22[_0x3f44b1];!_0x1c6c38['has'](_0xd3e624)&&_0xd3e624['previous']&&(_0xd16af3['add'](_0xd3e624['previous']),_0xd3e624['previous']['next']===_0xd3e624&&(_0xd3e624['previous']['next']=null),_0xd3e624['previous']=null),!_0x286641['has'](_0xd3e624)&&_0xd3e624['next']&&(_0xd16af3['add'](_0xd3e624['next']),_0xd3e624['next']['previous']===_0xd3e624&&(_0xd3e624['next']['previous']=null),_0xd3e624['next']=null);}function _0x3fb5fa(_0x331c40,_0x586ebb,_0x5d9342){for(let _0x1fa761=_0x5d9342;_0x1fa761<_0x586ebb['length'];_0x1fa761++){const _0x593eed=_0x50fefc(_0x331c40,_0x586ebb[_0x1fa761]);_0x593eed&&(_0x593eed[0x0]['next']=_0x593eed[0x1],_0x593eed[0x1]['previous']=_0x593eed[0x0],_0x286641['add'](_0x593eed[0x0]),_0x1c6c38['add'](_0x593eed[0x1]));}}function _0x50fefc(_0x431fcb,_0x200158){if(_0x431fcb['author']['id']!==_0x200158['author']['id'])return null;const _0x7ecb9e=_0x2d62c9['get'](_0x431fcb)(_0x431fcb,_0x200158,_0x3aa41b['get'](_0x431fcb),_0x3aa41b['get'](_0x200158));if(!_0x7ecb9e)return null;return _0x2d62c9['get'](_0x200158)(_0x431fcb,_0x200158,_0x3aa41b['get'](_0x431fcb),_0x3aa41b['get'](_0x200158))?_0x7ecb9e[0x1]['commentThread']&&_0x7ecb9e[0x1]['commentThread']['length']?null:_0x7ecb9e:null;}_0xd16af3['size']&&this['_refreshSuggestionsChain'](_0xd16af3);}['_refreshAttributeSuggestionsChain'](_0x21f976){if(0x0==_0x21f976['length'])return;const _0x448cf9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x153540=>'attribute'==_0x153540['type']&&_0x153540['_isDataLoaded']),_0x40a592=[],_0x35a475=new Map();for(const _0x18c873 of _0x448cf9){const _0x5d88ab=_0x439450(_0x18c873['attributes']);_0x35a475['has'](_0x5d88ab)||(_0x35a475['set'](_0x5d88ab,_0x40a592['length']),_0x40a592['push']([]));const _0x382533=_0x35a475['get'](_0x5d88ab);_0x40a592[_0x382533]['push'](_0x18c873);}!(function(){_0x40a592['sort']((_0x537758,_0xa344)=>{const _0x21875f=_0x537758[0x0]['createdAt'],_0x573cde=_0xa344[0x0]['createdAt'];return _0x21875f==_0x573cde?_0x537758[0x0]['attributes']['groupId']<_0xa344[0x0]['attributes']['groupId']?-0x1:0x1:_0x21875f<_0x573cde?-0x1:0x1;});for(const _0x3efad8 of _0x40a592)_0x3efad8['sort']((_0x1b475a,_0x170d6d)=>_0x1b475a['id']<_0x170d6d['id']?-0x1:0x1);}());for(let _0x37999a=0x0;_0x37999a<_0x40a592['length'];_0x37999a++){if(0x0==_0x40a592[_0x37999a]['length'])continue;const _0xa7d883=[];for(let _0x2dd1d0=_0x37999a+0x1;_0x2dd1d0<_0x40a592['length'];_0x2dd1d0++)0x0!=_0x40a592[_0x2dd1d0]['length']&&_0x54913f(_0x40a592[_0x37999a],_0x40a592[_0x2dd1d0])&&_0xa7d883['push'](_0x2dd1d0);for(const _0x256898 of _0xa7d883)_0x40a592[_0x37999a]=_0x40a592[_0x37999a]['concat'](_0x40a592[_0x256898]),_0x40a592[_0x256898]=[];}for(const _0x8d7b3f of _0x40a592)for(let _0x378629=0x0;_0x378629<_0x8d7b3f['length'];_0x378629++){const _0x437654=_0x8d7b3f[_0x378629+0x1]||null;_0x8d7b3f[_0x378629]['next']!==_0x437654&&(_0x8d7b3f[_0x378629]['next']=_0x437654);}for(const _0x7c7eff of _0x40a592)for(let _0x1f0432=0x0;_0x1f0432<_0x7c7eff['length'];_0x1f0432++){const _0xb0883c=_0x7c7eff[_0x1f0432-0x1]||null;_0x7c7eff[_0x1f0432]['previous']!==_0xb0883c&&(_0x7c7eff[_0x1f0432]['previous']=_0xb0883c);}function _0x54913f(_0x4b6db3,_0x47b6e1){if(_0x4b6db3[0x0]['attributes']['groupId']!==_0x47b6e1[0x0]['attributes']['groupId']&&_0x4b6db3[0x0]['author']!==_0x47b6e1[0x0]['author'])return!0x1;if(!function(_0x1dcb8e,_0x4fc04a){if(!_0x1dcb8e['hasComments']&&!_0x4fc04a['hasComments'])return!0x0;if(_0x1dcb8e['hasComments']&&_0x4fc04a['hasComments'])return!0x1;if(_0x1dcb8e['hasComments']&&_0x4fc04a['createdAt']<_0x1dcb8e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4fc04a['hasComments']&&_0x1dcb8e['createdAt']<_0x4fc04a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b6db3[0x0],_0x47b6e1[0x0]))return!0x1;const _0x1f60b9=Ut(_0x4b6db3[0x0]['attributes'],['groupId','trackingSessionId']),_0x79fe56=Ut(_0x47b6e1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x45b95d(_0x1f60b9,_0x79fe56))return!0x1;if(_0x4b6db3[0x0]['attributes']['groupId']==_0x47b6e1[0x0]['attributes']['groupId'])return!0x0;if(_0x4b6db3[0x0]['attributes']['trackingSessionId']!==_0x47b6e1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4b6db3['every'](_0x1c43f3=>_0x47b6e1['some'](_0x4a8b85=>_0x1c43f3['getFirstRange']()['isEqual'](_0x4a8b85['getFirstRange']())))&&_0x47b6e1['every'](_0x1f0936=>_0x4b6db3['some'](_0x55a307=>_0x1f0936['getFirstRange']()['isEqual'](_0x55a307['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x437298){const _0x16b0d8=Array['from'](_0x437298),_0x280897=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12520d=_0x280897['filter'](_0x417792=>!_0x437298['has'](_0x417792)),_0xcfafe3=new Map(_0x16b0d8['map'](_0x3e268a=>[_0x3e268a,this['_suggestionFactory']['getSuggestionCallback'](_0x3e268a['type'],_0x3e268a['subType'],'join')])),_0x44e5b2=new Map(_0x280897['map'](_0xb9fc0f=>[_0xb9fc0f,_0xb9fc0f['getRanges']()]));for(let _0x4da3f7=0x0;_0x4da3f7<_0x16b0d8['length'];_0x4da3f7++){if(_0x26f902(this,_0x16b0d8[_0x4da3f7],_0x16b0d8,_0x4da3f7+0x1))return!0x0;}for(let _0x1bf59a=0x0;_0x1bf59a<_0x16b0d8['length'];_0x1bf59a++){if(_0x26f902(this,_0x16b0d8[_0x1bf59a],_0x12520d,0x0))return!0x0;}return!0x1;function _0x26f902(_0x3707ae,_0x1e09d3,_0x310e8d,_0x22839c){for(let _0x1c3688=_0x22839c;_0x1c3688<_0x310e8d['length'];_0x1c3688++){const _0x41a7ee=_0x310e8d[_0x1c3688];if(_0x41a7ee['type']!==_0x1e09d3['type']||_0x41a7ee['author']['id']!==_0x1e09d3['author']['id']||_0x41a7ee['subType']!==_0x1e09d3['subType'])continue;if(!Qt(_0x1e09d3,_0x41a7ee))continue;if('attribute'==_0x1e09d3['type']&&_0x1e09d3['data']['oldValue']!=_0x41a7ee['data']['oldValue'])continue;if('attribute'==_0x1e09d3['type']&&_0x3707ae['_isBlockAttribute'](_0x1e09d3['data']['key']))continue;if('formatBlock'==_0x1e09d3['type']){const _0x2b96dd=_0x3707ae['editor']['model'],_0xfc6ab6=_0x1e09d3['getContainedElement']();if(_0xfc6ab6&&(_0x2b96dd['schema']['isObject'](_0xfc6ab6)||_0x2b96dd['schema']['isLimit'](_0xfc6ab6)))continue;}const _0x4e1ec9=_0xcfafe3['get'](_0x1e09d3),_0x30f12e=_0x44e5b2['get'](_0x1e09d3),_0x24d659=_0x44e5b2['get'](_0x41a7ee),_0x3d1620=_0x1e09d3['commentThread']&&_0x1e09d3['commentThread']['length'],_0x43e784=_0x41a7ee['commentThread']&&_0x41a7ee['commentThread']['length'];if(!_0x3d1620&&_0x4e1ec9(_0x24d659,_0x30f12e))return _0x3707ae['_joinSuggestions'](_0x41a7ee,_0x1e09d3),_0x44e5b2['delete'](_0x1e09d3),!0x0;if(!_0x43e784&&_0x4e1ec9(_0x30f12e,_0x24d659))return _0x3707ae['_joinSuggestions'](_0x1e09d3,_0x41a7ee),_0x44e5b2['delete'](_0x41a7ee),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3d01a2,_0x1620ab){if(_0x3d01a2['isMultiRange']){for(const _0x24b006 of _0x1620ab['getRanges']())_0x3d01a2['addRange'](_0x24b006);}else{const _0x2e632e=_0x1620ab['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3d01a2,this['_model']['createRange'](_0x3d01a2['getFirstRange']()['start'],_0x2e632e));}_0x1620ab['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3668b2,_0x2ec4ae,_0x1f5cb5){const _0x7d9caf=_0x3668b2['startsWith']('format')||_0x3668b2['startsWith']('attribute')?'FORMATTING':_0x3668b2['toUpperCase']();return o(this['editor']['locale'],_0x2ec4ae+'_'+_0x7d9caf+'_SUGGESTION_ANNOUNCEMENT',_0x1f5cb5);}['_initAriaMarkerChangeAnnouncements'](){const _0x5e902f=this['editor'];if(!_0x5e902f['ui'])return;const {ariaLiveAnnouncer:_0x4d7faa}=_0x5e902f['ui'];_0x18d3d2(this['_model'],({left:_0x270481,entered:_0x2aa822})=>{for(const _0x30fc34 of _0x270481){const {group:_0xce4483,type:_0x4f44cd}=this['_splitMarkerName'](_0x30fc34['name']);if('suggestion'===_0xce4483){_0x4d7faa['announce'](this['_getMarkerAnnouncementText'](_0x4f44cd,'LEAVE'));break;}}for(const _0x27e49e of _0x2aa822){const {group:_0x2088ab,type:_0x3e9daa}=this['_splitMarkerName'](_0x27e49e['name']);if('suggestion'===_0x2088ab){_0x4d7faa['announce'](this['_getMarkerAnnouncementText'](_0x3e9daa,'ENTER',_0x27b074(_0x1a067e)));break;}}});}['_processAttributeChanges'](_0x21df04){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5e689b=this['editor'],_0x29bfcb=_0x5e689b['model']['document']['differ']['getChanges']();if(0x0==_0x29bfcb['length'])return!0x1;const _0xdc948b=[],_0x15de18=_0x29bfcb['filter'](_0x2d0e5f=>'attribute'==_0x2d0e5f['type']),_0x3dd111=_0x29bfcb['filter'](_0x53db89=>'insert'==_0x53db89['type']&&'$text'!=_0x53db89['name']),_0x483a1a=_0x29bfcb['filter'](_0x2826a7=>'remove'==_0x2826a7['type']&&'$text'!=_0x2826a7['name']);for(const _0x10a466 of _0x15de18)_0xdc948b['push']({'key':_0x10a466['attributeKey'],'newValue':_0x10a466['attributeNewValue'],'oldValue':_0x10a466['attributeOldValue'],'range':qt(_0x10a466['range'],_0x5e689b['model'])});for(const _0x2e502b of _0x3dd111){const _0x187c89=_0x483a1a['find'](_0x24ee40=>_0x24ee40['position']['isEqual'](_0x2e502b['position']));_0x187c89&&_0xdc948b['push']({'key':m,'newValue':_0x2e502b['name'],'oldValue':_0x187c89['name'],'range':_0x5e689b['model']['createRangeOn'](_0x2e502b['position']['nodeAfter'])});}return 0x0!=_0xdc948b['length']&&this['_reduceExistingSuggestions'](_0x21df04,_0xdc948b);}['_processAttributeSuggestions'](_0x32f1ab){let _0x279389=!0x1;const _0x514f96=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3636f6=>_0x3636f6['data']['newRange']&&_0x3636f6['name']['startsWith']('suggestion:attribute:'));for(const _0x263394 of _0x514f96){const {subType:_0x421e93,id:_0x1838f8}=this['_splitMarkerName'](_0x263394['name']),_0xe45c58=_0x421e93['split']('|')[0x0];for(const _0x2c3059 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2c3059['id']!=_0x1838f8&&'attribute'==_0x2c3059['type']&&_0x2c3059['data']&&_0x2c3059['data']['key']==_0xe45c58&&_0x2c3059['getFirstRange']()['isIntersecting'](_0x263394['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2c3059,_0x263394['data']['newRange'],_0x32f1ab),_0x279389=!0x0);}return _0x279389;}['recordAttributeChanges'](_0x89e42a){this['_recordAttributeSuggestions']=!0x0,_0x89e42a();}['_isRegisteredAttribute'](_0x5b9466){const _0x15e2be=this['_isBlockAttribute'](_0x5b9466),_0x4b9829=this['_isInlineAttribute'](_0x5b9466);return _0x15e2be||_0x4b9829;}['_reduceExistingSuggestions'](_0x2fdadd,_0x40a7bb){if(0x0==_0x40a7bb['length'])return!0x1;let _0x1aa8b1=!0x1;for(const _0x465a5b of _0x40a7bb){const _0x1c0013=this['_findSuggestions'](_0x465a5b['range'],'attribute')['filter'](_0x714d66=>!_0x714d66['meta']['isNextTo'])['map'](_0x157335=>_0x157335['suggestion']),_0x3b2146=_0x439450({'newValue':_0x465a5b['newValue']});_0x1c0013['filter'](_0x161a26=>{const [_0x182d54,_0x41184f]=_0x161a26['subType']['split']('|');return _0x182d54==_0x465a5b['key']&&_0x41184f!=_0x3b2146;})['forEach'](_0x48b4fa=>{this['_reduceSuggestionAttributeRange'](_0x48b4fa,_0x465a5b['range'],_0x2fdadd),_0x1aa8b1=!0x0;});}return _0x1aa8b1;}['_reduceSuggestionAttributeRange'](_0x3ab095,_0x16e6c0,_0x50708f){const _0x349c6b=_0x3ab095['getFirstRange']()['getDifference'](_0x16e6c0);0x0!==_0x349c6b['length']?0x1!==_0x349c6b['length']?this['_breakSuggestionMarker'](_0x3ab095,_0x16e6c0['start'],_0x16e6c0['end']):this['_setSuggestionRange'](_0x3ab095,_0x349c6b[0x0]):_0x50708f['removeMarker'](_0x3ab095['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2c8946){this['_editor']=_0x2c8946,this['_model']=_0x2c8946['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x14c212,_0x2727e7,_0x25dcc1,_0x154876,_0x3b7ca7,_0x40a21a,_0x4c63ad){return new T(this['_model'],{'type':_0x14c212,'subType':_0x2727e7,'id':_0x25dcc1,'originalSuggestionId':_0x4c63ad,'author':_0x154876,'creator':_0x154876,'attributes':_0x3b7ca7,'onAttributesChange':_0x40a21a,'onAccept':(..._0x2174c0)=>this['getSuggestionCallback'](_0x14c212,_0x2727e7,'accept')(..._0x2174c0),'onDiscard':(..._0x4a51a9)=>this['getSuggestionCallback'](_0x14c212,_0x2727e7,'discard')(..._0x4a51a9)});}['registerCustomCallback'](_0xeba743,_0x57a58f,_0x56d789,_0x11f750){const _0x5e6d9d=_0xeba743+':'+_0x57a58f+':'+_0x56d789;this['_customCallbacks']['set'](_0x5e6d9d,_0x11f750);}['getSuggestionCallback'](_0x26b3db,_0x56f029,_0x2fe778){const _0x5d9b9f=_0x26b3db+':'+_0x56f029+':'+_0x2fe778;return this['_customCallbacks']['get'](_0x5d9b9f)||this['_defaultCallbacks']['get'](_0x26b3db+':'+_0x2fe778);}['_registerDefaultCallbacks'](){const _0x11168d=()=>!0x1,_0x592f5c=_0x3a8047=>{_0x3a8047['sort']((_0x2e316d,_0x54c645)=>_0x2e316d['start']['isBefore'](_0x54c645['start'])?0x1:-0x1),this['_model']['change'](_0x93ec4e=>{for(const _0x522b48 of _0x3a8047){let _0x911cc0;_0x911cc0=_0x522b48['end']['isAtEnd']&&_0x522b48['end']['parent']==_0x522b48['start']['nodeAfter']?_0x93ec4e['createSelection'](_0x522b48['start']['nodeAfter'],'on'):_0x93ec4e['createSelection'](_0x522b48),this['_model']['deleteContent'](_0x911cc0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3c743e=(_0x1acf2f,_0x3be6fc)=>{_0x3be6fc&&this['_model']['change'](_0x20fea3=>{const {commandName:_0x3a2388,commandParams:_0x4d5377=[]}=_0x3be6fc,_0x58ec8b=_0x1acf2f['map'](_0x118cfb=>(Pt(_0x118cfb)&&(_0x118cfb=this['_model']['createRange'](_0x118cfb['end'])),_0x118cfb))['filter'](_0x18622a=>'$graveyard'!==_0x18622a['root']['rootName']);if(_0x58ec8b['length']<0x1)return;const _0xe00a0e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x193f42=>_0x2e3e00['fromRange'](_0x193f42));_0x20fea3['setSelection'](_0x58ec8b);for(const _0x244170 of this['_editor']['commands']['commands']())_0x244170['refresh']();_0x4d5377['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3a2388,..._0x4d5377);const _0x3e092a=_0xe00a0e['filter'](_0x412d9b=>'$graveyard'!=_0x412d9b['root']['rootName']);_0x3e092a['length']>0x0&&_0x20fea3['setSelection'](_0x3e092a);for(const _0x162474 of _0xe00a0e)_0x162474['detach']();});},_0x5a3eec=(_0x3886cc,_0x5131b8)=>0x1==_0x3886cc['length']&&0x1==_0x5131b8['length']&&_0x3886cc[0x0]['end']['isEqual'](_0x5131b8[0x0]['start']),_0x475edf=(_0x225000,_0x559fb3,_0x2cae28,_0x5f1c01)=>Wt(_0x225000,_0x559fb3,_0x2cae28,_0x5f1c01)?[_0x225000,_0x559fb3]:Wt(_0x559fb3,_0x225000,_0x5f1c01,_0x2cae28)?[_0x559fb3,_0x225000]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x11168d),this['_defaultCallbacks']['set']('insertion:discard',_0x592f5c),this['_defaultCallbacks']['set']('insertion:join',_0x5a3eec),this['_defaultCallbacks']['set']('insertion:chain',_0x475edf),this['_defaultCallbacks']['set']('deletion:accept',_0x592f5c),this['_defaultCallbacks']['set']('deletion:discard',_0x11168d),this['_defaultCallbacks']['set']('deletion:join',_0x5a3eec),this['_defaultCallbacks']['set']('deletion:chain',_0x475edf),this['_defaultCallbacks']['set']('formatInline:accept',_0x3c743e),this['_defaultCallbacks']['set']('formatInline:discard',_0x11168d),this['_defaultCallbacks']['set']('formatInline:join',_0x5a3eec),this['_defaultCallbacks']['set']('formatInline:chain',_0x11168d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3c743e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x11168d),this['_defaultCallbacks']['set']('formatBlock:join',_0x5a3eec),this['_defaultCallbacks']['set']('formatBlock:chain',_0x11168d),this['_defaultCallbacks']['set']('attribute:accept',_0x11168d),this['_defaultCallbacks']['set']('attribute:discard',(_0x97e96a,_0x46509d)=>{if(!_0x46509d)return;const _0x11f2c4=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x5f51ee=>{if(_0x46509d['key']==m)for(const _0x4822df of _0x97e96a){const _0x2ce5ab=_0x4822df['start']['nodeAfter'],_0x42aa83=_0x46509d['oldValue'];_0x5f51ee['rename'](_0x2ce5ab,_0x42aa83);}else{if(_0x11f2c4['_isBlockAttribute'](_0x46509d['key'])){for(const _0xd406cb of _0x97e96a)void 0x0!==_0x46509d['oldValue']?_0x5f51ee['setAttribute'](_0x46509d['key'],_0x46509d['oldValue'],_0xd406cb['start']['nodeAfter']):_0x5f51ee['removeAttribute'](_0x46509d['key'],_0xd406cb['start']['nodeAfter']);}else{for(const _0x11842e of _0x97e96a)_0x46509d['oldValue']?_0x5f51ee['setAttribute'](_0x46509d['key'],_0x46509d['oldValue'],_0x11842e):_0x5f51ee['removeAttribute'](_0x46509d['key'],_0x11842e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5a3eec);}}function Ft(_0x13a89e,_0x43d5b3,_0x189d87){for(const _0x3e6c0b of _0x43d5b3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3e6c0b['root']==_0x3e6c0b)return!0x1;if(!_0x189d87['containsItem'](_0x3e6c0b))return!0x1;if(_0x13a89e['isObject'](_0x3e6c0b)||_0x13a89e['isLimit'](_0x3e6c0b))return!0x0;}return!0x1;}function Pt(_0x57acf4){return _0x57acf4['end']['parent']==_0x57acf4['start']['nodeAfter']&&_0x57acf4['end']['isAtStart'];}function Gt(_0x20436e,_0x2da73b,_0x5b219b,_0x19812c){const _0x29915d=_0x289e72=>!_0x289e72['item']['is']('$textProxy')&&!_0x19812c['isObject'](_0x289e72['item']),_0x2d9fa9=_0x20436e['start']['getLastMatchingPosition'](_0x29915d),_0xca2711=_0x20436e['end']['getLastMatchingPosition'](_0x29915d,{'direction':'backward'});return(!_0x20436e['start']['isEqual'](_0x2d9fa9)||!_0x20436e['end']['isEqual'](_0xca2711))&&(_0x2d9fa9['isBefore'](_0xca2711)?_0x5b219b['updateMarker'](_0x2da73b,{'range':_0x5b219b['createRange'](_0x2d9fa9,_0xca2711)}):_0x5b219b['removeMarker'](_0x2da73b),!0x0);}function Lt(_0x12adef){return _0x439450(_0x12adef);}function Jt(_0x41cf25){const _0x3683b3=_0x41cf25['start']['nodeAfter'];return _0x3683b3&&_0x3683b3['is']('element');}function Kt(_0x21c492){return Pt(_0x21c492)||function(_0x1e9b9d){return _0x1e9b9d['start']['parent']==_0x1e9b9d['end']['nodeBefore']&&_0x1e9b9d['start']['isAtEnd'];}(_0x21c492);}function Ht(_0x103dd1,_0x3c5132){try{const _0x4d994b=_0x103dd1['getRange']();for(const _0x691d4d of _0x3c5132)if(_0x103dd1!==_0x691d4d&&_0x4d994b&&_0x4d994b['isIntersecting'](_0x691d4d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x4c98c1,_0xb99afe){return null==_0x4c98c1['end']['nodeBefore']&&_0x4c98c1['end']['parent']==_0x4c98c1['start']['nodeAfter']?zt(_0x4c98c1['start']['nodeAfter'],_0xb99afe):_0x4c98c1;}function zt(_0x1f6670,_0x1162be){const _0x55b56c=_0x1162be['schema']['isObject'](_0x1f6670)||_0x1162be['schema']['isSelectable'](_0x1f6670);return _0x1162be['createRange'](_0x1162be['createPositionAt'](_0x1f6670,'before'),_0x55b56c?_0x1162be['createPositionAfter'](_0x1f6670):_0x1162be['createPositionAt'](_0x1f6670,'end'));}function Wt(_0x381702,_0x4fb91c,_0x5cb523,_0x5a6a84){return!!Qt(_0x381702,_0x4fb91c)&&_0x5cb523['end']['isEqual'](_0x5a6a84['start']);}function Qt(_0x39e4d2,_0x4a00db){if(!_0x39e4d2['_isDataLoaded']||!_0x4a00db['_isDataLoaded'])return!0x1;const _0x17926d=new Set(Object['keys'](_0x39e4d2['attributes'])),_0x850231=new Set(Object['keys'](_0x4a00db['attributes']));if(_0x17926d['delete']('groupId'),_0x850231['delete']('groupId'),0x0==_0x17926d['size']&&0x0==_0x850231['size'])return!0x0;if(_0x17926d['size']!=_0x850231['size'])return!0x1;const _0x571e6e={..._0x39e4d2['attributes']},_0x4fa9f9={..._0x4a00db['attributes']};return delete _0x571e6e['groupId'],delete _0x4fa9f9['groupId'],JSON['stringify'](_0x571e6e)==JSON['stringify'](_0x4fa9f9);}function Xt(_0x3cd61e,_0x36bb4e){const _0xcfe710=Yt(_0x3cd61e['attributes']),_0x2139d5=Yt(_0x36bb4e);if(!_0x3cd61e['_isDataLoaded'])return!0x1;for(const _0x69efec of Object['keys'](_0x2139d5))if(!_0x45b95d(_0xcfe710[_0x69efec],_0x2139d5[_0x69efec]))return!0x1;return!0x0;}function Yt(_0x5298db){const _0x3e3305=Object['assign']({},_0x5298db);return delete _0x3e3305['skipNestingCheck'],delete _0x3e3305['tablePasteChainId'],_0x3e3305;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x423c74(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x550d86,_0x4c6cc8,_0x3847cb,_0x3ed10d){super(),this['model']=_0x4c6cc8,this['view']=_0x3847cb,this['commentThreadController']=_0x3ed10d,this['_editor']=_0x550d86,this['_acceptCommand']=_0x550d86['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x550d86['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3fb47c,_0x147b59)=>_0x3fb47c||_0x147b59),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x23e0b0=>_0x23e0b0&&this['_editor']['model']['canEditAt'](_0x4c6cc8['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x37bcfa=>_0x37bcfa&&this['_editor']['model']['canEditAt'](_0x4c6cc8['getRanges']())),this['_pendingAction']=null,_0x3847cb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3847cb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3847cb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3847cb,'change:isDirty',()=>{_0x3847cb['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 _0x35cdcb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35cdcb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x3277a5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4ef719,_0x1878c0,_0x208a24,_0x2062c1){super(_0x4ef719),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2aeb95(_0x4ef719,o(_0x4ef719,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1878c0['authoredAt']),this['bind']('authoredAt')['to'](_0x1878c0),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',_0x1878c0,'authoredAt',this,'descriptionParts',(_0x481df4,_0x34de6c,_0xbb38de)=>{const _0x11f7fc=_0xbb38de['map'](_0xaf4a60=>ls(_0xaf4a60['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x481df4-0x1,_0x1878c0['author']['name'],_0x34de6c?_0x2062c1['formatDateTime'](_0x34de6c):'',new DOMParser()['parseFromString'](_0x11f7fc,'text/html')['body']['textContent']]);}),this['focusables']=new _0x333216(),this['focusTracker']=new _0x1de838(),this['keystrokes']=new _0x5f0533(),this['focusCycler']=new _0x5264a2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1f1143=>_0x1f1143['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1878c0,this['_localUser']=_0x208a24,this['_config']=_0x2062c1,_0x2062c1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x36fbf2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3914b1}=this['_config'];this['commentsListView']=new _0x3914b1(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',_0x3deafd=>_0x3deafd+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2b9736,_0xb9a3ca)=>_0x2b9736||!!_0xb9a3ca);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x37478d}=this['_config'],_0x5278a5=new _0x37478d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6d4e9b=_0x5278a5['commentInputView'];return _0x5278a5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6d4e9b,'value',(_0x3844b6,_0x111c2b,_0x280c0d)=>!!_0x280c0d||_0x3844b6&&!_0x111c2b),_0x6d4e9b['on']('submit',(_0x2749f0,_0x12d07f)=>{this['fire']('addComment',_0x12d07f),_0x6d4e9b['editor']['setData']('');}),_0x6d4e9b['on']('cancel',()=>this['focus']()),_0x6d4e9b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5278a5;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x32abfe,_0x3363b4,_0x355ae9,_0x2f85a4){super(_0x32abfe,_0x3363b4,_0x355ae9,_0x2f85a4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5560b7=>_0x5560b7&&_0x5560b7[0x0]?_0x5560b7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5d72c5,_0x4b53f9)=>{let _0x591e10='';for(const _0x4f0627 of _0x5d72c5)_0x591e10+='<p>'+ls(_0x4f0627['content'],_0x4f0627['color'])+'</p>';return _0x4b53f9?_0x591e10:_0x577213(_0x591e10,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2f85a4['SuggestionView'](_0x32abfe,_0x3363b4,{'formatDateTime':_0x2f85a4['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 _0x115ec9=this['bindTemplate'],_0x3f3205=[this['suggestionView']];return this['commentsListView']&&_0x3f3205['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3f3205['push'](this['commentThreadInputView']),_0x3f3205['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x115ec9['if']('isActive','ck-suggestion-wrapper--active'),_0x115ec9['to']('type',_0x33479c=>'ck-suggestion-'+_0x33479c),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':_0x115ec9['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3f3205};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x3277a5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x510fa0,_0x4203bb,_0x3a6854){super(_0x510fa0),this['_model']=_0x4203bb,this['_config']=_0x3a6854,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4203bb),this['acceptButton']=this['_createButton'](o(_0x510fa0,'Accept\x20suggestion'),_0x14e0e8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x510fa0,'Discard\x20suggestion'),_0x193410,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5b3c09(_0x510fa0,_0x4203bb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x333216([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1de838(),this['keystrokes']=new _0x5f0533(),this['focusCycler']=new _0x5264a2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2dc096=>_0x2dc096['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x37f53d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x37f53d['innerHTML']=this['description'],this['on']('change:description',(_0x4f062b,_0x45224d,_0x1fc583)=>{_0x37f53d['innerHTML']=_0x1fc583;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2af0ba=this['bindTemplate'],_0x256d93=[{'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':_0x2af0ba['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2af0ba['to']('authoredAt',_0x3b272f=>this['_config']['formatDateTime'](_0x3b272f))}]}]},{'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']&&_0x256d93['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':_0x256d93}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2bd5b6,_0x582af1,_0x3c174c,_0x404389,_0x1eeb16){const _0xfa2756=new _0xb2ef6a(this['locale']);return _0xfa2756['set']({'label':_0x2bd5b6,'icon':_0x582af1,'tooltip':!0x0,'tooltipPosition':_0x1eeb16}),_0xfa2756['extendTemplate']({'attributes':{'class':_0x3c174c}}),_0xfa2756['on']('execute',()=>{this['fire'](_0x404389,this['_model']['id']);}),_0xfa2756;}['_setupKeyboardNavigation'](){const _0x2e9b59=this['element'];this['keystrokes']['listenTo'](_0x2e9b59);for(const _0x5a68a7 of this['focusables'])this['focusTracker']['add'](_0x5a68a7['element']),this['keystrokes']['listenTo'](_0x5a68a7['element']);this['keystrokes']['set']('enter',(_0x187227,_0x3d99c9)=>{_0x2e9b59===_0x187227['target']&&(this['focusCycler']['focusFirst'](),_0x3d99c9());}),this['keystrokes']['set']('esc',(_0x3ef1b3,_0x143db5)=>{_0x2e9b59!==_0x3ef1b3['target']&&(this['focus'](),_0x143db5());});}}class u extends _0x211f0d{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x429a0e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15d9d2){super(_0x15d9d2),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2224ab=this['editor']['config'];_0x2224ab['define']('trackChanges.SuggestionThreadView',fe),_0x2224ab['define']('trackChanges.SuggestionView',we),_0x2224ab['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2224ab['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x50bcea,_0x364e1e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x467df8,_0x1862dd]of this['_handleControllerBuffer']){const _0x55753f=this['_suggestionToController']['has'](_0x467df8);_0x55753f||_0x1862dd?_0x55753f&&_0x1862dd&&this['_destroyController'](_0x467df8):this['_initializeController'](_0x467df8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x50bcea,_0x364e1e);}['init'](){const _0x26a06c=this['editor'],_0x3f00e1=_0x26a06c['plugins']['get']('TrackChangesEditing'),_0x4f9027=_0x26a06c['plugins']['get']('Annotations'),_0x2e1174=_0x26a06c['plugins']['get']('EditorAnnotations'),_0x16af67=_0x26a06c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e1174['addSourceCollector'](()=>{const _0x5a0345=[];for(const [_0x566ec6,_0x96b75b]of Array['from'](this['_suggestionToController'])){const _0x2ae751=_0x566ec6['getAllAdjacentSuggestions'](),_0x3bfa2b=[];for(const _0x4eec91 of _0x2ae751){if(!_0x4eec91['isInContent'])continue;if(_0x4eec91['isMultiRange']){_0x3bfa2b['push'](..._0x4eec91['getRanges']());continue;}const _0x1a73d6=_0x4eec91['getFirstRange']();if(_0x3bfa2b['length']>0x0){const _0x3a74f2=_0x3bfa2b[0x0]['getJoined'](_0x1a73d6);if(_0x3a74f2){_0x3bfa2b[0x0]=_0x3a74f2;continue;}}_0x3bfa2b['push'](_0x1a73d6);}_0x5a0345['push']([_0x96b75b['view'],_0x3bfa2b]);}return _0x5a0345;}),this['listenTo'](_0x3f00e1,'suggestionLoaded',(_0x34a647,_0x58e2f0)=>{this['listenTo'](_0x58e2f0,'change:previous',(_0x5d3859,_0x611f27,_0x2e79b3,_0xda6179)=>{_0x58e2f0['isInContent']&&(null==_0x2e79b3?(this['_updateController'](_0xda6179['head']),this['_handleSuggestionControllerDelayed'](_0x58e2f0,!0x1)):(this['_updateController'](_0x2e79b3['head']),null==_0xda6179&&this['_handleSuggestionControllerDelayed'](_0x58e2f0,!0x0)));}),null!==_0x58e2f0['previous']?this['_updateController'](_0x58e2f0['head']):this['_handleSuggestionControllerDelayed'](_0x58e2f0,!0x1);}),this['listenTo'](_0x3f00e1,'suggestionUnloaded',(_0x77ff36,_0x573e3a,_0x200797)=>{this['stopListening'](_0x573e3a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x573e3a),this['_suggestionToController']['has'](_0x573e3a)&&this['_destroyController'](_0x573e3a),_0x200797&&this['_updateController'](_0x200797['head']);}),this['listenTo'](_0x3f00e1,'suggestionChanged',(_0x393a7e,_0x375f5d)=>{this['_updateController'](_0x375f5d);}),this['listenTo'](_0x4f9027,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x16af67,'addComment',(_0x1b43cf,{threadId:_0x25ee35,isFromAdapter:_0x313579})=>{if(_0x313579||!_0x3f00e1['hasSuggestion'](_0x25ee35))return;const _0x12a072=_0x3f00e1['getSuggestion'](_0x25ee35);this['_suggestionToController']['get'](_0x12a072)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x15fde8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xada33a;for(const _0x3c3bc4 in _0x15fde8){const _0x568507=_0x3c3bc4,_0x546564=_0x15fde8[_0x568507];if('trackChangesLicenseKeyValid'==_0x546564||'trackChangesLicenseKeyInvalid'==_0x546564||'trackChangesLicenseKeyExpired'==_0x546564||'trackChangesLicenseKeyDomainLimit'==_0x546564||'trackChangesLicenseKeyNotAllowed'==_0x546564||'trackChangesLicenseKeyEvaluationLimit'==_0x546564||'trackChangesLicenseKeyTrialLimit'==_0x546564||'trackChangesLicenseKeyUsageLimit'==_0x546564){delete _0x15fde8[_0x568507],_0xada33a=_0x546564,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xada33a&&_0x15fde8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xada33a&&_0x15fde8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xada33a&&_0x15fde8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xada33a&&_0x15fde8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xada33a&&_0x15fde8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xada33a&&_0x15fde8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xada33a&&_0x15fde8['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5ad648){const _0x485c5f=this['_suggestionToController']['get'](_0x5ad648);if(!_0x485c5f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x485c5f['view'])||null;}['getSuggestionForAnnotation'](_0x41a691){const _0x5d69e4=this['_viewToController']['get'](_0x41a691['innerView']);return _0x5d69e4?_0x5d69e4['model']:null;}['_refreshActiveMarkers'](){const _0x50475b=this['editor']['plugins']['get']('Annotations'),_0x4a768e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f1deb=Array['from'](_0x50475b['activeAnnotations'],_0x17923b=>_0x17923b['innerView'])['filter'](_0x519512=>this['_viewToController']['has'](_0x519512)),_0x4e50e9=[];for(const _0x327851 of _0x3f1deb){const _0x4bea8f=this['_viewToController']['get'](_0x327851)['model']['getAllAdjacentSuggestions']();_0x4e50e9['push'](..._0x4bea8f['reduce']((_0x290210,_0x82a782)=>[..._0x290210,..._0x82a782['getMarkerNames']()],[]));}_0x4a768e['activeMarkers']=_0x4e50e9;}['_addUIComponentsToFactory'](){const _0x22b31d=this['editor'],_0x406ea6=_0x22b31d['locale'],_0xbc2c0d=o(_0x406ea6,'Track\x20changes'),_0x24f046=new _0xb4cd91([{'type':'switchbutton','model':new _0x14aeb8({'withText':!0x0,'isToggleable':!0x0,'label':_0xbc2c0d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x14aeb8({'withText':!0x0,'label':o(_0x406ea6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14aeb8({'withText':!0x0,'label':o(_0x406ea6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14aeb8({'withText':!0x0,'label':o(_0x406ea6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14aeb8({'withText':!0x0,'label':o(_0x406ea6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x22b31d['plugins']['has']('TrackChangesPreview')&&_0x24f046['addMany']([{'type':'separator'},{'type':'button','model':new _0x14aeb8({'withText':!0x0,'label':o(_0x406ea6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5b9ff3 of _0x24f046)if(ke(_0x5b9ff3)){const _0x942d89=_0x22b31d['commands']['get'](_0x5b9ff3['model']['commandName']);_0x5b9ff3['model']['bind']('isOn','isEnabled')['to'](_0x942d89,'value','isEnabled');}_0x22b31d['ui']['componentFactory']['add']('trackChanges',_0x32cb64=>this['_createToolbarButton'](_0x32cb64,_0x24f046,_0xbc2c0d)),_0x22b31d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a8672=>this['_createMenuBarMenu'](_0x2a8672,_0x24f046,_0xbc2c0d));}['_createToolbarButton'](_0x2767b4,_0x4012a4,_0x2dd2ee){const _0x3d1388=_0x47814b(_0x2767b4,_0x5c7c3f),_0x22f4ab=this['editor']['commands']['get']('trackChanges');_0x3d1388['buttonView']['set']({'tooltip':_0x2dd2ee,'label':_0x2dd2ee,'icon':_0xa958bd}),_0x3d1388['buttonView']['bind']('isOn')['to'](_0x22f4ab,'value'),_0x3d1388['buttonView']['on']('execute',()=>{_0x22f4ab['execute'](),this['editor']['editing']['view']['focus']();}),_0x43e3fa(_0x3d1388,_0x4012a4,{'role':'menu'});const _0x3dbebb=[];for(const _0x15488f of _0x4012a4)ke(_0x15488f)&&_0x3dbebb['push'](this['editor']['commands']['get'](_0x15488f['model']['commandName']));const _0x212d7c=_0x3d1388['buttonView'];return _0x212d7c['actionView']['unbind']('isEnabled'),_0x212d7c['arrowView']['unbind']('isEnabled'),_0x212d7c['actionView']['bind']('isEnabled')['to'](_0x22f4ab,'isEnabled'),_0x212d7c['arrowView']['bind']('isEnabled')['toMany'](_0x3dbebb,'isEnabled',(..._0x356e5b)=>_0x356e5b['some'](_0x1439ae=>_0x1439ae)),_0x3d1388['on']('execute',_0x3270a3=>{this['editor']['execute'](_0x3270a3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d1388;}['_createMenuBarMenu'](_0x2d5610,_0x52605e,_0x20c77a){const _0x3a56da=new _0x45df19(_0x2d5610),_0x35ea4f=this['editor']['commands']['get']('trackChanges');_0x3a56da['buttonView']['set']({'label':_0x20c77a,'icon':_0xa958bd});const _0x407fc2=new _0x38afaf(_0x2d5610);for(const _0xb36e39 of _0x52605e){if('separator'==_0xb36e39['type']){_0x407fc2['items']['add'](new _0x5c88a2(_0x2d5610));continue;}const _0x2748bf=new _0x43567e(_0x2d5610,_0x3a56da),_0x307c31=new _0x3f43b2(_0x2d5610),_0x12a55f=_0xb36e39['model'];_0x307c31['bind'](...Object['keys'](_0x12a55f))['to'](_0x12a55f),_0x307c31['delegate']('execute')['to'](_0x3a56da),_0x307c31['on']('execute',()=>{this['editor']['execute'](_0x12a55f['commandName']),this['editor']['editing']['view']['focus']();}),_0x2748bf['children']['add'](_0x307c31),_0x407fc2['items']['add'](_0x2748bf);}return _0x3a56da['bind']('isEnabled')['to'](_0x35ea4f,'isEnabled'),_0x3a56da['panelView']['children']['add'](_0x407fc2),_0x3a56da;}['_initializeController'](_0x13bc5f){const _0x5c2202=this['editor'],_0x18b98e=_0x5c2202['config'],_0x90835d=_0x5c2202['plugins']['get']('Annotations'),_0x3cc483=_0x5c2202['plugins']['get']('CommentsRepository'),_0x19ae64=_0x5c2202['plugins']['get']('EditorAnnotations'),_0x22d423=_0x5c2202['plugins']['get'](_0x429a0e)['me'],_0x486fc2=_0x18b98e['get']('trackChanges')['SuggestionThreadView'],_0x572920=_0x18b98e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1597fe,CommentThreadInputView:_0x2e9043}=_0x5c2202['plugins']['get']('CommentsUI');let _0x39711d,_0x3815f7,_0x20fc34;this['_annotationViews']['has'](_0x13bc5f['id'])?(_0x3815f7=this['_annotationViews']['get'](_0x13bc5f['id']),_0x39711d=_0x3815f7['mainView']):(_0x39711d=new _0x486fc2(_0x5c2202['locale'],_0x13bc5f,_0x22d423,{'disableComments':this['_disableComments'],'editorConfig':{..._0x18b98e['get']('comments.editorConfig'),'licenseKey':_0x18b98e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x18b98e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x18b98e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x18b98e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1ee6dc(_0x18b98e['get']('locale'),_0x5c2202['locale']),'CommentView':_0x18b98e['get']('comments')['CommentView'],'CommentsListView':_0x1597fe,'CommentThreadInputView':_0x2e9043,'SuggestionView':_0x572920}),_0x39711d['suggestionView']['acceptButton']['on']('execute',()=>{_0x5c2202['editing']['view']['focus']();}),_0x39711d['suggestionView']['discardButton']['on']('execute',()=>{_0x5c2202['editing']['view']['focus']();}),_0x3815f7=_0x90835d['createAnnotationView'](this['editor']['locale'],_0x39711d),_0x3815f7['bind']('isDirty')['to'](_0x39711d,'isDirty'),_0x3815f7['bind']('length')['to'](_0x39711d),_0x3815f7['bind']('type')['to'](_0x39711d,'type',_0x204f82=>'suggestion-'+_0x204f82),_0x39711d['on']('escape',()=>{_0x20fc34['fire']('escape');}),this['_annotationViews']['set'](_0x13bc5f['id'],_0x3815f7));const _0x46164c=_0x3cc483['createCommentThreadController'](_0x13bc5f['commentThread'],_0x39711d),_0x1ff52c=new pe(_0x5c2202,_0x13bc5f,_0x39711d,_0x46164c),_0x71be7b=_0x13bc5f['getAllAdjacentSuggestions']()['filter'](_0x2763bc=>_0x2763bc['isInContent']);_0x39711d['descriptionParts']=_0x5c2202['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x71be7b),this['_suggestionToController']['set'](_0x13bc5f,_0x1ff52c),this['_viewToController']['set'](_0x39711d,_0x1ff52c);const _0x476a35=()=>{const _0x5dce1f=[],_0x3a0b7d=_0x13bc5f['getAllAdjacentSuggestions']()['filter'](_0x1cc46f=>_0x1cc46f['isInContent']);for(const _0x471a88 of _0x3a0b7d)_0x5dce1f['push'](..._0x471a88['getMarkers']());return _0x47d81f(_0x5c2202['editing'],_0x5dce1f);};_0x20fc34=_0x90835d['createAnnotation']({'view':_0x3815f7,'target':_0x476a35,'type':()=>'suggestion-'+_0x1ff52c['view']['type'],'isVisible':!!_0x476a35()}),_0x3cc483['_bindAnnotationToEditors'](_0x39711d,_0x20fc34),_0x90835d['add'](_0x20fc34),_0x19ae64['registerAnnotation'](_0x20fc34);}['_destroyController'](_0x442f3f){const _0x2cb7c8=this['editor']['plugins']['get']('CommentsRepository'),_0x238ce0=this['editor']['plugins']['get']('Annotations'),_0x4ed570=this['_suggestionToController']['get'](_0x442f3f),_0x252f6e=_0x4ed570['view'],_0x498904=_0x238ce0['getByInnerView'](_0x252f6e);_0x2cb7c8['_unbindEditors'](_0x252f6e),_0x498904&&_0x238ce0['remove'](_0x498904),this['_suggestionToController']['delete'](_0x442f3f),this['_viewToController']['delete'](_0x252f6e),_0x4ed570['destroy']();}['_updateController'](_0x385c17){if(!_0x385c17['isInContent']||!this['_suggestionToController']['has'](_0x385c17))return;const _0x2e9b35=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ad0dd=this['_suggestionToController']['get'](_0x385c17),_0x59756f=_0x385c17['getAllAdjacentSuggestions']();_0x2ad0dd['view']['descriptionParts']=_0x2e9b35['descriptionFactory']['getDescriptions'](_0x59756f);}['destroy'](){for(const _0x2a36d8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2a36d8);for(const _0x7e7814 of this['_annotationViews']['values']())_0x7e7814['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x45bf96){return'model'in _0x45bf96;}class Fe extends _0x211f0d{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1ac7e7){this['editor']['plugins']['get'](d)['adapter']=_0x1ac7e7;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x324750){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x324750);}['getSuggestions']({skipNotAttached:_0x2d94c7=!0x1,toJSON:_0x13f930=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2d94c7,'toJSON':_0x13f930});}['getSuggestion'](_0x44e54c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x44e54c);}}const p=['Pagination'];class re extends _0x211f0d{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x45b482=this['editor'];if(_0x45b482['config']['define']('trackChangesData.editorCreator',_0x2034f6=>{const _0x511734=_0x45b482['model']['document']['getRootNames']()['reduce']((_0x4899a5,_0x4734f1)=>(_0x4899a5[_0x4734f1]='',_0x4899a5),{});return _0x45b482['constructor']['create'](_0x511734,_0x2034f6);}),'function'!=typeof _0x45b482['config']['get']('trackChangesData')['editorCreator'])throw new _0x290536('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x204e6d){return P(this['editor'],!0x0,_0x204e6d);}['getDataWithDiscardedSuggestions'](_0x368a5e){return P(this['editor'],!0x1,_0x368a5e);}}class Ge extends _0x211f0d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e92a9){function _0x322d3b(_0xf822ae){return _0xf822ae['map'](_0x4973a6=>String['fromCharCode'](_0x4973a6))['join']('');}super(_0x1e92a9),this['result']='end',_0x1e92a9[_0x322d3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x322d3b([0x76,0x69,0x65,0x77])][_0x322d3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x322d3b([0x61,0x75,0x74,0x6f]),_0x1e92a9[_0x322d3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x322d3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x322d3b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x322d3b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x322d3b([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 He(_0x1d7370){return void 0x0!==_0x1d7370['getRootsAttributes'];}async function P(_0x5c2cb0,_0x4e2fc5,_0x54e049){const _0x221c4=_0x5d28dd(_0x5c2cb0,p);_0x221c4['plugins']['push'](d,Ge),_0x221c4['rootsAttributes']=He(_0x5c2cb0)?_0x5c2cb0['getRootsAttributes']():void 0x0;const _0x4488d4=document['createDocumentFragment'](),_0xc1e176=_0x5c2cb0['config']['get']('trackChangesData')['editorCreator'],_0x54942b=await _0xc1e176(_0x221c4,()=>function(_0x3c92b6){const _0x529207=document['createElement']('div');return _0x3c92b6['appendChild'](_0x529207),_0x529207;}(_0x4488d4));!function(_0x460661,_0x392c1b){const _0x2e94ca=_0x460661['model']['document']['getRootNames']()['reduce']((_0x38a1ea,_0x1cff6c)=>(_0x38a1ea[_0x1cff6c]=_0x460661['data']['get']({'rootName':_0x1cff6c}),_0x38a1ea),{}),_0x2d6cf9=_0x460661['plugins']['get']('Users')['users']['map'](_0x4c446e=>({'id':_0x4c446e['id'],'name':_0x4c446e['name']})),_0x442ad1=_0x460661['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e0697=_0x460661['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10b6cb=_0x392c1b['plugins']['get']('Users'),_0x1c5866=_0x392c1b['plugins']['get']('TrackChangesEditing'),_0x206f87=_0x392c1b['plugins']['get']('CommentsRepository');for(const _0x185fc0 of _0x206f87['getCommentThreads']())_0x185fc0['remove']();for(const _0x46cca5 of _0x2d6cf9)_0x10b6cb['getUser'](_0x46cca5['id'])||_0x10b6cb['addUser'](_0x46cca5);_0x10b6cb['me']||_0x10b6cb['useAnonymousUser']();for(const _0x90ff83 of _0x4e0697)_0x206f87['addCommentThread'](_0x90ff83);for(const _0x3fa36d of _0x442ad1)_0x1c5866['addSuggestionData'](_0x3fa36d);_0x392c1b['data']['set'](_0x2e94ca);}(_0x5c2cb0,_0x54942b),_0x54942b['execute'](_0x4e2fc5?'acceptAllSuggestions':'discardAllSuggestions');const _0x54efd8=He(_0x54942b)?_0x54942b['getFullData'](_0x54e049):_0x54942b['data']['get'](_0x54e049);return await _0x54942b['destroy'](),_0x54efd8;}class Me extends _0x3277a5{['options'];constructor(_0x2f7d16,_0x4ddb47){super(_0x2f7d16),this['options']=_0x4ddb47,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'](_0x10971e,_0x197e36){if(!this['element'])return;const _0x3f567f=[];for(const [_0x1c6474,_0x57d705]of _0x10971e){const _0x3bb26a=document['createElement']('div');_0x3bb26a['setAttribute']('data-ck-root-name',_0x1c6474),_0x3bb26a['className']=_0x57d705['classes']+'\x20ck-track-changes-preview__root-container',_0x3bb26a['innerHTML']=_0x57d705['content'],_0x3f567f['push'](_0x3bb26a);}_0x197e36(this['element'],_0x3f567f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x3fc38b{constructor(_0x50155d){super(_0x50155d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xf8bb4=this['editor'],_0x2b0e7b=_0xf8bb4['locale'],_0x3eebaf=_0xf8bb4['plugins']['get']('Dialog');let _0x637dca;const _0x44c67a=function(_0x541a6b){const _0x3ca1cb={};if('editables'in _0x541a6b['ui']['view']){for(const [_0x26e2b2,_0x535d52]of Object['entries'](_0x541a6b['ui']['view']['editables']))_0x3ca1cb[_0x26e2b2]=_0x535d52['element'];}else _0x3ca1cb[_0x541a6b['model']['document']['getRootNames']()[0x0]]=_0x541a6b['ui']['view']['editable']['element'];return _0x3ca1cb;}(_0xf8bb4),_0x524ae7=function(_0x5e8077){let _0x30ec1e=0x0;for(const _0x189978 of Object['values'](_0x5e8077))_0x30ec1e=Math['max'](_0x30ec1e,_0x189978['getBoundingClientRect']()['width']);let _0x57fdbf=0x0;for(const _0x3d8dd7 of Object['values'](_0x5e8077))_0x57fdbf+=_0x3d8dd7['getBoundingClientRect']()['height'];const _0x42f8fc=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1e386c=Math['min'](_0x57fdbf,_0x42f8fc);return{'width':_0x30ec1e,'height':_0x1e386c};}(_0x44c67a);_0x3eebaf['show']({'id':'finalContentPreview','title':o(_0x2b0e7b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2b0e7b,{'dialogRects':_0x524ae7}),'onHide':()=>{_0x637dca['detachFromDom']();},'onShow':()=>{_0xf8bb4['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1ef47b=>{const _0x2cbb36=this['_standarizeRootsData'](_0x1ef47b,_0xf8bb4,_0x44c67a);_0x3eebaf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2cbb36,_0xf8bb4['config']['get']('trackChanges.preview.renderFunction'));}),_0x637dca=new _0x2ecf44(_0x2b0e7b,[_0x3eebaf['view']]),_0x637dca['attachToDom'](),_0x637dca['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xf8bb4['once']('destroy',()=>{_0x637dca['detachFromDom']();});const _0x26c648=_0x3eebaf['view']['headerView']['class'];_0x3eebaf['view']['headerView']['class']=_0x26c648?_0x26c648+'\x20ck-reset_all':'ck-reset_all',_0x3eebaf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3eebaf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x39b52e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xd13f95=_0x39b52e['previewMode'],_0x22a8d0={};if('$labels'===_0xd13f95){for(const _0xaad1a0 of _0x39b52e['getMergeFieldsIds']())_0x22a8d0[_0xaad1a0]=_0x39b52e['getLabel'](_0xaad1a0)||_0xaad1a0;}else{const _0xde1138='$defaultValues'===_0xd13f95?_0x39b52e['getDefaultValues']():_0x39b52e['getDataSetValues'](_0xd13f95,!0x0);for(const _0x3936f8 of Object['entries'](_0xde1138)){const [_0x1fe8b4,_0x4db4de]=_0x3936f8;_0x22a8d0[_0x1fe8b4]=null!==_0x4db4de?_0x4db4de:_0x39b52e['getLabel'](_0x1fe8b4)||_0x1fe8b4;}}return{'mergeFieldsData':_0x22a8d0};}['_standarizeRootsData'](_0x3fb965,_0xf76b44,_0x249ee7){let _0x432f94;if('string'==typeof _0x3fb965){const _0x369013=_0xf76b44['model']['document']['getRootNames']()[0x0];_0x432f94={[_0x369013]:_0x3fb965};}else _0x432f94=_0x3fb965;const _0x57c91d=this['_fixMediaEmbeds'](_0x432f94,_0xf76b44),_0x498736=function(_0xd715ab,_0x110130){for(const [_0x3f08a8,_0x2143a5]of _0xd715ab)_0x2143a5['classes']=_0x110130[_0x3f08a8]['classList']['value']['replace']('ck-focused','');return _0xd715ab;}(this['_sortRoots'](_0xf76b44)['reduce']((_0x1b22ad,_0x62fe4d)=>(_0x1b22ad['push']([_0x62fe4d,{'content':_0x57c91d[_0x62fe4d],'classes':''}]),_0x1b22ad),[]),_0x249ee7);return _0x498736;}['_fixMediaEmbeds'](_0x4c8e03,_0x4aacee){if(!_0x4aacee['plugins']['has']('MediaEmbedEditing'))return _0x4c8e03;const _0x567bce=_0x4aacee['plugins']['get']('MediaEmbedEditing');for(const [_0x23c18d,_0x5c2660]of Object['entries'](_0x4c8e03)){const _0x3ad280=document['createElement']('div');_0x3ad280['innerHTML']=_0x5c2660,(_0x3ad280['querySelectorAll']('figure.media')['forEach'](_0x1918a7=>{const _0x5ccefc=_0x1918a7['querySelector']('oembed');if(_0x5ccefc){const _0x3e207d=_0x5ccefc['getAttribute']('url');if(_0x3e207d){const _0xa712db=_0x567bce['registry']['getMediaViewElement'](new _0x450ea9(_0x4aacee['editing']['view']['document']),_0x3e207d,{'elementName':'','renderForEditingView':!0x0}),_0x21a352=document['createElement']('div');_0x21a352['classList']['add']('ck-media__wrapper'),_0xa712db['render'](_0x21a352,_0x4aacee['editing']['view']['domConverter']),_0x5ccefc['replaceWith'](_0x21a352);}}}),_0x4c8e03[_0x23c18d]=_0x3ad280['innerHTML']);}return _0x4c8e03;}['_sortRoots'](_0x1b5b60){if(!function(_0x54d182){return void 0x0!==_0x54d182['getRootsAttributes'];}(_0x1b5b60))return _0x1b5b60['model']['document']['getRootNames']();const _0x2a5fd9=[],_0x45ef4d=new Map();for(const _0x26f327 of _0x1b5b60['model']['document']['getRootNames']()){const _0x4c6ca9=_0x1b5b60['editing']['view']['getDomRoot'](_0x26f327)['getClientRects']()['item'](0x0);_0x2a5fd9['push'](_0x26f327),_0x45ef4d['set'](_0x26f327,_0x4c6ca9);}return _0x2a5fd9['sort']((_0x339750,_0xcc27b)=>{const _0xa51252=_0x45ef4d['get'](_0x339750),_0x4fb0db=_0x45ef4d['get'](_0xcc27b);return _0xa51252['y']-_0x4fb0db['y']||_0xa51252['x']-_0x4fb0db['x'];}),_0x2a5fd9;}}class $e extends _0x211f0d{static get['requires'](){return[re,_0x5b419d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d0caf){super(_0x4d0caf),_0x4d0caf['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4d0caf['config']['define']('trackChanges.preview.renderFunction',(_0x580685,_0x36da63)=>{for(const _0x3e4dba of _0x36da63)_0x580685['appendChild'](_0x3e4dba);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
|