@ckeditor/ckeditor5-track-changes 49.0.0-alpha.4 → 49.0.0-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/dist/index.js +4 -4
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x5ca6a1();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x42cb93,_0x25b05d){super(),this['id']=_0x25b05d['id'],this['type']=_0x25b05d['type'],this['subType']=_0x25b05d['subType']||null,this['author']=_0x25b05d['author'],this['creator']=_0x25b05d['creator']||_0x25b05d['author'],this['data']=null,this['_originalSuggestionId']=_0x25b05d['originalSuggestionId']||null,this['_model']=_0x42cb93,this['_onAccept']=_0x25b05d['onAccept'],this['_onDiscard']=_0x25b05d['onDiscard'],this['_onAttributesChange']=_0x25b05d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x25b05d['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x5f0c5d=this;for(;_0x5f0c5d['previous'];)_0x5f0c5d=_0x5f0c5d['previous'];return _0x5f0c5d;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x336d5b){this['_markerNames']['add'](_0x336d5b);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x14d193=>this['_model']['markers']['get'](_0x14d193))['filter'](_0x44cbbc=>_0x44cbbc);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x42088d=>{for(const _0x37e0ec of this['getMarkers']())_0x42088d['removeMarker'](_0x37e0ec);}),this['_markerNames']['clear']();}['removeMarker'](_0x419acb){this['_model']['change'](_0x57b5a2=>{_0x57b5a2['removeMarker'](_0x419acb);}),this['_markerNames']['delete'](_0x419acb);}['addRange'](_0x450631){const _0x72129e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x72129e),this['_model']['change'](_0x3c13be=>{_0x3c13be['addMarker'](_0x72129e,{'range':_0x450631,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x159e76){for(const _0x598f00 of this['getRanges']())if(_0x598f00['isIntersecting'](_0x159e76))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x261268=>_0x261268['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x2a30f5,_0x5905c5)=>[..._0x2a30f5,..._0x5905c5['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x526980=this['getRanges']();if(0x1!=_0x526980['length'])return null;const _0x273b27=_0x526980[0x0],_0x408587=_0x273b27['start']['nodeAfter'],_0x1577ad=_0x273b27['end']['nodeBefore'];return _0x408587 instanceof rt?_0x408587!=_0x1577ad?null:_0x408587: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 _0x173dd6=[];let _0x129acc=this['head'];for(;_0x129acc;)_0x173dd6['push'](_0x129acc),_0x129acc=_0x129acc['next'];return _0x173dd6;}setAttribute(_0x240eaf,_0x582d5f){const _0x430bc8=lt(this['attributes']);ht(_0x430bc8,_0x240eaf,_0x582d5f),ut(_0x430bc8,this['attributes'])||(this['attributes']=_0x430bc8,this['_onAttributesChange'](_0x430bc8));}removeAttribute(_0x30a4cf){const _0x3231cf=lt(this['attributes']);gt(_0x3231cf,_0x30a4cf),ut(_0x3231cf,this['attributes'])||(this['attributes']=_0x3231cf,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 _0xa3c351()['substr'](0x1,0x5);}};function wt(_0x10caa7,_0x88a615,_0x1487a8){const _0x1d0ff2=_0x10caa7['t'],t=_0x10caa7['t'];switch(_0x88a615){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',_0x1487a8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1487a8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1487a8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1487a8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1487a8);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',_0x1487a8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1487a8);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',_0x1487a8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1487a8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1487a8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1487a8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1487a8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1487a8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1487a8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1487a8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1487a8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1487a8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1487a8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1487a8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1487a8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1487a8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1487a8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1487a8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1487a8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1487a8);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'},_0x1487a8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1487a8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1487a8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1487a8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1487a8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1487a8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1487a8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1487a8);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x1487a8);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x1487a8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1487a8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1487a8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1487a8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1487a8);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1487a8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1487a8);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'},_0x1487a8);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1487a8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1487a8);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'},_0x1487a8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1487a8);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'},_0x1487a8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1487a8);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1487a8);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1487a8);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1487a8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1487a8);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'},_0x1487a8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1487a8);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x1d0ff2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1487a8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1d0ff2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1487a8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1487a8);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'},_0x1487a8);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'},_0x1487a8);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'},_0x1487a8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0x88a615;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x4c5193,_0x8ad256){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4c5193,this['_locale']=_0x8ad256;}getDescriptions(_0x4519d8){const _0x381988=[],_0x189729=new Set(),_0x5d9380=new Set();for(let _0x6511a9=0x0;_0x6511a9<_0x4519d8['length'];_0x6511a9++){const _0x52bc26=_0x4519d8[_0x6511a9];if(!_0x52bc26['isInContent'])continue;const _0x4bad29=this['_handleCustomCallbackDescription'](_0x52bc26);if(_0x4bad29){if(null!=_0x52bc26['subType']){if(_0x189729['has'](_0x52bc26['subType']))continue;_0x189729['add'](_0x52bc26['subType']);}_0x381988['push'](_0x4bad29);}else{if('attribute'==_0x52bc26['type']){const _0x1e06b7=_0x52bc26['data']['key'];if(_0x5d9380['has'](_0x1e06b7))continue;_0x5d9380['add'](_0x52bc26['data']['key']),'$elementName'==_0x1e06b7?this['_handleRenameSuggestionDescription'](_0x381988,_0x52bc26):this['_handleAttributeSuggestionDescription'](_0x381988,_0x52bc26);continue;}'insertion'!=_0x52bc26['type']&&'deletion'!=_0x52bc26['type']||this['_handleInsertRemoveSuggestionDescription'](_0x381988,_0x52bc26,_0x4519d8[_0x6511a9+0x1]);}}return this['_resolveDescriptionItems'](_0x381988);}registerDescriptionCallback(_0x2c7173){this['_customCallbacks']['push'](_0x2c7173);}registerElementLabel(_0x3735d0,_0x10a2c6,_0x4af14d=_0x222bed['normal']){'function'==typeof _0x3735d0?_0x3fe998(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3735d0,'label':_0x10a2c6,'priority':_0x4af14d}):this['_itemLabels']['set'](_0x3735d0,_0x10a2c6);}registerAttributeLabel(_0x2b964d,_0x42138c){this['_attributeLabels']['set'](_0x2b964d,_0x42138c);}getItemLabel(_0x588d2,_0x3f3c1e=0x1){let _0x377db4;for(const _0x2d6f6b of this['_itemLabelsCallbacks'])if(_0x2d6f6b['matchingCallback'](_0x588d2)){_0x377db4=_0x2d6f6b['label'];break;}return _0x377db4||(_0x377db4=this['_itemLabels']['get'](_0x588d2['name'])),_0x377db4?_0x377db4(_0x3f3c1e):0x1!==_0x3f3c1e?_0x3f3c1e+'\x20'+_0x588d2['name']+'s':''+_0x588d2['name'];}_addDescriptionItems(_0x427f01,_0x3728fa){const _0x4ea769=_0x3728fa['getFirstRange']()['getWalker'](),_0x3b4a1c='insertion'==_0x3728fa['type']?'add':'remove';for(const _0x169b48 of _0x4ea769){const _0x5e9ecb=_0x169b48['item'],_0x54c3d1=_0x427f01[_0x427f01['length']-0x1];if(_0x5e9ecb['is']('$textProxy'))_0x54c3d1&&_0x54c3d1['type']['indexOf']('Container')>-0x1&&_0x427f01['pop'](),_0x54c3d1&&'text'==_0x54c3d1['type']?_0x54c3d1[_0x3b4a1c]+=_0x5e9ecb['data']:_0x427f01['push']({'type':'text','add':'add'==_0x3b4a1c?_0x5e9ecb['data']:'','remove':'remove'==_0x3b4a1c?_0x5e9ecb['data']:''});else{if(this['_schema']['isObject'](_0x5e9ecb)){const _0x272ffd=_0x5e9ecb;if(_0x54c3d1&&_0x54c3d1['type']['indexOf']('Container')>-0x1&&_0x427f01['pop'](),'elementEnd'==_0x169b48['type'])continue;_0x54c3d1&&_0x54c3d1['type']==_0x3b4a1c+'Object'&&_0x54c3d1['element']['name']==_0x272ffd['name']?_0x54c3d1['quantity']++:_0x427f01['push']({'type':_0x3b4a1c+'Object','element':_0x272ffd,'quantity':0x1}),_0x4ea769['skip'](_0x3cc1d6=>!('elementEnd'==_0x3cc1d6['type']&&_0x3cc1d6['item']==_0x5e9ecb));}else{if(this['_schema']['checkChild'](_0x5e9ecb,'$text')||_0x5e9ecb['is']('element','softBreak')){const _0x5687f9=_0x5e9ecb;if('add'==_0x3b4a1c&&'elementStart'==_0x169b48['type']||'remove'==_0x3b4a1c&&'elementEnd'==_0x169b48['type'])continue;if(_0x54c3d1&&-0x1==_0x54c3d1['type']['indexOf']('Container')){'text'==_0x54c3d1['type']&&(_0x54c3d1[_0x3b4a1c]+='\x0a');continue;}let _0x11015d;if(_0x11015d='add'==_0x3b4a1c?_0x5687f9['nextSibling']&&!this['_schema']['isObject'](_0x5687f9['nextSibling'])?_0x5687f9['nextSibling']:null:_0x5687f9['previousSibling']&&!this['_schema']['isObject'](_0x5687f9['previousSibling'])?_0x5687f9['previousSibling']:null,_0x5687f9['isEmpty']||_0x11015d&&_0x11015d['isEmpty']){const _0x315f20=_0x11015d&&_0x11015d['isEmpty']?_0x11015d:_0x5687f9;_0x54c3d1&&_0x54c3d1['type']==_0x3b4a1c+'EmptyContainer'&&_0x54c3d1['element']['name']==_0x315f20['name']?_0x54c3d1['quantity']++:_0x427f01['push']({'type':_0x3b4a1c+'EmptyContainer','element':_0x315f20,'quantity':0x1});}else _0x427f01['push']({'type':_0x3b4a1c+'Container','element':_0x5687f9});}}}}}_resolveDescriptionItems(_0x13cb47){const _0x525a59=this['_locale'],_0x23d769=[],_0x5e2bc8=[],_0x44059b=[];for(const _0x45b386 of _0x13cb47)switch(_0x45b386['type']){case'text':if(_0x45b386['add']=_0x45b386['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45b386['remove']=_0x45b386['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45b386['add']&&''!=_0x45b386['remove']){_0x23d769['push']({'type':'replace','content':wt(_0x525a59,'REPLACE_TEXT',['\x22'+_0x45b386['remove']+'\x22','\x22'+_0x45b386['add']+'\x22'])});continue;}if(null!=_0x45b386['add']['match'](/^ +$/)){_0x23d769['push']({'type':'insertion','content':wt(_0x525a59,'*Insert:*\x20%0',wt(_0x525a59,'ELEMENT_SPACE',_0x45b386['add']['length']))});continue;}if(null!=_0x45b386['remove']['match'](/^ +$/)){_0x23d769['push']({'type':'deletion','content':wt(_0x525a59,'*Remove:*\x20%0',wt(_0x525a59,'ELEMENT_SPACE',_0x45b386['remove']['length']))});continue;}if(''!=_0x45b386['add']){_0x23d769['push']({'type':'insertion','content':wt(_0x525a59,'*Insert:*\x20%0','\x22'+_0x45b386['add']+'\x22')});continue;}_0x23d769['push']({'type':'deletion','content':wt(_0x525a59,'*Remove:*\x20%0','\x22'+_0x45b386['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23d769['push']({'type':'insertion','content':wt(_0x525a59,'*Insert:*\x20%0',this['getItemLabel'](_0x45b386['element'],_0x45b386['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23d769['push']({'type':'deletion','content':wt(_0x525a59,'*Remove:*\x20%0',this['getItemLabel'](_0x45b386['element'],_0x45b386['quantity']))});continue;case'addContainer':_0x23d769['push']({'type':'insertion','content':wt(_0x525a59,'*Split:*\x20%0',this['getItemLabel'](_0x45b386['element'],_0x45b386['quantity']))});continue;case'removeContainer':_0x23d769['push']({'type':'deletion','content':wt(_0x525a59,'*Merge:*\x20%0',this['getItemLabel'](_0x45b386['element'],_0x45b386['quantity']))});continue;case'addFormat':_0x5e2bc8['push'](_0x45b386['key']);continue;case'removeFormat':_0x44059b['push'](_0x45b386['key']);continue;default:_0x23d769['push'](_0x45b386);}if(_0x5e2bc8['length']){const _0x1cf937=_0x5e2bc8['map'](_0x4918f2=>this['_attributeLabels']['has'](_0x4918f2)?this['_attributeLabels']['get'](_0x4918f2):_0x4918f2)['join'](',\x20');_0x23d769['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x1cf937)});}if(_0x44059b['length']){const _0x4ed999=_0x44059b['map'](_0x4f3308=>this['_attributeLabels']['has'](_0x4f3308)?this['_attributeLabels']['get'](_0x4f3308):_0x4f3308)['join'](',\x20');_0x23d769['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4ed999)});}return _0x23d769;}_handleCustomCallbackDescription(_0x13ceab){for(const _0x218804 of this['_customCallbacks']){const _0x32b3f4=_0x218804(_0x13ceab);if(_0x32b3f4&&'type'in _0x32b3f4)return _0x32b3f4;}}_handleAttributeSuggestionDescription(_0x5bfe93,_0x3aae5c){const _0x512911=_0x3aae5c['data'],_0x59466d=void 0x0===_0x512911['newValue']?'removeFormat':'addFormat';_0x5bfe93['push']({'type':_0x59466d,'key':_0x512911['key']});}_handleRenameSuggestionDescription(_0x3d9952,_0x25a1dd){_0x3d9952['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x25a1dd['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x3b3850,_0x214e94,_0x58701e){if(this['_addDescriptionItems'](_0x3b3850,_0x214e94),_0x58701e&&_0x58701e['getFirstRange']()&&!_0x214e94['getFirstRange']()['end']['isEqual'](_0x58701e['getFirstRange']()['start'])){const _0x232b88=_0x3b3850[_0x3b3850['length']-0x1],_0x8101c='insertion'==_0x214e94['type']?'add':'remove';_0x232b88&&'text'==_0x232b88['type']&&(_0x232b88[_0x8101c]+='\x0a');}}},Ft=class extends _0x139d64{afterInit(){const _0x23caa6=this['editor'],_0x28c99f=_0x23caa6['plugins']['get']('TrackChangesEditing');_0x23caa6['commands']['get']('showAIAssistant')&&_0x28c99f['enableCommand']('showAIAssistant');}},vt=class extends _0x139d64{afterInit(){const _0x5170d9=this['editor'],_0x6b7a13=_0x5170d9['plugins']['get']('TrackChangesEditing');_0x5170d9['commands']['get']('toggleAi')&&_0x6b7a13['enableCommand']('toggleAi');}},Dt=class extends _0x139d64{afterInit(){const _0x32f027=this['editor'],_0x19aff4=_0x32f027['plugins']['get']('TrackChangesEditing');_0x32f027['commands']['get']('aiQuickAction')&&_0x19aff4['enableCommand']('aiQuickAction');}},Ut=class extends _0x139d64{afterInit(){const _0x5a2db8=this['editor'],_0x4aedbc=_0x5a2db8['locale'];if(!_0x5a2db8['plugins']['has']('AlignmentEditing'))return;const _0x3930ad=_0x5a2db8['plugins']['get']('TrackChangesEditing');_0x3930ad['enableDefaultAttributesIntegration']('alignment'),_0x3930ad['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x4aedbc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x215e65=this['editor'],_0x27550f=_0x215e65['locale'];_0x215e65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3faf12=>{if('formatBlock'!=_0x3faf12['type'])return;const {data:_0x27aa60}=_0x3faf12;if(_0x27aa60&&'alignment'==_0x27aa60['commandName']){const _0x3d3426=_0x27aa60['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x27550f,'*Format:*\x20%0',function(_0x4641b6){switch(_0x4641b6){case'left':return wt(_0x27550f,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x27550f,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x27550f,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x27550f,'FORMAT_JUSTIFY_TEXT');}}(_0x3d3426))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x139d64{afterInit(){const _0x5abc23=this['editor'],_0x2e74f8=_0x5abc23['plugins']['get']('TrackChangesEditing'),_0x2f2061=_0x5abc23['locale'];for(const _0x472901 of Pt){if(!_0x5abc23['plugins']['has'](_0x472901))continue;const _0x2bba08=_0x472901['slice'](0x0,-0x7)['toLowerCase'](),_0x37ec48='FORMAT_'+_0x2bba08['toUpperCase']();_0x2e74f8['enableDefaultAttributesIntegration'](_0x2bba08),_0x2e74f8['descriptionFactory']['registerAttributeLabel'](_0x2bba08,wt(_0x2f2061,_0x37ec48));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x43de90=this['editor'],_0x144a23=_0x43de90['locale'],_0x39a840=_0x43de90['plugins']['get']('TrackChangesEditing');function _0x502820(_0xa1d8a3,_0x1e265b){_0x39a840['descriptionFactory']['registerDescriptionCallback'](_0x4edc9a=>{if('formatInline'!=_0x4edc9a['type'])return;const {data:_0x24be12}=_0x4edc9a;return _0x24be12&&_0x24be12['commandName']===_0xa1d8a3?_0x24be12['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x144a23,'*Format:*\x20%0',_0x1e265b)}:{'type':'format','content':wt(_0x144a23,'*Remove\x20format:*\x20%0',_0x1e265b)}:void 0x0;});}_0x502820('bold',wt(_0x144a23,'FORMAT_BOLD')),_0x502820('italic',wt(_0x144a23,'FORMAT_ITALIC')),_0x502820('underline',wt(_0x144a23,'FORMAT_UNDERLINE')),_0x502820('code',wt(_0x144a23,'FORMAT_CODE')),_0x502820('strikethrough',wt(_0x144a23,'FORMAT_STRIKETHROUGH')),_0x502820('subscript',wt(_0x144a23,'FORMAT_SUBSCRIPT')),_0x502820('superscript',wt(_0x144a23,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x139d64{afterInit(){const _0xb9b129=this['editor'],_0x5b0582=_0xb9b129['locale'];if(!_0xb9b129['plugins']['has']('BlockQuoteEditing'))return;const _0x19be12=_0xb9b129['plugins']['get']('TrackChangesEditing'),_0x53a1bb=this['editor']['commands']['get']('blockQuote');_0x19be12['enableCommand']('blockQuote',(_0xd90e54,_0x2ec141={})=>{const _0xc390a4=this['editor']['model']['document']['selection'],_0x36e3c0=_0x2ec141&&void 0x0!==_0x2ec141['forceValue']?_0x2ec141['forceValue']:!_0x53a1bb['value'];let _0x200bf5=[];if(_0x36e3c0){const _0x55f013=Array['from'](_0xc390a4['getSelectedBlocks']())['filter'](_0x54607d=>Ht(_0x54607d)||function(_0x3fa9db,_0x4a2cf0){const _0x47fc1e=_0x4a2cf0['createContext'](_0x3fa9db['parent']);return!!_0x4a2cf0['checkChild'](_0x47fc1e,'blockQuote')&&!!_0x4a2cf0['checkChild'](_0x47fc1e['push']('blockQuote'),_0x3fa9db);}(_0x54607d,this['editor']['model']['schema']));_0x200bf5=kt(_0x55f013,_0xb9b129['model']);}else{const _0x53055e=Array['from'](_0xc390a4['getSelectedBlocks']())['filter'](_0x5569b3=>Ht(_0x5569b3));_0x200bf5=kt(_0x53055e,_0xb9b129['model']);}_0xb9b129['model']['change'](()=>{for(const _0x3aae18 of _0x200bf5)_0x19be12['markBlockFormat'](_0x3aae18,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x36e3c0}]});});}),_0x19be12['descriptionFactory']['registerDescriptionCallback'](_0x503533=>{const {data:_0x570101}=_0x503533;if(_0x570101&&'blockQuote'==_0x570101['commandName']){const _0x27321f=wt(_0x5b0582,'ELEMENT_BLOCK_QUOTE');return _0x570101['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x5b0582,'*Set\x20format:*\x20%0',_0x27321f)}:{'type':'format','content':wt(_0x5b0582,'*Remove\x20format:*\x20%0',_0x27321f)};}});}};function Ht(_0x517f77){return'blockQuote'==_0x517f77['parent']['name'];}var $t=class extends _0x139d64{afterInit(){const _0x4161e1=this['editor'],_0x3968b7=_0x4161e1['locale'],_0x22522c=_0x4161e1['plugins']['get']('TrackChangesEditing');_0x4161e1['plugins']['has']('BookmarkEditing')&&(_0x22522c['enableCommand']('insertBookmark'),_0x22522c['enableDefaultAttributesIntegration']('updateBookmark'),_0x22522c['descriptionFactory']['registerDescriptionCallback'](_0x2b707c=>{if('insertion'!=_0x2b707c['type']&&'deletion'!=_0x2b707c['type']&&'attribute'!=_0x2b707c['type'])return;const _0x1a3811=_0x2b707c['getContainedElement']();if(null==_0x1a3811)return;if(!_0x1a3811['is']('element','bookmark'))return;const _0x27252e=_0x1a3811['getAttribute']('bookmarkId');if('insertion'==_0x2b707c['type'])return{'type':'insertion','content':wt(_0x3968b7,'*Insert:*\x20%0','\x22'+_0x27252e+'\x22\x20'+wt(_0x3968b7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b707c['type'])return{'type':'deletion','content':wt(_0x3968b7,'*Remove:*\x20%0','\x22'+_0x27252e+'\x22\x20'+wt(_0x3968b7,'ELEMENT_BOOKMARK'))};const {data:_0x9e13a0}=_0x2b707c;return _0x9e13a0&&'bookmarkId'==_0x9e13a0['key']?{'type':'format','content':wt(_0x3968b7,'*Set\x20bookmark:*\x20%0','\x22'+_0x9e13a0['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x139d64{afterInit(){const _0x49033c=this['editor'];_0x49033c['plugins']['has']('CaseChange')&&(_0x49033c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x49033c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x49033c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x139d64{afterInit(){const _0x997384=this['editor'];_0x997384['commands']['get']('ckbox')&&_0x997384['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x139d64{static get requires(){return[ft,mt];}constructor(_0x5afe9a){super(_0x5afe9a),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x7e5ffa=this['editor'],_0x49d9a6=_0x7e5ffa['plugins']['get']('ClipboardMarkersUtils'),_0x37feb7=_0x7e5ffa['plugins']['get'](mt);_0x49d9a6['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x37feb7['on']('outputTransformation',(_0x238cd4,_0x22e0bb)=>{const _0x3b3443=this['_getSuggestionEntries'](_0x22e0bb);for(const [_0x27e115,_0xf5c095]of _0x22e0bb['content']['markers']){const _0x5e9c57=at['_fromRangeInDocumentFragment'](_0xf5c095,_0x7e5ffa['model']);function _0x2b19ae(){_0x5e9c57['detach'](),_0x22e0bb['content']['markers']['delete'](_0x27e115);}_0x5e9c57['on']('change:drop',_0x2b19ae),(_0x27e115['startsWith']('suggestion:')||_0x27e115['startsWith']('comment:'))&&_0x5e9c57['on']('change:range',()=>{_0x5e9c57['isCollapsed']&&_0x2b19ae();}),_0x22e0bb['content']['markers']['set'](_0x27e115,_0x5e9c57);}const _0x5d4989=_0x3b3443['filter'](_0x3ec33f=>'deletion'===_0x3ec33f['meta']['type'])['map'](_0x584c5b=>_0x584c5b['modelRange']);if(this['_shouldSkipDeletions'](_0x5d4989,_0x22e0bb['content']))return[..._0x3b3443]['forEach'](_0x1f2f33=>{_0x22e0bb['content']['markers']['get'](_0x1f2f33['markerName'])['detach'](),_0x22e0bb['content']['markers']['delete'](_0x1f2f33['markerName']);}),void this['_restoreRegularRanges'](_0x22e0bb['content']['markers']);[..._0x3b3443]['forEach'](_0x4bd924=>{const _0x30361e=_0x7e5ffa['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x4bd924['meta']['type'],_0x4bd924['meta']['subType'],'accept'),{markerName:_0x4243f5,meta:_0x2ce184}=_0x4bd924;if(_0x22e0bb['content']['markers']['has'](_0x4243f5)){switch(_0x2ce184['type']){case'deletion':if('tableRow'===_0x2ce184['subType']||'tableColumn'===_0x2ce184['subType']){if(!_0x7e5ffa['plugins']['has']('TableUtils'))break;const _0x3ea98a=_0x7e5ffa['plugins']['get']('TableUtils'),_0x14cb1c=_0x3ea98a['getSelectionAffectedTableCells'](_0x7e5ffa['model']['createSelection'](_0x22e0bb['content']['markers']['get'](_0x4243f5))),_0x1cba60=_0x14cb1c[0x0]['findAncestor']('table');if('tableRow'===_0x2ce184['subType']){const {first:_0x2aa2c8,last:_0x5b448c}=_0x3ea98a['getRowIndexes'](_0x14cb1c);_0x3ea98a['removeRows'](_0x1cba60,{'at':_0x2aa2c8,'rows':_0x5b448c-_0x2aa2c8+0x1});}else{const {first:_0x26430c,last:_0x2a589e}=_0x3ea98a['getColumnIndexes'](_0x14cb1c);_0x3ea98a['removeColumns'](_0x1cba60,{'at':_0x26430c,'columns':_0x2a589e-_0x26430c+0x1});}break;}_0x30361e([_0x22e0bb['content']['markers']['get'](_0x4243f5)]);}_0x22e0bb['content']['markers']['has'](_0x4243f5)&&(_0x22e0bb['content']['markers']['get'](_0x4243f5)['detach'](),_0x22e0bb['content']['markers']['delete'](_0x4243f5));}}),this['_restoreRegularRanges'](_0x22e0bb['content']['markers']);});}_getSuggestionEntries(_0x4d1939){const _0x23aef4=_0x4dc040=>'dragstart'===_0x4d1939['method']?_0x4dc040['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x4dc040;return Array['from'](_0x4d1939['content']['markers'])['map'](([_0x254666,_0x508b89])=>({'markerName':_0x254666,'modelRange':_0x508b89,'meta':nt(_0x23aef4(_0x254666))}))['filter'](({meta:_0x4cc357})=>'suggestion'===_0x4cc357['group']);}_shouldSkipDeletions(_0x5e7a0e,_0x4c5b2e){if(!_0x5e7a0e['length'])return!0x1;let _0x142349=[this['editor']['model']['createRangeIn'](_0x4c5b2e)];for(const _0x483f67 of _0x5e7a0e)_0x142349=_0x142349['flatMap'](_0x4f4a02=>_0x4f4a02['getDifference'](_0x483f67));return!_0x142349['some'](_0x5dfa03=>this['editor']['model']['hasContent'](_0x5dfa03,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x117231){[..._0x117231['keys']()]['forEach'](_0x3231dd=>{const _0x3fe7e1=_0x117231['get'](_0x3231dd);_0x3fe7e1['detach'](),_0x117231['set'](_0x3231dd,_0x3fe7e1['toRange']());});}},jt=class extends _0x139d64{afterInit(){const _0x536700=this['editor'];if(!_0x536700['plugins']['has']('CodeBlock'))return;const _0x4b2499=_0x536700['plugins']['get']('TrackChangesEditing'),_0x4d8c88=_0x536700['locale'],_0x328960=_0x536700['config']['get']('codeBlock')['languages'],_0x5f0a55=_0x536700['commands']['get']('codeBlock');_0x4b2499['enableCommand']('indentCodeBlock'),_0x4b2499['enableCommand']('outdentCodeBlock'),_0x4b2499['enableCommand']('codeBlock',(_0x44c445,_0x1725df={})=>{const _0x771f5c=_0x536700['model'],_0x1a0d9a=_0x536700['model']['document']['selection'],_0x5b0bea=_0x1725df&&void 0x0!==_0x1725df['forceValue']?_0x1725df['forceValue']:!_0x5f0a55['value'];let _0x597663;_0x1725df['language']||(_0x1725df['language']=_0x328960[0x0]['language']),_0x597663=_0x5b0bea?Array['from'](_0x1a0d9a['getSelectedBlocks']())['filter'](_0x5dc69a=>{return Kt(_0x5dc69a)||(_0x21f695=_0x5dc69a,_0x4e6b94=_0x771f5c['schema'],!_0x21f695['is']('rootElement')&&!_0x4e6b94['isLimit'](_0x21f695)&&_0x4e6b94['checkChild'](_0x21f695['parent'],'codeBlock'));var _0x21f695,_0x4e6b94;}):Array['from'](_0x1a0d9a['getSelectedBlocks']())['filter'](_0x30016e=>Kt(_0x30016e));const _0xf5d0b7=kt(_0x597663,_0x771f5c);_0x771f5c['change'](()=>{for(const _0x1f63a6 of _0xf5d0b7)_0x4b2499['markBlockFormat'](_0x1f63a6,{'commandName':'codeBlock','commandParams':[{..._0x1725df,'forceValue':_0x5b0bea}],'formatGroupId':'blockName'});});}),(_0x4b2499['descriptionFactory']['registerElementLabel']('codeBlock',_0x3884b8=>wt(_0x4d8c88,'ELEMENT_CODE_BLOCK',_0x3884b8)),_0x4b2499['descriptionFactory']['registerDescriptionCallback'](_0x337ca3=>{if('formatBlock'!=_0x337ca3['type'])return;const _0x222817=_0x4d8c88['t'],{data:_0x1d0b5e}=_0x337ca3;if(!_0x1d0b5e||'codeBlock'!=_0x1d0b5e['commandName'])return;const _0x54458e=_0x1d0b5e['commandParams'][0x0]['language'],_0x44a492=_0x222817(_0x328960['find'](_0x353fe7=>_0x353fe7['language']===_0x54458e)['label'])['toLowerCase']();return _0x1d0b5e['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x4d8c88,'*Set\x20format:*\x20%0',wt(_0x4d8c88,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x44a492+')')}:{'type':'format','content':wt(_0x4d8c88,'*Remove\x20format:*\x20%0',wt(_0x4d8c88,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x119ab2){return'codeBlock'==_0x119ab2['name'];}var Xt=class extends _0x139d64{afterInit(){const _0x529edd=this['editor'];_0x529edd['plugins']['has']('CommentsEditing')&&_0x529edd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x139d64{static get requires(){return[Et];}init(){const _0x2635ae=this['editor'],_0x18e376=_0x2635ae['plugins']['get']('TrackChangesEditing');_0x18e376['enableCommand']('delete');const _0x4e22df=_0x2635ae['commands']['get']('deleteForward');_0x18e376['enableCommand']('deleteForward',(_0xaf2876,_0x44fb22={})=>{const _0x39e25a=_0x2635ae['model']['createSelection'](_0x2635ae['model']['document']['selection']);_0x39e25a['isCollapsed']&&_0x2635ae['model']['modifySelection'](_0x39e25a,{'direction':'forward','unit':_0x44fb22['unit']});const _0x5b83d8=_0x39e25a['getFirstRange'](),_0x48971a=at['fromRange'](_0x5b83d8);let _0x4da61d;_0xaf2876(_0x44fb22),_0x4da61d='$graveyard'==_0x48971a['root']['rootName']?_0x2635ae['model']['createRange'](_0x5b83d8['start']):_0x2635ae['model']['createRange'](_0x48971a['start'],_0x48971a['end']),_0x48971a['detach'](),_0x2635ae['model']['enqueueChange'](_0x4e22df['buffer']['batch'],_0x54118b=>{_0x4e22df['buffer']['lock'](),_0x54118b['setSelection'](_0x54118b['createRange'](_0x4da61d['end'])),_0x4e22df['buffer']['unlock']();});});}},Yt=class extends _0x139d64{afterInit(){const _0x5af2d9=this['editor'];if(!_0x5af2d9['plugins']['has']('ListEditing'))return;const _0x14649d=_0x5af2d9['locale'],_0x369f70=_0x5af2d9['plugins']['get']('TrackChangesEditing'),_0x49256d=_0x5af2d9['plugins']['has']('TodoListEditing'),_0x3d926d=!!_0x5af2d9['config']['get']('list.multiBlock');function _0x1da7ea(_0x35d140){return{'type':'format','content':''+wt(_0x14649d,'*Set\x20format:*\x20%0',_0x35d140)};}function _0xfece8f(_0x190648){return{'type':'format','content':''+wt(_0x14649d,'*Remove\x20format:*\x20%0',_0x190648)};}_0x369f70['enableDefaultAttributesIntegration']('numberedList'),_0x369f70['enableDefaultAttributesIntegration']('bulletedList'),_0x369f70['enableDefaultAttributesIntegration']('customNumberedList'),_0x369f70['enableDefaultAttributesIntegration']('customBulletedList'),_0x369f70['enableDefaultAttributesIntegration']('indentList'),_0x369f70['enableDefaultAttributesIntegration']('outdentList'),_0x369f70['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x369f70['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3d926d&&(_0x369f70['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x369f70['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x49256d&&(_0x369f70['enableDefaultAttributesIntegration']('todoList'),_0x369f70['enableDefaultAttributesIntegration']('checkTodoList'),_0x369f70['descriptionFactory']['registerDescriptionCallback'](_0x1995d5=>{const {data:_0xfc925f}=_0x1995d5;if(_0xfc925f&&'todoListChecked'==_0xfc925f['key'])return{'type':'format','content':_0xfc925f['newValue']?wt(_0x14649d,'*Check\x20item*'):wt(_0x14649d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xcdb355=>{if(_0xcdb355['batch']['isUndo'])return!0x1;let _0x4f1bfc=!0x1;const _0x4bd122=_0x369f70['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57c387=>'todoListChecked'===_0x369f70['_getAttributeKey'](_0x57c387));for(const _0x14d85a of _0x4bd122)'todo'!=_0x14d85a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x369f70['_findSuggestions'](_0x14d85a['getFirstRange'](),'attribute')['find'](_0xb73793=>'listType'===_0x369f70['_getAttributeKey'](_0xb73793['suggestion']))||(_0xcdb355['removeMarker'](_0x14d85a['getFirstMarker']()),_0x4f1bfc=!0x0));return _0x4f1bfc;})),_0x369f70['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x14649d,'FORMAT_INDENT'));const _0x4a7f0d={'type':'format','content':''};_0x369f70['descriptionFactory']['registerDescriptionCallback'](_0x445c80=>{const {data:_0x568c33}=_0x445c80;if(!_0x568c33||'listType'!=_0x568c33['key'])return;let _0x3e9cd2=_0x445c80['head'];for(;_0x3e9cd2;){if(_0x3e9cd2['data']&&(('listStyle'==_0x3e9cd2['data']['key']||'listMarkerStyle'==_0x3e9cd2['data']['key'])&&(_0x3e9cd2['data']['newValue']&&'default'!=_0x3e9cd2['data']['newValue']||'default'!=_0x3e9cd2['data']['oldValue']&&!_0x568c33['newValue'])||!_0x3d926d&&'$elementName'==_0x3e9cd2['data']['key']))return _0x4a7f0d;_0x3e9cd2=_0x3e9cd2['next'];}if(null==_0x568c33['newValue'])switch(_0x568c33['oldValue']){case'bulleted':return _0xfece8f(wt(_0x14649d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfece8f(wt(_0x14649d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfece8f(wt(_0x14649d,'ELEMENT_TODO_LIST'));}switch(_0x568c33['newValue']){case'bulleted':return _0x1da7ea(wt(_0x14649d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1da7ea(wt(_0x14649d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1da7ea(wt(_0x14649d,'ELEMENT_TODO_LIST'));}}),_0x369f70['descriptionFactory']['registerDescriptionCallback'](_0x4c9cb9=>{const {data:_0x22bd99}=_0x4c9cb9;if(_0x22bd99&&'listIndent'==_0x22bd99['key'])return null==_0x22bd99['newValue']||null==_0x22bd99['oldValue']&&0x0==_0x22bd99['newValue']?_0x4a7f0d:void 0x0;}),_0x369f70['descriptionFactory']['registerDescriptionCallback'](_0x4e9007=>{if('attribute'!=_0x4e9007['type'])return;const {data:_0x568534}=_0x4e9007;if(!_0x568534||'listItemId'!=_0x568534['key'])return;const _0x462a2d=Qt(_0x4e9007);return'newValue'==_0x462a2d?{'type':'format','content':wt(_0x14649d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x462a2d?{'type':'format','content':wt(_0x14649d,'*Split:*\x20list\x20item')}:_0x4a7f0d;}),_0x5af2d9['model']['document']['registerPostFixer'](_0x365799=>this['listItemIdFixer'](_0x365799)),_0x5af2d9['model']['document']['registerPostFixer'](_0x59add8=>this['noTrackChangesFixer'](_0x59add8)),_0x5af2d9['model']['document']['on']('change:data',(_0x4e25ef,_0x314d78)=>{if(_0x314d78['isUndo']||!_0x314d78['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x5139d6){if(_0x5139d6['batch']['isUndo']||!_0x5139d6['batch']['isLocal'])return!0x1;let _0x44e44c=!0x1;const _0x4d9a4d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d5487=>_0x1d5487['data']&&'listItemId'==_0x1d5487['data']['key'])['filter'](_0x2081d4=>_0x2081d4['data']['newValue']&&_0x2081d4['data']['oldValue']);for(const _0x167f8c of _0x4d9a4d)Qt(_0x167f8c)||(_0x5139d6['removeMarker'](_0x167f8c['getFirstMarker']()),_0x44e44c=!0x0);return _0x44e44c;}['noTrackChangesFixer'](_0xcf20af){if(_0xcf20af['batch']['isUndo']||!_0xcf20af['batch']['isLocal'])return!0x1;const _0x2d5893=this['editor']['model']['document']['differ'],_0x267a21=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x267a21['trackChangesCommand']['value'])return!0x1;let _0x28040d=!0x1;const _0x40af69=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3ca65d=_0x2d5893['getChanges']()['filter'](_0x4e176e=>'attribute'==_0x4e176e['type'])['filter'](_0x172ce7=>_0x40af69['has'](_0x172ce7['attributeKey']));if(0x0==_0x3ca65d['length'])return _0x28040d;const _0x516393=new Set(_0x2d5893['getMarkersToAdd']()['filter'](_0xbb80de=>{if(!_0xbb80de['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x47609c=nt(_0xbb80de['name'])['subType']['split']('|')[0x0];return _0x40af69['has'](_0x47609c);})['map'](_0x301593=>nt(_0x301593['name'])['id']));for(const _0x4d01f4 of _0x3ca65d){const _0x245c77=_0x267a21['_findSuggestions'](_0x4d01f4['range'],'attribute')['filter'](_0x29f0d5=>{if(_0x29f0d5['meta']['isNextTo'])return!0x1;if(_0x516393['has'](_0x29f0d5['suggestion']['id']))return!0x1;const _0x531364=_0x267a21['_getAttributeKey'](_0x29f0d5['suggestion']);return _0x40af69['has'](_0x531364);})['map'](_0x10491b=>_0x10491b['suggestion']);if(_0x245c77['length']){for(const _0x1e6f7d of _0x245c77)_0xcf20af['removeMarker'](_0x1e6f7d['getFirstMarker']());_0x28040d=!0x0;}}return _0x28040d;}['assureChains'](){const _0x1dd91a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc3b72=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4882ca;const _0x4e7f31=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x31b2b9=>{if(_0x31b2b9['data']['oldRange']||!_0x31b2b9['data']['newRange'])return null;if(!_0x31b2b9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x7a183}=nt(_0x31b2b9['name']);if(!_0x1dd91a['hasSuggestion'](_0x7a183))return null;const _0x62f0fb=_0x1dd91a['getSuggestion'](_0x7a183);return _0xc3b72['includes'](_0x62f0fb['data']['key']);})['map'](_0x3d706a=>{const {id:_0x14e023}=nt(_0x3d706a['name']),_0x3fcc27=_0x1dd91a['getSuggestion'](_0x14e023);return _0x4882ca=_0x3fcc27['attributes']['groupId'],_0x3fcc27['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4e7f31['size'])return;const _0xabbce6=_0x1dd91a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ce518=>'attribute'==_0x5ce518['type']&&_0x5ce518['data']&&_0xc3b72['includes'](_0x5ce518['data']['key'])&&_0x5ce518['attributes']['groupId']!=_0x4882ca)['map'](_0x4a3f79=>({'listItem':_0x4a3f79['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4a3f79['attributes']['groupId']})),_0x17ab73=new Set();for(const {groupId:_0x266b9b,listItem:_0x430fb3}of _0xabbce6)_0x4e7f31['has'](_0x430fb3)&&_0x17ab73['add'](_0x266b9b);for(const _0x31164c of _0x1dd91a['getSuggestions']())_0x17ab73['has'](_0x31164c['attributes']['groupId'])&&_0x31164c['setAttribute']('groupId',_0x4882ca);}_supportLegacySuggestions(){const _0x20face=this['editor'],_0x2f1c51=_0x20face['locale'],_0x42db9e=_0x20face['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x42db9e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x11090c,_0x18d4dd){const _0x798ddb=[];for(let _0x5a2ad7 of _0x11090c)_0x5a2ad7['start']['nodeAfter']===_0x5a2ad7['end']['parent']&&(_0x5a2ad7=_0x20face['model']['createRange'](_0x20face['model']['createPositionAt'](_0x5a2ad7['start']['nodeAfter'],0x0))),_0x798ddb['push'](_0x5a2ad7);_0x20face['model']['change'](_0x32cf34=>{const _0x24b3fb=_0x20face['model']['document']['selection'],_0x280d68=Array['from'](_0x24b3fb['getRanges']())['map'](_0xd8afee=>at['fromRange'](_0xd8afee));_0x32cf34['setSelection'](_0x798ddb),_0x20face['commands']['get'](_0x18d4dd['commandName'])['refresh'](),_0x18d4dd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x20face['execute'](_0x18d4dd['commandName'],..._0x18d4dd['commandParams']),_0x32cf34['setSelection'](_0x280d68);for(const _0x2bee80 of _0x280d68)_0x2bee80['detach']();});}),_0x42db9e['descriptionFactory']['registerElementLabel'](function(_0x2710c6){const _0xdaf67=!_0x20face['model']['schema']['isObject'](_0x2710c6),_0x41424e=_0x2710c6['previousSibling'],_0x2a3633=_0x2710c6['nextSibling'],_0x183c19=_0x2710c6['getAttribute']('listItemId'),_0x54709c=!_0x41424e||_0x41424e['getAttribute']('listItemId')!==_0x183c19,_0x1dc5cb=!_0x2a3633||_0x2a3633['getAttribute']('listItemId')!==_0x183c19;return _0xdaf67&&Boolean(_0x183c19)&&_0x54709c&&_0x1dc5cb;},_0x5bba04=>wt(_0x2f1c51,'ELEMENT_LIST_ITEM',_0x5bba04));}_registerLegacyDescription(){const _0xda861f=this['editor'],_0x582a65=_0xda861f['locale'];function _0x3cfb23(_0x15982c){const _0x45db13=_0xda861f['commands']['get']('bulletedList')['value'],_0x299862=_0xda861f['commands']['get']('numberedList')['value'];return'numberedList'===_0x15982c?_0x45db13:_0x299862;}_0xda861f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4568d7){if('formatBlock'!=_0x4568d7['type'])return;const {data:_0x32bf14}=_0x4568d7;if(!_0x32bf14)return;let _0x7142fb,_0x4da903,_0x1127b9,_0x39e0ca;switch(_0x32bf14['commandName']){case'bulletedList':_0x1127b9=_0x32bf14['commandParams'][0x0]['forceValue'],_0x39e0ca=_0x3cfb23(_0x32bf14['commandName']),_0x7142fb=_0x1127b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x39e0ca&&_0xda861f['config']['get']('list.multiBlock')||(_0x7142fb='*Change\x20to:*\x20%0'),_0x4da903={'type':'format','content':wt(_0x582a65,_0x7142fb,wt(_0x582a65,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1127b9=_0x32bf14['commandParams'][0x0]['forceValue'],_0x39e0ca=_0x3cfb23(_0x32bf14['commandName']),_0x7142fb=_0x1127b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x39e0ca&&_0xda861f['config']['get']('list.multiBlock')||(_0x7142fb='*Change\x20to:*\x20%0'),_0x4da903={'type':'format','content':wt(_0x582a65,_0x7142fb,wt(_0x582a65,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x7142fb='*Indent:*\x20%0',_0x4da903={'type':'format','content':wt(_0x582a65,_0x7142fb,wt(_0x582a65,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x7142fb=function(_0x2ac6b3){const _0xd445c6=_0x2ac6b3['getFirstRange']();let _0x316f11=_0xd445c6['start']['nodeAfter'];for(;_0x316f11&&_0xd445c6['containsItem'](_0x316f11);){if(_0x316f11['getAttribute']('listIndent')>0x0)return!0x1;_0x316f11=_0x316f11['nextSibling'];}return!0x0;}(_0x4568d7)?wt(_0x582a65,'*Format:*\x20remove\x20from\x20%0',wt(_0x582a65,function(_0xed3685){return'ELEMENT_'+_0xed3685['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4568d7))):wt(_0x582a65,'*Outdent:*\x20%0',wt(_0x582a65,'ELEMENT_LIST_ITEM')),_0x4da903={'type':'format','content':_0x7142fb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x32bf14['multipleBlocks']&&(_0x7142fb='*Merge:*\x20%0',_0x4da903={'type':'deletion','content':wt(_0x582a65,_0x7142fb,wt(_0x582a65,'ELEMENT_LIST_ITEM'))});}return _0x4da903;});}};function Qt(_0x59c2e1){let _0x196b2f=_0x59c2e1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x196b2f;){const _0x48fb5d=_0x196b2f['getAttribute']('listItemId');if(!_0x48fb5d)return!0x1;if(_0x48fb5d==_0x59c2e1['data']['newValue'])return'newValue';if(_0x48fb5d==_0x59c2e1['data']['oldValue'])return'oldValue';_0x196b2f=_0x196b2f['previousSibling'];}return!0x1;}var Zt=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2accb2=this['editor']['config']['get']('list.properties'),_0x167edb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2accb2['styles']&&_0x167edb['enableDefaultAttributesIntegration']('listStyle'),_0x2accb2['reversed']&&_0x167edb['enableDefaultAttributesIntegration']('listReversed'),_0x2accb2['startIndex']&&_0x167edb['enableDefaultAttributesIntegration']('listStart');const _0x518182={'type':'format','content':''};_0x167edb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5832be=this['editor']['locale'];_0x167edb['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x5832be,'FORMAT_LIST_REVERSED')),_0x167edb['descriptionFactory']['registerDescriptionCallback'](_0x11cabc=>{const {data:_0x8452e1}=_0x11cabc;if(_0x8452e1&&'listReversed'==_0x8452e1['key'])return null==_0x8452e1['newValue']||0x0==_0x8452e1['newValue']&&null==_0x8452e1['oldValue']?_0x518182:void 0x0;}),_0x167edb['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x5832be,'FORMAT_LIST_START')),_0x167edb['descriptionFactory']['registerDescriptionCallback'](_0x2d9cdf=>{const {data:_0x301f65}=_0x2d9cdf;if(_0x301f65&&'listStart'==_0x301f65['key'])return null==_0x301f65['newValue']||0x1==_0x301f65['newValue']&&null==_0x301f65['oldValue']?_0x518182:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2efca5=>{if(_0x2efca5['batch']['isUndo'])return!0x1;let _0x45920a=!0x1;const _0x535129=_0x167edb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x496580=>{const _0x14d367=_0x167edb['_getAttributeKey'](_0x496580);return'listStart'==_0x14d367||'listReversed'==_0x14d367;});for(const _0x4d011e of _0x535129){const _0x5ffc99=_0x4d011e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x5ffc99&&'customNumbered'!=_0x5ffc99&&(_0x167edb['_findSuggestions'](_0x4d011e['getFirstRange'](),'attribute')['find'](_0xd53a92=>'listType'==_0x167edb['_getAttributeKey'](_0xd53a92['suggestion']))||(_0x2efca5['removeMarker'](_0x4d011e['getFirstMarker']()),_0x45920a=!0x0));}return _0x45920a;}),this['_registerLegacyDescription']();}handleDescriptions(_0x2e1db2){const _0x57f55d=this['editor']['locale'],{data:_0xcd6554}=_0x2e1db2,_0xdb80f8={'type':'format','content':''};if(!_0xcd6554||'listStyle'!=_0xcd6554['key'])return;if(!_0xcd6554['oldValue'])return'default'==_0xcd6554['newValue']?_0xdb80f8:{'type':'format','content':''+wt(_0x57f55d,'*Set\x20format:*\x20%0',wt(_0x57f55d,this['_getTranslationKeyForListStyle'](_0xcd6554['newValue'])))};if(!_0xcd6554['newValue']){if('default'==_0xcd6554['oldValue'])return _0xdb80f8;let _0x16f8e2=_0x2e1db2['head'];for(;_0x16f8e2;){if(_0x16f8e2['data']&&'listType'==_0x16f8e2['data']['key']&&_0x16f8e2['data']['newValue'])return _0xdb80f8;_0x16f8e2=_0x16f8e2['next'];}return{'type':'format','content':''+wt(_0x57f55d,'*Remove\x20format:*\x20%0',wt(_0x57f55d,this['_getTranslationKeyForListStyle'](_0xcd6554['oldValue'])))};}if('default'!=_0xcd6554['newValue'])return{'type':'format','content':''+wt(_0x57f55d,'*Set\x20format:*\x20%0',wt(_0x57f55d,this['_getTranslationKeyForListStyle'](_0xcd6554['newValue'])))};let _0x4d13fb=_0x2e1db2['head'];for(;_0x4d13fb;){if(_0x4d13fb['data']&&'listType'==_0x4d13fb['data']['key']&&_0x4d13fb['data']['newValue']&&_0x4d13fb['data']['oldValue'])return _0xdb80f8;_0x4d13fb=_0x4d13fb['next'];}return{'type':'format','content':wt(_0x57f55d,'*Set\x20format:*\x20%0',wt(_0x57f55d,'ELEMENT_'+_0x2e1db2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x1bcb86=this['editor'],_0x176fa8=_0x1bcb86['locale'];_0x1bcb86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19aa08=>{if('formatBlock'!=_0x19aa08['type'])return;const {data:_0x4b3262}=_0x19aa08;if(!_0x4b3262)return;let _0x4c5128,_0x1cd725;switch(_0x4b3262['commandName']){case'listStyle':_0x4c5128='*Change\x20to:*\x20%0',_0x1cd725={'type':'format','content':wt(_0x176fa8,_0x4c5128,wt(_0x176fa8,this['_getTranslationKeyForListStyle'](_0x4b3262['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c5128=_0x4b3262['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1cd725={'type':'format','content':wt(_0x176fa8,_0x4c5128)};break;case'listStart':_0x4c5128='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1cd725={'type':'format','content':wt(_0x176fa8,_0x4c5128,_0x4b3262['commandParams'][0x0]['startIndex'])};}return _0x1cd725;});}_getTranslationKeyForListStyle(_0x2342ef){return'ELEMENT_'+(_0x2e8b91=_0x2342ef,Jt['includes'](_0x2e8b91)?'bulleted':te['includes'](_0x2e8b91)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x2342ef['toUpperCase']()['replace'](/-/g,'_');var _0x2e8b91;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x139d64{afterInit(){const _0x3bb716=this['editor'];_0x3bb716['commands']['get']('emoji')&&_0x3bb716['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x139d64{static get requires(){return[_t];}init(){const _0x2b12f3=this['editor'],_0x4a5a08=_0x2b12f3['plugins']['get']('TrackChangesEditing'),_0x247420=_0x2b12f3['commands']['get']('enter');_0x4a5a08['enableCommand']('enter',()=>{_0x2b12f3['model']['change'](_0xd4cd33=>{const _0x5ef31e=_0x2b12f3['model']['document']['selection'],_0x313142=_0x5ef31e['getFirstPosition'](),_0x47c93f=at['fromRange'](_0x5ef31e['getFirstRange']());if(_0x247420['enterBlock'](_0xd4cd33)){const _0xaed4ff=_0x2b12f3['model']['createPositionAt'](_0x313142['parent']['nextSibling'],0x0),_0x2e71d8=_0xd4cd33['createRange'](_0x313142,_0xaed4ff);_0x4a5a08['markInsertion'](_0x2e71d8);}else _0xd4cd33['setSelection'](_0xd4cd33['createRange'](_0x47c93f['end']));_0x47c93f['detach'](),_0x247420['fire']('afterExecute',{'writer':_0xd4cd33});});});}},ie=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1afea8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1afea8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1afea8['enableCommand']('findNext'),_0x1afea8['enableCommand']('findPrevious'),_0x1afea8['enableCommand']('replace'),_0x1afea8['enableCommand']('replaceAll');}['handleFindCommand'](_0x56fa28,_0xe82411,_0x230c74={}){const _0x22efd5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x56fa28(_0x429879=>{let _0x29bcd0=('string'==typeof _0xe82411?_0x22efd5['findByTextCallback'](_0xe82411,_0x230c74):_0xe82411)(_0x429879);Array['isArray'](_0x29bcd0)&&(_0x29bcd0={'results':_0x29bcd0,'searchText':'string'==typeof _0xe82411?_0xe82411:''});const _0x1f552a=_0x29bcd0['results']['filter'](_0x7d3638=>!0x1===this['_isInDeletionRange'](_0x7d3638,_0x429879['item']));return{..._0x29bcd0,'results':_0x1f552a};},_0x230c74);}_isInDeletionRange(_0x3bcac8,_0x4c2098){const _0x2a5843=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c2098,_0x3bcac8['start']),this['editor']['model']['createPositionAt'](_0x4c2098,_0x3bcac8['end']));for(const _0x3cfeb2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2a5843['getIntersection'](_0x3cfeb2['getRange']()))return!0x0;return!0x1;}};const se=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var re=class extends _0x139d64{afterInit(){const _0x1c5dc9=this['editor']['locale'],_0x1cfc63=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x271c9c,commandName:_0x3fb715}of se)this['editor']['plugins']['has'](_0x271c9c)&&_0x1cfc63['enableDefaultAttributesIntegration'](_0x3fb715);_0x1cfc63['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x1c5dc9,'FORMAT_FONT_SIZE')),_0x1cfc63['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x1c5dc9,'FORMAT_FONT_FAMILY')),_0x1cfc63['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x1c5dc9,'FORMAT_FONT_COLOR')),_0x1cfc63['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x1c5dc9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4ccf55=this['editor'],_0x162559=_0x4ccf55['locale'];_0x4ccf55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59949d=>{const _0x1eec20=_0x162559['t'];if('formatInline'!=_0x59949d['type'])return;const {data:_0x41761c}=_0x59949d;if(null!=_0x41761c){if('fontSize'==_0x41761c['commandName']){const _0x3b6866=_0x41761c['commandParams'][0x0]['value'];if(_0x3b6866){const _0x37be37=_0x1eec20(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5da668=>_0x5da668['model']==_0x3b6866)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x162559,'*Set\x20font\x20size:*\x20%0',_0x37be37)};}return{'type':'format','content':wt(_0x162559,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x41761c['commandName']){const _0x55db9c=_0x41761c['commandParams'][0x0]['value'];return _0x55db9c?{'type':'format','content':wt(_0x162559,'*Set\x20font\x20family:*\x20%0',_0x55db9c)}:{'type':'format','content':wt(_0x162559,'*Reset\x20font\x20family*')};}if('fontColor'==_0x41761c['commandName']){const _0x48c612=_0x41761c['commandParams'][0x0]['value'];if(_0x48c612){const _0xfaa965=_0xf264e0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2ed5e9=>_0x2ed5e9['model']==_0x48c612);let _0x302d44=_0x48c612,_0x4a8ff7='';return _0xfaa965&&(_0x302d44=_0xfaa965['label'],_0x4a8ff7=_0x56ef0d(_0x162559,_0x302d44)['toLowerCase']()),{'type':'format','content':wt(_0x162559,'*Set\x20font\x20color:*\x20%0',_0x4a8ff7)['trim'](),'color':{'value':_0x48c612,'title':_0x4a8ff7||_0x302d44}};}return{'type':'format','content':wt(_0x162559,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x41761c['commandName']){const _0xb8db75=_0x41761c['commandParams'][0x0]['value'];if(_0xb8db75){const _0x48b74c=_0xf264e0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4ff59c=>_0x4ff59c['model']==_0xb8db75);let _0x3e9613=_0xb8db75,_0x21bf52='';return _0x48b74c&&(_0x3e9613=_0x48b74c['label'],_0x21bf52=_0x56ef0d(_0x162559,_0x3e9613)['toLowerCase']()),{'type':'format','content':wt(_0x162559,'*Set\x20font\x20background\x20color:*\x20%0',_0x21bf52)['trim'](),'color':{'value':_0xb8db75,'title':_0x21bf52||_0x3e9613}};}return{'type':'format','content':wt(_0x162559,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x139d64{afterInit(){const {plugins:_0x3f6169}=this['editor'];_0x3f6169['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3f6169['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x1b8857,plugins:_0x4c0bf6,commands:_0x838868}=this['editor'],_0xd0315f=_0x4c0bf6['get']('TrackChangesEditing');_0x838868['get']('footnotesStyle')&&_0xd0315f['enableDefaultAttributesIntegration']('footnotesStyle'),_0x838868['get']('footnotesStart')&&_0xd0315f['enableDefaultAttributesIntegration']('footnotesStart'),_0xd0315f['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0x1b8857,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xd0315f['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0x1b8857,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x459520=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1c3acb,commands:_0x31fa83}=this['editor'];_0x31fa83['get']('insertFootnote')&&_0x459520['enableCommand']('insertFootnote'),_0x459520['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2dd82a=>wt(_0x1c3acb,'ELEMENT_FOOTNOTE_REF',_0x2dd82a)),_0x459520['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4b90b6=>wt(_0x1c3acb,'ELEMENT_FOOTNOTE_DEFINITION',_0x4b90b6)),_0x459520['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x414c4f=>wt(_0x1c3acb,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x414c4f));}},ae=class extends _0x139d64{afterInit(){const _0x35fcb5=this['editor'],_0x15000a=_0x35fcb5['plugins']['get']('TrackChangesEditing'),_0x4b52d4=_0x35fcb5['commands']['get']('copyFormat'),_0x5dd83c=_0x35fcb5['commands']['get']('pasteFormat');_0x4b52d4&&_0x5dd83c&&(_0x15000a['enableDefaultAttributesIntegration']('pasteFormat'),_0x15000a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3a9399=this['editor'],_0x3b7d68=_0x3a9399['locale'];_0x3a9399['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2090a6=>{if('formatBlock'!=_0x2090a6['type']&&'formatInline'!=_0x2090a6['type'])return;const {data:_0xa3b474}=_0x2090a6;if(_0xa3b474&&'pasteFormat'===_0xa3b474['commandName']){const _0x4c6220=[],_0x26c9f9=_0xa3b474['commandParams'][0x0];for(const [_0x47a446,_0x15e012]of Object['entries'](_0x26c9f9))_0x4c6220['push'](ce(_0x3a9399,_0x47a446,_0x15e012));return _0x4c6220['length']?{'type':'format','content':wt(_0x3b7d68,'*Set\x20format\x20to:*\x20%0',_0x4c6220['join'](',\x20'))}:{'type':'format','content':wt(_0x3b7d68,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x351536,_0x44b228,_0x32dde9){const _0x55fcde=_0x351536['locale'],_0x362efa=_0x55fcde['t'],_0x44a94d=_0x44b228['split'](/(?=[A-Z])/)['join']('\x20'),_0x2751f2=_0x362efa(_0x44a94d['charAt'](0x0)['toUpperCase']()+_0x44a94d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x32dde9)return _0x2751f2;if('fontColor'===_0x44b228||'fontBackgroundColor'===_0x44b228){const _0x1e44bf=_0xf264e0(_0x351536['config']['get']('fontColor.colors'))['find'](_0x13b1cb=>_0x13b1cb['model']==_0x32dde9);return _0x2751f2+'\x20('+(_0x1e44bf?_0x56ef0d(_0x55fcde,_0x1e44bf['label'])['toLowerCase']():_0x32dde9)+')';}if('fontSize'===_0x44b228&&isNaN(parseFloat(_0x32dde9))){const _0x58fe5d=_0x351536['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x351536['config']['get']('fontSize.options'))['find'](_0x33e055=>_0x33e055['model']==_0x32dde9);return _0x2751f2+'\x20('+(_0x58fe5d?_0x362efa(_0x58fe5d['title'])['toLowerCase']():_0x32dde9)+')';}return _0x2751f2+'\x20('+_0x32dde9+')';}var le=class extends _0x139d64{afterInit(){const _0x49a558=this['editor'];if(!_0x49a558['plugins']['has']('GeneralHtmlSupport')||!_0x49a558['plugins']['has']('DataSchema'))return;const _0x430234=_0x49a558['plugins']['get']('TrackChangesEditing'),_0x2c6506=_0x49a558['plugins']['get']('GeneralHtmlSupport'),_0x977adf=_0x49a558['plugins']['get']('DataSchema'),_0x528e5b=_0x49a558['locale'],_0x58abfb=new Set(['htmlContent']);for(const _0x447e8b of _0x977adf['getDefinitionsForView'](/.*/,!0x1)){const _0x4f54ac=_0x447e8b['view'],_0x50a2a6=_0x2c6506['getGhsAttributeNameForElement'](_0x4f54ac);_0x58abfb['add'](_0x50a2a6),!_0x447e8b['isInline']||_0x447e8b['isObject']||'appliesToBlock'in _0x447e8b&&_0x447e8b['appliesToBlock']||_0x430234['descriptionFactory']['registerAttributeLabel'](_0x50a2a6,_0x4f54ac),_0x447e8b['model']['startsWith']('html')&&_0x430234['descriptionFactory']['registerElementLabel'](_0x447e8b['model'],_0x31701a=>wt(_0x528e5b,'ELEMENT_HTML_TAG',[_0x31701a,_0x4f54ac]));}_0x430234['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x528e5b,'FORMAT_RAW_HTML_CONTENT')),_0x430234['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x528e5b,'FORMAT_HTML_LIST_ITEM')),_0x430234['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x528e5b,'FORMAT_HTML_BULLETED_LIST')),_0x430234['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x528e5b,'FORMAT_HTML_NUMBERED_LIST')),_0x430234['descriptionFactory']['registerDescriptionCallback'](_0x4d27c6=>{if('attribute'!==_0x4d27c6['type'])return;const _0x247c35=_0x4d27c6['data'];if(!_0x247c35||!_0x58abfb['has'](_0x247c35['key']))return;if('htmlContent'===_0x247c35['key'])return{'type':'format','content':wt(_0x528e5b,'*Change\x20%0\x20content*',wt(_0x528e5b,'ELEMENT_RAW_HTML'))};const {setItems:_0x36b9fc,removeItems:_0x4d9425}=function(_0x4da9b7,_0x54e955,_0x2836a7){const _0x1339bf=[],_0x508697=[],_0x586754=_0x4da9b7['styles']??{},_0x387b01=_0x54e955['styles']??{};for(const _0xbf0238 of new Set([...Object['keys'](_0x586754),...Object['keys'](_0x387b01)]))_0x586754[_0xbf0238]!==_0x387b01[_0xbf0238]&&(void 0x0===_0x387b01[_0xbf0238]?_0x508697['push'](_0xbf0238):_0x1339bf['push'](_0xbf0238+'\x20('+_0x387b01[_0xbf0238]+')'));const _0x5be2f9=wt(_0x2836a7,'FORMAT_HTML_CLASS'),_0x586b28=new Set(_0x4da9b7['classes']??[]),_0x530cd7=new Set(_0x54e955['classes']??[]),_0x42ffe5=[..._0x530cd7]['some'](_0x34b1bf=>!_0x586b28['has'](_0x34b1bf)),_0x51a10e=[..._0x586b28]['some'](_0x1ffaef=>!_0x530cd7['has'](_0x1ffaef));_0x42ffe5&&_0x1339bf['push'](_0x5be2f9),_0x51a10e&&_0x508697['push'](_0x5be2f9);const _0x534e47=wt(_0x2836a7,'FORMAT_HTML_ATTRIBUTE'),_0x344b13=_0x4da9b7['attributes']??{},_0x1eab08=_0x54e955['attributes']??{};let _0xbef936=!0x1,_0x474ff6=!0x1;for(const _0x1ec609 of new Set([...Object['keys'](_0x344b13),...Object['keys'](_0x1eab08)]))_0x344b13[_0x1ec609]!==_0x1eab08[_0x1ec609]&&(void 0x0===_0x1eab08[_0x1ec609]?_0x474ff6=!0x0:_0xbef936=!0x0);return _0xbef936&&_0x1339bf['push'](_0x534e47),_0x474ff6&&_0x508697['push'](_0x534e47),{'setItems':_0x1339bf,'removeItems':_0x508697};}(_0x247c35['oldValue']??{},_0x247c35['newValue']??{},_0x528e5b);if(!_0x36b9fc['length']&&!_0x4d9425['length'])return;const _0x5d9a8a=[];return _0x36b9fc['length']&&_0x5d9a8a['push'](wt(_0x528e5b,'*Set\x20format:*\x20%0',_0x36b9fc['join'](',\x20'))),_0x4d9425['length']&&_0x5d9a8a['push'](wt(_0x528e5b,'*Remove\x20format:*\x20%0',_0x4d9425['join'](',\x20'))),{'type':'format','content':_0x5d9a8a['join']('\x0a')};});}},ue=class extends _0x139d64{_headingOptions;afterInit(){const _0x261185=this['editor'];if(!_0x261185['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x261185['config']['get']('heading.options');const _0x4bbcda=_0x261185['locale'],_0x3910a3=_0x261185['plugins']['get']('TrackChangesEditing');_0x3910a3['enableDefaultAttributesIntegration']('heading');for(const _0x3002a6 of this['_headingOptions'])'paragraph'!=_0x3002a6['model']&&_0x3910a3['descriptionFactory']['registerElementLabel'](_0x3002a6['model'],_0x30d58c=>{const _0x50f4a8=this['_getHeadingLevel'](_0x3002a6['model']);return null!==_0x50f4a8?_0x2cf3a5(_0x30d58c,_0x50f4a8):_0xaa430c(_0x30d58c,_0x3002a6['title']);});function _0x2cf3a5(_0x5c1656,_0x397b71){return wt(_0x4bbcda,'ELEMENT_HEADING',[_0x5c1656,_0x397b71]);}function _0xaa430c(_0x4b27ae,_0x3ba026){return wt(_0x4bbcda,'ELEMENT_HEADING_CUSTOM',[_0x4b27ae,_0x3ba026]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3653ea=this['editor'],_0x1a3d56=_0x3653ea['locale'];function _0x2157c7(_0x459890,_0x46fea4){return wt(_0x1a3d56,'ELEMENT_HEADING_CUSTOM',[_0x459890,_0x46fea4]);}_0x3653ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe094ac=>{if('formatBlock'!=_0xe094ac['type'])return;const {data:_0x4902ce}=_0xe094ac;if(_0x4902ce&&'heading'==_0x4902ce['commandName']){const _0x3ee67f=_0x4902ce['commandParams'][0x0]['value'],_0x5a426e=this['_getHeadingLevel'](_0x3ee67f);if(null!==_0x5a426e)return{'type':'format','content':wt(_0x1a3d56,'*Change\x20to:*\x20%0',(_0x56c8ef=0x1,_0x16e9bb=_0x5a426e,wt(_0x1a3d56,'ELEMENT_HEADING',[_0x56c8ef,_0x16e9bb])))};const _0x25d1fb=this['_headingOptions']['find'](_0x9e3269=>_0x9e3269['model']===_0x3ee67f)['title'];return{'type':'format','content':wt(_0x1a3d56,'*Change\x20to:*\x20%0',_0x2157c7(0x1,_0x25d1fb))};}var _0x56c8ef,_0x16e9bb;});}_getHeadingLevel(_0x242986){const _0x5bdcb1=_0x242986['match'](/^heading(\d+)/);if(_0x5bdcb1)return _0x5bdcb1[0x1];const _0x2ffd07=this['_headingOptions']?.['find'](_0x37b0b1=>_0x37b0b1['model']==_0x242986);if(_0x2ffd07&&_0x2ffd07['view']){const _0x275f47=_0x2ffd07['view'],_0x11e972=(_0x275f47['name']??_0x275f47)['match'](/^h(\d+)/);if(_0x11e972)return _0x11e972[0x1];}return null;}},de=class extends _0x139d64{afterInit(){const _0x248e16=this['editor'];if(!_0x248e16['plugins']['has']('HighlightEditing'))return;const _0x130817=_0x248e16['plugins']['get']('TrackChangesEditing'),_0x3e6038=_0x248e16['locale'];_0x130817['enableDefaultAttributesIntegration']('highlight'),_0x130817['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x3e6038,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xec6f=this['editor'],_0x342f88=_0xec6f['locale'];_0xec6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51704c=>{if('formatInline'!=_0x51704c['type'])return;const {data:_0x2f7858}=_0x51704c;if(_0x2f7858&&'highlight'==_0x2f7858['commandName']){const _0x3f337e=_0x342f88['t'],_0x2ed512=_0x2f7858['commandParams'][0x0]['value'];if(_0x2ed512){const _0x1e7fd0=_0xec6f['config']['get']('highlight.options')['find'](_0x32fff8=>_0x32fff8['model']==_0x2ed512),_0x785b76=_0x3f337e(_0x1e7fd0['title'])['toLowerCase']();return{'type':'format','content':wt(_0x342f88,'*Set\x20highlight:*\x20%0',_0x785b76),'color':{'value':_0x1e7fd0['color'],'title':_0x1e7fd0['title']}};}return{'type':'format','content':wt(_0x342f88,'*Remove\x20highlight*',wt(_0x342f88,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x139d64{afterInit(){const _0x1e8d95=this['editor'];if(!_0x1e8d95['plugins']['has']('HorizontalLineEditing'))return;_0x1e8d95['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf32c70=_0x1e8d95['plugins']['get']('TrackChangesEditing'),_0x396c54=_0x1e8d95['locale'];_0xf32c70['descriptionFactory']['registerElementLabel']('horizontalLine',_0x112e7e=>wt(_0x396c54,'ELEMENT_HORIZONTAL_LINE',_0x112e7e));}},ge=class extends _0x139d64{afterInit(){const _0x2bb1ad=this['editor'];if(!_0x2bb1ad['plugins']['has']('HtmlEmbed'))return;const _0x5d9edf=_0x2bb1ad['plugins']['get']('TrackChangesEditing'),_0x2cc748=_0x2bb1ad['locale'];_0x5d9edf['descriptionFactory']['registerElementLabel']('rawHtml',_0x47bd82=>wt(_0x2cc748,'ELEMENT_HTML_EMBED',_0x47bd82)),_0x5d9edf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d9edf['descriptionFactory']['registerDescriptionCallback'](_0x6fd7ba=>{if('attribute'!=_0x6fd7ba['type'])return;const {data:_0x1fb581}=_0x6fd7ba;if(_0x1fb581&&'value'==_0x1fb581['key']&&_0x6fd7ba['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46ee28=wt(_0x2cc748,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x2cc748,'*Change\x20%0\x20content*',_0x46ee28)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4d744a=this['editor'],_0x38f778=_0x4d744a['locale'];_0x4d744a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7cc492=>{if('formatBlock'!=_0x7cc492['type'])return;const {data:_0x2915b2}=_0x7cc492;if(_0x2915b2&&'htmlEmbed'==_0x2915b2['commandName']){const _0xb48b89=wt(_0x38f778,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x38f778,'*Change\x20%0\x20content*',_0xb48b89)};}});}},fe=class extends _0x139d64{afterInit(){const _0x3596b5=this['editor'];if(!_0x3596b5['plugins']['has']('ImageEditing'))return;const _0x3441df=_0x3596b5['plugins']['get']('TrackChangesEditing'),_0x1be620=_0x3596b5['plugins']['get']('ImageUtils'),_0x3f8018=_0x3596b5['locale'];_0x3441df['enableCommand']('insertImage'),_0x3441df['descriptionFactory']['registerElementLabel']('imageBlock',_0x43aed4=>wt(_0x3f8018,'ELEMENT_IMAGE',_0x43aed4)),_0x3441df['descriptionFactory']['registerElementLabel']('imageInline',_0x327aad=>wt(_0x3f8018,'ELEMENT_INLINE_IMAGE',_0x327aad)),_0x3441df['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0x3f8018,'ELEMENT_CAPTION')),_0x3596b5['plugins']['has']('ImageUploadEditing')&&_0x3441df['enableCommand']('uploadImage'),_0x3596b5['plugins']['has']('ImageBlockEditing')&&_0x3596b5['plugins']['has']('ImageInlineEditing')&&(_0x3441df['enableCommand']('imageTypeInline',(_0x2fcea5,_0x3b5070)=>{const _0x3bec35=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']);_0x3596b5['model']['change'](()=>{_0x3441df['markBlockFormat'](_0x3bec35,{'commandName':'imageTypeInline','commandParams':[_0x3b5070]},[],'convertBlockImageToInline');});}),_0x3441df['enableCommand']('imageTypeBlock',(_0x207650,_0x162e45)=>{_0x3596b5['model']['change'](_0x7a995e=>{let _0x35cbbf=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']),_0x3e3f7f=_0x7a995e['createRangeOn'](_0x35cbbf);const _0xb96cd4=ot['fromPosition'](_0x3e3f7f['start'],'toPrevious'),_0x1341ca=ot['fromPosition'](_0x3e3f7f['end'],'toNext');_0x3441df['forceDefaultExecution'](()=>_0x207650(_0x162e45)),_0x35cbbf=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']),_0x3e3f7f=_0x7a995e['createRangeOn'](_0x35cbbf);const _0x3247e3=_0x7a995e['createRange'](_0xb96cd4,_0x1341ca);_0xb96cd4['detach'](),_0x1341ca['detach'](),_0x3441df['markBlockFormat'](_0x35cbbf,{'commandName':'imageTypeInline','commandParams':[_0x162e45]},[],'convertInlineImageToBlock'),_0x3247e3['start']['isBefore'](_0x3e3f7f['start'])&&_0x3441df['markInsertion'](_0x7a995e['createRange'](_0x3247e3['start'],_0x3e3f7f['start']),'convertInlineImageToBlock'),_0x3e3f7f['end']['isBefore'](_0x3247e3['end'])&&_0x3441df['markInsertion'](_0x7a995e['createRange'](_0x3e3f7f['end'],_0x3247e3['end']),'convertInlineImageToBlock');});}),_0x3441df['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3441df['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3441df['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3441df['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3441df['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3441df['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x58be0a])=>{const _0x2cbe7b=_0x3441df['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3af3d8=_0x58be0a['start'],_0x5e9c28=_0x58be0a['end'];const _0x524687=_0x3596b5['model']['schema']['getNearestSelectionRange'](_0x3af3d8,'backward'),_0x2b707b=_0x3596b5['model']['schema']['getNearestSelectionRange'](_0x5e9c28,'forward');_0x524687['isCollapsed']&&(_0x3af3d8=_0x524687['start']),_0x2b707b['isCollapsed']&&(_0x5e9c28=_0x2b707b['end']),_0x2cbe7b([_0x3596b5['model']['createRange'](_0x3af3d8,_0x5e9c28)]);}),_0x3441df['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2130ef),_0x3441df['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2130ef)),_0x3596b5['plugins']['has']('ImageCaptionEditing')&&(_0x3441df['enableCommand']('toggleImageCaption',(_0x2a3642,_0x334519)=>{const _0x41dde8=_0x3596b5['plugins']['get']('ImageCaptionUtils');let _0x181b6b=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']),_0x457bb0=_0x41dde8['getCaptionFromImageModelElement'](_0x181b6b);_0x3596b5['model']['change'](()=>{if(_0x457bb0)return void _0x3441df['markDeletion'](_0x3596b5['model']['createRangeOn'](_0x457bb0));const _0x2c8307=_0x1be620['isBlockImage'](_0x181b6b);_0x2a3642(_0x334519),_0x181b6b=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']),_0x457bb0=_0x41dde8['getCaptionFromImageModelElement'](_0x181b6b),_0x3441df['markInsertion'](_0x3596b5['model']['createRangeOn'](_0x457bb0),_0x2c8307?null:'imageCaption');});}),_0x3441df['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2130ef));const _0x25c5b7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1675be(_0x278403,_0x153839){const _0x3322e6=_0x25c5b7['findIndex'](({type:_0x26aeae,subType:_0x24374b})=>_0x278403['type']==_0x26aeae&&_0x278403['subType']==_0x24374b),_0x30f4b5=_0x25c5b7['findIndex'](({type:_0x52ca82,subType:_0x1572e1})=>_0x153839['type']==_0x52ca82&&_0x153839['subType']==_0x1572e1);if(_0x3322e6<0x0||_0x30f4b5<0x0)return!0x1;const _0x4c21b1=_0x278403['getFirstRange'](),_0x1fc6fd=_0x153839['getFirstRange']();if((0x0==_0x3322e6||0x1==_0x3322e6)&&0x2==_0x30f4b5&&_0x4c21b1['isIntersecting'](_0x1fc6fd))return!0x0;if(0x2==_0x3322e6&&0x3==_0x30f4b5){const _0x11d435=_0x3441df['_findSuggestions'](_0x4c21b1,'insertion')['filter'](({suggestion:_0x40268a,meta:_0x5878d2})=>_0x5878d2['isOwn']&&'convertInlineImageToBlock'==_0x40268a['subType']);if(_0x11d435['length']>0x1&&_0x1fc6fd['end']['isEqual'](_0x4c21b1['start']))return!0x0;if(0x1==_0x11d435['length']&&(_0x4c21b1['start']['isEqual'](_0x1fc6fd['end'])||_0x4c21b1['end']['isEqual'](_0x1fc6fd['start'])))return!0x0;}if(0x3==_0x3322e6&&0x3==_0x30f4b5&&_0x4c21b1['start']['isBefore'](_0x1fc6fd['start'])){const _0x2e15e5=_0x4c21b1['end']['nodeAfter'],_0x54a242=_0x1fc6fd['start']['nodeBefore'];return _0x1be620['isBlockImage'](_0x2e15e5)&&_0x2e15e5===_0x54a242;}return!0x1;}function _0x2130ef(_0x18d97d,_0x369180){return _0x1675be(_0x18d97d,_0x369180)?[_0x18d97d,_0x369180]:_0x1675be(_0x369180,_0x18d97d)?[_0x369180,_0x18d97d]:null;}_0x3596b5['plugins']['has']('ImageResize')&&(_0x3441df['enableDefaultAttributesIntegration']('resizeImage'),_0x3441df['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0x3f8018,'FORMAT_IMAGE_SIZE'))),_0x3596b5['plugins']['has']('ImageTextAlternativeEditing')&&_0x3441df['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3596b5['plugins']['has']('PictureEditing')&&_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x1bb36f=>{if('attribute'!=_0x1bb36f['type'])return;const {data:_0x5ba611}=_0x1bb36f;return _0x5ba611&&'sources'==_0x5ba611['key']?{'type':'format','content':''}:void 0x0;}),_0x3596b5['plugins']['has']('ImageSizeAttributes')&&_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x44ca96=>{if('attribute'!=_0x44ca96['type'])return;const {data:_0x2c944d}=_0x44ca96;return!_0x2c944d||'width'!=_0x2c944d['key']&&'height'!=_0x2c944d['key']?void 0x0:{'type':'format','content':''};}),_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x1ba718=>{if(_0x25c5b7['find'](({type:_0x56a5c7,subType:_0x281249})=>_0x1ba718['type']==_0x56a5c7&&_0x1ba718['subType']==_0x281249))return _0x1ba718['previous']?{}:void 0x0;}),_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x71bf16=>{if('insertion'==_0x71bf16['type']||'deletion'==_0x71bf16['type']){const _0x40745a=_0x71bf16['getContainedElement']();if(_0x40745a&&_0x40745a['is']('element','caption'))return{'type':'insertion'==_0x71bf16['type']?'addObject':'removeObject','element':_0x40745a,'quantity':0x1};}}),_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x487dc8=>'formatBlock'==_0x487dc8['type']&&'convertInlineImageToBlock'==_0x487dc8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x487dc8['type']&&'convertBlockImageToInline'==_0x487dc8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x1d5eaa=>{if('attribute'!=_0x1d5eaa['type'])return;const {data:_0x330ff2}=_0x1d5eaa;if(!_0x330ff2||'alt'!=_0x330ff2['key'])return;const _0x1e6235=_0x330ff2['newValue'];return _0x1e6235?{'type':'format','content':wt(_0x3f8018,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e6235+'\x22')}:{'type':'format','content':wt(_0x3f8018,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d8d68=this['editor'],_0x2949b7=_0x5d8d68['locale'];_0x5d8d68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bed05=>{if('formatBlock'!=_0x3bed05['type']&&'formatInline'!=_0x3bed05['type'])return;const {data:_0x568b87}=_0x3bed05;if(_0x568b87){if('imageTextAlternative'==_0x568b87['commandName']){const _0x45a172=_0x568b87['commandParams'][0x0]['newValue'];return _0x45a172?{'type':'format','content':wt(_0x2949b7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45a172+'\x22')}:{'type':'format','content':wt(_0x2949b7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x568b87['commandName']){const _0x23e70f=_0x568b87['commandParams'][0x0]['width'];return _0x23e70f?{'type':'format','content':wt(_0x2949b7,'*Set\x20image\x20width:*\x20%0',_0x23e70f)}:{'type':'format','content':wt(_0x2949b7,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5007aa=this['editor']['locale'],_0x218d03=this['editor']['plugins']['get']('TrackChangesEditing');_0x218d03['enableDefaultAttributesIntegration']('replaceImageSource'),_0x218d03['descriptionFactory']['registerDescriptionCallback'](_0x46ba54=>{if('attribute'!=_0x46ba54['type'])return;const {data:_0x3cad25}=_0x46ba54;return _0x3cad25&&'src'==_0x3cad25['key']?_0x3cad25['newValue']&&_0x3cad25['oldValue']?{'type':'format','content':wt(_0x5007aa,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x27d98a=this['editor']['plugins']['get']('TrackChangesEditing');_0x27d98a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x27d98a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27d98a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x27d98a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x37ff59=this['editor'],_0x2fce49=_0x37ff59['locale'];_0x37ff59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1531ea=>{if('formatBlock'!=_0x1531ea['type']&&'formatInline'!=_0x1531ea['type'])return;const {data:_0x2903dd}=_0x1531ea;return _0x2903dd&&'replaceImageSource'==_0x2903dd['commandName']?{'type':'format','content':wt(_0x2fce49,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x139d64{afterInit(){const _0x5bbc0f=this['editor'];if(!_0x5bbc0f['plugins']['has']('ImageStyleEditing'))return;const _0x3b38a8=_0x5bbc0f['plugins']['get']('TrackChangesEditing'),_0x45cec1=_0x5bbc0f['plugins']['get']('ImageUtils'),_0x4208a6={};_0x3b38a8['enableCommand']('imageStyle',(_0x54b20c,_0xbb2fec)=>{const _0xc71568=_0x5bbc0f['plugins']['get']('Users')['me'],_0x544301=_0x5bbc0f['commands']['get']('imageStyle');let _0x479021=_0x45cec1['getClosestSelectedImageElement'](_0x5bbc0f['model']['document']['selection']),_0x539b85=_0x5bbc0f['model']['createRangeOn'](_0x479021),_0x38379b=_0x544301['value'];if(_0x38379b==_0xbb2fec['value'])return;if(_0xbb2fec['value']&&_0x45cec1['isInlineImage'](_0x479021)&&!_0x544301['isStyleEnabled'](_0xbb2fec['value']))return;const _0x49242c={'commandName':'imageStyle','commandParams':[_0xbb2fec],'formatGroupId':_0xa3c351()};_0x5bbc0f['model']['change'](()=>{if(_0x3b38a8['getSuggestions']()['filter'](_0x3af468=>_0x3af468['isInContent']&&_0xc71568==_0x3af468['author']&&('formatBlock'==_0x3af468['type']||'formatInline'==_0x3af468['type'])&&('imageStylePreApply'==_0x3af468['subType']||'imageStylePostApply'==_0x3af468['subType'])&&_0x3af468['getFirstRange']()['isEqual'](_0x539b85))['forEach'](_0xf9261a=>_0x3b38a8['discardSuggestion'](_0xf9261a['head'])),_0x479021=_0x45cec1['getClosestSelectedImageElement'](_0x5bbc0f['model']['document']['selection']),_0x539b85=_0x5bbc0f['model']['createRangeOn'](_0x479021),_0x544301['refresh'](),_0x5bbc0f['commands']['get']('imageTypeInline')['refresh'](),_0x5bbc0f['commands']['get']('imageTypeBlock')['refresh'](),_0x38379b=_0x544301['value'],_0x38379b!=_0xbb2fec['value'])return _0x45cec1['isInlineImage'](_0x479021)&&_0x544301['shouldConvertImageType'](_0xbb2fec['value'],_0x479021)?(_0x54b20c({..._0xbb2fec,'setImageSizes':!0x1}),_0x479021=_0x45cec1['getClosestSelectedImageElement'](_0x5bbc0f['model']['document']['selection']),void _0x3b38a8['markBlockFormat'](_0x479021,{..._0x49242c,'commandReversedParams':[{'value':_0x38379b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45cec1['isBlockImage'](_0x479021)?_0x3b38a8['markBlockFormat'](_0x479021,_0x49242c,[],'imageStylePostApply'):_0x3b38a8['markInlineFormat'](_0x539b85,_0x49242c,'imageStylePostApply'));});});for(const _0x51a68e of _0x5bbc0f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4208a6[_0x51a68e['name']]=_0x51a68e['title']['toLowerCase']();_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4387d8])=>{_0x45cec1['setImageNaturalSizeAttributes'](_0x4387d8['getContainedElement']());}),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xbaace3,_0x591cca)=>{_0x3b38a8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xbaace3,{'commandName':_0x591cca['commandName'],'commandParams':_0x591cca['commandReversedParams']});}),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x17c080,_0x7f81b4){return _0x41029d(_0x17c080,_0x7f81b4)?[_0x17c080,_0x7f81b4]:_0x41029d(_0x7f81b4,_0x17c080)?[_0x7f81b4,_0x17c080]:null;});const _0x40881a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41029d(_0x45bc2,_0x44520b){const _0x1a2379=_0x40881a['findIndex'](({type:_0x2b01b7,subType:_0x4e10f4})=>_0x45bc2['type']==_0x2b01b7&&_0x45bc2['subType']==_0x4e10f4),_0x1b936a=_0x40881a['findIndex'](({type:_0x1de19c,subType:_0x3febd2})=>_0x44520b['type']==_0x1de19c&&_0x44520b['subType']==_0x3febd2);if(_0x1a2379<0x0||_0x1b936a<0x0)return!0x1;const _0xccc167=_0x45bc2['getFirstRange'](),_0x44f957=_0x44520b['getFirstRange']();if((0x0==_0x1a2379||0x1==_0x1a2379)&&0x2==_0x1b936a&&_0xccc167['isIntersecting'](_0x44f957))return!0x0;if(0x2==_0x1a2379&&0x3==_0x1b936a){const _0x829854=_0x3b38a8['_findSuggestions'](_0xccc167,'insertion')['filter'](({suggestion:_0x2cc46e,meta:_0x1dd38e})=>_0x1dd38e['isOwn']&&'convertInlineImageToBlock'==_0x2cc46e['subType']);if(_0x829854['length']>0x1&&_0x44f957['end']['isEqual'](_0xccc167['start']))return!0x0;if(0x1==_0x829854['length']&&(_0xccc167['start']['isEqual'](_0x44f957['end'])||_0xccc167['end']['isEqual'](_0x44f957['start'])))return!0x0;}if(0x3==_0x1a2379&&0x3==_0x1b936a&&_0xccc167['start']['isBefore'](_0x44f957['start'])){const _0x5b9367=_0xccc167['end']['nodeAfter'],_0x20974e=_0x44f957['start']['nodeBefore'];return _0x45cec1['isBlockImage'](_0x5b9367)&&_0x5b9367===_0x20974e;}return!0x1;}_0x5bbc0f['model']['document']['registerPostFixer'](()=>{let _0x562ad5=!0x1;const _0x446524=Array['from'](_0x5bbc0f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x581fff,data:_0x39e741}of _0x446524){const {group:_0x2f762f,type:_0x458eb2,subType:_0x28afe4,id:_0x52f65f}=nt(_0x581fff);if('suggestion'==_0x2f762f&&_0x3b38a8['hasSuggestion'](_0x52f65f)){if('formatBlock'==_0x458eb2&&('imageStylePreApply'==_0x28afe4||'imageStylePostApply'==_0x28afe4)){const _0x263984=_0x3b38a8['getSuggestion'](_0x52f65f);if(_0x39e741['newRange']){const _0x219e43=_0x263984['getFirstRange']()['getContainedElement']();if(_0x45cec1['isBlockImage'](_0x219e43))continue;_0x3b38a8['discardSuggestion'](_0x263984),_0x562ad5=!0x0;}}if('insertion'==_0x458eb2&&'imageCaption'==_0x28afe4&&!_0x39e741['newRange']){const _0x264d23=_0x3b38a8['getSuggestion'](_0x52f65f);_0x264d23['next']&&_0x264d23['next']['isInContent']&&(_0x3b38a8['discardSuggestion'](_0x264d23['next']),_0x562ad5=!0x0);}}}return _0x562ad5;}),this['_registerLegacyDescription'](_0x4208a6);}_registerLegacyDescription(_0x14c228){const _0x3b2dd9=this['editor'],_0x32a6a4=_0x3b2dd9['locale'];_0x3b2dd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb050=>{if('formatBlock'!=_0x3bb050['type']&&'formatInline'!=_0x3bb050['type'])return;const {data:_0x32e656}=_0x3bb050;if(!_0x32e656||'imageStyle'!=_0x32e656['commandName'])return;const _0x503cb6=_0x32e656['commandParams'][0x0]['value'];return _0x39d47e('side'===_0x503cb6?wt(_0x32a6a4,'FORMAT_SIDE_IMAGE'):_0x14c228[_0x503cb6]||_0x503cb6);function _0x39d47e(_0x251933){return{'type':'format','content':wt(_0x32a6a4,'*Format:*\x20%0',_0x251933)};}});}},Te=class extends _0x139d64{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x575c1f){super(_0x575c1f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0xeedebd=this['editor'],_0x81c6d=_0xeedebd['commands']['get']('importWord'),_0x44a667=_0xeedebd['commands']['get']('trackChanges');_0x81c6d&&(_0x81c6d['on']('execute',(_0x5015f5,[,_0x1229d0])=>{this['_trackChangesValueDuringImport']=_0x44a667['value'],_0x1229d0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x81c6d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x81c6d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x44a667['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xeedebd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0xee51c0,_0x58ffd7){const {suggestions:_0x4bb8ad}=_0x58ffd7,_0x4aaa88=this['editor']['commands']['get']('trackChanges'),_0xe727a2=_0x4aaa88['value'];this['_trackChangesValueDuringImport']!==_0xe727a2&&(_0x4aaa88['execute'](),this['_trackChangesExecuted']=!0x0),_0x4bb8ad&&_0x4bb8ad['forEach'](({id:_0x4cc606,type:_0x5d5bfe,author:_0x2fd969,created_at:_0x4b74b8})=>{const _0x335ff6={'id':_0x4cc606,'type':_0x5d5bfe,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2fd969,'createdAt':_0x4b74b8?new Date(_0x4b74b8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x335ff6);});}},_e=class extends _0x139d64{afterInit(){const _0x2c5f9c=this['editor'],_0x40a64e=_0x2c5f9c['plugins']['get']('TrackChangesEditing');if(_0x2c5f9c['plugins']['has']('IndentEditing')&&(_0x40a64e['enableCommand']('indent'),_0x40a64e['enableCommand']('outdent')),_0x2c5f9c['plugins']['has']('IndentBlock')){for(const _0x345648 of['indentBlock','outdentBlock'])_0x40a64e['enableDefaultAttributesIntegration'](_0x345648);if(_0x2c5f9c['plugins']['has']('ListEditing')){for(const _0x17113a of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x40a64e['enableDefaultAttributesIntegration'](_0x17113a);}}const _0x2d149e=_0x2c5f9c['locale'];_0x40a64e['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x2d149e,'FORMAT_INDENT')),_0x40a64e['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x2d149e,'FORMAT_INDENT')),_0x40a64e['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x2d149e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1fdd3c=this['editor'],_0x1dfa25=_0x1fdd3c['locale'],_0x4b3598=_0x1fdd3c['plugins']['get']('TrackChangesEditing');_0x4b3598['descriptionFactory']['registerDescriptionCallback'](_0x1dc4dc=>{if('formatBlock'!=_0x1dc4dc['type'])return;const {data:_0x4d822a}=_0x1dc4dc;if(!_0x4d822a)return;if('indentBlock'!=_0x4d822a['commandName']&&'outdentBlock'!=_0x4d822a['commandName'])return;const _0x2e67d9=_0x1dc4dc['getItems']()[0x0],_0x3988e4=_0x4b3598['descriptionFactory']['getItemLabel'](_0x2e67d9);return'indentBlock'==_0x4d822a['commandName']?{'type':'format','content':wt(_0x1dfa25,'*Indent:*\x20%0',_0x3988e4)}:'outdentBlock'==_0x4d822a['commandName']?{'type':'format','content':wt(_0x1dfa25,'*Outdent:*\x20%0',_0x3988e4)}:void 0x0;});}},pe=class extends _0x139d64{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x139d64{afterInit(){const _0x11b294=this['editor'];if(!_0x11b294['plugins']['has']('LinkEditing'))return;const _0x588e3c=_0x11b294['plugins']['get']('TrackChangesEditing'),_0x545db1=_0x11b294['commands']['get']('link');_0x588e3c['enableDefaultAttributesIntegration']('link'),_0x588e3c['enableDefaultAttributesIntegration']('unlink');for(const _0x1fd8ec of _0x545db1['manualDecorators'])_0x588e3c['descriptionFactory']['registerAttributeLabel'](_0x1fd8ec['id'],'link\x20('+_0x1fd8ec['label']['toLowerCase']()+')');_0x588e3c['descriptionFactory']['registerDescriptionCallback'](_0x4edd61=>{if('attribute'!=_0x4edd61['type'])return;const {data:_0x563c5c}=_0x4edd61;if(!_0x563c5c||'linkHref'!=_0x563c5c['key'])return;const _0x1c0bad=_0x563c5c['newValue'],_0x2c810d=_0x11b294['locale'];return{'type':'format','content':null==_0x1c0bad?wt(_0x2c810d,'*Remove\x20link*'):wt(_0x2c810d,'*Set\x20link:*\x20%0','\x22'+_0x1c0bad+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5e4bab=this['editor'],_0x11ed0a=_0x5e4bab['locale'];_0x5e4bab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a795c=>{if('formatInline'!=_0x2a795c['type'])return;const {data:_0x1b225a}=_0x2a795c;if(_0x1b225a){if('link'==_0x1b225a['commandName']){const _0x50677f=_0x1b225a['commandParams'][0x0];return{'type':'format','content':wt(_0x11ed0a,'*Set\x20link:*\x20%0','\x22'+_0x50677f+'\x22')};}return'unlink'==_0x1b225a['commandName']?{'type':'format','content':wt(_0x11ed0a,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x139d64{afterInit(){const _0x2628de=this['editor'],_0x1d2ac0=_0x2628de['locale'];if(!_0x2628de['plugins']['has']('LegacyListEditing'))return;const _0x2b901a=_0x2628de['plugins']['get']('TrackChangesEditing'),_0x51ff7b=_0x2628de['plugins']['has']('LegacyTodoListEditing');function _0x33a3a7(_0x306ab2){return()=>{const _0x421d64=_0x2628de['model']['document']['selection'],_0x57a416=_0x2628de['commands']['get'](_0x306ab2);if(_0x57a416['value'])return void _0x2628de['execute']('paragraph',{});const _0xfbe9c0=_0x306ab2['slice'](0x0,-0x4),_0x5a5533=function(_0x132aaa,_0x56b8e1,_0x4e2d83){let _0x14ff66=Array['from'](_0x132aaa)['filter'](_0x27de2d=>function(_0x500f11,_0x270862){return _0x270862['checkChild'](_0x500f11['parent'],'listItem')&&!_0x270862['isObject'](_0x500f11);}(_0x27de2d,_0x4e2d83));_0x14ff66=_0x14ff66['filter'](_0x123121=>!_0x123121['is']('element','listItem')||_0x123121['getAttribute']('listType')!=_0x56b8e1);const _0x356022=new Set();for(const _0x4e06af of _0x14ff66)_0x4e06af['is']('element','listItem')?_0x356022['add'](Ae(_0x4e06af)):_0x356022['add'](_0x4e06af);return Array['from'](_0x356022);}(_0x421d64['getSelectedBlocks'](),_0xfbe9c0,_0x2628de['model']['schema']);_0x2628de['model']['change'](()=>{for(const _0x394d05 of _0x5a5533)_0x2b901a['markBlockFormat'](_0x394d05,{'commandName':_0x306ab2,'commandParams':[{'forceValue':!_0x57a416['value']}],'formatGroupId':'blockName'},be(_0x394d05));});};}function _0x1fb044(_0xd71cba){return()=>{const _0x6ff774=function(_0x19491e){let _0x2fcb51=Array['from'](_0x19491e);const _0xaf0a35=_0x2fcb51['findIndex'](_0x36e9a0=>'listItem'!=_0x36e9a0['name']);return _0xaf0a35>-0x1&&(_0x2fcb51=_0x2fcb51['slice'](0x0,_0xaf0a35)),_0x2fcb51;}(_0x2628de['model']['document']['selection']['getSelectedBlocks']()),_0x40e69c=_0x2628de['model']['createRange'](_0x2628de['model']['createPositionAt'](_0x6ff774[0x0],'before'),_0x2628de['model']['createPositionAt'](_0x6ff774[_0x6ff774['length']-0x1],'end'));_0x2628de['model']['change'](()=>{_0x2b901a['markBlockFormat'](_0x40e69c,{'commandName':_0xd71cba,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd8dea1){const _0xcf5d04=new Set();for(const _0xba9ebb of _0xd8dea1){let _0x54961f=_0xba9ebb['nextSibling'];for(;_0x54961f&&_0x54961f['getAttribute']('listIndent')>_0xba9ebb['getAttribute']('listIndent');)_0xcf5d04['add'](_0x54961f),_0x54961f=_0x54961f['nextSibling'];}return Array['from'](_0xcf5d04);}(_0x6ff774));});};}_0x2b901a['enableCommand']('numberedList',_0x33a3a7('numberedList')),_0x2b901a['enableCommand']('bulletedList',_0x33a3a7('bulletedList')),_0x51ff7b&&_0x2b901a['enableCommand']('todoList',_0x33a3a7('todoList')),_0x2b901a['enableCommand']('indentList',_0x1fb044('indentList')),_0x2b901a['enableCommand']('outdentList',_0x1fb044('outdentList')),_0x51ff7b&&_0x2b901a['enableCommand']('checkTodoList',()=>{const _0xfce839=_0x2628de['commands']['get']('checkTodoList'),_0x418178=Array['from'](_0xfce839['_selectedElements']);_0x418178['filter'](_0x1d10ab=>_0x1d10ab['getAttribute']('todoListChecked')!=_0xfce839['value']),_0x2628de['model']['change'](()=>{for(const _0x2f09df of _0x418178)_0x2b901a['markBlockFormat'](_0x2f09df,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xfce839['value']}]});});}),_0x2b901a['descriptionFactory']['registerElementLabel']('listItem',_0x4e2093=>wt(_0x1d2ac0,'ELEMENT_LIST_ITEM',_0x4e2093)),_0x2b901a['descriptionFactory']['registerDescriptionCallback'](_0x6afc6d=>{if('formatBlock'!=_0x6afc6d['type']&&'formatInline'!=_0x6afc6d['type'])return;const {data:_0x404836}=_0x6afc6d;if(_0x404836){if('numberedList'==_0x404836['commandName']||'bulletedList'==_0x404836['commandName']||'todoList'==_0x404836['commandName'])switch(_0x404836['commandName']['replace']('List','')){case'bulleted':return _0x14cada(wt(_0x1d2ac0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14cada(wt(_0x1d2ac0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14cada(wt(_0x1d2ac0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x404836['commandName'])return{'type':'format','content':wt(_0x1d2ac0,'*Indent:*\x20%0',wt(_0x1d2ac0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x404836['commandName'])return{'type':'format','content':wt(_0x1d2ac0,'*Outdent:*\x20%0',wt(_0x1d2ac0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x404836['commandName'])return _0x404836['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x1d2ac0,'*Check\x20item*')}:{'type':'format','content':wt(_0x1d2ac0,'*Uncheck\x20item*')};}function _0x14cada(_0x2d1a1f){return{'type':'format','content':wt(_0x1d2ac0,'*Change\x20to:*\x20%0',_0x2d1a1f)};}});}};function Ae(_0x1bcb62){const _0x384ea4=_0x1bcb62['getAttribute']('listIndent');if(0x0==_0x384ea4)return _0x1bcb62;let _0x29f8a9=_0x1bcb62;for(;_0x1bcb62['previousSibling']&&_0x1bcb62['previousSibling']['is']('element','listItem');){const _0x15f345=_0x1bcb62['previousSibling']['getAttribute']('listIndent');if(_0x15f345==_0x384ea4)_0x29f8a9=_0x1bcb62['previousSibling'];else{if(_0x15f345<_0x384ea4)break;}_0x1bcb62=_0x1bcb62['previousSibling'];}return _0x29f8a9;}function be(_0x17d230){const _0x198355=[];if(_0x17d230['is']('element','listItem')&&_0x17d230['getAttribute']('listIndent')>0x0){let _0x1d8004=_0x17d230['nextSibling'];for(;_0x1d8004&&'listItem'==_0x1d8004['name']&&_0x1d8004['getAttribute']('listIndent')==_0x17d230['getAttribute']('listIndent');)_0x198355['push'](_0x1d8004),_0x1d8004=_0x1d8004['nextSibling'];}return _0x198355;}var Ce=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5e7044=this['editor']['config']['get']('list.properties'),_0xcbd946=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e7044['styles']&&_0xcbd946['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5e7044['reversed']&&_0xcbd946['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5e7044['startIndex']&&_0xcbd946['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xcbd946['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x130e9e,_0x1540c5={}){const _0x11df72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5eee63=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x11df72['markMultiRangeBlockFormat'](_0x5eee63,{'commandName':'listStyle','commandParams':[{'type':_0x1540c5['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x3d521b,_0x99d2d8={}){const _0x52ebac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x779d3d=this['_getSuggestionBlocks'](_0xe9591c=>_0xe9591c['is']('element','listItem')&&'numbered'===_0xe9591c['getAttribute']('listType'));if(_0x779d3d['length']<0x1)return;const _0x58f27f=_0x779d3d['map'](_0x17ea77=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17ea77,'before'),this['editor']['model']['createPositionAt'](_0x17ea77,0x0)));this['editor']['model']['change'](()=>{_0x52ebac['markMultiRangeBlockFormat'](_0x58f27f,{'commandName':'listReversed','commandParams':[{'reversed':_0x99d2d8['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x1759f2,_0x51a76b={}){const _0x10829b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5802=this['_getSuggestionBlocks'](_0x14c129=>_0x14c129['is']('element','listItem')&&'numbered'===_0x14c129['getAttribute']('listType'));if(_0x2c5802['length']<0x1)return;const _0x2750b7=_0x2c5802['map'](_0x37bc04=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37bc04,'before'),this['editor']['model']['createPositionAt'](_0x37bc04,0x0)));this['editor']['model']['change'](()=>{_0x10829b['markMultiRangeBlockFormat'](_0x2750b7,{'commandName':'listStart','commandParams':[{'startIndex':_0x51a76b['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x53db11){if('formatBlock'!=_0x53db11['type']&&'formatInline'!=_0x53db11['type'])return;const _0xbc4d06=this['editor']['locale'],{data:_0x1afd0d}=_0x53db11;if(!_0x1afd0d)return;let _0x16d5bb,_0x2e66e7;switch(_0x1afd0d['commandName']){case'listStyle':_0x16d5bb='*Change\x20to:*\x20%0',_0x2e66e7={'type':'format','content':wt(_0xbc4d06,_0x16d5bb,wt(_0xbc4d06,this['_getTranslationKeyForListStyle'](_0x1afd0d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x16d5bb=_0x1afd0d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e66e7={'type':'format','content':wt(_0xbc4d06,_0x16d5bb)};break;case'listStart':_0x16d5bb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e66e7={'type':'format','content':wt(_0xbc4d06,_0x16d5bb,_0x1afd0d['commandParams'][0x0]['startIndex'])};}return _0x2e66e7;}_getSuggestionBlocksForListStyle(){const _0x351813=this['editor']['plugins']['get']('LegacyListUtils');let _0x29c60b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x29c60b[0x0]?.['is']('element','listItem')&&_0x29c60b['unshift'](..._0x351813['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x29c60b[_0x29c60b['length']-0x1]?.['is']('element','listItem')&&_0x29c60b['push'](..._0x351813['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x29c60b=[...new Set(_0x29c60b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x29c60b=_0x29c60b['filter'](_0x32355c=>_0x32355c['is']('element','listItem'))),_0x29c60b;}_getSuggestionBlocks(_0x56e5f8){const _0x2575d3=this['editor']['plugins']['get']('LegacyListUtils');let _0x39eb0d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x56e5f8)['map'](_0x8003b6=>{const _0x112ae4=this['editor']['model']['createPositionAt'](_0x8003b6,0x0);return[..._0x2575d3['getSiblingNodes'](_0x112ae4,'backward'),..._0x2575d3['getSiblingNodes'](_0x112ae4,'forward')];})['flat']();return _0x39eb0d=[...new Set(_0x39eb0d)],_0x39eb0d;}_getTranslationKeyForListStyle(_0x35ac5c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x35ac5c)||'default')['toUpperCase']()+'_LIST_'+_0x35ac5c['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x139d64{afterInit(){const _0x48127d=this['editor'];if(!_0x48127d['plugins']['has']('MediaEmbedEditing'))return;const _0x59080a=_0x48127d['plugins']['get']('TrackChangesEditing'),_0x1318db=_0x48127d['locale'];_0x59080a['enableCommand']('mediaEmbed'),_0x59080a['descriptionFactory']['registerElementLabel']('media',_0x1da13f=>wt(_0x1318db,'ELEMENT_MEDIA',_0x1da13f)),_0x48127d['plugins']['has']('MediaEmbedResizeEditing')&&(_0x59080a['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x59080a['descriptionFactory']['registerDescriptionCallback'](_0xe70ac8=>{if('attribute'!=_0xe70ac8['type'])return;const {data:_0x17ecf1}=_0xe70ac8;if(!_0x17ecf1||'resizedWidth'!=_0x17ecf1['key'])return;const _0x28eaf4=_0xe70ac8['getContainedElement']();if(!_0x28eaf4||!_0x28eaf4['is']('element','media'))return;const _0x2cad16=wt(_0x1318db,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0x1318db,'*Set\x20format:*\x20%0',_0x2cad16)};}));}},Re=class extends _0x139d64{afterInit(){const _0x4e8236=this['editor'];if(!_0x4e8236['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x3b6919=_0x4e8236['plugins']['get']('TrackChangesEditing'),_0xbb103d=_0x4e8236['locale'],_0x3c1c59=_0x4e8236['plugins']['get']('MediaEmbedStyleEditing'),_0x4b4bb0={};for(const _0x267e88 of _0x3c1c59['normalizedStyles'])_0x4b4bb0[_0x267e88['name']]=_0x267e88['title']['toLowerCase']();const _0x5500f2=_0x3c1c59['normalizedStyles']['find'](_0x5bef49=>_0x5bef49['isDefault'])?.['name'];_0x3b6919['enableCommand']('mediaStyle',(_0x2568e2,_0x29be06)=>{const _0x5d4854=_0x4e8236['plugins']['get']('Users')['me'],_0x217ae3=_0x4e8236['commands']['get']('mediaStyle'),_0x347f01=function(_0x1f8084){const _0x1463bf=_0x1f8084['model']['document']['selection']['getSelectedElement']();return _0x1463bf&&_0x1463bf['is']('element','media')?_0x1463bf:null;}(_0x4e8236);if(!_0x347f01)return;const _0x53bb13=_0x4e8236['model']['createRangeOn'](_0x347f01);let _0x269722=_0x217ae3['value'];if(_0x269722==_0x29be06['value'])return;const _0x272ed0={'commandName':'mediaStyle','commandParams':[_0x29be06],'formatGroupId':_0xa3c351()};_0x4e8236['model']['change'](()=>{_0x3b6919['getSuggestions']()['filter'](_0x1bdaf6=>_0x1bdaf6['isInContent']&&_0x5d4854==_0x1bdaf6['author']&&'formatBlock'==_0x1bdaf6['type']&&'mediaStylePostApply'==_0x1bdaf6['subType']&&_0x1bdaf6['getFirstRange']()['isEqual'](_0x53bb13))['forEach'](_0x1137d5=>_0x3b6919['discardSuggestion'](_0x1137d5['head'])),_0x217ae3['refresh'](),_0x269722=_0x217ae3['value'],_0x269722!=_0x29be06['value']&&_0x3b6919['markBlockFormat'](_0x347f01,{..._0x272ed0,'commandReversedParams':[{'value':'string'==typeof _0x269722?_0x269722:null}]},[],'mediaStylePostApply');});}),_0x3b6919['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x3b6919['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5210eb,_0xbab1a1)=>{_0x3b6919['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5210eb,{'commandName':_0xbab1a1['commandName'],'commandParams':_0xbab1a1['commandReversedParams']});}),_0x3b6919['descriptionFactory']['registerDescriptionCallback'](_0x4fddb4=>{if('formatBlock'!=_0x4fddb4['type'])return;const {data:_0x2df5bb}=_0x4fddb4;if(!_0x2df5bb||'mediaStyle'!=_0x2df5bb['commandName'])return;const _0x22f70d=_0x2df5bb['commandParams'][0x0]['value']||_0x5500f2;if(!_0x22f70d)return;const _0x29d50c=_0x4b4bb0[_0x22f70d]||_0x22f70d;return{'type':'format','content':wt(_0xbb103d,'*Format:*\x20%0',_0x29d50c)};});}},Ne=class extends _0x139d64{afterInit(){const _0x21a03e=this['editor'];_0x21a03e['plugins']['has']('MentionEditing')&&_0x21a03e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x139d64{afterInit(){const _0xcb9dde=this['editor'];if(!_0xcb9dde['plugins']['has']('MergeFieldsEditing'))return;const _0x46d83f=_0xcb9dde['plugins']['get']('TrackChangesEditing'),_0x4817e4=_0xcb9dde['locale'];_0x46d83f['enableCommand']('insertMergeField'),_0x46d83f['enableCommand']('insertMergeFieldBlock'),_0x46d83f['enableCommand']('insertMergeFieldImage'),_0x46d83f['descriptionFactory']['registerElementLabel']('mergeField',_0x5e1bbd=>wt(_0x4817e4,'ELEMENT_MERGE_FIELD',_0x5e1bbd)),_0x46d83f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4b326d=>wt(_0x4817e4,'ELEMENT_MERGE_FIELD',_0x4b326d)),_0x46d83f['descriptionFactory']['registerDescriptionCallback'](_0x44f503=>{if('insertion'!=_0x44f503['type']&&'deletion'!=_0x44f503['type'])return;const _0x29bd93=_0x44f503['getContainedElement']();if(null==_0x29bd93)return;const _0x15c3db=_0xcb9dde['plugins']['get']('MergeFieldsEditing');let _0x29f782;switch(_0x15c3db['getMergeFieldType'](_0x29bd93)){case null:return;case'image':{const _0x5c6d32=_0x15c3db['unwrapAffixes'](_0x29bd93['getAttribute']('src'));_0x29f782=_0x15c3db['getLabel'](_0x5c6d32)||_0x5c6d32;break;}default:{const _0x3ec975=_0x29bd93['getAttribute']('id');_0x29f782=_0x15c3db['getLabel'](_0x3ec975)||_0x3ec975;break;}}return'insertion'==_0x44f503['type']?{'type':'insertion','content':wt(_0x4817e4,'*Insert:*\x20%0','\x22'+_0x29f782+'\x22\x20'+wt(_0x4817e4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0x4817e4,'*Remove:*\x20%0','\x22'+_0x29f782+'\x22\x20'+wt(_0x4817e4,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x139d64{afterInit(){const _0x261c87=this['editor'],_0x4852e3=_0x261c87['plugins']['get']('TrackChangesEditing');_0x261c87['plugins']['has']('MultiLevelList')&&(_0x4852e3['enableDefaultAttributesIntegration']('multiLevelList'),_0x4852e3['descriptionFactory']['registerDescriptionCallback'](_0x125127=>this['handleDescriptions'](_0x125127)));}handleDescriptions(_0x538ef8){const _0x63acbe=this['editor']['locale'],{data:_0x2f6a94}=_0x538ef8,_0x3bf805={'type':'format','content':''};if(_0x2f6a94&&'listMarkerStyle'==_0x2f6a94['key']){if(!_0x2f6a94['oldValue'])return{'type':'format','content':wt(_0x63acbe,'*Set\x20format:*\x20%0',wt(_0x63acbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6a94['newValue']+')'};if(!_0x2f6a94['newValue']){let _0x49d5f3=_0x538ef8['head'];for(;_0x49d5f3;){if(_0x49d5f3['data']&&'listType'==_0x49d5f3['data']['key']&&_0x49d5f3['data']['newValue'])return _0x3bf805;_0x49d5f3=_0x49d5f3['next'];}return{'type':'format','content':wt(_0x63acbe,'*Remove\x20format:*\x20%0',wt(_0x63acbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6a94['oldValue']+')'};}}}},Me=class extends _0x139d64{afterInit(){const _0x30ada2=this['editor'];if(!_0x30ada2['plugins']['has']('PageBreakEditing'))return;_0x30ada2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a26f9=_0x30ada2['plugins']['get']('TrackChangesEditing'),_0x1da9a6=_0x30ada2['locale'];_0x3a26f9['descriptionFactory']['registerElementLabel']('pageBreak',_0x1dd789=>wt(_0x1da9a6,'ELEMENT_PAGE_BREAK',_0x1dd789));}},Oe=class extends _0x139d64{afterInit(){const _0x259ffb=this['editor'];if(!_0x259ffb['plugins']['has']('Paragraph'))return;const _0x34780d=_0x259ffb['locale'],_0xb6882d=_0x259ffb['plugins']['get']('TrackChangesEditing');_0xb6882d['descriptionFactory']['registerElementLabel']('paragraph',_0xb59491=>wt(_0x34780d,'ELEMENT_PARAGRAPH',_0xb59491)),_0xb6882d['enableDefaultAttributesIntegration']('paragraph'),_0xb6882d['enableCommand']('insertParagraph');const _0x1249cb=_0xb6882d['descriptionFactory'];_0x1249cb['registerDescriptionCallback'](_0x21dddf=>{if('insertion'!==_0x21dddf['type'])return;const {start:_0x5ae98f,end:_0x1fd0e5}=_0x21dddf['getFirstRange']();if(!_0x5ae98f['isTouching'](_0x1fd0e5)||!_0x5ae98f['nodeAfter'])return;const _0x30db05=_0x259ffb['model']['schema'],_0x2eb1da=_0x5ae98f['nodeAfter'];return _0x30db05['isBlock'](_0x2eb1da)&&!_0x30db05['isLimit'](_0x2eb1da)&&_0x30db05['checkChild'](_0x2eb1da,'$text')?{'type':'insertion','content':wt(_0x34780d,'*Insert:*\x20%0',_0x1249cb['getItemLabel'](_0x2eb1da,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x540600=this['editor'],_0x304bb7=_0x540600['locale'];_0x540600['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf19e21=>{if('formatBlock'!=_0xf19e21['type'])return;const {data:_0x1b1a00}=_0xf19e21;return _0x1b1a00&&'paragraph'==_0x1b1a00['commandName']?{'type':'format','content':wt(_0x304bb7,'*Change\x20to:*\x20%0',wt(_0x304bb7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x139d64{afterInit(){const _0x37bbf6=this['editor'];_0x37bbf6['commands']['get']('replaceSource')&&_0x37bbf6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x139d64{afterInit(){const _0x5daeb4=this['editor'];_0x5daeb4['plugins']['has']('RemoveFormatEditing')&&(_0x5daeb4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x11eef2=this['editor'];_0x11eef2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eef11=>{if('formatBlock'!=_0x1eef11['type']&&'formatInline'!=_0x1eef11['type'])return;const {data:_0x9668a5}=_0x1eef11;return _0x9668a5&&'removeFormat'==_0x9668a5['commandName']?{'type':'format','content':wt(_0x11eef2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x139d64{afterInit(){const _0x400152=this['editor'];if(!_0x400152['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x455a5e=_0x400152['plugins']['get']('TrackChangesEditing');_0x455a5e['enableCommand']('goToPreviousRestrictedEditingException'),_0x455a5e['enableCommand']('goToNextRestrictedEditingException');const _0x4ee33d=_0x400152['plugins']['get']('RestrictedEditingModeEditing');_0x4ee33d['enableCommand']('trackChanges'),_0x4ee33d['enableCommand']('acceptSuggestion'),_0x4ee33d['enableCommand']('discardSuggestion'),_0x4ee33d['enableCommand']('acceptAllSuggestions'),_0x4ee33d['enableCommand']('discardAllSuggestions'),_0x4ee33d['enableCommand']('acceptSelectedSuggestions'),_0x4ee33d['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x139d64{afterInit(){const _0x23f4fc=this['editor'];if(!_0x23f4fc['plugins']['has']('ShiftEnter'))return;const _0x1a21bc=_0x23f4fc['plugins']['get']('TrackChangesEditing');_0x1a21bc['enableCommand']('shiftEnter'),_0x1a21bc['descriptionFactory']['registerElementLabel']('softBreak',_0x3323cf=>wt(_0x23f4fc['locale'],'ELEMENT_LINE_BREAK',_0x3323cf));}};function De(_0x1e4798,_0x46ad91,_0x2a3229){const _0x3f7399=[];for(const _0x3ec087 of _0x46ad91['getItems']())_0x3ec087['hasAttribute'](_0x1e4798)&&_0x3f7399['push'](_0x2a3229['createRangeOn'](_0x3ec087));return _0x3f7399;}var Ue=class extends _0x139d64{afterInit(){const _0x334055=this['editor'],_0x57e1ef=_0x334055['plugins']['get']('TrackChangesEditing');_0x334055['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x57e1ef['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5c4bf7=this['editor'],_0x11798e=_0x5c4bf7['model'],_0x4721bc=_0x5c4bf7['locale'],_0x1dc471=_0x5c4bf7['plugins']['get']('TrackChangesEditing'),_0x384123='restrictedEditingException',_0x1eb342=_0x5c4bf7['commands']['get'](_0x384123);_0x1dc471['enableCommand'](_0x384123,(_0x50b5ce,_0x4acd54={})=>{const _0x57e5ce=_0x11798e['document']['selection'];if(_0x57e5ce['isCollapsed'])return void _0x50b5ce(_0x4acd54);const _0x46a5df=void 0x0!==_0x4acd54['forceValue']?_0x4acd54['forceValue']:!_0x1eb342['value'];_0x11798e['change'](()=>{const _0x19df41=Array['from'](_0x57e5ce['getRanges']());for(const _0x24a8da of _0x19df41){const _0x17b836=_0x46a5df?[_0x24a8da]:De(_0x384123,_0x24a8da,_0x11798e);for(const _0xdd89f1 of _0x17b836)_0x1dc471['markInlineFormat'](_0xdd89f1,{'commandName':_0x384123,'commandParams':[{'forceValue':_0x46a5df}]});}});}),_0x1dc471['descriptionFactory']['registerDescriptionCallback'](_0x315504=>{if('formatBlock'!=_0x315504['type']&&'formatInline'!=_0x315504['type'])return;const {data:_0x5d0992}=_0x315504;return _0x5d0992&&_0x5d0992['commandName']==_0x384123?_0x5d0992['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x4721bc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x4721bc,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x195bd4=this['editor'],_0x3b1ebb=_0x195bd4['locale'],_0x10ea12=_0x195bd4['plugins']['get']('TrackChangesEditing'),_0x28982c='restrictedEditingExceptionBlock',_0x1a9451=this['editor']['commands']['get'](_0x28982c);_0x10ea12['enableCommand'](_0x28982c,(_0x192235,_0x158b08={})=>{const _0x1d5b9c=this['editor']['model']['document']['selection'],_0x262dfb=_0x158b08&&void 0x0!==_0x158b08['forceValue']?_0x158b08['forceValue']:!_0x1a9451['value'];let _0x147029=[];if(_0x262dfb){const _0x410214=Array['from'](_0x1d5b9c['getSelectedBlocks']())['filter'](_0x51bc67=>function(_0x4119b1){return!!_0x4119b1['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x51bc67)||function(_0x479c3d,_0x11639f){const _0x4d05a7=_0x11639f['createContext'](_0x479c3d['parent']);return!!_0x11639f['checkChild'](_0x4d05a7,'restrictedEditingException')&&!!_0x11639f['checkChild'](_0x4d05a7['push']('restrictedEditingException'),_0x479c3d);}(_0x51bc67,this['editor']['model']['schema']));_0x147029=kt(_0x410214,_0x195bd4['model']);}else{const _0x23a1f4=Array['from'](_0x1d5b9c['getSelectedBlocks']())['map'](_0x430adb=>function(_0x129e4b){let _0x520e08=_0x129e4b;for(;_0x520e08['parent'];){if('restrictedEditingException'==_0x520e08['parent']['name'])return _0x520e08;_0x520e08=_0x520e08['parent'];}return null;}(_0x430adb))['filter'](_0x153733=>!!_0x153733);_0x147029=kt(_0x23a1f4,_0x195bd4['model']);}_0x195bd4['model']['change'](()=>{for(const _0x379491 of _0x147029)_0x10ea12['markBlockFormat'](_0x379491,{'commandName':_0x28982c,'commandParams':[{'forceValue':_0x262dfb}]});});}),_0x10ea12['descriptionFactory']['registerDescriptionCallback'](_0x460b6c=>{const {data:_0x153192}=_0x460b6c;if(_0x153192&&_0x153192['commandName']==_0x28982c)return _0x153192['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x3b1ebb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x3b1ebb,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x139d64{afterInit(){const _0x4d7374=this['editor'];_0x4d7374['plugins']['has']('Style')&&_0x4d7374['plugins']['has']('DataSchema')&&(_0x4d7374['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5edc2b=this['editor'],_0x198509=_0x5edc2b['locale'];_0x5edc2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x363336=>{if('formatBlock'!=_0x363336['type']&&'formatInline'!=_0x363336['type'])return;const {data:_0x5c65df}=_0x363336;return _0x5c65df&&'style'===_0x5c65df['commandName']?_0x5c65df['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x198509,'*Set\x20format:*\x20%0',_0x5c65df['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0x198509,'*Remove\x20format:*\x20%0',_0x5c65df['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x139d64{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x38cb7c){super(_0x38cb7c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x1a9fee=this['editor'],_0x257db7=_0x1a9fee['model']['document']['selection'];if(!_0x1a9fee['plugins']['has']('TableEditing'))return;const _0x36597d=_0x1a9fee['locale'],_0x240439=_0x1a9fee['plugins']['get']('TrackChangesEditing'),_0x274d14=_0x1a9fee['plugins']['get']('TableUtils');_0x240439['descriptionFactory']['registerElementLabel']('table',_0x297c9c=>wt(_0x36597d,'ELEMENT_TABLE',_0x297c9c)),this['_setupColumnsRowsFixing'](),_0x240439['enableCommand']('insertTable'),_0x240439['enableCommand']('selectTableRow'),_0x240439['enableCommand']('selectTableColumn');for(const _0x3d32fa of['insertTableRowAbove','insertTableRowBelow']){const _0x1c96e3=_0x1a9fee['commands']['get'](_0x3d32fa);_0x240439['enableCommand'](_0x3d32fa,_0x4d603a=>{_0x1a9fee['model']['change'](_0x43a2b3=>{_0x4d603a();const _0x25c3c9='above'===_0x1c96e3['order'],_0x2e617d=_0x274d14['getSelectionAffectedTableCells'](_0x257db7),_0x297159=_0x274d14['getRowIndexes'](_0x2e617d),_0x4c2d58=_0x25c3c9?_0x297159['first']-0x1:_0x297159['last']+0x1,_0x289e39=_0x2e617d[0x0]['findAncestor']('table'),_0x15eefe=_0x274d14['createTableWalker'](_0x289e39,{'startRow':_0x4c2d58,'endRow':_0x4c2d58}),_0x321460=Array['from'](_0x15eefe)['map'](_0x2d8457=>_0x43a2b3['createRangeOn'](_0x2d8457['cell']));_0x240439['markMultiRangeInsertion'](_0x321460,'tableRow');});});}for(const _0x1b2022 of['insertTableColumnLeft','insertTableColumnRight']){const _0x46adb5=_0x1a9fee['commands']['get'](_0x1b2022);_0x240439['enableCommand'](_0x1b2022,_0x2b882c=>{_0x1a9fee['model']['change'](_0x58a21a=>{_0x2b882c();const _0x25fa3a='left'===_0x46adb5['order'],_0x2bb0c6=_0x274d14['getSelectionAffectedTableCells'](_0x257db7),_0x5c5e05=_0x274d14['getColumnIndexes'](_0x2bb0c6),_0xf9badf=_0x25fa3a?_0x5c5e05['first']-0x1:_0x5c5e05['last']+0x1,_0x24bdc0=_0x2bb0c6[0x0]['findAncestor']('table'),_0x56c51f=_0x274d14['createTableWalker'](_0x24bdc0,{'startRow':0x0,'column':_0xf9badf,'includeAllSlots':!0x1}),_0x518850=Array['from'](_0x56c51f)['map'](_0x1495ed=>_0x58a21a['createRangeOn'](_0x1495ed['cell']));_0x240439['markMultiRangeInsertion'](_0x518850,'tableColumn');});});}for(const _0x5d3a97 of['removeTableRow','removeTableColumn']){const _0x1a5ed5=_0x5d3a97['substr'](0xb),_0x333860=_0x1a5ed5['toLowerCase'](),_0x4e13d3=_0x333860['substr'](0x0,0x3)+'span',_0x1a9000='table'+_0x1a5ed5,_0x4115ef='min'+_0x1a5ed5,_0xa2a8eb='max'+_0x1a5ed5;_0x240439['enableCommand'](_0x5d3a97,()=>{_0x1a9fee['model']['change'](_0x422f8e=>{const _0x52df3e=_0x274d14['getSelectionAffectedTableCells'](_0x257db7),_0x4a4ef5=_0x52df3e[0x0]['findAncestor']('table');let _0x185dd3;if('removeTableRow'==_0x5d3a97){const _0x29d2cc=_0x274d14['getRowIndexes'](_0x52df3e);_0x185dd3={'startRow':_0x29d2cc['first'],'endRow':_0x29d2cc['last'],'includeAllSlots':!0x0};}else{const _0x5f3513=_0x274d14['getColumnIndexes'](_0x52df3e);_0x185dd3={'startColumn':_0x5f3513['first'],'endColumn':_0x5f3513['last'],'includeAllSlots':!0x0};}const _0xea1923=_0x274d14['createTableWalker'](_0x4a4ef5,_0x185dd3),_0x3e9e66=Array['from'](_0xea1923)['map'](({cell:_0x2387ed})=>_0x2387ed),_0x5d5c77=Ge(_0x3e9e66['filter'](_0x27de5a=>_0x27de5a['hasAttribute'](_0x4e13d3))),_0x564d8a=Ge(_0x3e9e66['filter'](_0x131fdf=>!_0x131fdf['hasAttribute'](_0x4e13d3)))['map'](_0x31e95b=>_0x422f8e['createRangeOn'](_0x31e95b)),_0xa195fc=_0x240439['markMultiRangeDeletion'](_0x564d8a,_0x1a9000);if(_0xa195fc&&('tableRow'==_0xa195fc['subType']||'tableColumn'==_0xa195fc['subType'])){const _0x3c9679=this['_getSuggestionCoords'](_0xa195fc);for(const _0x3343a1 of _0x5d5c77){const _0x5d8953=_0x422f8e['createRangeOn'](_0x3343a1),_0x3c0c93=_0x274d14['getCellLocation'](_0x3343a1),_0x41ea7f=_0x3343a1['getAttribute'](_0x4e13d3)-0x1,_0x217f2f=_0x3c9679[_0x4115ef],_0x1810e4=_0x3c9679[_0xa2a8eb];_0x217f2f<=_0x3c0c93[_0x333860]&&_0x3c0c93[_0x333860]+_0x41ea7f<=_0x1810e4&&_0xa195fc['addRange'](_0x5d8953);}}});});}function _0x9010d1(_0x402044){const _0x33626d=Array['from'](_0x257db7['getRanges']())['map'](_0xd511b7=>at['fromRange'](_0xd511b7));_0x1a9fee['model']['change'](_0x2684a9=>{const _0x436bef=_0x2684a9['batch'];_0x402044=_0x402044['filter'](_0x415a76=>'$graveyard'!=_0x415a76['root']['rootName']),_0x2684a9['setSelection'](_0x402044),_0x1a9fee['commands']['get']('removeTableRow')['refresh'](),_0x1a9fee['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a9fee['model']['enqueueChange'](()=>{_0x1a9fee['model']['enqueueChange'](_0x436bef,_0x1e70cb=>{const _0x4da758=_0x33626d['filter'](_0x55db2c=>'$graveyard'!=_0x55db2c['root']['rootName']);_0x4da758['length']>0x0&&_0x1e70cb['setSelection'](_0x4da758);for(const _0xab9178 of _0x33626d)_0xab9178['detach']();});});});}function _0x4e39a1(_0x124f5d){_0x1a9fee['model']['change'](_0x1faf6d=>{const _0x8c2864=Array['from'](_0x257db7['getRanges']())['map'](_0x37b831=>at['fromRange'](_0x37b831)),_0x1a71bc=[];for(const _0x2fa934 of _0x124f5d)for(const _0x1647a0 of _0x2fa934['getItems']({'shallow':!0x0}))_0x1a71bc['push'](_0x1647a0);for(const _0x55a601 of _0x1a71bc)'$graveyard'!=_0x55a601['root']['rootName']&&(_0x1faf6d['setSelection'](_0x1faf6d['createPositionAt'](_0x55a601,0x0)),_0x1a9fee['commands']['get']('removeTableColumn')['refresh'](),_0x1a9fee['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d8754=_0x8c2864['filter'](_0xced791=>'$graveyard'!=_0xced791['root']['rootName']);_0x5d8754['length']>0x0&&_0x1faf6d['setSelection'](_0x5d8754);for(const _0xfb63b7 of _0x8c2864)_0xfb63b7['detach']();});}function _0x25c68f(_0xe704d1,_0x481f5f){return _0x481f5f['every'](_0x1d3441=>_0xe704d1['some'](_0x48d5c1=>_0x48d5c1['end']['isEqual'](_0x1d3441['start'])||_0x1d3441['end']['isEqual'](_0x48d5c1['start'])));}function _0x535312(_0x20aac7,_0x4efef2){return!_0x20aac7['some'](_0x5ab478=>_0x4efef2['some'](_0x4ae441=>_0x5ab478['isIntersecting'](_0x4ae441)))&&_0x20aac7['some'](_0x4369ed=>_0x4efef2['some'](_0x5a9775=>_0x4369ed['end']['isTouching'](_0x5a9775['start'])));}_0x240439['descriptionFactory']['registerDescriptionCallback'](_0x5aba0a=>{if('insertion'!=_0x5aba0a['type']&&'deletion'!=_0x5aba0a['type'])return;const _0x20b084=_0x5aba0a['getContainedElement']();if(null!=_0x20b084&&_0x20b084['is']('element','table')){if('insertion'==_0x5aba0a['type']){const _0x3f3efc=_0x5aba0a['getItems']()['filter'](_0x268fec=>_0x268fec['is']('$textProxy'))['map'](_0x483dae=>_0x483dae['data']);if(_0x3f3efc['length'])return{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f3efc['join']('\x20')+'\x22'))};}if('deletion'==_0x5aba0a['type']){const _0x22101c=_0x5aba0a['getItems']()['filter'](_0x55e28f=>_0x55e28f['is']('$textProxy'))['map'](_0x2d70ec=>_0x2d70ec['data']);if(_0x22101c['length'])return{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x22101c['join']('\x20')+'\x22'))};}}}),_0x240439['descriptionFactory']['registerDescriptionCallback'](_0x281310=>{if('tableRow'==_0x281310['subType']){const _0x87792=_0x281310['getItems']()['filter'](_0x2c4390=>_0x2c4390['is']('$textProxy'))['map'](_0x19dccd=>_0x19dccd['data']),_0x48b675=this['_getSuggestionCoords'](_0x281310),_0x17f421=_0x48b675['maxRow']-_0x48b675['minRow']+0x1;if('insertion'==_0x281310['type'])return _0x87792['length']?{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17f421,'\x22'+_0x87792['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_ROW',_0x17f421))};if('deletion'==_0x281310['type'])return _0x87792['length']?{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17f421,'\x22'+_0x87792['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_ROW',_0x17f421))};}if('tableColumn'==_0x281310['subType']){const _0x33dd47=_0x281310['getItems']()['filter'](_0x23c033=>_0x23c033['is']('$textProxy'))['map'](_0x338048=>_0x338048['data']),_0x16df93=this['_getSuggestionCoords'](_0x281310),_0xfa8289=_0x16df93['maxColumn']-_0x16df93['minColumn']+0x1;if('insertion'==_0x281310['type'])return _0x33dd47['length']?{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfa8289,'\x22'+_0x33dd47['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_COLUMN',_0xfa8289))};if('deletion'==_0x281310['type'])return _0x33dd47['length']?{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfa8289,'\x22'+_0x33dd47['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_COLUMN',_0xfa8289))};}}),_0x240439['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9010d1),_0x240439['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9010d1),_0x240439['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4e39a1),_0x240439['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4e39a1),_0x240439['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x25c68f),_0x240439['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x25c68f),_0x240439['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x535312),_0x240439['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x535312);}_acceptFormatSuggestionCallbackFactory(){const _0x4c4144=this['editor'],_0x3903b8=_0x4c4144['model']['document']['selection'];return(_0x2cd409,_0x4c5771)=>{_0x4c4144['model']['change'](_0x5b4e42=>{const {commandName:_0x44b849,commandParams:_0x291f57}=_0x4c5771;let _0x411ba0=_0x2cd409[0x0]['end']['nodeBefore'];_0x291f57&&_0x291f57[0x0]&&!0x1===_0x291f57[0x0]['forceValue']&&(_0x411ba0=_0x2cd409[0x0]['start']['nodeAfter']);const _0x43859b=_0x5b4e42['createRangeIn'](_0x411ba0);if('$graveyard'==_0x43859b['root']['rootName'])return;const _0xedfa4=Array['from'](_0x3903b8['getRanges']())['map'](_0x5c36a0=>at['fromRange'](_0x5c36a0));_0x5b4e42['setSelection'](_0x43859b),_0x4c4144['commands']['get'](_0x44b849)['refresh'](),_0x291f57['push']({'forceDefaultExecution':!0x0}),_0x4c4144['execute'](_0x44b849,..._0x291f57);const _0x2ff81b=_0xedfa4['filter'](_0xc9d98d=>'$graveyard'!=_0xc9d98d['root']['rootName']);_0x2ff81b['length']>0x0&&_0x5b4e42['setSelection'](_0x2ff81b);for(const _0x23b29f of _0xedfa4)_0x23b29f['detach']();});};}_getCoordsForCells(_0x1e3106){const _0x12ba7e=this['editor']['plugins']['get']('TableUtils');let _0x274790=Number['MAX_SAFE_INTEGER'],_0x123a75=Number['MIN_SAFE_INTEGER'],_0x371337=Number['MAX_SAFE_INTEGER'],_0x2fc4f4=Number['MIN_SAFE_INTEGER'];for(const _0x360009 of _0x1e3106){if('$graveyard'==_0x360009['root']['rootName'])continue;const {row:_0xb54db4,column:_0x39b8e9}=_0x12ba7e['getCellLocation'](_0x360009),_0x362472=_0x360009['hasAttribute']('rowspan')?_0x360009['getAttribute']('rowspan')-0x1:0x0,_0x29ae8b=_0x360009['hasAttribute']('colspan')?_0x360009['getAttribute']('colspan')-0x1:0x0;_0x274790=_0xb54db4<_0x274790?_0xb54db4:_0x274790,_0x123a75=_0xb54db4+_0x362472>_0x123a75?_0xb54db4+_0x362472:_0x123a75,_0x371337=_0x39b8e9<_0x371337?_0x39b8e9:_0x371337,_0x2fc4f4=_0x39b8e9+_0x29ae8b>_0x2fc4f4?_0x39b8e9+_0x29ae8b:_0x2fc4f4;}return{'minRow':_0x274790,'maxRow':_0x123a75,'minColumn':_0x371337,'maxColumn':_0x2fc4f4};}_setupColumnsRowsFixing(){const _0x398af6=this['editor'],_0x1cf8ee=_0x398af6['plugins']['get']('TrackChangesEditing'),_0x2b119f=_0x398af6['plugins']['get']('TableUtils');_0x398af6['model']['document']['on']('change:data',()=>{const _0x409a83=Array['from'](_0x398af6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb0ff0f,data:_0x2691c3}of _0x409a83){const {group:_0x24fa86,id:_0x1990d8,subType:_0x2dcf39}=nt(_0xb0ff0f);if('suggestion'!=_0x24fa86)continue;if(null!=_0x2691c3['oldRange'])continue;const _0x3152e1=_0x1cf8ee['getSuggestion'](_0x1990d8);this['_tablePostFixingSubtypes']['includes'](_0x2dcf39)&&this['_tableSuggestions']['add'](_0x3152e1);}},{'priority':'low'});const _0x4d43e5=(_0x246436,_0x3018b1)=>{let _0x4424a8=!0x1;const _0x10bb6c=_0x3018b1['createRangeOn'](_0x246436),_0x3d6021=_0x246436['findAncestor']('table'),_0x277b58=_0x2b119f['getCellLocation'](_0x246436);for(const _0x43e8c7 of this['_tableSuggestions']){const _0x2cd647=_0x43e8c7['subType'],_0x5ed72f=_0x2cd647['startsWith']('tablePaste'),_0x156594=_0x2cd647['substr'](_0x5ed72f?0xa:0x5),_0x43d45f=_0x156594['toLowerCase'](),_0x135e45=_0x43d45f['substr'](0x0,0x3)+'span',_0x460149='min'+_0x156594,_0x5518ac='max'+_0x156594;if(!_0x43e8c7['isInContent'])continue;if(_0x3d6021!=_0x43e8c7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43e8c7['isIntersectingWithRange'](_0x10bb6c))continue;const _0x15123f=_0x246436['hasAttribute'](_0x135e45)?_0x246436['getAttribute'](_0x135e45)-0x1:0x0,_0xc9680a=this['_getSuggestionCoords'](_0x43e8c7),_0x594615=_0xc9680a[_0x460149],_0xcc69a7=_0xc9680a[_0x5518ac];_0x594615<=_0x277b58[_0x43d45f]&&_0x277b58[_0x43d45f]+_0x15123f<=_0xcc69a7&&(_0x43e8c7['addRange'](_0x10bb6c),_0x4424a8=!0x0);}return _0x4424a8;};_0x398af6['model']['document']['registerPostFixer'](_0x383f4d=>{let _0x482643=!0x1;for(const _0x251534 of _0x398af6['model']['document']['differ']['getChanges']())if('insert'==_0x251534['type']){if('tableRow'==_0x251534['name']){for(const _0x51972d of _0x251534['position']['nodeAfter']['getChildren']())_0x482643=_0x482643||_0x4d43e5(_0x51972d,_0x383f4d);}else'tableCell'==_0x251534['name']&&(_0x482643=_0x482643||_0x4d43e5(_0x251534['position']['nodeAfter'],_0x383f4d));}return _0x482643;});}_getSuggestionCoords(_0xf06dfc){return this['_getCoordsForCells'](_0xf06dfc['getRanges']()['map'](_0x3ec3ff=>_0x3ec3ff['start']['nodeAfter']));}};function Ge(_0x1dcfc3){return Array['from'](new Set(_0x1dcfc3)['values']());}var He=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x508d48=this['editor'],_0xea0b82=_0x508d48['model']['document']['selection'],_0x23ed5d=_0x508d48['locale'];if(!_0x508d48['plugins']['has']('TableEditing'))return;const _0x9cf697=_0x508d48['plugins']['get']('TrackChangesEditing'),_0xa3b93e=_0x508d48['plugins']['get']('TableUtils'),_0x2dda0f=_0x508d48['plugins']['get'](xe);_0x2dda0f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x9cf697['enableCommand']('mergeTableCells',()=>{const _0x14967f=_0xa3b93e['getSelectionAffectedTableCells'](_0x508d48['model']['document']['selection']);_0x508d48['model']['change'](()=>{_0x9cf697['markMultiRangeBlockFormat'](_0x14967f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x508d48['commands']['get']('mergeTableCells')['on']('execute',(_0x5d1d15,_0x1ef5db)=>{_0x508d48['commands']['get']('trackChanges')['value']&&(_0x1ef5db['length']>0x0&&_0x1ef5db[_0x1ef5db['length']-0x1]&&_0x1ef5db[_0x1ef5db['length']-0x1]['forceDefaultExecution']||_0x9cf697['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5d1d15['stop']());},{'priority':'highest'});for(const _0x2b0330 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3255e8=_0x508d48['commands']['get'](_0x2b0330);_0x9cf697['enableCommand'](_0x2b0330,()=>{const _0xbb24ac=_0x508d48['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23c37=>_0x23c37['is']('element','tableCell')),_0x266de3=_0x3255e8['value'];_0x508d48['model']['change'](()=>{_0x9cf697['markMultiRangeBlockFormat']([_0xbb24ac,_0x266de3],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x365c0c of['splitTableCellVertically','splitTableCellHorizontally']){const _0xe2e793=_0x508d48['commands']['get'](_0x365c0c);_0x9cf697['enableCommand'](_0x365c0c,()=>{const _0x1e50e1=_0xa3b93e['getSelectionAffectedTableCells'](_0x508d48['model']['document']['selection']),_0x2bfc58=_0x1e50e1[0x0]['findAncestor']('table'),_0x997830=new Set();for(const _0x3b8763 of _0x1e50e1){const {column:_0x4832bb,row:_0x46fd4e}=_0xa3b93e['getCellLocation'](_0x3b8763),_0x2c2ed1='horizontally'==_0xe2e793['direction']?_0xa3b93e['createTableWalker'](_0x2bfc58,{'startRow':_0x46fd4e,'endRow':_0x46fd4e,'includeAllSlots':!0x0}):_0xa3b93e['createTableWalker'](_0x2bfc58,{'column':_0x4832bb,'includeAllSlots':!0x0});for(const {cell:_0x13a8e9}of _0x2c2ed1)_0x997830['add'](_0x13a8e9);}_0x508d48['model']['change'](()=>{_0x9cf697['markMultiRangeBlockFormat'](_0x1e50e1,{'commandName':_0x365c0c,'commandParams':[]},Array['from'](_0x997830),_0x365c0c);});});}_0x9cf697['descriptionFactory']['registerDescriptionCallback'](_0x148552=>{if('formatBlock'!=_0x148552['type']&&'formatInline'!=_0x148552['type'])return;const {data:_0x3964ca}=_0x148552;return _0x3964ca&&'mergeTableCells'==_0x3964ca['commandName']?{'type':'format','content':wt(_0x23ed5d,'*Merge\x20cells*')}:void 0x0;}),_0x9cf697['descriptionFactory']['registerDescriptionCallback'](_0x41f7cd=>{if('formatBlock'!=_0x41f7cd['type']&&'formatInline'!=_0x41f7cd['type'])return;const {data:_0x26fccc}=_0x41f7cd;return _0x26fccc?'splitTableCellVertically'==_0x26fccc['commandName']?{'type':'format','content':wt(_0x23ed5d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x26fccc['commandName']?{'type':'format','content':wt(_0x23ed5d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xb581d4=_0x2dda0f['_acceptFormatSuggestionCallbackFactory']();for(const _0xadd143 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x9cf697['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xadd143,'accept',_0xb581d4);for(const _0xa33064 of['splitTableCellVertically','splitTableCellHorizontally'])_0x9cf697['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa33064,'accept',_0x57010d=>{_0x508d48['model']['change'](_0x4fcd8=>{const _0x544a04=Array['from'](_0x57010d)['filter'](_0x4f19f1=>'$graveyard'!=_0x4f19f1['root']['rootName']&&!!_0x4f19f1['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x544a04['length'])return;const _0x4ee204=Array['from'](_0xea0b82['getRanges']())['map'](_0xaa95e5=>at['fromRange'](_0xaa95e5));_0x4fcd8['setSelection'](_0x544a04),_0x508d48['commands']['get'](_0xa33064)['refresh'](),_0x508d48['execute'](_0xa33064,{'forceDefaultExecution':!0x0});const _0x493a6b=_0x4ee204['filter'](_0x29cb95=>'$graveyard'!=_0x29cb95['root']['rootName']);_0x493a6b['length']>0x0&&_0x4fcd8['setSelection'](_0x493a6b);for(const _0x1d2bac of _0x4ee204)_0x1d2bac['detach']();});});_0x9cf697['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3e8692=>{_0x508d48['model']['change'](_0x52e95d=>{const _0x30ff58=Array['from'](_0xea0b82['getRanges']())['map'](_0x56fa13=>at['fromRange'](_0x56fa13));_0x52e95d['setSelection'](_0x3e8692),_0x508d48['commands']['get']('mergeTableCells')['refresh'](),_0x508d48['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b44ce=_0x30ff58['filter'](_0x211f9d=>'$graveyard'!=_0x211f9d['root']['rootName']);_0x5b44ce['length']>0x0&&_0x52e95d['setSelection'](_0x5b44ce);for(const _0x4f4661 of _0x30ff58)_0x4f4661['detach']();});});for(const _0x588bb7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4944ea=_0x508d48['commands']['get'](_0x588bb7);_0x4944ea['on']('set:isEnabled',(_0x5a1d2c,_0x58adf4,_0x3ce4bf)=>{if(_0x3ce4bf){const _0x483fb7=_0x508d48['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b1df8=>_0x2b1df8['is']('element','tableCell'));this['_areMergableCells'](_0x4944ea['value'],_0x483fb7)||(_0x5a1d2c['return']=!0x1,_0x5a1d2c['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x386baa=this['editor']['commands']['get']('mergeTableCells'),_0x362fdf=this['editor']['plugins']['get']('TableUtils');if(!_0x386baa['isEnabled'])return!0x1;const _0x3816b2=_0x362fdf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x571170 of _0x3816b2)for(const _0xe636a5 of _0x3816b2)if(_0x571170!=_0xe636a5&&!this['_areMergableCells'](_0x571170,_0xe636a5))return!0x1;return!0x0;}['_areMergableCells'](_0x21a9b5,_0x55a13f){const _0x592a43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x67981d=this['editor']['model']['createRangeOn'](_0x21a9b5),_0x23d4fb=this['editor']['model']['createRangeOn'](_0x55a13f),_0x280dad=new Set(),_0x3b227f=new Set();for(const _0x47bd8d of _0x592a43['getSuggestions']())if(('insertion'==_0x47bd8d['type']||'deletion'==_0x47bd8d['type']||'mergeTableCells'==_0x47bd8d['subType'])&&_0x47bd8d['isInContent']){for(const _0x1984ca of _0x47bd8d['getRanges']())_0x1984ca['containsRange'](_0x67981d,!0x0)&&_0x280dad['add'](_0x47bd8d['type']+':'+_0x47bd8d['author']['id']),_0x1984ca['containsRange'](_0x23d4fb,!0x0)&&_0x3b227f['add'](_0x47bd8d['type']+':'+_0x47bd8d['author']['id']);}if(_0x280dad['size']!=_0x3b227f['size'])return!0x1;for(const _0x201eee of _0x280dad)if(!_0x3b227f['has'](_0x201eee))return!0x1;return!0x0;}},$e=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x40061d=this['editor'];if(!_0x40061d['plugins']['has']('TableEditing'))return;const _0x15b775=_0x40061d['locale'],_0xe4f191=_0x40061d['plugins']['get']('TrackChangesEditing');_0xe4f191['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xe4f191['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xe4f191['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0x15b775,'FORMAT_HEADER_ROW')),_0xe4f191['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0x15b775,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x50b64c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cd628=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0x50b64c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cd628),_0x50b64c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cd628),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0xc918da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15f1a9=this['editor']['plugins']['get']('TableUtils');function _0x30095f({showActiveMarker:_0xd4b86=!0x0,setDataAttribute:_0x2e5799=!0x0}={}){return(_0xa16a7c,_0x1b0e74,_0x4c41bf)=>{const {type:_0x25c673,id:_0x5226f1}=nt(_0x1b0e74['markerName']);if(!_0xc918da['hasSuggestion'](_0x5226f1))return;const _0x5d1e97=_0xc918da['getSuggestion'](_0x5226f1),_0x3f4564=_0x5d1e97['data'];if('formatBlock'!=_0x5d1e97['type']||!_0x3f4564||'setTableColumnHeader'!=_0x3f4564['commandName'])return;if(_0x1b0e74['item'])return void _0xa16a7c['stop']();if(!_0x4c41bf['consumable']['consume'](_0x1b0e74['markerRange'],_0xa16a7c['name']))return;const _0x46c6aa=_0x1b0e74['markerRange']['start']['nodeAfter'],_0x5c6955=_0x1b0e74['markerRange']['end']['nodeBefore'],_0x4ee73e=_0x46c6aa['parent']['parent'],{column:_0x1a0a6f}=_0x15f1a9['getCellLocation'](_0x46c6aa),{column:_0x303f37}=_0x15f1a9['getCellLocation'](_0x5c6955);for(let _0x58b872=_0x1a0a6f;_0x58b872<=_0x303f37;_0x58b872++){const _0x2a3e6f=_0x15f1a9['createTableWalker'](_0x4ee73e,{'column':_0x58b872,'includeAllSlots':!0x1});for(const _0x13421b of _0x2a3e6f){const _0x16d200=_0x13421b['cell'],_0x2f481e=_0x4c41bf['mapper']['toViewElement'](_0x16d200);_0x4c41bf['writer']['addClass']('ck-suggestion-marker-'+_0x25c673,_0x2f481e),_0x2e5799&&_0x4c41bf['writer']['setAttribute']('data-suggestion',_0x5226f1,_0x2f481e),_0x4c41bf['mapper']['bindElementToMarker'](_0x2f481e,_0x1b0e74['markerName']),_0xd4b86&&(_0xc918da['activeMarkers']['includes'](_0x1b0e74['markerName'])?_0x4c41bf['writer']['addClass']('ck-suggestion-marker--active',_0x2f481e):_0x4c41bf['writer']['removeClass']('ck-suggestion-marker--active',_0x2f481e));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x30095f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x274cad,_0x528aa7,_0x5dd7dd)=>{_0x5dd7dd['options']['showSuggestionHighlights']&&_0x30095f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x274cad,_0x528aa7,_0x5dd7dd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5b0529,_0xe6842c,_0x380809)=>{const {type:_0x3745db,id:_0x3f3176}=nt(_0xe6842c['markerName']);if(!_0xc918da['hasSuggestion'](_0x3f3176))return;const _0x5d0e80=_0xc918da['getSuggestion'](_0x3f3176),_0x331e92=_0x5d0e80['data'];if('formatBlock'!=_0x5d0e80['type']||!_0x331e92||'setTableColumnHeader'!=_0x331e92['commandName'])return;const _0x398b1b=_0x380809['mapper']['markerNameToElements'](_0xe6842c['markerName']);if(_0x398b1b){for(const _0x3fcf6c of _0x398b1b)_0x380809['writer']['removeClass']('ck-suggestion-marker-'+_0x3745db,_0x3fcf6c),_0x380809['writer']['removeClass']('ck-suggestion-marker--active',_0x3fcf6c),_0x380809['writer']['removeAttribute']('data-suggestion',_0x3fcf6c),_0x380809['mapper']['unbindElementFromMarkerName'](_0x3fcf6c,_0xe6842c['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x373d53=this['editor'],_0x2ea222=_0x373d53['locale'];function _0x59c864(_0x3879b1){return{'type':'format','content':wt(_0x2ea222,'*Format:*\x20%0',_0x3879b1)};}_0x373d53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19de14=>{if('formatBlock'!=_0x19de14['type'])return;const {data:_0x447db7}=_0x19de14;return _0x447db7?'setTableRowHeader'==_0x447db7['commandName']?_0x447db7['commandParams'][0x0]['forceValue']?_0x59c864(wt(_0x2ea222,'FORMAT_HEADER_ROW')):_0x59c864(wt(_0x2ea222,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x447db7['commandName']?_0x447db7['commandParams'][0x0]['forceValue']?_0x59c864(wt(_0x2ea222,'FORMAT_HEADER_COLUMN')):_0x59c864(wt(_0x2ea222,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x32ae6b=this['editor'];if(!_0x32ae6b['plugins']['has']('TableEditing')||!_0x32ae6b['config']['get']('table.enableFooters'))return;const _0x253d6c=_0x32ae6b['locale'],_0x545880=_0x32ae6b['plugins']['get']('TrackChangesEditing');_0x545880['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x545880['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x253d6c,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x139d64{afterInit(){const _0x3ffc86=this['editor'],_0xab79ed=_0x3ffc86['locale'],_0x2effbf=_0x3ffc86['plugins']['get']('TrackChangesEditing');function _0x124c0d(_0x1220e6){return{'type':'format','content':''+wt(_0xab79ed,'*Set\x20table\x20type:*\x20%0',_0x1220e6)};}_0x3ffc86['plugins']['has']('TableLayout')&&(_0x2effbf['enableCommand']('insertTableLayout'),_0x2effbf['enableDefaultAttributesIntegration']('tableType'),_0x2effbf['descriptionFactory']['registerElementLabel'](_0xe54de6=>_0xe54de6['is']('element','table')&&'layout'===_0xe54de6['getAttribute']('tableType'),_0x509a9d=>wt(_0xab79ed,'ELEMENT_LAYOUT_TABLE',_0x509a9d)),_0x2effbf['descriptionFactory']['registerDescriptionCallback'](_0x3f81fe=>{const {data:_0x4d591c}=_0x3f81fe;if(_0x4d591c&&'tableType'==_0x4d591c['key'])switch(_0x4d591c['newValue']){case'layout':return _0x124c0d(wt(_0xab79ed,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x124c0d(wt(_0xab79ed,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](ze['map'](_0x117a52=>[_0x117a52,null]));var Ke=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x49754e=this['editor'];if(!_0x49754e['plugins']['has']('TableClipboard'))return;const _0x4c0500=_0x49754e['plugins']['get']('TrackChangesEditing'),_0x44464e=_0x49754e['plugins']['get']('TableUtils'),_0x461139=_0x49754e['plugins']['get'](xe),_0x45747=_0x49754e['plugins']['get']('TableClipboard'),_0x9c0890=_0x49754e['plugins']['get']('TableSelection'),_0x2c168e=_0x49754e['plugins']['get'](mt);_0x461139['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x49754e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x49754e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x198bee=null,_0x512430=!0x1;_0x2c168e['on']('contentInsertion',(_0x580ae9,_0x486e8f)=>{_0x512430='paste'===_0x486e8f['method'];}),_0x49754e['model']['on']('insertContent',(_0x3714fd,_0x350f24)=>{if(!_0x512430&&null===_0x9c0890['getSelectedTableCells']())return;const [_0x454c14,_0xa0edcf]=_0x350f24,_0x5597ba=_0x350f24[_0x350f24['length']-0x1];_0x5597ba&&_0x5597ba['forceDefaultExecution']||_0x4c0500['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x313399,_0x3e6ba3,_0x14c0f1,_0x306689,_0xd5814c){if(_0x3e6ba3&&!_0x3e6ba3['is']('documentSelection'))return!0x1;const _0x55d01b=_0xd5814c['getTableIfOnlyTableInContent'](_0x313399,_0x14c0f1);if(!_0x55d01b||!qe(_0x55d01b,void 0x0,_0x306689))return!0x1;const _0x5d13d9=_0x306689['getSelectionAffectedTableCells'](_0x14c0f1['document']['selection']);if(!_0x5d13d9['length'])return!0x1;const _0x4b16e7=_0x5d13d9[0x0]['findAncestor']('table'),_0x5629a8=_0x306689['getRowIndexes'](_0x5d13d9),_0xe83349=_0x306689['getColumnIndexes'](_0x5d13d9),_0x510a36={'startRow':_0x5629a8['first'],'endRow':_0x5629a8['last'],'startColumn':_0xe83349['first'],'endColumn':_0xe83349['last']};return 0x1==_0x5d13d9['length']&&(_0x510a36['endRow']+=_0x306689['getRows'](_0x55d01b)-0x1,_0x510a36['endColumn']+=_0x306689['getColumns'](_0x55d01b)-0x1),qe(_0x4b16e7,_0x510a36,_0x306689);}(_0x454c14,_0xa0edcf,_0x49754e['model'],_0x44464e,_0x45747)&&(_0x3714fd['stop'](),_0x198bee={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x49754e['model']['change'](()=>{_0x49754e['model']['insertContent'](_0x350f24[0x0],_0x350f24[0x1],_0x350f24[0x2],{'forceDefaultExecution':!0x0});const _0x5ca1c1=_0xa3c351(),{rowInsertionRanges:_0x2dcc7e,columnInsertionRanges:_0x5d9f45,insertionRanges:_0x283dc5,deletionRanges:_0x4bfa11,cells:_0x323dae}=_0x198bee;_0x2dcc7e['length']&&_0x4c0500['markMultiRangeInsertion'](_0x2dcc7e,'tablePasteRow',{'tablePasteChainId':_0x5ca1c1}),_0x5d9f45['length']&&_0x4c0500['markMultiRangeInsertion'](_0x5d9f45,'tablePasteColumn',{'tablePasteChainId':_0x5ca1c1}),_0x283dc5['length']&&(_0x4c0500['markMultiRangeInsertion'](_0x283dc5,'tablePaste',{'tablePasteChainId':_0x5ca1c1,'skipNestingCheck':!0x0}),_0x283dc5['forEach'](_0x44bc88=>_0x44bc88['detach']?.())),_0x4bfa11['length']&&(_0x4c0500['markMultiRangeDeletion'](_0x4bfa11,'tablePaste',{'tablePasteChainId':_0x5ca1c1,'skipNestingCheck':!0x0}),_0x4bfa11['forEach'](_0x2efe56=>_0x2efe56['detach']?.()));const _0x47659f=_0x4c0500['markMultiRangeBlockFormat'](_0x323dae['map'](({element:_0x5993c9})=>_0x5993c9),{'formatGroupId':_0xa3c351()},[],'tablePasteCell',{'tablePasteChainId':_0x5ca1c1});if(_0x47659f){const _0x29b49a=_0x47659f['getMarkers'](),_0x291a51=[];for(const {element:_0x53e4de,attributes:_0x18fd9e}of _0x323dae){if(!_0x18fd9e)continue;const _0xac5054=_0x49754e['model']['createRangeOn'](_0x53e4de),_0x21016c=_0x29b49a['find'](_0x409e89=>_0x409e89['getRange']()['isEqual'](_0xac5054));_0x21016c&&_0x291a51['push']([_0x21016c['name'],_0x18fd9e]);}_0x291a51['length']&&_0x47659f['setAttribute']('markerAttributes',Object['fromEntries'](_0x291a51));}_0x198bee=null;}));},{'priority':_0x222bed['high']+0xa}),_0x2c168e['on']('contentInsertion',()=>{_0x512430=!0x1;},{'priority':'lowest'}),_0x49754e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3d486c,_0x2f8711)=>{const [_0x1e6002,_0x354724,,_0x4a8b01]=_0x2f8711;if(!_0x198bee)return;_0x3d486c['stop']();const _0x250e43=_0x1e6002['cell'],_0x24ce9e=_0x354724,_0x242a5f=Xe(_0x250e43),_0x11baae=Xe(_0x24ce9e);_0x3d486c['return']=_0x250e43;let _0x5d7f2d=null,_0x1395e0=null;if(_0x11baae||_0x242a5f){if(_0x242a5f&&!_0x11baae){_0x4a8b01['remove'](_0x250e43['getChild'](0x0));for(const _0xf1917c of Array['from'](_0x24ce9e['getChildren']()))_0x4a8b01['insert'](_0xf1917c,_0x250e43,'end');const _0x259a5d=_0x198bee['rowInsertionIndexes']['includes'](_0x1e6002['row']),_0x12b19c=_0x198bee['columnInsertionIndexes']['includes'](_0x1e6002['column']);_0x259a5d||_0x12b19c||(_0x5d7f2d=at['fromRange'](_0x4a8b01['createRangeIn'](_0x250e43)));}else _0x11baae&&!_0x242a5f&&(_0x1395e0=_0x4a8b01['createRangeIn'](_0x250e43));}else{const _0xaf6a19=_0x4a8b01['createElement']('tableCellSuggestion'),_0x4824aa=_0x4a8b01['createElement']('tableCellSuggestion');_0x4a8b01['wrap'](_0x4a8b01['createRangeIn'](_0x250e43),_0x4824aa),_0x4a8b01['insert'](_0xaf6a19,_0x250e43,0x0);for(const _0x3d9c37 of Array['from'](_0x24ce9e['getChildren']()))_0x4a8b01['insert'](_0x3d9c37,_0xaf6a19,'end');_0x5d7f2d=at['fromRange'](_0x4a8b01['createRangeOn'](_0xaf6a19)),_0x1395e0=at['fromRange'](_0x4a8b01['createRangeOn'](_0x4824aa));}const _0x160f53=Array['from'](_0x24ce9e['getAttributes']())['filter'](([_0x5418bc])=>ze['includes'](_0x5418bc));_0x198bee['cells']['push']({'element':_0x250e43,'attributes':_0x160f53['length']?Object['fromEntries'](_0x160f53):null}),_0x5d7f2d&&_0x198bee['insertionRanges']['push'](_0x5d7f2d),_0x1395e0&&_0x198bee['deletionRanges']['push'](_0x1395e0);},{'priority':'high'}),_0x44464e['on']('insertColumns',(_0x1c4e88,_0x173203)=>{const [_0x3c9305,_0x451371={}]=_0x173203;if(!_0x198bee)return;const _0x35549c=_0x451371['at']||0x0,_0x30f230=_0x451371['columns']||0x1;_0x198bee['columnInsertionIndexes']=new Array(_0x30f230)['fill'](_0x35549c)['map']((_0x5af027,_0x4a63dc)=>_0x5af027+_0x4a63dc);for(const {cell:_0x113e00}of _0x44464e['createTableWalker'](_0x3c9305,{'startColumn':_0x35549c,'endColumn':_0x35549c+_0x30f230-0x1}))_0x198bee['columnInsertionRanges']['push'](_0x49754e['model']['createRangeOn'](_0x113e00));},{'priority':'low'}),_0x44464e['on']('insertRows',(_0x145920,_0x7404ae)=>{const [_0x5cbde8,_0x2cb7d5={}]=_0x7404ae;if(!_0x198bee)return;const _0xf4b912=_0x2cb7d5['at']||0x0,_0x13ca8=_0x2cb7d5['rows']||0x1;_0x198bee['rowInsertionIndexes']=new Array(_0x13ca8)['fill'](_0xf4b912)['map']((_0x7a6d9b,_0x5f51f4)=>_0x7a6d9b+_0x5f51f4);for(const {cell:_0x2187b6}of _0x44464e['createTableWalker'](_0x5cbde8,{'startRow':_0xf4b912,'endRow':_0xf4b912+_0x13ca8-0x1}))_0x198bee['rowInsertionRanges']['push'](_0x49754e['model']['createRangeOn'](_0x2187b6));},{'priority':'low'}),_0x4c0500['descriptionFactory']['registerDescriptionCallback'](_0x53ead6=>{if(_0x53ead6['subType']&&_0x53ead6['subType']['startsWith']('tablePaste'))return _0x53ead6['previous']?{}:{'type':'insertion','content':wt(_0x49754e['locale'],'*Replace\x20table\x20cells*')};});const _0x1fa500=()=>!0x1;for(const _0x943d49 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c0500['_suggestionFactory']['registerCustomCallback']('insertion',_0x943d49,'join',_0x1fa500),_0x4c0500['_suggestionFactory']['registerCustomCallback']('deletion',_0x943d49,'join',_0x1fa500),_0x4c0500['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x943d49,'join',_0x1fa500);_0x4c0500['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1fa500),_0x4c0500['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x358423,_0x39c235,_0x395507)=>{const _0x50d52a=_0x358423['map'](_0x45e0c5=>_0x45e0c5['getContainedElement']())['filter'](_0x8bc758=>_0x8bc758),_0x3a6a6a=new Map(_0x50d52a['map'](_0x3816d8=>[_0x3816d8,null]));if(_0x198bee){for(const {element:_0x349c2d,attributes:_0x2973d8}of _0x198bee['cells'])_0x2973d8&&_0x3a6a6a['set'](_0x349c2d,_0x2973d8);}else{if(_0x395507&&_0x395507['markerAttributes'])for(const [_0x33f9d8,_0x42a3b8]of Object['entries'](_0x395507['markerAttributes'])){const _0xa980c6=_0x49754e['model']['markers']['get'](_0x33f9d8),_0x1321e0=_0xa980c6?_0xa980c6['getRange']()['getContainedElement']():null;_0x1321e0&&_0x3a6a6a['set'](_0x1321e0,_0x42a3b8);}}_0x49754e['model']['change'](_0xdf26e5=>{for(const [_0x10c09e,_0x134e65]of _0x3a6a6a)_0xdf26e5['setAttributes']({...je,..._0x134e65},_0x10c09e);});});const _0x500b3a=(_0x280e2c,_0x366df3)=>{_0x4c0500['_suggestionFactory']['registerCustomCallback'](_0x280e2c,'tablePaste',_0x366df3,(_0x4019ac,_0x577468,_0x5b6646)=>{_0x49754e['model']['change'](_0x5664d8=>{const _0x371f36=[];for(const _0x16633a of _0x4019ac){const _0x515aab=_0x16633a['start']['nodeAfter'];_0x515aab['is']('element','tableCellSuggestion')&&_0x371f36['push'](_0x515aab);}_0x4c0500['_suggestionFactory']['getSuggestionCallback'](_0x280e2c,null,_0x366df3)(_0x4019ac,_0x577468,_0x5b6646);for(const _0x422aa4 of _0x371f36)'$graveyard'!=_0x422aa4['root']['rootName']&&_0x5664d8['unwrap'](_0x422aa4);});});};_0x500b3a('insertion','accept'),_0x500b3a('insertion','discard'),_0x500b3a('deletion','accept'),_0x500b3a('deletion','discard'),_0x4c0500['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1dd3ec=>{const _0x8050aa=_0x1dd3ec['map'](_0x3ef13f=>_0x3ef13f['getContainedElement']()),_0x16978a=_0x8050aa[0x0]['findAncestor']('table'),{minRow:_0x2b5348,maxRow:_0x1a1c0f}=_0x461139['_getCoordsForCells'](_0x8050aa);_0x44464e['removeRows'](_0x16978a,{'at':_0x2b5348,'rows':_0x1a1c0f-_0x2b5348+0x1});}),_0x4c0500['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x55a6dc=>{const _0x2413c2=_0x55a6dc['map'](_0x353163=>_0x353163['getContainedElement']()),_0x520a95=_0x2413c2[0x0]['findAncestor']('table'),{minColumn:_0x2ba93b,maxColumn:_0x4a629b}=_0x461139['_getCoordsForCells'](_0x2413c2);_0x44464e['removeColumns'](_0x520a95,{'at':_0x2ba93b,'columns':_0x4a629b-_0x2ba93b+0x1});});const _0x78cbbe=(_0x23e4e4,_0x4fbe12)=>{if(!_0x4fbe12['subType']||!_0x4fbe12['subType']['startsWith']('tablePaste'))return;const _0x2249b2=_0x4fbe12['attributes']['tablePasteChainId'],_0x3671a8=_0x4c0500['getSuggestions']()['filter'](_0x27bb3a=>_0x27bb3a['isInContent']&&_0x27bb3a['attributes']&&_0x27bb3a['attributes']['tablePasteChainId']==_0x2249b2);_0x3671a8['length']&&_0x4fbe12['getAllAdjacentSuggestions']()['length']!=_0x3671a8['length']&&_0x3671a8['reduce']((_0x3a5de7,_0x32efa4)=>(_0x3a5de7['next']=_0x32efa4,_0x32efa4['previous']=_0x3a5de7,_0x32efa4));};function _0x4f8608(_0x257b18,_0x4e0264=!0x0){const {id:_0x2c9976,authorId:_0x3dce05}=nt(_0x257b18['markerName']),_0x5d9742=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x344978=_0x4c0500['activeMarkers']['includes'](_0x257b18['markerName']);return _0x344978&&_0x5d9742['push']('ck-suggestion-marker--active'),{'classes':_0x5d9742,'attributes':{'data-suggestion':_0x2c9976,'data-author-id':_0x3dce05},'priority':_0x344978&&_0x4e0264?0xbc2:0xbb8};}_0x4c0500['on']('suggestionLoaded',_0x78cbbe,{'priority':'high'}),_0x4c0500['on']('suggestionUnloaded',_0x78cbbe,{'priority':'high'}),_0x49754e['model']['document']['registerPostFixer'](()=>{let _0x2820c4=!0x1;const _0xc361f8=Array['from'](_0x49754e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bd382,data:_0x417a15}of _0xc361f8){const {group:_0x4cb1c7,type:_0x18526c,id:_0xe49751}=nt(_0x4bd382);if('suggestion'!=_0x4cb1c7||'deletion'!=_0x18526c||_0x417a15['oldRange'])continue;if(!_0x4c0500['hasSuggestion'](_0xe49751))continue;const _0x51e6f0=_0x4c0500['getSuggestion'](_0xe49751)['getRanges'](),_0x3b8e63=_0x49754e['plugins']['get']('Users')['me'];for(const _0x552808 of _0x4c0500['getSuggestions']())if(_0x552808['isInContent']&&_0x552808['author']==_0x3b8e63&&'formatBlock'==_0x552808['type']&&'tablePasteCell'==_0x552808['subType']&&_0x552808['getRanges']()['every'](_0x328931=>_0x51e6f0['some'](_0x215feb=>_0x215feb['containsRange'](_0x328931,!0x0)))){for(const _0xcb3753 of _0x552808['getAllAdjacentSuggestions']())_0xcb3753['isInContent']&&(_0xcb3753['discard'](),_0x2820c4=!0x0);}}return _0x2820c4;}),_0x49754e['model']['document']['registerPostFixer'](_0x2f4b70=>{const _0x184a35=_0x49754e['commands']['get']('redo');if(!_0x184a35||!_0x184a35['_createdBatches']['has'](_0x2f4b70['batch']))return!0x1;let _0x449e02=!0x1;const _0x3cca06=_0x49754e['plugins']['get']('Users')['me'],_0x419ab1=_0x49754e['model']['document']['differ']['getChanges'](),_0x3be0ef=Array['from'](_0x49754e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3f3294,data:_0x55d88b})=>{const {group:_0x39218b,subType:_0x42dff4,authorId:_0xe817c}=nt(_0x3f3294);return'suggestion'==_0x39218b&&'tablePaste'==_0x42dff4&&_0xe817c==_0x3cca06['id']&&!_0x55d88b['oldRange'];});for(const _0x37f3d7 of _0x419ab1){if('insert'!=_0x37f3d7['type']||'tableCellSuggestion'!=_0x37f3d7['name']||0x1!=_0x37f3d7['length'])continue;const _0x170092=_0x2f4b70['createRange'](_0x37f3d7['position'],_0x37f3d7['position']['getShiftedBy'](0x1));if(!_0x3be0ef['find'](({data:_0x4d49c0})=>_0x4d49c0['newRange']['isEqual'](_0x170092))){for(const {name:_0x4bdf25,data:_0x571a1e}of _0x3be0ef)if(_0x170092['containsRange'](_0x571a1e['newRange'])){_0x2f4b70['updateMarker'](_0x4bdf25,{'range':_0x170092}),_0x449e02=!0x0;break;}}}return _0x449e02;}),_0x49754e['model']['document']['registerPostFixer'](_0x4383dd=>{let _0x18cdac=!0x1;const _0x1a1d48=_0x49754e['plugins']['get']('Users')['me'],_0x4b66cf=_0x4c0500['getSuggestions']()['filter'](_0x2574b6=>_0x2574b6['isInContent']&&_0x2574b6['author']==_0x1a1d48),_0x464744=new Set(),_0xb93c64=new Set();for(const _0x280c27 of _0x4b66cf)if('tablePaste'==_0x280c27['subType'])for(const _0x446cef of _0x280c27['getMarkers']()){const _0x2652fd=_0x446cef['getRange']()['getContainedElement']();if(_0x2652fd){if(_0x2652fd['is']('element','tableCellSuggestion')&&Xe(_0x2652fd)){_0x280c27['removeMarker'](_0x446cef['name']),_0x464744['add'](_0x2652fd),_0x18cdac=!0x0;const _0x5b1722=_0x2652fd['nextSibling'],_0x226d86=_0x2652fd['previousSibling'],_0x587a9c=_0x5b1722&&_0x5b1722['is']('element','tableCellSuggestion'),_0x350879=_0x226d86&&_0x226d86['is']('element','tableCellSuggestion');_0x587a9c&&!_0x464744['has'](_0x5b1722)&&_0xb93c64['add'](_0x5b1722),_0x350879&&!_0x464744['has'](_0x226d86)&&_0xb93c64['add'](_0x226d86);}else _0x2652fd['is']('element','paragraph')&&_0x2652fd['isEmpty']&&(_0x280c27['removeMarker'](_0x446cef['name']),_0x18cdac=!0x0);}}else{if('tablePasteCell'==_0x280c27['subType']){if(!_0x280c27['attributes']||!_0x280c27['attributes']['tablePasteChainId'])continue;const _0x5c6ac9=_0x280c27['attributes']['markerAttributes'];if(_0x5c6ac9&&Object['keys'](_0x5c6ac9)['length'])continue;const _0x59d0b9=_0x280c27['attributes']['tablePasteChainId'];let _0x4161c8=!0x0,_0x2d0a9c=!0x0;for(const _0x3b13a4 of _0x4b66cf)if(_0x3b13a4['subType']&&_0x3b13a4['subType']['startsWith']('tablePaste')){if(!_0x3b13a4['attributes']['tablePasteChainId']){_0x2d0a9c=!0x1;break;}if(_0x3b13a4['id']!=_0x280c27['id']&&_0x3b13a4['attributes']['tablePasteChainId']==_0x59d0b9){_0x4161c8=!0x1;break;}}_0x2d0a9c&&_0x4161c8&&(_0x280c27['removeMarkers'](),_0x18cdac=!0x0);}}for(const _0x3475d0 of _0x464744)_0x4383dd['remove'](_0x3475d0);for(const _0x1a5745 of _0xb93c64)_0x4383dd['unwrap'](_0x1a5745);return _0x18cdac;}),_0x49754e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x15b008=>_0x4f8608(_0x15b008),'converterPriority':'high'}),_0x49754e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x13a4a0,_0x535436)=>_0x535436['options']['showSuggestionHighlights']?_0x4f8608(_0x13a4a0,!0x1):null,'converterPriority':'high'});const _0x31b3dd=_0x49754e['editing']['view'];this['listenTo'](_0x31b3dd['document'],'clipboardOutput',(_0xdc5a58,_0x1f7031)=>{const _0x2636da=[];for(const _0x13780d of _0x31b3dd['createRangeIn'](_0x1f7031['content'])['getItems']())_0x13780d['is']('element','suggestion-td')&&_0x2636da['push'](_0x13780d);_0x31b3dd['change'](_0x2b1ddf=>{for(const _0x101e5a of _0x2636da)_0x2b1ddf['move'](_0x2b1ddf['createRangeIn'](_0x101e5a),_0x2b1ddf['createPositionBefore'](_0x101e5a)),_0x2b1ddf['remove'](_0x101e5a);});});}};function Xe(_0x5c5e30){if(_0x5c5e30['isEmpty'])return!0x0;const _0x33961f=_0x5c5e30['getChild'](0x0);return _0x33961f['is']('element','paragraph')&&_0x33961f['isEmpty'];}function qe(_0xc66719,_0x3f4388={},_0x13fc3b){for(const {isAnchor:_0x45d3e8,cellHeight:_0x4563dc,cellWidth:_0x553941}of _0x13fc3b['createTableWalker'](_0xc66719,{'includeAllSlots':!0x0,..._0x3f4388}))if(!_0x45d3e8||0x1!=_0x4563dc||0x1!=_0x553941)return!0x1;return!0x0;}var Ye=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6fb5bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x6fb5bb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x6fb5bb['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x6fb5bb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6fb5bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x18d125=_0x6fb5bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x6fb5bb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x3526ad,_0x5924f6)=>{_0x18d125(_0x3526ad,_0x5924f6),this['_restoreCellWidths'](_0x3526ad[0x0]['start']['nodeAfter'],_0x5924f6['commandParams'][0x0]['cellWidths']);}),_0x6fb5bb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x5c24ec,_0x35ffd8){const _0x3cf742=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdcaa67=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x50ab00=_0x35ffd8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x23bbdc=_0xdcaa67['getColumnGroupElement'](_0x50ab00);let _0x3dd440=_0x23bbdc?_0xdcaa67['getTableColumnsWidths'](_0x23bbdc):null,_0xd58d3=_0x50ab00['getAttribute']('tableWidth')||null;const _0x2ca133=_0x35ffd8['tableWidth']||_0xd58d3,_0x4f83e9=_0x35ffd8['columnWidths']||_0x3dd440;let _0xc9543b=this['_getCellWidths'](_0x50ab00);const _0x23ea93=this['_foldResizeTableSuggestion'](_0x50ab00);_0x23ea93&&(_0xd58d3=_0x23ea93['tableWidth'],_0x3dd440=_0x23ea93['columnWidths'],_0xc9543b=_0x23ea93['cellWidths']||_0xc9543b),_0x5c24ec({'table':_0x50ab00,'tableWidth':_0x2ca133,'columnWidths':_0x4f83e9}),_0x3cf742['markBlockFormat'](_0x50ab00,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xd58d3,'columnWidths':_0x3dd440,'cellWidths':_0xc9543b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x4227d5,_0x13a155={}){if(void 0x0===_0x13a155['value']||''===_0x13a155['value'])return void _0x4227d5(_0x13a155);const _0x454194=this['editor']['plugins']['get']('TrackChangesEditing'),_0x396391=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x15bc4e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x13a155['batch']||(_0x13a155['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x13a155['batch'],()=>{const _0x3a1429=_0x396391['getColumnGroupElement'](_0x15bc4e);let _0x151b49=_0x3a1429?_0x396391['getTableColumnsWidths'](_0x3a1429):null,_0x22e469=_0x15bc4e['getAttribute']('tableWidth')||null,_0x13ced9=this['_getCellWidths'](_0x15bc4e);const _0x10b1ae=this['_foldResizeTableSuggestion'](_0x15bc4e,!0x0);_0x10b1ae&&(_0x22e469=_0x10b1ae['tableWidth'],_0x151b49=_0x10b1ae['columnWidths'],_0x13ced9=_0x10b1ae['cellWidths']||_0x13ced9),_0x4227d5(_0x13a155),_0x454194['markBlockFormat'](_0x15bc4e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x22e469,'columnWidths':_0x151b49,'cellWidths':_0x13ced9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x2cdbf8,_0x781ff7=!0x1){const _0x1265eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbea2c1=this['editor']['plugins']['get']('Users')['me'];for(const _0x34aaa5 of _0x1265eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x147c3a=_0x34aaa5['getContainedElement']();if('resizeTable'===_0x34aaa5['subType']&&_0x147c3a===_0x2cdbf8){_0x34aaa5['author']!==_0xbea2c1&&(_0x781ff7?_0x34aaa5['removeMarkers']():_0x34aaa5['discard']());const _0x484c48=_0x34aaa5['data']['commandParams'];return{'tableWidth':_0x484c48[0x0]['tableWidth'],'columnWidths':_0x484c48[0x0]['columnWidths'],'cellWidths':_0x484c48[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x168fc9){const _0x1f092c=[];for(const _0x2499c9 of _0x168fc9['getChildren']())if(_0x2499c9['is']('element','tableRow')){for(const _0x23163a of _0x2499c9['getChildren']())_0x1f092c['push'](_0x23163a['getAttribute']('tableCellWidth')||null);}return _0x1f092c;}_restoreCellWidths(_0x1572da,_0x5d1b6a){_0x5d1b6a&&this['editor']['model']['change'](_0x23d65a=>{let _0x154f67=0x0;for(const _0x4281c2 of _0x1572da['getChildren']())if(_0x4281c2['is']('element','tableRow'))for(const _0x5d7aa7 of _0x4281c2['getChildren']()){const _0xc538a7=_0x5d1b6a[_0x154f67++];_0xc538a7&&_0x23d65a['setAttribute']('tableCellWidth',_0xc538a7,_0x5d7aa7);}});}handleSuggestionDescription(_0x1edfe5){if('formatBlock'!=_0x1edfe5['type']&&'formatInline'!=_0x1edfe5['type'])return;const {data:_0x3941ee}=_0x1edfe5;return _0x3941ee&&'resizeTable'===_0x3941ee['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x139d64{afterInit(){const _0x265918=this['editor'];_0x265918['plugins']['has']('Template')&&_0x265918['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x139d64{afterInit(){const _0x40ee26=this['editor'];if(!_0x40ee26['commands']['get']('insertTableOfContents'))return;_0x40ee26['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x43afa0=_0x40ee26['plugins']['get']('TrackChangesEditing'),_0x3187f7=_0x40ee26['locale'];_0x43afa0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d50ab=>wt(_0x3187f7,'ELEMENT_TABLE_OF_CONTENTS',_0x5d50ab));}},Je=class extends _0x139d64{afterInit(){const _0x3cd2a4=this['editor'];_0x3cd2a4['plugins']['has']('Title')&&(_0x3cd2a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x3cd2a4['locale'],'ELEMENT_TITLE')),_0x3cd2a4['model']['document']['registerPostFixer'](_0x4da501=>{let _0x248e91=!0x1;const _0x1df19f=Array['from'](_0x3cd2a4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35831c,data:_0x47d1a9}of _0x1df19f){const {group:_0x11d342}=nt(_0x35831c);if('suggestion'!==_0x11d342||!_0x47d1a9['newRange'])continue;const _0x5957f7=_0x47d1a9['newRange'],_0x225c5a=_0x5957f7['end']['nodeBefore'];if(!_0x225c5a||!_0x225c5a['is']('element','title-content'))continue;if(!_0x5957f7['start']['isTouching'](_0x5957f7['end']))continue;const _0x3d0a5e=_0x3cd2a4['model']['schema']['getNearestSelectionRange'](_0x5957f7['end'],'forward');if(_0x3d0a5e&&_0x3d0a5e['isCollapsed']){const _0xb121ca=_0x4da501['createRange'](_0x5957f7['start'],_0x3d0a5e['start']);_0xb121ca['isEqual'](_0x5957f7)||(_0x4da501['updateMarker'](_0x35831c,{'range':_0xb121ca}),_0x248e91=!0x0);}_0x248e91||(_0x4da501['removeMarker'](_0x35831c),_0x248e91=!0x0);}return _0x248e91;}));}},tn=class extends _0x139d64{afterInit(){const _0x421392=this['editor'],_0x20d8d5=_0x421392['plugins']['get']('TrackChangesEditing');_0x421392['plugins']['has']('Uploadcare')&&(_0x20d8d5['enableCommand']('uploadcare'),_0x421392['plugins']['has']('UploadcareImageEdit')&&(_0x20d8d5['enableCommand']('uploadcareImageEdit'),_0x20d8d5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x20d8d5['descriptionFactory']['registerDescriptionCallback'](_0x10faa9=>{if('attribute'!=_0x10faa9['type'])return;const {data:_0x5543e5}=_0x10faa9;return _0x5543e5&&'uploadcareImageId'==_0x5543e5['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x139d64{afterInit(){const _0x3c09a8=this['editor'],_0x147584=_0x3c09a8['plugins']['get']('TrackChangesEditing');_0x3c09a8['plugins']['has']('UndoEditing')&&(_0x147584['enableCommand']('undo'),_0x147584['enableCommand']('redo'));}},nn=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x4fbe42=this['editor'];_0x4fbe42['plugins']['has']('TableCaptionEditing')&&_0x4fbe42['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x139d64{tableProperties;tableCellProperties;constructor(_0xf2d701){super(_0xf2d701),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x2b3f3c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x431593 of this['tableProperties'])_0x2b3f3c['enableCommand'](_0x431593,(_0x3977f3,_0x2d2e99)=>{const _0x1716a2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x431593,[_0x1716a2],this['tableProperties'],'tableProperties',_0x3977f3,_0x2d2e99);});_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2b3f3c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x6a27a2,_0x1d0c4f)=>this['handleDiscardAction'](this['tableProperties'],_0x6a27a2,_0x1d0c4f)),_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x549a6b of this['tableCellProperties'])this['editor']['commands']['get'](_0x549a6b)&&_0x2b3f3c['enableCommand'](_0x549a6b,(_0x62e25,_0x4a3038)=>{const _0x2ef35c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x549a6b,_0x2ef35c,this['tableCellProperties'],'tableCellProperties',_0x62e25,_0x4a3038);});_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2b3f3c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xbfd991,_0xc63845)=>this['handleDiscardAction'](this['tableCellProperties'],_0xbfd991,_0xc63845)),_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2b3f3c['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2b3f3c['descriptionFactory']['registerDescriptionCallback'](_0x45e64a=>this['handleSuggestionDescription'](_0x45e64a)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x18c946,_0x4f9be7,_0x290ed9,_0x56e760,_0x3808d2,_0x457c47){const _0x301510=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x457c47['batch'],()=>{for(const _0x3fe7e4 of _0x4f9be7)if(this['_getSuggestion'](_0x3fe7e4,_0x56e760))_0x3808d2(_0x457c47);else{const _0x1ff66b={};for(const _0x4dd945 of _0x290ed9){const _0x5514ab=_0x3fe7e4['getAttribute'](_0x4dd945);void 0x0!==_0x5514ab&&(_0x1ff66b[_0x4dd945]=_0x5514ab);}const _0x141d17=this['_getResizedColumnWidths'](_0x3fe7e4);_0x141d17&&(_0x1ff66b['columnWidths']=_0x141d17),_0x3808d2(_0x457c47),_0x301510['markBlockFormat'](_0x3fe7e4,{'commandParams':[_0x1ff66b]},[],_0x56e760);}});}handleDiscardAction(_0x429518,_0x2c9e0,_0xafb59e){const _0x552957=_0x2c9e0[0x0]['start']['nodeAfter'],_0x5a5b5e=_0xafb59e['commandParams'][0x0];this['editor']['model']['change'](_0x4af292=>{for(const _0x191aa2 of _0x429518)void 0x0!==_0x5a5b5e[_0x191aa2]?_0x4af292['setAttribute'](_0x191aa2,_0x5a5b5e[_0x191aa2],_0x552957):_0x4af292['removeAttribute'](_0x191aa2,_0x552957);if(_0x5a5b5e['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x277b33=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2aa4a0=_0x277b33['getColumnGroupElement'](_0x552957);if(_0x2aa4a0){const _0x23d01e=_0x277b33['getTableColumnsWidths'](_0x2aa4a0),_0x4117a8=_0x552957['getAttribute']('tableWidth');if(('string'==typeof _0x4117a8&&_0x4117a8['trim']()['endsWith']('px'))!==_0x23d01e['some'](_0x2de49a=>'string'==typeof _0x2de49a&&_0x2de49a['endsWith']('px'))){const _0xf05d3=_0x277b33['getTableColumnElements'](_0x2aa4a0);_0x5a5b5e['columnWidths']['forEach']((_0x48fa38,_0x1f6ad8)=>{_0xf05d3[_0x1f6ad8]&&_0x4af292['setAttribute']('columnWidth',_0x48fa38,_0xf05d3[_0x1f6ad8]);});}}}});}_getResizedColumnWidths(_0x38956a){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x38956a['is']('element','table'))return;const _0x2d742a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x320f31=_0x2d742a['getColumnGroupElement'](_0x38956a);return _0x320f31?_0x2d742a['getTableColumnsWidths'](_0x320f31):void 0x0;}handleSuggestionDescription(_0xab1cf5){if(_0xab1cf5['data'])switch(_0xab1cf5['subType']){case'tableProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0xa552c3,_0x4daa67){const _0x1e140b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3954bd of _0x1e140b['getSuggestions']({'skipNotAttached':!0x0})){const _0x49c33e=_0x3954bd['getContainedElement']();if(_0x3954bd['subType']===_0x4daa67&&_0x49c33e===_0xa552c3)return _0x3954bd;}return null;}_registerTablePropertiesAttributes(){const _0x223d39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52d6dd=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x215996 of _0x52d6dd){const _0x33ec42=_0x215996['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x223d39['descriptionFactory']['registerAttributeLabel'](_0x215996,wt(this['editor']['locale'],'FORMAT_'+_0x33ec42));}}},rn=class extends _0x139d64{afterInit(){const _0x53f252=this['editor'];if(!_0x53f252['plugins']['has']('LineHeight'))return;const _0x34729d=_0x53f252['plugins']['get']('TrackChangesEditing'),_0x53f915=_0x53f252['locale'];_0x34729d['enableDefaultAttributesIntegration']('lineHeight'),_0x34729d['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x53f915,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0x4b96dc){return'marker'==_0x4b96dc['type']&&_0x4b96dc['name']['startsWith']('$markedRemove');}function cn(_0x5c124e){return _0x5c124e?[_0x5c124e]:[];}var ln=class extends _0x139d64{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x72b439,_0x159bfb,_0x1e3a1d,_0x3fa834,Ft,vt,Dt,Ut,xt,Gt,$t,Vt,Wt,zt,jt,Xt,qt,ee,ne,ie,re,oe,ae,le,ue,de,he,ge,fe,Ee,me,Te,_e,pe,Ie,Ce,Se,Le,Yt,rn,Zt,ke,Re,Ne,ye,Me,Oe,we,Be,Fe,ve,Ue,Pe,xe,He,$e,We,Ve,nn,Ke,Ye,Ze,sn,Qe,Je,tn,en];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x163cde){super(_0x163cde),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x465bce,_0x21e7c,_0x562305,_0x3ac822)=>{this['_model']['change'](()=>{for(const _0x2f83ad of[..._0x3ac822,..._0x562305])this['_model']['markers']['has'](_0x2f83ad)&&_0x163cde['editing']['reconvertMarker'](_0x2f83ad);});}),this['descriptionFactory']=new Bt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new un(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x163cde['plugins']['get'](_0x72b439),this['_suggestionsConversion']=_0x163cde['plugins']['get'](_0x159bfb),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x163cde['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x163cde['config']['get']('trackChanges.trackFormatChanges'),_0x163cde['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x163cde['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x163cde,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x5e07e2=this['editor'];_0x5e07e2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1205a7,{writer:_0x119dcd})=>{let _0x563575='suggestion:'+_0x1205a7['getAttribute']('suggestion-type')+':'+_0x1205a7['getAttribute']('id');return _0x1205a7['getAttribute']('marker-count')&&(_0x563575+=':'+_0x1205a7['getAttribute']('marker-count')),_0x119dcd['createElement']('$marker',{'data-name':_0x563575});}}),_0x5e07e2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5e07e2['model']['document']['registerPostFixer'](_0x46944e=>{let _0x2183f8=!0x1;const _0x1c9430=Array['from'](_0x5e07e2['model']['document']['differ']['getChangedMarkers']()),_0x530f18=new Set();for(const {name:_0x580ef6,data:_0x43df25}of _0x1c9430){const {group:_0x3f0894,type:_0x5367b1,subType:_0x11e020,id:_0x115d90}=nt(_0x580ef6);if('suggestion'!==_0x3f0894)continue;const _0x4f7599=_0x11e020?'suggestion:'+_0x5367b1+':'+_0x11e020+':'+_0x115d90:'suggestion:'+_0x5367b1+':'+_0x115d90,_0x5c102c=_0x5e07e2['model']['markers']['getMarkersGroup'](_0x4f7599),_0x3fe0d3=_0x5e07e2['model']['markers']['get'](_0x580ef6),_0x2a1299=this['_suggestions']['get'](_0x115d90);if(null!=_0x43df25['newRange']){'formatInline'==_0x5367b1&&(_0x2183f8=_0x2183f8||gn(_0x43df25['newRange'],_0x580ef6,_0x46944e,_0x5e07e2['model']['schema']));const _0x223b35='attribute'==_0x5367b1&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0x11e020)),_0x17ab5c='attribute'==_0x5367b1&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0x11e020));if(_0x43df25['newRange']['isCollapsed']||'$graveyard'==_0x43df25['newRange']['root']['rootName']||'formatBlock'==_0x5367b1&&!mn(_0x43df25['newRange'])||_0x223b35&&!mn(_0x43df25['newRange'])||_0x17ab5c&&En(_0x43df25['newRange'])||'deletion'==_0x5367b1&&En(_0x43df25['newRange'])||_0x3fe0d3&&Tn(_0x3fe0d3,_0x5c102c))_0x46944e['removeMarker'](_0x580ef6),_0x2183f8=!0x0;else{if(!_0x2a1299||!_0x2a1299['isInContent'])continue;if(_0x43df25['newRange']&&_0x43df25['oldRange']&&_0x43df25['newRange']['isEqual'](_0x43df25['oldRange']))continue;_0x530f18['add'](_0x2a1299);}}}return _0x530f18['size']>0x0&&(_0x2183f8=!!this['_joinWithAdjacentSuggestions'](_0x530f18)||_0x2183f8),_0x2183f8;}),_0x5e07e2['model']['document']['registerPostFixer'](_0x1759fb=>{let _0x20d970=!0x1;for(const _0x2f4b7b of _0x5e07e2['model']['document']['differ']['getChanges']())if('insert'==_0x2f4b7b['type'])for(const _0xd09637 of this['_suggestions']['values']()){if(_0xd09637['isMultiRange']||!_0xd09637['isInContent'])continue;const _0x3600fb='formatBlock'==_0xd09637['type'],_0x235ece=this['_getAttributeKey'](_0xd09637),_0x2ae63a=_0x235ece&&this['_suggestionsConversion']['isBlockAttribute'](_0x235ece);if(!_0x3600fb&&!_0x2ae63a)continue;const _0x3fabaf=_0xd09637['getFirstRange']();if(_0x3fabaf['start']['parent']!=_0x3fabaf['end']['parent']&&!_0x3fabaf['end']['isAtEnd']){const _0x309357=_0x5e07e2['model']['createPositionAt'](_0x3fabaf['start']['nodeAfter'],'end'),_0x38c8a8=_0x5e07e2['model']['createRange'](_0x3fabaf['start'],_0x309357);_0x1759fb['updateMarker'](_0xd09637['getFirstMarker'](),{'range':_0x38c8a8}),_0x20d970=!0x0;}}return _0x20d970;}),_0x5e07e2['model']['document']['registerPostFixer'](_0x771fe8=>this['_processAttributeChanges'](_0x771fe8)),_0x5e07e2['model']['document']['registerPostFixer'](_0x30f8a4=>!_0x30f8a4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30f8a4)),_0x5e07e2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5e07e2['model']['document']['on']('change:data',(_0x285e37,_0x290862)=>{if(!_0x290862['isLocal']||_0x290862['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x336a3f=_0x5e07e2['model']['document']['differ']['getChanges']();if(0x0==_0x336a3f['length'])return;const _0x98c939=[],_0x293c81=_0x336a3f['filter'](_0x5431f8=>'attribute'==_0x5431f8['type']),_0x584b92=_0x336a3f['filter'](_0x491402=>'insert'==_0x491402['type']&&'$text'!=_0x491402['name']);for(const _0x136114 of _0x293c81)this['_suggestionsConversion']['isRegisteredAttribute'](_0x136114['attributeKey'])&&_0x98c939['push']({'key':_0x136114['attributeKey'],'newValue':_0x136114['attributeNewValue'],'oldValue':_0x136114['attributeOldValue'],'range':_n(_0x136114['range'],_0x5e07e2['model'])});for(const _0x37281e of _0x584b92){if('rename'!=_0x37281e['action']&&'refresh'!=_0x37281e['action'])continue;const _0x12af8e=pn(_0x37281e['position']['nodeAfter'],_0x5e07e2['model']),_0x1e051b=_0x37281e['before'];'rename'==_0x37281e['action']&&_0x98c939['push']({'key':on,'newValue':_0x37281e['name'],'oldValue':_0x1e051b['name'],'range':_0x12af8e});for(const [_0x2fe851,_0x10cbaf]of _0x1e051b['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2fe851))continue;const _0x1f38e8=_0x37281e['attributes']['get'](_0x2fe851);_0x10cbaf!==_0x1f38e8&&_0x98c939['push']({'key':_0x2fe851,'newValue':_0x1f38e8,'oldValue':_0x10cbaf,'range':_0x12af8e});}for(const [_0x2518c4,_0x3c4b8e]of _0x37281e['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2518c4)&&(_0x1e051b['attributes']['has'](_0x2518c4)||_0x98c939['push']({'key':_0x2518c4,'newValue':_0x3c4b8e,'oldValue':null,'range':_0x12af8e}));}0x0!=_0x98c939['length']&&_0x5e07e2['model']['enqueueChange'](_0x290862,_0xc869b4=>{const _0x40340e=_0xa3c351();for(const {range:_0x3a124d,key:_0x532700,oldValue:_0x19fe5c,newValue:_0x2ebbc5}of _0x98c939)this['markAttributeChange'](_0x3a124d,_0x532700,_0x19fe5c,_0x2ebbc5,{'groupId':_0x40340e});this['_reduceExistingSuggestions'](_0xc869b4,_0x98c939);});},{'priority':'lowest'}),_0x5e07e2['model']['markers']['on']('update:suggestion',(_0x516b5a,_0x5de69f,_0x56b3d5)=>{if(null==_0x56b3d5){const {id:_0x41bceb}=nt(_0x5de69f['name']),_0x48f138=this['_suggestions']['get'](_0x41bceb);_0x48f138&&_0x48f138['addMarkerName'](_0x5de69f['name']);}}),_0x5e07e2['model']['document']['on']('change:data',()=>{const _0x1f14ea=Array['from'](_0x5e07e2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x289ae1=>'suggestion'===nt(_0x289ae1['name'])['group']);if(0x0===_0x1f14ea['length'])return;_0x1f14ea['sort']((_0x4ff617,_0x4d05cc)=>{const _0x57ef20=_0x4ff617['data']['oldRange'],_0x57dbda=_0x4d05cc['data']['oldRange'];return null===_0x57ef20&&null===_0x57dbda?0x0:null===_0x57ef20&&null!==_0x57dbda?-0x1:null!==_0x57ef20&&null===_0x57dbda?0x1:_0x57ef20['start']['isBefore'](_0x57dbda['start'])?-0x1:0x1;});const _0x13982c=new Set(),_0x2171bb=new Set();for(const {name:_0x3d3863,data:_0x680943}of _0x1f14ea){const {id:_0x22ebc9}=nt(_0x3d3863);if(null===_0x680943['oldRange']){const _0x3cda4f=this['_handleNewSuggestionMarker'](_0x3d3863);_0x2171bb['add'](_0x3cda4f);}else{const _0x55f3e9=this['_suggestions']['get'](_0x22ebc9);null!==_0x680943['newRange']||_0x55f3e9['isInContent']?(_0x13982c['add'](_0x55f3e9['head']),_0x2171bb['add'](_0x55f3e9)):this['_removeSuggestion'](_0x55f3e9);}}_0x2171bb['size']>0x0&&this['_refreshSuggestionsChain'](_0x2171bb);for(const _0xe1b107 of _0x13982c)this['fire']('suggestionChanged',_0xe1b107);}),_0x5e07e2['model']['on']('applyOperation',(_0x37934d,_0x3fafda)=>{const _0xdc4a0c=_0x3fafda[0x0];if(!this['_suggestions']['size'])return;if(!_0xdc4a0c['isDocumentOperation'])return;if(_0xdc4a0c['batch']['isUndo']||!_0xdc4a0c['batch']['isLocal'])return;let _0x36c7d8,_0xb692d7;switch(_0xdc4a0c['type']){case'insert':_0x36c7d8=_0x5e07e2['model']['createPositionAt'](_0xdc4a0c['position']),_0xb692d7=_0x36c7d8['getShiftedBy'](_0xdc4a0c['howMany']);break;case'split':_0x36c7d8=_0x5e07e2['model']['createPositionAt'](_0xdc4a0c['splitPosition']),_0xb692d7=_0x5e07e2['model']['createPositionAt'](_0xdc4a0c['moveTargetPosition']);break;case'move':_0x36c7d8=_0x5e07e2['model']['createPositionAt'](_0xdc4a0c['targetPosition']),_0xb692d7=_0x36c7d8['getShiftedBy'](_0xdc4a0c['howMany']);break;default:return;}const _0x2cc775=_0x5e07e2['model']['createRange'](_0x36c7d8,_0xb692d7);_0x5e07e2['model']['change'](()=>{for(const {suggestion:_0x49bf2a,meta:_0x3c2c7e}of this['_findSuggestions'](_0x2cc775)){if(_0x49bf2a['isMultiRange'])continue;if('formatInline'==_0x49bf2a['type'])continue;const _0x11d8e1=this['_getAttributeKey'](_0x49bf2a);if(_0x11d8e1&&this['_suggestionsConversion']['isBlockAttribute'](_0x11d8e1)&&'split'!=_0xdc4a0c['type'])continue;const _0x47ac16=_0x49bf2a['data']&&_0x49bf2a['data']['multipleBlocks'];('formatBlock'!=_0x49bf2a['type']||'split'==_0xdc4a0c['type']&&!_0x47ac16)&&(_0x3c2c7e['containsRangeInObject']||'insertion'==_0x49bf2a['type']&&_0x3c2c7e['isOwn']||_0x49bf2a['getFirstRange']()['containsRange'](_0x2cc775)&&this['_breakSuggestionMarker'](_0x49bf2a,_0x36c7d8,_0xb692d7));}});},{'priority':'lowest'}),_0x5e07e2['model']['on']('deleteContent',(_0x1df0ae,_0x49274c)=>{const _0x10ebcd=_0x49274c[0x0],_0x1b9351=_0x49274c[0x1];if(_0x1b9351&&_0x1b9351['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x10ebcd['isCollapsed'])return;const _0x5dd24c=_0x5e07e2['model']['schema'],{start:_0x53260f,end:_0x31e5f2}=_0x10ebcd['getFirstRange'](),_0x50ca27=_0x53260f['nodeAfter']&&_0x5dd24c['isLimit'](_0x53260f['nodeAfter'])?null:_0x5dd24c['getNearestSelectionRange'](_0x53260f,'forward'),_0x1114a7=_0x31e5f2['nodeBefore']&&_0x5dd24c['isLimit'](_0x31e5f2['nodeBefore'])?null:_0x5dd24c['getNearestSelectionRange'](_0x31e5f2,'backward'),_0x40e1d8=_0x5e07e2['model']['createRange'](_0x50ca27?_0x50ca27['start']:_0x53260f,_0x1114a7?_0x1114a7['end']:_0x31e5f2);_0x5e07e2['model']['change'](_0x12d249=>{this['markDeletion'](_0x40e1d8);const _0x46f9d0=_0x5e07e2['model']['schema']['getNearestSelectionRange'](_0x40e1d8['start']);_0x10ebcd['is']('documentSelection')?_0x12d249['setSelection'](_0x46f9d0):_0x10ebcd['setTo'](_0x46f9d0);}),_0x1df0ae['stop']();},{'priority':_0x222bed['normal']+0xa}),_0x5e07e2['model']['on']('insertContent',(_0x569f34,_0x4b7c44)=>{const _0x1fc3ba=_0x4b7c44[_0x4b7c44['length']-0x1];_0x1fc3ba&&_0x1fc3ba['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5e07e2['model']['change'](()=>{let _0xf3241=_0x5e07e2['model']['insertContent'](_0x4b7c44[0x0],_0x4b7c44[0x1],_0x4b7c44[0x2],{'forceDefaultExecution':!0x0});if(!_0xf3241)return;_0x569f34['return']=_0xf3241['clone']();const _0x448322=_0xf3241['end']['nodeBefore'],_0x89901=_0x5e07e2['model']['schema'];_0x448322&&_0x89901['isBlock'](_0x448322)&&!_0x89901['isObject'](_0x448322)&&(_0xf3241=_0x5e07e2['model']['createRange'](_0xf3241['start'],_0x5e07e2['model']['createPositionAt'](_0x448322,'end'))),this['markInsertion'](_0xf3241);}),_0x569f34['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ee24c=new Lt(_0x5e07e2,this['_suggestions']);_0x5e07e2['commands']['add']('acceptSuggestion',_0x3ee24c),this['enableCommand']('acceptSuggestion');const _0x5aa444=new It(_0x5e07e2,this['_suggestions']);_0x5e07e2['commands']['add']('discardSuggestion',_0x5aa444),this['enableCommand']('discardSuggestion'),_0x5e07e2['commands']['add']('acceptAllSuggestions',new yt(_0x5e07e2,_0x3ee24c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5e07e2['commands']['add']('discardAllSuggestions',new yt(_0x5e07e2,_0x5aa444,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5e07e2['commands']['add']('acceptSelectedSuggestions',new St(_0x5e07e2,_0x3ee24c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5e07e2['commands']['add']('discardSelectedSuggestions',new St(_0x5e07e2,_0x5aa444,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x208ffb=_0x5e07e2['plugins']['get'](_0x72b439);this['listenTo'](_0x208ffb,'addComment',(_0x789325,{threadId:_0x149cee})=>{const _0x57bcaf=this['_suggestions']['get'](_0x149cee);_0x57bcaf&&_0x57bcaf['commentThread']&&0x1===_0x57bcaf['commentThread']['length']&&this['_updateSuggestionData'](_0x149cee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x208ffb,'removeComment',(_0x551bb0,{threadId:_0x2f34ac})=>{const _0x4c1ead=this['_suggestions']['get'](_0x2f34ac);_0x4c1ead&&_0x4c1ead['commentThread']&&!_0x4c1ead['commentThread']['length']&&this['_updateSuggestionData'](_0x2f34ac,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x371b66){const _0x210a6c='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x214b6b=0x79770,_0x18e457={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x244345(_0x1c676b){const _0x154c76=new window['Promise'](_0x69fb57=>{_0x1c676b['once']('ready',_0x69fb57);}),_0x34596a=window['Date']['now'](),_0x9cca78=_0x1c676b['config']['get']('licenseKey');async function _0x5576c0(){let _0x2320ab,_0x216d38=null,_0x149a77=null;try{return'GPL'==_0x9cca78?'NotAllowed':(_0x2320ab=_0x1aaec2(),_0x2320ab?(_0x2320ab['usageEndpoint']&&(_0x149a77=_0x2756cc(_0x2320ab['usageEndpoint'],_0x2320ab['jti'])),await _0x2fac64()?_0x3de546()?_0x85fb27()?'Expired':_0x259b98()?('evaluation'==_0x2320ab['licenseType']&&(_0x216d38=_0x8e4d3b('EvaluationLimit')),await _0xc92836()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x85fb27(){const _0x9edaa7=['evaluation','trial']['includes'](_0x2320ab['licenseType'])?_0x34596a/0x3e8:0xe10*_0x214b6b;return _0x2320ab['exp']<_0x9edaa7;}function _0x3de546(){const _0x32e586=_0x2320ab['features'];if(!_0x32e586)return!0x1;if(_0x32e586['includes']('*'))return!0x0;if(_0x32e586['includes']('TC'))return!0x0;if(_0x32e586['includes']('RTC')){if(_0x4db478())return!0x0;if(_0x330cdb()||_0x174781())return!0x0;}return!0x1;}function _0x259b98(){const _0x1e6806=_0x2320ab['licensedHosts'];if(!_0x1e6806||0x0==_0x1e6806['length'])return!0x0;const {hostname:_0x57cd51}=new URL(window['location']['href']);if(_0x1e6806['includes'](_0x57cd51))return!0x0;const _0x5c631e=_0x57cd51['split']('.');return _0x1e6806['filter'](_0x1f8330=>_0x1f8330['includes']('*'))['map'](_0x17389e=>_0x17389e['split']('.'))['filter'](_0x4b6f22=>_0x4b6f22['length']<=_0x5c631e['length'])['map'](_0x278630=>Array(_0x5c631e['length']-_0x278630['length'])['fill']('*'===_0x278630[0x0]?'*':'')['concat'](_0x278630))['some'](_0x3be01d=>_0x5c631e['every']((_0x41c8b7,_0x3ccaec)=>_0x3be01d[_0x3ccaec]===_0x41c8b7||'*'===_0x3be01d[_0x3ccaec]));}function _0xc92836(){return _0x216d38&&_0x149a77?new window['Promise']((_0x278665,_0x18fc67)=>{_0x216d38['then'](_0x278665,_0x18fc67),_0x149a77['then'](_0x1f81f4=>{'Valid'!=_0x1f81f4&&_0x278665(_0x1f81f4);},_0x18fc67);}):_0x216d38||_0x149a77||'Valid';}}function _0x2756cc(_0x2f1da7,_0x494568){return new window['Promise'](_0x19650d=>{if(_0xad3f83())return _0x19650d('Valid');_0x43cbe8(),_0x1c676b['decorate']('_sendUsageRequest');let _0x171072=!0x1;const _0x257cb6=_0xa3c351();function _0x4835e4(_0x2792cb){return!!_0x2792cb&&('object'==typeof _0x2792cb||'function'==typeof _0x2792cb)&&'function'==typeof _0x2792cb['then']&&'function'==typeof _0x2792cb['catch'];}function _0x5e8977(_0xef9579){_0x3f77fc(_0xef9579)['then'](_0x5e54a9=>_0x5e54a9&&'ok'==_0x5e54a9['status']?_0x3737a7(_0x21cef2(_0x257cb6+_0x494568))!=_0x5e54a9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x39ab57=>(_0x5ea8f7(),_0x39ab57),()=>{const _0x1c1d19=_0xed4c06();return null==_0x1c1d19?(_0x5ea8f7(),'Valid'):_0x34596a-_0x1c1d19>0x240c8400?'UsageLimit':'Valid';})['then'](_0x19650d)['catch'](()=>{_0x19650d('UsageLimit');});const _0x37676f=0x36ee80;function _0x5ea8f7(){const _0x3742e0='llct-'+_0x3737a7(_0x21cef2(_0x2f1da7)),_0x28aa70=_0xd39f39(_0x3737a7(window['Math']['ceil'](_0x34596a/_0x37676f)));window['localStorage']['setItem'](_0x3742e0,_0x28aa70);}function _0xed4c06(){const _0x34fb5f='llct-'+_0x3737a7(_0x21cef2(_0x2f1da7)),_0x5c2c5a=window['localStorage']['getItem'](_0x34fb5f);return _0x5c2c5a?window['parseInt'](_0xd39f39(_0x5c2c5a),0x10)*_0x37676f:null;}function _0x3f77fc(_0x28f2d4){return new window['Promise']((_0x35e2de,_0x4a5b0f)=>{_0x28f2d4['then'](_0x35e2de,_0x4a5b0f),window['setTimeout'](_0x4a5b0f,0x1d4c0);});}}_0x1c676b['on']('_sendUsageRequest',(_0x4a60ff,_0x3f68de)=>{if(_0x3f68de[0x0]!=_0x2f1da7)return _0x19650d('UsageLimit');_0x3f68de[0x1]={..._0x3f68de[0x1],'requestId':_0x257cb6};},{'priority':'high'}),_0x1c676b['on']('_sendUsageRequest',_0x29b898=>{_0x4835e4(_0x29b898['return'])&&(_0x171072=!0x0,_0x5e8977(_0x29b898['return']));},{'priority':'low'}),_0x154c76['then'](()=>{_0x171072||_0x19650d('UsageLimit');});});function _0xad3f83(){return'auto'==_0x1c676b['editing']['view']['_overlayModeHint'];}function _0x43cbe8(){_0x1c676b['editing']['view']['_overlayModeHint']='auto';}}function _0x8e4d3b(_0x74f072){const _0x17b056=[new window['Promise'](_0x3ad37f=>setTimeout(_0x3ad37f,0x93ecc)),_0x154c76['then'](()=>new window['Promise'](_0x586492=>{let _0x34c560=0x0;_0x1c676b['model']['on']('applyOperation',(_0x644393,_0x3ec7c3)=>{_0x3ec7c3[0x0]['isDocumentOperation']&&_0x34c560++,0x5e8==_0x34c560&&(_0x586492(),_0x644393['off']());});}))];return window['Promise']['race'](_0x17b056)['then'](()=>_0x74f072);}async function _0x522530(){await _0x154c76,_0x1c676b['model']['change']=_0x5d53ca,_0x1c676b['model']['enqueueChange']=_0x5d53ca,_0x1c676b['enableReadOnlyMode']('model');}function _0x4db478(){return _0x5bd12a('WebSocketGateway')&&'connected'==_0x345b2f('WebSocketGateway')['state'];}function _0x330cdb(){return _0x5bd12a('RevisionViewerIntegration');}function _0x174781(){return _0x5bd12a('TrackChangesDataGetter');}function _0x5e9aa7(_0x2d9adb){const _0x3a9a89=_0x45c377();_0x1c676b[_0x3a9a89]='trackChangesLicenseKey'+_0x2d9adb,'Valid'!=_0x2d9adb&&_0x522530();}function _0x45c377(){const _0x1c8167=window['String'](window['performance']['now']())['replace']('.','');let _0x10f60d='U';for(let _0x37bae9=0x0;_0x37bae9<_0x1c8167['length'];_0x37bae9+=0x2){let _0x5262cb=window['parseInt'](_0x1c8167['substring'](_0x37bae9,_0x37bae9+0x2));_0x5262cb>=0x3e&&(_0x5262cb-=0x3e),_0x10f60d+=_0x210a6c[_0x5262cb];}return _0x10f60d;}function _0x1aaec2(){const _0x2f643b=_0x9cca78['split']('.');if(0x3!=_0x2f643b['length'])return null;return _0x12dbe2(_0x2f643b[0x1]);function _0x12dbe2(_0xd83baf){const _0x2a04f0=_0x45d059(_0xd83baf);return _0x2a04f0&&_0x3171b0()?_0x2a04f0:null;function _0x3171b0(){const _0xcde66=_0x2a04f0['jti'],_0x17f0b2=window['parseInt'](_0xcde66['substring'](_0xcde66['length']-0x8),0x10),_0x130c49={..._0x2a04f0,'jti':_0xcde66['substring'](0x0,_0xcde66['length']-0x8)};return delete _0x130c49['vc'],_0x21cef2(_0x130c49)==_0x17f0b2;}}}async function _0x2fac64(){let _0x40584c=!0x0;try{const [_0x2c22fc,_0x230c36,_0x137613]=_0x9cca78['split']('.');return _0x21a908(_0x2c22fc),await _0x3388b7(_0x2c22fc,_0x230c36,_0x137613),_0x40584c;}catch{return!0x1;}function _0x21a908(_0x1fd754){const _0x2bea66=_0x45d059(_0x1fd754);_0x2bea66&&'ES256'==_0x2bea66['alg']||(_0x40584c=!0x1);}async function _0x3388b7(_0x1ca79a,_0x4f5eb0,_0xb6db5e){const _0xabce3c=window['Uint8Array']['from'](_0x595547(_0xb6db5e),_0x49b412=>_0x49b412['charCodeAt'](0x0)),_0x5289a8=new window['TextEncoder']()['encode'](_0x1ca79a+'.'+_0x4f5eb0),_0x3f73ab=window['crypto']['subtle'];if(!_0x3f73ab)return;const _0x192160=await _0x3f73ab['importKey']('jwk',_0x18e457,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3f73ab['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x192160,_0xabce3c,_0x5289a8)||(_0x40584c=!0x1);}}function _0x45d059(_0x187382){return _0x187382['startsWith']('ey')?JSON['parse'](_0x595547(_0x187382)):null;}function _0x595547(_0x1a81f5){return window['atob'](_0x1a81f5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x21cef2(_0x393ab7){let _0x50a92d=0x1505;function _0x170428(_0x4bef1a){for(let _0x33bd25=0x0;_0x33bd25<_0x4bef1a['length'];_0x33bd25++){const _0x413ecb=_0x4bef1a['charCodeAt'](_0x33bd25);_0x50a92d=(_0x50a92d<<0x5)+_0x50a92d+_0x413ecb,_0x50a92d&=_0x50a92d;}}function _0x2f0a3f(_0x507508){Array['isArray'](_0x507508)?_0x507508['forEach'](_0x2f0a3f):_0x507508&&'object'==typeof _0x507508?Object['entries'](_0x507508)['sort']()['forEach'](([_0x986a80,_0xc6f993])=>{_0x170428(_0x986a80),_0x2f0a3f(_0xc6f993);}):_0x170428(window['String'](_0x507508));}return _0x2f0a3f(_0x393ab7),_0x50a92d>>>0x0;}function _0x3737a7(_0x1d3c09){return _0x1d3c09['toString'](0x10)['padStart'](0x8,'0');}function _0xd39f39(_0x201e24){return _0x201e24['split']('')['reverse']()['join']('');}function _0x5bd12a(_0x169ffb){return _0x1c676b['plugins']['has'](_0x169ffb);}function _0x345b2f(_0x1c3d49){return _0x1c676b['plugins']['get'](_0x1c3d49);}function _0x5d53ca(){}_0x5e9aa7(await _0x5576c0());}_0x244345(_0x371b66['editor']);}(this);}set adapter(_0x1b3788){if(this['_adapter'])throw new _0x228d64('track-changes-adapter-already-set',this);this['_adapter']=_0x1b3788;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0xa74457=!0x1,toJSON:_0x598dfc=!0x1}={}){const _0x4fff54=[];for(const _0x42cfb7 of this['_suggestions']['values']())_0xa74457&&!_0x42cfb7['isInContent']||_0x4fff54['push'](_0x42cfb7);return _0x598dfc?_0x4fff54['map'](_0x50c85a=>_0x50c85a['toJSON']()):_0x4fff54;}getSuggestion(_0x3073de){const _0x535851=this['_suggestions']['get'](_0x3073de);if(!_0x535851)throw new _0x228d64('track-changes-suggestion-not-found',this);return _0x535851;}hasSuggestion(_0x28b8fe){return this['_suggestions']['has'](_0x28b8fe);}addSuggestionData(_0x54afab){const {authorId:_0x561235,id:_0x1e91dd,originalSuggestionId:_0x1d6305,attributes:_0x236da0}=_0x54afab,[_0x329429,_0x1e1d20]=_0x54afab['type']['split'](':'),_0x15dbeb=this['_suggestions']['get'](_0x1e91dd)||this['_createSuggestion'](_0x329429,_0x1e1d20,_0x1e91dd,_0x561235,_0x236da0,_0x1d6305);if(this['_addThreadToSuggestion'](_0x15dbeb),this['_checkSuggestionCorrectness'](_0x15dbeb,_0x329429,_0x1e1d20||null,_0x561235),_0x15dbeb['createdAt']=_0x54afab['createdAt'],_0x15dbeb['_isDataLoaded']=!0x0,_0x236da0&&_0x236da0['@external']){const _0x441059=_0x236da0['@external'],_0x2656de=this['_getExternalAuthor'](_0x441059['authorName']);_0x15dbeb['authoredAt']=_0x441059['createdAt'],_0x15dbeb['author']=_0x2656de;}else _0x15dbeb['authoredAt']=_0x54afab['createdAt'];switch(_0x54afab['data']&&(_0x15dbeb['data']=_0x54afab['data']),_0x54afab['attributes']&&(_0x15dbeb['attributes']=_0x54afab['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x15dbeb['_saved']=!0x0),this['_suggestionState']['get'](_0x15dbeb)){case'notReady':this['_suggestionState']['set'](_0x15dbeb,'dataReady');break;case'markerReady':_0x15dbeb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x15dbeb])),this['_refreshSuggestionsChain'](new Set([_0x15dbeb])),this['_suggestionState']['set'](_0x15dbeb,'ready'),this['fire']('suggestionLoaded',_0x15dbeb)):this['_suggestionState']['set'](_0x15dbeb,'removed');}return _0x15dbeb;}acceptSuggestion(_0x1fb18c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xbd23f of _0x1fb18c['getAllAdjacentSuggestions']())_0xbd23f['accept']();});});}discardSuggestion(_0x3f166c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x49b9c5 of _0x3f166c['getAllAdjacentSuggestions']())_0x49b9c5['discard']();});});}['enableCommand'](_0x3e56d5,_0x3b470f){const _0x5d954c=this['editor']['commands']['get'](_0x3e56d5);if(!_0x5d954c)throw new _0x228d64('track-changes-command-not-found',this,{'commandName':_0x3e56d5});if(this['_enabledCommands']['has'](_0x5d954c))throw new _0x228d64('track-changes-enable-command-twice',this,{'commandName':_0x3e56d5});this['_enabledCommands']['add'](_0x5d954c),_0x3b470f&&_0x5d954c['on']('execute',(_0x369442,_0x100a27)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x100a27['length']>0x0&&_0x100a27[_0x100a27['length']-0x1]&&_0x100a27[_0x100a27['length']-0x1]['forceDefaultExecution']?_0x100a27['pop']():(_0x369442['return']=_0x3b470f((..._0x12fa6f)=>_0x5d954c['execute'](..._0x12fa6f,{'forceDefaultExecution':!0x0}),..._0x100a27),_0x369442['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x4dd62e){let _0x502f3c,_0x17a1c3;const _0x25d075=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x502f3c=_0x4dd62e();}catch(_0x127beb){_0x17a1c3=_0x127beb;}return _0x25d075||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17a1c3&&_0x228d64['rethrowUnexpectedError'](_0x17a1c3,this),_0x502f3c;}markInsertion(_0x56d728,_0x5412ca=null,_0x4fbaba={}){if(_0x56d728['isCollapsed'])return null;const _0x3bb81c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4fbaba['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x15e215,meta:_0x3d848d}of this['_findSuggestions'](_0x56d728,'insertion'))if(_0x3d848d['isOwn']){if(!_0x3d848d['isNextTo']){if(_0x3d848d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x15e215,_0x4fbaba))continue;return _0x15e215;}if(An(_0x15e215,_0x4fbaba))return _0x15e215;this['_breakSuggestionMarker'](_0x15e215,_0x56d728['start'],_0x56d728['end']);break;}if(_0x5412ca==_0x15e215['subType']&&An(_0x15e215,_0x4fbaba)){const _0x1f5d76=_0x15e215['getFirstRange']();return _0x1f5d76['start']['isEqual'](_0x56d728['end'])?this['_setSuggestionRange'](_0x15e215,this['_model']['createRange'](_0x56d728['start'],_0x1f5d76['end'])):this['_setSuggestionRange'](_0x15e215,this['_model']['createRange'](_0x1f5d76['start'],_0x56d728['end'])),_0x15e215;}}const _0x5cbf71=_0xa3c351(),_0x3298f8=_0x3bb81c['id'],_0x5780ff=_0x5412ca?'insertion:'+_0x5412ca:'insertion',_0x17770e=this['_setSuggestionData']({'id':_0x5cbf71,'type':_0x5780ff,'createdAt':new Date(),'authorId':_0x3298f8,'attributes':_0x4fbaba});return this['_addSuggestionMarker'](_0x5780ff,_0x5cbf71,_0x3298f8,_0x56d728),_0x17770e;}markMultiRangeInsertion(_0x30768b,_0x276be6='multi',_0x36c8fd={}){const _0x4de543=this['editor']['plugins']['get']('Users')['me'],_0x4852b8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x276be6,'join');this['_trackingSessionId']&&(_0x36c8fd['trackingSessionId']=this['_trackingSessionId']);for(const _0x2ba6ca of this['getSuggestions']())if(_0x2ba6ca['author']['id']==_0x4de543['id']&&'insertion'==_0x2ba6ca['type']&&_0x2ba6ca['subType']==_0x276be6&&An(_0x2ba6ca,_0x36c8fd)&&(_0x4852b8(_0x2ba6ca['getRanges'](),_0x30768b)||_0x4852b8(_0x30768b,_0x2ba6ca['getRanges']()))){for(const _0x551d1b of _0x30768b)_0x2ba6ca['addRange'](_0x551d1b);return _0x2ba6ca;}for(const {suggestion:_0x1a52c3,meta:_0x1865d3}of this['_findSuggestions'](_0x30768b,'insertion')){if(!_0x1865d3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1865d3['containsRangeInObject'])continue;if(!An(_0x1a52c3,_0x36c8fd))continue;let _0x5610f8=!0x0;for(const _0x37fb1e of _0x1a52c3['getRanges']())for(const _0x4bccbf of _0x30768b)if(!_0x37fb1e['containsRange'](_0x4bccbf)){_0x5610f8=!0x1;break;}if(_0x5610f8)return _0x1a52c3;}const _0x15cb38=_0xa3c351(),_0x5bde3d=_0x4de543['id'],_0x3b5ab8='insertion:'+_0x276be6,_0x24218e=this['_setSuggestionData']({'id':_0x15cb38,'type':_0x3b5ab8,'createdAt':new Date(),'authorId':_0x5bde3d,'attributes':_0x36c8fd});for(const _0x115759 of _0x30768b)this['_addSuggestionMarker'](_0x3b5ab8,_0x15cb38,_0x5bde3d,_0x115759,Ot['getMultiRangeId']());return _0x24218e;}markInlineFormat(_0x392bb5,_0x1034d9,_0x4d9c05=null,_0x571856={}){if(_0x4d9c05=_0x4d9c05||fn(_0x1034d9),_0x392bb5['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x571856['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e92c6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d9c05,'accept');return this['forceDefaultExecution'](()=>_0x3e92c6([_0x392bb5],_0x1034d9,_0x571856)),null;}const _0x345390=this['editor']['plugins']['get']('Users')['me'],_0x5b76e6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x9b2147,meta:_0x36444b}of this['_findSuggestions'](_0x392bb5,'insertion'))_0x36444b['isOwn']&&!_0x36444b['isInsideObject']&&_0x5b76e6['push'](..._0x9b2147['getRanges']());}const _0x1c223b=function(_0x1b8b07,_0x9e85c3){const _0x5658d6=[];for(const _0x21589b of _0x9e85c3){const _0x223194=_0x1b8b07['getIntersection'](_0x21589b);_0x223194&&_0x5658d6['push'](_0x223194);}return _0x5658d6;}(_0x392bb5,_0x5b76e6),_0x1cda94=function(_0x2758f2,_0x547db0){const _0x17e795=[_0x2758f2];for(const _0x1d0253 of _0x547db0){let _0x373694=0x0;for(;_0x373694<_0x17e795['length'];){const _0x5210a6=_0x17e795[_0x373694]['getDifference'](_0x1d0253);_0x17e795['splice'](_0x373694,0x1,..._0x5210a6),_0x373694+=_0x5210a6['length'];}}return _0x17e795;}(_0x392bb5,_0x5b76e6);_0x1c223b['length']&&this['_model']['change'](()=>{for(const _0x164da7 of _0x1c223b){const _0x4b04b1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d9c05,'accept');this['forceDefaultExecution'](()=>_0x4b04b1([_0x164da7],_0x1034d9,_0x571856));}});for(const _0x406e56 of _0x1cda94){let _0x4b711e=null,_0x1c59c9=_0x406e56['start'],_0x5750ed=_0x406e56['end'];for(const {suggestion:_0x18afab,meta:_0x32ad2b}of this['_findSuggestions'](_0x406e56,'formatInline')){if(!_0x32ad2b['isOwn'])continue;if(_0x18afab['subType']!=_0x4d9c05)continue;if(!An(_0x18afab,_0x571856))continue;const _0x5e81ee=_0x18afab['getFirstRange']();if(_0x5e81ee['containsRange'](_0x406e56,!0x0))return null;_0x1c59c9=_0x1c59c9['isBefore'](_0x5e81ee['start'])?_0x1c59c9:_0x5e81ee['start'],_0x5750ed=_0x5750ed['isAfter'](_0x5e81ee['end'])?_0x5750ed:_0x5e81ee['end'],_0x4b711e?_0x5e81ee['start']['isBefore'](_0x4b711e['getFirstRange']()['start'])?(_0x4b711e['removeMarkers'](),_0x4b711e=_0x18afab):_0x18afab['removeMarkers']():_0x4b711e=_0x18afab;}const _0x3e7f4e=this['_model']['createRange'](_0x1c59c9,_0x5750ed);if(_0x4b711e)this['_setSuggestionRange'](_0x4b711e,_0x3e7f4e);else{const _0xc8023b=_0xa3c351(),_0x1c5620=_0x345390['id'];this['_setSuggestionData']({'id':_0xc8023b,'type':'formatInline:'+_0x4d9c05,'data':_0x1034d9,'createdAt':new Date(),'authorId':_0x1c5620,'attributes':_0x571856}),this['_addSuggestionMarker']('formatInline:'+_0x4d9c05,_0xc8023b,_0x1c5620,_0x3e7f4e);}}return null;}markBlockFormat(_0x43f398,_0x59ddc3,_0x17c0f9=[],_0x3f6045=null,_0x2408ab={}){_0x59ddc3['formatGroupId']||(_0x59ddc3['formatGroupId']=_0x59ddc3['commandName']),_0x59ddc3['multipleBlocks']=_0x43f398['is']('range'),_0x3f6045=_0x3f6045||fn(_0x59ddc3);const _0x658269=_0x17c0f9['map'](_0x43a1a5=>pn(_0x43a1a5,this['_model'])),_0xee1fcd=_0x43f398['is']('range')?_0x43f398:pn(_0x43f398,this['_model']);if(this['_trackingSessionId']&&(_0x2408ab['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x57fe62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f6045,'accept');return this['forceDefaultExecution'](()=>_0x57fe62([_0xee1fcd],_0x59ddc3,_0x2408ab)),null;}_0x658269['push'](_0xee1fcd);let _0x5e742a=!0x0;for(const _0x2e3891 of _0x658269)if(!this['_rangeIsInLocalUserInsertion'](_0x2e3891)){_0x5e742a=!0x1;break;}if(_0x5e742a&&'always'!==this['_trackFormatChanges']){const _0x2fdd55=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f6045,'accept');return this['forceDefaultExecution'](()=>_0x2fdd55([_0xee1fcd],_0x59ddc3,_0x2408ab)),null;}let _0x1ea315=null,_0xc05072=_0xee1fcd['start'],_0x3a99d8=_0xee1fcd['end'];for(const {suggestion:_0x35d88b,meta:_0x59c433}of this['_findSuggestions'](_0xee1fcd,'formatBlock')){if(!_0x59c433['isOwn'])continue;if(_0x59c433['isNextTo']||_0x59c433['containsRangeInObject']||_0x59c433['isInsideObject'])continue;if(_0x35d88b['data']['formatGroupId']!=_0x59ddc3['formatGroupId'])continue;if(!An(_0x35d88b,_0x2408ab))continue;const _0x1bed2a=_0x35d88b['getFirstRange']();if(_0x35d88b['subType']==_0x3f6045){if(_0x1bed2a['containsRange'](_0xee1fcd,!0x0))return null;_0xc05072=_0xc05072['isBefore'](_0x1bed2a['start'])?_0xc05072:_0x1bed2a['start'],_0x3a99d8=_0x3a99d8['isAfter'](_0x1bed2a['end'])?_0x3a99d8:_0x1bed2a['end'],_0x1ea315?_0x1bed2a['start']['isBefore'](_0x1ea315['getFirstRange']()['start'])?(_0x1ea315['removeMarkers'](),_0x1ea315=_0x35d88b):_0x35d88b['removeMarkers']():_0x1ea315=_0x35d88b;}else{const _0x3a47a8=_0xee1fcd['getIntersection'](_0x1bed2a);this['_cutOutSuggestionMarker'](_0x35d88b,_0x3a47a8);}}const _0x484f6c=this['editor']['plugins']['get']('Users')['me'],_0x254072=_0xa3c351(),_0x59c03a=_0x484f6c['id'];if(_0x1ea315)return this['_setSuggestionRange'](_0x1ea315,this['_model']['createRange'](_0xc05072,_0x3a99d8)),_0x1ea315;{const _0x573ba7=this['_setSuggestionData']({'id':_0x254072,'type':'formatBlock:'+_0x3f6045,'data':_0x59ddc3,'createdAt':new Date(),'authorId':_0x59c03a,'attributes':_0x2408ab});return this['_addSuggestionMarker']('formatBlock:'+_0x3f6045,_0x254072,_0x59c03a,this['_model']['createRange'](_0xc05072,_0x3a99d8)),_0x573ba7;}}markMultiRangeBlockFormat(_0x20f8e9,_0x33dad6,_0x472445=[],_0x36eb1c=null,_0x44b37f={}){_0x33dad6['formatGroupId']||(_0x33dad6['formatGroupId']=_0x33dad6['commandName']);const _0x50a495=_0x20f8e9[0x0];_0x33dad6['multipleBlocks']=_0x50a495['is']('range'),_0x36eb1c=_0x36eb1c||fn(_0x33dad6);const _0x43d1a3=_0x472445['map'](_0x27672d=>pn(_0x27672d,this['_model'])),_0x592b65=_0x50a495['is']('range')?_0x20f8e9:_0x20f8e9['map'](_0x414f86=>pn(_0x414f86,this['_model']));if(this['_trackingSessionId']&&(_0x44b37f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x9bc9ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36eb1c,'accept');return this['forceDefaultExecution'](()=>_0x9bc9ca(_0x592b65,_0x33dad6,_0x44b37f)),null;}_0x43d1a3['push'](..._0x592b65);let _0x40a245=!0x0;for(const _0xb2906e of _0x43d1a3)if(!this['_rangeIsInLocalUserInsertion'](_0xb2906e)){_0x40a245=!0x1;break;}if(_0x40a245&&'always'!==this['_trackFormatChanges']){const _0xb0c10a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36eb1c,'accept');return this['forceDefaultExecution'](()=>_0xb0c10a(_0x592b65,_0x33dad6,_0x44b37f)),null;}const _0x1f9d57=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f4bba of this['getSuggestions']()){const _0x3c73dc=_0x3f4bba['data'];if(_0x3f4bba['author']['id']!=_0x1f9d57['id'])continue;if('formatBlock'!=_0x3f4bba['type']||_0x3c73dc['formatGroupId']!=_0x33dad6['formatGroupId'])continue;if(!An(_0x3f4bba,_0x44b37f))continue;const _0x5bddbd=_0x3f4bba['subType']==_0x36eb1c;for(let _0x56b9c5=0x0;_0x56b9c5<_0x592b65['length'];_0x56b9c5++){const _0x550079=_0x592b65[_0x56b9c5];for(const _0x555343 of _0x3f4bba['getMarkers']()){const _0x1a5376=_0x555343['getRange']();if(_0x550079['isEqual'](_0x1a5376)){_0x5bddbd?(_0x592b65['splice'](_0x56b9c5,0x1),_0x56b9c5--):_0x3f4bba['removeMarker'](_0x555343['name']);break;}}}}if(0x0==_0x592b65['length'])return null;const _0x115582=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36eb1c,'join');for(const _0x3a7577 of this['getSuggestions']()){const _0x387168=_0x3a7577['data'];if(_0x3a7577['author']['id']==_0x1f9d57['id']&&('formatBlock'==_0x3a7577['type']&&_0x387168['formatGroupId']==_0x33dad6['formatGroupId']&&_0x3a7577['subType']==_0x36eb1c&&An(_0x3a7577,_0x44b37f)&&(_0x115582(_0x3a7577['getRanges'](),_0x592b65)||_0x115582(_0x592b65,_0x3a7577['getRanges']())))){for(const _0x200e15 of _0x592b65)_0x3a7577['addRange'](_0x200e15);return _0x3a7577;}}const _0x15b6f3=_0xa3c351(),_0x2e1e8d=_0x1f9d57['id'],_0x819140='formatBlock:'+_0x36eb1c,_0x394460=this['_setSuggestionData']({'id':_0x15b6f3,'type':_0x819140,'data':_0x33dad6,'createdAt':new Date(),'authorId':_0x2e1e8d,'attributes':_0x44b37f});for(const _0x360b24 of _0x592b65)this['_addSuggestionMarker'](_0x819140,_0x15b6f3,_0x2e1e8d,_0x360b24,Ot['getMultiRangeId']());return _0x394460;}markDeletion(_0x1ffcee,_0x46271c=null,_0x32d691={}){if(_0x1ffcee['isCollapsed'])return null;const _0x4ea5e7=this['editor']['plugins']['get']('Users')['me'],_0x1ae4dc=new at(_0x1ffcee['start'],_0x1ffcee['end']);this['_trackingSessionId']&&(_0x32d691['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x508ccb,meta:_0x4c80d5}of this['_findSuggestions'](_0x1ae4dc,'insertion'))if(_0x4c80d5['isOwn']&&!_0x4c80d5['isNextTo']){if(_0x508ccb['isMultiRange']){const _0x423783=_0x508ccb['getRanges']()['filter'](_0x4cc4f5=>'$graveyard'!=_0x4cc4f5['root']['rootName']);if(_0x423783['every'](_0x18fddc=>_0x1ae4dc['containsRange'](_0x18fddc,!0x0))&&_0x508ccb['discard'](),_0x423783['some'](_0x590de6=>_0x590de6['containsRange'](_0x1ae4dc,!0x0))){const _0x1301a6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46271c,'accept');return this['forceDefaultExecution'](()=>_0x1301a6([_0x1ae4dc],null,_0x32d691)),null;}}else{const _0x4da597=_0x1ae4dc['getIntersection'](_0x508ccb['getFirstRange']());null!==_0x4da597&&_0x508ccb['_onDiscard']([_0x4da597],null,_0x32d691);}}if(_0x1ae4dc['detach'](),_0x1ae4dc['isCollapsed']||'$graveyard'==_0x1ae4dc['root']['rootName'])return null;let _0x453e81=null,_0x246cc6=_0x1ae4dc['start'],_0x473d5f=_0x1ae4dc['end'];const _0x2765e9=this['_findSuggestions'](_0x1ae4dc,'deletion');for(const {suggestion:_0x12aaf8,meta:_0x46cb1c}of _0x2765e9){const _0x4f072d=this['_model']['createRange'](_0x246cc6,_0x473d5f);if(_0x46cb1c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46cb1c['containsRangeInObject']&&!_0x46cb1c['isInsideObject'])){if(_0x12aaf8['isMultiRange']){if(!An(_0x12aaf8,_0x32d691))continue;let _0x98d170=!0x0;for(const _0x2eebad of _0x12aaf8['getRanges']()){if(_0x2eebad['containsRange'](_0x4f072d,!0x0))return _0x12aaf8;_0x4f072d['containsRange'](_0x2eebad)||(_0x98d170=!0x1);}_0x98d170&&_0x12aaf8['discard']();}else{const _0x177826=_0x12aaf8['getFirstRange']();if(_0x177826['containsRange'](_0x4f072d,!0x0))return _0x12aaf8;if(!An(_0x12aaf8,_0x32d691)){_0x4f072d['containsRange'](_0x177826)?_0x12aaf8['removeMarkers']():_0x177826['containsPosition'](_0x246cc6)?_0x246cc6=_0x177826['end']:_0x177826['containsPosition'](_0x473d5f)&&(_0x473d5f=_0x177826['start']);continue;}_0x246cc6=_0x246cc6['isBefore'](_0x177826['start'])?_0x246cc6:_0x177826['start'],_0x473d5f=_0x473d5f['isAfter'](_0x177826['end'])?_0x473d5f:_0x177826['end'],_0x32d691=Object['assign']({},_0x12aaf8['attributes']),_0x453e81?_0x177826['start']['isBefore'](_0x453e81['getFirstRange']()['start'])?(_0x453e81['removeMarkers'](),_0x453e81=_0x12aaf8):_0x12aaf8['removeMarkers']():_0x453e81=_0x12aaf8;}}}if(_0x453e81)return this['_setSuggestionRange'](_0x453e81,this['_model']['createRange'](_0x246cc6,_0x473d5f)),_0x453e81;{const _0x33982f=_0xa3c351(),_0x152a99=this['_model']['createRange'](_0x246cc6,_0x473d5f),_0x6bdb7c=_0x4ea5e7['id'],_0x2e657b=_0x46271c?'deletion:'+_0x46271c:'deletion',_0x38a54f=this['_setSuggestionData']({'id':_0x33982f,'type':_0x2e657b,'createdAt':new Date(),'authorId':_0x6bdb7c,'attributes':_0x32d691});return this['_addSuggestionMarker'](_0x2e657b,_0x33982f,_0x6bdb7c,_0x152a99),_0x38a54f;}}markMultiRangeDeletion(_0x8d99b8,_0x2120ae='multi',_0x59bbe9={}){const _0x3a7bb4=this['editor']['plugins']['get']('Users')['me'],_0xb959a=_0x8d99b8['map'](_0x256648=>new at(_0x256648['start'],_0x256648['end'])),_0x2277ec=new Set();this['_trackingSessionId']&&(_0x59bbe9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2a2c74,meta:_0x214cc1}of this['_findSuggestions'](_0xb959a,'insertion'))_0x214cc1['isOwn']&&!_0x214cc1['isNextTo']&&_0x2277ec['add'](_0x2a2c74);for(const _0x11f1ff of _0x2277ec)if(_0x11f1ff['isMultiRange']){const _0x5113f8=_0x11f1ff['getRanges']();if(_0x11f1ff['attributes']&&_0x11f1ff['attributes']['skipNestingCheck']||_0x5113f8['every'](_0x25e9dd=>_0xb959a['some'](_0x886822=>_0x886822['containsRange'](_0x25e9dd,!0x0)))&&_0x11f1ff['discard'](),_0xb959a['every'](_0x4830a8=>_0x5113f8['some'](_0x1e8af9=>_0x1e8af9['containsRange'](_0x4830a8,!0x0)))){const _0x4a0cf6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2120ae,'accept');return this['forceDefaultExecution'](()=>_0x4a0cf6(_0x8d99b8,null,_0x59bbe9)),null;}}else{const _0x47ac1e=_0x11f1ff['getFirstRange']();if(_0xb959a['some'](_0x53e6e9=>_0x53e6e9['containsRange'](_0x47ac1e,!0x0))&&_0x11f1ff['discard'](),_0xb959a['every'](_0x4f31e8=>_0x47ac1e['containsRange'](_0x4f31e8,!0x0))){const _0x4a5ade=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2120ae,'accept');return this['forceDefaultExecution'](()=>_0x4a5ade(_0xb959a,null,_0x59bbe9)),null;}}const _0x4065a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2120ae,'join');let _0x2b599c=null;for(const _0x2584cd of this['getSuggestions']())if(_0x2584cd['author']['id']==_0x3a7bb4['id']&&_0x2584cd['isInContent']&&'deletion'==_0x2584cd['type']&&_0x2584cd['subType']==_0x2120ae&&An(_0x2584cd,_0x59bbe9)&&(_0x4065a7(_0x2584cd['getRanges'](),_0xb959a)||_0x4065a7(_0xb959a,_0x2584cd['getRanges']()))){if(_0x2b599c){if(_0x2584cd['commentThread']&&_0x2584cd['commentThread']['length'])continue;for(const _0x4e8f3c of _0x2584cd['getRanges']())_0x2b599c['isIntersectingWithRange'](_0x4e8f3c)||_0x2b599c['addRange'](_0x4e8f3c);_0x2584cd['removeMarkers']();}else{_0x2b599c=_0x2584cd;for(const _0x518266 of _0xb959a)_0x2584cd['isIntersectingWithRange'](_0x518266)||_0x2584cd['addRange'](_0x518266);}}if(_0x2b599c)return _0x2b599c;_0x2277ec['clear']();for(const {suggestion:_0x57067c,meta:_0x4a5bc9}of this['_findSuggestions'](_0xb959a,'deletion'))_0x4a5bc9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a5bc9['containsRangeInObject']&&!_0x4a5bc9['isInsideObject'])&&An(_0x57067c,_0x59bbe9)&&_0x2277ec['add'](_0x57067c);for(const _0x2f7265 of _0x2277ec){const _0x4014c7=_0x2f7265['getRanges']();if((!_0x59bbe9||!_0x59bbe9['skipNestingCheck'])&&_0xb959a['every'](_0x2b6e05=>_0x4014c7['some'](_0x2bafb2=>_0x2bafb2['containsRange'](_0x2b6e05,!0x0))))return _0x2f7265;_0x2f7265['attributes']&&_0x2f7265['attributes']['skipNestingCheck']||_0x4014c7['every'](_0x440d02=>_0xb959a['some'](_0x4eb838=>_0x4eb838['containsRange'](_0x440d02,!0x0)))&&_0x2f7265['discard']();}const _0x1ddde5=_0xa3c351(),_0x58bb8c=_0x3a7bb4['id'],_0x4c6c18='deletion:'+_0x2120ae,_0x4a6b06=this['_setSuggestionData']({'id':_0x1ddde5,'type':_0x4c6c18,'createdAt':new Date(),'authorId':_0x58bb8c,'attributes':_0x59bbe9});for(const _0x1b0a48 of _0xb959a)_0x1b0a48['detach'](),_0x1b0a48['isCollapsed']||'$graveyard'==_0x1b0a48['root']['rootName']||this['_addSuggestionMarker'](_0x4c6c18,_0x1ddde5,_0x58bb8c,_0x1b0a48,Ot['getMultiRangeId']());return _0x4a6b06;}markAttributeChange(_0x5cc154,_0xa6fcaa,_0x1c1832,_0x4f9841,_0x5ccc2a){if(_0x5cc154['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2b1398=this['editor']['plugins']['get']('Users')['me']['id'],_0x50516a=Array['from'](this['_suggestions']['values']())['filter'](_0x1f4fad=>'attribute'==_0x1f4fad['type']&&_0x1f4fad['data']['key']==_0xa6fcaa&&_0x1f4fad['isIntersectingWithRange'](_0x5cc154));if(this['_trackingSessionId']&&(_0x5ccc2a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1bbffa=this['_findSuggestions'](_0x5cc154,'insertion')['filter'](({meta:_0x43d7ed})=>_0x43d7ed['isOwn']&&!_0x43d7ed['isInsideObject']&&!_0x43d7ed['isNextTo'])['map'](({suggestion:_0x23c5c7})=>_0x23c5c7);_0x50516a['unshift'](..._0x1bbffa);}const _0x7d89c0=new Map([[_0x5cc154,_0x1c1832]]);for(const _0xa971cd of _0x50516a){const _0x3e5576='attribute'==_0xa971cd['type']?_0xa971cd['data']['oldValue']:void 0x0,_0x5d7039=_0xa971cd['getFirstRange'](),_0x331f49=Array['from'](_0x7d89c0['keys']())['find'](_0xd9c0dc=>_0xd9c0dc['isIntersecting'](_0x5d7039));if(!_0x331f49)continue;const _0x535eb2=_0x331f49['getDifference'](_0x5d7039);this['_suggestionsConversion']['isBlockAttribute'](_0xa6fcaa)&&'insertion'==_0xa971cd['type']&&0x0!=_0x535eb2['length']||(_0x7d89c0['delete'](_0x331f49),_0x535eb2['forEach'](_0x51c60e=>{_0x7d89c0['set'](_0x51c60e,_0x1c1832);}),'insertion'!=_0xa971cd['type']&&_0x3e5576!=_0x4f9841&&_0x7d89c0['set'](_0x331f49['getIntersection'](_0x5d7039),_0x3e5576));}const _0x117099=[];for(const [_0x2b560c,_0x47c32f]of _0x7d89c0){const _0x4dad95=_0xa3c351(),_0x2268b8={'key':_0xa6fcaa,'oldValue':_0x47c32f,'newValue':_0x4f9841};_0xa6fcaa['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':_0xa6fcaa});const _0x18445b=('attribute:'+_0xa6fcaa+'|'+fn({'newValue':_0x4f9841}))['substring'](0x0,0x3c),_0x39133f=this['_setSuggestionData']({'id':_0x4dad95,'type':_0x18445b,'data':_0x2268b8,'createdAt':new Date(),'authorId':_0x2b1398,'attributes':_0x5ccc2a});_0x117099['push'](_0x39133f),this['_addSuggestionMarker'](_0x18445b,_0x4dad95,_0x2b1398,_0x2b560c);}return _0x117099;}enableDefaultAttributesIntegration(_0x375698){this['enableCommand'](_0x375698,(_0x588a91,..._0x1e47a8)=>{this['recordAttributeChanges'](()=>{_0x588a91(..._0x1e47a8);});});}startTrackingSession(_0x376173){return this['_trackingSessionId']=void 0x0!==_0x376173?_0x376173:_0xa3c351(),this['_trackingSessionId'];}_getAttributeKey(_0x43e3df){return'attribute'==_0x43e3df['type']?Cn(_0x43e3df['subType']):null;}_applyOperationsAsSuggestions(_0x42967d){if(0x0==_0x42967d['length'])return;const _0x190758=this['editor'],_0x4b46cb=[],_0x25b217=_0x25e279=>{const _0x8d097f=_0x25e279['_aiSource'];return _0x8d097f?{'@ai':{'type':_0x8d097f}}:{};},_0x368fef=(_0x10f9e8,_0x377b9d,_0x21ad20,_0x48690c)=>{const _0x211cbd=new Set(_0x48690c['flatMap'](_0x4dc8a5=>_0x4dc8a5['getMarkerNames']()));let _0x4ad636=!0x1;for(let _0x1c6801=_0x377b9d;_0x1c6801<_0x10f9e8['operations']['length'];_0x1c6801++){const _0x1104fd=_0x10f9e8['operations'][_0x1c6801];if('marker'==_0x1104fd['type']){if(!_0x211cbd['has'](_0x1104fd['name']))continue;_0x4ad636=!0x0;}_0x1104fd['_aiSource']=_0x21ad20;}return _0x4ad636;};_0x190758['model']['change'](_0x396aad=>{for(let _0x350c11=0x0;_0x350c11<_0x42967d['length'];_0x350c11++){const _0xb67d=_0x42967d[_0x350c11],_0x3f568e=_0xb67d['_aiSource'];if(_0xb67d['baseVersion']=_0x190758['model']['document']['version'],_0xb67d['isDocumentOperation']=!0x0,_0x14639a(_0xb67d))continue;if(an(_0xb67d)){const _0x562726=_0x155c70(_0xb67d['newRange'],_0x190758['model']);_0x4b46cb['unshift']({'range':at['fromRange'](_0x562726),'operation':_0xb67d});continue;}const _0x38b814=_0x396aad['batch']['operations']['length']+0x1;let _0x568291=[];switch(_0xb67d['type']){case'rename':{const _0x109378=_0xb67d['oldName'],_0x36c003=_0xb67d['newName'];if(_0x109378==_0x36c003)break;_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d);const _0x53a2bc='$elementName',_0x3e6c90=_0xb67d['position'],_0x1d5b35=_0x190758['model']['createRange'](_0x3e6c90,_0x190758['model']['createPositionAt'](_0x3e6c90['nodeAfter'],'end'));_0x568291=this['markAttributeChange'](_0x1d5b35,_0x53a2bc,_0x109378,_0x36c003,{..._0x25b217(_0xb67d),'groupId':_0xa3c351()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1b2480=_0xb67d['oldValue'],_0x1d8bd0=_0xb67d['newValue'];if(_0x1b2480==_0x1d8bd0)break;_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d);const _0x3f73fb=_0xb67d['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3f73fb))break;const _0x11bf87=_0x155c70(_0xb67d['range'],_0x190758['model']);_0x568291=this['markAttributeChange'](_0x11bf87,_0x3f73fb,_0x1b2480,_0x1d8bd0,{..._0x25b217(_0xb67d),'groupId':_0xa3c351()});break;}case'insert':{if(_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d),_0x42967d[_0x350c11+0x1]&&'move'==_0x42967d[_0x350c11+0x1]['type'])break;const _0x28a0dc=_0xb67d['position'],_0x20a589=_0xb67d['howMany'],_0x44b307=_0x155c70(_0x190758['model']['createRange'](_0x28a0dc,_0x28a0dc['getShiftedBy'](_0x20a589)),_0x190758['model']);_0x568291=cn(this['markInsertion'](_0x44b307,null,{..._0x25b217(_0xb67d)}));break;}case'split':{_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d);const _0x1a2c09=_0xb67d['splitPosition'],_0x554625=_0xb67d['moveTargetPosition'],_0x43ec27=_0x190758['model']['createRange'](_0x1a2c09,_0x554625);_0x568291=cn(this['markInsertion'](_0x43ec27,null,{..._0x25b217(_0xb67d)}));break;}case'move':case'remove':_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d);}_0x3f568e&&_0x368fef(_0x396aad['batch'],_0x38b814,_0x3f568e,_0x568291)&&delete _0xb67d['_aiSource'];}for(const {range:_0x5d3adf,operation:_0x14558e}of _0x4b46cb){const _0x448d6c=_0x14558e['_aiSource'],_0x383b23=_0x25b217(_0x14558e),_0x3cdfbc=_0x396aad['batch']['operations']['length'];_0x5d3adf['detach']();const _0x2fe9e8=this['markDeletion'](_0x5d3adf,null,{..._0x383b23});_0x448d6c&&_0x368fef(_0x396aad['batch'],_0x3cdfbc,_0x448d6c,cn(_0x2fe9e8));}});}_setSuggestionRange(_0x4140ea,_0x1dd4e9){const _0x32dd0c=_0x4140ea['getFirstMarker']();this['_model']['change'](_0x84680e=>{_0x84680e['updateMarker'](_0x32dd0c,{'range':_0x1dd4e9});});}_addThreadToSuggestion(_0x5ebe99){const _0x279f5b=_0x5ebe99['id'],_0x3d6875=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x279f5b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d6875,'threadId':_0x279f5b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20cfb1=this['_commentsRepository']['getCommentThread'](_0x279f5b);_0x20cfb1['unbind']('isRemovable'),_0x20cfb1['isRemovable']=!0x1,_0x5ebe99['commentThread']=_0x20cfb1;}_checkSuggestionCorrectness(_0x1190d7,_0x1ea73e,_0x5aad38,_0x4d9688){if(_0x1190d7['type']!=_0x1ea73e||_0x1190d7['subType']!=_0x5aad38||_0x1190d7['creator']['id']!=_0x4d9688)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x228d64('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x355f91,_0x2cfd97){const _0x57f3b8=_0x355f91['getFirstRange']();if(_0x2cfd97['isEqual'](_0x57f3b8))_0x355f91['removeMarkers']();else{if(_0x57f3b8['containsRange'](_0x2cfd97)){const _0x29e009=this['_model']['createPositionAt'](_0x2cfd97['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x355f91,this['_model']['createRange'](_0x57f3b8['start'],_0x29e009));const _0x4c44ff=_0xa3c351(),_0x3b3414=_0x355f91['creator']['id'],_0x13d098=_0x355f91['type']+':'+_0x355f91['subType'];this['_setSuggestionData']({'id':_0x4c44ff,'type':_0x13d098,'createdAt':new Date(),'authorId':_0x3b3414,'data':_0x355f91['data'],'attributes':_0x355f91['attributes']});const _0x2edfc2=this['_model']['createPositionAt'](_0x2cfd97['end']['parent'],'after'),_0xf98f8c=this['_model']['createRange'](_0x2edfc2,_0x57f3b8['end']);this['_addSuggestionMarker'](_0x13d098,_0x4c44ff,_0x3b3414,_0xf98f8c);}else{if(_0x57f3b8['containsPosition'](_0x2cfd97['start'])){const _0x17ac25=this['_model']['createPositionAt'](_0x2cfd97['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x355f91,this['_model']['createRange'](_0x57f3b8['start'],_0x17ac25));}else{const _0x660230=this['_model']['createPositionAt'](_0x2cfd97['end']['parent'],'after');this['_setSuggestionRange'](_0x355f91,this['_model']['createRange'](_0x660230,_0x57f3b8['end']));}}}}_rangeIsInLocalUserInsertion(_0x4487b4){for(const {suggestion:_0x2ca24d,meta:_0x249afc}of this['_findSuggestions'](_0x4487b4,'insertion')){if(!_0x249afc['isOwn'])continue;const _0x2a687c=_0x2ca24d['getRanges']();for(const _0x4864ca of _0x2a687c)if(!_0x4487b4['getDifference'](_0x4864ca)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x34f781){return this['editor']['plugins']['get']('Users')['getUser'](_0x34f781);}_getExternalAuthor(_0x318404){const _0x45151c=this['editor']['plugins']['get']('Users'),_0xe3fb3d=_0x5032f4('external:'+_0x318404),_0x59011c=_0x45151c['getUser'](_0xe3fb3d);return _0x59011c||_0x45151c['addUser']({'id':_0xe3fb3d,'name':_0x318404});}_createSuggestion(_0x3e4316,_0x35e133,_0x72781d,_0x1dd1b8,_0x2b7839,_0x4ed260){const _0x33ab38=this['_getAuthorFromId'](_0x1dd1b8);if(!_0x33ab38)throw new _0x228d64('track-changes-user-not-found',this,{'authorId':_0x1dd1b8,'suggestionId':_0x72781d});const _0x35ddee=this['_suggestionFactory']['buildSuggestion'](_0x3e4316,_0x35e133,_0x72781d,_0x33ab38,_0x2b7839,_0x4b725d=>{this['_updateSuggestionData'](_0x72781d,{'attributes':_0x4b725d});const _0x5afa9f=this['getSuggestion'](_0x72781d);this['_joinWithAdjacentSuggestions'](new Set([_0x5afa9f])),this['_refreshSuggestionsChain'](new Set([_0x5afa9f]));},_0x4ed260);return this['listenTo'](_0x35ddee,'accept',()=>{this['_updateSuggestionData'](_0x72781d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x35ddee,'discard',()=>{this['_updateSuggestionData'](_0x72781d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x72781d,_0x35ddee),this['_suggestionState']['set'](_0x35ddee,'notReady'),_0x35ddee;}_breakSuggestionMarker(_0x1dee91,_0x4d33c0,_0x447ec3){const _0x416307=_0x1dee91['getFirstRange'](),_0x598b2c=_0x416307['start'],_0x13c489=_0x416307['end'];this['_setSuggestionRange'](_0x1dee91,this['_model']['createRange'](_0x598b2c,_0x4d33c0));const _0x18dadb=_0xa3c351(),_0x8b4036=_0x1dee91['creator']['id'],_0x403d2a=_0x1dee91['type']+(_0x1dee91['subType']?':'+_0x1dee91['subType']:'');this['_setSuggestionData']({'id':_0x18dadb,'type':_0x403d2a,'createdAt':new Date(),'authorId':_0x8b4036,'originalSuggestionId':_0x1dee91['_originalSuggestionId']||_0x1dee91['id'],'attributes':_0x1dee91['attributes'],'data':_0x1dee91['data']});const _0x1d3de4=this['_getAttributeKey'](_0x1dee91);('formatBlock'==_0x1dee91['type']||_0x1d3de4&&this['_suggestionsConversion']['isBlockAttribute'](_0x1d3de4))&&(_0x447ec3=this['_model']['createPositionBefore'](_0x447ec3['parent'])),this['_addSuggestionMarker'](_0x403d2a,_0x18dadb,_0x8b4036,this['_model']['createRange'](_0x447ec3,_0x13c489));}_findSuggestions(_0x27c09c,_0x56f5bd=null){const _0x13ae6c=[],_0x34baee=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27c09c)||(_0x27c09c=[_0x27c09c]);for(const _0x2308e7 of this['getSuggestions']()){if(!_0x2308e7['isInContent'])continue;if(_0x56f5bd&&_0x2308e7['type']!=_0x56f5bd)continue;let _0x3366eb=!0x1;for(const _0x2ace3a of _0x2308e7['getRanges']()){for(const _0x4bd5dd of _0x27c09c){const _0x987052=_0x4bd5dd['start']['isEqual'](_0x2ace3a['end'])||_0x4bd5dd['end']['isEqual'](_0x2ace3a['start']);if(_0x987052||_0x4bd5dd['getIntersection'](_0x2ace3a)){const _0x36acbb=_0x4bd5dd['containsRange'](_0x2ace3a)&&dn(this['_model']['schema'],_0x2ace3a['start'],_0x4bd5dd),_0x17f3f9=_0x2ace3a['containsRange'](_0x4bd5dd)&&dn(this['_model']['schema'],_0x4bd5dd['start'],_0x2ace3a);_0x13ae6c['push']({'suggestion':_0x2308e7,'meta':{'isOwn':_0x34baee==_0x2308e7['author'],'isNextTo':_0x987052,'isInsideObject':_0x36acbb,'containsRangeInObject':_0x17f3f9}}),_0x3366eb=!0x0;break;}}if(_0x3366eb)break;}}return _0x13ae6c;}_addSuggestionMarker(_0x449782,_0x450dd7,_0x17dcc9,_0x1264b8,_0x329402){this['_model']['change'](_0x1c4bbe=>{let _0x3688b1='suggestion:'+_0x449782+':'+_0x450dd7+':'+_0x17dcc9;_0x329402&&(_0x3688b1=_0x3688b1+':'+_0x329402),_0x1c4bbe['addMarker'](_0x3688b1,{'range':_0x1264b8,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x5a59d8){const _0x53ee93=_0x5a59d8['previous'],_0x454596=_0x5a59d8['next'];_0x5a59d8['previous']=null,_0x5a59d8['next']=null,null!=_0x53ee93&&_0x53ee93['next']==_0x5a59d8&&(_0x53ee93['next']=_0x454596),null!=_0x454596&&_0x454596['previous']==_0x5a59d8&&(_0x454596['previous']=_0x53ee93),'ready'==this['_suggestionState']['get'](_0x5a59d8)&&(this['_suggestionState']['set'](_0x5a59d8,'removed'),this['fire']('suggestionUnloaded',_0x5a59d8,_0x53ee93,_0x454596));}_setSuggestionData(_0x33ad50){const _0x3f334d=_0x33ad50['id'],_0x59a3e6=this['addSuggestionData'](_0x33ad50);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3d1300=this['editor']['plugins']['get']('PendingActions'),_0x2dc013=_0x59a3e6['hasComments'],_0x13331e=_0x59a3e6['subType']?_0x59a3e6['type']+':'+_0x59a3e6['subType']:_0x59a3e6['type'],_0x3fb064=this['editor']['locale'],_0x56b93a=_0x3d1300['add'](wt(_0x3fb064,'PENDING_ACTION_SUGGESTION')),_0x7fee62={'id':_0x3f334d,'type':_0x13331e,'hasComments':_0x2dc013,'data':_0x33ad50['data']||null,'originalSuggestionId':_0x33ad50['originalSuggestionId']||null,'attributes':_0x59a3e6['attributes']};this['_adapter']['addSuggestion'](_0x7fee62)['then'](_0x1c018d=>{_0x59a3e6['_saved']=!0x0,_0x3d1300['remove'](_0x56b93a),_0x1c018d&&_0x1c018d['createdAt']&&(this['_suggestions']['get'](_0x3f334d)['createdAt']=_0x1c018d['createdAt']);})['catch'](_0x53be66=>{throw _0x4eb8ec('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x59a3e6['discard']();}),_0x59a3e6['stopListening'](),this['_suggestions']['delete'](_0x59a3e6['id']),this['_suggestionState']['delete'](_0x59a3e6),_0x53be66;});}return _0x59a3e6;}_updateSuggestionData(_0x54ec0b,_0x59fdb6){const _0x120f50=this['editor']['plugins']['get']('PendingActions'),_0x622088=this['getSuggestion'](_0x54ec0b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x622088['_saved']){const _0x165676=_0x120f50['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x54ec0b,_0x59fdb6)['then'](()=>{_0x120f50['remove'](_0x165676);});}else _0x622088['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x54ec0b,_0x59fdb6);});}}_getSuggestionData(_0x4c1cc4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x228d64('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4c1cc4);}_handleNewSuggestionMarker(_0x256190){const {id:_0x3bc3d5,type:_0x38fc2c,subType:_0x25da1f,authorId:_0x2a15ea}=nt(_0x256190),_0x146da2=this['_suggestions']['get'](_0x3bc3d5)||this['_createSuggestion'](_0x38fc2c,_0x25da1f,_0x3bc3d5,_0x2a15ea,{});switch(this['_checkSuggestionCorrectness'](_0x146da2,_0x38fc2c,_0x25da1f,_0x2a15ea),this['_suggestionState']['get'](_0x146da2)){case'notReady':this['_getSuggestionData'](_0x3bc3d5)['then'](_0x22eec5=>{let _0xca489c=Promise['resolve']();_0x22eec5['hasComments']&&(_0xca489c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3bc3d5})),_0xca489c['then'](()=>{this['addSuggestionData'](_0x22eec5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x146da2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3bc3d5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x146da2,'ready'),this['fire']('suggestionLoaded',_0x146da2);break;case'ready':this['fire']('suggestionChanged',_0x146da2);}return _0x146da2['addMarkerName'](_0x256190),_0x146da2;}_refreshSuggestionsChain(_0x475814){const _0xda6d05=Array['from'](_0x475814),_0x481a28=_0xda6d05['filter'](_0x359f3b=>'attribute'==_0x359f3b['type']);this['_refreshAttributeSuggestionsChain'](_0x481a28);const _0x10ed0d=_0xda6d05['filter'](_0x255d19=>!_0x255d19['isMultiRange']&&'attribute'!=_0x255d19['type']),_0x5ced18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39c946=>!_0x39c946['isMultiRange']&&'attribute'!=_0x39c946['type']),_0x20ac2f=_0x5ced18['filter'](_0xe29b89=>!_0x475814['has'](_0xe29b89)),_0x25755f=new Map(_0x5ced18['map'](_0x2500a3=>[_0x2500a3,this['_suggestionFactory']['getSuggestionCallback'](_0x2500a3['type'],_0x2500a3['subType'],'chain')])),_0x598d3f=new Map(_0x5ced18['map'](_0x30f0dd=>[_0x30f0dd,_0x30f0dd['getFirstRange']()])),_0x53542f=new Set(),_0xbeb5fb=new Set();for(let _0x3adaf6=0x0;_0x3adaf6<_0x10ed0d['length'];_0x3adaf6++)_0x1ee902(_0x10ed0d[_0x3adaf6],_0x10ed0d,_0x3adaf6+0x1);for(let _0x140b09=0x0;_0x140b09<_0x10ed0d['length'];_0x140b09++)_0x1ee902(_0x10ed0d[_0x140b09],_0x20ac2f,0x0);const _0x1466a=new Set();for(let _0x51e795=0x0;_0x51e795<_0x10ed0d['length'];_0x51e795++){const _0x178685=_0x10ed0d[_0x51e795];!_0xbeb5fb['has'](_0x178685)&&_0x178685['previous']&&(_0x1466a['add'](_0x178685['previous']),_0x178685['previous']['next']===_0x178685&&(_0x178685['previous']['next']=null),_0x178685['previous']=null),!_0x53542f['has'](_0x178685)&&_0x178685['next']&&(_0x1466a['add'](_0x178685['next']),_0x178685['next']['previous']===_0x178685&&(_0x178685['next']['previous']=null),_0x178685['next']=null);}function _0x1ee902(_0x5047e4,_0x57fa4a,_0x4b9490){for(let _0x60aeab=_0x4b9490;_0x60aeab<_0x57fa4a['length'];_0x60aeab++){const _0x4608f4=_0x3ed9cb(_0x5047e4,_0x57fa4a[_0x60aeab]);_0x4608f4&&(_0x4608f4[0x0]['next']=_0x4608f4[0x1],_0x4608f4[0x1]['previous']=_0x4608f4[0x0],_0x53542f['add'](_0x4608f4[0x0]),_0xbeb5fb['add'](_0x4608f4[0x1]));}}function _0x3ed9cb(_0x1c20eb,_0x33d6cb){if(_0x1c20eb['author']['id']!==_0x33d6cb['author']['id'])return null;const _0x5d38ae=_0x25755f['get'](_0x1c20eb)(_0x1c20eb,_0x33d6cb,_0x598d3f['get'](_0x1c20eb),_0x598d3f['get'](_0x33d6cb));return _0x5d38ae&&_0x25755f['get'](_0x33d6cb)(_0x1c20eb,_0x33d6cb,_0x598d3f['get'](_0x1c20eb),_0x598d3f['get'](_0x33d6cb))?_0x5d38ae[0x1]['commentThread']&&_0x5d38ae[0x1]['commentThread']['length']?null:_0x5d38ae:null;}_0x1466a['size']&&this['_refreshSuggestionsChain'](_0x1466a);}_refreshAttributeSuggestionsChain(_0x11d139){if(0x0==_0x11d139['length'])return;const _0x1a6bc7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b6509=>'attribute'==_0x5b6509['type']&&_0x5b6509['_isDataLoaded']),_0x593e3c=[],_0x25438e=new Map();for(const _0x2ce180 of _0x1a6bc7){const _0x3e7749=_0x5032f4(_0x2ce180['attributes']);_0x25438e['has'](_0x3e7749)||(_0x25438e['set'](_0x3e7749,_0x593e3c['length']),_0x593e3c['push']([])),_0x593e3c[_0x25438e['get'](_0x3e7749)]['push'](_0x2ce180);}!(function(){_0x593e3c['sort']((_0x493d89,_0x174020)=>{const _0x44f8f6=_0x493d89[0x0]['createdAt'],_0x24f6a2=_0x174020[0x0]['createdAt'];return _0x44f8f6==_0x24f6a2?_0x493d89[0x0]['attributes']['groupId']<_0x174020[0x0]['attributes']['groupId']?-0x1:0x1:_0x44f8f6<_0x24f6a2?-0x1:0x1;});for(const _0x30a36d of _0x593e3c)_0x30a36d['sort']((_0x2e6f31,_0x54718b)=>_0x2e6f31['id']<_0x54718b['id']?-0x1:0x1);}());for(let _0x460e41=0x0;_0x460e41<_0x593e3c['length'];_0x460e41++){if(0x0==_0x593e3c[_0x460e41]['length'])continue;const _0x388eb9=[];for(let _0x2c8204=_0x460e41+0x1;_0x2c8204<_0x593e3c['length'];_0x2c8204++)0x0!=_0x593e3c[_0x2c8204]['length']&&_0x2216e2(_0x593e3c[_0x460e41],_0x593e3c[_0x2c8204])&&_0x388eb9['push'](_0x2c8204);for(const _0xe888d0 of _0x388eb9)_0x593e3c[_0x460e41]=_0x593e3c[_0x460e41]['concat'](_0x593e3c[_0xe888d0]),_0x593e3c[_0xe888d0]=[];}for(const _0xc7af3 of _0x593e3c)for(let _0x448f88=0x0;_0x448f88<_0xc7af3['length'];_0x448f88++){const _0x8c6a8a=_0xc7af3[_0x448f88+0x1]||null;_0xc7af3[_0x448f88]['next']!==_0x8c6a8a&&(_0xc7af3[_0x448f88]['next']=_0x8c6a8a);}for(const _0x361e05 of _0x593e3c)for(let _0xef8f68=0x0;_0xef8f68<_0x361e05['length'];_0xef8f68++){const _0xef4423=_0x361e05[_0xef8f68-0x1]||null;_0x361e05[_0xef8f68]['previous']!==_0xef4423&&(_0x361e05[_0xef8f68]['previous']=_0xef4423);}function _0x2216e2(_0x7bcc6e,_0x5d9088){if(_0x7bcc6e[0x0]['attributes']['groupId']!==_0x5d9088[0x0]['attributes']['groupId']&&_0x7bcc6e[0x0]['author']!==_0x5d9088[0x0]['author'])return!0x1;if(!function(_0x55dc9c,_0x43b27f){return!_0x55dc9c['hasComments']&&!_0x43b27f['hasComments']||(!_0x55dc9c['hasComments']||!_0x43b27f['hasComments'])&&(!!(_0x55dc9c['hasComments']&&_0x43b27f['createdAt']<_0x55dc9c['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x43b27f['hasComments']&&_0x55dc9c['createdAt']<_0x43b27f['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x7bcc6e[0x0],_0x5d9088[0x0]))return!0x1;const _0x5cba13=dt(_0x7bcc6e[0x0]['attributes'],['groupId','trackingSessionId']),_0x19cc7c=dt(_0x5d9088[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x5cba13,_0x19cc7c)&&(_0x7bcc6e[0x0]['attributes']['groupId']==_0x5d9088[0x0]['attributes']['groupId']||_0x7bcc6e[0x0]['attributes']['trackingSessionId']===_0x5d9088[0x0]['attributes']['trackingSessionId']&&(!!_0x7bcc6e['every'](_0x230713=>_0x5d9088['some'](_0x50e2db=>_0x230713['getFirstRange']()['isEqual'](_0x50e2db['getFirstRange']())))&&_0x5d9088['every'](_0x49728e=>_0x7bcc6e['some'](_0x3232c7=>_0x49728e['getFirstRange']()['isEqual'](_0x3232c7['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x4ab5a3){const _0x4d1bc1=Array['from'](_0x4ab5a3),_0x9c2ccf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x57cebb=_0x9c2ccf['filter'](_0x408d86=>!_0x4ab5a3['has'](_0x408d86)),_0x139701=new Map(_0x4d1bc1['map'](_0x78d768=>[_0x78d768,this['_suggestionFactory']['getSuggestionCallback'](_0x78d768['type'],_0x78d768['subType'],'join')])),_0x4ce2d5=new Map(_0x9c2ccf['map'](_0xdf0390=>[_0xdf0390,_0xdf0390['getRanges']()]));for(let _0x3bf876=0x0;_0x3bf876<_0x4d1bc1['length'];_0x3bf876++)if(_0x560357(this,_0x4d1bc1[_0x3bf876],_0x4d1bc1,_0x3bf876+0x1))return!0x0;for(let _0x22a242=0x0;_0x22a242<_0x4d1bc1['length'];_0x22a242++)if(_0x560357(this,_0x4d1bc1[_0x22a242],_0x57cebb,0x0))return!0x0;return!0x1;function _0x560357(_0x2e823e,_0x40112f,_0x1687cf,_0x961504){for(let _0x288365=_0x961504;_0x288365<_0x1687cf['length'];_0x288365++){const _0x4aa3dc=_0x1687cf[_0x288365];if(_0x4aa3dc['type']!==_0x40112f['type']||_0x4aa3dc['author']['id']!==_0x40112f['author']['id']||_0x4aa3dc['subType']!==_0x40112f['subType'])continue;if(!In(_0x40112f,_0x4aa3dc))continue;if('attribute'==_0x40112f['type']&&_0x40112f['data']['oldValue']!=_0x4aa3dc['data']['oldValue'])continue;if('attribute'==_0x40112f['type']&&_0x2e823e['_suggestionsConversion']['isBlockAttribute'](_0x40112f['data']['key']))continue;if('formatBlock'==_0x40112f['type']){const _0x1fc263=_0x2e823e['editor']['model'],_0x15c716=_0x40112f['getContainedElement']();if(_0x15c716&&(_0x1fc263['schema']['isObject'](_0x15c716)||_0x1fc263['schema']['isLimit'](_0x15c716)))continue;}const _0x55a1c0=_0x139701['get'](_0x40112f),_0x5eaf05=_0x4ce2d5['get'](_0x40112f),_0x306883=_0x4ce2d5['get'](_0x4aa3dc),_0x16a9cb=_0x40112f['commentThread']&&_0x40112f['commentThread']['length'],_0xae7761=_0x4aa3dc['commentThread']&&_0x4aa3dc['commentThread']['length'];if(!_0x16a9cb&&_0x55a1c0(_0x306883,_0x5eaf05))return _0x2e823e['_joinSuggestions'](_0x4aa3dc,_0x40112f),_0x4ce2d5['delete'](_0x40112f),!0x0;if(!_0xae7761&&_0x55a1c0(_0x5eaf05,_0x306883))return _0x2e823e['_joinSuggestions'](_0x40112f,_0x4aa3dc),_0x4ce2d5['delete'](_0x4aa3dc),!0x0;}return!0x1;}}_joinSuggestions(_0x5d5b9e,_0x42fa6c){if(_0x5d5b9e['isMultiRange']){for(const _0x14f603 of _0x42fa6c['getRanges']())_0x5d5b9e['addRange'](_0x14f603);}else{const _0x5ab7de=_0x42fa6c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d5b9e,this['_model']['createRange'](_0x5d5b9e['getFirstRange']()['start'],_0x5ab7de));}_0x42fa6c['removeMarkers']();}_getMarkerAnnouncementText(_0x5cc0d1,_0x5d0e28,_0x4f54be){const _0x3ba29b=_0x5cc0d1['startsWith']('format')||_0x5cc0d1['startsWith']('attribute')?'FORMATTING':_0x5cc0d1['toUpperCase']();return wt(this['editor']['locale'],_0x5d0e28+'_'+_0x3ba29b+'_SUGGESTION_ANNOUNCEMENT',_0x4f54be);}_initAriaMarkerChangeAnnouncements(){const _0xe7c677=this['editor'];if(!_0xe7c677['ui'])return;const {ariaLiveAnnouncer:_0x24dcfb}=_0xe7c677['ui'];it(this['_model'],({left:_0x127331,entered:_0x534218})=>{for(const _0x1f4cbb of _0x127331){const {group:_0x33a7a1,type:_0x2ab7a8}=nt(_0x1f4cbb['name']);if('suggestion'===_0x33a7a1){_0x24dcfb['announce'](this['_getMarkerAnnouncementText'](_0x2ab7a8,'LEAVE'));break;}}for(const _0x126a61 of _0x534218){const {group:_0x5bf0a9,type:_0xa490db}=nt(_0x126a61['name']);if('suggestion'===_0x5bf0a9){_0x24dcfb['announce'](this['_getMarkerAnnouncementText'](_0xa490db,'ENTER',_0x594d7d(_0x41c81f)));break;}}});}_processAttributeChanges(_0x4e9b6a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ff6f7=this['editor'],_0x2c083a=_0x3ff6f7['model']['document']['differ']['getChanges']();if(0x0==_0x2c083a['length'])return!0x1;const _0x3006a7=[],_0x2ce4b2=_0x2c083a['filter'](_0x1fbf14=>'attribute'==_0x1fbf14['type']),_0x231313=_0x2c083a['filter'](_0x4d1c99=>'insert'==_0x4d1c99['type']&&'$text'!=_0x4d1c99['name']),_0x55ec43=_0x2c083a['filter'](_0x219d96=>'remove'==_0x219d96['type']&&'$text'!=_0x219d96['name']);for(const _0x4b413b of _0x2ce4b2)_0x3006a7['push']({'key':_0x4b413b['attributeKey'],'newValue':_0x4b413b['attributeNewValue'],'oldValue':_0x4b413b['attributeOldValue'],'range':_n(_0x4b413b['range'],_0x3ff6f7['model'])});for(const _0x1dbd58 of _0x231313){const _0x224554=_0x55ec43['find'](_0x4874c0=>_0x4874c0['position']['isEqual'](_0x1dbd58['position']));_0x224554&&_0x3006a7['push']({'key':on,'newValue':_0x1dbd58['name'],'oldValue':_0x224554['name'],'range':_0x3ff6f7['model']['createRangeOn'](_0x1dbd58['position']['nodeAfter'])});}return 0x0!=_0x3006a7['length']&&this['_reduceExistingSuggestions'](_0x4e9b6a,_0x3006a7);}_processAttributeSuggestions(_0x460b8c){let _0x355441=!0x1;const _0x5b3e0f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5232aa=>_0x5232aa['data']['newRange']&&_0x5232aa['name']['startsWith']('suggestion:attribute:'));for(const _0x68023f of _0x5b3e0f){const {subType:_0x5b8ff8,id:_0x330989}=nt(_0x68023f['name']),_0x28b3bf=_0x5b8ff8['split']('|')[0x0];for(const _0x532fd0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x532fd0['id']!=_0x330989&&'attribute'==_0x532fd0['type']&&_0x532fd0['data']&&_0x532fd0['data']['key']==_0x28b3bf&&_0x532fd0['getFirstRange']()['isIntersecting'](_0x68023f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x532fd0,_0x68023f['data']['newRange'],_0x460b8c),_0x355441=!0x0);}return _0x355441;}recordAttributeChanges(_0x5b170a){this['_recordAttributeSuggestions']=!0x0,_0x5b170a();}_reduceExistingSuggestions(_0x1a9e7d,_0x105cc8){if(0x0==_0x105cc8['length'])return!0x1;let _0x276e9f=!0x1;for(const _0x147d4a of _0x105cc8){const _0x4f7b40=this['_findSuggestions'](_0x147d4a['range'],'attribute')['filter'](_0x41ca16=>!_0x41ca16['meta']['isNextTo'])['map'](_0x35e536=>_0x35e536['suggestion']),_0x35cbab=_0x5032f4({'newValue':_0x147d4a['newValue']});_0x4f7b40['filter'](_0xfea385=>{const [_0x5a311d,_0x21d033]=_0xfea385['subType']['split']('|');return _0x5a311d==_0x147d4a['key']&&_0x21d033!=_0x35cbab;})['forEach'](_0xa31239=>{this['_reduceSuggestionAttributeRange'](_0xa31239,_0x147d4a['range'],_0x1a9e7d),_0x276e9f=!0x0;});}return _0x276e9f;}_reduceSuggestionAttributeRange(_0x217ce1,_0x478508,_0x40740f){const _0x302998=_0x217ce1['getFirstRange']()['getDifference'](_0x478508);0x0!==_0x302998['length']?0x1!==_0x302998['length']?this['_breakSuggestionMarker'](_0x217ce1,_0x478508['start'],_0x478508['end']):this['_setSuggestionRange'](_0x217ce1,_0x302998[0x0]):_0x40740f['removeMarker'](_0x217ce1['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4243f0){this['_editor']=_0x4243f0,this['_model']=_0x4243f0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x501e1f,_0x5f43ed,_0x2bc91b,_0x4757ff,_0x729c29,_0x11252a,_0x41030a){return new Ot(this['_model'],{'type':_0x501e1f,'subType':_0x5f43ed,'id':_0x2bc91b,'originalSuggestionId':_0x41030a,'author':_0x4757ff,'creator':_0x4757ff,'attributes':_0x729c29,'onAttributesChange':_0x11252a,'onAccept':(..._0x417a6e)=>this['getSuggestionCallback'](_0x501e1f,_0x5f43ed,'accept')(..._0x417a6e),'onDiscard':(..._0x9cff03)=>this['getSuggestionCallback'](_0x501e1f,_0x5f43ed,'discard')(..._0x9cff03)});}registerCustomCallback(_0x7ac3a2,_0x5aca12,_0x4e697e,_0x438221){const _0x4e62fb=_0x7ac3a2+':'+_0x5aca12+':'+_0x4e697e;this['_customCallbacks']['set'](_0x4e62fb,_0x438221);}getSuggestionCallback(_0x58fe50,_0x47d37b,_0x21e85c){const _0x2d3c33=_0x58fe50+':'+_0x47d37b+':'+_0x21e85c;return this['_customCallbacks']['get'](_0x2d3c33)||this['_defaultCallbacks']['get'](_0x58fe50+':'+_0x21e85c);}_registerDefaultCallbacks(){const _0x3c1cea=()=>!0x1,_0x3ae3e3=_0x4aa13d=>{_0x4aa13d['sort']((_0x76222d,_0x27515c)=>_0x76222d['start']['isBefore'](_0x27515c['start'])?0x1:-0x1),this['_model']['change'](_0x42a00a=>{for(const _0x1a80dc of _0x4aa13d){let _0x1ef88f;_0x1ef88f=_0x1a80dc['end']['isAtEnd']&&_0x1a80dc['end']['parent']==_0x1a80dc['start']['nodeAfter']?_0x42a00a['createSelection'](_0x1a80dc['start']['nodeAfter'],'on'):_0x42a00a['createSelection'](_0x1a80dc),this['_model']['deleteContent'](_0x1ef88f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x51f623=(_0x2e086f,_0x202650)=>{_0x202650&&this['_model']['change'](_0x33bfd5=>{const {commandName:_0x126057,commandParams:_0x24a035=[]}=_0x202650,_0x3050c5=_0x2e086f['map'](_0x3d9638=>(hn(_0x3d9638)&&(_0x3d9638=this['_model']['createRange'](_0x3d9638['end'])),_0x3d9638))['filter'](_0x1e987d=>'$graveyard'!==_0x1e987d['root']['rootName']);if(_0x3050c5['length']<0x1)return;const _0x307d5d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x155060=>at['fromRange'](_0x155060));_0x33bfd5['setSelection'](_0x3050c5);for(const _0x2ad12f of this['_editor']['commands']['commands']())_0x2ad12f['refresh']();_0x24a035['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x126057,..._0x24a035);const _0x48b22c=_0x307d5d['filter'](_0x48dfe9=>'$graveyard'!=_0x48dfe9['root']['rootName']);_0x48b22c['length']>0x0&&_0x33bfd5['setSelection'](_0x48b22c);for(const _0x43a4ec of _0x307d5d)_0x43a4ec['detach']();});},_0x6b89cd=(_0x5247b1,_0x32f97e)=>0x1==_0x5247b1['length']&&0x1==_0x32f97e['length']&&_0x5247b1[0x0]['end']['isEqual'](_0x32f97e[0x0]['start']),_0x1feace=(_0x9b9946,_0x545fec,_0x136bf3,_0x4918bc)=>Ln(_0x9b9946,_0x545fec,_0x136bf3,_0x4918bc)?[_0x9b9946,_0x545fec]:Ln(_0x545fec,_0x9b9946,_0x4918bc,_0x136bf3)?[_0x545fec,_0x9b9946]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3c1cea),this['_defaultCallbacks']['set']('insertion:discard',_0x3ae3e3),this['_defaultCallbacks']['set']('insertion:join',_0x6b89cd),this['_defaultCallbacks']['set']('insertion:chain',_0x1feace),this['_defaultCallbacks']['set']('deletion:accept',_0x3ae3e3),this['_defaultCallbacks']['set']('deletion:discard',_0x3c1cea),this['_defaultCallbacks']['set']('deletion:join',_0x6b89cd),this['_defaultCallbacks']['set']('deletion:chain',_0x1feace),this['_defaultCallbacks']['set']('formatInline:accept',_0x51f623),this['_defaultCallbacks']['set']('formatInline:discard',_0x3c1cea),this['_defaultCallbacks']['set']('formatInline:join',_0x6b89cd),this['_defaultCallbacks']['set']('formatInline:chain',_0x3c1cea),this['_defaultCallbacks']['set']('formatBlock:accept',_0x51f623),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3c1cea),this['_defaultCallbacks']['set']('formatBlock:join',_0x6b89cd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3c1cea),this['_defaultCallbacks']['set']('attribute:accept',_0x3c1cea),this['_defaultCallbacks']['set']('attribute:discard',(_0x566adc,_0x579de9)=>{if(!_0x579de9)return;const _0x4702c6=this['_editor']['plugins']['get'](_0x159bfb);this['_model']['change'](_0x43714c=>{if('$elementName'==_0x579de9['key'])for(const _0x4de527 of _0x566adc){const _0x47f06a=_0x4de527['start']['nodeAfter'],_0x5e8b8a=_0x579de9['oldValue'];_0x43714c['rename'](_0x47f06a,_0x5e8b8a);}else{if(_0x4702c6['isBlockAttribute'](_0x579de9['key'])){for(const _0x322e84 of _0x566adc)void 0x0!==_0x579de9['oldValue']?_0x43714c['setAttribute'](_0x579de9['key'],_0x579de9['oldValue'],_0x322e84['start']['nodeAfter']):_0x43714c['removeAttribute'](_0x579de9['key'],_0x322e84['start']['nodeAfter']);}else{for(const _0x18c247 of _0x566adc)_0x579de9['oldValue']?_0x43714c['setAttribute'](_0x579de9['key'],_0x579de9['oldValue'],_0x18c247):_0x43714c['removeAttribute'](_0x579de9['key'],_0x18c247);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x6b89cd);}};function dn(_0x27cb9b,_0x3b2e6c,_0x20fa82){for(const _0x503cbb of _0x3b2e6c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x503cbb['root']==_0x503cbb)return!0x1;if(!_0x20fa82['containsItem'](_0x503cbb))return!0x1;if(_0x27cb9b['isObject'](_0x503cbb)||_0x27cb9b['isLimit'](_0x503cbb))return!0x0;}return!0x1;}function hn(_0x3e8035){return _0x3e8035['end']['parent']==_0x3e8035['start']['nodeAfter']&&_0x3e8035['end']['isAtStart'];}function gn(_0x235ce5,_0xb084f9,_0x528415,_0x96784d){const _0x48ad54=_0x544aee=>!_0x544aee['item']['is']('$textProxy')&&!_0x96784d['isObject'](_0x544aee['item']),_0x23e189=_0x235ce5['start']['getLastMatchingPosition'](_0x48ad54),_0x56e524=_0x235ce5['end']['getLastMatchingPosition'](_0x48ad54,{'direction':'backward'});return(!_0x235ce5['start']['isEqual'](_0x23e189)||!_0x235ce5['end']['isEqual'](_0x56e524))&&(_0x23e189['isBefore'](_0x56e524)?_0x528415['updateMarker'](_0xb084f9,{'range':_0x528415['createRange'](_0x23e189,_0x56e524)}):_0x528415['removeMarker'](_0xb084f9),!0x0);}function fn(_0x2a5a30){return _0x5032f4(_0x2a5a30);}function mn(_0x329064){const _0x3372f1=_0x329064['start']['nodeAfter'];return _0x3372f1&&_0x3372f1['is']('element');}function En(_0x4116a1){return hn(_0x4116a1)||function(_0x48740e){return _0x48740e['start']['parent']==_0x48740e['end']['nodeBefore']&&_0x48740e['start']['isAtEnd'];}(_0x4116a1);}function Tn(_0xbb4fa7,_0x53b5ac){try{const _0x2f4c76=_0xbb4fa7['getRange']();for(const _0x544f7a of _0x53b5ac)if(_0xbb4fa7!==_0x544f7a&&_0x2f4c76&&_0x2f4c76['isIntersecting'](_0x544f7a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0x55ba86,_0x1e2fce){return null==_0x55ba86['end']['nodeBefore']&&_0x55ba86['end']['parent']==_0x55ba86['start']['nodeAfter']?pn(_0x55ba86['start']['nodeAfter'],_0x1e2fce):_0x55ba86;}function pn(_0x141745,_0x7aa5f){const _0xace0b7=_0x7aa5f['schema']['isObject'](_0x141745)||_0x7aa5f['schema']['isSelectable'](_0x141745);return _0x7aa5f['createRange'](_0x7aa5f['createPositionAt'](_0x141745,'before'),_0xace0b7?_0x7aa5f['createPositionAfter'](_0x141745):_0x7aa5f['createPositionAt'](_0x141745,'end'));}function Ln(_0xe29a0a,_0x906463,_0x24828b,_0x39eb50){return!!In(_0xe29a0a,_0x906463)&&_0x24828b['end']['isEqual'](_0x39eb50['start']);}function In(_0x2a9f5b,_0x51104b){if(!_0x2a9f5b['_isDataLoaded']||!_0x51104b['_isDataLoaded'])return!0x1;const _0x171e8d=new Set(Object['keys'](_0x2a9f5b['attributes'])),_0x457950=new Set(Object['keys'](_0x51104b['attributes']));if(_0x171e8d['delete']('groupId'),_0x457950['delete']('groupId'),0x0==_0x171e8d['size']&&0x0==_0x457950['size'])return!0x0;if(_0x171e8d['size']!=_0x457950['size'])return!0x1;const _0x1fb10e={..._0x2a9f5b['attributes']},_0xd95923={..._0x51104b['attributes']};return delete _0x1fb10e['groupId'],delete _0xd95923['groupId'],JSON['stringify'](_0x1fb10e)==JSON['stringify'](_0xd95923);}function An(_0x42e048,_0x239ea1){const _0xbfb4ba=bn(_0x42e048['attributes']),_0x37089f=bn(_0x239ea1);if(!_0x42e048['_isDataLoaded'])return!0x1;if(!ut(_0xbfb4ba['@ai'],_0x37089f['@ai']))return!0x1;for(const _0x260cc5 of Object['keys'](_0x37089f))if(!ut(_0xbfb4ba[_0x260cc5],_0x37089f[_0x260cc5]))return!0x1;return!0x0;}function bn(_0x54ad2e){const _0xadddea=Object['assign']({},_0x54ad2e);return delete _0xadddea['skipNestingCheck'],delete _0xadddea['tablePasteChainId'],_0xadddea;}function Cn(_0x4814ce){return _0x4814ce['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x5ca6a1();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x4d8836,_0x593da2,_0x36b634,_0x5d9fda){super(),this['model']=_0x593da2,this['view']=_0x36b634,this['commentThreadController']=_0x5d9fda,this['_editor']=_0x4d8836,this['_acceptCommand']=_0x4d8836['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d8836['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x41f02a,_0x37c500)=>_0x41f02a||_0x37c500),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x231576=>_0x231576&&this['_editor']['model']['canEditAt'](_0x593da2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xbad6d0=>_0xbad6d0&&this['_editor']['model']['canEditAt'](_0x593da2['getRanges']())),this['_pendingAction']=null,_0x36b634['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x36b634,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x36b634,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x36b634,'change:isDirty',()=>{_0x36b634['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 _0xdd211a=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xdd211a);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x2195ca{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x338495,_0x256f9e,_0x5bda43,_0xa7faba){super(_0x338495),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f2303(_0x338495,wt(_0x338495,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x256f9e['authoredAt']),this['bind']('authoredAt')['to'](_0x256f9e),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',_0x256f9e,'authoredAt',this,'descriptionParts',(_0x2684cb,_0x4b5d89,_0x18ea5c)=>{const _0x1a0c1d=_0x18ea5c['map'](_0x562141=>At(_0x562141['content']))['join']('.\x20')+'.',_0x163582=_0x256f9e['aiSource']&&'author'===_0xa7faba['showAISource']?_0xa7faba['aiAuthor']['name']:_0x256f9e['author']['name'],_0x4c7f8d=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2684cb-0x1,_0x163582,_0x4b5d89?_0xa7faba['formatDateTime'](_0x4b5d89):'',new DOMParser()['parseFromString'](_0x366f89(_0x1a0c1d),'text/html')['body']['textContent']]);return _0x256f9e['aiSource']&&'pill'===_0xa7faba['showAISource']?_0x4c7f8d+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x4c7f8d;}),this['focusables']=new _0x4a7c66(),this['focusTracker']=new _0x58d28b(),this['keystrokes']=new _0x181292(),this['focusCycler']=new _0x9acfff({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d5c69=>_0x4d5c69['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x256f9e,this['_localUser']=_0x5bda43,this['_config']=_0xa7faba,_0xa7faba['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),et(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x35353f}=this['_config'];this['commentsListView']=new _0x35353f(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',_0x507386=>_0x507386+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x430480,_0x2dec8b)=>_0x430480||!!_0x2dec8b);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x58a3b7}=this['_config'],_0x4cbb70=new _0x58a3b7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x467149=_0x4cbb70['commentInputView'];return _0x4cbb70['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x467149,'value',(_0x42698f,_0x5f2528,_0x91f56b)=>!!_0x91f56b||_0x42698f&&!_0x5f2528),_0x467149['on']('submit',(_0x7fe45d,_0x357d70)=>{this['fire']('addComment',_0x357d70),_0x467149['editor']['setData']('');}),_0x467149['on']('cancel',()=>this['focus']()),_0x467149['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4cbb70;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x58aa1b,_0x368bfc,_0x1bd250,_0xe30fe8){super(_0x58aa1b,_0x368bfc,_0x1bd250,_0xe30fe8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x40cdf4=>_0x40cdf4&&_0x40cdf4[0x0]?_0x40cdf4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x591539,_0x172339)=>{let _0x52f5de='';for(const _0x10e093 of _0x591539)_0x52f5de+='<p>'+At(_0x10e093['content'],_0x10e093['color'])+'</p>';return _0x172339?_0x52f5de:st(_0x52f5de,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xe30fe8['SuggestionView'](_0x58aa1b,_0x368bfc,{'formatDateTime':_0xe30fe8['formatDateTime'],'showAISource':_0xe30fe8['showAISource'],'aiAuthor':_0xe30fe8['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x539a44=>!!_0x539a44||wt(_0x58aa1b,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x423ee8=>!!_0x423ee8||wt(_0x58aa1b,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),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 _0x33143a=this['bindTemplate'],_0x56daa9=[this['suggestionView']];return this['commentsListView']&&_0x56daa9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56daa9['push'](this['commentThreadInputView']),_0x56daa9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x33143a['if']('isActive','ck-suggestion-wrapper--active'),_0x33143a['to']('type',_0x52e5ea=>'ck-suggestion-'+_0x52e5ea),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':_0x33143a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56daa9};}['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));}},Sn=class extends _0x2195ca{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x236e82,_0x48597b,_0x2c3ffe){super(_0x236e82),this['_model']=_0x48597b,this['_config']=_0x2c3ffe,this['set']('description',''),this['bind']('authoredAt')['to'](_0x48597b),this['acceptButton']=this['_createButton'](wt(_0x236e82,'Accept\x20suggestion'),_0xd3dbe3,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x236e82,'Discard\x20suggestion'),_0x213729,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x578094=!!_0x48597b['aiSource']&&'author'===_0x2c3ffe['showAISource'],_0x196892=_0x578094?this['_createAIUser'](_0x2c3ffe['aiAuthor']):_0x48597b['author'],_0x5eb8df=_0x578094&&!_0x2c3ffe['aiAuthor']['avatar']?_0xa05be7:void 0x0;this['userView']=new _0x37ba6d(_0x236e82,_0x196892,this['getUserViewNotificationText'](),_0x5eb8df),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4a7c66([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x58d28b(),this['keystrokes']=new _0x181292(),this['focusCycler']=new _0x9acfff({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xe70fa0=>_0xe70fa0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xa4653f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xa4653f['innerHTML']=_0x366f89(this['description']),this['on']('change:description',(_0x3f21aa,_0x3e1a50,_0xb7343)=>{_0xa4653f['innerHTML']=_0x366f89(_0xb7343);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0xe38fda=this['bindTemplate'],_0x96188e=[{'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']}},{'tag':'time','attributes':{'datetime':_0xe38fda['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xe38fda['to']('authoredAt',_0x1afaeb=>this['_config']['formatDateTime'](_0x1afaeb))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x96188e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x5d52fe=new _0x304d6f(this['locale']);_0x5d52fe['set']({'icon':_0x9221cd,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x96188e['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x5d52fe]});}return{'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':_0x96188e}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):wt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):wt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x1b92de){return new _0x1820d7({'id':'ck-ai-author','name':_0x1b92de['name'],'avatar':_0x1b92de['avatar'],'color':new _0x2dd2ad(0x0)});}_createButton(_0x117f70,_0x3c2e5d,_0x535c13,_0x249821,_0x53efa5){const _0x86b58=new _0x3f2d28(this['locale']);return _0x86b58['set']({'label':_0x117f70,'icon':_0x3c2e5d,'tooltip':!0x0,'tooltipPosition':_0x53efa5}),_0x86b58['extendTemplate']({'attributes':{'class':_0x535c13}}),_0x86b58['on']('execute',()=>{this['fire'](_0x249821,this['_model']['id']);}),_0x86b58;}_setupKeyboardNavigation(){const _0x36f7b7=this['element'];this['keystrokes']['listenTo'](_0x36f7b7);for(const _0x42125b of this['focusables'])this['focusTracker']['add'](_0x42125b['element']),this['keystrokes']['listenTo'](_0x42125b['element']);this['keystrokes']['set']('enter',(_0x3ca6c7,_0x4ddaa6)=>{_0x36f7b7===_0x3ca6c7['target']&&(this['focusCycler']['focusFirst'](),_0x4ddaa6());}),this['keystrokes']['set']('esc',(_0x9e6d93,_0x263982)=>{_0x36f7b7!==_0x9e6d93['target']&&(this['focus'](),_0x263982());});}},Mn=class extends _0x139d64{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0x1e3a1d,_0x72b439,_0x1be584,_0x38a179];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x112c40){super(_0x112c40),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3bbf01=this['editor']['config'];_0x3bbf01['define']('trackChanges.SuggestionThreadView',yn),_0x3bbf01['define']('trackChanges.SuggestionView',Sn),_0x3bbf01['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3bbf01['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x1b185b,_0x3176ad){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x14c30f,_0x1c0e52]of this['_handleControllerBuffer']){const _0x2b284c=this['_suggestionToController']['has'](_0x14c30f);_0x2b284c||_0x1c0e52?_0x2b284c&&_0x1c0e52&&this['_destroyController'](_0x14c30f):this['_initializeController'](_0x14c30f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x38a179)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1b185b,_0x3176ad);}init(){const _0x4a2e34=this['editor'],_0x55c7a0=_0x4a2e34['plugins']['get'](ln),_0x53f222=_0x4a2e34['plugins']['get'](_0x1be584),_0x5dac01=_0x4a2e34['plugins']['get'](_0x38a179),_0x1f5d8b=_0x4a2e34['plugins']['get'](_0x72b439);this['_addUIComponentsToFactory'](),_0x5dac01['addSourceCollector'](()=>{const _0x2f5c46=[];for(const [_0x3c2541,_0x299b53]of Array['from'](this['_suggestionToController'])){const _0x1735cd=_0x3c2541['getAllAdjacentSuggestions'](),_0x2c3042=[];for(const _0x185e21 of _0x1735cd){if(!_0x185e21['isInContent'])continue;if(_0x185e21['isMultiRange']){_0x2c3042['push'](..._0x185e21['getRanges']());continue;}const _0x554edc=_0x185e21['getFirstRange']();if(_0x2c3042['length']>0x0){const _0x33de29=_0x2c3042[0x0]['getJoined'](_0x554edc);if(_0x33de29){_0x2c3042[0x0]=_0x33de29;continue;}}_0x2c3042['push'](_0x554edc);}_0x2f5c46['push']([_0x299b53['view'],_0x2c3042]);}return _0x2f5c46;}),this['listenTo'](_0x55c7a0,'suggestionLoaded',(_0x25451f,_0x408031)=>{this['listenTo'](_0x408031,'change:previous',(_0x4c5ac3,_0x22880d,_0x1a703c,_0x1dd0e5)=>{_0x408031['isInContent']&&(null==_0x1a703c?(this['_updateController'](_0x1dd0e5['head']),this['_handleSuggestionControllerDelayed'](_0x408031,!0x1)):(this['_updateController'](_0x1a703c['head']),null==_0x1dd0e5&&this['_handleSuggestionControllerDelayed'](_0x408031,!0x0)));}),null!==_0x408031['previous']?this['_updateController'](_0x408031['head']):this['_handleSuggestionControllerDelayed'](_0x408031,!0x1);}),this['listenTo'](_0x55c7a0,'suggestionUnloaded',(_0x57199a,_0x3d27dc,_0x3acf1f)=>{this['stopListening'](_0x3d27dc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d27dc),this['_suggestionToController']['has'](_0x3d27dc)&&this['_destroyController'](_0x3d27dc),_0x3acf1f&&this['_updateController'](_0x3acf1f['head']);}),this['listenTo'](_0x55c7a0,'suggestionChanged',(_0x340beb,_0x4a8e6f)=>{this['_updateController'](_0x4a8e6f);}),this['listenTo'](_0x53f222,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1f5d8b,'addComment',(_0x2cd39a,{threadId:_0x2bed84,isFromAdapter:_0x3e933c})=>{if(_0x3e933c||!_0x55c7a0['hasSuggestion'](_0x2bed84))return;const _0x58077d=_0x55c7a0['getSuggestion'](_0x2bed84);this['_suggestionToController']['get'](_0x58077d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x308fda=[this['editor']];for(const _0x205be7 of _0x308fda){let _0x439e28;for(const _0x2ecbf5 in _0x205be7){const _0x152b0e=_0x2ecbf5,_0x3223b8=_0x205be7[_0x152b0e];if('trackChangesLicenseKeyValid'==_0x3223b8||'trackChangesLicenseKeyInvalid'==_0x3223b8||'trackChangesLicenseKeyExpired'==_0x3223b8||'trackChangesLicenseKeyDomainLimit'==_0x3223b8||'trackChangesLicenseKeyNotAllowed'==_0x3223b8||'trackChangesLicenseKeyEvaluationLimit'==_0x3223b8||'trackChangesLicenseKeyUsageLimit'==_0x3223b8){delete _0x205be7[_0x152b0e],_0x439e28=_0x3223b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x439e28&&_0x205be7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x439e28&&_0x205be7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x439e28&&_0x205be7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x439e28&&_0x205be7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x439e28&&_0x205be7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x439e28&&_0x205be7['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x4468eb){const _0x163883=this['_suggestionToController']['get'](_0x4468eb);return _0x163883&&this['editor']['plugins']['get'](_0x1be584)['getByInnerView'](_0x163883['view'])||null;}getSuggestionForAnnotation(_0x4d4b7d){const _0x3a062e=this['_viewToController']['get'](_0x4d4b7d['innerView']);return _0x3a062e?_0x3a062e['model']:null;}_refreshActiveMarkers(){const _0x51a58b=this['editor']['plugins']['get'](_0x1be584),_0x5a9da2=this['editor']['plugins']['get'](ln),_0x257a8f=Array['from'](_0x51a58b['activeAnnotations'],_0x20ba0f=>_0x20ba0f['innerView'])['filter'](_0x19e6ad=>this['_viewToController']['has'](_0x19e6ad)),_0x5298bd=[];for(const _0x47afc0 of _0x257a8f){const _0x3f165e=this['_viewToController']['get'](_0x47afc0)['model']['getAllAdjacentSuggestions']();_0x5298bd['push'](..._0x3f165e['reduce']((_0x3b9c79,_0x4d4f53)=>[..._0x3b9c79,..._0x4d4f53['getMarkerNames']()],[]));}_0x5a9da2['activeMarkers']=_0x5298bd;}_addUIComponentsToFactory(){const _0x3ee863=this['editor'],_0x1d2314=_0x3ee863['locale'],_0x290418=wt(_0x1d2314,'Track\x20changes'),_0xf84b6b=new _0x360d71([{'type':'switchbutton','model':new _0x2c70e6({'withText':!0x0,'isToggleable':!0x0,'label':_0x290418,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3ee863['plugins']['has']('TrackChangesPreview')&&_0xf84b6b['addMany']([{'type':'separator'},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3948ce of _0xf84b6b)if(On(_0x3948ce)){const _0x2f038b=_0x3ee863['commands']['get'](_0x3948ce['model']['commandName']);_0x3948ce['model']['bind']('isOn','isEnabled')['to'](_0x2f038b,'value','isEnabled');}_0x3ee863['ui']['componentFactory']['add']('trackChanges',_0x5401fd=>this['_createToolbarButton'](_0x5401fd,_0xf84b6b,_0x290418)),_0x3ee863['ui']['componentFactory']['add']('menuBar:trackChanges',_0x20b3bd=>this['_createMenuBarMenu'](_0x20b3bd,_0xf84b6b,_0x290418));}_createToolbarButton(_0x25bf95,_0x320ce8,_0x41c6ad){const _0x5d3287=_0x1805ae(_0x25bf95,_0x1afc18),_0x19c34b=this['editor']['commands']['get']('trackChanges');_0x5d3287['buttonView']['set']({'tooltip':_0x41c6ad,'label':_0x41c6ad,'icon':_0x2994b0}),_0x5d3287['buttonView']['bind']('isOn')['to'](_0x19c34b,'value'),_0x5d3287['buttonView']['on']('execute',()=>{_0x19c34b['execute'](),this['editor']['editing']['view']['focus']();}),_0x5bc4f8(_0x5d3287,_0x320ce8,{'role':'menu'});const _0x4f3f55=[];for(const _0x41ac19 of _0x320ce8)On(_0x41ac19)&&_0x4f3f55['push'](this['editor']['commands']['get'](_0x41ac19['model']['commandName']));const _0x3d0815=_0x5d3287['buttonView'];return _0x3d0815['actionView']['unbind']('isEnabled'),_0x3d0815['arrowView']['unbind']('isEnabled'),_0x3d0815['actionView']['bind']('isEnabled')['to'](_0x19c34b,'isEnabled'),_0x3d0815['arrowView']['bind']('isEnabled')['toMany'](_0x4f3f55,'isEnabled',(..._0x5c13c7)=>_0x5c13c7['some'](_0x42677d=>_0x42677d)),_0x5d3287['on']('execute',_0x492f0e=>{this['editor']['execute'](_0x492f0e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5d3287;}_createMenuBarMenu(_0x41d157,_0x417467,_0x2974c3){const _0x3d4dc4=new _0x1c8df3(_0x41d157),_0x1346b1=this['editor']['commands']['get']('trackChanges');_0x3d4dc4['buttonView']['set']({'label':_0x2974c3,'icon':_0x2994b0});const _0x376919=new _0x2bc35c(_0x41d157);for(const _0x51c65b of _0x417467){if('separator'==_0x51c65b['type']){_0x376919['items']['add'](new _0x45abed(_0x41d157));continue;}const _0x2d1b70=new _0x705306(_0x41d157,_0x3d4dc4),_0x4972e2=new _0x22d961(_0x41d157),_0x205eb6=_0x51c65b['model'];_0x4972e2['bind'](...Object['keys'](_0x205eb6))['to'](_0x205eb6),_0x4972e2['delegate']('execute')['to'](_0x3d4dc4),_0x4972e2['on']('execute',()=>{this['editor']['execute'](_0x205eb6['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d1b70['children']['add'](_0x4972e2),_0x376919['items']['add'](_0x2d1b70);}return _0x3d4dc4['bind']('isEnabled')['to'](_0x1346b1,'isEnabled'),_0x3d4dc4['panelView']['children']['add'](_0x376919),_0x3d4dc4;}_initializeController(_0x51148b){const _0x56e42f=this['editor'],_0xd441bf=_0x56e42f['config'],_0xdb4a19=_0x56e42f['plugins']['get'](_0x1be584),_0x371477=_0x56e42f['plugins']['get'](_0x72b439),_0xad5b61=_0x56e42f['plugins']['get'](_0x38a179),_0x2cec2a=_0x56e42f['plugins']['get'](_0x1e3a1d)['me'],_0x24fc5e=_0xd441bf['get']('trackChanges')['SuggestionThreadView'],_0x12aa38=_0xd441bf['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x33d309,CommentThreadInputView:_0x2fd4c3}=_0x56e42f['plugins']['get']('CommentsUI');let _0x516a92,_0x6b6098,_0x1a62c1;this['_annotationViews']['has'](_0x51148b['id'])?(_0x6b6098=this['_annotationViews']['get'](_0x51148b['id']),_0x516a92=_0x6b6098['mainView']):(_0x516a92=new _0x24fc5e(_0x56e42f['locale'],_0x51148b,_0x2cec2a,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd441bf['get']('comments.editorConfig'),'licenseKey':_0xd441bf['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd441bf['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd441bf['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd441bf['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1db24c(_0xd441bf['get']('locale'),_0x56e42f['locale']),'CommentView':_0xd441bf['get']('comments')['CommentView'],'CommentsListView':_0x33d309,'CommentThreadInputView':_0x2fd4c3,'SuggestionView':_0x12aa38,'showAISource':_0xd441bf['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xd441bf['get']('trackChanges.aiAuthor'),'name':_0xd441bf['get']('trackChanges.aiAuthor')?.['name']||wt(_0x56e42f['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x516a92['suggestionView']['acceptButton']['on']('execute',()=>{_0x56e42f['editing']['view']['focus']();}),_0x516a92['suggestionView']['discardButton']['on']('execute',()=>{_0x56e42f['editing']['view']['focus']();}),_0x6b6098=_0xdb4a19['createAnnotationView'](this['editor']['locale'],_0x516a92),_0x6b6098['bind']('isDirty')['to'](_0x516a92,'isDirty'),_0x6b6098['bind']('length')['to'](_0x516a92),_0x6b6098['bind']('type')['to'](_0x516a92,'type',_0x15a401=>'suggestion-'+_0x15a401),_0x516a92['on']('escape',()=>{_0x1a62c1['fire']('escape');}),this['_annotationViews']['set'](_0x51148b['id'],_0x6b6098));const _0xb8f8fa=_0x371477['createCommentThreadController'](_0x51148b['commentThread'],_0x516a92),_0x3e58a2=new Rn(_0x56e42f,_0x51148b,_0x516a92,_0xb8f8fa),_0x438c88=_0x51148b['getAllAdjacentSuggestions']()['filter'](_0x537782=>_0x537782['isInContent']);_0x516a92['descriptionParts']=_0x56e42f['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0x438c88),this['_suggestionToController']['set'](_0x51148b,_0x3e58a2),this['_viewToController']['set'](_0x516a92,_0x3e58a2);const _0x3a8e23=()=>{const _0x47768b=[],_0x6d296d=_0x51148b['getAllAdjacentSuggestions']()['filter'](_0x1ee49c=>_0x1ee49c['isInContent']);for(const _0x4c2c4c of _0x6d296d)_0x47768b['push'](..._0x4c2c4c['getMarkers']());return _0x4fc5be(_0x56e42f['editing'],_0x47768b);};_0x1a62c1=_0xdb4a19['createAnnotation']({'view':_0x6b6098,'target':_0x3a8e23,'type':()=>'suggestion-'+_0x3e58a2['view']['type'],'isVisible':!!_0x3a8e23()}),_0x371477['_bindAnnotationToEditors'](_0x516a92,_0x1a62c1),_0xdb4a19['add'](_0x1a62c1),_0xad5b61['registerAnnotation'](_0x1a62c1);}_destroyController(_0x55ef8d){const _0x557ebf=this['editor']['plugins']['get'](_0x72b439),_0x384d40=this['editor']['plugins']['get'](_0x1be584),_0x53b6c5=this['_suggestionToController']['get'](_0x55ef8d),_0xe2edbd=_0x53b6c5['view'],_0x12da6f=_0x384d40['getByInnerView'](_0xe2edbd);_0x557ebf['_unbindEditors'](_0xe2edbd),_0x12da6f&&_0x384d40['remove'](_0x12da6f),this['_suggestionToController']['delete'](_0x55ef8d),this['_viewToController']['delete'](_0xe2edbd),_0x53b6c5['destroy']();}_updateController(_0x3f337b){if(!_0x3f337b['isInContent']||!this['_suggestionToController']['has'](_0x3f337b))return;const _0x193db4=this['editor']['plugins']['get'](ln),_0x1c3ef3=this['_suggestionToController']['get'](_0x3f337b),_0x1ed3a8=_0x3f337b['getAllAdjacentSuggestions']();_0x1c3ef3['view']['descriptionParts']=_0x193db4['descriptionFactory']['getDescriptions'](_0x1ed3a8);}destroy(){for(const _0x2aaa1c of this['_suggestionToController']['keys']())this['_destroyController'](_0x2aaa1c);for(const _0x103bcb of this['_annotationViews']['values']())_0x103bcb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0x2bfff1){return'model'in _0x2bfff1;}var wn=class extends _0x139d64{static get requires(){return[ln,Mn,_0x31d5d1];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x260243){this['editor']['plugins']['get'](ln)['adapter']=_0x260243;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0xafdcba){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0xafdcba);}getSuggestions({skipNotAttached:_0x3ad4e0=!0x1,toJSON:_0x58f557=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0x3ad4e0,'toJSON':_0x58f557});}getSuggestion(_0x40b602){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0x40b602);}};const Bn=['Pagination'];var Fn=class extends _0x139d64{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x46a1d1=this['editor'];if(_0x46a1d1['config']['define']('trackChangesData.editorCreator',_0xd6f611=>{const _0x4a5239=_0x46a1d1['model']['document']['getRootNames']()['reduce']((_0x2d4ee7,_0x504190)=>(_0x2d4ee7[_0x504190]='',_0x2d4ee7),{});return _0x46a1d1['constructor']['create'](_0x4a5239,_0xd6f611);}),'function'!=typeof _0x46a1d1['config']['get']('trackChangesData')['editorCreator'])throw new _0x228d64('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x2b3210){return Un(this['editor'],!0x0,_0x2b3210);}getDataWithDiscardedSuggestions(_0x3b66bf){return Un(this['editor'],!0x1,_0x3b66bf);}},vn=class extends _0x139d64{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19f795){super(_0x19f795),this['result']='end',_0x19f795['editing']['view']['_overlayModeHint']='auto',_0x19f795['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Dn(_0x35a916){return void 0x0!==_0x35a916['getRootsAttributes'];}async function Un(_0x176a20,_0x1160d8,_0x3dbb3b){const _0x5ef5b7=tt(_0x176a20,Bn);if(_0x5ef5b7['plugins']['push'](ln,vn),Dn(_0x176a20)){_0x5ef5b7['roots']=Object['create'](null);for(const _0x188453 of _0x176a20['model']['document']['getRootNames']())_0x5ef5b7['roots'][_0x188453]={'modelAttributes':_0x176a20['getRootAttributes'](_0x188453)};}const _0x532986=document['createDocumentFragment'](),_0x4ac998=_0x176a20['config']['get']('trackChangesData')['editorCreator'],_0x68f5f4=await _0x4ac998(_0x5ef5b7,()=>function(_0x3de9a3){const _0x44bfae=document['createElement']('div');return _0x3de9a3['appendChild'](_0x44bfae),_0x44bfae;}(_0x532986));!function(_0x24b17f,_0x37f472){const _0x15227f=_0x24b17f['model']['document']['getRootNames']()['reduce']((_0x66ee35,_0x3e4a7d)=>(_0x66ee35[_0x3e4a7d]=_0x24b17f['data']['get']({'rootName':_0x3e4a7d}),_0x66ee35),{}),_0x15b8da=_0x24b17f['plugins']['get']('Users')['users']['map'](_0x2725e6=>({'id':_0x2725e6['id'],'name':_0x2725e6['name']})),_0x50ac42=_0x24b17f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd9ac6c=_0x24b17f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24e152=_0x37f472['plugins']['get']('Users'),_0x32f42e=_0x37f472['plugins']['get']('TrackChangesEditing'),_0x4107f1=_0x37f472['plugins']['get']('CommentsRepository');for(const _0x108b40 of _0x4107f1['getCommentThreads']())_0x108b40['remove']();for(const _0x3a6b9d of _0x15b8da)_0x24e152['getUser'](_0x3a6b9d['id'])||_0x24e152['addUser'](_0x3a6b9d);_0x24e152['me']||_0x24e152['useAnonymousUser']();for(const _0x43bebe of _0xd9ac6c)_0x4107f1['addCommentThread'](_0x43bebe);for(const _0x53c6ff of _0x50ac42)_0x32f42e['addSuggestionData'](_0x53c6ff);_0x37f472['data']['set'](_0x15227f);}(_0x176a20,_0x68f5f4),_0x68f5f4['execute'](_0x1160d8?'acceptAllSuggestions':'discardAllSuggestions');const _0x294bcf=Dn(_0x68f5f4)?_0x68f5f4['getFullData'](_0x3dbb3b):_0x68f5f4['data']['get'](_0x3dbb3b);return await _0x68f5f4['destroy'](),_0x294bcf;}var Pn=class extends _0x2195ca{options;constructor(_0x2caa1b,_0x176d81){super(_0x2caa1b),this['options']=_0x176d81,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(_0x292f2b,_0x49e826){if(!this['element'])return;const _0x497c3a=[];for(const [_0x166716,_0x3d7da7]of _0x292f2b){const _0x8fd02b=document['createElement']('div');_0x8fd02b['setAttribute']('data-ck-root-name',_0x166716),_0x8fd02b['className']=_0x3d7da7['classes']+'\x20ck-track-changes-preview__root-container',_0x8fd02b['innerHTML']=_0x366f89(_0x3d7da7['content']),_0x497c3a['push'](_0x8fd02b);}_0x49e826(this['element'],_0x497c3a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x310ec9{constructor(_0x29b61b){super(_0x29b61b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x2f441d=this['editor'],_0x503ec0=_0x2f441d['locale'],_0x44d089=_0x2f441d['plugins']['get']('Dialog');let _0x398e08;const _0x198f3b=function(_0x5dfa7c){const _0x3767a3={};if('editables'in _0x5dfa7c['ui']['view']){for(const [_0x1d9bd9,_0x2c8d1b]of Object['entries'](_0x5dfa7c['ui']['view']['editables']))_0x3767a3[_0x1d9bd9]=_0x2c8d1b['element'];}else _0x3767a3[_0x5dfa7c['model']['document']['getRootNames']()[0x0]]=_0x5dfa7c['ui']['view']['editable']['element'];return _0x3767a3;}(_0x2f441d),_0x4109f9=function(_0x5189ed){let _0x311aa=0x0;for(const _0x3dc463 of Object['values'](_0x5189ed))_0x311aa=Math['max'](_0x311aa,_0x3dc463['getBoundingClientRect']()['width']);let _0x1f8c24=0x0;for(const _0x13eebf of Object['values'](_0x5189ed))_0x1f8c24+=_0x13eebf['getBoundingClientRect']()['height'];const _0x1f9c09=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x311aa,'height':Math['min'](_0x1f8c24,_0x1f9c09)};}(_0x198f3b);_0x44d089['show']({'id':'finalContentPreview','title':wt(_0x503ec0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x503ec0,{'dialogRects':_0x4109f9}),'onHide':()=>{_0x398e08['destroy']();},'onShow':()=>{_0x2f441d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x51ea86=>{const _0x48a1cc=this['_standarizeRootsData'](_0x51ea86,_0x2f441d,_0x198f3b);_0x44d089['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x48a1cc,_0x2f441d['config']['get']('trackChanges.preview.renderFunction'));}),_0x398e08=new _0x3999ae(_0x503ec0,[_0x44d089['view']]),_0x398e08['attachToDom'](_0x2f441d['ui']['view']['body']['mountTarget']),_0x398e08['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2f441d['once']('destroy',()=>{_0x398e08['destroy']();});const _0x5f5b91=_0x44d089['view']['headerView']['class'];_0x44d089['view']['headerView']['class']=_0x5f5b91?_0x5f5b91+'\x20ck-reset_all':'ck-reset_all',_0x44d089['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x44d089['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3ffcf6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2d94e8=_0x3ffcf6['previewMode'],_0x547caa={};if('$labels'===_0x2d94e8){for(const _0x4f4a45 of _0x3ffcf6['getMergeFieldsIds']())_0x547caa[_0x4f4a45]=_0x3ffcf6['getLabel'](_0x4f4a45)||_0x4f4a45;}else{const _0x54decf='$defaultValues'===_0x2d94e8?_0x3ffcf6['getDefaultValues']():_0x3ffcf6['getDataSetValues'](_0x2d94e8,!0x0);for(const _0x2d5977 of Object['entries'](_0x54decf)){const [_0x371e20,_0x46ab36]=_0x2d5977;_0x547caa[_0x371e20]=null!==_0x46ab36?_0x46ab36:_0x3ffcf6['getLabel'](_0x371e20)||_0x371e20;}}return{'mergeFieldsData':_0x547caa};}_standarizeRootsData(_0x31b809,_0x15777c,_0xa5080c){let _0x1edee2;_0x1edee2='string'==typeof _0x31b809?{[_0x15777c['model']['document']['getRootNames']()[0x0]]:_0x31b809}:_0x31b809;const _0x198f40=this['_fixMediaEmbeds'](_0x1edee2,_0x15777c);return function(_0x4f3be9,_0xaefb4c){for(const [_0x39ca6a,_0x164de2]of _0x4f3be9)_0x164de2['classes']=_0xaefb4c[_0x39ca6a]['classList']['value']['replace']('ck-focused','');return _0x4f3be9;}(this['_sortRoots'](_0x15777c)['reduce']((_0x5b9a37,_0x33c0d0)=>(_0x5b9a37['push']([_0x33c0d0,{'content':_0x198f40[_0x33c0d0],'classes':''}]),_0x5b9a37),[]),_0xa5080c);}['_fixMediaEmbeds'](_0x50109a,_0xe0bc09){if(!_0xe0bc09['plugins']['has']('MediaEmbedEditing'))return _0x50109a;const _0x50688f=_0xe0bc09['plugins']['get']('MediaEmbedEditing');for(const [_0x43749c,_0x5f4f4f]of Object['entries'](_0x50109a)){const _0x57df0d=document['createElement']('div');_0x57df0d['innerHTML']=_0x366f89(_0x5f4f4f),_0x57df0d['querySelectorAll']('figure.media')['forEach'](_0x45a406=>{const _0x581fa4=_0x45a406['querySelector']('oembed');if(_0x581fa4){const _0x1f2434=_0x581fa4['getAttribute']('url');if(_0x1f2434){const _0x262a9f=_0x50688f['registry']['getMediaViewElement'](new ct(_0xe0bc09['editing']['view']['document']),_0x1f2434,{'elementName':'','renderForEditingView':!0x0}),_0x5cd3ca=document['createElement']('div');_0x5cd3ca['classList']['add']('ck-media__wrapper'),_0x262a9f['render'](_0x5cd3ca,_0xe0bc09['editing']['view']['domConverter']),_0x581fa4['replaceWith'](_0x5cd3ca);}}}),_0x50109a[_0x43749c]=_0x57df0d['innerHTML'];}return _0x50109a;}_sortRoots(_0x5dcb4a){if(!function(_0x9646a3){return void 0x0!==_0x9646a3['getRootsAttributes'];}(_0x5dcb4a))return _0x5dcb4a['model']['document']['getRootNames']();const _0x5df0ac=[],_0x55ab32=new Map();for(const _0x173a02 of _0x5dcb4a['model']['document']['getRootNames']()){const _0x4f779d=_0x5dcb4a['editing']['view']['getDomRoot'](_0x173a02)['getClientRects']()['item'](0x0);_0x5df0ac['push'](_0x173a02),_0x55ab32['set'](_0x173a02,_0x4f779d);}return _0x5df0ac['sort']((_0x5150bf,_0x3cd9d4)=>{const _0x4059b7=_0x55ab32['get'](_0x5150bf),_0x327376=_0x55ab32['get'](_0x3cd9d4);return _0x4059b7['y']-_0x327376['y']||_0x4059b7['x']-_0x327376['x'];}),_0x5df0ac;}},Gn=class extends _0x139d64{static get requires(){return[Fn,_0x189e12];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x555ee0){super(_0x555ee0),_0x555ee0['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x555ee0['config']['define']('trackChanges.preview.renderFunction',(_0x1b4e9c,_0x2a19da)=>{for(const _0x2739f8 of _0x2a19da)_0x1b4e9c['appendChild'](_0x2739f8);});}};export{Lt as AcceptSuggestionCommand,Nn as BaseSuggestionThreadView,It as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,St as ExecuteOnSelectedSuggestionsCommand,xn as PreviewFinalContentCommand,Ot as Suggestion,Bt as SuggestionDescriptionFactory,yn as SuggestionThreadView,Sn as SuggestionView,wn as TrackChanges,pt as TrackChangesCommand,Fn as TrackChangesData,vn as TrackChangesDataGetter,ln as TrackChangesEditing,Gn as TrackChangesPreview,Mn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x3f1090,PendingActions as _0x36758c,Plugin as _0x183f88}from'@ckeditor/ckeditor5-core';import{Annotations as _0x4b244e,Comments as _0x2c0c25,CommentsRepository as _0x5197b4,EditorAnnotations as _0x36e8c7}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x4a2c66,Collection as _0x53037b,FocusTracker as _0x541fa6,KeystrokeHandler as _0x12a3e0,ObservableMixin as _0x5e7ece,getEnvKeystrokeText as _0x593510,insertToPriorityArray as _0x3f5fbc,logWarning as _0x5600d2,priorities as _0x4d85be,trustedHtml as _0x22f8b0,uid as _0x1172bd}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x4a5400,IconCancel as _0x5cb59d,IconCheck as _0x5378a4,IconSparkle as _0x1e0692,IconTrackChanges as _0x104355}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x64505f,Dialog as _0x17b624,FocusCycler as _0x23b8d0,ListSeparatorView as _0x518678,MenuBarMenuListItemButtonView as _0x1e5915,MenuBarMenuListItemView as _0x417d65,MenuBarMenuListView as _0x4d394f,MenuBarMenuView as _0x3b404a,SplitButtonView as _0x100bf8,UIModel as _0x2ace52,View as _0x11cf3b,ViewCollection as _0x2f61b8,_getLocalizedColorName as _0x5edaf3,addListToDropdown as _0x1c31eb,createDropdown as _0x57750a,normalizeColorOptions as _0x87e827}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x1ebf89,CollaborationUserColor as _0x1d4191,FOCUS_ANNOTATION_KEYSTROKE as _0x3aea87,LateFocusButtonView as _0xcbb2d1,PillView as _0x5d0613,SuggestionsConversion as _0x131b84,User as _0x3d00b7,UserView as _0x851ae0,Users as _0xd2b39a,fixElementSuggestionRange as _0x147493,getAllMarkersDomElementsSorted as _0x486d5,getDateTimeFormatter as _0xd57683,hashObject as _0x755104,isInvalidAttributeOperation as _0xb57974,sanitizeEditorConfig as tt,setupThreadKeyboardNavigation as et,splitSuggestionMarkerName as nt,surroundingMarkersDetector as it,trimHtml as st}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as rt,ModelLivePosition as ot,ModelLiveRange as at,ViewDowncastWriter as ct}from'@ckeditor/ckeditor5-engine';import{cloneDeep as lt,isEqual as ut,omit as dt,set as ht,unset as gt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ft,ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';import{Delete as Et,Input as Tt}from'@ckeditor/ckeditor5-typing';import{Enter as _t}from'@ckeditor/ckeditor5-enter';var pt=class extends _0x3f1090{['_enabledCommands'];constructor(_0x3dd4ae,_0x472aea){super(_0x3dd4ae),this['_enabledCommands']=_0x472aea,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 _0x13a2f1 of this['editor']['commands']['commands']())_0x13a2f1['affectsData']&&!this['_enabledCommands']['has'](_0x13a2f1)&&_0x13a2f1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4a583e of this['editor']['commands']['commands']())_0x4a583e['affectsData']&&!this['_enabledCommands']['has'](_0x4a583e)&&_0x4a583e['clearForceDisabled']('TrackChangesCommand');}},Lt=class extends _0x3f1090{_suggestions;constructor(_0x4b1c06,_0x5cf656){super(_0x4b1c06),this['_suggestions']=_0x5cf656,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1a9181){const _0x4fd601=this['_suggestions']['get'](_0x1a9181);if(!_0x4fd601)throw new _0x4a2c66('track-changes-accept-suggestion-not-found',this);const _0x254338=_0x4fd601['getRanges']();this['editor']['model']['canEditAt'](_0x254338)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4fd601);}},It=class extends _0x3f1090{_suggestions;constructor(_0x46bb56,_0x3a617b){super(_0x46bb56),this['_suggestions']=_0x3a617b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x11ac62){const _0x51ef9e=this['_suggestions']['get'](_0x11ac62);if(!_0x51ef9e)throw new _0x4a2c66('track-changes-discard-suggestion-not-found',this);const _0x2bae8e=_0x51ef9e['getRanges']();this['editor']['model']['canEditAt'](_0x2bae8e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x51ef9e);}};function At(_0x10b998,_0x142dd9){let _0x22c34e='';return _0x22c34e+=_0x10b998['split']('*')['map']((_0x3ca84d,_0x45d151)=>_0x45d151%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+bt(_0x3ca84d)+'</span>':bt(_0x3ca84d))['join'](''),_0x142dd9&&(_0x22c34e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x142dd9['value']+'\x22\x20title=\x22'+_0x142dd9['title']+'\x22></span>'),_0x22c34e;}function bt(_0x2f1dee){const _0x38f721=document['createElement']('span');return _0x38f721['innerText']=_0x2f1dee,_0x38f721['innerHTML'];}function Ct(_0x5aef7f){return _0x5aef7f['sort']((_0x10ed52,_0x37232c)=>'attribute'===_0x10ed52['type']&&'attribute'!==_0x37232c['type']?-0x1:'attribute'!==_0x10ed52['type']&&'attribute'===_0x37232c['type']?0x1:'deletion'==_0x10ed52['type']&&'deletion'!=_0x37232c['type']?-0x1:'deletion'!=_0x10ed52['type']&&'deletion'==_0x37232c['type']?0x1:0x0);}function kt(_0x5bb140,_0x3ed65f){let _0x10ca1a,_0x514c65=0x0;const _0xb62ea0=[],_0x5aabeb=_0x3ed65f['schema'];for(;_0x514c65<_0x5bb140['length'];){const _0x3abc9e=_0x5bb140[_0x514c65],_0x20de38=_0x5bb140[_0x514c65+0x1];_0x10ca1a||(_0x10ca1a=_0x3ed65f['createPositionBefore'](_0x3abc9e)),Rt(_0x3ed65f,_0x3abc9e,_0x20de38)||(_0xb62ea0['push'](_0x3ed65f['createRange'](_0x10ca1a,_0x5aabeb['isObject'](_0x3abc9e)?_0x3ed65f['createPositionAfter'](_0x3abc9e):_0x3ed65f['createPositionAt'](_0x3abc9e,'end'))),_0x10ca1a=null),_0x514c65++;}return _0xb62ea0;}function Rt(_0x44c1cf,_0x272494,_0x38e7a4){if(!_0x38e7a4)return!0x1;const _0x333550=_0x44c1cf['createPositionAfter'](_0x272494),_0x579b68=_0x44c1cf['createPositionBefore'](_0x38e7a4);return _0x333550['isTouching'](_0x579b68);}function Nt(_0x48dc0c,_0x30c0d5,_0x23290e){for(;_0x23290e['length'];){const _0x2fe286=_0x23290e['splice'](0x0,0x64);_0x48dc0c['change'](()=>{for(const _0x4a3ce4 of _0x2fe286)_0x4a3ce4['isInContent']&&_0x30c0d5['execute'](_0x4a3ce4['id']);});}}var yt=class extends _0x3f1090{['_command'];_suggestions;constructor(_0x4c83f0,_0x46b1c1,_0x1e221d){super(_0x4c83f0),this['_command']=_0x46b1c1,this['_suggestions']=_0x1e221d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3bd073=Array['from'](this['_suggestions']['values']())['some'](_0x293ce0=>_0x293ce0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3bd073;}execute(){const _0x543ec7=Ct(Array['from'](this['_suggestions']['values']()));for(const _0x5e507a of _0x543ec7){const _0x244c42=_0x5e507a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x244c42))return;}Nt(this['editor']['model'],this['_command'],_0x543ec7);}},St=class extends _0x3f1090{['_command'];_suggestions;_selectedSuggestions;constructor(_0x4ce6d2,_0x504e71,_0x26355b){super(_0x4ce6d2),this['_command']=_0x504e71,this['_suggestions']=_0x26355b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1e50b1=this['editor']['model']['document']['selection'],_0x40dc27=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3d771a,_0x12e049){const _0x36f9bc=Array['from'](_0x3d771a['getRanges']()),_0x2d98ee=new Set();for(const _0x57feae of _0x12e049)if(_0x57feae['isInContent']){for(const _0x32edf7 of _0x36f9bc)for(const _0x3431ec of _0x57feae['getRanges']())(_0x32edf7['isIntersecting'](_0x3431ec)||_0x3d771a['isCollapsed']&&!_0x57feae['isMultiRange']&&_0x57feae['next']&&_0x3431ec['end']['isTouching'](_0x32edf7['start']))&&_0x2d98ee['add'](_0x57feae);}return _0x2d98ee;}(_0x1e50b1,_0x40dc27),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x5787af=Ct(Array['from'](this['_selectedSuggestions']));for(const _0x175dc1 of _0x5787af){const _0x38d8dc=_0x175dc1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x38d8dc))return;}Nt(this['editor']['model'],this['_command'],_0x5787af);}};const Mt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5e7ece();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x350b1b,_0x9e0e0){super(),this['id']=_0x9e0e0['id'],this['type']=_0x9e0e0['type'],this['subType']=_0x9e0e0['subType']||null,this['author']=_0x9e0e0['author'],this['creator']=_0x9e0e0['creator']||_0x9e0e0['author'],this['data']=null,this['_originalSuggestionId']=_0x9e0e0['originalSuggestionId']||null,this['_model']=_0x350b1b,this['_onAccept']=_0x9e0e0['onAccept'],this['_onDiscard']=_0x9e0e0['onDiscard'],this['_onAttributesChange']=_0x9e0e0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x9e0e0['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x4afa00=this;for(;_0x4afa00['previous'];)_0x4afa00=_0x4afa00['previous'];return _0x4afa00;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x30dec9){this['_markerNames']['add'](_0x30dec9);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x1ff40b=>this['_model']['markers']['get'](_0x1ff40b))['filter'](_0xf873c6=>_0xf873c6);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x250ce8=>{for(const _0x58a538 of this['getMarkers']())_0x250ce8['removeMarker'](_0x58a538);}),this['_markerNames']['clear']();}['removeMarker'](_0x1753ed){this['_model']['change'](_0x5a60ea=>{_0x5a60ea['removeMarker'](_0x1753ed);}),this['_markerNames']['delete'](_0x1753ed);}['addRange'](_0x1d6364){const _0xc81652='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xc81652),this['_model']['change'](_0x5e22d6=>{_0x5e22d6['addMarker'](_0xc81652,{'range':_0x1d6364,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x545730){for(const _0x106c70 of this['getRanges']())if(_0x106c70['isIntersecting'](_0x545730))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0xf16b87=>_0xf16b87['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x190ae3,_0x3cdb90)=>[..._0x190ae3,..._0x3cdb90['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x43e3c1=this['getRanges']();if(0x1!=_0x43e3c1['length'])return null;const _0x1f8651=_0x43e3c1[0x0],_0x5e1742=_0x1f8651['start']['nodeAfter'],_0x13751d=_0x1f8651['end']['nodeBefore'];return _0x5e1742 instanceof rt?_0x5e1742!=_0x13751d?null:_0x5e1742: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 _0xf8eade=[];let _0x200fda=this['head'];for(;_0x200fda;)_0xf8eade['push'](_0x200fda),_0x200fda=_0x200fda['next'];return _0xf8eade;}setAttribute(_0x24178b,_0xa8e7d6){const _0x555bb4=lt(this['attributes']);ht(_0x555bb4,_0x24178b,_0xa8e7d6),ut(_0x555bb4,this['attributes'])||(this['attributes']=_0x555bb4,this['_onAttributesChange'](_0x555bb4));}removeAttribute(_0x598e7d){const _0x55138f=lt(this['attributes']);gt(_0x55138f,_0x598e7d),ut(_0x55138f,this['attributes'])||(this['attributes']=_0x55138f,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 _0x1172bd()['substr'](0x1,0x5);}};function wt(_0xd86e78,_0x28d511,_0x42696f){const _0xb771e8=_0xd86e78['t'],t=_0xd86e78['t'];switch(_0x28d511){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',_0x42696f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x42696f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x42696f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x42696f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x42696f);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',_0x42696f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x42696f);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',_0x42696f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x42696f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x42696f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x42696f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x42696f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x42696f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x42696f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x42696f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x42696f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x42696f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x42696f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x42696f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x42696f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x42696f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x42696f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x42696f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x42696f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x42696f);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'},_0x42696f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x42696f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x42696f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x42696f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x42696f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x42696f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x42696f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x42696f);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x42696f);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x42696f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x42696f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x42696f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x42696f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x42696f);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x42696f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x42696f);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'},_0x42696f);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x42696f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x42696f);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'},_0x42696f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x42696f);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'},_0x42696f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x42696f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x42696f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x42696f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x42696f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x42696f);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'},_0x42696f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x42696f);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0xb771e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x42696f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xb771e8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x42696f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x42696f);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'},_0x42696f);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'},_0x42696f);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'},_0x42696f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0x28d511;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x2d5869,_0x261c6d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2d5869,this['_locale']=_0x261c6d;}getDescriptions(_0x3da9d3){const _0x249da7=[],_0x4dc93=new Set(),_0x5b392d=new Set();for(let _0x4b3886=0x0;_0x4b3886<_0x3da9d3['length'];_0x4b3886++){const _0x3de273=_0x3da9d3[_0x4b3886];if(!_0x3de273['isInContent'])continue;const _0x2335f6=this['_handleCustomCallbackDescription'](_0x3de273);if(_0x2335f6){if(null!=_0x3de273['subType']){if(_0x4dc93['has'](_0x3de273['subType']))continue;_0x4dc93['add'](_0x3de273['subType']);}_0x249da7['push'](_0x2335f6);}else{if('attribute'==_0x3de273['type']){const _0x566447=_0x3de273['data']['key'];if(_0x5b392d['has'](_0x566447))continue;_0x5b392d['add'](_0x3de273['data']['key']),'$elementName'==_0x566447?this['_handleRenameSuggestionDescription'](_0x249da7,_0x3de273):this['_handleAttributeSuggestionDescription'](_0x249da7,_0x3de273);continue;}'insertion'!=_0x3de273['type']&&'deletion'!=_0x3de273['type']||this['_handleInsertRemoveSuggestionDescription'](_0x249da7,_0x3de273,_0x3da9d3[_0x4b3886+0x1]);}}return this['_resolveDescriptionItems'](_0x249da7);}registerDescriptionCallback(_0x38f12d){this['_customCallbacks']['push'](_0x38f12d);}registerElementLabel(_0x8e0fea,_0x53ac18,_0x2ea0b4=_0x4d85be['normal']){'function'==typeof _0x8e0fea?_0x3f5fbc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x8e0fea,'label':_0x53ac18,'priority':_0x2ea0b4}):this['_itemLabels']['set'](_0x8e0fea,_0x53ac18);}registerAttributeLabel(_0x3458e7,_0x4f1d2f){this['_attributeLabels']['set'](_0x3458e7,_0x4f1d2f);}getItemLabel(_0x493d7f,_0x2c1f76=0x1){let _0x35072c;for(const _0x2b313f of this['_itemLabelsCallbacks'])if(_0x2b313f['matchingCallback'](_0x493d7f)){_0x35072c=_0x2b313f['label'];break;}return _0x35072c||(_0x35072c=this['_itemLabels']['get'](_0x493d7f['name'])),_0x35072c?_0x35072c(_0x2c1f76):0x1!==_0x2c1f76?_0x2c1f76+'\x20'+_0x493d7f['name']+'s':''+_0x493d7f['name'];}_addDescriptionItems(_0x2f3e52,_0x2e4ba9){const _0x43d7e5=_0x2e4ba9['getFirstRange']()['getWalker'](),_0x48b9d5='insertion'==_0x2e4ba9['type']?'add':'remove';for(const _0x5c7ecf of _0x43d7e5){const _0xea308=_0x5c7ecf['item'],_0x4d507c=_0x2f3e52[_0x2f3e52['length']-0x1];if(_0xea308['is']('$textProxy'))_0x4d507c&&_0x4d507c['type']['indexOf']('Container')>-0x1&&_0x2f3e52['pop'](),_0x4d507c&&'text'==_0x4d507c['type']?_0x4d507c[_0x48b9d5]+=_0xea308['data']:_0x2f3e52['push']({'type':'text','add':'add'==_0x48b9d5?_0xea308['data']:'','remove':'remove'==_0x48b9d5?_0xea308['data']:''});else{if(this['_schema']['isObject'](_0xea308)){const _0x1b2f32=_0xea308;if(_0x4d507c&&_0x4d507c['type']['indexOf']('Container')>-0x1&&_0x2f3e52['pop'](),'elementEnd'==_0x5c7ecf['type'])continue;_0x4d507c&&_0x4d507c['type']==_0x48b9d5+'Object'&&_0x4d507c['element']['name']==_0x1b2f32['name']?_0x4d507c['quantity']++:_0x2f3e52['push']({'type':_0x48b9d5+'Object','element':_0x1b2f32,'quantity':0x1}),_0x43d7e5['skip'](_0xd7bbac=>!('elementEnd'==_0xd7bbac['type']&&_0xd7bbac['item']==_0xea308));}else{if(this['_schema']['checkChild'](_0xea308,'$text')||_0xea308['is']('element','softBreak')){const _0x50de62=_0xea308;if('add'==_0x48b9d5&&'elementStart'==_0x5c7ecf['type']||'remove'==_0x48b9d5&&'elementEnd'==_0x5c7ecf['type'])continue;if(_0x4d507c&&-0x1==_0x4d507c['type']['indexOf']('Container')){'text'==_0x4d507c['type']&&(_0x4d507c[_0x48b9d5]+='\x0a');continue;}let _0x4f787b;if(_0x4f787b='add'==_0x48b9d5?_0x50de62['nextSibling']&&!this['_schema']['isObject'](_0x50de62['nextSibling'])?_0x50de62['nextSibling']:null:_0x50de62['previousSibling']&&!this['_schema']['isObject'](_0x50de62['previousSibling'])?_0x50de62['previousSibling']:null,_0x50de62['isEmpty']||_0x4f787b&&_0x4f787b['isEmpty']){const _0x1971a0=_0x4f787b&&_0x4f787b['isEmpty']?_0x4f787b:_0x50de62;_0x4d507c&&_0x4d507c['type']==_0x48b9d5+'EmptyContainer'&&_0x4d507c['element']['name']==_0x1971a0['name']?_0x4d507c['quantity']++:_0x2f3e52['push']({'type':_0x48b9d5+'EmptyContainer','element':_0x1971a0,'quantity':0x1});}else _0x2f3e52['push']({'type':_0x48b9d5+'Container','element':_0x50de62});}}}}}_resolveDescriptionItems(_0x373e4a){const _0xd8bf79=this['_locale'],_0x4005eb=[],_0x552a7f=[],_0x545ee4=[];for(const _0x5d681e of _0x373e4a)switch(_0x5d681e['type']){case'text':if(_0x5d681e['add']=_0x5d681e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5d681e['remove']=_0x5d681e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5d681e['add']&&''!=_0x5d681e['remove']){_0x4005eb['push']({'type':'replace','content':wt(_0xd8bf79,'REPLACE_TEXT',['\x22'+_0x5d681e['remove']+'\x22','\x22'+_0x5d681e['add']+'\x22'])});continue;}if(null!=_0x5d681e['add']['match'](/^ +$/)){_0x4005eb['push']({'type':'insertion','content':wt(_0xd8bf79,'*Insert:*\x20%0',wt(_0xd8bf79,'ELEMENT_SPACE',_0x5d681e['add']['length']))});continue;}if(null!=_0x5d681e['remove']['match'](/^ +$/)){_0x4005eb['push']({'type':'deletion','content':wt(_0xd8bf79,'*Remove:*\x20%0',wt(_0xd8bf79,'ELEMENT_SPACE',_0x5d681e['remove']['length']))});continue;}if(''!=_0x5d681e['add']){_0x4005eb['push']({'type':'insertion','content':wt(_0xd8bf79,'*Insert:*\x20%0','\x22'+_0x5d681e['add']+'\x22')});continue;}_0x4005eb['push']({'type':'deletion','content':wt(_0xd8bf79,'*Remove:*\x20%0','\x22'+_0x5d681e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4005eb['push']({'type':'insertion','content':wt(_0xd8bf79,'*Insert:*\x20%0',this['getItemLabel'](_0x5d681e['element'],_0x5d681e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4005eb['push']({'type':'deletion','content':wt(_0xd8bf79,'*Remove:*\x20%0',this['getItemLabel'](_0x5d681e['element'],_0x5d681e['quantity']))});continue;case'addContainer':_0x4005eb['push']({'type':'insertion','content':wt(_0xd8bf79,'*Split:*\x20%0',this['getItemLabel'](_0x5d681e['element'],_0x5d681e['quantity']))});continue;case'removeContainer':_0x4005eb['push']({'type':'deletion','content':wt(_0xd8bf79,'*Merge:*\x20%0',this['getItemLabel'](_0x5d681e['element'],_0x5d681e['quantity']))});continue;case'addFormat':_0x552a7f['push'](_0x5d681e['key']);continue;case'removeFormat':_0x545ee4['push'](_0x5d681e['key']);continue;default:_0x4005eb['push'](_0x5d681e);}if(_0x552a7f['length']){const _0x2ee5f5=_0x552a7f['map'](_0x4b36e1=>this['_attributeLabels']['has'](_0x4b36e1)?this['_attributeLabels']['get'](_0x4b36e1):_0x4b36e1)['join'](',\x20');_0x4005eb['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x2ee5f5)});}if(_0x545ee4['length']){const _0x3946a3=_0x545ee4['map'](_0x490b76=>this['_attributeLabels']['has'](_0x490b76)?this['_attributeLabels']['get'](_0x490b76):_0x490b76)['join'](',\x20');_0x4005eb['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0x3946a3)});}return _0x4005eb;}_handleCustomCallbackDescription(_0x52aa63){for(const _0x57a5e8 of this['_customCallbacks']){const _0xe310c5=_0x57a5e8(_0x52aa63);if(_0xe310c5&&'type'in _0xe310c5)return _0xe310c5;}}_handleAttributeSuggestionDescription(_0x54d416,_0x5404ea){const _0x2b57d9=_0x5404ea['data'],_0x408a7e=void 0x0===_0x2b57d9['newValue']?'removeFormat':'addFormat';_0x54d416['push']({'type':_0x408a7e,'key':_0x2b57d9['key']});}_handleRenameSuggestionDescription(_0x14d409,_0x59b4cd){_0x14d409['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x59b4cd['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x1253cc,_0x4e49da,_0x411db0){if(this['_addDescriptionItems'](_0x1253cc,_0x4e49da),_0x411db0&&_0x411db0['getFirstRange']()&&!_0x4e49da['getFirstRange']()['end']['isEqual'](_0x411db0['getFirstRange']()['start'])){const _0x2a14c6=_0x1253cc[_0x1253cc['length']-0x1],_0xa02118='insertion'==_0x4e49da['type']?'add':'remove';_0x2a14c6&&'text'==_0x2a14c6['type']&&(_0x2a14c6[_0xa02118]+='\x0a');}}},Ft=class extends _0x183f88{afterInit(){const _0x543447=this['editor'],_0x1714f4=_0x543447['plugins']['get']('TrackChangesEditing');_0x543447['commands']['get']('showAIAssistant')&&_0x1714f4['enableCommand']('showAIAssistant');}},vt=class extends _0x183f88{afterInit(){const _0x4b214c=this['editor'],_0xee8ea9=_0x4b214c['plugins']['get']('TrackChangesEditing');_0x4b214c['commands']['get']('toggleAi')&&_0xee8ea9['enableCommand']('toggleAi');}},Dt=class extends _0x183f88{afterInit(){const _0x3a1be3=this['editor'],_0xcaacfc=_0x3a1be3['plugins']['get']('TrackChangesEditing');_0x3a1be3['commands']['get']('aiQuickAction')&&_0xcaacfc['enableCommand']('aiQuickAction');}},Ut=class extends _0x183f88{afterInit(){const _0x218c8f=this['editor'],_0x344b37=_0x218c8f['locale'];if(!_0x218c8f['plugins']['has']('AlignmentEditing'))return;const _0x38a5ed=_0x218c8f['plugins']['get']('TrackChangesEditing');_0x38a5ed['enableDefaultAttributesIntegration']('alignment'),_0x38a5ed['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x344b37,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x33f420=this['editor'],_0x5ed199=_0x33f420['locale'];_0x33f420['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ed83b=>{if('formatBlock'!=_0x1ed83b['type'])return;const {data:_0x29b7cd}=_0x1ed83b;if(_0x29b7cd&&'alignment'==_0x29b7cd['commandName']){const _0x5014c5=_0x29b7cd['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x5ed199,'*Format:*\x20%0',function(_0x34ba3a){switch(_0x34ba3a){case'left':return wt(_0x5ed199,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x5ed199,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x5ed199,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x5ed199,'FORMAT_JUSTIFY_TEXT');}}(_0x5014c5))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x183f88{afterInit(){const _0x408d4a=this['editor'],_0x1e6e43=_0x408d4a['plugins']['get']('TrackChangesEditing'),_0x1868b7=_0x408d4a['locale'];for(const _0x2a2d9b of Pt){if(!_0x408d4a['plugins']['has'](_0x2a2d9b))continue;const _0x3b1fe6=_0x2a2d9b['slice'](0x0,-0x7)['toLowerCase'](),_0x15ebe1='FORMAT_'+_0x3b1fe6['toUpperCase']();_0x1e6e43['enableDefaultAttributesIntegration'](_0x3b1fe6),_0x1e6e43['descriptionFactory']['registerAttributeLabel'](_0x3b1fe6,wt(_0x1868b7,_0x15ebe1));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4eea9=this['editor'],_0xccc2d4=_0x4eea9['locale'],_0x8896bd=_0x4eea9['plugins']['get']('TrackChangesEditing');function _0xf353f5(_0x3f2c9d,_0x1eee6d){_0x8896bd['descriptionFactory']['registerDescriptionCallback'](_0x306f9e=>{if('formatInline'!=_0x306f9e['type'])return;const {data:_0x2bc6d0}=_0x306f9e;return _0x2bc6d0&&_0x2bc6d0['commandName']===_0x3f2c9d?_0x2bc6d0['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xccc2d4,'*Format:*\x20%0',_0x1eee6d)}:{'type':'format','content':wt(_0xccc2d4,'*Remove\x20format:*\x20%0',_0x1eee6d)}:void 0x0;});}_0xf353f5('bold',wt(_0xccc2d4,'FORMAT_BOLD')),_0xf353f5('italic',wt(_0xccc2d4,'FORMAT_ITALIC')),_0xf353f5('underline',wt(_0xccc2d4,'FORMAT_UNDERLINE')),_0xf353f5('code',wt(_0xccc2d4,'FORMAT_CODE')),_0xf353f5('strikethrough',wt(_0xccc2d4,'FORMAT_STRIKETHROUGH')),_0xf353f5('subscript',wt(_0xccc2d4,'FORMAT_SUBSCRIPT')),_0xf353f5('superscript',wt(_0xccc2d4,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x183f88{afterInit(){const _0x27e218=this['editor'],_0x174ba1=_0x27e218['locale'];if(!_0x27e218['plugins']['has']('BlockQuoteEditing'))return;const _0x3ea5b0=_0x27e218['plugins']['get']('TrackChangesEditing'),_0x296035=this['editor']['commands']['get']('blockQuote');_0x3ea5b0['enableCommand']('blockQuote',(_0x44e3ae,_0x405bdb={})=>{const _0x508d17=this['editor']['model']['document']['selection'],_0x33d2b5=_0x405bdb&&void 0x0!==_0x405bdb['forceValue']?_0x405bdb['forceValue']:!_0x296035['value'];let _0x5667a6=[];if(_0x33d2b5){const _0x2e30e7=Array['from'](_0x508d17['getSelectedBlocks']())['filter'](_0x28f73b=>Ht(_0x28f73b)||function(_0xf59ff2,_0x2a81eb){const _0x219261=_0x2a81eb['createContext'](_0xf59ff2['parent']);return!!_0x2a81eb['checkChild'](_0x219261,'blockQuote')&&!!_0x2a81eb['checkChild'](_0x219261['push']('blockQuote'),_0xf59ff2);}(_0x28f73b,this['editor']['model']['schema']));_0x5667a6=kt(_0x2e30e7,_0x27e218['model']);}else{const _0x1a31c0=Array['from'](_0x508d17['getSelectedBlocks']())['filter'](_0x3cc560=>Ht(_0x3cc560));_0x5667a6=kt(_0x1a31c0,_0x27e218['model']);}_0x27e218['model']['change'](()=>{for(const _0x27a3a3 of _0x5667a6)_0x3ea5b0['markBlockFormat'](_0x27a3a3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x33d2b5}]});});}),_0x3ea5b0['descriptionFactory']['registerDescriptionCallback'](_0x186b42=>{const {data:_0x4c96b4}=_0x186b42;if(_0x4c96b4&&'blockQuote'==_0x4c96b4['commandName']){const _0x2018a8=wt(_0x174ba1,'ELEMENT_BLOCK_QUOTE');return _0x4c96b4['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x174ba1,'*Set\x20format:*\x20%0',_0x2018a8)}:{'type':'format','content':wt(_0x174ba1,'*Remove\x20format:*\x20%0',_0x2018a8)};}});}};function Ht(_0x445789){return'blockQuote'==_0x445789['parent']['name'];}var $t=class extends _0x183f88{afterInit(){const _0x4500c1=this['editor'],_0x42cfdf=_0x4500c1['locale'],_0x4a370a=_0x4500c1['plugins']['get']('TrackChangesEditing');_0x4500c1['plugins']['has']('BookmarkEditing')&&(_0x4a370a['enableCommand']('insertBookmark'),_0x4a370a['enableDefaultAttributesIntegration']('updateBookmark'),_0x4a370a['descriptionFactory']['registerDescriptionCallback'](_0x2dd8ef=>{if('insertion'!=_0x2dd8ef['type']&&'deletion'!=_0x2dd8ef['type']&&'attribute'!=_0x2dd8ef['type'])return;const _0x5e94c9=_0x2dd8ef['getContainedElement']();if(null==_0x5e94c9)return;if(!_0x5e94c9['is']('element','bookmark'))return;const _0x179122=_0x5e94c9['getAttribute']('bookmarkId');if('insertion'==_0x2dd8ef['type'])return{'type':'insertion','content':wt(_0x42cfdf,'*Insert:*\x20%0','\x22'+_0x179122+'\x22\x20'+wt(_0x42cfdf,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2dd8ef['type'])return{'type':'deletion','content':wt(_0x42cfdf,'*Remove:*\x20%0','\x22'+_0x179122+'\x22\x20'+wt(_0x42cfdf,'ELEMENT_BOOKMARK'))};const {data:_0x1ffe21}=_0x2dd8ef;return _0x1ffe21&&'bookmarkId'==_0x1ffe21['key']?{'type':'format','content':wt(_0x42cfdf,'*Set\x20bookmark:*\x20%0','\x22'+_0x1ffe21['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x183f88{afterInit(){const _0x19b561=this['editor'];_0x19b561['plugins']['has']('CaseChange')&&(_0x19b561['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19b561['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19b561['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x183f88{afterInit(){const _0x40f26a=this['editor'];_0x40f26a['commands']['get']('ckbox')&&_0x40f26a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x183f88{static get requires(){return[ft,mt];}constructor(_0x52bae0){super(_0x52bae0),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x51ea29=this['editor'],_0x118105=_0x51ea29['plugins']['get']('ClipboardMarkersUtils'),_0x500ea6=_0x51ea29['plugins']['get'](mt);_0x118105['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x500ea6['on']('outputTransformation',(_0x294f57,_0xfc765d)=>{const _0x34ea48=this['_getSuggestionEntries'](_0xfc765d);for(const [_0xe909b1,_0x44e317]of _0xfc765d['content']['markers']){const _0x188fb5=at['_fromRangeInDocumentFragment'](_0x44e317,_0x51ea29['model']);function _0x48d211(){_0x188fb5['detach'](),_0xfc765d['content']['markers']['delete'](_0xe909b1);}_0x188fb5['on']('change:drop',_0x48d211),(_0xe909b1['startsWith']('suggestion:')||_0xe909b1['startsWith']('comment:'))&&_0x188fb5['on']('change:range',()=>{_0x188fb5['isCollapsed']&&_0x48d211();}),_0xfc765d['content']['markers']['set'](_0xe909b1,_0x188fb5);}const _0x5be400=_0x34ea48['filter'](_0x499e23=>'deletion'===_0x499e23['meta']['type'])['map'](_0x5bb34f=>_0x5bb34f['modelRange']);if(this['_shouldSkipDeletions'](_0x5be400,_0xfc765d['content']))return[..._0x34ea48]['forEach'](_0x472064=>{_0xfc765d['content']['markers']['get'](_0x472064['markerName'])['detach'](),_0xfc765d['content']['markers']['delete'](_0x472064['markerName']);}),void this['_restoreRegularRanges'](_0xfc765d['content']['markers']);[..._0x34ea48]['forEach'](_0xda219e=>{const _0x2c0ea3=_0x51ea29['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0xda219e['meta']['type'],_0xda219e['meta']['subType'],'accept'),{markerName:_0x11eed4,meta:_0x412427}=_0xda219e;if(_0xfc765d['content']['markers']['has'](_0x11eed4)){switch(_0x412427['type']){case'deletion':if('tableRow'===_0x412427['subType']||'tableColumn'===_0x412427['subType']){if(!_0x51ea29['plugins']['has']('TableUtils'))break;const _0x28036b=_0x51ea29['plugins']['get']('TableUtils'),_0x3c94eb=_0x28036b['getSelectionAffectedTableCells'](_0x51ea29['model']['createSelection'](_0xfc765d['content']['markers']['get'](_0x11eed4))),_0x28c7ba=_0x3c94eb[0x0]['findAncestor']('table');if('tableRow'===_0x412427['subType']){const {first:_0x32f8ad,last:_0x366638}=_0x28036b['getRowIndexes'](_0x3c94eb);_0x28036b['removeRows'](_0x28c7ba,{'at':_0x32f8ad,'rows':_0x366638-_0x32f8ad+0x1});}else{const {first:_0x2931d0,last:_0x36f27b}=_0x28036b['getColumnIndexes'](_0x3c94eb);_0x28036b['removeColumns'](_0x28c7ba,{'at':_0x2931d0,'columns':_0x36f27b-_0x2931d0+0x1});}break;}_0x2c0ea3([_0xfc765d['content']['markers']['get'](_0x11eed4)]);}_0xfc765d['content']['markers']['has'](_0x11eed4)&&(_0xfc765d['content']['markers']['get'](_0x11eed4)['detach'](),_0xfc765d['content']['markers']['delete'](_0x11eed4));}}),this['_restoreRegularRanges'](_0xfc765d['content']['markers']);});}_getSuggestionEntries(_0x19a67f){const _0x30dcd7=_0x4cfa1c=>'dragstart'===_0x19a67f['method']?_0x4cfa1c['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x4cfa1c;return Array['from'](_0x19a67f['content']['markers'])['map'](([_0x4dcc2d,_0x2f079d])=>({'markerName':_0x4dcc2d,'modelRange':_0x2f079d,'meta':nt(_0x30dcd7(_0x4dcc2d))}))['filter'](({meta:_0x3e20d7})=>'suggestion'===_0x3e20d7['group']);}_shouldSkipDeletions(_0x47a384,_0x26d916){if(!_0x47a384['length'])return!0x1;let _0x1e68e5=[this['editor']['model']['createRangeIn'](_0x26d916)];for(const _0xc74ce8 of _0x47a384)_0x1e68e5=_0x1e68e5['flatMap'](_0x59c14b=>_0x59c14b['getDifference'](_0xc74ce8));return!_0x1e68e5['some'](_0x46281e=>this['editor']['model']['hasContent'](_0x46281e,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x12155d){[..._0x12155d['keys']()]['forEach'](_0x26cc91=>{const _0x11bfdc=_0x12155d['get'](_0x26cc91);_0x11bfdc['detach'](),_0x12155d['set'](_0x26cc91,_0x11bfdc['toRange']());});}},jt=class extends _0x183f88{afterInit(){const _0xf78982=this['editor'];if(!_0xf78982['plugins']['has']('CodeBlock'))return;const _0x478b87=_0xf78982['plugins']['get']('TrackChangesEditing'),_0x234117=_0xf78982['locale'],_0x43a56e=_0xf78982['config']['get']('codeBlock')['languages'],_0x45ab1d=_0xf78982['commands']['get']('codeBlock');_0x478b87['enableCommand']('indentCodeBlock'),_0x478b87['enableCommand']('outdentCodeBlock'),_0x478b87['enableCommand']('codeBlock',(_0x37470e,_0x4bdc66={})=>{const _0x115f3d=_0xf78982['model'],_0x12b6d8=_0xf78982['model']['document']['selection'],_0x5ead7c=_0x4bdc66&&void 0x0!==_0x4bdc66['forceValue']?_0x4bdc66['forceValue']:!_0x45ab1d['value'];let _0x34ccf0;_0x4bdc66['language']||(_0x4bdc66['language']=_0x43a56e[0x0]['language']),_0x34ccf0=_0x5ead7c?Array['from'](_0x12b6d8['getSelectedBlocks']())['filter'](_0x1bc5f8=>{return Kt(_0x1bc5f8)||(_0x212510=_0x1bc5f8,_0x3b3f9a=_0x115f3d['schema'],!_0x212510['is']('rootElement')&&!_0x3b3f9a['isLimit'](_0x212510)&&_0x3b3f9a['checkChild'](_0x212510['parent'],'codeBlock'));var _0x212510,_0x3b3f9a;}):Array['from'](_0x12b6d8['getSelectedBlocks']())['filter'](_0x38d95e=>Kt(_0x38d95e));const _0xbd7797=kt(_0x34ccf0,_0x115f3d);_0x115f3d['change'](()=>{for(const _0x5dca25 of _0xbd7797)_0x478b87['markBlockFormat'](_0x5dca25,{'commandName':'codeBlock','commandParams':[{..._0x4bdc66,'forceValue':_0x5ead7c}],'formatGroupId':'blockName'});});}),(_0x478b87['descriptionFactory']['registerElementLabel']('codeBlock',_0x4b6235=>wt(_0x234117,'ELEMENT_CODE_BLOCK',_0x4b6235)),_0x478b87['descriptionFactory']['registerDescriptionCallback'](_0x342739=>{if('formatBlock'!=_0x342739['type'])return;const _0x14db6f=_0x234117['t'],{data:_0x1c228c}=_0x342739;if(!_0x1c228c||'codeBlock'!=_0x1c228c['commandName'])return;const _0x20a8d9=_0x1c228c['commandParams'][0x0]['language'],_0x14cccd=_0x14db6f(_0x43a56e['find'](_0x7b751a=>_0x7b751a['language']===_0x20a8d9)['label'])['toLowerCase']();return _0x1c228c['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x234117,'*Set\x20format:*\x20%0',wt(_0x234117,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x14cccd+')')}:{'type':'format','content':wt(_0x234117,'*Remove\x20format:*\x20%0',wt(_0x234117,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x15143e){return'codeBlock'==_0x15143e['name'];}var Xt=class extends _0x183f88{afterInit(){const _0x3769c3=this['editor'];_0x3769c3['plugins']['has']('CommentsEditing')&&_0x3769c3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x183f88{static get requires(){return[Et];}init(){const _0x3f97d5=this['editor'],_0x316b52=_0x3f97d5['plugins']['get']('TrackChangesEditing');_0x316b52['enableCommand']('delete');const _0x1f7657=_0x3f97d5['commands']['get']('deleteForward');_0x316b52['enableCommand']('deleteForward',(_0xd2adef,_0x56432a={})=>{const _0x5a16b5=_0x3f97d5['model']['createSelection'](_0x3f97d5['model']['document']['selection']);_0x5a16b5['isCollapsed']&&_0x3f97d5['model']['modifySelection'](_0x5a16b5,{'direction':'forward','unit':_0x56432a['unit']});const _0x3b0952=_0x5a16b5['getFirstRange'](),_0x43e2aa=at['fromRange'](_0x3b0952);let _0x5b5cec;_0xd2adef(_0x56432a),_0x5b5cec='$graveyard'==_0x43e2aa['root']['rootName']?_0x3f97d5['model']['createRange'](_0x3b0952['start']):_0x3f97d5['model']['createRange'](_0x43e2aa['start'],_0x43e2aa['end']),_0x43e2aa['detach'](),_0x3f97d5['model']['enqueueChange'](_0x1f7657['buffer']['batch'],_0xef607c=>{_0x1f7657['buffer']['lock'](),_0xef607c['setSelection'](_0xef607c['createRange'](_0x5b5cec['end'])),_0x1f7657['buffer']['unlock']();});});}},Yt=class extends _0x183f88{afterInit(){const _0xcd0ef0=this['editor'];if(!_0xcd0ef0['plugins']['has']('ListEditing'))return;const _0x49947d=_0xcd0ef0['locale'],_0x459b0d=_0xcd0ef0['plugins']['get']('TrackChangesEditing'),_0x2813e9=_0xcd0ef0['plugins']['has']('TodoListEditing'),_0x224987=!!_0xcd0ef0['config']['get']('list.multiBlock');function _0x1041bb(_0x1e345d){return{'type':'format','content':''+wt(_0x49947d,'*Set\x20format:*\x20%0',_0x1e345d)};}function _0x2ad4cd(_0x3f3e24){return{'type':'format','content':''+wt(_0x49947d,'*Remove\x20format:*\x20%0',_0x3f3e24)};}_0x459b0d['enableDefaultAttributesIntegration']('numberedList'),_0x459b0d['enableDefaultAttributesIntegration']('bulletedList'),_0x459b0d['enableDefaultAttributesIntegration']('customNumberedList'),_0x459b0d['enableDefaultAttributesIntegration']('customBulletedList'),_0x459b0d['enableDefaultAttributesIntegration']('indentList'),_0x459b0d['enableDefaultAttributesIntegration']('outdentList'),_0x459b0d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x459b0d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x224987&&(_0x459b0d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x459b0d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2813e9&&(_0x459b0d['enableDefaultAttributesIntegration']('todoList'),_0x459b0d['enableDefaultAttributesIntegration']('checkTodoList'),_0x459b0d['descriptionFactory']['registerDescriptionCallback'](_0x5b850b=>{const {data:_0x5341e1}=_0x5b850b;if(_0x5341e1&&'todoListChecked'==_0x5341e1['key'])return{'type':'format','content':_0x5341e1['newValue']?wt(_0x49947d,'*Check\x20item*'):wt(_0x49947d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1873a9=>{if(_0x1873a9['batch']['isUndo'])return!0x1;let _0x498bf4=!0x1;const _0x3ad16f=_0x459b0d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cf9b3=>'todoListChecked'===_0x459b0d['_getAttributeKey'](_0x1cf9b3));for(const _0x13937a of _0x3ad16f)'todo'!=_0x13937a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x459b0d['_findSuggestions'](_0x13937a['getFirstRange'](),'attribute')['find'](_0x546bae=>'listType'===_0x459b0d['_getAttributeKey'](_0x546bae['suggestion']))||(_0x1873a9['removeMarker'](_0x13937a['getFirstMarker']()),_0x498bf4=!0x0));return _0x498bf4;})),_0x459b0d['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x49947d,'FORMAT_INDENT'));const _0x428a2d={'type':'format','content':''};_0x459b0d['descriptionFactory']['registerDescriptionCallback'](_0x352392=>{const {data:_0x33dd8b}=_0x352392;if(!_0x33dd8b||'listType'!=_0x33dd8b['key'])return;let _0x494865=_0x352392['head'];for(;_0x494865;){if(_0x494865['data']&&(('listStyle'==_0x494865['data']['key']||'listMarkerStyle'==_0x494865['data']['key'])&&(_0x494865['data']['newValue']&&'default'!=_0x494865['data']['newValue']||'default'!=_0x494865['data']['oldValue']&&!_0x33dd8b['newValue'])||!_0x224987&&'$elementName'==_0x494865['data']['key']))return _0x428a2d;_0x494865=_0x494865['next'];}if(null==_0x33dd8b['newValue'])switch(_0x33dd8b['oldValue']){case'bulleted':return _0x2ad4cd(wt(_0x49947d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ad4cd(wt(_0x49947d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ad4cd(wt(_0x49947d,'ELEMENT_TODO_LIST'));}switch(_0x33dd8b['newValue']){case'bulleted':return _0x1041bb(wt(_0x49947d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1041bb(wt(_0x49947d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1041bb(wt(_0x49947d,'ELEMENT_TODO_LIST'));}}),_0x459b0d['descriptionFactory']['registerDescriptionCallback'](_0x5c225e=>{const {data:_0x593b8f}=_0x5c225e;if(_0x593b8f&&'listIndent'==_0x593b8f['key'])return null==_0x593b8f['newValue']||null==_0x593b8f['oldValue']&&0x0==_0x593b8f['newValue']?_0x428a2d:void 0x0;}),_0x459b0d['descriptionFactory']['registerDescriptionCallback'](_0x3d1e4f=>{if('attribute'!=_0x3d1e4f['type'])return;const {data:_0x3d5f88}=_0x3d1e4f;if(!_0x3d5f88||'listItemId'!=_0x3d5f88['key'])return;const _0x31e02a=Qt(_0x3d1e4f);return'newValue'==_0x31e02a?{'type':'format','content':wt(_0x49947d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31e02a?{'type':'format','content':wt(_0x49947d,'*Split:*\x20list\x20item')}:_0x428a2d;}),_0xcd0ef0['model']['document']['registerPostFixer'](_0x2ea910=>this['listItemIdFixer'](_0x2ea910)),_0xcd0ef0['model']['document']['registerPostFixer'](_0x37728c=>this['noTrackChangesFixer'](_0x37728c)),_0xcd0ef0['model']['document']['on']('change:data',(_0x2af527,_0x1a1ec6)=>{if(_0x1a1ec6['isUndo']||!_0x1a1ec6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0xc47c2a){if(_0xc47c2a['batch']['isUndo']||!_0xc47c2a['batch']['isLocal'])return!0x1;let _0x3fc6f8=!0x1;const _0x5b9abb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13b96d=>_0x13b96d['data']&&'listItemId'==_0x13b96d['data']['key'])['filter'](_0x8df8f1=>_0x8df8f1['data']['newValue']&&_0x8df8f1['data']['oldValue']);for(const _0x3de992 of _0x5b9abb)Qt(_0x3de992)||(_0xc47c2a['removeMarker'](_0x3de992['getFirstMarker']()),_0x3fc6f8=!0x0);return _0x3fc6f8;}['noTrackChangesFixer'](_0x4d70ee){if(_0x4d70ee['batch']['isUndo']||!_0x4d70ee['batch']['isLocal'])return!0x1;const _0x2ec28b=this['editor']['model']['document']['differ'],_0x4d9a41=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4d9a41['trackChangesCommand']['value'])return!0x1;let _0x391613=!0x1;const _0x52905f=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x302aab=_0x2ec28b['getChanges']()['filter'](_0x6532fc=>'attribute'==_0x6532fc['type'])['filter'](_0x1b7d22=>_0x52905f['has'](_0x1b7d22['attributeKey']));if(0x0==_0x302aab['length'])return _0x391613;const _0x35df9c=new Set(_0x2ec28b['getMarkersToAdd']()['filter'](_0x7de3=>{if(!_0x7de3['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x575002=nt(_0x7de3['name'])['subType']['split']('|')[0x0];return _0x52905f['has'](_0x575002);})['map'](_0xd299cd=>nt(_0xd299cd['name'])['id']));for(const _0x5a1299 of _0x302aab){const _0x2b8da5=_0x4d9a41['_findSuggestions'](_0x5a1299['range'],'attribute')['filter'](_0x26f5e7=>{if(_0x26f5e7['meta']['isNextTo'])return!0x1;if(_0x35df9c['has'](_0x26f5e7['suggestion']['id']))return!0x1;const _0x54b059=_0x4d9a41['_getAttributeKey'](_0x26f5e7['suggestion']);return _0x52905f['has'](_0x54b059);})['map'](_0x311cbf=>_0x311cbf['suggestion']);if(_0x2b8da5['length']){for(const _0x35021f of _0x2b8da5)_0x4d70ee['removeMarker'](_0x35021f['getFirstMarker']());_0x391613=!0x0;}}return _0x391613;}['assureChains'](){const _0x4d7240=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4622fc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x2878a0;const _0x3acb53=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe3c36e=>{if(_0xe3c36e['data']['oldRange']||!_0xe3c36e['data']['newRange'])return null;if(!_0xe3c36e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1c01db}=nt(_0xe3c36e['name']);if(!_0x4d7240['hasSuggestion'](_0x1c01db))return null;const _0x1f4f04=_0x4d7240['getSuggestion'](_0x1c01db);return _0x4622fc['includes'](_0x1f4f04['data']['key']);})['map'](_0x25a37e=>{const {id:_0x266bc8}=nt(_0x25a37e['name']),_0x3abb87=_0x4d7240['getSuggestion'](_0x266bc8);return _0x2878a0=_0x3abb87['attributes']['groupId'],_0x3abb87['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3acb53['size'])return;const _0x3a3f5e=_0x4d7240['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1db446=>'attribute'==_0x1db446['type']&&_0x1db446['data']&&_0x4622fc['includes'](_0x1db446['data']['key'])&&_0x1db446['attributes']['groupId']!=_0x2878a0)['map'](_0x4b52c2=>({'listItem':_0x4b52c2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4b52c2['attributes']['groupId']})),_0x5d9242=new Set();for(const {groupId:_0x58a268,listItem:_0x299c21}of _0x3a3f5e)_0x3acb53['has'](_0x299c21)&&_0x5d9242['add'](_0x58a268);for(const _0xddde2a of _0x4d7240['getSuggestions']())_0x5d9242['has'](_0xddde2a['attributes']['groupId'])&&_0xddde2a['setAttribute']('groupId',_0x2878a0);}_supportLegacySuggestions(){const _0x2aafa0=this['editor'],_0x471ff4=_0x2aafa0['locale'],_0x53d41d=_0x2aafa0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x53d41d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4eab46,_0x1ae245){const _0x4f03f4=[];for(let _0x13a7f1 of _0x4eab46)_0x13a7f1['start']['nodeAfter']===_0x13a7f1['end']['parent']&&(_0x13a7f1=_0x2aafa0['model']['createRange'](_0x2aafa0['model']['createPositionAt'](_0x13a7f1['start']['nodeAfter'],0x0))),_0x4f03f4['push'](_0x13a7f1);_0x2aafa0['model']['change'](_0x33b398=>{const _0x38e9bb=_0x2aafa0['model']['document']['selection'],_0x56fd54=Array['from'](_0x38e9bb['getRanges']())['map'](_0x303521=>at['fromRange'](_0x303521));_0x33b398['setSelection'](_0x4f03f4),_0x2aafa0['commands']['get'](_0x1ae245['commandName'])['refresh'](),_0x1ae245['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2aafa0['execute'](_0x1ae245['commandName'],..._0x1ae245['commandParams']),_0x33b398['setSelection'](_0x56fd54);for(const _0x7f438a of _0x56fd54)_0x7f438a['detach']();});}),_0x53d41d['descriptionFactory']['registerElementLabel'](function(_0x3697b7){const _0x11a1db=!_0x2aafa0['model']['schema']['isObject'](_0x3697b7),_0x80bf6=_0x3697b7['previousSibling'],_0x2ab1b0=_0x3697b7['nextSibling'],_0x51e14c=_0x3697b7['getAttribute']('listItemId'),_0x3b930f=!_0x80bf6||_0x80bf6['getAttribute']('listItemId')!==_0x51e14c,_0x4c5088=!_0x2ab1b0||_0x2ab1b0['getAttribute']('listItemId')!==_0x51e14c;return _0x11a1db&&Boolean(_0x51e14c)&&_0x3b930f&&_0x4c5088;},_0x1e4937=>wt(_0x471ff4,'ELEMENT_LIST_ITEM',_0x1e4937));}_registerLegacyDescription(){const _0x23434e=this['editor'],_0x4f69b0=_0x23434e['locale'];function _0x3832e8(_0x4831b1){const _0x1449e7=_0x23434e['commands']['get']('bulletedList')['value'],_0x4fa673=_0x23434e['commands']['get']('numberedList')['value'];return'numberedList'===_0x4831b1?_0x1449e7:_0x4fa673;}_0x23434e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2d15da){if('formatBlock'!=_0x2d15da['type'])return;const {data:_0x2ff91f}=_0x2d15da;if(!_0x2ff91f)return;let _0x51c2ac,_0x841149,_0xd08386,_0xc04e17;switch(_0x2ff91f['commandName']){case'bulletedList':_0xd08386=_0x2ff91f['commandParams'][0x0]['forceValue'],_0xc04e17=_0x3832e8(_0x2ff91f['commandName']),_0x51c2ac=_0xd08386?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc04e17&&_0x23434e['config']['get']('list.multiBlock')||(_0x51c2ac='*Change\x20to:*\x20%0'),_0x841149={'type':'format','content':wt(_0x4f69b0,_0x51c2ac,wt(_0x4f69b0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xd08386=_0x2ff91f['commandParams'][0x0]['forceValue'],_0xc04e17=_0x3832e8(_0x2ff91f['commandName']),_0x51c2ac=_0xd08386?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc04e17&&_0x23434e['config']['get']('list.multiBlock')||(_0x51c2ac='*Change\x20to:*\x20%0'),_0x841149={'type':'format','content':wt(_0x4f69b0,_0x51c2ac,wt(_0x4f69b0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x51c2ac='*Indent:*\x20%0',_0x841149={'type':'format','content':wt(_0x4f69b0,_0x51c2ac,wt(_0x4f69b0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x51c2ac=function(_0x27ae83){const _0x3a906c=_0x27ae83['getFirstRange']();let _0x49e628=_0x3a906c['start']['nodeAfter'];for(;_0x49e628&&_0x3a906c['containsItem'](_0x49e628);){if(_0x49e628['getAttribute']('listIndent')>0x0)return!0x1;_0x49e628=_0x49e628['nextSibling'];}return!0x0;}(_0x2d15da)?wt(_0x4f69b0,'*Format:*\x20remove\x20from\x20%0',wt(_0x4f69b0,function(_0x5d8613){return'ELEMENT_'+_0x5d8613['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2d15da))):wt(_0x4f69b0,'*Outdent:*\x20%0',wt(_0x4f69b0,'ELEMENT_LIST_ITEM')),_0x841149={'type':'format','content':_0x51c2ac};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2ff91f['multipleBlocks']&&(_0x51c2ac='*Merge:*\x20%0',_0x841149={'type':'deletion','content':wt(_0x4f69b0,_0x51c2ac,wt(_0x4f69b0,'ELEMENT_LIST_ITEM'))});}return _0x841149;});}};function Qt(_0x37dfc6){let _0x3aea6c=_0x37dfc6['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3aea6c;){const _0x4ecd9e=_0x3aea6c['getAttribute']('listItemId');if(!_0x4ecd9e)return!0x1;if(_0x4ecd9e==_0x37dfc6['data']['newValue'])return'newValue';if(_0x4ecd9e==_0x37dfc6['data']['oldValue'])return'oldValue';_0x3aea6c=_0x3aea6c['previousSibling'];}return!0x1;}var Zt=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x33e82f=this['editor']['config']['get']('list.properties'),_0x396dd5=this['editor']['plugins']['get']('TrackChangesEditing');_0x33e82f['styles']&&_0x396dd5['enableDefaultAttributesIntegration']('listStyle'),_0x33e82f['reversed']&&_0x396dd5['enableDefaultAttributesIntegration']('listReversed'),_0x33e82f['startIndex']&&_0x396dd5['enableDefaultAttributesIntegration']('listStart');const _0x4e834d={'type':'format','content':''};_0x396dd5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ab2d9=this['editor']['locale'];_0x396dd5['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x2ab2d9,'FORMAT_LIST_REVERSED')),_0x396dd5['descriptionFactory']['registerDescriptionCallback'](_0xa4645a=>{const {data:_0x2bec66}=_0xa4645a;if(_0x2bec66&&'listReversed'==_0x2bec66['key'])return null==_0x2bec66['newValue']||0x0==_0x2bec66['newValue']&&null==_0x2bec66['oldValue']?_0x4e834d:void 0x0;}),_0x396dd5['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x2ab2d9,'FORMAT_LIST_START')),_0x396dd5['descriptionFactory']['registerDescriptionCallback'](_0xa7df6f=>{const {data:_0x10b4ac}=_0xa7df6f;if(_0x10b4ac&&'listStart'==_0x10b4ac['key'])return null==_0x10b4ac['newValue']||0x1==_0x10b4ac['newValue']&&null==_0x10b4ac['oldValue']?_0x4e834d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a2ba2=>{if(_0x5a2ba2['batch']['isUndo'])return!0x1;let _0x1dbfaa=!0x1;const _0x80af55=_0x396dd5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b39d5=>{const _0x504cf2=_0x396dd5['_getAttributeKey'](_0x4b39d5);return'listStart'==_0x504cf2||'listReversed'==_0x504cf2;});for(const _0x2873ea of _0x80af55){const _0x39c874=_0x2873ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x39c874&&'customNumbered'!=_0x39c874&&(_0x396dd5['_findSuggestions'](_0x2873ea['getFirstRange'](),'attribute')['find'](_0x4f05dc=>'listType'==_0x396dd5['_getAttributeKey'](_0x4f05dc['suggestion']))||(_0x5a2ba2['removeMarker'](_0x2873ea['getFirstMarker']()),_0x1dbfaa=!0x0));}return _0x1dbfaa;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3f5174){const _0x4e5f66=this['editor']['locale'],{data:_0x58e6cf}=_0x3f5174,_0x5a9cfb={'type':'format','content':''};if(!_0x58e6cf||'listStyle'!=_0x58e6cf['key'])return;if(!_0x58e6cf['oldValue'])return'default'==_0x58e6cf['newValue']?_0x5a9cfb:{'type':'format','content':''+wt(_0x4e5f66,'*Set\x20format:*\x20%0',wt(_0x4e5f66,this['_getTranslationKeyForListStyle'](_0x58e6cf['newValue'])))};if(!_0x58e6cf['newValue']){if('default'==_0x58e6cf['oldValue'])return _0x5a9cfb;let _0x1eb5f9=_0x3f5174['head'];for(;_0x1eb5f9;){if(_0x1eb5f9['data']&&'listType'==_0x1eb5f9['data']['key']&&_0x1eb5f9['data']['newValue'])return _0x5a9cfb;_0x1eb5f9=_0x1eb5f9['next'];}return{'type':'format','content':''+wt(_0x4e5f66,'*Remove\x20format:*\x20%0',wt(_0x4e5f66,this['_getTranslationKeyForListStyle'](_0x58e6cf['oldValue'])))};}if('default'!=_0x58e6cf['newValue'])return{'type':'format','content':''+wt(_0x4e5f66,'*Set\x20format:*\x20%0',wt(_0x4e5f66,this['_getTranslationKeyForListStyle'](_0x58e6cf['newValue'])))};let _0x5aeb88=_0x3f5174['head'];for(;_0x5aeb88;){if(_0x5aeb88['data']&&'listType'==_0x5aeb88['data']['key']&&_0x5aeb88['data']['newValue']&&_0x5aeb88['data']['oldValue'])return _0x5a9cfb;_0x5aeb88=_0x5aeb88['next'];}return{'type':'format','content':wt(_0x4e5f66,'*Set\x20format:*\x20%0',wt(_0x4e5f66,'ELEMENT_'+_0x3f5174['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0xe9eae1=this['editor'],_0x31350a=_0xe9eae1['locale'];_0xe9eae1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x196d5c=>{if('formatBlock'!=_0x196d5c['type'])return;const {data:_0x59013f}=_0x196d5c;if(!_0x59013f)return;let _0x1b565b,_0x36cf7d;switch(_0x59013f['commandName']){case'listStyle':_0x1b565b='*Change\x20to:*\x20%0',_0x36cf7d={'type':'format','content':wt(_0x31350a,_0x1b565b,wt(_0x31350a,this['_getTranslationKeyForListStyle'](_0x59013f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b565b=_0x59013f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x36cf7d={'type':'format','content':wt(_0x31350a,_0x1b565b)};break;case'listStart':_0x1b565b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x36cf7d={'type':'format','content':wt(_0x31350a,_0x1b565b,_0x59013f['commandParams'][0x0]['startIndex'])};}return _0x36cf7d;});}_getTranslationKeyForListStyle(_0x23424c){return'ELEMENT_'+(_0x104289=_0x23424c,Jt['includes'](_0x104289)?'bulleted':te['includes'](_0x104289)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x23424c['toUpperCase']()['replace'](/-/g,'_');var _0x104289;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x183f88{afterInit(){const _0x14d748=this['editor'];_0x14d748['commands']['get']('emoji')&&_0x14d748['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x183f88{static get requires(){return[_t];}init(){const _0xfc93e6=this['editor'],_0x419251=_0xfc93e6['plugins']['get']('TrackChangesEditing'),_0x21db6e=_0xfc93e6['commands']['get']('enter');_0x419251['enableCommand']('enter',()=>{_0xfc93e6['model']['change'](_0x1781cf=>{const _0xa4e2f6=_0xfc93e6['model']['document']['selection'],_0x2ad006=_0xa4e2f6['getFirstPosition'](),_0x57b906=at['fromRange'](_0xa4e2f6['getFirstRange']());if(_0x21db6e['enterBlock'](_0x1781cf)){const _0x4f209c=_0xfc93e6['model']['createPositionAt'](_0x2ad006['parent']['nextSibling'],0x0),_0x26d70a=_0x1781cf['createRange'](_0x2ad006,_0x4f209c);_0x419251['markInsertion'](_0x26d70a);}else _0x1781cf['setSelection'](_0x1781cf['createRange'](_0x57b906['end']));_0x57b906['detach'](),_0x21db6e['fire']('afterExecute',{'writer':_0x1781cf});});});}},ie=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xf2c042=this['editor']['plugins']['get']('TrackChangesEditing');_0xf2c042['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xf2c042['enableCommand']('findNext'),_0xf2c042['enableCommand']('findPrevious'),_0xf2c042['enableCommand']('replace'),_0xf2c042['enableCommand']('replaceAll');}['handleFindCommand'](_0xcc24ac,_0x1d7896,_0x5c3f79={}){const _0x58dfaf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xcc24ac(_0x50b5b1=>{let _0x538832=('string'==typeof _0x1d7896?_0x58dfaf['findByTextCallback'](_0x1d7896,_0x5c3f79):_0x1d7896)(_0x50b5b1);Array['isArray'](_0x538832)&&(_0x538832={'results':_0x538832,'searchText':'string'==typeof _0x1d7896?_0x1d7896:''});const _0x4ae236=_0x538832['results']['filter'](_0x4987b8=>!0x1===this['_isInDeletionRange'](_0x4987b8,_0x50b5b1['item']));return{..._0x538832,'results':_0x4ae236};},_0x5c3f79);}_isInDeletionRange(_0x4eb19b,_0x1f5bae){const _0x3efafa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1f5bae,_0x4eb19b['start']),this['editor']['model']['createPositionAt'](_0x1f5bae,_0x4eb19b['end']));for(const _0x5180d1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3efafa['getIntersection'](_0x5180d1['getRange']()))return!0x0;return!0x1;}};const se=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var re=class extends _0x183f88{afterInit(){const _0x4ac609=this['editor']['locale'],_0x557386=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x15c160,commandName:_0x54528e}of se)this['editor']['plugins']['has'](_0x15c160)&&_0x557386['enableDefaultAttributesIntegration'](_0x54528e);_0x557386['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x4ac609,'FORMAT_FONT_SIZE')),_0x557386['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x4ac609,'FORMAT_FONT_FAMILY')),_0x557386['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x4ac609,'FORMAT_FONT_COLOR')),_0x557386['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x4ac609,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1d2efe=this['editor'],_0x3df5d7=_0x1d2efe['locale'];_0x1d2efe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b710f=>{const _0x44dcde=_0x3df5d7['t'];if('formatInline'!=_0x4b710f['type'])return;const {data:_0xc8249c}=_0x4b710f;if(null!=_0xc8249c){if('fontSize'==_0xc8249c['commandName']){const _0x59902f=_0xc8249c['commandParams'][0x0]['value'];if(_0x59902f){const _0x22dccc=_0x44dcde(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4b2ccb=>_0x4b2ccb['model']==_0x59902f)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x3df5d7,'*Set\x20font\x20size:*\x20%0',_0x22dccc)};}return{'type':'format','content':wt(_0x3df5d7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xc8249c['commandName']){const _0x1b32f7=_0xc8249c['commandParams'][0x0]['value'];return _0x1b32f7?{'type':'format','content':wt(_0x3df5d7,'*Set\x20font\x20family:*\x20%0',_0x1b32f7)}:{'type':'format','content':wt(_0x3df5d7,'*Reset\x20font\x20family*')};}if('fontColor'==_0xc8249c['commandName']){const _0x3f4924=_0xc8249c['commandParams'][0x0]['value'];if(_0x3f4924){const _0xed687c=_0x87e827(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3872ae=>_0x3872ae['model']==_0x3f4924);let _0x2c714c=_0x3f4924,_0x5dd01f='';return _0xed687c&&(_0x2c714c=_0xed687c['label'],_0x5dd01f=_0x5edaf3(_0x3df5d7,_0x2c714c)['toLowerCase']()),{'type':'format','content':wt(_0x3df5d7,'*Set\x20font\x20color:*\x20%0',_0x5dd01f)['trim'](),'color':{'value':_0x3f4924,'title':_0x5dd01f||_0x2c714c}};}return{'type':'format','content':wt(_0x3df5d7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xc8249c['commandName']){const _0x2e7d81=_0xc8249c['commandParams'][0x0]['value'];if(_0x2e7d81){const _0x4094df=_0x87e827(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x19d4d2=>_0x19d4d2['model']==_0x2e7d81);let _0x5a5027=_0x2e7d81,_0x29a6d2='';return _0x4094df&&(_0x5a5027=_0x4094df['label'],_0x29a6d2=_0x5edaf3(_0x3df5d7,_0x5a5027)['toLowerCase']()),{'type':'format','content':wt(_0x3df5d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x29a6d2)['trim'](),'color':{'value':_0x2e7d81,'title':_0x29a6d2||_0x5a5027}};}return{'type':'format','content':wt(_0x3df5d7,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x183f88{afterInit(){const {plugins:_0x225b47}=this['editor'];_0x225b47['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x225b47['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x167270,plugins:_0x3276cb,commands:_0xb99569}=this['editor'],_0x526470=_0x3276cb['get']('TrackChangesEditing');_0xb99569['get']('footnotesStyle')&&_0x526470['enableDefaultAttributesIntegration']('footnotesStyle'),_0xb99569['get']('footnotesStart')&&_0x526470['enableDefaultAttributesIntegration']('footnotesStart'),_0x526470['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0x167270,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x526470['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0x167270,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0xa15df0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2aa8be,commands:_0x27a012}=this['editor'];_0x27a012['get']('insertFootnote')&&_0xa15df0['enableCommand']('insertFootnote'),_0xa15df0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x25265f=>wt(_0x2aa8be,'ELEMENT_FOOTNOTE_REF',_0x25265f)),_0xa15df0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x10fa0b=>wt(_0x2aa8be,'ELEMENT_FOOTNOTE_DEFINITION',_0x10fa0b)),_0xa15df0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1d27cd=>wt(_0x2aa8be,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1d27cd));}},ae=class extends _0x183f88{afterInit(){const _0x1302b4=this['editor'],_0x299509=_0x1302b4['plugins']['get']('TrackChangesEditing'),_0x4bc638=_0x1302b4['commands']['get']('copyFormat'),_0x773c6d=_0x1302b4['commands']['get']('pasteFormat');_0x4bc638&&_0x773c6d&&(_0x299509['enableDefaultAttributesIntegration']('pasteFormat'),_0x299509['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x58c187=this['editor'],_0x241295=_0x58c187['locale'];_0x58c187['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4332da=>{if('formatBlock'!=_0x4332da['type']&&'formatInline'!=_0x4332da['type'])return;const {data:_0x4bc361}=_0x4332da;if(_0x4bc361&&'pasteFormat'===_0x4bc361['commandName']){const _0x31a44b=[],_0xedf8cb=_0x4bc361['commandParams'][0x0];for(const [_0x363e0f,_0x37fdf2]of Object['entries'](_0xedf8cb))_0x31a44b['push'](ce(_0x58c187,_0x363e0f,_0x37fdf2));return _0x31a44b['length']?{'type':'format','content':wt(_0x241295,'*Set\x20format\x20to:*\x20%0',_0x31a44b['join'](',\x20'))}:{'type':'format','content':wt(_0x241295,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x5e7020,_0x51df42,_0x30a7cf){const _0x404264=_0x5e7020['locale'],_0x1c696e=_0x404264['t'],_0x2952f9=_0x51df42['split'](/(?=[A-Z])/)['join']('\x20'),_0x29ccd3=_0x1c696e(_0x2952f9['charAt'](0x0)['toUpperCase']()+_0x2952f9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x30a7cf)return _0x29ccd3;if('fontColor'===_0x51df42||'fontBackgroundColor'===_0x51df42){const _0x43cb83=_0x87e827(_0x5e7020['config']['get']('fontColor.colors'))['find'](_0x29ac28=>_0x29ac28['model']==_0x30a7cf);return _0x29ccd3+'\x20('+(_0x43cb83?_0x5edaf3(_0x404264,_0x43cb83['label'])['toLowerCase']():_0x30a7cf)+')';}if('fontSize'===_0x51df42&&isNaN(parseFloat(_0x30a7cf))){const _0x7baba1=_0x5e7020['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e7020['config']['get']('fontSize.options'))['find'](_0xa3ea1=>_0xa3ea1['model']==_0x30a7cf);return _0x29ccd3+'\x20('+(_0x7baba1?_0x1c696e(_0x7baba1['title'])['toLowerCase']():_0x30a7cf)+')';}return _0x29ccd3+'\x20('+_0x30a7cf+')';}var le=class extends _0x183f88{afterInit(){const _0x1d6196=this['editor'];if(!_0x1d6196['plugins']['has']('GeneralHtmlSupport')||!_0x1d6196['plugins']['has']('DataSchema'))return;const _0x29cd27=_0x1d6196['plugins']['get']('TrackChangesEditing'),_0x54676e=_0x1d6196['plugins']['get']('GeneralHtmlSupport'),_0x46f8b9=_0x1d6196['plugins']['get']('DataSchema'),_0x212ffa=_0x1d6196['locale'],_0x51565b=new Set(['htmlContent']);for(const _0x470a51 of _0x46f8b9['getDefinitionsForView'](/.*/,!0x1)){const _0x3503ec=_0x470a51['view'],_0x5383d2=_0x54676e['getGhsAttributeNameForElement'](_0x3503ec);_0x51565b['add'](_0x5383d2),!_0x470a51['isInline']||_0x470a51['isObject']||'appliesToBlock'in _0x470a51&&_0x470a51['appliesToBlock']||_0x29cd27['descriptionFactory']['registerAttributeLabel'](_0x5383d2,_0x3503ec),_0x470a51['model']['startsWith']('html')&&_0x29cd27['descriptionFactory']['registerElementLabel'](_0x470a51['model'],_0x274d01=>wt(_0x212ffa,'ELEMENT_HTML_TAG',[_0x274d01,_0x3503ec]));}_0x29cd27['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x212ffa,'FORMAT_RAW_HTML_CONTENT')),_0x29cd27['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x212ffa,'FORMAT_HTML_LIST_ITEM')),_0x29cd27['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x212ffa,'FORMAT_HTML_BULLETED_LIST')),_0x29cd27['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x212ffa,'FORMAT_HTML_NUMBERED_LIST')),_0x29cd27['descriptionFactory']['registerDescriptionCallback'](_0x1a412c=>{if('attribute'!==_0x1a412c['type'])return;const _0x28e3f1=_0x1a412c['data'];if(!_0x28e3f1||!_0x51565b['has'](_0x28e3f1['key']))return;if('htmlContent'===_0x28e3f1['key'])return{'type':'format','content':wt(_0x212ffa,'*Change\x20%0\x20content*',wt(_0x212ffa,'ELEMENT_RAW_HTML'))};const {setItems:_0x51f86e,removeItems:_0x48d17b}=function(_0x10ff43,_0x40d40a,_0x56621a){const _0xb6eee=[],_0x46aa62=[],_0x51e1b9=_0x10ff43['styles']??{},_0x441416=_0x40d40a['styles']??{};for(const _0x190c3a of new Set([...Object['keys'](_0x51e1b9),...Object['keys'](_0x441416)]))_0x51e1b9[_0x190c3a]!==_0x441416[_0x190c3a]&&(void 0x0===_0x441416[_0x190c3a]?_0x46aa62['push'](_0x190c3a):_0xb6eee['push'](_0x190c3a+'\x20('+_0x441416[_0x190c3a]+')'));const _0x59669e=wt(_0x56621a,'FORMAT_HTML_CLASS'),_0x1b14f0=new Set(_0x10ff43['classes']??[]),_0x58f783=new Set(_0x40d40a['classes']??[]),_0x2ce9b0=[..._0x58f783]['some'](_0x1b5f16=>!_0x1b14f0['has'](_0x1b5f16)),_0x3c6ca9=[..._0x1b14f0]['some'](_0x40f43b=>!_0x58f783['has'](_0x40f43b));_0x2ce9b0&&_0xb6eee['push'](_0x59669e),_0x3c6ca9&&_0x46aa62['push'](_0x59669e);const _0x2e9e34=wt(_0x56621a,'FORMAT_HTML_ATTRIBUTE'),_0x17daa3=_0x10ff43['attributes']??{},_0x383eff=_0x40d40a['attributes']??{};let _0x374032=!0x1,_0x530afb=!0x1;for(const _0x264d76 of new Set([...Object['keys'](_0x17daa3),...Object['keys'](_0x383eff)]))_0x17daa3[_0x264d76]!==_0x383eff[_0x264d76]&&(void 0x0===_0x383eff[_0x264d76]?_0x530afb=!0x0:_0x374032=!0x0);return _0x374032&&_0xb6eee['push'](_0x2e9e34),_0x530afb&&_0x46aa62['push'](_0x2e9e34),{'setItems':_0xb6eee,'removeItems':_0x46aa62};}(_0x28e3f1['oldValue']??{},_0x28e3f1['newValue']??{},_0x212ffa);if(!_0x51f86e['length']&&!_0x48d17b['length'])return;const _0xaddbc9=[];return _0x51f86e['length']&&_0xaddbc9['push'](wt(_0x212ffa,'*Set\x20format:*\x20%0',_0x51f86e['join'](',\x20'))),_0x48d17b['length']&&_0xaddbc9['push'](wt(_0x212ffa,'*Remove\x20format:*\x20%0',_0x48d17b['join'](',\x20'))),{'type':'format','content':_0xaddbc9['join']('\x0a')};});}},ue=class extends _0x183f88{_headingOptions;afterInit(){const _0x4b203f=this['editor'];if(!_0x4b203f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4b203f['config']['get']('heading.options');const _0x35572e=_0x4b203f['locale'],_0x474140=_0x4b203f['plugins']['get']('TrackChangesEditing');_0x474140['enableDefaultAttributesIntegration']('heading');for(const _0x1594e7 of this['_headingOptions'])'paragraph'!=_0x1594e7['model']&&_0x474140['descriptionFactory']['registerElementLabel'](_0x1594e7['model'],_0x38028f=>{const _0x254ceb=this['_getHeadingLevel'](_0x1594e7['model']);return null!==_0x254ceb?_0xe18e08(_0x38028f,_0x254ceb):_0x20fad1(_0x38028f,_0x1594e7['title']);});function _0xe18e08(_0x46dd15,_0x187b8e){return wt(_0x35572e,'ELEMENT_HEADING',[_0x46dd15,_0x187b8e]);}function _0x20fad1(_0x40804f,_0x425770){return wt(_0x35572e,'ELEMENT_HEADING_CUSTOM',[_0x40804f,_0x425770]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3731d1=this['editor'],_0x5bcca3=_0x3731d1['locale'];function _0x479ea8(_0x1547ab,_0x3aa814){return wt(_0x5bcca3,'ELEMENT_HEADING_CUSTOM',[_0x1547ab,_0x3aa814]);}_0x3731d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf243cd=>{if('formatBlock'!=_0xf243cd['type'])return;const {data:_0x2bb02c}=_0xf243cd;if(_0x2bb02c&&'heading'==_0x2bb02c['commandName']){const _0x5b3ec3=_0x2bb02c['commandParams'][0x0]['value'],_0x2bb713=this['_getHeadingLevel'](_0x5b3ec3);if(null!==_0x2bb713)return{'type':'format','content':wt(_0x5bcca3,'*Change\x20to:*\x20%0',(_0x55407e=0x1,_0x32983a=_0x2bb713,wt(_0x5bcca3,'ELEMENT_HEADING',[_0x55407e,_0x32983a])))};const _0x50261d=this['_headingOptions']['find'](_0x5af65f=>_0x5af65f['model']===_0x5b3ec3)['title'];return{'type':'format','content':wt(_0x5bcca3,'*Change\x20to:*\x20%0',_0x479ea8(0x1,_0x50261d))};}var _0x55407e,_0x32983a;});}_getHeadingLevel(_0x56c4d4){const _0x2e25d6=_0x56c4d4['match'](/^heading(\d+)/);if(_0x2e25d6)return _0x2e25d6[0x1];const _0x16523a=this['_headingOptions']?.['find'](_0x7c8519=>_0x7c8519['model']==_0x56c4d4);if(_0x16523a&&_0x16523a['view']){const _0x313201=_0x16523a['view'],_0x487d72=(_0x313201['name']??_0x313201)['match'](/^h(\d+)/);if(_0x487d72)return _0x487d72[0x1];}return null;}},de=class extends _0x183f88{afterInit(){const _0x3f4490=this['editor'];if(!_0x3f4490['plugins']['has']('HighlightEditing'))return;const _0x23afed=_0x3f4490['plugins']['get']('TrackChangesEditing'),_0x181f38=_0x3f4490['locale'];_0x23afed['enableDefaultAttributesIntegration']('highlight'),_0x23afed['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x181f38,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3afddd=this['editor'],_0x2316bc=_0x3afddd['locale'];_0x3afddd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x408b05=>{if('formatInline'!=_0x408b05['type'])return;const {data:_0x327788}=_0x408b05;if(_0x327788&&'highlight'==_0x327788['commandName']){const _0x3bb178=_0x2316bc['t'],_0x5f3d22=_0x327788['commandParams'][0x0]['value'];if(_0x5f3d22){const _0x546a41=_0x3afddd['config']['get']('highlight.options')['find'](_0x30e810=>_0x30e810['model']==_0x5f3d22),_0x2c1b2d=_0x3bb178(_0x546a41['title'])['toLowerCase']();return{'type':'format','content':wt(_0x2316bc,'*Set\x20highlight:*\x20%0',_0x2c1b2d),'color':{'value':_0x546a41['color'],'title':_0x546a41['title']}};}return{'type':'format','content':wt(_0x2316bc,'*Remove\x20highlight*',wt(_0x2316bc,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x183f88{afterInit(){const _0x2d1f65=this['editor'];if(!_0x2d1f65['plugins']['has']('HorizontalLineEditing'))return;_0x2d1f65['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x230c25=_0x2d1f65['plugins']['get']('TrackChangesEditing'),_0x4c9aed=_0x2d1f65['locale'];_0x230c25['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31613e=>wt(_0x4c9aed,'ELEMENT_HORIZONTAL_LINE',_0x31613e));}},ge=class extends _0x183f88{afterInit(){const _0x51f522=this['editor'];if(!_0x51f522['plugins']['has']('HtmlEmbed'))return;const _0x3ff7dc=_0x51f522['plugins']['get']('TrackChangesEditing'),_0x131dbd=_0x51f522['locale'];_0x3ff7dc['descriptionFactory']['registerElementLabel']('rawHtml',_0x3805b8=>wt(_0x131dbd,'ELEMENT_HTML_EMBED',_0x3805b8)),_0x3ff7dc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3ff7dc['descriptionFactory']['registerDescriptionCallback'](_0xba980=>{if('attribute'!=_0xba980['type'])return;const {data:_0x49e09a}=_0xba980;if(_0x49e09a&&'value'==_0x49e09a['key']&&_0xba980['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10549f=wt(_0x131dbd,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x131dbd,'*Change\x20%0\x20content*',_0x10549f)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x9f08a8=this['editor'],_0x42e566=_0x9f08a8['locale'];_0x9f08a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a04eb=>{if('formatBlock'!=_0x2a04eb['type'])return;const {data:_0x339af4}=_0x2a04eb;if(_0x339af4&&'htmlEmbed'==_0x339af4['commandName']){const _0x57ac66=wt(_0x42e566,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x42e566,'*Change\x20%0\x20content*',_0x57ac66)};}});}},fe=class extends _0x183f88{afterInit(){const _0x27e0df=this['editor'];if(!_0x27e0df['plugins']['has']('ImageEditing'))return;const _0x4d9be3=_0x27e0df['plugins']['get']('TrackChangesEditing'),_0x3a6a5f=_0x27e0df['plugins']['get']('ImageUtils'),_0x566253=_0x27e0df['locale'];_0x4d9be3['enableCommand']('insertImage'),_0x4d9be3['descriptionFactory']['registerElementLabel']('imageBlock',_0x4112a8=>wt(_0x566253,'ELEMENT_IMAGE',_0x4112a8)),_0x4d9be3['descriptionFactory']['registerElementLabel']('imageInline',_0x3bc9be=>wt(_0x566253,'ELEMENT_INLINE_IMAGE',_0x3bc9be)),_0x4d9be3['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0x566253,'ELEMENT_CAPTION')),_0x27e0df['plugins']['has']('ImageUploadEditing')&&_0x4d9be3['enableCommand']('uploadImage'),_0x27e0df['plugins']['has']('ImageBlockEditing')&&_0x27e0df['plugins']['has']('ImageInlineEditing')&&(_0x4d9be3['enableCommand']('imageTypeInline',(_0xe11eed,_0x27cec3)=>{const _0x1bcc51=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']);_0x27e0df['model']['change'](()=>{_0x4d9be3['markBlockFormat'](_0x1bcc51,{'commandName':'imageTypeInline','commandParams':[_0x27cec3]},[],'convertBlockImageToInline');});}),_0x4d9be3['enableCommand']('imageTypeBlock',(_0xf33cbc,_0x455465)=>{_0x27e0df['model']['change'](_0x4eadc7=>{let _0x3add3b=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']),_0x186f73=_0x4eadc7['createRangeOn'](_0x3add3b);const _0x18cf3f=ot['fromPosition'](_0x186f73['start'],'toPrevious'),_0x5e86ae=ot['fromPosition'](_0x186f73['end'],'toNext');_0x4d9be3['forceDefaultExecution'](()=>_0xf33cbc(_0x455465)),_0x3add3b=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']),_0x186f73=_0x4eadc7['createRangeOn'](_0x3add3b);const _0x2a2688=_0x4eadc7['createRange'](_0x18cf3f,_0x5e86ae);_0x18cf3f['detach'](),_0x5e86ae['detach'](),_0x4d9be3['markBlockFormat'](_0x3add3b,{'commandName':'imageTypeInline','commandParams':[_0x455465]},[],'convertInlineImageToBlock'),_0x2a2688['start']['isBefore'](_0x186f73['start'])&&_0x4d9be3['markInsertion'](_0x4eadc7['createRange'](_0x2a2688['start'],_0x186f73['start']),'convertInlineImageToBlock'),_0x186f73['end']['isBefore'](_0x2a2688['end'])&&_0x4d9be3['markInsertion'](_0x4eadc7['createRange'](_0x186f73['end'],_0x2a2688['end']),'convertInlineImageToBlock');});}),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d9be3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x533666])=>{const _0x5e51ab=_0x4d9be3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x47a04a=_0x533666['start'],_0x521816=_0x533666['end'];const _0x424184=_0x27e0df['model']['schema']['getNearestSelectionRange'](_0x47a04a,'backward'),_0xdbf880=_0x27e0df['model']['schema']['getNearestSelectionRange'](_0x521816,'forward');_0x424184['isCollapsed']&&(_0x47a04a=_0x424184['start']),_0xdbf880['isCollapsed']&&(_0x521816=_0xdbf880['end']),_0x5e51ab([_0x27e0df['model']['createRange'](_0x47a04a,_0x521816)]);}),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x78b55a),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x78b55a)),_0x27e0df['plugins']['has']('ImageCaptionEditing')&&(_0x4d9be3['enableCommand']('toggleImageCaption',(_0xd97315,_0x539de4)=>{const _0x2f97f9=_0x27e0df['plugins']['get']('ImageCaptionUtils');let _0x1074a6=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']),_0x46166e=_0x2f97f9['getCaptionFromImageModelElement'](_0x1074a6);_0x27e0df['model']['change'](()=>{if(_0x46166e)return void _0x4d9be3['markDeletion'](_0x27e0df['model']['createRangeOn'](_0x46166e));const _0x46e0b7=_0x3a6a5f['isBlockImage'](_0x1074a6);_0xd97315(_0x539de4),_0x1074a6=_0x3a6a5f['getClosestSelectedImageElement'](_0x27e0df['model']['document']['selection']),_0x46166e=_0x2f97f9['getCaptionFromImageModelElement'](_0x1074a6),_0x4d9be3['markInsertion'](_0x27e0df['model']['createRangeOn'](_0x46166e),_0x46e0b7?null:'imageCaption');});}),_0x4d9be3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x78b55a));const _0x44e64c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27b63d(_0xb07268,_0x7ca67b){const _0x2be33b=_0x44e64c['findIndex'](({type:_0x2b4754,subType:_0x2aea4b})=>_0xb07268['type']==_0x2b4754&&_0xb07268['subType']==_0x2aea4b),_0x147255=_0x44e64c['findIndex'](({type:_0x52d4a3,subType:_0x5da104})=>_0x7ca67b['type']==_0x52d4a3&&_0x7ca67b['subType']==_0x5da104);if(_0x2be33b<0x0||_0x147255<0x0)return!0x1;const _0xf646d0=_0xb07268['getFirstRange'](),_0x2e5628=_0x7ca67b['getFirstRange']();if((0x0==_0x2be33b||0x1==_0x2be33b)&&0x2==_0x147255&&_0xf646d0['isIntersecting'](_0x2e5628))return!0x0;if(0x2==_0x2be33b&&0x3==_0x147255){const _0x2e6a5a=_0x4d9be3['_findSuggestions'](_0xf646d0,'insertion')['filter'](({suggestion:_0x3762ea,meta:_0x3d1308})=>_0x3d1308['isOwn']&&'convertInlineImageToBlock'==_0x3762ea['subType']);if(_0x2e6a5a['length']>0x1&&_0x2e5628['end']['isEqual'](_0xf646d0['start']))return!0x0;if(0x1==_0x2e6a5a['length']&&(_0xf646d0['start']['isEqual'](_0x2e5628['end'])||_0xf646d0['end']['isEqual'](_0x2e5628['start'])))return!0x0;}if(0x3==_0x2be33b&&0x3==_0x147255&&_0xf646d0['start']['isBefore'](_0x2e5628['start'])){const _0x5a31e0=_0xf646d0['end']['nodeAfter'],_0x5606f0=_0x2e5628['start']['nodeBefore'];return _0x3a6a5f['isBlockImage'](_0x5a31e0)&&_0x5a31e0===_0x5606f0;}return!0x1;}function _0x78b55a(_0x247657,_0x1b22bc){return _0x27b63d(_0x247657,_0x1b22bc)?[_0x247657,_0x1b22bc]:_0x27b63d(_0x1b22bc,_0x247657)?[_0x1b22bc,_0x247657]:null;}_0x27e0df['plugins']['has']('ImageResize')&&(_0x4d9be3['enableDefaultAttributesIntegration']('resizeImage'),_0x4d9be3['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0x566253,'FORMAT_IMAGE_SIZE'))),_0x27e0df['plugins']['has']('ImageTextAlternativeEditing')&&_0x4d9be3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x27e0df['plugins']['has']('PictureEditing')&&_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x2412ed=>{if('attribute'!=_0x2412ed['type'])return;const {data:_0xfc498c}=_0x2412ed;return _0xfc498c&&'sources'==_0xfc498c['key']?{'type':'format','content':''}:void 0x0;}),_0x27e0df['plugins']['has']('ImageSizeAttributes')&&_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x3201e5=>{if('attribute'!=_0x3201e5['type'])return;const {data:_0x2c09e7}=_0x3201e5;return!_0x2c09e7||'width'!=_0x2c09e7['key']&&'height'!=_0x2c09e7['key']?void 0x0:{'type':'format','content':''};}),_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x4cc863=>{if(_0x44e64c['find'](({type:_0x19e72a,subType:_0x4bb539})=>_0x4cc863['type']==_0x19e72a&&_0x4cc863['subType']==_0x4bb539))return _0x4cc863['previous']?{}:void 0x0;}),_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x126da6=>{if('insertion'==_0x126da6['type']||'deletion'==_0x126da6['type']){const _0x52921d=_0x126da6['getContainedElement']();if(_0x52921d&&_0x52921d['is']('element','caption'))return{'type':'insertion'==_0x126da6['type']?'addObject':'removeObject','element':_0x52921d,'quantity':0x1};}}),_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x1dcc86=>'formatBlock'==_0x1dcc86['type']&&'convertInlineImageToBlock'==_0x1dcc86['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1dcc86['type']&&'convertBlockImageToInline'==_0x1dcc86['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d9be3['descriptionFactory']['registerDescriptionCallback'](_0x5aae0e=>{if('attribute'!=_0x5aae0e['type'])return;const {data:_0x1e2e02}=_0x5aae0e;if(!_0x1e2e02||'alt'!=_0x1e2e02['key'])return;const _0x8678f6=_0x1e2e02['newValue'];return _0x8678f6?{'type':'format','content':wt(_0x566253,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x8678f6+'\x22')}:{'type':'format','content':wt(_0x566253,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x56a79d=this['editor'],_0x349d53=_0x56a79d['locale'];_0x56a79d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x403b7d=>{if('formatBlock'!=_0x403b7d['type']&&'formatInline'!=_0x403b7d['type'])return;const {data:_0x3efc3f}=_0x403b7d;if(_0x3efc3f){if('imageTextAlternative'==_0x3efc3f['commandName']){const _0x55a3de=_0x3efc3f['commandParams'][0x0]['newValue'];return _0x55a3de?{'type':'format','content':wt(_0x349d53,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x55a3de+'\x22')}:{'type':'format','content':wt(_0x349d53,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3efc3f['commandName']){const _0x520e9c=_0x3efc3f['commandParams'][0x0]['width'];return _0x520e9c?{'type':'format','content':wt(_0x349d53,'*Set\x20image\x20width:*\x20%0',_0x520e9c)}:{'type':'format','content':wt(_0x349d53,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4c2cff=this['editor']['locale'],_0x15bd44=this['editor']['plugins']['get']('TrackChangesEditing');_0x15bd44['enableDefaultAttributesIntegration']('replaceImageSource'),_0x15bd44['descriptionFactory']['registerDescriptionCallback'](_0x25da2b=>{if('attribute'!=_0x25da2b['type'])return;const {data:_0x1e1b6c}=_0x25da2b;return _0x1e1b6c&&'src'==_0x1e1b6c['key']?_0x1e1b6c['newValue']&&_0x1e1b6c['oldValue']?{'type':'format','content':wt(_0x4c2cff,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3c159b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c159b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c159b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c159b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c159b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x339d42=this['editor'],_0x2f5606=_0x339d42['locale'];_0x339d42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ae70=>{if('formatBlock'!=_0x41ae70['type']&&'formatInline'!=_0x41ae70['type'])return;const {data:_0x2d5b16}=_0x41ae70;return _0x2d5b16&&'replaceImageSource'==_0x2d5b16['commandName']?{'type':'format','content':wt(_0x2f5606,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x183f88{afterInit(){const _0x3c3f5f=this['editor'];if(!_0x3c3f5f['plugins']['has']('ImageStyleEditing'))return;const _0x233b21=_0x3c3f5f['plugins']['get']('TrackChangesEditing'),_0x67e7cc=_0x3c3f5f['plugins']['get']('ImageUtils'),_0x5decef={};_0x233b21['enableCommand']('imageStyle',(_0x187048,_0x32363f)=>{const _0x56d307=_0x3c3f5f['plugins']['get']('Users')['me'],_0x285de9=_0x3c3f5f['commands']['get']('imageStyle');let _0x5ef50e=_0x67e7cc['getClosestSelectedImageElement'](_0x3c3f5f['model']['document']['selection']),_0x48e314=_0x3c3f5f['model']['createRangeOn'](_0x5ef50e),_0x135e57=_0x285de9['value'];if(_0x135e57==_0x32363f['value'])return;if(_0x32363f['value']&&_0x67e7cc['isInlineImage'](_0x5ef50e)&&!_0x285de9['isStyleEnabled'](_0x32363f['value']))return;const _0x26b1d7={'commandName':'imageStyle','commandParams':[_0x32363f],'formatGroupId':_0x1172bd()};_0x3c3f5f['model']['change'](()=>{if(_0x233b21['getSuggestions']()['filter'](_0x2ef899=>_0x2ef899['isInContent']&&_0x56d307==_0x2ef899['author']&&('formatBlock'==_0x2ef899['type']||'formatInline'==_0x2ef899['type'])&&('imageStylePreApply'==_0x2ef899['subType']||'imageStylePostApply'==_0x2ef899['subType'])&&_0x2ef899['getFirstRange']()['isEqual'](_0x48e314))['forEach'](_0x1bdd87=>_0x233b21['discardSuggestion'](_0x1bdd87['head'])),_0x5ef50e=_0x67e7cc['getClosestSelectedImageElement'](_0x3c3f5f['model']['document']['selection']),_0x48e314=_0x3c3f5f['model']['createRangeOn'](_0x5ef50e),_0x285de9['refresh'](),_0x3c3f5f['commands']['get']('imageTypeInline')['refresh'](),_0x3c3f5f['commands']['get']('imageTypeBlock')['refresh'](),_0x135e57=_0x285de9['value'],_0x135e57!=_0x32363f['value'])return _0x67e7cc['isInlineImage'](_0x5ef50e)&&_0x285de9['shouldConvertImageType'](_0x32363f['value'],_0x5ef50e)?(_0x187048({..._0x32363f,'setImageSizes':!0x1}),_0x5ef50e=_0x67e7cc['getClosestSelectedImageElement'](_0x3c3f5f['model']['document']['selection']),void _0x233b21['markBlockFormat'](_0x5ef50e,{..._0x26b1d7,'commandReversedParams':[{'value':_0x135e57||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x67e7cc['isBlockImage'](_0x5ef50e)?_0x233b21['markBlockFormat'](_0x5ef50e,_0x26b1d7,[],'imageStylePostApply'):_0x233b21['markInlineFormat'](_0x48e314,_0x26b1d7,'imageStylePostApply'));});});for(const _0xa56a07 of _0x3c3f5f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5decef[_0xa56a07['name']]=_0xa56a07['title']['toLowerCase']();_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x76f8e3])=>{_0x67e7cc['setImageNaturalSizeAttributes'](_0x76f8e3['getContainedElement']());}),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4a2993,_0x1b6f1a)=>{_0x233b21['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4a2993,{'commandName':_0x1b6f1a['commandName'],'commandParams':_0x1b6f1a['commandReversedParams']});}),_0x233b21['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xc5e85c,_0x234a33){return _0x152ed7(_0xc5e85c,_0x234a33)?[_0xc5e85c,_0x234a33]:_0x152ed7(_0x234a33,_0xc5e85c)?[_0x234a33,_0xc5e85c]:null;});const _0x4800ab=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x152ed7(_0x44fe20,_0xf8004a){const _0x1beae9=_0x4800ab['findIndex'](({type:_0x78d787,subType:_0x541a63})=>_0x44fe20['type']==_0x78d787&&_0x44fe20['subType']==_0x541a63),_0x872a14=_0x4800ab['findIndex'](({type:_0x1c2d7b,subType:_0x567415})=>_0xf8004a['type']==_0x1c2d7b&&_0xf8004a['subType']==_0x567415);if(_0x1beae9<0x0||_0x872a14<0x0)return!0x1;const _0x384e43=_0x44fe20['getFirstRange'](),_0x24af46=_0xf8004a['getFirstRange']();if((0x0==_0x1beae9||0x1==_0x1beae9)&&0x2==_0x872a14&&_0x384e43['isIntersecting'](_0x24af46))return!0x0;if(0x2==_0x1beae9&&0x3==_0x872a14){const _0x56a458=_0x233b21['_findSuggestions'](_0x384e43,'insertion')['filter'](({suggestion:_0x2b6d7e,meta:_0xd85e5c})=>_0xd85e5c['isOwn']&&'convertInlineImageToBlock'==_0x2b6d7e['subType']);if(_0x56a458['length']>0x1&&_0x24af46['end']['isEqual'](_0x384e43['start']))return!0x0;if(0x1==_0x56a458['length']&&(_0x384e43['start']['isEqual'](_0x24af46['end'])||_0x384e43['end']['isEqual'](_0x24af46['start'])))return!0x0;}if(0x3==_0x1beae9&&0x3==_0x872a14&&_0x384e43['start']['isBefore'](_0x24af46['start'])){const _0x4480be=_0x384e43['end']['nodeAfter'],_0x3860b2=_0x24af46['start']['nodeBefore'];return _0x67e7cc['isBlockImage'](_0x4480be)&&_0x4480be===_0x3860b2;}return!0x1;}_0x3c3f5f['model']['document']['registerPostFixer'](()=>{let _0x338fee=!0x1;const _0xc324f8=Array['from'](_0x3c3f5f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38be7c,data:_0x3c7276}of _0xc324f8){const {group:_0x467283,type:_0x183b57,subType:_0x251396,id:_0x10dfda}=nt(_0x38be7c);if('suggestion'==_0x467283&&_0x233b21['hasSuggestion'](_0x10dfda)){if('formatBlock'==_0x183b57&&('imageStylePreApply'==_0x251396||'imageStylePostApply'==_0x251396)){const _0xd44603=_0x233b21['getSuggestion'](_0x10dfda);if(_0x3c7276['newRange']){const _0x16c3f2=_0xd44603['getFirstRange']()['getContainedElement']();if(_0x67e7cc['isBlockImage'](_0x16c3f2))continue;_0x233b21['discardSuggestion'](_0xd44603),_0x338fee=!0x0;}}if('insertion'==_0x183b57&&'imageCaption'==_0x251396&&!_0x3c7276['newRange']){const _0x310e7f=_0x233b21['getSuggestion'](_0x10dfda);_0x310e7f['next']&&_0x310e7f['next']['isInContent']&&(_0x233b21['discardSuggestion'](_0x310e7f['next']),_0x338fee=!0x0);}}}return _0x338fee;}),this['_registerLegacyDescription'](_0x5decef);}_registerLegacyDescription(_0x2970f4){const _0x495b63=this['editor'],_0x3e0981=_0x495b63['locale'];_0x495b63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52c651=>{if('formatBlock'!=_0x52c651['type']&&'formatInline'!=_0x52c651['type'])return;const {data:_0x4c8255}=_0x52c651;if(!_0x4c8255||'imageStyle'!=_0x4c8255['commandName'])return;const _0x4db898=_0x4c8255['commandParams'][0x0]['value'];return _0x1be11e('side'===_0x4db898?wt(_0x3e0981,'FORMAT_SIDE_IMAGE'):_0x2970f4[_0x4db898]||_0x4db898);function _0x1be11e(_0x4d50f8){return{'type':'format','content':wt(_0x3e0981,'*Format:*\x20%0',_0x4d50f8)};}});}},Te=class extends _0x183f88{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x9d98c3){super(_0x9d98c3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x4339c5=this['editor'],_0x5eb37e=_0x4339c5['commands']['get']('importWord'),_0x15389b=_0x4339c5['commands']['get']('trackChanges');_0x5eb37e&&(_0x5eb37e['on']('execute',(_0x1611e9,[,_0x2c283e])=>{this['_trackChangesValueDuringImport']=_0x15389b['value'],_0x2c283e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5eb37e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5eb37e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x15389b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4339c5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x124c67,_0x41d3dc){const {suggestions:_0x4bb890}=_0x41d3dc,_0x3f121a=this['editor']['commands']['get']('trackChanges'),_0xb92c25=_0x3f121a['value'];this['_trackChangesValueDuringImport']!==_0xb92c25&&(_0x3f121a['execute'](),this['_trackChangesExecuted']=!0x0),_0x4bb890&&_0x4bb890['forEach'](({id:_0x3855dd,type:_0x3088d3,author:_0x3e60f9,created_at:_0x89433b})=>{const _0x5107ab={'id':_0x3855dd,'type':_0x3088d3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3e60f9,'createdAt':_0x89433b?new Date(_0x89433b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5107ab);});}},_e=class extends _0x183f88{afterInit(){const _0x3d2a22=this['editor'],_0x16d3ab=_0x3d2a22['plugins']['get']('TrackChangesEditing');if(_0x3d2a22['plugins']['has']('IndentEditing')&&(_0x16d3ab['enableCommand']('indent'),_0x16d3ab['enableCommand']('outdent')),_0x3d2a22['plugins']['has']('IndentBlock')){for(const _0x18bf62 of['indentBlock','outdentBlock'])_0x16d3ab['enableDefaultAttributesIntegration'](_0x18bf62);if(_0x3d2a22['plugins']['has']('ListEditing')){for(const _0x22062c of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x16d3ab['enableDefaultAttributesIntegration'](_0x22062c);}}const _0x4ddc87=_0x3d2a22['locale'];_0x16d3ab['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x4ddc87,'FORMAT_INDENT')),_0x16d3ab['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x4ddc87,'FORMAT_INDENT')),_0x16d3ab['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x4ddc87,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x53af0f=this['editor'],_0x407720=_0x53af0f['locale'],_0xc58412=_0x53af0f['plugins']['get']('TrackChangesEditing');_0xc58412['descriptionFactory']['registerDescriptionCallback'](_0x3f5cd3=>{if('formatBlock'!=_0x3f5cd3['type'])return;const {data:_0x4584d1}=_0x3f5cd3;if(!_0x4584d1)return;if('indentBlock'!=_0x4584d1['commandName']&&'outdentBlock'!=_0x4584d1['commandName'])return;const _0x3e6fcc=_0x3f5cd3['getItems']()[0x0],_0x166303=_0xc58412['descriptionFactory']['getItemLabel'](_0x3e6fcc);return'indentBlock'==_0x4584d1['commandName']?{'type':'format','content':wt(_0x407720,'*Indent:*\x20%0',_0x166303)}:'outdentBlock'==_0x4584d1['commandName']?{'type':'format','content':wt(_0x407720,'*Outdent:*\x20%0',_0x166303)}:void 0x0;});}},pe=class extends _0x183f88{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x183f88{afterInit(){const _0x30a01d=this['editor'];if(!_0x30a01d['plugins']['has']('LinkEditing'))return;const _0x397941=_0x30a01d['plugins']['get']('TrackChangesEditing'),_0x5f5aca=_0x30a01d['commands']['get']('link');_0x397941['enableDefaultAttributesIntegration']('link'),_0x397941['enableDefaultAttributesIntegration']('unlink');for(const _0x24c16f of _0x5f5aca['manualDecorators'])_0x397941['descriptionFactory']['registerAttributeLabel'](_0x24c16f['id'],'link\x20('+_0x24c16f['label']['toLowerCase']()+')');_0x397941['descriptionFactory']['registerDescriptionCallback'](_0x480517=>{if('attribute'!=_0x480517['type'])return;const {data:_0x702701}=_0x480517;if(!_0x702701||'linkHref'!=_0x702701['key'])return;const _0x46a70a=_0x702701['newValue'],_0x52bf80=_0x30a01d['locale'];return{'type':'format','content':null==_0x46a70a?wt(_0x52bf80,'*Remove\x20link*'):wt(_0x52bf80,'*Set\x20link:*\x20%0','\x22'+_0x46a70a+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2a18cd=this['editor'],_0x5a9ca2=_0x2a18cd['locale'];_0x2a18cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274866=>{if('formatInline'!=_0x274866['type'])return;const {data:_0x5d0ca}=_0x274866;if(_0x5d0ca){if('link'==_0x5d0ca['commandName']){const _0x20287a=_0x5d0ca['commandParams'][0x0];return{'type':'format','content':wt(_0x5a9ca2,'*Set\x20link:*\x20%0','\x22'+_0x20287a+'\x22')};}return'unlink'==_0x5d0ca['commandName']?{'type':'format','content':wt(_0x5a9ca2,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x183f88{afterInit(){const _0x1dfa7c=this['editor'],_0x30e682=_0x1dfa7c['locale'];if(!_0x1dfa7c['plugins']['has']('LegacyListEditing'))return;const _0x1d2917=_0x1dfa7c['plugins']['get']('TrackChangesEditing'),_0x499e08=_0x1dfa7c['plugins']['has']('LegacyTodoListEditing');function _0x19c5eb(_0x581176){return()=>{const _0x3f9019=_0x1dfa7c['model']['document']['selection'],_0x31d506=_0x1dfa7c['commands']['get'](_0x581176);if(_0x31d506['value'])return void _0x1dfa7c['execute']('paragraph',{});const _0x107fb3=_0x581176['slice'](0x0,-0x4),_0x8dd97=function(_0x58a5f4,_0x382456,_0x8a0205){let _0x5afedb=Array['from'](_0x58a5f4)['filter'](_0x580fb4=>function(_0x47e50c,_0x3c01fd){return _0x3c01fd['checkChild'](_0x47e50c['parent'],'listItem')&&!_0x3c01fd['isObject'](_0x47e50c);}(_0x580fb4,_0x8a0205));_0x5afedb=_0x5afedb['filter'](_0xcff4da=>!_0xcff4da['is']('element','listItem')||_0xcff4da['getAttribute']('listType')!=_0x382456);const _0x118cc8=new Set();for(const _0x2e6537 of _0x5afedb)_0x2e6537['is']('element','listItem')?_0x118cc8['add'](Ae(_0x2e6537)):_0x118cc8['add'](_0x2e6537);return Array['from'](_0x118cc8);}(_0x3f9019['getSelectedBlocks'](),_0x107fb3,_0x1dfa7c['model']['schema']);_0x1dfa7c['model']['change'](()=>{for(const _0x31ff97 of _0x8dd97)_0x1d2917['markBlockFormat'](_0x31ff97,{'commandName':_0x581176,'commandParams':[{'forceValue':!_0x31d506['value']}],'formatGroupId':'blockName'},be(_0x31ff97));});};}function _0x327fd7(_0x25ab6b){return()=>{const _0x3700ef=function(_0xfab5d4){let _0x1359eb=Array['from'](_0xfab5d4);const _0x138933=_0x1359eb['findIndex'](_0x1b195c=>'listItem'!=_0x1b195c['name']);return _0x138933>-0x1&&(_0x1359eb=_0x1359eb['slice'](0x0,_0x138933)),_0x1359eb;}(_0x1dfa7c['model']['document']['selection']['getSelectedBlocks']()),_0x291d09=_0x1dfa7c['model']['createRange'](_0x1dfa7c['model']['createPositionAt'](_0x3700ef[0x0],'before'),_0x1dfa7c['model']['createPositionAt'](_0x3700ef[_0x3700ef['length']-0x1],'end'));_0x1dfa7c['model']['change'](()=>{_0x1d2917['markBlockFormat'](_0x291d09,{'commandName':_0x25ab6b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x20eb3f){const _0x441b16=new Set();for(const _0x237a19 of _0x20eb3f){let _0x5cd6bc=_0x237a19['nextSibling'];for(;_0x5cd6bc&&_0x5cd6bc['getAttribute']('listIndent')>_0x237a19['getAttribute']('listIndent');)_0x441b16['add'](_0x5cd6bc),_0x5cd6bc=_0x5cd6bc['nextSibling'];}return Array['from'](_0x441b16);}(_0x3700ef));});};}_0x1d2917['enableCommand']('numberedList',_0x19c5eb('numberedList')),_0x1d2917['enableCommand']('bulletedList',_0x19c5eb('bulletedList')),_0x499e08&&_0x1d2917['enableCommand']('todoList',_0x19c5eb('todoList')),_0x1d2917['enableCommand']('indentList',_0x327fd7('indentList')),_0x1d2917['enableCommand']('outdentList',_0x327fd7('outdentList')),_0x499e08&&_0x1d2917['enableCommand']('checkTodoList',()=>{const _0x5d36bd=_0x1dfa7c['commands']['get']('checkTodoList'),_0x10f205=Array['from'](_0x5d36bd['_selectedElements']);_0x10f205['filter'](_0x4cf714=>_0x4cf714['getAttribute']('todoListChecked')!=_0x5d36bd['value']),_0x1dfa7c['model']['change'](()=>{for(const _0x3bd5c4 of _0x10f205)_0x1d2917['markBlockFormat'](_0x3bd5c4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5d36bd['value']}]});});}),_0x1d2917['descriptionFactory']['registerElementLabel']('listItem',_0x1e91fd=>wt(_0x30e682,'ELEMENT_LIST_ITEM',_0x1e91fd)),_0x1d2917['descriptionFactory']['registerDescriptionCallback'](_0x109e25=>{if('formatBlock'!=_0x109e25['type']&&'formatInline'!=_0x109e25['type'])return;const {data:_0x2f4fe9}=_0x109e25;if(_0x2f4fe9){if('numberedList'==_0x2f4fe9['commandName']||'bulletedList'==_0x2f4fe9['commandName']||'todoList'==_0x2f4fe9['commandName'])switch(_0x2f4fe9['commandName']['replace']('List','')){case'bulleted':return _0x1f2834(wt(_0x30e682,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f2834(wt(_0x30e682,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f2834(wt(_0x30e682,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2f4fe9['commandName'])return{'type':'format','content':wt(_0x30e682,'*Indent:*\x20%0',wt(_0x30e682,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2f4fe9['commandName'])return{'type':'format','content':wt(_0x30e682,'*Outdent:*\x20%0',wt(_0x30e682,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2f4fe9['commandName'])return _0x2f4fe9['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x30e682,'*Check\x20item*')}:{'type':'format','content':wt(_0x30e682,'*Uncheck\x20item*')};}function _0x1f2834(_0x1cca79){return{'type':'format','content':wt(_0x30e682,'*Change\x20to:*\x20%0',_0x1cca79)};}});}};function Ae(_0x29a661){const _0xf7083b=_0x29a661['getAttribute']('listIndent');if(0x0==_0xf7083b)return _0x29a661;let _0x58ac5f=_0x29a661;for(;_0x29a661['previousSibling']&&_0x29a661['previousSibling']['is']('element','listItem');){const _0x4a3240=_0x29a661['previousSibling']['getAttribute']('listIndent');if(_0x4a3240==_0xf7083b)_0x58ac5f=_0x29a661['previousSibling'];else{if(_0x4a3240<_0xf7083b)break;}_0x29a661=_0x29a661['previousSibling'];}return _0x58ac5f;}function be(_0x496a44){const _0x2750e1=[];if(_0x496a44['is']('element','listItem')&&_0x496a44['getAttribute']('listIndent')>0x0){let _0x25a58d=_0x496a44['nextSibling'];for(;_0x25a58d&&'listItem'==_0x25a58d['name']&&_0x25a58d['getAttribute']('listIndent')==_0x496a44['getAttribute']('listIndent');)_0x2750e1['push'](_0x25a58d),_0x25a58d=_0x25a58d['nextSibling'];}return _0x2750e1;}var Ce=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x476410=this['editor']['config']['get']('list.properties'),_0x55c178=this['editor']['plugins']['get']('TrackChangesEditing');_0x476410['styles']&&_0x55c178['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x476410['reversed']&&_0x55c178['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x476410['startIndex']&&_0x55c178['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x55c178['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0xb73567,_0x7c6eac={}){const _0x536b03=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fa46e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x536b03['markMultiRangeBlockFormat'](_0x3fa46e,{'commandName':'listStyle','commandParams':[{'type':_0x7c6eac['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x166900,_0x5f1a77={}){const _0xa170ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36770a=this['_getSuggestionBlocks'](_0x2c7a00=>_0x2c7a00['is']('element','listItem')&&'numbered'===_0x2c7a00['getAttribute']('listType'));if(_0x36770a['length']<0x1)return;const _0xe53789=_0x36770a['map'](_0x758fd5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x758fd5,'before'),this['editor']['model']['createPositionAt'](_0x758fd5,0x0)));this['editor']['model']['change'](()=>{_0xa170ac['markMultiRangeBlockFormat'](_0xe53789,{'commandName':'listReversed','commandParams':[{'reversed':_0x5f1a77['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x8a613c,_0x5d2331={}){const _0x50ea7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x149f4f=this['_getSuggestionBlocks'](_0x4e675f=>_0x4e675f['is']('element','listItem')&&'numbered'===_0x4e675f['getAttribute']('listType'));if(_0x149f4f['length']<0x1)return;const _0x5ec47b=_0x149f4f['map'](_0x3bd0d4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bd0d4,'before'),this['editor']['model']['createPositionAt'](_0x3bd0d4,0x0)));this['editor']['model']['change'](()=>{_0x50ea7d['markMultiRangeBlockFormat'](_0x5ec47b,{'commandName':'listStart','commandParams':[{'startIndex':_0x5d2331['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x342b6e){if('formatBlock'!=_0x342b6e['type']&&'formatInline'!=_0x342b6e['type'])return;const _0x2cb470=this['editor']['locale'],{data:_0x42c47f}=_0x342b6e;if(!_0x42c47f)return;let _0x39e411,_0x3cec5d;switch(_0x42c47f['commandName']){case'listStyle':_0x39e411='*Change\x20to:*\x20%0',_0x3cec5d={'type':'format','content':wt(_0x2cb470,_0x39e411,wt(_0x2cb470,this['_getTranslationKeyForListStyle'](_0x42c47f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39e411=_0x42c47f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3cec5d={'type':'format','content':wt(_0x2cb470,_0x39e411)};break;case'listStart':_0x39e411='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3cec5d={'type':'format','content':wt(_0x2cb470,_0x39e411,_0x42c47f['commandParams'][0x0]['startIndex'])};}return _0x3cec5d;}_getSuggestionBlocksForListStyle(){const _0x51bd82=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b25ff=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b25ff[0x0]?.['is']('element','listItem')&&_0x5b25ff['unshift'](..._0x51bd82['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b25ff[_0x5b25ff['length']-0x1]?.['is']('element','listItem')&&_0x5b25ff['push'](..._0x51bd82['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b25ff=[...new Set(_0x5b25ff)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b25ff=_0x5b25ff['filter'](_0x497628=>_0x497628['is']('element','listItem'))),_0x5b25ff;}_getSuggestionBlocks(_0x293419){const _0x1aec7d=this['editor']['plugins']['get']('LegacyListUtils');let _0x34b3c7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x293419)['map'](_0x270098=>{const _0x306400=this['editor']['model']['createPositionAt'](_0x270098,0x0);return[..._0x1aec7d['getSiblingNodes'](_0x306400,'backward'),..._0x1aec7d['getSiblingNodes'](_0x306400,'forward')];})['flat']();return _0x34b3c7=[...new Set(_0x34b3c7)],_0x34b3c7;}_getTranslationKeyForListStyle(_0x39ff44){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x39ff44)||'default')['toUpperCase']()+'_LIST_'+_0x39ff44['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x183f88{afterInit(){const _0x27a930=this['editor'];if(!_0x27a930['plugins']['has']('MediaEmbedEditing'))return;const _0x11cc14=_0x27a930['plugins']['get']('TrackChangesEditing'),_0x56641d=_0x27a930['locale'];_0x11cc14['enableCommand']('mediaEmbed'),_0x11cc14['descriptionFactory']['registerElementLabel']('media',_0x54dd53=>wt(_0x56641d,'ELEMENT_MEDIA',_0x54dd53)),_0x27a930['plugins']['has']('MediaEmbedResizeEditing')&&(_0x11cc14['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x11cc14['descriptionFactory']['registerDescriptionCallback'](_0x29dcd5=>{if('attribute'!=_0x29dcd5['type'])return;const {data:_0x509caf}=_0x29dcd5;if(!_0x509caf||'resizedWidth'!=_0x509caf['key'])return;const _0x562ea2=_0x29dcd5['getContainedElement']();if(!_0x562ea2||!_0x562ea2['is']('element','media'))return;const _0x1ea6b5=wt(_0x56641d,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0x56641d,'*Set\x20format:*\x20%0',_0x1ea6b5)};}));}},Re=class extends _0x183f88{afterInit(){const _0x2a2206=this['editor'];if(!_0x2a2206['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x55c25e=_0x2a2206['plugins']['get']('TrackChangesEditing'),_0x4cf958=_0x2a2206['locale'],_0x5e974d=_0x2a2206['plugins']['get']('MediaEmbedStyleEditing'),_0x5f51bd={};for(const _0x1645e2 of _0x5e974d['normalizedStyles'])_0x5f51bd[_0x1645e2['name']]=_0x1645e2['title']['toLowerCase']();const _0x2b81ea=_0x5e974d['normalizedStyles']['find'](_0x56663a=>_0x56663a['isDefault'])?.['name'];_0x55c25e['enableCommand']('mediaStyle',(_0x548fd7,_0x1b5f03)=>{const _0x678f9c=_0x2a2206['plugins']['get']('Users')['me'],_0x1b3716=_0x2a2206['commands']['get']('mediaStyle'),_0x412c7b=function(_0x1a975d){const _0x3d1d1a=_0x1a975d['model']['document']['selection']['getSelectedElement']();return _0x3d1d1a&&_0x3d1d1a['is']('element','media')?_0x3d1d1a:null;}(_0x2a2206);if(!_0x412c7b)return;const _0x102cad=_0x2a2206['model']['createRangeOn'](_0x412c7b);let _0x1b9b05=_0x1b3716['value'];if(_0x1b9b05==_0x1b5f03['value'])return;const _0x28db97={'commandName':'mediaStyle','commandParams':[_0x1b5f03],'formatGroupId':_0x1172bd()};_0x2a2206['model']['change'](()=>{_0x55c25e['getSuggestions']()['filter'](_0x15c2f7=>_0x15c2f7['isInContent']&&_0x678f9c==_0x15c2f7['author']&&'formatBlock'==_0x15c2f7['type']&&'mediaStylePostApply'==_0x15c2f7['subType']&&_0x15c2f7['getFirstRange']()['isEqual'](_0x102cad))['forEach'](_0x83c386=>_0x55c25e['discardSuggestion'](_0x83c386['head'])),_0x1b3716['refresh'](),_0x1b9b05=_0x1b3716['value'],_0x1b9b05!=_0x1b5f03['value']&&_0x55c25e['markBlockFormat'](_0x412c7b,{..._0x28db97,'commandReversedParams':[{'value':'string'==typeof _0x1b9b05?_0x1b9b05:null}]},[],'mediaStylePostApply');});}),_0x55c25e['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x55c25e['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1e1651,_0x42e586)=>{_0x55c25e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1e1651,{'commandName':_0x42e586['commandName'],'commandParams':_0x42e586['commandReversedParams']});}),_0x55c25e['descriptionFactory']['registerDescriptionCallback'](_0x194da7=>{if('formatBlock'!=_0x194da7['type'])return;const {data:_0x4e04ae}=_0x194da7;if(!_0x4e04ae||'mediaStyle'!=_0x4e04ae['commandName'])return;const _0x5e398a=_0x4e04ae['commandParams'][0x0]['value']||_0x2b81ea;if(!_0x5e398a)return;const _0x2e2cdb=_0x5f51bd[_0x5e398a]||_0x5e398a;return{'type':'format','content':wt(_0x4cf958,'*Format:*\x20%0',_0x2e2cdb)};});}},Ne=class extends _0x183f88{afterInit(){const _0x3a0973=this['editor'];_0x3a0973['plugins']['has']('MentionEditing')&&_0x3a0973['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x183f88{afterInit(){const _0x35dd2b=this['editor'];if(!_0x35dd2b['plugins']['has']('MergeFieldsEditing'))return;const _0x26fc05=_0x35dd2b['plugins']['get']('TrackChangesEditing'),_0xe054a=_0x35dd2b['locale'];_0x26fc05['enableCommand']('insertMergeField'),_0x26fc05['enableCommand']('insertMergeFieldBlock'),_0x26fc05['enableCommand']('insertMergeFieldImage'),_0x26fc05['descriptionFactory']['registerElementLabel']('mergeField',_0xd6bc5c=>wt(_0xe054a,'ELEMENT_MERGE_FIELD',_0xd6bc5c)),_0x26fc05['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xc60a63=>wt(_0xe054a,'ELEMENT_MERGE_FIELD',_0xc60a63)),_0x26fc05['descriptionFactory']['registerDescriptionCallback'](_0x19da66=>{if('insertion'!=_0x19da66['type']&&'deletion'!=_0x19da66['type'])return;const _0x37a240=_0x19da66['getContainedElement']();if(null==_0x37a240)return;const _0x4a58c0=_0x35dd2b['plugins']['get']('MergeFieldsEditing');let _0x462c54;switch(_0x4a58c0['getMergeFieldType'](_0x37a240)){case null:return;case'image':{const _0x118d17=_0x4a58c0['unwrapAffixes'](_0x37a240['getAttribute']('src'));_0x462c54=_0x4a58c0['getLabel'](_0x118d17)||_0x118d17;break;}default:{const _0x51905f=_0x37a240['getAttribute']('id');_0x462c54=_0x4a58c0['getLabel'](_0x51905f)||_0x51905f;break;}}return'insertion'==_0x19da66['type']?{'type':'insertion','content':wt(_0xe054a,'*Insert:*\x20%0','\x22'+_0x462c54+'\x22\x20'+wt(_0xe054a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0xe054a,'*Remove:*\x20%0','\x22'+_0x462c54+'\x22\x20'+wt(_0xe054a,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x183f88{afterInit(){const _0xfb7623=this['editor'],_0x4bd80c=_0xfb7623['plugins']['get']('TrackChangesEditing');_0xfb7623['plugins']['has']('MultiLevelList')&&(_0x4bd80c['enableDefaultAttributesIntegration']('multiLevelList'),_0x4bd80c['descriptionFactory']['registerDescriptionCallback'](_0xd8acb2=>this['handleDescriptions'](_0xd8acb2)));}handleDescriptions(_0x59c4a7){const _0x5525ab=this['editor']['locale'],{data:_0xfebb6e}=_0x59c4a7,_0x426995={'type':'format','content':''};if(_0xfebb6e&&'listMarkerStyle'==_0xfebb6e['key']){if(!_0xfebb6e['oldValue'])return{'type':'format','content':wt(_0x5525ab,'*Set\x20format:*\x20%0',wt(_0x5525ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfebb6e['newValue']+')'};if(!_0xfebb6e['newValue']){let _0x21a0fb=_0x59c4a7['head'];for(;_0x21a0fb;){if(_0x21a0fb['data']&&'listType'==_0x21a0fb['data']['key']&&_0x21a0fb['data']['newValue'])return _0x426995;_0x21a0fb=_0x21a0fb['next'];}return{'type':'format','content':wt(_0x5525ab,'*Remove\x20format:*\x20%0',wt(_0x5525ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfebb6e['oldValue']+')'};}}}},Me=class extends _0x183f88{afterInit(){const _0xe2a5f3=this['editor'];if(!_0xe2a5f3['plugins']['has']('PageBreakEditing'))return;_0xe2a5f3['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x296307=_0xe2a5f3['plugins']['get']('TrackChangesEditing'),_0x190d0f=_0xe2a5f3['locale'];_0x296307['descriptionFactory']['registerElementLabel']('pageBreak',_0x282404=>wt(_0x190d0f,'ELEMENT_PAGE_BREAK',_0x282404));}},Oe=class extends _0x183f88{afterInit(){const _0x48adcc=this['editor'];if(!_0x48adcc['plugins']['has']('Paragraph'))return;const _0x48d4e6=_0x48adcc['locale'],_0x109d98=_0x48adcc['plugins']['get']('TrackChangesEditing');_0x109d98['descriptionFactory']['registerElementLabel']('paragraph',_0x459dcc=>wt(_0x48d4e6,'ELEMENT_PARAGRAPH',_0x459dcc)),_0x109d98['enableDefaultAttributesIntegration']('paragraph'),_0x109d98['enableCommand']('insertParagraph');const _0xeae6ee=_0x109d98['descriptionFactory'];_0xeae6ee['registerDescriptionCallback'](_0x2f17fb=>{if('insertion'!==_0x2f17fb['type'])return;const {start:_0x2c090e,end:_0x327651}=_0x2f17fb['getFirstRange']();if(!_0x2c090e['isTouching'](_0x327651)||!_0x2c090e['nodeAfter'])return;const _0x37803d=_0x48adcc['model']['schema'],_0x3b0cdd=_0x2c090e['nodeAfter'];return _0x37803d['isBlock'](_0x3b0cdd)&&!_0x37803d['isLimit'](_0x3b0cdd)&&_0x37803d['checkChild'](_0x3b0cdd,'$text')?{'type':'insertion','content':wt(_0x48d4e6,'*Insert:*\x20%0',_0xeae6ee['getItemLabel'](_0x3b0cdd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x593c51=this['editor'],_0x4de8f3=_0x593c51['locale'];_0x593c51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31cd8c=>{if('formatBlock'!=_0x31cd8c['type'])return;const {data:_0x159242}=_0x31cd8c;return _0x159242&&'paragraph'==_0x159242['commandName']?{'type':'format','content':wt(_0x4de8f3,'*Change\x20to:*\x20%0',wt(_0x4de8f3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x183f88{afterInit(){const _0x53a96f=this['editor'];_0x53a96f['commands']['get']('replaceSource')&&_0x53a96f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x183f88{afterInit(){const _0x57a106=this['editor'];_0x57a106['plugins']['has']('RemoveFormatEditing')&&(_0x57a106['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x193bb7=this['editor'];_0x193bb7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38661b=>{if('formatBlock'!=_0x38661b['type']&&'formatInline'!=_0x38661b['type'])return;const {data:_0xadafed}=_0x38661b;return _0xadafed&&'removeFormat'==_0xadafed['commandName']?{'type':'format','content':wt(_0x193bb7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x183f88{afterInit(){const _0x162fdf=this['editor'];if(!_0x162fdf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x51f126=_0x162fdf['plugins']['get']('TrackChangesEditing');_0x51f126['enableCommand']('goToPreviousRestrictedEditingException'),_0x51f126['enableCommand']('goToNextRestrictedEditingException');const _0x261d60=_0x162fdf['plugins']['get']('RestrictedEditingModeEditing');_0x261d60['enableCommand']('trackChanges'),_0x261d60['enableCommand']('acceptSuggestion'),_0x261d60['enableCommand']('discardSuggestion'),_0x261d60['enableCommand']('acceptAllSuggestions'),_0x261d60['enableCommand']('discardAllSuggestions'),_0x261d60['enableCommand']('acceptSelectedSuggestions'),_0x261d60['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x183f88{afterInit(){const _0x427692=this['editor'];if(!_0x427692['plugins']['has']('ShiftEnter'))return;const _0x2a62a0=_0x427692['plugins']['get']('TrackChangesEditing');_0x2a62a0['enableCommand']('shiftEnter'),_0x2a62a0['descriptionFactory']['registerElementLabel']('softBreak',_0x586038=>wt(_0x427692['locale'],'ELEMENT_LINE_BREAK',_0x586038));}};function De(_0x3d316b,_0x5f0309,_0x16fed5){const _0x332719=[];for(const _0x57e7c2 of _0x5f0309['getItems']())_0x57e7c2['hasAttribute'](_0x3d316b)&&_0x332719['push'](_0x16fed5['createRangeOn'](_0x57e7c2));return _0x332719;}var Ue=class extends _0x183f88{afterInit(){const _0x52276e=this['editor'],_0x32e658=_0x52276e['plugins']['get']('TrackChangesEditing');_0x52276e['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x32e658['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x45dbbf=this['editor'],_0x3ff78d=_0x45dbbf['model'],_0x6d1b71=_0x45dbbf['locale'],_0x5a8c41=_0x45dbbf['plugins']['get']('TrackChangesEditing'),_0x434f61='restrictedEditingException',_0x96f36f=_0x45dbbf['commands']['get'](_0x434f61);_0x5a8c41['enableCommand'](_0x434f61,(_0x45a3fe,_0x24258b={})=>{const _0x48a35f=_0x3ff78d['document']['selection'];if(_0x48a35f['isCollapsed'])return void _0x45a3fe(_0x24258b);const _0x5ad201=void 0x0!==_0x24258b['forceValue']?_0x24258b['forceValue']:!_0x96f36f['value'];_0x3ff78d['change'](()=>{const _0x47ac1b=Array['from'](_0x48a35f['getRanges']());for(const _0x3e0f5e of _0x47ac1b){const _0x129970=_0x5ad201?[_0x3e0f5e]:De(_0x434f61,_0x3e0f5e,_0x3ff78d);for(const _0xcf563e of _0x129970)_0x5a8c41['markInlineFormat'](_0xcf563e,{'commandName':_0x434f61,'commandParams':[{'forceValue':_0x5ad201}]});}});}),_0x5a8c41['descriptionFactory']['registerDescriptionCallback'](_0x39eda0=>{if('formatBlock'!=_0x39eda0['type']&&'formatInline'!=_0x39eda0['type'])return;const {data:_0x1ee319}=_0x39eda0;return _0x1ee319&&_0x1ee319['commandName']==_0x434f61?_0x1ee319['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x6d1b71,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x6d1b71,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x4e5630=this['editor'],_0x522121=_0x4e5630['locale'],_0x320a3c=_0x4e5630['plugins']['get']('TrackChangesEditing'),_0x2f6e04='restrictedEditingExceptionBlock',_0xf4d503=this['editor']['commands']['get'](_0x2f6e04);_0x320a3c['enableCommand'](_0x2f6e04,(_0x5b3b7d,_0x52f8f8={})=>{const _0x42f1d4=this['editor']['model']['document']['selection'],_0x4d181c=_0x52f8f8&&void 0x0!==_0x52f8f8['forceValue']?_0x52f8f8['forceValue']:!_0xf4d503['value'];let _0x530e03=[];if(_0x4d181c){const _0x15e023=Array['from'](_0x42f1d4['getSelectedBlocks']())['filter'](_0x6658c4=>function(_0x12f9f1){return!!_0x12f9f1['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x6658c4)||function(_0x2020fd,_0x450c76){const _0x1322a8=_0x450c76['createContext'](_0x2020fd['parent']);return!!_0x450c76['checkChild'](_0x1322a8,'restrictedEditingException')&&!!_0x450c76['checkChild'](_0x1322a8['push']('restrictedEditingException'),_0x2020fd);}(_0x6658c4,this['editor']['model']['schema']));_0x530e03=kt(_0x15e023,_0x4e5630['model']);}else{const _0x4198f9=Array['from'](_0x42f1d4['getSelectedBlocks']())['map'](_0x4a8ff0=>function(_0x186a6e){let _0x158f0f=_0x186a6e;for(;_0x158f0f['parent'];){if('restrictedEditingException'==_0x158f0f['parent']['name'])return _0x158f0f;_0x158f0f=_0x158f0f['parent'];}return null;}(_0x4a8ff0))['filter'](_0x8016e5=>!!_0x8016e5);_0x530e03=kt(_0x4198f9,_0x4e5630['model']);}_0x4e5630['model']['change'](()=>{for(const _0x359fcc of _0x530e03)_0x320a3c['markBlockFormat'](_0x359fcc,{'commandName':_0x2f6e04,'commandParams':[{'forceValue':_0x4d181c}]});});}),_0x320a3c['descriptionFactory']['registerDescriptionCallback'](_0x3af738=>{const {data:_0x2ec42f}=_0x3af738;if(_0x2ec42f&&_0x2ec42f['commandName']==_0x2f6e04)return _0x2ec42f['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x522121,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x522121,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x183f88{afterInit(){const _0x1c9777=this['editor'];_0x1c9777['plugins']['has']('Style')&&_0x1c9777['plugins']['has']('DataSchema')&&(_0x1c9777['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x386d87=this['editor'],_0xf13c2a=_0x386d87['locale'];_0x386d87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4550c6=>{if('formatBlock'!=_0x4550c6['type']&&'formatInline'!=_0x4550c6['type'])return;const {data:_0x566501}=_0x4550c6;return _0x566501&&'style'===_0x566501['commandName']?_0x566501['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xf13c2a,'*Set\x20format:*\x20%0',_0x566501['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0xf13c2a,'*Remove\x20format:*\x20%0',_0x566501['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x183f88{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x568b3e){super(_0x568b3e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x486400=this['editor'],_0x42bd3c=_0x486400['model']['document']['selection'];if(!_0x486400['plugins']['has']('TableEditing'))return;const _0x2376ab=_0x486400['locale'],_0x1b3bda=_0x486400['plugins']['get']('TrackChangesEditing'),_0x32d55b=_0x486400['plugins']['get']('TableUtils');_0x1b3bda['descriptionFactory']['registerElementLabel']('table',_0x24a8a6=>wt(_0x2376ab,'ELEMENT_TABLE',_0x24a8a6)),this['_setupColumnsRowsFixing'](),_0x1b3bda['enableCommand']('insertTable'),_0x1b3bda['enableCommand']('selectTableRow'),_0x1b3bda['enableCommand']('selectTableColumn');for(const _0x54c1dc of['insertTableRowAbove','insertTableRowBelow']){const _0x372053=_0x486400['commands']['get'](_0x54c1dc);_0x1b3bda['enableCommand'](_0x54c1dc,_0x5c530d=>{_0x486400['model']['change'](_0x5b297c=>{_0x5c530d();const _0x1fa023='above'===_0x372053['order'],_0x3ac003=_0x32d55b['getSelectionAffectedTableCells'](_0x42bd3c),_0x3bb758=_0x32d55b['getRowIndexes'](_0x3ac003),_0x2a033d=_0x1fa023?_0x3bb758['first']-0x1:_0x3bb758['last']+0x1,_0x1ab6dd=_0x3ac003[0x0]['findAncestor']('table'),_0x4fc5f9=_0x32d55b['createTableWalker'](_0x1ab6dd,{'startRow':_0x2a033d,'endRow':_0x2a033d}),_0x20016f=Array['from'](_0x4fc5f9)['map'](_0x606a43=>_0x5b297c['createRangeOn'](_0x606a43['cell']));_0x1b3bda['markMultiRangeInsertion'](_0x20016f,'tableRow');});});}for(const _0x4e919c of['insertTableColumnLeft','insertTableColumnRight']){const _0x1a51e1=_0x486400['commands']['get'](_0x4e919c);_0x1b3bda['enableCommand'](_0x4e919c,_0x5978c6=>{_0x486400['model']['change'](_0x30d215=>{_0x5978c6();const _0x53dd2c='left'===_0x1a51e1['order'],_0x4bc174=_0x32d55b['getSelectionAffectedTableCells'](_0x42bd3c),_0x2cf1b8=_0x32d55b['getColumnIndexes'](_0x4bc174),_0x3db59e=_0x53dd2c?_0x2cf1b8['first']-0x1:_0x2cf1b8['last']+0x1,_0x298de1=_0x4bc174[0x0]['findAncestor']('table'),_0x19eb37=_0x32d55b['createTableWalker'](_0x298de1,{'startRow':0x0,'column':_0x3db59e,'includeAllSlots':!0x1}),_0x598858=Array['from'](_0x19eb37)['map'](_0x30edc7=>_0x30d215['createRangeOn'](_0x30edc7['cell']));_0x1b3bda['markMultiRangeInsertion'](_0x598858,'tableColumn');});});}for(const _0x3bbe3a of['removeTableRow','removeTableColumn']){const _0x4f5f5a=_0x3bbe3a['substr'](0xb),_0x4b87ca=_0x4f5f5a['toLowerCase'](),_0x643421=_0x4b87ca['substr'](0x0,0x3)+'span',_0x455d8f='table'+_0x4f5f5a,_0x5e151d='min'+_0x4f5f5a,_0xee99a='max'+_0x4f5f5a;_0x1b3bda['enableCommand'](_0x3bbe3a,()=>{_0x486400['model']['change'](_0x4cd181=>{const _0x5441c1=_0x32d55b['getSelectionAffectedTableCells'](_0x42bd3c),_0x30ffca=_0x5441c1[0x0]['findAncestor']('table');let _0x2b2280;if('removeTableRow'==_0x3bbe3a){const _0x4bc876=_0x32d55b['getRowIndexes'](_0x5441c1);_0x2b2280={'startRow':_0x4bc876['first'],'endRow':_0x4bc876['last'],'includeAllSlots':!0x0};}else{const _0x2e4b0c=_0x32d55b['getColumnIndexes'](_0x5441c1);_0x2b2280={'startColumn':_0x2e4b0c['first'],'endColumn':_0x2e4b0c['last'],'includeAllSlots':!0x0};}const _0x363038=_0x32d55b['createTableWalker'](_0x30ffca,_0x2b2280),_0x2e5a91=Array['from'](_0x363038)['map'](({cell:_0x2a1bc4})=>_0x2a1bc4),_0xfba715=Ge(_0x2e5a91['filter'](_0xe82357=>_0xe82357['hasAttribute'](_0x643421))),_0x94c4e=Ge(_0x2e5a91['filter'](_0x5c02f4=>!_0x5c02f4['hasAttribute'](_0x643421)))['map'](_0x7fa2b7=>_0x4cd181['createRangeOn'](_0x7fa2b7)),_0x1fa635=_0x1b3bda['markMultiRangeDeletion'](_0x94c4e,_0x455d8f);if(_0x1fa635&&('tableRow'==_0x1fa635['subType']||'tableColumn'==_0x1fa635['subType'])){const _0x505c6f=this['_getSuggestionCoords'](_0x1fa635);for(const _0xf872fb of _0xfba715){const _0x1ec8a9=_0x4cd181['createRangeOn'](_0xf872fb),_0x218c3c=_0x32d55b['getCellLocation'](_0xf872fb),_0x4016b7=_0xf872fb['getAttribute'](_0x643421)-0x1,_0x1eddc2=_0x505c6f[_0x5e151d],_0x3bd45e=_0x505c6f[_0xee99a];_0x1eddc2<=_0x218c3c[_0x4b87ca]&&_0x218c3c[_0x4b87ca]+_0x4016b7<=_0x3bd45e&&_0x1fa635['addRange'](_0x1ec8a9);}}});});}function _0x57dded(_0x56a67c){const _0x453fbe=Array['from'](_0x42bd3c['getRanges']())['map'](_0x3d0166=>at['fromRange'](_0x3d0166));_0x486400['model']['change'](_0x596803=>{const _0x10b772=_0x596803['batch'];_0x56a67c=_0x56a67c['filter'](_0x215073=>'$graveyard'!=_0x215073['root']['rootName']),_0x596803['setSelection'](_0x56a67c),_0x486400['commands']['get']('removeTableRow')['refresh'](),_0x486400['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x486400['model']['enqueueChange'](()=>{_0x486400['model']['enqueueChange'](_0x10b772,_0x4b5c6e=>{const _0x85ddf4=_0x453fbe['filter'](_0x2cc78e=>'$graveyard'!=_0x2cc78e['root']['rootName']);_0x85ddf4['length']>0x0&&_0x4b5c6e['setSelection'](_0x85ddf4);for(const _0x44bf8c of _0x453fbe)_0x44bf8c['detach']();});});});}function _0x4b8af6(_0x4bf6fc){_0x486400['model']['change'](_0xe1defc=>{const _0x4f6280=Array['from'](_0x42bd3c['getRanges']())['map'](_0x4fc20b=>at['fromRange'](_0x4fc20b)),_0x40f464=[];for(const _0x40c746 of _0x4bf6fc)for(const _0x1728d3 of _0x40c746['getItems']({'shallow':!0x0}))_0x40f464['push'](_0x1728d3);for(const _0x1c542d of _0x40f464)'$graveyard'!=_0x1c542d['root']['rootName']&&(_0xe1defc['setSelection'](_0xe1defc['createPositionAt'](_0x1c542d,0x0)),_0x486400['commands']['get']('removeTableColumn')['refresh'](),_0x486400['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2edded=_0x4f6280['filter'](_0x48f00a=>'$graveyard'!=_0x48f00a['root']['rootName']);_0x2edded['length']>0x0&&_0xe1defc['setSelection'](_0x2edded);for(const _0x5b240f of _0x4f6280)_0x5b240f['detach']();});}function _0x3d2bbb(_0xb00281,_0x3c7b3b){return _0x3c7b3b['every'](_0x3568b6=>_0xb00281['some'](_0x4dbcd2=>_0x4dbcd2['end']['isEqual'](_0x3568b6['start'])||_0x3568b6['end']['isEqual'](_0x4dbcd2['start'])));}function _0x564b7c(_0x350a4b,_0x17cfe9){return!_0x350a4b['some'](_0xad722b=>_0x17cfe9['some'](_0x4ebda3=>_0xad722b['isIntersecting'](_0x4ebda3)))&&_0x350a4b['some'](_0x15ceda=>_0x17cfe9['some'](_0x5d32be=>_0x15ceda['end']['isTouching'](_0x5d32be['start'])));}_0x1b3bda['descriptionFactory']['registerDescriptionCallback'](_0x30e124=>{if('insertion'!=_0x30e124['type']&&'deletion'!=_0x30e124['type'])return;const _0x3be171=_0x30e124['getContainedElement']();if(null!=_0x3be171&&_0x3be171['is']('element','table')){if('insertion'==_0x30e124['type']){const _0x249c1a=_0x30e124['getItems']()['filter'](_0x3eb4cb=>_0x3eb4cb['is']('$textProxy'))['map'](_0x57cb35=>_0x57cb35['data']);if(_0x249c1a['length'])return{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x249c1a['join']('\x20')+'\x22'))};}if('deletion'==_0x30e124['type']){const _0x95ffa5=_0x30e124['getItems']()['filter'](_0x4cdf37=>_0x4cdf37['is']('$textProxy'))['map'](_0x490032=>_0x490032['data']);if(_0x95ffa5['length'])return{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x95ffa5['join']('\x20')+'\x22'))};}}}),_0x1b3bda['descriptionFactory']['registerDescriptionCallback'](_0x2b1b60=>{if('tableRow'==_0x2b1b60['subType']){const _0x30dea0=_0x2b1b60['getItems']()['filter'](_0x90d003=>_0x90d003['is']('$textProxy'))['map'](_0x51d3f5=>_0x51d3f5['data']),_0xd359b2=this['_getSuggestionCoords'](_0x2b1b60),_0x38e71c=_0xd359b2['maxRow']-_0xd359b2['minRow']+0x1;if('insertion'==_0x2b1b60['type'])return _0x30dea0['length']?{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38e71c,'\x22'+_0x30dea0['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_ROW',_0x38e71c))};if('deletion'==_0x2b1b60['type'])return _0x30dea0['length']?{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38e71c,'\x22'+_0x30dea0['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_ROW',_0x38e71c))};}if('tableColumn'==_0x2b1b60['subType']){const _0x4dc582=_0x2b1b60['getItems']()['filter'](_0x43096c=>_0x43096c['is']('$textProxy'))['map'](_0x55ecab=>_0x55ecab['data']),_0x27b48c=this['_getSuggestionCoords'](_0x2b1b60),_0x1a2ea3=_0x27b48c['maxColumn']-_0x27b48c['minColumn']+0x1;if('insertion'==_0x2b1b60['type'])return _0x4dc582['length']?{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a2ea3,'\x22'+_0x4dc582['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x2376ab,'*Insert:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_COLUMN',_0x1a2ea3))};if('deletion'==_0x2b1b60['type'])return _0x4dc582['length']?{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a2ea3,'\x22'+_0x4dc582['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x2376ab,'*Remove:*\x20%0',wt(_0x2376ab,'ELEMENT_TABLE_COLUMN',_0x1a2ea3))};}}),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x57dded),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x57dded),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4b8af6),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4b8af6),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3d2bbb),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3d2bbb),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x564b7c),_0x1b3bda['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x564b7c);}_acceptFormatSuggestionCallbackFactory(){const _0x47c429=this['editor'],_0x3e6c03=_0x47c429['model']['document']['selection'];return(_0x4016bb,_0x342e6d)=>{_0x47c429['model']['change'](_0x5ca511=>{const {commandName:_0x35ea10,commandParams:_0xaf9e15}=_0x342e6d;let _0x381f51=_0x4016bb[0x0]['end']['nodeBefore'];_0xaf9e15&&_0xaf9e15[0x0]&&!0x1===_0xaf9e15[0x0]['forceValue']&&(_0x381f51=_0x4016bb[0x0]['start']['nodeAfter']);const _0x28f5fa=_0x5ca511['createRangeIn'](_0x381f51);if('$graveyard'==_0x28f5fa['root']['rootName'])return;const _0x11d8c8=Array['from'](_0x3e6c03['getRanges']())['map'](_0x50f325=>at['fromRange'](_0x50f325));_0x5ca511['setSelection'](_0x28f5fa),_0x47c429['commands']['get'](_0x35ea10)['refresh'](),_0xaf9e15['push']({'forceDefaultExecution':!0x0}),_0x47c429['execute'](_0x35ea10,..._0xaf9e15);const _0x404b4e=_0x11d8c8['filter'](_0x3c8704=>'$graveyard'!=_0x3c8704['root']['rootName']);_0x404b4e['length']>0x0&&_0x5ca511['setSelection'](_0x404b4e);for(const _0xd9ecab of _0x11d8c8)_0xd9ecab['detach']();});};}_getCoordsForCells(_0x15ce8a){const _0x46a762=this['editor']['plugins']['get']('TableUtils');let _0x535caa=Number['MAX_SAFE_INTEGER'],_0x46b6bf=Number['MIN_SAFE_INTEGER'],_0x2e9230=Number['MAX_SAFE_INTEGER'],_0x490339=Number['MIN_SAFE_INTEGER'];for(const _0x2b67d7 of _0x15ce8a){if('$graveyard'==_0x2b67d7['root']['rootName'])continue;const {row:_0xa15cf6,column:_0x2bb3cc}=_0x46a762['getCellLocation'](_0x2b67d7),_0x3e71ac=_0x2b67d7['hasAttribute']('rowspan')?_0x2b67d7['getAttribute']('rowspan')-0x1:0x0,_0x20cbdc=_0x2b67d7['hasAttribute']('colspan')?_0x2b67d7['getAttribute']('colspan')-0x1:0x0;_0x535caa=_0xa15cf6<_0x535caa?_0xa15cf6:_0x535caa,_0x46b6bf=_0xa15cf6+_0x3e71ac>_0x46b6bf?_0xa15cf6+_0x3e71ac:_0x46b6bf,_0x2e9230=_0x2bb3cc<_0x2e9230?_0x2bb3cc:_0x2e9230,_0x490339=_0x2bb3cc+_0x20cbdc>_0x490339?_0x2bb3cc+_0x20cbdc:_0x490339;}return{'minRow':_0x535caa,'maxRow':_0x46b6bf,'minColumn':_0x2e9230,'maxColumn':_0x490339};}_setupColumnsRowsFixing(){const _0xf5d0fe=this['editor'],_0x5d839c=_0xf5d0fe['plugins']['get']('TrackChangesEditing'),_0x30d904=_0xf5d0fe['plugins']['get']('TableUtils');_0xf5d0fe['model']['document']['on']('change:data',()=>{const _0x4cc9f5=Array['from'](_0xf5d0fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a8d15,data:_0x205686}of _0x4cc9f5){const {group:_0xb14aef,id:_0x49b66b,subType:_0x490fee}=nt(_0x5a8d15);if('suggestion'!=_0xb14aef)continue;if(null!=_0x205686['oldRange'])continue;const _0x12f182=_0x5d839c['getSuggestion'](_0x49b66b);this['_tablePostFixingSubtypes']['includes'](_0x490fee)&&this['_tableSuggestions']['add'](_0x12f182);}},{'priority':'low'});const _0x38b046=(_0x12eb00,_0x5d955c)=>{let _0x1f9ded=!0x1;const _0x1ea2c7=_0x5d955c['createRangeOn'](_0x12eb00),_0x330eaf=_0x12eb00['findAncestor']('table'),_0x148b9c=_0x30d904['getCellLocation'](_0x12eb00);for(const _0x37142d of this['_tableSuggestions']){const _0x36003d=_0x37142d['subType'],_0xf6a04d=_0x36003d['startsWith']('tablePaste'),_0x4d8add=_0x36003d['substr'](_0xf6a04d?0xa:0x5),_0x5bc2a6=_0x4d8add['toLowerCase'](),_0x19b2bd=_0x5bc2a6['substr'](0x0,0x3)+'span',_0x364404='min'+_0x4d8add,_0x476f70='max'+_0x4d8add;if(!_0x37142d['isInContent'])continue;if(_0x330eaf!=_0x37142d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x37142d['isIntersectingWithRange'](_0x1ea2c7))continue;const _0x5e4b24=_0x12eb00['hasAttribute'](_0x19b2bd)?_0x12eb00['getAttribute'](_0x19b2bd)-0x1:0x0,_0x440018=this['_getSuggestionCoords'](_0x37142d),_0x59cfe4=_0x440018[_0x364404],_0x4f472f=_0x440018[_0x476f70];_0x59cfe4<=_0x148b9c[_0x5bc2a6]&&_0x148b9c[_0x5bc2a6]+_0x5e4b24<=_0x4f472f&&(_0x37142d['addRange'](_0x1ea2c7),_0x1f9ded=!0x0);}return _0x1f9ded;};_0xf5d0fe['model']['document']['registerPostFixer'](_0x301c8d=>{let _0x2075f0=!0x1;for(const _0x21fb2b of _0xf5d0fe['model']['document']['differ']['getChanges']())if('insert'==_0x21fb2b['type']){if('tableRow'==_0x21fb2b['name']){for(const _0x19b78e of _0x21fb2b['position']['nodeAfter']['getChildren']())_0x2075f0=_0x2075f0||_0x38b046(_0x19b78e,_0x301c8d);}else'tableCell'==_0x21fb2b['name']&&(_0x2075f0=_0x2075f0||_0x38b046(_0x21fb2b['position']['nodeAfter'],_0x301c8d));}return _0x2075f0;});}_getSuggestionCoords(_0x2d67ed){return this['_getCoordsForCells'](_0x2d67ed['getRanges']()['map'](_0x48231b=>_0x48231b['start']['nodeAfter']));}};function Ge(_0x3833c4){return Array['from'](new Set(_0x3833c4)['values']());}var He=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x13e419=this['editor'],_0x24a438=_0x13e419['model']['document']['selection'],_0x3424f0=_0x13e419['locale'];if(!_0x13e419['plugins']['has']('TableEditing'))return;const _0x214a6f=_0x13e419['plugins']['get']('TrackChangesEditing'),_0x48c08b=_0x13e419['plugins']['get']('TableUtils'),_0x5c5846=_0x13e419['plugins']['get'](xe);_0x5c5846['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x214a6f['enableCommand']('mergeTableCells',()=>{const _0x208ce0=_0x48c08b['getSelectionAffectedTableCells'](_0x13e419['model']['document']['selection']);_0x13e419['model']['change'](()=>{_0x214a6f['markMultiRangeBlockFormat'](_0x208ce0,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13e419['commands']['get']('mergeTableCells')['on']('execute',(_0x3f1202,_0x18cc5e)=>{_0x13e419['commands']['get']('trackChanges')['value']&&(_0x18cc5e['length']>0x0&&_0x18cc5e[_0x18cc5e['length']-0x1]&&_0x18cc5e[_0x18cc5e['length']-0x1]['forceDefaultExecution']||_0x214a6f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3f1202['stop']());},{'priority':'highest'});for(const _0x1807a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x140bc8=_0x13e419['commands']['get'](_0x1807a);_0x214a6f['enableCommand'](_0x1807a,()=>{const _0x4e796d=_0x13e419['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x589244=>_0x589244['is']('element','tableCell')),_0x4d6dd1=_0x140bc8['value'];_0x13e419['model']['change'](()=>{_0x214a6f['markMultiRangeBlockFormat']([_0x4e796d,_0x4d6dd1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2cc31f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x689ae4=_0x13e419['commands']['get'](_0x2cc31f);_0x214a6f['enableCommand'](_0x2cc31f,()=>{const _0x3c844b=_0x48c08b['getSelectionAffectedTableCells'](_0x13e419['model']['document']['selection']),_0x3babbf=_0x3c844b[0x0]['findAncestor']('table'),_0x66e7cd=new Set();for(const _0x3c7919 of _0x3c844b){const {column:_0x2f662f,row:_0x10638b}=_0x48c08b['getCellLocation'](_0x3c7919),_0x4f59b4='horizontally'==_0x689ae4['direction']?_0x48c08b['createTableWalker'](_0x3babbf,{'startRow':_0x10638b,'endRow':_0x10638b,'includeAllSlots':!0x0}):_0x48c08b['createTableWalker'](_0x3babbf,{'column':_0x2f662f,'includeAllSlots':!0x0});for(const {cell:_0x113c5b}of _0x4f59b4)_0x66e7cd['add'](_0x113c5b);}_0x13e419['model']['change'](()=>{_0x214a6f['markMultiRangeBlockFormat'](_0x3c844b,{'commandName':_0x2cc31f,'commandParams':[]},Array['from'](_0x66e7cd),_0x2cc31f);});});}_0x214a6f['descriptionFactory']['registerDescriptionCallback'](_0x15ffe6=>{if('formatBlock'!=_0x15ffe6['type']&&'formatInline'!=_0x15ffe6['type'])return;const {data:_0x48dff4}=_0x15ffe6;return _0x48dff4&&'mergeTableCells'==_0x48dff4['commandName']?{'type':'format','content':wt(_0x3424f0,'*Merge\x20cells*')}:void 0x0;}),_0x214a6f['descriptionFactory']['registerDescriptionCallback'](_0x15e66e=>{if('formatBlock'!=_0x15e66e['type']&&'formatInline'!=_0x15e66e['type'])return;const {data:_0x1fda28}=_0x15e66e;return _0x1fda28?'splitTableCellVertically'==_0x1fda28['commandName']?{'type':'format','content':wt(_0x3424f0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1fda28['commandName']?{'type':'format','content':wt(_0x3424f0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2f7c8d=_0x5c5846['_acceptFormatSuggestionCallbackFactory']();for(const _0x512b34 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x214a6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x512b34,'accept',_0x2f7c8d);for(const _0x4311af of['splitTableCellVertically','splitTableCellHorizontally'])_0x214a6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4311af,'accept',_0x1d5df1=>{_0x13e419['model']['change'](_0x573d9a=>{const _0x7cdeff=Array['from'](_0x1d5df1)['filter'](_0x41ba3f=>'$graveyard'!=_0x41ba3f['root']['rootName']&&!!_0x41ba3f['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x7cdeff['length'])return;const _0x5b45e5=Array['from'](_0x24a438['getRanges']())['map'](_0xac7f9a=>at['fromRange'](_0xac7f9a));_0x573d9a['setSelection'](_0x7cdeff),_0x13e419['commands']['get'](_0x4311af)['refresh'](),_0x13e419['execute'](_0x4311af,{'forceDefaultExecution':!0x0});const _0x726474=_0x5b45e5['filter'](_0xfe44ed=>'$graveyard'!=_0xfe44ed['root']['rootName']);_0x726474['length']>0x0&&_0x573d9a['setSelection'](_0x726474);for(const _0x2e84fd of _0x5b45e5)_0x2e84fd['detach']();});});_0x214a6f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2df9d0=>{_0x13e419['model']['change'](_0x59a18c=>{const _0x8ccb0c=Array['from'](_0x24a438['getRanges']())['map'](_0x10ac73=>at['fromRange'](_0x10ac73));_0x59a18c['setSelection'](_0x2df9d0),_0x13e419['commands']['get']('mergeTableCells')['refresh'](),_0x13e419['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x225d41=_0x8ccb0c['filter'](_0x3653bd=>'$graveyard'!=_0x3653bd['root']['rootName']);_0x225d41['length']>0x0&&_0x59a18c['setSelection'](_0x225d41);for(const _0x112808 of _0x8ccb0c)_0x112808['detach']();});});for(const _0x35baa9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x22c9a5=_0x13e419['commands']['get'](_0x35baa9);_0x22c9a5['on']('set:isEnabled',(_0x310e7a,_0x2e180c,_0x351218)=>{if(_0x351218){const _0x76b19c=_0x13e419['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fb4bc=>_0x4fb4bc['is']('element','tableCell'));this['_areMergableCells'](_0x22c9a5['value'],_0x76b19c)||(_0x310e7a['return']=!0x1,_0x310e7a['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x462bd2=this['editor']['commands']['get']('mergeTableCells'),_0x2f199e=this['editor']['plugins']['get']('TableUtils');if(!_0x462bd2['isEnabled'])return!0x1;const _0x54dadf=_0x2f199e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a53e0 of _0x54dadf)for(const _0x8064ce of _0x54dadf)if(_0x5a53e0!=_0x8064ce&&!this['_areMergableCells'](_0x5a53e0,_0x8064ce))return!0x1;return!0x0;}['_areMergableCells'](_0x35f379,_0x2fe03c){const _0x2a6b31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a2582=this['editor']['model']['createRangeOn'](_0x35f379),_0x2e5e62=this['editor']['model']['createRangeOn'](_0x2fe03c),_0x5d59ae=new Set(),_0x2f2438=new Set();for(const _0x5aa570 of _0x2a6b31['getSuggestions']())if(('insertion'==_0x5aa570['type']||'deletion'==_0x5aa570['type']||'mergeTableCells'==_0x5aa570['subType'])&&_0x5aa570['isInContent']){for(const _0x20efe1 of _0x5aa570['getRanges']())_0x20efe1['containsRange'](_0x3a2582,!0x0)&&_0x5d59ae['add'](_0x5aa570['type']+':'+_0x5aa570['author']['id']),_0x20efe1['containsRange'](_0x2e5e62,!0x0)&&_0x2f2438['add'](_0x5aa570['type']+':'+_0x5aa570['author']['id']);}if(_0x5d59ae['size']!=_0x2f2438['size'])return!0x1;for(const _0x3f883f of _0x5d59ae)if(!_0x2f2438['has'](_0x3f883f))return!0x1;return!0x0;}},$e=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x8b22dd=this['editor'];if(!_0x8b22dd['plugins']['has']('TableEditing'))return;const _0xab1019=_0x8b22dd['locale'],_0x5d7eb0=_0x8b22dd['plugins']['get']('TrackChangesEditing');_0x5d7eb0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5d7eb0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5d7eb0['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0xab1019,'FORMAT_HEADER_ROW')),_0x5d7eb0['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0xab1019,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x12c9bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ef538=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0x12c9bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5ef538),_0x12c9bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5ef538),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x60bde5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f9286=this['editor']['plugins']['get']('TableUtils');function _0x196e5f({showActiveMarker:_0x2094e2=!0x0,setDataAttribute:_0x3d7f3d=!0x0}={}){return(_0x5683a9,_0x45073c,_0x1c83a4)=>{const {type:_0x37d857,id:_0xa40405}=nt(_0x45073c['markerName']);if(!_0x60bde5['hasSuggestion'](_0xa40405))return;const _0x20df1e=_0x60bde5['getSuggestion'](_0xa40405),_0x2e1241=_0x20df1e['data'];if('formatBlock'!=_0x20df1e['type']||!_0x2e1241||'setTableColumnHeader'!=_0x2e1241['commandName'])return;if(_0x45073c['item'])return void _0x5683a9['stop']();if(!_0x1c83a4['consumable']['consume'](_0x45073c['markerRange'],_0x5683a9['name']))return;const _0x4513b8=_0x45073c['markerRange']['start']['nodeAfter'],_0x466112=_0x45073c['markerRange']['end']['nodeBefore'],_0x498de2=_0x4513b8['parent']['parent'],{column:_0x44c1e7}=_0x1f9286['getCellLocation'](_0x4513b8),{column:_0x48d977}=_0x1f9286['getCellLocation'](_0x466112);for(let _0x762912=_0x44c1e7;_0x762912<=_0x48d977;_0x762912++){const _0x10c938=_0x1f9286['createTableWalker'](_0x498de2,{'column':_0x762912,'includeAllSlots':!0x1});for(const _0x372b00 of _0x10c938){const _0x6959eb=_0x372b00['cell'],_0x44ca23=_0x1c83a4['mapper']['toViewElement'](_0x6959eb);_0x1c83a4['writer']['addClass']('ck-suggestion-marker-'+_0x37d857,_0x44ca23),_0x3d7f3d&&_0x1c83a4['writer']['setAttribute']('data-suggestion',_0xa40405,_0x44ca23),_0x1c83a4['mapper']['bindElementToMarker'](_0x44ca23,_0x45073c['markerName']),_0x2094e2&&(_0x60bde5['activeMarkers']['includes'](_0x45073c['markerName'])?_0x1c83a4['writer']['addClass']('ck-suggestion-marker--active',_0x44ca23):_0x1c83a4['writer']['removeClass']('ck-suggestion-marker--active',_0x44ca23));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x196e5f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c8d02,_0x47f1aa,_0x22253b)=>{_0x22253b['options']['showSuggestionHighlights']&&_0x196e5f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5c8d02,_0x47f1aa,_0x22253b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f3df9,_0x41b516,_0x33cde0)=>{const {type:_0x36e6d8,id:_0x28b5a9}=nt(_0x41b516['markerName']);if(!_0x60bde5['hasSuggestion'](_0x28b5a9))return;const _0x174441=_0x60bde5['getSuggestion'](_0x28b5a9),_0x4839b8=_0x174441['data'];if('formatBlock'!=_0x174441['type']||!_0x4839b8||'setTableColumnHeader'!=_0x4839b8['commandName'])return;const _0x1a982a=_0x33cde0['mapper']['markerNameToElements'](_0x41b516['markerName']);if(_0x1a982a){for(const _0x6e69d9 of _0x1a982a)_0x33cde0['writer']['removeClass']('ck-suggestion-marker-'+_0x36e6d8,_0x6e69d9),_0x33cde0['writer']['removeClass']('ck-suggestion-marker--active',_0x6e69d9),_0x33cde0['writer']['removeAttribute']('data-suggestion',_0x6e69d9),_0x33cde0['mapper']['unbindElementFromMarkerName'](_0x6e69d9,_0x41b516['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x52a826=this['editor'],_0x658713=_0x52a826['locale'];function _0x26d4a2(_0x4f326d){return{'type':'format','content':wt(_0x658713,'*Format:*\x20%0',_0x4f326d)};}_0x52a826['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c336b=>{if('formatBlock'!=_0x2c336b['type'])return;const {data:_0x1b4cac}=_0x2c336b;return _0x1b4cac?'setTableRowHeader'==_0x1b4cac['commandName']?_0x1b4cac['commandParams'][0x0]['forceValue']?_0x26d4a2(wt(_0x658713,'FORMAT_HEADER_ROW')):_0x26d4a2(wt(_0x658713,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x1b4cac['commandName']?_0x1b4cac['commandParams'][0x0]['forceValue']?_0x26d4a2(wt(_0x658713,'FORMAT_HEADER_COLUMN')):_0x26d4a2(wt(_0x658713,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x388613=this['editor'];if(!_0x388613['plugins']['has']('TableEditing')||!_0x388613['config']['get']('table.enableFooters'))return;const _0x29a750=_0x388613['locale'],_0x14ad5b=_0x388613['plugins']['get']('TrackChangesEditing');_0x14ad5b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x14ad5b['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x29a750,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x183f88{afterInit(){const _0x2779b4=this['editor'],_0x4287b6=_0x2779b4['locale'],_0x13c484=_0x2779b4['plugins']['get']('TrackChangesEditing');function _0x1b644d(_0x3e5781){return{'type':'format','content':''+wt(_0x4287b6,'*Set\x20table\x20type:*\x20%0',_0x3e5781)};}_0x2779b4['plugins']['has']('TableLayout')&&(_0x13c484['enableCommand']('insertTableLayout'),_0x13c484['enableDefaultAttributesIntegration']('tableType'),_0x13c484['descriptionFactory']['registerElementLabel'](_0x3dab00=>_0x3dab00['is']('element','table')&&'layout'===_0x3dab00['getAttribute']('tableType'),_0x2f4c6e=>wt(_0x4287b6,'ELEMENT_LAYOUT_TABLE',_0x2f4c6e)),_0x13c484['descriptionFactory']['registerDescriptionCallback'](_0x4c5339=>{const {data:_0x4bfa00}=_0x4c5339;if(_0x4bfa00&&'tableType'==_0x4bfa00['key'])switch(_0x4bfa00['newValue']){case'layout':return _0x1b644d(wt(_0x4287b6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1b644d(wt(_0x4287b6,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](ze['map'](_0x23d4da=>[_0x23d4da,null]));var Ke=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x4a385f=this['editor'];if(!_0x4a385f['plugins']['has']('TableClipboard'))return;const _0x190902=_0x4a385f['plugins']['get']('TrackChangesEditing'),_0x33251c=_0x4a385f['plugins']['get']('TableUtils'),_0x4905fb=_0x4a385f['plugins']['get'](xe),_0xaf862e=_0x4a385f['plugins']['get']('TableClipboard'),_0x21c0b6=_0x4a385f['plugins']['get']('TableSelection'),_0x350b00=_0x4a385f['plugins']['get'](mt);_0x4905fb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4a385f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4a385f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x283a45=null,_0x5aaa15=!0x1;_0x350b00['on']('contentInsertion',(_0x180ae4,_0x3f5bb8)=>{_0x5aaa15='paste'===_0x3f5bb8['method'];}),_0x4a385f['model']['on']('insertContent',(_0x892db8,_0x3e85a4)=>{if(!_0x5aaa15&&null===_0x21c0b6['getSelectedTableCells']())return;const [_0x3bc0f6,_0x42e57c]=_0x3e85a4,_0x1ef557=_0x3e85a4[_0x3e85a4['length']-0x1];_0x1ef557&&_0x1ef557['forceDefaultExecution']||_0x190902['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x539774,_0x1a6699,_0x2a2bb5,_0x4f18ee,_0x411927){if(_0x1a6699&&!_0x1a6699['is']('documentSelection'))return!0x1;const _0x2902e0=_0x411927['getTableIfOnlyTableInContent'](_0x539774,_0x2a2bb5);if(!_0x2902e0||!qe(_0x2902e0,void 0x0,_0x4f18ee))return!0x1;const _0x52aacd=_0x4f18ee['getSelectionAffectedTableCells'](_0x2a2bb5['document']['selection']);if(!_0x52aacd['length'])return!0x1;const _0x350210=_0x52aacd[0x0]['findAncestor']('table'),_0x542b65=_0x4f18ee['getRowIndexes'](_0x52aacd),_0x3f7940=_0x4f18ee['getColumnIndexes'](_0x52aacd),_0x26cd8c={'startRow':_0x542b65['first'],'endRow':_0x542b65['last'],'startColumn':_0x3f7940['first'],'endColumn':_0x3f7940['last']};return 0x1==_0x52aacd['length']&&(_0x26cd8c['endRow']+=_0x4f18ee['getRows'](_0x2902e0)-0x1,_0x26cd8c['endColumn']+=_0x4f18ee['getColumns'](_0x2902e0)-0x1),qe(_0x350210,_0x26cd8c,_0x4f18ee);}(_0x3bc0f6,_0x42e57c,_0x4a385f['model'],_0x33251c,_0xaf862e)&&(_0x892db8['stop'](),_0x283a45={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a385f['model']['change'](()=>{_0x4a385f['model']['insertContent'](_0x3e85a4[0x0],_0x3e85a4[0x1],_0x3e85a4[0x2],{'forceDefaultExecution':!0x0});const _0x23ba74=_0x1172bd(),{rowInsertionRanges:_0x1dc1bd,columnInsertionRanges:_0x1f8691,insertionRanges:_0x48593a,deletionRanges:_0x3f5959,cells:_0x112f82}=_0x283a45;_0x1dc1bd['length']&&_0x190902['markMultiRangeInsertion'](_0x1dc1bd,'tablePasteRow',{'tablePasteChainId':_0x23ba74}),_0x1f8691['length']&&_0x190902['markMultiRangeInsertion'](_0x1f8691,'tablePasteColumn',{'tablePasteChainId':_0x23ba74}),_0x48593a['length']&&(_0x190902['markMultiRangeInsertion'](_0x48593a,'tablePaste',{'tablePasteChainId':_0x23ba74,'skipNestingCheck':!0x0}),_0x48593a['forEach'](_0x3f065c=>_0x3f065c['detach']?.())),_0x3f5959['length']&&(_0x190902['markMultiRangeDeletion'](_0x3f5959,'tablePaste',{'tablePasteChainId':_0x23ba74,'skipNestingCheck':!0x0}),_0x3f5959['forEach'](_0x29796f=>_0x29796f['detach']?.()));const _0x3644ac=_0x190902['markMultiRangeBlockFormat'](_0x112f82['map'](({element:_0x1c36a2})=>_0x1c36a2),{'formatGroupId':_0x1172bd()},[],'tablePasteCell',{'tablePasteChainId':_0x23ba74});if(_0x3644ac){const _0x25e43e=_0x3644ac['getMarkers'](),_0x4b0bbe=[];for(const {element:_0x3d3f1a,attributes:_0x54f534}of _0x112f82){if(!_0x54f534)continue;const _0x52fa5b=_0x4a385f['model']['createRangeOn'](_0x3d3f1a),_0x2ae17d=_0x25e43e['find'](_0x463cc3=>_0x463cc3['getRange']()['isEqual'](_0x52fa5b));_0x2ae17d&&_0x4b0bbe['push']([_0x2ae17d['name'],_0x54f534]);}_0x4b0bbe['length']&&_0x3644ac['setAttribute']('markerAttributes',Object['fromEntries'](_0x4b0bbe));}_0x283a45=null;}));},{'priority':_0x4d85be['high']+0xa}),_0x350b00['on']('contentInsertion',()=>{_0x5aaa15=!0x1;},{'priority':'lowest'}),_0x4a385f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5e682d,_0xa79cda)=>{const [_0x292df3,_0x17d6f2,,_0x22d9a2]=_0xa79cda;if(!_0x283a45)return;_0x5e682d['stop']();const _0x2b5007=_0x292df3['cell'],_0x4ade01=_0x17d6f2,_0x5913eb=Xe(_0x2b5007),_0x28ffd3=Xe(_0x4ade01);_0x5e682d['return']=_0x2b5007;let _0x25b166=null,_0x6d7b90=null;if(_0x28ffd3||_0x5913eb){if(_0x5913eb&&!_0x28ffd3){_0x22d9a2['remove'](_0x2b5007['getChild'](0x0));for(const _0x4f6487 of Array['from'](_0x4ade01['getChildren']()))_0x22d9a2['insert'](_0x4f6487,_0x2b5007,'end');const _0x5f05d8=_0x283a45['rowInsertionIndexes']['includes'](_0x292df3['row']),_0x2629f=_0x283a45['columnInsertionIndexes']['includes'](_0x292df3['column']);_0x5f05d8||_0x2629f||(_0x25b166=at['fromRange'](_0x22d9a2['createRangeIn'](_0x2b5007)));}else _0x28ffd3&&!_0x5913eb&&(_0x6d7b90=_0x22d9a2['createRangeIn'](_0x2b5007));}else{const _0x1a8816=_0x22d9a2['createElement']('tableCellSuggestion'),_0xe7fcb8=_0x22d9a2['createElement']('tableCellSuggestion');_0x22d9a2['wrap'](_0x22d9a2['createRangeIn'](_0x2b5007),_0xe7fcb8),_0x22d9a2['insert'](_0x1a8816,_0x2b5007,0x0);for(const _0x13b6d1 of Array['from'](_0x4ade01['getChildren']()))_0x22d9a2['insert'](_0x13b6d1,_0x1a8816,'end');_0x25b166=at['fromRange'](_0x22d9a2['createRangeOn'](_0x1a8816)),_0x6d7b90=at['fromRange'](_0x22d9a2['createRangeOn'](_0xe7fcb8));}const _0x3539c5=Array['from'](_0x4ade01['getAttributes']())['filter'](([_0x40e546])=>ze['includes'](_0x40e546));_0x283a45['cells']['push']({'element':_0x2b5007,'attributes':_0x3539c5['length']?Object['fromEntries'](_0x3539c5):null}),_0x25b166&&_0x283a45['insertionRanges']['push'](_0x25b166),_0x6d7b90&&_0x283a45['deletionRanges']['push'](_0x6d7b90);},{'priority':'high'}),_0x33251c['on']('insertColumns',(_0xd4109b,_0x44b18c)=>{const [_0x3c1e6d,_0x536ef1={}]=_0x44b18c;if(!_0x283a45)return;const _0x367183=_0x536ef1['at']||0x0,_0x3b7c40=_0x536ef1['columns']||0x1;_0x283a45['columnInsertionIndexes']=new Array(_0x3b7c40)['fill'](_0x367183)['map']((_0x5560cc,_0x3488c3)=>_0x5560cc+_0x3488c3);for(const {cell:_0xd51625}of _0x33251c['createTableWalker'](_0x3c1e6d,{'startColumn':_0x367183,'endColumn':_0x367183+_0x3b7c40-0x1}))_0x283a45['columnInsertionRanges']['push'](_0x4a385f['model']['createRangeOn'](_0xd51625));},{'priority':'low'}),_0x33251c['on']('insertRows',(_0x2ad104,_0x2be8a3)=>{const [_0x27cb5b,_0xcc41e7={}]=_0x2be8a3;if(!_0x283a45)return;const _0x3581b8=_0xcc41e7['at']||0x0,_0x2b0ca3=_0xcc41e7['rows']||0x1;_0x283a45['rowInsertionIndexes']=new Array(_0x2b0ca3)['fill'](_0x3581b8)['map']((_0x1d0423,_0x2d304f)=>_0x1d0423+_0x2d304f);for(const {cell:_0x55a1d5}of _0x33251c['createTableWalker'](_0x27cb5b,{'startRow':_0x3581b8,'endRow':_0x3581b8+_0x2b0ca3-0x1}))_0x283a45['rowInsertionRanges']['push'](_0x4a385f['model']['createRangeOn'](_0x55a1d5));},{'priority':'low'}),_0x190902['descriptionFactory']['registerDescriptionCallback'](_0x404a33=>{if(_0x404a33['subType']&&_0x404a33['subType']['startsWith']('tablePaste'))return _0x404a33['previous']?{}:{'type':'insertion','content':wt(_0x4a385f['locale'],'*Replace\x20table\x20cells*')};});const _0x4863b2=()=>!0x1;for(const _0x4b5534 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x190902['_suggestionFactory']['registerCustomCallback']('insertion',_0x4b5534,'join',_0x4863b2),_0x190902['_suggestionFactory']['registerCustomCallback']('deletion',_0x4b5534,'join',_0x4863b2),_0x190902['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4b5534,'join',_0x4863b2);_0x190902['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4863b2),_0x190902['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1ca384,_0xb9a21e,_0x2a757a)=>{const _0x1ecca3=_0x1ca384['map'](_0x5a0afe=>_0x5a0afe['getContainedElement']())['filter'](_0x5035ba=>_0x5035ba),_0x4f7c5c=new Map(_0x1ecca3['map'](_0xd33a0=>[_0xd33a0,null]));if(_0x283a45){for(const {element:_0x4eca3c,attributes:_0x43fd9c}of _0x283a45['cells'])_0x43fd9c&&_0x4f7c5c['set'](_0x4eca3c,_0x43fd9c);}else{if(_0x2a757a&&_0x2a757a['markerAttributes'])for(const [_0x119128,_0x4ed077]of Object['entries'](_0x2a757a['markerAttributes'])){const _0x41fdea=_0x4a385f['model']['markers']['get'](_0x119128),_0x5c09ba=_0x41fdea?_0x41fdea['getRange']()['getContainedElement']():null;_0x5c09ba&&_0x4f7c5c['set'](_0x5c09ba,_0x4ed077);}}_0x4a385f['model']['change'](_0xe0c766=>{for(const [_0x1d64a2,_0x2b561b]of _0x4f7c5c)_0xe0c766['setAttributes']({...je,..._0x2b561b},_0x1d64a2);});});const _0x34a91c=(_0x5446d8,_0x2e1f28)=>{_0x190902['_suggestionFactory']['registerCustomCallback'](_0x5446d8,'tablePaste',_0x2e1f28,(_0x38d0d6,_0x27f4a6,_0x39ed64)=>{_0x4a385f['model']['change'](_0x1d6b19=>{const _0x23445f=[];for(const _0x2dcbd6 of _0x38d0d6){const _0x4943c4=_0x2dcbd6['start']['nodeAfter'];_0x4943c4['is']('element','tableCellSuggestion')&&_0x23445f['push'](_0x4943c4);}_0x190902['_suggestionFactory']['getSuggestionCallback'](_0x5446d8,null,_0x2e1f28)(_0x38d0d6,_0x27f4a6,_0x39ed64);for(const _0x4469f1 of _0x23445f)'$graveyard'!=_0x4469f1['root']['rootName']&&_0x1d6b19['unwrap'](_0x4469f1);});});};_0x34a91c('insertion','accept'),_0x34a91c('insertion','discard'),_0x34a91c('deletion','accept'),_0x34a91c('deletion','discard'),_0x190902['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x512189=>{const _0x5615ad=_0x512189['map'](_0x81ccb1=>_0x81ccb1['getContainedElement']()),_0x2786a9=_0x5615ad[0x0]['findAncestor']('table'),{minRow:_0x2e7c83,maxRow:_0x21d1e6}=_0x4905fb['_getCoordsForCells'](_0x5615ad);_0x33251c['removeRows'](_0x2786a9,{'at':_0x2e7c83,'rows':_0x21d1e6-_0x2e7c83+0x1});}),_0x190902['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x25a189=>{const _0x598710=_0x25a189['map'](_0x50ebd7=>_0x50ebd7['getContainedElement']()),_0x256073=_0x598710[0x0]['findAncestor']('table'),{minColumn:_0x2517db,maxColumn:_0xe53a31}=_0x4905fb['_getCoordsForCells'](_0x598710);_0x33251c['removeColumns'](_0x256073,{'at':_0x2517db,'columns':_0xe53a31-_0x2517db+0x1});});const _0x501251=(_0x28618d,_0x2cbefa)=>{if(!_0x2cbefa['subType']||!_0x2cbefa['subType']['startsWith']('tablePaste'))return;const _0x56e19f=_0x2cbefa['attributes']['tablePasteChainId'],_0x173d95=_0x190902['getSuggestions']()['filter'](_0xa22c8e=>_0xa22c8e['isInContent']&&_0xa22c8e['attributes']&&_0xa22c8e['attributes']['tablePasteChainId']==_0x56e19f);_0x173d95['length']&&_0x2cbefa['getAllAdjacentSuggestions']()['length']!=_0x173d95['length']&&_0x173d95['reduce']((_0x55f5b8,_0x21f722)=>(_0x55f5b8['next']=_0x21f722,_0x21f722['previous']=_0x55f5b8,_0x21f722));};function _0xa52492(_0x51fad8,_0x19eeb9=!0x0){const {id:_0x390ccb,authorId:_0x2454fa}=nt(_0x51fad8['markerName']),_0x35ce0b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1bf111=_0x190902['activeMarkers']['includes'](_0x51fad8['markerName']);return _0x1bf111&&_0x35ce0b['push']('ck-suggestion-marker--active'),{'classes':_0x35ce0b,'attributes':{'data-suggestion':_0x390ccb,'data-author-id':_0x2454fa},'priority':_0x1bf111&&_0x19eeb9?0xbc2:0xbb8};}_0x190902['on']('suggestionLoaded',_0x501251,{'priority':'high'}),_0x190902['on']('suggestionUnloaded',_0x501251,{'priority':'high'}),_0x4a385f['model']['document']['registerPostFixer'](()=>{let _0x549004=!0x1;const _0xe86705=Array['from'](_0x4a385f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x271882,data:_0x1618ba}of _0xe86705){const {group:_0x25e52f,type:_0x5e0d39,id:_0x51ec52}=nt(_0x271882);if('suggestion'!=_0x25e52f||'deletion'!=_0x5e0d39||_0x1618ba['oldRange'])continue;if(!_0x190902['hasSuggestion'](_0x51ec52))continue;const _0x1151d1=_0x190902['getSuggestion'](_0x51ec52)['getRanges'](),_0x2526f8=_0x4a385f['plugins']['get']('Users')['me'];for(const _0x5a7359 of _0x190902['getSuggestions']())if(_0x5a7359['isInContent']&&_0x5a7359['author']==_0x2526f8&&'formatBlock'==_0x5a7359['type']&&'tablePasteCell'==_0x5a7359['subType']&&_0x5a7359['getRanges']()['every'](_0x1dd1a2=>_0x1151d1['some'](_0x4b72cd=>_0x4b72cd['containsRange'](_0x1dd1a2,!0x0)))){for(const _0x43eabf of _0x5a7359['getAllAdjacentSuggestions']())_0x43eabf['isInContent']&&(_0x43eabf['discard'](),_0x549004=!0x0);}}return _0x549004;}),_0x4a385f['model']['document']['registerPostFixer'](_0x2f4967=>{const _0x348b57=_0x4a385f['commands']['get']('redo');if(!_0x348b57||!_0x348b57['_createdBatches']['has'](_0x2f4967['batch']))return!0x1;let _0x5c8db9=!0x1;const _0x42c3ff=_0x4a385f['plugins']['get']('Users')['me'],_0x140014=_0x4a385f['model']['document']['differ']['getChanges'](),_0x2aaadd=Array['from'](_0x4a385f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x76787a,data:_0xc007db})=>{const {group:_0x4d5778,subType:_0x2fe634,authorId:_0xc11bf2}=nt(_0x76787a);return'suggestion'==_0x4d5778&&'tablePaste'==_0x2fe634&&_0xc11bf2==_0x42c3ff['id']&&!_0xc007db['oldRange'];});for(const _0x36acba of _0x140014){if('insert'!=_0x36acba['type']||'tableCellSuggestion'!=_0x36acba['name']||0x1!=_0x36acba['length'])continue;const _0x5cb40a=_0x2f4967['createRange'](_0x36acba['position'],_0x36acba['position']['getShiftedBy'](0x1));if(!_0x2aaadd['find'](({data:_0x50e797})=>_0x50e797['newRange']['isEqual'](_0x5cb40a))){for(const {name:_0x9a7961,data:_0x44ebcc}of _0x2aaadd)if(_0x5cb40a['containsRange'](_0x44ebcc['newRange'])){_0x2f4967['updateMarker'](_0x9a7961,{'range':_0x5cb40a}),_0x5c8db9=!0x0;break;}}}return _0x5c8db9;}),_0x4a385f['model']['document']['registerPostFixer'](_0xf63835=>{let _0x5bcb4e=!0x1;const _0x439a4a=_0x4a385f['plugins']['get']('Users')['me'],_0x21fc6b=_0x190902['getSuggestions']()['filter'](_0x34a593=>_0x34a593['isInContent']&&_0x34a593['author']==_0x439a4a),_0x342c54=new Set(),_0x247234=new Set();for(const _0x595fc3 of _0x21fc6b)if('tablePaste'==_0x595fc3['subType'])for(const _0x5d3b3e of _0x595fc3['getMarkers']()){const _0x3b26a5=_0x5d3b3e['getRange']()['getContainedElement']();if(_0x3b26a5){if(_0x3b26a5['is']('element','tableCellSuggestion')&&Xe(_0x3b26a5)){_0x595fc3['removeMarker'](_0x5d3b3e['name']),_0x342c54['add'](_0x3b26a5),_0x5bcb4e=!0x0;const _0x26c731=_0x3b26a5['nextSibling'],_0x41620c=_0x3b26a5['previousSibling'],_0x5ac6af=_0x26c731&&_0x26c731['is']('element','tableCellSuggestion'),_0x169f7b=_0x41620c&&_0x41620c['is']('element','tableCellSuggestion');_0x5ac6af&&!_0x342c54['has'](_0x26c731)&&_0x247234['add'](_0x26c731),_0x169f7b&&!_0x342c54['has'](_0x41620c)&&_0x247234['add'](_0x41620c);}else _0x3b26a5['is']('element','paragraph')&&_0x3b26a5['isEmpty']&&(_0x595fc3['removeMarker'](_0x5d3b3e['name']),_0x5bcb4e=!0x0);}}else{if('tablePasteCell'==_0x595fc3['subType']){if(!_0x595fc3['attributes']||!_0x595fc3['attributes']['tablePasteChainId'])continue;const _0x5e0615=_0x595fc3['attributes']['markerAttributes'];if(_0x5e0615&&Object['keys'](_0x5e0615)['length'])continue;const _0x43b28f=_0x595fc3['attributes']['tablePasteChainId'];let _0x5f1083=!0x0,_0x2fce95=!0x0;for(const _0x3da007 of _0x21fc6b)if(_0x3da007['subType']&&_0x3da007['subType']['startsWith']('tablePaste')){if(!_0x3da007['attributes']['tablePasteChainId']){_0x2fce95=!0x1;break;}if(_0x3da007['id']!=_0x595fc3['id']&&_0x3da007['attributes']['tablePasteChainId']==_0x43b28f){_0x5f1083=!0x1;break;}}_0x2fce95&&_0x5f1083&&(_0x595fc3['removeMarkers'](),_0x5bcb4e=!0x0);}}for(const _0x520c22 of _0x342c54)_0xf63835['remove'](_0x520c22);for(const _0x2eccfa of _0x247234)_0xf63835['unwrap'](_0x2eccfa);return _0x5bcb4e;}),_0x4a385f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd12262=>_0xa52492(_0xd12262),'converterPriority':'high'}),_0x4a385f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x30a65b,_0x4690a4)=>_0x4690a4['options']['showSuggestionHighlights']?_0xa52492(_0x30a65b,!0x1):null,'converterPriority':'high'});const _0x561d5b=_0x4a385f['editing']['view'];this['listenTo'](_0x561d5b['document'],'clipboardOutput',(_0x4519a9,_0x524fe6)=>{const _0x27eec3=[];for(const _0x489679 of _0x561d5b['createRangeIn'](_0x524fe6['content'])['getItems']())_0x489679['is']('element','suggestion-td')&&_0x27eec3['push'](_0x489679);_0x561d5b['change'](_0x19f932=>{for(const _0x41ffe3 of _0x27eec3)_0x19f932['move'](_0x19f932['createRangeIn'](_0x41ffe3),_0x19f932['createPositionBefore'](_0x41ffe3)),_0x19f932['remove'](_0x41ffe3);});});}};function Xe(_0x48cbf2){if(_0x48cbf2['isEmpty'])return!0x0;const _0x48f652=_0x48cbf2['getChild'](0x0);return _0x48f652['is']('element','paragraph')&&_0x48f652['isEmpty'];}function qe(_0x22e51f,_0xea0baf={},_0x5d0bce){for(const {isAnchor:_0x230086,cellHeight:_0x223b7b,cellWidth:_0x2bb1ac}of _0x5d0bce['createTableWalker'](_0x22e51f,{'includeAllSlots':!0x0,..._0xea0baf}))if(!_0x230086||0x1!=_0x223b7b||0x1!=_0x2bb1ac)return!0x1;return!0x0;}var Ye=class extends _0x183f88{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54509b=this['editor']['plugins']['get']('TrackChangesEditing');_0x54509b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x54509b['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x54509b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54509b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x1eb8ba=_0x54509b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x54509b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x187794,_0x6ad3f0)=>{_0x1eb8ba(_0x187794,_0x6ad3f0),this['_restoreCellWidths'](_0x187794[0x0]['start']['nodeAfter'],_0x6ad3f0['commandParams'][0x0]['cellWidths']);}),_0x54509b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x28593e,_0x115591){const _0x3e7a4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247203=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2016f6=_0x115591['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x58fba7=_0x247203['getColumnGroupElement'](_0x2016f6);let _0x11f894=_0x58fba7?_0x247203['getTableColumnsWidths'](_0x58fba7):null,_0x1ea914=_0x2016f6['getAttribute']('tableWidth')||null;const _0x4d2f7e=_0x115591['tableWidth']||_0x1ea914,_0x2e9e4b=_0x115591['columnWidths']||_0x11f894;let _0x20d6f0=this['_getCellWidths'](_0x2016f6);const _0x31a1bd=this['_foldResizeTableSuggestion'](_0x2016f6);_0x31a1bd&&(_0x1ea914=_0x31a1bd['tableWidth'],_0x11f894=_0x31a1bd['columnWidths'],_0x20d6f0=_0x31a1bd['cellWidths']||_0x20d6f0),_0x28593e({'table':_0x2016f6,'tableWidth':_0x4d2f7e,'columnWidths':_0x2e9e4b}),_0x3e7a4a['markBlockFormat'](_0x2016f6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ea914,'columnWidths':_0x11f894,'cellWidths':_0x20d6f0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x46e50f,_0xf73ede={}){if(void 0x0===_0xf73ede['value']||''===_0xf73ede['value'])return void _0x46e50f(_0xf73ede);const _0x4c059b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56939e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x244c5d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xf73ede['batch']||(_0xf73ede['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xf73ede['batch'],()=>{const _0xa2081a=_0x56939e['getColumnGroupElement'](_0x244c5d);let _0x9d396f=_0xa2081a?_0x56939e['getTableColumnsWidths'](_0xa2081a):null,_0x59fb12=_0x244c5d['getAttribute']('tableWidth')||null,_0x45497f=this['_getCellWidths'](_0x244c5d);const _0x343f97=this['_foldResizeTableSuggestion'](_0x244c5d,!0x0);_0x343f97&&(_0x59fb12=_0x343f97['tableWidth'],_0x9d396f=_0x343f97['columnWidths'],_0x45497f=_0x343f97['cellWidths']||_0x45497f),_0x46e50f(_0xf73ede),_0x4c059b['markBlockFormat'](_0x244c5d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x59fb12,'columnWidths':_0x9d396f,'cellWidths':_0x45497f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x3b37ad,_0x1cf4dc=!0x1){const _0x2a17c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a4fd9=this['editor']['plugins']['get']('Users')['me'];for(const _0x164db8 of _0x2a17c6['getSuggestions']({'skipNotAttached':!0x0})){const _0x22c0e3=_0x164db8['getContainedElement']();if('resizeTable'===_0x164db8['subType']&&_0x22c0e3===_0x3b37ad){_0x164db8['author']!==_0x2a4fd9&&(_0x1cf4dc?_0x164db8['removeMarkers']():_0x164db8['discard']());const _0x8dc01f=_0x164db8['data']['commandParams'];return{'tableWidth':_0x8dc01f[0x0]['tableWidth'],'columnWidths':_0x8dc01f[0x0]['columnWidths'],'cellWidths':_0x8dc01f[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x2ebb5e){const _0x1dd497=[];for(const _0x31b284 of _0x2ebb5e['getChildren']())if(_0x31b284['is']('element','tableRow')){for(const _0xa216f6 of _0x31b284['getChildren']())_0x1dd497['push'](_0xa216f6['getAttribute']('tableCellWidth')||null);}return _0x1dd497;}_restoreCellWidths(_0x509a28,_0x46467c){_0x46467c&&this['editor']['model']['change'](_0x19dd12=>{let _0x2a1aeb=0x0;for(const _0x1feea4 of _0x509a28['getChildren']())if(_0x1feea4['is']('element','tableRow'))for(const _0x2b90cf of _0x1feea4['getChildren']()){const _0x2b5fe1=_0x46467c[_0x2a1aeb++];_0x2b5fe1&&_0x19dd12['setAttribute']('tableCellWidth',_0x2b5fe1,_0x2b90cf);}});}handleSuggestionDescription(_0x44d778){if('formatBlock'!=_0x44d778['type']&&'formatInline'!=_0x44d778['type'])return;const {data:_0x54b297}=_0x44d778;return _0x54b297&&'resizeTable'===_0x54b297['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x183f88{afterInit(){const _0x394666=this['editor'];_0x394666['plugins']['has']('Template')&&_0x394666['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x183f88{afterInit(){const _0x5a6447=this['editor'];if(!_0x5a6447['commands']['get']('insertTableOfContents'))return;_0x5a6447['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1c6b3d=_0x5a6447['plugins']['get']('TrackChangesEditing'),_0x3a8450=_0x5a6447['locale'];_0x1c6b3d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x282cd5=>wt(_0x3a8450,'ELEMENT_TABLE_OF_CONTENTS',_0x282cd5));}},Je=class extends _0x183f88{afterInit(){const _0x3a38d9=this['editor'];_0x3a38d9['plugins']['has']('Title')&&(_0x3a38d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x3a38d9['locale'],'ELEMENT_TITLE')),_0x3a38d9['model']['document']['registerPostFixer'](_0x1fc8bb=>{let _0x7e39f5=!0x1;const _0xb85975=Array['from'](_0x3a38d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5132dd,data:_0x28312f}of _0xb85975){const {group:_0x8f2984}=nt(_0x5132dd);if('suggestion'!==_0x8f2984||!_0x28312f['newRange'])continue;const _0x4e46b6=_0x28312f['newRange'],_0x2631f1=_0x4e46b6['end']['nodeBefore'];if(!_0x2631f1||!_0x2631f1['is']('element','title-content'))continue;if(!_0x4e46b6['start']['isTouching'](_0x4e46b6['end']))continue;const _0x145ab5=_0x3a38d9['model']['schema']['getNearestSelectionRange'](_0x4e46b6['end'],'forward');if(_0x145ab5&&_0x145ab5['isCollapsed']){const _0xf7ed77=_0x1fc8bb['createRange'](_0x4e46b6['start'],_0x145ab5['start']);_0xf7ed77['isEqual'](_0x4e46b6)||(_0x1fc8bb['updateMarker'](_0x5132dd,{'range':_0xf7ed77}),_0x7e39f5=!0x0);}_0x7e39f5||(_0x1fc8bb['removeMarker'](_0x5132dd),_0x7e39f5=!0x0);}return _0x7e39f5;}));}},tn=class extends _0x183f88{afterInit(){const _0x4da45c=this['editor'],_0x50f192=_0x4da45c['plugins']['get']('TrackChangesEditing');_0x4da45c['plugins']['has']('Uploadcare')&&(_0x50f192['enableCommand']('uploadcare'),_0x4da45c['plugins']['has']('UploadcareImageEdit')&&(_0x50f192['enableCommand']('uploadcareImageEdit'),_0x50f192['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x50f192['descriptionFactory']['registerDescriptionCallback'](_0x1a4056=>{if('attribute'!=_0x1a4056['type'])return;const {data:_0x2d85ac}=_0x1a4056;return _0x2d85ac&&'uploadcareImageId'==_0x2d85ac['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x183f88{afterInit(){const _0x2e9cb7=this['editor'],_0x332d1f=_0x2e9cb7['plugins']['get']('TrackChangesEditing');_0x2e9cb7['plugins']['has']('UndoEditing')&&(_0x332d1f['enableCommand']('undo'),_0x332d1f['enableCommand']('redo'));}},nn=class extends _0x183f88{static get requires(){return[xe];}afterInit(){const _0x1b1bdc=this['editor'];_0x1b1bdc['plugins']['has']('TableCaptionEditing')&&_0x1b1bdc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x183f88{tableProperties;tableCellProperties;constructor(_0x4d100c){super(_0x4d100c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x247327=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3f8599 of this['tableProperties'])_0x247327['enableCommand'](_0x3f8599,(_0x4973f4,_0x38bb7c)=>{const _0xaad5ca=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3f8599,[_0xaad5ca],this['tableProperties'],'tableProperties',_0x4973f4,_0x38bb7c);});_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x247327['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xbfe99a,_0x462dd7)=>this['handleDiscardAction'](this['tableProperties'],_0xbfe99a,_0x462dd7)),_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3a5c3a of this['tableCellProperties'])this['editor']['commands']['get'](_0x3a5c3a)&&_0x247327['enableCommand'](_0x3a5c3a,(_0x29b729,_0x5c5670)=>{const _0x3f5e92=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3a5c3a,_0x3f5e92,this['tableCellProperties'],'tableCellProperties',_0x29b729,_0x5c5670);});_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x247327['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b1f6b,_0x5198b9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b1f6b,_0x5198b9)),_0x247327['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x247327['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x247327['descriptionFactory']['registerDescriptionCallback'](_0x101647=>this['handleSuggestionDescription'](_0x101647)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x21ccc8,_0x809da3,_0x544da5,_0x1949a8,_0x447a0d,_0x1fb889){const _0x40527b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1fb889['batch'],()=>{for(const _0x5d7355 of _0x809da3)if(this['_getSuggestion'](_0x5d7355,_0x1949a8))_0x447a0d(_0x1fb889);else{const _0x513994={};for(const _0x561be6 of _0x544da5){const _0x365ade=_0x5d7355['getAttribute'](_0x561be6);void 0x0!==_0x365ade&&(_0x513994[_0x561be6]=_0x365ade);}const _0x401f0d=this['_getResizedColumnWidths'](_0x5d7355);_0x401f0d&&(_0x513994['columnWidths']=_0x401f0d),_0x447a0d(_0x1fb889),_0x40527b['markBlockFormat'](_0x5d7355,{'commandParams':[_0x513994]},[],_0x1949a8);}});}handleDiscardAction(_0x43f370,_0x3ebf21,_0x101211){const _0x71b117=_0x3ebf21[0x0]['start']['nodeAfter'],_0x433d9d=_0x101211['commandParams'][0x0];this['editor']['model']['change'](_0x397234=>{for(const _0x37caa1 of _0x43f370)void 0x0!==_0x433d9d[_0x37caa1]?_0x397234['setAttribute'](_0x37caa1,_0x433d9d[_0x37caa1],_0x71b117):_0x397234['removeAttribute'](_0x37caa1,_0x71b117);if(_0x433d9d['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x228a14=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3aa7fa=_0x228a14['getColumnGroupElement'](_0x71b117);if(_0x3aa7fa){const _0x3868a8=_0x228a14['getTableColumnsWidths'](_0x3aa7fa),_0x4285db=_0x71b117['getAttribute']('tableWidth');if(('string'==typeof _0x4285db&&_0x4285db['trim']()['endsWith']('px'))!==_0x3868a8['some'](_0x15f4a1=>'string'==typeof _0x15f4a1&&_0x15f4a1['endsWith']('px'))){const _0x3e4994=_0x228a14['getTableColumnElements'](_0x3aa7fa);_0x433d9d['columnWidths']['forEach']((_0x2130eb,_0x298fa7)=>{_0x3e4994[_0x298fa7]&&_0x397234['setAttribute']('columnWidth',_0x2130eb,_0x3e4994[_0x298fa7]);});}}}});}_getResizedColumnWidths(_0x9bfed3){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x9bfed3['is']('element','table'))return;const _0x130f34=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x37fbd6=_0x130f34['getColumnGroupElement'](_0x9bfed3);return _0x37fbd6?_0x130f34['getTableColumnsWidths'](_0x37fbd6):void 0x0;}handleSuggestionDescription(_0x2bfaf6){if(_0x2bfaf6['data'])switch(_0x2bfaf6['subType']){case'tableProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x4b2f9d,_0x2e2b95){const _0xb60b66=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x28b443 of _0xb60b66['getSuggestions']({'skipNotAttached':!0x0})){const _0x1df1f7=_0x28b443['getContainedElement']();if(_0x28b443['subType']===_0x2e2b95&&_0x1df1f7===_0x4b2f9d)return _0x28b443;}return null;}_registerTablePropertiesAttributes(){const _0x37bd1b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14f744=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4ced5d of _0x14f744){const _0x304bac=_0x4ced5d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x37bd1b['descriptionFactory']['registerAttributeLabel'](_0x4ced5d,wt(this['editor']['locale'],'FORMAT_'+_0x304bac));}}},rn=class extends _0x183f88{afterInit(){const _0xe45868=this['editor'];if(!_0xe45868['plugins']['has']('LineHeight'))return;const _0x3ad345=_0xe45868['plugins']['get']('TrackChangesEditing'),_0x5e2635=_0xe45868['locale'];_0x3ad345['enableDefaultAttributesIntegration']('lineHeight'),_0x3ad345['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x5e2635,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0x12a714){return'marker'==_0x12a714['type']&&_0x12a714['name']['startsWith']('$markedRemove');}function cn(_0x3619f4){return _0x3619f4?[_0x3619f4]:[];}var ln=class extends _0x183f88{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x5197b4,_0x131b84,_0xd2b39a,_0x36758c,Ft,vt,Dt,Ut,xt,Gt,$t,Vt,Wt,zt,jt,Xt,qt,ee,ne,ie,re,oe,ae,le,ue,de,he,ge,fe,Ee,me,Te,_e,pe,Ie,Ce,Se,Le,Yt,rn,Zt,ke,Re,Ne,ye,Me,Oe,we,Be,Fe,ve,Ue,Pe,xe,He,$e,We,Ve,nn,Ke,Ye,Ze,sn,Qe,Je,tn,en];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34620b){super(_0x34620b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4c174f,_0x56dd5a,_0x116de0,_0x5506cb)=>{this['_model']['change'](()=>{for(const _0x3473cb of[..._0x5506cb,..._0x116de0])this['_model']['markers']['has'](_0x3473cb)&&_0x34620b['editing']['reconvertMarker'](_0x3473cb);});}),this['descriptionFactory']=new Bt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new un(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x34620b['plugins']['get'](_0x5197b4),this['_suggestionsConversion']=_0x34620b['plugins']['get'](_0x131b84),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x34620b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x34620b['config']['get']('trackChanges.trackFormatChanges'),_0x34620b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x34620b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x34620b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x4f912c=this['editor'];_0x4f912c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3fdaa7,{writer:_0x305537})=>{let _0x204ae4='suggestion:'+_0x3fdaa7['getAttribute']('suggestion-type')+':'+_0x3fdaa7['getAttribute']('id');return _0x3fdaa7['getAttribute']('marker-count')&&(_0x204ae4+=':'+_0x3fdaa7['getAttribute']('marker-count')),_0x305537['createElement']('$marker',{'data-name':_0x204ae4});}}),_0x4f912c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4f912c['model']['document']['registerPostFixer'](_0x5341b4=>{let _0x5938b9=!0x1;const _0x2f3585=Array['from'](_0x4f912c['model']['document']['differ']['getChangedMarkers']()),_0x915036=new Set();for(const {name:_0x5c2422,data:_0x4da2e1}of _0x2f3585){const {group:_0xf71d94,type:_0x314d27,subType:_0x382a63,id:_0x1474b5}=nt(_0x5c2422);if('suggestion'!==_0xf71d94)continue;const _0xb47a71=_0x382a63?'suggestion:'+_0x314d27+':'+_0x382a63+':'+_0x1474b5:'suggestion:'+_0x314d27+':'+_0x1474b5,_0x3b3f76=_0x4f912c['model']['markers']['getMarkersGroup'](_0xb47a71),_0x58c732=_0x4f912c['model']['markers']['get'](_0x5c2422),_0x1c7fb7=this['_suggestions']['get'](_0x1474b5);if(null!=_0x4da2e1['newRange']){'formatInline'==_0x314d27&&(_0x5938b9=_0x5938b9||gn(_0x4da2e1['newRange'],_0x5c2422,_0x5341b4,_0x4f912c['model']['schema']));const _0x4f6474='attribute'==_0x314d27&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0x382a63)),_0x49cf13='attribute'==_0x314d27&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0x382a63));if(_0x4da2e1['newRange']['isCollapsed']||'$graveyard'==_0x4da2e1['newRange']['root']['rootName']||'formatBlock'==_0x314d27&&!mn(_0x4da2e1['newRange'])||_0x4f6474&&!mn(_0x4da2e1['newRange'])||_0x49cf13&&En(_0x4da2e1['newRange'])||'deletion'==_0x314d27&&En(_0x4da2e1['newRange'])||_0x58c732&&Tn(_0x58c732,_0x3b3f76))_0x5341b4['removeMarker'](_0x5c2422),_0x5938b9=!0x0;else{if(!_0x1c7fb7||!_0x1c7fb7['isInContent'])continue;if(_0x4da2e1['newRange']&&_0x4da2e1['oldRange']&&_0x4da2e1['newRange']['isEqual'](_0x4da2e1['oldRange']))continue;_0x915036['add'](_0x1c7fb7);}}}return _0x915036['size']>0x0&&(_0x5938b9=!!this['_joinWithAdjacentSuggestions'](_0x915036)||_0x5938b9),_0x5938b9;}),_0x4f912c['model']['document']['registerPostFixer'](_0x8f682e=>{let _0xb54387=!0x1;for(const _0x478d4b of _0x4f912c['model']['document']['differ']['getChanges']())if('insert'==_0x478d4b['type'])for(const _0x5d2616 of this['_suggestions']['values']()){if(_0x5d2616['isMultiRange']||!_0x5d2616['isInContent'])continue;const _0x3e13f6='formatBlock'==_0x5d2616['type'],_0x106f48=this['_getAttributeKey'](_0x5d2616),_0x3639e1=_0x106f48&&this['_suggestionsConversion']['isBlockAttribute'](_0x106f48);if(!_0x3e13f6&&!_0x3639e1)continue;const _0x864988=_0x5d2616['getFirstRange']();if(_0x864988['start']['parent']!=_0x864988['end']['parent']&&!_0x864988['end']['isAtEnd']){const _0x2ab39c=_0x4f912c['model']['createPositionAt'](_0x864988['start']['nodeAfter'],'end'),_0x141dab=_0x4f912c['model']['createRange'](_0x864988['start'],_0x2ab39c);_0x8f682e['updateMarker'](_0x5d2616['getFirstMarker'](),{'range':_0x141dab}),_0xb54387=!0x0;}}return _0xb54387;}),_0x4f912c['model']['document']['registerPostFixer'](_0x68a1e9=>this['_processAttributeChanges'](_0x68a1e9)),_0x4f912c['model']['document']['registerPostFixer'](_0x5d52c5=>!_0x5d52c5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5d52c5)),_0x4f912c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4f912c['model']['document']['on']('change:data',(_0x545c52,_0x2e7b2c)=>{if(!_0x2e7b2c['isLocal']||_0x2e7b2c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1e5acd=_0x4f912c['model']['document']['differ']['getChanges']();if(0x0==_0x1e5acd['length'])return;const _0x268205=[],_0x5540a4=_0x1e5acd['filter'](_0x590bcc=>'attribute'==_0x590bcc['type']),_0x4be7e6=_0x1e5acd['filter'](_0xe806d0=>'insert'==_0xe806d0['type']&&'$text'!=_0xe806d0['name']);for(const _0x191065 of _0x5540a4)this['_suggestionsConversion']['isRegisteredAttribute'](_0x191065['attributeKey'])&&_0x268205['push']({'key':_0x191065['attributeKey'],'newValue':_0x191065['attributeNewValue'],'oldValue':_0x191065['attributeOldValue'],'range':_n(_0x191065['range'],_0x4f912c['model'])});for(const _0x29eede of _0x4be7e6){if('rename'!=_0x29eede['action']&&'refresh'!=_0x29eede['action'])continue;const _0x477366=pn(_0x29eede['position']['nodeAfter'],_0x4f912c['model']),_0x1fd34a=_0x29eede['before'];'rename'==_0x29eede['action']&&_0x268205['push']({'key':on,'newValue':_0x29eede['name'],'oldValue':_0x1fd34a['name'],'range':_0x477366});for(const [_0x5de96d,_0x244200]of _0x1fd34a['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5de96d))continue;const _0xcabc97=_0x29eede['attributes']['get'](_0x5de96d);_0x244200!==_0xcabc97&&_0x268205['push']({'key':_0x5de96d,'newValue':_0xcabc97,'oldValue':_0x244200,'range':_0x477366});}for(const [_0x4a2cf9,_0x2874d2]of _0x29eede['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x4a2cf9)&&(_0x1fd34a['attributes']['has'](_0x4a2cf9)||_0x268205['push']({'key':_0x4a2cf9,'newValue':_0x2874d2,'oldValue':null,'range':_0x477366}));}0x0!=_0x268205['length']&&_0x4f912c['model']['enqueueChange'](_0x2e7b2c,_0x586f0b=>{const _0x4259dd=_0x1172bd();for(const {range:_0x51a64c,key:_0x109768,oldValue:_0x12ab97,newValue:_0xfa535f}of _0x268205)this['markAttributeChange'](_0x51a64c,_0x109768,_0x12ab97,_0xfa535f,{'groupId':_0x4259dd});this['_reduceExistingSuggestions'](_0x586f0b,_0x268205);});},{'priority':'lowest'}),_0x4f912c['model']['markers']['on']('update:suggestion',(_0x100af6,_0x53d503,_0x2b70e6)=>{if(null==_0x2b70e6){const {id:_0x420dd2}=nt(_0x53d503['name']),_0x1767a6=this['_suggestions']['get'](_0x420dd2);_0x1767a6&&_0x1767a6['addMarkerName'](_0x53d503['name']);}}),_0x4f912c['model']['document']['on']('change:data',()=>{const _0x49ae09=Array['from'](_0x4f912c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5a7dc1=>'suggestion'===nt(_0x5a7dc1['name'])['group']);if(0x0===_0x49ae09['length'])return;_0x49ae09['sort']((_0x5df8c3,_0x11e63b)=>{const _0x5d43ae=_0x5df8c3['data']['oldRange'],_0x217ee7=_0x11e63b['data']['oldRange'];return null===_0x5d43ae&&null===_0x217ee7?0x0:null===_0x5d43ae&&null!==_0x217ee7?-0x1:null!==_0x5d43ae&&null===_0x217ee7?0x1:_0x5d43ae['start']['isBefore'](_0x217ee7['start'])?-0x1:0x1;});const _0x553c66=new Set(),_0x3b26f0=new Set();for(const {name:_0x214ae7,data:_0x3a1c8f}of _0x49ae09){const {id:_0x1f42cb}=nt(_0x214ae7);if(null===_0x3a1c8f['oldRange']){const _0x1fb01f=this['_handleNewSuggestionMarker'](_0x214ae7);_0x3b26f0['add'](_0x1fb01f);}else{const _0x9f01b=this['_suggestions']['get'](_0x1f42cb);null!==_0x3a1c8f['newRange']||_0x9f01b['isInContent']?(_0x553c66['add'](_0x9f01b['head']),_0x3b26f0['add'](_0x9f01b)):this['_removeSuggestion'](_0x9f01b);}}_0x3b26f0['size']>0x0&&this['_refreshSuggestionsChain'](_0x3b26f0);for(const _0x2a5ff7 of _0x553c66)this['fire']('suggestionChanged',_0x2a5ff7);}),_0x4f912c['model']['on']('applyOperation',(_0x2ad1f7,_0x1782bf)=>{const _0x4081ce=_0x1782bf[0x0];if(!this['_suggestions']['size'])return;if(!_0x4081ce['isDocumentOperation'])return;if(_0x4081ce['batch']['isUndo']||!_0x4081ce['batch']['isLocal'])return;let _0x5c884d,_0x419047;switch(_0x4081ce['type']){case'insert':_0x5c884d=_0x4f912c['model']['createPositionAt'](_0x4081ce['position']),_0x419047=_0x5c884d['getShiftedBy'](_0x4081ce['howMany']);break;case'split':_0x5c884d=_0x4f912c['model']['createPositionAt'](_0x4081ce['splitPosition']),_0x419047=_0x4f912c['model']['createPositionAt'](_0x4081ce['moveTargetPosition']);break;case'move':_0x5c884d=_0x4f912c['model']['createPositionAt'](_0x4081ce['targetPosition']),_0x419047=_0x5c884d['getShiftedBy'](_0x4081ce['howMany']);break;default:return;}const _0x506105=_0x4f912c['model']['createRange'](_0x5c884d,_0x419047);_0x4f912c['model']['change'](()=>{for(const {suggestion:_0x1106b8,meta:_0x4a4084}of this['_findSuggestions'](_0x506105)){if(_0x1106b8['isMultiRange'])continue;if('formatInline'==_0x1106b8['type'])continue;const _0x4a8400=this['_getAttributeKey'](_0x1106b8);if(_0x4a8400&&this['_suggestionsConversion']['isBlockAttribute'](_0x4a8400)&&'split'!=_0x4081ce['type'])continue;const _0x1c9294=_0x1106b8['data']&&_0x1106b8['data']['multipleBlocks'];('formatBlock'!=_0x1106b8['type']||'split'==_0x4081ce['type']&&!_0x1c9294)&&(_0x4a4084['containsRangeInObject']||'insertion'==_0x1106b8['type']&&_0x4a4084['isOwn']||_0x1106b8['getFirstRange']()['containsRange'](_0x506105)&&this['_breakSuggestionMarker'](_0x1106b8,_0x5c884d,_0x419047));}});},{'priority':'lowest'}),_0x4f912c['model']['on']('deleteContent',(_0x39a254,_0x34b782)=>{const _0x122159=_0x34b782[0x0],_0x331f85=_0x34b782[0x1];if(_0x331f85&&_0x331f85['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x122159['isCollapsed'])return;const _0x299a43=_0x4f912c['model']['schema'],{start:_0x5c30fc,end:_0x2e3a4f}=_0x122159['getFirstRange'](),_0x3d6f1f=_0x5c30fc['nodeAfter']&&_0x299a43['isLimit'](_0x5c30fc['nodeAfter'])?null:_0x299a43['getNearestSelectionRange'](_0x5c30fc,'forward'),_0x1e5e82=_0x2e3a4f['nodeBefore']&&_0x299a43['isLimit'](_0x2e3a4f['nodeBefore'])?null:_0x299a43['getNearestSelectionRange'](_0x2e3a4f,'backward'),_0x1475f1=_0x4f912c['model']['createRange'](_0x3d6f1f?_0x3d6f1f['start']:_0x5c30fc,_0x1e5e82?_0x1e5e82['end']:_0x2e3a4f);_0x4f912c['model']['change'](_0x238f4f=>{this['markDeletion'](_0x1475f1);const _0x1988e7=_0x4f912c['model']['schema']['getNearestSelectionRange'](_0x1475f1['start']);_0x122159['is']('documentSelection')?_0x238f4f['setSelection'](_0x1988e7):_0x122159['setTo'](_0x1988e7);}),_0x39a254['stop']();},{'priority':_0x4d85be['normal']+0xa}),_0x4f912c['model']['on']('insertContent',(_0x19be6b,_0x353db5)=>{const _0x5f4cec=_0x353db5[_0x353db5['length']-0x1];_0x5f4cec&&_0x5f4cec['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4f912c['model']['change'](()=>{let _0x43aac4=_0x4f912c['model']['insertContent'](_0x353db5[0x0],_0x353db5[0x1],_0x353db5[0x2],{'forceDefaultExecution':!0x0});if(!_0x43aac4)return;_0x19be6b['return']=_0x43aac4['clone']();const _0x83b921=_0x43aac4['end']['nodeBefore'],_0x4757ec=_0x4f912c['model']['schema'];_0x83b921&&_0x4757ec['isBlock'](_0x83b921)&&!_0x4757ec['isObject'](_0x83b921)&&(_0x43aac4=_0x4f912c['model']['createRange'](_0x43aac4['start'],_0x4f912c['model']['createPositionAt'](_0x83b921,'end'))),this['markInsertion'](_0x43aac4);}),_0x19be6b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x28adc6=new Lt(_0x4f912c,this['_suggestions']);_0x4f912c['commands']['add']('acceptSuggestion',_0x28adc6),this['enableCommand']('acceptSuggestion');const _0x675a7c=new It(_0x4f912c,this['_suggestions']);_0x4f912c['commands']['add']('discardSuggestion',_0x675a7c),this['enableCommand']('discardSuggestion'),_0x4f912c['commands']['add']('acceptAllSuggestions',new yt(_0x4f912c,_0x28adc6,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4f912c['commands']['add']('discardAllSuggestions',new yt(_0x4f912c,_0x675a7c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4f912c['commands']['add']('acceptSelectedSuggestions',new St(_0x4f912c,_0x28adc6,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4f912c['commands']['add']('discardSelectedSuggestions',new St(_0x4f912c,_0x675a7c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f4df8=_0x4f912c['plugins']['get'](_0x5197b4);this['listenTo'](_0x1f4df8,'addComment',(_0x20ca7e,{threadId:_0x453484})=>{const _0x55e909=this['_suggestions']['get'](_0x453484);_0x55e909&&_0x55e909['commentThread']&&0x1===_0x55e909['commentThread']['length']&&this['_updateSuggestionData'](_0x453484,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f4df8,'removeComment',(_0x5f1ffb,{threadId:_0x4ddff2})=>{const _0x3e0759=this['_suggestions']['get'](_0x4ddff2);_0x3e0759&&_0x3e0759['commentThread']&&!_0x3e0759['commentThread']['length']&&this['_updateSuggestionData'](_0x4ddff2,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0xe2cc2){const _0x571bff='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x19113b=0x79788,_0x184e5c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x53bfe0(_0x175f3e){const _0x214604=new window['Promise'](_0x3a047a=>{_0x175f3e['once']('ready',_0x3a047a);}),_0x3d76ee=window['Date']['now'](),_0x2d2739=_0x175f3e['config']['get']('licenseKey');async function _0x2673b3(){let _0xb4ff5a,_0x31187b=null,_0x24e6c6=null;try{return'GPL'==_0x2d2739?'NotAllowed':(_0xb4ff5a=_0x1e5139(),_0xb4ff5a?(_0xb4ff5a['usageEndpoint']&&(_0x24e6c6=_0x4d955d(_0xb4ff5a['usageEndpoint'],_0xb4ff5a['jti'])),await _0x278c64()?_0x353bfe()?_0x331b03()?'Expired':_0x16c229()?('evaluation'==_0xb4ff5a['licenseType']&&(_0x31187b=_0x22146d('EvaluationLimit')),await _0x3cd13c()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x331b03(){const _0x7ffae1=['evaluation','trial']['includes'](_0xb4ff5a['licenseType'])?_0x3d76ee/0x3e8:0xe10*_0x19113b;return _0xb4ff5a['exp']<_0x7ffae1;}function _0x353bfe(){const _0x3a7e49=_0xb4ff5a['features'];if(!_0x3a7e49)return!0x1;if(_0x3a7e49['includes']('*'))return!0x0;if(_0x3a7e49['includes']('TC'))return!0x0;if(_0x3a7e49['includes']('RTC')){if(_0x5d7836())return!0x0;if(_0x3ecfea()||_0x231f4e())return!0x0;}return!0x1;}function _0x16c229(){const _0x4df33d=_0xb4ff5a['licensedHosts'];if(!_0x4df33d||0x0==_0x4df33d['length'])return!0x0;const {hostname:_0x949104}=new URL(window['location']['href']);if(_0x4df33d['includes'](_0x949104))return!0x0;const _0x1ba3f3=_0x949104['split']('.');return _0x4df33d['filter'](_0xbe9863=>_0xbe9863['includes']('*'))['map'](_0x13eda0=>_0x13eda0['split']('.'))['filter'](_0x3538b6=>_0x3538b6['length']<=_0x1ba3f3['length'])['map'](_0x1dec2c=>Array(_0x1ba3f3['length']-_0x1dec2c['length'])['fill']('*'===_0x1dec2c[0x0]?'*':'')['concat'](_0x1dec2c))['some'](_0x2afdf2=>_0x1ba3f3['every']((_0x12afa6,_0x3d8b20)=>_0x2afdf2[_0x3d8b20]===_0x12afa6||'*'===_0x2afdf2[_0x3d8b20]));}function _0x3cd13c(){return _0x31187b&&_0x24e6c6?new window['Promise']((_0x28a460,_0x1a6728)=>{_0x31187b['then'](_0x28a460,_0x1a6728),_0x24e6c6['then'](_0x29eff7=>{'Valid'!=_0x29eff7&&_0x28a460(_0x29eff7);},_0x1a6728);}):_0x31187b||_0x24e6c6||'Valid';}}function _0x4d955d(_0x3d0909,_0x4a8325){return new window['Promise'](_0x30494b=>{if(_0x5c7dc2())return _0x30494b('Valid');_0x155a22(),_0x175f3e['decorate']('_sendUsageRequest');let _0x146863=!0x1;const _0x6ac8f8=_0x1172bd();function _0x470232(_0x226de5){return!!_0x226de5&&('object'==typeof _0x226de5||'function'==typeof _0x226de5)&&'function'==typeof _0x226de5['then']&&'function'==typeof _0x226de5['catch'];}function _0x3cccd5(_0x2681c1){_0x2f71f9(_0x2681c1)['then'](_0x33b4ff=>_0x33b4ff&&'ok'==_0x33b4ff['status']?_0xd0dfbc(_0x52ae50(_0x6ac8f8+_0x4a8325))!=_0x33b4ff['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x96713d=>(_0x2d3882(),_0x96713d),()=>{const _0x3c695d=_0x3f8b1e();return null==_0x3c695d?(_0x2d3882(),'Valid'):_0x3d76ee-_0x3c695d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x30494b)['catch'](()=>{_0x30494b('UsageLimit');});const _0x23a1c9=0x36ee80;function _0x2d3882(){const _0x5b8dd6='llct-'+_0xd0dfbc(_0x52ae50(_0x3d0909)),_0xd71584=_0x5aaf9d(_0xd0dfbc(window['Math']['ceil'](_0x3d76ee/_0x23a1c9)));window['localStorage']['setItem'](_0x5b8dd6,_0xd71584);}function _0x3f8b1e(){const _0x2d9f4e='llct-'+_0xd0dfbc(_0x52ae50(_0x3d0909)),_0x35a9cb=window['localStorage']['getItem'](_0x2d9f4e);return _0x35a9cb?window['parseInt'](_0x5aaf9d(_0x35a9cb),0x10)*_0x23a1c9:null;}function _0x2f71f9(_0x114814){return new window['Promise']((_0x384c2a,_0x458f90)=>{_0x114814['then'](_0x384c2a,_0x458f90),window['setTimeout'](_0x458f90,0x1d4c0);});}}_0x175f3e['on']('_sendUsageRequest',(_0x5bc182,_0x22d80d)=>{if(_0x22d80d[0x0]!=_0x3d0909)return _0x30494b('UsageLimit');_0x22d80d[0x1]={..._0x22d80d[0x1],'requestId':_0x6ac8f8};},{'priority':'high'}),_0x175f3e['on']('_sendUsageRequest',_0x1cc0b1=>{_0x470232(_0x1cc0b1['return'])&&(_0x146863=!0x0,_0x3cccd5(_0x1cc0b1['return']));},{'priority':'low'}),_0x214604['then'](()=>{_0x146863||_0x30494b('UsageLimit');});});function _0x5c7dc2(){return'auto'==_0x175f3e['editing']['view']['_overlayModeHint'];}function _0x155a22(){_0x175f3e['editing']['view']['_overlayModeHint']='auto';}}function _0x22146d(_0x54ae6f){const _0x5b92ea=[new window['Promise'](_0x829a89=>setTimeout(_0x829a89,0x93ecc)),_0x214604['then'](()=>new window['Promise'](_0x1266df=>{let _0x14fb8c=0x0;_0x175f3e['model']['on']('applyOperation',(_0x3a9d52,_0x4f1970)=>{_0x4f1970[0x0]['isDocumentOperation']&&_0x14fb8c++,0x5e8==_0x14fb8c&&(_0x1266df(),_0x3a9d52['off']());});}))];return window['Promise']['race'](_0x5b92ea)['then'](()=>_0x54ae6f);}async function _0x13018a(){await _0x214604,_0x175f3e['model']['change']=_0x3240f0,_0x175f3e['model']['enqueueChange']=_0x3240f0,_0x175f3e['enableReadOnlyMode']('model');}function _0x5d7836(){return _0x15ebe7('WebSocketGateway')&&'connected'==_0x4b7bc5('WebSocketGateway')['state'];}function _0x3ecfea(){return _0x15ebe7('RevisionViewerIntegration');}function _0x231f4e(){return _0x15ebe7('TrackChangesDataGetter');}function _0x390029(_0x4705a1){const _0x439f2f=_0x2fb84a();_0x175f3e[_0x439f2f]='trackChangesLicenseKey'+_0x4705a1,'Valid'!=_0x4705a1&&_0x13018a();}function _0x2fb84a(){const _0x2b2944=window['String'](window['performance']['now']())['replace']('.','');let _0x2a00d9='U';for(let _0x23d0d8=0x0;_0x23d0d8<_0x2b2944['length'];_0x23d0d8+=0x2){let _0x18b996=window['parseInt'](_0x2b2944['substring'](_0x23d0d8,_0x23d0d8+0x2));_0x18b996>=0x3e&&(_0x18b996-=0x3e),_0x2a00d9+=_0x571bff[_0x18b996];}return _0x2a00d9;}function _0x1e5139(){const _0x1296fc=_0x2d2739['split']('.');if(0x3!=_0x1296fc['length'])return null;return _0xe7e501(_0x1296fc[0x1]);function _0xe7e501(_0x23f27b){const _0x2a81f1=_0xdcd312(_0x23f27b);return _0x2a81f1&&_0x5b469f()?_0x2a81f1:null;function _0x5b469f(){const _0x52f503=_0x2a81f1['jti'],_0x39648b=window['parseInt'](_0x52f503['substring'](_0x52f503['length']-0x8),0x10),_0x431e31={..._0x2a81f1,'jti':_0x52f503['substring'](0x0,_0x52f503['length']-0x8)};return delete _0x431e31['vc'],_0x52ae50(_0x431e31)==_0x39648b;}}}async function _0x278c64(){let _0x57b99b=!0x0;try{const [_0x385ed8,_0xee1dbd,_0x174099]=_0x2d2739['split']('.');return _0x8bd3aa(_0x385ed8),await _0x3fe517(_0x385ed8,_0xee1dbd,_0x174099),_0x57b99b;}catch{return!0x1;}function _0x8bd3aa(_0x1e9f0f){const _0x553a50=_0xdcd312(_0x1e9f0f);_0x553a50&&'ES256'==_0x553a50['alg']||(_0x57b99b=!0x1);}async function _0x3fe517(_0x158b7e,_0x248deb,_0x1c07ad){const _0x1b7cdb=window['Uint8Array']['from'](_0x58b1af(_0x1c07ad),_0x445cdb=>_0x445cdb['charCodeAt'](0x0)),_0x3d0dc7=new window['TextEncoder']()['encode'](_0x158b7e+'.'+_0x248deb),_0x5cd101=window['crypto']['subtle'];if(!_0x5cd101)return;const _0x13f4ad=await _0x5cd101['importKey']('jwk',_0x184e5c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5cd101['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x13f4ad,_0x1b7cdb,_0x3d0dc7)||(_0x57b99b=!0x1);}}function _0xdcd312(_0x53e4c8){return _0x53e4c8['startsWith']('ey')?JSON['parse'](_0x58b1af(_0x53e4c8)):null;}function _0x58b1af(_0x2caf2b){return window['atob'](_0x2caf2b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x52ae50(_0x1d7066){let _0x2747bd=0x1505;function _0x480c41(_0x340638){for(let _0x56f558=0x0;_0x56f558<_0x340638['length'];_0x56f558++){const _0x40daab=_0x340638['charCodeAt'](_0x56f558);_0x2747bd=(_0x2747bd<<0x5)+_0x2747bd+_0x40daab,_0x2747bd&=_0x2747bd;}}function _0x1c1d9d(_0x15babd){Array['isArray'](_0x15babd)?_0x15babd['forEach'](_0x1c1d9d):_0x15babd&&'object'==typeof _0x15babd?Object['entries'](_0x15babd)['sort']()['forEach'](([_0x3dd2da,_0x235acf])=>{_0x480c41(_0x3dd2da),_0x1c1d9d(_0x235acf);}):_0x480c41(window['String'](_0x15babd));}return _0x1c1d9d(_0x1d7066),_0x2747bd>>>0x0;}function _0xd0dfbc(_0x2ab673){return _0x2ab673['toString'](0x10)['padStart'](0x8,'0');}function _0x5aaf9d(_0x45a011){return _0x45a011['split']('')['reverse']()['join']('');}function _0x15ebe7(_0x409b0f){return _0x175f3e['plugins']['has'](_0x409b0f);}function _0x4b7bc5(_0x1389ec){return _0x175f3e['plugins']['get'](_0x1389ec);}function _0x3240f0(){}_0x390029(await _0x2673b3());}_0x53bfe0(_0xe2cc2['editor']);}(this);}set adapter(_0x2415be){if(this['_adapter'])throw new _0x4a2c66('track-changes-adapter-already-set',this);this['_adapter']=_0x2415be;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x988597=!0x1,toJSON:_0x41dea9=!0x1}={}){const _0x482af6=[];for(const _0x4fdd6c of this['_suggestions']['values']())_0x988597&&!_0x4fdd6c['isInContent']||_0x482af6['push'](_0x4fdd6c);return _0x41dea9?_0x482af6['map'](_0x300419=>_0x300419['toJSON']()):_0x482af6;}getSuggestion(_0x2fcff1){const _0x2a0371=this['_suggestions']['get'](_0x2fcff1);if(!_0x2a0371)throw new _0x4a2c66('track-changes-suggestion-not-found',this);return _0x2a0371;}hasSuggestion(_0x857dbc){return this['_suggestions']['has'](_0x857dbc);}addSuggestionData(_0x29eecf){const {authorId:_0x35d3c0,id:_0x49d63b,originalSuggestionId:_0x2fa22a,attributes:_0x2ce0e3}=_0x29eecf,[_0x2c48c3,_0x4dd679]=_0x29eecf['type']['split'](':'),_0x12ccdf=this['_suggestions']['get'](_0x49d63b)||this['_createSuggestion'](_0x2c48c3,_0x4dd679,_0x49d63b,_0x35d3c0,_0x2ce0e3,_0x2fa22a);if(this['_addThreadToSuggestion'](_0x12ccdf),this['_checkSuggestionCorrectness'](_0x12ccdf,_0x2c48c3,_0x4dd679||null,_0x35d3c0),_0x12ccdf['createdAt']=_0x29eecf['createdAt'],_0x12ccdf['_isDataLoaded']=!0x0,_0x2ce0e3&&_0x2ce0e3['@external']){const _0x1d19cd=_0x2ce0e3['@external'],_0x689d5b=this['_getExternalAuthor'](_0x1d19cd['authorName']);_0x12ccdf['authoredAt']=_0x1d19cd['createdAt'],_0x12ccdf['author']=_0x689d5b;}else _0x12ccdf['authoredAt']=_0x29eecf['createdAt'];switch(_0x29eecf['data']&&(_0x12ccdf['data']=_0x29eecf['data']),_0x29eecf['attributes']&&(_0x12ccdf['attributes']=_0x29eecf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x12ccdf['_saved']=!0x0),this['_suggestionState']['get'](_0x12ccdf)){case'notReady':this['_suggestionState']['set'](_0x12ccdf,'dataReady');break;case'markerReady':_0x12ccdf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x12ccdf])),this['_refreshSuggestionsChain'](new Set([_0x12ccdf])),this['_suggestionState']['set'](_0x12ccdf,'ready'),this['fire']('suggestionLoaded',_0x12ccdf)):this['_suggestionState']['set'](_0x12ccdf,'removed');}return _0x12ccdf;}acceptSuggestion(_0xd5e5a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54c783 of _0xd5e5a4['getAllAdjacentSuggestions']())_0x54c783['accept']();});});}discardSuggestion(_0x29b7bc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42e8bd of _0x29b7bc['getAllAdjacentSuggestions']())_0x42e8bd['discard']();});});}['enableCommand'](_0x3f23f8,_0x59773b){const _0x14642e=this['editor']['commands']['get'](_0x3f23f8);if(!_0x14642e)throw new _0x4a2c66('track-changes-command-not-found',this,{'commandName':_0x3f23f8});if(this['_enabledCommands']['has'](_0x14642e))throw new _0x4a2c66('track-changes-enable-command-twice',this,{'commandName':_0x3f23f8});this['_enabledCommands']['add'](_0x14642e),_0x59773b&&_0x14642e['on']('execute',(_0x3919d5,_0x432c48)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x432c48['length']>0x0&&_0x432c48[_0x432c48['length']-0x1]&&_0x432c48[_0x432c48['length']-0x1]['forceDefaultExecution']?_0x432c48['pop']():(_0x3919d5['return']=_0x59773b((..._0x5c8bc7)=>_0x14642e['execute'](..._0x5c8bc7,{'forceDefaultExecution':!0x0}),..._0x432c48),_0x3919d5['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3c7f9a){let _0x2b3a83,_0x29fb08;const _0x1919bd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2b3a83=_0x3c7f9a();}catch(_0x12ce2c){_0x29fb08=_0x12ce2c;}return _0x1919bd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29fb08&&_0x4a2c66['rethrowUnexpectedError'](_0x29fb08,this),_0x2b3a83;}markInsertion(_0xc7d5ac,_0x36df32=null,_0x48ee3f={}){if(_0xc7d5ac['isCollapsed'])return null;const _0x1cbc1c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x48ee3f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4cd57e,meta:_0x4ec37e}of this['_findSuggestions'](_0xc7d5ac,'insertion'))if(_0x4ec37e['isOwn']){if(!_0x4ec37e['isNextTo']){if(_0x4ec37e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x4cd57e,_0x48ee3f))continue;return _0x4cd57e;}if(An(_0x4cd57e,_0x48ee3f))return _0x4cd57e;this['_breakSuggestionMarker'](_0x4cd57e,_0xc7d5ac['start'],_0xc7d5ac['end']);break;}if(_0x36df32==_0x4cd57e['subType']&&An(_0x4cd57e,_0x48ee3f)){const _0x1034b0=_0x4cd57e['getFirstRange']();return _0x1034b0['start']['isEqual'](_0xc7d5ac['end'])?this['_setSuggestionRange'](_0x4cd57e,this['_model']['createRange'](_0xc7d5ac['start'],_0x1034b0['end'])):this['_setSuggestionRange'](_0x4cd57e,this['_model']['createRange'](_0x1034b0['start'],_0xc7d5ac['end'])),_0x4cd57e;}}const _0x5aca0a=_0x1172bd(),_0x26f183=_0x1cbc1c['id'],_0x4619bf=_0x36df32?'insertion:'+_0x36df32:'insertion',_0x99d248=this['_setSuggestionData']({'id':_0x5aca0a,'type':_0x4619bf,'createdAt':new Date(),'authorId':_0x26f183,'attributes':_0x48ee3f});return this['_addSuggestionMarker'](_0x4619bf,_0x5aca0a,_0x26f183,_0xc7d5ac),_0x99d248;}markMultiRangeInsertion(_0x12578a,_0x1ee861='multi',_0x225dc1={}){const _0x4636ee=this['editor']['plugins']['get']('Users')['me'],_0x6dda36=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1ee861,'join');this['_trackingSessionId']&&(_0x225dc1['trackingSessionId']=this['_trackingSessionId']);for(const _0x20a93e of this['getSuggestions']())if(_0x20a93e['author']['id']==_0x4636ee['id']&&'insertion'==_0x20a93e['type']&&_0x20a93e['subType']==_0x1ee861&&An(_0x20a93e,_0x225dc1)&&(_0x6dda36(_0x20a93e['getRanges'](),_0x12578a)||_0x6dda36(_0x12578a,_0x20a93e['getRanges']()))){for(const _0x442fa7 of _0x12578a)_0x20a93e['addRange'](_0x442fa7);return _0x20a93e;}for(const {suggestion:_0x3d78c7,meta:_0x412172}of this['_findSuggestions'](_0x12578a,'insertion')){if(!_0x412172['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x412172['containsRangeInObject'])continue;if(!An(_0x3d78c7,_0x225dc1))continue;let _0x3fc3ac=!0x0;for(const _0x1a0c9d of _0x3d78c7['getRanges']())for(const _0x4e14c6 of _0x12578a)if(!_0x1a0c9d['containsRange'](_0x4e14c6)){_0x3fc3ac=!0x1;break;}if(_0x3fc3ac)return _0x3d78c7;}const _0x57c63c=_0x1172bd(),_0x250a88=_0x4636ee['id'],_0x1ea7b4='insertion:'+_0x1ee861,_0x494e56=this['_setSuggestionData']({'id':_0x57c63c,'type':_0x1ea7b4,'createdAt':new Date(),'authorId':_0x250a88,'attributes':_0x225dc1});for(const _0x526450 of _0x12578a)this['_addSuggestionMarker'](_0x1ea7b4,_0x57c63c,_0x250a88,_0x526450,Ot['getMultiRangeId']());return _0x494e56;}markInlineFormat(_0x4d8dbb,_0x11e32d,_0x382ece=null,_0x245c92={}){if(_0x382ece=_0x382ece||fn(_0x11e32d),_0x4d8dbb['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x245c92['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3d8d70=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x382ece,'accept');return this['forceDefaultExecution'](()=>_0x3d8d70([_0x4d8dbb],_0x11e32d,_0x245c92)),null;}const _0x5bf8fd=this['editor']['plugins']['get']('Users')['me'],_0x3856a3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x49a3d5,meta:_0x3a4edf}of this['_findSuggestions'](_0x4d8dbb,'insertion'))_0x3a4edf['isOwn']&&!_0x3a4edf['isInsideObject']&&_0x3856a3['push'](..._0x49a3d5['getRanges']());}const _0x4deae9=function(_0x584bd3,_0xa8dadd){const _0x49cb5c=[];for(const _0xa63b64 of _0xa8dadd){const _0x561eb2=_0x584bd3['getIntersection'](_0xa63b64);_0x561eb2&&_0x49cb5c['push'](_0x561eb2);}return _0x49cb5c;}(_0x4d8dbb,_0x3856a3),_0x322ec5=function(_0x4437d1,_0x2abfdd){const _0x17fb7f=[_0x4437d1];for(const _0x3a42e4 of _0x2abfdd){let _0x2c35f2=0x0;for(;_0x2c35f2<_0x17fb7f['length'];){const _0x4c8f41=_0x17fb7f[_0x2c35f2]['getDifference'](_0x3a42e4);_0x17fb7f['splice'](_0x2c35f2,0x1,..._0x4c8f41),_0x2c35f2+=_0x4c8f41['length'];}}return _0x17fb7f;}(_0x4d8dbb,_0x3856a3);_0x4deae9['length']&&this['_model']['change'](()=>{for(const _0x55c758 of _0x4deae9){const _0x415aa8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x382ece,'accept');this['forceDefaultExecution'](()=>_0x415aa8([_0x55c758],_0x11e32d,_0x245c92));}});for(const _0x3e1df5 of _0x322ec5){let _0x4fab60=null,_0x91b0bf=_0x3e1df5['start'],_0x49a269=_0x3e1df5['end'];for(const {suggestion:_0x2984b2,meta:_0x11b3bb}of this['_findSuggestions'](_0x3e1df5,'formatInline')){if(!_0x11b3bb['isOwn'])continue;if(_0x2984b2['subType']!=_0x382ece)continue;if(!An(_0x2984b2,_0x245c92))continue;const _0x2d64a7=_0x2984b2['getFirstRange']();if(_0x2d64a7['containsRange'](_0x3e1df5,!0x0))return null;_0x91b0bf=_0x91b0bf['isBefore'](_0x2d64a7['start'])?_0x91b0bf:_0x2d64a7['start'],_0x49a269=_0x49a269['isAfter'](_0x2d64a7['end'])?_0x49a269:_0x2d64a7['end'],_0x4fab60?_0x2d64a7['start']['isBefore'](_0x4fab60['getFirstRange']()['start'])?(_0x4fab60['removeMarkers'](),_0x4fab60=_0x2984b2):_0x2984b2['removeMarkers']():_0x4fab60=_0x2984b2;}const _0x328022=this['_model']['createRange'](_0x91b0bf,_0x49a269);if(_0x4fab60)this['_setSuggestionRange'](_0x4fab60,_0x328022);else{const _0x8b511f=_0x1172bd(),_0x10c91c=_0x5bf8fd['id'];this['_setSuggestionData']({'id':_0x8b511f,'type':'formatInline:'+_0x382ece,'data':_0x11e32d,'createdAt':new Date(),'authorId':_0x10c91c,'attributes':_0x245c92}),this['_addSuggestionMarker']('formatInline:'+_0x382ece,_0x8b511f,_0x10c91c,_0x328022);}}return null;}markBlockFormat(_0x2fe25d,_0x590e3e,_0xff8b0=[],_0x189cb3=null,_0x3e9f12={}){_0x590e3e['formatGroupId']||(_0x590e3e['formatGroupId']=_0x590e3e['commandName']),_0x590e3e['multipleBlocks']=_0x2fe25d['is']('range'),_0x189cb3=_0x189cb3||fn(_0x590e3e);const _0x584bc5=_0xff8b0['map'](_0x119a5f=>pn(_0x119a5f,this['_model'])),_0xd7c61f=_0x2fe25d['is']('range')?_0x2fe25d:pn(_0x2fe25d,this['_model']);if(this['_trackingSessionId']&&(_0x3e9f12['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5ced5c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x189cb3,'accept');return this['forceDefaultExecution'](()=>_0x5ced5c([_0xd7c61f],_0x590e3e,_0x3e9f12)),null;}_0x584bc5['push'](_0xd7c61f);let _0x2998d8=!0x0;for(const _0x4a28de of _0x584bc5)if(!this['_rangeIsInLocalUserInsertion'](_0x4a28de)){_0x2998d8=!0x1;break;}if(_0x2998d8&&'always'!==this['_trackFormatChanges']){const _0x195417=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x189cb3,'accept');return this['forceDefaultExecution'](()=>_0x195417([_0xd7c61f],_0x590e3e,_0x3e9f12)),null;}let _0x2f6716=null,_0x522cf8=_0xd7c61f['start'],_0x39acdd=_0xd7c61f['end'];for(const {suggestion:_0x22493a,meta:_0x7d102a}of this['_findSuggestions'](_0xd7c61f,'formatBlock')){if(!_0x7d102a['isOwn'])continue;if(_0x7d102a['isNextTo']||_0x7d102a['containsRangeInObject']||_0x7d102a['isInsideObject'])continue;if(_0x22493a['data']['formatGroupId']!=_0x590e3e['formatGroupId'])continue;if(!An(_0x22493a,_0x3e9f12))continue;const _0x4ae550=_0x22493a['getFirstRange']();if(_0x22493a['subType']==_0x189cb3){if(_0x4ae550['containsRange'](_0xd7c61f,!0x0))return null;_0x522cf8=_0x522cf8['isBefore'](_0x4ae550['start'])?_0x522cf8:_0x4ae550['start'],_0x39acdd=_0x39acdd['isAfter'](_0x4ae550['end'])?_0x39acdd:_0x4ae550['end'],_0x2f6716?_0x4ae550['start']['isBefore'](_0x2f6716['getFirstRange']()['start'])?(_0x2f6716['removeMarkers'](),_0x2f6716=_0x22493a):_0x22493a['removeMarkers']():_0x2f6716=_0x22493a;}else{const _0x25bda9=_0xd7c61f['getIntersection'](_0x4ae550);this['_cutOutSuggestionMarker'](_0x22493a,_0x25bda9);}}const _0x261d55=this['editor']['plugins']['get']('Users')['me'],_0x20decc=_0x1172bd(),_0x360b0d=_0x261d55['id'];if(_0x2f6716)return this['_setSuggestionRange'](_0x2f6716,this['_model']['createRange'](_0x522cf8,_0x39acdd)),_0x2f6716;{const _0x5e79a6=this['_setSuggestionData']({'id':_0x20decc,'type':'formatBlock:'+_0x189cb3,'data':_0x590e3e,'createdAt':new Date(),'authorId':_0x360b0d,'attributes':_0x3e9f12});return this['_addSuggestionMarker']('formatBlock:'+_0x189cb3,_0x20decc,_0x360b0d,this['_model']['createRange'](_0x522cf8,_0x39acdd)),_0x5e79a6;}}markMultiRangeBlockFormat(_0x1b4ad9,_0x26db53,_0x5b3df6=[],_0x11425d=null,_0x1c9428={}){_0x26db53['formatGroupId']||(_0x26db53['formatGroupId']=_0x26db53['commandName']);const _0x549d89=_0x1b4ad9[0x0];_0x26db53['multipleBlocks']=_0x549d89['is']('range'),_0x11425d=_0x11425d||fn(_0x26db53);const _0x301709=_0x5b3df6['map'](_0x25518e=>pn(_0x25518e,this['_model'])),_0x262d74=_0x549d89['is']('range')?_0x1b4ad9:_0x1b4ad9['map'](_0x1758de=>pn(_0x1758de,this['_model']));if(this['_trackingSessionId']&&(_0x1c9428['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x130743=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11425d,'accept');return this['forceDefaultExecution'](()=>_0x130743(_0x262d74,_0x26db53,_0x1c9428)),null;}_0x301709['push'](..._0x262d74);let _0x476667=!0x0;for(const _0x31dc73 of _0x301709)if(!this['_rangeIsInLocalUserInsertion'](_0x31dc73)){_0x476667=!0x1;break;}if(_0x476667&&'always'!==this['_trackFormatChanges']){const _0x346678=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11425d,'accept');return this['forceDefaultExecution'](()=>_0x346678(_0x262d74,_0x26db53,_0x1c9428)),null;}const _0x19d388=this['editor']['plugins']['get']('Users')['me'];for(const _0x3c1c25 of this['getSuggestions']()){const _0x17d194=_0x3c1c25['data'];if(_0x3c1c25['author']['id']!=_0x19d388['id'])continue;if('formatBlock'!=_0x3c1c25['type']||_0x17d194['formatGroupId']!=_0x26db53['formatGroupId'])continue;if(!An(_0x3c1c25,_0x1c9428))continue;const _0x19fba8=_0x3c1c25['subType']==_0x11425d;for(let _0x482504=0x0;_0x482504<_0x262d74['length'];_0x482504++){const _0x4f3771=_0x262d74[_0x482504];for(const _0x221248 of _0x3c1c25['getMarkers']()){const _0x19f65c=_0x221248['getRange']();if(_0x4f3771['isEqual'](_0x19f65c)){_0x19fba8?(_0x262d74['splice'](_0x482504,0x1),_0x482504--):_0x3c1c25['removeMarker'](_0x221248['name']);break;}}}}if(0x0==_0x262d74['length'])return null;const _0x44c653=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11425d,'join');for(const _0x24837e of this['getSuggestions']()){const _0x11bbd4=_0x24837e['data'];if(_0x24837e['author']['id']==_0x19d388['id']&&('formatBlock'==_0x24837e['type']&&_0x11bbd4['formatGroupId']==_0x26db53['formatGroupId']&&_0x24837e['subType']==_0x11425d&&An(_0x24837e,_0x1c9428)&&(_0x44c653(_0x24837e['getRanges'](),_0x262d74)||_0x44c653(_0x262d74,_0x24837e['getRanges']())))){for(const _0x2b7cde of _0x262d74)_0x24837e['addRange'](_0x2b7cde);return _0x24837e;}}const _0x8db569=_0x1172bd(),_0x294529=_0x19d388['id'],_0x1ce0c8='formatBlock:'+_0x11425d,_0x27b235=this['_setSuggestionData']({'id':_0x8db569,'type':_0x1ce0c8,'data':_0x26db53,'createdAt':new Date(),'authorId':_0x294529,'attributes':_0x1c9428});for(const _0x515efe of _0x262d74)this['_addSuggestionMarker'](_0x1ce0c8,_0x8db569,_0x294529,_0x515efe,Ot['getMultiRangeId']());return _0x27b235;}markDeletion(_0x49c6c7,_0x2000cb=null,_0x232a9e={}){if(_0x49c6c7['isCollapsed'])return null;const _0x3032c6=this['editor']['plugins']['get']('Users')['me'],_0x199273=new at(_0x49c6c7['start'],_0x49c6c7['end']);this['_trackingSessionId']&&(_0x232a9e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x44214a,meta:_0x19b45a}of this['_findSuggestions'](_0x199273,'insertion'))if(_0x19b45a['isOwn']&&!_0x19b45a['isNextTo']){if(_0x44214a['isMultiRange']){const _0x113e84=_0x44214a['getRanges']()['filter'](_0x1d9e94=>'$graveyard'!=_0x1d9e94['root']['rootName']);if(_0x113e84['every'](_0x18f77b=>_0x199273['containsRange'](_0x18f77b,!0x0))&&_0x44214a['discard'](),_0x113e84['some'](_0x499624=>_0x499624['containsRange'](_0x199273,!0x0))){const _0x198604=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2000cb,'accept');return this['forceDefaultExecution'](()=>_0x198604([_0x199273],null,_0x232a9e)),null;}}else{const _0x1e1a28=_0x199273['getIntersection'](_0x44214a['getFirstRange']());null!==_0x1e1a28&&_0x44214a['_onDiscard']([_0x1e1a28],null,_0x232a9e);}}if(_0x199273['detach'](),_0x199273['isCollapsed']||'$graveyard'==_0x199273['root']['rootName'])return null;let _0x4a3ff9=null,_0x16744f=_0x199273['start'],_0x26e35e=_0x199273['end'];const _0x36aa06=this['_findSuggestions'](_0x199273,'deletion');for(const {suggestion:_0x5b1ff2,meta:_0x3ba8a5}of _0x36aa06){const _0x24dc8a=this['_model']['createRange'](_0x16744f,_0x26e35e);if(_0x3ba8a5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ba8a5['containsRangeInObject']&&!_0x3ba8a5['isInsideObject'])){if(_0x5b1ff2['isMultiRange']){if(!An(_0x5b1ff2,_0x232a9e))continue;let _0x4c46ea=!0x0;for(const _0x472c73 of _0x5b1ff2['getRanges']()){if(_0x472c73['containsRange'](_0x24dc8a,!0x0))return _0x5b1ff2;_0x24dc8a['containsRange'](_0x472c73)||(_0x4c46ea=!0x1);}_0x4c46ea&&_0x5b1ff2['discard']();}else{const _0x4bea09=_0x5b1ff2['getFirstRange']();if(_0x4bea09['containsRange'](_0x24dc8a,!0x0))return _0x5b1ff2;if(!An(_0x5b1ff2,_0x232a9e)){_0x24dc8a['containsRange'](_0x4bea09)?_0x5b1ff2['removeMarkers']():_0x4bea09['containsPosition'](_0x16744f)?_0x16744f=_0x4bea09['end']:_0x4bea09['containsPosition'](_0x26e35e)&&(_0x26e35e=_0x4bea09['start']);continue;}_0x16744f=_0x16744f['isBefore'](_0x4bea09['start'])?_0x16744f:_0x4bea09['start'],_0x26e35e=_0x26e35e['isAfter'](_0x4bea09['end'])?_0x26e35e:_0x4bea09['end'],_0x232a9e=Object['assign']({},_0x5b1ff2['attributes']),_0x4a3ff9?_0x4bea09['start']['isBefore'](_0x4a3ff9['getFirstRange']()['start'])?(_0x4a3ff9['removeMarkers'](),_0x4a3ff9=_0x5b1ff2):_0x5b1ff2['removeMarkers']():_0x4a3ff9=_0x5b1ff2;}}}if(_0x4a3ff9)return this['_setSuggestionRange'](_0x4a3ff9,this['_model']['createRange'](_0x16744f,_0x26e35e)),_0x4a3ff9;{const _0x54c08b=_0x1172bd(),_0x2db3d5=this['_model']['createRange'](_0x16744f,_0x26e35e),_0x51f873=_0x3032c6['id'],_0x4a1491=_0x2000cb?'deletion:'+_0x2000cb:'deletion',_0x5b5012=this['_setSuggestionData']({'id':_0x54c08b,'type':_0x4a1491,'createdAt':new Date(),'authorId':_0x51f873,'attributes':_0x232a9e});return this['_addSuggestionMarker'](_0x4a1491,_0x54c08b,_0x51f873,_0x2db3d5),_0x5b5012;}}markMultiRangeDeletion(_0x3fa880,_0x4a40ed='multi',_0x1669cd={}){const _0x2410ae=this['editor']['plugins']['get']('Users')['me'],_0x497867=_0x3fa880['map'](_0x84a2ee=>new at(_0x84a2ee['start'],_0x84a2ee['end'])),_0xc72813=new Set();this['_trackingSessionId']&&(_0x1669cd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5e4479,meta:_0x3739ec}of this['_findSuggestions'](_0x497867,'insertion'))_0x3739ec['isOwn']&&!_0x3739ec['isNextTo']&&_0xc72813['add'](_0x5e4479);for(const _0x16b2e2 of _0xc72813)if(_0x16b2e2['isMultiRange']){const _0x49b0d2=_0x16b2e2['getRanges']();if(_0x16b2e2['attributes']&&_0x16b2e2['attributes']['skipNestingCheck']||_0x49b0d2['every'](_0x309113=>_0x497867['some'](_0xc36cac=>_0xc36cac['containsRange'](_0x309113,!0x0)))&&_0x16b2e2['discard'](),_0x497867['every'](_0x122423=>_0x49b0d2['some'](_0x48fdb3=>_0x48fdb3['containsRange'](_0x122423,!0x0)))){const _0x1b5dbf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a40ed,'accept');return this['forceDefaultExecution'](()=>_0x1b5dbf(_0x3fa880,null,_0x1669cd)),null;}}else{const _0x373785=_0x16b2e2['getFirstRange']();if(_0x497867['some'](_0x1a77ff=>_0x1a77ff['containsRange'](_0x373785,!0x0))&&_0x16b2e2['discard'](),_0x497867['every'](_0x19d289=>_0x373785['containsRange'](_0x19d289,!0x0))){const _0x476aae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a40ed,'accept');return this['forceDefaultExecution'](()=>_0x476aae(_0x497867,null,_0x1669cd)),null;}}const _0x122fab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a40ed,'join');let _0x430917=null;for(const _0x1c7355 of this['getSuggestions']())if(_0x1c7355['author']['id']==_0x2410ae['id']&&_0x1c7355['isInContent']&&'deletion'==_0x1c7355['type']&&_0x1c7355['subType']==_0x4a40ed&&An(_0x1c7355,_0x1669cd)&&(_0x122fab(_0x1c7355['getRanges'](),_0x497867)||_0x122fab(_0x497867,_0x1c7355['getRanges']()))){if(_0x430917){if(_0x1c7355['commentThread']&&_0x1c7355['commentThread']['length'])continue;for(const _0x2c356d of _0x1c7355['getRanges']())_0x430917['isIntersectingWithRange'](_0x2c356d)||_0x430917['addRange'](_0x2c356d);_0x1c7355['removeMarkers']();}else{_0x430917=_0x1c7355;for(const _0x5c3562 of _0x497867)_0x1c7355['isIntersectingWithRange'](_0x5c3562)||_0x1c7355['addRange'](_0x5c3562);}}if(_0x430917)return _0x430917;_0xc72813['clear']();for(const {suggestion:_0x396895,meta:_0x5915e7}of this['_findSuggestions'](_0x497867,'deletion'))_0x5915e7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5915e7['containsRangeInObject']&&!_0x5915e7['isInsideObject'])&&An(_0x396895,_0x1669cd)&&_0xc72813['add'](_0x396895);for(const _0x550a7a of _0xc72813){const _0x5bdd56=_0x550a7a['getRanges']();if((!_0x1669cd||!_0x1669cd['skipNestingCheck'])&&_0x497867['every'](_0x700931=>_0x5bdd56['some'](_0x47e720=>_0x47e720['containsRange'](_0x700931,!0x0))))return _0x550a7a;_0x550a7a['attributes']&&_0x550a7a['attributes']['skipNestingCheck']||_0x5bdd56['every'](_0x4412d9=>_0x497867['some'](_0x4f9e47=>_0x4f9e47['containsRange'](_0x4412d9,!0x0)))&&_0x550a7a['discard']();}const _0x798f5=_0x1172bd(),_0xd6a7b4=_0x2410ae['id'],_0x3ebb78='deletion:'+_0x4a40ed,_0xd80af4=this['_setSuggestionData']({'id':_0x798f5,'type':_0x3ebb78,'createdAt':new Date(),'authorId':_0xd6a7b4,'attributes':_0x1669cd});for(const _0x57f7a6 of _0x497867)_0x57f7a6['detach'](),_0x57f7a6['isCollapsed']||'$graveyard'==_0x57f7a6['root']['rootName']||this['_addSuggestionMarker'](_0x3ebb78,_0x798f5,_0xd6a7b4,_0x57f7a6,Ot['getMultiRangeId']());return _0xd80af4;}markAttributeChange(_0x5e3074,_0x410ded,_0x3ca885,_0x3552ca,_0x5d2957){if(_0x5e3074['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x23b633=this['editor']['plugins']['get']('Users')['me']['id'],_0x9cd7ef=Array['from'](this['_suggestions']['values']())['filter'](_0xae6ea2=>'attribute'==_0xae6ea2['type']&&_0xae6ea2['data']['key']==_0x410ded&&_0xae6ea2['isIntersectingWithRange'](_0x5e3074));if(this['_trackingSessionId']&&(_0x5d2957['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4fdb0f=this['_findSuggestions'](_0x5e3074,'insertion')['filter'](({meta:_0x2e94c1})=>_0x2e94c1['isOwn']&&!_0x2e94c1['isInsideObject']&&!_0x2e94c1['isNextTo'])['map'](({suggestion:_0xffab52})=>_0xffab52);_0x9cd7ef['unshift'](..._0x4fdb0f);}const _0x2fc9aa=new Map([[_0x5e3074,_0x3ca885]]);for(const _0x28cf33 of _0x9cd7ef){const _0x42c88a='attribute'==_0x28cf33['type']?_0x28cf33['data']['oldValue']:void 0x0,_0x16d262=_0x28cf33['getFirstRange'](),_0x3e9f71=Array['from'](_0x2fc9aa['keys']())['find'](_0x26cd28=>_0x26cd28['isIntersecting'](_0x16d262));if(!_0x3e9f71)continue;const _0x3b9956=_0x3e9f71['getDifference'](_0x16d262);this['_suggestionsConversion']['isBlockAttribute'](_0x410ded)&&'insertion'==_0x28cf33['type']&&0x0!=_0x3b9956['length']||(_0x2fc9aa['delete'](_0x3e9f71),_0x3b9956['forEach'](_0x50a624=>{_0x2fc9aa['set'](_0x50a624,_0x3ca885);}),'insertion'!=_0x28cf33['type']&&_0x42c88a!=_0x3552ca&&_0x2fc9aa['set'](_0x3e9f71['getIntersection'](_0x16d262),_0x42c88a));}const _0x439b65=[];for(const [_0x77c10c,_0x3448b7]of _0x2fc9aa){const _0x297f2e=_0x1172bd(),_0xb318c5={'key':_0x410ded,'oldValue':_0x3448b7,'newValue':_0x3552ca};_0x410ded['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':_0x410ded});const _0x13afab=('attribute:'+_0x410ded+'|'+fn({'newValue':_0x3552ca}))['substring'](0x0,0x3c),_0x57a0e4=this['_setSuggestionData']({'id':_0x297f2e,'type':_0x13afab,'data':_0xb318c5,'createdAt':new Date(),'authorId':_0x23b633,'attributes':_0x5d2957});_0x439b65['push'](_0x57a0e4),this['_addSuggestionMarker'](_0x13afab,_0x297f2e,_0x23b633,_0x77c10c);}return _0x439b65;}enableDefaultAttributesIntegration(_0xccee3c){this['enableCommand'](_0xccee3c,(_0x43cb7e,..._0x39600b)=>{this['recordAttributeChanges'](()=>{_0x43cb7e(..._0x39600b);});});}startTrackingSession(_0x215279){return this['_trackingSessionId']=void 0x0!==_0x215279?_0x215279:_0x1172bd(),this['_trackingSessionId'];}_getAttributeKey(_0x278f23){return'attribute'==_0x278f23['type']?Cn(_0x278f23['subType']):null;}_applyOperationsAsSuggestions(_0x12afc3){if(0x0==_0x12afc3['length'])return;const _0x3bde3b=this['editor'],_0x2a5d32=[],_0x32289a=_0x1f6a5f=>{const _0x3ee3ac=_0x1f6a5f['_aiSource'];return _0x3ee3ac?{'@ai':{'type':_0x3ee3ac}}:{};},_0x5f3149=(_0x279def,_0x28e184,_0x5bc962,_0x233794)=>{const _0x3f159d=new Set(_0x233794['flatMap'](_0x1689a3=>_0x1689a3['getMarkerNames']()));let _0x294497=!0x1;for(let _0x1e4447=_0x28e184;_0x1e4447<_0x279def['operations']['length'];_0x1e4447++){const _0x5ee8ba=_0x279def['operations'][_0x1e4447];if('marker'==_0x5ee8ba['type']){if(!_0x3f159d['has'](_0x5ee8ba['name']))continue;_0x294497=!0x0;}_0x5ee8ba['_aiSource']=_0x5bc962;}return _0x294497;};_0x3bde3b['model']['change'](_0x4ec05e=>{for(let _0xe351b2=0x0;_0xe351b2<_0x12afc3['length'];_0xe351b2++){const _0x490cb4=_0x12afc3[_0xe351b2],_0x13be25=_0x490cb4['_aiSource'];if(_0x490cb4['baseVersion']=_0x3bde3b['model']['document']['version'],_0x490cb4['isDocumentOperation']=!0x0,_0xb57974(_0x490cb4))continue;if(an(_0x490cb4)){const _0x21d57=_0x147493(_0x490cb4['newRange'],_0x3bde3b['model']);_0x2a5d32['unshift']({'range':at['fromRange'](_0x21d57),'operation':_0x490cb4});continue;}const _0x2eb28e=_0x4ec05e['batch']['operations']['length']+0x1;let _0x2e4fa1=[];switch(_0x490cb4['type']){case'rename':{const _0xd8c417=_0x490cb4['oldName'],_0x30f0c1=_0x490cb4['newName'];if(_0xd8c417==_0x30f0c1)break;_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4);const _0x13ec7f='$elementName',_0x340bc7=_0x490cb4['position'],_0x544f70=_0x3bde3b['model']['createRange'](_0x340bc7,_0x3bde3b['model']['createPositionAt'](_0x340bc7['nodeAfter'],'end'));_0x2e4fa1=this['markAttributeChange'](_0x544f70,_0x13ec7f,_0xd8c417,_0x30f0c1,{..._0x32289a(_0x490cb4),'groupId':_0x1172bd()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1b2a93=_0x490cb4['oldValue'],_0x628f66=_0x490cb4['newValue'];if(_0x1b2a93==_0x628f66)break;_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4);const _0x26865a=_0x490cb4['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x26865a))break;const _0x4ad1a3=_0x147493(_0x490cb4['range'],_0x3bde3b['model']);_0x2e4fa1=this['markAttributeChange'](_0x4ad1a3,_0x26865a,_0x1b2a93,_0x628f66,{..._0x32289a(_0x490cb4),'groupId':_0x1172bd()});break;}case'insert':{if(_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4),_0x12afc3[_0xe351b2+0x1]&&'move'==_0x12afc3[_0xe351b2+0x1]['type'])break;const _0x51088b=_0x490cb4['position'],_0x5cca5a=_0x490cb4['howMany'],_0x30de1a=_0x147493(_0x3bde3b['model']['createRange'](_0x51088b,_0x51088b['getShiftedBy'](_0x5cca5a)),_0x3bde3b['model']);_0x2e4fa1=cn(this['markInsertion'](_0x30de1a,null,{..._0x32289a(_0x490cb4)}));break;}case'split':{_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4);const _0x24887e=_0x490cb4['splitPosition'],_0x57e7ef=_0x490cb4['moveTargetPosition'],_0x369203=_0x3bde3b['model']['createRange'](_0x24887e,_0x57e7ef);_0x2e4fa1=cn(this['markInsertion'](_0x369203,null,{..._0x32289a(_0x490cb4)}));break;}case'move':case'remove':_0x4ec05e['batch']['addOperation'](_0x490cb4),_0x3bde3b['model']['applyOperation'](_0x490cb4);}_0x13be25&&_0x5f3149(_0x4ec05e['batch'],_0x2eb28e,_0x13be25,_0x2e4fa1)&&delete _0x490cb4['_aiSource'];}for(const {range:_0x409085,operation:_0x1e887d}of _0x2a5d32){const _0x3afea0=_0x1e887d['_aiSource'],_0x38c91c=_0x32289a(_0x1e887d),_0x2cfbd1=_0x4ec05e['batch']['operations']['length'];_0x409085['detach']();const _0x931665=this['markDeletion'](_0x409085,null,{..._0x38c91c});_0x3afea0&&_0x5f3149(_0x4ec05e['batch'],_0x2cfbd1,_0x3afea0,cn(_0x931665));}});}_setSuggestionRange(_0xb56f9c,_0x34a1a3){const _0x3869c5=_0xb56f9c['getFirstMarker']();this['_model']['change'](_0x39c1bb=>{_0x39c1bb['updateMarker'](_0x3869c5,{'range':_0x34a1a3});});}_addThreadToSuggestion(_0xd16f6){const _0x478cf8=_0xd16f6['id'],_0x59a9bf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x478cf8)||this['_commentsRepository']['addCommentThread']({'channelId':_0x59a9bf,'threadId':_0x478cf8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x115fec=this['_commentsRepository']['getCommentThread'](_0x478cf8);_0x115fec['unbind']('isRemovable'),_0x115fec['isRemovable']=!0x1,_0xd16f6['commentThread']=_0x115fec;}_checkSuggestionCorrectness(_0x243425,_0x497044,_0x16b094,_0x468f45){if(_0x243425['type']!=_0x497044||_0x243425['subType']!=_0x16b094||_0x243425['creator']['id']!=_0x468f45)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4a2c66('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0xe2eb84,_0x22cb89){const _0x444ccb=_0xe2eb84['getFirstRange']();if(_0x22cb89['isEqual'](_0x444ccb))_0xe2eb84['removeMarkers']();else{if(_0x444ccb['containsRange'](_0x22cb89)){const _0x4a1b6d=this['_model']['createPositionAt'](_0x22cb89['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xe2eb84,this['_model']['createRange'](_0x444ccb['start'],_0x4a1b6d));const _0x4be592=_0x1172bd(),_0x2feee7=_0xe2eb84['creator']['id'],_0x51cb0b=_0xe2eb84['type']+':'+_0xe2eb84['subType'];this['_setSuggestionData']({'id':_0x4be592,'type':_0x51cb0b,'createdAt':new Date(),'authorId':_0x2feee7,'data':_0xe2eb84['data'],'attributes':_0xe2eb84['attributes']});const _0x293c73=this['_model']['createPositionAt'](_0x22cb89['end']['parent'],'after'),_0xacb626=this['_model']['createRange'](_0x293c73,_0x444ccb['end']);this['_addSuggestionMarker'](_0x51cb0b,_0x4be592,_0x2feee7,_0xacb626);}else{if(_0x444ccb['containsPosition'](_0x22cb89['start'])){const _0x578b45=this['_model']['createPositionAt'](_0x22cb89['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xe2eb84,this['_model']['createRange'](_0x444ccb['start'],_0x578b45));}else{const _0x317ad1=this['_model']['createPositionAt'](_0x22cb89['end']['parent'],'after');this['_setSuggestionRange'](_0xe2eb84,this['_model']['createRange'](_0x317ad1,_0x444ccb['end']));}}}}_rangeIsInLocalUserInsertion(_0x271082){for(const {suggestion:_0x3bdd05,meta:_0x3df9fe}of this['_findSuggestions'](_0x271082,'insertion')){if(!_0x3df9fe['isOwn'])continue;const _0x1c7d42=_0x3bdd05['getRanges']();for(const _0x3620ac of _0x1c7d42)if(!_0x271082['getDifference'](_0x3620ac)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x240d08){return this['editor']['plugins']['get']('Users')['getUser'](_0x240d08);}_getExternalAuthor(_0x1be222){const _0x49cedc=this['editor']['plugins']['get']('Users'),_0x26dae3=_0x755104('external:'+_0x1be222),_0x5e70bf=_0x49cedc['getUser'](_0x26dae3);return _0x5e70bf||_0x49cedc['addUser']({'id':_0x26dae3,'name':_0x1be222});}_createSuggestion(_0x3eab1c,_0x4748e1,_0x561b02,_0x367ab5,_0x1da2a9,_0x3d824b){const _0x68cb7e=this['_getAuthorFromId'](_0x367ab5);if(!_0x68cb7e)throw new _0x4a2c66('track-changes-user-not-found',this,{'authorId':_0x367ab5,'suggestionId':_0x561b02});const _0x2b3f55=this['_suggestionFactory']['buildSuggestion'](_0x3eab1c,_0x4748e1,_0x561b02,_0x68cb7e,_0x1da2a9,_0x56028e=>{this['_updateSuggestionData'](_0x561b02,{'attributes':_0x56028e});const _0x1db9e5=this['getSuggestion'](_0x561b02);this['_joinWithAdjacentSuggestions'](new Set([_0x1db9e5])),this['_refreshSuggestionsChain'](new Set([_0x1db9e5]));},_0x3d824b);return this['listenTo'](_0x2b3f55,'accept',()=>{this['_updateSuggestionData'](_0x561b02,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2b3f55,'discard',()=>{this['_updateSuggestionData'](_0x561b02,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x561b02,_0x2b3f55),this['_suggestionState']['set'](_0x2b3f55,'notReady'),_0x2b3f55;}_breakSuggestionMarker(_0x219d9a,_0x13fed2,_0x318ffe){const _0x1c974b=_0x219d9a['getFirstRange'](),_0x5ecafa=_0x1c974b['start'],_0x50438e=_0x1c974b['end'];this['_setSuggestionRange'](_0x219d9a,this['_model']['createRange'](_0x5ecafa,_0x13fed2));const _0x44c3c6=_0x1172bd(),_0x720bc3=_0x219d9a['creator']['id'],_0x528f12=_0x219d9a['type']+(_0x219d9a['subType']?':'+_0x219d9a['subType']:'');this['_setSuggestionData']({'id':_0x44c3c6,'type':_0x528f12,'createdAt':new Date(),'authorId':_0x720bc3,'originalSuggestionId':_0x219d9a['_originalSuggestionId']||_0x219d9a['id'],'attributes':_0x219d9a['attributes'],'data':_0x219d9a['data']});const _0x134304=this['_getAttributeKey'](_0x219d9a);('formatBlock'==_0x219d9a['type']||_0x134304&&this['_suggestionsConversion']['isBlockAttribute'](_0x134304))&&(_0x318ffe=this['_model']['createPositionBefore'](_0x318ffe['parent'])),this['_addSuggestionMarker'](_0x528f12,_0x44c3c6,_0x720bc3,this['_model']['createRange'](_0x318ffe,_0x50438e));}_findSuggestions(_0x198e10,_0x93d4c2=null){const _0x5ec518=[],_0x3cf4fc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x198e10)||(_0x198e10=[_0x198e10]);for(const _0x3dd0fb of this['getSuggestions']()){if(!_0x3dd0fb['isInContent'])continue;if(_0x93d4c2&&_0x3dd0fb['type']!=_0x93d4c2)continue;let _0x44fb15=!0x1;for(const _0x6adce4 of _0x3dd0fb['getRanges']()){for(const _0xf0a234 of _0x198e10){const _0x46ceef=_0xf0a234['start']['isEqual'](_0x6adce4['end'])||_0xf0a234['end']['isEqual'](_0x6adce4['start']);if(_0x46ceef||_0xf0a234['getIntersection'](_0x6adce4)){const _0x3faddf=_0xf0a234['containsRange'](_0x6adce4)&&dn(this['_model']['schema'],_0x6adce4['start'],_0xf0a234),_0x5c2704=_0x6adce4['containsRange'](_0xf0a234)&&dn(this['_model']['schema'],_0xf0a234['start'],_0x6adce4);_0x5ec518['push']({'suggestion':_0x3dd0fb,'meta':{'isOwn':_0x3cf4fc==_0x3dd0fb['author'],'isNextTo':_0x46ceef,'isInsideObject':_0x3faddf,'containsRangeInObject':_0x5c2704}}),_0x44fb15=!0x0;break;}}if(_0x44fb15)break;}}return _0x5ec518;}_addSuggestionMarker(_0x51bba0,_0x4ccda4,_0x15fc61,_0x4f975c,_0x4d7779){this['_model']['change'](_0x274f39=>{let _0x28b13f='suggestion:'+_0x51bba0+':'+_0x4ccda4+':'+_0x15fc61;_0x4d7779&&(_0x28b13f=_0x28b13f+':'+_0x4d7779),_0x274f39['addMarker'](_0x28b13f,{'range':_0x4f975c,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x2d3b18){const _0x1999e6=_0x2d3b18['previous'],_0x3d9901=_0x2d3b18['next'];_0x2d3b18['previous']=null,_0x2d3b18['next']=null,null!=_0x1999e6&&_0x1999e6['next']==_0x2d3b18&&(_0x1999e6['next']=_0x3d9901),null!=_0x3d9901&&_0x3d9901['previous']==_0x2d3b18&&(_0x3d9901['previous']=_0x1999e6),'ready'==this['_suggestionState']['get'](_0x2d3b18)&&(this['_suggestionState']['set'](_0x2d3b18,'removed'),this['fire']('suggestionUnloaded',_0x2d3b18,_0x1999e6,_0x3d9901));}_setSuggestionData(_0x5b337d){const _0x388243=_0x5b337d['id'],_0x5dd60d=this['addSuggestionData'](_0x5b337d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d0c29=this['editor']['plugins']['get']('PendingActions'),_0x480d81=_0x5dd60d['hasComments'],_0x21afb3=_0x5dd60d['subType']?_0x5dd60d['type']+':'+_0x5dd60d['subType']:_0x5dd60d['type'],_0x20e96=this['editor']['locale'],_0x38c9b7=_0x1d0c29['add'](wt(_0x20e96,'PENDING_ACTION_SUGGESTION')),_0x12003b={'id':_0x388243,'type':_0x21afb3,'hasComments':_0x480d81,'data':_0x5b337d['data']||null,'originalSuggestionId':_0x5b337d['originalSuggestionId']||null,'attributes':_0x5dd60d['attributes']};this['_adapter']['addSuggestion'](_0x12003b)['then'](_0xce6efe=>{_0x5dd60d['_saved']=!0x0,_0x1d0c29['remove'](_0x38c9b7),_0xce6efe&&_0xce6efe['createdAt']&&(this['_suggestions']['get'](_0x388243)['createdAt']=_0xce6efe['createdAt']);})['catch'](_0x5a220c=>{throw _0x5600d2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5dd60d['discard']();}),_0x5dd60d['stopListening'](),this['_suggestions']['delete'](_0x5dd60d['id']),this['_suggestionState']['delete'](_0x5dd60d),_0x5a220c;});}return _0x5dd60d;}_updateSuggestionData(_0x18d5d5,_0x237a5d){const _0x1f7ce3=this['editor']['plugins']['get']('PendingActions'),_0x9f892f=this['getSuggestion'](_0x18d5d5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x9f892f['_saved']){const _0x22ec7f=_0x1f7ce3['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x18d5d5,_0x237a5d)['then'](()=>{_0x1f7ce3['remove'](_0x22ec7f);});}else _0x9f892f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x18d5d5,_0x237a5d);});}}_getSuggestionData(_0x3a8ae5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4a2c66('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a8ae5);}_handleNewSuggestionMarker(_0x57d5f2){const {id:_0x2ebaeb,type:_0x2dbb01,subType:_0x290d2c,authorId:_0xfa99b0}=nt(_0x57d5f2),_0x5246fc=this['_suggestions']['get'](_0x2ebaeb)||this['_createSuggestion'](_0x2dbb01,_0x290d2c,_0x2ebaeb,_0xfa99b0,{});switch(this['_checkSuggestionCorrectness'](_0x5246fc,_0x2dbb01,_0x290d2c,_0xfa99b0),this['_suggestionState']['get'](_0x5246fc)){case'notReady':this['_getSuggestionData'](_0x2ebaeb)['then'](_0x27a82b=>{let _0x3df7f0=Promise['resolve']();_0x27a82b['hasComments']&&(_0x3df7f0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ebaeb})),_0x3df7f0['then'](()=>{this['addSuggestionData'](_0x27a82b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5246fc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ebaeb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5246fc,'ready'),this['fire']('suggestionLoaded',_0x5246fc);break;case'ready':this['fire']('suggestionChanged',_0x5246fc);}return _0x5246fc['addMarkerName'](_0x57d5f2),_0x5246fc;}_refreshSuggestionsChain(_0x5e332b){const _0x3ce212=Array['from'](_0x5e332b),_0xafc274=_0x3ce212['filter'](_0xa4b6ce=>'attribute'==_0xa4b6ce['type']);this['_refreshAttributeSuggestionsChain'](_0xafc274);const _0xd4a488=_0x3ce212['filter'](_0x16b424=>!_0x16b424['isMultiRange']&&'attribute'!=_0x16b424['type']),_0x301ff9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28118e=>!_0x28118e['isMultiRange']&&'attribute'!=_0x28118e['type']),_0x355d62=_0x301ff9['filter'](_0x154e3d=>!_0x5e332b['has'](_0x154e3d)),_0x1d44bc=new Map(_0x301ff9['map'](_0x296529=>[_0x296529,this['_suggestionFactory']['getSuggestionCallback'](_0x296529['type'],_0x296529['subType'],'chain')])),_0x3be718=new Map(_0x301ff9['map'](_0x310982=>[_0x310982,_0x310982['getFirstRange']()])),_0x3e47f7=new Set(),_0x1cdb4d=new Set();for(let _0x907831=0x0;_0x907831<_0xd4a488['length'];_0x907831++)_0x98c112(_0xd4a488[_0x907831],_0xd4a488,_0x907831+0x1);for(let _0x387734=0x0;_0x387734<_0xd4a488['length'];_0x387734++)_0x98c112(_0xd4a488[_0x387734],_0x355d62,0x0);const _0x281023=new Set();for(let _0x38db17=0x0;_0x38db17<_0xd4a488['length'];_0x38db17++){const _0x1c76a6=_0xd4a488[_0x38db17];!_0x1cdb4d['has'](_0x1c76a6)&&_0x1c76a6['previous']&&(_0x281023['add'](_0x1c76a6['previous']),_0x1c76a6['previous']['next']===_0x1c76a6&&(_0x1c76a6['previous']['next']=null),_0x1c76a6['previous']=null),!_0x3e47f7['has'](_0x1c76a6)&&_0x1c76a6['next']&&(_0x281023['add'](_0x1c76a6['next']),_0x1c76a6['next']['previous']===_0x1c76a6&&(_0x1c76a6['next']['previous']=null),_0x1c76a6['next']=null);}function _0x98c112(_0x47b832,_0x4f2720,_0x44b989){for(let _0x2ef2d7=_0x44b989;_0x2ef2d7<_0x4f2720['length'];_0x2ef2d7++){const _0x3c3a41=_0x3a9e5c(_0x47b832,_0x4f2720[_0x2ef2d7]);_0x3c3a41&&(_0x3c3a41[0x0]['next']=_0x3c3a41[0x1],_0x3c3a41[0x1]['previous']=_0x3c3a41[0x0],_0x3e47f7['add'](_0x3c3a41[0x0]),_0x1cdb4d['add'](_0x3c3a41[0x1]));}}function _0x3a9e5c(_0x615c05,_0x5f498f){if(_0x615c05['author']['id']!==_0x5f498f['author']['id'])return null;const _0x8c4abd=_0x1d44bc['get'](_0x615c05)(_0x615c05,_0x5f498f,_0x3be718['get'](_0x615c05),_0x3be718['get'](_0x5f498f));return _0x8c4abd&&_0x1d44bc['get'](_0x5f498f)(_0x615c05,_0x5f498f,_0x3be718['get'](_0x615c05),_0x3be718['get'](_0x5f498f))?_0x8c4abd[0x1]['commentThread']&&_0x8c4abd[0x1]['commentThread']['length']?null:_0x8c4abd:null;}_0x281023['size']&&this['_refreshSuggestionsChain'](_0x281023);}_refreshAttributeSuggestionsChain(_0x2cfc6b){if(0x0==_0x2cfc6b['length'])return;const _0x59bb4b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e3da5=>'attribute'==_0x3e3da5['type']&&_0x3e3da5['_isDataLoaded']),_0x166d9e=[],_0x5a8501=new Map();for(const _0x27341e of _0x59bb4b){const _0x36e86c=_0x755104(_0x27341e['attributes']);_0x5a8501['has'](_0x36e86c)||(_0x5a8501['set'](_0x36e86c,_0x166d9e['length']),_0x166d9e['push']([])),_0x166d9e[_0x5a8501['get'](_0x36e86c)]['push'](_0x27341e);}!(function(){_0x166d9e['sort']((_0x1145b6,_0x1e778c)=>{const _0x471718=_0x1145b6[0x0]['createdAt'],_0x34b7a8=_0x1e778c[0x0]['createdAt'];return _0x471718==_0x34b7a8?_0x1145b6[0x0]['attributes']['groupId']<_0x1e778c[0x0]['attributes']['groupId']?-0x1:0x1:_0x471718<_0x34b7a8?-0x1:0x1;});for(const _0x33a6e7 of _0x166d9e)_0x33a6e7['sort']((_0x24a53b,_0x3c5488)=>_0x24a53b['id']<_0x3c5488['id']?-0x1:0x1);}());for(let _0x23fc52=0x0;_0x23fc52<_0x166d9e['length'];_0x23fc52++){if(0x0==_0x166d9e[_0x23fc52]['length'])continue;const _0x342bf2=[];for(let _0x5ae389=_0x23fc52+0x1;_0x5ae389<_0x166d9e['length'];_0x5ae389++)0x0!=_0x166d9e[_0x5ae389]['length']&&_0x48d38d(_0x166d9e[_0x23fc52],_0x166d9e[_0x5ae389])&&_0x342bf2['push'](_0x5ae389);for(const _0xf3e3f4 of _0x342bf2)_0x166d9e[_0x23fc52]=_0x166d9e[_0x23fc52]['concat'](_0x166d9e[_0xf3e3f4]),_0x166d9e[_0xf3e3f4]=[];}for(const _0x421a4c of _0x166d9e)for(let _0x39c413=0x0;_0x39c413<_0x421a4c['length'];_0x39c413++){const _0x50587a=_0x421a4c[_0x39c413+0x1]||null;_0x421a4c[_0x39c413]['next']!==_0x50587a&&(_0x421a4c[_0x39c413]['next']=_0x50587a);}for(const _0x26c3e0 of _0x166d9e)for(let _0x3187b1=0x0;_0x3187b1<_0x26c3e0['length'];_0x3187b1++){const _0x3f479e=_0x26c3e0[_0x3187b1-0x1]||null;_0x26c3e0[_0x3187b1]['previous']!==_0x3f479e&&(_0x26c3e0[_0x3187b1]['previous']=_0x3f479e);}function _0x48d38d(_0x3757ff,_0x494921){if(_0x3757ff[0x0]['attributes']['groupId']!==_0x494921[0x0]['attributes']['groupId']&&_0x3757ff[0x0]['author']!==_0x494921[0x0]['author'])return!0x1;if(!function(_0x5c5f8a,_0x5ab55d){return!_0x5c5f8a['hasComments']&&!_0x5ab55d['hasComments']||(!_0x5c5f8a['hasComments']||!_0x5ab55d['hasComments'])&&(!!(_0x5c5f8a['hasComments']&&_0x5ab55d['createdAt']<_0x5c5f8a['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x5ab55d['hasComments']&&_0x5c5f8a['createdAt']<_0x5ab55d['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x3757ff[0x0],_0x494921[0x0]))return!0x1;const _0x5ccfff=dt(_0x3757ff[0x0]['attributes'],['groupId','trackingSessionId']),_0x47a011=dt(_0x494921[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x5ccfff,_0x47a011)&&(_0x3757ff[0x0]['attributes']['groupId']==_0x494921[0x0]['attributes']['groupId']||_0x3757ff[0x0]['attributes']['trackingSessionId']===_0x494921[0x0]['attributes']['trackingSessionId']&&(!!_0x3757ff['every'](_0x1480b2=>_0x494921['some'](_0x68643f=>_0x1480b2['getFirstRange']()['isEqual'](_0x68643f['getFirstRange']())))&&_0x494921['every'](_0x39cfc6=>_0x3757ff['some'](_0x74110=>_0x39cfc6['getFirstRange']()['isEqual'](_0x74110['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x4d0b76){const _0x4e2378=Array['from'](_0x4d0b76),_0x38adb8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x40c676=_0x38adb8['filter'](_0x30c53b=>!_0x4d0b76['has'](_0x30c53b)),_0x1acf35=new Map(_0x4e2378['map'](_0x5a4231=>[_0x5a4231,this['_suggestionFactory']['getSuggestionCallback'](_0x5a4231['type'],_0x5a4231['subType'],'join')])),_0x43ad5a=new Map(_0x38adb8['map'](_0x3137d0=>[_0x3137d0,_0x3137d0['getRanges']()]));for(let _0x243182=0x0;_0x243182<_0x4e2378['length'];_0x243182++)if(_0x25e04f(this,_0x4e2378[_0x243182],_0x4e2378,_0x243182+0x1))return!0x0;for(let _0x586c02=0x0;_0x586c02<_0x4e2378['length'];_0x586c02++)if(_0x25e04f(this,_0x4e2378[_0x586c02],_0x40c676,0x0))return!0x0;return!0x1;function _0x25e04f(_0x49d58d,_0x22d0b7,_0x102bbc,_0x56149d){for(let _0x121dc5=_0x56149d;_0x121dc5<_0x102bbc['length'];_0x121dc5++){const _0x2e675b=_0x102bbc[_0x121dc5];if(_0x2e675b['type']!==_0x22d0b7['type']||_0x2e675b['author']['id']!==_0x22d0b7['author']['id']||_0x2e675b['subType']!==_0x22d0b7['subType'])continue;if(!In(_0x22d0b7,_0x2e675b))continue;if('attribute'==_0x22d0b7['type']&&_0x22d0b7['data']['oldValue']!=_0x2e675b['data']['oldValue'])continue;if('attribute'==_0x22d0b7['type']&&_0x49d58d['_suggestionsConversion']['isBlockAttribute'](_0x22d0b7['data']['key']))continue;if('formatBlock'==_0x22d0b7['type']){const _0x9b3bce=_0x49d58d['editor']['model'],_0x1193c8=_0x22d0b7['getContainedElement']();if(_0x1193c8&&(_0x9b3bce['schema']['isObject'](_0x1193c8)||_0x9b3bce['schema']['isLimit'](_0x1193c8)))continue;}const _0x3cb26c=_0x1acf35['get'](_0x22d0b7),_0xd41e33=_0x43ad5a['get'](_0x22d0b7),_0xb3d7d7=_0x43ad5a['get'](_0x2e675b),_0x6771bb=_0x22d0b7['commentThread']&&_0x22d0b7['commentThread']['length'],_0x5a36a5=_0x2e675b['commentThread']&&_0x2e675b['commentThread']['length'];if(!_0x6771bb&&_0x3cb26c(_0xb3d7d7,_0xd41e33))return _0x49d58d['_joinSuggestions'](_0x2e675b,_0x22d0b7),_0x43ad5a['delete'](_0x22d0b7),!0x0;if(!_0x5a36a5&&_0x3cb26c(_0xd41e33,_0xb3d7d7))return _0x49d58d['_joinSuggestions'](_0x22d0b7,_0x2e675b),_0x43ad5a['delete'](_0x2e675b),!0x0;}return!0x1;}}_joinSuggestions(_0x26248c,_0x4f8c72){if(_0x26248c['isMultiRange']){for(const _0x535fed of _0x4f8c72['getRanges']())_0x26248c['addRange'](_0x535fed);}else{const _0x473adb=_0x4f8c72['getFirstRange']()['end'];this['_setSuggestionRange'](_0x26248c,this['_model']['createRange'](_0x26248c['getFirstRange']()['start'],_0x473adb));}_0x4f8c72['removeMarkers']();}_getMarkerAnnouncementText(_0x1242a3,_0x467089,_0x537f51){const _0x4728c5=_0x1242a3['startsWith']('format')||_0x1242a3['startsWith']('attribute')?'FORMATTING':_0x1242a3['toUpperCase']();return wt(this['editor']['locale'],_0x467089+'_'+_0x4728c5+'_SUGGESTION_ANNOUNCEMENT',_0x537f51);}_initAriaMarkerChangeAnnouncements(){const _0xdf48e9=this['editor'];if(!_0xdf48e9['ui'])return;const {ariaLiveAnnouncer:_0x1e4d65}=_0xdf48e9['ui'];it(this['_model'],({left:_0x220ba8,entered:_0x1b4127})=>{for(const _0x493733 of _0x220ba8){const {group:_0x17d1eb,type:_0x3d3163}=nt(_0x493733['name']);if('suggestion'===_0x17d1eb){_0x1e4d65['announce'](this['_getMarkerAnnouncementText'](_0x3d3163,'LEAVE'));break;}}for(const _0x18d275 of _0x1b4127){const {group:_0x46c30a,type:_0x2ce55d}=nt(_0x18d275['name']);if('suggestion'===_0x46c30a){_0x1e4d65['announce'](this['_getMarkerAnnouncementText'](_0x2ce55d,'ENTER',_0x593510(_0x3aea87)));break;}}});}_processAttributeChanges(_0x479617){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2a90a1=this['editor'],_0x1657bd=_0x2a90a1['model']['document']['differ']['getChanges']();if(0x0==_0x1657bd['length'])return!0x1;const _0x2d6316=[],_0x456b29=_0x1657bd['filter'](_0x596550=>'attribute'==_0x596550['type']),_0x5bc908=_0x1657bd['filter'](_0x4886d9=>'insert'==_0x4886d9['type']&&'$text'!=_0x4886d9['name']),_0x3a6f9f=_0x1657bd['filter'](_0x20fede=>'remove'==_0x20fede['type']&&'$text'!=_0x20fede['name']);for(const _0x26a1b1 of _0x456b29)_0x2d6316['push']({'key':_0x26a1b1['attributeKey'],'newValue':_0x26a1b1['attributeNewValue'],'oldValue':_0x26a1b1['attributeOldValue'],'range':_n(_0x26a1b1['range'],_0x2a90a1['model'])});for(const _0x1e2b01 of _0x5bc908){const _0x2391b1=_0x3a6f9f['find'](_0x2ca881=>_0x2ca881['position']['isEqual'](_0x1e2b01['position']));_0x2391b1&&_0x2d6316['push']({'key':on,'newValue':_0x1e2b01['name'],'oldValue':_0x2391b1['name'],'range':_0x2a90a1['model']['createRangeOn'](_0x1e2b01['position']['nodeAfter'])});}return 0x0!=_0x2d6316['length']&&this['_reduceExistingSuggestions'](_0x479617,_0x2d6316);}_processAttributeSuggestions(_0x5535ad){let _0x142d60=!0x1;const _0x116550=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x482e0d=>_0x482e0d['data']['newRange']&&_0x482e0d['name']['startsWith']('suggestion:attribute:'));for(const _0x2ee7c9 of _0x116550){const {subType:_0x2830ba,id:_0x4c17d8}=nt(_0x2ee7c9['name']),_0x10c27f=_0x2830ba['split']('|')[0x0];for(const _0x19f01e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x19f01e['id']!=_0x4c17d8&&'attribute'==_0x19f01e['type']&&_0x19f01e['data']&&_0x19f01e['data']['key']==_0x10c27f&&_0x19f01e['getFirstRange']()['isIntersecting'](_0x2ee7c9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x19f01e,_0x2ee7c9['data']['newRange'],_0x5535ad),_0x142d60=!0x0);}return _0x142d60;}recordAttributeChanges(_0x59e9d4){this['_recordAttributeSuggestions']=!0x0,_0x59e9d4();}_reduceExistingSuggestions(_0x136fb8,_0x8d0bbf){if(0x0==_0x8d0bbf['length'])return!0x1;let _0x1ae4de=!0x1;for(const _0x226bcd of _0x8d0bbf){const _0x459675=this['_findSuggestions'](_0x226bcd['range'],'attribute')['filter'](_0x4015b3=>!_0x4015b3['meta']['isNextTo'])['map'](_0x173893=>_0x173893['suggestion']),_0x4dcc65=_0x755104({'newValue':_0x226bcd['newValue']});_0x459675['filter'](_0x238538=>{const [_0xb27b47,_0x403d22]=_0x238538['subType']['split']('|');return _0xb27b47==_0x226bcd['key']&&_0x403d22!=_0x4dcc65;})['forEach'](_0x11838e=>{this['_reduceSuggestionAttributeRange'](_0x11838e,_0x226bcd['range'],_0x136fb8),_0x1ae4de=!0x0;});}return _0x1ae4de;}_reduceSuggestionAttributeRange(_0x491529,_0x505766,_0x2ae02a){const _0x5d5866=_0x491529['getFirstRange']()['getDifference'](_0x505766);0x0!==_0x5d5866['length']?0x1!==_0x5d5866['length']?this['_breakSuggestionMarker'](_0x491529,_0x505766['start'],_0x505766['end']):this['_setSuggestionRange'](_0x491529,_0x5d5866[0x0]):_0x2ae02a['removeMarker'](_0x491529['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x2efbd5){this['_editor']=_0x2efbd5,this['_model']=_0x2efbd5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0xa0233,_0x86ca22,_0x394a49,_0x4b7a25,_0x51e8d9,_0x16723b,_0x7d6936){return new Ot(this['_model'],{'type':_0xa0233,'subType':_0x86ca22,'id':_0x394a49,'originalSuggestionId':_0x7d6936,'author':_0x4b7a25,'creator':_0x4b7a25,'attributes':_0x51e8d9,'onAttributesChange':_0x16723b,'onAccept':(..._0x753e2f)=>this['getSuggestionCallback'](_0xa0233,_0x86ca22,'accept')(..._0x753e2f),'onDiscard':(..._0x2eca4d)=>this['getSuggestionCallback'](_0xa0233,_0x86ca22,'discard')(..._0x2eca4d)});}registerCustomCallback(_0x55c7c2,_0x5d0562,_0x332144,_0x49b2ee){const _0x3a4114=_0x55c7c2+':'+_0x5d0562+':'+_0x332144;this['_customCallbacks']['set'](_0x3a4114,_0x49b2ee);}getSuggestionCallback(_0x400b16,_0x2755bb,_0x1a6fb9){const _0x53da83=_0x400b16+':'+_0x2755bb+':'+_0x1a6fb9;return this['_customCallbacks']['get'](_0x53da83)||this['_defaultCallbacks']['get'](_0x400b16+':'+_0x1a6fb9);}_registerDefaultCallbacks(){const _0x2681e8=()=>!0x1,_0x376832=_0x297dd9=>{_0x297dd9['sort']((_0x3b7c84,_0x282f6c)=>_0x3b7c84['start']['isBefore'](_0x282f6c['start'])?0x1:-0x1),this['_model']['change'](_0x6af933=>{for(const _0x3dc743 of _0x297dd9){let _0x2369e9;_0x2369e9=_0x3dc743['end']['isAtEnd']&&_0x3dc743['end']['parent']==_0x3dc743['start']['nodeAfter']?_0x6af933['createSelection'](_0x3dc743['start']['nodeAfter'],'on'):_0x6af933['createSelection'](_0x3dc743),this['_model']['deleteContent'](_0x2369e9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4557bc=(_0x2f02eb,_0x26550a)=>{_0x26550a&&this['_model']['change'](_0xc35a6e=>{const {commandName:_0x5be880,commandParams:_0x159303=[]}=_0x26550a,_0x210bdb=_0x2f02eb['map'](_0xa6cfb1=>(hn(_0xa6cfb1)&&(_0xa6cfb1=this['_model']['createRange'](_0xa6cfb1['end'])),_0xa6cfb1))['filter'](_0x1440a2=>'$graveyard'!==_0x1440a2['root']['rootName']);if(_0x210bdb['length']<0x1)return;const _0x2b585e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b6293=>at['fromRange'](_0x3b6293));_0xc35a6e['setSelection'](_0x210bdb);for(const _0x1a8132 of this['_editor']['commands']['commands']())_0x1a8132['refresh']();_0x159303['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5be880,..._0x159303);const _0x39909c=_0x2b585e['filter'](_0x26d015=>'$graveyard'!=_0x26d015['root']['rootName']);_0x39909c['length']>0x0&&_0xc35a6e['setSelection'](_0x39909c);for(const _0x289686 of _0x2b585e)_0x289686['detach']();});},_0x489636=(_0x237a68,_0x7dde59)=>0x1==_0x237a68['length']&&0x1==_0x7dde59['length']&&_0x237a68[0x0]['end']['isEqual'](_0x7dde59[0x0]['start']),_0x3c5158=(_0xc4bdb5,_0x514f41,_0x12fe3b,_0x25abc4)=>Ln(_0xc4bdb5,_0x514f41,_0x12fe3b,_0x25abc4)?[_0xc4bdb5,_0x514f41]:Ln(_0x514f41,_0xc4bdb5,_0x25abc4,_0x12fe3b)?[_0x514f41,_0xc4bdb5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2681e8),this['_defaultCallbacks']['set']('insertion:discard',_0x376832),this['_defaultCallbacks']['set']('insertion:join',_0x489636),this['_defaultCallbacks']['set']('insertion:chain',_0x3c5158),this['_defaultCallbacks']['set']('deletion:accept',_0x376832),this['_defaultCallbacks']['set']('deletion:discard',_0x2681e8),this['_defaultCallbacks']['set']('deletion:join',_0x489636),this['_defaultCallbacks']['set']('deletion:chain',_0x3c5158),this['_defaultCallbacks']['set']('formatInline:accept',_0x4557bc),this['_defaultCallbacks']['set']('formatInline:discard',_0x2681e8),this['_defaultCallbacks']['set']('formatInline:join',_0x489636),this['_defaultCallbacks']['set']('formatInline:chain',_0x2681e8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4557bc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2681e8),this['_defaultCallbacks']['set']('formatBlock:join',_0x489636),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2681e8),this['_defaultCallbacks']['set']('attribute:accept',_0x2681e8),this['_defaultCallbacks']['set']('attribute:discard',(_0x69bf0a,_0x339308)=>{if(!_0x339308)return;const _0x447a31=this['_editor']['plugins']['get'](_0x131b84);this['_model']['change'](_0x3fe65d=>{if('$elementName'==_0x339308['key'])for(const _0x312d3b of _0x69bf0a){const _0x5f18ee=_0x312d3b['start']['nodeAfter'],_0x13de05=_0x339308['oldValue'];_0x3fe65d['rename'](_0x5f18ee,_0x13de05);}else{if(_0x447a31['isBlockAttribute'](_0x339308['key'])){for(const _0x22dcb1 of _0x69bf0a)void 0x0!==_0x339308['oldValue']?_0x3fe65d['setAttribute'](_0x339308['key'],_0x339308['oldValue'],_0x22dcb1['start']['nodeAfter']):_0x3fe65d['removeAttribute'](_0x339308['key'],_0x22dcb1['start']['nodeAfter']);}else{for(const _0x5a1586 of _0x69bf0a)_0x339308['oldValue']?_0x3fe65d['setAttribute'](_0x339308['key'],_0x339308['oldValue'],_0x5a1586):_0x3fe65d['removeAttribute'](_0x339308['key'],_0x5a1586);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x489636);}};function dn(_0x1eab0e,_0x7bb264,_0x1421fe){for(const _0x2770e7 of _0x7bb264['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2770e7['root']==_0x2770e7)return!0x1;if(!_0x1421fe['containsItem'](_0x2770e7))return!0x1;if(_0x1eab0e['isObject'](_0x2770e7)||_0x1eab0e['isLimit'](_0x2770e7))return!0x0;}return!0x1;}function hn(_0x50afc4){return _0x50afc4['end']['parent']==_0x50afc4['start']['nodeAfter']&&_0x50afc4['end']['isAtStart'];}function gn(_0x19768d,_0x3ac41b,_0x569fe5,_0x188f1c){const _0x460425=_0x5d99f1=>!_0x5d99f1['item']['is']('$textProxy')&&!_0x188f1c['isObject'](_0x5d99f1['item']),_0x598b77=_0x19768d['start']['getLastMatchingPosition'](_0x460425),_0x5cda11=_0x19768d['end']['getLastMatchingPosition'](_0x460425,{'direction':'backward'});return(!_0x19768d['start']['isEqual'](_0x598b77)||!_0x19768d['end']['isEqual'](_0x5cda11))&&(_0x598b77['isBefore'](_0x5cda11)?_0x569fe5['updateMarker'](_0x3ac41b,{'range':_0x569fe5['createRange'](_0x598b77,_0x5cda11)}):_0x569fe5['removeMarker'](_0x3ac41b),!0x0);}function fn(_0x448303){return _0x755104(_0x448303);}function mn(_0x1b00a0){const _0x275c15=_0x1b00a0['start']['nodeAfter'];return _0x275c15&&_0x275c15['is']('element');}function En(_0xa48aa3){return hn(_0xa48aa3)||function(_0x244dc0){return _0x244dc0['start']['parent']==_0x244dc0['end']['nodeBefore']&&_0x244dc0['start']['isAtEnd'];}(_0xa48aa3);}function Tn(_0x3f8024,_0x5684a0){try{const _0x3418c8=_0x3f8024['getRange']();for(const _0x14b268 of _0x5684a0)if(_0x3f8024!==_0x14b268&&_0x3418c8&&_0x3418c8['isIntersecting'](_0x14b268['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0x1ea284,_0x2d1e5a){return null==_0x1ea284['end']['nodeBefore']&&_0x1ea284['end']['parent']==_0x1ea284['start']['nodeAfter']?pn(_0x1ea284['start']['nodeAfter'],_0x2d1e5a):_0x1ea284;}function pn(_0x16b73b,_0xaaf84b){const _0x3e7542=_0xaaf84b['schema']['isObject'](_0x16b73b)||_0xaaf84b['schema']['isSelectable'](_0x16b73b);return _0xaaf84b['createRange'](_0xaaf84b['createPositionAt'](_0x16b73b,'before'),_0x3e7542?_0xaaf84b['createPositionAfter'](_0x16b73b):_0xaaf84b['createPositionAt'](_0x16b73b,'end'));}function Ln(_0x266bd4,_0x3b035e,_0x6f0e,_0x3fb777){return!!In(_0x266bd4,_0x3b035e)&&_0x6f0e['end']['isEqual'](_0x3fb777['start']);}function In(_0x6f6eb0,_0x4dc79d){if(!_0x6f6eb0['_isDataLoaded']||!_0x4dc79d['_isDataLoaded'])return!0x1;const _0x132129=new Set(Object['keys'](_0x6f6eb0['attributes'])),_0x119a8e=new Set(Object['keys'](_0x4dc79d['attributes']));if(_0x132129['delete']('groupId'),_0x119a8e['delete']('groupId'),0x0==_0x132129['size']&&0x0==_0x119a8e['size'])return!0x0;if(_0x132129['size']!=_0x119a8e['size'])return!0x1;const _0x23f477={..._0x6f6eb0['attributes']},_0x244d4a={..._0x4dc79d['attributes']};return delete _0x23f477['groupId'],delete _0x244d4a['groupId'],JSON['stringify'](_0x23f477)==JSON['stringify'](_0x244d4a);}function An(_0x239ea5,_0x399c0e){const _0x99a73c=bn(_0x239ea5['attributes']),_0x2bb7f1=bn(_0x399c0e);if(!_0x239ea5['_isDataLoaded'])return!0x1;if(!ut(_0x99a73c['@ai'],_0x2bb7f1['@ai']))return!0x1;for(const _0x4f05cd of Object['keys'](_0x2bb7f1))if(!ut(_0x99a73c[_0x4f05cd],_0x2bb7f1[_0x4f05cd]))return!0x1;return!0x0;}function bn(_0x4cd710){const _0x3b0f0a=Object['assign']({},_0x4cd710);return delete _0x3b0f0a['skipNestingCheck'],delete _0x3b0f0a['tablePasteChainId'],_0x3b0f0a;}function Cn(_0x56ad75){return _0x56ad75['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5e7ece();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x199c46,_0x236002,_0xf01158,_0x243cf2){super(),this['model']=_0x236002,this['view']=_0xf01158,this['commentThreadController']=_0x243cf2,this['_editor']=_0x199c46,this['_acceptCommand']=_0x199c46['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x199c46['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x408e4a,_0x4827f7)=>_0x408e4a||_0x4827f7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x492dfb=>_0x492dfb&&this['_editor']['model']['canEditAt'](_0x236002['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x20db1e=>_0x20db1e&&this['_editor']['model']['canEditAt'](_0x236002['getRanges']())),this['_pendingAction']=null,_0xf01158['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf01158,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf01158,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf01158,'change:isDirty',()=>{_0xf01158['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 _0x2a0c85=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2a0c85);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x11cf3b{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x243634,_0x76304b,_0x509e23,_0xc78dad){super(_0x243634),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1ebf89(_0x243634,wt(_0x243634,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x76304b['authoredAt']),this['bind']('authoredAt')['to'](_0x76304b),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',_0x76304b,'authoredAt',this,'descriptionParts',(_0x59a298,_0x55b608,_0x43adfd)=>{const _0x17a7e1=_0x43adfd['map'](_0x41d4c2=>At(_0x41d4c2['content']))['join']('.\x20')+'.',_0x353f07=_0x76304b['aiSource']&&'author'===_0xc78dad['showAISource']?_0xc78dad['aiAuthor']['name']:_0x76304b['author']['name'],_0xcdcab0=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x59a298-0x1,_0x353f07,_0x55b608?_0xc78dad['formatDateTime'](_0x55b608):'',new DOMParser()['parseFromString'](_0x22f8b0(_0x17a7e1),'text/html')['body']['textContent']]);return _0x76304b['aiSource']&&'pill'===_0xc78dad['showAISource']?_0xcdcab0+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0xcdcab0;}),this['focusables']=new _0x2f61b8(),this['focusTracker']=new _0x541fa6(),this['keystrokes']=new _0x12a3e0(),this['focusCycler']=new _0x23b8d0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4c2c14=>_0x4c2c14['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x76304b,this['_localUser']=_0x509e23,this['_config']=_0xc78dad,_0xc78dad['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),et(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x21505d}=this['_config'];this['commentsListView']=new _0x21505d(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',_0x5ddae5=>_0x5ddae5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f3621,_0x2e4bbd)=>_0x2f3621||!!_0x2e4bbd);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x1df2f1}=this['_config'],_0xaa9390=new _0x1df2f1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5a4d6d=_0xaa9390['commentInputView'];return _0xaa9390['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5a4d6d,'value',(_0x4a62cc,_0x5d1974,_0x28cf44)=>!!_0x28cf44||_0x4a62cc&&!_0x5d1974),_0x5a4d6d['on']('submit',(_0x406c48,_0x39ddd3)=>{this['fire']('addComment',_0x39ddd3),_0x5a4d6d['editor']['setData']('');}),_0x5a4d6d['on']('cancel',()=>this['focus']()),_0x5a4d6d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xaa9390;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x3efffd,_0x4238b2,_0x3968a7,_0x331874){super(_0x3efffd,_0x4238b2,_0x3968a7,_0x331874),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x467157=>_0x467157&&_0x467157[0x0]?_0x467157[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44ef94,_0x589fe6)=>{let _0x25f3a1='';for(const _0x50e88b of _0x44ef94)_0x25f3a1+='<p>'+At(_0x50e88b['content'],_0x50e88b['color'])+'</p>';return _0x589fe6?_0x25f3a1:st(_0x25f3a1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x331874['SuggestionView'](_0x3efffd,_0x4238b2,{'formatDateTime':_0x331874['formatDateTime'],'showAISource':_0x331874['showAISource'],'aiAuthor':_0x331874['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x5bb132=>!!_0x5bb132||wt(_0x3efffd,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0xb5ef22=>!!_0xb5ef22||wt(_0x3efffd,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),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 _0xf9e36d=this['bindTemplate'],_0x33fc31=[this['suggestionView']];return this['commentsListView']&&_0x33fc31['push'](this['commentsListView']),this['commentThreadInputView']&&_0x33fc31['push'](this['commentThreadInputView']),_0x33fc31['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xf9e36d['if']('isActive','ck-suggestion-wrapper--active'),_0xf9e36d['to']('type',_0x1c5176=>'ck-suggestion-'+_0x1c5176),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':_0xf9e36d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x33fc31};}['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));}},Sn=class extends _0x11cf3b{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x536dea,_0x10cac7,_0x4854f6){super(_0x536dea),this['_model']=_0x10cac7,this['_config']=_0x4854f6,this['set']('description',''),this['bind']('authoredAt')['to'](_0x10cac7),this['acceptButton']=this['_createButton'](wt(_0x536dea,'Accept\x20suggestion'),_0x5378a4,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x536dea,'Discard\x20suggestion'),_0x5cb59d,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x3e873f=!!_0x10cac7['aiSource']&&'author'===_0x4854f6['showAISource'],_0x1d40b8=_0x3e873f?this['_createAIUser'](_0x4854f6['aiAuthor']):_0x10cac7['author'],_0x288b86=_0x3e873f&&!_0x4854f6['aiAuthor']['avatar']?_0x4a5400:void 0x0;this['userView']=new _0x851ae0(_0x536dea,_0x1d40b8,this['getUserViewNotificationText'](),_0x288b86),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2f61b8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x541fa6(),this['keystrokes']=new _0x12a3e0(),this['focusCycler']=new _0x23b8d0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x40d3d5=>_0x40d3d5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x17d906=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x17d906['innerHTML']=_0x22f8b0(this['description']),this['on']('change:description',(_0x319e00,_0x1f5684,_0x4a4b63)=>{_0x17d906['innerHTML']=_0x22f8b0(_0x4a4b63);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x8aa3d6=this['bindTemplate'],_0x502916=[{'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']}},{'tag':'time','attributes':{'datetime':_0x8aa3d6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x8aa3d6['to']('authoredAt',_0x3c16b4=>this['_config']['formatDateTime'](_0x3c16b4))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x502916['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x1a669a=new _0x5d0613(this['locale']);_0x1a669a['set']({'icon':_0x1e0692,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x502916['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x1a669a]});}return{'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':_0x502916}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):wt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):wt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x235ae9){return new _0x3d00b7({'id':'ck-ai-author','name':_0x235ae9['name'],'avatar':_0x235ae9['avatar'],'color':new _0x1d4191(0x0)});}_createButton(_0x11d38c,_0x1171fa,_0x53f466,_0x284be2,_0x2a0050){const _0x86ec4b=new _0xcbb2d1(this['locale']);return _0x86ec4b['set']({'label':_0x11d38c,'icon':_0x1171fa,'tooltip':!0x0,'tooltipPosition':_0x2a0050}),_0x86ec4b['extendTemplate']({'attributes':{'class':_0x53f466}}),_0x86ec4b['on']('execute',()=>{this['fire'](_0x284be2,this['_model']['id']);}),_0x86ec4b;}_setupKeyboardNavigation(){const _0x453662=this['element'];this['keystrokes']['listenTo'](_0x453662);for(const _0x2bef54 of this['focusables'])this['focusTracker']['add'](_0x2bef54['element']),this['keystrokes']['listenTo'](_0x2bef54['element']);this['keystrokes']['set']('enter',(_0x2df66e,_0x3845be)=>{_0x453662===_0x2df66e['target']&&(this['focusCycler']['focusFirst'](),_0x3845be());}),this['keystrokes']['set']('esc',(_0xe9fed2,_0x3fa771)=>{_0x453662!==_0xe9fed2['target']&&(this['focus'](),_0x3fa771());});}},Mn=class extends _0x183f88{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0xd2b39a,_0x5197b4,_0x4b244e,_0x36e8c7];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x294c37){super(_0x294c37),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x167ace=this['editor']['config'];_0x167ace['define']('trackChanges.SuggestionThreadView',yn),_0x167ace['define']('trackChanges.SuggestionView',Sn),_0x167ace['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x167ace['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x4a2d22,_0x52ba2e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x447565,_0x4e98bc]of this['_handleControllerBuffer']){const _0x24b329=this['_suggestionToController']['has'](_0x447565);_0x24b329||_0x4e98bc?_0x24b329&&_0x4e98bc&&this['_destroyController'](_0x447565):this['_initializeController'](_0x447565);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x36e8c7)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4a2d22,_0x52ba2e);}init(){const _0x1b6720=this['editor'],_0x370bd1=_0x1b6720['plugins']['get'](ln),_0x1a9795=_0x1b6720['plugins']['get'](_0x4b244e),_0x2e8caf=_0x1b6720['plugins']['get'](_0x36e8c7),_0x368227=_0x1b6720['plugins']['get'](_0x5197b4);this['_addUIComponentsToFactory'](),_0x2e8caf['addSourceCollector'](()=>{const _0x25da88=[];for(const [_0x4e2ecd,_0x935a56]of Array['from'](this['_suggestionToController'])){const _0x420361=_0x4e2ecd['getAllAdjacentSuggestions'](),_0xefc67e=[];for(const _0x145b4d of _0x420361){if(!_0x145b4d['isInContent'])continue;if(_0x145b4d['isMultiRange']){_0xefc67e['push'](..._0x145b4d['getRanges']());continue;}const _0x487b48=_0x145b4d['getFirstRange']();if(_0xefc67e['length']>0x0){const _0x1ca98a=_0xefc67e[0x0]['getJoined'](_0x487b48);if(_0x1ca98a){_0xefc67e[0x0]=_0x1ca98a;continue;}}_0xefc67e['push'](_0x487b48);}_0x25da88['push']([_0x935a56['view'],_0xefc67e]);}return _0x25da88;}),this['listenTo'](_0x370bd1,'suggestionLoaded',(_0x13fd06,_0x3a7aa7)=>{this['listenTo'](_0x3a7aa7,'change:previous',(_0x2919da,_0x24f679,_0x2fc70f,_0x3f2b7e)=>{_0x3a7aa7['isInContent']&&(null==_0x2fc70f?(this['_updateController'](_0x3f2b7e['head']),this['_handleSuggestionControllerDelayed'](_0x3a7aa7,!0x1)):(this['_updateController'](_0x2fc70f['head']),null==_0x3f2b7e&&this['_handleSuggestionControllerDelayed'](_0x3a7aa7,!0x0)));}),null!==_0x3a7aa7['previous']?this['_updateController'](_0x3a7aa7['head']):this['_handleSuggestionControllerDelayed'](_0x3a7aa7,!0x1);}),this['listenTo'](_0x370bd1,'suggestionUnloaded',(_0x412974,_0x33bc62,_0x22b9b3)=>{this['stopListening'](_0x33bc62,'change:previous'),this['_handleControllerBuffer']['delete'](_0x33bc62),this['_suggestionToController']['has'](_0x33bc62)&&this['_destroyController'](_0x33bc62),_0x22b9b3&&this['_updateController'](_0x22b9b3['head']);}),this['listenTo'](_0x370bd1,'suggestionChanged',(_0x123172,_0x5d792b)=>{this['_updateController'](_0x5d792b);}),this['listenTo'](_0x1a9795,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x368227,'addComment',(_0x4474fd,{threadId:_0x1f875b,isFromAdapter:_0x9bd39})=>{if(_0x9bd39||!_0x370bd1['hasSuggestion'](_0x1f875b))return;const _0x3abc42=_0x370bd1['getSuggestion'](_0x1f875b);this['_suggestionToController']['get'](_0x3abc42)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x491f28=[this['editor']];for(const _0x2d9132 of _0x491f28){let _0x5b33f1;for(const _0x435d3c in _0x2d9132){const _0x3a5701=_0x435d3c,_0x1c8c4c=_0x2d9132[_0x3a5701];if('trackChangesLicenseKeyValid'==_0x1c8c4c||'trackChangesLicenseKeyInvalid'==_0x1c8c4c||'trackChangesLicenseKeyExpired'==_0x1c8c4c||'trackChangesLicenseKeyDomainLimit'==_0x1c8c4c||'trackChangesLicenseKeyNotAllowed'==_0x1c8c4c||'trackChangesLicenseKeyEvaluationLimit'==_0x1c8c4c||'trackChangesLicenseKeyUsageLimit'==_0x1c8c4c){delete _0x2d9132[_0x3a5701],_0x5b33f1=_0x1c8c4c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5b33f1&&_0x2d9132['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5b33f1&&_0x2d9132['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5b33f1&&_0x2d9132['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5b33f1&&_0x2d9132['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5b33f1&&_0x2d9132['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5b33f1&&_0x2d9132['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x142d45){const _0x2cc9ff=this['_suggestionToController']['get'](_0x142d45);return _0x2cc9ff&&this['editor']['plugins']['get'](_0x4b244e)['getByInnerView'](_0x2cc9ff['view'])||null;}getSuggestionForAnnotation(_0x2b5b6d){const _0x306253=this['_viewToController']['get'](_0x2b5b6d['innerView']);return _0x306253?_0x306253['model']:null;}_refreshActiveMarkers(){const _0x44ff29=this['editor']['plugins']['get'](_0x4b244e),_0x408d37=this['editor']['plugins']['get'](ln),_0x4cfc90=Array['from'](_0x44ff29['activeAnnotations'],_0x586ee4=>_0x586ee4['innerView'])['filter'](_0x4908cb=>this['_viewToController']['has'](_0x4908cb)),_0x1e3850=[];for(const _0x1b402f of _0x4cfc90){const _0x376a32=this['_viewToController']['get'](_0x1b402f)['model']['getAllAdjacentSuggestions']();_0x1e3850['push'](..._0x376a32['reduce']((_0x404d8d,_0x13f151)=>[..._0x404d8d,..._0x13f151['getMarkerNames']()],[]));}_0x408d37['activeMarkers']=_0x1e3850;}_addUIComponentsToFactory(){const _0x48e7f6=this['editor'],_0xc6a666=_0x48e7f6['locale'],_0x24b9ac=wt(_0xc6a666,'Track\x20changes'),_0x3919a5=new _0x53037b([{'type':'switchbutton','model':new _0x2ace52({'withText':!0x0,'isToggleable':!0x0,'label':_0x24b9ac,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x48e7f6['plugins']['has']('TrackChangesPreview')&&_0x3919a5['addMany']([{'type':'separator'},{'type':'button','model':new _0x2ace52({'withText':!0x0,'label':wt(_0xc6a666,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2635e1 of _0x3919a5)if(On(_0x2635e1)){const _0x5e29f7=_0x48e7f6['commands']['get'](_0x2635e1['model']['commandName']);_0x2635e1['model']['bind']('isOn','isEnabled')['to'](_0x5e29f7,'value','isEnabled');}_0x48e7f6['ui']['componentFactory']['add']('trackChanges',_0x3c850b=>this['_createToolbarButton'](_0x3c850b,_0x3919a5,_0x24b9ac)),_0x48e7f6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x130ab1=>this['_createMenuBarMenu'](_0x130ab1,_0x3919a5,_0x24b9ac));}_createToolbarButton(_0x1c16eb,_0x3fc686,_0x20c8ff){const _0x5f5709=_0x57750a(_0x1c16eb,_0x100bf8),_0x1f0ab4=this['editor']['commands']['get']('trackChanges');_0x5f5709['buttonView']['set']({'tooltip':_0x20c8ff,'label':_0x20c8ff,'icon':_0x104355}),_0x5f5709['buttonView']['bind']('isOn')['to'](_0x1f0ab4,'value'),_0x5f5709['buttonView']['on']('execute',()=>{_0x1f0ab4['execute'](),this['editor']['editing']['view']['focus']();}),_0x1c31eb(_0x5f5709,_0x3fc686,{'role':'menu'});const _0x515e9b=[];for(const _0x3f577c of _0x3fc686)On(_0x3f577c)&&_0x515e9b['push'](this['editor']['commands']['get'](_0x3f577c['model']['commandName']));const _0x1a71c7=_0x5f5709['buttonView'];return _0x1a71c7['actionView']['unbind']('isEnabled'),_0x1a71c7['arrowView']['unbind']('isEnabled'),_0x1a71c7['actionView']['bind']('isEnabled')['to'](_0x1f0ab4,'isEnabled'),_0x1a71c7['arrowView']['bind']('isEnabled')['toMany'](_0x515e9b,'isEnabled',(..._0x2abbf7)=>_0x2abbf7['some'](_0x4ce6c8=>_0x4ce6c8)),_0x5f5709['on']('execute',_0x37bb49=>{this['editor']['execute'](_0x37bb49['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5f5709;}_createMenuBarMenu(_0x24ac3d,_0xfaf333,_0x72412c){const _0x1b062d=new _0x3b404a(_0x24ac3d),_0x173a18=this['editor']['commands']['get']('trackChanges');_0x1b062d['buttonView']['set']({'label':_0x72412c,'icon':_0x104355});const _0x197404=new _0x4d394f(_0x24ac3d);for(const _0x10ba2b of _0xfaf333){if('separator'==_0x10ba2b['type']){_0x197404['items']['add'](new _0x518678(_0x24ac3d));continue;}const _0x25254f=new _0x417d65(_0x24ac3d,_0x1b062d),_0xc309db=new _0x1e5915(_0x24ac3d),_0x2a481a=_0x10ba2b['model'];_0xc309db['bind'](...Object['keys'](_0x2a481a))['to'](_0x2a481a),_0xc309db['delegate']('execute')['to'](_0x1b062d),_0xc309db['on']('execute',()=>{this['editor']['execute'](_0x2a481a['commandName']),this['editor']['editing']['view']['focus']();}),_0x25254f['children']['add'](_0xc309db),_0x197404['items']['add'](_0x25254f);}return _0x1b062d['bind']('isEnabled')['to'](_0x173a18,'isEnabled'),_0x1b062d['panelView']['children']['add'](_0x197404),_0x1b062d;}_initializeController(_0x23e55c){const _0x36f3c4=this['editor'],_0x2a6d3d=_0x36f3c4['config'],_0x1d2973=_0x36f3c4['plugins']['get'](_0x4b244e),_0xcb6188=_0x36f3c4['plugins']['get'](_0x5197b4),_0x3dbc35=_0x36f3c4['plugins']['get'](_0x36e8c7),_0x28bf0c=_0x36f3c4['plugins']['get'](_0xd2b39a)['me'],_0x431c05=_0x2a6d3d['get']('trackChanges')['SuggestionThreadView'],_0x35e500=_0x2a6d3d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1a48ae,CommentThreadInputView:_0x8b7dae}=_0x36f3c4['plugins']['get']('CommentsUI');let _0x136a04,_0xbd2ba1,_0x40068b;this['_annotationViews']['has'](_0x23e55c['id'])?(_0xbd2ba1=this['_annotationViews']['get'](_0x23e55c['id']),_0x136a04=_0xbd2ba1['mainView']):(_0x136a04=new _0x431c05(_0x36f3c4['locale'],_0x23e55c,_0x28bf0c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2a6d3d['get']('comments.editorConfig'),'licenseKey':_0x2a6d3d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2a6d3d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2a6d3d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2a6d3d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xd57683(_0x2a6d3d['get']('locale'),_0x36f3c4['locale']),'CommentView':_0x2a6d3d['get']('comments')['CommentView'],'CommentsListView':_0x1a48ae,'CommentThreadInputView':_0x8b7dae,'SuggestionView':_0x35e500,'showAISource':_0x2a6d3d['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x2a6d3d['get']('trackChanges.aiAuthor'),'name':_0x2a6d3d['get']('trackChanges.aiAuthor')?.['name']||wt(_0x36f3c4['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x136a04['suggestionView']['acceptButton']['on']('execute',()=>{_0x36f3c4['editing']['view']['focus']();}),_0x136a04['suggestionView']['discardButton']['on']('execute',()=>{_0x36f3c4['editing']['view']['focus']();}),_0xbd2ba1=_0x1d2973['createAnnotationView'](this['editor']['locale'],_0x136a04),_0xbd2ba1['bind']('isDirty')['to'](_0x136a04,'isDirty'),_0xbd2ba1['bind']('length')['to'](_0x136a04),_0xbd2ba1['bind']('type')['to'](_0x136a04,'type',_0x3f2e3b=>'suggestion-'+_0x3f2e3b),_0x136a04['on']('escape',()=>{_0x40068b['fire']('escape');}),this['_annotationViews']['set'](_0x23e55c['id'],_0xbd2ba1));const _0x42a94b=_0xcb6188['createCommentThreadController'](_0x23e55c['commentThread'],_0x136a04),_0x99fa12=new Rn(_0x36f3c4,_0x23e55c,_0x136a04,_0x42a94b),_0x510ce6=_0x23e55c['getAllAdjacentSuggestions']()['filter'](_0x13c43e=>_0x13c43e['isInContent']);_0x136a04['descriptionParts']=_0x36f3c4['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0x510ce6),this['_suggestionToController']['set'](_0x23e55c,_0x99fa12),this['_viewToController']['set'](_0x136a04,_0x99fa12);const _0x25bc3e=()=>{const _0x5d3974=[],_0x49b941=_0x23e55c['getAllAdjacentSuggestions']()['filter'](_0xe1ee15=>_0xe1ee15['isInContent']);for(const _0xfe46a6 of _0x49b941)_0x5d3974['push'](..._0xfe46a6['getMarkers']());return _0x486d5(_0x36f3c4['editing'],_0x5d3974);};_0x40068b=_0x1d2973['createAnnotation']({'view':_0xbd2ba1,'target':_0x25bc3e,'type':()=>'suggestion-'+_0x99fa12['view']['type'],'isVisible':!!_0x25bc3e()}),_0xcb6188['_bindAnnotationToEditors'](_0x136a04,_0x40068b),_0x1d2973['add'](_0x40068b),_0x3dbc35['registerAnnotation'](_0x40068b);}_destroyController(_0x4e9b51){const _0x4eb590=this['editor']['plugins']['get'](_0x5197b4),_0x488109=this['editor']['plugins']['get'](_0x4b244e),_0x47ff4a=this['_suggestionToController']['get'](_0x4e9b51),_0x45aa53=_0x47ff4a['view'],_0x2a8136=_0x488109['getByInnerView'](_0x45aa53);_0x4eb590['_unbindEditors'](_0x45aa53),_0x2a8136&&_0x488109['remove'](_0x2a8136),this['_suggestionToController']['delete'](_0x4e9b51),this['_viewToController']['delete'](_0x45aa53),_0x47ff4a['destroy']();}_updateController(_0x4d6aea){if(!_0x4d6aea['isInContent']||!this['_suggestionToController']['has'](_0x4d6aea))return;const _0x16acf4=this['editor']['plugins']['get'](ln),_0x2cd6a7=this['_suggestionToController']['get'](_0x4d6aea),_0x50a3e2=_0x4d6aea['getAllAdjacentSuggestions']();_0x2cd6a7['view']['descriptionParts']=_0x16acf4['descriptionFactory']['getDescriptions'](_0x50a3e2);}destroy(){for(const _0x2d16f1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d16f1);for(const _0x7c084a of this['_annotationViews']['values']())_0x7c084a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0x111180){return'model'in _0x111180;}var wn=class extends _0x183f88{static get requires(){return[ln,Mn,_0x2c0c25];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x2b0fcd){this['editor']['plugins']['get'](ln)['adapter']=_0x2b0fcd;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0x25bdca){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0x25bdca);}getSuggestions({skipNotAttached:_0x28953b=!0x1,toJSON:_0x6334b4=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0x28953b,'toJSON':_0x6334b4});}getSuggestion(_0xdb5a66){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0xdb5a66);}};const Bn=['Pagination'];var Fn=class extends _0x183f88{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3d36d2=this['editor'];if(_0x3d36d2['config']['define']('trackChangesData.editorCreator',_0x45a01a=>{const _0x469a7c=_0x3d36d2['model']['document']['getRootNames']()['reduce']((_0x373edb,_0x168ef3)=>(_0x373edb[_0x168ef3]='',_0x373edb),{});return _0x3d36d2['constructor']['create'](_0x469a7c,_0x45a01a);}),'function'!=typeof _0x3d36d2['config']['get']('trackChangesData')['editorCreator'])throw new _0x4a2c66('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x5ae6de){return Un(this['editor'],!0x0,_0x5ae6de);}getDataWithDiscardedSuggestions(_0x3ffa54){return Un(this['editor'],!0x1,_0x3ffa54);}},vn=class extends _0x183f88{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f4a3b){super(_0x1f4a3b),this['result']='end',_0x1f4a3b['editing']['view']['_overlayModeHint']='auto',_0x1f4a3b['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Dn(_0x3194a7){return void 0x0!==_0x3194a7['getRootsAttributes'];}async function Un(_0x4b006c,_0x3fed92,_0x5c34c5){const _0x22abf8=tt(_0x4b006c,Bn);if(_0x22abf8['plugins']['push'](ln,vn),Dn(_0x4b006c)){_0x22abf8['roots']=Object['create'](null);for(const _0x459d12 of _0x4b006c['model']['document']['getRootNames']())_0x22abf8['roots'][_0x459d12]={'modelAttributes':_0x4b006c['getRootAttributes'](_0x459d12)};}const _0x4183e3=document['createDocumentFragment'](),_0x1d09db=_0x4b006c['config']['get']('trackChangesData')['editorCreator'],_0x29a12e=await _0x1d09db(_0x22abf8,()=>function(_0x389313){const _0x370741=document['createElement']('div');return _0x389313['appendChild'](_0x370741),_0x370741;}(_0x4183e3));!function(_0x546659,_0x1bb21f){const _0x517599=_0x546659['model']['document']['getRootNames']()['reduce']((_0x3477b4,_0x31ef4)=>(_0x3477b4[_0x31ef4]=_0x546659['data']['get']({'rootName':_0x31ef4}),_0x3477b4),{}),_0x2bf2d9=_0x546659['plugins']['get']('Users')['users']['map'](_0x19fda1=>({'id':_0x19fda1['id'],'name':_0x19fda1['name']})),_0x550780=_0x546659['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5be24c=_0x546659['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xb32f91=_0x1bb21f['plugins']['get']('Users'),_0x423963=_0x1bb21f['plugins']['get']('TrackChangesEditing'),_0x519b45=_0x1bb21f['plugins']['get']('CommentsRepository');for(const _0xbe4776 of _0x519b45['getCommentThreads']())_0xbe4776['remove']();for(const _0x2d8aeb of _0x2bf2d9)_0xb32f91['getUser'](_0x2d8aeb['id'])||_0xb32f91['addUser'](_0x2d8aeb);_0xb32f91['me']||_0xb32f91['useAnonymousUser']();for(const _0x48cd31 of _0x5be24c)_0x519b45['addCommentThread'](_0x48cd31);for(const _0x2e88c2 of _0x550780)_0x423963['addSuggestionData'](_0x2e88c2);_0x1bb21f['data']['set'](_0x517599);}(_0x4b006c,_0x29a12e),_0x29a12e['execute'](_0x3fed92?'acceptAllSuggestions':'discardAllSuggestions');const _0x3ebad3=Dn(_0x29a12e)?_0x29a12e['getFullData'](_0x5c34c5):_0x29a12e['data']['get'](_0x5c34c5);return await _0x29a12e['destroy'](),_0x3ebad3;}var Pn=class extends _0x11cf3b{options;constructor(_0x884d50,_0x31529c){super(_0x884d50),this['options']=_0x31529c,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(_0x322c4d,_0x26018f){if(!this['element'])return;const _0x296b0b=[];for(const [_0x106795,_0x502dd3]of _0x322c4d){const _0x29a078=document['createElement']('div');_0x29a078['setAttribute']('data-ck-root-name',_0x106795),_0x29a078['className']=_0x502dd3['classes']+'\x20ck-track-changes-preview__root-container',_0x29a078['innerHTML']=_0x22f8b0(_0x502dd3['content']),_0x296b0b['push'](_0x29a078);}_0x26018f(this['element'],_0x296b0b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x3f1090{constructor(_0xc5a565){super(_0xc5a565),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x2e04bd=this['editor'],_0x17fa77=_0x2e04bd['locale'],_0x5a3977=_0x2e04bd['plugins']['get']('Dialog');let _0x9c8356;const _0x34b071=function(_0x5b1e9b){const _0x18de17={};if('editables'in _0x5b1e9b['ui']['view']){for(const [_0x51336a,_0x4d8010]of Object['entries'](_0x5b1e9b['ui']['view']['editables']))_0x18de17[_0x51336a]=_0x4d8010['element'];}else _0x18de17[_0x5b1e9b['model']['document']['getRootNames']()[0x0]]=_0x5b1e9b['ui']['view']['editable']['element'];return _0x18de17;}(_0x2e04bd),_0x1c4233=function(_0x12b38e){let _0x39138f=0x0;for(const _0x1f167d of Object['values'](_0x12b38e))_0x39138f=Math['max'](_0x39138f,_0x1f167d['getBoundingClientRect']()['width']);let _0x73711=0x0;for(const _0x2fe1f5 of Object['values'](_0x12b38e))_0x73711+=_0x2fe1f5['getBoundingClientRect']()['height'];const _0x173575=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x39138f,'height':Math['min'](_0x73711,_0x173575)};}(_0x34b071);_0x5a3977['show']({'id':'finalContentPreview','title':wt(_0x17fa77,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x17fa77,{'dialogRects':_0x1c4233}),'onHide':()=>{_0x9c8356['destroy']();},'onShow':()=>{_0x2e04bd['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4f5999=>{const _0x47154a=this['_standarizeRootsData'](_0x4f5999,_0x2e04bd,_0x34b071);_0x5a3977['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x47154a,_0x2e04bd['config']['get']('trackChanges.preview.renderFunction'));}),_0x9c8356=new _0x64505f(_0x17fa77,[_0x5a3977['view']]),_0x9c8356['attachToDom'](_0x2e04bd['ui']['view']['body']['mountTarget']),_0x9c8356['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2e04bd['once']('destroy',()=>{_0x9c8356['destroy']();});const _0x27eca1=_0x5a3977['view']['headerView']['class'];_0x5a3977['view']['headerView']['class']=_0x27eca1?_0x27eca1+'\x20ck-reset_all':'ck-reset_all',_0x5a3977['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5a3977['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x18e0ca=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x372b50=_0x18e0ca['previewMode'],_0xd85e47={};if('$labels'===_0x372b50){for(const _0x346da3 of _0x18e0ca['getMergeFieldsIds']())_0xd85e47[_0x346da3]=_0x18e0ca['getLabel'](_0x346da3)||_0x346da3;}else{const _0x3c2de1='$defaultValues'===_0x372b50?_0x18e0ca['getDefaultValues']():_0x18e0ca['getDataSetValues'](_0x372b50,!0x0);for(const _0x43f7f9 of Object['entries'](_0x3c2de1)){const [_0x49b687,_0x524365]=_0x43f7f9;_0xd85e47[_0x49b687]=null!==_0x524365?_0x524365:_0x18e0ca['getLabel'](_0x49b687)||_0x49b687;}}return{'mergeFieldsData':_0xd85e47};}_standarizeRootsData(_0x2e1a5c,_0x308b5c,_0x53d807){let _0x5b3f50;_0x5b3f50='string'==typeof _0x2e1a5c?{[_0x308b5c['model']['document']['getRootNames']()[0x0]]:_0x2e1a5c}:_0x2e1a5c;const _0x24c092=this['_fixMediaEmbeds'](_0x5b3f50,_0x308b5c);return function(_0x423976,_0x2bd26c){for(const [_0x4b9285,_0x382d28]of _0x423976)_0x382d28['classes']=_0x2bd26c[_0x4b9285]['classList']['value']['replace']('ck-focused','');return _0x423976;}(this['_sortRoots'](_0x308b5c)['reduce']((_0x361076,_0x43cb5c)=>(_0x361076['push']([_0x43cb5c,{'content':_0x24c092[_0x43cb5c],'classes':''}]),_0x361076),[]),_0x53d807);}['_fixMediaEmbeds'](_0x14e4df,_0x288569){if(!_0x288569['plugins']['has']('MediaEmbedEditing'))return _0x14e4df;const _0x133489=_0x288569['plugins']['get']('MediaEmbedEditing');for(const [_0x20eaa1,_0x269af9]of Object['entries'](_0x14e4df)){const _0x5e03bd=document['createElement']('div');_0x5e03bd['innerHTML']=_0x22f8b0(_0x269af9),_0x5e03bd['querySelectorAll']('figure.media')['forEach'](_0x466dde=>{const _0x287cc=_0x466dde['querySelector']('oembed');if(_0x287cc){const _0xd3aea5=_0x287cc['getAttribute']('url');if(_0xd3aea5){const _0x3b6b95=_0x133489['registry']['getMediaViewElement'](new ct(_0x288569['editing']['view']['document']),_0xd3aea5,{'elementName':'','renderForEditingView':!0x0}),_0x10e241=document['createElement']('div');_0x10e241['classList']['add']('ck-media__wrapper'),_0x3b6b95['render'](_0x10e241,_0x288569['editing']['view']['domConverter']),_0x287cc['replaceWith'](_0x10e241);}}}),_0x14e4df[_0x20eaa1]=_0x5e03bd['innerHTML'];}return _0x14e4df;}_sortRoots(_0x598bce){if(!function(_0x27366f){return void 0x0!==_0x27366f['getRootsAttributes'];}(_0x598bce))return _0x598bce['model']['document']['getRootNames']();const _0x161efa=[],_0x157f9a=new Map();for(const _0x17a9bf of _0x598bce['model']['document']['getRootNames']()){const _0x3d3540=_0x598bce['editing']['view']['getDomRoot'](_0x17a9bf)['getClientRects']()['item'](0x0);_0x161efa['push'](_0x17a9bf),_0x157f9a['set'](_0x17a9bf,_0x3d3540);}return _0x161efa['sort']((_0x55cbfd,_0xe2c211)=>{const _0x9a2223=_0x157f9a['get'](_0x55cbfd),_0x5533d2=_0x157f9a['get'](_0xe2c211);return _0x9a2223['y']-_0x5533d2['y']||_0x9a2223['x']-_0x5533d2['x'];}),_0x161efa;}},Gn=class extends _0x183f88{static get requires(){return[Fn,_0x17b624];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e9910){super(_0x2e9910),_0x2e9910['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x2e9910['config']['define']('trackChanges.preview.renderFunction',(_0x2ae031,_0xc948a4)=>{for(const _0x2ea31e of _0xc948a4)_0x2ae031['appendChild'](_0x2ea31e);});}};export{Lt as AcceptSuggestionCommand,Nn as BaseSuggestionThreadView,It as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,St as ExecuteOnSelectedSuggestionsCommand,xn as PreviewFinalContentCommand,Ot as Suggestion,Bt as SuggestionDescriptionFactory,yn as SuggestionThreadView,Sn as SuggestionView,wn as TrackChanges,pt as TrackChangesCommand,Fn as TrackChangesData,vn as TrackChangesDataGetter,ln as TrackChangesEditing,Gn as TrackChangesPreview,Mn as TrackChangesUI};
|