@ckeditor/ckeditor5-track-changes 46.0.1-alpha.3 → 46.0.1-alpha.5
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
|
-
_0x376714(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5a92c7,_0x52ee5b){super(),this['id']=_0x52ee5b['id'],this['type']=_0x52ee5b['type'],this['subType']=_0x52ee5b['subType']||null,this['author']=_0x52ee5b['author'],this['creator']=_0x52ee5b['creator']||_0x52ee5b['author'],this['isExternal']=Boolean(_0x52ee5b['attributes']&&_0x52ee5b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x52ee5b['originalSuggestionId']||null,this['_model']=_0x5a92c7,this['_onAccept']=_0x52ee5b['onAccept'],this['_onDiscard']=_0x52ee5b['onDiscard'],this['_onAttributesChange']=_0x52ee5b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x52ee5b['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 _0x30f1c7=this;for(;_0x30f1c7['previous'];)_0x30f1c7=_0x30f1c7['previous'];return _0x30f1c7;}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'](_0xa7b1a1){this['_markerNames']['add'](_0xa7b1a1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x194d44=>this['_model']['markers']['get'](_0x194d44))['filter'](_0x41b29d=>_0x41b29d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x16d5a8=>{for(const _0x1ea5d0 of this['getMarkers']())_0x16d5a8['removeMarker'](_0x1ea5d0);}),this['_markerNames']['clear']();}['removeMarker'](_0x457ee7){this['_model']['change'](_0x50621c=>{_0x50621c['removeMarker'](_0x457ee7);}),this['_markerNames']['delete'](_0x457ee7);}['addRange'](_0x6d6f0f){const _0x14db89='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x14db89),this['_model']['change'](_0x1bf552=>{_0x1bf552['addMarker'](_0x14db89,{'range':_0x6d6f0f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2fe4fb){for(const _0x10b71e of this['getRanges']())if(_0x10b71e['isIntersecting'](_0x2fe4fb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x31caf9=>_0x31caf9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16a096,_0x3ce6d6)=>[..._0x16a096,..._0x3ce6d6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6188fb=this['getRanges']();if(0x1!=_0x6188fb['length'])return null;const _0x3d556c=_0x6188fb[0x0],_0x17de47=_0x3d556c['start']['nodeAfter'],_0x4c337b=_0x3d556c['end']['nodeBefore'];return _0x17de47 instanceof _0x59a46f?_0x17de47!=_0x4c337b?null:_0x17de47: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 _0xad54e6=[];let _0x3f98dc=this['head'];for(;_0x3f98dc;)_0xad54e6['push'](_0x3f98dc),_0x3f98dc=_0x3f98dc['next'];return _0xad54e6;}['setAttribute'](_0x5cb361,_0x3149d5){const _0x18e3c1=_0x27cc63(this['attributes']);_0x83298(_0x18e3c1,_0x5cb361,_0x3149d5),_0x108ea8(_0x18e3c1,this['attributes'])||(this['attributes']=_0x18e3c1,this['_onAttributesChange'](_0x18e3c1));}['removeAttribute'](_0x44512c){const _0x445a28=_0x27cc63(this['attributes']);_0xfbf470(_0x445a28,_0x44512c),_0x108ea8(_0x445a28,this['attributes'])||(this['attributes']=_0x445a28,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 _0xd42815()['substr'](0x1,0x5);}}function o(_0x381f6f,_0xfbecfd,_0x591154){const _0x538102=_0x381f6f['t'],t=_0x381f6f['t'];switch(_0xfbecfd){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',_0x591154);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x591154);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x591154);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x591154);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x591154);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',_0x591154);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x591154);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',_0x591154);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x591154);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x591154);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x591154);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x591154);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x591154);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x591154);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x591154);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x591154);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x591154);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x591154);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x591154);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x591154);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x591154);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x591154);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x591154);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x591154);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x591154);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'},_0x591154);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x591154);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x591154);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x591154);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x591154);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x591154);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x591154);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x591154);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'},_0x591154);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x591154);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x591154);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x591154);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x591154);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'},_0x591154);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x591154);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'},_0x591154);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'},_0x591154);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x591154);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'},_0x591154);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x591154);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'},_0x591154);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x591154);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x591154);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'},_0x591154);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x591154);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 _0x538102({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x591154);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x538102({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x591154);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x591154);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'},_0x591154);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'},_0x591154);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'},_0x591154);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xfbecfd;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x19cfdb,_0x3916f3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x19cfdb,this['_locale']=_0x3916f3;}['getDescriptions'](_0x33d03b){const _0x417e47=[],_0x232943=new Set(),_0x2f7d01=new Set();for(let _0x147422=0x0;_0x147422<_0x33d03b['length'];_0x147422++){const _0xdf6bea=_0x33d03b[_0x147422];if(!_0xdf6bea['isInContent'])continue;const _0x2ab337=this['_handleCustomCallbackDescription'](_0xdf6bea);if(_0x2ab337){if(null!=_0xdf6bea['subType']){if(_0x232943['has'](_0xdf6bea['subType']))continue;_0x232943['add'](_0xdf6bea['subType']);}_0x417e47['push'](_0x2ab337);}else{if('attribute'==_0xdf6bea['type']){const _0x5863b9=_0xdf6bea['data']['key'];if(_0x2f7d01['has'](_0x5863b9))continue;_0x2f7d01['add'](_0xdf6bea['data']['key']),_0x5863b9==m?this['_handleRenameSuggestionDescription'](_0x417e47,_0xdf6bea):this['_handleAttributeSuggestionDescription'](_0x417e47,_0xdf6bea);continue;}'insertion'!=_0xdf6bea['type']&&'deletion'!=_0xdf6bea['type']||this['_handleInsertRemoveSuggestionDescription'](_0x417e47,_0xdf6bea,_0x33d03b[_0x147422+0x1]);}}return this['_resolveDescriptionItems'](_0x417e47);}['registerDescriptionCallback'](_0x5d48bb){this['_customCallbacks']['push'](_0x5d48bb);}['registerElementLabel'](_0x17b04e,_0x227d26,_0x1dcf73=_0x49afb9['normal']){'function'==typeof _0x17b04e?_0x1897ab(this['_itemLabelsCallbacks'],{'matchingCallback':_0x17b04e,'label':_0x227d26,'priority':_0x1dcf73}):this['_itemLabels']['set'](_0x17b04e,_0x227d26);}['registerAttributeLabel'](_0x77277f,_0x2e001d){this['_attributeLabels']['set'](_0x77277f,_0x2e001d);}['getItemLabel'](_0x1f32e5,_0x429369=0x1){let _0x3953fb;for(const _0x40b0eb of this['_itemLabelsCallbacks'])if(_0x40b0eb['matchingCallback'](_0x1f32e5)){_0x3953fb=_0x40b0eb['label'];break;}return _0x3953fb||(_0x3953fb=this['_itemLabels']['get'](_0x1f32e5['name'])),_0x3953fb?_0x3953fb(_0x429369):0x1!==_0x429369?_0x429369+'\x20'+_0x1f32e5['name']+'s':''+_0x1f32e5['name'];}['_addDescriptionItems'](_0x227f0d,_0x51d601){const _0x212be5=_0x51d601['getFirstRange']()['getWalker'](),_0x37cf4e='insertion'==_0x51d601['type']?'add':'remove';for(const _0x58d600 of _0x212be5){const _0x48dd2b=_0x58d600['item'],_0x48d9de=_0x227f0d[_0x227f0d['length']-0x1];if(_0x48dd2b['is']('$textProxy'))_0x48d9de&&_0x48d9de['type']['indexOf']('Container')>-0x1&&_0x227f0d['pop'](),_0x48d9de&&'text'==_0x48d9de['type']?_0x48d9de[_0x37cf4e]+=_0x48dd2b['data']:_0x227f0d['push']({'type':'text','add':'add'==_0x37cf4e?_0x48dd2b['data']:'','remove':'remove'==_0x37cf4e?_0x48dd2b['data']:''});else{if(this['_schema']['isObject'](_0x48dd2b)){const _0x25c96a=_0x48dd2b;if(_0x48d9de&&_0x48d9de['type']['indexOf']('Container')>-0x1&&_0x227f0d['pop'](),'elementEnd'==_0x58d600['type'])continue;_0x48d9de&&_0x48d9de['type']==_0x37cf4e+'Object'&&_0x48d9de['element']['name']==_0x25c96a['name']?_0x48d9de['quantity']++:_0x227f0d['push']({'type':_0x37cf4e+'Object','element':_0x25c96a,'quantity':0x1}),_0x212be5['skip'](_0x312681=>!('elementEnd'==_0x312681['type']&&_0x312681['item']==_0x48dd2b));}else{if(this['_schema']['checkChild'](_0x48dd2b,'$text')||_0x48dd2b['is']('element','softBreak')){const _0x1203ce=_0x48dd2b;if('add'==_0x37cf4e&&'elementStart'==_0x58d600['type']||'remove'==_0x37cf4e&&'elementEnd'==_0x58d600['type'])continue;if(_0x48d9de&&-0x1==_0x48d9de['type']['indexOf']('Container')){'text'==_0x48d9de['type']&&(_0x48d9de[_0x37cf4e]+='\x0a');continue;}let _0x2c31a1;if(_0x2c31a1='add'==_0x37cf4e?_0x1203ce['nextSibling']&&!this['_schema']['isObject'](_0x1203ce['nextSibling'])?_0x1203ce['nextSibling']:null:_0x1203ce['previousSibling']&&!this['_schema']['isObject'](_0x1203ce['previousSibling'])?_0x1203ce['previousSibling']:null,_0x1203ce['isEmpty']||_0x2c31a1&&_0x2c31a1['isEmpty']){const _0x4c74de=_0x2c31a1&&_0x2c31a1['isEmpty']?_0x2c31a1:_0x1203ce;_0x48d9de&&_0x48d9de['type']==_0x37cf4e+'EmptyContainer'&&_0x48d9de['element']['name']==_0x4c74de['name']?_0x48d9de['quantity']++:_0x227f0d['push']({'type':_0x37cf4e+'EmptyContainer','element':_0x4c74de,'quantity':0x1});}else _0x227f0d['push']({'type':_0x37cf4e+'Container','element':_0x1203ce});}}}}}['_resolveDescriptionItems'](_0x27cc50){const _0xab2129=this['_locale'],_0x7fdb30=[],_0xc97add=[],_0x12d5de=[];for(const _0x224ba0 of _0x27cc50)switch(_0x224ba0['type']){case'text':if(_0x224ba0['add']=_0x224ba0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x224ba0['remove']=_0x224ba0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x224ba0['add']&&''!=_0x224ba0['remove']){_0x7fdb30['push']({'type':'replace','content':o(_0xab2129,'REPLACE_TEXT',['\x22'+_0x224ba0['remove']+'\x22','\x22'+_0x224ba0['add']+'\x22'])});continue;}if(null!=_0x224ba0['add']['match'](/^ +$/)){_0x7fdb30['push']({'type':'insertion','content':o(_0xab2129,'*Insert:*\x20%0',o(_0xab2129,'ELEMENT_SPACE',_0x224ba0['add']['length']))});continue;}if(null!=_0x224ba0['remove']['match'](/^ +$/)){_0x7fdb30['push']({'type':'deletion','content':o(_0xab2129,'*Remove:*\x20%0',o(_0xab2129,'ELEMENT_SPACE',_0x224ba0['remove']['length']))});continue;}if(''!=_0x224ba0['add']){_0x7fdb30['push']({'type':'insertion','content':o(_0xab2129,'*Insert:*\x20%0','\x22'+_0x224ba0['add']+'\x22')});continue;}_0x7fdb30['push']({'type':'deletion','content':o(_0xab2129,'*Remove:*\x20%0','\x22'+_0x224ba0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x7fdb30['push']({'type':'insertion','content':o(_0xab2129,'*Insert:*\x20%0',this['getItemLabel'](_0x224ba0['element'],_0x224ba0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x7fdb30['push']({'type':'deletion','content':o(_0xab2129,'*Remove:*\x20%0',this['getItemLabel'](_0x224ba0['element'],_0x224ba0['quantity']))});continue;case'addContainer':_0x7fdb30['push']({'type':'insertion','content':o(_0xab2129,'*Split:*\x20%0',this['getItemLabel'](_0x224ba0['element'],_0x224ba0['quantity']))});continue;case'removeContainer':_0x7fdb30['push']({'type':'deletion','content':o(_0xab2129,'*Merge:*\x20%0',this['getItemLabel'](_0x224ba0['element'],_0x224ba0['quantity']))});continue;case'addFormat':_0xc97add['push'](_0x224ba0['key']);continue;case'removeFormat':_0x12d5de['push'](_0x224ba0['key']);continue;default:_0x7fdb30['push'](_0x224ba0);}if(_0xc97add['length']){const _0x39c919=_0xc97add['map'](_0x124f11=>this['_attributeLabels']['has'](_0x124f11)?this['_attributeLabels']['get'](_0x124f11):_0x124f11)['join'](',\x20');_0x7fdb30['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x39c919)});}if(_0x12d5de['length']){const _0x377de7=_0x12d5de['map'](_0x34537f=>this['_attributeLabels']['has'](_0x34537f)?this['_attributeLabels']['get'](_0x34537f):_0x34537f)['join'](',\x20');_0x7fdb30['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x377de7)});}return _0x7fdb30;}['_handleCustomCallbackDescription'](_0x258b7e){for(const _0x54a998 of this['_customCallbacks']){const _0x1e6d8d=_0x54a998(_0x258b7e);if(_0x1e6d8d&&'type'in _0x1e6d8d)return _0x1e6d8d;}}['_handleAttributeSuggestionDescription'](_0x26592b,_0x293359){const _0x51cf8d=_0x293359['data'],_0x4f9114=void 0x0===_0x51cf8d['newValue']?'removeFormat':'addFormat';_0x26592b['push']({'type':_0x4f9114,'key':_0x51cf8d['key']});}['_handleRenameSuggestionDescription'](_0x6a0a75,_0x4b4a12){_0x6a0a75['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4b4a12['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x46fb9e,_0x4b538a,_0x234ace){if(this['_addDescriptionItems'](_0x46fb9e,_0x4b538a),_0x234ace&&_0x234ace['getFirstRange']()&&!_0x4b538a['getFirstRange']()['end']['isEqual'](_0x234ace['getFirstRange']()['start'])){const _0x1fc612=_0x46fb9e[_0x46fb9e['length']-0x1],_0x2dcae5='insertion'==_0x4b538a['type']?'add':'remove';_0x1fc612&&'text'==_0x1fc612['type']&&(_0x1fc612[_0x2dcae5]+='\x0a');}}}class O extends _0x275754{['afterInit'](){const _0x5f0e5d=this['editor'],_0x14c25c=_0x5f0e5d['plugins']['get']('TrackChangesEditing');_0x5f0e5d['commands']['get']('showAIAssistant')&&_0x14c25c['enableCommand']('showAIAssistant');}}class E extends _0x275754{['afterInit'](){const _0x418244=this['editor'],_0x1acd15=_0x418244['locale'];if(!_0x418244['plugins']['has']('AlignmentEditing'))return;const _0x471413=_0x418244['plugins']['get']('TrackChangesEditing');_0x471413['enableDefaultAttributesIntegration']('alignment'),_0x471413['registerBlockAttribute']('alignment'),_0x471413['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1acd15,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbb76ba=this['editor'],_0x14b0f1=_0xbb76ba['locale'];_0xbb76ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aff20=>{if('formatBlock'!=_0x1aff20['type'])return;const {data:_0x3aa7f5}=_0x1aff20;if(_0x3aa7f5&&'alignment'==_0x3aa7f5['commandName']){const _0x3fdba9=_0x3aa7f5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x14b0f1,'*Format:*\x20%0',function(_0x7a58e){switch(_0x7a58e){case'left':return o(_0x14b0f1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x14b0f1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x14b0f1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x14b0f1,'FORMAT_JUSTIFY_TEXT');}}(_0x3fdba9))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x275754{['afterInit'](){const _0x224481=this['editor'],_0x264e8d=_0x224481['plugins']['get']('TrackChangesEditing'),_0x1f79cf=_0x224481['locale'];for(const _0x321495 of ti){if(!_0x224481['plugins']['has'](_0x321495))continue;const _0x5eeeb8=_0x321495['slice'](0x0,-0x7)['toLowerCase'](),_0x129c61='FORMAT_'+_0x5eeeb8['toUpperCase']();_0x264e8d['enableDefaultAttributesIntegration'](_0x5eeeb8),_0x264e8d['registerInlineAttribute'](_0x5eeeb8),_0x264e8d['descriptionFactory']['registerAttributeLabel'](_0x5eeeb8,o(_0x1f79cf,_0x129c61));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21e0fd=this['editor'],_0x28af55=_0x21e0fd['locale'],_0x5183b7=_0x21e0fd['plugins']['get']('TrackChangesEditing');function _0x28848d(_0x3d0b54,_0x2eeab3){_0x5183b7['descriptionFactory']['registerDescriptionCallback'](_0x166da0=>{if('formatInline'!=_0x166da0['type'])return;const {data:_0x1a48b6}=_0x166da0;return _0x1a48b6&&_0x1a48b6['commandName']===_0x3d0b54?_0x1a48b6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28af55,'*Format:*\x20%0',_0x2eeab3)}:{'type':'format','content':o(_0x28af55,'*Remove\x20format:*\x20%0',_0x2eeab3)}:void 0x0;});}_0x28848d('bold',o(_0x28af55,'FORMAT_BOLD')),_0x28848d('italic',o(_0x28af55,'FORMAT_ITALIC')),_0x28848d('underline',o(_0x28af55,'FORMAT_UNDERLINE')),_0x28848d('code',o(_0x28af55,'FORMAT_CODE')),_0x28848d('strikethrough',o(_0x28af55,'FORMAT_STRIKETHROUGH')),_0x28848d('subscript',o(_0x28af55,'FORMAT_SUBSCRIPT')),_0x28848d('superscript',o(_0x28af55,'FORMAT_SUPERSCRIPT'));}}class U extends _0x275754{['afterInit'](){const _0x15c8fa=this['editor'],_0x44139e=_0x15c8fa['locale'];if(!_0x15c8fa['plugins']['has']('BlockQuoteEditing'))return;const _0x1c31ea=_0x15c8fa['plugins']['get']('TrackChangesEditing'),_0xc5f75e=this['editor']['commands']['get']('blockQuote');_0x1c31ea['enableCommand']('blockQuote',(_0x48cab5,_0x20b89c={})=>{const _0x10f121=this['editor']['model']['document']['selection'],_0x3acf89=_0x20b89c&&void 0x0!==_0x20b89c['forceValue']?_0x20b89c['forceValue']:!_0xc5f75e['value'];let _0x36f7b1=[];if(_0x3acf89){const _0x3e1f73=Array['from'](_0x10f121['getSelectedBlocks']())['filter'](_0x29d19c=>oo(_0x29d19c)||function(_0x11d18a,_0x4e7113){const _0x153e2d=_0x4e7113['checkChild'](_0x11d18a['parent'],'blockQuote'),_0x15946c=_0x4e7113['checkChild'](['$root','blockQuote'],_0x11d18a);return _0x153e2d&&_0x15946c;}(_0x29d19c,this['editor']['model']['schema']));_0x36f7b1=to(_0x3e1f73,_0x15c8fa['model']);}else{const _0x2747ad=Array['from'](_0x10f121['getSelectedBlocks']())['filter'](_0x352158=>oo(_0x352158));_0x36f7b1=to(_0x2747ad,_0x15c8fa['model']);}_0x15c8fa['model']['change'](()=>{for(const _0x4d95b0 of _0x36f7b1)_0x1c31ea['markBlockFormat'](_0x4d95b0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3acf89}]});});}),_0x1c31ea['descriptionFactory']['registerDescriptionCallback'](_0x34211f=>{const {data:_0x51cd1e}=_0x34211f;if(_0x51cd1e&&'blockQuote'==_0x51cd1e['commandName']){const _0x367f12=o(_0x44139e,'ELEMENT_BLOCK_QUOTE');return _0x51cd1e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44139e,'*Set\x20format:*\x20%0',_0x367f12)}:{'type':'format','content':o(_0x44139e,'*Remove\x20format:*\x20%0',_0x367f12)};}});}}function oo(_0x3415c7){return'blockQuote'==_0x3415c7['parent']['name'];}class V extends _0x275754{['afterInit'](){const _0x4a4e20=this['editor'],_0x2b333f=_0x4a4e20['locale'],_0x55ec4a=_0x4a4e20['plugins']['get']('TrackChangesEditing');_0x4a4e20['plugins']['has']('BookmarkEditing')&&(_0x55ec4a['enableCommand']('insertBookmark'),_0x55ec4a['enableDefaultAttributesIntegration']('updateBookmark'),_0x55ec4a['registerBlockAttribute']('bookmarkId'),_0x55ec4a['descriptionFactory']['registerDescriptionCallback'](_0x1c0653=>{if('insertion'!=_0x1c0653['type']&&'deletion'!=_0x1c0653['type']&&'attribute'!=_0x1c0653['type'])return;const _0x20c352=_0x1c0653['getContainedElement']();if(null==_0x20c352)return;if(!_0x20c352['is']('element','bookmark'))return;const _0x1d384b=_0x20c352['getAttribute']('bookmarkId');if('insertion'==_0x1c0653['type'])return{'type':'insertion','content':o(_0x2b333f,'*Insert:*\x20%0','\x22'+_0x1d384b+'\x22\x20'+o(_0x2b333f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c0653['type'])return{'type':'deletion','content':o(_0x2b333f,'*Remove:*\x20%0','\x22'+_0x1d384b+'\x22\x20'+o(_0x2b333f,'ELEMENT_BOOKMARK'))};const {data:_0xe895bc}=_0x1c0653;if(!_0xe895bc||'bookmarkId'!=_0xe895bc['key'])return;return{'type':'format','content':o(_0x2b333f,'*Set\x20bookmark:*\x20%0','\x22'+_0xe895bc['newValue']+'\x22')};}));}}class F extends _0x275754{['afterInit'](){const _0x17dee0=this['editor'];_0x17dee0['plugins']['has']('CaseChange')&&(_0x17dee0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x17dee0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x17dee0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x275754{['afterInit'](){const _0x1f1e6f=this['editor'];_0x1f1e6f['commands']['get']('ckbox')&&_0x1f1e6f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x275754{['afterInit'](){const _0x4e82ec=this['editor'];if(!_0x4e82ec['plugins']['has']('CodeBlock'))return;const _0x215c79=_0x4e82ec['plugins']['get']('TrackChangesEditing'),_0xe23c6c=_0x4e82ec['locale'],_0x74df63=_0x4e82ec['config']['get']('codeBlock')['languages'],_0x275db6=_0x4e82ec['commands']['get']('codeBlock');_0x215c79['enableCommand']('indentCodeBlock'),_0x215c79['enableCommand']('outdentCodeBlock'),_0x215c79['enableCommand']('codeBlock',(_0x2a75cf,_0x23e2ef={})=>{const _0x26d256=_0x4e82ec['model'],_0x504322=_0x4e82ec['model']['document']['selection'],_0x28c6e5=_0x23e2ef&&void 0x0!==_0x23e2ef['forceValue']?_0x23e2ef['forceValue']:!_0x275db6['value'];let _0x4326ea;_0x23e2ef['language']||(_0x23e2ef['language']=_0x74df63[0x0]['language']),_0x4326ea=_0x28c6e5?Array['from'](_0x504322['getSelectedBlocks']())['filter'](_0x4353ab=>co(_0x4353ab)||function(_0x53330a,_0x33e39e){if(_0x53330a['is']('rootElement')||_0x33e39e['isLimit'](_0x53330a))return!0x1;return _0x33e39e['checkChild'](_0x53330a['parent'],'codeBlock');}(_0x4353ab,_0x26d256['schema'])):Array['from'](_0x504322['getSelectedBlocks']())['filter'](_0x198c36=>co(_0x198c36));const _0x55bca1=to(_0x4326ea,_0x26d256);_0x26d256['change'](()=>{for(const _0x2d1a7b of _0x55bca1)_0x215c79['markBlockFormat'](_0x2d1a7b,{'commandName':'codeBlock','commandParams':[{..._0x23e2ef,'forceValue':_0x28c6e5}],'formatGroupId':'blockName'});});}),(_0x215c79['descriptionFactory']['registerElementLabel']('codeBlock',_0x1739f6=>o(_0xe23c6c,'ELEMENT_CODE_BLOCK',_0x1739f6)),_0x215c79['descriptionFactory']['registerDescriptionCallback'](_0x17c08a=>{if('formatBlock'!=_0x17c08a['type'])return;const _0x235e3e=_0xe23c6c['t'],{data:_0x4921f0}=_0x17c08a;if(!_0x4921f0||'codeBlock'!=_0x4921f0['commandName'])return;const _0x2ba4a9=_0x4921f0['commandParams'][0x0]['language'],_0x19b705=_0x235e3e(_0x74df63['find'](_0x143a98=>_0x143a98['language']===_0x2ba4a9)['label'])['toLowerCase']();return _0x4921f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe23c6c,'*Set\x20format:*\x20%0',o(_0xe23c6c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x19b705+')')}:{'type':'format','content':o(_0xe23c6c,'*Remove\x20format:*\x20%0',o(_0xe23c6c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x2ff4f4){return'codeBlock'==_0x2ff4f4['name'];}class J extends _0x275754{['afterInit'](){const _0x40974e=this['editor'];if(!_0x40974e['plugins']['has']('CommentsEditing'))return;_0x40974e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2d3679,_0x446975,_0x3a2f30){const _0x3e6e3c=[];for(const _0x4cd604 of _0x446975['getItems']())_0x4cd604['hasAttribute'](_0x2d3679)&&_0x3e6e3c['push'](_0x3a2f30['createRangeOn'](_0x4cd604));return _0x3e6e3c;}function De(_0x4d3e0c,_0x37ce44,{showActiveMarker:_0x29a1ec=!0x0}={}){const _0x54d2de=_0x4d3e0c['plugins']['get']('TrackChangesEditing');return(_0x45a0d4,_0xa5fd74,_0x18e7bd)=>{if(!_0x18e7bd['consumable']['test'](_0xa5fd74['markerRange'],_0x45a0d4['name']))return;const _0x5a8324=_0xa5fd74['markerRange']['getWalker'](),_0x5f1c16=_0xa5fd74['markerRange']['start'],_0x1ff358=_0x4d3e0c['model']['schema'];let _0x1377c5=null,_0x27aac1=null,_0x2c1003=!0x1,_0x63c1b4=!0x1;for(const _0x47e453 of _0x5a8324){const _0x42d254=_0x47e453['item'];_0x2c1003=_0x2c1003||_0x1ff358['isContent'](_0x42d254);const _0x38b355=_0x18e7bd['mapper']['toViewElement'](_0x42d254);if(_0x38b355&&_0x38b355['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47e453['type']&&(_0x1ff358['isBlock'](_0x42d254)&&!_0x1ff358['isLimit'](_0x42d254)&&(_0x42d254['nextSibling']||_0x5f1c16['isAtEnd']?_0x1377c5&&_0x1377c5['parent']==_0x42d254||(_0x1377c5=_0x42d254,_0x261bc8(_0x47e453['previousPosition']),_0x63c1b4=!0x0):_0x27aac1=_0x27aac1||_0x47e453['previousPosition']));}function _0x261bc8(_0x32efe5){const {id:_0x907bbc,authorId:_0x5d4c78}=_0x54d2de['_splitMarkerName'](_0xa5fd74['markerName']),_0x122b6c=_0x18e7bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x37ce44,'data-suggestion':_0x907bbc,'data-author-id':_0x5d4c78}),_0x5eed9a=_0x18e7bd['mapper']['toViewPosition'](_0x32efe5);_0x29a1ec&&_0x54d2de['activeMarkers']['includes'](_0xa5fd74['markerName'])&&_0x18e7bd['writer']['addClass']('ck-suggestion-marker--active',_0x122b6c),_0x18e7bd['writer']['insert'](_0x5eed9a,_0x122b6c),_0x18e7bd['mapper']['bindElementToMarker'](_0x122b6c,_0xa5fd74['markerName']);}_0x2c1003||_0x63c1b4||!_0x27aac1||_0x261bc8(_0x27aac1);};}class K extends _0x275754{static get['requires'](){return[_0x4cf55c];}['init'](){const _0x3e406a=this['editor'],_0x265d1f=_0x3e406a['plugins']['get']('TrackChangesEditing');_0x265d1f['enableCommand']('delete');const _0x3937fc=_0x3e406a['commands']['get']('deleteForward');_0x265d1f['enableCommand']('deleteForward',(_0x44eae8,_0x1401bf={})=>{const _0x4189a9=_0x3e406a['model']['createSelection'](_0x3e406a['model']['document']['selection']);_0x4189a9['isCollapsed']&&_0x3e406a['model']['modifySelection'](_0x4189a9,{'direction':'forward','unit':_0x1401bf['unit']});const _0x6f6e17=_0x4189a9['getFirstRange'](),_0x52bf49=_0x1eeb47['fromRange'](_0x6f6e17);let _0x571935;_0x44eae8(_0x1401bf),_0x571935='$graveyard'==_0x52bf49['root']['rootName']?_0x3e406a['model']['createRange'](_0x6f6e17['start']):_0x3e406a['model']['createRange'](_0x52bf49['start'],_0x52bf49['end']),_0x52bf49['detach'](),_0x3e406a['model']['enqueueChange'](_0x3937fc['buffer']['batch'],_0x1bbd3d=>{_0x3937fc['buffer']['lock'](),_0x1bbd3d['setSelection'](_0x1bbd3d['createRange'](_0x571935['end'])),_0x3937fc['buffer']['unlock']();});}),_0x3e406a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3e406a,'merge'),{'priority':'high'}),_0x3e406a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x48099d,_0x13b726,_0x4d2198)=>{_0x4d2198['options']['showSuggestionHighlights']&&De(_0x3e406a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x48099d,_0x13b726,_0x4d2198);},{'priority':'high'}),_0x3e406a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xf03acc,_0x259005,_0x4b1819)=>{const _0x1630ac=_0x4b1819['mapper']['markerNameToElements'](_0x259005['markerName']);if(_0x1630ac){for(const _0x3c4482 of _0x1630ac)_0x3c4482['is']('uiElement')&&(_0x4b1819['mapper']['unbindElementFromMarkerName'](_0x3c4482,_0x259005['markerName']),_0x4b1819['writer']['remove'](_0x3c4482));}},{'priority':'high'});}}class H extends _0x275754{['afterInit'](){const _0x3727ae=this['editor'];if(!_0x3727ae['plugins']['has']('ListEditing'))return;const _0x2fce7b=_0x3727ae['locale'],_0x2444d4=_0x3727ae['plugins']['get']('TrackChangesEditing'),_0x2bea67=_0x3727ae['plugins']['has']('TodoListEditing'),_0x3edbca=!!_0x3727ae['config']['get']('list.multiBlock');function _0x50b820(_0x55d496){return{'type':'format','content':''+o(_0x2fce7b,'*Set\x20format:*\x20%0',_0x55d496)};}function _0x4269d0(_0x225801){return{'type':'format','content':''+o(_0x2fce7b,'*Remove\x20format:*\x20%0',_0x225801)};}_0x2444d4['enableDefaultAttributesIntegration']('numberedList'),_0x2444d4['enableDefaultAttributesIntegration']('bulletedList'),_0x2444d4['enableDefaultAttributesIntegration']('customNumberedList'),_0x2444d4['enableDefaultAttributesIntegration']('customBulletedList'),_0x2444d4['enableDefaultAttributesIntegration']('indentList'),_0x2444d4['enableDefaultAttributesIntegration']('outdentList'),_0x2444d4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2444d4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2444d4['registerBlockAttribute']('listItemId'),_0x2444d4['registerBlockAttribute']('listType'),_0x2444d4['registerBlockAttribute']('listIndent'),_0x3edbca&&(_0x2444d4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2444d4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2bea67&&(_0x2444d4['enableDefaultAttributesIntegration']('todoList'),_0x2444d4['enableDefaultAttributesIntegration']('checkTodoList'),_0x2444d4['registerBlockAttribute']('todoListChecked'),_0x2444d4['descriptionFactory']['registerDescriptionCallback'](_0x1e4a06=>{const {data:_0x2b57b6}=_0x1e4a06;if(_0x2b57b6&&'todoListChecked'==_0x2b57b6['key'])return{'type':'format','content':_0x2b57b6['newValue']?o(_0x2fce7b,'*Check\x20item*'):o(_0x2fce7b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1155ad=>{if(_0x1155ad['batch']['isUndo'])return!0x1;let _0x3892b1=!0x1;const _0x5525b4=_0x2444d4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x316d50=>'todoListChecked'===_0x2444d4['_getAttributeKey'](_0x316d50));for(const _0x2da5aa of _0x5525b4){'todo'!=_0x2da5aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2444d4['_findSuggestions'](_0x2da5aa['getFirstRange'](),'attribute')['find'](_0x38d878=>'listType'===_0x2444d4['_getAttributeKey'](_0x38d878['suggestion']))||(_0x1155ad['removeMarker'](_0x2da5aa['getFirstMarker']()),_0x3892b1=!0x0));}return _0x3892b1;})),_0x2444d4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2fce7b,'FORMAT_INDENT'));const _0x4ed64={'type':'format','content':''};_0x2444d4['descriptionFactory']['registerDescriptionCallback'](_0x4f8785=>{const {data:_0x49be1d}=_0x4f8785;if(!_0x49be1d||'listType'!=_0x49be1d['key'])return;let _0x372e2b=_0x4f8785['head'];for(;_0x372e2b;){if(_0x372e2b['data']&&(('listStyle'==_0x372e2b['data']['key']||'listMarkerStyle'==_0x372e2b['data']['key'])&&(_0x372e2b['data']['newValue']&&'default'!=_0x372e2b['data']['newValue']||'default'!=_0x372e2b['data']['oldValue']&&!_0x49be1d['newValue'])||!_0x3edbca&&_0x372e2b['data']['key']==m))return _0x4ed64;_0x372e2b=_0x372e2b['next'];}if(null==_0x49be1d['newValue'])switch(_0x49be1d['oldValue']){case'bulleted':return _0x4269d0(o(_0x2fce7b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4269d0(o(_0x2fce7b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4269d0(o(_0x2fce7b,'ELEMENT_TODO_LIST'));}switch(_0x49be1d['newValue']){case'bulleted':return _0x50b820(o(_0x2fce7b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x50b820(o(_0x2fce7b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x50b820(o(_0x2fce7b,'ELEMENT_TODO_LIST'));}}),_0x2444d4['descriptionFactory']['registerDescriptionCallback'](_0x415876=>{const {data:_0x2d98c5}=_0x415876;if(_0x2d98c5&&'listIndent'==_0x2d98c5['key'])return null==_0x2d98c5['newValue']||null==_0x2d98c5['oldValue']&&0x0==_0x2d98c5['newValue']?_0x4ed64:void 0x0;}),_0x2444d4['descriptionFactory']['registerDescriptionCallback'](_0x4671a3=>{if('attribute'!=_0x4671a3['type'])return;const {data:_0x2b22e1}=_0x4671a3;if(!_0x2b22e1||'listItemId'!=_0x2b22e1['key'])return;const _0x24d719=Te(_0x4671a3);return'newValue'==_0x24d719?{'type':'format','content':o(_0x2fce7b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x24d719?{'type':'format','content':o(_0x2fce7b,'*Split:*\x20list\x20item')}:_0x4ed64;}),_0x3727ae['model']['document']['registerPostFixer'](_0x28068a=>this['listItemIdFixer'](_0x28068a)),_0x3727ae['model']['document']['registerPostFixer'](_0x2f1b6b=>this['noTrackChangesFixer'](_0x2f1b6b)),_0x3727ae['model']['document']['on']('change:data',(_0x37442b,_0xe7f1a3)=>{if(_0xe7f1a3['isUndo']||!_0xe7f1a3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1f43ac){if(_0x1f43ac['batch']['isUndo']||!_0x1f43ac['batch']['isLocal'])return!0x1;let _0x26f929=!0x1;const _0x276231=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21141c=>_0x21141c['data']&&'listItemId'==_0x21141c['data']['key'])['filter'](_0x21300c=>_0x21300c['data']['newValue']&&_0x21300c['data']['oldValue']);for(const _0x339e2b of _0x276231)Te(_0x339e2b)||(_0x1f43ac['removeMarker'](_0x339e2b['getFirstMarker']()),_0x26f929=!0x0);return _0x26f929;}['noTrackChangesFixer'](_0x3b1ea8){if(_0x3b1ea8['batch']['isUndo']||!_0x3b1ea8['batch']['isLocal'])return!0x1;const _0x1dcc4d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1dcc4d['trackChangesCommand']['value'])return!0x1;let _0x3c7268=!0x1;const _0x3fc3d8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x48fef1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x33215b=>'attribute'==_0x33215b['type'])['filter'](_0x45143a=>_0x3fc3d8['includes'](_0x45143a['attributeKey']));if(0x0==_0x48fef1['length'])return _0x3c7268;for(const _0xad8596 of _0x48fef1){const _0x54e37f=_0x1dcc4d['_findSuggestions'](_0xad8596['range'],'attribute')['filter'](_0xf37ca9=>!_0xf37ca9['meta']['isNextTo'])['map'](_0x14c0c8=>_0x14c0c8['suggestion'])['filter'](_0x21c345=>{const _0x5ddb68=_0x1dcc4d['_getAttributeKey'](_0x21c345);return _0x3fc3d8['includes'](_0x5ddb68);});if(_0x54e37f['length']){for(const _0x119683 of _0x54e37f)_0x3b1ea8['removeMarker'](_0x119683['getFirstMarker']());_0x3c7268=!0x0;}}return _0x3c7268;}['assureChains'](){const _0x40e76b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16997c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33eb5e;const _0x211561=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5219bd=>{if(_0x5219bd['data']['oldRange']||!_0x5219bd['data']['newRange'])return null;if(!_0x5219bd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4103c9}=_0x40e76b['_splitMarkerName'](_0x5219bd['name']);if(!_0x40e76b['hasSuggestion'](_0x4103c9))return null;const _0x389256=_0x40e76b['getSuggestion'](_0x4103c9);return _0x16997c['includes'](_0x389256['data']['key']);})['map'](_0x472473=>{const {id:_0x335495}=_0x40e76b['_splitMarkerName'](_0x472473['name']),_0x482925=_0x40e76b['getSuggestion'](_0x335495);return _0x33eb5e=_0x482925['attributes']['groupId'],_0x482925['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x211561['size'])return;const _0x2fa9e6=_0x40e76b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d9ab6=>'attribute'==_0x2d9ab6['type']&&_0x2d9ab6['data']&&_0x16997c['includes'](_0x2d9ab6['data']['key'])&&_0x2d9ab6['attributes']['groupId']!=_0x33eb5e)['map'](_0x992675=>({'listItem':_0x992675['getFirstRange']()['start']['nodeAfter'],'groupId':_0x992675['attributes']['groupId']})),_0x152eb6=new Set();for(const {groupId:_0x3cb0fa,listItem:_0x382b9a}of _0x2fa9e6)_0x211561['has'](_0x382b9a)&&_0x152eb6['add'](_0x3cb0fa);for(const _0x44fed7 of _0x40e76b['getSuggestions']())_0x152eb6['has'](_0x44fed7['attributes']['groupId'])&&_0x44fed7['setAttribute']('groupId',_0x33eb5e);}['_supportLegacySuggestions'](){const _0x42bd6b=this['editor'],_0x3072a7=_0x42bd6b['locale'],_0x3e0b46=_0x42bd6b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3e0b46['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x9e39b0,_0x13bf8a){const _0x4b217c=[];for(let _0x124f82 of _0x9e39b0)_0x124f82['start']['nodeAfter']===_0x124f82['end']['parent']&&(_0x124f82=_0x42bd6b['model']['createRange'](_0x42bd6b['model']['createPositionAt'](_0x124f82['start']['nodeAfter'],0x0))),_0x4b217c['push'](_0x124f82);_0x42bd6b['model']['change'](_0x1397e0=>{const _0xfd58be=_0x42bd6b['model']['document']['selection'],_0x3303a1=Array['from'](_0xfd58be['getRanges']())['map'](_0x33a1e9=>_0x1eeb47['fromRange'](_0x33a1e9));_0x1397e0['setSelection'](_0x4b217c),_0x42bd6b['commands']['get'](_0x13bf8a['commandName'])['refresh'](),_0x13bf8a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x42bd6b['execute'](_0x13bf8a['commandName'],..._0x13bf8a['commandParams']),_0x1397e0['setSelection'](_0x3303a1);for(const _0x539afe of _0x3303a1)_0x539afe['detach']();});}),_0x3e0b46['descriptionFactory']['registerElementLabel'](function(_0x1e9e0e){const _0x100699=!_0x42bd6b['model']['schema']['isObject'](_0x1e9e0e),_0x3cc9fc=_0x1e9e0e['previousSibling'],_0x118f68=_0x1e9e0e['nextSibling'],_0x1450bc=_0x1e9e0e['getAttribute']('listItemId'),_0x5a117b=!_0x3cc9fc||_0x3cc9fc['getAttribute']('listItemId')!==_0x1450bc,_0x4e5e92=!_0x118f68||_0x118f68['getAttribute']('listItemId')!==_0x1450bc;return _0x100699&&Boolean(_0x1450bc)&&_0x5a117b&&_0x4e5e92;},_0x23bbfb=>o(_0x3072a7,'ELEMENT_LIST_ITEM',_0x23bbfb));}['_registerLegacyDescription'](){const _0x4bbf56=this['editor'],_0x47e5eb=_0x4bbf56['locale'];function _0x57f1aa(_0x2e1b40){const _0x2db8c8=_0x4bbf56['commands']['get']('bulletedList')['value'],_0x7131d0=_0x4bbf56['commands']['get']('numberedList')['value'];return'numberedList'===_0x2e1b40?_0x2db8c8:_0x7131d0;}_0x4bbf56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3d28b2){if('formatBlock'!=_0x3d28b2['type'])return;const {data:_0x1a57f5}=_0x3d28b2;if(!_0x1a57f5)return;let _0x34a03d,_0xc79e17,_0x12d228,_0x5d460a;switch(_0x1a57f5['commandName']){case'bulletedList':_0x12d228=_0x1a57f5['commandParams'][0x0]['forceValue'],_0x5d460a=_0x57f1aa(_0x1a57f5['commandName']),_0x34a03d=_0x12d228?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d460a&&_0x4bbf56['config']['get']('list.multiBlock')||(_0x34a03d='*Change\x20to:*\x20%0'),_0xc79e17={'type':'format','content':o(_0x47e5eb,_0x34a03d,o(_0x47e5eb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x12d228=_0x1a57f5['commandParams'][0x0]['forceValue'],_0x5d460a=_0x57f1aa(_0x1a57f5['commandName']),_0x34a03d=_0x12d228?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d460a&&_0x4bbf56['config']['get']('list.multiBlock')||(_0x34a03d='*Change\x20to:*\x20%0'),_0xc79e17={'type':'format','content':o(_0x47e5eb,_0x34a03d,o(_0x47e5eb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x34a03d='*Indent:*\x20%0',_0xc79e17={'type':'format','content':o(_0x47e5eb,_0x34a03d,o(_0x47e5eb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x34a03d=function(_0x296d5d){const _0x374979=_0x296d5d['getFirstRange']();let _0x2e194b=_0x374979['start']['nodeAfter'];for(;_0x2e194b&&_0x374979['containsItem'](_0x2e194b);){if(_0x2e194b['getAttribute']('listIndent')>0x0)return!0x1;_0x2e194b=_0x2e194b['nextSibling'];}return!0x0;}(_0x3d28b2)?o(_0x47e5eb,'*Format:*\x20remove\x20from\x20%0',o(_0x47e5eb,function(_0x54ed68){return'ELEMENT_'+_0x54ed68['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3d28b2))):o(_0x47e5eb,'*Outdent:*\x20%0',o(_0x47e5eb,'ELEMENT_LIST_ITEM')),_0xc79e17={'type':'format','content':_0x34a03d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1a57f5['multipleBlocks']&&(_0x34a03d='*Merge:*\x20%0',_0xc79e17={'type':'deletion','content':o(_0x47e5eb,_0x34a03d,o(_0x47e5eb,'ELEMENT_LIST_ITEM'))});}return _0xc79e17;});}}function Te(_0x312f0c){let _0x3a84b7=_0x312f0c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3a84b7;){const _0x200c5e=_0x3a84b7['getAttribute']('listItemId');if(!_0x200c5e)return!0x1;if(_0x200c5e==_0x312f0c['data']['newValue'])return'newValue';if(_0x200c5e==_0x312f0c['data']['oldValue'])return'oldValue';_0x3a84b7=_0x3a84b7['previousSibling'];}return!0x1;}class q extends _0x275754{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x594b58=this['editor']['config']['get']('list.properties'),_0x127797=this['editor']['plugins']['get']('TrackChangesEditing');_0x594b58['styles']&&(_0x127797['enableDefaultAttributesIntegration']('listStyle'),_0x127797['registerBlockAttribute']('listStyle')),_0x594b58['reversed']&&(_0x127797['enableDefaultAttributesIntegration']('listReversed'),_0x127797['registerBlockAttribute']('listReversed')),_0x594b58['startIndex']&&(_0x127797['enableDefaultAttributesIntegration']('listStart'),_0x127797['registerBlockAttribute']('listStart'));const _0x1e890c={'type':'format','content':''};_0x127797['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x42c26d=this['editor']['locale'];_0x127797['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x42c26d,'FORMAT_LIST_REVERSED')),_0x127797['descriptionFactory']['registerDescriptionCallback'](_0x170c43=>{const {data:_0x1ca475}=_0x170c43;if(_0x1ca475&&'listReversed'==_0x1ca475['key'])return null==_0x1ca475['newValue']||0x0==_0x1ca475['newValue']&&null==_0x1ca475['oldValue']?_0x1e890c:void 0x0;}),_0x127797['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x42c26d,'FORMAT_LIST_START')),_0x127797['descriptionFactory']['registerDescriptionCallback'](_0xbd482b=>{const {data:_0x25fb92}=_0xbd482b;if(_0x25fb92&&'listStart'==_0x25fb92['key'])return null==_0x25fb92['newValue']||0x1==_0x25fb92['newValue']&&null==_0x25fb92['oldValue']?_0x1e890c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x106228=>{if(_0x106228['batch']['isUndo'])return!0x1;let _0x590e86=!0x1;const _0x3aae57=_0x127797['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x608d09=>{const _0x1b5178=_0x127797['_getAttributeKey'](_0x608d09);return'listStart'==_0x1b5178||'listReversed'==_0x1b5178;});for(const _0x112354 of _0x3aae57){const _0x77f394=_0x112354['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x77f394||'customNumbered'==_0x77f394)continue;_0x127797['_findSuggestions'](_0x112354['getFirstRange'](),'attribute')['find'](_0x3389bb=>'listType'==_0x127797['_getAttributeKey'](_0x3389bb['suggestion']))||(_0x106228['removeMarker'](_0x112354['getFirstMarker']()),_0x590e86=!0x0);}return _0x590e86;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3a77ac){const _0x5d1fe0=this['editor']['locale'],{data:_0x2c67aa}=_0x3a77ac,_0x37c8a3={'type':'format','content':''};if(!_0x2c67aa||'listStyle'!=_0x2c67aa['key'])return;if(!_0x2c67aa['oldValue'])return'default'==_0x2c67aa['newValue']?_0x37c8a3:{'type':'format','content':''+o(_0x5d1fe0,'*Set\x20format:*\x20%0',o(_0x5d1fe0,this['_getTranslationKeyForListStyle'](_0x2c67aa['newValue'])))};if(!_0x2c67aa['newValue']){if('default'==_0x2c67aa['oldValue'])return _0x37c8a3;let _0x5ea4f8=_0x3a77ac['head'];for(;_0x5ea4f8;){if(_0x5ea4f8['data']&&'listType'==_0x5ea4f8['data']['key']&&_0x5ea4f8['data']['newValue'])return _0x37c8a3;_0x5ea4f8=_0x5ea4f8['next'];}return{'type':'format','content':''+o(_0x5d1fe0,'*Remove\x20format:*\x20%0',o(_0x5d1fe0,this['_getTranslationKeyForListStyle'](_0x2c67aa['oldValue'])))};}if('default'!=_0x2c67aa['newValue'])return{'type':'format','content':''+o(_0x5d1fe0,'*Set\x20format:*\x20%0',o(_0x5d1fe0,this['_getTranslationKeyForListStyle'](_0x2c67aa['newValue'])))};let _0x195cc9=_0x3a77ac['head'];for(;_0x195cc9;){if(_0x195cc9['data']&&'listType'==_0x195cc9['data']['key']&&_0x195cc9['data']['newValue']&&_0x195cc9['data']['oldValue'])return _0x37c8a3;_0x195cc9=_0x195cc9['next'];}return{'type':'format','content':o(_0x5d1fe0,'*Set\x20format:*\x20%0',o(_0x5d1fe0,'ELEMENT_'+_0x3a77ac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4272a1=this['editor'],_0xda7796=_0x4272a1['locale'];_0x4272a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f7e09=>{if('formatBlock'!=_0x2f7e09['type'])return;const {data:_0x33cdfc}=_0x2f7e09;if(!_0x33cdfc)return;let _0x36dc55,_0x773f49;switch(_0x33cdfc['commandName']){case'listStyle':_0x36dc55='*Change\x20to:*\x20%0',_0x773f49={'type':'format','content':o(_0xda7796,_0x36dc55,o(_0xda7796,this['_getTranslationKeyForListStyle'](_0x33cdfc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36dc55=_0x33cdfc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x773f49={'type':'format','content':o(_0xda7796,_0x36dc55)};break;case'listStart':_0x36dc55='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x773f49={'type':'format','content':o(_0xda7796,_0x36dc55,_0x33cdfc['commandParams'][0x0]['startIndex'])};}return _0x773f49;});}['_getTranslationKeyForListStyle'](_0x26bdaa){return'ELEMENT_'+function(_0x2a16e6){if(Se['includes'](_0x2a16e6))return'bulleted';if(_e['includes'](_0x2a16e6))return'numbered';return null;}(_0x26bdaa)['toUpperCase']()+'_LIST_'+_0x26bdaa['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x275754{['afterInit'](){const _0xaad5a3=this['editor'];_0xaad5a3['commands']['get']('emoji')&&_0xaad5a3['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x275754{static get['requires'](){return[_0x39ef26];}['init'](){const _0x34bbdf=this['editor'],_0x294e14=_0x34bbdf['plugins']['get']('TrackChangesEditing'),_0xe9dcd3=_0x34bbdf['commands']['get']('enter');_0x294e14['enableCommand']('enter',()=>{_0x34bbdf['model']['change'](_0x2cbf4c=>{const _0x482891=_0x34bbdf['model']['document']['selection'],_0x29aa5b=_0x482891['getFirstPosition'](),_0x25b47a=_0x1eeb47['fromRange'](_0x482891['getFirstRange']());if(_0xe9dcd3['enterBlock'](_0x2cbf4c)){const _0x1329d9=_0x34bbdf['model']['createPositionAt'](_0x29aa5b['parent']['nextSibling'],0x0),_0x699dd1=_0x2cbf4c['createRange'](_0x29aa5b,_0x1329d9);_0x294e14['markInsertion'](_0x699dd1);}else _0x2cbf4c['setSelection'](_0x2cbf4c['createRange'](_0x25b47a['end']));_0x25b47a['detach'](),_0xe9dcd3['fire']('afterExecute',{'writer':_0x2cbf4c});});}),_0x34bbdf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x34bbdf,'split'),{'priority':'high'}),_0x34bbdf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c6be3,_0x3ae296,_0xe76b52)=>{const _0x103b46=_0xe76b52['mapper']['markerNameToElements'](_0x3ae296['markerName']);if(_0x103b46){for(const _0xe7cbee of _0x103b46)_0xe7cbee['hasClass']('ck-suggestion-marker-split')&&(_0xe76b52['mapper']['unbindElementFromMarkerName'](_0xe7cbee,_0x3ae296['markerName']),_0xe76b52['writer']['remove'](_0xe7cbee));}},{'priority':'high'}),_0x34bbdf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36f41e,_0x153aa1,_0x23b3af)=>{_0x23b3af['options']['showSuggestionHighlights']&&De(_0x34bbdf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x36f41e,_0x153aa1,_0x23b3af);},{'priority':'high'});}}class Q extends _0x275754{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x408710=this['editor']['plugins']['get']('TrackChangesEditing');_0x408710['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x408710['enableCommand']('findNext'),_0x408710['enableCommand']('findPrevious'),_0x408710['enableCommand']('replace'),_0x408710['enableCommand']('replaceAll');}['handleFindCommand'](_0x2587d2,_0x276432,_0x16b5b4={}){const _0x405638=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2587d2(_0x31bc16=>{let _0x2aa093=('string'==typeof _0x276432?_0x405638['findByTextCallback'](_0x276432,_0x16b5b4):_0x276432)(_0x31bc16);Array['isArray'](_0x2aa093)&&(_0x2aa093={'results':_0x2aa093,'searchText':'string'==typeof _0x276432?_0x276432:''});const _0x2edfe0=_0x2aa093['results']['filter'](_0x351d84=>!0x1===this['_isInDeletionRange'](_0x351d84,_0x31bc16['item']));return{..._0x2aa093,'results':_0x2edfe0};},_0x16b5b4);}['_isInDeletionRange'](_0x28b784,_0x1c9ddb){const _0x5a6e79=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c9ddb,_0x28b784['start']),this['editor']['model']['createPositionAt'](_0x1c9ddb,_0x28b784['end']));for(const _0xb44445 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5a6e79['getIntersection'](_0xb44445['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 _0x275754{['afterInit'](){const _0xa4200a=this['editor']['locale'],_0x4f397d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x27cd0c,commandName:_0x12cf54}of eo)this['editor']['plugins']['has'](_0x27cd0c)&&(_0x4f397d['enableDefaultAttributesIntegration'](_0x12cf54),_0x4f397d['registerInlineAttribute'](_0x12cf54));_0x4f397d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xa4200a,'FORMAT_FONT_SIZE')),_0x4f397d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xa4200a,'FORMAT_FONT_FAMILY')),_0x4f397d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xa4200a,'FORMAT_FONT_COLOR')),_0x4f397d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xa4200a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x262e72=this['editor'],_0x36fa71=_0x262e72['locale'];_0x262e72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x495dba=>{const _0x5ca55c=_0x36fa71['t'];if('formatInline'!=_0x495dba['type'])return;const {data:_0x7a4308}=_0x495dba;if(null!=_0x7a4308){if('fontSize'==_0x7a4308['commandName']){const _0x55b519=_0x7a4308['commandParams'][0x0]['value'];if(_0x55b519){const _0x5df75f=_0x5ca55c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3461fb=>_0x3461fb['model']==_0x55b519)['title'])['toLowerCase']();return{'type':'format','content':o(_0x36fa71,'*Set\x20font\x20size:*\x20%0',_0x5df75f)};}return{'type':'format','content':o(_0x36fa71,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x7a4308['commandName']){const _0x25b7ca=_0x7a4308['commandParams'][0x0]['value'];return _0x25b7ca?{'type':'format','content':o(_0x36fa71,'*Set\x20font\x20family:*\x20%0',_0x25b7ca)}:{'type':'format','content':o(_0x36fa71,'*Reset\x20font\x20family*')};}if('fontColor'==_0x7a4308['commandName']){const _0x316ef9=_0x7a4308['commandParams'][0x0]['value'];if(_0x316ef9){const _0x1dfb57=_0x48e9f9(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb97fa0=>_0xb97fa0['model']==_0x316ef9);let _0x4ee419=_0x316ef9,_0xfe413d='';return _0x1dfb57&&(_0x4ee419=_0x1dfb57['label'],_0xfe413d=_0x5ca55c(_0x4ee419)['toLowerCase']()),{'type':'format','content':o(_0x36fa71,'*Set\x20font\x20color:*\x20%0',_0xfe413d)['trim'](),'color':{'value':_0x316ef9,'title':_0xfe413d||_0x4ee419}};}return{'type':'format','content':o(_0x36fa71,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x7a4308['commandName']){const _0x1219b4=_0x7a4308['commandParams'][0x0]['value'];if(_0x1219b4){const _0x5cec71=_0x48e9f9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4a105c=>_0x4a105c['model']==_0x1219b4);let _0x5a2181=_0x1219b4,_0x5eb799='';return _0x5cec71&&(_0x5a2181=_0x5cec71['label'],_0x5eb799=_0x5ca55c(_0x5a2181)['toLowerCase']()),{'type':'format','content':o(_0x36fa71,'*Set\x20font\x20background\x20color:*\x20%0',_0x5eb799)['trim'](),'color':{'value':_0x1219b4,'title':_0x5eb799||_0x5a2181}};}return{'type':'format','content':o(_0x36fa71,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x275754{['afterInit'](){const _0x16de3f=this['editor'],_0x18a401=_0x16de3f['plugins']['get']('TrackChangesEditing'),_0x27061b=_0x16de3f['commands']['get']('copyFormat'),_0x1bf58a=_0x16de3f['commands']['get']('pasteFormat');_0x27061b&&_0x1bf58a&&(_0x18a401['enableDefaultAttributesIntegration']('pasteFormat'),_0x18a401['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2fce43=this['editor'],_0x3c4022=_0x2fce43['locale'];_0x2fce43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31f107=>{if('formatBlock'!=_0x31f107['type']&&'formatInline'!=_0x31f107['type'])return;const {data:_0x552344}=_0x31f107;if(_0x552344&&'pasteFormat'===_0x552344['commandName']){const _0x1906ce=[],_0x48cf58=_0x552344['commandParams'][0x0];for(const [_0x7f3e65,_0x2e2bce]of Object['entries'](_0x48cf58))_0x1906ce['push'](ro(_0x2fce43,_0x7f3e65,_0x2e2bce));return _0x1906ce['length']?{'type':'format','content':o(_0x3c4022,'*Set\x20format\x20to:*\x20%0',_0x1906ce['join'](',\x20'))}:{'type':'format','content':o(_0x3c4022,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xf01844,_0x50e084,_0x4271f6){const _0x264017=_0xf01844['locale']['t'],_0x5ab25a=_0x50e084['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ad6ee=_0x264017(_0x5ab25a['charAt'](0x0)['toUpperCase']()+_0x5ab25a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4271f6)return _0x2ad6ee;if('fontColor'===_0x50e084||'fontBackgroundColor'===_0x50e084){const _0x345566=_0x48e9f9(_0xf01844['config']['get']('fontColor.colors'))['find'](_0x345653=>_0x345653['model']==_0x4271f6);return _0x2ad6ee+'\x20('+(_0x345566?_0x264017(_0x345566['label'])['toLowerCase']():_0x4271f6)+')';}if('fontSize'===_0x50e084&&isNaN(parseFloat(_0x4271f6))){const _0x5310c7=_0xf01844['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xf01844['config']['get']('fontSize.options'))['find'](_0x165940=>_0x165940['model']==_0x4271f6);return _0x2ad6ee+'\x20('+(_0x5310c7?_0x264017(_0x5310c7['title'])['toLowerCase']():_0x4271f6)+')';}return _0x2ad6ee+'\x20('+_0x4271f6+')';}class Z extends _0x275754{['_headingOptions'];['afterInit'](){const _0x31d03b=this['editor'];if(!_0x31d03b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31d03b['config']['get']('heading.options');const _0xb0e370=_0x31d03b['locale'],_0x9c355b=_0x31d03b['plugins']['get']('TrackChangesEditing');_0x9c355b['enableDefaultAttributesIntegration']('heading');for(const _0x7b017f of this['_headingOptions'])'paragraph'!=_0x7b017f['model']&&_0x9c355b['descriptionFactory']['registerElementLabel'](_0x7b017f['model'],_0x505a41=>{const _0x233eee=this['_getHeadingLevel'](_0x7b017f['model']);return null!==_0x233eee?_0x932881(_0x505a41,_0x233eee):_0x5d9357(_0x505a41,_0x7b017f['title']);});function _0x932881(_0x5c1f07,_0x79a99a){return o(_0xb0e370,'ELEMENT_HEADING',[_0x5c1f07,_0x79a99a]);}function _0x5d9357(_0x3fc72a,_0x1c6783){return o(_0xb0e370,'ELEMENT_HEADING_CUSTOM',[_0x3fc72a,_0x1c6783]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3442bd=this['editor'],_0x388520=_0x3442bd['locale'];function _0x12d6f6(_0x4b871e,_0x292f93){return o(_0x388520,'ELEMENT_HEADING_CUSTOM',[_0x4b871e,_0x292f93]);}_0x3442bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e07bb=>{if('formatBlock'!=_0x1e07bb['type'])return;const {data:_0x47c0f9}=_0x1e07bb;if(_0x47c0f9&&'heading'==_0x47c0f9['commandName']){const _0x50c359=_0x47c0f9['commandParams'][0x0]['value'],_0x1ecb66=this['_getHeadingLevel'](_0x50c359);if(null!==_0x1ecb66)return{'type':'format','content':o(_0x388520,'*Change\x20to:*\x20%0',(_0x37f360=0x1,_0x1e3981=_0x1ecb66,o(_0x388520,'ELEMENT_HEADING',[_0x37f360,_0x1e3981])))};const _0x4e65b0=this['_headingOptions']['find'](_0x527a1c=>_0x527a1c['model']===_0x50c359)['title'];return{'type':'format','content':o(_0x388520,'*Change\x20to:*\x20%0',_0x12d6f6(0x1,_0x4e65b0))};}var _0x37f360,_0x1e3981;});}['_getHeadingLevel'](_0x1fd3ed){const _0x4b1d1b=_0x1fd3ed['match'](/^heading(\d+)/);if(_0x4b1d1b)return _0x4b1d1b[0x1];const _0x5a7fc1=this['_headingOptions']?.['find'](_0x504f8f=>_0x504f8f['model']==_0x1fd3ed);if(_0x5a7fc1&&_0x5a7fc1['view']){const _0xef8ad1=_0x5a7fc1['view'],_0x5576b2=(_0xef8ad1['name']??_0xef8ad1)['match'](/^h(\d+)/);if(_0x5576b2)return _0x5576b2[0x1];}return null;}}class tt extends _0x275754{['afterInit'](){const _0x3fd28c=this['editor'];if(!_0x3fd28c['plugins']['has']('HighlightEditing'))return;const _0x5c26ec=_0x3fd28c['plugins']['get']('TrackChangesEditing'),_0x57363e=_0x3fd28c['locale'];_0x5c26ec['enableDefaultAttributesIntegration']('highlight'),_0x5c26ec['registerInlineAttribute']('highlight'),_0x5c26ec['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x57363e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b9f0c=this['editor'],_0x3aa0d2=_0x9b9f0c['locale'];_0x9b9f0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54c3dc=>{if('formatInline'!=_0x54c3dc['type'])return;const {data:_0x5241f6}=_0x54c3dc;if(_0x5241f6&&'highlight'==_0x5241f6['commandName']){const _0x49a64f=_0x3aa0d2['t'],_0x46350d=_0x5241f6['commandParams'][0x0]['value'];if(_0x46350d){const _0x155545=_0x9b9f0c['config']['get']('highlight.options')['find'](_0x560fd2=>_0x560fd2['model']==_0x46350d),_0x222c8a=_0x49a64f(_0x155545['title'])['toLowerCase']();return{'type':'format','content':o(_0x3aa0d2,'*Set\x20highlight:*\x20%0',_0x222c8a),'color':{'value':_0x155545['color'],'title':_0x155545['title']}};}return{'type':'format','content':o(_0x3aa0d2,'*Remove\x20highlight*',o(_0x3aa0d2,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x275754{['afterInit'](){const _0x47158c=this['editor'];if(!_0x47158c['plugins']['has']('HorizontalLineEditing'))return;_0x47158c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3d57e7=_0x47158c['plugins']['get']('TrackChangesEditing'),_0x2d5530=_0x47158c['locale'];_0x3d57e7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x42e1ea=>o(_0x2d5530,'ELEMENT_HORIZONTAL_LINE',_0x42e1ea)),_0x47158c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x523dcc,{writer:_0x52245b,options:_0x56060a})=>{if(!_0x56060a['showSuggestionHighlights'])return null;const _0x4eca7d=_0x52245b['createContainerElement']('div'),_0x27db18=_0x52245b['createEmptyElement']('hr');return _0x52245b['addClass']('ck-horizontal-line',_0x4eca7d),_0x52245b['insert'](_0x52245b['createPositionAt'](_0x4eca7d,0x0),_0x27db18),_0x4eca7d;},'converterPriority':'high'});}}class nt extends _0x275754{['afterInit'](){const _0x9061eb=this['editor'];if(!_0x9061eb['plugins']['has']('HtmlEmbed'))return;const _0x4e78a2=_0x9061eb['plugins']['get']('TrackChangesEditing'),_0x299750=_0x9061eb['locale'];_0x4e78a2['descriptionFactory']['registerElementLabel']('rawHtml',_0x43abd2=>o(_0x299750,'ELEMENT_HTML_EMBED',_0x43abd2)),_0x4e78a2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4e78a2['registerBlockAttribute']('value'),_0x4e78a2['descriptionFactory']['registerDescriptionCallback'](_0x2f7588=>{if('attribute'!=_0x2f7588['type'])return;const {data:_0x66b353}=_0x2f7588;if(_0x66b353&&'value'==_0x66b353['key']&&_0x2f7588['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4ff3dd=o(_0x299750,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x299750,'*Change\x20%0\x20content*',_0x4ff3dd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5388e5=this['editor'],_0xe91a71=_0x5388e5['locale'];_0x5388e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bfef=>{if('formatBlock'!=_0x4bfef['type'])return;const {data:_0x54cad0}=_0x4bfef;if(_0x54cad0&&'htmlEmbed'==_0x54cad0['commandName']){const _0x320331=o(_0xe91a71,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe91a71,'*Change\x20%0\x20content*',_0x320331)};}});}}class et extends _0x275754{['afterInit'](){const _0x5a3312=this['editor'];if(!_0x5a3312['plugins']['has']('ImageEditing'))return;const _0xa6730b=_0x5a3312['plugins']['get']('TrackChangesEditing'),_0x1995ab=_0x5a3312['plugins']['get']('ImageUtils'),_0x289b8f=_0x5a3312['locale'];_0xa6730b['enableCommand']('insertImage'),_0xa6730b['descriptionFactory']['registerElementLabel']('imageBlock',_0x98089a=>o(_0x289b8f,'ELEMENT_IMAGE',_0x98089a)),_0xa6730b['descriptionFactory']['registerElementLabel']('imageInline',_0xb7c836=>o(_0x289b8f,'ELEMENT_INLINE_IMAGE',_0xb7c836)),_0xa6730b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x289b8f,'ELEMENT_CAPTION')),_0x5a3312['plugins']['has']('ImageUploadEditing')&&_0xa6730b['enableCommand']('uploadImage'),_0x5a3312['plugins']['has']('ImageBlockEditing')&&_0x5a3312['plugins']['has']('ImageInlineEditing')&&(_0xa6730b['enableCommand']('imageTypeInline',(_0x357f29,_0x2dbd4e)=>{const _0x115cce=_0x1995ab['getClosestSelectedImageElement'](_0x5a3312['model']['document']['selection']);_0x5a3312['model']['change'](()=>{_0xa6730b['markBlockFormat'](_0x115cce,{'commandName':'imageTypeInline','commandParams':[_0x2dbd4e]},[],'convertBlockImageToInline');});}),_0xa6730b['enableCommand']('imageTypeBlock',(_0x10fdf8,_0x5416e9)=>{_0x5a3312['model']['change'](_0x31f3ba=>{let _0x4296d0=_0x1995ab['getClosestSelectedImageElement'](_0x5a3312['model']['document']['selection']),_0x5214fe=_0x31f3ba['createRangeOn'](_0x4296d0);const _0x46e893=_0x2d06a3['fromPosition'](_0x5214fe['start'],'toPrevious'),_0xc556cf=_0x2d06a3['fromPosition'](_0x5214fe['end'],'toNext');_0xa6730b['forceDefaultExecution'](()=>_0x10fdf8(_0x5416e9)),_0x4296d0=_0x1995ab['getClosestSelectedImageElement'](_0x5a3312['model']['document']['selection']),_0x5214fe=_0x31f3ba['createRangeOn'](_0x4296d0);const _0x6262a7=_0x31f3ba['createRange'](_0x46e893,_0xc556cf);_0x46e893['detach'](),_0xc556cf['detach'](),_0xa6730b['markBlockFormat'](_0x4296d0,{'commandName':'imageTypeInline','commandParams':[_0x5416e9]},[],'convertInlineImageToBlock'),_0x6262a7['start']['isBefore'](_0x5214fe['start'])&&_0xa6730b['markInsertion'](_0x31f3ba['createRange'](_0x6262a7['start'],_0x5214fe['start']),'convertInlineImageToBlock'),_0x5214fe['end']['isBefore'](_0x6262a7['end'])&&_0xa6730b['markInsertion'](_0x31f3ba['createRange'](_0x5214fe['end'],_0x6262a7['end']),'convertInlineImageToBlock');});}),_0xa6730b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xa6730b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xa6730b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xa6730b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xa6730b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xa6730b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x322dac])=>{const _0x2078f6=_0xa6730b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1a6e56=_0x322dac['start'],_0x5844ef=_0x322dac['end'];const _0x1ca21b=_0x5a3312['model']['schema']['getNearestSelectionRange'](_0x1a6e56,'backward'),_0x308e67=_0x5a3312['model']['schema']['getNearestSelectionRange'](_0x5844ef,'forward');_0x1ca21b['isCollapsed']&&(_0x1a6e56=_0x1ca21b['start']),_0x308e67['isCollapsed']&&(_0x5844ef=_0x308e67['end']),_0x2078f6([_0x5a3312['model']['createRange'](_0x1a6e56,_0x5844ef)]);}),_0xa6730b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1ca75a),_0xa6730b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1ca75a)),_0x5a3312['plugins']['has']('ImageCaptionEditing')&&(_0xa6730b['enableCommand']('toggleImageCaption',(_0x5306f7,_0x4bf6f3)=>{const _0x134de0=_0x5a3312['plugins']['get']('ImageCaptionUtils');let _0x628cf=_0x1995ab['getClosestSelectedImageElement'](_0x5a3312['model']['document']['selection']),_0x34af5f=_0x134de0['getCaptionFromImageModelElement'](_0x628cf);_0x5a3312['model']['change'](()=>{if(_0x34af5f)return void _0xa6730b['markDeletion'](_0x5a3312['model']['createRangeOn'](_0x34af5f));const _0x255953=_0x1995ab['isBlockImage'](_0x628cf);_0x5306f7(_0x4bf6f3),_0x628cf=_0x1995ab['getClosestSelectedImageElement'](_0x5a3312['model']['document']['selection']),_0x34af5f=_0x134de0['getCaptionFromImageModelElement'](_0x628cf),_0xa6730b['markInsertion'](_0x5a3312['model']['createRangeOn'](_0x34af5f),_0x255953?null:'imageCaption');});}),_0xa6730b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1ca75a));const _0x1752d2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x414b96(_0x2abf60,_0x27c75b){const _0x7dd85d=_0x1752d2['findIndex'](({type:_0x2159d9,subType:_0x60edf7})=>_0x2abf60['type']==_0x2159d9&&_0x2abf60['subType']==_0x60edf7),_0x71be11=_0x1752d2['findIndex'](({type:_0x17118d,subType:_0x536aeb})=>_0x27c75b['type']==_0x17118d&&_0x27c75b['subType']==_0x536aeb);if(_0x7dd85d<0x0||_0x71be11<0x0)return!0x1;const _0x3517ab=_0x2abf60['getFirstRange'](),_0x16ff68=_0x27c75b['getFirstRange']();if((0x0==_0x7dd85d||0x1==_0x7dd85d)&&0x2==_0x71be11&&_0x3517ab['isIntersecting'](_0x16ff68))return!0x0;if(0x2==_0x7dd85d&&0x3==_0x71be11){const _0x1d5142=_0xa6730b['_findSuggestions'](_0x3517ab,'insertion')['filter'](({suggestion:_0x1eeb54,meta:_0x33d5be})=>_0x33d5be['isOwn']&&'convertInlineImageToBlock'==_0x1eeb54['subType']);if(_0x1d5142['length']>0x1&&_0x16ff68['end']['isEqual'](_0x3517ab['start']))return!0x0;if(0x1==_0x1d5142['length']&&(_0x3517ab['start']['isEqual'](_0x16ff68['end'])||_0x3517ab['end']['isEqual'](_0x16ff68['start'])))return!0x0;}if(0x3==_0x7dd85d&&0x3==_0x71be11&&_0x3517ab['start']['isBefore'](_0x16ff68['start'])){const _0x4df914=_0x3517ab['end']['nodeAfter'],_0x51e0ff=_0x16ff68['start']['nodeBefore'];return _0x1995ab['isBlockImage'](_0x4df914)&&_0x4df914===_0x51e0ff;}return!0x1;}function _0x1ca75a(_0x480b09,_0xdceafe){return _0x414b96(_0x480b09,_0xdceafe)?[_0x480b09,_0xdceafe]:_0x414b96(_0xdceafe,_0x480b09)?[_0xdceafe,_0x480b09]:null;}_0x5a3312['plugins']['has']('ImageResize')&&(_0xa6730b['enableDefaultAttributesIntegration']('resizeImage'),_0xa6730b['registerBlockAttribute']('resizedWidth'),_0xa6730b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x289b8f,'FORMAT_IMAGE_SIZE'))),_0x5a3312['plugins']['has']('ImageTextAlternativeEditing')&&(_0xa6730b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xa6730b['registerBlockAttribute']('alt')),_0x5a3312['plugins']['has']('PictureEditing')&&(_0xa6730b['registerBlockAttribute']('sources'),_0xa6730b['descriptionFactory']['registerDescriptionCallback'](_0x2f0ab5=>{if('attribute'!=_0x2f0ab5['type'])return;const {data:_0x4f88d3}=_0x2f0ab5;return _0x4f88d3&&'sources'==_0x4f88d3['key']?{'type':'format','content':''}:void 0x0;})),_0x5a3312['plugins']['has']('ImageSizeAttributes')&&(_0xa6730b['registerBlockAttribute']('width'),_0xa6730b['registerBlockAttribute']('height'),_0xa6730b['descriptionFactory']['registerDescriptionCallback'](_0x3783d0=>{if('attribute'!=_0x3783d0['type'])return;const {data:_0x5e15ed}=_0x3783d0;return!_0x5e15ed||'width'!=_0x5e15ed['key']&&'height'!=_0x5e15ed['key']?void 0x0:{'type':'format','content':''};})),_0xa6730b['descriptionFactory']['registerDescriptionCallback'](_0xdb8e7f=>{if(!!_0x1752d2['find'](({type:_0x48e831,subType:_0x3a674b})=>_0xdb8e7f['type']==_0x48e831&&_0xdb8e7f['subType']==_0x3a674b))return _0xdb8e7f['previous']?{}:void 0x0;}),_0xa6730b['descriptionFactory']['registerDescriptionCallback'](_0x30fad0=>{if('insertion'==_0x30fad0['type']||'deletion'==_0x30fad0['type']){const _0x50b0e7=_0x30fad0['getContainedElement']();if(_0x50b0e7&&_0x50b0e7['is']('element','caption'))return{'type':'insertion'==_0x30fad0['type']?'addObject':'removeObject','element':_0x50b0e7,'quantity':0x1};}}),_0xa6730b['descriptionFactory']['registerDescriptionCallback'](_0xb9d15f=>'formatBlock'==_0xb9d15f['type']&&'convertInlineImageToBlock'==_0xb9d15f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xb9d15f['type']&&'convertBlockImageToInline'==_0xb9d15f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xa6730b['descriptionFactory']['registerDescriptionCallback'](_0x567ee9=>{if('attribute'!=_0x567ee9['type'])return;const {data:_0x20707c}=_0x567ee9;if(!_0x20707c||'alt'!=_0x20707c['key'])return;const _0x39e2f9=_0x20707c['newValue'];return _0x39e2f9?{'type':'format','content':o(_0x289b8f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x39e2f9+'\x22')}:{'type':'format','content':o(_0x289b8f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fda9b=this['editor'],_0x51250d=_0x3fda9b['locale'];_0x3fda9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x177bc3=>{if('formatBlock'!=_0x177bc3['type']&&'formatInline'!=_0x177bc3['type'])return;const {data:_0x28c397}=_0x177bc3;if(_0x28c397){if('imageTextAlternative'==_0x28c397['commandName']){const _0x2b4bd3=_0x28c397['commandParams'][0x0]['newValue'];return _0x2b4bd3?{'type':'format','content':o(_0x51250d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2b4bd3+'\x22')}:{'type':'format','content':o(_0x51250d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x28c397['commandName']){const _0x54465e=_0x28c397['commandParams'][0x0]['width'];return _0x54465e?{'type':'format','content':o(_0x51250d,'*Set\x20image\x20width:*\x20%0',_0x54465e)}:{'type':'format','content':o(_0x51250d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x275754{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x52f714=this['editor']['locale'],_0x4db94e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4db94e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4db94e['registerBlockAttribute']('src'),_0x4db94e['descriptionFactory']['registerDescriptionCallback'](_0x58fbe8=>{if('attribute'!=_0x58fbe8['type'])return;const {data:_0x237740}=_0x58fbe8;return _0x237740&&'src'==_0x237740['key']?_0x237740['newValue']&&_0x237740['oldValue']?{'type':'format','content':o(_0x52f714,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x33e2ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x33e2ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x33e2ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33e2ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x33e2ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dc410=this['editor'],_0x3b04ef=_0x2dc410['locale'];_0x2dc410['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bbe0a=>{if('formatBlock'!=_0x2bbe0a['type']&&'formatInline'!=_0x2bbe0a['type'])return;const {data:_0x36e457}=_0x2bbe0a;if(!_0x36e457||'replaceImageSource'!=_0x36e457['commandName'])return;return{'type':'format','content':o(_0x3b04ef,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x275754{['afterInit'](){const _0x59cb5c=this['editor'];if(!_0x59cb5c['plugins']['has']('ImageStyleEditing'))return;const _0x37b1e5=_0x59cb5c['plugins']['get']('TrackChangesEditing'),_0x2bdf52=_0x59cb5c['plugins']['get']('ImageUtils'),_0x45a4fc={};_0x37b1e5['enableCommand']('imageStyle',(_0x10d112,_0x1c2268)=>{const _0xabec93=_0x59cb5c['plugins']['get']('Users')['me'],_0x398058=_0x59cb5c['commands']['get']('imageStyle');let _0x42f337=_0x2bdf52['getClosestSelectedImageElement'](_0x59cb5c['model']['document']['selection']),_0x2f8f07=_0x59cb5c['model']['createRangeOn'](_0x42f337),_0x77ee08=_0x398058['value'];if(_0x77ee08==_0x1c2268['value'])return;const _0x258109={'commandName':'imageStyle','commandParams':[_0x1c2268],'formatGroupId':_0xd42815()};_0x59cb5c['model']['change'](()=>{if(_0x37b1e5['getSuggestions']()['filter'](_0x5ab3af=>_0x5ab3af['isInContent']&&_0xabec93==_0x5ab3af['author']&&('formatBlock'==_0x5ab3af['type']||'formatInline'==_0x5ab3af['type'])&&('imageStylePreApply'==_0x5ab3af['subType']||'imageStylePostApply'==_0x5ab3af['subType'])&&_0x5ab3af['getFirstRange']()['isEqual'](_0x2f8f07))['forEach'](_0x4e1e51=>_0x37b1e5['discardSuggestion'](_0x4e1e51['head'])),_0x42f337=_0x2bdf52['getClosestSelectedImageElement'](_0x59cb5c['model']['document']['selection']),_0x2f8f07=_0x59cb5c['model']['createRangeOn'](_0x42f337),_0x398058['refresh'](),_0x59cb5c['commands']['get']('imageTypeInline')['refresh'](),_0x59cb5c['commands']['get']('imageTypeBlock')['refresh'](),_0x77ee08=_0x398058['value'],_0x77ee08!=_0x1c2268['value'])return _0x2bdf52['isInlineImage'](_0x42f337)&&_0x398058['shouldConvertImageType'](_0x1c2268['value'],_0x42f337)?(_0x10d112({..._0x1c2268,'setImageSizes':!0x1}),_0x42f337=_0x2bdf52['getClosestSelectedImageElement'](_0x59cb5c['model']['document']['selection']),void _0x37b1e5['markBlockFormat'](_0x42f337,{..._0x258109,'commandReversedParams':[{'value':_0x77ee08||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2bdf52['isBlockImage'](_0x42f337)?_0x37b1e5['markBlockFormat'](_0x42f337,_0x258109,[],'imageStylePostApply'):_0x37b1e5['markInlineFormat'](_0x2f8f07,_0x258109,'imageStylePostApply'));});});for(const _0xa2ac4e of _0x59cb5c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x45a4fc[_0xa2ac4e['name']]=_0xa2ac4e['title']['toLowerCase']();_0x37b1e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x37b1e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x37b1e5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x37b1e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4d1fdc])=>{_0x2bdf52['setImageNaturalSizeAttributes'](_0x4d1fdc['getContainedElement']());}),_0x37b1e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xa5f2c1,_0x1b2a92)=>{_0x37b1e5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xa5f2c1,{'commandName':_0x1b2a92['commandName'],'commandParams':_0x1b2a92['commandReversedParams']});}),_0x37b1e5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x130fee,_0x559bd1){if(_0x1bfcdc(_0x130fee,_0x559bd1))return[_0x130fee,_0x559bd1];if(_0x1bfcdc(_0x559bd1,_0x130fee))return[_0x559bd1,_0x130fee];return null;});const _0x20d355=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1bfcdc(_0x2cbf5a,_0xf60d03){const _0x41d92a=_0x20d355['findIndex'](({type:_0x5450e0,subType:_0x1d853d})=>_0x2cbf5a['type']==_0x5450e0&&_0x2cbf5a['subType']==_0x1d853d),_0x50032e=_0x20d355['findIndex'](({type:_0x298fa6,subType:_0x2147bc})=>_0xf60d03['type']==_0x298fa6&&_0xf60d03['subType']==_0x2147bc);if(_0x41d92a<0x0||_0x50032e<0x0)return!0x1;const _0x3afcc4=_0x2cbf5a['getFirstRange'](),_0x2350d1=_0xf60d03['getFirstRange']();if((0x0==_0x41d92a||0x1==_0x41d92a)&&0x2==_0x50032e&&_0x3afcc4['isIntersecting'](_0x2350d1))return!0x0;if(0x2==_0x41d92a&&0x3==_0x50032e){const _0x236f7f=_0x37b1e5['_findSuggestions'](_0x3afcc4,'insertion')['filter'](({suggestion:_0x4e3d76,meta:_0x46bc8f})=>_0x46bc8f['isOwn']&&'convertInlineImageToBlock'==_0x4e3d76['subType']);if(_0x236f7f['length']>0x1&&_0x2350d1['end']['isEqual'](_0x3afcc4['start']))return!0x0;if(0x1==_0x236f7f['length']&&(_0x3afcc4['start']['isEqual'](_0x2350d1['end'])||_0x3afcc4['end']['isEqual'](_0x2350d1['start'])))return!0x0;}if(0x3==_0x41d92a&&0x3==_0x50032e&&_0x3afcc4['start']['isBefore'](_0x2350d1['start'])){const _0x5219d7=_0x3afcc4['end']['nodeAfter'],_0x248a86=_0x2350d1['start']['nodeBefore'];return _0x2bdf52['isBlockImage'](_0x5219d7)&&_0x5219d7===_0x248a86;}return!0x1;}_0x59cb5c['model']['document']['registerPostFixer'](()=>{let _0x4cc3b1=!0x1;const _0x22fe6c=Array['from'](_0x59cb5c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x274f3c,data:_0x5a330d}of _0x22fe6c){const {group:_0x5e298f,type:_0x254bb2,subType:_0x36110a,id:_0x167718}=_0x37b1e5['_splitMarkerName'](_0x274f3c);if('suggestion'==_0x5e298f&&_0x37b1e5['hasSuggestion'](_0x167718)){if('formatBlock'==_0x254bb2&&('imageStylePreApply'==_0x36110a||'imageStylePostApply'==_0x36110a)){const _0x2cfdb7=_0x37b1e5['getSuggestion'](_0x167718);if(_0x5a330d['newRange']){const _0x36e765=_0x2cfdb7['getFirstRange']()['getContainedElement']();if(_0x2bdf52['isBlockImage'](_0x36e765))continue;_0x37b1e5['discardSuggestion'](_0x2cfdb7),_0x4cc3b1=!0x0;}}if('insertion'==_0x254bb2&&'imageCaption'==_0x36110a&&!_0x5a330d['newRange']){const _0x5de14d=_0x37b1e5['getSuggestion'](_0x167718);_0x5de14d['next']&&_0x5de14d['next']['isInContent']&&(_0x37b1e5['discardSuggestion'](_0x5de14d['next']),_0x4cc3b1=!0x0);}}}return _0x4cc3b1;}),this['_registerLegacyDescription'](_0x45a4fc);}['_registerLegacyDescription'](_0x3f464c){const _0x3612e1=this['editor'],_0xcba286=_0x3612e1['locale'];_0x3612e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17f52e=>{if('formatBlock'!=_0x17f52e['type']&&'formatInline'!=_0x17f52e['type'])return;const {data:_0x2d0fb5}=_0x17f52e;if(!_0x2d0fb5||'imageStyle'!=_0x2d0fb5['commandName'])return;const _0x97849=_0x2d0fb5['commandParams'][0x0]['value'];return _0x3f60a7('side'===_0x97849?o(_0xcba286,'FORMAT_SIDE_IMAGE'):_0x3f464c[_0x97849]||_0x97849);function _0x3f60a7(_0x445c4c){return{'type':'format','content':o(_0xcba286,'*Format:*\x20%0',_0x445c4c)};}});}}class rt extends _0x275754{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1efd80){super(_0x1efd80),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3a5c62=this['editor'],_0x16cff3=_0x3a5c62['commands']['get']('importWord'),_0xdf6f68=_0x3a5c62['commands']['get']('trackChanges');_0x16cff3&&(_0x16cff3['on']('execute',(_0x116ddc,[,_0x3c1d2f])=>{this['_trackChangesValueDuringImport']=_0xdf6f68['value'],_0x3c1d2f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x16cff3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x16cff3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xdf6f68['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3a5c62['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4a8c2e,_0x5ad4a7){const {suggestions:_0x160126}=_0x5ad4a7,_0xc113=this['editor']['commands']['get']('trackChanges'),_0x413c5a=_0xc113['value'];this['_trackChangesValueDuringImport']!==_0x413c5a&&(_0xc113['execute'](),this['_trackChangesExecuted']=!0x0),_0x160126&&_0x160126['forEach'](({id:_0x14f48e,type:_0x1863be,author:_0x35df02,created_at:_0x12b54c})=>{const _0x449c9e={'id':_0x14f48e,'type':_0x1863be,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x35df02,'createdAt':_0x12b54c?new Date(_0x12b54c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x449c9e);});}}class at extends _0x275754{['afterInit'](){const _0x347fc6=this['editor'],_0x5b817b=_0x347fc6['plugins']['get']('TrackChangesEditing');if(_0x347fc6['plugins']['has']('IndentEditing')&&(_0x5b817b['enableCommand']('indent'),_0x5b817b['enableCommand']('outdent')),_0x347fc6['plugins']['has']('IndentBlock')){for(const _0x413971 of['indentBlock','outdentBlock'])_0x5b817b['enableDefaultAttributesIntegration'](_0x413971);}const _0x2bfa82=_0x347fc6['locale'];_0x5b817b['registerBlockAttribute']('blockIndent'),_0x5b817b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2bfa82,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xca4f17=this['editor'],_0x164937=_0xca4f17['locale'],_0xc76179=_0xca4f17['plugins']['get']('TrackChangesEditing');_0xc76179['descriptionFactory']['registerDescriptionCallback'](_0x3bebc6=>{if('formatBlock'!=_0x3bebc6['type'])return;const {data:_0x5482a0}=_0x3bebc6;if(!_0x5482a0)return;if('indentBlock'!=_0x5482a0['commandName']&&'outdentBlock'!=_0x5482a0['commandName'])return;const _0x40084e=_0x3bebc6['getItems']()[0x0],_0xc29d51=_0xc76179['descriptionFactory']['getItemLabel'](_0x40084e);return'indentBlock'==_0x5482a0['commandName']?{'type':'format','content':o(_0x164937,'*Indent:*\x20%0',_0xc29d51)}:'outdentBlock'==_0x5482a0['commandName']?{'type':'format','content':o(_0x164937,'*Outdent:*\x20%0',_0xc29d51)}:void 0x0;});}}class ct extends _0x275754{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x275754{['afterInit'](){const _0x2fbac4=this['editor'];if(!_0x2fbac4['plugins']['has']('LinkEditing'))return;const _0x5317f2=_0x2fbac4['plugins']['get']('TrackChangesEditing'),_0x467fc0=_0x2fbac4['commands']['get']('link');_0x5317f2['enableDefaultAttributesIntegration']('link'),_0x5317f2['enableDefaultAttributesIntegration']('unlink'),_0x5317f2['registerInlineAttribute']('linkHref');for(const _0x1ded16 of _0x467fc0['manualDecorators'])_0x5317f2['registerInlineAttribute'](_0x1ded16['id']),_0x5317f2['descriptionFactory']['registerAttributeLabel'](_0x1ded16['id'],'link\x20('+_0x1ded16['label']['toLowerCase']()+')');_0x5317f2['descriptionFactory']['registerDescriptionCallback'](_0x37b9b9=>{if('attribute'!=_0x37b9b9['type'])return;const {data:_0x46325a}=_0x37b9b9;if(!_0x46325a||'linkHref'!=_0x46325a['key'])return;const _0x5087c4=_0x46325a['newValue'],_0x426530=_0x2fbac4['locale'];return{'type':'format','content':null==_0x5087c4?o(_0x426530,'*Remove\x20link*'):o(_0x426530,'*Set\x20link:*\x20%0','\x22'+_0x5087c4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x467a0c=this['editor'],_0x5e2c54=_0x467a0c['locale'];_0x467a0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3758ef=>{if('formatInline'!=_0x3758ef['type'])return;const {data:_0x12da60}=_0x3758ef;if(_0x12da60){if('link'==_0x12da60['commandName']){const _0x12bfbe=_0x12da60['commandParams'][0x0];return{'type':'format','content':o(_0x5e2c54,'*Set\x20link:*\x20%0','\x22'+_0x12bfbe+'\x22')};}return'unlink'==_0x12da60['commandName']?{'type':'format','content':o(_0x5e2c54,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x275754{['afterInit'](){const _0x21af3f=this['editor'],_0x155f95=_0x21af3f['locale'];if(!_0x21af3f['plugins']['has']('LegacyListEditing'))return;const _0x3f0c10=_0x21af3f['plugins']['get']('TrackChangesEditing'),_0x1465d8=_0x21af3f['plugins']['has']('LegacyTodoListEditing');function _0x1f5617(_0x6ff435){return()=>{const _0x3df826=_0x21af3f['model']['document']['selection'],_0x233fc4=_0x21af3f['commands']['get'](_0x6ff435);if(_0x233fc4['value'])return void _0x21af3f['execute']('paragraph',{});const _0x4062d2=_0x6ff435['slice'](0x0,-0x4),_0x32a7c1=function(_0x4c8fbf,_0x452a39,_0x5c8857){let _0x3f37ab=Array['from'](_0x4c8fbf)['filter'](_0x52ef01=>function(_0x69fcc,_0x5e4dca){return _0x5e4dca['checkChild'](_0x69fcc['parent'],'listItem')&&!_0x5e4dca['isObject'](_0x69fcc);}(_0x52ef01,_0x5c8857));_0x3f37ab=_0x3f37ab['filter'](_0xc2b9cc=>!_0xc2b9cc['is']('element','listItem')||_0xc2b9cc['getAttribute']('listType')!=_0x452a39);const _0x421b76=new Set();for(const _0x394ad9 of _0x3f37ab)_0x394ad9['is']('element','listItem')?_0x421b76['add'](Le(_0x394ad9)):_0x421b76['add'](_0x394ad9);return Array['from'](_0x421b76);}(_0x3df826['getSelectedBlocks'](),_0x4062d2,_0x21af3f['model']['schema']);_0x21af3f['model']['change'](()=>{for(const _0xd4cd21 of _0x32a7c1)_0x3f0c10['markBlockFormat'](_0xd4cd21,{'commandName':_0x6ff435,'commandParams':[{'forceValue':!_0x233fc4['value']}],'formatGroupId':'blockName'},Ee(_0xd4cd21));});};}function _0x1f2e15(_0x1dafcf){return()=>{const _0x5493a7=function(_0x3936fd){let _0x494905=Array['from'](_0x3936fd);const _0x47b64b=_0x494905['findIndex'](_0x5e9daf=>'listItem'!=_0x5e9daf['name']);return _0x47b64b>-0x1&&(_0x494905=_0x494905['slice'](0x0,_0x47b64b)),_0x494905;}(_0x21af3f['model']['document']['selection']['getSelectedBlocks']()),_0x3d4b74=_0x21af3f['model']['createRange'](_0x21af3f['model']['createPositionAt'](_0x5493a7[0x0],'before'),_0x21af3f['model']['createPositionAt'](_0x5493a7[_0x5493a7['length']-0x1],'end'));_0x21af3f['model']['change'](()=>{_0x3f0c10['markBlockFormat'](_0x3d4b74,{'commandName':_0x1dafcf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x155953){const _0x47b95f=new Set();for(const _0x184aaf of _0x155953){let _0x253c59=_0x184aaf['nextSibling'];for(;_0x253c59&&_0x253c59['getAttribute']('listIndent')>_0x184aaf['getAttribute']('listIndent');)_0x47b95f['add'](_0x253c59),_0x253c59=_0x253c59['nextSibling'];}return Array['from'](_0x47b95f);}(_0x5493a7));});};}_0x3f0c10['enableCommand']('numberedList',_0x1f5617('numberedList')),_0x3f0c10['enableCommand']('bulletedList',_0x1f5617('bulletedList')),_0x1465d8&&_0x3f0c10['enableCommand']('todoList',_0x1f5617('todoList')),_0x3f0c10['enableCommand']('indentList',_0x1f2e15('indentList')),_0x3f0c10['enableCommand']('outdentList',_0x1f2e15('outdentList')),_0x1465d8&&_0x3f0c10['enableCommand']('checkTodoList',()=>{const _0x4f63a7=_0x21af3f['commands']['get']('checkTodoList'),_0xe09404=Array['from'](_0x4f63a7['_selectedElements']);_0xe09404['filter'](_0x4b8809=>_0x4b8809['getAttribute']('todoListChecked')!=_0x4f63a7['value']),_0x21af3f['model']['change'](()=>{for(const _0x5bfb17 of _0xe09404)_0x3f0c10['markBlockFormat'](_0x5bfb17,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4f63a7['value']}]});});}),_0x3f0c10['descriptionFactory']['registerElementLabel']('listItem',_0x2ce841=>o(_0x155f95,'ELEMENT_LIST_ITEM',_0x2ce841)),_0x3f0c10['descriptionFactory']['registerDescriptionCallback'](_0x4214bb=>{if('formatBlock'!=_0x4214bb['type']&&'formatInline'!=_0x4214bb['type'])return;const {data:_0x26dc24}=_0x4214bb;if(_0x26dc24){if('numberedList'==_0x26dc24['commandName']||'bulletedList'==_0x26dc24['commandName']||'todoList'==_0x26dc24['commandName'])switch(_0x26dc24['commandName']['replace']('List','')){case'bulleted':return _0x9d5a1a(o(_0x155f95,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9d5a1a(o(_0x155f95,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9d5a1a(o(_0x155f95,'ELEMENT_TODO_LIST'));}if('indentList'==_0x26dc24['commandName'])return{'type':'format','content':o(_0x155f95,'*Indent:*\x20%0',o(_0x155f95,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x26dc24['commandName'])return{'type':'format','content':o(_0x155f95,'*Outdent:*\x20%0',o(_0x155f95,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x26dc24['commandName'])return _0x26dc24['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x155f95,'*Check\x20item*')}:{'type':'format','content':o(_0x155f95,'*Uncheck\x20item*')};}function _0x9d5a1a(_0x12d137){return{'type':'format','content':o(_0x155f95,'*Change\x20to:*\x20%0',_0x12d137)};}});}}function Le(_0x2f98d7){const _0x3d80de=_0x2f98d7['getAttribute']('listIndent');if(0x0==_0x3d80de)return _0x2f98d7;let _0x26387c=_0x2f98d7;for(;_0x2f98d7['previousSibling']&&_0x2f98d7['previousSibling']['is']('element','listItem');){const _0x1bd886=_0x2f98d7['previousSibling']['getAttribute']('listIndent');if(_0x1bd886==_0x3d80de)_0x26387c=_0x2f98d7['previousSibling'];else{if(_0x1bd886<_0x3d80de)break;}_0x2f98d7=_0x2f98d7['previousSibling'];}return _0x26387c;}function Ee(_0x210ece){const _0x3e4925=[];if(_0x210ece['is']('element','listItem')&&_0x210ece['getAttribute']('listIndent')>0x0){let _0x37879f=_0x210ece['nextSibling'];for(;_0x37879f&&'listItem'==_0x37879f['name']&&_0x37879f['getAttribute']('listIndent')==_0x210ece['getAttribute']('listIndent');)_0x3e4925['push'](_0x37879f),_0x37879f=_0x37879f['nextSibling'];}return _0x3e4925;}class ht extends _0x275754{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x239c06=this['editor']['config']['get']('list.properties'),_0x4053ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x239c06['styles']&&_0x4053ed['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x239c06['reversed']&&_0x4053ed['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x239c06['startIndex']&&_0x4053ed['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4053ed['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x162c3c,_0x1568aa={}){const _0x2b0ed8=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac1b97=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2b0ed8['markMultiRangeBlockFormat'](_0xac1b97,{'commandName':'listStyle','commandParams':[{'type':_0x1568aa['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5e7cf2,_0x51adb8={}){const _0x50a611=this['editor']['plugins']['get']('TrackChangesEditing'),_0x801f7=this['_getSuggestionBlocks'](_0x6b17aa=>_0x6b17aa['is']('element','listItem')&&'numbered'===_0x6b17aa['getAttribute']('listType'));if(_0x801f7['length']<0x1)return;const _0x42ab4a=_0x801f7['map'](_0x44ae4f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44ae4f,'before'),this['editor']['model']['createPositionAt'](_0x44ae4f,0x0)));this['editor']['model']['change'](()=>{_0x50a611['markMultiRangeBlockFormat'](_0x42ab4a,{'commandName':'listReversed','commandParams':[{'reversed':_0x51adb8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3529f1,_0x5448ba={}){const _0x3aa994=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e11d0=this['_getSuggestionBlocks'](_0x1a993f=>_0x1a993f['is']('element','listItem')&&'numbered'===_0x1a993f['getAttribute']('listType'));if(_0x1e11d0['length']<0x1)return;const _0x286fdd=_0x1e11d0['map'](_0x3b19c0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b19c0,'before'),this['editor']['model']['createPositionAt'](_0x3b19c0,0x0)));this['editor']['model']['change'](()=>{_0x3aa994['markMultiRangeBlockFormat'](_0x286fdd,{'commandName':'listStart','commandParams':[{'startIndex':_0x5448ba['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x13aa63){if('formatBlock'!=_0x13aa63['type']&&'formatInline'!=_0x13aa63['type'])return;const _0x2f03fc=this['editor']['locale'],{data:_0x19ff43}=_0x13aa63;if(!_0x19ff43)return;let _0x12ab91,_0x201df0;switch(_0x19ff43['commandName']){case'listStyle':_0x12ab91='*Change\x20to:*\x20%0',_0x201df0={'type':'format','content':o(_0x2f03fc,_0x12ab91,o(_0x2f03fc,this['_getTranslationKeyForListStyle'](_0x19ff43['commandParams'][0x0]['type'])))};break;case'listReversed':_0x12ab91=_0x19ff43['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x201df0={'type':'format','content':o(_0x2f03fc,_0x12ab91)};break;case'listStart':_0x12ab91='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x201df0={'type':'format','content':o(_0x2f03fc,_0x12ab91,_0x19ff43['commandParams'][0x0]['startIndex'])};}return _0x201df0;}['_getSuggestionBlocksForListStyle'](){const _0x5d0dfb=this['editor']['plugins']['get']('LegacyListUtils');let _0x8124d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x8124d[0x0]?.['is']('element','listItem')&&_0x8124d['unshift'](..._0x5d0dfb['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x8124d[_0x8124d['length']-0x1]?.['is']('element','listItem')&&_0x8124d['push'](..._0x5d0dfb['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x8124d=[...new Set(_0x8124d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x8124d=_0x8124d['filter'](_0x508b35=>_0x508b35['is']('element','listItem'))),_0x8124d;}['_getSuggestionBlocks'](_0x4b9a11){const _0x31df58=this['editor']['plugins']['get']('LegacyListUtils');let _0x31dff5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4b9a11)['map'](_0x5d507d=>{const _0x50ca28=this['editor']['model']['createPositionAt'](_0x5d507d,0x0);return[..._0x31df58['getSiblingNodes'](_0x50ca28,'backward'),..._0x31df58['getSiblingNodes'](_0x50ca28,'forward')];})['flat']();return _0x31dff5=[...new Set(_0x31dff5)],_0x31dff5;}['_getTranslationKeyForListStyle'](_0x88e22d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x88e22d)||'default')['toUpperCase']()+'_LIST_'+_0x88e22d['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x275754{['afterInit'](){const _0x35d946=this['editor'];if(!_0x35d946['plugins']['has']('MediaEmbedEditing'))return;const _0x5f539d=_0x35d946['plugins']['get']('TrackChangesEditing'),_0x20ca9e=_0x35d946['locale'];_0x5f539d['enableCommand']('mediaEmbed'),_0x5f539d['descriptionFactory']['registerElementLabel']('media',_0x11e8ad=>o(_0x20ca9e,'ELEMENT_MEDIA',_0x11e8ad)),_0x35d946['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x49d6cf,{writer:_0xa33240,options:_0x503cb3})=>{if(_0x503cb3['showSuggestionHighlights'])return _0xa33240['createEmptyElement']('div');},'converterPriority':'high'}),_0x35d946['data']['downcastDispatcher']['on']('attribute:url:media',(_0x27ac8f,_0x27e56c,_0x7c163)=>{_0x7c163['options']['showSuggestionHighlights']&&_0x27ac8f['stop']();},{'priority':'high'});}}class lt extends _0x275754{['afterInit'](){const _0x5bd7b6=this['editor'];_0x5bd7b6['plugins']['has']('MentionEditing')&&_0x5bd7b6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x275754{['afterInit'](){const _0x4dc292=this['editor'];if(!_0x4dc292['plugins']['has']('MergeFieldsEditing'))return;const _0x85800f=_0x4dc292['plugins']['get']('TrackChangesEditing'),_0x619f5f=_0x4dc292['locale'];_0x85800f['enableCommand']('insertMergeField'),_0x85800f['enableCommand']('insertMergeFieldBlock'),_0x85800f['enableCommand']('insertMergeFieldImage'),_0x85800f['descriptionFactory']['registerElementLabel']('mergeField',_0x2df007=>o(_0x619f5f,'ELEMENT_MERGE_FIELD',_0x2df007)),_0x85800f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4205da=>o(_0x619f5f,'ELEMENT_MERGE_FIELD',_0x4205da)),_0x85800f['descriptionFactory']['registerDescriptionCallback'](_0x31756e=>{if('insertion'!=_0x31756e['type']&&'deletion'!=_0x31756e['type'])return;const _0x40992e=_0x31756e['getContainedElement']();if(null==_0x40992e)return;const _0x40e70a=_0x4dc292['plugins']['get']('MergeFieldsEditing');let _0x84664e;switch(_0x40e70a['getMergeFieldType'](_0x40992e)){case null:return;case'image':{const _0x697b52=_0x40e70a['unwrapAffixes'](_0x40992e['getAttribute']('src'));_0x84664e=_0x40e70a['getLabel'](_0x697b52)||_0x697b52;break;}default:{const _0x5ea8ce=_0x40992e['getAttribute']('id');_0x84664e=_0x40e70a['getLabel'](_0x5ea8ce)||_0x5ea8ce;break;}}return'insertion'==_0x31756e['type']?{'type':'insertion','content':o(_0x619f5f,'*Insert:*\x20%0','\x22'+_0x84664e+'\x22\x20'+o(_0x619f5f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x619f5f,'*Remove:*\x20%0','\x22'+_0x84664e+'\x22\x20'+o(_0x619f5f,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x275754{['afterInit'](){const _0x108dff=this['editor'],_0x2c87ad=_0x108dff['plugins']['get']('TrackChangesEditing');_0x108dff['plugins']['has']('MultiLevelList')&&(_0x2c87ad['enableDefaultAttributesIntegration']('multiLevelList'),_0x2c87ad['registerBlockAttribute']('listMarkerStyle'),_0x2c87ad['descriptionFactory']['registerDescriptionCallback'](_0x46b17d=>this['handleDescriptions'](_0x46b17d)));}['handleDescriptions'](_0x4b6b00){const _0x43fef9=this['editor']['locale'],{data:_0x31d53c}=_0x4b6b00,_0x5dac56={'type':'format','content':''};if(_0x31d53c&&'listMarkerStyle'==_0x31d53c['key']){if(!_0x31d53c['oldValue'])return{'type':'format','content':o(_0x43fef9,'*Set\x20format:*\x20%0',o(_0x43fef9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31d53c['newValue']+')'};if(!_0x31d53c['newValue']){let _0x107f8c=_0x4b6b00['head'];for(;_0x107f8c;){if(_0x107f8c['data']&&'listType'==_0x107f8c['data']['key']&&_0x107f8c['data']['newValue'])return _0x5dac56;_0x107f8c=_0x107f8c['next'];}return{'type':'format','content':o(_0x43fef9,'*Remove\x20format:*\x20%0',o(_0x43fef9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31d53c['oldValue']+')'};}}}}class pt extends _0x275754{['afterInit'](){const _0x20f72f=this['editor'];if(!_0x20f72f['plugins']['has']('PageBreakEditing'))return;_0x20f72f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x54f437=_0x20f72f['plugins']['get']('TrackChangesEditing'),_0x3a2dd2=_0x20f72f['locale'];_0x54f437['descriptionFactory']['registerElementLabel']('pageBreak',_0x3ec99e=>o(_0x3a2dd2,'ELEMENT_PAGE_BREAK',_0x3ec99e));}}class kt extends _0x275754{['afterInit'](){const _0x129904=this['editor'];if(!_0x129904['plugins']['has']('Paragraph'))return;const _0x3fc281=_0x129904['locale'],_0x538d9f=_0x129904['plugins']['get']('TrackChangesEditing');_0x538d9f['descriptionFactory']['registerElementLabel']('paragraph',_0x13cf71=>o(_0x3fc281,'ELEMENT_PARAGRAPH',_0x13cf71)),_0x538d9f['enableDefaultAttributesIntegration']('paragraph'),_0x538d9f['enableCommand']('insertParagraph'),_0x129904['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x129904),{'priority':'highest'}),_0x129904['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b45bf,_0x3e9d5f,_0x423a01)=>{_0x423a01['options']['showSuggestionHighlights']&&nr(_0x129904,{'showActiveMarker':!0x1})(_0x2b45bf,_0x3e9d5f,_0x423a01);},{'priority':'highest'});const _0xac7140=_0x538d9f['descriptionFactory'];_0xac7140['registerDescriptionCallback'](_0x5b3d51=>{if('insertion'!==_0x5b3d51['type'])return;const {start:_0x2a7ade,end:_0x278aa5}=_0x5b3d51['getFirstRange']();if(!_0x2a7ade['isTouching'](_0x278aa5)||!_0x2a7ade['nodeAfter'])return;const _0x520b2d=_0x129904['model']['schema'],_0x316dcc=_0x2a7ade['nodeAfter'];return _0x520b2d['isBlock'](_0x316dcc)&&!_0x520b2d['isLimit'](_0x316dcc)&&_0x520b2d['checkChild'](_0x316dcc,'$text')?{'type':'insertion','content':o(_0x3fc281,'*Insert:*\x20%0',_0xac7140['getItemLabel'](_0x316dcc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4964f7=this['editor'],_0x1e84c9=_0x4964f7['locale'];_0x4964f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51deed=>{if('formatBlock'!=_0x51deed['type'])return;const {data:_0x59e94f}=_0x51deed;return _0x59e94f&&'paragraph'==_0x59e94f['commandName']?{'type':'format','content':o(_0x1e84c9,'*Change\x20to:*\x20%0',o(_0x1e84c9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3df502,{showActiveMarker:_0x2262f5=!0x0}={}){return(_0x7cdd89,_0x41be3e,_0x45cf0d)=>{const _0x343a20=_0x3df502['plugins']['get']('TrackChangesEditing'),_0x13e19d=_0x41be3e['markerRange']['start'],_0x4572fa=_0x41be3e['markerRange']['end'],_0x1803b2=_0x3df502['model']['schema'];if(!_0x13e19d['isTouching'](_0x4572fa)||!_0x13e19d['nodeAfter'])return;const _0x5b2058=_0x13e19d['nodeAfter'];if(_0x1803b2['isBlock'](_0x5b2058)&&!_0x1803b2['isLimit'](_0x5b2058)&&_0x1803b2['checkChild'](_0x5b2058,'$text')){if(!_0x45cf0d['consumable']['consume'](_0x41be3e['markerRange'],_0x7cdd89['name']))return;const {id:_0x40f0ae,authorId:_0x3ce547}=_0x343a20['_splitMarkerName'](_0x41be3e['markerName']),_0x50ea99=_0x45cf0d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x40f0ae,'data-author-id':_0x3ce547}),_0x320f51=_0x45cf0d['mapper']['toViewPosition'](_0x4572fa);_0x2262f5&&_0x343a20['activeMarkers']['includes'](_0x41be3e['markerName'])&&_0x45cf0d['writer']['addClass']('ck-suggestion-marker--active',_0x50ea99),_0x45cf0d['writer']['insert'](_0x320f51,_0x50ea99),_0x45cf0d['mapper']['bindElementToMarker'](_0x50ea99,_0x41be3e['markerName']);}};}class wt extends _0x275754{['afterInit'](){const _0x5bc83b=this['editor'];_0x5bc83b['commands']['get']('replaceSource')&&_0x5bc83b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x275754{['afterInit'](){const _0x5988e7=this['editor'];if(!_0x5988e7['plugins']['has']('RemoveFormatEditing'))return;_0x5988e7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c49c3=this['editor'];_0x1c49c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x314b48=>{if('formatBlock'!=_0x314b48['type']&&'formatInline'!=_0x314b48['type'])return;const {data:_0x316cbe}=_0x314b48;return _0x316cbe&&'removeFormat'==_0x316cbe['commandName']?{'type':'format','content':o(_0x1c49c3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x275754{['afterInit'](){const _0x165bdc=this['editor'];if(!_0x165bdc['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1260d7=_0x165bdc['plugins']['get']('TrackChangesEditing');_0x1260d7['enableCommand']('goToPreviousRestrictedEditingException'),_0x1260d7['enableCommand']('goToNextRestrictedEditingException');const _0xceac5e=_0x165bdc['plugins']['get']('RestrictedEditingModeEditing');_0xceac5e['enableCommand']('trackChanges'),_0xceac5e['enableCommand']('acceptSuggestion'),_0xceac5e['enableCommand']('discardSuggestion'),_0xceac5e['enableCommand']('acceptAllSuggestions'),_0xceac5e['enableCommand']('discardAllSuggestions'),_0xceac5e['enableCommand']('acceptSelectedSuggestions'),_0xceac5e['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x275754{['afterInit'](){const _0x4931d6=this['editor'];if(!_0x4931d6['plugins']['has']('ShiftEnter'))return;const _0x4f49e7=_0x4931d6['plugins']['get']('TrackChangesEditing');_0x4f49e7['enableCommand']('shiftEnter'),_0x4931d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4931d6),{'priority':'high'}),_0x4931d6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4931d6),{'priority':'high'}),_0x4931d6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3478a4,_0x19f208,_0x8aefdc)=>{_0x8aefdc['options']['showSuggestionHighlights']&&je(_0x4931d6,{'showActiveMarker':!0x1})(_0x3478a4,_0x19f208,_0x8aefdc);}),_0x4f49e7['descriptionFactory']['registerElementLabel']('softBreak',_0x401ab1=>o(_0x4931d6['locale'],'ELEMENT_LINE_BREAK',_0x401ab1));}}function je(_0x32ffce,{showActiveMarker:_0x26508b=!0x0}={}){return(_0x59adde,_0x285de3,_0x60a0db)=>{const _0x1bae02=_0x32ffce['plugins']['get']('TrackChangesEditing');if(!_0x60a0db['consumable']['test'](_0x285de3['markerRange'],_0x59adde['name']))return;const _0x5f242a=_0x32ffce['model'];for(const _0x44d0e4 of _0x285de3['markerRange']['getItems']()){if(!_0x44d0e4['is']('element','softBreak'))continue;const _0x2c2239='deletion'==_0x285de3['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2021bb,authorId:_0x5eaa60}=_0x1bae02['_splitMarkerName'](_0x285de3['markerName']),_0x5eaebd=_0x60a0db['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c2239,'data-suggestion':_0x2021bb,'data-author-id':_0x5eaa60}),_0x487875=_0x60a0db['mapper']['toViewPosition'](_0x5f242a['createPositionBefore'](_0x44d0e4));_0x26508b&&_0x1bae02['activeMarkers']['includes'](_0x285de3['markerName'])&&_0x60a0db['writer']['addClass']('ck-suggestion-marker--active',_0x5eaebd),_0x60a0db['writer']['insert'](_0x487875,_0x5eaebd),_0x60a0db['mapper']['bindElementToMarker'](_0x5eaebd,_0x285de3['markerName']);}};}class St extends _0x275754{['afterInit'](){const _0x4ef206=this['editor'],_0x232d4e=_0x4ef206['model'],_0x745360=_0x4ef206['locale'];if(!_0x4ef206['plugins']['has']('StandardEditingModeEditing'))return;const _0x6e1e0d=_0x4ef206['plugins']['get']('TrackChangesEditing'),_0x39c59='restrictedEditingException',_0x569392=_0x4ef206['commands']['get'](_0x39c59);_0x6e1e0d['enableCommand'](_0x39c59,(_0x3cf45d,_0x46a091={})=>{const _0xa9824d=_0x232d4e['document']['selection'];if(_0xa9824d['isCollapsed'])return void _0x3cf45d(_0x46a091);const _0x4975c7=void 0x0!==_0x46a091['forceValue']?_0x46a091['forceValue']:!_0x569392['value'];_0x232d4e['change'](()=>{const _0x414fad=Array['from'](_0xa9824d['getRanges']());for(const _0xbc205e of _0x414fad){const _0x52e4f8=_0x4975c7?[_0xbc205e]:io(_0x39c59,_0xbc205e,_0x232d4e);for(const _0x5614e7 of _0x52e4f8)_0x6e1e0d['markInlineFormat'](_0x5614e7,{'commandName':_0x39c59,'commandParams':[{'forceValue':_0x4975c7}]});}});}),_0x6e1e0d['descriptionFactory']['registerDescriptionCallback'](_0x5ea9e5=>{if('formatBlock'!=_0x5ea9e5['type']&&'formatInline'!=_0x5ea9e5['type'])return;const {data:_0xa64cc}=_0x5ea9e5;return _0xa64cc&&_0xa64cc['commandName']==_0x39c59?_0xa64cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x745360,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x745360,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x275754{['afterInit'](){const _0x1bd66e=this['editor'];if(!_0x1bd66e['plugins']['has']('Style')||!_0x1bd66e['plugins']['has']('DataSchema'))return;const _0xb7e6c2=_0x1bd66e['plugins']['get']('TrackChangesEditing'),_0x517126=_0x1bd66e['locale'],_0x1d3b1b=_0x1bd66e['config']['get']('style')||{},_0x5841a6=_0x1bd66e['plugins']['get']('GeneralHtmlSupport'),_0x460af9=_0x1bd66e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1bd66e['plugins']['get']('DataSchema'),_0x1d3b1b['definitions']);_0xb7e6c2['enableDefaultAttributesIntegration']('style');const _0xd5c8d1=new Set();for(const _0x2818fd of _0x460af9['block']){const _0x43323e=_0x5841a6['getGhsAttributeNameForElement'](_0x2818fd['element']);_0xd5c8d1['add'](_0x43323e);}const _0x2aef8a=new Set();for(const _0x5d346e of _0x460af9['inline']){const _0x3d02d3=_0x5841a6['getGhsAttributeNameForElement'](_0x5d346e['element']);_0x2aef8a['add'](_0x3d02d3);for(const _0x189696 of _0x5d346e['ghsAttributes'])_0x2aef8a['add'](_0x189696);}for(const _0x4565fe of _0xd5c8d1)_0xb7e6c2['registerBlockAttribute'](_0x4565fe),_0xb7e6c2['descriptionFactory']['registerAttributeLabel'](_0x4565fe,o(_0x517126,'FORMAT_STYLE'));for(const _0x10282f of _0x2aef8a)_0xb7e6c2['registerInlineAttribute'](_0x10282f),_0xb7e6c2['descriptionFactory']['registerAttributeLabel'](_0x10282f,o(_0x517126,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb121=this['editor'],_0x438fa5=_0x4fb121['locale'];_0x4fb121['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae712=>{if('formatBlock'!=_0x4ae712['type']&&'formatInline'!=_0x4ae712['type'])return;const {data:_0x50a95b}=_0x4ae712;return _0x50a95b&&'style'===_0x50a95b['commandName']?_0x50a95b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x438fa5,'*Set\x20format:*\x20%0',_0x50a95b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x438fa5,'*Remove\x20format:*\x20%0',_0x50a95b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x275754{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5337c2){super(_0x5337c2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x34d06a=this['editor'],_0x4777c6=_0x34d06a['model']['document']['selection'];if(!_0x34d06a['plugins']['has']('TableEditing'))return;const _0x39d1dc=_0x34d06a['locale'],_0x5b4360=_0x34d06a['plugins']['get']('TrackChangesEditing'),_0x27976c=_0x34d06a['plugins']['get']('TableUtils');_0x5b4360['descriptionFactory']['registerElementLabel']('table',_0x204fd0=>o(_0x39d1dc,'ELEMENT_TABLE',_0x204fd0)),this['_setupColumnsRowsFixing'](),_0x5b4360['enableCommand']('insertTable'),_0x5b4360['enableCommand']('selectTableRow'),_0x5b4360['enableCommand']('selectTableColumn');for(const _0x361077 of['insertTableRowAbove','insertTableRowBelow']){const _0x5f37b7=_0x34d06a['commands']['get'](_0x361077);_0x5b4360['enableCommand'](_0x361077,_0x11053e=>{_0x34d06a['model']['change'](_0x34116d=>{_0x11053e();const _0x3111fd='above'===_0x5f37b7['order'],_0x345024=_0x27976c['getSelectionAffectedTableCells'](_0x4777c6),_0x31cc3e=_0x27976c['getRowIndexes'](_0x345024),_0x265bda=_0x3111fd?_0x31cc3e['first']-0x1:_0x31cc3e['last']+0x1,_0x2112cf=_0x345024[0x0]['findAncestor']('table'),_0x27e37f=_0x27976c['createTableWalker'](_0x2112cf,{'startRow':_0x265bda,'endRow':_0x265bda}),_0x2aa4ec=Array['from'](_0x27e37f)['map'](_0x3a9561=>_0x34116d['createRangeOn'](_0x3a9561['cell']));_0x5b4360['markMultiRangeInsertion'](_0x2aa4ec,'tableRow');});});}for(const _0x59f5be of['insertTableColumnLeft','insertTableColumnRight']){const _0x45835a=_0x34d06a['commands']['get'](_0x59f5be);_0x5b4360['enableCommand'](_0x59f5be,_0xc33731=>{_0x34d06a['model']['change'](_0x598cda=>{_0xc33731();const _0x12d695='left'===_0x45835a['order'],_0x39244f=_0x27976c['getSelectionAffectedTableCells'](_0x4777c6),_0xd4c2ca=_0x27976c['getColumnIndexes'](_0x39244f),_0x31cb7b=_0x12d695?_0xd4c2ca['first']-0x1:_0xd4c2ca['last']+0x1,_0x182853=_0x39244f[0x0]['findAncestor']('table'),_0x629f5c=_0x27976c['createTableWalker'](_0x182853,{'startRow':0x0,'column':_0x31cb7b,'includeAllSlots':!0x1}),_0x9a1c8f=Array['from'](_0x629f5c)['map'](_0x4cdd77=>_0x598cda['createRangeOn'](_0x4cdd77['cell']));_0x5b4360['markMultiRangeInsertion'](_0x9a1c8f,'tableColumn');});});}for(const _0x54e5b9 of['removeTableRow','removeTableColumn']){const _0x3660db=_0x54e5b9['substr'](0xb),_0x587a15=_0x3660db['toLowerCase'](),_0x5999ec=_0x587a15['substr'](0x0,0x3)+'span',_0x2cfa62='table'+_0x3660db,_0x5a663d='min'+_0x3660db,_0x13405a='max'+_0x3660db;_0x5b4360['enableCommand'](_0x54e5b9,()=>{_0x34d06a['model']['change'](_0x1c2e0b=>{const _0x3d7819=_0x27976c['getSelectionAffectedTableCells'](_0x4777c6),_0x2ffcbf=_0x3d7819[0x0]['findAncestor']('table');let _0x2fdda9;if('removeTableRow'==_0x54e5b9){const _0x15d23d=_0x27976c['getRowIndexes'](_0x3d7819);_0x2fdda9={'startRow':_0x15d23d['first'],'endRow':_0x15d23d['last'],'includeAllSlots':!0x0};}else{const _0x26a1d9=_0x27976c['getColumnIndexes'](_0x3d7819);_0x2fdda9={'startColumn':_0x26a1d9['first'],'endColumn':_0x26a1d9['last'],'includeAllSlots':!0x0};}const _0x3d0869=_0x27976c['createTableWalker'](_0x2ffcbf,_0x2fdda9),_0x20b49d=Array['from'](_0x3d0869)['map'](({cell:_0x2734ee})=>_0x2734ee),_0x1b2837=Ne(_0x20b49d['filter'](_0x4331b7=>_0x4331b7['hasAttribute'](_0x5999ec))),_0x59927f=Ne(_0x20b49d['filter'](_0x4d1957=>!_0x4d1957['hasAttribute'](_0x5999ec)))['map'](_0x3e7dd0=>_0x1c2e0b['createRangeOn'](_0x3e7dd0)),_0x3ee39d=_0x5b4360['markMultiRangeDeletion'](_0x59927f,_0x2cfa62);if(_0x3ee39d&&('tableRow'==_0x3ee39d['subType']||'tableColumn'==_0x3ee39d['subType'])){const _0x5ef8d8=this['_getSuggestionCoords'](_0x3ee39d);for(const _0x6ffd31 of _0x1b2837){const _0x3ab2b4=_0x1c2e0b['createRangeOn'](_0x6ffd31),_0x350d3a=_0x27976c['getCellLocation'](_0x6ffd31),_0x5b8a79=_0x6ffd31['getAttribute'](_0x5999ec)-0x1,_0x292e4d=_0x5ef8d8[_0x5a663d],_0x472e07=_0x5ef8d8[_0x13405a];_0x292e4d<=_0x350d3a[_0x587a15]&&_0x350d3a[_0x587a15]+_0x5b8a79<=_0x472e07&&_0x3ee39d['addRange'](_0x3ab2b4);}}});});}function _0xcad068(_0x4a69e9){const _0x28ab94=Array['from'](_0x4777c6['getRanges']())['map'](_0x2ae712=>_0x1eeb47['fromRange'](_0x2ae712));_0x34d06a['model']['change'](_0xef1db1=>{const _0x1d6ed2=_0xef1db1['batch'];_0x4a69e9=_0x4a69e9['filter'](_0x42e609=>'$graveyard'!=_0x42e609['root']['rootName']),_0xef1db1['setSelection'](_0x4a69e9),_0x34d06a['commands']['get']('removeTableRow')['refresh'](),_0x34d06a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x34d06a['model']['enqueueChange'](()=>{_0x34d06a['model']['enqueueChange'](_0x1d6ed2,_0x2ab58d=>{const _0x427d85=_0x28ab94['filter'](_0x406ea8=>'$graveyard'!=_0x406ea8['root']['rootName']);_0x427d85['length']>0x0&&_0x2ab58d['setSelection'](_0x427d85);for(const _0x49bbd0 of _0x28ab94)_0x49bbd0['detach']();});});});}function _0xd9f841(_0x2eb119){_0x34d06a['model']['change'](_0x18da75=>{const _0x1306e4=Array['from'](_0x4777c6['getRanges']())['map'](_0x4d4784=>_0x1eeb47['fromRange'](_0x4d4784)),_0xa4143f=[];for(const _0x3a7ad7 of _0x2eb119)for(const _0x197d59 of _0x3a7ad7['getItems']({'shallow':!0x0}))_0xa4143f['push'](_0x197d59);for(const _0x3d6a39 of _0xa4143f)'$graveyard'!=_0x3d6a39['root']['rootName']&&(_0x18da75['setSelection'](_0x18da75['createPositionAt'](_0x3d6a39,0x0)),_0x34d06a['commands']['get']('removeTableColumn')['refresh'](),_0x34d06a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x55db33=_0x1306e4['filter'](_0x59d82c=>'$graveyard'!=_0x59d82c['root']['rootName']);_0x55db33['length']>0x0&&_0x18da75['setSelection'](_0x55db33);for(const _0x2732ca of _0x1306e4)_0x2732ca['detach']();});}function _0x3bb38d(_0x35d3f8,_0xca15d9){return _0xca15d9['every'](_0x20dc2f=>_0x35d3f8['some'](_0x4e43cc=>_0x4e43cc['end']['isEqual'](_0x20dc2f['start'])||_0x20dc2f['end']['isEqual'](_0x4e43cc['start'])));}function _0x4f1a87(_0x2a9ee0,_0x2a6aae){return!_0x2a9ee0['some'](_0x311d34=>_0x2a6aae['some'](_0x486546=>_0x311d34['isIntersecting'](_0x486546)))&&_0x2a9ee0['some'](_0x3367b6=>_0x2a6aae['some'](_0x412d99=>_0x3367b6['end']['isTouching'](_0x412d99['start'])));}_0x34d06a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a6301,_0x439ce0,_0x32f958)=>{if(!_0x32f958['options']['showSuggestionHighlights'])return;const _0xe4026b=_0x439ce0['item'];if(!_0xe4026b||!_0xe4026b['is']('element','tableCell'))return;const _0x3e6a0d=_0x32f958['mapper']['toViewElement'](_0xe4026b);if(_0x3e6a0d){const {id:_0x377905,authorId:_0xd64a66}=_0x5b4360['_splitMarkerName'](_0x439ce0['markerName']);_0x1000c6(_0x3e6a0d,_0x32f958['writer'],(_0x880dc4,_0x473a05,_0x599fdb)=>{_0x599fdb['addClass'](_0x190c2b(_0x473a05['classes']),_0x880dc4),_0x599fdb['setAttribute']('data-suggestion-id',_0x377905,_0x880dc4),_0x599fdb['setAttribute']('data-author-id',_0xd64a66,_0x880dc4);},(_0x152127,_0x40fc45,_0xf1f4b9)=>{_0xf1f4b9['removeClass'](_0x190c2b(_0x40fc45['classes']),_0x152127),_0xf1f4b9['removeAttribute']('data-suggestion-id',_0x152127),_0xf1f4b9['removeAttribute']('data-author-id',_0x152127);});}},{'priority':'highest'}),_0x5b4360['descriptionFactory']['registerDescriptionCallback'](_0x5c6351=>{if('insertion'!=_0x5c6351['type']&&'deletion'!=_0x5c6351['type'])return;const _0x5df871=_0x5c6351['getContainedElement']();if(null!=_0x5df871&&_0x5df871['is']('element','table')){if('insertion'==_0x5c6351['type']){const _0x408dbb=_0x5c6351['getItems']()['filter'](_0x127b5d=>_0x127b5d['is']('$textProxy'))['map'](_0x375534=>_0x375534['data']);if(_0x408dbb['length'])return{'type':'insertion','content':o(_0x39d1dc,'*Insert:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x408dbb['join']('\x20')+'\x22'))};}if('deletion'==_0x5c6351['type']){const _0x94b987=_0x5c6351['getItems']()['filter'](_0x24b625=>_0x24b625['is']('$textProxy'))['map'](_0x443020=>_0x443020['data']);if(_0x94b987['length'])return{'type':'deletion','content':o(_0x39d1dc,'*Remove:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x94b987['join']('\x20')+'\x22'))};}}}),_0x5b4360['descriptionFactory']['registerDescriptionCallback'](_0x38c983=>{if('tableRow'==_0x38c983['subType']){const _0x270925=_0x38c983['getItems']()['filter'](_0x5c730b=>_0x5c730b['is']('$textProxy'))['map'](_0x6c7ee=>_0x6c7ee['data']),_0x18276b=this['_getSuggestionCoords'](_0x38c983),_0x2ba7e3=_0x18276b['maxRow']-_0x18276b['minRow']+0x1;if('insertion'==_0x38c983['type'])return _0x270925['length']?{'type':'insertion','content':o(_0x39d1dc,'*Insert:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ba7e3,'\x22'+_0x270925['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39d1dc,'*Insert:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_ROW',_0x2ba7e3))};if('deletion'==_0x38c983['type'])return _0x270925['length']?{'type':'deletion','content':o(_0x39d1dc,'*Remove:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ba7e3,'\x22'+_0x270925['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39d1dc,'*Remove:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_ROW',_0x2ba7e3))};}if('tableColumn'==_0x38c983['subType']){const _0x174937=_0x38c983['getItems']()['filter'](_0x347697=>_0x347697['is']('$textProxy'))['map'](_0x3455cf=>_0x3455cf['data']),_0x25c660=this['_getSuggestionCoords'](_0x38c983),_0x478bb4=_0x25c660['maxColumn']-_0x25c660['minColumn']+0x1;if('insertion'==_0x38c983['type'])return _0x174937['length']?{'type':'insertion','content':o(_0x39d1dc,'*Insert:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x478bb4,'\x22'+_0x174937['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39d1dc,'*Insert:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_COLUMN',_0x478bb4))};if('deletion'==_0x38c983['type'])return _0x174937['length']?{'type':'deletion','content':o(_0x39d1dc,'*Remove:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x478bb4,'\x22'+_0x174937['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39d1dc,'*Remove:*\x20%0',o(_0x39d1dc,'ELEMENT_TABLE_COLUMN',_0x478bb4))};}}),_0x5b4360['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xcad068),_0x5b4360['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xcad068),_0x5b4360['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xd9f841),_0x5b4360['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xd9f841),_0x5b4360['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3bb38d),_0x5b4360['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3bb38d),_0x5b4360['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4f1a87),_0x5b4360['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4f1a87);}['_acceptFormatSuggestionCallbackFactory'](){const _0x49d4a5=this['editor'],_0xe778c7=_0x49d4a5['model']['document']['selection'];return(_0x172102,_0x583c09)=>{_0x49d4a5['model']['change'](_0x2c085c=>{const {commandName:_0x10f5e4,commandParams:_0x49d4a2}=_0x583c09;let _0x59f4d8=_0x172102[0x0]['end']['nodeBefore'];_0x49d4a2&&_0x49d4a2[0x0]&&!0x1===_0x49d4a2[0x0]['forceValue']&&(_0x59f4d8=_0x172102[0x0]['start']['nodeAfter']);const _0x2ae364=_0x2c085c['createRangeIn'](_0x59f4d8);if('$graveyard'==_0x2ae364['root']['rootName'])return;const _0x409043=Array['from'](_0xe778c7['getRanges']())['map'](_0x45013f=>_0x1eeb47['fromRange'](_0x45013f));_0x2c085c['setSelection'](_0x2ae364),_0x49d4a5['commands']['get'](_0x10f5e4)['refresh'](),_0x49d4a2['push']({'forceDefaultExecution':!0x0}),_0x49d4a5['execute'](_0x10f5e4,..._0x49d4a2);const _0x35a796=_0x409043['filter'](_0x4b7f37=>'$graveyard'!=_0x4b7f37['root']['rootName']);_0x35a796['length']>0x0&&_0x2c085c['setSelection'](_0x35a796);for(const _0x2bb135 of _0x409043)_0x2bb135['detach']();});};}['_getCoordsForCells'](_0x15bba8){const _0x226d87=this['editor']['plugins']['get']('TableUtils');let _0x542230=Number['MAX_SAFE_INTEGER'],_0x1c9f2d=Number['MIN_SAFE_INTEGER'],_0x282566=Number['MAX_SAFE_INTEGER'],_0x54d334=Number['MIN_SAFE_INTEGER'];for(const _0x105342 of _0x15bba8){if('$graveyard'==_0x105342['root']['rootName'])continue;const {row:_0x5ae5d4,column:_0x50c300}=_0x226d87['getCellLocation'](_0x105342),_0xf6b69f=_0x105342['hasAttribute']('rowspan')?_0x105342['getAttribute']('rowspan')-0x1:0x0,_0x20d95f=_0x105342['hasAttribute']('colspan')?_0x105342['getAttribute']('colspan')-0x1:0x0;_0x542230=_0x5ae5d4<_0x542230?_0x5ae5d4:_0x542230,_0x1c9f2d=_0x5ae5d4+_0xf6b69f>_0x1c9f2d?_0x5ae5d4+_0xf6b69f:_0x1c9f2d,_0x282566=_0x50c300<_0x282566?_0x50c300:_0x282566,_0x54d334=_0x50c300+_0x20d95f>_0x54d334?_0x50c300+_0x20d95f:_0x54d334;}return{'minRow':_0x542230,'maxRow':_0x1c9f2d,'minColumn':_0x282566,'maxColumn':_0x54d334};}['_setupColumnsRowsFixing'](){const _0x381c65=this['editor'],_0x40f2a3=_0x381c65['plugins']['get']('TrackChangesEditing'),_0x26b74b=_0x381c65['plugins']['get']('TableUtils');_0x381c65['model']['document']['on']('change:data',()=>{const _0x5fa9f1=Array['from'](_0x381c65['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4409fd,data:_0x5e83a1}of _0x5fa9f1){const {group:_0x5e7a9d,id:_0x207475,subType:_0x4f2f47}=_0x40f2a3['_splitMarkerName'](_0x4409fd);if('suggestion'!=_0x5e7a9d)continue;if(null!=_0x5e83a1['oldRange'])continue;const _0x72daf=_0x40f2a3['getSuggestion'](_0x207475);this['_tablePostFixingSubtypes']['includes'](_0x4f2f47)&&this['_tableSuggestions']['add'](_0x72daf);}},{'priority':'low'});const _0x5225f2=(_0x1c9c07,_0x5c986c)=>{let _0xdbd595=!0x1;const _0x50a38b=_0x5c986c['createRangeOn'](_0x1c9c07),_0xe7fecf=_0x1c9c07['findAncestor']('table'),_0x55493e=_0x26b74b['getCellLocation'](_0x1c9c07);for(const _0x3eefdc of this['_tableSuggestions']){const _0x2304d2=_0x3eefdc['subType'],_0x4f2c85=_0x2304d2['startsWith']('tablePaste'),_0x57168a=_0x2304d2['substr'](_0x4f2c85?0xa:0x5),_0x4b365e=_0x57168a['toLowerCase'](),_0x508107=_0x4b365e['substr'](0x0,0x3)+'span',_0x1639dc='min'+_0x57168a,_0x346629='max'+_0x57168a;if(!_0x3eefdc['isInContent'])continue;if(_0xe7fecf!=_0x3eefdc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3eefdc['isIntersectingWithRange'](_0x50a38b))continue;const _0x5f34d1=_0x1c9c07['hasAttribute'](_0x508107)?_0x1c9c07['getAttribute'](_0x508107)-0x1:0x0,_0x481b78=this['_getSuggestionCoords'](_0x3eefdc),_0x1e81c8=_0x481b78[_0x1639dc],_0x121e30=_0x481b78[_0x346629];_0x1e81c8<=_0x55493e[_0x4b365e]&&_0x55493e[_0x4b365e]+_0x5f34d1<=_0x121e30&&(_0x3eefdc['addRange'](_0x50a38b),_0xdbd595=!0x0);}return _0xdbd595;};_0x381c65['model']['document']['registerPostFixer'](_0x2e6f36=>{let _0x654bac=!0x1;for(const _0x470463 of _0x381c65['model']['document']['differ']['getChanges']())if('insert'==_0x470463['type']){if('tableRow'==_0x470463['name']){for(const _0x47c479 of _0x470463['position']['nodeAfter']['getChildren']())_0x654bac=_0x654bac||_0x5225f2(_0x47c479,_0x2e6f36);}else'tableCell'==_0x470463['name']&&(_0x654bac=_0x654bac||_0x5225f2(_0x470463['position']['nodeAfter'],_0x2e6f36));}return _0x654bac;});}['_getSuggestionCoords'](_0x1295e6){return this['_getCoordsForCells'](_0x1295e6['getRanges']()['map'](_0x4bdc7b=>_0x4bdc7b['start']['nodeAfter']));}}function Ne(_0x3b6f33){return Array['from'](new Set(_0x3b6f33)['values']());}class _t extends _0x275754{static get['requires'](){return[At];}['afterInit'](){const _0x1db229=this['editor'],_0x575bc6=_0x1db229['model']['document']['selection'],_0x162bd0=_0x1db229['locale'];if(!_0x1db229['plugins']['has']('TableEditing'))return;const _0x5be4ca=_0x1db229['plugins']['get']('TrackChangesEditing'),_0x5232ed=_0x1db229['plugins']['get']('TableUtils'),_0x76868b=_0x1db229['plugins']['get'](At);_0x76868b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5be4ca['enableCommand']('mergeTableCells',()=>{const _0x535d82=_0x5232ed['getSelectionAffectedTableCells'](_0x1db229['model']['document']['selection']);_0x1db229['model']['change'](()=>{_0x5be4ca['markMultiRangeBlockFormat'](_0x535d82,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1db229['commands']['get']('mergeTableCells')['on']('execute',(_0x471cf4,_0x4b4c10)=>{_0x1db229['commands']['get']('trackChanges')['value']&&(_0x4b4c10['length']>0x0&&_0x4b4c10[_0x4b4c10['length']-0x1]&&_0x4b4c10[_0x4b4c10['length']-0x1]['forceDefaultExecution']||_0x5be4ca['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x471cf4['stop']());},{'priority':'highest'});for(const _0x174119 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x176aaf=_0x1db229['commands']['get'](_0x174119);_0x5be4ca['enableCommand'](_0x174119,()=>{const _0x40879b=_0x1db229['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x465aa4=>_0x465aa4['is']('element','tableCell')),_0x19bf1c=_0x176aaf['value'];_0x1db229['model']['change'](()=>{_0x5be4ca['markMultiRangeBlockFormat']([_0x40879b,_0x19bf1c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x305364 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1597a4=_0x1db229['commands']['get'](_0x305364);_0x5be4ca['enableCommand'](_0x305364,()=>{const _0x7d82fb=_0x5232ed['getSelectionAffectedTableCells'](_0x1db229['model']['document']['selection'])[0x0],_0x4c7adf=_0x7d82fb['findAncestor']('table'),{column:_0x5959de,row:_0x4e571d}=_0x5232ed['getCellLocation'](_0x7d82fb);let _0x50e51f=[];if('horizontally'==_0x1597a4['direction']){const _0x4cc539=_0x5232ed['createTableWalker'](_0x4c7adf,{'startRow':_0x4e571d,'endRow':_0x4e571d,'includeAllSlots':!0x0});_0x50e51f=Array['from'](_0x4cc539)['map'](_0x20adb0=>_0x20adb0['cell']);}else{const _0x45c369=_0x5232ed['createTableWalker'](_0x4c7adf,{'column':_0x5959de,'includeAllSlots':!0x0});_0x50e51f=Array['from'](_0x45c369)['map'](_0x1e1d09=>_0x1e1d09['cell']);}_0x1db229['model']['change'](_0x5c74c3=>{_0x5be4ca['markBlockFormat'](_0x5c74c3['createRangeOn'](_0x7d82fb),{'commandName':_0x305364,'commandParams':[]},_0x50e51f,_0x305364);});});}_0x5be4ca['descriptionFactory']['registerDescriptionCallback'](_0x27fd4d=>{if('formatBlock'!=_0x27fd4d['type']&&'formatInline'!=_0x27fd4d['type'])return;const {data:_0x566f42}=_0x27fd4d;return _0x566f42&&'mergeTableCells'==_0x566f42['commandName']?{'type':'format','content':o(_0x162bd0,'*Merge\x20cells*')}:void 0x0;}),_0x5be4ca['descriptionFactory']['registerDescriptionCallback'](_0x1e906f=>{if('formatBlock'!=_0x1e906f['type']&&'formatInline'!=_0x1e906f['type'])return;const {data:_0x2ef2b0}=_0x1e906f;return _0x2ef2b0?'splitTableCellVertically'==_0x2ef2b0['commandName']?{'type':'format','content':o(_0x162bd0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2ef2b0['commandName']?{'type':'format','content':o(_0x162bd0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x21a6fd=_0x76868b['_acceptFormatSuggestionCallbackFactory']();for(const _0x21ed33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5be4ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21ed33,'accept',_0x21a6fd);for(const _0x125694 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5be4ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x125694,'accept',_0x21a6fd);_0x5be4ca['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5b9c1d=>{_0x1db229['model']['change'](_0x5dace9=>{const _0x51bc1a=Array['from'](_0x575bc6['getRanges']())['map'](_0x59cbb9=>_0x1eeb47['fromRange'](_0x59cbb9));_0x5dace9['setSelection'](_0x5b9c1d),_0x1db229['commands']['get']('mergeTableCells')['refresh'](),_0x1db229['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x487e6f=_0x51bc1a['filter'](_0x5a490b=>'$graveyard'!=_0x5a490b['root']['rootName']);_0x487e6f['length']>0x0&&_0x5dace9['setSelection'](_0x487e6f);for(const _0x65e4c1 of _0x51bc1a)_0x65e4c1['detach']();});});for(const _0x414b86 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x6b8825=_0x1db229['commands']['get'](_0x414b86);_0x6b8825['on']('set:isEnabled',(_0x264f4c,_0x5a3408,_0x1b3d4e)=>{if(_0x1b3d4e){const _0x282688=_0x1db229['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x118ed9=>_0x118ed9['is']('element','tableCell'));this['_areMergableCells'](_0x6b8825['value'],_0x282688)||(_0x264f4c['return']=!0x1,_0x264f4c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x33c626=this['editor']['commands']['get']('mergeTableCells'),_0x48a234=this['editor']['plugins']['get']('TableUtils');if(!_0x33c626['isEnabled'])return!0x1;const _0x34300d=_0x48a234['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1c452d of _0x34300d)for(const _0x1564fd of _0x34300d)if(_0x1c452d!=_0x1564fd&&!this['_areMergableCells'](_0x1c452d,_0x1564fd))return!0x1;return!0x0;}['_areMergableCells'](_0x27bc2a,_0x2dba25){const _0x3f5da5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52349f=this['editor']['model']['createRangeOn'](_0x27bc2a),_0x14967f=this['editor']['model']['createRangeOn'](_0x2dba25),_0x315a78=new Set(),_0xe59956=new Set();for(const _0x12b712 of _0x3f5da5['getSuggestions']())if(('insertion'==_0x12b712['type']||'deletion'==_0x12b712['type']||'mergeTableCells'==_0x12b712['subType'])&&_0x12b712['isInContent']){for(const _0x8028ad of _0x12b712['getRanges']())_0x8028ad['containsRange'](_0x52349f,!0x0)&&_0x315a78['add'](_0x12b712['type']+':'+_0x12b712['author']['id']),_0x8028ad['containsRange'](_0x14967f,!0x0)&&_0xe59956['add'](_0x12b712['type']+':'+_0x12b712['author']['id']);}if(_0x315a78['size']!=_0xe59956['size'])return!0x1;for(const _0x64ab89 of _0x315a78)if(!_0xe59956['has'](_0x64ab89))return!0x1;return!0x0;}}class Ct extends _0x275754{static get['requires'](){return[At];}['afterInit'](){const _0x5b14f8=this['editor'];if(!_0x5b14f8['plugins']['has']('TableEditing'))return;const _0x4f8e07=_0x5b14f8['locale'],_0x4279b5=_0x5b14f8['plugins']['get']('TrackChangesEditing');_0x4279b5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4279b5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4279b5['registerBlockAttribute']('headingRows'),_0x4279b5['registerBlockAttribute']('headingColumns'),_0x4279b5['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4f8e07,'FORMAT_HEADER_ROW')),_0x4279b5['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4f8e07,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5e4d27=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43a747=this['editor']['plugins']['get']('TableUtils'),_0x44f80c=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2b32a3({showActiveMarker:_0x35b1bf=!0x0,setDataAttribute:_0x388746=!0x0}={}){return(_0x429c74,_0x1ab681,_0x5de092)=>{const {type:_0x1331bc,id:_0x1c2438}=_0x5e4d27['_splitMarkerName'](_0x1ab681['markerName']),_0x25cdc0=_0x5e4d27['getSuggestion'](_0x1c2438),_0x1aa9eb=_0x25cdc0['data'];if('formatBlock'!=_0x25cdc0['type']||!_0x1aa9eb||'setTableColumnHeader'!=_0x1aa9eb['commandName'])return;if(_0x1ab681['item'])return void _0x429c74['stop']();if(!_0x5de092['consumable']['consume'](_0x1ab681['markerRange'],_0x429c74['name']))return;const _0x45733c=_0x1ab681['markerRange']['start']['nodeAfter'],_0x44572c=_0x1ab681['markerRange']['end']['nodeBefore'],_0x2115be=_0x45733c['parent']['parent'],{column:_0x12b28b}=_0x43a747['getCellLocation'](_0x45733c),{column:_0x43d2dc}=_0x43a747['getCellLocation'](_0x44572c);for(let _0x260e75=_0x12b28b;_0x260e75<=_0x43d2dc;_0x260e75++){const _0xab5037=_0x43a747['createTableWalker'](_0x2115be,{'column':_0x260e75,'includeAllSlots':!0x1});for(const _0xd5df22 of _0xab5037){const _0x5a13a9=_0xd5df22['cell'],_0x166a06=_0x5de092['mapper']['toViewElement'](_0x5a13a9);_0x5de092['writer']['addClass']('ck-suggestion-marker-'+_0x1331bc,_0x166a06),_0x388746&&_0x5de092['writer']['setAttribute']('data-suggestion',_0x1c2438,_0x166a06),_0x5de092['mapper']['bindElementToMarker'](_0x166a06,_0x1ab681['markerName']),_0x35b1bf&&(_0x5e4d27['activeMarkers']['includes'](_0x1ab681['markerName'])?_0x5de092['writer']['addClass']('ck-suggestion-marker--active',_0x166a06):_0x5de092['writer']['removeClass']('ck-suggestion-marker--active',_0x166a06));}}};}_0x5e4d27['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x44f80c),_0x5e4d27['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x44f80c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2b32a3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xadbfe9,_0x12d3b7,_0x18e1a0)=>{_0x18e1a0['options']['showSuggestionHighlights']&&_0x2b32a3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xadbfe9,_0x12d3b7,_0x18e1a0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x63191,_0x10f5df,_0x52b30a)=>{const {type:_0x202e15,id:_0x59cb86}=_0x5e4d27['_splitMarkerName'](_0x10f5df['markerName']),_0xdff966=_0x5e4d27['getSuggestion'](_0x59cb86),_0x2b65ef=_0xdff966['data'];if('formatBlock'!=_0xdff966['type']||!_0x2b65ef||'setTableColumnHeader'!=_0x2b65ef['commandName'])return;const _0xc7554c=_0x52b30a['mapper']['markerNameToElements'](_0x10f5df['markerName']);if(_0xc7554c){for(const _0x8566c2 of _0xc7554c)_0x52b30a['writer']['removeClass']('ck-suggestion-marker-'+_0x202e15,_0x8566c2),_0x52b30a['writer']['removeClass']('ck-suggestion-marker--active',_0x8566c2),_0x52b30a['writer']['removeAttribute']('data-suggestion',_0x8566c2),_0x52b30a['mapper']['unbindElementFromMarkerName'](_0x8566c2,_0x10f5df['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c99ed=this['editor'],_0x136c9e=_0x2c99ed['locale'];function _0xa40be1(_0x423ab1){return{'type':'format','content':o(_0x136c9e,'*Format:*\x20%0',_0x423ab1)};}_0x2c99ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56a528=>{if('formatBlock'!=_0x56a528['type'])return;const {data:_0x1c5b34}=_0x56a528;if(_0x1c5b34){if('setTableRowHeader'==_0x1c5b34['commandName']){const _0x2ea5dc=_0x1c5b34['commandParams'][0x0]['forceValue'];return _0xa40be1(o(_0x136c9e,_0x2ea5dc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c5b34['commandName']){const _0x4bc201=_0x1c5b34['commandParams'][0x0]['forceValue'];return _0xa40be1(o(_0x136c9e,_0x4bc201?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x275754{['afterInit'](){const _0x30e045=this['editor'],_0x25fb03=_0x30e045['locale'],_0x705c03=_0x30e045['plugins']['get']('TrackChangesEditing');function _0x40b297(_0x34e7f1){return{'type':'format','content':''+o(_0x25fb03,'*Set\x20table\x20type:*\x20%0',_0x34e7f1)};}_0x30e045['plugins']['has']('TableLayout')&&(_0x705c03['enableCommand']('insertTableLayout'),_0x705c03['enableDefaultAttributesIntegration']('tableType'),_0x705c03['registerBlockAttribute']('tableType'),_0x705c03['descriptionFactory']['registerElementLabel'](_0x379782=>_0x379782['is']('element','table')&&'layout'===_0x379782['getAttribute']('tableType'),_0x5c6f51=>o(_0x25fb03,'ELEMENT_LAYOUT_TABLE',_0x5c6f51)),_0x705c03['descriptionFactory']['registerDescriptionCallback'](_0x9ab25b=>{const {data:_0x52c2d9}=_0x9ab25b;if(_0x52c2d9&&'tableType'==_0x52c2d9['key'])switch(_0x52c2d9['newValue']){case'layout':return _0x40b297(o(_0x25fb03,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x40b297(o(_0x25fb03,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x11631a=>[_0x11631a,null]));class Nt extends _0x275754{static get['requires'](){return[At];}['afterInit'](){const _0x5f5a33=this['editor'];if(!_0x5f5a33['plugins']['has']('TableClipboard'))return;const _0x5112c6=_0x5f5a33['plugins']['get']('TrackChangesEditing'),_0xc6bfc4=_0x5f5a33['plugins']['get']('TableUtils'),_0x353d59=_0x5f5a33['plugins']['get'](At),_0x169c3e=_0x5f5a33['plugins']['get']('TableClipboard'),_0xd58c1c=_0x5f5a33['plugins']['get']('TableSelection'),_0x20be58=_0x5f5a33['plugins']['get'](_0xa014e0);_0x353d59['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5f5a33['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5f5a33['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x959bdb=null,_0x3fe994=!0x1;_0x20be58['on']('contentInsertion',(_0x4288c2,_0x31ed80)=>{_0x3fe994='paste'===_0x31ed80['method'];}),_0x5f5a33['model']['on']('insertContent',(_0x3a0e98,_0x194a70)=>{if(!_0x3fe994&&null===_0xd58c1c['getSelectedTableCells']())return;const [_0x1d9661,_0x4fb6df]=_0x194a70,_0x346013=_0x194a70[_0x194a70['length']-0x1];_0x346013&&_0x346013['forceDefaultExecution']||_0x5112c6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3990b0,_0x1c1dd1,_0x5722f9,_0x3a8e45,_0x18ac20){if(_0x1c1dd1&&!_0x1c1dd1['is']('documentSelection'))return!0x1;const _0x9fbad1=_0x18ac20['getTableIfOnlyTableInContent'](_0x3990b0,_0x5722f9);if(!_0x9fbad1||!Ue(_0x9fbad1,void 0x0,_0x3a8e45))return!0x1;const _0xde9fe=_0x3a8e45['getSelectionAffectedTableCells'](_0x5722f9['document']['selection']);if(!_0xde9fe['length'])return!0x1;const _0xb76cc1=_0xde9fe[0x0]['findAncestor']('table'),_0x22462d=_0x3a8e45['getRowIndexes'](_0xde9fe),_0x251aec=_0x3a8e45['getColumnIndexes'](_0xde9fe),_0x103967={'startRow':_0x22462d['first'],'endRow':_0x22462d['last'],'startColumn':_0x251aec['first'],'endColumn':_0x251aec['last']};return 0x1==_0xde9fe['length']&&(_0x103967['endRow']+=_0x3a8e45['getRows'](_0x9fbad1)-0x1,_0x103967['endColumn']+=_0x3a8e45['getColumns'](_0x9fbad1)-0x1),Ue(_0xb76cc1,_0x103967,_0x3a8e45);}(_0x1d9661,_0x4fb6df,_0x5f5a33['model'],_0xc6bfc4,_0x169c3e)&&(_0x3a0e98['stop'](),_0x959bdb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f5a33['model']['change'](()=>{_0x5f5a33['model']['insertContent'](_0x194a70[0x0],_0x194a70[0x1],_0x194a70[0x2],{'forceDefaultExecution':!0x0});const _0x86f255=_0xd42815(),{rowInsertionRanges:_0x5de2d7,columnInsertionRanges:_0x154fd2,insertionRanges:_0x4b2801,deletionRanges:_0x2d070f,cells:_0x32d980}=_0x959bdb;_0x5de2d7['length']&&_0x5112c6['markMultiRangeInsertion'](_0x5de2d7,'tablePasteRow',{'tablePasteChainId':_0x86f255}),_0x154fd2['length']&&_0x5112c6['markMultiRangeInsertion'](_0x154fd2,'tablePasteColumn',{'tablePasteChainId':_0x86f255}),_0x4b2801['length']&&(_0x5112c6['markMultiRangeInsertion'](_0x4b2801,'tablePaste',{'tablePasteChainId':_0x86f255,'skipNestingCheck':!0x0}),_0x4b2801['forEach'](_0x511c41=>_0x511c41['detach']?.())),_0x2d070f['length']&&(_0x5112c6['markMultiRangeDeletion'](_0x2d070f,'tablePaste',{'tablePasteChainId':_0x86f255,'skipNestingCheck':!0x0}),_0x2d070f['forEach'](_0x4f19b1=>_0x4f19b1['detach']?.()));const _0x4fcb81=_0x5112c6['markMultiRangeBlockFormat'](_0x32d980['map'](({element:_0x2e63da})=>_0x2e63da),{'formatGroupId':_0xd42815()},[],'tablePasteCell',{'tablePasteChainId':_0x86f255});if(_0x4fcb81){const _0x24cad3=_0x4fcb81['getMarkers'](),_0xb5e34a=[];for(const {element:_0x3ebc48,attributes:_0x3a4fd4}of _0x32d980){if(!_0x3a4fd4)continue;const _0x452f1b=_0x5f5a33['model']['createRangeOn'](_0x3ebc48),_0xc77799=_0x24cad3['find'](_0x2ab8ce=>_0x2ab8ce['getRange']()['isEqual'](_0x452f1b));_0xc77799&&_0xb5e34a['push']([_0xc77799['name'],_0x3a4fd4]);}_0xb5e34a['length']&&_0x4fcb81['setAttribute']('markerAttributes',Object['fromEntries'](_0xb5e34a));}_0x959bdb=null;}));},{'priority':_0x49afb9['high']+0xa}),_0x20be58['on']('contentInsertion',()=>{_0x3fe994=!0x1;},{'priority':'lowest'}),_0x5f5a33['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x30d20e,_0x17a729)=>{const [_0x4e73cc,_0x142d4d,,_0x4c2bc1]=_0x17a729;if(!_0x959bdb)return;_0x30d20e['stop']();const _0x11612d=_0x4e73cc['cell'],_0x55878d=_0x142d4d,_0x46c01f=Oe(_0x11612d),_0x784037=Oe(_0x55878d);_0x30d20e['return']=_0x11612d;let _0xb7df4c=null,_0x1c8735=null;if(_0x784037||_0x46c01f){if(_0x46c01f&&!_0x784037){_0x4c2bc1['remove'](_0x11612d['getChild'](0x0));for(const _0x2bd8bd of Array['from'](_0x55878d['getChildren']()))_0x4c2bc1['insert'](_0x2bd8bd,_0x11612d,'end');const _0x5d76ed=_0x959bdb['rowInsertionIndexes']['includes'](_0x4e73cc['row']),_0x419a82=_0x959bdb['columnInsertionIndexes']['includes'](_0x4e73cc['column']);_0x5d76ed||_0x419a82||(_0xb7df4c=_0x1eeb47['fromRange'](_0x4c2bc1['createRangeIn'](_0x11612d)));}else _0x784037&&!_0x46c01f&&(_0x1c8735=_0x4c2bc1['createRangeIn'](_0x11612d));}else{const _0x283b08=_0x4c2bc1['createElement']('tableCellSuggestion'),_0x113cc6=_0x4c2bc1['createElement']('tableCellSuggestion');_0x4c2bc1['wrap'](_0x4c2bc1['createRangeIn'](_0x11612d),_0x113cc6),_0x4c2bc1['insert'](_0x283b08,_0x11612d,0x0);for(const _0x282008 of Array['from'](_0x55878d['getChildren']()))_0x4c2bc1['insert'](_0x282008,_0x283b08,'end');_0xb7df4c=_0x1eeb47['fromRange'](_0x4c2bc1['createRangeOn'](_0x283b08)),_0x1c8735=_0x1eeb47['fromRange'](_0x4c2bc1['createRangeOn'](_0x113cc6));}const _0x57f3eb=Array['from'](_0x55878d['getAttributes']())['filter'](([_0x5eb54a])=>Be['includes'](_0x5eb54a));_0x959bdb['cells']['push']({'element':_0x11612d,'attributes':_0x57f3eb['length']?Object['fromEntries'](_0x57f3eb):null}),_0xb7df4c&&_0x959bdb['insertionRanges']['push'](_0xb7df4c),_0x1c8735&&_0x959bdb['deletionRanges']['push'](_0x1c8735);},{'priority':'high'}),_0xc6bfc4['on']('insertColumns',(_0x28abd4,_0x46bd70)=>{const [_0x3fc7e8,_0x4383aa={}]=_0x46bd70;if(!_0x959bdb)return;const _0x2a6a1c=_0x4383aa['at']||0x0,_0x354bb1=_0x4383aa['columns']||0x1;_0x959bdb['columnInsertionIndexes']=new Array(_0x354bb1)['fill'](_0x2a6a1c)['map']((_0x2c6e97,_0x495056)=>_0x2c6e97+_0x495056);for(const {cell:_0x24e88}of _0xc6bfc4['createTableWalker'](_0x3fc7e8,{'startColumn':_0x2a6a1c,'endColumn':_0x2a6a1c+_0x354bb1-0x1}))_0x959bdb['columnInsertionRanges']['push'](_0x5f5a33['model']['createRangeOn'](_0x24e88));},{'priority':'low'}),_0xc6bfc4['on']('insertRows',(_0x53a3f9,_0x594d2d)=>{const [_0x3948f1,_0x2599be={}]=_0x594d2d;if(!_0x959bdb)return;const _0x58d3c5=_0x2599be['at']||0x0,_0x50c9d1=_0x2599be['rows']||0x1;_0x959bdb['rowInsertionIndexes']=new Array(_0x50c9d1)['fill'](_0x58d3c5)['map']((_0x32f29d,_0x5cb4fb)=>_0x32f29d+_0x5cb4fb);for(const {cell:_0x4fc004}of _0xc6bfc4['createTableWalker'](_0x3948f1,{'startRow':_0x58d3c5,'endRow':_0x58d3c5+_0x50c9d1-0x1}))_0x959bdb['rowInsertionRanges']['push'](_0x5f5a33['model']['createRangeOn'](_0x4fc004));},{'priority':'low'}),_0x5112c6['descriptionFactory']['registerDescriptionCallback'](_0x1d70e8=>{if(_0x1d70e8['subType']&&_0x1d70e8['subType']['startsWith']('tablePaste'))return _0x1d70e8['previous']?{}:{'type':'insertion','content':o(_0x5f5a33['locale'],'*Replace\x20table\x20cells*')};});const _0x41dbb7=()=>!0x1;for(const _0x1f7d23 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5112c6['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f7d23,'join',_0x41dbb7),_0x5112c6['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f7d23,'join',_0x41dbb7),_0x5112c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f7d23,'join',_0x41dbb7);_0x5112c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x41dbb7),_0x5112c6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x148b87,_0x3b8100,_0x1086f2)=>{const _0x17c4dd=_0x148b87['map'](_0x41ff5f=>_0x41ff5f['getContainedElement']())['filter'](_0x10c498=>_0x10c498),_0x365d48=new Map(_0x17c4dd['map'](_0x47aec8=>[_0x47aec8,null]));if(_0x959bdb){for(const {element:_0x217d23,attributes:_0x5876d3}of _0x959bdb['cells'])_0x5876d3&&_0x365d48['set'](_0x217d23,_0x5876d3);}else{if(_0x1086f2&&_0x1086f2['markerAttributes'])for(const [_0x2a584c,_0x3b0a16]of Object['entries'](_0x1086f2['markerAttributes'])){const _0x35c07a=_0x5f5a33['model']['markers']['get'](_0x2a584c),_0x2c22e4=_0x35c07a?_0x35c07a['getRange']()['getContainedElement']():null;_0x2c22e4&&_0x365d48['set'](_0x2c22e4,_0x3b0a16);}}_0x5f5a33['model']['change'](_0x4bfec8=>{for(const [_0x212cd6,_0x47945d]of _0x365d48)_0x4bfec8['setAttributes']({...xe,..._0x47945d},_0x212cd6);});});const _0x50d908=(_0x14776c,_0x4a770c)=>{_0x5112c6['_suggestionFactory']['registerCustomCallback'](_0x14776c,'tablePaste',_0x4a770c,(_0x18de1f,_0x318d32,_0x314b99)=>{_0x5f5a33['model']['change'](_0x419f09=>{const _0xed78b7=[];for(const _0x1c697f of _0x18de1f){const _0xfbc0ec=_0x1c697f['start']['nodeAfter'];_0xfbc0ec['is']('element','tableCellSuggestion')&&_0xed78b7['push'](_0xfbc0ec);}_0x5112c6['_suggestionFactory']['getSuggestionCallback'](_0x14776c,null,_0x4a770c)(_0x18de1f,_0x318d32,_0x314b99);for(const _0x52af30 of _0xed78b7)'$graveyard'!=_0x52af30['root']['rootName']&&_0x419f09['unwrap'](_0x52af30);});});};_0x50d908('insertion','accept'),_0x50d908('insertion','discard'),_0x50d908('deletion','accept'),_0x50d908('deletion','discard'),_0x5112c6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2ca8d0=>{const _0x294af6=_0x2ca8d0['map'](_0x1f2e2d=>_0x1f2e2d['getContainedElement']()),_0x56f109=_0x294af6[0x0]['findAncestor']('table'),{minRow:_0x4ce2e1,maxRow:_0x13a061}=_0x353d59['_getCoordsForCells'](_0x294af6);_0xc6bfc4['removeRows'](_0x56f109,{'at':_0x4ce2e1,'rows':_0x13a061-_0x4ce2e1+0x1});}),_0x5112c6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xb806a2=>{const _0x3e3c84=_0xb806a2['map'](_0x4e557b=>_0x4e557b['getContainedElement']()),_0x1ffb2a=_0x3e3c84[0x0]['findAncestor']('table'),{minColumn:_0x5ccd86,maxColumn:_0x4bcfd1}=_0x353d59['_getCoordsForCells'](_0x3e3c84);_0xc6bfc4['removeColumns'](_0x1ffb2a,{'at':_0x5ccd86,'columns':_0x4bcfd1-_0x5ccd86+0x1});});const _0x47033a=(_0x1496d8,_0x44b33e)=>{if(!_0x44b33e['subType']||!_0x44b33e['subType']['startsWith']('tablePaste'))return;const _0x5535a3=_0x44b33e['attributes']['tablePasteChainId'],_0xfbaa60=_0x5112c6['getSuggestions']()['filter'](_0x13a966=>_0x13a966['isInContent']&&_0x13a966['attributes']&&_0x13a966['attributes']['tablePasteChainId']==_0x5535a3);_0xfbaa60['length']&&_0x44b33e['getAllAdjacentSuggestions']()['length']!=_0xfbaa60['length']&&_0xfbaa60['reduce']((_0x2bf110,_0x18bd6e)=>(_0x2bf110['next']=_0x18bd6e,_0x18bd6e['previous']=_0x2bf110,_0x18bd6e));};function _0xb44d7d(_0xa5c3b3,_0x27a80a=!0x0){const {id:_0x5df515,authorId:_0x44955a}=_0x5112c6['_splitMarkerName'](_0xa5c3b3['markerName']),_0x34f56a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x49d79f=_0x5112c6['activeMarkers']['includes'](_0xa5c3b3['markerName']);return _0x49d79f&&_0x34f56a['push']('ck-suggestion-marker--active'),{'classes':_0x34f56a,'attributes':{'data-suggestion':_0x5df515,'data-author-id':_0x44955a},'priority':_0x49d79f&&_0x27a80a?0xbc2:0xbb8};}_0x5112c6['on']('suggestionLoaded',_0x47033a,{'priority':'high'}),_0x5112c6['on']('suggestionUnloaded',_0x47033a,{'priority':'high'}),_0x5f5a33['model']['document']['registerPostFixer'](()=>{let _0x270bac=!0x1;const _0x25f3d2=Array['from'](_0x5f5a33['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58d672,data:_0x5d92de}of _0x25f3d2){const {group:_0x3814f7,type:_0x45bc12,id:_0x41eb34}=_0x5112c6['_splitMarkerName'](_0x58d672);if('suggestion'!=_0x3814f7||'deletion'!=_0x45bc12||_0x5d92de['oldRange'])continue;if(!_0x5112c6['hasSuggestion'](_0x41eb34))continue;const _0xab8908=_0x5112c6['getSuggestion'](_0x41eb34)['getRanges'](),_0x11efcc=_0x5f5a33['plugins']['get']('Users')['me'];for(const _0x5a16e8 of _0x5112c6['getSuggestions']()){if(!_0x5a16e8['isInContent']||_0x5a16e8['author']!=_0x11efcc)continue;if('formatBlock'!=_0x5a16e8['type']||'tablePasteCell'!=_0x5a16e8['subType'])continue;if(_0x5a16e8['getRanges']()['every'](_0x38e736=>_0xab8908['some'](_0x409667=>_0x409667['containsRange'](_0x38e736,!0x0)))){for(const _0x39a1b3 of _0x5a16e8['getAllAdjacentSuggestions']())_0x39a1b3['isInContent']&&(_0x39a1b3['discard'](),_0x270bac=!0x0);}}}return _0x270bac;}),_0x5f5a33['model']['document']['registerPostFixer'](_0x175574=>{const _0x225f96=_0x5f5a33['commands']['get']('redo');if(!_0x225f96||!_0x225f96['_createdBatches']['has'](_0x175574['batch']))return!0x1;let _0x33b31b=!0x1;const _0x2a129e=_0x5f5a33['plugins']['get']('Users')['me'],_0x5cc90c=_0x5f5a33['model']['document']['differ']['getChanges'](),_0x40f7de=Array['from'](_0x5f5a33['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x158e8a,data:_0xab4f85})=>{const {group:_0x410461,subType:_0x46aeed,authorId:_0x5aa99d}=_0x5112c6['_splitMarkerName'](_0x158e8a);return'suggestion'==_0x410461&&'tablePaste'==_0x46aeed&&_0x5aa99d==_0x2a129e['id']&&!_0xab4f85['oldRange'];});for(const _0x27980e of _0x5cc90c){if('insert'!=_0x27980e['type']||'tableCellSuggestion'!=_0x27980e['name']||0x1!=_0x27980e['length'])continue;const _0x2f9ceb=_0x175574['createRange'](_0x27980e['position'],_0x27980e['position']['getShiftedBy'](0x1));if(!_0x40f7de['find'](({data:_0x1aa7f1})=>_0x1aa7f1['newRange']['isEqual'](_0x2f9ceb))){for(const {name:_0x4f9b64,data:_0x29bcfe}of _0x40f7de)if(_0x2f9ceb['containsRange'](_0x29bcfe['newRange'])){_0x175574['updateMarker'](_0x4f9b64,{'range':_0x2f9ceb}),_0x33b31b=!0x0;break;}}}return _0x33b31b;}),_0x5f5a33['model']['document']['registerPostFixer'](_0x4f5e50=>{let _0x30c7a5=!0x1;const _0x36cc23=_0x5f5a33['plugins']['get']('Users')['me'],_0xc39028=_0x5112c6['getSuggestions']()['filter'](_0x2e8b8f=>_0x2e8b8f['isInContent']&&_0x2e8b8f['author']==_0x36cc23),_0x27fff1=new Set(),_0x570ce2=new Set();for(const _0x3f2f80 of _0xc39028)if('tablePaste'==_0x3f2f80['subType'])for(const _0x2c3433 of _0x3f2f80['getMarkers']()){const _0x1287c7=_0x2c3433['getRange']()['getContainedElement']();if(_0x1287c7){if(_0x1287c7['is']('element','tableCellSuggestion')&&Oe(_0x1287c7)){_0x3f2f80['removeMarker'](_0x2c3433['name']),_0x27fff1['add'](_0x1287c7),_0x30c7a5=!0x0;const _0x3c37f0=_0x1287c7['nextSibling'],_0x1e2e2c=_0x1287c7['previousSibling'],_0x3e70bd=_0x3c37f0&&_0x3c37f0['is']('element','tableCellSuggestion'),_0x78694b=_0x1e2e2c&&_0x1e2e2c['is']('element','tableCellSuggestion');_0x3e70bd&&!_0x27fff1['has'](_0x3c37f0)&&_0x570ce2['add'](_0x3c37f0),_0x78694b&&!_0x27fff1['has'](_0x1e2e2c)&&_0x570ce2['add'](_0x1e2e2c);}else _0x1287c7['is']('element','paragraph')&&_0x1287c7['isEmpty']&&(_0x3f2f80['removeMarker'](_0x2c3433['name']),_0x30c7a5=!0x0);}}else{if('tablePasteCell'==_0x3f2f80['subType']){if(!_0x3f2f80['attributes']||!_0x3f2f80['attributes']['tablePasteChainId'])continue;const _0x136474=_0x3f2f80['attributes']['markerAttributes'];if(_0x136474&&Object['keys'](_0x136474)['length'])continue;const _0x450254=_0x3f2f80['attributes']['tablePasteChainId'];let _0xd8d5e0=!0x0,_0x36e86d=!0x0;for(const _0x1e0eb0 of _0xc39028)if(_0x1e0eb0['subType']&&_0x1e0eb0['subType']['startsWith']('tablePaste')){if(!_0x1e0eb0['attributes']['tablePasteChainId']){_0x36e86d=!0x1;break;}if(_0x1e0eb0['id']!=_0x3f2f80['id']&&_0x1e0eb0['attributes']['tablePasteChainId']==_0x450254){_0xd8d5e0=!0x1;break;}}_0x36e86d&&_0xd8d5e0&&(_0x3f2f80['removeMarkers'](),_0x30c7a5=!0x0);}}for(const _0x5a041c of _0x27fff1)_0x4f5e50['remove'](_0x5a041c);for(const _0x1df4e1 of _0x570ce2)_0x4f5e50['unwrap'](_0x1df4e1);return _0x30c7a5;}),_0x5f5a33['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x14fa88=>_0xb44d7d(_0x14fa88),'converterPriority':'high'}),_0x5f5a33['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31f127,_0x52d6bc)=>_0x52d6bc['options']['showSuggestionHighlights']?_0xb44d7d(_0x31f127,!0x1):null,'converterPriority':'high'});const _0x2ffc1c=_0x5f5a33['editing']['view'];this['listenTo'](_0x2ffc1c['document'],'clipboardOutput',(_0x14878e,_0x116514)=>{const _0xb71291=[];for(const _0x34428d of _0x2ffc1c['createRangeIn'](_0x116514['content'])['getItems']())_0x34428d['is']('element','suggestion-td')&&_0xb71291['push'](_0x34428d);_0x2ffc1c['change'](_0x30764f=>{for(const _0x26522b of _0xb71291)_0x30764f['move'](_0x30764f['createRangeIn'](_0x26522b),_0x30764f['createPositionBefore'](_0x26522b)),_0x30764f['remove'](_0x26522b);});});}}function Oe(_0x7c8aba){if(_0x7c8aba['isEmpty'])return!0x0;const _0x5d93c3=_0x7c8aba['getChild'](0x0);return _0x5d93c3['is']('element','paragraph')&&_0x5d93c3['isEmpty'];}function Ue(_0x56093b,_0x4f065a={},_0x3a01ec){for(const {isAnchor:_0x52e5d1,cellHeight:_0x227ec5,cellWidth:_0x360d44}of _0x3a01ec['createTableWalker'](_0x56093b,{'includeAllSlots':!0x0,..._0x4f065a}))if(!_0x52e5d1||0x1!=_0x227ec5||0x1!=_0x360d44)return!0x1;return!0x0;}class Dt extends _0x275754{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3ab04f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ab04f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3ab04f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3ab04f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ab04f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3ab04f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3ab04f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x496a6b,_0x1de67b){const _0x23bd18=this['editor']['plugins']['get']('TrackChangesEditing'),_0x240768=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x244736=_0x1de67b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ece2c=_0x240768['getColumnGroupElement'](_0x244736);let _0x29b047=_0x4ece2c?_0x240768['getTableColumnsWidths'](_0x4ece2c):null,_0x11354e=_0x244736['getAttribute']('tableWidth')||null;const _0x3e36bb=_0x1de67b['tableWidth']||_0x11354e,_0x4f8444=_0x1de67b['columnWidths']||_0x29b047,_0x19d528=this['editor']['plugins']['get']('Users')['me'];for(const _0x2dde03 of _0x23bd18['getSuggestions']()){const _0xfdcc56=_0x2dde03['getContainedElement']();if('resizeTable'===_0x2dde03['subType']&&_0xfdcc56===_0x244736){_0x2dde03['author']!==_0x19d528&&_0x2dde03['discard']();const _0x3bd959=_0x2dde03['data']['commandParams'];_0x11354e=_0x3bd959[0x0]['tableWidth'],_0x29b047=_0x3bd959[0x0]['columnWidths'];break;}}_0x496a6b({'table':_0x244736,'tableWidth':_0x3e36bb,'columnWidths':_0x4f8444}),_0x23bd18['markBlockFormat'](_0x244736,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11354e,'columnWidths':_0x29b047}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4cac64){if('formatBlock'!=_0x4cac64['type']&&'formatInline'!=_0x4cac64['type'])return;const {data:_0x2e2c51}=_0x4cac64;if(_0x2e2c51&&'resizeTable'===_0x2e2c51['formatGroupId']){const _0x27e4c4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x27e4c4)};}}}class $t extends _0x275754{['afterInit'](){const _0x4849ac=this['editor'];_0x4849ac['plugins']['has']('Template')&&_0x4849ac['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x275754{['afterInit'](){const _0x37ca7a=this['editor'];if(!_0x37ca7a['commands']['get']('insertTableOfContents'))return;_0x37ca7a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x486654=_0x37ca7a['plugins']['get']('TrackChangesEditing'),_0x22ef32=_0x37ca7a['locale'];_0x486654['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3ea9ac=>o(_0x22ef32,'ELEMENT_TABLE_OF_CONTENTS',_0x3ea9ac));}}class Bt extends _0x275754{['afterInit'](){const _0x1a8138=this['editor'];if(!_0x1a8138['plugins']['has']('Title'))return;const _0x1d2f20=_0x1a8138['plugins']['get']('TrackChangesEditing');_0x1d2f20['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1a8138['locale'],'ELEMENT_TITLE')),_0x1a8138['model']['document']['registerPostFixer'](_0x9b48cb=>{let _0x388882=!0x1;const _0x541821=Array['from'](_0x1a8138['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x37137c,data:_0x59fcb6}of _0x541821){const {group:_0x1d8ed2}=_0x1d2f20['_splitMarkerName'](_0x37137c);if('suggestion'!==_0x1d8ed2||!_0x59fcb6['newRange'])continue;const _0x51abb2=_0x59fcb6['newRange'],_0x324a5d=_0x51abb2['end']['nodeBefore'];if(!_0x324a5d||!_0x324a5d['is']('element','title-content'))continue;if(!_0x51abb2['start']['isTouching'](_0x51abb2['end']))continue;const _0x1f3eb2=_0x1a8138['model']['schema']['getNearestSelectionRange'](_0x51abb2['end'],'forward');if(_0x1f3eb2&&_0x1f3eb2['isCollapsed']){const _0x91166b=_0x9b48cb['createRange'](_0x51abb2['start'],_0x1f3eb2['start']);_0x91166b['isEqual'](_0x51abb2)||(_0x9b48cb['updateMarker'](_0x37137c,{'range':_0x91166b}),_0x388882=!0x0);}_0x388882||(_0x9b48cb['removeMarker'](_0x37137c),_0x388882=!0x0);}return _0x388882;});}}class Tt extends _0x275754{['afterInit'](){const _0x241363=this['editor'],_0x246673=_0x241363['plugins']['get']('TrackChangesEditing');_0x241363['plugins']['has']('Uploadcare')&&(_0x246673['enableCommand']('uploadcare'),_0x241363['plugins']['has']('UploadcareImageEdit')&&(_0x246673['enableCommand']('uploadcareImageEdit'),_0x246673['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x246673['registerBlockAttribute']('uploadcareImageId'),_0x246673['descriptionFactory']['registerDescriptionCallback'](_0xb8ead5=>{if('attribute'!=_0xb8ead5['type'])return;const {data:_0x374b2d}=_0xb8ead5;return _0x374b2d&&'uploadcareImageId'==_0x374b2d['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x275754{['afterInit'](){const _0x45aaf5=this['editor'],_0xed6ffb=_0x45aaf5['plugins']['get']('TrackChangesEditing');_0x45aaf5['plugins']['has']('UndoEditing')&&(_0xed6ffb['enableCommand']('undo'),_0xed6ffb['enableCommand']('redo'));}}class Ot extends _0x275754{static get['requires'](){return[At];}['afterInit'](){const _0x1ba606=this['editor'];if(!_0x1ba606['plugins']['has']('TableCaptionEditing'))return;_0x1ba606['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x275754{['tableProperties'];['tableCellProperties'];constructor(_0x10c50f){super(_0x10c50f),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 _0x2f61af=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x305142 of this['tableProperties'])_0x2f61af['enableCommand'](_0x305142,(_0x545596,_0x3698b0)=>{const _0xf163e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x305142,[_0xf163e],this['tableProperties'],'tableProperties',_0x545596,_0x3698b0);});_0x2f61af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2f61af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f61af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3c51de,_0x5e31c4)=>this['handleDiscardAction'](this['tableProperties'],_0x3c51de,_0x5e31c4)),_0x2f61af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x56763d of this['tableCellProperties'])_0x2f61af['enableCommand'](_0x56763d,(_0x57fa5c,_0x45a232)=>{const _0x2881e3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x56763d,_0x2881e3,this['tableCellProperties'],'tableCellProperties',_0x57fa5c,_0x45a232);});_0x2f61af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2f61af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f61af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3a4138,_0x15867d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3a4138,_0x15867d)),_0x2f61af['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2f61af['descriptionFactory']['registerDescriptionCallback'](_0x4e5d4c=>this['handleSuggestionDescription'](_0x4e5d4c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5125f4,_0x14f88a,_0x314684,_0x19e0a8,_0x4c7261,_0x23cf8d){const _0x3f3bf7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x23cf8d['batch'],()=>{for(const _0x3d1344 of _0x14f88a){if(this['_getSuggestion'](_0x3d1344,_0x19e0a8))_0x4c7261(_0x23cf8d);else{const _0x172311={};for(const _0x1a3d42 of _0x314684){const _0x5b58b2=_0x3d1344['getAttribute'](_0x1a3d42);void 0x0!==_0x5b58b2&&(_0x172311[_0x1a3d42]=_0x5b58b2);}_0x4c7261(_0x23cf8d),_0x3f3bf7['markBlockFormat'](_0x3d1344,{'commandParams':[_0x172311]},[],_0x19e0a8);}}});}['handleDiscardAction'](_0x1b99f7,_0x5e8246,_0x15b5eb){const _0x591bc3=_0x5e8246[0x0]['start']['nodeAfter'],_0x9daef4=_0x15b5eb['commandParams'][0x0];this['editor']['model']['change'](_0x385cbc=>{for(const _0xe5caaf of _0x1b99f7)void 0x0!==_0x9daef4[_0xe5caaf]?_0x385cbc['setAttribute'](_0xe5caaf,_0x9daef4[_0xe5caaf],_0x591bc3):_0x385cbc['removeAttribute'](_0xe5caaf,_0x591bc3);});}['handleSuggestionDescription'](_0x45ebec){if(_0x45ebec['data'])switch(_0x45ebec['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'](_0x148b58,_0x532671){const _0x4eb088=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xac0d33 of _0x4eb088['getSuggestions']({'skipNotAttached':!0x0})){const _0xf200c6=_0xac0d33['getContainedElement']();if(_0xac0d33['subType']===_0x532671&&_0xf200c6===_0x148b58)return _0xac0d33;}return null;}['_registerTablePropertiesAttributes'](){const _0x13fdff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a1759=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5d2301 of _0x2a1759){const _0x215284=_0x5d2301['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x13fdff['registerBlockAttribute'](_0x5d2301),_0x13fdff['descriptionFactory']['registerAttributeLabel'](_0x5d2301,o(this['editor']['locale'],'FORMAT_'+_0x215284));}}}class Rt extends _0x275754{['afterInit'](){const _0x393477=this['editor'];if(!_0x393477['plugins']['has']('LineHeight'))return;const _0x13f180=_0x393477['plugins']['get']('TrackChangesEditing'),_0xb61e7e=_0x393477['locale'];_0x13f180['enableDefaultAttributesIntegration']('lineHeight'),_0x13f180['registerBlockAttribute']('lineHeight'),_0x13f180['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0xb61e7e,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x275754{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x43d1ce,_0x42f2b8,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(_0xedf51a){super(_0xedf51a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x51ccde,_0x2cbed9,_0x15c767,_0x25d98b)=>{this['_model']['change'](()=>{for(const _0x2b5935 of[..._0x25d98b,..._0x15c767])this['_model']['markers']['has'](_0x2b5935)&&_0xedf51a['editing']['reconvertMarker'](_0x2b5935);});}),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']=_0xedf51a['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(),_0xedf51a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xedf51a['config']['get']('trackChanges.trackFormatChanges'),_0xedf51a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xedf51a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0xedf51a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4e7b80=this['editor'],_0x41dadc=(_0x21f8bd,_0xb8a8e1)=>{if('attribute'!=_0x21f8bd)return'ck-suggestion-marker-'+_0x21f8bd;const _0x51a487=_0xb8a8e1['split']('|')[0x0];return this['_isBlockAttribute'](_0x51a487)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e7b80['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x390197=>{const {id:_0x11898a,authorId:_0x128fd8,type:_0x5b572,subType:_0x167c07}=this['_splitMarkerName'](_0x390197['markerName']),_0xe38044=['ck-suggestion-marker',_0x41dadc(_0x5b572,_0x167c07)];let _0x32704a=0xbb8;return this['activeMarkers']['includes'](_0x390197['markerName'])&&(_0xe38044['push']('ck-suggestion-marker--active'),_0x32704a=0xbc2),'deletion'==_0x5b572&&(_0x32704a+=0x5),{'classes':_0xe38044,'attributes':{'data-suggestion':_0x11898a,'data-author-id':_0x128fd8},'priority':_0x32704a};}}),_0x4e7b80['conversion']['for']('dataDowncast')['add'](_0x4f2818=>{_0x4f2818['on']('addMarker:suggestion',(_0x12482f,_0x4d51c8,_0x1d57c4)=>{if(!_0x1d57c4['options']['showSuggestionHighlights'])return;const _0xb4ab49=_0x4d51c8['item'];if(!_0xb4ab49)return;const _0x5cc0a4=_0x1d57c4['mapper']['toViewElement'](_0xb4ab49);_0x4e7b80['model']['schema']['isObject'](_0xb4ab49)&&_0x5cc0a4&&!_0x5cc0a4['getCustomProperty']('widget')&&_0x5cc0a4['is']('containerElement')&&_0x52c59b(_0x5cc0a4,_0x1d57c4['writer']);},{'priority':'high'});}),_0x4e7b80['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4f6954,_0x59b992)=>{if(!_0x59b992['options']['showSuggestionHighlights'])return null;const {id:_0x455c85,authorId:_0xbd802d,type:_0x35135b,subType:_0x22650e}=this['_splitMarkerName'](_0x4f6954['markerName']);return{'classes':['ck-suggestion-marker',_0x41dadc(_0x35135b,_0x22650e)],'priority':0xbb8,'attributes':{'data-suggestion':_0x455c85,'data-author-id':_0xbd802d}};}});const _0x42513f=({showActiveMarkers:_0x11a77d=!0x0,isAttributeSuggestion:_0x64747=!0x1}={})=>(_0x52eb96,_0x19462d,_0x511fc8)=>{if(!_0x19462d['item'])return;const {id:_0x19f833,authorId:_0x1c7f39}=this['_splitMarkerName'](_0x19462d['markerName']);if(_0x64747){const _0x3d7a03=this['_suggestions']['get'](_0x19f833),_0x26b24d=this['_getAttributeKey'](_0x3d7a03);if(!this['_isBlockAttribute'](_0x26b24d))return;}if(_0x19462d['item']['is']('selection'))return void _0x511fc8['consumable']['consume'](_0x19462d['item'],_0x52eb96['name']);const _0x4211e6=_0x511fc8['mapper']['toViewElement'](_0x19462d['item']);if(_0x19462d['item']['is']('element')&&_0x4e7b80['model']['schema']['isBlock'](_0x19462d['item'])&&!_0x4211e6['getCustomProperty']('addHighlight')){_0x511fc8['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4211e6),_0x511fc8['writer']['setAttribute']('data-suggestion',_0x19f833,_0x4211e6),_0x511fc8['writer']['setAttribute']('data-author-id',_0x1c7f39,_0x4211e6),_0x511fc8['mapper']['bindElementToMarker'](_0x4211e6,_0x19462d['markerName']),_0x11a77d&&(this['activeMarkers']['includes'](_0x19462d['markerName'])?_0x511fc8['writer']['addClass']('ck-suggestion-marker--active',_0x4211e6):_0x511fc8['writer']['removeClass']('ck-suggestion-marker--active',_0x4211e6));for(const _0x2400cb of _0x4e7b80['model']['createRangeIn'](_0x19462d['item'])['getItems']())_0x511fc8['consumable']['consume'](_0x2400cb,_0x52eb96['name']);_0x511fc8['consumable']['consume'](_0x19462d['item'],_0x52eb96['name']);}};_0x4e7b80['conversion']['for']('dataDowncast')['add'](_0x36a5e6=>{_0x36a5e6['on']('addMarker:suggestion:formatBlock',(_0x8c2f44,_0x2ab6a5,_0x2dde46)=>{_0x2dde46['options']['showSuggestionHighlights']&&_0x42513f({'showActiveMarkers':!0x1})(_0x8c2f44,_0x2ab6a5,_0x2dde46);},{'priority':'highest'});}),_0x4e7b80['conversion']['for']('dataDowncast')['add'](_0x390cdc=>{_0x390cdc['on']('addMarker:suggestion:attribute',(_0x4bbe72,_0x45b022,_0x5a0244)=>{_0x5a0244['options']['showSuggestionHighlights']&&_0x42513f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4bbe72,_0x45b022,_0x5a0244);},{'priority':'highest'});}),_0x4e7b80['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1449bb,_0x1d4689)=>{if(_0x1d4689['options']['showSuggestionHighlights']){const {id:_0x4b4dec,authorId:_0x33f2a5}=this['_splitMarkerName'](_0x1449bb);return _0x1449bb['includes'](':split')||_0x1449bb['includes'](':merge')?{'group':'suggestion','name':_0x1449bb['substr'](0xb),'attributes':{'data-suggestion':_0x4b4dec,'data-author-id':_0x33f2a5}}:null;}return{'group':'suggestion','name':_0x1449bb['substr'](0xb)};}}),_0x4e7b80['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x7ec9c2,{writer:_0x37e3b2})=>{let _0x5e4855='suggestion:'+_0x7ec9c2['getAttribute']('suggestion-type')+':'+_0x7ec9c2['getAttribute']('id');return _0x7ec9c2['getAttribute']('marker-count')&&(_0x5e4855+=':'+_0x7ec9c2['getAttribute']('marker-count')),_0x37e3b2['createElement']('$marker',{'data-name':_0x5e4855});}}),_0x4e7b80['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e7b80['conversion']['for']('editingDowncast')['add'](_0x26f185=>{_0x26f185['on']('addMarker:suggestion:formatBlock',_0x42513f(),{'priority':'high'});}),_0x4e7b80['conversion']['for']('editingDowncast')['add'](_0x3a21f9=>{_0x3a21f9['on']('addMarker:suggestion:attribute',_0x42513f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e7b80['conversion']['for']('editingDowncast')['add'](_0x35c4b7=>{_0x35c4b7['on']('removeMarker:suggestion:formatBlock',(_0x31a981,_0x2a9393,_0x169c2a)=>{const _0x34ac8a=_0x169c2a['mapper']['markerNameToElements'](_0x2a9393['markerName']);if(_0x34ac8a){for(const _0x5de227 of _0x34ac8a)_0x5de227['getCustomProperty']('addHighlight')||(_0x169c2a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5de227),_0x169c2a['writer']['removeAttribute']('data-suggestion',_0x5de227),_0x169c2a['writer']['removeAttribute']('data-author-id',_0x5de227),_0x169c2a['mapper']['unbindElementFromMarkerName'](_0x5de227,_0x2a9393['markerName']));}},{'priority':'high'});}),_0x4e7b80['conversion']['for']('editingDowncast')['add'](_0x45e9ac=>{_0x45e9ac['on']('removeMarker:suggestion:attribute',(_0x3b448c,_0x233ba4,_0x5b95cd)=>{const _0x49f005=_0x5b95cd['mapper']['markerNameToElements'](_0x233ba4['markerName']);if(!_0x49f005)return;const {id:_0x4828da}=this['_splitMarkerName'](_0x233ba4['markerName']),_0x1a2f72=this['_suggestions']['get'](_0x4828da),_0x8553a1=this['_getAttributeKey'](_0x1a2f72);if(this['_isBlockAttribute'](_0x8553a1)){for(const _0x265630 of _0x49f005)_0x265630['getCustomProperty']('addHighlight')||(_0x5b95cd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x265630),_0x5b95cd['writer']['removeAttribute']('data-suggestion',_0x265630),_0x5b95cd['writer']['removeAttribute']('data-author-id',_0x265630),_0x5b95cd['mapper']['unbindElementFromMarkerName'](_0x265630,_0x233ba4['markerName']));}},{'priority':'high'});}),_0x4e7b80['model']['document']['registerPostFixer'](_0x219ddf=>{let _0x5ad114=!0x1;const _0x261a49=Array['from'](_0x4e7b80['model']['document']['differ']['getChangedMarkers']()),_0x51d1cb=new Set();for(const {name:_0x3861a1,data:_0x487d05}of _0x261a49){const {group:_0x446a61,type:_0x195580,subType:_0x53c26a,id:_0x246b06}=this['_splitMarkerName'](_0x3861a1);if('suggestion'!==_0x446a61)continue;const _0x68f75c=_0x53c26a?'suggestion:'+_0x195580+':'+_0x53c26a+':'+_0x246b06:'suggestion:'+_0x195580+':'+_0x246b06,_0x4cc1ac=_0x4e7b80['model']['markers']['getMarkersGroup'](_0x68f75c),_0x587c81=_0x4e7b80['model']['markers']['get'](_0x3861a1),_0x4091fe=this['_suggestions']['get'](_0x246b06);if(null!=_0x487d05['newRange']){'formatInline'==_0x195580&&(_0x5ad114=_0x5ad114||Gt(_0x487d05['newRange'],_0x3861a1,_0x219ddf,_0x4e7b80['model']['schema']));const _0x4ba634='attribute'==_0x195580&&this['_isBlockAttribute'](_0x53c26a['split']('|')[0x0]),_0x2882c3='attribute'==_0x195580&&this['_isInlineAttribute'](_0x53c26a['split']('|')[0x0]);if(_0x487d05['newRange']['isCollapsed']||'$graveyard'==_0x487d05['newRange']['root']['rootName']||'formatBlock'==_0x195580&&!Jt(_0x487d05['newRange'])||_0x4ba634&&!Jt(_0x487d05['newRange'])||_0x2882c3&&Kt(_0x487d05['newRange'])||'deletion'==_0x195580&&Kt(_0x487d05['newRange'])||_0x587c81&&Ht(_0x587c81,_0x4cc1ac))_0x219ddf['removeMarker'](_0x3861a1),_0x5ad114=!0x0;else{if(!_0x4091fe||!_0x4091fe['isInContent'])continue;if(_0x487d05['newRange']&&_0x487d05['oldRange']&&_0x487d05['newRange']['isEqual'](_0x487d05['oldRange']))continue;_0x51d1cb['add'](_0x4091fe);}}}return _0x51d1cb['size']>0x0&&(_0x5ad114=!!this['_joinWithAdjacentSuggestions'](_0x51d1cb)||_0x5ad114),_0x5ad114;}),_0x4e7b80['model']['document']['registerPostFixer'](_0x100f65=>{let _0x4c1dc9=!0x1;for(const _0x3ae132 of _0x4e7b80['model']['document']['differ']['getChanges']())if('insert'==_0x3ae132['type'])for(const _0x148054 of this['_suggestions']['values']()){if(_0x148054['isMultiRange']||!_0x148054['isInContent'])continue;const _0x3fdb1d='formatBlock'==_0x148054['type'],_0x1e2b51=this['_getAttributeKey'](_0x148054),_0x5ccdfc=_0x1e2b51&&this['_isBlockAttribute'](_0x1e2b51);if(!_0x3fdb1d&&!_0x5ccdfc)continue;const _0x2afd11=_0x148054['getFirstRange']();if(_0x2afd11['start']['parent']!=_0x2afd11['end']['parent']&&!_0x2afd11['end']['isAtEnd']){const _0x1d00d3=_0x4e7b80['model']['createPositionAt'](_0x2afd11['start']['nodeAfter'],'end'),_0x5687dc=_0x4e7b80['model']['createRange'](_0x2afd11['start'],_0x1d00d3);_0x100f65['updateMarker'](_0x148054['getFirstMarker'](),{'range':_0x5687dc}),_0x4c1dc9=!0x0;}}return _0x4c1dc9;}),_0x4e7b80['model']['document']['registerPostFixer'](_0x333287=>this['_processAttributeChanges'](_0x333287)),_0x4e7b80['model']['document']['registerPostFixer'](_0x311991=>!_0x311991['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x311991)),_0x4e7b80['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e7b80['model']['document']['on']('change:data',(_0x1db072,_0x56add0)=>{if(!_0x56add0['isLocal']||_0x56add0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xb0fb2d=_0x4e7b80['model']['document']['differ']['getChanges']();if(0x0==_0xb0fb2d['length'])return;const _0x31db77=[],_0x5e0322=_0xb0fb2d['filter'](_0x290cfb=>'attribute'==_0x290cfb['type']),_0x3448cd=_0xb0fb2d['filter'](_0x54aca2=>'insert'==_0x54aca2['type']&&'$text'!=_0x54aca2['name']);for(const _0x2d12bd of _0x5e0322)this['_isRegisteredAttribute'](_0x2d12bd['attributeKey'])&&_0x31db77['push']({'key':_0x2d12bd['attributeKey'],'newValue':_0x2d12bd['attributeNewValue'],'oldValue':_0x2d12bd['attributeOldValue'],'range':qt(_0x2d12bd['range'],_0x4e7b80['model'])});for(const _0x5a8142 of _0x3448cd){if('rename'!=_0x5a8142['action']&&'refresh'!=_0x5a8142['action'])continue;const _0x1843ae=zt(_0x5a8142['position']['nodeAfter'],_0x4e7b80['model']),_0x324000=_0x5a8142['before'];'rename'==_0x5a8142['action']&&_0x31db77['push']({'key':m,'newValue':_0x5a8142['name'],'oldValue':_0x324000['name'],'range':_0x1843ae});for(const [_0x257cc7,_0x3c2ade]of _0x324000['attributes']){if(!this['_isRegisteredAttribute'](_0x257cc7))continue;const _0x308f51=_0x5a8142['attributes']['get'](_0x257cc7);_0x3c2ade!==_0x308f51&&_0x31db77['push']({'key':_0x257cc7,'newValue':_0x308f51,'oldValue':_0x3c2ade,'range':_0x1843ae});}for(const [_0x3c5bba,_0x3ecf7c]of _0x5a8142['attributes'])this['_isRegisteredAttribute'](_0x3c5bba)&&(_0x324000['attributes']['has'](_0x3c5bba)||_0x31db77['push']({'key':_0x3c5bba,'newValue':_0x3ecf7c,'oldValue':null,'range':_0x1843ae}));}0x0!=_0x31db77['length']&&_0x4e7b80['model']['enqueueChange'](_0x56add0,_0x3dcf17=>{const _0x50e054=_0xd42815();for(const {range:_0x3999d6,key:_0x2e742d,oldValue:_0x35aaef,newValue:_0x3b5a4f}of _0x31db77)this['markAttributeChange'](_0x3999d6,_0x2e742d,_0x35aaef,_0x3b5a4f,{'groupId':_0x50e054});this['_reduceExistingSuggestions'](_0x3dcf17,_0x31db77);});},{'priority':'lowest'}),_0x4e7b80['model']['markers']['on']('update:suggestion',(_0x3a3d13,_0x43cf9d,_0x545d97)=>{if(null==_0x545d97){const {id:_0x344b03}=this['_splitMarkerName'](_0x43cf9d['name']),_0x9adb9b=this['_suggestions']['get'](_0x344b03);_0x9adb9b&&_0x9adb9b['addMarkerName'](_0x43cf9d['name']);}}),_0x4e7b80['model']['document']['on']('change:data',()=>{const _0x20fa0a=Array['from'](_0x4e7b80['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4850b8=>'suggestion'===this['_splitMarkerName'](_0x4850b8['name'])['group']);if(0x0===_0x20fa0a['length'])return;_0x20fa0a['sort']((_0x44479f,_0x3b827a)=>{const _0x4bf92b=_0x44479f['data']['oldRange'],_0x492b9c=_0x3b827a['data']['oldRange'];return null===_0x4bf92b&&null===_0x492b9c?0x0:null===_0x4bf92b&&null!==_0x492b9c?-0x1:null!==_0x4bf92b&&null===_0x492b9c?0x1:_0x4bf92b['start']['isBefore'](_0x492b9c['start'])?-0x1:0x1;});const _0x282b56=new Set(),_0x18c1ad=new Set();for(const {name:_0x3f8e93,data:_0x459d8a}of _0x20fa0a){const {id:_0x5c3a43}=this['_splitMarkerName'](_0x3f8e93);if(null===_0x459d8a['oldRange']){const _0x3fe92e=this['_handleNewSuggestionMarker'](_0x3f8e93);_0x18c1ad['add'](_0x3fe92e);}else{const _0x896eff=this['_suggestions']['get'](_0x5c3a43);null!==_0x459d8a['newRange']||_0x896eff['isInContent']?(_0x282b56['add'](_0x896eff['head']),_0x18c1ad['add'](_0x896eff)):this['_removeSuggestion'](_0x896eff);}}_0x18c1ad['size']>0x0&&this['_refreshSuggestionsChain'](_0x18c1ad);for(const _0x4618df of _0x282b56)this['fire']('suggestionChanged',_0x4618df);}),_0x4e7b80['model']['on']('applyOperation',(_0x40f544,_0x5c6ce0)=>{const _0x337150=_0x5c6ce0[0x0];if(!this['_suggestions']['size'])return;if(!_0x337150['isDocumentOperation'])return;if(_0x337150['batch']['isUndo']||!_0x337150['batch']['isLocal'])return;let _0x14c331,_0x3bd7d6;switch(_0x337150['type']){case'insert':_0x14c331=_0x4e7b80['model']['createPositionAt'](_0x337150['position']),_0x3bd7d6=_0x14c331['getShiftedBy'](_0x337150['howMany']);break;case'split':_0x14c331=_0x4e7b80['model']['createPositionAt'](_0x337150['splitPosition']),_0x3bd7d6=_0x4e7b80['model']['createPositionAt'](_0x337150['moveTargetPosition']);break;case'move':_0x14c331=_0x4e7b80['model']['createPositionAt'](_0x337150['targetPosition']),_0x3bd7d6=_0x14c331['getShiftedBy'](_0x337150['howMany']);break;default:return;}const _0x5288a4=_0x4e7b80['model']['createRange'](_0x14c331,_0x3bd7d6);_0x4e7b80['model']['change'](()=>{for(const {suggestion:_0x349865,meta:_0x1c01fa}of this['_findSuggestions'](_0x5288a4)){if(_0x349865['isMultiRange'])continue;if('formatInline'==_0x349865['type'])continue;const _0x5134b4=this['_getAttributeKey'](_0x349865);if(_0x5134b4&&this['_isBlockAttribute'](_0x5134b4)&&'split'!=_0x337150['type'])continue;const _0x3c3712=_0x349865['data']&&_0x349865['data']['multipleBlocks'];('formatBlock'!=_0x349865['type']||'split'==_0x337150['type']&&!_0x3c3712)&&(_0x1c01fa['containsRangeInObject']||'insertion'==_0x349865['type']&&_0x1c01fa['isOwn']||_0x349865['getFirstRange']()['containsRange'](_0x5288a4)&&this['_breakSuggestionMarker'](_0x349865,_0x14c331,_0x3bd7d6));}});},{'priority':'lowest'}),_0x4e7b80['model']['on']('deleteContent',(_0x4c22ba,_0x269b0b)=>{const _0x24d0ef=_0x269b0b[0x0],_0x1a926f=_0x269b0b[0x1];if(_0x1a926f&&_0x1a926f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x24d0ef['isCollapsed'])return;const _0x1a7e2c=_0x4e7b80['model']['schema'],{start:_0x3d5868,end:_0x498953}=_0x24d0ef['getFirstRange'](),_0x507eee=_0x3d5868['nodeAfter']&&_0x1a7e2c['isLimit'](_0x3d5868['nodeAfter'])?null:_0x1a7e2c['getNearestSelectionRange'](_0x3d5868,'forward'),_0x141cca=_0x498953['nodeBefore']&&_0x1a7e2c['isLimit'](_0x498953['nodeBefore'])?null:_0x1a7e2c['getNearestSelectionRange'](_0x498953,'backward'),_0x59d4f6=_0x4e7b80['model']['createRange'](_0x507eee?_0x507eee['start']:_0x3d5868,_0x141cca?_0x141cca['end']:_0x498953);_0x4e7b80['model']['change'](_0x4ca88c=>{this['markDeletion'](_0x59d4f6);const _0x3c36d1=_0x4e7b80['model']['schema']['getNearestSelectionRange'](_0x59d4f6['start']);_0x24d0ef['is']('documentSelection')?_0x4ca88c['setSelection'](_0x3c36d1):_0x24d0ef['setTo'](_0x3c36d1);}),_0x4c22ba['stop']();},{'priority':_0x49afb9['normal']+0xa}),_0x4e7b80['model']['on']('insertContent',(_0x4357fc,_0x50146b)=>{const _0x30f6a2=_0x50146b[_0x50146b['length']-0x1];_0x30f6a2&&_0x30f6a2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e7b80['model']['change'](()=>{let _0x16f963=_0x4e7b80['model']['insertContent'](_0x50146b[0x0],_0x50146b[0x1],_0x50146b[0x2],{'forceDefaultExecution':!0x0});if(!_0x16f963)return;_0x4357fc['return']=_0x16f963['clone']();const _0x51cce9=_0x16f963['end']['nodeBefore'],_0xe337c5=_0x4e7b80['model']['schema'];_0x51cce9&&_0xe337c5['isBlock'](_0x51cce9)&&!_0xe337c5['isObject'](_0x51cce9)&&(_0x16f963=_0x4e7b80['model']['createRange'](_0x16f963['start'],_0x4e7b80['model']['createPositionAt'](_0x51cce9,'end'))),this['markInsertion'](_0x16f963);}),_0x4357fc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x6922ea=new D(_0x4e7b80,this['_suggestions']);_0x4e7b80['commands']['add']('acceptSuggestion',_0x6922ea),this['enableCommand']('acceptSuggestion');const _0x13e280=new $(_0x4e7b80,this['_suggestions']);_0x4e7b80['commands']['add']('discardSuggestion',_0x13e280),this['enableCommand']('discardSuggestion'),_0x4e7b80['commands']['add']('acceptAllSuggestions',new M(_0x4e7b80,_0x6922ea,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e7b80['commands']['add']('discardAllSuggestions',new M(_0x4e7b80,_0x13e280,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e7b80['commands']['add']('acceptSelectedSuggestions',new B(_0x4e7b80,_0x6922ea,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e7b80['commands']['add']('discardSelectedSuggestions',new B(_0x4e7b80,_0x13e280,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x37eb17=_0x4e7b80['plugins']['get']('CommentsRepository');this['listenTo'](_0x37eb17,'addComment',(_0x340dda,{threadId:_0x132b20})=>{const _0x34508f=this['_suggestions']['get'](_0x132b20);_0x34508f&&_0x34508f['commentThread']&&0x1===_0x34508f['commentThread']['length']&&this['_updateSuggestionData'](_0x132b20,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x37eb17,'removeComment',(_0x5d7847,{threadId:_0x47f57f})=>{const _0x27e00e=this['_suggestions']['get'](_0x47f57f);_0x27e00e&&_0x27e00e['commentThread']&&!_0x27e00e['commentThread']['length']&&this['_updateSuggestionData'](_0x47f57f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2adf75){const _0x32e140=_0x29e9d([0x76,0x72,0x45,0x6d,0x57,0x44,0x6a,0x36,0x68,0x54,0x4c,0x77,0x71,0x75,0x34,0x66,0x69,0x39,0x4e,0x48,0x64,0x73,0x46,0x41,0x37,0x79,0x61,0x52,0x35,0x6f,0x6b,0x30,0x67,0x50,0x32,0x4d,0x62,0x33,0x56,0x4b,0x63,0x5a,0x59,0x7a,0x58,0x31,0x6c,0x4a,0x4f,0x49,0x42,0x74,0x70,0x6e,0x51,0x47,0x78,0x38,0x43,0x65,0x55,0x53]),_0x4c715e=0x4d78c62f,_0x30d885=0x4d7fa97f^_0x4c715e,_0x35f46b=window[_0x29e9d([0x44,0x61,0x74,0x65])][_0x29e9d([0x6e,0x6f,0x77])](),_0x25ed10=_0x2adf75[_0x29e9d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3034d5=new window[(_0x29e9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f322f=>{_0x25ed10[_0x29e9d([0x6f,0x6e,0x63,0x65])](_0x29e9d([0x72,0x65,0x61,0x64,0x79]),_0x4f322f);}),_0xd5ec21={[_0x29e9d([0x6b,0x74,0x79])]:_0x29e9d([0x45,0x43]),[_0x29e9d([0x75,0x73,0x65])]:_0x29e9d([0x73,0x69,0x67]),[_0x29e9d([0x63,0x72,0x76])]:_0x29e9d([0x50,0x2d,0x32,0x35,0x36]),[_0x29e9d([0x78])]:_0x29e9d([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]),[_0x29e9d([0x79])]:_0x29e9d([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]),[_0x29e9d([0x61,0x6c,0x67])]:_0x29e9d([0x45,0x53,0x32,0x35,0x36])},_0x5d1a05=_0x25ed10[_0x29e9d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29e9d([0x67,0x65,0x74])](_0x29e9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3974e4(){let _0x3dd13f,_0x4f1011=null,_0x2381d7=null;try{if(_0x5d1a05==_0x29e9d([0x47,0x50,0x4c]))return _0x29e9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3dd13f=_0x482862(),!_0x3dd13f)return _0x29e9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3dd13f[_0x29e9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2381d7=_0x5cfa3c(_0x3dd13f[_0x29e9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3dd13f[_0x29e9d([0x6a,0x74,0x69])])),await _0x1bdd32()?_0x8a78d3()?_0x39af5b()?_0x29e9d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9d4ea1()?(_0x3dd13f[_0x29e9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29e9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f1011=_0x2b4899(_0x29e9d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3dd13f[_0x29e9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29e9d([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f1011=_0x2b4899(_0x29e9d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a9ec1()):_0x29e9d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29e9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29e9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29e9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39af5b(){const _0x601d6=[_0x29e9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29e9d([0x74,0x72,0x69,0x61,0x6c])][_0x29e9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dd13f[_0x29e9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x35f46b/0x3e8:0xe10*_0x30d885;return _0x3dd13f[_0x29e9d([0x65,0x78,0x70])]<_0x601d6;}function _0x8a78d3(){const _0x39de50=_0x3dd13f[_0x29e9d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x39de50)return!0x1;if(_0x39de50[_0x29e9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e9d([0x2a])))return!0x0;if(_0x39de50[_0x29e9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e9d([0x54,0x43])))return!0x0;if(_0x39de50[_0x29e9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e9d([0x52,0x54,0x43]))){if(_0x2f7bfe())return!0x0;if(_0x3bfcd6()||_0x1b3a5b())return!0x0;}return!0x1;}function _0x9d4ea1(){const _0x5ed347=_0x3dd13f[_0x29e9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ed347||0x0==_0x5ed347[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7bab84}=new URL(window[_0x29e9d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ed347[_0x29e9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7bab84))return!0x0;const _0x1414b5=_0x7bab84[_0x29e9d([0x73,0x70,0x6c,0x69,0x74])](_0x29e9d([0x2e]));return _0x5ed347[_0x29e9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50460d=>_0x50460d[_0x29e9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29e9d([0x2a])))[_0x29e9d([0x6d,0x61,0x70])](_0x564879=>_0x564879[_0x29e9d([0x73,0x70,0x6c,0x69,0x74])](_0x29e9d([0x2e])))[_0x29e9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a25c5=>_0x5a25c5[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1414b5[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29e9d([0x6d,0x61,0x70])](_0x536246=>Array(_0x1414b5[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x536246[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29e9d([0x66,0x69,0x6c,0x6c])](_0x536246[0x0]===_0x29e9d([0x2a])?_0x29e9d([0x2a]):'')[_0x29e9d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x536246))[_0x29e9d([0x73,0x6f,0x6d,0x65])](_0x3b17dc=>_0x1414b5[_0x29e9d([0x65,0x76,0x65,0x72,0x79])]((_0x5acc8b,_0x3530fe)=>_0x3b17dc[_0x3530fe]===_0x5acc8b||_0x3b17dc[_0x3530fe]===_0x29e9d([0x2a])));}function _0x5a9ec1(){return _0x4f1011&&_0x2381d7?new window[(_0x29e9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49dc79,_0x429109)=>{_0x4f1011[_0x29e9d([0x74,0x68,0x65,0x6e])](_0x49dc79,_0x429109),_0x2381d7[_0x29e9d([0x74,0x68,0x65,0x6e])](_0x91c353=>{_0x91c353!=_0x29e9d([0x56,0x61,0x6c,0x69,0x64])&&_0x49dc79(_0x91c353);},_0x429109);}):_0x4f1011||_0x2381d7||_0x29e9d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5cfa3c(_0x5bef04,_0x141ee8){return new window[(_0x29e9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27d26f=>{if(_0x324b56())return _0x27d26f(_0x29e9d([0x56,0x61,0x6c,0x69,0x64]));_0x2dd1f8(),_0x25ed10[_0x29e9d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29e9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x320989=!0x1;const _0x50d495=_0xd42815();function _0x192fbd(_0x4e4eb0){return!!_0x4e4eb0&&(typeof _0x4e4eb0===_0x29e9d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e4eb0===_0x29e9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e4eb0[_0x29e9d([0x74,0x68,0x65,0x6e])]===_0x29e9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e4eb0[_0x29e9d([0x63,0x61,0x74,0x63,0x68])]===_0x29e9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ea284(_0x4bc6f0){_0x4b5d06(_0x4bc6f0)[_0x29e9d([0x74,0x68,0x65,0x6e])](_0x17cb0c=>{if(!_0x17cb0c||_0x17cb0c[_0x29e9d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29e9d([0x6f,0x6b]))return _0x29e9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x59f687(_0x1dc702(_0x50d495+_0x141ee8))!=_0x17cb0c[_0x29e9d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29e9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29e9d([0x56,0x61,0x6c,0x69,0x64]);})[_0x29e9d([0x74,0x68,0x65,0x6e])](_0xa59de0=>(_0x242b58(),_0xa59de0),()=>{const _0x2a084b=_0x2164db();return null==_0x2a084b?(_0x242b58(),_0x29e9d([0x56,0x61,0x6c,0x69,0x64])):_0x29e9d(_0x35f46b-_0x2a084b>(0x6974422f^_0x4c715e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29e9d([0x74,0x68,0x65,0x6e])](_0x27d26f)[_0x29e9d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27d26f(_0x29e9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x394dce=0x4d4e28af^_0x4c715e;function _0x242b58(){const _0x503d99=_0x29e9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x59f687(_0x1dc702(_0x5bef04)),_0x442a6b=_0x80683f(_0x59f687(window[_0x29e9d([0x4d,0x61,0x74,0x68])][_0x29e9d([0x63,0x65,0x69,0x6c])](_0x35f46b/_0x394dce)));window[_0x29e9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29e9d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x503d99,_0x442a6b);}function _0x2164db(){const _0x415818=_0x29e9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x59f687(_0x1dc702(_0x5bef04)),_0x4810c0=window[_0x29e9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29e9d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x415818);return _0x4810c0?window[_0x29e9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x80683f(_0x4810c0),0x10)*_0x394dce:null;}function _0x4b5d06(_0x154e1c){return new window[(_0x29e9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4879f9,_0x2ded56)=>{_0x154e1c[_0x29e9d([0x74,0x68,0x65,0x6e])](_0x4879f9,_0x2ded56),window[_0x29e9d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ded56,0x4d7912ef^_0x4c715e);});}}_0x25ed10[_0x29e9d([0x6f,0x6e])](_0x29e9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1b5b09,_0x214bb0)=>{if(_0x214bb0[0x0]!=_0x5bef04)return _0x27d26f(_0x29e9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x214bb0[0x1]={..._0x214bb0[0x1],[_0x29e9d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50d495};},{[_0x29e9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29e9d([0x68,0x69,0x67,0x68])}),_0x25ed10[_0x29e9d([0x6f,0x6e])](_0x29e9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x73dfd3=>{_0x192fbd(_0x73dfd3[_0x29e9d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x320989=!0x0,_0x3ea284(_0x73dfd3[_0x29e9d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29e9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29e9d([0x6c,0x6f,0x77])}),_0x3034d5[_0x29e9d([0x74,0x68,0x65,0x6e])](()=>{_0x320989||_0x27d26f(_0x29e9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x324b56(){return _0x25ed10[_0x29e9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e9d([0x76,0x69,0x65,0x77])][_0x29e9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29e9d([0x61,0x75,0x74,0x6f]);}function _0x2dd1f8(){_0x25ed10[_0x29e9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29e9d([0x76,0x69,0x65,0x77])][_0x29e9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29e9d([0x61,0x75,0x74,0x6f]);}}function _0x2b4899(_0x11a41e){const _0x5d7634=[new window[(_0x29e9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e3181=>setTimeout(_0x1e3181,0x4d71f8e3^_0x4c715e)),_0x3034d5[_0x29e9d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29e9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304279=>{let _0x1cc9af=0x0;_0x25ed10[_0x29e9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e9d([0x6f,0x6e])](_0x29e9d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e616a,_0x30f86c)=>{_0x30f86c[0x0][_0x29e9d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1cc9af++,_0x1cc9af==(0x4d78c7d7^_0x4c715e)&&(_0x304279(),_0x4e616a[_0x29e9d([0x6f,0x66,0x66])]());});}))];return window[_0x29e9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29e9d([0x72,0x61,0x63,0x65])](_0x5d7634)[_0x29e9d([0x74,0x68,0x65,0x6e])](()=>_0x11a41e);}async function _0x4e16a5(){await _0x3034d5,_0x25ed10[_0x29e9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e9d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x503b30,_0x25ed10[_0x29e9d([0x6d,0x6f,0x64,0x65,0x6c])][_0x29e9d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x503b30,_0x25ed10[_0x29e9d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29e9d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f7bfe(){return _0x3e0d71(_0x29e9d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x247a32(_0x29e9d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29e9d([0x73,0x74,0x61,0x74,0x65])]==_0x29e9d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3bfcd6(){return _0x3e0d71(_0x29e9d([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 _0x1b3a5b(){return _0x3e0d71(_0x29e9d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3c38c7(_0x59c79c){const _0x160303=_0x2f5b0e();_0x25ed10[_0x160303]=_0x29e9d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59c79c,_0x59c79c!=_0x29e9d([0x56,0x61,0x6c,0x69,0x64])&&_0x4e16a5();}function _0x2f5b0e(){const _0x56aa92=window[_0x29e9d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29e9d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29e9d([0x6e,0x6f,0x77])]())[_0x29e9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29e9d([0x2e]),'');let _0x16c108=_0x29e9d([0x76]);for(let _0xfa17a0=0x0;_0xfa17a0<_0x56aa92[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfa17a0+=0x2){let _0x51445e=window[_0x29e9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56aa92[_0x29e9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfa17a0,_0xfa17a0+0x2));_0x51445e>=_0x32e140[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51445e-=_0x32e140[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16c108+=_0x32e140[_0x51445e];}return _0x16c108;}function _0x482862(){const _0x5f4f03=_0x5d1a05[_0x29e9d([0x73,0x70,0x6c,0x69,0x74])](_0x29e9d([0x2e]));if(0x3!=_0x5f4f03[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25cd24(_0x5f4f03[0x1]);function _0x25cd24(_0x154200){const _0x22af68=_0x145741(_0x154200);return _0x22af68&&_0x1e25ca()?_0x22af68:null;function _0x1e25ca(){const _0x4ba745=_0x22af68[_0x29e9d([0x6a,0x74,0x69])],_0x11adab=window[_0x29e9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ba745[_0x29e9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ba745[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2358d8={..._0x22af68,[_0x29e9d([0x6a,0x74,0x69])]:_0x4ba745[_0x29e9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ba745[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2358d8[_0x29e9d([0x76,0x63])],_0x1dc702(_0x2358d8)==_0x11adab;}}}async function _0x1bdd32(){let _0x165c9b=!0x0;try{const _0x535108=_0x5d1a05[_0x29e9d([0x73,0x70,0x6c,0x69,0x74])](_0x29e9d([0x2e])),[_0x3b1bca,_0x53a5ac,_0x2b43df]=_0x535108;return _0x2aa962(_0x3b1bca),await _0x46fa8a(_0x3b1bca,_0x53a5ac,_0x2b43df),_0x165c9b;}catch{return!0x1;}function _0x2aa962(_0x5c797b){const _0x54b241=_0x145741(_0x5c797b);_0x54b241&&_0x54b241[_0x29e9d([0x61,0x6c,0x67])]==_0x29e9d([0x45,0x53,0x32,0x35,0x36])||(_0x165c9b=!0x1);}async function _0x46fa8a(_0x414e4d,_0x5764c1,_0x89646e){const _0x319a3d=window[_0x29e9d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29e9d([0x66,0x72,0x6f,0x6d])](_0x316931(_0x89646e),_0x2c0123=>_0x2c0123[_0x29e9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dbb06=new window[(_0x29e9d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29e9d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x414e4d+_0x29e9d([0x2e])+_0x5764c1),_0x841eb2=window[_0x29e9d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29e9d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x841eb2)return;const _0x1e2ab9=await _0x841eb2[_0x29e9d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29e9d([0x6a,0x77,0x6b]),_0xd5ec21,{[_0x29e9d([0x6e,0x61,0x6d,0x65])]:_0x29e9d([0x45,0x43,0x44,0x53,0x41]),[_0x29e9d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29e9d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29e9d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x841eb2[_0x29e9d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29e9d([0x6e,0x61,0x6d,0x65])]:_0x29e9d([0x45,0x43,0x44,0x53,0x41]),[_0x29e9d([0x68,0x61,0x73,0x68])]:{[_0x29e9d([0x6e,0x61,0x6d,0x65])]:_0x29e9d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e2ab9,_0x319a3d,_0x1dbb06)||(_0x165c9b=!0x1);}}function _0x145741(_0x14bd94){return _0x14bd94[_0x29e9d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29e9d([0x65,0x79]))?JSON[_0x29e9d([0x70,0x61,0x72,0x73,0x65])](_0x316931(_0x14bd94)):null;}function _0x316931(_0x2eeb64){return window[_0x29e9d([0x61,0x74,0x6f,0x62])](_0x2eeb64[_0x29e9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29e9d([0x2b]))[_0x29e9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29e9d([0x2f])));}function _0x1dc702(_0xcf5ed8){let _0x9c7c62=0x1505;function _0x4861d4(_0x35e098){for(let _0x184f96=0x0;_0x184f96<_0x35e098[_0x29e9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x184f96++){const _0x14ca12=_0x35e098[_0x29e9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x184f96);_0x9c7c62=(_0x9c7c62<<0x5)+_0x9c7c62+_0x14ca12,_0x9c7c62&=_0x9c7c62;}}function _0x19e182(_0x16e6ad){Array[_0x29e9d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16e6ad)?_0x16e6ad[_0x29e9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19e182):_0x16e6ad&&typeof _0x16e6ad==_0x29e9d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29e9d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16e6ad)[_0x29e9d([0x73,0x6f,0x72,0x74])]()[_0x29e9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43864f,_0x49fe24])=>{_0x4861d4(_0x43864f),_0x19e182(_0x49fe24);}):_0x4861d4(window[_0x29e9d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16e6ad));}return _0x19e182(_0xcf5ed8),_0x9c7c62>>>0x0;}function _0x59f687(_0x38eee5){return _0x38eee5[_0x29e9d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29e9d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29e9d([0x30]));}function _0x80683f(_0x4a570e){return _0x4a570e[_0x29e9d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29e9d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29e9d([0x6a,0x6f,0x69,0x6e])]('');}function _0x3e0d71(_0x468d67){return _0x25ed10[_0x29e9d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29e9d([0x68,0x61,0x73])](_0x468d67);}function _0x247a32(_0x2cda54){return _0x25ed10[_0x29e9d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29e9d([0x67,0x65,0x74])](_0x2cda54);}function _0x503b30(){}function _0x29e9d(_0x2c3a1e){return _0x2c3a1e['map'](_0x2f4ff1=>String['fromCharCode'](_0x2f4ff1))['join']('');}_0x3c38c7(await _0x3974e4());}(this);}set['adapter'](_0x3d37a7){if(this['_adapter'])throw new _0x56d199('track-changes-adapter-already-set',this);this['_adapter']=_0x3d37a7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3980f1=!0x1,toJSON:_0x2b2610=!0x1}={}){const _0x853d3=[];for(const _0x5ed4f6 of this['_suggestions']['values']())_0x3980f1&&!_0x5ed4f6['isInContent']||_0x853d3['push'](_0x5ed4f6);return _0x2b2610?_0x853d3['map'](_0x36cb63=>_0x36cb63['toJSON']()):_0x853d3;}['getSuggestion'](_0x54d506){const _0x154813=this['_suggestions']['get'](_0x54d506);if(!_0x154813)throw new _0x56d199('track-changes-suggestion-not-found',this);return _0x154813;}['hasSuggestion'](_0x48414e){return this['_suggestions']['has'](_0x48414e);}['addSuggestionData'](_0x41d1fd){const {authorId:_0x4450b8,id:_0x5f2850,originalSuggestionId:_0x3db26e,attributes:_0x5dda5f}=_0x41d1fd,[_0x3aa9d0,_0x17c1d9]=_0x41d1fd['type']['split'](':'),_0x1c0277=this['_suggestions']['get'](_0x5f2850)||this['_createSuggestion'](_0x3aa9d0,_0x17c1d9,_0x5f2850,_0x4450b8,_0x5dda5f,_0x3db26e);if(this['_addThreadToSuggestion'](_0x1c0277),this['_checkSuggestionCorrectness'](_0x1c0277,_0x3aa9d0,_0x17c1d9||null,_0x4450b8),_0x1c0277['createdAt']=_0x41d1fd['createdAt'],_0x1c0277['_isDataLoaded']=!0x0,_0x5dda5f&&_0x5dda5f['@external']){const _0x2307f=_0x5dda5f['@external'],_0x5947a4=this['_getExternalAuthor'](_0x2307f['authorName']);_0x1c0277['authoredAt']=_0x2307f['createdAt'],_0x1c0277['author']=_0x5947a4,_0x1c0277['isExternal']=!0x0;}else _0x1c0277['authoredAt']=_0x41d1fd['createdAt'];switch(_0x41d1fd['data']&&(_0x1c0277['data']=_0x41d1fd['data']),_0x41d1fd['attributes']&&(_0x1c0277['attributes']=_0x41d1fd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1c0277['_saved']=!0x0),this['_suggestionState']['get'](_0x1c0277)){case'notReady':this['_suggestionState']['set'](_0x1c0277,'dataReady');break;case'markerReady':_0x1c0277['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1c0277])),this['_refreshSuggestionsChain'](new Set([_0x1c0277])),this['_suggestionState']['set'](_0x1c0277,'ready'),this['fire']('suggestionLoaded',_0x1c0277)):this['_suggestionState']['set'](_0x1c0277,'removed');}return _0x1c0277;}['acceptSuggestion'](_0x1b78a0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x46d0f7 of _0x1b78a0['getAllAdjacentSuggestions']())_0x46d0f7['accept']();});});}['discardSuggestion'](_0xb2149d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xcc3aea of _0xb2149d['getAllAdjacentSuggestions']())_0xcc3aea['discard']();});});}['enableCommand'](_0xc566cb,_0x345a22){const _0x28f2d2=this['editor']['commands']['get'](_0xc566cb);if(!_0x28f2d2)throw new _0x56d199('track-changes-command-not-found',this,{'commandName':_0xc566cb});if(this['_enabledCommands']['has'](_0x28f2d2))throw new _0x56d199('track-changes-enable-command-twice',this,{'commandName':_0xc566cb});this['_enabledCommands']['add'](_0x28f2d2),_0x345a22&&_0x28f2d2['on']('execute',(_0x3538b6,_0x5dcb20)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5dcb20['length']>0x0&&_0x5dcb20[_0x5dcb20['length']-0x1]&&_0x5dcb20[_0x5dcb20['length']-0x1]['forceDefaultExecution']?_0x5dcb20['pop']():(_0x3538b6['return']=_0x345a22((..._0x2bb989)=>_0x28f2d2['execute'](..._0x2bb989,{'forceDefaultExecution':!0x0}),..._0x5dcb20),_0x3538b6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x553979){let _0x599086,_0x2ef94c;const _0x5154ee=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x599086=_0x553979();}catch(_0x533789){_0x2ef94c=_0x533789;}return _0x5154ee||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2ef94c&&_0x56d199['rethrowUnexpectedError'](_0x2ef94c,this),_0x599086;}['markInsertion'](_0x1a6ba1,_0x1c9afa=null,_0x220628={}){if(_0x1a6ba1['isCollapsed'])return null;const _0x1f673c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x220628['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5d349c,meta:_0x31aaf9}of this['_findSuggestions'](_0x1a6ba1,'insertion'))if(_0x31aaf9['isOwn']){if(!_0x31aaf9['isNextTo']){if(_0x31aaf9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x5d349c,_0x220628))continue;return _0x5d349c;}if(Xt(_0x5d349c,_0x220628))return _0x5d349c;this['_breakSuggestionMarker'](_0x5d349c,_0x1a6ba1['start'],_0x1a6ba1['end']);break;}if(_0x1c9afa==_0x5d349c['subType']&&Xt(_0x5d349c,_0x220628)){const _0x53a10d=_0x5d349c['getFirstRange']();return _0x53a10d['start']['isEqual'](_0x1a6ba1['end'])?this['_setSuggestionRange'](_0x5d349c,this['_model']['createRange'](_0x1a6ba1['start'],_0x53a10d['end'])):this['_setSuggestionRange'](_0x5d349c,this['_model']['createRange'](_0x53a10d['start'],_0x1a6ba1['end'])),_0x5d349c;}}const _0xdb0b94=_0xd42815(),_0x119f94=_0x1f673c['id'],_0x1f0210=_0x1c9afa?'insertion:'+_0x1c9afa:'insertion',_0x5df266=this['_setSuggestionData']({'id':_0xdb0b94,'type':_0x1f0210,'createdAt':new Date(),'authorId':_0x119f94,'attributes':_0x220628});return this['_addSuggestionMarker'](_0x1f0210,_0xdb0b94,_0x119f94,_0x1a6ba1),_0x5df266;}['markMultiRangeInsertion'](_0x3a8e31,_0x3c3cf3='multi',_0x40ce59={}){const _0x58ecd7=this['editor']['plugins']['get']('Users')['me'],_0x532c20=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c3cf3,'join');this['_trackingSessionId']&&(_0x40ce59['trackingSessionId']=this['_trackingSessionId']);for(const _0x208dc5 of this['getSuggestions']())if(_0x208dc5['author']['id']==_0x58ecd7['id']&&'insertion'==_0x208dc5['type']&&_0x208dc5['subType']==_0x3c3cf3&&Xt(_0x208dc5,_0x40ce59)&&(_0x532c20(_0x208dc5['getRanges'](),_0x3a8e31)||_0x532c20(_0x3a8e31,_0x208dc5['getRanges']()))){for(const _0x702092 of _0x3a8e31)_0x208dc5['addRange'](_0x702092);return _0x208dc5;}for(const {suggestion:_0x4b637e,meta:_0x52c1ed}of this['_findSuggestions'](_0x3a8e31,'insertion')){if(!_0x52c1ed['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52c1ed['containsRangeInObject'])continue;if(!Xt(_0x4b637e,_0x40ce59))continue;let _0x4da1f2=!0x0;for(const _0x442cbd of _0x4b637e['getRanges']())for(const _0x5021dc of _0x3a8e31)if(!_0x442cbd['containsRange'](_0x5021dc)){_0x4da1f2=!0x1;break;}if(_0x4da1f2)return _0x4b637e;}const _0x16430c=_0xd42815(),_0x53c0af=_0x58ecd7['id'],_0x5b9a3f='insertion:'+_0x3c3cf3,_0x2ef29e=this['_setSuggestionData']({'id':_0x16430c,'type':_0x5b9a3f,'createdAt':new Date(),'authorId':_0x53c0af,'attributes':_0x40ce59});for(const _0x3953b2 of _0x3a8e31)this['_addSuggestionMarker'](_0x5b9a3f,_0x16430c,_0x53c0af,_0x3953b2,T['getMultiRangeId']());return _0x2ef29e;}['markInlineFormat'](_0x4cb20d,_0x5131f3,_0x59df82=null,_0x214fac={}){if(_0x59df82=_0x59df82||Lt(_0x5131f3),_0x4cb20d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x214fac['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x13a221=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x59df82,'accept');return this['forceDefaultExecution'](()=>_0x13a221([_0x4cb20d],_0x5131f3,_0x214fac)),null;}const _0x9cf199=this['editor']['plugins']['get']('Users')['me'],_0x4f7955=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5b5f95,meta:_0x56f571}of this['_findSuggestions'](_0x4cb20d,'insertion'))_0x56f571['isOwn']&&!_0x56f571['isInsideObject']&&_0x4f7955['push'](..._0x5b5f95['getRanges']());}const _0x2ace48=function(_0x394744,_0x23da9c){const _0x33034d=[];for(const _0x3bcc8d of _0x23da9c){const _0x200353=_0x394744['getIntersection'](_0x3bcc8d);_0x200353&&_0x33034d['push'](_0x200353);}return _0x33034d;}(_0x4cb20d,_0x4f7955),_0x5ea5d1=function(_0x388b83,_0x4b0f7c){const _0x2c1636=[_0x388b83];for(const _0x974f30 of _0x4b0f7c){let _0x747530=0x0;for(;_0x747530<_0x2c1636['length'];){const _0x463d39=_0x2c1636[_0x747530]['getDifference'](_0x974f30);_0x2c1636['splice'](_0x747530,0x1,..._0x463d39),_0x747530+=_0x463d39['length'];}}return _0x2c1636;}(_0x4cb20d,_0x4f7955);_0x2ace48['length']&&this['_model']['change'](()=>{for(const _0x3b6f4e of _0x2ace48){const _0x5160de=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x59df82,'accept');this['forceDefaultExecution'](()=>_0x5160de([_0x3b6f4e],_0x5131f3,_0x214fac));}});for(const _0x150977 of _0x5ea5d1){let _0x21d8f7=null,_0x1c4416=_0x150977['start'],_0x18758b=_0x150977['end'];for(const {suggestion:_0x204c74,meta:_0x3d909e}of this['_findSuggestions'](_0x150977,'formatInline')){if(!_0x3d909e['isOwn'])continue;if(_0x204c74['subType']!=_0x59df82)continue;if(!Xt(_0x204c74,_0x214fac))continue;const _0xf4f311=_0x204c74['getFirstRange']();if(_0xf4f311['containsRange'](_0x150977,!0x0))return null;_0x1c4416=_0x1c4416['isBefore'](_0xf4f311['start'])?_0x1c4416:_0xf4f311['start'],_0x18758b=_0x18758b['isAfter'](_0xf4f311['end'])?_0x18758b:_0xf4f311['end'],_0x21d8f7?_0xf4f311['start']['isBefore'](_0x21d8f7['getFirstRange']()['start'])?(_0x21d8f7['removeMarkers'](),_0x21d8f7=_0x204c74):_0x204c74['removeMarkers']():_0x21d8f7=_0x204c74;}const _0x11143a=this['_model']['createRange'](_0x1c4416,_0x18758b);if(_0x21d8f7)this['_setSuggestionRange'](_0x21d8f7,_0x11143a);else{const _0x35384f=_0xd42815(),_0x15f15d=_0x9cf199['id'];this['_setSuggestionData']({'id':_0x35384f,'type':'formatInline:'+_0x59df82,'data':_0x5131f3,'createdAt':new Date(),'authorId':_0x15f15d,'attributes':_0x214fac}),this['_addSuggestionMarker']('formatInline:'+_0x59df82,_0x35384f,_0x15f15d,_0x11143a);}}return null;}['markBlockFormat'](_0x53d93d,_0x33f29b,_0x2263c2=[],_0x4b44e7=null,_0x449f83={}){_0x33f29b['formatGroupId']||(_0x33f29b['formatGroupId']=_0x33f29b['commandName']),_0x33f29b['multipleBlocks']=_0x53d93d['is']('range'),_0x4b44e7=_0x4b44e7||Lt(_0x33f29b);const _0x2b803c=_0x2263c2['map'](_0x3af967=>zt(_0x3af967,this['_model'])),_0x15ea05=_0x53d93d['is']('range')?_0x53d93d:zt(_0x53d93d,this['_model']);if(this['_trackingSessionId']&&(_0x449f83['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x50dae4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b44e7,'accept');return this['forceDefaultExecution'](()=>_0x50dae4([_0x15ea05],_0x33f29b,_0x449f83)),null;}_0x2b803c['push'](_0x15ea05);let _0x44cc12=!0x0;for(const _0x52d8b7 of _0x2b803c)if(!this['_rangeIsInLocalUserInsertion'](_0x52d8b7)){_0x44cc12=!0x1;break;}if(_0x44cc12&&'always'!==this['_trackFormatChanges']){const _0x33ae4d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4b44e7,'accept');return this['forceDefaultExecution'](()=>_0x33ae4d([_0x15ea05],_0x33f29b,_0x449f83)),null;}let _0x17d585=null,_0x39cc69=_0x15ea05['start'],_0x21bc17=_0x15ea05['end'];for(const {suggestion:_0x4e6ad4,meta:_0x54f39e}of this['_findSuggestions'](_0x15ea05,'formatBlock')){if(!_0x54f39e['isOwn'])continue;if(_0x54f39e['isNextTo']||_0x54f39e['containsRangeInObject']||_0x54f39e['isInsideObject'])continue;if(_0x4e6ad4['data']['formatGroupId']!=_0x33f29b['formatGroupId'])continue;if(!Xt(_0x4e6ad4,_0x449f83))continue;const _0x4f2fca=_0x4e6ad4['getFirstRange']();if(_0x4e6ad4['subType']==_0x4b44e7){if(_0x4f2fca['containsRange'](_0x15ea05,!0x0))return null;_0x39cc69=_0x39cc69['isBefore'](_0x4f2fca['start'])?_0x39cc69:_0x4f2fca['start'],_0x21bc17=_0x21bc17['isAfter'](_0x4f2fca['end'])?_0x21bc17:_0x4f2fca['end'],_0x17d585?_0x4f2fca['start']['isBefore'](_0x17d585['getFirstRange']()['start'])?(_0x17d585['removeMarkers'](),_0x17d585=_0x4e6ad4):_0x4e6ad4['removeMarkers']():_0x17d585=_0x4e6ad4;}else{const _0x202d29=_0x15ea05['getIntersection'](_0x4f2fca);this['_cutOutSuggestionMarker'](_0x4e6ad4,_0x202d29);}}const _0x4eefc7=this['editor']['plugins']['get']('Users')['me'],_0x4ed9e=_0xd42815(),_0x22b64d=_0x4eefc7['id'];if(_0x17d585)return this['_setSuggestionRange'](_0x17d585,this['_model']['createRange'](_0x39cc69,_0x21bc17)),_0x17d585;{const _0x2ab82a=this['_setSuggestionData']({'id':_0x4ed9e,'type':'formatBlock:'+_0x4b44e7,'data':_0x33f29b,'createdAt':new Date(),'authorId':_0x22b64d,'attributes':_0x449f83});return this['_addSuggestionMarker']('formatBlock:'+_0x4b44e7,_0x4ed9e,_0x22b64d,this['_model']['createRange'](_0x39cc69,_0x21bc17)),_0x2ab82a;}}['markMultiRangeBlockFormat'](_0x31c0c3,_0x456469,_0x1be753=[],_0x10c398=null,_0xc13f76={}){_0x456469['formatGroupId']||(_0x456469['formatGroupId']=_0x456469['commandName']);const _0x28c2be=_0x31c0c3[0x0];_0x456469['multipleBlocks']=_0x28c2be['is']('range'),_0x10c398=_0x10c398||Lt(_0x456469);const _0x14b991=_0x1be753['map'](_0x1f7aa3=>zt(_0x1f7aa3,this['_model'])),_0x261dc2=_0x28c2be['is']('range')?_0x31c0c3:_0x31c0c3['map'](_0x37eff6=>zt(_0x37eff6,this['_model']));if(this['_trackingSessionId']&&(_0xc13f76['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30db18=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10c398,'accept');return this['forceDefaultExecution'](()=>_0x30db18(_0x261dc2,_0x456469,_0xc13f76)),null;}_0x14b991['push'](..._0x261dc2);let _0x37fe2d=!0x0;for(const _0x50b46f of _0x14b991)if(!this['_rangeIsInLocalUserInsertion'](_0x50b46f)){_0x37fe2d=!0x1;break;}if(_0x37fe2d&&'always'!==this['_trackFormatChanges']){const _0x19fdfc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10c398,'accept');return this['forceDefaultExecution'](()=>_0x19fdfc(_0x261dc2,_0x456469,_0xc13f76)),null;}const _0x312296=this['editor']['plugins']['get']('Users')['me'];for(const _0x1374f7 of this['getSuggestions']()){const _0x279ee6=_0x1374f7['data'];if(_0x1374f7['author']['id']!=_0x312296['id'])continue;if('formatBlock'!=_0x1374f7['type']||_0x279ee6['formatGroupId']!=_0x456469['formatGroupId'])continue;if(!Xt(_0x1374f7,_0xc13f76))continue;const _0x19abcd=_0x1374f7['subType']==_0x10c398;for(let _0x2157db=0x0;_0x2157db<_0x261dc2['length'];_0x2157db++){const _0x5ad2f8=_0x261dc2[_0x2157db];for(const _0x4e710e of _0x1374f7['getMarkers']()){const _0x4ca62e=_0x4e710e['getRange']();if(_0x5ad2f8['isEqual'](_0x4ca62e)){_0x19abcd?(_0x261dc2['splice'](_0x2157db,0x1),_0x2157db--):_0x1374f7['removeMarker'](_0x4e710e['name']);break;}}}}if(0x0==_0x261dc2['length'])return null;const _0x5bfd28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10c398,'join');for(const _0x216a52 of this['getSuggestions']()){const _0x231a2e=_0x216a52['data'];if(_0x216a52['author']['id']==_0x312296['id']&&('formatBlock'==_0x216a52['type']&&_0x231a2e['formatGroupId']==_0x456469['formatGroupId']&&_0x216a52['subType']==_0x10c398&&Xt(_0x216a52,_0xc13f76)&&(_0x5bfd28(_0x216a52['getRanges'](),_0x261dc2)||_0x5bfd28(_0x261dc2,_0x216a52['getRanges']())))){for(const _0x4d1df4 of _0x261dc2)_0x216a52['addRange'](_0x4d1df4);return _0x216a52;}}const _0xa7fca5=_0xd42815(),_0x2b8385=_0x312296['id'],_0x17c822='formatBlock:'+_0x10c398,_0x459a86=this['_setSuggestionData']({'id':_0xa7fca5,'type':_0x17c822,'data':_0x456469,'createdAt':new Date(),'authorId':_0x2b8385,'attributes':_0xc13f76});for(const _0x2df099 of _0x261dc2)this['_addSuggestionMarker'](_0x17c822,_0xa7fca5,_0x2b8385,_0x2df099,T['getMultiRangeId']());return _0x459a86;}['markDeletion'](_0x4ebb12,_0x39cf58=null,_0x17f303={}){if(_0x4ebb12['isCollapsed'])return null;const _0x39b7ae=this['editor']['plugins']['get']('Users')['me'],_0x29a546=new _0x1eeb47(_0x4ebb12['start'],_0x4ebb12['end']);this['_trackingSessionId']&&(_0x17f303['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x483d53,meta:_0x4f5956}of this['_findSuggestions'](_0x29a546,'insertion'))if(_0x4f5956['isOwn']&&!_0x4f5956['isNextTo']){if(_0x483d53['isMultiRange']){const _0x5e330f=_0x483d53['getRanges']()['filter'](_0x2fb8c4=>'$graveyard'!=_0x2fb8c4['root']['rootName']);_0x5e330f['every'](_0x3112ef=>_0x29a546['containsRange'](_0x3112ef,!0x0))&&_0x483d53['discard']();if(_0x5e330f['some'](_0x1214e6=>_0x1214e6['containsRange'](_0x29a546,!0x0))){const _0x1f9f14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39cf58,'accept');return this['forceDefaultExecution'](()=>_0x1f9f14([_0x29a546],null,_0x17f303)),null;}}else{const _0x3b1217=_0x29a546['getIntersection'](_0x483d53['getFirstRange']());null!==_0x3b1217&&_0x483d53['_onDiscard']([_0x3b1217],null,_0x17f303);}}if(_0x29a546['detach'](),_0x29a546['isCollapsed']||'$graveyard'==_0x29a546['root']['rootName'])return null;let _0x47b5ca=null,_0x12b492=_0x29a546['start'],_0x2a3814=_0x29a546['end'];const _0x25eabf=this['_findSuggestions'](_0x29a546,'deletion');for(const {suggestion:_0x269b76,meta:_0x2da3c1}of _0x25eabf){const _0x4a2043=this['_model']['createRange'](_0x12b492,_0x2a3814);if(_0x2da3c1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2da3c1['containsRangeInObject']&&!_0x2da3c1['isInsideObject'])){if(_0x269b76['isMultiRange']){if(!Xt(_0x269b76,_0x17f303))continue;let _0xd1a213=!0x0;for(const _0x166000 of _0x269b76['getRanges']()){if(_0x166000['containsRange'](_0x4a2043,!0x0))return _0x269b76;_0x4a2043['containsRange'](_0x166000)||(_0xd1a213=!0x1);}_0xd1a213&&_0x269b76['discard']();}else{const _0x20a90b=_0x269b76['getFirstRange']();if(_0x20a90b['containsRange'](_0x4a2043,!0x0))return _0x269b76;if(!Xt(_0x269b76,_0x17f303)){_0x4a2043['containsRange'](_0x20a90b)?_0x269b76['removeMarkers']():_0x20a90b['containsPosition'](_0x12b492)?_0x12b492=_0x20a90b['end']:_0x20a90b['containsPosition'](_0x2a3814)&&(_0x2a3814=_0x20a90b['start']);continue;}_0x12b492=_0x12b492['isBefore'](_0x20a90b['start'])?_0x12b492:_0x20a90b['start'],_0x2a3814=_0x2a3814['isAfter'](_0x20a90b['end'])?_0x2a3814:_0x20a90b['end'],_0x17f303=Object['assign']({},_0x269b76['attributes']),_0x47b5ca?_0x20a90b['start']['isBefore'](_0x47b5ca['getFirstRange']()['start'])?(_0x47b5ca['removeMarkers'](),_0x47b5ca=_0x269b76):_0x269b76['removeMarkers']():_0x47b5ca=_0x269b76;}}}if(_0x47b5ca)return this['_setSuggestionRange'](_0x47b5ca,this['_model']['createRange'](_0x12b492,_0x2a3814)),_0x47b5ca;{const _0x5e1de1=_0xd42815(),_0x2baa07=this['_model']['createRange'](_0x12b492,_0x2a3814),_0x57d45f=_0x39b7ae['id'],_0x1e816d=_0x39cf58?'deletion:'+_0x39cf58:'deletion',_0x3c88e7=this['_setSuggestionData']({'id':_0x5e1de1,'type':_0x1e816d,'createdAt':new Date(),'authorId':_0x57d45f,'attributes':_0x17f303});return this['_addSuggestionMarker'](_0x1e816d,_0x5e1de1,_0x57d45f,_0x2baa07),_0x3c88e7;}}['markMultiRangeDeletion'](_0x1ae1f4,_0x40f869='multi',_0x1e7f81={}){const _0x57a64b=this['editor']['plugins']['get']('Users')['me'],_0x310fd8=_0x1ae1f4['map'](_0x420a04=>new _0x1eeb47(_0x420a04['start'],_0x420a04['end'])),_0xc34d78=new Set();this['_trackingSessionId']&&(_0x1e7f81['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x914882,meta:_0x223b7f}of this['_findSuggestions'](_0x310fd8,'insertion'))_0x223b7f['isOwn']&&!_0x223b7f['isNextTo']&&_0xc34d78['add'](_0x914882);for(const _0x1932e2 of _0xc34d78)if(_0x1932e2['isMultiRange']){const _0x49b201=_0x1932e2['getRanges']();(!_0x1932e2['attributes']||!_0x1932e2['attributes']['skipNestingCheck'])&&(_0x49b201['every'](_0x45b0a5=>_0x310fd8['some'](_0x411611=>_0x411611['containsRange'](_0x45b0a5,!0x0)))&&_0x1932e2['discard']());if(_0x310fd8['every'](_0x31d224=>_0x49b201['some'](_0x4218d0=>_0x4218d0['containsRange'](_0x31d224,!0x0)))){const _0x4f7c4b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40f869,'accept');return this['forceDefaultExecution'](()=>_0x4f7c4b(_0x1ae1f4,null,_0x1e7f81)),null;}}else{const _0x282ef1=_0x1932e2['getFirstRange']();_0x310fd8['some'](_0x732c14=>_0x732c14['containsRange'](_0x282ef1,!0x0))&&_0x1932e2['discard']();if(_0x310fd8['every'](_0x5b9a4c=>_0x282ef1['containsRange'](_0x5b9a4c,!0x0))){const _0x35b31d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40f869,'accept');return this['forceDefaultExecution'](()=>_0x35b31d(_0x310fd8,null,_0x1e7f81)),null;}}const _0x222832=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40f869,'join');let _0x49dd66=null;for(const _0x156a04 of this['getSuggestions']())if(_0x156a04['author']['id']==_0x57a64b['id']&&_0x156a04['isInContent']&&'deletion'==_0x156a04['type']&&_0x156a04['subType']==_0x40f869&&Xt(_0x156a04,_0x1e7f81)&&(_0x222832(_0x156a04['getRanges'](),_0x310fd8)||_0x222832(_0x310fd8,_0x156a04['getRanges']()))){if(_0x49dd66){if(_0x156a04['commentThread']&&_0x156a04['commentThread']['length'])continue;for(const _0x41058c of _0x156a04['getRanges']())_0x49dd66['isIntersectingWithRange'](_0x41058c)||_0x49dd66['addRange'](_0x41058c);_0x156a04['removeMarkers']();}else{_0x49dd66=_0x156a04;for(const _0x5e3109 of _0x310fd8)_0x156a04['isIntersectingWithRange'](_0x5e3109)||_0x156a04['addRange'](_0x5e3109);}}if(_0x49dd66)return _0x49dd66;_0xc34d78['clear']();for(const {suggestion:_0x4ef50e,meta:_0x2282ba}of this['_findSuggestions'](_0x310fd8,'deletion'))_0x2282ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2282ba['containsRangeInObject']&&!_0x2282ba['isInsideObject'])&&Xt(_0x4ef50e,_0x1e7f81)&&_0xc34d78['add'](_0x4ef50e);for(const _0x2d1c1b of _0xc34d78){const _0x490310=_0x2d1c1b['getRanges']();if(!_0x1e7f81||!_0x1e7f81['skipNestingCheck']){if(_0x310fd8['every'](_0x234dca=>_0x490310['some'](_0x3cfbdf=>_0x3cfbdf['containsRange'](_0x234dca,!0x0))))return _0x2d1c1b;}(!_0x2d1c1b['attributes']||!_0x2d1c1b['attributes']['skipNestingCheck'])&&(_0x490310['every'](_0xd40b97=>_0x310fd8['some'](_0x1aeb25=>_0x1aeb25['containsRange'](_0xd40b97,!0x0)))&&_0x2d1c1b['discard']());}const _0x45066a=_0xd42815(),_0xef9af6=_0x57a64b['id'],_0x5d97ea='deletion:'+_0x40f869,_0x39415f=this['_setSuggestionData']({'id':_0x45066a,'type':_0x5d97ea,'createdAt':new Date(),'authorId':_0xef9af6,'attributes':_0x1e7f81});for(const _0x4de772 of _0x310fd8)_0x4de772['detach'](),_0x4de772['isCollapsed']||'$graveyard'==_0x4de772['root']['rootName']||this['_addSuggestionMarker'](_0x5d97ea,_0x45066a,_0xef9af6,_0x4de772,T['getMultiRangeId']());return _0x39415f;}['markAttributeChange'](_0x104846,_0x10462e,_0x25c0c8,_0x390a27,_0x3696ba){if(_0x104846['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3fc66b=this['editor']['plugins']['get']('Users')['me']['id'],_0x4ed4b2=Array['from'](this['_suggestions']['values']())['filter'](_0x3c5cd0=>'attribute'==_0x3c5cd0['type']&&_0x3c5cd0['data']['key']==_0x10462e&&_0x3c5cd0['isIntersectingWithRange'](_0x104846));if(this['_trackingSessionId']&&(_0x3696ba['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x35e5aa=this['_findSuggestions'](_0x104846,'insertion')['filter'](({meta:_0xa1203c})=>_0xa1203c['isOwn']&&!_0xa1203c['isInsideObject']&&!_0xa1203c['isNextTo'])['map'](({suggestion:_0x1c736e})=>_0x1c736e);_0x4ed4b2['unshift'](..._0x35e5aa);}const _0x1b4b41=new Map([[_0x104846,_0x25c0c8]]);for(const _0x1dd97d of _0x4ed4b2){const _0x20e1b3='attribute'==_0x1dd97d['type']?_0x1dd97d['data']['oldValue']:void 0x0,_0x5eef0a=_0x1dd97d['getFirstRange'](),_0x2088f0=Array['from'](_0x1b4b41['keys']())['find'](_0x4786b4=>_0x4786b4['isIntersecting'](_0x5eef0a));if(!_0x2088f0)continue;const _0x829119=_0x2088f0['getDifference'](_0x5eef0a);this['_isBlockAttribute'](_0x10462e)&&'insertion'==_0x1dd97d['type']&&0x0!=_0x829119['length']||(_0x1b4b41['delete'](_0x2088f0),_0x829119['forEach'](_0x3ac0ef=>{_0x1b4b41['set'](_0x3ac0ef,_0x25c0c8);}),'insertion'!=_0x1dd97d['type']&&_0x20e1b3!=_0x390a27&&_0x1b4b41['set'](_0x2088f0['getIntersection'](_0x5eef0a),_0x20e1b3));}const _0x2b21f3=[];for(const [_0x11db9e,_0x1a12ee]of _0x1b4b41){const _0x4bf095=_0xd42815(),_0x38d8a1={'key':_0x10462e,'oldValue':_0x1a12ee,'newValue':_0x390a27};_0x10462e['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':_0x10462e});const _0x2c086b=('attribute:'+(_0x10462e+'|'+Lt({'newValue':_0x390a27})))['substring'](0x0,0x3c),_0x586bc8=this['_setSuggestionData']({'id':_0x4bf095,'type':_0x2c086b,'data':_0x38d8a1,'createdAt':new Date(),'authorId':_0x3fc66b,'attributes':_0x3696ba});_0x2b21f3['push'](_0x586bc8),this['_addSuggestionMarker'](_0x2c086b,_0x4bf095,_0x3fc66b,_0x11db9e);}return _0x2b21f3;}['enableDefaultAttributesIntegration'](_0x203353){this['enableCommand'](_0x203353,(_0x3bc0b8,..._0x4cf8db)=>{this['recordAttributeChanges'](()=>{_0x3bc0b8(..._0x4cf8db);});});}['registerBlockAttribute'](_0x3d4c87){this['_blockAttributeKeys']['add'](_0x3d4c87);}['registerInlineAttribute'](_0x50bf12){this['_inlineAttributeKeys']['add'](_0x50bf12);}['startTrackingSession'](_0x169ded){return this['_trackingSessionId']=void 0x0!==_0x169ded?_0x169ded:_0xd42815(),this['_trackingSessionId'];}['_getAttributeKey'](_0x22e671){return'attribute'==_0x22e671['type']?_0x22e671['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x221727,_0x5a04dc){const _0x16db41=_0x221727['getFirstMarker']();this['_model']['change'](_0x3080c5=>{_0x3080c5['updateMarker'](_0x16db41,{'range':_0x5a04dc});});}['_addThreadToSuggestion'](_0x1d3ce6){const _0x3fb73a=_0x1d3ce6['id'],_0x160012=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3fb73a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x160012,'threadId':_0x3fb73a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x50afcf=this['_commentsRepository']['getCommentThread'](_0x3fb73a);_0x50afcf['unbind']('isRemovable'),_0x50afcf['isRemovable']=!0x1,_0x1d3ce6['commentThread']=_0x50afcf;}['_checkSuggestionCorrectness'](_0x2149fb,_0x2d45ea,_0x4896c9,_0x3943b3){if(_0x2149fb['type']!=_0x2d45ea||_0x2149fb['subType']!=_0x4896c9||_0x2149fb['creator']['id']!=_0x3943b3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x56d199('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a78d6,_0x400d5){const _0x46c217=_0x1a78d6['getFirstRange']();if(_0x400d5['isEqual'](_0x46c217))_0x1a78d6['removeMarkers']();else{if(_0x46c217['containsRange'](_0x400d5)){const _0x1fa235=this['_model']['createPositionAt'](_0x400d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a78d6,this['_model']['createRange'](_0x46c217['start'],_0x1fa235));const _0x34b741=_0xd42815(),_0x10bcf8=_0x1a78d6['creator']['id'],_0x481932=_0x1a78d6['type']+':'+_0x1a78d6['subType'];this['_setSuggestionData']({'id':_0x34b741,'type':_0x481932,'createdAt':new Date(),'authorId':_0x10bcf8,'data':_0x1a78d6['data'],'attributes':_0x1a78d6['attributes']});const _0x12e273=this['_model']['createPositionAt'](_0x400d5['end']['parent'],'after'),_0x338d6d=this['_model']['createRange'](_0x12e273,_0x46c217['end']);this['_addSuggestionMarker'](_0x481932,_0x34b741,_0x10bcf8,_0x338d6d);}else{if(_0x46c217['containsPosition'](_0x400d5['start'])){const _0x37b0e2=this['_model']['createPositionAt'](_0x400d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a78d6,this['_model']['createRange'](_0x46c217['start'],_0x37b0e2));}else{const _0x3d2a27=this['_model']['createPositionAt'](_0x400d5['end']['parent'],'after');this['_setSuggestionRange'](_0x1a78d6,this['_model']['createRange'](_0x3d2a27,_0x46c217['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2890b5){for(const {suggestion:_0x6587fc,meta:_0x41ff02}of this['_findSuggestions'](_0x2890b5,'insertion')){if(!_0x41ff02['isOwn'])continue;const _0x1f0566=_0x6587fc['getRanges']();for(const _0xfae468 of _0x1f0566)if(!_0x2890b5['getDifference'](_0xfae468)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x17d6b0){const _0x8ec93a=this['editor']['plugins']['get']('Users')['getUser'](_0x17d6b0);if(!_0x8ec93a)throw new _0x56d199('track-changes-user-not-found',this);return _0x8ec93a;}['_getExternalAuthor'](_0x507997){const _0x1351ec=this['editor']['plugins']['get']('Users'),_0x4e400d=_0x2c9fe7('external:'+_0x507997),_0x4bbb33=_0x1351ec['getUser'](_0x4e400d);return _0x4bbb33||_0x1351ec['addUser']({'id':_0x4e400d,'name':_0x507997});}['_createSuggestion'](_0x1fa4cd,_0x408917,_0x45537d,_0x2f9bb3,_0x486e9b,_0x3b86b3){const _0x20115e=this['_getAuthorFromId'](_0x2f9bb3),_0x4b19b6=this['_suggestionFactory']['buildSuggestion'](_0x1fa4cd,_0x408917,_0x45537d,_0x20115e,_0x486e9b,_0xf138c5=>{this['_updateSuggestionData'](_0x45537d,{'attributes':_0xf138c5});const _0x580cd9=this['getSuggestion'](_0x45537d);this['_joinWithAdjacentSuggestions'](new Set([_0x580cd9])),this['_refreshSuggestionsChain'](new Set([_0x580cd9]));},_0x3b86b3);return this['listenTo'](_0x4b19b6,'accept',()=>{this['_updateSuggestionData'](_0x45537d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4b19b6,'discard',()=>{this['_updateSuggestionData'](_0x45537d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x45537d,_0x4b19b6),this['_suggestionState']['set'](_0x4b19b6,'notReady'),_0x4b19b6;}['_splitMarkerName'](_0x6292c4){const _0x2efcd5=_0x6292c4['split'](':');return{'group':_0x2efcd5[0x0],'type':_0x2efcd5[0x1],'subType':_0x2efcd5['length']>=0x5?_0x2efcd5[0x2]:null,'id':_0x2efcd5['length']<0x5?_0x2efcd5[0x2]:_0x2efcd5[0x3],'authorId':_0x2efcd5['length']<0x5?_0x2efcd5[0x3]:_0x2efcd5[0x4],'markerCount':0x6==_0x2efcd5['length']?_0x2efcd5[0x5]:null};}['_breakSuggestionMarker'](_0x19c048,_0x859948,_0x1359e2){const _0x1ae815=_0x19c048['getFirstRange'](),_0x1af45d=_0x1ae815['start'],_0x285a6f=_0x1ae815['end'];this['_setSuggestionRange'](_0x19c048,this['_model']['createRange'](_0x1af45d,_0x859948));const _0x2a3699=_0xd42815(),_0x321746=_0x19c048['creator']['id'],_0x180692=_0x19c048['type']+(_0x19c048['subType']?':'+_0x19c048['subType']:'');this['_setSuggestionData']({'id':_0x2a3699,'type':_0x180692,'createdAt':new Date(),'authorId':_0x321746,'originalSuggestionId':_0x19c048['_originalSuggestionId']||_0x19c048['id'],'attributes':_0x19c048['attributes'],'data':_0x19c048['data']});const _0x42c4b2=this['_getAttributeKey'](_0x19c048);('formatBlock'==_0x19c048['type']||_0x42c4b2&&this['_isBlockAttribute'](_0x42c4b2))&&(_0x1359e2=this['_model']['createPositionBefore'](_0x1359e2['parent'])),this['_addSuggestionMarker'](_0x180692,_0x2a3699,_0x321746,this['_model']['createRange'](_0x1359e2,_0x285a6f));}['_findSuggestions'](_0x1b1602,_0x123e46=null){const _0x1a67c1=[],_0x2229d1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1b1602)||(_0x1b1602=[_0x1b1602]);for(const _0x5c3da4 of this['getSuggestions']()){if(!_0x5c3da4['isInContent'])continue;if(_0x123e46&&_0x5c3da4['type']!=_0x123e46)continue;let _0x36b844=!0x1;for(const _0x537bda of _0x5c3da4['getRanges']()){for(const _0x1c59cd of _0x1b1602){const _0x554289=_0x1c59cd['start']['isEqual'](_0x537bda['end'])||_0x1c59cd['end']['isEqual'](_0x537bda['start']);if(_0x554289||_0x1c59cd['getIntersection'](_0x537bda)){const _0x5c9082=_0x1c59cd['containsRange'](_0x537bda)&&Ft(this['_model']['schema'],_0x537bda['start'],_0x1c59cd),_0x46076c=_0x537bda['containsRange'](_0x1c59cd)&&Ft(this['_model']['schema'],_0x1c59cd['start'],_0x537bda);_0x1a67c1['push']({'suggestion':_0x5c3da4,'meta':{'isOwn':_0x2229d1==_0x5c3da4['author'],'isNextTo':_0x554289,'isInsideObject':_0x5c9082,'containsRangeInObject':_0x46076c}}),_0x36b844=!0x0;break;}}if(_0x36b844)break;}}return _0x1a67c1;}['_addSuggestionMarker'](_0x16260d,_0x52379c,_0x58effe,_0x54a01b,_0x22ac7e){this['_model']['change'](_0x453577=>{let _0x35d69b='suggestion:'+_0x16260d+':'+_0x52379c+':'+_0x58effe;_0x22ac7e&&(_0x35d69b=_0x35d69b+':'+_0x22ac7e),_0x453577['addMarker'](_0x35d69b,{'range':_0x54a01b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x301759){const _0x56684d=_0x301759['previous'],_0x18091d=_0x301759['next'];_0x301759['previous']=null,_0x301759['next']=null,null!=_0x56684d&&_0x56684d['next']==_0x301759&&(_0x56684d['next']=_0x18091d),null!=_0x18091d&&_0x18091d['previous']==_0x301759&&(_0x18091d['previous']=_0x56684d),'ready'==this['_suggestionState']['get'](_0x301759)&&(this['_suggestionState']['set'](_0x301759,'removed'),this['fire']('suggestionUnloaded',_0x301759,_0x56684d,_0x18091d));}['_setSuggestionData'](_0x5f0eef){const _0x3a5705=_0x5f0eef['id'],_0x4a54ef=this['addSuggestionData'](_0x5f0eef);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d31bc=this['editor']['plugins']['get']('PendingActions'),_0x55d4ea=_0x4a54ef['hasComments'],_0x564287=_0x4a54ef['subType']?_0x4a54ef['type']+':'+_0x4a54ef['subType']:_0x4a54ef['type'],_0x38d1bc=this['editor']['locale'],_0x502b82=_0x1d31bc['add'](o(_0x38d1bc,'PENDING_ACTION_SUGGESTION')),_0xed7d81={'id':_0x3a5705,'type':_0x564287,'hasComments':_0x55d4ea,'data':_0x5f0eef['data']||null,'originalSuggestionId':_0x5f0eef['originalSuggestionId']||null,'attributes':_0x4a54ef['attributes']};this['_adapter']['addSuggestion'](_0xed7d81)['then'](_0x21dcc5=>{_0x4a54ef['_saved']=!0x0,_0x1d31bc['remove'](_0x502b82),_0x21dcc5&&_0x21dcc5['createdAt']&&(this['_suggestions']['get'](_0x3a5705)['createdAt']=_0x21dcc5['createdAt']);})['catch'](_0x1ab576=>{throw _0x31a30e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4a54ef['discard']();}),_0x4a54ef['stopListening'](),this['_suggestions']['delete'](_0x4a54ef['id']),this['_suggestionState']['delete'](_0x4a54ef),_0x1ab576;});}return _0x4a54ef;}['_isBlockAttribute'](_0x2f4acf){return this['_blockAttributeKeys']['has'](_0x2f4acf);}['_isInlineAttribute'](_0x6da237){return this['_inlineAttributeKeys']['has'](_0x6da237);}['_updateSuggestionData'](_0x1f2763,_0x46dbfb){const _0x1bd5e8=this['editor']['plugins']['get']('PendingActions'),_0x84e914=this['getSuggestion'](_0x1f2763);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x84e914['_saved']){const _0x5191e1=_0x1bd5e8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1f2763,_0x46dbfb)['then'](()=>{_0x1bd5e8['remove'](_0x5191e1);});}else _0x84e914['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1f2763,_0x46dbfb);});}}['_getSuggestionData'](_0x222c58){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x56d199('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x222c58);}['_handleNewSuggestionMarker'](_0x7974a1){const {id:_0x1e4566,type:_0x57e495,subType:_0x2608f1,authorId:_0x23950d}=this['_splitMarkerName'](_0x7974a1),_0x4e2b45=this['_suggestions']['get'](_0x1e4566)||this['_createSuggestion'](_0x57e495,_0x2608f1,_0x1e4566,_0x23950d,{});switch(this['_checkSuggestionCorrectness'](_0x4e2b45,_0x57e495,_0x2608f1,_0x23950d),this['_suggestionState']['get'](_0x4e2b45)){case'notReady':this['_getSuggestionData'](_0x1e4566)['then'](_0x275d68=>{let _0xfd51e6=Promise['resolve']();_0x275d68['hasComments']&&(_0xfd51e6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e4566})),_0xfd51e6['then'](()=>{this['addSuggestionData'](_0x275d68)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4e2b45,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e4566,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4e2b45,'ready'),this['fire']('suggestionLoaded',_0x4e2b45);break;case'ready':this['fire']('suggestionChanged',_0x4e2b45);}return _0x4e2b45['addMarkerName'](_0x7974a1),_0x4e2b45;}['_refreshSuggestionsChain'](_0x2e2794){const _0x2f8cd8=Array['from'](_0x2e2794),_0x13e9d9=_0x2f8cd8['filter'](_0x1fbc11=>'attribute'==_0x1fbc11['type']);this['_refreshAttributeSuggestionsChain'](_0x13e9d9);const _0x391e3d=_0x2f8cd8['filter'](_0x4ed171=>!_0x4ed171['isMultiRange']&&'attribute'!=_0x4ed171['type']),_0x13b788=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x157782=>!_0x157782['isMultiRange']&&'attribute'!=_0x157782['type']),_0x239ab1=_0x13b788['filter'](_0x5af5c8=>!_0x2e2794['has'](_0x5af5c8)),_0x11a336=new Map(_0x13b788['map'](_0x384226=>[_0x384226,this['_suggestionFactory']['getSuggestionCallback'](_0x384226['type'],_0x384226['subType'],'chain')])),_0x51375a=new Map(_0x13b788['map'](_0x3e8cd7=>[_0x3e8cd7,_0x3e8cd7['getFirstRange']()])),_0x3d1f6d=new Set(),_0x130120=new Set();for(let _0x51b1c6=0x0;_0x51b1c6<_0x391e3d['length'];_0x51b1c6++)_0x3ae496(_0x391e3d[_0x51b1c6],_0x391e3d,_0x51b1c6+0x1);for(let _0x3310f7=0x0;_0x3310f7<_0x391e3d['length'];_0x3310f7++)_0x3ae496(_0x391e3d[_0x3310f7],_0x239ab1,0x0);const _0x5b3647=new Set();for(let _0x3dccca=0x0;_0x3dccca<_0x391e3d['length'];_0x3dccca++){const _0x402be=_0x391e3d[_0x3dccca];!_0x130120['has'](_0x402be)&&_0x402be['previous']&&(_0x5b3647['add'](_0x402be['previous']),_0x402be['previous']['next']===_0x402be&&(_0x402be['previous']['next']=null),_0x402be['previous']=null),!_0x3d1f6d['has'](_0x402be)&&_0x402be['next']&&(_0x5b3647['add'](_0x402be['next']),_0x402be['next']['previous']===_0x402be&&(_0x402be['next']['previous']=null),_0x402be['next']=null);}function _0x3ae496(_0x376dd1,_0x52c6c0,_0x10ab54){for(let _0x3af08d=_0x10ab54;_0x3af08d<_0x52c6c0['length'];_0x3af08d++){const _0x4e6538=_0x205117(_0x376dd1,_0x52c6c0[_0x3af08d]);_0x4e6538&&(_0x4e6538[0x0]['next']=_0x4e6538[0x1],_0x4e6538[0x1]['previous']=_0x4e6538[0x0],_0x3d1f6d['add'](_0x4e6538[0x0]),_0x130120['add'](_0x4e6538[0x1]));}}function _0x205117(_0x5a1a5d,_0x57329d){if(_0x5a1a5d['author']['id']!==_0x57329d['author']['id'])return null;const _0x3dcc75=_0x11a336['get'](_0x5a1a5d)(_0x5a1a5d,_0x57329d,_0x51375a['get'](_0x5a1a5d),_0x51375a['get'](_0x57329d));if(!_0x3dcc75)return null;return _0x11a336['get'](_0x57329d)(_0x5a1a5d,_0x57329d,_0x51375a['get'](_0x5a1a5d),_0x51375a['get'](_0x57329d))?_0x3dcc75[0x1]['commentThread']&&_0x3dcc75[0x1]['commentThread']['length']?null:_0x3dcc75:null;}_0x5b3647['size']&&this['_refreshSuggestionsChain'](_0x5b3647);}['_refreshAttributeSuggestionsChain'](_0x13aafd){if(0x0==_0x13aafd['length'])return;const _0x2ea38b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x60419e=>'attribute'==_0x60419e['type']&&_0x60419e['_isDataLoaded']),_0x3ccf36=[],_0x44bcdc=new Map();for(const _0x45267b of _0x2ea38b){const _0x46f767=_0x2c9fe7(_0x45267b['attributes']);_0x44bcdc['has'](_0x46f767)||(_0x44bcdc['set'](_0x46f767,_0x3ccf36['length']),_0x3ccf36['push']([]));const _0x5236a6=_0x44bcdc['get'](_0x46f767);_0x3ccf36[_0x5236a6]['push'](_0x45267b);}!(function(){_0x3ccf36['sort']((_0x3d76ff,_0x3a6bea)=>{const _0x11979f=_0x3d76ff[0x0]['createdAt'],_0x1309bc=_0x3a6bea[0x0]['createdAt'];return _0x11979f==_0x1309bc?_0x3d76ff[0x0]['attributes']['groupId']<_0x3a6bea[0x0]['attributes']['groupId']?-0x1:0x1:_0x11979f<_0x1309bc?-0x1:0x1;});for(const _0x4ee224 of _0x3ccf36)_0x4ee224['sort']((_0x317ddf,_0x5128bb)=>_0x317ddf['id']<_0x5128bb['id']?-0x1:0x1);}());for(let _0x576c81=0x0;_0x576c81<_0x3ccf36['length'];_0x576c81++){if(0x0==_0x3ccf36[_0x576c81]['length'])continue;const _0x5a297b=[];for(let _0x3c1508=_0x576c81+0x1;_0x3c1508<_0x3ccf36['length'];_0x3c1508++)0x0!=_0x3ccf36[_0x3c1508]['length']&&_0x1cd89(_0x3ccf36[_0x576c81],_0x3ccf36[_0x3c1508])&&_0x5a297b['push'](_0x3c1508);for(const _0x2a8b01 of _0x5a297b)_0x3ccf36[_0x576c81]=_0x3ccf36[_0x576c81]['concat'](_0x3ccf36[_0x2a8b01]),_0x3ccf36[_0x2a8b01]=[];}for(const _0x1115ba of _0x3ccf36)for(let _0x2f565f=0x0;_0x2f565f<_0x1115ba['length'];_0x2f565f++){const _0x3715b0=_0x1115ba[_0x2f565f+0x1]||null;_0x1115ba[_0x2f565f]['next']!==_0x3715b0&&(_0x1115ba[_0x2f565f]['next']=_0x3715b0);}for(const _0x1c3a1e of _0x3ccf36)for(let _0x6e57f6=0x0;_0x6e57f6<_0x1c3a1e['length'];_0x6e57f6++){const _0x5073b8=_0x1c3a1e[_0x6e57f6-0x1]||null;_0x1c3a1e[_0x6e57f6]['previous']!==_0x5073b8&&(_0x1c3a1e[_0x6e57f6]['previous']=_0x5073b8);}function _0x1cd89(_0x12ef94,_0x578fdf){if(_0x12ef94[0x0]['attributes']['groupId']!==_0x578fdf[0x0]['attributes']['groupId']&&_0x12ef94[0x0]['author']!==_0x578fdf[0x0]['author'])return!0x1;if(!function(_0x9788c1,_0x3c6b41){if(!_0x9788c1['hasComments']&&!_0x3c6b41['hasComments'])return!0x0;if(_0x9788c1['hasComments']&&_0x3c6b41['hasComments'])return!0x1;if(_0x9788c1['hasComments']&&_0x3c6b41['createdAt']<_0x9788c1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3c6b41['hasComments']&&_0x9788c1['createdAt']<_0x3c6b41['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x12ef94[0x0],_0x578fdf[0x0]))return!0x1;const _0x1688c2=Ut(_0x12ef94[0x0]['attributes'],['groupId','trackingSessionId']),_0x25c401=Ut(_0x578fdf[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x108ea8(_0x1688c2,_0x25c401))return!0x1;if(_0x12ef94[0x0]['attributes']['groupId']==_0x578fdf[0x0]['attributes']['groupId'])return!0x0;if(_0x12ef94[0x0]['attributes']['trackingSessionId']!==_0x578fdf[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x12ef94['every'](_0x5acac3=>_0x578fdf['some'](_0x107953=>_0x5acac3['getFirstRange']()['isEqual'](_0x107953['getFirstRange']())))&&_0x578fdf['every'](_0x44f999=>_0x12ef94['some'](_0x53013a=>_0x44f999['getFirstRange']()['isEqual'](_0x53013a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1c4164){const _0x2320a9=Array['from'](_0x1c4164),_0x1277f8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x52b3a1=_0x1277f8['filter'](_0xdc8e7=>!_0x1c4164['has'](_0xdc8e7)),_0x51ff0d=new Map(_0x2320a9['map'](_0x23e7fb=>[_0x23e7fb,this['_suggestionFactory']['getSuggestionCallback'](_0x23e7fb['type'],_0x23e7fb['subType'],'join')])),_0x4473bc=new Map(_0x1277f8['map'](_0x5a5459=>[_0x5a5459,_0x5a5459['getRanges']()]));for(let _0x3ae44a=0x0;_0x3ae44a<_0x2320a9['length'];_0x3ae44a++){if(_0x459543(this,_0x2320a9[_0x3ae44a],_0x2320a9,_0x3ae44a+0x1))return!0x0;}for(let _0xa2931d=0x0;_0xa2931d<_0x2320a9['length'];_0xa2931d++){if(_0x459543(this,_0x2320a9[_0xa2931d],_0x52b3a1,0x0))return!0x0;}return!0x1;function _0x459543(_0x48aa77,_0x197715,_0x443033,_0x2f416f){for(let _0x47c23b=_0x2f416f;_0x47c23b<_0x443033['length'];_0x47c23b++){const _0x4c7591=_0x443033[_0x47c23b];if(_0x4c7591['type']!==_0x197715['type']||_0x4c7591['author']['id']!==_0x197715['author']['id']||_0x4c7591['subType']!==_0x197715['subType'])continue;if(!Qt(_0x197715,_0x4c7591))continue;if('attribute'==_0x197715['type']&&_0x197715['data']['oldValue']!=_0x4c7591['data']['oldValue'])continue;if('attribute'==_0x197715['type']&&_0x48aa77['_isBlockAttribute'](_0x197715['data']['key']))continue;if('formatBlock'==_0x197715['type']){const _0x3bfec7=_0x48aa77['editor']['model'],_0x840c5e=_0x197715['getContainedElement']();if(_0x840c5e&&(_0x3bfec7['schema']['isObject'](_0x840c5e)||_0x3bfec7['schema']['isLimit'](_0x840c5e)))continue;}const _0x1ba129=_0x51ff0d['get'](_0x197715),_0x1a1ddb=_0x4473bc['get'](_0x197715),_0x2bcba2=_0x4473bc['get'](_0x4c7591),_0x17cf05=_0x197715['commentThread']&&_0x197715['commentThread']['length'],_0x282a26=_0x4c7591['commentThread']&&_0x4c7591['commentThread']['length'];if(!_0x17cf05&&_0x1ba129(_0x2bcba2,_0x1a1ddb))return _0x48aa77['_joinSuggestions'](_0x4c7591,_0x197715),_0x4473bc['delete'](_0x197715),!0x0;if(!_0x282a26&&_0x1ba129(_0x1a1ddb,_0x2bcba2))return _0x48aa77['_joinSuggestions'](_0x197715,_0x4c7591),_0x4473bc['delete'](_0x4c7591),!0x0;}return!0x1;}}['_joinSuggestions'](_0x401256,_0x2c93ab){if(_0x401256['isMultiRange']){for(const _0x57050e of _0x2c93ab['getRanges']())_0x401256['addRange'](_0x57050e);}else{const _0x226477=_0x2c93ab['getFirstRange']()['end'];this['_setSuggestionRange'](_0x401256,this['_model']['createRange'](_0x401256['getFirstRange']()['start'],_0x226477));}_0x2c93ab['removeMarkers']();}['_getMarkerAnnouncementText'](_0x21d6a9,_0x5d884b,_0x2eb02a){const _0x3c6490=_0x21d6a9['startsWith']('format')||_0x21d6a9['startsWith']('attribute')?'FORMATTING':_0x21d6a9['toUpperCase']();return o(this['editor']['locale'],_0x5d884b+'_'+_0x3c6490+'_SUGGESTION_ANNOUNCEMENT',_0x2eb02a);}['_initAriaMarkerChangeAnnouncements'](){const _0xbe925e=this['editor'];if(!_0xbe925e['ui'])return;const {ariaLiveAnnouncer:_0x482ca4}=_0xbe925e['ui'];_0x167254(this['_model'],({left:_0x2e6955,entered:_0x2f543d})=>{for(const _0x4bb277 of _0x2e6955){const {group:_0x2a4a1c,type:_0x525ded}=this['_splitMarkerName'](_0x4bb277['name']);if('suggestion'===_0x2a4a1c){_0x482ca4['announce'](this['_getMarkerAnnouncementText'](_0x525ded,'LEAVE'));break;}}for(const _0x10f4a7 of _0x2f543d){const {group:_0x15ec34,type:_0x24a943}=this['_splitMarkerName'](_0x10f4a7['name']);if('suggestion'===_0x15ec34){_0x482ca4['announce'](this['_getMarkerAnnouncementText'](_0x24a943,'ENTER',_0x5443c7(_0x13f5d2)));break;}}});}['_processAttributeChanges'](_0x70a145){if(this['_recordAttributeSuggestions'])return!0x1;const _0x21dfd4=this['editor'],_0x559d64=_0x21dfd4['model']['document']['differ']['getChanges']();if(0x0==_0x559d64['length'])return!0x1;const _0x13ff7e=[],_0x114951=_0x559d64['filter'](_0x50d976=>'attribute'==_0x50d976['type']),_0x9258ab=_0x559d64['filter'](_0x3786b6=>'insert'==_0x3786b6['type']&&'$text'!=_0x3786b6['name']),_0x30c381=_0x559d64['filter'](_0x2bf552=>'remove'==_0x2bf552['type']&&'$text'!=_0x2bf552['name']);for(const _0x17b32d of _0x114951)_0x13ff7e['push']({'key':_0x17b32d['attributeKey'],'newValue':_0x17b32d['attributeNewValue'],'oldValue':_0x17b32d['attributeOldValue'],'range':qt(_0x17b32d['range'],_0x21dfd4['model'])});for(const _0x2be7ab of _0x9258ab){const _0x10ef3a=_0x30c381['find'](_0x5ec2c5=>_0x5ec2c5['position']['isEqual'](_0x2be7ab['position']));_0x10ef3a&&_0x13ff7e['push']({'key':m,'newValue':_0x2be7ab['name'],'oldValue':_0x10ef3a['name'],'range':_0x21dfd4['model']['createRangeOn'](_0x2be7ab['position']['nodeAfter'])});}return 0x0!=_0x13ff7e['length']&&this['_reduceExistingSuggestions'](_0x70a145,_0x13ff7e);}['_processAttributeSuggestions'](_0x3e9759){let _0x31825b=!0x1;const _0x3bcab9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e77ce=>_0x4e77ce['data']['newRange']&&_0x4e77ce['name']['startsWith']('suggestion:attribute:'));for(const _0x3b9ed4 of _0x3bcab9){const {subType:_0x486030,id:_0x5f39da}=this['_splitMarkerName'](_0x3b9ed4['name']),_0x30346e=_0x486030['split']('|')[0x0];for(const _0x21ebaf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x21ebaf['id']!=_0x5f39da&&'attribute'==_0x21ebaf['type']&&_0x21ebaf['data']&&_0x21ebaf['data']['key']==_0x30346e&&_0x21ebaf['getFirstRange']()['isIntersecting'](_0x3b9ed4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x21ebaf,_0x3b9ed4['data']['newRange'],_0x3e9759),_0x31825b=!0x0);}return _0x31825b;}['recordAttributeChanges'](_0x708925){this['_recordAttributeSuggestions']=!0x0,_0x708925();}['_isRegisteredAttribute'](_0x596cac){const _0x593490=this['_isBlockAttribute'](_0x596cac),_0x391b60=this['_isInlineAttribute'](_0x596cac);return _0x593490||_0x391b60;}['_reduceExistingSuggestions'](_0x5411dd,_0x2970dc){if(0x0==_0x2970dc['length'])return!0x1;let _0x3294f7=!0x1;for(const _0x4fa39c of _0x2970dc){const _0x6560c2=this['_findSuggestions'](_0x4fa39c['range'],'attribute')['filter'](_0x249996=>!_0x249996['meta']['isNextTo'])['map'](_0x19e7b0=>_0x19e7b0['suggestion']),_0x1bb1cf=_0x2c9fe7({'newValue':_0x4fa39c['newValue']});_0x6560c2['filter'](_0x505d6c=>{const [_0x3e2d87,_0x40032d]=_0x505d6c['subType']['split']('|');return _0x3e2d87==_0x4fa39c['key']&&_0x40032d!=_0x1bb1cf;})['forEach'](_0x537645=>{this['_reduceSuggestionAttributeRange'](_0x537645,_0x4fa39c['range'],_0x5411dd),_0x3294f7=!0x0;});}return _0x3294f7;}['_reduceSuggestionAttributeRange'](_0x3284b8,_0x4bb287,_0x5c813a){const _0x2db789=_0x3284b8['getFirstRange']()['getDifference'](_0x4bb287);0x0!==_0x2db789['length']?0x1!==_0x2db789['length']?this['_breakSuggestionMarker'](_0x3284b8,_0x4bb287['start'],_0x4bb287['end']):this['_setSuggestionRange'](_0x3284b8,_0x2db789[0x0]):_0x5c813a['removeMarker'](_0x3284b8['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5455c0){this['_editor']=_0x5455c0,this['_model']=_0x5455c0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3da750,_0x4115e4,_0xf6c8fb,_0x5b5517,_0x1ed27,_0x55f7d4,_0x184c24){return new T(this['_model'],{'type':_0x3da750,'subType':_0x4115e4,'id':_0xf6c8fb,'originalSuggestionId':_0x184c24,'author':_0x5b5517,'creator':_0x5b5517,'attributes':_0x1ed27,'onAttributesChange':_0x55f7d4,'onAccept':(..._0x4e983a)=>this['getSuggestionCallback'](_0x3da750,_0x4115e4,'accept')(..._0x4e983a),'onDiscard':(..._0x2481b9)=>this['getSuggestionCallback'](_0x3da750,_0x4115e4,'discard')(..._0x2481b9)});}['registerCustomCallback'](_0x3fe1e1,_0x55fe92,_0x343c6a,_0x3a86c3){const _0x532df9=_0x3fe1e1+':'+_0x55fe92+':'+_0x343c6a;this['_customCallbacks']['set'](_0x532df9,_0x3a86c3);}['getSuggestionCallback'](_0x532f90,_0xc8d126,_0x4f725f){const _0x3ebe9e=_0x532f90+':'+_0xc8d126+':'+_0x4f725f;return this['_customCallbacks']['get'](_0x3ebe9e)||this['_defaultCallbacks']['get'](_0x532f90+':'+_0x4f725f);}['_registerDefaultCallbacks'](){const _0x4ef71=()=>!0x1,_0xaaab7=_0x8497e2=>{_0x8497e2['sort']((_0x3212cc,_0x5ea05d)=>_0x3212cc['start']['isBefore'](_0x5ea05d['start'])?0x1:-0x1),this['_model']['change'](_0x18f9a8=>{for(const _0x1ef628 of _0x8497e2){let _0x1f5329;_0x1f5329=_0x1ef628['end']['isAtEnd']&&_0x1ef628['end']['parent']==_0x1ef628['start']['nodeAfter']?_0x18f9a8['createSelection'](_0x1ef628['start']['nodeAfter'],'on'):_0x18f9a8['createSelection'](_0x1ef628),this['_model']['deleteContent'](_0x1f5329,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xd5c5c=(_0x3671ad,_0x9cb333)=>{_0x9cb333&&this['_model']['change'](_0x101f6d=>{const {commandName:_0x25ea5e,commandParams:_0x2da7f3=[]}=_0x9cb333,_0x49ac7a=_0x3671ad['map'](_0x19b1f6=>(Pt(_0x19b1f6)&&(_0x19b1f6=this['_model']['createRange'](_0x19b1f6['end'])),_0x19b1f6))['filter'](_0x42d854=>'$graveyard'!==_0x42d854['root']['rootName']);if(_0x49ac7a['length']<0x1)return;const _0x23d439=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x583277=>_0x1eeb47['fromRange'](_0x583277));_0x101f6d['setSelection'](_0x49ac7a);for(const _0x443dca of this['_editor']['commands']['commands']())_0x443dca['refresh']();_0x2da7f3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x25ea5e,..._0x2da7f3);const _0x394b15=_0x23d439['filter'](_0x457f53=>'$graveyard'!=_0x457f53['root']['rootName']);_0x394b15['length']>0x0&&_0x101f6d['setSelection'](_0x394b15);for(const _0xf8a14a of _0x23d439)_0xf8a14a['detach']();});},_0x298848=(_0x202f1e,_0x466135)=>0x1==_0x202f1e['length']&&0x1==_0x466135['length']&&_0x202f1e[0x0]['end']['isEqual'](_0x466135[0x0]['start']),_0x30eced=(_0x8f5a63,_0x24cf2d,_0x1c3aa1,_0x59b287)=>Wt(_0x8f5a63,_0x24cf2d,_0x1c3aa1,_0x59b287)?[_0x8f5a63,_0x24cf2d]:Wt(_0x24cf2d,_0x8f5a63,_0x59b287,_0x1c3aa1)?[_0x24cf2d,_0x8f5a63]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4ef71),this['_defaultCallbacks']['set']('insertion:discard',_0xaaab7),this['_defaultCallbacks']['set']('insertion:join',_0x298848),this['_defaultCallbacks']['set']('insertion:chain',_0x30eced),this['_defaultCallbacks']['set']('deletion:accept',_0xaaab7),this['_defaultCallbacks']['set']('deletion:discard',_0x4ef71),this['_defaultCallbacks']['set']('deletion:join',_0x298848),this['_defaultCallbacks']['set']('deletion:chain',_0x30eced),this['_defaultCallbacks']['set']('formatInline:accept',_0xd5c5c),this['_defaultCallbacks']['set']('formatInline:discard',_0x4ef71),this['_defaultCallbacks']['set']('formatInline:join',_0x298848),this['_defaultCallbacks']['set']('formatInline:chain',_0x4ef71),this['_defaultCallbacks']['set']('formatBlock:accept',_0xd5c5c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4ef71),this['_defaultCallbacks']['set']('formatBlock:join',_0x298848),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4ef71),this['_defaultCallbacks']['set']('attribute:accept',_0x4ef71),this['_defaultCallbacks']['set']('attribute:discard',(_0x4d0cc6,_0x499380)=>{if(!_0x499380)return;const _0xbd930a=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2d0f9c=>{if(_0x499380['key']==m)for(const _0x3d58be of _0x4d0cc6){const _0x2d6d83=_0x3d58be['start']['nodeAfter'],_0x2895a4=_0x499380['oldValue'];_0x2d0f9c['rename'](_0x2d6d83,_0x2895a4);}else{if(_0xbd930a['_isBlockAttribute'](_0x499380['key'])){for(const _0x4ee21b of _0x4d0cc6)void 0x0!==_0x499380['oldValue']?_0x2d0f9c['setAttribute'](_0x499380['key'],_0x499380['oldValue'],_0x4ee21b['start']['nodeAfter']):_0x2d0f9c['removeAttribute'](_0x499380['key'],_0x4ee21b['start']['nodeAfter']);}else{for(const _0x17eab0 of _0x4d0cc6)_0x499380['oldValue']?_0x2d0f9c['setAttribute'](_0x499380['key'],_0x499380['oldValue'],_0x17eab0):_0x2d0f9c['removeAttribute'](_0x499380['key'],_0x17eab0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x298848);}}function Ft(_0x5973ee,_0x180464,_0x4f64f9){for(const _0x3cc9c3 of _0x180464['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3cc9c3['root']==_0x3cc9c3)return!0x1;if(!_0x4f64f9['containsItem'](_0x3cc9c3))return!0x1;if(_0x5973ee['isObject'](_0x3cc9c3)||_0x5973ee['isLimit'](_0x3cc9c3))return!0x0;}return!0x1;}function Pt(_0x6d9c70){return _0x6d9c70['end']['parent']==_0x6d9c70['start']['nodeAfter']&&_0x6d9c70['end']['isAtStart'];}function Gt(_0x5c7ceb,_0x3d2152,_0x2a4433,_0x21f370){const _0x1e1838=_0x1b2faa=>!_0x1b2faa['item']['is']('$textProxy')&&!_0x21f370['isObject'](_0x1b2faa['item']),_0x26aee0=_0x5c7ceb['start']['getLastMatchingPosition'](_0x1e1838),_0x16a08f=_0x5c7ceb['end']['getLastMatchingPosition'](_0x1e1838,{'direction':'backward'});return(!_0x5c7ceb['start']['isEqual'](_0x26aee0)||!_0x5c7ceb['end']['isEqual'](_0x16a08f))&&(_0x26aee0['isBefore'](_0x16a08f)?_0x2a4433['updateMarker'](_0x3d2152,{'range':_0x2a4433['createRange'](_0x26aee0,_0x16a08f)}):_0x2a4433['removeMarker'](_0x3d2152),!0x0);}function Lt(_0x53f61a){return _0x2c9fe7(_0x53f61a);}function Jt(_0x542f71){const _0x1407b7=_0x542f71['start']['nodeAfter'];return _0x1407b7&&_0x1407b7['is']('element');}function Kt(_0x1266bc){return Pt(_0x1266bc)||function(_0x10f6c2){return _0x10f6c2['start']['parent']==_0x10f6c2['end']['nodeBefore']&&_0x10f6c2['start']['isAtEnd'];}(_0x1266bc);}function Ht(_0x42e616,_0x376e9b){try{const _0x3ca2ea=_0x42e616['getRange']();for(const _0x3ee53c of _0x376e9b)if(_0x42e616!==_0x3ee53c&&_0x3ca2ea&&_0x3ca2ea['isIntersecting'](_0x3ee53c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x2194d8,_0x4d5029){return null==_0x2194d8['end']['nodeBefore']&&_0x2194d8['end']['parent']==_0x2194d8['start']['nodeAfter']?zt(_0x2194d8['start']['nodeAfter'],_0x4d5029):_0x2194d8;}function zt(_0x19c112,_0x17ba48){const _0x58283f=_0x17ba48['schema']['isObject'](_0x19c112)||_0x17ba48['schema']['isSelectable'](_0x19c112);return _0x17ba48['createRange'](_0x17ba48['createPositionAt'](_0x19c112,'before'),_0x58283f?_0x17ba48['createPositionAfter'](_0x19c112):_0x17ba48['createPositionAt'](_0x19c112,'end'));}function Wt(_0x25aa28,_0x4c01b8,_0x1528b0,_0x156211){return!!Qt(_0x25aa28,_0x4c01b8)&&_0x1528b0['end']['isEqual'](_0x156211['start']);}function Qt(_0x1355ef,_0x51a03b){if(!_0x1355ef['_isDataLoaded']||!_0x51a03b['_isDataLoaded'])return!0x1;const _0x24a416=new Set(Object['keys'](_0x1355ef['attributes'])),_0x295e95=new Set(Object['keys'](_0x51a03b['attributes']));if(_0x24a416['delete']('groupId'),_0x295e95['delete']('groupId'),0x0==_0x24a416['size']&&0x0==_0x295e95['size'])return!0x0;if(_0x24a416['size']!=_0x295e95['size'])return!0x1;const _0x350f1b={..._0x1355ef['attributes']},_0x5163f9={..._0x51a03b['attributes']};return delete _0x350f1b['groupId'],delete _0x5163f9['groupId'],JSON['stringify'](_0x350f1b)==JSON['stringify'](_0x5163f9);}function Xt(_0x50d705,_0x52f768){const _0x262e14=Yt(_0x50d705['attributes']),_0x3008fa=Yt(_0x52f768);if(!_0x50d705['_isDataLoaded'])return!0x1;for(const _0x47eb61 of Object['keys'](_0x3008fa))if(!_0x108ea8(_0x262e14[_0x47eb61],_0x3008fa[_0x47eb61]))return!0x1;return!0x0;}function Yt(_0x31b3d){const _0x5b0299=Object['assign']({},_0x31b3d);return delete _0x5b0299['skipNestingCheck'],delete _0x5b0299['tablePasteChainId'],_0x5b0299;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x376714(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4e3a0b,_0x4eaf9e,_0x5030ac,_0x1fdae0){super(),this['model']=_0x4eaf9e,this['view']=_0x5030ac,this['commentThreadController']=_0x1fdae0,this['_editor']=_0x4e3a0b,this['_acceptCommand']=_0x4e3a0b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4e3a0b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1945ce,_0x4123b4)=>_0x1945ce||_0x4123b4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4b2fde=>_0x4b2fde&&this['_editor']['model']['canEditAt'](_0x4eaf9e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x45036c=>_0x45036c&&this['_editor']['model']['canEditAt'](_0x4eaf9e['getRanges']())),this['_pendingAction']=null,_0x5030ac['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5030ac,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5030ac,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5030ac,'change:isDirty',()=>{_0x5030ac['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 _0x33bd14=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x33bd14);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x4b2ad2{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3cd22d,_0x392e67,_0x43a1b4,_0x878012){super(_0x3cd22d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3fc46c(_0x3cd22d,o(_0x3cd22d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x392e67['authoredAt']),this['bind']('authoredAt')['to'](_0x392e67),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',_0x392e67,'authoredAt',this,'descriptionParts',(_0x1f0f28,_0x977387,_0x24040f)=>{const _0x17f1b7=_0x24040f['map'](_0x561384=>ls(_0x561384['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1f0f28-0x1,_0x392e67['author']['name'],_0x977387?_0x878012['formatDateTime'](_0x977387):'',new DOMParser()['parseFromString'](_0x17f1b7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x16d469(),this['focusTracker']=new _0x429573(),this['keystrokes']=new _0x4624a6(),this['focusCycler']=new _0x2e5f0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1e7768=>_0x1e7768['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x392e67,this['_localUser']=_0x43a1b4,this['_config']=_0x878012,_0x878012['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4beaea(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x431646}=this['_config'];this['commentsListView']=new _0x431646(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',_0x588ab2=>_0x588ab2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x118301,_0x1b953c)=>_0x118301||!!_0x1b953c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x144334}=this['_config'],_0x56101f=new _0x144334(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4ad2a1=_0x56101f['commentInputView'];return _0x56101f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4ad2a1,'value',(_0x24a4ef,_0x1d2c79,_0x314452)=>!!_0x314452||_0x24a4ef&&!_0x1d2c79),_0x4ad2a1['on']('submit',(_0x30061f,_0x4952eb)=>{this['fire']('addComment',_0x4952eb),_0x4ad2a1['editor']['setData']('');}),_0x4ad2a1['on']('cancel',()=>this['focus']()),_0x4ad2a1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x56101f;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x22d87f,_0x5bd30b,_0x4eb0d8,_0x17822f){super(_0x22d87f,_0x5bd30b,_0x4eb0d8,_0x17822f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x785b6b=>_0x785b6b&&_0x785b6b[0x0]?_0x785b6b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x178089,_0x2b3742)=>{let _0x14ed08='';for(const _0xbbb88c of _0x178089)_0x14ed08+='<p>'+ls(_0xbbb88c['content'],_0xbbb88c['color'])+'</p>';return _0x2b3742?_0x14ed08:_0x5b0e39(_0x14ed08,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x17822f['SuggestionView'](_0x22d87f,_0x5bd30b,{'formatDateTime':_0x17822f['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 _0x2542a1=this['bindTemplate'],_0x146116=[this['suggestionView']];return this['commentsListView']&&_0x146116['push'](this['commentsListView']),this['commentThreadInputView']&&_0x146116['push'](this['commentThreadInputView']),_0x146116['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2542a1['if']('isActive','ck-suggestion-wrapper--active'),_0x2542a1['to']('type',_0x396d68=>'ck-suggestion-'+_0x396d68),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':_0x2542a1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x146116};}['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 _0x4b2ad2{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2ccac0,_0x413566,_0x67293c){super(_0x2ccac0),this['_model']=_0x413566,this['_config']=_0x67293c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x413566),this['acceptButton']=this['_createButton'](o(_0x2ccac0,'Accept\x20suggestion'),_0x2f9da5,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2ccac0,'Discard\x20suggestion'),_0x177f88,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x6beb92(_0x2ccac0,_0x413566['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x16d469([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x429573(),this['keystrokes']=new _0x4624a6(),this['focusCycler']=new _0x2e5f0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c3903=>_0x3c3903['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4d4063=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4d4063['innerHTML']=this['description'],this['on']('change:description',(_0x4be935,_0x125ee6,_0x126656)=>{_0x4d4063['innerHTML']=_0x126656;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x476976=this['bindTemplate'],_0x590153=[{'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':_0x476976['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x476976['to']('authoredAt',_0x7b6b4a=>this['_config']['formatDateTime'](_0x7b6b4a))}]}]},{'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']&&_0x590153['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':_0x590153}]};}['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'](_0x1fd52c,_0x47777f,_0xb2a830,_0x4690c7,_0x577b04){const _0x2b99b7=new _0x2103da(this['locale']);return _0x2b99b7['set']({'label':_0x1fd52c,'icon':_0x47777f,'tooltip':!0x0,'tooltipPosition':_0x577b04}),_0x2b99b7['extendTemplate']({'attributes':{'class':_0xb2a830}}),_0x2b99b7['on']('execute',()=>{this['fire'](_0x4690c7,this['_model']['id']);}),_0x2b99b7;}['_setupKeyboardNavigation'](){const _0x245d73=this['element'];this['keystrokes']['listenTo'](_0x245d73);for(const _0x5ec21c of this['focusables'])this['focusTracker']['add'](_0x5ec21c['element']),this['keystrokes']['listenTo'](_0x5ec21c['element']);this['keystrokes']['set']('enter',(_0x350e4c,_0x1f7f6e)=>{_0x245d73===_0x350e4c['target']&&(this['focusCycler']['focusFirst'](),_0x1f7f6e());}),this['keystrokes']['set']('esc',(_0x236f65,_0x43aab1)=>{_0x245d73!==_0x236f65['target']&&(this['focus'](),_0x43aab1());});}}class u extends _0x275754{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x43d1ce,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11460c){super(_0x11460c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32acc1=this['editor']['config'];_0x32acc1['define']('trackChanges.SuggestionThreadView',fe),_0x32acc1['define']('trackChanges.SuggestionView',we),_0x32acc1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32acc1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x54ab67,_0x5c4b45){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4e93f2,_0x5cd954]of this['_handleControllerBuffer']){const _0x5e8e97=this['_suggestionToController']['has'](_0x4e93f2);_0x5e8e97||_0x5cd954?_0x5e8e97&&_0x5cd954&&this['_destroyController'](_0x4e93f2):this['_initializeController'](_0x4e93f2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x54ab67,_0x5c4b45);}['init'](){const _0x5a96ea=this['editor'],_0x169bb3=_0x5a96ea['plugins']['get']('TrackChangesEditing'),_0x2b016b=_0x5a96ea['plugins']['get']('Annotations'),_0x5da2cf=_0x5a96ea['plugins']['get']('EditorAnnotations'),_0x360713=_0x5a96ea['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5da2cf['addSourceCollector'](()=>{const _0x4b398f=[];for(const [_0x8cc76c,_0xd1d888]of Array['from'](this['_suggestionToController'])){const _0x23dc81=_0x8cc76c['getAllAdjacentSuggestions'](),_0x541b32=[];for(const _0x7c0039 of _0x23dc81){if(!_0x7c0039['isInContent'])continue;if(_0x7c0039['isMultiRange']){_0x541b32['push'](..._0x7c0039['getRanges']());continue;}const _0x1db13d=_0x7c0039['getFirstRange']();if(_0x541b32['length']>0x0){const _0x5362df=_0x541b32[0x0]['getJoined'](_0x1db13d);if(_0x5362df){_0x541b32[0x0]=_0x5362df;continue;}}_0x541b32['push'](_0x1db13d);}_0x4b398f['push']([_0xd1d888['view'],_0x541b32]);}return _0x4b398f;}),this['listenTo'](_0x169bb3,'suggestionLoaded',(_0x5c2f8a,_0x18f259)=>{this['listenTo'](_0x18f259,'change:previous',(_0x45d0b7,_0x1b6819,_0x18449f,_0x497640)=>{_0x18f259['isInContent']&&(null==_0x18449f?(this['_updateController'](_0x497640['head']),this['_handleSuggestionControllerDelayed'](_0x18f259,!0x1)):(this['_updateController'](_0x18449f['head']),null==_0x497640&&this['_handleSuggestionControllerDelayed'](_0x18f259,!0x0)));}),null!==_0x18f259['previous']?this['_updateController'](_0x18f259['head']):this['_handleSuggestionControllerDelayed'](_0x18f259,!0x1);}),this['listenTo'](_0x169bb3,'suggestionUnloaded',(_0x1bcbc5,_0x108bda,_0x1f0b32)=>{this['stopListening'](_0x108bda,'change:previous'),this['_handleControllerBuffer']['delete'](_0x108bda),this['_suggestionToController']['has'](_0x108bda)&&this['_destroyController'](_0x108bda),_0x1f0b32&&this['_updateController'](_0x1f0b32['head']);}),this['listenTo'](_0x169bb3,'suggestionChanged',(_0x55d129,_0x4e5065)=>{this['_updateController'](_0x4e5065);}),this['listenTo'](_0x2b016b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x360713,'addComment',(_0xc433e9,{threadId:_0xd6e4b8,isFromAdapter:_0x1759c0})=>{if(_0x1759c0||!_0x169bb3['hasSuggestion'](_0xd6e4b8))return;const _0x3b163a=_0x169bb3['getSuggestion'](_0xd6e4b8);this['_suggestionToController']['get'](_0x3b163a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2077d9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x232edc;for(const _0x431e45 in _0x2077d9){const _0x161649=_0x431e45,_0xc0e434=_0x2077d9[_0x161649];if('trackChangesLicenseKeyValid'==_0xc0e434||'trackChangesLicenseKeyInvalid'==_0xc0e434||'trackChangesLicenseKeyExpired'==_0xc0e434||'trackChangesLicenseKeyDomainLimit'==_0xc0e434||'trackChangesLicenseKeyNotAllowed'==_0xc0e434||'trackChangesLicenseKeyEvaluationLimit'==_0xc0e434||'trackChangesLicenseKeyTrialLimit'==_0xc0e434||'trackChangesLicenseKeyUsageLimit'==_0xc0e434){delete _0x2077d9[_0x161649],_0x232edc=_0xc0e434,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x232edc&&_0x2077d9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x232edc&&_0x2077d9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x232edc&&_0x2077d9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x232edc&&_0x2077d9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x232edc&&_0x2077d9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x232edc&&_0x2077d9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x232edc&&_0x2077d9['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4ccaa9){const _0x40964f=this['_suggestionToController']['get'](_0x4ccaa9);if(!_0x40964f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x40964f['view'])||null;}['getSuggestionForAnnotation'](_0x27a3ae){const _0x252559=this['_viewToController']['get'](_0x27a3ae['innerView']);return _0x252559?_0x252559['model']:null;}['_refreshActiveMarkers'](){const _0x4c37c0=this['editor']['plugins']['get']('Annotations'),_0x3f9472=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e7942=Array['from'](_0x4c37c0['activeAnnotations'],_0x1956f1=>_0x1956f1['innerView'])['filter'](_0x1c28f6=>this['_viewToController']['has'](_0x1c28f6)),_0x4a364a=[];for(const _0xf0da4f of _0x2e7942){const _0x378000=this['_viewToController']['get'](_0xf0da4f)['model']['getAllAdjacentSuggestions']();_0x4a364a['push'](..._0x378000['reduce']((_0x85e272,_0x357868)=>[..._0x85e272,..._0x357868['getMarkerNames']()],[]));}_0x3f9472['activeMarkers']=_0x4a364a;}['_addUIComponentsToFactory'](){const _0xdc2adb=this['editor'],_0x250028=_0xdc2adb['locale'],_0x57be6c=o(_0x250028,'Track\x20changes'),_0x214455=new _0x538b40([{'type':'switchbutton','model':new _0x1f9746({'withText':!0x0,'isToggleable':!0x0,'label':_0x57be6c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1f9746({'withText':!0x0,'label':o(_0x250028,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f9746({'withText':!0x0,'label':o(_0x250028,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f9746({'withText':!0x0,'label':o(_0x250028,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1f9746({'withText':!0x0,'label':o(_0x250028,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xdc2adb['plugins']['has']('TrackChangesPreview')&&_0x214455['addMany']([{'type':'separator'},{'type':'button','model':new _0x1f9746({'withText':!0x0,'label':o(_0x250028,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x427c11 of _0x214455)if(ke(_0x427c11)){const _0x1679b2=_0xdc2adb['commands']['get'](_0x427c11['model']['commandName']);_0x427c11['model']['bind']('isOn','isEnabled')['to'](_0x1679b2,'value','isEnabled');}_0xdc2adb['ui']['componentFactory']['add']('trackChanges',_0x2c5242=>this['_createToolbarButton'](_0x2c5242,_0x214455,_0x57be6c)),_0xdc2adb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x45f487=>this['_createMenuBarMenu'](_0x45f487,_0x214455,_0x57be6c));}['_createToolbarButton'](_0x4f7480,_0xe2ee0d,_0x5ca3a7){const _0x3c5860=_0x2a9e89(_0x4f7480,_0x25f32c),_0x2e6bc8=this['editor']['commands']['get']('trackChanges');_0x3c5860['buttonView']['set']({'tooltip':_0x5ca3a7,'label':_0x5ca3a7,'icon':_0x49bcb2}),_0x3c5860['buttonView']['bind']('isOn')['to'](_0x2e6bc8,'value'),_0x3c5860['buttonView']['on']('execute',()=>{_0x2e6bc8['execute'](),this['editor']['editing']['view']['focus']();}),_0x4e4d86(_0x3c5860,_0xe2ee0d,{'role':'menu'});const _0x36b52b=[];for(const _0x2c57d2 of _0xe2ee0d)ke(_0x2c57d2)&&_0x36b52b['push'](this['editor']['commands']['get'](_0x2c57d2['model']['commandName']));const _0x421b0f=_0x3c5860['buttonView'];return _0x421b0f['actionView']['unbind']('isEnabled'),_0x421b0f['arrowView']['unbind']('isEnabled'),_0x421b0f['actionView']['bind']('isEnabled')['to'](_0x2e6bc8,'isEnabled'),_0x421b0f['arrowView']['bind']('isEnabled')['toMany'](_0x36b52b,'isEnabled',(..._0x19ec90)=>_0x19ec90['some'](_0x208627=>_0x208627)),_0x3c5860['on']('execute',_0xd777=>{this['editor']['execute'](_0xd777['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3c5860;}['_createMenuBarMenu'](_0x1d6b56,_0x59d7ba,_0x49b226){const _0x1b5991=new _0x8428b8(_0x1d6b56),_0x2bd4c0=this['editor']['commands']['get']('trackChanges');_0x1b5991['buttonView']['set']({'label':_0x49b226,'icon':_0x49bcb2});const _0x6d83f2=new _0x3083bf(_0x1d6b56);for(const _0x4a4cb2 of _0x59d7ba){if('separator'==_0x4a4cb2['type']){_0x6d83f2['items']['add'](new _0x2e5cd0(_0x1d6b56));continue;}const _0x170080=new _0x3ab468(_0x1d6b56,_0x1b5991),_0x217af4=new _0xee9523(_0x1d6b56),_0x5bc28d=_0x4a4cb2['model'];_0x217af4['bind'](...Object['keys'](_0x5bc28d))['to'](_0x5bc28d),_0x217af4['delegate']('execute')['to'](_0x1b5991),_0x217af4['on']('execute',()=>{this['editor']['execute'](_0x5bc28d['commandName']),this['editor']['editing']['view']['focus']();}),_0x170080['children']['add'](_0x217af4),_0x6d83f2['items']['add'](_0x170080);}return _0x1b5991['bind']('isEnabled')['to'](_0x2bd4c0,'isEnabled'),_0x1b5991['panelView']['children']['add'](_0x6d83f2),_0x1b5991;}['_initializeController'](_0x32077c){const _0x3b6f5e=this['editor'],_0x48d04a=_0x3b6f5e['config'],_0x34e155=_0x3b6f5e['plugins']['get']('Annotations'),_0x4b7f18=_0x3b6f5e['plugins']['get']('CommentsRepository'),_0x434d94=_0x3b6f5e['plugins']['get']('EditorAnnotations'),_0x3d7332=_0x3b6f5e['plugins']['get'](_0x43d1ce)['me'],_0x76bcb7=_0x48d04a['get']('trackChanges')['SuggestionThreadView'],_0x3133e6=_0x48d04a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x152a25,CommentThreadInputView:_0x3d1287}=_0x3b6f5e['plugins']['get']('CommentsUI');let _0x2b1367,_0x3dd179,_0x377fa1;this['_annotationViews']['has'](_0x32077c['id'])?(_0x3dd179=this['_annotationViews']['get'](_0x32077c['id']),_0x2b1367=_0x3dd179['mainView']):(_0x2b1367=new _0x76bcb7(_0x3b6f5e['locale'],_0x32077c,_0x3d7332,{'disableComments':this['_disableComments'],'editorConfig':{..._0x48d04a['get']('comments.editorConfig'),'licenseKey':_0x48d04a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x48d04a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x48d04a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x48d04a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x108407(_0x48d04a['get']('locale'),_0x3b6f5e['locale']),'CommentView':_0x48d04a['get']('comments')['CommentView'],'CommentsListView':_0x152a25,'CommentThreadInputView':_0x3d1287,'SuggestionView':_0x3133e6}),_0x2b1367['suggestionView']['acceptButton']['on']('execute',()=>{_0x3b6f5e['editing']['view']['focus']();}),_0x2b1367['suggestionView']['discardButton']['on']('execute',()=>{_0x3b6f5e['editing']['view']['focus']();}),_0x3dd179=_0x34e155['createAnnotationView'](this['editor']['locale'],_0x2b1367),_0x3dd179['bind']('isDirty')['to'](_0x2b1367,'isDirty'),_0x3dd179['bind']('length')['to'](_0x2b1367),_0x3dd179['bind']('type')['to'](_0x2b1367,'type',_0x8d78c6=>'suggestion-'+_0x8d78c6),_0x2b1367['on']('escape',()=>{_0x377fa1['fire']('escape');}),this['_annotationViews']['set'](_0x32077c['id'],_0x3dd179));const _0x3a7993=_0x4b7f18['createCommentThreadController'](_0x32077c['commentThread'],_0x2b1367),_0x28b011=new pe(_0x3b6f5e,_0x32077c,_0x2b1367,_0x3a7993),_0x5c4272=_0x32077c['getAllAdjacentSuggestions']()['filter'](_0x5ddd80=>_0x5ddd80['isInContent']);_0x2b1367['descriptionParts']=_0x3b6f5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c4272),this['_suggestionToController']['set'](_0x32077c,_0x28b011),this['_viewToController']['set'](_0x2b1367,_0x28b011);const _0x3a6bca=()=>{const _0x30f61a=[],_0x195fd8=_0x32077c['getAllAdjacentSuggestions']()['filter'](_0x12464d=>_0x12464d['isInContent']);for(const _0x49cbf6 of _0x195fd8)_0x30f61a['push'](..._0x49cbf6['getMarkers']());return _0x3a1341(_0x3b6f5e['editing'],_0x30f61a);};_0x377fa1=_0x34e155['createAnnotation']({'view':_0x3dd179,'target':_0x3a6bca,'type':()=>'suggestion-'+_0x28b011['view']['type'],'isVisible':!!_0x3a6bca()}),_0x4b7f18['_bindAnnotationToEditors'](_0x2b1367,_0x377fa1),_0x34e155['add'](_0x377fa1),_0x434d94['registerAnnotation'](_0x377fa1);}['_destroyController'](_0xc88a7f){const _0x2f7907=this['editor']['plugins']['get']('CommentsRepository'),_0x2d11a4=this['editor']['plugins']['get']('Annotations'),_0x38deeb=this['_suggestionToController']['get'](_0xc88a7f),_0x3ff07e=_0x38deeb['view'],_0x21d954=_0x2d11a4['getByInnerView'](_0x3ff07e);_0x2f7907['_unbindEditors'](_0x3ff07e),_0x21d954&&_0x2d11a4['remove'](_0x21d954),this['_suggestionToController']['delete'](_0xc88a7f),this['_viewToController']['delete'](_0x3ff07e),_0x38deeb['destroy']();}['_updateController'](_0x7441a6){if(!_0x7441a6['isInContent']||!this['_suggestionToController']['has'](_0x7441a6))return;const _0x4213b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x427bb5=this['_suggestionToController']['get'](_0x7441a6),_0x8c4181=_0x7441a6['getAllAdjacentSuggestions']();_0x427bb5['view']['descriptionParts']=_0x4213b7['descriptionFactory']['getDescriptions'](_0x8c4181);}['destroy'](){for(const _0x5a3694 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5a3694);for(const _0x40952a of this['_annotationViews']['values']())_0x40952a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xcd2369){return'model'in _0xcd2369;}class Fe extends _0x275754{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x17fc02){this['editor']['plugins']['get'](d)['adapter']=_0x17fc02;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x243bd0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x243bd0);}['getSuggestions']({skipNotAttached:_0x438395=!0x1,toJSON:_0x1f179f=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x438395,'toJSON':_0x1f179f});}['getSuggestion'](_0x5cb118){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x5cb118);}}const p=['Pagination'];class re extends _0x275754{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x56e65e=this['editor'];if(_0x56e65e['config']['define']('trackChangesData.editorCreator',_0x26db1c=>{const _0x4d9761=_0x56e65e['model']['document']['getRootNames']()['reduce']((_0x4c2ea1,_0x36002f)=>(_0x4c2ea1[_0x36002f]='',_0x4c2ea1),{});return _0x56e65e['constructor']['create'](_0x4d9761,_0x26db1c);}),'function'!=typeof _0x56e65e['config']['get']('trackChangesData')['editorCreator'])throw new _0x56d199('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28c43e){return P(this['editor'],!0x0,_0x28c43e);}['getDataWithDiscardedSuggestions'](_0x3fe4d2){return P(this['editor'],!0x1,_0x3fe4d2);}}class Ge extends _0x275754{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34f38e){function _0x4577c3(_0x3b00c1){return _0x3b00c1['map'](_0x46fd5e=>String['fromCharCode'](_0x46fd5e))['join']('');}super(_0x34f38e),this['result']='end',_0x34f38e[_0x4577c3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4577c3([0x76,0x69,0x65,0x77])][_0x4577c3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4577c3([0x61,0x75,0x74,0x6f]),_0x34f38e[_0x4577c3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4577c3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4577c3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4577c3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4577c3([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(_0x45f24f){return void 0x0!==_0x45f24f['getRootsAttributes'];}async function P(_0x8d2d24,_0x2d7615,_0x22b329){const _0x5bd635=_0x289c98(_0x8d2d24,p);_0x5bd635['plugins']['push'](d,Ge),_0x5bd635['rootsAttributes']=He(_0x8d2d24)?_0x8d2d24['getRootsAttributes']():void 0x0;const _0xdf8557=document['createDocumentFragment'](),_0x5a8a38=_0x8d2d24['config']['get']('trackChangesData')['editorCreator'],_0x2a8e72=await _0x5a8a38(_0x5bd635,()=>function(_0x39fa0e){const _0x393510=document['createElement']('div');return _0x39fa0e['appendChild'](_0x393510),_0x393510;}(_0xdf8557));!function(_0x38e21c,_0x322803){const _0x170753=_0x38e21c['model']['document']['getRootNames']()['reduce']((_0xa18393,_0x17b8e3)=>(_0xa18393[_0x17b8e3]=_0x38e21c['data']['get']({'rootName':_0x17b8e3}),_0xa18393),{}),_0x1b4970=_0x38e21c['plugins']['get']('Users')['users']['map'](_0x331107=>({'id':_0x331107['id'],'name':_0x331107['name']})),_0x2e5be0=_0x38e21c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e6b2b=_0x38e21c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e0a5f=_0x322803['plugins']['get']('Users'),_0x50f9e2=_0x322803['plugins']['get']('TrackChangesEditing'),_0x5977f6=_0x322803['plugins']['get']('CommentsRepository');for(const _0x22d98c of _0x5977f6['getCommentThreads']())_0x22d98c['remove']();for(const _0x50a5f9 of _0x1b4970)_0x4e0a5f['getUser'](_0x50a5f9['id'])||_0x4e0a5f['addUser'](_0x50a5f9);_0x4e0a5f['me']||_0x4e0a5f['useAnonymousUser']();for(const _0x3757c2 of _0x3e6b2b)_0x5977f6['addCommentThread'](_0x3757c2);for(const _0x2b2cdd of _0x2e5be0)_0x50f9e2['addSuggestionData'](_0x2b2cdd);_0x322803['data']['set'](_0x170753);}(_0x8d2d24,_0x2a8e72),_0x2a8e72['execute'](_0x2d7615?'acceptAllSuggestions':'discardAllSuggestions');const _0x3e4767=He(_0x2a8e72)?_0x2a8e72['getFullData'](_0x22b329):_0x2a8e72['data']['get'](_0x22b329);return await _0x2a8e72['destroy'](),_0x3e4767;}class Me extends _0x4b2ad2{['options'];constructor(_0x1aa65d,_0x5b2133){super(_0x1aa65d),this['options']=_0x5b2133,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'](_0x190051,_0x596170){if(!this['element'])return;const _0x310a98=[];for(const [_0x19cec4,_0x489221]of _0x190051){const _0x591aa1=document['createElement']('div');_0x591aa1['setAttribute']('data-ck-root-name',_0x19cec4),_0x591aa1['className']=_0x489221['classes']+'\x20ck-track-changes-preview__root-container',_0x591aa1['innerHTML']=_0x489221['content'],_0x310a98['push'](_0x591aa1);}_0x596170(this['element'],_0x310a98),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x48aa9f{constructor(_0x49ecd7){super(_0x49ecd7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x261e8e=this['editor'],_0x1c0ff0=_0x261e8e['locale'],_0x4cab94=_0x261e8e['plugins']['get']('Dialog');let _0xdf9ce0;const _0x555a83=function(_0x2c39f0){const _0x222acc={};if('editables'in _0x2c39f0['ui']['view']){for(const [_0x716784,_0x2083b7]of Object['entries'](_0x2c39f0['ui']['view']['editables']))_0x222acc[_0x716784]=_0x2083b7['element'];}else _0x222acc[_0x2c39f0['model']['document']['getRootNames']()[0x0]]=_0x2c39f0['ui']['view']['editable']['element'];return _0x222acc;}(_0x261e8e),_0x249b0e=function(_0x567ce6){let _0x18f4f9=0x0;for(const _0x401960 of Object['values'](_0x567ce6))_0x18f4f9=Math['max'](_0x18f4f9,_0x401960['getBoundingClientRect']()['width']);let _0x11ad0a=0x0;for(const _0x3dc458 of Object['values'](_0x567ce6))_0x11ad0a+=_0x3dc458['getBoundingClientRect']()['height'];const _0x598628=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4cfc3f=Math['min'](_0x11ad0a,_0x598628);return{'width':_0x18f4f9,'height':_0x4cfc3f};}(_0x555a83);_0x4cab94['show']({'id':'finalContentPreview','title':o(_0x1c0ff0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1c0ff0,{'dialogRects':_0x249b0e}),'onHide':()=>{_0xdf9ce0['detachFromDom']();},'onShow':()=>{_0x261e8e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5b38cf=>{const _0x5223b9=this['_standarizeRootsData'](_0x5b38cf,_0x261e8e,_0x555a83);_0x4cab94['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5223b9,_0x261e8e['config']['get']('trackChanges.preview.renderFunction'));}),_0xdf9ce0=new _0x708db5(_0x1c0ff0,[_0x4cab94['view']]),_0xdf9ce0['attachToDom'](),_0xdf9ce0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x261e8e['once']('destroy',()=>{_0xdf9ce0['detachFromDom']();});const _0xc96458=_0x4cab94['view']['headerView']['class'];_0x4cab94['view']['headerView']['class']=_0xc96458?_0xc96458+'\x20ck-reset_all':'ck-reset_all',_0x4cab94['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4cab94['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x243beb=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xa0b7fd=_0x243beb['previewMode'],_0x8dbfba={};if('$labels'===_0xa0b7fd){for(const _0x33504d of _0x243beb['getMergeFieldsIds']())_0x8dbfba[_0x33504d]=_0x243beb['getLabel'](_0x33504d)||_0x33504d;}else{const _0x26a196='$defaultValues'===_0xa0b7fd?_0x243beb['getDefaultValues']():_0x243beb['getDataSetValues'](_0xa0b7fd,!0x0);for(const _0x3fb7f6 of Object['entries'](_0x26a196)){const [_0x4e363b,_0x2dbb33]=_0x3fb7f6;_0x8dbfba[_0x4e363b]=null!==_0x2dbb33?_0x2dbb33:_0x243beb['getLabel'](_0x4e363b)||_0x4e363b;}}return{'mergeFieldsData':_0x8dbfba};}['_standarizeRootsData'](_0x5c7f15,_0x4594fd,_0x5db3a5){let _0x420d95;if('string'==typeof _0x5c7f15){const _0x24df75=_0x4594fd['model']['document']['getRootNames']()[0x0];_0x420d95={[_0x24df75]:_0x5c7f15};}else _0x420d95=_0x5c7f15;const _0x2bea21=this['_fixMediaEmbeds'](_0x420d95,_0x4594fd),_0x25a570=function(_0x176263,_0x5030e0){for(const [_0x215df8,_0x359df9]of _0x176263)_0x359df9['classes']=_0x5030e0[_0x215df8]['classList']['value']['replace']('ck-focused','');return _0x176263;}(this['_sortRoots'](_0x4594fd)['reduce']((_0x3c9efd,_0x242e42)=>(_0x3c9efd['push']([_0x242e42,{'content':_0x2bea21[_0x242e42],'classes':''}]),_0x3c9efd),[]),_0x5db3a5);return _0x25a570;}['_fixMediaEmbeds'](_0x4638f7,_0x1292fd){if(!_0x1292fd['plugins']['has']('MediaEmbedEditing'))return _0x4638f7;const _0x24d843=_0x1292fd['plugins']['get']('MediaEmbedEditing');for(const [_0x22fcfb,_0x565b58]of Object['entries'](_0x4638f7)){const _0x31e46c=document['createElement']('div');_0x31e46c['innerHTML']=_0x565b58,(_0x31e46c['querySelectorAll']('figure.media')['forEach'](_0x436b07=>{const _0xe560cd=_0x436b07['querySelector']('oembed');if(_0xe560cd){const _0x1ab1e6=_0xe560cd['getAttribute']('url');if(_0x1ab1e6){const _0x18d3df=_0x24d843['registry']['getMediaViewElement'](new _0x302d32(_0x1292fd['editing']['view']['document']),_0x1ab1e6,{'elementName':'','renderForEditingView':!0x0}),_0x1686b0=document['createElement']('div');_0x1686b0['classList']['add']('ck-media__wrapper'),_0x18d3df['render'](_0x1686b0,_0x1292fd['editing']['view']['domConverter']),_0xe560cd['replaceWith'](_0x1686b0);}}}),_0x4638f7[_0x22fcfb]=_0x31e46c['innerHTML']);}return _0x4638f7;}['_sortRoots'](_0x4c8526){if(!function(_0x215ae8){return void 0x0!==_0x215ae8['getRootsAttributes'];}(_0x4c8526))return _0x4c8526['model']['document']['getRootNames']();const _0x185cf8=[],_0x10cd38=new Map();for(const _0x4a05c8 of _0x4c8526['model']['document']['getRootNames']()){const _0x5aca38=_0x4c8526['editing']['view']['getDomRoot'](_0x4a05c8)['getClientRects']()['item'](0x0);_0x185cf8['push'](_0x4a05c8),_0x10cd38['set'](_0x4a05c8,_0x5aca38);}return _0x185cf8['sort']((_0x195252,_0xa1af72)=>{const _0x44a18d=_0x10cd38['get'](_0x195252),_0x43237c=_0x10cd38['get'](_0xa1af72);return _0x44a18d['y']-_0x43237c['y']||_0x44a18d['x']-_0x43237c['x'];}),_0x185cf8;}}class $e extends _0x275754{static get['requires'](){return[re,_0x18b92b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23047d){super(_0x23047d),_0x23047d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x23047d['config']['define']('trackChanges.preview.renderFunction',(_0x2f54fd,_0x5cbc87)=>{for(const _0x1314c3 of _0x5cbc87)_0x2f54fd['appendChild'](_0x1314c3);});}}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 _0x25462f,Plugin as _0x5cca93,PendingActions as _0x2f57a5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1d6012,ObservableMixin as _0x5273f4,uid as _0x51161f,priorities as _0x16998a,insertToPriorityArray as _0x55a7c5,toArray as _0x16d30e,logWarning as _0x4cb11a,getEnvKeystrokeText as _0x138a0e,FocusTracker as _0x53f0d0,KeystrokeHandler as _0x6bf80f,Collection as _0x3223dc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1d9f9d,IconCancel as _0x6ab7db,IconTrackChanges as _0x340dc9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4deb51,View as _0x1a1ece,ViewCollection as _0x1d9335,FocusCycler as _0xde31e7,UIModel as _0x4adbb8,createDropdown as _0x7edbc2,SplitButtonView as _0x474114,addListToDropdown as _0x3eb4ef,MenuBarMenuView as _0x3561c7,MenuBarMenuListView as _0x45bcb0,ListSeparatorView as _0x50824a,MenuBarMenuListItemView as _0x2a5238,MenuBarMenuListItemButtonView as _0x394978,BodyCollection as _0x464b4d,Dialog as _0x311a2e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x21b95b,hashObject as _0x4008c4,surroundingMarkersDetector as _0x435ec3,FOCUS_ANNOTATION_KEYSTROKE as _0x21ce48,AriaDescriptionView as _0x22f663,setupThreadKeyboardNavigation as _0x3acca8,trimHtml as _0x1dbbd6,UserView as _0x3af437,LateFocusButtonView as _0x4814c7,getDateTimeFormatter as _0x1e7799,getAllMarkersDomElementsSorted as _0x30a536,sanitizeEditorConfig as _0x108a96}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0xdb8bb7,ModelLiveRange as _0x1c1e9b,ModelLivePosition as _0x2f9395,ViewDowncastWriter as _0x46d8af}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x52cc57,toWidget as _0x3e2533}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4a9bb7,set as _0x524240,isEqual as _0x130814,unset as _0xa0b0cb,omit as Ut}from'es-toolkit/compat';import{Delete as _0x37e819,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x415ed5}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x4fb688}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x25462f{['_enabledCommands'];constructor(_0x505744,_0x277a75){super(_0x505744),this['_enabledCommands']=_0x277a75,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 _0x439c1e of this['editor']['commands']['commands']())_0x439c1e['affectsData']&&!this['_enabledCommands']['has'](_0x439c1e)&&_0x439c1e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5a4c51 of this['editor']['commands']['commands']())_0x5a4c51['affectsData']&&!this['_enabledCommands']['has'](_0x5a4c51)&&_0x5a4c51['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x25462f{['_suggestions'];constructor(_0x367a9b,_0x28ad1f){super(_0x367a9b),this['_suggestions']=_0x28ad1f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x361dcc){const _0x944bf7=this['_suggestions']['get'](_0x361dcc);if(!_0x944bf7)throw new _0x1d6012('track-changes-accept-suggestion-not-found',this);const _0x251868=_0x944bf7['getRanges']();this['editor']['model']['canEditAt'](_0x251868)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x944bf7);}}class $ extends _0x25462f{['_suggestions'];constructor(_0x1a3ecd,_0x46e64){super(_0x1a3ecd),this['_suggestions']=_0x46e64,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1baa0b){const _0x169e53=this['_suggestions']['get'](_0x1baa0b);if(!_0x169e53)throw new _0x1d6012('track-changes-discard-suggestion-not-found',this);const _0x1d5450=_0x169e53['getRanges']();this['editor']['model']['canEditAt'](_0x1d5450)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x169e53);}}function ls(_0x466c01,_0x31ab9b){let _0x277dc1='';return _0x277dc1+=_0x466c01['split']('*')['map']((_0x2fc2c0,_0x2fe8bf)=>_0x2fe8bf%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x2fc2c0)+'</span>':Zt(_0x2fc2c0))['join'](''),_0x31ab9b&&(_0x277dc1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x31ab9b['value']+'\x22\x20title=\x22'+_0x31ab9b['title']+'\x22></span>'),_0x277dc1;}function Zt(_0x1bc67b){const _0x14421e=document['createElement']('span');return _0x14421e['innerText']=_0x1bc67b,_0x14421e['innerHTML'];}function ts(_0x267c2b){return _0x267c2b['sort']((_0x3e19aa,_0x308ace)=>'attribute'===_0x3e19aa['type']&&'attribute'!==_0x308ace['type']?-0x1:'attribute'!==_0x3e19aa['type']&&'attribute'===_0x308ace['type']?0x1:'deletion'==_0x3e19aa['type']&&'deletion'!=_0x308ace['type']?-0x1:'deletion'!=_0x3e19aa['type']&&'deletion'==_0x308ace['type']?0x1:0x0);}function to(_0x1304d3,_0x5816b6){let _0x4f39a2,_0x373d52=0x0;const _0x1b0e50=[],_0x337fd7=_0x5816b6['schema'];for(;_0x373d52<_0x1304d3['length'];){const _0x457d06=_0x1304d3[_0x373d52],_0x385d4c=_0x1304d3[_0x373d52+0x1];_0x4f39a2||(_0x4f39a2=_0x5816b6['createPositionBefore'](_0x457d06)),tn(_0x5816b6,_0x457d06,_0x385d4c)||(_0x1b0e50['push'](_0x5816b6['createRange'](_0x4f39a2,_0x337fd7['isObject'](_0x457d06)?_0x5816b6['createPositionAfter'](_0x457d06):_0x5816b6['createPositionAt'](_0x457d06,'end'))),_0x4f39a2=null),_0x373d52++;}return _0x1b0e50;}function tn(_0x3636a2,_0x23d81d,_0x428f87){if(!_0x428f87)return!0x1;const _0x5cb16a=_0x3636a2['createPositionAfter'](_0x23d81d),_0x2bd015=_0x3636a2['createPositionBefore'](_0x428f87);return _0x5cb16a['isTouching'](_0x2bd015);}function rs(_0x905b0f,_0x4d03c7,_0x1c1e45){for(;_0x1c1e45['length'];){const _0x417996=_0x1c1e45['splice'](0x0,0x64);_0x905b0f['change'](()=>{for(const _0x260b33 of _0x417996)_0x260b33['isInContent']&&_0x4d03c7['execute'](_0x260b33['id']);});}}class M extends _0x25462f{['_command'];['_suggestions'];constructor(_0x4b68bb,_0x37402d,_0x26ba3c){super(_0x4b68bb),this['_command']=_0x37402d,this['_suggestions']=_0x26ba3c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3c03d0=Array['from'](this['_suggestions']['values']())['some'](_0x166385=>_0x166385['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3c03d0;}['execute'](){const _0x5e1d71=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1bacef of _0x5e1d71){const _0x577bcb=_0x1bacef['getRanges']();if(!this['editor']['model']['canEditAt'](_0x577bcb))return;}rs(this['editor']['model'],this['_command'],_0x5e1d71);}}class B extends _0x25462f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x56a938,_0x244434,_0x15d491){super(_0x56a938),this['_command']=_0x244434,this['_suggestions']=_0x15d491,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1fb0bb=this['editor']['model']['document']['selection'],_0x22b10e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2c3e56,_0x2f6991){const _0x2bda3d=Array['from'](_0x2c3e56['getRanges']()),_0x384add=new Set();for(const _0x3e345a of _0x2f6991)if(_0x3e345a['isInContent']){for(const _0x41a39e of _0x2bda3d)for(const _0x1e6d90 of _0x3e345a['getRanges']())(_0x41a39e['isIntersecting'](_0x1e6d90)||_0x2c3e56['isCollapsed']&&!_0x3e345a['isMultiRange']&&_0x3e345a['next']&&_0x1e6d90['end']['isTouching'](_0x41a39e['start']))&&_0x384add['add'](_0x3e345a);}return _0x384add;}(_0x1fb0bb,_0x22b10e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x42bbb6=ts(Array['from'](this['_selectedSuggestions']));for(const _0x47716a of _0x42bbb6){const _0x26947e=_0x47716a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x26947e))return;}rs(this['editor']['model'],this['_command'],_0x42bbb6);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5273f4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x579d18,_0x37ec81){super(),this['id']=_0x37ec81['id'],this['type']=_0x37ec81['type'],this['subType']=_0x37ec81['subType']||null,this['author']=_0x37ec81['author'],this['creator']=_0x37ec81['creator']||_0x37ec81['author'],this['isExternal']=Boolean(_0x37ec81['attributes']&&_0x37ec81['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x37ec81['originalSuggestionId']||null,this['_model']=_0x579d18,this['_onAccept']=_0x37ec81['onAccept'],this['_onDiscard']=_0x37ec81['onDiscard'],this['_onAttributesChange']=_0x37ec81['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x37ec81['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 _0x21247b=this;for(;_0x21247b['previous'];)_0x21247b=_0x21247b['previous'];return _0x21247b;}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'](_0x36b037){this['_markerNames']['add'](_0x36b037);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2080dc=>this['_model']['markers']['get'](_0x2080dc))['filter'](_0x596e10=>_0x596e10);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x44048f=>{for(const _0x23afb4 of this['getMarkers']())_0x44048f['removeMarker'](_0x23afb4);}),this['_markerNames']['clear']();}['removeMarker'](_0x2230ab){this['_model']['change'](_0xaf37ac=>{_0xaf37ac['removeMarker'](_0x2230ab);}),this['_markerNames']['delete'](_0x2230ab);}['addRange'](_0xbd89b5){const _0x158870='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x158870),this['_model']['change'](_0x1957df=>{_0x1957df['addMarker'](_0x158870,{'range':_0xbd89b5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1be2bf){for(const _0x571932 of this['getRanges']())if(_0x571932['isIntersecting'](_0x1be2bf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x31796b=>_0x31796b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x41feca,_0x457a5e)=>[..._0x41feca,..._0x457a5e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x39e10a=this['getRanges']();if(0x1!=_0x39e10a['length'])return null;const _0x2e2841=_0x39e10a[0x0],_0x15af7b=_0x2e2841['start']['nodeAfter'],_0x30245a=_0x2e2841['end']['nodeBefore'];return _0x15af7b instanceof _0xdb8bb7?_0x15af7b!=_0x30245a?null:_0x15af7b: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 _0x5d4d57=[];let _0x22aebf=this['head'];for(;_0x22aebf;)_0x5d4d57['push'](_0x22aebf),_0x22aebf=_0x22aebf['next'];return _0x5d4d57;}['setAttribute'](_0x3c3dfe,_0x53b503){const _0x45d714=_0x4a9bb7(this['attributes']);_0x524240(_0x45d714,_0x3c3dfe,_0x53b503),_0x130814(_0x45d714,this['attributes'])||(this['attributes']=_0x45d714,this['_onAttributesChange'](_0x45d714));}['removeAttribute'](_0x150e0d){const _0x51c452=_0x4a9bb7(this['attributes']);_0xa0b0cb(_0x51c452,_0x150e0d),_0x130814(_0x51c452,this['attributes'])||(this['attributes']=_0x51c452,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 _0x51161f()['substr'](0x1,0x5);}}function o(_0x317d41,_0x3dcd7d,_0x495bcd){const _0x499c4b=_0x317d41['t'],t=_0x317d41['t'];switch(_0x3dcd7d){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',_0x495bcd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x495bcd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x495bcd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x495bcd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x495bcd);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',_0x495bcd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x495bcd);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',_0x495bcd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x495bcd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x495bcd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x495bcd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x495bcd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x495bcd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x495bcd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x495bcd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x495bcd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x495bcd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x495bcd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x495bcd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x495bcd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x495bcd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x495bcd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x495bcd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x495bcd);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x495bcd);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'},_0x495bcd);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x495bcd);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x495bcd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x495bcd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x495bcd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x495bcd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x495bcd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x495bcd);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'},_0x495bcd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x495bcd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x495bcd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x495bcd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x495bcd);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'},_0x495bcd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x495bcd);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'},_0x495bcd);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'},_0x495bcd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x495bcd);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'},_0x495bcd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x495bcd);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'},_0x495bcd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x495bcd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x495bcd);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'},_0x495bcd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x495bcd);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 _0x499c4b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x495bcd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x499c4b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x495bcd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x495bcd);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'},_0x495bcd);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'},_0x495bcd);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'},_0x495bcd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3dcd7d;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4efbf3,_0x17940a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4efbf3,this['_locale']=_0x17940a;}['getDescriptions'](_0x440611){const _0x3f293d=[],_0x1e2667=new Set(),_0x3fbf41=new Set();for(let _0x50487b=0x0;_0x50487b<_0x440611['length'];_0x50487b++){const _0x32b5ef=_0x440611[_0x50487b];if(!_0x32b5ef['isInContent'])continue;const _0x2871d7=this['_handleCustomCallbackDescription'](_0x32b5ef);if(_0x2871d7){if(null!=_0x32b5ef['subType']){if(_0x1e2667['has'](_0x32b5ef['subType']))continue;_0x1e2667['add'](_0x32b5ef['subType']);}_0x3f293d['push'](_0x2871d7);}else{if('attribute'==_0x32b5ef['type']){const _0xfa88f5=_0x32b5ef['data']['key'];if(_0x3fbf41['has'](_0xfa88f5))continue;_0x3fbf41['add'](_0x32b5ef['data']['key']),_0xfa88f5==m?this['_handleRenameSuggestionDescription'](_0x3f293d,_0x32b5ef):this['_handleAttributeSuggestionDescription'](_0x3f293d,_0x32b5ef);continue;}'insertion'!=_0x32b5ef['type']&&'deletion'!=_0x32b5ef['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3f293d,_0x32b5ef,_0x440611[_0x50487b+0x1]);}}return this['_resolveDescriptionItems'](_0x3f293d);}['registerDescriptionCallback'](_0x68c83e){this['_customCallbacks']['push'](_0x68c83e);}['registerElementLabel'](_0x319918,_0x4452ea,_0x56a223=_0x16998a['normal']){'function'==typeof _0x319918?_0x55a7c5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x319918,'label':_0x4452ea,'priority':_0x56a223}):this['_itemLabels']['set'](_0x319918,_0x4452ea);}['registerAttributeLabel'](_0x5b0bfa,_0x29f03e){this['_attributeLabels']['set'](_0x5b0bfa,_0x29f03e);}['getItemLabel'](_0x265157,_0x212ad4=0x1){let _0x137711;for(const _0x25a5a5 of this['_itemLabelsCallbacks'])if(_0x25a5a5['matchingCallback'](_0x265157)){_0x137711=_0x25a5a5['label'];break;}return _0x137711||(_0x137711=this['_itemLabels']['get'](_0x265157['name'])),_0x137711?_0x137711(_0x212ad4):0x1!==_0x212ad4?_0x212ad4+'\x20'+_0x265157['name']+'s':''+_0x265157['name'];}['_addDescriptionItems'](_0x5f19b5,_0x44567d){const _0x4feba4=_0x44567d['getFirstRange']()['getWalker'](),_0x972a00='insertion'==_0x44567d['type']?'add':'remove';for(const _0x184ef6 of _0x4feba4){const _0x2df187=_0x184ef6['item'],_0x10658b=_0x5f19b5[_0x5f19b5['length']-0x1];if(_0x2df187['is']('$textProxy'))_0x10658b&&_0x10658b['type']['indexOf']('Container')>-0x1&&_0x5f19b5['pop'](),_0x10658b&&'text'==_0x10658b['type']?_0x10658b[_0x972a00]+=_0x2df187['data']:_0x5f19b5['push']({'type':'text','add':'add'==_0x972a00?_0x2df187['data']:'','remove':'remove'==_0x972a00?_0x2df187['data']:''});else{if(this['_schema']['isObject'](_0x2df187)){const _0x188aa7=_0x2df187;if(_0x10658b&&_0x10658b['type']['indexOf']('Container')>-0x1&&_0x5f19b5['pop'](),'elementEnd'==_0x184ef6['type'])continue;_0x10658b&&_0x10658b['type']==_0x972a00+'Object'&&_0x10658b['element']['name']==_0x188aa7['name']?_0x10658b['quantity']++:_0x5f19b5['push']({'type':_0x972a00+'Object','element':_0x188aa7,'quantity':0x1}),_0x4feba4['skip'](_0xccfe1e=>!('elementEnd'==_0xccfe1e['type']&&_0xccfe1e['item']==_0x2df187));}else{if(this['_schema']['checkChild'](_0x2df187,'$text')||_0x2df187['is']('element','softBreak')){const _0x34dcf1=_0x2df187;if('add'==_0x972a00&&'elementStart'==_0x184ef6['type']||'remove'==_0x972a00&&'elementEnd'==_0x184ef6['type'])continue;if(_0x10658b&&-0x1==_0x10658b['type']['indexOf']('Container')){'text'==_0x10658b['type']&&(_0x10658b[_0x972a00]+='\x0a');continue;}let _0x3d78f0;if(_0x3d78f0='add'==_0x972a00?_0x34dcf1['nextSibling']&&!this['_schema']['isObject'](_0x34dcf1['nextSibling'])?_0x34dcf1['nextSibling']:null:_0x34dcf1['previousSibling']&&!this['_schema']['isObject'](_0x34dcf1['previousSibling'])?_0x34dcf1['previousSibling']:null,_0x34dcf1['isEmpty']||_0x3d78f0&&_0x3d78f0['isEmpty']){const _0x75ed07=_0x3d78f0&&_0x3d78f0['isEmpty']?_0x3d78f0:_0x34dcf1;_0x10658b&&_0x10658b['type']==_0x972a00+'EmptyContainer'&&_0x10658b['element']['name']==_0x75ed07['name']?_0x10658b['quantity']++:_0x5f19b5['push']({'type':_0x972a00+'EmptyContainer','element':_0x75ed07,'quantity':0x1});}else _0x5f19b5['push']({'type':_0x972a00+'Container','element':_0x34dcf1});}}}}}['_resolveDescriptionItems'](_0x45642f){const _0x2d1fa3=this['_locale'],_0x10c045=[],_0x5ba550=[],_0x4fd285=[];for(const _0x4a8390 of _0x45642f)switch(_0x4a8390['type']){case'text':if(_0x4a8390['add']=_0x4a8390['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a8390['remove']=_0x4a8390['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a8390['add']&&''!=_0x4a8390['remove']){_0x10c045['push']({'type':'replace','content':o(_0x2d1fa3,'REPLACE_TEXT',['\x22'+_0x4a8390['remove']+'\x22','\x22'+_0x4a8390['add']+'\x22'])});continue;}if(null!=_0x4a8390['add']['match'](/^ +$/)){_0x10c045['push']({'type':'insertion','content':o(_0x2d1fa3,'*Insert:*\x20%0',o(_0x2d1fa3,'ELEMENT_SPACE',_0x4a8390['add']['length']))});continue;}if(null!=_0x4a8390['remove']['match'](/^ +$/)){_0x10c045['push']({'type':'deletion','content':o(_0x2d1fa3,'*Remove:*\x20%0',o(_0x2d1fa3,'ELEMENT_SPACE',_0x4a8390['remove']['length']))});continue;}if(''!=_0x4a8390['add']){_0x10c045['push']({'type':'insertion','content':o(_0x2d1fa3,'*Insert:*\x20%0','\x22'+_0x4a8390['add']+'\x22')});continue;}_0x10c045['push']({'type':'deletion','content':o(_0x2d1fa3,'*Remove:*\x20%0','\x22'+_0x4a8390['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10c045['push']({'type':'insertion','content':o(_0x2d1fa3,'*Insert:*\x20%0',this['getItemLabel'](_0x4a8390['element'],_0x4a8390['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10c045['push']({'type':'deletion','content':o(_0x2d1fa3,'*Remove:*\x20%0',this['getItemLabel'](_0x4a8390['element'],_0x4a8390['quantity']))});continue;case'addContainer':_0x10c045['push']({'type':'insertion','content':o(_0x2d1fa3,'*Split:*\x20%0',this['getItemLabel'](_0x4a8390['element'],_0x4a8390['quantity']))});continue;case'removeContainer':_0x10c045['push']({'type':'deletion','content':o(_0x2d1fa3,'*Merge:*\x20%0',this['getItemLabel'](_0x4a8390['element'],_0x4a8390['quantity']))});continue;case'addFormat':_0x5ba550['push'](_0x4a8390['key']);continue;case'removeFormat':_0x4fd285['push'](_0x4a8390['key']);continue;default:_0x10c045['push'](_0x4a8390);}if(_0x5ba550['length']){const _0x4fbfcc=_0x5ba550['map'](_0x50e76c=>this['_attributeLabels']['has'](_0x50e76c)?this['_attributeLabels']['get'](_0x50e76c):_0x50e76c)['join'](',\x20');_0x10c045['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4fbfcc)});}if(_0x4fd285['length']){const _0x1e63a1=_0x4fd285['map'](_0x37e0f8=>this['_attributeLabels']['has'](_0x37e0f8)?this['_attributeLabels']['get'](_0x37e0f8):_0x37e0f8)['join'](',\x20');_0x10c045['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1e63a1)});}return _0x10c045;}['_handleCustomCallbackDescription'](_0x3b9a36){for(const _0x63b4cb of this['_customCallbacks']){const _0x503a99=_0x63b4cb(_0x3b9a36);if(_0x503a99&&'type'in _0x503a99)return _0x503a99;}}['_handleAttributeSuggestionDescription'](_0x30eb47,_0x52fade){const _0x4b0ee3=_0x52fade['data'],_0x267e3d=void 0x0===_0x4b0ee3['newValue']?'removeFormat':'addFormat';_0x30eb47['push']({'type':_0x267e3d,'key':_0x4b0ee3['key']});}['_handleRenameSuggestionDescription'](_0x54abf9,_0x29e634){_0x54abf9['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x29e634['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x12fd60,_0x2b6e53,_0x47ee95){if(this['_addDescriptionItems'](_0x12fd60,_0x2b6e53),_0x47ee95&&_0x47ee95['getFirstRange']()&&!_0x2b6e53['getFirstRange']()['end']['isEqual'](_0x47ee95['getFirstRange']()['start'])){const _0x8bb42a=_0x12fd60[_0x12fd60['length']-0x1],_0x16b2b6='insertion'==_0x2b6e53['type']?'add':'remove';_0x8bb42a&&'text'==_0x8bb42a['type']&&(_0x8bb42a[_0x16b2b6]+='\x0a');}}}class O extends _0x5cca93{['afterInit'](){const _0x1889fc=this['editor'],_0x132950=_0x1889fc['plugins']['get']('TrackChangesEditing');_0x1889fc['commands']['get']('showAIAssistant')&&_0x132950['enableCommand']('showAIAssistant');}}class E extends _0x5cca93{['afterInit'](){const _0x37e290=this['editor'],_0x6de8f1=_0x37e290['locale'];if(!_0x37e290['plugins']['has']('AlignmentEditing'))return;const _0x5818ec=_0x37e290['plugins']['get']('TrackChangesEditing');_0x5818ec['enableDefaultAttributesIntegration']('alignment'),_0x5818ec['registerBlockAttribute']('alignment'),_0x5818ec['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x6de8f1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5395b9=this['editor'],_0x315913=_0x5395b9['locale'];_0x5395b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fea7e=>{if('formatBlock'!=_0x2fea7e['type'])return;const {data:_0x2f13b6}=_0x2fea7e;if(_0x2f13b6&&'alignment'==_0x2f13b6['commandName']){const _0x155896=_0x2f13b6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x315913,'*Format:*\x20%0',function(_0x150b78){switch(_0x150b78){case'left':return o(_0x315913,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x315913,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x315913,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x315913,'FORMAT_JUSTIFY_TEXT');}}(_0x155896))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x5cca93{['afterInit'](){const _0x563187=this['editor'],_0x538304=_0x563187['plugins']['get']('TrackChangesEditing'),_0x961ea3=_0x563187['locale'];for(const _0x47fac3 of ti){if(!_0x563187['plugins']['has'](_0x47fac3))continue;const _0x3539b3=_0x47fac3['slice'](0x0,-0x7)['toLowerCase'](),_0x3cd16d='FORMAT_'+_0x3539b3['toUpperCase']();_0x538304['enableDefaultAttributesIntegration'](_0x3539b3),_0x538304['registerInlineAttribute'](_0x3539b3),_0x538304['descriptionFactory']['registerAttributeLabel'](_0x3539b3,o(_0x961ea3,_0x3cd16d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x342ac3=this['editor'],_0x13d858=_0x342ac3['locale'],_0x24fe41=_0x342ac3['plugins']['get']('TrackChangesEditing');function _0x3fc9a8(_0x1184b6,_0x47e967){_0x24fe41['descriptionFactory']['registerDescriptionCallback'](_0x439d16=>{if('formatInline'!=_0x439d16['type'])return;const {data:_0x3d7a4c}=_0x439d16;return _0x3d7a4c&&_0x3d7a4c['commandName']===_0x1184b6?_0x3d7a4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13d858,'*Format:*\x20%0',_0x47e967)}:{'type':'format','content':o(_0x13d858,'*Remove\x20format:*\x20%0',_0x47e967)}:void 0x0;});}_0x3fc9a8('bold',o(_0x13d858,'FORMAT_BOLD')),_0x3fc9a8('italic',o(_0x13d858,'FORMAT_ITALIC')),_0x3fc9a8('underline',o(_0x13d858,'FORMAT_UNDERLINE')),_0x3fc9a8('code',o(_0x13d858,'FORMAT_CODE')),_0x3fc9a8('strikethrough',o(_0x13d858,'FORMAT_STRIKETHROUGH')),_0x3fc9a8('subscript',o(_0x13d858,'FORMAT_SUBSCRIPT')),_0x3fc9a8('superscript',o(_0x13d858,'FORMAT_SUPERSCRIPT'));}}class U extends _0x5cca93{['afterInit'](){const _0x4350e6=this['editor'],_0x4cd719=_0x4350e6['locale'];if(!_0x4350e6['plugins']['has']('BlockQuoteEditing'))return;const _0x492e8f=_0x4350e6['plugins']['get']('TrackChangesEditing'),_0x13909e=this['editor']['commands']['get']('blockQuote');_0x492e8f['enableCommand']('blockQuote',(_0xa8b8ef,_0x13665e={})=>{const _0x22f80d=this['editor']['model']['document']['selection'],_0x3f692e=_0x13665e&&void 0x0!==_0x13665e['forceValue']?_0x13665e['forceValue']:!_0x13909e['value'];let _0x10e617=[];if(_0x3f692e){const _0x5665f3=Array['from'](_0x22f80d['getSelectedBlocks']())['filter'](_0x2d157d=>oo(_0x2d157d)||function(_0x858e89,_0x3604ad){const _0x2ec54b=_0x3604ad['checkChild'](_0x858e89['parent'],'blockQuote'),_0x17578a=_0x3604ad['checkChild'](['$root','blockQuote'],_0x858e89);return _0x2ec54b&&_0x17578a;}(_0x2d157d,this['editor']['model']['schema']));_0x10e617=to(_0x5665f3,_0x4350e6['model']);}else{const _0xd75b3a=Array['from'](_0x22f80d['getSelectedBlocks']())['filter'](_0xcbcde1=>oo(_0xcbcde1));_0x10e617=to(_0xd75b3a,_0x4350e6['model']);}_0x4350e6['model']['change'](()=>{for(const _0x3dfe17 of _0x10e617)_0x492e8f['markBlockFormat'](_0x3dfe17,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f692e}]});});}),_0x492e8f['descriptionFactory']['registerDescriptionCallback'](_0xa64b21=>{const {data:_0x2ded7}=_0xa64b21;if(_0x2ded7&&'blockQuote'==_0x2ded7['commandName']){const _0x3aa8cb=o(_0x4cd719,'ELEMENT_BLOCK_QUOTE');return _0x2ded7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cd719,'*Set\x20format:*\x20%0',_0x3aa8cb)}:{'type':'format','content':o(_0x4cd719,'*Remove\x20format:*\x20%0',_0x3aa8cb)};}});}}function oo(_0x116371){return'blockQuote'==_0x116371['parent']['name'];}class V extends _0x5cca93{['afterInit'](){const _0x4340c8=this['editor'],_0x244404=_0x4340c8['locale'],_0x567cea=_0x4340c8['plugins']['get']('TrackChangesEditing');_0x4340c8['plugins']['has']('BookmarkEditing')&&(_0x567cea['enableCommand']('insertBookmark'),_0x567cea['enableDefaultAttributesIntegration']('updateBookmark'),_0x567cea['registerBlockAttribute']('bookmarkId'),_0x567cea['descriptionFactory']['registerDescriptionCallback'](_0x25e963=>{if('insertion'!=_0x25e963['type']&&'deletion'!=_0x25e963['type']&&'attribute'!=_0x25e963['type'])return;const _0x5f47c9=_0x25e963['getContainedElement']();if(null==_0x5f47c9)return;if(!_0x5f47c9['is']('element','bookmark'))return;const _0x3e5aee=_0x5f47c9['getAttribute']('bookmarkId');if('insertion'==_0x25e963['type'])return{'type':'insertion','content':o(_0x244404,'*Insert:*\x20%0','\x22'+_0x3e5aee+'\x22\x20'+o(_0x244404,'ELEMENT_BOOKMARK'))};if('deletion'==_0x25e963['type'])return{'type':'deletion','content':o(_0x244404,'*Remove:*\x20%0','\x22'+_0x3e5aee+'\x22\x20'+o(_0x244404,'ELEMENT_BOOKMARK'))};const {data:_0x45d3f5}=_0x25e963;if(!_0x45d3f5||'bookmarkId'!=_0x45d3f5['key'])return;return{'type':'format','content':o(_0x244404,'*Set\x20bookmark:*\x20%0','\x22'+_0x45d3f5['newValue']+'\x22')};}));}}class F extends _0x5cca93{['afterInit'](){const _0x5ea1bf=this['editor'];_0x5ea1bf['plugins']['has']('CaseChange')&&(_0x5ea1bf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5ea1bf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5ea1bf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x5cca93{['afterInit'](){const _0xaf70b7=this['editor'];_0xaf70b7['commands']['get']('ckbox')&&_0xaf70b7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5cca93{['afterInit'](){const _0x3dbb11=this['editor'];if(!_0x3dbb11['plugins']['has']('CodeBlock'))return;const _0x1a3de9=_0x3dbb11['plugins']['get']('TrackChangesEditing'),_0x41ee09=_0x3dbb11['locale'],_0x1d694b=_0x3dbb11['config']['get']('codeBlock')['languages'],_0x5b669c=_0x3dbb11['commands']['get']('codeBlock');_0x1a3de9['enableCommand']('indentCodeBlock'),_0x1a3de9['enableCommand']('outdentCodeBlock'),_0x1a3de9['enableCommand']('codeBlock',(_0x24683d,_0x55ed9b={})=>{const _0x7df324=_0x3dbb11['model'],_0x5cb25e=_0x3dbb11['model']['document']['selection'],_0x258977=_0x55ed9b&&void 0x0!==_0x55ed9b['forceValue']?_0x55ed9b['forceValue']:!_0x5b669c['value'];let _0x1ea85a;_0x55ed9b['language']||(_0x55ed9b['language']=_0x1d694b[0x0]['language']),_0x1ea85a=_0x258977?Array['from'](_0x5cb25e['getSelectedBlocks']())['filter'](_0x1491ed=>co(_0x1491ed)||function(_0x23191f,_0x11c212){if(_0x23191f['is']('rootElement')||_0x11c212['isLimit'](_0x23191f))return!0x1;return _0x11c212['checkChild'](_0x23191f['parent'],'codeBlock');}(_0x1491ed,_0x7df324['schema'])):Array['from'](_0x5cb25e['getSelectedBlocks']())['filter'](_0x476ef5=>co(_0x476ef5));const _0x477c3e=to(_0x1ea85a,_0x7df324);_0x7df324['change'](()=>{for(const _0x2beaaa of _0x477c3e)_0x1a3de9['markBlockFormat'](_0x2beaaa,{'commandName':'codeBlock','commandParams':[{..._0x55ed9b,'forceValue':_0x258977}],'formatGroupId':'blockName'});});}),(_0x1a3de9['descriptionFactory']['registerElementLabel']('codeBlock',_0x32f23c=>o(_0x41ee09,'ELEMENT_CODE_BLOCK',_0x32f23c)),_0x1a3de9['descriptionFactory']['registerDescriptionCallback'](_0x46a9c7=>{if('formatBlock'!=_0x46a9c7['type'])return;const _0x5e3ffa=_0x41ee09['t'],{data:_0x38d6cf}=_0x46a9c7;if(!_0x38d6cf||'codeBlock'!=_0x38d6cf['commandName'])return;const _0x1ea8f0=_0x38d6cf['commandParams'][0x0]['language'],_0x445177=_0x5e3ffa(_0x1d694b['find'](_0x34e5d1=>_0x34e5d1['language']===_0x1ea8f0)['label'])['toLowerCase']();return _0x38d6cf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41ee09,'*Set\x20format:*\x20%0',o(_0x41ee09,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x445177+')')}:{'type':'format','content':o(_0x41ee09,'*Remove\x20format:*\x20%0',o(_0x41ee09,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x13b819){return'codeBlock'==_0x13b819['name'];}class J extends _0x5cca93{['afterInit'](){const _0x396ab4=this['editor'];if(!_0x396ab4['plugins']['has']('CommentsEditing'))return;_0x396ab4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5b2921,_0x482087,_0x443289){const _0x281acf=[];for(const _0x2cbb36 of _0x482087['getItems']())_0x2cbb36['hasAttribute'](_0x5b2921)&&_0x281acf['push'](_0x443289['createRangeOn'](_0x2cbb36));return _0x281acf;}function De(_0x3e959d,_0x1c4602,{showActiveMarker:_0x5982b0=!0x0}={}){const _0x196495=_0x3e959d['plugins']['get']('TrackChangesEditing');return(_0x4fa9ca,_0x245c7a,_0x4e5b44)=>{if(!_0x4e5b44['consumable']['test'](_0x245c7a['markerRange'],_0x4fa9ca['name']))return;const _0x4dd385=_0x245c7a['markerRange']['getWalker'](),_0x1bff77=_0x245c7a['markerRange']['start'],_0x5640a7=_0x3e959d['model']['schema'];let _0x362dab=null,_0x291188=null,_0x262c6b=!0x1,_0x577dbf=!0x1;for(const _0x56768c of _0x4dd385){const _0x130164=_0x56768c['item'];_0x262c6b=_0x262c6b||_0x5640a7['isContent'](_0x130164);const _0x48b0ef=_0x4e5b44['mapper']['toViewElement'](_0x130164);if(_0x48b0ef&&_0x48b0ef['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56768c['type']&&(_0x5640a7['isBlock'](_0x130164)&&!_0x5640a7['isLimit'](_0x130164)&&(_0x130164['nextSibling']||_0x1bff77['isAtEnd']?_0x362dab&&_0x362dab['parent']==_0x130164||(_0x362dab=_0x130164,_0x59739a(_0x56768c['previousPosition']),_0x577dbf=!0x0):_0x291188=_0x291188||_0x56768c['previousPosition']));}function _0x59739a(_0x2d77c8){const {id:_0x218733,authorId:_0x5acfbf}=_0x196495['_splitMarkerName'](_0x245c7a['markerName']),_0x55d9fd=_0x4e5b44['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c4602,'data-suggestion':_0x218733,'data-author-id':_0x5acfbf}),_0x288d09=_0x4e5b44['mapper']['toViewPosition'](_0x2d77c8);_0x5982b0&&_0x196495['activeMarkers']['includes'](_0x245c7a['markerName'])&&_0x4e5b44['writer']['addClass']('ck-suggestion-marker--active',_0x55d9fd),_0x4e5b44['writer']['insert'](_0x288d09,_0x55d9fd),_0x4e5b44['mapper']['bindElementToMarker'](_0x55d9fd,_0x245c7a['markerName']);}_0x262c6b||_0x577dbf||!_0x291188||_0x59739a(_0x291188);};}class K extends _0x5cca93{static get['requires'](){return[_0x37e819];}['init'](){const _0x415888=this['editor'],_0x43d618=_0x415888['plugins']['get']('TrackChangesEditing');_0x43d618['enableCommand']('delete');const _0x381bc1=_0x415888['commands']['get']('deleteForward');_0x43d618['enableCommand']('deleteForward',(_0x33c6f0,_0xe08676={})=>{const _0x139ace=_0x415888['model']['createSelection'](_0x415888['model']['document']['selection']);_0x139ace['isCollapsed']&&_0x415888['model']['modifySelection'](_0x139ace,{'direction':'forward','unit':_0xe08676['unit']});const _0x208d91=_0x139ace['getFirstRange'](),_0x2fdc87=_0x1c1e9b['fromRange'](_0x208d91);let _0x5ad4a0;_0x33c6f0(_0xe08676),_0x5ad4a0='$graveyard'==_0x2fdc87['root']['rootName']?_0x415888['model']['createRange'](_0x208d91['start']):_0x415888['model']['createRange'](_0x2fdc87['start'],_0x2fdc87['end']),_0x2fdc87['detach'](),_0x415888['model']['enqueueChange'](_0x381bc1['buffer']['batch'],_0x53fa0f=>{_0x381bc1['buffer']['lock'](),_0x53fa0f['setSelection'](_0x53fa0f['createRange'](_0x5ad4a0['end'])),_0x381bc1['buffer']['unlock']();});}),_0x415888['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x415888,'merge'),{'priority':'high'}),_0x415888['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5e9f27,_0x2d4401,_0x1e4f3c)=>{_0x1e4f3c['options']['showSuggestionHighlights']&&De(_0x415888,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5e9f27,_0x2d4401,_0x1e4f3c);},{'priority':'high'}),_0x415888['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x182f45,_0x39a1b9,_0x62548a)=>{const _0x3832ed=_0x62548a['mapper']['markerNameToElements'](_0x39a1b9['markerName']);if(_0x3832ed){for(const _0x13aece of _0x3832ed)_0x13aece['is']('uiElement')&&(_0x62548a['mapper']['unbindElementFromMarkerName'](_0x13aece,_0x39a1b9['markerName']),_0x62548a['writer']['remove'](_0x13aece));}},{'priority':'high'});}}class H extends _0x5cca93{['afterInit'](){const _0x377709=this['editor'];if(!_0x377709['plugins']['has']('ListEditing'))return;const _0x49a967=_0x377709['locale'],_0x2c8280=_0x377709['plugins']['get']('TrackChangesEditing'),_0x1add66=_0x377709['plugins']['has']('TodoListEditing'),_0x5d394f=!!_0x377709['config']['get']('list.multiBlock');function _0x2df8de(_0x3fcfcf){return{'type':'format','content':''+o(_0x49a967,'*Set\x20format:*\x20%0',_0x3fcfcf)};}function _0x46c604(_0xf55013){return{'type':'format','content':''+o(_0x49a967,'*Remove\x20format:*\x20%0',_0xf55013)};}_0x2c8280['enableDefaultAttributesIntegration']('numberedList'),_0x2c8280['enableDefaultAttributesIntegration']('bulletedList'),_0x2c8280['enableDefaultAttributesIntegration']('customNumberedList'),_0x2c8280['enableDefaultAttributesIntegration']('customBulletedList'),_0x2c8280['enableDefaultAttributesIntegration']('indentList'),_0x2c8280['enableDefaultAttributesIntegration']('outdentList'),_0x2c8280['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2c8280['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2c8280['registerBlockAttribute']('listItemId'),_0x2c8280['registerBlockAttribute']('listType'),_0x2c8280['registerBlockAttribute']('listIndent'),_0x5d394f&&(_0x2c8280['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2c8280['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1add66&&(_0x2c8280['enableDefaultAttributesIntegration']('todoList'),_0x2c8280['enableDefaultAttributesIntegration']('checkTodoList'),_0x2c8280['registerBlockAttribute']('todoListChecked'),_0x2c8280['descriptionFactory']['registerDescriptionCallback'](_0x4319f1=>{const {data:_0x4f45e5}=_0x4319f1;if(_0x4f45e5&&'todoListChecked'==_0x4f45e5['key'])return{'type':'format','content':_0x4f45e5['newValue']?o(_0x49a967,'*Check\x20item*'):o(_0x49a967,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x48769e=>{if(_0x48769e['batch']['isUndo'])return!0x1;let _0x3a77a2=!0x1;const _0x3241fd=_0x2c8280['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14c756=>'todoListChecked'===_0x2c8280['_getAttributeKey'](_0x14c756));for(const _0x5c41e2 of _0x3241fd){'todo'!=_0x5c41e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2c8280['_findSuggestions'](_0x5c41e2['getFirstRange'](),'attribute')['find'](_0x18a083=>'listType'===_0x2c8280['_getAttributeKey'](_0x18a083['suggestion']))||(_0x48769e['removeMarker'](_0x5c41e2['getFirstMarker']()),_0x3a77a2=!0x0));}return _0x3a77a2;})),_0x2c8280['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x49a967,'FORMAT_INDENT'));const _0x5c1288={'type':'format','content':''};_0x2c8280['descriptionFactory']['registerDescriptionCallback'](_0x48a495=>{const {data:_0x5c17ab}=_0x48a495;if(!_0x5c17ab||'listType'!=_0x5c17ab['key'])return;let _0x177359=_0x48a495['head'];for(;_0x177359;){if(_0x177359['data']&&(('listStyle'==_0x177359['data']['key']||'listMarkerStyle'==_0x177359['data']['key'])&&(_0x177359['data']['newValue']&&'default'!=_0x177359['data']['newValue']||'default'!=_0x177359['data']['oldValue']&&!_0x5c17ab['newValue'])||!_0x5d394f&&_0x177359['data']['key']==m))return _0x5c1288;_0x177359=_0x177359['next'];}if(null==_0x5c17ab['newValue'])switch(_0x5c17ab['oldValue']){case'bulleted':return _0x46c604(o(_0x49a967,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46c604(o(_0x49a967,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46c604(o(_0x49a967,'ELEMENT_TODO_LIST'));}switch(_0x5c17ab['newValue']){case'bulleted':return _0x2df8de(o(_0x49a967,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2df8de(o(_0x49a967,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2df8de(o(_0x49a967,'ELEMENT_TODO_LIST'));}}),_0x2c8280['descriptionFactory']['registerDescriptionCallback'](_0x4c978a=>{const {data:_0x313437}=_0x4c978a;if(_0x313437&&'listIndent'==_0x313437['key'])return null==_0x313437['newValue']||null==_0x313437['oldValue']&&0x0==_0x313437['newValue']?_0x5c1288:void 0x0;}),_0x2c8280['descriptionFactory']['registerDescriptionCallback'](_0x2d3f=>{if('attribute'!=_0x2d3f['type'])return;const {data:_0x3ec0b3}=_0x2d3f;if(!_0x3ec0b3||'listItemId'!=_0x3ec0b3['key'])return;const _0x36a694=Te(_0x2d3f);return'newValue'==_0x36a694?{'type':'format','content':o(_0x49a967,'*Merge:*\x20list\x20item')}:'oldValue'==_0x36a694?{'type':'format','content':o(_0x49a967,'*Split:*\x20list\x20item')}:_0x5c1288;}),_0x377709['model']['document']['registerPostFixer'](_0x5caf17=>this['listItemIdFixer'](_0x5caf17)),_0x377709['model']['document']['registerPostFixer'](_0x31b09c=>this['noTrackChangesFixer'](_0x31b09c)),_0x377709['model']['document']['on']('change:data',(_0x3ff28b,_0x452b7d)=>{if(_0x452b7d['isUndo']||!_0x452b7d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x402ab7){if(_0x402ab7['batch']['isUndo']||!_0x402ab7['batch']['isLocal'])return!0x1;let _0x56410f=!0x1;const _0x3cfdc8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x71bb56=>_0x71bb56['data']&&'listItemId'==_0x71bb56['data']['key'])['filter'](_0x8a7da2=>_0x8a7da2['data']['newValue']&&_0x8a7da2['data']['oldValue']);for(const _0x24c40e of _0x3cfdc8)Te(_0x24c40e)||(_0x402ab7['removeMarker'](_0x24c40e['getFirstMarker']()),_0x56410f=!0x0);return _0x56410f;}['noTrackChangesFixer'](_0x865a4){if(_0x865a4['batch']['isUndo']||!_0x865a4['batch']['isLocal'])return!0x1;const _0x113210=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x113210['trackChangesCommand']['value'])return!0x1;let _0x3e22d0=!0x1;const _0x344a6b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x89e308=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x52ddf8=>'attribute'==_0x52ddf8['type'])['filter'](_0x2034f1=>_0x344a6b['includes'](_0x2034f1['attributeKey']));if(0x0==_0x89e308['length'])return _0x3e22d0;for(const _0x28d071 of _0x89e308){const _0x4b763e=_0x113210['_findSuggestions'](_0x28d071['range'],'attribute')['filter'](_0x52a3e1=>!_0x52a3e1['meta']['isNextTo'])['map'](_0x504794=>_0x504794['suggestion'])['filter'](_0x41ea44=>{const _0x1b8149=_0x113210['_getAttributeKey'](_0x41ea44);return _0x344a6b['includes'](_0x1b8149);});if(_0x4b763e['length']){for(const _0xceefbd of _0x4b763e)_0x865a4['removeMarker'](_0xceefbd['getFirstMarker']());_0x3e22d0=!0x0;}}return _0x3e22d0;}['assureChains'](){const _0x27245b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf33e7f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1fdee6;const _0x4c154b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x29379a=>{if(_0x29379a['data']['oldRange']||!_0x29379a['data']['newRange'])return null;if(!_0x29379a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x219a8d}=_0x27245b['_splitMarkerName'](_0x29379a['name']);if(!_0x27245b['hasSuggestion'](_0x219a8d))return null;const _0x4fa4cd=_0x27245b['getSuggestion'](_0x219a8d);return _0xf33e7f['includes'](_0x4fa4cd['data']['key']);})['map'](_0x19ad9a=>{const {id:_0x2b1468}=_0x27245b['_splitMarkerName'](_0x19ad9a['name']),_0x3af0ab=_0x27245b['getSuggestion'](_0x2b1468);return _0x1fdee6=_0x3af0ab['attributes']['groupId'],_0x3af0ab['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4c154b['size'])return;const _0x18f624=_0x27245b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d3128=>'attribute'==_0x3d3128['type']&&_0x3d3128['data']&&_0xf33e7f['includes'](_0x3d3128['data']['key'])&&_0x3d3128['attributes']['groupId']!=_0x1fdee6)['map'](_0x4146dd=>({'listItem':_0x4146dd['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4146dd['attributes']['groupId']})),_0x2b8dd2=new Set();for(const {groupId:_0x280096,listItem:_0x18c290}of _0x18f624)_0x4c154b['has'](_0x18c290)&&_0x2b8dd2['add'](_0x280096);for(const _0x2a893b of _0x27245b['getSuggestions']())_0x2b8dd2['has'](_0x2a893b['attributes']['groupId'])&&_0x2a893b['setAttribute']('groupId',_0x1fdee6);}['_supportLegacySuggestions'](){const _0x358d72=this['editor'],_0x57595b=_0x358d72['locale'],_0x555524=_0x358d72['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x555524['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x197e6d,_0x5ca5ec){const _0x3200cd=[];for(let _0x56c7d7 of _0x197e6d)_0x56c7d7['start']['nodeAfter']===_0x56c7d7['end']['parent']&&(_0x56c7d7=_0x358d72['model']['createRange'](_0x358d72['model']['createPositionAt'](_0x56c7d7['start']['nodeAfter'],0x0))),_0x3200cd['push'](_0x56c7d7);_0x358d72['model']['change'](_0x59b7a0=>{const _0x395d91=_0x358d72['model']['document']['selection'],_0x58af33=Array['from'](_0x395d91['getRanges']())['map'](_0x9665a7=>_0x1c1e9b['fromRange'](_0x9665a7));_0x59b7a0['setSelection'](_0x3200cd),_0x358d72['commands']['get'](_0x5ca5ec['commandName'])['refresh'](),_0x5ca5ec['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x358d72['execute'](_0x5ca5ec['commandName'],..._0x5ca5ec['commandParams']),_0x59b7a0['setSelection'](_0x58af33);for(const _0x340ef3 of _0x58af33)_0x340ef3['detach']();});}),_0x555524['descriptionFactory']['registerElementLabel'](function(_0xa09f26){const _0x58d347=!_0x358d72['model']['schema']['isObject'](_0xa09f26),_0x11fab7=_0xa09f26['previousSibling'],_0x2f6116=_0xa09f26['nextSibling'],_0x65c4c2=_0xa09f26['getAttribute']('listItemId'),_0x34c328=!_0x11fab7||_0x11fab7['getAttribute']('listItemId')!==_0x65c4c2,_0x5a67fb=!_0x2f6116||_0x2f6116['getAttribute']('listItemId')!==_0x65c4c2;return _0x58d347&&Boolean(_0x65c4c2)&&_0x34c328&&_0x5a67fb;},_0x2d99f1=>o(_0x57595b,'ELEMENT_LIST_ITEM',_0x2d99f1));}['_registerLegacyDescription'](){const _0x4ce5f9=this['editor'],_0x535273=_0x4ce5f9['locale'];function _0x5d4879(_0x1f51f2){const _0x228e7d=_0x4ce5f9['commands']['get']('bulletedList')['value'],_0x2f3f6f=_0x4ce5f9['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f51f2?_0x228e7d:_0x2f3f6f;}_0x4ce5f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2b996a){if('formatBlock'!=_0x2b996a['type'])return;const {data:_0x34ab03}=_0x2b996a;if(!_0x34ab03)return;let _0x43f427,_0x2e1654,_0x4ce580,_0x50788a;switch(_0x34ab03['commandName']){case'bulletedList':_0x4ce580=_0x34ab03['commandParams'][0x0]['forceValue'],_0x50788a=_0x5d4879(_0x34ab03['commandName']),_0x43f427=_0x4ce580?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x50788a&&_0x4ce5f9['config']['get']('list.multiBlock')||(_0x43f427='*Change\x20to:*\x20%0'),_0x2e1654={'type':'format','content':o(_0x535273,_0x43f427,o(_0x535273,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4ce580=_0x34ab03['commandParams'][0x0]['forceValue'],_0x50788a=_0x5d4879(_0x34ab03['commandName']),_0x43f427=_0x4ce580?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x50788a&&_0x4ce5f9['config']['get']('list.multiBlock')||(_0x43f427='*Change\x20to:*\x20%0'),_0x2e1654={'type':'format','content':o(_0x535273,_0x43f427,o(_0x535273,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x43f427='*Indent:*\x20%0',_0x2e1654={'type':'format','content':o(_0x535273,_0x43f427,o(_0x535273,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x43f427=function(_0x26000a){const _0x5a0c00=_0x26000a['getFirstRange']();let _0x4023fe=_0x5a0c00['start']['nodeAfter'];for(;_0x4023fe&&_0x5a0c00['containsItem'](_0x4023fe);){if(_0x4023fe['getAttribute']('listIndent')>0x0)return!0x1;_0x4023fe=_0x4023fe['nextSibling'];}return!0x0;}(_0x2b996a)?o(_0x535273,'*Format:*\x20remove\x20from\x20%0',o(_0x535273,function(_0x123d7c){return'ELEMENT_'+_0x123d7c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2b996a))):o(_0x535273,'*Outdent:*\x20%0',o(_0x535273,'ELEMENT_LIST_ITEM')),_0x2e1654={'type':'format','content':_0x43f427};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x34ab03['multipleBlocks']&&(_0x43f427='*Merge:*\x20%0',_0x2e1654={'type':'deletion','content':o(_0x535273,_0x43f427,o(_0x535273,'ELEMENT_LIST_ITEM'))});}return _0x2e1654;});}}function Te(_0x45b653){let _0x5ebc3e=_0x45b653['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ebc3e;){const _0x16e3e3=_0x5ebc3e['getAttribute']('listItemId');if(!_0x16e3e3)return!0x1;if(_0x16e3e3==_0x45b653['data']['newValue'])return'newValue';if(_0x16e3e3==_0x45b653['data']['oldValue'])return'oldValue';_0x5ebc3e=_0x5ebc3e['previousSibling'];}return!0x1;}class q extends _0x5cca93{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1a8f95=this['editor']['config']['get']('list.properties'),_0x1fce04=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a8f95['styles']&&(_0x1fce04['enableDefaultAttributesIntegration']('listStyle'),_0x1fce04['registerBlockAttribute']('listStyle')),_0x1a8f95['reversed']&&(_0x1fce04['enableDefaultAttributesIntegration']('listReversed'),_0x1fce04['registerBlockAttribute']('listReversed')),_0x1a8f95['startIndex']&&(_0x1fce04['enableDefaultAttributesIntegration']('listStart'),_0x1fce04['registerBlockAttribute']('listStart'));const _0x4650c0={'type':'format','content':''};_0x1fce04['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x38df00=this['editor']['locale'];_0x1fce04['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x38df00,'FORMAT_LIST_REVERSED')),_0x1fce04['descriptionFactory']['registerDescriptionCallback'](_0x1a3d0=>{const {data:_0x5c7f0a}=_0x1a3d0;if(_0x5c7f0a&&'listReversed'==_0x5c7f0a['key'])return null==_0x5c7f0a['newValue']||0x0==_0x5c7f0a['newValue']&&null==_0x5c7f0a['oldValue']?_0x4650c0:void 0x0;}),_0x1fce04['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x38df00,'FORMAT_LIST_START')),_0x1fce04['descriptionFactory']['registerDescriptionCallback'](_0x24e9af=>{const {data:_0x402a4e}=_0x24e9af;if(_0x402a4e&&'listStart'==_0x402a4e['key'])return null==_0x402a4e['newValue']||0x1==_0x402a4e['newValue']&&null==_0x402a4e['oldValue']?_0x4650c0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x151fe8=>{if(_0x151fe8['batch']['isUndo'])return!0x1;let _0x6d8f65=!0x1;const _0x18c531=_0x1fce04['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x359aab=>{const _0x45f490=_0x1fce04['_getAttributeKey'](_0x359aab);return'listStart'==_0x45f490||'listReversed'==_0x45f490;});for(const _0x323259 of _0x18c531){const _0x5b8ba2=_0x323259['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5b8ba2||'customNumbered'==_0x5b8ba2)continue;_0x1fce04['_findSuggestions'](_0x323259['getFirstRange'](),'attribute')['find'](_0x1b6363=>'listType'==_0x1fce04['_getAttributeKey'](_0x1b6363['suggestion']))||(_0x151fe8['removeMarker'](_0x323259['getFirstMarker']()),_0x6d8f65=!0x0);}return _0x6d8f65;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x442010){const _0x567e6b=this['editor']['locale'],{data:_0x3eb9d6}=_0x442010,_0x5db35d={'type':'format','content':''};if(!_0x3eb9d6||'listStyle'!=_0x3eb9d6['key'])return;if(!_0x3eb9d6['oldValue'])return'default'==_0x3eb9d6['newValue']?_0x5db35d:{'type':'format','content':''+o(_0x567e6b,'*Set\x20format:*\x20%0',o(_0x567e6b,this['_getTranslationKeyForListStyle'](_0x3eb9d6['newValue'])))};if(!_0x3eb9d6['newValue']){if('default'==_0x3eb9d6['oldValue'])return _0x5db35d;let _0x38cc85=_0x442010['head'];for(;_0x38cc85;){if(_0x38cc85['data']&&'listType'==_0x38cc85['data']['key']&&_0x38cc85['data']['newValue'])return _0x5db35d;_0x38cc85=_0x38cc85['next'];}return{'type':'format','content':''+o(_0x567e6b,'*Remove\x20format:*\x20%0',o(_0x567e6b,this['_getTranslationKeyForListStyle'](_0x3eb9d6['oldValue'])))};}if('default'!=_0x3eb9d6['newValue'])return{'type':'format','content':''+o(_0x567e6b,'*Set\x20format:*\x20%0',o(_0x567e6b,this['_getTranslationKeyForListStyle'](_0x3eb9d6['newValue'])))};let _0x4b7f18=_0x442010['head'];for(;_0x4b7f18;){if(_0x4b7f18['data']&&'listType'==_0x4b7f18['data']['key']&&_0x4b7f18['data']['newValue']&&_0x4b7f18['data']['oldValue'])return _0x5db35d;_0x4b7f18=_0x4b7f18['next'];}return{'type':'format','content':o(_0x567e6b,'*Set\x20format:*\x20%0',o(_0x567e6b,'ELEMENT_'+_0x442010['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x34577c=this['editor'],_0x29b738=_0x34577c['locale'];_0x34577c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42a065=>{if('formatBlock'!=_0x42a065['type'])return;const {data:_0x3b5cdd}=_0x42a065;if(!_0x3b5cdd)return;let _0x171458,_0x4f9cc1;switch(_0x3b5cdd['commandName']){case'listStyle':_0x171458='*Change\x20to:*\x20%0',_0x4f9cc1={'type':'format','content':o(_0x29b738,_0x171458,o(_0x29b738,this['_getTranslationKeyForListStyle'](_0x3b5cdd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x171458=_0x3b5cdd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f9cc1={'type':'format','content':o(_0x29b738,_0x171458)};break;case'listStart':_0x171458='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f9cc1={'type':'format','content':o(_0x29b738,_0x171458,_0x3b5cdd['commandParams'][0x0]['startIndex'])};}return _0x4f9cc1;});}['_getTranslationKeyForListStyle'](_0x3b8857){return'ELEMENT_'+function(_0x4e94b0){if(Se['includes'](_0x4e94b0))return'bulleted';if(_e['includes'](_0x4e94b0))return'numbered';return null;}(_0x3b8857)['toUpperCase']()+'_LIST_'+_0x3b8857['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x5cca93{['afterInit'](){const _0x49088d=this['editor'];_0x49088d['commands']['get']('emoji')&&_0x49088d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x5cca93{static get['requires'](){return[_0x415ed5];}['init'](){const _0x119ea6=this['editor'],_0xeba9f5=_0x119ea6['plugins']['get']('TrackChangesEditing'),_0x28d5d5=_0x119ea6['commands']['get']('enter');_0xeba9f5['enableCommand']('enter',()=>{_0x119ea6['model']['change'](_0x5bf295=>{const _0x10beb7=_0x119ea6['model']['document']['selection'],_0x3dbf1f=_0x10beb7['getFirstPosition'](),_0x548c3b=_0x1c1e9b['fromRange'](_0x10beb7['getFirstRange']());if(_0x28d5d5['enterBlock'](_0x5bf295)){const _0x3bbf57=_0x119ea6['model']['createPositionAt'](_0x3dbf1f['parent']['nextSibling'],0x0),_0x54fb6c=_0x5bf295['createRange'](_0x3dbf1f,_0x3bbf57);_0xeba9f5['markInsertion'](_0x54fb6c);}else _0x5bf295['setSelection'](_0x5bf295['createRange'](_0x548c3b['end']));_0x548c3b['detach'](),_0x28d5d5['fire']('afterExecute',{'writer':_0x5bf295});});}),_0x119ea6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x119ea6,'split'),{'priority':'high'}),_0x119ea6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x15e0f3,_0x1f1a93,_0x3a0072)=>{const _0x5c99e5=_0x3a0072['mapper']['markerNameToElements'](_0x1f1a93['markerName']);if(_0x5c99e5){for(const _0x10c35b of _0x5c99e5)_0x10c35b['hasClass']('ck-suggestion-marker-split')&&(_0x3a0072['mapper']['unbindElementFromMarkerName'](_0x10c35b,_0x1f1a93['markerName']),_0x3a0072['writer']['remove'](_0x10c35b));}},{'priority':'high'}),_0x119ea6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x472f63,_0x50bff8,_0xb67c23)=>{_0xb67c23['options']['showSuggestionHighlights']&&De(_0x119ea6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x472f63,_0x50bff8,_0xb67c23);},{'priority':'high'});}}class Q extends _0x5cca93{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x412f9b=this['editor']['plugins']['get']('TrackChangesEditing');_0x412f9b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x412f9b['enableCommand']('findNext'),_0x412f9b['enableCommand']('findPrevious'),_0x412f9b['enableCommand']('replace'),_0x412f9b['enableCommand']('replaceAll');}['handleFindCommand'](_0x45a99e,_0x3de2c1,_0x48a18b={}){const _0x13d30b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x45a99e(_0xc0fd0d=>{let _0x5b7623=('string'==typeof _0x3de2c1?_0x13d30b['findByTextCallback'](_0x3de2c1,_0x48a18b):_0x3de2c1)(_0xc0fd0d);Array['isArray'](_0x5b7623)&&(_0x5b7623={'results':_0x5b7623,'searchText':'string'==typeof _0x3de2c1?_0x3de2c1:''});const _0x2574fa=_0x5b7623['results']['filter'](_0x32813a=>!0x1===this['_isInDeletionRange'](_0x32813a,_0xc0fd0d['item']));return{..._0x5b7623,'results':_0x2574fa};},_0x48a18b);}['_isInDeletionRange'](_0x378baa,_0x3bf941){const _0x29b7b9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bf941,_0x378baa['start']),this['editor']['model']['createPositionAt'](_0x3bf941,_0x378baa['end']));for(const _0x116196 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x29b7b9['getIntersection'](_0x116196['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 _0x5cca93{['afterInit'](){const _0x41344c=this['editor']['locale'],_0x46b4ca=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x37e328,commandName:_0x12c522}of eo)this['editor']['plugins']['has'](_0x37e328)&&(_0x46b4ca['enableDefaultAttributesIntegration'](_0x12c522),_0x46b4ca['registerInlineAttribute'](_0x12c522));_0x46b4ca['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x41344c,'FORMAT_FONT_SIZE')),_0x46b4ca['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x41344c,'FORMAT_FONT_FAMILY')),_0x46b4ca['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x41344c,'FORMAT_FONT_COLOR')),_0x46b4ca['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x41344c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x514d1f=this['editor'],_0x291d60=_0x514d1f['locale'];_0x514d1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9afa5c=>{const _0x29d04b=_0x291d60['t'];if('formatInline'!=_0x9afa5c['type'])return;const {data:_0x47d59a}=_0x9afa5c;if(null!=_0x47d59a){if('fontSize'==_0x47d59a['commandName']){const _0x2f00f4=_0x47d59a['commandParams'][0x0]['value'];if(_0x2f00f4){const _0x22d524=_0x29d04b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x28ea67=>_0x28ea67['model']==_0x2f00f4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x291d60,'*Set\x20font\x20size:*\x20%0',_0x22d524)};}return{'type':'format','content':o(_0x291d60,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x47d59a['commandName']){const _0x403eb7=_0x47d59a['commandParams'][0x0]['value'];return _0x403eb7?{'type':'format','content':o(_0x291d60,'*Set\x20font\x20family:*\x20%0',_0x403eb7)}:{'type':'format','content':o(_0x291d60,'*Reset\x20font\x20family*')};}if('fontColor'==_0x47d59a['commandName']){const _0xb0a954=_0x47d59a['commandParams'][0x0]['value'];if(_0xb0a954){const _0x1baeb5=_0x4deb51(this['editor']['config']['get']('fontColor.colors'))['find'](_0xf950d2=>_0xf950d2['model']==_0xb0a954);let _0x5453ad=_0xb0a954,_0x5cf125='';return _0x1baeb5&&(_0x5453ad=_0x1baeb5['label'],_0x5cf125=_0x29d04b(_0x5453ad)['toLowerCase']()),{'type':'format','content':o(_0x291d60,'*Set\x20font\x20color:*\x20%0',_0x5cf125)['trim'](),'color':{'value':_0xb0a954,'title':_0x5cf125||_0x5453ad}};}return{'type':'format','content':o(_0x291d60,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x47d59a['commandName']){const _0x2c93cd=_0x47d59a['commandParams'][0x0]['value'];if(_0x2c93cd){const _0x2e941d=_0x4deb51(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x147b3a=>_0x147b3a['model']==_0x2c93cd);let _0x26e29a=_0x2c93cd,_0x173633='';return _0x2e941d&&(_0x26e29a=_0x2e941d['label'],_0x173633=_0x29d04b(_0x26e29a)['toLowerCase']()),{'type':'format','content':o(_0x291d60,'*Set\x20font\x20background\x20color:*\x20%0',_0x173633)['trim'](),'color':{'value':_0x2c93cd,'title':_0x173633||_0x26e29a}};}return{'type':'format','content':o(_0x291d60,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x5cca93{['afterInit'](){const _0x2fc2c9=this['editor'],_0x266d18=_0x2fc2c9['plugins']['get']('TrackChangesEditing'),_0x34fe12=_0x2fc2c9['commands']['get']('copyFormat'),_0x2e7513=_0x2fc2c9['commands']['get']('pasteFormat');_0x34fe12&&_0x2e7513&&(_0x266d18['enableDefaultAttributesIntegration']('pasteFormat'),_0x266d18['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3831ec=this['editor'],_0x107899=_0x3831ec['locale'];_0x3831ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58da5b=>{if('formatBlock'!=_0x58da5b['type']&&'formatInline'!=_0x58da5b['type'])return;const {data:_0x455c4a}=_0x58da5b;if(_0x455c4a&&'pasteFormat'===_0x455c4a['commandName']){const _0x59c3eb=[],_0x1f14dc=_0x455c4a['commandParams'][0x0];for(const [_0x1d9e57,_0x46bd0a]of Object['entries'](_0x1f14dc))_0x59c3eb['push'](ro(_0x3831ec,_0x1d9e57,_0x46bd0a));return _0x59c3eb['length']?{'type':'format','content':o(_0x107899,'*Set\x20format\x20to:*\x20%0',_0x59c3eb['join'](',\x20'))}:{'type':'format','content':o(_0x107899,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3ea099,_0x5c5986,_0x12e049){const _0x23accf=_0x3ea099['locale']['t'],_0x5b1904=_0x5c5986['split'](/(?=[A-Z])/)['join']('\x20'),_0x59f4df=_0x23accf(_0x5b1904['charAt'](0x0)['toUpperCase']()+_0x5b1904['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x12e049)return _0x59f4df;if('fontColor'===_0x5c5986||'fontBackgroundColor'===_0x5c5986){const _0x433afc=_0x4deb51(_0x3ea099['config']['get']('fontColor.colors'))['find'](_0x3933c5=>_0x3933c5['model']==_0x12e049);return _0x59f4df+'\x20('+(_0x433afc?_0x23accf(_0x433afc['label'])['toLowerCase']():_0x12e049)+')';}if('fontSize'===_0x5c5986&&isNaN(parseFloat(_0x12e049))){const _0x5158d2=_0x3ea099['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3ea099['config']['get']('fontSize.options'))['find'](_0x4e9b43=>_0x4e9b43['model']==_0x12e049);return _0x59f4df+'\x20('+(_0x5158d2?_0x23accf(_0x5158d2['title'])['toLowerCase']():_0x12e049)+')';}return _0x59f4df+'\x20('+_0x12e049+')';}class Z extends _0x5cca93{['_headingOptions'];['afterInit'](){const _0x267d98=this['editor'];if(!_0x267d98['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x267d98['config']['get']('heading.options');const _0x1925c9=_0x267d98['locale'],_0xa8917b=_0x267d98['plugins']['get']('TrackChangesEditing');_0xa8917b['enableDefaultAttributesIntegration']('heading');for(const _0x5ead23 of this['_headingOptions'])'paragraph'!=_0x5ead23['model']&&_0xa8917b['descriptionFactory']['registerElementLabel'](_0x5ead23['model'],_0x4217d7=>{const _0x48dac5=this['_getHeadingLevel'](_0x5ead23['model']);return null!==_0x48dac5?_0x15fc86(_0x4217d7,_0x48dac5):_0x8f0d2a(_0x4217d7,_0x5ead23['title']);});function _0x15fc86(_0x34268f,_0x6196da){return o(_0x1925c9,'ELEMENT_HEADING',[_0x34268f,_0x6196da]);}function _0x8f0d2a(_0x36bd0d,_0x54c7c7){return o(_0x1925c9,'ELEMENT_HEADING_CUSTOM',[_0x36bd0d,_0x54c7c7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5172a9=this['editor'],_0x14c28a=_0x5172a9['locale'];function _0x3255c9(_0x37548d,_0x4053b6){return o(_0x14c28a,'ELEMENT_HEADING_CUSTOM',[_0x37548d,_0x4053b6]);}_0x5172a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe1b750=>{if('formatBlock'!=_0xe1b750['type'])return;const {data:_0x462bff}=_0xe1b750;if(_0x462bff&&'heading'==_0x462bff['commandName']){const _0x4df065=_0x462bff['commandParams'][0x0]['value'],_0x5eb072=this['_getHeadingLevel'](_0x4df065);if(null!==_0x5eb072)return{'type':'format','content':o(_0x14c28a,'*Change\x20to:*\x20%0',(_0x2ae623=0x1,_0x55fcf0=_0x5eb072,o(_0x14c28a,'ELEMENT_HEADING',[_0x2ae623,_0x55fcf0])))};const _0x7299c9=this['_headingOptions']['find'](_0x639dc0=>_0x639dc0['model']===_0x4df065)['title'];return{'type':'format','content':o(_0x14c28a,'*Change\x20to:*\x20%0',_0x3255c9(0x1,_0x7299c9))};}var _0x2ae623,_0x55fcf0;});}['_getHeadingLevel'](_0x33789a){const _0xc9ca4=_0x33789a['match'](/^heading(\d+)/);if(_0xc9ca4)return _0xc9ca4[0x1];const _0x4a9c45=this['_headingOptions']?.['find'](_0x22faa1=>_0x22faa1['model']==_0x33789a);if(_0x4a9c45&&_0x4a9c45['view']){const _0x4a3e15=_0x4a9c45['view'],_0x13c55a=(_0x4a3e15['name']??_0x4a3e15)['match'](/^h(\d+)/);if(_0x13c55a)return _0x13c55a[0x1];}return null;}}class tt extends _0x5cca93{['afterInit'](){const _0x16b5dc=this['editor'];if(!_0x16b5dc['plugins']['has']('HighlightEditing'))return;const _0xaf46cf=_0x16b5dc['plugins']['get']('TrackChangesEditing'),_0x5a59e7=_0x16b5dc['locale'];_0xaf46cf['enableDefaultAttributesIntegration']('highlight'),_0xaf46cf['registerInlineAttribute']('highlight'),_0xaf46cf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5a59e7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d4820=this['editor'],_0x456492=_0x3d4820['locale'];_0x3d4820['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e6600=>{if('formatInline'!=_0x3e6600['type'])return;const {data:_0x4d4814}=_0x3e6600;if(_0x4d4814&&'highlight'==_0x4d4814['commandName']){const _0x166db3=_0x456492['t'],_0x20746c=_0x4d4814['commandParams'][0x0]['value'];if(_0x20746c){const _0x3bcbd6=_0x3d4820['config']['get']('highlight.options')['find'](_0x227325=>_0x227325['model']==_0x20746c),_0x24f83d=_0x166db3(_0x3bcbd6['title'])['toLowerCase']();return{'type':'format','content':o(_0x456492,'*Set\x20highlight:*\x20%0',_0x24f83d),'color':{'value':_0x3bcbd6['color'],'title':_0x3bcbd6['title']}};}return{'type':'format','content':o(_0x456492,'*Remove\x20highlight*',o(_0x456492,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x5cca93{['afterInit'](){const _0x218bf6=this['editor'];if(!_0x218bf6['plugins']['has']('HorizontalLineEditing'))return;_0x218bf6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x57d58c=_0x218bf6['plugins']['get']('TrackChangesEditing'),_0x4e6d6f=_0x218bf6['locale'];_0x57d58c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2b2694=>o(_0x4e6d6f,'ELEMENT_HORIZONTAL_LINE',_0x2b2694)),_0x218bf6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x33b838,{writer:_0x148303,options:_0x4505fb})=>{if(!_0x4505fb['showSuggestionHighlights'])return null;const _0x11f3e=_0x148303['createContainerElement']('div'),_0x2f7c21=_0x148303['createEmptyElement']('hr');return _0x148303['addClass']('ck-horizontal-line',_0x11f3e),_0x148303['insert'](_0x148303['createPositionAt'](_0x11f3e,0x0),_0x2f7c21),_0x11f3e;},'converterPriority':'high'});}}class nt extends _0x5cca93{['afterInit'](){const _0x5002bf=this['editor'];if(!_0x5002bf['plugins']['has']('HtmlEmbed'))return;const _0x5ed870=_0x5002bf['plugins']['get']('TrackChangesEditing'),_0x37a20b=_0x5002bf['locale'];_0x5ed870['descriptionFactory']['registerElementLabel']('rawHtml',_0x385ee6=>o(_0x37a20b,'ELEMENT_HTML_EMBED',_0x385ee6)),_0x5ed870['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ed870['registerBlockAttribute']('value'),_0x5ed870['descriptionFactory']['registerDescriptionCallback'](_0x3c1040=>{if('attribute'!=_0x3c1040['type'])return;const {data:_0x5a7566}=_0x3c1040;if(_0x5a7566&&'value'==_0x5a7566['key']&&_0x3c1040['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x197335=o(_0x37a20b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37a20b,'*Change\x20%0\x20content*',_0x197335)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x517704=this['editor'],_0x2af378=_0x517704['locale'];_0x517704['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x410cfd=>{if('formatBlock'!=_0x410cfd['type'])return;const {data:_0x3a4cbe}=_0x410cfd;if(_0x3a4cbe&&'htmlEmbed'==_0x3a4cbe['commandName']){const _0x27f5d0=o(_0x2af378,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2af378,'*Change\x20%0\x20content*',_0x27f5d0)};}});}}class et extends _0x5cca93{['afterInit'](){const _0x1272dd=this['editor'];if(!_0x1272dd['plugins']['has']('ImageEditing'))return;const _0x22f841=_0x1272dd['plugins']['get']('TrackChangesEditing'),_0x569977=_0x1272dd['plugins']['get']('ImageUtils'),_0x179b39=_0x1272dd['locale'];_0x22f841['enableCommand']('insertImage'),_0x22f841['descriptionFactory']['registerElementLabel']('imageBlock',_0x4fe241=>o(_0x179b39,'ELEMENT_IMAGE',_0x4fe241)),_0x22f841['descriptionFactory']['registerElementLabel']('imageInline',_0x618d11=>o(_0x179b39,'ELEMENT_INLINE_IMAGE',_0x618d11)),_0x22f841['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x179b39,'ELEMENT_CAPTION')),_0x1272dd['plugins']['has']('ImageUploadEditing')&&_0x22f841['enableCommand']('uploadImage'),_0x1272dd['plugins']['has']('ImageBlockEditing')&&_0x1272dd['plugins']['has']('ImageInlineEditing')&&(_0x22f841['enableCommand']('imageTypeInline',(_0xb99041,_0x194aa5)=>{const _0x346bab=_0x569977['getClosestSelectedImageElement'](_0x1272dd['model']['document']['selection']);_0x1272dd['model']['change'](()=>{_0x22f841['markBlockFormat'](_0x346bab,{'commandName':'imageTypeInline','commandParams':[_0x194aa5]},[],'convertBlockImageToInline');});}),_0x22f841['enableCommand']('imageTypeBlock',(_0x227bba,_0x3095dd)=>{_0x1272dd['model']['change'](_0x40fa4c=>{let _0x2bd0d8=_0x569977['getClosestSelectedImageElement'](_0x1272dd['model']['document']['selection']),_0x8ca8c2=_0x40fa4c['createRangeOn'](_0x2bd0d8);const _0x47c243=_0x2f9395['fromPosition'](_0x8ca8c2['start'],'toPrevious'),_0x537385=_0x2f9395['fromPosition'](_0x8ca8c2['end'],'toNext');_0x22f841['forceDefaultExecution'](()=>_0x227bba(_0x3095dd)),_0x2bd0d8=_0x569977['getClosestSelectedImageElement'](_0x1272dd['model']['document']['selection']),_0x8ca8c2=_0x40fa4c['createRangeOn'](_0x2bd0d8);const _0x15ef16=_0x40fa4c['createRange'](_0x47c243,_0x537385);_0x47c243['detach'](),_0x537385['detach'](),_0x22f841['markBlockFormat'](_0x2bd0d8,{'commandName':'imageTypeInline','commandParams':[_0x3095dd]},[],'convertInlineImageToBlock'),_0x15ef16['start']['isBefore'](_0x8ca8c2['start'])&&_0x22f841['markInsertion'](_0x40fa4c['createRange'](_0x15ef16['start'],_0x8ca8c2['start']),'convertInlineImageToBlock'),_0x8ca8c2['end']['isBefore'](_0x15ef16['end'])&&_0x22f841['markInsertion'](_0x40fa4c['createRange'](_0x8ca8c2['end'],_0x15ef16['end']),'convertInlineImageToBlock');});}),_0x22f841['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x22f841['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x22f841['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x22f841['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x22f841['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x22f841['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x184a48])=>{const _0x267251=_0x22f841['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1a2841=_0x184a48['start'],_0x495590=_0x184a48['end'];const _0x273120=_0x1272dd['model']['schema']['getNearestSelectionRange'](_0x1a2841,'backward'),_0x449b07=_0x1272dd['model']['schema']['getNearestSelectionRange'](_0x495590,'forward');_0x273120['isCollapsed']&&(_0x1a2841=_0x273120['start']),_0x449b07['isCollapsed']&&(_0x495590=_0x449b07['end']),_0x267251([_0x1272dd['model']['createRange'](_0x1a2841,_0x495590)]);}),_0x22f841['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3e44c0),_0x22f841['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3e44c0)),_0x1272dd['plugins']['has']('ImageCaptionEditing')&&(_0x22f841['enableCommand']('toggleImageCaption',(_0x21ab45,_0x2ed3f3)=>{const _0x198702=_0x1272dd['plugins']['get']('ImageCaptionUtils');let _0x1c0d6b=_0x569977['getClosestSelectedImageElement'](_0x1272dd['model']['document']['selection']),_0x12199b=_0x198702['getCaptionFromImageModelElement'](_0x1c0d6b);_0x1272dd['model']['change'](()=>{if(_0x12199b)return void _0x22f841['markDeletion'](_0x1272dd['model']['createRangeOn'](_0x12199b));const _0x1a4e7c=_0x569977['isBlockImage'](_0x1c0d6b);_0x21ab45(_0x2ed3f3),_0x1c0d6b=_0x569977['getClosestSelectedImageElement'](_0x1272dd['model']['document']['selection']),_0x12199b=_0x198702['getCaptionFromImageModelElement'](_0x1c0d6b),_0x22f841['markInsertion'](_0x1272dd['model']['createRangeOn'](_0x12199b),_0x1a4e7c?null:'imageCaption');});}),_0x22f841['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3e44c0));const _0x39abd7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x42eec7(_0x5187ad,_0x2852f8){const _0x5ba992=_0x39abd7['findIndex'](({type:_0x49e790,subType:_0xdec684})=>_0x5187ad['type']==_0x49e790&&_0x5187ad['subType']==_0xdec684),_0x2c846a=_0x39abd7['findIndex'](({type:_0x3a04e6,subType:_0x573e44})=>_0x2852f8['type']==_0x3a04e6&&_0x2852f8['subType']==_0x573e44);if(_0x5ba992<0x0||_0x2c846a<0x0)return!0x1;const _0x353c7d=_0x5187ad['getFirstRange'](),_0x5c76ba=_0x2852f8['getFirstRange']();if((0x0==_0x5ba992||0x1==_0x5ba992)&&0x2==_0x2c846a&&_0x353c7d['isIntersecting'](_0x5c76ba))return!0x0;if(0x2==_0x5ba992&&0x3==_0x2c846a){const _0xecb6a3=_0x22f841['_findSuggestions'](_0x353c7d,'insertion')['filter'](({suggestion:_0x23f7aa,meta:_0x1c2a5a})=>_0x1c2a5a['isOwn']&&'convertInlineImageToBlock'==_0x23f7aa['subType']);if(_0xecb6a3['length']>0x1&&_0x5c76ba['end']['isEqual'](_0x353c7d['start']))return!0x0;if(0x1==_0xecb6a3['length']&&(_0x353c7d['start']['isEqual'](_0x5c76ba['end'])||_0x353c7d['end']['isEqual'](_0x5c76ba['start'])))return!0x0;}if(0x3==_0x5ba992&&0x3==_0x2c846a&&_0x353c7d['start']['isBefore'](_0x5c76ba['start'])){const _0x939fab=_0x353c7d['end']['nodeAfter'],_0xb45935=_0x5c76ba['start']['nodeBefore'];return _0x569977['isBlockImage'](_0x939fab)&&_0x939fab===_0xb45935;}return!0x1;}function _0x3e44c0(_0x2adce7,_0x207823){return _0x42eec7(_0x2adce7,_0x207823)?[_0x2adce7,_0x207823]:_0x42eec7(_0x207823,_0x2adce7)?[_0x207823,_0x2adce7]:null;}_0x1272dd['plugins']['has']('ImageResize')&&(_0x22f841['enableDefaultAttributesIntegration']('resizeImage'),_0x22f841['registerBlockAttribute']('resizedWidth'),_0x22f841['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x179b39,'FORMAT_IMAGE_SIZE'))),_0x1272dd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x22f841['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x22f841['registerBlockAttribute']('alt')),_0x1272dd['plugins']['has']('PictureEditing')&&(_0x22f841['registerBlockAttribute']('sources'),_0x22f841['descriptionFactory']['registerDescriptionCallback'](_0x1779ac=>{if('attribute'!=_0x1779ac['type'])return;const {data:_0x5beb11}=_0x1779ac;return _0x5beb11&&'sources'==_0x5beb11['key']?{'type':'format','content':''}:void 0x0;})),_0x1272dd['plugins']['has']('ImageSizeAttributes')&&(_0x22f841['registerBlockAttribute']('width'),_0x22f841['registerBlockAttribute']('height'),_0x22f841['descriptionFactory']['registerDescriptionCallback'](_0x5dfabf=>{if('attribute'!=_0x5dfabf['type'])return;const {data:_0x310308}=_0x5dfabf;return!_0x310308||'width'!=_0x310308['key']&&'height'!=_0x310308['key']?void 0x0:{'type':'format','content':''};})),_0x22f841['descriptionFactory']['registerDescriptionCallback'](_0x3bb325=>{if(!!_0x39abd7['find'](({type:_0x5e4abb,subType:_0x46a0b5})=>_0x3bb325['type']==_0x5e4abb&&_0x3bb325['subType']==_0x46a0b5))return _0x3bb325['previous']?{}:void 0x0;}),_0x22f841['descriptionFactory']['registerDescriptionCallback'](_0x1fb40c=>{if('insertion'==_0x1fb40c['type']||'deletion'==_0x1fb40c['type']){const _0x2bd5a1=_0x1fb40c['getContainedElement']();if(_0x2bd5a1&&_0x2bd5a1['is']('element','caption'))return{'type':'insertion'==_0x1fb40c['type']?'addObject':'removeObject','element':_0x2bd5a1,'quantity':0x1};}}),_0x22f841['descriptionFactory']['registerDescriptionCallback'](_0x180919=>'formatBlock'==_0x180919['type']&&'convertInlineImageToBlock'==_0x180919['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x180919['type']&&'convertBlockImageToInline'==_0x180919['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x22f841['descriptionFactory']['registerDescriptionCallback'](_0x1a0e2d=>{if('attribute'!=_0x1a0e2d['type'])return;const {data:_0xbd6018}=_0x1a0e2d;if(!_0xbd6018||'alt'!=_0xbd6018['key'])return;const _0x54a04d=_0xbd6018['newValue'];return _0x54a04d?{'type':'format','content':o(_0x179b39,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54a04d+'\x22')}:{'type':'format','content':o(_0x179b39,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fa80c=this['editor'],_0x1d5320=_0x3fa80c['locale'];_0x3fa80c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1866d4=>{if('formatBlock'!=_0x1866d4['type']&&'formatInline'!=_0x1866d4['type'])return;const {data:_0x352e97}=_0x1866d4;if(_0x352e97){if('imageTextAlternative'==_0x352e97['commandName']){const _0x5b2d95=_0x352e97['commandParams'][0x0]['newValue'];return _0x5b2d95?{'type':'format','content':o(_0x1d5320,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5b2d95+'\x22')}:{'type':'format','content':o(_0x1d5320,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x352e97['commandName']){const _0x1c14c0=_0x352e97['commandParams'][0x0]['width'];return _0x1c14c0?{'type':'format','content':o(_0x1d5320,'*Set\x20image\x20width:*\x20%0',_0x1c14c0)}:{'type':'format','content':o(_0x1d5320,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5cca93{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x39feeb=this['editor']['locale'],_0x217d53=this['editor']['plugins']['get']('TrackChangesEditing');_0x217d53['enableDefaultAttributesIntegration']('replaceImageSource'),_0x217d53['registerBlockAttribute']('src'),_0x217d53['descriptionFactory']['registerDescriptionCallback'](_0x13874b=>{if('attribute'!=_0x13874b['type'])return;const {data:_0x13bd6f}=_0x13874b;return _0x13bd6f&&'src'==_0x13bd6f['key']?_0x13bd6f['newValue']&&_0x13bd6f['oldValue']?{'type':'format','content':o(_0x39feeb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x82c9bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x82c9bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x82c9bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x82c9bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x82c9bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bde2f=this['editor'],_0x1af245=_0x5bde2f['locale'];_0x5bde2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51f862=>{if('formatBlock'!=_0x51f862['type']&&'formatInline'!=_0x51f862['type'])return;const {data:_0x5a4840}=_0x51f862;if(!_0x5a4840||'replaceImageSource'!=_0x5a4840['commandName'])return;return{'type':'format','content':o(_0x1af245,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x5cca93{['afterInit'](){const _0x5bbe94=this['editor'];if(!_0x5bbe94['plugins']['has']('ImageStyleEditing'))return;const _0x401bba=_0x5bbe94['plugins']['get']('TrackChangesEditing'),_0x2a67c6=_0x5bbe94['plugins']['get']('ImageUtils'),_0x51053c={};_0x401bba['enableCommand']('imageStyle',(_0x29ff97,_0x5c0c70)=>{const _0x3ded00=_0x5bbe94['plugins']['get']('Users')['me'],_0x28b622=_0x5bbe94['commands']['get']('imageStyle');let _0x418e77=_0x2a67c6['getClosestSelectedImageElement'](_0x5bbe94['model']['document']['selection']),_0x32addb=_0x5bbe94['model']['createRangeOn'](_0x418e77),_0x5956cb=_0x28b622['value'];if(_0x5956cb==_0x5c0c70['value'])return;const _0x452dcd={'commandName':'imageStyle','commandParams':[_0x5c0c70],'formatGroupId':_0x51161f()};_0x5bbe94['model']['change'](()=>{if(_0x401bba['getSuggestions']()['filter'](_0x5d573f=>_0x5d573f['isInContent']&&_0x3ded00==_0x5d573f['author']&&('formatBlock'==_0x5d573f['type']||'formatInline'==_0x5d573f['type'])&&('imageStylePreApply'==_0x5d573f['subType']||'imageStylePostApply'==_0x5d573f['subType'])&&_0x5d573f['getFirstRange']()['isEqual'](_0x32addb))['forEach'](_0x212892=>_0x401bba['discardSuggestion'](_0x212892['head'])),_0x418e77=_0x2a67c6['getClosestSelectedImageElement'](_0x5bbe94['model']['document']['selection']),_0x32addb=_0x5bbe94['model']['createRangeOn'](_0x418e77),_0x28b622['refresh'](),_0x5bbe94['commands']['get']('imageTypeInline')['refresh'](),_0x5bbe94['commands']['get']('imageTypeBlock')['refresh'](),_0x5956cb=_0x28b622['value'],_0x5956cb!=_0x5c0c70['value'])return _0x2a67c6['isInlineImage'](_0x418e77)&&_0x28b622['shouldConvertImageType'](_0x5c0c70['value'],_0x418e77)?(_0x29ff97({..._0x5c0c70,'setImageSizes':!0x1}),_0x418e77=_0x2a67c6['getClosestSelectedImageElement'](_0x5bbe94['model']['document']['selection']),void _0x401bba['markBlockFormat'](_0x418e77,{..._0x452dcd,'commandReversedParams':[{'value':_0x5956cb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2a67c6['isBlockImage'](_0x418e77)?_0x401bba['markBlockFormat'](_0x418e77,_0x452dcd,[],'imageStylePostApply'):_0x401bba['markInlineFormat'](_0x32addb,_0x452dcd,'imageStylePostApply'));});});for(const _0x2ed8cd of _0x5bbe94['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51053c[_0x2ed8cd['name']]=_0x2ed8cd['title']['toLowerCase']();_0x401bba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x401bba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x401bba['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x401bba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x28a556])=>{_0x2a67c6['setImageNaturalSizeAttributes'](_0x28a556['getContainedElement']());}),_0x401bba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3bea30,_0x57b70d)=>{_0x401bba['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3bea30,{'commandName':_0x57b70d['commandName'],'commandParams':_0x57b70d['commandReversedParams']});}),_0x401bba['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x29c553,_0x4324aa){if(_0xdadcbb(_0x29c553,_0x4324aa))return[_0x29c553,_0x4324aa];if(_0xdadcbb(_0x4324aa,_0x29c553))return[_0x4324aa,_0x29c553];return null;});const _0x5340ae=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xdadcbb(_0x45aa96,_0x51db7b){const _0x3fa43a=_0x5340ae['findIndex'](({type:_0x1c2d7f,subType:_0x1dc653})=>_0x45aa96['type']==_0x1c2d7f&&_0x45aa96['subType']==_0x1dc653),_0x282953=_0x5340ae['findIndex'](({type:_0x5eee31,subType:_0x767b6a})=>_0x51db7b['type']==_0x5eee31&&_0x51db7b['subType']==_0x767b6a);if(_0x3fa43a<0x0||_0x282953<0x0)return!0x1;const _0x4e9bbc=_0x45aa96['getFirstRange'](),_0x4a2e82=_0x51db7b['getFirstRange']();if((0x0==_0x3fa43a||0x1==_0x3fa43a)&&0x2==_0x282953&&_0x4e9bbc['isIntersecting'](_0x4a2e82))return!0x0;if(0x2==_0x3fa43a&&0x3==_0x282953){const _0x3465db=_0x401bba['_findSuggestions'](_0x4e9bbc,'insertion')['filter'](({suggestion:_0x2e06e8,meta:_0x3d98ed})=>_0x3d98ed['isOwn']&&'convertInlineImageToBlock'==_0x2e06e8['subType']);if(_0x3465db['length']>0x1&&_0x4a2e82['end']['isEqual'](_0x4e9bbc['start']))return!0x0;if(0x1==_0x3465db['length']&&(_0x4e9bbc['start']['isEqual'](_0x4a2e82['end'])||_0x4e9bbc['end']['isEqual'](_0x4a2e82['start'])))return!0x0;}if(0x3==_0x3fa43a&&0x3==_0x282953&&_0x4e9bbc['start']['isBefore'](_0x4a2e82['start'])){const _0x39755a=_0x4e9bbc['end']['nodeAfter'],_0x1a81ba=_0x4a2e82['start']['nodeBefore'];return _0x2a67c6['isBlockImage'](_0x39755a)&&_0x39755a===_0x1a81ba;}return!0x1;}_0x5bbe94['model']['document']['registerPostFixer'](()=>{let _0x12403d=!0x1;const _0x75e23e=Array['from'](_0x5bbe94['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39400e,data:_0x342829}of _0x75e23e){const {group:_0xed2129,type:_0x286c71,subType:_0x4aaf5b,id:_0x328a47}=_0x401bba['_splitMarkerName'](_0x39400e);if('suggestion'==_0xed2129&&_0x401bba['hasSuggestion'](_0x328a47)){if('formatBlock'==_0x286c71&&('imageStylePreApply'==_0x4aaf5b||'imageStylePostApply'==_0x4aaf5b)){const _0x334c02=_0x401bba['getSuggestion'](_0x328a47);if(_0x342829['newRange']){const _0x2065af=_0x334c02['getFirstRange']()['getContainedElement']();if(_0x2a67c6['isBlockImage'](_0x2065af))continue;_0x401bba['discardSuggestion'](_0x334c02),_0x12403d=!0x0;}}if('insertion'==_0x286c71&&'imageCaption'==_0x4aaf5b&&!_0x342829['newRange']){const _0x1369ce=_0x401bba['getSuggestion'](_0x328a47);_0x1369ce['next']&&_0x1369ce['next']['isInContent']&&(_0x401bba['discardSuggestion'](_0x1369ce['next']),_0x12403d=!0x0);}}}return _0x12403d;}),this['_registerLegacyDescription'](_0x51053c);}['_registerLegacyDescription'](_0x11d014){const _0x24cf54=this['editor'],_0x1d0e49=_0x24cf54['locale'];_0x24cf54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45b326=>{if('formatBlock'!=_0x45b326['type']&&'formatInline'!=_0x45b326['type'])return;const {data:_0x2146d3}=_0x45b326;if(!_0x2146d3||'imageStyle'!=_0x2146d3['commandName'])return;const _0x40b17b=_0x2146d3['commandParams'][0x0]['value'];return _0x216f91('side'===_0x40b17b?o(_0x1d0e49,'FORMAT_SIDE_IMAGE'):_0x11d014[_0x40b17b]||_0x40b17b);function _0x216f91(_0x5ee08a){return{'type':'format','content':o(_0x1d0e49,'*Format:*\x20%0',_0x5ee08a)};}});}}class rt extends _0x5cca93{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x54e148){super(_0x54e148),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3dd302=this['editor'],_0x4e109c=_0x3dd302['commands']['get']('importWord'),_0x352c7e=_0x3dd302['commands']['get']('trackChanges');_0x4e109c&&(_0x4e109c['on']('execute',(_0xb4145d,[,_0x5e2aa8])=>{this['_trackChangesValueDuringImport']=_0x352c7e['value'],_0x5e2aa8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4e109c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4e109c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x352c7e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3dd302['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x408dcb,_0x3176e8){const {suggestions:_0x435766}=_0x3176e8,_0x4dd4=this['editor']['commands']['get']('trackChanges'),_0x2d16d3=_0x4dd4['value'];this['_trackChangesValueDuringImport']!==_0x2d16d3&&(_0x4dd4['execute'](),this['_trackChangesExecuted']=!0x0),_0x435766&&_0x435766['forEach'](({id:_0x569746,type:_0x580b4b,author:_0x1ae14f,created_at:_0x26f890})=>{const _0x10b114={'id':_0x569746,'type':_0x580b4b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1ae14f,'createdAt':_0x26f890?new Date(_0x26f890):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x10b114);});}}class at extends _0x5cca93{['afterInit'](){const _0x2c96fc=this['editor'],_0x50e106=_0x2c96fc['plugins']['get']('TrackChangesEditing');if(_0x2c96fc['plugins']['has']('IndentEditing')&&(_0x50e106['enableCommand']('indent'),_0x50e106['enableCommand']('outdent')),_0x2c96fc['plugins']['has']('IndentBlock')){for(const _0x263b8c of['indentBlock','outdentBlock'])_0x50e106['enableDefaultAttributesIntegration'](_0x263b8c);}const _0x4ecf49=_0x2c96fc['locale'];_0x50e106['registerBlockAttribute']('blockIndent'),_0x50e106['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4ecf49,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1caa59=this['editor'],_0x501838=_0x1caa59['locale'],_0x36fe16=_0x1caa59['plugins']['get']('TrackChangesEditing');_0x36fe16['descriptionFactory']['registerDescriptionCallback'](_0x38fa52=>{if('formatBlock'!=_0x38fa52['type'])return;const {data:_0x45f1d7}=_0x38fa52;if(!_0x45f1d7)return;if('indentBlock'!=_0x45f1d7['commandName']&&'outdentBlock'!=_0x45f1d7['commandName'])return;const _0x3f2af1=_0x38fa52['getItems']()[0x0],_0x2695c4=_0x36fe16['descriptionFactory']['getItemLabel'](_0x3f2af1);return'indentBlock'==_0x45f1d7['commandName']?{'type':'format','content':o(_0x501838,'*Indent:*\x20%0',_0x2695c4)}:'outdentBlock'==_0x45f1d7['commandName']?{'type':'format','content':o(_0x501838,'*Outdent:*\x20%0',_0x2695c4)}:void 0x0;});}}class ct extends _0x5cca93{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x5cca93{['afterInit'](){const _0x1336c6=this['editor'];if(!_0x1336c6['plugins']['has']('LinkEditing'))return;const _0x35a1fa=_0x1336c6['plugins']['get']('TrackChangesEditing'),_0x3619e3=_0x1336c6['commands']['get']('link');_0x35a1fa['enableDefaultAttributesIntegration']('link'),_0x35a1fa['enableDefaultAttributesIntegration']('unlink'),_0x35a1fa['registerInlineAttribute']('linkHref');for(const _0x56fbb8 of _0x3619e3['manualDecorators'])_0x35a1fa['registerInlineAttribute'](_0x56fbb8['id']),_0x35a1fa['descriptionFactory']['registerAttributeLabel'](_0x56fbb8['id'],'link\x20('+_0x56fbb8['label']['toLowerCase']()+')');_0x35a1fa['descriptionFactory']['registerDescriptionCallback'](_0xa6ed89=>{if('attribute'!=_0xa6ed89['type'])return;const {data:_0x254b8f}=_0xa6ed89;if(!_0x254b8f||'linkHref'!=_0x254b8f['key'])return;const _0x51319b=_0x254b8f['newValue'],_0x4df502=_0x1336c6['locale'];return{'type':'format','content':null==_0x51319b?o(_0x4df502,'*Remove\x20link*'):o(_0x4df502,'*Set\x20link:*\x20%0','\x22'+_0x51319b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x366003=this['editor'],_0x58262d=_0x366003['locale'];_0x366003['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x303cef=>{if('formatInline'!=_0x303cef['type'])return;const {data:_0x11de26}=_0x303cef;if(_0x11de26){if('link'==_0x11de26['commandName']){const _0x29209c=_0x11de26['commandParams'][0x0];return{'type':'format','content':o(_0x58262d,'*Set\x20link:*\x20%0','\x22'+_0x29209c+'\x22')};}return'unlink'==_0x11de26['commandName']?{'type':'format','content':o(_0x58262d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x5cca93{['afterInit'](){const _0x48acf1=this['editor'],_0x3fdc16=_0x48acf1['locale'];if(!_0x48acf1['plugins']['has']('LegacyListEditing'))return;const _0x4f59da=_0x48acf1['plugins']['get']('TrackChangesEditing'),_0x4b6eea=_0x48acf1['plugins']['has']('LegacyTodoListEditing');function _0x169874(_0x492674){return()=>{const _0x1dfbb8=_0x48acf1['model']['document']['selection'],_0x47af32=_0x48acf1['commands']['get'](_0x492674);if(_0x47af32['value'])return void _0x48acf1['execute']('paragraph',{});const _0x2a96c9=_0x492674['slice'](0x0,-0x4),_0x3faf78=function(_0x485729,_0x1df938,_0x23fd48){let _0x28543b=Array['from'](_0x485729)['filter'](_0x31376d=>function(_0x12ab38,_0x1c336b){return _0x1c336b['checkChild'](_0x12ab38['parent'],'listItem')&&!_0x1c336b['isObject'](_0x12ab38);}(_0x31376d,_0x23fd48));_0x28543b=_0x28543b['filter'](_0x3f11fc=>!_0x3f11fc['is']('element','listItem')||_0x3f11fc['getAttribute']('listType')!=_0x1df938);const _0x524166=new Set();for(const _0x4990ba of _0x28543b)_0x4990ba['is']('element','listItem')?_0x524166['add'](Le(_0x4990ba)):_0x524166['add'](_0x4990ba);return Array['from'](_0x524166);}(_0x1dfbb8['getSelectedBlocks'](),_0x2a96c9,_0x48acf1['model']['schema']);_0x48acf1['model']['change'](()=>{for(const _0x31a4dd of _0x3faf78)_0x4f59da['markBlockFormat'](_0x31a4dd,{'commandName':_0x492674,'commandParams':[{'forceValue':!_0x47af32['value']}],'formatGroupId':'blockName'},Ee(_0x31a4dd));});};}function _0x4b554f(_0xef8f4a){return()=>{const _0x2892ae=function(_0x505728){let _0x38c4df=Array['from'](_0x505728);const _0x474606=_0x38c4df['findIndex'](_0x40e869=>'listItem'!=_0x40e869['name']);return _0x474606>-0x1&&(_0x38c4df=_0x38c4df['slice'](0x0,_0x474606)),_0x38c4df;}(_0x48acf1['model']['document']['selection']['getSelectedBlocks']()),_0x38d4bc=_0x48acf1['model']['createRange'](_0x48acf1['model']['createPositionAt'](_0x2892ae[0x0],'before'),_0x48acf1['model']['createPositionAt'](_0x2892ae[_0x2892ae['length']-0x1],'end'));_0x48acf1['model']['change'](()=>{_0x4f59da['markBlockFormat'](_0x38d4bc,{'commandName':_0xef8f4a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x513516){const _0xeb8ce=new Set();for(const _0x4299fb of _0x513516){let _0x24a39b=_0x4299fb['nextSibling'];for(;_0x24a39b&&_0x24a39b['getAttribute']('listIndent')>_0x4299fb['getAttribute']('listIndent');)_0xeb8ce['add'](_0x24a39b),_0x24a39b=_0x24a39b['nextSibling'];}return Array['from'](_0xeb8ce);}(_0x2892ae));});};}_0x4f59da['enableCommand']('numberedList',_0x169874('numberedList')),_0x4f59da['enableCommand']('bulletedList',_0x169874('bulletedList')),_0x4b6eea&&_0x4f59da['enableCommand']('todoList',_0x169874('todoList')),_0x4f59da['enableCommand']('indentList',_0x4b554f('indentList')),_0x4f59da['enableCommand']('outdentList',_0x4b554f('outdentList')),_0x4b6eea&&_0x4f59da['enableCommand']('checkTodoList',()=>{const _0x5b0253=_0x48acf1['commands']['get']('checkTodoList'),_0x563272=Array['from'](_0x5b0253['_selectedElements']);_0x563272['filter'](_0x4b1dfd=>_0x4b1dfd['getAttribute']('todoListChecked')!=_0x5b0253['value']),_0x48acf1['model']['change'](()=>{for(const _0x34ceec of _0x563272)_0x4f59da['markBlockFormat'](_0x34ceec,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5b0253['value']}]});});}),_0x4f59da['descriptionFactory']['registerElementLabel']('listItem',_0x2410ec=>o(_0x3fdc16,'ELEMENT_LIST_ITEM',_0x2410ec)),_0x4f59da['descriptionFactory']['registerDescriptionCallback'](_0x4e70fb=>{if('formatBlock'!=_0x4e70fb['type']&&'formatInline'!=_0x4e70fb['type'])return;const {data:_0x155129}=_0x4e70fb;if(_0x155129){if('numberedList'==_0x155129['commandName']||'bulletedList'==_0x155129['commandName']||'todoList'==_0x155129['commandName'])switch(_0x155129['commandName']['replace']('List','')){case'bulleted':return _0x2e130c(o(_0x3fdc16,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e130c(o(_0x3fdc16,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e130c(o(_0x3fdc16,'ELEMENT_TODO_LIST'));}if('indentList'==_0x155129['commandName'])return{'type':'format','content':o(_0x3fdc16,'*Indent:*\x20%0',o(_0x3fdc16,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x155129['commandName'])return{'type':'format','content':o(_0x3fdc16,'*Outdent:*\x20%0',o(_0x3fdc16,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x155129['commandName'])return _0x155129['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fdc16,'*Check\x20item*')}:{'type':'format','content':o(_0x3fdc16,'*Uncheck\x20item*')};}function _0x2e130c(_0x316cee){return{'type':'format','content':o(_0x3fdc16,'*Change\x20to:*\x20%0',_0x316cee)};}});}}function Le(_0x1c9cfd){const _0x54d080=_0x1c9cfd['getAttribute']('listIndent');if(0x0==_0x54d080)return _0x1c9cfd;let _0x1913ab=_0x1c9cfd;for(;_0x1c9cfd['previousSibling']&&_0x1c9cfd['previousSibling']['is']('element','listItem');){const _0x1916d5=_0x1c9cfd['previousSibling']['getAttribute']('listIndent');if(_0x1916d5==_0x54d080)_0x1913ab=_0x1c9cfd['previousSibling'];else{if(_0x1916d5<_0x54d080)break;}_0x1c9cfd=_0x1c9cfd['previousSibling'];}return _0x1913ab;}function Ee(_0x4c23e2){const _0x2c7a9c=[];if(_0x4c23e2['is']('element','listItem')&&_0x4c23e2['getAttribute']('listIndent')>0x0){let _0x302307=_0x4c23e2['nextSibling'];for(;_0x302307&&'listItem'==_0x302307['name']&&_0x302307['getAttribute']('listIndent')==_0x4c23e2['getAttribute']('listIndent');)_0x2c7a9c['push'](_0x302307),_0x302307=_0x302307['nextSibling'];}return _0x2c7a9c;}class ht extends _0x5cca93{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x211694=this['editor']['config']['get']('list.properties'),_0x25f538=this['editor']['plugins']['get']('TrackChangesEditing');_0x211694['styles']&&_0x25f538['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x211694['reversed']&&_0x25f538['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x211694['startIndex']&&_0x25f538['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x25f538['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x53b1eb,_0x758b8f={}){const _0x4a563f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dc28d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4a563f['markMultiRangeBlockFormat'](_0x5dc28d,{'commandName':'listStyle','commandParams':[{'type':_0x758b8f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d63f7,_0x3f3d04={}){const _0x18e215=this['editor']['plugins']['get']('TrackChangesEditing'),_0x444b4a=this['_getSuggestionBlocks'](_0x4ed329=>_0x4ed329['is']('element','listItem')&&'numbered'===_0x4ed329['getAttribute']('listType'));if(_0x444b4a['length']<0x1)return;const _0x3fc4bd=_0x444b4a['map'](_0x1f448f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f448f,'before'),this['editor']['model']['createPositionAt'](_0x1f448f,0x0)));this['editor']['model']['change'](()=>{_0x18e215['markMultiRangeBlockFormat'](_0x3fc4bd,{'commandName':'listReversed','commandParams':[{'reversed':_0x3f3d04['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xbd5f41,_0x4425e2={}){const _0x1af09f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x317e29=this['_getSuggestionBlocks'](_0x42ad79=>_0x42ad79['is']('element','listItem')&&'numbered'===_0x42ad79['getAttribute']('listType'));if(_0x317e29['length']<0x1)return;const _0x5f3b99=_0x317e29['map'](_0x4665e3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4665e3,'before'),this['editor']['model']['createPositionAt'](_0x4665e3,0x0)));this['editor']['model']['change'](()=>{_0x1af09f['markMultiRangeBlockFormat'](_0x5f3b99,{'commandName':'listStart','commandParams':[{'startIndex':_0x4425e2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x45fc56){if('formatBlock'!=_0x45fc56['type']&&'formatInline'!=_0x45fc56['type'])return;const _0x5104ff=this['editor']['locale'],{data:_0x493fd9}=_0x45fc56;if(!_0x493fd9)return;let _0x1c7e2b,_0x2ab99e;switch(_0x493fd9['commandName']){case'listStyle':_0x1c7e2b='*Change\x20to:*\x20%0',_0x2ab99e={'type':'format','content':o(_0x5104ff,_0x1c7e2b,o(_0x5104ff,this['_getTranslationKeyForListStyle'](_0x493fd9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1c7e2b=_0x493fd9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2ab99e={'type':'format','content':o(_0x5104ff,_0x1c7e2b)};break;case'listStart':_0x1c7e2b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ab99e={'type':'format','content':o(_0x5104ff,_0x1c7e2b,_0x493fd9['commandParams'][0x0]['startIndex'])};}return _0x2ab99e;}['_getSuggestionBlocksForListStyle'](){const _0x3b10b3=this['editor']['plugins']['get']('LegacyListUtils');let _0x4117d0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4117d0[0x0]?.['is']('element','listItem')&&_0x4117d0['unshift'](..._0x3b10b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4117d0[_0x4117d0['length']-0x1]?.['is']('element','listItem')&&_0x4117d0['push'](..._0x3b10b3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4117d0=[...new Set(_0x4117d0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4117d0=_0x4117d0['filter'](_0x24ca4b=>_0x24ca4b['is']('element','listItem'))),_0x4117d0;}['_getSuggestionBlocks'](_0x5eb719){const _0x12c275=this['editor']['plugins']['get']('LegacyListUtils');let _0x1ccebd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5eb719)['map'](_0x1c92c2=>{const _0x1dd0bc=this['editor']['model']['createPositionAt'](_0x1c92c2,0x0);return[..._0x12c275['getSiblingNodes'](_0x1dd0bc,'backward'),..._0x12c275['getSiblingNodes'](_0x1dd0bc,'forward')];})['flat']();return _0x1ccebd=[...new Set(_0x1ccebd)],_0x1ccebd;}['_getTranslationKeyForListStyle'](_0x1bb31f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1bb31f)||'default')['toUpperCase']()+'_LIST_'+_0x1bb31f['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x5cca93{['afterInit'](){const _0x115b20=this['editor'];if(!_0x115b20['plugins']['has']('MediaEmbedEditing'))return;const _0x10e840=_0x115b20['plugins']['get']('TrackChangesEditing'),_0x48934=_0x115b20['locale'];_0x10e840['enableCommand']('mediaEmbed'),_0x10e840['descriptionFactory']['registerElementLabel']('media',_0xc8dc29=>o(_0x48934,'ELEMENT_MEDIA',_0xc8dc29)),_0x115b20['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x354292,{writer:_0x3fce1e,options:_0x537940})=>{if(_0x537940['showSuggestionHighlights'])return _0x3fce1e['createEmptyElement']('div');},'converterPriority':'high'}),_0x115b20['data']['downcastDispatcher']['on']('attribute:url:media',(_0xfa0ac,_0x128e4e,_0x413448)=>{_0x413448['options']['showSuggestionHighlights']&&_0xfa0ac['stop']();},{'priority':'high'});}}class lt extends _0x5cca93{['afterInit'](){const _0x30571d=this['editor'];_0x30571d['plugins']['has']('MentionEditing')&&_0x30571d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x5cca93{['afterInit'](){const _0x260576=this['editor'];if(!_0x260576['plugins']['has']('MergeFieldsEditing'))return;const _0x4914a3=_0x260576['plugins']['get']('TrackChangesEditing'),_0x50c28c=_0x260576['locale'];_0x4914a3['enableCommand']('insertMergeField'),_0x4914a3['enableCommand']('insertMergeFieldBlock'),_0x4914a3['enableCommand']('insertMergeFieldImage'),_0x4914a3['descriptionFactory']['registerElementLabel']('mergeField',_0xc1370b=>o(_0x50c28c,'ELEMENT_MERGE_FIELD',_0xc1370b)),_0x4914a3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4a85b6=>o(_0x50c28c,'ELEMENT_MERGE_FIELD',_0x4a85b6)),_0x4914a3['descriptionFactory']['registerDescriptionCallback'](_0x55801e=>{if('insertion'!=_0x55801e['type']&&'deletion'!=_0x55801e['type'])return;const _0x1eea54=_0x55801e['getContainedElement']();if(null==_0x1eea54)return;const _0xce7c9=_0x260576['plugins']['get']('MergeFieldsEditing');let _0x42a392;switch(_0xce7c9['getMergeFieldType'](_0x1eea54)){case null:return;case'image':{const _0xfec07f=_0xce7c9['unwrapAffixes'](_0x1eea54['getAttribute']('src'));_0x42a392=_0xce7c9['getLabel'](_0xfec07f)||_0xfec07f;break;}default:{const _0xdf0450=_0x1eea54['getAttribute']('id');_0x42a392=_0xce7c9['getLabel'](_0xdf0450)||_0xdf0450;break;}}return'insertion'==_0x55801e['type']?{'type':'insertion','content':o(_0x50c28c,'*Insert:*\x20%0','\x22'+_0x42a392+'\x22\x20'+o(_0x50c28c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x50c28c,'*Remove:*\x20%0','\x22'+_0x42a392+'\x22\x20'+o(_0x50c28c,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x5cca93{['afterInit'](){const _0x90aca4=this['editor'],_0x194557=_0x90aca4['plugins']['get']('TrackChangesEditing');_0x90aca4['plugins']['has']('MultiLevelList')&&(_0x194557['enableDefaultAttributesIntegration']('multiLevelList'),_0x194557['registerBlockAttribute']('listMarkerStyle'),_0x194557['descriptionFactory']['registerDescriptionCallback'](_0xb6c65=>this['handleDescriptions'](_0xb6c65)));}['handleDescriptions'](_0xc12015){const _0x24bd3a=this['editor']['locale'],{data:_0x593c09}=_0xc12015,_0x48ce7b={'type':'format','content':''};if(_0x593c09&&'listMarkerStyle'==_0x593c09['key']){if(!_0x593c09['oldValue'])return{'type':'format','content':o(_0x24bd3a,'*Set\x20format:*\x20%0',o(_0x24bd3a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x593c09['newValue']+')'};if(!_0x593c09['newValue']){let _0x267ec2=_0xc12015['head'];for(;_0x267ec2;){if(_0x267ec2['data']&&'listType'==_0x267ec2['data']['key']&&_0x267ec2['data']['newValue'])return _0x48ce7b;_0x267ec2=_0x267ec2['next'];}return{'type':'format','content':o(_0x24bd3a,'*Remove\x20format:*\x20%0',o(_0x24bd3a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x593c09['oldValue']+')'};}}}}class pt extends _0x5cca93{['afterInit'](){const _0x57f12b=this['editor'];if(!_0x57f12b['plugins']['has']('PageBreakEditing'))return;_0x57f12b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3dc86b=_0x57f12b['plugins']['get']('TrackChangesEditing'),_0x1d680b=_0x57f12b['locale'];_0x3dc86b['descriptionFactory']['registerElementLabel']('pageBreak',_0x8efafc=>o(_0x1d680b,'ELEMENT_PAGE_BREAK',_0x8efafc));}}class kt extends _0x5cca93{['afterInit'](){const _0x1b59f1=this['editor'];if(!_0x1b59f1['plugins']['has']('Paragraph'))return;const _0x724f25=_0x1b59f1['locale'],_0x26450b=_0x1b59f1['plugins']['get']('TrackChangesEditing');_0x26450b['descriptionFactory']['registerElementLabel']('paragraph',_0x1dfcb8=>o(_0x724f25,'ELEMENT_PARAGRAPH',_0x1dfcb8)),_0x26450b['enableDefaultAttributesIntegration']('paragraph'),_0x26450b['enableCommand']('insertParagraph'),_0x1b59f1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b59f1),{'priority':'highest'}),_0x1b59f1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c5eeb,_0x32d183,_0x290f72)=>{_0x290f72['options']['showSuggestionHighlights']&&nr(_0x1b59f1,{'showActiveMarker':!0x1})(_0x5c5eeb,_0x32d183,_0x290f72);},{'priority':'highest'});const _0x30bfc2=_0x26450b['descriptionFactory'];_0x30bfc2['registerDescriptionCallback'](_0x390f43=>{if('insertion'!==_0x390f43['type'])return;const {start:_0x505d8f,end:_0x2a43d7}=_0x390f43['getFirstRange']();if(!_0x505d8f['isTouching'](_0x2a43d7)||!_0x505d8f['nodeAfter'])return;const _0x4741cd=_0x1b59f1['model']['schema'],_0x4bc390=_0x505d8f['nodeAfter'];return _0x4741cd['isBlock'](_0x4bc390)&&!_0x4741cd['isLimit'](_0x4bc390)&&_0x4741cd['checkChild'](_0x4bc390,'$text')?{'type':'insertion','content':o(_0x724f25,'*Insert:*\x20%0',_0x30bfc2['getItemLabel'](_0x4bc390,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40de86=this['editor'],_0x152d18=_0x40de86['locale'];_0x40de86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d2b14=>{if('formatBlock'!=_0x6d2b14['type'])return;const {data:_0x3023a3}=_0x6d2b14;return _0x3023a3&&'paragraph'==_0x3023a3['commandName']?{'type':'format','content':o(_0x152d18,'*Change\x20to:*\x20%0',o(_0x152d18,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4c8499,{showActiveMarker:_0x55e2c1=!0x0}={}){return(_0x376d95,_0x50f207,_0x1890b1)=>{const _0x4e3173=_0x4c8499['plugins']['get']('TrackChangesEditing'),_0x2d90b5=_0x50f207['markerRange']['start'],_0x38a969=_0x50f207['markerRange']['end'],_0x3e2c79=_0x4c8499['model']['schema'];if(!_0x2d90b5['isTouching'](_0x38a969)||!_0x2d90b5['nodeAfter'])return;const _0x154a06=_0x2d90b5['nodeAfter'];if(_0x3e2c79['isBlock'](_0x154a06)&&!_0x3e2c79['isLimit'](_0x154a06)&&_0x3e2c79['checkChild'](_0x154a06,'$text')){if(!_0x1890b1['consumable']['consume'](_0x50f207['markerRange'],_0x376d95['name']))return;const {id:_0x51912b,authorId:_0x34cc3e}=_0x4e3173['_splitMarkerName'](_0x50f207['markerName']),_0x5a2a86=_0x1890b1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x51912b,'data-author-id':_0x34cc3e}),_0xd223ea=_0x1890b1['mapper']['toViewPosition'](_0x38a969);_0x55e2c1&&_0x4e3173['activeMarkers']['includes'](_0x50f207['markerName'])&&_0x1890b1['writer']['addClass']('ck-suggestion-marker--active',_0x5a2a86),_0x1890b1['writer']['insert'](_0xd223ea,_0x5a2a86),_0x1890b1['mapper']['bindElementToMarker'](_0x5a2a86,_0x50f207['markerName']);}};}class wt extends _0x5cca93{['afterInit'](){const _0x5dff2a=this['editor'];_0x5dff2a['commands']['get']('replaceSource')&&_0x5dff2a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x5cca93{['afterInit'](){const _0xaed5df=this['editor'];if(!_0xaed5df['plugins']['has']('RemoveFormatEditing'))return;_0xaed5df['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6e41cf=this['editor'];_0x6e41cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4db1f7=>{if('formatBlock'!=_0x4db1f7['type']&&'formatInline'!=_0x4db1f7['type'])return;const {data:_0x3177a7}=_0x4db1f7;return _0x3177a7&&'removeFormat'==_0x3177a7['commandName']?{'type':'format','content':o(_0x6e41cf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x5cca93{['afterInit'](){const _0x17d3f7=this['editor'];if(!_0x17d3f7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4214cc=_0x17d3f7['plugins']['get']('TrackChangesEditing');_0x4214cc['enableCommand']('goToPreviousRestrictedEditingException'),_0x4214cc['enableCommand']('goToNextRestrictedEditingException');const _0x41db56=_0x17d3f7['plugins']['get']('RestrictedEditingModeEditing');_0x41db56['enableCommand']('trackChanges'),_0x41db56['enableCommand']('acceptSuggestion'),_0x41db56['enableCommand']('discardSuggestion'),_0x41db56['enableCommand']('acceptAllSuggestions'),_0x41db56['enableCommand']('discardAllSuggestions'),_0x41db56['enableCommand']('acceptSelectedSuggestions'),_0x41db56['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5cca93{['afterInit'](){const _0x37bf2a=this['editor'];if(!_0x37bf2a['plugins']['has']('ShiftEnter'))return;const _0x129d70=_0x37bf2a['plugins']['get']('TrackChangesEditing');_0x129d70['enableCommand']('shiftEnter'),_0x37bf2a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x37bf2a),{'priority':'high'}),_0x37bf2a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x37bf2a),{'priority':'high'}),_0x37bf2a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4240ca,_0x298bc4,_0x3531be)=>{_0x3531be['options']['showSuggestionHighlights']&&je(_0x37bf2a,{'showActiveMarker':!0x1})(_0x4240ca,_0x298bc4,_0x3531be);}),_0x129d70['descriptionFactory']['registerElementLabel']('softBreak',_0x31cee9=>o(_0x37bf2a['locale'],'ELEMENT_LINE_BREAK',_0x31cee9));}}function je(_0x543fa5,{showActiveMarker:_0x116d3d=!0x0}={}){return(_0x31e391,_0x55546e,_0x4cb533)=>{const _0x1e8672=_0x543fa5['plugins']['get']('TrackChangesEditing');if(!_0x4cb533['consumable']['test'](_0x55546e['markerRange'],_0x31e391['name']))return;const _0x2e5a3c=_0x543fa5['model'];for(const _0x57881a of _0x55546e['markerRange']['getItems']()){if(!_0x57881a['is']('element','softBreak'))continue;const _0xd6adf1='deletion'==_0x55546e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x473920,authorId:_0x1ce832}=_0x1e8672['_splitMarkerName'](_0x55546e['markerName']),_0x284ebf=_0x4cb533['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd6adf1,'data-suggestion':_0x473920,'data-author-id':_0x1ce832}),_0x369e33=_0x4cb533['mapper']['toViewPosition'](_0x2e5a3c['createPositionBefore'](_0x57881a));_0x116d3d&&_0x1e8672['activeMarkers']['includes'](_0x55546e['markerName'])&&_0x4cb533['writer']['addClass']('ck-suggestion-marker--active',_0x284ebf),_0x4cb533['writer']['insert'](_0x369e33,_0x284ebf),_0x4cb533['mapper']['bindElementToMarker'](_0x284ebf,_0x55546e['markerName']);}};}class St extends _0x5cca93{['afterInit'](){const _0x5f54bd=this['editor'],_0x40d605=_0x5f54bd['model'],_0x2597cb=_0x5f54bd['locale'];if(!_0x5f54bd['plugins']['has']('StandardEditingModeEditing'))return;const _0x3166fc=_0x5f54bd['plugins']['get']('TrackChangesEditing'),_0x266733='restrictedEditingException',_0x52a24c=_0x5f54bd['commands']['get'](_0x266733);_0x3166fc['enableCommand'](_0x266733,(_0x55c727,_0xddfa2e={})=>{const _0x4d9ffb=_0x40d605['document']['selection'];if(_0x4d9ffb['isCollapsed'])return void _0x55c727(_0xddfa2e);const _0x247b06=void 0x0!==_0xddfa2e['forceValue']?_0xddfa2e['forceValue']:!_0x52a24c['value'];_0x40d605['change'](()=>{const _0x5d656b=Array['from'](_0x4d9ffb['getRanges']());for(const _0x168439 of _0x5d656b){const _0x5b6f6a=_0x247b06?[_0x168439]:io(_0x266733,_0x168439,_0x40d605);for(const _0x3874b9 of _0x5b6f6a)_0x3166fc['markInlineFormat'](_0x3874b9,{'commandName':_0x266733,'commandParams':[{'forceValue':_0x247b06}]});}});}),_0x3166fc['descriptionFactory']['registerDescriptionCallback'](_0x37cbc1=>{if('formatBlock'!=_0x37cbc1['type']&&'formatInline'!=_0x37cbc1['type'])return;const {data:_0x143124}=_0x37cbc1;return _0x143124&&_0x143124['commandName']==_0x266733?_0x143124['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2597cb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2597cb,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x5cca93{['afterInit'](){const _0x4f2f0c=this['editor'];if(!_0x4f2f0c['plugins']['has']('Style')||!_0x4f2f0c['plugins']['has']('DataSchema'))return;const _0x1af3b6=_0x4f2f0c['plugins']['get']('TrackChangesEditing'),_0x438111=_0x4f2f0c['locale'],_0x5d82b9=_0x4f2f0c['config']['get']('style')||{},_0x5b32fb=_0x4f2f0c['plugins']['get']('GeneralHtmlSupport'),_0x378ab2=_0x4f2f0c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4f2f0c['plugins']['get']('DataSchema'),_0x5d82b9['definitions']);_0x1af3b6['enableDefaultAttributesIntegration']('style');const _0x13be08=new Set();for(const _0x98d013 of _0x378ab2['block']){const _0x5bd4d1=_0x5b32fb['getGhsAttributeNameForElement'](_0x98d013['element']);_0x13be08['add'](_0x5bd4d1);}const _0x3e9d19=new Set();for(const _0x1447e9 of _0x378ab2['inline']){const _0x278845=_0x5b32fb['getGhsAttributeNameForElement'](_0x1447e9['element']);_0x3e9d19['add'](_0x278845);for(const _0x5ca806 of _0x1447e9['ghsAttributes'])_0x3e9d19['add'](_0x5ca806);}for(const _0x39cc1a of _0x13be08)_0x1af3b6['registerBlockAttribute'](_0x39cc1a),_0x1af3b6['descriptionFactory']['registerAttributeLabel'](_0x39cc1a,o(_0x438111,'FORMAT_STYLE'));for(const _0x467930 of _0x3e9d19)_0x1af3b6['registerInlineAttribute'](_0x467930),_0x1af3b6['descriptionFactory']['registerAttributeLabel'](_0x467930,o(_0x438111,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2104=this['editor'],_0x19c8bb=_0x3f2104['locale'];_0x3f2104['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd477da=>{if('formatBlock'!=_0xd477da['type']&&'formatInline'!=_0xd477da['type'])return;const {data:_0x128cdf}=_0xd477da;return _0x128cdf&&'style'===_0x128cdf['commandName']?_0x128cdf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19c8bb,'*Set\x20format:*\x20%0',_0x128cdf['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x19c8bb,'*Remove\x20format:*\x20%0',_0x128cdf['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x5cca93{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1b46c5){super(_0x1b46c5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1fa150=this['editor'],_0xe26faf=_0x1fa150['model']['document']['selection'];if(!_0x1fa150['plugins']['has']('TableEditing'))return;const _0x34c3b1=_0x1fa150['locale'],_0x317d35=_0x1fa150['plugins']['get']('TrackChangesEditing'),_0x23613f=_0x1fa150['plugins']['get']('TableUtils');_0x317d35['descriptionFactory']['registerElementLabel']('table',_0x3a0fad=>o(_0x34c3b1,'ELEMENT_TABLE',_0x3a0fad)),this['_setupColumnsRowsFixing'](),_0x317d35['enableCommand']('insertTable'),_0x317d35['enableCommand']('selectTableRow'),_0x317d35['enableCommand']('selectTableColumn');for(const _0x74c5ec of['insertTableRowAbove','insertTableRowBelow']){const _0x51f782=_0x1fa150['commands']['get'](_0x74c5ec);_0x317d35['enableCommand'](_0x74c5ec,_0x40a017=>{_0x1fa150['model']['change'](_0x30bdaa=>{_0x40a017();const _0x44b5b3='above'===_0x51f782['order'],_0x1ccdad=_0x23613f['getSelectionAffectedTableCells'](_0xe26faf),_0x87c64d=_0x23613f['getRowIndexes'](_0x1ccdad),_0x17b278=_0x44b5b3?_0x87c64d['first']-0x1:_0x87c64d['last']+0x1,_0x174554=_0x1ccdad[0x0]['findAncestor']('table'),_0x255f42=_0x23613f['createTableWalker'](_0x174554,{'startRow':_0x17b278,'endRow':_0x17b278}),_0x4b721b=Array['from'](_0x255f42)['map'](_0x2082d5=>_0x30bdaa['createRangeOn'](_0x2082d5['cell']));_0x317d35['markMultiRangeInsertion'](_0x4b721b,'tableRow');});});}for(const _0x260340 of['insertTableColumnLeft','insertTableColumnRight']){const _0x33def4=_0x1fa150['commands']['get'](_0x260340);_0x317d35['enableCommand'](_0x260340,_0x4251c6=>{_0x1fa150['model']['change'](_0x3ca419=>{_0x4251c6();const _0x479680='left'===_0x33def4['order'],_0x3f79aa=_0x23613f['getSelectionAffectedTableCells'](_0xe26faf),_0x488707=_0x23613f['getColumnIndexes'](_0x3f79aa),_0x1a06c2=_0x479680?_0x488707['first']-0x1:_0x488707['last']+0x1,_0x415abc=_0x3f79aa[0x0]['findAncestor']('table'),_0x5c7434=_0x23613f['createTableWalker'](_0x415abc,{'startRow':0x0,'column':_0x1a06c2,'includeAllSlots':!0x1}),_0x1d1113=Array['from'](_0x5c7434)['map'](_0x55830b=>_0x3ca419['createRangeOn'](_0x55830b['cell']));_0x317d35['markMultiRangeInsertion'](_0x1d1113,'tableColumn');});});}for(const _0x249d62 of['removeTableRow','removeTableColumn']){const _0x4b8a43=_0x249d62['substr'](0xb),_0x205c21=_0x4b8a43['toLowerCase'](),_0x2358ee=_0x205c21['substr'](0x0,0x3)+'span',_0x39d5bd='table'+_0x4b8a43,_0x4b9f09='min'+_0x4b8a43,_0x103892='max'+_0x4b8a43;_0x317d35['enableCommand'](_0x249d62,()=>{_0x1fa150['model']['change'](_0x52454b=>{const _0x96080b=_0x23613f['getSelectionAffectedTableCells'](_0xe26faf),_0x48987d=_0x96080b[0x0]['findAncestor']('table');let _0x3b9b67;if('removeTableRow'==_0x249d62){const _0x3611c0=_0x23613f['getRowIndexes'](_0x96080b);_0x3b9b67={'startRow':_0x3611c0['first'],'endRow':_0x3611c0['last'],'includeAllSlots':!0x0};}else{const _0x24840d=_0x23613f['getColumnIndexes'](_0x96080b);_0x3b9b67={'startColumn':_0x24840d['first'],'endColumn':_0x24840d['last'],'includeAllSlots':!0x0};}const _0x45cc01=_0x23613f['createTableWalker'](_0x48987d,_0x3b9b67),_0x3dd6b6=Array['from'](_0x45cc01)['map'](({cell:_0x57745c})=>_0x57745c),_0x1ad582=Ne(_0x3dd6b6['filter'](_0x41b2b8=>_0x41b2b8['hasAttribute'](_0x2358ee))),_0x498b53=Ne(_0x3dd6b6['filter'](_0x31b0f1=>!_0x31b0f1['hasAttribute'](_0x2358ee)))['map'](_0x458eff=>_0x52454b['createRangeOn'](_0x458eff)),_0x33b8bc=_0x317d35['markMultiRangeDeletion'](_0x498b53,_0x39d5bd);if(_0x33b8bc&&('tableRow'==_0x33b8bc['subType']||'tableColumn'==_0x33b8bc['subType'])){const _0x321b17=this['_getSuggestionCoords'](_0x33b8bc);for(const _0x24594f of _0x1ad582){const _0x35a4dd=_0x52454b['createRangeOn'](_0x24594f),_0xa5da7c=_0x23613f['getCellLocation'](_0x24594f),_0x46aef5=_0x24594f['getAttribute'](_0x2358ee)-0x1,_0x530d62=_0x321b17[_0x4b9f09],_0x227518=_0x321b17[_0x103892];_0x530d62<=_0xa5da7c[_0x205c21]&&_0xa5da7c[_0x205c21]+_0x46aef5<=_0x227518&&_0x33b8bc['addRange'](_0x35a4dd);}}});});}function _0x585459(_0x906431){const _0x51dc50=Array['from'](_0xe26faf['getRanges']())['map'](_0x345043=>_0x1c1e9b['fromRange'](_0x345043));_0x1fa150['model']['change'](_0x51ab61=>{const _0x174d65=_0x51ab61['batch'];_0x906431=_0x906431['filter'](_0x11b010=>'$graveyard'!=_0x11b010['root']['rootName']),_0x51ab61['setSelection'](_0x906431),_0x1fa150['commands']['get']('removeTableRow')['refresh'](),_0x1fa150['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1fa150['model']['enqueueChange'](()=>{_0x1fa150['model']['enqueueChange'](_0x174d65,_0x3c81eb=>{const _0x37013e=_0x51dc50['filter'](_0xe8a349=>'$graveyard'!=_0xe8a349['root']['rootName']);_0x37013e['length']>0x0&&_0x3c81eb['setSelection'](_0x37013e);for(const _0x2e76b3 of _0x51dc50)_0x2e76b3['detach']();});});});}function _0x5d3c6a(_0x479f8a){_0x1fa150['model']['change'](_0x1b3b7=>{const _0x2d94a6=Array['from'](_0xe26faf['getRanges']())['map'](_0x414180=>_0x1c1e9b['fromRange'](_0x414180)),_0x469cc5=[];for(const _0xe74dd6 of _0x479f8a)for(const _0x2a20d9 of _0xe74dd6['getItems']({'shallow':!0x0}))_0x469cc5['push'](_0x2a20d9);for(const _0x4b02fd of _0x469cc5)'$graveyard'!=_0x4b02fd['root']['rootName']&&(_0x1b3b7['setSelection'](_0x1b3b7['createPositionAt'](_0x4b02fd,0x0)),_0x1fa150['commands']['get']('removeTableColumn')['refresh'](),_0x1fa150['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x521b55=_0x2d94a6['filter'](_0x53f17e=>'$graveyard'!=_0x53f17e['root']['rootName']);_0x521b55['length']>0x0&&_0x1b3b7['setSelection'](_0x521b55);for(const _0xc6b309 of _0x2d94a6)_0xc6b309['detach']();});}function _0x154455(_0x58d9f2,_0x3d6fcc){return _0x3d6fcc['every'](_0x45766d=>_0x58d9f2['some'](_0xc4f206=>_0xc4f206['end']['isEqual'](_0x45766d['start'])||_0x45766d['end']['isEqual'](_0xc4f206['start'])));}function _0x4202ee(_0x2767b2,_0x3d5137){return!_0x2767b2['some'](_0x4ede1e=>_0x3d5137['some'](_0x831836=>_0x4ede1e['isIntersecting'](_0x831836)))&&_0x2767b2['some'](_0x49f985=>_0x3d5137['some'](_0x36c4a3=>_0x49f985['end']['isTouching'](_0x36c4a3['start'])));}_0x1fa150['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x182c3a,_0x19e3b3,_0x136076)=>{if(!_0x136076['options']['showSuggestionHighlights'])return;const _0x7ff678=_0x19e3b3['item'];if(!_0x7ff678||!_0x7ff678['is']('element','tableCell'))return;const _0x42c95d=_0x136076['mapper']['toViewElement'](_0x7ff678);if(_0x42c95d){const {id:_0x1c07cd,authorId:_0x5d0656}=_0x317d35['_splitMarkerName'](_0x19e3b3['markerName']);_0x52cc57(_0x42c95d,_0x136076['writer'],(_0x1d87b2,_0x1e22f5,_0x9da74)=>{_0x9da74['addClass'](_0x16d30e(_0x1e22f5['classes']),_0x1d87b2),_0x9da74['setAttribute']('data-suggestion-id',_0x1c07cd,_0x1d87b2),_0x9da74['setAttribute']('data-author-id',_0x5d0656,_0x1d87b2);},(_0x7a8bf7,_0x48b2aa,_0x1db5ae)=>{_0x1db5ae['removeClass'](_0x16d30e(_0x48b2aa['classes']),_0x7a8bf7),_0x1db5ae['removeAttribute']('data-suggestion-id',_0x7a8bf7),_0x1db5ae['removeAttribute']('data-author-id',_0x7a8bf7);});}},{'priority':'highest'}),_0x317d35['descriptionFactory']['registerDescriptionCallback'](_0x29fff7=>{if('insertion'!=_0x29fff7['type']&&'deletion'!=_0x29fff7['type'])return;const _0xdf1f0d=_0x29fff7['getContainedElement']();if(null!=_0xdf1f0d&&_0xdf1f0d['is']('element','table')){if('insertion'==_0x29fff7['type']){const _0x19c569=_0x29fff7['getItems']()['filter'](_0x5beab9=>_0x5beab9['is']('$textProxy'))['map'](_0x26d468=>_0x26d468['data']);if(_0x19c569['length'])return{'type':'insertion','content':o(_0x34c3b1,'*Insert:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19c569['join']('\x20')+'\x22'))};}if('deletion'==_0x29fff7['type']){const _0x44d6e1=_0x29fff7['getItems']()['filter'](_0x3164ac=>_0x3164ac['is']('$textProxy'))['map'](_0x1f96f1=>_0x1f96f1['data']);if(_0x44d6e1['length'])return{'type':'deletion','content':o(_0x34c3b1,'*Remove:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44d6e1['join']('\x20')+'\x22'))};}}}),_0x317d35['descriptionFactory']['registerDescriptionCallback'](_0x53de40=>{if('tableRow'==_0x53de40['subType']){const _0x7af96=_0x53de40['getItems']()['filter'](_0x28fa88=>_0x28fa88['is']('$textProxy'))['map'](_0x4226a0=>_0x4226a0['data']),_0x420901=this['_getSuggestionCoords'](_0x53de40),_0x27078e=_0x420901['maxRow']-_0x420901['minRow']+0x1;if('insertion'==_0x53de40['type'])return _0x7af96['length']?{'type':'insertion','content':o(_0x34c3b1,'*Insert:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27078e,'\x22'+_0x7af96['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34c3b1,'*Insert:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_ROW',_0x27078e))};if('deletion'==_0x53de40['type'])return _0x7af96['length']?{'type':'deletion','content':o(_0x34c3b1,'*Remove:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27078e,'\x22'+_0x7af96['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34c3b1,'*Remove:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_ROW',_0x27078e))};}if('tableColumn'==_0x53de40['subType']){const _0x44f64f=_0x53de40['getItems']()['filter'](_0x44789f=>_0x44789f['is']('$textProxy'))['map'](_0x1ac925=>_0x1ac925['data']),_0x400406=this['_getSuggestionCoords'](_0x53de40),_0x2820b7=_0x400406['maxColumn']-_0x400406['minColumn']+0x1;if('insertion'==_0x53de40['type'])return _0x44f64f['length']?{'type':'insertion','content':o(_0x34c3b1,'*Insert:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2820b7,'\x22'+_0x44f64f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x34c3b1,'*Insert:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_COLUMN',_0x2820b7))};if('deletion'==_0x53de40['type'])return _0x44f64f['length']?{'type':'deletion','content':o(_0x34c3b1,'*Remove:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2820b7,'\x22'+_0x44f64f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x34c3b1,'*Remove:*\x20%0',o(_0x34c3b1,'ELEMENT_TABLE_COLUMN',_0x2820b7))};}}),_0x317d35['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x585459),_0x317d35['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x585459),_0x317d35['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5d3c6a),_0x317d35['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5d3c6a),_0x317d35['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x154455),_0x317d35['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x154455),_0x317d35['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4202ee),_0x317d35['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4202ee);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1f3424=this['editor'],_0xb315fe=_0x1f3424['model']['document']['selection'];return(_0x1011ba,_0x24443f)=>{_0x1f3424['model']['change'](_0x17739d=>{const {commandName:_0x5ee1eb,commandParams:_0x506517}=_0x24443f;let _0x2411b0=_0x1011ba[0x0]['end']['nodeBefore'];_0x506517&&_0x506517[0x0]&&!0x1===_0x506517[0x0]['forceValue']&&(_0x2411b0=_0x1011ba[0x0]['start']['nodeAfter']);const _0x3b1293=_0x17739d['createRangeIn'](_0x2411b0);if('$graveyard'==_0x3b1293['root']['rootName'])return;const _0x5d917b=Array['from'](_0xb315fe['getRanges']())['map'](_0x5d7a0e=>_0x1c1e9b['fromRange'](_0x5d7a0e));_0x17739d['setSelection'](_0x3b1293),_0x1f3424['commands']['get'](_0x5ee1eb)['refresh'](),_0x506517['push']({'forceDefaultExecution':!0x0}),_0x1f3424['execute'](_0x5ee1eb,..._0x506517);const _0x3f51c2=_0x5d917b['filter'](_0x531978=>'$graveyard'!=_0x531978['root']['rootName']);_0x3f51c2['length']>0x0&&_0x17739d['setSelection'](_0x3f51c2);for(const _0x10d7ac of _0x5d917b)_0x10d7ac['detach']();});};}['_getCoordsForCells'](_0x179478){const _0x15b9f9=this['editor']['plugins']['get']('TableUtils');let _0x18ff98=Number['MAX_SAFE_INTEGER'],_0x3e47ec=Number['MIN_SAFE_INTEGER'],_0x1524d6=Number['MAX_SAFE_INTEGER'],_0x5d187f=Number['MIN_SAFE_INTEGER'];for(const _0x32a1e5 of _0x179478){if('$graveyard'==_0x32a1e5['root']['rootName'])continue;const {row:_0x5c74b0,column:_0x201e10}=_0x15b9f9['getCellLocation'](_0x32a1e5),_0x2cb9d9=_0x32a1e5['hasAttribute']('rowspan')?_0x32a1e5['getAttribute']('rowspan')-0x1:0x0,_0x42e0b3=_0x32a1e5['hasAttribute']('colspan')?_0x32a1e5['getAttribute']('colspan')-0x1:0x0;_0x18ff98=_0x5c74b0<_0x18ff98?_0x5c74b0:_0x18ff98,_0x3e47ec=_0x5c74b0+_0x2cb9d9>_0x3e47ec?_0x5c74b0+_0x2cb9d9:_0x3e47ec,_0x1524d6=_0x201e10<_0x1524d6?_0x201e10:_0x1524d6,_0x5d187f=_0x201e10+_0x42e0b3>_0x5d187f?_0x201e10+_0x42e0b3:_0x5d187f;}return{'minRow':_0x18ff98,'maxRow':_0x3e47ec,'minColumn':_0x1524d6,'maxColumn':_0x5d187f};}['_setupColumnsRowsFixing'](){const _0x5f1a1d=this['editor'],_0x4e0394=_0x5f1a1d['plugins']['get']('TrackChangesEditing'),_0x349419=_0x5f1a1d['plugins']['get']('TableUtils');_0x5f1a1d['model']['document']['on']('change:data',()=>{const _0x23ad0a=Array['from'](_0x5f1a1d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x382c85,data:_0xf09dba}of _0x23ad0a){const {group:_0x4e6b50,id:_0x576dfb,subType:_0x1873cf}=_0x4e0394['_splitMarkerName'](_0x382c85);if('suggestion'!=_0x4e6b50)continue;if(null!=_0xf09dba['oldRange'])continue;const _0x90ec1f=_0x4e0394['getSuggestion'](_0x576dfb);this['_tablePostFixingSubtypes']['includes'](_0x1873cf)&&this['_tableSuggestions']['add'](_0x90ec1f);}},{'priority':'low'});const _0x4fe7f3=(_0x3551cb,_0x5263b8)=>{let _0x2d0540=!0x1;const _0x675875=_0x5263b8['createRangeOn'](_0x3551cb),_0x3b3645=_0x3551cb['findAncestor']('table'),_0x2e4c71=_0x349419['getCellLocation'](_0x3551cb);for(const _0x35efca of this['_tableSuggestions']){const _0x5582d7=_0x35efca['subType'],_0x1665f2=_0x5582d7['startsWith']('tablePaste'),_0x10b2d5=_0x5582d7['substr'](_0x1665f2?0xa:0x5),_0x4636c4=_0x10b2d5['toLowerCase'](),_0x45a6ea=_0x4636c4['substr'](0x0,0x3)+'span',_0x44ff2a='min'+_0x10b2d5,_0x29d308='max'+_0x10b2d5;if(!_0x35efca['isInContent'])continue;if(_0x3b3645!=_0x35efca['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x35efca['isIntersectingWithRange'](_0x675875))continue;const _0x41ad4c=_0x3551cb['hasAttribute'](_0x45a6ea)?_0x3551cb['getAttribute'](_0x45a6ea)-0x1:0x0,_0x11bd4b=this['_getSuggestionCoords'](_0x35efca),_0x4f61f7=_0x11bd4b[_0x44ff2a],_0x9f2ac3=_0x11bd4b[_0x29d308];_0x4f61f7<=_0x2e4c71[_0x4636c4]&&_0x2e4c71[_0x4636c4]+_0x41ad4c<=_0x9f2ac3&&(_0x35efca['addRange'](_0x675875),_0x2d0540=!0x0);}return _0x2d0540;};_0x5f1a1d['model']['document']['registerPostFixer'](_0x26a81c=>{let _0x1f7d24=!0x1;for(const _0x98b30 of _0x5f1a1d['model']['document']['differ']['getChanges']())if('insert'==_0x98b30['type']){if('tableRow'==_0x98b30['name']){for(const _0xc76d2a of _0x98b30['position']['nodeAfter']['getChildren']())_0x1f7d24=_0x1f7d24||_0x4fe7f3(_0xc76d2a,_0x26a81c);}else'tableCell'==_0x98b30['name']&&(_0x1f7d24=_0x1f7d24||_0x4fe7f3(_0x98b30['position']['nodeAfter'],_0x26a81c));}return _0x1f7d24;});}['_getSuggestionCoords'](_0x5743bf){return this['_getCoordsForCells'](_0x5743bf['getRanges']()['map'](_0x12f467=>_0x12f467['start']['nodeAfter']));}}function Ne(_0x36bd5c){return Array['from'](new Set(_0x36bd5c)['values']());}class _t extends _0x5cca93{static get['requires'](){return[At];}['afterInit'](){const _0x2bb289=this['editor'],_0x56a6ac=_0x2bb289['model']['document']['selection'],_0x1ba3d9=_0x2bb289['locale'];if(!_0x2bb289['plugins']['has']('TableEditing'))return;const _0x26f698=_0x2bb289['plugins']['get']('TrackChangesEditing'),_0x51d7f7=_0x2bb289['plugins']['get']('TableUtils'),_0x148dbb=_0x2bb289['plugins']['get'](At);_0x148dbb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x26f698['enableCommand']('mergeTableCells',()=>{const _0x3a1480=_0x51d7f7['getSelectionAffectedTableCells'](_0x2bb289['model']['document']['selection']);_0x2bb289['model']['change'](()=>{_0x26f698['markMultiRangeBlockFormat'](_0x3a1480,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2bb289['commands']['get']('mergeTableCells')['on']('execute',(_0x200d3e,_0x38d029)=>{_0x2bb289['commands']['get']('trackChanges')['value']&&(_0x38d029['length']>0x0&&_0x38d029[_0x38d029['length']-0x1]&&_0x38d029[_0x38d029['length']-0x1]['forceDefaultExecution']||_0x26f698['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x200d3e['stop']());},{'priority':'highest'});for(const _0x439df6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5f4a80=_0x2bb289['commands']['get'](_0x439df6);_0x26f698['enableCommand'](_0x439df6,()=>{const _0x5d47b8=_0x2bb289['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4390dc=>_0x4390dc['is']('element','tableCell')),_0x3e37ec=_0x5f4a80['value'];_0x2bb289['model']['change'](()=>{_0x26f698['markMultiRangeBlockFormat']([_0x5d47b8,_0x3e37ec],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4287cc of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3fea04=_0x2bb289['commands']['get'](_0x4287cc);_0x26f698['enableCommand'](_0x4287cc,()=>{const _0x29ea83=_0x51d7f7['getSelectionAffectedTableCells'](_0x2bb289['model']['document']['selection'])[0x0],_0x52f1a7=_0x29ea83['findAncestor']('table'),{column:_0x194d6d,row:_0x3e4a5f}=_0x51d7f7['getCellLocation'](_0x29ea83);let _0x27bd11=[];if('horizontally'==_0x3fea04['direction']){const _0x5eeb2f=_0x51d7f7['createTableWalker'](_0x52f1a7,{'startRow':_0x3e4a5f,'endRow':_0x3e4a5f,'includeAllSlots':!0x0});_0x27bd11=Array['from'](_0x5eeb2f)['map'](_0x14df40=>_0x14df40['cell']);}else{const _0x5aead9=_0x51d7f7['createTableWalker'](_0x52f1a7,{'column':_0x194d6d,'includeAllSlots':!0x0});_0x27bd11=Array['from'](_0x5aead9)['map'](_0x992aca=>_0x992aca['cell']);}_0x2bb289['model']['change'](_0x3e3c91=>{_0x26f698['markBlockFormat'](_0x3e3c91['createRangeOn'](_0x29ea83),{'commandName':_0x4287cc,'commandParams':[]},_0x27bd11,_0x4287cc);});});}_0x26f698['descriptionFactory']['registerDescriptionCallback'](_0x154546=>{if('formatBlock'!=_0x154546['type']&&'formatInline'!=_0x154546['type'])return;const {data:_0x5779e8}=_0x154546;return _0x5779e8&&'mergeTableCells'==_0x5779e8['commandName']?{'type':'format','content':o(_0x1ba3d9,'*Merge\x20cells*')}:void 0x0;}),_0x26f698['descriptionFactory']['registerDescriptionCallback'](_0x2defce=>{if('formatBlock'!=_0x2defce['type']&&'formatInline'!=_0x2defce['type'])return;const {data:_0x4d53c0}=_0x2defce;return _0x4d53c0?'splitTableCellVertically'==_0x4d53c0['commandName']?{'type':'format','content':o(_0x1ba3d9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d53c0['commandName']?{'type':'format','content':o(_0x1ba3d9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x333ad2=_0x148dbb['_acceptFormatSuggestionCallbackFactory']();for(const _0x2537cf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x26f698['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2537cf,'accept',_0x333ad2);for(const _0x19c51f of['splitTableCellVertically','splitTableCellHorizontally'])_0x26f698['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19c51f,'accept',_0x333ad2);_0x26f698['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7c287=>{_0x2bb289['model']['change'](_0x512d6c=>{const _0x5ccd00=Array['from'](_0x56a6ac['getRanges']())['map'](_0x5d6955=>_0x1c1e9b['fromRange'](_0x5d6955));_0x512d6c['setSelection'](_0x7c287),_0x2bb289['commands']['get']('mergeTableCells')['refresh'](),_0x2bb289['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3e863e=_0x5ccd00['filter'](_0x4473ea=>'$graveyard'!=_0x4473ea['root']['rootName']);_0x3e863e['length']>0x0&&_0x512d6c['setSelection'](_0x3e863e);for(const _0x567de5 of _0x5ccd00)_0x567de5['detach']();});});for(const _0xbef4c3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x588c48=_0x2bb289['commands']['get'](_0xbef4c3);_0x588c48['on']('set:isEnabled',(_0x178a3d,_0x26ce1e,_0x2e3554)=>{if(_0x2e3554){const _0x405d30=_0x2bb289['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x164828=>_0x164828['is']('element','tableCell'));this['_areMergableCells'](_0x588c48['value'],_0x405d30)||(_0x178a3d['return']=!0x1,_0x178a3d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x46d673=this['editor']['commands']['get']('mergeTableCells'),_0x3369b9=this['editor']['plugins']['get']('TableUtils');if(!_0x46d673['isEnabled'])return!0x1;const _0x30cc05=_0x3369b9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x36742c of _0x30cc05)for(const _0x32ac9a of _0x30cc05)if(_0x36742c!=_0x32ac9a&&!this['_areMergableCells'](_0x36742c,_0x32ac9a))return!0x1;return!0x0;}['_areMergableCells'](_0x189703,_0x54810e){const _0x1ca529=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b152e=this['editor']['model']['createRangeOn'](_0x189703),_0x3172ea=this['editor']['model']['createRangeOn'](_0x54810e),_0x441bb8=new Set(),_0x95e155=new Set();for(const _0x2d2c4f of _0x1ca529['getSuggestions']())if(('insertion'==_0x2d2c4f['type']||'deletion'==_0x2d2c4f['type']||'mergeTableCells'==_0x2d2c4f['subType'])&&_0x2d2c4f['isInContent']){for(const _0x400254 of _0x2d2c4f['getRanges']())_0x400254['containsRange'](_0x2b152e,!0x0)&&_0x441bb8['add'](_0x2d2c4f['type']+':'+_0x2d2c4f['author']['id']),_0x400254['containsRange'](_0x3172ea,!0x0)&&_0x95e155['add'](_0x2d2c4f['type']+':'+_0x2d2c4f['author']['id']);}if(_0x441bb8['size']!=_0x95e155['size'])return!0x1;for(const _0x2374f9 of _0x441bb8)if(!_0x95e155['has'](_0x2374f9))return!0x1;return!0x0;}}class Ct extends _0x5cca93{static get['requires'](){return[At];}['afterInit'](){const _0x1966b6=this['editor'];if(!_0x1966b6['plugins']['has']('TableEditing'))return;const _0x1732db=_0x1966b6['locale'],_0x1f1d0a=_0x1966b6['plugins']['get']('TrackChangesEditing');_0x1f1d0a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1f1d0a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1f1d0a['registerBlockAttribute']('headingRows'),_0x1f1d0a['registerBlockAttribute']('headingColumns'),_0x1f1d0a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1732db,'FORMAT_HEADER_ROW')),_0x1f1d0a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1732db,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x42e221=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b7e96=this['editor']['plugins']['get']('TableUtils'),_0x1015ae=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x465b90({showActiveMarker:_0x57b256=!0x0,setDataAttribute:_0x5cf389=!0x0}={}){return(_0x346f53,_0x7ad4db,_0x4c631f)=>{const {type:_0x121ee4,id:_0x40eb70}=_0x42e221['_splitMarkerName'](_0x7ad4db['markerName']),_0x3ee897=_0x42e221['getSuggestion'](_0x40eb70),_0x4ab463=_0x3ee897['data'];if('formatBlock'!=_0x3ee897['type']||!_0x4ab463||'setTableColumnHeader'!=_0x4ab463['commandName'])return;if(_0x7ad4db['item'])return void _0x346f53['stop']();if(!_0x4c631f['consumable']['consume'](_0x7ad4db['markerRange'],_0x346f53['name']))return;const _0x72c01b=_0x7ad4db['markerRange']['start']['nodeAfter'],_0x4235b2=_0x7ad4db['markerRange']['end']['nodeBefore'],_0x2bc041=_0x72c01b['parent']['parent'],{column:_0xd303d2}=_0x4b7e96['getCellLocation'](_0x72c01b),{column:_0x279e09}=_0x4b7e96['getCellLocation'](_0x4235b2);for(let _0x51a140=_0xd303d2;_0x51a140<=_0x279e09;_0x51a140++){const _0x502acd=_0x4b7e96['createTableWalker'](_0x2bc041,{'column':_0x51a140,'includeAllSlots':!0x1});for(const _0x503e40 of _0x502acd){const _0x3faf9b=_0x503e40['cell'],_0x3b4782=_0x4c631f['mapper']['toViewElement'](_0x3faf9b);_0x4c631f['writer']['addClass']('ck-suggestion-marker-'+_0x121ee4,_0x3b4782),_0x5cf389&&_0x4c631f['writer']['setAttribute']('data-suggestion',_0x40eb70,_0x3b4782),_0x4c631f['mapper']['bindElementToMarker'](_0x3b4782,_0x7ad4db['markerName']),_0x57b256&&(_0x42e221['activeMarkers']['includes'](_0x7ad4db['markerName'])?_0x4c631f['writer']['addClass']('ck-suggestion-marker--active',_0x3b4782):_0x4c631f['writer']['removeClass']('ck-suggestion-marker--active',_0x3b4782));}}};}_0x42e221['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1015ae),_0x42e221['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1015ae),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x465b90(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a2c20,_0x3f84af,_0x10f64d)=>{_0x10f64d['options']['showSuggestionHighlights']&&_0x465b90({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5a2c20,_0x3f84af,_0x10f64d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x204254,_0x200c4d,_0x36477b)=>{const {type:_0xa197a9,id:_0xb8ca33}=_0x42e221['_splitMarkerName'](_0x200c4d['markerName']),_0x765888=_0x42e221['getSuggestion'](_0xb8ca33),_0x450edc=_0x765888['data'];if('formatBlock'!=_0x765888['type']||!_0x450edc||'setTableColumnHeader'!=_0x450edc['commandName'])return;const _0xb56223=_0x36477b['mapper']['markerNameToElements'](_0x200c4d['markerName']);if(_0xb56223){for(const _0x59d806 of _0xb56223)_0x36477b['writer']['removeClass']('ck-suggestion-marker-'+_0xa197a9,_0x59d806),_0x36477b['writer']['removeClass']('ck-suggestion-marker--active',_0x59d806),_0x36477b['writer']['removeAttribute']('data-suggestion',_0x59d806),_0x36477b['mapper']['unbindElementFromMarkerName'](_0x59d806,_0x200c4d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x593489=this['editor'],_0x654ef5=_0x593489['locale'];function _0x1a71b4(_0x38d3dc){return{'type':'format','content':o(_0x654ef5,'*Format:*\x20%0',_0x38d3dc)};}_0x593489['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x462b1b=>{if('formatBlock'!=_0x462b1b['type'])return;const {data:_0x382169}=_0x462b1b;if(_0x382169){if('setTableRowHeader'==_0x382169['commandName']){const _0x43a5fc=_0x382169['commandParams'][0x0]['forceValue'];return _0x1a71b4(o(_0x654ef5,_0x43a5fc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x382169['commandName']){const _0x54419d=_0x382169['commandParams'][0x0]['forceValue'];return _0x1a71b4(o(_0x654ef5,_0x54419d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x5cca93{['afterInit'](){const _0x375b18=this['editor'],_0x5352fd=_0x375b18['locale'],_0x49ab7f=_0x375b18['plugins']['get']('TrackChangesEditing');function _0x41c55e(_0x4b11fe){return{'type':'format','content':''+o(_0x5352fd,'*Set\x20table\x20type:*\x20%0',_0x4b11fe)};}_0x375b18['plugins']['has']('TableLayout')&&(_0x49ab7f['enableCommand']('insertTableLayout'),_0x49ab7f['enableDefaultAttributesIntegration']('tableType'),_0x49ab7f['registerBlockAttribute']('tableType'),_0x49ab7f['descriptionFactory']['registerElementLabel'](_0x2a9f45=>_0x2a9f45['is']('element','table')&&'layout'===_0x2a9f45['getAttribute']('tableType'),_0x477368=>o(_0x5352fd,'ELEMENT_LAYOUT_TABLE',_0x477368)),_0x49ab7f['descriptionFactory']['registerDescriptionCallback'](_0xbc9544=>{const {data:_0x480905}=_0xbc9544;if(_0x480905&&'tableType'==_0x480905['key'])switch(_0x480905['newValue']){case'layout':return _0x41c55e(o(_0x5352fd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x41c55e(o(_0x5352fd,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x4762ea=>[_0x4762ea,null]));class Nt extends _0x5cca93{static get['requires'](){return[At];}['afterInit'](){const _0x275eaf=this['editor'];if(!_0x275eaf['plugins']['has']('TableClipboard'))return;const _0x2a38c2=_0x275eaf['plugins']['get']('TrackChangesEditing'),_0x53c7fa=_0x275eaf['plugins']['get']('TableUtils'),_0x56c19e=_0x275eaf['plugins']['get'](At),_0x5ca7a9=_0x275eaf['plugins']['get']('TableClipboard'),_0x5f1be8=_0x275eaf['plugins']['get']('TableSelection'),_0x1db638=_0x275eaf['plugins']['get'](_0x4fb688);_0x56c19e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x275eaf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x275eaf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x55ab15=null,_0x1ecbc5=!0x1;_0x1db638['on']('contentInsertion',(_0xc3e140,_0x4f4ace)=>{_0x1ecbc5='paste'===_0x4f4ace['method'];}),_0x275eaf['model']['on']('insertContent',(_0x3dafdd,_0x12c19a)=>{if(!_0x1ecbc5&&null===_0x5f1be8['getSelectedTableCells']())return;const [_0x453428,_0x4edda2]=_0x12c19a,_0x5bc838=_0x12c19a[_0x12c19a['length']-0x1];_0x5bc838&&_0x5bc838['forceDefaultExecution']||_0x2a38c2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x245a11,_0x4cd081,_0x19ff8e,_0x150804,_0x13c9e5){if(_0x4cd081&&!_0x4cd081['is']('documentSelection'))return!0x1;const _0x546983=_0x13c9e5['getTableIfOnlyTableInContent'](_0x245a11,_0x19ff8e);if(!_0x546983||!Ue(_0x546983,void 0x0,_0x150804))return!0x1;const _0x1d32ab=_0x150804['getSelectionAffectedTableCells'](_0x19ff8e['document']['selection']);if(!_0x1d32ab['length'])return!0x1;const _0xfc3d73=_0x1d32ab[0x0]['findAncestor']('table'),_0x1de29a=_0x150804['getRowIndexes'](_0x1d32ab),_0x23da57=_0x150804['getColumnIndexes'](_0x1d32ab),_0x411620={'startRow':_0x1de29a['first'],'endRow':_0x1de29a['last'],'startColumn':_0x23da57['first'],'endColumn':_0x23da57['last']};return 0x1==_0x1d32ab['length']&&(_0x411620['endRow']+=_0x150804['getRows'](_0x546983)-0x1,_0x411620['endColumn']+=_0x150804['getColumns'](_0x546983)-0x1),Ue(_0xfc3d73,_0x411620,_0x150804);}(_0x453428,_0x4edda2,_0x275eaf['model'],_0x53c7fa,_0x5ca7a9)&&(_0x3dafdd['stop'](),_0x55ab15={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x275eaf['model']['change'](()=>{_0x275eaf['model']['insertContent'](_0x12c19a[0x0],_0x12c19a[0x1],_0x12c19a[0x2],{'forceDefaultExecution':!0x0});const _0x4339b2=_0x51161f(),{rowInsertionRanges:_0x554d7c,columnInsertionRanges:_0x21c2fa,insertionRanges:_0x3a72cf,deletionRanges:_0x177265,cells:_0x534a28}=_0x55ab15;_0x554d7c['length']&&_0x2a38c2['markMultiRangeInsertion'](_0x554d7c,'tablePasteRow',{'tablePasteChainId':_0x4339b2}),_0x21c2fa['length']&&_0x2a38c2['markMultiRangeInsertion'](_0x21c2fa,'tablePasteColumn',{'tablePasteChainId':_0x4339b2}),_0x3a72cf['length']&&(_0x2a38c2['markMultiRangeInsertion'](_0x3a72cf,'tablePaste',{'tablePasteChainId':_0x4339b2,'skipNestingCheck':!0x0}),_0x3a72cf['forEach'](_0xb90940=>_0xb90940['detach']?.())),_0x177265['length']&&(_0x2a38c2['markMultiRangeDeletion'](_0x177265,'tablePaste',{'tablePasteChainId':_0x4339b2,'skipNestingCheck':!0x0}),_0x177265['forEach'](_0x53e0e8=>_0x53e0e8['detach']?.()));const _0x46f6d7=_0x2a38c2['markMultiRangeBlockFormat'](_0x534a28['map'](({element:_0x382348})=>_0x382348),{'formatGroupId':_0x51161f()},[],'tablePasteCell',{'tablePasteChainId':_0x4339b2});if(_0x46f6d7){const _0xf392c1=_0x46f6d7['getMarkers'](),_0x2d4d22=[];for(const {element:_0x3999ac,attributes:_0x3ce6cd}of _0x534a28){if(!_0x3ce6cd)continue;const _0x1ad001=_0x275eaf['model']['createRangeOn'](_0x3999ac),_0x3060fe=_0xf392c1['find'](_0x18dfdc=>_0x18dfdc['getRange']()['isEqual'](_0x1ad001));_0x3060fe&&_0x2d4d22['push']([_0x3060fe['name'],_0x3ce6cd]);}_0x2d4d22['length']&&_0x46f6d7['setAttribute']('markerAttributes',Object['fromEntries'](_0x2d4d22));}_0x55ab15=null;}));},{'priority':_0x16998a['high']+0xa}),_0x1db638['on']('contentInsertion',()=>{_0x1ecbc5=!0x1;},{'priority':'lowest'}),_0x275eaf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1396b4,_0x5e38a6)=>{const [_0xd14ac4,_0x2fb7ed,,_0x128a0e]=_0x5e38a6;if(!_0x55ab15)return;_0x1396b4['stop']();const _0x308079=_0xd14ac4['cell'],_0x4b5446=_0x2fb7ed,_0x2da55e=Oe(_0x308079),_0x16b2e4=Oe(_0x4b5446);_0x1396b4['return']=_0x308079;let _0x4f5ade=null,_0x2f3636=null;if(_0x16b2e4||_0x2da55e){if(_0x2da55e&&!_0x16b2e4){_0x128a0e['remove'](_0x308079['getChild'](0x0));for(const _0x330f3b of Array['from'](_0x4b5446['getChildren']()))_0x128a0e['insert'](_0x330f3b,_0x308079,'end');const _0x1ed78f=_0x55ab15['rowInsertionIndexes']['includes'](_0xd14ac4['row']),_0x9779a=_0x55ab15['columnInsertionIndexes']['includes'](_0xd14ac4['column']);_0x1ed78f||_0x9779a||(_0x4f5ade=_0x1c1e9b['fromRange'](_0x128a0e['createRangeIn'](_0x308079)));}else _0x16b2e4&&!_0x2da55e&&(_0x2f3636=_0x128a0e['createRangeIn'](_0x308079));}else{const _0x4481a7=_0x128a0e['createElement']('tableCellSuggestion'),_0x5f5753=_0x128a0e['createElement']('tableCellSuggestion');_0x128a0e['wrap'](_0x128a0e['createRangeIn'](_0x308079),_0x5f5753),_0x128a0e['insert'](_0x4481a7,_0x308079,0x0);for(const _0x14262b of Array['from'](_0x4b5446['getChildren']()))_0x128a0e['insert'](_0x14262b,_0x4481a7,'end');_0x4f5ade=_0x1c1e9b['fromRange'](_0x128a0e['createRangeOn'](_0x4481a7)),_0x2f3636=_0x1c1e9b['fromRange'](_0x128a0e['createRangeOn'](_0x5f5753));}const _0x495ce0=Array['from'](_0x4b5446['getAttributes']())['filter'](([_0xafe3e9])=>Be['includes'](_0xafe3e9));_0x55ab15['cells']['push']({'element':_0x308079,'attributes':_0x495ce0['length']?Object['fromEntries'](_0x495ce0):null}),_0x4f5ade&&_0x55ab15['insertionRanges']['push'](_0x4f5ade),_0x2f3636&&_0x55ab15['deletionRanges']['push'](_0x2f3636);},{'priority':'high'}),_0x53c7fa['on']('insertColumns',(_0x23858d,_0x5efd2f)=>{const [_0x1b95d1,_0x42051b={}]=_0x5efd2f;if(!_0x55ab15)return;const _0x1fcc06=_0x42051b['at']||0x0,_0x55a35a=_0x42051b['columns']||0x1;_0x55ab15['columnInsertionIndexes']=new Array(_0x55a35a)['fill'](_0x1fcc06)['map']((_0xc3cea5,_0x471916)=>_0xc3cea5+_0x471916);for(const {cell:_0x1bb0ca}of _0x53c7fa['createTableWalker'](_0x1b95d1,{'startColumn':_0x1fcc06,'endColumn':_0x1fcc06+_0x55a35a-0x1}))_0x55ab15['columnInsertionRanges']['push'](_0x275eaf['model']['createRangeOn'](_0x1bb0ca));},{'priority':'low'}),_0x53c7fa['on']('insertRows',(_0x4bf1ad,_0x206194)=>{const [_0x18d56d,_0x381b23={}]=_0x206194;if(!_0x55ab15)return;const _0x219398=_0x381b23['at']||0x0,_0x211dd1=_0x381b23['rows']||0x1;_0x55ab15['rowInsertionIndexes']=new Array(_0x211dd1)['fill'](_0x219398)['map']((_0x2b9fad,_0x32178a)=>_0x2b9fad+_0x32178a);for(const {cell:_0x221b4f}of _0x53c7fa['createTableWalker'](_0x18d56d,{'startRow':_0x219398,'endRow':_0x219398+_0x211dd1-0x1}))_0x55ab15['rowInsertionRanges']['push'](_0x275eaf['model']['createRangeOn'](_0x221b4f));},{'priority':'low'}),_0x2a38c2['descriptionFactory']['registerDescriptionCallback'](_0xca97fd=>{if(_0xca97fd['subType']&&_0xca97fd['subType']['startsWith']('tablePaste'))return _0xca97fd['previous']?{}:{'type':'insertion','content':o(_0x275eaf['locale'],'*Replace\x20table\x20cells*')};});const _0x5b8bc5=()=>!0x1;for(const _0x56551d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2a38c2['_suggestionFactory']['registerCustomCallback']('insertion',_0x56551d,'join',_0x5b8bc5),_0x2a38c2['_suggestionFactory']['registerCustomCallback']('deletion',_0x56551d,'join',_0x5b8bc5),_0x2a38c2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56551d,'join',_0x5b8bc5);_0x2a38c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5b8bc5),_0x2a38c2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xb4e221,_0x217ef1,_0x1a35c3)=>{const _0x1f3d78=_0xb4e221['map'](_0x5953d9=>_0x5953d9['getContainedElement']())['filter'](_0x5333fd=>_0x5333fd),_0x51b497=new Map(_0x1f3d78['map'](_0x4e7ff4=>[_0x4e7ff4,null]));if(_0x55ab15){for(const {element:_0x4d4386,attributes:_0x2e86d0}of _0x55ab15['cells'])_0x2e86d0&&_0x51b497['set'](_0x4d4386,_0x2e86d0);}else{if(_0x1a35c3&&_0x1a35c3['markerAttributes'])for(const [_0x522084,_0x46596c]of Object['entries'](_0x1a35c3['markerAttributes'])){const _0xb34f16=_0x275eaf['model']['markers']['get'](_0x522084),_0x1f3ab4=_0xb34f16?_0xb34f16['getRange']()['getContainedElement']():null;_0x1f3ab4&&_0x51b497['set'](_0x1f3ab4,_0x46596c);}}_0x275eaf['model']['change'](_0x16f055=>{for(const [_0x3a9538,_0x358f57]of _0x51b497)_0x16f055['setAttributes']({...xe,..._0x358f57},_0x3a9538);});});const _0x38120c=(_0x1cd107,_0x30a2c2)=>{_0x2a38c2['_suggestionFactory']['registerCustomCallback'](_0x1cd107,'tablePaste',_0x30a2c2,(_0x46bbb2,_0x573b55,_0x5461e5)=>{_0x275eaf['model']['change'](_0x388f46=>{const _0x3c3a91=[];for(const _0x296690 of _0x46bbb2){const _0x53b1ac=_0x296690['start']['nodeAfter'];_0x53b1ac['is']('element','tableCellSuggestion')&&_0x3c3a91['push'](_0x53b1ac);}_0x2a38c2['_suggestionFactory']['getSuggestionCallback'](_0x1cd107,null,_0x30a2c2)(_0x46bbb2,_0x573b55,_0x5461e5);for(const _0x103a75 of _0x3c3a91)'$graveyard'!=_0x103a75['root']['rootName']&&_0x388f46['unwrap'](_0x103a75);});});};_0x38120c('insertion','accept'),_0x38120c('insertion','discard'),_0x38120c('deletion','accept'),_0x38120c('deletion','discard'),_0x2a38c2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22e76c=>{const _0x543ddc=_0x22e76c['map'](_0x1e39d9=>_0x1e39d9['getContainedElement']()),_0x422df7=_0x543ddc[0x0]['findAncestor']('table'),{minRow:_0x532136,maxRow:_0xe665f2}=_0x56c19e['_getCoordsForCells'](_0x543ddc);_0x53c7fa['removeRows'](_0x422df7,{'at':_0x532136,'rows':_0xe665f2-_0x532136+0x1});}),_0x2a38c2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x597ee3=>{const _0x16fe25=_0x597ee3['map'](_0x39b2a9=>_0x39b2a9['getContainedElement']()),_0x504bfe=_0x16fe25[0x0]['findAncestor']('table'),{minColumn:_0x59269e,maxColumn:_0x5a918f}=_0x56c19e['_getCoordsForCells'](_0x16fe25);_0x53c7fa['removeColumns'](_0x504bfe,{'at':_0x59269e,'columns':_0x5a918f-_0x59269e+0x1});});const _0x4b0746=(_0x6a97ed,_0x3c502b)=>{if(!_0x3c502b['subType']||!_0x3c502b['subType']['startsWith']('tablePaste'))return;const _0x486535=_0x3c502b['attributes']['tablePasteChainId'],_0x226350=_0x2a38c2['getSuggestions']()['filter'](_0x42a48b=>_0x42a48b['isInContent']&&_0x42a48b['attributes']&&_0x42a48b['attributes']['tablePasteChainId']==_0x486535);_0x226350['length']&&_0x3c502b['getAllAdjacentSuggestions']()['length']!=_0x226350['length']&&_0x226350['reduce']((_0x5b48eb,_0x52ee01)=>(_0x5b48eb['next']=_0x52ee01,_0x52ee01['previous']=_0x5b48eb,_0x52ee01));};function _0x54ebae(_0x59512d,_0x487ef4=!0x0){const {id:_0x58f81c,authorId:_0x50d1e6}=_0x2a38c2['_splitMarkerName'](_0x59512d['markerName']),_0x33dbce=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3a3cbe=_0x2a38c2['activeMarkers']['includes'](_0x59512d['markerName']);return _0x3a3cbe&&_0x33dbce['push']('ck-suggestion-marker--active'),{'classes':_0x33dbce,'attributes':{'data-suggestion':_0x58f81c,'data-author-id':_0x50d1e6},'priority':_0x3a3cbe&&_0x487ef4?0xbc2:0xbb8};}_0x2a38c2['on']('suggestionLoaded',_0x4b0746,{'priority':'high'}),_0x2a38c2['on']('suggestionUnloaded',_0x4b0746,{'priority':'high'}),_0x275eaf['model']['document']['registerPostFixer'](()=>{let _0x56d484=!0x1;const _0x25e257=Array['from'](_0x275eaf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb935e0,data:_0x38ee3b}of _0x25e257){const {group:_0x5296b7,type:_0x3b7f0b,id:_0xf51601}=_0x2a38c2['_splitMarkerName'](_0xb935e0);if('suggestion'!=_0x5296b7||'deletion'!=_0x3b7f0b||_0x38ee3b['oldRange'])continue;if(!_0x2a38c2['hasSuggestion'](_0xf51601))continue;const _0x55626b=_0x2a38c2['getSuggestion'](_0xf51601)['getRanges'](),_0x5bff82=_0x275eaf['plugins']['get']('Users')['me'];for(const _0x3cfb87 of _0x2a38c2['getSuggestions']()){if(!_0x3cfb87['isInContent']||_0x3cfb87['author']!=_0x5bff82)continue;if('formatBlock'!=_0x3cfb87['type']||'tablePasteCell'!=_0x3cfb87['subType'])continue;if(_0x3cfb87['getRanges']()['every'](_0x2d2253=>_0x55626b['some'](_0x28f1ff=>_0x28f1ff['containsRange'](_0x2d2253,!0x0)))){for(const _0x19a198 of _0x3cfb87['getAllAdjacentSuggestions']())_0x19a198['isInContent']&&(_0x19a198['discard'](),_0x56d484=!0x0);}}}return _0x56d484;}),_0x275eaf['model']['document']['registerPostFixer'](_0x4a6cb3=>{const _0x5f4d5f=_0x275eaf['commands']['get']('redo');if(!_0x5f4d5f||!_0x5f4d5f['_createdBatches']['has'](_0x4a6cb3['batch']))return!0x1;let _0x756b7=!0x1;const _0x1a5eeb=_0x275eaf['plugins']['get']('Users')['me'],_0x14bd7e=_0x275eaf['model']['document']['differ']['getChanges'](),_0x3d69c9=Array['from'](_0x275eaf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3c35b4,data:_0x5ce263})=>{const {group:_0x406713,subType:_0x2028ae,authorId:_0x191d03}=_0x2a38c2['_splitMarkerName'](_0x3c35b4);return'suggestion'==_0x406713&&'tablePaste'==_0x2028ae&&_0x191d03==_0x1a5eeb['id']&&!_0x5ce263['oldRange'];});for(const _0x1dbf99 of _0x14bd7e){if('insert'!=_0x1dbf99['type']||'tableCellSuggestion'!=_0x1dbf99['name']||0x1!=_0x1dbf99['length'])continue;const _0x316761=_0x4a6cb3['createRange'](_0x1dbf99['position'],_0x1dbf99['position']['getShiftedBy'](0x1));if(!_0x3d69c9['find'](({data:_0x23eb7c})=>_0x23eb7c['newRange']['isEqual'](_0x316761))){for(const {name:_0x638344,data:_0x31d584}of _0x3d69c9)if(_0x316761['containsRange'](_0x31d584['newRange'])){_0x4a6cb3['updateMarker'](_0x638344,{'range':_0x316761}),_0x756b7=!0x0;break;}}}return _0x756b7;}),_0x275eaf['model']['document']['registerPostFixer'](_0x16e678=>{let _0x3ae773=!0x1;const _0x415146=_0x275eaf['plugins']['get']('Users')['me'],_0x5e9700=_0x2a38c2['getSuggestions']()['filter'](_0x5e9d4b=>_0x5e9d4b['isInContent']&&_0x5e9d4b['author']==_0x415146),_0x1b117b=new Set(),_0x5cc7fc=new Set();for(const _0xf8113f of _0x5e9700)if('tablePaste'==_0xf8113f['subType'])for(const _0x40123e of _0xf8113f['getMarkers']()){const _0x478793=_0x40123e['getRange']()['getContainedElement']();if(_0x478793){if(_0x478793['is']('element','tableCellSuggestion')&&Oe(_0x478793)){_0xf8113f['removeMarker'](_0x40123e['name']),_0x1b117b['add'](_0x478793),_0x3ae773=!0x0;const _0x166a07=_0x478793['nextSibling'],_0x58f557=_0x478793['previousSibling'],_0x17b834=_0x166a07&&_0x166a07['is']('element','tableCellSuggestion'),_0x1e7a63=_0x58f557&&_0x58f557['is']('element','tableCellSuggestion');_0x17b834&&!_0x1b117b['has'](_0x166a07)&&_0x5cc7fc['add'](_0x166a07),_0x1e7a63&&!_0x1b117b['has'](_0x58f557)&&_0x5cc7fc['add'](_0x58f557);}else _0x478793['is']('element','paragraph')&&_0x478793['isEmpty']&&(_0xf8113f['removeMarker'](_0x40123e['name']),_0x3ae773=!0x0);}}else{if('tablePasteCell'==_0xf8113f['subType']){if(!_0xf8113f['attributes']||!_0xf8113f['attributes']['tablePasteChainId'])continue;const _0x1a1447=_0xf8113f['attributes']['markerAttributes'];if(_0x1a1447&&Object['keys'](_0x1a1447)['length'])continue;const _0x5c15dd=_0xf8113f['attributes']['tablePasteChainId'];let _0x5878c5=!0x0,_0x1a9e40=!0x0;for(const _0x48f63b of _0x5e9700)if(_0x48f63b['subType']&&_0x48f63b['subType']['startsWith']('tablePaste')){if(!_0x48f63b['attributes']['tablePasteChainId']){_0x1a9e40=!0x1;break;}if(_0x48f63b['id']!=_0xf8113f['id']&&_0x48f63b['attributes']['tablePasteChainId']==_0x5c15dd){_0x5878c5=!0x1;break;}}_0x1a9e40&&_0x5878c5&&(_0xf8113f['removeMarkers'](),_0x3ae773=!0x0);}}for(const _0x2e05ff of _0x1b117b)_0x16e678['remove'](_0x2e05ff);for(const _0x27fa14 of _0x5cc7fc)_0x16e678['unwrap'](_0x27fa14);return _0x3ae773;}),_0x275eaf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xa1c9b6=>_0x54ebae(_0xa1c9b6),'converterPriority':'high'}),_0x275eaf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5461de,_0x484859)=>_0x484859['options']['showSuggestionHighlights']?_0x54ebae(_0x5461de,!0x1):null,'converterPriority':'high'});const _0x290980=_0x275eaf['editing']['view'];this['listenTo'](_0x290980['document'],'clipboardOutput',(_0x5eab4b,_0xa45d56)=>{const _0x196561=[];for(const _0x59e86c of _0x290980['createRangeIn'](_0xa45d56['content'])['getItems']())_0x59e86c['is']('element','suggestion-td')&&_0x196561['push'](_0x59e86c);_0x290980['change'](_0x5a4cfd=>{for(const _0x4d8c9e of _0x196561)_0x5a4cfd['move'](_0x5a4cfd['createRangeIn'](_0x4d8c9e),_0x5a4cfd['createPositionBefore'](_0x4d8c9e)),_0x5a4cfd['remove'](_0x4d8c9e);});});}}function Oe(_0x25fc35){if(_0x25fc35['isEmpty'])return!0x0;const _0x4be267=_0x25fc35['getChild'](0x0);return _0x4be267['is']('element','paragraph')&&_0x4be267['isEmpty'];}function Ue(_0x239200,_0x37904b={},_0x12c2d2){for(const {isAnchor:_0x1b2b45,cellHeight:_0x3a10a1,cellWidth:_0x3fd1ef}of _0x12c2d2['createTableWalker'](_0x239200,{'includeAllSlots':!0x0,..._0x37904b}))if(!_0x1b2b45||0x1!=_0x3a10a1||0x1!=_0x3fd1ef)return!0x1;return!0x0;}class Dt extends _0x5cca93{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xb4a85=this['editor']['plugins']['get']('TrackChangesEditing');_0xb4a85['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xb4a85['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xb4a85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb4a85['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xb4a85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xb4a85['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x7ddd15,_0x284cee){const _0x18fa4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x164d04=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x515932=_0x284cee['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x178728=_0x164d04['getColumnGroupElement'](_0x515932);let _0x5999f6=_0x178728?_0x164d04['getTableColumnsWidths'](_0x178728):null,_0x38297c=_0x515932['getAttribute']('tableWidth')||null;const _0xb4d195=_0x284cee['tableWidth']||_0x38297c,_0x40ed11=_0x284cee['columnWidths']||_0x5999f6,_0x36c468=this['editor']['plugins']['get']('Users')['me'];for(const _0xb42593 of _0x18fa4d['getSuggestions']()){const _0x3f40f7=_0xb42593['getContainedElement']();if('resizeTable'===_0xb42593['subType']&&_0x3f40f7===_0x515932){_0xb42593['author']!==_0x36c468&&_0xb42593['discard']();const _0x1c24ea=_0xb42593['data']['commandParams'];_0x38297c=_0x1c24ea[0x0]['tableWidth'],_0x5999f6=_0x1c24ea[0x0]['columnWidths'];break;}}_0x7ddd15({'table':_0x515932,'tableWidth':_0xb4d195,'columnWidths':_0x40ed11}),_0x18fa4d['markBlockFormat'](_0x515932,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x38297c,'columnWidths':_0x5999f6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1fd53b){if('formatBlock'!=_0x1fd53b['type']&&'formatInline'!=_0x1fd53b['type'])return;const {data:_0x595fe5}=_0x1fd53b;if(_0x595fe5&&'resizeTable'===_0x595fe5['formatGroupId']){const _0x8ca1ec='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x8ca1ec)};}}}class $t extends _0x5cca93{['afterInit'](){const _0x2695b=this['editor'];_0x2695b['plugins']['has']('Template')&&_0x2695b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5cca93{['afterInit'](){const _0x50a965=this['editor'];if(!_0x50a965['commands']['get']('insertTableOfContents'))return;_0x50a965['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5c4cb1=_0x50a965['plugins']['get']('TrackChangesEditing'),_0x23bd99=_0x50a965['locale'];_0x5c4cb1['descriptionFactory']['registerElementLabel']('tableOfContents',_0xc5b4b6=>o(_0x23bd99,'ELEMENT_TABLE_OF_CONTENTS',_0xc5b4b6));}}class Bt extends _0x5cca93{['afterInit'](){const _0xdefb4e=this['editor'];if(!_0xdefb4e['plugins']['has']('Title'))return;const _0x4e3dea=_0xdefb4e['plugins']['get']('TrackChangesEditing');_0x4e3dea['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xdefb4e['locale'],'ELEMENT_TITLE')),_0xdefb4e['model']['document']['registerPostFixer'](_0x21ecb3=>{let _0x41c4dc=!0x1;const _0x5635b5=Array['from'](_0xdefb4e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a81bd,data:_0x579ffa}of _0x5635b5){const {group:_0xb73aa9}=_0x4e3dea['_splitMarkerName'](_0x2a81bd);if('suggestion'!==_0xb73aa9||!_0x579ffa['newRange'])continue;const _0x4089b3=_0x579ffa['newRange'],_0x51cec8=_0x4089b3['end']['nodeBefore'];if(!_0x51cec8||!_0x51cec8['is']('element','title-content'))continue;if(!_0x4089b3['start']['isTouching'](_0x4089b3['end']))continue;const _0x2aae95=_0xdefb4e['model']['schema']['getNearestSelectionRange'](_0x4089b3['end'],'forward');if(_0x2aae95&&_0x2aae95['isCollapsed']){const _0x22c3b1=_0x21ecb3['createRange'](_0x4089b3['start'],_0x2aae95['start']);_0x22c3b1['isEqual'](_0x4089b3)||(_0x21ecb3['updateMarker'](_0x2a81bd,{'range':_0x22c3b1}),_0x41c4dc=!0x0);}_0x41c4dc||(_0x21ecb3['removeMarker'](_0x2a81bd),_0x41c4dc=!0x0);}return _0x41c4dc;});}}class Tt extends _0x5cca93{['afterInit'](){const _0x3db3e0=this['editor'],_0x2a88e9=_0x3db3e0['plugins']['get']('TrackChangesEditing');_0x3db3e0['plugins']['has']('Uploadcare')&&(_0x2a88e9['enableCommand']('uploadcare'),_0x3db3e0['plugins']['has']('UploadcareImageEdit')&&(_0x2a88e9['enableCommand']('uploadcareImageEdit'),_0x2a88e9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2a88e9['registerBlockAttribute']('uploadcareImageId'),_0x2a88e9['descriptionFactory']['registerDescriptionCallback'](_0x2dc93d=>{if('attribute'!=_0x2dc93d['type'])return;const {data:_0x303571}=_0x2dc93d;return _0x303571&&'uploadcareImageId'==_0x303571['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x5cca93{['afterInit'](){const _0x10830c=this['editor'],_0x2355e2=_0x10830c['plugins']['get']('TrackChangesEditing');_0x10830c['plugins']['has']('UndoEditing')&&(_0x2355e2['enableCommand']('undo'),_0x2355e2['enableCommand']('redo'));}}class Ot extends _0x5cca93{static get['requires'](){return[At];}['afterInit'](){const _0x2dabd4=this['editor'];if(!_0x2dabd4['plugins']['has']('TableCaptionEditing'))return;_0x2dabd4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x5cca93{['tableProperties'];['tableCellProperties'];constructor(_0x37e138){super(_0x37e138),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 _0x1609a5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x321ae8 of this['tableProperties'])_0x1609a5['enableCommand'](_0x321ae8,(_0x278c04,_0x7154c5)=>{const _0x36cab0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x321ae8,[_0x36cab0],this['tableProperties'],'tableProperties',_0x278c04,_0x7154c5);});_0x1609a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1609a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1609a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x169d25,_0x5ec28c)=>this['handleDiscardAction'](this['tableProperties'],_0x169d25,_0x5ec28c)),_0x1609a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xf69c96 of this['tableCellProperties'])_0x1609a5['enableCommand'](_0xf69c96,(_0x4e749c,_0xb7b818)=>{const _0xd7dfaf=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xf69c96,_0xd7dfaf,this['tableCellProperties'],'tableCellProperties',_0x4e749c,_0xb7b818);});_0x1609a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1609a5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1609a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3938bc,_0x645161)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3938bc,_0x645161)),_0x1609a5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1609a5['descriptionFactory']['registerDescriptionCallback'](_0x3e6dd9=>this['handleSuggestionDescription'](_0x3e6dd9)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5df8c7,_0x531a0e,_0x38ae54,_0x7c1772,_0x2f822c,_0x33038e){const _0x4115c2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x33038e['batch'],()=>{for(const _0x1842c8 of _0x531a0e){if(this['_getSuggestion'](_0x1842c8,_0x7c1772))_0x2f822c(_0x33038e);else{const _0x173fd5={};for(const _0x3d742d of _0x38ae54){const _0xb2f3ca=_0x1842c8['getAttribute'](_0x3d742d);void 0x0!==_0xb2f3ca&&(_0x173fd5[_0x3d742d]=_0xb2f3ca);}_0x2f822c(_0x33038e),_0x4115c2['markBlockFormat'](_0x1842c8,{'commandParams':[_0x173fd5]},[],_0x7c1772);}}});}['handleDiscardAction'](_0x2781ea,_0x3dd5dd,_0x427950){const _0x49e552=_0x3dd5dd[0x0]['start']['nodeAfter'],_0x22256a=_0x427950['commandParams'][0x0];this['editor']['model']['change'](_0x5e6fe2=>{for(const _0x2cf84d of _0x2781ea)void 0x0!==_0x22256a[_0x2cf84d]?_0x5e6fe2['setAttribute'](_0x2cf84d,_0x22256a[_0x2cf84d],_0x49e552):_0x5e6fe2['removeAttribute'](_0x2cf84d,_0x49e552);});}['handleSuggestionDescription'](_0x560565){if(_0x560565['data'])switch(_0x560565['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'](_0xcb923f,_0x5ae1ba){const _0x5c61c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x110fcf of _0x5c61c9['getSuggestions']({'skipNotAttached':!0x0})){const _0x2ed3a5=_0x110fcf['getContainedElement']();if(_0x110fcf['subType']===_0x5ae1ba&&_0x2ed3a5===_0xcb923f)return _0x110fcf;}return null;}['_registerTablePropertiesAttributes'](){const _0x4015dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36506c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3786ee of _0x36506c){const _0x4b6ac9=_0x3786ee['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4015dd['registerBlockAttribute'](_0x3786ee),_0x4015dd['descriptionFactory']['registerAttributeLabel'](_0x3786ee,o(this['editor']['locale'],'FORMAT_'+_0x4b6ac9));}}}class Rt extends _0x5cca93{['afterInit'](){const _0xe22230=this['editor'];if(!_0xe22230['plugins']['has']('LineHeight'))return;const _0x2956ef=_0xe22230['plugins']['get']('TrackChangesEditing'),_0x4a74e6=_0xe22230['locale'];_0x2956ef['enableDefaultAttributesIntegration']('lineHeight'),_0x2956ef['registerBlockAttribute']('lineHeight'),_0x2956ef['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x4a74e6,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x5cca93{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x21b95b,_0x2f57a5,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(_0x426bba){super(_0x426bba),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4e4be6,_0x593043,_0x4e3b91,_0x431e27)=>{this['_model']['change'](()=>{for(const _0x1b3af9 of[..._0x431e27,..._0x4e3b91])this['_model']['markers']['has'](_0x1b3af9)&&_0x426bba['editing']['reconvertMarker'](_0x1b3af9);});}),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']=_0x426bba['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(),_0x426bba['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x426bba['config']['get']('trackChanges.trackFormatChanges'),_0x426bba['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x426bba['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x426bba,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3be137=this['editor'],_0x8778fe=(_0x38035a,_0x1d46f3)=>{if('attribute'!=_0x38035a)return'ck-suggestion-marker-'+_0x38035a;const _0x23e025=_0x1d46f3['split']('|')[0x0];return this['_isBlockAttribute'](_0x23e025)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3be137['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5434c6=>{const {id:_0xe91f91,authorId:_0x396805,type:_0x39101a,subType:_0xaeb30b}=this['_splitMarkerName'](_0x5434c6['markerName']),_0x475cc6=['ck-suggestion-marker',_0x8778fe(_0x39101a,_0xaeb30b)];let _0x27b734=0xbb8;return this['activeMarkers']['includes'](_0x5434c6['markerName'])&&(_0x475cc6['push']('ck-suggestion-marker--active'),_0x27b734=0xbc2),'deletion'==_0x39101a&&(_0x27b734+=0x5),{'classes':_0x475cc6,'attributes':{'data-suggestion':_0xe91f91,'data-author-id':_0x396805},'priority':_0x27b734};}}),_0x3be137['conversion']['for']('dataDowncast')['add'](_0x9d2eb7=>{_0x9d2eb7['on']('addMarker:suggestion',(_0x1111b0,_0x2859dd,_0x574840)=>{if(!_0x574840['options']['showSuggestionHighlights'])return;const _0x5ec090=_0x2859dd['item'];if(!_0x5ec090)return;const _0x5363a4=_0x574840['mapper']['toViewElement'](_0x5ec090);_0x3be137['model']['schema']['isObject'](_0x5ec090)&&_0x5363a4&&!_0x5363a4['getCustomProperty']('widget')&&_0x5363a4['is']('containerElement')&&_0x3e2533(_0x5363a4,_0x574840['writer']);},{'priority':'high'});}),_0x3be137['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1e6972,_0x191b8c)=>{if(!_0x191b8c['options']['showSuggestionHighlights'])return null;const {id:_0x1abe8b,authorId:_0x404e88,type:_0x3aa61a,subType:_0x1a8e63}=this['_splitMarkerName'](_0x1e6972['markerName']);return{'classes':['ck-suggestion-marker',_0x8778fe(_0x3aa61a,_0x1a8e63)],'priority':0xbb8,'attributes':{'data-suggestion':_0x1abe8b,'data-author-id':_0x404e88}};}});const _0x74e041=({showActiveMarkers:_0x5e3091=!0x0,isAttributeSuggestion:_0xd69188=!0x1}={})=>(_0x42a40f,_0x5ab237,_0x4cb9e2)=>{if(!_0x5ab237['item'])return;const {id:_0x3556f5,authorId:_0x571ce5}=this['_splitMarkerName'](_0x5ab237['markerName']);if(_0xd69188){const _0x3ead86=this['_suggestions']['get'](_0x3556f5),_0x134725=this['_getAttributeKey'](_0x3ead86);if(!this['_isBlockAttribute'](_0x134725))return;}if(_0x5ab237['item']['is']('selection'))return void _0x4cb9e2['consumable']['consume'](_0x5ab237['item'],_0x42a40f['name']);const _0x548eac=_0x4cb9e2['mapper']['toViewElement'](_0x5ab237['item']);if(_0x5ab237['item']['is']('element')&&_0x3be137['model']['schema']['isBlock'](_0x5ab237['item'])&&!_0x548eac['getCustomProperty']('addHighlight')){_0x4cb9e2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x548eac),_0x4cb9e2['writer']['setAttribute']('data-suggestion',_0x3556f5,_0x548eac),_0x4cb9e2['writer']['setAttribute']('data-author-id',_0x571ce5,_0x548eac),_0x4cb9e2['mapper']['bindElementToMarker'](_0x548eac,_0x5ab237['markerName']),_0x5e3091&&(this['activeMarkers']['includes'](_0x5ab237['markerName'])?_0x4cb9e2['writer']['addClass']('ck-suggestion-marker--active',_0x548eac):_0x4cb9e2['writer']['removeClass']('ck-suggestion-marker--active',_0x548eac));for(const _0x2eec0c of _0x3be137['model']['createRangeIn'](_0x5ab237['item'])['getItems']())_0x4cb9e2['consumable']['consume'](_0x2eec0c,_0x42a40f['name']);_0x4cb9e2['consumable']['consume'](_0x5ab237['item'],_0x42a40f['name']);}};_0x3be137['conversion']['for']('dataDowncast')['add'](_0x2a1c47=>{_0x2a1c47['on']('addMarker:suggestion:formatBlock',(_0x24c847,_0x5ae14b,_0x293abf)=>{_0x293abf['options']['showSuggestionHighlights']&&_0x74e041({'showActiveMarkers':!0x1})(_0x24c847,_0x5ae14b,_0x293abf);},{'priority':'highest'});}),_0x3be137['conversion']['for']('dataDowncast')['add'](_0x1aac8e=>{_0x1aac8e['on']('addMarker:suggestion:attribute',(_0x517ecb,_0x227257,_0x1c2d7e)=>{_0x1c2d7e['options']['showSuggestionHighlights']&&_0x74e041({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x517ecb,_0x227257,_0x1c2d7e);},{'priority':'highest'});}),_0x3be137['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x646831,_0x16b366)=>{if(_0x16b366['options']['showSuggestionHighlights']){const {id:_0x1a8dfe,authorId:_0x5046e9}=this['_splitMarkerName'](_0x646831);return _0x646831['includes'](':split')||_0x646831['includes'](':merge')?{'group':'suggestion','name':_0x646831['substr'](0xb),'attributes':{'data-suggestion':_0x1a8dfe,'data-author-id':_0x5046e9}}:null;}return{'group':'suggestion','name':_0x646831['substr'](0xb)};}}),_0x3be137['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x66fe95,{writer:_0x234af4})=>{let _0x368c59='suggestion:'+_0x66fe95['getAttribute']('suggestion-type')+':'+_0x66fe95['getAttribute']('id');return _0x66fe95['getAttribute']('marker-count')&&(_0x368c59+=':'+_0x66fe95['getAttribute']('marker-count')),_0x234af4['createElement']('$marker',{'data-name':_0x368c59});}}),_0x3be137['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3be137['conversion']['for']('editingDowncast')['add'](_0x1ab952=>{_0x1ab952['on']('addMarker:suggestion:formatBlock',_0x74e041(),{'priority':'high'});}),_0x3be137['conversion']['for']('editingDowncast')['add'](_0x306bd2=>{_0x306bd2['on']('addMarker:suggestion:attribute',_0x74e041({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3be137['conversion']['for']('editingDowncast')['add'](_0x21101f=>{_0x21101f['on']('removeMarker:suggestion:formatBlock',(_0x99e4c6,_0x55ac13,_0x15f706)=>{const _0x3ae3e7=_0x15f706['mapper']['markerNameToElements'](_0x55ac13['markerName']);if(_0x3ae3e7){for(const _0x2c9328 of _0x3ae3e7)_0x2c9328['getCustomProperty']('addHighlight')||(_0x15f706['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c9328),_0x15f706['writer']['removeAttribute']('data-suggestion',_0x2c9328),_0x15f706['writer']['removeAttribute']('data-author-id',_0x2c9328),_0x15f706['mapper']['unbindElementFromMarkerName'](_0x2c9328,_0x55ac13['markerName']));}},{'priority':'high'});}),_0x3be137['conversion']['for']('editingDowncast')['add'](_0x256f02=>{_0x256f02['on']('removeMarker:suggestion:attribute',(_0x3a7af9,_0x59c5a3,_0x223dd9)=>{const _0x4d83cd=_0x223dd9['mapper']['markerNameToElements'](_0x59c5a3['markerName']);if(!_0x4d83cd)return;const {id:_0x187a19}=this['_splitMarkerName'](_0x59c5a3['markerName']),_0x36dca4=this['_suggestions']['get'](_0x187a19),_0x2e3d23=this['_getAttributeKey'](_0x36dca4);if(this['_isBlockAttribute'](_0x2e3d23)){for(const _0x47225f of _0x4d83cd)_0x47225f['getCustomProperty']('addHighlight')||(_0x223dd9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x47225f),_0x223dd9['writer']['removeAttribute']('data-suggestion',_0x47225f),_0x223dd9['writer']['removeAttribute']('data-author-id',_0x47225f),_0x223dd9['mapper']['unbindElementFromMarkerName'](_0x47225f,_0x59c5a3['markerName']));}},{'priority':'high'});}),_0x3be137['model']['document']['registerPostFixer'](_0x8f6d2c=>{let _0x42733e=!0x1;const _0x86a7ec=Array['from'](_0x3be137['model']['document']['differ']['getChangedMarkers']()),_0x4161dc=new Set();for(const {name:_0x442c01,data:_0x79f76e}of _0x86a7ec){const {group:_0x20a1c1,type:_0xd47832,subType:_0x352dd6,id:_0xe44c80}=this['_splitMarkerName'](_0x442c01);if('suggestion'!==_0x20a1c1)continue;const _0x1b6b92=_0x352dd6?'suggestion:'+_0xd47832+':'+_0x352dd6+':'+_0xe44c80:'suggestion:'+_0xd47832+':'+_0xe44c80,_0x453244=_0x3be137['model']['markers']['getMarkersGroup'](_0x1b6b92),_0x273cc2=_0x3be137['model']['markers']['get'](_0x442c01),_0x3367f7=this['_suggestions']['get'](_0xe44c80);if(null!=_0x79f76e['newRange']){'formatInline'==_0xd47832&&(_0x42733e=_0x42733e||Gt(_0x79f76e['newRange'],_0x442c01,_0x8f6d2c,_0x3be137['model']['schema']));const _0x3f359f='attribute'==_0xd47832&&this['_isBlockAttribute'](_0x352dd6['split']('|')[0x0]),_0x9a6181='attribute'==_0xd47832&&this['_isInlineAttribute'](_0x352dd6['split']('|')[0x0]);if(_0x79f76e['newRange']['isCollapsed']||'$graveyard'==_0x79f76e['newRange']['root']['rootName']||'formatBlock'==_0xd47832&&!Jt(_0x79f76e['newRange'])||_0x3f359f&&!Jt(_0x79f76e['newRange'])||_0x9a6181&&Kt(_0x79f76e['newRange'])||'deletion'==_0xd47832&&Kt(_0x79f76e['newRange'])||_0x273cc2&&Ht(_0x273cc2,_0x453244))_0x8f6d2c['removeMarker'](_0x442c01),_0x42733e=!0x0;else{if(!_0x3367f7||!_0x3367f7['isInContent'])continue;if(_0x79f76e['newRange']&&_0x79f76e['oldRange']&&_0x79f76e['newRange']['isEqual'](_0x79f76e['oldRange']))continue;_0x4161dc['add'](_0x3367f7);}}}return _0x4161dc['size']>0x0&&(_0x42733e=!!this['_joinWithAdjacentSuggestions'](_0x4161dc)||_0x42733e),_0x42733e;}),_0x3be137['model']['document']['registerPostFixer'](_0x3b793b=>{let _0x29cbcc=!0x1;for(const _0x2a9ba6 of _0x3be137['model']['document']['differ']['getChanges']())if('insert'==_0x2a9ba6['type'])for(const _0x4aff40 of this['_suggestions']['values']()){if(_0x4aff40['isMultiRange']||!_0x4aff40['isInContent'])continue;const _0x10f28f='formatBlock'==_0x4aff40['type'],_0x358c00=this['_getAttributeKey'](_0x4aff40),_0x32ad69=_0x358c00&&this['_isBlockAttribute'](_0x358c00);if(!_0x10f28f&&!_0x32ad69)continue;const _0x3b7b0a=_0x4aff40['getFirstRange']();if(_0x3b7b0a['start']['parent']!=_0x3b7b0a['end']['parent']&&!_0x3b7b0a['end']['isAtEnd']){const _0x391e99=_0x3be137['model']['createPositionAt'](_0x3b7b0a['start']['nodeAfter'],'end'),_0x362f2b=_0x3be137['model']['createRange'](_0x3b7b0a['start'],_0x391e99);_0x3b793b['updateMarker'](_0x4aff40['getFirstMarker'](),{'range':_0x362f2b}),_0x29cbcc=!0x0;}}return _0x29cbcc;}),_0x3be137['model']['document']['registerPostFixer'](_0x3af17d=>this['_processAttributeChanges'](_0x3af17d)),_0x3be137['model']['document']['registerPostFixer'](_0x1f50ff=>!_0x1f50ff['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1f50ff)),_0x3be137['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3be137['model']['document']['on']('change:data',(_0x4d96b3,_0x5f25e4)=>{if(!_0x5f25e4['isLocal']||_0x5f25e4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x19e049=_0x3be137['model']['document']['differ']['getChanges']();if(0x0==_0x19e049['length'])return;const _0x31fb78=[],_0x55f1e1=_0x19e049['filter'](_0x1237a4=>'attribute'==_0x1237a4['type']),_0x7c1179=_0x19e049['filter'](_0x543454=>'insert'==_0x543454['type']&&'$text'!=_0x543454['name']);for(const _0x3e4a5b of _0x55f1e1)this['_isRegisteredAttribute'](_0x3e4a5b['attributeKey'])&&_0x31fb78['push']({'key':_0x3e4a5b['attributeKey'],'newValue':_0x3e4a5b['attributeNewValue'],'oldValue':_0x3e4a5b['attributeOldValue'],'range':qt(_0x3e4a5b['range'],_0x3be137['model'])});for(const _0x335f27 of _0x7c1179){if('rename'!=_0x335f27['action']&&'refresh'!=_0x335f27['action'])continue;const _0x13645c=zt(_0x335f27['position']['nodeAfter'],_0x3be137['model']),_0x156a3f=_0x335f27['before'];'rename'==_0x335f27['action']&&_0x31fb78['push']({'key':m,'newValue':_0x335f27['name'],'oldValue':_0x156a3f['name'],'range':_0x13645c});for(const [_0x475cc0,_0x163739]of _0x156a3f['attributes']){if(!this['_isRegisteredAttribute'](_0x475cc0))continue;const _0x2f0b7e=_0x335f27['attributes']['get'](_0x475cc0);_0x163739!==_0x2f0b7e&&_0x31fb78['push']({'key':_0x475cc0,'newValue':_0x2f0b7e,'oldValue':_0x163739,'range':_0x13645c});}for(const [_0x53aa15,_0x54fef7]of _0x335f27['attributes'])this['_isRegisteredAttribute'](_0x53aa15)&&(_0x156a3f['attributes']['has'](_0x53aa15)||_0x31fb78['push']({'key':_0x53aa15,'newValue':_0x54fef7,'oldValue':null,'range':_0x13645c}));}0x0!=_0x31fb78['length']&&_0x3be137['model']['enqueueChange'](_0x5f25e4,_0x4518ed=>{const _0x11167d=_0x51161f();for(const {range:_0x105cb2,key:_0x3bb5bc,oldValue:_0x295c2e,newValue:_0x36fe8e}of _0x31fb78)this['markAttributeChange'](_0x105cb2,_0x3bb5bc,_0x295c2e,_0x36fe8e,{'groupId':_0x11167d});this['_reduceExistingSuggestions'](_0x4518ed,_0x31fb78);});},{'priority':'lowest'}),_0x3be137['model']['markers']['on']('update:suggestion',(_0x2e7ded,_0x2dbe30,_0x5f19cb)=>{if(null==_0x5f19cb){const {id:_0x41854b}=this['_splitMarkerName'](_0x2dbe30['name']),_0x3043e9=this['_suggestions']['get'](_0x41854b);_0x3043e9&&_0x3043e9['addMarkerName'](_0x2dbe30['name']);}}),_0x3be137['model']['document']['on']('change:data',()=>{const _0x3a10f0=Array['from'](_0x3be137['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4736b4=>'suggestion'===this['_splitMarkerName'](_0x4736b4['name'])['group']);if(0x0===_0x3a10f0['length'])return;_0x3a10f0['sort']((_0x7dfb02,_0x43938e)=>{const _0x39cc57=_0x7dfb02['data']['oldRange'],_0x2a2134=_0x43938e['data']['oldRange'];return null===_0x39cc57&&null===_0x2a2134?0x0:null===_0x39cc57&&null!==_0x2a2134?-0x1:null!==_0x39cc57&&null===_0x2a2134?0x1:_0x39cc57['start']['isBefore'](_0x2a2134['start'])?-0x1:0x1;});const _0x359174=new Set(),_0xa1fc2d=new Set();for(const {name:_0x4bf953,data:_0x179cc3}of _0x3a10f0){const {id:_0xeb810d}=this['_splitMarkerName'](_0x4bf953);if(null===_0x179cc3['oldRange']){const _0x594d33=this['_handleNewSuggestionMarker'](_0x4bf953);_0xa1fc2d['add'](_0x594d33);}else{const _0x6923f5=this['_suggestions']['get'](_0xeb810d);null!==_0x179cc3['newRange']||_0x6923f5['isInContent']?(_0x359174['add'](_0x6923f5['head']),_0xa1fc2d['add'](_0x6923f5)):this['_removeSuggestion'](_0x6923f5);}}_0xa1fc2d['size']>0x0&&this['_refreshSuggestionsChain'](_0xa1fc2d);for(const _0x1a2c64 of _0x359174)this['fire']('suggestionChanged',_0x1a2c64);}),_0x3be137['model']['on']('applyOperation',(_0x5b9133,_0x285d46)=>{const _0x4043ce=_0x285d46[0x0];if(!this['_suggestions']['size'])return;if(!_0x4043ce['isDocumentOperation'])return;if(_0x4043ce['batch']['isUndo']||!_0x4043ce['batch']['isLocal'])return;let _0x17150b,_0x5ba15a;switch(_0x4043ce['type']){case'insert':_0x17150b=_0x3be137['model']['createPositionAt'](_0x4043ce['position']),_0x5ba15a=_0x17150b['getShiftedBy'](_0x4043ce['howMany']);break;case'split':_0x17150b=_0x3be137['model']['createPositionAt'](_0x4043ce['splitPosition']),_0x5ba15a=_0x3be137['model']['createPositionAt'](_0x4043ce['moveTargetPosition']);break;case'move':_0x17150b=_0x3be137['model']['createPositionAt'](_0x4043ce['targetPosition']),_0x5ba15a=_0x17150b['getShiftedBy'](_0x4043ce['howMany']);break;default:return;}const _0xa8252f=_0x3be137['model']['createRange'](_0x17150b,_0x5ba15a);_0x3be137['model']['change'](()=>{for(const {suggestion:_0x3e000f,meta:_0x291b01}of this['_findSuggestions'](_0xa8252f)){if(_0x3e000f['isMultiRange'])continue;if('formatInline'==_0x3e000f['type'])continue;const _0x182c7b=this['_getAttributeKey'](_0x3e000f);if(_0x182c7b&&this['_isBlockAttribute'](_0x182c7b)&&'split'!=_0x4043ce['type'])continue;const _0x4a13bf=_0x3e000f['data']&&_0x3e000f['data']['multipleBlocks'];('formatBlock'!=_0x3e000f['type']||'split'==_0x4043ce['type']&&!_0x4a13bf)&&(_0x291b01['containsRangeInObject']||'insertion'==_0x3e000f['type']&&_0x291b01['isOwn']||_0x3e000f['getFirstRange']()['containsRange'](_0xa8252f)&&this['_breakSuggestionMarker'](_0x3e000f,_0x17150b,_0x5ba15a));}});},{'priority':'lowest'}),_0x3be137['model']['on']('deleteContent',(_0x2d9d2a,_0x28935a)=>{const _0xa372cb=_0x28935a[0x0],_0x1c42ff=_0x28935a[0x1];if(_0x1c42ff&&_0x1c42ff['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xa372cb['isCollapsed'])return;const _0x381e01=_0x3be137['model']['schema'],{start:_0x3efc29,end:_0x189d7b}=_0xa372cb['getFirstRange'](),_0x104aa2=_0x3efc29['nodeAfter']&&_0x381e01['isLimit'](_0x3efc29['nodeAfter'])?null:_0x381e01['getNearestSelectionRange'](_0x3efc29,'forward'),_0x505b29=_0x189d7b['nodeBefore']&&_0x381e01['isLimit'](_0x189d7b['nodeBefore'])?null:_0x381e01['getNearestSelectionRange'](_0x189d7b,'backward'),_0x46cae2=_0x3be137['model']['createRange'](_0x104aa2?_0x104aa2['start']:_0x3efc29,_0x505b29?_0x505b29['end']:_0x189d7b);_0x3be137['model']['change'](_0x45fc01=>{this['markDeletion'](_0x46cae2);const _0x26eca9=_0x3be137['model']['schema']['getNearestSelectionRange'](_0x46cae2['start']);_0xa372cb['is']('documentSelection')?_0x45fc01['setSelection'](_0x26eca9):_0xa372cb['setTo'](_0x26eca9);}),_0x2d9d2a['stop']();},{'priority':_0x16998a['normal']+0xa}),_0x3be137['model']['on']('insertContent',(_0x3ad1fc,_0x131b33)=>{const _0x11a8db=_0x131b33[_0x131b33['length']-0x1];_0x11a8db&&_0x11a8db['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3be137['model']['change'](()=>{let _0x31f1f6=_0x3be137['model']['insertContent'](_0x131b33[0x0],_0x131b33[0x1],_0x131b33[0x2],{'forceDefaultExecution':!0x0});if(!_0x31f1f6)return;_0x3ad1fc['return']=_0x31f1f6['clone']();const _0x3ac3f1=_0x31f1f6['end']['nodeBefore'],_0x471844=_0x3be137['model']['schema'];_0x3ac3f1&&_0x471844['isBlock'](_0x3ac3f1)&&!_0x471844['isObject'](_0x3ac3f1)&&(_0x31f1f6=_0x3be137['model']['createRange'](_0x31f1f6['start'],_0x3be137['model']['createPositionAt'](_0x3ac3f1,'end'))),this['markInsertion'](_0x31f1f6);}),_0x3ad1fc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x262ab6=new D(_0x3be137,this['_suggestions']);_0x3be137['commands']['add']('acceptSuggestion',_0x262ab6),this['enableCommand']('acceptSuggestion');const _0x1ae1d6=new $(_0x3be137,this['_suggestions']);_0x3be137['commands']['add']('discardSuggestion',_0x1ae1d6),this['enableCommand']('discardSuggestion'),_0x3be137['commands']['add']('acceptAllSuggestions',new M(_0x3be137,_0x262ab6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3be137['commands']['add']('discardAllSuggestions',new M(_0x3be137,_0x1ae1d6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3be137['commands']['add']('acceptSelectedSuggestions',new B(_0x3be137,_0x262ab6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3be137['commands']['add']('discardSelectedSuggestions',new B(_0x3be137,_0x1ae1d6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x49c530=_0x3be137['plugins']['get']('CommentsRepository');this['listenTo'](_0x49c530,'addComment',(_0x57ad79,{threadId:_0x518cef})=>{const _0x3b3b1c=this['_suggestions']['get'](_0x518cef);_0x3b3b1c&&_0x3b3b1c['commentThread']&&0x1===_0x3b3b1c['commentThread']['length']&&this['_updateSuggestionData'](_0x518cef,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x49c530,'removeComment',(_0x370924,{threadId:_0x4c662c})=>{const _0x2afa44=this['_suggestions']['get'](_0x4c662c);_0x2afa44&&_0x2afa44['commentThread']&&!_0x2afa44['commentThread']['length']&&this['_updateSuggestionData'](_0x4c662c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x52afb4){const _0xab90db=_0x58be91([0x4b,0x50,0x7a,0x44,0x35,0x57,0x34,0x71,0x39,0x77,0x4f,0x56,0x4c,0x38,0x41,0x43,0x48,0x6c,0x6e,0x47,0x6a,0x58,0x32,0x65,0x49,0x6d,0x45,0x76,0x30,0x59,0x52,0x53,0x4a,0x64,0x5a,0x74,0x66,0x78,0x62,0x72,0x67,0x33,0x31,0x54,0x75,0x73,0x70,0x6f,0x36,0x55,0x63,0x51,0x37,0x6b,0x69,0x61,0x46,0x4d,0x79,0x42,0x4e,0x68]),_0x605e34=0x5a7d5547,_0x2499e8=0x5a7a3ac7^_0x605e34,_0x372b95=window[_0x58be91([0x44,0x61,0x74,0x65])][_0x58be91([0x6e,0x6f,0x77])](),_0x3faef0=_0x52afb4[_0x58be91([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1230b9=new window[(_0x58be91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x242300=>{_0x3faef0[_0x58be91([0x6f,0x6e,0x63,0x65])](_0x58be91([0x72,0x65,0x61,0x64,0x79]),_0x242300);}),_0x292669={[_0x58be91([0x6b,0x74,0x79])]:_0x58be91([0x45,0x43]),[_0x58be91([0x75,0x73,0x65])]:_0x58be91([0x73,0x69,0x67]),[_0x58be91([0x63,0x72,0x76])]:_0x58be91([0x50,0x2d,0x32,0x35,0x36]),[_0x58be91([0x78])]:_0x58be91([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]),[_0x58be91([0x79])]:_0x58be91([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]),[_0x58be91([0x61,0x6c,0x67])]:_0x58be91([0x45,0x53,0x32,0x35,0x36])},_0x4e6284=_0x3faef0[_0x58be91([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58be91([0x67,0x65,0x74])](_0x58be91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x261384(){let _0x16650c,_0x305d20=null,_0x365184=null;try{if(_0x4e6284==_0x58be91([0x47,0x50,0x4c]))return _0x58be91([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16650c=_0x2aea57(),!_0x16650c)return _0x58be91([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16650c[_0x58be91([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x365184=_0x8f83b7(_0x16650c[_0x58be91([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16650c[_0x58be91([0x6a,0x74,0x69])])),await _0x3e525e()?_0x19f747()?_0x2a6a2b()?_0x58be91([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b5255()?(_0x16650c[_0x58be91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58be91([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x305d20=_0x485eee(_0x58be91([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16650c[_0x58be91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58be91([0x74,0x72,0x69,0x61,0x6c])&&(_0x305d20=_0x485eee(_0x58be91([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53242b()):_0x58be91([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58be91([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58be91([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58be91([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2a6a2b(){const _0x27158b=[_0x58be91([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58be91([0x74,0x72,0x69,0x61,0x6c])][_0x58be91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16650c[_0x58be91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x372b95/0x3e8:0xe10*_0x2499e8;return _0x16650c[_0x58be91([0x65,0x78,0x70])]<_0x27158b;}function _0x19f747(){const _0x3b8be0=_0x16650c[_0x58be91([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3b8be0)return!0x1;if(_0x3b8be0[_0x58be91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58be91([0x2a])))return!0x0;if(_0x3b8be0[_0x58be91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58be91([0x54,0x43])))return!0x0;if(_0x3b8be0[_0x58be91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58be91([0x52,0x54,0x43]))){if(_0x2d575a())return!0x0;if(_0x58874f()||_0x246533())return!0x0;}return!0x1;}function _0x1b5255(){const _0x1d84b3=_0x16650c[_0x58be91([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d84b3||0x0==_0x1d84b3[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d7599}=new URL(window[_0x58be91([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d84b3[_0x58be91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d7599))return!0x0;const _0x4a70fb=_0x1d7599[_0x58be91([0x73,0x70,0x6c,0x69,0x74])](_0x58be91([0x2e]));return _0x1d84b3[_0x58be91([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x229c6d=>_0x229c6d[_0x58be91([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58be91([0x2a])))[_0x58be91([0x6d,0x61,0x70])](_0x5322e4=>_0x5322e4[_0x58be91([0x73,0x70,0x6c,0x69,0x74])](_0x58be91([0x2e])))[_0x58be91([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cb555=>_0x3cb555[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a70fb[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58be91([0x6d,0x61,0x70])](_0x30358c=>Array(_0x4a70fb[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30358c[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58be91([0x66,0x69,0x6c,0x6c])](_0x30358c[0x0]===_0x58be91([0x2a])?_0x58be91([0x2a]):'')[_0x58be91([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30358c))[_0x58be91([0x73,0x6f,0x6d,0x65])](_0x17560a=>_0x4a70fb[_0x58be91([0x65,0x76,0x65,0x72,0x79])]((_0x2f293e,_0x1b47b7)=>_0x17560a[_0x1b47b7]===_0x2f293e||_0x17560a[_0x1b47b7]===_0x58be91([0x2a])));}function _0x53242b(){return _0x305d20&&_0x365184?new window[(_0x58be91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51b037,_0x4a7a6d)=>{_0x305d20[_0x58be91([0x74,0x68,0x65,0x6e])](_0x51b037,_0x4a7a6d),_0x365184[_0x58be91([0x74,0x68,0x65,0x6e])](_0xb0ca45=>{_0xb0ca45!=_0x58be91([0x56,0x61,0x6c,0x69,0x64])&&_0x51b037(_0xb0ca45);},_0x4a7a6d);}):_0x305d20||_0x365184||_0x58be91([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8f83b7(_0x339576,_0x3ea3f2){return new window[(_0x58be91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1c5a=>{if(_0x42d730())return _0x2a1c5a(_0x58be91([0x56,0x61,0x6c,0x69,0x64]));_0x4f3ff1(),_0x3faef0[_0x58be91([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58be91([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33e3a6=!0x1;const _0xf33ac=_0x51161f();function _0x4d309b(_0x371bc2){return!!_0x371bc2&&(typeof _0x371bc2===_0x58be91([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x371bc2===_0x58be91([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x371bc2[_0x58be91([0x74,0x68,0x65,0x6e])]===_0x58be91([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x371bc2[_0x58be91([0x63,0x61,0x74,0x63,0x68])]===_0x58be91([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x23e6e6(_0x30d8d2){_0x257d22(_0x30d8d2)[_0x58be91([0x74,0x68,0x65,0x6e])](_0x1c9efa=>{if(!_0x1c9efa||_0x1c9efa[_0x58be91([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58be91([0x6f,0x6b]))return _0x58be91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54aa8c(_0xf85ba0(_0xf33ac+_0x3ea3f2))!=_0x1c9efa[_0x58be91([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58be91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58be91([0x56,0x61,0x6c,0x69,0x64]);})[_0x58be91([0x74,0x68,0x65,0x6e])](_0x3f766f=>(_0x566ea1(),_0x3f766f),()=>{const _0x1bc612=_0x166284();return null==_0x1bc612?(_0x566ea1(),_0x58be91([0x56,0x61,0x6c,0x69,0x64])):_0x58be91(_0x372b95-_0x1bc612>(0x7e71d147^_0x605e34)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58be91([0x74,0x68,0x65,0x6e])](_0x2a1c5a)[_0x58be91([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a1c5a(_0x58be91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b82c8=0x5a4bbbc7^_0x605e34;function _0x566ea1(){const _0x548ce2=_0x58be91([0x6c,0x6c,0x63,0x74,0x2d])+_0x54aa8c(_0xf85ba0(_0x339576)),_0x35a02f=_0x390283(_0x54aa8c(window[_0x58be91([0x4d,0x61,0x74,0x68])][_0x58be91([0x63,0x65,0x69,0x6c])](_0x372b95/_0x2b82c8)));window[_0x58be91([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58be91([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x548ce2,_0x35a02f);}function _0x166284(){const _0x48f393=_0x58be91([0x6c,0x6c,0x63,0x74,0x2d])+_0x54aa8c(_0xf85ba0(_0x339576)),_0xa901b4=window[_0x58be91([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58be91([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48f393);return _0xa901b4?window[_0x58be91([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x390283(_0xa901b4),0x10)*_0x2b82c8:null;}function _0x257d22(_0x1bd502){return new window[(_0x58be91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5abc24,_0x2e52d8)=>{_0x1bd502[_0x58be91([0x74,0x68,0x65,0x6e])](_0x5abc24,_0x2e52d8),window[_0x58be91([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2e52d8,0x5a7c8187^_0x605e34);});}}_0x3faef0[_0x58be91([0x6f,0x6e])](_0x58be91([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x492271,_0x41b8f1)=>{if(_0x41b8f1[0x0]!=_0x339576)return _0x2a1c5a(_0x58be91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x41b8f1[0x1]={..._0x41b8f1[0x1],[_0x58be91([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf33ac};},{[_0x58be91([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58be91([0x68,0x69,0x67,0x68])}),_0x3faef0[_0x58be91([0x6f,0x6e])](_0x58be91([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x111223=>{_0x4d309b(_0x111223[_0x58be91([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33e3a6=!0x0,_0x23e6e6(_0x111223[_0x58be91([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58be91([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58be91([0x6c,0x6f,0x77])}),_0x1230b9[_0x58be91([0x74,0x68,0x65,0x6e])](()=>{_0x33e3a6||_0x2a1c5a(_0x58be91([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x42d730(){return _0x3faef0[_0x58be91([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58be91([0x76,0x69,0x65,0x77])][_0x58be91([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58be91([0x61,0x75,0x74,0x6f]);}function _0x4f3ff1(){_0x3faef0[_0x58be91([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58be91([0x76,0x69,0x65,0x77])][_0x58be91([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58be91([0x61,0x75,0x74,0x6f]);}}function _0x485eee(_0x175eb6){const _0x10738b=[new window[(_0x58be91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x501498=>setTimeout(_0x501498,0x5a746b8b^_0x605e34)),_0x1230b9[_0x58be91([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58be91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1452=>{let _0x3b0895=0x0;_0x3faef0[_0x58be91([0x6d,0x6f,0x64,0x65,0x6c])][_0x58be91([0x6f,0x6e])](_0x58be91([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x519257,_0x21b312)=>{_0x21b312[0x0][_0x58be91([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b0895++,_0x3b0895==(0x5a7d54bf^_0x605e34)&&(_0x1d1452(),_0x519257[_0x58be91([0x6f,0x66,0x66])]());});}))];return window[_0x58be91([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58be91([0x72,0x61,0x63,0x65])](_0x10738b)[_0x58be91([0x74,0x68,0x65,0x6e])](()=>_0x175eb6);}async function _0x571635(){await _0x1230b9,_0x3faef0[_0x58be91([0x6d,0x6f,0x64,0x65,0x6c])][_0x58be91([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf4b7be,_0x3faef0[_0x58be91([0x6d,0x6f,0x64,0x65,0x6c])][_0x58be91([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf4b7be,_0x3faef0[_0x58be91([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58be91([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d575a(){return _0x11cbd4(_0x58be91([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x39bae3(_0x58be91([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x58be91([0x73,0x74,0x61,0x74,0x65])]==_0x58be91([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x58874f(){return _0x11cbd4(_0x58be91([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 _0x246533(){return _0x11cbd4(_0x58be91([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4ec5f5(_0x3a5a05){const _0x3f1b56=_0x178f23();_0x3faef0[_0x3f1b56]=_0x58be91([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a5a05,_0x3a5a05!=_0x58be91([0x56,0x61,0x6c,0x69,0x64])&&_0x571635();}function _0x178f23(){const _0x3bd7e6=window[_0x58be91([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58be91([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58be91([0x6e,0x6f,0x77])]())[_0x58be91([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58be91([0x2e]),'');let _0x42c933=_0x58be91([0x4b]);for(let _0x19d016=0x0;_0x19d016<_0x3bd7e6[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19d016+=0x2){let _0x1674b5=window[_0x58be91([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bd7e6[_0x58be91([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19d016,_0x19d016+0x2));_0x1674b5>=_0xab90db[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1674b5-=_0xab90db[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42c933+=_0xab90db[_0x1674b5];}return _0x42c933;}function _0x2aea57(){const _0x1e9989=_0x4e6284[_0x58be91([0x73,0x70,0x6c,0x69,0x74])](_0x58be91([0x2e]));if(0x3!=_0x1e9989[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d588c(_0x1e9989[0x1]);function _0x2d588c(_0x300d8f){const _0x492ab9=_0x498df0(_0x300d8f);return _0x492ab9&&_0x5c6a64()?_0x492ab9:null;function _0x5c6a64(){const _0x2106af=_0x492ab9[_0x58be91([0x6a,0x74,0x69])],_0x1e6218=window[_0x58be91([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2106af[_0x58be91([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2106af[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf2d191={..._0x492ab9,[_0x58be91([0x6a,0x74,0x69])]:_0x2106af[_0x58be91([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2106af[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf2d191[_0x58be91([0x76,0x63])],_0xf85ba0(_0xf2d191)==_0x1e6218;}}}async function _0x3e525e(){let _0xaf0090=!0x0;try{const _0x1b3cd6=_0x4e6284[_0x58be91([0x73,0x70,0x6c,0x69,0x74])](_0x58be91([0x2e])),[_0x33af4f,_0x3e6fc0,_0x23454f]=_0x1b3cd6;return _0x353aa1(_0x33af4f),await _0x1e10f1(_0x33af4f,_0x3e6fc0,_0x23454f),_0xaf0090;}catch{return!0x1;}function _0x353aa1(_0x38fd0d){const _0x484ddd=_0x498df0(_0x38fd0d);_0x484ddd&&_0x484ddd[_0x58be91([0x61,0x6c,0x67])]==_0x58be91([0x45,0x53,0x32,0x35,0x36])||(_0xaf0090=!0x1);}async function _0x1e10f1(_0x36dbee,_0x396f29,_0x149631){const _0x1b054b=window[_0x58be91([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58be91([0x66,0x72,0x6f,0x6d])](_0x429948(_0x149631),_0x41aa13=>_0x41aa13[_0x58be91([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x130c96=new window[(_0x58be91([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58be91([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36dbee+_0x58be91([0x2e])+_0x396f29),_0x3b5711=window[_0x58be91([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58be91([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b5711)return;const _0x1082bf=await _0x3b5711[_0x58be91([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58be91([0x6a,0x77,0x6b]),_0x292669,{[_0x58be91([0x6e,0x61,0x6d,0x65])]:_0x58be91([0x45,0x43,0x44,0x53,0x41]),[_0x58be91([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58be91([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58be91([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b5711[_0x58be91([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58be91([0x6e,0x61,0x6d,0x65])]:_0x58be91([0x45,0x43,0x44,0x53,0x41]),[_0x58be91([0x68,0x61,0x73,0x68])]:{[_0x58be91([0x6e,0x61,0x6d,0x65])]:_0x58be91([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1082bf,_0x1b054b,_0x130c96)||(_0xaf0090=!0x1);}}function _0x498df0(_0x12dd4e){return _0x12dd4e[_0x58be91([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58be91([0x65,0x79]))?JSON[_0x58be91([0x70,0x61,0x72,0x73,0x65])](_0x429948(_0x12dd4e)):null;}function _0x429948(_0x498a68){return window[_0x58be91([0x61,0x74,0x6f,0x62])](_0x498a68[_0x58be91([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58be91([0x2b]))[_0x58be91([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58be91([0x2f])));}function _0xf85ba0(_0x112357){let _0x686f0f=0x1505;function _0x2e11b7(_0x22b460){for(let _0x4badf1=0x0;_0x4badf1<_0x22b460[_0x58be91([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4badf1++){const _0x2eacd3=_0x22b460[_0x58be91([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4badf1);_0x686f0f=(_0x686f0f<<0x5)+_0x686f0f+_0x2eacd3,_0x686f0f&=_0x686f0f;}}function _0x5e64f5(_0x2aa733){Array[_0x58be91([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2aa733)?_0x2aa733[_0x58be91([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e64f5):_0x2aa733&&typeof _0x2aa733==_0x58be91([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58be91([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2aa733)[_0x58be91([0x73,0x6f,0x72,0x74])]()[_0x58be91([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x238864,_0x14cf91])=>{_0x2e11b7(_0x238864),_0x5e64f5(_0x14cf91);}):_0x2e11b7(window[_0x58be91([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2aa733));}return _0x5e64f5(_0x112357),_0x686f0f>>>0x0;}function _0x54aa8c(_0x4abf1c){return _0x4abf1c[_0x58be91([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58be91([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58be91([0x30]));}function _0x390283(_0x287afb){return _0x287afb[_0x58be91([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58be91([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58be91([0x6a,0x6f,0x69,0x6e])]('');}function _0x11cbd4(_0x5c72bd){return _0x3faef0[_0x58be91([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58be91([0x68,0x61,0x73])](_0x5c72bd);}function _0x39bae3(_0x3a5320){return _0x3faef0[_0x58be91([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58be91([0x67,0x65,0x74])](_0x3a5320);}function _0xf4b7be(){}function _0x58be91(_0x13cad1){return _0x13cad1['map'](_0x539c97=>String['fromCharCode'](_0x539c97))['join']('');}_0x4ec5f5(await _0x261384());}(this);}set['adapter'](_0x13585c){if(this['_adapter'])throw new _0x1d6012('track-changes-adapter-already-set',this);this['_adapter']=_0x13585c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e385d=!0x1,toJSON:_0x1e8ffd=!0x1}={}){const _0x2b2b3e=[];for(const _0x5c8309 of this['_suggestions']['values']())_0x5e385d&&!_0x5c8309['isInContent']||_0x2b2b3e['push'](_0x5c8309);return _0x1e8ffd?_0x2b2b3e['map'](_0x308250=>_0x308250['toJSON']()):_0x2b2b3e;}['getSuggestion'](_0x386e88){const _0x1b3b53=this['_suggestions']['get'](_0x386e88);if(!_0x1b3b53)throw new _0x1d6012('track-changes-suggestion-not-found',this);return _0x1b3b53;}['hasSuggestion'](_0x55785c){return this['_suggestions']['has'](_0x55785c);}['addSuggestionData'](_0x3f75aa){const {authorId:_0x1b5e4b,id:_0x36772e,originalSuggestionId:_0x54b540,attributes:_0x349d1a}=_0x3f75aa,[_0x596111,_0x365d33]=_0x3f75aa['type']['split'](':'),_0x9055ec=this['_suggestions']['get'](_0x36772e)||this['_createSuggestion'](_0x596111,_0x365d33,_0x36772e,_0x1b5e4b,_0x349d1a,_0x54b540);if(this['_addThreadToSuggestion'](_0x9055ec),this['_checkSuggestionCorrectness'](_0x9055ec,_0x596111,_0x365d33||null,_0x1b5e4b),_0x9055ec['createdAt']=_0x3f75aa['createdAt'],_0x9055ec['_isDataLoaded']=!0x0,_0x349d1a&&_0x349d1a['@external']){const _0x410ad5=_0x349d1a['@external'],_0x17e3cc=this['_getExternalAuthor'](_0x410ad5['authorName']);_0x9055ec['authoredAt']=_0x410ad5['createdAt'],_0x9055ec['author']=_0x17e3cc,_0x9055ec['isExternal']=!0x0;}else _0x9055ec['authoredAt']=_0x3f75aa['createdAt'];switch(_0x3f75aa['data']&&(_0x9055ec['data']=_0x3f75aa['data']),_0x3f75aa['attributes']&&(_0x9055ec['attributes']=_0x3f75aa['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x9055ec['_saved']=!0x0),this['_suggestionState']['get'](_0x9055ec)){case'notReady':this['_suggestionState']['set'](_0x9055ec,'dataReady');break;case'markerReady':_0x9055ec['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x9055ec])),this['_refreshSuggestionsChain'](new Set([_0x9055ec])),this['_suggestionState']['set'](_0x9055ec,'ready'),this['fire']('suggestionLoaded',_0x9055ec)):this['_suggestionState']['set'](_0x9055ec,'removed');}return _0x9055ec;}['acceptSuggestion'](_0x34e368){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xe39cfe of _0x34e368['getAllAdjacentSuggestions']())_0xe39cfe['accept']();});});}['discardSuggestion'](_0x38f0c8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b75a7 of _0x38f0c8['getAllAdjacentSuggestions']())_0x3b75a7['discard']();});});}['enableCommand'](_0x2544be,_0x3c54e){const _0x36fa1e=this['editor']['commands']['get'](_0x2544be);if(!_0x36fa1e)throw new _0x1d6012('track-changes-command-not-found',this,{'commandName':_0x2544be});if(this['_enabledCommands']['has'](_0x36fa1e))throw new _0x1d6012('track-changes-enable-command-twice',this,{'commandName':_0x2544be});this['_enabledCommands']['add'](_0x36fa1e),_0x3c54e&&_0x36fa1e['on']('execute',(_0x3ff4ff,_0x30837e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30837e['length']>0x0&&_0x30837e[_0x30837e['length']-0x1]&&_0x30837e[_0x30837e['length']-0x1]['forceDefaultExecution']?_0x30837e['pop']():(_0x3ff4ff['return']=_0x3c54e((..._0x21973f)=>_0x36fa1e['execute'](..._0x21973f,{'forceDefaultExecution':!0x0}),..._0x30837e),_0x3ff4ff['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x481944){let _0x3cec7f,_0x32bf57;const _0x19f095=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3cec7f=_0x481944();}catch(_0x103d75){_0x32bf57=_0x103d75;}return _0x19f095||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x32bf57&&_0x1d6012['rethrowUnexpectedError'](_0x32bf57,this),_0x3cec7f;}['markInsertion'](_0x1e273c,_0x4d6fa4=null,_0x70f7d3={}){if(_0x1e273c['isCollapsed'])return null;const _0x41ddb8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x70f7d3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ebab5,meta:_0xf3f0cc}of this['_findSuggestions'](_0x1e273c,'insertion'))if(_0xf3f0cc['isOwn']){if(!_0xf3f0cc['isNextTo']){if(_0xf3f0cc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2ebab5,_0x70f7d3))continue;return _0x2ebab5;}if(Xt(_0x2ebab5,_0x70f7d3))return _0x2ebab5;this['_breakSuggestionMarker'](_0x2ebab5,_0x1e273c['start'],_0x1e273c['end']);break;}if(_0x4d6fa4==_0x2ebab5['subType']&&Xt(_0x2ebab5,_0x70f7d3)){const _0x49d5e6=_0x2ebab5['getFirstRange']();return _0x49d5e6['start']['isEqual'](_0x1e273c['end'])?this['_setSuggestionRange'](_0x2ebab5,this['_model']['createRange'](_0x1e273c['start'],_0x49d5e6['end'])):this['_setSuggestionRange'](_0x2ebab5,this['_model']['createRange'](_0x49d5e6['start'],_0x1e273c['end'])),_0x2ebab5;}}const _0x5c10ac=_0x51161f(),_0x236f8d=_0x41ddb8['id'],_0x48ec0b=_0x4d6fa4?'insertion:'+_0x4d6fa4:'insertion',_0x53d747=this['_setSuggestionData']({'id':_0x5c10ac,'type':_0x48ec0b,'createdAt':new Date(),'authorId':_0x236f8d,'attributes':_0x70f7d3});return this['_addSuggestionMarker'](_0x48ec0b,_0x5c10ac,_0x236f8d,_0x1e273c),_0x53d747;}['markMultiRangeInsertion'](_0x582064,_0x1d2627='multi',_0x482816={}){const _0x36e3e7=this['editor']['plugins']['get']('Users')['me'],_0x215e20=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1d2627,'join');this['_trackingSessionId']&&(_0x482816['trackingSessionId']=this['_trackingSessionId']);for(const _0x21fbd6 of this['getSuggestions']())if(_0x21fbd6['author']['id']==_0x36e3e7['id']&&'insertion'==_0x21fbd6['type']&&_0x21fbd6['subType']==_0x1d2627&&Xt(_0x21fbd6,_0x482816)&&(_0x215e20(_0x21fbd6['getRanges'](),_0x582064)||_0x215e20(_0x582064,_0x21fbd6['getRanges']()))){for(const _0x278773 of _0x582064)_0x21fbd6['addRange'](_0x278773);return _0x21fbd6;}for(const {suggestion:_0x413f1a,meta:_0x3c7df8}of this['_findSuggestions'](_0x582064,'insertion')){if(!_0x3c7df8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3c7df8['containsRangeInObject'])continue;if(!Xt(_0x413f1a,_0x482816))continue;let _0x37bf4e=!0x0;for(const _0x315743 of _0x413f1a['getRanges']())for(const _0x6f1a2d of _0x582064)if(!_0x315743['containsRange'](_0x6f1a2d)){_0x37bf4e=!0x1;break;}if(_0x37bf4e)return _0x413f1a;}const _0x135f41=_0x51161f(),_0x1de26e=_0x36e3e7['id'],_0x38d286='insertion:'+_0x1d2627,_0x43c1dc=this['_setSuggestionData']({'id':_0x135f41,'type':_0x38d286,'createdAt':new Date(),'authorId':_0x1de26e,'attributes':_0x482816});for(const _0x5a086b of _0x582064)this['_addSuggestionMarker'](_0x38d286,_0x135f41,_0x1de26e,_0x5a086b,T['getMultiRangeId']());return _0x43c1dc;}['markInlineFormat'](_0x3d7672,_0x5d4e78,_0x3eefac=null,_0x27bd88={}){if(_0x3eefac=_0x3eefac||Lt(_0x5d4e78),_0x3d7672['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x27bd88['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xcbb82f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3eefac,'accept');return this['forceDefaultExecution'](()=>_0xcbb82f([_0x3d7672],_0x5d4e78,_0x27bd88)),null;}const _0x2c2142=this['editor']['plugins']['get']('Users')['me'],_0x243e66=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x57171a,meta:_0x4497f0}of this['_findSuggestions'](_0x3d7672,'insertion'))_0x4497f0['isOwn']&&!_0x4497f0['isInsideObject']&&_0x243e66['push'](..._0x57171a['getRanges']());}const _0x5052f4=function(_0x269945,_0x3479e4){const _0x2d8f4c=[];for(const _0x4b7003 of _0x3479e4){const _0x3c22fb=_0x269945['getIntersection'](_0x4b7003);_0x3c22fb&&_0x2d8f4c['push'](_0x3c22fb);}return _0x2d8f4c;}(_0x3d7672,_0x243e66),_0x451bc0=function(_0x241524,_0x326380){const _0x2993ad=[_0x241524];for(const _0x3efe87 of _0x326380){let _0x3df1e3=0x0;for(;_0x3df1e3<_0x2993ad['length'];){const _0x1388b1=_0x2993ad[_0x3df1e3]['getDifference'](_0x3efe87);_0x2993ad['splice'](_0x3df1e3,0x1,..._0x1388b1),_0x3df1e3+=_0x1388b1['length'];}}return _0x2993ad;}(_0x3d7672,_0x243e66);_0x5052f4['length']&&this['_model']['change'](()=>{for(const _0x41256a of _0x5052f4){const _0x109292=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3eefac,'accept');this['forceDefaultExecution'](()=>_0x109292([_0x41256a],_0x5d4e78,_0x27bd88));}});for(const _0x14979c of _0x451bc0){let _0x175d85=null,_0x4d9764=_0x14979c['start'],_0x379759=_0x14979c['end'];for(const {suggestion:_0xf54480,meta:_0x34d5d4}of this['_findSuggestions'](_0x14979c,'formatInline')){if(!_0x34d5d4['isOwn'])continue;if(_0xf54480['subType']!=_0x3eefac)continue;if(!Xt(_0xf54480,_0x27bd88))continue;const _0x11864a=_0xf54480['getFirstRange']();if(_0x11864a['containsRange'](_0x14979c,!0x0))return null;_0x4d9764=_0x4d9764['isBefore'](_0x11864a['start'])?_0x4d9764:_0x11864a['start'],_0x379759=_0x379759['isAfter'](_0x11864a['end'])?_0x379759:_0x11864a['end'],_0x175d85?_0x11864a['start']['isBefore'](_0x175d85['getFirstRange']()['start'])?(_0x175d85['removeMarkers'](),_0x175d85=_0xf54480):_0xf54480['removeMarkers']():_0x175d85=_0xf54480;}const _0x440860=this['_model']['createRange'](_0x4d9764,_0x379759);if(_0x175d85)this['_setSuggestionRange'](_0x175d85,_0x440860);else{const _0x214780=_0x51161f(),_0x5f1192=_0x2c2142['id'];this['_setSuggestionData']({'id':_0x214780,'type':'formatInline:'+_0x3eefac,'data':_0x5d4e78,'createdAt':new Date(),'authorId':_0x5f1192,'attributes':_0x27bd88}),this['_addSuggestionMarker']('formatInline:'+_0x3eefac,_0x214780,_0x5f1192,_0x440860);}}return null;}['markBlockFormat'](_0x4cc087,_0x1d31d0,_0x1e82db=[],_0x5b3baf=null,_0x4d5ecd={}){_0x1d31d0['formatGroupId']||(_0x1d31d0['formatGroupId']=_0x1d31d0['commandName']),_0x1d31d0['multipleBlocks']=_0x4cc087['is']('range'),_0x5b3baf=_0x5b3baf||Lt(_0x1d31d0);const _0xc1aa8d=_0x1e82db['map'](_0x33a208=>zt(_0x33a208,this['_model'])),_0x372579=_0x4cc087['is']('range')?_0x4cc087:zt(_0x4cc087,this['_model']);if(this['_trackingSessionId']&&(_0x4d5ecd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x551c48=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b3baf,'accept');return this['forceDefaultExecution'](()=>_0x551c48([_0x372579],_0x1d31d0,_0x4d5ecd)),null;}_0xc1aa8d['push'](_0x372579);let _0x50c0a1=!0x0;for(const _0x527458 of _0xc1aa8d)if(!this['_rangeIsInLocalUserInsertion'](_0x527458)){_0x50c0a1=!0x1;break;}if(_0x50c0a1&&'always'!==this['_trackFormatChanges']){const _0x3161c5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b3baf,'accept');return this['forceDefaultExecution'](()=>_0x3161c5([_0x372579],_0x1d31d0,_0x4d5ecd)),null;}let _0xb11c1e=null,_0x3e6c95=_0x372579['start'],_0x2eb600=_0x372579['end'];for(const {suggestion:_0x36082a,meta:_0x357a6f}of this['_findSuggestions'](_0x372579,'formatBlock')){if(!_0x357a6f['isOwn'])continue;if(_0x357a6f['isNextTo']||_0x357a6f['containsRangeInObject']||_0x357a6f['isInsideObject'])continue;if(_0x36082a['data']['formatGroupId']!=_0x1d31d0['formatGroupId'])continue;if(!Xt(_0x36082a,_0x4d5ecd))continue;const _0x2837f8=_0x36082a['getFirstRange']();if(_0x36082a['subType']==_0x5b3baf){if(_0x2837f8['containsRange'](_0x372579,!0x0))return null;_0x3e6c95=_0x3e6c95['isBefore'](_0x2837f8['start'])?_0x3e6c95:_0x2837f8['start'],_0x2eb600=_0x2eb600['isAfter'](_0x2837f8['end'])?_0x2eb600:_0x2837f8['end'],_0xb11c1e?_0x2837f8['start']['isBefore'](_0xb11c1e['getFirstRange']()['start'])?(_0xb11c1e['removeMarkers'](),_0xb11c1e=_0x36082a):_0x36082a['removeMarkers']():_0xb11c1e=_0x36082a;}else{const _0x18556f=_0x372579['getIntersection'](_0x2837f8);this['_cutOutSuggestionMarker'](_0x36082a,_0x18556f);}}const _0x237a5c=this['editor']['plugins']['get']('Users')['me'],_0x33ab57=_0x51161f(),_0xd78498=_0x237a5c['id'];if(_0xb11c1e)return this['_setSuggestionRange'](_0xb11c1e,this['_model']['createRange'](_0x3e6c95,_0x2eb600)),_0xb11c1e;{const _0x4d3a38=this['_setSuggestionData']({'id':_0x33ab57,'type':'formatBlock:'+_0x5b3baf,'data':_0x1d31d0,'createdAt':new Date(),'authorId':_0xd78498,'attributes':_0x4d5ecd});return this['_addSuggestionMarker']('formatBlock:'+_0x5b3baf,_0x33ab57,_0xd78498,this['_model']['createRange'](_0x3e6c95,_0x2eb600)),_0x4d3a38;}}['markMultiRangeBlockFormat'](_0x3cc85d,_0xd3b2bb,_0xe4992=[],_0x4d6cf3=null,_0x1acc49={}){_0xd3b2bb['formatGroupId']||(_0xd3b2bb['formatGroupId']=_0xd3b2bb['commandName']);const _0x2e5fd3=_0x3cc85d[0x0];_0xd3b2bb['multipleBlocks']=_0x2e5fd3['is']('range'),_0x4d6cf3=_0x4d6cf3||Lt(_0xd3b2bb);const _0x67bb3c=_0xe4992['map'](_0x4061ec=>zt(_0x4061ec,this['_model'])),_0x4bf811=_0x2e5fd3['is']('range')?_0x3cc85d:_0x3cc85d['map'](_0x3df6d9=>zt(_0x3df6d9,this['_model']));if(this['_trackingSessionId']&&(_0x1acc49['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xce35f0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d6cf3,'accept');return this['forceDefaultExecution'](()=>_0xce35f0(_0x4bf811,_0xd3b2bb,_0x1acc49)),null;}_0x67bb3c['push'](..._0x4bf811);let _0x35d62e=!0x0;for(const _0x32f2f3 of _0x67bb3c)if(!this['_rangeIsInLocalUserInsertion'](_0x32f2f3)){_0x35d62e=!0x1;break;}if(_0x35d62e&&'always'!==this['_trackFormatChanges']){const _0x335b49=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d6cf3,'accept');return this['forceDefaultExecution'](()=>_0x335b49(_0x4bf811,_0xd3b2bb,_0x1acc49)),null;}const _0x56d7de=this['editor']['plugins']['get']('Users')['me'];for(const _0x23755a of this['getSuggestions']()){const _0x273135=_0x23755a['data'];if(_0x23755a['author']['id']!=_0x56d7de['id'])continue;if('formatBlock'!=_0x23755a['type']||_0x273135['formatGroupId']!=_0xd3b2bb['formatGroupId'])continue;if(!Xt(_0x23755a,_0x1acc49))continue;const _0x4991eb=_0x23755a['subType']==_0x4d6cf3;for(let _0x1d7b66=0x0;_0x1d7b66<_0x4bf811['length'];_0x1d7b66++){const _0x2da756=_0x4bf811[_0x1d7b66];for(const _0x405e29 of _0x23755a['getMarkers']()){const _0x28a661=_0x405e29['getRange']();if(_0x2da756['isEqual'](_0x28a661)){_0x4991eb?(_0x4bf811['splice'](_0x1d7b66,0x1),_0x1d7b66--):_0x23755a['removeMarker'](_0x405e29['name']);break;}}}}if(0x0==_0x4bf811['length'])return null;const _0xa220d7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d6cf3,'join');for(const _0x936b5 of this['getSuggestions']()){const _0x56233d=_0x936b5['data'];if(_0x936b5['author']['id']==_0x56d7de['id']&&('formatBlock'==_0x936b5['type']&&_0x56233d['formatGroupId']==_0xd3b2bb['formatGroupId']&&_0x936b5['subType']==_0x4d6cf3&&Xt(_0x936b5,_0x1acc49)&&(_0xa220d7(_0x936b5['getRanges'](),_0x4bf811)||_0xa220d7(_0x4bf811,_0x936b5['getRanges']())))){for(const _0x2575aa of _0x4bf811)_0x936b5['addRange'](_0x2575aa);return _0x936b5;}}const _0x5601c6=_0x51161f(),_0x38a42b=_0x56d7de['id'],_0x28c2a5='formatBlock:'+_0x4d6cf3,_0x5363bb=this['_setSuggestionData']({'id':_0x5601c6,'type':_0x28c2a5,'data':_0xd3b2bb,'createdAt':new Date(),'authorId':_0x38a42b,'attributes':_0x1acc49});for(const _0x3ab714 of _0x4bf811)this['_addSuggestionMarker'](_0x28c2a5,_0x5601c6,_0x38a42b,_0x3ab714,T['getMultiRangeId']());return _0x5363bb;}['markDeletion'](_0x5177cf,_0x4c27dd=null,_0x485d4d={}){if(_0x5177cf['isCollapsed'])return null;const _0x4ebcc8=this['editor']['plugins']['get']('Users')['me'],_0x492c34=new _0x1c1e9b(_0x5177cf['start'],_0x5177cf['end']);this['_trackingSessionId']&&(_0x485d4d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a7013,meta:_0x584ca1}of this['_findSuggestions'](_0x492c34,'insertion'))if(_0x584ca1['isOwn']&&!_0x584ca1['isNextTo']){if(_0x3a7013['isMultiRange']){const _0x3bc00a=_0x3a7013['getRanges']()['filter'](_0x276307=>'$graveyard'!=_0x276307['root']['rootName']);_0x3bc00a['every'](_0x303f6e=>_0x492c34['containsRange'](_0x303f6e,!0x0))&&_0x3a7013['discard']();if(_0x3bc00a['some'](_0x177888=>_0x177888['containsRange'](_0x492c34,!0x0))){const _0x5e8594=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4c27dd,'accept');return this['forceDefaultExecution'](()=>_0x5e8594([_0x492c34],null,_0x485d4d)),null;}}else{const _0x210526=_0x492c34['getIntersection'](_0x3a7013['getFirstRange']());null!==_0x210526&&_0x3a7013['_onDiscard']([_0x210526],null,_0x485d4d);}}if(_0x492c34['detach'](),_0x492c34['isCollapsed']||'$graveyard'==_0x492c34['root']['rootName'])return null;let _0x388dd2=null,_0x3c3149=_0x492c34['start'],_0x3820ef=_0x492c34['end'];const _0x307896=this['_findSuggestions'](_0x492c34,'deletion');for(const {suggestion:_0xa76f03,meta:_0x386f7c}of _0x307896){const _0x50a9ef=this['_model']['createRange'](_0x3c3149,_0x3820ef);if(_0x386f7c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x386f7c['containsRangeInObject']&&!_0x386f7c['isInsideObject'])){if(_0xa76f03['isMultiRange']){if(!Xt(_0xa76f03,_0x485d4d))continue;let _0x3c5ef2=!0x0;for(const _0x1549b7 of _0xa76f03['getRanges']()){if(_0x1549b7['containsRange'](_0x50a9ef,!0x0))return _0xa76f03;_0x50a9ef['containsRange'](_0x1549b7)||(_0x3c5ef2=!0x1);}_0x3c5ef2&&_0xa76f03['discard']();}else{const _0x4ff461=_0xa76f03['getFirstRange']();if(_0x4ff461['containsRange'](_0x50a9ef,!0x0))return _0xa76f03;if(!Xt(_0xa76f03,_0x485d4d)){_0x50a9ef['containsRange'](_0x4ff461)?_0xa76f03['removeMarkers']():_0x4ff461['containsPosition'](_0x3c3149)?_0x3c3149=_0x4ff461['end']:_0x4ff461['containsPosition'](_0x3820ef)&&(_0x3820ef=_0x4ff461['start']);continue;}_0x3c3149=_0x3c3149['isBefore'](_0x4ff461['start'])?_0x3c3149:_0x4ff461['start'],_0x3820ef=_0x3820ef['isAfter'](_0x4ff461['end'])?_0x3820ef:_0x4ff461['end'],_0x485d4d=Object['assign']({},_0xa76f03['attributes']),_0x388dd2?_0x4ff461['start']['isBefore'](_0x388dd2['getFirstRange']()['start'])?(_0x388dd2['removeMarkers'](),_0x388dd2=_0xa76f03):_0xa76f03['removeMarkers']():_0x388dd2=_0xa76f03;}}}if(_0x388dd2)return this['_setSuggestionRange'](_0x388dd2,this['_model']['createRange'](_0x3c3149,_0x3820ef)),_0x388dd2;{const _0x1162b2=_0x51161f(),_0x151806=this['_model']['createRange'](_0x3c3149,_0x3820ef),_0x4cb7a0=_0x4ebcc8['id'],_0x189aa5=_0x4c27dd?'deletion:'+_0x4c27dd:'deletion',_0xb9ac2c=this['_setSuggestionData']({'id':_0x1162b2,'type':_0x189aa5,'createdAt':new Date(),'authorId':_0x4cb7a0,'attributes':_0x485d4d});return this['_addSuggestionMarker'](_0x189aa5,_0x1162b2,_0x4cb7a0,_0x151806),_0xb9ac2c;}}['markMultiRangeDeletion'](_0x42041d,_0x106f93='multi',_0x3e4ea3={}){const _0x567c58=this['editor']['plugins']['get']('Users')['me'],_0x40a349=_0x42041d['map'](_0x517212=>new _0x1c1e9b(_0x517212['start'],_0x517212['end'])),_0x57ef9e=new Set();this['_trackingSessionId']&&(_0x3e4ea3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x219427,meta:_0xa5f1a8}of this['_findSuggestions'](_0x40a349,'insertion'))_0xa5f1a8['isOwn']&&!_0xa5f1a8['isNextTo']&&_0x57ef9e['add'](_0x219427);for(const _0x3e5ee5 of _0x57ef9e)if(_0x3e5ee5['isMultiRange']){const _0x2cf228=_0x3e5ee5['getRanges']();(!_0x3e5ee5['attributes']||!_0x3e5ee5['attributes']['skipNestingCheck'])&&(_0x2cf228['every'](_0x284d9c=>_0x40a349['some'](_0x5d52e1=>_0x5d52e1['containsRange'](_0x284d9c,!0x0)))&&_0x3e5ee5['discard']());if(_0x40a349['every'](_0x25ccaf=>_0x2cf228['some'](_0x51154e=>_0x51154e['containsRange'](_0x25ccaf,!0x0)))){const _0x595b67=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x106f93,'accept');return this['forceDefaultExecution'](()=>_0x595b67(_0x42041d,null,_0x3e4ea3)),null;}}else{const _0x5595f9=_0x3e5ee5['getFirstRange']();_0x40a349['some'](_0x2d1bd8=>_0x2d1bd8['containsRange'](_0x5595f9,!0x0))&&_0x3e5ee5['discard']();if(_0x40a349['every'](_0x380dbf=>_0x5595f9['containsRange'](_0x380dbf,!0x0))){const _0x1b77fb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x106f93,'accept');return this['forceDefaultExecution'](()=>_0x1b77fb(_0x40a349,null,_0x3e4ea3)),null;}}const _0x301291=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x106f93,'join');let _0x2af223=null;for(const _0xd8761e of this['getSuggestions']())if(_0xd8761e['author']['id']==_0x567c58['id']&&_0xd8761e['isInContent']&&'deletion'==_0xd8761e['type']&&_0xd8761e['subType']==_0x106f93&&Xt(_0xd8761e,_0x3e4ea3)&&(_0x301291(_0xd8761e['getRanges'](),_0x40a349)||_0x301291(_0x40a349,_0xd8761e['getRanges']()))){if(_0x2af223){if(_0xd8761e['commentThread']&&_0xd8761e['commentThread']['length'])continue;for(const _0x384399 of _0xd8761e['getRanges']())_0x2af223['isIntersectingWithRange'](_0x384399)||_0x2af223['addRange'](_0x384399);_0xd8761e['removeMarkers']();}else{_0x2af223=_0xd8761e;for(const _0x311cef of _0x40a349)_0xd8761e['isIntersectingWithRange'](_0x311cef)||_0xd8761e['addRange'](_0x311cef);}}if(_0x2af223)return _0x2af223;_0x57ef9e['clear']();for(const {suggestion:_0x1c5e75,meta:_0x308d23}of this['_findSuggestions'](_0x40a349,'deletion'))_0x308d23['isOwn']&&(this['_mergeNestedSuggestions']||!_0x308d23['containsRangeInObject']&&!_0x308d23['isInsideObject'])&&Xt(_0x1c5e75,_0x3e4ea3)&&_0x57ef9e['add'](_0x1c5e75);for(const _0x14e5fc of _0x57ef9e){const _0x5981ff=_0x14e5fc['getRanges']();if(!_0x3e4ea3||!_0x3e4ea3['skipNestingCheck']){if(_0x40a349['every'](_0x3e78aa=>_0x5981ff['some'](_0x395894=>_0x395894['containsRange'](_0x3e78aa,!0x0))))return _0x14e5fc;}(!_0x14e5fc['attributes']||!_0x14e5fc['attributes']['skipNestingCheck'])&&(_0x5981ff['every'](_0xddb1a9=>_0x40a349['some'](_0x469177=>_0x469177['containsRange'](_0xddb1a9,!0x0)))&&_0x14e5fc['discard']());}const _0x3db7f9=_0x51161f(),_0x58d889=_0x567c58['id'],_0x4e1c66='deletion:'+_0x106f93,_0x4bf2b8=this['_setSuggestionData']({'id':_0x3db7f9,'type':_0x4e1c66,'createdAt':new Date(),'authorId':_0x58d889,'attributes':_0x3e4ea3});for(const _0x3a26de of _0x40a349)_0x3a26de['detach'](),_0x3a26de['isCollapsed']||'$graveyard'==_0x3a26de['root']['rootName']||this['_addSuggestionMarker'](_0x4e1c66,_0x3db7f9,_0x58d889,_0x3a26de,T['getMultiRangeId']());return _0x4bf2b8;}['markAttributeChange'](_0x4c1969,_0x4f138c,_0x18c236,_0x186276,_0x2ddcb4){if(_0x4c1969['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3917bf=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ad8dc=Array['from'](this['_suggestions']['values']())['filter'](_0x46f708=>'attribute'==_0x46f708['type']&&_0x46f708['data']['key']==_0x4f138c&&_0x46f708['isIntersectingWithRange'](_0x4c1969));if(this['_trackingSessionId']&&(_0x2ddcb4['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3c221e=this['_findSuggestions'](_0x4c1969,'insertion')['filter'](({meta:_0x44c101})=>_0x44c101['isOwn']&&!_0x44c101['isInsideObject']&&!_0x44c101['isNextTo'])['map'](({suggestion:_0x2ed5c0})=>_0x2ed5c0);_0x1ad8dc['unshift'](..._0x3c221e);}const _0x47c3b8=new Map([[_0x4c1969,_0x18c236]]);for(const _0x121100 of _0x1ad8dc){const _0x2a43bf='attribute'==_0x121100['type']?_0x121100['data']['oldValue']:void 0x0,_0x45df8b=_0x121100['getFirstRange'](),_0x27dc03=Array['from'](_0x47c3b8['keys']())['find'](_0x26ecae=>_0x26ecae['isIntersecting'](_0x45df8b));if(!_0x27dc03)continue;const _0x476122=_0x27dc03['getDifference'](_0x45df8b);this['_isBlockAttribute'](_0x4f138c)&&'insertion'==_0x121100['type']&&0x0!=_0x476122['length']||(_0x47c3b8['delete'](_0x27dc03),_0x476122['forEach'](_0x285192=>{_0x47c3b8['set'](_0x285192,_0x18c236);}),'insertion'!=_0x121100['type']&&_0x2a43bf!=_0x186276&&_0x47c3b8['set'](_0x27dc03['getIntersection'](_0x45df8b),_0x2a43bf));}const _0x419693=[];for(const [_0x178add,_0x2e8259]of _0x47c3b8){const _0x173056=_0x51161f(),_0x448a1c={'key':_0x4f138c,'oldValue':_0x2e8259,'newValue':_0x186276};_0x4f138c['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':_0x4f138c});const _0x15ee2f=('attribute:'+(_0x4f138c+'|'+Lt({'newValue':_0x186276})))['substring'](0x0,0x3c),_0x5a3380=this['_setSuggestionData']({'id':_0x173056,'type':_0x15ee2f,'data':_0x448a1c,'createdAt':new Date(),'authorId':_0x3917bf,'attributes':_0x2ddcb4});_0x419693['push'](_0x5a3380),this['_addSuggestionMarker'](_0x15ee2f,_0x173056,_0x3917bf,_0x178add);}return _0x419693;}['enableDefaultAttributesIntegration'](_0x4df22c){this['enableCommand'](_0x4df22c,(_0x463e08,..._0x38f590)=>{this['recordAttributeChanges'](()=>{_0x463e08(..._0x38f590);});});}['registerBlockAttribute'](_0x3cb04e){this['_blockAttributeKeys']['add'](_0x3cb04e);}['registerInlineAttribute'](_0x4cbad0){this['_inlineAttributeKeys']['add'](_0x4cbad0);}['startTrackingSession'](_0x556a55){return this['_trackingSessionId']=void 0x0!==_0x556a55?_0x556a55:_0x51161f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x3a8352){return'attribute'==_0x3a8352['type']?_0x3a8352['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x25b612,_0x40a7b5){const _0x45c524=_0x25b612['getFirstMarker']();this['_model']['change'](_0x2d6fcd=>{_0x2d6fcd['updateMarker'](_0x45c524,{'range':_0x40a7b5});});}['_addThreadToSuggestion'](_0xcef68c){const _0x1826f6=_0xcef68c['id'],_0x3790a0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1826f6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3790a0,'threadId':_0x1826f6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c28b5=this['_commentsRepository']['getCommentThread'](_0x1826f6);_0x4c28b5['unbind']('isRemovable'),_0x4c28b5['isRemovable']=!0x1,_0xcef68c['commentThread']=_0x4c28b5;}['_checkSuggestionCorrectness'](_0x356d7e,_0x74321a,_0x404acc,_0x1e4f9b){if(_0x356d7e['type']!=_0x74321a||_0x356d7e['subType']!=_0x404acc||_0x356d7e['creator']['id']!=_0x1e4f9b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1d6012('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b9efa,_0x4043a5){const _0x1909d2=_0x3b9efa['getFirstRange']();if(_0x4043a5['isEqual'](_0x1909d2))_0x3b9efa['removeMarkers']();else{if(_0x1909d2['containsRange'](_0x4043a5)){const _0x3a7d4d=this['_model']['createPositionAt'](_0x4043a5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b9efa,this['_model']['createRange'](_0x1909d2['start'],_0x3a7d4d));const _0x114f01=_0x51161f(),_0x1481df=_0x3b9efa['creator']['id'],_0x31c2f1=_0x3b9efa['type']+':'+_0x3b9efa['subType'];this['_setSuggestionData']({'id':_0x114f01,'type':_0x31c2f1,'createdAt':new Date(),'authorId':_0x1481df,'data':_0x3b9efa['data'],'attributes':_0x3b9efa['attributes']});const _0x9c3a43=this['_model']['createPositionAt'](_0x4043a5['end']['parent'],'after'),_0x4756be=this['_model']['createRange'](_0x9c3a43,_0x1909d2['end']);this['_addSuggestionMarker'](_0x31c2f1,_0x114f01,_0x1481df,_0x4756be);}else{if(_0x1909d2['containsPosition'](_0x4043a5['start'])){const _0x4bbdea=this['_model']['createPositionAt'](_0x4043a5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b9efa,this['_model']['createRange'](_0x1909d2['start'],_0x4bbdea));}else{const _0xfde7c2=this['_model']['createPositionAt'](_0x4043a5['end']['parent'],'after');this['_setSuggestionRange'](_0x3b9efa,this['_model']['createRange'](_0xfde7c2,_0x1909d2['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2f070a){for(const {suggestion:_0xc202ce,meta:_0x3469e2}of this['_findSuggestions'](_0x2f070a,'insertion')){if(!_0x3469e2['isOwn'])continue;const _0x40ca3e=_0xc202ce['getRanges']();for(const _0x21f1b6 of _0x40ca3e)if(!_0x2f070a['getDifference'](_0x21f1b6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2488ce){const _0x260aeb=this['editor']['plugins']['get']('Users')['getUser'](_0x2488ce);if(!_0x260aeb)throw new _0x1d6012('track-changes-user-not-found',this);return _0x260aeb;}['_getExternalAuthor'](_0x8fa2ff){const _0x48fc33=this['editor']['plugins']['get']('Users'),_0x1f266e=_0x4008c4('external:'+_0x8fa2ff),_0x2317f4=_0x48fc33['getUser'](_0x1f266e);return _0x2317f4||_0x48fc33['addUser']({'id':_0x1f266e,'name':_0x8fa2ff});}['_createSuggestion'](_0xd17f5,_0x599972,_0x3ecc8a,_0x21e656,_0x1a1032,_0x5e188f){const _0x5dd26e=this['_getAuthorFromId'](_0x21e656),_0x555ec1=this['_suggestionFactory']['buildSuggestion'](_0xd17f5,_0x599972,_0x3ecc8a,_0x5dd26e,_0x1a1032,_0x4d6c7a=>{this['_updateSuggestionData'](_0x3ecc8a,{'attributes':_0x4d6c7a});const _0x460c59=this['getSuggestion'](_0x3ecc8a);this['_joinWithAdjacentSuggestions'](new Set([_0x460c59])),this['_refreshSuggestionsChain'](new Set([_0x460c59]));},_0x5e188f);return this['listenTo'](_0x555ec1,'accept',()=>{this['_updateSuggestionData'](_0x3ecc8a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x555ec1,'discard',()=>{this['_updateSuggestionData'](_0x3ecc8a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3ecc8a,_0x555ec1),this['_suggestionState']['set'](_0x555ec1,'notReady'),_0x555ec1;}['_splitMarkerName'](_0x46dfa9){const _0x4f6772=_0x46dfa9['split'](':');return{'group':_0x4f6772[0x0],'type':_0x4f6772[0x1],'subType':_0x4f6772['length']>=0x5?_0x4f6772[0x2]:null,'id':_0x4f6772['length']<0x5?_0x4f6772[0x2]:_0x4f6772[0x3],'authorId':_0x4f6772['length']<0x5?_0x4f6772[0x3]:_0x4f6772[0x4],'markerCount':0x6==_0x4f6772['length']?_0x4f6772[0x5]:null};}['_breakSuggestionMarker'](_0x108679,_0x3c6206,_0x102bed){const _0x3b8ad0=_0x108679['getFirstRange'](),_0x5d4b9f=_0x3b8ad0['start'],_0x5de588=_0x3b8ad0['end'];this['_setSuggestionRange'](_0x108679,this['_model']['createRange'](_0x5d4b9f,_0x3c6206));const _0x9747f5=_0x51161f(),_0x2348ba=_0x108679['creator']['id'],_0x31f764=_0x108679['type']+(_0x108679['subType']?':'+_0x108679['subType']:'');this['_setSuggestionData']({'id':_0x9747f5,'type':_0x31f764,'createdAt':new Date(),'authorId':_0x2348ba,'originalSuggestionId':_0x108679['_originalSuggestionId']||_0x108679['id'],'attributes':_0x108679['attributes'],'data':_0x108679['data']});const _0x5a3131=this['_getAttributeKey'](_0x108679);('formatBlock'==_0x108679['type']||_0x5a3131&&this['_isBlockAttribute'](_0x5a3131))&&(_0x102bed=this['_model']['createPositionBefore'](_0x102bed['parent'])),this['_addSuggestionMarker'](_0x31f764,_0x9747f5,_0x2348ba,this['_model']['createRange'](_0x102bed,_0x5de588));}['_findSuggestions'](_0x9667a7,_0x27af25=null){const _0x1b9e35=[],_0x1ea784=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x9667a7)||(_0x9667a7=[_0x9667a7]);for(const _0xd6bdcc of this['getSuggestions']()){if(!_0xd6bdcc['isInContent'])continue;if(_0x27af25&&_0xd6bdcc['type']!=_0x27af25)continue;let _0x38fc26=!0x1;for(const _0x5dc0df of _0xd6bdcc['getRanges']()){for(const _0x4cbed1 of _0x9667a7){const _0x4396cb=_0x4cbed1['start']['isEqual'](_0x5dc0df['end'])||_0x4cbed1['end']['isEqual'](_0x5dc0df['start']);if(_0x4396cb||_0x4cbed1['getIntersection'](_0x5dc0df)){const _0x55f69b=_0x4cbed1['containsRange'](_0x5dc0df)&&Ft(this['_model']['schema'],_0x5dc0df['start'],_0x4cbed1),_0x22f72b=_0x5dc0df['containsRange'](_0x4cbed1)&&Ft(this['_model']['schema'],_0x4cbed1['start'],_0x5dc0df);_0x1b9e35['push']({'suggestion':_0xd6bdcc,'meta':{'isOwn':_0x1ea784==_0xd6bdcc['author'],'isNextTo':_0x4396cb,'isInsideObject':_0x55f69b,'containsRangeInObject':_0x22f72b}}),_0x38fc26=!0x0;break;}}if(_0x38fc26)break;}}return _0x1b9e35;}['_addSuggestionMarker'](_0x3a5df6,_0x114231,_0x426e60,_0x4eddeb,_0x154be4){this['_model']['change'](_0x22a0f1=>{let _0x4f7cbd='suggestion:'+_0x3a5df6+':'+_0x114231+':'+_0x426e60;_0x154be4&&(_0x4f7cbd=_0x4f7cbd+':'+_0x154be4),_0x22a0f1['addMarker'](_0x4f7cbd,{'range':_0x4eddeb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5b9681){const _0x2df00f=_0x5b9681['previous'],_0x4c4de0=_0x5b9681['next'];_0x5b9681['previous']=null,_0x5b9681['next']=null,null!=_0x2df00f&&_0x2df00f['next']==_0x5b9681&&(_0x2df00f['next']=_0x4c4de0),null!=_0x4c4de0&&_0x4c4de0['previous']==_0x5b9681&&(_0x4c4de0['previous']=_0x2df00f),'ready'==this['_suggestionState']['get'](_0x5b9681)&&(this['_suggestionState']['set'](_0x5b9681,'removed'),this['fire']('suggestionUnloaded',_0x5b9681,_0x2df00f,_0x4c4de0));}['_setSuggestionData'](_0x58c6af){const _0x2523c8=_0x58c6af['id'],_0x186ed0=this['addSuggestionData'](_0x58c6af);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x12b158=this['editor']['plugins']['get']('PendingActions'),_0x2fac36=_0x186ed0['hasComments'],_0x1e3ec7=_0x186ed0['subType']?_0x186ed0['type']+':'+_0x186ed0['subType']:_0x186ed0['type'],_0x2c8cfe=this['editor']['locale'],_0x137274=_0x12b158['add'](o(_0x2c8cfe,'PENDING_ACTION_SUGGESTION')),_0x30dfa1={'id':_0x2523c8,'type':_0x1e3ec7,'hasComments':_0x2fac36,'data':_0x58c6af['data']||null,'originalSuggestionId':_0x58c6af['originalSuggestionId']||null,'attributes':_0x186ed0['attributes']};this['_adapter']['addSuggestion'](_0x30dfa1)['then'](_0x51afde=>{_0x186ed0['_saved']=!0x0,_0x12b158['remove'](_0x137274),_0x51afde&&_0x51afde['createdAt']&&(this['_suggestions']['get'](_0x2523c8)['createdAt']=_0x51afde['createdAt']);})['catch'](_0x585024=>{throw _0x4cb11a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x186ed0['discard']();}),_0x186ed0['stopListening'](),this['_suggestions']['delete'](_0x186ed0['id']),this['_suggestionState']['delete'](_0x186ed0),_0x585024;});}return _0x186ed0;}['_isBlockAttribute'](_0x239789){return this['_blockAttributeKeys']['has'](_0x239789);}['_isInlineAttribute'](_0x1df125){return this['_inlineAttributeKeys']['has'](_0x1df125);}['_updateSuggestionData'](_0xb98979,_0x493bec){const _0x3187e5=this['editor']['plugins']['get']('PendingActions'),_0x5cfe85=this['getSuggestion'](_0xb98979);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5cfe85['_saved']){const _0x583b01=_0x3187e5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xb98979,_0x493bec)['then'](()=>{_0x3187e5['remove'](_0x583b01);});}else _0x5cfe85['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xb98979,_0x493bec);});}}['_getSuggestionData'](_0x1a907c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1d6012('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1a907c);}['_handleNewSuggestionMarker'](_0x385467){const {id:_0x368ee7,type:_0x40d236,subType:_0x3dd363,authorId:_0x1c3de7}=this['_splitMarkerName'](_0x385467),_0xd577cc=this['_suggestions']['get'](_0x368ee7)||this['_createSuggestion'](_0x40d236,_0x3dd363,_0x368ee7,_0x1c3de7,{});switch(this['_checkSuggestionCorrectness'](_0xd577cc,_0x40d236,_0x3dd363,_0x1c3de7),this['_suggestionState']['get'](_0xd577cc)){case'notReady':this['_getSuggestionData'](_0x368ee7)['then'](_0x46fa10=>{let _0x1cad88=Promise['resolve']();_0x46fa10['hasComments']&&(_0x1cad88=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x368ee7})),_0x1cad88['then'](()=>{this['addSuggestionData'](_0x46fa10)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xd577cc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x368ee7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xd577cc,'ready'),this['fire']('suggestionLoaded',_0xd577cc);break;case'ready':this['fire']('suggestionChanged',_0xd577cc);}return _0xd577cc['addMarkerName'](_0x385467),_0xd577cc;}['_refreshSuggestionsChain'](_0x59c271){const _0x3fe1ee=Array['from'](_0x59c271),_0x3fb783=_0x3fe1ee['filter'](_0x13d3a3=>'attribute'==_0x13d3a3['type']);this['_refreshAttributeSuggestionsChain'](_0x3fb783);const _0x5b2a73=_0x3fe1ee['filter'](_0xf3f0e9=>!_0xf3f0e9['isMultiRange']&&'attribute'!=_0xf3f0e9['type']),_0x51b845=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59f92e=>!_0x59f92e['isMultiRange']&&'attribute'!=_0x59f92e['type']),_0x48f2dc=_0x51b845['filter'](_0x13126a=>!_0x59c271['has'](_0x13126a)),_0x2b3cde=new Map(_0x51b845['map'](_0x28bbf0=>[_0x28bbf0,this['_suggestionFactory']['getSuggestionCallback'](_0x28bbf0['type'],_0x28bbf0['subType'],'chain')])),_0x1c2f4f=new Map(_0x51b845['map'](_0xe115ce=>[_0xe115ce,_0xe115ce['getFirstRange']()])),_0x59003a=new Set(),_0x240fb2=new Set();for(let _0x55eab4=0x0;_0x55eab4<_0x5b2a73['length'];_0x55eab4++)_0x321e4a(_0x5b2a73[_0x55eab4],_0x5b2a73,_0x55eab4+0x1);for(let _0x31155b=0x0;_0x31155b<_0x5b2a73['length'];_0x31155b++)_0x321e4a(_0x5b2a73[_0x31155b],_0x48f2dc,0x0);const _0x24d2ec=new Set();for(let _0x402ecf=0x0;_0x402ecf<_0x5b2a73['length'];_0x402ecf++){const _0x3cc8aa=_0x5b2a73[_0x402ecf];!_0x240fb2['has'](_0x3cc8aa)&&_0x3cc8aa['previous']&&(_0x24d2ec['add'](_0x3cc8aa['previous']),_0x3cc8aa['previous']['next']===_0x3cc8aa&&(_0x3cc8aa['previous']['next']=null),_0x3cc8aa['previous']=null),!_0x59003a['has'](_0x3cc8aa)&&_0x3cc8aa['next']&&(_0x24d2ec['add'](_0x3cc8aa['next']),_0x3cc8aa['next']['previous']===_0x3cc8aa&&(_0x3cc8aa['next']['previous']=null),_0x3cc8aa['next']=null);}function _0x321e4a(_0x41e9ef,_0xb46863,_0x28c42e){for(let _0x334fb5=_0x28c42e;_0x334fb5<_0xb46863['length'];_0x334fb5++){const _0x430fdb=_0x2bd324(_0x41e9ef,_0xb46863[_0x334fb5]);_0x430fdb&&(_0x430fdb[0x0]['next']=_0x430fdb[0x1],_0x430fdb[0x1]['previous']=_0x430fdb[0x0],_0x59003a['add'](_0x430fdb[0x0]),_0x240fb2['add'](_0x430fdb[0x1]));}}function _0x2bd324(_0x2b2940,_0x56d896){if(_0x2b2940['author']['id']!==_0x56d896['author']['id'])return null;const _0x1fe02d=_0x2b3cde['get'](_0x2b2940)(_0x2b2940,_0x56d896,_0x1c2f4f['get'](_0x2b2940),_0x1c2f4f['get'](_0x56d896));if(!_0x1fe02d)return null;return _0x2b3cde['get'](_0x56d896)(_0x2b2940,_0x56d896,_0x1c2f4f['get'](_0x2b2940),_0x1c2f4f['get'](_0x56d896))?_0x1fe02d[0x1]['commentThread']&&_0x1fe02d[0x1]['commentThread']['length']?null:_0x1fe02d:null;}_0x24d2ec['size']&&this['_refreshSuggestionsChain'](_0x24d2ec);}['_refreshAttributeSuggestionsChain'](_0x33dc16){if(0x0==_0x33dc16['length'])return;const _0x509495=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42fec7=>'attribute'==_0x42fec7['type']&&_0x42fec7['_isDataLoaded']),_0x165d5a=[],_0x1e648f=new Map();for(const _0x2e4f51 of _0x509495){const _0x27f54a=_0x4008c4(_0x2e4f51['attributes']);_0x1e648f['has'](_0x27f54a)||(_0x1e648f['set'](_0x27f54a,_0x165d5a['length']),_0x165d5a['push']([]));const _0x4b187e=_0x1e648f['get'](_0x27f54a);_0x165d5a[_0x4b187e]['push'](_0x2e4f51);}!(function(){_0x165d5a['sort']((_0x7d2fbb,_0x578ac5)=>{const _0x57bb86=_0x7d2fbb[0x0]['createdAt'],_0x49ff93=_0x578ac5[0x0]['createdAt'];return _0x57bb86==_0x49ff93?_0x7d2fbb[0x0]['attributes']['groupId']<_0x578ac5[0x0]['attributes']['groupId']?-0x1:0x1:_0x57bb86<_0x49ff93?-0x1:0x1;});for(const _0xdd7f4c of _0x165d5a)_0xdd7f4c['sort']((_0x1e2b65,_0x1888b3)=>_0x1e2b65['id']<_0x1888b3['id']?-0x1:0x1);}());for(let _0x565a22=0x0;_0x565a22<_0x165d5a['length'];_0x565a22++){if(0x0==_0x165d5a[_0x565a22]['length'])continue;const _0x3c09a1=[];for(let _0x37aa18=_0x565a22+0x1;_0x37aa18<_0x165d5a['length'];_0x37aa18++)0x0!=_0x165d5a[_0x37aa18]['length']&&_0x5bdfc3(_0x165d5a[_0x565a22],_0x165d5a[_0x37aa18])&&_0x3c09a1['push'](_0x37aa18);for(const _0x471bd0 of _0x3c09a1)_0x165d5a[_0x565a22]=_0x165d5a[_0x565a22]['concat'](_0x165d5a[_0x471bd0]),_0x165d5a[_0x471bd0]=[];}for(const _0x2e93e7 of _0x165d5a)for(let _0x5640b6=0x0;_0x5640b6<_0x2e93e7['length'];_0x5640b6++){const _0x1edd39=_0x2e93e7[_0x5640b6+0x1]||null;_0x2e93e7[_0x5640b6]['next']!==_0x1edd39&&(_0x2e93e7[_0x5640b6]['next']=_0x1edd39);}for(const _0x262d81 of _0x165d5a)for(let _0x235cc2=0x0;_0x235cc2<_0x262d81['length'];_0x235cc2++){const _0x227ff4=_0x262d81[_0x235cc2-0x1]||null;_0x262d81[_0x235cc2]['previous']!==_0x227ff4&&(_0x262d81[_0x235cc2]['previous']=_0x227ff4);}function _0x5bdfc3(_0x5b35a1,_0x57fdff){if(_0x5b35a1[0x0]['attributes']['groupId']!==_0x57fdff[0x0]['attributes']['groupId']&&_0x5b35a1[0x0]['author']!==_0x57fdff[0x0]['author'])return!0x1;if(!function(_0x4fe352,_0x28b599){if(!_0x4fe352['hasComments']&&!_0x28b599['hasComments'])return!0x0;if(_0x4fe352['hasComments']&&_0x28b599['hasComments'])return!0x1;if(_0x4fe352['hasComments']&&_0x28b599['createdAt']<_0x4fe352['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x28b599['hasComments']&&_0x4fe352['createdAt']<_0x28b599['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b35a1[0x0],_0x57fdff[0x0]))return!0x1;const _0x1f9054=Ut(_0x5b35a1[0x0]['attributes'],['groupId','trackingSessionId']),_0x2d58fa=Ut(_0x57fdff[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x130814(_0x1f9054,_0x2d58fa))return!0x1;if(_0x5b35a1[0x0]['attributes']['groupId']==_0x57fdff[0x0]['attributes']['groupId'])return!0x0;if(_0x5b35a1[0x0]['attributes']['trackingSessionId']!==_0x57fdff[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5b35a1['every'](_0x58df6a=>_0x57fdff['some'](_0x199077=>_0x58df6a['getFirstRange']()['isEqual'](_0x199077['getFirstRange']())))&&_0x57fdff['every'](_0x2973a9=>_0x5b35a1['some'](_0x34f2e9=>_0x2973a9['getFirstRange']()['isEqual'](_0x34f2e9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5d3668){const _0x1c904b=Array['from'](_0x5d3668),_0x397212=this['getSuggestions']({'skipNotAttached':!0x0}),_0x304133=_0x397212['filter'](_0x587791=>!_0x5d3668['has'](_0x587791)),_0x34a2ed=new Map(_0x1c904b['map'](_0x5cecd3=>[_0x5cecd3,this['_suggestionFactory']['getSuggestionCallback'](_0x5cecd3['type'],_0x5cecd3['subType'],'join')])),_0x3bc2a1=new Map(_0x397212['map'](_0x2b6c6f=>[_0x2b6c6f,_0x2b6c6f['getRanges']()]));for(let _0x289361=0x0;_0x289361<_0x1c904b['length'];_0x289361++){if(_0x14c7da(this,_0x1c904b[_0x289361],_0x1c904b,_0x289361+0x1))return!0x0;}for(let _0x129fc1=0x0;_0x129fc1<_0x1c904b['length'];_0x129fc1++){if(_0x14c7da(this,_0x1c904b[_0x129fc1],_0x304133,0x0))return!0x0;}return!0x1;function _0x14c7da(_0x1d4219,_0xe296ae,_0x585adf,_0x1831a0){for(let _0x19f654=_0x1831a0;_0x19f654<_0x585adf['length'];_0x19f654++){const _0x4b7101=_0x585adf[_0x19f654];if(_0x4b7101['type']!==_0xe296ae['type']||_0x4b7101['author']['id']!==_0xe296ae['author']['id']||_0x4b7101['subType']!==_0xe296ae['subType'])continue;if(!Qt(_0xe296ae,_0x4b7101))continue;if('attribute'==_0xe296ae['type']&&_0xe296ae['data']['oldValue']!=_0x4b7101['data']['oldValue'])continue;if('attribute'==_0xe296ae['type']&&_0x1d4219['_isBlockAttribute'](_0xe296ae['data']['key']))continue;if('formatBlock'==_0xe296ae['type']){const _0x214387=_0x1d4219['editor']['model'],_0x1fec2d=_0xe296ae['getContainedElement']();if(_0x1fec2d&&(_0x214387['schema']['isObject'](_0x1fec2d)||_0x214387['schema']['isLimit'](_0x1fec2d)))continue;}const _0x29cbda=_0x34a2ed['get'](_0xe296ae),_0x5df93f=_0x3bc2a1['get'](_0xe296ae),_0x3c9693=_0x3bc2a1['get'](_0x4b7101),_0x51921e=_0xe296ae['commentThread']&&_0xe296ae['commentThread']['length'],_0xe7983b=_0x4b7101['commentThread']&&_0x4b7101['commentThread']['length'];if(!_0x51921e&&_0x29cbda(_0x3c9693,_0x5df93f))return _0x1d4219['_joinSuggestions'](_0x4b7101,_0xe296ae),_0x3bc2a1['delete'](_0xe296ae),!0x0;if(!_0xe7983b&&_0x29cbda(_0x5df93f,_0x3c9693))return _0x1d4219['_joinSuggestions'](_0xe296ae,_0x4b7101),_0x3bc2a1['delete'](_0x4b7101),!0x0;}return!0x1;}}['_joinSuggestions'](_0x86b73c,_0x42567a){if(_0x86b73c['isMultiRange']){for(const _0x20405a of _0x42567a['getRanges']())_0x86b73c['addRange'](_0x20405a);}else{const _0x5699ee=_0x42567a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x86b73c,this['_model']['createRange'](_0x86b73c['getFirstRange']()['start'],_0x5699ee));}_0x42567a['removeMarkers']();}['_getMarkerAnnouncementText'](_0xadab91,_0x4df761,_0x1ecbca){const _0x48ef0f=_0xadab91['startsWith']('format')||_0xadab91['startsWith']('attribute')?'FORMATTING':_0xadab91['toUpperCase']();return o(this['editor']['locale'],_0x4df761+'_'+_0x48ef0f+'_SUGGESTION_ANNOUNCEMENT',_0x1ecbca);}['_initAriaMarkerChangeAnnouncements'](){const _0x241dd6=this['editor'];if(!_0x241dd6['ui'])return;const {ariaLiveAnnouncer:_0x334554}=_0x241dd6['ui'];_0x435ec3(this['_model'],({left:_0x485866,entered:_0x42fa3e})=>{for(const _0x118d25 of _0x485866){const {group:_0x5f00a1,type:_0x5c3d9f}=this['_splitMarkerName'](_0x118d25['name']);if('suggestion'===_0x5f00a1){_0x334554['announce'](this['_getMarkerAnnouncementText'](_0x5c3d9f,'LEAVE'));break;}}for(const _0x492afa of _0x42fa3e){const {group:_0x12eaae,type:_0x72917a}=this['_splitMarkerName'](_0x492afa['name']);if('suggestion'===_0x12eaae){_0x334554['announce'](this['_getMarkerAnnouncementText'](_0x72917a,'ENTER',_0x138a0e(_0x21ce48)));break;}}});}['_processAttributeChanges'](_0x3db7d5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2cb563=this['editor'],_0x5f1529=_0x2cb563['model']['document']['differ']['getChanges']();if(0x0==_0x5f1529['length'])return!0x1;const _0x332f77=[],_0xba4e0b=_0x5f1529['filter'](_0x480b43=>'attribute'==_0x480b43['type']),_0xe6643=_0x5f1529['filter'](_0x18d7a1=>'insert'==_0x18d7a1['type']&&'$text'!=_0x18d7a1['name']),_0x186fb2=_0x5f1529['filter'](_0x2c7134=>'remove'==_0x2c7134['type']&&'$text'!=_0x2c7134['name']);for(const _0x3a7e06 of _0xba4e0b)_0x332f77['push']({'key':_0x3a7e06['attributeKey'],'newValue':_0x3a7e06['attributeNewValue'],'oldValue':_0x3a7e06['attributeOldValue'],'range':qt(_0x3a7e06['range'],_0x2cb563['model'])});for(const _0x557e0f of _0xe6643){const _0x26e2ba=_0x186fb2['find'](_0x2a45f1=>_0x2a45f1['position']['isEqual'](_0x557e0f['position']));_0x26e2ba&&_0x332f77['push']({'key':m,'newValue':_0x557e0f['name'],'oldValue':_0x26e2ba['name'],'range':_0x2cb563['model']['createRangeOn'](_0x557e0f['position']['nodeAfter'])});}return 0x0!=_0x332f77['length']&&this['_reduceExistingSuggestions'](_0x3db7d5,_0x332f77);}['_processAttributeSuggestions'](_0x255e3a){let _0x168add=!0x1;const _0xae2f44=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x56e236=>_0x56e236['data']['newRange']&&_0x56e236['name']['startsWith']('suggestion:attribute:'));for(const _0x3e7bb3 of _0xae2f44){const {subType:_0x21d193,id:_0x37ce0a}=this['_splitMarkerName'](_0x3e7bb3['name']),_0x58758b=_0x21d193['split']('|')[0x0];for(const _0x19acad of this['getSuggestions']({'skipNotAttached':!0x0}))_0x19acad['id']!=_0x37ce0a&&'attribute'==_0x19acad['type']&&_0x19acad['data']&&_0x19acad['data']['key']==_0x58758b&&_0x19acad['getFirstRange']()['isIntersecting'](_0x3e7bb3['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x19acad,_0x3e7bb3['data']['newRange'],_0x255e3a),_0x168add=!0x0);}return _0x168add;}['recordAttributeChanges'](_0x229c25){this['_recordAttributeSuggestions']=!0x0,_0x229c25();}['_isRegisteredAttribute'](_0x243f4f){const _0x38a397=this['_isBlockAttribute'](_0x243f4f),_0x513e96=this['_isInlineAttribute'](_0x243f4f);return _0x38a397||_0x513e96;}['_reduceExistingSuggestions'](_0x3c51d5,_0x8371b5){if(0x0==_0x8371b5['length'])return!0x1;let _0x4e1867=!0x1;for(const _0x474513 of _0x8371b5){const _0x52d802=this['_findSuggestions'](_0x474513['range'],'attribute')['filter'](_0x2d105b=>!_0x2d105b['meta']['isNextTo'])['map'](_0x151195=>_0x151195['suggestion']),_0x22eb8b=_0x4008c4({'newValue':_0x474513['newValue']});_0x52d802['filter'](_0x54ab60=>{const [_0xafe1be,_0x127ad4]=_0x54ab60['subType']['split']('|');return _0xafe1be==_0x474513['key']&&_0x127ad4!=_0x22eb8b;})['forEach'](_0x3ada5a=>{this['_reduceSuggestionAttributeRange'](_0x3ada5a,_0x474513['range'],_0x3c51d5),_0x4e1867=!0x0;});}return _0x4e1867;}['_reduceSuggestionAttributeRange'](_0xb5c6ff,_0x26c39d,_0x344753){const _0x2ceb52=_0xb5c6ff['getFirstRange']()['getDifference'](_0x26c39d);0x0!==_0x2ceb52['length']?0x1!==_0x2ceb52['length']?this['_breakSuggestionMarker'](_0xb5c6ff,_0x26c39d['start'],_0x26c39d['end']):this['_setSuggestionRange'](_0xb5c6ff,_0x2ceb52[0x0]):_0x344753['removeMarker'](_0xb5c6ff['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5331c1){this['_editor']=_0x5331c1,this['_model']=_0x5331c1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x394fd9,_0x5a0fd0,_0x442821,_0x5593ab,_0x5c71e6,_0x180582,_0x5b079f){return new T(this['_model'],{'type':_0x394fd9,'subType':_0x5a0fd0,'id':_0x442821,'originalSuggestionId':_0x5b079f,'author':_0x5593ab,'creator':_0x5593ab,'attributes':_0x5c71e6,'onAttributesChange':_0x180582,'onAccept':(..._0x342816)=>this['getSuggestionCallback'](_0x394fd9,_0x5a0fd0,'accept')(..._0x342816),'onDiscard':(..._0x7d890a)=>this['getSuggestionCallback'](_0x394fd9,_0x5a0fd0,'discard')(..._0x7d890a)});}['registerCustomCallback'](_0x282bec,_0x5bfe99,_0x3d9b68,_0x4784ba){const _0x1703ad=_0x282bec+':'+_0x5bfe99+':'+_0x3d9b68;this['_customCallbacks']['set'](_0x1703ad,_0x4784ba);}['getSuggestionCallback'](_0x28b5a6,_0x399b42,_0x227c34){const _0x4bfd8d=_0x28b5a6+':'+_0x399b42+':'+_0x227c34;return this['_customCallbacks']['get'](_0x4bfd8d)||this['_defaultCallbacks']['get'](_0x28b5a6+':'+_0x227c34);}['_registerDefaultCallbacks'](){const _0x176676=()=>!0x1,_0xed7f92=_0x405f56=>{_0x405f56['sort']((_0x474f60,_0x5ce16c)=>_0x474f60['start']['isBefore'](_0x5ce16c['start'])?0x1:-0x1),this['_model']['change'](_0x11d2f2=>{for(const _0x364c79 of _0x405f56){let _0x4cd152;_0x4cd152=_0x364c79['end']['isAtEnd']&&_0x364c79['end']['parent']==_0x364c79['start']['nodeAfter']?_0x11d2f2['createSelection'](_0x364c79['start']['nodeAfter'],'on'):_0x11d2f2['createSelection'](_0x364c79),this['_model']['deleteContent'](_0x4cd152,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x14775c=(_0x4f884f,_0x57a6dc)=>{_0x57a6dc&&this['_model']['change'](_0x47e119=>{const {commandName:_0x548992,commandParams:_0x301ba2=[]}=_0x57a6dc,_0x4e7783=_0x4f884f['map'](_0x145308=>(Pt(_0x145308)&&(_0x145308=this['_model']['createRange'](_0x145308['end'])),_0x145308))['filter'](_0x95aef7=>'$graveyard'!==_0x95aef7['root']['rootName']);if(_0x4e7783['length']<0x1)return;const _0x2106bf=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4aaea4=>_0x1c1e9b['fromRange'](_0x4aaea4));_0x47e119['setSelection'](_0x4e7783);for(const _0x2d3804 of this['_editor']['commands']['commands']())_0x2d3804['refresh']();_0x301ba2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x548992,..._0x301ba2);const _0x568fca=_0x2106bf['filter'](_0x3011fe=>'$graveyard'!=_0x3011fe['root']['rootName']);_0x568fca['length']>0x0&&_0x47e119['setSelection'](_0x568fca);for(const _0x394cf0 of _0x2106bf)_0x394cf0['detach']();});},_0x2843fe=(_0x179754,_0x57d380)=>0x1==_0x179754['length']&&0x1==_0x57d380['length']&&_0x179754[0x0]['end']['isEqual'](_0x57d380[0x0]['start']),_0x328955=(_0x2a0159,_0x1fda84,_0x27f19e,_0x17a3c2)=>Wt(_0x2a0159,_0x1fda84,_0x27f19e,_0x17a3c2)?[_0x2a0159,_0x1fda84]:Wt(_0x1fda84,_0x2a0159,_0x17a3c2,_0x27f19e)?[_0x1fda84,_0x2a0159]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x176676),this['_defaultCallbacks']['set']('insertion:discard',_0xed7f92),this['_defaultCallbacks']['set']('insertion:join',_0x2843fe),this['_defaultCallbacks']['set']('insertion:chain',_0x328955),this['_defaultCallbacks']['set']('deletion:accept',_0xed7f92),this['_defaultCallbacks']['set']('deletion:discard',_0x176676),this['_defaultCallbacks']['set']('deletion:join',_0x2843fe),this['_defaultCallbacks']['set']('deletion:chain',_0x328955),this['_defaultCallbacks']['set']('formatInline:accept',_0x14775c),this['_defaultCallbacks']['set']('formatInline:discard',_0x176676),this['_defaultCallbacks']['set']('formatInline:join',_0x2843fe),this['_defaultCallbacks']['set']('formatInline:chain',_0x176676),this['_defaultCallbacks']['set']('formatBlock:accept',_0x14775c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x176676),this['_defaultCallbacks']['set']('formatBlock:join',_0x2843fe),this['_defaultCallbacks']['set']('formatBlock:chain',_0x176676),this['_defaultCallbacks']['set']('attribute:accept',_0x176676),this['_defaultCallbacks']['set']('attribute:discard',(_0x25f1b8,_0x5a9267)=>{if(!_0x5a9267)return;const _0x2529e3=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xca044d=>{if(_0x5a9267['key']==m)for(const _0x4daee2 of _0x25f1b8){const _0x2b29f2=_0x4daee2['start']['nodeAfter'],_0x3c52f2=_0x5a9267['oldValue'];_0xca044d['rename'](_0x2b29f2,_0x3c52f2);}else{if(_0x2529e3['_isBlockAttribute'](_0x5a9267['key'])){for(const _0x3493d5 of _0x25f1b8)void 0x0!==_0x5a9267['oldValue']?_0xca044d['setAttribute'](_0x5a9267['key'],_0x5a9267['oldValue'],_0x3493d5['start']['nodeAfter']):_0xca044d['removeAttribute'](_0x5a9267['key'],_0x3493d5['start']['nodeAfter']);}else{for(const _0x508b58 of _0x25f1b8)_0x5a9267['oldValue']?_0xca044d['setAttribute'](_0x5a9267['key'],_0x5a9267['oldValue'],_0x508b58):_0xca044d['removeAttribute'](_0x5a9267['key'],_0x508b58);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2843fe);}}function Ft(_0xb480b5,_0xd7140e,_0x4ce591){for(const _0x2e4794 of _0xd7140e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e4794['root']==_0x2e4794)return!0x1;if(!_0x4ce591['containsItem'](_0x2e4794))return!0x1;if(_0xb480b5['isObject'](_0x2e4794)||_0xb480b5['isLimit'](_0x2e4794))return!0x0;}return!0x1;}function Pt(_0x58c03f){return _0x58c03f['end']['parent']==_0x58c03f['start']['nodeAfter']&&_0x58c03f['end']['isAtStart'];}function Gt(_0xb956c4,_0x5b1d6b,_0x3f5850,_0x3d318b){const _0x3ea3a2=_0x1e2820=>!_0x1e2820['item']['is']('$textProxy')&&!_0x3d318b['isObject'](_0x1e2820['item']),_0x4d6d85=_0xb956c4['start']['getLastMatchingPosition'](_0x3ea3a2),_0x19e069=_0xb956c4['end']['getLastMatchingPosition'](_0x3ea3a2,{'direction':'backward'});return(!_0xb956c4['start']['isEqual'](_0x4d6d85)||!_0xb956c4['end']['isEqual'](_0x19e069))&&(_0x4d6d85['isBefore'](_0x19e069)?_0x3f5850['updateMarker'](_0x5b1d6b,{'range':_0x3f5850['createRange'](_0x4d6d85,_0x19e069)}):_0x3f5850['removeMarker'](_0x5b1d6b),!0x0);}function Lt(_0x1bcbbc){return _0x4008c4(_0x1bcbbc);}function Jt(_0xa8c548){const _0x9b3524=_0xa8c548['start']['nodeAfter'];return _0x9b3524&&_0x9b3524['is']('element');}function Kt(_0x37d2e4){return Pt(_0x37d2e4)||function(_0x3df1fb){return _0x3df1fb['start']['parent']==_0x3df1fb['end']['nodeBefore']&&_0x3df1fb['start']['isAtEnd'];}(_0x37d2e4);}function Ht(_0x1f6889,_0x598d01){try{const _0x4d8d8a=_0x1f6889['getRange']();for(const _0x4460f7 of _0x598d01)if(_0x1f6889!==_0x4460f7&&_0x4d8d8a&&_0x4d8d8a['isIntersecting'](_0x4460f7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x49109e,_0x5c6ce9){return null==_0x49109e['end']['nodeBefore']&&_0x49109e['end']['parent']==_0x49109e['start']['nodeAfter']?zt(_0x49109e['start']['nodeAfter'],_0x5c6ce9):_0x49109e;}function zt(_0x23e4d1,_0x283013){const _0x11a3ce=_0x283013['schema']['isObject'](_0x23e4d1)||_0x283013['schema']['isSelectable'](_0x23e4d1);return _0x283013['createRange'](_0x283013['createPositionAt'](_0x23e4d1,'before'),_0x11a3ce?_0x283013['createPositionAfter'](_0x23e4d1):_0x283013['createPositionAt'](_0x23e4d1,'end'));}function Wt(_0x51fd40,_0x497a37,_0x5a1b97,_0x285cd7){return!!Qt(_0x51fd40,_0x497a37)&&_0x5a1b97['end']['isEqual'](_0x285cd7['start']);}function Qt(_0x495738,_0x27ce50){if(!_0x495738['_isDataLoaded']||!_0x27ce50['_isDataLoaded'])return!0x1;const _0x4f2560=new Set(Object['keys'](_0x495738['attributes'])),_0x5c38a2=new Set(Object['keys'](_0x27ce50['attributes']));if(_0x4f2560['delete']('groupId'),_0x5c38a2['delete']('groupId'),0x0==_0x4f2560['size']&&0x0==_0x5c38a2['size'])return!0x0;if(_0x4f2560['size']!=_0x5c38a2['size'])return!0x1;const _0x65b52f={..._0x495738['attributes']},_0x5262e6={..._0x27ce50['attributes']};return delete _0x65b52f['groupId'],delete _0x5262e6['groupId'],JSON['stringify'](_0x65b52f)==JSON['stringify'](_0x5262e6);}function Xt(_0x5c1a88,_0x2868d7){const _0x484a60=Yt(_0x5c1a88['attributes']),_0x4b9ef4=Yt(_0x2868d7);if(!_0x5c1a88['_isDataLoaded'])return!0x1;for(const _0x4f768b of Object['keys'](_0x4b9ef4))if(!_0x130814(_0x484a60[_0x4f768b],_0x4b9ef4[_0x4f768b]))return!0x1;return!0x0;}function Yt(_0x490d3a){const _0x3f82fb=Object['assign']({},_0x490d3a);return delete _0x3f82fb['skipNestingCheck'],delete _0x3f82fb['tablePasteChainId'],_0x3f82fb;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5273f4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1b0e92,_0xadf245,_0x87201f,_0x17a01e){super(),this['model']=_0xadf245,this['view']=_0x87201f,this['commentThreadController']=_0x17a01e,this['_editor']=_0x1b0e92,this['_acceptCommand']=_0x1b0e92['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1b0e92['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x30c24e,_0x3e0da9)=>_0x30c24e||_0x3e0da9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x24add0=>_0x24add0&&this['_editor']['model']['canEditAt'](_0xadf245['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5c0827=>_0x5c0827&&this['_editor']['model']['canEditAt'](_0xadf245['getRanges']())),this['_pendingAction']=null,_0x87201f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x87201f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x87201f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x87201f,'change:isDirty',()=>{_0x87201f['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 _0x30c3c2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x30c3c2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1a1ece{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1fb98b,_0x186b21,_0x38591d,_0xf81dc8){super(_0x1fb98b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x22f663(_0x1fb98b,o(_0x1fb98b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x186b21['authoredAt']),this['bind']('authoredAt')['to'](_0x186b21),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',_0x186b21,'authoredAt',this,'descriptionParts',(_0x34b215,_0x2b16fa,_0x59fa09)=>{const _0x48ed1f=_0x59fa09['map'](_0x2a16cd=>ls(_0x2a16cd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x34b215-0x1,_0x186b21['author']['name'],_0x2b16fa?_0xf81dc8['formatDateTime'](_0x2b16fa):'',new DOMParser()['parseFromString'](_0x48ed1f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1d9335(),this['focusTracker']=new _0x53f0d0(),this['keystrokes']=new _0x6bf80f(),this['focusCycler']=new _0xde31e7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5a2103=>_0x5a2103['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x186b21,this['_localUser']=_0x38591d,this['_config']=_0xf81dc8,_0xf81dc8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3acca8(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x394537}=this['_config'];this['commentsListView']=new _0x394537(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',_0x38f565=>_0x38f565+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x391d24,_0x460c2e)=>_0x391d24||!!_0x460c2e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3e0214}=this['_config'],_0xcd8cbc=new _0x3e0214(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4277bd=_0xcd8cbc['commentInputView'];return _0xcd8cbc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4277bd,'value',(_0x79a486,_0x10d6ad,_0x49f584)=>!!_0x49f584||_0x79a486&&!_0x10d6ad),_0x4277bd['on']('submit',(_0x57f7c9,_0x71d5a0)=>{this['fire']('addComment',_0x71d5a0),_0x4277bd['editor']['setData']('');}),_0x4277bd['on']('cancel',()=>this['focus']()),_0x4277bd['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xcd8cbc;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x287fb2,_0x2e40d1,_0x302a4e,_0x4d22ca){super(_0x287fb2,_0x2e40d1,_0x302a4e,_0x4d22ca),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4dd7dc=>_0x4dd7dc&&_0x4dd7dc[0x0]?_0x4dd7dc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x6367e2,_0xcfd85b)=>{let _0x3df9cf='';for(const _0x367cbd of _0x6367e2)_0x3df9cf+='<p>'+ls(_0x367cbd['content'],_0x367cbd['color'])+'</p>';return _0xcfd85b?_0x3df9cf:_0x1dbbd6(_0x3df9cf,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d22ca['SuggestionView'](_0x287fb2,_0x2e40d1,{'formatDateTime':_0x4d22ca['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 _0x4129c6=this['bindTemplate'],_0x5552ae=[this['suggestionView']];return this['commentsListView']&&_0x5552ae['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5552ae['push'](this['commentThreadInputView']),_0x5552ae['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4129c6['if']('isActive','ck-suggestion-wrapper--active'),_0x4129c6['to']('type',_0x6ac8e2=>'ck-suggestion-'+_0x6ac8e2),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':_0x4129c6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5552ae};}['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 _0x1a1ece{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xb41225,_0x1a5457,_0x2a7d6c){super(_0xb41225),this['_model']=_0x1a5457,this['_config']=_0x2a7d6c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1a5457),this['acceptButton']=this['_createButton'](o(_0xb41225,'Accept\x20suggestion'),_0x1d9f9d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xb41225,'Discard\x20suggestion'),_0x6ab7db,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3af437(_0xb41225,_0x1a5457['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1d9335([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x53f0d0(),this['keystrokes']=new _0x6bf80f(),this['focusCycler']=new _0xde31e7({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x485d8b=>_0x485d8b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x56adc2=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x56adc2['innerHTML']=this['description'],this['on']('change:description',(_0x2124ce,_0xec25ee,_0x165308)=>{_0x56adc2['innerHTML']=_0x165308;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x302056=this['bindTemplate'],_0x1df2ba=[{'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':_0x302056['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x302056['to']('authoredAt',_0x5bb5f4=>this['_config']['formatDateTime'](_0x5bb5f4))}]}]},{'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']&&_0x1df2ba['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':_0x1df2ba}]};}['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'](_0x5c3581,_0xf79878,_0x78b5ca,_0x5dea76,_0x59f482){const _0x49e44e=new _0x4814c7(this['locale']);return _0x49e44e['set']({'label':_0x5c3581,'icon':_0xf79878,'tooltip':!0x0,'tooltipPosition':_0x59f482}),_0x49e44e['extendTemplate']({'attributes':{'class':_0x78b5ca}}),_0x49e44e['on']('execute',()=>{this['fire'](_0x5dea76,this['_model']['id']);}),_0x49e44e;}['_setupKeyboardNavigation'](){const _0x501a50=this['element'];this['keystrokes']['listenTo'](_0x501a50);for(const _0x2b842f of this['focusables'])this['focusTracker']['add'](_0x2b842f['element']),this['keystrokes']['listenTo'](_0x2b842f['element']);this['keystrokes']['set']('enter',(_0x392069,_0x518ed1)=>{_0x501a50===_0x392069['target']&&(this['focusCycler']['focusFirst'](),_0x518ed1());}),this['keystrokes']['set']('esc',(_0x7adabb,_0x2cb25b)=>{_0x501a50!==_0x7adabb['target']&&(this['focus'](),_0x2cb25b());});}}class u extends _0x5cca93{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x21b95b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe078cd){super(_0xe078cd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x34a9b1=this['editor']['config'];_0x34a9b1['define']('trackChanges.SuggestionThreadView',fe),_0x34a9b1['define']('trackChanges.SuggestionView',we),_0x34a9b1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x34a9b1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x509e55,_0x2d929c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x495e0e,_0x4f16f4]of this['_handleControllerBuffer']){const _0x38e939=this['_suggestionToController']['has'](_0x495e0e);_0x38e939||_0x4f16f4?_0x38e939&&_0x4f16f4&&this['_destroyController'](_0x495e0e):this['_initializeController'](_0x495e0e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x509e55,_0x2d929c);}['init'](){const _0x50993e=this['editor'],_0x1c665b=_0x50993e['plugins']['get']('TrackChangesEditing'),_0x13e7e2=_0x50993e['plugins']['get']('Annotations'),_0x40dc59=_0x50993e['plugins']['get']('EditorAnnotations'),_0x4d4798=_0x50993e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x40dc59['addSourceCollector'](()=>{const _0x2d055e=[];for(const [_0xbea289,_0x1cf3ae]of Array['from'](this['_suggestionToController'])){const _0x18f4b1=_0xbea289['getAllAdjacentSuggestions'](),_0x4e711c=[];for(const _0x24fe17 of _0x18f4b1){if(!_0x24fe17['isInContent'])continue;if(_0x24fe17['isMultiRange']){_0x4e711c['push'](..._0x24fe17['getRanges']());continue;}const _0x1334b0=_0x24fe17['getFirstRange']();if(_0x4e711c['length']>0x0){const _0x14a492=_0x4e711c[0x0]['getJoined'](_0x1334b0);if(_0x14a492){_0x4e711c[0x0]=_0x14a492;continue;}}_0x4e711c['push'](_0x1334b0);}_0x2d055e['push']([_0x1cf3ae['view'],_0x4e711c]);}return _0x2d055e;}),this['listenTo'](_0x1c665b,'suggestionLoaded',(_0x4b5a57,_0x1406e4)=>{this['listenTo'](_0x1406e4,'change:previous',(_0x442fc8,_0x1b1001,_0x39ab2d,_0x59b566)=>{_0x1406e4['isInContent']&&(null==_0x39ab2d?(this['_updateController'](_0x59b566['head']),this['_handleSuggestionControllerDelayed'](_0x1406e4,!0x1)):(this['_updateController'](_0x39ab2d['head']),null==_0x59b566&&this['_handleSuggestionControllerDelayed'](_0x1406e4,!0x0)));}),null!==_0x1406e4['previous']?this['_updateController'](_0x1406e4['head']):this['_handleSuggestionControllerDelayed'](_0x1406e4,!0x1);}),this['listenTo'](_0x1c665b,'suggestionUnloaded',(_0x75ad4d,_0x4bdda0,_0x4d0997)=>{this['stopListening'](_0x4bdda0,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4bdda0),this['_suggestionToController']['has'](_0x4bdda0)&&this['_destroyController'](_0x4bdda0),_0x4d0997&&this['_updateController'](_0x4d0997['head']);}),this['listenTo'](_0x1c665b,'suggestionChanged',(_0x18be4a,_0x3c0796)=>{this['_updateController'](_0x3c0796);}),this['listenTo'](_0x13e7e2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4d4798,'addComment',(_0x1dbeaf,{threadId:_0x132b26,isFromAdapter:_0x554013})=>{if(_0x554013||!_0x1c665b['hasSuggestion'](_0x132b26))return;const _0x2ecef1=_0x1c665b['getSuggestion'](_0x132b26);this['_suggestionToController']['get'](_0x2ecef1)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x514b7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30d865;for(const _0x290da0 in _0x514b7){const _0x57a9c7=_0x290da0,_0x3e02c7=_0x514b7[_0x57a9c7];if('trackChangesLicenseKeyValid'==_0x3e02c7||'trackChangesLicenseKeyInvalid'==_0x3e02c7||'trackChangesLicenseKeyExpired'==_0x3e02c7||'trackChangesLicenseKeyDomainLimit'==_0x3e02c7||'trackChangesLicenseKeyNotAllowed'==_0x3e02c7||'trackChangesLicenseKeyEvaluationLimit'==_0x3e02c7||'trackChangesLicenseKeyTrialLimit'==_0x3e02c7||'trackChangesLicenseKeyUsageLimit'==_0x3e02c7){delete _0x514b7[_0x57a9c7],_0x30d865=_0x3e02c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x30d865&&_0x514b7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x30d865&&_0x514b7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x30d865&&_0x514b7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x30d865&&_0x514b7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x30d865&&_0x514b7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x30d865&&_0x514b7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x30d865&&_0x514b7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x51e4bd){const _0x14f32f=this['_suggestionToController']['get'](_0x51e4bd);if(!_0x14f32f)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x14f32f['view'])||null;}['getSuggestionForAnnotation'](_0x127ecf){const _0x4fa185=this['_viewToController']['get'](_0x127ecf['innerView']);return _0x4fa185?_0x4fa185['model']:null;}['_refreshActiveMarkers'](){const _0x169f06=this['editor']['plugins']['get']('Annotations'),_0x34f767=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2684b4=Array['from'](_0x169f06['activeAnnotations'],_0x2db5fa=>_0x2db5fa['innerView'])['filter'](_0x48d571=>this['_viewToController']['has'](_0x48d571)),_0x27c4ce=[];for(const _0x2dbaca of _0x2684b4){const _0x571259=this['_viewToController']['get'](_0x2dbaca)['model']['getAllAdjacentSuggestions']();_0x27c4ce['push'](..._0x571259['reduce']((_0x4f747e,_0x5029e0)=>[..._0x4f747e,..._0x5029e0['getMarkerNames']()],[]));}_0x34f767['activeMarkers']=_0x27c4ce;}['_addUIComponentsToFactory'](){const _0x4e13b2=this['editor'],_0x18a4c2=_0x4e13b2['locale'],_0x38ba76=o(_0x18a4c2,'Track\x20changes'),_0x24e10d=new _0x3223dc([{'type':'switchbutton','model':new _0x4adbb8({'withText':!0x0,'isToggleable':!0x0,'label':_0x38ba76,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4adbb8({'withText':!0x0,'label':o(_0x18a4c2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4adbb8({'withText':!0x0,'label':o(_0x18a4c2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4adbb8({'withText':!0x0,'label':o(_0x18a4c2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4adbb8({'withText':!0x0,'label':o(_0x18a4c2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4e13b2['plugins']['has']('TrackChangesPreview')&&_0x24e10d['addMany']([{'type':'separator'},{'type':'button','model':new _0x4adbb8({'withText':!0x0,'label':o(_0x18a4c2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x166853 of _0x24e10d)if(ke(_0x166853)){const _0x2d9e64=_0x4e13b2['commands']['get'](_0x166853['model']['commandName']);_0x166853['model']['bind']('isOn','isEnabled')['to'](_0x2d9e64,'value','isEnabled');}_0x4e13b2['ui']['componentFactory']['add']('trackChanges',_0x4572ae=>this['_createToolbarButton'](_0x4572ae,_0x24e10d,_0x38ba76)),_0x4e13b2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4088b0=>this['_createMenuBarMenu'](_0x4088b0,_0x24e10d,_0x38ba76));}['_createToolbarButton'](_0x2c4fed,_0x4c059f,_0x4b0517){const _0x190373=_0x7edbc2(_0x2c4fed,_0x474114),_0x455233=this['editor']['commands']['get']('trackChanges');_0x190373['buttonView']['set']({'tooltip':_0x4b0517,'label':_0x4b0517,'icon':_0x340dc9}),_0x190373['buttonView']['bind']('isOn')['to'](_0x455233,'value'),_0x190373['buttonView']['on']('execute',()=>{_0x455233['execute'](),this['editor']['editing']['view']['focus']();}),_0x3eb4ef(_0x190373,_0x4c059f,{'role':'menu'});const _0x54f64e=[];for(const _0x1e3f9f of _0x4c059f)ke(_0x1e3f9f)&&_0x54f64e['push'](this['editor']['commands']['get'](_0x1e3f9f['model']['commandName']));const _0x54e284=_0x190373['buttonView'];return _0x54e284['actionView']['unbind']('isEnabled'),_0x54e284['arrowView']['unbind']('isEnabled'),_0x54e284['actionView']['bind']('isEnabled')['to'](_0x455233,'isEnabled'),_0x54e284['arrowView']['bind']('isEnabled')['toMany'](_0x54f64e,'isEnabled',(..._0x2b33f8)=>_0x2b33f8['some'](_0x31e147=>_0x31e147)),_0x190373['on']('execute',_0x514f3f=>{this['editor']['execute'](_0x514f3f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x190373;}['_createMenuBarMenu'](_0x54c951,_0x4be429,_0x1faf36){const _0x25eb31=new _0x3561c7(_0x54c951),_0x1d1ba8=this['editor']['commands']['get']('trackChanges');_0x25eb31['buttonView']['set']({'label':_0x1faf36,'icon':_0x340dc9});const _0x5ccab3=new _0x45bcb0(_0x54c951);for(const _0x210a75 of _0x4be429){if('separator'==_0x210a75['type']){_0x5ccab3['items']['add'](new _0x50824a(_0x54c951));continue;}const _0xd2b818=new _0x2a5238(_0x54c951,_0x25eb31),_0x262a74=new _0x394978(_0x54c951),_0xa95582=_0x210a75['model'];_0x262a74['bind'](...Object['keys'](_0xa95582))['to'](_0xa95582),_0x262a74['delegate']('execute')['to'](_0x25eb31),_0x262a74['on']('execute',()=>{this['editor']['execute'](_0xa95582['commandName']),this['editor']['editing']['view']['focus']();}),_0xd2b818['children']['add'](_0x262a74),_0x5ccab3['items']['add'](_0xd2b818);}return _0x25eb31['bind']('isEnabled')['to'](_0x1d1ba8,'isEnabled'),_0x25eb31['panelView']['children']['add'](_0x5ccab3),_0x25eb31;}['_initializeController'](_0x324e16){const _0x526193=this['editor'],_0x526ecc=_0x526193['config'],_0x9a0582=_0x526193['plugins']['get']('Annotations'),_0x473603=_0x526193['plugins']['get']('CommentsRepository'),_0x1e2d55=_0x526193['plugins']['get']('EditorAnnotations'),_0x17ffa0=_0x526193['plugins']['get'](_0x21b95b)['me'],_0x5a2353=_0x526ecc['get']('trackChanges')['SuggestionThreadView'],_0x14086a=_0x526ecc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x50a28a,CommentThreadInputView:_0x3abc88}=_0x526193['plugins']['get']('CommentsUI');let _0x54d1e8,_0x1c2c2a,_0x2bad43;this['_annotationViews']['has'](_0x324e16['id'])?(_0x1c2c2a=this['_annotationViews']['get'](_0x324e16['id']),_0x54d1e8=_0x1c2c2a['mainView']):(_0x54d1e8=new _0x5a2353(_0x526193['locale'],_0x324e16,_0x17ffa0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x526ecc['get']('comments.editorConfig'),'licenseKey':_0x526ecc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x526ecc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x526ecc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x526ecc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1e7799(_0x526ecc['get']('locale'),_0x526193['locale']),'CommentView':_0x526ecc['get']('comments')['CommentView'],'CommentsListView':_0x50a28a,'CommentThreadInputView':_0x3abc88,'SuggestionView':_0x14086a}),_0x54d1e8['suggestionView']['acceptButton']['on']('execute',()=>{_0x526193['editing']['view']['focus']();}),_0x54d1e8['suggestionView']['discardButton']['on']('execute',()=>{_0x526193['editing']['view']['focus']();}),_0x1c2c2a=_0x9a0582['createAnnotationView'](this['editor']['locale'],_0x54d1e8),_0x1c2c2a['bind']('isDirty')['to'](_0x54d1e8,'isDirty'),_0x1c2c2a['bind']('length')['to'](_0x54d1e8),_0x1c2c2a['bind']('type')['to'](_0x54d1e8,'type',_0x3ba78c=>'suggestion-'+_0x3ba78c),_0x54d1e8['on']('escape',()=>{_0x2bad43['fire']('escape');}),this['_annotationViews']['set'](_0x324e16['id'],_0x1c2c2a));const _0x45e9b3=_0x473603['createCommentThreadController'](_0x324e16['commentThread'],_0x54d1e8),_0x186c88=new pe(_0x526193,_0x324e16,_0x54d1e8,_0x45e9b3),_0x2d8a5c=_0x324e16['getAllAdjacentSuggestions']()['filter'](_0x5e3626=>_0x5e3626['isInContent']);_0x54d1e8['descriptionParts']=_0x526193['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2d8a5c),this['_suggestionToController']['set'](_0x324e16,_0x186c88),this['_viewToController']['set'](_0x54d1e8,_0x186c88);const _0x2d2de4=()=>{const _0xea7bed=[],_0x749bb1=_0x324e16['getAllAdjacentSuggestions']()['filter'](_0x1c6612=>_0x1c6612['isInContent']);for(const _0x26bcde of _0x749bb1)_0xea7bed['push'](..._0x26bcde['getMarkers']());return _0x30a536(_0x526193['editing'],_0xea7bed);};_0x2bad43=_0x9a0582['createAnnotation']({'view':_0x1c2c2a,'target':_0x2d2de4,'type':()=>'suggestion-'+_0x186c88['view']['type'],'isVisible':!!_0x2d2de4()}),_0x473603['_bindAnnotationToEditors'](_0x54d1e8,_0x2bad43),_0x9a0582['add'](_0x2bad43),_0x1e2d55['registerAnnotation'](_0x2bad43);}['_destroyController'](_0x9c5879){const _0x2f8ffd=this['editor']['plugins']['get']('CommentsRepository'),_0x3bf449=this['editor']['plugins']['get']('Annotations'),_0x35784f=this['_suggestionToController']['get'](_0x9c5879),_0x45aec3=_0x35784f['view'],_0x3622a7=_0x3bf449['getByInnerView'](_0x45aec3);_0x2f8ffd['_unbindEditors'](_0x45aec3),_0x3622a7&&_0x3bf449['remove'](_0x3622a7),this['_suggestionToController']['delete'](_0x9c5879),this['_viewToController']['delete'](_0x45aec3),_0x35784f['destroy']();}['_updateController'](_0x3f6251){if(!_0x3f6251['isInContent']||!this['_suggestionToController']['has'](_0x3f6251))return;const _0x458b32=this['editor']['plugins']['get']('TrackChangesEditing'),_0x504f2c=this['_suggestionToController']['get'](_0x3f6251),_0x3520ef=_0x3f6251['getAllAdjacentSuggestions']();_0x504f2c['view']['descriptionParts']=_0x458b32['descriptionFactory']['getDescriptions'](_0x3520ef);}['destroy'](){for(const _0x2387d1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2387d1);for(const _0xc240da of this['_annotationViews']['values']())_0xc240da['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3bdf12){return'model'in _0x3bdf12;}class Fe extends _0x5cca93{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x10e17b){this['editor']['plugins']['get'](d)['adapter']=_0x10e17b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x22d8ee){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x22d8ee);}['getSuggestions']({skipNotAttached:_0x3faed8=!0x1,toJSON:_0x102899=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x3faed8,'toJSON':_0x102899});}['getSuggestion'](_0x2a2480){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x2a2480);}}const p=['Pagination'];class re extends _0x5cca93{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5a6655=this['editor'];if(_0x5a6655['config']['define']('trackChangesData.editorCreator',_0x4cc752=>{const _0x17c18b=_0x5a6655['model']['document']['getRootNames']()['reduce']((_0x4f7d74,_0x59c85f)=>(_0x4f7d74[_0x59c85f]='',_0x4f7d74),{});return _0x5a6655['constructor']['create'](_0x17c18b,_0x4cc752);}),'function'!=typeof _0x5a6655['config']['get']('trackChangesData')['editorCreator'])throw new _0x1d6012('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2598a1){return P(this['editor'],!0x0,_0x2598a1);}['getDataWithDiscardedSuggestions'](_0x39bfa5){return P(this['editor'],!0x1,_0x39bfa5);}}class Ge extends _0x5cca93{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xcd7461){function _0x230974(_0x54e463){return _0x54e463['map'](_0x125341=>String['fromCharCode'](_0x125341))['join']('');}super(_0xcd7461),this['result']='end',_0xcd7461[_0x230974([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x230974([0x76,0x69,0x65,0x77])][_0x230974([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x230974([0x61,0x75,0x74,0x6f]),_0xcd7461[_0x230974([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x230974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x230974([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x230974([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x230974([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(_0x1c1b33){return void 0x0!==_0x1c1b33['getRootsAttributes'];}async function P(_0x3fa28f,_0x31e28e,_0x4b3ea7){const _0x530eb1=_0x108a96(_0x3fa28f,p);_0x530eb1['plugins']['push'](d,Ge),_0x530eb1['rootsAttributes']=He(_0x3fa28f)?_0x3fa28f['getRootsAttributes']():void 0x0;const _0x15ecfe=document['createDocumentFragment'](),_0x147b2a=_0x3fa28f['config']['get']('trackChangesData')['editorCreator'],_0x256110=await _0x147b2a(_0x530eb1,()=>function(_0x1b395e){const _0x4da091=document['createElement']('div');return _0x1b395e['appendChild'](_0x4da091),_0x4da091;}(_0x15ecfe));!function(_0x4dfef1,_0x232d42){const _0x21b419=_0x4dfef1['model']['document']['getRootNames']()['reduce']((_0x537ae5,_0x4ac9d1)=>(_0x537ae5[_0x4ac9d1]=_0x4dfef1['data']['get']({'rootName':_0x4ac9d1}),_0x537ae5),{}),_0x20a99b=_0x4dfef1['plugins']['get']('Users')['users']['map'](_0x789891=>({'id':_0x789891['id'],'name':_0x789891['name']})),_0x2b769f=_0x4dfef1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf2c18e=_0x4dfef1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x353f8f=_0x232d42['plugins']['get']('Users'),_0xa3d10e=_0x232d42['plugins']['get']('TrackChangesEditing'),_0x2f52f8=_0x232d42['plugins']['get']('CommentsRepository');for(const _0x7ec80 of _0x2f52f8['getCommentThreads']())_0x7ec80['remove']();for(const _0x52b670 of _0x20a99b)_0x353f8f['getUser'](_0x52b670['id'])||_0x353f8f['addUser'](_0x52b670);_0x353f8f['me']||_0x353f8f['useAnonymousUser']();for(const _0x28787a of _0xf2c18e)_0x2f52f8['addCommentThread'](_0x28787a);for(const _0x59c773 of _0x2b769f)_0xa3d10e['addSuggestionData'](_0x59c773);_0x232d42['data']['set'](_0x21b419);}(_0x3fa28f,_0x256110),_0x256110['execute'](_0x31e28e?'acceptAllSuggestions':'discardAllSuggestions');const _0x42c319=He(_0x256110)?_0x256110['getFullData'](_0x4b3ea7):_0x256110['data']['get'](_0x4b3ea7);return await _0x256110['destroy'](),_0x42c319;}class Me extends _0x1a1ece{['options'];constructor(_0x500241,_0x499dc5){super(_0x500241),this['options']=_0x499dc5,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'](_0x3b3934,_0x3475ba){if(!this['element'])return;const _0x52c2ce=[];for(const [_0x23d5ef,_0x4679d0]of _0x3b3934){const _0x9a8920=document['createElement']('div');_0x9a8920['setAttribute']('data-ck-root-name',_0x23d5ef),_0x9a8920['className']=_0x4679d0['classes']+'\x20ck-track-changes-preview__root-container',_0x9a8920['innerHTML']=_0x4679d0['content'],_0x52c2ce['push'](_0x9a8920);}_0x3475ba(this['element'],_0x52c2ce),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x25462f{constructor(_0x404067){super(_0x404067),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x17778d=this['editor'],_0xa5b2b8=_0x17778d['locale'],_0x11b6f7=_0x17778d['plugins']['get']('Dialog');let _0x58d6b7;const _0x22e375=function(_0x13155f){const _0x3a6a36={};if('editables'in _0x13155f['ui']['view']){for(const [_0x5c8f85,_0x3aa0aa]of Object['entries'](_0x13155f['ui']['view']['editables']))_0x3a6a36[_0x5c8f85]=_0x3aa0aa['element'];}else _0x3a6a36[_0x13155f['model']['document']['getRootNames']()[0x0]]=_0x13155f['ui']['view']['editable']['element'];return _0x3a6a36;}(_0x17778d),_0x3c9c44=function(_0x751896){let _0x4b51f8=0x0;for(const _0x5b2a32 of Object['values'](_0x751896))_0x4b51f8=Math['max'](_0x4b51f8,_0x5b2a32['getBoundingClientRect']()['width']);let _0x2a42ba=0x0;for(const _0x292fe8 of Object['values'](_0x751896))_0x2a42ba+=_0x292fe8['getBoundingClientRect']()['height'];const _0x5c0aa0=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x40a184=Math['min'](_0x2a42ba,_0x5c0aa0);return{'width':_0x4b51f8,'height':_0x40a184};}(_0x22e375);_0x11b6f7['show']({'id':'finalContentPreview','title':o(_0xa5b2b8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xa5b2b8,{'dialogRects':_0x3c9c44}),'onHide':()=>{_0x58d6b7['detachFromDom']();},'onShow':()=>{_0x17778d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x21f197=>{const _0x57f6ef=this['_standarizeRootsData'](_0x21f197,_0x17778d,_0x22e375);_0x11b6f7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x57f6ef,_0x17778d['config']['get']('trackChanges.preview.renderFunction'));}),_0x58d6b7=new _0x464b4d(_0xa5b2b8,[_0x11b6f7['view']]),_0x58d6b7['attachToDom'](),_0x58d6b7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x17778d['once']('destroy',()=>{_0x58d6b7['detachFromDom']();});const _0x206449=_0x11b6f7['view']['headerView']['class'];_0x11b6f7['view']['headerView']['class']=_0x206449?_0x206449+'\x20ck-reset_all':'ck-reset_all',_0x11b6f7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x11b6f7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x335e1b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1ae869=_0x335e1b['previewMode'],_0x1e56d3={};if('$labels'===_0x1ae869){for(const _0x5691ca of _0x335e1b['getMergeFieldsIds']())_0x1e56d3[_0x5691ca]=_0x335e1b['getLabel'](_0x5691ca)||_0x5691ca;}else{const _0x3f0f6a='$defaultValues'===_0x1ae869?_0x335e1b['getDefaultValues']():_0x335e1b['getDataSetValues'](_0x1ae869,!0x0);for(const _0x88078b of Object['entries'](_0x3f0f6a)){const [_0x158b9c,_0x1074ae]=_0x88078b;_0x1e56d3[_0x158b9c]=null!==_0x1074ae?_0x1074ae:_0x335e1b['getLabel'](_0x158b9c)||_0x158b9c;}}return{'mergeFieldsData':_0x1e56d3};}['_standarizeRootsData'](_0x162fc7,_0xde1caf,_0x25d0bf){let _0x43a397;if('string'==typeof _0x162fc7){const _0x20c0a4=_0xde1caf['model']['document']['getRootNames']()[0x0];_0x43a397={[_0x20c0a4]:_0x162fc7};}else _0x43a397=_0x162fc7;const _0x378360=this['_fixMediaEmbeds'](_0x43a397,_0xde1caf),_0x5923c1=function(_0x3828ee,_0x54cd8c){for(const [_0x42014d,_0x5e441c]of _0x3828ee)_0x5e441c['classes']=_0x54cd8c[_0x42014d]['classList']['value']['replace']('ck-focused','');return _0x3828ee;}(this['_sortRoots'](_0xde1caf)['reduce']((_0x50551b,_0x4f3491)=>(_0x50551b['push']([_0x4f3491,{'content':_0x378360[_0x4f3491],'classes':''}]),_0x50551b),[]),_0x25d0bf);return _0x5923c1;}['_fixMediaEmbeds'](_0x510c3f,_0x25c28d){if(!_0x25c28d['plugins']['has']('MediaEmbedEditing'))return _0x510c3f;const _0xee8d6e=_0x25c28d['plugins']['get']('MediaEmbedEditing');for(const [_0x492bd4,_0x192c3a]of Object['entries'](_0x510c3f)){const _0x584757=document['createElement']('div');_0x584757['innerHTML']=_0x192c3a,(_0x584757['querySelectorAll']('figure.media')['forEach'](_0x2b9e69=>{const _0x2ae50b=_0x2b9e69['querySelector']('oembed');if(_0x2ae50b){const _0x432fe7=_0x2ae50b['getAttribute']('url');if(_0x432fe7){const _0x162812=_0xee8d6e['registry']['getMediaViewElement'](new _0x46d8af(_0x25c28d['editing']['view']['document']),_0x432fe7,{'elementName':'','renderForEditingView':!0x0}),_0x361b19=document['createElement']('div');_0x361b19['classList']['add']('ck-media__wrapper'),_0x162812['render'](_0x361b19,_0x25c28d['editing']['view']['domConverter']),_0x2ae50b['replaceWith'](_0x361b19);}}}),_0x510c3f[_0x492bd4]=_0x584757['innerHTML']);}return _0x510c3f;}['_sortRoots'](_0xcc32b1){if(!function(_0x284ef6){return void 0x0!==_0x284ef6['getRootsAttributes'];}(_0xcc32b1))return _0xcc32b1['model']['document']['getRootNames']();const _0x46f894=[],_0x4ab073=new Map();for(const _0x52e08d of _0xcc32b1['model']['document']['getRootNames']()){const _0x50f04e=_0xcc32b1['editing']['view']['getDomRoot'](_0x52e08d)['getClientRects']()['item'](0x0);_0x46f894['push'](_0x52e08d),_0x4ab073['set'](_0x52e08d,_0x50f04e);}return _0x46f894['sort']((_0x203b54,_0x419c88)=>{const _0x35342c=_0x4ab073['get'](_0x203b54),_0x2c3272=_0x4ab073['get'](_0x419c88);return _0x35342c['y']-_0x2c3272['y']||_0x35342c['x']-_0x2c3272['x'];}),_0x46f894;}}class $e extends _0x5cca93{static get['requires'](){return[re,_0x311a2e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x175c40){super(_0x175c40),_0x175c40['commands']['add']('previewFinalContent',new te(this['editor'])),_0x175c40['config']['define']('trackChanges.preview.renderFunction',(_0x5204ae,_0x55d051)=>{for(const _0x3a0a94 of _0x55d051)_0x5204ae['appendChild'](_0x3a0a94);});}}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};
|